/*
 *             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 _0x176c57,isVisible,Rect,Collection,FocusTracker,KeystrokeHandler,first,logWarning,logError,toArray as toArray$1,EmitterMixin,scrollViewportToShowTarget,insertToPriorityArray,scrollAncestorsToShowTarget,ResizeObserver as _0x587747,_isMotionReduced,getConstrainedViewportRect,DomEmitterMixin,diff as _0x3b95bc,priorities,getEnvKeystrokeText,toUnit,keyCodes,diffToChanges,collectStylesheets,createElement,env as _0x658ae,version as _0x4bb576,ElementReplacer,formatHtml,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,normalizeColorOptions,ListSeparatorView,CssTransitionDisablerMixin,ToolbarSeparatorView,normalizeToolbarConfig,BoxedEditorUIView,StickyPanelView,LabelView}from'ckeditor5';import{IconCopy,IconCheck,IconError,IconSubmit,IconAIHistory,IconMagicWand,IconRobotPencil,IconMaximize,IconMinimize,IconNotification,IconCancel,IconShowChangesOn,IconShowChangesOff,IconDocument,IconBoxWithCross,IconBoxWithCheck,IconBoxWithMarker,IconInfo,IconWeb,IconSelection,IconFileUpload,IconLink,IconBulb,IconAI,IconPreviousArrow,IconDocumentOutline,IconLoupe,IconPaperClip,IconBrowseFiles,IconDropdownArrow,IconStop,IconAIChat,IconPlus,IconPin,IconThreeHorizontalDots,IconAIReview,IconAITranslate,IconAIAskAI,IconThumbUp,IconThumbDown,IconChevronDown,IconChevronUp,IconAIQuickActions,IconAIChatCommands,IconAIImproveWriting,IconAIContinueWriting,IconAIGrammarCheck,IconAIAdjustLength,IconAIChangeTone,IconAIOther,IconRefresh,IconNextArrow,IconOutdated,IconEye,IconEyeCrossedOut,IconChevronRight,IconCaseChange,IconUndo,IconPencil,IconRemoveComment,IconThreeVerticalDots,IconAddComment,IconCommentsArchive,IconTableOfContents,IconExportPdf,IconExportWord,IconFootnote,IconListStyleDecimal,IconListStyleDecimalLeadingZero,IconListStyleLowerRoman,IconListStyleUpperRoman,IconListStyleLowerLatin,IconListStyleUpperLatin,IconListStyleArabicIndic,IconPaintRoller,IconImportWord,IconLineHeight,IconMultiLevelList,IconWarning,IconInsertMergeField,IconPreviewMergeFields,IconArrowDown,IconArrowUp,IconTrackChanges,IconHistory,IconUser,IconQuote,IconBulletedList,IconCodeBlock,IconEmoji,IconHeading1,IconHeading2,IconHeading3,IconHeading4,IconHeading5,IconHeading6,IconHorizontalLine,IconHtml,IconIndent,IconTable,IconNumberedList,IconOutdent,IconParagraph,IconTodoList,IconPlay,IconSource,IconTemplateGeneric,IconTemplate,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,ModelElement,ModelLivePosition,ViewContainerElement,ViewAttributeElement,ViewEmptyElement,ViewRawElement,ViewUIElement,ViewDocumentFragment,ViewText,ViewElement}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{CloudServices}from'ckeditor5';import{RemoveFormatCommand}from'ckeditor5';import{ListEditing}from'ckeditor5';import{ImageUtils,ImageEditing,ImageUploadEditing,ImageUploadProgress,PictureEditing}from'ckeditor5';import{Mention}from'ckeditor5';import{PasteFromOfficeMSWordNormalizer,PasteFromOffice,parsePasteOfficeHtml}from'ckeditor5';import{MarkdownGfmMdToHtmlDefaultPlugins,MarkdownGfmMdToHtml}from'ckeditor5';import{FileRepository}from'ckeditor5';const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';function normalizeCommandsConfig(_0x1b522a,_0x312791){const _0x26507f=(0x0,_0x312791['t'])('Other');return _0x1b522a['length']?'groupId'in _0x1b522a[0x0]?_0x1b522a:[{'groupId':UNGROUPED_COMMANDS_GROUP_ID,'groupLabel':_0x26507f,'order':0x1/0x0,'commands':_0x1b522a}]:[{'groupId':UNGROUPED_COMMANDS_GROUP_ID,'groupLabel':_0x26507f,'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:_0x2cc7f8}=this,_0x28bdbb=['ck-fake-ai-selection'];_0x2cc7f8['config']['get']('ai.assistant.useTheme')&&_0x28bdbb['push']('ck-ai-assistant-ui_theme'),_0x2cc7f8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':VISUAL_SELECTION_MARKER_NAME,'view':{'classes':_0x28bdbb,'priority':0xc}}),_0x2cc7f8['conversion']['for']('editingDowncast')['markerToElement']({'model':VISUAL_SELECTION_MARKER_NAME,'view':(_0x3874e5,{writer:_0x45105b})=>{if(!_0x3874e5['markerRange']['isCollapsed'])return null;const _0x29f8ca=_0x45105b['createUIElement']('span');return _0x45105b['addClass'](['ck-fake-ai-selection','ck-fake-ai-selection_collapsed'],_0x29f8ca),_0x29f8ca;}});}['afterInit'](){checkLicense$j(this);}['showFakeVisualSelection'](){const _0x3a9e61=this['editor']['model'];_0x3a9e61['change'](_0x5dda72=>{const _0x20891b=_0x3a9e61['document']['selection']['getRanges']();let _0x30452b=0x0;for(const _0x1a951c of _0x20891b){const _0x140ccd=VISUAL_SELECTION_MARKER_NAME+':'+_0x30452b;if(_0x3a9e61['markers']['has'](_0x140ccd))_0x5dda72['updateMarker'](_0x140ccd,{'range':_0x1a951c});else{if(_0x1a951c['start']['isAtEnd']){const _0x43abe9=_0x1a951c['start']['getLastMatchingPosition'](({item:_0x2f4e9a})=>!_0x3a9e61['schema']['isContent'](_0x2f4e9a),{'boundaries':_0x1a951c});_0x5dda72['addMarker'](_0x140ccd,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5dda72['createRange'](_0x43abe9,_0x1a951c['end'])});}else _0x5dda72['addMarker'](_0x140ccd,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1a951c});}_0x30452b++;}});}['hideFakeVisualSelection'](){const _0x3fc7e3=this['editor']['model'],_0x1398eb=Array['from'](this['editor']['model']['markers']['getMarkersGroup'](VISUAL_SELECTION_MARKER_NAME));_0x1398eb['length']&&_0x3fc7e3['change'](_0x2cb3d9=>{_0x1398eb['forEach'](_0x156c86=>{_0x2cb3d9['removeMarker'](_0x156c86);});});}['insertContent'](_0x24f842,_0x1f1aa1){const _0x312a1c=this['_getAISelection'](),_0x278b62=_0x1f1aa1||_0x312a1c['getFirstRange']();this['editor']['model']['canEditAt'](_0x278b62)&&this['editor']['model']['change'](_0x2d3f22=>{this['hideFakeVisualSelection'](),_0x1f1aa1||this['_resetContentOfSelectedTableCells'](_0x2d3f22,_0x312a1c),this['_pasteHTMLUsingClipboard']({'insertAt':_0x278b62,'writer':_0x2d3f22,'html':_0x24f842});});}['insertContentBelow'](_0x22a83a){const {model:_0x1884fa}=this['editor'],_0x13a188=this['_getAISelection']();_0x1884fa['change'](()=>{const _0x577d0d=this['_prepareTableInsertBelowPosition'](_0x22a83a,_0x13a188)||this['_getDefaultInsertBelowPosition'](_0x13a188);this['insertContent'](_0x22a83a,_0x577d0d);});}['_getAISelection'](){const _0x3f2cb5=this['editor']['model'],_0x4062d6=Array['from'](_0x3f2cb5['markers']['getMarkersGroup'](VISUAL_SELECTION_MARKER_NAME))['map'](_0x455dac=>_0x455dac['getRange']());return _0x3f2cb5['createSelection'](_0x4062d6);}['_pasteHTMLUsingClipboard']({writer:_0x2cc78a,html:_0x47fc9,insertAt:_0x32e2f2}){const {view:_0x127d22}=this['editor']['editing'],_0x5d5e75=this['editor']['plugins']['get'](ClipboardPipeline),_0x1dde41=new DomDataTransfer$1();_0x1dde41['setData']('text/html',_0x47fc9);const _0x56a13b=new ClipboardEvent('paste',{'clipboardData':_0x1dde41}),_0x48c25e=new ViewDocumentDomEventData(_0x127d22,_0x56a13b,{'dataTransfer':new ViewDataTransfer(_0x1dde41)});_0x2cc78a['setSelection'](_0x32e2f2);const _0x2b25e5=(_0x4b4d37,_0x10fc51)=>{_0x10fc51['resultRange']&&_0x2cc78a['setSelection'](_0x10fc51['resultRange']);};_0x5d5e75['once']('contentInsertion',_0x2b25e5,{'priority':'lowest'}),_0x127d22['document']['fire']('paste',_0x48c25e),_0x5d5e75['off']('contentInsertion',_0x2b25e5);}['_getDefaultInsertBelowPosition'](_0x5df926){const {model:_0x4c4d36}=this['editor'],_0xc931b=Array['from'](_0x5df926['getSelectedBlocks']());return _0xc931b['length']?_0x4c4d36['createPositionAfter'](_0xc931b['pop']()):_0x5df926['getLastPosition']();}['_prepareTableInsertBelowPosition'](_0xb32bdb,_0x5da20d){const {model:_0x12b83d,plugins:_0x5de244}=this['editor'];if(_0x5de244['has']('TableUtils')){const _0x2adea0=_0x5de244['get']('TableUtils')['getSelectedTableCells'](_0x5da20d);if(_0x2adea0['length']){const _0xd17642=this['_getTableRowCountFromContent'](_0xb32bdb),_0x444849=this['_createEmptyTableRows'](_0x2adea0,_0xd17642);return _0x12b83d['createPositionAt'](_0x444849,0x0);}}return null;}['_getTableRowCountFromContent'](_0x42ab6e){const _0x4cd2f7=this['editor']['plugins']['get']('TableUtils'),_0xfa4f42=this['editor']['data']['parse'](_0x42ab6e),_0x5b2341=Array['from'](_0xfa4f42['getChildren']())['filter'](_0x213680=>_0x213680['is']('element','table'));let _0x4c45d4=0x0;return _0x5b2341['forEach'](_0x2e6e22=>{_0x4c45d4+=_0x4cd2f7['getRows'](_0x2e6e22);}),_0x4c45d4;}['_createEmptyTableRows'](_0x35b1b2,_0x5cd80c){const _0x46c6b7=this['editor']['plugins']['get']('TableUtils'),_0x1f5771=_0x46c6b7['getRowIndexes'](_0x35b1b2),_0x93a9e8=_0x46c6b7['getColumnIndexes'](_0x35b1b2),_0x14e800=_0x1f5771['last']+0x1,_0x5ca71c=_0x93a9e8['first'],_0xe575a7=_0x35b1b2[0x0]['findAncestor']('table');for(let _0x4f7838=0x0;_0x4f7838<_0x5cd80c;_0x4f7838++)_0x46c6b7['insertRows'](_0xe575a7,{'at':_0x14e800});return _0xe575a7['getChild'](_0x14e800)['getChild'](_0x5ca71c);}['_resetContentOfSelectedTableCells'](_0x5b58b8,_0x507090){const {plugins:_0x39e166}=this['editor'],{model:_0x4ba161}=_0x5b58b8;if(!_0x39e166['has']('TableUtils'))return;_0x39e166['get']('TableUtils')['getSelectedTableCells'](_0x507090)['length']&&_0x4ba161['deleteContent'](_0x507090);}}async function checkLicense$j(_0x3d14ab){const _0x24d257=_0x572272([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]),_0xfa6797=window[_0x572272([0x44,0x61,0x74,0x65])][_0x572272([0x6e,0x6f,0x77])](),_0x17bd99=_0x3d14ab[_0x572272([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39426a=new window[(_0x572272([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd9be2a=>{_0x17bd99[_0x572272([0x6f,0x6e,0x63,0x65])](_0x572272([0x72,0x65,0x61,0x64,0x79]),_0xd9be2a);}),_0x460038={[_0x572272([0x6b,0x74,0x79])]:_0x572272([0x45,0x43]),[_0x572272([0x75,0x73,0x65])]:_0x572272([0x73,0x69,0x67]),[_0x572272([0x63,0x72,0x76])]:_0x572272([0x50,0x2d,0x32,0x35,0x36]),[_0x572272([0x78])]:_0x572272([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]),[_0x572272([0x79])]:_0x572272([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]),[_0x572272([0x61,0x6c,0x67])]:_0x572272([0x45,0x53,0x32,0x35,0x36])},_0x2d339c=_0x17bd99[_0x572272([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x572272([0x67,0x65,0x74])](_0x572272([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x1587cd=await(async function(){let _0x24ea5a,_0x102ef2=null,_0x3e596f=null;try{if(_0x2d339c==_0x572272([0x47,0x50,0x4c]))return _0x572272([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x24ea5a=(function(){const _0x41ea06=_0x2d339c[_0x572272([0x73,0x70,0x6c,0x69,0x74])](_0x572272([0x2e]));if(0x3!=_0x41ea06[_0x572272([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x3b029c=_0x41ea06[0x1];return _0x1a422b(_0x3b029c);function _0x1a422b(_0x2a9023){const _0x1c5424=_0x46cb65(_0x2a9023);return _0x1c5424&&_0x2955eb()?_0x1c5424:null;function _0x2955eb(){const _0x53933a=_0x1c5424[_0x572272([0x6a,0x74,0x69])],_0xd31783=window[_0x572272([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53933a[_0x572272([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53933a[_0x572272([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ab7af={..._0x1c5424,[_0x572272([0x6a,0x74,0x69])]:_0x53933a[_0x572272([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53933a[_0x572272([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ab7af[_0x572272([0x76,0x63])],_0x2cbd6f(_0x4ab7af)==_0xd31783;}}}()),!_0x24ea5a)return _0x572272([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x24ea5a[_0x572272([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e596f=function(_0x3d26a5,_0x1054a5){return new window[(_0x572272([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b1d55=>{if(_0x4d1fe8())return _0x5b1d55(_0x572272([0x56,0x61,0x6c,0x69,0x64]));_0x593bbe(),_0x17bd99[_0x572272([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x572272([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x44cc39=!0x1;const _0x10d559=uid();function _0x66e109(_0x4988aa){return!!_0x4988aa&&(typeof _0x4988aa===_0x572272([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4988aa===_0x572272([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4988aa[_0x572272([0x74,0x68,0x65,0x6e])]===_0x572272([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4988aa[_0x572272([0x63,0x61,0x74,0x63,0x68])]===_0x572272([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4a194d(_0x4ba5b6){_0x140825(_0x4ba5b6)[_0x572272([0x74,0x68,0x65,0x6e])](_0x240199=>{if(!_0x240199||_0x240199[_0x572272([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x572272([0x6f,0x6b]))return _0x572272([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35e149(_0x2cbd6f(_0x10d559+_0x1054a5))!=_0x240199[_0x572272([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x572272([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x572272([0x56,0x61,0x6c,0x69,0x64]);})[_0x572272([0x74,0x68,0x65,0x6e])](_0x2b8412=>(_0x2ae72f(),_0x2b8412),()=>{const _0x2ba530=_0x5e4a1c();return null==_0x2ba530?(_0x2ae72f(),_0x572272([0x56,0x61,0x6c,0x69,0x64])):_0x572272(_0xfa6797-_0x2ba530>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x572272([0x74,0x68,0x65,0x6e])](_0x5b1d55)[_0x572272([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b1d55(_0x572272([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb12376=0x36ee80;function _0x2ae72f(){const _0x31ba05=_0x572272([0x6c,0x6c,0x63,0x74,0x2d])+_0x35e149(_0x2cbd6f(_0x3d26a5)),_0x5396b7=_0x271f3d(_0x35e149(window[_0x572272([0x4d,0x61,0x74,0x68])][_0x572272([0x63,0x65,0x69,0x6c])](_0xfa6797/_0xb12376)));window[_0x572272([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x572272([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31ba05,_0x5396b7);}function _0x5e4a1c(){const _0x436c7f=_0x572272([0x6c,0x6c,0x63,0x74,0x2d])+_0x35e149(_0x2cbd6f(_0x3d26a5)),_0x1c7d7b=window[_0x572272([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x572272([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x436c7f);return _0x1c7d7b?window[_0x572272([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271f3d(_0x1c7d7b),0x10)*_0xb12376:null;}function _0x140825(_0x313ab1){return new window[(_0x572272([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57cd11,_0x53f7c8)=>{_0x313ab1[_0x572272([0x74,0x68,0x65,0x6e])](_0x57cd11,_0x53f7c8),window[_0x572272([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53f7c8,0x1d4c0);});}}_0x17bd99[_0x572272([0x6f,0x6e])](_0x572272([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a03d2,_0x4ef697)=>{if(_0x4ef697[0x0]!=_0x3d26a5)return _0x5b1d55(_0x572272([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ef697[0x1]={..._0x4ef697[0x1],[_0x572272([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x10d559};},{[_0x572272([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x572272([0x68,0x69,0x67,0x68])}),_0x17bd99[_0x572272([0x6f,0x6e])](_0x572272([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xeea2e7=>{_0x66e109(_0xeea2e7[_0x572272([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x44cc39=!0x0,_0x4a194d(_0xeea2e7[_0x572272([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x572272([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x572272([0x6c,0x6f,0x77])}),_0x39426a[_0x572272([0x74,0x68,0x65,0x6e])](()=>{_0x44cc39||_0x5b1d55(_0x572272([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d1fe8(){return _0x17bd99[_0x572272([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x572272([0x76,0x69,0x65,0x77])][_0x572272([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x572272([0x61,0x75,0x74,0x6f]);}function _0x593bbe(){_0x17bd99[_0x572272([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x572272([0x76,0x69,0x65,0x77])][_0x572272([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x572272([0x61,0x75,0x74,0x6f]);}}(_0x24ea5a[_0x572272([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x24ea5a[_0x572272([0x6a,0x74,0x69])]));const _0x30a6e7=await(async function(){let _0x154192=!0x0;try{const _0x1e1ed4=_0x2d339c[_0x572272([0x73,0x70,0x6c,0x69,0x74])](_0x572272([0x2e])),[_0x502990,_0x4c332b,_0x41ed31]=_0x1e1ed4;return _0x2bca2e(_0x502990),await _0x45b2ec(_0x502990,_0x4c332b,_0x41ed31),_0x154192;}catch{return!0x1;}function _0x2bca2e(_0x78f7ad){const _0x1003ca=_0x46cb65(_0x78f7ad);_0x1003ca&&_0x1003ca[_0x572272([0x61,0x6c,0x67])]==_0x572272([0x45,0x53,0x32,0x35,0x36])||(_0x154192=!0x1);}async function _0x45b2ec(_0x4626fd,_0x22ab81,_0x399964){const _0x523cc3=window[_0x572272([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x572272([0x66,0x72,0x6f,0x6d])](_0x4834e6(_0x399964),_0x2f8617=>_0x2f8617[_0x572272([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2830f2=new window[(_0x572272([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x572272([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4626fd+_0x572272([0x2e])+_0x22ab81),_0x4e5b9b=window[_0x572272([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x572272([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e5b9b)return;const _0x30e35b=await _0x4e5b9b[_0x572272([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x572272([0x6a,0x77,0x6b]),_0x460038,{[_0x572272([0x6e,0x61,0x6d,0x65])]:_0x572272([0x45,0x43,0x44,0x53,0x41]),[_0x572272([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x572272([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x572272([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e5b9b[_0x572272([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x572272([0x6e,0x61,0x6d,0x65])]:_0x572272([0x45,0x43,0x44,0x53,0x41]),[_0x572272([0x68,0x61,0x73,0x68])]:{[_0x572272([0x6e,0x61,0x6d,0x65])]:_0x572272([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30e35b,_0x523cc3,_0x2830f2)||(_0x154192=!0x1);}}());return _0x30a6e7?(function(){const _0x4db248=_0x24ea5a[_0x572272([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4db248)return!0x1;if(_0x4db248[_0x572272([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572272([0x2a])))return!0x0;if(_0x4db248[_0x572272([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572272([0x41,0x49])))return!0x0;return!0x1;}())?(function(){const _0x523c7c=[_0x572272([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x572272([0x74,0x72,0x69,0x61,0x6c])][_0x572272([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24ea5a[_0x572272([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xfa6797/0x3e8:0x69cb0e80;return _0x24ea5a[_0x572272([0x65,0x78,0x70])]<_0x523c7c;}())?_0x572272([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xd524ff=_0x24ea5a[_0x572272([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd524ff||0x0==_0xd524ff[_0x572272([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd1f302}=new URL(window[_0x572272([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd524ff[_0x572272([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd1f302))return!0x0;const _0x5cc9ad=_0xd1f302[_0x572272([0x73,0x70,0x6c,0x69,0x74])](_0x572272([0x2e]));return _0xd524ff[_0x572272([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x528652=>_0x528652[_0x572272([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572272([0x2a])))[_0x572272([0x6d,0x61,0x70])](_0xed5fd7=>_0xed5fd7[_0x572272([0x73,0x70,0x6c,0x69,0x74])](_0x572272([0x2e])))[_0x572272([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32ce22=>_0x32ce22[_0x572272([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5cc9ad[_0x572272([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x572272([0x6d,0x61,0x70])](_0x9d2b31=>Array(_0x5cc9ad[_0x572272([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x9d2b31[_0x572272([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x572272([0x66,0x69,0x6c,0x6c])](_0x9d2b31[0x0]===_0x572272([0x2a])?_0x572272([0x2a]):'')[_0x572272([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x9d2b31))[_0x572272([0x73,0x6f,0x6d,0x65])](_0x522f26=>_0x5cc9ad[_0x572272([0x65,0x76,0x65,0x72,0x79])]((_0xca6113,_0x4a6506)=>_0x522f26[_0x4a6506]===_0xca6113||_0x522f26[_0x4a6506]===_0x572272([0x2a])));}())?(_0x24ea5a[_0x572272([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x572272([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x102ef2=function(_0x5ec81a){const _0x39dd97=new window[(_0x572272([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46dce0=>setTimeout(_0x46dce0,0x93ecc)),_0xe561a8=_0x39426a[_0x572272([0x74,0x68,0x65,0x6e])](()=>new window[(_0x572272([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x565e08=>{let _0x25ff08=0x0;_0x17bd99[_0x572272([0x6d,0x6f,0x64,0x65,0x6c])][_0x572272([0x6f,0x6e])](_0x572272([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41ca5f,_0x3e4da6)=>{_0x3e4da6[0x0][_0x572272([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x25ff08++,0x5e8==_0x25ff08&&(_0x565e08(),_0x41ca5f[_0x572272([0x6f,0x66,0x66])]());});})),_0x158762=[_0x39dd97,_0xe561a8];return window[_0x572272([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x572272([0x72,0x61,0x63,0x65])](_0x158762)[_0x572272([0x74,0x68,0x65,0x6e])](()=>_0x5ec81a);}(_0x572272([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x102ef2&&_0x3e596f)return new window[(_0x572272([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ade49,_0x418d2b)=>{_0x102ef2[_0x572272([0x74,0x68,0x65,0x6e])](_0x4ade49,_0x418d2b),_0x3e596f[_0x572272([0x74,0x68,0x65,0x6e])](_0x3f93cc=>{_0x3f93cc!=_0x572272([0x56,0x61,0x6c,0x69,0x64])&&_0x4ade49(_0x3f93cc);},_0x418d2b);});return _0x102ef2||_0x3e596f||_0x572272([0x56,0x61,0x6c,0x69,0x64]);}())):_0x572272([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x572272([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x572272([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x572272([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x46cb65(_0x5e8f9a){return _0x5e8f9a[_0x572272([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x572272([0x65,0x79]))?JSON[_0x572272([0x70,0x61,0x72,0x73,0x65])](_0x4834e6(_0x5e8f9a)):null;}function _0x4834e6(_0x93d1fd){return window[_0x572272([0x61,0x74,0x6f,0x62])](_0x93d1fd[_0x572272([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x572272([0x2b]))[_0x572272([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x572272([0x2f])));}function _0x2cbd6f(_0xd7db60){let _0x23313e=0x1505;function _0x5b8619(_0x4d6664){for(let _0x3996eb=0x0;_0x3996eb<_0x4d6664[_0x572272([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3996eb++){const _0x19eb7c=_0x4d6664[_0x572272([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3996eb);_0x23313e=(_0x23313e<<0x5)+_0x23313e+_0x19eb7c,_0x23313e&=_0x23313e;}}return function _0xf1941b(_0x53841f){Array[_0x572272([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x53841f)?_0x53841f[_0x572272([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf1941b):_0x53841f&&typeof _0x53841f==_0x572272([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x572272([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x53841f)[_0x572272([0x73,0x6f,0x72,0x74])]()[_0x572272([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x181e02,_0x146eb2])=>{_0x5b8619(_0x181e02),_0xf1941b(_0x146eb2);}):_0x5b8619(window[_0x572272([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x53841f));}(_0xd7db60),_0x23313e>>>0x0;}function _0x35e149(_0x570108){return _0x570108[_0x572272([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x572272([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x572272([0x30]));}function _0x271f3d(_0x1bca4c){return _0x1bca4c[_0x572272([0x73,0x70,0x6c,0x69,0x74])]('')[_0x572272([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x572272([0x6a,0x6f,0x69,0x6e])]('');}function _0x25b082(){}function _0x572272(_0x157bc0){return _0x157bc0['map'](_0x498efc=>String['fromCharCode'](_0x498efc))['join']('');}!function(_0x4dcfa4){const _0x5946a0=(function(){const _0xe6348c=window[_0x572272([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x572272([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x572272([0x6e,0x6f,0x77])]())[_0x572272([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x572272([0x2e]),'');let _0x205a59=_0x572272([0x6e]);for(let _0x5bce15=0x0;_0x5bce15<_0xe6348c[_0x572272([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bce15+=0x2){let _0x1268d5=window[_0x572272([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe6348c[_0x572272([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bce15,_0x5bce15+0x2));_0x1268d5>=_0x24d257[_0x572272([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1268d5-=_0x24d257[_0x572272([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x205a59+=_0x24d257[_0x1268d5];}return _0x205a59;}());_0x17bd99[_0x5946a0]=_0x572272([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4dcfa4,_0x4dcfa4!=_0x572272([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x39426a,_0x17bd99[_0x572272([0x6d,0x6f,0x64,0x65,0x6c])][_0x572272([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25b082,_0x17bd99[_0x572272([0x6d,0x6f,0x64,0x65,0x6c])][_0x572272([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25b082,_0x17bd99[_0x572272([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x572272([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x1587cd);}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(_0x17c33e){super(_0x17c33e),this['name']='AIRequestError';}}function getTranslation$j(_0x384d63,_0x1540a5,_0x424a8d){const t=_0x384d63['t'];switch(_0x1540a5){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',_0x424a8d);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x424a8d);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'},_0x424a8d);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 _0x1540a5;}}class ShowAIAssistantCommand extends Command{['_commandDefinitions'];constructor(_0x44839a,_0x2aafdb){super(_0x44839a),this['_commandDefinitions']=_0x2aafdb,this['set']('enabledCommandsIds',[]),this['on']('change:_hasContext',(_0xb69c93,_0x1d3b19,_0x4e76a2)=>{this['isEnabled']&&(this['enabledCommandsIds']=_getEnabledCommands(this['_commandDefinitions'],_0x4e76a2));}),this['set']('_hasContext',!0x1),this['on']('change:isEnabled',(_0x254f3b,_0x51749c,_0x330109)=>{this['enabledCommandsIds']=_0x330109?_getEnabledCommands(this['_commandDefinitions'],this['_hasContext']):[];});}['refresh'](){const _0x477d48=this['editor']['model'];this['_hasContext']=_isContextAvailable(_0x477d48);const _0x120736=_0x477d48['document']['selection'],_0x1f34cd=this['editor']['config']['get']('ai.assistant.disabledElements');for(const _0x189405 of _0x120736['getRanges']())for(const _0x577da2 of _0x189405['getItems']())if(_0x577da2['is']('element')&&_0x1f34cd['includes'](_0x577da2['name']))return void(this['isEnabled']=!0x1);this['isEnabled']=!0x0;}['execute'](_0x50ecfc='',_0x4031a1='',_0x23d535='custom'){this['editor']['plugins']['get'](AIAssistantUI)['showUI'](_0x50ecfc,_0x4031a1,_0x23d535);}}function _isContextAvailable(_0x18d103){const _0x536415=_0x18d103['document']['selection'];return _0x536415['isCollapsed']?0x0!==[..._0x536415['getSelectedBlocks']()]['length']&&![..._0x536415['getSelectedBlocks']()][0x0]['isEmpty']:!!_0x18d103['hasContent'](_0x536415['getFirstRange']());}function _getEnabledCommands(_0x15663c,_0x1425ad){const _0x402f83=new Set();for(const _0x471337 of _0x15663c['values']())(_0x1425ad||!0x1===_0x471337['requiresContent'])&&_0x402f83['add'](_0x471337['id']);return Array['from'](_0x402f83);}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(_0x369000,_0x5e9707,_0x326e58){super(),this['editor']=_0x369000,this['textAdapter']=_0x5e9707,this['_sanitizationContainer']=document['createElement']('div'),this['_domParser']=new DOMParser(),this['_xmlSerializer']=new XMLSerializer(),this['view']=_0x326e58,this['set']({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on']('set:currentContext',(_0x4b0370,_0x3e24b9,_0x13c7b0)=>{this['view']['value']=this['_sanitizeHTML'](_0x13c7b0);}),this['listenTo'](this['view'],'submitPrompt',(_0x1c14ad,_0x1a2526)=>{const _0x475c17=this['currentContext']||this['initialContext'];this['_handleQuery'](_0x1a2526,_0x475c17,'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:_0x5cc2f4,query:_0x523f6a,htmlContent:_0xafc499,label:_0x5497be,mainActionLabel:_0x58cc4e}){this['view']['prompt']=_0x5497be,this['view']['mainAction']=_0x58cc4e,this['initialContext']=_0xafc499,_0x523f6a&&(this['view']['isRendered']?this['_handleQuery'](_0x523f6a,_0xafc499,_0x5cc2f4,_0x5497be):this['view']['once']('render',()=>{this['_handleQuery'](_0x523f6a,_0xafc499,_0x5cc2f4,_0x5497be);}));}['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'](_0x2716db,_0x465131,_0xb7e988,_0x4c3667){return this['isProcessing']=!0x0,this['view']['startProcessing'](),this['previousContext']=_0x465131,this['previousQuery']=_0x2716db,this['previousLabel']=_0x4c3667||_0x2716db,this['previousActionId']=_0xb7e988,new Promise(_0x5a45a8=>{this['textAdapter']['makeRequest']({'query':_0x2716db,'context':_0x465131,'onData':_0x2c07e2=>{this['currentResponse']=_0x2c07e2,this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse']);},'actionId':_0xb7e988})['then'](()=>{!this['currentContext']&&this['currentResponse']&&(this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse'],!0x0));})['catch'](_0x9dbe65=>{_0x9dbe65 instanceof AIRequestError?this['view']['handleError'](_0x9dbe65['message']):this['view']['handleError'](),_0x5a45a8();})['finally'](()=>{this['stopProcessing'](),_0x5a45a8();});});}['_parseAndNormalizeContent'](_0x26509c,_0x1adf9e=!0x1){const _0x2b4da0=ALL_UNTIL_FIRST_HTML_REGEX['exec'](_0x26509c);_0x26509c=_0x2b4da0?_0x26509c['substring'](_0x2b4da0[0x1]['length']):_0x26509c['length']<MIN_RESPONSE_LENGTH_TO_FIRST_HTML&&!_0x1adf9e?'':this['_stripMarkdownSyntax'](_0x26509c);const _0x2be772=this['_domParser']['parseFromString'](_0x26509c,'text/html');if(_0x2b4da0){const _0x4db8e9=Array['from'](_0x2be772['body']['childNodes']);_0x4db8e9['reverse']();for(const _0x93ac6d of _0x4db8e9){if(_0x93ac6d['nodeType']==Node['ELEMENT_NODE'])break;_0x93ac6d['remove']();}}const _0x4aa8ae=this['editor']['data']['processor']['toView'](this['_xmlSerializer']['serializeToString'](_0x2be772['body']));this['_isH1TagSupportEnabled']()||this['_normalizeResponseHeadings'](_0x4aa8ae);const _0x2be88e=this['editor']['config']['get']('ai.assistant.preserveComments'),_0x4dfe1c=this['editor']['data']['toModel'](_0x4aa8ae);return _0x2be88e||_0x4dfe1c['markers']['clear'](),this['editor']['data']['stringify'](_0x4dfe1c);}['_normalizeResponseHeadings'](_0x39b760){const _0x4d335f=new ViewUpcastWriter(this['editor']['editing']['view']['document']),_0x45d2a6=new Matcher({'name':/^h[1-5]$/}),_0x2fd46d=[];let _0xf9d31e=!0x1;for(const _0x1dbf89 of _0x39b760)_0x1dbf89['is']('element')&&_0x45d2a6['match'](_0x1dbf89)&&(_0x2fd46d['push'](_0x1dbf89),'h1'==_0x1dbf89['name']&&(_0xf9d31e=!0x0));if(_0xf9d31e){for(const _0x47ebfa of _0x2fd46d)_0x4d335f['rename']('h'+(parseInt(_0x47ebfa['name'][0x1])+0x1),_0x47ebfa);}}['_isH1TagSupportEnabled'](){const {data:_0x2384a0,editing:_0x5652af}=this['editor'],_0x5aa140=_0x2384a0['htmlProcessor']['toView']('<h1></h1>'),_0x16c7fc=_0x2384a0['toView'](_0x2384a0['toModel'](_0x5aa140));return!!_0x5652af['view']['domConverter']['viewToDom'](_0x16c7fc)['querySelector']('h1');}['_sanitizeHTML'](_0x19fb60){return this['editor']['editing']['view']['domConverter']['setContentOf'](this['_sanitizationContainer'],_0x19fb60),this['_sanitizationContainer']['innerHTML'];}['_stripMarkdownSyntax'](_0x290f46){const _0x532d84=_0x290f46['trim']();return _0x532d84['startsWith']('```html')?_0x532d84['endsWith']('```')?_0x532d84['substring'](0x7,_0x532d84['length']-0x3):_0x532d84['substring'](0x7):_0x290f46;}}const AIFormToolbarViewMainActionLabel={'REPLACE':'replace','INSERT':'insert'};class AIFormToolbarView extends ToolbarView{constructor(_0x133d5b){super(_0x133d5b),this['set']('isVisible',!0x1),this['set']('mainAction',AIFormToolbarViewMainActionLabel['REPLACE']),this['replaceButton']=this['_createButton']('','ck-button-action'),this['replaceButton']['bind']('label')['to'](this,'mainAction',_0x4abf3e=>getTranslation$j(_0x133d5b,'AI_'+_0x4abf3e['toUpperCase']()+'_CONTENT')),this['insertButton']=this['_createButton'](getTranslation$j(_0x133d5b,'Insert\x20below')),this['tryAgainButton']=this['_createButton'](getTranslation$j(_0x133d5b,'Try\x20again')),this['stopButton']=this['_createButton'](getTranslation$j(_0x133d5b,'Stop'));const _0x499ef=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-form__toolbar',_0x499ef['if']('isVisible','ck-hidden',_0x351b33=>!_0x351b33)]}}),this['items']['addMany']([this['replaceButton'],this['insertButton'],this['tryAgainButton'],this['stopButton']]);}['_createButton'](_0x39865f,_0x18995c){const _0x4d2acc=new ButtonView(this['locale']);return _0x4d2acc['set']({'label':_0x39865f,'class':_0x18995c||'','isVisible':!0x0,'withText':!0x0}),_0x4d2acc;}}class AIFormContentArea extends View{['contentFieldView'];['copyButtonView'];constructor(_0xa28e5b,_0x2626fe=''){super(_0xa28e5b),this['set']({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x5e6bf7=this['bindTemplate'];this['contentFieldView']=new ContentFieldView(_0xa28e5b,_0x2626fe),this['copyButtonView']=this['_createCopyButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area-wrapper',_0x5e6bf7['if']('isVisible','ck-hidden',_0x56d7c4=>!_0x56d7c4)],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area',_0x5e6bf7['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 _0x11151b=!0x1;this['on']('change:value',(_0x589eb8,_0x18b3a9,_0x4084fe)=>{const _0x51fbb7=!this['contentFieldView']['element']['querySelector']('.ck-ai-form__loader');this['contentFieldView']['setContent'](_0x4084fe),this['isProcessing']&&_0x51fbb7&&!_0x11151b&&this['element']['scrollTo']({'top':this['element']['scrollHeight'],'behavior':'smooth'});}),this['on']('change:isProcessing',(_0x2a1b80,_0x10012f,_0x182644)=>{_0x11151b=!0x1,_0x182644?(this['value']=null,this['contentFieldView']['appendLoader']()):this['value']||this['contentFieldView']['setContent']('');}),this['listenTo'](this['element'],'wheel',()=>{_0x11151b=!0x0;}),this['listenTo'](this['element'],'mousedown',()=>{_0x11151b=!0x0;});}['focus'](){this['element']['focus']();}['_createCopyButton'](){const _0x38d59d=this['locale'],_0xd10fbe=new ButtonView(this['locale']),_0x16f287='ck-ai-form__copy-button';return _0xd10fbe['set']({'label':getTranslation$j(_0x38d59d,'Copy'),'icon':IconCopy,'class':_0x16f287,'tooltip':!0x0}),_0xd10fbe['bind']('isVisible')['to'](this,'value',_0x5bc554=>!!_0x5bc554),_0xd10fbe['bind']('isEnabled')['to'](this,'isProcessing',_0x666616=>!_0x666616),_0xd10fbe['on']('execute',()=>{this['_copyHTMLToClipboard'](this['contentFieldView']['element']),_0xd10fbe['icon']=IconCheck,_0xd10fbe['class']=_0x16f287+'\x20ck-ai-form__copy-button--copied',this['focus'](),setTimeout(()=>{_0xd10fbe['icon']=IconCopy,_0xd10fbe['class']=_0x16f287;},0x3e8);}),_0xd10fbe;}['_copyHTMLToClipboard'](_0x2a7405){const {window:_0x255f59,document:_0x2067e6}=_0x176c57;if(_0x255f59['ClipboardItem']){const {Blob:_0x2552b,ClipboardItem:_0x715fa4}=_0x255f59,_0x101d78=[new _0x715fa4({'text/html':new _0x2552b([_0x2a7405['innerHTML']],{'type':'text/html'}),'text/plain':new _0x2552b([_0x2a7405['textContent']||''],{'type':'text/plain'})})];navigator['clipboard']['write'](_0x101d78);}else{const _0x385566=_0x2067e6['createElement']('div');_0x385566['style']['position']='absolute',_0x385566['style']['left']='-9999px',_0x385566['innerHTML']='<span>[</span>'+_0x2a7405['innerHTML']+'<span>]</span>',_0x2067e6['body']['appendChild'](_0x385566);const _0x13f39d=_0x2067e6['createRange']();_0x13f39d['setStartAfter'](_0x385566['firstElementChild']),_0x13f39d['setEndBefore'](_0x385566['lastElementChild']);const _0x4ff1ae=_0x255f59['getSelection']();_0x4ff1ae['removeAllRanges'](),_0x4ff1ae['addRange'](_0x13f39d),_0x2067e6['execCommand']('copy'),_0x385566['remove']();}}}class ContentFieldView extends View{constructor(_0x2894c0,_0x167ddf=''){super(_0x2894c0),this['loaderView']=this['_createLoader'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content',_0x167ddf,'ck-reset_all-excluded','ck-ai-form__content-field']}});}['setContent'](_0x425df5){this['element']['innerHTML']=_0x425df5;}['appendLoader'](){this['element']['appendChild'](this['loaderView']['element']);}['_createLoader'](){const _0x427577=new View(),_0x34797c=this['locale'],_0x57da3d=new SpinnerView();return _0x57da3d['isVisible']=!0x0,_0x427577['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__loader']},'children':[_0x57da3d,{'text':getTranslation$j(_0x34797c,'AI\x20is\x20writing...')}]}),_0x427577['render'](),_0x427577;}}class AIFormErrorView extends View{constructor(_0x5a3d81,_0x1b3955=''){super(_0x5a3d81);const _0x491eae=new IconView(),_0x1e6454=this['bindTemplate'];this['set']('text',_0x1b3955),_0x491eae['content']=IconError,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__error']},'children':[_0x491eae,{'text':_0x1e6454['to']('text')}]});}}class AIFormPromptView extends AutocompleteView{['submitButtonView'];['showHistoryButtonView'];constructor(_0xd5f4c4,_0x3d9af2){super(_0xd5f4c4,_0x3d9af2),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',(_0x49a4c1,_0x3791dd)=>{_0x49a4c1['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x3791dd());});}['_createSubmitButton'](){const _0x132d70=new ButtonView(this['locale']),_0x451f36=this['locale'];return _0x132d70['set']({'icon':IconSubmit,'label':getTranslation$j(_0x451f36,'Submit'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-form__submit'}),_0x132d70['on']('execute',()=>{this['submit']();}),_0x132d70['bind']('isEnabled')['to'](this['queryView']['fieldView'],'isEmpty',this,'isEnabled',(_0x21e2cd,_0x81b994)=>!_0x21e2cd&&_0x81b994),_0x132d70;}['_createShowHistoryButton'](){const _0x597850=new ButtonView(this['locale']),_0x159562=this['resultsView'],_0x5f15e5=this['locale'];_0x597850['set']({'label':getTranslation$j(_0x5f15e5,'History'),'withText':!0x1,'icon':IconAIHistory,'tooltip':!0x0,'tooltipPosition':'sw','class':'ck-ai-form__toggle-history'}),_0x597850['bind']('isOn')['to'](_0x159562,'isVisible'),_0x597850['bind']('isEnabled')['to'](this,'isEnabled'),_0x597850['on']('execute',()=>{_0x159562['isVisible']=!_0x159562['isVisible'],_0x159562['isVisible']?this['filteredView']['focus']():this['focus']();});const _0x5224eb=()=>{_0x176c57['window']['requestAnimationFrame'](()=>{if(isVisible(this['element'])){const _0x155db5=new Rect(this['queryView']['fieldView']['element']),_0x28563c=_0x155db5['width'],_0x39d42e='rtl'===_0x5f15e5['uiLanguageDirection']?'left':'right';_0x155db5['excludeScrollbarsAndBorders'](),_0x597850['element']['style'][_0x39d42e]=_0x28563c-_0x155db5['width']+0x1+'px';}});};return this['queryView']['fieldView']['on']('update',_0x5224eb),this['on']('render',_0x5224eb),_0x597850;}['submit'](){const _0x5b91eb=this['queryView']['fieldView']['element']['value'];this['fire']('submit',_0x5b91eb);}['focus'](_0x415448){-0x1===_0x415448?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}}class AIHistoryListView extends ListView{['historyGroupView'];['clearHistoryButton'];constructor(_0x414e00){super(_0x414e00),this['clearHistoryButton']=this['_createClearHistoryButton'](),this['historyGroupView']=new ListItemGroupView(),this['historyGroupView']['children']['add'](this['clearHistoryButton'],0x1),this['historyGroupView']['label']=getTranslation$j(_0x414e00,'Prompt\x20history'),this['historyGroupView']['items']['delegate']('execute')['to'](this),this['items']['add'](this['historyGroupView']);}['filter'](){let _0x47684c=0x0;for(const _0x3c97a4 of this['items'])_0x47684c+=_0x3c97a4['items']['length'];return{'resultsCount':_0x47684c,'totalItemsCount':_0x47684c};}['_createClearHistoryButton'](){const _0xaab166=this['locale'],_0x5e60b8=new ButtonView(this['locale']);return _0x5e60b8['set']({'label':'('+getTranslation$j(_0xaab166,'Clear')+')','withText':!0x0}),_0x5e60b8['on']('execute',()=>this['fire']('clearHistory')),_0x5e60b8;}}function isLength(_0x41a1c2){return Number['isSafeInteger'](_0x41a1c2)&&_0x41a1c2>=0x0;}function isArrayLike(_0x16a1b0){return null!=_0x16a1b0&&'function'!=typeof _0x16a1b0&&isLength(_0x16a1b0['length']);}function isUnsafeProperty(_0x30dc74){return'__proto__'===_0x30dc74;}function isDeepKey(_0x47a6ef){switch(typeof _0x47a6ef){case'number':case'symbol':return!0x1;case'string':return _0x47a6ef['includes']('.')||_0x47a6ef['includes']('[')||_0x47a6ef['includes'](']');}}function toKey(_0x30cddf){return'string'==typeof _0x30cddf||'symbol'==typeof _0x30cddf?_0x30cddf:Object['is'](_0x30cddf?.['valueOf']?.(),-0x0)?'-0':String(_0x30cddf);}function toString$3(_0x4bc475){if(null==_0x4bc475)return'';if('string'==typeof _0x4bc475)return _0x4bc475;if(Array['isArray'](_0x4bc475))return _0x4bc475['map'](toString$3)['join'](',');const _0x2b09b6=String(_0x4bc475);return'0'===_0x2b09b6&&Object['is'](Number(_0x4bc475),-0x0)?'-0':_0x2b09b6;}function toPath(_0x5e20a9){if(Array['isArray'](_0x5e20a9))return _0x5e20a9['map'](toKey);if('symbol'==typeof _0x5e20a9)return[_0x5e20a9];const _0xb1b2cb=[],_0x461a23=(_0x5e20a9=toString$3(_0x5e20a9))['length'];if(0x0===_0x461a23)return _0xb1b2cb;let _0x435c07=0x0,_0x12be19='',_0x198c5f='',_0x309e8e=!0x1;for(0x2e===_0x5e20a9['charCodeAt'](0x0)&&(_0xb1b2cb['push'](''),_0x435c07++);_0x435c07<_0x461a23;){const _0x1c94ac=_0x5e20a9[_0x435c07];_0x198c5f?'\x5c'===_0x1c94ac&&_0x435c07+0x1<_0x461a23?(_0x435c07++,_0x12be19+=_0x5e20a9[_0x435c07]):_0x1c94ac===_0x198c5f?_0x198c5f='':_0x12be19+=_0x1c94ac:_0x309e8e?'\x22'===_0x1c94ac||'\x27'===_0x1c94ac?_0x198c5f=_0x1c94ac:']'===_0x1c94ac?(_0x309e8e=!0x1,_0xb1b2cb['push'](_0x12be19),_0x12be19=''):_0x12be19+=_0x1c94ac:'['===_0x1c94ac?(_0x309e8e=!0x0,_0x12be19&&(_0xb1b2cb['push'](_0x12be19),_0x12be19='')):'.'===_0x1c94ac?_0x12be19&&(_0xb1b2cb['push'](_0x12be19),_0x12be19=''):_0x12be19+=_0x1c94ac,_0x435c07++;}return _0x12be19&&_0xb1b2cb['push'](_0x12be19),_0xb1b2cb;}function get(_0x2a3a5b,_0x3c34f8,_0x3f86f4){if(null==_0x2a3a5b)return _0x3f86f4;switch(typeof _0x3c34f8){case'string':{if(isUnsafeProperty(_0x3c34f8))return _0x3f86f4;const _0x35081f=_0x2a3a5b[_0x3c34f8];return void 0x0===_0x35081f?isDeepKey(_0x3c34f8)?get(_0x2a3a5b,toPath(_0x3c34f8),_0x3f86f4):_0x3f86f4:_0x35081f;}case'number':case'symbol':{'number'==typeof _0x3c34f8&&(_0x3c34f8=toKey(_0x3c34f8));const _0x44f319=_0x2a3a5b[_0x3c34f8];return void 0x0===_0x44f319?_0x3f86f4:_0x44f319;}default:{if(Array['isArray'](_0x3c34f8))return getWithPath(_0x2a3a5b,_0x3c34f8,_0x3f86f4);if(isUnsafeProperty(_0x3c34f8=Object['is'](_0x3c34f8?.['valueOf'](),-0x0)?'-0':String(_0x3c34f8)))return _0x3f86f4;const _0x5b7ca0=_0x2a3a5b[_0x3c34f8];return void 0x0===_0x5b7ca0?_0x3f86f4:_0x5b7ca0;}}}function getWithPath(_0x3d7ccc,_0x284bf2,_0x2520ea){if(0x0===_0x284bf2['length'])return _0x2520ea;let _0x62a409=_0x3d7ccc;for(let _0x5bb27b=0x0;_0x5bb27b<_0x284bf2['length'];_0x5bb27b++){if(null==_0x62a409)return _0x2520ea;if(isUnsafeProperty(_0x284bf2[_0x5bb27b]))return _0x2520ea;_0x62a409=_0x62a409[_0x284bf2[_0x5bb27b]];}return void 0x0===_0x62a409?_0x2520ea:_0x62a409;}function isObject$3(_0x350d35){return null!==_0x350d35&&('object'==typeof _0x350d35||'function'==typeof _0x350d35);}function isPrimitive(_0x1f892e){return null==_0x1f892e||'object'!=typeof _0x1f892e&&'function'!=typeof _0x1f892e;}function isEqualsSameValueZero(_0x16973b,_0x3df9c3){return _0x16973b===_0x3df9c3||Number['isNaN'](_0x16973b)&&Number['isNaN'](_0x3df9c3);}function getSymbols(_0x14729b){return Object['getOwnPropertySymbols'](_0x14729b)['filter'](_0x20ee39=>Object['prototype']['propertyIsEnumerable']['call'](_0x14729b,_0x20ee39));}function getTag(_0x544baf){return null==_0x544baf?void 0x0===_0x544baf?'[object\x20Undefined]':'[object\x20Null]':Object['prototype']['toString']['call'](_0x544baf);}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$1(_0x5f45d7){return ArrayBuffer['isView'](_0x5f45d7)&&!(_0x5f45d7 instanceof DataView);}function cloneDeepWith$1(_0x2e3008,_0x3e8a4d){return cloneDeepWithImpl(_0x2e3008,void 0x0,_0x2e3008,new Map(),_0x3e8a4d);}function cloneDeepWithImpl(_0x472bbe,_0x38c4ff,_0x281979,_0x5bf2c5=new Map(),_0x4dbba0=void 0x0){const _0x15f549=_0x4dbba0?.(_0x472bbe,_0x38c4ff,_0x281979,_0x5bf2c5);if(void 0x0!==_0x15f549)return _0x15f549;if(isPrimitive(_0x472bbe))return _0x472bbe;if(_0x5bf2c5['has'](_0x472bbe))return _0x5bf2c5['get'](_0x472bbe);if(Array['isArray'](_0x472bbe)){const _0x9b2e44=new Array(_0x472bbe['length']);_0x5bf2c5['set'](_0x472bbe,_0x9b2e44);for(let _0x1f8b4e=0x0;_0x1f8b4e<_0x472bbe['length'];_0x1f8b4e++)_0x9b2e44[_0x1f8b4e]=cloneDeepWithImpl(_0x472bbe[_0x1f8b4e],_0x1f8b4e,_0x281979,_0x5bf2c5,_0x4dbba0);return Object['hasOwn'](_0x472bbe,'index')&&(_0x9b2e44['index']=_0x472bbe['index']),Object['hasOwn'](_0x472bbe,'input')&&(_0x9b2e44['input']=_0x472bbe['input']),_0x9b2e44;}if(_0x472bbe instanceof Date)return new Date(_0x472bbe['getTime']());if(_0x472bbe instanceof RegExp){const _0x2f04c5=new RegExp(_0x472bbe['source'],_0x472bbe['flags']);return _0x2f04c5['lastIndex']=_0x472bbe['lastIndex'],_0x2f04c5;}if(_0x472bbe instanceof Map){const _0x1899f3=new Map();_0x5bf2c5['set'](_0x472bbe,_0x1899f3);for(const [_0x540caf,_0x1508e8]of _0x472bbe)_0x1899f3['set'](_0x540caf,cloneDeepWithImpl(_0x1508e8,_0x540caf,_0x281979,_0x5bf2c5,_0x4dbba0));return _0x1899f3;}if(_0x472bbe instanceof Set){const _0x203d74=new Set();_0x5bf2c5['set'](_0x472bbe,_0x203d74);for(const _0x1c4b8a of _0x472bbe)_0x203d74['add'](cloneDeepWithImpl(_0x1c4b8a,void 0x0,_0x281979,_0x5bf2c5,_0x4dbba0));return _0x203d74;}if('undefined'!=typeof Buffer&&Buffer['isBuffer'](_0x472bbe))return _0x472bbe['subarray']();if(isTypedArray$1(_0x472bbe)){const _0xedb50a=new(Object['getPrototypeOf'](_0x472bbe))['constructor'](_0x472bbe['length']);_0x5bf2c5['set'](_0x472bbe,_0xedb50a);for(let _0x5d3529=0x0;_0x5d3529<_0x472bbe['length'];_0x5d3529++)_0xedb50a[_0x5d3529]=cloneDeepWithImpl(_0x472bbe[_0x5d3529],_0x5d3529,_0x281979,_0x5bf2c5,_0x4dbba0);return _0xedb50a;}if(_0x472bbe instanceof ArrayBuffer||'undefined'!=typeof SharedArrayBuffer&&_0x472bbe instanceof SharedArrayBuffer)return _0x472bbe['slice'](0x0);if(_0x472bbe instanceof DataView){const _0x2b22a9=new DataView(_0x472bbe['buffer']['slice'](0x0),_0x472bbe['byteOffset'],_0x472bbe['byteLength']);return _0x5bf2c5['set'](_0x472bbe,_0x2b22a9),copyProperties(_0x2b22a9,_0x472bbe,_0x281979,_0x5bf2c5,_0x4dbba0),_0x2b22a9;}if('undefined'!=typeof File&&_0x472bbe instanceof File){const _0x3d6ab8=new File([_0x472bbe],_0x472bbe['name'],{'type':_0x472bbe['type']});return _0x5bf2c5['set'](_0x472bbe,_0x3d6ab8),copyProperties(_0x3d6ab8,_0x472bbe,_0x281979,_0x5bf2c5,_0x4dbba0),_0x3d6ab8;}if('undefined'!=typeof Blob&&_0x472bbe instanceof Blob){const _0x3ac557=new Blob([_0x472bbe],{'type':_0x472bbe['type']});return _0x5bf2c5['set'](_0x472bbe,_0x3ac557),copyProperties(_0x3ac557,_0x472bbe,_0x281979,_0x5bf2c5,_0x4dbba0),_0x3ac557;}if(_0x472bbe instanceof Error){const _0x378710=structuredClone(_0x472bbe);return _0x5bf2c5['set'](_0x472bbe,_0x378710),_0x378710['message']=_0x472bbe['message'],_0x378710['name']=_0x472bbe['name'],_0x378710['stack']=_0x472bbe['stack'],_0x378710['cause']=_0x472bbe['cause'],_0x378710['constructor']=_0x472bbe['constructor'],copyProperties(_0x378710,_0x472bbe,_0x281979,_0x5bf2c5,_0x4dbba0),_0x378710;}if(_0x472bbe instanceof Boolean){const _0x3c7187=new Boolean(_0x472bbe['valueOf']());return _0x5bf2c5['set'](_0x472bbe,_0x3c7187),copyProperties(_0x3c7187,_0x472bbe,_0x281979,_0x5bf2c5,_0x4dbba0),_0x3c7187;}if(_0x472bbe instanceof Number){const _0x206fda=new Number(_0x472bbe['valueOf']());return _0x5bf2c5['set'](_0x472bbe,_0x206fda),copyProperties(_0x206fda,_0x472bbe,_0x281979,_0x5bf2c5,_0x4dbba0),_0x206fda;}if(_0x472bbe instanceof String){const _0x4fb760=new String(_0x472bbe['valueOf']());return _0x5bf2c5['set'](_0x472bbe,_0x4fb760),copyProperties(_0x4fb760,_0x472bbe,_0x281979,_0x5bf2c5,_0x4dbba0),_0x4fb760;}if('object'==typeof _0x472bbe&&isCloneableObject(_0x472bbe)){const _0x48c62d=Object['create'](Object['getPrototypeOf'](_0x472bbe));return _0x5bf2c5['set'](_0x472bbe,_0x48c62d),copyProperties(_0x48c62d,_0x472bbe,_0x281979,_0x5bf2c5,_0x4dbba0),_0x48c62d;}return _0x472bbe;}function copyProperties(_0x59e6ce,_0x23c0bc,_0x4163ac=_0x59e6ce,_0x47baa,_0x38448d){const _0x194178=[...Object['keys'](_0x23c0bc),...getSymbols(_0x23c0bc)];for(let _0x3a1dc8=0x0;_0x3a1dc8<_0x194178['length'];_0x3a1dc8++){const _0x538d59=_0x194178[_0x3a1dc8],_0x298147=Object['getOwnPropertyDescriptor'](_0x59e6ce,_0x538d59);(null==_0x298147||_0x298147['writable'])&&(_0x59e6ce[_0x538d59]=cloneDeepWithImpl(_0x23c0bc[_0x538d59],_0x538d59,_0x4163ac,_0x47baa,_0x38448d));}}function isCloneableObject(_0xb5328f){switch(getTag(_0xb5328f)){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 cloneDeepWith(_0x4cc5de,_0x3e5e37){return cloneDeepWith$1(_0x4cc5de,(_0x49c93b,_0x293694,_0x1615b0,_0x27cd2e)=>{const _0x4bf4cd=_0x3e5e37?.(_0x49c93b,_0x293694,_0x1615b0,_0x27cd2e);if(void 0x0!==_0x4bf4cd)return _0x4bf4cd;if('object'==typeof _0x4cc5de){if(getTag(_0x4cc5de)===objectTag&&'function'!=typeof _0x4cc5de['constructor']){const _0x1cfe74={};return _0x27cd2e['set'](_0x4cc5de,_0x1cfe74),copyProperties(_0x1cfe74,_0x4cc5de,_0x1615b0,_0x27cd2e),_0x1cfe74;}switch(Object['prototype']['toString']['call'](_0x4cc5de)){case numberTag:case stringTag:case booleanTag:{const _0x4c5390=new _0x4cc5de['constructor'](_0x4cc5de?.['valueOf']());return copyProperties(_0x4c5390,_0x4cc5de),_0x4c5390;}case argumentsTag:{const _0x54b7cd={};return copyProperties(_0x54b7cd,_0x4cc5de),_0x54b7cd['length']=_0x4cc5de['length'],_0x54b7cd[Symbol['iterator']]=_0x4cc5de[Symbol['iterator']],_0x54b7cd;}default:return;}}});}function cloneDeep(_0x5c4351){return cloneDeepWith(_0x5c4351);}const IS_UNSIGNED_INTEGER=/^(?:0|[1-9]\d*)$/;function isIndex(_0x44ce8f,_0x5e6760=Number['MAX_SAFE_INTEGER']){switch(typeof _0x44ce8f){case'number':return Number['isInteger'](_0x44ce8f)&&_0x44ce8f>=0x0&&_0x44ce8f<_0x5e6760;case'symbol':return!0x1;case'string':return IS_UNSIGNED_INTEGER['test'](_0x44ce8f);}}function isObjectLike(_0x44562b){return'object'==typeof _0x44562b&&null!==_0x44562b;}function isSymbol(_0x4d5105){return'symbol'==typeof _0x4d5105||_0x4d5105 instanceof Symbol;}function toNumber(_0x2e4269){return isSymbol(_0x2e4269)?NaN:Number(_0x2e4269);}function toFinite(_0x264e8b){if(!_0x264e8b)return 0x0===_0x264e8b?_0x264e8b:0x0;if((_0x264e8b=toNumber(_0x264e8b))===0x1/0x0||_0x264e8b===-0x1/0x0)return(_0x264e8b<0x0?-0x1:0x1)*Number['MAX_VALUE'];return _0x264e8b==_0x264e8b?_0x264e8b:0x0;}function toInteger(_0x5a5ef8){const _0x379c98=toFinite(_0x5a5ef8),_0x36a164=_0x379c98%0x1;return _0x36a164?_0x379c98-_0x36a164:_0x379c98;}function flatten$1(_0x2c510f,_0x12d6ed=0x1){const _0x421ecb=[],_0x3b0bc2=Math['floor'](_0x12d6ed);if(!isArrayLike(_0x2c510f))return _0x421ecb;const _0x4acfdb=(_0x5ee1cd,_0x182a08)=>{for(let _0x1d9004=0x0;_0x1d9004<_0x5ee1cd['length'];_0x1d9004++){const _0x92be89=_0x5ee1cd[_0x1d9004];_0x182a08<_0x3b0bc2&&(Array['isArray'](_0x92be89)||Boolean(_0x92be89?.[Symbol['isConcatSpreadable']])||null!==_0x92be89&&'object'==typeof _0x92be89&&'[object\x20Arguments]'===Object['prototype']['toString']['call'](_0x92be89))?Array['isArray'](_0x92be89)?_0x4acfdb(_0x92be89,_0x182a08+0x1):_0x4acfdb(Array['from'](_0x92be89),_0x182a08+0x1):_0x421ecb['push'](_0x92be89);}};return _0x4acfdb(Array['from'](_0x2c510f),0x0),_0x421ecb;}const regexIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,regexIsPlainProp=/^\w*$/;function isKey(_0x17768a,_0x49a6bd){return!Array['isArray'](_0x17768a)&&(!('number'!=typeof _0x17768a&&'boolean'!=typeof _0x17768a&&null!=_0x17768a&&!isSymbol(_0x17768a))||('string'==typeof _0x17768a&&(regexIsPlainProp['test'](_0x17768a)||!regexIsDeepProp['test'](_0x17768a))||null!=_0x49a6bd&&Object['hasOwn'](_0x49a6bd,_0x17768a)));}function unset(_0x43c9c0,_0xf6003c){if(null==_0x43c9c0)return!0x0;switch(typeof _0xf6003c){case'symbol':case'number':case'object':if(Array['isArray'](_0xf6003c))return unsetWithPath(_0x43c9c0,_0xf6003c);if('number'==typeof _0xf6003c?_0xf6003c=toKey(_0xf6003c):'object'==typeof _0xf6003c&&(_0xf6003c=Object['is'](_0xf6003c?.['valueOf'](),-0x0)?'-0':String(_0xf6003c)),isUnsafeProperty(_0xf6003c))return!0x1;if(void 0x0===_0x43c9c0?.[_0xf6003c])return!0x0;try{return delete _0x43c9c0[_0xf6003c],!0x0;}catch{return!0x1;}case'string':if(void 0x0===_0x43c9c0?.[_0xf6003c]&&isDeepKey(_0xf6003c))return unsetWithPath(_0x43c9c0,toPath(_0xf6003c));if(isUnsafeProperty(_0xf6003c))return!0x1;try{return delete _0x43c9c0[_0xf6003c],!0x0;}catch{return!0x1;}}}function unsetWithPath(_0x192fef,_0x49dcc6){const _0x34cae0=0x1===_0x49dcc6['length']?_0x192fef:get(_0x192fef,_0x49dcc6['slice'](0x0,-0x1)),_0x4eb422=_0x49dcc6[_0x49dcc6['length']-0x1];if(void 0x0===_0x34cae0?.[_0x4eb422])return!0x0;if(isUnsafeProperty(_0x4eb422))return!0x1;try{return delete _0x34cae0[_0x4eb422],!0x0;}catch{return!0x1;}}const assignValue=(_0x4a05e0,_0x427a55,_0x1160cf)=>{const _0x11f849=_0x4a05e0[_0x427a55];Object['hasOwn'](_0x4a05e0,_0x427a55)&&isEqualsSameValueZero(_0x11f849,_0x1160cf)&&(void 0x0!==_0x1160cf||_0x427a55 in _0x4a05e0)||(_0x4a05e0[_0x427a55]=_0x1160cf);};function updateWith(_0x23b4e1,_0x1cf0bf,_0x3ae320,_0x355544){if(null==_0x23b4e1&&!isObject$3(_0x23b4e1))return _0x23b4e1;let _0x7c8e19;_0x7c8e19=isKey(_0x1cf0bf,_0x23b4e1)?[_0x1cf0bf]:Array['isArray'](_0x1cf0bf)?_0x1cf0bf:toPath(_0x1cf0bf);const _0x43f915=_0x3ae320(get(_0x23b4e1,_0x7c8e19));let _0x464b14=_0x23b4e1;for(let _0x5091e1=0x0;_0x5091e1<_0x7c8e19['length']&&null!=_0x464b14;_0x5091e1++){const _0x1fc394=toKey(_0x7c8e19[_0x5091e1]);if(isUnsafeProperty(_0x1fc394))continue;let _0x52b1be;if(_0x5091e1===_0x7c8e19['length']-0x1)_0x52b1be=_0x43f915;else{const _0x3ffe0f=_0x464b14[_0x1fc394],_0x2a2335=_0x355544?.(_0x3ffe0f,_0x1fc394,_0x23b4e1);_0x52b1be=void 0x0!==_0x2a2335?_0x2a2335:isObject$3(_0x3ffe0f)?_0x3ffe0f:isIndex(_0x7c8e19[_0x5091e1+0x1])?[]:{};}assignValue(_0x464b14,_0x1fc394,_0x52b1be),_0x464b14=_0x464b14[_0x1fc394];}return _0x23b4e1;}function set(_0x306d16,_0x20c899,_0x3181bb){return updateWith(_0x306d16,_0x20c899,()=>_0x3181bb,()=>{});}function debounce$2(_0x5b18d1,_0x870fab,{signal:_0x34c605,edges:_0x3a3304}={}){let _0x198b05,_0x1c856f=null;const _0x152d83=null!=_0x3a3304&&_0x3a3304['includes']('leading'),_0x1c0be0=null==_0x3a3304||_0x3a3304['includes']('trailing'),_0x156ef9=()=>{null!==_0x1c856f&&(_0x5b18d1['apply'](_0x198b05,_0x1c856f),_0x198b05=void 0x0,_0x1c856f=null);};let _0x2f5bd8=null;const _0x5d163c=()=>{null!=_0x2f5bd8&&clearTimeout(_0x2f5bd8),_0x2f5bd8=setTimeout(()=>{_0x2f5bd8=null,_0x1c0be0&&_0x156ef9(),_0x3015eb();},_0x870fab);},_0x3015eb=()=>{null!==_0x2f5bd8&&(clearTimeout(_0x2f5bd8),_0x2f5bd8=null),_0x198b05=void 0x0,_0x1c856f=null;},_0x7304c2=function(..._0x19f1b9){if(_0x34c605?.['aborted'])return;_0x198b05=this,_0x1c856f=_0x19f1b9;const _0xfa3d61=null==_0x2f5bd8;_0x5d163c(),_0x152d83&&_0xfa3d61&&_0x156ef9();};return _0x7304c2['schedule']=_0x5d163c,_0x7304c2['cancel']=_0x3015eb,_0x7304c2['flush']=()=>{_0x156ef9();},_0x34c605?.['addEventListener']('abort',_0x3015eb,{'once':!0x0}),_0x7304c2;}function debounce$1(_0x3e5f82,_0x3f4ce4=0x0,_0x3647a9={}){'object'!=typeof _0x3647a9&&(_0x3647a9={});const {leading:_0x5afd06=!0x1,trailing:_0x33559b=!0x0,maxWait:_0x35ce98}=_0x3647a9,_0x15fbf1=Array(0x2);let _0x402f2d;_0x5afd06&&(_0x15fbf1[0x0]='leading'),_0x33559b&&(_0x15fbf1[0x1]='trailing');let _0xb03482=null;const _0x2c8b83=debounce$2(function(..._0x45127d){_0x402f2d=_0x3e5f82['apply'](this,_0x45127d),_0xb03482=null;},_0x3f4ce4,{'edges':_0x15fbf1}),_0x52e07f=function(..._0x4042dc){return null!=_0x35ce98&&(null===_0xb03482&&(_0xb03482=Date['now']()),Date['now']()-_0xb03482>=_0x35ce98)?(_0x402f2d=_0x3e5f82['apply'](this,_0x4042dc),_0xb03482=Date['now'](),_0x2c8b83['cancel'](),_0x2c8b83['schedule'](),_0x402f2d):(_0x2c8b83['apply'](this,_0x4042dc),_0x402f2d);};return _0x52e07f['cancel']=_0x2c8b83['cancel'],_0x52e07f['flush']=()=>(_0x2c8b83['flush'](),_0x402f2d),_0x52e07f;}function throttle$1(_0x16885e,_0x5b88df=0x0,_0x40b2b5={}){const {leading:_0x5dbea2=!0x0,trailing:_0x4c0fc2=!0x0}=_0x40b2b5;return debounce$1(_0x16885e,_0x5b88df,{'leading':_0x5dbea2,'maxWait':_0x5b88df,'trailing':_0x4c0fc2});}function isPlainObject$1(_0x5e9661){if(!_0x5e9661||'object'!=typeof _0x5e9661)return!0x1;const _0x1022d6=Object['getPrototypeOf'](_0x5e9661);return!(null!==_0x1022d6&&_0x1022d6!==Object['prototype']&&null!==Object['getPrototypeOf'](_0x1022d6))&&'[object\x20Object]'===Object['prototype']['toString']['call'](_0x5e9661);}function isEqualWith(_0x167b39,_0x1d5da1,_0x2a9fd4){return isEqualWithImpl(_0x167b39,_0x1d5da1,void 0x0,void 0x0,void 0x0,void 0x0,_0x2a9fd4);}function isEqualWithImpl(_0x16f5ea,_0x425eb0,_0x54063e,_0x322985,_0x1c1a3a,_0x2d5463,_0x34a132){const _0xb16aeb=_0x34a132(_0x16f5ea,_0x425eb0,_0x54063e,_0x322985,_0x1c1a3a,_0x2d5463);if(void 0x0!==_0xb16aeb)return _0xb16aeb;if(typeof _0x16f5ea==typeof _0x425eb0)switch(typeof _0x16f5ea){case'bigint':case'string':case'boolean':case'symbol':case'undefined':case'function':return _0x16f5ea===_0x425eb0;case'number':return _0x16f5ea===_0x425eb0||Object['is'](_0x16f5ea,_0x425eb0);case'object':return areObjectsEqual(_0x16f5ea,_0x425eb0,_0x2d5463,_0x34a132);}return areObjectsEqual(_0x16f5ea,_0x425eb0,_0x2d5463,_0x34a132);}function areObjectsEqual(_0x4a8f14,_0x4d0ba3,_0x1c608e,_0x238abd){if(Object['is'](_0x4a8f14,_0x4d0ba3))return!0x0;let _0x450103=getTag(_0x4a8f14),_0x40c81e=getTag(_0x4d0ba3);if(_0x450103===argumentsTag&&(_0x450103=objectTag),_0x40c81e===argumentsTag&&(_0x40c81e=objectTag),_0x450103!==_0x40c81e)return!0x1;switch(_0x450103){case stringTag:return _0x4a8f14['toString']()===_0x4d0ba3['toString']();case numberTag:return isEqualsSameValueZero(_0x4a8f14['valueOf'](),_0x4d0ba3['valueOf']());case booleanTag:case dateTag:case symbolTag:return Object['is'](_0x4a8f14['valueOf'](),_0x4d0ba3['valueOf']());case regexpTag:return _0x4a8f14['source']===_0x4d0ba3['source']&&_0x4a8f14['flags']===_0x4d0ba3['flags'];case functionTag:return _0x4a8f14===_0x4d0ba3;}const _0x16f108=(_0x1c608e=_0x1c608e??new Map())['get'](_0x4a8f14),_0x377502=_0x1c608e['get'](_0x4d0ba3);if(null!=_0x16f108&&null!=_0x377502)return _0x16f108===_0x4d0ba3;_0x1c608e['set'](_0x4a8f14,_0x4d0ba3),_0x1c608e['set'](_0x4d0ba3,_0x4a8f14);try{switch(_0x450103){case mapTag:if(_0x4a8f14['size']!==_0x4d0ba3['size'])return!0x1;for(const [_0x1eb554,_0x364568]of _0x4a8f14['entries']())if(!_0x4d0ba3['has'](_0x1eb554)||!isEqualWithImpl(_0x364568,_0x4d0ba3['get'](_0x1eb554),_0x1eb554,_0x4a8f14,_0x4d0ba3,_0x1c608e,_0x238abd))return!0x1;return!0x0;case setTag:{if(_0x4a8f14['size']!==_0x4d0ba3['size'])return!0x1;const _0x1ed45d=Array['from'](_0x4a8f14['values']()),_0x5e9e95=Array['from'](_0x4d0ba3['values']());for(let _0x16b11e=0x0;_0x16b11e<_0x1ed45d['length'];_0x16b11e++){const _0x5e6ff6=_0x1ed45d[_0x16b11e],_0x44e071=_0x5e9e95['findIndex'](_0x3917f6=>isEqualWithImpl(_0x5e6ff6,_0x3917f6,void 0x0,_0x4a8f14,_0x4d0ba3,_0x1c608e,_0x238abd));if(-0x1===_0x44e071)return!0x1;_0x5e9e95['splice'](_0x44e071,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'](_0x4a8f14)!==Buffer['isBuffer'](_0x4d0ba3))return!0x1;if(_0x4a8f14['length']!==_0x4d0ba3['length'])return!0x1;for(let _0x5ebe21=0x0;_0x5ebe21<_0x4a8f14['length'];_0x5ebe21++)if(!isEqualWithImpl(_0x4a8f14[_0x5ebe21],_0x4d0ba3[_0x5ebe21],_0x5ebe21,_0x4a8f14,_0x4d0ba3,_0x1c608e,_0x238abd))return!0x1;return!0x0;case arrayBufferTag:return _0x4a8f14['byteLength']===_0x4d0ba3['byteLength']&&areObjectsEqual(new Uint8Array(_0x4a8f14),new Uint8Array(_0x4d0ba3),_0x1c608e,_0x238abd);case dataViewTag:return _0x4a8f14['byteLength']===_0x4d0ba3['byteLength']&&_0x4a8f14['byteOffset']===_0x4d0ba3['byteOffset']&&areObjectsEqual(new Uint8Array(_0x4a8f14),new Uint8Array(_0x4d0ba3),_0x1c608e,_0x238abd);case errorTag:return _0x4a8f14['name']===_0x4d0ba3['name']&&_0x4a8f14['message']===_0x4d0ba3['message'];case objectTag:{if(!(areObjectsEqual(_0x4a8f14['constructor'],_0x4d0ba3['constructor'],_0x1c608e,_0x238abd)||isPlainObject$1(_0x4a8f14)&&isPlainObject$1(_0x4d0ba3)))return!0x1;const _0x1fb075=[...Object['keys'](_0x4a8f14),...getSymbols(_0x4a8f14)],_0x5d0ef3=[...Object['keys'](_0x4d0ba3),...getSymbols(_0x4d0ba3)];if(_0x1fb075['length']!==_0x5d0ef3['length'])return!0x1;for(let _0x1b3a6d=0x0;_0x1b3a6d<_0x1fb075['length'];_0x1b3a6d++){const _0x213424=_0x1fb075[_0x1b3a6d],_0x2b5964=_0x4a8f14[_0x213424];if(!Object['hasOwn'](_0x4d0ba3,_0x213424))return!0x1;if(!isEqualWithImpl(_0x2b5964,_0x4d0ba3[_0x213424],_0x213424,_0x4a8f14,_0x4d0ba3,_0x1c608e,_0x238abd))return!0x1;}return!0x0;}default:return!0x1;}}finally{_0x1c608e['delete'](_0x4a8f14),_0x1c608e['delete'](_0x4d0ba3);}}function noop$2(){}function isEqual(_0x7327d3,_0x1620ce){return isEqualWith(_0x7327d3,_0x1620ce,noop$2);}function isBuffer$2(_0x2a8aa4){return'undefined'!=typeof Buffer&&Buffer['isBuffer'](_0x2a8aa4);}function isPrototype(_0x4af24f){const _0x329d45=_0x4af24f?.['constructor'];return _0x4af24f===('function'==typeof _0x329d45?_0x329d45['prototype']:Object['prototype']);}function isTypedArray(_0x2ef28f){return isTypedArray$1(_0x2ef28f);}function times(_0x3e3ccc,_0x4c5047){if((_0x3e3ccc=toInteger(_0x3e3ccc))<0x1||!Number['isSafeInteger'](_0x3e3ccc))return[];const _0xfc0c9a=new Array(_0x3e3ccc);for(let _0x73aadd=0x0;_0x73aadd<_0x3e3ccc;_0x73aadd++)_0xfc0c9a[_0x73aadd]='function'==typeof _0x4c5047?_0x4c5047(_0x73aadd):_0x73aadd;return _0xfc0c9a;}function keysIn(_0x5e8247){if(null==_0x5e8247)return[];switch(typeof _0x5e8247){case'object':case'function':return isArrayLike(_0x5e8247)?arrayLikeKeysIn(_0x5e8247):isPrototype(_0x5e8247)?prototypeKeysIn(_0x5e8247):keysInImpl(_0x5e8247);default:return keysInImpl(Object(_0x5e8247));}}function keysInImpl(_0x539f19){const _0x21e428=[];for(const _0x553aa5 in _0x539f19)_0x21e428['push'](_0x553aa5);return _0x21e428;}function prototypeKeysIn(_0x2f01d6){return keysInImpl(_0x2f01d6)['filter'](_0x5adc25=>'constructor'!==_0x5adc25);}function arrayLikeKeysIn(_0x4b7133){const _0x5b07b0=times(_0x4b7133['length'],_0x4bf617=>''+_0x4bf617),_0x2e0a7d=new Set(_0x5b07b0);isBuffer$2(_0x4b7133)&&(_0x2e0a7d['add']('offset'),_0x2e0a7d['add']('parent')),isTypedArray(_0x4b7133)&&(_0x2e0a7d['add']('buffer'),_0x2e0a7d['add']('byteLength'),_0x2e0a7d['add']('byteOffset'));const _0x25e183=keysInImpl(_0x4b7133)['filter'](_0x39b4bb=>!_0x2e0a7d['has'](_0x39b4bb));return Array['isArray'](_0x4b7133)?[..._0x5b07b0,..._0x25e183]:[..._0x5b07b0['filter'](_0x7ac5de=>Object['hasOwn'](_0x4b7133,_0x7ac5de)),..._0x25e183];}function isPlainObject(_0x4b2329){if('object'!=typeof _0x4b2329)return!0x1;if(null==_0x4b2329)return!0x1;if(null===Object['getPrototypeOf'](_0x4b2329))return!0x0;if('[object\x20Object]'!==Object['prototype']['toString']['call'](_0x4b2329)){const _0x38a0ad=_0x4b2329[Symbol['toStringTag']];if(null==_0x38a0ad)return!0x1;return!!Object['getOwnPropertyDescriptor'](_0x4b2329,Symbol['toStringTag'])?.['writable']&&_0x4b2329['toString']()==='[object\x20'+_0x38a0ad+']';}let _0x4662f5=_0x4b2329;for(;null!==Object['getPrototypeOf'](_0x4662f5);)_0x4662f5=Object['getPrototypeOf'](_0x4662f5);return Object['getPrototypeOf'](_0x4b2329)===_0x4662f5;}function getSymbolsIn(_0x2fb7fb){const _0x3ae08a=[];for(;_0x2fb7fb;)_0x3ae08a['push'](...getSymbols(_0x2fb7fb)),_0x2fb7fb=Object['getPrototypeOf'](_0x2fb7fb);return _0x3ae08a;}function omit(_0x55cd51,..._0x3de594){if(null==_0x55cd51)return{};const _0x14e430=cloneInOmit(_0x55cd51,_0x3de594=flatten$1(_0x3de594));for(let _0x1d3210=0x0;_0x1d3210<_0x3de594['length'];_0x1d3210++){let _0x1103a4=_0x3de594[_0x1d3210];switch(typeof _0x1103a4){case'object':Array['isArray'](_0x1103a4)||(_0x1103a4=Array['from'](_0x1103a4));for(let _0x96d38e=0x0;_0x96d38e<_0x1103a4['length'];_0x96d38e++){unset(_0x14e430,_0x1103a4[_0x96d38e]);}break;case'string':case'symbol':case'number':unset(_0x14e430,_0x1103a4);}}return _0x14e430;}function cloneInOmit(_0x1857c5,_0x367837){return _0x367837['some'](_0x556c48=>Array['isArray'](_0x556c48)||isDeepKey(_0x556c48))?deepCloneInOmit(_0x1857c5):shallowCloneInOmit(_0x1857c5);}function shallowCloneInOmit(_0xf39f95){const _0x5935b4={},_0x138c06=[...keysIn(_0xf39f95),...getSymbolsIn(_0xf39f95)];for(let _0x2b41a3=0x0;_0x2b41a3<_0x138c06['length'];_0x2b41a3++){const _0x266bce=_0x138c06[_0x2b41a3];_0x5935b4[_0x266bce]=_0xf39f95[_0x266bce];}return _0x5935b4;}function deepCloneInOmit(_0x3bef1e){const _0x2e5e44={},_0x539ab7=[...keysIn(_0x3bef1e),...getSymbolsIn(_0x3bef1e)];for(let _0x2fd992=0x0;_0x2fd992<_0x539ab7['length'];_0x2fd992++){const _0x54b432=_0x539ab7[_0x2fd992];_0x2e5e44[_0x54b432]=cloneDeepWith(_0x3bef1e[_0x54b432],_0xbad046=>{if(!isPlainObject(_0xbad046))return _0xbad046;});}return _0x2e5e44;}function isElement$2(_0x5226a9){return isObjectLike(_0x5226a9)&&0x1===_0x5226a9['nodeType']&&!isPlainObject(_0x5226a9);}const htmlEscapes={'&':'&amp;','<':'&lt;','>':'&gt;','\x22':'&quot;','\x27':'&#39;'};function escape$1(_0x5a7ce7){return _0x5a7ce7['replace'](/[&<>"']/g,_0x131355=>htmlEscapes[_0x131355]);}function escape(_0x4c2370){return escape$1(toString$3(_0x4c2370));}function escapeRegExp$2(_0x5b6029){return _0x5b6029['replace'](/[\\^$.*+?()[\]{}|]/g,'\x5c$&');}function escapeRegExp$1(_0x2fa255){return escapeRegExp$2(toString$3(_0x2fa255));}const htmlUnescapes={'&amp;':'&','&lt;':'<','&gt;':'>','&quot;':'\x22','&#39;':'\x27'};function unescape$2(_0x14d755){return _0x14d755['replace'](/&(?:amp|lt|gt|quot|#(0+)?39);/g,_0xb3cc63=>htmlUnescapes[_0xb3cc63]||'\x27');}function unescape$1(_0x533d68){return unescape$2(toString$3(_0x533d68));}class AIHistoryListItemView extends ListItemView{constructor(_0x53c02f){super();const _0x50e9de=new ButtonLabelView(),_0x51c22e=new ButtonView(this['locale'],_0x50e9de);this['children']['add'](_0x51c22e),_0x51c22e['set']({'label':_0x53c02f['prompt'],'withText':!0x0}),_0x51c22e['on']('execute',()=>{this['fire']('execute',{'value':unescape$1(_0x53c02f['prompt'])});});}}const SESSION_STORAGE_KEY='CKEditor/AIFormView/PromptHistory',MAX_HISTORY_LENGTH=0x14;class PromptHistory extends Collection{constructor(){super(),this['_loadFromSessionStorage'](),this['on']('add',(_0x29e46a,_0x2722c2)=>{const _0xde1119=normalizePromptText(_0x2722c2['prompt']);for(const _0x5df4a0 of this)if(_0x5df4a0!=_0x2722c2&&normalizePromptText(_0x5df4a0['prompt'])===_0xde1119){this['remove'](_0x5df4a0);break;}this['length']>MAX_HISTORY_LENGTH&&this['remove'](this['last']),this['_saveToSessionStorage']();}),this['on']('remove',()=>{this['_saveToSessionStorage']();});}['_loadFromSessionStorage'](){const _0x3a1491=sessionStorage['getItem'](SESSION_STORAGE_KEY)||'[]';this['addMany'](JSON['parse'](_0x3a1491));}['_saveToSessionStorage'](){sessionStorage['setItem'](SESSION_STORAGE_KEY,JSON['stringify'](this['map'](_0x4fad5b=>_0x4fad5b)));}}function normalizePromptText(_0x124c0d){return _0x124c0d['toLowerCase']()['trim']();}class AIFormView extends View{['focusTracker'];['keystrokes'];['contentArea'];['toolbar'];['promptView'];['errorView'];['_focusables'];['focusCycler'];['_promptHistory'];constructor(_0x572643,_0x30f41b,_0x1bca8e=''){super(_0x572643),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(_0x572643),this['contentArea']=new AIFormContentArea(_0x572643,_0x1bca8e),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 _0x48322a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form',_0x30f41b],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form-content']},'children':[{'tag':'div','attributes':{'class':[_0x48322a['if']('isError','ck-hidden',_0x1c5886=>!_0x1c5886)]},'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'](_0x479afe=0x1){-0x1===_0x479afe?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 _0x197b9c=this['locale'],_0x1c2fcb=new AIFormPromptView(_0x197b9c,{'queryView':{'label':getTranslation$j(_0x197b9c,'Ask\x20AI\x20to\x20edit\x20or\x20generate'),'creator':createLabeledTextarea,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':getTranslation$j(_0x197b9c,'Empty\x20history'),'secondary':getTranslation$j(_0x197b9c,'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.')}}},'filteredView':this['_createHistoryView'](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1c2fcb['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x4b8fba,_0x493e18)=>_0x4b8fba&&!_0x493e18),this['listenTo'](_0x1c2fcb,'submit',(_0x50a6aa,_0x54dd86)=>{this['prompt']=_0x54dd86;const _0x22fd8b=escape(_0x54dd86);this['fire']('submitPrompt',_0x22fd8b),_0x54dd86['trim']()&&this['_promptHistory']['add']({'prompt':_0x22fd8b},0x0);},{'priority':'high'}),_0x1c2fcb;}['_createHistoryView'](){const _0x3fdfe9=new AIHistoryListView(this['locale']);return _0x3fdfe9['historyGroupView']['items']['bindTo'](this['_promptHistory'])['as'](AIHistoryListItemView),_0x3fdfe9['on']('clearHistory',()=>{this['_promptHistory']['clear'](),this['promptView']['search'](''),this['promptView']['focus']();}),_0x3fdfe9;}['_createToolbar'](){const _0x5f5835=new AIFormToolbarView(this['locale']);return _0x5f5835['replaceButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x5e0506,_0x98f2cf,_0x161af6)=>_0x5e0506&&!_0x98f2cf&&!!_0x161af6),_0x5f5835['replaceButton']['delegate']('execute')['to'](this,'replaceContent'),_0x5f5835['insertButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0xb172ff,_0x4f0199,_0x42eb66)=>_0xb172ff&&!_0x4f0199&&!!_0x42eb66),_0x5f5835['insertButton']['delegate']('execute')['to'](this,'insertContentBelow'),_0x5f5835['tryAgainButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x31cde6,_0x279f61)=>_0x31cde6&&!_0x279f61),_0x5f5835['tryAgainButton']['delegate']('execute')['to'](this,'tryAgainEvent'),_0x5f5835['stopButton']['bind']('isEnabled')['to'](this,'isProcessing'),_0x5f5835['stopButton']['delegate']('execute')['to'](this,'stopProcessing'),_0x5f5835;}['startProcessing'](){this['value']='',this['isError']=!0x1,this['isProcessing']=!0x0,this['contentArea']['isVisible']=!0x0,this['toolbar']['isVisible']=!0x0,this['contentArea']['focus']();}['finishProcessing'](){const _0x2de6df=this['locale'];this['isProcessing']=!0x1,this['prompt']='',this['promptView']['reset'](),this['value']&&(this['promptView']['queryView']['label']=getTranslation$j(_0x2de6df,'Ask\x20AI\x20to\x20improve\x20generated\x20text'));}['handleError'](_0x13053a){const _0x4fcf81=this['locale'];this['finishProcessing'](),this['isError']=!0x0,this['errorView']['text']=_0x13053a||getTranslation$j(_0x4fcf81,'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(_0x455f00){super(_0x455f00),_0x455f00['config']['define']('ai.assistant.disabledElements',['media','rawHtml','tableOfContents']),_0x455f00['config']['define']('ai.assistant.contentAreaCssClass',''),_0x455f00['config']['define']('ai.assistant.useTheme',!0x0),this['_uiCssClasses']='ck-ai-assistant-ui'+(_0x455f00['config']['get']('ai.assistant.useTheme')?'\x20ck-ai-assistant-ui_theme':'');}['init'](){const {editor:_0xc23eac}=this;this['_aiAdapter']=_0xc23eac['plugins']['get'](AIAdapter),this['_dialog']=_0xc23eac['plugins']['get'](Dialog),this['_formView']=null,this['_commandDefinitions']=this['_getResolvedCommandsDefinitions']();const _0x29c241=new ShowAIAssistantCommand(_0xc23eac,Array['from'](this['_commandDefinitions']['values']()));_0xc23eac['commands']['add']('showAIAssistant',_0x29c241),_0xc23eac['ui']['componentFactory']['add']('aiCommands',_0x2c028d=>{const _0xc80cf6=createDropdown(_0x2c028d);return _0xc80cf6['set']({'class':'ck-ai-commands-dropdown\x20'+this['_uiCssClasses']}),_0xc80cf6['buttonView']['set']({'label':getTranslation$j(_0x2c028d,'AI\x20Commands'),'icon':IconMagicWand,'tooltip':!0x0}),_0xc80cf6['on']('execute',_0x27d956=>this['_onExecute'](_0x27d956['source']['id'])),addMenuToDropdown(_0xc80cf6,_0xc23eac['ui']['view']['body'],getMenuDropdownDefinition(_0xc23eac),{'ariaLabel':getTranslation$j(_0x2c028d,'AI\x20Commands')}),_0xc80cf6['menuView']['menuPanelClass']='ck-ai-commands-dropdown\x20'+this['_uiCssClasses'],_0x29c241['on']('change:enabledCommandsIds',_0x466d52),_0xc80cf6['menuView']['once']('render',_0x466d52),_0xc80cf6;function _0x466d52(){_0xc80cf6['isEnabled']=_0x29c241['enabledCommandsIds']['length']>0x0;for(const _0x203b5a of _0xc80cf6['menuView']['buttons'])_0x203b5a['isEnabled']=_0x29c241['enabledCommandsIds']['includes'](_0x203b5a['id']);}}),_0xc23eac['ui']['componentFactory']['add']('menuBar:aiCommands',_0x179721=>{const _0x4b4721=new MenuBarMenuView(_0x179721);_0x4b4721['buttonView']['set']({'label':getTranslation$j(_0x179721,'AI\x20Commands'),'icon':IconMagicWand}),_0x4b4721['bind']('isEnabled')['to'](_0x29c241,'enabledCommandsIds',_0x303871=>_0x303871['length']>0x0);const _0x1a9502=normalizeCommandsConfig(_0xc23eac['config']['get']('ai.assistant.commands'),_0x179721);return this['_populateMenuBarMenu'](_0x29c241,_0x4b4721,_0x1a9502,_0x3e044e=>this['_onExecute'](_0x3e044e)),_0x4b4721;}),_0xc23eac['ui']['componentFactory']['add']('aiAssistant',()=>{const _0x247064=this['_createAIAssistantUIButton'](ButtonView);return _0x247064['set']({'tooltip':!0x0,'class':'ck-ai-assistant-button\x20'+this['_uiCssClasses']}),_0x247064;}),_0xc23eac['ui']['componentFactory']['add']('menuBar:aiAssistant',()=>{const _0x5a7b81=this['_createAIAssistantUIButton'](MenuBarMenuListItemButtonView);return _0x5a7b81['set']({'role':'menuitemcheckbox'}),_0x5a7b81;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a29b0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x358df7;for(const _0x36a5f2 in _0x3a29b0){const _0x50568e=_0x36a5f2,_0x1affb2=_0x3a29b0[_0x50568e];if('aiLicenseKeyValid'==_0x1affb2||'aiLicenseKeyInvalid'==_0x1affb2||'aiLicenseKeyExpired'==_0x1affb2||'aiLicenseKeyDomainLimit'==_0x1affb2||'aiLicenseKeyNotAllowed'==_0x1affb2||'aiLicenseKeyEvaluationLimit'==_0x1affb2||'aiLicenseKeyUsageLimit'==_0x1affb2){delete _0x3a29b0[_0x50568e],_0x358df7=_0x1affb2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'aiLicenseKeyInvalid'==_0x358df7&&_0x3a29b0['_showLicenseError']('invalid'),'aiLicenseKeyExpired'==_0x358df7&&_0x3a29b0['_showLicenseError']('expired'),'aiLicenseKeyDomainLimit'==_0x358df7&&_0x3a29b0['_showLicenseError']('domainLimit'),'aiLicenseKeyNotAllowed'==_0x358df7&&_0x3a29b0['_showLicenseError']('featureNotAllowed','AIAssistant'),'aiLicenseKeyEvaluationLimit'==_0x358df7&&_0x3a29b0['_showLicenseError']('evaluationLimit'),'aiLicenseKeyUsageLimit'==_0x358df7&&_0x3a29b0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['showUI'](_0x220d85='',_0x4f9c91='',_0x5b9fd0='custom'){const _0x20acdf=this['editor'],_0x216dc7=_0x20acdf['editing']['view'],_0x198467=_0x20acdf['plugins']['get'](AIAssistantEditing),_0x2e7dff=_0x20acdf['plugins']['get'](ClipboardMarkersUtils);_0x198467['showFakeVisualSelection']();const _0x5c259a=new DomDataTransfer(),_0x746833=new ClipboardEvent('copy',{'clipboardData':_0x5c259a}),_0x16c284=new ViewDataTransfer(_0x5c259a),_0x52e73f=new ViewDocumentDomEventData(_0x216dc7,_0x746833,{'dataTransfer':_0x16c284});_0x2e7dff['_forceMarkersCopy']('comment',()=>{_0x216dc7['document']['fire']('copy',_0x52e73f);}),this['_formView']||(this['_initView'](),this['_aiAssistantController']=new AIAssistantController(_0x20acdf,this['_aiAdapter']['textAdapter'],this['_formView']));let _0x4d73e5=_0x16c284['getData']('text/html');const _0x3d9098=_0x20acdf['model']['document']['selection'],_0xcf92dc=Array['from'](_0x3d9098['getRanges']());0x1===_0xcf92dc['length']&&_0xcf92dc[0x0]['isFlat']&&!_0x3d9098['getSelectedElement']()&&''!==_0x4d73e5['replace'](/&nbsp;/g,'')['trim']()&&(_0x4d73e5='<p>'+_0x4d73e5+'</p>'),this['_aiAssistantController']['updateView']({'actionId':_0x5b9fd0,'query':_0x220d85,'htmlContent':_0x4d73e5,'label':_0x4f9c91,'mainActionLabel':AIFormToolbarViewMainActionLabel[_0x20acdf['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'](),_0x198467['hideFakeVisualSelection']();}}):this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}['hideUI'](){this['_dialog']['hide']();}['_getResolvedCommandsDefinitions'](){const _0x4642bc=new Map(),_0x49362a=normalizeCommandsConfig(this['editor']['config']['get']('ai.assistant.commands'),this['editor']['locale']);for(const _0x4f343b of _0x49362a)for(const _0x212ad4 of _0x4f343b['commands'])_0x4642bc['set'](_0x212ad4['id'],{..._0x212ad4,'groupId':_0x4f343b['groupId'],'groupLabel':_0x4f343b['groupLabel']||_0x4f343b['groupId']});return _0x4642bc;}['_createAIAssistantUIButton'](_0x57d945){const _0x3f260b=this['editor'],_0x43b85e=_0x3f260b['commands']['get']('showAIAssistant'),_0x2ffd02=new _0x57d945(_0x3f260b['locale']);return _0x2ffd02['set']({'label':getTranslation$j(_0x3f260b['locale'],'AI\x20Assistant'),'icon':IconRobotPencil,'isToggleable':!0x0}),_0x2ffd02['bind']('isEnabled')['to'](_0x43b85e),_0x2ffd02['bind']('isOn')['to'](this['_dialog'],'id',_0x52694b=>'aiAssistant'===_0x52694b),this['listenTo'](_0x2ffd02,'execute',()=>{_0x2ffd02['isOn']?this['hideUI']():_0x43b85e['execute']();}),_0x2ffd02;}['_initView'](){const _0x45c528=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',()=>{_0x45c528['insertContent'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['listenTo'](this['_formView'],'insertContentBelow',()=>{_0x45c528['insertContentBelow'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['_initAriaAiStatusChangeAnnouncements']();}['_initAriaAiStatusChangeAnnouncements'](){const {locale:_0x39ba8d,ui:{ariaLiveAnnouncer:_0x1fd621}}=this['editor'];this['_formView']['contentArea']['on']('change:isProcessing',(_0x3259f6,_0x59b734,_0x5bbcb9)=>{const _0x750a3=this['_aiAssistantController']['currentContext'];_0x5bbcb9?_0x1fd621['announce'](getTranslation$j(_0x39ba8d,'AI\x20is\x20writing')):_0x750a3&&_0x1fd621['announce'](getTranslation$j(_0x39ba8d,'Generated\x20content:\x20%0',_0x750a3),{'politeness':'polite','isUnsafeHTML':!0x0});}),this['_formView']['on']('change:isError',(_0x1ed431,_0x1bde86,_0xcd388)=>{if(_0xcd388){const _0x1dfe93=this['_formView']['errorView']['text'];_0x1fd621['announce'](getTranslation$j(_0x39ba8d,'Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1dfe93));}});}['_onExecute'](_0x38d3f0){const _0x262254=this['_commandDefinitions']['get'](_0x38d3f0),_0x588df3=this['editor'],_0xaa320=_0x588df3['model']['document']['selection'],_0x2801c0=_0x588df3['commands']['get']('showAIAssistant'),_0x2a681f=_0x588df3['plugins']['get'](AIAssistantEditing),_0x2899a0=''+(_0x262254['groupId']!==UNGROUPED_COMMANDS_GROUP_ID?_0x262254['groupLabel']+':\x20':'')+_0x262254['label'];if(!0x1!==_0x262254['requiresContent']&&_0xaa320['isCollapsed']){const _0x2e5a80=first(_0xaa320['getSelectedBlocks']())||_0x588df3['model']['schema']['getLimitElement'](_0xaa320);_0x588df3['model']['change'](_0x57df51=>{_0x57df51['setSelection'](_0x2e5a80,'in');});}_0x2a681f['showFakeVisualSelection'](),_0x2801c0['execute'](_0x262254['prompt'],_0x2899a0,'command:'+_0x38d3f0);}['_populateMenuBarMenu'](_0x8a9746,_0x25e6d2,_0x140e8c,_0x49af14){const _0x38df44=this['editor'],_0x5eb5bf=_0x38df44['locale'],_0x45cdb6=new MenuBarMenuListView(_0x5eb5bf),_0x1baa2b=sortDefinitionsByOrder(_0x38df44,_0x140e8c)['filter'](_0x533a1f=>_0x533a1f['commands']['length']);0x1===_0x1baa2b['length']?this['_getMenuBarGroupButtons']({'command':_0x8a9746,'commands':_0x1baa2b[0x0]['commands'],'parentMenuView':_0x25e6d2,'onExecute':_0x49af14})['forEach'](_0x7876ee=>_0x45cdb6['items']['add'](_0x7876ee)):_0x1baa2b['forEach'](({groupId:_0x1b33b7,groupLabel:_0x11529f,commands:_0x284ed5})=>{const _0x394252=new MenuBarMenuListItemView(_0x5eb5bf,_0x25e6d2),_0x434fb8=new MenuBarMenuView(_0x5eb5bf),_0x3eadc0=new MenuBarMenuListView(_0x5eb5bf),_0x1fb088=this['_getMenuBarGroupButtons']({'command':_0x8a9746,'commands':_0x284ed5,'parentMenuView':_0x434fb8,'onExecute':_0x49af14});_0x434fb8['buttonView']['set']({'label':_0x11529f||_0x1b33b7}),_0x434fb8['delegate']('execute')['to'](_0x25e6d2),_0x3eadc0['items']['addMany'](_0x1fb088),_0x434fb8['panelView']['children']['add'](_0x3eadc0),_0x394252['children']['add'](_0x434fb8),_0x45cdb6['items']['add'](_0x394252);}),_0x25e6d2['panelView']['children']['add'](_0x45cdb6);}['_getMenuBarGroupButtons']({command:_0x541f12,commands:_0x3b5e8f,parentMenuView:_0x3f6954,onExecute:_0x469861}){const _0x5c47f3=this['editor'],_0x154ea8=_0x5c47f3['locale'];return sortDefinitionsByOrder(_0x5c47f3,_0x3b5e8f)['map'](_0x17e4f6=>{const _0x228242=new MenuBarMenuListItemView(_0x154ea8,_0x3f6954),_0x58a53c=new MenuBarMenuListItemButtonView(_0x154ea8);return _0x58a53c['set']({'label':_0x17e4f6['label']}),_0x58a53c['delegate']('execute')['to'](_0x3f6954),_0x58a53c['on']('execute',()=>_0x469861(_0x17e4f6['id'])),_0x58a53c['bind']('isEnabled')['to'](_0x541f12,'enabledCommandsIds',_0x1f9b48=>_0x1f9b48['includes'](_0x17e4f6['id'])),_0x228242['children']['add'](_0x58a53c),_0x228242;});}}function getMenuDropdownDefinition(_0x3c0fb5){const _0x19fa90=normalizeCommandsConfig(_0x3c0fb5['config']['get']('ai.assistant.commands'),_0x3c0fb5['locale']),_0x56850e=sortDefinitionsByOrder(_0x3c0fb5,_0x19fa90)['filter'](_0x35e0ab=>_0x35e0ab['commands']['length']);return 0x1===_0x56850e['length']?sortDefinitionsByOrder(_0x3c0fb5,_0x56850e[0x0]['commands'])['map'](_0x1fcffd=>({'id':_0x1fcffd['id'],'label':_0x1fcffd['label']})):_0x56850e['map'](_0xc59a9d=>{const {groupId:_0xd396a2,groupLabel:_0x56f858,commands:_0x5b6784}=_0xc59a9d,_0x17688d=sortDefinitionsByOrder(_0x3c0fb5,_0x5b6784)['map'](_0x192df1=>({'id':_0x192df1['id'],'label':_0x192df1['label']}));return{'id':_0xd396a2,'menu':_0x56f858||_0xd396a2,'children':_0x17688d};});}function sortDefinitionsCallback(_0x129b1d,_0x142c29){return void 0x0!==_0x129b1d['order']&&void 0x0===_0x142c29['order']?0x1:void 0x0===_0x129b1d['order']&&void 0x0!==_0x142c29['order']?-0x1:void 0x0!==_0x129b1d['order']&&void 0x0!==_0x142c29['order']?_0x129b1d['order']-_0x142c29['order']:0x0;}function sortDefinitionsByOrder(_0x41b504,_0xc109a9){_0xc109a9['sort'](sortDefinitionsCallback);const _0x5a3577={},_0x2645d9=[];for(const _0x2b8f9a of _0xc109a9)if(void 0x0!==_0x2b8f9a['order']){if(_0x2b8f9a['order']in _0x5a3577)throw new CKEditorError('ai-commands-config-order-collision',_0x41b504,{'conflictingDefinitions':[_0x2b8f9a,_0x5a3577[_0x2b8f9a['order']]]});_0x5a3577[_0x2b8f9a['order']]=_0x2b8f9a,_0x2645d9['splice'](_0x2b8f9a['order'],0x0,_0x2b8f9a);}else _0x2645d9['push'](_0x2b8f9a);return _0x2645d9;}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(_0x61d67a){super(_0x61d67a);const _0x3ba982=_0x61d67a['config'],_0x446711=_0x61d67a['locale'];_0x3ba982['define']('ai.assistant.preserveComments',!0x0),_0x3ba982['define']('ai.assistant.commands',getDefaultAICommands(_0x446711)),_0x3ba982['define']('ai.assistant.extraCommandGroups',[]),_0x3ba982['define']('ai.assistant.removeCommands',[]);let _0x191e49=normalizeCommandsConfig(_0x3ba982['get']('ai.assistant.commands'),_0x446711);const _0x2b87ea=_0x3ba982['get']('ai.assistant.extraCommandGroups'),_0x1a7241=_0x3ba982['get']('ai.assistant.removeCommands');_0x2b87ea['forEach'](_0x26ffcf=>{const _0x8ad8b1=_0x191e49['find'](_0x550fe3=>_0x550fe3['groupId']===_0x26ffcf['groupId']);_0x8ad8b1?_0x8ad8b1['commands']=_0x8ad8b1['commands']['concat'](_0x26ffcf['commands']):_0x191e49['push'](_0x26ffcf);}),_0x191e49=_0x191e49['filter'](_0x9ed002=>!_0x1a7241['includes'](_0x9ed002['groupId'])),_0x191e49['forEach'](_0x33417e=>{_0x33417e['commands']=_0x33417e['commands']['filter'](_0x5bc40f=>!_0x1a7241['includes'](_0x5bc40f['id']));}),_0x3ba982['set']('ai.assistant.commands',_0x191e49);}}function getDefaultAICommands(_0x2e67bd){return[{'groupId':'editOrReview','groupLabel':getTranslation$j(_0x2e67bd,'Edit\x20or\x20review'),'commands':[{'id':'improveWriting','label':getTranslation$j(_0x2e67bd,'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(_0x2e67bd,'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(_0x2e67bd,'Make\x20longer'),'prompt':'Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.'},{'id':'simplifyLanguage','label':getTranslation$j(_0x2e67bd,'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(_0x2e67bd,'Generate\x20from\x20selection'),'commands':[{'id':'summarize','label':getTranslation$j(_0x2e67bd,'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(_0x2e67bd,'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(_0x2e67bd,'Change\x20tone'),'commands':[{'id':'professional','label':getTranslation$j(_0x2e67bd,'Professional'),'prompt':'Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.'},{'id':'casual','label':getTranslation$j(_0x2e67bd,'Casual'),'prompt':'Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.'},{'id':'direct','label':getTranslation$j(_0x2e67bd,'Direct'),'prompt':'Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.'},{'id':'confident','label':getTranslation$j(_0x2e67bd,'Confident'),'prompt':'Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.'},{'id':'friendly','label':getTranslation$j(_0x2e67bd,'Friendly'),'prompt':'Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.'}]},{'groupId':'changeStyle','groupLabel':getTranslation$j(_0x2e67bd,'Change\x20style'),'commands':[{'id':'business','label':getTranslation$j(_0x2e67bd,'Business'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.'},{'id':'legal','label':getTranslation$j(_0x2e67bd,'Legal'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.'},{'id':'journalism','label':getTranslation$j(_0x2e67bd,'Journalism'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.'},{'id':'poetic','label':getTranslation$j(_0x2e67bd,'Poetic'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.'}]},{'groupId':'translate','groupLabel':getTranslation$j(_0x2e67bd,'Translate'),'commands':[{'id':'translateEnglish','label':getTranslation$j(_0x2e67bd,'English'),'prompt':'Translate\x20the\x20content\x20to\x20English\x20language.'},{'id':'translateSpanish','label':getTranslation$j(_0x2e67bd,'Spanish'),'prompt':'Translate\x20the\x20content\x20to\x20Spanish\x20language.'},{'id':'translatePortuguese','label':getTranslation$j(_0x2e67bd,'Portuguese'),'prompt':'Translate\x20the\x20content\x20to\x20Portuguese\x20language.'},{'id':'translateGerman','label':getTranslation$j(_0x2e67bd,'German'),'prompt':'Translate\x20the\x20content\x20to\x20German\x20language.'},{'id':'translateFrench','label':getTranslation$j(_0x2e67bd,'French'),'prompt':'Translate\x20the\x20content\x20to\x20French\x20language.'},{'id':'translateChinese','label':getTranslation$j(_0x2e67bd,'Simplified\x20Chinese'),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':'translateHindi','label':getTranslation$j(_0x2e67bd,'Hindi'),'prompt':'Translate\x20the\x20content\x20to\x20Hindi\x20language.'},{'id':'translateArabic','label':getTranslation$j(_0x2e67bd,'Arabic'),'prompt':'Translate\x20the\x20content\x20to\x20Arabic\x20language.'}]}];}class AITextAdapter extends Plugin{['abortController'];static get['requires'](){return[AIAdapter];}constructor(_0x1b0688){super(_0x1b0688),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'](_0x35f713){return this['sendRequest'](_0x35f713)['catch'](_0x479c69=>{if(_0x479c69 instanceof AIRequestError)return Promise['reject'](_0x479c69);if('AbortError'==_0x479c69['name'])return Promise['resolve']();throw console['error'](_0x479c69),new CKEditorError('aitextadapter-send-request-failed',null);});}async['_prepareRequestHeaders'](_0x2f3aac,_0x50c7cd){const _0x3c25f4=this['editor']['locale'],_0x3f2502={'Content-Type':'application/json'};if('object'==typeof _0x2f3aac)Object['assign'](_0x3f2502,_0x2f3aac);else{if(_0x2f3aac)try{const _0x4f2f79=await _0x2f3aac(_0x50c7cd);Object['assign'](_0x3f2502,_0x4f2f79);}catch{return Promise['reject'](new AIRequestError(getTranslation$j(_0x3c25f4,'AI_ERROR_GET_HEADERS')));}}return _0x3f2502;}async['_prepareRequestParameters'](_0x138e20,_0x5d2b6f){const _0x316488=this['editor']['locale'];if('object'==typeof _0x138e20)return _0x138e20;try{return await _0x138e20(_0x5d2b6f);}catch{return Promise['reject'](new AIRequestError(getTranslation$j(_0x316488,'AI_ERROR_GET_PARAMETERS')));}}}class OpenAITextAdapter extends AITextAdapter{['_apiUrl'];['_requestHeaders'];['_requestParameters'];static get['pluginName'](){return'OpenAITextAdapter';}constructor(_0x1971e8){super(_0x1971e8),_0x1971e8['config']['define']('ai.assistant.adapter.openAI.apiUrl','https://api.openai.com/v1/chat/completions'),_0x1971e8['config']['get']('ai.assistant.adapter.openAI.requestParameters')||_0x1971e8['config']['define']('ai.assistant.adapter.openAI.requestParameters',{'model':'gpt-4o','temperature':0x1,'top_p':0x1,'stream':!0x0}),this['_apiUrl']=_0x1971e8['config']['get']('ai.assistant.adapter.openAI.apiUrl'),this['_requestHeaders']=_0x1971e8['config']['get']('ai.assistant.adapter.openAI.requestHeaders')||{},this['_requestParameters']=_0x1971e8['config']['get']('ai.assistant.adapter.openAI.requestParameters');}async['sendRequest']({query:_0x1e00b8,context:_0x1beeaf,onData:_0x1e0115,actionId:_0x4b5286}){const _0x59303a=this['editor']['locale'],_0x1af04d=await this['prepareMessages'](_0x1e00b8,_0x1beeaf,_0x4b5286),_0x221ba1=await this['_prepareRequestHeaders'](this['_requestHeaders'],_0x4b5286),_0x4f186c=await this['_prepareRequestParameters'](this['_requestParameters'],_0x4b5286),_0x39762d={'messages':_0x1af04d,..._0x4f186c},_0x1e6319={'method':'POST','headers':_0x221ba1,'body':JSON['stringify'](_0x39762d),'signal':this['abortController']['signal']},_0x159bf2=await fetch(this['_apiUrl'],_0x1e6319);if(_0x159bf2['ok'])return _0x4f186c['stream']?await this['_readStreamableResponse'](_0x159bf2,_0x1e0115):await this['_readStaticResponse'](_0x159bf2,_0x1e0115),Promise['resolve']();{const _0x128c81=await _0x159bf2['text']();return _0x128c81['includes']('context_length_exceeded')?Promise['reject'](new AIRequestError(getTranslation$j(_0x59303a,'AI_ERROR_CONTEXT_LENGTH'))):_0x128c81['includes']('Moderation')?Promise['reject'](new AIRequestError(getTranslation$j(_0x59303a,'AI_ERROR_MODERATION'))):Promise['reject'](new Error(_0x128c81));}}async['prepareMessages'](_0x3b01af,_0x2386b1,_0x46dca2){let _0x2d5600,_0x2b444c;return _0x2386b1?(_0x2d5600='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.',_0x2b444c='Instruction:\x0a'+_0x3b01af+'\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'+_0x2386b1):(_0x2d5600='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.',_0x2b444c=_0x3b01af),[{'role':'system','content':_0x2d5600},{'role':'user','content':_0x2b444c}];}async['_readStreamableResponse'](_0x341254,_0x3518d7){const _0x2fcb81=_0x341254['body']['getReader'](),_0x526478=new TextDecoder();let _0x4aa76d='',_0xfb8444='',_0x5167c2='',_0x32a726=!0x1;for(;!_0x32a726;){const {done:_0x255644,value:_0x15d81b}=await _0x2fcb81['read'](),_0x550dd4=_0x4aa76d+_0x526478['decode'](_0x15d81b);let _0x566a2c='';_0x32a726=_0x255644;try{_0x566a2c=this['_cleanUpData'](_0x550dd4),_0x4aa76d='';}catch{_0x4aa76d=_0x550dd4;continue;}_0xfb8444+=_0x566a2c,!_0x32a726&&this['_isBufferIncomplete'](_0xfb8444)||_0xfb8444&&(_0x5167c2+=_0xfb8444,_0xfb8444='',_0x3518d7(_0x5167c2));}return Promise['resolve']();}async['_readStaticResponse'](_0x42462d,_0x50fcec){return _0x50fcec((await _0x42462d['json']())['choices'][0x0]['message']['content']),Promise['resolve']();}['_isBufferIncomplete'](_0x4e9fd1){const _0x7a6b47=_0x4e9fd1['split']('<')['length']!==_0x4e9fd1['split']('>')['length'],_0x249fa2=_0x4e9fd1['length']<0x1e;return _0x7a6b47&&_0x249fa2;}['_cleanUpData'](_0x2792b3){return _0x2792b3['split'](/\n(?![^{]*\})/g)['map'](_0x4429f5=>_0x4429f5['replace']('data:\x20',''))['filter'](_0x1710f8=>_0x1710f8&&_0x1710f8['length']>0x0&&'[DONE]'!==_0x1710f8)['map'](_0x2d56af=>{const {choices:_0x32fc96}=JSON['parse'](_0x2d56af);if(_0x32fc96[0x0]?.['delta']?.['content'])return _0x32fc96[0x0]['delta']['content'];})['filter'](_0x28ce44=>_0x28ce44)['join']('');}}class AWSTextAdapter extends AITextAdapter{static get['pluginName'](){return'AWSTextAdapter';}['init'](){super['init'](),logWarning('ai-aws-adapter-not-supported');}async['sendRequest'](_0x39d7ec){throw logError('ai-aws-adapter-not-supported'),new AIRequestError(getTranslation$j(this['editor']['locale'],'AI_ERROR_AWS_NOT_SUPPORTED'));}}class TabButtonView extends ButtonView{constructor(_0x2b975c,_0x406c91={}){super(_0x2b975c),this['isToggleable']=!0x0,this['set']('side',_0x406c91['side']||'top');const _0x123f90=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-tab-button',...toArray$1(_0x406c91['class']||[]),_0x123f90['to']('side',_0x337c1d=>'ck-tab-button_'+_0x337c1d),_0x123f90['to']('class')]}});}['show'](){this['set']('isVisible',!0x0);}['hide'](){this['set']('isVisible',!0x1);}}class TabPanelView extends View{['children'];constructor(_0xdd49a7,_0x309138={}){super(_0xdd49a7);const _0x23eda5=this['bindTemplate'];this['set']('isVisible',!0x1),this['set']('class',''),this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-tab-panel',...toArray$1(_0x309138['class']||[]),_0x23eda5['to']('class'),_0x23eda5['if']('isVisible','ck-hidden',_0x129db3=>!_0x129db3)]},'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(_0xf18b2b,_0x3f7e80={}){super(_0xf18b2b),this['set']('class',void 0x0),this['set']('activeTab',null),this['set']('side',_0x3f7e80['side']||'top'),this['set']('isMaximized',!0x1);const _0x35c28c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-tabs',...toArray$1(_0x3f7e80['class']||[]),_0x35c28c['to']('side',_0x59f38d=>'ck-tabs_'+_0x59f38d),_0x35c28c['to']('class'),_0x35c28c['to']('isMaximized',_0x4a133c=>_0x4a133c?'ck-ai-tabs_maximized':'')],'tabindex':'0'},'children':[{'tag':'div','attributes':{'class':['ck','ck-tabs__buttons-container',_0x35c28c['to']('side',_0x3d6db4=>'ck-tabs__buttons-container_'+_0x3d6db4)]},'children':this['buttonViews']},{'tag':'div','attributes':{'class':['ck','ck-tabs__panels-container',_0x35c28c['to']('side',_0x2adba7=>'ck-tabs__panels-container_'+_0x2adba7)]},'children':this['panelViews']},...toArray$1(_0x3f7e80['children']||[])]});}['getTabIds'](){return[...this['_tabs']['keys']()];}['getTab'](_0x327f57){const _0x16ca8c=this['_tabs']['get'](_0x327f57);return _0x16ca8c||null;}['addTab'](_0x52b470){const _0x191f15=this['_setupButton']({'id':_0x52b470['id'],'label':_0x52b470['buttonLabel'],'icon':_0x52b470['buttonIcon'],'order':_0x52b470['order']}),_0x14e84e=new TabPanelView(this['locale']);return _0x14e84e['render'](),_0x52b470['content']&&_0x14e84e['children']['add'](_0x52b470['content']),this['panelViews']['add'](_0x14e84e),this['_tabs']['set'](_0x52b470['id'],{'button':_0x191f15,'panel':_0x14e84e,'order':void 0x0!==_0x52b470['order']?_0x52b470['order']:null}),this['fire']('addTab:'+_0x52b470['id'],{'id':_0x52b470['id'],'button':_0x191f15,'panel':_0x14e84e}),null===this['activeTab']?this['activateTab'](_0x52b470['id']):this['_hidePanel'](_0x52b470['id']),{'button':_0x191f15,'panel':_0x14e84e};}['activateTab'](_0x2f0f4f){if(null!==_0x2f0f4f&&!this['getTab'](_0x2f0f4f))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x2f0f4f});this['activeTab']!==_0x2f0f4f&&(this['activeTab']&&this['_hidePanel'](this['activeTab']),this['activeTab']=_0x2f0f4f,_0x2f0f4f&&this['_showPanel'](_0x2f0f4f),this['fire']('activateTab:'+_0x2f0f4f,_0x2f0f4f));}['showTab'](_0x419b65){if(!this['getTab'](_0x419b65))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x419b65});this['_showPanel'](_0x419b65),this['_showButton'](_0x419b65),this['fire']('show:'+_0x419b65,_0x419b65);}['hideTab'](_0x477874){if(!this['getTab'](_0x477874))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x477874});const _0x5a04a2=this['activeTab'];this['_hidePanel'](_0x477874),this['_hideButton'](_0x477874);const _0x478f67=this['getTabIds']();_0x5a04a2===_0x477874&&_0x478f67['length']>0x1&&this['activateTab'](_0x478f67['find'](_0x4ad611=>_0x4ad611!==_0x477874)),this['fire']('hide:'+_0x477874,_0x477874);}['_getPanel'](_0x2fae61){const _0x114ce4=this['_tabs']['get'](_0x2fae61);return _0x114ce4?_0x114ce4['panel']:null;}['_showPanel'](_0x2931f1){null!==this['activeTab']&&this['activeTab']!==_0x2931f1||this['_getPanel'](_0x2931f1)['show']();}['_hidePanel'](_0xb8b05d){const _0x4de4ec=this['_getPanel'](_0xb8b05d);_0x4de4ec['isVisible']&&(this['activeTab']===_0xb8b05d&&(this['activeTab']=null),_0x4de4ec['hide']());}['_getButton'](_0x564eb4){const _0x5aac3b=this['_tabs']['get'](_0x564eb4);return _0x5aac3b?_0x5aac3b['button']:null;}['_showButton'](_0x485a84){this['_getButton'](_0x485a84)['show']();}['_hideButton'](_0x2ea6d1){this['_getButton'](_0x2ea6d1)['hide']();}['_setupButton'](_0x3f2c96){const _0x506af6=new TabButtonView(this['locale'],{'side':this['side']}),_0x206e7a=this['buttonViews'];if(_0x506af6['set']({'label':_0x3f2c96['label'],'icon':_0x3f2c96['icon'],'tooltip':!0x0,'withText':!0x0}),_0x506af6['bind']('isOn')['to'](this,'activeTab',_0x8ef3d7=>_0x8ef3d7===_0x3f2c96['id']),_0x506af6['bind']('side')['to'](this,'side'),_0x3f2c96['order']){const _0x48650d=[...this['_tabs']]['reduce']((_0x214200,_0x3234b0)=>{const _0x368877=_0x3234b0[0x0],{order:_0xbdc904}=_0x3234b0[0x1];return!_0xbdc904||_0xbdc904>_0x3f2c96['order']?_0x214200:_0xbdc904>=_0x214200['order']?{'id':_0x368877,'order':_0xbdc904}:_0x214200;},{'id':'','order':0x0}),_0x3bffae=_0x206e7a['getIndex'](this['_getButton'](_0x48650d['id']));_0x206e7a['add'](_0x506af6,_0x3bffae+0x1);}else _0x206e7a['add'](_0x506af6);return _0x506af6['on']('execute',()=>{this['activateTab'](_0x3f2c96['id']);}),_0x506af6;}}const AI_TABS_VIEW_TYPES=['overlay','sidebar','custom'],AI_TABS_VIEW_SIDES=['left','right'];class AITabsMainView extends AITabsView{constructor(_0x2c79de,_0x5145ab={}){super(_0x2c79de,_0x5145ab),this['set']('type',_0x5145ab['type']||'sidebar'),this['set']('side',_0x5145ab['side']||'right'),this['set']('isVisible',_0x5145ab['visibleByDefault']??!0x0);const _0x137ad3=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-tabs',_0x137ad3['if']('type','ck-ai-tabs__overlay',_0x382549=>'overlay'===_0x382549),_0x137ad3['if']('type','ck-ai-tabs__sidebar',_0x1e35a5=>'sidebar'===_0x1e35a5),_0x137ad3['if']('isVisible','ck-hidden',_0x39cf65=>!_0x39cf65)]}}),this['buttonViews']['on']('add',(_0x49dbd1,_0xd637f0)=>{_0xd637f0['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(_0x495116){super(_0x495116);const _0x5e91a2=this['context']['config']['get']('ai.container');if(this['set']('side','right'),!_0x5e91a2)throw new CKEditorError('ai-tabs-configuration-not-found');if(void 0x0!==_0x5e91a2['showResizeButton']&&(this['showResizeButton']=_0x5e91a2['showResizeButton']),'sidebar'!==_0x5e91a2['type']&&'overlay'!==_0x5e91a2['type']||_0x5e91a2['side']&&(this['side']=_0x5e91a2['side']),'sidebar'===_0x5e91a2['type']){if(this['container']=_0x5e91a2['element'],this['set']('type','sidebar'),!this['container'])throw new CKEditorError('ai-tabs-sidebar-container-element-not-found');}else'overlay'===_0x5e91a2['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===_0x5e91a2['visibleByDefault']||_0x5e91a2['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'](_0x495d29){if(_0x495d29&&this['type']!==_0x495d29){if(!AI_TABS_VIEW_TYPES['includes'](_0x495d29))throw new CKEditorError('ai-tabs-unsupported-ui-type');this['type']=_0x495d29;}}['switchSide'](_0x32c7e4){if(_0x32c7e4&&this['side']!==_0x32c7e4){if(!AI_TABS_VIEW_SIDES['includes'](_0x32c7e4))throw new CKEditorError('ai-tabs-unsupported-ui-side');this['side']=_0x32c7e4;}}['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(_0x445792,_0x4e7d14){super(_0x445792),this['name']='ParseError',this['type']=_0x4e7d14['type'],this['field']=_0x4e7d14['field'],this['value']=_0x4e7d14['value'],this['line']=_0x4e7d14['line'];}}function noop$1(_0x390499){}function createParser(_0x200fbc){if('function'==typeof _0x200fbc)throw new TypeError('`callbacks`\x20must\x20be\x20an\x20object,\x20got\x20a\x20function\x20instead.\x20Did\x20you\x20mean\x20`{onEvent:\x20fn}`?');const {onEvent:_0x55e104=noop$1,onError:_0x4bb2c3=noop$1,onRetry:_0x32ac03=noop$1,onComment:_0x4506b6}=_0x200fbc;let _0x4b4629,_0x158628='',_0x29dcc0=!0x0,_0x530d34='',_0x314971='';function _0x6950da(_0x3967e2){if(''===_0x3967e2)return _0x530d34['length']>0x0&&_0x55e104({'id':_0x4b4629,'event':_0x314971||void 0x0,'data':_0x530d34['endsWith']('\x0a')?_0x530d34['slice'](0x0,-0x1):_0x530d34}),_0x4b4629=void 0x0,_0x530d34='',void(_0x314971='');if(_0x3967e2['startsWith'](':'))return void(_0x4506b6&&_0x4506b6(_0x3967e2['slice'](_0x3967e2['startsWith'](':\x20')?0x2:0x1)));const _0x4d92e3=_0x3967e2['indexOf'](':');if(-0x1!==_0x4d92e3){const _0x3ba106=_0x3967e2['slice'](0x0,_0x4d92e3),_0x2f10ec='\x20'===_0x3967e2[_0x4d92e3+0x1]?0x2:0x1;return void _0x2e16fe(_0x3ba106,_0x3967e2['slice'](_0x4d92e3+_0x2f10ec),_0x3967e2);}_0x2e16fe(_0x3967e2,'',_0x3967e2);}function _0x2e16fe(_0x59ccd4,_0x39ced1,_0x548c1d){switch(_0x59ccd4){case'event':_0x314971=_0x39ced1;break;case'data':_0x530d34=''+_0x530d34+_0x39ced1+'\x0a';break;case'id':_0x4b4629=_0x39ced1['includes']('\x00')?void 0x0:_0x39ced1;break;case'retry':/^\d+$/['test'](_0x39ced1)?_0x32ac03(parseInt(_0x39ced1,0xa)):_0x4bb2c3(new ParseError('Invalid\x20`retry`\x20value:\x20\x22'+_0x39ced1+'\x22',{'type':'invalid-retry','value':_0x39ced1,'line':_0x548c1d}));break;default:_0x4bb2c3(new ParseError('Unknown\x20field\x20\x22'+(_0x59ccd4['length']>0x14?_0x59ccd4['slice'](0x0,0x14)+'…':_0x59ccd4)+'\x22',{'type':'unknown-field','field':_0x59ccd4,'value':_0x39ced1,'line':_0x548c1d}));}}return{'feed':function(_0x6996b1){const _0x44301b=_0x29dcc0?_0x6996b1['replace'](/^\xEF\xBB\xBF/,''):_0x6996b1,[_0x8b9389,_0x102987]=splitLines(''+_0x158628+_0x44301b);for(const _0x5d8c2f of _0x8b9389)_0x6950da(_0x5d8c2f);_0x158628=_0x102987,_0x29dcc0=!0x1;},'reset':function(_0x5767a3={}){_0x158628&&_0x5767a3['consume']&&_0x6950da(_0x158628),_0x29dcc0=!0x0,_0x4b4629=void 0x0,_0x530d34='',_0x314971='',_0x158628='';}};}function splitLines(_0xc937a9){const _0x531e58=[];let _0x217e89='',_0xe5669d=0x0;for(;_0xe5669d<_0xc937a9['length'];){const _0x286d71=_0xc937a9['indexOf']('\x0d',_0xe5669d),_0x4f96cf=_0xc937a9['indexOf']('\x0a',_0xe5669d);let _0x272ac1=-0x1;if(-0x1!==_0x286d71&&-0x1!==_0x4f96cf?_0x272ac1=Math['min'](_0x286d71,_0x4f96cf):-0x1!==_0x286d71?_0x272ac1=_0x286d71:-0x1!==_0x4f96cf&&(_0x272ac1=_0x4f96cf),-0x1===_0x272ac1){_0x217e89=_0xc937a9['slice'](_0xe5669d);break;}{const _0x2e125e=_0xc937a9['slice'](_0xe5669d,_0x272ac1);_0x531e58['push'](_0x2e125e),_0xe5669d=_0x272ac1+0x1,'\x0d'===_0xc937a9[_0xe5669d-0x1]&&'\x0a'===_0xc937a9[_0xe5669d]&&_0xe5669d++;}}return[_0x531e58,_0x217e89];}const MODEL_COMPATIBILITY_VERSION='1';class AIConnector extends ContextPlugin{['_apiUrl'];['_token'];['_decoder'];['_responseCache'];static get['requires'](){return[CloudServices];}static get['pluginName'](){return'AIConnector';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1cbfda){super(_0x1cbfda),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(),this['_responseCache']=new Map();}['init'](){const _0x494030=this['context']['plugins']['get'](CloudServices);if(!_0x494030['token'])throw new CKEditorError('ai-missing-token',this);this['_token']=_0x494030['token'];}['startConversation'](_0x346442,_0x346fb2){const _0x319de7=this['_sendApiRequest']('/conversations','POST',{'id':_0x346442,'group':_0x346fb2});return{'getConversation':async()=>(await _0x319de7['request'])['json'](),'abortController':_0x319de7['abortController']};}['queryAssistant']({message:_0x1c60a6,conversationId:_0x1a12dd,parts:_0x5b8093,capabilities:_0x307c8c,model:_0x5e0268,attributes:_0x2be21a}){const _0x59c594={'prompt':_0x1c60a6,'content':_0x5b8093,'model':_0x5e0268,..._0x307c8c&&{'capabilities':_0x307c8c},..._0x2be21a&&{'attributes':_0x2be21a}},_0x4d3361=this['_sendApiRequest']('/conversations/'+_0x1a12dd+'/messages','POST',_0x59c594);return{'getStream':async()=>{const _0x54436d=(await _0x4d3361['request'])['body'];return this['_getStreamReader'](_0x54436d);},'abortController':_0x4d3361['abortController']};}['executeCustomAction']({content:_0xa78fdd,message:_0x3b920c,model:_0x2880c9,outputFormat:_0x287ef6}){const _0x22e42b={'content':[{'type':'text','content':_0xa78fdd}],'prompt':_0x3b920c,'model':_0x2880c9,'outputFormat':_0x287ef6},_0x18c817=this['_sendApiRequest']('/actions/custom/calls','POST',_0x22e42b);return{'getStream':async()=>{const _0x42d0ae=(await _0x18c817['request'])['body'];return this['_getStreamReader'](_0x42d0ae);},'abortController':_0x18c817['abortController']};}['executeAction']({actionName:_0x455210,content:_0x111d9b,args:_0x4ab50f}){const _0x479d97={'content':[{'type':'text','content':_0x111d9b}],'args':_0x4ab50f},_0x2e1949=this['_sendApiRequest']('/actions/system/'+_0x455210+'/calls','POST',_0x479d97);return{'getStream':async()=>{const _0x451aa6=(await _0x2e1949['request'])['body'];return this['_getStreamReader'](_0x451aa6);},'abortController':_0x2e1949['abortController']};}['uploadFile'](_0x21a672,_0x198a2d,_0x17160a){const _0x3212e5=new FormData();_0x3212e5['append']('file',_0x198a2d,_0x198a2d['name']),_0x17160a&&_0x3212e5['append']('attributes',JSON['stringify'](_0x17160a));const _0x22c9f7=this['_sendApiRequest']('/conversations/'+_0x21a672+'/files','POST',_0x3212e5);return{'getId':async()=>(await _0x22c9f7['request'])['json'](),'abortController':_0x22c9f7['abortController']};}['fetchDocument'](_0x3b0d8f,_0xd687ef){const _0x2cb899=this['_sendApiRequest']('/conversations/'+_0x3b0d8f+'/documents/'+_0xd687ef,'GET');return{'getDocument':async()=>(await _0x2cb899['request'])['json'](),'abortController':_0x2cb899['abortController']};}['uploadDocument'](_0x15e820,_0x269811,_0x1ff727){const _0x5459fd={'content':_0x269811};_0x1ff727&&(_0x5459fd['attributes']=_0x1ff727);const _0x158b42=this['_sendApiRequest']('/conversations/'+_0x15e820+'/documents','POST',_0x5459fd);return{'getId':async()=>(await _0x158b42['request'])['json'](),'abortController':_0x158b42['abortController']};}['fetchConversations'](_0x4bf59f,_0x4b80b7={}){const _0x362288=new URLSearchParams();_0x362288['append']('group',_0x4bf59f),_0x362288['append']('excludeEmpty',!0x1!==_0x4b80b7['excludeEmpty']?'true':'false'),_0x362288['append']('limit',_0x4b80b7['limit']?_0x4b80b7['limit']['toString']():'100'),_0x362288['append']('sortBy',_0x4b80b7['sortBy']?_0x4b80b7['sortBy']:'createdAt'),_0x362288['append']('order',_0x4b80b7['order']?_0x4b80b7['order']:'desc');const _0x1ed575=this['_sendApiRequest']('/conversations?'+_0x362288['toString'](),'GET');return{'getConversations':async()=>{const _0x6e1300=await _0x1ed575['request'];return(await _0x6e1300['json']())['items'];},'abortController':_0x1ed575['abortController']};}['deleteConversation'](_0x479471){const _0x66cf49=this['_sendApiRequest']('/conversations/'+_0x479471,'DELETE');return{'execute':async()=>{await _0x66cf49['request'];},'abortController':_0x66cf49['abortController']};}['updateConversation'](_0x1b530a,_0xb6c21){const _0x5e1caa=this['_sendApiRequest']('/conversations/'+_0x1b530a,'PATCH',_0xb6c21);return{'getResult':async()=>(await _0x5e1caa['request'],_0xb6c21),'abortController':_0x5e1caa['abortController']};}['fetchConversation'](_0xe5d79c){const _0xdf01ce=this['_sendApiRequest']('/conversations/'+_0xe5d79c,'GET');return{'getConversation':async()=>(await _0xdf01ce['request'])['json'](),'abortController':_0xdf01ce['abortController']};}['fetchConversationMessages'](_0xa6649a){const _0x30a6f4=this['_sendApiRequest']('/conversations/'+_0xa6649a+'/messages','GET');return{'getMessages':async()=>{const _0x4f91f1=await _0x30a6f4['request'];return(await _0x4f91f1['json']())['items'];},'abortController':_0x30a6f4['abortController']};}['uploadUrl'](_0x5b2cb7,_0x459526,_0x30f3de){const _0x1da140=this['_sendApiRequest']('/conversations/'+_0x5b2cb7+'/web-resources','POST',{'url':_0x459526,'attributes':_0x30f3de});return{'getId':async()=>(await _0x1da140['request'])['json'](),'abortController':_0x1da140['abortController']};}['getModels'](_0x584639='en'){const _0x5a6148=new URLSearchParams();_0x5a6148['append']('language',_0x584639);const _0x2d6d34='/models/'+MODEL_COMPATIBILITY_VERSION+'?'+_0x5a6148['toString'](),_0x511c61=this['_sendApiRequest'](_0x2d6d34,'GET',void 0x0,!0x0);return{'list':async()=>await(await _0x511c61['request'])['json'](),'abortController':_0x511c61['abortController']};}['deleteFile'](_0x546fdb,_0x182c43){const _0x5c2b31=this['_sendApiRequest']('/conversations/'+_0x546fdb+'/files/'+_0x182c43,'DELETE');return{'execute':async()=>{await _0x5c2b31['request'];},'abortController':_0x5c2b31['abortController']};}['deleteDocument'](_0x4fe327,_0x3e3fec){const _0x1afec9=this['_sendApiRequest']('/conversations/'+_0x4fe327+'/documents/'+_0x3e3fec,'DELETE');return{'execute':async()=>{await _0x1afec9['request'];},'abortController':_0x1afec9['abortController']};}['deleteWebResource'](_0x2133bf,_0xcbc7df){const _0x477fc6=this['_sendApiRequest']('/conversations/'+_0x2133bf+'/web-resources/'+_0xcbc7df,'DELETE');return{'execute':async()=>{await _0x477fc6['request'];},'abortController':_0x477fc6['abortController']};}['callSystemReview']({reviewName:_0x163961,content:_0x58cfb2,args:_0x577cea}){const _0x2f06f7=this['_sendApiRequest']('/reviews/system/'+_0x163961+'/calls','POST',{'content':[{'type':'text','content':_0x58cfb2}],'args':_0x577cea});return{'getStream':async()=>{const _0x31eccf=(await _0x2f06f7['request'])['body'];return this['_getStreamReader'](_0x31eccf);},'abortController':_0x2f06f7['abortController']};}['callCustomReview']({content:_0x50226e,prompt:_0x21d063,model:_0x2b5029}){const _0x10b576=this['_sendApiRequest']('/reviews/custom/calls','POST',{'content':[{'type':'text','content':_0x50226e}],'prompt':_0x21d063,'model':_0x2b5029});return{'getStream':async()=>{const _0x139c69=(await _0x10b576['request'])['body'];return this['_getStreamReader'](_0x139c69);},'abortController':_0x10b576['abortController']};}['upsertAIChatRating'](_0x2f2dc9,_0x3ad960,_0x360ecc){const _0x15d2dd=this['_sendApiRequest']('/conversations/'+_0x2f2dc9+'/messages/'+_0x3ad960+'/ratings','PUT',{'positiveCount':_0x360ecc['positiveCount'],'totalCount':_0x360ecc['totalCount'],'modificationId':_0x360ecc['modificationId']});return{'execute':async()=>{await _0x15d2dd['request'];},'abortController':_0x15d2dd['abortController']};}['upsertAIActionRating'](_0xdf3890,_0x429798,_0x51591a){const _0x510c22=this['_sendApiRequest']('/actions/system/'+_0xdf3890+'/calls/'+_0x429798+'/ratings','PUT',{'positiveCount':_0x51591a['positiveCount'],'totalCount':_0x51591a['totalCount']});return{'execute':async()=>{await _0x510c22['request'];},'abortController':_0x510c22['abortController']};}['upsertCustomAIActionRating'](_0x22a68f,_0x444df8){const _0x5c3071=this['_sendApiRequest']('/actions/custom/calls/'+_0x22a68f+'/ratings','PUT',{'positiveCount':_0x444df8['positiveCount'],'totalCount':_0x444df8['totalCount']});return{'execute':async()=>{await _0x5c3071['request'];},'abortController':_0x5c3071['abortController']};}['upsertAIReviewRating'](_0xd8a4d8,_0x459c6d,_0x58c67a,_0x3fccde){const _0x262655=this['_sendApiRequest']('/reviews/system/'+_0xd8a4d8+'/calls/'+_0x459c6d+'/ratings','PUT',{'positiveCount':_0x58c67a['positiveCount'],'totalCount':_0x58c67a['totalCount'],'dataId':_0x3fccde});return{'execute':async()=>{await _0x262655['request'];},'abortController':_0x262655['abortController']};}['upsertCustomAIReviewRating'](_0x30668d,_0x2bdadb,_0x35bd29){const _0x375588=this['_sendApiRequest']('/reviews/custom/calls/'+_0x30668d+'/ratings','PUT',{'positiveCount':_0x2bdadb['positiveCount'],'totalCount':_0x2bdadb['totalCount'],'dataId':_0x35bd29});return{'execute':async()=>{await _0x375588['request'];},'abortController':_0x375588['abortController']};}['_sendApiRequest'](_0x3cc765,_0x25df14,_0x20a96a,_0x5f61c3=!0x1){const _0x13a7de=new AbortController(),_0xbe91fd=_0x5f61c3?_0x25df14+':'+_0x3cc765:null;if(_0xbe91fd){const _0x11b61a=this['_responseCache']['get'](_0xbe91fd);if(_0x11b61a)return{'request':_0x11b61a['then'](_0x4fbe8b=>_0x4fbe8b['clone']()),'abortController':_0x13a7de};}const _0x4c8dd3=_0x20a96a instanceof FormData,_0x4009ea={'Authorization':'Bearer\x20'+this['_token']?.['value']};_0x20a96a&&!_0x4c8dd3&&(_0x4009ea['Content-Type']='application/json');const _0x1260fe={'method':_0x25df14,'headers':_0x4009ea,'signal':_0x13a7de['signal']};_0x20a96a&&(_0x1260fe['body']=_0x4c8dd3?_0x20a96a:JSON['stringify'](_0x20a96a));const _0x5b562f=fetch(''+this['_apiUrl']+_0x3cc765,_0x1260fe)['catch'](_0x21df22=>{_0xbe91fd&&this['_responseCache']['delete'](_0xbe91fd),this['_handleError'](_0x21df22);})['then'](_0x158d73=>_0x158d73['ok']?_0x158d73:_0x158d73['json']()['then'](_0x3d26a7=>{throw _0xbe91fd&&this['_responseCache']['delete'](_0xbe91fd),{'url':this['_apiUrl'],'path':_0x3cc765,'method':_0x25df14,'body':_0x20a96a,'status':(_0x158d73||{})['status'],'statusText':(_0x158d73||{})['statusText'],'code':_0x3d26a7['code'],'message':_0x3d26a7['message'],'traceId':_0x3d26a7['traceId']};}));return _0xbe91fd&&this['_responseCache']['set'](_0xbe91fd,_0x5b562f['then'](_0xa53bbb=>_0xa53bbb['clone']())),{'request':_0x5b562f,'abortController':_0x13a7de};}async*['_getStreamReader'](_0x4114fc){const _0x571fd5=[],_0x273320=_0x4114fc['getReader'](),_0x3cc8ed=createParser({'onError':_0x30dcd5=>{this['_handleError'](_0x30dcd5);},'onEvent':_0x24dc84=>{_0x24dc84['data']=JSON['parse'](_0x24dc84['data']),_0x571fd5['push'](_0x24dc84);}});try{let _0x426302=!0x1;for(;!_0x426302;){const {done:_0x2f4d59,value:_0x38db3f}=await _0x273320['read']();_0x2f4d59&&(_0x426302=!0x0),_0x3cc8ed['feed'](this['_decoder']['decode'](_0x38db3f,{'stream':!0x0})),yield*_0x571fd5,_0x571fd5['length']=0x0;}}catch(_0x406d3b){this['_handleError'](_0x406d3b);}finally{_0x273320['releaseLock'](),_0x3cc8ed['reset']();}}['_handleError'](_0xac3ed5){if(_0xac3ed5 instanceof CKEditorError)throw _0xac3ed5;if(_0xac3ed5 instanceof Error&&'AbortError'===_0xac3ed5['name'])throw new CKEditorError('ai-request-aborted',this,{'originalError':_0xac3ed5});throw new CKEditorError('ai-request-failed',this,{'originalError':_0xac3ed5});}}function getTranslation$i(_0x2a0fa6,_0x56c76b,_0x54c237){const t=_0x2a0fa6['t'];switch(_0x56c76b){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'},_0x54c237);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.'},_0x54c237);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.'},_0x54c237);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.'},_0x54c237);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'},_0x54c237);case'AI_CHAT_SUGGESTION_ACTION_SUGGEST':return t({'id':'AI_CHAT_SUGGESTION_ACTION_SUGGEST','string':'Suggest'},_0x54c237);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'},_0x54c237);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.'},_0x54c237);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.'},_0x54c237);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.'},_0x54c237);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.'},_0x54c237);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'},_0x54c237);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.'},_0x54c237);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 _0x56c76b;}}const AI_BUTTON_CLASSES={'PRIMARY':'ck-ai-button-primary','SECONDARY':'ck-ai-button-secondary','TERTIARY':'ck-ai-button-tertiary'};function createResizeButton(_0x3364c6,_0x2d65bb){const _0x53ce4c=new ButtonView(_0x3364c6),_0x43f0a7=getTranslation$i(_0x3364c6,'AI_TABS_LABEL_MINIMIZE'),_0x5aa4b8=getTranslation$i(_0x3364c6,'AI_TABS_LABEL_MAXIMIZE');return _0x53ce4c['set']({'withText':!0x1,'icon':IconMaximize,'tooltip':!0x0,'class':'ck-ai-tabs__resize\x20'+AI_BUTTON_CLASSES['TERTIARY']}),_0x53ce4c['bind']('label')['to'](_0x2d65bb,'isMaximized',_0x5df11f=>_0x5df11f?_0x43f0a7:_0x5aa4b8),_0x53ce4c['bind']('icon')['to'](_0x2d65bb,'isMaximized',_0x11b4c9=>_0x11b4c9?IconMinimize:IconMaximize),_0x53ce4c['bind']('isOn')['to'](_0x2d65bb,'isMaximized'),_0x53ce4c['on']('execute',()=>{_0x2d65bb['fire']('resizeTabs');}),_0x53ce4c;}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'](_0x361e98=>_0x361e98['charCodeAt'](0x0))),xmlDecodeTree=new Uint16Array('Ȁaglq\x09\x15\x18\x1bɭ\x0f\x00\x00\x12p;䀦os;䀧t;䀾t;䀼uot;䀢'['split']('')['map'](_0x18f44e=>_0x18f44e['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(_0x174996){let _0x2bc88f='';return _0x174996>0xffff&&(_0x174996-=0x10000,_0x2bc88f+=String['fromCharCode'](_0x174996>>>0xa&0x3ff|0xd800),_0x174996=0xdc00|0x3ff&_0x174996),_0x2bc88f+=String['fromCharCode'](_0x174996),_0x2bc88f;};function replaceCodePoint(_0x2750cf){var _0xb66bdf;return _0x2750cf>=0xd800&&_0x2750cf<=0xdfff||_0x2750cf>0x10ffff?0xfffd:null!==(_0xb66bdf=decodeMap['get'](_0x2750cf))&&void 0x0!==_0xb66bdf?_0xb66bdf:_0x2750cf;}var CharCodes$1;!function(_0x37800a){_0x37800a[_0x37800a['NUM']=0x23]='NUM',_0x37800a[_0x37800a['SEMI']=0x3b]='SEMI',_0x37800a[_0x37800a['EQUALS']=0x3d]='EQUALS',_0x37800a[_0x37800a['ZERO']=0x30]='ZERO',_0x37800a[_0x37800a['NINE']=0x39]='NINE',_0x37800a[_0x37800a['LOWER_A']=0x61]='LOWER_A',_0x37800a[_0x37800a['LOWER_F']=0x66]='LOWER_F',_0x37800a[_0x37800a['LOWER_X']=0x78]='LOWER_X',_0x37800a[_0x37800a['LOWER_Z']=0x7a]='LOWER_Z',_0x37800a[_0x37800a['UPPER_A']=0x41]='UPPER_A',_0x37800a[_0x37800a['UPPER_F']=0x46]='UPPER_F',_0x37800a[_0x37800a['UPPER_Z']=0x5a]='UPPER_Z';}(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT=0x20;var BinTrieFlags,EntityDecoderState,DecodingMode,CharCodes,State,QuoteType;function isNumber$1(_0x4cd404){return _0x4cd404>=CharCodes$1['ZERO']&&_0x4cd404<=CharCodes$1['NINE'];}function isHexadecimalCharacter(_0xf61268){return _0xf61268>=CharCodes$1['UPPER_A']&&_0xf61268<=CharCodes$1['UPPER_F']||_0xf61268>=CharCodes$1['LOWER_A']&&_0xf61268<=CharCodes$1['LOWER_F'];}function isAsciiAlphaNumeric(_0x143749){return _0x143749>=CharCodes$1['UPPER_A']&&_0x143749<=CharCodes$1['UPPER_Z']||_0x143749>=CharCodes$1['LOWER_A']&&_0x143749<=CharCodes$1['LOWER_Z']||isNumber$1(_0x143749);}function isEntityInAttributeInvalidEnd(_0x1e6e38){return _0x1e6e38===CharCodes$1['EQUALS']||isAsciiAlphaNumeric(_0x1e6e38);}!function(_0xc05a94){_0xc05a94[_0xc05a94['VALUE_LENGTH']=0xc000]='VALUE_LENGTH',_0xc05a94[_0xc05a94['BRANCH_LENGTH']=0x3f80]='BRANCH_LENGTH',_0xc05a94[_0xc05a94['JUMP_TABLE']=0x7f]='JUMP_TABLE';}(BinTrieFlags||(BinTrieFlags={})),function(_0x4b4677){_0x4b4677[_0x4b4677['EntityStart']=0x0]='EntityStart',_0x4b4677[_0x4b4677['NumericStart']=0x1]='NumericStart',_0x4b4677[_0x4b4677['NumericDecimal']=0x2]='NumericDecimal',_0x4b4677[_0x4b4677['NumericHex']=0x3]='NumericHex',_0x4b4677[_0x4b4677['NamedEntity']=0x4]='NamedEntity';}(EntityDecoderState||(EntityDecoderState={})),function(_0x210d32){_0x210d32[_0x210d32['Legacy']=0x0]='Legacy',_0x210d32[_0x210d32['Strict']=0x1]='Strict',_0x210d32[_0x210d32['Attribute']=0x2]='Attribute';}(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(_0x4bd432,_0x506374,_0x540744){this['decodeTree']=_0x4bd432,this['emitCodePoint']=_0x506374,this['errors']=_0x540744,this['state']=EntityDecoderState['EntityStart'],this['consumed']=0x1,this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['decodeMode']=DecodingMode['Strict'];}['startEntity'](_0x17f9a7){this['decodeMode']=_0x17f9a7,this['state']=EntityDecoderState['EntityStart'],this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['consumed']=0x1;}['write'](_0x3f602f,_0x10efdb){switch(this['state']){case EntityDecoderState['EntityStart']:return _0x3f602f['charCodeAt'](_0x10efdb)===CharCodes$1['NUM']?(this['state']=EntityDecoderState['NumericStart'],this['consumed']+=0x1,this['stateNumericStart'](_0x3f602f,_0x10efdb+0x1)):(this['state']=EntityDecoderState['NamedEntity'],this['stateNamedEntity'](_0x3f602f,_0x10efdb));case EntityDecoderState['NumericStart']:return this['stateNumericStart'](_0x3f602f,_0x10efdb);case EntityDecoderState['NumericDecimal']:return this['stateNumericDecimal'](_0x3f602f,_0x10efdb);case EntityDecoderState['NumericHex']:return this['stateNumericHex'](_0x3f602f,_0x10efdb);case EntityDecoderState['NamedEntity']:return this['stateNamedEntity'](_0x3f602f,_0x10efdb);}}['stateNumericStart'](_0x24f925,_0x97ae29){return _0x97ae29>=_0x24f925['length']?-0x1:(_0x24f925['charCodeAt'](_0x97ae29)|TO_LOWER_BIT)===CharCodes$1['LOWER_X']?(this['state']=EntityDecoderState['NumericHex'],this['consumed']+=0x1,this['stateNumericHex'](_0x24f925,_0x97ae29+0x1)):(this['state']=EntityDecoderState['NumericDecimal'],this['stateNumericDecimal'](_0x24f925,_0x97ae29));}['addToNumericResult'](_0x57476c,_0xd4ac10,_0x113bcf,_0x43567c){if(_0xd4ac10!==_0x113bcf){const _0x2f2a3f=_0x113bcf-_0xd4ac10;this['result']=this['result']*Math['pow'](_0x43567c,_0x2f2a3f)+Number['parseInt'](_0x57476c['substr'](_0xd4ac10,_0x2f2a3f),_0x43567c),this['consumed']+=_0x2f2a3f;}}['stateNumericHex'](_0x15c4ce,_0x5748f8){const _0x322591=_0x5748f8;for(;_0x5748f8<_0x15c4ce['length'];){const _0x4dce1f=_0x15c4ce['charCodeAt'](_0x5748f8);if(!isNumber$1(_0x4dce1f)&&!isHexadecimalCharacter(_0x4dce1f))return this['addToNumericResult'](_0x15c4ce,_0x322591,_0x5748f8,0x10),this['emitNumericEntity'](_0x4dce1f,0x3);_0x5748f8+=0x1;}return this['addToNumericResult'](_0x15c4ce,_0x322591,_0x5748f8,0x10),-0x1;}['stateNumericDecimal'](_0x55dac0,_0x1862ca){const _0x3a11c0=_0x1862ca;for(;_0x1862ca<_0x55dac0['length'];){const _0x539ab1=_0x55dac0['charCodeAt'](_0x1862ca);if(!isNumber$1(_0x539ab1))return this['addToNumericResult'](_0x55dac0,_0x3a11c0,_0x1862ca,0xa),this['emitNumericEntity'](_0x539ab1,0x2);_0x1862ca+=0x1;}return this['addToNumericResult'](_0x55dac0,_0x3a11c0,_0x1862ca,0xa),-0x1;}['emitNumericEntity'](_0x32a83d,_0x44b3ae){var _0x540488;if(this['consumed']<=_0x44b3ae)return null===(_0x540488=this['errors'])||void 0x0===_0x540488||_0x540488['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;if(_0x32a83d===CharCodes$1['SEMI'])this['consumed']+=0x1;else{if(this['decodeMode']===DecodingMode['Strict'])return 0x0;}return this['emitCodePoint'](replaceCodePoint(this['result']),this['consumed']),this['errors']&&(_0x32a83d!==CharCodes$1['SEMI']&&this['errors']['missingSemicolonAfterCharacterReference'](),this['errors']['validateNumericCharacterReference'](this['result'])),this['consumed'];}['stateNamedEntity'](_0x3558dc,_0x3f85d6){const {decodeTree:_0x15de96}=this;let _0x4dc9a9=_0x15de96[this['treeIndex']],_0x2d7515=(_0x4dc9a9&BinTrieFlags['VALUE_LENGTH'])>>0xe;for(;_0x3f85d6<_0x3558dc['length'];_0x3f85d6++,this['excess']++){const _0x5ebfb5=_0x3558dc['charCodeAt'](_0x3f85d6);if(this['treeIndex']=determineBranch(_0x15de96,_0x4dc9a9,this['treeIndex']+Math['max'](0x1,_0x2d7515),_0x5ebfb5),this['treeIndex']<0x0)return 0x0===this['result']||this['decodeMode']===DecodingMode['Attribute']&&(0x0===_0x2d7515||isEntityInAttributeInvalidEnd(_0x5ebfb5))?0x0:this['emitNotTerminatedNamedEntity']();if(_0x4dc9a9=_0x15de96[this['treeIndex']],_0x2d7515=(_0x4dc9a9&BinTrieFlags['VALUE_LENGTH'])>>0xe,0x0!==_0x2d7515){if(_0x5ebfb5===CharCodes$1['SEMI'])return this['emitNamedEntityData'](this['treeIndex'],_0x2d7515,this['consumed']+this['excess']);this['decodeMode']!==DecodingMode['Strict']&&(this['result']=this['treeIndex'],this['consumed']+=this['excess'],this['excess']=0x0);}}return-0x1;}['emitNotTerminatedNamedEntity'](){var _0x626b23;const {result:_0x2ab1bb,decodeTree:_0x39464e}=this,_0x54ca07=(_0x39464e[_0x2ab1bb]&BinTrieFlags['VALUE_LENGTH'])>>0xe;return this['emitNamedEntityData'](_0x2ab1bb,_0x54ca07,this['consumed']),null===(_0x626b23=this['errors'])||void 0x0===_0x626b23||_0x626b23['missingSemicolonAfterCharacterReference'](),this['consumed'];}['emitNamedEntityData'](_0x2718fe,_0x182cc5,_0x520b97){const {decodeTree:_0x5c53cb}=this;return this['emitCodePoint'](0x1===_0x182cc5?_0x5c53cb[_0x2718fe]&~BinTrieFlags['VALUE_LENGTH']:_0x5c53cb[_0x2718fe+0x1],_0x520b97),0x3===_0x182cc5&&this['emitCodePoint'](_0x5c53cb[_0x2718fe+0x2],_0x520b97),_0x520b97;}['end'](){var _0x1e8172;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===(_0x1e8172=this['errors'])||void 0x0===_0x1e8172||_0x1e8172['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;case EntityDecoderState['EntityStart']:return 0x0;}}}function determineBranch(_0x30f9fe,_0x278bf2,_0x191406,_0x2e7cf8){const _0x28eff0=(_0x278bf2&BinTrieFlags['BRANCH_LENGTH'])>>0x7,_0xde312a=_0x278bf2&BinTrieFlags['JUMP_TABLE'];if(0x0===_0x28eff0)return 0x0!==_0xde312a&&_0x2e7cf8===_0xde312a?_0x191406:-0x1;if(_0xde312a){const _0x58d533=_0x2e7cf8-_0xde312a;return _0x58d533<0x0||_0x58d533>=_0x28eff0?-0x1:_0x30f9fe[_0x191406+_0x58d533]-0x1;}let _0x2735b5=_0x191406,_0x4d4a92=_0x2735b5+_0x28eff0-0x1;for(;_0x2735b5<=_0x4d4a92;){const _0x423c80=_0x2735b5+_0x4d4a92>>>0x1,_0x81be2d=_0x30f9fe[_0x423c80];if(_0x81be2d<_0x2e7cf8)_0x2735b5=_0x423c80+0x1;else{if(!(_0x81be2d>_0x2e7cf8))return _0x30f9fe[_0x423c80+_0x28eff0];_0x4d4a92=_0x423c80-0x1;}}return-0x1;}function isWhitespace(_0x2634e9){return _0x2634e9===CharCodes['Space']||_0x2634e9===CharCodes['NewLine']||_0x2634e9===CharCodes['Tab']||_0x2634e9===CharCodes['FormFeed']||_0x2634e9===CharCodes['CarriageReturn'];}function isEndOfTagSection(_0x15879d){return _0x15879d===CharCodes['Slash']||_0x15879d===CharCodes['Gt']||isWhitespace(_0x15879d);}function isASCIIAlpha(_0x50e852){return _0x50e852>=CharCodes['LowerA']&&_0x50e852<=CharCodes['LowerZ']||_0x50e852>=CharCodes['UpperA']&&_0x50e852<=CharCodes['UpperZ'];}!function(_0x564aa2){_0x564aa2[_0x564aa2['Tab']=0x9]='Tab',_0x564aa2[_0x564aa2['NewLine']=0xa]='NewLine',_0x564aa2[_0x564aa2['FormFeed']=0xc]='FormFeed',_0x564aa2[_0x564aa2['CarriageReturn']=0xd]='CarriageReturn',_0x564aa2[_0x564aa2['Space']=0x20]='Space',_0x564aa2[_0x564aa2['ExclamationMark']=0x21]='ExclamationMark',_0x564aa2[_0x564aa2['Number']=0x23]='Number',_0x564aa2[_0x564aa2['Amp']=0x26]='Amp',_0x564aa2[_0x564aa2['SingleQuote']=0x27]='SingleQuote',_0x564aa2[_0x564aa2['DoubleQuote']=0x22]='DoubleQuote',_0x564aa2[_0x564aa2['Dash']=0x2d]='Dash',_0x564aa2[_0x564aa2['Slash']=0x2f]='Slash',_0x564aa2[_0x564aa2['Zero']=0x30]='Zero',_0x564aa2[_0x564aa2['Nine']=0x39]='Nine',_0x564aa2[_0x564aa2['Semi']=0x3b]='Semi',_0x564aa2[_0x564aa2['Lt']=0x3c]='Lt',_0x564aa2[_0x564aa2['Eq']=0x3d]='Eq',_0x564aa2[_0x564aa2['Gt']=0x3e]='Gt',_0x564aa2[_0x564aa2['Questionmark']=0x3f]='Questionmark',_0x564aa2[_0x564aa2['UpperA']=0x41]='UpperA',_0x564aa2[_0x564aa2['LowerA']=0x61]='LowerA',_0x564aa2[_0x564aa2['UpperF']=0x46]='UpperF',_0x564aa2[_0x564aa2['LowerF']=0x66]='LowerF',_0x564aa2[_0x564aa2['UpperZ']=0x5a]='UpperZ',_0x564aa2[_0x564aa2['LowerZ']=0x7a]='LowerZ',_0x564aa2[_0x564aa2['LowerX']=0x78]='LowerX',_0x564aa2[_0x564aa2['OpeningSquareBracket']=0x5b]='OpeningSquareBracket';}(CharCodes||(CharCodes={})),function(_0xc9c7a1){_0xc9c7a1[_0xc9c7a1['Text']=0x1]='Text',_0xc9c7a1[_0xc9c7a1['BeforeTagName']=0x2]='BeforeTagName',_0xc9c7a1[_0xc9c7a1['InTagName']=0x3]='InTagName',_0xc9c7a1[_0xc9c7a1['InSelfClosingTag']=0x4]='InSelfClosingTag',_0xc9c7a1[_0xc9c7a1['BeforeClosingTagName']=0x5]='BeforeClosingTagName',_0xc9c7a1[_0xc9c7a1['InClosingTagName']=0x6]='InClosingTagName',_0xc9c7a1[_0xc9c7a1['AfterClosingTagName']=0x7]='AfterClosingTagName',_0xc9c7a1[_0xc9c7a1['BeforeAttributeName']=0x8]='BeforeAttributeName',_0xc9c7a1[_0xc9c7a1['InAttributeName']=0x9]='InAttributeName',_0xc9c7a1[_0xc9c7a1['AfterAttributeName']=0xa]='AfterAttributeName',_0xc9c7a1[_0xc9c7a1['BeforeAttributeValue']=0xb]='BeforeAttributeValue',_0xc9c7a1[_0xc9c7a1['InAttributeValueDq']=0xc]='InAttributeValueDq',_0xc9c7a1[_0xc9c7a1['InAttributeValueSq']=0xd]='InAttributeValueSq',_0xc9c7a1[_0xc9c7a1['InAttributeValueNq']=0xe]='InAttributeValueNq',_0xc9c7a1[_0xc9c7a1['BeforeDeclaration']=0xf]='BeforeDeclaration',_0xc9c7a1[_0xc9c7a1['InDeclaration']=0x10]='InDeclaration',_0xc9c7a1[_0xc9c7a1['InProcessingInstruction']=0x11]='InProcessingInstruction',_0xc9c7a1[_0xc9c7a1['BeforeComment']=0x12]='BeforeComment',_0xc9c7a1[_0xc9c7a1['CDATASequence']=0x13]='CDATASequence',_0xc9c7a1[_0xc9c7a1['InSpecialComment']=0x14]='InSpecialComment',_0xc9c7a1[_0xc9c7a1['InCommentLike']=0x15]='InCommentLike',_0xc9c7a1[_0xc9c7a1['BeforeSpecialS']=0x16]='BeforeSpecialS',_0xc9c7a1[_0xc9c7a1['BeforeSpecialT']=0x17]='BeforeSpecialT',_0xc9c7a1[_0xc9c7a1['SpecialStartSequence']=0x18]='SpecialStartSequence',_0xc9c7a1[_0xc9c7a1['InSpecialTag']=0x19]='InSpecialTag',_0xc9c7a1[_0xc9c7a1['InEntity']=0x1a]='InEntity';}(State||(State={})),function(_0x1ad710){_0x1ad710[_0x1ad710['NoValue']=0x0]='NoValue',_0x1ad710[_0x1ad710['Unquoted']=0x1]='Unquoted',_0x1ad710[_0x1ad710['Single']=0x2]='Single',_0x1ad710[_0x1ad710['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:_0x5006c4=!0x1,decodeEntities:_0x4bade7=!0x0},_0x5ca3c1){this['cbs']=_0x5ca3c1,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']=_0x5006c4,this['decodeEntities']=_0x4bade7,this['entityDecoder']=new EntityDecoder(_0x5006c4?xmlDecodeTree:htmlDecodeTree,(_0x401ca0,_0x54116f)=>this['emitCodePoint'](_0x401ca0,_0x54116f));}['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'](_0x7f53cb){this['offset']+=this['buffer']['length'],this['buffer']=_0x7f53cb,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'](_0x4e1467){_0x4e1467===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']&&_0x4e1467===CharCodes['Amp']&&this['startEntity']();}['stateSpecialStartSequence'](_0x15dcfa){const _0x3df080=this['sequenceIndex']===this['currentSequence']['length'];if(_0x3df080?isEndOfTagSection(_0x15dcfa):(0x20|_0x15dcfa)===this['currentSequence'][this['sequenceIndex']]){if(!_0x3df080)return void this['sequenceIndex']++;}else this['isSpecial']=!0x1;this['sequenceIndex']=0x0,this['state']=State['InTagName'],this['stateInTagName'](_0x15dcfa);}['stateInSpecialTag'](_0x3897df){if(this['sequenceIndex']===this['currentSequence']['length']){if(_0x3897df===CharCodes['Gt']||isWhitespace(_0x3897df)){const _0xc43446=this['index']-this['currentSequence']['length'];if(this['sectionStart']<_0xc43446){const _0x2b3c3f=this['index'];this['index']=_0xc43446,this['cbs']['ontext'](this['sectionStart'],_0xc43446),this['index']=_0x2b3c3f;}return this['isSpecial']=!0x1,this['sectionStart']=_0xc43446+0x2,void this['stateInClosingTagName'](_0x3897df);}this['sequenceIndex']=0x0;}(0x20|_0x3897df)===this['currentSequence'][this['sequenceIndex']]?this['sequenceIndex']+=0x1:0x0===this['sequenceIndex']?this['currentSequence']===Sequences['TitleEnd']?this['decodeEntities']&&_0x3897df===CharCodes['Amp']&&this['startEntity']():this['fastForwardTo'](CharCodes['Lt'])&&(this['sequenceIndex']=0x1):this['sequenceIndex']=Number(_0x3897df===CharCodes['Lt']);}['stateCDATASequence'](_0x2c85be){_0x2c85be===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'](_0x2c85be));}['fastForwardTo'](_0xe7e67f){for(;++this['index']<this['buffer']['length']+this['offset'];)if(this['buffer']['charCodeAt'](this['index']-this['offset'])===_0xe7e67f)return!0x0;return this['index']=this['buffer']['length']+this['offset']-0x1,!0x1;}['stateInCommentLike'](_0x2e1f66){_0x2e1f66===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):_0x2e1f66!==this['currentSequence'][this['sequenceIndex']-0x1]&&(this['sequenceIndex']=0x0);}['isTagStartChar'](_0x3c8952){return this['xmlMode']?!isEndOfTagSection(_0x3c8952):isASCIIAlpha(_0x3c8952);}['startSpecial'](_0x1c065d,_0x8e130f){this['isSpecial']=!0x0,this['currentSequence']=_0x1c065d,this['sequenceIndex']=_0x8e130f,this['state']=State['SpecialStartSequence'];}['stateBeforeTagName'](_0x25e0f2){if(_0x25e0f2===CharCodes['ExclamationMark'])this['state']=State['BeforeDeclaration'],this['sectionStart']=this['index']+0x1;else{if(_0x25e0f2===CharCodes['Questionmark'])this['state']=State['InProcessingInstruction'],this['sectionStart']=this['index']+0x1;else{if(this['isTagStartChar'](_0x25e0f2)){const _0x5a0ec8=0x20|_0x25e0f2;this['sectionStart']=this['index'],this['xmlMode']?this['state']=State['InTagName']:_0x5a0ec8===Sequences['ScriptEnd'][0x2]?this['state']=State['BeforeSpecialS']:_0x5a0ec8===Sequences['TitleEnd'][0x2]||_0x5a0ec8===Sequences['XmpEnd'][0x2]?this['state']=State['BeforeSpecialT']:this['state']=State['InTagName'];}else _0x25e0f2===CharCodes['Slash']?this['state']=State['BeforeClosingTagName']:(this['state']=State['Text'],this['stateText'](_0x25e0f2));}}}['stateInTagName'](_0x1b645b){isEndOfTagSection(_0x1b645b)&&(this['cbs']['onopentagname'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x1b645b));}['stateBeforeClosingTagName'](_0x2b752b){isWhitespace(_0x2b752b)||(_0x2b752b===CharCodes['Gt']?this['state']=State['Text']:(this['state']=this['isTagStartChar'](_0x2b752b)?State['InClosingTagName']:State['InSpecialComment'],this['sectionStart']=this['index']));}['stateInClosingTagName'](_0x560c5e){(_0x560c5e===CharCodes['Gt']||isWhitespace(_0x560c5e))&&(this['cbs']['onclosetag'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=State['AfterClosingTagName'],this['stateAfterClosingTagName'](_0x560c5e));}['stateAfterClosingTagName'](_0x204074){(_0x204074===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeAttributeName'](_0x41cf1e){_0x41cf1e===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):_0x41cf1e===CharCodes['Slash']?this['state']=State['InSelfClosingTag']:isWhitespace(_0x41cf1e)||(this['state']=State['InAttributeName'],this['sectionStart']=this['index']);}['stateInSelfClosingTag'](_0x10c71b){_0x10c71b===CharCodes['Gt']?(this['cbs']['onselfclosingtag'](this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1,this['isSpecial']=!0x1):isWhitespace(_0x10c71b)||(this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x10c71b));}['stateInAttributeName'](_0x37b75f){(_0x37b75f===CharCodes['Eq']||isEndOfTagSection(_0x37b75f))&&(this['cbs']['onattribname'](this['sectionStart'],this['index']),this['sectionStart']=this['index'],this['state']=State['AfterAttributeName'],this['stateAfterAttributeName'](_0x37b75f));}['stateAfterAttributeName'](_0x5c7cc6){_0x5c7cc6===CharCodes['Eq']?this['state']=State['BeforeAttributeValue']:_0x5c7cc6===CharCodes['Slash']||_0x5c7cc6===CharCodes['Gt']?(this['cbs']['onattribend'](QuoteType['NoValue'],this['sectionStart']),this['sectionStart']=-0x1,this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x5c7cc6)):isWhitespace(_0x5c7cc6)||(this['cbs']['onattribend'](QuoteType['NoValue'],this['sectionStart']),this['state']=State['InAttributeName'],this['sectionStart']=this['index']);}['stateBeforeAttributeValue'](_0xfed244){_0xfed244===CharCodes['DoubleQuote']?(this['state']=State['InAttributeValueDq'],this['sectionStart']=this['index']+0x1):_0xfed244===CharCodes['SingleQuote']?(this['state']=State['InAttributeValueSq'],this['sectionStart']=this['index']+0x1):isWhitespace(_0xfed244)||(this['sectionStart']=this['index'],this['state']=State['InAttributeValueNq'],this['stateInAttributeValueNoQuotes'](_0xfed244));}['handleInAttributeValue'](_0x435f1f,_0x619cc3){_0x435f1f===_0x619cc3||!this['decodeEntities']&&this['fastForwardTo'](_0x619cc3)?(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['cbs']['onattribend'](_0x619cc3===CharCodes['DoubleQuote']?QuoteType['Double']:QuoteType['Single'],this['index']+0x1),this['state']=State['BeforeAttributeName']):this['decodeEntities']&&_0x435f1f===CharCodes['Amp']&&this['startEntity']();}['stateInAttributeValueDoubleQuotes'](_0x573fd6){this['handleInAttributeValue'](_0x573fd6,CharCodes['DoubleQuote']);}['stateInAttributeValueSingleQuotes'](_0x2a1258){this['handleInAttributeValue'](_0x2a1258,CharCodes['SingleQuote']);}['stateInAttributeValueNoQuotes'](_0x244482){isWhitespace(_0x244482)||_0x244482===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'](_0x244482)):this['decodeEntities']&&_0x244482===CharCodes['Amp']&&this['startEntity']();}['stateBeforeDeclaration'](_0x8c24ef){_0x8c24ef===CharCodes['OpeningSquareBracket']?(this['state']=State['CDATASequence'],this['sequenceIndex']=0x0):this['state']=_0x8c24ef===CharCodes['Dash']?State['BeforeComment']:State['InDeclaration'];}['stateInDeclaration'](_0x1547cb){(_0x1547cb===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['ondeclaration'](this['sectionStart'],this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateInProcessingInstruction'](_0x5323cb){(_0x5323cb===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['onprocessinginstruction'](this['sectionStart'],this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeComment'](_0x3413c5){_0x3413c5===CharCodes['Dash']?(this['state']=State['InCommentLike'],this['currentSequence']=Sequences['CommentEnd'],this['sequenceIndex']=0x2,this['sectionStart']=this['index']+0x1):this['state']=State['InDeclaration'];}['stateInSpecialComment'](_0x3a6e7a){(_0x3a6e7a===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['oncomment'](this['sectionStart'],this['index'],0x0),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeSpecialS'](_0xe46a91){const _0x4cd2c2=0x20|_0xe46a91;_0x4cd2c2===Sequences['ScriptEnd'][0x3]?this['startSpecial'](Sequences['ScriptEnd'],0x4):_0x4cd2c2===Sequences['StyleEnd'][0x3]?this['startSpecial'](Sequences['StyleEnd'],0x4):(this['state']=State['InTagName'],this['stateInTagName'](_0xe46a91));}['stateBeforeSpecialT'](_0x1e7e3a){switch(0x20|_0x1e7e3a){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'](_0x1e7e3a);}}['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 _0x249d6b=this['entityDecoder']['write'](this['buffer'],this['index']-this['offset']);_0x249d6b>=0x0?(this['state']=this['baseState'],0x0===_0x249d6b&&(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 _0x57c3dd=this['buffer']['charCodeAt'](this['index']-this['offset']);switch(this['state']){case State['Text']:this['stateText'](_0x57c3dd);break;case State['SpecialStartSequence']:this['stateSpecialStartSequence'](_0x57c3dd);break;case State['InSpecialTag']:this['stateInSpecialTag'](_0x57c3dd);break;case State['CDATASequence']:this['stateCDATASequence'](_0x57c3dd);break;case State['InAttributeValueDq']:this['stateInAttributeValueDoubleQuotes'](_0x57c3dd);break;case State['InAttributeName']:this['stateInAttributeName'](_0x57c3dd);break;case State['InCommentLike']:this['stateInCommentLike'](_0x57c3dd);break;case State['InSpecialComment']:this['stateInSpecialComment'](_0x57c3dd);break;case State['BeforeAttributeName']:this['stateBeforeAttributeName'](_0x57c3dd);break;case State['InTagName']:this['stateInTagName'](_0x57c3dd);break;case State['InClosingTagName']:this['stateInClosingTagName'](_0x57c3dd);break;case State['BeforeTagName']:this['stateBeforeTagName'](_0x57c3dd);break;case State['AfterAttributeName']:this['stateAfterAttributeName'](_0x57c3dd);break;case State['InAttributeValueSq']:this['stateInAttributeValueSingleQuotes'](_0x57c3dd);break;case State['BeforeAttributeValue']:this['stateBeforeAttributeValue'](_0x57c3dd);break;case State['BeforeClosingTagName']:this['stateBeforeClosingTagName'](_0x57c3dd);break;case State['AfterClosingTagName']:this['stateAfterClosingTagName'](_0x57c3dd);break;case State['BeforeSpecialS']:this['stateBeforeSpecialS'](_0x57c3dd);break;case State['BeforeSpecialT']:this['stateBeforeSpecialT'](_0x57c3dd);break;case State['InAttributeValueNq']:this['stateInAttributeValueNoQuotes'](_0x57c3dd);break;case State['InSelfClosingTag']:this['stateInSelfClosingTag'](_0x57c3dd);break;case State['InDeclaration']:this['stateInDeclaration'](_0x57c3dd);break;case State['BeforeDeclaration']:this['stateBeforeDeclaration'](_0x57c3dd);break;case State['BeforeComment']:this['stateBeforeComment'](_0x57c3dd);break;case State['InProcessingInstruction']:this['stateInProcessingInstruction'](_0x57c3dd);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 _0xabf44d=this['buffer']['length']+this['offset'];this['sectionStart']>=_0xabf44d||(this['state']===State['InCommentLike']?this['currentSequence']===Sequences['CdataEnd']?this['cbs']['oncdata'](this['sectionStart'],_0xabf44d,0x0):this['cbs']['oncomment'](this['sectionStart'],_0xabf44d,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'],_0xabf44d));}['emitCodePoint'](_0x3c916a,_0x4087cb){this['baseState']!==State['Text']&&this['baseState']!==State['InSpecialTag']?(this['sectionStart']<this['entityStart']&&this['cbs']['onattribdata'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0x4087cb,this['index']=this['sectionStart']-0x1,this['cbs']['onattribentity'](_0x3c916a)):(this['sectionStart']<this['entityStart']&&this['cbs']['ontext'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0x4087cb,this['index']=this['sectionStart']-0x1,this['cbs']['ontextentity'](_0x3c916a,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(_0x39e793,_0x23e272={}){var _0x55df09,_0x40776f,_0x1679f1,_0x56d194,_0x5ee06e,_0x111b08;this['options']=_0x23e272,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!=_0x39e793?_0x39e793:{},this['htmlMode']=!this['options']['xmlMode'],this['lowerCaseTagNames']=null!==(_0x55df09=_0x23e272['lowerCaseTags'])&&void 0x0!==_0x55df09?_0x55df09:this['htmlMode'],this['lowerCaseAttributeNames']=null!==(_0x40776f=_0x23e272['lowerCaseAttributeNames'])&&void 0x0!==_0x40776f?_0x40776f:this['htmlMode'],this['recognizeSelfClosing']=null!==(_0x1679f1=_0x23e272['recognizeSelfClosing'])&&void 0x0!==_0x1679f1?_0x1679f1:!this['htmlMode'],this['tokenizer']=new(null!==(_0x56d194=_0x23e272['Tokenizer'])&&void 0x0!==_0x56d194?_0x56d194:Tokenizer)(this['options'],this),this['foreignContext']=[!this['htmlMode']],null===(_0x111b08=(_0x5ee06e=this['cbs'])['onparserinit'])||void 0x0===_0x111b08||_0x111b08['call'](_0x5ee06e,this);}['ontext'](_0x1e173f,_0x435960){var _0x472db8,_0x5f4b4b;const _0x2e6644=this['getSlice'](_0x1e173f,_0x435960);this['endIndex']=_0x435960-0x1,null===(_0x5f4b4b=(_0x472db8=this['cbs'])['ontext'])||void 0x0===_0x5f4b4b||_0x5f4b4b['call'](_0x472db8,_0x2e6644),this['startIndex']=_0x435960;}['ontextentity'](_0x40cddf,_0x3c6514){var _0x918ef6,_0xdea396;this['endIndex']=_0x3c6514-0x1,null===(_0xdea396=(_0x918ef6=this['cbs'])['ontext'])||void 0x0===_0xdea396||_0xdea396['call'](_0x918ef6,fromCodePoint$1(_0x40cddf)),this['startIndex']=_0x3c6514;}['isVoidElement'](_0x37bbcd){return this['htmlMode']&&voidElements['has'](_0x37bbcd);}['onopentagname'](_0x58027d,_0x4bdad2){this['endIndex']=_0x4bdad2;let _0x515418=this['getSlice'](_0x58027d,_0x4bdad2);this['lowerCaseTagNames']&&(_0x515418=_0x515418['toLowerCase']()),this['emitOpenTag'](_0x515418);}['emitOpenTag'](_0x409f34){var _0x2d5c80,_0x309244,_0x34017d,_0x45db75;this['openTagStart']=this['startIndex'],this['tagname']=_0x409f34;const _0x3ae060=this['htmlMode']&&openImpliesClose['get'](_0x409f34);if(_0x3ae060)for(;this['stack']['length']>0x0&&_0x3ae060['has'](this['stack'][0x0]);){const _0x4b1e44=this['stack']['shift']();null===(_0x309244=(_0x2d5c80=this['cbs'])['onclosetag'])||void 0x0===_0x309244||_0x309244['call'](_0x2d5c80,_0x4b1e44,!0x0);}this['isVoidElement'](_0x409f34)||(this['stack']['unshift'](_0x409f34),this['htmlMode']&&(foreignContextElements['has'](_0x409f34)?this['foreignContext']['unshift'](!0x0):htmlIntegrationElements['has'](_0x409f34)&&this['foreignContext']['unshift'](!0x1))),null===(_0x45db75=(_0x34017d=this['cbs'])['onopentagname'])||void 0x0===_0x45db75||_0x45db75['call'](_0x34017d,_0x409f34),this['cbs']['onopentag']&&(this['attribs']={});}['endOpenTag'](_0x138ffa){var _0xe220c2,_0x411d7e;this['startIndex']=this['openTagStart'],this['attribs']&&(null===(_0x411d7e=(_0xe220c2=this['cbs'])['onopentag'])||void 0x0===_0x411d7e||_0x411d7e['call'](_0xe220c2,this['tagname'],this['attribs'],_0x138ffa),this['attribs']=null),this['cbs']['onclosetag']&&this['isVoidElement'](this['tagname'])&&this['cbs']['onclosetag'](this['tagname'],!0x0),this['tagname']='';}['onopentagend'](_0x557b98){this['endIndex']=_0x557b98,this['endOpenTag'](!0x1),this['startIndex']=_0x557b98+0x1;}['onclosetag'](_0x413db5,_0x3e8c73){var _0x1093de,_0x43ce86,_0x224a3c,_0x21943c,_0x1a6c17,_0x11182d,_0x2fce45,_0x58e58c;this['endIndex']=_0x3e8c73;let _0x5858ea=this['getSlice'](_0x413db5,_0x3e8c73);if(this['lowerCaseTagNames']&&(_0x5858ea=_0x5858ea['toLowerCase']()),this['htmlMode']&&(foreignContextElements['has'](_0x5858ea)||htmlIntegrationElements['has'](_0x5858ea))&&this['foreignContext']['shift'](),this['isVoidElement'](_0x5858ea))this['htmlMode']&&'br'===_0x5858ea&&(null===(_0x21943c=(_0x224a3c=this['cbs'])['onopentagname'])||void 0x0===_0x21943c||_0x21943c['call'](_0x224a3c,'br'),null===(_0x11182d=(_0x1a6c17=this['cbs'])['onopentag'])||void 0x0===_0x11182d||_0x11182d['call'](_0x1a6c17,'br',{},!0x0),null===(_0x58e58c=(_0x2fce45=this['cbs'])['onclosetag'])||void 0x0===_0x58e58c||_0x58e58c['call'](_0x2fce45,'br',!0x1));else{const _0x585205=this['stack']['indexOf'](_0x5858ea);if(-0x1!==_0x585205)for(let _0x5ebd69=0x0;_0x5ebd69<=_0x585205;_0x5ebd69++){const _0x1beeca=this['stack']['shift']();null===(_0x43ce86=(_0x1093de=this['cbs'])['onclosetag'])||void 0x0===_0x43ce86||_0x43ce86['call'](_0x1093de,_0x1beeca,_0x5ebd69!==_0x585205);}else this['htmlMode']&&'p'===_0x5858ea&&(this['emitOpenTag']('p'),this['closeCurrentTag'](!0x0));}this['startIndex']=_0x3e8c73+0x1;}['onselfclosingtag'](_0x333ec5){this['endIndex']=_0x333ec5,this['recognizeSelfClosing']||this['foreignContext'][0x0]?(this['closeCurrentTag'](!0x1),this['startIndex']=_0x333ec5+0x1):this['onopentagend'](_0x333ec5);}['closeCurrentTag'](_0x35ae0b){var _0xa5d250,_0x169579;const _0x1720ee=this['tagname'];this['endOpenTag'](_0x35ae0b),this['stack'][0x0]===_0x1720ee&&(null===(_0x169579=(_0xa5d250=this['cbs'])['onclosetag'])||void 0x0===_0x169579||_0x169579['call'](_0xa5d250,_0x1720ee,!_0x35ae0b),this['stack']['shift']());}['onattribname'](_0x7a3334,_0x2064e7){this['startIndex']=_0x7a3334;const _0x222cf3=this['getSlice'](_0x7a3334,_0x2064e7);this['attribname']=this['lowerCaseAttributeNames']?_0x222cf3['toLowerCase']():_0x222cf3;}['onattribdata'](_0x30c8cb,_0x1fcd1e){this['attribvalue']+=this['getSlice'](_0x30c8cb,_0x1fcd1e);}['onattribentity'](_0x288855){this['attribvalue']+=fromCodePoint$1(_0x288855);}['onattribend'](_0x177f34,_0x3c172e){var _0x5b3442,_0x1ec27e;this['endIndex']=_0x3c172e,null===(_0x1ec27e=(_0x5b3442=this['cbs'])['onattribute'])||void 0x0===_0x1ec27e||_0x1ec27e['call'](_0x5b3442,this['attribname'],this['attribvalue'],_0x177f34===QuoteType['Double']?'\x22':_0x177f34===QuoteType['Single']?'\x27':_0x177f34===QuoteType['NoValue']?void 0x0:null),this['attribs']&&!Object['prototype']['hasOwnProperty']['call'](this['attribs'],this['attribname'])&&(this['attribs'][this['attribname']]=this['attribvalue']),this['attribvalue']='';}['getInstructionName'](_0x598544){const _0x3196ed=_0x598544['search'](reNameEnd);let _0x45fdf7=_0x3196ed<0x0?_0x598544:_0x598544['substr'](0x0,_0x3196ed);return this['lowerCaseTagNames']&&(_0x45fdf7=_0x45fdf7['toLowerCase']()),_0x45fdf7;}['ondeclaration'](_0x1cb45c,_0x376659){this['endIndex']=_0x376659;const _0x4ee423=this['getSlice'](_0x1cb45c,_0x376659);if(this['cbs']['onprocessinginstruction']){const _0x1b374d=this['getInstructionName'](_0x4ee423);this['cbs']['onprocessinginstruction']('!'+_0x1b374d,'!'+_0x4ee423);}this['startIndex']=_0x376659+0x1;}['onprocessinginstruction'](_0x519c64,_0x558f21){this['endIndex']=_0x558f21;const _0x16c586=this['getSlice'](_0x519c64,_0x558f21);if(this['cbs']['onprocessinginstruction']){const _0x298b69=this['getInstructionName'](_0x16c586);this['cbs']['onprocessinginstruction']('?'+_0x298b69,'?'+_0x16c586);}this['startIndex']=_0x558f21+0x1;}['oncomment'](_0x2bc458,_0x45146,_0x317195){var _0x1ae1a0,_0x108c5b,_0x22fe8a,_0x47b0fe;this['endIndex']=_0x45146,null===(_0x108c5b=(_0x1ae1a0=this['cbs'])['oncomment'])||void 0x0===_0x108c5b||_0x108c5b['call'](_0x1ae1a0,this['getSlice'](_0x2bc458,_0x45146-_0x317195)),null===(_0x47b0fe=(_0x22fe8a=this['cbs'])['oncommentend'])||void 0x0===_0x47b0fe||_0x47b0fe['call'](_0x22fe8a),this['startIndex']=_0x45146+0x1;}['oncdata'](_0x38506b,_0x11d148,_0x308886){var _0x5d5798,_0x322322,_0x24151d,_0x1e23cb,_0x24b1cf,_0x450725,_0x35f5c4,_0x38d1b5,_0x331706,_0x53b96d;this['endIndex']=_0x11d148;const _0x5ec9fb=this['getSlice'](_0x38506b,_0x11d148-_0x308886);!this['htmlMode']||this['options']['recognizeCDATA']?(null===(_0x322322=(_0x5d5798=this['cbs'])['oncdatastart'])||void 0x0===_0x322322||_0x322322['call'](_0x5d5798),null===(_0x1e23cb=(_0x24151d=this['cbs'])['ontext'])||void 0x0===_0x1e23cb||_0x1e23cb['call'](_0x24151d,_0x5ec9fb),null===(_0x450725=(_0x24b1cf=this['cbs'])['oncdataend'])||void 0x0===_0x450725||_0x450725['call'](_0x24b1cf)):(null===(_0x38d1b5=(_0x35f5c4=this['cbs'])['oncomment'])||void 0x0===_0x38d1b5||_0x38d1b5['call'](_0x35f5c4,'[CDATA['+_0x5ec9fb+']]'),null===(_0x53b96d=(_0x331706=this['cbs'])['oncommentend'])||void 0x0===_0x53b96d||_0x53b96d['call'](_0x331706)),this['startIndex']=_0x11d148+0x1;}['onend'](){var _0x5b422d,_0x5dd860;if(this['cbs']['onclosetag']){this['endIndex']=this['startIndex'];for(let _0x5a171f=0x0;_0x5a171f<this['stack']['length'];_0x5a171f++)this['cbs']['onclosetag'](this['stack'][_0x5a171f],!0x0);}null===(_0x5dd860=(_0x5b422d=this['cbs'])['onend'])||void 0x0===_0x5dd860||_0x5dd860['call'](_0x5b422d);}['reset'](){var _0x58b5da,_0x5d6992,_0x26d42a,_0x3b6ce0;null===(_0x5d6992=(_0x58b5da=this['cbs'])['onreset'])||void 0x0===_0x5d6992||_0x5d6992['call'](_0x58b5da),this['tokenizer']['reset'](),this['tagname']='',this['attribname']='',this['attribs']=null,this['stack']['length']=0x0,this['startIndex']=0x0,this['endIndex']=0x0,null===(_0x3b6ce0=(_0x26d42a=this['cbs'])['onparserinit'])||void 0x0===_0x3b6ce0||_0x3b6ce0['call'](_0x26d42a,this),this['buffers']['length']=0x0,this['foreignContext']['length']=0x0,this['foreignContext']['unshift'](!this['htmlMode']),this['bufferOffset']=0x0,this['writeIndex']=0x0,this['ended']=!0x1;}['parseComplete'](_0x20d021){this['reset'](),this['end'](_0x20d021);}['getSlice'](_0x5ee49d,_0x12ebaa){for(;_0x5ee49d-this['bufferOffset']>=this['buffers'][0x0]['length'];)this['shiftBuffer']();let _0x5c99e1=this['buffers'][0x0]['slice'](_0x5ee49d-this['bufferOffset'],_0x12ebaa-this['bufferOffset']);for(;_0x12ebaa-this['bufferOffset']>this['buffers'][0x0]['length'];)this['shiftBuffer'](),_0x5c99e1+=this['buffers'][0x0]['slice'](0x0,_0x12ebaa-this['bufferOffset']);return _0x5c99e1;}['shiftBuffer'](){this['bufferOffset']+=this['buffers'][0x0]['length'],this['writeIndex']--,this['buffers']['shift']();}['write'](_0x4cdf89){var _0xcec62a,_0x2594fd;this['ended']?null===(_0x2594fd=(_0xcec62a=this['cbs'])['onerror'])||void 0x0===_0x2594fd||_0x2594fd['call'](_0xcec62a,new Error('.write()\x20after\x20done!')):(this['buffers']['push'](_0x4cdf89),this['tokenizer']['running']&&(this['tokenizer']['write'](_0x4cdf89),this['writeIndex']++));}['end'](_0x1561fe){var _0x49c575,_0x683aac;this['ended']?null===(_0x683aac=(_0x49c575=this['cbs'])['onerror'])||void 0x0===_0x683aac||_0x683aac['call'](_0x49c575,new Error('.end()\x20after\x20done!')):(_0x1561fe&&this['write'](_0x1561fe),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'](_0x3b2452){this['write'](_0x3b2452);}['done'](_0x444d0b){this['end'](_0x444d0b);}};var ElementType;function isTag$1(_0xc8a3fd){return _0xc8a3fd['type']===ElementType['Tag']||_0xc8a3fd['type']===ElementType['Script']||_0xc8a3fd['type']===ElementType['Style'];}!function(_0x49325a){_0x49325a['Root']='root',_0x49325a['Text']='text',_0x49325a['Directive']='directive',_0x49325a['Comment']='comment',_0x49325a['Script']='script',_0x49325a['Style']='style',_0x49325a['Tag']='tag',_0x49325a['CDATA']='cdata',_0x49325a['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'](_0x537070){this['parent']=_0x537070;}get['previousSibling'](){return this['prev'];}set['previousSibling'](_0x4b746a){this['prev']=_0x4b746a;}get['nextSibling'](){return this['next'];}set['nextSibling'](_0x1338e1){this['next']=_0x1338e1;}['cloneNode'](_0x358c49=!0x1){return cloneNode(this,_0x358c49);}};class DataNode extends Node$1{constructor(_0x41b5a5){super(),this['data']=_0x41b5a5;}get['nodeValue'](){return this['data'];}set['nodeValue'](_0x49adad){this['data']=_0x49adad;}}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(_0x252ed4,_0x19cf18){super(_0x19cf18),this['name']=_0x252ed4,this['type']=ElementType['Directive'];}get['nodeType'](){return 0x1;}}class NodeWithChildren extends Node$1{constructor(_0x25b9c1){super(),this['children']=_0x25b9c1;}get['firstChild'](){var _0x5c7063;return null!==(_0x5c7063=this['children'][0x0])&&void 0x0!==_0x5c7063?_0x5c7063:null;}get['lastChild'](){return this['children']['length']>0x0?this['children'][this['children']['length']-0x1]:null;}get['childNodes'](){return this['children'];}set['childNodes'](_0x31a412){this['children']=_0x31a412;}}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(_0x4eaaf2,_0x32ed03,_0x36d805=[],_0xc6f272='script'===_0x4eaaf2?ElementType['Script']:'style'===_0x4eaaf2?ElementType['Style']:ElementType['Tag']){super(_0x36d805),this['name']=_0x4eaaf2,this['attribs']=_0x32ed03,this['type']=_0xc6f272;}get['nodeType'](){return 0x1;}get['tagName'](){return this['name'];}set['tagName'](_0x1e39b7){this['name']=_0x1e39b7;}get['attributes'](){return Object['keys'](this['attribs'])['map'](_0x262c49=>{var _0x179f5e,_0x2ce41f;return{'name':_0x262c49,'value':this['attribs'][_0x262c49],'namespace':null===(_0x179f5e=this['x-attribsNamespace'])||void 0x0===_0x179f5e?void 0x0:_0x179f5e[_0x262c49],'prefix':null===(_0x2ce41f=this['x-attribsPrefix'])||void 0x0===_0x2ce41f?void 0x0:_0x2ce41f[_0x262c49]};});}};function isTag(_0x28004b){return isTag$1(_0x28004b);}function isCDATA(_0x3f1403){return _0x3f1403['type']===ElementType['CDATA'];}function isText$1(_0x6e847){return _0x6e847['type']===ElementType['Text'];}function isComment(_0x446773){return _0x446773['type']===ElementType['Comment'];}function isDirective(_0x135be9){return _0x135be9['type']===ElementType['Directive'];}function isDocument(_0x5191b3){return _0x5191b3['type']===ElementType['Root'];}function hasChildren(_0x8907c4){return Object['prototype']['hasOwnProperty']['call'](_0x8907c4,'children');}function cloneNode(_0x257a70,_0x58aa8d=!0x1){let _0x168605;if(isText$1(_0x257a70))_0x168605=new Text$1(_0x257a70['data']);else{if(isComment(_0x257a70))_0x168605=new Comment$1(_0x257a70['data']);else{if(isTag(_0x257a70)){const _0x169fa4=_0x58aa8d?cloneChildren(_0x257a70['children']):[],_0x382d20=new Element$3(_0x257a70['name'],{..._0x257a70['attribs']},_0x169fa4);_0x169fa4['forEach'](_0x405609=>_0x405609['parent']=_0x382d20),null!=_0x257a70['namespace']&&(_0x382d20['namespace']=_0x257a70['namespace']),_0x257a70['x-attribsNamespace']&&(_0x382d20['x-attribsNamespace']={..._0x257a70['x-attribsNamespace']}),_0x257a70['x-attribsPrefix']&&(_0x382d20['x-attribsPrefix']={..._0x257a70['x-attribsPrefix']}),_0x168605=_0x382d20;}else{if(isCDATA(_0x257a70)){const _0x45244d=_0x58aa8d?cloneChildren(_0x257a70['children']):[],_0x45fd03=new CDATA(_0x45244d);_0x45244d['forEach'](_0x126def=>_0x126def['parent']=_0x45fd03),_0x168605=_0x45fd03;}else{if(isDocument(_0x257a70)){const _0x473e97=_0x58aa8d?cloneChildren(_0x257a70['children']):[],_0x4f0436=new Document(_0x473e97);_0x473e97['forEach'](_0x36b862=>_0x36b862['parent']=_0x4f0436),_0x257a70['x-mode']&&(_0x4f0436['x-mode']=_0x257a70['x-mode']),_0x168605=_0x4f0436;}else{if(!isDirective(_0x257a70))throw new Error('Not\x20implemented\x20yet:\x20'+_0x257a70['type']);{const _0x28593c=new ProcessingInstruction(_0x257a70['name'],_0x257a70['data']);null!=_0x257a70['x-name']&&(_0x28593c['x-name']=_0x257a70['x-name'],_0x28593c['x-publicId']=_0x257a70['x-publicId'],_0x28593c['x-systemId']=_0x257a70['x-systemId']),_0x168605=_0x28593c;}}}}}}return _0x168605['startIndex']=_0x257a70['startIndex'],_0x168605['endIndex']=_0x257a70['endIndex'],null!=_0x257a70['sourceCodeLocation']&&(_0x168605['sourceCodeLocation']=_0x257a70['sourceCodeLocation']),_0x168605;}function cloneChildren(_0x463a49){const _0x4c3eb5=_0x463a49['map'](_0x1ac982=>cloneNode(_0x1ac982,!0x0));for(let _0x36409f=0x1;_0x36409f<_0x4c3eb5['length'];_0x36409f++)_0x4c3eb5[_0x36409f]['prev']=_0x4c3eb5[_0x36409f-0x1],_0x4c3eb5[_0x36409f-0x1]['next']=_0x4c3eb5[_0x36409f];return _0x4c3eb5;}const defaultOpts={'withStartIndices':!0x1,'withEndIndices':!0x1,'xmlMode':!0x1};class DomHandler{constructor(_0x45c735,_0x2699ce,_0x15633c){this['dom']=[],this['root']=new Document(this['dom']),this['done']=!0x1,this['tagStack']=[this['root']],this['lastNode']=null,this['parser']=null,'function'==typeof _0x2699ce&&(_0x15633c=_0x2699ce,_0x2699ce=defaultOpts),'object'==typeof _0x45c735&&(_0x2699ce=_0x45c735,_0x45c735=void 0x0),this['callback']=null!=_0x45c735?_0x45c735:null,this['options']=null!=_0x2699ce?_0x2699ce:defaultOpts,this['elementCB']=null!=_0x15633c?_0x15633c:null;}['onparserinit'](_0x346536){this['parser']=_0x346536;}['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'](_0x3c886d){this['handleCallback'](_0x3c886d);}['onclosetag'](){this['lastNode']=null;const _0x28e929=this['tagStack']['pop']();this['options']['withEndIndices']&&(_0x28e929['endIndex']=this['parser']['endIndex']),this['elementCB']&&this['elementCB'](_0x28e929);}['onopentag'](_0x595e92,_0x1e48f4){const _0x14f0ae=this['options']['xmlMode']?ElementType['Tag']:void 0x0,_0x3fb1bc=new Element$3(_0x595e92,_0x1e48f4,void 0x0,_0x14f0ae);this['addNode'](_0x3fb1bc),this['tagStack']['push'](_0x3fb1bc);}['ontext'](_0x3c7b23){const {lastNode:_0x21ecf5}=this;if(_0x21ecf5&&_0x21ecf5['type']===ElementType['Text'])_0x21ecf5['data']+=_0x3c7b23,this['options']['withEndIndices']&&(_0x21ecf5['endIndex']=this['parser']['endIndex']);else{const _0x25967a=new Text$1(_0x3c7b23);this['addNode'](_0x25967a),this['lastNode']=_0x25967a;}}['oncomment'](_0x1176d3){if(this['lastNode']&&this['lastNode']['type']===ElementType['Comment'])return void(this['lastNode']['data']+=_0x1176d3);const _0x3107f9=new Comment$1(_0x1176d3);this['addNode'](_0x3107f9),this['lastNode']=_0x3107f9;}['oncommentend'](){this['lastNode']=null;}['oncdatastart'](){const _0x58da11=new Text$1(''),_0x4d958b=new CDATA([_0x58da11]);this['addNode'](_0x4d958b),_0x58da11['parent']=_0x4d958b,this['lastNode']=_0x58da11;}['oncdataend'](){this['lastNode']=null;}['onprocessinginstruction'](_0x336c44,_0x357b48){const _0x341cb2=new ProcessingInstruction(_0x336c44,_0x357b48);this['addNode'](_0x341cb2);}['handleCallback'](_0x22385c){if('function'==typeof this['callback'])this['callback'](_0x22385c,this['dom']);else{if(_0x22385c)throw _0x22385c;}}['addNode'](_0x1bc31a){const _0x46a02a=this['tagStack'][this['tagStack']['length']-0x1],_0x3f41f9=_0x46a02a['children'][_0x46a02a['children']['length']-0x1];this['options']['withStartIndices']&&(_0x1bc31a['startIndex']=this['parser']['startIndex']),this['options']['withEndIndices']&&(_0x1bc31a['endIndex']=this['parser']['endIndex']),_0x46a02a['children']['push'](_0x1bc31a),_0x3f41f9&&(_0x1bc31a['prev']=_0x3f41f9,_0x3f41f9['next']=_0x1bc31a),_0x1bc31a['parent']=_0x46a02a,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']?(_0x3e0de2,_0x5e17f6)=>_0x3e0de2['codePointAt'](_0x5e17f6):(_0x431200,_0x5b1a70)=>0xd800==(0xfc00&_0x431200['charCodeAt'](_0x5b1a70))?0x400*(_0x431200['charCodeAt'](_0x5b1a70)-0xd800)+_0x431200['charCodeAt'](_0x5b1a70+0x1)-0xdc00+0x10000:_0x431200['charCodeAt'](_0x5b1a70);function encodeXML(_0x3a7bd3){let _0x236ab3,_0x3255e7='',_0x4572d9=0x0;for(;null!==(_0x236ab3=xmlReplacer['exec'](_0x3a7bd3));){const _0x1b58da=_0x236ab3['index'],_0x4d7273=_0x3a7bd3['charCodeAt'](_0x1b58da),_0x47ee1f=xmlCodeMap['get'](_0x4d7273);void 0x0!==_0x47ee1f?(_0x3255e7+=_0x3a7bd3['substring'](_0x4572d9,_0x1b58da)+_0x47ee1f,_0x4572d9=_0x1b58da+0x1):(_0x3255e7+=_0x3a7bd3['substring'](_0x4572d9,_0x1b58da)+'&#x'+getCodePoint(_0x3a7bd3,_0x1b58da)['toString'](0x10)+';',_0x4572d9=xmlReplacer['lastIndex']+=Number(0xd800==(0xfc00&_0x4d7273)));}return _0x3255e7+_0x3a7bd3['substr'](_0x4572d9);}function getEscaper(_0x5dc180,_0x440c5d){return function(_0x214836){let _0x7a9026,_0x27bb77=0x0,_0x5b9a5c='';for(;_0x7a9026=_0x5dc180['exec'](_0x214836);)_0x27bb77!==_0x7a9026['index']&&(_0x5b9a5c+=_0x214836['substring'](_0x27bb77,_0x7a9026['index'])),_0x5b9a5c+=_0x440c5d['get'](_0x7a9026[0x0]['charCodeAt'](0x0)),_0x27bb77=_0x7a9026['index']+0x1;return _0x5b9a5c+_0x214836['substring'](_0x27bb77);};}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'](_0x22eb7e=>[_0x22eb7e['toLowerCase'](),_0x22eb7e])),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'](_0xc6c7e0=>[_0xc6c7e0['toLowerCase'](),_0xc6c7e0])),unencodedElements=new Set(['style','script','xmp','iframe','noembed','noframes','plaintext','noscript']);function replaceQuotes(_0x4d13b2){return _0x4d13b2['replace'](/"/g,'&quot;');}function formatAttributes(_0x165d6d,_0x31a5b6){var _0x2a5fe4;if(!_0x165d6d)return;const _0x9df271=!0x1===(null!==(_0x2a5fe4=_0x31a5b6['encodeEntities'])&&void 0x0!==_0x2a5fe4?_0x2a5fe4:_0x31a5b6['decodeEntities'])?replaceQuotes:_0x31a5b6['xmlMode']||'utf8'!==_0x31a5b6['encodeEntities']?encodeXML:escapeAttribute;return Object['keys'](_0x165d6d)['map'](_0x2f44fc=>{var _0x4b71f1,_0x2bad42;const _0x57bfcb=null!==(_0x4b71f1=_0x165d6d[_0x2f44fc])&&void 0x0!==_0x4b71f1?_0x4b71f1:'';return'foreign'===_0x31a5b6['xmlMode']&&(_0x2f44fc=null!==(_0x2bad42=attributeNames['get'](_0x2f44fc))&&void 0x0!==_0x2bad42?_0x2bad42:_0x2f44fc),_0x31a5b6['emptyAttrs']||_0x31a5b6['xmlMode']||''!==_0x57bfcb?_0x2f44fc+'=\x22'+_0x9df271(_0x57bfcb)+'\x22':_0x2f44fc;})['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(_0x2a5c83,_0x96efef={}){const _0x2eb491='length'in _0x2a5c83?_0x2a5c83:[_0x2a5c83];let _0x335d28='';for(let _0x102ac2=0x0;_0x102ac2<_0x2eb491['length'];_0x102ac2++)_0x335d28+=renderNode(_0x2eb491[_0x102ac2],_0x96efef);return _0x335d28;}function renderNode(_0x146550,_0x5c5d9f){switch(_0x146550['type']){case Root:return render(_0x146550['children'],_0x5c5d9f);case Doctype:case Directive:return renderDirective(_0x146550);case Comment$2:return renderComment(_0x146550);case CDATA$1:return renderCdata(_0x146550);case Script:case Style:case Tag$1:return renderTag(_0x146550,_0x5c5d9f);case Text$2:return renderText(_0x146550,_0x5c5d9f);}}const foreignModeIntegrationPoints=new Set(['mi','mo','mn','ms','mtext','annotation-xml','foreignObject','desc','title']),foreignElements=new Set(['svg','math']);function renderTag(_0x2419e6,_0x5b0f13){var _0x550511;'foreign'===_0x5b0f13['xmlMode']&&(_0x2419e6['name']=null!==(_0x550511=elementNames['get'](_0x2419e6['name']))&&void 0x0!==_0x550511?_0x550511:_0x2419e6['name'],_0x2419e6['parent']&&foreignModeIntegrationPoints['has'](_0x2419e6['parent']['name'])&&(_0x5b0f13={..._0x5b0f13,'xmlMode':!0x1})),!_0x5b0f13['xmlMode']&&foreignElements['has'](_0x2419e6['name'])&&(_0x5b0f13={..._0x5b0f13,'xmlMode':'foreign'});let _0x5de85e='<'+_0x2419e6['name'];const _0x952ffc=formatAttributes(_0x2419e6['attribs'],_0x5b0f13);return _0x952ffc&&(_0x5de85e+='\x20'+_0x952ffc),0x0===_0x2419e6['children']['length']&&(_0x5b0f13['xmlMode']?!0x1!==_0x5b0f13['selfClosingTags']:_0x5b0f13['selfClosingTags']&&singleTag['has'](_0x2419e6['name']))?(_0x5b0f13['xmlMode']||(_0x5de85e+='\x20'),_0x5de85e+='/>'):(_0x5de85e+='>',_0x2419e6['children']['length']>0x0&&(_0x5de85e+=render(_0x2419e6['children'],_0x5b0f13)),!_0x5b0f13['xmlMode']&&singleTag['has'](_0x2419e6['name'])||(_0x5de85e+='</'+_0x2419e6['name']+'>')),_0x5de85e;}function renderDirective(_0x42acf6){return'<'+_0x42acf6['data']+'>';}function renderText(_0x53f706,_0x2fde04){var _0x18a1ce;let _0x30ea93=_0x53f706['data']||'';return!0x1===(null!==(_0x18a1ce=_0x2fde04['encodeEntities'])&&void 0x0!==_0x18a1ce?_0x18a1ce:_0x2fde04['decodeEntities'])||!_0x2fde04['xmlMode']&&_0x53f706['parent']&&unencodedElements['has'](_0x53f706['parent']['name'])||(_0x30ea93=_0x2fde04['xmlMode']||'utf8'!==_0x2fde04['encodeEntities']?encodeXML(_0x30ea93):escapeText(_0x30ea93)),_0x30ea93;}function renderCdata(_0x1c6dff){return'<![CDATA['+_0x1c6dff['children'][0x0]['data']+']]>';}function renderComment(_0xf02998){return'<!--'+_0xf02998['data']+'-->';}function textContent(_0x504b60){return Array['isArray'](_0x504b60)?_0x504b60['map'](textContent)['join'](''):hasChildren(_0x504b60)&&!isComment(_0x504b60)?textContent(_0x504b60['children']):isText$1(_0x504b60)?_0x504b60['data']:'';}function getChildren$1(_0x139961){return hasChildren(_0x139961)?_0x139961['children']:[];}function getParent(_0x31913a){return _0x31913a['parent']||null;}function removeElement(_0x290a28){if(_0x290a28['prev']&&(_0x290a28['prev']['next']=_0x290a28['next']),_0x290a28['next']&&(_0x290a28['next']['prev']=_0x290a28['prev']),_0x290a28['parent']){const _0x3386be=_0x290a28['parent']['children'],_0x25e285=_0x3386be['lastIndexOf'](_0x290a28);_0x25e285>=0x0&&_0x3386be['splice'](_0x25e285,0x1);}_0x290a28['next']=null,_0x290a28['prev']=null,_0x290a28['parent']=null;}function replaceElement(_0x5ea564,_0x50ca20){const _0x18c159=_0x50ca20['prev']=_0x5ea564['prev'];_0x18c159&&(_0x18c159['next']=_0x50ca20);const _0x1d5e14=_0x50ca20['next']=_0x5ea564['next'];_0x1d5e14&&(_0x1d5e14['prev']=_0x50ca20);const _0x4130e0=_0x50ca20['parent']=_0x5ea564['parent'];if(_0x4130e0){const _0x258ae8=_0x4130e0['children'];_0x258ae8[_0x258ae8['lastIndexOf'](_0x5ea564)]=_0x50ca20,_0x5ea564['parent']=null;}}function appendChild(_0x432559,_0x4cad08){if(removeElement(_0x4cad08),_0x4cad08['next']=null,_0x4cad08['parent']=_0x432559,_0x432559['children']['push'](_0x4cad08)>0x1){const _0x42c4b4=_0x432559['children'][_0x432559['children']['length']-0x2];_0x42c4b4['next']=_0x4cad08,_0x4cad08['prev']=_0x42c4b4;}else _0x4cad08['prev']=null;}function append(_0x3dc4ce,_0x6b7126){removeElement(_0x6b7126);const {parent:_0x5e4aa0}=_0x3dc4ce,_0x50184b=_0x3dc4ce['next'];if(_0x6b7126['next']=_0x50184b,_0x6b7126['prev']=_0x3dc4ce,_0x3dc4ce['next']=_0x6b7126,_0x6b7126['parent']=_0x5e4aa0,_0x50184b){if(_0x50184b['prev']=_0x6b7126,_0x5e4aa0){const _0x266cbd=_0x5e4aa0['children'];_0x266cbd['splice'](_0x266cbd['lastIndexOf'](_0x50184b),0x0,_0x6b7126);}}else _0x5e4aa0&&_0x5e4aa0['children']['push'](_0x6b7126);}function prependChild(_0x55a679,_0x2f8a65){if(removeElement(_0x2f8a65),_0x2f8a65['parent']=_0x55a679,_0x2f8a65['prev']=null,0x1!==_0x55a679['children']['unshift'](_0x2f8a65)){const _0x40c81b=_0x55a679['children'][0x1];_0x40c81b['prev']=_0x2f8a65,_0x2f8a65['next']=_0x40c81b;}else _0x2f8a65['next']=null;}function prepend(_0x18223c,_0x4ae73a){removeElement(_0x4ae73a);const {parent:_0x16bfd9}=_0x18223c;if(_0x16bfd9){const _0x1e8e5e=_0x16bfd9['children'];_0x1e8e5e['splice'](_0x1e8e5e['indexOf'](_0x18223c),0x0,_0x4ae73a);}_0x18223c['prev']&&(_0x18223c['prev']['next']=_0x4ae73a),_0x4ae73a['parent']=_0x16bfd9,_0x4ae73a['prev']=_0x18223c['prev'],_0x4ae73a['next']=_0x18223c,_0x18223c['prev']=_0x4ae73a;}function find$1(_0x2cfce6,_0x3f7dfe,_0x2627cc,_0x1bf0ba){const _0x134a68=[],_0x43ded9=[Array['isArray'](_0x3f7dfe)?_0x3f7dfe:[_0x3f7dfe]],_0x477481=[0x0];for(;;){if(_0x477481[0x0]>=_0x43ded9[0x0]['length']){if(0x1===_0x477481['length'])return _0x134a68;_0x43ded9['shift'](),_0x477481['shift']();continue;}const _0x4af59c=_0x43ded9[0x0][_0x477481[0x0]++];if(_0x2cfce6(_0x4af59c)&&(_0x134a68['push'](_0x4af59c),--_0x1bf0ba<=0x0))return _0x134a68;hasChildren(_0x4af59c)&&_0x4af59c['children']['length']>0x0&&(_0x477481['unshift'](0x0),_0x43ded9['unshift'](_0x4af59c['children']));}}function findOne(_0x20d48f,_0x5d4795,_0x11388f=!0x0){const _0x38caba=Array['isArray'](_0x5d4795)?_0x5d4795:[_0x5d4795];for(let _0x3378cc=0x0;_0x3378cc<_0x38caba['length'];_0x3378cc++){const _0x1f7410=_0x38caba[_0x3378cc];if(isTag(_0x1f7410)&&_0x20d48f(_0x1f7410))return _0x1f7410;if(_0x11388f&&hasChildren(_0x1f7410)&&_0x1f7410['children']['length']>0x0){const _0x35f3b4=findOne(_0x20d48f,_0x1f7410['children'],!0x0);if(_0x35f3b4)return _0x35f3b4;}}return null;}function findAll(_0x359707,_0x5f211a){const _0x5742b8=[],_0x300101=[Array['isArray'](_0x5f211a)?_0x5f211a:[_0x5f211a]],_0x4ba249=[0x0];for(;;){if(_0x4ba249[0x0]>=_0x300101[0x0]['length']){if(0x1===_0x300101['length'])return _0x5742b8;_0x300101['shift'](),_0x4ba249['shift']();continue;}const _0x365925=_0x300101[0x0][_0x4ba249[0x0]++];isTag(_0x365925)&&_0x359707(_0x365925)&&_0x5742b8['push'](_0x365925),hasChildren(_0x365925)&&_0x365925['children']['length']>0x0&&(_0x4ba249['unshift'](0x0),_0x300101['unshift'](_0x365925['children']));}}function parseDocument(_0x2b4de9,_0x33b2b5){const _0x58fe76=new DomHandler(void 0x0,_0x33b2b5);return new Parser$1(_0x58fe76,_0x33b2b5)['end'](_0x2b4de9),_0x58fe76['root'];}function parse$2(_0x346b0f){return parseDocument(_0x346b0f);}function serialize$1(_0x4fc205){return render(_0x4fc205);}function findByAttribute(_0x1db1cd,_0x4af16e,_0x2ac959){const _0x4adc6b=null!==_0x4af16e?_0x4bc97e=>_0x4bc97e['attribs'][_0x1db1cd]===_0x4af16e:_0x1276c2=>Boolean(_0x1276c2['attribs'][_0x1db1cd]);return findOne(_0x2356e6=>isTag(_0x2356e6)&&_0x4adc6b(_0x2356e6),_0x2ac959);}function findAllByAttribute(_0x18c4c9,_0x468141,_0x41adaa){const _0x3fe1ec=null!==_0x468141?_0x568f14=>_0x568f14['attribs'][_0x18c4c9]===_0x468141:_0x40c350=>Boolean(_0x40c350['attribs'][_0x18c4c9]);return findAll(_0x2eded9=>isTag(_0x2eded9)&&_0x3fe1ec(_0x2eded9),_0x41adaa);}function findAllComments(_0x3e3784){return find$1(_0x50cdb2=>isComment(_0x50cdb2),_0x3e3784,!0x0,0x1/0x0);}function getAttribute(_0x4fa1f1,_0x221010){return _0x4fa1f1&&isTag(_0x4fa1f1)?_0x4fa1f1['attribs'][_0x221010]:null;}function setAttribute(_0x374324,_0x1191ae,_0x32229a){isTag(_0x374324)&&(null===_0x32229a?delete _0x374324['attribs'][_0x1191ae]:_0x374324['attribs'][_0x1191ae]=_0x32229a);}function insertElement(_0x47b0dd,_0x57d501,_0x42f7c8){const _0x307a94=_0x57d501['cloneNode'](!0x0);'beforebegin'===_0x42f7c8?prepend(_0x47b0dd,_0x307a94):'afterbegin'===_0x42f7c8?prependChild(_0x47b0dd,_0x307a94):'beforeend'===_0x42f7c8?appendChild(_0x47b0dd,_0x307a94):'afterend'===_0x42f7c8&&append(_0x47b0dd,_0x307a94);}function moveElement(_0x639cf7,_0xfa61f8){removeElement(_0x639cf7),replaceElement(_0xfa61f8,_0x639cf7);}function clone$2(_0x3a6974){return _0x3a6974['cloneNode'](!0x0);}function getParents(_0x46a22b){const _0x23a759=[];let _0x3d925d=_0x46a22b;for(;_0x3d925d;)_0x3d925d=getParent(_0x3d925d),_0x3d925d&&_0x23a759['push'](_0x3d925d);return _0x23a759;}function normalizeHTML(_0x30b453){return _0x30b453['replace'](/^\s+/gm,'')['replace'](/\s+$/gm,'')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/>\s*</g,'><');}function areNodesSame(_0x4b727d,_0x41e062){return normalizeHTML(serialize$1(_0x4b727d))===normalizeHTML(serialize$1(_0x41e062));}function getNodeNestingLevel(_0x52b6f0){let _0x470ed3=0x0;for(;_0x52b6f0['parentNode'];)_0x52b6f0=_0x52b6f0['parentNode'],_0x470ed3++;return _0x470ed3;}function removeElementsAfter(_0x5baedf){const _0x5b0e3c=[];let _0x52da8f=_0x5baedf['nextSibling'];for(;_0x52da8f;)_0x5b0e3c['push'](_0x52da8f),_0x52da8f=_0x52da8f['nextSibling'];_0x5b0e3c['forEach'](_0x5481d9=>{removeElement(_0x5481d9);});}const VOID=-0x1,PRIMITIVE=0x0,ARRAY=0x1,OBJECT=0x2,DATE=0x3,REGEXP=0x4,MAP=0x5,SET$1=0x6,ERROR=0x7,BIGINT=0x8,env='object'==typeof self?self:globalThis,deserializer=(_0x4fbd26,_0x3ee29c)=>{const _0x119ecc=(_0x1239ab,_0x46067a)=>(_0x4fbd26['set'](_0x46067a,_0x1239ab),_0x1239ab),_0x1b04d9=_0x17f1b2=>{if(_0x4fbd26['has'](_0x17f1b2))return _0x4fbd26['get'](_0x17f1b2);const [_0x54f636,_0x473e70]=_0x3ee29c[_0x17f1b2];switch(_0x54f636){case PRIMITIVE:case VOID:return _0x119ecc(_0x473e70,_0x17f1b2);case ARRAY:{const _0x4aae38=_0x119ecc([],_0x17f1b2);for(const _0x18de8a of _0x473e70)_0x4aae38['push'](_0x1b04d9(_0x18de8a));return _0x4aae38;}case OBJECT:{const _0x1bc116=_0x119ecc({},_0x17f1b2);for(const [_0x148a65,_0x414c4f]of _0x473e70)_0x1bc116[_0x1b04d9(_0x148a65)]=_0x1b04d9(_0x414c4f);return _0x1bc116;}case DATE:return _0x119ecc(new Date(_0x473e70),_0x17f1b2);case REGEXP:{const {source:_0x5269e2,flags:_0x56cb05}=_0x473e70;return _0x119ecc(new RegExp(_0x5269e2,_0x56cb05),_0x17f1b2);}case MAP:{const _0x4a9777=_0x119ecc(new Map(),_0x17f1b2);for(const [_0x143496,_0x39acb5]of _0x473e70)_0x4a9777['set'](_0x1b04d9(_0x143496),_0x1b04d9(_0x39acb5));return _0x4a9777;}case SET$1:{const _0x20f9a=_0x119ecc(new Set(),_0x17f1b2);for(const _0x20b23c of _0x473e70)_0x20f9a['add'](_0x1b04d9(_0x20b23c));return _0x20f9a;}case ERROR:{const {name:_0xc70016,message:_0x2256a7}=_0x473e70;return _0x119ecc(new env[_0xc70016](_0x2256a7),_0x17f1b2);}case BIGINT:return _0x119ecc(BigInt(_0x473e70),_0x17f1b2);case'BigInt':return _0x119ecc(Object(BigInt(_0x473e70)),_0x17f1b2);case'ArrayBuffer':return _0x119ecc(new Uint8Array(_0x473e70)['buffer'],_0x473e70);case'DataView':{const {buffer:_0x4b18e4}=new Uint8Array(_0x473e70);return _0x119ecc(new DataView(_0x4b18e4),_0x473e70);}}return _0x119ecc(new env[_0x54f636](_0x473e70),_0x17f1b2);};return _0x1b04d9;},deserialize=_0x15604e=>deserializer(new Map(),_0x15604e)(0x0),EMPTY='',{toString:toString$2}={},{keys:keys$1}=Object,typeOf=_0x54669a=>{const _0x3ddb6f=typeof _0x54669a;if('object'!==_0x3ddb6f||!_0x54669a)return[PRIMITIVE,_0x3ddb6f];const _0x3c853e=toString$2['call'](_0x54669a)['slice'](0x8,-0x1);switch(_0x3c853e){case'Array':return[ARRAY,EMPTY];case'Object':return[OBJECT,EMPTY];case'Date':return[DATE,EMPTY];case'RegExp':return[REGEXP,EMPTY];case'Map':return[MAP,EMPTY];case'Set':return[SET$1,EMPTY];case'DataView':return[ARRAY,_0x3c853e];}return _0x3c853e['includes']('Array')?[ARRAY,_0x3c853e]:_0x3c853e['includes']('Error')?[ERROR,_0x3c853e]:[OBJECT,_0x3c853e];},shouldSkip=([_0x183881,_0x13d7fe])=>_0x183881===PRIMITIVE&&('function'===_0x13d7fe||'symbol'===_0x13d7fe),serializer=(_0x21e90f,_0xd1b141,_0x3e4dd9,_0x23a215)=>{const _0x454645=(_0x215bf2,_0x45285b)=>{const _0xf32f08=_0x23a215['push'](_0x215bf2)-0x1;return _0x3e4dd9['set'](_0x45285b,_0xf32f08),_0xf32f08;},_0x1500cd=_0x3e44fb=>{if(_0x3e4dd9['has'](_0x3e44fb))return _0x3e4dd9['get'](_0x3e44fb);let [_0x24f8a8,_0x262a16]=typeOf(_0x3e44fb);switch(_0x24f8a8){case PRIMITIVE:{let _0x32ec30=_0x3e44fb;switch(_0x262a16){case'bigint':_0x24f8a8=BIGINT,_0x32ec30=_0x3e44fb['toString']();break;case'function':case'symbol':if(_0x21e90f)throw new TypeError('unable\x20to\x20serialize\x20'+_0x262a16);_0x32ec30=null;break;case'undefined':return _0x454645([VOID],_0x3e44fb);}return _0x454645([_0x24f8a8,_0x32ec30],_0x3e44fb);}case ARRAY:{if(_0x262a16){let _0x1b4970=_0x3e44fb;return'DataView'===_0x262a16?_0x1b4970=new Uint8Array(_0x3e44fb['buffer']):'ArrayBuffer'===_0x262a16&&(_0x1b4970=new Uint8Array(_0x3e44fb)),_0x454645([_0x262a16,[..._0x1b4970]],_0x3e44fb);}const _0x398d02=[],_0x75341f=_0x454645([_0x24f8a8,_0x398d02],_0x3e44fb);for(const _0x13f805 of _0x3e44fb)_0x398d02['push'](_0x1500cd(_0x13f805));return _0x75341f;}case OBJECT:{if(_0x262a16)switch(_0x262a16){case'BigInt':return _0x454645([_0x262a16,_0x3e44fb['toString']()],_0x3e44fb);case'Boolean':case'Number':case'String':return _0x454645([_0x262a16,_0x3e44fb['valueOf']()],_0x3e44fb);}if(_0xd1b141&&'toJSON'in _0x3e44fb)return _0x1500cd(_0x3e44fb['toJSON']());const _0x1508c2=[],_0x55534c=_0x454645([_0x24f8a8,_0x1508c2],_0x3e44fb);for(const _0x22926b of keys$1(_0x3e44fb))!_0x21e90f&&shouldSkip(typeOf(_0x3e44fb[_0x22926b]))||_0x1508c2['push']([_0x1500cd(_0x22926b),_0x1500cd(_0x3e44fb[_0x22926b])]);return _0x55534c;}case DATE:return _0x454645([_0x24f8a8,_0x3e44fb['toISOString']()],_0x3e44fb);case REGEXP:{const {source:_0x399ddf,flags:_0x51eece}=_0x3e44fb;return _0x454645([_0x24f8a8,{'source':_0x399ddf,'flags':_0x51eece}],_0x3e44fb);}case MAP:{const _0x2cf0ca=[],_0x4bf013=_0x454645([_0x24f8a8,_0x2cf0ca],_0x3e44fb);for(const [_0x1531fb,_0xa761ae]of _0x3e44fb)(_0x21e90f||!shouldSkip(typeOf(_0x1531fb))&&!shouldSkip(typeOf(_0xa761ae)))&&_0x2cf0ca['push']([_0x1500cd(_0x1531fb),_0x1500cd(_0xa761ae)]);return _0x4bf013;}case SET$1:{const _0x5b76b8=[],_0x1a85f9=_0x454645([_0x24f8a8,_0x5b76b8],_0x3e44fb);for(const _0x547fb4 of _0x3e44fb)!_0x21e90f&&shouldSkip(typeOf(_0x547fb4))||_0x5b76b8['push'](_0x1500cd(_0x547fb4));return _0x1a85f9;}}const {message:_0x255250}=_0x3e44fb;return _0x454645([_0x24f8a8,{'name':_0x262a16,'message':_0x255250}],_0x3e44fb);};return _0x1500cd;},serialize=(_0x2e90d8,{json:_0x5af313,lossy:_0x15c242}={})=>{const _0x136cb4=[];return serializer(!(_0x5af313||_0x15c242),!!_0x5af313,new Map(),_0x136cb4)(_0x2e90d8),_0x136cb4;};var structuredClone$1='function'==typeof structuredClone?(_0x5269d5,_0x1f18bd)=>_0x1f18bd&&('json'in _0x1f18bd||'lossy'in _0x1f18bd)?deserialize(serialize(_0x5269d5,_0x1f18bd)):structuredClone(_0x5269d5):(_0x151272,_0x5f5bc3)=>deserialize(serialize(_0x151272,_0x5f5bc3));const pointEnd=point('end'),pointStart=point('start');function point(_0x3d5f4e){return function(_0x4cfe56){const _0x5a6756=_0x4cfe56&&_0x4cfe56['position']&&_0x4cfe56['position'][_0x3d5f4e]||{};if('number'==typeof _0x5a6756['line']&&_0x5a6756['line']>0x0&&'number'==typeof _0x5a6756['column']&&_0x5a6756['column']>0x0)return{'line':_0x5a6756['line'],'column':_0x5a6756['column'],'offset':'number'==typeof _0x5a6756['offset']&&_0x5a6756['offset']>-0x1?_0x5a6756['offset']:void 0x0};};}function position(_0x902c53){const _0x2f5a6b=pointStart(_0x902c53),_0xf79074=pointEnd(_0x902c53);if(_0x2f5a6b&&_0xf79074)return{'start':_0x2f5a6b,'end':_0xf79074};}const aria=['ariaDescribedBy','ariaLabel','ariaLabelledBy'],defaultSchema={'ancestors':{'tbody':['table'],'td':['table'],'th':['table'],'thead':['table'],'tfoot':['table'],'tr':['table']},'attributes':{'a':[...aria,'dataFootnoteBackref','dataFootnoteRef',['className','data-footnote-backref'],'href'],'blockquote':['cite'],'code':[['className',/^language-./]],'del':['cite'],'div':['itemScope','itemType'],'dl':[...aria],'h2':[['className','sr-only']],'img':[...aria,'longDesc','src'],'input':[['disabled',!0x0],['type','checkbox']],'ins':['cite'],'li':[['className','task-list-item']],'ol':[...aria,['className','contains-task-list']],'q':['cite'],'section':['dataFootnotes',['className','footnotes']],'source':['srcSet'],'summary':[...aria],'table':[...aria],'ul':[...aria,['className','contains-task-list']],'*':['abbr','accept','acceptCharset','accessKey','action','align','alt','axis','border','cellPadding','cellSpacing','char','charOff','charSet','checked','clear','colSpan','color','cols','compact','coords','dateTime','dir','encType','frame','hSpace','headers','height','hrefLang','htmlFor','id','isMap','itemProp','label','lang','maxLength','media','method','multiple','name','noHref','noShade','noWrap','open','prompt','readOnly','rev','rowSpan','rows','rules','scope','selected','shape','size','span','start','summary','tabIndex','title','useMap','vAlign','value','width']},'clobber':['ariaDescribedBy','ariaLabelledBy','id','name'],'clobberPrefix':'user-content-','protocols':{'cite':['http','https'],'href':['http','https','irc','ircs','mailto','xmpp'],'longDesc':['http','https'],'src':['http','https']},'required':{'input':{'disabled':!0x0,'type':'checkbox'}},'strip':['script'],'tagNames':['a','b','blockquote','br','code','dd','del','details','div','dl','dt','em','h1','h2','h3','h4','h5','h6','hr','i','img','input','ins','kbd','li','ol','p','picture','pre','q','rp','rt','ruby','s','samp','section','source','span','strike','strong','sub','summary','sup','table','tbody','td','tfoot','th','thead','tr','tt','ul','var']},own={}['hasOwnProperty'];function sanitize$1(_0x77c377,_0x1d8b94){let _0x2f944e={'type':'root','children':[]};const _0x2d055c=transform({'schema':_0x1d8b94?{...defaultSchema,..._0x1d8b94}:defaultSchema,'stack':[]},_0x77c377);return _0x2d055c&&(Array['isArray'](_0x2d055c)?0x1===_0x2d055c['length']?_0x2f944e=_0x2d055c[0x0]:_0x2f944e['children']=_0x2d055c:_0x2f944e=_0x2d055c),_0x2f944e;}function transform(_0x1da730,_0x485eba){if(_0x485eba&&'object'==typeof _0x485eba){const _0x3e8acd=_0x485eba;switch('string'==typeof _0x3e8acd['type']?_0x3e8acd['type']:''){case'comment':return comment$1(_0x1da730,_0x3e8acd);case'doctype':return doctype(_0x1da730,_0x3e8acd);case'element':return element(_0x1da730,_0x3e8acd);case'root':return root(_0x1da730,_0x3e8acd);case'text':return text(_0x1da730,_0x3e8acd);}}}function comment$1(_0x284846,_0x4af301){if(_0x284846['schema']['allowComments']){const _0x3f96bb='string'==typeof _0x4af301['value']?_0x4af301['value']:'',_0x252288=_0x3f96bb['indexOf']('-->'),_0x494d5c={'type':'comment','value':_0x252288<0x0?_0x3f96bb:_0x3f96bb['slice'](0x0,_0x252288)};return patch(_0x494d5c,_0x4af301),_0x494d5c;}}function doctype(_0x49d06b,_0x5650d3){if(_0x49d06b['schema']['allowDoctypes']){const _0x5ca616={'type':'doctype'};return patch(_0x5ca616,_0x5650d3),_0x5ca616;}}function element(_0x112965,_0x30f4d5){const _0x677173='string'==typeof _0x30f4d5['tagName']?_0x30f4d5['tagName']:'';_0x112965['stack']['push'](_0x677173);const _0xe7b720=children(_0x112965,_0x30f4d5['children']),_0x14a4f9=properties$1(_0x112965,_0x30f4d5['properties']);_0x112965['stack']['pop']();let _0x311ae0=!0x1;if(_0x677173&&'*'!==_0x677173&&(!_0x112965['schema']['tagNames']||_0x112965['schema']['tagNames']['includes'](_0x677173))&&(_0x311ae0=!0x0,_0x112965['schema']['ancestors']&&own['call'](_0x112965['schema']['ancestors'],_0x677173))){const _0x4bfac8=_0x112965['schema']['ancestors'][_0x677173];let _0x3517d4=-0x1;for(_0x311ae0=!0x1;++_0x3517d4<_0x4bfac8['length'];)_0x112965['stack']['includes'](_0x4bfac8[_0x3517d4])&&(_0x311ae0=!0x0);}if(!_0x311ae0)return _0x112965['schema']['strip']&&!_0x112965['schema']['strip']['includes'](_0x677173)?_0xe7b720:void 0x0;const _0x4ca60c={'type':'element','tagName':_0x677173,'properties':_0x14a4f9,'children':_0xe7b720};return patch(_0x4ca60c,_0x30f4d5),_0x4ca60c;}function root(_0x4fc0fe,_0x31fa1a){const _0x3cad55={'type':'root','children':children(_0x4fc0fe,_0x31fa1a['children'])};return patch(_0x3cad55,_0x31fa1a),_0x3cad55;}function text(_0x4fb921,_0x1f0313){const _0x281545={'type':'text','value':'string'==typeof _0x1f0313['value']?_0x1f0313['value']:''};return patch(_0x281545,_0x1f0313),_0x281545;}function children(_0x4855db,_0x5f2a16){const _0x3cfa0a=[];if(Array['isArray'](_0x5f2a16)){const _0x2702a9=_0x5f2a16;let _0x5d2c14=-0x1;for(;++_0x5d2c14<_0x2702a9['length'];){const _0x23ef04=transform(_0x4855db,_0x2702a9[_0x5d2c14]);_0x23ef04&&(Array['isArray'](_0x23ef04)?_0x3cfa0a['push'](..._0x23ef04):_0x3cfa0a['push'](_0x23ef04));}}return _0x3cfa0a;}function properties$1(_0x24a462,_0x5c9a5b){const _0x40bffa=_0x24a462['stack'][_0x24a462['stack']['length']-0x1],_0x8271e3=_0x24a462['schema']['attributes'],_0x45e690=_0x24a462['schema']['required'],_0x7490a7=_0x8271e3&&own['call'](_0x8271e3,_0x40bffa)?_0x8271e3[_0x40bffa]:void 0x0,_0x185567=_0x8271e3&&own['call'](_0x8271e3,'*')?_0x8271e3['*']:void 0x0,_0x5a43ef=_0x5c9a5b&&'object'==typeof _0x5c9a5b?_0x5c9a5b:{},_0x2712d8={};let _0x3b71a7;for(_0x3b71a7 in _0x5a43ef)if(own['call'](_0x5a43ef,_0x3b71a7)){const _0x735a9f=_0x5a43ef[_0x3b71a7];let _0x47d5bc=propertyValue(_0x24a462,findDefinition(_0x7490a7,_0x3b71a7),_0x3b71a7,_0x735a9f);null==_0x47d5bc&&(_0x47d5bc=propertyValue(_0x24a462,findDefinition(_0x185567,_0x3b71a7),_0x3b71a7,_0x735a9f)),null!=_0x47d5bc&&(_0x2712d8[_0x3b71a7]=_0x47d5bc);}if(_0x45e690&&own['call'](_0x45e690,_0x40bffa)){const _0x20ddbb=_0x45e690[_0x40bffa];for(_0x3b71a7 in _0x20ddbb)own['call'](_0x20ddbb,_0x3b71a7)&&!own['call'](_0x2712d8,_0x3b71a7)&&(_0x2712d8[_0x3b71a7]=_0x20ddbb[_0x3b71a7]);}return _0x2712d8;}function propertyValue(_0x479aab,_0x57eb65,_0x4fac6b,_0x59de49){return _0x57eb65?Array['isArray'](_0x59de49)?propertyValueMany(_0x479aab,_0x57eb65,_0x4fac6b,_0x59de49):propertyValuePrimitive(_0x479aab,_0x57eb65,_0x4fac6b,_0x59de49):void 0x0;}function propertyValueMany(_0x36ff9e,_0x595698,_0x4d62e5,_0x4cb7cc){let _0x5819b3=-0x1;const _0x284a8e=[];for(;++_0x5819b3<_0x4cb7cc['length'];){const _0x13d7e1=propertyValuePrimitive(_0x36ff9e,_0x595698,_0x4d62e5,_0x4cb7cc[_0x5819b3]);'number'!=typeof _0x13d7e1&&'string'!=typeof _0x13d7e1||_0x284a8e['push'](_0x13d7e1);}return _0x284a8e;}function propertyValuePrimitive(_0xc3130d,_0xcc3a0e,_0x1d3133,_0x49a672){if(('boolean'==typeof _0x49a672||'number'==typeof _0x49a672||'string'==typeof _0x49a672)&&safeProtocol(_0xc3130d,_0x1d3133,_0x49a672)){if('object'==typeof _0xcc3a0e&&_0xcc3a0e['length']>0x1){let _0x35b437=!0x1,_0x305496=0x0;for(;++_0x305496<_0xcc3a0e['length'];){const _0x3fb174=_0xcc3a0e[_0x305496];if(_0x3fb174&&'object'==typeof _0x3fb174&&'flags'in _0x3fb174){if(_0x3fb174['test'](String(_0x49a672))){_0x35b437=!0x0;break;}}else{if(_0x3fb174===_0x49a672){_0x35b437=!0x0;break;}}}if(!_0x35b437)return;}return _0xc3130d['schema']['clobber']&&_0xc3130d['schema']['clobberPrefix']&&_0xc3130d['schema']['clobber']['includes'](_0x1d3133)?_0xc3130d['schema']['clobberPrefix']+_0x49a672:_0x49a672;}}function safeProtocol(_0x118daa,_0x41018d,_0x24a9f7){const _0x25aec8=_0x118daa['schema']['protocols']&&own['call'](_0x118daa['schema']['protocols'],_0x41018d)?_0x118daa['schema']['protocols'][_0x41018d]:void 0x0;if(!_0x25aec8||0x0===_0x25aec8['length'])return!0x0;const _0x27fc98=String(_0x24a9f7),_0xaca45f=_0x27fc98['indexOf'](':'),_0x3ef628=_0x27fc98['indexOf']('?'),_0x2b5339=_0x27fc98['indexOf']('#'),_0x78f105=_0x27fc98['indexOf']('/');if(_0xaca45f<0x0||_0x78f105>-0x1&&_0xaca45f>_0x78f105||_0x3ef628>-0x1&&_0xaca45f>_0x3ef628||_0x2b5339>-0x1&&_0xaca45f>_0x2b5339)return!0x0;let _0x568099=-0x1;for(;++_0x568099<_0x25aec8['length'];){const _0x41c0fa=_0x25aec8[_0x568099];if(_0xaca45f===_0x41c0fa['length']&&_0x27fc98['slice'](0x0,_0x41c0fa['length'])===_0x41c0fa)return!0x0;}return!0x1;}function patch(_0x495062,_0x2bef05){const _0x18a05c=position(_0x2bef05);_0x2bef05['data']&&(_0x495062['data']=structuredClone$1(_0x2bef05['data'])),_0x18a05c&&(_0x495062['position']=_0x18a05c);}function findDefinition(_0x248f6d,_0x3323b0){let _0x1e31d0,_0x37f877=-0x1;if(_0x248f6d)for(;++_0x37f877<_0x248f6d['length'];){const _0x5a59e1=_0x248f6d[_0x37f877],_0x18adfc='string'==typeof _0x5a59e1?_0x5a59e1:_0x5a59e1[0x0];if(_0x18adfc===_0x3323b0)return _0x5a59e1;'data*'===_0x18adfc&&(_0x1e31d0=_0x5a59e1);}if(_0x3323b0['length']>0x4&&'data'===_0x3323b0['slice'](0x0,0x4)['toLowerCase']())return _0x1e31d0;}function rehypeSanitize(_0x318f0d){return function(_0x46beaf){return sanitize$1(_0x46beaf,_0x318f0d);};}class AIResponseParser extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_m2html'];constructor(){super();const _0x37e8fb=Object['entries'](MarkdownGfmMdToHtmlDefaultPlugins),_0x540a50=_0x37e8fb['findIndex'](([_0x734691])=>'rehypeDomRaw'===_0x734691);if(-0x1===_0x540a50)throw new CKEditorError('ai-response-parser-unable-to-set-up-parser');_0x37e8fb['splice'](_0x540a50+0x1,0x0,['rehypeSanitize',rehypeSanitize]),this['_m2html']=new MarkdownGfmMdToHtml({'plugins':Object['fromEntries'](_0x37e8fb)});}['convertMarkdownToHTML'](_0x105f67){const _0x54bc84=this['_m2html']['parse'](_0x105f67);return this['parseAndNormalizeHTML'](_0x54bc84);}['parseAndNormalizeHTML'](_0x16b338){return this['_parseHTML'](_0x16b338);}['_parseHTML'](_0x5f0131){const _0x3041eb=parse$2('<dummy>'+_0x5f0131['replace'](/^\t+/gm,'\x20')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/<[^>]*?$/g,'')+'</dummy>');return _0x3041eb['children']=_0x3041eb['children'][0x0]['children'],_0x3041eb;}}class AIResponseApplier extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_generateUid'];['_touchedNodesState']={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};['_existingDataIds']=new Set();constructor(_0x30b07c){super(),this['_generateUid']=_0x30b07c||uid;}['merge'](_0x1c7452,_0x3b0144,_0x56d0b8){const _0xca2e03=clone$2(_0x1c7452);if(0x0===_0x3b0144['childNodes']['length']){const _0x2b963a=[];return findAllByAttribute('data-id','new-element',_0xca2e03)['forEach'](_0x2dec52=>{const _0x5e01cb=this['_generateUid']();setAttribute(_0x2dec52,'data-id',_0x5e01cb),_0x2b963a['push'](_0x5e01cb);}),this['_removeSpecialComments'](_0xca2e03),{'parsedContent':_0xca2e03,'newNodeIds':_0x2b963a,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x56d0b8&&_0x56d0b8['markUnstableElements']&&this['_markLastTagElementUnstable'](_0xca2e03),this['_touchedNodesState']['newIds']=[],this['_touchedNodesState']['modifiedIds']=[],this['_touchedNodesState']['removedIds']=[],this['_touchedNodesState']['invalidIds']=[],this['_touchedNodesState']['lastTouchedId']=null,this['_existingDataIds']=new Set(findAllByAttribute('data-id',null,_0x3b0144)['map'](_0x162133=>getAttribute(_0x162133,'data-id'))['filter'](_0x4facdd=>!!_0x4facdd));let _0x380a5d=-0x1,_0x2f327a=!0x1;const _0xfead17=_0xca2e03['childNodes'],_0x2f84e9=Array['from'](_0xfead17)['filter'](_0x31dd57=>!(0x3===_0x31dd57['nodeType']&&''===serialize$1(_0x31dd57)['trim']())),_0x59dbed=_0x2f84e9['length'];for(let _0x5d8f42=0x0;_0x5d8f42<_0x59dbed;_0x5d8f42++){const _0x3e916b=_0x2f84e9[_0x5d8f42],_0x177950=_0x2f84e9[_0x5d8f42+0x1];if(this['_isNewNode'](_0x3e916b)){if(-0x1===_0x380a5d&&(_0x380a5d=_0x5d8f42),this['_markWrappedElements'](_0x3e916b),!this['_isNewNode'](_0x177950)){const [_0x55a52c,_0x3446e1]=this['_findReferenceNode'](_0x3e916b,_0x2f327a,_0x3b0144);if(_0x55a52c){const _0xed00d1=Array['from'](_0x2f84e9)['slice'](_0x380a5d,_0x5d8f42+0x1);this['_insertNodes'](_0x55a52c,_0xed00d1,_0x3446e1),_0x380a5d=-0x1;}}}else{if(this['_isExistingContentComment'](_0x3e916b))_0x2f327a=!0x0;else{if(this['_isExistingNode'](_0x3e916b)){const _0x302146=getAttribute(_0x3e916b,'data-id');if(_0x302146&&this['_existingDataIds']['has'](_0x302146)){const _0x5c6ee8=findByAttribute('data-id',_0x302146,_0x3b0144);this['_replaceNode'](_0x5c6ee8,_0x3e916b);}if(this['_touchedNodesState']['removedIds']['includes'](_0x302146)){const _0x109549=this['_touchedNodesState']['removedIds']['indexOf'](_0x302146);this['_touchedNodesState']['removedIds']['splice'](_0x109549,0x1);}}else{if(this['_isDelNode'](_0x3e916b)){const _0x47aef4=getAttribute(_0x3e916b,'data-id');this['_touchedNodesState']['modifiedIds']['includes'](_0x47aef4)||this['_storeDeletedElementIds'](_0x3e916b);}}}}}for(const _0x78e165 of this['_touchedNodesState']['removedIds']){const _0x2001e6=findByAttribute('data-id',_0x78e165,_0x3b0144);if(_0x2001e6){if(_0x56d0b8&&_0x56d0b8['replaceRemovedWith']){this['_touchedNodesState']['lastTouchedId']=_0x78e165;const _0x55783c=_0x56d0b8['replaceRemovedWith']['cloneNode'](!0x0);setAttribute(_0x55783c,'data-id',_0x78e165),setAttribute(_0x55783c,'data-removed','true'),replaceElement(_0x2001e6,_0x55783c);}else removeElement(_0x2001e6);}}if(findAllByAttribute('data-wrapped-id',null,_0x3b0144)['forEach'](_0x9c6aea=>{const _0x2302ba=findByAttribute('data-id',getAttribute(_0x9c6aea,'data-wrapped-id'),_0x3b0144);_0x2302ba&&moveElement(_0x2302ba,_0x9c6aea);}),findAllByAttribute('data-id','new-element',_0x3b0144)['forEach'](_0x339b62=>{const _0x18b4c1=this['_getUid'](_0x339b62);setAttribute(_0x339b62,'data-id',_0x18b4c1),this['_touchedNodesState']['newIds']['push'](_0x18b4c1);}),this['_removeSpecialComments'](_0x3b0144),_0x56d0b8&&_0x56d0b8['markUnstableElements']&&this['_markUnstableElements'](_0x3b0144,_0x56d0b8['markUnstableElementsDepth']||0x0),_0x56d0b8&&_0x56d0b8['cutAfterLastChange']&&this['_touchedNodesState']['lastTouchedId']){let _0x35c6aa=findByAttribute('data-id',this['_touchedNodesState']['lastTouchedId'],_0x3b0144);for(;_0x35c6aa;)removeElementsAfter(_0x35c6aa),_0x35c6aa=_0x35c6aa['parentNode'];}return{'parsedContent':_0x3b0144,'newNodeIds':this['_touchedNodesState']['newIds'],'modifiedNodeIds':this['_touchedNodesState']['modifiedIds'],'removedNodeIds':this['_touchedNodesState']['removedIds']};}['_insertNodes'](_0x524851,_0x49f421,_0x4ad22a){for(const _0x159eb5 of _0x49f421){const _0x33d32b=this['_getUid'](_0x159eb5);setAttribute(_0x159eb5,'data-id',_0x33d32b),this['_touchedNodesState']['newIds']['push'](_0x33d32b),this['_touchedNodesState']['lastTouchedId']=_0x33d32b;}const _0x3c78b0='afterbegin'===_0x4ad22a||'afterend'===_0x4ad22a?_0x49f421['reverse']():_0x49f421;for(const _0x486433 of _0x3c78b0)insertElement(_0x524851,_0x486433,_0x4ad22a);}['_replaceNode'](_0x5ec9f7,_0x33cf9f){if(!_0x5ec9f7)return;if(areNodesSame(_0x5ec9f7,_0x33cf9f))return;const _0x52cc10=this['_getUid'](_0x5ec9f7);setAttribute(_0x33cf9f,'data-id',_0x52cc10),this['_touchedNodesState']['modifiedIds']['push'](_0x52cc10),this['_touchedNodesState']['lastTouchedId']=_0x52cc10,replaceElement(_0x5ec9f7,_0x33cf9f['cloneNode'](!0x0));}['_findReferenceNode'](_0x2eb420,_0x216fbf,_0x200ce6){const _0x4cb9ab=this['_findPrevElementWithDataId'](_0x2eb420,!0x1);if(_0x4cb9ab){const _0x2525ab=this['_getNodeDataId'](_0x4cb9ab),_0x13be88=findByAttribute('data-id',_0x2525ab,_0x200ce6);if(_0x13be88)return[_0x13be88,'afterend'];this['_touchedNodesState']['invalidIds']['push'](_0x2525ab);}const _0x533a74=this['_findNextElementWithDataId'](_0x2eb420,!0x1);if(_0x533a74){const _0x5a564b=this['_getNodeDataId'](_0x533a74),_0x16e1b2=findByAttribute('data-id',_0x5a564b,_0x200ce6);if(_0x16e1b2)return[_0x16e1b2,'beforebegin'];this['_touchedNodesState']['invalidIds']['push'](_0x5a564b);}return _0x216fbf?_0x2eb420['nextSibling']?this['_findFallbackReferenceNode'](_0x2eb420,_0x200ce6):[_0x200ce6['childNodes'][_0x200ce6['childNodes']['length']-0x1],'afterend']:[_0x200ce6['childNodes'][0x0],'beforebegin'];}['_findFallbackReferenceNode'](_0x333870,_0x437a22){const _0x381d2e=[],_0x2b4af1=this['_findPrevElementWithDataId'](_0x333870,!0x0);if(_0x2b4af1){const _0x457cd8=findByAttribute('data-id',this['_getNodeDataId'](_0x2b4af1),_0x437a22);_0x457cd8&&_0x381d2e['push']([_0x457cd8,'afterend']);}const _0x5aed43=this['_findNextElementWithDataId'](_0x333870,!0x0);if(_0x5aed43){const _0x3466fa=findByAttribute('data-id',this['_getNodeDataId'](_0x5aed43),_0x437a22);_0x3466fa&&_0x381d2e['push']([_0x3466fa,'beforebegin']);}if(_0x381d2e['length']>0x1)return getNodeNestingLevel(_0x381d2e[0x0][0x0])<=getNodeNestingLevel(_0x381d2e[0x1][0x0])?_0x381d2e[0x0]:_0x381d2e[0x1];return 0x1===_0x381d2e['length']?_0x381d2e[0x0]:[_0x437a22['lastChild'],'afterend'];}['_findNextElementWithDataId'](_0x3cb942,_0xaee3dd){let _0x6ebc0f=_0x3cb942['nextSibling'],_0x420e0b=null,_0x31fe3b=!0x1;for(;_0x6ebc0f;){if(isComment(_0x6ebc0f)){if(this['_isDelNode'](_0x6ebc0f)&&(_0x420e0b=_0x6ebc0f),this['_isExistingContentComment'](_0x6ebc0f)&&_0xaee3dd&&!_0x31fe3b){_0x31fe3b=!0x0,_0x6ebc0f=_0x6ebc0f['nextSibling'];continue;}break;}const _0x2abf69=getAttribute(_0x6ebc0f,'data-id');if(_0x2abf69&&'new-element'!==_0x2abf69&&this['_existingDataIds']['has'](_0x2abf69)){_0x420e0b=_0x6ebc0f;break;}_0x6ebc0f=_0x6ebc0f['nextSibling'];}return _0x420e0b;}['_findPrevElementWithDataId'](_0x2cc5c6,_0x2679dd){let _0x20d922=_0x2cc5c6['previousSibling'],_0x4f55fa=null,_0x3b0125=!0x1;for(;_0x20d922;){if(isComment(_0x20d922)){if(this['_isDelNode'](_0x20d922)&&(_0x4f55fa=_0x20d922),this['_isExistingContentComment'](_0x20d922)&&_0x2679dd&&!_0x3b0125){_0x3b0125=!0x0,_0x20d922=_0x20d922['previousSibling'];continue;}break;}const _0x406bda=getAttribute(_0x20d922,'data-id');if(_0x406bda&&'new-element'!==_0x406bda&&this['_existingDataIds']['has'](_0x406bda)){_0x4f55fa=_0x20d922;break;}_0x20d922=_0x20d922['previousSibling'];}return _0x4f55fa;}['_markWrappedElements'](_0x473c9e){isTag(_0x473c9e)&&findAllByAttribute('data-id',null,_0x473c9e)['forEach'](_0x28f571=>{this['_isExistingNode'](_0x28f571)&&!this['_hasWrappedParent'](_0x28f571)&&(setAttribute(_0x28f571,'data-wrapped-id',getAttribute(_0x28f571,'data-id')),setAttribute(_0x28f571,'data-id',null));});}['_getNodeDataId'](_0x5e26fd){if(!_0x5e26fd)return null;if(isTag(_0x5e26fd))return getAttribute(_0x5e26fd,'data-id');if(isComment(_0x5e26fd)){const _0x2f6d18=serialize$1(_0x5e26fd)['match'](/removed[\s*-]data-id="([^"]+)"/);if(_0x2f6d18&&_0x2f6d18[0x1])return _0x2f6d18[0x1];}return null;}['_storeDeletedElementIds'](_0x2008b4){if(isComment(_0x2008b4)){const _0x17574e=serialize$1(_0x2008b4)['match'](/removed[\s*-]data-id="([^"]+)"/);_0x17574e&&_0x17574e[0x1]&&this['_touchedNodesState']['removedIds']['push'](_0x17574e[0x1]);}}['_getUid'](_0x27f430){return this['_isExistingNode'](_0x27f430)?getAttribute(_0x27f430,'data-id'):this['_generateUid']();}['_removeSpecialComments'](_0x3fb54f){findAllComments(_0x3fb54f)['filter'](_0x2e4abf=>this['_isDelNode'](_0x2e4abf)||this['_isExistingContentComment'](_0x2e4abf))['forEach'](_0x55bc77=>{removeElement(_0x55bc77);});}['_markLastTagElementUnstable'](_0x2e53e3){const _0x49adb8=_0x2e53e3['childNodes'],_0x2cb8ff=_0x49adb8[_0x49adb8['length']-0x1];_0x2cb8ff&&isTag(_0x2cb8ff)&&setAttribute(_0x2cb8ff,'data-unstable','true');}['_markUnstableElements'](_0x24cb38,_0x5b79da){const _0x2887a0=findByAttribute('data-unstable','true',_0x24cb38);if(!_0x2887a0)return;const _0x4646e5=getParents(_0x2887a0)['slice'](0x0,-0x1),_0x5e8d17=_0x4646e5['length'];let _0x2e8ad4=_0x2887a0;if(_0x5e8d17>_0x5b79da){let _0x4be1c5=_0x5e8d17,_0x15f361=null;for(;_0x4be1c5>_0x5b79da&&_0x4be1c5>=0x0;)_0x4be1c5--,_0x15f361=_0x4646e5[_0x4be1c5];_0x15f361&&(_0x2e8ad4=_0x15f361,setAttribute(_0x2887a0,'data-unstable',null),setAttribute(_0x15f361,'data-unstable','true'));}else{if(_0x5e8d17<_0x5b79da){let _0x3df5ba=_0x5e8d17,_0x3f51b0=_0x2887a0;for(;_0x3df5ba<_0x5b79da;){const _0x1d7d1f=_0x3f51b0['childNodes']['filter'](_0x3bba38=>isTag(_0x3bba38));if(0x0===_0x1d7d1f['length'])break;_0x3df5ba++,_0x3f51b0=_0x1d7d1f[_0x1d7d1f['length']-0x1];}_0x3f51b0&&(_0x2e8ad4=_0x3f51b0,setAttribute(_0x2887a0,'data-unstable',null),setAttribute(_0x3f51b0,'data-unstable','true'));}}let _0x730b0=_0x2e8ad4;for(;_0x730b0;){for(;_0x730b0['nextSibling'];)_0x730b0=_0x730b0['nextSibling'],isTag(_0x730b0)&&setAttribute(_0x730b0,'data-unstable','true');_0x730b0=_0x730b0['parentNode'];}}['_isNewNode'](_0x11f384){return Boolean('new-element'===getAttribute(_0x11f384,'data-id'));}['_isExistingNode'](_0x236114){return Boolean((getAttribute(_0x236114,'data-id')||'')['length']>0x0&&'new-element'!==getAttribute(_0x236114,'data-id'));}['_isDelNode'](_0x2001c6){return!!_0x2001c6&&Boolean(isComment(_0x2001c6)&&serialize$1(_0x2001c6)['match'](/removed[\s*-]data-id="[^"]+"/));}['_hasWrappedParent'](_0x49c81d){let _0x29b021=_0x49c81d['parentNode'];for(;_0x29b021;){if(getAttribute(_0x29b021,'data-wrapped-id'))return!0x0;_0x29b021=_0x29b021['parentNode'];}return!0x1;}['_isExistingContentComment'](_0x5c84b4){return Boolean(isComment(_0x5c84b4)&&serialize$1(_0x5c84b4)['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'](_0xa13151,_0x244493){let _0x4d9794;if(_0x244493||(_0x244493=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x244493?_0x4d9794=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x4d9794=this['context']['editors']['find'](_0x6aed52=>_0x6aed52['config']['get']('collaboration.channelId')==_0x244493)),!_0x4d9794)throw new CKEditorError('permissions-set-permissions-invalid-channel-id',null);const _0x5949ab=_0x4d9794['plugins'],_0x5389fc=_0x5949ab['has']('CommentsRepository')?_0x5949ab['get']('CommentsRepository'):void 0x0,_0x149428=_0x5949ab['has']('CommentsOnly')&&_0x5949ab['get']('CommentsOnly'),_0x2595fd=_0xa13151['includes']('document:write'),_0x34013a=_0xa13151['includes']('comment:modify_all'),_0x499ae7=_0xa13151['includes']('comment:admin'),_0x5e370f=_0xa13151['includes']('comment:write'),_0x3c11d2=_0x5e370f||_0x499ae7,_0x399faf=_0x3c11d2||_0x34013a,_0xddca1a=_0x2595fd||_0x3c11d2;(_0x149428&&(_0x149428['isEnabled']=!_0x2595fd&&_0x399faf),_0x4d9794 instanceof Editor)&&(!(_0x2595fd||_0x399faf&&_0x5389fc)?_0x4d9794['enableReadOnlyMode']('no-permissions'):_0x4d9794['disableReadOnlyMode']('no-permissions'));if(_0x5389fc){_0x5389fc['setPermissions']({'admin':_0x499ae7,'modifyAll':_0x34013a,'write':_0x5e370f,'resolve':_0xddca1a},_0x244493);const _0x4c8ec1=_0x4d9794 instanceof Editor&&_0x4d9794['commands']['get']('addCommentThread');_0x4c8ec1&&(_0x3c11d2?_0x4c8ec1['clearForceDisabled']('noPermissions'):_0x4c8ec1['forceDisabled']('noPermissions'));}}}function getTranslation$h(_0x2592ee,_0x41b68a){const t=_0x2592ee['t'];switch(_0x41b68a){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(_0x3b2430){super(_0x3b2430),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new Collection(),this['_locale']=_0x3b2430['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:_0x3bf1f0,name:_0x5f2815,..._0x50aba3}){if(!_0x3bf1f0||'string'!=typeof _0x3bf1f0)throw new CKEditorError('users-add-invalid-id');if(this['users']['has'](_0x3bf1f0))throw new CKEditorError('users-add-duplicated-id',null,{'id':_0x3bf1f0});const _0x3019c7=this['context']['config']['get']('users.getInitialsCallback'),_0x15a7e5={..._0x50aba3,'id':_0x3bf1f0,'name':normalizeName(this['_locale'],_0x5f2815),'color':this['_getNextColor']()};_0x15a7e5['name']=normalizeName(this['_locale'],_0x15a7e5['name']);const _0x409e1d=new User$1(_0x15a7e5,_0x3019c7);return this['users']['add'](_0x409e1d),_0x409e1d;}['getUser'](_0x5176ec){return this['users']['get'](_0x5176ec);}['useAnonymousUser'](){const _0x33af49=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x33af49);}['defineMe'](_0x397446){if(this['_myId'])throw new CKEditorError('users-me-already-defined',null);const _0x34f14=this['getUser'](_0x397446);if(!_0x34f14)throw new CKEditorError('users-me-missing-user',null);this['_myId']=_0x397446,_0x34f14['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x135395=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x135395&&(this['_lastColor']=0x0),new CollaborationUserColor(this['_lastColor']++);}['_addAnonymousUser'](){const _0x369b93=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x369b93,'name':getTranslation$h(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}let User$1=class{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0xa61136,_0x582e0a){this['id']=_0xa61136['id'],this['color']=_0xa61136['color'],this['name']=_0xa61136['name'],this['initials']=_0x582e0a?_0x582e0a(this['name']):this['_computeInitials'](),this['avatar']=_0xa61136['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x5eec5d=this['name']['split']('\x20')['filter'](_0x5d626f=>/^[\p{Letter}]/u['test'](_0x5d626f));return 0x1===_0x5eec5d['length']?this['_getInitial'](_0x5eec5d[0x0]):0x0===_0x5eec5d['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x5eec5d[0x0])+this['_getInitial'](_0x5eec5d[_0x5eec5d['length']-0x1]);}['_getInitial'](_0x39a2eb){return String['fromCodePoint'](_0x39a2eb['codePointAt'](0x0))['toUpperCase']();}};function normalizeName(_0x382f69,_0x286bd1=''){return''==(_0x286bd1=_0x286bd1['trim']())?getTranslation$h(_0x382f69,'Anonymous'):_0x286bd1;}class CollaborationUserColor{['_id'];constructor(_0x5c4299){this['_id']=_0x5c4299;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}['getColorVariable'](){return'var(--ck-user-colors--'+this['id']+',\x20var(--ck-user-colors--0))';}['getColorAlphaVariable'](){return'var(--ck-user-colors--'+this['id']+'-alpha,\x20var(--ck-user-colors--0-alpha))';}}class UserView extends View{['name'];['notificationView'];constructor(_0x211b08,_0x5126b9,_0x238c97){super(_0x211b08),this['name']=_0x5126b9['name'],this['notificationView']=null;const _0xec55b7=['ck','ck-user'],_0x14c1f7=['ck','ck-user__img'];if(_0x5126b9['isAnonymous']&&_0x14c1f7['push']('ck-user__anonymous'),!_0x5126b9['isAnonymous']&&_0x5126b9['isMe']&&_0xec55b7['push']('ck-user_me'),_0x5126b9['avatar']&&_0x14c1f7['push']('ck-user__avatar'),_0x238c97){const _0x144695=new IconView();_0x144695['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x144695['content']=IconNotification,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x238c97},'children':[_0x144695]};}const _0x1f15e8=[{'tag':'div','attributes':{'class':_0x14c1f7,'style':{'background-image':_0x5126b9['avatar']?'url(\x27'+_0x5126b9['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x5126b9['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x5126b9['name']},'children':[{'text':_0x5126b9['initials']}]}];this['notificationView']&&_0x1f15e8['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0xec55b7,'data-user-id':_0x5126b9['id']},'children':_0x1f15e8});}}class AriaDescriptionView extends View{['id'];constructor(_0x4603ec,_0x53ac4b){super(_0x4603ec),this['id']='ck-aria-description-'+uid(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x53ac4b}]});}}class LateFocusButtonView extends ButtonView{['render'](){super['render'](),delayFocusUntilMouseup(this);}}class LateFocusDropdownButtonView extends DropdownButtonView{['render'](){super['render'](),delayFocusUntilMouseup(this);}}function delayFocusUntilMouseup(_0x2e80b2){_0x2e80b2['listenTo'](_0x2e80b2['element'],'mousedown',(_0xfb9b0a,_0x255e94)=>{_0x255e94['stopPropagation'](),_0x255e94['preventDefault']();}),_0x2e80b2['listenTo'](_0x2e80b2['element'],'mouseup',()=>{_0x2e80b2['element']['focus']();});}function splitSuggestionMarkerName(_0xbb2ae9){const _0x5813e4=_0xbb2ae9['split'](':');return{'group':_0x5813e4[0x0],'type':_0x5813e4[0x1],'subType':_0x5813e4['length']>=0x5?_0x5813e4[0x2]:null,'id':_0x5813e4['length']<0x5?_0x5813e4[0x2]:_0x5813e4[0x3],'authorId':_0x5813e4['length']<0x5?_0x5813e4[0x3]:_0x5813e4[0x4],'markerCount':0x6==_0x5813e4['length']?_0x5813e4[0x5]:null};}function fixElementSuggestionRange(_0x54e981,_0x3cef6c){const _0x1ac2f2=_0x54e981['end']['nodeBefore'];if(_0x1ac2f2&&_0x1ac2f2['is']('element')&&_0x3cef6c['schema']['isBlock'](_0x1ac2f2)&&!_0x3cef6c['schema']['isObject'](_0x1ac2f2)){const _0x1e5f15=_0x3cef6c['createPositionAt'](_0x1ac2f2,'end');return _0x3cef6c['createRange'](_0x54e981['start'],_0x1e5f15);}return _0x54e981;}class SuggestionsConversionAlignment extends Plugin{['afterInit'](){const _0xb0ac4f=this['editor'];if(!_0xb0ac4f['plugins']['has']('AlignmentEditing'))return;_0xb0ac4f['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const basicStylesPlugins$1=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class SuggestionsConversionBasicStyles extends Plugin{['afterInit'](){const _0xf6cb03=this['editor'],_0x5ecbbd=_0xf6cb03['plugins']['get']('SuggestionsConversion');for(const _0x29dcc2 of basicStylesPlugins$1){if(!_0xf6cb03['plugins']['has'](_0x29dcc2))continue;const _0xfbc97b=_0x29dcc2['slice'](0x0,-0x7)['toLowerCase']();_0x5ecbbd['registerInlineAttribute'](_0xfbc97b);}}}class SuggestionsConversionBookmark extends Plugin{['afterInit'](){const _0x9fd7da=this['editor'],_0x539e20=_0x9fd7da['plugins']['get']('SuggestionsConversion');_0x9fd7da['plugins']['has']('BookmarkEditing')&&_0x539e20['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 _0x40361d=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x520774,commandName:_0x711c57}of fontPlugins$1)this['editor']['plugins']['has'](_0x520774)&&_0x40361d['registerInlineAttribute'](_0x711c57);}}class SuggestionsConversionFootnotes extends Plugin{['afterInit'](){const {editor:_0x21ee5a}=this;if(!_0x21ee5a['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x3ce786=_0x21ee5a['plugins']['get']('SuggestionsConversion');_0x3ce786['registerBlockAttribute']('footnotesListStyle'),_0x3ce786['registerBlockAttribute']('footnotesListStart');}}class SuggestionsConversionHighlight extends Plugin{['afterInit'](){const _0x7dbb53=this['editor'];if(!_0x7dbb53['plugins']['has']('HighlightEditing'))return;_0x7dbb53['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class SuggestionsConversionHtmlEmbed extends Plugin{['afterInit'](){const _0x52f970=this['editor'];if(!_0x52f970['plugins']['has']('HtmlEmbed'))return;_0x52f970['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class SuggestionsConversionImage extends Plugin{['afterInit'](){const _0x41fc83=this['editor'];if(!_0x41fc83['plugins']['has']('ImageEditing'))return;const _0x2e6781=_0x41fc83['plugins']['get']('SuggestionsConversion');_0x2e6781['registerBlockAttribute']('src'),_0x41fc83['plugins']['has']('ImageResize')&&_0x2e6781['registerBlockAttribute']('resizedWidth'),_0x41fc83['plugins']['has']('ImageTextAlternativeEditing')&&_0x2e6781['registerBlockAttribute']('alt'),_0x41fc83['plugins']['has']('PictureEditing')&&_0x2e6781['registerBlockAttribute']('sources'),_0x41fc83['plugins']['has']('ImageSizeAttributes')&&(_0x2e6781['registerBlockAttribute']('width'),_0x2e6781['registerBlockAttribute']('height'));}}class SuggestionsConversionIndent extends Plugin{['afterInit'](){const _0x4d8146=this['editor'],_0x25adc8=_0x4d8146['plugins']['get']('SuggestionsConversion');_0x4d8146['plugins']['has']('IndentBlock')&&(_0x25adc8['registerBlockAttribute']('blockIndent'),_0x4d8146['plugins']['has']('ListEditing')&&(_0x25adc8['registerBlockAttribute']('blockIndentList'),_0x25adc8['registerBlockAttribute']('blockIndentListItem')));}}class SuggestionsConversionLineHeight extends Plugin{['afterInit'](){const _0x5adfde=this['editor'];if(!_0x5adfde['plugins']['has']('LineHeight'))return;_0x5adfde['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class SuggestionsConversionLink extends Plugin{['afterInit'](){const _0x45f720=this['editor'];if(!_0x45f720['plugins']['has']('LinkEditing'))return;const _0x22ad05=_0x45f720['plugins']['get']('SuggestionsConversion'),_0x3f021e=_0x45f720['commands']['get']('link');_0x22ad05['registerInlineAttribute']('linkHref');for(const _0x1fbf5d of _0x3f021e['manualDecorators'])_0x22ad05['registerInlineAttribute'](_0x1fbf5d['id']);}}class SuggestionsConversionList extends Plugin{['afterInit'](){const _0x4774c8=this['editor'];if(!_0x4774c8['plugins']['has']('ListEditing'))return;const _0x458059=_0x4774c8['plugins']['get']('SuggestionsConversion'),_0x42a257=_0x4774c8['plugins']['has']('TodoListEditing');_0x458059['registerBlockAttribute']('listItemId'),_0x458059['registerBlockAttribute']('listType'),_0x458059['registerBlockAttribute']('listIndent'),_0x42a257&&_0x458059['registerBlockAttribute']('todoListChecked');}}class SuggestionsConversionListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x13f71e=this['editor']['config']['get']('list.properties'),_0x363d7d=this['editor']['plugins']['get']('SuggestionsConversion');_0x13f71e['styles']&&_0x363d7d['registerBlockAttribute']('listStyle'),_0x13f71e['reversed']&&_0x363d7d['registerBlockAttribute']('listReversed'),_0x13f71e['startIndex']&&_0x363d7d['registerBlockAttribute']('listStart');}}class SuggestionsConversionMultiLevelList extends Plugin{['afterInit'](){const _0x4cbe1b=this['editor'],_0x1dfe53=_0x4cbe1b['plugins']['get']('SuggestionsConversion');_0x4cbe1b['plugins']['has']('MultiLevelList')&&_0x1dfe53['registerBlockAttribute']('listMarkerStyle');}}class SuggestionsConversionStylesDropdown extends Plugin{['afterInit'](){const _0x28874b=this['editor'];if(!_0x28874b['plugins']['has']('Style')||!_0x28874b['plugins']['has']('DataSchema')||!_0x28874b['config']['get']('style.definitions'))return;const _0x3c3909=_0x28874b['plugins']['get']('SuggestionsConversion'),_0x4534c2=_0x28874b['config']['get']('style.definitions'),_0x23b0ae=_0x28874b['plugins']['get']('GeneralHtmlSupport'),_0x35c5d6=_0x28874b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x28874b['plugins']['get']('DataSchema'),_0x4534c2),_0x378c0a=new Set();for(const _0x91cf34 of _0x35c5d6['block']){const _0x2e72fc=_0x23b0ae['getGhsAttributeNameForElement'](_0x91cf34['element']);_0x378c0a['add'](_0x2e72fc);}const _0xc6ae0=new Set();for(const _0x9b3b18 of _0x35c5d6['inline']){const _0x44d96a=_0x23b0ae['getGhsAttributeNameForElement'](_0x9b3b18['element']);_0xc6ae0['add'](_0x44d96a);for(const _0x1afdb8 of _0x9b3b18['ghsAttributes'])_0xc6ae0['add'](_0x1afdb8);}for(const _0x16eb75 of _0x378c0a)_0x3c3909['registerBlockAttribute'](_0x16eb75);for(const _0x325d38 of _0xc6ae0)_0x3c3909['registerInlineAttribute'](_0x325d38);}}class SuggestionsConversionTableHeadings extends Plugin{['afterInit'](){const _0x277709=this['editor'];if(!_0x277709['plugins']['has']('TableEditing'))return;const _0x39fe59=_0x277709['plugins']['get']('SuggestionsConversion');_0x39fe59['registerBlockAttribute']('headingRows'),_0x39fe59['registerBlockAttribute']('headingColumns');}}class SuggestionsConversionTableProperties extends Plugin{['afterInit'](){const {plugins:_0x43086d}=this['editor'];if(!_0x43086d['has']('TablePropertiesEditing'))return;const _0x287710=_0x43086d['get']('SuggestionsConversion'),_0x2035d6=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x2e82f8 of _0x2035d6)_0x287710['registerBlockAttribute'](_0x2e82f8);}}class SuggestionsConversionTableLayout extends Plugin{['afterInit'](){const _0x17bd1c=this['editor'],_0x1e32d8=_0x17bd1c['plugins']['get']('SuggestionsConversion');_0x17bd1c['plugins']['has']('TableLayout')&&_0x1e32d8['registerBlockAttribute']('tableType');}}class SuggestionsConversionUploadcare extends Plugin{['afterInit'](){const _0x2eff2f=this['editor'],_0x14b32a=this['editor']['plugins']['get']('SuggestionsConversion');_0x2eff2f['plugins']['has']('Uploadcare')&&_0x2eff2f['plugins']['has']('UploadcareImageEdit')&&_0x14b32a['registerBlockAttribute']('uploadcareImageId');}}class SuggestionsConversionShiftEnter extends Plugin{['afterInit'](){const _0x3352f1=this['editor'];if(!_0x3352f1['plugins']['has']('ShiftEnter'))return;const _0x315d31=_0x3352f1['plugins']['get']('SuggestionsConversion'),_0x57c0a0=(_0x2101ad,_0x5ddc5a,_0x5206a9,_0xc6f7db)=>{if(_0xc6f7db&&!_0x5206a9['options']['showSuggestionHighlights'])return;if(!_0x5206a9['consumable']['test'](_0x5ddc5a['markerRange'],_0x2101ad['name']))return;const _0x3838f5=_0x3352f1['model'];for(const _0xcb3868 of _0x5ddc5a['markerRange']['getItems']()){if(!_0xcb3868['is']('element','softBreak'))continue;const _0x42e62e='deletion'==_0x5ddc5a['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xe6ea29,authorId:_0xf19f92}=splitSuggestionMarkerName(_0x5ddc5a['markerName']),_0x444fd1=_0x5206a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42e62e,'data-suggestion':_0xe6ea29,'data-author-id':_0xf19f92}),_0x431a6e=_0x5206a9['mapper']['toViewPosition'](_0x3838f5['createPositionBefore'](_0xcb3868));!_0xc6f7db&&_0x315d31['_activeMarkers']['includes'](_0x5ddc5a['markerName'])&&_0x5206a9['writer']['addClass']('ck-suggestion-marker--active',_0x444fd1),_0x5206a9['writer']['insert'](_0x431a6e,_0x444fd1),_0x5206a9['mapper']['bindElementToMarker'](_0x444fd1,_0x5ddc5a['markerName']);}};_0x3352f1['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5d5190,_0x9a24a2,_0x2f103a)=>{_0x57c0a0(_0x5d5190,_0x9a24a2,_0x2f103a,!0x1);},{'priority':'high'}),_0x3352f1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5aa27b,_0x501757,_0x4b384f)=>{_0x57c0a0(_0x5aa27b,_0x501757,_0x4b384f,!0x0);},{'priority':'high'});}}class SuggestionsConversionMediaEmbed extends Plugin{['afterInit'](){const _0x3ba0d3=this['editor'];_0x3ba0d3['plugins']['has']('MediaEmbedEditing')&&(_0x3ba0d3['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x26267f,{writer:_0x571037,options:_0x41627c})=>{if(_0x41627c['showSuggestionHighlights'])return _0x571037['createEmptyElement']('div');},'converterPriority':'high'}),_0x3ba0d3['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3d2a1b,_0x48dd4a,_0x42b105)=>{_0x42b105['options']['showSuggestionHighlights']&&_0x3d2a1b['stop']();},{'priority':'high'}));}}class SuggestionsConversionTable extends Plugin{['afterInit'](){const _0x59d743=this['editor'];if(!_0x59d743['plugins']['has']('Table'))return;_0x59d743['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3251c7,_0x24d14d,_0x2f6335)=>{((_0x52f650,_0x533e88,_0x254b70)=>{if(!_0x254b70['options']['showSuggestionHighlights'])return;const _0x255b68=_0x533e88['item'];if(!_0x255b68||!_0x255b68['is']('element','tableCell'))return;const _0xc2e5e2=_0x254b70['mapper']['toViewElement'](_0x255b68);if(_0xc2e5e2){const {id:_0x2c214c,authorId:_0x27e034}=splitSuggestionMarkerName(_0x533e88['markerName']);setHighlightHandling(_0xc2e5e2,_0x254b70['writer'],(_0x8fd1fe,_0x498dac,_0x6ff0ce)=>{_0x6ff0ce['addClass'](toArray$1(_0x498dac['classes']),_0x8fd1fe),_0x6ff0ce['setAttribute']('data-suggestion',_0x2c214c,_0x8fd1fe),_0x6ff0ce['setAttribute']('data-author-id',_0x27e034,_0x8fd1fe);});}})(0x0,_0x24d14d,_0x2f6335);},{'priority':'highest'});}}class SuggestionsConversionHorizontalLine extends Plugin{['afterInit'](){const _0x26406c=this['editor'];_0x26406c['plugins']['has']('HorizontalLineEditing')&&_0x26406c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3f3656,{writer:_0x509246,options:_0x287036})=>{if(!_0x287036['showSuggestionHighlights'])return null;const _0x37e326=_0x509246['createContainerElement']('div'),_0x29b511=_0x509246['createEmptyElement']('hr');return _0x509246['addClass']('ck-horizontal-line',_0x37e326),_0x509246['insert'](_0x509246['createPositionAt'](_0x37e326,0x0),_0x29b511),_0x37e326;},'converterPriority':'high'});}}class SuggestionsConversionTableCellProperties extends Plugin{['afterInit'](){const {plugins:_0x2f5e30,model:_0x35d313}=this['editor'];if(!_0x2f5e30['has']('TableCellPropertiesEditing'))return;const _0x4d316e=_0x2f5e30['get']('SuggestionsConversion'),_0x509fcd=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x5eaa23 of _0x509fcd)_0x4d316e['registerBlockAttribute'](_0x5eaa23);_0x35d313['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4d316e['registerBlockAttribute']('tableCellType');}}class SuggestionsConversionTableFooters extends Plugin{['afterInit'](){const _0x1eb2a4=this['editor'];if(!_0x1eb2a4['plugins']['has']('TableEditing')||!_0x1eb2a4['config']['get']('table.enableFooters'))return;_0x1eb2a4['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}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,SuggestionsConversionTableFooters,SuggestionsConversionTableLayout,SuggestionsConversionTableCellProperties,SuggestionsConversionTableProperties,SuggestionsConversionUploadcare];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x39e691=this['editor'],_0x405f85=(_0x1eb37e,_0x4261b2,_0x5a316d)=>{const {id:_0x5a3a96,authorId:_0x41ae74,type:_0x6ecb0c,subType:_0x37a8b9}=splitSuggestionMarkerName(_0x1eb37e['markerName']),_0x58990d=['ck-suggestion-marker',this['_getClassName'](_0x6ecb0c,_0x37a8b9)];let _0x2554aa=0xbb8;return!_0x5a316d&&(this['_activeMarkers']['includes'](_0x1eb37e['markerName'])&&(_0x58990d['push']('ck-suggestion-marker--active'),_0x2554aa=0xbc2)),('deletion'==_0x6ecb0c&&(_0x2554aa+=0x5),{'classes':_0x58990d,'attributes':{'data-suggestion':_0x5a3a96,'data-author-id':_0x41ae74},'priority':_0x2554aa});};_0x39e691['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x58f1bc,_0x4fd412)=>_0x405f85(_0x58f1bc,0x0,!0x1)}),_0x39e691['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x211e75,_0x1b3496)=>_0x405f85(_0x211e75,0x0,!0x0)}),_0x39e691['conversion']['for']('dataDowncast')['add'](_0x511e59=>{_0x511e59['on']('addMarker:suggestion',(_0x1b4eb9,_0x43f723,_0x5f03f3)=>{if(!_0x5f03f3['options']['showSuggestionHighlights'])return;const _0x5bb366=_0x43f723['item'];if(!_0x5bb366)return;const _0x3ea596=_0x5f03f3['mapper']['toViewElement'](_0x5bb366);_0x39e691['model']['schema']['isObject'](_0x5bb366)&&_0x3ea596&&!_0x3ea596['getCustomProperty']('widget')&&_0x3ea596['is']('containerElement')&&toWidget(_0x3ea596,_0x5f03f3['writer']);},{'priority':'high'});});const _0x114d25=(_0x40744a,_0x414b60,_0x48469c,_0x4a55b2,_0x45bfcc)=>{if(_0x4a55b2&&!_0x48469c['options']['showSuggestionHighlights'])return;if(!_0x414b60['item'])return;const {id:_0x56a371,authorId:_0x1db612,subType:_0x2baaf5}=splitSuggestionMarkerName(_0x414b60['markerName']);if(_0x45bfcc){const _0xd45f5c=_0x2baaf5['split']('|')[0x0];if(!this['isBlockAttribute'](_0xd45f5c))return;}if(_0x414b60['item']['is']('selection'))return void _0x48469c['consumable']['consume'](_0x414b60['item'],_0x40744a['name']);const _0x6dd2aa=_0x48469c['mapper']['toViewElement'](_0x414b60['item']);if(_0x414b60['item']['is']('element')&&_0x39e691['model']['schema']['isBlock'](_0x414b60['item'])&&!_0x6dd2aa['getCustomProperty']('addHighlight')){_0x48469c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x6dd2aa),_0x48469c['writer']['setAttribute']('data-suggestion',_0x56a371,_0x6dd2aa),_0x48469c['writer']['setAttribute']('data-author-id',_0x1db612,_0x6dd2aa),_0x48469c['mapper']['bindElementToMarker'](_0x6dd2aa,_0x414b60['markerName']),_0x4a55b2||(this['_activeMarkers']['includes'](_0x414b60['markerName'])?_0x48469c['writer']['addClass']('ck-suggestion-marker--active',_0x6dd2aa):_0x48469c['writer']['removeClass']('ck-suggestion-marker--active',_0x6dd2aa));for(const _0x25da5e of _0x39e691['model']['createRangeIn'](_0x414b60['item'])['getItems']())_0x48469c['consumable']['consume'](_0x25da5e,_0x40744a['name']);_0x48469c['consumable']['consume'](_0x414b60['item'],_0x40744a['name']);}},_0x5d8773=(_0x482649,_0x432396,_0x26a9c7,_0x189634)=>{const _0x413be6=_0x26a9c7['mapper']['markerNameToElements'](_0x432396['markerName']);if(_0x413be6){if(_0x189634){const {subType:_0x763f96}=splitSuggestionMarkerName(_0x432396['markerName']),_0x3e1e11=_0x763f96['split']('|')[0x0];if(!this['isBlockAttribute'](_0x3e1e11))return;}for(const _0x4be0d4 of _0x413be6)_0x4be0d4['getCustomProperty']('addHighlight')||(_0x26a9c7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4be0d4),_0x26a9c7['writer']['removeAttribute']('data-suggestion',_0x4be0d4),_0x26a9c7['writer']['removeAttribute']('data-author-id',_0x4be0d4),_0x26a9c7['mapper']['unbindElementFromMarkerName'](_0x4be0d4,_0x432396['markerName']));}};_0x39e691['conversion']['for']('editingDowncast')['add'](_0x3b2343=>{_0x3b2343['on']('addMarker:suggestion:formatBlock',(_0x5d4b78,_0xb1bc9a,_0x204db3)=>{_0x114d25(_0x5d4b78,_0xb1bc9a,_0x204db3,!0x1,!0x1);},{'priority':'high'});}),_0x39e691['conversion']['for']('editingDowncast')['add'](_0x2f53ad=>{_0x2f53ad['on']('addMarker:suggestion:attribute',(_0x327d2b,_0x1775f1,_0x1bc174)=>{_0x114d25(_0x327d2b,_0x1775f1,_0x1bc174,!0x1,!0x0);},{'priority':'high'});}),_0x39e691['conversion']['for']('editingDowncast')['add'](_0x50c9e2=>{_0x50c9e2['on']('removeMarker:suggestion:formatBlock',(_0x30196f,_0x364141,_0x50ed31)=>{_0x5d8773(0x0,_0x364141,_0x50ed31,!0x1);},{'priority':'high'});}),_0x39e691['conversion']['for']('editingDowncast')['add'](_0x5026f1=>{_0x5026f1['on']('removeMarker:suggestion:attribute',(_0x208eff,_0x2e5eca,_0x16d025)=>{_0x5d8773(0x0,_0x2e5eca,_0x16d025,!0x0);},{'priority':'high'});}),_0x39e691['conversion']['for']('dataDowncast')['add'](_0x356010=>{_0x356010['on']('addMarker:suggestion:formatBlock',(_0xae7cd9,_0x16e2d3,_0x5929d8)=>{_0x114d25(_0xae7cd9,_0x16e2d3,_0x5929d8,!0x0,!0x1);},{'priority':'highest'});}),_0x39e691['conversion']['for']('dataDowncast')['add'](_0x46431c=>{_0x46431c['on']('addMarker:suggestion:attribute',(_0x4e57a7,_0x1aa5b3,_0x5d7f1e)=>{_0x114d25(_0x4e57a7,_0x1aa5b3,_0x5d7f1e,!0x0,!0x0);},{'priority':'highest'});}),_0x39e691['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4244da,_0x3c11da)=>_0x3c11da['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4244da['substr'](0xb)}});const _0x4e36e2=(_0x1f27fa,_0x170c87,_0x26bcb2,_0x2b635f,_0x1c6d75)=>{if(_0x2b635f&&!_0x26bcb2['options']['showSuggestionHighlights'])return;if(!_0x26bcb2['consumable']['test'](_0x170c87['markerRange'],_0x1f27fa['name']))return;const _0x187cd2=this['_activeMarkers'],_0x5d5e38=_0x170c87['markerRange']['getWalker'](),_0x1df7e6=_0x170c87['markerRange']['start'],_0x2fb324=_0x39e691['model']['schema'];let _0x562089=null,_0x32af15=null,_0x25f3db=!0x1,_0x3e7c6b=!0x1;for(const _0x310cfa of _0x5d5e38){const _0x2f824d=_0x310cfa['item'];_0x25f3db=_0x25f3db||_0x2fb324['isContent'](_0x2f824d);const _0x12209e=_0x26bcb2['mapper']['toViewElement'](_0x2f824d);if(_0x12209e&&_0x12209e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x310cfa['type']&&(_0x2fb324['isBlock'](_0x2f824d)&&!_0x2fb324['isLimit'](_0x2f824d)&&(_0x2f824d['nextSibling']||_0x1df7e6['isAtEnd']?_0x562089&&_0x562089['parent']==_0x2f824d||(_0x562089=_0x2f824d,_0xf307f9(_0x310cfa['previousPosition']),_0x3e7c6b=!0x0):_0x32af15=_0x32af15||_0x310cfa['previousPosition']));}function _0xf307f9(_0x1f83ec){const {id:_0x41070a,authorId:_0x358749}=splitSuggestionMarkerName(_0x170c87['markerName']),_0xe468e3=_0x26bcb2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c6d75,'data-suggestion':_0x41070a,'data-author-id':_0x358749}),_0x13c88d=_0x26bcb2['mapper']['toViewPosition'](_0x1f83ec);!_0x2b635f&&_0x187cd2['includes'](_0x170c87['markerName'])&&_0x26bcb2['writer']['addClass']('ck-suggestion-marker--active',_0xe468e3),_0x26bcb2['writer']['insert'](_0x13c88d,_0xe468e3),_0x26bcb2['mapper']['bindElementToMarker'](_0xe468e3,_0x170c87['markerName']);}_0x25f3db||_0x3e7c6b||!_0x32af15||_0xf307f9(_0x32af15);};_0x39e691['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xcf49c9,_0x3f4e3b,_0x1178d9)=>{_0x4e36e2(_0xcf49c9,_0x3f4e3b,_0x1178d9,!0x1,'merge');},{'priority':'high'}),_0x39e691['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1ca20b,_0x4f9a9b,_0x5ca9c6)=>{_0x4e36e2(_0x1ca20b,_0x4f9a9b,_0x5ca9c6,!0x0,'merge');},{'priority':'high'}),_0x39e691['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e4fc3,_0x4171c3,_0x66d4b)=>{_0x4e36e2(_0x4e4fc3,_0x4171c3,_0x66d4b,!0x1,'split');},{'priority':'high'}),_0x39e691['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e7440,_0xd32c02,_0x4c409e)=>{_0x4e36e2(_0x4e7440,_0xd32c02,_0x4c409e,!0x0,'split');},{'priority':'high'}),_0x39e691['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2aab16,_0x4fd09d,_0x4b0ef7)=>{((_0x1f589e,_0xc3aea7,_0xfee3cb)=>{const _0xdcb387=_0xfee3cb['mapper']['markerNameToElements'](_0xc3aea7['markerName']);if(_0xdcb387){for(const _0x50e4f0 of _0xdcb387)(_0x50e4f0['hasClass']('ck-suggestion-marker-split')||_0x50e4f0['hasClass']('ck-suggestion-marker-merge'))&&(_0xfee3cb['mapper']['unbindElementFromMarkerName'](_0x50e4f0,_0xc3aea7['markerName']),_0xfee3cb['writer']['remove'](_0x50e4f0));}})(0x0,_0x4fd09d,_0x4b0ef7);},{'priority':'high'});const _0x5ab6c4=(_0x217215,_0x40fb6c,_0xea9a6c,_0x635956)=>{if(_0x635956&&!_0xea9a6c['options']['showSuggestionHighlights'])return;const _0x52123d=_0x40fb6c['markerRange']['start'],_0xe8bab3=_0x40fb6c['markerRange']['end'],_0x271f58=_0x39e691['model']['schema'];if(!_0x52123d['isTouching'](_0xe8bab3)||!_0x52123d['nodeAfter'])return;const _0x4b7ed6=_0x52123d['nodeAfter'];if(_0x271f58['isBlock'](_0x4b7ed6)&&!_0x271f58['isLimit'](_0x4b7ed6)&&_0x271f58['checkChild'](_0x4b7ed6,'$text')){if(!_0xea9a6c['consumable']['consume'](_0x40fb6c['markerRange'],_0x217215['name']))return;const {id:_0x5b8ce1,authorId:_0x21ca6d}=splitSuggestionMarkerName(_0x40fb6c['markerName']),_0x5e33ed=_0xea9a6c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5b8ce1,'data-author-id':_0x21ca6d}),_0x139ab2=_0xea9a6c['mapper']['toViewPosition'](_0xe8bab3);!_0x635956&&this['_activeMarkers']['includes'](_0x40fb6c['markerName'])&&_0xea9a6c['writer']['addClass']('ck-suggestion-marker--active',_0x5e33ed),_0xea9a6c['writer']['insert'](_0x139ab2,_0x5e33ed),_0xea9a6c['mapper']['bindElementToMarker'](_0x5e33ed,_0x40fb6c['markerName']);}};_0x39e691['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x139c81,_0xcc7bf2,_0x4debf8)=>{_0x5ab6c4(_0x139c81,_0xcc7bf2,_0x4debf8,!0x1);},{'priority':'high'}),_0x39e691['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1c8b22,_0xb6ba8b,_0x4cb4b2)=>{_0x5ab6c4(_0x1c8b22,_0xb6ba8b,_0x4cb4b2,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x128d16,_0x19c89e,_0x567882)=>{this['_activeMarkers']=_0x567882['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x3d380e){this['_blockAttributeKeys']['add'](_0x3d380e);}['registerInlineAttribute'](_0x3804db){this['_inlineAttributeKeys']['add'](_0x3804db);}['isBlockAttribute'](_0x5d02e1){return this['_blockAttributeKeys']['has'](_0x5d02e1);}['isInlineAttribute'](_0x23f9db){return this['_inlineAttributeKeys']['has'](_0x23f9db);}['isRegisteredAttribute'](_0x2674be){return this['isInlineAttribute'](_0x2674be)||this['isBlockAttribute'](_0x2674be);}['_getClassName'](_0x2a020c,_0x1fe8d3){if('attribute'!=_0x2a020c)return'ck-suggestion-marker-'+_0x2a020c;const _0x249448=_0x1fe8d3['split']('|')[0x0];return this['isBlockAttribute'](_0x249448)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(_0x41f7d5){super('Invalid\x20DateTime:\x20'+_0x41f7d5['toMessage']());}}class InvalidIntervalError extends LuxonError{constructor(_0x16f36d){super('Invalid\x20Interval:\x20'+_0x16f36d['toMessage']());}}class InvalidDurationError extends LuxonError{constructor(_0x5deebc){super('Invalid\x20Duration:\x20'+_0x5deebc['toMessage']());}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(_0x44bd3d){super('Invalid\x20unit\x20'+_0x44bd3d);}}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'](_0x11da9e,_0x3ad00e){throw new ZoneIsAbstractError();}['formatOffset'](_0x4d12f0,_0x463eaf){throw new ZoneIsAbstractError();}['offset'](_0x4ce070){throw new ZoneIsAbstractError();}['equals'](_0x25fe32){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'](_0xb16b03,{format:_0x1babe1,locale:_0x482c92}){return parseZoneInfo(_0xb16b03,_0x1babe1,_0x482c92);}['formatOffset'](_0x4fc36d,_0x17e51e){return formatOffset(this['offset'](_0x4fc36d),_0x17e51e);}['offset'](_0x980971){return-new Date(_0x980971)['getTimezoneOffset']();}['equals'](_0x55f10f){return'system'===_0x55f10f['type'];}get['isValid'](){return!0x0;}}const dtfCache=new Map();function makeDTF(_0x502069){let _0x40a3d2=dtfCache['get'](_0x502069);return void 0x0===_0x40a3d2&&(_0x40a3d2=new Intl['DateTimeFormat']('en-US',{'hour12':!0x1,'timeZone':_0x502069,'year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit','second':'2-digit','era':'short'}),dtfCache['set'](_0x502069,_0x40a3d2)),_0x40a3d2;}const typeToPos={'year':0x0,'month':0x1,'day':0x2,'era':0x3,'hour':0x4,'minute':0x5,'second':0x6};function hackyOffset(_0x1c3337,_0x52d57a){const _0x4668ab=_0x1c3337['format'](_0x52d57a)['replace'](/\u200E/g,''),_0x3e8614=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/['exec'](_0x4668ab),[,_0x34062c,_0x2df934,_0x1d8a55,_0x2b9e8e,_0x23ec54,_0x301e19,_0x4a7582]=_0x3e8614;return[_0x1d8a55,_0x34062c,_0x2df934,_0x2b9e8e,_0x23ec54,_0x301e19,_0x4a7582];}function partsOffset(_0x1bd2f5,_0x59997a){const _0x33d599=_0x1bd2f5['formatToParts'](_0x59997a),_0xc0f044=[];for(let _0x324281=0x0;_0x324281<_0x33d599['length'];_0x324281++){const {type:_0x2e49b6,value:_0x5e9f16}=_0x33d599[_0x324281],_0x7d60c6=typeToPos[_0x2e49b6];'era'===_0x2e49b6?_0xc0f044[_0x7d60c6]=_0x5e9f16:isUndefined(_0x7d60c6)||(_0xc0f044[_0x7d60c6]=parseInt(_0x5e9f16,0xa));}return _0xc0f044;}const ianaZoneCache=new Map();class IANAZone extends Zone{static['create'](_0x5ba2af){let _0x46823c=ianaZoneCache['get'](_0x5ba2af);return void 0x0===_0x46823c&&ianaZoneCache['set'](_0x5ba2af,_0x46823c=new IANAZone(_0x5ba2af)),_0x46823c;}static['resetCache'](){ianaZoneCache['clear'](),dtfCache['clear']();}static['isValidSpecifier'](_0x298003){return this['isValidZone'](_0x298003);}static['isValidZone'](_0x9c3331){if(!_0x9c3331)return!0x1;try{return new Intl['DateTimeFormat']('en-US',{'timeZone':_0x9c3331})['format'](),!0x0;}catch(_0x3fe41c){return!0x1;}}constructor(_0x57d811){super(),this['zoneName']=_0x57d811,this['valid']=IANAZone['isValidZone'](_0x57d811);}get['type'](){return'iana';}get['name'](){return this['zoneName'];}get['isUniversal'](){return!0x1;}['offsetName'](_0x29ea28,{format:_0x56c79f,locale:_0x36d526}){return parseZoneInfo(_0x29ea28,_0x56c79f,_0x36d526,this['name']);}['formatOffset'](_0x13cc88,_0x3f4e27){return formatOffset(this['offset'](_0x13cc88),_0x3f4e27);}['offset'](_0x416c49){if(!this['valid'])return NaN;const _0x33d0ff=new Date(_0x416c49);if(isNaN(_0x33d0ff))return NaN;const _0x4c788f=makeDTF(this['name']);let [_0x29f617,_0xb464cb,_0x3fc7b2,_0x5a6a76,_0x5f02ed,_0x20510e,_0x19a8bd]=_0x4c788f['formatToParts']?partsOffset(_0x4c788f,_0x33d0ff):hackyOffset(_0x4c788f,_0x33d0ff);'BC'===_0x5a6a76&&(_0x29f617=0x1-Math['abs'](_0x29f617));let _0x1981fe=+_0x33d0ff;const _0x6d6a02=_0x1981fe%0x3e8;return _0x1981fe-=_0x6d6a02>=0x0?_0x6d6a02:0x3e8+_0x6d6a02,(objToLocalTS({'year':_0x29f617,'month':_0xb464cb,'day':_0x3fc7b2,'hour':0x18===_0x5f02ed?0x0:_0x5f02ed,'minute':_0x20510e,'second':_0x19a8bd,'millisecond':0x0})-_0x1981fe)/0xea60;}['equals'](_0x13a8c8){return'iana'===_0x13a8c8['type']&&_0x13a8c8['name']===this['name'];}get['isValid'](){return this['valid'];}}let intlLFCache={};function getCachedLF(_0x20814d,_0x3a674f={}){const _0x2bdc8b=JSON['stringify']([_0x20814d,_0x3a674f]);let _0x21cca9=intlLFCache[_0x2bdc8b];return _0x21cca9||(_0x21cca9=new Intl['ListFormat'](_0x20814d,_0x3a674f),intlLFCache[_0x2bdc8b]=_0x21cca9),_0x21cca9;}const intlDTCache=new Map();function getCachedDTF(_0x4b2328,_0x55e38c={}){const _0xb868a2=JSON['stringify']([_0x4b2328,_0x55e38c]);let _0x3e194d=intlDTCache['get'](_0xb868a2);return void 0x0===_0x3e194d&&(_0x3e194d=new Intl['DateTimeFormat'](_0x4b2328,_0x55e38c),intlDTCache['set'](_0xb868a2,_0x3e194d)),_0x3e194d;}const intlNumCache=new Map();function getCachedINF(_0x7e0fd5,_0x3db29f={}){const _0x372d36=JSON['stringify']([_0x7e0fd5,_0x3db29f]);let _0x66d56a=intlNumCache['get'](_0x372d36);return void 0x0===_0x66d56a&&(_0x66d56a=new Intl['NumberFormat'](_0x7e0fd5,_0x3db29f),intlNumCache['set'](_0x372d36,_0x66d56a)),_0x66d56a;}const intlRelCache=new Map();function getCachedRTF(_0x126ad4,_0x2e716d={}){const {base:_0x2e76a7,..._0x5d89b9}=_0x2e716d,_0x3f2c41=JSON['stringify']([_0x126ad4,_0x5d89b9]);let _0x16c3d5=intlRelCache['get'](_0x3f2c41);return void 0x0===_0x16c3d5&&(_0x16c3d5=new Intl['RelativeTimeFormat'](_0x126ad4,_0x2e716d),intlRelCache['set'](_0x3f2c41,_0x16c3d5)),_0x16c3d5;}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl['DateTimeFormat']()['resolvedOptions']()['locale'],sysLocaleCache);}const intlResolvedOptionsCache=new Map();function getCachedIntResolvedOptions(_0x4b3706){let _0x4857ef=intlResolvedOptionsCache['get'](_0x4b3706);return void 0x0===_0x4857ef&&(_0x4857ef=new Intl['DateTimeFormat'](_0x4b3706)['resolvedOptions'](),intlResolvedOptionsCache['set'](_0x4b3706,_0x4857ef)),_0x4857ef;}const weekInfoCache=new Map();function getCachedWeekInfo(_0x24f8e6){let _0x5e108d=weekInfoCache['get'](_0x24f8e6);if(!_0x5e108d){const _0x8527ae=new Intl['Locale'](_0x24f8e6);_0x5e108d='getWeekInfo'in _0x8527ae?_0x8527ae['getWeekInfo']():_0x8527ae['weekInfo'],'minimalDays'in _0x5e108d||(_0x5e108d={...fallbackWeekSettings,..._0x5e108d}),weekInfoCache['set'](_0x24f8e6,_0x5e108d);}return _0x5e108d;}function parseLocaleString(_0x39c1e7){const _0x3a4b5f=_0x39c1e7['indexOf']('-x-');-0x1!==_0x3a4b5f&&(_0x39c1e7=_0x39c1e7['substring'](0x0,_0x3a4b5f));const _0x351f4a=_0x39c1e7['indexOf']('-u-');if(-0x1===_0x351f4a)return[_0x39c1e7];{let _0x1efbfa,_0x2bf917;try{_0x1efbfa=getCachedDTF(_0x39c1e7)['resolvedOptions'](),_0x2bf917=_0x39c1e7;}catch(_0x1d0012){const _0x43a37c=_0x39c1e7['substring'](0x0,_0x351f4a);_0x1efbfa=getCachedDTF(_0x43a37c)['resolvedOptions'](),_0x2bf917=_0x43a37c;}const {numberingSystem:_0x41770e,calendar:_0x2187cb}=_0x1efbfa;return[_0x2bf917,_0x41770e,_0x2187cb];}}function intlConfigString(_0x27ddc3,_0x4b7e18,_0x71f0a4){return _0x71f0a4||_0x4b7e18?(_0x27ddc3['includes']('-u-')||(_0x27ddc3+='-u'),_0x71f0a4&&(_0x27ddc3+='-ca-'+_0x71f0a4),_0x4b7e18&&(_0x27ddc3+='-nu-'+_0x4b7e18),_0x27ddc3):_0x27ddc3;}function mapMonths(_0x778650){const _0x3f8a36=[];for(let _0x260758=0x1;_0x260758<=0xc;_0x260758++){const _0x175630=DateTime['utc'](0x7d9,_0x260758,0x1);_0x3f8a36['push'](_0x778650(_0x175630));}return _0x3f8a36;}function mapWeekdays(_0x2f4f5b){const _0x126dbe=[];for(let _0x4e6fd6=0x1;_0x4e6fd6<=0x7;_0x4e6fd6++){const _0x48a1ac=DateTime['utc'](0x7e0,0xb,0xd+_0x4e6fd6);_0x126dbe['push'](_0x2f4f5b(_0x48a1ac));}return _0x126dbe;}function listStuff(_0x51baa5,_0x4b7006,_0x122591,_0x319df8){const _0x1342cb=_0x51baa5['listingMode']();return'error'===_0x1342cb?null:'en'===_0x1342cb?_0x122591(_0x4b7006):_0x319df8(_0x4b7006);}function supportsFastNumbers(_0x37d4b6){return(!_0x37d4b6['numberingSystem']||'latn'===_0x37d4b6['numberingSystem'])&&('latn'===_0x37d4b6['numberingSystem']||!_0x37d4b6['locale']||_0x37d4b6['locale']['startsWith']('en')||'latn'===getCachedIntResolvedOptions(_0x37d4b6['locale'])['numberingSystem']);}class PolyNumberFormatter{constructor(_0x30aab7,_0x47000e,_0x45550b){this['padTo']=_0x45550b['padTo']||0x0,this['floor']=_0x45550b['floor']||!0x1;const {padTo:_0x58b80f,floor:_0x1550eb,..._0x439751}=_0x45550b;if(!_0x47000e||Object['keys'](_0x439751)['length']>0x0){const _0x5a5167={'useGrouping':!0x1,..._0x45550b};_0x45550b['padTo']>0x0&&(_0x5a5167['minimumIntegerDigits']=_0x45550b['padTo']),this['inf']=getCachedINF(_0x30aab7,_0x5a5167);}}['format'](_0x5b52af){if(this['inf']){const _0x266603=this['floor']?Math['floor'](_0x5b52af):_0x5b52af;return this['inf']['format'](_0x266603);}return padStart(this['floor']?Math['floor'](_0x5b52af):roundTo(_0x5b52af,0x3),this['padTo']);}}class PolyDateFormatter{constructor(_0x52d20f,_0x44044b,_0x5896eb){let _0x1025d3;if(this['opts']=_0x5896eb,this['originalZone']=void 0x0,this['opts']['timeZone'])this['dt']=_0x52d20f;else{if('fixed'===_0x52d20f['zone']['type']){const _0x79ebee=_0x52d20f['offset']/0x3c*-0x1,_0x566588=_0x79ebee>=0x0?'Etc/GMT+'+_0x79ebee:'Etc/GMT'+_0x79ebee;0x0!==_0x52d20f['offset']&&IANAZone['create'](_0x566588)['valid']?(_0x1025d3=_0x566588,this['dt']=_0x52d20f):(_0x1025d3='UTC',this['dt']=0x0===_0x52d20f['offset']?_0x52d20f:_0x52d20f['setZone']('UTC')['plus']({'minutes':_0x52d20f['offset']}),this['originalZone']=_0x52d20f['zone']);}else'system'===_0x52d20f['zone']['type']?this['dt']=_0x52d20f:'iana'===_0x52d20f['zone']['type']?(this['dt']=_0x52d20f,_0x1025d3=_0x52d20f['zone']['name']):(_0x1025d3='UTC',this['dt']=_0x52d20f['setZone']('UTC')['plus']({'minutes':_0x52d20f['offset']}),this['originalZone']=_0x52d20f['zone']);}const _0x1254ea={...this['opts']};_0x1254ea['timeZone']=_0x1254ea['timeZone']||_0x1025d3,this['dtf']=getCachedDTF(_0x44044b,_0x1254ea);}['format'](){return this['originalZone']?this['formatToParts']()['map'](({value:_0x3fa712})=>_0x3fa712)['join'](''):this['dtf']['format'](this['dt']['toJSDate']());}['formatToParts'](){const _0x407f5b=this['dtf']['formatToParts'](this['dt']['toJSDate']());return this['originalZone']?_0x407f5b['map'](_0x1ea0d5=>{if('timeZoneName'===_0x1ea0d5['type']){const _0x3b49e6=this['originalZone']['offsetName'](this['dt']['ts'],{'locale':this['dt']['locale'],'format':this['opts']['timeZoneName']});return{..._0x1ea0d5,'value':_0x3b49e6};}return _0x1ea0d5;}):_0x407f5b;}['resolvedOptions'](){return this['dtf']['resolvedOptions']();}}class PolyRelFormatter{constructor(_0x3fe22d,_0xd3e286,_0x1b53e3){this['opts']={'style':'long',..._0x1b53e3},!_0xd3e286&&hasRelative()&&(this['rtf']=getCachedRTF(_0x3fe22d,_0x1b53e3));}['format'](_0x1f631a,_0x1b0827){return this['rtf']?this['rtf']['format'](_0x1f631a,_0x1b0827):formatRelativeTime(_0x1b0827,_0x1f631a,this['opts']['numeric'],'long'!==this['opts']['style']);}['formatToParts'](_0x4b8d1f,_0x348797){return this['rtf']?this['rtf']['formatToParts'](_0x4b8d1f,_0x348797):[];}}const fallbackWeekSettings={'firstDay':0x1,'minimalDays':0x4,'weekend':[0x6,0x7]};class Locale{static['fromOpts'](_0x55eaf5){return Locale['create'](_0x55eaf5['locale'],_0x55eaf5['numberingSystem'],_0x55eaf5['outputCalendar'],_0x55eaf5['weekSettings'],_0x55eaf5['defaultToEN']);}static['create'](_0x456a41,_0x13b9a5,_0x3b4896,_0x190c8f,_0x2bbf9a=!0x1){const _0x10dac1=_0x456a41||Settings['defaultLocale'],_0x4721d2=_0x10dac1||(_0x2bbf9a?'en-US':systemLocale()),_0x52fdf1=_0x13b9a5||Settings['defaultNumberingSystem'],_0x5b81c3=_0x3b4896||Settings['defaultOutputCalendar'],_0x38839d=validateWeekSettings(_0x190c8f)||Settings['defaultWeekSettings'];return new Locale(_0x4721d2,_0x52fdf1,_0x5b81c3,_0x38839d,_0x10dac1);}static['resetCache'](){sysLocaleCache=null,intlDTCache['clear'](),intlNumCache['clear'](),intlRelCache['clear'](),intlResolvedOptionsCache['clear'](),weekInfoCache['clear']();}static['fromObject']({locale:_0x5cccf5,numberingSystem:_0x40fed4,outputCalendar:_0x13596e,weekSettings:_0xb224de}={}){return Locale['create'](_0x5cccf5,_0x40fed4,_0x13596e,_0xb224de);}constructor(_0x416b59,_0x48b405,_0x300989,_0x511138,_0x3323e3){const [_0x2d0b36,_0x281995,_0x3bc48d]=parseLocaleString(_0x416b59);this['locale']=_0x2d0b36,this['numberingSystem']=_0x48b405||_0x281995||null,this['outputCalendar']=_0x300989||_0x3bc48d||null,this['weekSettings']=_0x511138,this['intl']=intlConfigString(this['locale'],this['numberingSystem'],this['outputCalendar']),this['weekdaysCache']={'format':{},'standalone':{}},this['monthsCache']={'format':{},'standalone':{}},this['meridiemCache']=null,this['eraCache']={},this['specifiedLocale']=_0x3323e3,this['fastNumbersCached']=null;}get['fastNumbers'](){return null==this['fastNumbersCached']&&(this['fastNumbersCached']=supportsFastNumbers(this)),this['fastNumbersCached'];}['listingMode'](){const _0x2d477e=this['isEnglish'](),_0x4d3d49=!(null!==this['numberingSystem']&&'latn'!==this['numberingSystem']||null!==this['outputCalendar']&&'gregory'!==this['outputCalendar']);return _0x2d477e&&_0x4d3d49?'en':'intl';}['clone'](_0x308eac){return _0x308eac&&0x0!==Object['getOwnPropertyNames'](_0x308eac)['length']?Locale['create'](_0x308eac['locale']||this['specifiedLocale'],_0x308eac['numberingSystem']||this['numberingSystem'],_0x308eac['outputCalendar']||this['outputCalendar'],validateWeekSettings(_0x308eac['weekSettings'])||this['weekSettings'],_0x308eac['defaultToEN']||!0x1):this;}['redefaultToEN'](_0xecd696={}){return this['clone']({..._0xecd696,'defaultToEN':!0x0});}['redefaultToSystem'](_0x32ee3e={}){return this['clone']({..._0x32ee3e,'defaultToEN':!0x1});}['months'](_0x340d49,_0x596ee3=!0x1){return listStuff(this,_0x340d49,months,()=>{const _0x44a04b=_0x596ee3?{'month':_0x340d49,'day':'numeric'}:{'month':_0x340d49},_0x58d858=_0x596ee3?'format':'standalone';return this['monthsCache'][_0x58d858][_0x340d49]||(this['monthsCache'][_0x58d858][_0x340d49]=mapMonths(_0x15bd5c=>this['extract'](_0x15bd5c,_0x44a04b,'month'))),this['monthsCache'][_0x58d858][_0x340d49];});}['weekdays'](_0x3816b0,_0x179f14=!0x1){return listStuff(this,_0x3816b0,weekdays,()=>{const _0xf9783c=_0x179f14?{'weekday':_0x3816b0,'year':'numeric','month':'long','day':'numeric'}:{'weekday':_0x3816b0},_0x29c0d8=_0x179f14?'format':'standalone';return this['weekdaysCache'][_0x29c0d8][_0x3816b0]||(this['weekdaysCache'][_0x29c0d8][_0x3816b0]=mapWeekdays(_0x4df27a=>this['extract'](_0x4df27a,_0xf9783c,'weekday'))),this['weekdaysCache'][_0x29c0d8][_0x3816b0];});}['meridiems'](){return listStuff(this,void 0x0,()=>meridiems,()=>{if(!this['meridiemCache']){const _0x21217c={'hour':'numeric','hourCycle':'h12'};this['meridiemCache']=[DateTime['utc'](0x7e0,0xb,0xd,0x9),DateTime['utc'](0x7e0,0xb,0xd,0x13)]['map'](_0x682ec=>this['extract'](_0x682ec,_0x21217c,'dayperiod'));}return this['meridiemCache'];});}['eras'](_0x1f0d2d){return listStuff(this,_0x1f0d2d,eras,()=>{const _0x4503a0={'era':_0x1f0d2d};return this['eraCache'][_0x1f0d2d]||(this['eraCache'][_0x1f0d2d]=[DateTime['utc'](-0x28,0x1,0x1),DateTime['utc'](0x7e1,0x1,0x1)]['map'](_0x310ad2=>this['extract'](_0x310ad2,_0x4503a0,'era'))),this['eraCache'][_0x1f0d2d];});}['extract'](_0x5b3c67,_0x3028c0,_0x27db40){const _0x3804d8=this['dtFormatter'](_0x5b3c67,_0x3028c0)['formatToParts']()['find'](_0x4690be=>_0x4690be['type']['toLowerCase']()===_0x27db40);return _0x3804d8?_0x3804d8['value']:null;}['numberFormatter'](_0x44b0d7={}){return new PolyNumberFormatter(this['intl'],_0x44b0d7['forceSimple']||this['fastNumbers'],_0x44b0d7);}['dtFormatter'](_0x224aec,_0x836113={}){return new PolyDateFormatter(_0x224aec,this['intl'],_0x836113);}['relFormatter'](_0x465e83={}){return new PolyRelFormatter(this['intl'],this['isEnglish'](),_0x465e83);}['listFormatter'](_0x2c8c82={}){return getCachedLF(this['intl'],_0x2c8c82);}['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'](_0x2fc97a){return this['locale']===_0x2fc97a['locale']&&this['numberingSystem']===_0x2fc97a['numberingSystem']&&this['outputCalendar']===_0x2fc97a['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'](_0xba21aa){return 0x0===_0xba21aa?FixedOffsetZone['utcInstance']:new FixedOffsetZone(_0xba21aa);}static['parseSpecifier'](_0x538827){if(_0x538827){const _0x2c3e69=_0x538827['match'](/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(_0x2c3e69)return new FixedOffsetZone(signedOffset(_0x2c3e69[0x1],_0x2c3e69[0x2]));}return null;}constructor(_0x3d024f){super(),this['fixed']=_0x3d024f;}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'](_0x965e8e,_0x26926f){return formatOffset(this['fixed'],_0x26926f);}get['isUniversal'](){return!0x0;}['offset'](){return this['fixed'];}['equals'](_0x2aa0a6){return'fixed'===_0x2aa0a6['type']&&_0x2aa0a6['fixed']===this['fixed'];}get['isValid'](){return!0x0;}}class InvalidZone extends Zone{constructor(_0x3976b4){super(),this['zoneName']=_0x3976b4;}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(_0x51581a,_0x1a5681){if(isUndefined(_0x51581a)||null===_0x51581a)return _0x1a5681;if(_0x51581a instanceof Zone)return _0x51581a;if(isString(_0x51581a)){const _0x3e7d76=_0x51581a['toLowerCase']();return'default'===_0x3e7d76?_0x1a5681:'local'===_0x3e7d76||'system'===_0x3e7d76?SystemZone['instance']:'utc'===_0x3e7d76||'gmt'===_0x3e7d76?FixedOffsetZone['utcInstance']:FixedOffsetZone['parseSpecifier'](_0x3e7d76)||IANAZone['create'](_0x51581a);}return isNumber(_0x51581a)?FixedOffsetZone['instance'](_0x51581a):'object'==typeof _0x51581a&&'offset'in _0x51581a&&'function'==typeof _0x51581a['offset']?_0x51581a:new InvalidZone(_0x51581a);}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(_0x52c2d8){let _0x24bf1a=parseInt(_0x52c2d8,0xa);if(isNaN(_0x24bf1a)){_0x24bf1a='';for(let _0x14aa84=0x0;_0x14aa84<_0x52c2d8['length'];_0x14aa84++){const _0x3ba292=_0x52c2d8['charCodeAt'](_0x14aa84);if(-0x1!==_0x52c2d8[_0x14aa84]['search'](numberingSystems['hanidec']))_0x24bf1a+=hanidecChars['indexOf'](_0x52c2d8[_0x14aa84]);else for(const _0x2d5193 in numberingSystemsUTF16){const [_0x14f9ab,_0x37da1d]=numberingSystemsUTF16[_0x2d5193];_0x3ba292>=_0x14f9ab&&_0x3ba292<=_0x37da1d&&(_0x24bf1a+=_0x3ba292-_0x14f9ab);}}return parseInt(_0x24bf1a,0xa);}return _0x24bf1a;}const digitRegexCache=new Map();function resetDigitRegexCache(){digitRegexCache['clear']();}function digitRegex({numberingSystem:_0x396ee2},_0xd3e0d1=''){const _0x2f6cc3=_0x396ee2||'latn';let _0x5d7b5e=digitRegexCache['get'](_0x2f6cc3);void 0x0===_0x5d7b5e&&(_0x5d7b5e=new Map(),digitRegexCache['set'](_0x2f6cc3,_0x5d7b5e));let _0x4adb3d=_0x5d7b5e['get'](_0xd3e0d1);return void 0x0===_0x4adb3d&&(_0x4adb3d=new RegExp(''+numberingSystems[_0x2f6cc3]+_0xd3e0d1),_0x5d7b5e['set'](_0xd3e0d1,_0x4adb3d)),_0x4adb3d;}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'](_0xe003a0){now=_0xe003a0;}static set['defaultZone'](_0x25f752){defaultZone=_0x25f752;}static get['defaultZone'](){return normalizeZone(defaultZone,SystemZone['instance']);}static get['defaultLocale'](){return defaultLocale;}static set['defaultLocale'](_0x5b5191){defaultLocale=_0x5b5191;}static get['defaultNumberingSystem'](){return defaultNumberingSystem;}static set['defaultNumberingSystem'](_0xbf65fb){defaultNumberingSystem=_0xbf65fb;}static get['defaultOutputCalendar'](){return defaultOutputCalendar;}static set['defaultOutputCalendar'](_0x5e894a){defaultOutputCalendar=_0x5e894a;}static get['defaultWeekSettings'](){return defaultWeekSettings;}static set['defaultWeekSettings'](_0x51323e){defaultWeekSettings=validateWeekSettings(_0x51323e);}static get['twoDigitCutoffYear'](){return twoDigitCutoffYear;}static set['twoDigitCutoffYear'](_0x122d1f){twoDigitCutoffYear=_0x122d1f%0x64;}static get['throwOnInvalid'](){return throwOnInvalid;}static set['throwOnInvalid'](t){throwOnInvalid=t;}static['resetCaches'](){Locale['resetCache'](),IANAZone['resetCache'](),DateTime['resetCache'](),resetDigitRegexCache();}}class Invalid{constructor(_0x598e88,_0xc1128a){this['reason']=_0x598e88,this['explanation']=_0xc1128a;}['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(_0x45e1a9,_0x4d020e){return new Invalid('unit\x20out\x20of\x20range','you\x20specified\x20'+_0x4d020e+'\x20(of\x20type\x20'+typeof _0x4d020e+')\x20as\x20a\x20'+_0x45e1a9+',\x20which\x20is\x20invalid');}function dayOfWeek(_0x2a3abd,_0x4a5ef7,_0x3d1db0){const _0x338ed6=new Date(Date['UTC'](_0x2a3abd,_0x4a5ef7-0x1,_0x3d1db0));_0x2a3abd<0x64&&_0x2a3abd>=0x0&&_0x338ed6['setUTCFullYear'](_0x338ed6['getUTCFullYear']()-0x76c);const _0x5ba098=_0x338ed6['getUTCDay']();return 0x0===_0x5ba098?0x7:_0x5ba098;}function computeOrdinal(_0x290dd1,_0x2e6957,_0x4f68d4){return _0x4f68d4+(isLeapYear(_0x290dd1)?leapLadder:nonLeapLadder)[_0x2e6957-0x1];}function uncomputeOrdinal(_0x2c9e71,_0x3a443f){const _0x4c8836=isLeapYear(_0x2c9e71)?leapLadder:nonLeapLadder,_0x412a20=_0x4c8836['findIndex'](_0x23f740=>_0x23f740<_0x3a443f);return{'month':_0x412a20+0x1,'day':_0x3a443f-_0x4c8836[_0x412a20]};}function isoWeekdayToLocal(_0x7c6661,_0x2a4ae3){return(_0x7c6661-_0x2a4ae3+0x7)%0x7+0x1;}function gregorianToWeek(_0x313fbe,_0x16d0ab=0x4,_0x2a378e=0x1){const {year:_0x4aeefa,month:_0x29d2fa,day:_0x55344b}=_0x313fbe,_0x4d7d31=computeOrdinal(_0x4aeefa,_0x29d2fa,_0x55344b),_0x11dea9=isoWeekdayToLocal(dayOfWeek(_0x4aeefa,_0x29d2fa,_0x55344b),_0x2a378e);let _0x46efae,_0x595589=Math['floor']((_0x4d7d31-_0x11dea9+0xe-_0x16d0ab)/0x7);return _0x595589<0x1?(_0x46efae=_0x4aeefa-0x1,_0x595589=weeksInWeekYear(_0x46efae,_0x16d0ab,_0x2a378e)):_0x595589>weeksInWeekYear(_0x4aeefa,_0x16d0ab,_0x2a378e)?(_0x46efae=_0x4aeefa+0x1,_0x595589=0x1):_0x46efae=_0x4aeefa,{'weekYear':_0x46efae,'weekNumber':_0x595589,'weekday':_0x11dea9,...timeObject(_0x313fbe)};}function weekToGregorian(_0x46cdaa,_0x3056e2=0x4,_0x2b64cc=0x1){const {weekYear:_0x4fb28e,weekNumber:_0xded1ba,weekday:_0x5ed24a}=_0x46cdaa,_0x2e3c16=isoWeekdayToLocal(dayOfWeek(_0x4fb28e,0x1,_0x3056e2),_0x2b64cc),_0x509ff9=daysInYear(_0x4fb28e);let _0x23c641,_0x5c432a=0x7*_0xded1ba+_0x5ed24a-_0x2e3c16-0x7+_0x3056e2;_0x5c432a<0x1?(_0x23c641=_0x4fb28e-0x1,_0x5c432a+=daysInYear(_0x23c641)):_0x5c432a>_0x509ff9?(_0x23c641=_0x4fb28e+0x1,_0x5c432a-=daysInYear(_0x4fb28e)):_0x23c641=_0x4fb28e;const {month:_0x471f5f,day:_0x2a8bc9}=uncomputeOrdinal(_0x23c641,_0x5c432a);return{'year':_0x23c641,'month':_0x471f5f,'day':_0x2a8bc9,...timeObject(_0x46cdaa)};}function gregorianToOrdinal(_0x15d0fa){const {year:_0x337eb8,month:_0x4ed8af,day:_0x14016c}=_0x15d0fa;return{'year':_0x337eb8,'ordinal':computeOrdinal(_0x337eb8,_0x4ed8af,_0x14016c),...timeObject(_0x15d0fa)};}function ordinalToGregorian(_0x4e4c09){const {year:_0x9746a2,ordinal:_0x322a63}=_0x4e4c09,{month:_0x1e95c3,day:_0x569047}=uncomputeOrdinal(_0x9746a2,_0x322a63);return{'year':_0x9746a2,'month':_0x1e95c3,'day':_0x569047,...timeObject(_0x4e4c09)};}function usesLocalWeekValues(_0x94e5b8,_0x186e8a){if(!isUndefined(_0x94e5b8['localWeekday'])||!isUndefined(_0x94e5b8['localWeekNumber'])||!isUndefined(_0x94e5b8['localWeekYear'])){if(!isUndefined(_0x94e5b8['weekday'])||!isUndefined(_0x94e5b8['weekNumber'])||!isUndefined(_0x94e5b8['weekYear']))throw new ConflictingSpecificationError('Cannot\x20mix\x20locale-based\x20week\x20fields\x20with\x20ISO-based\x20week\x20fields');return isUndefined(_0x94e5b8['localWeekday'])||(_0x94e5b8['weekday']=_0x94e5b8['localWeekday']),isUndefined(_0x94e5b8['localWeekNumber'])||(_0x94e5b8['weekNumber']=_0x94e5b8['localWeekNumber']),isUndefined(_0x94e5b8['localWeekYear'])||(_0x94e5b8['weekYear']=_0x94e5b8['localWeekYear']),delete _0x94e5b8['localWeekday'],delete _0x94e5b8['localWeekNumber'],delete _0x94e5b8['localWeekYear'],{'minDaysInFirstWeek':_0x186e8a['getMinDaysInFirstWeek'](),'startOfWeek':_0x186e8a['getStartOfWeek']()};}return{'minDaysInFirstWeek':0x4,'startOfWeek':0x1};}function hasInvalidWeekData(_0x41dc65,_0x262728=0x4,_0x2fe965=0x1){const _0x59f36f=isInteger(_0x41dc65['weekYear']),_0x43ef4a=integerBetween(_0x41dc65['weekNumber'],0x1,weeksInWeekYear(_0x41dc65['weekYear'],_0x262728,_0x2fe965)),_0x29b2ed=integerBetween(_0x41dc65['weekday'],0x1,0x7);return _0x59f36f?_0x43ef4a?!_0x29b2ed&&unitOutOfRange('weekday',_0x41dc65['weekday']):unitOutOfRange('week',_0x41dc65['weekNumber']):unitOutOfRange('weekYear',_0x41dc65['weekYear']);}function hasInvalidOrdinalData(_0x2d3c45){const _0x346419=isInteger(_0x2d3c45['year']),_0x263d0b=integerBetween(_0x2d3c45['ordinal'],0x1,daysInYear(_0x2d3c45['year']));return _0x346419?!_0x263d0b&&unitOutOfRange('ordinal',_0x2d3c45['ordinal']):unitOutOfRange('year',_0x2d3c45['year']);}function hasInvalidGregorianData(_0x525b82){const _0x5dae25=isInteger(_0x525b82['year']),_0x1c65c2=integerBetween(_0x525b82['month'],0x1,0xc),_0x5c7dae=integerBetween(_0x525b82['day'],0x1,daysInMonth(_0x525b82['year'],_0x525b82['month']));return _0x5dae25?_0x1c65c2?!_0x5c7dae&&unitOutOfRange('day',_0x525b82['day']):unitOutOfRange('month',_0x525b82['month']):unitOutOfRange('year',_0x525b82['year']);}function hasInvalidTimeData(_0x392620){const {hour:_0x26d1a0,minute:_0x58384f,second:_0x396d64,millisecond:_0x1b41c4}=_0x392620,_0x5981f0=integerBetween(_0x26d1a0,0x0,0x17)||0x18===_0x26d1a0&&0x0===_0x58384f&&0x0===_0x396d64&&0x0===_0x1b41c4,_0x179a39=integerBetween(_0x58384f,0x0,0x3b),_0x18740c=integerBetween(_0x396d64,0x0,0x3b),_0x520bad=integerBetween(_0x1b41c4,0x0,0x3e7);return _0x5981f0?_0x179a39?_0x18740c?!_0x520bad&&unitOutOfRange('millisecond',_0x1b41c4):unitOutOfRange('second',_0x396d64):unitOutOfRange('minute',_0x58384f):unitOutOfRange('hour',_0x26d1a0);}function isUndefined(_0x2b2c47){return void 0x0===_0x2b2c47;}function isNumber(_0x335d24){return'number'==typeof _0x335d24;}function isInteger(_0x222b1c){return'number'==typeof _0x222b1c&&_0x222b1c%0x1==0x0;}function isString(_0x46830c){return'string'==typeof _0x46830c;}function isDate(_0x9a28ce){return'[object\x20Date]'===Object['prototype']['toString']['call'](_0x9a28ce);}function hasRelative(){try{return'undefined'!=typeof Intl&&!!Intl['RelativeTimeFormat'];}catch(_0x518bc9){return!0x1;}}function hasLocaleWeekInfo(){try{return'undefined'!=typeof Intl&&!!Intl['Locale']&&('weekInfo'in Intl['Locale']['prototype']||'getWeekInfo'in Intl['Locale']['prototype']);}catch(_0x45318e){return!0x1;}}function maybeArray(_0x1e6196){return Array['isArray'](_0x1e6196)?_0x1e6196:[_0x1e6196];}function bestBy(_0xb46359,_0x525d39,_0x2e7eeb){if(0x0!==_0xb46359['length'])return _0xb46359['reduce']((_0x37a9b3,_0x2d9aeb)=>{const _0x560927=[_0x525d39(_0x2d9aeb),_0x2d9aeb];return _0x37a9b3&&_0x2e7eeb(_0x37a9b3[0x0],_0x560927[0x0])===_0x37a9b3[0x0]?_0x37a9b3:_0x560927;},null)[0x1];}function pick$2(_0xf44fe5,_0x5293db){return _0x5293db['reduce']((_0x342937,_0x264a05)=>(_0x342937[_0x264a05]=_0xf44fe5[_0x264a05],_0x342937),{});}function hasOwnProperty(_0xbb8db9,_0x1cbda8){return Object['prototype']['hasOwnProperty']['call'](_0xbb8db9,_0x1cbda8);}function validateWeekSettings(_0x3199b9){if(null==_0x3199b9)return null;if('object'!=typeof _0x3199b9)throw new InvalidArgumentError('Week\x20settings\x20must\x20be\x20an\x20object');if(!integerBetween(_0x3199b9['firstDay'],0x1,0x7)||!integerBetween(_0x3199b9['minimalDays'],0x1,0x7)||!Array['isArray'](_0x3199b9['weekend'])||_0x3199b9['weekend']['some'](_0x567740=>!integerBetween(_0x567740,0x1,0x7)))throw new InvalidArgumentError('Invalid\x20week\x20settings');return{'firstDay':_0x3199b9['firstDay'],'minimalDays':_0x3199b9['minimalDays'],'weekend':Array['from'](_0x3199b9['weekend'])};}function integerBetween(_0x2231c8,_0x56f9cb,_0x33913a){return isInteger(_0x2231c8)&&_0x2231c8>=_0x56f9cb&&_0x2231c8<=_0x33913a;}function floorMod(_0x130ec8,_0x3d5094){return _0x130ec8-_0x3d5094*Math['floor'](_0x130ec8/_0x3d5094);}function padStart(_0x339093,_0x2905a9=0x2){let _0x32b34e;return _0x32b34e=_0x339093<0x0?'-'+(''+-_0x339093)['padStart'](_0x2905a9,'0'):(''+_0x339093)['padStart'](_0x2905a9,'0'),_0x32b34e;}function parseInteger(_0x5c7f35){return isUndefined(_0x5c7f35)||null===_0x5c7f35||''===_0x5c7f35?void 0x0:parseInt(_0x5c7f35,0xa);}function parseFloating(_0x3c6bdf){return isUndefined(_0x3c6bdf)||null===_0x3c6bdf||''===_0x3c6bdf?void 0x0:parseFloat(_0x3c6bdf);}function parseMillis(_0x4fea80){if(!isUndefined(_0x4fea80)&&null!==_0x4fea80&&''!==_0x4fea80){const _0x37a957=0x3e8*parseFloat('0.'+_0x4fea80);return Math['floor'](_0x37a957);}}function roundTo(_0x13e596,_0x40ed3d,_0x2bdd5e=!0x1){const _0x2c785b=0xa**_0x40ed3d;return(_0x2bdd5e?Math['trunc']:Math['round'])(_0x13e596*_0x2c785b)/_0x2c785b;}function isLeapYear(_0x2c5550){return _0x2c5550%0x4==0x0&&(_0x2c5550%0x64!=0x0||_0x2c5550%0x190==0x0);}function daysInYear(_0x588aff){return isLeapYear(_0x588aff)?0x16e:0x16d;}function daysInMonth(_0x2fa157,_0x2f31f6){const _0x26fa18=floorMod(_0x2f31f6-0x1,0xc)+0x1;return 0x2===_0x26fa18?isLeapYear(_0x2fa157+(_0x2f31f6-_0x26fa18)/0xc)?0x1d:0x1c:[0x1f,null,0x1f,0x1e,0x1f,0x1e,0x1f,0x1f,0x1e,0x1f,0x1e,0x1f][_0x26fa18-0x1];}function objToLocalTS(_0x3e7ab1){let _0x2703c9=Date['UTC'](_0x3e7ab1['year'],_0x3e7ab1['month']-0x1,_0x3e7ab1['day'],_0x3e7ab1['hour'],_0x3e7ab1['minute'],_0x3e7ab1['second'],_0x3e7ab1['millisecond']);return _0x3e7ab1['year']<0x64&&_0x3e7ab1['year']>=0x0&&(_0x2703c9=new Date(_0x2703c9),_0x2703c9['setUTCFullYear'](_0x3e7ab1['year'],_0x3e7ab1['month']-0x1,_0x3e7ab1['day'])),+_0x2703c9;}function firstWeekOffset(_0x2b9e37,_0x3f1a8f,_0xfcea2){return-isoWeekdayToLocal(dayOfWeek(_0x2b9e37,0x1,_0x3f1a8f),_0xfcea2)+_0x3f1a8f-0x1;}function weeksInWeekYear(_0x31b095,_0x5aab5e=0x4,_0x762e50=0x1){const _0x4e25e5=firstWeekOffset(_0x31b095,_0x5aab5e,_0x762e50),_0x5b8ed5=firstWeekOffset(_0x31b095+0x1,_0x5aab5e,_0x762e50);return(daysInYear(_0x31b095)-_0x4e25e5+_0x5b8ed5)/0x7;}function untruncateYear(_0x5ab37e){return _0x5ab37e>0x63?_0x5ab37e:_0x5ab37e>Settings['twoDigitCutoffYear']?0x76c+_0x5ab37e:0x7d0+_0x5ab37e;}function parseZoneInfo(_0x5ba4fc,_0x40b25e,_0x140103,_0x58ef3f=null){const _0x5cdb97=new Date(_0x5ba4fc),_0x29abc4={'hourCycle':'h23','year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit'};_0x58ef3f&&(_0x29abc4['timeZone']=_0x58ef3f);const _0x3085ae={'timeZoneName':_0x40b25e,..._0x29abc4},_0x79714c=new Intl['DateTimeFormat'](_0x140103,_0x3085ae)['formatToParts'](_0x5cdb97)['find'](_0x4cb034=>'timezonename'===_0x4cb034['type']['toLowerCase']());return _0x79714c?_0x79714c['value']:null;}function signedOffset(_0x5c9d44,_0x24c266){let _0x516841=parseInt(_0x5c9d44,0xa);Number['isNaN'](_0x516841)&&(_0x516841=0x0);const _0x345b9b=parseInt(_0x24c266,0xa)||0x0;return 0x3c*_0x516841+(_0x516841<0x0||Object['is'](_0x516841,-0x0)?-_0x345b9b:_0x345b9b);}function asNumber$1(_0x3b21be){const _0x2d510e=Number(_0x3b21be);if('boolean'==typeof _0x3b21be||''===_0x3b21be||Number['isNaN'](_0x2d510e))throw new InvalidArgumentError('Invalid\x20unit\x20value\x20'+_0x3b21be);return _0x2d510e;}function normalizeObject(_0x4ce0c8,_0x502cf8){const _0x1ec656={};for(const _0x3746ab in _0x4ce0c8)if(hasOwnProperty(_0x4ce0c8,_0x3746ab)){const _0x50495d=_0x4ce0c8[_0x3746ab];if(null==_0x50495d)continue;_0x1ec656[_0x502cf8(_0x3746ab)]=asNumber$1(_0x50495d);}return _0x1ec656;}function formatOffset(_0x4c69c9,_0x2c3a89){const _0x476da3=Math['trunc'](Math['abs'](_0x4c69c9/0x3c)),_0xbbe74=Math['trunc'](Math['abs'](_0x4c69c9%0x3c)),_0x399579=_0x4c69c9>=0x0?'+':'-';switch(_0x2c3a89){case'short':return''+_0x399579+padStart(_0x476da3,0x2)+':'+padStart(_0xbbe74,0x2);case'narrow':return''+_0x399579+_0x476da3+(_0xbbe74>0x0?':'+_0xbbe74:'');case'techie':return''+_0x399579+padStart(_0x476da3,0x2)+padStart(_0xbbe74,0x2);default:throw new RangeError('Value\x20format\x20'+_0x2c3a89+'\x20is\x20out\x20of\x20range\x20for\x20property\x20format');}}function timeObject(_0x1f1e23){return pick$2(_0x1f1e23,['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(_0x4e664b){switch(_0x4e664b){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(_0x3c0e1b){switch(_0x3c0e1b){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(_0xe3ddb7){switch(_0xe3ddb7){case'narrow':return[...erasNarrow];case'short':return[...erasShort];case'long':return[...erasLong];default:return null;}}function meridiemForDateTime(_0x463ea){return meridiems[_0x463ea['hour']<0xc?0x0:0x1];}function weekdayForDateTime(_0x4c4a84,_0x26c195){return weekdays(_0x26c195)[_0x4c4a84['weekday']-0x1];}function monthForDateTime(_0xbe36f4,_0x5919f7){return months(_0x5919f7)[_0xbe36f4['month']-0x1];}function eraForDateTime(_0x23f577,_0x2f8a57){return eras(_0x2f8a57)[_0x23f577['year']<0x0?0x0:0x1];}function formatRelativeTime(_0x4893f1,_0x4b79e7,_0x2d4e4d='always',_0x1ff6e0=!0x1){const _0x1fdac9={'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.']},_0x5ce364=-0x1===['hours','minutes','seconds']['indexOf'](_0x4893f1);if('auto'===_0x2d4e4d&&_0x5ce364){const _0x19ea02='days'===_0x4893f1;switch(_0x4b79e7){case 0x1:return _0x19ea02?'tomorrow':'next\x20'+_0x1fdac9[_0x4893f1][0x0];case-0x1:return _0x19ea02?'yesterday':'last\x20'+_0x1fdac9[_0x4893f1][0x0];case 0x0:return _0x19ea02?'today':'this\x20'+_0x1fdac9[_0x4893f1][0x0];}}const _0x3ebd7a=Object['is'](_0x4b79e7,-0x0)||_0x4b79e7<0x0,_0x5068dc=Math['abs'](_0x4b79e7),_0x5aec25=0x1===_0x5068dc,_0x54ba15=_0x1fdac9[_0x4893f1],_0x4f2393=_0x1ff6e0?_0x5aec25?_0x54ba15[0x1]:_0x54ba15[0x2]||_0x54ba15[0x1]:_0x5aec25?_0x1fdac9[_0x4893f1][0x0]:_0x4893f1;return _0x3ebd7a?_0x5068dc+'\x20'+_0x4f2393+'\x20ago':'in\x20'+_0x5068dc+'\x20'+_0x4f2393;}function stringifyTokens(_0x4960c7,_0xfb279b){let _0x2dca3f='';for(const _0x2f77d9 of _0x4960c7)_0x2f77d9['literal']?_0x2dca3f+=_0x2f77d9['val']:_0x2dca3f+=_0xfb279b(_0x2f77d9['val']);return _0x2dca3f;}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'](_0x23568b,_0x2ad2f3={}){return new Formatter(_0x23568b,_0x2ad2f3);}static['parseFormat'](_0x335ed7){let _0xd421ea=null,_0xdad3a2='',_0x4569ee=!0x1;const _0x4bb689=[];for(let _0xf7b4fb=0x0;_0xf7b4fb<_0x335ed7['length'];_0xf7b4fb++){const _0x2049bf=_0x335ed7['charAt'](_0xf7b4fb);'\x27'===_0x2049bf?(_0xdad3a2['length']>0x0&&_0x4bb689['push']({'literal':_0x4569ee||/^\s+$/['test'](_0xdad3a2),'val':_0xdad3a2}),_0xd421ea=null,_0xdad3a2='',_0x4569ee=!_0x4569ee):_0x4569ee||_0x2049bf===_0xd421ea?_0xdad3a2+=_0x2049bf:(_0xdad3a2['length']>0x0&&_0x4bb689['push']({'literal':/^\s+$/['test'](_0xdad3a2),'val':_0xdad3a2}),_0xdad3a2=_0x2049bf,_0xd421ea=_0x2049bf);}return _0xdad3a2['length']>0x0&&_0x4bb689['push']({'literal':_0x4569ee||/^\s+$/['test'](_0xdad3a2),'val':_0xdad3a2}),_0x4bb689;}static['macroTokenToFormatOpts'](_0x2e20a7){return macroTokenToFormatOpts[_0x2e20a7];}constructor(_0x4ea46d,_0x56afc1){this['opts']=_0x56afc1,this['loc']=_0x4ea46d,this['systemLoc']=null;}['formatWithSystemDefault'](_0x5a0ed0,_0x322454){return null===this['systemLoc']&&(this['systemLoc']=this['loc']['redefaultToSystem']()),this['systemLoc']['dtFormatter'](_0x5a0ed0,{...this['opts'],..._0x322454})['format']();}['dtFormatter'](_0x32235e,_0x21439b={}){return this['loc']['dtFormatter'](_0x32235e,{...this['opts'],..._0x21439b});}['formatDateTime'](_0x8c9100,_0x1dcf3a){return this['dtFormatter'](_0x8c9100,_0x1dcf3a)['format']();}['formatDateTimeParts'](_0x13f216,_0x8a417a){return this['dtFormatter'](_0x13f216,_0x8a417a)['formatToParts']();}['formatInterval'](_0x37f89c,_0x335038){return this['dtFormatter'](_0x37f89c['start'],_0x335038)['dtf']['formatRange'](_0x37f89c['start']['toJSDate'](),_0x37f89c['end']['toJSDate']());}['resolvedOptions'](_0x1a2c45,_0x171335){return this['dtFormatter'](_0x1a2c45,_0x171335)['resolvedOptions']();}['num'](_0x965faf,_0x76ffc7=0x0){if(this['opts']['forceSimple'])return padStart(_0x965faf,_0x76ffc7);const _0x6f1834={...this['opts']};return _0x76ffc7>0x0&&(_0x6f1834['padTo']=_0x76ffc7),this['loc']['numberFormatter'](_0x6f1834)['format'](_0x965faf);}['formatDateTimeFromString'](_0x3d8aec,_0x308dfd){const _0x3ae0d5='en'===this['loc']['listingMode'](),_0x5d2f23=this['loc']['outputCalendar']&&'gregory'!==this['loc']['outputCalendar'],_0x108ec0=(_0x281a37,_0x595dec)=>this['loc']['extract'](_0x3d8aec,_0x281a37,_0x595dec),_0x363961=_0x35c9d3=>_0x3d8aec['isOffsetFixed']&&0x0===_0x3d8aec['offset']&&_0x35c9d3['allowZ']?'Z':_0x3d8aec['isValid']?_0x3d8aec['zone']['formatOffset'](_0x3d8aec['ts'],_0x35c9d3['format']):'',_0x5e2c80=(_0x4e949c,_0x2a9c39)=>_0x3ae0d5?monthForDateTime(_0x3d8aec,_0x4e949c):_0x108ec0(_0x2a9c39?{'month':_0x4e949c}:{'month':_0x4e949c,'day':'numeric'},'month'),_0x49d66f=(_0x17749c,_0x3da18e)=>_0x3ae0d5?weekdayForDateTime(_0x3d8aec,_0x17749c):_0x108ec0(_0x3da18e?{'weekday':_0x17749c}:{'weekday':_0x17749c,'month':'long','day':'numeric'},'weekday'),_0x167a46=_0x5da7e7=>{const _0x31fcb8=Formatter['macroTokenToFormatOpts'](_0x5da7e7);return _0x31fcb8?this['formatWithSystemDefault'](_0x3d8aec,_0x31fcb8):_0x5da7e7;},_0x4a0625=_0x56c7a8=>_0x3ae0d5?eraForDateTime(_0x3d8aec,_0x56c7a8):_0x108ec0({'era':_0x56c7a8},'era');return stringifyTokens(Formatter['parseFormat'](_0x308dfd),_0x32f5dc=>{switch(_0x32f5dc){case'S':return this['num'](_0x3d8aec['millisecond']);case'u':case'SSS':return this['num'](_0x3d8aec['millisecond'],0x3);case's':return this['num'](_0x3d8aec['second']);case'ss':return this['num'](_0x3d8aec['second'],0x2);case'uu':return this['num'](Math['floor'](_0x3d8aec['millisecond']/0xa),0x2);case'uuu':return this['num'](Math['floor'](_0x3d8aec['millisecond']/0x64));case'm':return this['num'](_0x3d8aec['minute']);case'mm':return this['num'](_0x3d8aec['minute'],0x2);case'h':return this['num'](_0x3d8aec['hour']%0xc==0x0?0xc:_0x3d8aec['hour']%0xc);case'hh':return this['num'](_0x3d8aec['hour']%0xc==0x0?0xc:_0x3d8aec['hour']%0xc,0x2);case'H':return this['num'](_0x3d8aec['hour']);case'HH':return this['num'](_0x3d8aec['hour'],0x2);case'Z':return _0x363961({'format':'narrow','allowZ':this['opts']['allowZ']});case'ZZ':return _0x363961({'format':'short','allowZ':this['opts']['allowZ']});case'ZZZ':return _0x363961({'format':'techie','allowZ':this['opts']['allowZ']});case'ZZZZ':return _0x3d8aec['zone']['offsetName'](_0x3d8aec['ts'],{'format':'short','locale':this['loc']['locale']});case'ZZZZZ':return _0x3d8aec['zone']['offsetName'](_0x3d8aec['ts'],{'format':'long','locale':this['loc']['locale']});case'z':return _0x3d8aec['zoneName'];case'a':return _0x3ae0d5?meridiemForDateTime(_0x3d8aec):_0x108ec0({'hour':'numeric','hourCycle':'h12'},'dayperiod');case'd':return _0x5d2f23?_0x108ec0({'day':'numeric'},'day'):this['num'](_0x3d8aec['day']);case'dd':return _0x5d2f23?_0x108ec0({'day':'2-digit'},'day'):this['num'](_0x3d8aec['day'],0x2);case'c':case'E':return this['num'](_0x3d8aec['weekday']);case'ccc':return _0x49d66f('short',!0x0);case'cccc':return _0x49d66f('long',!0x0);case'ccccc':return _0x49d66f('narrow',!0x0);case'EEE':return _0x49d66f('short',!0x1);case'EEEE':return _0x49d66f('long',!0x1);case'EEEEE':return _0x49d66f('narrow',!0x1);case'L':return _0x5d2f23?_0x108ec0({'month':'numeric','day':'numeric'},'month'):this['num'](_0x3d8aec['month']);case'LL':return _0x5d2f23?_0x108ec0({'month':'2-digit','day':'numeric'},'month'):this['num'](_0x3d8aec['month'],0x2);case'LLL':return _0x5e2c80('short',!0x0);case'LLLL':return _0x5e2c80('long',!0x0);case'LLLLL':return _0x5e2c80('narrow',!0x0);case'M':return _0x5d2f23?_0x108ec0({'month':'numeric'},'month'):this['num'](_0x3d8aec['month']);case'MM':return _0x5d2f23?_0x108ec0({'month':'2-digit'},'month'):this['num'](_0x3d8aec['month'],0x2);case'MMM':return _0x5e2c80('short',!0x1);case'MMMM':return _0x5e2c80('long',!0x1);case'MMMMM':return _0x5e2c80('narrow',!0x1);case'y':return _0x5d2f23?_0x108ec0({'year':'numeric'},'year'):this['num'](_0x3d8aec['year']);case'yy':return _0x5d2f23?_0x108ec0({'year':'2-digit'},'year'):this['num'](_0x3d8aec['year']['toString']()['slice'](-0x2),0x2);case'yyyy':return _0x5d2f23?_0x108ec0({'year':'numeric'},'year'):this['num'](_0x3d8aec['year'],0x4);case'yyyyyy':return _0x5d2f23?_0x108ec0({'year':'numeric'},'year'):this['num'](_0x3d8aec['year'],0x6);case'G':return _0x4a0625('short');case'GG':return _0x4a0625('long');case'GGGGG':return _0x4a0625('narrow');case'kk':return this['num'](_0x3d8aec['weekYear']['toString']()['slice'](-0x2),0x2);case'kkkk':return this['num'](_0x3d8aec['weekYear'],0x4);case'W':return this['num'](_0x3d8aec['weekNumber']);case'WW':return this['num'](_0x3d8aec['weekNumber'],0x2);case'n':return this['num'](_0x3d8aec['localWeekNumber']);case'nn':return this['num'](_0x3d8aec['localWeekNumber'],0x2);case'ii':return this['num'](_0x3d8aec['localWeekYear']['toString']()['slice'](-0x2),0x2);case'iiii':return this['num'](_0x3d8aec['localWeekYear'],0x4);case'o':return this['num'](_0x3d8aec['ordinal']);case'ooo':return this['num'](_0x3d8aec['ordinal'],0x3);case'q':return this['num'](_0x3d8aec['quarter']);case'qq':return this['num'](_0x3d8aec['quarter'],0x2);case'X':return this['num'](Math['floor'](_0x3d8aec['ts']/0x3e8));case'x':return this['num'](_0x3d8aec['ts']);default:return _0x167a46(_0x32f5dc);}});}['formatDurationFromString'](_0x51389a,_0x3f0fcd){const _0x10a1f6=_0x28d18e=>{switch(_0x28d18e[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;}},_0x357ad7=Formatter['parseFormat'](_0x3f0fcd),_0x3333d2=_0x357ad7['reduce']((_0x260240,{literal:_0x12c764,val:_0x3e3d0a})=>_0x12c764?_0x260240:_0x260240['concat'](_0x3e3d0a),[]),_0x4cdd0a=_0x51389a['shiftTo'](..._0x3333d2['map'](_0x10a1f6)['filter'](t=>t));return stringifyTokens(_0x357ad7,(_0x3b6c4e=>_0xb0e014=>{const _0x374462=_0x10a1f6(_0xb0e014);return _0x374462?this['num'](_0x3b6c4e['get'](_0x374462),_0xb0e014['length']):_0xb0e014;})(_0x4cdd0a));}}const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(..._0x10a576){const _0x33da4b=_0x10a576['reduce']((_0x609dd,_0x2461d9)=>_0x609dd+_0x2461d9['source'],'');return RegExp('^'+_0x33da4b+'$');}function combineExtractors(..._0xe02c07){return _0x34ce53=>_0xe02c07['reduce'](([_0x5b2c3a,_0x5e7126,_0x28292e],_0x1562a7)=>{const [_0x41d0ae,_0x1e296a,_0x36a383]=_0x1562a7(_0x34ce53,_0x28292e);return[{..._0x5b2c3a,..._0x41d0ae},_0x1e296a||_0x5e7126,_0x36a383];},[{},null,0x1])['slice'](0x0,0x2);}function parse$1(_0x243d08,..._0x147519){if(null==_0x243d08)return[null,null];for(const [_0x7cdbc7,_0x1c5d1d]of _0x147519){const _0x7f206e=_0x7cdbc7['exec'](_0x243d08);if(_0x7f206e)return _0x1c5d1d(_0x7f206e);}return[null,null];}function simpleParse(..._0x201a53){return(_0x3abbb2,_0x237d35)=>{const _0x5c546d={};let _0x46b063;for(_0x46b063=0x0;_0x46b063<_0x201a53['length'];_0x46b063++)_0x5c546d[_0x201a53[_0x46b063]]=parseInteger(_0x3abbb2[_0x237d35+_0x46b063]);return[_0x5c546d,null,_0x237d35+_0x46b063];};}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(_0x410b97,_0x182515,_0x3e6d74){const _0x4f8a8f=_0x410b97[_0x182515];return isUndefined(_0x4f8a8f)?_0x3e6d74:parseInteger(_0x4f8a8f);}function extractISOYmd(_0x1d8e99,_0x5cdd68){return[{'year':int(_0x1d8e99,_0x5cdd68),'month':int(_0x1d8e99,_0x5cdd68+0x1,0x1),'day':int(_0x1d8e99,_0x5cdd68+0x2,0x1)},null,_0x5cdd68+0x3];}function extractISOTime(_0x3b8b79,_0x5d939d){return[{'hours':int(_0x3b8b79,_0x5d939d,0x0),'minutes':int(_0x3b8b79,_0x5d939d+0x1,0x0),'seconds':int(_0x3b8b79,_0x5d939d+0x2,0x0),'milliseconds':parseMillis(_0x3b8b79[_0x5d939d+0x3])},null,_0x5d939d+0x4];}function extractISOOffset(_0x119993,_0x3511b8){const _0x2c43c6=!_0x119993[_0x3511b8]&&!_0x119993[_0x3511b8+0x1],_0x345c6b=signedOffset(_0x119993[_0x3511b8+0x1],_0x119993[_0x3511b8+0x2]);return[{},_0x2c43c6?null:FixedOffsetZone['instance'](_0x345c6b),_0x3511b8+0x3];}function extractIANAZone(_0x790db1,_0x4b267b){return[{},_0x790db1[_0x4b267b]?IANAZone['create'](_0x790db1[_0x4b267b]):null,_0x4b267b+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(_0x5607b5){const [_0x182362,_0x1b3713,_0x30e9ca,_0x22483b,_0x24259a,_0x369dab,_0x254b52,_0x37d162,_0x29c6e8]=_0x5607b5,_0x189e5d='-'===_0x182362[0x0],_0x1ac007=_0x37d162&&'-'===_0x37d162[0x0],_0x118db5=(_0x207aed,_0x3c4e59=!0x1)=>void 0x0!==_0x207aed&&(_0x3c4e59||_0x207aed&&_0x189e5d)?-_0x207aed:_0x207aed;return[{'years':_0x118db5(parseFloating(_0x1b3713)),'months':_0x118db5(parseFloating(_0x30e9ca)),'weeks':_0x118db5(parseFloating(_0x22483b)),'days':_0x118db5(parseFloating(_0x24259a)),'hours':_0x118db5(parseFloating(_0x369dab)),'minutes':_0x118db5(parseFloating(_0x254b52)),'seconds':_0x118db5(parseFloating(_0x37d162),'-0'===_0x37d162),'milliseconds':_0x118db5(parseMillis(_0x29c6e8),_0x1ac007)}];}const obsOffsets={'GMT':0x0,'EDT':-0xf0,'EST':-0x12c,'CDT':-0x12c,'CST':-0x168,'MDT':-0x168,'MST':-0x1a4,'PDT':-0x1a4,'PST':-0x1e0};function fromStrings(_0x22cb0d,_0x4f5377,_0x3e64ee,_0x5ca52f,_0x53eb44,_0x2448f2,_0x3d51ae){const _0xe852ca={'year':0x2===_0x4f5377['length']?untruncateYear(parseInteger(_0x4f5377)):parseInteger(_0x4f5377),'month':monthsShort['indexOf'](_0x3e64ee)+0x1,'day':parseInteger(_0x5ca52f),'hour':parseInteger(_0x53eb44),'minute':parseInteger(_0x2448f2)};return _0x3d51ae&&(_0xe852ca['second']=parseInteger(_0x3d51ae)),_0x22cb0d&&(_0xe852ca['weekday']=_0x22cb0d['length']>0x3?weekdaysLong['indexOf'](_0x22cb0d)+0x1:weekdaysShort['indexOf'](_0x22cb0d)+0x1),_0xe852ca;}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(_0x54b580){const [,_0x51403a,_0x2aabaa,_0x1647e9,_0x50705c,_0x161585,_0x3e484f,_0x2620b5,_0x1049d4,_0x2ba799,_0x188e15,_0x395cf3]=_0x54b580,_0xd1ddf5=fromStrings(_0x51403a,_0x50705c,_0x1647e9,_0x2aabaa,_0x161585,_0x3e484f,_0x2620b5);let _0x55f1f4;return _0x55f1f4=_0x1049d4?obsOffsets[_0x1049d4]:_0x2ba799?0x0:signedOffset(_0x188e15,_0x395cf3),[_0xd1ddf5,new FixedOffsetZone(_0x55f1f4)];}function preprocessRFC2822(_0x416364){return _0x416364['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(_0x8fc3b8){const [,_0x154999,_0x4ed9c1,_0x2bc747,_0x1e7521,_0x3e8472,_0x49ea6d,_0x4faadc]=_0x8fc3b8;return[fromStrings(_0x154999,_0x1e7521,_0x2bc747,_0x4ed9c1,_0x3e8472,_0x49ea6d,_0x4faadc),FixedOffsetZone['utcInstance']];}function extractASCII(_0x525e52){const [,_0x4d2acd,_0x51dd64,_0x12a4d1,_0x5daa41,_0x350162,_0x46036a,_0x4980cd]=_0x525e52;return[fromStrings(_0x4d2acd,_0x4980cd,_0x51dd64,_0x12a4d1,_0x5daa41,_0x350162,_0x46036a),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(_0x56dc21){return parse$1(_0x56dc21,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset]);}function parseRFC2822Date(_0x334ba6){return parse$1(preprocessRFC2822(_0x334ba6),[rfc2822,extractRFC2822]);}function parseHTTPDate(_0x2edd61){return parse$1(_0x2edd61,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII]);}function parseISODuration(_0x4f26e0){return parse$1(_0x4f26e0,[isoDuration,extractISODuration]);}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(_0x3768d3){return parse$1(_0x3768d3,[isoTimeOnly,extractISOTimeOnly]);}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(_0x275e32){return parse$1(_0x275e32,[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(_0xf4842e,_0x48a8da,_0x4771a0=!0x1){const _0x6835f8={'values':_0x4771a0?_0x48a8da['values']:{..._0xf4842e['values'],..._0x48a8da['values']||{}},'loc':_0xf4842e['loc']['clone'](_0x48a8da['loc']),'conversionAccuracy':_0x48a8da['conversionAccuracy']||_0xf4842e['conversionAccuracy'],'matrix':_0x48a8da['matrix']||_0xf4842e['matrix']};return new Duration(_0x6835f8);}function durationToMillis(_0x315677,_0x1bdc4e){let _0x49d3de=_0x1bdc4e['milliseconds']??0x0;for(const _0x5ba88d of reverseUnits['slice'](0x1))_0x1bdc4e[_0x5ba88d]&&(_0x49d3de+=_0x1bdc4e[_0x5ba88d]*_0x315677[_0x5ba88d]['milliseconds']);return _0x49d3de;}function normalizeValues(_0x47f7dc,_0x31bed7){const _0x21ff12=durationToMillis(_0x47f7dc,_0x31bed7)<0x0?-0x1:0x1;orderedUnits$1['reduceRight']((_0x37764c,_0x10614c)=>{if(isUndefined(_0x31bed7[_0x10614c]))return _0x37764c;if(_0x37764c){const _0x14b80e=_0x31bed7[_0x37764c]*_0x21ff12,_0x3dddbc=_0x47f7dc[_0x10614c][_0x37764c],_0x3af24a=Math['floor'](_0x14b80e/_0x3dddbc);_0x31bed7[_0x10614c]+=_0x3af24a*_0x21ff12,_0x31bed7[_0x37764c]-=_0x3af24a*_0x3dddbc*_0x21ff12;}return _0x10614c;},null),orderedUnits$1['reduce']((_0x113eda,_0x4db623)=>{if(isUndefined(_0x31bed7[_0x4db623]))return _0x113eda;if(_0x113eda){const _0x48bb54=_0x31bed7[_0x113eda]%0x1;_0x31bed7[_0x113eda]-=_0x48bb54,_0x31bed7[_0x4db623]+=_0x48bb54*_0x47f7dc[_0x113eda][_0x4db623];}return _0x4db623;},null);}function removeZeroes(_0x2abb6b){const _0x5d3e7b={};for(const [_0x3c5b4b,_0x249ae1]of Object['entries'](_0x2abb6b))0x0!==_0x249ae1&&(_0x5d3e7b[_0x3c5b4b]=_0x249ae1);return _0x5d3e7b;}class Duration{constructor(_0x5e4580){const _0x34b578='longterm'===_0x5e4580['conversionAccuracy']||!0x1;let _0x1e0764=_0x34b578?accurateMatrix:casualMatrix;_0x5e4580['matrix']&&(_0x1e0764=_0x5e4580['matrix']),this['values']=_0x5e4580['values'],this['loc']=_0x5e4580['loc']||Locale['create'](),this['conversionAccuracy']=_0x34b578?'longterm':'casual',this['invalid']=_0x5e4580['invalid']||null,this['matrix']=_0x1e0764,this['isLuxonDuration']=!0x0;}static['fromMillis'](_0x2555f0,_0x510577){return Duration['fromObject']({'milliseconds':_0x2555f0},_0x510577);}static['fromObject'](_0xf80f29,_0x3a9556={}){if(null==_0xf80f29||'object'!=typeof _0xf80f29)throw new InvalidArgumentError('Duration.fromObject:\x20argument\x20expected\x20to\x20be\x20an\x20object,\x20got\x20'+(null===_0xf80f29?'null':typeof _0xf80f29));return new Duration({'values':normalizeObject(_0xf80f29,Duration['normalizeUnit']),'loc':Locale['fromObject'](_0x3a9556),'conversionAccuracy':_0x3a9556['conversionAccuracy'],'matrix':_0x3a9556['matrix']});}static['fromDurationLike'](_0x1cc1ad){if(isNumber(_0x1cc1ad))return Duration['fromMillis'](_0x1cc1ad);if(Duration['isDuration'](_0x1cc1ad))return _0x1cc1ad;if('object'==typeof _0x1cc1ad)return Duration['fromObject'](_0x1cc1ad);throw new InvalidArgumentError('Unknown\x20duration\x20argument\x20'+_0x1cc1ad+'\x20of\x20type\x20'+typeof _0x1cc1ad);}static['fromISO'](_0x3f0fd7,_0x1b2466){const [_0x98f37e]=parseISODuration(_0x3f0fd7);return _0x98f37e?Duration['fromObject'](_0x98f37e,_0x1b2466):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0x3f0fd7+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['fromISOTime'](_0x1317be,_0x1e17e4){const [_0x3e3c56]=parseISOTimeOnly(_0x1317be);return _0x3e3c56?Duration['fromObject'](_0x3e3c56,_0x1e17e4):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0x1317be+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['invalid'](_0x19d69f,_0x538df5=null){if(!_0x19d69f)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20Duration\x20is\x20invalid');const _0x4f67bb=_0x19d69f instanceof Invalid?_0x19d69f:new Invalid(_0x19d69f,_0x538df5);if(Settings['throwOnInvalid'])throw new InvalidDurationError(_0x4f67bb);return new Duration({'invalid':_0x4f67bb});}static['normalizeUnit'](_0x30b229){const _0x5c3c45={'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'}[_0x30b229?_0x30b229['toLowerCase']():_0x30b229];if(!_0x5c3c45)throw new InvalidUnitError(_0x30b229);return _0x5c3c45;}static['isDuration'](_0x370244){return _0x370244&&_0x370244['isLuxonDuration']||!0x1;}get['locale'](){return this['isValid']?this['loc']['locale']:null;}get['numberingSystem'](){return this['isValid']?this['loc']['numberingSystem']:null;}['toFormat'](_0x3576bb,_0x2e2f3f={}){const _0xdf7ae9={..._0x2e2f3f,'floor':!0x1!==_0x2e2f3f['round']&&!0x1!==_0x2e2f3f['floor']};return this['isValid']?Formatter['create'](this['loc'],_0xdf7ae9)['formatDurationFromString'](this,_0x3576bb):INVALID$2;}['toHuman'](_0x49fd27={}){if(!this['isValid'])return INVALID$2;const _0x5cd3be=orderedUnits$1['map'](_0x413654=>{const _0x1318be=this['values'][_0x413654];return isUndefined(_0x1318be)?null:this['loc']['numberFormatter']({'style':'unit','unitDisplay':'long',..._0x49fd27,'unit':_0x413654['slice'](0x0,-0x1)})['format'](_0x1318be);})['filter'](_0x149d50=>_0x149d50);return this['loc']['listFormatter']({'type':'conjunction','style':_0x49fd27['listStyle']||'narrow',..._0x49fd27})['format'](_0x5cd3be);}['toObject'](){return this['isValid']?{...this['values']}:{};}['toISO'](){if(!this['isValid'])return null;let _0x48a7f3='P';return 0x0!==this['years']&&(_0x48a7f3+=this['years']+'Y'),0x0===this['months']&&0x0===this['quarters']||(_0x48a7f3+=this['months']+0x3*this['quarters']+'M'),0x0!==this['weeks']&&(_0x48a7f3+=this['weeks']+'W'),0x0!==this['days']&&(_0x48a7f3+=this['days']+'D'),0x0===this['hours']&&0x0===this['minutes']&&0x0===this['seconds']&&0x0===this['milliseconds']||(_0x48a7f3+='T'),0x0!==this['hours']&&(_0x48a7f3+=this['hours']+'H'),0x0!==this['minutes']&&(_0x48a7f3+=this['minutes']+'M'),0x0===this['seconds']&&0x0===this['milliseconds']||(_0x48a7f3+=roundTo(this['seconds']+this['milliseconds']/0x3e8,0x3)+'S'),'P'===_0x48a7f3&&(_0x48a7f3+='T0S'),_0x48a7f3;}['toISOTime'](_0x466cbf={}){if(!this['isValid'])return null;const _0x30be21=this['toMillis']();if(_0x30be21<0x0||_0x30be21>=0x5265c00)return null;return _0x466cbf={'suppressMilliseconds':!0x1,'suppressSeconds':!0x1,'includePrefix':!0x1,'format':'extended',..._0x466cbf,'includeOffset':!0x1},DateTime['fromMillis'](_0x30be21,{'zone':'UTC'})['toISOTime'](_0x466cbf);}['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'](_0x47f3b2){if(!this['isValid'])return this;const _0xde9fa6=Duration['fromDurationLike'](_0x47f3b2),_0x25f549={};for(const _0x38399a of orderedUnits$1)(hasOwnProperty(_0xde9fa6['values'],_0x38399a)||hasOwnProperty(this['values'],_0x38399a))&&(_0x25f549[_0x38399a]=_0xde9fa6['get'](_0x38399a)+this['get'](_0x38399a));return clone$1(this,{'values':_0x25f549},!0x0);}['minus'](_0x4f7f8f){if(!this['isValid'])return this;const _0x5436ab=Duration['fromDurationLike'](_0x4f7f8f);return this['plus'](_0x5436ab['negate']());}['mapUnits'](_0x33366d){if(!this['isValid'])return this;const _0x11e109={};for(const _0x214e12 of Object['keys'](this['values']))_0x11e109[_0x214e12]=asNumber$1(_0x33366d(this['values'][_0x214e12],_0x214e12));return clone$1(this,{'values':_0x11e109},!0x0);}['get'](_0x44e7b0){return this[Duration['normalizeUnit'](_0x44e7b0)];}['set'](_0x4740b4){if(!this['isValid'])return this;return clone$1(this,{'values':{...this['values'],...normalizeObject(_0x4740b4,Duration['normalizeUnit'])}});}['reconfigure']({locale:_0x34b460,numberingSystem:_0x90d6db,conversionAccuracy:_0x11f464,matrix:_0x323108}={}){return clone$1(this,{'loc':this['loc']['clone']({'locale':_0x34b460,'numberingSystem':_0x90d6db}),'matrix':_0x323108,'conversionAccuracy':_0x11f464});}['as'](_0x880711){return this['isValid']?this['shiftTo'](_0x880711)['get'](_0x880711):NaN;}['normalize'](){if(!this['isValid'])return this;const _0xf9daa=this['toObject']();return normalizeValues(this['matrix'],_0xf9daa),clone$1(this,{'values':_0xf9daa},!0x0);}['rescale'](){if(!this['isValid'])return this;return clone$1(this,{'values':removeZeroes(this['normalize']()['shiftToAll']()['toObject']())},!0x0);}['shiftTo'](..._0x58f1ed){if(!this['isValid'])return this;if(0x0===_0x58f1ed['length'])return this;_0x58f1ed=_0x58f1ed['map'](_0x1624bf=>Duration['normalizeUnit'](_0x1624bf));const _0x5125e6={},_0x43196d={},_0x558b6e=this['toObject']();let _0x1f9245;for(const _0x797a87 of orderedUnits$1)if(_0x58f1ed['indexOf'](_0x797a87)>=0x0){_0x1f9245=_0x797a87;let _0xb2b067=0x0;for(const _0x3cb3c8 in _0x43196d)_0xb2b067+=this['matrix'][_0x3cb3c8][_0x797a87]*_0x43196d[_0x3cb3c8],_0x43196d[_0x3cb3c8]=0x0;isNumber(_0x558b6e[_0x797a87])&&(_0xb2b067+=_0x558b6e[_0x797a87]);const _0x2cf83b=Math['trunc'](_0xb2b067);_0x5125e6[_0x797a87]=_0x2cf83b,_0x43196d[_0x797a87]=(0x3e8*_0xb2b067-0x3e8*_0x2cf83b)/0x3e8;}else isNumber(_0x558b6e[_0x797a87])&&(_0x43196d[_0x797a87]=_0x558b6e[_0x797a87]);for(const _0x44a1a1 in _0x43196d)0x0!==_0x43196d[_0x44a1a1]&&(_0x5125e6[_0x1f9245]+=_0x44a1a1===_0x1f9245?_0x43196d[_0x44a1a1]:_0x43196d[_0x44a1a1]/this['matrix'][_0x1f9245][_0x44a1a1]);return normalizeValues(this['matrix'],_0x5125e6),clone$1(this,{'values':_0x5125e6},!0x0);}['shiftToAll'](){return this['isValid']?this['shiftTo']('years','months','weeks','days','hours','minutes','seconds','milliseconds'):this;}['negate'](){if(!this['isValid'])return this;const _0x351690={};for(const _0x3bf942 of Object['keys'](this['values']))_0x351690[_0x3bf942]=0x0===this['values'][_0x3bf942]?0x0:-this['values'][_0x3bf942];return clone$1(this,{'values':_0x351690},!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'](_0x2f5452){if(!this['isValid']||!_0x2f5452['isValid'])return!0x1;if(!this['loc']['equals'](_0x2f5452['loc']))return!0x1;function _0x58afc2(_0x295c9a,_0x27c883){return void 0x0===_0x295c9a||0x0===_0x295c9a?void 0x0===_0x27c883||0x0===_0x27c883:_0x295c9a===_0x27c883;}for(const _0x1f2a65 of orderedUnits$1)if(!_0x58afc2(this['values'][_0x1f2a65],_0x2f5452['values'][_0x1f2a65]))return!0x1;return!0x0;}}const INVALID$1='Invalid\x20Interval';function validateStartEnd(_0x565035,_0x126f5d){return _0x565035&&_0x565035['isValid']?_0x126f5d&&_0x126f5d['isValid']?_0x126f5d<_0x565035?Interval['invalid']('end\x20before\x20start','The\x20end\x20of\x20an\x20interval\x20must\x20be\x20after\x20its\x20start,\x20but\x20you\x20had\x20start='+_0x565035['toISO']()+'\x20and\x20end='+_0x126f5d['toISO']()):null:Interval['invalid']('missing\x20or\x20invalid\x20end'):Interval['invalid']('missing\x20or\x20invalid\x20start');}class Interval{constructor(_0xa909ab){this['s']=_0xa909ab['start'],this['e']=_0xa909ab['end'],this['invalid']=_0xa909ab['invalid']||null,this['isLuxonInterval']=!0x0;}static['invalid'](_0x40b804,_0x1e4eb1=null){if(!_0x40b804)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20Interval\x20is\x20invalid');const _0x2c5a84=_0x40b804 instanceof Invalid?_0x40b804:new Invalid(_0x40b804,_0x1e4eb1);if(Settings['throwOnInvalid'])throw new InvalidIntervalError(_0x2c5a84);return new Interval({'invalid':_0x2c5a84});}static['fromDateTimes'](_0xccc197,_0x47a6f8){const _0x5c1ebe=friendlyDateTime(_0xccc197),_0x26afa4=friendlyDateTime(_0x47a6f8),_0x4603a1=validateStartEnd(_0x5c1ebe,_0x26afa4);return null==_0x4603a1?new Interval({'start':_0x5c1ebe,'end':_0x26afa4}):_0x4603a1;}static['after'](_0x104fdd,_0x4c108f){const _0xe8097e=Duration['fromDurationLike'](_0x4c108f),_0x10c9b7=friendlyDateTime(_0x104fdd);return Interval['fromDateTimes'](_0x10c9b7,_0x10c9b7['plus'](_0xe8097e));}static['before'](_0x8a0c32,_0x5a1454){const _0x4ea024=Duration['fromDurationLike'](_0x5a1454),_0x4c412d=friendlyDateTime(_0x8a0c32);return Interval['fromDateTimes'](_0x4c412d['minus'](_0x4ea024),_0x4c412d);}static['fromISO'](_0x1d6f19,_0xf023b7){const [_0x2426ce,_0xb92dca]=(_0x1d6f19||'')['split']('/',0x2);if(_0x2426ce&&_0xb92dca){let _0x586aec,_0x4a9271,_0x20fb16,_0xf8901f;try{_0x586aec=DateTime['fromISO'](_0x2426ce,_0xf023b7),_0x4a9271=_0x586aec['isValid'];}catch(_0x455dfc){_0x4a9271=!0x1;}try{_0x20fb16=DateTime['fromISO'](_0xb92dca,_0xf023b7),_0xf8901f=_0x20fb16['isValid'];}catch(_0x4c402f){_0xf8901f=!0x1;}if(_0x4a9271&&_0xf8901f)return Interval['fromDateTimes'](_0x586aec,_0x20fb16);if(_0x4a9271){const _0x37e7c1=Duration['fromISO'](_0xb92dca,_0xf023b7);if(_0x37e7c1['isValid'])return Interval['after'](_0x586aec,_0x37e7c1);}else{if(_0xf8901f){const _0x27d62d=Duration['fromISO'](_0x2426ce,_0xf023b7);if(_0x27d62d['isValid'])return Interval['before'](_0x20fb16,_0x27d62d);}}}return Interval['invalid']('unparsable','the\x20input\x20\x22'+_0x1d6f19+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['isInterval'](_0x3b7e00){return _0x3b7e00&&_0x3b7e00['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'](_0x430514='milliseconds'){return this['isValid']?this['toDuration'](_0x430514)['get'](_0x430514):NaN;}['count'](_0x1e6951='milliseconds',_0x13802b){if(!this['isValid'])return NaN;const _0x4fe1e8=this['start']['startOf'](_0x1e6951,_0x13802b);let _0x21a7ae;return _0x21a7ae=_0x13802b?.['useLocaleWeeks']?this['end']['reconfigure']({'locale':_0x4fe1e8['locale']}):this['end'],_0x21a7ae=_0x21a7ae['startOf'](_0x1e6951,_0x13802b),Math['floor'](_0x21a7ae['diff'](_0x4fe1e8,_0x1e6951)['get'](_0x1e6951))+(_0x21a7ae['valueOf']()!==this['end']['valueOf']());}['hasSame'](_0x3fd423){return!!this['isValid']&&(this['isEmpty']()||this['e']['minus'](0x1)['hasSame'](this['s'],_0x3fd423));}['isEmpty'](){return this['s']['valueOf']()===this['e']['valueOf']();}['isAfter'](_0x537310){return!!this['isValid']&&this['s']>_0x537310;}['isBefore'](_0x49d9f4){return!!this['isValid']&&this['e']<=_0x49d9f4;}['contains'](_0x512e17){return!!this['isValid']&&(this['s']<=_0x512e17&&this['e']>_0x512e17);}['set']({start:_0x105b6e,end:_0x380051}={}){return this['isValid']?Interval['fromDateTimes'](_0x105b6e||this['s'],_0x380051||this['e']):this;}['splitAt'](..._0x487174){if(!this['isValid'])return[];const _0x1a7268=_0x487174['map'](friendlyDateTime)['filter'](_0x1c074c=>this['contains'](_0x1c074c))['sort']((_0x1f11ac,_0x1d9f4c)=>_0x1f11ac['toMillis']()-_0x1d9f4c['toMillis']()),_0x2065e6=[];let {s:_0x33cdbd}=this,_0x1e695a=0x0;for(;_0x33cdbd<this['e'];){const _0x3776cd=_0x1a7268[_0x1e695a]||this['e'],_0x284b55=+_0x3776cd>+this['e']?this['e']:_0x3776cd;_0x2065e6['push'](Interval['fromDateTimes'](_0x33cdbd,_0x284b55)),_0x33cdbd=_0x284b55,_0x1e695a+=0x1;}return _0x2065e6;}['splitBy'](_0x19fd40){const _0x119255=Duration['fromDurationLike'](_0x19fd40);if(!this['isValid']||!_0x119255['isValid']||0x0===_0x119255['as']('milliseconds'))return[];let _0x28fa11,{s:_0xa3291}=this,_0x4e7105=0x1;const _0x4b531d=[];for(;_0xa3291<this['e'];){const _0x3b54f7=this['start']['plus'](_0x119255['mapUnits'](_0x48da85=>_0x48da85*_0x4e7105));_0x28fa11=+_0x3b54f7>+this['e']?this['e']:_0x3b54f7,_0x4b531d['push'](Interval['fromDateTimes'](_0xa3291,_0x28fa11)),_0xa3291=_0x28fa11,_0x4e7105+=0x1;}return _0x4b531d;}['divideEqually'](_0x35e00c){return this['isValid']?this['splitBy'](this['length']()/_0x35e00c)['slice'](0x0,_0x35e00c):[];}['overlaps'](_0x2157f0){return this['e']>_0x2157f0['s']&&this['s']<_0x2157f0['e'];}['abutsStart'](_0x299c8d){return!!this['isValid']&&+this['e']===+_0x299c8d['s'];}['abutsEnd'](_0x4caffb){return!!this['isValid']&&+_0x4caffb['e']===+this['s'];}['engulfs'](_0x474450){return!!this['isValid']&&(this['s']<=_0x474450['s']&&this['e']>=_0x474450['e']);}['equals'](_0x47d628){return!(!this['isValid']||!_0x47d628['isValid'])&&(this['s']['equals'](_0x47d628['s'])&&this['e']['equals'](_0x47d628['e']));}['intersection'](_0x2e3b3b){if(!this['isValid'])return this;const _0x4067ce=this['s']>_0x2e3b3b['s']?this['s']:_0x2e3b3b['s'],_0x203d7a=this['e']<_0x2e3b3b['e']?this['e']:_0x2e3b3b['e'];return _0x4067ce>=_0x203d7a?null:Interval['fromDateTimes'](_0x4067ce,_0x203d7a);}['union'](_0x6d2753){if(!this['isValid'])return this;const _0x13538e=this['s']<_0x6d2753['s']?this['s']:_0x6d2753['s'],_0x12a828=this['e']>_0x6d2753['e']?this['e']:_0x6d2753['e'];return Interval['fromDateTimes'](_0x13538e,_0x12a828);}static['merge'](_0x5c3292){const [_0x3874de,_0x2caa4e]=_0x5c3292['sort']((_0x38b5d0,_0x238ef4)=>_0x38b5d0['s']-_0x238ef4['s'])['reduce'](([_0x2dac63,_0x2ef6c2],_0x5b668a)=>_0x2ef6c2?_0x2ef6c2['overlaps'](_0x5b668a)||_0x2ef6c2['abutsStart'](_0x5b668a)?[_0x2dac63,_0x2ef6c2['union'](_0x5b668a)]:[_0x2dac63['concat']([_0x2ef6c2]),_0x5b668a]:[_0x2dac63,_0x5b668a],[[],null]);return _0x2caa4e&&_0x3874de['push'](_0x2caa4e),_0x3874de;}static['xor'](_0x27f015){let _0x27a5e6=null,_0x1249ed=0x0;const _0x35d963=[],_0x53deba=_0x27f015['map'](_0x5509b5=>[{'time':_0x5509b5['s'],'type':'s'},{'time':_0x5509b5['e'],'type':'e'}]),_0x5ccf5b=Array['prototype']['concat'](..._0x53deba)['sort']((_0x1c4a8e,_0x4fe19b)=>_0x1c4a8e['time']-_0x4fe19b['time']);for(const _0x439b0e of _0x5ccf5b)_0x1249ed+='s'===_0x439b0e['type']?0x1:-0x1,0x1===_0x1249ed?_0x27a5e6=_0x439b0e['time']:(_0x27a5e6&&+_0x27a5e6!==+_0x439b0e['time']&&_0x35d963['push'](Interval['fromDateTimes'](_0x27a5e6,_0x439b0e['time'])),_0x27a5e6=null);return Interval['merge'](_0x35d963);}['difference'](..._0x2ebd74){return Interval['xor']([this]['concat'](_0x2ebd74))['map'](_0xabc7ae=>this['intersection'](_0xabc7ae))['filter'](_0x2033f3=>_0x2033f3&&!_0x2033f3['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'](_0x5d20df=DATE_SHORT,_0x337e59={}){return this['isValid']?Formatter['create'](this['s']['loc']['clone'](_0x337e59),_0x5d20df)['formatInterval'](this):INVALID$1;}['toISO'](_0x503c22){return this['isValid']?this['s']['toISO'](_0x503c22)+'/'+this['e']['toISO'](_0x503c22):INVALID$1;}['toISODate'](){return this['isValid']?this['s']['toISODate']()+'/'+this['e']['toISODate']():INVALID$1;}['toISOTime'](_0x43c78d){return this['isValid']?this['s']['toISOTime'](_0x43c78d)+'/'+this['e']['toISOTime'](_0x43c78d):INVALID$1;}['toFormat'](_0x3fd9b3,{separator:_0x5bfdab='\x20–\x20'}={}){return this['isValid']?''+this['s']['toFormat'](_0x3fd9b3)+_0x5bfdab+this['e']['toFormat'](_0x3fd9b3):INVALID$1;}['toDuration'](_0x4cc9d3,_0xfa9ede){return this['isValid']?this['e']['diff'](this['s'],_0x4cc9d3,_0xfa9ede):Duration['invalid'](this['invalidReason']);}['mapEndpoints'](_0x3e7053){return Interval['fromDateTimes'](_0x3e7053(this['s']),_0x3e7053(this['e']));}}class Info{static['hasDST'](_0x2b9c06=Settings['defaultZone']){const _0x3a6ba7=DateTime['now']()['setZone'](_0x2b9c06)['set']({'month':0xc});return!_0x2b9c06['isUniversal']&&_0x3a6ba7['offset']!==_0x3a6ba7['set']({'month':0x6})['offset'];}static['isValidIANAZone'](_0x9a99d6){return IANAZone['isValidZone'](_0x9a99d6);}static['normalizeZone'](_0x19c6ea){return normalizeZone(_0x19c6ea,Settings['defaultZone']);}static['getStartOfWeek']({locale:_0x58b81c=null,locObj:_0x4c98c7=null}={}){return(_0x4c98c7||Locale['create'](_0x58b81c))['getStartOfWeek']();}static['getMinimumDaysInFirstWeek']({locale:_0x4f6b4d=null,locObj:_0x51e32c=null}={}){return(_0x51e32c||Locale['create'](_0x4f6b4d))['getMinDaysInFirstWeek']();}static['getWeekendWeekdays']({locale:_0x1cde4e=null,locObj:_0x1e4b7d=null}={}){return(_0x1e4b7d||Locale['create'](_0x1cde4e))['getWeekendDays']()['slice']();}static['months'](_0x220392='long',{locale:_0x39fbff=null,numberingSystem:_0x3550dc=null,locObj:_0xbd433=null,outputCalendar:_0xeda881='gregory'}={}){return(_0xbd433||Locale['create'](_0x39fbff,_0x3550dc,_0xeda881))['months'](_0x220392);}static['monthsFormat'](_0x1e28f8='long',{locale:_0x2bcccc=null,numberingSystem:_0x5e2952=null,locObj:_0x475057=null,outputCalendar:_0x41eab5='gregory'}={}){return(_0x475057||Locale['create'](_0x2bcccc,_0x5e2952,_0x41eab5))['months'](_0x1e28f8,!0x0);}static['weekdays'](_0x24a9b6='long',{locale:_0x534603=null,numberingSystem:_0x70aa1c=null,locObj:_0x34052c=null}={}){return(_0x34052c||Locale['create'](_0x534603,_0x70aa1c,null))['weekdays'](_0x24a9b6);}static['weekdaysFormat'](_0x30b85e='long',{locale:_0x2d5453=null,numberingSystem:_0xf29704=null,locObj:_0x303307=null}={}){return(_0x303307||Locale['create'](_0x2d5453,_0xf29704,null))['weekdays'](_0x30b85e,!0x0);}static['meridiems']({locale:_0x2e94a6=null}={}){return Locale['create'](_0x2e94a6)['meridiems']();}static['eras'](_0x126eda='short',{locale:_0x5e3d65=null}={}){return Locale['create'](_0x5e3d65,null,'gregory')['eras'](_0x126eda);}static['features'](){return{'relative':hasRelative(),'localeWeek':hasLocaleWeekInfo()};}}function dayDiff(_0x1390df,_0xeaa9da){const _0x412116=_0xfa102c=>_0xfa102c['toUTC'](0x0,{'keepLocalTime':!0x0})['startOf']('day')['valueOf'](),_0x1dc81d=_0x412116(_0xeaa9da)-_0x412116(_0x1390df);return Math['floor'](Duration['fromMillis'](_0x1dc81d)['as']('days'));}function highOrderDiffs(_0x348cf7,_0xfe3406,_0x3be372){const _0x4797c5=[['years',(_0x6c226a,_0x9b0bb8)=>_0x9b0bb8['year']-_0x6c226a['year']],['quarters',(_0x182622,_0x11920b)=>_0x11920b['quarter']-_0x182622['quarter']+0x4*(_0x11920b['year']-_0x182622['year'])],['months',(_0x83d4ce,_0x202ca0)=>_0x202ca0['month']-_0x83d4ce['month']+0xc*(_0x202ca0['year']-_0x83d4ce['year'])],['weeks',(_0x1f2172,_0x54a3de)=>{const _0x3ea1bb=dayDiff(_0x1f2172,_0x54a3de);return(_0x3ea1bb-_0x3ea1bb%0x7)/0x7;}],['days',dayDiff]],_0x19277c={},_0x28f5f0=_0x348cf7;let _0x5704aa,_0x56bbf6;for(const [_0x318c2a,_0x274978]of _0x4797c5)_0x3be372['indexOf'](_0x318c2a)>=0x0&&(_0x5704aa=_0x318c2a,_0x19277c[_0x318c2a]=_0x274978(_0x348cf7,_0xfe3406),_0x56bbf6=_0x28f5f0['plus'](_0x19277c),_0x56bbf6>_0xfe3406?(_0x19277c[_0x318c2a]--,(_0x348cf7=_0x28f5f0['plus'](_0x19277c))>_0xfe3406&&(_0x56bbf6=_0x348cf7,_0x19277c[_0x318c2a]--,_0x348cf7=_0x28f5f0['plus'](_0x19277c))):_0x348cf7=_0x56bbf6);return[_0x348cf7,_0x19277c,_0x56bbf6,_0x5704aa];}function diff(_0x3781ff,_0x594e3b,_0x2754bc,_0x4ec638){let [_0x4561d4,_0x34744f,_0x4c9d6a,_0x39746d]=highOrderDiffs(_0x3781ff,_0x594e3b,_0x2754bc);const _0x10fc0a=_0x594e3b-_0x4561d4,_0x2d6e24=_0x2754bc['filter'](_0x5ace77=>['hours','minutes','seconds','milliseconds']['indexOf'](_0x5ace77)>=0x0);0x0===_0x2d6e24['length']&&(_0x4c9d6a<_0x594e3b&&(_0x4c9d6a=_0x4561d4['plus']({[_0x39746d]:0x1})),_0x4c9d6a!==_0x4561d4&&(_0x34744f[_0x39746d]=(_0x34744f[_0x39746d]||0x0)+_0x10fc0a/(_0x4c9d6a-_0x4561d4)));const _0x529041=Duration['fromObject'](_0x34744f,_0x4ec638);return _0x2d6e24['length']>0x0?Duration['fromMillis'](_0x10fc0a,_0x4ec638)['shiftTo'](..._0x2d6e24)['plus'](_0x529041):_0x529041;}const MISSING_FTP='missing\x20Intl.DateTimeFormat.formatToParts\x20support';function intUnit(_0x4e9db4,_0xa6bc6d=_0xecd96c=>_0xecd96c){return{'regex':_0x4e9db4,'deser':([_0x5e016f])=>_0xa6bc6d(parseDigits(_0x5e016f))};}const NBSP=String['fromCharCode'](0xa0),spaceOrNBSP='[\x20'+NBSP+']',spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,'g');function fixListRegex(_0x4966b3){return _0x4966b3['replace'](/\./g,'\x5c.?')['replace'](spaceOrNBSPRegExp,spaceOrNBSP);}function stripInsensitivities(_0xac0363){return _0xac0363['replace'](/\./g,'')['replace'](spaceOrNBSPRegExp,'\x20')['toLowerCase']();}function oneOf(_0x3765e5,_0x496eb6){return null===_0x3765e5?null:{'regex':RegExp(_0x3765e5['map'](fixListRegex)['join']('|')),'deser':([_0x31964f])=>_0x3765e5['findIndex'](_0x5b5d1a=>stripInsensitivities(_0x31964f)===stripInsensitivities(_0x5b5d1a))+_0x496eb6};}function offset(_0x59ba98,_0x1c23c9){return{'regex':_0x59ba98,'deser':([,_0x15b29f,_0x1e1f8b])=>signedOffset(_0x15b29f,_0x1e1f8b),'groups':_0x1c23c9};}function simple(_0x2ff8cc){return{'regex':_0x2ff8cc,'deser':([_0x3bfbe0])=>_0x3bfbe0};}function escapeToken(_0x2d7eb1){return _0x2d7eb1['replace'](/[\-\[\]{}()*+?.,\\\^$|#\s]/g,'\x5c$&');}function unitForToken(_0x3f9bc3,_0x409bb5){const _0x306859=digitRegex(_0x409bb5),_0x7478d8=digitRegex(_0x409bb5,'{2}'),_0x2bea41=digitRegex(_0x409bb5,'{3}'),_0x2f9056=digitRegex(_0x409bb5,'{4}'),_0x55b665=digitRegex(_0x409bb5,'{6}'),_0x407b02=digitRegex(_0x409bb5,'{1,2}'),_0x3f0b61=digitRegex(_0x409bb5,'{1,3}'),_0x223fce=digitRegex(_0x409bb5,'{1,6}'),_0x36112e=digitRegex(_0x409bb5,'{1,9}'),_0x5df3a9=digitRegex(_0x409bb5,'{2,4}'),_0x479794=digitRegex(_0x409bb5,'{4,6}'),_0x38ed81=t=>({'regex':RegExp(escapeToken(t['val'])),'deser':([_0x477334])=>_0x477334,'literal':!0x0}),_0x139af1=(t=>{if(_0x3f9bc3['literal'])return _0x38ed81(t);switch(t['val']){case'G':return oneOf(_0x409bb5['eras']('short'),0x0);case'GG':return oneOf(_0x409bb5['eras']('long'),0x0);case'y':return intUnit(_0x223fce);case'yy':case'kk':return intUnit(_0x5df3a9,untruncateYear);case'yyyy':case'kkkk':return intUnit(_0x2f9056);case'yyyyy':return intUnit(_0x479794);case'yyyyyy':return intUnit(_0x55b665);case'M':case'L':case'd':case'H':case'h':case'm':case'q':case's':case'W':return intUnit(_0x407b02);case'MM':case'LL':case'dd':case'HH':case'hh':case'mm':case'qq':case'ss':case'WW':return intUnit(_0x7478d8);case'MMM':return oneOf(_0x409bb5['months']('short',!0x0),0x1);case'MMMM':return oneOf(_0x409bb5['months']('long',!0x0),0x1);case'LLL':return oneOf(_0x409bb5['months']('short',!0x1),0x1);case'LLLL':return oneOf(_0x409bb5['months']('long',!0x1),0x1);case'o':case'S':return intUnit(_0x3f0b61);case'ooo':case'SSS':return intUnit(_0x2bea41);case'u':return simple(_0x36112e);case'uu':return simple(_0x407b02);case'uuu':case'E':case'c':return intUnit(_0x306859);case'a':return oneOf(_0x409bb5['meridiems'](),0x0);case'EEE':return oneOf(_0x409bb5['weekdays']('short',!0x1),0x1);case'EEEE':return oneOf(_0x409bb5['weekdays']('long',!0x1),0x1);case'ccc':return oneOf(_0x409bb5['weekdays']('short',!0x0),0x1);case'cccc':return oneOf(_0x409bb5['weekdays']('long',!0x0),0x1);case'Z':case'ZZ':return offset(new RegExp('([+-]'+_0x407b02['source']+')(?::('+_0x7478d8['source']+'))?'),0x2);case'ZZZ':return offset(new RegExp('([+-]'+_0x407b02['source']+')('+_0x7478d8['source']+')?'),0x2);case'z':return simple(/[a-z_+-/]{1,256}?/i);case'\x20':return simple(/[^\S\n\r]/);default:return _0x38ed81(t);}})(_0x3f9bc3)||{'invalidReason':MISSING_FTP};return _0x139af1['token']=_0x3f9bc3,_0x139af1;}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(_0xd21fd7,_0x5a736b,_0x2c7cf2){const {type:_0x28cd9c,value:_0x3cc445}=_0xd21fd7;if('literal'===_0x28cd9c){const _0x375189=/^\s+$/['test'](_0x3cc445);return{'literal':!_0x375189,'val':_0x375189?'\x20':_0x3cc445};}const _0x41d0d1=_0x5a736b[_0x28cd9c];let _0x1a56fa=_0x28cd9c;'hour'===_0x28cd9c&&(_0x1a56fa=null!=_0x5a736b['hour12']?_0x5a736b['hour12']?'hour12':'hour24':null!=_0x5a736b['hourCycle']?'h11'===_0x5a736b['hourCycle']||'h12'===_0x5a736b['hourCycle']?'hour12':'hour24':_0x2c7cf2['hour12']?'hour12':'hour24');let _0x293f41=partTypeStyleToTokenVal[_0x1a56fa];if('object'==typeof _0x293f41&&(_0x293f41=_0x293f41[_0x41d0d1]),_0x293f41)return{'literal':!0x1,'val':_0x293f41};}function buildRegex(_0x151c77){const _0x1bd795=_0x151c77['map'](_0x21ba62=>_0x21ba62['regex'])['reduce']((_0x2586f2,_0x5e6492)=>_0x2586f2+'('+_0x5e6492['source']+')','');return['^'+_0x1bd795+'$',_0x151c77];}function match(_0x4efb7a,_0x53420e,_0x4fcdbb){const _0x5d787a=_0x4efb7a['match'](_0x53420e);if(_0x5d787a){const _0x510807={};let _0x2ad2f0=0x1;for(const _0x1db2c3 in _0x4fcdbb)if(hasOwnProperty(_0x4fcdbb,_0x1db2c3)){const _0x12a310=_0x4fcdbb[_0x1db2c3],_0x454a20=_0x12a310['groups']?_0x12a310['groups']+0x1:0x1;!_0x12a310['literal']&&_0x12a310['token']&&(_0x510807[_0x12a310['token']['val'][0x0]]=_0x12a310['deser'](_0x5d787a['slice'](_0x2ad2f0,_0x2ad2f0+_0x454a20))),_0x2ad2f0+=_0x454a20;}return[_0x5d787a,_0x510807];}return[_0x5d787a,{}];}function dateTimeFromMatches(_0x19be6d){let _0x1bef1d,_0x438b4d=null;isUndefined(_0x19be6d['z'])||(_0x438b4d=IANAZone['create'](_0x19be6d['z'])),isUndefined(_0x19be6d['Z'])||(_0x438b4d||(_0x438b4d=new FixedOffsetZone(_0x19be6d['Z'])),_0x1bef1d=_0x19be6d['Z']),isUndefined(_0x19be6d['q'])||(_0x19be6d['M']=0x3*(_0x19be6d['q']-0x1)+0x1),isUndefined(_0x19be6d['h'])||(_0x19be6d['h']<0xc&&0x1===_0x19be6d['a']?_0x19be6d['h']+=0xc:0xc===_0x19be6d['h']&&0x0===_0x19be6d['a']&&(_0x19be6d['h']=0x0)),0x0===_0x19be6d['G']&&_0x19be6d['y']&&(_0x19be6d['y']=-_0x19be6d['y']),isUndefined(_0x19be6d['u'])||(_0x19be6d['S']=parseMillis(_0x19be6d['u']));const _0x49caab=Object['keys'](_0x19be6d)['reduce']((_0x59348e,_0x33c3fa)=>{const _0x163a57=(_0x1a691d=>{switch(_0x1a691d){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;}})(_0x33c3fa);return _0x163a57&&(_0x59348e[_0x163a57]=_0x19be6d[_0x33c3fa]),_0x59348e;},{});return[_0x49caab,_0x438b4d,_0x1bef1d];}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime['fromMillis'](0x16a2e5618e3)),dummyDateTimeCache;}function maybeExpandMacroToken(_0x5483ff,_0x411a49){if(_0x5483ff['literal'])return _0x5483ff;const _0x59df71=formatOptsToTokens(Formatter['macroTokenToFormatOpts'](_0x5483ff['val']),_0x411a49);return null==_0x59df71||_0x59df71['includes'](void 0x0)?_0x5483ff:_0x59df71;}function expandMacroTokens(_0xffa624,_0x2d7f84){return Array['prototype']['concat'](..._0xffa624['map'](t=>maybeExpandMacroToken(t,_0x2d7f84)));}class TokenParser{constructor(_0x18b666,_0x2cc95d){if(this['locale']=_0x18b666,this['format']=_0x2cc95d,this['tokens']=expandMacroTokens(Formatter['parseFormat'](_0x2cc95d),_0x18b666),this['units']=this['tokens']['map'](t=>unitForToken(t,_0x18b666)),this['disqualifyingUnit']=this['units']['find'](t=>t['invalidReason']),!this['disqualifyingUnit']){const [_0x522366,_0x3398a3]=buildRegex(this['units']);this['regex']=RegExp(_0x522366,'i'),this['handlers']=_0x3398a3;}}['explainFromTokens'](_0x4d0094){if(this['isValid']){const [_0x57cd04,_0x1972b7]=match(_0x4d0094,this['regex'],this['handlers']),[_0x116473,_0x3f349d,_0x2a5341]=_0x1972b7?dateTimeFromMatches(_0x1972b7):[null,null,void 0x0];if(hasOwnProperty(_0x1972b7,'a')&&hasOwnProperty(_0x1972b7,'H'))throw new ConflictingSpecificationError('Can\x27t\x20include\x20meridiem\x20when\x20specifying\x2024-hour\x20format');return{'input':_0x4d0094,'tokens':this['tokens'],'regex':this['regex'],'rawMatches':_0x57cd04,'matches':_0x1972b7,'result':_0x116473,'zone':_0x3f349d,'specificOffset':_0x2a5341};}return{'input':_0x4d0094,'tokens':this['tokens'],'invalidReason':this['invalidReason']};}get['isValid'](){return!this['disqualifyingUnit'];}get['invalidReason'](){return this['disqualifyingUnit']?this['disqualifyingUnit']['invalidReason']:null;}}function explainFromTokens(_0x562f07,_0x230433,_0x121f17){return new TokenParser(_0x562f07,_0x121f17)['explainFromTokens'](_0x230433);}function parseFromTokens(_0x270ce1,_0x5488c3,_0x2e8ca2){const {result:_0x59a803,zone:_0x448065,specificOffset:_0x1dd5f6,invalidReason:_0x3550fe}=explainFromTokens(_0x270ce1,_0x5488c3,_0x2e8ca2);return[_0x59a803,_0x448065,_0x1dd5f6,_0x3550fe];}function formatOptsToTokens(_0x429e20,_0x5531fe){if(!_0x429e20)return null;const _0x138a61=Formatter['create'](_0x5531fe,_0x429e20)['dtFormatter'](getDummyDateTime()),_0x3e2aea=_0x138a61['formatToParts'](),_0x1cda72=_0x138a61['resolvedOptions']();return _0x3e2aea['map'](_0x35f736=>tokenForPart(_0x35f736,_0x429e20,_0x1cda72));}const INVALID='Invalid\x20DateTime',MAX_DATE=0x1eb208c2dc0000;function unsupportedZone(_0x5a605a){return new Invalid('unsupported\x20zone','the\x20zone\x20\x22'+_0x5a605a['name']+'\x22\x20is\x20not\x20supported');}function possiblyCachedWeekData(_0x31fe40){return null===_0x31fe40['weekData']&&(_0x31fe40['weekData']=gregorianToWeek(_0x31fe40['c'])),_0x31fe40['weekData'];}function possiblyCachedLocalWeekData(_0x2d7a27){return null===_0x2d7a27['localWeekData']&&(_0x2d7a27['localWeekData']=gregorianToWeek(_0x2d7a27['c'],_0x2d7a27['loc']['getMinDaysInFirstWeek'](),_0x2d7a27['loc']['getStartOfWeek']())),_0x2d7a27['localWeekData'];}function clone(_0x34c0bf,_0x4d2940){const _0x41c66b={'ts':_0x34c0bf['ts'],'zone':_0x34c0bf['zone'],'c':_0x34c0bf['c'],'o':_0x34c0bf['o'],'loc':_0x34c0bf['loc'],'invalid':_0x34c0bf['invalid']};return new DateTime({..._0x41c66b,..._0x4d2940,'old':_0x41c66b});}function fixOffset(_0x10b015,_0x1caa81,_0x4d69df){let _0x2b01b6=_0x10b015-0x3c*_0x1caa81*0x3e8;const _0x837efc=_0x4d69df['offset'](_0x2b01b6);if(_0x1caa81===_0x837efc)return[_0x2b01b6,_0x1caa81];_0x2b01b6-=0x3c*(_0x837efc-_0x1caa81)*0x3e8;const _0x5afd20=_0x4d69df['offset'](_0x2b01b6);return _0x837efc===_0x5afd20?[_0x2b01b6,_0x837efc]:[_0x10b015-0x3c*Math['min'](_0x837efc,_0x5afd20)*0x3e8,Math['max'](_0x837efc,_0x5afd20)];}function tsToObj(_0x49a20e,_0x3ff65f){const _0x1d928b=new Date(_0x49a20e+=0x3c*_0x3ff65f*0x3e8);return{'year':_0x1d928b['getUTCFullYear'](),'month':_0x1d928b['getUTCMonth']()+0x1,'day':_0x1d928b['getUTCDate'](),'hour':_0x1d928b['getUTCHours'](),'minute':_0x1d928b['getUTCMinutes'](),'second':_0x1d928b['getUTCSeconds'](),'millisecond':_0x1d928b['getUTCMilliseconds']()};}function objToTS(_0x9803d8,_0x1de825,_0xf35292){return fixOffset(objToLocalTS(_0x9803d8),_0x1de825,_0xf35292);}function adjustTime(_0x1013e2,_0x5e80fc){const _0x4e848d=_0x1013e2['o'],_0x3af6a2=_0x1013e2['c']['year']+Math['trunc'](_0x5e80fc['years']),_0x33ece4=_0x1013e2['c']['month']+Math['trunc'](_0x5e80fc['months'])+0x3*Math['trunc'](_0x5e80fc['quarters']),_0x42d370={..._0x1013e2['c'],'year':_0x3af6a2,'month':_0x33ece4,'day':Math['min'](_0x1013e2['c']['day'],daysInMonth(_0x3af6a2,_0x33ece4))+Math['trunc'](_0x5e80fc['days'])+0x7*Math['trunc'](_0x5e80fc['weeks'])},_0x39c1f2=Duration['fromObject']({'years':_0x5e80fc['years']-Math['trunc'](_0x5e80fc['years']),'quarters':_0x5e80fc['quarters']-Math['trunc'](_0x5e80fc['quarters']),'months':_0x5e80fc['months']-Math['trunc'](_0x5e80fc['months']),'weeks':_0x5e80fc['weeks']-Math['trunc'](_0x5e80fc['weeks']),'days':_0x5e80fc['days']-Math['trunc'](_0x5e80fc['days']),'hours':_0x5e80fc['hours'],'minutes':_0x5e80fc['minutes'],'seconds':_0x5e80fc['seconds'],'milliseconds':_0x5e80fc['milliseconds']})['as']('milliseconds'),_0x24c25c=objToLocalTS(_0x42d370);let [_0x3cc2ae,_0x466cc2]=fixOffset(_0x24c25c,_0x4e848d,_0x1013e2['zone']);return 0x0!==_0x39c1f2&&(_0x3cc2ae+=_0x39c1f2,_0x466cc2=_0x1013e2['zone']['offset'](_0x3cc2ae)),{'ts':_0x3cc2ae,'o':_0x466cc2};}function parseDataToDateTime(_0x152650,_0x4a8ec1,_0x41f423,_0x443195,_0x4baea2,_0x5aeddb){const {setZone:_0x4083b1,zone:_0x5d5d07}=_0x41f423;if(_0x152650&&0x0!==Object['keys'](_0x152650)['length']||_0x4a8ec1){const _0xba1d0=_0x4a8ec1||_0x5d5d07,_0x4fb270=DateTime['fromObject'](_0x152650,{..._0x41f423,'zone':_0xba1d0,'specificOffset':_0x5aeddb});return _0x4083b1?_0x4fb270:_0x4fb270['setZone'](_0x5d5d07);}return DateTime['invalid'](new Invalid('unparsable','the\x20input\x20\x22'+_0x4baea2+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20'+_0x443195));}function toTechFormat(_0x514e80,_0x1f45e4,_0x4faa3c=!0x0){return _0x514e80['isValid']?Formatter['create'](Locale['create']('en-US'),{'allowZ':_0x4faa3c,'forceSimple':!0x0})['formatDateTimeFromString'](_0x514e80,_0x1f45e4):null;}function toISODate(_0x1dd29d,_0x59c215){const _0x230730=_0x1dd29d['c']['year']>0x270f||_0x1dd29d['c']['year']<0x0;let _0x30a251='';return _0x230730&&_0x1dd29d['c']['year']>=0x0&&(_0x30a251+='+'),_0x30a251+=padStart(_0x1dd29d['c']['year'],_0x230730?0x6:0x4),_0x59c215?(_0x30a251+='-',_0x30a251+=padStart(_0x1dd29d['c']['month']),_0x30a251+='-',_0x30a251+=padStart(_0x1dd29d['c']['day'])):(_0x30a251+=padStart(_0x1dd29d['c']['month']),_0x30a251+=padStart(_0x1dd29d['c']['day'])),_0x30a251;}function toISOTime(_0x409486,_0x1659d7,_0x28fb6e,_0x1832fe,_0x3f7867,_0xb6a56f){let _0x12f27f=padStart(_0x409486['c']['hour']);return _0x1659d7?(_0x12f27f+=':',_0x12f27f+=padStart(_0x409486['c']['minute']),0x0===_0x409486['c']['millisecond']&&0x0===_0x409486['c']['second']&&_0x28fb6e||(_0x12f27f+=':')):_0x12f27f+=padStart(_0x409486['c']['minute']),0x0===_0x409486['c']['millisecond']&&0x0===_0x409486['c']['second']&&_0x28fb6e||(_0x12f27f+=padStart(_0x409486['c']['second']),0x0===_0x409486['c']['millisecond']&&_0x1832fe||(_0x12f27f+='.',_0x12f27f+=padStart(_0x409486['c']['millisecond'],0x3))),_0x3f7867&&(_0x409486['isOffsetFixed']&&0x0===_0x409486['offset']&&!_0xb6a56f?_0x12f27f+='Z':_0x409486['o']<0x0?(_0x12f27f+='-',_0x12f27f+=padStart(Math['trunc'](-_0x409486['o']/0x3c)),_0x12f27f+=':',_0x12f27f+=padStart(Math['trunc'](-_0x409486['o']%0x3c))):(_0x12f27f+='+',_0x12f27f+=padStart(Math['trunc'](_0x409486['o']/0x3c)),_0x12f27f+=':',_0x12f27f+=padStart(Math['trunc'](_0x409486['o']%0x3c)))),_0xb6a56f&&(_0x12f27f+='['+_0x409486['zone']['ianaName']+']'),_0x12f27f;}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(_0x2514b5){const _0x5b8657={'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'}[_0x2514b5['toLowerCase']()];if(!_0x5b8657)throw new InvalidUnitError(_0x2514b5);return _0x5b8657;}function normalizeUnitWithLocalWeeks(_0x4e82b7){switch(_0x4e82b7['toLowerCase']()){case'localweekday':case'localweekdays':return'localWeekday';case'localweeknumber':case'localweeknumbers':return'localWeekNumber';case'localweekyear':case'localweekyears':return'localWeekYear';default:return normalizeUnit(_0x4e82b7);}}function guessOffsetForZone(_0xc9ff1e){if(void 0x0===zoneOffsetTs&&(zoneOffsetTs=Settings['now']()),'iana'!==_0xc9ff1e['type'])return _0xc9ff1e['offset'](zoneOffsetTs);const _0xcd9807=_0xc9ff1e['name'];let _0x52f07f=zoneOffsetGuessCache['get'](_0xcd9807);return void 0x0===_0x52f07f&&(_0x52f07f=_0xc9ff1e['offset'](zoneOffsetTs),zoneOffsetGuessCache['set'](_0xcd9807,_0x52f07f)),_0x52f07f;}function quickDT(_0x40c686,_0x4894a1){const _0x3ccda3=normalizeZone(_0x4894a1['zone'],Settings['defaultZone']);if(!_0x3ccda3['isValid'])return DateTime['invalid'](unsupportedZone(_0x3ccda3));const _0x3d93f8=Locale['fromObject'](_0x4894a1);let _0x13b125,_0x20bf04;if(isUndefined(_0x40c686['year']))_0x13b125=Settings['now']();else{for(const _0xb9ca94 of orderedUnits)isUndefined(_0x40c686[_0xb9ca94])&&(_0x40c686[_0xb9ca94]=defaultUnitValues[_0xb9ca94]);const _0x28fcf8=hasInvalidGregorianData(_0x40c686)||hasInvalidTimeData(_0x40c686);if(_0x28fcf8)return DateTime['invalid'](_0x28fcf8);const _0x3db08a=guessOffsetForZone(_0x3ccda3);[_0x13b125,_0x20bf04]=objToTS(_0x40c686,_0x3db08a,_0x3ccda3);}return new DateTime({'ts':_0x13b125,'zone':_0x3ccda3,'loc':_0x3d93f8,'o':_0x20bf04});}function diffRelative(_0xae6c9e,_0x58367d,_0x3c59ca){const _0x1fc233=!!isUndefined(_0x3c59ca['round'])||_0x3c59ca['round'],_0x3003d5=(_0x3c70b4,_0x3cf025)=>{return _0x3c70b4=roundTo(_0x3c70b4,_0x1fc233||_0x3c59ca['calendary']?0x0:0x2,!0x0),_0x58367d['loc']['clone'](_0x3c59ca)['relFormatter'](_0x3c59ca)['format'](_0x3c70b4,_0x3cf025);},_0x1a2ae3=_0xe2b445=>_0x3c59ca['calendary']?_0x58367d['hasSame'](_0xae6c9e,_0xe2b445)?0x0:_0x58367d['startOf'](_0xe2b445)['diff'](_0xae6c9e['startOf'](_0xe2b445),_0xe2b445)['get'](_0xe2b445):_0x58367d['diff'](_0xae6c9e,_0xe2b445)['get'](_0xe2b445);if(_0x3c59ca['unit'])return _0x3003d5(_0x1a2ae3(_0x3c59ca['unit']),_0x3c59ca['unit']);for(const _0x599838 of _0x3c59ca['units']){const _0x29c779=_0x1a2ae3(_0x599838);if(Math['abs'](_0x29c779)>=0x1)return _0x3003d5(_0x29c779,_0x599838);}return _0x3003d5(_0xae6c9e>_0x58367d?-0x0:0x0,_0x3c59ca['units'][_0x3c59ca['units']['length']-0x1]);}function lastOpts(_0x3f0980){let _0x38f681,_0x53fec4={};return _0x3f0980['length']>0x0&&'object'==typeof _0x3f0980[_0x3f0980['length']-0x1]?(_0x53fec4=_0x3f0980[_0x3f0980['length']-0x1],_0x38f681=Array['from'](_0x3f0980)['slice'](0x0,_0x3f0980['length']-0x1)):_0x38f681=Array['from'](_0x3f0980),[_0x53fec4,_0x38f681];}let zoneOffsetTs;const zoneOffsetGuessCache=new Map();class DateTime{constructor(_0x46f147){const _0x54c7ef=_0x46f147['zone']||Settings['defaultZone'];let _0x331f4b=_0x46f147['invalid']||(Number['isNaN'](_0x46f147['ts'])?new Invalid('invalid\x20input'):null)||(_0x54c7ef['isValid']?null:unsupportedZone(_0x54c7ef));this['ts']=isUndefined(_0x46f147['ts'])?Settings['now']():_0x46f147['ts'];let _0x3130fd=null,_0x2eeda0=null;if(!_0x331f4b){if(_0x46f147['old']&&_0x46f147['old']['ts']===this['ts']&&_0x46f147['old']['zone']['equals'](_0x54c7ef))[_0x3130fd,_0x2eeda0]=[_0x46f147['old']['c'],_0x46f147['old']['o']];else{const _0x532cb1=isNumber(_0x46f147['o'])&&!_0x46f147['old']?_0x46f147['o']:_0x54c7ef['offset'](this['ts']);_0x3130fd=tsToObj(this['ts'],_0x532cb1),_0x331f4b=Number['isNaN'](_0x3130fd['year'])?new Invalid('invalid\x20input'):null,_0x3130fd=_0x331f4b?null:_0x3130fd,_0x2eeda0=_0x331f4b?null:_0x532cb1;}}this['_zone']=_0x54c7ef,this['loc']=_0x46f147['loc']||Locale['create'](),this['invalid']=_0x331f4b,this['weekData']=null,this['localWeekData']=null,this['c']=_0x3130fd,this['o']=_0x2eeda0,this['isLuxonDateTime']=!0x0;}static['now'](){return new DateTime({});}static['local'](){const [_0x269f4f,_0x20d591]=lastOpts(arguments),[_0x5d93fd,_0x2a29d9,_0x1fd1bf,_0x335589,_0x19ae4a,_0x4f5788,_0xcb1e21]=_0x20d591;return quickDT({'year':_0x5d93fd,'month':_0x2a29d9,'day':_0x1fd1bf,'hour':_0x335589,'minute':_0x19ae4a,'second':_0x4f5788,'millisecond':_0xcb1e21},_0x269f4f);}static['utc'](){const [_0x408500,_0x10ba3d]=lastOpts(arguments),[_0x58f77c,_0x48177e,_0x156e66,_0x3947be,_0x49f829,_0x20f85d,_0x1b3b8b]=_0x10ba3d;return _0x408500['zone']=FixedOffsetZone['utcInstance'],quickDT({'year':_0x58f77c,'month':_0x48177e,'day':_0x156e66,'hour':_0x3947be,'minute':_0x49f829,'second':_0x20f85d,'millisecond':_0x1b3b8b},_0x408500);}static['fromJSDate'](_0x2273b4,_0x5b268c={}){const _0x321933=isDate(_0x2273b4)?_0x2273b4['valueOf']():NaN;if(Number['isNaN'](_0x321933))return DateTime['invalid']('invalid\x20input');const _0x562462=normalizeZone(_0x5b268c['zone'],Settings['defaultZone']);return _0x562462['isValid']?new DateTime({'ts':_0x321933,'zone':_0x562462,'loc':Locale['fromObject'](_0x5b268c)}):DateTime['invalid'](unsupportedZone(_0x562462));}static['fromMillis'](_0x11fa07,_0x3f714c={}){if(isNumber(_0x11fa07))return _0x11fa07<-MAX_DATE||_0x11fa07>MAX_DATE?DateTime['invalid']('Timestamp\x20out\x20of\x20range'):new DateTime({'ts':_0x11fa07,'zone':normalizeZone(_0x3f714c['zone'],Settings['defaultZone']),'loc':Locale['fromObject'](_0x3f714c)});throw new InvalidArgumentError('fromMillis\x20requires\x20a\x20numerical\x20input,\x20but\x20received\x20a\x20'+typeof _0x11fa07+'\x20with\x20value\x20'+_0x11fa07);}static['fromSeconds'](_0x35880b,_0x1327bc={}){if(isNumber(_0x35880b))return new DateTime({'ts':0x3e8*_0x35880b,'zone':normalizeZone(_0x1327bc['zone'],Settings['defaultZone']),'loc':Locale['fromObject'](_0x1327bc)});throw new InvalidArgumentError('fromSeconds\x20requires\x20a\x20numerical\x20input');}static['fromObject'](_0x147a43,_0x2044a5={}){_0x147a43=_0x147a43||{};const _0x508f8b=normalizeZone(_0x2044a5['zone'],Settings['defaultZone']);if(!_0x508f8b['isValid'])return DateTime['invalid'](unsupportedZone(_0x508f8b));const _0x34f6e4=Locale['fromObject'](_0x2044a5),_0x195545=normalizeObject(_0x147a43,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_0x1ecf9c,startOfWeek:_0x3f1355}=usesLocalWeekValues(_0x195545,_0x34f6e4),_0x572300=Settings['now'](),_0x150c4f=isUndefined(_0x2044a5['specificOffset'])?_0x508f8b['offset'](_0x572300):_0x2044a5['specificOffset'],_0x1eb2a3=!isUndefined(_0x195545['ordinal']),_0x1eae44=!isUndefined(_0x195545['year']),_0x2ad388=!isUndefined(_0x195545['month'])||!isUndefined(_0x195545['day']),_0x5351dc=_0x1eae44||_0x2ad388,_0x59b3f9=_0x195545['weekYear']||_0x195545['weekNumber'];if((_0x5351dc||_0x1eb2a3)&&_0x59b3f9)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x2ad388&&_0x1eb2a3)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');const _0x4dba63=_0x59b3f9||_0x195545['weekday']&&!_0x5351dc;let _0x1293d4,_0x4fb472,_0x2e0272=tsToObj(_0x572300,_0x150c4f);_0x4dba63?(_0x1293d4=orderedWeekUnits,_0x4fb472=defaultWeekUnitValues,_0x2e0272=gregorianToWeek(_0x2e0272,_0x1ecf9c,_0x3f1355)):_0x1eb2a3?(_0x1293d4=orderedOrdinalUnits,_0x4fb472=defaultOrdinalUnitValues,_0x2e0272=gregorianToOrdinal(_0x2e0272)):(_0x1293d4=orderedUnits,_0x4fb472=defaultUnitValues);let _0x58a4ab=!0x1;for(const _0x8afa64 of _0x1293d4){isUndefined(_0x195545[_0x8afa64])?_0x195545[_0x8afa64]=_0x58a4ab?_0x4fb472[_0x8afa64]:_0x2e0272[_0x8afa64]:_0x58a4ab=!0x0;}const _0x2b77ac=(_0x4dba63?hasInvalidWeekData(_0x195545,_0x1ecf9c,_0x3f1355):_0x1eb2a3?hasInvalidOrdinalData(_0x195545):hasInvalidGregorianData(_0x195545))||hasInvalidTimeData(_0x195545);if(_0x2b77ac)return DateTime['invalid'](_0x2b77ac);const _0xe4f0cb=_0x4dba63?weekToGregorian(_0x195545,_0x1ecf9c,_0x3f1355):_0x1eb2a3?ordinalToGregorian(_0x195545):_0x195545,[_0x49b811,_0x28d230]=objToTS(_0xe4f0cb,_0x150c4f,_0x508f8b),_0x402103=new DateTime({'ts':_0x49b811,'zone':_0x508f8b,'o':_0x28d230,'loc':_0x34f6e4});return _0x195545['weekday']&&_0x5351dc&&_0x147a43['weekday']!==_0x402103['weekday']?DateTime['invalid']('mismatched\x20weekday','you\x20can\x27t\x20specify\x20both\x20a\x20weekday\x20of\x20'+_0x195545['weekday']+'\x20and\x20a\x20date\x20of\x20'+_0x402103['toISO']()):_0x402103['isValid']?_0x402103:DateTime['invalid'](_0x402103['invalid']);}static['fromISO'](_0x3b6b90,_0x2c9fd7={}){const [_0x189dc1,_0x584def]=parseISODate(_0x3b6b90);return parseDataToDateTime(_0x189dc1,_0x584def,_0x2c9fd7,'ISO\x208601',_0x3b6b90);}static['fromRFC2822'](_0x653584,_0x1289a7={}){const [_0x2cd304,_0x5f101c]=parseRFC2822Date(_0x653584);return parseDataToDateTime(_0x2cd304,_0x5f101c,_0x1289a7,'RFC\x202822',_0x653584);}static['fromHTTP'](_0x1a225a,_0x1a521a={}){const [_0x331ce5,_0x247359]=parseHTTPDate(_0x1a225a);return parseDataToDateTime(_0x331ce5,_0x247359,_0x1a521a,'HTTP',_0x1a521a);}static['fromFormat'](_0x3f08a9,_0x305fe7,_0x454e68={}){if(isUndefined(_0x3f08a9)||isUndefined(_0x305fe7))throw new InvalidArgumentError('fromFormat\x20requires\x20an\x20input\x20string\x20and\x20a\x20format');const {locale:_0x17279a=null,numberingSystem:_0x2782cb=null}=_0x454e68,_0x122f0e=Locale['fromOpts']({'locale':_0x17279a,'numberingSystem':_0x2782cb,'defaultToEN':!0x0}),[_0x14e586,_0x915022,_0x40cb77,_0x1558ae]=parseFromTokens(_0x122f0e,_0x3f08a9,_0x305fe7);return _0x1558ae?DateTime['invalid'](_0x1558ae):parseDataToDateTime(_0x14e586,_0x915022,_0x454e68,'format\x20'+_0x305fe7,_0x3f08a9,_0x40cb77);}static['fromString'](_0x8f06a4,_0x10c915,_0x5bf7fe={}){return DateTime['fromFormat'](_0x8f06a4,_0x10c915,_0x5bf7fe);}static['fromSQL'](_0x237b7b,_0x2ab82f={}){const [_0x2f69ec,_0x42571d]=parseSQL(_0x237b7b);return parseDataToDateTime(_0x2f69ec,_0x42571d,_0x2ab82f,'SQL',_0x237b7b);}static['invalid'](_0x1eebe8,_0x4cd1dc=null){if(!_0x1eebe8)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20DateTime\x20is\x20invalid');const _0x4df68d=_0x1eebe8 instanceof Invalid?_0x1eebe8:new Invalid(_0x1eebe8,_0x4cd1dc);if(Settings['throwOnInvalid'])throw new InvalidDateTimeError(_0x4df68d);return new DateTime({'invalid':_0x4df68d});}static['isDateTime'](_0x116e0f){return _0x116e0f&&_0x116e0f['isLuxonDateTime']||!0x1;}static['parseFormatForOpts'](_0x345553,_0x48d49f={}){const _0x36b94b=formatOptsToTokens(_0x345553,Locale['fromObject'](_0x48d49f));return _0x36b94b?_0x36b94b['map'](t=>t?t['val']:null)['join'](''):null;}static['expandFormat'](_0x545de8,_0x58476f={}){return expandMacroTokens(Formatter['parseFormat'](_0x545de8),Locale['fromObject'](_0x58476f))['map'](t=>t['val'])['join']('');}static['resetCache'](){zoneOffsetTs=void 0x0,zoneOffsetGuessCache['clear']();}['get'](_0x36401b){return this[_0x36401b];}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 _0x4aab77=0x5265c00,_0x21e2da=0xea60,_0x305131=objToLocalTS(this['c']),_0x8ff96a=this['zone']['offset'](_0x305131-_0x4aab77),_0x38ff91=this['zone']['offset'](_0x305131+_0x4aab77),_0x2d56fa=this['zone']['offset'](_0x305131-_0x8ff96a*_0x21e2da),_0x439aef=this['zone']['offset'](_0x305131-_0x38ff91*_0x21e2da);if(_0x2d56fa===_0x439aef)return[this];const _0x49dc03=_0x305131-_0x2d56fa*_0x21e2da,_0x5c9b17=_0x305131-_0x439aef*_0x21e2da,_0x2587d3=tsToObj(_0x49dc03,_0x2d56fa),_0x40b2a9=tsToObj(_0x5c9b17,_0x439aef);return _0x2587d3['hour']===_0x40b2a9['hour']&&_0x2587d3['minute']===_0x40b2a9['minute']&&_0x2587d3['second']===_0x40b2a9['second']&&_0x2587d3['millisecond']===_0x40b2a9['millisecond']?[clone(this,{'ts':_0x49dc03}),clone(this,{'ts':_0x5c9b17})]:[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'](_0x5312ae={}){const {locale:_0x576ede,numberingSystem:_0x3eb1d5,calendar:_0x3704eb}=Formatter['create'](this['loc']['clone'](_0x5312ae),_0x5312ae)['resolvedOptions'](this);return{'locale':_0x576ede,'numberingSystem':_0x3eb1d5,'outputCalendar':_0x3704eb};}['toUTC'](_0x26e506=0x0,_0x13db3e={}){return this['setZone'](FixedOffsetZone['instance'](_0x26e506),_0x13db3e);}['toLocal'](){return this['setZone'](Settings['defaultZone']);}['setZone'](_0x50af42,{keepLocalTime:_0x2423ea=!0x1,keepCalendarTime:_0x288e87=!0x1}={}){if((_0x50af42=normalizeZone(_0x50af42,Settings['defaultZone']))['equals'](this['zone']))return this;if(_0x50af42['isValid']){let _0x164e99=this['ts'];if(_0x2423ea||_0x288e87){const _0x205852=_0x50af42['offset'](this['ts']),_0x3e0c33=this['toObject']();[_0x164e99]=objToTS(_0x3e0c33,_0x205852,_0x50af42);}return clone(this,{'ts':_0x164e99,'zone':_0x50af42});}return DateTime['invalid'](unsupportedZone(_0x50af42));}['reconfigure']({locale:_0x16dce6,numberingSystem:_0x242822,outputCalendar:_0x62c27}={}){return clone(this,{'loc':this['loc']['clone']({'locale':_0x16dce6,'numberingSystem':_0x242822,'outputCalendar':_0x62c27})});}['setLocale'](_0x1bf787){return this['reconfigure']({'locale':_0x1bf787});}['set'](_0xc406e6){if(!this['isValid'])return this;const _0x4a1fa6=normalizeObject(_0xc406e6,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_0x55961c,startOfWeek:_0xa18e5}=usesLocalWeekValues(_0x4a1fa6,this['loc']),_0x3424c3=!isUndefined(_0x4a1fa6['weekYear'])||!isUndefined(_0x4a1fa6['weekNumber'])||!isUndefined(_0x4a1fa6['weekday']),_0x37bd24=!isUndefined(_0x4a1fa6['ordinal']),_0x531ddb=!isUndefined(_0x4a1fa6['year']),_0x8cedfe=!isUndefined(_0x4a1fa6['month'])||!isUndefined(_0x4a1fa6['day']),_0x56396e=_0x531ddb||_0x8cedfe,_0x1786f1=_0x4a1fa6['weekYear']||_0x4a1fa6['weekNumber'];if((_0x56396e||_0x37bd24)&&_0x1786f1)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x8cedfe&&_0x37bd24)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');let _0x120b9e;_0x3424c3?_0x120b9e=weekToGregorian({...gregorianToWeek(this['c'],_0x55961c,_0xa18e5),..._0x4a1fa6},_0x55961c,_0xa18e5):isUndefined(_0x4a1fa6['ordinal'])?(_0x120b9e={...this['toObject'](),..._0x4a1fa6},isUndefined(_0x4a1fa6['day'])&&(_0x120b9e['day']=Math['min'](daysInMonth(_0x120b9e['year'],_0x120b9e['month']),_0x120b9e['day']))):_0x120b9e=ordinalToGregorian({...gregorianToOrdinal(this['c']),..._0x4a1fa6});const [_0x5eee44,_0x3da466]=objToTS(_0x120b9e,this['o'],this['zone']);return clone(this,{'ts':_0x5eee44,'o':_0x3da466});}['plus'](_0x3be7de){if(!this['isValid'])return this;return clone(this,adjustTime(this,Duration['fromDurationLike'](_0x3be7de)));}['minus'](_0x39753f){if(!this['isValid'])return this;return clone(this,adjustTime(this,Duration['fromDurationLike'](_0x39753f)['negate']()));}['startOf'](_0x2b3e5d,{useLocaleWeeks:_0x284b57=!0x1}={}){if(!this['isValid'])return this;const _0x4b72af={},_0x1f7785=Duration['normalizeUnit'](_0x2b3e5d);switch(_0x1f7785){case'years':_0x4b72af['month']=0x1;case'quarters':case'months':_0x4b72af['day']=0x1;case'weeks':case'days':_0x4b72af['hour']=0x0;case'hours':_0x4b72af['minute']=0x0;case'minutes':_0x4b72af['second']=0x0;case'seconds':_0x4b72af['millisecond']=0x0;}if('weeks'===_0x1f7785){if(_0x284b57){const _0x318f68=this['loc']['getStartOfWeek'](),{weekday:_0xfdeaa5}=this;_0xfdeaa5<_0x318f68&&(_0x4b72af['weekNumber']=this['weekNumber']-0x1),_0x4b72af['weekday']=_0x318f68;}else _0x4b72af['weekday']=0x1;}if('quarters'===_0x1f7785){const _0x5f3f75=Math['ceil'](this['month']/0x3);_0x4b72af['month']=0x3*(_0x5f3f75-0x1)+0x1;}return this['set'](_0x4b72af);}['endOf'](_0x41018e,_0xfddde2){return this['isValid']?this['plus']({[_0x41018e]:0x1})['startOf'](_0x41018e,_0xfddde2)['minus'](0x1):this;}['toFormat'](_0x550d30,_0x3937fc={}){return this['isValid']?Formatter['create'](this['loc']['redefaultToEN'](_0x3937fc))['formatDateTimeFromString'](this,_0x550d30):INVALID;}['toLocaleString'](_0x2849c5=DATE_SHORT,_0x172e89={}){return this['isValid']?Formatter['create'](this['loc']['clone'](_0x172e89),_0x2849c5)['formatDateTime'](this):INVALID;}['toLocaleParts'](_0x40484f={}){return this['isValid']?Formatter['create'](this['loc']['clone'](_0x40484f),_0x40484f)['formatDateTimeParts'](this):[];}['toISO']({format:_0x422231='extended',suppressSeconds:_0x5ba109=!0x1,suppressMilliseconds:_0x1c79a5=!0x1,includeOffset:_0x52d67e=!0x0,extendedZone:_0x4e83c4=!0x1}={}){if(!this['isValid'])return null;const _0xe20d65='extended'===_0x422231;let _0x34ed94=toISODate(this,_0xe20d65);return _0x34ed94+='T',_0x34ed94+=toISOTime(this,_0xe20d65,_0x5ba109,_0x1c79a5,_0x52d67e,_0x4e83c4),_0x34ed94;}['toISODate']({format:_0x37ea79='extended'}={}){return this['isValid']?toISODate(this,'extended'===_0x37ea79):null;}['toISOWeekDate'](){return toTechFormat(this,'kkkk-\x27W\x27WW-c');}['toISOTime']({suppressMilliseconds:_0x12d794=!0x1,suppressSeconds:_0xc19dc7=!0x1,includeOffset:_0x3eecce=!0x0,includePrefix:_0x5b21ff=!0x1,extendedZone:_0xa925e7=!0x1,format:_0x19b741='extended'}={}){if(!this['isValid'])return null;return(_0x5b21ff?'T':'')+toISOTime(this,'extended'===_0x19b741,_0xc19dc7,_0x12d794,_0x3eecce,_0xa925e7);}['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:_0x757505=!0x0,includeZone:_0x4a34f6=!0x1,includeOffsetSpace:_0x528843=!0x0}={}){let _0x2fefff='HH:mm:ss.SSS';return(_0x4a34f6||_0x757505)&&(_0x528843&&(_0x2fefff+='\x20'),_0x4a34f6?_0x2fefff+='z':_0x757505&&(_0x2fefff+='ZZ')),toTechFormat(this,_0x2fefff,!0x0);}['toSQL'](_0x5328dc={}){return this['isValid']?this['toSQLDate']()+'\x20'+this['toSQLTime'](_0x5328dc):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'](_0x578ec4={}){if(!this['isValid'])return{};const _0x179fa6={...this['c']};return _0x578ec4['includeConfig']&&(_0x179fa6['outputCalendar']=this['outputCalendar'],_0x179fa6['numberingSystem']=this['loc']['numberingSystem'],_0x179fa6['locale']=this['loc']['locale']),_0x179fa6;}['toJSDate'](){return new Date(this['isValid']?this['ts']:NaN);}['diff'](_0x2658ff,_0x27d099='milliseconds',_0xf5274f={}){if(!this['isValid']||!_0x2658ff['isValid'])return Duration['invalid']('created\x20by\x20diffing\x20an\x20invalid\x20DateTime');const _0x37b05c={'locale':this['locale'],'numberingSystem':this['numberingSystem'],..._0xf5274f},_0x1184e5=maybeArray(_0x27d099)['map'](Duration['normalizeUnit']),_0x3855bb=_0x2658ff['valueOf']()>this['valueOf'](),_0x125757=diff(_0x3855bb?this:_0x2658ff,_0x3855bb?_0x2658ff:this,_0x1184e5,_0x37b05c);return _0x3855bb?_0x125757['negate']():_0x125757;}['diffNow'](_0x25bb97='milliseconds',_0x419a8={}){return this['diff'](DateTime['now'](),_0x25bb97,_0x419a8);}['until'](_0x52250a){return this['isValid']?Interval['fromDateTimes'](this,_0x52250a):this;}['hasSame'](_0x4e5b22,_0x17bf61,_0x9b3ce7){if(!this['isValid'])return!0x1;const _0x1c0e01=_0x4e5b22['valueOf'](),_0x55d090=this['setZone'](_0x4e5b22['zone'],{'keepLocalTime':!0x0});return _0x55d090['startOf'](_0x17bf61,_0x9b3ce7)<=_0x1c0e01&&_0x1c0e01<=_0x55d090['endOf'](_0x17bf61,_0x9b3ce7);}['equals'](_0x324930){return this['isValid']&&_0x324930['isValid']&&this['valueOf']()===_0x324930['valueOf']()&&this['zone']['equals'](_0x324930['zone'])&&this['loc']['equals'](_0x324930['loc']);}['toRelative'](_0x3cf0fc={}){if(!this['isValid'])return null;const _0x3349bd=_0x3cf0fc['base']||DateTime['fromObject']({},{'zone':this['zone']}),_0x29b893=_0x3cf0fc['padding']?this<_0x3349bd?-_0x3cf0fc['padding']:_0x3cf0fc['padding']:0x0;let _0x1a585f=['years','months','days','hours','minutes','seconds'],_0x40b066=_0x3cf0fc['unit'];return Array['isArray'](_0x3cf0fc['unit'])&&(_0x1a585f=_0x3cf0fc['unit'],_0x40b066=void 0x0),diffRelative(_0x3349bd,this['plus'](_0x29b893),{..._0x3cf0fc,'numeric':'always','units':_0x1a585f,'unit':_0x40b066});}['toRelativeCalendar'](_0x55c57d={}){return this['isValid']?diffRelative(_0x55c57d['base']||DateTime['fromObject']({},{'zone':this['zone']}),this,{..._0x55c57d,'numeric':'auto','units':['years','months','days'],'calendary':!0x0}):null;}static['min'](..._0x4cbeba){if(!_0x4cbeba['every'](DateTime['isDateTime']))throw new InvalidArgumentError('min\x20requires\x20all\x20arguments\x20be\x20DateTimes');return bestBy(_0x4cbeba,_0x4a0d09=>_0x4a0d09['valueOf'](),Math['min']);}static['max'](..._0x337178){if(!_0x337178['every'](DateTime['isDateTime']))throw new InvalidArgumentError('max\x20requires\x20all\x20arguments\x20be\x20DateTimes');return bestBy(_0x337178,_0x15d44f=>_0x15d44f['valueOf'](),Math['max']);}static['fromFormatExplain'](_0x3f2029,_0xcb19f8,_0x198198={}){const {locale:_0x2debf9=null,numberingSystem:_0x1b1d47=null}=_0x198198;return explainFromTokens(Locale['fromOpts']({'locale':_0x2debf9,'numberingSystem':_0x1b1d47,'defaultToEN':!0x0}),_0x3f2029,_0xcb19f8);}static['fromStringExplain'](_0x25eb2c,_0x348663,_0x457e1f={}){return DateTime['fromFormatExplain'](_0x25eb2c,_0x348663,_0x457e1f);}static['buildFormatParser'](_0x59bbbd,_0xba121a={}){const {locale:_0x43dea9=null,numberingSystem:_0x8f1ac4=null}=_0xba121a,_0xc2e7e0=Locale['fromOpts']({'locale':_0x43dea9,'numberingSystem':_0x8f1ac4,'defaultToEN':!0x0});return new TokenParser(_0xc2e7e0,_0x59bbbd);}static['fromFormatParser'](_0x589894,_0xe40986,_0x2e7c8b={}){if(isUndefined(_0x589894)||isUndefined(_0xe40986))throw new InvalidArgumentError('fromFormatParser\x20requires\x20an\x20input\x20string\x20and\x20a\x20format\x20parser');const {locale:_0x451dd1=null,numberingSystem:_0x466f1a=null}=_0x2e7c8b,_0x416a48=Locale['fromOpts']({'locale':_0x451dd1,'numberingSystem':_0x466f1a,'defaultToEN':!0x0});if(!_0x416a48['equals'](_0xe40986['locale']))throw new InvalidArgumentError('fromFormatParser\x20called\x20with\x20a\x20locale\x20of\x20'+_0x416a48+',\x20but\x20the\x20format\x20parser\x20was\x20created\x20for\x20'+_0xe40986['locale']);const {result:_0x17a56f,zone:_0x1e58cd,specificOffset:_0x2d0b46,invalidReason:_0x42958f}=_0xe40986['explainFromTokens'](_0x589894);return _0x42958f?DateTime['invalid'](_0x42958f):parseDataToDateTime(_0x17a56f,_0x1e58cd,_0x2e7c8b,'format\x20'+_0xe40986['format'],_0x589894,_0x2d0b46);}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(_0x5f5470){if(DateTime['isDateTime'](_0x5f5470))return _0x5f5470;if(_0x5f5470&&_0x5f5470['valueOf']&&isNumber(_0x5f5470['valueOf']()))return DateTime['fromJSDate'](_0x5f5470);if(_0x5f5470&&'object'==typeof _0x5f5470)return DateTime['fromObject'](_0x5f5470);throw new InvalidArgumentError('Unknown\x20datetime\x20argument:\x20'+_0x5f5470+',\x20of\x20type\x20'+typeof _0x5f5470);}function getDateTimeFormatter(_0x27dc4c={},_0x3f2ea6){if(void 0x0!==_0x27dc4c['dateTimeFormat']&&'function'!=typeof _0x27dc4c['dateTimeFormat'])throw new CKEditorError('invalid-date-time-format');return _0x37dfe9=>{const _0x25d7f9='string'==typeof _0x37dfe9?DateTime['fromISO'](_0x37dfe9):DateTime['fromJSDate'](_0x37dfe9),_0x527cb8=DateTime['now'](),_0x2f7fc8=Math['floor'](_0x527cb8['diff'](_0x25d7f9,'days')['days']);return _0x27dc4c['dateTimeFormat']?_0x27dc4c['dateTimeFormat'](_0x25d7f9['toJSDate'](),_0x3f2ea6&&_0x3f2ea6['t']?_0x3f2ea6['t']:void 0x0):0x0===_0x2f7fc8?_0x3f2ea6?getTranslation$h(_0x3f2ea6,'Today')+'\x20'+_0x25d7f9['toFormat']('hh:mma'):_0x25d7f9['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x2f7fc8?_0x3f2ea6?getTranslation$h(_0x3f2ea6,'Yesterday')+'\x20'+_0x25d7f9['toFormat']('hh:mma'):_0x25d7f9['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x2f7fc8<0x7?_0x3f2ea6?getTranslation$h(_0x3f2ea6,'Last')+'\x20'+getTranslation$h(_0x3f2ea6,_0x25d7f9['toFormat']('EEEE'))+'\x20'+_0x25d7f9['toFormat']('hh:mma'):_0x25d7f9['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x25d7f9['toFormat']('LL-dd-yyyy\x20hh:mma');};}function getMarkerDomElement(_0x4cf34d,_0x37f6ba){const _0x4e4a43=_0x4cf34d['mapper']['markerNameToElements'](_0x37f6ba['name']);if(!_0x4e4a43)return null;const _0x481c67=first(_0x4e4a43['values']());return _0x4cf34d['view']['domConverter']['mapViewToDom'](_0x481c67)||null;}function getAllMarkersDomElementsSorted(_0xc565bb,_0x1d3e4a){if(0x0===_0x1d3e4a['length'])return null;const _0x5388a6=[],_0x1a9674=_0xc565bb['view']['domConverter'];for(const _0x2a7460 of _0x1d3e4a){const _0x331886=_0xc565bb['mapper']['markerNameToElements'](_0x2a7460['name']);if(!_0x331886)continue;const _0x2df4f5=Array['from'](_0x331886)['map'](_0x345730=>_0x1a9674['mapViewToDom'](_0x345730))['filter'](_0x58c74a=>!!_0x58c74a);_0x5388a6['push'](..._0x2df4f5);}if(0x0===_0x5388a6['length'])return null;const _0x391088=[];for(const _0x42d37b of _0x5388a6){const _0x1e00ef=_0x42d37b['getClientRects']()['item'](0x0);_0x1e00ef&&_0x391088['push']({'x':_0x1e00ef['x'],'y':_0x1e00ef['y'],'domElement':_0x42d37b});}return 0x0===_0x391088['length']?null:(_0x391088['sort']((_0x5c2993,_0xd10cb6)=>_0x5c2993['y']-_0xd10cb6['y']||_0x5c2993['x']-_0xd10cb6['x']),_0x391088['map'](_0x34b765=>_0x34b765['domElement']));}function trimHtml(_0x421629,{limit:_0x5b5169,suffix:_0x2e5052='...'}){const _0x1c2f14=[];let _0x1b2b48=0x0;const _0x40d40d=_0x421629['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x10a738=0x0;_0x10a738<_0x40d40d['length'];_0x10a738++){let _0x39e067=_0x40d40d[_0x10a738];const _0xd3db38=splitCharactersToArray(_0x39e067);if(_0x39e067['startsWith']('<')){if(_0x1b2b48>=_0x5b5169){const _0x56e05a=_0x39e067['match'](/[a-zA-Z]+/);if(!_0x56e05a){_0x40d40d[_0x10a738]='';continue;}const _0x3cf8fb=_0x56e05a[0x0];_0x39e067['startsWith']('</')?(_0x1c2f14['length']&&(_0x39e067=''),_0x1c2f14['pop']()):(_0x1c2f14['push'](_0x3cf8fb),_0x39e067='');}}else{if(_0x1b2b48>=_0x5b5169)_0x39e067='';else{if(_0x1b2b48+_0xd3db38['length']>=_0x5b5169){let _0x14e0ed=_0x5b5169-_0x1b2b48;if('\x20'===_0xd3db38[_0x14e0ed-0x1])_0x14e0ed--;else{const _0xfbc196=_0xd3db38['slice'](_0x14e0ed)['indexOf']('\x20');-0x1!==_0xfbc196?_0x14e0ed+=_0xfbc196:_0x14e0ed=_0x39e067['length'];}_0x39e067=_0xd3db38['slice'](0x0,_0x14e0ed)['join']('')+_0x2e5052,_0x1b2b48=_0x5b5169;}else _0x1b2b48+=_0xd3db38['length'];}}_0x40d40d[_0x10a738]=_0x39e067;}return _0x40d40d['join']('\x0a')['replace'](/\n/g,'');}function splitCharactersToArray(_0x4c1979){const _0x1da320=[];for(let _0x452207=0x0;_0x452207<_0x4c1979['length'];_0x452207++){const _0x5bce68=_0x4c1979['substring'](_0x452207)['match'](/^&[a-z0-9#]+;/);if(_0x5bce68){const _0x22148f=_0x5bce68[0x0];_0x1da320['push'](_0x22148f),_0x452207+=_0x22148f['length']-0x1;}else _0x1da320['push'](_0x4c1979[_0x452207]);}return _0x1da320;}class ConfirmView extends View{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x5cdcb2){super(_0x5cdcb2);const _0x345bda=this['bindTemplate'];this['set']('message',getTranslation$h(_0x5cdcb2,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x5cdcb2,getTranslation$h(_0x5cdcb2,'Yes'),IconCheck,'submit'),this['cancelView']=this['_createButtonView'](_0x5cdcb2,getTranslation$h(_0x5cdcb2,'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':_0x345bda['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'](_0x1edbb3,_0x214b08,_0x28a7ac,_0x4564ab){const _0x2b0f2a=new ButtonView(_0x1edbb3);return _0x2b0f2a['label']=_0x214b08,_0x2b0f2a['icon']=_0x28a7ac,_0x2b0f2a['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x4564ab}}),_0x2b0f2a['on']('execute',()=>this['fire'](_0x4564ab)),_0x2b0f2a;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x18cf53=>{this['keystrokes']['listenTo'](_0x18cf53['element']),this['focusTracker']['add'](_0x18cf53['element']);}),this['keystrokes']['set']('esc',(_0x7522c1,_0x155266)=>{this['fire']('cancel'),_0x155266();});}}function ConfirmMixin(_0x353e6f){return class extends _0x353e6f{['showConfirm'](_0x527e3f,_0x354966){return this['confirmView']=new ConfirmView(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x527e3f,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x354966['appendChild'](this['confirmView']['element']),_0x354966['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x4bcd6b,_0x13ba74,_0x2838be)=>{_0x2838be||_0x354966['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x166013=>this['confirmView']['on']('submit',_0x166013));}['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(_0x4b9426){let _0x552004=0x0,_0x433b54=0x0;for(const _0x52dbb1 of objectToNumberGenerator(_0x4b9426))_0x552004=(_0x552004<<0x5)-_0x552004+_0x52dbb1,_0x552004&=_0x552004,[_0x552004,_0x433b54]=[_0x433b54,_0x552004];return toString$1(_0x552004)+toString$1(_0x433b54);}function*toNumberGenerator(_0x826736){null==_0x826736||null==_0x826736?yield 0x12b9b0a1:0x0===_0x826736||!0x1===_0x826736?yield 0x0:0x1===_0x826736||0x1==_0x826736?yield 0x1:Array['isArray'](_0x826736)?yield*arrayToNumberGenerator(_0x826736):'object'==typeof _0x826736?yield*objectToNumberGenerator(_0x826736):'string'==typeof _0x826736?yield*stringToNumberGenerator(_0x826736):'number'==typeof _0x826736&&(yield _0x826736);}function*objectToNumberGenerator(_0x59d0e6){if(yield charCode('{'),_0x59d0e6){const _0x5bca33=Object['keys'](_0x59d0e6)['sort']();for(const _0xe00c37 of _0x5bca33){yield*stringToNumberGenerator(_0xe00c37),yield charCode(':');const _0x531956=_0x59d0e6[_0xe00c37];yield*toNumberGenerator(_0x531956);}}yield charCode('}');}function*arrayToNumberGenerator(_0x1b6284){for(const _0x1fcb28 of _0x1b6284)yield*toNumberGenerator(_0x1fcb28);}function*stringToNumberGenerator(_0x260c2f){yield charCode('\x22');for(const _0x487bd0 of _0x260c2f)yield charCode(_0x487bd0);yield charCode('\x22');}function charCode(_0x3f828f){return _0x3f828f['charCodeAt'](0x0);}function toString$1(_0xd793f9){return(_0xd793f9*=Math['sign'](_0xd793f9))['toString'](0x24);}const blackListedConfigOptions=['root','roots','initialData','context','toolbar','rootsAttributes'],blackListedPlugins$2=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function skipRtcPlugins(_0x26dd65,_0x116052,_0x25a745,_0x3173f2=[]){const _0x2079c0='string'==typeof _0x26dd65?_0x25a745['get'](_0x26dd65)['constructor']:_0x26dd65['prototype']['constructor'];if(_0x116052['has'](_0x2079c0))return _0x116052['get'](_0x2079c0);_0x116052['set'](_0x2079c0,!0x0);const _0x19bfd9=[...blackListedPlugins$2,..._0x3173f2]['map'](_0x23bfc1=>{if(_0x25a745['has'](_0x23bfc1))return _0x25a745['get'](_0x23bfc1)['constructor'];})['filter'](_0x539f2a=>_0x539f2a);if(_0x2079c0&&_0x19bfd9['includes'](_0x2079c0))return _0x116052['set'](_0x2079c0,!0x1),!0x1;if(!_0x2079c0['requires'])return _0x116052['set'](_0x2079c0,!0x0),!0x0;const _0x3cdb98=_0x2079c0['requires']['every'](_0x24515d=>skipRtcPlugins(_0x24515d,_0x116052,_0x25a745,_0x3173f2));return _0x116052['set'](_0x2079c0,_0x3cdb98),_0x3cdb98;}function sanitizeEditorConfig(_0x586f8d,_0x249630){const _0x8f0ba1={};for(const _0xaccaaa of _0x586f8d['config']['names']())blackListedConfigOptions['includes'](_0xaccaaa)||(_0x8f0ba1[_0xaccaaa]=_0x586f8d['config']['get'](_0xaccaaa));const _0x7c581d=_0x8f0ba1['plugins']||[],_0x338476=_0x586f8d['constructor']['builtinPlugins']||[],_0x2cfd4e=_0x7c581d['length']?_0x7c581d:_0x338476,_0x21b157=_0x8f0ba1['extraPlugins']||[];delete _0x8f0ba1['extraPlugins'];const _0x2bc91b=_0x8f0ba1['removePlugins']||[];delete _0x8f0ba1['removePlugins'];const _0xab213b=_0x586f8d['_context']['config']['get']('plugins')||[],_0x2e751f=_0x2cfd4e['concat'](_0x21b157)['concat'](_0xab213b)['map'](_0x122e0d=>'string'==typeof _0x122e0d?_0x338476['find'](_0x14b457=>_0x14b457['pluginName']==_0x122e0d):_0x122e0d)['filter'](_0x306fc8=>!_0x2bc91b['includes'](_0x306fc8)&&!_0x2bc91b['includes'](_0x306fc8['pluginName'])),_0x473e18=Array['from'](new Set(_0x2e751f)),_0x1559e5=new Map();return _0x8f0ba1['plugins']=_0x473e18['filter'](_0x5541ff=>skipRtcPlugins(_0x5541ff,_0x1559e5,_0x586f8d['plugins'],_0x249630)),_0x8f0ba1;}function surroundingMarkersDetector(_0x51a76a,_0x4eebf0){const _0x3c4581=[];_0x51a76a['document']['selection']['on']('change:range',()=>{const _0x538eef=getSurroundingMarkers(_0x51a76a,_0x51a76a['document']['selection']['focus']),_0x5bcd12=[],_0xa84c22=[],_0xa7ae1f=[];for(const _0x104878 of _0x3c4581)_0x538eef['includes'](_0x104878)||_0x5bcd12['push'](_0x104878);for(const _0x5bfe70 of _0x538eef)_0x3c4581['includes'](_0x5bfe70)||_0xa84c22['push'](_0x5bfe70),_0xa7ae1f['push'](_0x5bfe70);(_0x5bcd12['length']||_0xa84c22['length'])&&_0x4eebf0({'left':_0x5bcd12,'entered':_0xa84c22}),_0x3c4581['length']=0x0,_0x3c4581['push'](..._0xa7ae1f);});}function getSurroundingMarkers(_0x1ca0ac,_0x5e26a1){const _0x1e0390=[];for(const _0x4b65b8 of _0x1ca0ac['markers']){const _0x3f1664=_0x4b65b8['getRange']();(_0x3f1664['containsPosition'](_0x5e26a1)||_0x3f1664['start']['isEqual'](_0x5e26a1)||_0x3f1664['end']['isEqual'](_0x5e26a1))&&_0x1e0390['push'](_0x4b65b8);}return _0x1e0390;}const FOCUS_ANNOTATION_KEYSTROKE='Ctrl+Shift+E';function setupThreadKeyboardNavigation(_0x5363fb,_0x8fcb86){const _0x2d8e27=_0x5363fb['element'];_0x5363fb['keystrokes']['listenTo'](_0x2d8e27);for(const _0x5300a8 of _0x8fcb86)addViewToFocusCyclerNavigation(_0x5363fb,_0x5300a8);_0x8fcb86['on']('change',(_0x5ec361,_0x113939)=>{for(const _0x3c6321 of _0x113939['removed'])removeViewFromFocusCyclerNavigation(_0x5363fb,_0x3c6321);for(const _0x358a7c of Array['from'](_0x113939['added'])['reverse']())addViewToFocusCyclerNavigation(_0x5363fb,_0x358a7c);}),_0x5363fb['keystrokes']['set']('enter',(_0x2c9be7,_0xf838f0)=>{_0x2d8e27===_0x2c9be7['target']&&(_0x5363fb['focusCycler']['focusFirst'](),_0xf838f0());},{'filter':_0x1d167e=>_0x1d167e['target']===_0x2d8e27}),_0x5363fb['keystrokes']['set']('esc',(_0x2a0aee,_0x417a50)=>{_0x2d8e27!==_0x2a0aee['target']?_0x5363fb['focus']():_0x5363fb['fire']('escape'),_0x417a50();}),_0x5363fb['keystrokes']['set']('arrowdown',(_0x9af709,_0x30023a)=>{_0x2d8e27===_0x9af709['target']&&(_0x5363fb['fire']('arrowdown'),_0x30023a());}),_0x5363fb['keystrokes']['set']('arrowup',(_0x3cb1f3,_0x3e9544)=>{_0x2d8e27===_0x3cb1f3['target']&&(_0x5363fb['fire']('arrowup'),_0x3e9544());});}function addViewToFocusCyclerNavigation(_0x5e3649,_0x554358){_0x554358['isRendered']&&(_0x5e3649['focusTracker']['add'](_0x554358['element']),_0x5e3649['keystrokes']['listenTo'](_0x554358['element']),isViewWithFocusCycler(_0x554358)&&areFocusCyclerActionsCompatible(_0x5e3649['focusCycler'],_0x554358['focusCycler'])&&_0x5e3649['focusCycler']['chain'](_0x554358['focusCycler']));}function removeViewFromFocusCyclerNavigation(_0xbdb98b,_0x38eae4){_0xbdb98b['focusTracker']['remove'](_0x38eae4['element']),_0xbdb98b['keystrokes']['stopListening'](_0x38eae4['element']),isViewWithFocusCycler(_0x38eae4)&&_0xbdb98b['focusCycler']['unchain'](_0x38eae4['focusCycler']);}function areFocusCyclerActionsCompatible(_0x572bac,_0x285487){const _0x553c77=_0x572bac['actions'],_0x2f6d06=_0x285487['actions'];for(const _0xbcd552 of Object['keys'](_0x553c77))if(_0xbcd552 in _0x2f6d06&&_0x553c77[_0xbcd552]!==_0x2f6d06[_0xbcd552])return!0x1;return!0x0;}class Diff{['diff'](_0x3fdb3d,_0x3e8092,_0x4aa096={}){let _0x2ee325;'function'==typeof _0x4aa096?(_0x2ee325=_0x4aa096,_0x4aa096={}):'callback'in _0x4aa096&&(_0x2ee325=_0x4aa096['callback']);const _0x2f8ca9=this['castInput'](_0x3fdb3d,_0x4aa096),_0x4ba8ac=this['castInput'](_0x3e8092,_0x4aa096),_0x2c7447=this['removeEmpty'](this['tokenize'](_0x2f8ca9,_0x4aa096)),_0x4d6b3e=this['removeEmpty'](this['tokenize'](_0x4ba8ac,_0x4aa096));return this['diffWithOptionsObj'](_0x2c7447,_0x4d6b3e,_0x4aa096,_0x2ee325);}['diffWithOptionsObj'](_0x3f452b,_0x1cfd08,_0x15ccf0,_0x3551ce){var _0x193caa;const _0x567020=_0x3dd3a7=>(_0x3dd3a7=this['postProcess'](_0x3dd3a7,_0x15ccf0),_0x3551ce?void setTimeout(function(){_0x3551ce(_0x3dd3a7);},0x0):_0x3dd3a7),_0x13573b=_0x1cfd08['length'],_0xfe4938=_0x3f452b['length'];let _0x380d0a=0x1,_0x39ff73=_0x13573b+_0xfe4938;null!=_0x15ccf0['maxEditLength']&&(_0x39ff73=Math['min'](_0x39ff73,_0x15ccf0['maxEditLength']));const _0x3414c8=null!==(_0x193caa=_0x15ccf0['timeout'])&&void 0x0!==_0x193caa?_0x193caa:0x1/0x0,_0x4e7472=Date['now']()+_0x3414c8,_0x5ee4d3=[{'oldPos':-0x1,'lastComponent':void 0x0}];let _0x1b7a60=this['extractCommon'](_0x5ee4d3[0x0],_0x1cfd08,_0x3f452b,0x0,_0x15ccf0);if(_0x5ee4d3[0x0]['oldPos']+0x1>=_0xfe4938&&_0x1b7a60+0x1>=_0x13573b)return _0x567020(this['buildValues'](_0x5ee4d3[0x0]['lastComponent'],_0x1cfd08,_0x3f452b));let _0xed34dc=-0x1/0x0,_0x32d6e1=0x1/0x0;const _0x2a9085=()=>{for(let _0x4e34f=Math['max'](_0xed34dc,-_0x380d0a);_0x4e34f<=Math['min'](_0x32d6e1,_0x380d0a);_0x4e34f+=0x2){let _0x4b11d6;const _0x2362c7=_0x5ee4d3[_0x4e34f-0x1],_0x31658c=_0x5ee4d3[_0x4e34f+0x1];_0x2362c7&&(_0x5ee4d3[_0x4e34f-0x1]=void 0x0);let _0x420eec=!0x1;if(_0x31658c){const _0x3cfd0d=_0x31658c['oldPos']-_0x4e34f;_0x420eec=_0x31658c&&0x0<=_0x3cfd0d&&_0x3cfd0d<_0x13573b;}const _0x45046=_0x2362c7&&_0x2362c7['oldPos']+0x1<_0xfe4938;if(_0x420eec||_0x45046){if(_0x4b11d6=!_0x45046||_0x420eec&&_0x2362c7['oldPos']<_0x31658c['oldPos']?this['addToPath'](_0x31658c,!0x0,!0x1,0x0,_0x15ccf0):this['addToPath'](_0x2362c7,!0x1,!0x0,0x1,_0x15ccf0),_0x1b7a60=this['extractCommon'](_0x4b11d6,_0x1cfd08,_0x3f452b,_0x4e34f,_0x15ccf0),_0x4b11d6['oldPos']+0x1>=_0xfe4938&&_0x1b7a60+0x1>=_0x13573b)return _0x567020(this['buildValues'](_0x4b11d6['lastComponent'],_0x1cfd08,_0x3f452b))||!0x0;_0x5ee4d3[_0x4e34f]=_0x4b11d6,_0x4b11d6['oldPos']+0x1>=_0xfe4938&&(_0x32d6e1=Math['min'](_0x32d6e1,_0x4e34f-0x1)),_0x1b7a60+0x1>=_0x13573b&&(_0xed34dc=Math['max'](_0xed34dc,_0x4e34f+0x1));}else _0x5ee4d3[_0x4e34f]=void 0x0;}_0x380d0a++;};if(_0x3551ce)!function _0x5f0ee6(){setTimeout(function(){if(_0x380d0a>_0x39ff73||Date['now']()>_0x4e7472)return _0x3551ce(void 0x0);_0x2a9085()||_0x5f0ee6();},0x0);}();else for(;_0x380d0a<=_0x39ff73&&Date['now']()<=_0x4e7472;){const _0x5e947d=_0x2a9085();if(_0x5e947d)return _0x5e947d;}}['addToPath'](_0x1848be,_0x1fc44d,_0x252304,_0x3a84df,_0x50e4a0){const _0x5088fa=_0x1848be['lastComponent'];return _0x5088fa&&!_0x50e4a0['oneChangePerToken']&&_0x5088fa['added']===_0x1fc44d&&_0x5088fa['removed']===_0x252304?{'oldPos':_0x1848be['oldPos']+_0x3a84df,'lastComponent':{'count':_0x5088fa['count']+0x1,'added':_0x1fc44d,'removed':_0x252304,'previousComponent':_0x5088fa['previousComponent']}}:{'oldPos':_0x1848be['oldPos']+_0x3a84df,'lastComponent':{'count':0x1,'added':_0x1fc44d,'removed':_0x252304,'previousComponent':_0x5088fa}};}['extractCommon'](_0x179f99,_0x1fc303,_0x5209b8,_0x35d584,_0x500c75){const _0x5b8034=_0x1fc303['length'],_0x3dae41=_0x5209b8['length'];let _0x485aae=_0x179f99['oldPos'],_0xd0e69e=_0x485aae-_0x35d584,_0x7aa4e8=0x0;for(;_0xd0e69e+0x1<_0x5b8034&&_0x485aae+0x1<_0x3dae41&&this['equals'](_0x5209b8[_0x485aae+0x1],_0x1fc303[_0xd0e69e+0x1],_0x500c75);)_0xd0e69e++,_0x485aae++,_0x7aa4e8++,_0x500c75['oneChangePerToken']&&(_0x179f99['lastComponent']={'count':0x1,'previousComponent':_0x179f99['lastComponent'],'added':!0x1,'removed':!0x1});return _0x7aa4e8&&!_0x500c75['oneChangePerToken']&&(_0x179f99['lastComponent']={'count':_0x7aa4e8,'previousComponent':_0x179f99['lastComponent'],'added':!0x1,'removed':!0x1}),_0x179f99['oldPos']=_0x485aae,_0xd0e69e;}['equals'](_0x33d6cb,_0xedd697,_0xe2a0b1){return _0xe2a0b1['comparator']?_0xe2a0b1['comparator'](_0x33d6cb,_0xedd697):_0x33d6cb===_0xedd697||!!_0xe2a0b1['ignoreCase']&&_0x33d6cb['toLowerCase']()===_0xedd697['toLowerCase']();}['removeEmpty'](_0x65de48){const _0x3d2c8b=[];for(let _0x5e5ed6=0x0;_0x5e5ed6<_0x65de48['length'];_0x5e5ed6++)_0x65de48[_0x5e5ed6]&&_0x3d2c8b['push'](_0x65de48[_0x5e5ed6]);return _0x3d2c8b;}['castInput'](_0x43a27b,_0x5512e4){return _0x43a27b;}['tokenize'](_0x4f1646,_0xb9c5e6){return Array['from'](_0x4f1646);}['join'](_0x4da3f7){return _0x4da3f7['join']('');}['postProcess'](_0x517e9f,_0x2752de){return _0x517e9f;}get['useLongestToken'](){return!0x1;}['buildValues'](_0x986c9a,_0x46deb0,_0x4dbcaf){const _0x3fc381=[];let _0x28e6ea;for(;_0x986c9a;)_0x3fc381['push'](_0x986c9a),_0x28e6ea=_0x986c9a['previousComponent'],delete _0x986c9a['previousComponent'],_0x986c9a=_0x28e6ea;_0x3fc381['reverse']();const _0x144d04=_0x3fc381['length'];let _0x4791a8=0x0,_0x1621c8=0x0,_0x450049=0x0;for(;_0x4791a8<_0x144d04;_0x4791a8++){const _0x5e7c2c=_0x3fc381[_0x4791a8];if(_0x5e7c2c['removed'])_0x5e7c2c['value']=this['join'](_0x4dbcaf['slice'](_0x450049,_0x450049+_0x5e7c2c['count'])),_0x450049+=_0x5e7c2c['count'];else{if(!_0x5e7c2c['added']&&this['useLongestToken']){let _0x335317=_0x46deb0['slice'](_0x1621c8,_0x1621c8+_0x5e7c2c['count']);_0x335317=_0x335317['map'](function(_0x1fef68,_0xbd0517){const _0x36b51e=_0x4dbcaf[_0x450049+_0xbd0517];return _0x36b51e['length']>_0x1fef68['length']?_0x36b51e:_0x1fef68;}),_0x5e7c2c['value']=this['join'](_0x335317);}else _0x5e7c2c['value']=this['join'](_0x46deb0['slice'](_0x1621c8,_0x1621c8+_0x5e7c2c['count']));_0x1621c8+=_0x5e7c2c['count'],_0x5e7c2c['added']||(_0x450049+=_0x5e7c2c['count']);}}return _0x3fc381;}}class ArrayDiff extends Diff{['tokenize'](_0x6ba070){return _0x6ba070['slice']();}['join'](_0x34a231){return _0x34a231;}['removeEmpty'](_0x4ac3d0){return _0x4ac3d0;}}const arrayDiff=new ArrayDiff();function diffArrays(_0x20847e,_0x1a951a,_0x3e55dc){return arrayDiff['diff'](_0x20847e,_0x1a951a,_0x3e55dc);}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',(_0x4f463f,_0x51b6de)=>{_0x51b6de['on']('ready',()=>{this['_integrateEditor'](_0x51b6de);});});}get['editor'](){if(this['context']instanceof Editor)return this['context'];{const _0x2c0308=this['context']['editors']['first'];if(!_0x2c0308)throw new CKEditorError('documentcompare-no-editor',this);return _0x2c0308;}}['getDiff'](_0x432379,_0x2447f6,_0x596f1e={'anchor':'main','markDeletions':!0x1}){let _0x753fdf,_0x2529a6;const _0x44e4c7=this['editor'];if('string'==typeof _0x596f1e['anchor']){const _0xbbc864=_0x44e4c7['model']['document']['getRoot'](_0x596f1e['anchor']);if(!_0xbbc864)throw new CKEditorError('documentcompare-compare-no-root',this,{'anchor':_0x596f1e['anchor']});_0x753fdf=_0xbbc864,_0x2529a6=_0x44e4c7['model']['createPositionAt'](_0xbbc864,0x0);}else _0x753fdf=_0x596f1e['anchor']['clone'](),_0x2529a6=_0x596f1e['anchor']['clone']();const _0x55fe2b=_0x44e4c7['data']['parse'](_0x432379,_0x753fdf),_0x3a83f3=_0x44e4c7['data']['parse'](_0x2447f6,_0x753fdf);return new DocumentDiff(_0x55fe2b,_0x3a83f3,_0x44e4c7,{'anchor':_0x2529a6,'markDeletions':_0x596f1e['markDeletions']});}['isMarkedRemoveOperation'](_0x51c43b){return'marker'==_0x51c43b['type']&&_0x51c43b['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x35f3c3){_0x35f3c3['conversion']['for']('upcast')['add'](_0x20ff8d=>{_0x20ff8d['on']('element',(_0x1b7e69,_0x4d8fc5,_0x262f74)=>{if(_0x4d8fc5['modelRange'])for(const _0x426b19 of _0x4d8fc5['modelRange']['getItems']({'shallow':!0x0})){if(_0x426b19['is']('$textProxy'))continue;const _0x4bc91c=_0x4d8fc5['viewItem']['getAttribute'](DATA_ID_VIEW_ATTRIBUTE);_0x4bc91c&&_0x262f74['writer']['setAttribute'](DATA_ID_MODEL_ATTRIBUTE,_0x4bc91c,_0x426b19);}},{'priority':'lowest'});}),_0x35f3c3['model']['schema']['addAttributeCheck'](()=>!0x0,DATA_ID_MODEL_ATTRIBUTE);}}class DocumentDiff{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x33e917,_0x3b506f,_0x2a1c71,_0x250ed9){this['_editor']=_0x2a1c71,this['_markDeletions']=!!_0x250ed9['markDeletions'],this['_anchor']=_0x250ed9['anchor'];const _0x36a31b=this['_tokenizeModel'](_0x33e917),_0x58be1a=this['_tokenizeModel'](_0x3b506f);this['_diffItems']=this['_diffModelTokens'](_0x36a31b,_0x58be1a),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x33e917['markers'],_0x3b506f['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x48059e=this['_editor']['model']['document'],_0x4a8bcf=[];let _0x1d8056=_0x48059e['version'];for(const _0x58257c of this['_operationsData'])switch(_0x58257c['type']){case'attribute':{const _0x201f11=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58257c['path']),_0x19e3bf=_0x201f11['getShiftedBy'](_0x58257c['howMany']),_0x1e0ec7=new ModelRange(_0x201f11,_0x19e3bf),_0x3df268=JSON['parse'](_0x58257c['oldValue']),_0x237d30=JSON['parse'](_0x58257c['newValue']);_0x4a8bcf['push'](new AttributeOperation(_0x1e0ec7,_0x58257c['key'],_0x3df268,_0x237d30,_0x1d8056++));break;}case'insert':{const _0x4a4f93=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58257c['path']),_0x369b92=this['_makeModelFromTokens'](_0x58257c['tokens']);_0x4a8bcf['push'](new InsertOperation(_0x4a4f93,_0x369b92,_0x1d8056++));break;}case'remove':{const _0x14a91b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58257c['path']),_0xf9fb8f=new ModelPosition(_0x48059e['graveyard'],[0x0]);_0x4a8bcf['push'](new MoveOperation(_0x14a91b,_0x58257c['howMany'],_0xf9fb8f,_0x1d8056++));break;}case'rename':{const _0x371f53=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58257c['path']);_0x4a8bcf['push'](new RenameOperation(_0x371f53,_0x58257c['oldName'],_0x58257c['newName'],_0x1d8056++));break;}case'split':{const _0xa3a0a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58257c['path']),_0x2b3f13=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58257c['path']['slice'](0x0,-0x1));_0x2b3f13['offset']++,_0x4a8bcf['push'](new SplitOperation(_0xa3a0a,Number['NEGATIVE_INFINITY'],_0x2b3f13,null,_0x1d8056++));break;}case'merge':{const _0x46087e=_0x58257c['path']['slice'](),_0x421398=_0x46087e['slice'](0x0,-0x1);_0x421398[_0x421398['length']-0x1]++,_0x421398['push'](0x0);const _0x4119c9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x421398),_0x6d285=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x46087e),_0x44a124=new ModelPosition(_0x48059e['graveyard'],[0x0]);_0x4a8bcf['push'](new MergeOperation(_0x4119c9,Number['NEGATIVE_INFINITY'],_0x6d285,_0x44a124,_0x1d8056++));break;}case'marker':case'markedRemove':{let _0x4ef059=null;if(_0x58257c['range']){const _0x30553b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58257c['range']['start']),_0x34ad65=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58257c['range']['end']);_0x4ef059=new ModelRange(_0x30553b,_0x34ad65);}const _0x50a477='marker'==_0x58257c['type']?_0x58257c['name']:'$markedRemove:'+uid();_0x4a8bcf['push'](new MarkerOperation(_0x50a477,null,_0x4ef059,_0x48059e['model']['markers'],!0x0,_0x1d8056++));break;}case'unwrap':{const _0x275ccf=_0x58257c['path']['slice']();_0x275ccf['push'](0x0);const _0x48e194=_0x58257c['path']['slice'](),_0x22015e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x275ccf),_0x58bf71=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x48e194),_0x414d98=new ModelPosition(_0x48059e['graveyard'],[0x0]);_0x4a8bcf['push'](new MoveOperation(_0x22015e,_0x58257c['howMany'],_0x58bf71,_0x1d8056++)),_0x4a8bcf['push'](new MoveOperation(_0x58bf71['getShiftedBy'](_0x58257c['howMany']),0x1,_0x414d98,_0x1d8056++));break;}case'wrap':{const _0x7b1f15=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58257c['range']['start']),_0x214f7b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58257c['range']['end']),_0x1c793a=_0x58257c['token']['element']['_clone'](!0x1),_0xc02ed8=_0x58257c['range']['end']['slice']();_0xc02ed8['push'](0x0);const _0x28e5be=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xc02ed8);_0x4a8bcf['push'](new InsertOperation(_0x214f7b,_0x1c793a,_0x1d8056++)),_0x4a8bcf['push'](new MoveOperation(_0x7b1f15,_0x214f7b['offset']-_0x7b1f15['offset'],_0x28e5be,_0x1d8056++));break;}}return _0x4a8bcf;}['_tokenizeModel'](_0xc4926a){const _0xe91f48=[],_0x1945e9=ModelRange['_createIn'](_0xc4926a),_0x1442d9=new ModelTreeWalker({'boundaries':_0x1945e9});let _0x1d5de6='',_0x474c5f=null;const _0x51adf8=[''],_0x1b62af=new Map();for(const _0x4a51ab of _0x1442d9)if('elementStart'==_0x4a51ab['type']||'elementEnd'==_0x4a51ab['type']){let _0x18b2d0=_0x51adf8[0x0];''!==_0x1d5de6&&(_0xe91f48['push'](...this['_makeTokensFromTextByWords'](_0x1d5de6,_0x474c5f,_0x18b2d0)),_0x1d5de6='');const _0x47afae=_0x4a51ab['item'];let _0x1aa978;_0x47afae['getAttribute'](DATA_ID_MODEL_ATTRIBUTE)?_0x1aa978=_0x47afae['getAttribute'](DATA_ID_MODEL_ATTRIBUTE):'elementStart'==_0x4a51ab['type']?(_0x1aa978=makeUidForElement(_0x47afae),_0x1b62af['set'](_0x47afae,_0x1aa978)):_0x1aa978=_0x1b62af['get'](_0x47afae);const _0x42fb07=this['_getElementCategory'](_0x47afae);'solid'==_0x42fb07&&('elementStart'==_0x4a51ab['type']?(_0x18b2d0=_0x1aa978,_0x51adf8['unshift'](_0x18b2d0)):_0x51adf8['shift']());const _0x6e7363={'type':'element','element':_0x47afae,'elementId':_0x1aa978,'category':_0x42fb07,'isStart':'elementStart'==_0x4a51ab['type'],'limitId':_0x18b2d0};_0xe91f48['push'](_0x6e7363);}else''==_0x1d5de6&&(_0x474c5f=_0x4a51ab['previousPosition']['clone']()),_0x1d5de6+=_0x4a51ab['item']['data'];return''!==_0x1d5de6&&_0xe91f48['push'](...this['_makeTokensFromTextByWords'](_0x1d5de6,_0x474c5f,_0x51adf8[0x0])),_0xe91f48;}['_makeTokensFromTextByWords'](_0x2278ec,_0x10b947,_0x342415){const _0x1f7703=_0x2278ec['matchAll'](/(\s)/g),_0xf0399=Array['from'](_0x1f7703)['map'](_0x5269b5=>_0x5269b5['index']);_0xf0399['push'](_0x2278ec['length']),0x0==_0xf0399[0x0]&&_0xf0399['shift']();const _0x33d6f5=[],_0xc62689=_0x10b947['parent'];let _0x3477d0=0x0,_0x4cca2e=_0x10b947['offset'];for(let _0x24ba46=0x0;_0x24ba46<_0xf0399['length'];_0x24ba46++)_0x33d6f5['push']({'type':'text','data':_0x2278ec['slice'](_0x3477d0,_0xf0399[_0x24ba46]),'parent':_0xc62689,'offset':_0x4cca2e,'limitId':_0x342415}),_0x3477d0=_0xf0399[_0x24ba46],_0x4cca2e=_0x10b947['offset']+_0xf0399[_0x24ba46];return _0x33d6f5;}['_getElementCategory'](_0x3624b4){const _0x2e9c1e=this['_editor']['model']['schema'];return _0x2e9c1e['isLimit'](_0x3624b4)||_0x2e9c1e['isContent'](_0x3624b4)||_0x2e9c1e['isInline'](_0x3624b4)?'solid':_0x2e9c1e['isBlock'](_0x3624b4)?'block':'container';}['_diffModelTokens'](_0x33e3d2,_0x32465a){const _0x2aaa41=diffArrays(_0x33e3d2,_0x32465a,{'comparator':compareModelTokens});this['_handleUnclosedBlockOpeningTags'](_0x2aaa41);const _0x351fc4=_0x2aaa41['flatMap'](_0x4a324a=>{const _0x53b25b=_0x4a324a['added']?'added':_0x4a324a['removed']?'removed':'unchanged';return _0x4a324a['value']['map'](_0x4e2ee0=>({'token':_0x4e2ee0,'change':_0x53b25b}));});let _0x1a3df9=0x0;for(const _0x4c5518 of _0x351fc4)'added'!=_0x4c5518['change']&&('unchanged'==_0x4c5518['change']&&(_0x4c5518['before']=_0x33e3d2[_0x1a3df9]),_0x1a3df9++);return _0x351fc4;}['_handleUnclosedBlockOpeningTags'](_0x14c9ac){for(let _0xa024c0=0x0;_0xa024c0<_0x14c9ac['length']-0x1;_0xa024c0++)if(_0x14c9ac[_0xa024c0]['removed']&&_0x14c9ac[_0xa024c0+0x1]['added']){const _0x12407c=this['_findUnclosedBlockOpeningToken'](_0x14c9ac[_0xa024c0]['value']);if(null!==_0x12407c){const _0x2781b9=this['_findUnclosedBlockOpeningToken'](_0x14c9ac[_0xa024c0+0x1]['value']),_0xa190b8=_0x14c9ac[_0xa024c0]['value']['splice'](_0x12407c),_0x461239=_0x14c9ac[_0xa024c0+0x1]['value']['splice'](_0x2781b9),_0x5420af=[_0x461239['shift']()];_0xa190b8['shift']();const _0x10b91b={'value':_0xa190b8,'removed':!0x0},_0xddead={'value':_0x461239,'added':!0x0},_0x263715={'value':_0x5420af};_0x14c9ac['splice'](_0xa024c0+0x2,0x0,_0x263715,_0x10b91b,_0xddead);}}}['_findUnclosedBlockOpeningToken'](_0x70827d){let _0x35eddd=0x0,_0x1a9d23=-0x1;for(let _0x30a432=0x0;_0x30a432<_0x70827d['length'];_0x30a432++){const _0x47e7ab=_0x70827d[_0x30a432];'element'==_0x47e7ab['type']&&'block'==_0x47e7ab['category']&&(_0x35eddd+=_0x47e7ab['isStart']?0x1:-0x1,_0x47e7ab['isStart']&&(_0x1a9d23=_0x30a432));}return 0x0===_0x35eddd?null:_0x1a9d23;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x83c204=0x0;_0x83c204<this['_diffItems']['length'];_0x83c204++){const _0x2053ae=this['_diffItems'][_0x83c204]['change'],_0x144d5f=[];_0x144d5f['push'](this['_diffItems'][_0x83c204]);let _0x17ef88=_0x83c204+0x1;for(;this['_diffItems'][_0x17ef88]&&this['_diffItems'][_0x17ef88]['change']==_0x2053ae;)_0x144d5f['push'](this['_diffItems'][_0x17ef88]),_0x17ef88++,_0x83c204++;const _0x1b5925=_0x144d5f['map'](_0x34d627=>_0x34d627['token']);if('unchanged'==_0x2053ae)_0x144d5f['map'](_0x34b7c6=>_0x34b7c6['before'])['forEach'](_0x3cb1d2=>this['_traverseOverItem'](_0x3cb1d2));else{if('removed'==_0x2053ae){if(this['_markDeletions']){const _0x164ef2=this['_path']['slice']();_0x1b5925['forEach'](_0x376f4b=>this['_traverseOverItem'](_0x376f4b));const _0x5b4da4=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x164ef2,'end':_0x5b4da4}});}else this['_handleChanged'](_0x1b5925,!0x0,this['_path']['slice']());}else{const _0x1b2a0e=_0x1b5925['filter'](_0x5eb8cb=>'element'!=_0x5eb8cb['type']||'container'!=_0x5eb8cb['category']);this['_handleChanged'](_0x1b2a0e,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x1c438d=0x0;_0x1c438d<this['_diffItems']['length'];_0x1c438d++){const _0x5a6a85=this['_diffItems'][_0x1c438d]['change'],_0x76812a=[];_0x76812a['push'](this['_diffItems'][_0x1c438d]);let _0x3ceb1e=_0x1c438d+0x1;for(;this['_diffItems'][_0x3ceb1e]&&this['_diffItems'][_0x3ceb1e]['change']==_0x5a6a85;)_0x76812a['push'](this['_diffItems'][_0x3ceb1e]),_0x3ceb1e++,_0x1c438d++;const _0x374c66=_0x76812a['map'](_0x266902=>_0x266902['token']);if('unchanged'==_0x5a6a85){const _0x4cdc35=_0x76812a['map'](_0x1204fa=>_0x1204fa['before']);this['_handleUnchanged'](_0x4cdc35,_0x374c66);}else('removed'!=_0x5a6a85||this['_markDeletions'])&&_0x374c66['forEach'](_0x19d069=>{this['_traverseOverItem'](_0x19d069);});}}['_calculateMarkersOperationsData'](_0x455c4d,_0x663969){const _0x4d57bf={};for(const [_0x11a1b4]of _0x455c4d)_0x4d57bf[_0x11a1b4]=null;for(const [_0x45a30f,_0x4bfac9]of _0x663969)_0x4d57bf[_0x45a30f]=_0x4bfac9;const _0x31c8ab=Object['entries'](_0x4d57bf)['map'](([_0x1259e5,_0x576fea])=>({'type':'marker','name':_0x1259e5,'range':_0x576fea?{'start':_0x576fea['start']['path']['slice'](),'end':_0x576fea['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x31c8ab);}['_handleUnwraps'](){const _0x5a204c=new Map(),_0x2b3b10=[],_0x468f96=[0x0];let _0x548201=this['_diffItems']['length']+0x1;for(let _0x39d948=this['_diffItems']['length']-0x1;_0x39d948>=0x0;_0x39d948--){const {token:_0x3b66fc,before:_0x1c84dc,change:_0x41a9a1}=this['_diffItems'][_0x39d948];if('removed'!=_0x41a9a1&&(_0x548201=_0x39d948),'element'!=_0x3b66fc['type']||'container'!=_0x3b66fc['category']||'added'==_0x41a9a1)continue;const _0x1d98f9=_0x1c84dc?_0x1c84dc['element']:_0x3b66fc['element'];if(_0x3b66fc['isStart']){const _0xfcec65=_0x5a204c['get'](_0x1d98f9),_0x5835ce=this['_diffItems'][_0xfcec65];('removed'==_0x41a9a1||'removed'==_0x5835ce['change'])&&_0x548201<_0xfcec65&&(this['_operationsData']['push']({'type':'unwrap','path':_0x1d98f9['getPath'](),'howMany':_0x1d98f9['maxOffset']+_0x468f96[0x0]}),_0x468f96['shift'](),_0x468f96[0x0]+=_0x1d98f9['maxOffset']-0x1,_0x2b3b10['push'](_0x39d948),_0x2b3b10['push'](_0xfcec65));}else _0x5a204c['set'](_0x1d98f9,_0x39d948),_0x468f96['unshift'](0x0);}_0x2b3b10['sort']((_0x4a7673,_0x1e091e)=>_0x1e091e-_0x4a7673),_0x2b3b10['forEach'](_0x33f607=>{const _0x57186a=this['_diffItems'][_0x33f607];'removed'==_0x57186a['change']?this['_diffItems']['splice'](_0x33f607,0x1):(_0x57186a['change']='added',delete _0x57186a['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x52dd2f=[];for(let _0x4f4826=0x0;_0x4f4826<this['_diffItems']['length'];_0x4f4826++){const {change:_0x26a91d,token:_0x575edb}=this['_diffItems'][_0x4f4826];if('added'==_0x26a91d&&'element'==_0x575edb['type']&&'container'==_0x575edb['category']){if(_0x575edb['isStart'])_0x52dd2f['push'](this['_path']['slice']());else{if(!_0x575edb['isStart']){const _0x578402=_0x52dd2f['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x578402,'end':this['_path']['slice']()},'token':_0x575edb}),this['_path'][this['_path']['length']-0x1]=_0x578402[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x26a91d||this['_markDeletions'])&&this['_traverseOverItem'](_0x575edb);}}['_handleUnchanged'](_0x432f01,_0x1c3df1){for(let _0x1554f6=0x0;_0x1554f6<_0x432f01['length'];_0x1554f6++){const _0x55bc4d=_0x432f01[_0x1554f6];if('element'==_0x55bc4d['type']&&_0x55bc4d['isStart']){const _0x3798e4=_0x1c3df1[_0x1554f6];'block'==_0x55bc4d['category']&&this['_handleElementRename'](_0x55bc4d['element'],_0x3798e4['element'],this['_path']),this['_handleElementAttributeChanges'](_0x55bc4d['element'],_0x3798e4['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x3798e4);}else{if('element'!=_0x55bc4d['type']||_0x55bc4d['isStart']){if('text'==_0x55bc4d['type']){const _0x3d042d=this['_path']['slice'](),_0xda0aae=[],_0x3f22bf=[];for(;_0x432f01[_0x1554f6]&&'text'==_0x432f01[_0x1554f6]['type'];)_0xda0aae['push'](_0x432f01[_0x1554f6]),_0x3f22bf['push'](_0x1c3df1[_0x1554f6]),this['_path'][this['_path']['length']-0x1]+=_0x432f01[_0x1554f6]['data']['length'],_0x1554f6++;_0x1554f6--,this['_handleTextAttributeChanges'](_0xda0aae,_0x3f22bf,_0x3d042d);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x3c9625,_0x5b0922,_0x407337){const _0x5d464a=[],_0x9f8e69=[],_0x408b63=_0x407337['slice']();for(let _0x2cef0d=0x0;_0x2cef0d<_0x3c9625['length'];_0x2cef0d++){const _0x4e1ff5=_0x3c9625[_0x2cef0d],_0x2858f3=_0x407337['slice']();if('element'!=_0x4e1ff5['type']||_0x4e1ff5['isStart'])'element'==_0x4e1ff5['type']&&_0x4e1ff5['isStart']?(_0x407337['push'](0x0),_0x5b0922||this['_parents']['push'](_0x4e1ff5),_0x9f8e69['push']({'before':_0x2858f3,'after':_0x407337['slice'](),'index':_0x2cef0d})):_0x407337[_0x407337['length']-0x1]+=_0x4e1ff5['data']['length'];else{let _0x113eb7;_0x407337['pop'](),_0x407337[_0x407337['length']-0x1]++,_0x113eb7=_0x5b0922?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x9f8e69['length']?_0x9f8e69['pop']():_0x5d464a['push']({'before':_0x2858f3,'after':_0x407337['slice'](),'index':_0x2cef0d,'related':_0x113eb7});}}if(_0x9f8e69['length']!==_0x5d464a['length'])throw new CKEditorError('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x3c9625,'isRemove':_0x5b0922});const _0x5d776e=[{'after':_0x408b63['slice'](),'index':-0x1},..._0x5d464a,..._0x9f8e69,{'before':_0x407337['slice'](),'index':_0x3c9625['length']}];if(_0x5b0922){for(let _0x382fe0=_0x5d776e['length']-0x1;_0x382fe0>=0x1;_0x382fe0--){const _0x370471=_0x5d776e[_0x382fe0-0x1]['after'],_0x427795=_0x5d776e[_0x382fe0]['before'],_0x26c01a=_0x427795[_0x427795['length']-0x1]-_0x370471[_0x370471['length']-0x1];_0x26c01a&&(this['_operationsData']['push']({'type':'remove','path':_0x370471,'howMany':_0x26c01a}),_0x427795[_0x427795['length']-0x1]-=_0x26c01a);}for(const {before:_0x16c018}of _0x5d464a)this['_operationsData']['push']({'type':'merge','path':_0x16c018});}else for(let _0xe091a4=0x0;_0xe091a4<_0x5d776e['length']-0x1;_0xe091a4++){const _0x5418c7=_0x5d776e[_0xe091a4]['after'],_0x11080d=_0x5d776e[_0xe091a4+0x1]['before'],_0x3294b6=_0x5d776e[_0xe091a4]['index']+0x1,_0x1dc3c6=_0x5d776e[_0xe091a4+0x1]['index'];if(_0x3294b6!==_0x1dc3c6&&this['_operationsData']['push']({'type':'insert','path':_0x5418c7,'tokens':_0x3c9625['slice'](_0x3294b6,_0x1dc3c6)}),_0xe091a4<_0x5d464a['length']){this['_operationsData']['push']({'type':'split','path':_0x11080d});const _0x5317ce=_0x3c9625[_0x9f8e69[_0x9f8e69['length']-0x1-_0xe091a4]['index']],_0xef01c2=_0x5d464a[_0xe091a4]['after'],_0x46b74d=_0x5d464a[_0xe091a4]['related']['element'];this['_handleElementRename'](_0x46b74d,_0x5317ce['element'],_0xef01c2),this['_handleElementAttributeChanges'](_0x46b74d,_0x5317ce['element'],_0xef01c2);}}}['_traverseOverItem'](_0x145692){'element'==_0x145692['type']&&_0x145692['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x145692)):'element'!=_0x145692['type']||_0x145692['isStart']?'text'==_0x145692['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x145692['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x34d022,_0x46ac5f,_0x248e7e){_0x34d022['name']!=_0x46ac5f['name']&&this['_operationsData']['push']({'type':'rename','path':_0x248e7e['slice'](),'oldName':_0x34d022['name'],'newName':_0x46ac5f['name']});}['_handleElementAttributeChanges'](_0x8cec31,_0x317e25,_0x5a723a){const _0x245018=this['_getAttributeChanges'](_0x8cec31['getAttributes'](),_0x317e25['getAttributes']());for(const _0x414a0d in _0x245018){const {oldValue:_0x351523,newValue:_0x19a5fa}=_0x245018[_0x414a0d];this['_operationsData']['push']({'type':'attribute','path':_0x5a723a['slice'](),'howMany':0x1,'key':_0x414a0d,'oldValue':_0x351523,'newValue':_0x19a5fa});}}['_handleTextAttributeChanges'](_0x22fd06,_0x474b71,_0x113b14){const _0x375a57=this['_operationsData'],_0x58bc6e=_0x22fd06[0x0]['parent'],_0x3f603f=_0x22fd06[0x0]['offset'],_0xb70572=_0x474b71[0x0]['parent'],_0x4dabc0=_0x474b71[0x0]['offset'],_0x596576=_0x22fd06['reduce']((_0x527205,_0x3c6298)=>_0x527205+_0x3c6298['data']['length'],0x0),_0x5e83b5=this['_getAttrsForOffsets'](_0x58bc6e,_0x3f603f,_0x596576),_0x4f7137=this['_getAttrsForOffsets'](_0xb70572,_0x4dabc0,_0x596576),_0x18750d={};for(let _0x159a70=0x0;_0x159a70<_0x596576;_0x159a70++){const _0x5ba14c=_0x5e83b5[_0x3f603f+_0x159a70],_0x4effa3=_0x4f7137[_0x4dabc0+_0x159a70],_0x194ab5=this['_getAttributeChanges'](_0x5ba14c,_0x4effa3);for(const _0x46fc47 in _0x18750d)_0x194ab5[_0x46fc47]||_0x359f78(_0x46fc47);for(const _0x56e9ca in _0x194ab5){const {oldValue:_0x5d63b5,newValue:_0x583072}=_0x194ab5[_0x56e9ca],_0x1b9af5=_0x18750d[_0x56e9ca];_0x1b9af5?_0x1b9af5['oldValue']==_0x5d63b5&&_0x1b9af5['newValue']==_0x583072?_0x1b9af5['length']++:(_0x359f78(_0x56e9ca),_0x18750d[_0x56e9ca]={'oldValue':_0x5d63b5,'newValue':_0x583072,'start':_0x159a70,'length':0x1}):_0x18750d[_0x56e9ca]={'oldValue':_0x5d63b5,'newValue':_0x583072,'start':_0x159a70,'length':0x1};}}for(const _0x42c389 in _0x18750d)_0x359f78(_0x42c389);function _0x359f78(_0x3fe11d){const _0x37b22a=_0x18750d[_0x3fe11d],_0x5a670d=_0x113b14['slice']();_0x5a670d[_0x5a670d['length']-0x1]+=_0x37b22a['start'],_0x375a57['push']({'type':'attribute','path':_0x5a670d,'howMany':_0x37b22a['length'],'key':_0x3fe11d,'oldValue':_0x37b22a['oldValue'],'newValue':_0x37b22a['newValue']}),delete _0x18750d[_0x3fe11d];}}['_getAttributeChanges'](_0x27ba00,_0x51fd0e){const _0x119735={};for(const [_0x25831c,_0x5d91b4]of _0x27ba00)_0x119735[_0x25831c]={'oldValue':JSON['stringify'](_0x5d91b4),'newValue':'null'};for(const [_0xb1c6e4,_0x5d89bf]of _0x51fd0e){const _0xdc087a=JSON['stringify'](_0x5d89bf);_0x119735[_0xb1c6e4]?_0x119735[_0xb1c6e4]['oldValue']==_0xdc087a?delete _0x119735[_0xb1c6e4]:_0x119735[_0xb1c6e4]['newValue']=_0xdc087a:_0x119735[_0xb1c6e4]={'oldValue':'null','newValue':_0xdc087a};}return delete _0x119735[DATA_ID_MODEL_ATTRIBUTE],_0x119735;}['_getAttrsForOffsets'](_0x538b9b,_0x2b673f,_0x30cddd){const _0x1314fb=new Array(_0x2b673f+_0x30cddd);let _0x4f56d0=_0x538b9b['getChildAtOffset'](_0x2b673f),_0x3d3512=_0x4f56d0['startOffset'];for(;_0x4f56d0&&_0x3d3512<_0x2b673f+_0x30cddd;){const _0x29fea3=Array['from'](_0x4f56d0['getAttributes']());_0x1314fb['fill'](_0x29fea3,_0x3d3512,_0x3d3512+_0x4f56d0['offsetSize']),_0x3d3512+=_0x4f56d0['offsetSize'],_0x4f56d0=_0x4f56d0['nextSibling'];}return _0x1314fb;}['_getPositionFromAnchorAndPath'](_0x452e25,_0x2171e2){const _0x54a928=[..._0x452e25['path']['slice'](0x0,-0x1),_0x452e25['offset']+_0x2171e2[0x0],..._0x2171e2['slice'](0x1)];return new ModelPosition(_0x452e25['root'],_0x54a928);}['_makeModelFromTokens'](_0x49f869){const _0x141b77=[];let _0x2eeb07=null;for(const _0x48c46d of _0x49f869)if('element'!=_0x48c46d['type']||_0x48c46d['isStart']||_0x2eeb07!=_0x48c46d['element']){if(!_0x2eeb07){if('text'==_0x48c46d['type']){const _0x2e324=ModelPosition['_createAt'](_0x48c46d['parent'],_0x48c46d['offset']),_0x1f0cfe=ModelRange['_createFromPositionAndShift'](_0x2e324,_0x48c46d['data']['length']),_0x176d6d=Array['from'](_0x1f0cfe['getItems']())['map'](_0x5e0f33=>new ModelText(_0x5e0f33['data'],_0x5e0f33['getAttributes']()));_0x141b77['push'](..._0x176d6d);}else{_0x2eeb07=_0x48c46d['element'];const _0x10f3d5=_0x48c46d['element']['_clone'](!0x0);_0x10f3d5['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);for(const _0x51663c of this['_editor']['model']['createRangeIn'](_0x10f3d5)['getItems']())_0x51663c['is']('element')&&_0x51663c['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0x141b77['push'](_0x10f3d5);}}}else _0x2eeb07=null;return _0x141b77;}}function compareModelTokens(_0xe80a2f,_0x556c45){return _0xe80a2f['type']===_0x556c45['type']&&(_0xe80a2f['limitId']===_0x556c45['limitId']&&('text'==_0xe80a2f['type']?_0xe80a2f['data']==_0x556c45['data']:compareModelElementTokens(_0xe80a2f,_0x556c45)));}function compareModelElementTokens(_0x1f3be4,_0x12da8a){return _0x1f3be4['isStart']==_0x12da8a['isStart']&&((!_0x1f3be4['isStart']||_0x1f3be4['elementId']==_0x12da8a['elementId'])&&(_0x1f3be4['category']==_0x12da8a['category']&&('block'==_0x1f3be4['category']||('container'!=_0x1f3be4['category']||_0x1f3be4['elementId']==_0x12da8a['elementId'])&&_0x1f3be4['element']['name']==_0x12da8a['element']['name'])));}function makeUidForElement(_0x1ced03){return hashObject({'name':_0x1ced03['name'],...Object['fromEntries'](_0x1ced03['getAttributes']())});}function getSuggestionPartsFromReply({editor:_0x4368f2,changeGroups:_0x220f30,documentContextContent:_0x1277d2,showDiff:_0x2c958b,trimUnchanged:_0x3d0218=!0x0}){return _0x220f30['map'](_0x446b2e=>{const _0x43130a=new Document([]),_0x47419a=new Document([]);for(const _0xf1d791 of _0x446b2e['changes'])if(_0x2c958b&&'removed'==_0xf1d791['type']||_0x47419a['children']['push'](_0xf1d791['node']['cloneNode'](!0x0)),'new'!=_0xf1d791['type']&&(_0x2c958b||'removed'!=_0xf1d791['type'])){const _0x237c09=findOne(_0x2c2383=>getAttribute(_0x2c2383,'data-id')==_0xf1d791['id'],_0x1277d2,!0x0);_0x237c09&&_0x43130a['children']['push'](_0x237c09['cloneNode'](!0x0));}const {content:_0x239bac,hasChanges:_0x5bb7ab}=passThroughEditorDataPipeline(_0x4368f2,_0x43130a,_0x47419a,_0x2c958b,_0x3d0218);return{'type':_0x446b2e['changes'][0x0]['type'],'index':_0x446b2e['index'],'content':_0x239bac,'hasChanges':_0x5bb7ab};});}function passThroughEditorDataPipeline(_0x571a08,_0x46e48f,_0x1ad95f,_0x406cac,_0xb1ff48=!0x0){const _0x12e557=_0x571a08['plugins']['get']('DocumentCompare'),_0x4b111b=serialize$1(_0x46e48f),_0x4547ca=serialize$1(_0x1ad95f),_0x160058=_0x571a08['data']['parse'](_0x4b111b,'$root'),_0x2dcf5a=_0x571a08['model']['createPositionAt'](_0x160058,0x0),_0x24c240=_0x12e557['getDiff'](_0x4b111b,_0x4547ca,{'anchor':_0x2dcf5a,'markDeletions':_0x406cac})['getOperations']();if(0x0==_0x24c240['length'])return{'content':_0x46e48f['cloneNode'](!0x0),'hasChanges':!0x1};if(_0x406cac?applyOperationsAndDiffMarkers(_0x24c240,_0x160058,_0x571a08):_0x571a08['model']['change'](_0x97858b=>{for(const _0x4293f2 of _0x24c240)if('remove'==_0x4293f2['type']){const _0x4bfd8f=_0x4293f2['sourcePosition'],_0x26874c=_0x4293f2['howMany'],_0x5d350a=new _DetachOperation(_0x4bfd8f,_0x26874c);_0x97858b['batch']['addOperation'](_0x5d350a),_0x571a08['model']['applyOperation'](_0x5d350a);}else{if('marker'==_0x4293f2['type']){const _0x4e36b2=_0x4293f2['name'],_0x5489eb=_0x4293f2['newRange'];null!==_0x5489eb?_0x160058['markers']['set'](_0x4e36b2,_0x5489eb):_0x160058['markers']['delete'](_0x4e36b2);}else _0x4293f2['baseVersion']=null,_0x4293f2['isDocumentOperation']=!0x1,_0x97858b['batch']['addOperation'](_0x4293f2),_0x571a08['model']['applyOperation'](_0x4293f2);}}),_0xb1ff48){const _0x17dee5=getMinimalSelection(_0x571a08,_0x24c240,_0x160058);expandSelectionWithContext(_0x571a08['model'],_0x17dee5),shrinkFragmentToSelection(_0x571a08['model'],_0x17dee5);}return{'content':parse$2(_0x571a08['data']['stringify'](_0x160058,{'showSuggestionHighlights':!0x0})),'hasChanges':!0x0};}function applyOperationsAndDiffMarkers(_0x31660c,_0x46d9e6,_0x3097bc){if(0x0==_0x31660c['length'])return;const _0x1cb241=_0x3097bc['plugins']['get']('DocumentCompare'),_0x82effc=_0x3097bc['plugins']['get']('SuggestionsConversion');_0x3097bc['model']['change'](_0x44bbde=>{const _0x131ddf=new Set();for(let _0x1baf9c=0x0;_0x1baf9c<_0x31660c['length'];_0x1baf9c++){const _0x5d494a=_0x31660c[_0x1baf9c];if(_0x5d494a['baseVersion']=null,_0x5d494a['isDocumentOperation']=!0x1,_0x1cb241['isMarkedRemoveOperation'](_0x5d494a)){const _0x262c21=fixElementSuggestionRange(_0x5d494a['newRange'],_0x3097bc['model']),_0x486dba='suggestion:deletion:'+uid()+':$aiSuggestion';_0x46d9e6['markers']['set'](_0x486dba,_0x262c21);}else switch(_0x5d494a['type']){case'rename':{if(_0x5d494a['oldName']==_0x5d494a['newName'])break;_0x44bbde['batch']['addOperation'](_0x5d494a),_0x3097bc['model']['applyOperation'](_0x5d494a);const _0x535ab1='$elementName',_0x5ca8bc=_0x5d494a['position'],_0x281b27=_0x3097bc['model']['createRange'](_0x5ca8bc,_0x3097bc['model']['createPositionAt'](_0x5ca8bc['nodeAfter'],'end')),_0x4b95d6='suggestion:attribute:'+_0x535ab1+':'+uid()+':$aiSuggestion';_0x46d9e6['markers']['set'](_0x4b95d6,_0x281b27);break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{if(_0x5d494a['oldValue']==_0x5d494a['newValue'])break;_0x44bbde['batch']['addOperation'](_0x5d494a),_0x3097bc['model']['applyOperation'](_0x5d494a);const _0x104a3f=_0x5d494a['key'];if(!_0x82effc['isRegisteredAttribute'](_0x104a3f))break;const _0x578fd7=fixElementSuggestionRange(_0x5d494a['range'],_0x3097bc['model']),_0x4d3551='suggestion:attribute:'+_0x104a3f+':'+uid()+':$aiSuggestion';_0x46d9e6['markers']['set'](_0x4d3551,_0x578fd7);break;}case'insert':{_0x44bbde['batch']['addOperation'](_0x5d494a),_0x3097bc['model']['applyOperation'](_0x5d494a);if(_0x31660c[_0x1baf9c+0x1]&&'move'==_0x31660c[_0x1baf9c+0x1]['type']){transformMarkers(_0x46d9e6,_0x5d494a);break;}const _0x45c7d5=_0x5d494a['position'],_0x397f3c=_0x5d494a['howMany'],_0x7e5788=fixElementSuggestionRange(_0x3097bc['model']['createRange'](_0x45c7d5,_0x45c7d5['getShiftedBy'](_0x397f3c)),_0x3097bc['model']),_0x135c14='suggestion:insertion:'+uid()+':$aiSuggestion';_0x46d9e6['markers']['set'](_0x135c14,_0x7e5788);break;}case'split':{_0x44bbde['batch']['addOperation'](_0x5d494a),_0x3097bc['model']['applyOperation'](_0x5d494a);const _0x5b1c7d=_0x5d494a['splitPosition'],_0x408503=_0x5d494a['moveTargetPosition'],_0x195cf7=_0x3097bc['model']['createRange'](_0x5b1c7d,_0x408503),_0x256f96='suggestion:insertion:'+uid()+':$aiSuggestion';_0x46d9e6['markers']['set'](_0x256f96,_0x195cf7);break;}case'move':{_0x44bbde['batch']['addOperation'](_0x5d494a),_0x3097bc['model']['applyOperation'](_0x5d494a),_0x31660c[_0x1baf9c-0x1]&&'insert'==_0x31660c[_0x1baf9c-0x1]['type']&&transformMarkers(_0x46d9e6,_0x5d494a);const _0x5bdd9c=_0x5d494a['getMovedRangeStart'](),_0x235313=_0x5d494a['howMany'];for(let _0x590a6c=0x0;_0x590a6c<_0x235313;_0x590a6c++){const _0x3c8c3e=_0x5bdd9c['getShiftedBy'](_0x590a6c)['nodeAfter'];_0x131ddf['add'](_0x3c8c3e);}break;}case'remove':{const _0x485aed=_0x5d494a['sourcePosition'],_0x37d11f=_0x5d494a['howMany'],_0x563630=new _DetachOperation(_0x485aed,_0x37d11f);_0x44bbde['batch']['addOperation'](_0x563630),_0x3097bc['model']['applyOperation'](_0x563630);break;}}}for(const _0x371415 of _0x131ddf){const _0x3498d7=_0x3097bc['model']['createRangeOn'](_0x371415),_0x18b9bd='suggestion:formatBlock:$fakeWrap:'+uid()+':$aiSuggestion';_0x46d9e6['markers']['set'](_0x18b9bd,fixElementSuggestionRange(_0x3498d7,_0x3097bc['model']));}});}function transformMarkers(_0x1ef997,_0x1df8c0){for(const [_0x94b16b,_0x29ab33]of _0x1ef997['markers']){const _0x1dee6b=ModelRange['_createFromRanges'](_0x29ab33['getTransformedByOperation'](_0x1df8c0));_0x1ef997['markers']['set'](_0x94b16b,_0x1dee6b);}}function getMinimalSelection(_0x4a9da1,_0x1076fb,_0x3c877b){const _0x30c8d5=_0x4a9da1['plugins']['get']('DocumentCompare');let _0x4409f5=_0x4a9da1['model']['createPositionAt'](_0x3c877b,Number['POSITIVE_INFINITY']),_0x3df841=_0x4a9da1['model']['createPositionAt'](_0x3c877b,0x0);for(const _0x1c6a08 of _0x1076fb){let _0x1ad2c1,_0x2f52aa;if(_0x30c8d5['isMarkedRemoveOperation'](_0x1c6a08))_0x1ad2c1=_0x1c6a08['newRange']['start'],_0x2f52aa=_0x1c6a08['newRange']['end'];else switch(_0x4409f5=_0x4409f5['getTransformedByOperation'](_0x1c6a08),_0x3df841=_0x3df841['getTransformedByOperation'](_0x1c6a08),_0x1c6a08['type']){case'rename':_0x1ad2c1=_0x1c6a08['position'],_0x2f52aa=_0x1ad2c1['getShiftedBy'](0x1);break;case'addAttribute':case'removeAttribute':case'changeAttribute':_0x1ad2c1=_0x1c6a08['range']['start'],_0x2f52aa=_0x1c6a08['range']['end'];break;case'insert':_0x1ad2c1=_0x1c6a08['position'],_0x2f52aa=_0x1ad2c1['getShiftedBy'](_0x1c6a08['howMany']);break;case'split':_0x1ad2c1=_0x1c6a08['splitPosition'],_0x2f52aa=_0x1c6a08['moveTargetPosition'];break;case'merge':{const _0x36c9f2=_0x1c6a08['targetPosition']['path']['slice'](0x0,-0x1);_0x1ad2c1=_0x4a9da1['model']['createPositionFromPath'](_0x3c877b,_0x36c9f2),_0x2f52aa=_0x1ad2c1['getShiftedBy'](0x1);break;}case'remove':{const _0x18c393=_0x1c6a08['howMany'],_0x4f277b=_0x1c6a08['sourcePosition']['_getTransformedByInsertion'](_0x1c6a08['targetPosition'],_0x18c393),_0x242277=_0x1c6a08['getMovedRangeStart']();'remove'==_0x1c6a08['type']?(_0x1ad2c1=_0x4f277b,_0x2f52aa=_0x4f277b):(_0x1ad2c1=_0x242277,_0x2f52aa=_0x242277['getShiftedBy'](_0x18c393));break;}}_0x1ad2c1&&_0x1ad2c1['isBefore'](_0x4409f5)&&(_0x4409f5=_0x1ad2c1['clone'](),_0x4409f5['stickiness']='toNone'),_0x2f52aa&&_0x2f52aa['isAfter'](_0x3df841)&&(_0x3df841=_0x2f52aa['clone'](),_0x3df841['stickiness']='toNone');}return _0x4a9da1['model']['createSelection'](_0x4a9da1['model']['createRange'](_0x4409f5,_0x3df841));}function expandSelectionWithContext(_0x5b2646,_0x45d793){expandSelection(_0x5b2646,_0x45d793,'forward');const _0x17f122=_0x45d793['getFirstRange']();_0x45d793['setTo']([]),_0x45d793['setTo'](_0x17f122,{'backward':!0x0}),expandSelection(_0x5b2646,_0x45d793,'backward');}function expandSelection(_0x48ef53,_0x11e6c8,_0x2f286b){let _0xd65b72=0x14;for(;_0xd65b72;){_0x48ef53['modifySelection'](_0x11e6c8,{'unit':'word','direction':_0x2f286b}),_0xd65b72--;const _0x13de7a=_0x11e6c8['focus']['forward'==_0x2f286b?'nodeBefore':'nodeAfter'];if(_0x13de7a&&_0x13de7a['is']('element')&&_0x48ef53['schema']['isBlock'](_0x13de7a)&&_0x48ef53['schema']['isObject'](_0x13de7a))break;}}function shrinkFragmentToSelection(_0x580bac,_0x1d6b5a){const _0x10d35e=_0x1d6b5a['getFirstRange']()['start'];let _0x4144e4=_0x1d6b5a['getFirstRange']()['end'];const _0x559846=_0x10d35e['root'];(_0x4144e4['textNode']||_0x4144e4['nodeAfter']&&_0x4144e4['nodeAfter']['is']('$text'))&&(_insertIntoModelNodeList(_0x4144e4,'...'),_0x4144e4=_0x4144e4['getShiftedBy'](0x3)),(_0x10d35e['textNode']||_0x10d35e['nodeBefore']&&_0x10d35e['nodeBefore']['is']('$text'))&&(_insertIntoModelNodeList(_0x10d35e,'...'),_transformMarkersByInsertion(_0x559846,_0x10d35e,0x3),_0x10d35e['parent']==_0x4144e4['parent']&&(_0x4144e4=_0x4144e4['getShiftedBy'](0x3)));const _0x18be4a=_0x580bac['createRange'](_0x580bac['createPositionAt'](_0x559846,0x0),_0x10d35e),_0x4f5dc9=_0x580bac['createRange'](_0x4144e4,_0x580bac['createPositionAt'](_0x559846,'end')),_0x46c9bd=[..._0x18be4a['getMinimalFlatRanges'](),..._0x4f5dc9['getMinimalFlatRanges']()];_0x46c9bd['reverse']();for(const _0x4dd26a of _0x46c9bd)_removeFromModelNodeList(_0x4dd26a),_transformMarkersByDeletion(_0x559846,_0x4dd26a);}function _transformMarkersByDeletion(_0x42b14c,_0x56986){for(const [_0x5376c2,_0x58447f]of _0x42b14c['markers']){const _0x365c1f=_0x58447f['_getTransformedByDeletion'](_0x56986['start'],_0x56986['end']['offset']-_0x56986['start']['offset']);null!=_0x365c1f?_0x42b14c['markers']['set'](_0x5376c2,_0x365c1f):_0x42b14c['markers']['delete'](_0x5376c2);}}function _transformMarkersByInsertion(_0x351ad8,_0x4971cb,_0x264850){for(let [_0x47e0af,_0x27d733]of _0x351ad8['markers']){const _0x9622be=_0x27d733['_getTransformedByInsertion'](_0x4971cb,_0x264850,!0x1);_0x27d733=_0x9622be[0x0],_0x351ad8['markers']['set'](_0x47e0af,_0x27d733);}}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:_0x508968,content:_0x1a82a5='',isDone:_0x5f6b37=!0x1,interactionId:_0x2ed2bf,areActionsDisabled:_0x1e0035,documentContextContent:_0x397d11,editor:_0x4ef5f8,id:_0x4a6424}){super(),this['id']=_0x4a6424||uid(),this['interactionId']=_0x2ed2bf,this['type']=_0x508968,this['areActionsDisabled']=!!_0x1e0035,this['editor']=_0x4ef5f8,this['aiResponseParser']=new AIResponseParser(),this['aiResponseApplier']=new AIResponseApplier(),this['documentContextContent']=parse$2(_0x397d11||''),this['set']('isDone',_0x5f6b37),this['on']('change:content',()=>{this['onContentChange']();}),this['set']('content',_0x1a82a5);}['appendContent'](_0x4d7321){this['set']('content',this['content']+_0x4d7321);}['done'](){this['isDone']||(this['set']('isDone',!0x0),this['onContentChange']());}['destroy'](){this['stopListening']();}['setChangeGroupState'](_0xd7d85e,_0x5bcce7){this['changeGroups'][_0xd7d85e]['state']=_0x5bcce7,this['fire']('replyChangeGroupStateUpdated',{'reply':this,'index':_0xd7d85e,'state':_0x5bcce7});}['getContentParts']({showDiff:_0x30baa9,groupIndex:_0xdb1b68}){if(!this['editor'])throw new CKEditorError('ai-get-editor-from-context-no-editor',null,{'aiReply':this});const _0x5f16c1=this['_getCachedContentParts'](_0x30baa9,_0xdb1b68);if(_0x5f16c1)return _0x5f16c1;let _0x359a9b=[];if(void 0x0===_0xdb1b68)_0x359a9b=this['changeGroups'];else{const _0x2cc2dd=this['changeGroups']['find'](({index:_0x1932e3})=>_0x1932e3===_0xdb1b68);if(!_0x2cc2dd)throw new CKEditorError('ai-reply-get-content-parts-group-not-found',null,{'aiReply':this,'groupIndex':_0xdb1b68});_0x359a9b=[_0x2cc2dd];}const _0x449c3e=getSuggestionPartsFromReply({'editor':this['editor'],'showDiff':_0x30baa9,'changeGroups':_0x359a9b,'documentContextContent':this['documentContextContent']});return this['_setCachedContentParts'](_0x30baa9,_0x449c3e),_0x449c3e;}['_getCachedContentParts'](_0xa7283c,_0x3be3f0){const _0xe48420=_0xa7283c?'withDiff':'withoutDiff';if(!this['cachedSuggestionContentParts'][_0xe48420]['length'])return null;const _0x2af95c=this['cachedSuggestionContentParts'][_0xe48420];if(void 0x0===_0x3be3f0)return _0x2af95c['length']>0x0&&_0x2af95c['length']!==this['changeGroups']['length']?(this['_setCachedContentParts'](_0xa7283c,null),null):cloneDeep(_0x2af95c);{const _0xcad01e=_0x2af95c['find'](({index:_0x18051c})=>_0x18051c===_0x3be3f0);if(_0xcad01e)return[cloneDeep(_0xcad01e)];}return null;}['_setCachedContentParts'](_0x18b41c,_0x224d45){const _0x2ed287=_0x18b41c?'withDiff':'withoutDiff';_0x224d45?_0x224d45['forEach'](_0x28805f=>{const _0x4e6cb1=this['cachedSuggestionContentParts'][_0x2ed287],_0x27addd=_0x4e6cb1['find'](({index:_0x36fd00})=>_0x36fd00===_0x28805f['index']);if(_0x27addd){const _0x2c3406=_0x4e6cb1['indexOf'](_0x27addd);_0x4e6cb1['splice'](_0x2c3406,0x1,_0x28805f);}else _0x4e6cb1['push'](_0x28805f);}):this['cachedSuggestionContentParts'][_0x2ed287]['length']=0x0;}['onContentChange'](){if('modification'===this['type']){this['parsedContent']=this['aiResponseParser']['parseAndNormalizeHTML'](this['content']);const _0x3704a4=this['changeGroups'];this['updateChangeGroups']();const _0x182f04=this['_getDifferentChangeGroups'](_0x3704a4,this['changeGroups']);(_0x182f04['length']||this['isDone'])&&(this['fire']('replyContentUpdated',this,_0x182f04),this['cachedSuggestionContentParts']['withDiff']['length']=this['cachedSuggestionContentParts']['withoutDiff']['length']=0x0);}else this['parsedContent']=this['aiResponseParser']['convertMarkdownToHTML'](this['content']),this['fire']('replyContentUpdated',this);}['_getDifferentChangeGroups'](_0x233baf,_0x50e2d1){const _0x290278=[];for(const _0x49df1f of _0x50e2d1){const _0xeeecd1=_0x233baf[_0x49df1f['index']];_0xeeecd1?_0xeeecd1['changes']['length']!==_0x49df1f['changes']['length']?_0x290278['push'](_0x49df1f):_0xeeecd1['changes']['forEach']((_0xf088a3,_0x1dbf20)=>{const _0x9af797=_0x49df1f['changes'][_0x1dbf20];_0xf088a3['id']!==_0x9af797['id']&&_0x290278['push'](_0x49df1f);}):_0x290278['push'](_0x49df1f);}return _0x290278;}['updateChangeGroups'](){const _0xbe6304=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'))])]),_0x3c49f1=this['aiResponseApplier']['merge'](this['parsedContent'],this['documentContextContent']['cloneNode'](!0x0),{'markUnstableElements':!this['isDone'],'replaceRemovedWith':_0xbe6304,'cutAfterLastChange':!this['isDone']});if(!_0x3c49f1['modifiedNodeIds']['length']&&!this['isDone'])return;this['parsedMergedContent']=_0x3c49f1['parsedContent'];let _0x2ae9a3=[];if(findAll(_0x386a6=>{const _0x263bac=getAttribute(_0x386a6,'data-id');if(!_0x263bac||!_0x12d272(_0x263bac))return!0x1;const _0x3af1cd=[_0x386a6,...getParents(_0x386a6)]['at'](-0x2);if(_0x386a6!=_0x3af1cd){const _0x5c7404=getAttribute(_0x3af1cd,'data-id');_0x12d272(_0x5c7404)||(_0x2ae9a3['push']({'node':_0x3af1cd,'id':_0x5c7404,'type':'modified'}),_0x3c49f1['modifiedNodeIds']['push'](_0x5c7404));}else _0x3c49f1['modifiedNodeIds']['includes'](_0x263bac)?_0x2ae9a3['push']({'node':_0x386a6,'type':'modified','id':_0x263bac}):_0x3c49f1['newNodeIds']['includes'](_0x263bac)?_0x2ae9a3['push']({'node':_0x386a6,'type':'new','id':_0x263bac,'anchorId':getAttribute(_0x386a6['previousSibling'],'data-id')}):_0x2ae9a3['push']({'node':_0x386a6,'type':'removed','id':_0x263bac});return!0x0;},this['parsedMergedContent']),_0x2ae9a3=_0x2ae9a3['filter'](({node:_0x25a236})=>[...getParents(_0x25a236),_0x25a236]['every'](_0xe35690=>!getAttribute(_0xe35690,'data-unstable'))),0x0==_0x2ae9a3['length'])return;const _0x45bb80=[[_0x2ae9a3[0x0]]];for(let _0x2cf311=0x1;_0x2cf311<_0x2ae9a3['length'];_0x2cf311++){const _0xe49b35=_0x45bb80[_0x45bb80['length']-0x1],_0x2f48f2=_0xe49b35[_0xe49b35['length']-0x1];_0x2ae9a3[_0x2cf311]['node']['previousSibling']==_0x2f48f2['node']&&'modified'!=_0x2ae9a3[_0x2cf311]['type']&&'modified'!=_0x2f48f2['type']?_0xe49b35['push'](_0x2ae9a3[_0x2cf311]):_0x45bb80['push']([_0x2ae9a3[_0x2cf311]]);}for(const _0x9ea37b of _0x45bb80){const _0x4a0619=_0x9ea37b[0x0],_0x4766dd=_0x9ea37b[_0x9ea37b['length']-0x1],_0x25c9e6=_0x39f267(_0x4a0619['node']['previousSibling']);_0x25c9e6&&_0x9ea37b['unshift'](_0x25c9e6);const _0x59c725=_0x39f267(_0x4766dd['node']['nextSibling']);_0x59c725&&_0x9ea37b['push'](_0x59c725);}function _0x12d272(_0x438b68){return _0x3c49f1['modifiedNodeIds']['includes'](_0x438b68)||_0x3c49f1['newNodeIds']['includes'](_0x438b68)||_0x3c49f1['removedNodeIds']['includes'](_0x438b68);}function _0x39f267(_0x38be2f){if(_0x38be2f&&getAttribute(_0x38be2f,'data-id')&&!getAttribute(_0x38be2f,'data-unstable')){const _0xf82147=getAttribute(_0x38be2f,'data-id');if(!_0x12d272(_0xf82147))return{'node':_0x38be2f,'type':'context','id':_0xf82147};}return null;}this['changeGroups']=_0x45bb80['map']((_0x25b575,_0x273476)=>({'changes':_0x25b575,'state':'pending','index':_0x273476}));}}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:_0x32911c,editor:_0x3b2b69}){super(),this['id']=uid(),this['connector']=_0x32911c,this['isStopped']=!0x0,this['editor']=_0x3b2b69;}async['start'](){const _0x2b22bc=[];let _0x5564fa,_0x396b40,_0x1a4247;this['isStopped']=!0x1;try{this['currentRequest']=await this['sendRequest'](),this['fire']('interactionStarted',this);const _0x4c1ac6=await this['currentRequest']['getStream']();for await(const _0xefbb6c of _0x4c1ac6){if(this['isStopped'])return;if('error'==_0xefbb6c['event'])return void this['fire']('error',{'error':new CKEditorError('ai-chat-interaction-error',this)});switch(_0xefbb6c['event']){case'message-metadata':this['messageId']=_0xefbb6c['data']['messageId'];break;case'action-metadata':this['actionCallId']=_0xefbb6c['data']['callId'];break;case'conversation-title':this['setConversationTitle'](_0xefbb6c['data']['conversationTitle'],!0x0);break;case'source':_0x2b22bc['push'](_0xefbb6c['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'](),_0x5564fa='modification-delta'==_0xefbb6c['event']?'modification':'text',_0x396b40='modification-delta'==_0xefbb6c['event']?_0xefbb6c['data']['id']:void 0x0,this['currentReply']&&this['currentReply']['type']!=_0x5564fa&&(this['currentReply']['done'](),this['currentReply']=void 0x0),this['currentReply']||(this['currentReply']=this['createReply']({'type':_0x5564fa,'interactionId':this['id'],'id':_0x396b40}),'modification'==_0x5564fa&&(this['currentReply']['sources']=_0x2b22bc['splice'](0x0))),this['currentReply']['appendContent'](_0xefbb6c['data']['textDelta']);break;case'mcp-tool-result':_0x1a4247=JSON['parse'](_0xefbb6c['data']['result']),this['_handleToolResultData']({'toolName':_0xefbb6c['data']['toolName'],'data':_0x1a4247['data'],'attributes':_0x1a4247['attributes']});break;case'mcp-tool-notification':this['_handleToolNotificationData']({'toolName':_0xefbb6c['data']['toolName'],'data':_0xefbb6c['data']['data']});}}}finally{this['isStopped']||(this['currentReply']&&_0x2b22bc['length']>0x0&&(this['currentReply']['sources']=_0x2b22bc['splice'](0x0)),this['_finalizeInteraction'](),this['fire']('interactionFinished',this));}}['stop'](){this['isStopped']||(this['_finalizeInteraction'](),this['fire']('interactionStopped',this));}['getReply'](_0x3c6346){return this['replies']['find'](_0x10dc97=>_0x10dc97['id']===_0x3c6346);}['destroy'](){this['isDestroyed']||(this['stop'](),this['replies']['forEach'](_0x2a072b=>_0x2a072b['destroy']()),this['replies']=[],this['isDestroyed']=!0x0,this['fire']('interactionDestroyed',this),this['stopListening']());}['createReply'](_0x550370){const _0x58889a=new AIReply({'editor':this['editor'],'documentContextContent':this['getDocumentContext']()?.['content'],..._0x550370});return this['replies']['push'](_0x58889a),_0x58889a['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['fire']('replyCreated',_0x58889a),_0x58889a;}['setConversationTitle'](_0x17ded2,_0x9fb4b=!0x1){this['fire']('setConversationTitle',_0x17ded2,_0x9fb4b);}['resetWebSearchState'](){this['_isWebSearching']&&(this['_isWebSearching']=!0x1,this['fire']('webSearchFinished',this));}['resetReasoningState'](){this['_isReasoning']&&(this['_isReasoning']=!0x1,this['fire']('reasoningFinished',this));}['_handleToolResultData'](_0x1985df){this['fire']('toolDataReceived',{'type':'result','toolName':_0x1985df['toolName'],'data':structuredClone(_0x1985df['data']||{}),'attributes':structuredClone(_0x1985df['attributes']||{})},this);}['_handleToolNotificationData'](_0x4b80f9){this['fire']('toolDataReceived',{'type':'notification','toolName':_0x4b80f9['toolName'],'data':structuredClone(_0x4b80f9['data'])},this);}['_finalizeInteraction'](){this['isStopped']=!0x0,this['currentRequest']&&this['currentRequest']['abortController']['abort'](),this['currentReply']&&this['currentReply']['done'](),this['currentRequest']=this['currentReply']=void 0x0;}}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:_0x12b6c9,config:_0x51cd41,ownerId:_0x3a6134}){super(),this['_connector']=_0x12b6c9,this['_config']=_0x51cd41,this['_ownerId']=_0x3a6134;}['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'](_0x405436){const _0x42e9d1=await this['_createContextItemFromContent'](_0x405436);return this['_addToConversationContextItem'](_0x42e9d1),'current-document'===_0x42e9d1['uiId']&&this['_toggleAddCurrentDocumentOptionVisibility'](),_0x42e9d1;}async['_createContextItemFromContent'](_0x5b122b){if('document'===_0x5b122b['type']){const _0x314757=await this['_connector']['fetchDocument'](this['_ownerId'],_0x5b122b['id'])['getDocument']();return{'id':'current-document','uiId':'current-document','label':'Current\x20document','type':_0x5b122b['type'],'content':_0x314757['content'],'hidden':this['_conversationContextItems']['has']('current-document'),'version':_0x314757['attributes']?.['version'],'sessionId':_0x314757['attributes']?.['sessionId']};}if('mcp-tool-context'===_0x5b122b['type'])return{'id':_0x5b122b['id'],'uiId':_0x5b122b['id'],'label':_0x5b122b['data']?.['label']||_0x5b122b['id'],'type':'mcp-tool-context','mcpServerName':_0x5b122b['mcpServerName'],'toolName':_0x5b122b['toolName'],'data':_0x5b122b['data']||{}};return{'id':_0x5b122b['id'],'uiId':_0x5b122b['id'],'label':_0x5b122b['attributes']?.['label']||_0x5b122b['name']||_0x5b122b['url']||_0x5b122b['id'],'type':_0x5b122b['type'],..._0x5b122b?.['attributes']?.['resourceId']?{'resourceId':_0x5b122b['attributes']?.['resourceId']}:{}};}['getSentContextItems'](){return new Map(this['_conversationContextItems']);}['removeFromContext'](_0x5f2f3d){const _0x1082d0=this['_pendingContextItems']['get'](_0x5f2f3d);_0x1082d0?.['isReadOnly']||this['_removeContextItem'](_0x5f2f3d);}['clearPendingContextItems'](){if(0x0===this['_pendingContextItems']['size'])return;for(const _0x304ee3 of this['_pendingContextItems']['values']())this['_removeContextItem'](_0x304ee3['uiId']);const _0x534636=this['_conversationContextItems']['get']('current-document')||this['_pendingContextItems']['get']('current-document');_0x534636&&this['_addContextItem']({..._0x534636,'isReadOnly':!0x0,'hidden':!0x0});}['addToConversationContext'](_0x10fc64){for(const _0xe43799 of _0x10fc64['values']())this['_addToConversationContextItem'](_0xe43799);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'](_0x414154){return Array['from'](_0x414154['values']())['map'](_0x4ac978=>this['_mapContextItemToRequestData'](_0x4ac978))['filter'](_0x4c9f82=>null!==_0x4c9f82);}async['addFilesToContext'](_0x502b15,_0x5572e3,_0x5be750='file'){const _0x41f7dc='files-'+uid();this['_startUploadOperation'](_0x41f7dc);try{await Promise['all'](_0x502b15['map'](async _0x310fd7=>{const _0x48bfcd='file-'+uid(),_0x516ea7=escape(_0x310fd7['name']);try{this['_addContextItem']({'type':_0x5be750,'label':_0x5572e3?.['label']||_0x516ea7,'uiId':_0x48bfcd,'resourceId':_0x5572e3?.['resourceId']},!0x0);const _0x3052de=this['_connector']['uploadFile'](this['_ownerId'],_0x310fd7,_0x5572e3);this['_ongoingUploads']['set'](_0x48bfcd,_0x3052de['abortController']);const {id:_0x378534}=await _0x3052de['getId']();this['_ongoingUploads']['delete'](_0x48bfcd),this['_finishContextItemLoading']({'type':_0x5be750,'id':_0x378534,'label':_0x5572e3?.['label']||_0x516ea7,'uiId':_0x48bfcd,'resourceId':_0x5572e3?.['resourceId']},!0x1);}catch(_0x2a504b){this['_ongoingUploads']['delete'](_0x48bfcd);if(!(_0x2a504b instanceof CKEditorError&&_0x2a504b['message']['startsWith']('ai-request-aborted'))){const _0x716269=errorsMap['get'](_0x2a504b['code'])||'ai-chat-file-upload-failed',_0x51fd53=new CKEditorError(_0x716269,null,{'fileName':_0x516ea7,..._0x2a504b});_0x51fd53['stack']=_0x2a504b['stack'],this['fire']('error',{'error':_0x51fd53});}this['_removeContextItem'](_0x48bfcd);}}));}finally{this['_finishUploadOperation'](_0x41f7dc);}}['addCurrentDocumentToContext'](_0x560b11){if(this['isCurrentDocumentInContext']()||!this['_addContextOptionsState']['document']['enabled'])return;const _0xad1de5={'type':'document','uiId':'current-document','label':_0x560b11,'isReadOnly':this['_conversationContextItems']['has']('current-document'),'hidden':this['_conversationContextItems']['has']('current-document')};this['_addContextItem'](_0xad1de5);}async['updateCurrentDocument'](_0x271fb2,_0x1ae7b1,_0x298cd7,_0x17f176){const _0x37ad46=this['_pendingContextItems']['get']('current-document');if(_0x37ad46&&_0x271fb2){_0x37ad46['selection']=_0x17f176?_0x17f176['map'](_0x46e903=>({'start':_0x46e903['start'],'end':_0x46e903['end']})):[];try{if(_0x37ad46['version']===_0x1ae7b1)return;const {id:_0x1957de}=await this['_connector']['uploadDocument'](this['_ownerId'],_0x271fb2,{'version':_0x1ae7b1,'sessionId':_0x298cd7})['getId']();_0x37ad46['id']=_0x1957de,_0x37ad46['content']=_0x271fb2,_0x37ad46['version']=_0x1ae7b1,_0x37ad46['sessionId']=_0x298cd7;}catch(_0x19c69f){const _0x3b44e9=new CKEditorError('ai-chat-document-upload-failed',null);_0x3b44e9['stack']=_0x19c69f['stack'],this['fire']('error',{'error':_0x3b44e9});}}}['addSelectionToContext'](_0x122659){this['_addContextItem']({'type':'selection','label':_0x122659,'uiId':'selection','content':_0x122659});}['removeSelectionFromContext'](){this['_removeContextItem']('selection');}async['addUrlToContext'](_0x2d9579,_0xdebd31){const _0x1d4426='url-'+uid();this['_startUploadOperation'](_0x1d4426);const _0x192beb='url-'+uid();try{this['_addContextItem']({'type':'web-resource','label':_0xdebd31?.['label']||_0x2d9579,'uiId':_0x192beb,'resourceId':_0xdebd31?.['resourceId']},!0x0);const _0x5924cb=this['_connector']['uploadUrl'](this['_ownerId'],_0x2d9579,_0xdebd31);this['_ongoingUploads']['set'](_0x192beb,_0x5924cb['abortController']);const {id:_0x203daf}=await _0x5924cb['getId']();this['_ongoingUploads']['delete'](_0x192beb),this['_finishContextItemLoading']({'type':'web-resource','id':_0x203daf,'label':_0xdebd31?.['label']||_0x2d9579,'uiId':_0x192beb,'resourceId':_0xdebd31?.['resourceId']},!0x1);}catch(_0x2bf0a2){this['_ongoingUploads']['delete'](_0x192beb),(_0x2bf0a2['message']['startsWith']('ai-request-aborted')||this['fire']('error',{'error':new CKEditorError('ai-chat-url-upload-failed',this,{'url':_0x2d9579,'originalError':_0x2bf0a2}),'url':_0x2d9579}),this['_removeContextItem'](_0x192beb));}finally{this['_finishUploadOperation'](_0x1d4426);}}['addToolItemToContext'](_0x5f0ba6){_0x5f0ba6['id']=_0x5f0ba6['id']??uid()['substring'](0x0,0x15),this['_pendingContextItems']['set'](_0x5f0ba6['uiId'],_0x5f0ba6),this['fire']('contextItemAdded',{'contextItem':_0x5f0ba6,'isLoading':!0x1});}async['loadSourceResources'](_0x10520a,_0xbbc66c,_0x9e5a4d){const _0x37483f=this['_addContextOptionsState']['sources']['find'](_0x32c6e5=>_0x32c6e5['id']===_0x10520a);if(!_0x37483f)return this['fire']('error',{'error':new CKEditorError('ai-chat-source-not-found',this,{'sourceId':_0x10520a}),'sourceId':_0x10520a}),[];try{const _0x53329e=(await _0x37483f['getResources'](_0xbbc66c))['map'](_0x252772=>{const _0x4bbda2=this['_isResourceInContext'](_0x252772['id']);return{..._0x252772,'isInContext':_0x4bbda2};});return _0x37483f['resources']=_0x53329e,this['fire']('sourceResourcesLoaded',{'sourceId':_0x10520a,'source':_0x37483f,'resources':_0x53329e,'uid':_0x9e5a4d}),_0x53329e;}catch(_0x4ab1fc){return this['fire']('error',{'error':new CKEditorError('ai-chat-source-resources-load-failed',this,{'sourceId':_0x10520a,'originalError':_0x4ab1fc}),'sourceId':_0x10520a,'sourceLabel':_0x37483f['label']}),[];}}async['addResourceToContext'](_0x356402,_0x28bbb3){if(this['_isResourceInContext'](_0x28bbb3['id']))return;let _0x227c1e=_0x28bbb3['data'];if(!_0x227c1e&&_0x356402['getData'])try{_0x227c1e=await _0x356402['getData'](_0x28bbb3['id']);}catch(_0x5f3603){return void this['fire']('error',{'error':new CKEditorError('ai-chat-resource-load-failed',this,{'resourceId':_0x28bbb3['id'],'sourceId':_0x356402['id'],'originalError':_0x5f3603}),'resourceId':_0x28bbb3['id'],'sourceId':_0x356402['id']});}if(_0x227c1e)switch(_0x28bbb3['type']){case'web-resource':if('string'!=typeof _0x227c1e)return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x28bbb3['id'],'sourceId':_0x356402['id'],'expectedType':'string','actualType':typeof _0x227c1e}),'resourceId':_0x28bbb3['id'],'sourceId':_0x356402['id']});await this['addUrlToContext'](_0x227c1e,{'label':_0x28bbb3['label'],'resourceId':_0x28bbb3['id']});break;case'file':if(!(_0x227c1e instanceof File))return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x28bbb3['id'],'sourceId':_0x356402['id'],'expectedType':'File','actualType':typeof _0x227c1e}),'resourceId':_0x28bbb3['id'],'sourceId':_0x356402['id']});await this['addFilesToContext']([_0x227c1e],{'label':_0x28bbb3['label'],'resourceId':_0x28bbb3['id']});break;case'text':if('object'!=typeof _0x227c1e||!('content'in _0x227c1e)||!('type'in _0x227c1e))return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x28bbb3['id'],'sourceId':_0x356402['id'],'expectedType':'object\x20with\x20content\x20and\x20type\x20properties','actualType':typeof _0x227c1e}),'resourceId':_0x28bbb3['id'],'sourceId':_0x356402['id']});_0x227c1e=AIChatContext['_convertTextResourceToFile'](_0x227c1e,_0x28bbb3['label']),await this['addFilesToContext']([_0x227c1e],{'label':_0x28bbb3['label'],'resourceId':_0x28bbb3['id']},'text');break;case'mcp-tool-context':break;default:this['fire']('error',{'error':new CKEditorError('ai-chat-context-unsupported-type',this,{'resourceId':_0x28bbb3['id'],'sourceId':_0x356402['id'],'resourceType':_0x28bbb3['type']}),'resourceId':_0x28bbb3['id'],'sourceId':_0x356402['id']});}else this['fire']('error',{'error':new CKEditorError('ai-chat-resource-no-data',this,{'resourceId':_0x28bbb3['id'],'sourceId':_0x356402['id']}),'resourceId':_0x28bbb3['id'],'sourceId':_0x356402['id']});}static['_convertTextResourceToFile'](_0x4f8703,_0x51ce11){switch(_0x4f8703['type']){case'markdown':return new File([_0x4f8703['content']],_0x51ce11,{'type':'text/markdown'});case'html':return new File([_0x4f8703['content']],_0x51ce11,{'type':'text/html'});default:return new File([_0x4f8703['content']],_0x51ce11,{'type':'text/plain'});}}static['_mapContextItemToRequestData'](_0x47ebbe){switch(_0x47ebbe['type']){case'file':case'text':return{'type':'file','id':_0x47ebbe['id']};case'web-resource':return{'type':'web-resource','id':_0x47ebbe['id']};case'document':return{'type':'document','id':_0x47ebbe['id'],..._0x47ebbe['selection']?.['length']&&{'selection':_0x47ebbe['selection']}};case'mcp-tool-context':{const _0x346257=_0x47ebbe;return{'type':'mcp-tool-context','mcpServerName':_0x346257['mcpServerName'],'toolName':_0x346257['toolName'],'data':_0x346257['data'],'id':_0x346257['id']};}default:return null;}}['_addContextItem'](_0x1ace45,_0x311d13=!0x1){if(this['_pendingContextItems']['set'](_0x1ace45['uiId'],_0x1ace45),_0x1ace45['hidden']||this['fire']('contextItemAdded',{'contextItem':_0x1ace45,'isLoading':_0x311d13}),'current-document'===_0x1ace45['uiId']&&this['_toggleAddCurrentDocumentOptionVisibility'](),_0x1ace45['resourceId']){const _0xc1ed03=this['_findSourceIdsByResourceId'](_0x1ace45['resourceId']);_0xc1ed03&&_0xc1ed03['forEach'](_0x1d3b82=>{this['_updateResourceInContextState'](_0x1d3b82,_0x1ace45['resourceId'],!0x0);});}}['_removeContextItem'](_0x142e92){const _0x194578=this['_pendingContextItems']['get'](_0x142e92),_0x4a0912=this['_ongoingUploads']['get'](_0x142e92);if(_0x4a0912&&(_0x4a0912['abort'](),this['_ongoingUploads']['delete'](_0x142e92)),_0x194578?.['resourceId']){const _0x11bbd4=this['_findSourceIdsByResourceId'](_0x194578['resourceId']);_0x11bbd4&&_0x11bbd4['forEach'](_0x14df82=>{this['_updateResourceInContextState'](_0x14df82,_0x194578['resourceId'],!0x1);});}this['_pendingContextItems']['delete'](_0x142e92),this['fire']('contextItemRemoved',{'uiId':_0x142e92,'type':_0x194578?.['type']}),'current-document'===_0x142e92&&this['_toggleAddCurrentDocumentOptionVisibility']();}['_finishContextItemLoading'](_0x3553b0,_0x439b68){if(this['_pendingContextItems']['has'](_0x3553b0['uiId'])&&(this['_pendingContextItems']['set'](_0x3553b0['uiId'],_0x3553b0),this['fire']('contextItemLoadingEnded',{'contextItem':_0x3553b0,'isLoading':_0x439b68}),_0x3553b0['resourceId'])){const _0x4271db=this['_findSourceIdsByResourceId'](_0x3553b0['resourceId']);_0x4271db&&_0x4271db['forEach'](_0x552567=>{this['_updateResourceInContextState'](_0x552567,_0x3553b0['resourceId'],!0x0);});}}['_addToConversationContextItem'](_0x4b1151){this['_conversationContextItems']['set'](_0x4b1151['uiId'],_0x4b1151);}['_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'](_0x4a5ca9=>({..._0x4a5ca9,'enabled':!0x0}))??[]},this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}['_getCustomSourcesInitialState'](){return this['_config']?.['sources']?.['map'](_0x3bc57c=>({..._0x3bc57c,'resources':[]}))??[];}['_toggleAddCurrentDocumentOptionVisibility'](){const _0x3995ac=this['isCurrentDocumentInContext']()||this['isCurrentDocumentInConversation']();this['_addContextOptionsState']['document']['isHidden']=_0x3995ac,this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}['_isResourceInContext'](_0x5485a5){for(const _0x53c078 of this['_pendingContextItems']['values']())if(_0x53c078['resourceId']===_0x5485a5)return!0x0;for(const _0x644675 of this['_conversationContextItems']['values']())if(_0x644675['resourceId']===_0x5485a5)return!0x0;return!0x1;}['_findSourceIdsByResourceId'](_0x2f6f99){const _0x49e7e7=[];for(const _0x4a85b8 of this['_addContextOptionsState']['sources']){_0x4a85b8['resources']['find'](_0x32ac52=>_0x32ac52['id']===_0x2f6f99)&&_0x49e7e7['push'](_0x4a85b8['id']);}return 0x0===_0x49e7e7['length']?null:_0x49e7e7;}['_updateResourceInContextState'](_0x40fe4b,_0x3b76ad,_0x28af08){const _0x5b94ab=this['_addContextOptionsState']['sources']['find'](_0x38a906=>_0x38a906['id']===_0x40fe4b);if(!_0x5b94ab)return;const _0x6f0cbb=_0x5b94ab['resources']['find'](_0x3139fc=>_0x3139fc['id']===_0x3b76ad);_0x6f0cbb&&(_0x6f0cbb['isInContext']=_0x28af08,this['fire']('resourceStateChanged',{'sourceId':_0x40fe4b,'resourceId':_0x3b76ad,'isInContext':_0x28af08}));}['_startUploadOperation'](_0x213616){this['_ongoingUploadOperations']['set'](_0x213616,!0x0),this['_ongoingUploadOperations']['size']&&this['fire']('uploadProgressChanged',{'isUploadInProgress':!0x0});}['_finishUploadOperation'](_0x33d8cd){this['_ongoingUploadOperations']['delete'](_0x33d8cd),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'](_0x1c3cf9){const _0x2aaac1={};return _0x1c3cf9&&_0x1c3cf9['isWebSearchEnabled']&&(_0x2aaac1['webSearch']={}),_0x1c3cf9&&_0x1c3cf9['isReasoningEnabled']&&(_0x2aaac1['reasoning']={}),_0x2aaac1;}['toggleWebSearch'](){this['setWebSearch'](!this['_isWebSearchEnabled']);}['toggleReasoning'](){this['setReasoning'](!this['_isReasoningEnabled']);}['setWebSearch'](_0x161d11){_0x161d11!==this['_isWebSearchEnabled']&&(this['_isWebSearchEnabled']=_0x161d11,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}['setReasoning'](_0x5e1fce){_0x5e1fce!==this['_isReasoningEnabled']&&(this['_isReasoningEnabled']=_0x5e1fce,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}}class AIChatInteraction extends AIInteraction{['userMessage'];['conversationId'];['contextItems']=new Map();['capabilities'];['model'];['attributes'];constructor(_0x394df1){super(_0x394df1),this['conversationId']=_0x394df1['conversationId'],this['contextItems']=_0x394df1['contextItems'],this['capabilities']=_0x394df1['capabilities'],this['userMessage']=_0x394df1['userMessage'],this['model']=_0x394df1['model'],this['attributes']=_0x394df1['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(_0x2aa6f6){super(),this['options']=_0x2aa6f6,this['connector']=_0x2aa6f6['connector'],this['chatModels']=_0x2aa6f6['chatModels'],this['id']=_0x2aa6f6['conversationId'],this['isFromHistory']=_0x2aa6f6['isFromHistory'];}async['init'](_0xef514f){try{this['chatContext']=new AIChatContext({'connector':this['connector'],'config':_0xef514f,'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 _0x274224=await this['chatModels']['getAvailableModels']();this['fire']('conversationInitialized',{'availableModels':_0x274224});const _0x3cd7b7=await this['chatModels']['getModel'](this['options']['selectedModelId']);_0x3cd7b7&&await this['setModel'](_0x3cd7b7);}catch(_0x98d2ef){const _0xcc1850=new CKEditorError('ai-chat-conversation-init-failed',null,{'message':_0x98d2ef['message']||_0x98d2ef});_0xcc1850['stack']=_0x98d2ef['stack'],this['fire']('error',{'error':_0xcc1850});}}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:_0x3d20a3}=await this['connector']['startConversation'](this['id'],this['options']['group'])['getConversation']();this['id']=_0x3d20a3,this['isStarted']=!0x0,this['fire']('conversationStarted',{'conversationId':this['id'],'selectedModel':this['selectedModel']});}catch(_0x4a9006){const _0x47f450=new CKEditorError('ai-chat-conversation-start-failed',null,{'message':_0x4a9006['message'],'conversationId':this['id']});throw _0x47f450['stack']=_0x4a9006['stack'],this['fire']('error',{'error':_0x47f450}),_0x47f450;}}async['load'](_0x168199,_0x39b503){try{const _0x4a8406=await this['connector']['fetchConversation'](_0x168199)['getConversation'](),_0x40c483=await this['connector']['fetchConversationMessages'](_0x168199)['getMessages'](),_0x4c1b83=_0x40c483[0x0]['model'];this['isStarted']=!0x0,this['id']=_0x4a8406['id'],'title'in _0x4a8406?this['fire']('setConversationTitle',_0x4a8406['title'],!0x0):this['fire']('setConversationTitle','',!0x0);const _0x5366e4=(await this['chatModels']['getAll']())['find'](_0x11d14c=>_0x11d14c['id']['toLowerCase']()===_0x4c1b83['toLowerCase']());return this['selectedModel']=_0x5366e4,this['fire']('modelSelected',{'selectedModel':_0x5366e4,'isDisabled':!0x0}),await this['_processMessagesToInteractions'](_0x40c483,_0x39b503,_0x4c1b83),this['currentInteraction']=void 0x0,this;}catch(_0x11e0f4){const _0x291e87=new CKEditorError('ai-chat-conversation-init-from-id-failed',null,{'message':_0x11e0f4['message'],'conversationId':_0x168199});throw _0x291e87['stack']=_0x11e0f4['stack'],this['fire']('error',{'error':_0x291e87}),_0x291e87;}}async['_processMessagesToInteractions'](_0x4d6fee,_0x2de1d7,_0x2edd14){let _0x31dcbe;for(const _0x571fad of _0x4d6fee)if('user'===_0x571fad['role']){const _0x2bac80=await this['_extractContextItems'](_0x571fad),_0x58a6dd={'isReasoningEnabled':Object['hasOwn'](_0x571fad['capabilities'],'reasoning'),'isWebSearchEnabled':Object['hasOwn'](_0x571fad['capabilities'],'webSearch')};_0x31dcbe=this['createInteraction']({'userMessage':_0x571fad['prompt'],'contextItems':_0x2bac80,'capabilities':_0x58a6dd,'modelId':_0x2edd14,'attributes':_0x571fad['attributes']}),this['currentInteraction']=_0x31dcbe,this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}else{if('assistant'===_0x571fad['role']&&_0x31dcbe){const _0x2e1ed9=[];for(const _0x5ef146 of _0x571fad['content'])switch(_0x5ef146['type']){case'text':case'modification':{const _0x340bbf=_0x31dcbe['getDocumentContext']()?.['sessionId']!==_0x2de1d7;_0x31dcbe['currentReply']=_0x31dcbe['createReply']({'type':_0x5ef146['type'],'isDone':!0x0,'interactionId':_0x31dcbe['id'],'areActionsDisabled':_0x340bbf}),_0x31dcbe['currentReply']['appendContent'](_0x5ef146['content']),_0x2e1ed9['length']>0x0&&(_0x31dcbe['currentReply']['sources']=_0x2e1ed9['splice'](0x0));break;}case'url':_0x2e1ed9['push'](_0x5ef146);break;case'mcp-tool-result':{const {data:_0xa28662,attributes:_0x3b572f}=JSON['parse'](_0x5ef146['content']);_0x31dcbe['_handleToolResultData']({'toolName':_0x5ef146['toolName'],'data':_0xa28662,'attributes':_0x3b572f});break;}}}}}async['_extractContextItems'](_0x509a7a){const _0x2b9e1b=new Map();if(!_0x509a7a['content'])return _0x2b9e1b;for(const _0x8a8b36 of _0x509a7a['content']){const _0x19b6e0=await this['chatContext']['populateFromMessage'](_0x8a8b36);_0x19b6e0&&_0x2b9e1b['set'](_0x19b6e0['id'],_0x19b6e0);}return _0x2b9e1b;}async['handleUserInteraction']({userMessage:_0x4138f2,attributes:_0x2b33f1}){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 _0x5e0ce2=this['chatContext']['getPendingContextItems'](),_0x183de7=this['chatCapabilities']['getCapabilitiesConfig'](),_0x39bd56=this['selectedModel']['id'];this['currentInteraction']=this['createInteraction']({'userMessage':_0x4138f2,'contextItems':_0x5e0ce2,'capabilities':_0x183de7,'modelId':_0x39bd56,'attributes':_0x2b33f1}),await this['currentInteraction']['start'](),this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}catch(_0x311ef2){if(_0x311ef2 instanceof CKEditorError)this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':_0x311ef2});else{const _0x317434=errorsMap['get'](_0x311ef2['code'])||'ai-chat-handle-user-interaction-start-failed';this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':new CKEditorError(_0x317434,null,{'error':_0x311ef2})});}}finally{this['currentInteraction']?.['stop'](),this['currentInteraction']=void 0x0;}}['createInteraction']({userMessage:_0x1b7d4e,contextItems:_0x9b3045,capabilities:_0x20125f,modelId:_0x4b1275,attributes:_0x5032a4}){const _0x2e1591=new AIChatInteraction({'userMessage':_0x1b7d4e,'contextItems':_0x9b3045,'capabilities':_0x20125f,'conversationId':this['id'],'connector':this['connector'],'editor':this['options']['getEditor']&&this['options']['getEditor'](),'model':_0x4b1275,'attributes':_0x5032a4});return _0x2e1591['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['interactions']['push'](_0x2e1591),this['fire']('interactionCreated',_0x2e1591),_0x2e1591;}['getInteraction'](_0x2e7fb2){return this['interactions']['find'](_0x25d855=>_0x25d855['id']===_0x2e7fb2);}['removeInteraction'](_0x5e0985){const _0x56a4ba=this['getInteraction'](_0x5e0985);_0x56a4ba&&(_0x56a4ba['destroy'](),this['interactions']['splice'](this['interactions']['indexOf'](_0x56a4ba),0x1));}get['lastInteraction'](){return this['interactions'][this['interactions']['length']-0x1];}['addCurrentDocumentToContext'](_0x5364e5){this['chatContext']['addCurrentDocumentToContext'](_0x5364e5);}async['updateCurrentDocumentInContext']({content:_0x3ac5c0,version:_0x1413c8,sessionId:_0x127488,selections:_0x3c70b5}){await this['chatContext']['updateCurrentDocument'](_0x3ac5c0,_0x1413c8,_0x127488,_0x3c70b5);}['getCurrentDocumentContext'](){return this['currentInteraction']?.['getDocumentContext']()?.['content']||'';}['addSelectionToContext'](_0x354a12){this['chatContext']['addSelectionToContext'](_0x354a12);}['removeSelectionFromContext'](){this['chatContext']['removeSelectionFromContext']();}['addFilesToContext'](_0x4827d4){this['chatContext']['addFilesToContext'](_0x4827d4);}['addUrlToContext'](_0x1f840c){this['chatContext']['addUrlToContext'](_0x1f840c);}['addToolItemToContext'](_0x730479){this['chatContext']['addToolItemToContext'](_0x730479);}['addResourceToContext'](_0xf3efbf,_0xfc6454){this['chatContext']['addResourceToContext'](_0xf3efbf,_0xfc6454);}['loadSourceResources'](_0x4fbae4,_0x468c6e,_0x1fa001){return this['chatContext']['loadSourceResources'](_0x4fbae4,_0x468c6e,_0x1fa001);}['removeFromContext'](_0x5b1aa7){this['chatContext']['removeFromContext'](_0x5b1aa7);}['setWebSearch'](_0x4a6447){this['chatCapabilities']['setWebSearch'](_0x4a6447);}['toggleWebSearch'](){this['chatCapabilities']['toggleWebSearch']();}['setReasoning'](_0x110378){this['chatCapabilities']['setReasoning'](_0x110378);}['toggleReasoning'](){this['chatCapabilities']['toggleReasoning']();}['isCurrentDocumentInContext'](){return this['chatContext']['isCurrentDocumentInContext']();}['isCurrentDocumentInConversation'](){return this['chatContext']['isCurrentDocumentInConversation']();}['isSelectionInContext'](){return this['chatContext']['isSelectionInContext']();}async['setModel'](_0x6df7dd){_0x6df7dd?!0x1===await this['chatModels']['isAvailable'](_0x6df7dd)&&(logWarning('ai-chat-conversation-set-model-not-available',{'conversation':this,'model':_0x6df7dd}),_0x6df7dd=(await this['chatModels']['getAvailableModels']())[0x0]):(logWarning('ai-chat-conversation-set-model-null',{'conversation':this}),_0x6df7dd=(await this['chatModels']['getAvailableModels']())[0x0]),_0x6df7dd['id']!==this['selectedModel']?.['id']&&(this['selectedModel']=_0x6df7dd,this['chatCapabilities']['reset'](),this['fire']('modelSelected',{'selectedModel':_0x6df7dd}));}}class AIModels extends EmitterMixin(){['_connector'];['_config'];['_locale'];['_modelList']=[];['_modelsRequest']=null;constructor({connector:_0x355f9f,config:_0x1b438d,locale:_0x2868f1}){super(),this['_connector']=_0x355f9f,this['_config']=_0x1b438d,this['_locale']=_0x2868f1;}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 _0x3076b7=await this['getAll']();let _0x5551af;return _0x5551af=this['_availableModels']?this['_filterModels'](_0x3076b7,this['_availableModels']):_0x3076b7['filter'](_0x3913a8=>_0x3913a8['recommended']),_0x5551af;}async['getModel'](_0x5e5d98){const _0x3b3dcb=await this['getAll']();if(!_0x3b3dcb['length'])return null;if(_0x5e5d98){const _0x33b99e=this['_getModelById'](_0x3b3dcb,_0x5e5d98);if(_0x33b99e)return _0x33b99e;logWarning('ai-chat-model-id-unrecognized',{'modelId':_0x5e5d98,'fallBackModelId':this['_defaultModelId']});}return this['getDefault']();}async['getDefault'](){const _0x39a1b8=await this['getAvailableModels']();if(!_0x39a1b8['length'])return null;if(this['_defaultModelId']){const _0x118c7a=this['_getModelById'](_0x39a1b8,this['_defaultModelId']);if(_0x118c7a)return _0x118c7a;logWarning('ai-chat-default-model-id-unrecognized',{'defaultModelId':this['_defaultModelId'],'fallBackModelId':_0x39a1b8[0x0]['id']});}return _0x39a1b8[0x0];}async['isAvailable'](_0x1ca436){return(await this['getAvailableModels']())['some'](_0x2c1dbd=>_0x2c1dbd['name']===_0x1ca436['name']&&_0x2c1dbd['provider']===_0x1ca436['provider']);}async['_retrieveModels'](){if(!this['_modelList']['length'])try{const _0x37eab4=this['_locale']['uiLanguage']||'en',_0x4f155a=this['_connector']['getModels'](_0x37eab4),_0x59d897=await _0x4f155a['list']();this['_modelList']=_0x59d897['items']['map'](_0x22a1e0=>isAutoModel(_0x22a1e0)?{..._0x22a1e0,'name':getTranslation$i(this['_locale'],'AI_MODEL_NAME_AUTO')}:_0x22a1e0);}catch(_0x28ed70){throw logError('ai-models-unable-to-retrieve',{'error':_0x28ed70}),_0x28ed70;}return[...this['_modelList']];}['_filterModels'](_0x454512,_0x41551c){let _0x396a4d;if(_0x41551c){_0x396a4d=[];const _0x17e143=new Set(),_0x1c12cf='string'==typeof _0x41551c?[_0x41551c['toLocaleLowerCase']()]:_0x41551c['map'](_0x20296c=>_0x20296c['toLocaleLowerCase']());for(const _0x34b0ad of _0x1c12cf)for(const _0x5c9e3e of _0x454512)!_0x17e143['has'](_0x5c9e3e['id'])&&this['_isMatchingFilter'](_0x5c9e3e,_0x34b0ad)&&(_0x396a4d['push'](_0x5c9e3e),_0x17e143['add'](_0x5c9e3e['id']));}else _0x396a4d=_0x454512;return _0x396a4d;}['_isMatchingFilter'](_0x4ac987,_0x2bd4b1){const _0x4e17f4=_0x4ac987['id']['toLocaleLowerCase'](),_0x4528c1=_0x4ac987['name']['toLocaleLowerCase'](),_0x4a5303=_0x4ac987['provider']['toLocaleLowerCase']();return _0x4e17f4===_0x2bd4b1||_0x4528c1===_0x2bd4b1||isAutoModel(_0x4ac987)&&'auto'===_0x2bd4b1||_0x4a5303===_0x2bd4b1||_0x4e17f4['startsWith'](_0x2bd4b1);}['_getModelById'](_0x437ba1,_0xfbdf46){return _0x437ba1['find'](_0xee544f=>isAutoModel(_0xee544f)&&'auto'===_0xfbdf46?_0xee544f:_0xee544f['id']===_0xfbdf46)||null;}}function isAutoModel(_0x5647a8){return _0x5647a8['id']['startsWith']('agent');}function getEditorFromContext(_0x1ba47a){if(_0x1ba47a instanceof Editor)return _0x1ba47a;if(_0x1ba47a?.['editors']&&_0x1ba47a['editors']['get'](0x0))return _0x1ba47a['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.'),_0x1ba47a['editors']['get'](0x0);throw new CKEditorError('ai-get-editor-from-context-no-editor');}function getOperationsFromReply({editor:_0x38fff2,interaction:_0x476375,reply:_0x1ccb0f,groups:_0x264e23,transform:_0x131b7c,documentCompare:_0x4567ef,documentCompareOptions:_0x7ee7a5}){const _0xd8a004=_0x476375['getDocumentContext']();if(!_0xd8a004)return[];const _0x48416a=_0xd8a004['content'],_0xeba54d=_0xd8a004['version'],_0x348b4a=_0x1ccb0f['documentContextContent']['cloneNode'](!0x0);for(const {changes:_0x3cf675}of _0x264e23){const _0x5453c6=_0x3cf675['filter'](_0x1bb45f=>'new'!=_0x1bb45f['type'])['map'](_0x3a96d4=>findByAttribute('data-id',_0x3a96d4['id'],_0x348b4a)),_0x3d78b2=_0x3cf675['filter'](_0x4406f4=>'removed'!=_0x4406f4['type'])['map'](_0x6f8c38=>_0x6f8c38['node']['cloneNode'](!0x0));let _0x5919a9=null;if(_0x5453c6['length']){_0x5919a9=_0x5453c6[0x0]['previousSibling'];for(let _0xcc016d=0x0;_0xcc016d<_0x5453c6['length'];_0xcc016d++)removeElement(_0x5453c6[_0xcc016d]);}if(_0x3d78b2['length']){_0x5919a9||(_0x3cf675[0x0]['anchorId']?_0x5919a9=findByAttribute('data-id',_0x3cf675[0x0]['anchorId'],_0x348b4a):(_0x5919a9=_0x3d78b2['shift'](),prependChild(_0x348b4a,_0x5919a9)));for(let _0x3e9110=0x0;_0x3e9110<_0x3d78b2['length'];_0x3e9110++)append(_0x5919a9,_0x3d78b2[_0x3e9110]),_0x5919a9=_0x3d78b2[_0x3e9110];}}const _0x2f3c1a=serialize$1(_0x348b4a),_0x4a718a=_0x4567ef['getDiff'](_0x48416a,_0x2f3c1a,_0x7ee7a5)['getOperations']();if(_0x131b7c){const _0xd94187=_0x38fff2['model']['document']['history']['getOperations'](_0xeba54d),_0x4f5309={'document':_0x38fff2['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1};return transformOperationSets(_0x4a718a,_0xd94187,_0x4f5309)['operationsA'];}return _0x4a718a;}function fixMarkerOperationOldRange(_0x51a81d,_0x24d772){if('marker'!=_0x24d772['type'])return;const _0x5bf95b=_0x51a81d['model']['markers']['get'](_0x24d772['name']);_0x5bf95b&&(_0x24d772['oldRange']=_0x5bf95b['getRange']());}class AIChatController extends ContextPlugin{['activeConversation'];['_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 _0x5936b3=this['context']['plugins']['get']('AITabs');this['listenTo'](this['_aiChatUi'],'startConversation',()=>{this['_startConversationSafely']();}),this['listenTo'](this['_aiChatUi'],'sendUserMessage',(_0x1ef96f,_0x133a48)=>{this['_handleUIUserMessage']({'message':_0x133a48});}),this['listenTo'](_0x5936b3,'resizedTabs',(_0x374840,_0x1a05f8)=>{this['_setIsMaximized'](_0x1a05f8);}),this['listenTo'](this['_aiChatUi'],'resizeTabs',()=>{_0x5936b3['resize']();}),this['listenTo'](_0x5936b3['view'],'change:activeTab',(_0x2d962a,_0x5b02c1,_0x1cc9b1)=>{'chat'!==_0x1cc9b1&&this['removeSelectionFromChatContext']();}),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',(_0x3b33df,_0xf174d9)=>{this['activeConversation']?.['addFilesToContext'](Array['from'](_0xf174d9));}),this['listenTo'](this['_aiChatUi'],'addUrlToContext',(_0x3fe1e7,_0x1ce3cf)=>{this['activeConversation']?.['addUrlToContext'](_0x1ce3cf);}),this['listenTo'](this['_aiChatUi'],'executeCustomItemCallback',(_0x444d03,_0x50427f)=>{_0x50427f['callback'](this['context']);}),this['listenTo'](this['_aiChatUi'],'addResourceToContext',(_0x169957,_0x10bef8)=>{this['activeConversation']?.['addResourceToContext'](_0x10bef8['source'],_0x10bef8['resource']);}),this['listenTo'](this['_aiChatUi'],'removeContextItem',(_0x511262,_0x3df3d0)=>{this['_removeFromContext'](_0x3df3d0);}),this['listenTo'](this['_aiChatUi'],'loadSourceResources',(_0x2a392f,_0x2526c6)=>{this['activeConversation']?.['loadSourceResources'](_0x2526c6['sourceId'],_0x2526c6['query'],_0x2526c6['uid']);}),this['listenTo'](this['_aiChatUi'],'toggleWebSearch',()=>{this['_toggleWebSearch']();}),this['listenTo'](this['_aiChatUi'],'toggleReasoning',()=>{this['_toggleReasoning']();}),this['listenTo'](this['_aiChatUi'],'selectModel',(_0x11e8e9,_0x5613d3)=>{this['activeConversation']?.['setModel'](_0x5613d3);}),this['listenTo'](this['_aiChatUi'],'like',(_0xbf1508,{replyId:_0x1c7fb3})=>{console['log']('Liked\x20response',_0x1c7fb3);}),this['listenTo'](this['_aiChatUi'],'dislike',(_0x5eac17,{replyId:_0x4278a3})=>{console['log']('Disliked\x20response',_0x4278a3);}),this['listenTo'](this['_aiChatUi'],'insertSuggestion',(_0x1702e0,_0x5a395e)=>{this['_insertSuggestion'](_0x5a395e);}),this['listenTo'](this['_aiChatUi'],'showChangeInText',(_0x5b34e2,{replyId:_0x1353dc,partIndex:_0x49a597})=>{this['_aiChatBalloonShowDiff']=this['_aiChatUi']['showDiff'],this['_openBalloonFor'](_0x1353dc,_0x49a597);}),this['listenTo'](this['_aiChatUi'],'mouseOverSuggestion',(_0x312525,{replyId:_0x35bfd1,partIndex:_0x5a4a27})=>{const _0x1f5040=this['_getDocumentRangeForReplyChanges'](_0x35bfd1,_0x5a4a27);_0x1f5040&&'$graveyard'!=_0x1f5040['range']['root']['rootName']&&this['_aiEditing']['showFakeVisualSelection']({'ranges':[_0x1f5040['range']],'id':'change-area','priority':0xa});}),this['listenTo'](this['_aiChatUi'],'mouseLeaveSuggestion',()=>{this['_aiEditing']['hideFakeVisualSelection']('change-area');}),this['listenTo'](this['_aiChatUi'],'applySuggestion',(_0x1c6c45,_0x317be4)=>{this['_aiEditing']['hideFakeVisualSelection']('change-area'),this['_applySuggestion'](_0x317be4);}),this['listenTo'](this['_aiChatUi'],'toggleSuggestionDisplayMode',async(_0x199577,{replyId:_0x32e3f3,showDiff:_0x19a94e})=>{const {reply:_0x86035f}=this['getInteractionAndReplyById'](_0x32e3f3),_0x574013=_0x86035f['getContentParts']({'showDiff':_0x19a94e});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x86035f['id'],'parts':_0x574013,'renderingStrategy':'static'});}),this['listenTo'](this['_aiChatUi'],'rejectSuggestion',(_0x4c5849,{replyId:_0x501e95,partIndex:_0x3a5ea5})=>{this['_rejectSuggestion']({'replyId':_0x501e95,'partIndex':_0x3a5ea5}),this['_aiEditing']['hideFakeVisualSelection']('change-area');}),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:_0x62ee7,partIndex:_0x3c06c6}=this['_currentPreviewedChangeGroup'];this['_aiChatBalloonShowDiff']=!this['_aiChatBalloonShowDiff'];const {reply:_0x4a6b27}=this['getInteractionAndReplyById'](_0x62ee7),_0x1638d6=_0x4a6b27['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff'],'groupIndex':_0x3c06c6});this['_aiChatBalloon']['updateContent']({'part':_0x1638d6[0x0],'renderingStrategy':'static','keepErrors':!0x0});}),this['listenTo'](this['_aiChatBalloon'],'applySuggestion',()=>{const {replyId:_0x552889,partIndex:_0x273018}=this['_currentPreviewedChangeGroup'];this['_applySuggestion']({'replyId':_0x552889,'partIndex':_0x273018}),this['_aiChatBalloon']['setState']('accepted');}),this['listenTo'](this['_aiChatBalloon'],'insertSuggestion',()=>{const {replyId:_0x428fc3,partIndex:_0x16e2d7}=this['_currentPreviewedChangeGroup'];this['_insertSuggestion']({'replyId':_0x428fc3,'partIndex':_0x16e2d7}),this['_aiChatBalloon']['setState']('accepted');}),this['listenTo'](this['_aiChatBalloon'],'rejectSuggestion',()=>{const {replyId:_0x41630c,partIndex:_0x4153db}=this['_currentPreviewedChangeGroup'];this['_rejectSuggestion']({'replyId':_0x41630c,'partIndex':_0x4153db}),this['_aiChatBalloon']['setState']('rejected');}),this['listenTo'](this['_aiChatBalloon'],'showNext',()=>{const {replyId:_0x5668c8,partIndex:_0xafd74}=this['_currentPreviewedChangeGroup'],_0x7207ab=this['_getPresentableSiblingContentPartIndex'](_0x5668c8,_0xafd74,'next');null!==_0x7207ab&&this['_openBalloonFor'](_0x5668c8,_0x7207ab);}),this['listenTo'](this['_aiChatBalloon'],'showPrevious',()=>{const {replyId:_0x3093a8,partIndex:_0x3383a5}=this['_currentPreviewedChangeGroup'],_0x46e9a9=this['_getPresentableSiblingContentPartIndex'](_0x3093a8,_0x3383a5,'previous');null!==_0x46e9a9&&this['_openBalloonFor'](_0x3093a8,_0x46e9a9);}),this['listenTo'](this['_aiChatBalloon'],'dialogClosed',(_0x2995fe,{id:_0x19f0d2})=>{if('aiChatBalloon'!==_0x19f0d2)return;const {replyId:_0x20dc62,partIndex:_0x5d7a2f}=this['_currentPreviewedChangeGroup'];this['_currentPreviewedChangeGroup']=null,this['_aiChatUi']['setFeedItemAIReplySuggestionPartActive']({'id':_0x20dc62,'index':_0x5d7a2f,'isActive':!0x1});})),this['on']('interactionCreated',(_0x4662b9,_0x57e88a)=>{this['_aiChatUi']['addFeedItemUserMessage'](_0x57e88a);}),this['on']('replyCreated',(_0x46464e,_0x373a2b)=>{this['_addFeedItemReply'](_0x373a2b);});}async['afterInit'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x132bfd,_0x4cf847)=>{_0x4cf847['on']('ready',()=>{this['_integrateEditor'](_0x4cf847);});});const _0x3f21f3=this['context']['config']['get']('ai.chat.initialConversation');let _0x19d360=_0x3f21f3;if('lastCreated'!=_0x3f21f3||(_0x19d360=await this['_getLastCreatedConversationId'](),_0x19d360))return'new'==_0x19d360?this['_startConversationSafely']():this['loadConversation'](_0x19d360);}async['destroy'](){return await this['_stopLastInteraction'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}async['loadConversation'](_0x510cc0){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'](_0x510cc0)['getConversation'](),await this['_startConversationSafely'](_0x510cc0),this['_updateConversationTitle']('\x20'),await this['activeConversation']['load'](_0x510cc0,this['_aiEditing']['sessionId']),this['activeConversation']['isCurrentDocumentInConversation']()&&this['addCurrentDocumentToChatContext']();}catch(_0x51b0b5){this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION'),'id':_0x510cc0}),this['_logError'](new CKEditorError('ai-chat-conversation-not-found',this,{'error':_0x51b0b5}));}finally{this['_aiChatUi']['startAutoScroll'](),this['_aiChatUi']['setFeedItemRenderingStrategy']('streaming'),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1);}}['registerToolDataCallback'](_0x1eef53){let _0x250a2a=null,_0x80216=null;this['on']('toolDataReceived',(_0x24ca21,_0x207eb4,_0x291dd6)=>{_0x291dd6['id']!==_0x250a2a&&(_0x250a2a=_0x291dd6['id'],_0x80216=this['_getAIChatFeedAPI'](_0x291dd6)),_0x1eef53(_0x207eb4,_0x80216);});}['addCurrentDocumentToChatContext'](){this['activeConversation']?.['addCurrentDocumentToContext'](getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'));}async['addSelectionToChatContext'](){const _0x24ea0c=this['_aiEditing']['getSelectionText']();this['activeConversation']?.['addSelectionToContext'](_0x24ea0c),this['addCurrentDocumentToChatContext']();}['removeSelectionFromChatContext'](){this['activeConversation']?.['removeSelectionFromContext']();}['focusPromptInput'](){this['_aiChatUi']['focusPromptInput']();}async['startConversation'](){await this['_startConversationSafely']();}async['sendMessage'](_0x4ef751){await this['_handleUIUserMessage'](_0x4ef751);}['getGroupId'](){const _0x4d462b=this['context']['config']['get']('collaboration.channelId');if(!_0x4d462b)throw new CKEditorError('ai-chat-missing-channel-id',this);return _0x4d462b;}['_handleRemovedConversation'](_0x19b46c){this['activeConversation']['id']===_0x19b46c&&this['_startConversationSafely']();}['_insertSuggestion'](_0x1cfe28){const _0x403ad7=getEditorFromContext(this['context']);if(!_0x403ad7['plugins']['has']('TrackChanges'))throw new CKEditorError('ai-no-track-changes',null);const _0x5df938=this['context']['plugins']['get']('DocumentCompare'),{reply:_0x176fa8,interaction:_0x33252b}=this['getInteractionAndReplyById'](_0x1cfe28['replyId']),_0x407aff=this['_getDocumentRangeForReplyChanges'](_0x1cfe28['replyId'],_0x1cfe28['partIndex']),_0x45a3f1=void 0x0!==_0x1cfe28['partIndex']?[_0x176fa8['changeGroups'][_0x1cfe28['partIndex']]]:_0x176fa8['changeGroups']['filter'](_0x2fcd00=>'pending'==_0x2fcd00['state']),_0xcc8c3e=_0x45a3f1['map'](_0x2b4783=>_0x176fa8['changeGroups']['indexOf'](_0x2b4783));if(!_0x407aff||'$graveyard'==_0x407aff['range']['root']['rootName'])return void _0xcc8c3e['forEach'](_0x345e07=>_0x176fa8['setChangeGroupState'](_0x345e07,'outdated'));_0xcc8c3e['forEach'](_0x711d2b=>_0x176fa8['setChangeGroupState'](_0x711d2b,'accepted'));const _0x448d75=getOperationsFromReply({'editor':_0x403ad7,'reply':_0x176fa8,'interaction':_0x33252b,'groups':_0x45a3f1,'transform':!0x0,'documentCompare':_0x5df938,'documentCompareOptions':{'anchor':'main','markDeletions':!0x0}});let _0xe7c59b;_0x407aff&&this['_scrollToSuggestionRange'](_0x407aff['range']),_0x403ad7['model']['change'](_0x298d7d=>{_0xe7c59b=_0x298d7d['batch'],_0x403ad7['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x448d75),this['_aiEditing']['hideFakeVisualSelection']('change-area');}),this['_batchToChanges']['set'](_0xe7c59b,{'interactionId':_0x33252b['id'],'replyId':_0x176fa8['id'],'indexes':_0xcc8c3e['slice']()}),this['_updateRatings'](_0x176fa8);}['_applySuggestion'](_0x55437f){const _0x4f84c5=getEditorFromContext(this['context']),_0x2d08fe=this['context']['plugins']['get'](DocumentCompare),{reply:_0x3a664d,interaction:_0x3c2fff}=this['getInteractionAndReplyById'](_0x55437f['replyId']),_0x1aa467=this['_getDocumentRangeForReplyChanges'](_0x55437f['replyId'],_0x55437f['partIndex']),_0x3e17f6=void 0x0!==_0x55437f['partIndex']?[_0x3a664d['changeGroups'][_0x55437f['partIndex']]]:_0x3a664d['changeGroups']['filter'](_0x442498=>'pending'==_0x442498['state']),_0x450a2b=_0x3e17f6['map'](_0x5e12e5=>_0x3a664d['changeGroups']['indexOf'](_0x5e12e5));if(!_0x1aa467||'$graveyard'==_0x1aa467['range']['root']['rootName'])return void _0x450a2b['forEach'](_0x5f84b4=>_0x3a664d['setChangeGroupState'](_0x5f84b4,'outdated'));_0x450a2b['forEach'](_0x97f0c6=>_0x3a664d['setChangeGroupState'](_0x97f0c6,'accepted'));const _0x22aa11=getOperationsFromReply({'editor':_0x4f84c5,'reply':_0x3a664d,'interaction':_0x3c2fff,'groups':_0x3e17f6,'transform':!0x0,'documentCompare':_0x2d08fe,'documentCompareOptions':{'anchor':'main','markDeletions':!0x1}});let _0x3d9ce0;_0x1aa467&&this['_scrollToSuggestionRange'](_0x1aa467['range']),_0x4f84c5['model']['change'](_0xf22cff=>{_0x3d9ce0=_0xf22cff['batch'];for(const _0x2a2c3e of _0x22aa11)_0x2a2c3e['baseVersion']=_0x4f84c5['model']['document']['version'],fixMarkerOperationOldRange(_0x4f84c5,_0x2a2c3e),_0xf22cff['batch']['addOperation'](_0x2a2c3e),_0x4f84c5['model']['applyOperation'](_0x2a2c3e);}),this['_batchToChanges']['set'](_0x3d9ce0,{'interactionId':_0x3c2fff['id'],'replyId':_0x3a664d['id'],'indexes':_0x450a2b['slice']()}),this['_updateRatings'](_0x3a664d);}['_rejectSuggestion'](_0xd7752){const {reply:_0x59fa25}=this['getInteractionAndReplyById'](_0xd7752['replyId']);_0x59fa25['setChangeGroupState'](_0xd7752['partIndex'],'rejected');}['_openBalloonFor'](_0x461323,_0x31d83a){if(!this['_aiChatBalloon'])return;const {reply:_0x2054be}=this['getInteractionAndReplyById'](_0x461323),_0x5f06e6=_0x2054be['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff']});let _0x3cd48b,_0x31143e;if(void 0x0!==_0x31d83a?(_0x31143e=_0x5f06e6['find'](_0x18bc4f=>_0x18bc4f['index']==_0x31d83a),_0x3cd48b=_0x31143e?.['index']):(_0x31143e=_0x5f06e6[0x0],_0x3cd48b=_0x31143e['index']),this['_currentPreviewedChangeGroup']?.['replyId']==_0x461323&&this['_currentPreviewedChangeGroup']?.['partIndex']==_0x3cd48b)return;const _0x102f07=this['_getUserPresentableContentPartDocumentRange'](_0x461323,_0x2054be,_0x31143e);if(!_0x102f07)return void this['_aiChatBalloon']['close']();this['_currentPreviewedChangeGroup']={'replyId':_0x461323,'partIndex':_0x3cd48b},this['_scrollToSuggestionRange'](_0x102f07,!0x0);const _0x524151=this['_getPresentableSiblingContentPartIndex'](_0x461323,_0x3cd48b,'next');this['_aiChatBalloon']['updateContent']({'part':_0x31143e,'renderingStrategy':'static'}),this['_aiChatBalloon']['open']({'index':_0x3cd48b,'title':getTranslation$i(this['context']['locale'],'AI_BALLOON_HEADER_TITLE',(_0x3cd48b+0x1)['toString']()),'showRotator':null!==_0x524151,'ranges':[_0x102f07],'areActionsDisabled':_0x2054be['areActionsDisabled']}),this['_aiChatBalloon']['setState']('pending'),this['_aiChatUi']['scrollFeedToSuggestion'](_0x461323,_0x3cd48b),this['_aiChatUi']['setFeedItemAIReplySuggestionPartActive']({'id':_0x461323,'index':_0x3cd48b,'isActive':!0x0});}['_getPresentableSiblingContentPartIndex'](_0x5cb7d1,_0x315d67,_0xaf3354){const {reply:_0x4fb2d4}=this['getInteractionAndReplyById'](_0x5cb7d1),_0x453648=_0x4fb2d4['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff']});if(0x1==_0x453648['length'])return null;const _0xd8a31d=_0x453648['findIndex'](_0x2489c4=>_0x2489c4['index']==_0x315d67),_0x5292aa='next'==_0xaf3354?0x1:-0x1;let _0x5f8974=_0x453648['at']((_0xd8a31d+_0x5292aa)%_0x453648['length'])['index'],_0x4f61da=_0x453648[_0x5f8974];for(;!this['_getUserPresentableContentPartDocumentRange'](_0x5cb7d1,_0x4fb2d4,_0x4f61da);){if(_0x5f8974=_0x453648['at']((_0x5f8974+_0x5292aa)%_0x453648['length'])['index'],_0x5f8974===_0xd8a31d)return null;_0x4f61da=_0x453648[_0x5f8974];}return _0x5f8974;}['_getUserPresentableContentPartDocumentRange'](_0x5e4e3e,_0x46ac9e,_0x14fd86){const _0x4f83ae=_0x46ac9e['changeGroups'];if(!_0x14fd86['hasChanges'])return null;const _0x30d612=_0x4f83ae['find'](_0x12b6d7=>_0x12b6d7['index']==_0x14fd86['index']);if('pending'!==_0x30d612?.['state'])return null;const _0x25fc31=this['_getDocumentRangeForReplyChanges'](_0x5e4e3e,_0x14fd86['index']);if(!_0x25fc31)return null;const {range:_0x973440,currentIndex:_0x1153e9}=_0x25fc31;return'$graveyard'==_0x973440['root']['rootName']?(_0x46ac9e['setChangeGroupState'](_0x1153e9,'outdated'),null):_0x25fc31['range'];}['_getDocumentRangeForReplyChanges'](_0xb6b3b0,_0x32b2e2){const _0x8bb8b9=getEditorFromContext(this['context']),{reply:_0x132984,interaction:_0x19447b}=this['getInteractionAndReplyById'](_0xb6b3b0),_0xe97eff=_0x132984['changeGroups']['filter'](_0x204bf0=>'pending'==_0x204bf0['state']),_0x521ca6=_0xe97eff['map'](_0x58fe7e=>_0x132984['changeGroups']['indexOf'](_0x58fe7e));void 0x0===_0x32b2e2&&(_0x32b2e2=_0x521ca6[0x0]);const _0xed53fd=_0x521ca6['indexOf'](_0x32b2e2);if(-0x1==_0xed53fd)return null;const _0x38cc1c=_0xe97eff[_0xed53fd],_0x34dd52=new Document([]),_0x3b8723=new Document([]);for(const _0x3229b1 of _0x38cc1c['changes'])if('removed'!=_0x3229b1['type']&&_0x3b8723['children']['push'](_0x3229b1['node']['cloneNode'](!0x0)),'new'!=_0x3229b1['type']){const _0x2b7f3b=findOne(_0x91bd28=>getAttribute(_0x91bd28,'data-id')==_0x3229b1['id'],_0x132984['documentContextContent'],!0x0);_0x34dd52['children']['push'](_0x2b7f3b['cloneNode'](!0x0));}if(0x0==_0x34dd52['children']['length']){if(_0x38cc1c['changes'][0x0]['anchorId']){const _0x56067c=findByAttribute('data-id',_0x38cc1c['changes'][0x0]['anchorId'],_0x132984['documentContextContent']);_0x34dd52['children']['unshift'](_0x56067c['cloneNode'](!0x0)),_0x3b8723['children']['unshift'](_0x56067c['cloneNode'](!0x0)),_0x56067c['nextSibling']&&(_0x34dd52['children']['push'](_0x56067c['nextSibling']['cloneNode'](!0x0)),_0x3b8723['children']['push'](_0x56067c['nextSibling']['cloneNode'](!0x0)));}else{const _0x228a5c=_0x132984['documentContextContent']['children'][0x0];if(!_0x228a5c)return null;_0x34dd52['children']['push'](_0x228a5c['cloneNode'](!0x0)),_0x3b8723['children']['push'](_0x228a5c['cloneNode'](!0x0));}}const _0x3098d6=_0x19447b['getDocumentContext'](),_0x59ecc7=_0x8bb8b9['data']['parse'](_0x3098d6['content']),_0x10acaa=serialize$1(_0x34dd52),_0x257e17=_0x8bb8b9['data']['parse'](_0x10acaa),_0x54ae09=_0x8bb8b9['data']['parse'](_0x10acaa),_0x3e8418=_0x8bb8b9['model']['createPositionAt'](_0x257e17,0x0),_0x56079f=serialize$1(_0x3b8723),_0x2ffe88={'anchor':_0x3e8418,'markDeletions':!0x1},_0x7f6ff8=_0x8bb8b9['plugins']['get'](DocumentCompare)['getDiff'](_0x10acaa,_0x56079f,_0x2ffe88)['getOperations']();if(!_0x7f6ff8['length'])return null;_0x8bb8b9['model']['change'](_0x27793c=>{for(const _0x32ffb2 of _0x7f6ff8)if('remove'==_0x32ffb2['type']){const _0xe9fd8c=_0x32ffb2['sourcePosition'],_0x291036=_0x32ffb2['howMany'],_0x198e55=new _DetachOperation(_0xe9fd8c,_0x291036);_0x27793c['batch']['addOperation'](_0x198e55),_0x8bb8b9['model']['applyOperation'](_0x198e55);}else'marker'!==_0x32ffb2['type']&&(_0x32ffb2['baseVersion']=null,_0x32ffb2['isDocumentOperation']=!0x1,_0x27793c['batch']['addOperation'](_0x32ffb2),_0x8bb8b9['model']['applyOperation'](_0x32ffb2));});const _0x19434c=getMinimalSelection(_0x8bb8b9,_0x7f6ff8,_0x257e17);expandSelectionWithContext(_0x8bb8b9['model'],_0x19434c);const _0x466e9c=_0x19434c['getFirstRange']()['start']['path']['slice'](),_0x834707=_0x19434c['getFirstRange']()['end']['path']['slice'](),_0x33f03a=[];let _0x23829c=_0x257e17,_0x30608f=_0x54ae09;for(let _0x34c090=0x0;_0x34c090<_0x834707['length'];_0x34c090++){const _0x2862f5=_0x23829c['maxOffset']-_0x834707[_0x34c090];_0x33f03a[_0x34c090]=_0x30608f['maxOffset']-_0x2862f5,_0x23829c=_0x23829c['getChildAtOffset'](_0x834707[_0x34c090]),_0x30608f=_0x30608f['getChildAtOffset'](_0x33f03a[_0x34c090]);}const _0x29322c=_0x8bb8b9['model']['createRange'](_0x8bb8b9['model']['createPositionFromPath'](_0x54ae09,_0x466e9c),_0x8bb8b9['model']['createPositionFromPath'](_0x54ae09,_0x33f03a)),_0x384cc8=_0x54ae09['getChild'](0x0)['getAttribute'](DATA_ID_MODEL_ATTRIBUTE),_0xe3e7c6=Array['from'](_0x59ecc7['getChildren']())['find'](_0x4abf0a=>_0x4abf0a['getAttribute'](DATA_ID_MODEL_ATTRIBUTE)==_0x384cc8)['getPath'](),_0x377779=_0x29322c['start']['path']['slice'](),_0x32c186=_0x29322c['end']['path']['slice']();_0x377779[0x0]=_0xe3e7c6[0x0]+_0x377779[0x0],_0x32c186[0x0]=_0xe3e7c6[0x0]+_0x32c186[0x0];let _0x2b9bf2=_0x8bb8b9['model']['createRange'](_0x8bb8b9['model']['createPositionFromPath'](_0x8bb8b9['model']['document']['getRoot'](),_0x377779),_0x8bb8b9['model']['createPositionFromPath'](_0x8bb8b9['model']['document']['getRoot'](),_0x32c186));const _0x22072a=_0x8bb8b9['model']['document']['history']['getOperations'](_0x3098d6['version']);for(const _0x4d4b46 of _0x22072a)_0x2b9bf2=ModelRange['_createFromRanges'](_0x2b9bf2['getTransformedByOperation'](_0x4d4b46));return{'range':_0x2b9bf2,'currentIndex':_0x32b2e2};}['_integrateEditor'](_0x3a9763){if(_0x3a9763['plugins']['has']('Undo')){const _0x3e82a6=_0x3a9763['commands']['get']('undo'),_0x1101cd=_0x3a9763['commands']['get']('redo');this['listenTo'](_0x3e82a6,'revert',(_0x1534d8,_0x47bc69,_0x2a4d19)=>{const _0xaa3b96=this['_batchToChanges']['get'](_0x47bc69);if(!_0xaa3b96)return;const _0x24296a=this['activeConversation']['getInteraction'](_0xaa3b96['interactionId'])['getReply'](_0xaa3b96['replyId']);_0xaa3b96['indexes']['forEach'](_0x18a770=>_0x24296a['setChangeGroupState'](_0x18a770,'pending')),this['_batchToChanges']['delete'](_0x47bc69),this['_batchToChanges']['set'](_0x2a4d19,_0xaa3b96);}),this['listenTo'](_0x1101cd,'revert',(_0x5d3b67,_0x3fcccc,_0x5436c5)=>{const _0x2d0085=this['_batchToChanges']['get'](_0x3fcccc);if(!_0x2d0085)return;const _0x3cc24a=this['activeConversation']['getInteraction'](_0x2d0085['interactionId'])['getReply'](_0x2d0085['replyId']);_0x2d0085['indexes']['forEach'](_0xb8f8fe=>_0x3cc24a['setChangeGroupState'](_0xb8f8fe,'accepted')),this['_batchToChanges']['delete'](_0x3fcccc),this['_batchToChanges']['set'](_0x5436c5,_0x2d0085);});}const _0x18e04b=_0x3a9763['config']['get']('ai.chat.context');_0x18e04b['alwaysAddSelection']&&_0x18e04b['document']['enabled']&&this['listenTo'](_0x3a9763['model']['document']['selection'],'change:range',(_0xccdd49,_0x45d130)=>{if(!_0x45d130['directChange'])return;'chat'===_0x3a9763['plugins']['get']('AITabs')['view']['activeTab']&&(_0x3a9763['model']['hasContent'](_0x3a9763['model']['document']['selection'])?this['addSelectionToChatContext']():this['removeSelectionFromChatContext']());});}async['_getLastCreatedConversationId'](){const _0x4b2cf9=this['_aiConnector']['fetchConversations'](this['getGroupId'](),{'limit':0x1,'sortBy':'createdAt'});try{const _0x393215=await _0x4b2cf9['getConversations']();return _0x393215['length']?_0x393215[0x0]['id']:'new';}catch(_0x34d152){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':_0x34d152})),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1),this['_aiChatUi']['disableControls'](),null;}}async['_startConversationSafely'](_0x349c2e){try{this['_aiChatUi']['enableControls'](),await this['_handleStartConversation'](_0x349c2e);}catch(_0xd17c28){this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x349c2e||uid()}),console['error'](_0xd17c28),this['activeConversation']=void 0x0,this['_aiChatUi']['disableControls']();}}async['_handleStartConversation'](_0x2f3bbe){let _0x576b97;this['context']['plugins']['has']('AIChatBalloon')&&this['context']['plugins']['get']('AIChatBalloon')['close'](),_0x2f3bbe||!this['activeConversation']?_0x576b97=this['context']['config']['get']('ai.models.defaultModelId'):this['_aiChatUi']['isModelAvailable']&&(_0x576b97=this['activeConversation']['selectedModel']['id']),await this['_stopLastInteraction']();const _0x37b4b1=this['getGroupId'](),_0x3bb959=_0x2f3bbe||uid();this['activeConversation']=new AIChatConversation({'connector':this['_aiConnector'],'chatModels':this['_aiChatModels'],'selectedModelId':_0x576b97,'conversationId':_0x3bb959,'group':_0x37b4b1,'getEditor':()=>getEditorFromContext(this['context']),'isFromHistory':!!_0x2f3bbe}),this['activeConversation']['delegate']('toolDataReceived','interactionCreated','interactionStarted','replyCreated')['to'](this),this['activeConversation']['on']('conversationInitialized',(_0x220329,_0x7e7a97)=>{this['_aiChatUi']['createConversation'](_0x7e7a97),this['_aiChatUi']['resetMessageInput'](),this['_aiChatUi']['clearPendingContextUI'](),this['_aiChatUi']['clearConversationContextUI'](),_0x2f3bbe||(this['_aiChatUi']['resetConversationTitle'](),this['addCurrentDocumentToChatContext']());}),this['activeConversation']['on']('uploadProgressChanged',(_0x101a15,_0x5a7665)=>{this['_aiChatUi']['setIsUploadInProgress'](_0x5a7665['isUploadInProgress']);}),this['activeConversation']['on']('webSearchStarted',()=>{const _0x5e2a9a=this['_aiChatUi']['prepareLoadingMessage']({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this['_aiChatUi']['setLoadingMessage'](_0x5e2a9a);}),this['activeConversation']['on']('reasoningStarted',()=>{const _0x5de9fc=this['_aiChatUi']['prepareLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this['_aiChatUi']['setLoadingMessage'](_0x5de9fc);}),this['activeConversation']['on']('webSearchFinished',(_0x258783,_0x1648b4)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0x1648b4,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this['activeConversation']['on']('reasoningFinished',(_0x72bd06,_0x27e824)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0x27e824,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this['activeConversation']['on']('interactionStarted',()=>{this['_aiChatUi']['startInteraction']();}),this['activeConversation']['on']('interactionFinished',async()=>{await this['_aiChatUi']['finishInteraction']();}),this['activeConversation']['on']('interactionDestroyed',(_0x5ebbf1,_0x18a33d)=>{this['_aiChatUi']['removeFeedInteraction'](_0x18a33d['id']);}),this['activeConversation']['on']('setConversationTitle',(_0x57e73a,_0x44b815,_0x388480)=>{this['_updateConversationTitle'](_0x44b815,_0x388480);}),this['activeConversation']['on']('replyContentUpdated',async(_0x2c98e5,_0x504ad8)=>{await this['_updateReplyContent']({'reply':_0x504ad8});}),this['activeConversation']['on']('replyChangeGroupStateUpdated',(_0x3fadfa,{reply:_0x18f3b8,index:_0x1195b6,state:_0x5e88a7})=>{this['_aiChatUi']['updateFeedItemAIReplySuggestionPartState']({'id':_0x18f3b8['id'],'index':_0x1195b6,'state':_0x5e88a7}),this['_currentPreviewedChangeGroup']?.['replyId']['includes'](_0x18f3b8['id'])&&this['_currentPreviewedChangeGroup']?.['partIndex']==_0x1195b6&&this['_aiChatBalloon']?.['setState'](_0x5e88a7);}),this['activeConversation']['on']('contextItemAdded',(_0xb5d36,_0x1a1e68)=>{if(this['_aiChatUi']['addContextItem'](_0x1a1e68['contextItem'],_0x1a1e68['isLoading']),'selection'===_0x1a1e68['contextItem']['type']){const _0x174289=[...getEditorFromContext(this['context'])['model']['document']['selection']['getRanges']()];this['_aiEditing']['showFakeVisualSelection']({'ranges':_0x174289,'id':'context','priority':0x1});}}),this['activeConversation']['on']('contextItemRemoved',(_0x5af385,_0x4caf48)=>{this['_aiChatUi']['removeContextItem'](_0x4caf48['uiId']),'current-document'==_0x4caf48['uiId']&&this['removeSelectionFromChatContext'](),'selection'===_0x4caf48['type']&&this['_aiEditing']['hideFakeVisualSelection']('context');}),this['activeConversation']['on']('contextItemLoadingEnded',(_0x4813bb,_0x579a44)=>{this['_aiChatUi']['setContextItemLoading'](_0x579a44['contextItem']['uiId'],_0x579a44['isLoading']);}),this['activeConversation']['on']('contextSent',(_0x4cda87,_0x5334f4)=>{this['_aiChatUi']['setConversationContext'](_0x5334f4['contextItems']);}),this['activeConversation']['on']('addContextOptionsChanged',(_0x1a6f8d,_0x197630)=>{this['_aiChatUi']['setAddContextOptions'](_0x197630['options']);}),this['activeConversation']['on']('sourceResourcesLoaded',(_0x8df1b4,_0x209068)=>{this['_aiChatUi']['populateSourceResourceBalloon'](_0x209068['sourceId'],_0x209068['source'],_0x209068['resources'],_0x209068['uid']);}),this['activeConversation']['on']('resourceStateChanged',(_0x2198ec,_0x3cf865)=>{this['_aiChatUi']['updateResourceState'](_0x3cf865['sourceId'],_0x3cf865['resourceId'],_0x3cf865['isInContext']);}),this['activeConversation']['on']('capabilitiesUpdated',(_0x89f777,_0x1cae4c)=>{this['_aiChatUi']['updateCapabilities'](_0x1cae4c);}),this['activeConversation']['on']('modelSelected',async(_0x25c265,_0x4890ae)=>{const _0x2f5d16=(await this['_aiChatModels']['getAll']())['find'](_0x3b12b9=>_0x3b12b9['id']===_0x4890ae['selectedModel']?.['id'])||null;this['_aiChatUi']['setSelectedModel'](_0x2f5d16,_0x4890ae['isDisabled']);}),this['activeConversation']['on']('error',(_0x268cf6,{error:_0x4188fc,interactionId:_0x587ac8,fileName:_0x54d650,url:_0x42e11b,sourceId:_0x351c67,sourceLabel:_0x52ca4a})=>{const _0x7453a=_0x587ac8?_0x587ac8+':'+uid():uid();_0x4188fc['message']['startsWith']('ai-request-aborted')?this['_aiChatUi']['addFeedItemStaticMessage']({'staticMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_ABORTED_MESSAGE'),'id':_0x7453a}):_0x4188fc['message']['startsWith']('ai-chat-conversation-init-failed')||_0x4188fc['message']['startsWith']('ai-chat-conversation-start-failed')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x7453a}),this['_logError'](_0x4188fc)):_0x4188fc['message']['startsWith']('ai-chat-file-upload-failed')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE',_0x54d650),'id':_0x7453a}):_0x4188fc['message']['startsWith']('ai-chat-url-upload-failed')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL',_0x42e11b),'id':_0x7453a}):_0x4188fc['message']['startsWith']('ai-chat-context-invalid-data')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_INVALID_DATA'),'id':_0x7453a}):_0x4188fc['message']['startsWith']('ai-chat-context-unsupported-type')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE'),'id':_0x7453a}):_0x4188fc['message']['startsWith']('ai-chat-source-resources-load-failed')?(_0x351c67&&this['_aiChatUi']['closeSourceResourceBalloon'](_0x351c67),this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES',_0x52ca4a||'source'),'id':_0x7453a}),this['_logError'](_0x4188fc)):_0x4188fc['message']['startsWith']('ai-chat-resource-load-failed')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_RESOURCE_LOAD_FAILED'),'id':_0x7453a}),this['_logError'](_0x4188fc)):_0x4188fc['message']['startsWith']('ai-chat-invalid-request')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_INVALID_REQUEST'),'id':_0x7453a}),this['_logError'](_0x4188fc)):_0x4188fc['message']['startsWith']('ai-chat-context-unsupported-file-type')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE'),'id':_0x7453a}),this['_logError'](_0x4188fc)):_0x4188fc['message']['startsWith']('ai-chat-context-file-too-large')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_FILE_TOO_LARGE'),'id':_0x7453a}),this['_logError'](_0x4188fc)):_0x4188fc['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':_0x7453a}),this['_logError'](_0x4188fc)):_0x4188fc['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':_0x7453a}),this['_logError'](_0x4188fc)):(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_GENERIC_ERROR'),'id':_0x7453a}),this['_logError'](_0x4188fc));}),await this['activeConversation']['init'](this['context']['config']['get']('ai.chat.context')),_0x2f3bbe||await this['activeConversation']['start']();}async['_handleUIUserMessage']({message:_0x421e02,attributes:_0x2a330e}){if(!this['activeConversation'])throw new CKEditorError('ai-chat-controller-no-active-conversation');if(this['activeConversation']['isCurrentDocumentInContext']()){const _0x5f2f85=await this['_aiEditing']['getDocumentData']();await this['activeConversation']['updateCurrentDocumentInContext'](_0x5f2f85);}this['activeConversation']['id']&&this['activeConversation']['isStarted']&&await this['activeConversation']['handleUserInteraction']({'userMessage':_0x421e02,'attributes':_0x2a330e});}['_setIsMaximized'](_0xdae06d){this['_aiChatUi']['setIsMaximized'](_0xdae06d);}['_logError'](_0x5eb087){logError(_0x5eb087['message']);}['_removeFromContext'](_0x40c8ab){this['activeConversation']?.['removeFromContext'](_0x40c8ab);}['_toggleWebSearch'](){this['activeConversation']?.['toggleWebSearch']();}['_toggleReasoning'](){this['activeConversation']?.['toggleReasoning']();}['getInteractionAndReplyById'](_0x571ee4){const [_0x62fa93,_0xafa4f6]=_0x571ee4['split'](':'),_0x4c1f6=this['activeConversation']['getInteraction'](_0x62fa93),_0x3f2bde=_0x4c1f6['getReply'](_0xafa4f6);return{'interaction':_0x4c1f6,'reply':_0x3f2bde};}['_scrollToSuggestionRange'](_0x23e371,_0x3e1238=!0x1){const _0x59fb04=getEditorFromContext(this['context']),_0xeb76fd={'target':_0x59fb04['editing']['view']['domConverter']['viewRangeToDom'](_0x59fb04['editing']['mapper']['toViewRange'](_0x23e371)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x3e1238};_0x3e1238&&(_0xeb76fd['alignToTop']=!0x0),scrollViewportToShowTarget(_0xeb76fd);}['_updateConversationTitle'](_0x4893c3,_0x3cde28=!0x1){this['_aiChatUi']['setConversationTitle'](_0x4893c3||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),_0x3cde28);}['_addFeedItemReply'](_0x581b13){'text'===_0x581b13['type']?this['_aiChatUi']['addFeedItemAIReply'](_0x581b13):this['_aiChatUi']['addFeedItemAISuggestion'](_0x581b13);}async['_updateReplyContent']({reply:_0xe924ea,renderingStrategy:_0x2320d2}){const {id:_0x3d80a6,interactionId:_0x29ab8f,isDone:_0x4ce63e,type:_0x391609,parsedContent:_0xc67dd4}=_0xe924ea,_0x17bd38=_0x29ab8f+':'+_0x3d80a6;if('modification'===_0x391609){const _0x2beda3=_0xe924ea['getContentParts']({'showDiff':this['_aiChatUi']['showDiff']});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x17bd38,'parts':_0x2beda3,'renderingStrategy':_0x2320d2,'isDone':_0x4ce63e});}else'text'===_0x391609&&await this['_aiChatUi']['updateFeedItemAIReplyContent']({'id':_0x17bd38,'parsedContent':_0xc67dd4,'renderingStrategy':_0x2320d2,'isDone':_0x4ce63e});_0x4ce63e&&_0xe924ea['sources']['length']>0x0&&this['_aiChatUi']['updateFeedItemAIReplySources'](_0x17bd38,_0xe924ea['sources']);}async['_stopLastInteraction'](){const _0x24bbcc=this['activeConversation']?.['lastInteraction'];_0x24bbcc&&(_0x24bbcc['stop'](),this['_aiChatUi']['stopInteraction'](_0x24bbcc));}async['_flushLastInteractionUI'](){const _0x3610fa=this['activeConversation']?.['lastInteraction'];if(_0x3610fa){for await(const _0x26a546 of _0x3610fa['replies'])this['_aiChatUi']['hasFeedItem'](_0x26a546['id'])||this['_addFeedItemReply'](_0x26a546),await this['_updateReplyContent']({'reply':_0x26a546,'renderingStrategy':'static'});}}['_updateRatings'](_0x216b70){const _0x3ed168={'positiveCount':_0x216b70['changeGroups']['filter'](_0x2eb416=>'accepted'===_0x2eb416['state'])['length'],'totalCount':_0x216b70['changeGroups']['length'],'modificationId':_0x216b70['id']},_0x4af629=this['activeConversation']['getInteraction'](_0x216b70['interactionId'])['messageId'];_0x4af629&&this['_aiConnector']['upsertAIChatRating'](this['activeConversation']['id'],_0x4af629,_0x3ed168);}['_getAIChatFeedAPI'](_0x1e1256){const _0x1309ab=this['_aiChatUi'],_0x1675e6=()=>{_0x1e1256['resetWebSearchState'](),_0x1e1256['resetReasoningState'](),_0x1309ab['clearLoadingMessage']();},_0x357d11=()=>{_0x1e1256['currentReply']&&(_0x1e1256['currentReply']['done'](),_0x1e1256['currentReply']=void 0x0);};return{'insertTextReply':(_0x22a9c7,_0x4f0e21)=>{_0x357d11(),_0x1675e6();const _0x5beaf0=_0x1e1256['currentReply']=_0x1e1256['createReply']({'type':'text','interactionId':_0x1e1256['id'],'content':_0x22a9c7,'id':_0x4f0e21||uid()});return _0x357d11(),_0x5beaf0;},'insertCustomElement':async(_0x421dff,_0x13ecff)=>(_0x357d11(),_0x1675e6(),_0x1309ab['addFeedItemCustomElement'](_0x421dff,_0x13ecff||uid())),'setLoadingMessage':_0x319a18=>{_0x1309ab['setLoadingMessage'](_0x319a18);},'clearLoadingMessage':()=>{_0x1309ab['clearLoadingMessage']();}};}}const AI_VISUAL_SELECTION_MARKER_NAME='ai-selection';class AIEditing extends ContextPlugin{constructor(_0xd730cf){super(_0xd730cf),this['context']['config']['define']('ai.models.showModelSelector',!0x0);}['_outputDataProcessor'];['_fakeSelections']=[];['_sessionId'];static get['pluginName'](){return'AIEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['sessionId'](){if(!this['_sessionId']){const _0x26b00c=getEditorFromContext(this['context']),_0x5d674a=_0x26b00c['plugins']['has']('RealTimeCollaborationClient')&&_0x26b00c['plugins']['get']('RealTimeCollaborationClient')['sessionId'];this['_sessionId']=_0x5d674a||uid();}return this['_sessionId'];}async['getDocumentData'](){const _0x2ec42d=getEditorFromContext(this['context']),_0x5f1250=_0x2ec42d['model'],_0x492a35=_0x2ec42d['data']['toView'](_0x5f1250['document']['getRoot'](),{'convertAiChatSelectionMarker':!0x0}),_0x531ab9=new ViewDowncastWriter(_0x2ec42d['editing']['view']['document']);this['_setDataIdsOnChildren'](_0x492a35,_0x531ab9);let _0x3ffb8e=await this['_getDocumentDataStringFromView'](_0x492a35);const _0x48c018=this['_getMarkersInDocumentOrder'](),_0x45c6f0=[];for(const _0x1f7a82 of _0x48c018){const _0x13bbb1='<'+_0x1f7a82['name']+':start></'+_0x1f7a82['name']+':start>',_0x563974=_0x3ffb8e['indexOf'](_0x13bbb1);_0x3ffb8e=_0x3ffb8e['substring'](0x0,_0x563974)+_0x3ffb8e['substring'](_0x563974+_0x13bbb1['length']);const _0x5afc52='<'+_0x1f7a82['name']+':end></'+_0x1f7a82['name']+':end>',_0x2a9f1e=_0x3ffb8e['indexOf'](_0x5afc52);_0x3ffb8e=_0x3ffb8e['substring'](0x0,_0x2a9f1e)+_0x3ffb8e['substring'](_0x2a9f1e+_0x5afc52['length']),_0x45c6f0['push']({'markerName':_0x1f7a82['name'],'start':_0x563974,'end':_0x2a9f1e,'htmlFragment':_0x3ffb8e['substring'](_0x563974,_0x2a9f1e)});}return{'content':_0x3ffb8e,'version':_0x2ec42d['model']['document']['version'],'sessionId':this['sessionId'],'selections':_0x45c6f0};}async['afterInit'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x4b44cf,_0x456dd6)=>{_0x456dd6['on']('ready',()=>{this['_integrateEditor'](_0x456dd6);});});}['_setOutputDataProcessor'](_0x1118be){this['_outputDataProcessor']=_0x1118be;}async['_getDocumentDataStringFromView'](_0x512b72){let _0x538306;const _0x4ca471=getEditorFromContext(this['context']);if(this['_outputDataProcessor']){const _0x1f69dd=_0x4ca471['data']['processor']['domConverter']['viewToDom'](_0x512b72),_0x29973a=await this['_outputDataProcessor'](_0x1f69dd);_0x538306=_0x4ca471['data']['processor']['htmlWriter']['getHtml'](_0x29973a);}else _0x538306=_0x4ca471['data']['processor']['toData'](_0x512b72);return _0x538306;}['_integrateEditor'](_0x2a6977){_0x2a6977['conversion']['for']('editingDowncast')['markerToHighlight']({'model':AI_VISUAL_SELECTION_MARKER_NAME,'view':({markerName:_0x1db592})=>({'classes':['ck-ai-assistant-ui_theme','ck-fake-ai-selection','ck-fake-ai-selection-'+_0x1db592['split'](':')[0x1]],'priority':0xc})}),_0x2a6977['conversion']['for']('dataDowncast')['markerToElement']({'model':AI_VISUAL_SELECTION_MARKER_NAME,'view':(_0x19bb3b,{writer:_0x4644bb,options:_0x341727})=>_0x341727['convertAiChatSelectionMarker']?_0x4644bb['createUIElement'](_0x19bb3b['markerName']+':'+(_0x19bb3b['isOpening']?'start':'end')):null});}['showFakeVisualSelection'](_0x2da79a){const _0x2843c8=this['_fakeSelections'][0x0]||null;this['_addFakeSelection'](_0x2da79a);const _0x2dba26=this['_fakeSelections'][0x0]||null;this['_refreshFakeSelection'](_0x2843c8,_0x2dba26);}['hideFakeVisualSelection'](_0x4ab159){const _0x323622=this['_fakeSelections'][0x0]||null;this['_removeFakeSelectionById'](_0x4ab159);const _0x1df698=this['_fakeSelections'][0x0]||null;this['_refreshFakeSelection'](_0x323622,_0x1df698);}async['modelToDataWithIds'](_0x51f430){const _0x1391ae=getEditorFromContext(this['context']),_0x59b0e7=_0x1391ae['data']['toView'](_0x51f430),_0x2cc2ea=new ViewDowncastWriter(_0x1391ae['editing']['view']['document']);return this['_setDataIdsOnChildren'](_0x59b0e7,_0x2cc2ea),this['_getDocumentDataStringFromView'](_0x59b0e7);}['_setDataIdsOnChildren'](_0x5eabf1,_0x1fe148){let _0x383b82=!0x1;const _0x37007e=new Set();for(const _0xd7eceb of _0x5eabf1['getChildren']()){if(!_0xd7eceb['is']('view:element'))continue;const _0x294a04=_0xd7eceb['is']('view:containerElement'),_0xb1032b=_0xd7eceb['is']('view:emptyElement'),_0x38d813=this['_setDataIdsOnChildren'](_0xd7eceb,_0x1fe148);if(_0xd7eceb['hasAttribute']('data-id')){_0x383b82=!0x0,_0x37007e['add'](_0xd7eceb['getAttribute']('data-id'));continue;}(_0x294a04||_0xb1032b||_0x38d813)&&(_0x1fe148['setAttribute']('data-id',this['_nextDataId'](_0x37007e),_0xd7eceb),_0x383b82=!0x0);}return _0x383b82;}['_nextDataId'](_0xa45e88){let _0x323da5;do{_0x323da5='';for(let _0x4e434f=0x0;_0x4e434f<0x4;_0x4e434f++)_0x323da5+=String['fromCharCode'](0x61+Math['floor'](0x1a*Math['random']()));}while(_0xa45e88['has'](_0x323da5));return _0xa45e88['add'](_0x323da5),_0x323da5;}['getSelectionText'](){const {model:_0x4a0502}=getEditorFromContext(this['context']),_0x1e2077=_0x4a0502['document']['selection'],_0x59c0be=[],_0x1990af=Array['from'](_0x1e2077['getRanges']());_0x1990af['sort']((_0x337766,_0x157b93)=>_0x337766['start']['isBefore'](_0x157b93['start'])?-0x1:0x1);for(const _0x390903 of _0x1990af)for(const _0xfb82d7 of _0x390903['getItems']())_0xfb82d7['is']('$textProxy')?_0x59c0be['push'](_0xfb82d7['data']):_0xfb82d7['is']('element')&&_0x59c0be['length']>0x0&&'\x20'!==_0x59c0be[_0x59c0be['length']-0x1]&&_0x59c0be['push']('\x20');return _0x59c0be['length']?'\x22'+_0x59c0be['join']('')['trim']()+'\x22':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL');}['_removeFakeSelectionById'](_0xa46192){for(let _0x45f92f=0x0;_0x45f92f<this['_fakeSelections']['length'];_0x45f92f++)if(this['_fakeSelections'][_0x45f92f]['id']==_0xa46192)return void this['_fakeSelections']['splice'](_0x45f92f,0x1);}['_addFakeSelection'](_0x2bbd64){this['_removeFakeSelectionById'](_0x2bbd64['id']),insertToPriorityArray(this['_fakeSelections'],_0x2bbd64);}['_refreshFakeSelection'](_0x337ee3,_0x4baf00){if(_0x337ee3==_0x4baf00)return;const _0x39de52=getEditorFromContext(this['context']),_0x7c6ee0=_0x39de52['model'];_0x7c6ee0['change'](_0x409170=>{if(_0x337ee3){const _0x55a453=_0x39de52['model']['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME);for(const _0x37ceee of _0x55a453)_0x409170['removeMarker'](_0x37ceee);}if(_0x4baf00)for(let _0x5cb6d3=0x0;_0x5cb6d3<_0x4baf00['ranges']['length'];_0x5cb6d3++){let _0x58075a=_0x4baf00['ranges'][_0x5cb6d3];const _0x141e02=AI_VISUAL_SELECTION_MARKER_NAME+':'+_0x4baf00['id']+':'+_0x5cb6d3;if(_0x58075a['start']['isAtEnd']){const _0x12f40a=_0x58075a['start']['getLastMatchingPosition'](({item:_0x2013dc})=>!_0x7c6ee0['schema']['isContent'](_0x2013dc),{'boundaries':_0x58075a});_0x58075a=_0x409170['createRange'](_0x12f40a,_0x58075a['end']);}_0x409170['addMarker'](_0x141e02,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x58075a});}});}['_getMarkersInDocumentOrder'](){const _0x21f204=getEditorFromContext(this['context'])['model'];return Array['from'](_0x21f204['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME))['sort']((_0x4011fb,_0x4e6757)=>_0x4011fb['getStart']()['isBefore'](_0x4e6757['getStart']())?-0x1:_0x4011fb['getStart']()['isAfter'](_0x4e6757['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(_0x2e924d,_0x8d2f6e){var _0xdbc3cc,_0x2f2191,_0x340f96,_0x52fcb9,_0x4b9d6b=_0x8d2f6e['attributes'];if(_0x8d2f6e['nodeType']!==DOCUMENT_FRAGMENT_NODE&&_0x2e924d['nodeType']!==DOCUMENT_FRAGMENT_NODE){for(var _0x30f5d7=_0x4b9d6b['length']-0x1;_0x30f5d7>=0x0;_0x30f5d7--)_0x2f2191=(_0xdbc3cc=_0x4b9d6b[_0x30f5d7])['name'],_0x340f96=_0xdbc3cc['namespaceURI'],_0x52fcb9=_0xdbc3cc['value'],_0x340f96?(_0x2f2191=_0xdbc3cc['localName']||_0x2f2191,_0x2e924d['getAttributeNS'](_0x340f96,_0x2f2191)!==_0x52fcb9&&('xmlns'===_0xdbc3cc['prefix']&&(_0x2f2191=_0xdbc3cc['name']),_0x2e924d['setAttributeNS'](_0x340f96,_0x2f2191,_0x52fcb9))):_0x2e924d['getAttribute'](_0x2f2191)!==_0x52fcb9&&_0x2e924d['setAttribute'](_0x2f2191,_0x52fcb9);for(var _0x4b74eb=_0x2e924d['attributes'],_0x57aac1=_0x4b74eb['length']-0x1;_0x57aac1>=0x0;_0x57aac1--)_0x2f2191=(_0xdbc3cc=_0x4b74eb[_0x57aac1])['name'],(_0x340f96=_0xdbc3cc['namespaceURI'])?(_0x2f2191=_0xdbc3cc['localName']||_0x2f2191,_0x8d2f6e['hasAttributeNS'](_0x340f96,_0x2f2191)||_0x2e924d['removeAttributeNS'](_0x340f96,_0x2f2191)):_0x8d2f6e['hasAttribute'](_0x2f2191)||_0x2e924d['removeAttribute'](_0x2f2191);}}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(_0x2e1854){var _0x4e9492=doc$1['createElement']('template');return _0x4e9492['innerHTML']=_0x2e1854,_0x4e9492['content']['childNodes'][0x0];}function createFragmentFromRange(_0x3d5108){return range||(range=doc$1['createRange']())['selectNode'](doc$1['body']),range['createContextualFragment'](_0x3d5108)['childNodes'][0x0];}function createFragmentFromWrap(_0x2b4eeb){var _0x3ac4da=doc$1['createElement']('body');return _0x3ac4da['innerHTML']=_0x2b4eeb,_0x3ac4da['childNodes'][0x0];}function toElement(_0x35d5d5){return _0x35d5d5=_0x35d5d5['trim'](),HAS_TEMPLATE_SUPPORT?createFragmentFromTemplate(_0x35d5d5):HAS_RANGE_SUPPORT?createFragmentFromRange(_0x35d5d5):createFragmentFromWrap(_0x35d5d5);}function compareNodeNames(_0x20c3c8,_0x1b5286){var _0x3c579e,_0x5c8118,_0x4f6b41=_0x20c3c8['nodeName'],_0x4928f2=_0x1b5286['nodeName'];return _0x4f6b41===_0x4928f2||(_0x3c579e=_0x4f6b41['charCodeAt'](0x0),_0x5c8118=_0x4928f2['charCodeAt'](0x0),_0x3c579e<=0x5a&&_0x5c8118>=0x61?_0x4f6b41===_0x4928f2['toUpperCase']():_0x5c8118<=0x5a&&_0x3c579e>=0x61&&_0x4928f2===_0x4f6b41['toUpperCase']());}function createElementNS(_0x146909,_0xcfacab){return _0xcfacab&&_0xcfacab!==NS_XHTML?doc$1['createElementNS'](_0xcfacab,_0x146909):doc$1['createElement'](_0x146909);}function moveChildren(_0x224f17,_0x2c76c5){for(var _0x4677e1=_0x224f17['firstChild'];_0x4677e1;){var _0x5c5713=_0x4677e1['nextSibling'];_0x2c76c5['appendChild'](_0x4677e1),_0x4677e1=_0x5c5713;}return _0x2c76c5;}function syncBooleanAttrProp(_0x2d5279,_0x2b7632,_0x108953){_0x2d5279[_0x108953]!==_0x2b7632[_0x108953]&&(_0x2d5279[_0x108953]=_0x2b7632[_0x108953],_0x2d5279[_0x108953]?_0x2d5279['setAttribute'](_0x108953,''):_0x2d5279['removeAttribute'](_0x108953));}var specialElHandlers={'OPTION':function(_0x441887,_0x28cb6e){var _0x54e93b=_0x441887['parentNode'];if(_0x54e93b){var _0x27c2f=_0x54e93b['nodeName']['toUpperCase']();'OPTGROUP'===_0x27c2f&&(_0x27c2f=(_0x54e93b=_0x54e93b['parentNode'])&&_0x54e93b['nodeName']['toUpperCase']()),'SELECT'!==_0x27c2f||_0x54e93b['hasAttribute']('multiple')||(_0x441887['hasAttribute']('selected')&&!_0x28cb6e['selected']&&(_0x441887['setAttribute']('selected','selected'),_0x441887['removeAttribute']('selected')),_0x54e93b['selectedIndex']=-0x1);}syncBooleanAttrProp(_0x441887,_0x28cb6e,'selected');},'INPUT':function(_0x3e5530,_0x1ef99a){syncBooleanAttrProp(_0x3e5530,_0x1ef99a,'checked'),syncBooleanAttrProp(_0x3e5530,_0x1ef99a,'disabled'),_0x3e5530['value']!==_0x1ef99a['value']&&(_0x3e5530['value']=_0x1ef99a['value']),_0x1ef99a['hasAttribute']('value')||_0x3e5530['removeAttribute']('value');},'TEXTAREA':function(_0x3c71e7,_0x39435f){var _0xa1c0cd=_0x39435f['value'];_0x3c71e7['value']!==_0xa1c0cd&&(_0x3c71e7['value']=_0xa1c0cd);var _0x2fc007=_0x3c71e7['firstChild'];if(_0x2fc007){var _0x3a8307=_0x2fc007['nodeValue'];if(_0x3a8307==_0xa1c0cd||!_0xa1c0cd&&_0x3a8307==_0x3c71e7['placeholder'])return;_0x2fc007['nodeValue']=_0xa1c0cd;}},'SELECT':function(_0x391fc6,_0x1e3d65){if(!_0x1e3d65['hasAttribute']('multiple')){for(var _0x311012,_0x343fa1,_0x235cf5=-0x1,_0x5477d9=0x0,_0x2965ee=_0x391fc6['firstChild'];_0x2965ee;)if('OPTGROUP'===(_0x343fa1=_0x2965ee['nodeName']&&_0x2965ee['nodeName']['toUpperCase']()))(_0x2965ee=(_0x311012=_0x2965ee)['firstChild'])||(_0x2965ee=_0x311012['nextSibling'],_0x311012=null);else{if('OPTION'===_0x343fa1){if(_0x2965ee['hasAttribute']('selected')){_0x235cf5=_0x5477d9;break;}_0x5477d9++;}!(_0x2965ee=_0x2965ee['nextSibling'])&&_0x311012&&(_0x2965ee=_0x311012['nextSibling'],_0x311012=null);}_0x391fc6['selectedIndex']=_0x235cf5;}}},ELEMENT_NODE=0x1,DOCUMENT_FRAGMENT_NODE$1=0xb,TEXT_NODE=0x3,COMMENT_NODE=0x8;function noop(){}function defaultGetNodeKey(_0x317480){if(_0x317480)return _0x317480['getAttribute']&&_0x317480['getAttribute']('id')||_0x317480['id'];}function morphdomFactory(_0x24eca2){return function(_0x5ea375,_0x2f7e4f,_0x182b93){if(_0x182b93||(_0x182b93={}),'string'==typeof _0x2f7e4f){if('#document'===_0x5ea375['nodeName']||'HTML'===_0x5ea375['nodeName']||'BODY'===_0x5ea375['nodeName']){var _0xab4fcb=_0x2f7e4f;(_0x2f7e4f=doc$1['createElement']('html'))['innerHTML']=_0xab4fcb;}else _0x2f7e4f=toElement(_0x2f7e4f);}else _0x2f7e4f['nodeType']===DOCUMENT_FRAGMENT_NODE$1&&(_0x2f7e4f=_0x2f7e4f['firstElementChild']);var _0x40066b=_0x182b93['getNodeKey']||defaultGetNodeKey,_0x3112f6=_0x182b93['onBeforeNodeAdded']||noop,_0x1eef57=_0x182b93['onNodeAdded']||noop,_0x193657=_0x182b93['onBeforeElUpdated']||noop,_0x14318d=_0x182b93['onElUpdated']||noop,_0x3d62de=_0x182b93['onBeforeNodeDiscarded']||noop,_0x507548=_0x182b93['onNodeDiscarded']||noop,_0x33d24a=_0x182b93['onBeforeElChildrenUpdated']||noop,_0x2d7f5f=_0x182b93['skipFromChildren']||noop,_0x34d591=_0x182b93['addChild']||function(_0x568a6e,_0x115681){return _0x568a6e['appendChild'](_0x115681);},_0x1a7447=!0x0===_0x182b93['childrenOnly'],_0x36e8e5=Object['create'](null),_0x76c57e=[];function _0x4be4b8(_0x35e8dc){_0x76c57e['push'](_0x35e8dc);}function _0x463d66(_0x14f68d,_0x5ab24e){if(_0x14f68d['nodeType']===ELEMENT_NODE)for(var _0x157568=_0x14f68d['firstChild'];_0x157568;){var _0x10f8c4=void 0x0;_0x5ab24e&&(_0x10f8c4=_0x40066b(_0x157568))?_0x4be4b8(_0x10f8c4):(_0x507548(_0x157568),_0x157568['firstChild']&&_0x463d66(_0x157568,_0x5ab24e)),_0x157568=_0x157568['nextSibling'];}}function _0xfd34bd(_0x3cc852,_0xdca297,_0x2c1c87){!0x1!==_0x3d62de(_0x3cc852)&&(_0xdca297&&_0xdca297['removeChild'](_0x3cc852),_0x507548(_0x3cc852),_0x463d66(_0x3cc852,_0x2c1c87));}function _0x2e2655(_0x54fafc){if(_0x54fafc['nodeType']===ELEMENT_NODE||_0x54fafc['nodeType']===DOCUMENT_FRAGMENT_NODE$1)for(var _0x50bf09=_0x54fafc['firstChild'];_0x50bf09;){var _0x25da4e=_0x40066b(_0x50bf09);_0x25da4e&&(_0x36e8e5[_0x25da4e]=_0x50bf09),_0x2e2655(_0x50bf09),_0x50bf09=_0x50bf09['nextSibling'];}}function _0x4407ff(_0x3b3de1){_0x1eef57(_0x3b3de1);for(var _0x39c387=_0x3b3de1['firstChild'];_0x39c387;){var _0x24eb42=_0x39c387['nextSibling'],_0x3fcada=_0x40066b(_0x39c387);if(_0x3fcada){var _0x24a2b9=_0x36e8e5[_0x3fcada];_0x24a2b9&&compareNodeNames(_0x39c387,_0x24a2b9)?(_0x39c387['parentNode']['replaceChild'](_0x24a2b9,_0x39c387),_0x499c60(_0x24a2b9,_0x39c387)):_0x4407ff(_0x39c387);}else _0x4407ff(_0x39c387);_0x39c387=_0x24eb42;}}function _0x499c60(_0x5d4a77,_0x30b4d5,_0x25be1d){var _0x431d20=_0x40066b(_0x30b4d5);if(_0x431d20&&delete _0x36e8e5[_0x431d20],!_0x25be1d){var _0xe77574=_0x193657(_0x5d4a77,_0x30b4d5);if(!0x1===_0xe77574)return;if(_0xe77574 instanceof HTMLElement&&_0x2e2655(_0x5d4a77=_0xe77574),_0x24eca2(_0x5d4a77,_0x30b4d5),_0x14318d(_0x5d4a77),!0x1===_0x33d24a(_0x5d4a77,_0x30b4d5))return;}'TEXTAREA'!==_0x5d4a77['nodeName']?function(_0x3fe699,_0x25a7a8){var _0x55f36b,_0x2ec161,_0x29348c,_0x48e7e4,_0x1035f0,_0x3422fa=_0x2d7f5f(_0x3fe699,_0x25a7a8),_0x15e5c4=_0x25a7a8['firstChild'],_0x48ff5c=_0x3fe699['firstChild'];t:for(;_0x15e5c4;){for(_0x48e7e4=_0x15e5c4['nextSibling'],_0x55f36b=_0x40066b(_0x15e5c4);!_0x3422fa&&_0x48ff5c;){if(_0x29348c=_0x48ff5c['nextSibling'],_0x15e5c4['isSameNode']&&_0x15e5c4['isSameNode'](_0x48ff5c)){_0x15e5c4=_0x48e7e4,_0x48ff5c=_0x29348c;continue t;}_0x2ec161=_0x40066b(_0x48ff5c);var _0x8a2af1=_0x48ff5c['nodeType'],_0x535b95=void 0x0;if(_0x8a2af1===_0x15e5c4['nodeType']&&(_0x8a2af1===ELEMENT_NODE?(_0x55f36b?_0x55f36b!==_0x2ec161&&((_0x1035f0=_0x36e8e5[_0x55f36b])?_0x29348c===_0x1035f0?_0x535b95=!0x1:(_0x3fe699['insertBefore'](_0x1035f0,_0x48ff5c),_0x2ec161?_0x4be4b8(_0x2ec161):_0xfd34bd(_0x48ff5c,_0x3fe699,!0x0),_0x2ec161=_0x40066b(_0x48ff5c=_0x1035f0)):_0x535b95=!0x1):_0x2ec161&&(_0x535b95=!0x1),(_0x535b95=!0x1!==_0x535b95&&compareNodeNames(_0x48ff5c,_0x15e5c4))&&_0x499c60(_0x48ff5c,_0x15e5c4)):_0x8a2af1!==TEXT_NODE&&_0x8a2af1!=COMMENT_NODE||(_0x535b95=!0x0,_0x48ff5c['nodeValue']!==_0x15e5c4['nodeValue']&&(_0x48ff5c['nodeValue']=_0x15e5c4['nodeValue']))),_0x535b95){_0x15e5c4=_0x48e7e4,_0x48ff5c=_0x29348c;continue t;}_0x2ec161?_0x4be4b8(_0x2ec161):_0xfd34bd(_0x48ff5c,_0x3fe699,!0x0),_0x48ff5c=_0x29348c;}if(_0x55f36b&&(_0x1035f0=_0x36e8e5[_0x55f36b])&&compareNodeNames(_0x1035f0,_0x15e5c4))_0x3422fa||_0x34d591(_0x3fe699,_0x1035f0),_0x499c60(_0x1035f0,_0x15e5c4);else{var _0x512b82=_0x3112f6(_0x15e5c4);!0x1!==_0x512b82&&(_0x512b82&&(_0x15e5c4=_0x512b82),_0x15e5c4['actualize']&&(_0x15e5c4=_0x15e5c4['actualize'](_0x3fe699['ownerDocument']||doc$1)),_0x34d591(_0x3fe699,_0x15e5c4),_0x4407ff(_0x15e5c4));}_0x15e5c4=_0x48e7e4,_0x48ff5c=_0x29348c;}!function(_0xd95805,_0x9bbf61,_0x11ce45){for(;_0x9bbf61;){var _0x3f8216=_0x9bbf61['nextSibling'];(_0x11ce45=_0x40066b(_0x9bbf61))?_0x4be4b8(_0x11ce45):_0xfd34bd(_0x9bbf61,_0xd95805,!0x0),_0x9bbf61=_0x3f8216;}}(_0x3fe699,_0x48ff5c,_0x2ec161);var _0x54e0a8=specialElHandlers[_0x3fe699['nodeName']];_0x54e0a8&&_0x54e0a8(_0x3fe699,_0x25a7a8);}(_0x5d4a77,_0x30b4d5):specialElHandlers['TEXTAREA'](_0x5d4a77,_0x30b4d5);}_0x2e2655(_0x5ea375);var _0x293c07=_0x5ea375,_0x4bee56=_0x293c07['nodeType'],_0x14ed7a=_0x2f7e4f['nodeType'];if(!_0x1a7447){if(_0x4bee56===ELEMENT_NODE)_0x14ed7a===ELEMENT_NODE?compareNodeNames(_0x5ea375,_0x2f7e4f)||(_0x507548(_0x5ea375),_0x293c07=moveChildren(_0x5ea375,createElementNS(_0x2f7e4f['nodeName'],_0x2f7e4f['namespaceURI']))):_0x293c07=_0x2f7e4f;else{if(_0x4bee56===TEXT_NODE||_0x4bee56===COMMENT_NODE){if(_0x14ed7a===_0x4bee56)return _0x293c07['nodeValue']!==_0x2f7e4f['nodeValue']&&(_0x293c07['nodeValue']=_0x2f7e4f['nodeValue']),_0x293c07;_0x293c07=_0x2f7e4f;}}}if(_0x293c07===_0x2f7e4f)_0x507548(_0x5ea375);else{if(_0x2f7e4f['isSameNode']&&_0x2f7e4f['isSameNode'](_0x293c07))return;if(_0x499c60(_0x293c07,_0x2f7e4f,_0x1a7447),_0x76c57e)for(var _0xa7a349=0x0,_0x304215=_0x76c57e['length'];_0xa7a349<_0x304215;_0xa7a349++){var _0x5ff204=_0x36e8e5[_0x76c57e[_0xa7a349]];_0x5ff204&&_0xfd34bd(_0x5ff204,_0x5ff204['parentNode'],!0x1);}}return!_0x1a7447&&_0x293c07!==_0x5ea375&&_0x5ea375['parentNode']&&(_0x293c07['actualize']&&(_0x293c07=_0x293c07['actualize'](_0x5ea375['ownerDocument']||doc$1)),_0x5ea375['parentNode']['replaceChild'](_0x293c07,_0x5ea375)),_0x293c07;};}var morphdom=morphdomFactory(morphAttrs);class HTMLStreamer{['options'];['isStreaming']=!0x1;['document']=null;['nodesList']=[];['currentIndex']=0x0;['timeoutAbortController']=null;['lastUpdateTime']=0x0;constructor(_0xa4a1e8){this['options']={'delay':_0xa4a1e8['delay']??0x14,'textNodeStyle':_0xa4a1e8['textNodeStyle'],'onStreamUpdate':_0xa4a1e8['onStreamUpdate']||(()=>{})};}async['stream']({document:_0x25a96e,targetElement:_0x1dea39,abortSignal:_0x573eb3}){this['isStreaming']&&this['stop'](),_0x573eb3?.['addEventListener']('abort',this['stop']['bind'](this)),this['document']=cloneNode(_0x25a96e,!0x0),this['nodesList']=this['getParsedDocumentNodeList'](),this['isStreaming']=!0x0,this['currentIndex']>this['nodesList']['length']&&(this['currentIndex']=this['nodesList']['length']);for(let _0xa2054d=0x0;_0xa2054d<this['currentIndex'];_0xa2054d++)this['nodesList'][_0xa2054d]['shouldBeStreamed']=!0x0;do{const _0x38c139=Date['now'](),_0x49817d=this['nodesList'][this['currentIndex']],_0xa9d440=_0x38c139-this['lastUpdateTime'];if(_0x49817d){_0x49817d['shouldBeStreamed']=!0x0;let _0x422be1=_0x49817d['parent'];for(;_0x422be1;)_0x422be1['shouldBeStreamed']=!0x0,_0x422be1=_0x422be1['parent'];}if(_0xa9d440<this['options']['delay'])try{const {promise:_0x4dbcd8,abortController:_0x160697}=createAbortableTimeout(this['options']['delay']-_0xa9d440);this['timeoutAbortController']=_0x160697,await _0x4dbcd8;}catch(_0xb5fcc4){return;}morphdom(_0x1dea39,'<'+_0x1dea39['tagName']+'>'+this['renderNode'](this['document'])+'</'+_0x1dea39['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:_0x6fb991}){Array['from'](_0x6fb991['querySelectorAll']('span[data-ck-html-streamer-word-chunk]'))['reverse']()['forEach'](_0x19a6f9=>{_0x19a6f9['replaceWith'](_0x19a6f9['childNodes'][0x0]);});}['stop'](){this['isStreaming']=!0x1,this['timeoutAbortController']&&(this['timeoutAbortController']['abort'](),this['timeoutAbortController']=null);}['renderNode'](_0x31399f){let _0x14fe81='';if(isParsedDocumentNode(_0x31399f)){for(const _0x583e8d of _0x31399f['children'])_0x14fe81+=this['renderNode'](_0x583e8d);}else{if(isParsedElementNode(_0x31399f)){if(!_0x31399f['shouldBeStreamed'])return'';const _0x191a03=_0x31399f,_0xc4afca=Object['entries'](_0x191a03['attribs'])['map'](([_0x28d6a3,_0x1b306e])=>_0x28d6a3+'=\x22'+_0x1b306e+'\x22')['join']('\x20');_0x14fe81+='<'+_0x191a03['tagName']+(_0xc4afca?'\x20'+_0xc4afca:'')+'>';for(const _0x3940ac of getChildren$1(_0x191a03))_0x14fe81+=this['renderNode'](_0x3940ac);_0x14fe81+='</'+_0x191a03['tagName']+'>';}else{if(!isParsedTextNode(_0x31399f))return'';if(!_0x31399f['shouldBeStreamed'])return'';canBecomeWordChunkSpan(_0x31399f)?_0x14fe81+=render(new Element$3('span',{'data-ck-html-streamer-word-chunk':'','style':this['options']['textNodeStyle']},[_0x31399f])):_0x14fe81+=render(_0x31399f);}}return _0x14fe81;}['getParsedDocumentNodeList'](){const _0x5889cd=[];return traverseParsedDocument(this['document'],_0x2dfb84=>{if(isParsedTextNode(_0x2dfb84)){const _0x1d670e=this['splitTextNodeIntoWordNodes'](_0x2dfb84);_0x1d670e['length']&&_0x5889cd['push'](..._0x1d670e);}_0x2dfb84['isWordSplitSource']||_0x2dfb84['isWordSplitResult']||_0x5889cd['push'](_0x2dfb84);}),_0x5889cd;}['splitTextNodeIntoWordNodes'](_0x5614b0){if(_0x5614b0['isWordSplitSource']||_0x5614b0['isWordSplitResult'])return[];const _0x2fea0e=textContent(_0x5614b0)['match'](/(?:\s*\S+\s*)/g),_0x4ea35a=[];if(_0x2fea0e&&_0x2fea0e['length']>0x1){for(const _0x4cd648 of _0x2fea0e){const _0x377263=new Text$1(_0x4cd648);_0x377263['isWordSplitResult']=!0x0,prepend(_0x5614b0,_0x377263),_0x4ea35a['push'](_0x377263);}_0x5614b0['isWordSplitSource']=!0x0,removeElement(_0x5614b0);}return _0x4ea35a;}}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(_0x3e892a,_0x55ab13){const _0x165f34=_0x27b519=>{if(_0x55ab13(_0x27b519),_0x27b519 instanceof NodeWithChildren)for(let _0x2693a3=0x0;_0x2693a3<_0x27b519['children']['length'];_0x2693a3++){const _0x1f1158=_0x27b519['children'][_0x2693a3];_0x165f34(_0x1f1158);}};for(let _0x156fda=0x0;_0x156fda<_0x3e892a['children']['length'];_0x156fda++)_0x165f34(_0x3e892a['children'][_0x156fda]);}function canBecomeWordChunkSpan(_0x10ca1e){return!(!_0x10ca1e['parent']||!isParsedElementNode(_0x10ca1e['parent']))&&(!!ELEMENTS_THAT_ALLOW_SPANS['includes'](_0x10ca1e['parent']['tagName'])&&!textContent(_0x10ca1e)['match'](/^\s*[<>]\s*$/));}function isParsedTextNode(_0x5caa53){return isText$1(_0x5caa53);}function isParsedElementNode(_0x307005){return isTag(_0x307005);}function isParsedDocumentNode(_0x575ac2){return isDocument(_0x575ac2);}function createAbortableTimeout(_0x2d4598){const _0x168f4f=new AbortController();return{'promise':new Promise((_0x1b7427,_0x579d47)=>{const _0x5bb194=setTimeout(_0x1b7427,_0x2d4598);_0x168f4f['signal']['addEventListener']('abort',()=>{clearTimeout(_0x5bb194),_0x579d47();});}),'abortController':_0x168f4f};}class AIChatFeedItemView extends View{['options'];['content']='';['htmlStreamer'];['children'];constructor(_0x533730){super();const _0x25c7b3=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']=_0x533730,this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__item',_0x25c7b3['if']('isDone','ck-ai-chat__feed__item_done'),_0x25c7b3['if']('isVisible','ck-hidden',_0x453082=>!_0x453082),'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'](_0x8e83aa=>{_0x8e83aa['removeAttribute']('data-id');}),this['isDone']=!0x0;}async['streamIntoElement'](_0x3ba64b,_0x1205c4,_0x30032a){await this['htmlStreamer']['stream']({'document':_0x3ba64b,'targetElement':_0x1205c4,'abortSignal':_0x30032a});}}class AISuggestionHeaderView extends View{['showChangesToggleView'];constructor(_0x273f92,_0x2cbad3){super(_0x273f92),this['set']('isShowChangesToggleVisible',!0x0),this['showChangesToggleView']=new ShowChangesToggleView(_0x273f92),this['showChangesToggleView']['set']({'class':'ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button\x20'+AI_BUTTON_CLASSES['TERTIARY'],'label':getTranslation$i(_0x273f92,'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':!0x0}),this['showChangesToggleView']['isOn']=_0x2cbad3['showDiff'],this['showChangesToggleView']['bind']('isVisible')['to'](this,'isShowChangesToggleVisible'),this['showChangesToggleView']['bind']('icon')['to'](this['showChangesToggleView'],'isOn',_0x4c8506=>_0x4c8506?IconShowChangesOn:IconShowChangesOff),this['showChangesToggleView']['on']('execute',()=>{this['showChangesToggleView']['isOn']=!this['showChangesToggleView']['isOn'],this['fire']('toggleShowChanges',{'isOn':this['showChangesToggleView']['isOn']});});const _0x29c5e5=new IconView();_0x29c5e5['content']=IconDocument,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__header',!0x1===_0x2cbad3['showHeader']?'ck-hidden':null]['filter'](Boolean)},'children':[_0x29c5e5,{'tag':'span','children':[getTranslation$i(_0x273f92,'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(_0x44f513){super(_0x44f513);const _0x3a38e9=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',_0x3a38e9['to']('state',_0x3f6892=>'ck-ai-suggestion__content-part-state_'+_0x3f6892),_0x3a38e9['if']('isVisible','ck-hidden',_0x379ad9=>!_0x379ad9)]},'children':[{'tag':'span','attributes':{'class':['ck-ai-suggestion__content-part-state__label']},'children':[{'text':_0x3a38e9['to']('state',_0x7a1d33=>{switch(_0x7a1d33){case'accepted':return getTranslation$i(_0x44f513,'AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED');case'rejected':return getTranslation$i(_0x44f513,'AI_SUGGESTION_CONTENT_PART_STATE_REJECTED');case'outdated':return getTranslation$i(_0x44f513,'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED');}})}]},this['stateIconView']]});}['setState'](_0x4519c9){this['state']=_0x4519c9;}}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(_0x187569,_0xb3ccb3,_0x34e2e7){super(_0x187569);const _0x52d811=Boolean(_0x34e2e7);this['set']('isEnabled',!_0x52d811),this['set']('isVisible',!0x0),this['class']='ck-ai-suggestion-content-part-toolbar';const _0x5ea7bc=[];if(_0x52d811){const _0x2b0437=new ButtonView(_0x187569);_0x2b0437['set']({'label':getTranslation$i(_0x187569,'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE'),'tooltip':!0x0,'withText':!0x1,'icon':IconInfo}),_0x2b0437['extendTemplate']({'attributes':{'data-cke-tooltip-class':'ck-ai-suggestion-content-part-disabled-actions-tooltip'}}),_0x5ea7bc['push'](_0x2b0437);}else{_0xb3ccb3['includes']('applySuggestion')&&(this['_applyButton']=new ButtonView(_0x187569),this['_applyButton']['set']({'label':getTranslation$i(_0x187569,'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');}),_0x5ea7bc['push'](this['_applyButton'])),_0xb3ccb3['includes']('insertSuggestion')&&(this['_suggestButton']=new ButtonView(_0x187569),this['_suggestButton']['set']({'label':getTranslation$i(_0x187569,'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');}),_0x5ea7bc['push'](this['_suggestButton']));const _0x47e4d0=new ButtonView(_0x187569);_0x47e4d0['set']({'label':getTranslation$i(_0x187569,'AI_SUGGESTION_CONTENT_PART_REJECT'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconBoxWithCross}),_0x47e4d0['bind']('isEnabled')['to'](this),_0x47e4d0['on']('execute',()=>{this['fire']('rejectSuggestion');}),_0x5ea7bc['push'](_0x47e4d0);}this['items']['addMany'](_0x5ea7bc);const _0x2cd18d=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':[_0x2cd18d['if']('isVisible','ck-hidden',_0x17a516=>!_0x17a516)]}});}['setButtonsVisibility']({showApplyButton:_0x1ffcd3,showSuggestButton:_0x553990}){this['_applyButton']&&(this['_applyButton']['isVisible']=_0x1ffcd3),this['_suggestButton']&&(this['_suggestButton']['isVisible']=_0x553990);}}class AISuggestionContentPartHeaderView extends View{['toolbarView'];['stateView'];['titleLabelView'];['children'];constructor(_0x25d1ae,{part:_0x493d51,uiIndex:_0x16c418,availableActions:_0x5f4bdd,areActionsDisabled:_0x1b6db8}){super(_0x25d1ae),this['set']('isEnabled',!0x0),this['set']('state','pending'),this['toolbarView']=new AISuggestionContentPartToolbarView(_0x25d1ae,_0x5f4bdd,_0x1b6db8),this['toolbarView']['on']('rejectSuggestion',()=>{this['fire']('rejectSuggestion',{'index':_0x493d51['index']});}),this['toolbarView']['on']('insertSuggestion',()=>{this['fire']('insertSuggestion',{'index':_0x493d51['index']});}),this['toolbarView']['on']('applySuggestion',()=>{this['fire']('applySuggestion',{'index':_0x493d51['index']});}),this['toolbarView']['bind']('isEnabled')['to'](this),this['stateView']=new AISuggestionContentPartStateView(_0x25d1ae),this['titleLabelView']=new AISuggestionBodyContentPartTitleLabelView(_0x25d1ae,_0x16c418),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',(_0xaead4,_0x55caa6,_0x28aa43,_0x36be2e)=>{'pending'===_0x36be2e?this['children']['remove'](this['toolbarView']):this['children']['remove'](this['stateView']),'pending'===_0x28aa43?this['children']['add'](this['toolbarView']):(this['stateView']['setState'](_0x28aa43),this['children']['add'](this['stateView']));});}}class AISuggestionBodyContentPartTitleLabelView extends View{constructor(_0x16d31e,_0x2b806d){super(_0x16d31e),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__body__content-part__title__label']},'children':[getTranslation$i(_0x16d31e,'AI_SUGGESTION_CONTENT_PART_TITLE',_0x2b806d['toString']())]});}}class AISuggestionStreamableContentView extends View{['htmlStreamer'];constructor(_0x1f411a){super(_0x1f411a),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:_0x54611f,renderingStrategy:_0x379c48,abortSignal:_0x5dcfd6}){'streaming'===_0x379c48?await this['htmlStreamer']['stream']({'document':_0x54611f['content'],'targetElement':this['element'],'abortSignal':_0x5dcfd6}):this['element']['innerHTML']=serialize$1(_0x54611f['content']);}['clear'](){this['htmlStreamer']['reset'](),this['element']['innerHTML']='';}}class AISuggestionBodyViewContentPartView extends View{['_children'];['_headerView'];['_streamableContentView'];constructor(_0x1d82ae,{part:_0x144253,uiIndex:_0x27af8a,areActionsDisabled:_0xbdac86,availableActions:_0x15470e}){super(_0x1d82ae);const _0x19fa97=this['bindTemplate'];this['set']('state','pending'),this['set']('isDone',!0x1),this['set']('isVisible',!0x1),this['set']('isActive',!0x1),this['set']('isEnabled',!0x1);const _0x3ab0a7=()=>{this['isEnabled']=this['isDone']&&'pending'==this['state']&&!_0xbdac86;};this['on']('change:state',_0x3ab0a7),this['on']('change:isDone',_0x3ab0a7),_0x3ab0a7(),this['_children']=this['createCollection'](),this['_headerView']=new AISuggestionContentPartHeaderView(_0x1d82ae,{'part':_0x144253,'uiIndex':_0x27af8a,'availableActions':_0x15470e,'areActionsDisabled':_0xbdac86}),this['_headerView']['bind']('isEnabled','state')['to'](this),this['_headerView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['_streamableContentView']=new AISuggestionStreamableContentView(_0x1d82ae),this['_children']['addMany']([this['_headerView'],this['_streamableContentView']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__body__content-part',_0x19fa97['to']('state',_0x2ba885=>'ck-ai-suggestion__body__content-part_'+_0x2ba885),_0x19fa97['if']('isEnabled','ck-ai-suggestion__body__content-part_enabled'),_0x19fa97['if']('isActive','ck-ai-suggestion__body__content-part_active'),_0x19fa97['if']('isVisible','ck-hidden',_0x4601d4=>!_0x4601d4)]},'children':this['_children'],'on':{'mouseenter':_0x19fa97['to'](()=>{this['isEnabled']&&this['fire']('mouseOverSuggestion',{'index':_0x144253['index']});}),'mouseleave':_0x19fa97['to'](()=>{this['isEnabled']&&this['fire']('mouseLeaveSuggestion',{'index':_0x144253['index']});}),'click':_0x19fa97['to'](_0x5a8ac6=>{const _0xf0c126=_0x5a8ac6['target'];this['isEnabled']&&!this['_headerView']['toolbarView']['element']['contains'](_0xf0c126)&&this['fire']('showChangeInText',{'index':_0x144253['index']});})}});}async['updateContent']({part:_0x7a9bd1,renderingStrategy:_0x5567bf,showUnchangedParts:_0x323567=!0x1,abortSignal:_0x17838b}){this['partDefinition']=_0x7a9bd1,this['isVisible']=this['partDefinition']['hasChanges']||_0x323567,this['isVisible']&&await this['_streamableContentView']['update']({'part':_0x7a9bd1,'renderingStrategy':_0x5567bf,'abortSignal':_0x17838b});}['markAsDone'](){this['isDone']=!0x0;}}class PromiseQueue extends EmitterMixin(){['queue']=[];['isProcessing']=!0x1;['_abortController'];async['enqueue'](_0xb1f251){const _0x3aac7e=this['createTask'](_0xb1f251);return this['queue']['push'](_0x3aac7e),this['_processQueue'](),_0x3aac7e['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(_0x26a365=>{this['once']('_queueEmpty',()=>{_0x26a365();});}):Promise['resolve']();}async['_processQueue'](){if(!this['isProcessing']){this['_abortController']=new AbortController(),this['isProcessing']=!0x0;try{for(;this['queue']['length']&&this['isProcessing'];){const _0x3e74fd=this['queue']['shift']();try{await _0x3e74fd['callback'](this['_abortController']['signal']),_0x3e74fd['resolve']();}catch(_0x5e6263){_0x3e74fd['reject'](_0x5e6263);}}}finally{this['isProcessing']=!0x1,this['_abortController']=void 0x0;}this['fire']('_queueEmpty');}}['createTask'](_0x417696){let _0x7d1929,_0x487dce;const _0x339c35=new Promise((_0x4d139d,_0xf4852c)=>{_0x7d1929=_0x4d139d,_0x487dce=_0xf4852c;});return{'callback':_0x417696,'resolve':_0x7d1929,'reject':_0x487dce,'completePromise':_0x339c35};}}class AIChatFeedErrorItemView extends AIChatFeedItemView{constructor(_0x71e367){super(_0x71e367),this['extendTemplate']({'attributes':{'class':['ck-ai-notification','warning'===_0x71e367['level']?'ck-ai-notification_warning':'ck-ai-notification_error']}});}['render'](){super['render'](),this['setContent'](this['options']['initialContent']),this['markAsDone']();}['setContent'](_0x3734c2){this['element']['innerHTML']=_0x3734c2;}}const AI_REPLY_ACTIONS=['applySuggestion','insertSuggestion'];class AIChatFeedSuggestionItemActionsView extends View{['_applyChangesButton'];['_insertSuggestionsButton'];['children'];constructor(_0x2b7145,_0x2a0fb0=[...AI_REPLY_ACTIONS],_0x492eeb){super(_0x2b7145);const _0x3748fe=this['bindTemplate'],_0x1bd3a0=Boolean(_0x492eeb);if(this['set']('isEnabled',!_0x1bd3a0),this['set']('isVisible',!0x1),this['set']('isTrackChangesOn',!0x1),this['children']=this['createCollection'](),_0x1bd3a0){const _0x24de6c=new ButtonView(_0x2b7145);_0x24de6c['set']({'label':getTranslation$i(_0x2b7145,'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE'),'tooltip':!0x0,'withText':!0x1,'icon':IconInfo}),_0x24de6c['extendTemplate']({'attributes':{'data-cke-tooltip-class':'ck-ai-suggestion-content-part-disabled-actions-tooltip'}});const _0x114afc=new View(_0x2b7145);_0x114afc['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-chat__feed__suggestion__actions__info'},'children':[{'tag':'p','children':[getTranslation$i(_0x2b7145,'AI_SUGGESTION_DISABLED_FEED_MESSAGE'),_0x24de6c]}]}),this['children']['add'](_0x114afc);}else this['_applyChangesButton']=new ButtonView(_0x2b7145),this['_applyChangesButton']['set']({'label':getTranslation$i(_0x2b7145,'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL'),'withText':!0x0,'type':'button','isVisible':_0x2a0fb0['includes']('applySuggestion'),'class':AI_BUTTON_CLASSES['PRIMARY']}),this['_insertSuggestionsButton']=new ButtonView(_0x2b7145),this['_insertSuggestionsButton']['set']({'label':getTranslation$i(_0x2b7145,'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL'),'withText':!0x0,'type':'button','isVisible':_0x2a0fb0['includes']('insertSuggestion'),'class':AI_BUTTON_CLASSES['SECONDARY']}),this['_insertSuggestionsButton']['on']('execute',()=>{this['fire']('insertSuggestion');}),this['_applyChangesButton']['on']('execute',()=>{this['fire']('applySuggestion');}),[this['_applyChangesButton'],this['_insertSuggestionsButton']]['forEach'](_0x4b6484=>{_0x4b6484['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',_0x3748fe['if']('isVisible','ck-hidden',_0x1a1616=>!_0x1a1616)]},'children':this['children']}),this['on']('change:isTrackChangesOn',()=>{this['_applyChangesButton']&&(this['_applyChangesButton']['isVisible']=!this['isTrackChangesOn']);});}['updateVisibility'](_0x515dec){this['isVisible']=_0x515dec;}['_switchButtonLabelsPlurality'](_0x184831){this['_applyChangesButton']&&this['_insertSuggestionsButton']&&(_0x184831?(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(_0x2af7c1,_0x5942f3){super(_0x2af7c1),this['bodyCollection']=_0x5942f3,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',_0x468639=>!_0x468639)]},'children':this['children']});const _0x43c55a=new View(this['locale']),_0x21945e=new IconView();_0x21945e['content']=IconWeb,_0x43c55a['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-sources__header']},'children':[_0x21945e,{'tag':'span','children':[{'text':getTranslation$i(this['locale'],'AI_CHAT_SOURCES_HEADER')}]}]}),this['children']['add'](_0x43c55a),this['_setupBalloonPanel'](_0x2af7c1);}['addSource'](_0x1e4331){this['children']['add'](new AIWebSourceView(this['locale'],_0x1e4331,this['balloonPanelView']));}['_setupBalloonPanel'](_0x1e30e0){this['balloonPanelView']=new BalloonPanelView(_0x1e30e0),this['balloonPanelView']['extendTemplate']({'attributes':{'class':['ck-ai-web-source__tooltip-balloon']}}),this['bodyCollection']['add'](this['balloonPanelView']);}}class AIWebSourceView extends ButtonView{['balloonPanelView'];['source'];constructor(_0x3141a6,_0xce9805,_0x472ea3){super(_0x3141a6),this['source']=_0xce9805,this['balloonPanelView']=_0x472ea3,this['set']({'label':_0xce9805['title'],'class':['ck\x20ck-ai-web-source'],'withText':!0x0});const _0x4df9b5=this['bindTemplate'];if(this['extendTemplate']({'on':{'click':_0x4df9b5['to'](()=>{window['open'](_0xce9805['url'],'_blank');}),'mouseenter':_0x4df9b5['to'](()=>{this['_showTooltip']();}),'mouseleave':_0x4df9b5['to'](()=>{this['_hideTooltip']();})}}),_0xce9805['favicon']){const _0x40e077=new View(_0x3141a6);_0x40e077['setTemplate']({'tag':'img','attributes':{'src':_0xce9805['favicon']||IconWeb,'alt':_0xce9805['title'],'class':['ck-ai-web-source__image']}}),this['children']['add'](_0x40e077);}else this['set']('icon',IconWeb);}['_createTooltipContentView'](_0x917205,_0x148fc9){const _0x5272b4=new View(_0x917205),_0x3abac9=[];let _0x4e0c1b;_0x148fc9?.['favicon']?(_0x4e0c1b=new View(_0x917205),_0x4e0c1b['setTemplate']({'tag':'img','attributes':{'src':_0x148fc9['favicon'],'alt':_0x148fc9['title'],'class':['ck-ai-web-source__tooltip-image']}})):(_0x4e0c1b=new IconView(),_0x4e0c1b['content']=IconWeb,_0x4e0c1b['extendTemplate']({'attributes':{'alt':_0x148fc9['title'],'class':['ck-ai-web-source__tooltip-image']}})),_0x3abac9['push'](_0x4e0c1b);const _0x4327f0=new View(_0x917205);_0x4327f0['setTemplate']({'tag':'a','attributes':{'class':['ck-ai-web-source__tooltip-url'],'href':_0x148fc9['url']},'children':[{'text':new URL(_0x148fc9['url'])?.['hostname']}]}),_0x3abac9['push'](_0x4327f0);const _0x226c60=new View(_0x917205);_0x226c60['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-web-source__tooltip-row']},'children':_0x3abac9});const _0x308cd3=new View(_0x917205);return _0x308cd3['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-web-source__tooltip-row','ck-ai-web-source__tooltip-title']},'children':[{'text':_0x148fc9['title']['length']>TOOLTIP_TITLE_MAX_LENGTH?_0x148fc9['title']['substring'](0x0,TOOLTIP_TITLE_MAX_LENGTH)+'...':_0x148fc9['title']}]}),_0x5272b4['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-source__tooltip']},'children':[_0x226c60,_0x308cd3]}),_0x5272b4;}['_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 _0x15ed01=this['_createTooltipContentView'](this['locale'],this['source']);this['balloonPanelView']['content']['add'](_0x15ed01);}}class AISuggestionBodyView extends View{['_actionsView'];['_sourcesView'];['_children'];['_areActionsDisabled'];['_showUnchangedParts'];['_updateContentPartsPromiseQueue'];['_emptyPartsWarningView'];['_availableActions'];['_cachedContentParts']=[];constructor(_0x51f85f,_0x16df3d){super(_0x51f85f);const {areActionsDisabled:_0x251409,showUnchangedParts:_0x4938a9,availableActions:_0x3ea178}=_0x16df3d;this['_areActionsDisabled']=_0x251409,this['_showUnchangedParts']=_0x4938a9,this['_availableActions']=_0x3ea178,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(_0x51f85f,'AI_SUGGESTION_EMPTY_PART_WARNING'),'level':'warning'}),this['_emptyPartsWarningView']['isVisible']=!0x1,this['_actionsView']=new AIChatFeedSuggestionItemActionsView(_0x51f85f,_0x16df3d['availableActions'],this['_areActionsDisabled']),this['_actionsView']['bind']('isTrackChangesOn')['to'](this),this['_sourcesView']=new AIWebSourcesView(this['locale'],_0x16df3d['bodyCollection']),_0x16df3d['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:_0x371620,renderingStrategy:_0x336121,abortSignal:_0x568c98}){this['_children']['length']?_0x371620['forEach'](_0x1f954b=>{const _0xbf79ef=this['_cachedContentParts']['findIndex'](_0x4dd10f=>_0x4dd10f['index']==_0x1f954b['index']);-0x1===_0xbf79ef?this['_cachedContentParts']['push'](_0x1f954b):this['_cachedContentParts'][_0xbf79ef]=_0x1f954b;}):this['_cachedContentParts']=_0x371620;const _0x560393=this['_showUnchangedParts']?_0x371620:_0x371620['filter'](_0x4b371c=>_0x4b371c['hasChanges']);this['_actionsView']['_switchButtonLabelsPlurality'](_0x560393['length']>0x1);for(const _0x53fe7b of _0x560393)this['_updateContentPartsPromiseQueue']['enqueue'](async _0x1f10b8=>{let _0x42bb9b=this['getPartView'](_0x53fe7b['index']);_0x42bb9b||(_0x42bb9b=new AISuggestionBodyViewContentPartView(this['locale'],{'part':_0x53fe7b,'uiIndex':this['_children']['length']+0x1,'areActionsDisabled':this['_areActionsDisabled'],'availableActions':this['_availableActions']}),_0x42bb9b['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['_children']['add'](_0x42bb9b),this['hasPendingParts']=!0x0),await _0x42bb9b['updateContent']({'part':_0x53fe7b,'renderingStrategy':_0x336121,'showUnchangedParts':this['_showUnchangedParts'],'abortSignal':_0x1f10b8}),_0x42bb9b['markAsDone']();});return _0x568c98?.['addEventListener']('abort',()=>{this['_updateContentPartsPromiseQueue']['abort']();}),this['_updateContentPartsPromiseQueue']['queueEmptyPromise'];}['updatePartState'](_0x2b5db0,_0x21f29c){const _0x2608d7=this['getPartView'](_0x2b5db0);_0x2608d7&&(_0x2608d7['state']=_0x21f29c),this['hasPendingParts']='pending'==_0x21f29c||Array['from'](this['_children'])['some'](_0x1d5630=>'pending'==_0x1d5630['state']);}['setPartActive'](_0x1aee85,_0xce9f98){if(!0x1===_0x1aee85){for(const _0x54ceea of this['_children'])_0x54ceea['isActive']=!0x1;}else{const _0x4d6892=this['getPartView'](_0x1aee85);_0x4d6892&&(_0x4d6892['isActive']=_0xce9f98);}}['updateSources'](_0x34ed49){_0x34ed49['forEach'](_0x4c300b=>this['_sourcesView']['addSource'](_0x4c300b)),this['_sourcesView']['isVisible']=!0x0;}['getPartView'](_0x3dd2c1){return this['_children']['find'](_0x21d175=>_0x21d175['partDefinition']['index']==_0x3dd2c1)??null;}['markAsDone'](){if(!this['_showUnchangedParts']){const _0xb4efa5=!this['_cachedContentParts']['find'](({hasChanges:_0x3d1cb1})=>_0x3d1cb1),_0xaaa2a5=!!this['_cachedContentParts']['find'](({hasChanges:_0xef948})=>!_0xef948);this['_emptyPartsWarningView']['isVisible']=0x0==this['_children']['length']||_0xaaa2a5,_0xb4efa5?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'](_0x2c2dde=>_0x2c2dde['markAsDone']()),this['_actionsView']['updateVisibility'](this['hasNonEmptyParts']);}get['hasNonEmptyParts'](){return this['_children']['filter'](_0x1d8866=>_0x1d8866['partDefinition']['hasChanges'])['length']>0x0;}}class AISuggestionContainerView extends View{['bodyView'];['children'];['headerView'];constructor(_0x6b0a9,_0x2a8f02,_0x584886){super(_0x6b0a9);const {showDiff:_0x546b94,areActionsDisabled:_0x20ebc6,showUnchangedParts:_0x1d8651,availableActions:_0x581b8d}=_0x2a8f02;this['set']('isTrackChangesOn',!0x1),this['set']('areChangesVisible',!0x1),this['children']=this['createCollection'](),this['headerView']=new AISuggestionHeaderView(_0x6b0a9,{'showDiff':_0x546b94}),this['headerView']['on']('toggleShowChanges',(_0x4fdc6a,_0x553300)=>{this['areChangesVisible']=_0x553300['isOn'],this['fire']('toggleSuggestionDisplayMode',{'showDiff':_0x553300['isOn']});}),this['children']['add'](this['headerView']),this['bodyView']=new AISuggestionBodyView(_0x6b0a9,{'areActionsDisabled':_0x20ebc6,'showUnchangedParts':!!_0x1d8651,'availableActions':_0x581b8d,'bodyCollection':_0x584886}),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'](_0x3e6f22){await this['bodyView']['updateContentParts'](_0x3e6f22);}['updateSources'](_0x1c1313){this['bodyView']['updateSources'](_0x1c1313);}['markAsDone'](){this['bodyView']['markAsDone'](),this['headerView']&&(this['headerView']['isShowChangesToggleVisible']=this['bodyView']['hasNonEmptyParts']);}}class AIChatFeedSuggestionItemView extends AIChatFeedItemView{['containerView'];constructor(_0x188cc0,_0x5cc04f,_0xe765b0){super(_0x5cc04f),this['set']('isTrackChangesOn',!0x1),this['containerView']=new AISuggestionContainerView(_0x188cc0,{'showDiff':_0x5cc04f['showDiff'],'areActionsDisabled':_0x5cc04f['areActionsDisabled'],'availableActions':_0x5cc04f['availableActions']},_0xe765b0),this['containerView']['on']('toggleSuggestionDisplayMode',(_0x4007a0,_0x129c89)=>{this['fire']('toggleSuggestionDisplayMode',{'replyId':this['options']['id'],'showDiff':_0x129c89['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',(_0x514606,{index:_0x4a065e})=>{this['fire']('showChangeInText',{'replyId':this['options']['id'],'partIndex':_0x4a065e});}),this['containerView']['on']('applySuggestion',(_0x100cee,{index:_0x1a7bcd}={})=>{this['fire']('applySuggestion',{'replyId':this['options']['id'],'partIndex':_0x1a7bcd});}),this['containerView']['on']('insertSuggestion',(_0x3cb153,{index:_0x282845}={})=>{this['fire']('insertSuggestion',{'replyId':this['options']['id'],'partIndex':_0x282845});}),this['containerView']['on']('rejectSuggestion',(_0x4b6347,{index:_0x279581})=>{this['fire']('rejectSuggestion',{'replyId':this['options']['id'],'partIndex':_0x279581});}),this['containerView']['on']('mouseOverSuggestion',(_0x3b4ef5,{index:_0x1ecd13})=>{this['fire']('mouseOverSuggestion',{'replyId':this['options']['id'],'partIndex':_0x1ecd13});}),this['containerView']['on']('mouseLeaveSuggestion',(_0x4cfee2,{index:_0x14e4df})=>{this['fire']('mouseLeaveSuggestion',{'replyId':this['options']['id'],'partIndex':_0x14e4df});}),this['children']['addMany']([this['containerView']]),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__ai-suggestion']}});}async['updateContent'](_0x568038){await this['containerView']['updateContent'](_0x568038);}['updatePartState'](_0x20f736,_0x4cbceb){this['containerView']['bodyView']['updatePartState'](_0x20f736,_0x4cbceb);}['setPartActive'](_0x22c8c8,_0x5901b0){!0x1===_0x22c8c8?this['containerView']['bodyView']['setPartActive'](!0x1):this['containerView']['bodyView']['setPartActive'](_0x22c8c8,_0x5901b0);}['updateSources'](_0x1a5dcd){this['containerView']['updateSources'](_0x1a5dcd);}['getPartView'](_0x5376c5){return this['containerView']['bodyView']['getPartView'](_0x5376c5);}['markAsDone'](){super['markAsDone'](),this['containerView']['markAsDone']();}}class AIChatFeedReplyItemView extends AIChatFeedItemView{['replyContainer'];['_bodyCollection'];constructor(_0x56dfbb,_0x32dfdb,_0x28395b){super(_0x32dfdb),this['_bodyCollection']=_0x28395b,this['locale']=_0x56dfbb,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:_0x12e283,renderingStrategy:_0xe23fb3,abortSignal:_0x5b5f81}){'streaming'===_0xe23fb3?await this['streamIntoElement'](_0x12e283,this['replyContainer']['element'],_0x5b5f81):this['replyContainer']['element']['innerHTML']=render(_0x12e283);}['updateSources'](_0x31b3d0){const _0x2ca2c1=new AIWebSourcesView(this['locale'],this['_bodyCollection']);_0x2ca2c1['children']['addMany'](_0x31b3d0['map'](_0x3d58ab=>new AIWebSourceView(this['locale'],_0x3d58ab,_0x2ca2c1['balloonPanelView']))),_0x2ca2c1['isVisible']=!0x0,this['children']['add'](_0x2ca2c1);}}class AISpinnerView extends SpinnerView{constructor(_0xd2f0f7=void 0x0){super();const _0x554df1=_0xd2f0f7?'ck-ai-spinner_'+_0xd2f0f7:'';this['extendTemplate']({'tag':'span','attributes':{'class':['ck-ai-spinner',_0x554df1]}});}}const CONTEXT_TYPES_TO_ICONS={'file':IconFileUpload,'document':IconDocument,'web-resource':IconLink,'text':IconFileUpload,'selection':IconSelection,'mcp-tool-context':IconDocument},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(_0x512a3e,_0x3e5abf,_0x677035,_0x1f3e98,_0x3c4d8c=!0x1){super(_0x512a3e),this['_isAnimationOnEnterEnabled']=_0x1f3e98,this['_initializeProperties'](_0x3e5abf,_0x677035,_0x3c4d8c),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'](_0x2f560f,_0x1fedff,_0xb5f092){this['set']('label',_0x2f560f['label']),this['set']('tooltip',!0x0),this['set']('itemType',_0x2f560f['type']),this['set']('id',_0x2f560f['uiId']),this['set']('readonly',_0x1fedff),this['set']('isLoading',_0xb5f092);}['_setupTemplate'](){const _0x2ef938=this['_createIconView'](),_0x1d177a=this['_createRemoveButton'](),_0x159598=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':this['_createTemplateAttributes'](_0x159598),'children':this['_createTemplateChildren'](_0x2ef938,_0x1d177a,_0x159598)});}['_createTemplateAttributes'](_0x4df00f){return{'class':[CSS_CLASSES$7['contextChip'],_0x4df00f['if']('itemType',CSS_CLASSES$7['contextChipDocument'],_0x45b7c0=>'document'==_0x45b7c0),_0x4df00f['if']('itemType',CSS_CLASSES$7['contextChipWide'],_0x20ea14=>'selection'==_0x20ea14)],'data-cke-tooltip-text':_0x4df00f['to']('label',getTooltipForLabel),'data-cke-tooltip-position':TOOLTIP_CONFIG['position'],'data-cke-tooltip-class':CSS_CLASSES$7['chipTooltip']};}['_createTemplateChildren'](_0x4524de,_0xe6fe51,_0x30ffba){const _0x413301=this['_createLabelElement'](_0x30ffba),_0x49b87a=this['_createLoaderIcon']();return this['readonly']?[_0x4524de,_0x413301]:[_0x4524de,_0x49b87a,_0x413301,_0xe6fe51];}['_createLabelElement'](_0x435a4f){return{'tag':'span','attributes':{'class':CSS_CLASSES$7['contextChipLabel']},'children':[{'text':_0x435a4f['to']('label')}]};}['_createRemoveButton'](){const _0x5a6c91=new ButtonView(this['locale']);return _0x5a6c91['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT'),'icon':IconCancel}),this['_setupRemoveButtonEvent'](_0x5a6c91),_0x5a6c91;}['_setupRemoveButtonEvent'](_0x2a9bee){_0x2a9bee['on']('execute',()=>{this['fire']('removeContextItemChip',this['id']);});}['_createIconView'](){const _0x247111=this['bindTemplate'],_0x556161=new IconView();return _0x556161['content']=CONTEXT_TYPES_TO_ICONS[this['itemType']],_0x556161['extendTemplate']({'attributes':{'class':[CSS_CLASSES$7['contextChipTypeIcon'],_0x247111['if']('isLoading','ck-hidden',_0x939b4d=>_0x939b4d)]}}),_0x556161;}['_handleAnimationEndOnce'](_0x7efcec,_0x3ea1ad){if(!_0x7efcec)return;const _0x26c203=()=>{_0x3ea1ad(),_0x7efcec['removeEventListener']('animationend',_0x26c203),_0x7efcec['removeEventListener']('webkitAnimationEnd',_0x26c203);};_0x7efcec['addEventListener']('animationend',_0x26c203),_0x7efcec['addEventListener']('webkitAnimationEnd',_0x26c203);}['_createLoaderIcon'](){const _0x43c998=new AISpinnerView('small');return _0x43c998['bind']('isVisible')['to'](this,'isLoading',_0x3efb32=>_0x3efb32),_0x43c998;}}function getTooltipForLabel(_0x37052a){if(!_0x37052a)return _0x37052a;if(_0x37052a['length']<=TOOLTIP_MAX_CHAR_LENGTH)return _0x37052a;const _0x48b96c=_0x37052a['slice'](0x0,TOOLTIP_MAX_CHAR_LENGTH),_0x2375b0=_0x48b96c['lastIndexOf']('\x20');return(_0x2375b0>0x0?_0x48b96c['slice'](0x0,_0x2375b0):_0x48b96c)+'…';}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(_0x2256d,_0x588a9c,_0x22df39,_0x389fa9,_0x4fc142){this['_locale']=_0x2256d,this['_visibleChips']=_0x588a9c,this['_config']={...DEFAULT_CONFIG,..._0x22df39,'cssClasses':{'controlsButton':'','calculationContainer':'ck-calculation-container',..._0x22df39['cssClasses']}},this['_overflowChips']=new Collection(),this['_bodyCollection']=_0x389fa9,this['_parentView']=_0x4fc142||null;}['setContainerElement'](_0x4dbc0c){this['_intersectionObserver']&&(this['_intersectionObserver']['disconnect'](),this['_intersectionObserver']=null),this['_containerElement']=_0x4dbc0c,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 _0x3d905c=[...this['_visibleChips'],...this['_overflowChips']],_0x2b8b83=this['_createCalculationContainer'](),_0x5bb21d=this['_calculateOverflowInContainer'](_0x2b8b83,_0x3d905c),_0x584107=_0x2b8b83['_ancestorsToRestore'];_0x584107&&this['_restoreAncestorVisibility'](_0x584107),_0x2b8b83['remove'](),this['_applyOverflowResults'](_0x3d905c,_0x5bb21d);}['_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 _0xf0a591=new ButtonView(this['_locale']);_0xf0a591['set']({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x462d51=[this['_config']['cssClasses']['showMoreButton']];return this['_config']['cssClasses']['controlsButton']&&_0x462d51['push'](this['_config']['cssClasses']['controlsButton']),_0xf0a591['extendTemplate']({'attributes':{'class':_0x462d51}}),_0xf0a591;}['_createShowMoreBalloonPanelView'](){const _0x2dbbba=new BalloonPanelView(this['_locale']);return _0x2dbbba['extendTemplate']({'attributes':{'class':this['_config']['cssClasses']['showMoreBalloon']}}),this['_bodyCollection']['add'](_0x2dbbba),_0x2dbbba;}['_updateBalloonContent'](){if(this['_showMoreBalloonPanelView']&&(this['_showMoreBalloonPanelView']['content']['clear'](),this['_overflowChips']['length']>0x0)){this['_overflowChips']['forEach'](_0x5abd1e=>{_0x5abd1e['disableAnimationOnEnter']();});const _0x441b91=new View(this['_locale']);_0x441b91['setTemplate']({'tag':'div','attributes':{'class':this['_config']['cssClasses']['overflowContainer']},'children':this['_overflowChips']}),this['_showMoreBalloonPanelView']['content']['add'](_0x441b91);}}['_handleShowMoreButtonClick'](){this['_showMoreButtonView']['isOn']?this['hideBalloonPanel']():this['showBalloonPanel']();}['_updateShowMoreButtonVisibility'](){const _0x2c14da=this['_overflowChips']['length']>0x0;this['_showMoreButtonView']?.['element']&&(this['_showMoreButtonView']['element']['style']['display']=_0x2c14da?'':'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'](_0x5bb340){const _0x229a99=this['_containerElement']?.['tagName']['toLowerCase']()||'div',_0x3c80db=this['_containerElement']?.['classList'];if(_0x3c80db){const _0x2b8c28=_0x3c80db[0x0]||'',_0x2ee583=_0x5bb340['querySelector']('.'+_0x2b8c28),_0x5b728f=_0x5bb340['querySelector'](_0x229a99);return _0x2ee583||_0x5b728f||_0x5bb340;}return _0x5bb340['querySelector'](_0x229a99)||_0x5bb340;}['_calculateContainerWidth'](){const _0x4e90a4=this['_parentView']?.['element']||this['_containerElement'];if(!_0x4e90a4)return FALLBACK_CONTAINER_WIDTH;const _0x1737d7=window['getComputedStyle'](_0x4e90a4)['width'];if('auto'===_0x1737d7||'0px'===_0x1737d7||!_0x1737d7){const _0x5763d0=_0x4e90a4['parentElement'];if(_0x5763d0){const _0x48f95e=window['getComputedStyle'](_0x5763d0);return'auto'!==_0x48f95e['width']?_0x48f95e['width']:FALLBACK_CONTAINER_WIDTH;}return FALLBACK_CONTAINER_WIDTH;}return _0x1737d7;}['_applyCalculationStyles'](_0x19c455,_0xa6e18a){this['_config']['cssClasses']['calculationContainer']&&_0x19c455['classList']['add'](this['_config']['cssClasses']['calculationContainer']),_0x19c455['style']['width']=_0xa6e18a,_0x19c455['style']['position']='absolute',_0x19c455['style']['top']='-9999px',_0x19c455['style']['left']='-9999px',_0x19c455['style']['opacity']='0',_0x19c455['style']['pointerEvents']='none',_0x19c455['style']['zIndex']='-1',_0x19c455['style']['visibility']='visible\x20!important',_0x19c455['style']['display']='block\x20!important',_0x19c455['style']['boxSizing']='border-box';}['_restoreAncestorVisibility'](_0x26e19f){_0x26e19f['forEach'](({element:_0x40bf09,originalDisplay:_0xf5f86e,originalVisibility:_0x4f17bc})=>{_0x40bf09['style']['display']=_0xf5f86e,_0x40bf09['style']['visibility']=_0x4f17bc;});}['_makeAncestorsVisible'](_0x3a09eb){const _0x2f7e95=[];let _0x21c65c=_0x3a09eb;for(;_0x21c65c&&_0x21c65c!==document['body'];){const _0x2d9935=window['getComputedStyle'](_0x21c65c);'none'!==_0x2d9935['display']&&'hidden'!==_0x2d9935['visibility']||(_0x2f7e95['push']({'element':_0x21c65c,'originalDisplay':_0x21c65c['style']['display'],'originalVisibility':_0x21c65c['style']['visibility']}),_0x21c65c['style']['display']='block',_0x21c65c['style']['visibility']='visible'),_0x21c65c=_0x21c65c['parentElement'];}return _0x2f7e95;}['_createContainerElements'](){let _0x4e9b7e,_0x40ef1d;return this['_parentView']?.['element']?(_0x4e9b7e=this['_parentView']['element']['cloneNode'](!0x0),_0x40ef1d=this['_findTargetContainer'](_0x4e9b7e)):(_0x4e9b7e=document['createElement']('div'),_0x40ef1d=_0x4e9b7e),{'calculationContainer':_0x4e9b7e,'targetContainer':_0x40ef1d};}['_createCalculationContainer'](){const {calculationContainer:_0x3b7904,targetContainer:_0x14b7f3}=this['_createContainerElements'](),_0x2b176b=this['_calculateContainerWidth']();this['_applyCalculationStyles'](_0x3b7904,_0x2b176b);const _0x6e5cfe=this['_parentView']?.['element']||this['_containerElement'],_0x1d0d1d=_0x6e5cfe?.['parentElement'];_0x1d0d1d?_0x1d0d1d['appendChild'](_0x3b7904):document['body']['appendChild'](_0x3b7904),_0x3b7904['_targetContainer']=_0x14b7f3;const _0x24879a=this['_makeAncestorsVisible'](_0x1d0d1d||null);return _0x3b7904['offsetWidth'],_0x3b7904['_ancestorsToRestore']=_0x24879a,_0x3b7904;}['_calculateOverflowInContainer'](_0x33a2cc,_0x4ad91e){const _0x4a4e46=_0x33a2cc['_targetContainer']||_0x33a2cc,_0x16d889=[],{rowCount:_0x101f3f}=this['_renderChipsAndCountRows'](_0x4a4e46,_0x4ad91e);if(_0x101f3f<=this['_config']['maxVisibleRows'])return _0x16d889;const _0x3a011d=_0x4ad91e['slice']();for(;_0x3a011d['length']>0x0;){if(this['_testButtonFit'](_0x33a2cc,_0x4a4e46,_0x3a011d)){const _0x127e7e=_0x4ad91e['filter'](_0x22cdbe=>!_0x3a011d['includes'](_0x22cdbe));_0x16d889['push'](..._0x127e7e);break;}if(!_0x3a011d['pop']())break;}return _0x16d889;}['_renderChipsAndCountRows'](_0x57eb39,_0x51cc2f){_0x57eb39['innerHTML']='',_0x51cc2f['forEach'](_0x500fda=>{if(_0x500fda['element']){const _0x14e95b=_0x500fda['element']['cloneNode'](!0x0);_0x57eb39['appendChild'](_0x14e95b);}}),_0x57eb39['offsetWidth'];const _0x58e345=_0x57eb39['children'],_0x36572a=[];return Array['from'](_0x58e345)['forEach'](_0x10c78d=>{const _0x2a139d=_0x10c78d['getBoundingClientRect']()['top'];_0x36572a['some'](_0x258ff9=>Math['abs'](_0x258ff9-_0x2a139d)<this['_config']['rowDetectionTolerance'])||_0x36572a['push'](_0x2a139d);}),{'rowCount':_0x36572a['length']};}['_createMockButton'](){const _0x4f08fa=document['createElement']('button');return _0x4f08fa['className']=this['_config']['cssClasses']['showMoreButton'],this['_config']['cssClasses']['controlsButton']&&_0x4f08fa['classList']['add'](this['_config']['cssClasses']['controlsButton']),_0x4f08fa['textContent']='+\x201',_0x4f08fa;}['_testButtonFit'](_0x23366b,_0x99f3f0,_0x165b47){this['_renderChipsAndCountRows'](_0x99f3f0,_0x165b47);const _0xe45ec0=this['_createMockButton']();_0x23366b['appendChild'](_0xe45ec0),_0x23366b['offsetWidth'];const _0x1919d7=[..._0x99f3f0['children'],_0xe45ec0],_0x251660=[];_0x1919d7['forEach'](_0x57b85c=>{const _0x3f3040=_0x57b85c['getBoundingClientRect']()['top'];_0x251660['some'](_0x3f3374=>Math['abs'](_0x3f3374-_0x3f3040)<this['_config']['rowDetectionTolerance'])||_0x251660['push'](_0x3f3040);});const _0xc22d96=_0x251660['length'];return _0xe45ec0['remove'](),_0xc22d96<=this['_config']['maxVisibleRows'];}['_distributeChips'](_0x176829,_0x381a29){this['_visibleChips']['clear'](),this['_overflowChips']['clear'](),_0x176829['forEach'](_0x206145=>{_0x381a29['includes'](_0x206145)?this['_overflowChips']['add'](_0x206145):this['_visibleChips']['add'](_0x206145);});}['_updateOverflowUI'](_0x145653){if(_0x145653>0x0&&!this['_showMoreButtonView']&&this['_createShowMoreButton'](),_0x145653>0x0&&this['_showMoreButtonView']){const _0x48e81b=''+this['_config']['showMoreLabelPrefix']+(_0x145653<0x63?_0x145653:'99');this['_showMoreButtonView']['label']=_0x48e81b;}this['_updateBalloonContent'](),this['_updateShowMoreButtonVisibility'](),this['_repinBalloonPanel']();}['_applyOverflowResults'](_0x213a16,_0x4917d1){this['_distributeChips'](_0x213a16,_0x4917d1),this['_updateOverflowUI'](_0x4917d1['length']);}['_setupVisibilityObserver'](){this['_containerElement']&&'undefined'!=typeof IntersectionObserver&&(this['_intersectionObserver']=new IntersectionObserver(_0xd981c7=>{_0xd981c7[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 _0x13b763=this['_containerElement']['getBoundingClientRect']();if(0x0===_0x13b763['width']||0x0===_0x13b763['height'])return!0x1;const _0x515292=window['innerHeight']||document['documentElement']['clientHeight'],_0x333ddd=window['innerWidth']||document['documentElement']['clientWidth'],_0x447191=0xc8;return _0x13b763['bottom']>=-0xc8&&_0x13b763['top']<=_0x515292+_0x447191&&_0x13b763['right']>=-0xc8&&_0x13b763['left']<=_0x333ddd+_0x447191;}}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(_0x25b322,_0x15c69b,_0x117492){super(_0x25b322),this['_bodyCollection']=_0x117492,this['_createContextChips'](_0x15c69b);const _0xbf628f={'cssClasses':{'showMoreButton':CSS_CLASSES$6['SHOW_MORE_BUTTON']+'\x20'+AI_BUTTON_CLASSES['TERTIARY'],'showMoreBalloon':CSS_CLASSES$6['SHOW_MORE_BALLOON'],'overflowContainer':CSS_CLASSES$6['CONTEXT_CHIPS_OVERFLOW'],'controlsButton':CSS_CLASSES$6['CONTROLS_BUTTON']}};this['_overflowManager']=new AIChatChipsOverflowManager(_0x25b322,this['_contextChips'],_0xbf628f,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 _0x1001ff=this['element']['querySelector']('.'+CSS_CLASSES$6['CONTEXT_CHIPS_VISIBLE']);_0x1001ff&&(this['_overflowManager']['setContainerElement'](_0x1001ff),this['_overflowManager']['reorganizeChips']());}['destroy'](){super['destroy'](),this['_overflowManager']['destroy']();}['_createContextChips'](_0x4b619d){for(const _0x5873b1 of _0x4b619d){const _0x4be034=new AIChatContextItemButtonView(this['locale'],_0x5873b1,!0x0,!0x1);this['_contextChips']['add'](_0x4be034);}}}class AIChatFeedUserMessageItemView extends AIChatFeedItemView{['_contextChipsView']=null;['_locale'];['_bodyCollection'];['_messageContentView'];constructor(_0xa1fe65,_0x1e3158,_0xeaa0c6){super(_0x1e3158),this['_locale']=_0xa1fe65,this['_bodyCollection']=_0xeaa0c6,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'](_0x22d989=>!_0x22d989['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(_0x33cbc3,_0xeae85c){super(_0xeae85c);const {isWebSearchEnabled:_0x3e9733,isReasoningEnabled:_0x19992d}=_0xeae85c['capabilities'],_0x13fe90=[];let _0x2ed2b1='';_0x3e9733&&_0x19992d?(_0x2ed2b1=getTranslation$i(_0x33cbc3,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING'),_0x13fe90['push'](createIcon(IconWeb)),_0x13fe90['push'](createIcon(IconBulb))):_0x3e9733?(_0x2ed2b1=getTranslation$i(_0x33cbc3,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH'),_0x13fe90['push'](createIcon(IconWeb))):_0x19992d&&(_0x2ed2b1=getTranslation$i(_0x33cbc3,'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING'),_0x13fe90['push'](createIcon(IconBulb))),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__interaction-header',_0x2ed2b1?'':'ck-hidden']}});const _0x41d92e=new View();_0x41d92e['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__interaction-header__capabilities']},'children':[..._0x13fe90,{'tag':'span','attributes':{'class':['ck-ai-chat__feed__interaction-header__capabilities__text']},'children':[_0x2ed2b1]}]}),this['children']['add'](_0x41d92e),this['capabilities']=_0xeae85c['capabilities'];}}function createIcon(_0x34b626){const _0xb1641b=new IconView();return _0xb1641b['content']=_0x34b626,_0xb1641b;}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(_0x52eeaf){this['element']=_0x52eeaf,this['animationFrameId']=null,this['isRunning']=!0x1,this['abortController']=new AbortController(),this['isUserPaused']=!0x1;for(const _0x3bc8eb of USER_CANCEL_EVENT_NAMES){const _0x26ad78='keydown'!==_0x3bc8eb;this['element']['addEventListener'](_0x3bc8eb,this['_onUserEvent']['bind'](this),{'passive':_0x26ad78,'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'](_0x49e854){if(this['isRunning']){if('keydown'===_0x49e854['type']){const _0x5b751b=_0x49e854['key'];if(!USER_CANCEL_SCROLL_KEYS['includes'](_0x5b751b))return;}_0x49e854 instanceof WheelEvent?_0x49e854['deltaY']<0x0?this['isUserPaused']=!0x0:this['isUserPaused']=!this['_isAtBottom']():this['isUserPaused']=!0x0;}}['_isAtBottom'](){const {scrollTop:_0x4c5c94,scrollHeight:_0x59b94b,clientHeight:_0x5934db}=this['element'];return _0x59b94b-_0x4c5c94-_0x5934db<=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(_0x4c72c8,_0x381e27){super(_0x4c72c8),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-skeleton']},'children':this['_createSkeletonItems'](_0x381e27)});}['_createSkeletonItems'](_0x22a99f){const _0x1341b5=['ck','ck-ai-skeleton__item'];return _0x22a99f['map'](_0x63d268=>{let _0x542222='';switch(_0x63d268['attributes']['align']){case'right':_0x542222='margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;';break;case'center':_0x542222='margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;';break;case'left':_0x542222='margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;';}return{'tag':_0x63d268['tag'],'attributes':{'class':[..._0x1341b5,_0x63d268['attributes']['class']?_0x63d268['attributes']['class']:''],'style':'width:\x20'+_0x63d268['attributes']['width']+';\x20height:\x20'+_0x63d268['attributes']['height']+';'+_0x542222}};});}}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(_0x2d2c25,_0x464a26,_0x23cad1,_0x1b2158){return new Array(_0x2d2c25)['fill'](null)['map'](()=>({'tag':'div','attributes':{'width':_0x464a26,'height':_0x23cad1,'align':_0x1b2158}}));}class AIChatFeedCustomElementView extends AIChatFeedItemView{constructor(_0x1703fa){super(_0x1703fa),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(_0x2390db,_0x1b60bc){super(_0x2390db),this['_bodyCollection']=_0x1b60bc,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'](_0x31551f,_0x2e9c94){let _0x1952d9;return'ai-reply'===_0x31551f?_0x1952d9=new AIChatFeedReplyItemView(this['locale'],_0x2e9c94,this['_bodyCollection']):'ai-suggestion-reply'===_0x31551f?(_0x1952d9=new AIChatFeedSuggestionItemView(this['locale'],_0x2e9c94,this['_bodyCollection']),_0x1952d9['bind']('isTrackChangesOn')['to'](this)):_0x1952d9='user-message'===_0x31551f?new AIChatFeedUserMessageItemView(this['locale'],_0x2e9c94,this['_bodyCollection']):'interaction-header'===_0x31551f?new AIChatFeedInteractionHeaderView(this['locale'],_0x2e9c94):'custom-element'===_0x31551f?new AIChatFeedCustomElementView(_0x2e9c94):new AIChatFeedErrorItemView(_0x2e9c94),this['children']['add'](_0x1952d9),_0x1952d9;}async['updateReplyItem']({id:_0x3b58bd,parsedContent:_0x2ea5d3,renderingStrategy:_0x69ce30,abortSignal:_0x109b38}){const _0x99aabf=this['getItemById'](_0x3b58bd);if(!(_0x99aabf instanceof AIChatFeedReplyItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-reply-item',null,{'itemView':_0x99aabf,'id':_0x3b58bd,'parsedContent':_0x2ea5d3});await _0x99aabf['updateContent']({'parsedContent':_0x2ea5d3,'renderingStrategy':_0x69ce30,'abortSignal':_0x109b38});}async['updateWebSources'](_0x35cfed,_0x53b85c){const _0x2df873=this['getItemById'](_0x35cfed);if(_0x2df873 instanceof AIChatFeedSuggestionItemView)_0x2df873['updateSources'](_0x53b85c);else{if(!(_0x2df873 instanceof AIChatFeedReplyItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-or-reply-item',null,{'itemView':_0x2df873,'id':_0x35cfed,'sources':_0x53b85c});_0x2df873['updateSources'](_0x53b85c);}}async['updateSuggestionItem']({id:_0x2efd5f,parts:_0x47e521,renderingStrategy:_0x5e31c4,abortSignal:_0x12213a}){const _0x483eda=this['getItemById'](_0x2efd5f);if(!(_0x483eda instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',null,{'itemView':_0x483eda,'id':_0x2efd5f,'parts':_0x47e521});await _0x483eda['updateContent']({'parts':_0x47e521,'renderingStrategy':_0x5e31c4,'abortSignal':_0x12213a});}['updateSuggestionPartState']({id:_0x295b67,index:_0xef2756,state:_0x8b6936}){const _0x211e5d=this['getItemById'](_0x295b67);if(!(_0x211e5d instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0x295b67});_0x211e5d['updatePartState'](_0xef2756,_0x8b6936);}['setSuggestionPartActive']({id:_0x4d6cc9,index:_0x50fb29,isActive:_0x2dfde4}){const _0x41e42e=this['getItemById'](_0x4d6cc9);if(!(_0x41e42e instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0x4d6cc9});this['children']['filter'](_0x2d9abe=>_0x2d9abe instanceof AIChatFeedSuggestionItemView)['forEach'](_0x10a4f9=>{_0x10a4f9['setPartActive'](!0x1);}),_0x41e42e['setPartActive'](_0x50fb29,_0x2dfde4);}['markItemAsDone'](_0x47e3b9){this['getItemById'](_0x47e3b9)['markAsDone']();}['getItemIds'](){return this['children']['map'](_0x1d38a6=>_0x1d38a6['options']['id']);}['removeItem'](_0x297c52){this['children']['remove'](this['getItemById'](_0x297c52));}['hasItem'](_0x449b6d){return!!this['children']['find'](_0x1e6b0c=>_0x1e6b0c['options']['id']['includes'](_0x449b6d));}['scrollToSuggestion'](_0xaf68fb,_0x203ff3){const _0x3862aa=this['getItemById'](_0xaf68fb);if(!(_0x3862aa instanceof AIChatFeedSuggestionItemView))return void logWarning('ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item',{'replyId':_0xaf68fb,'partIndex':_0x203ff3});const _0x511516=_0x3862aa['getPartView'](_0x203ff3);_0x511516?scrollAncestorsToShowTarget(_0x511516['element'],0x14,this['element']['parentElement'],!0x0,!0x0):logWarning('ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found',{'replyId':_0xaf68fb,'partIndex':_0x203ff3});}['_setupTemplate'](){this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed']},'children':this['_createTemplateChildren']()});}['_createTemplateChildren'](){const _0x14ca10=this['_createSkeletonLoader']();return[this['_createFeedItems'](),_0x14ca10,this['_createFeedLoader']()];}['_createSkeletonLoader'](){const _0x5c1fec=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiFeed']);return _0x5c1fec['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoadingSkeletonVisible','ck-hidden',_0x5c5bf1=>!_0x5c5bf1)]}}),_0x5c1fec;}['_createFeedItems'](){const _0x59f0bf=new View(this['locale']);return _0x59f0bf['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__items',this['bindTemplate']['if']('isLoadingSkeletonVisible','ck-hidden')]},'children':this['children']}),_0x59f0bf;}['_createFeedLoader'](){const _0xccd9b4=new View(this['locale']);return _0xccd9b4['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__loader',this['bindTemplate']['if']('isPending','ck-hidden',_0x109e53=>!_0x109e53)]},'children':this['_createLoaderChildren']()}),_0xccd9b4;}['_createLoaderChildren'](){const _0xaed016=new AISpinnerView();return _0xaed016['isVisible']=!0x0,[_0xaed016,{'tag':'span','attributes':{'class':['ck','ck-ai-chat__loader-text']},'children':[{'text':this['bindTemplate']['to']('loadingMessage')}]}];}['getItemById'](_0x5cba66){const _0x394a52=this['children']['find'](_0x354351=>_0x354351['options']['id']['includes'](_0x5cba66));if(!_0x394a52)throw new CKEditorError('ai-chat-feed-view-item-not-found',this,{'id':_0x5cba66});return _0x394a52;}['setLoadingMessage'](_0x14b7d8){this['set']('loadingMessage',_0x14b7d8);}['toggleLoadingSkeleton'](_0xb1db){this['set']('isLoadingSkeletonVisible',_0xb1db);}['startAutoScroll'](){this['scrollManager']['start']();}['stopAutoScroll'](){this['scrollManager']['stop']();}}class AIChatPromptSuggestionsListView extends ListView{['filter'](){let _0x277770=0x0;for(const _0x6b2026 of this['items'])_0x277770+=_0x6b2026['items']['length'];return{'resultsCount':_0x277770,'totalItemsCount':_0x277770};}}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(_0x4368e1,_0x440688){super(_0x4368e1,{'queryView':{'label':'','creator':createLabeledTextarea,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new AIChatPromptSuggestionsListView(_0x4368e1),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this['set']('isEmpty',!0x0),this['set']('isUploadInProgress',!0x1),this['_addContextButtonView']=_0x440688,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',(_0x517500,_0x509b88)=>!_0x517500&&!_0x509b88),this['focusableChildren']['add'](this['submitButtonView']);}['render'](){super['render'](),this['queryView']['fieldWrapperChildren']['add'](this['submitButtonView']),this['keystrokes']['set']('enter',(_0x155a02,_0xc60c2e)=>{this['isUploadInProgress']||this['isEmpty']||_0x155a02['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0xc60c2e());}),this['queryView']['fieldView']['on']('update',()=>{this['isEmpty']=''===this['queryView']['fieldView']['element']['value']?.['trim']();});}['destroy'](){super['destroy'](),this['_queryViewResizeObserver']&&this['_queryViewResizeObserver']['destroy']();}['submit'](){const _0x2028b0=this['queryView']['fieldView']['element']['value']?.['trim']();if(!_0x2028b0)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 _0x4f460b=escape(_0x2028b0);this['fire']('sendUserMessage',_0x4f460b),this['queryView']['fieldView']['reset']();}['setPlaceholderText'](_0x19997a){this['queryView']['fieldView']['set']('placeholder',_0x19997a);}['focus'](_0xd85774=!0x1){super['focus'](),_0xd85774&&(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 _0x1fd840=new ButtonView(this['locale']);return _0x1fd840['set']({'icon':IconSubmit,'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_SUBMIT'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-chat__prompt-submit-button\x20'+AI_BUTTON_CLASSES['PRIMARY'],'isEnabled':!0x1}),_0x1fd840['on']('execute',()=>{this['submit']();}),_0x1fd840;}['setIsUploadInProgress'](_0x2b406c){this['isUploadInProgress']=_0x2b406c;}['_setUpAddContextButtonPositioning'](){const _0x2d8a3f=this['locale'],_0xb57f9f=()=>{_0x176c57['window']['requestAnimationFrame'](()=>{if(isVisible(this['element'])){const _0x578159=new Rect(this['queryView']['fieldView']['element']),_0x176939=new Rect(this['_addContextButtonView']['element']),_0x153d2c=_0x578159['width'],_0x132648='rtl'===_0x2d8a3f['uiLanguageDirection']?'right':'left';_0x578159['excludeScrollbarsAndBorders']();const _0x269698=_0x153d2c-_0x578159['width']+0x1;this['_addContextButtonView']['element']['style'][_0x132648]='calc('+(_0x153d2c-_0x176939['width']-_0x269698)+'px\x20-\x20var(--ck-spacing-tiny))';}});};this['queryView']['fieldView']['on']('update',_0xb57f9f),this['on']('render',()=>{_0xb57f9f(),this['_queryViewResizeObserver']=new _0x587747(this['queryView']['fieldView']['element'],()=>{_0xb57f9f();});});}}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','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(_0x36a802){super(_0x36a802),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',_0x3f268a=>'selector'===_0x3f268a),this['_modelSelectionDropdown']['buttonView']['bind']('tooltip')['to'](this,'modelSelectorEnabled',_0x231b3d=>_0x231b3d?this['_modelSelectionDropdown']['buttonView']['label']:getTranslation$i(this['locale'],'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP')),this['_modelSelectionDropdown']['bind']('isEnabled')['to'](this,'modelSelectorEnabled',_0x169a9b=>_0x169a9b),this['_webSearchButton']['bind']('isOn')['to'](this,'webSearchActive',_0x3cb287=>_0x3cb287),this['_webSearchButton']['bind']('tooltip')['to'](this,'webSearchActive',_0x20c00c=>getTranslation$i(this['locale'],_0x20c00c?'AI_CHAT_DISABLE_WEB_SEARCH':'AI_CHAT_ENABLE_WEB_SEARCH')),this['_reasoningButton']['bind']('isOn')['to'](this,'reasoningActive',_0x464027=>_0x464027),this['_reasoningButton']['bind']('tooltip')['to'](this,'reasoningActive',_0x1c4de6=>getTranslation$i(this['locale'],_0x1c4de6?'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'](_0x45c3fb,_0x38824f){if(_0x38824f)this['set']('modelDisplayMode','hidden');else{const _0x2ff186=0x1===_0x45c3fb['length'];this['set']('modelDisplayMode',_0x2ff186?'name':'selector');}if(this['_modelSelectionDropdownItems']['clear'](),_0x45c3fb?.['length'])for(const _0x486cb8 of _0x45c3fb){const _0x3fe4df=new UIModel({'label':_0x486cb8['name'],'withText':!0x0,'role':'menuitemradio','id':_0x486cb8['id'],'model':_0x486cb8});_0x3fe4df['bind']('isOn')['to'](this,'activeModelId',_0xd5dbec=>_0xd5dbec===_0x486cb8['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x3fe4df,'labelView':new ModelButtonLabelView$1(this['locale'],_0x486cb8)});}}['setWebSearch'](_0x587f98){this['set']('webSearchActive',_0x587f98);}['setReasoning'](_0x2b4f22){this['set']('reasoningActive',_0x2b4f22);}['setModel'](_0xdbf191){if(!_0xdbf191)return;this['activeModelId']=_0xdbf191['id'],this['activeModelName']=_0xdbf191['name']||_0xdbf191['id'],this['_modelSelectionDropdown']['buttonView']['set']('label',_0xdbf191['name']),this['_modelSelectionDropdown']['buttonView']['set']('tooltip',_0xdbf191['name']);const _0x5ff7a9=_0xdbf191['capabilities']['webSearch']?.['enabled']??!0x1;this['set']('webSearchActive',!0x1),this['_webSearchButton']['set']('isOn',!0x1),this['_webSearchButton']['set']('isEnabled',_0x5ff7a9),this['_webSearchButton']['set']('isVisible',_0x5ff7a9);const _0x4c686f=_0xdbf191['capabilities']['reasoning']?.['enabled']??!0x1;this['set']('reasoningActive',!0x1),this['_reasoningButton']['set']('isOn',!0x1),this['_reasoningButton']['set']('isEnabled',_0x4c686f),this['_reasoningButton']['set']('isVisible',_0x4c686f);}['enableModelSelector'](){this['set']('modelSelectorEnabled',!0x0);}['disableModelSelector'](_0xebe733){this['set']('modelSelectorEnabled',!0x1),_0xebe733&&this['set']('modelDisplayMode','hidden');}['_createWebSearchButton'](){const _0x13aff1=new ButtonView();return _0x13aff1['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_SEARCH_WEB'),'icon':IconWeb,'class':CSS_CLASSES$5['CONTROLS_BUTTON']+'\x20'+AI_BUTTON_CLASSES['TERTIARY'],'isToggleable':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),_0x13aff1['on']('execute',()=>{this['fire']('toggleWebSearch');}),_0x13aff1;}['_createReasoningButton'](){const _0x544193=new ButtonView();return _0x544193['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_REASONING'),'icon':IconBulb,'class':CSS_CLASSES$5['CONTROLS_BUTTON']+'\x20'+AI_BUTTON_CLASSES['TERTIARY'],'isToggleable':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),_0x544193['on']('execute',()=>{this['fire']('toggleReasoning');}),_0x544193;}['_createCommandsButton'](){const _0x2e9801=new ButtonView();return _0x2e9801['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_COMMANDS'),'icon':IconAI,'withText':!0x0,'class':CSS_CLASSES$5['CONTROLS_BUTTON']+'\x20'+AI_BUTTON_CLASSES['TERTIARY'],'isToggleable':!0x0,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_COMMANDS'),'tooltipPosition':TOOLTIP_POSITION$3}),_0x2e9801['extendTemplate']({'attributes':{'class':[CSS_CLASSES$5['COMMANDS_BUTTON']]}}),_0x2e9801['on']('execute',()=>{console['log']('Commands\x20are\x20not\x20implemented\x20yet.'),alert('Commands\x20are\x20not\x20implemented\x20yet.');}),_0x2e9801;}['_createModelSelectionDropdown'](){const _0xc15769=createDropdown(this['locale']);return _0xc15769['set']({'panelPosition':'ne','class':[CSS_CLASSES$5['MODEL_SELECTION']]}),_0xc15769['buttonView']['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP'),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION$3,'class':AI_BUTTON_CLASSES['TERTIARY']}),this['listenTo'](_0xc15769,'execute',_0x2f7a59=>{this['fire']('selectModel',_0x2f7a59['source']['model']);}),_0xc15769;}['_createModelNameView'](){const _0x3a4f1f=new ModelNameView$1(this['locale']);return _0x3a4f1f['bind']('text')['to'](this,'activeModelName',_0x1362f1=>_0x1362f1??''),_0x3a4f1f['bind']('isVisible')['to'](this,'modelDisplayMode',_0x50715f=>'name'===_0x50715f),_0x3a4f1f;}}let ModelButtonLabelView$1=class extends ButtonLabelView{constructor(_0x226ec0,_0x13ee92){super();const _0x299892=this['bindTemplate'],_0x5053f7=this['createCollection']();this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x299892['to']('style'),'id':_0x299892['to']('id')},'children':[{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_NAME']]},'children':[{'text':_0x299892['to']('text')}]},{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_DESCRIPTION']]},'children':[{'tag':'span','children':[{'text':_0x13ee92['description']}]}]},{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_CAPABILITIES']]},'children':_0x5053f7}]}),_0x5053f7['addMany'](this['_getCapabilityParts'](_0x226ec0,IconWeb,'AI_CHAT_SEARCH_WEB',_0x13ee92['capabilities']['webSearch']?.['enabled']??!0x1)),_0x5053f7['addMany'](this['_getCapabilityParts'](_0x226ec0,IconBulb,'AI_CHAT_REASONING',_0x13ee92['capabilities']['reasoning']?.['enabled']??!0x1));}['_getCapabilityParts'](_0x6197c7,_0x2ce5b9,_0x36ad10,_0x27806f){const _0x302d63=new IconView();_0x302d63['content']=_0x2ce5b9;const _0x29f878=new View(_0x6197c7);_0x29f878['setTemplate']({'tag':'span','children':[{'text':getTranslation$i(_0x6197c7,_0x36ad10)+':\x20'}]});const _0x3976c4=new View(_0x6197c7);return _0x3976c4['setTemplate']({'tag':'span','children':[{'text':getTranslation$i(_0x6197c7,_0x27806f?'AI_CHAT_CAPABILITIES_YES':'AI_CHAT_CAPABILITIES_NO')}]}),[_0x302d63,_0x29f878,_0x3976c4];}},ModelNameView$1=class extends View{constructor(_0xa9686a){super(_0xa9686a),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x4318af=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-chat-controls__model-name',_0x4318af['if']('isVisible','ck-hidden',_0x147300=>!_0x147300)]},'children':[{'text':_0x4318af['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(_0x44ede0){super(_0x44ede0),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'](_0x541703=>{this['focusTracker']['add'](_0x541703['element']),this['keystrokes']['listenTo'](_0x541703['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'](_0x553bce){this['urlInputField']['errorText']=_0x553bce,this['_updateConfirmButtonState'](),this['fire']('refreshBalloon');}['clearError'](){this['urlInputField']['errorText']=null,this['_updateConfirmButtonState']();}['_createBackButton'](){const _0x11cde4=new ButtonView(this['locale']);return _0x11cde4['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',(_0x5bc36d,_0x24ac2e,_0x573683)=>{_0x11cde4['set']({'class':['ck-button-icon\x20ck-button-back'+(_0x573683?'':'\x20ck-hidden')]});}),_0x11cde4;}['_createUrlInputField'](){const _0x2624ea=new LabeledFieldView(this['locale'],createLabeledInputText);return _0x2624ea['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_LABEL'),'class':'ck-labeled-field-view_empty'}),_0x2624ea['fieldView']['set']({'placeholder':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_PLACEHOLDER')}),_0x2624ea;}['_createConfirmButton'](){const _0x298d05=new ButtonView(this['locale']);return _0x298d05['set']({'icon':IconCheck,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_ADD_URL'),'tooltipPosition':TOOLTIP_POSITION$2,'class':'ck-button-icon','type':'submit','isEnabled':!0x1}),_0x298d05;}['_setupTemplate'](){const _0x2f720d=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'});_0x2f720d['children']['add'](this['backButton'],0x0),this['setTemplate']({'tag':'form','attributes':{'class':CSS_CLASSES$4['URL_FORM'],'tabindex':'-1'},'children':[_0x2f720d,{'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',_0x10ff4d=>{_0x10ff4d['stop'](),this['_handleSubmit']();});}['_setupKeystrokes'](){this['keystrokes']['set']('esc',(_0x596660,_0x25de58)=>{this['clear'](),this['fire']('cancel'),_0x25de58();});}['_handleSubmit'](){const _0x73add6=this['getValue']()['trim']();_0x73add6?this['_isValidUrl'](_0x73add6)?(this['clearError'](),this['fire']('submitUrl',_0x73add6)):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 _0x511d84=this['getValue']()['trim'](),_0x2d63ac=!!this['urlInputField']['errorText'];this['confirmButton']['isEnabled']=_0x511d84['length']>0x0&&!_0x2d63ac;}['_isValidUrl'](_0x4d2319){try{return!!new URL(_0x4d2319);}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(_0x49e85e,_0x2fe0af){super(_0x49e85e),this['resource']=_0x2fe0af,this['set']('isInContext',!!_0x2fe0af['isInContext']),this['_titleView']=this['_createTitleView'](),this['_iconView']=this['_createIconView'](),this['_setupTemplate']();}['render'](){super['render']();}['getResourceIcon'](_0x1d4a0a){if(_0x1d4a0a['isInContext'])return IconCheck;switch(_0x1d4a0a['type']){case'document':return IconDocument;case'web-resource':return IconLink;case'file':case'text':return IconFileUpload;default:return IconDocumentOutline;}}['highlightText'](_0x2d8022){if(!_0x2d8022||''===_0x2d8022['trim']())return void this['_titleView']['highlightText'](null);const _0x462919=new RegExp(escapeRegExp$1(_0x2d8022),'gi');this['_titleView']['highlightText'](_0x462919);}['updateResourceState'](_0x44662b){this['resource']['isInContext']=_0x44662b,this['isInContext']=_0x44662b,this['_updateIcon']();}['_createTitleView'](){const _0x2221c9=new HighlightedTextView();return _0x2221c9['text']=this['resource']['label'],_0x2221c9['extendTemplate']({'tag':'span','attributes':{'class':[CSS_CLASSES$3['ITEM_TITLE']]}}),_0x2221c9;}['_createIconView'](){const _0x1332cd=new IconView();return _0x1332cd['content']=this['getResourceIcon'](this['resource']),_0x1332cd;}['_setupTemplate'](){const _0x86ac27=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES$3['ITEM'],_0x86ac27['if']('isVisible','ck-hidden',_0x46f0dd=>!_0x46f0dd),_0x86ac27['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':_0x86ac27['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(_0x80c75d,_0xc27d8e){super(_0x80c75d),this['_source']=_0xc27d8e,this['extendTemplate']({'attributes':{'class':[CSS_CLASSES$2['LIST']]}});}['setResources'](_0x106989,_0x1ed96d){this['items']['clear']();let _0x587561=_0x106989;if(this['_source']['useDefaultFiltering']&&_0x1ed96d&&''!==_0x1ed96d['trim']()){const _0x293352=new RegExp(_0x1ed96d['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),'gi');_0x587561=_0x106989['filter'](_0x49002e=>_0x293352['test'](_0x49002e['label']));}for(const _0x182827 of _0x587561){const _0x3206d3=new AIChatResourceListItemView(this['locale'],_0x182827);_0x3206d3['on']('execute',()=>{this['_handleResourceSelection'](this['_source'],_0x182827);}),this['items']['add'](_0x3206d3);}this['_source']['useDefaultFiltering']&&this['highlightText'](_0x1ed96d);}['highlightText'](_0x3c8e31){this['_source']['useDefaultFiltering']&&this['items']['forEach'](_0x801bfc=>{_0x801bfc['highlightText'](_0x3c8e31);});}['updateResourceState'](_0x3221d0,_0x1df164){for(const _0x479dfc of this['items']){const _0x294e01=_0x479dfc;_0x294e01['resource']['id']===_0x3221d0&&_0x294e01['updateResourceState'](_0x1df164);}}['_handleResourceSelection'](_0x503e28,_0x1de317){this['fire']('addResourceToContext',{'source':_0x503e28,'resource':_0x1de317});}}class AIChatContextResourcesSearchInputView extends LabeledFieldView{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x19104a){const t=_0x19104a['t'],_0x1d318a={'showResetButton':!0x0,'showIcon':!0x0,'creator':createLabeledInputText,'label':getTranslation$i(_0x19104a,'AI_CHAT_SEARCH_RESOURCES')};super(_0x19104a,_0x1d318a['creator']),this['label']=_0x1d318a['label'],this['_viewConfig']=_0x1d318a,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x19104a,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x416bd2){this['fire']('search',_0x416bd2);}['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'](_0x437b56,t){this['resetButtonView']=new ButtonView(_0x437b56),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',_0x569da1=>!_0x569da1),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(_0x131ab9,_0x1b6208){super(_0x131ab9),this['_source']=_0x1b6208['source'],this['_searchInputVisibleFrom']=_0x1b6208['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 _0x5c0552=new View(this['locale']);return _0x5c0552['setTemplate']({'tag':'div','attributes':{'class':'ck\x20ck-search'},'children':[this['_searchView']]}),this['_searchView']['on']('search',(_0x483e30,_0xe4e0ae)=>{this['loadResources'](_0xe4e0ae),this['_source']['useDefaultFiltering']&&this['_resourcesListView']['highlightText'](_0xe4e0ae);}),_0x5c0552;}['_createResourcesListView'](){const _0x1198af=new AIChatContextResourcesListView(this['locale'],this['_source']);return _0x1198af['delegate']('addResourceToContext')['to'](this),_0x1198af['extendTemplate']({'attributes':{'class':this['bindTemplate']['if']('isLoading','ck-hidden')}}),_0x1198af;}['_createSkeletonView'](){const _0x3a0278=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiChatResources']);return _0x3a0278['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoading','ck-hidden',_0x217c61=>!_0x217c61)]}}),_0x3a0278;}['render'](){super['render'](),this['loadResources']('');}['loadResources'](_0x300a62){const _0x29fc6b=uid();this['_latestLoadResourcesUid']=_0x29fc6b,this['fire']('loadSourceResources',{'sourceId':this['_source']['id'],'query':_0x300a62,'uid':_0x29fc6b}),this['isLoading']=!0x0;}['setResources'](_0x24f848,_0x472265){if(_0x472265&&_0x472265!==this['_latestLoadResourcesUid'])return;const _0x21f178=this['_source']['useDefaultFiltering']?this['_searchView']['getQuery']():'';this['_resourcesListView']['setResources'](_0x24f848,_0x21f178),_0x24f848['length']>=this['_searchInputVisibleFrom']&&!this['children']['has'](this['_searchSection'])&&this['children']['add'](this['_searchSection'],0x0),requestAnimationFrame(()=>{this['isLoading']=!0x1;});}['updateResourceState'](_0x1eacce,_0x15bedd){this['_resourcesListView']['updateResourceState'](_0x1eacce,_0x15bedd);}}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(_0x198c52,_0x5eaac1,_0x2844b8){this['_locale']=_0x198c52,this['_bodyCollection']=_0x5eaac1,this['_config']=_0x2844b8;}['showSourceResourcesBalloon']({source:_0x4fd845,withBackButton:_0x4584d9}){let _0x17959d=this['_sourceResourceBalloons']['get'](_0x4fd845['id']);_0x17959d||(_0x17959d=this['_createSourceResourceBalloonPanel'](),this['_sourceResourceBalloons']['set'](_0x4fd845['id'],_0x17959d),this['_setupSingleResourceBalloonClickOutsideHandler'](_0x17959d)),this['_addSourceResourceContent']({'balloonPanel':_0x17959d,'source':_0x4fd845,'withBackButton':_0x4584d9}),_0x17959d['show']();const _0x208d9f=this['_config']['getTargetElement']();_0x208d9f&&_0x17959d['pin']({'target':_0x208d9f,'limiter':this['_config']['getLimiterElement']()});}['populateSourceResourceBalloon'](_0x6c8bcd,_0x138f18,_0x21ae7f){const _0x27b1a4=this['_sourceResourceBalloons']['get'](_0x6c8bcd);if(!_0x27b1a4)return;const _0x3162ca=this['_getResourcesViewFromBalloon'](_0x27b1a4);_0x3162ca&&(_0x3162ca['setResources'](_0x138f18,_0x21ae7f),_0x3162ca['once']('change:isLoading',()=>{_0x27b1a4['pin']({'target':this['_config']['getTargetElement'](),'limiter':this['_config']['getLimiterElement']()});}));}['closeSourceResourceBalloon'](_0x57beeb){const _0x131608=this['_sourceResourceBalloons']['get'](_0x57beeb);_0x131608&&requestAnimationFrame(()=>{_0x131608['hide'](),this['_sourceResourceBalloons']['delete'](_0x57beeb),this['_config']['onBalloonClosed']();});}['isAnyResourceBalloonVisible'](){for(const _0x57a917 of this['_sourceResourceBalloons']['values']())if(_0x57a917['isVisible'])return!0x0;return!0x1;}['updateResourceState'](_0x386704,_0x2df80d,_0x5b137b){const _0x73355d=this['_sourceResourceBalloons']['get'](_0x386704);if(!_0x73355d||!_0x73355d['isVisible'])return;const _0xf6a108=this['_config']['getTargetElement']();if(!_0xf6a108)return;_0x73355d['pin']({'target':_0xf6a108,'limiter':this['_config']['getLimiterElement']()});const _0x372cd4=this['_getResourcesViewFromBalloon'](_0x73355d);_0x372cd4&&_0x372cd4['updateResourceState'](_0x2df80d,_0x5b137b);}['destroy'](){for(const _0x1ca025 of this['_sourceResourceBalloons']['values']())_0x1ca025['destroy']();this['_sourceResourceBalloons']['clear']();}['_createSourceResourceBalloonPanel'](){const _0x263fad=new BalloonPanelView(this['_locale']);return _0x263fad['extendTemplate']({'attributes':{'class':CSS_CLASSES$1['SOURCE_BALLOON_PANEL']}}),this['_bodyCollection']['add'](_0x263fad),_0x263fad;}['_addSourceResourceContent']({balloonPanel:_0x39eb18,source:_0x271212,withBackButton:_0x3f3433}){_0x39eb18['content']['clear']();const _0x4b51b9=this['_createBalloonHeader']({'balloonPanel':_0x39eb18,'source':_0x271212,'withBackButton':_0x3f3433});_0x39eb18['content']['add'](_0x4b51b9);const _0x271b0e=this['_createBalloonResourcesView'](_0x271212);_0x39eb18['content']['add'](_0x271b0e);}['_createBalloonHeader']({balloonPanel:_0x209c5f,source:_0x4b611c,withBackButton:_0x3ee7c9}){const _0x1ac56c=new FormHeaderView(this['_locale'],{'label':_0x4b611c['label'],'class':CSS_CLASSES$1['SOURCE_HEADER']});return _0x3ee7c9&&_0x1ac56c['children']['add'](this['_createBackButton'](_0x209c5f),0x0),_0x1ac56c;}['_createBackButton'](_0xc8362b){const _0x201875=new ButtonView(this['_locale']);return _0x201875['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']}),_0x201875['on']('execute',()=>{_0xc8362b['hide'](),this['_config']['onBackToContext']();}),_0x201875;}['_createBalloonResourcesView'](_0xc41338){const _0x3fa778=new AIChatContextResourcesView(this['_locale'],{'source':_0xc41338,'searchInputVisibleFrom':this['_config']['searchInputVisibleFrom']});return _0x3fa778['on']('loadSourceResources',(_0xa5deec,_0x4b9f06)=>{this['_config']['onLoadSourceResources'](_0x4b9f06);}),_0x3fa778['on']('addResourceToContext',(_0x214921,_0x2086d5)=>{this['_config']['onResourceSelected'](_0x2086d5['source'],_0x2086d5['resource']),this['closeSourceResourceBalloon'](_0xc41338['id']);}),_0x3fa778;}['_getResourcesViewFromBalloon'](_0x59976d){const _0x53ec70=_0x59976d['content']['get'](0x1);return _0x53ec70 instanceof AIChatContextResourcesView?_0x53ec70:null;}['_setupSingleResourceBalloonClickOutsideHandler'](_0x2772a2){clickOutsideHandler({'emitter':_0x2772a2,'contextElements':[_0x2772a2['element']],'callback':()=>{_0x2772a2['hide'](),this['_config']['onBalloonClosed']();},'activator':()=>_0x2772a2['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(_0x56862f,_0x293bc8){super(_0x56862f),this['bodyCollection']=_0x293bc8['bodyCollection'],this['_currentContextsChips']=this['createCollection'](),this['_conversationContextsChips']=this['createCollection'](),this['addContextButtonView']=this['_createAddContextButtonView'](_0x56862f),this['_addContextBalloonPanelView']=this['_createAddContextBalloonPanelView'](_0x56862f),this['_urlBalloonPanelView']=this['_createUrlBalloonPanelView'](_0x56862f),this['_resourcesBalloonView']=this['_createResourcesBalloonView'](_0x56862f,_0x293bc8);const _0x1fd2fc={'cssClasses':{'showMoreButton':CSS_CLASSES['SHOW_MORE_BUTTON']+'\x20'+AI_BUTTON_CLASSES['TERTIARY'],'showMoreBalloon':CSS_CLASSES['SHOW_MORE_BALLOON'],'overflowContainer':CSS_CLASSES['CONVERSATION_CONTEXT_CHIPS'],'controlsButton':CSS_CLASSES['CONTROLS_BUTTON']}};this['_overflowManager']=new AIChatChipsOverflowManager(_0x56862f,this['_currentContextsChips'],_0x1fd2fc,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'](_0x203592,_0x47bcc6){const _0xb1fdf4=this['_createContextButton'](_0x203592,'current',!0x0,_0x47bcc6);this['_addContextToCollection'](_0xb1fdf4,this['_currentContextsChips']),this['_overflowManager']['reorganizeChips']();}['removeContextItem'](_0x1903e6){this['_removeContextFromCollection'](_0x1903e6,this['_currentContextsChips']),this['_removeContextFromCollection'](_0x1903e6,this['_overflowManager']['overflowChips']),this['_overflowManager']['reorganizeChips']();}['setContextItemLoading'](_0x7bce27,_0x27df42){let _0x313303=this['_currentContextsChips']['find'](_0x134498=>_0x134498['id']===_0x7bce27);_0x313303||(_0x313303=this['_overflowManager']['overflowChips']['find'](_0x43115d=>_0x43115d['id']===_0x7bce27)),_0x313303&&(_0x313303['isLoading']=_0x27df42);}['setConversationContext'](_0x12ba63){this['_conversationContextsChips']['clear']();for(const _0x554497 of _0x12ba63){const _0x81c199=this['_createContextButton'](_0x554497,'conversation',!0x1,!0x1);this['_addContextToCollection'](_0x81c199,this['_conversationContextsChips']);}}['clearCurrentContextItems'](){this['_currentContextsChips']['clear'](),this['_overflowManager']['clear']();}['clearConversationContextItems'](){this['_conversationContextsChips']['clear']();}['updateResourceState'](_0x1e3506,_0x426f4e,_0x12128d){this['_resourcesBalloonView']['updateResourceState'](_0x1e3506,_0x426f4e,_0x12128d);}['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:_0x172207,withBackButton:_0x3dd2b8}){this['_resourcesBalloonView']['showSourceResourcesBalloon']({'source':_0x172207,'withBackButton':_0x3dd2b8}),this['addContextButtonView']['isOn']=!0x0;}['populateSourceResourceBalloon'](_0x287c67,_0x1140de,_0xfde99f,_0x39fbc1){this['_resourcesBalloonView']['populateSourceResourceBalloon'](_0x287c67,_0xfde99f,_0x39fbc1);}['closeSourceResourceBalloon'](_0x44416f){this['_resourcesBalloonView']['closeSourceResourceBalloon'](_0x44416f),this['addContextButtonView']['isOn']=!0x1;}['setAddContextOptions'](_0x24997b){this['_setBalloonPanelContent'](this['_addContextBalloonPanelView'],this['locale'],_0x24997b),this['_setAddContextButtonEnabled'](_0x24997b);}['_setAddContextButtonEnabled'](_0x5b6f8f){const _0x17f15b=!_0x5b6f8f['document']['isHidden']&&_0x5b6f8f['document']['enabled'],_0x1269eb=_0x5b6f8f['urls']['enabled'],_0x59811d=_0x5b6f8f['files']['enabled'],_0x5060ef=_0x5b6f8f['sources']['length']>0x0,_0x3e93bc=_0x5b6f8f['customItems']&&_0x5b6f8f['customItems']['length']>0x0;this['addContextButtonView']['isEnabled']=_0x17f15b||_0x1269eb||_0x59811d||_0x5060ef||_0x3e93bc;}['_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'](_0x5be2e){const _0xda2c1e=new ButtonView(_0x5be2e);return _0xda2c1e['set']({'label':getTranslation$i(_0x5be2e,'AI_CHAT_CONTEXT_ADD_CONTEXT'),'class':CSS_CLASSES['CONTROLS_BUTTON']+'\x20'+CSS_CLASSES['ADD_CONTEXT_BUTTON']+'\x20'+AI_BUTTON_CLASSES['TERTIARY'],'icon':IconPaperClip,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION}),_0xda2c1e;}['_createAddContextBalloonPanelView'](_0x57a993){return this['_createBaseBalloonPanel'](_0x57a993,CSS_CLASSES['ADD_CONTEXT_BALLOON']);}['_createUrlBalloonPanelView'](_0x52b7fd){const _0x5b80bd=this['_createBaseBalloonPanel'](_0x52b7fd,CSS_CLASSES['URL_BALLOON']);return this['_addUrlContent'](_0x5b80bd,_0x52b7fd),_0x5b80bd;}['_createResourcesBalloonView'](_0x3572e0,_0x374ec5){const _0x49f04f={'searchInputVisibleFrom':_0x374ec5['searchInputVisibleFrom'],'onBackToContext':()=>{this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS});},'onResourceSelected':(_0x14dfc8,_0x3a4a80)=>{this['fire']('addResourceToContext',{'source':_0x14dfc8,'resource':_0x3a4a80});},'onLoadSourceResources':_0x4ee910=>{this['fire']('loadSourceResources',_0x4ee910);},'onBalloonClosed':()=>{this['addContextButtonView']['isOn']=!0x1;},'getLimiterElement':()=>this['_getLimiterElement'](),'getTargetElement':()=>this['addContextButtonView']['element']};return new AIChatResourcesBalloonView(_0x3572e0,_0x374ec5['bodyCollection'],_0x49f04f);}['_getLimiterElement'](){return this['element']?.['closest']('.'+CSS_CLASSES['CHAT_CONTAINER'])||document['body'];}['_createBaseBalloonPanel'](_0x3a6a1f,_0x27775e){const _0x440f38=new BalloonPanelView(_0x3a6a1f);return _0x440f38['extendTemplate']({'attributes':{'class':_0x27775e}}),this['bodyCollection']['add'](_0x440f38),_0x440f38;}['_setBalloonPanelContent'](_0x49ba2f,_0x18e6fb,_0x39c7f1){if(_0x49ba2f['content']['clear'](),!_0x39c7f1['document']['isHidden']&&_0x39c7f1['document']['enabled']){const _0x4aafb1=this['_createBalloonButton'](_0x18e6fb,{'label':getTranslation$i(_0x18e6fb,'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'),'icon':IconDocument});_0x4aafb1['on']('execute',()=>{this['fire']('addDocumentToContext'),this['hideAddContextBalloonPanel']();}),_0x49ba2f['content']['add'](_0x4aafb1);}if(_0x39c7f1['urls']['enabled']){const _0x54d75f=this['_createBalloonButton'](_0x18e6fb,{'label':getTranslation$i(_0x18e6fb,'AI_CHAT_CONTEXT_URL_LABEL'),'icon':IconLink});_0x54d75f['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['showUrlBalloonPanel'](),this['_urlBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS}),this['_urlInputView']['focus']();}),_0x49ba2f['content']['add'](_0x54d75f);}if(_0x39c7f1['files']['enabled']){const _0x567f2b=new FileDialogButtonView(_0x18e6fb);_0x567f2b['set']({'label':getTranslation$i(_0x18e6fb,'AI_CHAT_CONTEXT_FILE_LABEL'),'icon':IconBrowseFiles,'withText':!0x0,'tooltip':!0x0,'class':CSS_CLASSES['BALLOON_BUTTON'],'allowMultipleFiles':!0x0}),_0x567f2b['on']('execute',()=>{this['hideAddContextBalloonPanel']();}),_0x567f2b['on']('done',(_0x583b63,_0x5a915e)=>{this['fire']('addFileToContext',_0x5a915e);}),_0x567f2b['tooltip']=!0x0,_0x49ba2f['content']['add'](_0x567f2b);}for(const _0x4b4b5c of _0x39c7f1['sources']){const _0x1f52e1=this['_createBalloonButton'](_0x18e6fb,{'label':_0x4b4b5c['label'],'icon':_0x4b4b5c['icon']||IconDocumentOutline,'type':'source'});_0x49ba2f['content']['add'](_0x1f52e1),_0x1f52e1['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['_showSourceResourcesBalloon']({'source':_0x4b4b5c,'withBackButton':!this['_hasExactlyOneSource']});});}for(const _0x59418f of _0x39c7f1['customItems']||[]){const _0x4af362=this['_createBalloonButton'](_0x18e6fb,{'label':_0x59418f['label'],'icon':_0x59418f['icon']||IconDocumentOutline,'type':'customItem'});_0x49ba2f['content']['add'](_0x4af362),_0x4af362['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['fire']('executeCustomItemCallback',_0x59418f);});}this['_hasExactlyOneSource']=0x1===_0x49ba2f['content']['length'],this['_urlInputView']['withBackButton']=!this['_hasExactlyOneSource'];}['_addUrlContent'](_0x3df1e1,_0x558db5){this['_urlInputView']=new AIChatContextPanelUrlInputView(_0x558db5),this['_urlInputView']['on']('submitUrl',(_0x52b9da,_0x5599e1)=>{this['_handleUrlSubmit'](_0x5599e1);}),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});}),_0x3df1e1['content']['add'](this['_urlInputView']);}['_createBalloonButton'](_0x429e2a,_0x5132c2){const _0x18722d='source'===_0x5132c2['type']?new SourcesBalloonButtonView(_0x429e2a):new ButtonView(_0x429e2a);return _0x18722d['set']({'label':_0x5132c2['label'],'icon':_0x5132c2['icon'],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION,'class':CSS_CLASSES['BALLOON_BUTTON']}),_0x18722d;}['_setupAllBalloonClickOutsideHandlers'](){this['_setupAddContextBalloonClickOutsideHandler'](),this['_setupUrlBalloonClickOutsideHandler']();}['_setupUrlBalloonClickOutsideHandler'](){clickOutsideHandler({'emitter':this['_urlBalloonPanelView'],'contextElements':[this['_urlBalloonPanelView']['element']],'callback':()=>{this['hideUrlBalloonPanel']();},'activator':()=>this['_urlBalloonPanelView']['isVisible']});}['_toggleAddContextBalloon'](_0x6b0196){const _0x16a428=this['_addContextBalloonConfig'];_0x16a428['buttonView']['isOn']=_0x6b0196,_0x6b0196?_0x16a428['balloonView']['show']():_0x16a428['balloonView']['hide']();}['_setupAddContextBalloonClickOutsideHandler'](){const {balloonView:_0x572747,buttonView:_0xfa75ee,hideMethod:_0x8aea7b}=this['_addContextBalloonConfig'];clickOutsideHandler({'emitter':_0x572747,'contextElements':[_0x572747['element'],_0xfa75ee['element']],'callback':()=>{_0x8aea7b();},'activator':()=>_0xfa75ee['isOn']&&!this['_urlBalloonPanelView']['isVisible']&&!this['_resourcesBalloonView']['isAnyResourceBalloonVisible']()});}['_createContextButton'](_0x2dccab,_0x1a7643,_0xbd3b7c=!0x1,_0x9b7bae=!0x1){const _0x5a4737='conversation'===_0x1a7643||!0x0===_0x2dccab['isReadOnly'],_0x32680e=new AIChatContextItemButtonView(this['locale'],_0x2dccab,_0x5a4737,_0xbd3b7c,_0x9b7bae);return _0x5a4737||_0x32680e['on']('removeContextItemChip',()=>{this['fire']('removeContextItem',_0x32680e['id']);}),_0x32680e;}['_addContextToCollection'](_0x17e9d7,_0x2a22e3){_0x2a22e3['add'](_0x17e9d7,0x0);}['_removeContextFromCollection'](_0x36089c,_0x470c0a){const _0x1596d2=_0x470c0a['find'](_0x3f6952=>_0x3f6952['id']===_0x36089c);_0x1596d2&&_0x470c0a['remove'](_0x1596d2);}['_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'](_0x5be246){this['_urlInputView']['clear'](),this['hideUrlBalloonPanel'](),this['fire']('addUrlToContext',_0x5be246);}}class SourcesBalloonButtonView extends ButtonView{['arrowView'];constructor(_0x2c578b){super(_0x2c578b),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 _0x21d1ef=new IconView();return _0x21d1ef['content']=IconDropdownArrow,_0x21d1ef['extendTemplate']({'attributes':{'class':CSS_CLASSES['BALLOON_BUTTON_SOURCE']+'__arrow'}}),_0x21d1ef;}}class AIChatControlsLoaderView extends View{['_cancelButtonView'];['_loaderView'];constructor(_0x57021b){super(_0x57021b),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 _0x3491d0=new ButtonView(this['locale']);return _0x3491d0['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_STOP_GENERATING'),'withText':!0x0,'class':AI_BUTTON_CLASSES['SECONDARY']+'\x20ck-ai-button-stop-generating','icon':IconStop}),_0x3491d0['on']('execute',()=>{this['fire']('abortPromptStream');}),_0x3491d0;}['_createLoaderView'](){const _0x56a390=new View(this['locale']);return _0x56a390['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')}]}),_0x56a390;}}class AIChatControlsView extends View{['_contextPanelView'];['_promptInputView'];['_promptCapabilitiesView'];['_loaderView'];['_modelUnavailableMessageView'];['_shouldRestorePromptInputFocus'];constructor(_0x5225c5,_0x21f3cf){super(_0x5225c5),this['_contextPanelView']=this['_createContextPanelView'](_0x5225c5,{'bodyCollection':_0x21f3cf['bodyCollection'],'searchInputVisibleFrom':_0x21f3cf['contextResourcesSearchInputVisibleFrom']}),this['_promptInputView']=this['_createPromptInputView'](_0x5225c5),this['_promptCapabilitiesView']=this['_createPromptCapabilitiesView'](_0x5225c5),this['_loaderView']=this['_createLoaderView'](_0x5225c5),this['_modelUnavailableMessageView']=this['_createModelUnavailableMessageView'](_0x5225c5),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 _0x7995a3=this['bindTemplate'];this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-ai-chat-controls',_0x7995a3['if']('isDisabled','ck-ai-chat-controls-disabled')]},'children':[{'tag':'div','attributes':{'class':[_0x7995a3['if']('isLoading','ck-hidden',_0x5e188d=>_0x5e188d||!this['isModelAvailable']),_0x7995a3['if']('isModelAvailable','ck-hidden',_0x26a97f=>!_0x26a97f||this['isLoading'])]},'children':[this['_contextPanelView'],this['_promptInputView'],this['_promptCapabilitiesView']]},{'tag':'div','attributes':{'class':[_0x7995a3['if']('isLoading','ck-hidden',_0x17ca75=>!_0x17ca75)]},'children':[this['_loaderView']]},{'tag':'div','attributes':{'class':[_0x7995a3['if']('isModelAvailable','ck-hidden',_0x490846=>_0x490846)]},'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'](_0x2ce2e8,_0x50434d){return new AIChatContextPanelView(_0x2ce2e8,_0x50434d);}['_createPromptInputView'](_0x18d836){return new AIChatPromptInputView(_0x18d836,this['_contextPanelView']['addContextButtonView']);}['_createPromptCapabilitiesView'](_0x197f51){return new AIChatPromptCapabilitiesView(_0x197f51);}['_createLoaderView'](_0x1ae3b7){return new AIChatControlsLoaderView(_0x1ae3b7);}['_createModelUnavailableMessageView'](_0x591b9e){const _0x11a415=new AIChatModelUnavailableMessageView(_0x591b9e);return _0x11a415['delegate']('startConversation')['to'](this),_0x11a415;}['_handlePromptInputFocus'](_0x21a70b,_0x1de4fc,_0x1c23b6){_0x1c23b6?this['_shouldRestorePromptInputFocus']=!0x0:this['_shouldRestorePromptInputFocus']&&this['_promptInputView']['focus']();}['addContextItem'](_0x959d3d,_0x3f2684){this['_contextPanelView']['addContextItem'](_0x959d3d,_0x3f2684);}['removeContextItem'](_0x182df2){this['_contextPanelView']['removeContextItem'](_0x182df2);}['setContextItemLoading'](_0x46c2b1,_0x5bd767){this['_contextPanelView']['setContextItemLoading'](_0x46c2b1,_0x5bd767);}['setIsUploadInProgress'](_0x4b890c){this['_promptInputView']['setIsUploadInProgress'](_0x4b890c);}['setConversationContext'](_0x2b1560){this['_contextPanelView']['setConversationContext'](_0x2b1560);}['clearPendingContextUI'](){this['_contextPanelView']['clearCurrentContextItems']();}['clearConversationContextUI'](){this['_contextPanelView']['clearConversationContextItems']();}['updateResourceState'](_0x295d73,_0x311eef,_0x206bf6){this['_contextPanelView']['updateResourceState'](_0x295d73,_0x311eef,_0x206bf6);}['setWebSearch'](_0x118270){this['_promptCapabilitiesView']['setWebSearch'](_0x118270);}['setReasoning'](_0x8a161a){this['_promptCapabilitiesView']['setReasoning'](_0x8a161a);}['resetMessageInput'](){this['_promptInputView']['reset']();}['setAddContextOptions'](_0x544a25){this['_contextPanelView']['setAddContextOptions'](_0x544a25);}['setInputPlaceholder'](_0x11075d){this['_promptInputView']['setPlaceholderText'](_0x11075d);}['setModelList'](_0x1c51eb,_0x4eee25){this['_promptCapabilitiesView']['setModelList'](_0x1c51eb,_0x4eee25);}['setModel'](_0x26d03a){_0x26d03a?(this['isModelAvailable']=!0x0,this['_promptCapabilitiesView']['setModel'](_0x26d03a)):this['isModelAvailable']=!0x1;}['enableModelSelector'](){this['_promptCapabilitiesView']['enableModelSelector']();}['disableModelSelector'](_0x410fa5){this['_promptCapabilitiesView']['disableModelSelector'](_0x410fa5);}['populateSourceResourceBalloon'](_0x12c692,_0x3fffa6,_0x108ef3,_0x5dc4ab){this['_contextPanelView']['populateSourceResourceBalloon'](_0x12c692,_0x3fffa6,_0x108ef3,_0x5dc4ab);}['closeSourceResourceBalloon'](_0x13aff9){this['_contextPanelView']['closeSourceResourceBalloon'](_0x13aff9);}['focusPromptInput'](_0x3469e9=!0x1){this['_promptInputView']['focus'](_0x3469e9);}['setPromptInputValue'](_0x82101a){this['_promptInputView']['queryView']['fieldView']['reset'](),this['_promptInputView']['queryView']['fieldView']['value']=_0x82101a;}}class AIChatModelUnavailableMessageView extends View{constructor(_0x22103b){super(_0x22103b);const _0x303f5d=new ButtonView(_0x22103b);_0x303f5d['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON'),'withText':!0x0,'class':['ck-ai-chat-controls__start-new-chat-button'],'tooltip':''}),_0x303f5d['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'},_0x303f5d]}]});}}class AIChatHeaderView extends FormHeaderView{['conversationStartButton'];['resizeButton'];constructor(_0x957a51,_0x10cfa2){super(_0x957a51,{'label':getTranslation$i(_0x957a51,'AI_CHAT_HEADING'),'class':'ck-ai-header\x20ck-ai-header_chat','icon':IconAIChat}),this['set']('isMaximized',!0x1),this['conversationStartButton']=this['_createStartConversationButton'](_0x957a51),this['children']['add'](this['conversationStartButton']),_0x10cfa2&&(this['resizeButton']=createResizeButton(_0x957a51,this),this['children']['add'](this['resizeButton']));}['_createStartConversationButton'](_0x4e34db){const _0x2b3d22=new ButtonView(_0x4e34db);return _0x2b3d22['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_NEW_CHAT'),'withText':!0x0,'icon':IconPlus,'class':'ck-ai-chat__start-conversation\x20'+AI_BUTTON_CLASSES['SECONDARY']}),_0x2b3d22['on']('execute',()=>{this['fire']('startConversation');}),_0x2b3d22;}}class AIDisclaimerView extends View{constructor(_0x2ebfd2){super(_0x2ebfd2),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-disclaimer']},'children':[{'tag':'p','attributes':{'class':['ck','ck-ai-disclaimer__content']},'children':[{'text':getTranslation$i(_0x2ebfd2,'AI_DISCLAIMER_TEXT')}]}]});}}class AIChatView extends View{['chatHeader'];['chatFeed'];['chatControls'];['chatDisclaimer'];['_bodyCollection'];constructor(_0xbc34b0,_0x35c4e3){super(_0xbc34b0),this['_bodyCollection']=new BodyCollection(_0xbc34b0),this['_bodyCollection']['attachToDom'](),this['chatHeader']=new AIChatHeaderView(_0xbc34b0,_0x35c4e3['showResizeButton']),this['chatHeader']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatFeed']=new AIChatFeedView(_0xbc34b0,this['_bodyCollection']),this['chatFeed']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatControls']=new AIChatControlsView(_0xbc34b0,{'bodyCollection':this['_bodyCollection'],'contextResourcesSearchInputVisibleFrom':_0x35c4e3['contextResourcesSearchInputVisibleFrom']}),this['chatControls']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatDisclaimer']=new AIDisclaimerView(_0xbc34b0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-chat','ck-rounded-corners'],'dir':_0xbc34b0['uiLanguageDirection']},'children':[this['chatHeader'],this['chatFeed'],this['chatControls'],this['chatDisclaimer']]});}['populateSourceResourceBalloon'](_0x32691f,_0x42a5ae,_0x21f874,_0x2455ab){this['chatControls']['populateSourceResourceBalloon'](_0x32691f,_0x42a5ae,_0x21f874,_0x2455ab);}['closeSourceResourceBalloon'](_0x118c73){this['chatControls']['closeSourceResourceBalloon'](_0x118c73);}['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(_0x49c446){super(_0x49c446);const _0x32a463=this['context']['plugins']['get']('AITabs');this['set']('isBusy',!0x1),this['_promiseQueue']=new PromiseQueue(),this['_view']=new AIChatView(this['context']['locale'],{'showResizeButton':_0x32a463['showResizeButton'],'contextResourcesSearchInputVisibleFrom':this['context']['config']['get']('ai.chat.context.searchInputVisibleFrom')}),this['_view']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['_view']['on']('toggleSuggestionDisplayMode',(_0x34a030,{showDiff:_0xbff222})=>{this['showDiff']=_0xbff222;}),_0x32a463['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',_0x3cd1f9=>_0x3cd1f9),this['_view']['chatFeed']['bind']('isPending')['to'](this,'isBusy',_0x4a8c82=>_0x4a8c82),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']()),this['bind']('isModelAvailable')['to'](this['_view']['chatControls'],'isModelAvailable');}['destroy'](){super['destroy'](),this['_titleAnimationInterval']&&clearInterval(this['_titleAnimationInterval']);}['createConversation'](_0x331317){const _0x45be4c=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'](_0x331317['availableModels'],!this['context']['config']['get']('ai.models.showModelSelector')),this['addFeedItemStaticMessage']({'id':'conversation-start','staticMessage':_0x45be4c}),this['fire']('conversationCreated');}async['addFeedItemStaticMessage']({id:_0x323ea9,staticMessage:_0x1f60b4}){return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x323ea9,'initialContent':'<p>'+_0x1f60b4+'</p>'});});}async['addFeedItemUserMessage'](_0x2b85d5){const _0x436fea=_0x2b85d5['attributes']?.['displayedPrompt']||_0x2b85d5['userMessage'];return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('user-message',{'contextItems':Array['from'](_0x2b85d5['contextItems']['values']()),'initialContent':'<p>'+_0x436fea+'</p>','id':_0x2b85d5['id']});});}async['addFeedItemError']({errorMessage:_0x37a2fb,id:_0x245aa6}){return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('error-message',{'initialContent':'<p>'+_0x37a2fb+'</p>','id':_0x245aa6});});}async['addFeedItemAIReply'](_0x21965a){return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x21965a['interactionId']+':'+_0x21965a['id']}),this['clearLoadingMessage']();});}async['addFeedItemAISuggestion'](_0x388d3f){const _0x35c1d0=getEditorFromContext(this['context']);let _0x3b27aa=_0x35c1d0['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];if(_0x35c1d0['plugins']['has']('TrackChanges')){if(!this['_isTrackChangesCommandValueBound']){this['_isTrackChangesCommandValueBound']=!0x0;const _0x548969=_0x35c1d0['commands']['get']('trackChanges');this['_view']['chatFeed']['bind']('isTrackChangesOn')['to'](_0x548969,'value');}}else _0x3b27aa=_0x3b27aa['filter'](_0x404f6a=>'insertSuggestion'!=_0x404f6a);return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-suggestion-reply',{'id':_0x388d3f['interactionId']+':'+_0x388d3f['id'],'areActionsDisabled':_0x388d3f['areActionsDisabled'],'showDiff':this['showDiff'],'availableActions':_0x3b27aa}),this['clearLoadingMessage']();});}async['addFeedInteractionHeader'](_0x55527b,_0x4654cf){return this['_promiseQueue']['enqueue'](async()=>{const _0x11fc38=this['_view']['chatFeed']['children']['last'];if(_0x11fc38 instanceof AIChatFeedInteractionHeaderView)return this['_view']['chatFeed']['children']['remove'](_0x11fc38),void this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x55527b['id'],'capabilities':{'isWebSearchEnabled':_0x11fc38['capabilities']['isWebSearchEnabled']||_0x4654cf['isWebSearchEnabled'],'isReasoningEnabled':_0x11fc38['capabilities']['isReasoningEnabled']||_0x4654cf['isReasoningEnabled']}});this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x55527b['id'],'capabilities':_0x4654cf});});}async['addFeedItemCustomElement'](_0x324c4b,_0x26bd1b){let _0x1749bc;return await this['_promiseQueue']['enqueue'](async()=>{_0x1749bc=this['_view']['chatFeed']['addItem']('custom-element',{'content':_0x324c4b,'id':_0x26bd1b});}),_0x1749bc;}['removeFeedItem'](_0x56dc9f){this['_view']['chatFeed']['removeItem'](_0x56dc9f);}['hasFeedItem'](_0xc2dcdc){return this['_view']['chatFeed']['hasItem'](_0xc2dcdc);}['updateFeedInteractionHeader'](_0x3a1715){const _0x2aa0ab=this['_view']['chatFeed']['children']['find'](_0x29cad1=>_0x29cad1['options']['id']==_0x3a1715['id']&&_0x29cad1 instanceof AIChatFeedInteractionHeaderView);_0x2aa0ab&&_0x2aa0ab['set']('isVisible',_0x3a1715['isVisible']);}async['updateFeedItemAIReplyContent'](_0x2e437a){const _0x5bbbe1=_0x2e437a['renderingStrategy']||this['feedItemRenderingStrategy'];return this['_promiseQueue']['enqueue'](async _0x476f85=>{await this['_view']['chatFeed']['updateReplyItem']({..._0x2e437a,'abortSignal':_0x476f85,'renderingStrategy':_0x5bbbe1}),_0x2e437a['isDone']&&this['markFeedItemAsDone'](_0x2e437a['id']);});}['updateFeedItemAIReplySources'](_0x2df0a0,_0x9cd627){this['_view']['chatFeed']['updateWebSources'](_0x2df0a0,_0x9cd627);}async['updateFeedItemAIReplySuggestionContent'](_0xbc03c6){const _0x394eee=_0xbc03c6['renderingStrategy']||this['feedItemRenderingStrategy'];return this['_promiseQueue']['enqueue'](async _0x39185a=>{await this['_view']['chatFeed']['updateSuggestionItem']({..._0xbc03c6,'abortSignal':_0x39185a,'renderingStrategy':_0x394eee}),_0xbc03c6['isDone']&&this['markFeedItemAsDone'](_0xbc03c6['id']);});}['updateFeedItemAIReplySuggestionPartState'](_0x6f95d8){this['_view']['chatFeed']['updateSuggestionPartState'](_0x6f95d8);}['setFeedItemAIReplySuggestionPartActive'](_0x30acaa){this['_view']['chatFeed']['setSuggestionPartActive'](_0x30acaa);}['markFeedItemAsDone'](_0x4594f8){this['_view']['chatFeed']['markItemAsDone'](_0x4594f8);}['removeFeedInteraction'](_0x33d7d7){this['_view']['chatFeed']['getItemIds']()['filter'](_0x12b3b1=>_0x12b3b1['startsWith'](_0x33d7d7))['forEach'](_0x2fed60=>this['_view']['chatFeed']['removeItem'](_0x2fed60));}['startInteraction'](){const _0x57bbc2=this['prepareLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this['setLoadingMessage'](_0x57bbc2),this['_view']['chatControls']['disableModelSelector'](!this['context']['config']['get']('ai.models.showModelSelector')),this['isBusy']=!0x0,this['_view']['chatFeed']['startAutoScroll']();}['stopInteraction'](_0x92b74c){this['_promiseQueue']['abort'](),this['_view']['chatFeed']['getItemIds']()['filter'](_0x29efc3=>_0x29efc3['startsWith'](_0x92b74c['id']))['forEach'](_0x148c83=>this['markFeedItemAsDone'](_0x148c83)),this['isBusy']=!0x1,this['_view']['chatFeed']['stopAutoScroll']();}async['finishInteraction'](){return this['_promiseQueue']['queueEmptyPromise']['then'](()=>{this['isBusy']=!0x1,this['_view']['chatFeed']['stopAutoScroll']();});}['addContextItem'](_0x14195e,_0x6e2544){this['_view']['chatControls']['addContextItem'](_0x14195e,_0x6e2544);}['removeContextItem'](_0x2cc2a7){this['_view']['chatControls']['removeContextItem'](_0x2cc2a7);}['setContextItemLoading'](_0x193997,_0x2e4f89){this['_view']['chatControls']['setContextItemLoading'](_0x193997,_0x2e4f89);}['setIsUploadInProgress'](_0x415a3b){this['_view']['chatControls']['setIsUploadInProgress'](_0x415a3b);}['setConversationContext'](_0x21b481){this['_view']['chatControls']['setConversationContext'](_0x21b481);}['clearPendingContextUI'](){this['_view']['chatControls']['clearPendingContextUI']();}['clearConversationContextUI'](){this['_view']['chatControls']['clearConversationContextUI']();}['updateResourceState'](_0x20add8,_0x2a2cc5,_0x3c32ea){this['_view']['chatControls']['updateResourceState'](_0x20add8,_0x2a2cc5,_0x3c32ea);}['resetMessageInput'](){this['_view']['chatControls']['resetMessageInput'](),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']());}['setAddContextOptions'](_0x24bf0b){this['_view']['chatControls']['setAddContextOptions'](_0x24bf0b);}['updateCapabilities'](_0x59b633){this['_view']['chatControls']['setWebSearch'](_0x59b633['isWebSearchEnabled']),this['_view']['chatControls']['setReasoning'](_0x59b633['isReasoningEnabled']),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder'](_0x59b633));}['setSelectedModel'](_0x2a3dc1,_0x56b615){this['_view']['chatControls']['setModel'](_0x2a3dc1),_0x56b615&&this['_view']['chatControls']['disableModelSelector'](!0x1);}['setFeedItemRenderingStrategy'](_0x5e7571){this['feedItemRenderingStrategy']=_0x5e7571;}['toggleLoadingSkeleton'](_0x4d3f0c){this['_view']['chatFeed']['toggleLoadingSkeleton'](_0x4d3f0c);}['resetConversationTitle'](){this['setConversationTitle'](getTranslation$i(this['context']['locale'],'AI_CHAT_HEADING'));}['setConversationTitle'](_0x1fe546,_0x1b5740=!0x1){if(_0x1b5740&&!_isMotionReduced()&&_0x1fe546['length'])return this['_view']['chatHeader']['label']='',void this['_animateConversationTitle'](_0x1fe546);this['_view']['chatHeader']['label']=_0x1fe546;}['setLoadingMessage'](_0x295530){this['_view']['chatFeed']['setLoadingMessage'](_0x295530);}['clearLoadingMessage'](){this['_view']['chatFeed']['setLoadingMessage']('');}['_animateConversationTitle'](_0x3bc524){let _0x4d28f8=0x0;clearInterval(this['_titleAnimationInterval']),this['_titleAnimationInterval']=setInterval(()=>{this['_view']['chatHeader']['label']=this['_view']['chatHeader']['label']+_0x3bc524[_0x4d28f8],_0x4d28f8++,_0x4d28f8===_0x3bc524['length']&&clearInterval(this['_titleAnimationInterval']);},AI_CHAT_TITLE_ANIMATION_INTERVAL);}['setIsMaximized'](_0x496049){this['_view']['chatHeader']['isMaximized']=_0x496049;}['prepareLoadingMessage'](_0x40b47d){return _0x40b47d['isWebSearchEnabled']&&_0x40b47d['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING'):_0x40b47d['isWebSearchEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH'):_0x40b47d['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REASONING'):getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR');}['_getInputPlaceholder'](_0x34a560){return _0x34a560?_0x34a560['isWebSearchEnabled']&&_0x34a560['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING'):_0x34a560['isWebSearchEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH'):_0x34a560['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'](_0x3d5335,_0x3384ee,_0x858066,_0x113f29){this['_view']['populateSourceResourceBalloon'](_0x3d5335,_0x3384ee,_0x858066,_0x113f29);}['closeSourceResourceBalloon'](_0x298a21){this['_view']['closeSourceResourceBalloon'](_0x298a21);}['setPromptInputValue'](_0x4ecdbe){this['_view']['chatControls']['setPromptInputValue'](_0x4ecdbe);}['focusPromptInput'](_0x379503=!0x1){this['_view']['chatControls']['focusPromptInput'](_0x379503);}['scrollFeedToSuggestion'](_0x5715a0,_0x59b035){this['_view']['chatFeed']['scrollToSuggestion'](_0x5715a0,_0x59b035);}['startAutoScroll'](){this['_view']['chatFeed']['startAutoScroll']();}['disableControls'](){this['_view']['chatControls']['isDisabled']=!0x0;}['enableControls'](){this['_view']['chatControls']['isDisabled']=!0x1;}}class AIChatHistorySectionListView extends ListView{['sections'];constructor(_0x1d38b4,_0x4c8991){super(_0x1d38b4),this['sections']=_0x4c8991,this['items']['addMany'](this['sections']),this['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__sections']}});}['filter'](_0x533635){let _0xf350a6=0x0,_0x581fda=0x0;for(const _0x319bc3 of this['sections']){const {resultsCount:_0x30a932,totalItemsCount:_0x1efb5e}=_0x319bc3['filter'](_0x533635);_0xf350a6+=_0x30a932,_0x581fda+=_0x1efb5e;}return{'resultsCount':_0xf350a6,'totalItemsCount':_0x581fda};}}class AIChatHistoryListView extends ListItemView{['title'];['itemsViews'];['_itemsListView'];constructor(_0x33e346,{title:_0x2ec129,items:_0x3c79a9}){super(_0x33e346);const _0x133e7e=this['bindTemplate'];this['set']('isVisible',!0x0),this['title']=_0x2ec129,this['itemsViews']=_0x3c79a9;const _0x3c477a=new View(_0x33e346);_0x3c477a['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__section-title']},'children':[this['title']]}),this['_itemsListView']=new ListView(_0x33e346),this['_itemsListView']['items']['addMany'](this['itemsViews']),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__section',_0x133e7e['if']('isVisible','ck-hidden',_0x237443=>!_0x237443)]},'children':[_0x3c477a,this['_itemsListView']]});}['filter'](_0x4e70db){const _0x1b30ca=this['itemsViews']['length'];let _0x26f850=0x0;for(const _0x1a3fbf of this['itemsViews']){if(_0x4e70db){const _0x28f7dd=_0x1a3fbf['isMatching'](_0x4e70db);_0x1a3fbf['isVisible']=!!_0x28f7dd,_0x1a3fbf['highlightText'](_0x4e70db);}else _0x1a3fbf['isVisible']=!0x0,_0x1a3fbf['highlightText'](null);_0x1a3fbf['isVisible']&&_0x26f850++;}return this['isVisible']=_0x26f850>0x0,{'resultsCount':_0x26f850,'totalItemsCount':_0x1b30ca};}['getItem'](_0x5afe45){return this['itemsViews']['find'](_0x1ebc57=>_0x1ebc57['id']===_0x5afe45);}['removeItem'](_0x55bfe3){const _0x17260a=this['itemsViews']['indexOf'](_0x55bfe3);-0x1!==_0x17260a&&(this['itemsViews']['splice'](_0x17260a,0x1),this['_itemsListView']['items']['remove'](_0x55bfe3));}}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(_0x213943,_0xabd66){super(_0x213943);const _0x280772=this['bindTemplate'];this['set']('isEdit',!0x1),this['set']('isVisible',!0x0),this['set']('pinned',!!_0xabd66['pinned']),this['set']('loadingState',null),this['id']=_0xabd66['id'];const {title:_0xc482ec,createdAt:_0x47d0df,active:_0x44b695=!0x1}=_0xabd66;this['_titleView']=new HighlightedTextView(),this['_titleView']['text']=_0xc482ec,this['_titleView']['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__item-title']}});const _0x3e42b4=this['_createCheckView'](),_0x2fa35c=this['_createPinButtonView'](_0x213943),_0x11b759=this['_createMenuDropdownView'](),_0x1984bc=this['_createEditInputView'](_0x213943,_0xc482ec),_0xe976f4=this['_createAcceptEditButtonView'](_0x213943,_0x1984bc),_0x3ce670=this['_createCancelEditButtonView'](_0x213943,_0x1984bc);this['actions']=this['createCollection'](),this['mainContent']=this['createCollection'](),this['mainContent']['add'](this['_titleView']),this['actions']['add'](_0x2fa35c),this['actions']['add'](_0x11b759),this['on']('change:isEdit',(_0x1624b6,_0x4e5977,_0x5c1c6c)=>{this['actions']['clear'](),this['mainContent']['clear'](),_0x5c1c6c?(this['actions']['add'](_0xe976f4),this['actions']['add'](_0x3ce670),this['mainContent']['add'](_0x1984bc),_0x1984bc['element']['focus']()):(this['actions']['add'](_0x2fa35c),this['actions']['add'](_0x11b759),this['mainContent']['add'](this['_titleView']));}),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__item',_0x44b695?'ck-ai-chat-history__item--active':'',_0x280772['if']('isVisible','ck-hidden',_0xbb5c64=>!_0xbb5c64),_0x280772['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',_0x280772['if']('loadingState','ck-hidden',_0x443a51=>!!_0x443a51)]},'children':_0x44b695?[_0x3e42b4]:[]},{'tag':'div','attributes':{'class':['ck-ai-loader',_0x280772['if']('loadingState','ck-hidden',_0x42e7e3=>!_0x42e7e3)]},'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',_0x280772['if']('loadingState','ck-hidden',_0xe03f37=>!!_0xe03f37)]},'children':this['mainContent']},{'tag':'div','attributes':{'class':['ck-ai-loader__text',_0x280772['if']('loadingState','ck-hidden',_0x5dab63=>!_0x5dab63)]},'children':[{'text':_0x280772['to']('loadingState',_0x5d808e=>_0x5d808e?getTranslation$i(this['locale'],AIChatHistoryListItemView['LOADING_LABELS'][_0x5d808e]):'')}]}]},{'tag':'span','attributes':{'class':['ck-ai-chat-history__item-date']},'children':[_0x47d0df]}]},{'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'](_0x45ffa0){this['_titleView']['text']=escape(_0x45ffa0);}['updateLoadingState'](_0x29188f,_0x51fa5f){this['set']('loadingState',_0x51fa5f?_0x29188f:null);}['_createCheckView'](){const _0x2f4283=new IconView();return _0x2f4283['set']({'content':IconCheck}),_0x2f4283;}['_createPinButtonView'](_0xbd2d9c){const _0xb3c08c=new ButtonView(_0xbd2d9c);return _0xb3c08c['set']({'label':getTranslation$i(_0xbd2d9c,'AI_CHAT_HISTORY_PIN_BUTTON'),'icon':IconPin,'withText':!0x1,'tooltip':!0x0}),_0xb3c08c['bind']('isOn')['to'](this,'pinned'),_0xb3c08c['on']('execute',()=>{const _0x7f9f33=!this['pinned'];this['fire']('setConversationPinned',{'id':this['id'],'pinned':_0x7f9f33});}),_0xb3c08c;}['_createMenuDropdownView'](){const _0x1a89fd=createDropdown(this['locale']),_0x16d1b1=_0x1a89fd['panelView']['children'];_0x1a89fd['buttonView']['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SHOW_MORE_ITEMS'),'icon':IconThreeHorizontalDots}),_0x1a89fd['panelPosition']='sw';const _0x57455b=new ButtonView(this['locale']);_0x57455b['label']=getTranslation$i(this['locale'],'AI_CHAT_HISTORY_EDIT_NAME'),_0x57455b['withText']=!0x0,_0x57455b['on']('execute',()=>{this['isEdit']=!0x0;});const _0x5e1da1=new ButtonView(this['locale']);_0x5e1da1['label']=getTranslation$i(this['locale'],'AI_CHAT_HISTORY_REMOVE'),_0x5e1da1['withText']=!0x0,_0x5e1da1['on']('execute',()=>{this['showConfirm'](getTranslation$i(this['locale'],'AI_CHAT_HISTORY_REMOVE_CONFIRM'),this['element'])['then'](()=>{this['fire']('removeConversation',{'id':this['id']});});});const _0x40c7b3=new ListView(this['locale']),_0x33c989=new ListItemView(this['locale']);_0x33c989['children']['add'](_0x57455b);const _0x381a60=new ListItemView(this['locale']);return _0x381a60['children']['add'](_0x5e1da1),_0x40c7b3['items']['addMany']([_0x33c989,_0x381a60]),_0x16d1b1['add'](_0x40c7b3),_0x1a89fd;}['_createEditInputView'](_0x1e66f4,_0x2b6059){const _0x323930=new InputTextView(_0x1e66f4),_0x3b5e40=_0x323930['bindTemplate'];return _0x323930['value']=_0x2b6059,_0x323930['extendTemplate']({'on':{'keydown':_0x3b5e40['to'](_0x4a25fa=>{'Enter'==_0x4a25fa['key']&&this['_commitEditInputValue'](_0x323930);})}}),_0x323930;}['_createAcceptEditButtonView'](_0x4eeeff,_0x70224d){const _0xf736bb=new ButtonView(_0x4eeeff);return _0xf736bb['set']({'icon':IconCheck,'withText':!0x1,'tooltip':getTranslation$i(_0x4eeeff,'AI_CHAT_HISTORY_ACCEPT')}),_0xf736bb['extendTemplate']({'attributes':{'class':['ck-confirm-view-submit']}}),_0xf736bb['on']('execute',()=>{this['_commitEditInputValue'](_0x70224d);}),_0xf736bb;}['_commitEditInputValue'](_0x47ddf5){const _0x4d2b53=_0x47ddf5['element']['value']||'';this['_titleView']['text']=_0x4d2b53,this['isEdit']=!0x1,this['fire']('editConversationTitle',{'id':this['id'],'title':_0x4d2b53});}['_createCancelEditButtonView'](_0x208954,_0x5ce715){const _0xa166ac=new ButtonView(_0x208954);return _0xa166ac['set']({'icon':IconCancel,'withText':!0x1,'tooltip':getTranslation$i(_0x208954,'AI_CHAT_HISTORY_CANCEL')}),_0xa166ac['extendTemplate']({'attributes':{'class':['ck-confirm-view-cancel']}}),_0xa166ac['on']('execute',()=>{this['isEdit']=!0x1,_0x5ce715['value']=this['_titleView']['text']||'',this['fire']('edit:cancel');}),_0xa166ac;}['_createSpinnerView'](){const _0x1d2e87=new AISpinnerView('tiny');return _0x1d2e87['isVisible']=!0x0,_0x1d2e87;}['isMatching'](_0xc03577){return this['_titleView']&&'string'==typeof this['_titleView']['text']&&this['_titleView']['text']['match'](_0xc03577)?{'title':!0x0}:null;}['highlightText'](_0x3dc32a){this['_titleView']['highlightText'](_0x3dc32a);}}class AIChatHistoryView extends View{['searchView'];['mainErrorView'];['skeletonView'];['emptyView'];['sectionsView'];['resizeButton'];constructor(_0x20c37b,_0x32d62d){super(_0x20c37b),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 _0x87faa7=new FormHeaderView(_0x20c37b,{'label':getTranslation$i(_0x20c37b,'AI_CHAT_HISTORY_HEADING'),'icon':IconAIHistory,'class':'ck-ai-header\x20ck-ai-header_history'});_0x32d62d&&(this['resizeButton']=createResizeButton(_0x20c37b,this),_0x87faa7['children']['add'](this['resizeButton'])),this['sectionsView']=new AIChatHistorySectionListView(_0x20c37b,[]),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',_0x499ac2=>!_0x499ac2)]}}),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':[_0x87faa7,{'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 _0x5677c5=new SearchTextView(this['locale'],{'filteredView':this['sectionsView'],'queryView':{'label':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_LABEL')},'infoView':{'text':{'notFound':{'primary':_0x5be04a=>getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY',_0x5be04a),'secondary':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY')}}}}),_0x421114=this['_createErrorView']();return _0x421114['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('errorMessage','ck-hidden',_0xeb123b=>!_0xeb123b)]}}),_0x5677c5['on']('render',()=>{_0x5677c5['children']['add'](_0x421114,0x1);}),_0x5677c5['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isSearchViewVisible','ck-hidden',_0x14f166=>!_0x14f166)]}}),_0x5677c5;}['_createSkeletonView'](){const _0x1bc14e=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiHistory']);return _0x1bc14e['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoading','ck-hidden',_0x23d9da=>!_0x23d9da)]}}),_0x1bc14e;}['_createErrorView'](){const _0x60e5ab=new View(this['locale']),_0x4241d0=new ButtonView(this['locale']);_0x4241d0['set']({'withText':!0x1,'icon':IconCancel,'class':'ck-ai-notification_error__dismiss-button'}),_0x4241d0['bind']('isVisible')['to'](this,'hasItems',_0x2d77ba=>!!_0x2d77ba),_0x4241d0['on']('execute',()=>{this['errorMessage']='';});const _0x5c4103=this['bindTemplate'];return _0x60e5ab['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error']},'children':[{'tag':'p','children':[{'text':_0x5c4103['to']('errorMessage')}]},_0x4241d0]}),_0x60e5ab;}['_createEmptyStateView'](){const _0x4e2618=new ButtonView(this['locale']);_0x4e2618['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_NEW_CHAT'),'withText':!0x0,'icon':IconPlus,'class':'ck-ai-chat__start-conversation\x20'+AI_BUTTON_CLASSES['SECONDARY']}),_0x4e2618['on']('execute',()=>{this['fire']('openChat');});const _0x587dbe=new View(this['locale']);return _0x587dbe['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__empty',this['bindTemplate']['if']('isEmptyViewVisible','ck-hidden',_0x334b9c=>!_0x334b9c)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-history__empty-message']},'children':[getTranslation$i(this['locale'],'AI_CHAT_HISTORY_EMPTY_MESSAGE')]},_0x4e2618]}),_0x587dbe;}['_createListItemViews'](_0x5823c5,_0x3cb1ea){const _0x4d9d2a=[];for(const _0x39947f of _0x5823c5){const _0x33ae8d=new AIChatHistoryListItemView(_0x3cb1ea,_0x39947f);_0x33ae8d['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x4d9d2a['push'](_0x33ae8d);}return _0x4d9d2a;}['updateHistoryItemsWithCategories'](_0x2b4e7c){const _0x47d549=this['locale']||'en',_0xcdbba7=[];for(const _0x264d82 of _0x2b4e7c){const _0x115234=this['_createListItemViews'](_0x264d82['items'],_0x47d549);_0xcdbba7['push'](new AIChatHistoryListView(_0x47d549,{'title':_0x264d82['title'],'items':_0x115234}));}this['sectionsView']['sections']=_0xcdbba7,this['sectionsView']['items']['clear'](),this['sectionsView']['items']['addMany'](_0xcdbba7),this['hasItems']=_0x2b4e7c['some'](_0x69c539=>_0x69c539['items']['length']>0x0),this['_refreshSearch']();}['removeHistoryItem'](_0x8250b4){for(const _0x30ebb6 of this['sectionsView']['sections']){const _0x225d9e=_0x30ebb6['getItem'](_0x8250b4);if(_0x225d9e){if(_0x30ebb6['removeItem'](_0x225d9e),0x0===_0x30ebb6['itemsViews']['length']){const _0x496880=this['sectionsView']['sections']['indexOf'](_0x30ebb6);-0x1!==_0x496880&&(this['sectionsView']['sections']['splice'](_0x496880,0x1),this['sectionsView']['items']['remove'](_0x30ebb6));}this['hasItems']=this['sectionsView']['sections']['length']>0x0,this['_refreshSearch']();break;}}}['updateItemTitle'](_0x3424d6,_0x12d6a7){for(const _0x38cf73 of this['sectionsView']['sections']){const _0xd689e6=_0x38cf73['getItem'](_0x3424d6);if(_0xd689e6){_0xd689e6['updateTitle'](_0x12d6a7);break;}}}['updateItemLoadingState'](_0x273c42,_0x3a1e11,_0x3b373b){for(const _0x3812df of this['sectionsView']['sections']){const _0x49f373=_0x3812df['getItem'](_0x273c42);if(_0x49f373){_0x49f373['updateLoadingState'](_0x3a1e11,_0x3b373b);break;}}}['_refreshSearch'](){if(this['hasItems']){const _0x31d26d=this['searchView']['queryView']['fieldView']?.['element']?.['value']||'';this['searchView']['search'](_0x31d26d);}}}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(_0x21600d){super(_0x21600d);const _0x48ea1a=this['context']['plugins']['get']('AITabs');this['_historyView']=new AIChatHistoryView(this['context']['locale'],_0x48ea1a['showResizeButton']),this['_historyView']['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x48ea1a['view']['addTab']({'id':'history','buttonLabel':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_HEADING'),'buttonIcon':IconAIHistory,'order':0x0,'content':this['_historyView']});}['removeHistoryItem'](_0x5c8fdc){this['_historyView']['removeHistoryItem'](_0x5c8fdc);}['updateItems'](_0x2b78ed){this['_historyView']['updateHistoryItemsWithCategories'](_0x2b78ed);}['updateItemTitle'](_0x1eae14,_0x368572){this['_historyView']['updateItemTitle'](_0x1eae14,_0x368572);}['updateItemLoadingState'](_0x13e424,_0x47700a,_0x29c53f){this['_historyView']['updateItemLoadingState'](_0x13e424,_0x47700a,_0x29c53f);}['setLoadingSkeleton'](_0xb4db2){this['_historyView']['isLoading']=_0xb4db2;}['showError'](_0x39a4cb){this['_historyView']['errorMessage']=_0x39a4cb;}['hideError'](){this['_historyView']['errorMessage']='';}['setIsMaximized'](_0x1d1e30){this['_historyView']['isMaximized']=_0x1d1e30;}}class AIChatHistoryItem extends ObservableMixin(){['id'];['createdAt'];constructor({id:_0x53a1e5,title:_0x3fec9c,createdAt:_0x509ca4,updatedAt:_0x23cb63,pinned:_0x16c5e2}){super(),this['id']=_0x53a1e5,this['createdAt']=new Date(_0x509ca4),this['set']('title',_0x3fec9c),this['set']('updatedAt',_0x23cb63?new Date(_0x23cb63):null),this['set']('pinned',_0x16c5e2||!0x1);}['updateTitle'](_0x4382eb){this['set']('title',escape(_0x4382eb)),this['updatedAt']=new Date();}['updatePinned'](_0xbfaa3e){this['set']('pinned',_0xbfaa3e),this['updatedAt']=new Date();}}class AIChatHistoryConversations extends EmitterMixin(){['items']=[];['connector'];['group'];constructor({connector:_0x5c6e47,group:_0x2074f1}){super(),this['connector']=_0x5c6e47,this['group']=_0x2074f1;}async['init'](){try{const _0x3f20e8=this['connector']['fetchConversations'](this['group']),_0x4c98b4=await _0x3f20e8['getConversations']();this['loadItems'](_0x4c98b4);}catch(_0x5359fb){this['fire']('error',{'error':_0x5359fb,'operation':'init'});}}['addItem'](_0x5a9ea7){this['items']['push'](_0x5a9ea7);}async['removeItem'](_0x2d6008){const _0x21927d=this['items']['findIndex'](_0x38a33c=>_0x38a33c['id']===_0x2d6008);if(-0x1===_0x21927d)return!0x1;try{return await this['connector']['deleteConversation'](_0x2d6008)['execute'](),this['items']['splice'](_0x21927d,0x1),this['fire']('itemRemoved',{'itemId':_0x2d6008}),!0x0;}catch(_0x5f7f50){return this['fire']('error',{'error':_0x5f7f50,'operation':'removeItem','itemId':_0x2d6008}),!0x1;}}['getItem'](_0x3f6f3d){return this['items']['find'](_0x5e1f4a=>_0x5e1f4a['id']===_0x3f6f3d);}async['updateItemTitle'](_0x22ef29,_0x4ebb7d){const _0x4fdef2=this['getItem'](_0x22ef29);if(!_0x4fdef2)return!0x1;try{return await this['connector']['updateConversation'](_0x22ef29,{'title':_0x4ebb7d})['getResult'](),_0x4fdef2['updateTitle'](_0x4ebb7d),this['fire']('itemUpdated',{'itemId':_0x22ef29,'updates':{'title':_0x4ebb7d}}),!0x0;}catch(_0x34e1e8){return this['fire']('error',{'error':_0x34e1e8,'operation':'updateItemTitle','itemId':_0x22ef29}),!0x1;}}async['updateItemPinned'](_0x367695,_0x3249df){const _0x552bbe=this['getItem'](_0x367695);if(!_0x552bbe)return!0x1;try{return await this['connector']['updateConversation'](_0x367695,{'pinned':_0x3249df})['getResult'](),_0x552bbe['updatePinned'](_0x3249df),this['fire']('itemUpdated',{'itemId':_0x367695,'updates':{'pinned':_0x3249df}}),!0x0;}catch(_0x123a61){return this['fire']('error',{'error':_0x123a61,'operation':'updateItemPinned','itemId':_0x367695}),!0x1;}}['loadItems'](_0x490f8f){try{this['items']=[],_0x490f8f['map'](_0x107359=>{this['addItem'](new AIChatHistoryItem(_0x107359));}),this['fire']('itemsLoaded',{'items':[...this['items']]});}catch(_0x4721f4){this['fire']('error',{'error':_0x4721f4,'operation':'loadItems'});}}['getItems'](_0x2c7692={}){const _0x2c78ed=void 0x0!==_0x2c7692['pinned']&&_0x2c7692['pinned'],_0x4b6028=_0x2c7692['from']?new Date(_0x2c7692['from']['getFullYear'](),_0x2c7692['from']['getMonth'](),_0x2c7692['from']['getDate']()):null,_0x19f560=_0x2c7692['to']?new Date(_0x2c7692['to']['getFullYear'](),_0x2c7692['to']['getMonth'](),_0x2c7692['to']['getDate']()):null;return this['items']['filter'](_0xf0dab=>{if(_0xf0dab['pinned']!==_0x2c78ed)return!0x1;if(_0x19f560){const _0x5eb7b=new Date(_0xf0dab['createdAt']['getFullYear'](),_0xf0dab['createdAt']['getMonth'](),_0xf0dab['createdAt']['getDate']());return _0x4b6028?_0x4b6028['getTime']()===_0x19f560['getTime']()?_0x5eb7b['getTime']()===_0x4b6028['getTime']():_0x5eb7b<_0x19f560&&_0x5eb7b>=_0x4b6028:_0x5eb7b<_0x19f560;}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 _0x1b721e=this['context']['plugins']['get'](AITabs);try{const _0x1698c5=this['_aiChatController']['getGroupId']();this['history']=new AIChatHistoryConversations({'connector':this['_aiConnector'],'group':_0x1698c5}),this['listenTo'](this['_aiChatHistoryUi'],'removeConversation',(_0x191ea4,_0x1ef8c4)=>{this['_setItemLoading'](_0x1ef8c4['id'],'remove'),this['_handleRemove'](_0x1ef8c4['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'editConversationTitle',(_0x4052b7,_0x25ca5c)=>{this['_setItemLoading'](_0x25ca5c['id'],'rename'),this['_handleEditTitle'](_0x25ca5c['id'],_0x25ca5c['title']);}),this['listenTo'](this['history'],'itemUpdated',(_0x22edc8,_0x2c0cb7)=>{void 0x0!==_0x2c0cb7['updates']['title']&&this['_aiChatHistoryUi']['updateItemTitle'](_0x2c0cb7['itemId'],_0x2c0cb7['updates']['title']),void 0x0!==_0x2c0cb7['updates']['pinned']&&this['_updateHistoryItemsUI'](),this['_clearItemLoading'](_0x2c0cb7['itemId']);}),this['listenTo'](this['history'],'itemRemoved',(_0x4768a4,_0x4a4f33)=>{this['_aiChatController']['_handleRemovedConversation'](_0x4a4f33['itemId']),this['_aiChatHistoryUi']['removeHistoryItem'](_0x4a4f33['itemId']),this['_clearItemLoading'](_0x4a4f33['itemId']);}),this['listenTo'](this['history'],'itemsLoaded',()=>{this['_updateHistoryItemsUI']();}),this['listenTo'](this['history'],'error',(_0x4871a0,_0x253808)=>{this['_handleHistoryErrorUI'](_0x253808['error'],_0x253808['operation'],_0x253808['itemId']);}),this['listenTo'](this['_aiChatHistoryUi'],'selectConversation',(_0x3c785b,_0xcda424)=>{this['_handleSelectConversation'](_0xcda424['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'setConversationPinned',(_0x3accfc,_0x55b974)=>{const _0x2849aa=_0x55b974['pinned']?'pin':'unpin';this['_setItemLoading'](_0x55b974['id'],_0x2849aa),this['_handleTogglePin'](_0x55b974['id'],_0x55b974['pinned']);}),this['listenTo'](this['_aiChatHistoryUi'],'openChat',()=>{_0x1b721e['view']['activateTab']('chat');}),this['listenTo'](this['_aiChatController'],'change:activeConversation',()=>{this['_updateHistoryItemsUI']();}),_0x1b721e['view']['on']('activateTab:history',()=>{this['_showConversationHistory']();}),this['listenTo'](_0x1b721e,'resizedTabs',(_0x4a89a5,_0x4b08d1)=>{this['_setIsMaximized'](_0x4b08d1);}),this['listenTo'](this['_aiChatHistoryUi'],'resizeTabs',()=>{_0x1b721e['resize']();});}catch(_0x377fda){this['_handleHistoryErrorUI'](_0x377fda,'init');}}async['_handleEditTitle'](_0x2cda48,_0x293e6c){await this['history']['updateItemTitle'](_0x2cda48,_0x293e6c);}async['_handleTogglePin'](_0x4edfef,_0x560bbb){await this['history']['updateItemPinned'](_0x4edfef,_0x560bbb);}async['_handleRemove'](_0x31d850){await this['history']['removeItem'](_0x31d850);}async['_handleSelectConversation'](_0x4b73c9){await this['_aiChatController']['loadConversation'](_0x4b73c9);}async['_showConversationHistory'](){this['_aiChatHistoryUi']['showError'](''),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x0),await this['history']['init'](),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}['_updateHistoryItemsUI'](){const _0x274bac=this['_aiChatController']['activeConversation']?.['id'],_0x43219a=this['_getCategorizedItems']()['map'](_0x21b4b9=>({'title':_0x21b4b9['title'],'items':_0x21b4b9['items']['map'](_0x1d4158=>({'id':_0x1d4158['id'],'title':_0x1d4158['title']||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),'createdAt':new Date(_0x1d4158['createdAt'])['toLocaleDateString'](),'active':_0x1d4158['id']===_0x274bac,'pinned':_0x1d4158['pinned']}))}));this['_aiChatHistoryUi']['updateItems'](_0x43219a);}['_setItemLoading'](_0x1608e5,_0x17c69e){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x1608e5,_0x17c69e,!0x0);}['_clearItemLoading'](_0x5be494){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x5be494,null,!0x1);}['_handleHistoryErrorUI'](_0x373551,_0x6707df,_0x18a3ff){const _0x104962=this['_generateErrorMessage'](_0x6707df,_0x18a3ff);this['_aiChatHistoryUi']['showError'](_0x104962),_0x18a3ff&&this['_clearItemLoading'](_0x18a3ff),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}['_generateErrorMessage'](_0x524e8a,_0x36290a){const _0xb5dd97=_0x36290a?this['history']['getItem'](_0x36290a):null,_0x3f4047=_0xb5dd97?.['title']||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION');switch(_0x524e8a){case'updateItemTitle':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE',_0x3f4047);case'updateItemPinned':{const _0x55a628=getTranslation$i(this['context']['locale'],_0xb5dd97?.['pinned']?'AI_CHAT_HISTORY_UNPIN_ACTION':'AI_CHAT_HISTORY_PIN_ACTION');return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED',[_0x55a628,_0x3f4047]);}case'removeItem':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM',_0x3f4047);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 _0x46ab1b=new Date(),_0x1d235b=new Date(_0x46ab1b['getFullYear'](),_0x46ab1b['getMonth'](),_0x46ab1b['getDate']()),_0x701dc4=new Date(_0x1d235b);_0x701dc4['setDate'](_0x701dc4['getDate']()-0x1);const _0x165ac9=new Date(_0x1d235b);_0x165ac9['setDate'](_0x165ac9['getDate']()-0xe);const _0x27ca1b=this['history']['getItems']({'pinned':!0x0}),_0x334737=this['history']['getItems']({'from':_0x1d235b,'to':_0x1d235b}),_0x521e4b=this['history']['getItems']({'from':_0x701dc4,'to':_0x701dc4}),_0x28ca44=this['history']['getItems']({'from':_0x165ac9,'to':_0x701dc4}),_0x5e25d1=this['history']['getItems']({'to':_0x165ac9}),_0xb8d5f0=[];return _0x27ca1b['length']>0x0&&_0xb8d5f0['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_PINNED'),'items':_0x27ca1b}),_0x334737['length']>0x0&&_0xb8d5f0['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_TODAY'),'items':_0x334737}),_0x521e4b['length']>0x0&&_0xb8d5f0['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_YESTERDAY'),'items':_0x521e4b}),_0x28ca44['length']>0x0&&_0xb8d5f0['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS'),'items':_0x28ca44}),_0x5e25d1['length']>0x0&&_0xb8d5f0['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LATER'),'items':_0x5e25d1}),_0xb8d5f0;}['_setIsMaximized'](_0x493ad7){this['_aiChatHistoryUi']['setIsMaximized'](_0x493ad7);}}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(_0x2ca20f){super(_0x2ca20f),this['context']['config']['define']('ai.chat.context',{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[],'alwaysAddSelection':!0x1}),this['context']['config']['define']('ai.chat.initialConversation','new');}}class AIChatShortcutView extends ButtonView{['id'];constructor(_0x341d87,_0x29a474){super(_0x341d87);const {id:_0x1ecc87,type:_0x487cfd,icon:_0x5ef7bc}=_0x29a474;this['id']=_0x1ecc87,this['set']({'label':_0x29a474['label'],'withText':!0x0,'class':'ck-ai-chat-shortcut'}),this['extendTemplate']({'attributes':{'data-cke-ai-shortcut-id':_0x29a474['id']}}),_0x5ef7bc?this['icon']=_0x5ef7bc:'chat'===_0x487cfd?this['icon']=IconAIChat:'review'===_0x487cfd?this['icon']=IconAIReview:'translate'===_0x487cfd&&(this['icon']=IconAITranslate);}}class AIChatShortcutsView extends View{['listView'];constructor(_0x2c9c53,_0x2e6f17){super(_0x2c9c53);const _0x252bce=_0x2e6f17['map'](_0x24dd6c=>{const _0x2443c8=new ListItemView(this['locale']),_0x16f7c6=new AIChatShortcutView(this['locale'],_0x24dd6c);return _0x2443c8['children']['add'](_0x16f7c6),_0x16f7c6['delegate']('execute')['to'](this),_0x2443c8;});this['listView']=new ListView(this['locale']),this['listView']['items']['addMany'](_0x252bce),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-shortcuts']},'children':[this['listView']]});}}const CHAT_SHORTCUTS_FEED_ITEM_ID='chat-shortcuts';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 _0x2d6b04=this['context']['plugins']['get']('AIChatController');this['_shortcuts']['length']&&(this['_validateShortcuts'](),this['_aiChatUI']['on']('conversationCreated',()=>{_0x2d6b04['activeConversation']['isFromHistory']||this['_injectShortcuts']();}),this['listenTo'](_0x2d6b04,'interactionStarted',()=>{this['_removeShortcuts']();}));}['_validateShortcuts'](){const _0x31ee04=['chat','review','translate'];this['_shortcuts']['forEach'](_0x37fe95=>{let _0x572976=!0x0;if(_0x37fe95['id']&&_0x37fe95['label']&&_0x31ee04['includes'](_0x37fe95['type'])?'chat'===_0x37fe95['type']&&(_0x572976='string'==typeof _0x37fe95['prompt']):_0x572976=!0x1,!_0x572976)throw new CKEditorError('ai-chat-shortcuts-invalid-config',this['context'],{'shortcut':_0x37fe95});});}['_injectShortcuts'](){const _0x145f6f=this['context']['plugins']['get'](AIChatUI);this['_shortcutsView']=new AIChatShortcutsView(this['context']['locale'],this['_shortcuts']),this['_shortcutsView']['render'](),_0x145f6f['addFeedItemCustomElement'](this['_shortcutsView']['element'],CHAT_SHORTCUTS_FEED_ITEM_ID),this['_shortcutsView']['on']('execute',_0x259656=>{const _0x2d11b8=_0x259656['source']['id'];this['_executeShortcut'](_0x2d11b8);});}['_removeShortcuts'](){const _0x2b69bf=this['context']['plugins']['get'](AIChatUI);_0x2b69bf['hasFeedItem'](CHAT_SHORTCUTS_FEED_ITEM_ID)&&_0x2b69bf['removeFeedItem'](CHAT_SHORTCUTS_FEED_ITEM_ID),this['_shortcutsView']?.['destroy']();}['_executeShortcut'](_0x180f5f){const _0x3c0cec=this['_shortcuts']['find'](_0x55a265=>_0x55a265['id']===_0x180f5f),_0x111ac9=_0x3c0cec['type'];'chat'===_0x111ac9?this['_runChatShortcut'](_0x3c0cec):'review'===_0x111ac9?_0x3c0cec['commandId']?this['_runReviewShortcut'](_0x3c0cec):this['_switchTab']('reviewMode'):'translate'===_0x111ac9&&(_0x3c0cec['language']?this['_runTranslateShortcut'](_0x3c0cec):this['_switchTab']('translate'));}['_switchTab'](_0xed158f){if(!this['context']['plugins']['has']('AITabs'))throw new CKEditorError('ai-chat-shortcuts-ai-tabs-not-found',this['context'],{'tabName':_0xed158f});this['context']['plugins']['get']('AITabs')['view']['activateTab'](_0xed158f);}async['_runChatShortcut']({prompt:_0x3f4807,draftMode:_0xe98fc4,useWebSearch:_0x4faea6=!0x1,useReasoning:_0x4cf570=!0x1,model:_0x4e3dc4}){const _0x1186c4=this['context']['plugins']['get']('AIChatController'),_0x58199a=_0x1186c4['activeConversation'];let _0x2a7655;_0x2a7655=_0x4e3dc4?await _0x58199a['chatModels']['getModel'](_0x4e3dc4):await _0x58199a['chatModels']['getDefault'](),_0x2a7655&&await _0x58199a['setModel'](_0x2a7655),_0x58199a['setWebSearch'](_0x4faea6),_0x58199a['setReasoning'](_0x4cf570),_0x1186c4['addCurrentDocumentToChatContext'](),_0xe98fc4?(this['_aiChatUI']['setPromptInputValue'](_0x3f4807),this['_aiChatUI']['focusPromptInput'](!0x0)):_0x1186c4['sendMessage']({'message':_0x3f4807});}['_runReviewShortcut']({commandId:_0x38b559,model:_0x30d88c,prompt:_0x2e1ea0,params:_0x54fa15}){if(!this['context']['plugins']['has']('AIReviewModeUI'))throw new CKEditorError('ai-chat-shortcuts-review-mode-not-found',this['context']);this['_switchTab']('reviewMode');const _0x1c8b13={'id':_0x38b559,'isCustom':'custom'===_0x38b559};_0x30d88c&&_0x2e1ea0&&(_0x1c8b13['args']={'model':_0x30d88c,'prompt':_0x2e1ea0}),_0x54fa15&&(_0x1c8b13['params']=_0x54fa15),this['context']['plugins']['get']('AIReviewModeUI')['fire']('runReviewCheck',_0x1c8b13);}['_runTranslateShortcut']({language:_0x514476}){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':_0x514476,'args':{'language':_0x514476}});}}class ToggleAICommand extends Command{constructor(_0x1c51cf){super(_0x1c51cf);const _0xfd2cf7=_0x1c51cf['plugins']['get']('AITabs')['view'];this['bind']('value')['to'](_0xfd2cf7,'isVisible'),this['isEnabled']=!0x0;}['execute'](){const _0x4f880a=this['editor']['plugins']['get']('AITabs')['view'];_0x4f880a['isVisible']=!_0x4f880a['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 _0x3b84b9=this['editor'];_0x3b84b9['commands']['add']('toggleAi',new ToggleAICommand(_0x3b84b9)),_0x3b84b9['ui']['componentFactory']['add']('toggleAi',()=>{const _0x52084e=this['_createAIUIButton'](ButtonView);return _0x52084e['set']({'tooltip':!0x0,'class':'ck-ai-toggle-button'}),_0x52084e;}),_0x3b84b9['ui']['componentFactory']['add']('menuBar:toggleAi',()=>{const _0x240cb1=this['_createAIUIButton'](MenuBarMenuListItemButtonView);return _0x240cb1['set']({'role':'menuitemcheckbox'}),_0x240cb1;});}['_createAIUIButton'](_0x4791c4){const _0x18f29e=this['editor'],_0x2bcd3c=_0x18f29e['commands']['get']('toggleAi'),_0x5b098c=new _0x4791c4(_0x18f29e['locale']);return _0x5b098c['set']({'label':getTranslation$i(_0x18f29e['locale'],'AI_TOGGLE_BUTTON_LABEL'),'icon':IconAIAskAI,'isToggleable':!0x0}),_0x5b098c['bind']('isEnabled')['to'](_0x2bcd3c),_0x5b098c['bind']('isOn')['to'](_0x2bcd3c,'value',_0x3b8b36=>!!_0x3b8b36),this['listenTo'](_0x5b098c,'execute',()=>{_0x2bcd3c['execute']();}),_0x5b098c;}}const AI_BALLOON_VIEW_EVENT_NAMES=['applySuggestion','insertSuggestion','showNext','showPrevious'];class AIBalloonView extends View{['_errorView'];constructor(_0x551f08){super(_0x551f08),this['set']('_errorMessage',''),this['set']('_isErrorVisible',!0x1);}['showBlockingError'](_0x2a3cca){this['showError'](_0x2a3cca);}['showError'](_0x218e5f){this['_errorView']||(this['_errorView']=this['_createErrorView']()),this['_errorMessage']=_0x218e5f,this['_isErrorVisible']=!0x0;}['hideError'](){this['_isErrorVisible']=!0x1;}['_createErrorView'](){const _0x2d4bb3=new View(this['locale']),_0x2f58fc=new View(this['locale']);return _0x2f58fc['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__error-text']},'children':[{'text':this['bindTemplate']['to']('_errorMessage')}]}),_0x2d4bb3['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__error','ck-ai-balloon-error',this['bindTemplate']['if']('_isErrorVisible','ck-hidden',_0x5da5d7=>!_0x5da5d7)]},'children':[_0x2f58fc]}),_0x2d4bb3;}}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'](_0x557a51){const {id:_0x1d3746}=this['_currentConfig']??{};this['_currentConfig']=_0x557a51;const {id:_0x409860}=this['_currentConfig'];this['isOpen']&&_0x1d3746===_0x409860?this['_updateDialog']():this['_showDialog']();}['close'](){const _0x56e365=getEditorFromContext(this['context'])['plugins']['get']('Dialog');_0x56e365['isOpen']&&this['_currentConfig']&&_0x56e365['id']===this['_currentConfig']['id']&&_0x56e365['hide']();}['_updateDialog'](){const _0x5f57fb=getEditorFromContext(this['context'])['plugins']['get']('Dialog'),{icon:_0x4d55d0,title:_0x283d17}=this['_currentConfig'];_0x5f57fb['view']?.['headerView']&&(_0x5f57fb['view']['headerView']['label']=_0x283d17,_0x5f57fb['view']['headerView']['iconView']&&_0x4d55d0&&(_0x5f57fb['view']['headerView']['iconView']['content']=_0x4d55d0)),this['_isUpdatingMarkers']=!0x0,this['_showFakeVisualSelection'](),this['_isUpdatingMarkers']=!0x1,_0x5f57fb['view']?.['updatePosition']();}['_showFakeVisualSelection'](){this['context']['plugins']['get'](AIEditing)['showFakeVisualSelection']({'ranges':this['_currentConfig']['ranges'],'id':'balloon','priority':0x64}),window['getSelection']()?.['removeAllRanges']();}['_hideFakeVisualSelection'](){this['context']['plugins']['get'](AIEditing)['hideFakeVisualSelection']('balloon');}['_showDialog'](){const _0x26fefa=getEditorFromContext(this['context'])['plugins']['get']('Dialog'),{id:_0x5f5c6a,title:_0x4968a6,icon:_0x2abc78,class:_0x50c6fa,mainView:_0x5edec2}=this['_currentConfig'];_0x5edec2['delegate'](...AI_BALLOON_VIEW_EVENT_NAMES)['to'](this),_0x26fefa['show']({'title':_0x4968a6,'icon':_0x2abc78,'hasCloseButton':!0x0,'id':_0x5f5c6a,'position':this['_calculateDialogPosition']['bind'](this),'className':'ck-ai-balloon\x20'+(_0x50c6fa||''),'content':_0x5edec2,'onShow':_0xd2d0be=>{this['_showFakeVisualSelection'](),this['_setupFakeVisualSelectionMarkerRemovalListener']();const _0x57e753=this['_getSelectionElements']();_0x57e753&&_0x57e753[0x0]&&scrollViewportToShowTarget({'target':_0x57e753[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this['isOpen']=!0x0,_0xd2d0be['once']('hide',()=>{this['fire']('beforeDialogClosed',{'id':_0x5f5c6a});},{'priority':'high'});},'onHide':()=>{this['_hideFakeVisualSelection'](),this['_cleanupFakeVisualSelectionMarkerRemovalListener'](),this['fire']('dialogClosed',{'id':_0x5f5c6a}),this['isOpen']=!0x1;}});}['_calculateDialogPosition'](_0x447532,_0x6c7c83){if(!_0x6c7c83)return null;const _0x36d2df=this['_getSelectionElements']();if(!_0x36d2df||0x0===_0x36d2df['length'])return{'left':Math['round'](_0x6c7c83['left']+_0x6c7c83['width']/0x2-_0x447532['width']/0x2),'top':Math['round'](_0x6c7c83['top']+_0x6c7c83['height']/0x2-_0x447532['height']/0x2)};const _0x5bcc9c=Math['round'](_0x6c7c83['left']+_0x6c7c83['width']/0x2-_0x447532['width']/0x2),_0x8c1041=_0x36d2df['map'](_0x3495c7=>new Rect(_0x3495c7)),_0x5b7f1d=_0x447532['height'];return{'left':_0x5bcc9c,'top':this['_calculateOptimalTopPosition'](_0x8c1041,_0x5b7f1d,_0x6c7c83)};}['_calculateOptimalTopPosition'](_0x595037,_0x3b0bb0,_0x201104){const _0x4fa7fe=new Rect(_0x176c57['window']),_0x55b5bf=_0x595037['map'](_0x11bc69=>_0x11bc69['getVisible']())['filter'](_0x287c2a=>_0x287c2a),_0x5e4583=Rect['getBoundingRect'](_0x55b5bf);if(!_0x5e4583)return Math['round'](_0x201104['top']+_0x201104['height']/0x2);const _0x4ae28b=_0x4fa7fe['getIntersection'](_0x5e4583);if(!_0x4ae28b)return Math['round'](_0x201104['top']+_0x201104['height']/0x2);const _0x5278f4=_0x201104['getVisible'](),_0x3721a8=_0x5278f4&&_0x5e4583['height']>_0x5278f4['height'],_0x162093=_0x4ae28b['top'],_0x3befba=_0x4ae28b['bottom'];if(_0x3721a8){const _0x269a83=(_0x5278f4||_0x4fa7fe)['height']/0x2-_0x3b0bb0/0x2,_0x4c04a2=_0x162093-DIALOG_TOP_OFFSET-_0x201104['top'],_0x55c2d4=_0x201104['bottom']-_0x3befba-DIALOG_TOP_OFFSET;return _0x4c04a2>=_0x3b0bb0?Math['max'](DIALOG_TOP_OFFSET,_0x162093-_0x3b0bb0-DIALOG_TOP_OFFSET):_0x55c2d4>=_0x3b0bb0?_0x3befba+DIALOG_TOP_OFFSET:Math['max'](DIALOG_TOP_OFFSET,_0x269a83);}const _0x5d579a=_0x162093-_0x3b0bb0,_0x161dcd=_0x201104['bottom']-_0x3befba-DIALOG_TOP_OFFSET,_0xb61a07=_0x162093-DIALOG_TOP_OFFSET-_0x201104['top'];let _0x1ec557;if(_0x161dcd>=_0x3b0bb0)_0x1ec557=_0x3befba+DIALOG_TOP_OFFSET;else{if(_0xb61a07>=_0x3b0bb0)_0x1ec557=_0x5d579a-DIALOG_TOP_OFFSET;else _0x1ec557=_0x162093+_0x5e4583['height']/0x2-_0x3b0bb0/0x2;}return _0x1ec557;}['_setupFakeVisualSelectionMarkerRemovalListener'](){const _0x5c6e17=getEditorFromContext(this['context']);this['listenTo'](_0x5c6e17['model']['document'],'change',()=>{if(!this['_isUpdatingMarkers']){for(const {name:_0x2f0c76,data:{newRange:_0x4e0ac9}}of _0x5c6e17['model']['document']['differ']['getChangedMarkers']())if(_0x2f0c76['startsWith'](AI_VISUAL_SELECTION_MARKER_NAME+':')&&(_0x4e0ac9&&(_0x4e0ac9['start']['isEqual'](_0x4e0ac9['end'])||'$graveyard'==_0x4e0ac9['root']['rootName'])||null==_0x4e0ac9)){const _0x4955ec=getTranslation$i(this['context']['locale'],'AI_BALLOON_SELECTION_REMOVED_ERROR');this['_currentConfig']['mainView']['showBlockingError'](_0x4955ec),this['fire']('selectionRemoved');}}});}['_cleanupFakeVisualSelectionMarkerRemovalListener'](){const _0x27df4e=getEditorFromContext(this['context']);this['_currentConfig']['mainView']['hideError'](),this['stopListening'](_0x27df4e['model']['document']);}['_getSelectionElements'](){const _0x27e817=getEditorFromContext(this['context']);return getAllMarkersDomElementsSorted(_0x27e817['editing'],[..._0x27e817['model']['markers']['getMarkersGroup']('ai-selection'),..._0x27e817['model']['markers']['getMarkersGroup']('ai-balloon-selection')]);}}class AIMiniToolbarView extends ToolbarView{['copyButton'];['likeButton'];['dislikeButton'];['showChangesButton'];['_config'];constructor(_0x4235fc,_0x4cd8e9={}){super(_0x4235fc),this['set']('isEnabled',!0x0),this['set']('isShowChangesOn',!0x1),this['_config']={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x4cd8e9};const _0x4a2409=!(this['_config']['showCopy']||this['_config']['showChanges']||this['_config']['showLike']||this['_config']['showDislike']||this['_config']['customView']?.['length']);this['class']=_0x4a2409?'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'](_0x420b5f){this['showChangesButton']['isEnabled']=_0x420b5f;}['_setupRatingButtons'](){this['likeButton']=new ButtonView(this['locale']),this['likeButton']['set']({'icon':IconThumbUp,'label':getTranslation$i(this['locale'],'AI_MINI_TOOLBAR_LIKE'),'class':AI_BUTTON_CLASSES['TERTIARY'],'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'),'class':AI_BUTTON_CLASSES['TERTIARY'],'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':IconCopy,'label':getTranslation$i(this['locale'],'AI_MINI_TOOLBAR_COPY'),'class':'ck-ai-mini-toolbar-copy-button\x20'+AI_BUTTON_CLASSES['TERTIARY'],'tooltip':!0x0}),this['copyButton']['bind']('isEnabled')['to'](this);const _0x579f71=new IconView();_0x579f71['set']({'content':IconCheck}),_0x579f71['extendTemplate']({'attributes':{'class':['ck-ai-mini-toolbar-copy-button__check-mark']}}),this['copyButton']['on']('execute',()=>{this['copyButton']['class']='ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied\x20'+AI_BUTTON_CLASSES['TERTIARY'],setTimeout(()=>{this['copyButton']['class']='ck-ai-mini-toolbar-copy-button\x20'+AI_BUTTON_CLASSES['TERTIARY'];},0x7d0);}),this['copyButton']['children']['add'](_0x579f71);}['_setupShowChangesButton'](){this['showChangesButton']=new ButtonView(this['locale']),this['showChangesButton']['set']({'icon':IconShowChangesOff,'label':getTranslation$i(this['locale'],'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':'full'==this['_config']['showChanges'],'tooltip':'full'!=this['_config']['showChanges'],'class':AI_BUTTON_CLASSES['TERTIARY']}),this['showChangesButton']['bind']('isOn')['to'](this,'isShowChangesOn'),this['showChangesButton']['bind']('isEnabled')['to'](this),this['showChangesButton']['bind']('icon')['to'](this,'isShowChangesOn',_0x47e69b=>_0x47e69b?IconShowChangesOn:IconShowChangesOff),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(_0x370e0d,_0x58e7df){super(_0x370e0d);const _0x13c612=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']=_0x58e7df,this['nextButtonView']=this['_createNextButtonView'](),this['previousButtonView']=this['_createPreviousButtonView'](),this['_streamableContentView']=new AISuggestionStreamableContentView(_0x370e0d),this['_partToolbarView']=new AISuggestionContentPartToolbarView(_0x370e0d,_0x58e7df['availableActions']),this['_partToolbarView']['delegate']('applySuggestion','insertSuggestion','rejectSuggestion')['to'](this),this['_togglePartToolbarButtonsVisibility'](_0x58e7df),this['_stateView']=new AISuggestionContentPartStateView(_0x370e0d),this['_stateView']['isVisible']=!0x1,this['_miniToolbarView']=new AIMiniToolbarView(_0x370e0d,{'showChanges':'full'}),this['_miniToolbarView']['bind']('isShowChangesOn')['to'](this,'showDiff'),this['_miniToolbarView']['on']('toggleShowChanges',()=>{this['fire']('toggleSuggestionDisplayMode');}),this['_toolbarContainerView']=new AIChatBalloonToolbarContainerView(_0x370e0d,[this['_partToolbarView'],this['_stateView'],this['_miniToolbarView']]),this['children']=this['createCollection']([this['_streamableContentView'],this['_toolbarContainerView']]),this['on']('change:_state',(_0x2c44a2,_0x211a1e,_0xb977f3,_0x311bab)=>{let _0xa21d53,_0x33f81d;'pending'===_0x311bab?(_0xa21d53=this['_partToolbarView'],_0x33f81d=this['_stateView']):(_0xa21d53=this['_stateView'],_0x33f81d=this['_partToolbarView']),this['_stateView']['setState'](_0xb977f3),_0xa21d53['isVisible']=!0x1,_0x33f81d['isVisible']=!0x0;}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-balloon-main',_0x13c612['to']('_state',_0x52b66f=>'ck-ai-chat-balloon-main_state_'+_0x52b66f)]},'children':this['children']}),this['on']('change:isTrackChangesOn',()=>{this['_togglePartToolbarButtonsVisibility'](_0x58e7df);});}['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'](_0x6c2ee4){_0x6c2ee4?.['keepErrors']||this['hideError'](),await this['_streamableContentView']['update'](_0x6c2ee4);}['setState'](_0x324969){this['_state']=_0x324969;}['showError'](_0x3af12b){super['showError'](_0x3af12b),this['children']['has'](this['_errorView'])||this['children']['add'](this['_errorView'],0x0);}['hideError'](){this['_isErrorVisible']&&(super['hideError'](),this['togglePartToolbarEnabled'](!0x0));}['showBlockingError'](_0x41bdbd){super['showBlockingError'](_0x41bdbd),this['togglePartToolbarEnabled'](!0x1);}['toggleRotatorButtonsVisibility'](_0x287d32){this['nextButtonView']['isVisible']=this['previousButtonView']['isVisible']=_0x287d32;}['togglePartToolbarEnabled'](_0x2c2f1f){this['_partToolbarView']['isEnabled']=_0x2c2f1f;}['_togglePartToolbarButtonsVisibility']({showApplyButton:_0x23e4c2,showSuggestButton:_0x5a2515}){_0x23e4c2=_0x23e4c2&&!this['isTrackChangesOn']&&this['_config']['availableActions']['includes']('applySuggestion'),_0x5a2515=_0x5a2515&&this['_config']['availableActions']['includes']('insertSuggestion'),this['_partToolbarView']['setButtonsVisibility']({'showApplyButton':_0x23e4c2,'showSuggestButton':_0x5a2515});}['_createNextButtonView'](){const _0x7876bb=new ButtonView(this['locale']);return _0x7876bb['set']({'icon':IconChevronDown,'label':getTranslation$i(this['locale'],'AI_BALLOON_NEXT_LABEL'),'isVisible':!0x0}),_0x7876bb['on']('execute',()=>{this['fire']('showNext');}),_0x7876bb;}['_createPreviousButtonView'](){const _0xad27ab=new ButtonView(this['locale']);return _0xad27ab['set']({'icon':IconChevronUp,'label':getTranslation$i(this['locale'],'AI_BALLOON_PREVIOUS_LABEL'),'isVisible':!0x0}),_0xad27ab['on']('execute',()=>{this['fire']('showPrevious');}),_0xad27ab;}}class AIChatBalloonToolbarContainerView extends View{constructor(_0x503373,_0x1f469e){super(_0x503373),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-balloon__toolbar-container']},'children':_0x1f469e});}}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(_0x8d9bb6){super(_0x8d9bb6),this['set']('showDiff',!0x1);}['open'](_0x45a00b){const _0x2dc025=this['editor'];this['_chatBalloonView']||(this['_chatBalloonView']=this['_createChatBalloonView']()),_0x2dc025['plugins']['get']('AIBalloon')['open']({..._0x45a00b,'id':'aiChatBalloon','class':'ck-ai-chat-balloon','mainView':this['_chatBalloonView']}),this['_toggleRotatorButtonsInDialogHeader'](_0x45a00b['showRotator']),this['_chatBalloonView']['togglePartToolbarEnabled'](!_0x45a00b['areActionsDisabled']),this['_restoreDefaultViewFocus']();}['close'](){this['editor']['plugins']['get']('AIBalloon')['close']();}['updateContent'](_0x108e83){return this['_chatBalloonView']||(this['_chatBalloonView']=this['_createChatBalloonView']()),this['_chatBalloonView']['updateContent'](_0x108e83);}['setState'](_0x624f4c){this['_chatBalloonView']&&this['_chatBalloonView']['setState'](_0x624f4c);}['_createChatBalloonView'](){const _0x2aee88=this['editor'],_0x3c5261=_0x2aee88['plugins']['get']('AIBalloon'),_0x29c743=_0x2aee88['commands']['get']('trackChanges');let _0x4efd28=_0x2aee88['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];_0x2aee88['plugins']['has']('TrackChanges')||(_0x4efd28=_0x4efd28['filter'](_0x2226e1=>'insertSuggestion'!=_0x2226e1));const _0x258c7d=new AIChatBalloonView(_0x2aee88['locale'],{'availableActions':_0x4efd28,'showApplyButton':!0x0,'showSuggestButton':!!_0x29c743});return _0x258c7d['bind']('showDiff')['to'](this),_0x258c7d['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),_0x258c7d['delegate']('showPrevious','showNext')['to'](this),_0x3c5261['delegate']('dialogClosed')['to'](this),_0x258c7d['on']('applySuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x258c7d['on']('insertSuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x258c7d['on']('rejectSuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x29c743&&_0x258c7d['bind']('isTrackChangesOn')['to'](_0x29c743,'value'),_0x258c7d['render'](),_0x258c7d;}['_toggleRotatorButtonsInDialogHeader'](_0x3c317a){const _0x1d26c9=this['editor'],_0x6aed75=_0x1d26c9['plugins']['get']('Dialog')['view']['headerView']['children'];this['_chatBalloonView']['toggleRotatorButtonsVisibility'](_0x3c317a),_0x6aed75['has'](this['_chatBalloonView']['previousButtonView'])||(_0x6aed75['addMany']([this['_chatBalloonView']['previousButtonView'],this['_chatBalloonView']['nextButtonView']],0x0),_0x1d26c9['plugins']['get']('AIBalloon')['once']('beforeDialogClosed',()=>{_0x6aed75['remove'](this['_chatBalloonView']['previousButtonView']),_0x6aed75['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(_0x5bfabf){const {editor:_0xef6ac3,action:_0x3dd8f5,withText:_0x204059=!0x1,withIcon:_0x35c026=!0x0,isInDropdown:_0x468c79=!0x0,shouldPreventFocus:_0x361678=!0x1}=_0x5bfabf;return()=>{const _0x1e89af=_0xef6ac3['locale'],_0x2b15eb=new ButtonView(_0x1e89af),_0x2633c0=_0x2b15eb['bindTemplate'];_0x468c79&&_0x2b15eb['extendTemplate']({'on':{'mouseenter':_0x2633c0['to'](()=>{_0x361678&&_0x361678()||_0x2b15eb['focus']();})}});const _0x2ef970=_0x3dd8f5['icon']??_0x3dd8f5['parent']?.['icon'];return _0x2b15eb['set']({'label':_0x3dd8f5['label'],'withText':_0x204059,'role':'menuitem','icon':_0x35c026?_0x2ef970??IconAIQuickActions:void 0x0,'tooltip':!_0x204059,'class':'ck-ai-quick-actions-button','isEnabled':_0x3dd8f5['isEnabled']}),_0x2b15eb['on']('execute',()=>{_0xef6ac3['editing']['view']['focus'](),_0xef6ac3['commands']['execute']('aiQuickAction',_0x3dd8f5);}),_0x2b15eb;};}class DropdownMenuButtonWithHighlightView extends ListItemButtonView{['arrowView'];constructor(_0x4b1dba,_0x1a6522){super(_0x4b1dba,_0x1a6522);const _0x2516f8=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',_0x13862b=>String(_0x13862b)),'data-cke-tooltip-disabled':_0x2516f8['to']('isOn')},'on':{'mouseenter':_0x2516f8['to']('mouseenter')}});}['render'](){super['render'](),this['children']['add'](this['arrowView']);}['_createArrowView'](){const _0x414e5=new IconView();return _0x414e5['content']=IconDropdownArrow,_0x414e5['extendTemplate']({'attributes':{'class':'ck-dropdown-menu-list__nested-menu__button__arrow'}}),_0x414e5;}}class AIQuickActionsFilteredListView extends ListView{['_allListItems'];['_allSearchableItems'];constructor(_0x2f4d84,_0x2a8f1a,_0x4675be){super(_0x2f4d84),this['_allListItems']=_0x2a8f1a,this['_allSearchableItems']=_0x4675be;}['filter'](_0x53c9c0){if(!_0x53c9c0)return this['items']['clear'](),this['items']['addMany'](this['_allListItems']),this['_clearHighlight'](),{'resultsCount':this['_allListItems']['length'],'totalItemsCount':this['_allListItems']['length']};const _0xb1c16f=_0x53c9c0['source']['toLowerCase']()['trim'](),_0x458206=this['_allSearchableItems']['filter'](_0x2a3865=>(_0x2a3865['groupLabel']?_0x2a3865['label']+'\x20('+_0x2a3865['groupLabel']+')':_0x2a3865['label'])['toLowerCase']()['includes'](_0xb1c16f));return this['items']['clear'](),this['items']['addMany'](_0x458206['sort']((_0x2d7fb2,_0x42d6f9)=>{const _0x57604e=_0x2d7fb2['groupLabel'],_0x48e267=_0x42d6f9['groupLabel'];return _0x57604e||_0x48e267?_0x57604e?0x1:-0x1:0x0;})['map'](_0x3ee553=>_0x3ee553['item'])),this['_highlightQuery'](_0xb1c16f,_0x458206),{'resultsCount':_0x458206['length'],'totalItemsCount':this['_allSearchableItems']['length']};}['_highlightQuery'](_0x3fab3a,_0x4bdfd3){if(!_0x3fab3a)return;const _0x19d092=new RegExp(escapeRegExp$1(_0x3fab3a),'gi');_0x4bdfd3['forEach'](_0x2a5cb6=>{_0x2a5cb6['highlightViews']&&_0x2a5cb6['highlightViews']['forEach'](_0x19977f=>{'function'==typeof _0x19977f['highlightText']&&_0x19977f['highlightText'](_0x19d092);});});}['_clearHighlight'](){this['_allSearchableItems']['forEach'](_0x187b27=>{_0x187b27['highlightViews']&&_0x187b27['highlightViews']['forEach'](_0x31c18a=>{'function'==typeof _0x31c18a['highlightText']&&_0x31c18a['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(_0x2d1c8c,_0x2f4ab9,_0x2def1d,_0x556de4,_0x2c216a=!0x1){const _0x3fc472=_0x2d1c8c['locale'];super(_0x3fc472),this['_bodyCollection']=_0x556de4,this['_hasSearch']=_0x2c216a;const _0x12c44c=this['_createListItems'](_0x2d1c8c,_0x2f4ab9,_0x2def1d);this['optionsListView']=new AIQuickActionsFilteredListView(_0x3fc472,_0x12c44c,this['_allSearchableItems']),this['optionsListView']['role']=UI_ROLES['MENU'],this['optionsListView']['items']['addMany'](_0x12c44c),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),_0x2c216a&&(this['_searchTextView']=this['_createSearchTextView']()),this['_focusables']=_0x12c44c,this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes']}),_0x2c216a&&this['_searchTextView']&&this['focusCycler']['chain'](this['_searchTextView']['focusCycler']);const _0x3ca140=_0x2c216a&&this['_searchTextView']?[this['_searchTextView']]:[this['optionsListView']];this['children']=new ViewCollection(_0x3ca140),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions','ck-rounded-corners'],'dir':_0x3fc472['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 _0x63e659=this['_searchTextView']['queryView']['fieldView']['element']['ownerDocument']?.['activeElement'];return this['_searchTextView']['queryView']['fieldView']['element']['contains'](_0x63e659);}['_createListItems'](_0x146d35,_0x3b5a0e,_0x4f31ea){const _0x15e186=new ViewCollection();return _0x3b5a0e['forEach'](_0x2840df=>{if('actions'in _0x2840df){const {listItem:_0x5a9b39}=this['_createActionGroupButton'](_0x146d35,_0x2840df,_0x4f31ea);_0x15e186['add'](_0x5a9b39),_0x2840df['actions']['forEach'](_0x1306bc=>{this['_createActionButton'](_0x146d35,_0x1306bc,_0x2840df['label'],_0x2840df['icon']);const {listItem:_0x3035bc,highlightViews:_0x40e53b}=this['_createSearchResultActionButton'](_0x146d35,_0x1306bc,_0x2840df['label'],_0x2840df['icon']);this['_allSearchableItems']['push']({'item':_0x3035bc,'label':_0x1306bc['label'],'groupLabel':_0x2840df['label'],'highlightViews':_0x40e53b});});}else{const {listItem:_0x52c6f9}=this['_createActionButton'](_0x146d35,_0x2840df);_0x15e186['add'](_0x52c6f9);const _0x9aed36=_0x52c6f9['children']['first'];if(_0x9aed36){const {listItem:_0x278967,highlightViews:_0x3921c5}=this['_createSearchResultActionButton'](_0x146d35,_0x2840df);this['_allSearchableItems']['push']({'item':_0x278967,'label':_0x9aed36['label']||'','highlightViews':_0x3921c5});}}}),_0x15e186;}['_createActionButton'](_0x3fc404,_0x41f5fc,_0x4bbbc8,_0x19172c){const _0xe662a4=new ListItemView(this['locale']);if(_0x4bbbc8&&_0x19172c){const _0x5836e4=new ButtonView(this['locale']),_0x5d8c42=_0x5836e4['bindTemplate'],_0x3620b6=new HighlightedTextView();_0x3620b6['text']=_0x41f5fc['label'];const _0x16483c=new HighlightedTextView();_0x16483c['text']=_0x4bbbc8;const _0x4a4afa=new IconView();_0x4a4afa['content']=_0x19172c,_0x4a4afa['extendTemplate']({'attributes':{'class':'ck-ai-quick-actions-button__group-icon'}});const _0x2e9efb=new View(this['locale']);_0x2e9efb['setTemplate']({'tag':'span','attributes':{'class':'ck-ai-quick-actions-button_with-group__open-paren'},'children':[{'text':'\x20('}]});const _0x4c606f=new View(this['locale']);return _0x4c606f['setTemplate']({'tag':'span','attributes':{'class':'ck-ai-quick-actions-button_with-group__close-paren'},'children':[{'text':')'}]}),_0x5836e4['set']({'label':_0x41f5fc['label']+'\x20('+_0x4bbbc8+')','withText':!0x0,'role':'menuitem','class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-button_with-group','tooltip':!0x1}),_0x5836e4['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':[_0x3620b6,_0x2e9efb,_0x4a4afa,_0x16483c,_0x4c606f],'on':{'mouseenter':_0x5d8c42['to'](()=>{this['_isSearchFocused']()||_0x5836e4['focus']();}),'click':_0x5d8c42['to'](()=>{_0x5836e4['fire']('execute');})}}),_0x5836e4['on']('execute',()=>{_0x3fc404['editing']['view']['focus'](),_0x3fc404['commands']['execute']('aiQuickAction',_0x41f5fc);}),_0xe662a4['children']['add'](_0x5836e4),{'listItem':_0xe662a4,'highlightViews':[_0x3620b6,_0x16483c]};}{const _0x5b13ad=new ButtonLabelWithHighlightView(),_0x16238a=new ButtonView(this['locale'],_0x5b13ad),_0x3e8407=_0x16238a['bindTemplate'],_0x118c54=_0x41f5fc['icon']??_0x41f5fc['parent']?.['icon'],_0x3cca3d=void 0x0!==_0x41f5fc['icon'];return _0x16238a['set']({'label':_0x41f5fc['label'],'withText':!0x0,'role':'menuitem','icon':_0x3cca3d?_0x118c54??IconAIQuickActions:void 0x0,'tooltip':!0x1,'class':'ck-ai-quick-actions-button'}),_0x16238a['extendTemplate']({'on':{'mouseenter':_0x3e8407['to'](()=>{this['_isSearchFocused']()||_0x16238a['focus']();})}}),_0x16238a['on']('execute',()=>{_0x3fc404['editing']['view']['focus'](),_0x3fc404['commands']['execute']('aiQuickAction',_0x41f5fc);}),_0xe662a4['children']['add'](_0x16238a),{'listItem':_0xe662a4,'highlightViews':[_0x5b13ad]};}}['_createSearchResultActionButton'](_0x5abb91,_0x216d29,_0x3ebaec,_0x22ccfd){return _0x3ebaec&&_0x22ccfd?this['_createSearchResultGroupedActionButton'](_0x5abb91,_0x216d29,_0x3ebaec,_0x22ccfd):this['_createSearchResultIndividualActionButton'](_0x5abb91,_0x216d29);}['_createSearchResultGroupedActionButton'](_0x486278,_0x145aea,_0x5ae945,_0x313ebd){const _0x4e7bbc=new ListItemView(this['locale']),_0x51e702=new ButtonView(this['locale']),_0x1c31bf=_0x51e702['bindTemplate'],{view:_0x2b9b52,highlightView:_0x10a3a3}=this['_createSearchResultGroupRow'](_0x5ae945,_0x313ebd),{view:_0x190458,highlightView:_0x3f5ca3}=this['_createSearchResultActionRow'](_0x145aea['label']),_0x4c33b8=this['_createSearchResultContentView'](_0x2b9b52,_0x190458);return _0x51e702['set']({'label':_0x145aea['label'],'withText':!0x0,'role':'menuitem','class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button\x20ck-ai-quick-actions-search-result-button_with-group','tooltip':!0x1}),_0x51e702['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':[_0x4c33b8],'on':{'mouseenter':_0x1c31bf['to'](()=>{this['_isSearchFocused']()||_0x51e702['focus']();}),'click':_0x1c31bf['to'](()=>{this['_handleSearchResultButtonClick'](_0x51e702);})}}),this['_setupActionButtonExecution'](_0x51e702,_0x486278,_0x145aea),_0x4e7bbc['children']['add'](_0x51e702),{'listItem':_0x4e7bbc,'highlightViews':[_0x10a3a3,_0x3f5ca3]};}['_createSearchResultIndividualActionButton'](_0x485cd4,_0x2ae417){const _0x374361=new ListItemView(this['locale']),_0x438d9e=new ButtonLabelWithHighlightView(),_0x167507=new ButtonView(this['locale'],_0x438d9e),_0x4654e4=_0x167507['bindTemplate'];return _0x167507['set']({'label':_0x2ae417['label'],'withText':!0x0,'role':'menuitem','icon':void 0x0,'tooltip':!0x1,'class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button'}),_0x167507['extendTemplate']({'on':{'mouseenter':_0x4654e4['to'](()=>{this['_isSearchFocused']()||_0x167507['focus']();})}}),this['_setupActionButtonExecution'](_0x167507,_0x485cd4,_0x2ae417),_0x374361['children']['add'](_0x167507),{'listItem':_0x374361,'highlightViews':[_0x438d9e]};}['_createSearchResultGroupRow'](_0x5f8651,_0x308c68){const _0x1e60df=new View(this['locale']),_0x16d7df=new IconView();_0x16d7df['content']=_0x308c68,_0x16d7df['extendTemplate']({'attributes':{'class':'ck-ai-quick-actions-button__group-icon'}});const _0x307c4a=new HighlightedTextView();return _0x307c4a['text']=_0x5f8651,_0x1e60df['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__group-row'},'children':[_0x16d7df,_0x307c4a]}),{'view':_0x1e60df,'highlightView':_0x307c4a};}['_createSearchResultActionRow'](_0x282dc3){const _0x9f2004=new View(this['locale']),_0x3327eb=new HighlightedTextView();return _0x3327eb['text']=_0x282dc3,_0x9f2004['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__action-row'},'children':[_0x3327eb]}),{'view':_0x9f2004,'highlightView':_0x3327eb};}['_createSearchResultContentView'](_0x38cc59,_0x4042b0){const _0x28e350=new View(this['locale']);return _0x28e350['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__content'},'children':[_0x38cc59,_0x4042b0]}),_0x28e350;}['_setupActionButtonExecution'](_0x2f322d,_0x902cff,_0x5d7c47){_0x2f322d['on']('execute',()=>{_0x902cff['editing']['view']['focus'](),_0x902cff['commands']['execute']('aiQuickAction',_0x5d7c47);});}['_createActionGroupButton'](_0x4b5bd3,_0x470812,_0x15d4dc){const _0x211fe0=new ListItemView(this['locale']),_0x12c5df=new ButtonLabelWithHighlightView(),_0x2ec3f8=new DropdownMenuButtonWithHighlightView(this['locale'],_0x12c5df),_0x796d8b=_0x2ec3f8['bindTemplate'],_0x313d10=this['_getPanelKeystroke'](_0x15d4dc),_0x2a58b5=this['_createGroupActionsList'](_0x4b5bd3,_0x470812['actions'],_0x15d4dc);_0x2ec3f8['set']({'label':_0x470812['label'],'withText':!0x0,'role':UI_ROLES['MENU_ITEM'],'icon':_0x470812['icon']??IconAIQuickActions,'isEnabled':_0x470812['actions']['some'](_0x54a66b=>_0x54a66b['isEnabled'])}),_0x2ec3f8['extendTemplate']({'on':{'mouseenter':_0x796d8b['to'](()=>{this['_isSearchFocused']()||_0x2ec3f8['focus']();})}});const _0x4c73b9=new BalloonPanelView(this['locale']);return _0x4c73b9['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-panel','ck-dropdown-menu__nested-menu__panel']},'on':{'keydown':_0x796d8b['to'](_0x1e1231=>{this['_handlePanelKeydown'](_0x1e1231,_0x313d10,_0x2ec3f8,_0x4c73b9);})}}),_0x2ec3f8['bind']('isOn')['to'](_0x4c73b9,'isVisible'),this['_bodyCollection']['add'](_0x4c73b9),_0x4c73b9['content']['add'](_0x2a58b5),this['_setupGroupMenuBehavior'](_0x2ec3f8,_0x4c73b9),_0x211fe0['children']['add'](_0x2ec3f8),{'listItem':_0x211fe0,'highlightView':_0x12c5df};}['_createGroupActionsList'](_0x577a91,_0x5ed065,_0x365174){const _0x2bba75=new ListView(this['locale']);return _0x2bba75['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-list','ck-dropdown-menu-list']}}),_0x5ed065['forEach'](_0xe6f745=>{const _0x259790=new ListItemView(this['locale']),_0x34d692=aiQuickActionsButtonCreator({'editor':_0x577a91,'action':_0xe6f745,'withText':!0x0,'withIcon':!0x1,'isInDropdown':!0x0,'shouldPreventFocus':()=>this['_isSearchFocused']()})();_0x259790['children']['add'](_0x34d692),_0x365174['focusTracker']['add'](_0x34d692),_0x2bba75['items']['add'](_0x259790);}),_0x2bba75;}['_setupGroupMenuBehavior'](_0x351147,_0x86180){const _0x29574a=_0x351147['bindTemplate'],_0x2b2596=this['_getButtonKeystroke'](_0x351147);_0x351147['extendTemplate']({'attributes':{'class':['ck-ai-quick-actions-group-button']},'on':{'mouseenter':_0x29574a['to'](()=>{this['_showNestedPanel'](_0x86180,_0x351147);}),'mouseleave':_0x29574a['to'](_0x10bdcd=>{const _0x5ece29=_0x10bdcd['relatedTarget'];this['_isMovingToNestedMenu'](_0x5ece29,_0x86180)||this['_hideNestedPanel'](_0x86180);}),'keydown':_0x29574a['to'](_0x5002ba=>{_0x5002ba['key']==_0x2b2596&&(this['_showNestedPanel'](_0x86180,_0x351147),_0x86180['content']['get'](0x0)['focus']());})}}),_0x86180['on']('render',()=>{_0x86180['element']?.['addEventListener']('mouseleave',_0x4da991=>{const _0x3924ba=_0x4da991['relatedTarget'];_0x351147['element']?.['contains'](_0x3924ba)||this['_isMovingToNestedMenu'](_0x3924ba,_0x86180)||this['_hideNestedPanel'](_0x86180);});});}['_showNestedPanel'](_0x55ddc8,_0x5efccd){this['_openNestedPanels']['forEach'](_0x36f5db=>{_0x36f5db!==_0x55ddc8&&_0x36f5db['isVisible']&&_0x36f5db['hide']();}),_0x55ddc8['show'](),_0x55ddc8['pin']({'positions':[DropdownMenuPanelPositioningFunctions['eastSouth']],'target':_0x5efccd['element'],'fitInViewport':!0x0}),this['_openNestedPanels']['add'](_0x55ddc8);}['_hideNestedPanel'](_0x16f340){_0x16f340['hide'](),this['_openNestedPanels']['delete'](_0x16f340);}['_hideAllNestedPanels'](){this['_openNestedPanels']['forEach'](_0x583f2d=>_0x583f2d['hide']()),this['_openNestedPanels']['clear']();}['_isMovingToNestedMenu'](_0x24e1dd,_0x153a9f){if(!_0x24e1dd)return!0x1;if(_0x153a9f['element']?.['contains'](_0x24e1dd))return!0x0;const _0x3d3980=_0x24e1dd;return _0x3d3980['closest']&&(null!==_0x3d3980['closest']('.ck-ai-quick-actions-group-panel')||null!==_0x3d3980['closest']('.ck-ai-quick-actions-group-list')||null!==_0x3d3980['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'](_0x456a5e){return'rtl'===_0x456a5e['locale']['uiLanguageDirection']?'ArrowRight':'ArrowLeft';}['_getButtonKeystroke'](_0x36b566){return'rtl'===_0x36b566['locale']['uiLanguageDirection']?'ArrowLeft':'ArrowRight';}['_handlePanelKeydown'](_0x3a3e99,_0x825946,_0x15df62,_0x5b6fd9){_0x3a3e99['key']==_0x825946&&(_0x15df62['focus'](),this['_hideNestedPanel'](_0x5b6fd9));}['_handleSearchResultButtonClick'](_0x44ff53){_0x44ff53['fire']('execute');}}function aiQuickActionsDropdownCreator(_0x2e6b21){const {editor:_0x5dbe00,content:_0x2da12e,buttonDefinition:_0x4d8139,bodyCollection:_0x3bf4b2,hasSearch:_0x3c9520=!0x1}=_0x2e6b21;return()=>{const _0x2736a7=_0x5dbe00['locale'],_0x1f871d=createDropdown(_0x2736a7);_0x1f871d['buttonView']['set']({'icon':_0x4d8139['icon']??IconAIQuickActions,'label':_0x4d8139['label'],'tooltip':!0x0}),_0x1f871d['set']({'class':'ck-ai-quick-actions-dropdown'});const _0x1e1905=new AIQuickActionsDropdownContentView(_0x5dbe00,_0x2da12e,_0x1f871d,_0x3bf4b2,_0x3c9520);return _0x1f871d['panelView']['children']['add'](_0x1e1905),_0x3c9520&&_0x1f871d['on']('change:isOpen',(_0x3a6b2f,_0x165d84,_0x2dc515)=>{if(_0x2dc515){if(_0x5dbe00['plugins']['has']('AIEditing')){const _0x38229b=_0x5dbe00['plugins']['get'](AIEditing),_0x57cae9=_0x5dbe00['model']['document']['selection'],_0x738c7a=Array['from'](_0x57cae9['getRanges']());_0x738c7a['length']>0x0&&_0x38229b['showFakeVisualSelection']({'ranges':_0x738c7a,'id':'quick-action','priority':0x14});}}else _0x5dbe00['plugins']['has']('AIEditing')&&_0x5dbe00['plugins']['get'](AIEditing)['hideFakeVisualSelection']('quick-action'),_0x1e1905['resetSearch']();}),_0x1f871d;};}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>',AIQuickActionTypeToPluginName=/* #__PURE__ -- @preserve */
((()=>({'chat':'AIChat','action':'AIActions'}))());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 _0xbd2e4b=await this['_getDefaultAndCustomActions']();this['_prepareQuickActionsDefinition'](_0xbd2e4b),this['_initializeQuickActionsComponentsAndCommands']();}static['getDefaultQuickActions'](_0xd26e95){return getDefaultQuickActions(_0xd26e95);}async['_getDefaultAndCustomActions'](){const _0x2774a2=AIQuickActionsUI['getDefaultQuickActions'](this['editor']['locale']),_0x5c4b65=this['editor']['config']['get']('ai.quickActions.extraCommands')||[];let _0x476dd3=[];try{_0x476dd3=await new AIModels({'connector':this['editor']['plugins']['get']('AIConnector'),'locale':this['editor']['locale']})['getAll']();}catch(_0x427077){const _0x175931=new CKEditorError('ai-quick-actions-models-unable-to-retrieve',this,{'error':_0x427077});logError(_0x175931['message']);}finally{const _0x425b64=_0x5c4b65['map'](_0x415ea8=>({..._0x415ea8,'type':'chat'===_0x415ea8['type']?'chat':'action','icon':void 0x0})),_0x3d7f0d=_0x2774a2['find'](_0x50c105=>'other'===_0x50c105['id']);_0x3d7f0d['actions']['push'](..._0x425b64),_0x2774a2['forEach'](_0x337956=>{if('actions'in _0x337956)_0x337956['actions']['forEach'](_0x17d7b2=>{if(_0x17d7b2['isEnabled']=!!_0x476dd3['find'](_0x4012b9=>_0x4012b9['id']===_0x17d7b2['model'])||void 0x0===_0x17d7b2['model'],!_0x17d7b2['isEnabled']){const _0x21047f=new CKEditorError('ai-quick-actions-unavailable-model',this,{'actionId':_0x17d7b2['id'],'modelId':_0x17d7b2['model']});logError(_0x21047f['message']);}});else{if(_0x337956['isEnabled']=!!_0x476dd3['find'](_0x2eb859=>_0x2eb859['id']===_0x337956['model'])||void 0x0===_0x337956['model'],!_0x337956['isEnabled']){const _0x4d6dec=new CKEditorError('ai-quick-actions-unavailable-model',this,{'actionId':_0x337956['id'],'modelId':_0x337956['model']});logError(_0x4d6dec['message']);}}});}return _0x2774a2;}['_initializeQuickActionsComponentsAndCommands'](){const _0x543a80=new BodyCollection(this['editor']['locale']);_0x543a80['attachToDom'](),this['_initializeQuickActionsDropdown'](_0x543a80),this['_initializeQuickActionsMenuBar'](),this['_initializeQuickActionsComponents'](_0x543a80);}['_initializeQuickActionsDropdown'](_0x5ef4f6){const _0x3afd3f=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':_0x5ef4f6,'hasSearch':_0x3afd3f}));}['_prepareQuickActionsDefinition'](_0x89c00f){this['_quickActionsDefinition']=_0x89c00f['map'](_0x419844=>{if('actions'in _0x419844){const _0x3bcca2=_0x419844;return{..._0x3bcca2,'actions':_0x3bcca2['actions']['map'](_0x66053d=>{const {actions:_0x1f6b6b,..._0xe1107e}=_0x3bcca2;return{..._0x66053d,'parent':_0xe1107e};})['filter'](_0xe36979=>this['_shouldIncludeAction'](_0xe36979))};}return _0x419844;})['filter'](_0x56fb89=>'actions'in _0x56fb89?_0x56fb89['actions']['length']>0x0:this['_shouldIncludeAction'](_0x56fb89));}['_shouldIncludeAction'](_0x2ebf14){const _0x51916c=this['editor']['config']['get']('ai.quickActions.removeCommands')||[];return this['editor']['plugins']['has'](AIQuickActionTypeToPluginName[_0x2ebf14['type']])&&!_0x51916c['includes'](_0x2ebf14['id'])&&!('chat'===_0x2ebf14['type']&&!0x1===this['editor']['config']['get']('ai.chat.context.document.enabled'));}['_initializeQuickActionsComponents'](_0x18401c){this['_quickActionsDefinition']['forEach'](_0x481a5f=>{if('actions'in _0x481a5f){const _0x2ce602=aiQuickActionsDropdownCreator({'editor':this['editor'],'content':_0x481a5f['actions'],'buttonDefinition':_0x481a5f,'bodyCollection':_0x18401c});this['editor']['ui']['componentFactory']['add'](_0x481a5f['id'],_0x2ce602),_0x481a5f['actions']['forEach'](_0x3ba58d=>{const _0x349c7e=aiQuickActionsButtonCreator({'editor':this['editor'],'action':_0x3ba58d});this['editor']['ui']['componentFactory']['add'](_0x3ba58d['id'],_0x349c7e);});}else{const _0x26dec4=aiQuickActionsButtonCreator({'editor':this['editor'],'action':_0x481a5f,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this['editor']['ui']['componentFactory']['add'](_0x481a5f['id'],_0x26dec4);}});}['_initializeQuickActionsMenuBar'](){this['editor']['ui']['componentFactory']['add']('menuBar:aiQuickActions',_0x526d2c=>{const _0x355db2=new MenuBarMenuView(_0x526d2c),_0x63ffcf=getTranslation$i(_0x526d2c,'AI_QUICK_ACTIONS_HEADING');_0x355db2['buttonView']['set']({'label':_0x63ffcf,'icon':IconAIQuickActions});const _0x53e23b=new MenuBarMenuListView(_0x526d2c);_0x53e23b['set']({'ariaLabel':_0x63ffcf,'role':'menu'}),this['_quickActionsDefinition']['forEach'](_0x7606d9=>{if('actions'in _0x7606d9){const _0x4d9bef=_0x7606d9,_0x507c08=new MenuBarMenuListItemView(_0x526d2c,_0x355db2),_0x124620=new MenuBarMenuView(_0x526d2c),_0x30c5ba=new MenuBarMenuListView(_0x526d2c);_0x124620['buttonView']['set']({'label':_0x4d9bef['label'],'icon':_0x4d9bef['icon']}),_0x4d9bef['actions']['forEach'](_0x2051d6=>{const _0x228a4a=new MenuBarMenuListItemView(_0x526d2c,_0x124620),_0x57355e=new MenuBarMenuListItemButtonView(_0x526d2c);_0x57355e['set']({'label':_0x2051d6['label'],'icon':_0x2051d6['icon'],'role':'menuitem','isEnabled':_0x2051d6['isEnabled']}),_0x57355e['on']('execute',()=>{this['_executeQuickAction'](_0x2051d6);}),_0x57355e['delegate']('execute')['to'](_0x124620),_0x228a4a['children']['add'](_0x57355e),_0x30c5ba['items']['add'](_0x228a4a);}),_0x124620['panelView']['children']['add'](_0x30c5ba),_0x507c08['children']['add'](_0x124620),_0x53e23b['items']['add'](_0x507c08);}else{const _0x148627=_0x7606d9,_0x3e6a6d=new MenuBarMenuListItemView(_0x526d2c,_0x355db2),_0xd8bb19=new MenuBarMenuListItemButtonView(_0x526d2c);_0xd8bb19['set']({'label':_0x148627['label'],'icon':_0x148627['icon'],'role':'menuitem','isEnabled':_0x148627['isEnabled']}),_0xd8bb19['on']('execute',()=>{this['_executeQuickAction'](_0x148627);}),_0xd8bb19['delegate']('execute')['to'](_0x355db2),_0x3e6a6d['children']['add'](_0xd8bb19),_0x53e23b['items']['add'](_0x3e6a6d);}});const _0x1fd396=Object['values'](AIQuickActionTypeToPluginName)['some'](_0x21062b=>this['editor']['plugins']['has'](_0x21062b));return _0x355db2['set']({'isEnabled':_0x1fd396}),_0x355db2['panelView']['children']['add'](_0x53e23b),_0x355db2;});}['_executeQuickAction'](_0x212b65){const _0x3ab3c4=this['editor'];_0x3ab3c4['editing']['view']['focus'](),_0x3ab3c4['commands']['execute']('aiQuickAction',_0x212b65);const _0xa3e0b9=_0x3ab3c4['ui']['view']['menuBarView'];_0xa3e0b9&&_0xa3e0b9['close']&&_0xa3e0b9['close']();}}function getDefaultQuickActions(_0x57aa02){const _0x23782d=new Intl['DisplayNames'](['en'],{'type':'language'})['of'](_0x57aa02['uiLanguage'])||'English';return[{'id':'ask-ai','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_ASK_AI'),'type':'chat','icon':IconAIChatCommands},{'id':'chat-commands','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_CHAT_COMMANDS'),'icon':IconAIChatCommands,'actions':[{'id':'explain','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_EXPLAIN'),'displayedPrompt':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_EXPLAIN'),'prompt':AI_QUICK_ACTIONS_EXPLAIN_PROMPT['replace']('%0',_0x23782d),'type':'chat'},{'id':'summarize','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_SUMMARIZE'),'displayedPrompt':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_SUMMARIZE'),'prompt':AI_QUICK_ACTIONS_SUMMARIZE_PROMPT['replace']('%0',_0x23782d),'type':'chat'},{'id':'highlight-key-points','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS'),'displayedPrompt':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS'),'prompt':AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS_PROMPT['replace']('%0',_0x23782d),'type':'chat'}]},{'id':'improve-writing','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_IMPROVE_WRITING'),'type':'action','icon':IconAIImproveWriting},{'id':'continue','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_CONTINUE_WRITING'),'type':'action','icon':IconAIContinueWriting},{'id':'fix-grammar','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING'),'type':'action','icon':IconAIGrammarCheck},{'id':'adjust-length','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_ADJUST_LENGTH'),'icon':IconAIAdjustLength,'actions':[{'id':'make-shorter','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_MAKE_SHORTER'),'type':'action'},{'id':'make-longer','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_MAKE_LONGER'),'type':'action'}]},{'id':'change-tone','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_CHANGE_TONE'),'icon':IconAIChangeTone,'actions':[{'id':'make-tone-casual','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_MORE_CASUAL'),'type':'action'},{'id':'make-tone-direct','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_MORE_DIRECT'),'type':'action'},{'id':'make-tone-friendly','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_MORE_FRIENDLY'),'type':'action'},{'id':'make-tone-confident','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_MORE_CONFIDENT'),'type':'action'},{'id':'make-tone-professional','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_MORE_PROFESSIONAL'),'type':'action'}]},{'id':'translate','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_TRANSLATE'),'icon':IconAITranslate,'actions':[{'id':'translate-to-english','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH'),'type':'action','actionName':'translate','args':{'language':'english'}},{'id':'translate-to-chinese','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_TRANSLATE_CHINESE'),'type':'action','actionName':'translate','args':{'language':'chinese'}},{'id':'translate-to-spanish','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_TRANSLATE_SPANISH'),'type':'action','actionName':'translate','args':{'language':'spanish'}},{'id':'translate-to-german','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_TRANSLATE_GERMAN'),'type':'action','actionName':'translate','args':{'language':'german'}},{'id':'translate-to-french','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_TRANSLATE_FRENCH'),'type':'action','actionName':'translate','args':{'language':'french'}},{'id':'translate-to-japanese','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE'),'type':'action','actionName':'translate','args':{'language':'japanese'}},{'id':'translate-to-portuguese','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE'),'type':'action','actionName':'translate','args':{'language':'portuguese'}},{'id':'translate-to-korean','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_TRANSLATE_KOREAN'),'type':'action','actionName':'translate','args':{'language':'korean'}},{'id':'translate-to-italian','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN'),'type':'action','actionName':'translate','args':{'language':'italian'}},{'id':'translate-to-russian','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN'),'type':'action','actionName':'translate','args':{'language':'russian'}}]},{'id':'other','label':getTranslation$i(_0x57aa02,'AI_QUICK_ACTIONS_OTHER'),'icon':IconAIOther,'actions':[]}];}class AIQuickActionsCommand extends Command{['execute'](_0x72ab91){switch(this['_expandSelectionIfCollapsed'](),_0x72ab91['type']){case'chat':if(!this['editor']['plugins']['has']('AIChat')){const _0x308390=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIChat');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x308390});}this['_handleAIChatAction'](_0x72ab91);break;case'action':if(!this['editor']['plugins']['has']('AIActions')){const _0x26c99d=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIActions');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x26c99d});}this['_handleAIActionsAction'](_0x72ab91);}}async['_handleAIChatAction'](_0x439150){const _0x3b829f=this['editor']['plugins']['get']('AIChatController'),_0x388507=this['editor']['plugins']['get']('AITabs')['view'];if(_0x388507['isVisible']||(_0x388507['isVisible']=!0x0),'chat'!==_0x388507['activeTab']&&_0x388507['activateTab']('chat'),'ask-ai'===_0x439150['id'])_0x3b829f['removeSelectionFromChatContext'](),_0x3b829f['addSelectionToChatContext'](),_0x3b829f['focusPromptInput']();else await _0x3b829f['startConversation'](),_0x3b829f['removeSelectionFromChatContext'](),_0x3b829f['addSelectionToChatContext'](),_0x3b829f['focusPromptInput'](),await _0x3b829f['sendMessage']({'message':_0x439150['prompt']||_0x439150['displayedPrompt']||_0x439150['label'],'attributes':{'quickActionData':{'id':_0x439150['id']},'displayedPrompt':_0x439150['displayedPrompt']}});}['_expandSelectionIfCollapsed'](){const _0x3e0ecc=this['editor'],_0x245fdd=_0x3e0ecc['model']['document']['selection'];if(!_0x245fdd['isCollapsed'])return;const _0x7f6422=first(_0x245fdd['getSelectedBlocks']())||_0x3e0ecc['model']['schema']['getLimitElement'](_0x245fdd);_0x3e0ecc['model']['change'](_0x42e9bf=>{_0x42e9bf['setSelection'](_0x7f6422,'in');});}['_handleAIActionsActionLabel'](_0xd8c2b9){return _0xd8c2b9['parent']?.['label']&&'other'!==_0xd8c2b9['parent']?.['id']?_0xd8c2b9['parent']['label']+':\x20'+_0xd8c2b9['label']:_0xd8c2b9['label'];}async['_handleAIActionsAction'](_0x2c763f){const _0x312a9b=this['editor']['plugins']['get']('AIActions'),_0x10ba33=_0x2c763f['prompt']?{'userMessage':_0x2c763f['prompt'],'model':_0x2c763f['model']}:{'actionName':_0x2c763f['actionName']||_0x2c763f['id'],'args':_0x2c763f['args']},_0x126215=this['_handleAIActionsActionLabel'](_0x2c763f);await _0x312a9b['executeAction'](_0x10ba33,_0x126215,_0x2c763f['icon']);}}class AIQuickActionsEditing extends Plugin{static get['pluginName'](){return'AIQuickActionsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x303f1d=this['editor'],_0x903f73=new AIQuickActionsCommand(this['editor']);if(_0x303f1d['commands']['add']('aiQuickAction',_0x903f73),_0x303f1d['plugins']['has']('AIChat')){const _0xd37aa9=this['editor']['plugins']['get']('AIChatController');_0x303f1d['model']['document']['selection']['on']('change:range',(_0x5de619,_0x4a5c1d)=>{_0x4a5c1d['directChange']&&_0xd37aa9['removeSelectionFromChatContext']();});}}}class AIActionsReply extends AIReply{['updateChangeGroups'](){if(this['parsedMergedContent']=this['parsedContent']['cloneNode'](!0x0),0x0==this['parsedMergedContent']['childNodes']['length'])return void(this['changeGroups']=[]);const _0x360a56=diffArrays(this['documentContextContent']['children']['map'](_0x480761=>({'node':_0x480761,'id':getAttribute(_0x480761,'data-id')})),this['parsedMergedContent']['children']['map'](_0x291270=>({'node':_0x291270,'id':getAttribute(_0x291270,'data-id')||uid()})),{'comparator':(_0x31e35d,_0x40774a)=>_0x31e35d['id']==_0x40774a['id'],'oneChangePerToken':!0x0});if(!this['isDone']){for(;_0x360a56['length']&&_0x360a56[_0x360a56['length']-0x1]['removed'];)_0x360a56['pop']();}const _0x5e67b3=_0x360a56['map'](_0x3dbfe1=>{const _0x1b364a=_0x3dbfe1['added']?'new':_0x3dbfe1['removed']?'removed':'modified';return{'node':_0x3dbfe1['value'][0x0]['node'],'type':_0x1b364a,'id':_0x3dbfe1['value'][0x0]['id']};});this['changeGroups']=[{'changes':_0x5e67b3,'state':'pending','index':0x0}];}['_getDifferentChangeGroups'](_0xe08c4d,_0x316e74){return _0x316e74;}}class AIActionsInteraction extends AIInteraction{['content'];['version'];['actionName'];['args'];['userMessage'];['model'];['hasError']=!0x1;['stoppedExplicitly']=!0x1;constructor(_0xa8f43c){super(_0xa8f43c),this['content']=_0xa8f43c['content'],this['version']=_0xa8f43c['version'],this['actionName']=_0xa8f43c['actionName'],this['args']=_0xa8f43c['args'],this['userMessage']=_0xa8f43c['userMessage'],this['model']=_0xa8f43c['model'],this['on']('interactionStopped',()=>{this['stoppedExplicitly']=!0x0;});}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':'text','content':this['content'],'version':this['version'],'label':'Current\x20document','uiId':'current-document'};}['createReply'](_0x19eced){const _0x15fb89=new AIActionsReply({'editor':this['editor'],'documentContextContent':this['content'],..._0x19eced});return this['replies']['push'](_0x15fb89),_0x15fb89['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['fire']('replyCreated',_0x15fb89),_0x15fb89;}}class AIActionsBalloonToolbarView extends ToolbarView{constructor(_0x4b8be7,_0x4cb12a=!0x0,_0x3d5487=!0x0){super(_0x4b8be7),this['set']('isEnabled',!0x1),_0x4cb12a&&(this['applyButton']=this['_createButton'](getTranslation$i(_0x4b8be7,'AI_BALLOON_APPLY_BUTTON'),AI_BUTTON_CLASSES['PRIMARY']),this['applyButton']['bind']('isEnabled')['to'](this),this['items']['add'](this['applyButton'])),_0x3d5487&&(this['suggestButton']=this['_createButton'](getTranslation$i(_0x4b8be7,'AI_BALLOON_SUGGEST_BUTTON'),_0x4cb12a?AI_BUTTON_CLASSES['SECONDARY']:AI_BUTTON_CLASSES['PRIMARY']),this['suggestButton']['bind']('isEnabled')['to'](this),this['items']['add'](this['suggestButton'])),this['setButtonsVisibility']({'showApplyButton':_0x4cb12a,'showSuggestButton':_0x3d5487}),this['extendTemplate']({'attributes':{'class':['ck-ai-balloon__toolbar']}});}['setButtonsVisibility']({showApplyButton:_0x526155,showSuggestButton:_0x46dbc0}){this['applyButton']&&(this['applyButton']['isVisible']=_0x526155),this['suggestButton']&&(this['suggestButton']['isVisible']=_0x46dbc0);}['_createButton'](_0x3497a3,_0x37732e){const _0x35a88c=new ButtonView(this['locale']);return _0x35a88c['set']({'label':_0x3497a3,'class':_0x37732e,'isVisible':!0x0,'withText':!0x0}),_0x35a88c;}}class AIActionsBalloonDisclaimerView extends View{constructor(_0x1c1990){super(_0x1c1990),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(_0x1c1990,'AI_DISCLAIMER_TEXT')}]}]});}}class AISuggestionLoaderView extends View{constructor(_0x4b9457){super(_0x4b9457),this['set']('isVisible',!0x0);const _0x24c6a4=new AISpinnerView('small');_0x24c6a4['isVisible']=!0x0;const _0x130449=new View(this['locale']);_0x130449['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',_0x57b35a=>!_0x57b35a)]},'children':[_0x24c6a4,_0x130449]});}}class AIActionsBalloonView extends AIBalloonView{['focusCycler'];['_config'];['_contentWrapper'];['_streamableContentView'];['_toolbarView'];['_miniToolbarView'];['_loaderView'];['_disclaimerView'];['_focusTracker'];['_keystrokes'];['_dialogContent'];['_focusables'];['_scrollManager'];['_navigationPreviousButton'];['_navigationNextButton'];['_navigationTryAgainButton'];['_navigationCounter'];constructor(_0x31e8db,_0x2b54fc){super(_0x31e8db),this['set']('isBusy',!0x1),this['set']('isTrackChangesOn',!0x1),this['set']('_isLoading',!0x1),this['set']('_hasError',!0x1),this['_config']=_0x2b54fc,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'](_0x2b54fc),this['_addDisclaimerView'](),this['_addToolbar'](_0x2b54fc),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'](_0x2b54fc);});}['render'](){super['render']();for(const _0x5e6ef6 of this['_focusables'])this['_focusTracker']['add'](_0x5e6ef6['element']);this['_keystrokes']['listenTo'](this['element']),this['_initializeScrollManager']();}['destroy'](){super['destroy'](),this['_scrollManager']&&this['_scrollManager']['destroy']();}['focus'](_0x18c58d){-0x1===_0x18c58d?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['setIsLoading'](_0x5a2113){this['_isLoading']=_0x5a2113;}['setErrorState'](){this['_hasError']=!0x0,this['_miniToolbarView']['toggleShowChangesEnabled'](!0x1);}['clearErrorState'](){this['_hasError']=!0x1,this['_miniToolbarView']['toggleShowChangesEnabled'](!0x0);}['showError'](_0x323453){super['showError'](_0x323453),this['_dialogContent']['has'](this['_errorView'])||this['_dialogContent']['add'](this['_errorView'],0x0);}['hideError'](){super['hideError'](),this['clearErrorState']();}['showBlockingError'](_0x2edae4){super['showBlockingError'](_0x2edae4),this['setErrorState']();}['addMiniToolbarItem'](_0x59b0f2){this['_miniToolbarView']['items']['has'](_0x59b0f2)||this['_miniToolbarView']['items']['add'](_0x59b0f2);}['removeMiniToolbarItem'](_0x3688e3){this['_miniToolbarView']['items']['has'](_0x3688e3)&&this['_miniToolbarView']['items']['remove'](_0x3688e3);}['showLoader'](){this['_loaderView']&&(this['_isLoading']=!0x0);}['hideLoader'](){this['_loaderView']&&(this['_isLoading']=!0x1);}['_toggleToolbarButtonsVisibility']({showApplyButton:_0x588586,showSuggestButton:_0x46be92}){_0x588586=_0x588586&&!this['isTrackChangesOn']&&this['_config']['availableActions']['includes']('applySuggestion'),_0x46be92=_0x46be92&&this['_config']['availableActions']['includes']('insertSuggestion'),this['_toolbarView']['setButtonsVisibility']({'showApplyButton':_0x588586,'showSuggestButton':_0x46be92});}async['updateContent'](_0x19f7bd){await this['_streamableContentView']['update'](_0x19f7bd);}['clearContent'](){this['_streamableContentView']['clear']();}['_addContentWrapper'](_0x214404){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'](_0x214404['miniToolbarConfig'])]}),this['_dialogContent']['add'](this['_contentWrapper']);}['_addDisclaimerView'](){this['_disclaimerView']=new AIActionsBalloonDisclaimerView(this['locale']),this['_dialogContent']['add'](this['_disclaimerView']);}['_addToolbar']({showApplyButton:_0x337d01,showSuggestButton:_0x15241c}){this['_toolbarView']=new AIActionsBalloonToolbarView(this['locale'],_0x337d01,_0x15241c),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',(_0xe5b715,_0x592ad4,_0x1810cf)=>!(_0xe5b715||_0x592ad4||_0x1810cf)),this['_toggleToolbarButtonsVisibility']({'showApplyButton':_0x337d01,'showSuggestButton':_0x15241c}),this['_dialogContent']['add'](this['_toolbarView']);}['_createMiniToolbar'](_0x3cd503){return this['_miniToolbarView']=new AIMiniToolbarView(this['locale'],_0x3cd503),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',(_0x1f5b87,_0x404f8a)=>!(_0x1f5b87||_0x404f8a)),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 _0xb8f60f=new ButtonView(this['locale']),_0x114046=new ButtonView(this['locale']),_0x244735=new AIActionsBalloonNavigationCounterView(this['locale']),_0x3598b0=new ButtonView(this['locale']);_0xb8f60f['set']({'icon':IconRefresh,'label':getTranslation$i(this['locale'],'AI_ACTIONS_TRY_AGAIN'),'tooltip':!0x0,'class':'ck-ai-custom-action-button\x20'+AI_BUTTON_CLASSES['TERTIARY']}),_0x114046['set']({'icon':IconPreviousArrow,'tooltip':getTranslation$i(this['locale'],'AI_ACTIONS_PREVIOUS_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-previous-button\x20'+AI_BUTTON_CLASSES['TERTIARY']}),_0x3598b0['set']({'icon':IconNextArrow,'tooltip':getTranslation$i(this['locale'],'AI_ACTIONS_NEXT_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-next-button\x20'+AI_BUTTON_CLASSES['TERTIARY']}),_0xb8f60f['bind']('isEnabled')['to'](this,'isBusy',_0x482cdd=>!_0x482cdd),_0xb8f60f['on']('execute',()=>{this['fire']('tryAgain');}),_0x114046['bind']('isEnabled')['to'](this,'isBusy',_0x108090=>!_0x108090),_0x114046['on']('execute',()=>{this['fire']('showPrevious');}),_0x3598b0['bind']('isEnabled')['to'](this,'isBusy',_0x25248e=>!_0x25248e),_0x3598b0['on']('execute',()=>{this['fire']('showNext');}),this['_navigationPreviousButton']=_0x114046,this['_navigationCounter']=_0x244735,this['_navigationNextButton']=_0x3598b0,this['_navigationTryAgainButton']=_0xb8f60f;}['updateMiniToolbarButtons'](_0x4a5052,_0x1fd277){this['_navigationPreviousButton']||this['_setupMiniToolbarButtons']();const _0x15ab6b=_0x4a5052>0x1;if(this['addMiniToolbarItem'](this['_navigationTryAgainButton']),_0x15ab6b){this['addMiniToolbarItem'](this['_navigationPreviousButton']),this['addMiniToolbarItem'](this['_navigationCounter']),this['addMiniToolbarItem'](this['_navigationNextButton']);const _0x11d558=_0x4a5052-_0x1fd277;this['_navigationCounter']['setInteractionCount'](_0x11d558+'/'+_0x4a5052),this['_navigationPreviousButton']['isEnabled']=_0x1fd277<_0x4a5052-0x1,this['_navigationNextButton']['isEnabled']=_0x1fd277>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'](_0xd68372){this['_isLoading']=_0xd68372;}['resetShowChangesButton'](){this['_miniToolbarView']['isShowChangesOn']=!0x1;}['_initializeScrollManager'](){const _0x581451=this['_getScrollableElement']();_0x581451&&!this['_scrollManager']&&(this['_scrollManager']=new ScrollManager(_0x581451));}['_getScrollableElement'](){return this['_streamableContentView']['element'];}}class AIActionsBalloonNavigationCounterView extends View{constructor(_0x4e2049){super(_0x4e2049);const _0x5808a2=this['bindTemplate'];this['set']('interactionCount','1/1'),this['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-interaction-counter']},'children':[{'text':_0x5808a2['to']('interactionCount')}]});}['setInteractionCount'](_0x2411c1){this['set']('interactionCount',_0x2411c1);}}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(_0x3437d9){super(_0x3437d9),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'](_0x7d4323,_0x20a2ec,_0x1569e5){if(this['_stopInteraction'](),this['editor']['plugins']['has']('TableSelection')){if(this['editor']['plugins']['get']('TableSelection')['getSelectedTableCells']()){const {modelFragment:_0x2826f6,anchorData:_0x1c04bc}=this['_getExecuteDataInTable']();return this['_executeAction'](_0x7d4323,_0x2826f6,_0x1c04bc,_0x20a2ec,_0x1569e5);}}const {modelFragment:_0x3b94ce,anchorData:_0x1705ee}=this['_getExecuteDataRegular']();return this['_executeAction'](_0x7d4323,_0x3b94ce,_0x1705ee,_0x20a2ec,_0x1569e5);}async['destroy'](){return this['_stopInteraction'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}['_createActionsBalloonView'](){const _0x4deb94=this['editor']['plugins']['has']('TrackChanges');let _0x345b75=this['editor']['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];_0x4deb94||(_0x345b75=_0x345b75['filter'](_0x166c41=>'insertSuggestion'!=_0x166c41));const _0x6db415=this['editor']['commands']['get']('trackChanges'),_0x1ecac0=new AIActionsBalloonView(this['editor']['locale'],{'showApplyButton':!0x0,'showSuggestButton':_0x4deb94,'miniToolbarConfig':{'showChanges':'icon'},'availableActions':_0x345b75});return _0x1ecac0['bind']('isBusy')['to'](this),_0x6db415&&_0x1ecac0['bind']('isTrackChangesOn')['to'](_0x6db415,'value'),_0x1ecac0['on']('tryAgain',()=>{this['_refreshInteraction']();}),_0x1ecac0['on']('showPrevious',()=>{this['_navigateToPrevious']();}),_0x1ecac0['on']('showNext',()=>{this['_navigateToNext']();}),_0x1ecac0;}['_getExecuteDataRegular'](){const _0x1073e3=this['editor']['model']['document']['selection'];if(_0x1073e3['isCollapsed']){const _0x55d6c4=first(_0x1073e3['getSelectedBlocks']())||this['editor']['model']['schema']['getLimitElement'](_0x1073e3);this['editor']['model']['change'](_0x4ab5ad=>{_0x4ab5ad['setSelection'](_0x55d6c4,'in');});}const _0x116f37=_0x1073e3['getFirstRange'](),_0x3fea2e=this['_wrapWithCommonAncestors'](this['editor']['model']['getSelectedContent'](_0x1073e3),_0x116f37['start'],_0x116f37['end']);this['_copyMarkersToFragment'](_0x3fea2e,_0x1073e3,{'isTableSelection':!0x1});const _0x8f712e=_0x1073e3['getFirstRange']()['start'],_0x827ca=new Map();let _0x211b51=_0x3fea2e;for(let _0x5ac4b8=0x0;_0x5ac4b8<_0x8f712e['path']['length'];_0x5ac4b8++)_0x827ca['set'](_0x211b51,_0x8f712e['path'][_0x5ac4b8]),_0x211b51=_0x211b51['getChild'](0x0);return{'modelFragment':_0x3fea2e,'anchorData':_0x827ca};}['_getExecuteDataInTable'](){const _0x1e6de3=this['editor']['model']['document']['selection'],_0x2d363a=this['editor']['plugins']['get']('TableSelection')['getSelectionAsFragment'](),_0x58c1e1=_0x1e6de3['getFirstRange']()['start']['parent']['parent'],_0x5dd9b2=this['editor']['model']['createRange'](this['editor']['model']['createPositionBefore'](_0x58c1e1),this['editor']['model']['createPositionAfter'](_0x58c1e1)),_0x218368=this['_wrapWithCommonAncestors'](_0x2d363a,_0x5dd9b2['start'],_0x5dd9b2['end']);this['_copyMarkersToFragment'](_0x218368,_0x1e6de3,{'isTableSelection':!0x0});const _0x4ed852=_0x1e6de3['getFirstRange']()['start'],_0x2a040a=new Map();let _0x4b33fb=_0x218368;for(let _0x53651e=0x0;_0x53651e<_0x4ed852['path']['length'];_0x53651e++)if(_0x2a040a['set'](_0x4b33fb,_0x4ed852['path'][_0x53651e]),_0x53651e<_0x4ed852['path']['length']-0x1)_0x4b33fb=_0x4b33fb['getChild'](0x0);else{let _0x1c7f48=_0x4b33fb['nextSibling'];for(;_0x1c7f48;)_0x2a040a['set'](_0x1c7f48,_0x4ed852['path'][_0x53651e]),_0x1c7f48=_0x1c7f48['nextSibling'];}return{'modelFragment':_0x218368,'anchorData':_0x2a040a};}async['_executeAction'](_0x401bfd,_0x3285f3,_0x3cdec6,_0x293884,_0x5ac885){const _0x25f4cd=this['editor']['plugins']['get'](AIEditing),_0x4034c7=this['editor']['plugins']['get'](AIBalloon),_0x12675d=this['editor']['model']['document']['selection'],_0x5dc5d4=await _0x25f4cd['modelToDataWithIds'](_0x3285f3),_0x139329=this['editor']['model']['document']['version'],_0x439462=[..._0x12675d['getRanges']()];return this['_actionsBalloonView']||(this['_actionsBalloonView']=this['_createActionsBalloonView']()),this['_clearInteractionHistory'](),this['_clearErrorState'](),this['_balloonShowDiff']=!0x1,this['_actionsBalloonView']['resetShowChangesButton'](),this['_actionsBalloonView']['clearContent'](),_0x4034c7['open']({'index':0x3e8*Math['random']()%0x3e8,'title':_0x293884,'icon':_0x5ac885||IconAIQuickActions,'mainView':this['_actionsBalloonView'],'class':'ck-ai-actions-balloon','ranges':_0x439462,'id':'aiActionsBalloon'}),this['_setLoadingState'](),this['stopListening'](this['_actionsBalloonView']),this['stopListening'](_0x4034c7),this['_interactionParams']={'action':_0x401bfd,'content':_0x5dc5d4,'version':_0x139329,'aiBalloon':_0x4034c7,'modelFragment':_0x3285f3,'anchorData':_0x3cdec6},this['_setupApplyListeners'](),this['listenTo'](_0x4034c7,'selectionRemoved',()=>{this['_stopInteraction'](),this['_actionsBalloonView']['disableMiniToolbarButtons']();}),this['listenTo'](_0x4034c7,'dialogClosed',(_0x109d0c,{id:_0x18bffd})=>{if('aiActionsBalloon'===_0x18bffd){for(const _0x1380f2 of this['_interactions']){if(0x0===_0x1380f2['replies']['length']||_0x1380f2['stoppedExplicitly'])continue;const _0x1264b7=_0x1380f2['replies'][_0x1380f2['replies']['length']-0x1],_0x4b0365=_0x1264b7['changeGroups'][0x0];_0x4b0365&&'pending'===_0x4b0365['state']&&_0x1264b7['setChangeGroupState'](0x0,'rejected');}this['_stopInteraction'](),this['_clearInteractionHistory'](),this['stopListening'](this['_actionsBalloonView']),this['stopListening'](_0x4034c7);}}),this['_createInteraction'](_0x5dc5d4,_0x139329,_0x4034c7,_0x401bfd);}['_setupApplyListeners'](){if(!this['_interactionParams'])return;const {modelFragment:_0x6f2438,anchorData:_0x5bd7e8}=this['_interactionParams'];this['listenTo'](this['_actionsBalloonView'],'applySuggestion',()=>{this['_applyChanges'](_0x6f2438,_0x5bd7e8,!0x1);}),this['listenTo'](this['_actionsBalloonView'],'insertSuggestion',()=>{this['_applyChanges'](_0x6f2438,_0x5bd7e8,!0x0);});}['_wrapWithCommonAncestors'](_0x457ba1,_0xf68aee,_0x4ea939){const _0x4ba1a5=this['editor']['model']['createRange'](_0xf68aee,_0x4ea939)['getCommonAncestor'](),_0x4187f4=_0x4ba1a5['is']('documentFragment')?[]:_0x4ba1a5['getAncestors']({'includeSelf':!0x0})['slice'](0x1);if(_0x4187f4['length']){const _0x30fece=_0x4187f4['map'](_0x5521ed=>_0x5521ed['_clone'](!0x1));for(let _0x48992d=0x1;_0x48992d<_0x30fece['length'];_0x48992d++)_0x30fece[_0x48992d-0x1]['_appendChild'](_0x30fece[_0x48992d]);return _0x30fece[_0x30fece['length']-0x1]['_appendChild'](_0x457ba1),new ModelDocumentFragment(_0x30fece[0x0]);}return _0x457ba1;}['_copyMarkersToFragment'](_0x99f939,_0x3bd19d,_0x5203ee={'isTableSelection':!0x1}){const _0x3b78f7=this['editor']['model'],_0x5f52d1=Array['from'](_0x3bd19d['getRanges']()),_0x3435fc=_0x3bd19d['getFirstRange']()['start'];for(const _0x4632a1 of _0x3b78f7['markers']){if(_0x4632a1['name']['startsWith'](AI_VISUAL_SELECTION_MARKER_NAME)||!_0x4632a1['affectsData'])continue;const _0x230060=_0x4632a1['getRange']();if(!_0x5f52d1['some'](_0x533b82=>_0x533b82['containsRange'](_0x230060,!0x0)))continue;const _0x25597f=this['_regularCalculateMarkerPath'](_0x230060['start'],_0x3435fc,_0x5203ee['isTableSelection']),_0x13dfb9=this['_regularCalculateMarkerPath'](_0x230060['end'],_0x3435fc,_0x5203ee['isTableSelection']),_0x57ffd2=_0x3b78f7['createPositionFromPath'](_0x99f939,_0x25597f),_0x12c57a=_0x3b78f7['createPositionFromPath'](_0x99f939,_0x13dfb9);if(!_0x57ffd2['isEqual'](_0x12c57a)){const _0xb87256=_0x3b78f7['createRange'](_0x57ffd2,_0x12c57a);_0x99f939['markers']['set'](_0x4632a1['name'],_0xb87256);}}}['_regularCalculateMarkerPath'](_0x4c54fb,_0xf058c2,_0x1c9b4c=!0x1){const _0x3c18ea=[..._0x4c54fb['path']['slice']()];for(let _0xad9c5b=0x0;_0xad9c5b<Math['max'](_0xf058c2['path']['length'],_0x4c54fb['path']['length']);_0xad9c5b++){const _0x3103c4=_0xf058c2['path'][_0xad9c5b]||0x0,_0x16af30=(_0x4c54fb['path'][_0xad9c5b]||0x0)-_0x3103c4;if(_0x3c18ea[_0xad9c5b]=_0x16af30,0x0!==_0x16af30&&!_0x1c9b4c)break;}return _0x3c18ea;}async['_createInteraction'](_0x201a8b,_0x32e302,_0x5c230f,_0x50d851){const _0x1736a4=this['editor'];this['_interactionParams']||(this['_interactionParams']={'action':_0x50d851,'content':_0x201a8b,'version':_0x32e302,'aiBalloon':_0x5c230f,'modelFragment':this['editor']['model']['getSelectedContent'](this['editor']['model']['document']['selection']),'anchorData':new Map()});const _0x133264=new AIActionsInteraction({'connector':this['_aiConnector'],'editor':_0x1736a4,'content':_0x201a8b,'version':_0x32e302,..._0x50d851});this['_interactions']['push'](_0x133264);const _0x531d50=(_0x315e7f,_0x38d38e=!0x1,_0x2ece8d='streaming')=>this['_promiseQueue']['enqueue'](async _0x89990a=>{try{const _0x323de9=getSuggestionPartsFromReply({'editor':_0x1736a4,'changeGroups':_0x315e7f['changeGroups'],'documentContextContent':_0x315e7f['documentContextContent'],'showDiff':_0x38d38e,'trimUnchanged':!0x1});_0x323de9['length']&&await this['_actionsBalloonView']['updateContent']({'part':_0x323de9[0x0],'renderingStrategy':_0x2ece8d,'abortSignal':_0x89990a});}catch(_0x591e48){if(this['_isAbortError'](_0x591e48))return;throw _0x591e48;}});_0x133264['on']('replyCreated',(_0x325af7,_0x2d576d)=>{this['_actionsBalloonView']['hideLoader'](),this['_actionsBalloonView']['startAutoScroll'](),_0x531d50(_0x2d576d)['catch'](_0x31deef=>{this['_isAbortError'](_0x31deef)||(console['error']('Error\x20updating\x20content\x20in\x20replyCreated:',_0x31deef),this['_setErrorState'](_0x133264));});}),_0x133264['on']('replyContentUpdated',(_0x1be3fd,_0x33ee9a)=>{_0x531d50(_0x33ee9a)['catch'](_0x489d8a=>{this['_isAbortError'](_0x489d8a)||(console['error']('Error\x20updating\x20content\x20in\x20replyContentUpdated:',_0x489d8a),this['_setErrorState'](_0x133264));});}),_0x133264['on']('interactionFinished',async()=>{try{await this['_clearLoadingState'](),this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),await this['_promiseQueue']['queueEmptyPromise'];}catch(_0x508f72){this['_isAbortError'](_0x508f72)||(console['error']('Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:',_0x508f72),this['_setErrorState'](_0x133264));}finally{this['_actionsBalloonView']['stopAutoScroll']();}}),this['listenTo'](this['_actionsBalloonView'],'toggleSuggestionDisplayMode',async(_0x280165,{showDiff:_0x4a1d8f})=>{try{this['_balloonShowDiff']=_0x4a1d8f;const _0x3f52a7=this['_interaction']['replies'][this['_interaction']['replies']['length']-0x1];_0x3f52a7&&await _0x531d50(_0x3f52a7,_0x4a1d8f,'static');}catch(_0x578442){this['_isAbortError'](_0x578442)||(console['error']('Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:',_0x578442),this['_setErrorState'](_0x133264));}}),_0x133264['on']('replyChangeGroupStateUpdated',()=>{const _0x2b9bb4={'positiveCount':_0x133264['replies']['reduce']((_0x31cbf9,_0x80c984)=>_0x31cbf9+_0x80c984['changeGroups']['filter'](_0x38bc96=>'accepted'===_0x38bc96['state'])['length'],0x0),'totalCount':_0x133264['replies']['reduce']((_0x2b2036,_0x4f2211)=>_0x2b2036+_0x4f2211['changeGroups']['length'],0x0)},_0x4d2ee0=_0x133264['actionCallId'],_0x561010=_0x133264['actionName'];_0x561010?this['_aiConnector']['upsertAIActionRating'](_0x561010,_0x4d2ee0,_0x2b9bb4):this['_aiConnector']['upsertCustomAIActionRating'](_0x4d2ee0,_0x2b9bb4);}),this['_setLoadingState']();try{const _0xbae3ff=await _0x133264['start']();return this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),_0xbae3ff;}catch(_0x1664ad){if(this['_isAbortError'](_0x1664ad))return;this['_actionsBalloonView']['hideLoader'](),this['_setErrorState'](_0x133264);}}['_applyChanges'](_0x1bba91,_0x4fadcc,_0x2392c0){const _0x562cf0=this['editor'];if(_0x2392c0&&!_0x562cf0['plugins']['has']('TrackChanges'))throw new CKEditorError('ai-no-track-changes',null);const _0x2d1595=this['editor']['plugins']['get'](DocumentCompare),_0x26093b=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0x26093b||!_0x26093b['replies']['length'])return;const _0x5c85e9=_0x26093b['replies'][_0x26093b['replies']['length']-0x1],_0x2127c3=_0x5c85e9['changeGroups'];_0x5c85e9['setChangeGroupState'](0x0,'accepted');let _0x2d3bd8=getOperationsFromReply({'editor':_0x562cf0,'reply':_0x5c85e9,'interaction':_0x26093b,'groups':_0x2127c3,'transform':!0x1,'documentCompare':_0x2d1595,'documentCompareOptions':{'anchor':_0x562cf0['model']['createPositionAt'](_0x1bba91,0x0),'markDeletions':_0x2392c0}});_0x2d3bd8=this['_filterOperationsOutsideRange'](_0x2d3bd8,_0x4fadcc);for(const _0x575114 of _0x2d3bd8)this['_anchorOperation'](_0x4fadcc,_0x575114,_0x562cf0['model']['document']['getRoot']());const _0x4f8cf5=_0x26093b['getDocumentContext']()['version'],_0x199a80=_0x562cf0['model']['document']['history']['getOperations'](_0x4f8cf5),_0x5d085d={'document':_0x562cf0['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0x5dcddb=transformOperationSets(_0x2d3bd8,_0x199a80,_0x5d085d)['operationsA'];_0x562cf0['model']['change'](_0x3da9dd=>{if(_0x3da9dd['setSelection'](_0x562cf0['model']['document']['selection']['focus']),_0x2392c0)_0x562cf0['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x5dcddb);else{for(const _0x5de814 of _0x5dcddb)_0x5de814['baseVersion']=_0x562cf0['model']['document']['version'],fixMarkerOperationOldRange(_0x562cf0,_0x5de814),_0x3da9dd['batch']['addOperation'](_0x5de814),_0x562cf0['model']['applyOperation'](_0x5de814);}}),this['editor']['plugins']['get']('AIBalloon')['close']();}['_filterOperationsOutsideRange'](_0x5d691c,_0x26a207){return _0x5d691c['filter'](_0x5aa39a=>{if('rename'==_0x5aa39a['type']){const _0x3ac61d=_0x5aa39a['position']['nodeAfter'];return!_0x26a207['has'](_0x3ac61d);}if(_0x5aa39a['type']['indexOf']('Attribute')>-0x1){const _0x2bd3a0=_0x5aa39a['range']['start']['nodeAfter'];return!_0x26a207['has'](_0x2bd3a0);}return!0x0;});}['_anchorOperation'](_0xeaa1f9,_0x11b735,_0x32a3e2){const _0x3bbbe4=_0x11b735['clone']();for(const _0x5c69f4 in _0x11b735){const _0x3baeb8=_0x11b735[_0x5c69f4];_0x3baeb8 instanceof ModelRange?_0x11b735[_0x5c69f4]=new ModelRange(_0x4b5098(_0x3baeb8['start']),_0x4b5098(_0x3baeb8['end'])):_0x3baeb8 instanceof ModelPosition&&(_0x11b735[_0x5c69f4]=_0x4b5098(_0x3baeb8));}if(['insert','move','remove','reinsert','split','merge']['includes'](_0x3bbbe4['type'])){if(_0x3bbbe4['isDocumentOperation']=!0x1,_0x3bbbe4['baseVersion']=null,'remove'==_0x3bbbe4['type']){const _0x9aefc5=_0x3bbbe4['sourcePosition'],_0x2f3d09=_0x3bbbe4['howMany'];new _DetachOperation(_0x9aefc5,_0x2f3d09)['_execute']();}else _0x3bbbe4['_execute']();}function _0x4b5098(_0x35e00e){if('$graveyard'==_0x35e00e['root']['rootName'])return _0x35e00e;const _0x5bd288=[];let _0x3c3bdc=_0x35e00e['root'];for(let _0x1e288f=0x0;_0x1e288f<_0x35e00e['path']['length'];_0x1e288f++){const _0x43ab84=_0xeaa1f9['get'](_0x3c3bdc)||0x0;_0x5bd288[_0x1e288f]=_0x35e00e['path'][_0x1e288f]+_0x43ab84,_0x3c3bdc=_0x3c3bdc['getChildAtOffset'](_0x35e00e['path'][_0x1e288f]);}return new ModelPosition(_0x32a3e2,_0x5bd288,_0x35e00e['stickiness']);}}['_refreshInteraction'](){if(!this['_interactionParams'])return;this['_interactions']['length']>0x0&&this['_stopInteraction'](),this['_currentInteractionIndex']=0x0,this['_balloonShowDiff']=!0x1;const {action:_0x3bc384,content:_0xc883ba,version:_0x5e3990,aiBalloon:_0x280429}=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'](_0xc883ba,_0x5e3990,_0x280429,_0x3bc384)['catch'](_0x1c5079=>{this['_isAbortError'](_0x1c5079)||console['error']('Error\x20refreshing\x20interaction:',_0x1c5079);});}['_isAbortError'](_0x30d402){return!!_0x30d402['message']&&_0x30d402['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 _0x341add=this['_interactions']['length'];this['_currentInteractionIndex']<_0x341add-0x1&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']+0x1);}['_navigateToNext'](){this['_currentInteractionIndex']>0x0&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']-0x1);}async['_displayInteractionAtIndex'](_0x3be756){if(!this['_interactionParams'])return;this['_currentInteractionIndex']=_0x3be756;const _0x2afee5=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0x2afee5)return;if(_0x2afee5['hasError'])return this['_setErrorState'](_0x2afee5),void this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);if(!_0x2afee5['replies']['length'])return;this['_actionsBalloonView']['hideError'](),this['_interactionParams']&&this['_clearErrorState']();const _0x4a0a66=_0x2afee5['replies'][_0x2afee5['replies']['length']-0x1];if(_0x4a0a66){const _0x3466d5=this['editor'];try{const _0x4a3af1=getSuggestionPartsFromReply({'editor':_0x3466d5,'changeGroups':_0x4a0a66['changeGroups'],'documentContextContent':_0x4a0a66['documentContextContent'],'showDiff':this['_balloonShowDiff'],'trimUnchanged':!0x1});await new Promise(_0x401ec5=>setTimeout(_0x401ec5,0x32)),await this['_actionsBalloonView']['updateContent']({'part':_0x4a3af1[0x0],'renderingStrategy':'static','abortSignal':new AbortController()['signal']});}catch(_0x288b07){this['_isAbortError'](_0x288b07)||console['error']('Error\x20updating\x20content\x20during\x20navigation:',_0x288b07);}}this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);}['_setLoadingState'](){this['_actionsBalloonView']['setIsLoading'](!0x0),this['isBusy']=!0x0;}async['_setErrorState'](_0x452eee){const _0x3c21ca=getTranslation$i(this['editor']['locale'],'AI_ACTIONS_GENERIC_ERROR');this['_actionsBalloonView']['showError'](_0x3c21ca),_0x452eee['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(_0x31d41a){super(_0x31d41a),_0x31d41a['config']['define']('ai.quickActions',{'extraCommands':[],'removeCommands':[],'isSearchEnabled':!0x0});}}class AIReviewCoreReviewCheckListItemResultsView extends View{['resultResponseView'];['acceptButtonView'];['dismissButtonView'];['infoButtonView'];['outdatedButtonView'];constructor(_0x45218d,_0x7a3f89){super(_0x45218d),this['id']=_0x7a3f89,this['set']('status','pending'),this['set']('changeId',_0x7a3f89),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',(_0x4b84e6,_0x1672e9)=>{_0x1672e9&&_0x1672e9['target']&&'A'===_0x1672e9['target']['tagName']&&_0x1672e9['preventDefault'](),this['fire']('activateChange',{'id':_0x7a3f89,'source':this,'uiInteraction':'click'});}),this['on']('mouseover',()=>{this['fire']('activateChange',{'id':_0x7a3f89,'source':this,'uiInteraction':'hover'});}),this['on']('mouseout',()=>{this['fire']('deactivateChange',{'origin':'panel','id':_0x7a3f89,'source':this});});}['setItemAsActive'](){this['isActive']=!0x0;}['setItemAsInactive'](){this['isActive']=!0x1;}['_createResultResponseView'](){const _0x3fd0bc=new View(this['locale']);return _0x3fd0bc['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',_0x5e084d=>!_0x5e084d)]}}),_0x3fd0bc;}['_createAcceptButtonView'](){const _0x4dba3b=new ButtonView(this['locale']);return _0x4dba3b['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_ACCEPT_CHANGE'),'withText':!0x0}),_0x4dba3b['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x15f4f5=>{this['fire']('acceptChange',{'id':this['changeId']}),_0x15f4f5['stopPropagation']();})},'attributes':{'class':[this['bindTemplate']['if']('status','ck-hidden',_0x6a5538=>'pending'!==_0x6a5538&&'accepted'!==_0x6a5538),this['bindTemplate']['if']('status',AI_BUTTON_CLASSES['SECONDARY'],_0x4fcc8f=>'pending'===_0x4fcc8f),this['bindTemplate']['if']('status',AI_BUTTON_CLASSES['TERTIARY'],_0x279cab=>'pending'!==_0x279cab),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-status-button',_0x42bdd6=>'accepted'===_0x42bdd6)]}}),this['on']('change:status',(_0x37c92f,_0x220c5a,_0x40e6ce)=>{_0x4dba3b['isEnabled']='pending'===_0x40e6ce,'accepted'===_0x40e6ce&&(_0x4dba3b['label']=getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED'),_0x4dba3b['icon']=IconCheck);}),_0x4dba3b;}['_createDismissButtonView'](){const _0x4b5ac9=new ButtonView(this['locale']);return _0x4b5ac9['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_DISMISS_CHANGE'),'withText':!0x0}),_0x4b5ac9['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x434ea9=>{this['fire']('dismissChange',{'id':this['changeId']}),_0x434ea9['stopPropagation']();})},'attributes':{'class':[AI_BUTTON_CLASSES['TERTIARY'],this['bindTemplate']['if']('status','ck-hidden',_0x99f5df=>'pending'!==_0x99f5df&&'rejected'!==_0x99f5df),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-dismiss-button',_0x202cd4=>'pending'===_0x202cd4),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-status-button',_0x9cc95f=>'rejected'===_0x9cc95f)]}}),this['on']('change:status',(_0x116a32,_0x4cc052,_0x239f8b)=>{_0x4b5ac9['isEnabled']='pending'===_0x239f8b,'rejected'===_0x239f8b&&(_0x4b5ac9['label']=getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_REJECTED'),_0x4b5ac9['icon']=IconCancel);}),_0x4b5ac9;}['_createInfoButtonView'](){const _0x337f34=new ButtonView(this['locale']);return _0x337f34['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_LEARN_MORE'),'icon':IconInfo,'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox','class':AI_BUTTON_CLASSES['TERTIARY']+'\x20ck-ai_review__check-run-result-info-button\x20ck-hidden'}),_0x337f34['bind']('isOn')['to'](this,'isInfoToggleOn',_0xb65791=>_0xb65791),_0x337f34['on']('execute',()=>{this['isInfoToggleOn']=!this['isInfoToggleOn'];}),_0x337f34;}['_createOutdatedButtonView'](){const _0xccfca7=new ButtonView(this['locale']);return _0xccfca7['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_OUTDATED'),'icon':IconOutdated,'withText':!0x0,'isEnabled':!0x1}),_0xccfca7['extendTemplate']({'attributes':{'class':[AI_BUTTON_CLASSES['TERTIARY'],'ck-ai_review__check-run-result-status-button',this['bindTemplate']['if']('status','ck-hidden',_0x9c5aef=>'outdated'!==_0x9c5aef)],'disabled':'disabled'}}),_0xccfca7;}}class AIReviewCoreBalloonSuggestionItemView extends BalloonPanelView{['resultItemView'];['_pinnedRectIndex']=void 0x0;['_pinnedTargetElement']=void 0x0;['_pinnedTargetChangeId']=void 0x0;constructor(_0xc90ef1,_0x401b64){super(_0xc90ef1),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']()),_0x401b64['add'](this);}['render'](){super['render'](),this['_setupClickOutsideHandler']();}['updateContent'](_0x1b2440){this['resultItemView']['changeId']=_0x1b2440['id'],this['resultItemView']['resultResponseView']['element']['innerHTML']=_0x1b2440['contentDiffed'];}['showBalloon'](_0x443dca,_0x2009be,_0x50a20a,_0x2d24c4,_0x528537,_0x458cbe){const _0x1e3916=_0x2009be();if(!_0x1e3916)return;this['updateContent'](_0x443dca),this['show']();const _0x3df871=Array['from'](_0x1e3916['getClientRects']())['reverse'](),_0x1fccc8=this['_getPointedRectIndexFromEvent'](_0x50a20a,_0x3df871),_0xd7dedd=_0x3df871[_0x1fccc8??0x0];'click'===_0x2d24c4?(this['isDiffActive']=!0x0,this['pin']({'target':()=>this['_getBestRectPositionOnClick'](_0x2009be(),_0x1fccc8,_0x443dca['id'],_0x528537,_0x458cbe)||_0xd7dedd})):'hover'===_0x2d24c4&&(this['isDiffActive']=!0x1,this['pin']({'target':()=>this['_getBestRectPositionOnHover'](_0x2009be(),_0x1fccc8,_0x443dca['id'])||_0xd7dedd}));}['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 _0x72c7b0=[this['element']];return this['_pinnedTargetElement']&&_0x72c7b0['push'](this['_pinnedTargetElement']),_0x72c7b0;},'callback':()=>{this['hide'](),this['unpin'](),this['deactivateChange'](),this['_pinnedTargetElement']=void 0x0,this['_pinnedRectIndex']=void 0x0,this['_pinnedTargetChangeId']=void 0x0;}});}['_createContentView'](){const _0x41ce78=new View();return this['resultItemView']=new AIReviewCoreReviewCheckListItemResultsView(this['locale'],''),this['resultItemView']['resultResponseView']['extendTemplate']({'attributes':{'class':['ck-content']}}),this['resultItemView']['delegate']('acceptChange','dismissChange')['to'](this),_0x41ce78['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']]}]}),_0x41ce78;}['_getBestRectPositionOnClick'](_0x13aa5c,_0x3c612b,_0x51e0b8,_0x5e8959,_0x1f53a9){if(!_0x13aa5c)return null;const _0x44ec9c=this['position']['replace']('arrow_',''),_0x30be22=Array['from'](_0x13aa5c['getClientRects']());let _0x2a86a3,_0x3efccb=_0x30be22['reverse']();return void 0x0!==_0x3c612b&&this['_isPinnedRectVisible'](_0x3efccb[_0x3c612b],_0x5e8959,_0x1f53a9)?(_0x2a86a3=_0x3efccb[_0x3c612b],this['_pinnedRectIndex']=_0x3c612b):this['_isPinnedRectVisible'](_0x3efccb[0x0],_0x5e8959,_0x1f53a9)&&void 0x0===_0x3c612b?_0x2a86a3=_0x3efccb[0x0]:(_0x3efccb='s'==_0x44ec9c[0x0]?[..._0x30be22]['reverse']():_0x30be22,_0x3efccb['forEach'](_0x2d7517=>{this['_isPinnedRectVisible'](_0x2d7517,_0x5e8959,_0x1f53a9)&&(_0x2a86a3=_0x2d7517);})),this['_pinnedTargetChangeId']=_0x51e0b8,this['_pinnedTargetElement']=_0x13aa5c,_0x2a86a3||_0x13aa5c['getBoundingClientRect']();}['_getBestRectPositionOnHover'](_0x418266,_0x7bacbd,_0x2dd421){if(!_0x418266)return null;const _0x2b6d34=Array['from'](_0x418266['getClientRects']())['reverse']();if(void 0x0===this['_pinnedRectIndex']&&void 0x0!==_0x7bacbd&&this['_pinnedTargetChangeId']!==_0x2dd421)return this['_pinnedRectIndex']=_0x7bacbd,this['_pinnedTargetElement']=_0x418266,this['_pinnedTargetChangeId']=_0x2dd421,_0x2b6d34[_0x7bacbd];if(void 0x0!==this['_pinnedRectIndex']&&this['_pinnedTargetChangeId']===_0x2dd421){if(_0x418266!==this['_pinnedTargetElement'])return Array['from'](this['_pinnedTargetElement']['getClientRects']())['reverse']()[this['_pinnedRectIndex']];return _0x2b6d34[this['_pinnedRectIndex']];}return void 0x0!==_0x7bacbd&&this['_pinnedTargetChangeId']!==_0x2dd421?(this['_pinnedRectIndex']=_0x7bacbd,this['_pinnedTargetElement']=_0x418266,this['_pinnedTargetChangeId']=_0x2dd421,_0x2b6d34[_0x7bacbd]):_0x418266['getBoundingClientRect']();}['_getPointedRectIndexFromEvent'](_0x177894,_0x1f2408){if(_0x177894)for(let _0x1ab0a3=0x0;_0x1ab0a3<_0x1f2408['length'];_0x1ab0a3++){const _0x31e752=_0x1f2408[_0x1ab0a3];if(_0x177894['clientX']>=_0x31e752['left']-0x3&&_0x177894['clientX']<=_0x31e752['right']+0x3&&_0x177894['clientY']>=_0x31e752['top']-0x3&&_0x177894['clientY']<=_0x31e752['bottom']+0x3)return _0x1ab0a3;}}['_isPinnedRectVisible'](_0x384a3c,_0x313f89,_0x1e611d){const _0x551ed1=new Rect(_0x384a3c),_0x4ac012=_0x313f89||document['documentElement'],_0x4653c3=_0x551ed1['getIntersection'](getConstrainedViewportRect(_0x1e611d)),_0x2e9ed9=new Rect(_0x4ac012)['getIntersection'](_0x551ed1);return!!(_0x4653c3&&_0x2e9ed9&&_0x551ed1['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(_0x369cc4){super(_0x369cc4),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 _0x58810f=this['context']['plugins']['get']('AITabs');this['registerTab'](_0x58810f);}['destroy'](){this['_bodyCollection']['detachFromDom'](),super['destroy']();}['setAvailableChecks'](_0x660758){if(!this['_mainView']['reviewCheckListView']['hasChecks']()){const _0x2cfbb5=!this['context']['config']['get']('ai.models.showModelSelector');this['_mainView']['reviewCheckListView']['setChecks'](_0x660758,_0x2cfbb5);}this['_mainView']['showReviewCheckListView']();}['showReviewCheckList'](){this['fire']('getReviewCheckList');}['showCheckRunResults'](_0x5647e0){_0x5647e0&&('error-general'!==_0x5647e0['status']?'error-chunk'!==_0x5647e0['status']?this['_mainView']['showReviewCheckResultsView']():this['showChunkErrorView']():this['showGeneralResultsErrorView']());}['showCheckRunResult'](_0x51ba77){this['_mainView']['addCheckRunResult'](_0x51ba77);}['showGeneralResultsErrorView'](){this['_mainView']['showGeneralResultsErrorView']();}['showGeneralReviewCoreErrorView'](_0x21eca9){this['_mainView']['showGeneralReviewCoreErrorView'](_0x21eca9??getTranslation$i(this['context']['locale'],'AI_REVIEW_INITIALIZATION_ERROR_MESSAGE'));}['showChunkErrorView'](){this['_mainView']['showChunkErrorView']();}['setCheckResultTitle'](_0x42edba,_0x51c40f){this['_mainView']['reviewCheckResultsView']['setTitle'](_0x42edba,_0x51c40f);}['setActiveStateInResults'](_0x3dacf){this['_mainView']['reviewCheckResultsView']['getResults']()['forEach'](_0x3b01f6=>{_0x3b01f6['id']===_0x3dacf&&_0x3b01f6['setItemAsActive']();});}['resetActiveStateInResults'](){this['_mainView']['reviewCheckResultsView']['getResults']()['forEach'](_0x265005=>_0x265005['setItemAsInactive']());}['updateChangeState'](_0x2940fb,_0x24ec01){'accepted'===_0x24ec01||'rejected'===_0x24ec01||'outdated'===_0x24ec01?this['_mainView']['reviewCheckResultsView']['hideResult'](_0x2940fb,_0x24ec01):this['_mainView']['reviewCheckResultsView']['showResult'](_0x2940fb,_0x24ec01);}['showReviewCompletedView'](){this['_mainView']['showReviewCompletedView']();}['showActionsWhenResultIsReady'](){this['_mainView']['showActionsWhenResultIsReady']();}['showNoChangesView'](){this['_mainView']['showNoChangesView']();}['hideActionsWhenResultIsReady'](){this['_mainView']['hideActionsWhenResultIsReady']();}['showChangeBalloon'](_0xd995d2,_0x1cd4a9,_0x4aacb9,_0x57ecb3,_0x271014,_0x20c392){this['_balloonSuggestionView']['showBalloon'](_0xd995d2,_0x1cd4a9,_0x4aacb9,_0x57ecb3,_0x271014,_0x20c392);}['hideChangeBalloon'](){this['_balloonSuggestionView']['hideBalloon']();}['hideDiffInBalloon'](){this['_balloonSuggestionView']['hideDiffInBalloon']();}['showDiffInBalloon'](){this['_balloonSuggestionView']['showDiffInBalloon']();}['getChangeElement'](_0x35c37f){const _0x52d7c9=this['_mainView']['reviewCheckResultsView']['getResults']()['find'](_0x478a63=>_0x478a63['id']===_0x35c37f);return _0x52d7c9?_0x52d7c9['element']:null;}['deactivateChange'](){this['_balloonSuggestionView']['deactivateChange']();}}class AIReviewCoreGeneralErrorView extends View{constructor(_0x2fdf5b){super(_0x2fdf5b),this['set']('isVisible',!0x1),this['set']('errorMessage','');const _0x3ebe08=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai_review__general-error-container',_0x3ebe08['if']('isVisible','ck-hidden',_0x40259b=>!_0x40259b)]},'children':[{'tag':'p','attributes':{'class':'ck\x20ck-ai-notification\x20ck-ai-notification_error'},'children':[{'text':_0x3ebe08['to']('errorMessage')}]}]});}}class AIReviewCoreView extends View{['reviewCoreHeader'];['generalErrorView'];['reviewCheckListView'];['reviewCheckResultsView'];['reviewCompletedView'];constructor(_0x4a1b9a,_0x5e32f1){super(_0x4a1b9a),this['reviewCoreHeader']=_0x5e32f1['header'],this['generalErrorView']=new AIReviewCoreGeneralErrorView(_0x4a1b9a),this['reviewCheckListView']=_0x5e32f1['list'],this['reviewCheckListView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['reviewCheckResultsView']=_0x5e32f1['results'],this['reviewCheckResultsView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['reviewCompletedView']=_0x5e32f1['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'](_0x18e804){this['reviewCheckResultsView']['addResult'](_0x18e804),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'](_0x32747e){this['generalErrorView']['set']('isVisible',!0x0),this['generalErrorView']['errorMessage']=_0x32747e;}['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(_0x36b85c,_0x2a3043){super(_0x2a3043),this['set']({'label':_0x36b85c,'withText':!0x0,'class':AI_BUTTON_CLASSES['PRIMARY']}),this['on']('execute',()=>{this['fire']('finishReview');});}}class AIReviewCoreUICheckResultsView extends ListItemView{['_resultViews'];['_resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];['_contents'];constructor(_0x220ab1,_0x10b07f){super(_0x220ab1),this['_contents']=_0x10b07f,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(_0x220ab1),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 _0x20e773=this['_createCombinedSkeletonLoader'](),_0x14fdb1=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0x14fdb1['if']('isLoading','ck-ai_review__check-run_loading',_0x16b91b=>_0x16b91b),_0x14fdb1['if']('isResultReady','ck-ai_review__check-run_ready',_0x2b85dd=>_0x2b85dd),_0x14fdb1['if']('isVisible','ck-hidden',_0x4a368e=>!_0x4a368e)]},'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',_0x4a7c18=>_0x4a7c18)]},'children':this['_resultViews']},_0x20e773]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x48d787){const _0x2339ac=new AIReviewCoreReviewCheckListItemResultsView(this['locale'],_0x48d787['id']);_0x2339ac['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0x2339ac),_0x2339ac['resultResponseView']['element']['innerHTML']=_0x48d787['contentDiffed'];}['hideResult'](_0x870d3d,_0x57101c){if('pending'===_0x57101c)return;const _0x362246=this['_resultViews']['find'](_0x26d4f9=>_0x26d4f9['id']===_0x870d3d);_0x362246&&(_0x362246['status']=_0x57101c,_0x362246['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}['showResult'](_0x2daf2,_0x4e2acf){if('pending'!==_0x4e2acf)return;const _0x50ba7e=this['_resultViews']['find'](_0x46b357=>_0x46b357['id']===_0x2daf2);_0x50ba7e&&(_0x50ba7e['status']=_0x4e2acf,_0x50ba7e['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}['setTitle'](_0x2b1f85,_0x213e07){this['headerTitle']=_0x2b1f85,this['headerSubtitle']=_0x213e07||'';}['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 _0x156702=new View(this['locale']),_0x135bae=[];for(let _0x1f8493=0x0;_0x1f8493<0x10;_0x1f8493++){const _0x3864e3=this['_createSkeletonLoader']();_0x3864e3['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0x135bae['push'](_0x3864e3);}return _0x156702['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0xe818e2=>!_0xe818e2)]},'children':_0x135bae}),_0x156702;}['_createErrorView'](){const _0x5c4ce6=new View(this['locale']),_0xe3df37=new ButtonView(this['locale']),t=this['locale']['t'];return _0x5c4ce6['delegate']('retryReview')['to'](this),_0xe3df37['set']({'label':t('Try\x20again'),'withText':!0x0,'class':AI_BUTTON_CLASSES['SECONDARY']+'\x20ck-ai_review__check-run-error-retry-button'}),_0xe3df37['on']('execute',()=>{this['fire']('retryReview');}),_0x5c4ce6['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x5c881c=>!_0x5c881c),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x1aba14=>'chunk'===_0x1aba14)]},'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',_0x2e6c2c=>'chunk'===_0x2e6c2c)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x5bb759=>'general'!==_0x5bb759)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0xd2cb8=>'chunk'!==_0xd2cb8)]},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0xe3df37]}),_0x5c4ce6;}['_createCancelButtonView'](){const _0x338be6=new ButtonView(this['locale']);return _0x338be6['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':[AI_BUTTON_CLASSES['SECONDARY']+'\x20ck-ai-button-stop-generating'],'icon':IconStop}),_0x338be6['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x398920=>_0x398920),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x404ab4=>_0x404ab4)]}}),_0x338be6['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x338be6;}['_createToggleDiffButtonView'](){const _0x29dca9=new ButtonView(this['locale']);_0x29dca9['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x29dca9['bind']('isEnabled')['to'](this,'isError',_0x378121=>!_0x378121),_0x29dca9['extendTemplate']({'attributes':{'class':[AI_BUTTON_CLASSES['SECONDARY'],'ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0xff521a=>!_0xff521a),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x159744=>_0x159744)]}});const _0x3a559=getTranslation$i(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x583ae7=getTranslation$i(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x29dca9['bind']('isOn')['to'](this,'isToggleDiffOn',_0x26312f=>_0x26312f),_0x29dca9['bind']('icon')['to'](this,'isToggleDiffOn',_0x8cf209=>_0x8cf209?IconEye:IconEyeCrossedOut),_0x29dca9['bind']('label')['to'](this,'isToggleDiffOn',_0x2b4ee1=>_0x2b4ee1?_0x3a559:_0x583ae7),_0x29dca9['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x29dca9;}['_createAcceptAllButtonView'](){const _0x53a860=new ButtonView(this['locale']);return _0x53a860['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x53a860['bind']('isEnabled')['to'](this,'isError',_0x4af15e=>!_0x4af15e),_0x53a860['extendTemplate']({'attributes':{'class':[AI_BUTTON_CLASSES['PRIMARY'],'ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x273e2a=>!_0x273e2a),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x58df88=>_0x58df88)]}}),_0x53a860['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x53a860;}['_createExitReviewButtonView'](){const _0x1ce336=new ButtonView(this['locale']);return _0x1ce336['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x1ce336['extendTemplate']({'attributes':{'class':[AI_BUTTON_CLASSES['TERTIARY'],'ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x290046=>!_0x290046),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3165ee=>_0x3165ee)]}}),_0x1ce336['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0x1ce336;}['_createResultHeaderView'](){const _0x5b4947=new View(this['locale']),_0x34b20e=this['_createTitleView']();return _0x5b4947['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x5b2829=>_0x5b2829)]},'children':[_0x34b20e,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x5b4947;}['_createTitleView'](){const _0x2a61fd=new View(this['locale']),_0x277ecc=new AISpinnerView();return _0x277ecc['bind']('isVisible')['to'](this,'isResultReady',_0x207ac8=>!_0x207ac8),_0x2a61fd['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper']},'children':[_0x277ecc,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x26bba3=>_0x26bba3)]},'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',_0x35b33f=>!_0x35b33f)]},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x2a61fd;}['_createFinishReviewButtonView'](){const _0x3681d1=new AIReviewCoreFinishReviewButtonView(getTranslation$i(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0x3681d1['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x40502e=>!_0x40502e)]}}),_0x3681d1['delegate']('finishReview')['to'](this),_0x3681d1;}}class AIReviewCoreReviewCompletedView extends ListItemView{['_resultsHeader'];['_finishReviewButtonView'];constructor(_0x2e0626,_0x1cf1ca){super(_0x2e0626),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](_0x1cf1ca['buttonText']),this['_resultsHeader']=this['_createResultHeaderView'](_0x1cf1ca['headerText']);const _0x409628=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__review-completed',_0x409628['if']('isVisible','ck-hidden',_0x4e181e=>!_0x4e181e)]},'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':_0x1cf1ca['emptyResultsText']}]}]}]});}['_createFinishReviewButtonView'](_0x4fc666){const _0x5d6e8e=new AIReviewCoreFinishReviewButtonView(_0x4fc666,this['locale']);return _0x5d6e8e['delegate']('finishReview')['to'](this),_0x5d6e8e;}['_createResultHeaderView'](_0x4e03c1){const _0x5412b4=new View(this['locale']);return _0x5412b4['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':_0x4e03c1}]},{'tag':'div','attributes':{'class':['ck-ai_review__review-completed-header-buttons']},'children':[this['_finishReviewButtonView']]}]}),_0x5412b4;}}class AIReviewCoreFormDropdownView extends View{['_dropdownView'];['_defaultValue'];['_defaultLabel'];constructor(_0x8af306,_0x77f4e6){super(_0x8af306),this['_defaultValue']=_0x77f4e6['default']||(_0x77f4e6['data']['length']>0x0?_0x77f4e6['data'][0x0]['id']:''),this['_defaultLabel']=_0x77f4e6['data']['find'](_0x41fd0d=>_0x41fd0d['id']===this['_defaultValue'])?.['label']||'',this['set']('formValue',''),this['_dropdownView']=createDropdown(this['locale']);const _0x48511b=this['_prepareListOptions'](_0x77f4e6['data']);addListToDropdown(this['_dropdownView'],_0x48511b,{'role':'menu','ariaLabel':_0x77f4e6['label']}),this['_dropdownView']['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0}),this['_dropdownView']['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x1351db=>{_0x1351db['stopPropagation']();})}}),this['listenTo'](this['_dropdownView'],'execute',_0x13a508=>{this['formValue']=_0x13a508['source']['model']['id'],this['_dropdownView']['buttonView']['label']=_0x13a508['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'](_0x3e0d29=[]){const _0x13e957=new Collection();this['resetToDefault']();for(const _0xc68804 of _0x3e0d29){const _0x1f4c14=new UIModel({'label':_0xc68804['label'],'withText':!0x0,'role':'menuitemradio','id':_0xc68804['id'],'model':_0xc68804});_0x1f4c14['bind']('isOn')['to'](this,'formValue',_0x540155=>_0x540155===_0x1f4c14['id']);const _0x536527={'type':'button','model':_0x1f4c14};_0x13e957['add'](_0x536527);}return _0x13e957;}}class AIReviewCoreFormManagerView extends ListItemView{['_formItem']=null;constructor(_0x1becc7,_0x4dd9ca,_0x1b7aea){super(_0x1becc7),this['argsKey']=_0x4dd9ca?.['argsKey'];if('dropdown'===_0x4dd9ca['formType'])this['_formItem']=new AIReviewCoreFormDropdownView(this['locale'],_0x4dd9ca);this['set']('value',''),this['bind']('value')['to'](this['_formItem'],'formValue');const _0x14e47f=new FormRowView(this['locale'],{'children':[this['_formItem']],'class':[_0x1b7aea?'ck-form__row_with-submit':'']});_0x1b7aea&&_0x14e47f['children']['add'](_0x1b7aea),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai_review__form-item','ck-reset_all']},'children':[_0x14e47f]});}['resetToDefault'](){this['_formItem']['resetToDefault']();}}class AIReviewCorePromptInputView extends TextareaView{['keystrokes'];static ['MIN_ROWS']=0x1;static ['MAX_ROWS']=0xc;constructor(_0x287b74){super(_0x287b74),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(_0x48f1c8,_0x668995,_0x1510f9=!0x1){super(_0x48f1c8),this['_check']=_0x668995,this['set']('prompt',''),this['set']('modelId',''),this['set']('modelDisplayMode','selector'),this['set']('activeModelName',null),this['_defaultValue']=_0x668995['defaultModel']?_0x668995['defaultModel']['id']:'',this['_defaultLabel']=_0x668995['defaultModel']?_0x668995['defaultModel']['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new LabeledFieldView(this['locale'],()=>new AIReviewCorePromptInputView(_0x48f1c8)),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'](_0x1510f9),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',(_0x8bb353,_0x357829)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x357829()):_0x357829();}),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'](_0x3ee1f2=>{this['_focusables']['add'](_0x3ee1f2),this['focusTracker']['add'](_0x3ee1f2['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 _0x2e3184 of this['_getFormValidators']()){const _0x445b7d=_0x2e3184();if(_0x445b7d)return this['promptInputView']['errorText']=_0x445b7d,!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 _0x569798=new ButtonView(this['locale']),t=this['locale']['t'];return _0x569798['set']({'label':t('Submit'),'withText':!0x0,'class':AI_BUTTON_CLASSES['PRIMARY']}),_0x569798['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x569798;}['_createCancelButtonView'](){const _0x1dc3b2=new ButtonView(this['locale']),t=this['locale']['t'];return _0x1dc3b2['set']({'label':t('Cancel'),'withText':!0x0,'class':AI_BUTTON_CLASSES['TERTIARY']}),_0x1dc3b2['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x20bc45=>{_0x20bc45['stopPropagation']();})}}),_0x1dc3b2['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x1dc3b2;}['_setModelList'](_0x1ed269){this['_modelSelectionDropdownItems']['clear']();const _0x1d26b1=this['_check']['models'];if(_0x1ed269)this['set']('modelDisplayMode','hidden');else{const _0x253264=0x1===_0x1d26b1['length'];this['set']('modelDisplayMode',_0x253264?'name':'selector');}if(this['resetToDefault'](),_0x1d26b1?.['length']){0x1===_0x1d26b1['length']&&this['set']('activeModelName',_0x1d26b1[0x0]['name']||_0x1d26b1[0x0]['id']);for(const _0x536e80 of _0x1d26b1){const _0x4792c1=new UIModel({'label':_0x536e80['name'],'withText':!0x0,'role':'menuitemradio','id':_0x536e80['id'],'model':_0x536e80});_0x4792c1['bind']('isOn')['to'](this,'modelId',_0x163f5b=>_0x163f5b===_0x536e80['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x4792c1,'labelView':new ModelButtonLabelView(this['locale'],_0x536e80)});}}}['_createModelSelectionDropdown'](){const _0x3b0c4e=createDropdown(this['locale']);return _0x3b0c4e['set']({'panelPosition':'se','class':'ck-ai_review__check-list-item-model-dropdown'}),_0x3b0c4e['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0,'class':AI_BUTTON_CLASSES['TERTIARY']}),_0x3b0c4e['buttonView']['bind']('isVisible')['to'](this,'modelDisplayMode',_0x58e6d7=>'selector'===_0x58e6d7),this['listenTo'](_0x3b0c4e,'execute',_0x34e858=>{this['modelId']=_0x34e858['source']['model']['id'],_0x3b0c4e['buttonView']['label']=_0x34e858['source']['label'];}),_0x3b0c4e;}['_createModelNameView'](){const _0x1c8eb9=new ModelNameView(this['locale']);return _0x1c8eb9['bind']('text')['to'](this,'activeModelName',_0x56fe64=>_0x56fe64??''),_0x1c8eb9['bind']('isVisible')['to'](this,'modelDisplayMode',_0x445419=>'name'===_0x445419),_0x1c8eb9;}['_createActionsFooterView'](){const _0x47f0f1=new View(this['locale']);return _0x47f0f1['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']]}]}),_0x47f0f1;}}class ModelNameView extends View{constructor(_0x436a4c){super(_0x436a4c),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x171082=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai_review__check-list-item-model-name',_0x171082['if']('isVisible','ck-hidden',_0x8f07e9=>!_0x8f07e9)]},'children':[{'text':_0x171082['to']('text')}]});}}class ModelButtonLabelView extends ButtonLabelView{constructor(_0x150b31,_0x255043){super();const _0x14f7a7=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x14f7a7['to']('style'),'id':_0x14f7a7['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x14f7a7['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x255043['description']||'']}]}]});}}class AIReviewCoreReviewCommandListItemView extends ListItemView{['_formItemsCollection']=new ViewCollection();['_customCheckView']=null;['_hideModels']=!0x1;constructor(_0x26faab,_0x4e992e,_0x4ccf52,_0x3f25a3=!0x1){super(_0x26faab),this['_hideModels']=_0x3f25a3,this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x4e992e['isParameterized']);const _0x30a452=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',_0x5b89ca=>_0x5b89ca),this['bindTemplate']['if']('isListItemRendered','ck-ai_review__check-list-item_rendered',_0xb70a94=>_0xb70a94)],'style':{'--ck-ai-review-check-list-item-index':_0x4ccf52}},'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':_0x4e992e['title']}]},_0x30a452]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-description']},'children':_0x4e992e['description']?[{'text':_0x4e992e['description']}]:[]}]}]},..._0x4e992e['isParameterized']?[this['_createParameterizedView'](_0x4e992e)]:[],...'custom'===_0x4e992e['id']?[this['_createCustomView'](_0x4e992e,this['_hideModels'])]:[]]}),this['on']('click',()=>{_0x4e992e['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x4e992e['id'],'args':_0x4e992e['useArgs']?_0x4e992e['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'](_0x37f82e=>{_0x37f82e['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x376401=new IconView();return _0x376401['content']=IconChevronRight,_0x376401['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-title-icon']}}),_0x376401;}['_createParameterizedView'](_0x55d608){const _0x59bf61=new View(),_0x198a83=this['_createFormView'](_0x55d608);return _0x59bf61['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x250598=>!_0x250598)]},'children':[_0x198a83]}),_0x59bf61;}['_createFormView'](_0x5cd225){const _0x50fcfa=new View(),_0x5730c3=Array['isArray'](_0x5cd225['options'])?_0x5cd225['options']:[],_0x8e0558=new ButtonView(this['locale']),t=this['locale']['t'];_0x8e0558['set']({'label':t('Submit'),'withText':!0x0,'class':AI_BUTTON_CLASSES['PRIMARY']}),_0x8e0558['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x1d50c4=>{_0x1d50c4['stopPropagation']();})}}),_0x8e0558['on']('execute',()=>{const _0x249c27=[],_0x40a211={};this['_formItemsCollection']['forEach'](_0x501d40=>{_0x249c27['push'](_0x501d40['value']),_0x5cd225['useArgs']&&_0x5cd225['options']&&(_0x40a211[_0x501d40['argsKey']]=_0x501d40['value']);}),this['fire']('runReviewCheck',{'id':_0x5cd225['id'],'params':_0x249c27['length']?_0x249c27:void 0x0,'args':Object['keys'](_0x40a211)['length']?_0x40a211:void 0x0});});const _0x7d9bbb=_0x5730c3['length'];return _0x5730c3['forEach']((_0x28502c,_0xe04a40)=>{const _0x238995=_0xe04a40===_0x7d9bbb-0x1;this['_formItemsCollection']['add'](new AIReviewCoreFormManagerView(this['locale'],_0x28502c,_0x238995?_0x8e0558:null));}),_0x50fcfa['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x50fcfa;}['_createCustomView'](_0x18ea6d,_0x51f38c=!0x1){return this['_customCheckView']=new AIReviewCoreCustomCheckView(this['locale'],_0x18ea6d,_0x51f38c),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',_0x5a4e2e=>!_0x5a4e2e)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x260500,_0x5cb464,_0x542835)=>{_0x542835||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}class AIReviewCoreReviewCheckListView extends ListItemView{['_checkViews'];constructor(_0x154b09){super(_0x154b09),this['_checkViews']=new ViewCollection(),this['_setupTemplate']();}['setChecks'](_0x28d7f6,_0x226d07=!0x1){this['_checkViews']['clear']();for(const [_0x2852d4,_0x473ef1]of _0x28d7f6['entries']()){const _0x589265=new AIReviewCoreReviewCommandListItemView(this['locale'],_0x473ef1,_0x2852d4,_0x226d07);_0x589265['delegate']('runReviewCheck')['to'](this),this['_checkViews']['add'](_0x589265);}}['hasChecks'](){return this['_checkViews']['length']>0x0;}['resetAllParameterizedChecks'](){for(const _0x14b544 of this['_checkViews'])_0x14b544 instanceof AIReviewCoreReviewCommandListItemView&&_0x14b544['resetToDefault']();}['_setupTemplate'](){const _0xdfab8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list',_0xdfab8['if']('isVisible','ck-hidden',_0x3073cf=>!_0x3073cf)]},'children':this['_checkViews']});}}class AIReviewModeUI extends AIReviewCoreUI{static get['pluginName'](){return'AIReviewModeUI';}['createMainView'](){const _0x359388=this['context']['locale'],_0x21ed87=new FormHeaderView(_0x359388,{'label':getTranslation$i(_0x359388,'AI_REVIEW_MODE'),'icon':IconAIReview,'class':'ck-ai-header\x20ck-ai-header_review'});return new AIReviewCoreView(this['context']['locale'],{'header':_0x21ed87,'list':new AIReviewCoreReviewCheckListView(_0x359388),'results':new AIReviewCoreUICheckResultsView(_0x359388,{'generalErrorText':getTranslation$i(_0x359388,'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}),'completed':new AIReviewCoreReviewCompletedView(_0x359388,{'headerText':getTranslation$i(_0x359388,'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE'),'emptyResultsText':getTranslation$i(_0x359388,'AI_REVIEW_MODE_EMPTY_RESULTS_TEXT'),'buttonText':getTranslation$i(_0x359388,'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL')})});}['registerTab'](){const _0x60bbfa=this['context']['plugins']['get']('AITabs');_0x60bbfa['view']['on']('activateTab',(_0x2d4313,_0x4c7618)=>{'reviewMode'===_0x4c7618?this['fire']('getReviewCheckList'):this['fire']('leaveReview');}),_0x60bbfa['view']['addTab']({'id':'reviewMode','buttonLabel':getTranslation$i(this['context']['locale'],'AI_REVIEW_MODE'),'buttonIcon':IconAIReview,'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(_0x2447de){super(_0x2447de),this['_domEmitter']=new(DomEmitterMixin())(),this['_eventEmitter']=new(EmitterMixin())();}get['emitter'](){return this['_eventEmitter'];}['afterInit'](){const _0x549c98=getEditorFromContext(this['context']);_0x549c98['conversion']['for']('editingDowncast')['markerToElement']({'model':MARKER_PREFIX+'insert','view':(_0x36fde1,{writer:_0x1445ed})=>{const _0x3449a4=this['_markers']['get'](_0x36fde1['markerName']),_0x462e58={'class':'ck-ai_review-marker_add'+(this['_activeMarkers']['has'](_0x3449a4?.['id']||'')?'\x20ck-ai_review__change_active':''),'data-marker-id':_0x36fde1['markerName']};return _0x1445ed['createUIElement']('span',_0x462e58,function(_0x4a3088){const _0x10e634=this['toDomElement'](_0x4a3088);return _0x10e634['innerHTML']=_0x3449a4?.['content']?.['asString']||'',_0x10e634;});}}),_0x549c98['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-only','view':_0x106754=>{const _0x4d8ab2=this['_markers']['get'](_0x106754['markerName']),_0x4b8b3b=['ck-ai_review-marker_strikethrough'];return this['_activeMarkers']['has'](_0x4d8ab2?.['id']||'')&&_0x4b8b3b['push']('ck-ai_review__change_active'),{'classes':_0x4b8b3b,'attributes':{'data-marker-id':_0x106754['markerName']}};}}),_0x549c98['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-context','view':_0x351cc2=>{const _0x9ccd1e=this['_markers']['get'](_0x351cc2['markerName']),_0xcbbdcd=['ck-ai_review-marker_underline'];return this['_activeMarkers']['has'](_0x9ccd1e?.['id']||'')&&_0xcbbdcd['push']('ck-ai_review__change_active'),{'classes':_0xcbbdcd,'attributes':{'data-marker-id':_0x351cc2['markerName']}};}}),_0x549c98['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-text','view':_0x361952=>{const _0x59384a=this['_markers']['get'](_0x361952['markerName']),_0x10be97=['ck-ai_review-marker_hide'];return this['_activeMarkers']['has'](_0x59384a?.['id']||'')&&_0x10be97['push']('ck-ai_review__change_active'),{'classes':_0x10be97,'attributes':{'data-marker-id':_0x361952['markerName']}};}}),_0x549c98['conversion']['for']('dataDowncast')['markerToElement']({'model':MARKER_PREFIX+'suggestion-context','view':(_0x454053,{writer:_0xf3a86e})=>_0xf3a86e['createRawElement']('span',{'class':'ck-ai_review-marker_context-'+(_0x454053['isOpening']?'start':'end')})}),_0x549c98['conversion']['for']('downcast')['attributeToAttribute']({'model':DATA_ID_MODEL_ATTRIBUTE,'view':DATA_ID_VIEW_ATTRIBUTE});const _0x127fb0=_0x549c98['ui']['getEditableElement']()||document['body'];this['_domEmitter']['listenTo'](_0x127fb0,'mouseup',(_0x4d0e5e,_0x452db9)=>{const _0x28175c=_0x452db9['target'],_0x338d4f=this['_findMarkerElement'](_0x28175c);if(!_0x338d4f)return;const _0x283eff=_0x338d4f['getAttribute']('data-marker-id'),_0x29e21d=_0x283eff['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerClicked',{'markerId':_0x283eff,'changeId':_0x29e21d,'markerElement':()=>this['_findMarkerElementById'](_0x283eff),'domEvent':_0x452db9});},{'usePassive':!0x0,'priority':'highest'}),this['_domEmitter']['listenTo'](_0x127fb0,'mouseover',(_0x3c5a1c,_0x92d175)=>{const _0x4b7534=_0x92d175['target'],_0x228f6c=_0x92d175['relatedTarget'];let _0x456ade=this['_findMarkerElement'](_0x4b7534);if(!_0x456ade&&_0x228f6c&&(_0x456ade=this['_findMarkerElement'](_0x228f6c)),!_0x456ade)return;const _0x3bfdee=_0x456ade['getAttribute']('data-marker-id'),_0xc47616=_0x3bfdee['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerHovered',{'changeId':_0xc47616,'markerElement':()=>this['_findMarkerElementById'](_0x3bfdee),'domEvent':_0x92d175});}),this['_domEmitter']['listenTo'](document,'mouseover',debounce$1((_0x190a30,_0x138732)=>{const _0x5c1a81=_0x138732['target'];if(this['_findMarkerElement'](_0x5c1a81))return;_0x5c1a81['closest']('.ck-reset.ck-ai_review-balloon-panel-suggestion')||this['_eventEmitter']['fire']('changeMarkerBlurred');},0xc8)),_0x549c98['model']['document']['registerPostFixer'](_0x1436d4=>this['_validateMarkers'](_0x549c98,_0x1436d4)),_0x549c98['model']['document']['on']('change',()=>this['_handleMarkerChanges'](_0x549c98));}['getDocumentData'](){const _0x4cdac8=this['context']['plugins']['get']('AIEditing'),_0x4f64f2=getEditorFromContext(this['context']),_0x217856=_0x4f64f2['model'],_0x304593=new ModelDocumentFragment();for(const _0x5dc537 of _0x217856['document']['getRoot']()['getChildren']()){const _0x5de69f=_0x5dc537['_clone'](!0x0);_0x304593['_appendChild'](_0x5de69f);}for(const _0x318e00 of _0x217856['markers'])_0x304593['markers']['set'](_0x318e00['name'],this['_changeRangeOwnerDocument'](_0x318e00['getRange']()['clone'](),_0x304593));const _0xbb1f84=new ModelTreeWalker({'ignoreElementEnd':!0x0,'startPosition':_0x217856['createPositionAt'](_0x304593,0x0)}),_0x4c439a=new Set(),_0x4945bd=new Map();for(const {item:_0x4ae01e}of _0xbb1f84){if(!_0x4ae01e['is']('$textProxy'))continue;const _0x2bfadf=_0x4ae01e['parent'];if(_0x2bfadf&&_0x2bfadf['is']('element')){const _0x37a1cc=this['_upsertDataId'](_0x2bfadf,()=>_0x4cdac8['_nextDataId'](_0x4c439a));_0x4c439a['add'](_0x37a1cc);for(const _0x336721 of _0x2bfadf['getChildren']())_0x336721['is']('element')&&_0x4c439a['add'](this['_upsertDataId'](_0x336721,()=>_0x4cdac8['_nextDataId'](_0x4c439a)));let _0x1aa823=_0x2bfadf;for(;_0x1aa823['parent']&&!_0x1aa823['parent']['is']('documentFragment');)_0x1aa823=_0x1aa823['parent'],_0x1aa823['hasAttribute'](DATA_ID_MODEL_ATTRIBUTE)&&_0x1aa823['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0x4945bd['set'](_0x37a1cc,{'path':_0x2bfadf['getPath'](),'getContent':this['_createGetContentUsingDataIdFn'](_0x1aa823['_clone'](!0x0),_0x37a1cc,_0x4f64f2['data'])}),_0xbb1f84['jumpTo'](_0x217856['createPositionAfter'](_0x2bfadf));}}return{'content':_0x4f64f2['data']['processor']['toData'](_0x4f64f2['data']['toView'](_0x304593)),'version':_0x4f64f2['model']['document']['version'],'elements':_0x4945bd};}['diffContent'](_0x40e3f3,_0x3c89a4,_0x5a7dda=!0x1){const _0x14db73=[],_0x1f5e2f=getEditorFromContext(this['context']),_0x540e71=_0x1f5e2f['data']['parse'](_0x3c89a4,'$documentFragment'),_0x10e7f3=_0x1f5e2f['data']['parse'](_0x40e3f3,'$documentFragment'),_0x32e041=_0x1f5e2f['model']['createPositionAt'](_0x10e7f3,0x0);if(this['_haveSingleTopLevelElement'](_0x540e71)){if(!this['_hasSameTopLevelElement'](_0x10e7f3,_0x540e71))return _0x14db73;}else{const _0xe9ee9a=_0x1f5e2f['model']['schema'];if(!this['_haveOnlyInlineContent'](_0x10e7f3,_0xe9ee9a)||!this['_haveOnlyInlineContent'](_0x540e71,_0xe9ee9a))return _0x14db73;}const _0x5966a9=this['context']['plugins']['get']('DocumentCompare')['getDiff'](_0x40e3f3,_0x3c89a4,{'anchor':_0x32e041,'markDeletions':!0x0})['getOperations']()['filter'](_0x5507a3=>'insert'===_0x5507a3['type']||'marker'===_0x5507a3['type']&&_0x5507a3['name']['startsWith']('$markedRemove')),_0x5c86d4=this['_groupAdjacentOperations'](_0x5966a9),_0x29f810=[];if(_0x5a7dda){if(_0x5c86d4['length']){const _0x4cf38d=_0x5c86d4[0x0]['operations'][0x0],_0x56530f='insert'===_0x4cf38d['type']?_0x4cf38d['position']:_0x4cf38d['newRange']['start'],_0x2040f9=this['_getPositionLimitingRange'](_0x56530f,_0x1f5e2f,'inside'),_0x3621cb=_0x2040f9?_0x540e71['getChild'](0x0)['getChildren']():_0x540e71['getChildren'](),_0x13a943=_0x2040f9||_0x1f5e2f['model']['createRangeIn'](_0x10e7f3),_0x41dfef=[new MarkerOperation('$markedRemove:synthetic'+uid(),null,_0x13a943,_0x1f5e2f['model']['document']['model']['markers'],!0x0,_0x1f5e2f['model']['document']['version']+0x1),new InsertOperation(_0x13a943['end'],_0x3621cb,_0x1f5e2f['model']['document']['version']+0x2)];_0x29f810['push']({'operations':_0x41dfef,'operationsIsolated':_0x41dfef,'groupOffset':0x0});}}else _0x29f810['push'](..._0x5c86d4);let _0x5b0953=0x0;return _0x1f5e2f['model']['change'](_0x1222e9=>{for(let _0x412d2b=0x0;_0x412d2b<_0x29f810['length'];_0x412d2b++){const _0x408646=_0x29f810[_0x412d2b],_0x228abe=_0x1222e9['createDocumentFragment']();for(const _0x59e3c3 of _0x10e7f3['getChildren']())_0x1222e9['append'](_0x59e3c3['_clone'](!0x0),_0x228abe);for(const _0x5ca9cc of _0x408646['operationsIsolated'])if('insert'===_0x5ca9cc['type']){const _0x239049=_0x5ca9cc;_0x239049['baseVersion']=null,_0x239049['isDocumentOperation']=!0x1,this['_changeOperationOwnerDocument'](_0x239049,_0x228abe),_0x1222e9['batch']['addOperation'](_0x5ca9cc),_0x1f5e2f['model']['applyOperation'](_0x5ca9cc);const _0x2f82a6='suggestion:insertion:id:authorId:'+_0x5b0953++,_0x3ea082=_0x1f5e2f['model']['createRange'](_0x239049['position'],_0x239049['position']['getShiftedBy'](_0x239049['howMany']));_0x228abe['markers']['set'](_0x2f82a6,_0x3ea082);}else{if('marker'===_0x5ca9cc['type']&&_0x5ca9cc['name']['startsWith']('$markedRemove')){const _0x88b299=_0x5ca9cc,_0x386147='suggestion:deletion:id:authorId:'+_0x5b0953++;this['_changeOperationOwnerDocument'](_0x88b299,_0x228abe),_0x228abe['markers']['set'](_0x386147,_0x88b299['newRange']);}}if(_0x5a7dda)_0x14db73['push']({..._0x408646,'context':this['_createGetContentFn'](_0x10e7f3,_0x1f5e2f['data']),'content':this['_createGetContentFn'](_0x10e7f3,_0x1f5e2f['data'])});else{const _0x5664cb=this['_getChangeContext'](this['_changePositionOwnerDocument'](this['_getOperationStart'](_0x408646['operationsIsolated'][0x0]),_0x228abe),this['_changePositionOwnerDocument'](this['_getOperationEnd'](_0x408646['operationsIsolated'][_0x408646['operationsIsolated']['length']-0x1]),_0x228abe));_0x228abe['markers']['set'](MARKER_PREFIX+'suggestion-context',new ModelRange(_0x5664cb['start'],_0x5664cb['end'])),_0x14db73['push']({..._0x408646,'context':this['_createGetContextFn'](_0x228abe,_0x1f5e2f['data'],{'ellipsisBefore':_0x5664cb['hasContentBefore'],'ellipsisAfter':_0x5664cb['hasContentAfter']}),'content':this['_createGetContentFn'](_0x228abe,_0x1f5e2f['data'])});}}}),_0x14db73;}['markChangePositionInEditorContent'](_0x24dd5a,_0x882974){if(!_0x24dd5a['length'])return;const _0x4e6c7a=_0x24dd5a[0x0]['parent']['id'],_0x51eade=_0x882974['elements']['get'](_0x4e6c7a);if(!_0x51eade)return void console['warn']('No\x20element\x20found\x20for\x20ID:\x20'+_0x4e6c7a);const _0x40cf09=_0x51eade['path'],_0x25a725=getEditorFromContext(this['context']),_0x5a7ebb=_0x25a725['model']['document']['history']['getOperations'](_0x882974['version']),_0x303864=[];for(const _0x4d00ae of _0x24dd5a){const _0x3df122=_0x4d00ae['operationsIsolated']['map'](_0xa37a3c=>this['_translateOperationToEditorContent'](_0xa37a3c,_0x40cf09,_0x25a725['model']['document']['getRoots']()[0x0]));if(!_0x3df122||!_0x3df122['length'])continue;const _0x24bc74=_0x3df122['every'](_0x2deac4=>'marker'===_0x2deac4['type']&&_0x2deac4['name']['startsWith']('$markedRemove')),_0x32a046={'document':_0x25a725['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0x576980=transformOperationSets(_0x3df122,_0x5a7ebb,_0x32a046)['operationsA'];for(const _0x4ce340 of _0x576980)if('insert'===_0x4ce340['type']){const _0xd39938=_0x4ce340,_0x1d4f1b=_0xd39938['nodes'];_0x25a725['model']['change'](_0x15b24d=>{const _0x51680b=_0x15b24d['createDocumentFragment']();for(const _0x13a58c of _0x1d4f1b)_0x15b24d['append'](_0x13a58c['_clone'](!0x0),_0x51680b);_0x303864['push']({'start':_0xd39938['position'],'end':_0xd39938['position'],'type':'insert','groupId':_0x4d00ae['id'],'content':{'asString':this['_createGetContentFn'](_0x51680b,_0x25a725['data'])(),'asFragment':_0x51680b}});});}else{if('marker'===_0x4ce340['type']&&_0x4ce340['name']['startsWith']('$markedRemove')){const _0x50b8fb=_0x4ce340;let _0x326911='remove-text';if(_0x24bc74){const _0x183f77=this['_findAdjacentContextDistance'](_0x50b8fb['newRange']['start'],'backward',_0x25a725['model']['schema']),_0x1e0540=this['_findAdjacentContextDistance'](_0x50b8fb['newRange']['end'],'forward',_0x25a725['model']['schema']);if(_0x183f77||_0x1e0540){const _0x38fa2b=_0x50b8fb['newRange']['start']['getShiftedBy'](-_0x183f77),_0x739e29=_0x50b8fb['newRange']['end']['getShiftedBy'](_0x1e0540);_0x303864['push']({'start':_0x38fa2b,'end':_0x739e29,'groupId':_0x4d00ae['id'],'type':'remove-context'});}else _0x326911='remove-only';}_0x303864['push']({'start':_0x50b8fb['newRange']['start'],'end':_0x50b8fb['newRange']['end'],'groupId':_0x4d00ae['id'],'type':_0x326911});}}}this['_insertMarkers'](_0x303864);}['clearAllMarkers'](){const _0x52772c=getEditorFromContext(this['context']);_0x52772c['model']['change'](_0x3b4eb0=>{for(const _0x529081 of this['_markers']['keys']())_0x52772c['model']['markers']['get'](_0x529081)&&_0x3b4eb0['removeMarker'](_0x529081);}),this['_markers']['clear'](),this['_activeMarkers']['clear']();}['switchToReadOnly'](){getEditorFromContext(this['context'])['enableReadOnlyMode']('ai-review');}['switchToEdit'](){getEditorFromContext(this['context'])['disableReadOnlyMode']('ai-review');}['applyChange'](_0x52ee46){const _0x36feb0=getEditorFromContext(this['context']),_0x509089=_0x36feb0['model'],_0x5544a7=_0x52ee46['map'](_0x3bf7ff=>this['_getMarkersDataForGroup'](_0x3bf7ff))['flat']();_0x509089['change'](_0x2ba008=>{for(const _0x34e088 of _0x5544a7){const _0xdbb55d=_0x36feb0['model']['markers']['get'](_0x34e088['id']);if(_0xdbb55d){if('insert'===_0x34e088['type']){if(!_0x34e088['content'])continue;_0x509089['insertContent'](_0x34e088['content']['asFragment']||null,_0xdbb55d['getRange']()['start']);}else'remove-text'!==_0x34e088['type']&&'remove-only'!==_0x34e088['type']||_0x509089['deleteContent'](_0x509089['createSelection'](_0xdbb55d['getRange']()));_0x2ba008['removeMarker'](_0x34e088['id']),this['_markers']['delete'](_0x34e088['id']);}}});}['rejectChange'](_0x293156){const _0x594e54=getEditorFromContext(this['context']),_0x3e06e2=this['_getMarkersDataForGroup'](_0x293156);_0x594e54['model']['change'](_0x511056=>{for(const _0x4d2097 of _0x3e06e2)_0x511056['removeMarker'](_0x4d2097['id']),this['_markers']['delete'](_0x4d2097['id']);});}['getEditor'](){return getEditorFromContext(this['context']);}['getMarkerElementForChange'](_0x25da80){const _0x3d595e=Array['from'](this['_markers']['values']())['filter'](_0x896cb4=>_0x896cb4['groupId']===_0x25da80);if(!_0x3d595e['length'])return null;const _0x441e0d=0x1===_0x3d595e['length']?_0x3d595e[0x0]:this['_sortMarkers'](_0x3d595e)[0x0],_0x23587c=getEditorFromContext(this['context'])['model']['markers']['get'](_0x441e0d['id']);if(!_0x23587c)return null;return{'modelRange':_0x23587c['getRange'](),'getElement':()=>this['_findMarkerElementById'](_0x441e0d['id'])};}['getContentElementForChange'](_0x1d1ee3){const _0x23223b=Array['from'](this['_markers']['values']())['filter'](_0x1d0d92=>_0x1d0d92['groupId']===_0x1d1ee3);if(!_0x23223b['length'])return null;const _0x1f5e06=0x1===_0x23223b['length']?_0x23223b[0x0]:this['_sortMarkers'](_0x23223b)[0x0],_0x4ce76d=getEditorFromContext(this['context']),_0x3bee60=_0x4ce76d['model']['markers']['get'](_0x1f5e06['id']);if(!_0x3bee60)return null;const _0x34fc0a=_0x3bee60['getRange'](),_0x2e09a2=_0x4ce76d['editing']['view']['getDomRoot']();if(!_0x2e09a2||!_0x34fc0a)return null;let _0x2ad0bd=_0x34fc0a['start']['parent'];for(;_0x2ad0bd['parent']&&'$root'!==_0x2ad0bd['parent']['name'];)_0x2ad0bd=_0x2ad0bd['parent'];if(!_0x2ad0bd||!_0x2ad0bd['name'])return null;const _0x1ae2fc=_0x2e09a2['querySelector']('[data-marker-id=\x22'+_0x1f5e06['id']+'\x22]');if(!_0x1ae2fc)return null;let _0xb27902=null;_0x4ce76d['model']['change'](_0x502c2c=>{_0xb27902=_0x502c2c['createDocumentFragment'](),_0x502c2c['append'](_0x2ad0bd['_clone'](!0x0),_0xb27902);});const _0x13602e=_0x4ce76d['data']['toView'](_0xb27902)['getChild'](0x0);return _0x1ae2fc['closest'](_0x13602e['name']);}['reactivateMarkers'](_0x67951){const _0x291fec=this['_getMarkersDataForGroup'](_0x67951);if(!_0x291fec['length'])return;const _0x47e252=Array['from'](this['_activeMarkers'])['sort'](),_0x3280f8=Array['from'](new Set(_0x291fec['map'](_0x2bfdc9=>_0x2bfdc9['id'])))['sort']();_0x47e252['join']('|')!==_0x3280f8['join']('|')&&(this['setAllMarkersAsInactive'](),this['setMarkersInElementAsActive'](_0x67951));}['setMarkersInElementAsActive'](_0x528f55){const _0x57dd8a=this['_getMarkersDataForGroup'](_0x528f55);if(!_0x57dd8a['length'])return;const _0x18ce62=getEditorFromContext(this['context']),_0x235c6c=new Set(_0x57dd8a['map'](_0x224186=>_0x224186['id'])),_0x16b26a=Array['from'](_0x235c6c['values']())['map'](_0x5aa463=>_0x18ce62['model']['markers']['get'](_0x5aa463))['filter'](_0x847f90=>!!_0x847f90);_0x235c6c['forEach'](_0x8be236=>{this['_activeMarkers']['add'](_0x8be236);}),_0x18ce62['model']['change'](()=>{_0x16b26a['forEach'](_0x5b4d34=>{_0x18ce62['editing']['reconvertMarker'](_0x5b4d34);});});}['setAllMarkersAsInactive'](){const _0x2b093a=Array['from'](this['_activeMarkers']);if(!_0x2b093a['length'])return;this['_activeMarkers']['clear']();const _0x4c3428=getEditorFromContext(this['context']),_0x201570=_0x2b093a['map'](_0x375b72=>_0x4c3428['model']['markers']['get'](_0x375b72))['filter'](_0x3bb770=>!!_0x3bb770);_0x4c3428['model']['change'](()=>{_0x201570['forEach'](_0x24df12=>{_0x4c3428['editing']['reconvertMarker'](_0x24df12);});});}['_getPositionLimitingRange'](_0x1ac3e1,_0x2bf305,_0x165561='outside'){if(!_0x1ac3e1)return null;let _0x5dca10=_0x1ac3e1['parent'];for(;_0x5dca10&&_0x5dca10['parent']&&'$root'!==_0x5dca10['parent']['name']&&!_0x2bf305['model']['schema']['isLimit'](_0x5dca10)&&!_0x2bf305['model']['schema']['isBlock'](_0x5dca10);)_0x5dca10=_0x5dca10['parent'];if(!_0x5dca10||!_0x5dca10['name']||'$root'===_0x5dca10['name'])return null;let _0x147793=null;return _0x2bf305['model']['change'](_0x5d0b92=>{_0x147793='inside'===_0x165561?_0x5d0b92['createRangeIn'](_0x5dca10):_0x5d0b92['createRangeOn'](_0x5dca10);}),_0x147793;}['_validateMarkers'](_0x464e6a,_0x97b779){const _0x201f22=Array['from'](this['_markers']['keys']()),_0x58b19c=new Map();for(const _0x4fe5ce of _0x201f22){const _0x94739d=_0x464e6a['model']['markers']['get'](_0x4fe5ce);if(!_0x94739d)continue;const _0x484a1f=_0x94739d['getStart']()['path'][0x0];_0x58b19c['has'](_0x484a1f)||_0x58b19c['set'](_0x484a1f,[]),_0x58b19c['get'](_0x484a1f)['push'](_0x94739d);}const _0x391176=new Set();for(const _0x4394e3 of _0x464e6a['model']['document']['differ']['getChanges']()){let _0xd421ef=-0x1,_0x4e4c8e=null;if('insert'===_0x4394e3['type'])_0x4e4c8e=new ModelRange(_0x4394e3['position'],_0x4394e3['position']['getShiftedBy'](_0x4394e3['length'])),_0xd421ef=_0x4394e3['position']['path'][0x0];else{if('remove'!==_0x4394e3['type'])continue;_0x4e4c8e=new ModelRange(_0x4394e3['position']),_0xd421ef=_0x4394e3['position']['path'][0x0];}const _0x5601cf=_0x58b19c['get'](_0xd421ef)||[];if(_0x5601cf['length']){for(const _0x3a57f3 of _0x5601cf)if(_0x4e4c8e['root']['rootName']===_0x3a57f3['getRange']()['root']['rootName']&&('insert'!==_0x4394e3['type']||!_0x4e4c8e['containsRange'](_0x3a57f3['getRange']()))&&(_0x4e4c8e['isIntersecting'](_0x3a57f3['getRange']())||_0x4e4c8e['start']['isTouching'](_0x3a57f3['getRange']()['end'])||_0x4e4c8e['end']['isTouching'](_0x3a57f3['getRange']()['start']))){const _0x4bc514=this['_parseMarkerName'](_0x3a57f3['name']);Array['from'](this['_markers']['values']())['filter'](_0x45396a=>_0x45396a['groupId']===_0x4bc514['groupId'])['forEach'](_0x1d3f70=>_0x391176['add'](_0x1d3f70['id']));}}}if(_0x391176['size']){for(const _0x320d6f of _0x391176)_0x97b779['removeMarker'](_0x320d6f);return!0x0;}return!0x1;}['_handleMarkerChanges'](_0x13a2ed){for(const {name:_0xf027b4,data:_0x89a3e1}of _0x13a2ed['model']['document']['differ']['getChangedMarkers']()){if(!_0xf027b4['startsWith'](MARKER_PREFIX))continue;const _0xafe10e=_0x89a3e1['oldRange'],_0x9ac960=_0x89a3e1['newRange'],_0x1bd6e8=_0xafe10e&&'$graveyard'===_0xafe10e['root']['rootName'],_0x5738ce=_0x9ac960&&'$graveyard'===_0x9ac960['root']['rootName'];if(_0x1bd6e8&&_0x5738ce)continue;const _0x122f57=this['_parseMarkerName'](_0xf027b4);this['_markers']['get'](_0xf027b4)&&(_0x5738ce||!_0x9ac960?this['_eventEmitter']['fire']('changeMarkerRemoved',{'markerId':_0xf027b4,'changeId':_0x122f57['groupId']}):_0x1bd6e8&&_0x9ac960&&this['_eventEmitter']['fire']('changeMarkerRestored',{'markerId':_0xf027b4,'changeId':_0x122f57['groupId']}));}}['_parseMarkerName'](_0x5178d5){const _0x16aae9=_0x5178d5['split'](':'),_0x10f499=(_0x16aae9[0x1]||'')['split']('_');return{'prefix':_0x16aae9[0x0],'groupId':_0x10f499[0x0],'suffix':_0x10f499[0x1]};}['_translateOperationToEditorContent'](_0x41af8b,_0x51f2f1,_0x1e8c8e){if('insert'===_0x41af8b['type']){const _0x24d71f=_0x41af8b;return new InsertOperation(this['_changePosition'](_0x51f2f1['concat'](_0x24d71f['position']['offset']),_0x1e8c8e),_0x24d71f['nodes'],_0x24d71f['baseVersion']);}if('marker'===_0x41af8b['type']&&_0x41af8b['name']['startsWith']('$markedRemove')){const _0x4d77ce=_0x41af8b;return new MarkerOperation(_0x4d77ce['name'],_0x4d77ce['oldRange'],this['_changeRange'](_0x4d77ce['newRange'],_0x51f2f1['concat'](_0x4d77ce['newRange']['start']['offset']),_0x51f2f1['concat'](_0x4d77ce['newRange']['end']['offset']),_0x1e8c8e),_0x4d77ce['_markers'],_0x4d77ce['affectsData'],_0x4d77ce['baseVersion']);}return _0x41af8b;}['_groupAdjacentOperations'](_0xe787d7){if(!_0xe787d7['length'])return[];const _0x115770=[];let _0x172b3e=0x0,_0x170e67=0x0,_0x4db361=[];for(let _0x120d9d=0x0;_0x120d9d<=_0xe787d7['length'];_0x120d9d++){const _0x16aec5=_0xe787d7[_0x120d9d],_0x5de17e=_0xe787d7[_0x120d9d-0x1];!_0x16aec5||_0x5de17e&&!this['_getOperationEnd'](_0x5de17e)['isTouching'](this['_getOperationStart'](_0x16aec5))?(_0x115770['push']({'operations':_0x4db361,'operationsIsolated':_0x4db361['map'](_0x570c3e=>this['_shiftOperation'](_0x570c3e['clone'](),-_0x170e67)),'groupOffset':_0x172b3e}),_0x4db361=_0x16aec5?[_0x16aec5]:[],_0x170e67+=_0x172b3e,_0x172b3e=0x0):_0x4db361['push'](_0x16aec5),_0x16aec5&&'insert'===_0x16aec5['type']&&(_0x172b3e+=_0x16aec5['howMany']);}return _0x115770;}['_findAdjacentContextDistance'](_0xb6a2d0,_0x29eaa4,_0xc20fbf,_0x4f1287=0x1){const _0x23d98f=new ModelTreeWalker({'startPosition':_0xb6a2d0,'direction':_0x29eaa4});let _0xc687d=0x0;for(let _0x149c0c=0x0;_0x149c0c<_0x4f1287;_0x149c0c++){let _0x2ff603=0x0,_0x59ecb4=!0x1,_0xe072ef='forward'===_0x29eaa4?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x262f70}of _0x23d98f)if(_0x262f70['is']('$textProxy')){const _0x401f74=_0xe072ef['exec'](_0x262f70['data']);if(_0x401f74&&_0x401f74['length']){if(_0x2ff603+='forward'===_0x29eaa4?_0x401f74['index']+_0x401f74[0x0]['length']:_0x262f70['data']['length']-_0x401f74['index'],_0x401f74[0x0]['length']!==_0x262f70['data']['length'])break;_0x59ecb4=!0x0,_0xe072ef='forward'===_0x29eaa4?/^\w+/:/\w+$/;}else{if(_0x59ecb4)break;_0x2ff603+=_0x262f70['offsetSize'];}}else{if(_0x262f70['is']('element')){_0xc20fbf['isInline'](_0x262f70)&&!_0x59ecb4&&(_0x2ff603+=0x1);break;}}_0xc687d+=_0x2ff603,_0x23d98f['jumpTo'](_0xb6a2d0['getShiftedBy']('forward'===_0x29eaa4?_0xc687d:-_0xc687d));}return _0xc687d;}['_getChangeContext'](_0x49fe7f,_0x410cf0){const _0x37f2ee=getEditorFromContext(this['context'])['model']['schema'],_0x495341=this['_findAdjacentContextDistance'](_0x49fe7f,'backward',_0x37f2ee,CHANGE_CONTEXT_WORDS_LIMIT),_0x2a8fbe=this['_findAdjacentContextDistance'](_0x410cf0,'forward',_0x37f2ee,CHANGE_CONTEXT_WORDS_LIMIT),_0x4b6f25=_0x49fe7f['getShiftedBy'](-_0x495341),_0x24a393=_0x410cf0['getShiftedBy'](_0x2a8fbe);return{'start':_0x4b6f25,'end':_0x24a393,'hasContentBefore':!_0x4b6f25['isAtStart'],'hasContentAfter':!_0x24a393['isAtEnd']};}['_insertMarkers'](_0x36f7e7){const _0x3e683=this['context']['plugins']['get']('AIEditing'),_0x3504bc=new Set();getEditorFromContext(this['context'])['model']['change'](_0x37e545=>{for(const _0x3e45c3 of _0x36f7e7){const _0x2499d0=''+MARKER_PREFIX+_0x3e45c3['type']+':'+_0x3e45c3['groupId']+'_'+_0x3e683['_nextDataId'](_0x3504bc);this['_markers']['set'](_0x2499d0,{'id':_0x2499d0,'groupId':_0x3e45c3['groupId'],'type':_0x3e45c3['type'],'content':_0x3e45c3['content']}),_0x37e545['addMarker'](_0x2499d0,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x37e545['createRange'](_0x3e45c3['start'],_0x3e45c3['end'])});}});}['_createGetContextFn'](_0x169319,_0x719c8e,_0x38c4d9){let _0x245a42='';return()=>{if(!_0x245a42){const _0x2ddf5f=_0x719c8e['toView'](_0x169319,{'showSuggestionHighlights':!0x0});let _0x2d5e87=_0x2ddf5f['getChild'](0x0);if(_0x2d5e87['is']('containerElement')||(_0x2d5e87=_0x2ddf5f),!_0x2d5e87)return'';let _0x521c72=!0x1;const _0x503a13=[];for(const _0x358388 of _0x2d5e87['getChildren']())_0x358388['is']('element','span')&&_0x358388['hasClass']('ck-ai_review-marker_context-end')&&(_0x521c72=!0x1),_0x521c72&&_0x503a13['push'](_0x358388),_0x358388['is']('element','span')&&_0x358388['hasClass']('ck-ai_review-marker_context-start')&&(_0x521c72=!0x0);_0x2d5e87['_removeChildren'](0x0,_0x2d5e87['childCount']),_0x38c4d9?.['ellipsisBefore']&&_0x2d5e87['_appendChild']('…'),_0x2d5e87['_appendChild'](_0x503a13),_0x38c4d9?.['ellipsisAfter']&&_0x2d5e87['_appendChild']('…');const _0x5e61a5=_0x719c8e['htmlProcessor']['domConverter']['viewToDom'](_0x2ddf5f),_0x5a2b12=_0x719c8e['htmlProcessor']['htmlWriter']['getHtml'](_0x5e61a5);_0x245a42=_0x5a2b12;}return _0x245a42;};}['_createGetContentFn'](_0x2b8d53,_0x493c18){let _0x249ce5='';return()=>(_0x249ce5||(_0x249ce5=_0x493c18['stringify'](_0x2b8d53,{'showSuggestionHighlights':!0x0})),_0x249ce5);}['_createGetContentUsingDataIdFn'](_0x101ff7,_0x3b79ec,_0x3bc7be){let _0x2b44a9='';return()=>{if(!_0x2b44a9){const _0x404ae8=_0x3bc7be['toView'](new ModelDocumentFragment(_0x101ff7)),_0x24c34d=_0x3bc7be['htmlProcessor']['domConverter']['viewToDom'](_0x404ae8)['querySelector']('[data-id=\x22'+_0x3b79ec+'\x22]');_0x2b44a9=_0x24c34d?.['outerHTML']||'';}return _0x2b44a9;};}['_findMarkerElement'](_0x24af73,_0x1596de=0x5){let _0x17a1fa=_0x24af73,_0x349bca=null;for(let _0x359dfa=0x0;_0x359dfa<_0x1596de&&_0x17a1fa;_0x359dfa++){if(!_0x17a1fa['className']){_0x17a1fa=_0x17a1fa['parentElement'];continue;}if(!(''+_0x17a1fa['className'])['includes']('ck-ai_review-marker_')){_0x17a1fa=_0x17a1fa['parentElement'];continue;}if(!_0x17a1fa['getAttribute']('data-marker-id'))break;_0x349bca=_0x17a1fa;break;}return _0x349bca;}['_findMarkerElementById'](_0x3397b3){const _0x30f8c2=getEditorFromContext(this['context']),_0x355d41=_0x30f8c2['model']['markers']['get'](_0x3397b3);return _0x355d41?getMarkerDomElement(_0x30f8c2['editing'],_0x355d41):null;}['_getMarkersDataForGroup'](_0x5d5794){return Array['from'](this['_markers']['values']())['filter'](_0x28e2de=>_0x28e2de['groupId']===_0x5d5794);}['_getOperationStart'](_0x148b79){return'insert'===_0x148b79['type']?_0x148b79['position']:_0x148b79['newRange']['start'];}['_getOperationEnd'](_0x450b82,_0x5ee2ba=!0x1){return'insert'===_0x450b82['type']?_0x5ee2ba?_0x450b82['position']:_0x450b82['position']['getShiftedBy'](_0x450b82['howMany']):_0x450b82['newRange']['end'];}['_shiftOperation'](_0x2e47f2,_0xe45ba2){return'insert'===_0x2e47f2['type']?_0x2e47f2['position']=_0x2e47f2['position']['getShiftedBy'](_0xe45ba2):'marker'===_0x2e47f2['type']&&_0x2e47f2['newRange']&&(_0x2e47f2['newRange']=new ModelRange(_0x2e47f2['newRange']['start']['getShiftedBy'](_0xe45ba2),_0x2e47f2['newRange']['end']['getShiftedBy'](_0xe45ba2))),_0x2e47f2;}['_changeOperationOwnerDocument'](_0x37e0ec,_0x4d3b37){'insert'===_0x37e0ec['type']?_0x37e0ec['position']=this['_changePositionOwnerDocument'](_0x37e0ec['position'],_0x4d3b37):'marker'===_0x37e0ec['type']&&_0x37e0ec['newRange']&&(_0x37e0ec['newRange']=this['_changeRangeOwnerDocument'](_0x37e0ec['newRange'],_0x4d3b37));}['_changePositionOwnerDocument'](_0x1977ee,_0x444f16){return new ModelPosition(_0x444f16,_0x1977ee['path']);}['_changeRangeOwnerDocument'](_0x454d2c,_0x2e07b7){return new ModelRange(this['_changePositionOwnerDocument'](_0x454d2c['start'],_0x2e07b7),this['_changePositionOwnerDocument'](_0x454d2c['end'],_0x2e07b7));}['_changePosition'](_0xd6f13f,_0x292e7c){return new ModelPosition(_0x292e7c,[..._0xd6f13f]);}['_changeRange'](_0x40fcd7,_0x113e31,_0x14c490,_0x2317fc){return new ModelRange(this['_changePosition'](_0x113e31,_0x2317fc),this['_changePosition'](_0x14c490,_0x2317fc));}['_sortMarkers'](_0x156e28){const _0x55a35b=_0x24e0f4=>{switch(_0x24e0f4){case'insert':return 0x0;case'remove-context':return 0x1;case'remove-only':return 0x2;case'remove-text':return 0x3;}};return _0x156e28['sort']((_0x2a41d0,_0x588e13)=>_0x55a35b(_0x2a41d0['type'])-_0x55a35b(_0x588e13['type']));}['_hasSameTopLevelElement'](_0x5e5481,_0x45c2d7){const _0x314b99=_0x5e5481['getChild'](0x0),_0xb77624=_0x45c2d7['getChild'](0x0);return!(!_0x314b99||!_0xb77624)&&((!_0x314b99['is']('element')||!_0xb77624['is']('element')||_0x314b99['name']===_0xb77624['name'])&&!(_0x314b99['is']('element')&&!_0xb77624['is']('element')||!_0x314b99['is']('element')&&_0xb77624['is']('element')));}['_haveSingleTopLevelElement'](_0x184186){return 0x1===_0x184186['childCount'];}['_haveOnlyInlineContent'](_0xc5ecc0,_0x4500d9){for(const _0x5390ad of _0xc5ecc0['getChildren']())if(_0x5390ad['is']('element')&&!_0x4500d9['isInline'](_0x5390ad))return!0x1;return!0x0;}['_upsertDataId'](_0x58b686,_0x482b0b){let _0x33a707=_0x58b686['getAttribute'](DATA_ID_MODEL_ATTRIBUTE);return _0x33a707||(_0x33a707=_0x482b0b(),_0x58b686['_setAttribute'](DATA_ID_MODEL_ATTRIBUTE,_0x33a707)),_0x33a707;}}class AIReviewCheckResult extends EmitterMixin(){['id'];['contentNew'];['contentInitial'];['documentVersion'];constructor({id:_0x1047eb,contentNew:_0x19a083,contentInitial:_0x37bdfe,documentVersion:_0x27fd92}){super(),this['id']=_0x1047eb,this['contentNew']=_0x19a083,this['contentInitial']=_0x37bdfe,this['documentVersion']=_0x27fd92;}}class AIReviewCheckResultChange extends ObservableMixin(){['id'];['parent'];['_data'];['_editorOperations']=[];constructor(_0xe93b5e,_0xed61ce,_0x5f427d){super(),this['id']=_0xe93b5e,this['parent']=_0x5f427d,this['_data']=_0xed61ce,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(_0x2c0725,_0x3d447b,_0x24a404,_0x161c84,_0x269ddd){super(),this['_sourceCheck']=_0x3d447b,this['_documentData']=_0x2c0725,this['_aiConnector']=_0x24a404,this['_reviewParams']=_0x161c84,this['_reviewArgs']=_0x269ddd,this['on']('change:status',(_0x4e8d50,_0x5acbdc,_0x3244fc)=>{'aborted'==_0x3244fc&&(this['_wasAborted']=!0x0),this['fire']('reviewCheckRunUpdated',{'status':_0x3244fc,'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'](_0x17a12d=>'pending'===_0x17a12d['status']);}get['currentError'](){return this['_currentError'];}['updateDocumentData'](_0x40daf2){this['_documentData']=_0x40daf2;}async['start'](){this['status']='loading',this['_currentError']=void 0x0;try{this['_activeRequest']=this['_createApiRequest']();const _0x120873=await this['_activeRequest']['getStream']();this['status']='data';for await(const _0x50029b of _0x120873)'unmodified'!==_0x50029b['data']['operation']&&('error'!==_0x50029b['data']['operation']?'review-metadata'!==_0x50029b['event']?this['_addReviewCheckResult'](_0x50029b['data']['dataId'],_0x50029b['data']['textDelta']):this['callId']=_0x50029b['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(_0x5a84ab){this['_currentError']=_0x5a84ab,_0x5a84ab instanceof Error&&_0x5a84ab['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'](_0x463773,_0x23c289){const _0xa7f7eb=this['_results']['get'](_0x463773);if(!_0xa7f7eb)return;if(0x0===_0x23c289['length'])return;const _0x24f89e=[];_0x23c289['forEach']((_0x5bab1c,_0x334316)=>{const _0x4b5ed0=new AIReviewCheckResultChange(_0xa7f7eb['id']+'-'+_0x334316,_0x5bab1c,_0xa7f7eb);_0x4b5ed0['on']('change:status',()=>{this['fire']('reviewCheckResultChangeStatusUpdated',{'change':_0x4b5ed0,'status':_0x4b5ed0['status']});}),_0x4b5ed0['on']('change:isActivated',()=>{_0x4b5ed0['isActivated']?this['fire']('reviewCheckResultActivated',{'change':_0x4b5ed0}):this['fire']('reviewCheckResultDeactivated',{'change':_0x4b5ed0});}),this['_changes']['push'](_0x4b5ed0),_0x24f89e['push'](_0x4b5ed0);}),this['fire']('reviewCheckResultReady',{'changes':_0x24f89e,'result':_0xa7f7eb,'source':this});}['abort'](){this['_activeRequest']&&(this['_activeRequest']['abortController']['abort'](),this['_activeRequest']=null,this['status']='aborted');}['isChangeActive'](_0x5c0c02){const _0x1be1fc=this['_changes']['find'](_0x206955=>_0x206955['id']===_0x5c0c02);return!(!_0x1be1fc||'pending'!==_0x1be1fc['status']);}['isAnyChangeActivated'](){return this['_changes']['some'](_0x41fa70=>!0x0===_0x41fa70['isActivated']);}['getActiveChanges'](){return this['_changes']['filter'](_0x226c6b=>'pending'===_0x226c6b['status']);}['getChangeById'](_0x38d9f9){return this['_changes']['find'](_0x2bd626=>_0x2bd626['id']===_0x38d9f9);}['markAllChangesAsAccepted'](){for(const _0x3624a4 of this['_changes'])'pending'===_0x3624a4['status']&&(_0x3624a4['status']='accepted');this['_checkIfFinished']();}['markChangeAsAccepted'](_0x50924e){const _0x1fc648=this['_changes']['find'](_0x3df709=>_0x3df709['id']===_0x50924e);_0x1fc648&&'pending'===_0x1fc648['status']&&(_0x1fc648['status']='accepted'),this['_checkIfFinished']();}['markChangeAsRejected'](_0x2b600b){const _0x2a148e=this['_changes']['find'](_0x2ddb8f=>_0x2ddb8f['id']===_0x2b600b);_0x2a148e&&'pending'===_0x2a148e['status']&&(_0x2a148e['status']='rejected'),this['_checkIfFinished']();}['markChangeAsOutdated'](_0x4a7c15){const _0x49a5f6=this['_changes']['find'](_0x1ee391=>_0x1ee391['id']===_0x4a7c15);_0x49a5f6&&'pending'===_0x49a5f6['status']&&(_0x49a5f6['status']='outdated'),this['_checkIfFinished']();}['markChangeAsPending'](_0x43caac){const _0x1331f6=this['_changes']['find'](_0x2d59ca=>_0x2d59ca['id']===_0x43caac);_0x1331f6&&'outdated'===_0x1331f6['status']&&(_0x1331f6['status']='pending'),this['_checkIfFinished']();}['activateChange'](_0x1702e3){this['_changes']['filter'](_0x378f50=>_0x378f50['isActivated']&&_0x378f50['id']!==_0x1702e3)['forEach'](_0x1c8a44=>{_0x1c8a44['isActivated']=!0x1;});const _0xc28974=this['_changes']['find'](_0x3b5261=>_0x3b5261['id']===_0x1702e3);_0xc28974&&'pending'===_0xc28974['status']&&(_0xc28974['isActivated']=!0x0);}['deactivateChange'](){this['_changes']['filter'](_0x668597=>_0x668597['isActivated'])['forEach'](_0x2993c3=>{_0x2993c3['isActivated']=!0x1;});}['forceReadyState'](){this['status']='ready';}async['sendRating'](_0x35752a){if('initialized'===this['status']||'loading'===this['status']||'data'===this['status']||this['_wasAborted'])return;if(!this['callId']||0x0===this['_changes']['length'])return;let _0x28b136;if(_0x35752a){const _0x80c8f3=this['_changes']['find'](_0x5f1158=>_0x5f1158['id']===_0x35752a);if(_0x80c8f3&&_0x80c8f3['isRated'])return;_0x80c8f3&&(_0x28b136=_0x80c8f3['parent']['id'],_0x80c8f3['isRated']=!0x0);}const _0x482b44={'positiveCount':this['_changes']['filter'](_0x3c6aa8=>'accepted'===_0x3c6aa8['status'])['length'],'totalCount':this['_changes']['length']};this['_sendRatingRequest'](_0x482b44,this['callId'],_0x28b136);}['_addReviewCheckResult'](_0xbe747f,_0x36761c){const _0xd508fe=this['_documentData']['elements']['get'](_0xbe747f);if(!_0xd508fe)return;const _0x54fc16=_0xd508fe['getContent']();if(_0x54fc16===_0x36761c)return;const _0x5dc7ae=new AIReviewCheckResult({'id':_0xbe747f,'contentInitial':_0x54fc16,'contentNew':_0x36761c,'documentVersion':this['_documentData']['version']});this['_results']['set'](_0x5dc7ae['id'],_0x5dc7ae),this['fire']('reviewCheckResultAdded',{'result':_0x5dc7ae,'source':this});}['_checkIfFinished'](){'finished'===this['status']&&(this['_changes']['filter'](_0x44cb3d=>'pending'===_0x44cb3d['status'])['length']>0x0&&(this['status']='ready')),'ready'===this['status']&&(0x0===this['_changes']['filter'](_0x2fb6d2=>'pending'===_0x2fb6d2['status'])['length']&&(this['status']='finished'));}}class AIReviewSystemCheckRun extends AIReviewCheckRun{get['subTitle'](){if(!this['_reviewParams']||0x0===this['_reviewParams']['length'])return'';const _0x3c9758=[];if(this['_reviewParams']['length']>0x0&&this['_sourceCheck']['options'])for(let _0x175e9f=0x0;_0x175e9f<this['_reviewParams']['length'];_0x175e9f++){if(!this['_reviewParams'][_0x175e9f]||!this['_sourceCheck']['options'][_0x175e9f])continue;const _0x24d041=this['_sourceCheck']['options'][_0x175e9f],_0x1441f2=_0x24d041['data']?.['find'](_0x52535e=>_0x52535e['id']===this['_reviewParams'][_0x175e9f]);_0x1441f2&&_0x3c9758['push'](_0x1441f2['label']);}return _0x3c9758['join'](',\x20');}get['reviewName'](){return this['_composeReviewName']();}['_createApiRequest'](){return this['_aiConnector']['callSystemReview']({'reviewName':this['_composeReviewName'](),'content':this['_documentData']['content'],'args':this['_reviewArgs']});}['_sendRatingRequest'](_0x28e0f9,_0x54a9b7,_0x9bb279){return this['_aiConnector']['upsertAIReviewRating'](this['reviewName'],_0x54a9b7,_0x28e0f9,_0x9bb279);}['_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(_0x1654fb,_0x563f88)=>{const _0x2c4349=this['_aiReviewCheckList']['getCheckById'](_0x563f88['id']);if(_0x2c4349){this['_onReviewCheckRun'](_0x563f88),this['_aiReviewCoreEditing']['switchToReadOnly'](),this['_currentReviewCheckRun']=this['_createReviewCheckRun'](_0x563f88,_0x2c4349),this['_aiReviewCoreUi']['setCheckResultTitle'](this['_currentReviewCheckRun']['title'],this['_currentReviewCheckRun']['subTitle']),this['_currentReviewCheckRun']['on']('reviewCheckRunUpdated',(_0x381dc8,_0xd9d1d)=>{switch(_0xd9d1d['status']){case'data':case'loading':this['_aiReviewCoreUi']['showCheckRunResults'](_0xd9d1d);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'!==_0xd9d1d['status']&&'error-chunk'!==_0xd9d1d['status']&&'error-general'!==_0xd9d1d['status']||this['_currentReviewCheckRun']?.['sendRating']();}),this['_currentReviewCheckRun']['on']('reviewCheckResultAdded',(_0x3e2624,_0x33b992)=>{if(!this['_currentReviewCheckRun'])throw new CKEditorError('ai-review-mode-no-current-check-run',this);const _0x2dea30=this['_diffContent'](_0x33b992['result']['contentInitial'],_0x33b992['result']['contentNew']);_0x33b992['source']['addResultChanges'](_0x33b992['result']['id'],_0x2dea30);}),this['_currentReviewCheckRun']['on']('reviewCheckResultReady',(_0xd5349d,_0x30b611)=>{for(const _0x421e35 of _0x30b611['changes'])this['_aiReviewCoreUi']['showCheckRunResult'](_0x421e35);this['_markChangePositionInEditorContent'](_0x30b611['changes'],_0x30b611['source']['documentData']);}),this['_currentReviewCheckRun']['on']('reviewCheckResultChangeStatusUpdated',(_0x294035,_0x148e5c)=>{this['_aiReviewCoreUi']['updateChangeState'](_0x148e5c['change']['id'],_0x148e5c['status']);}),this['_currentReviewCheckRun']['on']('reviewCheckResultActivated',(_0x119a95,_0x246b89)=>{this['_onReviewCheckResultActivated'](_0x246b89);}),this['_currentReviewCheckRun']['on']('reviewCheckResultDeactivated',()=>{this['_onReviewCheckResultDeactivated']();});try{await this['_currentReviewCheckRun']['start']();}catch(_0x5f1d99){_0x5f1d99 instanceof Error&&_0x5f1d99['message']['includes']('ai-request-aborted')||(_0x5f1d99 instanceof CKEditorError?this['_logError'](_0x5f1d99):this['_logError'](new CKEditorError('ai-review-mode-check-run-failed',this,void 0x0,_0x5f1d99)));}}else this['_logError'](new CKEditorError('ai-review-mode-source-check-not-found',this,{'checkId':_0x563f88['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 _0x4dadc1=this['_currentReviewCheckRun']['getActiveChanges']();if(!_0x4dadc1['length'])return;this['_aiReviewCoreEditing']['applyChange'](_0x4dadc1['map'](_0x27d883=>_0x27d883['id']));const _0x584034=this['_currentReviewCheckRun'];_0x584034['markAllChangesAsAccepted'](),_0x584034['sendRating']();}),this['listenTo'](this['_aiReviewCoreUi'],'acceptChange',(_0x958134,_0x1d284f)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x1d284f['id'])&&(this['_aiReviewCoreEditing']['applyChange']([_0x1d284f['id']]),this['_currentReviewCheckRun']['markChangeAsAccepted'](_0x1d284f['id']),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x1d284f['id']));}),this['listenTo'](this['_aiReviewCoreUi'],'dismissChange',(_0x5522d7,_0x5314bf)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x5314bf['id'])&&(this['_aiReviewCoreEditing']['rejectChange'](_0x5314bf['id']),this['_currentReviewCheckRun']['markChangeAsRejected'](_0x5314bf['id']),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x5314bf['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',(_0x5d3c67,_0x3832fd)=>{this['_onActivateChange'](_0x3832fd);}),this['listenTo'](this['_aiReviewCoreUi'],'deactivateChange',(_0x506c4e,_0x1a2b5a)=>{this['_onDeactivateChange'](_0x1a2b5a);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerClicked',(_0x3c3fcf,_0x259e4f)=>{this['_onChangeMarkerClicked'](_0x3c3fcf,_0x259e4f);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerHovered',(_0x35259d,_0x26f193)=>{this['_onChangeMarkerHovered'](_0x35259d,_0x26f193);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerBlurred',()=>{this['_onChangeMarkerBlurred']();}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerRemoved',(_0x4bc44d,_0x4a6aae)=>{this['_onChangeMarkerRemoved'](_0x4bc44d,_0x4a6aae);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerRestored',(_0x35a745,_0x3709e7)=>{this['_onChangeMarkerRestored'](_0x35a745,_0x3709e7);});}['_createReviewCheckRun'](_0x323a33,_0x4b9f92){return new AIReviewSystemCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x4b9f92,this['_aiConnector'],_0x323a33['params'],_0x323a33['args']);}['_onChangeMarkerRemoved'](_0x1a7ac4,_0xdb2bb2){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['markChangeAsOutdated'](_0xdb2bb2['changeId']);}['_onChangeMarkerRestored'](_0x2e530e,_0x4dce08){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['markChangeAsPending'](_0x4dce08['changeId']);}['_onCheckRunFinished'](){this['_aiReviewCoreUi']['showReviewCompletedView']();}['_initRequiredPlugins'](){this['_aiConnector']=this['context']['plugins']['get']('AIConnector');}['_onReviewRunLeave'](_0x409dfa=!0x1){this['_currentReviewCheckRun']&&(this['_currentReviewCheckRun']['hasModifications']||this['_currentReviewCheckRun']['sendRating'](),this['_currentReviewCheckRun']['stopListening'](),this['_currentReviewCheckRun']['abort'](),this['_currentReviewCheckRun']=void 0x0),_0x409dfa&&this['_aiReviewCoreUi']['showReviewCheckList'](),this['_aiReviewCoreEditing']['clearAllMarkers'](),this['_aiReviewCoreEditing']['switchToEdit'](),this['_changeActivationSource']=null;const _0x3a987a=this['_aiReviewCoreEditing']['getEditor']();_0x3a987a&&_0x3a987a['editing']['view']['change'](_0x572848=>{const _0x1ed5c0=_0x3a987a['editing']['view']['document']['getRoot']();_0x572848['removeClass']('ck-ai_review-diff',_0x1ed5c0),_0x572848['removeClass']('ck-ai_review-highlights',_0x1ed5c0),_0x572848['removeClass']('ck-ai-translate-mode-content',_0x1ed5c0);});}['_getTranslationWithDefault'](_0x14a752,_0x524bf4){const _0x2c8745=getTranslation$i(this['context']['locale'],_0x14a752);return _0x2c8745===_0x14a752?_0x524bf4:_0x2c8745;}['_logError'](_0x2a185d,_0x1cf8f5=!0x1){logError(_0x2a185d['message']),_0x1cf8f5||(_0x2a185d['message']['startsWith']('ai-review-mode-models-unable-to-retrieve')?this['_aiReviewCoreUi']['showGeneralReviewCoreErrorView']():this['_aiReviewCoreUi']['showGeneralResultsErrorView']());}['_scrollToChange'](_0x333b76){if('content'===this['_changeActivationSource']){const _0x1b2151=this['_aiReviewCoreUi']['getChangeElement'](_0x333b76);_0x1b2151&&scrollAncestorsToShowTarget(_0x1b2151['closest']('.ck-ai_review__check-run-result')||_0x1b2151);}else{if('panel'===this['_changeActivationSource']){const _0x7e8e1e=this['_getChangeContentElement'](_0x333b76);if(!_0x7e8e1e)return;scrollViewportToShowTarget({'target':_0x7e8e1e,'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(_0x3091c6){this['id']=_0x3091c6['id'],this['commandId']=_0x3091c6['commandId'],this['title']=_0x3091c6['title'],this['description']=_0x3091c6['description'],this['isParameterized']=_0x3091c6['isParameterized'],this['useArgs']=_0x3091c6['useArgs'],this['options']=_0x3091c6['options'],this['args']=_0x3091c6['args'];}}class AIReviewCheckList extends ObservableMixin(){['_checks']=[];['setupChecks'](_0x4caeb1){this['_checks']=_0x4caeb1['map'](_0x4b5fd7=>new AIReviewCheck(_0x4b5fd7));}get['checks'](){return this['_checks'];}['getCheckById'](_0x283de7){return this['checks']['find'](_0x50be02=>_0x50be02['id']===_0x283de7);}['removeCheckById'](_0x524960){this['_checks']=this['_checks']['filter'](_0x5dadb1=>_0x5dadb1['id']!==_0x524960);}}class AIReviewCheckCustom extends AIReviewCheck{['_models']=[];['_defaultModel']=null;constructor(_0x5ddaf1,_0x1991f8,_0x443d22){super(_0x5ddaf1),this['_models']=_0x1991f8,this['_defaultModel']=_0x443d22;}get['models'](){return this['_models'];}get['defaultModel'](){return this['_defaultModel'];}}class AIReviewCheckExtra extends AIReviewCheck{['isExtra']=!0x0;['prompt'];['model'];['_defaultModel']=null;constructor(_0x573620,_0x9426c7,_0x5a92b8){super(_0x573620),this['prompt']=_0x573620['prompt'],this['model']=_0x573620['model'],this['model']?this['_defaultModel']=_0x9426c7['find'](_0xbbc7d1=>_0xbbc7d1['id']===this['model'])||null:this['_defaultModel']=_0x5a92b8;}get['defaultModel'](){return this['_defaultModel'];}}class AIReviewModeCheckList extends AIReviewCheckList{['_allModels']=[];['_recommendedModels']=[];['_defaultModel']=null;constructor(_0x2edb68,_0x4a0a0e,_0xb56a52){super(),this['_allModels']=_0x2edb68,this['_recommendedModels']=_0x4a0a0e,this['_defaultModel']=_0xb56a52;}['setupChecks'](_0x38ae14){this['_checks']=_0x38ae14['map'](_0x575984=>!0x0===_0x575984['isExtra']?new AIReviewCheckExtra(_0x575984,this['_allModels'],this['_defaultModel']):'custom'===_0x575984['id']?new AIReviewCheckCustom(_0x575984,this['_recommendedModels'],this['_defaultModel']):new AIReviewCheck(_0x575984));}}class AIReviewCustomCheckRun extends AIReviewCheckRun{['_prompt'];['_model'];constructor(_0x2b82cb,_0x1c46e2,_0x4df0a6,_0x5ac338,_0xad3192){super(_0x4df0a6,_0x5ac338,_0xad3192),this['_prompt']=_0x2b82cb,this['_model']=_0x1c46e2;}get['subTitle'](){return this['_prompt'];}['_createApiRequest'](){return this['_aiConnector']['callCustomReview']({'content':this['_documentData']['content'],'prompt':this['_prompt'],'model':this['_model']});}['_sendRatingRequest'](_0x289951,_0x1c662a,_0x44ef05){return this['_aiConnector']['upsertCustomAIReviewRating'](_0x1c662a,_0x289951,_0x44ef05);}}class AIReviewExtraCheckRun extends AIReviewCustomCheckRun{get['subTitle'](){return'';}set['prompt'](_0x53c36e){this['_prompt']=_0x53c36e;}set['model'](_0x1306b7){this['_model']=_0x1306b7;}}class AIReviewModeController extends AIReviewCoreController{static get['pluginName'](){return'AIReviewModeController';}['_isDiffOn']=!0x1;['_hasDefaultAvailableCommands']=!0x1;constructor(_0x1a200b){super(_0x1a200b),this['_hasDefaultAvailableCommands']=!this['context']['config']['get']('ai.review.availableCommands'),this['context']['config']['define']('ai.review.availableCommands',AI_REVIEW_CHECKS['map'](_0x563a47=>_0x563a47['id'])),this['context']['config']['define']('ai.review.extraCommands',[]);}async['init'](){await super['init'](),this['listenTo'](this['_aiReviewCoreUi'],'toggleDiff',(_0x166824,_0x8e8263)=>{this['_isDiffOn']=_0x8e8263['on'],this['_onDiffChange'](this['_isDiffOn']);});}['_initRequiredPlugins'](){super['_initRequiredPlugins'](),this['_aiReviewCoreUi']=this['context']['plugins']['get']('AIReviewModeUI'),this['_aiReviewCoreEditing']=this['context']['plugins']['get']('AIReviewCoreEditing');}['_createReviewCheckRun'](_0xd77829,_0x52e7dc){return _0xd77829['isCustom']?new AIReviewCustomCheckRun(_0xd77829['args']['prompt'],_0xd77829['args']['model'],this['_aiReviewCoreEditing']['getDocumentData'](),_0x52e7dc,this['_aiConnector']):_0x52e7dc['isExtra']?new AIReviewExtraCheckRun(_0x52e7dc['prompt'],_0x52e7dc['defaultModel']['id'],this['_aiReviewCoreEditing']['getDocumentData'](),_0x52e7dc,this['_aiConnector']):new AIReviewSystemCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x52e7dc,this['_aiConnector'],_0xd77829['params'],_0xd77829['args']);}['_onReviewCheckResultActivated'](_0x169fb9){this['_aiReviewCoreUi']['setActiveStateInResults'](_0x169fb9['change']['id']),this['_scrollToChange'](_0x169fb9['change']['id']);const _0x427d49=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x169fb9['change']['id']);if(!_0x427d49)return;const _0x5f3018=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x169fb9['change'],()=>_0x427d49['getElement'](),void 0x0,'click',_0x5f3018?.['editing']?.['view']?.['getDomRoot'](),_0x5f3018?.['ui']?.['viewportOffset']),this['_aiReviewCoreEditing']['setMarkersInElementAsActive'](_0x169fb9['change']['id']);}['_onReviewCheckResultDeactivated'](){this['_aiReviewCoreUi']['resetActiveStateInResults'](),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_aiReviewCoreEditing']['setAllMarkersAsInactive']();}['_onActivateChange'](_0x13ee20){this['_currentReviewCheckRun']&&'click'===_0x13ee20['uiInteraction']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0x13ee20['id']));}['_onDeactivateChange'](_0x1167f3){this['_currentReviewCheckRun']&&'balloon'===_0x1167f3['origin']&&this['_currentReviewCheckRun']['deactivateChange']();}['_onChangeMarkerClicked'](_0x1a5102,_0x5e8d04){if(!this['_currentReviewCheckRun'])return;this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x5e8d04['changeId']);const _0x2cda1f=this['_currentReviewCheckRun']['getChangeById'](_0x5e8d04['changeId']);if(!_0x2cda1f)return;const _0xab997e=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x2cda1f,_0x5e8d04['markerElement'],_0x5e8d04['domEvent'],'click',_0xab997e?.['editing']?.['view']?.['getDomRoot'](),_0xab997e?.['ui']?.['viewportOffset']);}['_onChangeMarkerHovered'](_0x1b5cb3,_0x443acb){if(!this['_currentReviewCheckRun'])return;if(this['_currentReviewCheckRun']['isAnyChangeActivated']())return;const _0xd6f3=this['_currentReviewCheckRun']['getChangeById'](_0x443acb['changeId']);if(!_0xd6f3)return;const _0x68172d=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0xd6f3,_0x443acb['markerElement'],_0x443acb['domEvent'],'hover',_0x68172d?.['editing']?.['view']?.['getDomRoot'](),_0x68172d?.['ui']?.['viewportOffset']);}['_onChangeMarkerBlurred'](){if(!this['_currentReviewCheckRun'])return;this['_currentReviewCheckRun']['isAnyChangeActivated']()||this['_aiReviewCoreUi']['hideChangeBalloon']();}['_getChangeContentElement'](_0x3e7699){const _0x4698d9=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x3e7699);return _0x4698d9?_0x4698d9['getElement']():null;}['_markChangePositionInEditorContent'](_0x199d18,_0x1d8780){this['_aiReviewCoreEditing']['markChangePositionInEditorContent'](_0x199d18,_0x1d8780);}['_diffContent'](_0x1016fc,_0x4f3c1d){return this['_aiReviewCoreEditing']['diffContent'](_0x1016fc,_0x4f3c1d);}['_onReviewCheckRun'](){this['_onDiffChange'](this['_isDiffOn']);}['_onDiffChange'](_0x1a4740){const _0x55ee45=this['_aiReviewCoreEditing']['getEditor']();_0x1a4740?this['_aiReviewCoreUi']['hideDiffInBalloon']():this['_aiReviewCoreUi']['showDiffInBalloon'](),_0x55ee45&&_0x55ee45['editing']['view']['change'](_0x1ded0a=>{const _0x2fdf12=_0x55ee45['editing']['view']['document']['getRoot']();for(const _0xbc8b8b of _0x2fdf12['getClassNames']())_0xbc8b8b['startsWith']('ck-ai_review-')&&_0x1ded0a['removeClass'](_0xbc8b8b,_0x2fdf12);_0x1ded0a['addClass'](_0x1a4740?'ck-ai_review-diff':'ck-ai_review-highlights',_0x2fdf12);});}async['_getChecksList'](){const _0x34fb78=[...AI_REVIEW_CHECKS,...this['_getExtraChecks']()],_0x32d832=this['context']['config']['get']('ai.review.availableCommands')||[];this['_logErrorForNonExistentChecks'](_0x32d832,_0x34fb78);let _0x2f082e=_0x34fb78;this['_hasDefaultAvailableCommands']||(_0x2f082e=_0x32d832['map'](_0x52a635=>_0x34fb78['find'](_0x2523cf=>_0x2523cf['id']===_0x52a635))['filter'](_0x4a9f33=>!!_0x4a9f33)),_0x2f082e=_0x2f082e['map'](_0x20363a=>_0x20363a['isExtra']?_0x20363a:this['_translateReviewCheck'](_0x20363a));const _0x290529=_0x2f082e['some'](_0xe7ac08=>_0xe7ac08['isExtra']||'custom'===_0xe7ac08['id']);let _0x5c2110=[],_0x30900f=[],_0x1a6b99=null;if(_0x290529){const _0x1b3127=await this['_getModels']();_0x5c2110=_0x1b3127['all'],_0x30900f=_0x1b3127['recommended'],_0x1a6b99=_0x1b3127['default'];}const _0x2d3f8b=new AIReviewModeCheckList(_0x5c2110,_0x30900f,_0x1a6b99);return _0x2d3f8b['setupChecks'](_0x2f082e),_0x290529&&this['_filterChecksWithMissingModel'](_0x2d3f8b),_0x2d3f8b;}['_getExtraChecks'](){return(this['context']['config']['get']('ai.review.extraCommands')||[])['map'](_0xec81cb=>({'id':_0xec81cb['id'],'commandId':_0xec81cb['id'],'title':_0xec81cb['label'],'description':_0xec81cb['description'],'isParameterized':!0x1,'isExtra':!0x0,'prompt':_0xec81cb['prompt'],'model':_0xec81cb['model']}));}['_logErrorForNonExistentChecks'](_0x3924b5,_0xa1cb50){const _0x5ab47e=_0x3924b5['filter'](_0x226bbe=>!_0xa1cb50['some'](_0x3f0d1c=>_0x3f0d1c['id']===_0x226bbe));_0x5ab47e['length']&&this['_logError'](new CKEditorError('ai-review-mode-non-existent-commands-used',this,{'commandIds':_0x5ab47e['join'](',\x20')}),!0x0);}async['_getModels'](){try{const _0x1ceaa9=new AIModels({'connector':this['_aiConnector'],'config':this['context']['config']['get']('ai.models'),'locale':this['context']['locale']});return{'all':await _0x1ceaa9['getAll'](),'recommended':await _0x1ceaa9['getAvailableModels'](),'default':await _0x1ceaa9['getDefault']()};}catch(_0x3c15d3){return this['_logError'](new CKEditorError('ai-review-mode-models-unable-to-retrieve',this,void 0x0,_0x3c15d3)),{'all':[],'recommended':[],'default':null};}}['_translateReviewCheck'](_0x4362c8){const _0x4a3963='AI_REVIEW_CHECK_'+_0x4362c8['id']['toUpperCase']()['replaceAll']('-','_'),_0x1779b8={..._0x4362c8,'title':this['_getTranslationWithDefault'](_0x4a3963+'_TITLE',_0x4362c8['title']),'description':this['_getTranslationWithDefault'](_0x4a3963+'_DESCRIPTION',_0x4362c8['description'])};return _0x4362c8['options']&&(_0x1779b8['options']=_0x4362c8['options']['map'](_0x30faea=>({..._0x30faea,'label':this['_getTranslationWithDefault'](_0x4a3963+'_OPTIONS_LABEL',_0x30faea['label']||''),'data':_0x30faea['data']?_0x30faea['data']['map'](_0x24d700=>({..._0x24d700,'label':this['_getTranslationWithDefault'](_0x4a3963+'_OPTIONS_DATA_'+_0x24d700['id']['toUpperCase'](),_0x24d700['label'])})):void 0x0}))),_0x1779b8;}['_filterChecksWithMissingModel'](_0x48d9ad){const _0x240e20=[];_0x48d9ad['checks']['forEach'](_0x339085=>{(_0x339085 instanceof AIReviewCheckExtra&&!_0x339085['defaultModel']||_0x339085 instanceof AIReviewCheckCustom&&!_0x339085['models']['length'])&&_0x240e20['push'](_0x339085['id']);}),_0x240e20['length']&&_0x240e20['forEach'](_0x565bc4=>{_0x48d9ad['removeCheckById'](_0x565bc4),this['_logError'](new CKEditorError('ai-review-mode-command-unavailable-due-to-missing-model',this,{'commandId':_0x565bc4}),!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'](_0x2d0742){this['_checks']=_0x2d0742['map'](_0x5ac79e=>new AITranslateCheck(_0x5ac79e));}}class AITranslateCheckRun extends AIReviewSystemCheckRun{['_title'];constructor(_0x29e621,_0x4ce8df,_0x40c4a7,_0x878390,_0x5f0c94,_0x5e23f5){super(_0x29e621,_0x4ce8df,_0x40c4a7,_0x5f0c94,_0x5e23f5),this['_title']=_0x878390;}get['title'](){return this['_title'];}get['subTitle'](){return this['_sourceCheck']['title'];}}class AITranslateController extends AIReviewCoreController{static get['pluginName'](){return'AITranslateController';}constructor(_0x24382e){super(_0x24382e),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'](_0x2f26bf,_0x3cc29c){return new AITranslateCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x3cc29c,this['_aiConnector'],getTranslation$i(this['context']['locale'],'AI_REVIEW_CHECK_TRANSLATE_TITLE'),_0x2f26bf['params'],_0x2f26bf['args']);}['_onReviewCheckResultActivated'](_0x2f6ad2){this['_aiReviewCoreUi']['setActiveStateInResults'](_0x2f6ad2['change']['id']),this['_aiReviewCoreEditing']['setMarkersInElementAsActive'](_0x2f6ad2['change']['id']);}['_onReviewCheckResultDeactivated'](){this['_aiReviewCoreEditing']['setAllMarkersAsInactive'](),this['_aiReviewCoreUi']['resetActiveStateInResults']();}['_onActivateChange'](_0x4f16d7){this['_currentReviewCheckRun']&&('hover'===_0x4f16d7['uiInteraction']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0x4f16d7['id'])),'click'===_0x4f16d7['uiInteraction']&&this['_scrollToChange'](_0x4f16d7['id']));}['_onDeactivateChange'](_0x1362b3){this['_currentReviewCheckRun']&&'panel'===_0x1362b3['origin']&&this['_currentReviewCheckRun']['deactivateChange']();}['_onChangeMarkerClicked'](_0x3ee0bb,_0x1a1fd3){this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x1a1fd3['changeId']),this['_scrollToChange'](_0x1a1fd3['changeId']));}['_onChangeMarkerHovered'](_0x3d63ce,_0x19aa17){this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x19aa17['changeId']),this['_aiReviewCoreEditing']['reactivateMarkers'](_0x19aa17['changeId']));}['_onChangeMarkerBlurred'](){this['_currentReviewCheckRun']&&'content'===this['_changeActivationSource']&&(this['_currentReviewCheckRun']['deactivateChange'](),this['_aiReviewCoreEditing']['setAllMarkersAsInactive']());}['_getChangeContentElement'](_0x135322){return this['_aiReviewCoreEditing']['getContentElementForChange'](_0x135322);}['_markChangePositionInEditorContent'](_0x40415f,_0x29b398){this['_aiReviewCoreEditing']['markChangePositionInEditorContent'](_0x40415f,_0x29b398);}['_diffContent'](_0x406aa6,_0x46b9c5){return this['_aiReviewCoreEditing']['diffContent'](_0x406aa6,_0x46b9c5,!0x0);}['_onReviewCheckRun'](){const _0x145830=this['_aiReviewCoreEditing']['getEditor']();_0x145830&&_0x145830['editing']['view']['change'](_0x14d735=>{const _0x107c65=_0x145830['editing']['view']['document']['getRoot']();for(const _0x2f1121 of _0x107c65['getClassNames']())(_0x2f1121['startsWith']('ck-ai-review-')||'ck-ai-translate-'===_0x2f1121)&&_0x14d735['removeClass'](_0x2f1121,_0x107c65);_0x14d735['addClass']('ck-ai-translate-mode-content',_0x107c65);});}async['_getChecksList'](){const _0x3f262b=[],_0x313d30=this['context']['config']['get']('ai.translate.languages')||[];for(const _0x3b93b0 of _0x313d30)_0x3f262b['push']({'title':_0x3b93b0['label'],'id':_0x3b93b0['id'],'commandId':_0x3b93b0['id'],'description':'','isParameterized':!0x1,'useArgs':!0x0,'args':{'language':_0x3b93b0['id']}});const _0x8d8af6=new AITranslateCheckList();return _0x8d8af6['setupChecks'](this['_translateChecks'](_0x3f262b)),_0x8d8af6;}['_translateChecks'](_0x87e606){return _0x87e606['map'](_0x47a5ac=>{const _0x2e09d8='AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_'+_0x47a5ac['title']['toUpperCase']()['replaceAll']('-','_');return{..._0x47a5ac,'title':this['_getTranslationWithDefault'](_0x2e09d8,_0x47a5ac['title'])};});}}class AITranslateCheckResultsView extends AIReviewCoreUICheckResultsView{constructor(_0x145104,_0x281d42){super(_0x145104,_0x281d42),this['on']('set:isLoading',(_0x19bee8,_0x1c6238,_0x187a6f)=>{_0x187a6f&&(this['headerTitle']=getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_RESULTS_LOADING_TITLE'));}),this['on']('set:isResultReady',(_0x562618,_0x4165b6,_0x119a87)=>{_0x119a87&&(this['headerTitle']=getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_RESULTS_READY_TITLE'));});}['_createAcceptAllButtonView'](){const _0xf02500=super['_createAcceptAllButtonView']();return _0xf02500['set']('label',getTranslation$i(this['locale'],'AI_TRANSLATE_ACCEPT_ALL')),_0xf02500;}['_createExitReviewButtonView'](){const _0x4c240d=super['_createExitReviewButtonView']();return _0x4c240d['set']('label',getTranslation$i(this['locale'],'AI_CHAT_HISTORY_CANCEL')),_0x4c240d;}}class AITranslateCheckListView extends AIReviewCoreReviewCheckListView{['_setupTemplate'](){const _0x3b226e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-translate__check-list-wrapper',_0x3b226e['if']('isVisible','ck-hidden',_0xafe51e=>!_0xafe51e)]},'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',_0x3b226e['if']('isVisible','ck-hidden',_0x4bfc2f=>!_0x4bfc2f)]},'children':this['_checkViews']}]});}}class AITranslateUI extends AIReviewCoreUI{static get['pluginName'](){return'AITranslateUI';}['createMainView'](){const _0x5ba8b6=this['context']['locale'],_0x14c6d6=new FormHeaderView(_0x5ba8b6,{'label':getTranslation$i(_0x5ba8b6,'AI_REVIEW_CHECK_TRANSLATE_TITLE'),'icon':IconAITranslate,'class':'ck-ai-header\x20ck-ai-header_review-translate'}),_0x280943=new AIReviewCoreView(_0x5ba8b6,{'header':_0x14c6d6,'list':new AITranslateCheckListView(_0x5ba8b6),'results':new AITranslateCheckResultsView(_0x5ba8b6,{'generalErrorText':getTranslation$i(_0x5ba8b6,'AI_TRANSLATE_GENERAL_ERROR_MESSAGE')}),'completed':new AIReviewCoreReviewCompletedView(_0x5ba8b6,{'headerText':getTranslation$i(_0x5ba8b6,'AI_TRANSLATE_FINISH_HEADER_TITLE'),'emptyResultsText':getTranslation$i(_0x5ba8b6,'AI_TRANSLATE_EMPTY_RESULTS_TEXT'),'buttonText':getTranslation$i(_0x5ba8b6,'AI_TRANSLATE_FINISH_BUTTON_LABEL')})});return _0x280943['extendTemplate']({'attributes':{'class':'ck-ai-translate-mode'}}),_0x280943;}['registerTab'](){const _0x12df15=this['context']['plugins']['get']('AITabs');_0x12df15['view']['on']('activateTab',(_0x3a0ee6,_0x19d9d9)=>{'translate'===_0x19d9d9?this['fire']('getReviewCheckList'):this['fire']('leaveReview');}),_0x12df15['view']['addTab']({'id':'translate','buttonLabel':getTranslation$i(this['context']['locale'],'AI_REVIEW_CHECK_TRANSLATE_TITLE'),'buttonIcon':IconAITranslate,'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(_0x2d1dd6,_0x307afd){super(_0x2d1dd6),this['_transformCallback']=_0x307afd;}['execute'](){const _0x4c09be=this['editor']['model'],_0x4466d8=Array['from'](this['_getAffectedRanges']()),_0x2a4ac6=Array['from'](_0x4c09be['document']['selection']['getRanges']());_0x4c09be['change'](_0x130131=>{for(const _0x232c64 of _0x4466d8)this['_modifyContent'](_0x232c64,_0x130131);_0x130131['setSelection'](_0x2a4ac6);});}['refresh'](){for(const _0x124da2 of this['_getAffectedRanges']())for(const _0x38d92d of _0x124da2)if(_0x38d92d['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x59465f=this['editor']['model'],_0x19cfe5=_0x59465f['document']['selection'];if(_0x19cfe5['isCollapsed']){const _0x166c9c=this['_findAncestorTextBlock'](_0x19cfe5['getFirstPosition']()['parent']);return _0x166c9c?[_0x59465f['createRangeIn'](_0x166c9c)]:[];}return _0x19cfe5['getRanges']();}['_modifyContent'](_0x3f0251,_0x8518b0){for(const _0x17c37f of this['_getElementsAllowingText'](_0x3f0251)){const _0x1b680f=this['_getElementTextContent'](_0x17c37f),_0x49cd13=this['_transformCallback'](_0x1b680f);for(const _0x1c92e4 of this['_getTextNodesRangeLimited'](_0x17c37f,_0x3f0251))this['_replaceTextNodeData'](_0x1c92e4,_0x49cd13,_0x8518b0);}}['_findAncestorTextBlock'](_0x5e539e){const _0x2ed911=this['editor']['model']['schema'];if(_0x5e539e['is']('element')&&_0x2ed911['checkChild'](_0x5e539e,'$text'))return _0x5e539e;const _0x5464e8=_0x5e539e['parent'];return!_0x5464e8||_0x2ed911['isLimit'](_0x5e539e)?null:this['_findAncestorTextBlock'](_0x5464e8);}*['_getElementsAllowingText'](_0xca43a){const _0x5e7e0d=new Set();for(const {item:_0x53b815}of _0xca43a['getWalker']()){const _0x3c4e3f=this['_findAncestorTextBlock'](_0x53b815);_0x3c4e3f&&!_0x5e7e0d['has'](_0x3c4e3f)&&(_0x5e7e0d['add'](_0x3c4e3f),yield _0x3c4e3f);}}['_getElementTextContent'](_0xd5fcde){return Array['from'](_0xd5fcde['getChildren']())['reduce']((_0x32a4ea,_0x4a0bce)=>_0x32a4ea+(_0x4a0bce['is']('$text')?_0x4a0bce['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x57cc11,_0x275973){const _0x4666f2=_0x275973['getIntersection'](this['editor']['model']['createRangeIn'](_0x57cc11));if(_0x4666f2){for(const _0x48c254 of _0x4666f2['getItems']())_0x48c254['is']('$textProxy')&&_0x48c254['parent']==_0x57cc11&&(yield _0x48c254);}}['_replaceTextNodeData'](_0x311c4c,_0x49bae5,_0x391042){const _0x14b9ba=_0x49bae5['substring'](_0x311c4c['startOffset'],_0x311c4c['endOffset']);if(_0x14b9ba===_0x311c4c['data'])return;const _0x402a68=_0x311c4c['getAttributes']();this['editor']['model']['insertContent'](_0x391042['createText'](_0x14b9ba,_0x402a68),_0x391042['createSelection'](_0x391042['createRangeOn'](_0x311c4c)));}}function getTranslation$g(_0x12106a,_0x1a69be,..._0x447031){const t=_0x12106a['t'];switch(_0x1a69be){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',..._0x447031);default:return _0x1a69be;}}class CaseChangeEditing extends Plugin{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5d65ec=this['editor'],_0x116040=_0x5d65ec['locale']['contentLanguage'],_0x15ddd9=normalizeExcludeWordCallback(_0x5d65ec['config']['get']('caseChange.titleCase.excludeWords')),_0xd1787a={'changeCaseUpper':new CaseChangeCommand(_0x5d65ec,_0x1175c1=>_0x1175c1['toLocaleUpperCase'](_0x116040)),'changeCaseLower':new CaseChangeCommand(_0x5d65ec,_0x9a9d89=>_0x9a9d89['toLocaleLowerCase'](_0x116040)),'changeCaseTitle':new CaseChangeCommand(_0x5d65ec,_0x35bf81=>capitalizeText(_0x35bf81,_0x15ddd9,_0x116040))};for(const [_0x491780,_0x3c4541]of Object['entries'](_0xd1787a))_0x5d65ec['commands']['add'](_0x491780,_0x3c4541),_0x3c4541['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x491780);});this['listenTo'](_0x5d65ec['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x5d65ec['keystrokes']['set']('shift+f3',(_0xb91e7a,_0x46f615)=>{const _0x5b4c0e=_getOptions(this['editor']['locale']),_0x1e5e4b=_0x5b4c0e[this['_currentCommandIndex']%_0x5b4c0e['length']]['commandName'];_0x5d65ec['execute'](_0x1e5e4b),this['_currentCommandIndex']++,_0x46f615();});}['afterInit'](){checkLicense$i(this);}['_announceCaseChangeOperation'](_0x3683e1){const {ui:_0x1529c2,locale:_0x34e969}=this['editor'],_0x3fb30d=_getOptions(_0x34e969)['find'](_0xfa2a22=>_0xfa2a22['commandName']===_0x3683e1)['label']['toLowerCase']();_0x1529c2['ariaLiveAnnouncer']['announce'](getTranslation$g(_0x34e969,'Changed\x20case\x20to\x20%0',_0x3fb30d));}}function _getOptions(_0x1631ee){return[{'label':getTranslation$g(_0x1631ee,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':getTranslation$g(_0x1631ee,'lowercase'),'commandName':'changeCaseLower'},{'label':getTranslation$g(_0x1631ee,'Title\x20Case'),'commandName':'changeCaseTitle'}];}function capitalizeText(_0x38f1da,_0x4cbbcb,_0xe0dba){return replaceWords(_0x38f1da,(_0x5ec2d3,_0x5048d0,_0x5149ec)=>{const _0x123da5=_0x5ec2d3['toLocaleLowerCase'](_0xe0dba);return _0x4cbbcb(_0x123da5,{'charOffset':_0x5048d0,'wordIndex':_0x5149ec,'blockText':_0x38f1da})?_0x123da5:_0x123da5['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x2b24bc=>_0x2b24bc['toLocaleUpperCase'](_0xe0dba));});}function replaceWords(_0x415207,_0x666874){let _0x2c9d1a='',_0x2708e0=0x0,_0x65a4e9=0x0;for(const _0x27e2f6 of _0x415207['matchAll'](/ +/g)){const _0x59330a=_0x27e2f6['index'],_0x3adcf1=_0x415207['substring'](_0x2708e0,_0x59330a);_0x3adcf1['length']&&(_0x2c9d1a+=_0x666874(_0x3adcf1,_0x2708e0,_0x65a4e9++)),_0x2c9d1a+=_0x27e2f6[0x0],_0x2708e0=_0x59330a+_0x27e2f6[0x0]['length'];}const _0x3d3e6b=_0x415207['substring'](_0x2708e0);return _0x3d3e6b['length']&&(_0x2c9d1a+=_0x666874(_0x3d3e6b,_0x2708e0,_0x65a4e9)),_0x2c9d1a;}function normalizeExcludeWordCallback(_0x957424=[]){return'function'==typeof _0x957424?_0x957424:(_0xbb4ede,{wordIndex:_0x1b2ac7})=>_0x1b2ac7>0x0&&_0x957424['includes'](_0xbb4ede);}async function checkLicense$i(_0x1768f0){const _0x2e3399=_0x4dbb77([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]),_0x349d0c=window[_0x4dbb77([0x44,0x61,0x74,0x65])][_0x4dbb77([0x6e,0x6f,0x77])](),_0x273726=_0x1768f0[_0x4dbb77([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d015a=new window[(_0x4dbb77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31a645=>{_0x273726[_0x4dbb77([0x6f,0x6e,0x63,0x65])](_0x4dbb77([0x72,0x65,0x61,0x64,0x79]),_0x31a645);}),_0x480a99={[_0x4dbb77([0x6b,0x74,0x79])]:_0x4dbb77([0x45,0x43]),[_0x4dbb77([0x75,0x73,0x65])]:_0x4dbb77([0x73,0x69,0x67]),[_0x4dbb77([0x63,0x72,0x76])]:_0x4dbb77([0x50,0x2d,0x32,0x35,0x36]),[_0x4dbb77([0x78])]:_0x4dbb77([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]),[_0x4dbb77([0x79])]:_0x4dbb77([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]),[_0x4dbb77([0x61,0x6c,0x67])]:_0x4dbb77([0x45,0x53,0x32,0x35,0x36])},_0x4f0064=_0x273726[_0x4dbb77([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4dbb77([0x67,0x65,0x74])](_0x4dbb77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x4faa6b=await(async function(){let _0x4edbf0,_0x3355f3=null,_0x54ab66=null;try{if(_0x4f0064==_0x4dbb77([0x47,0x50,0x4c]))return _0x4dbb77([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4edbf0=(function(){const _0x38eba4=_0x4f0064[_0x4dbb77([0x73,0x70,0x6c,0x69,0x74])](_0x4dbb77([0x2e]));if(0x3!=_0x38eba4[_0x4dbb77([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x44df0f=_0x38eba4[0x1];return _0x10c4ac(_0x44df0f);function _0x10c4ac(_0x389e82){const _0x10bee8=_0x11c2ae(_0x389e82);return _0x10bee8&&_0x2cbc27()?_0x10bee8:null;function _0x2cbc27(){const _0x10e184=_0x10bee8[_0x4dbb77([0x6a,0x74,0x69])],_0x5ae667=window[_0x4dbb77([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10e184[_0x4dbb77([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10e184[_0x4dbb77([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x350e8f={..._0x10bee8,[_0x4dbb77([0x6a,0x74,0x69])]:_0x10e184[_0x4dbb77([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x10e184[_0x4dbb77([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x350e8f[_0x4dbb77([0x76,0x63])],_0xd8b065(_0x350e8f)==_0x5ae667;}}}()),!_0x4edbf0)return _0x4dbb77([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x4edbf0[_0x4dbb77([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x54ab66=function(_0x2578ac,_0xef9b52){return new window[(_0x4dbb77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfa98ef=>{if(_0x5e2243())return _0xfa98ef(_0x4dbb77([0x56,0x61,0x6c,0x69,0x64]));_0xa85b44(),_0x273726[_0x4dbb77([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4dbb77([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f4254=!0x1;const _0x32d042=uid();function _0x44edc6(_0x31b164){return!!_0x31b164&&(typeof _0x31b164===_0x4dbb77([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31b164===_0x4dbb77([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31b164[_0x4dbb77([0x74,0x68,0x65,0x6e])]===_0x4dbb77([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31b164[_0x4dbb77([0x63,0x61,0x74,0x63,0x68])]===_0x4dbb77([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bb677(_0x36e145){_0x2854a7(_0x36e145)[_0x4dbb77([0x74,0x68,0x65,0x6e])](_0x55cfcb=>{if(!_0x55cfcb||_0x55cfcb[_0x4dbb77([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4dbb77([0x6f,0x6b]))return _0x4dbb77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42a4c5(_0xd8b065(_0x32d042+_0xef9b52))!=_0x55cfcb[_0x4dbb77([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4dbb77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4dbb77([0x56,0x61,0x6c,0x69,0x64]);})[_0x4dbb77([0x74,0x68,0x65,0x6e])](_0xc6e855=>(_0x184f43(),_0xc6e855),()=>{const _0x3867e0=_0x2ce1a2();return null==_0x3867e0?(_0x184f43(),_0x4dbb77([0x56,0x61,0x6c,0x69,0x64])):_0x4dbb77(_0x349d0c-_0x3867e0>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4dbb77([0x74,0x68,0x65,0x6e])](_0xfa98ef)[_0x4dbb77([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfa98ef(_0x4dbb77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5154df=0x36ee80;function _0x184f43(){const _0x469c6f=_0x4dbb77([0x6c,0x6c,0x63,0x74,0x2d])+_0x42a4c5(_0xd8b065(_0x2578ac)),_0x58c5a5=_0x592cf9(_0x42a4c5(window[_0x4dbb77([0x4d,0x61,0x74,0x68])][_0x4dbb77([0x63,0x65,0x69,0x6c])](_0x349d0c/_0x5154df)));window[_0x4dbb77([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4dbb77([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x469c6f,_0x58c5a5);}function _0x2ce1a2(){const _0x1d5b4c=_0x4dbb77([0x6c,0x6c,0x63,0x74,0x2d])+_0x42a4c5(_0xd8b065(_0x2578ac)),_0xd4236a=window[_0x4dbb77([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4dbb77([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d5b4c);return _0xd4236a?window[_0x4dbb77([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x592cf9(_0xd4236a),0x10)*_0x5154df:null;}function _0x2854a7(_0x1fe8f1){return new window[(_0x4dbb77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57ea86,_0x4d7b90)=>{_0x1fe8f1[_0x4dbb77([0x74,0x68,0x65,0x6e])](_0x57ea86,_0x4d7b90),window[_0x4dbb77([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d7b90,0x1d4c0);});}}_0x273726[_0x4dbb77([0x6f,0x6e])](_0x4dbb77([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x479e6b,_0x52a9c9)=>{if(_0x52a9c9[0x0]!=_0x2578ac)return _0xfa98ef(_0x4dbb77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52a9c9[0x1]={..._0x52a9c9[0x1],[_0x4dbb77([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32d042};},{[_0x4dbb77([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4dbb77([0x68,0x69,0x67,0x68])}),_0x273726[_0x4dbb77([0x6f,0x6e])](_0x4dbb77([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d8deb=>{_0x44edc6(_0x3d8deb[_0x4dbb77([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f4254=!0x0,_0x4bb677(_0x3d8deb[_0x4dbb77([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4dbb77([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4dbb77([0x6c,0x6f,0x77])}),_0x1d015a[_0x4dbb77([0x74,0x68,0x65,0x6e])](()=>{_0x1f4254||_0xfa98ef(_0x4dbb77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e2243(){return _0x273726[_0x4dbb77([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4dbb77([0x76,0x69,0x65,0x77])][_0x4dbb77([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4dbb77([0x61,0x75,0x74,0x6f]);}function _0xa85b44(){_0x273726[_0x4dbb77([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4dbb77([0x76,0x69,0x65,0x77])][_0x4dbb77([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4dbb77([0x61,0x75,0x74,0x6f]);}}(_0x4edbf0[_0x4dbb77([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4edbf0[_0x4dbb77([0x6a,0x74,0x69])]));const _0x57bb81=await(async function(){let _0x3cc508=!0x0;try{const _0x317e80=_0x4f0064[_0x4dbb77([0x73,0x70,0x6c,0x69,0x74])](_0x4dbb77([0x2e])),[_0x52696d,_0x5aefc8,_0x49061a]=_0x317e80;return _0x967b0(_0x52696d),await _0x2e2317(_0x52696d,_0x5aefc8,_0x49061a),_0x3cc508;}catch{return!0x1;}function _0x967b0(_0x11097a){const _0x5f2302=_0x11c2ae(_0x11097a);_0x5f2302&&_0x5f2302[_0x4dbb77([0x61,0x6c,0x67])]==_0x4dbb77([0x45,0x53,0x32,0x35,0x36])||(_0x3cc508=!0x1);}async function _0x2e2317(_0x4942e9,_0xd4ad2c,_0x10e7d7){const _0x28df30=window[_0x4dbb77([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4dbb77([0x66,0x72,0x6f,0x6d])](_0x52651b(_0x10e7d7),_0x34a64d=>_0x34a64d[_0x4dbb77([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c4356=new window[(_0x4dbb77([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4dbb77([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4942e9+_0x4dbb77([0x2e])+_0xd4ad2c),_0xb44a1a=window[_0x4dbb77([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4dbb77([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb44a1a)return;const _0xfd309b=await _0xb44a1a[_0x4dbb77([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4dbb77([0x6a,0x77,0x6b]),_0x480a99,{[_0x4dbb77([0x6e,0x61,0x6d,0x65])]:_0x4dbb77([0x45,0x43,0x44,0x53,0x41]),[_0x4dbb77([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4dbb77([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4dbb77([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb44a1a[_0x4dbb77([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4dbb77([0x6e,0x61,0x6d,0x65])]:_0x4dbb77([0x45,0x43,0x44,0x53,0x41]),[_0x4dbb77([0x68,0x61,0x73,0x68])]:{[_0x4dbb77([0x6e,0x61,0x6d,0x65])]:_0x4dbb77([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xfd309b,_0x28df30,_0x4c4356)||(_0x3cc508=!0x1);}}());return _0x57bb81?(function(){const _0x2e5f13=_0x4edbf0[_0x4dbb77([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2e5f13)return!0x1;if(_0x2e5f13[_0x4dbb77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dbb77([0x2a])))return!0x0;if(_0x2e5f13[_0x4dbb77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dbb77([0x43,0x43])))return!0x0;if(_0x2e5f13[_0x4dbb77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dbb77([0x50,0x50])))return!0x0;return!0x1;}())?(function(){const _0x1e1914=[_0x4dbb77([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4dbb77([0x74,0x72,0x69,0x61,0x6c])][_0x4dbb77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4edbf0[_0x4dbb77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x349d0c/0x3e8:0x69cb0e80;return _0x4edbf0[_0x4dbb77([0x65,0x78,0x70])]<_0x1e1914;}())?_0x4dbb77([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x4a5e7f=_0x4edbf0[_0x4dbb77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a5e7f||0x0==_0x4a5e7f[_0x4dbb77([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e1c42}=new URL(window[_0x4dbb77([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a5e7f[_0x4dbb77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e1c42))return!0x0;const _0x417d08=_0x4e1c42[_0x4dbb77([0x73,0x70,0x6c,0x69,0x74])](_0x4dbb77([0x2e]));return _0x4a5e7f[_0x4dbb77([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b76bf=>_0x3b76bf[_0x4dbb77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dbb77([0x2a])))[_0x4dbb77([0x6d,0x61,0x70])](_0x58adc4=>_0x58adc4[_0x4dbb77([0x73,0x70,0x6c,0x69,0x74])](_0x4dbb77([0x2e])))[_0x4dbb77([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfb38b1=>_0xfb38b1[_0x4dbb77([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x417d08[_0x4dbb77([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4dbb77([0x6d,0x61,0x70])](_0x4e5788=>Array(_0x417d08[_0x4dbb77([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4e5788[_0x4dbb77([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4dbb77([0x66,0x69,0x6c,0x6c])](_0x4e5788[0x0]===_0x4dbb77([0x2a])?_0x4dbb77([0x2a]):'')[_0x4dbb77([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4e5788))[_0x4dbb77([0x73,0x6f,0x6d,0x65])](_0x55ac5b=>_0x417d08[_0x4dbb77([0x65,0x76,0x65,0x72,0x79])]((_0x32b04d,_0x364868)=>_0x55ac5b[_0x364868]===_0x32b04d||_0x55ac5b[_0x364868]===_0x4dbb77([0x2a])));}())?(_0x4edbf0[_0x4dbb77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4dbb77([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3355f3=function(_0x405cc9){const _0x527471=new window[(_0x4dbb77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48c609=>setTimeout(_0x48c609,0x93ecc)),_0xd78f59=_0x1d015a[_0x4dbb77([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4dbb77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13f2ac=>{let _0x593113=0x0;_0x273726[_0x4dbb77([0x6d,0x6f,0x64,0x65,0x6c])][_0x4dbb77([0x6f,0x6e])](_0x4dbb77([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xccdff3,_0x380c90)=>{_0x380c90[0x0][_0x4dbb77([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x593113++,0x5e8==_0x593113&&(_0x13f2ac(),_0xccdff3[_0x4dbb77([0x6f,0x66,0x66])]());});})),_0x3729b8=[_0x527471,_0xd78f59];return window[_0x4dbb77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4dbb77([0x72,0x61,0x63,0x65])](_0x3729b8)[_0x4dbb77([0x74,0x68,0x65,0x6e])](()=>_0x405cc9);}(_0x4dbb77([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x3355f3&&_0x54ab66)return new window[(_0x4dbb77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15bf16,_0x31c1b9)=>{_0x3355f3[_0x4dbb77([0x74,0x68,0x65,0x6e])](_0x15bf16,_0x31c1b9),_0x54ab66[_0x4dbb77([0x74,0x68,0x65,0x6e])](_0x263480=>{_0x263480!=_0x4dbb77([0x56,0x61,0x6c,0x69,0x64])&&_0x15bf16(_0x263480);},_0x31c1b9);});return _0x3355f3||_0x54ab66||_0x4dbb77([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4dbb77([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4dbb77([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4dbb77([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4dbb77([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x11c2ae(_0x6af4d6){return _0x6af4d6[_0x4dbb77([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4dbb77([0x65,0x79]))?JSON[_0x4dbb77([0x70,0x61,0x72,0x73,0x65])](_0x52651b(_0x6af4d6)):null;}function _0x52651b(_0x27c8af){return window[_0x4dbb77([0x61,0x74,0x6f,0x62])](_0x27c8af[_0x4dbb77([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4dbb77([0x2b]))[_0x4dbb77([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4dbb77([0x2f])));}function _0xd8b065(_0x2f24e7){let _0x3075dc=0x1505;function _0x33b6bb(_0x17dcac){for(let _0x3a1182=0x0;_0x3a1182<_0x17dcac[_0x4dbb77([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a1182++){const _0x140a85=_0x17dcac[_0x4dbb77([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a1182);_0x3075dc=(_0x3075dc<<0x5)+_0x3075dc+_0x140a85,_0x3075dc&=_0x3075dc;}}return function _0x444351(_0xdf6ef){Array[_0x4dbb77([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xdf6ef)?_0xdf6ef[_0x4dbb77([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x444351):_0xdf6ef&&typeof _0xdf6ef==_0x4dbb77([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4dbb77([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xdf6ef)[_0x4dbb77([0x73,0x6f,0x72,0x74])]()[_0x4dbb77([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a57ca,_0x4df217])=>{_0x33b6bb(_0x1a57ca),_0x444351(_0x4df217);}):_0x33b6bb(window[_0x4dbb77([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xdf6ef));}(_0x2f24e7),_0x3075dc>>>0x0;}function _0x42a4c5(_0x2de7c2){return _0x2de7c2[_0x4dbb77([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4dbb77([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4dbb77([0x30]));}function _0x592cf9(_0x5addbc){return _0x5addbc[_0x4dbb77([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4dbb77([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4dbb77([0x6a,0x6f,0x69,0x6e])]('');}function _0xe29c16(){}function _0x4dbb77(_0x47ec15){return _0x47ec15['map'](_0x29c098=>String['fromCharCode'](_0x29c098))['join']('');}!function(_0x368345){const _0x371bb8=(function(){const _0x411b78=window[_0x4dbb77([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4dbb77([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4dbb77([0x6e,0x6f,0x77])]())[_0x4dbb77([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4dbb77([0x2e]),'');let _0x3c350a=_0x4dbb77([0x45]);for(let _0x2db21e=0x0;_0x2db21e<_0x411b78[_0x4dbb77([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2db21e+=0x2){let _0x2d1a8f=window[_0x4dbb77([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x411b78[_0x4dbb77([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2db21e,_0x2db21e+0x2));_0x2d1a8f>=_0x2e3399[_0x4dbb77([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d1a8f-=_0x2e3399[_0x4dbb77([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c350a+=_0x2e3399[_0x2d1a8f];}return _0x3c350a;}());_0x273726[_0x371bb8]=_0x4dbb77([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x368345,_0x368345!=_0x4dbb77([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x1d015a,_0x273726[_0x4dbb77([0x6d,0x6f,0x64,0x65,0x6c])][_0x4dbb77([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe29c16,_0x273726[_0x4dbb77([0x6d,0x6f,0x64,0x65,0x6c])][_0x4dbb77([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe29c16,_0x273726[_0x4dbb77([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4dbb77([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x4faa6b);}class CaseChangeUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5e5e18=this['editor'];this['_registerComponents'](),_0x5e5e18['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':getTranslation$g(_0x5e5e18['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x319571=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1717cc;for(const _0x406470 in _0x319571){const _0x2beec0=_0x406470,_0x103d35=_0x319571[_0x2beec0];if('caseChangeLicenseKeyValid'==_0x103d35||'caseChangeLicenseKeyInvalid'==_0x103d35||'caseChangeLicenseKeyExpired'==_0x103d35||'caseChangeLicenseKeyDomainLimit'==_0x103d35||'caseChangeLicenseKeyNotAllowed'==_0x103d35||'caseChangeLicenseKeyEvaluationLimit'==_0x103d35||'caseChangeLicenseKeyUsageLimit'==_0x103d35){delete _0x319571[_0x2beec0],_0x1717cc=_0x103d35,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x1717cc&&_0x319571['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x1717cc&&_0x319571['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x1717cc&&_0x319571['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x1717cc&&_0x319571['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x1717cc&&_0x319571['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x1717cc&&_0x319571['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x258573=this['editor'],{itemDefinitions:_0x5b65ab,commands:_0x72b429}=this['_getListItemDefinitionsAndCommands']();_0x258573['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x5b65ab,_0x72b429)),_0x258573['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x5b65ab,_0x72b429));}['_createMenuBarMenuView'](_0x4b676f,_0x202ec1){const _0x4a040e=this['editor'],_0x136d5c=_0x4a040e['locale'],_0x35a131=new MenuBarMenuView(_0x136d5c),_0x4d1ba9=new MenuBarMenuListView(_0x136d5c);_0x4d1ba9['set']({'ariaLabel':getTranslation$g(_0x136d5c,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x35a131['buttonView']),_0x35a131['bind']('isEnabled')['toMany'](_0x202ec1,'isEnabled',(..._0x385883)=>_0x385883['some'](_0x359fd5=>_0x359fd5));for(const _0x48d52e of _0x4b676f){const _0x517138=new MenuBarMenuListItemView(_0x136d5c,_0x35a131),_0x30036f=new MenuBarMenuListItemButtonView(_0x136d5c);_0x30036f['delegate']('execute')['to'](_0x35a131),_0x30036f['bind'](...Object['keys'](_0x48d52e['model']))['to'](_0x48d52e['model']),_0x30036f['on']('execute',()=>{_0x4a040e['execute'](_0x48d52e['model']['commandName']),_0x4a040e['editing']['view']['focus']();}),_0x517138['children']['add'](_0x30036f),_0x4d1ba9['items']['add'](_0x517138);}return _0x35a131['panelView']['children']['add'](_0x4d1ba9),_0x35a131;}['_createDropdownView'](_0x50cb07,_0x47861f){const _0x4ffad2=this['editor'],_0x217486=createDropdown(_0x4ffad2['locale']);return this['_setButtonProperties'](_0x217486['buttonView']),_0x217486['buttonView']['set']({'tooltip':!0x0}),_0x217486['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),addListToDropdown(_0x217486,_0x50cb07,{'ariaLabel':getTranslation$g(_0x4ffad2['locale'],'Case\x20change'),'role':'menu'}),_0x217486['bind']('isEnabled')['toMany'](_0x47861f,'isEnabled',(..._0x36d5ca)=>_0x36d5ca['some'](_0x14a6b8=>_0x14a6b8)),this['listenTo'](_0x217486,'execute',_0x5f10c5=>{_0x4ffad2['execute'](_0x5f10c5['source']['commandName']),_0x4ffad2['editing']['view']['focus']();}),_0x217486;}['_setButtonProperties'](_0x52b9c7){const _0x5d676d=this['editor'];_0x52b9c7['set']({'label':getTranslation$g(_0x5d676d['locale'],'Case\x20change'),'icon':IconCaseChange,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x9a5394=new Collection(),_0x547771=[];for(const _0x4f26b3 of _getOptions(this['editor']['locale'])){const _0x21943f=this['editor']['commands']['get'](_0x4f26b3['commandName']),_0x3d1ba6=new UIModel({'commandName':_0x4f26b3['commandName'],'label':_0x4f26b3['label'],'role':'menuitemradio','withText':!0x0});_0x3d1ba6['bind']('isEnabled')['to'](_0x21943f,'isEnabled'),_0x9a5394['add']({'type':'button','model':_0x3d1ba6}),_0x547771['push'](_0x21943f);}return{'itemDefinitions':_0x9a5394,'commands':_0x547771};}}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(_0x7fbc7,_0x1f406e){super(),this['model']=_0x7fbc7,this['model']['_isAttached']=!0x0,this['view']=_0x1f406e,this['listenTo'](_0x1f406e,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x1f406e,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x1f406e,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x1f406e,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x1f406e,'addComment',(_0x394211,_0x5f1609)=>this['addComment'](_0x5f1609)),this['listenTo'](_0x1f406e,'updateComment',(_0x389152,_0x17f06c,_0x3b49ed)=>this['updateComment'](_0x17f06c,_0x3b49ed)),this['listenTo'](_0x1f406e,'removeComment',(_0x47e166,_0x984d1c)=>this['removeComment'](_0x984d1c));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x289ee9){this['model']['addComment']({'content':_0x289ee9,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x1db35a,_0x5390e9){this['model']['getComment'](_0x1db35a)['update']({'content':_0x5390e9});}['removeComment'](_0x34ae6d){this['model']['getComment'](_0x34ae6d)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function getTranslation$f(_0x27def5,_0xb03842,_0x41ed4d){const t=_0x27def5['t'];switch(_0xb03842){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'},_0x41ed4d);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'},_0x41ed4d);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'},_0x41ed4d);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'},_0x41ed4d);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x41ed4d);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'},_0x41ed4d);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'},_0x41ed4d);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'},_0x41ed4d);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(_0x57fb52,_0x46660c){super(_0x57fb52);const _0x1b9c72=uid();this['main']=this['createCollection'](),this['editable']=new InlineEditableUIView(_0x57fb52,_0x46660c,void 0x0,{'label':()=>getTranslation$f(_0x57fb52,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x57fb52['uiLanguageDirection'],'lang':_0x57fb52['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x1b9c72},'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(_0x3d6eac){super(_0x3d6eac),this['view']=new CommentEditorUIView(_0x3d6eac['locale'],_0x3d6eac['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x4fa5b6=this['editor']['editing']['view'],_0x40ee53=this['view']['editable'],_0x2e1aed=_0x4fa5b6['document']['getRoot']();_0x40ee53['name']=_0x2e1aed['rootName'],this['view']['render']();const _0x45bd0c=_0x40ee53['element'];this['setEditableElement'](_0x40ee53['name'],_0x45bd0c),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4fa5b6['attachDomRoot'](_0x45bd0c),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(_0x2899dc={}){function _0xc1b497(_0x4d0f3c){return _0x4d0f3c['map'](_0x53c18a=>String['fromCharCode'](_0x53c18a))['join']('');}(_0x2899dc=Object['assign']({},_0x2899dc))['plugins']||(_0x2899dc['plugins']=CommentEditor['defaultPlugins']),super(_0x2899dc),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[_0xc1b497([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc1b497([0x76,0x69,0x65,0x77])][_0xc1b497([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc1b497([0x61,0x75,0x74,0x6f]),this[_0xc1b497([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xc1b497([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc1b497([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xc1b497([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xc1b497([0x6f,0x6b])});}['create'](){const _0x1262fe=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x1262fe))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x37ead7=>{const _0x2bdfe9=this['model']['document']['getRoot'](),_0x1253ac=_0x2bdfe9&&_0x2bdfe9['getChild'](_0x2bdfe9['childCount']-0x1);_0x37ead7['setSelection'](_0x1253ac,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x5a7d53=this['editing']['view'],_0x53cc04=_0x5a7d53['document']['getRoot'](),_0x54d97d=_0x53cc04['getChild'](0x0);_0x53cc04['childCount']>0x1||!_0x54d97d||'p'!=_0x54d97d['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(disableViewPlaceholder(_0x5a7d53,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x54d97d['placeholder']=this['placeholder']),enableViewPlaceholder({'view':_0x5a7d53,'element':_0x54d97d,'keepOnFocus':!0x0}),this['placeholderElement']=_0x54d97d);}}class CommentInputView extends View{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3b2c86,_0x272ffd={}){super(_0x3b2c86),this['editor']=null,this['_editorConfig']=_0x272ffd,this['set']('value',_0x272ffd['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',getTranslation$f(_0x3b2c86,'Reply...')),this['set']('submitLabel',getTranslation$f(_0x3b2c86,'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',(_0x5ae208,_0x3f05cf)=>{this['cancelButtonView']['fire']('execute'),_0x3f05cf();}),this['keystrokes']['set']('Ctrl+Enter',(_0x22c93c,_0xad06cb)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0xad06cb());}),this['on']('submit',(_0x211c0e,_0x46477d)=>{_0x46477d['length']>0xfde8?(alert(getTranslation$f(_0x3b2c86,'TOO_LONG_COMMENT_ALERT',[_0x46477d['length'],0xfde8])),_0x211c0e['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 _0x3f72fe=this['editor'];this['element']['insertBefore'](_0x3f72fe['ui']['element'],this['element']['firstChild']),_0x3f72fe['model']['document']['on']('change',()=>this['value']=_0x3f72fe['getData']()),_0x3f72fe['bind']('placeholder')['to'](this),this['focusables']['add'](_0x3f72fe['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x293899){-0x1===_0x293899?(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:_0x2fe810}=this,_0x4327bd=new ButtonView(_0x2fe810);return _0x4327bd['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x4327bd['withText']=!0x0,_0x4327bd['bind']('label')['to'](this,'submitLabel'),_0x4327bd['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x4327bd['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0xe17184,_0x40470f)=>!_0x40470f&&!!_0xe17184['trim']()),_0x4327bd;}['_createCancelButton'](){const {locale:_0x68c531}=this,_0x4ff28b=new ButtonView(_0x68c531);return _0x4ff28b['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x4ff28b['label']=getTranslation$f(_0x68c531,'Cancel'),_0x4ff28b['withText']=!0x0,_0x4ff28b['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x4ff28b;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4a2577=>{this['focusTracker']['add'](_0x4a2577['element']);}),this['focusables']['on']('change',(_0x3573e3,_0x1a46cd)=>{for(const _0xb8bffb of Array['from'](_0x1a46cd['added'])['reverse']())this['focusTracker']['add'](_0xb8bffb['element']);});}}class CommentThreadInputView extends View{constructor(_0x348225,_0x597567,_0x58c268){super(_0x348225),this['commentInputView']=new CommentInputView(_0x348225,_0x58c268),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0xf564fd,_0x4377a7)=>_0xf564fd||!!_0x4377a7),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(_0x348225,_0x597567),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'](_0xb2ba9f){this['commentInputView']['focus'](_0xb2ba9f);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x8340cf,_0x486deb)=>{const {submitButtonView:_0x30ec98,cancelButtonView:_0x1c0063,editor:_0x1982b7}=this['commentInputView'],_0x21a637=[_0x30ec98['element'],_0x1c0063['element'],_0x1982b7?_0x1982b7['editing']['view']['getDomRoot']():null]['filter'](_0x4c261a=>_0x4c261a)['some'](_0x476c8c=>_0x476c8c['contains'](_0x486deb['target']));_0x21a637||(this['focus'](),_0x486deb['preventDefault']());});}}class CollapsedCommentsView extends View{constructor(_0x108878){super(_0x108878);const _0x6ceeaa=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x6ceeaa['to']('count',_0x641cee=>getTranslation$f(_0x108878,'NUMBER_OF_COMMENTS',_0x641cee))}]});}}class CommentsListView extends View{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x54f13b,_0x33e63e,_0x25993a){super(_0x54f13b);const _0x531444=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x33e63e['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x33e63e,this['_config']=_0x25993a,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':_0x1af807=>this['commentViews']['map'](_0x21d87d=>_0x21d87d['element'])['includes'](_0x1af807['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new CollapsedCommentsView(_0x54f13b),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x1ed1dd=>_0x1ed1dd-this['_config']['maxCommentsWhenCollapsed']);for(const _0x4de5af of _0x33e63e['comments'])this['_handleNewCommentModel'](_0x4de5af);this['_handleInfoComment'](),this['listenTo'](_0x33e63e['comments'],'add',(_0x3d0924,_0x55786b)=>{const _0x5738a5=this['_calculatePosition'](_0x55786b);this['length']++,this['_handleNewCommentModel'](_0x55786b,_0x5738a5),this['refreshVisibleViews']();}),this['listenTo'](_0x33e63e['comments'],'remove',(_0x3ee545,_0x1235bf)=>{this['length']--,this['_handleRemoveCommentModel'](_0x1235bf),this['refreshVisibleViews']();}),this['listenTo'](_0x33e63e,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x33e63e,'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',_0x531444['if']('length','ck-hidden',_0x447b8a=>!_0x447b8a)],'aria-label':getTranslation$f(_0x54f13b,'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'](_0x79d0c2){-0x1===_0x79d0c2?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3d8bd5 of this['commentViews'])_0x3d8bd5['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x3b9881,_0x2bd83c){const _0x467ddf=new this['_config']['CommentView'](this['locale'],_0x3b9881,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x467ddf['viewUid']=_0x3b9881['id'],_0x467ddf['delegate']('removeComment')['to'](this),_0x467ddf['delegate']('updateComment')['to'](this),_0x467ddf['delegate']('resolveCommentThread')['to'](this),_0x467ddf['delegate']('editorReady')['to'](this),_0x467ddf['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x467ddf,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x467ddf,_0x2bd83c);}['_calculatePosition'](_0xd4ec13){const _0x49125e=this['_model']['_findOptimalIndex'](_0xd4ec13);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0xd4ec13['authoredAt']?_0x49125e-0x1:_0x49125e:_0x49125e-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x5d6dd9={'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'],_0x5d6dd9,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x5d6dd9));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x424ec3){const _0x3dccdb=this['commentViews']['remove'](_0x424ec3['id']);this['stopListening'](_0x3dccdb),_0x3dccdb['isEditMode']&&this['_updateHasDirtyComment'](),_0x3dccdb['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x1634ae=>_0x1634ae['isEditMode']);}['_rearrangeCollapse'](){const _0x988a1b=cloneCollection(this['commentViews']),_0x21d91f=this['_collapsedCommentsView']['count'];for(let _0x41258a=0x1;_0x41258a<=_0x21d91f;_0x41258a++)_0x988a1b['remove'](0x1);for(const _0x38a5f6 of _0x988a1b)_0x38a5f6['collapse']();_0x21d91f>0x0&&_0x988a1b['add'](this['_collapsedCommentsView'],0x1),applyDiffToCollection(_0x3b95bc(Array['from'](this['visibleViews']),Array['from'](_0x988a1b)),this['visibleViews'],_0x988a1b);}['_rearrangeExpand'](){applyDiffToCollection(_0x3b95bc(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0xe51112 of this['visibleViews'])_0xe51112['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x3c63b1=>{this['focusTracker']['add'](_0x3c63b1['element']),this['keystrokes']['listenTo'](_0x3c63b1['element']);}),this['commentViews']['on']('change',(_0x23ba2b,_0x213ab4)=>{for(const _0x4b7873 of _0x213ab4['removed'])this['focusTracker']['remove'](_0x4b7873['element']),this['keystrokes']['stopListening'](_0x4b7873['element']);for(const _0x4ff2af of Array['from'](_0x213ab4['added'])['reverse']())this['focusTracker']['add'](_0x4ff2af['element']),this['keystrokes']['listenTo'](_0x4ff2af['element']);});}}function cloneCollection(_0x3131e9){const _0x45d049=new Collection();for(const _0x57919a of _0x3131e9)_0x45d049['add'](_0x57919a);return _0x45d049;}function applyDiffToCollection(_0x4b8edf,_0x62778f,_0x760e1e){let _0x3a1a1d=0x0;for(const _0x4016ea of _0x4b8edf)switch(_0x4016ea){case'insert':_0x62778f['add'](_0x760e1e['get'](_0x3a1a1d),_0x3a1a1d),_0x3a1a1d++;break;case'delete':_0x62778f['remove'](_0x3a1a1d);break;case'equal':_0x3a1a1d++;}}class CommentThreadHeaderContextView extends View{constructor(_0x3db26d){super(_0x3db26d);const _0x4597f9=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4597f9['to']('contextValue',_0x23be5f=>getTranslation$f(_0x3db26d,'THREAD_CONTEXT_LABEL',_0x23be5f)),'tabindex':-0x1},'children':[{'text':_0x4597f9['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}const MAX_CONTENT_LENGTH=0x96;class CommentThreadHeaderView extends View{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x387b36,_0x4788e8){super(_0x387b36);const _0x3a534c=this['bindTemplate'];this['_model']=_0x4788e8,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',_0x289ef6=>!!_0x289ef6),this['bind']('contextValue')['to'](this['_model'],'context',_0x3fcc16=>_0x3fcc16&&_0x3fcc16['value']?this['_trimContextValue'](_0x3fcc16['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',_0x3a534c['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 _0x5e4a32=new ButtonView(this['locale']);return _0x5e4a32['label']=getTranslation$f(this['locale'],'Reopen'),_0x5e4a32['tooltip']=getTranslation$f(this['locale'],'Reopen'),_0x5e4a32['icon']=IconUndo,_0x5e4a32['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1ebaef=>!_0x1ebaef),_0x5e4a32['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4f383a,_0x1342c2)=>_0x4f383a&&_0x1342c2),_0x5e4a32['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x5e4a32;}['_trimContextValue'](_0x1b951a){const _0x5e3c67=MAX_CONTENT_LENGTH-0x3;if(_0x1b951a['length']<MAX_CONTENT_LENGTH)return _0x1b951a;const _0x3978e5=_0x1b951a['lastIndexOf']('\x20',_0x5e3c67);return _0x1b951a['substring'](0x0,_0x3978e5>-0x1?_0x3978e5:_0x5e3c67)+'...';}['_attachContextActions'](){const _0x11e8d2=this['element']['querySelector']('.ck-context'),_0x1d05e1=_0x11e8d2['querySelector']('.ck-context__value');this['listenTo'](_0x11e8d2,'mouseenter',()=>{_0x1d05e1['offsetWidth']<_0x1d05e1['scrollWidth']&&_0x11e8d2['classList']['add']('overlay');}),this['listenTo'](_0x11e8d2,'mouseleave',()=>{_0x11e8d2['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x5931e6 of this['focusables'])this['focusTracker']['add'](_0x5931e6['element']),this['keystrokes']['listenTo'](_0x5931e6['element']);}['_createContextView'](){const _0x42f9e9=new CommentThreadHeaderContextView(this['locale']);return _0x42f9e9['bind']('contextValue')['to'](this),_0x42f9e9;}}class BaseCommentThreadView extends View{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x31a30d,_0x211551,_0x546149,_0x7d50eb){super(_0x31a30d),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x211551,this['_localUser']=_0x546149,this['_config']=_0x7d50eb,this['commentThreadHeaderView']=new CommentThreadHeaderView(_0x31a30d,_0x211551),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new AriaDescriptionView(_0x31a30d,getTranslation$f(_0x31a30d,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new CommentsListView(_0x31a30d,_0x211551,Object['assign']({'CommentView':this['_config']['CommentView']},_0x7d50eb)),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',(_0x16e0fe,_0x569d5b)=>_0x16e0fe||!!_0x569d5b),this['bind']('isUnlinked')['to'](_0x211551,'unlinkedAt',_0x44f0ef=>!!_0x44f0ef),this['bind']('ariaLabel')['to'](this,'length',_0x43ddee=>{const _0x4742cc=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return getTranslation$f(this['locale'],'COMMENT_THREAD_LABEL',[_0x43ddee,_0x4742cc]);}),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':_0x2e214f=>_0x2e214f['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 _0x5d6fec=new CommentThreadInputView(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x353b81=_0x5d6fec['commentInputView'];return _0x5d6fec['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x353b81,'value',(_0x4a4e3b,_0x4b0ffd,_0x145db9,_0xf92923,_0x1e31f6)=>!!_0x1e31f6||!!_0xf92923&&_0x145db9&&!_0x4b0ffd||_0x4a4e3b&&_0x145db9&&!_0x4b0ffd),_0x353b81['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2bafcc,_0x3ff99f,_0x400442)=>{let _0x5f089d;return _0x5f089d=_0x400442&&_0x3ff99f?'Reply\x20to\x20reopen\x20discussion...':_0x2bafcc?'Reply...':'Write\x20a\x20comment...',getTranslation$f(this['locale'],_0x5f089d);}),_0x353b81['bind']('submitLabel')['to'](this,'length',_0x26ed46=>getTranslation$f(this['locale'],_0x26ed46?'Reply':'Comment')),_0x353b81['on']('submit',(_0x2e26f5,_0x266c51)=>{this['fire']('addComment',_0x266c51),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x353b81['on']('cancel',()=>{this['focus']();}),_0x353b81['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x353b81['on']('cancel',_0x108033=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x108033['stop']());}),this['on']('change:isActive',(_0x2f4c6d,_0x3207dc,_0xacd7a5)=>{_0xacd7a5||this['length']||_0x353b81['value']||this['fire']('removeCommentThread');}),_0x5d6fec;}}class CommentThreadView extends/* #__PURE__ -- @preserve */
ConfirmMixin(BaseCommentThreadView){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x52c017,_0x483986,_0x45df5e,_0x30355a){super(_0x52c017,_0x483986,_0x45df5e,_0x30355a),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x52c017,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x4afdb5,_0x4ad18b,_0x25057a)=>{_0x25057a||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x8123d6,_0x3f4b83,_0x24273d)=>{_0x24273d&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0xe6238c=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0xe6238c['if']('isActive','ck-thread--active'),_0xe6238c['if']('isUnlinked','ck-thread--unlinked'),_0xe6238c['to']('actionIndicator',_0x152711=>_0x152711?'ck-thread--'+_0x152711:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0xe6238c['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 _0x2b7ba5 of this['commentsListView']['commentViews'])_0x2b7ba5['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x233f8e}=this,_0x1e9326=this['commentsListView']['commentViews']['get'](0x0);_0x1e9326===this['_boundFirstCommentView']||_0x1e9326['isSystemComment']||(this['_boundFirstCommentView']=_0x1e9326,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x1e9326,'actionIndicator',_0x6af09c=>'remove'===_0x6af09c?'remove':null),_0x1e9326['placeholder']=getTranslation$f(_0x233f8e,'Write\x20a\x20comment...'),_0x1e9326['removeButton']['on']('execute',_0x178a77=>{_0x178a77['stop'](),this['showConfirm'](getTranslation$f(_0x233f8e,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x1e9326['focus']();}),_0x1e9326['actionBar']['add'](this['resolveButton'],0x0),_0x1e9326['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x6d5455=new LateFocusButtonView(this['locale']);return _0x6d5455['label']=getTranslation$f(this['locale'],'Resolve'),_0x6d5455['tooltip']=getTranslation$f(this['locale'],'Resolve'),_0x6d5455['icon']=IconCheck,_0x6d5455['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x6d5455['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xfa4f3d=>!_0xfa4f3d),_0x6d5455['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x34293f,_0x2779be)=>_0x34293f&&!_0x2779be),_0x6d5455['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x6d5455;}['_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(_0x58c4b1){super(_0x58c4b1),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x256bb5,_0x47a699,_0x3f6e20)=>{this['element']['innerHTML']=_0x3f6e20;}),this['element']['innerHTML']=this['content'];}}class BaseCommentView extends View{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x22fbe2,_0x5c4984,_0x2a1666){super(_0x22fbe2),this['_model']=_0x5c4984,this['_config']=_0x2a1666,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x5c4984,'content',_0x5c4984,'authoredAt',(_0x57c5d5,_0x4f42c7)=>getTranslation$f(_0x22fbe2,'COMMENT_ARIA_LABEL',[_0x5c4984['author']['name'],_0x2a1666['formatDateTime'](_0x4f42c7),new DOMParser()['parseFromString'](_0x57c5d5,'text/html')['body']['textContent'],_0x5c4984['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new AriaDescriptionView(_0x22fbe2,getTranslation$f(_0x22fbe2,'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':_0x12ecca=>_0x12ecca['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 _0x42cdfc=new CommentContentView(this['locale']);return _0x42cdfc['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x42e57f,_0x3a801b)=>_0x3a801b?trimHtml(_0x42e57f,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x42e57f),_0x42cdfc;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x20e2b4=new CommentInputView(this['locale'],this['_config']['editorConfig']);return _0x20e2b4['value']=this['_model']['content'],_0x20e2b4['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x20e2b4['submitLabel']=getTranslation$f(this['locale'],'Save'),_0x20e2b4['on']('submit',(_0x73f0cb,_0x5c2828)=>{this['fire']('updateComment',this['_model']['id'],_0x5c2828),this['switchToDisplayMode'](),this['focus']();}),_0x20e2b4['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x20e2b4['once']('editorReady',()=>{_0x20e2b4['focus']();}),_0x20e2b4['createEditor'](),_0x20e2b4['delegate']('editorReady')['to'](this),_0x20e2b4['delegate']('editorDestroyed')['to'](this),_0x20e2b4;}['_setupKeyboardNavigation'](){const _0x447913=this['element'];this['keystrokes']['listenTo'](_0x447913);for(const _0x27d814 of this['focusables'])this['focusTracker']['add'](_0x27d814['element']),this['keystrokes']['listenTo'](_0x27d814['element']);this['focusables']['on']('change',(_0xc4f213,_0x4a201e)=>{for(const _0x27e3de of _0x4a201e['removed'])this['focusTracker']['remove'](_0x27e3de['element']),this['keystrokes']['stopListening'](_0x27e3de['element']);for(const _0x357d5d of _0x4a201e['added'])this['focusTracker']['add'](_0x357d5d['element']),this['keystrokes']['listenTo'](_0x357d5d['element']);}),this['keystrokes']['set']('enter',(_0x3b62e2,_0x1a43d8)=>{_0x447913===_0x3b62e2['target']&&(this['focusCycler']['focusFirst'](),_0x1a43d8());}),this['keystrokes']['set']('esc',(_0x5378b5,_0x1bc06b)=>{_0x447913!==_0x5378b5['target']&&(this['focus'](),_0x1bc06b());});}}class CommentView extends/* #__PURE__ -- @preserve */
ConfirmMixin(BaseCommentView){['actionBar'];['userView'];constructor(_0x4e0380,_0x34f334,_0x179e0a){super(_0x4e0380,_0x34f334,_0x179e0a),this['set']('actionIndicator',null),this['set']('placeholder',getTranslation$f(_0x4e0380,'Reply...')),this['bind']('authoredAt')['to'](_0x34f334),this['bind']('resolvedAt')['to'](_0x34f334),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(_0x4e0380,_0x34f334['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x34f334,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1ce0b1=this['bindTemplate'],_0x44194c=[{'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':_0x1ce0b1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1ce0b1['to']('authoredAt',_0x540d0d=>this['_config']['formatDateTime'](_0x540d0d))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x1ce0b1['if']('isEditMode','ck-comment__actions--hidden'),_0x1ce0b1['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']&&_0x44194c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x1ce0b1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x1ce0b1['if']('isEditMode','ck-comment--edit'),_0x1ce0b1['if']('isSystemComment','ck-comment--info'),_0x1ce0b1['to']('actionIndicator',_0x360827=>_0x360827?'ck-comment--'+_0x360827:'')],'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':_0x44194c}]}]};}['_createEditButton'](){const _0x4fcbff=new ButtonView(this['locale']);return _0x4fcbff['label']=getTranslation$f(this['locale'],'Edit'),_0x4fcbff['icon']=IconPencil,_0x4fcbff['withText']=!0x0,_0x4fcbff['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x4fcbff['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2ee324=>!_0x2ee324),_0x4fcbff['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x4fcbff['on']('execute',()=>this['switchToEditMode']()),_0x4fcbff;}['_createRemoveButton'](){const _0x31ae0b=new ButtonView(this['locale']);return _0x31ae0b['label']=getTranslation$f(this['locale'],'Remove'),_0x31ae0b['icon']=IconRemoveComment,_0x31ae0b['withText']=!0x0,_0x31ae0b['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x31ae0b['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x39fe3b=>!_0x39fe3b),_0x31ae0b['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x31ae0b['on']('execute',()=>{this['showConfirm'](getTranslation$f(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x31ae0b;}['_createDropdown'](){const _0x4440a8=createDropdown(this['locale'],LateFocusDropdownButtonView),_0xf3caf1=_0x4440a8['panelView']['children'],_0x80e0f1=new ListView(this['locale']),_0x3fe9b1=_0x4440a8['bindTemplate'];focusChildOnDropdownOpen(_0x4440a8,()=>this['items']['find'](_0x1505f1=>_0x1505f1['isVisible'])),_0x4440a8['extendTemplate']({'attributes':{'class':[_0x3fe9b1['if']('isVisible','ck-hidden',_0x10e54d=>!_0x10e54d)]}});const _0x38cc2e=(_0x587019,_0x46e364=-0x1)=>{const _0xc05c82=new ListItemView(this['locale']);_0xc05c82['children']['add'](_0x587019);const _0x5d4b0e=_0x46e364>-0x1?_0x46e364:_0x80e0f1['items']['length'];_0x80e0f1['items']['add'](_0xc05c82,_0x5d4b0e);const _0x1d1928=Array['from'](this['items']);_0x4440a8['unbind']('isEnabled','isVisible'),_0x4440a8['bind']('isEnabled')['toMany'](_0x1d1928,'isEnabled',(..._0x3d2d26)=>_0x3d2d26['some'](_0x3ff200=>_0x3ff200)),_0x4440a8['bind']('isVisible')['toMany'](_0x1d1928,'isVisible',(..._0x334d3e)=>_0x334d3e['some'](_0xab67a0=>_0xab67a0));};_0x4440a8['panelPosition']='sw',_0x4440a8['buttonView']['set']({'label':getTranslation$f(this['locale'],'Show\x20more\x20items'),'icon':IconThreeVerticalDots});for(const _0x531650 of this['items'])_0x38cc2e(_0x531650);return _0xf3caf1['add'](_0x80e0f1),_0x4440a8['listenTo'](this['items'],'add',(_0x461645,_0x40f1fe,_0x550ebf)=>{_0x38cc2e(_0x40f1fe,_0x550ebf);}),_0x4440a8['listenTo'](this['items'],'remove',(_0x3490b4,_0x339a2c,_0x55c720)=>{_0x80e0f1['items']['remove'](_0x55c720);}),_0x4440a8;}['_attachActions'](_0x3d3ba7,_0x5577e4){const _0x55ccfd=_0x3d3ba7&&_0x3d3ba7['element'];_0x55ccfd&&(this['listenTo'](_0x55ccfd,'mouseenter',()=>this['actionIndicator']=_0x5577e4),this['listenTo'](_0x55ccfd,'focus',()=>this['actionIndicator']=_0x5577e4),this['listenTo'](_0x55ccfd,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x55ccfd,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x1221c7=super['_createCommentInputView']();return _0x1221c7['bind']('placeholder')['to'](this),_0x1221c7;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function createMutationObserver(_0x41a9d0){const _0x199b2d=throttle$1(_0x41a9d0,0x1e),_0x54b042=new MutationObserver(_0x1a57f4=>{for(const _0x3df48b of _0x1a57f4)('attributes'==_0x3df48b['type']&&'class'==_0x3df48b['attributeName']||'childList'==_0x3df48b['type']||'characterData'==_0x3df48b['type'])&&_0x199b2d();});return{'attach'(_0xed8723){_0x54b042['observe'](_0xed8723,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x54b042['disconnect'](),_0x199b2d['cancel']();}};}class AnnotationView extends View{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x4f8fc4,_0x3248fe){super(_0x4f8fc4),this['id']=uid(),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['keystrokes']['set']('Esc',(_0x192b95,_0x2822ed)=>this['fire']('Esc',_0x2822ed)),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'](_0x3248fe),this['mainView']=_0x3248fe;const _0x55fc4b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x55fc4b['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 _0x3d6b6f=this['element']['clientHeight'];_0x3d6b6f&&(this['height']=_0x3d6b6f);}}let Annotation$1=class e extends/* #__PURE__ -- @preserve */
ObservableMixin(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x2d1433,target:_0x4a8186,type:_0x6de6e8,isVisible:_0x5423d7=!0x0}){super(),this['view']=_0x2d1433,this['view']['element']||this['view']['render'](),this['_type']=_0x6de6e8,this['_target']=_0x4a8186,e['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new Collection([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x593319,_0x457401)=>{this['view']['focusTracker']['add'](_0x457401);}),this['focusableElements']['on']('remove',(_0x34e033,_0x4bda7e)=>{this['view']['focusTracker']['remove'](_0x4bda7e);}),this['set']('isVisible',_0x5423d7);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x1ced1f=this['_getNormalizedTarget']();return e['_assertCorrectTarget'](_0x1ced1f),_0x1ced1f;}get['targetRect'](){const _0xbd0ff0=this['target'];if(null===_0xbd0ff0)return null;if(_0xbd0ff0 instanceof Rect)return _0xbd0ff0;const _0x2d19f8=_0xbd0ff0['filter'](_0x25d8bb=>isDomElementVisible(_0x25d8bb));return 0x0===_0x2d19f8['length']?null:Rect['getDomElementRects'](_0x2d19f8[0x0])[0x0];}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x57d302){this['view']['isActive']=_0x57d302,this['view']['mainView']['isActive']=_0x57d302;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3c2d79){if(!(null===_0x3c2d79||_0x3c2d79 instanceof Rect||Array['isArray'](_0x3c2d79)&&_0x3c2d79['every'](_0x140b59=>isElement$1(_0x140b59))))throw new CKEditorError('annotation-invalid-target',null,{'target':_0x3c2d79});}['_getNormalizedTarget'](){const _0x2583d6='function'==typeof this['_target']?this['_target']():this['_target'];return isElement$1(_0x2583d6)?[_0x2583d6]:_0x2583d6;}};function isElement$1(_0x1202fe){return null!==_0x1202fe&&'object'==typeof _0x1202fe&&'nodeType'in _0x1202fe&&0x1===_0x1202fe['nodeType'];}function isDomElementVisible(_0x2a2908){if(_0x2a2908['offsetParent'])return!0x0;return!!_0x2a2908['getClientRects']()['item'](0x0);}class AnnotationCollection extends Collection{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x2abbf3=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new FocusTracker(),this['_focusTracker']['on']('change:isFocused',(_0x502449,_0x4f946,_0x1d0121)=>{_0x1d0121||this['fire']('blur');});for(const _0x2c636c of _0x2abbf3)this['add'](_0x2c636c);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x1192fb){if(this['has'](_0x1192fb))throw new CKEditorError('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x1192fb['innerView'],_0x1192fb),this['_viewToAnnotation']['set'](_0x1192fb['view'],_0x1192fb);for(const _0x252c2d of _0x1192fb['focusableElements'])this['_focusTracker']['add'](_0x252c2d);this['listenTo'](_0x1192fb['focusableElements'],'add',(_0x31a1a8,_0x3cba40)=>{this['_focusTracker']['add'](_0x3cba40);}),this['listenTo'](_0x1192fb['focusableElements'],'remove',(_0x4b0512,_0xdc447f)=>{this['_focusTracker']['remove'](_0xdc447f);}),this['listenTo'](_0x1192fb['view']['focusTracker'],'change:isFocused',(_0x26eeac,_0x36aee7,_0x126346)=>{_0x126346&&this['fire']('focus',_0x1192fb);}),_0x1192fb['updateTargetRect']();const _0x110daf=this['_getOrderInContent'](_0x1192fb['view']['targetRect']);return super['add'](_0x1192fb,_0x110daf);}['remove'](_0x2fef9c){if(!this['has'](_0x2fef9c))throw new CKEditorError('annotationcollection-not-existing-item',null);this['stopListening'](_0x2fef9c['view']['focusTracker']),this['stopListening'](_0x2fef9c['focusableElements']);for(const _0xe54a2b of _0x2fef9c['focusableElements'])this['_focusTracker']['remove'](_0xe54a2b);return this['_viewToAnnotation']['delete'](_0x2fef9c['view']),this['_innerViewToAnnotation']['delete'](_0x2fef9c['innerView']),super['remove'](_0x2fef9c);}['getByInnerView'](_0x426154){return this['_innerViewToAnnotation']['get'](_0x426154);}['getByView'](_0x4eafb5){return this['_viewToAnnotation']['get'](_0x4eafb5);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1e6d68 of this)_0x1e6d68['updateTargetRect']();this['_sort']();}['_sort'](){const _0xadeaff=Array['from'](this)['sort']((_0x182ceb,_0x4ffdd4)=>elementOffsetComparator(_0x182ceb['view']['targetRect'],_0x4ffdd4['view']['targetRect']));for(let _0x34363d=_0xadeaff['length']-0x1;_0x34363d>0x0;_0x34363d--){const _0x4f898d=_0xadeaff[_0x34363d];_0x34363d!==this['getIndex'](_0x4f898d)&&(this['remove'](_0x4f898d),this['add'](_0x4f898d));}}['_getOrderInContent'](_0xd6e614){let _0xd5cc7a=0x0;if(!_0xd6e614)return this['length'];for(const _0x3292a3 of this){const _0x279eaa=_0x3292a3['view']['targetRect'];if(_0x279eaa){if(elementOffsetComparator(_0xd6e614,_0x279eaa)<0x0)return _0xd5cc7a;_0xd5cc7a++;}}return _0xd5cc7a;}}function bindAnnotationCollections({source:_0x3da82b,target:_0x56fc3,filter:_0x4882b0}){for(const _0x41584e of _0x3da82b)_0x4882b0(_0x41584e)&&_0x56fc3['add'](_0x41584e);_0x56fc3['listenTo'](_0x3da82b,'add',(_0x566558,_0x4129e3)=>{_0x4882b0(_0x4129e3)&&_0x56fc3['add'](_0x4129e3);}),_0x56fc3['listenTo'](_0x3da82b,'remove',(_0x4b7866,_0x569ea1)=>{_0x56fc3['has'](_0x569ea1)&&_0x56fc3['remove'](_0x569ea1);});}function elementOffsetComparator(_0xeaff70,_0x558791){if(null===_0xeaff70&&null===_0x558791)return 0x0;if(null===_0xeaff70)return-0x1;if(null===_0x558791)return 0x1;const _0x11c4ca=_0xeaff70['top']-_0x558791['top'];return 0x0==_0x11c4ca?_0xeaff70['left']-_0x558791['left']:_0x11c4ca;}class Annotations extends ContextPlugin{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41ff93){if(super(_0x41ff93),this['collection']=new AnnotationCollection(),this['_visibleAnnotations']=new AnnotationCollection(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x41ff93 instanceof Editor){const _0x5efe9c=_0x41ff93['locale'];_0x41ff93['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':getTranslation$f(_0x5efe9c,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':getTranslation$f(_0x5efe9c,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':getTranslation$f(_0x5efe9c,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':getTranslation$f(_0x5efe9c,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':getTranslation$f(_0x5efe9c,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':getTranslation$f(_0x5efe9c,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':getTranslation$f(_0x5efe9c,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x1769b1){this['collection']['add'](_0x1769b1);}['remove'](_0x1f7058){this['collection']['remove'](_0x1f7058),_0x1f7058['destroy']();}['refreshVisibility'](){for(const _0x4f1a07 of this['collection'])_0x4f1a07['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x35bbf7){return this['collection']['getByInnerView'](_0x35bbf7);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x259f15 of this['collection'])_0x259f15['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x57d8fb){this['fire']('_activateAnnotation',_0x57d8fb);}['createAnnotation'](_0x4defd3){return new Annotation$1(_0x4defd3);}['createAnnotationView'](_0x459bae,_0x26d624){return new AnnotationView(_0x459bae,_0x26d624);}['_addActiveAnnotation'](_0x49e5e5){const _0x8e9c2d=new Set(this['activeAnnotations']);_0x8e9c2d['add'](_0x49e5e5),this['activeAnnotations']=_0x8e9c2d;}['_removeActiveAnnotation'](_0x1c7ff8){const _0x370689=new Set(this['activeAnnotations']);_0x370689['delete'](_0x1c7ff8),this['activeAnnotations']=_0x370689;}['_bindAnnotationsToVisibleAnnotations'](){const _0x28a5c2=this['collection'],_0x5b9eb9=this['_visibleAnnotations'];function _0x2d7742(_0x49d319){const _0x5e6b00=_0x49d319['source'];_0x5e6b00['isVisible']&&!_0x5b9eb9['has'](_0x5e6b00)?_0x5b9eb9['add'](_0x5e6b00):!_0x5e6b00['isVisible']&&_0x5b9eb9['has'](_0x5e6b00)&&_0x5b9eb9['remove'](_0x5e6b00),_0x5e6b00['view']['focusTracker']['remove'](_0x5e6b00['view']['element']),_0x5e6b00['view']['focusTracker']['add'](_0x5e6b00['view']['element']);}this['listenTo'](_0x28a5c2,'add',(_0x20b4c4,_0x147d38)=>{_0x147d38['isVisible']&&_0x5b9eb9['add'](_0x147d38),this['listenTo'](_0x147d38,'change:isVisible',_0x2d7742);}),this['listenTo'](_0x28a5c2,'remove',(_0x11069e,_0x2eaeed)=>{_0x5b9eb9['has'](_0x2eaeed)&&_0x5b9eb9['remove'](_0x2eaeed),this['stopListening'](_0x2eaeed,'change:isVisible',_0x2d7742);});}['_setupEnterAnnotationKeystroke'](){const _0x1492fc=_0x37919b=>{_0x37919b['on']('ready',()=>{_0x37919b['keystrokes']['set'](FOCUS_ANNOTATION_KEYSTROKE,(_0x3055f1,_0x5b07c3)=>{const _0xd6beef=first(this['activeAnnotations']['values']());_0xd6beef&&(_0xd6beef['view']['focus'](),_0x5b07c3());});});};this['context']instanceof Editor?_0x1492fc(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x126824,_0x546ab4)=>{_0x1492fc(_0x546ab4);});}['_setupEscapeAnnotationHandling'](){const _0x2050af=_0x1c1b24=>{const _0x1c1847=_0x1c1b24['source'],_0xaa178d=[];let _0x22fbed;if(Array['isArray'](_0x1c1847['target'])){_0x22fbed=_0x1c1847['target'][0x0],this['context']instanceof Editor?_0xaa178d['push'](this['context']):this['context']['editors']&&_0xaa178d['push'](...this['context']['editors']);for(const _0x3178e5 of _0xaa178d)for(const _0x2e597c of _0x3178e5['editing']['view']['domRoots']['values']())if(_0x2e597c['contains'](_0x22fbed))return void _0x3178e5['editing']['view']['focus']();_0x22fbed['focus']();}};this['listenTo'](this['collection'],'add',(_0x3652c2,_0x26dbad)=>{this['listenTo'](_0x26dbad,'escape',_0x2050af,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x2a1e8d,_0x322513)=>{this['stopListening'](_0x322513,'escape',_0x2050af);});}}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(_0x205978){super(_0x205978),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x39dd49=this['context']['config'];_0x39dd49['define']('comments.maxCommentsWhenCollapsed',0x2),_0x39dd49['define']('comments.maxThreadTotalWeight',0x1f4),_0x39dd49['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x39dd49['define']('comments.CommentThreadView',CommentThreadView),_0x39dd49['define']('comments.CommentView',CommentView),_0x39dd49['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x57afc2=this['context']['plugins']['get'](Annotations);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x19ee30,_0x1318d5)=>this['_addCommentThread'](_0x1318d5)),this['on']('submitCommentThread',(_0x283ecf,_0x50287c)=>this['_submitCommentThread'](_0x50287c)),this['on']('resolveCommentThread',(_0x3fdbbb,_0x599ca8)=>this['_resolveCommentThread'](_0x599ca8)),this['on']('resolveCommentThread',(_0x4b8646,_0x44372d)=>this['_updateActiveAnnotation'](_0x44372d),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x3db034,_0xb60c27)=>this['_reopenCommentThread'](_0xb60c27)),this['on']('reopenCommentThread',(_0x2952c9,_0x18fbd5)=>this['_updateActiveAnnotation'](_0x18fbd5),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x157fd8,_0x518807)=>this['_removeCommentThread'](_0x518807)),this['on']('updateCommentThread',(_0x282b71,_0x1ea289)=>this['_updateCommentThread'](_0x1ea289)),this['on']('updateCommentThread',(_0x39ddba,_0x1badbf)=>this['_updateActiveAnnotation'](_0x1badbf),{'priority':'lowest'}),this['on']('addComment',(_0x1fe977,_0x1df874)=>this['_addComment'](_0x1df874)),this['on']('updateComment',(_0x4448b8,_0x12798b)=>this['_updateComment'](_0x12798b)),this['on']('removeComment',(_0x2e7b76,_0x598483)=>this['_removeComment'](_0x598483)),this['on']('addComment',(_0x559cee,{threadId:_0x2c3499,isFromAdapter:_0x1f1b06})=>{if(_0x1f1b06)return;const _0x284fbc=this['getCommentThread'](_0x2c3499),_0x5329b3=_0x284fbc&&this['_threadToController']['get'](_0x284fbc);_0x5329b3&&_0x5329b3['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x57afc2,'change:activeAnnotations',(_0x43580d,_0x2ef760,_0x11c809)=>{const _0x32ec28=Array['from'](_0x11c809)['map'](_0xa23be8=>this['_viewToController']['get'](_0xa23be8['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x32ec28?_0x32ec28['model']:null;});}set['adapter'](_0x5c4d39){if(this['_adapter'])throw new CKEditorError('commentsrepository-adapter-already-set');this['_adapter']=_0x5c4d39;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x192e14=noChannel,threadId:_0xd13665=uid(),comments:_0x533724=[],unlinkedAt:_0x55feb6=null,resolvedAt:_0x38d43b=null,resolvedBy:_0x2dc2f9=null,target:_0x40d6e6=null,context:_0x3aad73=null,attributes:_0x2c397b={},isResolvable:_0x28bcb3=!0x0,isSubmitted:_0xfd430d=!0x1,isFromAdapter:_0x26c0c4=!0x1}={}){return this['fire'](toEventName('addCommentThread',_0x192e14),{'channelId':_0x192e14,'threadId':_0xd13665,'comments':_0x533724,'unlinkedAt':_0x55feb6,'resolvedAt':_0x38d43b,'resolvedBy':_0x2dc2f9,'target':_0x40d6e6,'context':_0x3aad73,'attributes':_0x2c397b,'isFromAdapter':_0x26c0c4,'isResolvable':_0x28bcb3,'isSubmitted':_0xfd430d}),this['getCommentThread'](_0xd13665);}['openNewCommentThread']({channelId:_0x16d5b3=noChannel,threadId:_0x15488a=uid(),target:_0x517d73,context:_0x47d9f4=null,isResolvable:_0x38b398=!0x0}){if(this['_readOnlyChannels']['has'](_0x16d5b3)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x517d73)throw new CKEditorError('commentsrepository-missing-target');const _0x2912c6=this['addCommentThread']({'channelId':_0x16d5b3,'threadId':_0x15488a,'target':_0x517d73,'context':_0x47d9f4,'isResolvable':_0x38b398});if(!_0x2912c6)return null;const _0x1f0402=this['_threadToController']['get'](_0x2912c6),_0x13c15d=_0x1f0402['view']['commentThreadInputView']['commentInputView'],_0x4638b8=this['context']['plugins']['get'](Annotations),_0x47ee93=_0x4638b8['getByInnerView'](_0x1f0402['view']);return _0x4638b8['activate'](_0x47ee93),_0x13c15d['once']('editorReady',()=>_0x13c15d['focus']()),_0x2912c6;}['hasCommentThread'](_0x270949){if('string'!=typeof _0x270949)throw new CKEditorError('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x270949);}['updateCommentThread']({channelId:_0x1b6603=noChannel,threadId:_0x17cb86,context:_0x34142c,unlinkedAt:_0x5bf914,attributes:_0x3ed901,isFromAdapter:_0x1d0036=!0x1}){return this['fire'](toEventName('updateCommentThread',_0x1b6603),{'channelId':_0x1b6603,'threadId':_0x17cb86,'context':_0x34142c,'unlinkedAt':_0x5bf914,'attributes':_0x3ed901,'isFromAdapter':_0x1d0036}),this['getCommentThread'](_0x17cb86);}['getCommentThread'](_0x49c864){if('string'!=typeof _0x49c864)throw new CKEditorError('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x49c864);}['fetchCommentThread']({channelId:_0x4d6886,threadId:_0x11fce5}={}){const _0x40e931=this['getCommentThread'](_0x11fce5);if(_0x40e931)return Promise['resolve'](_0x40e931);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':_0x4d6886,'threadId':_0x11fce5})['then'](_0x12c45d=>this['hasCommentThread'](_0x11fce5)?this['getCommentThread'](_0x11fce5):_0x12c45d?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x4d6886},_0x12c45d)):void 0x0)['catch'](_0x557974=>{throw console['error'](_0x557974),new CKEditorError('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x25d278,skipNotAttached:_0x362ccb=!0x1,skipEmpty:_0x41a42b=!0x1,toJSON:_0xa8821=!0x1}={}){const _0xe1721f=[];for(const _0x66ed9a of this['_threads']['values']())_0x25d278&&_0x66ed9a['channelId']!==_0x25d278||_0x362ccb&&!_0x66ed9a['isAttached']||_0x41a42b&&0x0===_0x66ed9a['length']||_0xe1721f['push'](_0x66ed9a);return _0xa8821?_0xe1721f['map'](_0x1dd87f=>_0x1dd87f['toJSON']()):_0xe1721f;}['getAnnotationForCommentThread'](_0x406a47){const _0x463d9c=this['_threadToController']['get'](_0x406a47);if(!_0x463d9c)return null;return this['context']['plugins']['get'](Annotations)['getByInnerView'](_0x463d9c['view'])||null;}['getCommentThreadForAnnotation'](_0x44eb11){const _0x359199=this['_viewToController']['get'](_0x44eb11['innerView']);return _0x359199?_0x359199['model']:null;}['setActiveCommentThread'](_0x23aca1){const _0x495d86=this['context']['plugins']['get'](Annotations);if(!_0x23aca1)return void(this['activeCommentThread']&&_0x495d86['deactivateAll']());const _0x419859=this['getCommentThread'](_0x23aca1);if(!_0x419859)throw new CKEditorError('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x23aca1});if(!this['_threadToController']['has'](_0x419859))throw new CKEditorError('commentsrepository-active-not-attached',null,{'threadId':_0x23aca1});const _0x7eba4f=_0x495d86['getByInnerView'](this['_threadToController']['get'](_0x419859)['view']);_0x495d86['activate'](_0x7eba4f);}['switchReadOnly'](_0x20fd2b,_0x2e3b71){_0x20fd2b?this['_readOnlyChannels']['add'](_0x2e3b71):this['_readOnlyChannels']['delete'](_0x2e3b71),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x1d3434){return this['_readOnlyChannels']['has'](_0x1d3434)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x3cf9d7,_0x556a6e){return new CommentThreadController(_0x3cf9d7,_0x556a6e);}['setPermissions'](_0x5e7b8a,_0x42b64d=noChannel){this['_permissions']['set'](_0x42b64d,_0x5e7b8a),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x17f83c=noChannel){return this['_permissions']['has'](_0x17f83c)?this['_permissions']['get'](_0x17f83c):defaultPermissions;}['_addCommentThread']({channelId:_0x349fd1,threadId:_0x1a9fe,comments:_0x2989aa,unlinkedAt:_0x3be2bc,resolvedAt:_0x22ec8c,resolvedBy:_0x15ac2f,target:_0x3c41be,context:_0x4e38ad,attributes:_0x4d1941,isFromAdapter:_0x1c29d2,isResolvable:_0x3269c0,isSubmitted:_0x4f9f73}){if('string'!=typeof _0x1a9fe)throw new CKEditorError('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1a9fe});if(this['hasCommentThread'](_0x1a9fe))throw new CKEditorError('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x1a9fe});const _0x378aea=new CommentThread(this,{'channelId':_0x349fd1,'id':_0x1a9fe,'context':_0x4e38ad,'attributes':_0x4d1941,'unlinkedAt':_0x3be2bc,'resolvedAt':_0x22ec8c,'resolvedBy':_0x15ac2f?this['context']['plugins']['get'](Users)['getUser'](_0x15ac2f):null,'isResolvable':_0x3269c0,'isSubmitted':_0x4f9f73||_0x1c29d2});this['_threads']['set'](_0x1a9fe,_0x378aea);for(const _0x3a4d33 of _0x2989aa)_0x378aea['_add'](this['_createNewComment']({'threadId':_0x1a9fe,..._0x3a4d33}));return _0x3c41be&&_0x378aea['attachTo'](_0x3c41be),_0x1c29d2||!_0x378aea['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x349fd1,'threadId':_0x1a9fe});}['_submitCommentThread']({channelId:_0x41b497,threadId:_0x59ea6a}){if(!this['hasCommentThread'](_0x59ea6a))throw new CKEditorError('commentsrepository-missing-comment-thread',this);const _0x5ea5f0=this['getCommentThread'](_0x59ea6a);if(_0x5ea5f0['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0xbc252d,comments:_0x5cd76f,resolvedAt:_0x4fd7cd,resolvedBy:_0x5e30ef,context:_0x59757d,attributes:_0x2af75c}=_0x5ea5f0,_0xa56ef3=this['context']['plugins']['get']('PendingActions'),_0x34f403=_0xa56ef3['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x41b497,'threadId':_0xbc252d,'comments':_0x5cd76f['map'](_0x7b84d3=>_0x7b84d3['toJSON']()),'resolvedAt':_0x4fd7cd,'resolvedBy':_0x5e30ef?_0x5e30ef['id']:_0x5e30ef,'context':_0x59757d,'attributes':_0x2af75c})['then'](({comments:_0x3e0ca0})=>{_0xa56ef3['remove'](_0x34f403);for(const _0x97ac59 of _0x3e0ca0)this['_updateComment']({'channelId':_0x41b497,'threadId':_0x59ea6a,'commentId':_0x97ac59['commentId'],'createdAt':_0x97ac59['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x59898d=>{throw console['error'](_0x59898d),new CKEditorError('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x326601,target:_0x146218}){const _0xc0d821=this['getCommentThread'](_0x326601);if(!_0xc0d821)throw new CKEditorError('commentsrepository-attach-missing-comment-thread',this);const _0x323dcd=this['context']['plugins']['get']('PendingActions'),_0x18ae51=this['context']['plugins']['get'](Annotations),_0x2749c9=this['_createCommentThreadView'](_0xc0d821),_0x50e986=new CommentThreadController(_0xc0d821,_0x2749c9);let _0x10e01b=null;_0x2749c9['on']('change:isDirty',(_0x34f46b,_0x1d20e,_0x1845c9)=>{_0x1845c9?_0x10e01b=_0x323dcd['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x10e01b&&(_0x323dcd['remove'](_0x10e01b),_0x10e01b=null);}),this['_threadToController']['set'](_0xc0d821,_0x50e986),this['_viewToController']['set'](_0x2749c9,_0x50e986);const _0x34b8cc=new AnnotationView(this['context']['locale'],_0x2749c9);_0x34b8cc['bind']('length')['to'](_0x2749c9),_0x34b8cc['bind']('isDirty')['to'](_0x2749c9,'isDirty',_0x2749c9,'length',(_0x3640be,_0x10bb87)=>_0x3640be||!_0x10bb87),_0x34b8cc['bind']('isActive')['to'](_0x2749c9),_0x34b8cc['type']='comment';const _0x5e73ba=new Annotation$1({'view':_0x34b8cc,'target':_0x146218,'type':'comment','isVisible':!_0xc0d821['archivedAt']&&!!('function'==typeof _0x146218?_0x146218():_0x146218)});return _0x2749c9['on']('escape',()=>{_0x5e73ba['fire']('escape');}),this['_bindAnnotationToEditors'](_0x2749c9,_0x5e73ba),_0x18ae51['add'](_0x5e73ba),_0x5e73ba;}['_bindAnnotationToEditors'](_0x5a3b38,_0x1bd5dc){this['listenTo'](_0x5a3b38,'editorReady',(_0x27521a,_0x1e21b4)=>{const _0xfc064b=_0x1e21b4['ui']['view']['body']['bodyCollectionContainer'];_0x1bd5dc['focusableElements']['add'](_0xfc064b),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['add'](_0xfc064b);},{'priority':'highest'}),this['listenTo'](_0x5a3b38,'editorDestroyed',(_0x229754,_0x38a53a)=>{const _0x461e26=_0x38a53a['ui']['view']['body']['bodyCollectionContainer'];_0x1bd5dc['focusableElements']['has'](_0x461e26)&&_0x1bd5dc['focusableElements']['remove'](_0x461e26),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['remove'](_0x461e26);});}['_unbindEditors'](_0x39f8c4){this['stopListening'](_0x39f8c4,'editorReady'),this['stopListening'](_0x39f8c4,'editorDestroyed');}['_createCommentThreadView'](_0x3af9d4){const _0x256810=this['context']['plugins']['get'](Users),{config:_0x4b3f31,locale:_0x50d3bd}=this['context'],_0x502338=getDateTimeFormatter(_0x4b3f31['get']('locale'),_0x50d3bd);return new(0x0,(_0x4b3f31['get']('comments'))['CommentThreadView'])(_0x50d3bd,_0x3af9d4,_0x256810['me'],{'editorConfig':{..._0x4b3f31['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x4b3f31['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x4b3f31['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4b3f31['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4b3f31['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x502338,'CommentView':_0x4b3f31['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x121eb7,channelId:_0x2c826c,resolvedAt:_0x2ce967,resolvedBy:_0x5a99d8,isFromAdapter:_0x1e021c}){if(!this['hasCommentThread'](_0x121eb7))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x121eb7});const _0x465c5b=this['getCommentThread'](_0x121eb7);if(_0x465c5b['isResolved'])throw new CKEditorError('commentsrepository-resolved-comment-thread',null,{'threadId':_0x121eb7});const _0x22f419=this['context']['plugins']['get'](Users);if(_0x465c5b['resolvedBy']=_0x22f419['getUser'](_0x5a99d8),_0x465c5b['resolvedAt']=_0x2ce967,_0x1e021c||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x5ceecc=this['context']['plugins']['get']('PendingActions'),_0x5f4fbb=_0x5ceecc['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x2c826c,'threadId':_0x121eb7})['then'](({resolvedAt:_0x2dfce9,resolvedBy:_0x426ae5})=>{_0x5ceecc['remove'](_0x5f4fbb),_0x465c5b['resolvedBy']['id']!==_0x426ae5&&(_0x465c5b['resolvedBy']=_0x22f419['getUser'](_0x426ae5)),_0x465c5b['resolvedAt']=_0x2dfce9;})['catch'](_0x3f2285=>{throw console['error'](_0x3f2285),new CKEditorError('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x3180ef,channelId:_0x505d78,isFromAdapter:_0x4f86a5}){if(!this['hasCommentThread'](_0x3180ef))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x3180ef});const _0x589b34=this['getCommentThread'](_0x3180ef);if(!_0x589b34['isResolved'])throw new CKEditorError('commentsrepository-reopen-comment-thread',null,{'threadId':_0x3180ef});if(_0x589b34['resolvedBy']=null,_0x589b34['resolvedAt']=null,_0x4f86a5||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x3ee436=this['context']['plugins']['get']('PendingActions'),_0x19f9a4=_0x3ee436['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x505d78,'threadId':_0x3180ef})['then'](()=>_0x3ee436['remove'](_0x19f9a4))['catch'](_0x181f2e=>{throw console['error'](_0x181f2e),new CKEditorError('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x561515,isFromAdapter:_0x4e614a}){const _0x35139b=this['getCommentThread'](_0x561515);if(!_0x35139b)throw new CKEditorError('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x561515),this['_threads']['delete'](_0x561515),!_0x35139b['isSubmitted']||_0x4e614a||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x4fb922=this['context']['plugins']['get']('PendingActions'),{channelId:_0x28ecd8}=_0x35139b,_0x4dd14a=_0x4fb922['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x28ecd8,'threadId':_0x561515})['then'](()=>_0x4fb922['remove'](_0x4dd14a))['catch'](_0x5a4bb1=>{throw console['error'](_0x5a4bb1),new CKEditorError('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x43a0bb,unlinkedAt:_0x416665,context:_0x43c28e,attributes:_0x74bd1c,isFromAdapter:_0x5df585}){if('string'!=typeof _0x43a0bb)throw new CKEditorError('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x43a0bb});if(!this['hasCommentThread'](_0x43a0bb))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x43a0bb});const _0x536a12=this['getCommentThread'](_0x43a0bb);let _0x45d78c=!0x1;if(void 0x0!==_0x43c28e&&_0x536a12['context']!==_0x43c28e&&(_0x536a12['context']=_0x43c28e,_0x45d78c=!0x0),void 0x0!==_0x416665&&_0x536a12['unlinkedAt']!==_0x416665&&(_0x536a12['unlinkedAt']=_0x416665,_0x45d78c=!0x0),_0x74bd1c&&!isEqual(_0x74bd1c,_0x536a12['attributes'])&&(_0x536a12['attributes']=_0x74bd1c,_0x45d78c=!0x0),!_0x45d78c)return Promise['resolve']();if(!_0x536a12['isSubmitted']||_0x5df585||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x2ef6fb=this['context']['plugins']['get']('PendingActions'),{channelId:_0x532fbb}=_0x536a12,_0x550cd7=_0x2ef6fb['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x532fbb,'threadId':_0x43a0bb,'context':_0x43c28e,'unlinkedAt':_0x416665,'attributes':_0x74bd1c})['then'](()=>_0x2ef6fb['remove'](_0x550cd7))['catch'](_0x122102=>{throw console['error'](_0x122102),new CKEditorError('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x15faa1){const _0x279db7=this['context']['plugins']['get'](Annotations),_0x57414f=this['getCommentThread'](_0x15faa1);if(_0x57414f['_isAttached']=!0x1,this['_threadToController']['has'](_0x57414f)){const _0x5ad618=this['_threadToController']['get'](_0x57414f),_0xb7ccf1=_0x5ad618['view'],_0x3b98e1=_0x279db7['getByInnerView'](_0xb7ccf1);this['_threadToController']['delete'](_0x57414f),this['_viewToController']['delete'](_0xb7ccf1),_0x3b98e1&&_0x279db7['remove'](_0x3b98e1),_0x5ad618['destroy'](),_0xb7ccf1['destroy']()['then'](()=>{this['_unbindEditors'](_0xb7ccf1);});}}['_updateActiveAnnotation']({threadId:_0xd79454,resolvedAt:_0x47a19d,unlinkedAt:_0x21e4c4}){const _0x321203=!!_0x47a19d,_0x103b5a=this['context']['plugins']['get'](Annotations),_0x4df62a=this['getCommentThread'](_0xd79454);if(this['_threadToController']['has'](_0x4df62a)){const _0x53f05c=this['_threadToController']['get'](_0x4df62a)['view'],_0x3636f7=_0x103b5a['getByInnerView'](_0x53f05c);_0x3636f7&&(_0x321203&&_0x103b5a['_removeActiveAnnotation'](_0x3636f7),_0x21e4c4?_0x3636f7['isVisible']=!0x1:_0x3636f7['refreshVisibility']());}}['_getExternalAuthor'](_0x1856df){const _0x5e58dd=this['context']['plugins']['get'](Users),_0x463ef1=hashObject('external:'+_0x1856df),_0x2731d4=_0x5e58dd['getUser'](_0x463ef1);return _0x2731d4||_0x5e58dd['addUser']({'id':_0x463ef1,'name':_0x1856df});}['_createNewComment']({threadId:_0x18f7cd,commentId:_0x367a9c=uid(),content:_0x1e3948,authorId:_0x40c8c5,createdAt:_0x21832f,attributes:_0x3d4585}){if('string'!=typeof _0x367a9c)throw new CKEditorError('commentsrepository-invalid-commentid');if('string'!=typeof _0x40c8c5)throw new CKEditorError('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x1e3948||!_0x1e3948['trim']())throw new CKEditorError('commentsrepository-invalid-comment-content');const _0x1c14a6=this['context']['plugins']['get'](Users)['getUser'](_0x40c8c5);if(!_0x1c14a6)throw new CKEditorError('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x40c8c5});let _0x5933f1=null,_0x169178=_0x21832f;return _0x3d4585?.['@external']&&(_0x5933f1=this['_getExternalAuthor'](_0x3d4585['@external']['authorName']),_0x169178=new Date(_0x3d4585['@external']['createdAt'])),new Comment(this,{'threadId':_0x18f7cd,'id':_0x367a9c,'author':_0x5933f1||_0x1c14a6,'creator':_0x1c14a6,'content':_0x1e3948,'createdAt':_0x21832f,'authoredAt':_0x169178,'attributes':_0x3d4585});}['_addComment'](_0x4905da){let {threadId:_0x381f55,content:_0xf5d006,attributes:_0x4fad48,isFromAdapter:_0xa9429e}=_0x4905da;const _0x52331d=this['getCommentThread'](_0x4905da['threadId']);if(!_0x52331d)throw new CKEditorError('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x5d9369=this['_createNewComment'](_0x4905da),{id:_0x4938ac}=_0x5d9369;if(_0x52331d['_add'](_0x5d9369),_0xa9429e||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x52331d['isSubmitted'])return Promise['resolve']();const _0x4edd96=this['context']['plugins']['get']('PendingActions'),{channelId:_0x395b5c}=_0x52331d,_0x4ade21=_0x4edd96['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x4fad48||(_0x4fad48={}),this['adapter']['addComment']({'channelId':_0x395b5c,'threadId':_0x381f55,'commentId':_0x4938ac,'content':_0xf5d006,'attributes':_0x4fad48})['then'](_0x278093=>{_0x4edd96['remove'](_0x4ade21),_0x278093&&this['_updateComment']({'channelId':_0x395b5c,'threadId':_0x381f55,'commentId':_0x4938ac,'createdAt':_0x278093['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x1931b5=>{throw console['error'](_0x1931b5),new CKEditorError('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x4e6e65,commentId:_0x335e27,content:_0x58f71a,createdAt:_0xe24157,attributes:_0xd65c7f,isFromAdapter:_0x4023f2}){if(void 0x0!==_0x58f71a&&('string'!=typeof _0x58f71a||!_0x58f71a['trim']()['length']))throw new CKEditorError('commentsrepository-update-comment-invalid-content');const _0x5e88d7=this['getCommentThread'](_0x4e6e65),_0x578187=_0x5e88d7['getComment'](_0x335e27);if(!_0x578187)throw new CKEditorError('commentsrepository-update-missing-comment',this);let _0x36d17c=!0x1;if(_0x58f71a&&_0x58f71a!==_0x578187['content']&&(_0x578187['isEditable']||_0x4023f2)&&(_0x578187['content']=_0x58f71a,_0x36d17c=!0x0),_0xe24157&&_0xe24157!==_0x578187['createdAt']&&(_0x578187['createdAt']=_0xe24157,_0x578187['attributes']&&_0x578187['attributes']['@external']||(_0x578187['authoredAt']=_0xe24157),_0x36d17c=!0x0),_0xd65c7f&&!isEqual(_0xd65c7f,_0x578187['attributes'])&&(_0x578187['attributes']=_0xd65c7f,_0x36d17c=!0x0),!_0x36d17c)return Promise['resolve']();if(_0x5e88d7['fire']('commentUpdated'),_0x4023f2||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x17ef0f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x55603e}=this['getCommentThread'](_0x578187['threadId']),_0x46c62a=_0x17ef0f['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x55603e,'threadId':_0x4e6e65,'commentId':_0x335e27,'content':_0x58f71a,'attributes':_0xd65c7f})['then'](()=>_0x17ef0f['remove'](_0x46c62a))['catch'](_0x5cd723=>{throw console['error'](_0x5cd723),new CKEditorError('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x5a2d78,commentId:_0x3880a4,isFromAdapter:_0x14c369}){const _0x54bc82=this['getCommentThread'](_0x5a2d78),_0x5652f0=_0x54bc82['getComment'](_0x3880a4);if(!_0x5652f0)throw new CKEditorError('commentsrepository-remove-missing-comment',this);if(_0x54bc82['_remove'](_0x5652f0),_0x14c369||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x3474b7=this['context']['plugins']['get']('PendingActions'),{channelId:_0x55ddfe}=_0x54bc82,_0x424b61=_0x3474b7['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x55ddfe,'threadId':_0x5a2d78,'commentId':_0x3880a4})['then'](()=>_0x3474b7['remove'](_0x424b61))['catch'](_0x51ecc9=>{throw console['error'](_0x51ecc9),new CKEditorError('commentsrepository-remove-comment-internal-error',this);});}}class CommentThread extends/* #__PURE__ -- @preserve */
ObservableMixin(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x2b1735,_0x16812d){super();const _0x21fde3=_0x16812d['isResolvable'];this['channelId']=_0x16812d['channelId'],this['id']=_0x16812d['id'],this['comments']=new Collection(),this['_repository']=_0x2b1735,this['_isAttached']=!0x1,this['_isSubmitted']=_0x16812d['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x2b1735,'_permissions',_0x2b1735,'_readOnlyChannels',()=>_0x2b1735['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x2b1735,'_permissions',()=>_0x2b1735['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x2b1735,'_permissions',()=>{const _0x46fd65=_0x2b1735['getPermissions'](this['channelId']);return _0x46fd65['write']||_0x46fd65['admin'];}),this['bind']('isResolvable')['to'](_0x2b1735,'_permissions',()=>_0x21fde3&&_0x2b1735['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x16812d['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x257137,_0x251031)=>_0x257137?_0x251031?_0x257137<_0x251031?_0x257137:_0x251031:_0x257137:_0x251031),this['set']('unlinkedAt',_0x16812d['unlinkedAt']||null),this['set']('resolvedAt',_0x16812d['resolvedAt']||null),this['set']('resolvedBy',_0x16812d['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x44c4a6=>!!_0x44c4a6),this['set']('attributes',_0x16812d['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x5c84c1,_0x1f06d7)=>_0x5c84c1+_0x1f06d7['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x5ccf97,id:_0x33374f}=this;this['_repository']['fire'](toEventName('submitCommentThread',_0x5ccf97),{'channelId':_0x5ccf97,'threadId':_0x33374f});}['setUnlinkedAt'](_0x560d03){this['_update']({'unlinkedAt':_0x560d03});}['resolve']({resolvedAt:_0x484469=new Date(),resolvedBy:_0x16b40d='',isFromAdapter:_0x2abb3b=!0x1}={}){const _0x119931=this['_repository']['context']['plugins']['get'](Users)['me'],{channelId:_0x588ae3,id:_0x40c322}=this;this['_repository']['fire'](toEventName('resolveCommentThread',_0x588ae3),{'channelId':_0x588ae3,'threadId':_0x40c322,'resolvedAt':_0x484469,'resolvedBy':_0x16b40d||_0x119931['id'],'isFromAdapter':_0x2abb3b});}['reopen']({isFromAdapter:_0x49673a=!0x1}={}){const {channelId:_0xf19bd2,id:_0x26bb8a}=this;this['_repository']['fire'](toEventName('reopenCommentThread',_0xf19bd2),{'channelId':_0xf19bd2,'threadId':_0x26bb8a,'isFromAdapter':_0x49673a});}['setContext'](_0x43a511){this['context']||this['_update']({'context':_0x43a511});}['setAttribute'](_0x52c6af,_0xd591b2){const _0x17f1f3=cloneDeep(this['attributes']);set(_0x17f1f3,_0x52c6af,_0xd591b2),this['_update']({'attributes':_0x17f1f3});}['removeAttribute'](_0x4a0a6b){const _0x206dd1=cloneDeep(this['attributes']);unset(_0x206dd1,_0x4a0a6b),this['_update']({'attributes':_0x206dd1});}['remove']({isFromAdapter:_0x26f4fb=!0x1}={}){const {channelId:_0x9917f1,id:_0x1a9d5a}=this;this['_repository']['fire'](toEventName('removeCommentThread',_0x9917f1),{'channelId':_0x9917f1,'threadId':_0x1a9d5a,'isFromAdapter':_0x26f4fb});}['attachTo'](_0xa155ba){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0xa155ba});}['addComment'](_0x3e721c){const {channelId:_0x47d92d,id:_0x107c94}=this;this['_repository']['fire'](toEventName('addComment',_0x47d92d,_0x107c94),Object['assign']({'channelId':_0x47d92d,'threadId':_0x107c94},_0x3e721c));}['getComment'](_0x5a4c6a){if('string'!=typeof _0x5a4c6a)throw new CKEditorError('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x5a4c6a});return this['comments']['get'](_0x5a4c6a);}['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'](_0x593b6d=>_0x593b6d['toJSON']()),'attributes':this['attributes']};}['_add'](_0x37220a){return this['listenTo'](_0x37220a,'change:authoredAt',()=>{const _0x52afd6=this['_findOptimalIndex'](_0x37220a),_0x42aa12=this['comments'];_0x52afd6-0x1!=_0x42aa12['getIndex'](_0x37220a)&&_0x52afd6+0x1!=_0x42aa12['getIndex'](_0x37220a)&&(this['_remove'](_0x37220a),this['_add'](_0x37220a));}),this['comments']['add'](_0x37220a,this['_findOptimalIndex'](_0x37220a));}['_update'](_0x45c65f){const {channelId:_0x406da9,id:_0x154f94}=this;this['_repository']['fire'](toEventName('updateCommentThread',_0x406da9),{..._0x45c65f,'channelId':_0x406da9,'threadId':_0x154f94});}['_remove'](_0x549741){return this['stopListening'](_0x549741),_0x549741['destroy'](),this['comments']['remove'](_0x549741);}['_findOptimalIndex'](_0x34f8c1){const _0x5b8a8d=this['comments']['find'](_0x41c560=>new Date(_0x41c560['authoredAt'])['getTime']()>new Date(_0x34f8c1['authoredAt'])['getTime']());return _0x5b8a8d?this['comments']['getIndex'](_0x5b8a8d):this['length'];}}const MIN_WEIGHT=0xc8;function getContentLength(_0x163185){const _0x95fb48=document['createElement']('div');return _0x95fb48['innerHTML']=_0x163185,_0x95fb48['textContent']['length'];}class Comment extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0xa7f3bb,_0x3445a4){super();const _0x21d2d8=_0xa7f3bb['context']['plugins']['get'](Users)['me'],_0x49d49e=_0xa7f3bb['getCommentThread'](_0x3445a4['threadId']),_0x367f39=0x0===_0x49d49e['comments']['length'],_0x49bb5b=_0x21d2d8===_0x3445a4['author'];this['id']=_0x3445a4['id'],this['threadId']=_0x3445a4['threadId'],this['author']=_0x3445a4['author'],this['creator']=_0x3445a4['creator'],this['isExternal']=Boolean(_0x3445a4['attributes']&&_0x3445a4['attributes']['@external']),this['set']('content',_0x3445a4['content']),this['createdAt']=_0x3445a4['createdAt']||new Date(),this['set']('authoredAt',_0x3445a4['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x49d49e,'resolvedAt'),this['set']('attributes',_0x3445a4['attributes']||{}),this['bind']('isEditable')['to'](_0xa7f3bb,'_permissions',()=>{const _0x1cbb3a=_0xa7f3bb['getPermissions'](_0x49d49e['channelId'])['write'],_0x32242e=_0xa7f3bb['getPermissions'](_0x49d49e['channelId'])['modifyAll'];return _0x49bb5b&&_0x1cbb3a||!_0x49bb5b&&_0x32242e;}),this['bind']('isRemovable')['to'](_0x49d49e,'isRemovable',_0xa7f3bb,'_permissions',_0x160143=>{const _0x5951a0=_0xa7f3bb['getPermissions'](_0x49d49e['channelId'])['write'],_0x20986c=_0xa7f3bb['getPermissions'](_0x49d49e['channelId'])['modifyAll'];return _0x49bb5b&&_0x5951a0||_0x160143&&_0x367f39||!_0x49bb5b&&_0x20986c&&!_0x367f39;}),this['bind']('isReadOnly')['to'](_0x49d49e,'isReadOnly'),this['_repository']=_0xa7f3bb;}get['weight'](){return Math['max'](getContentLength(this['content']),MIN_WEIGHT);}['update'](_0x56962c){const {threadId:_0x47067e,id:_0x27010a}=this;if(!this['_repository']['hasCommentThread'](_0x47067e))throw new CKEditorError('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x28d9be}=this['_repository']['getCommentThread'](_0x47067e);this['_repository']['fire'](toEventName('updateComment',_0x28d9be,_0x47067e),{'channelId':_0x28d9be,'threadId':_0x47067e,'commentId':_0x27010a,..._0x56962c});}['setAttribute'](_0x91eb51,_0x5b77ea){const _0xf022df=cloneDeep(this['attributes']);set(_0xf022df,_0x91eb51,_0x5b77ea),this['update']({'attributes':_0xf022df});}['removeAttribute'](_0x37c803){const _0x30f5e3=cloneDeep(this['attributes']);unset(_0x30f5e3,_0x37c803),this['update']({'attributes':_0x30f5e3});}['remove'](_0x2e0977={}){if(!_0x2e0977['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x56e382,id:_0x26cd71}=this;if(!this['_repository']['hasCommentThread'](_0x56e382))throw new CKEditorError('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x111ae4}=this['_repository']['getCommentThread'](_0x56e382);this['_repository']['fire'](toEventName('removeComment',_0x111ae4,_0x56e382),{'channelId':_0x111ae4,'threadId':_0x56e382,'commentId':_0x26cd71,..._0x2e0977});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function toEventName(_0x531bab,..._0x5fc63d){for(const _0x49f6a0 of _0x5fc63d)void 0x0!==_0x49f6a0&&(_0x531bab+=':'+String(_0x49f6a0));return _0x531bab;}class AddCommentThreadCommand extends Command{constructor(_0x205188){super(_0x205188),this['set']('hasContent',!0x1);}['refresh'](){const _0x29bfec=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x547326 of _0x29bfec['getRanges']())if(this['_hasContent'](_0x547326))return void(this['hasContent']=!0x0);}['execute']({threadId:_0xfb1eda=uid(),ranges:_0xbb4da9,comment:_0x236aca}={}){const _0x536c4c=this['editor']['model'],_0x37e7a3=_0xbb4da9??Array['from'](_0x536c4c['document']['selection']['getRanges']()),_0x14b616=[];for(const _0x30658c of _0x37e7a3)this['_hasContent'](_0x30658c)&&_0x14b616['push'](this['_trimToContent'](_0x30658c));if(!_0x14b616['length'])throw new CKEditorError('addcommentthreadcommand-incorrect-ranges',null);_0x236aca&&this['_createCommentThread'](_0xfb1eda,_0x236aca),this['_createMarkersFromRanges'](_0xfb1eda,_0x14b616,!!_0x236aca);}['_createMarkersFromRanges'](_0x11d09e,_0x19219a,_0x282825){this['editor']['model']['change'](_0x22133f=>{for(const _0x2c8e0a of _0x19219a){const _0x261594=uid()['substr'](0x1,0x5),_0x54d60c='comment:'+_0x11d09e+':'+_0x261594;_0x22133f['addMarker'](_0x54d60c,{'range':_0x2c8e0a,'usingOperation':_0x282825,'affectsData':_0x282825});}});}['_createCommentThread'](_0x2f8bc2,_0x32e257){const _0x4c2ef0=this['editor']['plugins']['get']('CommentsRepository'),_0x4a8a98=this['editor']['config']['get']('collaboration.channelId'),_0x3457f6=this['editor']['plugins']['get']('Users')['me'];if(!_0x3457f6)throw new CKEditorError('addcommentthreadcommand-user-not-found',null);_0x4c2ef0['addCommentThread']({'threadId':_0x2f8bc2,'channelId':_0x4a8a98,'comments':[{'authorId':_0x3457f6['id'],'content':_0x32e257,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x23445f){for(const _0x25c127 of _0x23445f['getItems']())if(this['_itemIsContent'](_0x25c127))return!0x0;return!0x1;}['_itemIsContent'](_0x4ee7c1){return _0x4ee7c1['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4ee7c1)&&!_0x4ee7c1['is']('element','tableCell');}['_trimToContent'](_0x584679){const _0x59f1e3=_0x16ed23=>!this['_itemIsContent'](_0x16ed23['item']),_0x32d955=_0x584679['start']['getLastMatchingPosition'](_0x59f1e3),_0x4a504e=_0x584679['end']['getLastMatchingPosition'](_0x59f1e3,{'direction':'backward'});return this['editor']['model']['createRange'](_0x32d955,_0x4a504e);}}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(_0x5b926f){super(_0x5b926f),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x54e811=this['editor'],_0x102adc=_0x54e811['model']['document']['selection'],_0x3d7ac6=debounce$1(()=>this['refreshSelectedViews'](),0xa);_0x102adc['on']('change:range',(_0x27382f,_0x27a941)=>{_0x27a941['directChange']&&(_0x3d7ac6['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x54e811['editing']['view']['document'],'change:isFocused',(_0x5c722d,_0x5b277a,_0x225fba)=>{_0x225fba&&_0x3d7ac6();}),this['listenTo'](_0x54e811['ui']['focusTracker'],'change:isFocused',(_0x3cf41f,_0x335857,_0x23c774)=>{_0x23c774||this['fire']('blur',{'isAnnotationTracked':_0x58ed0d=>this['_editorAnnotationsData']['has'](_0x58ed0d['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x2e80bb){if(this['_editorAnnotations']['has'](_0x2e80bb['view']))return;this['_editorAnnotations']['add'](_0x2e80bb['view']),this['editor']['ui']['focusTracker']['add'](_0x2e80bb['view']['element']);const _0x5ac8c8=this['editor']['plugins']['get'](Annotations);this['listenTo'](_0x5ac8c8['collection'],'remove',(_0x385d2f,_0x3b46e0)=>{this['editor']['ui']['focusTracker']['remove'](_0x3b46e0['view']['element']),this['_editorAnnotations']['delete'](_0x3b46e0['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x83803){if('function'!=typeof _0x83803)throw new CKEditorError('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x83803);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x15cc1e,annotations:_0x2c9224}){const _0x5121d3=[],_0x21d0ec=this['editor']['model']['document']['selection'],_0x49dca5=Array['from'](_0x21d0ec['getRanges']());for(const [_0x4025e6,_0x3c442b]of this['_editorAnnotationsData']){const _0x2bc644=_0x4ec8d2(_0x3c442b),_0x235f9e=_0x2c9224['getByInnerView'](_0x4025e6);_0x2bc644&&_0x235f9e&&_0x5121d3['push']({'annotation':_0x235f9e,'range':_0x2bc644});}function _0x4ec8d2(_0x2cfece){for(const _0x4e62a6 of _0x2cfece)for(const _0x454bd0 of _0x49dca5)if(_0x4e62a6['containsRange'](_0x454bd0,!_0x21d0ec['isCollapsed']))return _0x4e62a6;return null;}return _0x5121d3['sort']((_0x307382,_0x5ec491)=>{const _0x567619=_0x307382['range'],_0x216a9a=_0x5ec491['range'];if(!_0x567619['isEqual'](_0x216a9a)){if(_0x567619['containsRange'](_0x216a9a,!0x0))return 0x1;if(_0x216a9a['containsRange'](_0x567619,!0x0))return-0x1;}return _0x307382['annotation']==_0x15cc1e?-0x1:_0x5ec491['annotation']==_0x15cc1e?0x1:0x0;})['map'](_0x13d402=>_0x13d402['annotation']);}get['_editorAnnotationsData'](){const _0x40f6f7=new Map();for(const _0x35cd45 of Array['from'](this['_dataCollectors']))for(const [_0x28a043,_0x55bee6]of _0x35cd45())_0x40f6f7['set'](_0x28a043,_0x55bee6);return _0x40f6f7;}}class CommentsRestrictedEditingMode extends Plugin{['afterInit'](){const _0x5a3840=this['editor'];if(!_0x5a3840['plugins']['has']('RestrictedEditingModeEditing'))return;_0x5a3840['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class CommentsImportWord extends Plugin{constructor(_0x27aa85){super(_0x27aa85),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x2c02fb=this['editor'],_0x15b5e8=_0x2c02fb['commands']['get']('importWord'),_0x10b8cf=_0x2c02fb['plugins']['get'](Users);_0x15b5e8&&(_0x15b5e8['on']('execute',(_0x589f6f,[,_0x5079c2])=>{_0x5079c2['collaboration_features']={'comments':!0x0,'user_id':_0x10b8cf['me']['id']};},{'priority':priorities['high']+0xa}),this['listenTo'](_0x15b5e8,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x4f43c2,_0x368039){const {comment_threads:_0x58a367}=_0x368039;_0x58a367&&_0x58a367['forEach'](({thread_id:_0x24e1bf,comments:_0x45b78a,is_resolved:_0x52a8fb})=>{const _0x192112=new Date(),_0x3f75b0=_0x45b78a['map'](({author:_0x53f186,content:_0x4d2a00,created_at:_0x48123b})=>({'content':_0x4d2a00,'authorId':this['editor']['plugins']['get'](Users)['me']['id'],'createdAt':_0x192112,'attributes':{'@external':{'authorName':_0x53f186,'createdAt':_0x48123b?new Date(_0x48123b):new Date(),'source':'importWord'}}})),_0x26ca7a=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](CommentsRepository)['addCommentThread']({'channelId':_0x26ca7a,'threadId':_0x24e1bf,'comments':_0x3f75b0,'resolvedAt':_0x52a8fb?_0x192112:null});});}}class CommentsClipboard extends Plugin{constructor(_0x1cc0b7){super(_0x1cc0b7),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[ClipboardMarkersUtils,ClipboardPipeline];}['afterInit'](){const _0x55be9c=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x55be9c,'contentInsertion',(_0x3a70a6,_0x45349d)=>this['_removeMarkersWithoutThreads'](_0x45349d['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xb23ca6){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xb23ca6;const _0x4a90ca=this['editor']['plugins']['get']('CommentsRepository');for(const _0x3b87ca of _0xb23ca6['keys']()){const [_0x1f5d91,_0x379f1f]=_0x3b87ca['split'](':');'comment'!=_0x1f5d91||_0x4a90ca['hasCommentThread'](_0x379f1f)||_0xb23ca6['delete'](_0x3b87ca);}return _0xb23ca6;}['_registerMarkerInClipboardPipeline'](){const _0x409760=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0xa30614=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0xa30614&&_0x409760['_registerMarkerToCopy']('comment',_0xa30614);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x583b64){switch(_0x583b64){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function splitMarkerName(_0x1b285a){const _0x6af4c0=_0x1b285a['split'](':');return{'group':_0x6af4c0[0x0],'id':_0x6af4c0[0x1],'part':_0x6af4c0[0x2]};}class ShowCommentHighlights extends Plugin{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x30293e,_0x1daf50)=>{if(!_0x1daf50['options']['showCommentHighlights'])return null;if(_0x1daf50['options']['ignoreResolvedComments']){const {id:_0x500cce}=splitMarkerName(_0x30293e['markerName']),_0x43041e=this['editor']['plugins']['get'](CommentsRepository);if(_0x43041e['getCommentThread'](_0x500cce)?.['isResolved']&&_0x30293e['item'])return _0x1daf50['consumable']['consume'](_0x30293e['item'],'addMarker:'+_0x30293e['markerName']),_0x1daf50['consumable']['consume'](_0x30293e['item'],'removeMarker:'+_0x30293e['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x489430=>{_0x489430['on']('addMarker:comment',(_0x15e51f,_0xcb82c7,_0xec0345)=>{if(!_0xec0345['options']['showCommentHighlights'])return;const _0xd529a4=_0xcb82c7['item'];if(!_0xd529a4)return;const _0x56f37b=_0xec0345['mapper']['toViewElement'](_0xd529a4);this['editor']['model']['schema']['isObject'](_0xd529a4)&&_0x56f37b&&!_0x56f37b['getCustomProperty']('widget')&&_0x56f37b['is']('containerElement')&&toWidget(_0x56f37b,_0xec0345['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x57555f,{writer:_0x5f3b36,options:_0x58befc})=>{if(!_0x58befc['showCommentHighlights'])return null;const _0x278669=_0x5f3b36['createContainerElement']('div'),_0x4944d0=_0x5f3b36['createEmptyElement']('hr');return _0x5f3b36['addClass']('ck-horizontal-line',_0x278669),_0x5f3b36['insert'](_0x5f3b36['createPositionAt'](_0x278669,0x0),_0x4944d0),_0x278669;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x45a5f4,{writer:_0xc138c,options:_0x3e81d6})=>{if(!_0x3e81d6['showCommentHighlights'])return null;const _0x4dcdf9=_0xc138c['createContainerElement']('span'),_0x3967d9=_0xc138c['createEmptyElement']('img');return _0xc138c['addClass']('image-inline',_0x4dcdf9),_0xc138c['insert'](_0xc138c['createPositionAt'](_0x4dcdf9,0x0),_0x3967d9),_0x4dcdf9;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x39fd58,{writer:_0x30f204,options:_0x10bef4})=>{if(_0x10bef4['showCommentHighlights'])return _0x30f204['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1ee73c,_0x1763cb,_0x21fbc0)=>{_0x21fbc0['options']['showCommentHighlights']&&_0x1ee73c['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(_0x4cea2a){super(_0x4cea2a),this['set']('isThreadsLoadingPaused',!0x0),_0x4cea2a['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0xcd10f1,_0x352bfa,_0x10ae8f,_0x3390d1)=>{const _0x1824e6=_0x4cea2a['plugins']['get'](CommentsRepository),_0x2b5d87=_0x10ae8f?splitMarkerName(_0x10ae8f)['id']:null;_0x4cea2a['model']['change'](()=>{if(_0x2b5d87){const _0x2ae909=this['getAllMarkersForId'](_0x2b5d87);for(const _0x283060 of _0x2ae909)_0x4cea2a['editing']['reconvertMarker'](_0x283060);}if(_0x3390d1){const {id:_0x3bbfbd}=splitMarkerName(_0x3390d1),_0x397889=_0x1824e6['getCommentThread'](_0x3bbfbd);if(_0x397889&&_0x397889['unlinkedAt'])return;if(_0x397889&&!_0x397889['isAttached'])return;const _0x5bd3ab=this['getAllMarkersForId'](_0x3bbfbd);for(const _0x3b6036 of _0x5bd3ab)_0x4cea2a['editing']['reconvertMarker'](_0x3b6036);}}),_0x2b5d87&&this['scrollToThreadMarker'](_0x2b5d87);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5ce8f1=this['editor'],_0x10708e=_0x5ce8f1['plugins']['get'](CommentsRepository),_0x529c0c=_0x5ce8f1['config']['get']('collaboration.channelId'),_0x58df62=_0x10708e['getCommentThreads']()['filter'](_0x3a7ecf=>_0x3a7ecf['channelId']!==_0x529c0c);_0x5ce8f1['commands']['add']('addCommentThread',new AddCommentThreadCommand(_0x5ce8f1)),this['listenTo'](_0x5ce8f1,'change:isReadOnly',(_0x43eae3,_0x194f19,_0x1d2278)=>{_0x10708e['switchReadOnly'](_0x1d2278,_0x5ce8f1['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x10708e,createChannelEvent('addCommentThread',_0x529c0c),(_0x2efd91,{threadId:_0x1fc372})=>{const _0x4ba4d5=this['editor']['plugins']['get'](CommentsRepository)['getCommentThread'](_0x1fc372);_0x4ba4d5?.['unlinkedAt']&&this['_attachArchivedThread'](_0x1fc372);}),this['listenTo'](_0x10708e,createChannelEvent('removeCommentThread',_0x529c0c),(_0x4f7dff,{threadId:_0x32d278})=>{_0x5ce8f1['model']['enqueueChange']({'isUndoable':!0x1},_0x435f99=>{const _0x332f42=this['getAllMarkersForId'](_0x32d278);for(const _0xfb9ef8 of _0x332f42)_0x435f99['removeMarker'](_0xfb9ef8);});}),this['listenTo'](_0x10708e,createChannelEvent('resolveCommentThread',_0x529c0c),(_0x5b2f4f,{threadId:_0x299cfa})=>{(this['_reconvertMarkers'](_0x299cfa),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](CommentsRepository)['getCommentThread'](_0x299cfa)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x10708e,createChannelEvent('reopenCommentThread',_0x529c0c),(_0x87e0,{threadId:_0x398d9d})=>{this['_reconvertMarkers'](_0x398d9d);},{'priority':'low'}),this['listenTo'](_0x10708e,createChannelEvent('addComment',_0x529c0c),(_0x41a002,{threadId:_0x2fbaa5,isFromAdapter:_0x4ea2ae})=>{const _0x116639=this['getAllMarkersForId'](_0x2fbaa5);if(_0x4ea2ae||0x0==_0x116639['length']||!_0x10708e['hasCommentThread'](_0x2fbaa5))return;0x1===_0x10708e['getCommentThread'](_0x2fbaa5)['length']&&_0x5ce8f1['model']['enqueueChange']({'isUndoable':!0x1},_0x5c86ce=>{for(const _0x37c645 of _0x116639)_0x5c86ce['updateMarker'](_0x37c645,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x58df62);}['afterInit'](){checkLicense$h(this);}['destroy'](){const _0x2d9784=this['editor']['plugins']['get'](CommentsRepository),_0x114319=this['editor']['config']['get']('collaboration.channelId');for(const _0x44c98b of _0x2d9784['getCommentThreads']({'channelId':_0x114319}))_0x2d9784['_detachCommentThread'](_0x44c98b['id']),_0x2d9784['_threads']['delete'](_0x44c98b['id']);super['destroy']();}['hasMarkerForId'](_0xa4cacc){return this['getAllMarkersForId'](_0xa4cacc)['length']>0x0;}['getAllMarkersForId'](_0x4f8064){const _0x31116b=[];for(const _0x323e11 of this['editor']['model']['markers'])_0x323e11['name']['startsWith']('comment:'+_0x4f8064)&&_0x31116b['push'](_0x323e11);return _0x31116b;}['scrollToThreadMarker'](_0x164c9d){setTimeout(()=>{const _0x408cf0=this['_getTargetForId'](_0x164c9d);if(!_0x408cf0)return;this['activeMarker']&&splitMarkerName(this['activeMarker'])['id']===_0x164c9d&&scrollViewportToShowTarget({'target':_0x408cf0[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x541230){this['editor']['model']['change'](()=>{for(const _0x2a9860 of this['getAllMarkersForId'](_0x541230))this['editor']['editing']['reconvertMarker'](_0x2a9860);});}['_attachArchivedThread'](_0x50a5ad){const _0x84a005=this['editor']['plugins']['get'](CommentsRepository),_0x567e45=this['editor']['plugins']['get'](EditorAnnotations),_0x15a3c0=_0x84a005['getCommentThread'](_0x50a5ad);if(!_0x15a3c0['isAttached']){const _0x2a94a5=_0x15a3c0['attachTo'](()=>this['_getTargetForId'](_0x15a3c0['id']));_0x567e45['registerAnnotation'](_0x2a94a5),_0x15a3c0['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x37039e=this['editor'],_0x3e518e=_0x37039e['plugins']['get'](Users);_0x37039e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x1158cb,_0x524c2f)=>{const {id:_0x4deb08}=splitMarkerName(_0x1158cb['markerName']),_0x39f810=_0x37039e['plugins']['get'](CommentsRepository)['getCommentThread'](_0x4deb08),_0x26649e=this['activeMarker']&&splitMarkerName(this['activeMarker'])['id']===_0x4deb08;let _0x26b126;if(_0x39f810&&_0x39f810['isResolved']&&!_0x26649e&&_0x1158cb['item'])return _0x524c2f['consumable']['consume'](_0x1158cb['item'],'addMarker:'+_0x1158cb['markerName']),_0x524c2f['consumable']['consume'](_0x1158cb['item'],'removeMarker:'+_0x1158cb['markerName']),null;const _0x1911a0=['ck-comment-marker'];return _0x26649e&&_0x1911a0['push']('ck-comment-marker--active'),_0x26b126=_0x39f810?.['length']?_0x39f810['comments']['first']['author']['id']:_0x3e518e['me']['id'],{'classes':_0x1911a0,'attributes':{'data-comment':_0x4deb08,'data-author-id':_0x26b126}};}}),_0x37039e['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x220ba3,{options:_0x2a55b5})=>{if(_0x2a55b5['showCommentHighlights'])return null;const _0x537cec=_0x37039e['plugins']['get'](CommentsRepository),_0x519b17=_0x37039e['model']['markers']['get'](_0x220ba3),{id:_0x2e4b32,part:_0x163491}=splitMarkerName(_0x220ba3);return _0x519b17&&!_0x519b17['affectsData']||_0x2a55b5['ignoreResolvedComments']&&_0x537cec['getCommentThread'](_0x2e4b32)?.['isResolved']?null:{'group':'comment','name':_0x163491?_0x2e4b32+':'+_0x163491:_0x2e4b32};}}),_0x37039e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x54e7d1,{writer:_0x1afe85})=>_0x1afe85['createElement']('$marker',{'data-name':'comment:'+_0x54e7d1['getAttribute']('id')})}),_0x37039e['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x20ce9b=this['editor'],_0x1cb0be=_0x20ce9b['plugins']['get'](CommentsRepository),_0x5089ca=new Set(),_0x17e4b0=new Set();_0x20ce9b['model']['document']['registerPostFixer'](_0x121482=>{let _0x4e237f=!0x1;for(const {name:_0x853884,data:_0x34da67}of _0x20ce9b['model']['document']['differ']['getChangedMarkers']()){const {group:_0x5b2f52,id:_0x4853ab}=splitMarkerName(_0x853884);let _0x1c116e=_0x34da67['newRange'];if('comment'!==_0x5b2f52||!_0x1c116e)continue;const _0x41f5ce='$graveyard'===_0x1c116e['root']['rootName'];_0x41f5ce||(_0x1c116e=fixMarkerRange(_0x1c116e,_0x20ce9b['model']),!_0x1c116e||_0x1c116e['isCollapsed']||!_0x34da67['newRange']||_0x1c116e['isEqual'](_0x34da67['newRange']))?_0x20ce9b['model']['hasContent'](_0x1c116e)&&!_0x41f5ce?this['isThreadsLoadingPaused']?_0x5089ca['add'](_0x853884):this['_handleThreadMarker'](_0x853884,_0x4853ab):(_0x17e4b0['add'](_0x853884),_0x5089ca['delete'](_0x853884),_0x121482['removeMarker'](_0x853884),_0x4e237f=!0x0):(_0x121482['updateMarker'](_0x853884,{'range':_0x1c116e}),_0x4e237f=!0x0);}return _0x4e237f;}),this['on']('change:isThreadsLoadingPaused',(_0x265f3c,_0x1d46a6,_0x7b08a7)=>{if(!_0x7b08a7&&_0x5089ca['size'])for(const _0x1a8183 of _0x5089ca){const {id:_0x10c63e}=splitMarkerName(_0x1a8183);_0x5089ca['delete'](_0x1a8183),_0x20ce9b['model']['markers']['get'](_0x1a8183)&&this['_handleThreadMarker'](_0x1a8183,_0x10c63e);}}),this['listenTo'](_0x20ce9b['model']['document'],'change',()=>{for(const {name:_0x5cb0a4,data:{newRange:_0x3353e7}}of _0x20ce9b['model']['document']['differ']['getChangedMarkers']()){const {group:_0x319bd8,id:_0x20a45b}=splitMarkerName(_0x5cb0a4);if('comment'!==_0x319bd8)continue;const _0x3842a0=_0x1cb0be['getCommentThread'](_0x20a45b),_0xd12c68=this['hasMarkerForId'](_0x20a45b);_0x3842a0&&(!_0x3842a0['_hasTargetInContent']&&_0x3353e7&&_0x20ce9b['editing']['view']['once']('render',()=>{const _0x301f0f=_0x20ce9b['plugins']['get'](Annotations),_0x3b84f8=_0x1cb0be['_threadToController']['get'](_0x3842a0)['view'];_0x301f0f['getByInnerView'](_0x3b84f8)['refreshVisibility']();},{'priority':'low'}),_0x3842a0['_hasTargetInContent']=_0xd12c68||!!_0x3353e7),_0x3353e7||(_0x17e4b0['add'](_0x5cb0a4),_0x5089ca['delete'](_0x5cb0a4));}for(const _0x228632 of _0x17e4b0){const {id:_0x51b996}=splitMarkerName(_0x228632),_0x19604e=_0x1cb0be['getCommentThread'](_0x51b996);if(_0x5089ca['delete'](_0x228632),!_0x19604e)continue;const _0x1695aa=this['hasMarkerForId'](_0x51b996);_0x1695aa||_0x19604e['isSubmitted']?_0x1695aa||_0x19604e['unlinkedAt']||_0x19604e['setUnlinkedAt'](new Date()):_0x19604e['remove']();}_0x17e4b0['clear']();});}['_handleInitialThreads'](_0x4bd45f){_0x4bd45f['forEach'](_0x97543e=>{_0x97543e['unlinkedAt']&&this['_attachArchivedThread'](_0x97543e['id']);});}['_getTargetForId'](_0x4eb9c7){const _0x1e9fa9=this['editor'],_0x1a7c45=this['getAllMarkersForId'](_0x4eb9c7);return getAllMarkersDomElementsSorted(_0x1e9fa9['editing'],_0x1a7c45);}['_getTextContext'](_0x4d0169){const _0x114789=this['getAllMarkersForId'](_0x4d0169);let _0x141366='',_0x1f5158=!0x1;for(const _0x542fd3 of _0x114789){const _0x16bd7f=_0x542fd3['getRange']();for(const _0x5cdca4 of Array['from'](_0x16bd7f['getItems']()))_0x5cdca4['is']('$textProxy')?(_0x141366&&_0x1f5158&&(_0x141366+='\x20',_0x1f5158=!0x1),_0x141366+=_0x5cdca4['data']):_0x1f5158=!0x0;_0x1f5158=!0x0;}return _0x141366['substring'](0x0,MAX_CONTEXT_LENGTH);}['_attachMarkerToThread'](_0x273b8f,_0x543b54){const _0x3381e2=this['editor'],_0x276290=_0x3381e2['plugins']['get'](CommentsRepository);let _0x494bb3=_0x276290['getCommentThread'](_0x543b54);const _0x4e3090=_0x3381e2['config']['get']('collaboration.channelId'),_0x6faa8f=_0x3381e2['plugins']['get'](EditorAnnotations);if(_0x494bb3&&(_0x494bb3['unlinkedAt']&&_0x494bb3['setUnlinkedAt'](null),_0x494bb3['isAttached']))return _0x494bb3;return!this['getAllMarkersForId'](_0x543b54)[0x0]['managedUsingOperations']?_0x3381e2['editing']['view']['once']('render',()=>{if(_0x276290['getCommentThread'](_0x543b54))return;const _0x497590=_0x3381e2['plugins']['get'](Annotations);_0x494bb3=_0x276290['openNewCommentThread']({'channelId':_0x4e3090,'threadId':_0x543b54,'target':()=>this['_getTargetForId'](_0x543b54),'context':{'type':'text','value':this['_getTextContext'](_0x543b54)}});const _0xb940e8=_0x276290['_threadToController']['get'](_0x494bb3)['view'],_0x906f8b=_0x497590['getByInnerView'](_0xb940e8);_0x906f8b&&_0x6faa8f['registerAnnotation'](_0x906f8b);},{'priority':'low'}):_0x276290['fetchCommentThread']({'channelId':_0x4e3090,'threadId':_0x543b54})['then'](_0x4cc52c=>{if('destroyed'!==_0x3381e2['state']){if(_0x494bb3=_0x4cc52c,_0x494bb3&&!_0x494bb3['isAttached']){const _0x203a3a=_0x494bb3['attachTo'](()=>this['_getTargetForId'](_0x543b54));_0x6faa8f['registerAnnotation'](_0x203a3a),_0x494bb3['isResolved']&&this['_reconvertMarkers'](_0x543b54);}else{if(!_0x494bb3){const _0x26fa8c=this['getAllMarkersForId'](_0x543b54);_0x3381e2['model']['change'](_0xf18839=>{for(const _0x4577f1 of _0x26fa8c)_0xf18839['removeMarker'](_0x4577f1);});}}}}),_0x494bb3;}['_handleThreadMarker'](_0x372a98,_0x5524e0){const _0x41a658=this['_attachMarkerToThread'](_0x372a98,_0x5524e0);_0x41a658&&!_0x41a658['context']&&_0x41a658['setContext']({'type':'text','value':this['_getTextContext'](_0x5524e0)});}['_initAriaMarkerChangeAnnouncements'](){const _0x707dd0=this['editor'];surroundingMarkersDetector(_0x707dd0['model'],({left:_0x3c17b9,entered:_0x184e00})=>{for(const _0x1d332c of _0x3c17b9)if(isCommentMarker(_0x1d332c)){_0x707dd0['ui']['ariaLiveAnnouncer']['announce'](getTranslation$f(_0x707dd0['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x41e88e of _0x184e00)if(isCommentMarker(_0x41e88e)){_0x707dd0['ui']['ariaLiveAnnouncer']['announce'](getTranslation$f(_0x707dd0['locale'],'ENTER_COMMENT_ANNOUNCEMENT',getEnvKeystrokeText(FOCUS_ANNOTATION_KEYSTROKE)));break;}});}}function createChannelEvent(_0x510b15,_0x49a101){return _0x49a101?_0x510b15+':'+_0x49a101:_0x510b15;}function fixMarkerRange(_0x1e9128,_0x2e25c8){const _0x4b9e0c=_0x2e25c8['schema'],_0x163c2c=_0x2e25c8['createRange'](_0x1e9128['start']);for(const _0x492cac of _0x1e9128['getWalker']()){const {type:_0x71fc9b,item:_0x591333,nextPosition:_0x2a04a8}=_0x492cac;if('text'===_0x71fc9b||_0x4b9e0c['isObject'](_0x591333)){const _0x4151b4=_0x2e25c8['createPositionBefore'](_0x591333);_0x163c2c['isCollapsed']&&(_0x163c2c['start']=_0x4151b4),_0x163c2c['end']=_0x2a04a8;}}return _0x163c2c;}function isCommentMarker(_0x559459){return'comment'===splitMarkerName(_0x559459['name'])['group'];}async function checkLicense$h(_0x2f68cc){const _0x3a60ee=_0x1e33d1([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]),_0x26581c=window[_0x1e33d1([0x44,0x61,0x74,0x65])][_0x1e33d1([0x6e,0x6f,0x77])](),_0x2527f2=_0x2f68cc[_0x1e33d1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x33f06d=new window[(_0x1e33d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bdd83=>{_0x2527f2[_0x1e33d1([0x6f,0x6e,0x63,0x65])](_0x1e33d1([0x72,0x65,0x61,0x64,0x79]),_0x2bdd83);}),_0x5c7382={[_0x1e33d1([0x6b,0x74,0x79])]:_0x1e33d1([0x45,0x43]),[_0x1e33d1([0x75,0x73,0x65])]:_0x1e33d1([0x73,0x69,0x67]),[_0x1e33d1([0x63,0x72,0x76])]:_0x1e33d1([0x50,0x2d,0x32,0x35,0x36]),[_0x1e33d1([0x78])]:_0x1e33d1([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]),[_0x1e33d1([0x79])]:_0x1e33d1([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]),[_0x1e33d1([0x61,0x6c,0x67])]:_0x1e33d1([0x45,0x53,0x32,0x35,0x36])},_0x371da0=_0x2527f2[_0x1e33d1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e33d1([0x67,0x65,0x74])](_0x1e33d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x281eb9=await(async function(){let _0x398fd5,_0x1ad3d4=null,_0x1e2f91=null;try{if(_0x371da0==_0x1e33d1([0x47,0x50,0x4c]))return _0x1e33d1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x398fd5=(function(){const _0x56256a=_0x371da0[_0x1e33d1([0x73,0x70,0x6c,0x69,0x74])](_0x1e33d1([0x2e]));if(0x3!=_0x56256a[_0x1e33d1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x531a4e=_0x56256a[0x1];return _0x2814e6(_0x531a4e);function _0x2814e6(_0x21cebc){const _0x14bb87=_0x5b1986(_0x21cebc);return _0x14bb87&&_0x5511bd()?_0x14bb87:null;function _0x5511bd(){const _0xf572df=_0x14bb87[_0x1e33d1([0x6a,0x74,0x69])],_0xee8545=window[_0x1e33d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf572df[_0x1e33d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf572df[_0x1e33d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x592529={..._0x14bb87,[_0x1e33d1([0x6a,0x74,0x69])]:_0xf572df[_0x1e33d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf572df[_0x1e33d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x592529[_0x1e33d1([0x76,0x63])],_0x38d9fb(_0x592529)==_0xee8545;}}}()),!_0x398fd5)return _0x1e33d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x398fd5[_0x1e33d1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e2f91=function(_0x306f27,_0x3779b4){return new window[(_0x1e33d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x227997=>{if(_0xd0b1f9())return _0x227997(_0x1e33d1([0x56,0x61,0x6c,0x69,0x64]));_0x323534(),_0x2527f2[_0x1e33d1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e33d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4667b2=!0x1;const _0xc2672f=uid();function _0x20e9ad(_0x23890e){return!!_0x23890e&&(typeof _0x23890e===_0x1e33d1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23890e===_0x1e33d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23890e[_0x1e33d1([0x74,0x68,0x65,0x6e])]===_0x1e33d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23890e[_0x1e33d1([0x63,0x61,0x74,0x63,0x68])]===_0x1e33d1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x239c8a(_0x21d1ba){_0x182e12(_0x21d1ba)[_0x1e33d1([0x74,0x68,0x65,0x6e])](_0x120c2a=>{if(!_0x120c2a||_0x120c2a[_0x1e33d1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e33d1([0x6f,0x6b]))return _0x1e33d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x514b29(_0x38d9fb(_0xc2672f+_0x3779b4))!=_0x120c2a[_0x1e33d1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e33d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e33d1([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e33d1([0x74,0x68,0x65,0x6e])](_0x4ea556=>(_0x25eccd(),_0x4ea556),()=>{const _0x309330=_0x161a12();return null==_0x309330?(_0x25eccd(),_0x1e33d1([0x56,0x61,0x6c,0x69,0x64])):_0x1e33d1(_0x26581c-_0x309330>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e33d1([0x74,0x68,0x65,0x6e])](_0x227997)[_0x1e33d1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x227997(_0x1e33d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x16edd0=0x36ee80;function _0x25eccd(){const _0x4b6f3d=_0x1e33d1([0x6c,0x6c,0x63,0x74,0x2d])+_0x514b29(_0x38d9fb(_0x306f27)),_0x4b3ccb=_0x5ed3ac(_0x514b29(window[_0x1e33d1([0x4d,0x61,0x74,0x68])][_0x1e33d1([0x63,0x65,0x69,0x6c])](_0x26581c/_0x16edd0)));window[_0x1e33d1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e33d1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b6f3d,_0x4b3ccb);}function _0x161a12(){const _0x3989ad=_0x1e33d1([0x6c,0x6c,0x63,0x74,0x2d])+_0x514b29(_0x38d9fb(_0x306f27)),_0xf643=window[_0x1e33d1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e33d1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3989ad);return _0xf643?window[_0x1e33d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ed3ac(_0xf643),0x10)*_0x16edd0:null;}function _0x182e12(_0x25f6fa){return new window[(_0x1e33d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdc370d,_0x14323c)=>{_0x25f6fa[_0x1e33d1([0x74,0x68,0x65,0x6e])](_0xdc370d,_0x14323c),window[_0x1e33d1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14323c,0x1d4c0);});}}_0x2527f2[_0x1e33d1([0x6f,0x6e])](_0x1e33d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e6329,_0x4d6eef)=>{if(_0x4d6eef[0x0]!=_0x306f27)return _0x227997(_0x1e33d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4d6eef[0x1]={..._0x4d6eef[0x1],[_0x1e33d1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc2672f};},{[_0x1e33d1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e33d1([0x68,0x69,0x67,0x68])}),_0x2527f2[_0x1e33d1([0x6f,0x6e])](_0x1e33d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3f8a63=>{_0x20e9ad(_0x3f8a63[_0x1e33d1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4667b2=!0x0,_0x239c8a(_0x3f8a63[_0x1e33d1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e33d1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e33d1([0x6c,0x6f,0x77])}),_0x33f06d[_0x1e33d1([0x74,0x68,0x65,0x6e])](()=>{_0x4667b2||_0x227997(_0x1e33d1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd0b1f9(){return _0x2527f2[_0x1e33d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e33d1([0x76,0x69,0x65,0x77])][_0x1e33d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e33d1([0x61,0x75,0x74,0x6f]);}function _0x323534(){_0x2527f2[_0x1e33d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e33d1([0x76,0x69,0x65,0x77])][_0x1e33d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e33d1([0x61,0x75,0x74,0x6f]);}}(_0x398fd5[_0x1e33d1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x398fd5[_0x1e33d1([0x6a,0x74,0x69])]));const _0x126bce=await(async function(){let _0x7fa194=!0x0;try{const _0x3f6a40=_0x371da0[_0x1e33d1([0x73,0x70,0x6c,0x69,0x74])](_0x1e33d1([0x2e])),[_0x52897f,_0x546246,_0x3bbb8c]=_0x3f6a40;return _0x47074f(_0x52897f),await _0x56ef1b(_0x52897f,_0x546246,_0x3bbb8c),_0x7fa194;}catch{return!0x1;}function _0x47074f(_0x4eb1ca){const _0x1df24c=_0x5b1986(_0x4eb1ca);_0x1df24c&&_0x1df24c[_0x1e33d1([0x61,0x6c,0x67])]==_0x1e33d1([0x45,0x53,0x32,0x35,0x36])||(_0x7fa194=!0x1);}async function _0x56ef1b(_0x58ed54,_0x375b52,_0x35c3f5){const _0x19fb6e=window[_0x1e33d1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e33d1([0x66,0x72,0x6f,0x6d])](_0x882b8b(_0x35c3f5),_0x4a3290=>_0x4a3290[_0x1e33d1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x54723c=new window[(_0x1e33d1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e33d1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58ed54+_0x1e33d1([0x2e])+_0x375b52),_0x4f12ae=window[_0x1e33d1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e33d1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f12ae)return;const _0x47f9=await _0x4f12ae[_0x1e33d1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e33d1([0x6a,0x77,0x6b]),_0x5c7382,{[_0x1e33d1([0x6e,0x61,0x6d,0x65])]:_0x1e33d1([0x45,0x43,0x44,0x53,0x41]),[_0x1e33d1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e33d1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e33d1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f12ae[_0x1e33d1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e33d1([0x6e,0x61,0x6d,0x65])]:_0x1e33d1([0x45,0x43,0x44,0x53,0x41]),[_0x1e33d1([0x68,0x61,0x73,0x68])]:{[_0x1e33d1([0x6e,0x61,0x6d,0x65])]:_0x1e33d1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47f9,_0x19fb6e,_0x54723c)||(_0x7fa194=!0x1);}}());return _0x126bce?(function(){const _0x3e6377=_0x398fd5[_0x1e33d1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3e6377)return!0x1;if(_0x3e6377[_0x1e33d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e33d1([0x2a])))return!0x0;if(_0x3e6377[_0x1e33d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e33d1([0x43,0x4d,0x54])))return!0x0;if(_0x3e6377[_0x1e33d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e33d1([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x1e33d1([0x67,0x6c,0x6f,0x62])]&&window[_0x1e33d1([0x67,0x6c,0x6f,0x62])][_0x1e33d1([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;if(_0x3e6377[_0x1e33d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e33d1([0x52,0x43,0x4d,0x54]))){if(_0xf1147e(_0x1e33d1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&(_0x58bb40=_0x1e33d1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]),_0x2527f2[_0x1e33d1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e33d1([0x67,0x65,0x74])](_0x58bb40))[_0x1e33d1([0x73,0x74,0x61,0x74,0x65])]==_0x1e33d1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0xf1147e(_0x1e33d1([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]))||_0xf1147e(_0x1e33d1([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 _0x58bb40;return!0x1;}())?(function(){const _0x27e18a=[_0x1e33d1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e33d1([0x74,0x72,0x69,0x61,0x6c])][_0x1e33d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x398fd5[_0x1e33d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26581c/0x3e8:0x69cb0e80;return _0x398fd5[_0x1e33d1([0x65,0x78,0x70])]<_0x27e18a;}())?_0x1e33d1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x535c2f=_0x398fd5[_0x1e33d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x535c2f||0x0==_0x535c2f[_0x1e33d1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9981cb}=new URL(window[_0x1e33d1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x535c2f[_0x1e33d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9981cb))return!0x0;const _0x48a36a=_0x9981cb[_0x1e33d1([0x73,0x70,0x6c,0x69,0x74])](_0x1e33d1([0x2e]));return _0x535c2f[_0x1e33d1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a2380=>_0x3a2380[_0x1e33d1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e33d1([0x2a])))[_0x1e33d1([0x6d,0x61,0x70])](_0x25770b=>_0x25770b[_0x1e33d1([0x73,0x70,0x6c,0x69,0x74])](_0x1e33d1([0x2e])))[_0x1e33d1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x303f61=>_0x303f61[_0x1e33d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x48a36a[_0x1e33d1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e33d1([0x6d,0x61,0x70])](_0x27f989=>Array(_0x48a36a[_0x1e33d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27f989[_0x1e33d1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e33d1([0x66,0x69,0x6c,0x6c])](_0x27f989[0x0]===_0x1e33d1([0x2a])?_0x1e33d1([0x2a]):'')[_0x1e33d1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27f989))[_0x1e33d1([0x73,0x6f,0x6d,0x65])](_0x4f66cc=>_0x48a36a[_0x1e33d1([0x65,0x76,0x65,0x72,0x79])]((_0x2f86d8,_0x2df894)=>_0x4f66cc[_0x2df894]===_0x2f86d8||_0x4f66cc[_0x2df894]===_0x1e33d1([0x2a])));}())?(_0x398fd5[_0x1e33d1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e33d1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ad3d4=function(_0x2b9d3f){const _0x14ce09=new window[(_0x1e33d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3061a8=>setTimeout(_0x3061a8,0x93ecc)),_0x5edc04=_0x33f06d[_0x1e33d1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e33d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fed54=>{let _0x412c31=0x0;_0x2527f2[_0x1e33d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e33d1([0x6f,0x6e])](_0x1e33d1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c002c,_0x176953)=>{_0x176953[0x0][_0x1e33d1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x412c31++,0x5e8==_0x412c31&&(_0x1fed54(),_0x4c002c[_0x1e33d1([0x6f,0x66,0x66])]());});})),_0x5010b5=[_0x14ce09,_0x5edc04];return window[_0x1e33d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e33d1([0x72,0x61,0x63,0x65])](_0x5010b5)[_0x1e33d1([0x74,0x68,0x65,0x6e])](()=>_0x2b9d3f);}(_0x1e33d1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x1ad3d4&&_0x1e2f91)return new window[(_0x1e33d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e1691,_0x293cf9)=>{_0x1ad3d4[_0x1e33d1([0x74,0x68,0x65,0x6e])](_0x2e1691,_0x293cf9),_0x1e2f91[_0x1e33d1([0x74,0x68,0x65,0x6e])](_0x7c8e9d=>{_0x7c8e9d!=_0x1e33d1([0x56,0x61,0x6c,0x69,0x64])&&_0x2e1691(_0x7c8e9d);},_0x293cf9);});return _0x1ad3d4||_0x1e2f91||_0x1e33d1([0x56,0x61,0x6c,0x69,0x64]);}())):_0x1e33d1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e33d1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e33d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e33d1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x5b1986(_0x519f31){return _0x519f31[_0x1e33d1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e33d1([0x65,0x79]))?JSON[_0x1e33d1([0x70,0x61,0x72,0x73,0x65])](_0x882b8b(_0x519f31)):null;}function _0x882b8b(_0x1c20ed){return window[_0x1e33d1([0x61,0x74,0x6f,0x62])](_0x1c20ed[_0x1e33d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e33d1([0x2b]))[_0x1e33d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e33d1([0x2f])));}function _0x38d9fb(_0x16ddfe){let _0x2c0c0e=0x1505;function _0x2ab72d(_0x3c9d80){for(let _0x10c6b0=0x0;_0x10c6b0<_0x3c9d80[_0x1e33d1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10c6b0++){const _0x331593=_0x3c9d80[_0x1e33d1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x10c6b0);_0x2c0c0e=(_0x2c0c0e<<0x5)+_0x2c0c0e+_0x331593,_0x2c0c0e&=_0x2c0c0e;}}return function _0x243722(_0x40bc82){Array[_0x1e33d1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x40bc82)?_0x40bc82[_0x1e33d1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x243722):_0x40bc82&&typeof _0x40bc82==_0x1e33d1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e33d1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x40bc82)[_0x1e33d1([0x73,0x6f,0x72,0x74])]()[_0x1e33d1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ce618,_0x5c728e])=>{_0x2ab72d(_0x1ce618),_0x243722(_0x5c728e);}):_0x2ab72d(window[_0x1e33d1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x40bc82));}(_0x16ddfe),_0x2c0c0e>>>0x0;}function _0x514b29(_0x3c2f69){return _0x3c2f69[_0x1e33d1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e33d1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e33d1([0x30]));}function _0x5ed3ac(_0x60534b){return _0x60534b[_0x1e33d1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e33d1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e33d1([0x6a,0x6f,0x69,0x6e])]('');}function _0xf1147e(_0x4f7002){return _0x2527f2[_0x1e33d1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e33d1([0x68,0x61,0x73])](_0x4f7002);}function _0x2cfb3d(){}function _0x1e33d1(_0x404f78){return _0x404f78['map'](_0x395c04=>String['fromCharCode'](_0x395c04))['join']('');}!function(_0x18dca5){const _0x14b9a4=(function(){const _0xca0600=window[_0x1e33d1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e33d1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e33d1([0x6e,0x6f,0x77])]())[_0x1e33d1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e33d1([0x2e]),'');let _0x6b02fe=_0x1e33d1([0x4b]);for(let _0x4f1db3=0x0;_0x4f1db3<_0xca0600[_0x1e33d1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f1db3+=0x2){let _0x450895=window[_0x1e33d1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xca0600[_0x1e33d1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f1db3,_0x4f1db3+0x2));_0x450895>=_0x3a60ee[_0x1e33d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x450895-=_0x3a60ee[_0x1e33d1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x6b02fe+=_0x3a60ee[_0x450895];}return _0x6b02fe;}());_0x2527f2[_0x14b9a4]=_0x1e33d1([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x18dca5,_0x18dca5!=_0x1e33d1([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x33f06d,_0x2527f2[_0x1e33d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e33d1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2cfb3d,_0x2527f2[_0x1e33d1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e33d1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2cfb3d,_0x2527f2[_0x1e33d1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e33d1([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x281eb9);}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 _0x4483ff=this['editor'],_0x1113cc=_0x4483ff['plugins']['get'](CommentsRepository),_0x4874b2=_0x4483ff['plugins']['get'](CommentsEditing),_0x172f86=_0x4483ff['plugins']['get'](Annotations),_0x53ecd8=_0x4483ff['plugins']['get'](EditorAnnotations);_0x4483ff['ui']['componentFactory']['add']('comment',()=>{const _0x113d0f=this['_createUIButton'](ButtonView);return _0x113d0f['tooltip']=!0x0,_0x113d0f;}),_0x4483ff['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](MenuBarMenuListItemButtonView)),_0x53ecd8['addSourceCollector'](()=>{const _0x36b909=[];for(const [_0x27a4ec,_0x396303]of _0x1113cc['_threadToController']){const _0x75e67b=_0x4874b2['getAllMarkersForId'](_0x27a4ec['id']),_0x35ec70=_0x75e67b['map'](_0x448f38=>_0x448f38['getRange']());_0x75e67b['length']>0x0&&_0x36b909['push']([_0x396303['view'],_0x35ec70]);}return _0x36b909;}),this['listenTo'](_0x172f86,'change:activeAnnotations',(_0x5546a3,_0x2a96cc,_0x34d1c8)=>{const _0x3fd120=Array['from'](_0x34d1c8)['map'](_0x2c229d=>_0x2c229d['innerView'])['find'](_0x13691a=>_0x1113cc['_viewToController']['has'](_0x13691a));if(!_0x3fd120)return void(_0x4874b2['activeMarker']=null);const _0x617994=_0x1113cc['_viewToController']['get'](_0x3fd120)['model']['id'],_0x45ec16='comment:'+_0x617994;_0x617994&&_0x4874b2['hasMarkerForId'](_0x617994)?_0x4874b2['activeMarker']=_0x45ec16:_0x4874b2['activeMarker']&&(_0x4874b2['activeMarker']=null);}),this['listenTo'](_0x1113cc,'removeCommentThread',(_0xff7ba6,{threadId:_0x2233bb,isFromAdapter:_0x11b6d5})=>{!_0x11b6d5&&_0x4483ff['ui']['focusTracker']['isFocused']&&_0x4874b2['hasMarkerForId'](_0x2233bb)&&_0x4483ff['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x1113cc,'addComment',(_0x2f7139,{threadId:_0x5263ea,isFromAdapter:_0x5ee314})=>{if(_0x5ee314||!_0x4874b2['hasMarkerForId'](_0x5263ea)||!_0x1113cc['hasCommentThread'](_0x5263ea))return;0x1===_0x1113cc['getCommentThread'](_0x5263ea)['length']&&(_0x4483ff['editing']['view']['focus'](),_0x2f7139['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x44a031=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37ab04;for(const _0x3c3542 in _0x44a031){const _0x26b9f4=_0x3c3542,_0x49c413=_0x44a031[_0x26b9f4];if('commentsLicenseKeyValid'==_0x49c413||'commentsLicenseKeyInvalid'==_0x49c413||'commentsLicenseKeyExpired'==_0x49c413||'commentsLicenseKeyDomainLimit'==_0x49c413||'commentsLicenseKeyNotAllowed'==_0x49c413||'commentsLicenseKeyEvaluationLimit'==_0x49c413||'commentsLicenseKeyUsageLimit'==_0x49c413){delete _0x44a031[_0x26b9f4],_0x37ab04=_0x49c413,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x37ab04&&_0x44a031['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x37ab04&&_0x44a031['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x37ab04&&_0x44a031['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x37ab04&&_0x44a031['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x37ab04&&_0x44a031['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x37ab04&&_0x44a031['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x3cc464){const _0x49cb4d=this['editor'],_0x28a751=new _0x3cc464(_0x49cb4d['locale']),_0x55da14=_0x49cb4d['commands']['get']('addCommentThread');return _0x28a751['set']({'label':getTranslation$f(_0x49cb4d['locale'],'Comment'),'icon':IconAddComment}),_0x28a751['bind']('isEnabled')['to'](_0x55da14,'isEnabled',_0x55da14,'hasContent',(_0x56d61d,_0x39fad9)=>_0x56d61d&&_0x39fad9),this['listenTo'](_0x28a751,'execute',()=>{_0x55da14['execute']();}),_0x28a751;}}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(_0x5141a1){super(_0x5141a1),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x2b10b3,_0x11a115,_0x2bdf0c)=>{_0x2bdf0c?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x3c322c,_0x1c5ad2]of this['editor']['commands'])_0x1c5ad2['affectsData']&&'addCommentThread'!==_0x3c322c&&_0x1c5ad2['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 _0x296603=this['editor']['editing']['view']['document'];this['listenTo'](_0x296603,'cut',_0x3a1e56=>_0x3a1e56['stop'](),{'priority':'highest'}),this['listenTo'](_0x296603,'clipboardInput',_0x17d188=>_0x17d188['stop'](),{'priority':'highest'}),this['listenTo'](_0x296603,'delete',_0x327635=>_0x327635['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x728732,_0x3fe304]of this['editor']['commands'])_0x3fe304['affectsData']&&'addCommentThread'!==_0x728732&&_0x3fe304['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(_0x287b48){super(_0x287b48),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x291e64=this['context']['plugins']['get'](Annotations);this['listenTo'](_0x291e64,'_activateAnnotation',(_0x10152c,_0x33f63a)=>{for(const _0x92f357 of this['activeUIs']){const _0xe55d3e=this['_uis']['get'](_0x92f357);(0x0,this['uisData']['get'](_0x92f357)['filter'])(_0x33f63a)&&_0xe55d3e['setActiveAnnotation'](_0x33f63a);}}),this['listenTo'](_0x291e64,'_deactivateAllAnnotations',()=>{for(const _0x2b6c23 of this['activeUIs']){this['_uis']['get'](_0x2b6c23)['setActiveAnnotation'](null);}}),this['listenTo'](_0x291e64['_visibleAnnotations'],'add',(_0x491880,_0x483060)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x483060);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4e2635){return this['activeUIs']['has'](_0x4e2635);}['activate'](_0x5373a5,_0x2706b5=this['defaultFilter']){const _0x221f93=this['context']['plugins']['get'](Annotations);if(!this['_uis']['has'](_0x5373a5))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x5373a5});this['isActive'](_0x5373a5)&&this['deactivate'](_0x5373a5),this['activeUIs']['add'](_0x5373a5);const _0x4fb7dc=new AnnotationCollection();bindAnnotationCollections({'source':_0x221f93['_visibleAnnotations'],'target':_0x4fb7dc,'filter':_0x2706b5}),this['uisData']['set'](_0x5373a5,{'collection':_0x4fb7dc,'filter':_0x2706b5});const _0x161cd0=this['_uis']['get'](_0x5373a5);_0x161cd0['attach'](_0x4fb7dc),this['listenTo'](_0x161cd0,'change:activeAnnotation',(_0x13a749,_0x2bf5ee,_0x1602eb,_0x205a13)=>{_0x205a13&&_0x221f93['_removeActiveAnnotation'](_0x205a13),_0x1602eb&&_0x221f93['_addActiveAnnotation'](_0x1602eb);});}['deactivate'](_0x26a91c){if(this['activeUIs']['delete'](_0x26a91c),!this['_uis']['has'](_0x26a91c))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x26a91c});const _0x5ef5d8=this['_uis']['get'](_0x26a91c);_0x5ef5d8['detach'](),this['stopListening'](_0x5ef5d8),this['uisData']['get'](_0x26a91c)['collection']['destroy'](),this['uisData']['delete'](_0x26a91c);}['switchTo'](_0x44c82c){if(!this['_uis']['has'](_0x44c82c))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x44c82c});const _0x42d55f=this['context']['plugins']['get'](Annotations),_0x5d10c3=Array['from'](_0x42d55f['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x44c82c);const _0xd38f7d=this['_uis']['get'](_0x44c82c);_0xd38f7d['setActiveAnnotation'](_0x5d10c3),_0xd38f7d['_setSelectedAnnotations']&&_0x5d10c3&&_0xd38f7d['_setSelectedAnnotations']([_0x5d10c3]);}['deactivateAll'](){for(const _0x3fb542 of this['activeUIs'])this['deactivate'](_0x3fb542);}['register'](_0x274d0c,_0x386678){if(this['_uis']['has'](_0x274d0c))throw new CKEditorError('annotationsuis-register-already-registered');if('function'!=typeof _0x386678['attach']||'function'!=typeof _0x386678['detach']||'function'!=typeof _0x386678['setActiveAnnotation'])throw new CKEditorError('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x274d0c,_0x386678);}['refilterAnnotations'](){const _0x114f4c=this['context']['plugins']['get'](Annotations)['collection'],_0x1f301b=new Map(),_0x100e12=Array['from'](this['activeUIs']);for(const _0x4ea935 of this['activeUIs']){const _0x5e91e6=this['uisData']['get'](_0x4ea935)['collection'];for(const _0x5cbb94 of _0x5e91e6)_0x1f301b['set'](_0x5cbb94,_0x4ea935);}for(const _0x59ccc6 of _0x114f4c){const _0xb41173=_0x1f301b['get'](_0x59ccc6);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x59ccc6);const _0x166769=_0x100e12['find'](_0x51a2cf=>this['uisData']['get'](_0x51a2cf)['filter'](_0x59ccc6));_0xb41173!==_0x166769&&(_0xb41173&&this['uisData']['get'](_0xb41173)['collection']['remove'](_0x59ccc6),_0x166769&&this['uisData']['get'](_0x166769)['collection']['add'](_0x59ccc6));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x56208c){const _0xa0a657=[];for(const _0x1a79e3 of this['activeUIs']){(0x0,this['uisData']['get'](_0x1a79e3)['filter'])(_0x56208c)&&_0xa0a657['push'](_0x1a79e3);}if(_0xa0a657['length']>0x1)throw new CKEditorError('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0xa0a657,'annotationType':_0x56208c['type']});}}const toPx$2=/* #__PURE__ -- @preserve */
toUnit('px');class AnnotationsSidebarView extends View{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x4c9a75){super(_0x4c9a75);const _0x28adb7=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',_0x28adb7['to']('class')],'style':{'minHeight':_0x28adb7['to']('minHeight',_0x474076=>'number'==typeof _0x474076?toPx$2(_0x474076+0xa):null)},'dir':_0x4c9a75['uiLanguageDirection'],'role':'application','aria-label':getTranslation$f(_0x4c9a75,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':getTranslation$f(_0x4c9a75,'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',_0x274371=>{this['_updateItemPositionInFocusables'](_0x274371['source']);}),this['list']['forEach'](_0x5a5c64=>{this['focusTracker']['add'](_0x5a5c64['element']),this['_updateItemPositionInFocusables'](_0x5a5c64);}),this['list']['on']('change',(_0x4d005d,_0x219cda)=>{for(const _0x10cd58 of _0x219cda['removed'])this['focusTracker']['remove'](_0x10cd58['element']),this['focusables']['remove'](_0x10cd58);for(const _0x2f5e72 of _0x219cda['added'])this['focusTracker']['add'](_0x2f5e72['element']),this['_updateItemPositionInFocusables'](_0x2f5e72);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x4cfb25){const _0x254d36=this['focusables']['getIndex'](_0x4cfb25);let _0x5e7b4a,_0x52cfb5;for(const _0x348083 of this['focusables'])if(_0x4cfb25['top']<_0x348083['top']){_0x5e7b4a=_0x348083;break;}if(_0x52cfb5=_0x5e7b4a?this['focusables']['getIndex'](_0x5e7b4a):this['focusables']['length'],-0x1!==_0x254d36){if(_0x254d36===_0x52cfb5-0x1)return;this['focusables']['remove'](_0x4cfb25),_0x52cfb5=_0x5e7b4a?this['focusables']['getIndex'](_0x5e7b4a):this['focusables']['length'];}this['focusables']['add'](_0x4cfb25,_0x52cfb5);}}const toPx$1=/* #__PURE__ -- @preserve */
toUnit('px');class AnnotationsSidebarItemView extends View{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x574c07){super(_0x574c07),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x34dc99,_0x28cc62)=>_0x34dc99+_0x28cc62),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=createMutationObserver(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x2c9bc1=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x2c9bc1['to']('isAnimationDisabled',_0x1d2c66=>_0x1d2c66?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x2c9bc1['to']('top',_0x3d3fa2=>toPx$1(_0x3d3fa2))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x3562e0=this['element']['clientHeight'];_0x3562e0&&(this['height']=_0x3562e0);}['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(_0x29f5d0){super(_0x29f5d0),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 _0x27cbde=this['context']['config']['get']('sidebar.container');_0x27cbde&&this['setContainer'](_0x27cbde);}['setContainer'](_0x349212){if(!isElement(_0x349212))throw new CKEditorError('sidebar-setcontainer-invalid-element');this['container']=_0x349212;}['_attachToContainer']({viewClass:_0x4d9a2a='',spaceBetweenItems:_0x576302=0x19}={}){if(!isElement(this['container']))throw new CKEditorError('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x4d9a2a,this['_spaceBetweenItems']=_0x576302;}['rearrange']({removedAnnotation:_0x236708,previousAnnotation:_0x3a3e83,nextAnnotation:_0x2b288a}){const _0x71052b=this['getSidebarItemView'](_0x236708);this['view']['list']['remove'](_0x71052b),this['_destroySidebarItemView'](_0x236708),_0x3a3e83&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3a3e83)),_0x2b288a&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2b288a)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x39383a,activatedAnnotation:_0x140917,disableAnimationOnActivatedAnnotation:_0x14af5a}){if(this['_activeAnnotation']=_0x140917,_0x39383a){_0x39383a['isActive']=!0x1;const _0x5753cd=this['getSidebarItemView'](_0x39383a);_0x5753cd&&_0x14af5a&&(_0x5753cd['isAnimationDisabled']=!0x1);}if(_0x140917){const _0x4204cf=this['getSidebarItemView'](_0x140917);_0x4204cf&&(_0x140917['isActive']=!0x0,_0x14af5a&&(_0x4204cf['isAnimationDisabled']=!0x0,_0x4204cf['top']+=0x1),this['_alignToTargetRect'](_0x4204cf));}}['_detachFromContainer'](_0x412315){if(this['view']['element']['remove'](),_0x412315){for(const _0x254a61 of _0x412315)this['_destroySidebarItemView'](_0x254a61);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x22160a,_0x12ef65){_0x12ef65||(_0x12ef65=_0x22160a['view']);const _0x1e7aed=new AnnotationsSidebarItemView(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x1e7aed,_0x22160a),this['_annotationToSidebarItemView']['set'](_0x22160a,_0x1e7aed),_0x1e7aed['content']['add'](_0x12ef65),this['listenTo'](_0x22160a['view'],'change:targetRect',(_0x1ac751,_0x1406a9,_0x459976)=>{const _0xd3a29f=this['_getTargetTop'](_0x22160a,_0x459976);_0x1e7aed['_targetTop']!=_0xd3a29f&&(_0x1e7aed['_targetTop']=_0xd3a29f,this['_setItemTop'](_0x1e7aed,_0xd3a29f));}),this['listenTo'](_0x1e7aed,'change:top',()=>{this['_recalculate'](_0x1e7aed,'top');}),this['listenTo'](_0x1e7aed,'change:bottom',()=>{this['_recalculate'](_0x1e7aed,'bottom');}),this['_alignToTargetRect'](_0x1e7aed);const _0x3c0ce0=this['_getItemBefore'](_0x1e7aed);if(_0x3c0ce0)this['_alignAfterItem'](_0x3c0ce0,_0x1e7aed)||this['_alignToTargetRect'](_0x1e7aed);else this['_alignToTargetRect'](_0x1e7aed);return this['_updateLastItem'](),this['view']['list']['add'](_0x1e7aed),_0x1e7aed;}['_alignForTopChange'](_0x51ab79){if(!_0x51ab79['content']['length'])return;const _0x46c514=this['_getItemBefore'](_0x51ab79);if(!_0x46c514)return;const _0x862fd=this['_sidebarItemViewToAnnotation']['get'](_0x46c514),_0x305d8f=this['_activeAnnotation'];_0x305d8f&&_0x305d8f===_0x862fd?this['_alignAfterItem'](_0x46c514,_0x51ab79):this['_alignBeforeItem'](_0x51ab79,_0x46c514);}['_alignForBottomChange'](_0x3fd8b9){if(!_0x3fd8b9['content']['length'])return;const _0x5e2cee=this['_getItemAfter'](_0x3fd8b9);if(!_0x5e2cee)return;const _0x57e441=this['_sidebarItemViewToAnnotation']['get'](_0x5e2cee),_0x1c0b25=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x2a0386=this['_activeAnnotation'];_0x2a0386&&_0x2a0386===_0x57e441&&_0x1c0b25?(this['_alignBeforeItem'](_0x5e2cee,_0x3fd8b9),this['_alignAfterItem'](_0x3fd8b9,_0x5e2cee)):_0x2a0386&&_0x2a0386===_0x57e441?this['_alignBeforeItem'](_0x5e2cee,_0x3fd8b9):this['_alignAfterItem'](_0x3fd8b9,_0x5e2cee);}['_recalculate'](_0x63e609,_0x51ae8e){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x36bd0e,changedProp:_0x23eca2}of this['_recalculateBuffer'])'top'===_0x23eca2?this['_alignForTopChange'](_0x36bd0e):this['_alignForBottomChange'](_0x36bd0e);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x63e609,'changedProp':_0x51ae8e});}['getSidebarItemView'](_0x2f0418){return this['_annotationToSidebarItemView']['get'](_0x2f0418);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4e7d4d){const _0x325622=this['getSidebarItemView'](_0x4e7d4d);this['stopListening'](_0x325622),this['stopListening'](_0x4e7d4d['view']),_0x325622['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4e7d4d),this['_sidebarItemViewToAnnotation']['delete'](_0x325622);}['_createSidebarView'](){const _0x1e4c32=new AnnotationsSidebarView(this['context']['locale']);return _0x1e4c32['render'](),this['on']('change:_lastItem',(_0x2ff310,_0x4fe7bc,_0x12f68f,_0x4c9c0c)=>{_0x4c9c0c&&_0x1e4c32['unbind']('minHeight'),_0x12f68f?_0x1e4c32['bind']('minHeight')['to'](_0x12f68f,'bottom'):_0x1e4c32['minHeight']=null;}),_0x1e4c32;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x206650){const _0x339083=this['_sidebarItemViewToAnnotation']['get'](_0x206650),_0x781500=_0x339083&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x339083)-0x1);return _0x781500&&this['getSidebarItemView'](_0x781500)||null;}['_getItemAfter'](_0x4fef6a){const _0x167675=this['_sidebarItemViewToAnnotation']['get'](_0x4fef6a),_0x1c81c8=_0x167675&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x167675)+0x1);return _0x1c81c8&&this['getSidebarItemView'](_0x1c81c8)||null;}['_alignBeforeItem'](_0x5173d7,_0x544133){_0x5173d7['updateHeight']();const _0x481f95=getOverlap(_0x544133['bottom']+this['_spaceBetweenItems'],_0x5173d7['top']);return!!_0x481f95&&(this['_setItemTop'](_0x544133,_0x544133['top']-_0x481f95),!0x0);}['_alignAfterItem'](_0x349eb1,_0x5d2422){_0x349eb1['updateHeight']();const _0x48a2b4=getOverlap(_0x349eb1['bottom']+this['_spaceBetweenItems'],_0x5d2422['top']);return!!_0x48a2b4&&(this['_setItemTop'](_0x5d2422,_0x5d2422['top']+_0x48a2b4,!0x1),!0x0);}['_alignToTargetRect'](_0x458452){const _0x2c91e2=this['_sidebarItemViewToAnnotation']['get'](_0x458452);if(!_0x2c91e2||!_0x2c91e2['target']||!_0x2c91e2['targetRect'])return;const _0x1ae271=this['_getTargetTop'](_0x2c91e2,_0x2c91e2['targetRect']);this['_setItemTop'](_0x458452,_0x1ae271);}['_getTargetTop'](_0xed7429,_0x5eaf34){if(null===_0x5eaf34)return 0x0;if(_0xed7429['target']instanceof Rect)return _0x5eaf34['top'];{const _0x5bdb6a=new Rect(this['view']['element'])['top'];return _0x5eaf34['top']-_0x5bdb6a;}}['_setItemTop'](_0xc6086e,_0x4ed83f,_0x223c58=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x223c58&&(_0x4ed83f=Math['max'](_0x4ed83f,this['_getMaxAvailableTop'](_0xc6086e))),_0xc6086e['top']=_0x4ed83f;}['_getMaxAvailableTop'](_0x3777ba){let _0x20fcc7=this['_getItemBefore'](_0x3777ba),_0x246a22=0x0;for(;_0x20fcc7;)_0x20fcc7['updateHeight'](),_0x246a22+=this['_spaceBetweenItems']+_0x20fcc7['height'],_0x20fcc7=this['_getItemBefore'](_0x20fcc7);return _0x246a22;}}function getOverlap(_0x24e805,_0x50d71d){return Math['max'](_0x24e805-_0x50d71d,0x0);}function isElement(_0x4dd888){return null!==_0x4dd888&&'object'==typeof _0x4dd888&&0x1===_0x4dd888['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(_0x4a13d9){super(_0x4a13d9),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new Collection(),this['_refreshPositioningDebounced']=debounce$1(()=>{_0x4a13d9['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x4a5e8d=this['context']['plugins']['get'](AnnotationsUIs),_0x4ce3ef=this['context']['plugins']['get'](Sidebar);_0x4a5e8d['register']('wideSidebar',this),_0x4ce3ef['container']&&_0x4a5e8d['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x132e8e){if(_0x132e8e===this['activeAnnotation'])return;const _0x134398=this['context']['plugins']['get'](Sidebar);_0x134398['_activeAnnotation']=_0x132e8e;const _0x115118=this['activeAnnotation'];_0x134398['refresh']({'blurredAnnotation':_0x115118,'activatedAnnotation':_0x132e8e}),this['activeAnnotation']=_0x132e8e;}['attach'](_0x1d6d81){this['annotations']=_0x1d6d81;const _0x31a5e1=this['context']['plugins']['get'](Sidebar);if(_0x31a5e1['_annotations']=_0x1d6d81,this['isAttached'])throw new CKEditorError('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x31a5e1,'set:container',()=>{this['detach'](),this['listenTo'](_0x31a5e1,'change:container',_0x2c5b7=>{_0x2c5b7['off'](),this['attach'](_0x1d6d81);});}),_0x31a5e1['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x22f04c=_0xba098c=>{_0xba098c['updateTargetRect'](),_0x31a5e1['addAnnotation'](_0xba098c);};for(const _0x30731e of _0x1d6d81)_0x22f04c(_0x30731e);this['listenTo'](_0x1d6d81,'add',(_0x28a166,_0x25ae7d)=>{_0x22f04c(_0x25ae7d);}),this['listenTo'](_0x1d6d81,'remove',(_0x4adca4,_0x50602a,_0x1f3f91)=>{_0x31a5e1['rearrange']({'removedAnnotation':_0x50602a,'previousAnnotation':_0x1d6d81['get'](_0x1f3f91-0x1),'nextAnnotation':_0x1d6d81['get'](_0x1f3f91+0x1)}),_0x50602a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x1d6d81,'focus',(_0x5c07ce,_0x1ec331)=>{this['setActiveAnnotation'](_0x1ec331);}),this['listenTo'](_0x1d6d81,'blur',()=>{this['setActiveAnnotation'](null);});const _0x142d06=this['context']instanceof Context$1?this['context']['editors']:new Collection([this['context']]);for(const _0x15a66b of _0x142d06)this['_integrateWithEditorAnnotations'](_0x15a66b);this['listenTo'](_0x142d06,'add',(_0x39a246,_0x5a2488)=>{this['listenTo'](_0x5a2488,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5a2488);});}),this['listenTo'](_0x142d06,'remove',(_0xa45a59,_0x40fa33)=>{_0x40fa33['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x40fa33['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 _0x43206f=this['context']['plugins']['get'](Sidebar);_0x43206f['_detachFromContainer'](this['annotations']),this['stopListening'](_0x43206f),this['stopListening'](this['annotations']),this['context']instanceof Context$1&&this['stopListening'](this['context']['editors']);for(const _0x280995 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x280995);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x117e1a){if(!_0x117e1a['plugins']['has']('EditorAnnotations'))return;const _0x592823=_0x117e1a['plugins']['get']('EditorAnnotations'),_0x2142a2=()=>{const _0x24416=_0x592823['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x24416[0x0]||null);};this['listenTo'](_0x592823,'refresh',_0x2142a2),this['listenTo'](_0x592823,'blur',(_0x374181,{isAnnotationTracked:_0x5e39fd})=>{this['activeAnnotation']&&_0x5e39fd(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x592823,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x435c58=>{_0x592823['hasDomSelection']()&&(_0x2142a2(),_0x435c58['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x592823);}['_destroyEditorAnnotationsIntegration'](_0x4fed20){this['stopListening'](_0x4fed20),this['_editorAnnotations']['remove'](_0x4fed20);}}class AnnotationCounterButtonView extends ButtonView{['counterView'];constructor(_0x1e2541){super(_0x1e2541);const _0x370c22=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x3b73e7,_0x1dc8ff)=>_0x3b73e7?'...':_0x1dc8ff['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',_0x370c22['to']('annotationType',_0x1616ef=>'ck-annotation-counter__badge--'+_0x1616ef),_0x370c22['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x370c22['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(_0xcc6eed){super(_0xcc6eed),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'](_0x159288){this['annotations']=_0x159288;const _0x1c0cc7=this['context']['plugins']['get'](Sidebar),_0x526de7=this['balloonPanelView'];if(_0x1c0cc7['_annotations']=_0x159288,this['isAttached'])throw new CKEditorError('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x1c0cc7,'set:container',()=>{this['detach'](),this['listenTo'](_0x1c0cc7,'change:container',_0x5318dd=>{_0x5318dd['off'](),this['attach'](_0x159288);});}),_0x1c0cc7['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2a0b8c=_0x278794=>{const _0x11eb52=new AnnotationCounterButtonView(this['context']['locale']);_0x1c0cc7['addAnnotation'](_0x278794,_0x11eb52),this['_annotationToNarrowView']['set'](_0x278794,_0x11eb52),_0x11eb52['bind']('isDirty','annotationType','number')['to'](_0x278794['view'],'isDirty','type','length'),_0x11eb52['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x526de7['content']['first']!==_0x278794['view']?(this['_showBalloon'](_0x278794),_0x278794['view']['element']['focus'](),this['setActiveAnnotation'](_0x278794)):this['setActiveAnnotation'](null);});};for(const _0x129f09 of _0x159288)_0x2a0b8c(_0x129f09);this['listenTo'](_0x159288,'add',(_0xd0368f,_0x5e61ac)=>{_0x2a0b8c(_0x5e61ac);}),this['listenTo'](_0x159288,'remove',(_0x2ecd90,_0x156f6a,_0x504957)=>{this['_annotationToNarrowView']['get'](_0x156f6a)['destroy'](),this['_annotationToNarrowView']['delete'](_0x156f6a),_0x1c0cc7['rearrange']({'removedAnnotation':_0x156f6a,'previousAnnotation':_0x159288['get'](_0x504957-0x1),'nextAnnotation':_0x159288['get'](_0x504957+0x1)}),_0x156f6a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x159288,'focus',(_0x410c34,_0x40247b)=>{this['setActiveAnnotation'](_0x40247b);}),this['listenTo'](_0x159288,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x453770,_0x1d804d)=>{_0x1d804d['keyCode']===keyCodes['esc']&&_0x526de7['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x526de7['content']['first']),this['_hideBalloon'](),_0x1d804d['stopPropagation'](),_0x1d804d['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x2d9ebb,_0x2b2068)=>{const _0x45864a=_0x2b2068['target'];_0x526de7['isVisible']&&_0x526de7['element']['contains'](_0x45864a)||_0x1c0cc7['view']['element']['contains'](_0x45864a)||_0x2d9ebb['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x6c698=>_0x6c698['contains'](_0x45864a))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x3e4082=this['context']instanceof Context$1?this['context']['editors']:new Collection([this['context']]);for(const _0x58507c of _0x3e4082)this['_integrateWithEditorAnnotations'](_0x58507c);this['listenTo'](_0x3e4082,'add',(_0x293775,_0x4f823f)=>{this['listenTo'](_0x4f823f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x4f823f);});}),this['listenTo'](_0x3e4082,'remove',(_0x10d267,_0x5a9946)=>{_0x5a9946['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5a9946['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x2bbadb){if(_0x2bbadb===this['activeAnnotation'])return;const _0x32d1cc=this['context']['plugins']['get'](Sidebar);if(_0x32d1cc['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2bbadb,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2bbadb)_0x32d1cc['getSidebarItemView'](_0x2bbadb)?this['_showBalloon'](_0x2bbadb):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x2bbadb;}['detach'](){if(!this['isAttached'])throw new CKEditorError('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x4adfae=this['context']['plugins']['get'](Sidebar);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x33dd81=>_0x33dd81['destroy']()),this['_annotationToNarrowView']['clear'](),_0x4adfae['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof Context$1&&this['stopListening'](this['context']['editors']);for(const _0x5227ca of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5227ca);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'](_0x1e2c22){if(!_0x1e2c22['plugins']['has']('EditorAnnotations'))return;const _0x164fe7=_0x1e2c22['plugins']['get']('EditorAnnotations'),_0x54ca30=this['context']['plugins']['get'](Sidebar),_0x29c8ea=this['annotations'],_0x575aac=this['balloonPanelView'],_0x387d59=()=>{const _0x395a1d=_0x164fe7['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x395a1d),this['setActiveAnnotation'](_0x395a1d[0x0]||null);};this['listenTo'](_0x164fe7,'refresh',_0x387d59),this['listenTo'](_0x164fe7,'blur',(_0x16c93a,{isAnnotationTracked:_0x3ac43d})=>{this['activeAnnotation']&&_0x3ac43d(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x164fe7,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x29c8ea,'blur',_0x9512c8=>{_0x164fe7['hasDomSelection']()&&_0x9512c8['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x328d7f,_0x4e40e8)=>{const _0x4eec47=_0x4e40e8['target'];_0x575aac['isVisible']&&_0x575aac['element']['contains'](_0x4eec47)||_0x54ca30['view']['element']['contains'](_0x4eec47)||this['activeAnnotation']&&_0x164fe7['hasDomSelection']()&&(_0x387d59(),_0x328d7f['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x164fe7);}['_destroyEditorAnnotationsIntegration'](_0x339613){_0x339613&&(this['stopListening'](_0x339613),this['_editorAnnotations']['remove'](_0x339613));}['_setSelectedAnnotations'](_0x4aeddf){for(const _0x2dd714 of this['_selectedAnnotations'])_0x4aeddf['includes'](_0x2dd714)||this['_manuallyClosedAnnotationViews']['delete'](_0x2dd714['view']);this['_selectedAnnotations']=_0x4aeddf;}['_refreshPositioning'](){const _0x3e7233=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x3e7233['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x40daaf){if(this['_manuallyClosedAnnotationViews']['has'](_0x40daaf['view']))return;const _0x3b0465=this['balloonPanelView']['content']['first'];_0x3b0465!==_0x40daaf['view']?(_0x3b0465&&this['_detachListeners'](_0x3b0465),this['_attachListeners'](_0x40daaf['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x40daaf['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4c172f=this['balloonPanelView']['content']['first'],_0x1c6911=_0x4c172f&&this['annotations']['getByView'](_0x4c172f);if(!_0x1c6911||!this['_annotationToNarrowView']['has'](_0x1c6911))return;const _0xe08fe7=this['_annotationToNarrowView']['get'](_0x1c6911)['element'],_0x2c645c=getBalloonPositions();this['balloonPanelView']['pin']({'target':_0xe08fe7,'positions':_0x2c645c});}['_hideBalloon'](){const _0x53c250=this['balloonPanelView'],_0x33a2c9=_0x53c250['content']['first'];_0x33a2c9&&(this['_detachListeners'](_0x33a2c9),_0x53c250['unpin'](),_0x53c250['content']['clear']());}['_attachListeners'](_0x363a62){this['listenTo'](_0x363a62,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x363a62,'Esc',(_0x264a88,_0x5158a2)=>{this['_manuallyClosedAnnotationViews']['add'](_0x363a62),this['_hideBalloon'](),_0x5158a2();});}['_detachListeners'](_0x13626d){this['stopListening'](_0x13626d);}}function getBalloonPositions(){const _0x21aaa7=BalloonPanelView['defaultPositions'];return[_0x21aaa7['southArrowNorthEast'],_0x21aaa7['northArrowSouthEast'],_0x21aaa7['southArrowNorth'],_0x21aaa7['northArrowSouth'],_0x21aaa7['southArrowNorthWest'],_0x21aaa7['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(_0x34d962){super(_0x34d962),_0x34d962['editing']['view']['addObserver'](MouseObserver),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x34d962['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 _0xc26753=this['editor']['plugins']['get'](AnnotationsUIs);_0xc26753['context']===this['editor']&&(_0xc26753['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x23b388,_0x11f398)=>{const _0xa7341b=this['_balloon'];if(this['isAttached']&&_0xa7341b['visibleView']){const _0x904a69=this['annotations']['getByView'](_0xa7341b['visibleView']);_0x904a69&&this['_closeAnnotation'](_0x904a69),_0x11f398();}}));}['afterInit'](){const _0x1767e2=this['editor']['plugins']['get'](AnnotationsUIs);_0x1767e2['context']===this['editor']&&(_0x1767e2['hasActive']()||_0x1767e2['switchTo']('inline'));}['setActiveAnnotation'](_0x13db8b){_0x13db8b!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x13db8b&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x13db8b)&&this['_addAnnotationToBalloon'](_0x13db8b,!0x0),_0x13db8b['isActive']=!0x0),_0x13db8b||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x13db8b);}['attach'](_0x2c0361){this['annotations']=_0x2c0361;const _0x270535=this['editor']['plugins']['get'](AnnotationsUIs),_0x502c15=this['_balloon'];if(this['isAttached'])throw new CKEditorError('inlineannotations-attach-already-attached',this);if(_0x270535['context']!==this['editor'])throw new CKEditorError('inlineannotations-not-allowed-with-context',this);const _0x36d305=this['editor']['plugins']['get'](EditorAnnotations);this['listenTo'](_0x36d305,'refresh',()=>{const _0x529837=_0x36d305['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});!this['_forceRefresh']&&arraysEqual(_0x529837,this['_selectedAnnotations'])||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x529837),this['setActiveAnnotation'](_0x529837[0x0]||null));}),this['listenTo'](_0x36d305,'blur',(_0x3e0939,{isAnnotationTracked:_0x4cf3ed})=>{this['activeAnnotation']&&_0x4cf3ed(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x36d305,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x3bb331,_0x17ea94,_0x3468e9)=>{_0x3468e9||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2c0361,'remove',(_0xad81bc,_0x21aa24)=>{this['_removeAnnotationFromBalloon'](_0x21aa24),_0x21aa24===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x502c15,'change:visibleView',(_0x4cb0f0,_0x1742e7,_0x3e00b5,_0x51a0e5)=>{_0x51a0e5&&this['stopListening'](_0x51a0e5);const _0x389f2d=_0x2c0361['getByView'](_0x3e00b5);_0x3e00b5&&_0x389f2d&&(this['listenTo'](_0x3e00b5,'change:height',()=>{_0x502c15['updatePosition']();}),this['listenTo'](_0x3e00b5,'Esc',()=>{this['_closeAnnotation'](_0x389f2d),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x389f2d&&this['setActiveAnnotation'](_0x389f2d));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x502c15['visibleView']&&(_0x2c0361['getByView'](_0x502c15['visibleView'])&&_0x502c15['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 _0x321091 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x321091);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x539de5){for(const _0x4bb569 of this['_selectedAnnotations'])_0x539de5['includes'](_0x4bb569)||this['_manuallyClosed']['delete'](_0x4bb569);for(const _0x1f5362 of this['annotations'])_0x539de5['includes'](_0x1f5362)||this['_removeAnnotationFromBalloon'](_0x1f5362);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x370cd3 of _0x539de5)this['_addAnnotationToBalloon'](_0x370cd3);}this['_selectedAnnotations']=_0x539de5;}['_addAnnotationToBalloon'](_0x2467e0,_0xa02ab0=!0x1){this['_manuallyClosed']['has'](_0x2467e0)||(this['_addedAnnotations']['has'](_0x2467e0)||this['_balloon']['hasView'](_0x2467e0['view'])||(this['_addedAnnotations']['add'](_0x2467e0),this['_balloon']['add']({'stackId':_0x2467e0['view']['id'],'view':_0x2467e0['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x2467e0)}})),_0xa02ab0&&this['_balloon']['showStack'](_0x2467e0['view']['id']));}['_getBalloonTargetForAnnotation'](_0x16723e){const _0x44ec17=_0x16723e['target'],_0x59bd6d=this['editor']['editing']['view'],_0x3b9d21=_0x59bd6d['document']['selection']['getFirstRange'](),_0x13847d=_0x59bd6d['domConverter']['viewRangeToDom'](_0x3b9d21);if(_0x13847d['collapse'](!0x0),_0x44ec17){if(_0x44ec17 instanceof Rect)return _0x44ec17;let _0x2251ea=[];for(const _0x239784 of _0x44ec17)_0x2251ea['push'](...Rect['getDomElementRects'](_0x239784));_0x2251ea=joinClientRects(_0x2251ea);const _0x26e446=_0x13847d['getBoundingClientRect']();return _0x2251ea['find'](_0xc19ca6=>_0xc19ca6['top']<=_0x26e446['top']&&_0xc19ca6['bottom']>=_0x26e446['bottom']&&_0xc19ca6['left']<=_0x26e446['left']&&_0xc19ca6['right']>=_0x26e446['right'])||_0x2251ea[0x0];}return _0x16723e['targetRect']||_0x13847d;}['_removeAnnotationFromBalloon'](_0x59b917){this['_addedAnnotations']['has'](_0x59b917)&&this['_balloon']['hasView'](_0x59b917['view'])&&(this['_addedAnnotations']['delete'](_0x59b917),this['_balloon']['remove'](_0x59b917['view']));}['_closeAnnotation'](_0x1efd89){this['_manuallyClosed']['add'](_0x1efd89),this['_removeAnnotationFromBalloon'](_0x1efd89);}}function arraysEqual(_0xdceb84,_0x4a5265){return _0xdceb84['length']===_0x4a5265['length']&&_0xdceb84['every'](_0x3f1826=>_0x4a5265['includes'](_0x3f1826));}function joinClientRects(_0x356d85){const _0x439585=[];let _0x4f6b9c=_0x356d85[0x0];for(let _0x3d27ed=0x1;_0x3d27ed<_0x356d85['length'];_0x3d27ed++)if(canJoinRects(_0x4f6b9c,_0x356d85[_0x3d27ed])){const _0xd726bf=_0x356d85[_0x3d27ed]['width'];_0x4f6b9c['width']+=_0xd726bf,_0x4f6b9c['right']+=_0xd726bf;}else _0x439585['push'](_0x4f6b9c),_0x4f6b9c=_0x356d85[_0x3d27ed];return _0x439585['push'](_0x4f6b9c),_0x439585;}function canJoinRects(_0x70d00a,_0x2a0566){return _0x70d00a['top']===_0x2a0566['top']&&_0x70d00a['bottom']===_0x2a0566['bottom']&&_0x70d00a['right']===_0x2a0566['left'];}class CommentsArchiveView extends View{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x38aec4,_0x5e9de2){super(_0x38aec4),this['set']('isEmpty',!_0x5e9de2['length']),this['focusTracker']=new FocusTracker(),this['_annotationViews']=_0x5e9de2,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new FocusCycler({'focusables':_0x5e9de2,'focusTracker':this['focusTracker']}),this['listenTo'](_0x5e9de2,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x5e9de2,'remove',(_0x5a0a63,_0x134471)=>{_0x134471['isActive']&&this['focus'](),_0x5e9de2['length']||(this['isEmpty']=!0x0);});const _0x504918=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':getTranslation$f(_0x38aec4,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x5e9de2},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x504918['if']('isEmpty','ck-hidden',_0x1458db=>!_0x1458db)]},'children':[{'text':getTranslation$f(_0x38aec4,'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 _0x53b6d4 of this['_annotationViews'])this['focusTracker']['add'](_0x53b6d4['element']);this['_annotationViews']['on']('change',(_0x260a91,{added:_0x1bf847,removed:_0x41fa33})=>{for(const _0x215c8b of _0x1bf847)this['focusTracker']['add'](_0x215c8b['element']);for(const _0x4cf1ea of _0x41fa33)this['focusTracker']['remove'](_0x4cf1ea['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(_0x207c17){super(_0x207c17),this['archivedThreads']=new Collection();}['init'](){const _0x2e8e73=this['context'],_0x5df91a=_0x2e8e73['plugins']['get'](CommentsRepository),_0x467508=_0x2e8e73['plugins']['get'](Annotations);this['listenTo'](_0x5df91a,'addCommentThread',(_0x5335d7,{threadId:_0x37e595})=>{const _0x3da472=_0x5df91a['getCommentThread'](_0x37e595);_0x3da472['archivedAt']&&this['archivedThreads']['add'](_0x3da472,this['_calculatePosition'](_0x3da472['archivedAt'])),this['listenTo'](_0x3da472,'change:archivedAt',(_0x166791,_0x217061,_0x34aa83)=>{_0x34aa83?this['archivedThreads']['has'](_0x3da472)||this['archivedThreads']['add'](_0x3da472,this['_calculatePosition'](_0x3da472['archivedAt'])):this['archivedThreads']['has'](_0x3da472)&&this['archivedThreads']['remove'](_0x3da472);});}),this['listenTo'](_0x5df91a,'removeCommentThread',(_0x1998c1,{threadId:_0x1d53f6})=>{const _0x1b42c1=_0x5df91a['getCommentThread'](_0x1d53f6);this['stopListening'](_0x1b42c1),this['archivedThreads']['has'](_0x1b42c1)&&this['archivedThreads']['remove'](_0x1b42c1);},{'priority':'highest'}),this['listenTo'](_0x467508['collection'],'focus',(_0x6f7512,_0xff0e62)=>{_0xff0e62['isVisible']||(_0xff0e62['isActive']=!0x0,_0x467508['activate'](_0xff0e62));});}['_calculatePosition'](_0x2883f7){const _0x5598b2=[...this['archivedThreads']]['findIndex'](_0x47c1fc=>_0x47c1fc['archivedAt']<_0x2883f7);return _0x5598b2>-0x1?_0x5598b2: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(_0x313ae9){super(_0x313ae9),this['annotationViews']=new ViewCollection(),this['_pendingThreads']=[];}['init'](){const _0x2bd95d=this['editor'],_0x542b26=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x2bd95d['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](ButtonView,!0x0)),_0x2bd95d['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x2be045=this['_createCommentsArchiveButton'](MenuBarMenuListItemButtonView);return _0x2be045['set']({'role':'menuitemcheckbox'}),_0x2be045;});const _0x172597=_0x2bd95d['plugins']['get'](CommentsArchive),_0x246c77=_0x2bd95d['plugins']['get']('Annotations'),_0x110c21=_0x2bd95d['plugins']['get']('CommentsRepository');_0x172597['archivedThreads']['forEach'](_0x5891f3=>{this['_handleNewThread'](_0x5891f3);}),this['listenTo'](_0x172597['archivedThreads'],'add',(_0x5831fd,_0x1b082f)=>{this['_handleNewThread'](_0x1b082f);}),this['listenTo'](_0x246c77['collection'],'add',(_0x30986f,_0x32ad75)=>{const _0x3ebc82=this['_pendingThreads']['find'](_0x4a9f01=>{const _0x5a417c=_0x110c21['_threadToController']['get'](_0x4a9f01);return _0x5a417c&&_0x32ad75['innerView']===_0x5a417c['view'];});if(_0x3ebc82){const _0x3047d8=this['_calculatePosition'](_0x3ebc82['archivedAt']);this['_addAnnotationToArchive'](_0x32ad75,_0x3047d8),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3ebc82),0x1);}}),this['listenTo'](_0x172597['archivedThreads'],'remove',(_0x3545d4,_0x3164dc)=>{const _0x471462=_0x2bd95d['config']['get']('collaboration.channelId');if(!_0x471462||_0x3164dc['channelId']===_0x471462){if(this['_pendingThreads']['includes'](_0x3164dc))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3164dc),0x1);else{const _0x499606=_0x110c21['_threadToController']['get'](_0x3164dc),_0x3448e8=_0x246c77['getByInnerView'](_0x499606['view']);this['annotationViews']['remove'](_0x3448e8['view']),this['stopListening'](_0x3448e8),this['stopListening'](_0x3448e8['focusableElements']);}}}),this['listenTo'](_0x246c77['collection'],'add',(_0x301453,_0x11cdd0)=>{this['listenTo'](_0x11cdd0,'escape',_0x542b26);}),this['listenTo'](_0x246c77['collection'],'remove',(_0x3a58fb,_0xff69c9)=>{this['stopListening'](_0xff69c9,'escape',_0x542b26);});}['_addAnnotationToArchive'](_0x2b37d2,_0x59f81c){this['listenTo'](_0x2b37d2,'set:isVisible',_0x318d28=>{_0x318d28['return']=!0x1,_0x318d28['stop']();}),this['annotationViews']['add'](_0x2b37d2['view'],_0x59f81c);}['_handleNewThread'](_0x1b1a6b){const _0x12c90c=this['editor']['plugins']['get']('CommentsRepository'),_0x1aa317=this['editor']['plugins']['get']('Annotations'),_0x336b53=this['editor']['config']['get']('collaboration.channelId');if(!_0x336b53||_0x1b1a6b['channelId']===_0x336b53){const _0x3e11a8=_0x12c90c['_threadToController']['get'](_0x1b1a6b);if(!_0x3e11a8)return void this['_pendingThreads']['push'](_0x1b1a6b);const _0x3f15b0=this['_calculatePosition'](_0x1b1a6b['archivedAt']),_0x3e9d42=_0x1aa317['getByInnerView'](_0x3e11a8['view']);_0x3e9d42['isVisible']&&_0x1aa317['_visibleAnnotations']['remove'](_0x3e9d42),this['_addAnnotationToArchive'](_0x3e9d42,_0x3f15b0);}}['_calculatePosition'](_0x25c314){const _0x23ecd2=this['editor']['config']['get']('collaboration.channelId'),_0x2adc19=[...this['editor']['plugins']['get'](CommentsArchive)['archivedThreads']]['filter'](_0x3c4d55=>_0x3c4d55['channelId']===_0x23ecd2)['findIndex'](_0x368312=>_0x368312['archivedAt']<_0x25c314);return _0x2adc19<0x0||_0x2adc19>this['annotationViews']['length']?this['annotationViews']['length']:_0x2adc19-0x1;}['_toggleDialog'](){const _0x481ba0=this['editor'],_0x508b92=_0x481ba0['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new CommentsArchiveView(_0x481ba0['locale'],this['annotationViews'])),'commentsArchive'===_0x508b92['id']?_0x508b92['hide']():_0x508b92['show']({'id':'commentsArchive','title':getTranslation$f(_0x481ba0['locale'],'COMMENTS_ARCHIVE'),'icon':IconCommentsArchive,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':DialogViewPosition['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x1f6d48,_0x59e519=!0x1){const _0x91a648=this['editor']['locale'],_0x1e9f45=this['editor']['plugins']['get']('Dialog'),_0x317fc5=new _0x1f6d48(_0x91a648);return _0x317fc5['bind']('isEnabled')['to'](this,'isEnabled'),_0x317fc5['bind']('isOn')['to'](_0x1e9f45,'id',_0xe85e71=>'commentsArchive'===_0xe85e71),_0x317fc5['set']({'label':getTranslation$f(_0x91a648,'COMMENTS_ARCHIVE'),'icon':IconCommentsArchive,'isToggleable':!0x0}),_0x59e519&&(_0x317fc5['tooltip']=!0x0),this['listenTo'](_0x317fc5,'execute',()=>this['_toggleDialog']()),_0x317fc5;}['_hideDialogOnAnnotationEscape']=_0x5d35d4=>{const _0x534b4c=_0x5d35d4['source'];if(!this['annotationViews']['has'](_0x534b4c['view']))return;const _0x5dd309=this['editor']['plugins']['get']('Dialog');_0x5dd309['isOpen']&&'commentsArchive'===_0x5dd309['id']&&(_0x5dd309['hide'](),_0x5d35d4['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(_0x5077eb){let _0x17f4aa='';for(const _0xd9d765 of _0x5077eb['getChildren']())_0xd9d765 instanceof ModelText&&(_0x17f4aa+=_0xd9d765['data']);return _0x17f4aa;}function getDefaultFeatureHeadingNames(_0x52965d){const _0x1cd6cf=_0x52965d['config']['get']('heading.options');return _0x1cd6cf?_0x1cd6cf['reduce']((_0x16e1ea,_0x3e5dde)=>('paragraph'!==_0x3e5dde['model']&&_0x16e1ea['push'](_0x3e5dde['model']),_0x16e1ea),[]):_0x52965d['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 _0x94f2e4=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x4969f5=[];_0x94f2e4['model']['document']['on']('change',debounce$1(()=>{const _0x23f1aa=_0x4969f5;_0x4969f5=this['_getOutlineDefinitions']();const _0x3195ad=_0x3b95bc(_0x23f1aa,_0x4969f5,(_0x52c58a,_0x1b9812)=>_0x52c58a['level']===_0x1b9812['level']&&_0x52c58a['text']===_0x1b9812['text']&&_0x52c58a['modelElement']===_0x1b9812['modelElement']),_0x19730c=diffToChanges(_0x3195ad,_0x4969f5),_0x581742=this['_getActiveHeading'](),_0x3d6885=_0x4969f5['findIndex'](_0x4c6ab3=>_0x4c6ab3['modelElement']===_0x581742);_0x19730c['length']&&this['fire']('change',{'outlineDefinitions':_0x4969f5,'activeItemIndex':_0x3d6885,'outlineChanges':_0x19730c}),this['fire']('activeItemIndex',{'index':_0x3d6885});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x3170e5=this['editor'],_0x17515e=[],_0x3823ec=this['_headingNames'];for(const _0x2b3849 of _0x3170e5['model']['document']['getRootNames']())_0x292bd8(_0x3170e5['model']['document']['getRoot'](_0x2b3849));function _0x292bd8(_0x16ac17){for(const _0x3248bc of _0x16ac17['getChildren']())_0x3248bc['is']('element')&&(_0x3823ec['includes'](_0x3248bc['name'])&&_0x17515e['push']({'level':_0x3823ec['indexOf'](_0x3248bc['name'])+0x1,'text':getElementText(_0x3248bc),'modelElement':_0x3248bc}),_0x292bd8(_0x3248bc));}return _0x17515e;}['_getActiveHeading'](){const _0x155e8a=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x55bfa1=new ModelTreeWalker({'direction':'backward','startPosition':_0x155e8a});for(const _0x4ef576 of _0x55bfa1)if(_0x4ef576['item']['is']('element')&&this['_headingNames']['includes'](_0x4ef576['item']['name']))return _0x4ef576['item'];}['_getHeadingNames'](){const _0x1e6f4a=this['editor']['config']['get']('documentOutline.headings');return _0x1e6f4a||getDefaultFeatureHeadingNames(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x2345d1=this['editor'],_0x57ae57=['h1','h2','h3','h4','h5','h6'],_0x124243=[];for(const _0x896be0 of _0x57ae57){const _0x40950e=_0x2345d1['editing']['view']['domConverter']['domToView'](document['createElement'](_0x896be0)),_0x8aa616=_0x2345d1['data']['toModel'](_0x40950e)['getChild'](0x0);_0x8aa616?.['is']('element')&&_0x124243['push'](_0x8aa616['name']);}this['_headingNames']=_0x124243;}}function getTranslation$e(_0x323571,_0x29c9d9){const t=_0x323571['t'];switch(_0x29c9d9){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 _0x29c9d9;}}class DocumentOutlineItemView extends View{constructor(_0x7b78ca,_0x564fe0=!0x1){super(_0x7b78ca);const _0x442eac=this['bindTemplate'],_0x2c9e52=_0x564fe0?'['+getTranslation$e(_0x7b78ca,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x56038c=>!_0x56038c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x442eac['to']('level',_0x3cf80f=>'ck-document-outline__item_level-'+_0x3cf80f),_0x442eac['if']('isActive','ck-document-outline__item_active'),_0x442eac['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x442eac['to']('text')},'children':[{'text':_0x442eac['to']('text',_0x86f734=>_0x86f734||_0x2c9e52)}],'on':{'click':_0x442eac['to']('click')}});}}class DocumentOutlineView extends View{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0xfd475f,_0x4714e2=!0x1,_0x57cea9){super(_0xfd475f),this['showEmptyHeadingText']=_0x4714e2,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x57cea9,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x2f31ae,_0x132619,_0x1281f4,_0x38357d)=>{this['_setActiveItem'](_0x38357d,_0x1281f4);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0xfd475f['contentLanguageDirection'],'data-document-outline-empty-placeholder':getTranslation$e(_0xfd475f,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x5efcc5){_0x5efcc5['forEach'](_0x1b6d1c=>{'insert'==_0x1b6d1c['type']?this['_insertItem'](_0x1b6d1c['index'],..._0x1b6d1c['values']):'delete'==_0x1b6d1c['type']&&this['_deleteItem'](_0x1b6d1c['index'],_0x1b6d1c['howMany']);});}['_setActiveItem'](_0x2a21d2,_0x51a90d){if(-0x1!==_0x2a21d2){const _0x10ec4a=this['items']['get'](_0x2a21d2);_0x10ec4a&&(_0x10ec4a['isActive']=!0x1);}-0x1!==_0x51a90d&&(this['items']['get'](_0x51a90d)['isActive']=!0x0,this['_scrollToItem'](_0x51a90d));}['_insertItem'](_0x45b585,..._0x4f7173){const _0x6fd157=_0x4f7173['map']((_0x401619,_0x431652)=>{const _0x510dc2=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x510dc2['text']=_0x401619['text'],_0x510dc2['level']=_0x401619['level'],_0x45b585+_0x431652===this['activeItemIndex']&&(_0x510dc2['isActive']=!0x0),_0x510dc2;});this['items']['addMany'](_0x6fd157,_0x45b585);}['_deleteItem'](_0x2368d9,_0x197834){do{this['items']['remove'](_0x2368d9);}while(--_0x197834);}['_handleItemClick'](_0x42b971){const _0x310a20=this['items']['getIndex'](_0x42b971['source']);this['fire']('itemSelected',_0x310a20);}['_scrollToItem'](_0x132b7f){scrollAncestorsToShowTarget(this['items']['get'](_0x132b7f)['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(_0x2eeab8){super(_0x2eeab8),this['view']=new DocumentOutlineView(_0x2eeab8['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 _0x459cdd=this['editor'],_0x310e5a=_0x459cdd['plugins']['get']('DocumentOutlineUtils');let _0x4299ad=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x459cdd['config']['get']('documentOutline.container'))throw new CKEditorError('document-outline-container-not-provided',{'editor':_0x459cdd});_0x459cdd['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x310e5a['on']('change',this['_handleOutlineChange']['bind'](this)),_0x310e5a['on']('activeItemIndex',(_0xa0104a,{index:_0x3ebfac})=>this['_setActiveViewItem'](_0x3ebfac)),this['view']['on']('itemSelected',(_0x3231b2,_0x52581e)=>{_0x4299ad=!0x0,this['_handleItemSelected'](_0x52581e);}),this['view']['listenTo'](_0x176c57['document'],'scroll',()=>{_0x4299ad?_0x4299ad=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x176c57['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){checkLicense$g(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x2ee146,{outlineDefinitions:_0x2b79db,outlineChanges:_0x3cf447}){this['_currentOutlineDefinitions']=_0x2b79db,this['view']['sync'](_0x3cf447);}['_setActiveViewItem'](_0x544414){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x544414]&&(this['view']['activeItemIndex']=_0x544414);}['_handleItemSelected'](_0x2da010){const _0x56047f=this['_currentOutlineDefinitions'][_0x2da010]['modelElement'];this['editor']['model']['change'](_0x2bb8c2=>{_0x2bb8c2['setSelection'](_0x56047f,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x2da010);}['_updateActiveDefinitionOnViewportChange'](){const _0x1d62bf=this['editor'];let _0x512700;for(const _0x51e6ff of _0x1d62bf['model']['document']['getRootNames']()){const _0x59d99d=_0x1d62bf['editing']['view']['getDomRoot'](_0x51e6ff),_0x15dd4c=_0x59d99d&&new Rect(_0x59d99d)['getVisible']();if(_0x15dd4c){const _0x2af5b6=new Rect(_0x176c57['window'])['getIntersection'](_0x15dd4c);_0x2af5b6&&(_0x512700=_0x2af5b6['top']+0.25*_0x2af5b6['height']);}}if(void 0x0===_0x512700)return;const _0x3b00c3=binaryActiveDefinitionSearch(_0x1d62bf['editing'],this['_currentOutlineDefinitions'],_0x512700);_0x3b00c3?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x3b00c3)):this['_setActiveViewItem'](-0x1);}}function binaryActiveDefinitionSearch(_0x1b0c0f,_0x10dffd,_0x432409,_0x137592=0x0,_0x4f4520=_0x10dffd['length']-0x1){const _0xedfdf6=Math['floor'](_0x137592+(_0x4f4520-_0x137592)/0x2);if(_0x4f4520>=_0x137592){const _0x46c1cd=_0x10dffd[_0xedfdf6],_0x55303b=_0x1b0c0f['mapper']['toViewElement'](_0x46c1cd['modelElement']);if(!_0x55303b)return null;const _0x3d52be=_0x1b0c0f['view']['domConverter']['mapViewToDom'](_0x55303b);return new Rect(_0x3d52be)['bottom']>_0x432409?binaryActiveDefinitionSearch(_0x1b0c0f,_0x10dffd,_0x432409,_0x137592,_0xedfdf6-0x1):binaryActiveDefinitionSearch(_0x1b0c0f,_0x10dffd,_0x432409,_0xedfdf6+0x1,_0x4f4520);}return _0xedfdf6<0x0?null:_0x10dffd[_0xedfdf6];}async function checkLicense$g(_0x492b0b){const _0x5e0feb=_0x542ade([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]),_0x3debe4=window[_0x542ade([0x44,0x61,0x74,0x65])][_0x542ade([0x6e,0x6f,0x77])](),_0x1a2543=_0x492b0b[_0x542ade([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf50c96=new window[(_0x542ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c59f6=>{_0x1a2543[_0x542ade([0x6f,0x6e,0x63,0x65])](_0x542ade([0x72,0x65,0x61,0x64,0x79]),_0x5c59f6);}),_0x4aceee={[_0x542ade([0x6b,0x74,0x79])]:_0x542ade([0x45,0x43]),[_0x542ade([0x75,0x73,0x65])]:_0x542ade([0x73,0x69,0x67]),[_0x542ade([0x63,0x72,0x76])]:_0x542ade([0x50,0x2d,0x32,0x35,0x36]),[_0x542ade([0x78])]:_0x542ade([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]),[_0x542ade([0x79])]:_0x542ade([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]),[_0x542ade([0x61,0x6c,0x67])]:_0x542ade([0x45,0x53,0x32,0x35,0x36])},_0xcd68c2=_0x1a2543[_0x542ade([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x542ade([0x67,0x65,0x74])](_0x542ade([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x4c9dcb=await(async function(){let _0x42f8da,_0x4379e3=null,_0x2cd8de=null;try{if(_0xcd68c2==_0x542ade([0x47,0x50,0x4c]))return _0x542ade([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42f8da=(function(){const _0x151fe3=_0xcd68c2[_0x542ade([0x73,0x70,0x6c,0x69,0x74])](_0x542ade([0x2e]));if(0x3!=_0x151fe3[_0x542ade([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x3cedbd=_0x151fe3[0x1];return _0x135165(_0x3cedbd);function _0x135165(_0x42dff8){const _0x5bbbdf=_0x41a555(_0x42dff8);return _0x5bbbdf&&_0x10722f()?_0x5bbbdf:null;function _0x10722f(){const _0x5b99aa=_0x5bbbdf[_0x542ade([0x6a,0x74,0x69])],_0x1646fc=window[_0x542ade([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b99aa[_0x542ade([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b99aa[_0x542ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d1e78={..._0x5bbbdf,[_0x542ade([0x6a,0x74,0x69])]:_0x5b99aa[_0x542ade([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b99aa[_0x542ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d1e78[_0x542ade([0x76,0x63])],_0x285c26(_0x2d1e78)==_0x1646fc;}}}()),!_0x42f8da)return _0x542ade([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x42f8da[_0x542ade([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2cd8de=function(_0x385411,_0x11d98a){return new window[(_0x542ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14945c=>{if(_0x27fe9f())return _0x14945c(_0x542ade([0x56,0x61,0x6c,0x69,0x64]));_0x17bffa(),_0x1a2543[_0x542ade([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x542ade([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57a8b2=!0x1;const _0x1c44ff=uid();function _0x58d4ff(_0x52ce71){return!!_0x52ce71&&(typeof _0x52ce71===_0x542ade([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x52ce71===_0x542ade([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x52ce71[_0x542ade([0x74,0x68,0x65,0x6e])]===_0x542ade([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x52ce71[_0x542ade([0x63,0x61,0x74,0x63,0x68])]===_0x542ade([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ab7c7(_0x156ca4){_0x14d74b(_0x156ca4)[_0x542ade([0x74,0x68,0x65,0x6e])](_0x21e208=>{if(!_0x21e208||_0x21e208[_0x542ade([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x542ade([0x6f,0x6b]))return _0x542ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30b28(_0x285c26(_0x1c44ff+_0x11d98a))!=_0x21e208[_0x542ade([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x542ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x542ade([0x56,0x61,0x6c,0x69,0x64]);})[_0x542ade([0x74,0x68,0x65,0x6e])](_0x129065=>(_0x57d471(),_0x129065),()=>{const _0xbaddbf=_0x164c6e();return null==_0xbaddbf?(_0x57d471(),_0x542ade([0x56,0x61,0x6c,0x69,0x64])):_0x542ade(_0x3debe4-_0xbaddbf>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x542ade([0x74,0x68,0x65,0x6e])](_0x14945c)[_0x542ade([0x63,0x61,0x74,0x63,0x68])](()=>{_0x14945c(_0x542ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b71ff=0x36ee80;function _0x57d471(){const _0x42125a=_0x542ade([0x6c,0x6c,0x63,0x74,0x2d])+_0x30b28(_0x285c26(_0x385411)),_0x1785c3=_0x208618(_0x30b28(window[_0x542ade([0x4d,0x61,0x74,0x68])][_0x542ade([0x63,0x65,0x69,0x6c])](_0x3debe4/_0x5b71ff)));window[_0x542ade([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x542ade([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42125a,_0x1785c3);}function _0x164c6e(){const _0x4fa695=_0x542ade([0x6c,0x6c,0x63,0x74,0x2d])+_0x30b28(_0x285c26(_0x385411)),_0x1c7272=window[_0x542ade([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x542ade([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fa695);return _0x1c7272?window[_0x542ade([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x208618(_0x1c7272),0x10)*_0x5b71ff:null;}function _0x14d74b(_0x4678d5){return new window[(_0x542ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5664f5,_0x14e487)=>{_0x4678d5[_0x542ade([0x74,0x68,0x65,0x6e])](_0x5664f5,_0x14e487),window[_0x542ade([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14e487,0x1d4c0);});}}_0x1a2543[_0x542ade([0x6f,0x6e])](_0x542ade([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1478d3,_0x1c7bb4)=>{if(_0x1c7bb4[0x0]!=_0x385411)return _0x14945c(_0x542ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c7bb4[0x1]={..._0x1c7bb4[0x1],[_0x542ade([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c44ff};},{[_0x542ade([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x542ade([0x68,0x69,0x67,0x68])}),_0x1a2543[_0x542ade([0x6f,0x6e])](_0x542ade([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5edb98=>{_0x58d4ff(_0x5edb98[_0x542ade([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57a8b2=!0x0,_0x4ab7c7(_0x5edb98[_0x542ade([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x542ade([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x542ade([0x6c,0x6f,0x77])}),_0xf50c96[_0x542ade([0x74,0x68,0x65,0x6e])](()=>{_0x57a8b2||_0x14945c(_0x542ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27fe9f(){return _0x1a2543[_0x542ade([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x542ade([0x76,0x69,0x65,0x77])][_0x542ade([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x542ade([0x61,0x75,0x74,0x6f]);}function _0x17bffa(){_0x1a2543[_0x542ade([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x542ade([0x76,0x69,0x65,0x77])][_0x542ade([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x542ade([0x61,0x75,0x74,0x6f]);}}(_0x42f8da[_0x542ade([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42f8da[_0x542ade([0x6a,0x74,0x69])]));const _0x20a2b2=await(async function(){let _0x5ab82a=!0x0;try{const _0x157ee4=_0xcd68c2[_0x542ade([0x73,0x70,0x6c,0x69,0x74])](_0x542ade([0x2e])),[_0x28dbee,_0x57aa7d,_0x4394e2]=_0x157ee4;return _0x71a7c2(_0x28dbee),await _0x347324(_0x28dbee,_0x57aa7d,_0x4394e2),_0x5ab82a;}catch{return!0x1;}function _0x71a7c2(_0x9f4e85){const _0x4ce34e=_0x41a555(_0x9f4e85);_0x4ce34e&&_0x4ce34e[_0x542ade([0x61,0x6c,0x67])]==_0x542ade([0x45,0x53,0x32,0x35,0x36])||(_0x5ab82a=!0x1);}async function _0x347324(_0x32c180,_0x7909f0,_0x283f86){const _0x1f705d=window[_0x542ade([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x542ade([0x66,0x72,0x6f,0x6d])](_0x42a8b2(_0x283f86),_0x2adabc=>_0x2adabc[_0x542ade([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20302b=new window[(_0x542ade([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x542ade([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32c180+_0x542ade([0x2e])+_0x7909f0),_0x5cb015=window[_0x542ade([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x542ade([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5cb015)return;const _0xe17fc7=await _0x5cb015[_0x542ade([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x542ade([0x6a,0x77,0x6b]),_0x4aceee,{[_0x542ade([0x6e,0x61,0x6d,0x65])]:_0x542ade([0x45,0x43,0x44,0x53,0x41]),[_0x542ade([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x542ade([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x542ade([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5cb015[_0x542ade([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x542ade([0x6e,0x61,0x6d,0x65])]:_0x542ade([0x45,0x43,0x44,0x53,0x41]),[_0x542ade([0x68,0x61,0x73,0x68])]:{[_0x542ade([0x6e,0x61,0x6d,0x65])]:_0x542ade([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe17fc7,_0x1f705d,_0x20302b)||(_0x5ab82a=!0x1);}}());return _0x20a2b2?(function(){const _0xe6cbd9=_0x42f8da[_0x542ade([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xe6cbd9)return!0x1;if(_0xe6cbd9[_0x542ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x542ade([0x2a])))return!0x0;if(_0xe6cbd9[_0x542ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x542ade([0x44,0x4f])))return!0x0;if(_0xe6cbd9[_0x542ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x542ade([0x50,0x50])))return!0x0;if(_0xe6cbd9[_0x542ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x542ade([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x542ade([0x67,0x6c,0x6f,0x62])]&&window[_0x542ade([0x67,0x6c,0x6f,0x62])][_0x542ade([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x3d9b9f=[_0x542ade([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x542ade([0x74,0x72,0x69,0x61,0x6c])][_0x542ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42f8da[_0x542ade([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3debe4/0x3e8:0x69cb0e80;return _0x42f8da[_0x542ade([0x65,0x78,0x70])]<_0x3d9b9f;}())?_0x542ade([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x334c43=_0x42f8da[_0x542ade([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x334c43||0x0==_0x334c43[_0x542ade([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35e374}=new URL(window[_0x542ade([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x334c43[_0x542ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35e374))return!0x0;const _0x14f7ce=_0x35e374[_0x542ade([0x73,0x70,0x6c,0x69,0x74])](_0x542ade([0x2e]));return _0x334c43[_0x542ade([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc86b52=>_0xc86b52[_0x542ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x542ade([0x2a])))[_0x542ade([0x6d,0x61,0x70])](_0x148851=>_0x148851[_0x542ade([0x73,0x70,0x6c,0x69,0x74])](_0x542ade([0x2e])))[_0x542ade([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x225cc5=>_0x225cc5[_0x542ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x14f7ce[_0x542ade([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x542ade([0x6d,0x61,0x70])](_0x266ea6=>Array(_0x14f7ce[_0x542ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x266ea6[_0x542ade([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x542ade([0x66,0x69,0x6c,0x6c])](_0x266ea6[0x0]===_0x542ade([0x2a])?_0x542ade([0x2a]):'')[_0x542ade([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x266ea6))[_0x542ade([0x73,0x6f,0x6d,0x65])](_0x944244=>_0x14f7ce[_0x542ade([0x65,0x76,0x65,0x72,0x79])]((_0xc7c682,_0x5b8e3d)=>_0x944244[_0x5b8e3d]===_0xc7c682||_0x944244[_0x5b8e3d]===_0x542ade([0x2a])));}())?(_0x42f8da[_0x542ade([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x542ade([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4379e3=function(_0x2d3109){const _0x205498=new window[(_0x542ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18785a=>setTimeout(_0x18785a,0x93ecc)),_0x4774bf=_0xf50c96[_0x542ade([0x74,0x68,0x65,0x6e])](()=>new window[(_0x542ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e3e16=>{let _0x1a87b6=0x0;_0x1a2543[_0x542ade([0x6d,0x6f,0x64,0x65,0x6c])][_0x542ade([0x6f,0x6e])](_0x542ade([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11789d,_0x72927f)=>{_0x72927f[0x0][_0x542ade([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a87b6++,0x5e8==_0x1a87b6&&(_0x5e3e16(),_0x11789d[_0x542ade([0x6f,0x66,0x66])]());});})),_0x2131db=[_0x205498,_0x4774bf];return window[_0x542ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x542ade([0x72,0x61,0x63,0x65])](_0x2131db)[_0x542ade([0x74,0x68,0x65,0x6e])](()=>_0x2d3109);}(_0x542ade([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x4379e3&&_0x2cd8de)return new window[(_0x542ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e0b59,_0x46f65b)=>{_0x4379e3[_0x542ade([0x74,0x68,0x65,0x6e])](_0x5e0b59,_0x46f65b),_0x2cd8de[_0x542ade([0x74,0x68,0x65,0x6e])](_0x281265=>{_0x281265!=_0x542ade([0x56,0x61,0x6c,0x69,0x64])&&_0x5e0b59(_0x281265);},_0x46f65b);});return _0x4379e3||_0x2cd8de||_0x542ade([0x56,0x61,0x6c,0x69,0x64]);}())):_0x542ade([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x542ade([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x542ade([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x542ade([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x41a555(_0x10813e){return _0x10813e[_0x542ade([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x542ade([0x65,0x79]))?JSON[_0x542ade([0x70,0x61,0x72,0x73,0x65])](_0x42a8b2(_0x10813e)):null;}function _0x42a8b2(_0x35791d){return window[_0x542ade([0x61,0x74,0x6f,0x62])](_0x35791d[_0x542ade([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x542ade([0x2b]))[_0x542ade([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x542ade([0x2f])));}function _0x285c26(_0x780828){let _0x4d876e=0x1505;function _0x564156(_0x1fe6df){for(let _0x1d0f9a=0x0;_0x1d0f9a<_0x1fe6df[_0x542ade([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d0f9a++){const _0x1148f8=_0x1fe6df[_0x542ade([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d0f9a);_0x4d876e=(_0x4d876e<<0x5)+_0x4d876e+_0x1148f8,_0x4d876e&=_0x4d876e;}}return function _0x20ad8f(_0x2401b0){Array[_0x542ade([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2401b0)?_0x2401b0[_0x542ade([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20ad8f):_0x2401b0&&typeof _0x2401b0==_0x542ade([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x542ade([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2401b0)[_0x542ade([0x73,0x6f,0x72,0x74])]()[_0x542ade([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4357d1,_0x3b514c])=>{_0x564156(_0x4357d1),_0x20ad8f(_0x3b514c);}):_0x564156(window[_0x542ade([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2401b0));}(_0x780828),_0x4d876e>>>0x0;}function _0x30b28(_0xeea98b){return _0xeea98b[_0x542ade([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x542ade([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x542ade([0x30]));}function _0x208618(_0x5d0ae9){return _0x5d0ae9[_0x542ade([0x73,0x70,0x6c,0x69,0x74])]('')[_0x542ade([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x542ade([0x6a,0x6f,0x69,0x6e])]('');}function _0x4627eb(){}function _0x542ade(_0x51744d){return _0x51744d['map'](_0x20a58a=>String['fromCharCode'](_0x20a58a))['join']('');}!function(_0x4c5d22){const _0x914b79=(function(){const _0x38e852=window[_0x542ade([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x542ade([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x542ade([0x6e,0x6f,0x77])]())[_0x542ade([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x542ade([0x2e]),'');let _0x2abe3d=_0x542ade([0x61]);for(let _0x2a8c9b=0x0;_0x2a8c9b<_0x38e852[_0x542ade([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a8c9b+=0x2){let _0x1cb43c=window[_0x542ade([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38e852[_0x542ade([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a8c9b,_0x2a8c9b+0x2));_0x1cb43c>=_0x5e0feb[_0x542ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1cb43c-=_0x5e0feb[_0x542ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2abe3d+=_0x5e0feb[_0x1cb43c];}return _0x2abe3d;}());_0x1a2543[_0x914b79]=_0x542ade([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])+_0x4c5d22,_0x4c5d22!=_0x542ade([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0xf50c96,_0x1a2543[_0x542ade([0x6d,0x6f,0x64,0x65,0x6c])][_0x542ade([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4627eb,_0x1a2543[_0x542ade([0x6d,0x6f,0x64,0x65,0x6c])][_0x542ade([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4627eb,_0x1a2543[_0x542ade([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x542ade([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x4c9dcb);}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 _0x357c7b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x33881d;for(const _0x28fe36 in _0x357c7b){const _0x556b01=_0x28fe36,_0x1f4764=_0x357c7b[_0x556b01];if('documentOutlineLicenseKeyValid'==_0x1f4764||'documentOutlineLicenseKeyInvalid'==_0x1f4764||'documentOutlineLicenseKeyExpired'==_0x1f4764||'documentOutlineLicenseKeyDomainLimit'==_0x1f4764||'documentOutlineLicenseKeyNotAllowed'==_0x1f4764||'documentOutlineLicenseKeyEvaluationLimit'==_0x1f4764||'documentOutlineLicenseKeyUsageLimit'==_0x1f4764){delete _0x357c7b[_0x556b01],_0x33881d=_0x1f4764,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x33881d&&_0x357c7b['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x33881d&&_0x357c7b['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x33881d&&_0x357c7b['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x33881d&&_0x357c7b['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x33881d&&_0x357c7b['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x33881d&&_0x357c7b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends Command{['execute'](){this['editor']['model']['change'](_0xcaea17=>{this['editor']['model']['insertObject'](_0xcaea17['createElement']('tableOfContents'));});}['refresh'](){const _0x5f1cd2=this['editor']['model'],_0x2ed88a=_0x5f1cd2['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x2ed88a&&_0x5f1cd2['schema']['findAllowedParent'](_0x2ed88a,'tableOfContents'));}}class HeadingId extends Plugin{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x49dd47=this['editor'];if(_0x49dd47['config']['get']('headingId.modelAttributeName'))return;getDefaultHeadingMapNames(this['editor']['config']['get']('heading.options'))['forEach']((_0x2b7466,_0x10d15e)=>{this['_customUpcastHeadingsConversion'](_0x10d15e),this['_customDataDowncastHeadingsConversion'](_0x2b7466),_0x49dd47['model']['schema']['isRegistered'](_0x2b7466)&&_0x49dd47['model']['schema']['extend'](_0x2b7466,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']();}['_customUpcastHeadingsConversion'](_0x14eaae){this['editor']['conversion']['for']('upcast')['add'](_0x5166b0=>_0x5166b0['on']('element:'+_0x14eaae,(_0x4a8a35,_0x549b49,_0x48494a)=>{const {consumable:_0x237ea0,writer:_0x2477c0}=_0x48494a,_0x4ca51f=_0x549b49['viewItem']['getAttribute']('id'),_0x45b38c=_0x549b49['modelRange']['getContainedElement']();if(_0x45b38c)return _0x4ca51f&&_0x4ca51f['length']||_0x45b38c['hasAttribute']('headingId')?void(_0x237ea0['consume'](_0x549b49['viewItem'],{'attributes':['id']})&&_0x2477c0['setAttribute']('headingId',_0x4ca51f,_0x45b38c)):(_0x237ea0['consume'](_0x549b49['viewItem'],{'attributes':['id']}),void _0x2477c0['setAttribute']('headingId',uid(),_0x45b38c));},{'priority':priorities['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0xd261b2){this['editor']['conversion']['for']('downcast')['add'](_0x29d9e5=>_0x29d9e5['on']('attribute:headingId:'+_0xd261b2,(_0x3b0290,_0x15ff08,_0x3e3a81)=>{if(!_0x3e3a81['consumable']['consume'](_0x15ff08['item'],_0x3b0290['name']))return;const _0x5601c3=_0x15ff08['item']['getAttribute']('headingId'),_0x31a1da=_0x3e3a81['mapper']['toViewElement'](_0x15ff08['item']);_0x3e3a81['writer']['setAttribute']('id',_0x5601c3,_0x31a1da);}));}['_registerHeadingIdAttributePostfixer'](){const _0xbb4f8f=this['editor'],_0x390fbb=new Set(),_0x17e0ef=new Set();function _0x2a350d(_0x17df3d,_0x2baaf9){const _0xed24c4=uid();return _0x17e0ef['add'](_0xed24c4),_0x17df3d['setAttribute']('headingId',_0xed24c4,_0x2baaf9),_0xed24c4;}function _0x4e3cbe(_0xdd5711,_0x22db29){_0xdd5711['removeAttribute']('headingId',_0x22db29);}_0xbb4f8f['model']['document']['registerPostFixer'](_0x2c3460=>{const _0x263ae3=_0xbb4f8f['model']['document']['differ']['getChanges']();let _0x219bac=!0x1;for(const _0x2d9dd9 of _0x263ae3)if('insert'==_0x2d9dd9['type']&&_0x2d9dd9['name']){if(isHeading$1(_0x2d9dd9['name'])){const _0x1417e5=_0x2d9dd9['attributes']['get']('headingId');'string'==typeof _0x1417e5?_0x390fbb['has'](_0x1417e5)?(_0x2a350d(_0x2c3460,_0x2d9dd9['position']['nodeAfter']),_0x219bac=!0x0):_0x17e0ef['add'](_0x1417e5):(_0x2a350d(_0x2c3460,_0x2d9dd9['position']['nodeAfter']),_0x219bac=!0x0);}else'string'==typeof _0x2d9dd9['attributes']['get']('headingId')&&(_0x4e3cbe(_0x2c3460,_0x2d9dd9['position']['nodeAfter']),_0x219bac=!0x0);}else{if('remove'==_0x2d9dd9['type']){const _0x3171cd=_0x2d9dd9['attributes']['get']('headingId');'string'==typeof _0x3171cd&&_0x390fbb['delete'](_0x3171cd);}}return _0x219bac;}),_0xbb4f8f['model']['document']['on']('change',()=>{_0x17e0ef['forEach'](_0x5b9769=>_0x390fbb['add'](_0x5b9769)),_0x17e0ef['clear']();});}}function isHeading$1(_0x41989c){return!!_0x41989c['match'](/heading\d/);}function getDefaultHeadingMapNames(_0x2fd290){const _0xce0e9d=new Map();return _0x2fd290?(_0x2fd290['forEach'](_0x25b4df=>{'paragraph'!==_0x25b4df['model']&&_0xce0e9d['set'](_0x25b4df['view'],_0x25b4df['model']);}),_0xce0e9d['get']('h1')||_0xce0e9d['set']('h1','heading1'),_0xce0e9d):_0xce0e9d;}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(_0x50d4f4){super(_0x50d4f4),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x7fed15=this['editor'],_0x18dcbc=_0x7fed15['editing']['view']['document'];_0x7fed15['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x7fed15['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x18dcbc,'click',(_0x38c778,_0x2fb157)=>{if(!_0x2fb157['target'])return;const _0x5b29b4=_0x2fb157['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x5b29b4)&&(_0x2fb157['domEvent']['preventDefault'](),_0x38c778['stop'](),this['_handleScrollToHeading'](_0x5b29b4));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x7fed15['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x7fed15)),(_0x7fed15['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x2b58b1,_0x50de87)=>{this['_currentOutlineDefinitions']=_0x50de87['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x7fed15['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){checkLicense$f(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x3bbbeb=>{'$graveyard'!==_0x3bbbeb['rootName']&&this['editor']['editing']['reconvertItem'](_0x3bbbeb);});}['_trackNewToCElements'](){for(const _0x51af59 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x51af59['type']||'tableOfContents'!==_0x51af59['name'])return;this['_tableOfContentsElements']['add'](_0x51af59['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x408c94=this['editor']['conversion'];_0x408c94['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x408c94['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x4aa541,{writer:_0x2a627c})=>this['_createTableOfContents'](_0x2a627c,!0x0)}),_0x408c94['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x470f5d,{writer:_0x3bbe98})=>{this['_tableOfContentsElements']['add'](_0x470f5d);const _0x318cb0=this['_createTableOfContents'](_0x3bbe98);return toWidget(_0x318cb0,_0x3bbe98,{'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'](_0x3aaf6b,_0xeef90e=!0x1){const {locale:_0x4907ec}=this['editor'],_0x6ce21=_0x3aaf6b['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0xeef90e&&{'data-table-of-contents-label':getTranslation$e(_0x4907ec,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0xeef90e&&_0x3aaf6b['insert'](_0x3aaf6b['createPositionAt'](_0x6ce21,'end'),_0x3aaf6b['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x3aaf6b['createText'](getTranslation$e(_0x4907ec,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x47644c=_0xeef90e?'':'['+getTranslation$e(_0x4907ec,'Empty\x20heading')+']';let _0x3fca88=_0x6ce21;return this['_currentOutlineDefinitions']['forEach']((_0x538fb2,_0x2500b0,_0x39dfc7)=>{const _0x212609=this['editor']['model']['hasContent'](_0x538fb2['modelElement'],{'ignoreWhitespaces':!0x0}),_0x51e55f=_0x212609?_0x538fb2['text']:_0x47644c,_0x240167=_0x538fb2['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x5b2de0=_0x3aaf6b['createContainerElement']('a',{'href':'#'+_0x240167,...!_0xeef90e&&{'tabindex':'-1'}},[_0x3aaf6b['createText'](_0x51e55f)]),_0x32bcf6=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x3aaf6b['setCustomProperty']('tableOfContentsHeadingIndex',_0x2500b0,_0x5b2de0);const _0x1287ce=_0x3aaf6b['createContainerElement']('li',null,[_0x212609||!_0xeef90e&&_0x32bcf6?_0x5b2de0:_0x3aaf6b['createText']('')]),_0x51124=_0x2500b0?_0x39dfc7[_0x2500b0-0x1]['level']:0x0,_0x39e29c=Math['abs'](_0x538fb2['level']-_0x51124);if(_0x538fb2['level']>_0x51124){const _0x573d59=wrapInList(_0x1287ce,_0x39e29c,_0x3aaf6b);_0x3aaf6b['insert'](_0x3aaf6b['createPositionAt'](_0x3fca88,'end'),_0x573d59);}else{const _0x406370=getOuterListByLevelDifference(_0x3fca88,_0x39e29c);_0x3aaf6b['insert'](_0x3aaf6b['createPositionAt'](_0x406370,'end'),_0x1287ce);}_0x3fca88=_0x1287ce;}),_0x6ce21;}['_handleScrollToHeading'](_0x7fa57f){const _0x3193cb=this['_currentOutlineDefinitions'][_0x7fa57f]['modelElement'];this['editor']['model']['change'](_0x5b4f30=>{_0x5b4f30['setSelection'](_0x3193cb,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0xe9ce0f,_0x3d0107)=>{const _0x482086=_0x3d0107['mapper'],_0x58e944=_0x482086['findMappedViewAncestor'](_0x3d0107['viewPosition']),_0x2ba160=_0x482086['toModelElement'](_0x58e944);_0x2ba160['is']('element','tableOfContents')&&(_0x3d0107['modelPosition']=this['editor']['model']['createPositionAt'](_0x2ba160,0x0),_0xe9ce0f['stop']());};}}function wrapInList(_0x19de9c,_0x2ae085,_0x4c1c00){return 0x1===_0x2ae085?_0x4c1c00['createContainerElement']('ol',null,[_0x19de9c]):_0x4c1c00['createContainerElement']('ol',null,[_0x4c1c00['createContainerElement']('li',null,[wrapInList(_0x19de9c,_0x2ae085-0x1,_0x4c1c00)])]);}function getOuterListByLevelDifference(_0x60a138,_0x422ac4){return _0x60a138['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x93bc70=>_0x93bc70['is']('element','ol'))[_0x422ac4];}async function checkLicense$f(_0x5b6bd0){const _0x5ac224=_0x52180b([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]),_0x7e285f=window[_0x52180b([0x44,0x61,0x74,0x65])][_0x52180b([0x6e,0x6f,0x77])](),_0x1fb582=_0x5b6bd0[_0x52180b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x40f4fc=new window[(_0x52180b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x403a0d=>{_0x1fb582[_0x52180b([0x6f,0x6e,0x63,0x65])](_0x52180b([0x72,0x65,0x61,0x64,0x79]),_0x403a0d);}),_0x542f1a={[_0x52180b([0x6b,0x74,0x79])]:_0x52180b([0x45,0x43]),[_0x52180b([0x75,0x73,0x65])]:_0x52180b([0x73,0x69,0x67]),[_0x52180b([0x63,0x72,0x76])]:_0x52180b([0x50,0x2d,0x32,0x35,0x36]),[_0x52180b([0x78])]:_0x52180b([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]),[_0x52180b([0x79])]:_0x52180b([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]),[_0x52180b([0x61,0x6c,0x67])]:_0x52180b([0x45,0x53,0x32,0x35,0x36])},_0x3cb37f=_0x1fb582[_0x52180b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52180b([0x67,0x65,0x74])](_0x52180b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x145473=await(async function(){let _0x245a08,_0x23e784=null,_0x510fbd=null;try{if(_0x3cb37f==_0x52180b([0x47,0x50,0x4c]))return _0x52180b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x245a08=(function(){const _0x448dc8=_0x3cb37f[_0x52180b([0x73,0x70,0x6c,0x69,0x74])](_0x52180b([0x2e]));if(0x3!=_0x448dc8[_0x52180b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x2ef144=_0x448dc8[0x1];return _0x287c53(_0x2ef144);function _0x287c53(_0x5ac072){const _0x1477ba=_0x4f0713(_0x5ac072);return _0x1477ba&&_0xa9f56e()?_0x1477ba:null;function _0xa9f56e(){const _0x3bbe14=_0x1477ba[_0x52180b([0x6a,0x74,0x69])],_0x4b7ca1=window[_0x52180b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bbe14[_0x52180b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bbe14[_0x52180b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ae41d={..._0x1477ba,[_0x52180b([0x6a,0x74,0x69])]:_0x3bbe14[_0x52180b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3bbe14[_0x52180b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ae41d[_0x52180b([0x76,0x63])],_0x1d7483(_0x3ae41d)==_0x4b7ca1;}}}()),!_0x245a08)return _0x52180b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x245a08[_0x52180b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x510fbd=function(_0x1193ea,_0x16aa41){return new window[(_0x52180b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdbbd8f=>{if(_0x1e9bb3())return _0xdbbd8f(_0x52180b([0x56,0x61,0x6c,0x69,0x64]));_0x2a4170(),_0x1fb582[_0x52180b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52180b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16d35e=!0x1;const _0x163d0c=uid();function _0x405df5(_0x315a8d){return!!_0x315a8d&&(typeof _0x315a8d===_0x52180b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x315a8d===_0x52180b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x315a8d[_0x52180b([0x74,0x68,0x65,0x6e])]===_0x52180b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x315a8d[_0x52180b([0x63,0x61,0x74,0x63,0x68])]===_0x52180b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f3141(_0x502b0a){_0x397ff6(_0x502b0a)[_0x52180b([0x74,0x68,0x65,0x6e])](_0xe0ca03=>{if(!_0xe0ca03||_0xe0ca03[_0x52180b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52180b([0x6f,0x6b]))return _0x52180b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35bedb(_0x1d7483(_0x163d0c+_0x16aa41))!=_0xe0ca03[_0x52180b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52180b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52180b([0x56,0x61,0x6c,0x69,0x64]);})[_0x52180b([0x74,0x68,0x65,0x6e])](_0xe956a9=>(_0x117093(),_0xe956a9),()=>{const _0x488cec=_0x38d1e6();return null==_0x488cec?(_0x117093(),_0x52180b([0x56,0x61,0x6c,0x69,0x64])):_0x52180b(_0x7e285f-_0x488cec>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52180b([0x74,0x68,0x65,0x6e])](_0xdbbd8f)[_0x52180b([0x63,0x61,0x74,0x63,0x68])](()=>{_0xdbbd8f(_0x52180b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x575f40=0x36ee80;function _0x117093(){const _0x40b5e4=_0x52180b([0x6c,0x6c,0x63,0x74,0x2d])+_0x35bedb(_0x1d7483(_0x1193ea)),_0x5d61b0=_0x25cb6f(_0x35bedb(window[_0x52180b([0x4d,0x61,0x74,0x68])][_0x52180b([0x63,0x65,0x69,0x6c])](_0x7e285f/_0x575f40)));window[_0x52180b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52180b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40b5e4,_0x5d61b0);}function _0x38d1e6(){const _0x2279f0=_0x52180b([0x6c,0x6c,0x63,0x74,0x2d])+_0x35bedb(_0x1d7483(_0x1193ea)),_0x5eadff=window[_0x52180b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52180b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2279f0);return _0x5eadff?window[_0x52180b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25cb6f(_0x5eadff),0x10)*_0x575f40:null;}function _0x397ff6(_0x17ee2e){return new window[(_0x52180b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a62c4,_0xda2ae9)=>{_0x17ee2e[_0x52180b([0x74,0x68,0x65,0x6e])](_0x2a62c4,_0xda2ae9),window[_0x52180b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xda2ae9,0x1d4c0);});}}_0x1fb582[_0x52180b([0x6f,0x6e])](_0x52180b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4946ab,_0x1bab80)=>{if(_0x1bab80[0x0]!=_0x1193ea)return _0xdbbd8f(_0x52180b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bab80[0x1]={..._0x1bab80[0x1],[_0x52180b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x163d0c};},{[_0x52180b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52180b([0x68,0x69,0x67,0x68])}),_0x1fb582[_0x52180b([0x6f,0x6e])](_0x52180b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x31d4a4=>{_0x405df5(_0x31d4a4[_0x52180b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16d35e=!0x0,_0x3f3141(_0x31d4a4[_0x52180b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52180b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52180b([0x6c,0x6f,0x77])}),_0x40f4fc[_0x52180b([0x74,0x68,0x65,0x6e])](()=>{_0x16d35e||_0xdbbd8f(_0x52180b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e9bb3(){return _0x1fb582[_0x52180b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52180b([0x76,0x69,0x65,0x77])][_0x52180b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52180b([0x61,0x75,0x74,0x6f]);}function _0x2a4170(){_0x1fb582[_0x52180b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52180b([0x76,0x69,0x65,0x77])][_0x52180b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52180b([0x61,0x75,0x74,0x6f]);}}(_0x245a08[_0x52180b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x245a08[_0x52180b([0x6a,0x74,0x69])]));const _0x1cbec3=await(async function(){let _0x15ae84=!0x0;try{const _0x25b864=_0x3cb37f[_0x52180b([0x73,0x70,0x6c,0x69,0x74])](_0x52180b([0x2e])),[_0x4ec56f,_0x5c45d4,_0x11484f]=_0x25b864;return _0x4396b3(_0x4ec56f),await _0xe6210c(_0x4ec56f,_0x5c45d4,_0x11484f),_0x15ae84;}catch{return!0x1;}function _0x4396b3(_0x41d462){const _0x36e830=_0x4f0713(_0x41d462);_0x36e830&&_0x36e830[_0x52180b([0x61,0x6c,0x67])]==_0x52180b([0x45,0x53,0x32,0x35,0x36])||(_0x15ae84=!0x1);}async function _0xe6210c(_0xdf2c78,_0x3dc44b,_0x59ddd9){const _0x28821d=window[_0x52180b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52180b([0x66,0x72,0x6f,0x6d])](_0x54f853(_0x59ddd9),_0x1c4b57=>_0x1c4b57[_0x52180b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b34ed=new window[(_0x52180b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52180b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xdf2c78+_0x52180b([0x2e])+_0x3dc44b),_0x137f1e=window[_0x52180b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52180b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x137f1e)return;const _0x550c58=await _0x137f1e[_0x52180b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52180b([0x6a,0x77,0x6b]),_0x542f1a,{[_0x52180b([0x6e,0x61,0x6d,0x65])]:_0x52180b([0x45,0x43,0x44,0x53,0x41]),[_0x52180b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52180b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52180b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x137f1e[_0x52180b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52180b([0x6e,0x61,0x6d,0x65])]:_0x52180b([0x45,0x43,0x44,0x53,0x41]),[_0x52180b([0x68,0x61,0x73,0x68])]:{[_0x52180b([0x6e,0x61,0x6d,0x65])]:_0x52180b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x550c58,_0x28821d,_0x4b34ed)||(_0x15ae84=!0x1);}}());return _0x1cbec3?(function(){const _0x337ac6=_0x245a08[_0x52180b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x337ac6)return!0x1;if(_0x337ac6[_0x52180b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52180b([0x2a])))return!0x0;if(_0x337ac6[_0x52180b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52180b([0x54,0x4f,0x43])))return!0x0;if(_0x337ac6[_0x52180b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52180b([0x50,0x50])))return!0x0;if(_0x337ac6[_0x52180b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52180b([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x52180b([0x67,0x6c,0x6f,0x62])]&&window[_0x52180b([0x67,0x6c,0x6f,0x62])][_0x52180b([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x1b2c43=[_0x52180b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52180b([0x74,0x72,0x69,0x61,0x6c])][_0x52180b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x245a08[_0x52180b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7e285f/0x3e8:0x69cb0e80;return _0x245a08[_0x52180b([0x65,0x78,0x70])]<_0x1b2c43;}())?_0x52180b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x4617f3=_0x245a08[_0x52180b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4617f3||0x0==_0x4617f3[_0x52180b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3b55f3}=new URL(window[_0x52180b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4617f3[_0x52180b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b55f3))return!0x0;const _0x3735d2=_0x3b55f3[_0x52180b([0x73,0x70,0x6c,0x69,0x74])](_0x52180b([0x2e]));return _0x4617f3[_0x52180b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27afc6=>_0x27afc6[_0x52180b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52180b([0x2a])))[_0x52180b([0x6d,0x61,0x70])](_0x59e02d=>_0x59e02d[_0x52180b([0x73,0x70,0x6c,0x69,0x74])](_0x52180b([0x2e])))[_0x52180b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a2c23=>_0x1a2c23[_0x52180b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3735d2[_0x52180b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52180b([0x6d,0x61,0x70])](_0x2c8aa3=>Array(_0x3735d2[_0x52180b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c8aa3[_0x52180b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52180b([0x66,0x69,0x6c,0x6c])](_0x2c8aa3[0x0]===_0x52180b([0x2a])?_0x52180b([0x2a]):'')[_0x52180b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c8aa3))[_0x52180b([0x73,0x6f,0x6d,0x65])](_0x46a896=>_0x3735d2[_0x52180b([0x65,0x76,0x65,0x72,0x79])]((_0x52e223,_0x4a5f78)=>_0x46a896[_0x4a5f78]===_0x52e223||_0x46a896[_0x4a5f78]===_0x52180b([0x2a])));}())?(_0x245a08[_0x52180b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52180b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x23e784=function(_0xd38cc3){const _0x305c1b=new window[(_0x52180b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a0365=>setTimeout(_0x1a0365,0x93ecc)),_0x14807d=_0x40f4fc[_0x52180b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52180b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e669b=>{let _0x434a0b=0x0;_0x1fb582[_0x52180b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52180b([0x6f,0x6e])](_0x52180b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x174e7c,_0x100dad)=>{_0x100dad[0x0][_0x52180b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x434a0b++,0x5e8==_0x434a0b&&(_0x5e669b(),_0x174e7c[_0x52180b([0x6f,0x66,0x66])]());});})),_0x663491=[_0x305c1b,_0x14807d];return window[_0x52180b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52180b([0x72,0x61,0x63,0x65])](_0x663491)[_0x52180b([0x74,0x68,0x65,0x6e])](()=>_0xd38cc3);}(_0x52180b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x23e784&&_0x510fbd)return new window[(_0x52180b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dcc15,_0x2bf627)=>{_0x23e784[_0x52180b([0x74,0x68,0x65,0x6e])](_0x1dcc15,_0x2bf627),_0x510fbd[_0x52180b([0x74,0x68,0x65,0x6e])](_0xd21a7e=>{_0xd21a7e!=_0x52180b([0x56,0x61,0x6c,0x69,0x64])&&_0x1dcc15(_0xd21a7e);},_0x2bf627);});return _0x23e784||_0x510fbd||_0x52180b([0x56,0x61,0x6c,0x69,0x64]);}())):_0x52180b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52180b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52180b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x52180b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x4f0713(_0x4c6ba9){return _0x4c6ba9[_0x52180b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52180b([0x65,0x79]))?JSON[_0x52180b([0x70,0x61,0x72,0x73,0x65])](_0x54f853(_0x4c6ba9)):null;}function _0x54f853(_0x4a3860){return window[_0x52180b([0x61,0x74,0x6f,0x62])](_0x4a3860[_0x52180b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52180b([0x2b]))[_0x52180b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52180b([0x2f])));}function _0x1d7483(_0x9dc842){let _0x1c3e0e=0x1505;function _0x3817b1(_0x5c26bd){for(let _0x1eae29=0x0;_0x1eae29<_0x5c26bd[_0x52180b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1eae29++){const _0x3cb9a7=_0x5c26bd[_0x52180b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1eae29);_0x1c3e0e=(_0x1c3e0e<<0x5)+_0x1c3e0e+_0x3cb9a7,_0x1c3e0e&=_0x1c3e0e;}}return function _0x3a1e03(_0x124802){Array[_0x52180b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x124802)?_0x124802[_0x52180b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a1e03):_0x124802&&typeof _0x124802==_0x52180b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52180b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x124802)[_0x52180b([0x73,0x6f,0x72,0x74])]()[_0x52180b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x457c57,_0x79e4a1])=>{_0x3817b1(_0x457c57),_0x3a1e03(_0x79e4a1);}):_0x3817b1(window[_0x52180b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x124802));}(_0x9dc842),_0x1c3e0e>>>0x0;}function _0x35bedb(_0x2ad076){return _0x2ad076[_0x52180b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52180b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52180b([0x30]));}function _0x25cb6f(_0x456baf){return _0x456baf[_0x52180b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52180b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52180b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3803da(){}function _0x52180b(_0x47ea3f){return _0x47ea3f['map'](_0x3d2ea6=>String['fromCharCode'](_0x3d2ea6))['join']('');}!function(_0x7b5eff){const _0x1f6ae3=(function(){const _0x124fd6=window[_0x52180b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52180b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52180b([0x6e,0x6f,0x77])]())[_0x52180b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52180b([0x2e]),'');let _0x1350fb=_0x52180b([0x6d]);for(let _0x432612=0x0;_0x432612<_0x124fd6[_0x52180b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x432612+=0x2){let _0x431ff5=window[_0x52180b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x124fd6[_0x52180b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x432612,_0x432612+0x2));_0x431ff5>=_0x5ac224[_0x52180b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x431ff5-=_0x5ac224[_0x52180b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1350fb+=_0x5ac224[_0x431ff5];}return _0x1350fb;}());_0x1fb582[_0x1f6ae3]=_0x52180b([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])+_0x7b5eff,_0x7b5eff!=_0x52180b([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x40f4fc,_0x1fb582[_0x52180b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52180b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3803da,_0x1fb582[_0x52180b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52180b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3803da,_0x1fb582[_0x52180b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52180b([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x145473);}class TableOfContentsUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4a502e=this['editor'];_0x4a502e['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x8cda45=this['_createButton'](ButtonView);return _0x8cda45['tooltip']=!0x0,_0x8cda45;}),_0x4a502e['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](MenuBarMenuListItemButtonView)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x44e07c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30af9f;for(const _0x3cc4e0 in _0x44e07c){const _0x340d73=_0x3cc4e0,_0x2ac610=_0x44e07c[_0x340d73];if('tableOfContentsLicenseKeyValid'==_0x2ac610||'tableOfContentsLicenseKeyInvalid'==_0x2ac610||'tableOfContentsLicenseKeyExpired'==_0x2ac610||'tableOfContentsLicenseKeyDomainLimit'==_0x2ac610||'tableOfContentsLicenseKeyNotAllowed'==_0x2ac610||'tableOfContentsLicenseKeyEvaluationLimit'==_0x2ac610||'tableOfContentsLicenseKeyUsageLimit'==_0x2ac610){delete _0x44e07c[_0x340d73],_0x30af9f=_0x2ac610,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x30af9f&&_0x44e07c['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x30af9f&&_0x44e07c['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x30af9f&&_0x44e07c['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x30af9f&&_0x44e07c['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x30af9f&&_0x44e07c['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x30af9f&&_0x44e07c['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x1cf0f7){const _0x269308=this['editor'],_0x46210f=_0x269308['locale'],_0x187a07=_0x269308['commands']['get']('insertTableOfContents'),_0x44c48a=new _0x1cf0f7(_0x46210f);return _0x44c48a['set']({'label':getTranslation$e(_0x46210f,'Table\x20of\x20contents'),'icon':IconTableOfContents}),_0x44c48a['bind']('isEnabled')['to'](_0x187a07,'isEnabled'),this['listenTo'](_0x44c48a,'execute',()=>{_0x269308['execute']('insertTableOfContents'),_0x269308['editing']['view']['focus']();}),_0x44c48a;}['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(_0x5c14e1){super(_0x5c14e1),_0x5c14e1['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}['afterInit'](){checkLicense$e(this);}['_logSuppressibleWarning'](_0x95ed28,_0x5114da){if(this['_isSuppressedLog'](_0x95ed28,_0x5114da))return;const _0x2c6c2c=BASE_DOCUMENTATION_URL+'/support/error-codes.html#error-'+_0x95ed28;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x95ed28,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x5114da?[_0x5114da]:[],'\x0aRead\x20more:\x20'+_0x2c6c2c);}['_logSuppressibleInfo'](_0x30c6d,_0x579112,_0x1c79a4){if(this['_isSuppressedLog'](_0x30c6d))return;let _0x2d7ac7=_0x579112;_0x1c79a4&&(_0x2d7ac7+='\x0aRead\x20more:\x20'+(BASE_DOCUMENTATION_URL+'/'+_0x1c79a4)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x30c6d,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x2d7ac7);}['_checkUnsupportedPlugin'](_0x1dfb41,_0x157a6f){this['editor']['plugins']['has'](_0x1dfb41)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x1dfb41,..._0x157a6f});}['_validateConfigColorValue'](_0x5754a7){const _0x4f68d2=this['editor']['config']['get'](_0x5754a7);if(!_0x4f68d2)return;const _0x2d1107=Array['isArray'](_0x4f68d2),_0x698677=_0x2d1107?_0x4f68d2:[_0x4f68d2];for(const [_0x590c7b,_0x5a4a09]of _0x698677['entries']()){const _0x2030b5='string'==typeof _0x5a4a09?_0x5a4a09:_0x5a4a09['color'];isUnsupportedEmailColorValue(_0x2030b5)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x2d1107?_0x5754a7+'['+_0x590c7b+']':_0x5754a7,'color':_0x2030b5});}}['_validateConfigColorFormat'](_0x347395){const _0x25f307=this['editor']['config']['get'](_0x347395);_0x25f307&&isUnsupportedEmailColorFormat(_0x25f307)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x347395,'format':_0x25f307});}['_isSuppressedLog'](_0x712f03,_0x368544){const _0xecdc12=this['editor']['config']['get']('email.logs');return!!_0xecdc12['suppressAll']||(!('function'!=typeof _0xecdc12['suppress']||!_0xecdc12['suppress'](_0x712f03,_0x368544))||!(!Array['isArray'](_0xecdc12['suppress'])||!_0xecdc12['suppress']['includes'](_0x712f03)));}}const UNSUPPORTED_COLOR_FORMATS=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function isUnsupportedEmailColorValue(_0x1ede34){return!!_0x1ede34&&UNSUPPORTED_COLOR_FORMATS['some'](_0x2f436a=>_0x1ede34['includes'](_0x2f436a+'('));}function isUnsupportedEmailColorFormat(_0x5c38b1){return!!_0x5c38b1&&UNSUPPORTED_COLOR_FORMATS['includes'](_0x5c38b1);}async function checkLicense$e(_0x4867b9){const _0x5e2a38=_0xd7044a([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]),_0x35b4cc=window[_0xd7044a([0x44,0x61,0x74,0x65])][_0xd7044a([0x6e,0x6f,0x77])](),_0x470824=_0x4867b9[_0xd7044a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x43345b=new window[(_0xd7044a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2de570=>{_0x470824[_0xd7044a([0x6f,0x6e,0x63,0x65])](_0xd7044a([0x72,0x65,0x61,0x64,0x79]),_0x2de570);}),_0x59d246={[_0xd7044a([0x6b,0x74,0x79])]:_0xd7044a([0x45,0x43]),[_0xd7044a([0x75,0x73,0x65])]:_0xd7044a([0x73,0x69,0x67]),[_0xd7044a([0x63,0x72,0x76])]:_0xd7044a([0x50,0x2d,0x32,0x35,0x36]),[_0xd7044a([0x78])]:_0xd7044a([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]),[_0xd7044a([0x79])]:_0xd7044a([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]),[_0xd7044a([0x61,0x6c,0x67])]:_0xd7044a([0x45,0x53,0x32,0x35,0x36])},_0x2eec66=_0x470824[_0xd7044a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd7044a([0x67,0x65,0x74])](_0xd7044a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x150c1d=await(async function(){let _0x71994,_0x4ecb45=null,_0x25cf19=null;try{if(_0x2eec66==_0xd7044a([0x47,0x50,0x4c]))return _0xd7044a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x71994=(function(){const _0x1b66aa=_0x2eec66[_0xd7044a([0x73,0x70,0x6c,0x69,0x74])](_0xd7044a([0x2e]));if(0x3!=_0x1b66aa[_0xd7044a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x518d3b=_0x1b66aa[0x1];return _0x4536da(_0x518d3b);function _0x4536da(_0x58ca6e){const _0x5e80a2=_0x4e1922(_0x58ca6e);return _0x5e80a2&&_0x52797b()?_0x5e80a2:null;function _0x52797b(){const _0x7fc11c=_0x5e80a2[_0xd7044a([0x6a,0x74,0x69])],_0xa8cbc9=window[_0xd7044a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7fc11c[_0xd7044a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7fc11c[_0xd7044a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7afb1f={..._0x5e80a2,[_0xd7044a([0x6a,0x74,0x69])]:_0x7fc11c[_0xd7044a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x7fc11c[_0xd7044a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7afb1f[_0xd7044a([0x76,0x63])],_0x18434c(_0x7afb1f)==_0xa8cbc9;}}}()),!_0x71994)return _0xd7044a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x71994[_0xd7044a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25cf19=function(_0x12c360,_0x214116){return new window[(_0xd7044a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29e3d0=>{if(_0x4d1969())return _0x29e3d0(_0xd7044a([0x56,0x61,0x6c,0x69,0x64]));_0x394215(),_0x470824[_0xd7044a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd7044a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x168d90=!0x1;const _0x263eac=uid();function _0x2a1a60(_0xdc6492){return!!_0xdc6492&&(typeof _0xdc6492===_0xd7044a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xdc6492===_0xd7044a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xdc6492[_0xd7044a([0x74,0x68,0x65,0x6e])]===_0xd7044a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xdc6492[_0xd7044a([0x63,0x61,0x74,0x63,0x68])]===_0xd7044a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ec559(_0x56c9f2){_0x2b1275(_0x56c9f2)[_0xd7044a([0x74,0x68,0x65,0x6e])](_0x3a8c5c=>{if(!_0x3a8c5c||_0x3a8c5c[_0xd7044a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd7044a([0x6f,0x6b]))return _0xd7044a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48000b(_0x18434c(_0x263eac+_0x214116))!=_0x3a8c5c[_0xd7044a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd7044a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd7044a([0x56,0x61,0x6c,0x69,0x64]);})[_0xd7044a([0x74,0x68,0x65,0x6e])](_0x40bdf0=>(_0x238bc9(),_0x40bdf0),()=>{const _0x35f435=_0xf106ab();return null==_0x35f435?(_0x238bc9(),_0xd7044a([0x56,0x61,0x6c,0x69,0x64])):_0xd7044a(_0x35b4cc-_0x35f435>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd7044a([0x74,0x68,0x65,0x6e])](_0x29e3d0)[_0xd7044a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29e3d0(_0xd7044a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54be9a=0x36ee80;function _0x238bc9(){const _0x56c7fb=_0xd7044a([0x6c,0x6c,0x63,0x74,0x2d])+_0x48000b(_0x18434c(_0x12c360)),_0x35b268=_0x3bbdf9(_0x48000b(window[_0xd7044a([0x4d,0x61,0x74,0x68])][_0xd7044a([0x63,0x65,0x69,0x6c])](_0x35b4cc/_0x54be9a)));window[_0xd7044a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd7044a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56c7fb,_0x35b268);}function _0xf106ab(){const _0x5248ab=_0xd7044a([0x6c,0x6c,0x63,0x74,0x2d])+_0x48000b(_0x18434c(_0x12c360)),_0x27cf76=window[_0xd7044a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd7044a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5248ab);return _0x27cf76?window[_0xd7044a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bbdf9(_0x27cf76),0x10)*_0x54be9a:null;}function _0x2b1275(_0x8ac0fd){return new window[(_0xd7044a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b967e,_0x743864)=>{_0x8ac0fd[_0xd7044a([0x74,0x68,0x65,0x6e])](_0x1b967e,_0x743864),window[_0xd7044a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x743864,0x1d4c0);});}}_0x470824[_0xd7044a([0x6f,0x6e])](_0xd7044a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x104336,_0x89f10f)=>{if(_0x89f10f[0x0]!=_0x12c360)return _0x29e3d0(_0xd7044a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x89f10f[0x1]={..._0x89f10f[0x1],[_0xd7044a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x263eac};},{[_0xd7044a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd7044a([0x68,0x69,0x67,0x68])}),_0x470824[_0xd7044a([0x6f,0x6e])](_0xd7044a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c851d=>{_0x2a1a60(_0x4c851d[_0xd7044a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x168d90=!0x0,_0x4ec559(_0x4c851d[_0xd7044a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd7044a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd7044a([0x6c,0x6f,0x77])}),_0x43345b[_0xd7044a([0x74,0x68,0x65,0x6e])](()=>{_0x168d90||_0x29e3d0(_0xd7044a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d1969(){return _0x470824[_0xd7044a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd7044a([0x76,0x69,0x65,0x77])][_0xd7044a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd7044a([0x61,0x75,0x74,0x6f]);}function _0x394215(){_0x470824[_0xd7044a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd7044a([0x76,0x69,0x65,0x77])][_0xd7044a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd7044a([0x61,0x75,0x74,0x6f]);}}(_0x71994[_0xd7044a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x71994[_0xd7044a([0x6a,0x74,0x69])]));const _0x323be2=await(async function(){let _0x599a04=!0x0;try{const _0x34c403=_0x2eec66[_0xd7044a([0x73,0x70,0x6c,0x69,0x74])](_0xd7044a([0x2e])),[_0x370dd6,_0x2e1e3e,_0x21bcb7]=_0x34c403;return _0x57bbe4(_0x370dd6),await _0x3d68b7(_0x370dd6,_0x2e1e3e,_0x21bcb7),_0x599a04;}catch{return!0x1;}function _0x57bbe4(_0x1cae5f){const _0x51bde2=_0x4e1922(_0x1cae5f);_0x51bde2&&_0x51bde2[_0xd7044a([0x61,0x6c,0x67])]==_0xd7044a([0x45,0x53,0x32,0x35,0x36])||(_0x599a04=!0x1);}async function _0x3d68b7(_0x32872c,_0x14fc49,_0x2ffb69){const _0x2b87e9=window[_0xd7044a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd7044a([0x66,0x72,0x6f,0x6d])](_0x503523(_0x2ffb69),_0x4d1933=>_0x4d1933[_0xd7044a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x95b35c=new window[(_0xd7044a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd7044a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32872c+_0xd7044a([0x2e])+_0x14fc49),_0x36e688=window[_0xd7044a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd7044a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36e688)return;const _0x599776=await _0x36e688[_0xd7044a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd7044a([0x6a,0x77,0x6b]),_0x59d246,{[_0xd7044a([0x6e,0x61,0x6d,0x65])]:_0xd7044a([0x45,0x43,0x44,0x53,0x41]),[_0xd7044a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd7044a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd7044a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36e688[_0xd7044a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd7044a([0x6e,0x61,0x6d,0x65])]:_0xd7044a([0x45,0x43,0x44,0x53,0x41]),[_0xd7044a([0x68,0x61,0x73,0x68])]:{[_0xd7044a([0x6e,0x61,0x6d,0x65])]:_0xd7044a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x599776,_0x2b87e9,_0x95b35c)||(_0x599a04=!0x1);}}());return _0x323be2?(function(){const _0x51ad8d=_0x71994[_0xd7044a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x51ad8d)return!0x1;if(_0x51ad8d[_0xd7044a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd7044a([0x2a])))return!0x0;if(_0x51ad8d[_0xd7044a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd7044a([0x45,0x43,0x48])))return!0x0;return!0x1;}())?(function(){const _0x1d4230=[_0xd7044a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd7044a([0x74,0x72,0x69,0x61,0x6c])][_0xd7044a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71994[_0xd7044a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x35b4cc/0x3e8:0x69cb0e80;return _0x71994[_0xd7044a([0x65,0x78,0x70])]<_0x1d4230;}())?_0xd7044a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x257824=_0x71994[_0xd7044a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x257824||0x0==_0x257824[_0xd7044a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16afff}=new URL(window[_0xd7044a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x257824[_0xd7044a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16afff))return!0x0;const _0x3e8251=_0x16afff[_0xd7044a([0x73,0x70,0x6c,0x69,0x74])](_0xd7044a([0x2e]));return _0x257824[_0xd7044a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x476758=>_0x476758[_0xd7044a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd7044a([0x2a])))[_0xd7044a([0x6d,0x61,0x70])](_0x3d2d00=>_0x3d2d00[_0xd7044a([0x73,0x70,0x6c,0x69,0x74])](_0xd7044a([0x2e])))[_0xd7044a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2afd67=>_0x2afd67[_0xd7044a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3e8251[_0xd7044a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd7044a([0x6d,0x61,0x70])](_0x3f6c1b=>Array(_0x3e8251[_0xd7044a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3f6c1b[_0xd7044a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd7044a([0x66,0x69,0x6c,0x6c])](_0x3f6c1b[0x0]===_0xd7044a([0x2a])?_0xd7044a([0x2a]):'')[_0xd7044a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3f6c1b))[_0xd7044a([0x73,0x6f,0x6d,0x65])](_0x53a14d=>_0x3e8251[_0xd7044a([0x65,0x76,0x65,0x72,0x79])]((_0x528ca0,_0x3bb75b)=>_0x53a14d[_0x3bb75b]===_0x528ca0||_0x53a14d[_0x3bb75b]===_0xd7044a([0x2a])));}())?(_0x71994[_0xd7044a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd7044a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4ecb45=function(_0x3aaea7){const _0x517279=new window[(_0xd7044a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1debef=>setTimeout(_0x1debef,0x93ecc)),_0xd5801c=_0x43345b[_0xd7044a([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd7044a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55dc6a=>{let _0x9ae22=0x0;_0x470824[_0xd7044a([0x6d,0x6f,0x64,0x65,0x6c])][_0xd7044a([0x6f,0x6e])](_0xd7044a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3ee484,_0x3f25e0)=>{_0x3f25e0[0x0][_0xd7044a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9ae22++,0x5e8==_0x9ae22&&(_0x55dc6a(),_0x3ee484[_0xd7044a([0x6f,0x66,0x66])]());});})),_0x2da0d3=[_0x517279,_0xd5801c];return window[_0xd7044a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd7044a([0x72,0x61,0x63,0x65])](_0x2da0d3)[_0xd7044a([0x74,0x68,0x65,0x6e])](()=>_0x3aaea7);}(_0xd7044a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x4ecb45&&_0x25cf19)return new window[(_0xd7044a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x235a0c,_0x4f4d82)=>{_0x4ecb45[_0xd7044a([0x74,0x68,0x65,0x6e])](_0x235a0c,_0x4f4d82),_0x25cf19[_0xd7044a([0x74,0x68,0x65,0x6e])](_0x20ae10=>{_0x20ae10!=_0xd7044a([0x56,0x61,0x6c,0x69,0x64])&&_0x235a0c(_0x20ae10);},_0x4f4d82);});return _0x4ecb45||_0x25cf19||_0xd7044a([0x56,0x61,0x6c,0x69,0x64]);}())):_0xd7044a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd7044a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd7044a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd7044a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x4e1922(_0x2c5409){return _0x2c5409[_0xd7044a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd7044a([0x65,0x79]))?JSON[_0xd7044a([0x70,0x61,0x72,0x73,0x65])](_0x503523(_0x2c5409)):null;}function _0x503523(_0x96ddef){return window[_0xd7044a([0x61,0x74,0x6f,0x62])](_0x96ddef[_0xd7044a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd7044a([0x2b]))[_0xd7044a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd7044a([0x2f])));}function _0x18434c(_0x42893f){let _0x338c6f=0x1505;function _0x17aa2a(_0x4bb83a){for(let _0x923115=0x0;_0x923115<_0x4bb83a[_0xd7044a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x923115++){const _0x48ec61=_0x4bb83a[_0xd7044a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x923115);_0x338c6f=(_0x338c6f<<0x5)+_0x338c6f+_0x48ec61,_0x338c6f&=_0x338c6f;}}return function _0x5eb80d(_0x541a6f){Array[_0xd7044a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x541a6f)?_0x541a6f[_0xd7044a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5eb80d):_0x541a6f&&typeof _0x541a6f==_0xd7044a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd7044a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x541a6f)[_0xd7044a([0x73,0x6f,0x72,0x74])]()[_0xd7044a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x665b02,_0x214722])=>{_0x17aa2a(_0x665b02),_0x5eb80d(_0x214722);}):_0x17aa2a(window[_0xd7044a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x541a6f));}(_0x42893f),_0x338c6f>>>0x0;}function _0x48000b(_0x2e45f2){return _0x2e45f2[_0xd7044a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd7044a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd7044a([0x30]));}function _0x3bbdf9(_0x525a23){return _0x525a23[_0xd7044a([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd7044a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd7044a([0x6a,0x6f,0x69,0x6e])]('');}function _0x5dd139(){}function _0xd7044a(_0x324a8b){return _0x324a8b['map'](_0x48fe4a=>String['fromCharCode'](_0x48fe4a))['join']('');}!function(_0x3c8997){const _0x44050c=(function(){const _0xb9de66=window[_0xd7044a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd7044a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd7044a([0x6e,0x6f,0x77])]())[_0xd7044a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd7044a([0x2e]),'');let _0x23b47e=_0xd7044a([0x75]);for(let _0x1af0f4=0x0;_0x1af0f4<_0xb9de66[_0xd7044a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1af0f4+=0x2){let _0x59650e=window[_0xd7044a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb9de66[_0xd7044a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1af0f4,_0x1af0f4+0x2));_0x59650e>=_0x5e2a38[_0xd7044a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x59650e-=_0x5e2a38[_0xd7044a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23b47e+=_0x5e2a38[_0x59650e];}return _0x23b47e;}());_0x470824[_0x44050c]=_0xd7044a([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])+_0x3c8997,_0x3c8997!=_0xd7044a([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x43345b,_0x470824[_0xd7044a([0x6d,0x6f,0x64,0x65,0x6c])][_0xd7044a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5dd139,_0x470824[_0xd7044a([0x6d,0x6f,0x64,0x65,0x6c])][_0xd7044a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5dd139,_0x470824[_0xd7044a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd7044a([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x150c1d);}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(_0x347677){var _0x51fd8a,_0x2173d9,_0x1ddc06,_0x4e5098,_0x15e29e=[];for(_0x1ddc06=0x0,_0x4e5098=(_0x51fd8a=_0x347677['split'](','))['length'];_0x1ddc06<_0x4e5098;_0x1ddc06+=0x1)(_0x2173d9=_0x51fd8a[_0x1ddc06])['length']>0x0&&_0x15e29e['push'](calculateSingle(_0x2173d9));return _0x15e29e;},calculateSingle=function(_0x3fbfc0){var _0x1f935b,_0x321ff8,_0xccdb71=_0x3fbfc0,_0x422788={'a':0x0,'b':0x0,'c':0x0},_0x2bb6cf=[];return _0x1f935b=function(_0x4b764e,_0x58a3d8){var _0x43a307,_0x4de77e,_0x55ecec,_0x35601e,_0x497ac8,_0x309667;if(_0x4b764e['test'](_0xccdb71)){for(_0x4de77e=0x0,_0x55ecec=(_0x43a307=_0xccdb71['match'](_0x4b764e))['length'];_0x4de77e<_0x55ecec;_0x4de77e+=0x1)_0x422788[_0x58a3d8]+=0x1,_0x35601e=_0x43a307[_0x4de77e],_0x497ac8=_0xccdb71['indexOf'](_0x35601e),_0x309667=_0x35601e['length'],_0x2bb6cf['push']({'selector':_0x3fbfc0['substr'](_0x497ac8,_0x309667),'type':_0x58a3d8,'index':_0x497ac8,'length':_0x309667}),_0xccdb71=_0xccdb71['replace'](_0x35601e,Array(_0x309667+0x1)['join']('\x20'));}},_0x321ff8=function(_0x123e76){var _0x58399f,_0x41e991,_0x39b006,_0x558a81;if(_0x123e76['test'](_0xccdb71)){for(_0x41e991=0x0,_0x39b006=(_0x58399f=_0xccdb71['match'](_0x123e76))['length'];_0x41e991<_0x39b006;_0x41e991+=0x1)_0x558a81=_0x58399f[_0x41e991],_0xccdb71=_0xccdb71['replace'](_0x558a81,Array(_0x558a81['length']+0x1)['join']('A'));}},_0x321ff8(/\\[0-9A-Fa-f]{6}\s?/g),_0x321ff8(/\\[0-9A-Fa-f]{1,5}\s/g),_0x321ff8(/\\./g),(function(){var _0x332211,_0x11f169,_0x514721,_0x433a39,_0x363ca9=/{[^]*/gm;if(_0x363ca9['test'](_0xccdb71)){for(_0x11f169=0x0,_0x514721=(_0x332211=_0xccdb71['match'](_0x363ca9))['length'];_0x11f169<_0x514721;_0x11f169+=0x1)_0x433a39=_0x332211[_0x11f169],_0xccdb71=_0xccdb71['replace'](_0x433a39,Array(_0x433a39['length']+0x1)['join']('\x20'));}}()),_0x1f935b(/(\[[^\]]+\])/g,'b'),_0x1f935b(/(#[^\#\s\+>~\.\[:\)]+)/g,'a'),_0x1f935b(/(\.[^\s\+>~\.\[:\)]+)/g,'b'),_0x1f935b(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,'c'),_0x1f935b(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,'b'),_0x1f935b(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,'b'),_0xccdb71=(_0xccdb71=(_0xccdb71=(_0xccdb71=(_0xccdb71=(_0xccdb71=_0xccdb71['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'),_0x1f935b(/([^\s\+>~\.\[:]+)/g,'c'),_0x2bb6cf['sort'](function(_0x2c1c48,_0x2b1787){return _0x2c1c48['index']-_0x2b1787['index'];}),{'selector':_0x3fbfc0,'specificity':'0,'+_0x422788['a']['toString']()+','+_0x422788['b']['toString']()+','+_0x422788['c']['toString'](),'specificityArray':[0x0,_0x422788['a'],_0x422788['b'],_0x422788['c']],'parts':_0x2bb6cf};},compare$1=function(_0x56855c,_0x205afe){var _0x449a65,_0x22c9ff,_0xbd63e5;if('string'==typeof _0x56855c){if(-0x1!==_0x56855c['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x449a65=calculateSingle(_0x56855c)['specificityArray'];}else{if(!Array['isArray'](_0x56855c))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0x56855c['filter'](function(_0x879049){return'number'==typeof _0x879049;})['length'])throw'Invalid\x20specificity\x20array';_0x449a65=_0x56855c;}if('string'==typeof _0x205afe){if(-0x1!==_0x205afe['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x22c9ff=calculateSingle(_0x205afe)['specificityArray'];}else{if(!Array['isArray'](_0x205afe))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0x205afe['filter'](function(_0x5dae00){return'number'==typeof _0x5dae00;})['length'])throw'Invalid\x20specificity\x20array';_0x22c9ff=_0x205afe;}for(_0xbd63e5=0x0;_0xbd63e5<0x4;_0xbd63e5+=0x1){if(_0x449a65[_0xbd63e5]<_0x22c9ff[_0xbd63e5])return-0x1;if(_0x449a65[_0xbd63e5]>_0x22c9ff[_0xbd63e5])return 0x1;}return 0x0;};function splitByTopLevelComma(_0x4f1611){const _0x5e0e16=[];let _0x44342a='',_0x57265f=0x0;for(;_0x57265f<_0x4f1611['length'];){const _0x53e132=_0x4f1611[_0x57265f];if('('===_0x53e132){const _0x3c3f24=findMatchingParenthesis(_0x4f1611,_0x57265f+0x1);if(-0x1===_0x3c3f24)return[];_0x44342a+=_0x4f1611['slice'](_0x57265f,_0x3c3f24+0x1),_0x57265f=_0x3c3f24+0x1;}else','!==_0x53e132||_0x44342a['endsWith']('\x5c')?(_0x44342a+=_0x53e132,_0x57265f++):(_0x5e0e16['push'](_0x44342a['trim']()),_0x44342a='',_0x57265f++);}return _0x44342a['trim']()&&_0x5e0e16['push'](_0x44342a['trim']()),_0x5e0e16['filter'](Boolean);}function findMatchingParenthesis(_0xe981e9,_0x255875){let _0x5d0c93=0x1;for(let _0x327855=_0x255875;_0x327855<_0xe981e9['length'];_0x327855++){const _0x30ff85=_0xe981e9[_0x327855];if('('===_0x30ff85)_0x5d0c93++;else{if(')'===_0x30ff85&&(_0x5d0c93--,0x0===_0x5d0c93))return _0x327855;}}return-0x1;}function dropImportantStyleSuffix(_0x1c4ab9){return _0x1c4ab9['replace'](/!\s*important/i,'')['trim']();}function collectRootStylesheetsVariables(_0x2889b3){const _0x18a746=new Map();for(const {stylesMap:_0x490a6e,flatSelector:_0x52962b}of _0x2889b3){if(':root'!==_0x52962b)continue;const _0x1ed288=inlineStylesMapCSSVariables(_0x18a746['get']['bind'](_0x18a746),_0x490a6e);for(const [_0x28c60e,_0x4243f1]of _0x1ed288)_0x18a746['set'](_0x28c60e,_0x4243f1);}return _0x18a746;}function inlineStylesMapCSSVariables(_0x5a1f1e,_0x16dcc0){const _0x1e6f8a=new Map(),_0x639bd3=_0x469a5a=>_0x1e6f8a['has'](_0x469a5a)?_0x1e6f8a['get'](_0x469a5a):_0x5a1f1e(_0x469a5a);for(const [_0x16a6dc,_0x540a59]of _0x16dcc0['getStylesEntries']())if(_0x540a59&&_0x16a6dc['startsWith']('--')){const _0x4d2df5=inlineCSSVariablesInString(_0x639bd3,_0x540a59);_0x1e6f8a['set'](_0x16a6dc,_0x4d2df5),_0x16dcc0['remove'](_0x16a6dc);}for(const [_0x314c19,_0x31cb97]of _0x16dcc0['getStylesEntries']())if(_0x31cb97){const _0x3d4d2d=inlineCSSVariablesInString(_0x639bd3,_0x31cb97);_0x16dcc0['set'](_0x314c19,_0x3d4d2d);}return _0x1e6f8a;}function inlineCSSVariablesInString(_0x3d7381,_0xeeef80){return resolveCSSVariables(_0xeeef80,_0x3f44a2=>{const [_0x30246e,_0x3f688b]=splitByTopLevelComma(_0x3f44a2),_0x57c04f=_0x3d7381(_0x30246e);return void 0x0!==_0x57c04f?_0x57c04f:_0x3f688b?inlineCSSVariablesInString(_0x3d7381,_0x3f688b):'var('+_0x30246e+')';});}function resolveCSSVariables(_0x488d46,_0x1015ce){let _0x20ef68='',_0x17afb3=0x0;for(;_0x17afb3<_0x488d46['length'];){const _0x23c358=_0x488d46['indexOf']('var(',_0x17afb3);if(-0x1===_0x23c358){_0x20ef68+=_0x488d46['slice'](_0x17afb3);break;}_0x20ef68+=_0x488d46['slice'](_0x17afb3,_0x23c358);const _0xa38cba=_0x23c358+0x4,_0x32737e=findMatchingParenthesis(_0x488d46,_0xa38cba);_0x20ef68+=_0x1015ce(_0x488d46['substring'](_0xa38cba,_0x32737e)),_0x17afb3=_0x32737e+0x1;}return _0x20ef68;}async function collectAndProcessStylesheets(_0x52b988){const _0x45d9ea=[await collectStylesheets(_0x52b988['stylesheets']),_0x52b988['inlineCss']]['filter'](_0x4991d3=>_0x4991d3&&_0x4991d3['length'])['join']('\x0a'),_0x2d09eb=await convertRawStylesheetToParsedCSSRules(_0x52b988['stylesProcessor'],_0x45d9ea);return{'parsedCssRules':_0x2d09eb,'rootCssVariables':collectRootStylesheetsVariables(_0x2d09eb)};}async function convertRawStylesheetToParsedCSSRules(_0x3d1ac5,_0x2ca303){const _0x15dbad=new CSSStyleSheet();return await _0x15dbad['replace'](_0x2ca303),dropCSSNesting(Array['from'](_0x15dbad['cssRules'])['filter'](_0x462477=>_0x462477 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x32b4ec,contentCssText:_0x5b2dd2})=>{const _0x2f54bd=splitByTopLevelComma(_0x32b4ec),_0x5a499e=new StylesMap(_0x3d1ac5)['setTo'](_0x5b2dd2);return _0x2f54bd['map'](_0x139f7e=>{const _0x334aed=dropWherePseudoClasses(_0x139f7e),_0x136e6c=_0x334aed?calculate(_0x334aed)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x5a499e,'flatSelector':_0x139f7e,'specificity':_0x136e6c};});})['sort']((_0x396b0a,_0x3911fc)=>compare$1(_0x396b0a['specificity'],_0x3911fc['specificity']));}function dropWherePseudoClasses(_0x5099fd){const _0xbed796=':where(';let _0x1c6e61=_0x5099fd,_0x120eac=0x0;for(let _0x3f56c9=0x0;_0x3f56c9<0x64;_0x3f56c9++){const _0x5da432=_0x1c6e61['indexOf'](_0xbed796,_0x120eac);if(-0x1===_0x5da432)break;let _0x3b5f14=0x0;for(let _0x5d67e5=0x0;_0x5d67e5<_0x5da432;_0x5d67e5++)'('===_0x1c6e61[_0x5d67e5]?_0x3b5f14++:')'===_0x1c6e61[_0x5d67e5]&&_0x3b5f14--;if(_0x3b5f14>0x0){_0x120eac=_0x5da432+0x7;continue;}let _0x1a544f=-0x1;for(let _0x305256=_0x5da432+0x7,_0x375544=0x1;_0x305256<_0x1c6e61['length'];_0x305256++)if('('===_0x1c6e61[_0x305256]?_0x375544++:')'===_0x1c6e61[_0x305256]&&_0x375544--,!_0x375544){_0x1a544f=_0x305256;break;}-0x1!==_0x1a544f?(_0x1c6e61=_0x1c6e61['slice'](0x0,_0x5da432)+_0x1c6e61['slice'](_0x1a544f+0x1),_0x120eac=_0x5da432):_0x120eac=_0x5da432+0x7;}return _0x1c6e61['replace'](/\s+/g,'\x20')['trim']();}function dropCSSNesting(_0xa2d65f,_0x106502=''){return _0xa2d65f['flatMap'](_0x4da48f=>{const {selectorText:_0x47d3a5,cssText:_0x5ac388,cssRules:_0xe00ad7}=_0x4da48f;if(!_0x47d3a5)return[];const _0x5bb4ff=_0x47d3a5['replace'](/&/g,_0x106502);let _0x4aee7f=_0x5ac388['replace'](_0x47d3a5,'')['trim']()['replace'](/^{|}$/g,'');if(!_0xe00ad7||!_0xe00ad7['length'])return[{'selectorText':_0x5bb4ff,'contentCssText':_0x4aee7f}];for(const _0x31ee4b of _0xe00ad7)_0x4aee7f=_0x4aee7f['replace'](_0x31ee4b['cssText'],'')['trim']();return[{'selectorText':_0x5bb4ff,'contentCssText':_0x4aee7f},...dropCSSNesting(Array['from'](_0xe00ad7),_0x5bb4ff)];});}function getElementInlineStyles(_0x417299){const _0x337af7=_0x417299['element']['getAttribute']('style')||'',_0x4fc8b9=_0x417299['parsedCssRules']['filter'](_0x514638=>_0x417299['element']['matches'](_0x514638['flatSelector']))['map'](_0x1b3f85=>_0x1b3f85['stylesMap']),_0x59f2f9=concatStylesMaps(_0x417299['stylesProcessor'],[..._0x4fc8b9,_0x337af7]);return{'localCSSVariables':inlineStylesMapCSSVariables(_0x417299['fallbackCSSVariablesLookup'],_0x59f2f9),'stylesMap':_0x59f2f9};}function concatStylesMaps(_0x193f81,_0x15d08c){const _0x266b03=new StylesMap(_0x193f81);for(const _0x482f52 of _0x15d08c){let _0x345af0=null;if(_0x345af0='string'==typeof _0x482f52?new StylesMap(_0x193f81)['setTo'](_0x482f52):_0x482f52,_0x345af0){for(const [_0x501aaf,_0x1b0141]of _0x345af0['getStylesEntries']())_0x266b03['set'](_0x501aaf,_0x1b0141);}}return _0x266b03;}class ExportInlineStylesCommand extends Command{['_stylesProcessor'];constructor(_0x43df91){super(_0x43df91),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'](_0x15efc9){const _0x22eea9=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x3b07c6}=this['editor']['locale'],{rootName:_0x2e39a3='main',dataControllerDowncastOptions:_0x38b9a2={},transformations:_0x4fa1e5=_0x22eea9['transformations']||[]}=_0x15efc9||{};this['isBusy']=!0x0,this['refresh']();const _0x18fddf=this['_getRootDataHTMLFragment'](_0x2e39a3,_0x38b9a2),_0x3fa376=createElement(_0x18fddf['ownerDocument'],'div',{'dir':_0x3b07c6,'class':'ck-content'},[_0x18fddf]);return this['_collectAndApplyStyles'](_0x4fa1e5,_0x3fa376)['then'](()=>{const _0x19b82f=extractElementChildrenAsFragment(_0x3fa376),_0x15e068=_0x3fa376['getAttribute']('style');if(_0x15e068)for(const _0x442ea4 of _0x19b82f['children']){const _0x52ea9d=_0x442ea4['getAttribute']('style'),_0xd57bbe=concatStylesMaps(this['_stylesProcessor'],[_0x15e068,_0x52ea9d]);_0x442ea4['setAttribute']('style',dumpNonSortedStylesMap(_0xd57bbe));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x19b82f);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x454f04,_0x381daf){const {data:_0x13d48e,model:_0x5915fa}=this['editor'],_0x346254=_0x5915fa['document']['getRoot'](_0x454f04),_0x428385=_0x13d48e['toView'](_0x346254,_0x381daf);return _0x13d48e['htmlProcessor']['domConverter']['viewToDom'](_0x428385);}async['_collectAndApplyStyles'](_0x5475e6,_0x33bbaa){const {stylesheets:_0x48d744,inlineCss:_0x75325b,stripCssClasses:_0x330127}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x143dda,rootCssVariables:_0x4bdc1b}=await collectAndProcessStylesheets({'stylesheets':_0x48d744||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x75325b});this['_processElementTree']({'transformations':_0x5475e6,'parsedCssRules':_0x143dda,'element':_0x33bbaa,'stripCssClasses':_0x330127,'parentCSSVariablesLookup':_0x4bdc1b['get']['bind'](_0x4bdc1b)});}['_processElementTree']({element:_0x55a1ef,parsedCssRules:_0x39eb7f,parentCSSVariablesLookup:_0x49867a,stripCssClasses:_0x2dd08e,transformations:_0xad53e4}){const {stylesMap:_0x4769cf,localCSSVariables:_0x66eb55}=getElementInlineStyles({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x49867a,'parsedCssRules':_0x39eb7f,'element':_0x55a1ef});for(const _0x2053fc of _0xad53e4){const _0x36506d=_0x2053fc(_0x55a1ef,_0x4769cf);_0x36506d&&_0x36506d instanceof HTMLElement&&(_0x55a1ef=_0x36506d);}_0x4769cf['size']?_0x55a1ef['setAttribute']('style',dumpNonSortedStylesMap(_0x4769cf)):_0x55a1ef['removeAttribute']('style');const _0x5587f5=_0x5ed1a1=>_0x66eb55['has'](_0x5ed1a1)?_0x66eb55['get'](_0x5ed1a1):_0x49867a(_0x5ed1a1);for(const _0x2064b0 of _0x55a1ef['children'])_0x2064b0 instanceof HTMLElement&&this['_processElementTree']({'element':_0x2064b0,'parentCSSVariablesLookup':_0x5587f5,'parsedCssRules':_0x39eb7f,'stripCssClasses':_0x2dd08e,'transformations':_0xad53e4});_0x2dd08e&&_0x55a1ef['removeAttribute']('class');}}function dumpNonSortedStylesMap(_0x3e68ff){return _0x3e68ff['getStylesEntries']()['map'](_0x4f0603=>_0x4f0603['join'](':'))['join'](';')+';';}function extractElementChildrenAsFragment(_0x453585){const _0x2f1858=_0x453585['ownerDocument']['createDocumentFragment']();for(;_0x453585['firstChild'];)_0x2f1858['appendChild'](_0x453585['firstChild']);return _0x2f1858;}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(_0x391cc3){const _0x4df894=_0x406d74([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]),_0x5a1e1e=window[_0x406d74([0x44,0x61,0x74,0x65])][_0x406d74([0x6e,0x6f,0x77])](),_0x2ad390=_0x391cc3[_0x406d74([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x11c4d8=new window[(_0x406d74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3db901=>{_0x2ad390[_0x406d74([0x6f,0x6e,0x63,0x65])](_0x406d74([0x72,0x65,0x61,0x64,0x79]),_0x3db901);}),_0x2e746a={[_0x406d74([0x6b,0x74,0x79])]:_0x406d74([0x45,0x43]),[_0x406d74([0x75,0x73,0x65])]:_0x406d74([0x73,0x69,0x67]),[_0x406d74([0x63,0x72,0x76])]:_0x406d74([0x50,0x2d,0x32,0x35,0x36]),[_0x406d74([0x78])]:_0x406d74([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]),[_0x406d74([0x79])]:_0x406d74([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]),[_0x406d74([0x61,0x6c,0x67])]:_0x406d74([0x45,0x53,0x32,0x35,0x36])},_0x16f0ac=_0x2ad390[_0x406d74([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x406d74([0x67,0x65,0x74])](_0x406d74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x28e673=await(async function(){let _0x319965,_0x205abc=null,_0x238145=null;try{if(_0x16f0ac==_0x406d74([0x47,0x50,0x4c]))return _0x406d74([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x319965=(function(){const _0x102689=_0x16f0ac[_0x406d74([0x73,0x70,0x6c,0x69,0x74])](_0x406d74([0x2e]));if(0x3!=_0x102689[_0x406d74([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x3806ce=_0x102689[0x1];return _0x5d468e(_0x3806ce);function _0x5d468e(_0x58ffa8){const _0x2d3f47=_0x471d5e(_0x58ffa8);return _0x2d3f47&&_0x10c193()?_0x2d3f47:null;function _0x10c193(){const _0x144269=_0x2d3f47[_0x406d74([0x6a,0x74,0x69])],_0x5e5b6b=window[_0x406d74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x144269[_0x406d74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x144269[_0x406d74([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x399924={..._0x2d3f47,[_0x406d74([0x6a,0x74,0x69])]:_0x144269[_0x406d74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x144269[_0x406d74([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x399924[_0x406d74([0x76,0x63])],_0xe0faf5(_0x399924)==_0x5e5b6b;}}}()),!_0x319965)return _0x406d74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x319965[_0x406d74([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x238145=function(_0xdba987,_0x2d9626){return new window[(_0x406d74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x525a82=>{if(_0x1f818f())return _0x525a82(_0x406d74([0x56,0x61,0x6c,0x69,0x64]));_0x5d6776(),_0x2ad390[_0x406d74([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x406d74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x187464=!0x1;const _0x4da400=uid();function _0x59034d(_0x22610e){return!!_0x22610e&&(typeof _0x22610e===_0x406d74([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22610e===_0x406d74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22610e[_0x406d74([0x74,0x68,0x65,0x6e])]===_0x406d74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22610e[_0x406d74([0x63,0x61,0x74,0x63,0x68])]===_0x406d74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5876f8(_0x4e5986){_0x6adfc5(_0x4e5986)[_0x406d74([0x74,0x68,0x65,0x6e])](_0x464905=>{if(!_0x464905||_0x464905[_0x406d74([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x406d74([0x6f,0x6b]))return _0x406d74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39ab1f(_0xe0faf5(_0x4da400+_0x2d9626))!=_0x464905[_0x406d74([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x406d74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x406d74([0x56,0x61,0x6c,0x69,0x64]);})[_0x406d74([0x74,0x68,0x65,0x6e])](_0x1c8e76=>(_0x3c81fa(),_0x1c8e76),()=>{const _0x48f15e=_0x15327d();return null==_0x48f15e?(_0x3c81fa(),_0x406d74([0x56,0x61,0x6c,0x69,0x64])):_0x406d74(_0x5a1e1e-_0x48f15e>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x406d74([0x74,0x68,0x65,0x6e])](_0x525a82)[_0x406d74([0x63,0x61,0x74,0x63,0x68])](()=>{_0x525a82(_0x406d74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33cfb0=0x36ee80;function _0x3c81fa(){const _0x472f87=_0x406d74([0x6c,0x6c,0x63,0x74,0x2d])+_0x39ab1f(_0xe0faf5(_0xdba987)),_0x13b58b=_0x34c314(_0x39ab1f(window[_0x406d74([0x4d,0x61,0x74,0x68])][_0x406d74([0x63,0x65,0x69,0x6c])](_0x5a1e1e/_0x33cfb0)));window[_0x406d74([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x406d74([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x472f87,_0x13b58b);}function _0x15327d(){const _0x1ac50d=_0x406d74([0x6c,0x6c,0x63,0x74,0x2d])+_0x39ab1f(_0xe0faf5(_0xdba987)),_0xb2a1a2=window[_0x406d74([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x406d74([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ac50d);return _0xb2a1a2?window[_0x406d74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34c314(_0xb2a1a2),0x10)*_0x33cfb0:null;}function _0x6adfc5(_0x101cf4){return new window[(_0x406d74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x478de5,_0x52178a)=>{_0x101cf4[_0x406d74([0x74,0x68,0x65,0x6e])](_0x478de5,_0x52178a),window[_0x406d74([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x52178a,0x1d4c0);});}}_0x2ad390[_0x406d74([0x6f,0x6e])](_0x406d74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34e385,_0xdb2fc0)=>{if(_0xdb2fc0[0x0]!=_0xdba987)return _0x525a82(_0x406d74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xdb2fc0[0x1]={..._0xdb2fc0[0x1],[_0x406d74([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4da400};},{[_0x406d74([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x406d74([0x68,0x69,0x67,0x68])}),_0x2ad390[_0x406d74([0x6f,0x6e])](_0x406d74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50e0e6=>{_0x59034d(_0x50e0e6[_0x406d74([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x187464=!0x0,_0x5876f8(_0x50e0e6[_0x406d74([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x406d74([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x406d74([0x6c,0x6f,0x77])}),_0x11c4d8[_0x406d74([0x74,0x68,0x65,0x6e])](()=>{_0x187464||_0x525a82(_0x406d74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f818f(){return _0x2ad390[_0x406d74([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x406d74([0x76,0x69,0x65,0x77])][_0x406d74([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x406d74([0x61,0x75,0x74,0x6f]);}function _0x5d6776(){_0x2ad390[_0x406d74([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x406d74([0x76,0x69,0x65,0x77])][_0x406d74([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x406d74([0x61,0x75,0x74,0x6f]);}}(_0x319965[_0x406d74([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x319965[_0x406d74([0x6a,0x74,0x69])]));const _0x2f0103=await(async function(){let _0x44c4f3=!0x0;try{const _0x42f00d=_0x16f0ac[_0x406d74([0x73,0x70,0x6c,0x69,0x74])](_0x406d74([0x2e])),[_0x4ca27d,_0x4a50f3,_0x135717]=_0x42f00d;return _0x419653(_0x4ca27d),await _0x4d83d9(_0x4ca27d,_0x4a50f3,_0x135717),_0x44c4f3;}catch{return!0x1;}function _0x419653(_0x239db2){const _0x5a91ce=_0x471d5e(_0x239db2);_0x5a91ce&&_0x5a91ce[_0x406d74([0x61,0x6c,0x67])]==_0x406d74([0x45,0x53,0x32,0x35,0x36])||(_0x44c4f3=!0x1);}async function _0x4d83d9(_0x2ac653,_0x25e3ce,_0x40f97f){const _0x531b56=window[_0x406d74([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x406d74([0x66,0x72,0x6f,0x6d])](_0x13afec(_0x40f97f),_0x34c71b=>_0x34c71b[_0x406d74([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3adbdc=new window[(_0x406d74([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x406d74([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ac653+_0x406d74([0x2e])+_0x25e3ce),_0x46ad16=window[_0x406d74([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x406d74([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x46ad16)return;const _0x298ba4=await _0x46ad16[_0x406d74([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x406d74([0x6a,0x77,0x6b]),_0x2e746a,{[_0x406d74([0x6e,0x61,0x6d,0x65])]:_0x406d74([0x45,0x43,0x44,0x53,0x41]),[_0x406d74([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x406d74([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x406d74([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x46ad16[_0x406d74([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x406d74([0x6e,0x61,0x6d,0x65])]:_0x406d74([0x45,0x43,0x44,0x53,0x41]),[_0x406d74([0x68,0x61,0x73,0x68])]:{[_0x406d74([0x6e,0x61,0x6d,0x65])]:_0x406d74([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x298ba4,_0x531b56,_0x3adbdc)||(_0x44c4f3=!0x1);}}());return _0x2f0103?(function(){const _0x2ae954=_0x319965[_0x406d74([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2ae954)return!0x1;if(_0x2ae954[_0x406d74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406d74([0x2a])))return!0x0;if(_0x2ae954[_0x406d74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406d74([0x45,0x49,0x53])))return!0x0;return!0x1;}())?(function(){const _0x25cacc=[_0x406d74([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x406d74([0x74,0x72,0x69,0x61,0x6c])][_0x406d74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x319965[_0x406d74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a1e1e/0x3e8:0x69cb0e80;return _0x319965[_0x406d74([0x65,0x78,0x70])]<_0x25cacc;}())?_0x406d74([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x1fd2b1=_0x319965[_0x406d74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1fd2b1||0x0==_0x1fd2b1[_0x406d74([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1bfe7b}=new URL(window[_0x406d74([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1fd2b1[_0x406d74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bfe7b))return!0x0;const _0x183e9f=_0x1bfe7b[_0x406d74([0x73,0x70,0x6c,0x69,0x74])](_0x406d74([0x2e]));return _0x1fd2b1[_0x406d74([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27e970=>_0x27e970[_0x406d74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406d74([0x2a])))[_0x406d74([0x6d,0x61,0x70])](_0x12a894=>_0x12a894[_0x406d74([0x73,0x70,0x6c,0x69,0x74])](_0x406d74([0x2e])))[_0x406d74([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f02a5=>_0x5f02a5[_0x406d74([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x183e9f[_0x406d74([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x406d74([0x6d,0x61,0x70])](_0x2d467a=>Array(_0x183e9f[_0x406d74([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2d467a[_0x406d74([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x406d74([0x66,0x69,0x6c,0x6c])](_0x2d467a[0x0]===_0x406d74([0x2a])?_0x406d74([0x2a]):'')[_0x406d74([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2d467a))[_0x406d74([0x73,0x6f,0x6d,0x65])](_0x23fc29=>_0x183e9f[_0x406d74([0x65,0x76,0x65,0x72,0x79])]((_0x2458d4,_0x32b184)=>_0x23fc29[_0x32b184]===_0x2458d4||_0x23fc29[_0x32b184]===_0x406d74([0x2a])));}())?(_0x319965[_0x406d74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x406d74([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x205abc=function(_0x2d74dd){const _0x278bd1=new window[(_0x406d74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10a3dc=>setTimeout(_0x10a3dc,0x93ecc)),_0x149338=_0x11c4d8[_0x406d74([0x74,0x68,0x65,0x6e])](()=>new window[(_0x406d74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x249e1c=>{let _0xf0f13d=0x0;_0x2ad390[_0x406d74([0x6d,0x6f,0x64,0x65,0x6c])][_0x406d74([0x6f,0x6e])](_0x406d74([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3a4212,_0x115f64)=>{_0x115f64[0x0][_0x406d74([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf0f13d++,0x5e8==_0xf0f13d&&(_0x249e1c(),_0x3a4212[_0x406d74([0x6f,0x66,0x66])]());});})),_0x49a68d=[_0x278bd1,_0x149338];return window[_0x406d74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x406d74([0x72,0x61,0x63,0x65])](_0x49a68d)[_0x406d74([0x74,0x68,0x65,0x6e])](()=>_0x2d74dd);}(_0x406d74([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x205abc&&_0x238145)return new window[(_0x406d74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31058d,_0x2e7b4f)=>{_0x205abc[_0x406d74([0x74,0x68,0x65,0x6e])](_0x31058d,_0x2e7b4f),_0x238145[_0x406d74([0x74,0x68,0x65,0x6e])](_0x5c8302=>{_0x5c8302!=_0x406d74([0x56,0x61,0x6c,0x69,0x64])&&_0x31058d(_0x5c8302);},_0x2e7b4f);});return _0x205abc||_0x238145||_0x406d74([0x56,0x61,0x6c,0x69,0x64]);}())):_0x406d74([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x406d74([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x406d74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x406d74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x471d5e(_0x519e91){return _0x519e91[_0x406d74([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x406d74([0x65,0x79]))?JSON[_0x406d74([0x70,0x61,0x72,0x73,0x65])](_0x13afec(_0x519e91)):null;}function _0x13afec(_0x19d72a){return window[_0x406d74([0x61,0x74,0x6f,0x62])](_0x19d72a[_0x406d74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x406d74([0x2b]))[_0x406d74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x406d74([0x2f])));}function _0xe0faf5(_0x589218){let _0x5822b8=0x1505;function _0x3db1ff(_0x5aacde){for(let _0x14909d=0x0;_0x14909d<_0x5aacde[_0x406d74([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14909d++){const _0x2eb404=_0x5aacde[_0x406d74([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14909d);_0x5822b8=(_0x5822b8<<0x5)+_0x5822b8+_0x2eb404,_0x5822b8&=_0x5822b8;}}return function _0xda0ef9(_0x122775){Array[_0x406d74([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x122775)?_0x122775[_0x406d74([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xda0ef9):_0x122775&&typeof _0x122775==_0x406d74([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x406d74([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x122775)[_0x406d74([0x73,0x6f,0x72,0x74])]()[_0x406d74([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b9c92,_0x166075])=>{_0x3db1ff(_0x5b9c92),_0xda0ef9(_0x166075);}):_0x3db1ff(window[_0x406d74([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x122775));}(_0x589218),_0x5822b8>>>0x0;}function _0x39ab1f(_0x56935c){return _0x56935c[_0x406d74([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x406d74([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x406d74([0x30]));}function _0x34c314(_0x5c5466){return _0x5c5466[_0x406d74([0x73,0x70,0x6c,0x69,0x74])]('')[_0x406d74([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x406d74([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b104d(){}function _0x406d74(_0x20e10b){return _0x20e10b['map'](_0x20902b=>String['fromCharCode'](_0x20902b))['join']('');}!function(_0x4b99f2){const _0x493b9a=(function(){const _0x41605e=window[_0x406d74([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x406d74([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x406d74([0x6e,0x6f,0x77])]())[_0x406d74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x406d74([0x2e]),'');let _0x13d368=_0x406d74([0x44]);for(let _0x3771a7=0x0;_0x3771a7<_0x41605e[_0x406d74([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3771a7+=0x2){let _0x3eb9a8=window[_0x406d74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41605e[_0x406d74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3771a7,_0x3771a7+0x2));_0x3eb9a8>=_0x4df894[_0x406d74([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3eb9a8-=_0x4df894[_0x406d74([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13d368+=_0x4df894[_0x3eb9a8];}return _0x13d368;}());_0x2ad390[_0x493b9a]=_0x406d74([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])+_0x4b99f2,_0x4b99f2!=_0x406d74([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x11c4d8;const _0x53f52d=_0x2ad390['commands'][_0x406d74([0x67,0x65,0x74])](_0x406d74([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x53f52d&&_0x53f52d[_0x406d74([0x6f,0x6e])](_0x406d74([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x481762=>{_0x481762['stop']();},{'priority':_0x406d74([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),(_0x2ad390[_0x406d74([0x6d,0x6f,0x64,0x65,0x6c])][_0x406d74([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b104d,_0x2ad390[_0x406d74([0x6d,0x6f,0x64,0x65,0x6c])][_0x406d74([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b104d,_0x2ad390[_0x406d74([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x406d74([0x6d,0x6f,0x64,0x65,0x6c])));}());}(_0x28e673);}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 _0x5543b2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22f2e5;for(const _0x31045c in _0x5543b2){const _0xba612e=_0x31045c,_0x53f4ef=_0x5543b2[_0xba612e];if('exportInlineStylesLicenseKeyValid'==_0x53f4ef||'exportInlineStylesLicenseKeyInvalid'==_0x53f4ef||'exportInlineStylesLicenseKeyExpired'==_0x53f4ef||'exportInlineStylesLicenseKeyDomainLimit'==_0x53f4ef||'exportInlineStylesLicenseKeyNotAllowed'==_0x53f4ef||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x53f4ef||'exportInlineStylesLicenseKeyUsageLimit'==_0x53f4ef){delete _0x5543b2[_0xba612e],_0x22f2e5=_0x53f4ef,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x22f2e5&&_0x5543b2['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x22f2e5&&_0x5543b2['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x22f2e5&&_0x5543b2['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x22f2e5&&_0x5543b2['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x22f2e5&&_0x5543b2['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x22f2e5&&_0x5543b2['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getEmailInlineStylesTransformations(_0x41267e={}){const _0x6385f7=[transformEmailFloatToAlign,transformEmailMarginToAlign,transformEmailImageWidthAttributes];return _0x41267e['useFigureToTableFallback']&&_0x6385f7['push'](transformEmailFigureToTable,transformEmailFigcaptionToDiv),_0x6385f7;}function transformEmailFloatToAlign(_0x10f6a3,_0x104342){if(!['TABLE','IMG']['includes'](_0x10f6a3['tagName']))return;const _0x7f6462=_0x104342['getAsString']('float');if(_0x7f6462){const _0x2b8085=dropImportantStyleSuffix(_0x7f6462);'left'!==_0x2b8085&&'right'!==_0x2b8085||_0x10f6a3['setAttribute']('align',_0x2b8085);}}function transformEmailMarginToAlign(_0x4c3e6e,_0x1d7527){if('TABLE'!==_0x4c3e6e['tagName']||_0x1d7527['has']('float'))return;const _0x52d4b4=getAlignFromMargins(_0x1d7527),_0xd77092=_0x1d7527['getAsString']('width');(_0x52d4b4||_0xd77092)&&(applyWrapperTable(_0x4c3e6e,_0x4c3e6e,{'align':_0x52d4b4,'width':_0xd77092}),_0x1d7527['remove']('width'),_0x1d7527['remove']('margin-left'),_0x1d7527['remove']('margin-right'),_0x1d7527['remove']('min-width'),_0x1d7527['remove']('max-width'));}function transformEmailImageWidthAttributes(_0xd7c168,_0x131e57){if('IMG'!==_0xd7c168['tagName'])return;const _0x411840=_0x131e57['getAsString']('width');_0x411840&&(_0xd7c168['setAttribute']('width',_0x411840),_0xd7c168['setAttribute']('height','auto'));}function transformEmailFigureToTable(_0x29a2a7,_0x43030b){if('FIGURE'!==_0x29a2a7['tagName'])return;const _0x1cd82a=getAlignFromMargins(_0x43030b),_0x1ac54=_0x43030b['getAsString']('width');if(!_0x1cd82a&&!_0x1ac54)return;const _0x1be5c8=createReplacementElement(_0x29a2a7,'div');return applyWrapperTable(_0x29a2a7,_0x1be5c8,{'align':_0x1cd82a,'width':_0x1ac54}),_0x43030b['set']('width','100%'),_0x43030b['remove']('margin-left'),_0x43030b['remove']('margin-right'),_0x43030b['remove']('min-width'),_0x43030b['remove']('max-width'),_0x1be5c8;}function transformEmailFigcaptionToDiv(_0x39b0fd){if('FIGCAPTION'!==_0x39b0fd['tagName'])return;const _0x56e230=createReplacementElement(_0x39b0fd,'div');return _0x39b0fd['replaceWith'](_0x56e230),_0x56e230;}function applyWrapperTable(_0x26c9a6,_0x2864df,_0x1f9274){const _0x222a6c=_0x26c9a6['ownerDocument'],{table:_0x476891,cell:_0x5d8f6f}=createWrapperTable(_0x222a6c,'100%');_0x1f9274['align']&&_0x5d8f6f['setAttribute']('align',dropImportantStyleSuffix(_0x1f9274['align']));let _0x1ff676=_0x5d8f6f;if(_0x1f9274['width']){const {table:_0x1c57a3,cell:_0x2529b3}=createWrapperTable(_0x222a6c,dropImportantStyleSuffix(_0x1f9274['width']));_0x5d8f6f['appendChild'](_0x1c57a3),_0x1ff676=_0x2529b3;}_0x26c9a6['replaceWith'](_0x476891),_0x26c9a6['removeAttribute']('align'),_0x26c9a6['removeAttribute']('width'),_0x1ff676['appendChild'](_0x2864df);}function createWrapperTable(_0x3f81b8,_0x34e79e){const _0x1079d1=_0x3f81b8['createElement']('table');_0x1079d1['setAttribute']('width',_0x34e79e),_0x1079d1['setAttribute']('cellpadding','0'),_0x1079d1['setAttribute']('cellspacing','0'),_0x1079d1['setAttribute']('border','0'),_0x1079d1['setAttribute']('role','presentation');const _0x2a4445=_0x3f81b8['createElement']('tbody'),_0x17fedf=_0x3f81b8['createElement']('tr'),_0x14c1f6=_0x3f81b8['createElement']('td');return _0x1079d1['appendChild'](_0x2a4445),_0x2a4445['appendChild'](_0x17fedf),_0x17fedf['appendChild'](_0x14c1f6),{'table':_0x1079d1,'cell':_0x14c1f6};}function getAlignFromMargins(_0x3fc217){const _0x2ffd1e=_0x3fc217['getAsString']('margin-left'),_0x302ef9=_0x3fc217['getAsString']('margin-right'),_0x3910ca=_0x2ffd1e&&dropImportantStyleSuffix(_0x2ffd1e),_0x1cd0a2=_0x302ef9&&dropImportantStyleSuffix(_0x302ef9);return'auto'===_0x3910ca&&'auto'===_0x1cd0a2?'center':'auto'===_0x3910ca?'right':'auto'===_0x1cd0a2?'left':void 0x0;}function createReplacementElement(_0x113687,_0x169a2a){const _0x1810bc=_0x113687['ownerDocument']['createElement'](_0x169a2a);for(const _0x282cce of Array['from'](_0x113687['attributes']))_0x1810bc['setAttribute'](_0x282cce['name'],_0x282cce['value']);for(;_0x113687['firstChild'];)_0x1810bc['appendChild'](_0x113687['firstChild']);return _0x1810bc;}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:_0x420c1d,plugins:_0x44f6d2}=this['editor'],_0x569bd0=_0x420c1d['get']('exportInlineStyles');if(_0x569bd0?.['transformations']?.['includes'](transformEmailFigureToTable))return;_0x44f6d2['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 _0xc40d71=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('ExportInlineStyles')||_0xc40d71['_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 _0x4e58a2=this['editor']['plugins']['get'](EmailConfigurationLogger),_0x5d04d9=this['editor']['config']['get']('list');_0x5d04d9&&_0x5d04d9['properties']&&_0x5d04d9['properties']['reversed']&&_0x4e58a2['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x5d04d9&&_0x5d04d9['enableListItemMarkerFormatting']&&_0x4e58a2['_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:_0x2a772f}=this['editor'],_0xec5c6f=_0x2a772f['get'](EmailConfigurationLogger);_0x2a772f['has']('Table')&&(_0x2a772f['has']('PlainTableOutput')||_0xec5c6f['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x2a772f['has']('TableLayout')||_0xec5c6f['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x256085,plugins:_0x172cf8}=this['editor'];_0x256085['get']('table')&&_0x172cf8['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}['_checkTablePropertiesConfig'](_0x4d6008){const _0x1da828=this['editor']['plugins']['get'](EmailConfigurationLogger);_0x1da828['_validateConfigColorValue']('table.'+_0x4d6008+'.borderColors'),_0x1da828['_validateConfigColorValue']('table.'+_0x4d6008+'.backgroundColors'),_0x1da828['_validateConfigColorValue']('table.'+_0x4d6008+'.defaultProperties.borderColor'),_0x1da828['_validateConfigColorValue']('table.'+_0x4d6008+'.defaultProperties'),_0x1da828['_validateConfigColorFormat']('table.'+_0x4d6008+'.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 _0x4d4ef5=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('EmptyBlock')||_0x4d4ef5['_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:_0x832cfe}=this['editor'];_0x832cfe['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x832cfe['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x2e4516){const _0x3595d6=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['config']['get'](_0x2e4516)&&(_0x3595d6['_validateConfigColorValue'](_0x2e4516+'.colors'),_0x3595d6['_validateConfigColorValue'](_0x2e4516+'.documentColors'),_0x3595d6['_validateConfigColorFormat'](_0x2e4516+'.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:_0x256fd9}=this['editor'],_0x1a9291=_0x256fd9['get'](EmailConfigurationLogger);_0x256fd9['has']('SourceEditing')||_0x256fd9['has']('SourceEditingEnhanced')||_0x1a9291['_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:_0x3fa976}=this['editor'];if(!_0x3fa976['has']('DataFilter'))return;const _0x3830f8=_0x3fa976['get']('DataFilter'),_0x1e54a1=_0x3fa976['get'](EmailConfigurationLogger);for(const _0x330e07 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x3830f8['once']('register:'+_0x330e07,(_0x48b782,_0x1995d2)=>{_0x1e54a1['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x1995d2['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 _0x5dbfc7=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('MergeFields')||_0x5dbfc7['_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 _0x299d4e=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('Template')||_0x299d4e['_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:_0x32fbf8,plugins:_0x191158}=this['editor'],_0x38a994=_0x191158['get'](EmailConfigurationLogger),_0x10994a=_0x32fbf8['get']('exportInlineStyles');_0x10994a?.['transformations']?.['includes'](transformEmailFigureToTable)||_0x38a994['_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 _0x29f3c4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f2318;for(const _0x7dea6a in _0x29f3c4){const _0x2ccf86=_0x7dea6a,_0x3d0c75=_0x29f3c4[_0x2ccf86];if('emailConfigurationHelperLicenseKeyValid'==_0x3d0c75||'emailConfigurationHelperLicenseKeyInvalid'==_0x3d0c75||'emailConfigurationHelperLicenseKeyExpired'==_0x3d0c75||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x3d0c75||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x3d0c75||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x3d0c75||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x3d0c75){delete _0x29f3c4[_0x2ccf86],_0x2f2318=_0x3d0c75,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x2f2318&&_0x29f3c4['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x2f2318&&_0x29f3c4['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x2f2318&&_0x29f3c4['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x2f2318&&_0x29f3c4['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x2f2318&&_0x29f3c4['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x2f2318&&_0x29f3c4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getTranslation$d(_0x172fa0,_0x2f59be){const t=_0x172fa0['t'];switch(_0x2f59be){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 _0x2f59be;}}class ExportPdfCommand extends Command{constructor(_0x3bb0f1){super(_0x3bb0f1),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x3719da={}){const {editor:_0x47329d}=this,_0x198466=_0x3719da['version']||_0x47329d['config']['get']('exportPdf.version'),_0x386c35=_0x3719da['converterUrl']||getProductionConverterURL(_0x198466),_0x407af2=_0x3719da['dataCallback']||(_0x3ae66b=>_0x3ae66b['data']['get']()),_0x47d63a=_0x47329d['plugins']['get']('ExportPdf'),_0x197a38=_0x3719da['token']||_0x47d63a['_token'];return this['isBusy']=!0x0,this['refresh'](),collectStylesheets(_0x3719da['stylesheets']||['EDITOR_STYLES'])['then'](async _0x48a3a6=>{if(_0x47329d['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x47329d['locale'],'PDF\x20export\x20started')),_0x47329d['plugins']['has']('MergeFields')){_0x3719da['converterOptions']||(_0x3719da['converterOptions']={});const _0x4f1ac7=_0x47329d['plugins']['get']('MergeFieldsEditing'),_0x2ecfec=_0x4f1ac7['previewMode'],{prefix:_0x256689,suffix:_0x2a450e}=_0x47329d['config']['get']('mergeFields'),_0x9a30e4='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x2d1823={'prefix':_0x256689,'suffix':_0x2a450e,'data':{}};if('$labels'===_0x2ecfec){for(const _0x258366 of _0x4f1ac7['getMergeFieldsIds']())'image'===_0x4f1ac7['getMergeFieldType'](_0x258366)?_0x2d1823['data'][_0x258366]=_0x9a30e4:_0x2d1823['data'][_0x258366]=_0x4f1ac7['wrapInAffixes'](_0x4f1ac7['getLabel'](_0x258366)||_0x258366);}else{const _0x13113a='$defaultValues'===_0x2ecfec?_0x4f1ac7['getDefaultValues']():_0x4f1ac7['getDataSetValues'](_0x2ecfec,!0x0);for(const _0x3994c8 of Object['entries'](_0x13113a)){const [_0x30dde4,_0x4636b0]=_0x3994c8;'image'===_0x4f1ac7['getMergeFieldType'](_0x30dde4)?_0x2d1823['data'][_0x30dde4]=null!==_0x4636b0?_0x4636b0:_0x9a30e4:_0x2d1823['data'][_0x30dde4]=null!==_0x4636b0?_0x4636b0:_0x4f1ac7['getLabel'](_0x30dde4)||_0x30dde4;}}_0x3719da['converterOptions']['merge_fields']=_0x2d1823;}const _0x1fca23=0x2===_0x198466?prepareContentInlineStyleV2(_0x3719da['converterOptions']):prepareContentInlineStyle(_0x3719da['converterOptions']),_0x382915={'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'+_0x47329d['locale']['contentLanguageDirection']+'\x22\x20style=\x22'+_0x1fca23+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x407af2(_0x47329d)+'\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':_0x48a3a6,[0x2===_0x198466?'config':'options']:_0x3719da['converterOptions']},_0x32fcaf={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x197a38?{'Authorization':_0x197a38['value']}:null,'x-cs-app-id':_0x3719da['appID']||'cke5'},'body':JSON['stringify'](_0x382915)};return window['fetch'](_0x386c35,_0x32fcaf)['then'](_0x57586e=>{if(0xc8!==_0x57586e['status'])throw _0x57586e;return _0x57586e['blob']();})['then'](_0x4777b1=>{_0x47329d['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x47329d['locale'],'PDF\x20export\x20successful'));const _0x1e7f17='function'==typeof _0x3719da['fileName']?_0x3719da['fileName']():_0x3719da['fileName'];this['_downloadFile'](_0x4777b1,_0x1e7f17||'document.pdf');});})['catch'](_0x3f342c=>{const _0x248609=_0x47329d['plugins']['get']('Notification');throw _0x47329d['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x47329d['locale'],'PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x248609['showWarning'](getTranslation$d(_0x47329d['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x3f342c;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x4889de,_0x160bc9){const _0x563cfb=document['createElement']('a');_0x563cfb['href']=window['URL']['createObjectURL'](_0x4889de),_0x563cfb['download']=_0x160bc9,_0x563cfb['click'](),_0x563cfb['remove']();}}function getProductionConverterURL(_0x37cde6){return 0x2===_0x37cde6?'https://pdf-converter.cke-cs.com/v2/convert/html-pdf':'https://pdf-converter.cke-cs.com/v1/convert/';}function prepareContentInlineStyle(_0xf8c684){return generatePageWidthStyle({'pageWidth':pageFormatToWidth(_0xf8c684?.['format']||'A4'),'marginLeft':_0xf8c684?.['margin_left'],'marginRight':_0xf8c684?.['margin_right']});}function prepareContentInlineStyleV2(_0x4597be){const _0x4a74eb=_0x4597be?.['document']?.['margins'];return generatePageWidthStyle({'pageWidth':pageFormatToWidth(_0x4597be?.['document']?.['size']||'A4'),'marginLeft':_0x4a74eb?.['left'],'marginRight':_0x4a74eb?.['right']});}function generatePageWidthStyle({pageWidth:_0x52b943,marginLeft:_0x582248,marginRight:_0xb02ce9}){return'width:calc('+[_0x52b943,_0x582248,_0xb02ce9]['filter'](Boolean)['join']('\x20-\x20')+');';}function pageFormatToWidth(_0x4d01ac){if('object'==typeof _0x4d01ac&&'width'in _0x4d01ac)return _0x4d01ac['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']}[_0x4d01ac['toLowerCase']()][0x0];}class ExportPdfUI extends Plugin{static get['pluginName'](){return'ExportPdfUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2e258f=this['editor'];_0x2e258f['ui']['componentFactory']['add']('exportPdf',()=>{const _0x5c96f5=this['_createButton'](ButtonView),_0x4edea4=_0x2e258f['commands']['get']('exportPdf');return _0x5c96f5['set']({'tooltip':!0x0}),_0x5c96f5['bind']('isOn')['to'](_0x4edea4,'isBusy'),_0x5c96f5;}),_0x2e258f['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](MenuBarMenuListItemButtonView));}['_createButton'](_0x169c9c){const _0x336579=this['editor'],_0x512a1e=_0x336579['config']['get']('exportPdf'),_0x446a35=_0x336579['commands']['get']('exportPdf'),_0x24a776=new _0x169c9c(_0x336579['locale']),_0x1008ff=new SpinnerView();return _0x24a776['children']['add'](_0x1008ff),_0x1008ff['bind']('isVisible')['to'](_0x446a35,'isBusy'),_0x24a776['iconView']['bind']('isVisible')['to'](_0x446a35,'isBusy',_0x40e21b=>!_0x40e21b),_0x24a776['set']({'icon':IconExportPdf}),_0x24a776['bind']('isEnabled')['to'](_0x446a35,'isEnabled'),_0x24a776['bind']('label')['to'](_0x446a35,'isBusy',_0xd64f29=>getTranslation$d(_0x336579['locale'],_0xd64f29?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x24a776,'execute',()=>{_0x336579['execute']('exportPdf',_0x512a1e),_0x336579['editing']['view']['focus']();}),_0x24a776;}}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 {editor:_0x308e16}=this;_0x308e16['config']['define']('exportPdf.version',0x2),_0x308e16['commands']['add']('exportPdf',new ExportPdfCommand(_0x308e16));const _0x17da07=_0x308e16['plugins']['get'](CloudServices),_0x164579=_0x308e16['config']['get']('exportPdf');!0x1===_0x164579['tokenUrl']?this['_token']=null:_0x164579['tokenUrl']?_0x17da07['registerTokenUrl'](_0x164579['tokenUrl'])['then'](_0x2a635a=>{this['_token']=_0x2a635a;}):this['_token']=_0x17da07['token'];}}function getConverterOptions(_0x5229ea,_0x284fc4={}){const _0x3be151=_0x5229ea['plugins']['has']('Users'),_0x30e596=_0x5229ea['plugins']['has']('CommentsRepository'),_0x2d75f8=_0x5229ea['plugins']['has']('TrackChanges'),_0x54b3d3=_0x284fc4;if(_0x3be151&&_0x30e596){const _0xb1fbc8=getComments(_0x5229ea['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object['keys'](_0xb1fbc8)['length']&&(_0x54b3d3['comments']=_0xb1fbc8);}if(_0x3be151&&_0x2d75f8){const _0x4263f0=_0x5229ea['plugins']['get']('TrackChanges'),_0x49ab34=_0x5229ea['plugins']['get']('Users'),_0x87a011=getSuggestions(_0x4263f0['getSuggestions']({'toJSON':!0x0}),_0x49ab34['users']);Object['keys'](_0x87a011)['length']&&(_0x54b3d3['suggestions']=_0x87a011);}return(_0x54b3d3['suggestions']||_0x54b3d3['comments'])&&(_0x54b3d3['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']),_0x54b3d3;}function getComments(_0x3d54e3){const _0x2721c8={};if(!_0x3d54e3['length'])return _0x2721c8;for(const _0x2900b9 of _0x3d54e3)_0x2900b9['comments']['map'](_0x2f6443=>{void 0x0===_0x2721c8[_0x2900b9['id']]&&(_0x2721c8[_0x2900b9['id']]=[]),_0x2721c8[_0x2900b9['id']]['push']({'author':_0x2f6443['author']['name'],'content':_0x2f6443['content'],'created':_0x2f6443['createdAt'],'is_resolved':_0x2900b9['isResolved']});});return _0x2721c8;}function getSuggestions(_0x515b2e,_0x3fe0bb){const _0x283e91={};if(!_0x515b2e['length']||!_0x3fe0bb['length'])return _0x283e91;for(const {id:_0x3216c2,createdAt:_0x428452,authorId:_0x3ce184,attributes:_0x515be5}of _0x515b2e){const _0x18af67=_0x515be5&&_0x515be5['@external'],_0x3ffe90=_0x18af67?_0x18af67['authorName']:_0x3fe0bb['get'](_0x3ce184)['name'];_0x283e91[_0x3216c2]={'author':_0x3ffe90,'created':_0x428452};}return _0x283e91;}function getConverterOptionsV2(_0x1265e1,_0x108f97={}){const _0x23c34f=_0x1265e1['plugins']['has']('Users'),_0x4b7ea3=_0x1265e1['plugins']['has']('CommentsRepository'),_0x2fd695=_0x1265e1['plugins']['has']('TrackChanges'),_0x7609fa=_0x1265e1['plugins']['has']('MergeFields'),_0x32a204=_0x1265e1['locale']['contentLanguage'],_0x2594a2=_0x108f97,_0x40747a={};if(_0x2594a2['document']=_0x2594a2['document']||{},_0x2594a2['document']['language']=_0x2594a2['document']['language']||_0x32a204,_0x23c34f&&_0x4b7ea3){const _0x4b43af=getCommentsV2(_0x1265e1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x4b43af['length']&&(_0x40747a['comment_threads']=_0x4b43af);}if(_0x23c34f&&_0x2fd695){const _0x200d33=_0x1265e1['plugins']['get']('TrackChanges'),_0x21da5f=_0x1265e1['plugins']['get']('Users'),_0x377c70=getSuggestionsV2(_0x200d33['getSuggestions']({'toJSON':!0x0}),_0x21da5f['users']);_0x377c70['length']&&(_0x40747a['suggestions']=_0x377c70);}if(_0x7609fa){const _0x55a4ff=_0x1265e1['plugins']['get']('MergeFieldsEditing'),_0x245a2d=_0x55a4ff['previewMode'],{prefix:_0x2b06df,suffix:_0x39b023}=_0x1265e1['config']['get']('mergeFields');if(_0x2594a2['merge_fields']={'prefix':_0x2b06df,'suffix':_0x39b023},'$labels'!==_0x245a2d){_0x2594a2['merge_fields']['data']={};const _0x4d8b0a='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x174b1f='$defaultValues'===_0x245a2d?_0x55a4ff['getDefaultValues']():_0x55a4ff['getDataSetValues'](_0x245a2d,!0x0);for(const _0x2903c9 of Object['entries'](_0x174b1f)){const [_0x5aa339,_0x56c81a]=_0x2903c9;'image'===_0x55a4ff['getMergeFieldType'](_0x5aa339)?_0x2594a2['merge_fields']['data'][_0x5aa339]=null!==_0x56c81a?_0x56c81a:_0x4d8b0a:_0x2594a2['merge_fields']['data'][_0x5aa339]=null!==_0x56c81a?_0x56c81a:_0x55a4ff['getLabel'](_0x5aa339)||_0x5aa339;}}}return(_0x40747a['comment_threads']||_0x40747a['suggestions'])&&(_0x2594a2['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'],_0x2594a2['collaboration_features']=_0x40747a),_0x2594a2;}function getCommentsV2(_0x5dc415){const _0x468959=[];if(!_0x5dc415['length'])return _0x468959;for(const _0x325cce of _0x5dc415){const _0x267500=_0x325cce['comments']['map'](_0x4d1d9a=>({'author':_0x4d1d9a['author']['name'],'content':_0x4d1d9a['content'],'created_at':_0x4d1d9a['createdAt']}));_0x468959['push']({'thread_id':_0x325cce['id'],'is_resolved':_0x325cce['isResolved'],'comments':_0x267500});}return _0x468959;}function getSuggestionsV2(_0x1ba1c1,_0x6b3eba){return _0x1ba1c1['length']&&_0x6b3eba['length']?_0x1ba1c1['map'](({id:_0x291ebc,createdAt:_0x3a654d,authorId:_0x4de995,attributes:_0x48b612})=>{const _0x2619af=_0x48b612&&_0x48b612['@external'];return{'id':_0x291ebc,'author':_0x2619af?_0x2619af['authorName']:_0x6b3eba['get'](_0x4de995)['name'],'created_at':_0x3a654d};}):[];}function getTranslation$c(_0x54e775,_0x35cf86){const t=_0x54e775['t'];switch(_0x35cf86){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 _0x35cf86;}}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(_0x2e8536){super(_0x2e8536),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x26fc41={}){const _0x4005ee=this['editor'],_0xe949f6=_0x26fc41['version']||0x2,_0x226e59=0x1===_0xe949f6,_0x5f01cc=_0x26fc41['converterUrl']||(_0x226e59?PRODUCTION_URL:PRODUCTION_URL_V2),_0x365523=_0x26fc41['converterOptions']||{},_0x1c1f12=_0x4005ee['plugins']['get']('ExportWord'),_0x1b45e4=_0x26fc41['token']||_0x1c1f12['_token'],_0x29c78e=!0x0===_0x365523['auto_pagination'],_0x1e2725=_0x26fc41['dataCallback']||(_0x3ab5fa=>_0x3ab5fa['data']['get']({'pagination':_0x29c78e}));return 0x2===_0xe949f6&&isV1ApiUsed(_0x365523)&&logWarning('export-word-v1-api-is-deprecated'),this['isBusy']=!0x0,this['refresh'](),collectStylesheets(_0x26fc41['stylesheets']||['EDITOR_STYLES'])['then'](async _0x1ab378=>{_0x4005ee['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x4005ee['locale'],'Word\x20document\x20export\x20started'));const _0x4c66ea=await _0x1e2725(_0x4005ee),_0x21a061={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x4005ee['locale']['contentLanguageDirection']+'\x22>'+_0x4c66ea+'</div>','css':_0x1ab378,[_0x226e59?'options':'config']:{..._0x365523,..._0x226e59?getConverterOptions(_0x4005ee,_0x365523):getConverterOptionsV2(_0x4005ee,_0x365523)}},_0x1df8ad={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x1b45e4?{'Authorization':_0x1b45e4['value']}:null},'body':JSON['stringify'](_0x21a061)};return window['fetch'](_0x5f01cc,_0x1df8ad)['then'](_0x5acf9f=>{if(0xc8!==_0x5acf9f['status'])throw _0x5acf9f;return _0x5acf9f['blob']();})['then'](_0x3cd83c=>{_0x4005ee['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x4005ee['locale'],'Word\x20document\x20export\x20successful'));const _0x5738b4='function'==typeof _0x26fc41['fileName']?_0x26fc41['fileName']():_0x26fc41['fileName'];this['_downloadFile'](_0x3cd83c,_0x5738b4||'document.docx');});})['catch'](_0x392741=>{const _0x319f1e=_0x4005ee['plugins']['get']('Notification');throw _0x4005ee['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x4005ee['locale'],'Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x319f1e['showWarning'](getTranslation$c(_0x4005ee['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x392741;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0xb9d5d3,_0xbad7a0){const _0x2c2477=document['createElement']('a');_0x2c2477['href']=window['URL']['createObjectURL'](_0xb9d5d3),_0x2c2477['download']=_0xbad7a0,_0x2c2477['click'](),_0x2c2477['remove']();}}function isV1ApiUsed(_0x54a6cc){for(const _0x5de9f9 of firstVersionApiKeys)if(void 0x0!==_0x54a6cc[_0x5de9f9])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 _0xdd5ba8=this['editor'];_0xdd5ba8['ui']['componentFactory']['add']('exportWord',()=>{const _0x4ff36f=_0xdd5ba8['commands']['get']('exportWord'),_0x1fd86b=this['_createButton'](ButtonView);return _0x1fd86b['set']({'tooltip':!0x0}),_0x1fd86b['bind']('isOn')['to'](_0x4ff36f,'isBusy'),_0x1fd86b;}),_0xdd5ba8['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](MenuBarMenuListItemButtonView));}['_createButton'](_0x2f7ad4){const _0x1c9b47=this['editor'],_0x239574=_0x1c9b47['config']['get']('exportWord')||{},_0x29445c=_0x1c9b47['commands']['get']('exportWord'),_0x34457e=new _0x2f7ad4(_0x1c9b47['locale']),_0x5c78cf=new SpinnerView();return _0x34457e['children']['add'](_0x5c78cf),_0x5c78cf['bind']('isVisible')['to'](_0x29445c,'isBusy'),_0x34457e['iconView']['bind']('isVisible')['to'](_0x29445c,'isBusy',_0x4a6320=>!_0x4a6320),_0x34457e['set']({'icon':IconExportWord}),_0x34457e['bind']('isEnabled')['to'](_0x29445c,'isEnabled'),_0x34457e['bind']('label')['to'](_0x29445c,'isBusy',_0x19252f=>getTranslation$c(_0x1c9b47['locale'],_0x19252f?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x34457e,'execute',()=>{_0x1c9b47['execute']('exportWord',_0x239574),_0x1c9b47['editing']['view']['focus']();}),_0x34457e;}}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 _0x205d5e=this['editor'],_0x424826=_0x205d5e['config']['get']('exportWord')||{};_0x205d5e['commands']['add']('exportWord',new ExportWordCommand(_0x205d5e));const _0x825fe3=_0x205d5e['plugins']['get'](CloudServices);!0x1===_0x424826['tokenUrl']?this['_token']=null:_0x424826['tokenUrl']?_0x825fe3['registerTokenUrl'](_0x424826['tokenUrl'])['then'](_0xc3591c=>{this['_token']=_0xc3591c;}):this['_token']=_0x825fe3['token'];}}class ModelElementTracker{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x3817c7,_0x2a0612){this['_model']=_0x3817c7,this['_elementName']=_0x2a0612['elementName'],this['_getElementKey']=_0x2a0612['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x32c4a5){const _0x2b19fb=new Set(),_0x1c5121=new Map();for(const _0x5c0da1 of _0x32c4a5){if('insert'===_0x5c0da1['type']&&'$text'!==_0x5c0da1['name']&&_0x5c0da1['position']['nodeAfter']){const _0x1c8c41=this['_model']['createRangeOn'](_0x5c0da1['position']['nodeAfter']);for(const _0x26aeba of _0x1c8c41['getItems']()){if(!_0x26aeba['is']('element',this['_elementName']))continue;const _0x2bb855=this['_getElementKey'](_0x26aeba);_0x1c5121['has'](_0x2bb855)||_0x1c5121['set'](_0x2bb855,[]),_0x1c5121['get'](_0x2bb855)['push'](_0x26aeba);}}if('remove'===_0x5c0da1['type']&&_0x5c0da1['name']===this['_elementName']){const _0x293017=this['_getElementKey']({'getAttribute':_0x3ad260=>_0x5c0da1['attributes']['get'](_0x3ad260)});_0x2b19fb['add'](_0x293017);}}for(const [_0x372c98,_0x4a9c62]of this['_trackedElements'])'$graveyard'===_0x4a9c62['root']['rootName']&&_0x2b19fb['add'](_0x372c98);for(const _0x3f7fb9 of _0x2b19fb)this['_trackedElements']['delete'](_0x3f7fb9);for(const [_0x59aa5d,_0x34f28a]of _0x1c5121)this['_trackedElements']['set'](_0x59aa5d,_0x34f28a[_0x34f28a['length']-0x1]);const _0x1b42fa=new Set();for(const [_0x40995a,_0x51abf0]of _0x1c5121)_0x2b19fb['has'](_0x40995a)&&(_0x1b42fa['add'](_0x51abf0[0x0]),_0x51abf0['length']>0x1?_0x1c5121['set'](_0x40995a,_0x51abf0['slice'](0x1)):_0x1c5121['delete'](_0x40995a),_0x2b19fb['delete'](_0x40995a));return{'removed':Array['from'](_0x2b19fb),'inserted':Array['from'](_0x1c5121['values']())['flat'](),'moved':Array['from'](_0x1b42fa)};}}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(_0x27b3b9){super(_0x27b3b9),this['_footnoteDefsContainerTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x247ee2=>_0x247ee2['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x8258e3=>_0x8258e3['getAttribute']('footnoteId')});}['init'](){const {editor:_0x18e14e}=this,{model:_0x4f9362,data:_0x58421e}=_0x18e14e;_0x4f9362['document']['registerPostFixer'](_0x2b78e5=>{const _0x1226ee=_0x4f9362['document']['differ']['getChanges']();let _0x247600=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x2b78e5,_0x1226ee)&&(_0x247600=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x2b78e5,_0x1226ee)&&(_0x247600=!0x0),this['_handleFootnoteReferencesChanges'](_0x2b78e5,_0x1226ee)&&(_0x247600=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x2b78e5)&&(_0x247600=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x2b78e5)&&(_0x247600=!0x0),this['_sortFootnoteDefinitions'](_0x2b78e5)&&(_0x247600=!0x0),_0x247600;}),this['listenTo'](_0x4f9362['document'],'change:data',()=>{_0x4f9362['enqueueChange']({'isUndoable':!0x1},_0x18229c=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x18229c);});},{'priority':'low'}),this['listenTo'](_0x58421e,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x20437c){return this['_footnotes']['find'](_0x23800d=>_0x23800d['id']===_0x20437c)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x93b773){this['_footnoteFormatter']=_0x93b773;}['_updateFootnotesCounters'](_0x45d3e6,_0x4d52f1=0x0){let _0x2044d5=!0x1;for(let _0x6910a5=_0x4d52f1;_0x6910a5<this['_footnotes']['length'];_0x6910a5++)this['_updateFootnoteRefCounter'](_0x45d3e6,_0x6910a5)&&(_0x2044d5=!0x0);return _0x2044d5;}['_insertEmptyFootnotesDefinitionsContainer'](_0x3ca7bd,_0x54cc6c){const _0x3cd6fe=_0x3ca7bd['createElement']('footnotesDefinitions',{});return _0x3ca7bd['append'](_0x3cd6fe,_0x54cc6c),this['_footnotesDefinitions']=_0x3cd6fe,_0x3cd6fe;}['_ensureFootnotesDefinitionsContainerExists'](_0x226422){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x48d608=this['_footnotes'][0x0]['reference']['root'],_0x1c7b8f=this['_insertEmptyFootnotesDefinitionsContainer'](_0x226422,_0x48d608);for(const _0xdcb27e of this['_footnotes'])_0xdcb27e['definition']['parent']||_0x226422['insert'](_0xdcb27e['definition'],_0x1c7b8f,'end');this['_updateFootnotesCounters'](_0x226422);}['_handleFootnotesDefinitionsObjectChanges'](_0x76ccb,_0x380a62){let _0x417360=!0x1;const {inserted:_0x3ea610,removed:_0x377e61,moved:_0xef7905}=this['_footnoteDefsContainerTracker']['getChanges'](_0x380a62);if(_0xef7905['length']&&(this['_footnotesDefinitions']=_0xef7905[0x0]),_0x3ea610['length']){if(_0x3ea610['length']>0x1||this['_footnotesDefinitions']&&_0x3ea610['some'](_0x3713f6=>_0x3713f6!==this['_footnotesDefinitions'])){const _0xc110a6=_0x76ccb['createElement']('footnotesDefinitions',{}),_0x3a2de3=[];this['_footnotesDefinitions']&&_0x3a2de3['push'](this['_footnotesDefinitions']),_0x3a2de3['push'](..._0x3ea610),_0x76ccb['insert'](_0xc110a6,_0x3a2de3[0x0],'before');for(const _0x353335 of _0x3a2de3)_0x76ccb['move'](_0x76ccb['createRangeIn'](_0x353335),_0x76ccb['createPositionAt'](_0xc110a6,'end')),_0x76ccb['remove'](_0x353335);this['_footnotesDefinitions']=_0xc110a6,this['_updateFootnotesCounters'](_0x76ccb),_0x417360=!0x0;}else this['_footnotesDefinitions']=_0x3ea610[0x0];}if(_0x377e61['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2135c9 of this['_footnotes'])_0x76ccb['remove'](_0x2135c9['reference']),_0x417360=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x417360;}['_handleFootnoteDefinitionsChanges'](_0x11d614,_0x55e627){let _0x3fc708=!0x1;const _0x196f13=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x4718e1,moved:_0x15c378}=this['_footnoteDefsTracker']['getChanges'](_0x55e627);for(const _0x209891 of[..._0x15c378,..._0x4718e1]){const _0x3060a0=_0x209891['getAttribute']('footnoteId'),_0x2849fb=this['getFootnote'](_0x3060a0);_0x2849fb&&(_0x2849fb['definition']=_0x209891),ensureDefinitionIsNotEmpty(_0x11d614,_0x196f13,_0x209891)&&(_0x3fc708=!0x0);}return _0x3fc708;}['_handleFootnoteReferencesChanges'](_0x3ab1f1,_0x53af1a){let _0x30662d=!0x1;const {removed:_0x215b99,inserted:_0x139bdb,moved:_0x3bb499}=this['_footnoteRefsTracker']['getChanges'](_0x53af1a);for(const _0x4c491e of _0x215b99)this['_handleRemoveFootnoteReferenceById'](_0x3ab1f1,_0x4c491e)&&(_0x30662d=!0x0);for(const _0x1d4df8 of _0x139bdb)this['_handleInsertedFootnoteReference'](_0x3ab1f1,_0x1d4df8)&&(_0x30662d=!0x0);for(const _0x1ca74e of _0x3bb499)this['_handleMovedFootnoteReference'](_0x3ab1f1,_0x1ca74e)&&(_0x30662d=!0x0);return _0x30662d;}['_handleFootnotesDefinitionsObjectSync'](_0xa67849){if(!this['_footnotesDefinitions'])return!0x1;let _0x309e3f=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x12542a=[];for(const _0xea7c88 of this['_footnotesDefinitions']['getChildren']()){const _0x1ebef4=_0xea7c88['getAttribute']('footnoteId');this['getFootnote'](_0x1ebef4)||(_0x12542a['unshift'](_0xea7c88),_0x309e3f=!0x0);}for(const _0x4b7328 of _0x12542a)_0xa67849['remove'](_0x4b7328);}const _0x38046e=new Set(),_0x35a3fe=[];for(const _0x373085 of this['_footnotesDefinitions']['getChildren']()){const _0x3922a5=_0x373085['getAttribute']('footnoteId');_0x38046e['has'](_0x3922a5)?(_0x35a3fe['unshift'](_0x373085),_0x309e3f=!0x0):_0x38046e['add'](_0x3922a5);}for(const _0x1f01e8 of _0x35a3fe)_0xa67849['remove'](_0x1f01e8);return this['_footnotesDefinitions']['childCount']||(_0xa67849['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x309e3f=!0x0),_0x309e3f;}['_handleInsertedFootnoteReference'](_0x3ceba3,_0x5bd9ed){if(this['_footnotes']['find'](_0x2f4f5f=>_0x2f4f5f['reference']===_0x5bd9ed))return!0x1;let _0x3707e3=!0x1;const _0x226abb=_0x5bd9ed['getAttribute']('footnoteId'),_0x46dcbe=this['_footnotes']['findIndex'](_0x1dc61e=>_0x1dc61e['id']===_0x226abb);-0x1!==_0x46dcbe&&(_0x3ceba3['remove'](this['_footnotes'][_0x46dcbe]['reference']),this['_footnotes']['splice'](_0x46dcbe,0x1),_0x3707e3=!0x0);let _0x950c14=this['_footnotesDefinitions']?findFootnoteDefinitionInContainer(this['_footnotesDefinitions'],_0x226abb):null;_0x950c14||(_0x950c14=_0x3ceba3['createElement']('footnoteDefinition',{'footnoteId':_0x226abb}),this['_footnotesDefinitions']&&(_0x3ceba3['insert'](_0x950c14,this['_footnotesDefinitions'],'end'),_0x3707e3=!0x0));const _0x88aa71={'id':_0x226abb,'reference':_0x5bd9ed,'definition':_0x950c14},_0x4e4b66=findInsertFootnoteReferenceIndex(this['editor']['model'],this['_footnotes'],_0x5bd9ed);this['_footnotes']['splice'](_0x4e4b66,0x0,_0x88aa71);let _0x234e46=_0x4e4b66;return-0x1!==_0x46dcbe&&(_0x234e46=Math['min'](_0x4e4b66,_0x46dcbe)),this['_updateFootnotesCounters'](_0x3ceba3,_0x234e46)&&(_0x3707e3=!0x0),_0x3707e3;}['_handleRemoveFootnoteReferenceById'](_0x447c03,_0xa12d6c){const _0x1c4ac7=this['_footnotes']['findIndex'](_0x1272cb=>_0x1272cb['id']===_0xa12d6c);if(-0x1===_0x1c4ac7)return!0x1;let _0x3c484e=!0x1;const _0x48b2f7=this['_footnotes'][_0x1c4ac7];return'$graveyard'!==_0x48b2f7['definition']['root']['rootName']&&(_0x447c03['remove'](_0x48b2f7['definition']),_0x3c484e=!0x0),this['_footnotes']['splice'](_0x1c4ac7,0x1),this['_updateFootnotesCounters'](_0x447c03,_0x1c4ac7)&&(_0x3c484e=!0x0),_0x3c484e;}['_handleMovedFootnoteReference'](_0x1d9e72,_0x361237){const _0x41ce17=_0x361237['getAttribute']('footnoteId'),_0x2a7a92=this['_footnotes']['findIndex'](_0xc78ffb=>_0xc78ffb['id']===_0x41ce17),_0x2a301b=this['_footnotes'][_0x2a7a92];let _0x1bd6d6=!0x1;_0x2a301b['reference']=_0x361237,this['_footnotes']['splice'](_0x2a7a92,0x1);const _0x2db873=findInsertFootnoteReferenceIndex(this['editor']['model'],this['_footnotes'],_0x361237);return this['_footnotes']['splice'](_0x2db873,0x0,_0x2a301b),this['_updateFootnotesCounters'](_0x1d9e72,Math['min'](_0x2a7a92,_0x2db873))&&(_0x1bd6d6=!0x0),_0x1bd6d6;}['_updateFootnoteRefCounter'](_0x13a5cd,_0x11532f){if(!this['_footnotesDefinitions'])return!0x1;const _0x5e3660=this['_footnotes'][_0x11532f];let _0x23fdc5;return _0x23fdc5=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x5e3660,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x11532f+0x1}):String(_0x11532f+0x1),_0x5e3660['reference']['getAttribute']('footnoteCounter')!=_0x23fdc5&&(_0x13a5cd['setAttribute']('footnoteCounter',_0x23fdc5,_0x5e3660['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x52f587){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(areArraysEqual(this['_footnotes']['map'](_0x18e5b3=>_0x18e5b3['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x3fb8c4=>_0x3fb8c4['getAttribute']('footnoteId'))))return!0x1;let _0x2c68d3=!0x1;for(let _0x257e6d=0x0;_0x257e6d<this['_footnotes']['length'];_0x257e6d++){const _0x475557=this['_footnotes'][_0x257e6d],_0x2ce66d=_0x52f587['createPositionBefore'](_0x475557['definition']),_0x4ce972=_0x52f587['createPositionAt'](this['_footnotesDefinitions'],_0x257e6d);_0x2ce66d['isEqual'](_0x4ce972)||(_0x52f587['move'](_0x52f587['createRangeOn'](_0x475557['definition']),_0x4ce972),_0x2c68d3=!0x0);}return _0x2c68d3;}['_ensureFootnotesReferencesHaveProperOrder'](_0x481e14){if(!this['_footnotes']['length'])return!0x1;const {model:_0x436d30}=this['editor'];let _0x24a8ec=!0x1;for(let _0x6084d8=0x0;_0x6084d8<this['_footnotes']['length']-0x1;_0x6084d8++){const _0x1ad016=this['_footnotes'][_0x6084d8],_0x5613eb=this['_footnotes'][_0x6084d8+0x1],_0x40b99e=_0x436d30['createPositionBefore'](_0x1ad016['reference']),_0x39ff18=_0x436d30['createPositionBefore'](_0x5613eb['reference']);'after'===_0x40b99e['compareWith'](_0x39ff18)&&(this['_handleMovedFootnoteReference'](_0x481e14,_0x1ad016['reference']),_0x6084d8=-0x1,_0x24a8ec=!0x0);}return _0x24a8ec;}}function ensureDefinitionIsNotEmpty(_0x176e29,_0x4682d4,_0x15b0a1){if(_0x15b0a1['childCount'])return!0x1;const _0x272924=_0x4682d4?'paragraph':'footnoteInlineContent';return _0x176e29['insert'](_0x176e29['createElement'](_0x272924),_0x15b0a1),!0x0;}function findFootnoteDefinitionInContainer(_0x60fb71,_0x4e405d){for(const _0x468b92 of _0x60fb71['getChildren']())if(_0x468b92['getAttribute']('footnoteId')===_0x4e405d)return _0x468b92;return null;}function findInsertFootnoteReferenceIndex(_0x3eda16,_0x36ffe0,_0x5e2842){if(0x0===_0x36ffe0['length'])return 0x0;const _0x530438=_0x3eda16['createPositionBefore'](_0x5e2842);for(let _0x3965b4=0x0;_0x3965b4<_0x36ffe0['length'];_0x3965b4++){const _0x363b75=_0x36ffe0[_0x3965b4],_0x5a27a1=_0x3eda16['createPositionBefore'](_0x363b75['reference']);if('before'===_0x530438['compareWith'](_0x5a27a1))return _0x3965b4;}const _0x43cc90=_0x5e2842['root'];let _0x3f54aa=-0x1;for(let _0x44fb9d=_0x36ffe0['length']-0x1;_0x44fb9d>=0x0;_0x44fb9d--)if(_0x36ffe0[_0x44fb9d]['reference']['root']===_0x43cc90){_0x3f54aa=_0x44fb9d;break;}if(-0x1!==_0x3f54aa)return _0x3f54aa+0x1;const _0xa2725d=_0x3eda16['document']['getRootNames'](),_0x1bcaaa=_0xa2725d['indexOf'](_0x43cc90['rootName']),_0xeaa85e=_0xa2725d[_0x1bcaaa+0x1];if(_0xeaa85e){for(let _0x358da7=0x0;_0x358da7<_0x36ffe0['length'];_0x358da7++)if(_0x36ffe0[_0x358da7]['reference']['root']['rootName']===_0xeaa85e)return _0x358da7;}return _0x36ffe0['length'];}function areArraysEqual(_0x519205,_0x346a5a){if(_0x519205['length']!==_0x346a5a['length'])return!0x1;for(let _0x19ce99=0x0;_0x19ce99<_0x519205['length'];_0x19ce99++)if(_0x519205[_0x19ce99]!==_0x346a5a[_0x19ce99])return!0x1;return!0x0;}class InsertFootnoteCommand extends Command{['refresh'](){const _0x2b521f=this['editor']['model']['document']['selection'],_0x3b80ad=this['_getPositionToInsertFootnote'](_0x2b521f);this['isEnabled']=!!_0x3b80ad;}['execute'](_0x34e757){const {editor:_0x5827d7}=this,{model:_0x31e2c0}=_0x5827d7,{selection:_0x22a4b0}=_0x31e2c0['document'],_0x131bc5=this['_getPositionToInsertFootnote'](_0x22a4b0);if(!_0x131bc5)return;const _0x3ee9ab=_0x5827d7['plugins']['get']('FootnotesEditing'),_0x1e7587=_0x34e757?.['footnoteId']??uid();isFootnoteIdValid(_0x1e7587)?(_0x31e2c0['change'](_0xd16688=>{const _0x4da855=_0xd16688['createElement']('footnoteRef',{'footnoteId':_0x1e7587});_0x31e2c0['insertObject'](_0x4da855,_0x131bc5,null);}),_0x3ee9ab['_moveSelectionToFootnoteDefinition'](_0x1e7587)):logWarning('insert-footnote-command-executed-with-invalid-id');}['_getPositionToInsertFootnote'](_0x5dd232){const {model:_0x3f4ee2}=this['editor'],{schema:_0x351a2a}=_0x3f4ee2,_0x3c4669=_0x5dd232['getFirstRange']();for(const _0x42ff80 of _0x3c4669['getItems']())if(_0x351a2a['isBlock'](_0x42ff80)||_0x351a2a['isObject'](_0x42ff80))return null;const _0xaafc3b=_0x3c4669['end'];return _0x351a2a['checkChild'](_0xaafc3b,'footnoteRef')?_0xaafc3b:null;}}function isFootnoteIdValid(_0x4a761e){return'string'==typeof _0x4a761e&&_0x4a761e['length']>0x0&&!/\s/['test'](_0x4a761e)&&!/^\d/['test'](_0x4a761e);}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:_0x43b034}=this;_0x43b034['config']['define']('footnotes.multiBlock',!0x0),_0x43b034['commands']['add']('insertFootnote',new InsertFootnoteCommand(_0x43b034)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){checkLicense$c(this);}['_moveSelectionToFootnoteDefinition'](_0x705297){const {plugins:_0x2200d8,editing:_0x3852ce,model:_0x506f8f}=this['editor'],_0x498b3d=_0x2200d8['get'](FootnotesTracker)['getFootnote'](_0x705297);return!!_0x498b3d&&(_0x506f8f['change'](_0x3e3bed=>{_0x3e3bed['setSelection'](_0x3e3bed['createPositionAt'](_0x498b3d['definition'],'end'));}),_0x3852ce['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5e1d12){const {plugins:_0x45d4c2,editing:_0x47fb56,model:_0x4c1e02}=this['editor'],_0x1aba6b=_0x45d4c2['get'](FootnotesTracker)['getFootnote'](_0x5e1d12);return!!_0x1aba6b&&(_0x4c1e02['change'](_0x19d733=>{_0x19d733['setSelection'](_0x1aba6b['reference'],'on');}),_0x47fb56['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1cd747}=this['editor']['model'],_0x5141ab=this['editor']['config']['get']('footnotes.multiBlock');_0x1cd747['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1cd747['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1cd747['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5141ab?_0x1cd747['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1cd747['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1cd747['addChildCheck'](_0x2a6352=>{for(const _0x175275 of _0x2a6352)if('footnoteDefinition'===_0x175275['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2535de}=this,{conversion:_0x1d3236,editing:_0x330004}=_0x2535de,{t:t}=_0x2535de['locale'];_0x1d3236['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4a48e8,{writer:_0x2f7f9d,consumable:_0x2fcf5a})=>{const _0xc1ed3b=_0x4a48e8['getChild'](0x0);if(!_0xc1ed3b||!_0xc1ed3b['is']('element','a'))return null;const _0x5c45ba=_0xc1ed3b['getAttribute']('href')||'';if(!_0x5c45ba['startsWith']('#'))return null;const _0x2edbc5=_0x5c45ba['replace'](/^#/,'');if(!_0x2edbc5)return null;_0x2fcf5a['consume'](_0xc1ed3b,{'name':!0x0,'attributes':['href']});for(const {item:_0xeb03e5}of _0x330004['view']['createRangeIn'](_0xc1ed3b))_0xeb03e5['is']('$textProxy')?_0x2fcf5a['consume'](_0xeb03e5['textNode'],{'name':!0x0}):_0xeb03e5['is']('element')&&_0x2fcf5a['consume'](_0xeb03e5,{'name':!0x0});return _0x2f7f9d['createElement']('footnoteRef',{'footnoteId':_0x2edbc5});}}),_0x1d3236['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1b2f6e,{writer:_0x43324c})=>createFootnoteRefView(_0x1b2f6e,_0x43324c)}),_0x1d3236['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5cfb89,{writer:_0x5ed70f})=>{const _0x57cd8c=_0x5cfb89['getAttribute']('footnoteCounter');return toWidget(createFootnoteRefView(_0x5cfb89,_0x5ed70f),_0x5ed70f,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x57cd8c)});}});}['_defineDefinitionsConverters'](){const {editor:_0x14a816}=this,{t:t}=_0x14a816['locale'],{conversion:_0x27a00f}=_0x14a816;_0x27a00f['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x27a00f['for']('upcast')['add'](_0x41091b=>{_0x41091b['on']('element:ol',(_0x1174e2,_0x49dc0c,_0x170b4d)=>{const _0x1ed497=_0x49dc0c['viewItem'];if(!_0x1ed497['hasClass']('footnotes-list')||!_0x49dc0c['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x170b4d['consumable']['consume'](_0x1ed497,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2ad107,modelCursor:_0x38e0ce}=_0x170b4d['convertChildren'](_0x49dc0c['viewItem'],_0x49dc0c['modelCursor']);_0x49dc0c['modelRange']=_0x2ad107,_0x49dc0c['modelCursor']=_0x38e0ce;}),_0x41091b['on']('element:hr',(_0x3df069,_0x3fde74,_0x4fc354)=>{const _0x3b8da0=_0x3fde74['viewItem'];_0x3b8da0['hasClass']('footnotes-divider')&&_0x3fde74['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4fc354['consumable']['consume'](_0x3b8da0,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x27a00f['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x33b2a9,{writer:_0x353fec})=>createFootnotesWrapperView(_0x353fec)}),_0x27a00f['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5b504b,{writer:_0x11d1c9})=>{const _0x48931e=createFootnotesWrapperView(_0x11d1c9,{'data-footnotes-list-label':t('Footnotes')}),_0x22446e=toWidget(_0x48931e,_0x11d1c9,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x11d1c9['setCustomProperty']('footnotesDefinitions',!0x0,_0x22446e),_0x22446e;}});}['_defineDefinitionConverters'](){const {editor:_0x573fff}=this,{conversion:_0x186cb7,locale:_0x5ea5d3}=_0x573fff,_0x544778=_0x573fff['config']['get']('footnotes.multiBlock');_0x186cb7['for']('upcast')['add'](_0x244b1d=>{_0x244b1d['on']('element:li',(_0x163cbe,_0xae4eab,_0x2a25b5)=>{const _0x20b3be=_0xae4eab['viewItem'];if(!_0x20b3be['hasClass']('footnote-definition')||!_0x20b3be['getAttribute']('id'))return;const _0x23f152=_0x20b3be['parent'];if(!_0x23f152['is']('element','ol')||!_0x23f152['hasClass']('footnotes-list'))return;if(!_0x2a25b5['consumable']['test'](_0x20b3be,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x15099c=_0x2a25b5['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x20b3be['getAttribute']('id')});if(!_0x2a25b5['safeInsert'](_0x15099c,_0xae4eab['modelCursor']))return;_0x2a25b5['consumable']['consume'](_0x20b3be,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x14cf26=Array['from'](_0x20b3be['getChildren']())['find'](_0x9ec7d5=>_0x9ec7d5['is']('element')&&_0x9ec7d5['hasClass']('footnote-content'));for(const _0xe6b42f of _0x20b3be['getChildren']())_0xe6b42f['is']('element')&&(_0x2a25b5['consumable']['consume'](_0xe6b42f,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2a25b5['consumable']['consume'](_0xe6b42f,{'name':!0x0,'classes':'footnote-content'}));if(_0x14cf26){if(_0x544778)_0x2a25b5['convertChildren'](_0x14cf26,_0x15099c);else{const _0x485059=_0x2a25b5['writer']['createElement']('footnoteInlineContent');_0x2a25b5['writer']['insert'](_0x485059,_0x15099c),_0x2a25b5['convertChildren'](_0x14cf26,_0x485059);}}_0x2a25b5['updateConversionResult'](_0x15099c,_0xae4eab);});}),_0x186cb7['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4d35c9,{writer:_0x5f2f86})=>createFootnoteDefinitionView(_0x4d35c9,_0x5f2f86,_0x5ea5d3,{'dataPipeline':!0x0})}),_0x186cb7['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x38ac2c,{writer:_0x5265f4})=>createFootnoteDefinitionView(_0x38ac2c,_0x5265f4,_0x5ea5d3)});}['_defineBogusParagraphConverters'](){const {editor:_0x2771a9}=this,{conversion:_0x596415}=_0x2771a9;_0x2771a9['config']['get']('footnotes.multiBlock')?(_0x596415['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':footnoteBogusParagraphCreator(),'converterPriority':'high'}),_0x596415['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':footnoteBogusParagraphCreator({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2771a9['model']['document'],'change:data',()=>{footnoteDefinitionRefreshHandler(_0x2771a9['model'],_0x2771a9['editing']);})):(_0x596415['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':footnoteBogusParagraphCreator()}),_0x596415['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2488a2,{writer:_0x5d40f3})=>{const _0xfe4122=_0x5d40f3['createContainerElement']('span');return _0x5d40f3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xfe4122),_0xfe4122;}}));}['_defineKeyboardHandlers'](){const {editor:_0x18bea3}=this,{editing:_0x5f596e,t:t}=_0x18bea3,_0x4fbe43=_0x18bea3['model']['document']['selection'];_0x18bea3['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x18bea3['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5f596e['view']['document'],'enter',(_0x81213d,_0x296d34)=>{const _0x131571=getSelectedFootnoteRef(_0x4fbe43);if(_0x131571){const _0x199f5a=_0x131571['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x199f5a),_0x296d34['preventDefault'](),_0x81213d['stop']();}},{'context':isWidget});}['_defineClickHandlers'](){const {editor:_0x41b44b}=this,{editing:_0x1e9248}=_0x41b44b;_0x41b44b['editing']['view']['addObserver'](PointerObserver),_0x41b44b['editing']['view']['addObserver'](ClickObserver);let _0x157eb7=!0x1;this['listenTo'](_0x1e9248['view']['document'],'pointerdown',(_0x5d1fe9,_0x18672f)=>{const {target:_0x2dd807}=_0x18672f,_0x4ba60a=_0x1e9248['view']['document']['selection'];_0x157eb7=!!(_0x2dd807?.['is']('element','a')&&_0x2dd807['parent']?.['is']('element','sup')&&_0x2dd807['parent']['hasClass']('footnote'))&&_0x4ba60a['getSelectedElement']()===_0x2dd807['parent'];},{'priority':'high'}),this['listenTo'](_0x1e9248['view']['document'],'click',(_0x31b643,_0x3d85b4)=>{const {target:_0x497392}=_0x3d85b4;if(!_0x497392?.['is']('element','a'))return;if(_0x497392['parent']?.['is']('element','sup')&&_0x497392['parent']['hasClass']('footnote')&&!_0x157eb7)return void _0x3d85b4['preventDefault']();let _0x484642=_0x497392['getAttribute']('href');if(!_0x484642?.['startsWith']('#'))return;_0x484642=_0x484642['slice'](0x1);let _0xc4bde1=!0x1;(_0x484642['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x484642['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x484642))&&(_0xc4bde1=!0x0),_0xc4bde1&&(_0x3d85b4['preventDefault'](),_0x31b643['stop']());},{'priority':'high','context':'$capture'});}}function getSelectedFootnoteRef(_0x2b5905){const _0x159a75=_0x2b5905['getSelectedElement']();return _0x159a75?.['is']('element','footnoteRef')?_0x159a75:null;}function footnoteBogusParagraphCreator({dataPipeline:_0x505b7a}={}){return(_0x4b6ec8,{writer:_0xc656a2})=>{if(!shouldUseBogusParagraphInFootnote(_0x4b6ec8))return null;if(!_0x505b7a)return _0xc656a2['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2473bb=_0xc656a2['createContainerElement']('p');return _0xc656a2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2473bb),_0x2473bb;};}function shouldUseBogusParagraphInFootnote(_0x331bc5){const {parent:_0x4cd0b8}=_0x331bc5;if(!_0x4cd0b8?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4cd0b8['childCount'])return!0x1;for(const _0x2d8391 of _0x331bc5['getAttributeKeys']())if(!_0x2d8391['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2d8391)return!0x1;return!0x0;}function footnoteDefinitionRefreshHandler(_0x479f11,_0x203ea0){const _0x1dd41c=_0x479f11['document']['differ'],_0x3fd33c=new Set();for(const _0x200dce of _0x1dd41c['getChanges']()){const _0x57fc59='attribute'==_0x200dce['type']?_0x200dce['range']['start']['parent']:_0x200dce['position']['parent'];_0x57fc59['is']('element','footnoteDefinition')&&_0x3fd33c['add'](_0x57fc59);}for(const _0x5dafc4 of _0x3fd33c['values']()){const _0x16f6ae=Array['from'](_0x5dafc4['getChildren']())['filter'](_0x3cdb90=>shouldRefresh(_0x3cdb90,_0x203ea0['mapper']));for(const _0x4a2644 of _0x16f6ae)_0x203ea0['reconvertItem'](_0x4a2644);}}function shouldRefresh(_0x2adacb,_0xd19f2c){if(!_0x2adacb['is']('element','paragraph'))return!0x1;const _0x4cb728=_0xd19f2c['toViewElement'](_0x2adacb);return!!_0x4cb728&&shouldUseBogusParagraphInFootnote(_0x2adacb)!==_0x4cb728['is']('element','span');}function isFootnotesDefinitionsWidget(_0x498a68){return isWidget(_0x498a68)&&_0x498a68['is']('containerElement')&&!!_0x498a68['getCustomProperty']('footnotesDefinitions');}function createFootnotesWrapperView(_0x388fc3,_0x298858={}){const _0x125114=_0x388fc3['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4870f0=_0x388fc3['createContainerElement']('ol',{'class':'footnotes-list'},_0x388fc3['createSlot']());return _0x388fc3['createContainerElement']('div',{'class':'footnotes',..._0x298858},[_0x125114,_0x4870f0]);}function createFootnoteRefView(_0x24c2bb,_0xc1dce1){const _0x558664=_0x24c2bb['getAttribute']('footnoteId'),_0x51fe0d=_0x24c2bb['getAttribute']('footnoteCounter'),_0x166b96=_0xc1dce1['createUIElement']('a',{'href':'#'+_0x558664},function(_0x20440f){const _0x39e505=this['toDomElement'](_0x20440f);return _0x39e505['textContent']=_0x51fe0d,_0x39e505;}),_0x5bb06e=_0xc1dce1['createContainerElement']('sup',{'id':'ref-'+_0x558664,'class':'footnote'},[_0x166b96]);return _0x5bb06e['getFillerOffset']=()=>null,_0x5bb06e;}function createFootnoteDefinitionView(_0x1cb10a,_0x1439a8,_0x53cadc,{dataPipeline:_0x105c2b}={}){const {t:t}=_0x53cadc,_0x175dbf=_0x1cb10a['getAttribute']('footnoteId'),_0x495316=_0x1439a8['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x175dbf},function(_0x4351e8){const _0x15e183=this['toDomElement'](_0x4351e8);return _0x15e183['innerText']='^',_0x15e183;}),_0x49ea32=_0x105c2b?_0x1439a8['createContainerElement']('div',{'class':'footnote-content'}):toWidgetEditable(_0x1439a8['createEditableElement']('div',{'class':'footnote-content'}),_0x1439a8,{'label':t('Footnote\x20content.')});return _0x1439a8['insert'](_0x1439a8['createPositionAt'](_0x49ea32,0x0),_0x1439a8['createSlot']()),_0x1439a8['createContainerElement']('li',{'class':'footnote-definition','id':_0x175dbf},[_0x495316,_0x49ea32]);}async function checkLicense$c(_0x5514a1){const _0x1fb7df=_0x2865d6([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]),_0x343128=window[_0x2865d6([0x44,0x61,0x74,0x65])][_0x2865d6([0x6e,0x6f,0x77])](),_0x2645b0=_0x5514a1[_0x2865d6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xddf222=new window[(_0x2865d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3293a1=>{_0x2645b0[_0x2865d6([0x6f,0x6e,0x63,0x65])](_0x2865d6([0x72,0x65,0x61,0x64,0x79]),_0x3293a1);}),_0x4f4bdd={[_0x2865d6([0x6b,0x74,0x79])]:_0x2865d6([0x45,0x43]),[_0x2865d6([0x75,0x73,0x65])]:_0x2865d6([0x73,0x69,0x67]),[_0x2865d6([0x63,0x72,0x76])]:_0x2865d6([0x50,0x2d,0x32,0x35,0x36]),[_0x2865d6([0x78])]:_0x2865d6([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]),[_0x2865d6([0x79])]:_0x2865d6([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]),[_0x2865d6([0x61,0x6c,0x67])]:_0x2865d6([0x45,0x53,0x32,0x35,0x36])},_0x41650a=_0x2645b0[_0x2865d6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2865d6([0x67,0x65,0x74])](_0x2865d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x8a5430=await(async function(){let _0x5526e2,_0x423fba=null,_0x47f76a=null;try{if(_0x41650a==_0x2865d6([0x47,0x50,0x4c]))return _0x2865d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5526e2=(function(){const _0x23dd31=_0x41650a[_0x2865d6([0x73,0x70,0x6c,0x69,0x74])](_0x2865d6([0x2e]));if(0x3!=_0x23dd31[_0x2865d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x7e265d=_0x23dd31[0x1];return _0x2dc631(_0x7e265d);function _0x2dc631(_0xf2ca4){const _0x24d1cd=_0x507d7e(_0xf2ca4);return _0x24d1cd&&_0x4ab06a()?_0x24d1cd:null;function _0x4ab06a(){const _0x3dc51d=_0x24d1cd[_0x2865d6([0x6a,0x74,0x69])],_0x8b9258=window[_0x2865d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dc51d[_0x2865d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3dc51d[_0x2865d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3749e7={..._0x24d1cd,[_0x2865d6([0x6a,0x74,0x69])]:_0x3dc51d[_0x2865d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3dc51d[_0x2865d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3749e7[_0x2865d6([0x76,0x63])],_0x4d30bd(_0x3749e7)==_0x8b9258;}}}()),!_0x5526e2)return _0x2865d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x5526e2[_0x2865d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x47f76a=function(_0x332ed5,_0x3f1d16){return new window[(_0x2865d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x352271=>{if(_0x2a7f40())return _0x352271(_0x2865d6([0x56,0x61,0x6c,0x69,0x64]));_0x3c3004(),_0x2645b0[_0x2865d6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2865d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2037ac=!0x1;const _0x13b516=uid();function _0x457a88(_0x5bbab2){return!!_0x5bbab2&&(typeof _0x5bbab2===_0x2865d6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5bbab2===_0x2865d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5bbab2[_0x2865d6([0x74,0x68,0x65,0x6e])]===_0x2865d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5bbab2[_0x2865d6([0x63,0x61,0x74,0x63,0x68])]===_0x2865d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4cd117(_0x5ea18e){_0x1e3bfb(_0x5ea18e)[_0x2865d6([0x74,0x68,0x65,0x6e])](_0x17a24a=>{if(!_0x17a24a||_0x17a24a[_0x2865d6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2865d6([0x6f,0x6b]))return _0x2865d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4aaea1(_0x4d30bd(_0x13b516+_0x3f1d16))!=_0x17a24a[_0x2865d6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2865d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2865d6([0x56,0x61,0x6c,0x69,0x64]);})[_0x2865d6([0x74,0x68,0x65,0x6e])](_0x47553f=>(_0x213eb0(),_0x47553f),()=>{const _0x2d7dce=_0x4edad6();return null==_0x2d7dce?(_0x213eb0(),_0x2865d6([0x56,0x61,0x6c,0x69,0x64])):_0x2865d6(_0x343128-_0x2d7dce>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2865d6([0x74,0x68,0x65,0x6e])](_0x352271)[_0x2865d6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x352271(_0x2865d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3de5ce=0x36ee80;function _0x213eb0(){const _0x533f83=_0x2865d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4aaea1(_0x4d30bd(_0x332ed5)),_0x4e3475=_0x478c97(_0x4aaea1(window[_0x2865d6([0x4d,0x61,0x74,0x68])][_0x2865d6([0x63,0x65,0x69,0x6c])](_0x343128/_0x3de5ce)));window[_0x2865d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2865d6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x533f83,_0x4e3475);}function _0x4edad6(){const _0x591f42=_0x2865d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4aaea1(_0x4d30bd(_0x332ed5)),_0x4a2c99=window[_0x2865d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2865d6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x591f42);return _0x4a2c99?window[_0x2865d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x478c97(_0x4a2c99),0x10)*_0x3de5ce:null;}function _0x1e3bfb(_0x42c829){return new window[(_0x2865d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c4271,_0xc49b60)=>{_0x42c829[_0x2865d6([0x74,0x68,0x65,0x6e])](_0x3c4271,_0xc49b60),window[_0x2865d6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc49b60,0x1d4c0);});}}_0x2645b0[_0x2865d6([0x6f,0x6e])](_0x2865d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x414cae,_0x1783e0)=>{if(_0x1783e0[0x0]!=_0x332ed5)return _0x352271(_0x2865d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1783e0[0x1]={..._0x1783e0[0x1],[_0x2865d6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x13b516};},{[_0x2865d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2865d6([0x68,0x69,0x67,0x68])}),_0x2645b0[_0x2865d6([0x6f,0x6e])](_0x2865d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x20098f=>{_0x457a88(_0x20098f[_0x2865d6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2037ac=!0x0,_0x4cd117(_0x20098f[_0x2865d6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2865d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2865d6([0x6c,0x6f,0x77])}),_0xddf222[_0x2865d6([0x74,0x68,0x65,0x6e])](()=>{_0x2037ac||_0x352271(_0x2865d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2a7f40(){return _0x2645b0[_0x2865d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2865d6([0x76,0x69,0x65,0x77])][_0x2865d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2865d6([0x61,0x75,0x74,0x6f]);}function _0x3c3004(){_0x2645b0[_0x2865d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2865d6([0x76,0x69,0x65,0x77])][_0x2865d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2865d6([0x61,0x75,0x74,0x6f]);}}(_0x5526e2[_0x2865d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5526e2[_0x2865d6([0x6a,0x74,0x69])]));const _0x4ccf92=await(async function(){let _0x1f5265=!0x0;try{const _0x1656d4=_0x41650a[_0x2865d6([0x73,0x70,0x6c,0x69,0x74])](_0x2865d6([0x2e])),[_0x18f151,_0x29ee27,_0x1b0b3c]=_0x1656d4;return _0x11cf37(_0x18f151),await _0x10ef62(_0x18f151,_0x29ee27,_0x1b0b3c),_0x1f5265;}catch{return!0x1;}function _0x11cf37(_0x3b253e){const _0x2b22c5=_0x507d7e(_0x3b253e);_0x2b22c5&&_0x2b22c5[_0x2865d6([0x61,0x6c,0x67])]==_0x2865d6([0x45,0x53,0x32,0x35,0x36])||(_0x1f5265=!0x1);}async function _0x10ef62(_0x36d83b,_0x3c1850,_0x3ac37e){const _0x3b78eb=window[_0x2865d6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2865d6([0x66,0x72,0x6f,0x6d])](_0x5df39a(_0x3ac37e),_0x2e6917=>_0x2e6917[_0x2865d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d1cf0=new window[(_0x2865d6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2865d6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36d83b+_0x2865d6([0x2e])+_0x3c1850),_0x57fcfc=window[_0x2865d6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2865d6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57fcfc)return;const _0x1a7588=await _0x57fcfc[_0x2865d6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2865d6([0x6a,0x77,0x6b]),_0x4f4bdd,{[_0x2865d6([0x6e,0x61,0x6d,0x65])]:_0x2865d6([0x45,0x43,0x44,0x53,0x41]),[_0x2865d6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2865d6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2865d6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57fcfc[_0x2865d6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2865d6([0x6e,0x61,0x6d,0x65])]:_0x2865d6([0x45,0x43,0x44,0x53,0x41]),[_0x2865d6([0x68,0x61,0x73,0x68])]:{[_0x2865d6([0x6e,0x61,0x6d,0x65])]:_0x2865d6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a7588,_0x3b78eb,_0x1d1cf0)||(_0x1f5265=!0x1);}}());return _0x4ccf92?(function(){const _0x1635d1=_0x5526e2[_0x2865d6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1635d1)return!0x1;if(_0x1635d1[_0x2865d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2865d6([0x2a])))return!0x0;if(_0x1635d1[_0x2865d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2865d6([0x46,0x4f,0x4f])))return!0x0;return!0x1;}())?(function(){const _0x2b0391=[_0x2865d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2865d6([0x74,0x72,0x69,0x61,0x6c])][_0x2865d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5526e2[_0x2865d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x343128/0x3e8:0x69cb0e80;return _0x5526e2[_0x2865d6([0x65,0x78,0x70])]<_0x2b0391;}())?_0x2865d6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x376623=_0x5526e2[_0x2865d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x376623||0x0==_0x376623[_0x2865d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41f224}=new URL(window[_0x2865d6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x376623[_0x2865d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41f224))return!0x0;const _0x2d9863=_0x41f224[_0x2865d6([0x73,0x70,0x6c,0x69,0x74])](_0x2865d6([0x2e]));return _0x376623[_0x2865d6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30dc4a=>_0x30dc4a[_0x2865d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2865d6([0x2a])))[_0x2865d6([0x6d,0x61,0x70])](_0x22a744=>_0x22a744[_0x2865d6([0x73,0x70,0x6c,0x69,0x74])](_0x2865d6([0x2e])))[_0x2865d6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3dacbd=>_0x3dacbd[_0x2865d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2d9863[_0x2865d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2865d6([0x6d,0x61,0x70])](_0x5b53c2=>Array(_0x2d9863[_0x2865d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5b53c2[_0x2865d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2865d6([0x66,0x69,0x6c,0x6c])](_0x5b53c2[0x0]===_0x2865d6([0x2a])?_0x2865d6([0x2a]):'')[_0x2865d6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5b53c2))[_0x2865d6([0x73,0x6f,0x6d,0x65])](_0x580efe=>_0x2d9863[_0x2865d6([0x65,0x76,0x65,0x72,0x79])]((_0x374633,_0x25ec71)=>_0x580efe[_0x25ec71]===_0x374633||_0x580efe[_0x25ec71]===_0x2865d6([0x2a])));}())?(_0x5526e2[_0x2865d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2865d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x423fba=function(_0x410fab){const _0x29ad49=new window[(_0x2865d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x542848=>setTimeout(_0x542848,0x93ecc)),_0x5e5780=_0xddf222[_0x2865d6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2865d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x870e45=>{let _0x51cb4a=0x0;_0x2645b0[_0x2865d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2865d6([0x6f,0x6e])](_0x2865d6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3bd799,_0x5a271f)=>{_0x5a271f[0x0][_0x2865d6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51cb4a++,0x5e8==_0x51cb4a&&(_0x870e45(),_0x3bd799[_0x2865d6([0x6f,0x66,0x66])]());});})),_0x37509d=[_0x29ad49,_0x5e5780];return window[_0x2865d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2865d6([0x72,0x61,0x63,0x65])](_0x37509d)[_0x2865d6([0x74,0x68,0x65,0x6e])](()=>_0x410fab);}(_0x2865d6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x423fba&&_0x47f76a)return new window[(_0x2865d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e32a3,_0xdd3ff9)=>{_0x423fba[_0x2865d6([0x74,0x68,0x65,0x6e])](_0x4e32a3,_0xdd3ff9),_0x47f76a[_0x2865d6([0x74,0x68,0x65,0x6e])](_0x2211f5=>{_0x2211f5!=_0x2865d6([0x56,0x61,0x6c,0x69,0x64])&&_0x4e32a3(_0x2211f5);},_0xdd3ff9);});return _0x423fba||_0x47f76a||_0x2865d6([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2865d6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2865d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2865d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2865d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x507d7e(_0x42c08d){return _0x42c08d[_0x2865d6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2865d6([0x65,0x79]))?JSON[_0x2865d6([0x70,0x61,0x72,0x73,0x65])](_0x5df39a(_0x42c08d)):null;}function _0x5df39a(_0x1e82da){return window[_0x2865d6([0x61,0x74,0x6f,0x62])](_0x1e82da[_0x2865d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2865d6([0x2b]))[_0x2865d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2865d6([0x2f])));}function _0x4d30bd(_0x39da0a){let _0x20dd86=0x1505;function _0x2ecf20(_0x426ddc){for(let _0x27dbe1=0x0;_0x27dbe1<_0x426ddc[_0x2865d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27dbe1++){const _0x43c3c0=_0x426ddc[_0x2865d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x27dbe1);_0x20dd86=(_0x20dd86<<0x5)+_0x20dd86+_0x43c3c0,_0x20dd86&=_0x20dd86;}}return function _0x37440d(_0x55dc3){Array[_0x2865d6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x55dc3)?_0x55dc3[_0x2865d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37440d):_0x55dc3&&typeof _0x55dc3==_0x2865d6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2865d6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x55dc3)[_0x2865d6([0x73,0x6f,0x72,0x74])]()[_0x2865d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5be798,_0x4d1897])=>{_0x2ecf20(_0x5be798),_0x37440d(_0x4d1897);}):_0x2ecf20(window[_0x2865d6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x55dc3));}(_0x39da0a),_0x20dd86>>>0x0;}function _0x4aaea1(_0x2fb263){return _0x2fb263[_0x2865d6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2865d6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2865d6([0x30]));}function _0x478c97(_0x40386b){return _0x40386b[_0x2865d6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2865d6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2865d6([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d0b92(){}function _0x2865d6(_0x1d27a7){return _0x1d27a7['map'](_0x31ac4f=>String['fromCharCode'](_0x31ac4f))['join']('');}!function(_0xce2c6e){const _0x49eb23=(function(){const _0x497791=window[_0x2865d6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2865d6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2865d6([0x6e,0x6f,0x77])]())[_0x2865d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2865d6([0x2e]),'');let _0x3041fb=_0x2865d6([0x75]);for(let _0x186177=0x0;_0x186177<_0x497791[_0x2865d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x186177+=0x2){let _0xcc6e1a=window[_0x2865d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x497791[_0x2865d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x186177,_0x186177+0x2));_0xcc6e1a>=_0x1fb7df[_0x2865d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xcc6e1a-=_0x1fb7df[_0x2865d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3041fb+=_0x1fb7df[_0xcc6e1a];}return _0x3041fb;}());_0x2645b0[_0x49eb23]=_0x2865d6([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xce2c6e,_0xce2c6e!=_0x2865d6([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0xddf222,_0x2645b0[_0x2865d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2865d6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d0b92,_0x2645b0[_0x2865d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2865d6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d0b92,_0x2645b0[_0x2865d6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2865d6([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x8a5430);}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:_0x43d31b}=this,{plugins:_0x5a8026,model:_0xbb95ec}=_0x43d31b,_0x116f5b=_0x5a8026['get'](ClipboardPipeline),_0x5d6d23=_0x5a8026['get'](FootnotesTracker);this['listenTo'](_0x116f5b,'outputTransformation',(_0x1282ac,_0x336a8f)=>{const _0x213b71=pickAllFootnotesRefsIdsFromRange(_0xbb95ec['createRangeIn'](_0x336a8f['content']));if(!_0x213b71['length'])return;const _0x5275d3=_0x5d6d23['getFootnotes'](),_0x3d9f25=_0x213b71['reduce']((_0x4988a9,_0x2798f0)=>{const _0x435262=_0x5275d3['find'](_0x2bcb22=>_0x2bcb22['id']===_0x2798f0);if(_0x435262){const _0x2d475a=_0x43d31b['data']['toView'](_0x435262['definition'],{'isClipboardPipeline':!0x0}),_0x5d3eaf=_0x43d31b['data']['htmlProcessor']['toData'](_0x2d475a);_0x4988a9[_0x435262['id']]=_0x5d3eaf;}return _0x4988a9;},Object['create'](null));_0x336a8f['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x3d9f25));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x22115f}=this,{model:_0x188253,plugins:_0x5e7281}=_0x22115f,{view:_0x1b6c58}=_0x22115f['editing'],_0x47e461=_0x5e7281['get'](ClipboardPipeline),_0x11520a=_0x5e7281['get'](FootnotesTracker),_0x5eec06=_0x22115f['config']['get']('footnotes.multiBlock');let _0x1b8355=null;this['listenTo'](_0x1b6c58['document'],'clipboardInput',(_0x41a688,_0x23b69f)=>{const _0x27c26e=_0x23b69f['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x1b8355=_0x27c26e?JSON['parse'](_0x27c26e):null;}),this['listenTo'](_0x47e461,'contentInsertion',(_0x19f5ba,_0x36c4ed)=>{const _0x1837fb=_0x36c4ed['sourceEditorId']===this['editor']['id'];_0x1837fb&&'drop'===_0x36c4ed['method']||_0x188253['change'](_0x4455a3=>{let _0x1a993d=_0x11520a['getFootnotesDefinitionsObjectElement']();const _0x41db70=!!_0x1a993d&&Array['from'](_0x188253['document']['selection']['getSelectedBlocks']())['includes'](_0x1a993d);if(!_0x1b8355&&areThereFootnotesRefsInRange(_0x188253['createRangeIn'](_0x36c4ed['content']))&&(_0x1b8355=extractFootnotesDefinitionsFromContent(_0x4455a3,_0x36c4ed['content'])),(_0x1a993d&&!_0x41db70||!_0x1a993d&&!_0x1b8355)&&removeFootnoteDefinitionsFromFragment(_0x4455a3,_0x36c4ed['content']),!_0x1b8355)return;const {selection:_0x21cab8}=_0x188253['document'],_0x4f8f25=_0x21cab8['getFirstRange']()['root'];_0x1a993d&&!_0x41db70||(_0x1a993d=findFootnoteDefinitionsElementInFragment(_0x4455a3,_0x36c4ed['content']),_0x1a993d||=_0x11520a['_insertEmptyFootnotesDefinitionsContainer'](_0x4455a3,_0x4f8f25));const _0x3ef118=Array['from'](_0x21cab8['getRanges']())['flatMap'](pickAllFootnotesRefsIdsFromRange),_0x3280df=regenerateFootnoteIdsInFragment(_0x4455a3,_0x36c4ed['content'],_0x121364=>{if(!_0x1837fb)return!0x0;return!!_0x11520a['getFootnote'](_0x121364)&&!_0x3ef118['includes'](_0x121364);});for(const [_0x2e4629,_0x510965]of Object['entries'](_0x1b8355)){const _0x3b3147=_0x3280df[_0x2e4629]||_0x2e4629;let _0x30a52b;if('string'!=typeof _0x510965)_0x30a52b=_0x510965,_0x3b3147!==_0x2e4629&&_0x4455a3['setAttribute']('footnoteId',_0x3b3147,_0x30a52b);else{_0x30a52b=_0x4455a3['createElement']('footnoteDefinition',{'footnoteId':_0x3b3147});const _0x4db0a9=_0x22115f['data']['htmlProcessor']['toView'](_0x510965);let _0x5bd8b7;if(_0x5eec06)_0x5bd8b7=_0x22115f['data']['toModel'](_0x4db0a9,_0x30a52b);else{_0x5bd8b7=_0x4455a3['createElement']('footnoteInlineContent');const _0x105f5d=_0x22115f['data']['toModel'](_0x4db0a9,_0x5bd8b7);_0x4455a3['insert'](_0x105f5d,_0x5bd8b7);}_0x4455a3['append'](_0x5bd8b7,_0x30a52b);}_0x4455a3['insert'](_0x30a52b,_0x1a993d,'end');}_0x1b8355=null;});});}}function removeFootnoteDefinitionsFromFragment(_0x1f20d6,_0xf0c61f){const _0x7f8ef2=[];for(const {item:_0x1ed876}of _0x1f20d6['createRangeIn'](_0xf0c61f))_0x1ed876['is']('element','footnotesDefinitions')&&_0x7f8ef2['push'](_0x1ed876);for(const _0x3e015d of _0x7f8ef2)_0x1f20d6['remove'](_0x3e015d);}function findFootnoteDefinitionsElementInFragment(_0xcf938d,_0x5f3804){for(const {item:_0x1c3141}of _0xcf938d['createRangeIn'](_0x5f3804))if(_0x1c3141['is']('element','footnotesDefinitions'))return _0x1c3141;return null;}function pickAllFootnotesRefsIdsFromRange(_0x1db903){const _0x2851c3=new Set();for(const {item:_0x4d36b3}of _0x1db903)_0x4d36b3['is']('element','footnoteRef')&&_0x2851c3['add'](_0x4d36b3['getAttribute']('footnoteId'));return Array['from'](_0x2851c3);}function areThereFootnotesRefsInRange(_0x27743c){for(const {item:_0x1c9167}of _0x27743c)if(_0x1c9167['is']('element','footnoteRef'))return!0x0;return!0x1;}function extractFootnotesDefinitionsFromContent(_0x228a12,_0x5b5164){const _0x3a83e4=findFootnoteDefinitionsElementInFragment(_0x228a12,_0x5b5164);if(!_0x3a83e4)return null;const _0x44e43f=Object['create'](null);for(const _0x35abe7 of _0x3a83e4['getChildren']())_0x35abe7['is']('element','footnoteDefinition')&&_0x35abe7['hasAttribute']('footnoteId')&&(_0x44e43f[_0x35abe7['getAttribute']('footnoteId')]=_0x228a12['cloneElement'](_0x35abe7,!0x0));return Object['keys'](_0x44e43f)['length']?_0x44e43f:null;}function regenerateFootnoteIdsInFragment(_0xe9e7ce,_0x517d44,_0x2fc46e){const _0x2cd5ec=Object['create'](null);for(const {item:_0x314160}of _0xe9e7ce['createRangeIn'](_0x517d44))if(_0x314160['is']('element','footnoteRef')){const _0x41920b=_0x314160['getAttribute']('footnoteId');if(!_0x2fc46e(_0x41920b))continue;_0x2cd5ec[_0x41920b]||(_0x2cd5ec[_0x41920b]=uid()),_0xe9e7ce['setAttribute']('footnoteId',_0x2cd5ec[_0x41920b],_0x314160);}return _0x2cd5ec;}class FootnotesUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x593a15}=this,{componentFactory:_0x55a7b7}=_0x593a15['ui'];_0x55a7b7['add']('insertFootnote',getInsertFootnoteButtonCreator(_0x593a15,ButtonView)),_0x55a7b7['add']('menuBar:insertFootnote',getInsertFootnoteButtonCreator(_0x593a15,MenuBarMenuListItemButtonView)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x24e084=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5df71c;for(const _0x23eb57 in _0x24e084){const _0x3afd51=_0x23eb57,_0x4af0bc=_0x24e084[_0x3afd51];if('footnotesLicenseKeyValid'==_0x4af0bc||'footnotesLicenseKeyInvalid'==_0x4af0bc||'footnotesLicenseKeyExpired'==_0x4af0bc||'footnotesLicenseKeyDomainLimit'==_0x4af0bc||'footnotesLicenseKeyNotAllowed'==_0x4af0bc||'footnotesLicenseKeyEvaluationLimit'==_0x4af0bc||'footnotesLicenseKeyUsageLimit'==_0x4af0bc){delete _0x24e084[_0x3afd51],_0x5df71c=_0x4af0bc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x5df71c&&_0x24e084['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x5df71c&&_0x24e084['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x5df71c&&_0x24e084['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x5df71c&&_0x24e084['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x5df71c&&_0x24e084['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x5df71c&&_0x24e084['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getInsertFootnoteButtonCreator(_0xf7d7e1,_0xc81969){const _0xc0d3d4=_0xf7d7e1['commands']['get']('insertFootnote');return _0xaa4d5=>{const {t:t}=_0xaa4d5,_0x55b23b=new _0xc81969(_0xaa4d5),_0x19f111=_0x55b23b instanceof MenuBarMenuListItemButtonView;return _0x55b23b['bind']('isEnabled')['to'](_0xc0d3d4,'isEnabled'),_0x55b23b['set']({'label':t(_0x19f111?'Footnote':'Insert\x20footnote'),'icon':IconFootnote,'tooltip':!0x0}),_0x55b23b['on']('execute',()=>{_0xc0d3d4['execute'](),_0xf7d7e1['editing']['view']['focus']();}),_0x55b23b;};}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_BASE_CANONICAL_DEFINITIONS_STYLES=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],FOOTNOTES_ADDITIONAL_CANONICAL_DEFINITIONS_STYLES=['arabic-indic'],FOOTNOTES_DEFINITION_STYLES_ALIASES=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),FOOTNOTES_DEFINITIONS_STYLES=[...FOOTNOTES_BASE_CANONICAL_DEFINITIONS_STYLES,...FOOTNOTES_ADDITIONAL_CANONICAL_DEFINITIONS_STYLES,'lower-alpha','upper-alpha'];class FootnotesStyleCommand extends Command{['refresh'](){const {editor:_0x466fef}=this,_0x93d626=_0x466fef['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x93d626,this['value']=_0x93d626?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x23d349}){const {editor:_0x18cea5}=this,_0x221056=_0x18cea5['plugins']['get'](FootnotesTracker),_0x251e7e=_0x221056['getFootnotesDefinitionsObjectElement']();_0x251e7e&&FOOTNOTES_DEFINITIONS_STYLES['includes'](_0x23d349)&&_0x18cea5['model']['change'](_0x4d0b26=>{_0x4d0b26['setAttribute']('footnotesListStyle',_0x23d349,_0x251e7e),_0x221056['_updateFootnotesCounters'](_0x4d0b26);});}}class FootnotesStartCommand extends Command{['refresh'](){const {editor:_0x501a79}=this,_0x501006=_0x501a79['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x501006,this['value']=_0x501006?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x56dd7f}){const {editor:_0xe08db9}=this,_0x185743=_0xe08db9['plugins']['get'](FootnotesTracker),_0x184730=_0x185743['getFootnotesDefinitionsObjectElement']();_0x184730&&Number['isInteger'](_0x56dd7f)&&_0xe08db9['model']['change'](_0x20f933=>{_0x20f933['setAttribute']('footnotesListStart',_0x56dd7f,_0x184730),_0x185743['_updateFootnotesCounters'](_0x20f933);});}}function formatDecimalLeadingZeroFootnote(_0x1de6bb,_0x376244){return String(_0x1de6bb)['padStart'](_0x376244,'0');}function formatLatinFootnote(_0x3a5663,_0x5a5e5f){let _0x2a0f90='',_0x2296a1=_0x3a5663;for(;_0x2296a1>0x0;){const _0x2f82d3=(_0x2296a1-0x1)%0x1a;_0x2a0f90=String['fromCharCode'](0x61+_0x2f82d3)+_0x2a0f90,_0x2296a1=Math['floor']((_0x2296a1-0x1)/0x1a);}return _0x5a5e5f?_0x2a0f90['toUpperCase']():_0x2a0f90;}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 formatRomanFootnote(_0xae29fd,_0xf74e92){let _0x5eed7f='',_0x272390=_0xae29fd;for(const {value:_0xfdce1f,numeral:_0x10be94}of ROMAN_MAP)for(;_0x272390>=_0xfdce1f;)_0x5eed7f+=_0x10be94,_0x272390-=_0xfdce1f;return _0xf74e92?_0x5eed7f:_0x5eed7f['toLowerCase']();}const ARABIC_INDIC_DIGITS=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];function formatArabicIndicFootnote(_0xf9f981){return String(_0xf9f981)['replace'](/\d/g,_0x54eec2=>ARABIC_INDIC_DIGITS[Number(_0x54eec2)]);}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:_0x5df96c}=this;_0x5df96c['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5df96c['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5df96c['config']['define']('footnotes.footnotesProperties.listStyles',[...FOOTNOTES_BASE_CANONICAL_DEFINITIONS_STYLES]),_0x5df96c['commands']['add']('footnotesStyle',new FootnotesStyleCommand(_0x5df96c)),_0x5df96c['commands']['add']('footnotesStart',new FootnotesStartCommand(_0x5df96c)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x356d86}=this,{schema:_0x2455ea}=_0x356d86['model'];_0x2455ea['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x4ca8c1}=this,{conversion:_0x2b1564,model:_0xa99b5e}=_0x4ca8c1,{schema:_0x25c178}=_0xa99b5e;_0x2b1564['for']('upcast')['add'](_0x30a27c=>{_0x30a27c['on']('element:ol',(_0x42b4c2,_0x21fc56,_0x4cb6e0)=>{const _0x127055=_0x21fc56['viewItem'],_0x17b4d4=_0x21fc56['modelCursor']?.['parent'];_0x127055['hasClass']('footnotes-list')&&_0x17b4d4?.['is']('element','footnotesDefinitions')&&(upcastFootnotesListStart(_0x127055,_0x17b4d4,_0x4cb6e0,_0x25c178),upcastFootnotesListStyle(_0x127055,_0x17b4d4,_0x4cb6e0,_0x25c178));});}),_0x2b1564['for']('downcast')['add'](_0x1a5ead=>{_0x1a5ead['on']('attribute:footnotesListStart:footnotesDefinitions',downcastFootnotesListStart()),_0x1a5ead['on']('attribute:footnotesListStyle:footnotesDefinitions',downcastFootnotesListStyle());});}['_definePostfixer'](){const {editor:_0x1e0949}=this,{model:_0xcb1707}=_0x1e0949,_0x5de798=_0x1e0949['plugins']['get'](FootnotesTracker),_0x4dea83=this['_getDefaultListStyle'](),_0x34c088=this['_getDefaultStartIndex']();_0xcb1707['document']['registerPostFixer'](_0x54bbcd=>{const _0x8e84ea=_0xcb1707['document']['differ']['getChanges']();let _0x282e0c=!0x1;for(const _0x13c9b3 of _0x8e84ea){if('insert'!==_0x13c9b3['type']||'$text'===_0x13c9b3['name'])continue;const _0x3a8533=_0xcb1707['createRangeOn'](_0x13c9b3['position']['nodeAfter']);for(const _0x3f8e7b of _0x3a8533['getItems']())_0x3f8e7b['is']('element','footnotesDefinitions')&&(!_0x3f8e7b['hasAttribute']('footnotesListStart')&&_0xcb1707['schema']['checkAttribute'](_0x3f8e7b,'footnotesListStart')&&(_0x54bbcd['setAttribute']('footnotesListStart',_0x34c088,_0x3f8e7b),_0x282e0c=!0x0),!_0x3f8e7b['hasAttribute']('footnotesListStyle')&&_0xcb1707['schema']['checkAttribute'](_0x3f8e7b,'footnotesListStyle')&&(_0x54bbcd['setAttribute']('footnotesListStyle',_0x4dea83,_0x3f8e7b),_0x282e0c=!0x0));}return _0x282e0c&&_0x5de798['_updateFootnotesCounters'](_0x54bbcd),_0x282e0c;});}['_defineFormatter'](){const {editor:_0x5191a4}=this;_0x5191a4['plugins']['get'](FootnotesTracker)['setFootnoteFormatter'](_0x3e78b9=>this['_formatFootnoteListValue'](_0x3e78b9));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x1a16a1,value:_0x569fb4,digits:_0x57def2}){const _0x153a1b=_0x1a16a1['getAttribute']('footnotesListStyle'),_0x21ea8f=_0x1a16a1['getAttribute']('footnotesListStart'),_0x4d47af=Math['floor'](_0x569fb4)+(_0x21ea8f??0x1)-0x1;switch(_0x153a1b){case'decimal-leading-zero':return formatDecimalLeadingZeroFootnote(_0x4d47af,Math['max'](0x2,_0x57def2));case'lower-alpha':case'lower-latin':return formatLatinFootnote(_0x4d47af,!0x1);case'upper-alpha':case'upper-latin':return formatLatinFootnote(_0x4d47af,!0x0);case'lower-roman':return formatRomanFootnote(_0x4d47af,!0x1);case'upper-roman':return formatRomanFootnote(_0x4d47af,!0x0);case'arabic-indic':return formatArabicIndicFootnote(_0x4d47af);default:return String(_0x4d47af);}}}function upcastFootnotesListStart(_0x39ed0c,_0x204781,_0x4ed37a,_0x3e4948){if(!_0x3e4948['checkAttribute'](_0x204781,'footnotesListStart'))return;let _0x4e77a0=0x1;const _0x11b9b7=_0x4ed37a['consumable']['consume'](_0x39ed0c,{'attributes':'start'});if(_0x11b9b7){const _0x3c8d16=Number['parseInt'](_0x39ed0c['getAttribute']('start'),0xa);Number['isNaN'](_0x3c8d16)||(_0x4e77a0=_0x3c8d16);}!_0x11b9b7&&_0x204781['hasAttribute']('footnotesListStart')||_0x4ed37a['writer']['setAttribute']('footnotesListStart',_0x4e77a0,_0x204781);}function upcastFootnotesListStyle(_0x4380e6,_0x42e217,_0x369ed3,_0x1596bd){if(!_0x1596bd['checkAttribute'](_0x42e217,'footnotesListStyle'))return;let _0x57959e='decimal',_0x26798e=!0x1;if(_0x369ed3['consumable']['consume'](_0x4380e6,{'attributes':'type'})){const _0x4ab7b8={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x4380e6['getAttribute']('type')];_0x4ab7b8&&(_0x57959e=_0x4ab7b8),_0x26798e=!0x0;}if(_0x369ed3['consumable']['consume'](_0x4380e6,{'styles':'list-style-type'})){const _0x427c0e=toCanonicalFootnotesListStyle(_0x4380e6['getStyle']('list-style-type'));_0x427c0e&&(_0x57959e=_0x427c0e),_0x26798e=!0x0;}!_0x26798e&&_0x42e217['hasAttribute']('footnotesListStyle')||_0x369ed3['writer']['setAttribute']('footnotesListStyle',_0x57959e,_0x42e217);}function toCanonicalFootnotesListStyle(_0x151986){if('string'==typeof _0x151986){const _0x39403d=FOOTNOTES_DEFINITION_STYLES_ALIASES[_0x151986];if(_0x39403d)return _0x39403d;if(FOOTNOTES_DEFINITIONS_STYLES['includes'](_0x151986))return _0x151986;}return null;}function downcastFootnotesListStart(){return(_0x58bcf3,_0x4caecd,_0x20ee97)=>{if(!_0x20ee97['consumable']['consume'](_0x4caecd['item'],_0x58bcf3['name']))return;const _0x2f055c=getOlElementFromFootnotesDefinitions(_0x4caecd['item'],_0x20ee97['mapper']),{attributeNewValue:_0x38ca45}=_0x4caecd;null==_0x38ca45||0x1===_0x38ca45?_0x20ee97['writer']['removeAttribute']('start',_0x2f055c):_0x20ee97['writer']['setAttribute']('start',String(_0x38ca45),_0x2f055c);};}function downcastFootnotesListStyle(){return(_0x376095,_0x38217b,_0x5e4f61)=>{if(!_0x5e4f61['consumable']['consume'](_0x38217b['item'],_0x376095['name']))return;const _0x1b01a3=getOlElementFromFootnotesDefinitions(_0x38217b['item'],_0x5e4f61['mapper']),{attributeNewValue:_0x5ea3e5}=_0x38217b;_0x5ea3e5&&'decimal'!==_0x5ea3e5?_0x5e4f61['writer']['setStyle']('list-style-type',_0x5ea3e5,_0x1b01a3):_0x5e4f61['writer']['removeStyle']('list-style-type',_0x1b01a3);};}function getOlElementFromFootnotesDefinitions(_0x144dd2,_0x6f66de){const _0x25c236=_0x6f66de['toViewElement'](_0x144dd2);return Array['from'](_0x25c236['getChildren']())['find'](_0xf43efc=>_0xf43efc['is']('element','ol')&&_0xf43efc['hasClass']('footnotes-list'));}class FootnotesDefinitionsPropertiesView extends View{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusables']=new ViewCollection();['focusCycler'];constructor(_0x42a658,{styleButtonViews:_0x357e2f,styleGridAriaLabel:_0x4c8590}){super(_0x42a658),(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'](_0x357e2f,_0x4c8590),[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 _0x42d431 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x42d431['element']);addKeyboardHandlingForGrid({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x176c57['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 _0x4fd838=_0x18a08d=>_0x18a08d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4fd838),this['keystrokes']['set']('arrowleft',_0x4fd838),this['keystrokes']['set']('arrowup',_0x4fd838),this['keystrokes']['set']('arrowdown',_0x4fd838);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5750f4,_0x151ea5){const _0x4c7c4a=new View(this['locale']);return _0x4c7c4a['children']=_0x4c7c4a['createCollection'](),_0x4c7c4a['children']['addMany'](_0x5750f4),_0x4c7c4a['setTemplate']({'tag':'div','attributes':{'aria-label':_0x151ea5,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x4c7c4a['children']}),_0x4c7c4a['children']['delegate']('execute')['to'](this),_0x4c7c4a['focus']=function(){for(const _0x5903fb of this['children'])if(_0x5903fb instanceof ButtonView&&_0x5903fb['isOn'])return void _0x5903fb['focus']();this['children']['first']['focus']();},_0x4c7c4a['focusTracker']=new FocusTracker(),_0x4c7c4a['keystrokes']=new KeystrokeHandler(),_0x4c7c4a['render'](),_0x4c7c4a['keystrokes']['listenTo'](_0x4c7c4a['element']),this['children']['add'](_0x4c7c4a),_0x4c7c4a;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x506b26=this['_createStartIndexPropertyView'](),_0x4398ff=[_0x506b26],_0x284ad4=new CollapsibleView(this['locale'],_0x4398ff);return _0x284ad4['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x284ad4['buttonView']['bind']('isEnabled')['toMany'](_0x4398ff,'isEnabled',(..._0x3910f2)=>_0x3910f2['some'](_0x5c88a0=>_0x5c88a0)),_0x284ad4['buttonView']['on']('change:isEnabled',(_0x4abfe6,_0x4cad4d,_0x40360e)=>{_0x40360e||(_0x284ad4['isCollapsed']=!0x0);}),this['children']['add'](_0x284ad4),[_0x506b26,_0x284ad4];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2a9e8f=new LabeledFieldView(this['locale'],createLabeledInputNumber);return _0x2a9e8f['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2a9e8f['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2a9e8f['fieldView']['on']('input',()=>{const _0x452a08=_0x2a9e8f['fieldView']['element'],_0x27c3b1=_0x452a08['valueAsNumber'];Number['isNaN'](_0x27c3b1)?_0x2a9e8f['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x452a08['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x27c3b1}):_0x2a9e8f['errorText']=t(_0x27c3b1<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2a9e8f;}}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:_0x2050b3}=this,{componentFactory:_0x482414}=_0x2050b3['ui'];_0x2050b3['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x482414['add']('footnotesStyle',getFootnotesStyleDropdownViewCreator(_0x2050b3));}['afterInit'](){const {editor:_0x15fd31}=this,{t:t}=_0x15fd31['locale'],_0x93c63a=_0x15fd31['plugins']['get'](WidgetToolbarRepository),{defaultPositions:_0xa9fe91}=BalloonPanelView;_0x93c63a['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x15fd31['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x330ac0=>{let _0x19b6ac=_0x330ac0['getFirstPosition']()?.['parent'];return _0x19b6ac?.['is']('$text')&&(_0x19b6ac=_0x19b6ac['parent']),_0x19b6ac?.['is']('element')?_0x19b6ac['findAncestor'](isFootnotesDefinitionsWidget):null;},'positions':[_0xa9fe91['southArrowNorth'],_0xa9fe91['southArrowNorthMiddleWest'],_0xa9fe91['southArrowNorthMiddleEast'],_0xa9fe91['southArrowNorthWest'],_0xa9fe91['southArrowNorthEast'],_0xa9fe91['northArrowSouth'],_0xa9fe91['northArrowSouthMiddleWest'],_0xa9fe91['northArrowSouthMiddleEast'],_0xa9fe91['northArrowSouthWest'],_0xa9fe91['northArrowSouthEast'],_0xa9fe91['viewportStickyNorth']]});}}function getFootnotesStyleDropdownViewCreator(_0x9f5a22){return _0x22925e=>{const {t:t}=_0x22925e,_0xe5c993=_0x9f5a22['commands']['get']('footnotesStyle'),_0x155269=createDropdown(_0x22925e),{buttonView:_0x461799}=_0x155269;return _0x155269['class']='ck-footnotes-styles-dropdown',_0x155269['bind']('isEnabled')['to'](_0xe5c993,'isEnabled'),_0x461799['set']({'label':t('Footnotes\x20style'),'icon':IconFootnote,'tooltip':!0x0}),_0x155269['once']('change:isOpen',()=>{const _0x2ef30e=createFootnotesDefinitionsPropertiesView({'editor':_0x9f5a22,'dropdownView':_0x155269});_0x155269['panelView']['children']['add'](_0x2ef30e);}),_0x155269;};}function createFootnotesDefinitionsPropertiesView({editor:_0x4917d5,dropdownView:_0x20d0b2}){const {t:t}=_0x4917d5['locale'],_0x440cf8=t('Footnotes\x20definitions\x20styles'),_0x1743f5=createFootnotesDefinitionStyleButtons(_0x4917d5),_0x2122bb=new FootnotesDefinitionsPropertiesView(_0x4917d5['locale'],{'styleGridAriaLabel':_0x440cf8,'styleButtonViews':_0x1743f5}),_0x2166eb=_0x4917d5['commands']['get']('footnotesStart');return _0x2122bb['startIndexFieldView']['bind']('isEnabled')['to'](_0x2166eb),_0x2122bb['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x2166eb),_0x2122bb['on']('footnotesListStart',(_0x109cd6,_0x102b6a)=>{_0x4917d5['execute']('footnotesStart',{'value':_0x102b6a['startIndex']});}),_0x2122bb['delegate']('execute')['to'](_0x20d0b2),_0x2122bb;}function createFootnotesDefinitionStyleButtons(_0x23724d){const {t:t}=_0x23724d['locale'],_0x423827=_0x23724d['config']['get']('footnotes.footnotesProperties.listStyles'),_0x340640=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':IconListStyleDecimal},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':IconListStyleDecimalLeadingZero},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':IconListStyleLowerRoman},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':IconListStyleUpperRoman},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':IconListStyleLowerLatin},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':IconListStyleUpperLatin},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':IconListStyleArabicIndic}];return _0x423827['map'](_0x4a67aa=>{const _0x5d9b72=toCanonicalFootnotesListStyle(_0x4a67aa),_0x22f9e3=_0x340640['find'](_0x174be1=>_0x174be1['style']===_0x5d9b72);return createFootnoteStyleButton(_0x23724d,_0x22f9e3);});}function createFootnoteStyleButton(_0x55b2e5,_0x4a2fb0){const {locale:_0x42c5a9}=_0x55b2e5,{label:_0x53aed0,icon:_0x384176,tooltip:_0x425480,style:_0x2a4e3d}=_0x4a2fb0,_0x2b94c6=_0x55b2e5['commands']['get']('footnotesStyle'),_0x48920b=new ButtonView(_0x42c5a9);return _0x48920b['set']({'label':_0x53aed0,'icon':_0x384176,'tooltip':_0x425480}),_0x48920b['bind']('isOn')['to'](_0x2b94c6,'value',_0x4be11e=>_0x4be11e===_0x2a4e3d),_0x48920b['bind']('isEnabled')['to'](_0x2b94c6,'isEnabled'),_0x48920b['on']('execute',()=>{_0x55b2e5['execute']('footnotesStyle',{'value':_0x2a4e3d}),_0x55b2e5['editing']['view']['focus']();}),_0x48920b;}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(_0x244d73){super(_0x244d73),this['value']=void 0x0,this['on']('change:isEnabled',(_0x183e13,_0x393165,_0x5cdef8)=>{_0x5cdef8||this['reset']();}),this['on']('change:value',()=>_0x244d73['commands']['get'](PASTE_FORMAT_COMMAND_NAME)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x242748=this['editor']['model'],_0x177cb8=_0x242748['document']['selection'];return Object['fromEntries'](Array['from'](_0x177cb8['getAttributes']())['filter'](([_0x489cfa])=>_0x242748['schema']['getAttributeProperties'](_0x489cfa)['isFormatting']));}}class PasteFormatCommand extends Command{constructor(_0x297c18){super(_0x297c18),this['_removeFormatCommand']=new RemoveFormatCommand(_0x297c18);}['execute'](_0x5dc50e={}){const _0x1f2cdf=this['editor']['model'],_0x2c862f=_0x1f2cdf['document']['selection'],_0x15ecb9=Array['from'](_0x2c862f['getRanges']()),_0x4f5e2=_0x2c862f['isCollapsed']?[this['_createRangeOnEntireWord'](_0x1f2cdf,_0x2c862f)]:_0x15ecb9;_0x1f2cdf['change'](_0x2c44f7=>{_0x2c44f7['setSelection'](_0x4f5e2),this['_removeFormatCommand']['execute']();for(const _0x251bf6 in _0x5dc50e)for(const _0x1bf72b of _0x1f2cdf['schema']['getValidRanges'](_0x4f5e2,_0x251bf6))_0x2c44f7['setAttribute'](_0x251bf6,_0x5dc50e[_0x251bf6],_0x1bf72b);_0x2c44f7['setSelection'](_0x15ecb9);});}['_createRangeOnEntireWord'](_0x39e75e,_0x4da8ed){const _0x52274b=_0x39e75e['createSelection'](_0x4da8ed);_0x39e75e['modifySelection'](_0x52274b,{'unit':'word','direction':'backward'});const _0x1cc7e8=_0x52274b['getFirstPosition']();_0x39e75e['modifySelection'](_0x52274b,{'unit':'word','direction':'forward'});const _0x4ada94=_0x52274b['getLastPosition']();return _0x39e75e['createRange'](_0x1cc7e8,_0x4ada94);}}class FormatPainterEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3e28f2=this['editor'];_0x3e28f2['commands']['add'](COPY_FORMAT_COMMAND_NAME,new CopyFormatCommand(_0x3e28f2)),_0x3e28f2['commands']['add'](PASTE_FORMAT_COMMAND_NAME,new PasteFormatCommand(_0x3e28f2)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2631f0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1272d5;for(const _0x22bbb0 in _0x2631f0){const _0x303059=_0x22bbb0,_0x4bafce=_0x2631f0[_0x303059];if('formatPainterLicenseKeyValid'==_0x4bafce||'formatPainterLicenseKeyInvalid'==_0x4bafce||'formatPainterLicenseKeyExpired'==_0x4bafce||'formatPainterLicenseKeyDomainLimit'==_0x4bafce||'formatPainterLicenseKeyNotAllowed'==_0x4bafce||'formatPainterLicenseKeyEvaluationLimit'==_0x4bafce||'formatPainterLicenseKeyUsageLimit'==_0x4bafce){delete _0x2631f0[_0x303059],_0x1272d5=_0x4bafce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x1272d5&&_0x2631f0['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x1272d5&&_0x2631f0['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x1272d5&&_0x2631f0['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x1272d5&&_0x2631f0['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x1272d5&&_0x2631f0['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x1272d5&&_0x2631f0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getTranslation$b(_0x23bef1,_0x56857a){const t=_0x23bef1['t'];switch(_0x56857a){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 _0x56857a;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
DomEmitterMixin(Plugin){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x49f35b=this['editor'];_0x49f35b['editing']['view']['addObserver'](ClickObserver),_0x49f35b['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':getTranslation$b(_0x49f35b['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':getTranslation$b(_0x49f35b['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x49f35b['ui']['componentFactory']['add']('formatPainter',_0x2bdb15=>{const _0x539151=createDropdown(_0x2bdb15,SplitButtonView),_0x13677a=_0x49f35b['commands']['get'](COPY_FORMAT_COMMAND_NAME);_0x539151['buttonView']['set']({'label':getTranslation$b(_0x49f35b['locale'],'Paint\x20formatting'),'icon':IconPaintRoller,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x539151['class']='ck-format-painter-dropdown',_0x13677a&&(_0x539151['bind']('isEnabled')['to'](_0x13677a,'isEnabled'),this['listenTo'](_0x13677a,'change:isEnabled',(_0x511d42,_0x2a1b34,_0x2003f7)=>{_0x2003f7||this['_finishPainting']();}),_0x539151['buttonView']['bind']('isOn')['to'](_0x13677a,'value',_0x241cf1=>!!_0x241cf1),this['listenTo'](_0x49f35b,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x13677a,'change:value',(_0x18dc47,_0x1810e1,_0x3225ee)=>{this['_toggleSpecialCursor'](!!_0x3225ee);}));const _0x702070=new UIModel({'withText':!0x0,'label':getTranslation$b(_0x49f35b['locale'],'Continuous\x20painting'),'tooltip':getTranslation$b(_0x49f35b['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});addListToDropdown(_0x539151,new Collection([{'type':'switchbutton','model':_0x702070}]),{'role':'menu'});const _0x38c44a=()=>{this['_copyFormatting'](),this['listenTo'](_0x176c57['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x702070['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x539151,'execute',()=>{_0x702070['isOn']=!_0x702070['isOn'];}),this['listenTo'](_0x539151['buttonView'],'execute',()=>{_0x49f35b['editing']['view']['focus'](),_0x539151['buttonView']['isOn']?this['_finishPainting']():_0x38c44a();}),_0x49f35b['keystrokes']['set']('Ctrl+Alt+C',(_0x6e6f1c,_0x3c720c)=>{_0x38c44a(),_0x702070['isOn']=!0x0,_0x3c720c();},{'priority':'high'}),_0x49f35b['keystrokes']['set']('Ctrl+Alt+V',(_0x2309a5,_0x353e11)=>{_0x539151['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x702070['isOn']||this['_finishPainting'](),_0x353e11());},{'priority':'high'}),_0x49f35b['keystrokes']['set']('Esc',(_0x2400d4,_0x17e1fa)=>{_0x539151['buttonView']['isOn']&&(_0x702070['isOn']=!0x1,this['_finishPainting'](),_0x17e1fa());}),_0x539151;});}['afterInit'](){checkLicense$b(this);}['_toggleSpecialCursor'](_0x42e9fe){this['editor']['editing']['view']['change'](_0x2fa6c9=>{for(const _0x646b54 of this['editor']['editing']['view']['document']['roots'])_0x42e9fe?_0x2fa6c9['addClass'](CURSOR_ACTIVE_CSS_CLASS,_0x646b54):_0x2fa6c9['removeClass'](CURSOR_ACTIVE_CSS_CLASS,_0x646b54);});}['_copyFormatting'](){const {editor:_0x511348}=this;_0x511348['execute'](COPY_FORMAT_COMMAND_NAME),_0x511348['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x511348['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x1cf5ee}=this,_0x1c345c=_0x1cf5ee['commands']['get'](COPY_FORMAT_COMMAND_NAME)['value'];_0x1cf5ee['execute'](PASTE_FORMAT_COMMAND_NAME,_0x1c345c),_0x1cf5ee['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x1cf5ee['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](COPY_FORMAT_COMMAND_NAME)['reset'](),this['stopListening'](_0x176c57['window']['document'],'mouseup');}}async function checkLicense$b(_0x25436a){const _0x357d94=_0x1f50c5([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]),_0xc1acee=window[_0x1f50c5([0x44,0x61,0x74,0x65])][_0x1f50c5([0x6e,0x6f,0x77])](),_0x32f51d=_0x25436a[_0x1f50c5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x240aff=new window[(_0x1f50c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6dd77a=>{_0x32f51d[_0x1f50c5([0x6f,0x6e,0x63,0x65])](_0x1f50c5([0x72,0x65,0x61,0x64,0x79]),_0x6dd77a);}),_0x21129f={[_0x1f50c5([0x6b,0x74,0x79])]:_0x1f50c5([0x45,0x43]),[_0x1f50c5([0x75,0x73,0x65])]:_0x1f50c5([0x73,0x69,0x67]),[_0x1f50c5([0x63,0x72,0x76])]:_0x1f50c5([0x50,0x2d,0x32,0x35,0x36]),[_0x1f50c5([0x78])]:_0x1f50c5([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]),[_0x1f50c5([0x79])]:_0x1f50c5([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]),[_0x1f50c5([0x61,0x6c,0x67])]:_0x1f50c5([0x45,0x53,0x32,0x35,0x36])},_0xaecb2c=_0x32f51d[_0x1f50c5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f50c5([0x67,0x65,0x74])](_0x1f50c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x3a0826=await(async function(){let _0x529b55,_0x143fdd=null,_0xe192c9=null;try{if(_0xaecb2c==_0x1f50c5([0x47,0x50,0x4c]))return _0x1f50c5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x529b55=(function(){const _0x552f11=_0xaecb2c[_0x1f50c5([0x73,0x70,0x6c,0x69,0x74])](_0x1f50c5([0x2e]));if(0x3!=_0x552f11[_0x1f50c5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x1d6ff9=_0x552f11[0x1];return _0x4b025c(_0x1d6ff9);function _0x4b025c(_0x169bc8){const _0x451fca=_0x39ae87(_0x169bc8);return _0x451fca&&_0x413768()?_0x451fca:null;function _0x413768(){const _0x3f216f=_0x451fca[_0x1f50c5([0x6a,0x74,0x69])],_0xeee426=window[_0x1f50c5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f216f[_0x1f50c5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f216f[_0x1f50c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46cecd={..._0x451fca,[_0x1f50c5([0x6a,0x74,0x69])]:_0x3f216f[_0x1f50c5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f216f[_0x1f50c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46cecd[_0x1f50c5([0x76,0x63])],_0x1407fc(_0x46cecd)==_0xeee426;}}}()),!_0x529b55)return _0x1f50c5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x529b55[_0x1f50c5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xe192c9=function(_0x102c94,_0x117d6f){return new window[(_0x1f50c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3827b1=>{if(_0x5b5c28())return _0x3827b1(_0x1f50c5([0x56,0x61,0x6c,0x69,0x64]));_0x519f80(),_0x32f51d[_0x1f50c5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f50c5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ef07e=!0x1;const _0x4921e9=uid();function _0x172d0b(_0x21a1c1){return!!_0x21a1c1&&(typeof _0x21a1c1===_0x1f50c5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21a1c1===_0x1f50c5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21a1c1[_0x1f50c5([0x74,0x68,0x65,0x6e])]===_0x1f50c5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21a1c1[_0x1f50c5([0x63,0x61,0x74,0x63,0x68])]===_0x1f50c5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b637e(_0x2ef773){_0x3db20f(_0x2ef773)[_0x1f50c5([0x74,0x68,0x65,0x6e])](_0x52846f=>{if(!_0x52846f||_0x52846f[_0x1f50c5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f50c5([0x6f,0x6b]))return _0x1f50c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29e8f5(_0x1407fc(_0x4921e9+_0x117d6f))!=_0x52846f[_0x1f50c5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f50c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f50c5([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f50c5([0x74,0x68,0x65,0x6e])](_0x2c712e=>(_0x14b613(),_0x2c712e),()=>{const _0x22507e=_0x490d5a();return null==_0x22507e?(_0x14b613(),_0x1f50c5([0x56,0x61,0x6c,0x69,0x64])):_0x1f50c5(_0xc1acee-_0x22507e>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f50c5([0x74,0x68,0x65,0x6e])](_0x3827b1)[_0x1f50c5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3827b1(_0x1f50c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x14243a=0x36ee80;function _0x14b613(){const _0x154b61=_0x1f50c5([0x6c,0x6c,0x63,0x74,0x2d])+_0x29e8f5(_0x1407fc(_0x102c94)),_0x1ecffc=_0x359ac4(_0x29e8f5(window[_0x1f50c5([0x4d,0x61,0x74,0x68])][_0x1f50c5([0x63,0x65,0x69,0x6c])](_0xc1acee/_0x14243a)));window[_0x1f50c5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f50c5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x154b61,_0x1ecffc);}function _0x490d5a(){const _0x3916be=_0x1f50c5([0x6c,0x6c,0x63,0x74,0x2d])+_0x29e8f5(_0x1407fc(_0x102c94)),_0x5ace13=window[_0x1f50c5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f50c5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3916be);return _0x5ace13?window[_0x1f50c5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x359ac4(_0x5ace13),0x10)*_0x14243a:null;}function _0x3db20f(_0x286448){return new window[(_0x1f50c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bda7f,_0x380adc)=>{_0x286448[_0x1f50c5([0x74,0x68,0x65,0x6e])](_0x5bda7f,_0x380adc),window[_0x1f50c5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x380adc,0x1d4c0);});}}_0x32f51d[_0x1f50c5([0x6f,0x6e])](_0x1f50c5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x484a49,_0x231624)=>{if(_0x231624[0x0]!=_0x102c94)return _0x3827b1(_0x1f50c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x231624[0x1]={..._0x231624[0x1],[_0x1f50c5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4921e9};},{[_0x1f50c5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f50c5([0x68,0x69,0x67,0x68])}),_0x32f51d[_0x1f50c5([0x6f,0x6e])](_0x1f50c5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58bf82=>{_0x172d0b(_0x58bf82[_0x1f50c5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ef07e=!0x0,_0x5b637e(_0x58bf82[_0x1f50c5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f50c5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f50c5([0x6c,0x6f,0x77])}),_0x240aff[_0x1f50c5([0x74,0x68,0x65,0x6e])](()=>{_0x2ef07e||_0x3827b1(_0x1f50c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b5c28(){return _0x32f51d[_0x1f50c5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f50c5([0x76,0x69,0x65,0x77])][_0x1f50c5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f50c5([0x61,0x75,0x74,0x6f]);}function _0x519f80(){_0x32f51d[_0x1f50c5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f50c5([0x76,0x69,0x65,0x77])][_0x1f50c5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f50c5([0x61,0x75,0x74,0x6f]);}}(_0x529b55[_0x1f50c5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x529b55[_0x1f50c5([0x6a,0x74,0x69])]));const _0x29f239=await(async function(){let _0x377998=!0x0;try{const _0x44199e=_0xaecb2c[_0x1f50c5([0x73,0x70,0x6c,0x69,0x74])](_0x1f50c5([0x2e])),[_0x1d3877,_0x55afaa,_0x2a9cb2]=_0x44199e;return _0x17d560(_0x1d3877),await _0x1b6ba3(_0x1d3877,_0x55afaa,_0x2a9cb2),_0x377998;}catch{return!0x1;}function _0x17d560(_0x560828){const _0x451605=_0x39ae87(_0x560828);_0x451605&&_0x451605[_0x1f50c5([0x61,0x6c,0x67])]==_0x1f50c5([0x45,0x53,0x32,0x35,0x36])||(_0x377998=!0x1);}async function _0x1b6ba3(_0xd1c30f,_0x13fa28,_0x577023){const _0x1507b6=window[_0x1f50c5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f50c5([0x66,0x72,0x6f,0x6d])](_0x303dca(_0x577023),_0x54b893=>_0x54b893[_0x1f50c5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4bb9be=new window[(_0x1f50c5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f50c5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd1c30f+_0x1f50c5([0x2e])+_0x13fa28),_0x25478d=window[_0x1f50c5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f50c5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x25478d)return;const _0x443c96=await _0x25478d[_0x1f50c5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f50c5([0x6a,0x77,0x6b]),_0x21129f,{[_0x1f50c5([0x6e,0x61,0x6d,0x65])]:_0x1f50c5([0x45,0x43,0x44,0x53,0x41]),[_0x1f50c5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f50c5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f50c5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x25478d[_0x1f50c5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f50c5([0x6e,0x61,0x6d,0x65])]:_0x1f50c5([0x45,0x43,0x44,0x53,0x41]),[_0x1f50c5([0x68,0x61,0x73,0x68])]:{[_0x1f50c5([0x6e,0x61,0x6d,0x65])]:_0x1f50c5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x443c96,_0x1507b6,_0x4bb9be)||(_0x377998=!0x1);}}());return _0x29f239?(function(){const _0x3c395=_0x529b55[_0x1f50c5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c395)return!0x1;if(_0x3c395[_0x1f50c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f50c5([0x2a])))return!0x0;if(_0x3c395[_0x1f50c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f50c5([0x46,0x50])))return!0x0;if(_0x3c395[_0x1f50c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f50c5([0x50,0x50])))return!0x0;if(_0x3c395[_0x1f50c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f50c5([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x1f50c5([0x67,0x6c,0x6f,0x62])]&&window[_0x1f50c5([0x67,0x6c,0x6f,0x62])][_0x1f50c5([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x4e6e56=[_0x1f50c5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f50c5([0x74,0x72,0x69,0x61,0x6c])][_0x1f50c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x529b55[_0x1f50c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc1acee/0x3e8:0x69cb0e80;return _0x529b55[_0x1f50c5([0x65,0x78,0x70])]<_0x4e6e56;}())?_0x1f50c5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x5827fb=_0x529b55[_0x1f50c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5827fb||0x0==_0x5827fb[_0x1f50c5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x454ac3}=new URL(window[_0x1f50c5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5827fb[_0x1f50c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x454ac3))return!0x0;const _0x1b73e1=_0x454ac3[_0x1f50c5([0x73,0x70,0x6c,0x69,0x74])](_0x1f50c5([0x2e]));return _0x5827fb[_0x1f50c5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3aee98=>_0x3aee98[_0x1f50c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f50c5([0x2a])))[_0x1f50c5([0x6d,0x61,0x70])](_0xb3904c=>_0xb3904c[_0x1f50c5([0x73,0x70,0x6c,0x69,0x74])](_0x1f50c5([0x2e])))[_0x1f50c5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x610f8e=>_0x610f8e[_0x1f50c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1b73e1[_0x1f50c5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f50c5([0x6d,0x61,0x70])](_0x2aa514=>Array(_0x1b73e1[_0x1f50c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2aa514[_0x1f50c5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f50c5([0x66,0x69,0x6c,0x6c])](_0x2aa514[0x0]===_0x1f50c5([0x2a])?_0x1f50c5([0x2a]):'')[_0x1f50c5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2aa514))[_0x1f50c5([0x73,0x6f,0x6d,0x65])](_0x2f8d3b=>_0x1b73e1[_0x1f50c5([0x65,0x76,0x65,0x72,0x79])]((_0xbe8ed9,_0x36d08a)=>_0x2f8d3b[_0x36d08a]===_0xbe8ed9||_0x2f8d3b[_0x36d08a]===_0x1f50c5([0x2a])));}())?(_0x529b55[_0x1f50c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f50c5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x143fdd=function(_0x2e5e82){const _0x177aed=new window[(_0x1f50c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa2dce5=>setTimeout(_0xa2dce5,0x93ecc)),_0x5877fc=_0x240aff[_0x1f50c5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f50c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x161052=>{let _0x449311=0x0;_0x32f51d[_0x1f50c5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f50c5([0x6f,0x6e])](_0x1f50c5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35035a,_0x559daa)=>{_0x559daa[0x0][_0x1f50c5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x449311++,0x5e8==_0x449311&&(_0x161052(),_0x35035a[_0x1f50c5([0x6f,0x66,0x66])]());});})),_0x974f81=[_0x177aed,_0x5877fc];return window[_0x1f50c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f50c5([0x72,0x61,0x63,0x65])](_0x974f81)[_0x1f50c5([0x74,0x68,0x65,0x6e])](()=>_0x2e5e82);}(_0x1f50c5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x143fdd&&_0xe192c9)return new window[(_0x1f50c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16bdb7,_0x406a9a)=>{_0x143fdd[_0x1f50c5([0x74,0x68,0x65,0x6e])](_0x16bdb7,_0x406a9a),_0xe192c9[_0x1f50c5([0x74,0x68,0x65,0x6e])](_0x6b91a4=>{_0x6b91a4!=_0x1f50c5([0x56,0x61,0x6c,0x69,0x64])&&_0x16bdb7(_0x6b91a4);},_0x406a9a);});return _0x143fdd||_0xe192c9||_0x1f50c5([0x56,0x61,0x6c,0x69,0x64]);}())):_0x1f50c5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f50c5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f50c5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f50c5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x39ae87(_0x53eb07){return _0x53eb07[_0x1f50c5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f50c5([0x65,0x79]))?JSON[_0x1f50c5([0x70,0x61,0x72,0x73,0x65])](_0x303dca(_0x53eb07)):null;}function _0x303dca(_0xd8d4be){return window[_0x1f50c5([0x61,0x74,0x6f,0x62])](_0xd8d4be[_0x1f50c5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f50c5([0x2b]))[_0x1f50c5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f50c5([0x2f])));}function _0x1407fc(_0x3ee04b){let _0x39134c=0x1505;function _0x5f43fe(_0x439324){for(let _0x4ae2e6=0x0;_0x4ae2e6<_0x439324[_0x1f50c5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ae2e6++){const _0x234fdd=_0x439324[_0x1f50c5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ae2e6);_0x39134c=(_0x39134c<<0x5)+_0x39134c+_0x234fdd,_0x39134c&=_0x39134c;}}return function _0x3d2c99(_0x57e17c){Array[_0x1f50c5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x57e17c)?_0x57e17c[_0x1f50c5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d2c99):_0x57e17c&&typeof _0x57e17c==_0x1f50c5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f50c5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x57e17c)[_0x1f50c5([0x73,0x6f,0x72,0x74])]()[_0x1f50c5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35a935,_0x386930])=>{_0x5f43fe(_0x35a935),_0x3d2c99(_0x386930);}):_0x5f43fe(window[_0x1f50c5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x57e17c));}(_0x3ee04b),_0x39134c>>>0x0;}function _0x29e8f5(_0x12eee2){return _0x12eee2[_0x1f50c5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f50c5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f50c5([0x30]));}function _0x359ac4(_0x73f891){return _0x73f891[_0x1f50c5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f50c5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f50c5([0x6a,0x6f,0x69,0x6e])]('');}function _0x246c84(){}function _0x1f50c5(_0x59cefb){return _0x59cefb['map'](_0x36e4ef=>String['fromCharCode'](_0x36e4ef))['join']('');}!function(_0x17561b){const _0x12b91d=(function(){const _0x322b3f=window[_0x1f50c5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f50c5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f50c5([0x6e,0x6f,0x77])]())[_0x1f50c5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f50c5([0x2e]),'');let _0x1c011f=_0x1f50c5([0x51]);for(let _0x2c3ad5=0x0;_0x2c3ad5<_0x322b3f[_0x1f50c5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c3ad5+=0x2){let _0x213fce=window[_0x1f50c5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x322b3f[_0x1f50c5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c3ad5,_0x2c3ad5+0x2));_0x213fce>=_0x357d94[_0x1f50c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x213fce-=_0x357d94[_0x1f50c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c011f+=_0x357d94[_0x213fce];}return _0x1c011f;}());_0x32f51d[_0x12b91d]=_0x1f50c5([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x17561b,_0x17561b!=_0x1f50c5([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x240aff,_0x32f51d[_0x1f50c5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f50c5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x246c84,_0x32f51d[_0x1f50c5([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f50c5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x246c84,_0x32f51d[_0x1f50c5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f50c5([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x3a0826);}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(_0x2385d2,_0x207d39){const t=_0x2385d2['t'];switch(_0x207d39){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 _0x207d39;}}class ImportWordUI extends Plugin{static get['pluginName'](){return'ImportWordUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x34b184=this['editor'];_0x34b184['ui']['componentFactory']['add']('importWord',()=>{const _0x3e759c=this['_createButton'](FileDialogButtonView),_0x5dad01=_0x34b184['commands']['get']('importWord');return _0x3e759c['bind']('isOn')['to'](_0x5dad01,'isBusy'),_0x3e759c['tooltip']=!0x0,_0x3e759c;}),_0x34b184['ui']['componentFactory']['add']('menuBar:importWord',()=>this['_createButton'](MenuBarMenuListItemFileDialogButtonView));}['_createButton'](_0x1bb1c9){const _0x1f6357=this['editor'],_0x55e92c=_0x1f6357['commands']['get']('importWord'),_0x2c3ca3=new _0x1bb1c9(_0x1f6357['locale']),_0x58ff1c=new SpinnerView();return _0x2c3ca3['set']({'acceptedType':'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template'}),_0x2c3ca3['set']({'icon':IconImportWord}),_0x2c3ca3['bind']('isEnabled')['to'](_0x55e92c),_0x2c3ca3['bind']('label')['to'](_0x55e92c,'isBusy',_0x3eb2f1=>getTranslation$a(_0x1f6357['locale'],_0x3eb2f1?'Importing\x20Word\x20document':'Import\x20from\x20Word')),_0x58ff1c['bind']('isVisible')['to'](_0x55e92c,'isBusy'),_0x2c3ca3['iconView']['bind']('isVisible')['to'](_0x55e92c,'isBusy',_0x121fb8=>!_0x121fb8),_0x2c3ca3['children']['add'](_0x58ff1c),_0x2c3ca3['on']('done',(_0x7d21e6,_0x5ba1b3)=>{_0x1f6357['execute']('importWord',_0x5ba1b3[0x0],{}),_0x1f6357['editing']['view']['focus']();}),_0x2c3ca3;}}class ImportWordCommand extends Command{['_importMarker'];['_undoStepBatch'];['_abortController'];constructor(_0x14934d){super(_0x14934d),this['set']('isBusy',!0x1),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['on']('dataInsert',(_0xc7ad3d,_0x1ac38c)=>{const _0x4de808=new DataTransfer();_0x4de808['setData']('text/html',_0x1ac38c['html']);const _0x2ad646=this['_importMarker']['getRange']();this['editor']['model']['enqueueChange'](this['_undoStepBatch'],_0x11ed42=>{this['_importMarker']['stopListening'](),_0x11ed42['setSelection'](_0x2ad646),_0x14934d['editing']['view']['document']['fire']('clipboardInput',{'dataTransfer':_0x4de808});});},{'priority':'low'});}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xb1949e,_0x3913a7={}){if(this['isBusy'])return Promise['resolve']();const _0x4333ae=this['editor']['config']['get']('importWord');if(this['editor']['plugins']['has']('MergeFields')){const {prefix:_0x5add45,suffix:_0x4c438f}=this['editor']['config']['get']('mergeFields');_0x3913a7['merge_fields']={'prefix':_0x5add45,'suffix':_0x4c438f};}const _0x31a1f3={'url':_0x4333ae['converterUrl'],'file':_0xb1949e,'serviceConfig':{..._0x3913a7,'formatting':_0x4333ae['formatting'],'timezone':new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']}};return this['_prepareForImport'](),this['_sendImportRequest'](_0x31a1f3)['then'](this['_handleImportResponse']['bind'](this))['catch'](this['_handleImportFailure']['bind'](this))['finally'](this['_cleanUpAfterImport']['bind'](this));}['_checkEnabled'](){if(this['isBusy'])return!0x1;const _0x335f05=this['editor']['model'],_0xf66e8a=_0x335f05['schema'],_0x4ed775=_0x335f05['document']['selection'],_0x3c1883=first(_0x4ed775['getSelectedBlocks']());return!!_0x3c1883&&_0xf66e8a['checkChild'](_0x3c1883['parent'],'paragraph');}['_prepareForImport'](){const _0x20a0da=this['editor'],_0x32b62c=_0x20a0da['model'],_0x3883bb=_0x32b62c['document']['selection'];this['_abortController']=new AbortController(),this['_undoStepBatch']=_0x20a0da['model']['createBatch']({'isUndoable':!0x0}),_0x32b62c['enqueueChange'](this['_undoStepBatch'],_0x1bda50=>{_0x3883bb['isCollapsed']||_0x32b62c['deleteContent'](_0x3883bb,{'leaveUnmerged':!0x0});const _0x5daa1a=_0x3883bb['getFirstPosition'](),_0x278332=first(_0x3883bb['getSelectedBlocks']());let _0x3732f3;_0x3732f3=_0x278332['is']('element','paragraph')&&_0x278332['isEmpty']?_0x5daa1a:_0x5daa1a['isAtStart']?_0x32b62c['createPositionBefore'](_0x278332):_0x5daa1a['isAtEnd']?_0x32b62c['createPositionAfter'](_0x278332):_0x1bda50['split'](_0x5daa1a)['position'],this['_importMarker']=_0x1bda50['addMarker']('importWord:'+uid(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new ModelRange(_0x3732f3)}),this['_importMarker']['on']('change:range',()=>{'$graveyard'===this['_importMarker']['getRange']()['root']['rootName']&&this['_abortController']['abort']();});}),this['isBusy']=!0x0,this['refresh']();}['_cleanUpAfterImport'](){const _0x3350a4=this['editor']['model'];_0x3350a4['markers']['has'](this['_importMarker'])&&_0x3350a4['enqueueChange'](this['_undoStepBatch'],_0x4c8213=>{_0x4c8213['removeMarker'](this['_importMarker']);}),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['isBusy']=!0x1,this['refresh']();}async['_sendImportRequest']({url:_0x373777,file:_0x5e2f95,serviceConfig:_0x3eb796}){const _0x4e7a20=this['editor'],_0x1a98ce=await _0x4e7a20['plugins']['get']('ImportWordEditing')['getToken'](),_0x35c561=new FormData();_0x35c561['set']('config',JSON['stringify'](_0x3eb796)),_0x35c561['set']('file',_0x5e2f95);const _0x3a1f8a={'method':'POST','headers':{},'body':_0x35c561,'signal':this['_abortController']['signal']};return _0x1a98ce&&(_0x3a1f8a['headers']['Authorization']=_0x1a98ce['value']),fetch(_0x373777,_0x3a1f8a);}['_handleImportResponse'](_0x295ad5){return _0x295ad5['ok']?_0x295ad5['json']()['then'](_0xa61d84=>{if(!this['editor']['model']['markers']['has'](this['_importMarker']))return;'$graveyard'!==this['_importMarker']['getRange']()['root']['rootName']&&this['fire']('dataInsert',{..._0xa61d84,'undoStepBatch':this['_undoStepBatch']});}):Promise['reject']();}['_handleImportFailure'](){if(this['_abortController']['signal']['aborted'])return void logWarning('import-word-plugin-import-cancelled');const _0x1a441b=this['editor'],_0x4c08e4=getTranslation$a(_0x1a441b['locale'],'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');_0x1a441b['plugins']['get']('Notification')['showWarning'](_0x4c08e4),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];}['init'](){const _0x5bd7f9=this['editor'],_0x3796f4=_0x5bd7f9['plugins']['get'](CloudServices);_0x5bd7f9['config']['define']('importWord',{'converterUrl':'https://docx-converter.cke-cs.com/v2/convert/docx-html','tokenUrl':(_0x5bd7f9['config']['get']('cloudServices')||{})['tokenUrl'],'formatting':{'resets':'none','defaults':'none','styles':'inline'}}),_0x5bd7f9['commands']['add']('importWord',new ImportWordCommand(_0x5bd7f9));const {tokenUrl:_0x2010c0}=_0x5bd7f9['config']['get']('importWord');if(_0x2010c0){const {tokenUrl:_0x3beb34}=_0x5bd7f9['config']['get']('cloudServices')||{};this['_token']=_0x2010c0===_0x3beb34?Promise['resolve'](_0x3796f4['token']):_0x3796f4['registerTokenUrl'](_0x2010c0);}else this['_token']=Promise['resolve'](null);}['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 _0x9fee8f=this['editor']['model']['document'],_0x5d1861=first(_0x9fee8f['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x5d1861)&&this['_canHaveLineHeight'](_0x5d1861),this['value']=this['isEnabled']&&_0x5d1861['getAttribute']('lineHeight');}['execute'](_0x27bf2a={}){const _0x5afc0b=this['editor']['model'],_0x1cfca8=_0x5afc0b['document']['selection'],_0x504eac=_0x27bf2a['value'];_0x5afc0b['change'](_0x4af934=>{const _0x1bd53f=Array['from'](_0x1cfca8['getSelectedBlocks']())['filter'](_0x3f4e62=>this['_canHaveLineHeight'](_0x3f4e62));for(const _0x20ed63 of _0x1bd53f)_0x504eac?_0x4af934['setAttribute']('lineHeight',_0x504eac,_0x20ed63):_0x4af934['removeAttribute']('lineHeight',_0x20ed63);});}['_canHaveLineHeight'](_0x21bc3e){return this['editor']['model']['schema']['checkAttribute'](_0x21bc3e,'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(_0x5f3adb){return'string'==typeof _0x5f3adb&&'default'===_0x5f3adb['toLowerCase']();}function normalizeOptions(_0x437cc9){return _0x437cc9['options']['map'](_0x1c7c16=>isLineHeightDefaultValue(_0x1c7c16)?{'title':String(_0x437cc9['defaultValue']),'model':'default'}:('number'==typeof _0x1c7c16&&(_0x1c7c16=String(_0x1c7c16)),'string'!=typeof _0x1c7c16?_0x1c7c16:parseFloat(_0x1c7c16)?{'title':_0x1c7c16,'model':_0x1c7c16,'view':{'name':'span','styles':{'line-height':_0x1c7c16}}}:findPreset(_0x1c7c16)))['filter'](_0x51cc6e=>void 0x0!==_0x51cc6e);}function findPreset(_0x10e1c5){return'string'==typeof _0x10e1c5?namedPresets[_0x10e1c5]:namedPresets[_0x10e1c5['model']];}function buildDefinition(_0x108c41,_0x551f64){const _0x27d26d={'model':{'key':_0x108c41,'values':[]},'view':{}};for(const _0x25e6b5 of _0x551f64)'class'===_0x25e6b5['view']?.['key']?(_0x27d26d['model']['values']['push'](_0x25e6b5['model']),_0x27d26d['view'][_0x25e6b5['model']]={'key':'class','value':_0x25e6b5['view']['value']}):(_0x27d26d['model']['values']['push'](_0x25e6b5['model']),_0x27d26d['view'][_0x25e6b5['model']]={'key':'style','value':'line-height:'+_0x25e6b5['model']+';'});return _0x27d26d;}class LineHeightTodoListIntegration extends Plugin{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0xc18e3,conversion:_0xce15ed}=this['editor'];if(!_0xc18e3['has']('ListEditing')||!_0xc18e3['has']('TodoListEditing'))return;_0xc18e3['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x5c1b9a,_0x50ebe1,_0x32a6aa,_0x3b3bb0,_0x13e88b){'todo'==_0x13e88b['getAttribute']('listType')&&_0x50ebe1&&(_0x5c1b9a['addClass']('ck-list-marker-line-height',_0x32a6aa),_0x5c1b9a['setStyle']('--ck-content-list-marker-line-height',_0x50ebe1,_0x32a6aa));}}),_0xce15ed['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0xce15ed['for']('upcast')['add'](_0xb9629=>{_0xb9629['on']('element:li',attributeUpcastConsumingConverter({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}function attributeUpcastConsumingConverter(_0x28336b){const _0x5f0c3a=new Matcher(_0x28336b);return(_0x5ea68e,_0x12c945,_0x289571)=>{const _0x56aa83=_0x5f0c3a['match'](_0x12c945['viewItem']);if(!_0x56aa83)return;const _0x54bec0=_0x56aa83['match'];_0x54bec0['name']=!0x1,_0x289571['consumable']['consume'](_0x12c945['viewItem'],_0x54bec0);};}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(_0xafb55c){super(_0xafb55c),_0xafb55c['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x42b09b=this['editor'];this['_validateConfig'](),_0x42b09b['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x42b09b['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x42b09b['commands']['add']('lineHeight',new LineHeightCommand(_0x42b09b)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){checkLicense$a(this);}['_validateConfig'](){const _0x376300=this['editor'];if(!_0x376300['config']['get']('lineHeight.supportAllValues'))return;const _0x50a588=_0x376300['config']['get']('lineHeight.options')['filter'](_0x58c755=>'string'==typeof _0x58c755&&(!isLineHeightDefaultValue(_0x58c755)&&isNaN(Number(_0x58c755))));if(_0x50a588['length'])throw new CKEditorError('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x50a588});}['_prepareAnyValueConverters'](){const _0x50a16c=this['editor'],_0x19b021=this['editor']['config']['get']('lineHeight.defaultValue');_0x50a16c['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x23553c=>String(_0x23553c)===String(_0x19b021)?null:{'key':'style','value':{'line-height':_0x23553c}}}),_0x50a16c['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x55f0c9=>{let _0x201f8b=_0x55f0c9['getStyle']('line-height');return isPercentageStyleValue(_0x201f8b)&&(_0x201f8b=String(Number(_0x201f8b['slice'](0x0,-0x1))/0x64)),String(_0x201f8b)===String(_0x19b021)?null:_0x201f8b;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x4450af=this['editor'],_0x4d7e79=this['editor']['config']['get']('lineHeight.defaultValue'),_0x2905a5=buildDefinition('lineHeight',normalizeOptions(this['editor']['config']['get']('lineHeight'))['filter'](_0x2cb712=>_0x2cb712['model']));_0x4450af['conversion']['attributeToAttribute'](_0x2905a5),_0x4450af['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x5cb2d7=>{let _0x506ff1=_0x5cb2d7['getStyle']('line-height');return isPercentageStyleValue(_0x506ff1)&&(_0x506ff1=String(Number(_0x506ff1['slice'](0x0,-0x1))/0x64)),_0x506ff1===String(_0x4d7e79)?null:_0x2905a5['model']['values']['includes'](_0x506ff1)?_0x506ff1:null;}}});}}async function checkLicense$a(_0x3199b7){const _0x45afcc=_0x4cbc64([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]),_0x2373e7=window[_0x4cbc64([0x44,0x61,0x74,0x65])][_0x4cbc64([0x6e,0x6f,0x77])](),_0x39079b=_0x3199b7[_0x4cbc64([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46b493=new window[(_0x4cbc64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ffed3=>{_0x39079b[_0x4cbc64([0x6f,0x6e,0x63,0x65])](_0x4cbc64([0x72,0x65,0x61,0x64,0x79]),_0x3ffed3);}),_0x53b2b1={[_0x4cbc64([0x6b,0x74,0x79])]:_0x4cbc64([0x45,0x43]),[_0x4cbc64([0x75,0x73,0x65])]:_0x4cbc64([0x73,0x69,0x67]),[_0x4cbc64([0x63,0x72,0x76])]:_0x4cbc64([0x50,0x2d,0x32,0x35,0x36]),[_0x4cbc64([0x78])]:_0x4cbc64([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]),[_0x4cbc64([0x79])]:_0x4cbc64([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]),[_0x4cbc64([0x61,0x6c,0x67])]:_0x4cbc64([0x45,0x53,0x32,0x35,0x36])},_0x2d8817=_0x39079b[_0x4cbc64([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4cbc64([0x67,0x65,0x74])](_0x4cbc64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x28d1fa=await(async function(){let _0x599d8b,_0x5c5257=null,_0x357fa8=null;try{if(_0x2d8817==_0x4cbc64([0x47,0x50,0x4c]))return _0x4cbc64([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x599d8b=(function(){const _0x3ebf2e=_0x2d8817[_0x4cbc64([0x73,0x70,0x6c,0x69,0x74])](_0x4cbc64([0x2e]));if(0x3!=_0x3ebf2e[_0x4cbc64([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0xa70ded=_0x3ebf2e[0x1];return _0x264db6(_0xa70ded);function _0x264db6(_0x431657){const _0x542804=_0x1f05a5(_0x431657);return _0x542804&&_0x50da94()?_0x542804:null;function _0x50da94(){const _0x319fd6=_0x542804[_0x4cbc64([0x6a,0x74,0x69])],_0x232535=window[_0x4cbc64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x319fd6[_0x4cbc64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x319fd6[_0x4cbc64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c40f9={..._0x542804,[_0x4cbc64([0x6a,0x74,0x69])]:_0x319fd6[_0x4cbc64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x319fd6[_0x4cbc64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c40f9[_0x4cbc64([0x76,0x63])],_0x72a790(_0x1c40f9)==_0x232535;}}}()),!_0x599d8b)return _0x4cbc64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x599d8b[_0x4cbc64([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x357fa8=function(_0x591df1,_0x3a7303){return new window[(_0x4cbc64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x444b44=>{if(_0x547de4())return _0x444b44(_0x4cbc64([0x56,0x61,0x6c,0x69,0x64]));_0x27ade3(),_0x39079b[_0x4cbc64([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4cbc64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27075e=!0x1;const _0x463e0f=uid();function _0x224ee2(_0x27a448){return!!_0x27a448&&(typeof _0x27a448===_0x4cbc64([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x27a448===_0x4cbc64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x27a448[_0x4cbc64([0x74,0x68,0x65,0x6e])]===_0x4cbc64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x27a448[_0x4cbc64([0x63,0x61,0x74,0x63,0x68])]===_0x4cbc64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17ccd5(_0x6405ec){_0x243348(_0x6405ec)[_0x4cbc64([0x74,0x68,0x65,0x6e])](_0x295470=>{if(!_0x295470||_0x295470[_0x4cbc64([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4cbc64([0x6f,0x6b]))return _0x4cbc64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x495d3d(_0x72a790(_0x463e0f+_0x3a7303))!=_0x295470[_0x4cbc64([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4cbc64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4cbc64([0x56,0x61,0x6c,0x69,0x64]);})[_0x4cbc64([0x74,0x68,0x65,0x6e])](_0x505c62=>(_0x1c56be(),_0x505c62),()=>{const _0x3e4c68=_0x39ff48();return null==_0x3e4c68?(_0x1c56be(),_0x4cbc64([0x56,0x61,0x6c,0x69,0x64])):_0x4cbc64(_0x2373e7-_0x3e4c68>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4cbc64([0x74,0x68,0x65,0x6e])](_0x444b44)[_0x4cbc64([0x63,0x61,0x74,0x63,0x68])](()=>{_0x444b44(_0x4cbc64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37964a=0x36ee80;function _0x1c56be(){const _0x340f8d=_0x4cbc64([0x6c,0x6c,0x63,0x74,0x2d])+_0x495d3d(_0x72a790(_0x591df1)),_0x136240=_0x5304ce(_0x495d3d(window[_0x4cbc64([0x4d,0x61,0x74,0x68])][_0x4cbc64([0x63,0x65,0x69,0x6c])](_0x2373e7/_0x37964a)));window[_0x4cbc64([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4cbc64([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x340f8d,_0x136240);}function _0x39ff48(){const _0x264c5d=_0x4cbc64([0x6c,0x6c,0x63,0x74,0x2d])+_0x495d3d(_0x72a790(_0x591df1)),_0x1ef2c0=window[_0x4cbc64([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4cbc64([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x264c5d);return _0x1ef2c0?window[_0x4cbc64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5304ce(_0x1ef2c0),0x10)*_0x37964a:null;}function _0x243348(_0x2603d6){return new window[(_0x4cbc64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36a497,_0x259103)=>{_0x2603d6[_0x4cbc64([0x74,0x68,0x65,0x6e])](_0x36a497,_0x259103),window[_0x4cbc64([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x259103,0x1d4c0);});}}_0x39079b[_0x4cbc64([0x6f,0x6e])](_0x4cbc64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x10b643,_0x14c430)=>{if(_0x14c430[0x0]!=_0x591df1)return _0x444b44(_0x4cbc64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14c430[0x1]={..._0x14c430[0x1],[_0x4cbc64([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x463e0f};},{[_0x4cbc64([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4cbc64([0x68,0x69,0x67,0x68])}),_0x39079b[_0x4cbc64([0x6f,0x6e])](_0x4cbc64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ceb84=>{_0x224ee2(_0x2ceb84[_0x4cbc64([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27075e=!0x0,_0x17ccd5(_0x2ceb84[_0x4cbc64([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4cbc64([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4cbc64([0x6c,0x6f,0x77])}),_0x46b493[_0x4cbc64([0x74,0x68,0x65,0x6e])](()=>{_0x27075e||_0x444b44(_0x4cbc64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x547de4(){return _0x39079b[_0x4cbc64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4cbc64([0x76,0x69,0x65,0x77])][_0x4cbc64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4cbc64([0x61,0x75,0x74,0x6f]);}function _0x27ade3(){_0x39079b[_0x4cbc64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4cbc64([0x76,0x69,0x65,0x77])][_0x4cbc64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4cbc64([0x61,0x75,0x74,0x6f]);}}(_0x599d8b[_0x4cbc64([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x599d8b[_0x4cbc64([0x6a,0x74,0x69])]));const _0x4404cd=await(async function(){let _0x382bcf=!0x0;try{const _0x1f4a2b=_0x2d8817[_0x4cbc64([0x73,0x70,0x6c,0x69,0x74])](_0x4cbc64([0x2e])),[_0x272e13,_0x329a21,_0x466606]=_0x1f4a2b;return _0x4338a8(_0x272e13),await _0x253853(_0x272e13,_0x329a21,_0x466606),_0x382bcf;}catch{return!0x1;}function _0x4338a8(_0x491516){const _0x5517d9=_0x1f05a5(_0x491516);_0x5517d9&&_0x5517d9[_0x4cbc64([0x61,0x6c,0x67])]==_0x4cbc64([0x45,0x53,0x32,0x35,0x36])||(_0x382bcf=!0x1);}async function _0x253853(_0x53513d,_0x338417,_0x47d94b){const _0x2928b8=window[_0x4cbc64([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4cbc64([0x66,0x72,0x6f,0x6d])](_0x3d7f60(_0x47d94b),_0x3211d1=>_0x3211d1[_0x4cbc64([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x157202=new window[(_0x4cbc64([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4cbc64([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53513d+_0x4cbc64([0x2e])+_0x338417),_0x547d2a=window[_0x4cbc64([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4cbc64([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x547d2a)return;const _0x4fa347=await _0x547d2a[_0x4cbc64([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4cbc64([0x6a,0x77,0x6b]),_0x53b2b1,{[_0x4cbc64([0x6e,0x61,0x6d,0x65])]:_0x4cbc64([0x45,0x43,0x44,0x53,0x41]),[_0x4cbc64([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4cbc64([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4cbc64([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x547d2a[_0x4cbc64([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4cbc64([0x6e,0x61,0x6d,0x65])]:_0x4cbc64([0x45,0x43,0x44,0x53,0x41]),[_0x4cbc64([0x68,0x61,0x73,0x68])]:{[_0x4cbc64([0x6e,0x61,0x6d,0x65])]:_0x4cbc64([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fa347,_0x2928b8,_0x157202)||(_0x382bcf=!0x1);}}());return _0x4404cd?(function(){const _0x1f4d39=_0x599d8b[_0x4cbc64([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1f4d39)return!0x1;if(_0x1f4d39[_0x4cbc64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cbc64([0x2a])))return!0x0;if(_0x1f4d39[_0x4cbc64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cbc64([0x4c,0x48])))return!0x0;return!0x1;}())?(function(){const _0x1966cf=[_0x4cbc64([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4cbc64([0x74,0x72,0x69,0x61,0x6c])][_0x4cbc64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x599d8b[_0x4cbc64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2373e7/0x3e8:0x69cb0e80;return _0x599d8b[_0x4cbc64([0x65,0x78,0x70])]<_0x1966cf;}())?_0x4cbc64([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xeaacef=_0x599d8b[_0x4cbc64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xeaacef||0x0==_0xeaacef[_0x4cbc64([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ce501}=new URL(window[_0x4cbc64([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xeaacef[_0x4cbc64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ce501))return!0x0;const _0x5139c7=_0x3ce501[_0x4cbc64([0x73,0x70,0x6c,0x69,0x74])](_0x4cbc64([0x2e]));return _0xeaacef[_0x4cbc64([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ead9f=>_0x1ead9f[_0x4cbc64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cbc64([0x2a])))[_0x4cbc64([0x6d,0x61,0x70])](_0x5ca9ee=>_0x5ca9ee[_0x4cbc64([0x73,0x70,0x6c,0x69,0x74])](_0x4cbc64([0x2e])))[_0x4cbc64([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5535d1=>_0x5535d1[_0x4cbc64([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5139c7[_0x4cbc64([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4cbc64([0x6d,0x61,0x70])](_0xb17e11=>Array(_0x5139c7[_0x4cbc64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xb17e11[_0x4cbc64([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4cbc64([0x66,0x69,0x6c,0x6c])](_0xb17e11[0x0]===_0x4cbc64([0x2a])?_0x4cbc64([0x2a]):'')[_0x4cbc64([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xb17e11))[_0x4cbc64([0x73,0x6f,0x6d,0x65])](_0x275b07=>_0x5139c7[_0x4cbc64([0x65,0x76,0x65,0x72,0x79])]((_0x61159b,_0x29962b)=>_0x275b07[_0x29962b]===_0x61159b||_0x275b07[_0x29962b]===_0x4cbc64([0x2a])));}())?(_0x599d8b[_0x4cbc64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4cbc64([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c5257=function(_0x3cef59){const _0x4ba7a0=new window[(_0x4cbc64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x545239=>setTimeout(_0x545239,0x93ecc)),_0x55a7ee=_0x46b493[_0x4cbc64([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4cbc64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ed9f0=>{let _0x2b8d01=0x0;_0x39079b[_0x4cbc64([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cbc64([0x6f,0x6e])](_0x4cbc64([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b3591,_0x220286)=>{_0x220286[0x0][_0x4cbc64([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b8d01++,0x5e8==_0x2b8d01&&(_0x1ed9f0(),_0x3b3591[_0x4cbc64([0x6f,0x66,0x66])]());});})),_0x3b1033=[_0x4ba7a0,_0x55a7ee];return window[_0x4cbc64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4cbc64([0x72,0x61,0x63,0x65])](_0x3b1033)[_0x4cbc64([0x74,0x68,0x65,0x6e])](()=>_0x3cef59);}(_0x4cbc64([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5c5257&&_0x357fa8)return new window[(_0x4cbc64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b727b,_0x57bdf3)=>{_0x5c5257[_0x4cbc64([0x74,0x68,0x65,0x6e])](_0x4b727b,_0x57bdf3),_0x357fa8[_0x4cbc64([0x74,0x68,0x65,0x6e])](_0x10be36=>{_0x10be36!=_0x4cbc64([0x56,0x61,0x6c,0x69,0x64])&&_0x4b727b(_0x10be36);},_0x57bdf3);});return _0x5c5257||_0x357fa8||_0x4cbc64([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4cbc64([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4cbc64([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4cbc64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4cbc64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x1f05a5(_0x4af808){return _0x4af808[_0x4cbc64([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4cbc64([0x65,0x79]))?JSON[_0x4cbc64([0x70,0x61,0x72,0x73,0x65])](_0x3d7f60(_0x4af808)):null;}function _0x3d7f60(_0x2e68b8){return window[_0x4cbc64([0x61,0x74,0x6f,0x62])](_0x2e68b8[_0x4cbc64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4cbc64([0x2b]))[_0x4cbc64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4cbc64([0x2f])));}function _0x72a790(_0x31dda0){let _0x23d873=0x1505;function _0x294490(_0x43e25e){for(let _0x2dd502=0x0;_0x2dd502<_0x43e25e[_0x4cbc64([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2dd502++){const _0x2eee45=_0x43e25e[_0x4cbc64([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2dd502);_0x23d873=(_0x23d873<<0x5)+_0x23d873+_0x2eee45,_0x23d873&=_0x23d873;}}return function _0x4bb947(_0x3658a1){Array[_0x4cbc64([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3658a1)?_0x3658a1[_0x4cbc64([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bb947):_0x3658a1&&typeof _0x3658a1==_0x4cbc64([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4cbc64([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3658a1)[_0x4cbc64([0x73,0x6f,0x72,0x74])]()[_0x4cbc64([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17ef20,_0x2beb45])=>{_0x294490(_0x17ef20),_0x4bb947(_0x2beb45);}):_0x294490(window[_0x4cbc64([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3658a1));}(_0x31dda0),_0x23d873>>>0x0;}function _0x495d3d(_0x34fc47){return _0x34fc47[_0x4cbc64([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4cbc64([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4cbc64([0x30]));}function _0x5304ce(_0x118f49){return _0x118f49[_0x4cbc64([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4cbc64([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4cbc64([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d5c0c(){}function _0x4cbc64(_0x2df043){return _0x2df043['map'](_0x2c916b=>String['fromCharCode'](_0x2c916b))['join']('');}!function(_0x4ab9f7){const _0x428aab=(function(){const _0x36ec7f=window[_0x4cbc64([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4cbc64([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4cbc64([0x6e,0x6f,0x77])]())[_0x4cbc64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4cbc64([0x2e]),'');let _0x20ca14=_0x4cbc64([0x50]);for(let _0x3d0f77=0x0;_0x3d0f77<_0x36ec7f[_0x4cbc64([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d0f77+=0x2){let _0x3931fb=window[_0x4cbc64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36ec7f[_0x4cbc64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d0f77,_0x3d0f77+0x2));_0x3931fb>=_0x45afcc[_0x4cbc64([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3931fb-=_0x45afcc[_0x4cbc64([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x20ca14+=_0x45afcc[_0x3931fb];}return _0x20ca14;}());_0x39079b[_0x428aab]=_0x4cbc64([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ab9f7,_0x4ab9f7!=_0x4cbc64([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x46b493,_0x39079b[_0x4cbc64([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cbc64([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d5c0c,_0x39079b[_0x4cbc64([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cbc64([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d5c0c,_0x39079b[_0x4cbc64([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4cbc64([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x28d1fa);}class LineHeightUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x58a51d={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x58a51d),this['_registerMenuBarComponent'](_0x58a51d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1661fa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1737bf;for(const _0x3c6e3b in _0x1661fa){const _0x1dfdb2=_0x3c6e3b,_0x36d234=_0x1661fa[_0x1dfdb2];if('lineHeightLicenseKeyValid'==_0x36d234||'lineHeightLicenseKeyInvalid'==_0x36d234||'lineHeightLicenseKeyExpired'==_0x36d234||'lineHeightLicenseKeyDomainLimit'==_0x36d234||'lineHeightLicenseKeyNotAllowed'==_0x36d234||'lineHeightLicenseKeyEvaluationLimit'==_0x36d234||'lineHeightLicenseKeyUsageLimit'==_0x36d234){delete _0x1661fa[_0x1dfdb2],_0x1737bf=_0x36d234,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x1737bf&&_0x1661fa['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x1737bf&&_0x1661fa['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x1737bf&&_0x1661fa['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x1737bf&&_0x1661fa['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x1737bf&&_0x1661fa['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x1737bf&&_0x1661fa['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x26c577=this['editor'],t=_0x26c577['t'],_0x29b67a=_0x26c577['config']['get']('lineHeight'),_0x1e9659={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return normalizeOptions(_0x29b67a)['map'](_0xefd503=>{const _0x23a29f=_0x1e9659[_0xefd503['title']];return _0x23a29f&&_0x23a29f!=_0xefd503['title']&&(_0xefd503=Object['assign']({},_0xefd503,{'title':_0x23a29f})),_0xefd503;});}['_prepareListOptions'](){const _0x5a642e=this['editor']['commands']['get']('lineHeight'),_0x2932a5=this['editor']['config']['get']('lineHeight.defaultValue'),_0x33dea0=this['_getLocalizedLineHeightOptions'](),_0x4facbb=new Collection(),_0x1f57ad=_0x12ed92=>'default'===_0x12ed92||String(_0x2932a5)===_0x12ed92;for(const _0x40921c of _0x33dea0){const _0x4b93d9={'type':'button','model':new UIModel({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x40921c['title'],'withText':!0x0})};_0x1f57ad(_0x40921c['model'])?(_0x4b93d9['model']['bind']('isOn')['to'](_0x5a642e,'value',_0x1f5ff4=>!_0x1f5ff4),_0x4b93d9['model']['commandParam']=void 0x0):(_0x4b93d9['model']['bind']('isOn')['to'](_0x5a642e,'value',_0x25cf66=>_0x25cf66===_0x40921c['model']),_0x4b93d9['model']['commandParam']=_0x40921c['model']),_0x4facbb['add'](_0x4b93d9);}if(this['_shouldRenderCustomValueOption']()){const _0x212709=this['_getCustomValueOptionDefinition'](_0x33dea0);_0x4facbb['add'](_0x212709);}return _0x4facbb;}['_getCustomValueOptionDefinition'](_0x22fbd5){const _0x1b62e4=this['editor'],t=_0x1b62e4['t'],_0x26f35e=_0x1b62e4['commands']['get']('lineHeight'),_0x2e1bd6=_0x22fbd5['map'](_0x2b60fa=>_0x2b60fa['model']),_0x18d22b={'type':'button','model':new UIModel({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x18d22b['model']['bind']('commandParam')['to'](_0x26f35e,'value'),_0x18d22b['model']['bind']('isOn')['to'](_0x26f35e,'value',_0x4b2b54=>!!_0x4b2b54&&!_0x2e1bd6['includes'](String(_0x4b2b54))),_0x18d22b['model']['bind']('label')['to'](_0x26f35e,'value',_0x190c80=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x190c80))),_0x18d22b;}['_registerToolbarComponent']({accessibleLabel:_0x5d3dc9,options:_0x5cbf7a}){const _0x5aaa0a=this['editor'],_0x495e8b=_0x5aaa0a['commands']['get']('lineHeight');_0x5aaa0a['ui']['componentFactory']['add']('lineHeight',_0x455be2=>{const _0x14783b=createDropdown(_0x455be2);return addListToDropdown(_0x14783b,_0x5cbf7a,{'role':'menu','ariaLabel':_0x5d3dc9}),_0x14783b['buttonView']['set']({'label':_0x5d3dc9,'tooltip':!0x0,'icon':IconLineHeight}),_0x14783b['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x14783b['bind']('isEnabled')['to'](_0x495e8b),this['listenTo'](_0x14783b,'execute',_0x39e563=>{_0x5aaa0a['execute'](_0x39e563['source']['commandName'],{'value':_0x39e563['source']['commandParam']}),_0x5aaa0a['editing']['view']['focus']();}),_0x14783b['once']('change:isOpen',()=>{const _0x58d348=_0x14783b['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x14783b,_0x5cbf7a,_0x58d348);}),_0x14783b;});}['_registerMenuBarComponent']({accessibleLabel:_0x2b9f01,options:_0x469e3e}){const _0x329e05=this['editor'],_0x24f4d0=_0x329e05['commands']['get']('lineHeight');_0x329e05['ui']['componentFactory']['add']('menuBar:lineHeight',_0x570192=>{const _0xedfc99=new MenuBarMenuView(_0x570192);_0xedfc99['buttonView']['set']({'label':_0x2b9f01,'icon':IconLineHeight}),_0xedfc99['bind']('isEnabled')['to'](_0x24f4d0);const _0x31d17a=new MenuBarMenuListView(_0x570192);for(const _0x4c143d of _0x469e3e){const _0xeee750=new MenuBarMenuListItemView(_0x570192,_0xedfc99),_0x4cee3a=new MenuBarMenuListItemButtonView(_0x570192);_0x4cee3a['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x4cee3a['bind'](...Object['keys'](_0x4c143d['model']))['to'](_0x4c143d['model']),_0x4cee3a['delegate']('execute')['to'](_0xedfc99),_0x4cee3a['on']('execute',()=>{_0x329e05['execute'](_0x4c143d['model']['commandName'],{'value':_0x4c143d['model']['commandParam']}),_0x329e05['editing']['view']['focus']();}),_0xeee750['children']['add'](_0x4cee3a),_0x31d17a['items']['add'](_0xeee750);}return _0xedfc99['panelView']['children']['add'](_0x31d17a),this['_attachCustomOptionVisibilityHandler'](_0xedfc99,_0x469e3e,_0x31d17a),_0xedfc99;});}['_attachCustomOptionVisibilityHandler'](_0x97c756,_0x503d94,_0x951411){if(!this['_shouldRenderCustomValueOption']())return;const _0x5b4b0d=()=>{if(!_0x97c756['isOpen'])return;_0x951411['items']['last']['isVisible']=Boolean(_0x503d94['last']['model']['isOn']);};_0x5b4b0d(),_0x97c756['on']('change:isOpen',()=>{_0x5b4b0d();});}}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(_0x3eba89,_0x320bd0,_0x3b6af3){super(_0x3eba89),this['defaultListMarkerStyle']=_0x320bd0,this['_listDefinitions']=_0x3b6af3,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3d51c4={}){const _0x3596df=this['editor']['model'],_0x53b673=_0x3d51c4['listMarkerStyle']||this['defaultListMarkerStyle'];_0x3596df['change'](()=>{const _0x4ddc1c=this['_getListTypeFromListMarkerStyle'](_0x53b673);if(!_0x4ddc1c)return;const _0x4fd59f=_0x4ddc1c+'List';this['editor']['execute'](_0x4fd59f,{'additionalAttributes':{'listMarkerStyle':_0x53b673}});});}['_getValue'](){const _0x1af76c=first(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x1af76c)?_0x1af76c['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x3bade2=this['editor'],_0x40238b=_0x3bade2['commands']['get']('customNumberedList'),_0x38bebe=_0x3bade2['commands']['get']('customBulletedList');return _0x40238b['isEnabled']||_0x38bebe['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x4c5da8){const _0xe953c3=this['_listDefinitions']['find'](_0x449e8d=>_0x449e8d['listMarkerStyle']==_0x4c5da8);return _0xe953c3?_0xe953c3['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(_0x56de00){super(_0x56de00);const _0x4da13f=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x1c9837=>_0x1c9837+'.'}]},..._0x4da13f];}['init'](){const _0x2f77da=this['editor'],_0x4974d0=_0x2f77da['model'],_0x2a17fa=_0x2f77da['editing']['view'],_0x34ef66=_0x2f77da['plugins']['get'](ListEditing);_0x2f77da['commands']['add']('multiLevelList',new MultiLevelListCommand(_0x2f77da,'legal',this['_listDefinitions'])),_0x4974d0['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x4974d0['schema']['addAttributeCheck']((_0x24ea94,_0x1265f6)=>{const _0x4a209d=_0x24ea94['last'];if('listMarker'==_0x1265f6||'listMarkerStyle'==_0x1265f6)return!(!_0x4a209d['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x30b39d=>_0x30b39d['listType']==_0x4a209d['getAttribute']('listType')))&&void 0x0;});for(const _0x1ce4a8 of this['_listDefinitions'])_0x2f77da['conversion']['for']('upcast')['add'](_0x58fe79=>{_0x58fe79['on']('element:'+('customNumbered'==_0x1ce4a8['listType']?'ol':'ul'),multiLevelListUpcastConverter(_0x1ce4a8,_0x4974d0['schema']),{'priority':'low'});}),_0x34ef66['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x400179,_0x2487d4,_0x11bdc4){_0x2487d4==_0x1ce4a8['listMarkerStyle']?(_0x400179['addClass'](['multi-level-list',_0x1ce4a8['className']],_0x11bdc4),_0x400179['setStyle']('list-style-type','none',_0x11bdc4)):(_0x400179['removeClass'](['multi-level-list',_0x1ce4a8['className']],_0x11bdc4),_0x400179['removeStyle']('list-style-type',_0x11bdc4));}}),_0x34ef66['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x13409e,_0x1c39d3,{dataPipeline:_0x9001ff}){if(!_0x1c39d3['hasAttribute']('listMarker'))return null;if(_0x1c39d3['getAttribute']('listType')!=_0x1ce4a8['listType']||_0x1c39d3['getAttribute']('listMarkerStyle')!=_0x1ce4a8['listMarkerStyle'])return null;const _0xe0da6b=String(_0x1c39d3['getAttribute']('listMarker')),_0x136631=this['canInjectMarkerIntoElement'](_0x1c39d3);return _0x13409e['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x9001ff&&{'contenteditable':'false','data-multi-level-list-marker':_0xe0da6b}},function(_0x986428){const _0x5a3517=this['toDomElement'](_0x986428);return _0x136631?(_0x5a3517['appendChild'](createElement(_0x986428,'span',{},_0x9001ff?_0x986428['createTextNode'](_0xe0da6b):[])),_0x5a3517['appendChild'](_0x986428['createTextNode']('\u00a0'))):_0x9001ff&&_0x5a3517['appendChild'](_0x986428['createTextNode'](_0xe0da6b)),_0x5a3517;});},'canInjectMarkerIntoElement':_0x150921=>_0x4974d0['schema']['checkChild'](_0x150921,'$text')&&_0x4974d0['schema']['checkChild'](_0x150921,'$inlineObject')&&!_0x4974d0['schema']['isLimit'](_0x150921)&&_0x150921['getAttribute']('listType')==_0x1ce4a8['listType']&&_0x150921['getAttribute']('listMarkerStyle')==_0x1ce4a8['listMarkerStyle']});_0x2f77da['conversion']['for']('upcast')['add'](_0x1dbf66=>{_0x1dbf66['on']('element:span',multiLevelListMarkerUpcastConverter(_0x2a17fa));}),_0x34ef66['on']('postFixer',(_0x546450,{listNodes:_0x1145d1,writer:_0x4c0ca1})=>{const _0x277554=[];for(const {node:_0x555cb1,previousNodeInList:_0x4c2a60}of _0x1145d1){const _0x7222d2=_0x555cb1['getAttribute']('listType'),_0x5e0446=_0x555cb1['getAttribute']('listMarkerStyle')||('customNumbered'==_0x7222d2?'legal':void 0x0),_0x3e6af2=this['_listDefinitions']['find'](_0x403edc=>_0x403edc['listType']==_0x7222d2&&_0x403edc['listMarkerStyle']==_0x5e0446);if('customNumbered'!=_0x7222d2&&'customBulleted'!=_0x7222d2&&(_0x555cb1['hasAttribute']('listMarker')&&(_0x4c0ca1['removeAttribute']('listMarker',_0x555cb1),_0x546450['return']=!0x0),_0x555cb1['hasAttribute']('listMarkerStyle')&&(_0x4c0ca1['removeAttribute']('listMarkerStyle',_0x555cb1),_0x546450['return']=!0x0)),!_0x3e6af2){'customBulleted'!=_0x7222d2||_0x5e0446||(_0x4c0ca1['setAttribute']('listType','bulleted',_0x555cb1),_0x546450['return']=!0x0);continue;}_0x555cb1['hasAttribute']('listMarkerStyle')||(_0x4c0ca1['setAttribute']('listMarkerStyle',_0x5e0446,_0x555cb1),_0x546450['return']=!0x0);const _0x24eead=_0x555cb1['getAttribute']('listIndent');if(_0x4c2a60&&_0x4c2a60['getAttribute']('listItemId')==_0x555cb1['getAttribute']('listItemId'))continue;_0x277554['length']=_0x24eead+0x1,_0x4c2a60||_0x277554[_0x24eead]?_0x4c2a60&&_0x4c2a60['getAttribute']('listType')!=_0x3e6af2['listType']?_0x277554[_0x24eead]=0x1:_0x277554[_0x24eead]++:_0x277554[_0x24eead]=_0x555cb1['getAttribute']('listStart')||0x1;const _0x1eabec=generateMarker(_0x24eead,_0x3e6af2,_0x277554);_0x555cb1['getAttribute']('listMarker')!=_0x1eabec&&(_0x4c0ca1['setAttribute']('listMarker',_0x1eabec,_0x555cb1),_0x546450['return']=!0x0);}});const _0x19b8b7=_0x2f77da['editing']['view']['document'];this['listenTo'](_0x19b8b7,'clipboardOutput',(_0x5c32e6,_0x2707cb)=>{const _0x59c105=new Matcher({'name':'span','classes':'multi-level-list__marker'}),_0xc439e7=new Matcher({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x37eaa2=new ViewUpcastWriter(_0x2707cb['content']['document']),_0x1b27b6=[];for(const _0x5bd422 of _0x37eaa2['createRangeIn'](_0x2707cb['content'])['getItems']())_0x5bd422['is']('element')&&_0x59c105['match'](_0x5bd422)&&_0x1b27b6['push'](_0x5bd422),_0x5bd422['is']('element')&&_0xc439e7['match'](_0x5bd422)&&_0x37eaa2['removeStyle']('list-style-type',_0x5bd422);for(const _0x56d349 of _0x1b27b6)_0x37eaa2['remove'](_0x56d349);});}['afterInit'](){checkLicense$9(this);}}function generateMarker(_0x138993,_0x531d1f,_0x558396){let _0x52cecd=_0x531d1f['listMarkers'][_0x138993%_0x531d1f['listMarkers']['length']];if(void 0x0===_0x52cecd['showMarkerPath']||_0x52cecd['showMarkerPath'])return _0x558396['slice'](0x0,_0x138993+0x1)['map']((_0x177579,_0x5be49a)=>(_0x52cecd=_0x531d1f['listMarkers'][_0x5be49a%_0x531d1f['listMarkers']['length']],getMarkerString(_0x52cecd['marker'],_0x177579)))['join']('');{const _0x22d253=_0x558396[_0x558396['length']-0x1];return getMarkerString(_0x52cecd['marker'],_0x22d253);}}function getMarkerString(_0x593ed7,_0x9bbb29){return'function'==typeof _0x593ed7?_0x593ed7(_0x9bbb29):_0x593ed7;}function multiLevelListUpcastConverter(_0x35eec8,_0x157563){return(_0x5764c1,_0x1b3d24,_0x4034dc)=>{const _0x1a6700=_0x1b3d24['viewItem'];if(_0x1b3d24['modelRange']||Object['assign'](_0x1b3d24,_0x4034dc['convertChildren'](_0x1b3d24['viewItem'],_0x1b3d24['modelCursor'])),!_0x4034dc['consumable']['test'](_0x1a6700,{'classes':_0x35eec8['className']}))return;const _0x5af1ef=Array['from'](_0x1b3d24['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x1a47b6=>_0x157563['checkAttribute'](_0x1a47b6,'listItemId'));if(!_0x5af1ef['length'])return;_0x4034dc['consumable']['consume'](_0x1a6700,{'classes':_0x35eec8['className']}),_0x4034dc['consumable']['consume'](_0x1a6700,{'classes':'multi-level-list'}),_0x4034dc['consumable']['consume'](_0x1a6700,{'styles':'list-style-type'});const _0x39c730=_0x5af1ef[0x0]['getAttribute']('listIndent');for(const _0x535c88 of _0x5af1ef)_0x535c88['getAttribute']('listIndent')==_0x39c730&&(_0x4034dc['writer']['setAttribute']('listType',_0x35eec8['listType'],_0x535c88),_0x4034dc['writer']['setAttribute']('listMarkerStyle',_0x35eec8['listMarkerStyle'],_0x535c88));};}function multiLevelListMarkerUpcastConverter(_0xc9f0dc){return(_0x136fc2,_0x26406e,{writer:_0x32a209,consumable:_0x13776c})=>{const _0xa37ef0=_0x26406e['modelCursor'],_0x1ef9e3=_0xa37ef0['parent'],_0x4e65e8=_0x26406e['viewItem'];if(_0x13776c['consume'](_0x4e65e8,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0xa37ef0['isAtStart']&&_0x1ef9e3['hasAttribute']('listType')&&_0x4e65e8['childCount']>0x0){const _0x112600=_0xc9f0dc['createRangeIn'](_0x4e65e8);let _0x257150='';for(const _0x4adb24 of _0x112600['getItems']())_0x4adb24['is']('$textProxy')?(_0x257150+=_0x4adb24['data']['trim'](),_0x13776c['consume'](_0x4adb24['textNode'])):_0x13776c['consume'](_0x4adb24,{'name':!0x0});_0x32a209['setAttribute']('listMarker',_0x257150['trim'](),_0x1ef9e3);}};}async function checkLicense$9(_0x58e806){const _0x897c18=_0x5b9f67([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]),_0x412afc=window[_0x5b9f67([0x44,0x61,0x74,0x65])][_0x5b9f67([0x6e,0x6f,0x77])](),_0x14bd91=_0x58e806[_0x5b9f67([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x10aa28=new window[(_0x5b9f67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b6c6b=>{_0x14bd91[_0x5b9f67([0x6f,0x6e,0x63,0x65])](_0x5b9f67([0x72,0x65,0x61,0x64,0x79]),_0x5b6c6b);}),_0x2ae263={[_0x5b9f67([0x6b,0x74,0x79])]:_0x5b9f67([0x45,0x43]),[_0x5b9f67([0x75,0x73,0x65])]:_0x5b9f67([0x73,0x69,0x67]),[_0x5b9f67([0x63,0x72,0x76])]:_0x5b9f67([0x50,0x2d,0x32,0x35,0x36]),[_0x5b9f67([0x78])]:_0x5b9f67([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]),[_0x5b9f67([0x79])]:_0x5b9f67([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]),[_0x5b9f67([0x61,0x6c,0x67])]:_0x5b9f67([0x45,0x53,0x32,0x35,0x36])},_0x1fc068=_0x14bd91[_0x5b9f67([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b9f67([0x67,0x65,0x74])](_0x5b9f67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x2d7b4d=await(async function(){let _0x128fed,_0x5ec270=null,_0x3b5258=null;try{if(_0x1fc068==_0x5b9f67([0x47,0x50,0x4c]))return _0x5b9f67([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x128fed=(function(){const _0x17fda8=_0x1fc068[_0x5b9f67([0x73,0x70,0x6c,0x69,0x74])](_0x5b9f67([0x2e]));if(0x3!=_0x17fda8[_0x5b9f67([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x9cbb1=_0x17fda8[0x1];return _0x4b9452(_0x9cbb1);function _0x4b9452(_0x245cb0){const _0x35eb65=_0x54831c(_0x245cb0);return _0x35eb65&&_0x5eb818()?_0x35eb65:null;function _0x5eb818(){const _0x39f741=_0x35eb65[_0x5b9f67([0x6a,0x74,0x69])],_0x16b866=window[_0x5b9f67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39f741[_0x5b9f67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39f741[_0x5b9f67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x29daaf={..._0x35eb65,[_0x5b9f67([0x6a,0x74,0x69])]:_0x39f741[_0x5b9f67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x39f741[_0x5b9f67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x29daaf[_0x5b9f67([0x76,0x63])],_0x342406(_0x29daaf)==_0x16b866;}}}()),!_0x128fed)return _0x5b9f67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x128fed[_0x5b9f67([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b5258=function(_0x1778ea,_0x2d3001){return new window[(_0x5b9f67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x116463=>{if(_0xc40028())return _0x116463(_0x5b9f67([0x56,0x61,0x6c,0x69,0x64]));_0x4f5737(),_0x14bd91[_0x5b9f67([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b9f67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x41bfb1=!0x1;const _0x13d22f=uid();function _0x2ec6ba(_0xf74620){return!!_0xf74620&&(typeof _0xf74620===_0x5b9f67([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf74620===_0x5b9f67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf74620[_0x5b9f67([0x74,0x68,0x65,0x6e])]===_0x5b9f67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf74620[_0x5b9f67([0x63,0x61,0x74,0x63,0x68])]===_0x5b9f67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d7bfb(_0x4303c2){_0x14f9df(_0x4303c2)[_0x5b9f67([0x74,0x68,0x65,0x6e])](_0x4ecec0=>{if(!_0x4ecec0||_0x4ecec0[_0x5b9f67([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b9f67([0x6f,0x6b]))return _0x5b9f67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10deae(_0x342406(_0x13d22f+_0x2d3001))!=_0x4ecec0[_0x5b9f67([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b9f67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b9f67([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b9f67([0x74,0x68,0x65,0x6e])](_0x53f5a0=>(_0x2c653e(),_0x53f5a0),()=>{const _0x8928be=_0x357f9c();return null==_0x8928be?(_0x2c653e(),_0x5b9f67([0x56,0x61,0x6c,0x69,0x64])):_0x5b9f67(_0x412afc-_0x8928be>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b9f67([0x74,0x68,0x65,0x6e])](_0x116463)[_0x5b9f67([0x63,0x61,0x74,0x63,0x68])](()=>{_0x116463(_0x5b9f67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c4b99=0x36ee80;function _0x2c653e(){const _0x33fdd5=_0x5b9f67([0x6c,0x6c,0x63,0x74,0x2d])+_0x10deae(_0x342406(_0x1778ea)),_0xfcb8da=_0x59fea1(_0x10deae(window[_0x5b9f67([0x4d,0x61,0x74,0x68])][_0x5b9f67([0x63,0x65,0x69,0x6c])](_0x412afc/_0x2c4b99)));window[_0x5b9f67([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b9f67([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33fdd5,_0xfcb8da);}function _0x357f9c(){const _0x356bd2=_0x5b9f67([0x6c,0x6c,0x63,0x74,0x2d])+_0x10deae(_0x342406(_0x1778ea)),_0x5b8105=window[_0x5b9f67([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b9f67([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x356bd2);return _0x5b8105?window[_0x5b9f67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59fea1(_0x5b8105),0x10)*_0x2c4b99:null;}function _0x14f9df(_0xd987a9){return new window[(_0x5b9f67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x113c1,_0x1fce06)=>{_0xd987a9[_0x5b9f67([0x74,0x68,0x65,0x6e])](_0x113c1,_0x1fce06),window[_0x5b9f67([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fce06,0x1d4c0);});}}_0x14bd91[_0x5b9f67([0x6f,0x6e])](_0x5b9f67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c4319,_0x258d7d)=>{if(_0x258d7d[0x0]!=_0x1778ea)return _0x116463(_0x5b9f67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x258d7d[0x1]={..._0x258d7d[0x1],[_0x5b9f67([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x13d22f};},{[_0x5b9f67([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b9f67([0x68,0x69,0x67,0x68])}),_0x14bd91[_0x5b9f67([0x6f,0x6e])](_0x5b9f67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x130975=>{_0x2ec6ba(_0x130975[_0x5b9f67([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x41bfb1=!0x0,_0x3d7bfb(_0x130975[_0x5b9f67([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b9f67([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b9f67([0x6c,0x6f,0x77])}),_0x10aa28[_0x5b9f67([0x74,0x68,0x65,0x6e])](()=>{_0x41bfb1||_0x116463(_0x5b9f67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc40028(){return _0x14bd91[_0x5b9f67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b9f67([0x76,0x69,0x65,0x77])][_0x5b9f67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b9f67([0x61,0x75,0x74,0x6f]);}function _0x4f5737(){_0x14bd91[_0x5b9f67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b9f67([0x76,0x69,0x65,0x77])][_0x5b9f67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b9f67([0x61,0x75,0x74,0x6f]);}}(_0x128fed[_0x5b9f67([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x128fed[_0x5b9f67([0x6a,0x74,0x69])]));const _0x48f87d=await(async function(){let _0x2ded04=!0x0;try{const _0x2d4879=_0x1fc068[_0x5b9f67([0x73,0x70,0x6c,0x69,0x74])](_0x5b9f67([0x2e])),[_0x5d66b9,_0x249f4f,_0xbac836]=_0x2d4879;return _0x3eab74(_0x5d66b9),await _0x14a73c(_0x5d66b9,_0x249f4f,_0xbac836),_0x2ded04;}catch{return!0x1;}function _0x3eab74(_0x45623a){const _0xd461f2=_0x54831c(_0x45623a);_0xd461f2&&_0xd461f2[_0x5b9f67([0x61,0x6c,0x67])]==_0x5b9f67([0x45,0x53,0x32,0x35,0x36])||(_0x2ded04=!0x1);}async function _0x14a73c(_0x71c9d2,_0x2d8b4f,_0x30a797){const _0xcee653=window[_0x5b9f67([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b9f67([0x66,0x72,0x6f,0x6d])](_0x136340(_0x30a797),_0x2e819c=>_0x2e819c[_0x5b9f67([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e5ad0=new window[(_0x5b9f67([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b9f67([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x71c9d2+_0x5b9f67([0x2e])+_0x2d8b4f),_0x1fc602=window[_0x5b9f67([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b9f67([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1fc602)return;const _0x51dc03=await _0x1fc602[_0x5b9f67([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b9f67([0x6a,0x77,0x6b]),_0x2ae263,{[_0x5b9f67([0x6e,0x61,0x6d,0x65])]:_0x5b9f67([0x45,0x43,0x44,0x53,0x41]),[_0x5b9f67([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b9f67([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b9f67([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1fc602[_0x5b9f67([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b9f67([0x6e,0x61,0x6d,0x65])]:_0x5b9f67([0x45,0x43,0x44,0x53,0x41]),[_0x5b9f67([0x68,0x61,0x73,0x68])]:{[_0x5b9f67([0x6e,0x61,0x6d,0x65])]:_0x5b9f67([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51dc03,_0xcee653,_0x5e5ad0)||(_0x2ded04=!0x1);}}());return _0x48f87d?(function(){const _0xaedbce=_0x128fed[_0x5b9f67([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xaedbce)return!0x1;if(_0xaedbce[_0x5b9f67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b9f67([0x2a])))return!0x0;if(_0xaedbce[_0x5b9f67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b9f67([0x4d,0x4c,0x4c])))return!0x0;return!0x1;}())?(function(){const _0x1a2acf=[_0x5b9f67([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b9f67([0x74,0x72,0x69,0x61,0x6c])][_0x5b9f67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x128fed[_0x5b9f67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x412afc/0x3e8:0x69cb0e80;return _0x128fed[_0x5b9f67([0x65,0x78,0x70])]<_0x1a2acf;}())?_0x5b9f67([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x1c138b=_0x128fed[_0x5b9f67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c138b||0x0==_0x1c138b[_0x5b9f67([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xeae42a}=new URL(window[_0x5b9f67([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c138b[_0x5b9f67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xeae42a))return!0x0;const _0xa345b1=_0xeae42a[_0x5b9f67([0x73,0x70,0x6c,0x69,0x74])](_0x5b9f67([0x2e]));return _0x1c138b[_0x5b9f67([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d9889=>_0x3d9889[_0x5b9f67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b9f67([0x2a])))[_0x5b9f67([0x6d,0x61,0x70])](_0x1397a4=>_0x1397a4[_0x5b9f67([0x73,0x70,0x6c,0x69,0x74])](_0x5b9f67([0x2e])))[_0x5b9f67([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x196524=>_0x196524[_0x5b9f67([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa345b1[_0x5b9f67([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b9f67([0x6d,0x61,0x70])](_0x5c80db=>Array(_0xa345b1[_0x5b9f67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c80db[_0x5b9f67([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b9f67([0x66,0x69,0x6c,0x6c])](_0x5c80db[0x0]===_0x5b9f67([0x2a])?_0x5b9f67([0x2a]):'')[_0x5b9f67([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c80db))[_0x5b9f67([0x73,0x6f,0x6d,0x65])](_0x5e0d8b=>_0xa345b1[_0x5b9f67([0x65,0x76,0x65,0x72,0x79])]((_0x212dbc,_0x5dff63)=>_0x5e0d8b[_0x5dff63]===_0x212dbc||_0x5e0d8b[_0x5dff63]===_0x5b9f67([0x2a])));}())?(_0x128fed[_0x5b9f67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b9f67([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ec270=function(_0x41658a){const _0x2d576e=new window[(_0x5b9f67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4db6ea=>setTimeout(_0x4db6ea,0x93ecc)),_0x4b49b9=_0x10aa28[_0x5b9f67([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b9f67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5291db=>{let _0x103e81=0x0;_0x14bd91[_0x5b9f67([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b9f67([0x6f,0x6e])](_0x5b9f67([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x142fb2,_0x29b5d4)=>{_0x29b5d4[0x0][_0x5b9f67([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x103e81++,0x5e8==_0x103e81&&(_0x5291db(),_0x142fb2[_0x5b9f67([0x6f,0x66,0x66])]());});})),_0x1aea0a=[_0x2d576e,_0x4b49b9];return window[_0x5b9f67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b9f67([0x72,0x61,0x63,0x65])](_0x1aea0a)[_0x5b9f67([0x74,0x68,0x65,0x6e])](()=>_0x41658a);}(_0x5b9f67([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5ec270&&_0x3b5258)return new window[(_0x5b9f67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4059cc,_0x5eea6a)=>{_0x5ec270[_0x5b9f67([0x74,0x68,0x65,0x6e])](_0x4059cc,_0x5eea6a),_0x3b5258[_0x5b9f67([0x74,0x68,0x65,0x6e])](_0x3c3b98=>{_0x3c3b98!=_0x5b9f67([0x56,0x61,0x6c,0x69,0x64])&&_0x4059cc(_0x3c3b98);},_0x5eea6a);});return _0x5ec270||_0x3b5258||_0x5b9f67([0x56,0x61,0x6c,0x69,0x64]);}())):_0x5b9f67([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b9f67([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b9f67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5b9f67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x54831c(_0x361d86){return _0x361d86[_0x5b9f67([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b9f67([0x65,0x79]))?JSON[_0x5b9f67([0x70,0x61,0x72,0x73,0x65])](_0x136340(_0x361d86)):null;}function _0x136340(_0x823a49){return window[_0x5b9f67([0x61,0x74,0x6f,0x62])](_0x823a49[_0x5b9f67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b9f67([0x2b]))[_0x5b9f67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b9f67([0x2f])));}function _0x342406(_0x47e489){let _0x48b40f=0x1505;function _0x524fc3(_0xe72359){for(let _0x55fd74=0x0;_0x55fd74<_0xe72359[_0x5b9f67([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55fd74++){const _0x30407b=_0xe72359[_0x5b9f67([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55fd74);_0x48b40f=(_0x48b40f<<0x5)+_0x48b40f+_0x30407b,_0x48b40f&=_0x48b40f;}}return function _0x17bacd(_0x2d72d9){Array[_0x5b9f67([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d72d9)?_0x2d72d9[_0x5b9f67([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17bacd):_0x2d72d9&&typeof _0x2d72d9==_0x5b9f67([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b9f67([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d72d9)[_0x5b9f67([0x73,0x6f,0x72,0x74])]()[_0x5b9f67([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24e7ce,_0x1ca50f])=>{_0x524fc3(_0x24e7ce),_0x17bacd(_0x1ca50f);}):_0x524fc3(window[_0x5b9f67([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d72d9));}(_0x47e489),_0x48b40f>>>0x0;}function _0x10deae(_0x35b03e){return _0x35b03e[_0x5b9f67([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b9f67([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b9f67([0x30]));}function _0x59fea1(_0x46c5bc){return _0x46c5bc[_0x5b9f67([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b9f67([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b9f67([0x6a,0x6f,0x69,0x6e])]('');}function _0x103f7b(){}function _0x5b9f67(_0x415c1d){return _0x415c1d['map'](_0x5bed3d=>String['fromCharCode'](_0x5bed3d))['join']('');}!function(_0x4e7e5b){const _0x4d8421=(function(){const _0x2f076f=window[_0x5b9f67([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b9f67([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b9f67([0x6e,0x6f,0x77])]())[_0x5b9f67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b9f67([0x2e]),'');let _0x568ec3=_0x5b9f67([0x75]);for(let _0x2bc67e=0x0;_0x2bc67e<_0x2f076f[_0x5b9f67([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bc67e+=0x2){let _0x509d34=window[_0x5b9f67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f076f[_0x5b9f67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bc67e,_0x2bc67e+0x2));_0x509d34>=_0x897c18[_0x5b9f67([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x509d34-=_0x897c18[_0x5b9f67([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x568ec3+=_0x897c18[_0x509d34];}return _0x568ec3;}());_0x14bd91[_0x4d8421]=_0x5b9f67([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e7e5b,_0x4e7e5b!=_0x5b9f67([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x10aa28,_0x14bd91[_0x5b9f67([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b9f67([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x103f7b,_0x14bd91[_0x5b9f67([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b9f67([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x103f7b,_0x14bd91[_0x5b9f67([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b9f67([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x2d7b4d);}function getTranslation$9(_0x9505cc,_0x456a58){const _0x519767=_0x9505cc['t'],t=_0x9505cc['t'];switch(_0x456a58){case'Start\x20at':return _0x519767('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x519767('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x519767('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x519767('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 _0x456a58;}}class MultiLevelListView extends View{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusables']=new ViewCollection();['focusCycler'];constructor(_0x52e9a5,{enabledProperties:_0x41d019,styleButtonViews:_0x21637d,styleGridAriaLabel:_0x4ab1c1}){super(_0x52e9a5);const _0x1fb386=['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'}}),_0x41d019['styles']?(this['stylesView']=this['_createStylesView'](_0x21637d,_0x4ab1c1),this['children']['add'](this['stylesView'])):_0x1fb386['push']('ck-multi-level-list-properties_without-styles'),_0x41d019['startIndex']&&(this['_addListPropertyViews'](_0x41d019),_0x1fb386['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x1fb386},'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 _0x40bf68 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x40bf68['element']);addKeyboardHandlingForGrid({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x176c57['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 _0x3da392=_0x3dc202=>_0x3dc202['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3da392),this['keystrokes']['set']('arrowleft',_0x3da392),this['keystrokes']['set']('arrowup',_0x3da392),this['keystrokes']['set']('arrowdown',_0x3da392);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x437476,_0x10668b){const _0x1922d9=new View(this['locale']);return _0x1922d9['children']=_0x1922d9['createCollection'](),_0x1922d9['children']['addMany'](_0x437476),_0x1922d9['setTemplate']({'tag':'div','attributes':{'aria-label':_0x10668b,'class':['ck','ck-multi-level-list-styles']},'children':_0x1922d9['children']}),_0x1922d9['children']['delegate']('execute')['to'](this),_0x1922d9['focus']=function(){this['children']['first']['focus']();},_0x1922d9['focusTracker']=new FocusTracker(),_0x1922d9['keystrokes']=new KeystrokeHandler(),_0x1922d9['render'](),_0x1922d9['keystrokes']['listenTo'](_0x1922d9['element']),_0x1922d9;}['_addListPropertyViews'](_0x1cd372){const _0x4da01a=[];_0x1cd372['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x4da01a['push'](this['startIndexFieldView'])),_0x1cd372['styles']?(this['additionalPropertiesCollapsibleView']=new CollapsibleView(this['locale'],_0x4da01a),this['additionalPropertiesCollapsibleView']['set']({'label':getTranslation$9(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x4da01a,'isEnabled',(..._0x30edfc)=>_0x30edfc['some'](_0x301f04=>_0x301f04)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x446255,_0x223f35,_0x5f3350)=>{_0x5f3350||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x4da01a);}['_createStartIndexField'](){const _0x40a3b7=new LabeledFieldView(this['locale'],createLabeledInputNumber);return _0x40a3b7['set']({'label':getTranslation$9(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x40a3b7['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x40a3b7['fieldView']['on']('input',()=>{const _0x1ee1da=_0x40a3b7['fieldView']['element'],_0x107185=_0x1ee1da['valueAsNumber'];Number['isNaN'](_0x107185)?_0x40a3b7['errorText']=getTranslation$9(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x1ee1da['checkValidity']()?this['fire']('listStart',{'startIndex':_0x107185}):_0x40a3b7['errorText']=getTranslation$9(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x40a3b7;}}class MultiLevelListUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4af624=this['editor'];_0x4af624['ui']['componentFactory']['add']('multiLevelList',getViewCreator({'editor':_0x4af624,'parentCommandName':'multiLevelList','buttonLabel':getTranslation$9(_0x4af624['locale'],'Multi-level\x20List'),'buttonIcon':IconMultiLevelList,'styleGridAriaLabel':getTranslation$9(_0x4af624['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x4af624['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0xf984ea=_0x4af624['commands']['get']('multiLevelList'),_0x1ca966=new MenuBarMenuListItemButtonView(_0x4af624['locale']);return _0x1ca966['set']({'label':getTranslation$9(_0x4af624['locale'],'Multi-level\x20List'),'icon':IconMultiLevelList}),_0x1ca966['bind']('isEnabled')['to'](_0xf984ea),_0x1ca966['bind']('isOn')['to'](_0xf984ea,'value',_0x5eb29e=>!!_0x5eb29e),_0x1ca966['on']('execute',()=>{_0x4af624['execute']('multiLevelList'),_0x4af624['editing']['view']['focus']();}),_0x1ca966;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xecb119=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ebe0f;for(const _0x2c3b9b in _0xecb119){const _0x14ca16=_0x2c3b9b,_0x24818a=_0xecb119[_0x14ca16];if('multiLevelListLicenseKeyValid'==_0x24818a||'multiLevelListLicenseKeyInvalid'==_0x24818a||'multiLevelListLicenseKeyExpired'==_0x24818a||'multiLevelListLicenseKeyDomainLimit'==_0x24818a||'multiLevelListLicenseKeyNotAllowed'==_0x24818a||'multiLevelListLicenseKeyEvaluationLimit'==_0x24818a||'multiLevelListLicenseKeyUsageLimit'==_0x24818a){delete _0xecb119[_0x14ca16],_0x1ebe0f=_0x24818a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x1ebe0f&&_0xecb119['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x1ebe0f&&_0xecb119['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x1ebe0f&&_0xecb119['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x1ebe0f&&_0xecb119['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x1ebe0f&&_0xecb119['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x1ebe0f&&_0xecb119['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getViewCreator({editor:_0x50b517,parentCommandName:_0x133f3d,buttonLabel:_0x57643a,buttonIcon:_0x5c59e3,styleGridAriaLabel:_0x46c2cc,styleDefinitions:_0x534b46}){const _0x365d2b=_0x50b517['commands']['get'](_0x133f3d),_0x2725fb=_0x50b517['config']['get']('list.properties')||{},_0x1b57e2=_0x50b517['plugins']['has']('ListProperties'),_0x74367b=_0x2725fb['startIndex'];return _0x1b57e2&&_0x74367b?_0x59ec6e=>{const _0x1e8b36=createDropdown(_0x59ec6e,SplitButtonView),_0x57d67e=_0x1e8b36['buttonView'];return _0x1e8b36['bind']('isEnabled')['to'](_0x365d2b),_0x1e8b36['class']='ck-list-styles-dropdown',_0x57d67e['on']('execute',()=>{_0x50b517['execute'](_0x133f3d),_0x50b517['editing']['view']['focus']();}),_0x57d67e['set']({'label':_0x57643a,'icon':_0x5c59e3,'tooltip':!0x0,'isToggleable':!0x0}),_0x57d67e['bind']('isOn')['to'](_0x365d2b,'value',_0x16bb60=>!!_0x16bb60),_0x1e8b36['once']('change:isOpen',()=>{const _0x1a98d5=createListPropertiesView({'editor':_0x50b517,'dropdownView':_0x1e8b36,'styleGridAriaLabel':_0x46c2cc,'styleDefinitions':_0x534b46});_0x1e8b36['panelView']['children']['add'](_0x1a98d5);}),_0x1e8b36['on']('execute',()=>{_0x50b517['editing']['view']['focus']();}),_0x1e8b36;}:_0x1b42b4=>{const _0x7ef6b3=new ButtonView(_0x1b42b4);return _0x7ef6b3['set']({'label':_0x57643a,'icon':_0x5c59e3,'tooltip':!0x0,'isToggleable':!0x0}),_0x7ef6b3['bind']('isOn')['to'](_0x365d2b,'value',_0xc3a97d=>!!_0xc3a97d),_0x7ef6b3['on']('execute',()=>{_0x50b517['execute'](_0x133f3d),_0x50b517['editing']['view']['focus']();}),_0x7ef6b3;};}function createListPropertiesView({editor:_0xc490be,dropdownView:_0x5de4ac,styleDefinitions:_0x1a3928,styleGridAriaLabel:_0x1234c4}){const _0x39f644=_0xc490be['locale'],_0x53fe17=_0xc490be['config']['get']('list.properties');_0x53fe17['reversed']=!0x1,_0x1a3928['length']||(_0x53fe17['styles']=!0x1);const _0x154004=new MultiLevelListView(_0x39f644,{'styleGridAriaLabel':_0x1234c4,'enabledProperties':_0x53fe17,'styleButtonViews':null});if(_0x53fe17['startIndex']){const _0x352261=_0xc490be['commands']['get']('listStart');_0x154004['startIndexFieldView']['bind']('isEnabled')['to'](_0x352261),_0x154004['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x352261),_0x154004['on']('listStart',(_0x865018,_0x82ac86)=>_0xc490be['execute']('listStart',_0x82ac86));}return _0x154004['delegate']('execute')['to'](_0x5de4ac),_0x154004;}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 _0x20b8cb=this['editor']['model'],_0x432c7e=_0x20b8cb['schema']['checkChild'](_0x20b8cb['document']['selection']['focus'],'mergeField');this['isEnabled']=_0x432c7e;}['execute'](_0x247747){if(!_0x247747||'string'!=typeof _0x247747)return;const _0x4a02d1=this['editor']['model'];_0x4a02d1['change'](_0x34acf6=>{_0x4a02d1['deleteContent'](_0x4a02d1['document']['selection']);const _0x3f2d9e=_0x34acf6['createElement']('mergeField',{'id':_0x247747});for(const [_0x3ca368,_0x5d5c63]of _0x4a02d1['document']['selection']['getAttributes']())_0x4a02d1['schema']['checkAttribute'](_0x3f2d9e,_0x3ca368)&&_0x34acf6['setAttribute'](_0x3ca368,_0x5d5c63,_0x3f2d9e);_0x4a02d1['insertContent'](_0x3f2d9e,_0x4a02d1['document']['selection'],0x0,{'setSelection':'after'});});}}class InsertMergeFieldBlockCommand extends Command{['refresh'](){const _0x556bb5=this['editor']['model'],_0xc8792d=_0x556bb5['document']['selection'];this['isEnabled']=isAllowedInParent(_0xc8792d,_0x556bb5);}['execute'](_0x3149fb,_0x79352f){if(!_0x3149fb||'string'!=typeof _0x3149fb)return;const _0x41a62b=this['editor']['model'];_0x41a62b['change'](_0x1ab7ed=>{const _0x219165=_0x1ab7ed['createElement']('mergeFieldBlock',{'id':_0x3149fb});_0x41a62b['insertObject'](_0x219165,_0x41a62b['document']['selection'],null,{'setSelection':'on','findOptimalPosition':!0x1===_0x79352f?void 0x0:'auto'});});}}function isAllowedInParent(_0x400d8d,_0x4d3379){let _0x474863=findOptimalInsertionRange(_0x400d8d,_0x4d3379)['start']['parent'];return _0x474863['isEmpty']&&!_0x4d3379['schema']['isLimit'](_0x474863)&&(_0x474863=_0x474863['parent']),_0x4d3379['schema']['checkChild'](_0x474863,'mergeFieldBlock');}class InsertMergeFieldImageCommand extends Command{constructor(_0x63bd2d){super(_0x63bd2d),this['bind']('isEnabled')['to'](this['editor']['commands']['get']('insertImage'));}['execute'](_0x441faa,_0x2d630d){if(!_0x441faa||'string'!=typeof _0x441faa)return;const _0x510e11=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xf94a60=_0x510e11['getMergeFieldWidth'](_0x441faa),_0x1c32cc=_0x510e11['getMergeFieldHeight'](_0x441faa);this['editor']['execute']('insertImage',{'source':{'src':_0x510e11['wrapInAffixes'](_0x441faa),'width':_0xf94a60,'height':_0x1c32cc},'breakBlock':_0x2d630d&&_0x2d630d['breakBlock']});}}class PreviewMergeFieldsCommand extends Command{constructor(_0x2a51e6){super(_0x2a51e6);const _0xff399d=this['editor']['plugins']['get']('MergeFieldsEditing');this['bind']('value')['to'](_0xff399d,'previewMode'),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5daa37){this['editor']['plugins']['get']('MergeFieldsEditing')['previewMode']=_0x5daa37;}}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(_0x2b3493){super(_0x2b3493),_0x2b3493['config']['define']('mergeFields.previewModes',['$labels','$defaultValues','$dataSets']),_0x2b3493['config']['define']('mergeFields.dataSets',[]),_0x2b3493['config']['define']('mergeFields.definitions',[]),_0x2b3493['config']['define']('mergeFields.prefix','{{'),_0x2b3493['config']['define']('mergeFields.suffix','}}'),_0x2b3493['config']['define']('mergeFields.previewHtmlValues',!0x1),_0x2b3493['config']['define']('mergeFields.sanitizeHtml',_0x21b12c=>(logWarning('merge-fields-provide-sanitize-function'),{'html':_0x21b12c,'hasChanged':!0x1})),this['_mergeFieldPrefix']=_0x2b3493['config']['get']('mergeFields.prefix'),this['_mergeFieldSuffix']=_0x2b3493['config']['get']('mergeFields.suffix'),this['_shouldPreviewHtmlValues']=_0x2b3493['config']['get']('mergeFields.previewHtmlValues'),this['flattenedMergeFieldDefinitions']=this['_getFlattenedMergeFieldDefinitions'](),this['_validateConfig']();const _0x3a3414='\x5c'+this['_mergeFieldPrefix']['split']('')['join']('\x5c'),_0x1f2877='\x5c'+this['_mergeFieldSuffix']['split']('')['join']('\x5c');this['_mergeFieldRegExp']=new RegExp('('+_0x3a3414+'[^'+(_0x3a3414+_0x1f2877)+'\x20]+'+_0x1f2877+')','g'),this['availablePreviewModes']=this['_getAvailablePreviewModes']();const _0x5524f9=_0x2b3493['config']['get']('mergeFields.initialPreviewMode')||this['availablePreviewModes'][0x0];this['_validatePreviewMode'](_0x5524f9),this['set']('previewMode',_0x5524f9),this['_mergeFieldElements']=new Set();}['init'](){const _0x22668d=this['editor'];_0x22668d['commands']['add']('insertMergeField',new InsertMergeFieldCommand(_0x22668d)),_0x22668d['commands']['add']('insertMergeFieldBlock',new InsertMergeFieldBlockCommand(_0x22668d)),_0x22668d['commands']['add']('insertMergeFieldImage',new InsertMergeFieldImageCommand(_0x22668d)),_0x22668d['commands']['add']('previewMergeFields',new PreviewMergeFieldsCommand(_0x22668d)),this['_defineSchema'](),this['_defineConverters'](),this['_registerConversionPostFixer'](),this['listenTo'](this['editor']['editing']['view']['document'],'imageLoaded',this['_setupTooltipsTogglingForImageMergeField']),this['on']('change:previewMode',(_0x2a9b18,_0x40f608,_0x3660ed)=>{this['_validatePreviewMode'](_0x3660ed),this['refreshMergeFields']();}),this['listenTo'](_0x22668d['model']['document'],'change:data',()=>{this['_trackAddedMergeFields']();}),_0x22668d['editing']['mapper']['on']('viewToModelPosition',viewToModelPositionOutsideModelElement(_0x22668d['model'],_0x15a696=>_0x15a696['hasClass']('ck-merge-field'))),_0x22668d['editing']['mapper']['on']('viewToModelPosition',viewToModelPositionOutsideModelElement(_0x22668d['model'],_0xf4589d=>_0xf4589d['hasClass']('ck-merge-field-block'))),_0x22668d['editing']['view']['domConverter']['registerInlineObjectMatcher']({'name':'span','classes':['ck-merge-field']});}['afterInit'](){this['_disableCommandOnMergeFields']('ckboxImageEdit'),this['_disableCommandOnMergeFields']('uploadcareImageEdit'),checkLicense$8(this);}['isMergeField'](_0x5a6137){return'mergeField'===_0x5a6137['name']||'mergeFieldBlock'===_0x5a6137['name']||!!('imageBlock'===_0x5a6137['name']||'imageInline'===_0x5a6137['name']&&_0x5a6137['getAttribute']('src'))&&!!_0x5a6137['getAttribute']('src')['match'](this['_mergeFieldRegExp']);}['getDefaultValues'](){const _0x1fa30c={},_0x47c82e=this['getMergeFieldsIds']();for(const _0x40a665 of _0x47c82e)_0x1fa30c[_0x40a665]=this['getMergeFieldDefaultValue'](_0x40a665);return _0x1fa30c;}['getDataSetValues'](_0x13836f,_0x88a6f3=!0x1){const _0x5e1dde={},_0x681e5e=this['getMergeFieldsIds']();for(const _0x5a319d of _0x681e5e){let _0x437358=this['getMergeFieldValue'](_0x5a319d,_0x13836f);null===_0x437358&&_0x88a6f3&&(_0x437358=this['getMergeFieldDefaultValue'](_0x5a319d)),_0x5e1dde[_0x5a319d]=_0x437358;}return _0x5e1dde;}['getLabel'](_0x4da7c3){const _0x58178d=this['getDefinition'](_0x4da7c3);return _0x58178d&&_0x58178d['label']?_0x58178d['label']:null;}['getMergeFieldDefaultValue'](_0x3bbb6d){const _0x48213d=this['getDefinition'](_0x3bbb6d);if(!_0x48213d||void 0x0===_0x48213d['defaultValue'])return null;const _0x470b2b='function'==typeof _0x48213d['defaultValue']?_0x48213d['defaultValue'](this['editor']):_0x48213d['defaultValue'];return String(_0x470b2b);}['getMergeFieldValue'](_0x4522f3,_0x477722){const _0x27b934=this['editor']['config']['get']('mergeFields.dataSets')['find'](_0x10c8e0=>_0x10c8e0['id']===_0x477722);if(!_0x27b934)throw new CKEditorError('merge-fields-data-set-not-found',null);const _0x24adf6=_0x27b934['values'][_0x4522f3];if(void 0x0===_0x24adf6)return null;const _0x2d5962='function'==typeof _0x24adf6?_0x24adf6(this['editor']):_0x24adf6;return String(_0x2d5962);}['getMergeFieldType'](_0x2e0f11){if('string'!=typeof _0x2e0f11){const _0x31794b=_0x2e0f11;return'mergeField'===_0x31794b['name']?'text':'mergeFieldBlock'===_0x31794b['name']?'block':'imageBlock'!==_0x31794b['name']&&'imageInline'!==_0x31794b['name']||!_0x31794b['getAttribute']('src')?null:_0x31794b['getAttribute']('src')['match'](this['_mergeFieldRegExp'])?'image':null;}const _0x21b8d6=this['getDefinition'](_0x2e0f11);return _0x21b8d6&&_0x21b8d6['type']?_0x21b8d6['type']:'text';}['getMergeFieldHeight'](_0x588337){const _0x50af53=this['getDefinition'](_0x588337);return _0x50af53&&'block'===_0x50af53['type']?_0x50af53['height']||DEFAULT_MERGE_FIELD_BLOCK_HEIGHT:_0x50af53&&'image'===_0x50af53['type']?_0x50af53['height']||DEFAULT_MERGE_FIELD_IMAGE_HEIGHT:null;}['getMergeFieldWidth'](_0x52b77f){const _0x238ab8=this['getDefinition'](_0x52b77f);return _0x238ab8&&'image'===_0x238ab8['type']?_0x238ab8['width']||DEFAULT_MERGE_FIELD_IMAGE_WIDTH:null;}['getDocumentMergeFieldsIds'](){const _0x5c7c6b=new Set();for(const _0x7707ae of this['_mergeFieldElements'])'$graveyard'!==_0x7707ae['root']['rootName']&&('image'===this['getMergeFieldType'](_0x7707ae)?_0x5c7c6b['add'](this['unwrapAffixes'](_0x7707ae['getAttribute']('src'))):_0x5c7c6b['add'](_0x7707ae['getAttribute']('id')));return Array['from'](_0x5c7c6b);}['getMergeFieldsIds'](){const _0x1cdc0b=this['flattenedMergeFieldDefinitions']['map'](_0x3d8742=>_0x3d8742['id']),_0x32b9f7=this['getDocumentMergeFieldsIds']();return Array['from'](new Set([..._0x1cdc0b,..._0x32b9f7]));}['getDefinition'](_0x2afe7c){return this['flattenedMergeFieldDefinitions']['find'](_0x395bf3=>_0x395bf3['id']===_0x2afe7c)||null;}['refreshMergeFields'](){this['_mergeFieldElements']['forEach'](_0x354c91=>{'$graveyard'!==_0x354c91['root']['rootName']&&this['editor']['editing']['reconvertItem'](_0x354c91);});}['wrapInAffixes'](_0x3f4832){return this['_mergeFieldPrefix']+_0x3f4832+this['_mergeFieldSuffix'];}['unwrapAffixes'](_0x4800f9){return _0x4800f9['slice'](this['_mergeFieldPrefix']['length'],_0x4800f9['length']-this['_mergeFieldSuffix']['length']);}['_getFlattenedMergeFieldDefinitions'](){const _0x2479cb=new Set(),_0x33c1ad=this['editor'];return _0x33c1ad['config']['get']('mergeFields.definitions')['reduce']((_0x21230c,_0x36afd2)=>{if('groupId'in _0x36afd2){if(_0x2479cb['has'](_0x36afd2['groupId']))throw new CKEditorError('merge-fields-duplicate-group-id',_0x33c1ad,{'duplicateId':_0x36afd2['groupId']});_0x2479cb['add'](_0x36afd2['groupId']);}return'groupId'in _0x36afd2?function(_0x100d98,_0x122a77){for(const _0x22f0ea of _0x122a77['definitions'])_0x100d98=_0x100d98['concat'](_0x22f0ea);return _0x100d98;}['bind'](_0x33c1ad)(_0x21230c,_0x36afd2):_0x21230c['concat'](_0x36afd2);},new Array());}['_validateConfig'](){const _0x209c30=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x209c30['test'](this['_mergeFieldPrefix'])||!_0x209c30['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 _0x3751be=new Set();if(this['flattenedMergeFieldDefinitions']['map'](_0x2ea1f1=>{if(!ALLOWED_IN_IDS['test'](_0x2ea1f1['id']))throw new CKEditorError('merge-fields-invalid-id',this,{'incorrectId':_0x2ea1f1['id']});if(_0x3751be['has'](_0x2ea1f1['id']))throw new CKEditorError('merge-fields-duplicate-merge-field-id',this,{'duplicateId':_0x2ea1f1['id']});_0x3751be['add'](_0x2ea1f1['id']);}),this['_mergeFieldPrefix']===this['_mergeFieldSuffix'])throw new CKEditorError('merge-fields-prefix-and-suffix-must-differ',this);const _0x465781=this['editor']['config']['get']('mergeFields.previewModes'),_0x4a2251=['$labels','$defaultValues','$dataSets'];if(!_0x465781['length']||!_0x465781['every'](_0x2d6768=>_0x4a2251['includes'](_0x2d6768)))throw new CKEditorError('merge-fields-invalid-preview-modes-configuration',this,{'invalidConfig':_0x465781});const _0x4442d5=new Set(),_0x57d173=this['editor']['config']['get']('mergeFields.dataSets');for(const _0x387b8f of _0x57d173){if(_0x4442d5['has'](_0x387b8f['id']))throw new CKEditorError('merge-fields-duplicate-data-set-id',this,{'duplicateId':_0x387b8f['id']});_0x4442d5['add'](_0x387b8f['id']);}}['_getAvailablePreviewModes'](){const _0xb9b1f=this['editor']['config']['get']('mergeFields.previewModes'),_0x129be4=[];if(_0xb9b1f['includes']('$labels')&&_0x129be4['push']('$labels'),_0xb9b1f['includes']('$defaultValues')&&_0x129be4['push']('$defaultValues'),_0xb9b1f['includes']('$dataSets')){const _0x2c0a10=this['editor']['config']['get']('mergeFields.dataSets');_0x129be4['push'](..._0x2c0a10['map'](_0x1716be=>_0x1716be['id']));}return _0x129be4;}['_defineSchema'](){const _0x5ed387=this['editor']['model']['schema'];_0x5ed387['register']('mergeField',{'inheritAllFrom':'$inlineObject','allowAttributes':['id'],'allowWhere':'$text'}),_0x5ed387['register']('mergeFieldBlock',{'inheritAllFrom':'$blockObject','allowAttributes':['id']});}['_defineConverters'](){const _0x2c1092=this['editor']['conversion'];_0x2c1092['for']('upcast')['add'](_0x448ec9=>{_0x448ec9['on']('text',(_0x199b94,_0x5375fb,_0x5d05b2)=>{const {writer:_0x5ec5e5,safeInsert:_0x361154}=_0x5d05b2,{viewItem:_0x4867c1}=_0x5375fb,_0x1e31da=_0x4867c1['data']['split'](this['_mergeFieldRegExp'])['filter'](_0x132435=>_0x132435);if(0x1===_0x1e31da['length']&&!_0x1e31da[0x0]['match'](this['_mergeFieldRegExp']))return;if(!_0x5375fb['modelRange'])return;const _0x271774=_0x5ec5e5['createElement']('$cursor');_0x5ec5e5['insert'](_0x271774,_0x5375fb['modelCursor']);const _0x480ec1=[];for(const _0x3af492 of _0x5375fb['modelRange']['getItems']()){if(!_0x3af492['is']('$textProxy'))continue;const _0x14e441=_0x3af492['textNode']['data']['matchAll'](this['_mergeFieldRegExp']),_0x4f97b8=_0x3af492['parent'],_0x3e5691=_0x3af492['textNode']['startOffset'];for(const _0x229126 of[..._0x14e441]['reverse']()){const _0x58094c=_0x229126[0x0],_0x43f761=_0x5ec5e5['createPositionAt'](_0x4f97b8,_0x229126['index']+_0x3e5691),_0x34032b=_0x43f761['getShiftedBy'](_0x58094c['length']),_0x28d98e=_0x5ec5e5['createRange'](_0x43f761,_0x34032b),_0x35d5f1=this['unwrapAffixes'](_0x58094c),_0x52bca9=this['getMergeFieldType'](_0x35d5f1),_0x4f95f9='block'==_0x52bca9?'mergeFieldBlock':'mergeField',_0x2aa706=_0x5ec5e5['createElement'](_0x4f95f9,{'id':_0x35d5f1});_0x5ec5e5['remove'](_0x28d98e),_0x5ec5e5['insert'](_0x2aa706,_0x43f761),'block'==_0x52bca9&&_0x480ec1['push'](_0x2aa706);}}_0x480ec1['reverse']();for(const _0x46062b of _0x480ec1){const _0x33fe06=_0x5ec5e5['createPositionBefore'](_0x46062b),_0x4eecb7=_0x46062b['nextSibling']==_0x271774;_0x5ec5e5['remove'](_0x46062b),_0x361154(_0x46062b,_0x33fe06)&&_0x4eecb7&&_0x5ec5e5['move'](_0x5ec5e5['createRangeOn'](_0x271774),_0x5ec5e5['createPositionAfter'](_0x46062b));}_0x5375fb['modelCursor']=_0x5ec5e5['createPositionBefore'](_0x271774),_0x5375fb['modelRange']=_0x5ec5e5['createRange'](_0x5375fb['modelRange']['start'],_0x5375fb['modelCursor']),_0x5ec5e5['remove'](_0x271774);},{'priority':priorities['get']('lowest')-0x1});}),_0x2c1092['for']('upcast')['elementToElement']({'view':{'name':'span','attributes':'data-ck-merge-field'},'model':(_0x2db403,{writer:_0x1b83d1})=>_0x1b83d1['createElement']('mergeField',{'id':_0x2db403['getAttribute']('data-ck-merge-field')})}),_0x2c1092['for']('upcast')['elementToElement']({'view':{'name':'div','attributes':'data-ck-merge-field'},'model':(_0x4e5fe1,{writer:_0x34a6c2})=>_0x34a6c2['createElement']('mergeFieldBlock',{'id':_0x4e5fe1['getAttribute']('data-ck-merge-field')})}),_0x2c1092['for']('upcast')['add'](this['_upcastSrcAttributeFromClipboard']()),_0x2c1092['for']('editingDowncast')['elementToElement']({'model':'mergeField','view':(_0x5bf964,{writer:_0x292e78})=>this['_createMergeFieldWidget'](_0x5bf964,_0x292e78,'text')}),_0x2c1092['for']('dataDowncast')['elementToElement']({'model':'mergeField','view':(_0x40a816,{writer:_0x3eb9a0,options:_0x33b3da})=>this['_createTextualMergeField'](_0x40a816,_0x3eb9a0,_0x33b3da)}),_0x2c1092['for']('editingDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x17e53a,{writer:_0x4a09e3})=>this['_createMergeFieldWidget'](_0x17e53a,_0x4a09e3,'block')}),_0x2c1092['for']('dataDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x62a664,{writer:_0x40b4d6,options:_0x53060a})=>this['_createTextualMergeField'](_0x62a664,_0x40b4d6,_0x53060a)}),_0x2c1092['for']('editingDowncast')['add'](this['_downcastSrcAttributeToEditing']('imageBlock'))['add'](this['_downcastSrcAttributeToEditing']('imageInline')),_0x2c1092['for']('dataDowncast')['add'](this['_downcastSrcAttributeToData']('imageBlock'))['add'](this['_downcastSrcAttributeToData']('imageInline'));}['_upcastSrcAttributeFromClipboard'](){return _0x1281b1=>{_0x1281b1['on']('element:img',(_0x4440eb,_0xc081f,_0x5dcbf0)=>{_0x5dcbf0['consumable']['test'](_0xc081f['viewItem'],{'attributes':'data-ck-merge-field'})&&(_0x5dcbf0['writer']['setAttribute']('src',this['wrapInAffixes'](_0xc081f['viewItem']['getAttribute']('data-ck-merge-field')),_0xc081f['modelCursor']['nodeBefore']),_0x5dcbf0['consumable']['consume'](_0xc081f['viewItem'],{'attributes':'data-ck-merge-field'}));},{'priority':'low'});};}['_downcastSrcAttributeToData'](_0x2a148d){const _0x5969c0=this['editor']['plugins']['get'](ImageUtils),_0x3799b0=(_0x17c058,_0x527cd2,_0xc7e0ed)=>{if(!0x1!==_0xc7e0ed['consumable']['test'](_0x527cd2['item'],_0x17c058['name']))return;if(!String(_0x527cd2['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x5ed437=_0xc7e0ed['writer'],_0x425183=_0xc7e0ed['mapper']['toViewElement'](_0x527cd2['item']),_0x552129=_0x5969c0['findViewImgElement'](_0x425183),_0x4723ca=String(_0x527cd2['attributeNewValue']),_0x4f5f58=this['unwrapAffixes'](_0x4723ca),_0x18ba8b=_0xc7e0ed['options']['mergeFieldsData'];if(_0xc7e0ed['options']['isClipboardPipeline']&&'$labels'!==this['previewMode']){let _0x50555c;return _0x50555c='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x4f5f58)||this['getLabel'](_0x4f5f58)||this['wrapInAffixes'](_0x4f5f58):this['getMergeFieldValue'](_0x4f5f58,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x4f5f58)||this['getLabel'](_0x4f5f58)||this['wrapInAffixes'](_0x4f5f58),_0x5ed437['setAttribute']('data-ck-merge-field',_0x4f5f58,_0x552129),void _0x5ed437['setAttribute'](_0x527cd2['attributeKey'],_0x50555c,_0x552129);}const _0x5a4e63=_0x18ba8b&&_0x18ba8b[_0x4f5f58]?_0x18ba8b[_0x4f5f58]:_0x4723ca;_0x5ed437['setAttribute'](_0x527cd2['attributeKey'],_0x5a4e63,_0x552129);};return _0x42f5ed=>{_0x42f5ed['on']('attribute:src:'+_0x2a148d,_0x3799b0,{'priority':'low'});};}['_downcastSrcAttributeToEditing'](_0x2a9fed){const _0x208866=this['editor']['plugins']['get'](ImageUtils),_0x42e0d7=(_0x2029ad,_0x2bab55,_0x29fcad)=>{if(!0x1!==_0x29fcad['consumable']['test'](_0x2bab55['item'],_0x2029ad['name']))return;if(!String(_0x2bab55['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x532a8f=_0x29fcad['writer'],_0xe0ab6f=_0x29fcad['mapper']['toViewElement'](_0x2bab55['item']),_0x16123e=_0x208866['findViewImgElement'](_0xe0ab6f),_0xce63=String(_0x2bab55['attributeNewValue']),_0x15e8ce=this['unwrapAffixes'](_0xce63),_0x123af9=this['getMergeFieldDefaultValue'](_0x15e8ce),_0x16d2c6='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC';let _0x219fb0,_0x24b3a8='',_0x40e865='';if('$labels'===this['previewMode'])_0x219fb0=_0x16d2c6;else{if('$defaultValues'===this['previewMode'])_0x123af9?(_0x219fb0=_0x123af9,_0x40e865='\x20ck-merge-field-image_with-value'):(_0x219fb0=_0x16d2c6,_0x24b3a8='WARNING_MISSING_DEFAULT_VALUE',_0x40e865='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_no-default');else{const _0x4f248f=this['getMergeFieldValue'](_0x15e8ce,this['previewMode']);_0x4f248f?(_0x219fb0=_0x4f248f,_0x40e865='\x20ck-merge-field-image_with-value'):_0x123af9?(_0x219fb0=_0x123af9,_0x40e865='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_default-value-used',_0x24b3a8='WARNING_MISSING_DATA_USED_DEFAULT_VALUE'):(_0x219fb0=_0x16d2c6,_0x40e865='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_missing-data',_0x24b3a8='WARNING_MISSING_DATA');}}if(_0x532a8f['addClass']('ck-merge-field-image'+_0x40e865,_0xe0ab6f),_0x532a8f['setAttribute'](_0x2bab55['attributeKey'],_0x219fb0,_0x16123e),'$labels'===this['previewMode']){const _0x3558ad='imageInline'===_0x2a9fed?'span':'div',_0x64c5ad=this['_mergeFieldPrefix'],_0x32b16a=this['_mergeFieldSuffix'],_0x58022c=_0x532a8f['createContainerElement'](_0x3558ad,{'class':'ck-merge-field','data-cke-tooltip-instant':'true'},[_0x532a8f['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x5cab91){const _0x81dc26=this['toDomElement'](_0x5cab91);return _0x81dc26['innerHTML']=_0x64c5ad,_0x81dc26;}),_0x532a8f['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x532a8f['createText'](this['getLabel'](_0x15e8ce)||_0x15e8ce)),_0x532a8f['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x36c690){const _0x5ed149=this['toDomElement'](_0x36c690);return _0x5ed149['innerHTML']=_0x32b16a,_0x5ed149;})]);_0x532a8f['insert'](_0x532a8f['createPositionAt'](_0xe0ab6f,'end'),_0x58022c),_0x532a8f['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x15e8ce)||_0x15e8ce,_0x58022c);}else{if(_0x24b3a8&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x24b3a8)){const _0x28fb62='imageInline'===_0x2a9fed?'span':'div',_0x183d06=_0x40e865['replace'](/ck-merge-field-image/g,'ck-merge-field'),_0x3e7aa8=_0x532a8f['createContainerElement'](_0x28fb62,{'class':'ck-merge-field'+_0x183d06,'data-cke-tooltip-instant':'true'},[_0x532a8f['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x532a8f['createText'](this['getLabel'](_0x15e8ce)||_0x15e8ce))]),_0x554967=_0x532a8f['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x43d200){const _0x23773c=this['toDomElement'](_0x43d200),_0x33b18b=new IconView();return _0x33b18b['set']({'content':IconWarning}),_0x33b18b['render'](),_0x23773c['appendChild'](_0x33b18b['element']),_0x23773c;});_0x532a8f['insert'](_0x532a8f['createPositionAt'](_0x3e7aa8,'end'),_0x554967),_0x532a8f['insert'](_0x532a8f['createPositionAt'](_0xe0ab6f,'end'),_0x3e7aa8),_0x532a8f['setCustomProperty']('mergeFieldStatus',_0x24b3a8,_0x3e7aa8),_0x532a8f['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x15e8ce)||_0x15e8ce,_0x3e7aa8);}}_0x532a8f['setAttribute']('data-merge-field-name',_0x15e8ce,_0xe0ab6f),_0x24b3a8&&_0x532a8f['setCustomProperty']('mergeFieldStatus',_0x24b3a8,_0xe0ab6f);};return _0x263f61=>{_0x263f61['on']('attribute:src:'+_0x2a9fed,_0x42e0d7,{'priority':'low'});};}['_setupTooltipsTogglingForImageMergeField'](_0xbdd544,_0x3e5727){if(!_0x3e5727['target'])return null;const _0x467772=_0x3e5727['target']['parentElement'];return _0x467772&&_0x467772['classList']['contains']('ck-merge-field-image')?new _0x587747(_0x467772,_0x173e30=>{const _0x51779a=_0x173e30['target'],_0x347b63=_0x51779a['querySelector']('.ck-merge-field'),_0x44fb7f=_0x51779a['querySelector']('.ck-merge-field__content');_0x347b63&&_0x44fb7f&&(_0x44fb7f['scrollWidth']>_0x44fb7f['getBoundingClientRect']()['width']?_0x347b63['removeAttribute']('data-cke-tooltip-disabled'):_0x347b63['setAttribute']('data-cke-tooltip-disabled','true'));}):null;}['_createMergeFieldWidget'](_0x13da52,_0x582f7f,_0x1b97f4){const {label:_0x30e609,classes:_0x881fbb,status:_0x24451f,height:_0x727da1}=this['_prepareViewElementData'](_0x13da52),_0x5cc0af=this['_mergeFieldPrefix'],_0x3cc734=this['_mergeFieldSuffix'],_0x5ee9f7=this['editor']['config']['get']('mergeFields.sanitizeHtml'),_0x333d4e='text'===_0x1b97f4?'span':'div';let _0x4e73dc;if('$labels'===this['previewMode'])_0x4e73dc=_0x582f7f['createContainerElement'](_0x333d4e,{'class':_0x881fbb},[_0x582f7f['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x52350b){const _0x501504=this['toDomElement'](_0x52350b);return _0x501504['innerHTML']=_0x5cc0af,_0x501504;}),_0x582f7f['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x582f7f['createText'](String(_0x30e609))),_0x582f7f['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0xdbdcf4){const _0x3e64d7=this['toDomElement'](_0xdbdcf4);return _0x3e64d7['innerHTML']=_0x3cc734,_0x3e64d7;})]);else{if(_0x24451f){const _0x1b348d=this['_shouldPreviewHtmlValues']?_0x582f7f['createRawElement']('span',{'class':'ck-merge-field__content'},function(_0x84d937,_0x4c0434){_0x4c0434['setContentOf'](_0x84d937,_0x5ee9f7(_0x30e609)['html']);}):_0x582f7f['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x582f7f['createText'](_0x30e609));if(_0x4e73dc=_0x582f7f['createContainerElement'](_0x333d4e,{'class':_0x881fbb},[_0x1b348d]),'text'===_0x1b97f4||['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x24451f)){const _0x330402=_0x582f7f['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x4ed974){const _0x3af68d=this['toDomElement'](_0x4ed974),_0x1cdead=new IconView();return _0x1cdead['set']({'content':IconWarning}),_0x1cdead['render'](),_0x3af68d['appendChild'](_0x1cdead['element']),_0x3af68d;});_0x582f7f['insert'](_0x582f7f['createPositionAt'](_0x4e73dc,'end'),_0x330402);}_0x582f7f['setCustomProperty']('mergeFieldStatus',_0x24451f,_0x4e73dc);}else{const _0x18db4f=this['_shouldPreviewHtmlValues']?_0x582f7f['createRawElement'](_0x333d4e,{},function(_0x55382a,_0xf07347){_0xf07347['setContentOf'](_0x55382a,_0x5ee9f7(_0x30e609)['html']);}):_0x582f7f['createText'](_0x30e609);_0x4e73dc=_0x582f7f['createContainerElement'](_0x333d4e,{'class':_0x881fbb},_0x18db4f);}}if('block'===_0x1b97f4){const _0x12d42b=_0x582f7f['createContainerElement']('div',{'class':'ck-merge-field-block'},[_0x4e73dc]);if(('$labels'===this['previewMode']||_0x24451f&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x24451f))&&_0x582f7f['setAttribute']('style','height:\x20'+_0x727da1+'px',_0x12d42b),_0x4e73dc['hasClass']('ck-merge-field_with-value'))_0x582f7f['addClass']('ck-merge-field-block_with-value',_0x12d42b);else{if(_0x4e73dc['hasClass']('ck-merge-field_with-warning')){for(const _0x51caaa of _0x4e73dc['getClassNames']())if('ck-merge-field'!==_0x51caaa){const _0xb7a110=_0x51caaa['replace']('ck-merge-field','ck-merge-field-block');_0x582f7f['addClass'](_0xb7a110,_0x12d42b);}_0x582f7f['setCustomProperty']('mergeFieldStatus',_0x24451f,_0x12d42b);}}return _0x582f7f['setCustomProperty']('mergeFieldBlock',!0x0,_0x12d42b),_0x582f7f['setAttribute']('data-merge-field-name',_0x13da52['getAttribute']('id'),_0x12d42b),toWidget(_0x12d42b,_0x582f7f,{'hasSelectionHandle':!0x0});}return _0x582f7f['setCustomProperty']('mergeField',!0x0,_0x4e73dc),_0x582f7f['setAttribute']('data-merge-field-name',_0x13da52['getAttribute']('id'),_0x4e73dc),toWidget(_0x4e73dc,_0x582f7f);}['_prepareViewElementData'](_0x14bd64){const _0x2593fb=_0x14bd64['getAttribute']('id'),_0x486b20=this['getDefinition'](_0x2593fb);if(!_0x486b20)return'$labels'===this['previewMode']?{'label':_0x2593fb,'classes':'ck-merge-field'}:{'label':_0x2593fb,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','status':'WARNING_MISSING_DATA'};const _0x301fd2=this['getLabel'](_0x2593fb)||_0x2593fb,_0x15ebb2=this['getMergeFieldDefaultValue'](_0x2593fb),_0x55eb2d=this['getMergeFieldHeight'](_0x2593fb);if('$labels'===this['previewMode'])return{'label':_0x301fd2,'height':_0x55eb2d,'classes':'ck-merge-field'};if('$defaultValues'===this['previewMode'])return _0x15ebb2?{'label':_0x15ebb2,'height':_0x55eb2d,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:{'label':_0x301fd2,'height':_0x55eb2d,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','status':'WARNING_MISSING_DEFAULT_VALUE'};const _0x494a0d=this['getMergeFieldValue'](_0x486b20['id'],this['previewMode']);return _0x494a0d?{'label':_0x494a0d,'height':_0x55eb2d,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:_0x15ebb2?{'label':_0x15ebb2,'height':_0x55eb2d,'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':_0x301fd2,'height':_0x55eb2d,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','status':'WARNING_MISSING_DATA'};}['_createTextualMergeField'](_0x497ae9,_0x348baf,_0x5185f5){const _0x1684a2=_0x497ae9['getAttribute']('id');let _0x4b682e;if(_0x5185f5['isClipboardPipeline']&&'$labels'!==this['previewMode'])return this['_downcastForClipboard'](_0x1684a2,_0x348baf);const _0x4e64ec=_0x5185f5['mergeFieldsData'],_0x490556=_0x4e64ec&&_0x4e64ec[_0x1684a2]?_0x4e64ec[_0x1684a2]:this['wrapInAffixes'](_0x1684a2);if(_0x4e64ec)_0x4b682e=_0x348baf['createRawElement']('span',{},function(_0x43465e,_0x308951){_0x308951['setContentOf'](_0x43465e,String(_0x490556));});else{_0x4b682e=_0x348baf['createContainerElement']('span');const _0x32f4f9=_0x348baf['createText'](_0x490556);_0x348baf['insert'](_0x348baf['createPositionAt'](_0x4b682e,'end'),_0x32f4f9);}return _0x348baf['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4b682e),_0x4b682e;}['_downcastForClipboard'](_0x5c8890,_0x4c3258){const _0x178eec='block'===this['getMergeFieldType'](_0x5c8890)?'div':'span';let _0x154096,_0x5d7b1c;_0x154096='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x5c8890)||this['getLabel'](_0x5c8890)||this['wrapInAffixes'](_0x5c8890):this['getMergeFieldValue'](_0x5c8890,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x5c8890)||this['getLabel'](_0x5c8890)||this['wrapInAffixes'](_0x5c8890);const _0x239703=this['editor']['config']['get']('mergeFields.sanitizeHtml');return _0x5d7b1c=this['_shouldPreviewHtmlValues']?_0x4c3258['createRawElement'](_0x178eec,{'data-ck-merge-field':_0x5c8890},function(_0xa02768,_0x4a2599){_0x4a2599['setContentOf'](_0xa02768,_0x239703(_0x154096)['html']);}):_0x4c3258['createContainerElement'](_0x178eec,{'data-ck-merge-field':_0x5c8890},_0x4c3258['createText'](_0x154096)),_0x5d7b1c;}['_validatePreviewMode'](_0x1f895a){if(!this['availablePreviewModes']['includes'](_0x1f895a))throw new CKEditorError('merge-fields-invalid-preview-mode-set',this,{'availablePreviewModes':this['availablePreviewModes'],'previewMode':_0x1f895a});}['_trackAddedMergeFields'](){for(const _0x366114 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x366114['type']||'$text'===_0x366114['name'])continue;if('mergeField'===_0x366114['name']||'mergeFieldBlock'===_0x366114['name']){this['_mergeFieldElements']['add'](_0x366114['position']['nodeAfter']);continue;}if('imageInline'===_0x366114['name']||'imageBlock'===_0x366114['name']&&_0x366114['attributes']['get']('src')&&String(_0x366114['attributes']['get']('src'))['match'](this['_mergeFieldRegExp'])){this['_mergeFieldElements']['add'](_0x366114['position']['nodeAfter']);continue;}const _0x11014f=this['editor']['model']['createRangeIn'](_0x366114['position']['nodeAfter']);for(const _0x465bed of _0x11014f['getItems']())_0x465bed['is']('element')&&this['isMergeField'](_0x465bed)&&this['_mergeFieldElements']['add'](_0x465bed);}}['_registerConversionPostFixer'](){const _0x5a38fe=this['editor'];_0x5a38fe['model']['document']['registerPostFixer'](_0x285426=>{if(!_0x285426['batch']['isLocal'])return!0x1;const _0xb730d0=[],_0x1d5a46=new Set(),_0x40f658=this['_mergeFieldRegExp'];let _0x551b01=!0x1;for(const _0x4e42f9 of _0x5a38fe['model']['document']['differ']['getChanges']())if('insert'===_0x4e42f9['type']||'remove'===_0x4e42f9['type']){let _0x1bf453='$text'==_0x4e42f9['name']?_0x4e42f9['position']['parent']:_0x4e42f9['position']['nodeAfter'];if(!_0x1bf453)continue;_0x1bf453['is']('$text')&&(_0x1bf453=_0x1bf453['parent']),_0x207cbc(_0x1bf453);}for(const _0x1047fd of _0xb730d0['reverse']()){const {match:_0x45e1aa,item:_0x52ae73}=_0x1047fd,_0x321e3e=_0x285426['createPositionAt'](_0x52ae73,_0x45e1aa['index']),_0x18a65d=_0x321e3e['getShiftedBy'](_0x45e1aa[0x0]['length']),_0x5a66a4=_0x285426['createRange'](_0x321e3e,_0x18a65d),_0x50c48=_0x45e1aa[0x0],_0x3f8c94=this['unwrapAffixes'](_0x50c48),_0x1d5f57=_0x269582(_0x5a66a4),_0x1e46da=this['getMergeFieldType'](_0x3f8c94);if(ALLOWED_IN_IDS['test'](_0x3f8c94)){if(_0x1d5f57['set']('id',_0x3f8c94),'block'===_0x1e46da){const _0x33c368=_0x285426['createElement']('mergeFieldBlock',{'id':_0x3f8c94});_0x285426['remove'](_0x5a66a4),_0x5a38fe['model']['insertObject'](_0x33c368,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{if('image'===_0x1e46da){const _0x4454ec=_0x285426['createElement']('imageBlock',{'src':this['wrapInAffixes'](_0x3f8c94)});_0x285426['remove'](_0x5a66a4),_0x5a38fe['model']['insertObject'](_0x4454ec,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{const _0x227ca9=_0x285426['createElement']('mergeField',_0x1d5f57);_0x5a38fe['model']['schema']['checkChild'](_0x5a66a4['start'],'mergeField')?_0x5a38fe['model']['insertObject'](_0x227ca9,_0x5a66a4):_0x285426['remove'](_0x5a66a4);}}_0x551b01=!0x0;}}return _0x551b01;function _0x207cbc(_0x435a23){let _0x45fc56='',_0x8cfbee=0x0;if(!_0x1d5a46['has'](_0x435a23))for(const _0xbe1116 of _0x435a23['getChildren']()){const _0x1a96d2=_0xbe1116['nextSibling'];if(_0xbe1116['is']('$text')&&(''===_0x45fc56&&_0xbe1116['startOffset']&&(_0x8cfbee=_0xbe1116['startOffset']),_0x45fc56+=_0xbe1116['data']),!_0x1a96d2||_0x1a96d2['is']('element')){for(const _0x105dda of _0x45fc56['matchAll'](_0x40f658))_0x105dda['index']=_0x105dda['index']+_0x8cfbee,_0xb730d0['push']({'match':_0x105dda,'item':_0x435a23});_0x1d5a46['add'](_0x435a23),_0x45fc56='';}_0xbe1116['is']('element')&&_0x207cbc(_0xbe1116);}}function _0x269582(_0x35000b){const _0x395ef4=_0x35000b['getItems'](),_0x25e845=_0x395ef4['next']()['value'],_0x1bc111=new Map(_0x25e845['getAttributes']());for(const _0x23a66b of _0x395ef4)for(const [_0x444eea,_0x3dd0b5]of _0x1bc111)_0x23a66b['getAttribute'](_0x444eea)!==_0x3dd0b5&&_0x1bc111['delete'](_0x444eea);return _0x1bc111;}});}['_disableCommandOnMergeFields'](_0x5bb525){const _0x1a5772=this['editor'],_0x47fdf5=_0x1a5772['commands']['get'](_0x5bb525);_0x47fdf5&&_0x47fdf5['on']('set:isEnabled',(_0x3ec2bc,_0x5bdd30,_0x144953)=>{if(0x1==_0x144953){const _0x4f0dca=_0x1a5772['model']['document']['selection']['getSelectedElement']();_0x4f0dca&&this['isMergeField'](_0x4f0dca)&&(_0x3ec2bc['return']=!0x1,_0x3ec2bc['stop']());}});}}async function checkLicense$8(_0x3eb93e){const _0x33f1d5=_0x4532fd([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]),_0x46cdb7=window[_0x4532fd([0x44,0x61,0x74,0x65])][_0x4532fd([0x6e,0x6f,0x77])](),_0x63b2d1=_0x3eb93e[_0x4532fd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x132298=new window[(_0x4532fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x340bab=>{_0x63b2d1[_0x4532fd([0x6f,0x6e,0x63,0x65])](_0x4532fd([0x72,0x65,0x61,0x64,0x79]),_0x340bab);}),_0x4ca166={[_0x4532fd([0x6b,0x74,0x79])]:_0x4532fd([0x45,0x43]),[_0x4532fd([0x75,0x73,0x65])]:_0x4532fd([0x73,0x69,0x67]),[_0x4532fd([0x63,0x72,0x76])]:_0x4532fd([0x50,0x2d,0x32,0x35,0x36]),[_0x4532fd([0x78])]:_0x4532fd([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]),[_0x4532fd([0x79])]:_0x4532fd([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]),[_0x4532fd([0x61,0x6c,0x67])]:_0x4532fd([0x45,0x53,0x32,0x35,0x36])},_0x2973e4=_0x63b2d1[_0x4532fd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4532fd([0x67,0x65,0x74])](_0x4532fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x3e5768=await(async function(){let _0x155b65,_0x5aed9b=null,_0x5180cc=null;try{if(_0x2973e4==_0x4532fd([0x47,0x50,0x4c]))return _0x4532fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x155b65=(function(){const _0x281e52=_0x2973e4[_0x4532fd([0x73,0x70,0x6c,0x69,0x74])](_0x4532fd([0x2e]));if(0x3!=_0x281e52[_0x4532fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x8f141c=_0x281e52[0x1];return _0x2be3c4(_0x8f141c);function _0x2be3c4(_0x29911c){const _0x2b9ba6=_0x1f1c56(_0x29911c);return _0x2b9ba6&&_0x3cbfd()?_0x2b9ba6:null;function _0x3cbfd(){const _0x25dad6=_0x2b9ba6[_0x4532fd([0x6a,0x74,0x69])],_0x392c6e=window[_0x4532fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25dad6[_0x4532fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25dad6[_0x4532fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d7604={..._0x2b9ba6,[_0x4532fd([0x6a,0x74,0x69])]:_0x25dad6[_0x4532fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25dad6[_0x4532fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d7604[_0x4532fd([0x76,0x63])],_0x2ee0d4(_0x1d7604)==_0x392c6e;}}}()),!_0x155b65)return _0x4532fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x155b65[_0x4532fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5180cc=function(_0x2bceeb,_0x58a7e9){return new window[(_0x4532fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32be50=>{if(_0x17d022())return _0x32be50(_0x4532fd([0x56,0x61,0x6c,0x69,0x64]));_0x5ed7da(),_0x63b2d1[_0x4532fd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4532fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e2f2a=!0x1;const _0x58004d=uid();function _0x414f81(_0x2b715b){return!!_0x2b715b&&(typeof _0x2b715b===_0x4532fd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b715b===_0x4532fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b715b[_0x4532fd([0x74,0x68,0x65,0x6e])]===_0x4532fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b715b[_0x4532fd([0x63,0x61,0x74,0x63,0x68])]===_0x4532fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x411379(_0x1ed0f8){_0x48f1ed(_0x1ed0f8)[_0x4532fd([0x74,0x68,0x65,0x6e])](_0xe43eb7=>{if(!_0xe43eb7||_0xe43eb7[_0x4532fd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4532fd([0x6f,0x6b]))return _0x4532fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x58e83e(_0x2ee0d4(_0x58004d+_0x58a7e9))!=_0xe43eb7[_0x4532fd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4532fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4532fd([0x56,0x61,0x6c,0x69,0x64]);})[_0x4532fd([0x74,0x68,0x65,0x6e])](_0x22ed14=>(_0x414633(),_0x22ed14),()=>{const _0x1494e=_0x4ffee0();return null==_0x1494e?(_0x414633(),_0x4532fd([0x56,0x61,0x6c,0x69,0x64])):_0x4532fd(_0x46cdb7-_0x1494e>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4532fd([0x74,0x68,0x65,0x6e])](_0x32be50)[_0x4532fd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x32be50(_0x4532fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x637146=0x36ee80;function _0x414633(){const _0x436f19=_0x4532fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x58e83e(_0x2ee0d4(_0x2bceeb)),_0x47a22f=_0x4fc809(_0x58e83e(window[_0x4532fd([0x4d,0x61,0x74,0x68])][_0x4532fd([0x63,0x65,0x69,0x6c])](_0x46cdb7/_0x637146)));window[_0x4532fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4532fd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x436f19,_0x47a22f);}function _0x4ffee0(){const _0x4ed788=_0x4532fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x58e83e(_0x2ee0d4(_0x2bceeb)),_0x4319ea=window[_0x4532fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4532fd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ed788);return _0x4319ea?window[_0x4532fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fc809(_0x4319ea),0x10)*_0x637146:null;}function _0x48f1ed(_0x53a831){return new window[(_0x4532fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e28d5,_0x32a1cc)=>{_0x53a831[_0x4532fd([0x74,0x68,0x65,0x6e])](_0x2e28d5,_0x32a1cc),window[_0x4532fd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32a1cc,0x1d4c0);});}}_0x63b2d1[_0x4532fd([0x6f,0x6e])](_0x4532fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x394fd6,_0x1e9d9f)=>{if(_0x1e9d9f[0x0]!=_0x2bceeb)return _0x32be50(_0x4532fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1e9d9f[0x1]={..._0x1e9d9f[0x1],[_0x4532fd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58004d};},{[_0x4532fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4532fd([0x68,0x69,0x67,0x68])}),_0x63b2d1[_0x4532fd([0x6f,0x6e])](_0x4532fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1c6697=>{_0x414f81(_0x1c6697[_0x4532fd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e2f2a=!0x0,_0x411379(_0x1c6697[_0x4532fd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4532fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4532fd([0x6c,0x6f,0x77])}),_0x132298[_0x4532fd([0x74,0x68,0x65,0x6e])](()=>{_0x1e2f2a||_0x32be50(_0x4532fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x17d022(){return _0x63b2d1[_0x4532fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4532fd([0x76,0x69,0x65,0x77])][_0x4532fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4532fd([0x61,0x75,0x74,0x6f]);}function _0x5ed7da(){_0x63b2d1[_0x4532fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4532fd([0x76,0x69,0x65,0x77])][_0x4532fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4532fd([0x61,0x75,0x74,0x6f]);}}(_0x155b65[_0x4532fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x155b65[_0x4532fd([0x6a,0x74,0x69])]));const _0x6a049e=await(async function(){let _0x23d617=!0x0;try{const _0x235a8f=_0x2973e4[_0x4532fd([0x73,0x70,0x6c,0x69,0x74])](_0x4532fd([0x2e])),[_0x1f73ad,_0x421b87,_0x338153]=_0x235a8f;return _0x337947(_0x1f73ad),await _0x12ef01(_0x1f73ad,_0x421b87,_0x338153),_0x23d617;}catch{return!0x1;}function _0x337947(_0x1a61a6){const _0x49b216=_0x1f1c56(_0x1a61a6);_0x49b216&&_0x49b216[_0x4532fd([0x61,0x6c,0x67])]==_0x4532fd([0x45,0x53,0x32,0x35,0x36])||(_0x23d617=!0x1);}async function _0x12ef01(_0x9d3837,_0x3f912a,_0x3f9dca){const _0x2ec111=window[_0x4532fd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4532fd([0x66,0x72,0x6f,0x6d])](_0x1ab3e3(_0x3f9dca),_0x50cced=>_0x50cced[_0x4532fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x120b42=new window[(_0x4532fd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4532fd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x9d3837+_0x4532fd([0x2e])+_0x3f912a),_0x3a394d=window[_0x4532fd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4532fd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a394d)return;const _0x92f064=await _0x3a394d[_0x4532fd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4532fd([0x6a,0x77,0x6b]),_0x4ca166,{[_0x4532fd([0x6e,0x61,0x6d,0x65])]:_0x4532fd([0x45,0x43,0x44,0x53,0x41]),[_0x4532fd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4532fd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4532fd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a394d[_0x4532fd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4532fd([0x6e,0x61,0x6d,0x65])]:_0x4532fd([0x45,0x43,0x44,0x53,0x41]),[_0x4532fd([0x68,0x61,0x73,0x68])]:{[_0x4532fd([0x6e,0x61,0x6d,0x65])]:_0x4532fd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x92f064,_0x2ec111,_0x120b42)||(_0x23d617=!0x1);}}());return _0x6a049e?(function(){const _0x48111d=_0x155b65[_0x4532fd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x48111d)return!0x1;if(_0x48111d[_0x4532fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4532fd([0x2a])))return!0x0;if(_0x48111d[_0x4532fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4532fd([0x4d,0x46])))return!0x0;return!0x1;}())?(function(){const _0xf27813=[_0x4532fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4532fd([0x74,0x72,0x69,0x61,0x6c])][_0x4532fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x155b65[_0x4532fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x46cdb7/0x3e8:0x69cb0e80;return _0x155b65[_0x4532fd([0x65,0x78,0x70])]<_0xf27813;}())?_0x4532fd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x5bab0f=_0x155b65[_0x4532fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5bab0f||0x0==_0x5bab0f[_0x4532fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e9429}=new URL(window[_0x4532fd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5bab0f[_0x4532fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e9429))return!0x0;const _0x348cc9=_0x5e9429[_0x4532fd([0x73,0x70,0x6c,0x69,0x74])](_0x4532fd([0x2e]));return _0x5bab0f[_0x4532fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d1f53=>_0x2d1f53[_0x4532fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4532fd([0x2a])))[_0x4532fd([0x6d,0x61,0x70])](_0x8a22a3=>_0x8a22a3[_0x4532fd([0x73,0x70,0x6c,0x69,0x74])](_0x4532fd([0x2e])))[_0x4532fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a657e=>_0x3a657e[_0x4532fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x348cc9[_0x4532fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4532fd([0x6d,0x61,0x70])](_0x92111e=>Array(_0x348cc9[_0x4532fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x92111e[_0x4532fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4532fd([0x66,0x69,0x6c,0x6c])](_0x92111e[0x0]===_0x4532fd([0x2a])?_0x4532fd([0x2a]):'')[_0x4532fd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x92111e))[_0x4532fd([0x73,0x6f,0x6d,0x65])](_0x99bf57=>_0x348cc9[_0x4532fd([0x65,0x76,0x65,0x72,0x79])]((_0x4517ca,_0x4e64d9)=>_0x99bf57[_0x4e64d9]===_0x4517ca||_0x99bf57[_0x4e64d9]===_0x4532fd([0x2a])));}())?(_0x155b65[_0x4532fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4532fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5aed9b=function(_0x3f9d14){const _0x1ab505=new window[(_0x4532fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14bb5e=>setTimeout(_0x14bb5e,0x93ecc)),_0x1cd9ab=_0x132298[_0x4532fd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4532fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e037c=>{let _0xf1f405=0x0;_0x63b2d1[_0x4532fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4532fd([0x6f,0x6e])](_0x4532fd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3983c7,_0x47a9d6)=>{_0x47a9d6[0x0][_0x4532fd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf1f405++,0x5e8==_0xf1f405&&(_0x4e037c(),_0x3983c7[_0x4532fd([0x6f,0x66,0x66])]());});})),_0x6f9d7e=[_0x1ab505,_0x1cd9ab];return window[_0x4532fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4532fd([0x72,0x61,0x63,0x65])](_0x6f9d7e)[_0x4532fd([0x74,0x68,0x65,0x6e])](()=>_0x3f9d14);}(_0x4532fd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5aed9b&&_0x5180cc)return new window[(_0x4532fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x566562,_0x13308d)=>{_0x5aed9b[_0x4532fd([0x74,0x68,0x65,0x6e])](_0x566562,_0x13308d),_0x5180cc[_0x4532fd([0x74,0x68,0x65,0x6e])](_0xcf3bb7=>{_0xcf3bb7!=_0x4532fd([0x56,0x61,0x6c,0x69,0x64])&&_0x566562(_0xcf3bb7);},_0x13308d);});return _0x5aed9b||_0x5180cc||_0x4532fd([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4532fd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4532fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4532fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4532fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x1f1c56(_0x453337){return _0x453337[_0x4532fd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4532fd([0x65,0x79]))?JSON[_0x4532fd([0x70,0x61,0x72,0x73,0x65])](_0x1ab3e3(_0x453337)):null;}function _0x1ab3e3(_0x35e810){return window[_0x4532fd([0x61,0x74,0x6f,0x62])](_0x35e810[_0x4532fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4532fd([0x2b]))[_0x4532fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4532fd([0x2f])));}function _0x2ee0d4(_0x3b4a64){let _0x16778f=0x1505;function _0x22748c(_0x141527){for(let _0x2c263c=0x0;_0x2c263c<_0x141527[_0x4532fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c263c++){const _0x48a2e9=_0x141527[_0x4532fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c263c);_0x16778f=(_0x16778f<<0x5)+_0x16778f+_0x48a2e9,_0x16778f&=_0x16778f;}}return function _0x1f05b6(_0x2e83f3){Array[_0x4532fd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e83f3)?_0x2e83f3[_0x4532fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f05b6):_0x2e83f3&&typeof _0x2e83f3==_0x4532fd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4532fd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e83f3)[_0x4532fd([0x73,0x6f,0x72,0x74])]()[_0x4532fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c6707,_0x1c2bd0])=>{_0x22748c(_0x5c6707),_0x1f05b6(_0x1c2bd0);}):_0x22748c(window[_0x4532fd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e83f3));}(_0x3b4a64),_0x16778f>>>0x0;}function _0x58e83e(_0x2295af){return _0x2295af[_0x4532fd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4532fd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4532fd([0x30]));}function _0x4fc809(_0x394dd1){return _0x394dd1[_0x4532fd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4532fd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4532fd([0x6a,0x6f,0x69,0x6e])]('');}function _0xb340(){}function _0x4532fd(_0x4de2e7){return _0x4de2e7['map'](_0x5d674b=>String['fromCharCode'](_0x5d674b))['join']('');}!function(_0x3b9dd4){const _0x2bb441=(function(){const _0x1f95ef=window[_0x4532fd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4532fd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4532fd([0x6e,0x6f,0x77])]())[_0x4532fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4532fd([0x2e]),'');let _0x1bf507=_0x4532fd([0x63]);for(let _0x3e64d5=0x0;_0x3e64d5<_0x1f95ef[_0x4532fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e64d5+=0x2){let _0x5a8565=window[_0x4532fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f95ef[_0x4532fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e64d5,_0x3e64d5+0x2));_0x5a8565>=_0x33f1d5[_0x4532fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a8565-=_0x33f1d5[_0x4532fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1bf507+=_0x33f1d5[_0x5a8565];}return _0x1bf507;}());_0x63b2d1[_0x2bb441]=_0x4532fd([0x6d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3b9dd4,_0x3b9dd4!=_0x4532fd([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x132298,_0x63b2d1[_0x4532fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4532fd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xb340,_0x63b2d1[_0x4532fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4532fd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xb340,_0x63b2d1[_0x4532fd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4532fd([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x3e5768);}class MergeFieldsListView extends ListView{['filter'](_0x37f965){return filterGroupAndItemNames(_0x37f965,this['items']);}}class MergeFieldsPanelView extends View{constructor(_0x319060){super(_0x319060),this['set']('text','');const _0x11e447=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':_0x11e447['to']('text')}]}]});}}function getTranslation$8(_0x71f579,_0x4b50eb){const t=_0x71f579['t'];switch(_0x4b50eb){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 _0x4b50eb;}}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(_0x3bd5da){super(_0x3bd5da),this['_removeDefaultValuesPreviewIfUnnecessary'](),this['_removeMenuBarButtonIfUnnecessary'](),this['_setupMentionConfiguration']();}['init'](){const _0x19bb7d=this['editor'];_0x19bb7d['ui']['componentFactory']['add']('insertMergeField',_0x11c837=>{const _0x49de80=createInsertMergeFieldDropdown(_0x11c837);return _0x49de80['bind']('isEnabled')['toMany']([_0x19bb7d['commands']['get']('insertMergeField'),_0x19bb7d['commands']['get']('insertMergeFieldBlock'),_0x19bb7d['commands']['get']('insertMergeFieldImage')],'isEnabled',(..._0x3dff6d)=>_0x3dff6d['some'](_0x4cbcd9=>_0x4cbcd9)),_0x49de80['once']('change:isOpen',()=>{const _0x5b5285={'insertInline':_0x19bb7d['commands']['get']('insertMergeField'),'insertBlock':_0x19bb7d['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x19bb7d['commands']['get']('insertMergeFieldImage')},_0xb3e5f3=createMergeFieldsListView(_0x11c837,_0x19bb7d['config']['get']('mergeFields.definitions'),_0x5b5285);_0xb3e5f3['delegate']('execute')['to'](_0x49de80),_0x49de80['on']('execute',(_0x4d892c,_0x406b62)=>{const _0x406e8d=_0x19bb7d['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x406b62);'image'===_0x406e8d?_0x19bb7d['execute']('insertMergeFieldImage',_0x406b62):'block'===_0x406e8d?_0x19bb7d['execute']('insertMergeFieldBlock',_0x406b62):_0x19bb7d['execute']('insertMergeField',_0x406b62),_0x19bb7d['editing']['view']['focus']();});const _0x5eb26a=createMergeFieldsSearchTextView(_0x11c837,_0xb3e5f3);_0x49de80['panelView']['children']['add'](_0x5eb26a),_0x49de80['on']('change:isOpen',(_0x5f7c31,_0x12e092,_0x3ec787)=>{_0x3ec787&&_0x5eb26a['reset']();});}),_0x49de80;}),_0x19bb7d['ui']['componentFactory']['add']('menuBar:insertMergeField',_0x22e381=>{const _0x1f6e4b=new MenuBarMenuView(_0x22e381),_0x2423db={'insertInline':_0x19bb7d['commands']['get']('insertMergeField'),'insertBlock':_0x19bb7d['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x19bb7d['commands']['get']('insertMergeFieldImage')};_0x1f6e4b['buttonView']['set']({'label':getTranslation$8(_0x22e381,'Merge\x20field'),'icon':IconInsertMergeField}),_0x1f6e4b['bind']('isEnabled')['toMany']([...Object['values'](_0x2423db)],'isEnabled',(..._0x255837)=>_0x255837['some'](_0x22d0cf=>_0x22d0cf));const _0x3e5130=[],_0x10f84a=new MenuBarMenuListView(_0x22e381);for(const _0x14a8d9 of _0x19bb7d['config']['get']('mergeFields.definitions'))if('groupId'in _0x14a8d9){const _0x592e09=new MenuBarMenuListItemView(_0x22e381,_0x1f6e4b),_0x42e170=createMenuBarSubmenu(_0x22e381,_0x14a8d9,_0x2423db);_0x592e09['children']['add'](_0x42e170),_0x42e170['delegate']('execute')['to'](_0x1f6e4b),_0x10f84a['items']['add'](_0x592e09);}else _0x3e5130['push'](_0x14a8d9);if(_0x3e5130['length']){if(0x0===_0x10f84a['items']['length'])for(const _0xfa3eaf of _0x3e5130){let _0x205d87;_0x205d87='block'===_0xfa3eaf['type']?_0x2423db['insertBlock']:'image'===_0xfa3eaf['type']?_0x2423db['insertImage']:_0x2423db['insertInline'];const _0xb23b7=createMenuBarListItem(_0x22e381,_0xfa3eaf,_0x1f6e4b,_0x205d87);_0x10f84a['items']['add'](_0xb23b7);}else{const _0x34364b=new MenuBarMenuListItemView(_0x22e381,_0x1f6e4b),_0x1e086f=createMenuBarSubmenu(_0x22e381,{'groupId':'Other','definitions':_0x3e5130},_0x2423db);_0x34364b['children']['add'](_0x1e086f),_0x1e086f['delegate']('execute')['to'](_0x1f6e4b),_0x10f84a['items']['add'](_0x34364b);}}return _0x1f6e4b['panelView']['children']['add'](_0x10f84a),_0x1f6e4b['on']('execute',(_0x4388e2,_0x3b7f14)=>{const _0x452a10=_0x19bb7d['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x3b7f14);'image'===_0x452a10?_0x19bb7d['execute']('insertMergeFieldImage',_0x3b7f14):'block'===_0x452a10?_0x19bb7d['execute']('insertMergeFieldBlock',_0x3b7f14):_0x19bb7d['execute']('insertMergeField',_0x3b7f14),_0x19bb7d['editing']['view']['focus']();}),_0x1f6e4b;});const _0x2f9ced=_0x19bb7d['config']['get']('mergeFields.previewModes'),_0x226f03=[];if(_0x2f9ced['includes']('$labels')&&_0x226f03['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':getTranslation$8(this['editor']['locale'],'Labels'),'commandValue':'$labels'})}),_0x2f9ced['includes']('$defaultValues')&&_0x226f03['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':getTranslation$8(this['editor']['locale'],'Default\x20values'),'commandValue':'$defaultValues'})}),_0x2f9ced['includes']('$dataSets')){const _0x1759da=_0x19bb7d['config']['get']('mergeFields.dataSets');if(_0x1759da['length']){for(const _0x1ab832 of _0x1759da)_0x226f03['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':_0x1ab832['label']||_0x1ab832['id'],'commandValue':_0x1ab832['id']})});}}_0x19bb7d['ui']['componentFactory']['add']('previewMergeFields',_0x1667f3=>{const _0x383a77=_0x19bb7d['commands']['get']('previewMergeFields'),_0x2df012=new Collection();for(const _0xc1cbeb of cloneDeep(_0x226f03))_0xc1cbeb['model']['bind']('isOn')['to'](_0x383a77,'value',_0xd85feb=>_0xd85feb===_0xc1cbeb['model']['commandValue']),_0x2df012['add'](_0xc1cbeb);const _0x4b0b3c=createDropdown(_0x1667f3),_0x144342=getTranslation$8(_0x1667f3,'Merge\x20fields\x20preview');return _0x4b0b3c['bind']('isEnabled')['to'](_0x383a77),addListToDropdown(_0x4b0b3c,_0x2df012,{'ariaLabel':_0x144342,'role':'menu'}),_0x4b0b3c['set']({'class':'ck-merge-fields-preview-dropdown'}),_0x4b0b3c['buttonView']['set']({'label':_0x144342,'ariaLabel':_0x144342,'ariaLabelledBy':void 0x0,'isOn':!0x1,'icon':IconPreviewMergeFields,'tooltip':!0x0}),this['listenTo'](_0x4b0b3c,'execute',_0x2383b6=>{const {commandValue:_0x2cc298}=_0x2383b6['source'];_0x19bb7d['execute']('previewMergeFields',_0x2cc298),_0x19bb7d['editing']['view']['focus']();}),_0x4b0b3c;}),_0x19bb7d['ui']['componentFactory']['add']('menuBar:previewMergeFields',_0x4a2af7=>{const _0x44e8fe=new MenuBarMenuView(_0x4a2af7),_0x27528c=_0x19bb7d['commands']['get']('previewMergeFields');_0x44e8fe['buttonView']['set']({'label':getTranslation$8(_0x4a2af7,'Merge\x20fields\x20preview'),'icon':IconPreviewMergeFields}),_0x44e8fe['bind']('isEnabled')['to'](_0x27528c);const _0x23c878=new MenuBarMenuListView(_0x4a2af7);_0x23c878['set']({'ariaLabel':getTranslation$8(_0x4a2af7,'Merge\x20fields\x20preview')});for(const _0x101083 of cloneDeep(_0x226f03)){const _0x2116a2=new MenuBarMenuListItemView(_0x4a2af7,_0x44e8fe),_0xaf6a7c=new MenuBarMenuListItemButtonView(_0x4a2af7);_0x101083['model']['bind']('isOn')['to'](_0x27528c,'value',_0x4d0c83=>_0x4d0c83===_0x101083['model']['commandValue']),_0xaf6a7c['isToggleable']=!0x0,_0xaf6a7c['bind'](...Object['keys'](_0x101083['model']))['to'](_0x101083['model']),_0xaf6a7c['delegate']('execute')['to'](_0x44e8fe),_0xaf6a7c['on']('execute',_0x2fb3d9=>{const {commandValue:_0x2031df}=_0x2fb3d9['source'];_0x19bb7d['execute']('previewMergeFields',_0x2031df),_0x19bb7d['editing']['view']['focus']();}),_0x2116a2['children']['add'](_0xaf6a7c),_0x23c878['items']['add'](_0x2116a2);}return _0x44e8fe['panelView']['children']['add'](_0x23c878),_0x44e8fe;}),this['_balloon']=_0x19bb7d['plugins']['get'](ContextualBalloon),this['listenTo'](_0x19bb7d['ui'],'update',()=>{this['_updateBalloonVisibility']();},{'priority':'low'}),this['listenTo'](_0x19bb7d['ui']['focusTracker'],'change:isFocused',(_0x4a43a5,_0x27d1df,_0x525db0)=>{this['_balloon']['visibleView']&&this['_balloon']['visibleView']===this['_balloonPanelView']&&(_0x525db0?this['_updateBalloonVisibility']():this['_hideBalloon']());},{'priority':'low'}),this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xcca249=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d2a26;for(const _0x500eab in _0xcca249){const _0x31b7ff=_0x500eab,_0x22f8af=_0xcca249[_0x31b7ff];if('mergeFieldsLicenseKeyValid'==_0x22f8af||'mergeFieldsLicenseKeyInvalid'==_0x22f8af||'mergeFieldsLicenseKeyExpired'==_0x22f8af||'mergeFieldsLicenseKeyDomainLimit'==_0x22f8af||'mergeFieldsLicenseKeyNotAllowed'==_0x22f8af||'mergeFieldsLicenseKeyEvaluationLimit'==_0x22f8af||'mergeFieldsLicenseKeyUsageLimit'==_0x22f8af){delete _0xcca249[_0x31b7ff],_0x5d2a26=_0x22f8af,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'mergeFieldsLicenseKeyInvalid'==_0x5d2a26&&_0xcca249['_showLicenseError']('invalid'),'mergeFieldsLicenseKeyExpired'==_0x5d2a26&&_0xcca249['_showLicenseError']('expired'),'mergeFieldsLicenseKeyDomainLimit'==_0x5d2a26&&_0xcca249['_showLicenseError']('domainLimit'),'mergeFieldsLicenseKeyNotAllowed'==_0x5d2a26&&_0xcca249['_showLicenseError']('featureNotAllowed','MergeFields'),'mergeFieldsLicenseKeyEvaluationLimit'==_0x5d2a26&&_0xcca249['_showLicenseError']('evaluationLimit'),'mergeFieldsLicenseKeyUsageLimit'==_0x5d2a26&&_0xcca249['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_updateBalloonVisibility'](){const _0x3f9f06=this['editor']['editing']['view']['document']['selection']['getSelectedElement'](),_0x30f5bb=!(!_0x3f9f06||!_0x3f9f06['getCustomProperty']('mergeFieldStatus'));if(this['_balloon']['hasView'](this['_balloonPanelView'])&&this['_balloon']['visibleView']===this['_balloonPanelView']){if(_0x30f5bb){const _0x5c0832=_0x3f9f06['getCustomProperty']('mergeFieldStatus');this['_balloonPanelView']['text']=getTranslation$8(this['editor']['locale'],_0x5c0832),this['_balloon']['updatePosition'](this['_getBalloonPositionData']());}else this['_hideBalloon']();}else{if(_0x30f5bb){const _0x5c845c=_0x3f9f06['getCustomProperty']('mergeFieldStatus');this['_showBalloon'](getTranslation$8(this['editor']['locale'],_0x5c845c));}}}['_showBalloon'](_0x58ba47){this['_balloonPanelView']||(this['_balloonPanelView']=new MergeFieldsPanelView(this['editor']['locale']),this['_balloonPanelView']['text']=_0x58ba47),this['_balloon']['hasView'](this['_balloonPanelView'])||(this['_balloon']['add']({'stackId':'mergeFieldsStatus','view':this['_balloonPanelView'],'position':this['_getBalloonPositionData']()}),this['_balloon']['showStack']('mergeFieldsStatus'));}['_getBalloonPositionData'](){const _0x10bed5=this['editor']['editing']['view'];return{'target':()=>{const _0x5ade9c=_0x10bed5['document']['selection']['getFirstRange'](),_0x51bf13=_0x10bed5['domConverter']['mapViewToDom'](_0x5ade9c['getContainedElement']());return _0x51bf13?Array['from'](_0x51bf13['getClientRects']())[0x0]:_0x10bed5['domConverter']['viewRangeToDom'](_0x5ade9c);}};}['_hideBalloon'](){this['_balloon']['remove'](this['_balloonPanelView']);}['_removeDefaultValuesPreviewIfUnnecessary'](){if(Object['values'](this['editor']['plugins']['get']('MergeFieldsEditing')['getDefaultValues']())['some'](_0x39bae3=>_0x39bae3))return;const _0x2dd1c8=this['editor']['config']['get']('mergeFields.previewModes');_0x2dd1c8['indexOf']('$defaultValues')>-0x1&&_0x2dd1c8['length']>0x1&&(_0x2dd1c8['splice'](_0x2dd1c8['indexOf']('$defaultValues'),0x1),this['editor']['config']['set']('mergeFields.previewModes',_0x2dd1c8));}['_removeMenuBarButtonIfUnnecessary'](){const _0x56d480=this['editor']['config'];if(_0x56d480['get']('mergeFields.previewModes')){const _0x38e310=_0x56d480['get']('mergeFields.previewModes');if(0x1===_0x38e310['length']){if(_0x38e310['includes']('$dataSets'))0x1===_0x56d480['get']('mergeFields.dataSets')['length']&&_0x2c4439();else _0x2c4439();}}function _0x2c4439(){const _0x6db9a6=_0x56d480['get']('menuBar.removeItems');_0x6db9a6?(_0x6db9a6['push']('menuBar:previewMergeFields'),_0x56d480['set']('menuBar.removeItems',_0x6db9a6)):_0x56d480['set']('menuBar.removeItems',['menuBar:previewMergeFields']);}}['_setupMentionConfiguration'](){const _0x7bcd4c=this['editor'],_0x472acd=_0x7bcd4c['config']['get']('mention.feeds'),_0x17a7ca=_0x7bcd4c['config']['get']('mergeFields.prefix');_0x472acd['push']({'marker':_0x17a7ca,'dropdownLimit':0xa,'feed':_0x220aa4=>_0x7bcd4c['plugins']['get']('MergeFieldsEditing')['flattenedMergeFieldDefinitions']['filter'](_0x54d1ba=>{const _0x397882=_0x7bcd4c['commands']['get']('insertMergeField')['isEnabled'],_0x18993c=_0x7bcd4c['commands']['get']('insertMergeFieldBlock')['isEnabled'],_0x28a7c4=_0x7bcd4c['commands']['get']('insertMergeFieldImage')['isEnabled'],_0x296cc2=_0x7bcd4c['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x54d1ba['id']);if('text'===_0x296cc2&&!_0x397882)return!0x1;if('block'===_0x296cc2&&!_0x18993c)return!0x1;if('image'===_0x296cc2&&!_0x28a7c4)return!0x1;return(_0x7bcd4c['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x54d1ba['id'])||_0x54d1ba['id'])['toLowerCase']()['includes'](_0x220aa4['toLowerCase']());}),'itemRenderer':_0x4a9f59=>{const _0x16d05b=document['createElement']('button');return _0x16d05b['innerHTML']=''+(_0x4a9f59['label']||_0x4a9f59['id']),_0x16d05b;}}),_0x7bcd4c['config']['set']('mention.feeds',_0x472acd);}['_overrideMentionExecuteListener'](){const _0x1196b2=this['editor'];_0x1196b2['commands']['get']('mention')['on']('execute',(_0xc453ac,_0x46e9a6)=>{const _0x415b26=_0x46e9a6[0x0];_0x415b26['marker']===_0x1196b2['config']['get']('mergeFields.prefix')&&_0x1196b2['model']['change'](_0x4c87db=>{_0x4c87db['remove'](_0x415b26['range']);const _0x10b086=_0x415b26['mention']['id'],_0x54443c=_0x1196b2['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x10b086);'text'===_0x54443c?_0x1196b2['execute']('insertMergeField',_0x10b086):'block'===_0x54443c?_0x1196b2['execute']('insertMergeFieldBlock',_0x10b086,!0x1):_0x1196b2['execute']('insertMergeFieldImage',_0x10b086,{'breakBlock':!0x0}),_0xc453ac['stop']();});},{'priority':'high'});}}function createInsertMergeFieldDropdown(_0x2cc0e5){const _0x53b541=createDropdown(_0x2cc0e5);return _0x53b541['set']({'class':'ck-insert-merge-field-dropdown','isEnabled':!0x0}),_0x53b541['buttonView']['set']({'label':getTranslation$8(_0x2cc0e5,'Insert\x20merge\x20field'),'icon':IconInsertMergeField,'tooltip':!0x0}),_0x53b541;}function createMergeFieldsListView(_0x5aa389,_0x3ef27b,_0x618803){const _0x8c176e=new MergeFieldsListView(_0x5aa389),_0x22b1d8=[],_0x5d2da4=[];for(const _0x4f2490 of _0x3ef27b)if('groupId'in _0x4f2490){const _0x5d1eda=createMergeFieldsGroupView(_0x5aa389,_0x4f2490['groupLabel']||_0x4f2490['groupId'],_0x4f2490['definitions'],_0x618803);_0x5d1eda['delegate']('execute')['to'](_0x8c176e),_0x5d2da4['push'](_0x5d1eda);}else _0x22b1d8['push'](_0x4f2490);if(_0x22b1d8['length']){const _0x1f6153=createMergeFieldsGroupView(_0x5aa389,'Other',_0x22b1d8,_0x618803);_0x1f6153['delegate']('execute')['to'](_0x8c176e),_0x5d2da4['push'](_0x1f6153);}return _0x8c176e['items']['addMany'](_0x5d2da4),_0x8c176e;}function createMergeFieldsGroupView(_0x28d311,_0x2c18fa,_0x23828a,_0x2f9910){const _0x461a27=new ListItemGroupView(_0x28d311,new LabelWithHighlightView());_0x461a27['label']=_0x2c18fa;for(const _0x22e288 of _0x23828a){let _0x4ecc11;_0x4ecc11='block'===_0x22e288['type']?_0x2f9910['insertBlock']:'image'===_0x22e288['type']?_0x2f9910['insertImage']:_0x2f9910['insertInline'];const _0x5c3f44=createMergeFieldListItemView(_0x28d311,_0x22e288,_0x4ecc11);_0x5c3f44['delegate']('execute')['to'](_0x461a27),_0x461a27['items']['add'](_0x5c3f44);}return _0x461a27;}function createMergeFieldListItemView(_0x361e19,_0x48d4e6,_0xb0a9f7){const _0x551226=new ListItemView(_0x361e19),_0x2c23bf=new ButtonLabelWithHighlightView(),_0x379852=new ButtonView(_0x361e19,_0x2c23bf);return _0x551226['children']['add'](_0x379852),_0x379852['set']({'label':_0x48d4e6['label']||_0x48d4e6['id'],'withText':!0x0}),_0x379852['bind']('isEnabled')['to'](_0xb0a9f7),_0x379852['on']('execute',()=>{_0x551226['fire']('execute',_0x48d4e6['id']);}),_0x551226;}function createMergeFieldsSearchTextView(_0x13e1e9,_0x37cc55){return new SearchTextView(_0x13e1e9,{'filteredView':_0x37cc55,'queryView':{'label':getTranslation$8(_0x13e1e9,'Search\x20merge\x20field')},'class':'ck-merge-fields-search','infoView':{'text':{'notFound':{'primary':getTranslation$8(_0x13e1e9,'No\x20merge\x20fields\x20found')},'noSearchableItems':{'primary':getTranslation$8(_0x13e1e9,'No\x20merge\x20fields\x20available')}}}});}function createMenuBarSubmenu(_0x338959,_0x103ee5,_0x50dfdb){const _0x5bcc35=new MenuBarMenuView(_0x338959),_0x4de554=new MenuBarMenuListView(_0x338959);for(const _0x2787ff of _0x103ee5['definitions']){let _0xd52c2c;_0xd52c2c='block'===_0x2787ff['type']?_0x50dfdb['insertBlock']:'image'===_0x2787ff['type']?_0x50dfdb['insertImage']:_0x50dfdb['insertInline'];const _0x53f7e3=createMenuBarListItem(_0x338959,_0x2787ff,_0x5bcc35,_0xd52c2c);_0x4de554['items']['add'](_0x53f7e3);}return _0x5bcc35['set']({'class':'ck-menu-bar__merge-fields-submenu'}),_0x5bcc35['buttonView']['set']({'label':_0x103ee5['groupLabel']||_0x103ee5['groupId']}),_0x5bcc35['panelView']['children']['add'](_0x4de554),_0x5bcc35;}function createMenuBarListItem(_0x53f956,_0x53d644,_0x13076f,_0x58c936){const _0x3e5c5e=new MenuBarMenuListItemView(_0x53f956,_0x13076f),_0x9e60da=new MenuBarMenuListItemButtonView(_0x53f956);return _0x9e60da['set']({'label':_0x53d644['label']||_0x53d644['id']}),_0x3e5c5e['delegate']('execute')['to'](_0x13076f),_0x3e5c5e['children']['add'](_0x9e60da),_0x9e60da['bind']('isEnabled')['to'](_0x58c936),_0x9e60da['on']('execute',()=>{_0x3e5c5e['fire']('execute',_0x53d644['id']);}),_0x3e5c5e;}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 _0x3c6b60=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x3c6b60),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x3e889e,_0x222753,_0x2d6f64)=>{_0x2d6f64&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){checkLicense$7(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x5a96a0=this['editor'],_0x354cd3=_0x5a96a0['editing']['view'],_0x147df4=this['_getAttachedDomRoot']();if(!_0x147df4||0x0===_0x147df4['childElementCount'])return void _0x5a96a0['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x52b41f,pageHeight:_0x50f952}=_0x5a96a0['config']['get']('pagination'),{top:_0x5c77e8,left:_0x8cb8b4,bottom:_0x1ca096,right:_0x55b03f}=this['_configuredPaddings'];this['_pagesContainer']=new View(_0x5a96a0['locale']);const _0x3d81f1=this['_pagesContainer'];_0x3d81f1['set']('class',''),_0x3d81f1['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x52b41f,'width':_0x52b41f,'height':'calc(\x20'+_0x50f952+'\x20-\x20'+_0x5c77e8+'\x20-\x20'+_0x1ca096+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x55b03f+'\x200\x20'+_0x8cb8b4,'columnGap':'calc('+_0x8cb8b4+'\x20+\x20'+_0x55b03f+'\x20+\x20'+COLUMN_GAP+'px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x3d81f1['bindTemplate']['to']('class')}}),_0x3d81f1['render'](),_0x147df4['parentNode']['insertBefore'](_0x3d81f1['element'],_0x147df4['nextSibling']),this['listenTo'](_0x354cd3,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x59e97c of this['editor']['editing']['view']['domRoots']['values']())if(_0x59e97c['ownerDocument']['body']['contains'](_0x59e97c))return _0x59e97c;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x126493=this['editor']['editing']['view'],_0x344950=this['_pagesContainer'],_0x175461=this['_getAttachedDomRoot']();if(!_0x175461)return Promise['resolve']();for(_0x344950['class']=['ck-reset','ck-pagination-view',..._0x175461['classList']]['join']('\x20');_0x344950['element']['firstChild'];)_0x344950['element']['firstChild']['remove']();const _0x4a448f=Array['from'](_0x126493['domRoots']);_0x4a448f['sort'](([,_0x7bf16a],[,_0x5d7161])=>_0x7bf16a['compareDocumentPosition'](_0x5d7161)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x279fe0,_0x4c7cf4]of _0x4a448f){const _0x4f75db=_0x4c7cf4['cloneNode'](!0x0);'attributeStyleMap'in _0x4f75db&&_0x4f75db['attributeStyleMap']['clear'](),_0x4f75db['dataset']['rootName']=_0x279fe0,_0x4f75db['className']='ck-content\x20ck-pagination_enabled',_0x4f75db['removeAttribute']('id'),_0x4f75db['tabIndex']=-0x1,_0x344950['element']['append'](_0x4f75db);}const _0x4b9d5b=Array['from'](_0x344950['element']['querySelectorAll']('img'));return allImagesAreReady(_0x4b9d5b)['then'](()=>{for(const _0x193fe6 of _0x4b9d5b['filter'](_0x3f57cc=>!_0x3f57cc['closest']('table')))if(_0x193fe6['offsetParent']){const _0x102009=_0x176c57['window']['getComputedStyle'](_0x193fe6),_0x2d4a5f=_0x176c57['document']['createElement']('span');for(const _0x58472d of _0x102009)_0x2d4a5f['style']['setProperty'](_0x58472d,_0x102009[_0x58472d]);_0x2d4a5f['style']['backgroundImage']='url(\x20'+_0x193fe6['src']+'\x20)',_0x2d4a5f['style']['breakInside']='avoid','PICTURE'==_0x193fe6['parentElement']?.['tagName']?_0x193fe6['parentElement']['replaceWith'](_0x2d4a5f):_0x193fe6['replaceWith'](_0x2d4a5f);}return nextAnimationFrame();})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x2ebdb7=this['_pagesContainer']['element'];if(!_0x2ebdb7['ownerDocument']['body']['contains'](_0x2ebdb7))return;const _0x5cca1c=new Rect(_0x2ebdb7)['excludeScrollbarsAndBorders'](),_0x11b48f=Math['floor'](_0x5cca1c['width']+COLUMN_GAP),_0x411962=findPageStarterInfos(_0x2ebdb7,Math['floor'](_0x5cca1c['left']-_0x2ebdb7['scrollLeft']),_0x11b48f,_0x5cca1c['height'])['map'](_0x27bb42=>this['_mapPageStarterInfoToPageBreakInfo'](_0x27bb42))['filter'](_0x23a54c=>!0x1!==_0x23a54c);_0x411962['every'](_0x1af40b=>!!_0x1af40b)&&(this['pageBreaks']=_0x411962);}['_mapPageStarterInfoToPageBreakInfo'](_0x3bc758){const _0x5363a9=this['editor']['editing']['view'],_0x5bc59a=this['editor']['editing']['mapper'],_0xf09e31=_0x5363a9['domConverter'],_0x299de1=_0x3bc758['path']['shift'](),_0x508ee8=this['_pagesContainer']['element']['childNodes'][_0x299de1]['dataset']['rootName'],_0x5e88f1=_0x5363a9['getDomRoot'](_0x508ee8);if(!_0x5e88f1)return null;const _0x31cf52=pageElementToViewElement(_0x5e88f1,_0x3bc758);if(!_0x31cf52)return null;const _0x4a6321=_0xf09e31['domPositionToView'](_0x31cf52,_0x3bc758['textOffset']||0x0);return _0x4a6321?'manual'==_0x3bc758['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x4a6321,_0x31cf52):'text'==_0x3bc758['type']&&_0x5bc59a['toModelPosition'](_0x4a6321)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x4a6321,_0x31cf52,_0x3bc758['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x4a6321,_0x31cf52,_0x3bc758['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x418ce0,_0x56590e){const _0x2da17d=this['editor']['model'],_0x2a6a8d=this['editor']['editing']['mapper']['toModelElement'](_0x418ce0['parent']),_0x39d9e8=_0x2da17d['createRangeOn'](_0x2a6a8d);return new PageBreakInfo({'type':'manual','modelRange':_0x39d9e8,'domNode':_0x56590e,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x53556c,_0x112e4e,_0x261779){const _0x4a8894=this['editor']['model'],_0x4437b1=this['editor']['editing']['mapper'],_0x24035f=this['editor']['editing']['view']['domConverter'];if(_0x261779>=_0x112e4e['length'])return null;const _0x1e6cc5=_0x4437b1['toModelPosition'](_0x53556c),_0x2fc8c3=_0x4a8894['createRange'](_0x1e6cc5),_0x512632=_0x4437b1['findMappedViewAncestor'](_0x53556c),_0x1f8d5c=_0x24035f['mapViewToDom'](_0x512632);return new PageBreakInfo({'type':'text','modelRange':_0x2fc8c3,'domNode':_0x112e4e,'offset':findOffsetTopForTextOffset(_0x112e4e,_0x261779,_0x1f8d5c)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x5dfd4d,_0x4938aa,_0x524942){const _0x468102=this['editor']['model'],_0x2a57a8=this['editor']['editing'],_0x5ece02=_0x2a57a8['mapper'],_0x50abbb=_0x2a57a8['view']['domConverter'],_0x46f76c=_0x5ece02['findMappedViewAncestor'](_0x5dfd4d),_0x22da7d=_0x5ece02['toModelElement'](_0x46f76c);if(!_0x22da7d||_0x22da7d['is']('element','$root'))return!0x1;const _0x4fd17b=getTopMostParentBlockTouchingPosition(_0x468102['createPositionBefore'](_0x22da7d))||_0x22da7d;let _0x369f9b=_0x5ece02['toViewElement'](_0x4fd17b),_0x15333b=_0x468102['createRangeOn'](_0x4fd17b);const _0x7ea6fe=_0x468102['createPositionBefore'](_0x4fd17b)['nodeBefore'];if(_0x7ea6fe&&_0x7ea6fe['is']('element','imageBlock')){const _0x3eacb1=_0x5ece02['toViewElement'](_0x7ea6fe),_0x448b19=_0x50abbb['mapViewToDom'](_0x3eacb1),_0x2cb510=_0x176c57['window']['getComputedStyle'](_0x448b19)['float'];'left'!=_0x2cb510&&'right'!=_0x2cb510||(_0x15333b=_0x468102['createRangeOn'](_0x7ea6fe));}for(;_0x369f9b['parent']!==_0x369f9b['root']&&0x0===_0x369f9b['index'];)_0x369f9b=_0x369f9b['parent'];const _0x3dd7f8=new Rect(isHTMLElement(_0x4938aa)?_0x4938aa:createDomRangeOn(_0x4938aa)),_0xa4b436=_0x524942?_0x3dd7f8['height']-_0x524942:0x0,_0x27eba2=_0x50abbb['mapViewToDom'](_0x369f9b),_0x59164b=new Rect(_0x27eba2);return new PageBreakInfo({'type':'element','modelRange':_0x15333b,'domNode':_0x27eba2,'offset':Math['round'](_0xa4b436)||_0x46f76c!=findBlockAncestor(_0x5dfd4d)?_0xa4b436+_0x3dd7f8['top']-_0x59164b['top']:0x0});}get['_configuredPaddings'](){const _0x2e3155=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x2e3155);}static['_findPageStarterInfos'](_0x1ba6fa,_0xdc2d70,_0x52e3c0,_0x1bd638,_0x4240f2){return findPageStarterInfos(_0x1ba6fa,_0xdc2d70,_0x52e3c0,_0x1bd638,_0x4240f2);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x27acec,modelRange:_0x448f59,domNode:_0x8cfb6b,offset:_0x319183}){this['type']=_0x27acec,this['modelRange']=_0x448f59,this['_domNode']=_0x8cfb6b,this['_offset']=_0x319183;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x304d1c=new Rect(isHTMLElement(this['_domNode'])?this['_domNode']:createDomRangeOn(this['_domNode']));return'manual'==this['type']?_0x304d1c['top']+_0x304d1c['height']/0x2:_0x304d1c['top']+this['_offset'];}}function isPageBreak(_0x4f6b8d){return!(!_0x4f6b8d||!isHTMLElement(_0x4f6b8d))&&Boolean(_0x4f6b8d['classList']['contains']('page-break')||_0x4f6b8d['closest']('.page-break'));}function pageElementToViewElement(_0x5f466e,_0x43461e){let _0xdc3e1b=_0x5f466e;for(const _0x3581ca of _0x43461e['path']){if(!_0xdc3e1b)return null;_0xdc3e1b=_0xdc3e1b['childNodes'][_0x3581ca];}return _0xdc3e1b;}function findOffsetTopForTextOffset(_0x332bf2,_0x611a9c,_0x12c187){const _0x44af4d=createDomRangeOn(_0x332bf2),_0x427838=createDomRangeIn(_0x12c187);let _0x5a9be7;_0x5a9be7=0x0==_0x611a9c?createDomRangeMultiNode(_0x427838['startContainer'],_0x427838['startOffset'],_0x332bf2['parentNode'],Array['from'](_0x332bf2['parentNode']['childNodes'])['indexOf'](_0x332bf2)):createDomRangeMultiNode(_0x427838['startContainer'],_0x427838['startOffset'],_0x332bf2,_0x611a9c);const _0x4b8c0a=createDomRangeMultiNode(_0x332bf2,_0x611a9c,_0x427838['endContainer'],_0x427838['endOffset']),_0x391eb7=new Rect(_0x5a9be7)['bottom'];return(new Rect(_0x4b8c0a)['top']+_0x391eb7)/0x2-new Rect(_0x44af4d)['top'];}function getTopMostParentBlockTouchingPosition(_0x6ff667){const _0x3f16b2=_0x6ff667['parent'],_0x351d5f=_0x3f16b2['root']['document']['model'],_0x7d4c08=_0x3f16b2['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x388981=null;for(const _0x550fec of _0x7d4c08){if(_0x550fec['is']('rootElement'))return _0x388981;if(!_0x351d5f['createPositionBefore'](_0x550fec)['isTouching'](_0x6ff667))return _0x388981;_0x388981=_0x550fec;}}function findBlockAncestor(_0x190d2d){let _0x3dacb1=_0x190d2d['parent'];for(;_0x3dacb1['is']('$text')||_0x3dacb1['is']('attributeElement');)_0x3dacb1=_0x3dacb1['parent'];return _0x3dacb1;}function allImagesAreReady(_0x35c985){return Promise['all'](_0x35c985['map'](_0x2c8de9=>Promise['race']([imageReady(_0x2c8de9),timeout(0x3e8)])));}function imageReady(_0x326b46){return _0x326b46['hasAttribute']('width')&&_0x326b46['hasAttribute']('height')?Promise['resolve']():new Promise(_0x3ec96e=>{function _0x47d383(){_0x326b46['removeEventListener']('load',_0x47d383),_0x326b46['removeEventListener']('error',_0x47d383),_0x3ec96e();}_0x326b46['complete']?_0x3ec96e():(_0x326b46['addEventListener']('load',_0x47d383),_0x326b46['addEventListener']('error',_0x47d383));});}function timeout(_0x3fbd83){return new Promise(_0x475f78=>setTimeout(_0x475f78,_0x3fbd83));}function nextAnimationFrame(){return new Promise(_0x327799=>_0x176c57['window']['requestAnimationFrame'](()=>_0x327799()));}function createDomRangeOn(_0x5f0ee0){const _0x36825b=_0x176c57['document']['createRange']();return _0x36825b['selectNode'](_0x5f0ee0),_0x36825b;}function createDomRangeIn(_0x917aa6){const _0x481755=_0x176c57['document']['createRange']();return _0x481755['selectNodeContents'](_0x917aa6),_0x481755;}function createDomRange(_0x3579af,_0x11ce81,_0x1bc277){const _0x5cc485=_0x176c57['document']['createRange']();return _0x5cc485['setStart'](_0x3579af,_0x11ce81),_0x5cc485['setEnd'](_0x3579af,_0x1bc277),_0x5cc485;}function createDomRangeMultiNode(_0x2e84e5,_0x413295,_0x407151,_0xff6773){const _0x6a20d6=_0x176c57['document']['createRange']();return _0x6a20d6['setStart'](_0x2e84e5,_0x413295),_0x6a20d6['setEnd'](_0x407151,_0xff6773),_0x6a20d6;}function findPageStarterInfos(_0x55fede,_0x4ad519,_0x19bba4,_0x4272cd,_0x88eb43){const _0x54e8f7=[];for(const [_0x4ce8f2,_0x39b586]of _0x55fede['childNodes']['entries']()){let _0x1299a1=[];isHTMLElement(_0x39b586)&&_0x39b586['offsetParent']&&['static','relative']['includes'](_0x176c57['window']['getComputedStyle'](_0x39b586)['position'])?_0x1299a1=findPageStartersInElementNode(_0x39b586,_0x4ce8f2,_0x4ad519,_0x19bba4,_0x4272cd,_0x88eb43):isText(_0x39b586)&&(_0x1299a1=findPageStartersInTextNode(_0x39b586,_0x4ce8f2,_0x4ad519,_0x19bba4,_0x88eb43)),_0x1299a1['length']&&(_0x54e8f7['push'](..._0x1299a1),_0x4ad519+=_0x1299a1['length']*_0x19bba4,_0x88eb43=!0x1);}return _0x54e8f7;}function findPageStartersInElementNode(_0x2d47d6,_0x1969b9,_0x4b6b92,_0x38a8a4,_0x291149,_0xf0df08){const _0x2b075f=[];if(isPageBreak(_0x2d47d6['previousSibling'])&&(_0x2b075f['push']({'type':'manual','offset':0x0,'path':[_0x1969b9-0x1]}),_0xf0df08=!0x0),'table-row'==_0x176c57['window']['getComputedStyle'](_0x2d47d6)['display']){let _0x30e72c=0x0,_0x23561d=!0x1;for(const _0x24f620 of _0x2d47d6['getClientRects']())_0x30e72c+=_0x24f620['height'],_0x24f620['left']>=_0x4b6b92&&(_0x23561d=!0x0);if(_0x30e72c<_0x291149&&_0x23561d)return _0xf0df08||_0x2b075f['push']({'type':'element','offset':0x0,'path':[_0x1969b9]}),_0x2b075f;}const _0x1e81f6=_0x2d47d6['closest']('figure.image');if(_0x1e81f6&&shouldIgnoreFigure(_0x1e81f6)){const _0x5e8279=_0x176c57['window']['getComputedStyle'](_0x1e81f6)['float'];if('left'==_0x5e8279||'right'==_0x5e8279)return _0x2b075f;}const _0x489367=findPageStarterInfos(_0x2d47d6,_0x4b6b92,_0x38a8a4,_0x291149,_0xf0df08);if(_0x489367['length']){for(const _0x1bcfef of _0x489367)_0x2b075f['push']({'type':_0x1bcfef['type'],'offset':_0x1bcfef['offset'],'textOffset':_0x1bcfef['textOffset'],'path':[_0x1969b9,..._0x1bcfef['path']]}),_0x4b6b92+=_0x38a8a4,_0xf0df08=!0x1;return _0x2b075f;}return _0x2b075f['push'](...findPageStartersInLeafElementNode(_0x2d47d6,_0x1969b9,_0x4b6b92,_0x38a8a4,_0xf0df08)),_0x2b075f;}function findPageStartersInLeafElementNode(_0x3d550f,_0x14103c,_0x4d14fe,_0xc30430,_0x1be4fb){const _0x54194f=[];if('table-cell'==_0x176c57['window']['getComputedStyle'](_0x3d550f)['display'])return[];const _0x161574=[];for(const _0x3d06fb of _0x3d550f['getClientRects']())if(_0x3d06fb['left']>=_0x4d14fe){for(const _0x1017a7 of _0x161574)_0x1017a7['height']+=_0x3d06fb['height'];_0x161574['push']({'height':_0x3d06fb['height']}),_0x4d14fe+=_0xc30430;}for(const _0x33e7a8 of _0x161574)_0x1be4fb||_0x54194f['push']({'type':'element','offset':_0x33e7a8['height'],'textOffset':0x0,'path':[_0x14103c]}),_0x1be4fb=!0x1;return _0x54194f;}function findPageStartersInTextNode(_0x2744e3,_0x20d7fd,_0x11e12f,_0xe9624d,_0x948823){const _0x3a060d=createDomRangeOn(_0x2744e3),_0x7286df=[];let _0x1de24d=0x0;for(const _0x321196 of _0x3a060d['getClientRects']())if(_0x321196['left']>=_0x11e12f){const _0x2aa866=findLastTextOffsetOnPage(_0x2744e3,_0x1de24d,_0x11e12f,_0xe9624d);_0x948823||_0x7286df['push']({'type':'text','path':[_0x20d7fd],'textOffset':_0x2aa866}),_0x1de24d=_0x2aa866,_0x11e12f+=_0xe9624d,_0x948823=!0x1;}return _0x7286df;}function findLastTextOffsetOnPage(_0x23bdbd,_0x567a3f,_0x1ac34d,_0x30d4f2){let _0x14bf6f=_0x567a3f,_0x1f32f4=_0x23bdbd['length'];for(;_0x1f32f4-_0x14bf6f>0x1;){const _0xb15859=Math['ceil']((_0x14bf6f+_0x1f32f4)/0x2);domRangeContainsPageBreak(createDomRange(_0x23bdbd,_0x14bf6f,_0xb15859),_0x1ac34d,_0x30d4f2)?_0x1f32f4=_0xb15859:_0x14bf6f=_0xb15859;}return _0x14bf6f;}function domRangeContainsPageBreak(_0x5c43c2,_0x21308b,_0x190fbf){for(const _0x652df9 of _0x5c43c2['getClientRects']())if(_0x652df9['left']>=_0x21308b&&_0x652df9['left']<_0x21308b+_0x190fbf)return!0x0;return!0x1;}function shouldIgnoreFigure(_0x33be0a){let _0x401e2f=!0x1;const _0x1ac5c3=_0x33be0a['parentElement']['dataset']['rootName'],_0x4f29e8=_0x33be0a['nextElementSibling'],_0x251e93=_0x33be0a['previousElementSibling'],_0x116b7d=_0x4f29e8&&_0x176c57['window']['getComputedStyle'](_0x4f29e8)['float'],_0x52d803=_0x4f29e8&&'ck-fake-selection-container'===_0x4f29e8['className'];return!_0x1ac5c3||_0x4f29e8||_0x251e93||(_0x401e2f=!0x0),_0x1ac5c3&&!_0x251e93&&_0x52d803&&(_0x401e2f=!0x0),_0x1ac5c3&&!_0x251e93&&'none'!==_0x116b7d&&(_0x401e2f=!0x0),!_0x401e2f;}function isHTMLElement(_0xfd70f0){return _0xfd70f0['nodeType']==Node['ELEMENT_NODE'];}function isText(_0x33b65a){return _0x33b65a['nodeType']==Node['TEXT_NODE'];}async function checkLicense$7(_0x482647){const _0x4027c6=_0x4b26e6([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]),_0x18d5fe=window[_0x4b26e6([0x44,0x61,0x74,0x65])][_0x4b26e6([0x6e,0x6f,0x77])](),_0x450452=_0x482647[_0x4b26e6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x13fde8=new window[(_0x4b26e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e1fc8=>{_0x450452[_0x4b26e6([0x6f,0x6e,0x63,0x65])](_0x4b26e6([0x72,0x65,0x61,0x64,0x79]),_0x2e1fc8);}),_0x3930f4={[_0x4b26e6([0x6b,0x74,0x79])]:_0x4b26e6([0x45,0x43]),[_0x4b26e6([0x75,0x73,0x65])]:_0x4b26e6([0x73,0x69,0x67]),[_0x4b26e6([0x63,0x72,0x76])]:_0x4b26e6([0x50,0x2d,0x32,0x35,0x36]),[_0x4b26e6([0x78])]:_0x4b26e6([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]),[_0x4b26e6([0x79])]:_0x4b26e6([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]),[_0x4b26e6([0x61,0x6c,0x67])]:_0x4b26e6([0x45,0x53,0x32,0x35,0x36])},_0x288dcd=_0x450452[_0x4b26e6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b26e6([0x67,0x65,0x74])](_0x4b26e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x1653e4=await(async function(){let _0x41d97b,_0x235416=null,_0x3a16e9=null;try{if(_0x288dcd==_0x4b26e6([0x47,0x50,0x4c]))return _0x4b26e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41d97b=(function(){const _0x2f968d=_0x288dcd[_0x4b26e6([0x73,0x70,0x6c,0x69,0x74])](_0x4b26e6([0x2e]));if(0x3!=_0x2f968d[_0x4b26e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x45a999=_0x2f968d[0x1];return _0x5bdd43(_0x45a999);function _0x5bdd43(_0x3d2cda){const _0x175395=_0xff5c78(_0x3d2cda);return _0x175395&&_0x25ed1b()?_0x175395:null;function _0x25ed1b(){const _0x2af300=_0x175395[_0x4b26e6([0x6a,0x74,0x69])],_0x43ada7=window[_0x4b26e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2af300[_0x4b26e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2af300[_0x4b26e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2949f7={..._0x175395,[_0x4b26e6([0x6a,0x74,0x69])]:_0x2af300[_0x4b26e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2af300[_0x4b26e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2949f7[_0x4b26e6([0x76,0x63])],_0x518551(_0x2949f7)==_0x43ada7;}}}()),!_0x41d97b)return _0x4b26e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x41d97b[_0x4b26e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a16e9=function(_0x2070db,_0x332c05){return new window[(_0x4b26e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ddb4b=>{if(_0x2d9b41())return _0x2ddb4b(_0x4b26e6([0x56,0x61,0x6c,0x69,0x64]));_0xe0e8ea(),_0x450452[_0x4b26e6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b26e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd454da=!0x1;const _0x5de1a7=uid();function _0x3ee4ec(_0x5db487){return!!_0x5db487&&(typeof _0x5db487===_0x4b26e6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5db487===_0x4b26e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5db487[_0x4b26e6([0x74,0x68,0x65,0x6e])]===_0x4b26e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5db487[_0x4b26e6([0x63,0x61,0x74,0x63,0x68])]===_0x4b26e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5975bf(_0x37fffc){_0x4122db(_0x37fffc)[_0x4b26e6([0x74,0x68,0x65,0x6e])](_0x295645=>{if(!_0x295645||_0x295645[_0x4b26e6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b26e6([0x6f,0x6b]))return _0x4b26e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x49d0d3(_0x518551(_0x5de1a7+_0x332c05))!=_0x295645[_0x4b26e6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b26e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b26e6([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b26e6([0x74,0x68,0x65,0x6e])](_0x207df1=>(_0x447ad3(),_0x207df1),()=>{const _0x154244=_0x347f36();return null==_0x154244?(_0x447ad3(),_0x4b26e6([0x56,0x61,0x6c,0x69,0x64])):_0x4b26e6(_0x18d5fe-_0x154244>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b26e6([0x74,0x68,0x65,0x6e])](_0x2ddb4b)[_0x4b26e6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ddb4b(_0x4b26e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1bd199=0x36ee80;function _0x447ad3(){const _0x43ba88=_0x4b26e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x49d0d3(_0x518551(_0x2070db)),_0x11125f=_0xdfbf50(_0x49d0d3(window[_0x4b26e6([0x4d,0x61,0x74,0x68])][_0x4b26e6([0x63,0x65,0x69,0x6c])](_0x18d5fe/_0x1bd199)));window[_0x4b26e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b26e6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43ba88,_0x11125f);}function _0x347f36(){const _0x72ea91=_0x4b26e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x49d0d3(_0x518551(_0x2070db)),_0x359e53=window[_0x4b26e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b26e6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x72ea91);return _0x359e53?window[_0x4b26e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdfbf50(_0x359e53),0x10)*_0x1bd199:null;}function _0x4122db(_0x341d0f){return new window[(_0x4b26e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53b01f,_0x30c91a)=>{_0x341d0f[_0x4b26e6([0x74,0x68,0x65,0x6e])](_0x53b01f,_0x30c91a),window[_0x4b26e6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30c91a,0x1d4c0);});}}_0x450452[_0x4b26e6([0x6f,0x6e])](_0x4b26e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x398c2e,_0x58cc0b)=>{if(_0x58cc0b[0x0]!=_0x2070db)return _0x2ddb4b(_0x4b26e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x58cc0b[0x1]={..._0x58cc0b[0x1],[_0x4b26e6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5de1a7};},{[_0x4b26e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b26e6([0x68,0x69,0x67,0x68])}),_0x450452[_0x4b26e6([0x6f,0x6e])](_0x4b26e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x304a62=>{_0x3ee4ec(_0x304a62[_0x4b26e6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd454da=!0x0,_0x5975bf(_0x304a62[_0x4b26e6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b26e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b26e6([0x6c,0x6f,0x77])}),_0x13fde8[_0x4b26e6([0x74,0x68,0x65,0x6e])](()=>{_0xd454da||_0x2ddb4b(_0x4b26e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2d9b41(){return _0x450452[_0x4b26e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b26e6([0x76,0x69,0x65,0x77])][_0x4b26e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b26e6([0x61,0x75,0x74,0x6f]);}function _0xe0e8ea(){_0x450452[_0x4b26e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b26e6([0x76,0x69,0x65,0x77])][_0x4b26e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b26e6([0x61,0x75,0x74,0x6f]);}}(_0x41d97b[_0x4b26e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41d97b[_0x4b26e6([0x6a,0x74,0x69])]));const _0x538511=await(async function(){let _0x3f15de=!0x0;try{const _0x8552d7=_0x288dcd[_0x4b26e6([0x73,0x70,0x6c,0x69,0x74])](_0x4b26e6([0x2e])),[_0x517ed5,_0xaffc62,_0x34fdae]=_0x8552d7;return _0x4c3f7c(_0x517ed5),await _0x24f474(_0x517ed5,_0xaffc62,_0x34fdae),_0x3f15de;}catch{return!0x1;}function _0x4c3f7c(_0x4af332){const _0x1ca66f=_0xff5c78(_0x4af332);_0x1ca66f&&_0x1ca66f[_0x4b26e6([0x61,0x6c,0x67])]==_0x4b26e6([0x45,0x53,0x32,0x35,0x36])||(_0x3f15de=!0x1);}async function _0x24f474(_0x43b105,_0x5e8bf7,_0x5b0420){const _0x1f1c2a=window[_0x4b26e6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b26e6([0x66,0x72,0x6f,0x6d])](_0x593176(_0x5b0420),_0xb455c9=>_0xb455c9[_0x4b26e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ac178=new window[(_0x4b26e6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b26e6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43b105+_0x4b26e6([0x2e])+_0x5e8bf7),_0x3e7496=window[_0x4b26e6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b26e6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3e7496)return;const _0x5af62c=await _0x3e7496[_0x4b26e6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b26e6([0x6a,0x77,0x6b]),_0x3930f4,{[_0x4b26e6([0x6e,0x61,0x6d,0x65])]:_0x4b26e6([0x45,0x43,0x44,0x53,0x41]),[_0x4b26e6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b26e6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b26e6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3e7496[_0x4b26e6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b26e6([0x6e,0x61,0x6d,0x65])]:_0x4b26e6([0x45,0x43,0x44,0x53,0x41]),[_0x4b26e6([0x68,0x61,0x73,0x68])]:{[_0x4b26e6([0x6e,0x61,0x6d,0x65])]:_0x4b26e6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5af62c,_0x1f1c2a,_0x2ac178)||(_0x3f15de=!0x1);}}());return _0x538511?(function(){const _0x5931af=_0x41d97b[_0x4b26e6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5931af)return!0x1;if(_0x5931af[_0x4b26e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b26e6([0x2a])))return!0x0;if(_0x5931af[_0x4b26e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b26e6([0x50,0x41,0x47])))return!0x0;return!0x1;}())?(function(){const _0x4ae694=[_0x4b26e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b26e6([0x74,0x72,0x69,0x61,0x6c])][_0x4b26e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41d97b[_0x4b26e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18d5fe/0x3e8:0x69cb0e80;return _0x41d97b[_0x4b26e6([0x65,0x78,0x70])]<_0x4ae694;}())?_0x4b26e6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x272fbf=_0x41d97b[_0x4b26e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x272fbf||0x0==_0x272fbf[_0x4b26e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3fe10c}=new URL(window[_0x4b26e6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x272fbf[_0x4b26e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fe10c))return!0x0;const _0x2246f1=_0x3fe10c[_0x4b26e6([0x73,0x70,0x6c,0x69,0x74])](_0x4b26e6([0x2e]));return _0x272fbf[_0x4b26e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37684a=>_0x37684a[_0x4b26e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b26e6([0x2a])))[_0x4b26e6([0x6d,0x61,0x70])](_0x302b33=>_0x302b33[_0x4b26e6([0x73,0x70,0x6c,0x69,0x74])](_0x4b26e6([0x2e])))[_0x4b26e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x355479=>_0x355479[_0x4b26e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2246f1[_0x4b26e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b26e6([0x6d,0x61,0x70])](_0x542a71=>Array(_0x2246f1[_0x4b26e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x542a71[_0x4b26e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b26e6([0x66,0x69,0x6c,0x6c])](_0x542a71[0x0]===_0x4b26e6([0x2a])?_0x4b26e6([0x2a]):'')[_0x4b26e6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x542a71))[_0x4b26e6([0x73,0x6f,0x6d,0x65])](_0x46a5f5=>_0x2246f1[_0x4b26e6([0x65,0x76,0x65,0x72,0x79])]((_0x4e7c29,_0x4ff3f6)=>_0x46a5f5[_0x4ff3f6]===_0x4e7c29||_0x46a5f5[_0x4ff3f6]===_0x4b26e6([0x2a])));}())?(_0x41d97b[_0x4b26e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b26e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x235416=function(_0x47bb34){const _0x3c4b5a=new window[(_0x4b26e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11786d=>setTimeout(_0x11786d,0x93ecc)),_0x48a4b5=_0x13fde8[_0x4b26e6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b26e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4020d8=>{let _0x1613e2=0x0;_0x450452[_0x4b26e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b26e6([0x6f,0x6e])](_0x4b26e6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2f9c66,_0x5ba8b4)=>{_0x5ba8b4[0x0][_0x4b26e6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1613e2++,0x5e8==_0x1613e2&&(_0x4020d8(),_0x2f9c66[_0x4b26e6([0x6f,0x66,0x66])]());});})),_0x2bfbaf=[_0x3c4b5a,_0x48a4b5];return window[_0x4b26e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b26e6([0x72,0x61,0x63,0x65])](_0x2bfbaf)[_0x4b26e6([0x74,0x68,0x65,0x6e])](()=>_0x47bb34);}(_0x4b26e6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x235416&&_0x3a16e9)return new window[(_0x4b26e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c3154,_0x734095)=>{_0x235416[_0x4b26e6([0x74,0x68,0x65,0x6e])](_0x3c3154,_0x734095),_0x3a16e9[_0x4b26e6([0x74,0x68,0x65,0x6e])](_0x1089fd=>{_0x1089fd!=_0x4b26e6([0x56,0x61,0x6c,0x69,0x64])&&_0x3c3154(_0x1089fd);},_0x734095);});return _0x235416||_0x3a16e9||_0x4b26e6([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4b26e6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b26e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b26e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4b26e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0xff5c78(_0x53edd3){return _0x53edd3[_0x4b26e6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b26e6([0x65,0x79]))?JSON[_0x4b26e6([0x70,0x61,0x72,0x73,0x65])](_0x593176(_0x53edd3)):null;}function _0x593176(_0x6aae77){return window[_0x4b26e6([0x61,0x74,0x6f,0x62])](_0x6aae77[_0x4b26e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b26e6([0x2b]))[_0x4b26e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b26e6([0x2f])));}function _0x518551(_0x128158){let _0xe98b21=0x1505;function _0x2dd527(_0x46ec56){for(let _0x4105e9=0x0;_0x4105e9<_0x46ec56[_0x4b26e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4105e9++){const _0x997f98=_0x46ec56[_0x4b26e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4105e9);_0xe98b21=(_0xe98b21<<0x5)+_0xe98b21+_0x997f98,_0xe98b21&=_0xe98b21;}}return function _0x1a1348(_0x34120f){Array[_0x4b26e6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34120f)?_0x34120f[_0x4b26e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a1348):_0x34120f&&typeof _0x34120f==_0x4b26e6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b26e6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34120f)[_0x4b26e6([0x73,0x6f,0x72,0x74])]()[_0x4b26e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x205862,_0x129948])=>{_0x2dd527(_0x205862),_0x1a1348(_0x129948);}):_0x2dd527(window[_0x4b26e6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34120f));}(_0x128158),_0xe98b21>>>0x0;}function _0x49d0d3(_0x283cce){return _0x283cce[_0x4b26e6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b26e6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b26e6([0x30]));}function _0xdfbf50(_0x190c0e){return _0x190c0e[_0x4b26e6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b26e6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b26e6([0x6a,0x6f,0x69,0x6e])]('');}function _0x20cb2e(){}function _0x4b26e6(_0x93a41){return _0x93a41['map'](_0x26f470=>String['fromCharCode'](_0x26f470))['join']('');}!function(_0x44e334){const _0x3ae130=(function(){const _0x1fd253=window[_0x4b26e6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b26e6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b26e6([0x6e,0x6f,0x77])]())[_0x4b26e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b26e6([0x2e]),'');let _0x4b29bc=_0x4b26e6([0x49]);for(let _0xc153a=0x0;_0xc153a<_0x1fd253[_0x4b26e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc153a+=0x2){let _0x4f6f51=window[_0x4b26e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fd253[_0x4b26e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc153a,_0xc153a+0x2));_0x4f6f51>=_0x4027c6[_0x4b26e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f6f51-=_0x4027c6[_0x4b26e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b29bc+=_0x4027c6[_0x4f6f51];}return _0x4b29bc;}());_0x450452[_0x3ae130]=_0x4b26e6([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x44e334,_0x44e334!=_0x4b26e6([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x13fde8,_0x450452[_0x4b26e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b26e6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20cb2e,_0x450452[_0x4b26e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b26e6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20cb2e,_0x450452[_0x4b26e6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b26e6([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x1653e4);}const toPx=/* #__PURE__ -- @preserve */
toUnit('px');let LineView$1=class extends View{constructor(){super();const _0x12d89d=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x12d89d['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x12d89d['if']('isVisible','ck-hidden',_0x2b0ddf=>!_0x2b0ddf)],'style':{'left':_0x12d89d['to']('left',_0x39c8c4=>toPx(_0x39c8c4)),'top':_0x12d89d['to']('top',_0x18c2e2=>toPx(_0x18c2e2)),'width':_0x12d89d['to']('width',_0x20a080=>toPx(_0x20a080))}}});}};class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x194042){this['_viewCollection']=_0x194042['ui']['view']['body'];}['destroy'](){for(const _0x3b4a88 of this['_hiddenLines'])_0x3b4a88['destroy']();}['cleanLines'](){for(const _0x2443df of this['_visibleLines'])_0x2443df['isVisible']=!0x1,this['_hiddenLines']['add'](_0x2443df);this['_visibleLines']['clear']();}['showLine'](_0x435c39,_0x47c939,_0x4e3aa7,_0x43a703){let _0x5efa83;this['_hiddenLines']['size']?(_0x5efa83=first(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x5efa83)):_0x5efa83=new LineView$1(),_0x5efa83['set']({'pageNumber':_0x43a703,'left':_0x435c39,'top':_0x47c939,'width':_0x4e3aa7}),_0x5efa83['isVisible']=!0x0,this['_viewCollection']['has'](_0x5efa83)||this['_viewCollection']['add'](_0x5efa83),this['_visibleLines']['add'](_0x5efa83);}['setViewCollection'](_0x2f4c7e){for(const _0x920f9 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x920f9)&&this['_viewCollection']['remove'](_0x920f9);this['_viewCollection']=_0x2f4c7e;}}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',(_0x387264,_0x38fd6a,_0x40c4cd)=>{_0x40c4cd||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS,_0x40c4cd);});}['destroy'](){this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x1018ea){if(!this['isEnabled'])return;const _0x15c6d3=_0x1018ea>0x1?this['_getPageBreakLineOffset'](_0x1018ea-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x15c6d3-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x658ae['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x3aecea=this['editor'],_0x26df5a=this['_getAttachedDomRoot']();_0x26df5a?(this['_scrollableEditingRootDomAncestor']&&_0x3aecea['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=findScrollableElement(_0x26df5a),_0x3aecea['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x587747(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x3aecea['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x56a35f=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x56a35f['ui']['view']['listenTo'](_0x176c57['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x56a35f['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x1c94e6 of this['editor']['editing']['view']['domRoots']['values']())if(_0x1c94e6['ownerDocument']['body']['contains'](_0x1c94e6))return _0x1c94e6;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0xafb29f=this['_getAttachedDomRoot'](),_0x446288=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0xafb29f||0x1==_0x446288['length'])return void(this['pageNumber']=0x1);const _0x12a3d4=new Rect(_0xafb29f)['excludeScrollbarsAndBorders'](),_0x5d7bac=new Rect(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x2c6614=_0x5d7bac['top']+_0x5d7bac['height']/0x3;let _0x30e558=!0x1;const _0x36f10=[];for(let _0x557dc0=0x1;_0x557dc0<_0x446288['length'];_0x557dc0++){const _0x3978cd=this['_getPageBreakLineOffset'](_0x557dc0,_0x5d7bac);if(!_0x3978cd)continue;const _0x4c37a8=_0x5d7bac['top']+_0x3978cd-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x36f10['push']({'pageOffsetTop':_0x4c37a8,'domRootRect':_0x12a3d4,'domScrollableRect':_0x5d7bac,'pageNumber':_0x557dc0}),_0x4c37a8>_0x2c6614&&!_0x30e558&&(this['pageNumber']=_0x557dc0,_0x30e558=!0x0);}this['_renderPageBreakLines'](_0x36f10),_0x30e558||(this['pageNumber']=_0x446288['length']);}['_renderPageBreakLines'](_0x5b28b7){const {scrollX:_0x49cbe1,scrollY:_0x1c74ba}=_0x176c57['window'];if(_0x5b28b7['length']){for(const {domScrollableRect:_0x9cbb2d,pageOffsetTop:_0x1ed38f,domRootRect:_0x91fee1,pageNumber:_0x59c1c4}of _0x5b28b7)_0x9cbb2d['top']<_0x1ed38f&&_0x1ed38f<_0x9cbb2d['bottom']&&this['linesRepository']['showLine'](_0x91fee1['left']+_0x49cbe1,_0x1ed38f+_0x1c74ba,_0x91fee1['width'],_0x59c1c4+0x1);}}['_getPageBreakLineOffset'](_0x319f57,_0x29c811=null){const _0x57665a=this['_paginationLookupPlugin']['pageBreaks'][_0x319f57]['offset'];return _0x57665a?(_0x29c811||(_0x29c811=new Rect(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x57665a-_0x29c811['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x5e10ec,_0x3b73a4=!0x0){const _0x154a97=this['editor']['editing']['view'];_0x154a97['change'](_0x383dea=>{for(const _0xa7fed2 of _0x154a97['document']['roots'])_0x3b73a4?_0x383dea['addClass'](_0x5e10ec,_0xa7fed2):_0x383dea['removeClass'](_0x5e10ec,_0xa7fed2);});}}function findScrollableElement(_0x259788){let _0x565856=_0x259788;do{_0x565856=_0x565856['parentElement'];const _0x2c1486=_0x176c57['window']['getComputedStyle'](_0x565856)['overflowY'];if('auto'==_0x2c1486||'scroll'==_0x2c1486)break;}while('BODY'!=_0x565856['tagName']);return _0x565856;}function getTranslation$7(_0x14ea75,_0x5fc17c,..._0x5a748c){const t=_0x14ea75['t'];switch(_0x5fc17c){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)',..._0x5a748c);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 _0x5fc17c;}}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 _0x41c437=this['editor']['plugins']['get']('Pagination'),_0x54d0dd=this['editor']['plugins']['get'](PaginationLookup),_0x249a2d=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x41c437),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x249a2d),this['listenTo'](_0x54d0dd,'change:pageBreaks',(_0x4aabb2,_0xa77499,_0x4be733,_0xf4f80c)=>{this['totalPages']=_0x4be733['length'],this['_updatePageBreakMarkers'](_0x4be733,_0xf4f80c);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x541e95=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x33943a;for(const _0x449b90 in _0x541e95){const _0x444a75=_0x449b90,_0x486818=_0x541e95[_0x444a75];if('paginationLicenseKeyValid'==_0x486818||'paginationLicenseKeyInvalid'==_0x486818||'paginationLicenseKeyExpired'==_0x486818||'paginationLicenseKeyDomainLimit'==_0x486818||'paginationLicenseKeyNotAllowed'==_0x486818||'paginationLicenseKeyEvaluationLimit'==_0x486818||'paginationLicenseKeyUsageLimit'==_0x486818){delete _0x541e95[_0x444a75],_0x33943a=_0x486818,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x33943a&&_0x541e95['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x33943a&&_0x541e95['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x33943a&&_0x541e95['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x33943a&&_0x541e95['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x33943a&&_0x541e95['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x33943a&&_0x541e95['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x11a1a6){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x11a1a6));}['moveSelectionToPage'](_0x2f3cc2){if(!this['isEnabled'])return;const _0xfba549=this['editor'],_0x310233=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x2f3cc2-0x1];_0x310233&&_0xfba549['model']['change'](_0x3b6c74=>{switch(_0x310233['type']){case'manual':{const _0x505fad=_0xfba549['model']['schema']['getNearestSelectionRange'](_0x310233['modelRange']['end'],'forward');_0x3b6c74['setSelection'](_0x505fad);break;}case'element':{const _0x1abd1c=_0xfba549['model']['schema']['getNearestSelectionRange'](_0x310233['modelRange']['start'],'forward');_0x3b6c74['setSelection'](_0x1abd1c);break;}case'text':{const _0x2bb821=_0x310233['modelRange']['start'];if(_0x2bb821['textNode']&&'\x20'===_0x2bb821['textNode']['data'][_0x2bb821['offset']]){const _0x51f5e6=_0x3b6c74['createPositionAt'](_0x2bb821['parent'],_0x2bb821['offset']+0x1);_0x3b6c74['setSelection'](_0x51f5e6);}else _0x3b6c74['setSelection'](_0x310233['modelRange']);}}_0xfba549['editing']['view']['focus']();});}['goToNextPage'](){const _0x1afa8a=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x1afa8a),this['scrollToPage'](_0x1afa8a);}['goToPreviousPage'](){const _0x153329=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x153329),this['scrollToPage'](_0x153329);}['_updatePageBreakMarkers'](_0x176efb,_0x5a4f5c){const _0x93b076=this['editor']['model'];this['isEnabled']&&_0x93b076['change'](_0x451e4e=>{for(let _0x56a39e=0x1;_0x56a39e<_0x176efb['length'];_0x56a39e++){const _0x3d28be=_0x176efb[_0x56a39e]['modelRange'],_0x26230e='pagination:'+(_0x56a39e+0x1);_0x93b076['markers']['has'](_0x26230e)?_0x451e4e['updateMarker'](_0x26230e,{'range':_0x3d28be}):_0x451e4e['addMarker'](_0x26230e,{'range':_0x3d28be,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x183576=_0x176efb['length'];_0x183576<_0x5a4f5c['length'];_0x183576++){const _0x53d702='pagination:'+(_0x183576+0x1);_0x93b076['markers']['has'](_0x53d702)&&_0x451e4e['removeMarker'](_0x53d702);}});}['_setUpDataDowncastConversion'](){const _0x270044='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x216a1d=>{_0x216a1d['on']('addMarker:'+_0x270044,(_0x35d613,{markerRange:_0x636030,markerName:_0x327ea8},_0x49cc34)=>{if(!_0x49cc34['options']['pagination'])return;if(!_0x49cc34['consumable']['consume'](_0x636030,_0x35d613['name']))return;const _0x2161ff=_0x636030['getContainedElement']();let _0x321df8=_0x2161ff?_0x49cc34['mapper']['toViewElement'](_0x2161ff):null;if(!_0x321df8){const _0x27ffc7=_0x636030['start'];if(_0x49cc34['schema']['checkChild'](_0x27ffc7,'$text')){const _0x280c4f=_0x49cc34['mapper']['toViewPosition'](_0x27ffc7);_0x321df8=_0x49cc34['writer']['createContainerElement']('span'),_0x321df8['getFillerOffset']=()=>null,_0x49cc34['writer']['insert'](_0x280c4f,_0x321df8);}else{const _0x3a284c=_0x27ffc7['nodeAfter'];_0x321df8=_0x49cc34['mapper']['toViewElement'](_0x3a284c);}}for(;_0x321df8['parent']!==_0x321df8['root']&&0x0===_0x321df8['index'];)_0x321df8=_0x321df8['parent'];const _0x27a650=_0x327ea8['substring'](0xb);_0x321df8['hasClass']('page-break')||(_0x49cc34['writer']['setStyle']('page-break-before','always',_0x321df8),_0x49cc34['writer']['setAttribute']('data-pagination-page',_0x27a650,_0x321df8),_0x49cc34['mapper']['bindElementToMarker'](_0x321df8,_0x327ea8)),_0x35d613['stop']();});});}['_setupKeystrokes'](){const _0x17f163=this['editor'];_0x17f163['keystrokes']['set']('Shift+Pageup',(_0x287a83,_0x3ba8b)=>{this['goToPreviousPage'](),_0x3ba8b();}),_0x17f163['keystrokes']['set']('Shift+Pagedown',(_0x20e833,_0x4c2f27)=>{this['goToNextPage'](),_0x4c2f27();}),_0x17f163['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':getTranslation$7(_0x17f163['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':getTranslation$7(_0x17f163['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':getTranslation$7(_0x17f163['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x6ae4c7){return _0x6ae4c7<0x1&&(_0x6ae4c7=0x1),_0x6ae4c7>this['totalPages']&&(_0x6ae4c7=this['totalPages']),_0x6ae4c7;}}class PageNavigatorView extends View{['pageNumberView'];constructor(_0x255146){super(_0x255146);const _0x3b5591=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new InputNumberView(_0x255146,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x424b6d=>getTranslation$7(_0x255146,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x424b6d)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x1c50b7=>!_0x1c50b7),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x3b5591['if']('isEnabled','ck-disabled',_0x2756ee=>!_0x2756ee)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x3b5591['to']('totalPages')}]}]});}['render'](){super['render']();const _0x1eaec5=this['pageNumberView']['element'],_0xa97d42=_0x3c8df1=>{this['pageNumberView']['element']['value']=String(_0x3c8df1);};_0xa97d42(this['pageNumber']),this['on']('change:pageNumber',(_0x511e2e,_0x522c95,_0x490647)=>{_0xa97d42(_0x490647);}),this['listenTo'](_0x1eaec5,'keydown',(_0x1c5ed4,_0x3552f0)=>{if('ArrowUp'===_0x3552f0['key']||'ArrowDown'===_0x3552f0['key'])return void _0x3552f0['stopPropagation']();if(_0x3552f0['keyCode']!==keyCodes['enter'])return;_0x3552f0['preventDefault']();const _0x347f8a=_0x1eaec5['valueAsNumber'];Number['isNaN'](_0x347f8a)?_0x1eaec5['value']=String(this['pageNumber']):(_0x1eaec5['checkValidity']()?this['pageNumber']=_0x347f8a:_0x347f8a>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x1eaec5['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x1eaec5['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x1eaec5,'blur',()=>{_0x1eaec5['value']=String(this['pageNumber']);}),this['listenTo'](_0x1eaec5,'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 _0x385f79=this['editor'],_0x465eef=_0x385f79['plugins']['get']('PaginationEditing');_0x385f79['ui']['componentFactory']['add']('pageNavigation',_0x32adc5=>{const _0x54a795=new PageNavigatorView(_0x32adc5);return _0x54a795['bind']('pageNumber')['to'](_0x465eef),_0x54a795['bind']('totalPages')['to'](_0x465eef),_0x54a795['bind']('isEnabled')['to'](_0x465eef),_0x54a795['on']('navigation',(_0x235d9e,_0x5995b0)=>{_0x465eef['moveSelectionToPage'](_0x5995b0),_0x465eef['scrollToPage'](_0x5995b0);}),_0x54a795;}),_0x385f79['ui']['componentFactory']['add']('nextPage',_0x1e7bf6=>{const _0x39184c=new ButtonView(_0x1e7bf6);return _0x39184c['isEnabled']=!0x0,_0x39184c['label']=getTranslation$7(_0x385f79['locale'],'Go\x20to\x20next\x20page'),_0x39184c['icon']=IconArrowDown,_0x39184c['tooltip']=!0x0,_0x39184c['keystroke']='Shift+PageDown',_0x39184c['bind']('isEnabled')['to'](_0x465eef),this['listenTo'](_0x39184c,'execute',()=>{_0x465eef['goToNextPage']();}),_0x39184c;}),_0x385f79['ui']['componentFactory']['add']('previousPage',_0x3859eb=>{const _0x2c96aa=new ButtonView(_0x3859eb);return _0x2c96aa['isEnabled']=!0x0,_0x2c96aa['label']=getTranslation$7(_0x385f79['locale'],'Go\x20to\x20previous\x20page'),_0x2c96aa['icon']=IconArrowUp,_0x2c96aa['tooltip']=!0x0,_0x2c96aa['keystroke']='Shift+PageUp',_0x2c96aa['bind']('isEnabled')['to'](_0x465eef),this['listenTo'](_0x2c96aa,'execute',()=>{_0x465eef['goToPreviousPage']();}),_0x2c96aa;});}}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(_0x414bee){super(_0x414bee),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x536914=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x536914),this['bind']('totalPages')['to'](_0x536914),_0x658ae['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x5bf258){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x5bf258);}}const MS_EXCEL_META_REGEX=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function isMSExcelContent(_0x3d0d83){return MS_EXCEL_META_REGEX['test'](_0x3d0d83);}const CSS_SELECTOR_REGEX=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function getMatchingStyles(_0x3b6ecf,_0x30ed2e){const _0x15e0d7=new Map();for(const [_0x367657,_0x28fda9]of _0x30ed2e){if(!_0x367657['tagName']&&!_0x367657['className'])continue;const _0x3f3557=!_0x367657['tagName']||_0x3b6ecf['name']===_0x367657['tagName'],_0x61c863=!_0x367657['className']||_0x3b6ecf['hasClass'](_0x367657['className']);_0x3f3557&&_0x61c863&&_0x15e0d7['set'](_0x367657,_0x28fda9);}return _0x15e0d7;}function extractStyles(_0x1faee9){const _0x2d59b5={};for(const _0x59a494 of _0x1faee9)for(const _0x26b593 of _0x59a494['cssRules'])if(_0x26b593 instanceof CSSStyleRule){const _0x37bfc2=parseCSSStyleDeclaration(_0x26b593['style']);_0x2d59b5[_0x26b593['selectorText']]=Object['assign']({},_0x2d59b5[_0x26b593['selectorText']]||{},_0x37bfc2);}return _0x2d59b5;}function expandStyles(_0x4bf410){const _0x5c9c43=new Map();for(const _0x1bb422 in _0x4bf410){const _0x4aaad9=parseCSSSelector(_0x1bb422),_0x30ccec=_0x4bf410[_0x1bb422];for(const _0x1dcc3b of _0x4aaad9)_0x5c9c43['set'](_0x1dcc3b,_0x30ccec);}return _0x5c9c43;}function parseCSSStyleDeclaration(_0x511e51){const _0x23d7e9={};for(let _0x43d2f8=0x0;_0x43d2f8<_0x511e51['length'];_0x43d2f8++){const _0x4c9ea3=_0x511e51[_0x43d2f8],_0x216adf=_0x511e51['getPropertyValue'](_0x4c9ea3);'initial'!==_0x216adf&&(_0x23d7e9[_0x4c9ea3]=_0x216adf);}return _0x23d7e9;}function parseCSSSelector(_0x4962d8){const _0x5c408c=_0x4962d8['split'](',')['map'](_0x4306b0=>_0x4306b0['trim']()),_0x35dbec=[];for(const _0x15e8ff of _0x5c408c){const _0x448df1=CSS_SELECTOR_REGEX['exec'](_0x15e8ff);_0x448df1&&_0x35dbec['push'](_0x448df1['groups']);}return _0x35dbec;}function flattenStyleDefinitions(_0x54a912){const _0x3210cc={};for(const _0x172a67 of _0x54a912)Object['assign'](_0x3210cc,_0x172a67);return _0x3210cc;}class MSOfficeStylesInliner extends PasteFromOfficeMSWordNormalizer{['execute'](_0x154fd){const {body:_0x246572,styles:_0x59867f}=_0x154fd['_parsedData'],_0x3a0b4d=new ViewUpcastWriter(_0x246572['document']),_0x76c89b=_0x3a0b4d['createRangeIn'](_0x246572),_0x1d108=expandStyles(extractStyles(_0x59867f));for(const _0x2874e0 of _0x76c89b){if('elementStart'!==_0x2874e0['type'])continue;const _0x287cdd=getMatchingStyles(_0x2874e0['item'],_0x1d108);if(_0x287cdd['size']){const _0x572725=flattenStyleDefinitions(Array['from'](_0x287cdd['values']()));for(const _0x3a517f in _0x572725){const _0x26e804=_0x2874e0['item'];_0x26e804['hasStyle'](_0x3a517f)||_0x3a0b4d['setStyle'](_0x3a517f,_0x572725[_0x3a517f],_0x26e804);}}}_0x154fd['content']=_0x246572;}['isActive'](_0x1752a4){return super['isActive'](_0x1752a4)||isMSExcelContent(_0x1752a4);}}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 _0x59f731=this['editor'],_0x1fa894=_0x59f731['plugins']['get']('ClipboardPipeline'),_0x2212e7=_0x59f731['editing']['view']['document'],_0x29cfb3=new MSOfficeStylesInliner(_0x2212e7);_0x1fa894['on']('inputTransformation',(_0xfb7ca,_0x385d80)=>{const _0x12ee81=_0x385d80['dataTransfer']['getData']('text/html');_0x29cfb3['isActive'](_0x12ee81)&&(_0x385d80['_parsedData']||(_0x385d80['_parsedData']=parsePasteOfficeHtml(_0x12ee81,_0x2212e7['stylesProcessor'])),_0x29cfb3['execute'](_0x385d80));},{'priority':priorities['get']('high')+0xb});}['afterInit'](){checkLicense$6(this);}}async function checkLicense$6(_0x19f0d8){const _0x9501a3=_0xd32d7e([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]),_0x2ced22=window[_0xd32d7e([0x44,0x61,0x74,0x65])][_0xd32d7e([0x6e,0x6f,0x77])](),_0x4c7857=_0x19f0d8[_0xd32d7e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x49f952=new window[(_0xd32d7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fd1d4=>{_0x4c7857[_0xd32d7e([0x6f,0x6e,0x63,0x65])](_0xd32d7e([0x72,0x65,0x61,0x64,0x79]),_0x3fd1d4);}),_0x4ff0e3={[_0xd32d7e([0x6b,0x74,0x79])]:_0xd32d7e([0x45,0x43]),[_0xd32d7e([0x75,0x73,0x65])]:_0xd32d7e([0x73,0x69,0x67]),[_0xd32d7e([0x63,0x72,0x76])]:_0xd32d7e([0x50,0x2d,0x32,0x35,0x36]),[_0xd32d7e([0x78])]:_0xd32d7e([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]),[_0xd32d7e([0x79])]:_0xd32d7e([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]),[_0xd32d7e([0x61,0x6c,0x67])]:_0xd32d7e([0x45,0x53,0x32,0x35,0x36])},_0x5cd801=_0x4c7857[_0xd32d7e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd32d7e([0x67,0x65,0x74])](_0xd32d7e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x44a609=await(async function(){let _0x13a941,_0x547b9c=null,_0x132dd3=null;try{if(_0x5cd801==_0xd32d7e([0x47,0x50,0x4c]))return _0xd32d7e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x13a941=(function(){const _0x48f615=_0x5cd801[_0xd32d7e([0x73,0x70,0x6c,0x69,0x74])](_0xd32d7e([0x2e]));if(0x3!=_0x48f615[_0xd32d7e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5dabc0=_0x48f615[0x1];return _0x335275(_0x5dabc0);function _0x335275(_0x192cba){const _0x5baab8=_0x3be2e9(_0x192cba);return _0x5baab8&&_0x4e538b()?_0x5baab8:null;function _0x4e538b(){const _0x315833=_0x5baab8[_0xd32d7e([0x6a,0x74,0x69])],_0x51e0b7=window[_0xd32d7e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x315833[_0xd32d7e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x315833[_0xd32d7e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x56afe4={..._0x5baab8,[_0xd32d7e([0x6a,0x74,0x69])]:_0x315833[_0xd32d7e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x315833[_0xd32d7e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x56afe4[_0xd32d7e([0x76,0x63])],_0x21a5b1(_0x56afe4)==_0x51e0b7;}}}()),!_0x13a941)return _0xd32d7e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x13a941[_0xd32d7e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x132dd3=function(_0x1aa85f,_0x5b0344){return new window[(_0xd32d7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13b5c4=>{if(_0x26b18d())return _0x13b5c4(_0xd32d7e([0x56,0x61,0x6c,0x69,0x64]));_0x599a8c(),_0x4c7857[_0xd32d7e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd32d7e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x46b497=!0x1;const _0x3c0205=uid();function _0x5c01ed(_0x30bd4e){return!!_0x30bd4e&&(typeof _0x30bd4e===_0xd32d7e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30bd4e===_0xd32d7e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30bd4e[_0xd32d7e([0x74,0x68,0x65,0x6e])]===_0xd32d7e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30bd4e[_0xd32d7e([0x63,0x61,0x74,0x63,0x68])]===_0xd32d7e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b8df7(_0x3cb0a6){_0x32d06d(_0x3cb0a6)[_0xd32d7e([0x74,0x68,0x65,0x6e])](_0x165a41=>{if(!_0x165a41||_0x165a41[_0xd32d7e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd32d7e([0x6f,0x6b]))return _0xd32d7e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x450faf(_0x21a5b1(_0x3c0205+_0x5b0344))!=_0x165a41[_0xd32d7e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd32d7e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd32d7e([0x56,0x61,0x6c,0x69,0x64]);})[_0xd32d7e([0x74,0x68,0x65,0x6e])](_0x35c4bf=>(_0x58c008(),_0x35c4bf),()=>{const _0x114a96=_0x3736a5();return null==_0x114a96?(_0x58c008(),_0xd32d7e([0x56,0x61,0x6c,0x69,0x64])):_0xd32d7e(_0x2ced22-_0x114a96>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd32d7e([0x74,0x68,0x65,0x6e])](_0x13b5c4)[_0xd32d7e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13b5c4(_0xd32d7e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24c742=0x36ee80;function _0x58c008(){const _0x2fe079=_0xd32d7e([0x6c,0x6c,0x63,0x74,0x2d])+_0x450faf(_0x21a5b1(_0x1aa85f)),_0x4f0c2c=_0x140b36(_0x450faf(window[_0xd32d7e([0x4d,0x61,0x74,0x68])][_0xd32d7e([0x63,0x65,0x69,0x6c])](_0x2ced22/_0x24c742)));window[_0xd32d7e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd32d7e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fe079,_0x4f0c2c);}function _0x3736a5(){const _0x5b5d90=_0xd32d7e([0x6c,0x6c,0x63,0x74,0x2d])+_0x450faf(_0x21a5b1(_0x1aa85f)),_0x31c590=window[_0xd32d7e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd32d7e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b5d90);return _0x31c590?window[_0xd32d7e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x140b36(_0x31c590),0x10)*_0x24c742:null;}function _0x32d06d(_0x2333d0){return new window[(_0xd32d7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x331e43,_0x339d68)=>{_0x2333d0[_0xd32d7e([0x74,0x68,0x65,0x6e])](_0x331e43,_0x339d68),window[_0xd32d7e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x339d68,0x1d4c0);});}}_0x4c7857[_0xd32d7e([0x6f,0x6e])](_0xd32d7e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12208d,_0x5dd636)=>{if(_0x5dd636[0x0]!=_0x1aa85f)return _0x13b5c4(_0xd32d7e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5dd636[0x1]={..._0x5dd636[0x1],[_0xd32d7e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c0205};},{[_0xd32d7e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd32d7e([0x68,0x69,0x67,0x68])}),_0x4c7857[_0xd32d7e([0x6f,0x6e])](_0xd32d7e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x131e32=>{_0x5c01ed(_0x131e32[_0xd32d7e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x46b497=!0x0,_0x2b8df7(_0x131e32[_0xd32d7e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd32d7e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd32d7e([0x6c,0x6f,0x77])}),_0x49f952[_0xd32d7e([0x74,0x68,0x65,0x6e])](()=>{_0x46b497||_0x13b5c4(_0xd32d7e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x26b18d(){return _0x4c7857[_0xd32d7e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd32d7e([0x76,0x69,0x65,0x77])][_0xd32d7e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd32d7e([0x61,0x75,0x74,0x6f]);}function _0x599a8c(){_0x4c7857[_0xd32d7e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd32d7e([0x76,0x69,0x65,0x77])][_0xd32d7e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd32d7e([0x61,0x75,0x74,0x6f]);}}(_0x13a941[_0xd32d7e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x13a941[_0xd32d7e([0x6a,0x74,0x69])]));const _0x559691=await(async function(){let _0x5bd027=!0x0;try{const _0x1317d1=_0x5cd801[_0xd32d7e([0x73,0x70,0x6c,0x69,0x74])](_0xd32d7e([0x2e])),[_0x2eec9a,_0x35e46f,_0x547a0a]=_0x1317d1;return _0x2f3c40(_0x2eec9a),await _0x1b121f(_0x2eec9a,_0x35e46f,_0x547a0a),_0x5bd027;}catch{return!0x1;}function _0x2f3c40(_0x29c708){const _0x3f5ec3=_0x3be2e9(_0x29c708);_0x3f5ec3&&_0x3f5ec3[_0xd32d7e([0x61,0x6c,0x67])]==_0xd32d7e([0x45,0x53,0x32,0x35,0x36])||(_0x5bd027=!0x1);}async function _0x1b121f(_0x3a9611,_0x34252b,_0x5aeee6){const _0x4ea806=window[_0xd32d7e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd32d7e([0x66,0x72,0x6f,0x6d])](_0x2baaf3(_0x5aeee6),_0x240917=>_0x240917[_0xd32d7e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b6e5d=new window[(_0xd32d7e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd32d7e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a9611+_0xd32d7e([0x2e])+_0x34252b),_0x27d27b=window[_0xd32d7e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd32d7e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27d27b)return;const _0x5baea1=await _0x27d27b[_0xd32d7e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd32d7e([0x6a,0x77,0x6b]),_0x4ff0e3,{[_0xd32d7e([0x6e,0x61,0x6d,0x65])]:_0xd32d7e([0x45,0x43,0x44,0x53,0x41]),[_0xd32d7e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd32d7e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd32d7e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27d27b[_0xd32d7e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd32d7e([0x6e,0x61,0x6d,0x65])]:_0xd32d7e([0x45,0x43,0x44,0x53,0x41]),[_0xd32d7e([0x68,0x61,0x73,0x68])]:{[_0xd32d7e([0x6e,0x61,0x6d,0x65])]:_0xd32d7e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5baea1,_0x4ea806,_0x1b6e5d)||(_0x5bd027=!0x1);}}());return _0x559691?(function(){const _0x19bd37=_0x13a941[_0xd32d7e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x19bd37)return!0x1;if(_0x19bd37[_0xd32d7e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd32d7e([0x2a])))return!0x0;if(_0x19bd37[_0xd32d7e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd32d7e([0x50,0x4f,0x45])))return!0x0;if(_0x19bd37[_0xd32d7e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd32d7e([0x50,0x50])))return!0x0;if(_0x19bd37[_0xd32d7e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd32d7e([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0xd32d7e([0x67,0x6c,0x6f,0x62])]&&window[_0xd32d7e([0x67,0x6c,0x6f,0x62])][_0xd32d7e([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x465cc7=[_0xd32d7e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd32d7e([0x74,0x72,0x69,0x61,0x6c])][_0xd32d7e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13a941[_0xd32d7e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ced22/0x3e8:0x69cb0e80;return _0x13a941[_0xd32d7e([0x65,0x78,0x70])]<_0x465cc7;}())?_0xd32d7e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x37b8f4=_0x13a941[_0xd32d7e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37b8f4||0x0==_0x37b8f4[_0xd32d7e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d23d6}=new URL(window[_0xd32d7e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37b8f4[_0xd32d7e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d23d6))return!0x0;const _0x3112cf=_0x1d23d6[_0xd32d7e([0x73,0x70,0x6c,0x69,0x74])](_0xd32d7e([0x2e]));return _0x37b8f4[_0xd32d7e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25c801=>_0x25c801[_0xd32d7e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd32d7e([0x2a])))[_0xd32d7e([0x6d,0x61,0x70])](_0x48ffce=>_0x48ffce[_0xd32d7e([0x73,0x70,0x6c,0x69,0x74])](_0xd32d7e([0x2e])))[_0xd32d7e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x476b0b=>_0x476b0b[_0xd32d7e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3112cf[_0xd32d7e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd32d7e([0x6d,0x61,0x70])](_0x59b799=>Array(_0x3112cf[_0xd32d7e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x59b799[_0xd32d7e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd32d7e([0x66,0x69,0x6c,0x6c])](_0x59b799[0x0]===_0xd32d7e([0x2a])?_0xd32d7e([0x2a]):'')[_0xd32d7e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x59b799))[_0xd32d7e([0x73,0x6f,0x6d,0x65])](_0x4d92be=>_0x3112cf[_0xd32d7e([0x65,0x76,0x65,0x72,0x79])]((_0x39efcb,_0x507242)=>_0x4d92be[_0x507242]===_0x39efcb||_0x4d92be[_0x507242]===_0xd32d7e([0x2a])));}())?(_0x13a941[_0xd32d7e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd32d7e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x547b9c=function(_0x3402f0){const _0x2c6e40=new window[(_0xd32d7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x239e0d=>setTimeout(_0x239e0d,0x93ecc)),_0x238027=_0x49f952[_0xd32d7e([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd32d7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fc562=>{let _0x241b3a=0x0;_0x4c7857[_0xd32d7e([0x6d,0x6f,0x64,0x65,0x6c])][_0xd32d7e([0x6f,0x6e])](_0xd32d7e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x550851,_0x166564)=>{_0x166564[0x0][_0xd32d7e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x241b3a++,0x5e8==_0x241b3a&&(_0x3fc562(),_0x550851[_0xd32d7e([0x6f,0x66,0x66])]());});})),_0x1ebbff=[_0x2c6e40,_0x238027];return window[_0xd32d7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd32d7e([0x72,0x61,0x63,0x65])](_0x1ebbff)[_0xd32d7e([0x74,0x68,0x65,0x6e])](()=>_0x3402f0);}(_0xd32d7e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x547b9c&&_0x132dd3)return new window[(_0xd32d7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49fc49,_0x51ce18)=>{_0x547b9c[_0xd32d7e([0x74,0x68,0x65,0x6e])](_0x49fc49,_0x51ce18),_0x132dd3[_0xd32d7e([0x74,0x68,0x65,0x6e])](_0x36b277=>{_0x36b277!=_0xd32d7e([0x56,0x61,0x6c,0x69,0x64])&&_0x49fc49(_0x36b277);},_0x51ce18);});return _0x547b9c||_0x132dd3||_0xd32d7e([0x56,0x61,0x6c,0x69,0x64]);}())):_0xd32d7e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd32d7e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd32d7e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd32d7e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x3be2e9(_0x1d4d50){return _0x1d4d50[_0xd32d7e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd32d7e([0x65,0x79]))?JSON[_0xd32d7e([0x70,0x61,0x72,0x73,0x65])](_0x2baaf3(_0x1d4d50)):null;}function _0x2baaf3(_0x20dab5){return window[_0xd32d7e([0x61,0x74,0x6f,0x62])](_0x20dab5[_0xd32d7e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd32d7e([0x2b]))[_0xd32d7e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd32d7e([0x2f])));}function _0x21a5b1(_0xd4c879){let _0x5f042c=0x1505;function _0x39cfde(_0x65856e){for(let _0x1b63a8=0x0;_0x1b63a8<_0x65856e[_0xd32d7e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b63a8++){const _0x2205cb=_0x65856e[_0xd32d7e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b63a8);_0x5f042c=(_0x5f042c<<0x5)+_0x5f042c+_0x2205cb,_0x5f042c&=_0x5f042c;}}return function _0x4bece7(_0x8235c9){Array[_0xd32d7e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8235c9)?_0x8235c9[_0xd32d7e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bece7):_0x8235c9&&typeof _0x8235c9==_0xd32d7e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd32d7e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8235c9)[_0xd32d7e([0x73,0x6f,0x72,0x74])]()[_0xd32d7e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x399473,_0x59462e])=>{_0x39cfde(_0x399473),_0x4bece7(_0x59462e);}):_0x39cfde(window[_0xd32d7e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8235c9));}(_0xd4c879),_0x5f042c>>>0x0;}function _0x450faf(_0x460dd8){return _0x460dd8[_0xd32d7e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd32d7e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd32d7e([0x30]));}function _0x140b36(_0x184d13){return _0x184d13[_0xd32d7e([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd32d7e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd32d7e([0x6a,0x6f,0x69,0x6e])]('');}function _0x5782ac(){}function _0xd32d7e(_0x58f415){return _0x58f415['map'](_0x314b40=>String['fromCharCode'](_0x314b40))['join']('');}!function(_0x38bf36){const _0x200090=(function(){const _0x3ddb19=window[_0xd32d7e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd32d7e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd32d7e([0x6e,0x6f,0x77])]())[_0xd32d7e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd32d7e([0x2e]),'');let _0x34db1c=_0xd32d7e([0x73]);for(let _0x57049a=0x0;_0x57049a<_0x3ddb19[_0xd32d7e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57049a+=0x2){let _0x5bda25=window[_0xd32d7e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ddb19[_0xd32d7e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57049a,_0x57049a+0x2));_0x5bda25>=_0x9501a3[_0xd32d7e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5bda25-=_0x9501a3[_0xd32d7e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x34db1c+=_0x9501a3[_0x5bda25];}return _0x34db1c;}());_0x4c7857[_0x200090]=_0xd32d7e([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])+_0x38bf36,_0x38bf36!=_0xd32d7e([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x49f952,_0x4c7857[_0xd32d7e([0x6d,0x6f,0x64,0x65,0x6c])][_0xd32d7e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5782ac,_0x4c7857[_0xd32d7e([0x6d,0x6f,0x64,0x65,0x6c])][_0xd32d7e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5782ac,_0x4c7857[_0xd32d7e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd32d7e([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x44a609);}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'],[_0x4deaf4=>Number(_0x4deaf4)>=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(_0x4c7b64){return CSS_PROPERTIES_TO_PROPAGATE['includes'](_0x4c7b64);}function isPropertyToBePropagatedAsSpan(_0x5c4f42){return CSS_PROPERTIES_TO_BE_SPANS['includes'](_0x5c4f42);}function isPropertyToBePropagatedAsHTMLElement(_0x25a09e){return _0x25a09e in CSS_PROPERTIES_TO_BE_HTML_ELEMENTS;}function getStylePropertyNamesToPropagate(_0x53d0f9){return Array['from'](_0x53d0f9['getStyleNames']())['filter'](isPropertyToBePropagated);}function propagateStyleProperties(_0x4716d3,_0x1d9df2,_0x530ca6){const {spanStyles:_0x3152c3,stylesToBeHtmlElements:_0x374249}=getStylesToPropagate(_0x4716d3,_0x530ca6);propagateStylesAsHTMLElements(_0x4716d3,_0x1d9df2,_0x374249),propagateStylesAsSpan(_0x4716d3,_0x1d9df2,_0x3152c3);}function propagateStylesAsHTMLElements(_0x2f29b6,_0x4fced1,_0x109e85){for(const _0xaabba2 in _0x109e85){_0x109e85[_0xaabba2]['forEach'](([,_0x5f0e87])=>{const _0x2dc8c0=_0x4fced1['createElement'](_0x5f0e87,[],_0x2f29b6['getChildren']());_0x4fced1['insertChild'](0x0,_0x2dc8c0,_0x2f29b6);}),_0x4fced1['removeStyle'](_0xaabba2,_0x2f29b6);}}function propagateStylesAsSpan(_0x2f7de3,_0x48c1ce,_0x8bb2f3){if(!Object['keys'](_0x8bb2f3)['length'])return;const _0x4c7e2b=_0x48c1ce['createElement']('span',[],_0x2f7de3['getChildren']());_0x48c1ce['setStyle'](_0x8bb2f3,_0x4c7e2b),_0x48c1ce['insertChild'](0x0,_0x4c7e2b,_0x2f7de3),_0x48c1ce['removeStyle'](Object['keys'](_0x8bb2f3),_0x2f7de3);}function getStylesToPropagate(_0x127f28,_0x4d12d9){const _0xde18bd={},_0x4ac6b9={};return _0x4d12d9['forEach'](_0x5a0074=>{const _0x4b3602=_0x127f28['getStyle'](_0x5a0074);if(_0x4b3602){if(isPropertyToBePropagatedAsSpan(_0x5a0074))_0xde18bd[_0x5a0074]=_0x4b3602;else{if(isPropertyToBePropagatedAsHTMLElement(_0x5a0074)){const _0x5ad3d1=_0x4b3602['split']('\x20');CSS_PROPERTIES_TO_BE_HTML_ELEMENTS[_0x5a0074]['forEach'](([_0x15752a,_0x11cc38])=>{for(const _0x251ba3 of _0x5ad3d1){('function'==typeof _0x15752a&&_0x15752a(_0x251ba3)||_0x15752a===_0x251ba3)&&(_0x4ac6b9[_0x5a0074]=[..._0x4ac6b9[_0x5a0074]||[],[_0x15752a,_0x11cc38]]);}});}}}}),{'spanStyles':_0xde18bd,'stylesToBeHtmlElements':_0x4ac6b9};}class MSOfficeInlineStylePropagator extends PasteFromOfficeMSWordNormalizer{['execute'](_0xeed065){const {body:_0x3dfc24}=_0xeed065['_parsedData'],_0x43cc53=new ViewUpcastWriter(_0x3dfc24['document']),_0xe157e2=_0x43cc53['createRangeIn'](_0x3dfc24),_0x12d0f8=new ViewDocument(_0x43cc53['document']['stylesProcessor']),_0x3bee40=[...new ViewDomConverter(_0x12d0f8)['blockElements'],'font'],_0x3fb699=_0xe157e2['getItems']();for(const _0x1ef1fc of _0x3fb699)_0x1ef1fc['is']('element')&&_0x3bee40['includes'](_0x1ef1fc['name'])&&propagateStyleProperties(_0x1ef1fc,_0x43cc53,getStylePropertyNamesToPropagate(_0x1ef1fc));_0xeed065['content']=_0x3dfc24;}['isActive'](_0x108f36){return super['isActive'](_0x108f36)||isMSExcelContent(_0x108f36);}}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 _0x2f63c4=this['editor'],_0x5ce0b9=_0x2f63c4['plugins']['get']('ClipboardPipeline'),_0x5c2171=_0x2f63c4['editing']['view']['document'],_0xf9d7f7=new MSOfficeInlineStylePropagator(_0x5c2171);_0x5ce0b9['on']('inputTransformation',(_0x555bf4,_0x1b9af9)=>{const _0x255c6a=_0x1b9af9['dataTransfer']['getData']('text/html');_0xf9d7f7['isActive'](_0x255c6a)&&(_0x1b9af9['_parsedData']||(_0x1b9af9['_parsedData']=parsePasteOfficeHtml(_0x255c6a,_0x5c2171['stylesProcessor'])),_0xf9d7f7['execute'](_0x1b9af9));},{'priority':priorities['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a8d75=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x223cc0;for(const _0x57c58f in _0x5a8d75){const _0x52f243=_0x57c58f,_0x215311=_0x5a8d75[_0x52f243];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x215311||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x215311||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x215311||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x215311||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x215311||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x215311||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x215311){delete _0x5a8d75[_0x52f243],_0x223cc0=_0x215311,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x223cc0&&_0x5a8d75['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x223cc0&&_0x5a8d75['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x223cc0&&_0x5a8d75['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x223cc0&&_0x5a8d75['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x223cc0&&_0x5a8d75['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x223cc0&&_0x5a8d75['_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(_0x2429a1,_0x5373ab){var _0x5d7eb1=new Array(arguments['length']-0x1),_0x4f7bb8=0x0,_0x548920=0x2,_0x12c0e5=!0x0;for(;_0x548920<arguments['length'];)_0x5d7eb1[_0x4f7bb8++]=arguments[_0x548920++];return new Promise(function(_0x58afb9,_0x19ef6f){_0x5d7eb1[_0x4f7bb8]=function(_0x5823a8){if(_0x12c0e5){if(_0x12c0e5=!0x1,_0x5823a8)_0x19ef6f(_0x5823a8);else{for(var _0x5e6c04=new Array(arguments['length']-0x1),_0x3ef5f3=0x0;_0x3ef5f3<_0x5e6c04['length'];)_0x5e6c04[_0x3ef5f3++]=arguments[_0x3ef5f3];_0x58afb9['apply'](null,_0x5e6c04);}}};try{_0x2429a1['apply'](_0x5373ab||null,_0x5d7eb1);}catch(_0x5dd963){_0x12c0e5&&(_0x12c0e5=!0x1,_0x19ef6f(_0x5dd963));}});},aspromise;}var base64={},hasRequiredBase64,eventemitter,hasRequiredEventemitter,float,hasRequiredFloat,inquire_1,hasRequiredInquire;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=0x1,function(_0x2c03e0){var _0xb7e440=_0x2c03e0;_0xb7e440['length']=function(_0xd8721c){var _0x353c30=_0xd8721c['length'];if(!_0x353c30)return 0x0;for(var _0x161f22=0x0;--_0x353c30%0x4>0x1&&'='===_0xd8721c['charAt'](_0x353c30);)++_0x161f22;return Math['ceil'](0x3*_0xd8721c['length'])/0x4-_0x161f22;};for(var _0x2f8c25=new Array(0x40),_0x225c6c=new Array(0x7b),_0x40d244=0x0;_0x40d244<0x40;)_0x225c6c[_0x2f8c25[_0x40d244]=_0x40d244<0x1a?_0x40d244+0x41:_0x40d244<0x34?_0x40d244+0x47:_0x40d244<0x3e?_0x40d244-0x4:_0x40d244-0x3b|0x2b]=_0x40d244++;_0xb7e440['encode']=function(_0x54c0ac,_0xf5b2a5,_0x7bf877){for(var t,_0x1cdb21=null,_0x554bad=[],_0x3d64fe=0x0,_0x308b9d=0x0;_0xf5b2a5<_0x7bf877;){var _0x209bfe=_0x54c0ac[_0xf5b2a5++];switch(_0x308b9d){case 0x0:_0x554bad[_0x3d64fe++]=_0x2f8c25[_0x209bfe>>0x2],t=(0x3&_0x209bfe)<<0x4,_0x308b9d=0x1;break;case 0x1:_0x554bad[_0x3d64fe++]=_0x2f8c25[t|_0x209bfe>>0x4],t=(0xf&_0x209bfe)<<0x2,_0x308b9d=0x2;break;case 0x2:_0x554bad[_0x3d64fe++]=_0x2f8c25[t|_0x209bfe>>0x6],_0x554bad[_0x3d64fe++]=_0x2f8c25[0x3f&_0x209bfe],_0x308b9d=0x0;}_0x3d64fe>0x1fff&&((_0x1cdb21||(_0x1cdb21=[]))['push'](String['fromCharCode']['apply'](String,_0x554bad)),_0x3d64fe=0x0);}return _0x308b9d&&(_0x554bad[_0x3d64fe++]=_0x2f8c25[t],_0x554bad[_0x3d64fe++]=0x3d,0x1===_0x308b9d&&(_0x554bad[_0x3d64fe++]=0x3d)),_0x1cdb21?(_0x3d64fe&&_0x1cdb21['push'](String['fromCharCode']['apply'](String,_0x554bad['slice'](0x0,_0x3d64fe))),_0x1cdb21['join']('')):String['fromCharCode']['apply'](String,_0x554bad['slice'](0x0,_0x3d64fe));};var _0x54323b='invalid\x20encoding';_0xb7e440['decode']=function(_0x1edb1a,_0x16c8ab,_0xcb78c1){for(var t,_0x211c8f=_0xcb78c1,_0x198852=0x0,_0x59c1ba=0x0;_0x59c1ba<_0x1edb1a['length'];){var _0x5f3041=_0x1edb1a['charCodeAt'](_0x59c1ba++);if(0x3d===_0x5f3041&&_0x198852>0x1)break;if(void 0x0===(_0x5f3041=_0x225c6c[_0x5f3041]))throw Error(_0x54323b);switch(_0x198852){case 0x0:t=_0x5f3041,_0x198852=0x1;break;case 0x1:_0x16c8ab[_0xcb78c1++]=t<<0x2|(0x30&_0x5f3041)>>0x4,t=_0x5f3041,_0x198852=0x2;break;case 0x2:_0x16c8ab[_0xcb78c1++]=(0xf&t)<<0x4|(0x3c&_0x5f3041)>>0x2,t=_0x5f3041,_0x198852=0x3;break;case 0x3:_0x16c8ab[_0xcb78c1++]=(0x3&t)<<0x6|_0x5f3041,_0x198852=0x0;}}if(0x1===_0x198852)throw Error(_0x54323b);return _0xcb78c1-_0x211c8f;},_0xb7e440['test']=function(_0x15421b){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/['test'](_0x15421b);};}(base64)),base64;}function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;function _0x3ef1cb(){this['_listeners']={};}return hasRequiredEventemitter=0x1,eventemitter=_0x3ef1cb,_0x3ef1cb['prototype']['on']=function(_0x4af266,_0x40d839,_0x509216){return(this['_listeners'][_0x4af266]||(this['_listeners'][_0x4af266]=[]))['push']({'fn':_0x40d839,'ctx':_0x509216||this}),this;},_0x3ef1cb['prototype']['off']=function(_0xfc18bf,_0xb8521e){if(void 0x0===_0xfc18bf)this['_listeners']={};else{if(void 0x0===_0xb8521e)this['_listeners'][_0xfc18bf]=[];else{for(var _0xb847f2=this['_listeners'][_0xfc18bf],_0x335791=0x0;_0x335791<_0xb847f2['length'];)_0xb847f2[_0x335791]['fn']===_0xb8521e?_0xb847f2['splice'](_0x335791,0x1):++_0x335791;}}return this;},_0x3ef1cb['prototype']['emit']=function(_0x941a95){var _0x266561=this['_listeners'][_0x941a95];if(_0x266561){for(var _0x532cc1=[],_0x307fa3=0x1;_0x307fa3<arguments['length'];)_0x532cc1['push'](arguments[_0x307fa3++]);for(_0x307fa3=0x0;_0x307fa3<_0x266561['length'];)_0x266561[_0x307fa3]['fn']['apply'](_0x266561[_0x307fa3++]['ctx'],_0x532cc1);}return this;},eventemitter;}function requireFloat(){if(hasRequiredFloat)return float;function _0x2afa03(_0x40eff8){return'undefined'!=typeof Float32Array?(function(){var _0x23cd3c=new Float32Array([-0x0]),_0x48d364=new Uint8Array(_0x23cd3c['buffer']),_0x1cb794=0x80===_0x48d364[0x3];function _0x4e1afd(_0x5b3dd4,_0x27119c,_0x3e17fd){_0x23cd3c[0x0]=_0x5b3dd4,_0x27119c[_0x3e17fd]=_0x48d364[0x0],_0x27119c[_0x3e17fd+0x1]=_0x48d364[0x1],_0x27119c[_0x3e17fd+0x2]=_0x48d364[0x2],_0x27119c[_0x3e17fd+0x3]=_0x48d364[0x3];}function _0x14de38(_0x450552,_0x443251,_0xadf4fe){_0x23cd3c[0x0]=_0x450552,_0x443251[_0xadf4fe]=_0x48d364[0x3],_0x443251[_0xadf4fe+0x1]=_0x48d364[0x2],_0x443251[_0xadf4fe+0x2]=_0x48d364[0x1],_0x443251[_0xadf4fe+0x3]=_0x48d364[0x0];}function _0xf6e6a6(_0x1de391,_0x43ff53){return _0x48d364[0x0]=_0x1de391[_0x43ff53],_0x48d364[0x1]=_0x1de391[_0x43ff53+0x1],_0x48d364[0x2]=_0x1de391[_0x43ff53+0x2],_0x48d364[0x3]=_0x1de391[_0x43ff53+0x3],_0x23cd3c[0x0];}function _0x455793(_0xd6c987,_0x4b39fd){return _0x48d364[0x3]=_0xd6c987[_0x4b39fd],_0x48d364[0x2]=_0xd6c987[_0x4b39fd+0x1],_0x48d364[0x1]=_0xd6c987[_0x4b39fd+0x2],_0x48d364[0x0]=_0xd6c987[_0x4b39fd+0x3],_0x23cd3c[0x0];}_0x40eff8['writeFloatLE']=_0x1cb794?_0x4e1afd:_0x14de38,_0x40eff8['writeFloatBE']=_0x1cb794?_0x14de38:_0x4e1afd,_0x40eff8['readFloatLE']=_0x1cb794?_0xf6e6a6:_0x455793,_0x40eff8['readFloatBE']=_0x1cb794?_0x455793:_0xf6e6a6;}()):(function(){function _0x38d520(_0x1896fb,_0x2d8ef2,_0xbd762,_0x1de084){var _0x3ebb52=_0x2d8ef2<0x0?0x1:0x0;if(_0x3ebb52&&(_0x2d8ef2=-_0x2d8ef2),0x0===_0x2d8ef2)_0x1896fb(0x1/_0x2d8ef2>0x0?0x0:0x80000000,_0xbd762,_0x1de084);else{if(isNaN(_0x2d8ef2))_0x1896fb(0x7fc00000,_0xbd762,_0x1de084);else{if(_0x2d8ef2>0xffffff00000000000000000000000000)_0x1896fb((_0x3ebb52<<0x1f|0x7f800000)>>>0x0,_0xbd762,_0x1de084);else{if(_0x2d8ef2<1.1754943508222875e-38)_0x1896fb((_0x3ebb52<<0x1f|Math['round'](_0x2d8ef2/1.401298464324817e-45))>>>0x0,_0xbd762,_0x1de084);else{var _0x2f16a3=Math['floor'](Math['log'](_0x2d8ef2)/Math['LN2']);_0x1896fb((_0x3ebb52<<0x1f|_0x2f16a3+0x7f<<0x17|0x7fffff&Math['round'](_0x2d8ef2*Math['pow'](0x2,-_0x2f16a3)*0x800000))>>>0x0,_0xbd762,_0x1de084);}}}}}function _0x5f4469(_0x4f163c,_0x3cc382,_0x188c0a){var _0x1fec5a=_0x4f163c(_0x3cc382,_0x188c0a),_0x575f85=0x2*(_0x1fec5a>>0x1f)+0x1,_0x39c16a=_0x1fec5a>>>0x17&0xff,_0x455a68=0x7fffff&_0x1fec5a;return 0xff===_0x39c16a?_0x455a68?NaN:_0x575f85*(0x1/0x0):0x0===_0x39c16a?1.401298464324817e-45*_0x575f85*_0x455a68:_0x575f85*Math['pow'](0x2,_0x39c16a-0x96)*(_0x455a68+0x800000);}_0x40eff8['writeFloatLE']=_0x38d520['bind'](null,_0x33a8eb),_0x40eff8['writeFloatBE']=_0x38d520['bind'](null,_0x155be5),_0x40eff8['readFloatLE']=_0x5f4469['bind'](null,_0x12ef08),_0x40eff8['readFloatBE']=_0x5f4469['bind'](null,_0x33e941);}()),'undefined'!=typeof Float64Array?(function(){var _0x2f0ab0=new Float64Array([-0x0]),_0x298824=new Uint8Array(_0x2f0ab0['buffer']),_0x128760=0x80===_0x298824[0x7];function _0x45c481(_0x5e60b3,_0x53ebd4,_0x551dce){_0x2f0ab0[0x0]=_0x5e60b3,_0x53ebd4[_0x551dce]=_0x298824[0x0],_0x53ebd4[_0x551dce+0x1]=_0x298824[0x1],_0x53ebd4[_0x551dce+0x2]=_0x298824[0x2],_0x53ebd4[_0x551dce+0x3]=_0x298824[0x3],_0x53ebd4[_0x551dce+0x4]=_0x298824[0x4],_0x53ebd4[_0x551dce+0x5]=_0x298824[0x5],_0x53ebd4[_0x551dce+0x6]=_0x298824[0x6],_0x53ebd4[_0x551dce+0x7]=_0x298824[0x7];}function _0x2d971e(_0x5bbf0b,_0x4e6329,_0xa0b1a6){_0x2f0ab0[0x0]=_0x5bbf0b,_0x4e6329[_0xa0b1a6]=_0x298824[0x7],_0x4e6329[_0xa0b1a6+0x1]=_0x298824[0x6],_0x4e6329[_0xa0b1a6+0x2]=_0x298824[0x5],_0x4e6329[_0xa0b1a6+0x3]=_0x298824[0x4],_0x4e6329[_0xa0b1a6+0x4]=_0x298824[0x3],_0x4e6329[_0xa0b1a6+0x5]=_0x298824[0x2],_0x4e6329[_0xa0b1a6+0x6]=_0x298824[0x1],_0x4e6329[_0xa0b1a6+0x7]=_0x298824[0x0];}function _0x860f50(_0x3697a3,_0x28e4f5){return _0x298824[0x0]=_0x3697a3[_0x28e4f5],_0x298824[0x1]=_0x3697a3[_0x28e4f5+0x1],_0x298824[0x2]=_0x3697a3[_0x28e4f5+0x2],_0x298824[0x3]=_0x3697a3[_0x28e4f5+0x3],_0x298824[0x4]=_0x3697a3[_0x28e4f5+0x4],_0x298824[0x5]=_0x3697a3[_0x28e4f5+0x5],_0x298824[0x6]=_0x3697a3[_0x28e4f5+0x6],_0x298824[0x7]=_0x3697a3[_0x28e4f5+0x7],_0x2f0ab0[0x0];}function _0xf680d3(_0x2c76e8,_0x4f34d0){return _0x298824[0x7]=_0x2c76e8[_0x4f34d0],_0x298824[0x6]=_0x2c76e8[_0x4f34d0+0x1],_0x298824[0x5]=_0x2c76e8[_0x4f34d0+0x2],_0x298824[0x4]=_0x2c76e8[_0x4f34d0+0x3],_0x298824[0x3]=_0x2c76e8[_0x4f34d0+0x4],_0x298824[0x2]=_0x2c76e8[_0x4f34d0+0x5],_0x298824[0x1]=_0x2c76e8[_0x4f34d0+0x6],_0x298824[0x0]=_0x2c76e8[_0x4f34d0+0x7],_0x2f0ab0[0x0];}_0x40eff8['writeDoubleLE']=_0x128760?_0x45c481:_0x2d971e,_0x40eff8['writeDoubleBE']=_0x128760?_0x2d971e:_0x45c481,_0x40eff8['readDoubleLE']=_0x128760?_0x860f50:_0xf680d3,_0x40eff8['readDoubleBE']=_0x128760?_0xf680d3:_0x860f50;}()):(function(){function _0x5882b7(_0x397f65,_0x1ad7d8,_0x276365,_0x5adce5,_0x42fbca,_0x3e614d){var _0x406e50=_0x5adce5<0x0?0x1:0x0;if(_0x406e50&&(_0x5adce5=-_0x5adce5),0x0===_0x5adce5)_0x397f65(0x0,_0x42fbca,_0x3e614d+_0x1ad7d8),_0x397f65(0x1/_0x5adce5>0x0?0x0:0x80000000,_0x42fbca,_0x3e614d+_0x276365);else{if(isNaN(_0x5adce5))_0x397f65(0x0,_0x42fbca,_0x3e614d+_0x1ad7d8),_0x397f65(0x7ff80000,_0x42fbca,_0x3e614d+_0x276365);else{if(_0x5adce5>0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)_0x397f65(0x0,_0x42fbca,_0x3e614d+_0x1ad7d8),_0x397f65((_0x406e50<<0x1f|0x7ff00000)>>>0x0,_0x42fbca,_0x3e614d+_0x276365);else{var _0x1b3915;if(_0x5adce5<2.2250738585072014e-308)_0x397f65((_0x1b3915=_0x5adce5/5e-324)>>>0x0,_0x42fbca,_0x3e614d+_0x1ad7d8),_0x397f65((_0x406e50<<0x1f|_0x1b3915/0x100000000)>>>0x0,_0x42fbca,_0x3e614d+_0x276365);else{var _0x5bd5da=Math['floor'](Math['log'](_0x5adce5)/Math['LN2']);0x400===_0x5bd5da&&(_0x5bd5da=0x3ff),_0x397f65(0x10000000000000*(_0x1b3915=_0x5adce5*Math['pow'](0x2,-_0x5bd5da))>>>0x0,_0x42fbca,_0x3e614d+_0x1ad7d8),_0x397f65((_0x406e50<<0x1f|_0x5bd5da+0x3ff<<0x14|0x100000*_0x1b3915&0xfffff)>>>0x0,_0x42fbca,_0x3e614d+_0x276365);}}}}}function _0x3fddb4(_0x42c658,_0x47a1b0,_0x55af2a,_0x5d3ea5,_0x123fff){var _0x206a10=_0x42c658(_0x5d3ea5,_0x123fff+_0x47a1b0),_0x37a1b3=_0x42c658(_0x5d3ea5,_0x123fff+_0x55af2a),_0x538a97=0x2*(_0x37a1b3>>0x1f)+0x1,_0x56c380=_0x37a1b3>>>0x14&0x7ff,_0x344bf7=0x100000000*(0xfffff&_0x37a1b3)+_0x206a10;return 0x7ff===_0x56c380?_0x344bf7?NaN:_0x538a97*(0x1/0x0):0x0===_0x56c380?5e-324*_0x538a97*_0x344bf7:_0x538a97*Math['pow'](0x2,_0x56c380-0x433)*(_0x344bf7+0x10000000000000);}_0x40eff8['writeDoubleLE']=_0x5882b7['bind'](null,_0x33a8eb,0x0,0x4),_0x40eff8['writeDoubleBE']=_0x5882b7['bind'](null,_0x155be5,0x4,0x0),_0x40eff8['readDoubleLE']=_0x3fddb4['bind'](null,_0x12ef08,0x0,0x4),_0x40eff8['readDoubleBE']=_0x3fddb4['bind'](null,_0x33e941,0x4,0x0);}()),_0x40eff8;}function _0x33a8eb(_0x5375bc,_0x2cb6dc,_0x35ccbf){_0x2cb6dc[_0x35ccbf]=0xff&_0x5375bc,_0x2cb6dc[_0x35ccbf+0x1]=_0x5375bc>>>0x8&0xff,_0x2cb6dc[_0x35ccbf+0x2]=_0x5375bc>>>0x10&0xff,_0x2cb6dc[_0x35ccbf+0x3]=_0x5375bc>>>0x18;}function _0x155be5(_0x28ea22,_0x5387fc,_0x1f0646){_0x5387fc[_0x1f0646]=_0x28ea22>>>0x18,_0x5387fc[_0x1f0646+0x1]=_0x28ea22>>>0x10&0xff,_0x5387fc[_0x1f0646+0x2]=_0x28ea22>>>0x8&0xff,_0x5387fc[_0x1f0646+0x3]=0xff&_0x28ea22;}function _0x12ef08(_0x50988b,_0xf25ffe){return(_0x50988b[_0xf25ffe]|_0x50988b[_0xf25ffe+0x1]<<0x8|_0x50988b[_0xf25ffe+0x2]<<0x10|_0x50988b[_0xf25ffe+0x3]<<0x18)>>>0x0;}function _0x33e941(_0x354137,_0x2b1457){return(_0x354137[_0x2b1457]<<0x18|_0x354137[_0x2b1457+0x1]<<0x10|_0x354137[_0x2b1457+0x2]<<0x8|_0x354137[_0x2b1457+0x3])>>>0x0;}return hasRequiredFloat=0x1,float=_0x2afa03(_0x2afa03);}function requireInquire(){if(hasRequiredInquire)return inquire_1;function _0x2f26cf(_0x34f3f9){try{var _0x30540f=eval('quire'['replace'](/^/,'re'))(_0x34f3f9);if(_0x30540f&&(_0x30540f['length']||Object['keys'](_0x30540f)['length']))return _0x30540f;}catch(_0x5c4b45){}return null;}return hasRequiredInquire=0x1,inquire_1=_0x2f26cf,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(_0x39c0ae){var _0x322d9c=_0x39c0ae;_0x322d9c['length']=function(_0x5d4952){for(var _0x13e837=0x0,_0x3415d8=0x0,_0xa0d73c=0x0;_0xa0d73c<_0x5d4952['length'];++_0xa0d73c)(_0x3415d8=_0x5d4952['charCodeAt'](_0xa0d73c))<0x80?_0x13e837+=0x1:_0x3415d8<0x800?_0x13e837+=0x2:0xd800==(0xfc00&_0x3415d8)&&0xdc00==(0xfc00&_0x5d4952['charCodeAt'](_0xa0d73c+0x1))?(++_0xa0d73c,_0x13e837+=0x4):_0x13e837+=0x3;return _0x13e837;},_0x322d9c['read']=function(_0x291ed3,_0x5b5a1a,_0x29c9e4){if(_0x29c9e4-_0x5b5a1a<0x1)return'';for(var t,_0xaf0252=null,_0x345f1d=[],_0x2d9bfd=0x0;_0x5b5a1a<_0x29c9e4;)(t=_0x291ed3[_0x5b5a1a++])<0x80?_0x345f1d[_0x2d9bfd++]=t:t>0xbf&&t<0xe0?_0x345f1d[_0x2d9bfd++]=(0x1f&t)<<0x6|0x3f&_0x291ed3[_0x5b5a1a++]:t>0xef&&t<0x16d?(t=((0x7&t)<<0x12|(0x3f&_0x291ed3[_0x5b5a1a++])<<0xc|(0x3f&_0x291ed3[_0x5b5a1a++])<<0x6|0x3f&_0x291ed3[_0x5b5a1a++])-0x10000,_0x345f1d[_0x2d9bfd++]=0xd800+(t>>0xa),_0x345f1d[_0x2d9bfd++]=0xdc00+(0x3ff&t)):_0x345f1d[_0x2d9bfd++]=(0xf&t)<<0xc|(0x3f&_0x291ed3[_0x5b5a1a++])<<0x6|0x3f&_0x291ed3[_0x5b5a1a++],_0x2d9bfd>0x1fff&&((_0xaf0252||(_0xaf0252=[]))['push'](String['fromCharCode']['apply'](String,_0x345f1d)),_0x2d9bfd=0x0);return _0xaf0252?(_0x2d9bfd&&_0xaf0252['push'](String['fromCharCode']['apply'](String,_0x345f1d['slice'](0x0,_0x2d9bfd))),_0xaf0252['join']('')):String['fromCharCode']['apply'](String,_0x345f1d['slice'](0x0,_0x2d9bfd));},_0x322d9c['write']=function(_0x39c64d,_0x3cf916,_0x4aebd4){for(var _0x51a75f,_0x514d3a,_0x1fbde4=_0x4aebd4,_0x3e430c=0x0;_0x3e430c<_0x39c64d['length'];++_0x3e430c)(_0x51a75f=_0x39c64d['charCodeAt'](_0x3e430c))<0x80?_0x3cf916[_0x4aebd4++]=_0x51a75f:_0x51a75f<0x800?(_0x3cf916[_0x4aebd4++]=_0x51a75f>>0x6|0xc0,_0x3cf916[_0x4aebd4++]=0x3f&_0x51a75f|0x80):0xd800==(0xfc00&_0x51a75f)&&0xdc00==(0xfc00&(_0x514d3a=_0x39c64d['charCodeAt'](_0x3e430c+0x1)))?(_0x51a75f=0x10000+((0x3ff&_0x51a75f)<<0xa)+(0x3ff&_0x514d3a),++_0x3e430c,_0x3cf916[_0x4aebd4++]=_0x51a75f>>0x12|0xf0,_0x3cf916[_0x4aebd4++]=_0x51a75f>>0xc&0x3f|0x80,_0x3cf916[_0x4aebd4++]=_0x51a75f>>0x6&0x3f|0x80,_0x3cf916[_0x4aebd4++]=0x3f&_0x51a75f|0x80):(_0x3cf916[_0x4aebd4++]=_0x51a75f>>0xc|0xe0,_0x3cf916[_0x4aebd4++]=_0x51a75f>>0x6&0x3f|0x80,_0x3cf916[_0x4aebd4++]=0x3f&_0x51a75f|0x80);return _0x4aebd4-_0x1fbde4;};}(utf8)),utf8;}function requirePool(){if(hasRequiredPool)return pool_1;return hasRequiredPool=0x1,pool_1=function(_0x5bb903,_0x3b1755,_0x96cb00){var _0x553459=_0x96cb00||0x2000,_0x10c832=_0x553459>>>0x1,_0x16ef71=null,_0x54d595=_0x553459;return function(_0x2b2a3c){if(_0x2b2a3c<0x1||_0x2b2a3c>_0x10c832)return _0x5bb903(_0x2b2a3c);_0x54d595+_0x2b2a3c>_0x553459&&(_0x16ef71=_0x5bb903(_0x553459),_0x54d595=0x0);var _0xbcc399=_0x3b1755['call'](_0x16ef71,_0x54d595,_0x54d595+=_0x2b2a3c);return 0x7&_0x54d595&&(_0x54d595=0x1+(0x7|_0x54d595)),_0xbcc399;};},pool_1;}function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=0x1,longbits=_0x5aded6;var _0x34a430=requireMinimal$1();function _0x5aded6(_0x506fb8,_0x5e8813){this['lo']=_0x506fb8>>>0x0,this['hi']=_0x5e8813>>>0x0;}var _0x2fdb60=_0x5aded6['zero']=new _0x5aded6(0x0,0x0);_0x2fdb60['toNumber']=function(){return 0x0;},_0x2fdb60['zzEncode']=_0x2fdb60['zzDecode']=function(){return this;},_0x2fdb60['length']=function(){return 0x1;};var _0x2c7f56=_0x5aded6['zeroHash']='\x00\x00\x00\x00\x00\x00\x00\x00';_0x5aded6['fromNumber']=function(_0x10aaba){if(0x0===_0x10aaba)return _0x2fdb60;var _0x5c85ab=_0x10aaba<0x0;_0x5c85ab&&(_0x10aaba=-_0x10aaba);var _0x50abe5=_0x10aaba>>>0x0,_0x43c104=(_0x10aaba-_0x50abe5)/0x100000000>>>0x0;return _0x5c85ab&&(_0x43c104=~_0x43c104>>>0x0,_0x50abe5=~_0x50abe5>>>0x0,++_0x50abe5>0xffffffff&&(_0x50abe5=0x0,++_0x43c104>0xffffffff&&(_0x43c104=0x0))),new _0x5aded6(_0x50abe5,_0x43c104);},_0x5aded6['from']=function(_0x1b85cf){if('number'==typeof _0x1b85cf)return _0x5aded6['fromNumber'](_0x1b85cf);if(_0x34a430['isString'](_0x1b85cf)){if(!_0x34a430['Long'])return _0x5aded6['fromNumber'](parseInt(_0x1b85cf,0xa));_0x1b85cf=_0x34a430['Long']['fromString'](_0x1b85cf);}return _0x1b85cf['low']||_0x1b85cf['high']?new _0x5aded6(_0x1b85cf['low']>>>0x0,_0x1b85cf['high']>>>0x0):_0x2fdb60;},_0x5aded6['prototype']['toNumber']=function(_0x41d79e){if(!_0x41d79e&&this['hi']>>>0x1f){var _0x21b9ef=0x1+~this['lo']>>>0x0,_0x333ad2=~this['hi']>>>0x0;return _0x21b9ef||(_0x333ad2=_0x333ad2+0x1>>>0x0),-(_0x21b9ef+0x100000000*_0x333ad2);}return this['lo']+0x100000000*this['hi'];},_0x5aded6['prototype']['toLong']=function(_0x1d805d){return _0x34a430['Long']?new _0x34a430['Long'](0x0|this['lo'],0x0|this['hi'],Boolean(_0x1d805d)):{'low':0x0|this['lo'],'high':0x0|this['hi'],'unsigned':Boolean(_0x1d805d)};};var _0x359304=String['prototype']['charCodeAt'];return _0x5aded6['fromHash']=function(_0x58fff3){return _0x58fff3===_0x2c7f56?_0x2fdb60:new _0x5aded6((_0x359304['call'](_0x58fff3,0x0)|_0x359304['call'](_0x58fff3,0x1)<<0x8|_0x359304['call'](_0x58fff3,0x2)<<0x10|_0x359304['call'](_0x58fff3,0x3)<<0x18)>>>0x0,(_0x359304['call'](_0x58fff3,0x4)|_0x359304['call'](_0x58fff3,0x5)<<0x8|_0x359304['call'](_0x58fff3,0x6)<<0x10|_0x359304['call'](_0x58fff3,0x7)<<0x18)>>>0x0);},_0x5aded6['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);},_0x5aded6['prototype']['zzEncode']=function(){var _0x196233=this['hi']>>0x1f;return this['hi']=((this['hi']<<0x1|this['lo']>>>0x1f)^_0x196233)>>>0x0,this['lo']=(this['lo']<<0x1^_0x196233)>>>0x0,this;},_0x5aded6['prototype']['zzDecode']=function(){var _0x1595f9=-(0x1&this['lo']);return this['lo']=((this['lo']>>>0x1|this['hi']<<0x1f)^_0x1595f9)>>>0x0,this['hi']=(this['hi']>>>0x1^_0x1595f9)>>>0x0,this;},_0x5aded6['prototype']['length']=function(){var _0x48c882=this['lo'],_0x2729b4=(this['lo']>>>0x1c|this['hi']<<0x4)>>>0x0,_0x53ae5a=this['hi']>>>0x18;return 0x0===_0x53ae5a?0x0===_0x2729b4?_0x48c882<0x4000?_0x48c882<0x80?0x1:0x2:_0x48c882<0x200000?0x3:0x4:_0x2729b4<0x4000?_0x2729b4<0x80?0x5:0x6:_0x2729b4<0x200000?0x7:0x8:_0x53ae5a<0x80?0x9:0xa;},longbits;}function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=0x1,(function(){var _0x2eb4d8=minimal$1;function _0x2bd34d(_0x1db368,_0x39038b,_0x5f31bd){for(var _0x59a3ca=Object['keys'](_0x39038b),_0x1a757b=0x0;_0x1a757b<_0x59a3ca['length'];++_0x1a757b)void 0x0!==_0x1db368[_0x59a3ca[_0x1a757b]]&&_0x5f31bd||(_0x1db368[_0x59a3ca[_0x1a757b]]=_0x39038b[_0x59a3ca[_0x1a757b]]);return _0x1db368;}function _0x1bf7ec(_0x5225aa){function _0xc5a24f(_0x22ea20,_0x23e0c0){if(!(this instanceof _0xc5a24f))return new _0xc5a24f(_0x22ea20,_0x23e0c0);Object['defineProperty'](this,'message',{'get':function(){return _0x22ea20;}}),Error['captureStackTrace']?Error['captureStackTrace'](this,_0xc5a24f):Object['defineProperty'](this,'stack',{'value':new Error()['stack']||''}),_0x23e0c0&&_0x2bd34d(this,_0x23e0c0);}return _0xc5a24f['prototype']=Object['create'](Error['prototype'],{'constructor':{'value':_0xc5a24f,'writable':!0x0,'enumerable':!0x1,'configurable':!0x0},'name':{'get':function(){return _0x5225aa;},'set':void 0x0,'enumerable':!0x1,'configurable':!0x0},'toString':{'value':function(){return this['name']+':\x20'+this['message'];},'writable':!0x0,'enumerable':!0x1,'configurable':!0x0}}),_0xc5a24f;}_0x2eb4d8['asPromise']=requireAspromise(),_0x2eb4d8['base64']=requireBase64(),_0x2eb4d8['EventEmitter']=requireEventemitter(),_0x2eb4d8['float']=requireFloat(),_0x2eb4d8['inquire']=requireInquire(),_0x2eb4d8['utf8']=requireUtf8(),_0x2eb4d8['pool']=requirePool(),_0x2eb4d8['LongBits']=requireLongbits(),_0x2eb4d8['isNode']=Boolean(void 0x0!==commonjsGlobal&&commonjsGlobal&&commonjsGlobal['process']&&commonjsGlobal['process']['versions']&&commonjsGlobal['process']['versions']['node']),_0x2eb4d8['global']=_0x2eb4d8['isNode']&&commonjsGlobal||'undefined'!=typeof window&&window||'undefined'!=typeof self&&self||minimal$1,_0x2eb4d8['emptyArray']=Object['freeze']?Object['freeze']([]):[],_0x2eb4d8['emptyObject']=Object['freeze']?Object['freeze']({}):{},_0x2eb4d8['isInteger']=Number['isInteger']||function(_0x41434b){return'number'==typeof _0x41434b&&isFinite(_0x41434b)&&Math['floor'](_0x41434b)===_0x41434b;},_0x2eb4d8['isString']=function(_0x306b81){return'string'==typeof _0x306b81||_0x306b81 instanceof String;},_0x2eb4d8['isObject']=function(_0x504bd7){return _0x504bd7&&'object'==typeof _0x504bd7;},_0x2eb4d8['isset']=_0x2eb4d8['isSet']=function(_0x3cc8ca,_0x3040a4){var _0x17068a=_0x3cc8ca[_0x3040a4];return!(null==_0x17068a||!_0x3cc8ca['hasOwnProperty'](_0x3040a4))&&('object'!=typeof _0x17068a||(Array['isArray'](_0x17068a)?_0x17068a['length']:Object['keys'](_0x17068a)['length'])>0x0);},_0x2eb4d8['Buffer']=(function(){try{var _0x1d869f=_0x2eb4d8['inquire']('buffer')['Buffer'];return _0x1d869f['prototype']['utf8Write']?_0x1d869f:null;}catch(_0x42576e){return null;}}()),_0x2eb4d8['_Buffer_from']=null,_0x2eb4d8['_Buffer_allocUnsafe']=null,_0x2eb4d8['newBuffer']=function(_0x312707){return'number'==typeof _0x312707?_0x2eb4d8['Buffer']?_0x2eb4d8['_Buffer_allocUnsafe'](_0x312707):new _0x2eb4d8['Array'](_0x312707):_0x2eb4d8['Buffer']?_0x2eb4d8['_Buffer_from'](_0x312707):'undefined'==typeof Uint8Array?_0x312707:new Uint8Array(_0x312707);},_0x2eb4d8['Array']='undefined'!=typeof Uint8Array?Uint8Array:Array,_0x2eb4d8['Long']=_0x2eb4d8['global']['dcodeIO']&&_0x2eb4d8['global']['dcodeIO']['Long']||_0x2eb4d8['global']['Long']||_0x2eb4d8['inquire']('long'),_0x2eb4d8['key2Re']=/^true|false|0|1$/,_0x2eb4d8['key32Re']=/^-?(?:0|[1-9][0-9]*)$/,_0x2eb4d8['key64Re']=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,_0x2eb4d8['longToHash']=function(_0x1aadc4){return _0x1aadc4?_0x2eb4d8['LongBits']['from'](_0x1aadc4)['toHash']():_0x2eb4d8['LongBits']['zeroHash'];},_0x2eb4d8['longFromHash']=function(_0xb60c80,_0x540516){var _0xf3b7e7=_0x2eb4d8['LongBits']['fromHash'](_0xb60c80);return _0x2eb4d8['Long']?_0x2eb4d8['Long']['fromBits'](_0xf3b7e7['lo'],_0xf3b7e7['hi'],_0x540516):_0xf3b7e7['toNumber'](Boolean(_0x540516));},_0x2eb4d8['merge']=_0x2bd34d,_0x2eb4d8['lcFirst']=function(_0xb33c05){return _0xb33c05['charAt'](0x0)['toLowerCase']()+_0xb33c05['substring'](0x1);},_0x2eb4d8['newError']=_0x1bf7ec,_0x2eb4d8['ProtocolError']=_0x1bf7ec('ProtocolError'),_0x2eb4d8['oneOfGetter']=function(_0x1b6282){for(var _0x35e9b7={},_0x4e3f77=0x0;_0x4e3f77<_0x1b6282['length'];++_0x4e3f77)_0x35e9b7[_0x1b6282[_0x4e3f77]]=0x1;return function(){for(var _0x1debe8=Object['keys'](this),_0x44a417=_0x1debe8['length']-0x1;_0x44a417>-0x1;--_0x44a417)if(0x1===_0x35e9b7[_0x1debe8[_0x44a417]]&&void 0x0!==this[_0x1debe8[_0x44a417]]&&null!==this[_0x1debe8[_0x44a417]])return _0x1debe8[_0x44a417];};},_0x2eb4d8['oneOfSetter']=function(_0x43fc64){return function(_0x30fd60){for(var _0x648109=0x0;_0x648109<_0x43fc64['length'];++_0x648109)_0x43fc64[_0x648109]!==_0x30fd60&&delete this[_0x43fc64[_0x648109]];};},_0x2eb4d8['toJSONOptions']={'longs':String,'enums':String,'bytes':String,'json':!0x0},_0x2eb4d8['_configure']=function(){var _0x245f08=_0x2eb4d8['Buffer'];_0x245f08?(_0x2eb4d8['_Buffer_from']=_0x245f08['from']!==Uint8Array['from']&&_0x245f08['from']||function(_0x47174f,_0x3f5ce4){return new _0x245f08(_0x47174f,_0x3f5ce4);},_0x2eb4d8['_Buffer_allocUnsafe']=_0x245f08['allocUnsafe']||function(_0x2839eb){return new _0x245f08(_0x2839eb);}):_0x2eb4d8['_Buffer_from']=_0x2eb4d8['_Buffer_allocUnsafe']=null;};}())),minimal$1;}function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=0x1,writer=_0x31248a;var _0x11afe7,_0x574975=requireMinimal$1(),_0x2a68df=_0x574975['LongBits'],_0x23de54=_0x574975['base64'],_0xd1544f=_0x574975['utf8'];function _0x3db0d4(_0xd56ec0,_0x510536,_0xe159e9){this['fn']=_0xd56ec0,this['len']=_0x510536,this['next']=void 0x0,this['val']=_0xe159e9;}function _0x718fe2(){}function _0x355602(_0x246daf){this['head']=_0x246daf['head'],this['tail']=_0x246daf['tail'],this['len']=_0x246daf['len'],this['next']=_0x246daf['states'];}function _0x31248a(){this['len']=0x0,this['head']=new _0x3db0d4(_0x718fe2,0x0,0x0),this['tail']=this['head'],this['states']=null;}var _0x2c9fe4=function(){return _0x574975['Buffer']?function(){return(_0x31248a['create']=function(){return new _0x11afe7();})();}:function(){return new _0x31248a();};};function _0x8411ff(_0x268dc4,_0x36cce0,_0xefceb8){_0x36cce0[_0xefceb8]=0xff&_0x268dc4;}function _0x372696(_0x4b8e2d,_0x29a4d2){this['len']=_0x4b8e2d,this['next']=void 0x0,this['val']=_0x29a4d2;}function _0x330c2a(_0x340aee,_0x2a23b5,_0x45388d){for(;_0x340aee['hi'];)_0x2a23b5[_0x45388d++]=0x7f&_0x340aee['lo']|0x80,_0x340aee['lo']=(_0x340aee['lo']>>>0x7|_0x340aee['hi']<<0x19)>>>0x0,_0x340aee['hi']>>>=0x7;for(;_0x340aee['lo']>0x7f;)_0x2a23b5[_0x45388d++]=0x7f&_0x340aee['lo']|0x80,_0x340aee['lo']=_0x340aee['lo']>>>0x7;_0x2a23b5[_0x45388d++]=_0x340aee['lo'];}function _0x548fa7(_0x2ffde8,_0x2fd4e6,_0x2da31d){_0x2fd4e6[_0x2da31d]=0xff&_0x2ffde8,_0x2fd4e6[_0x2da31d+0x1]=_0x2ffde8>>>0x8&0xff,_0x2fd4e6[_0x2da31d+0x2]=_0x2ffde8>>>0x10&0xff,_0x2fd4e6[_0x2da31d+0x3]=_0x2ffde8>>>0x18;}_0x31248a['create']=_0x2c9fe4(),_0x31248a['alloc']=function(_0x9aedd2){return new _0x574975['Array'](_0x9aedd2);},_0x574975['Array']!==Array&&(_0x31248a['alloc']=_0x574975['pool'](_0x31248a['alloc'],_0x574975['Array']['prototype']['subarray'])),_0x31248a['prototype']['_push']=function(_0xacb0bc,_0x4da15c,_0x3b492f){return this['tail']=this['tail']['next']=new _0x3db0d4(_0xacb0bc,_0x4da15c,_0x3b492f),this['len']+=_0x4da15c,this;},_0x372696['prototype']=Object['create'](_0x3db0d4['prototype']),_0x372696['prototype']['fn']=function(_0x54e819,_0x5b040c,_0x341676){for(;_0x54e819>0x7f;)_0x5b040c[_0x341676++]=0x7f&_0x54e819|0x80,_0x54e819>>>=0x7;_0x5b040c[_0x341676]=_0x54e819;},_0x31248a['prototype']['uint32']=function(_0x5027fd){return this['len']+=(this['tail']=this['tail']['next']=new _0x372696((_0x5027fd>>>=0x0)<0x80?0x1:_0x5027fd<0x4000?0x2:_0x5027fd<0x200000?0x3:_0x5027fd<0x10000000?0x4:0x5,_0x5027fd))['len'],this;},_0x31248a['prototype']['int32']=function(_0x5a3110){return _0x5a3110<0x0?this['_push'](_0x330c2a,0xa,_0x2a68df['fromNumber'](_0x5a3110)):this['uint32'](_0x5a3110);},_0x31248a['prototype']['sint32']=function(_0x5515e0){return this['uint32']((_0x5515e0<<0x1^_0x5515e0>>0x1f)>>>0x0);},_0x31248a['prototype']['uint64']=function(_0x5bb909){var _0x55639f=_0x2a68df['from'](_0x5bb909);return this['_push'](_0x330c2a,_0x55639f['length'](),_0x55639f);},_0x31248a['prototype']['int64']=_0x31248a['prototype']['uint64'],_0x31248a['prototype']['sint64']=function(_0x2be6d5){var _0x19f83c=_0x2a68df['from'](_0x2be6d5)['zzEncode']();return this['_push'](_0x330c2a,_0x19f83c['length'](),_0x19f83c);},_0x31248a['prototype']['bool']=function(_0x305766){return this['_push'](_0x8411ff,0x1,_0x305766?0x1:0x0);},_0x31248a['prototype']['fixed32']=function(_0x1868ac){return this['_push'](_0x548fa7,0x4,_0x1868ac>>>0x0);},_0x31248a['prototype']['sfixed32']=_0x31248a['prototype']['fixed32'],_0x31248a['prototype']['fixed64']=function(_0x44a6fe){var _0xdb5f9b=_0x2a68df['from'](_0x44a6fe);return this['_push'](_0x548fa7,0x4,_0xdb5f9b['lo'])['_push'](_0x548fa7,0x4,_0xdb5f9b['hi']);},_0x31248a['prototype']['sfixed64']=_0x31248a['prototype']['fixed64'],_0x31248a['prototype']['float']=function(_0x1025aa){return this['_push'](_0x574975['float']['writeFloatLE'],0x4,_0x1025aa);},_0x31248a['prototype']['double']=function(_0x368702){return this['_push'](_0x574975['float']['writeDoubleLE'],0x8,_0x368702);};var _0x1545e7=_0x574975['Array']['prototype']['set']?function(_0x4994c6,_0x5b1c85,_0xa22fdd){_0x5b1c85['set'](_0x4994c6,_0xa22fdd);}:function(_0x33fee6,_0x219f36,_0x4f868d){for(var _0x230baa=0x0;_0x230baa<_0x33fee6['length'];++_0x230baa)_0x219f36[_0x4f868d+_0x230baa]=_0x33fee6[_0x230baa];};return _0x31248a['prototype']['bytes']=function(_0x2b5027){var _0x1274c0=_0x2b5027['length']>>>0x0;if(!_0x1274c0)return this['_push'](_0x8411ff,0x1,0x0);if(_0x574975['isString'](_0x2b5027)){var _0x9f138e=_0x31248a['alloc'](_0x1274c0=_0x23de54['length'](_0x2b5027));_0x23de54['decode'](_0x2b5027,_0x9f138e,0x0),_0x2b5027=_0x9f138e;}return this['uint32'](_0x1274c0)['_push'](_0x1545e7,_0x1274c0,_0x2b5027);},_0x31248a['prototype']['string']=function(_0x452c61){var _0x1f7484=_0xd1544f['length'](_0x452c61);return _0x1f7484?this['uint32'](_0x1f7484)['_push'](_0xd1544f['write'],_0x1f7484,_0x452c61):this['_push'](_0x8411ff,0x1,0x0);},_0x31248a['prototype']['fork']=function(){return this['states']=new _0x355602(this),this['head']=this['tail']=new _0x3db0d4(_0x718fe2,0x0,0x0),this['len']=0x0,this;},_0x31248a['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 _0x3db0d4(_0x718fe2,0x0,0x0),this['len']=0x0),this;},_0x31248a['prototype']['ldelim']=function(){var _0x3646a1=this['head'],_0x30019f=this['tail'],_0x4f957c=this['len'];return this['reset']()['uint32'](_0x4f957c),_0x4f957c&&(this['tail']['next']=_0x3646a1['next'],this['tail']=_0x30019f,this['len']+=_0x4f957c),this;},_0x31248a['prototype']['finish']=function(){for(var _0x134c3f=this['head']['next'],_0x4ee1c9=this['constructor']['alloc'](this['len']),_0x35e63d=0x0;_0x134c3f;)_0x134c3f['fn'](_0x134c3f['val'],_0x4ee1c9,_0x35e63d),_0x35e63d+=_0x134c3f['len'],_0x134c3f=_0x134c3f['next'];return _0x4ee1c9;},_0x31248a['_configure']=function(_0x5f0ae4){_0x11afe7=_0x5f0ae4,_0x31248a['create']=_0x2c9fe4(),_0x11afe7['_configure']();},writer;}function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=0x1,writer_buffer=_0xb8d447;var _0x49fb7d=requireWriter();(_0xb8d447['prototype']=Object['create'](_0x49fb7d['prototype']))['constructor']=_0xb8d447;var _0x3079d5=requireMinimal$1();function _0xb8d447(){_0x49fb7d['call'](this);}function _0x3bc959(_0x2d6b72,_0x53da32,_0x1520da){_0x2d6b72['length']<0x28?_0x3079d5['utf8']['write'](_0x2d6b72,_0x53da32,_0x1520da):_0x53da32['utf8Write']?_0x53da32['utf8Write'](_0x2d6b72,_0x1520da):_0x53da32['write'](_0x2d6b72,_0x1520da);}return _0xb8d447['_configure']=function(){_0xb8d447['alloc']=_0x3079d5['_Buffer_allocUnsafe'],_0xb8d447['writeBytesBuffer']=_0x3079d5['Buffer']&&_0x3079d5['Buffer']['prototype']instanceof Uint8Array&&'set'===_0x3079d5['Buffer']['prototype']['set']['name']?function(_0x13087f,_0x37aa4e,_0xe8a112){_0x37aa4e['set'](_0x13087f,_0xe8a112);}:function(_0x52fc43,_0x1bc3e9,_0x2c03e2){if(_0x52fc43['copy'])_0x52fc43['copy'](_0x1bc3e9,_0x2c03e2,0x0,_0x52fc43['length']);else{for(var _0x41658f=0x0;_0x41658f<_0x52fc43['length'];)_0x1bc3e9[_0x2c03e2++]=_0x52fc43[_0x41658f++];}};},_0xb8d447['prototype']['bytes']=function(_0x514c88){_0x3079d5['isString'](_0x514c88)&&(_0x514c88=_0x3079d5['_Buffer_from'](_0x514c88,'base64'));var _0x81ad79=_0x514c88['length']>>>0x0;return this['uint32'](_0x81ad79),_0x81ad79&&this['_push'](_0xb8d447['writeBytesBuffer'],_0x81ad79,_0x514c88),this;},_0xb8d447['prototype']['string']=function(_0x906a2d){var _0x46f67f=_0x3079d5['Buffer']['byteLength'](_0x906a2d);return this['uint32'](_0x46f67f),_0x46f67f&&this['_push'](_0x3bc959,_0x46f67f,_0x906a2d),this;},_0xb8d447['_configure'](),writer_buffer;}function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=0x1,reader=_0xa18767;var _0x32fa74,_0x220d7e=requireMinimal$1(),_0x5c9bf0=_0x220d7e['LongBits'],_0x1aa66b=_0x220d7e['utf8'];function _0x1d472d(_0x3f9827,_0x2f9602){return RangeError('index\x20out\x20of\x20range:\x20'+_0x3f9827['pos']+'\x20+\x20'+(_0x2f9602||0x1)+'\x20>\x20'+_0x3f9827['len']);}function _0xa18767(_0x2d56c2){this['buf']=_0x2d56c2,this['pos']=0x0,this['len']=_0x2d56c2['length'];}var _0x2e4bd7='undefined'!=typeof Uint8Array?function(_0x26eec4){if(_0x26eec4 instanceof Uint8Array||Array['isArray'](_0x26eec4))return new _0xa18767(_0x26eec4);throw Error('illegal\x20buffer');}:function(_0x27cebd){if(Array['isArray'](_0x27cebd))return new _0xa18767(_0x27cebd);throw Error('illegal\x20buffer');},_0x4e9619=function(){return _0x220d7e['Buffer']?function(_0xd1892c){return(_0xa18767['create']=function(_0x52d9eb){return _0x220d7e['Buffer']['isBuffer'](_0x52d9eb)?new _0x32fa74(_0x52d9eb):_0x2e4bd7(_0x52d9eb);})(_0xd1892c);}:_0x2e4bd7;};function _0x58e1ac(){var _0x3f8621=new _0x5c9bf0(0x0,0x0),_0x7f4e9c=0x0;if(!(this['len']-this['pos']>0x4)){for(;_0x7f4e9c<0x3;++_0x7f4e9c){if(this['pos']>=this['len'])throw _0x1d472d(this);if(_0x3f8621['lo']=(_0x3f8621['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x7f4e9c)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x3f8621;}return _0x3f8621['lo']=(_0x3f8621['lo']|(0x7f&this['buf'][this['pos']++])<<0x7*_0x7f4e9c)>>>0x0,_0x3f8621;}for(;_0x7f4e9c<0x4;++_0x7f4e9c)if(_0x3f8621['lo']=(_0x3f8621['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x7f4e9c)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x3f8621;if(_0x3f8621['lo']=(_0x3f8621['lo']|(0x7f&this['buf'][this['pos']])<<0x1c)>>>0x0,_0x3f8621['hi']=(_0x3f8621['hi']|(0x7f&this['buf'][this['pos']])>>0x4)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x3f8621;if(_0x7f4e9c=0x0,this['len']-this['pos']>0x4){for(;_0x7f4e9c<0x5;++_0x7f4e9c)if(_0x3f8621['hi']=(_0x3f8621['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x7f4e9c+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x3f8621;}else for(;_0x7f4e9c<0x5;++_0x7f4e9c){if(this['pos']>=this['len'])throw _0x1d472d(this);if(_0x3f8621['hi']=(_0x3f8621['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x7f4e9c+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x3f8621;}throw Error('invalid\x20varint\x20encoding');}function _0x30af94(_0x5367a6,_0x222391){return(_0x5367a6[_0x222391-0x4]|_0x5367a6[_0x222391-0x3]<<0x8|_0x5367a6[_0x222391-0x2]<<0x10|_0x5367a6[_0x222391-0x1]<<0x18)>>>0x0;}function _0x25f2c4(){if(this['pos']+0x8>this['len'])throw _0x1d472d(this,0x8);return new _0x5c9bf0(_0x30af94(this['buf'],this['pos']+=0x4),_0x30af94(this['buf'],this['pos']+=0x4));}return _0xa18767['create']=_0x4e9619(),_0xa18767['prototype']['_slice']=_0x220d7e['Array']['prototype']['subarray']||_0x220d7e['Array']['prototype']['slice'],_0xa18767['prototype']['uint32']=(function(){var _0x5dad45=0xffffffff;return function(){if(_0x5dad45=(0x7f&this['buf'][this['pos']])>>>0x0,this['buf'][this['pos']++]<0x80)return _0x5dad45;if(_0x5dad45=(_0x5dad45|(0x7f&this['buf'][this['pos']])<<0x7)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x5dad45;if(_0x5dad45=(_0x5dad45|(0x7f&this['buf'][this['pos']])<<0xe)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x5dad45;if(_0x5dad45=(_0x5dad45|(0x7f&this['buf'][this['pos']])<<0x15)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x5dad45;if(_0x5dad45=(_0x5dad45|(0xf&this['buf'][this['pos']])<<0x1c)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x5dad45;if((this['pos']+=0x5)>this['len'])throw this['pos']=this['len'],_0x1d472d(this,0xa);return _0x5dad45;};}()),_0xa18767['prototype']['int32']=function(){return 0x0|this['uint32']();},_0xa18767['prototype']['sint32']=function(){var _0x2a40d8=this['uint32']();return _0x2a40d8>>>0x1^-(0x1&_0x2a40d8);},_0xa18767['prototype']['bool']=function(){return 0x0!==this['uint32']();},_0xa18767['prototype']['fixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x1d472d(this,0x4);return _0x30af94(this['buf'],this['pos']+=0x4);},_0xa18767['prototype']['sfixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x1d472d(this,0x4);return 0x0|_0x30af94(this['buf'],this['pos']+=0x4);},_0xa18767['prototype']['float']=function(){if(this['pos']+0x4>this['len'])throw _0x1d472d(this,0x4);var _0x33baae=_0x220d7e['float']['readFloatLE'](this['buf'],this['pos']);return this['pos']+=0x4,_0x33baae;},_0xa18767['prototype']['double']=function(){if(this['pos']+0x8>this['len'])throw _0x1d472d(this,0x4);var _0x4bac6a=_0x220d7e['float']['readDoubleLE'](this['buf'],this['pos']);return this['pos']+=0x8,_0x4bac6a;},_0xa18767['prototype']['bytes']=function(){var _0x1a09f7=this['uint32'](),_0x67b9c=this['pos'],_0x4e27e0=this['pos']+_0x1a09f7;if(_0x4e27e0>this['len'])throw _0x1d472d(this,_0x1a09f7);if(this['pos']+=_0x1a09f7,Array['isArray'](this['buf']))return this['buf']['slice'](_0x67b9c,_0x4e27e0);if(_0x67b9c===_0x4e27e0){var _0x9a31c=_0x220d7e['Buffer'];return _0x9a31c?_0x9a31c['alloc'](0x0):new this['buf']['constructor'](0x0);}return this['_slice']['call'](this['buf'],_0x67b9c,_0x4e27e0);},_0xa18767['prototype']['string']=function(){var _0x1162f9=this['bytes']();return _0x1aa66b['read'](_0x1162f9,0x0,_0x1162f9['length']);},_0xa18767['prototype']['skip']=function(_0x4faf78){if('number'==typeof _0x4faf78){if(this['pos']+_0x4faf78>this['len'])throw _0x1d472d(this,_0x4faf78);this['pos']+=_0x4faf78;}else do{if(this['pos']>=this['len'])throw _0x1d472d(this);}while(0x80&this['buf'][this['pos']++]);return this;},_0xa18767['prototype']['skipType']=function(_0x2098f5){switch(_0x2098f5){case 0x0:this['skip']();break;case 0x1:this['skip'](0x8);break;case 0x2:this['skip'](this['uint32']());break;case 0x3:for(;0x4!=(_0x2098f5=0x7&this['uint32']());)this['skipType'](_0x2098f5);break;case 0x5:this['skip'](0x4);break;default:throw Error('invalid\x20wire\x20type\x20'+_0x2098f5+'\x20at\x20offset\x20'+this['pos']);}return this;},_0xa18767['_configure']=function(_0x3e96e5){_0x32fa74=_0x3e96e5,_0xa18767['create']=_0x4e9619(),_0x32fa74['_configure']();var _0x45469f=_0x220d7e['Long']?'toLong':'toNumber';_0x220d7e['merge'](_0xa18767['prototype'],{'int64':function(){return _0x58e1ac['call'](this)[_0x45469f](!0x1);},'uint64':function(){return _0x58e1ac['call'](this)[_0x45469f](!0x0);},'sint64':function(){return _0x58e1ac['call'](this)['zzDecode']()[_0x45469f](!0x1);},'fixed64':function(){return _0x25f2c4['call'](this)[_0x45469f](!0x0);},'sfixed64':function(){return _0x25f2c4['call'](this)[_0x45469f](!0x1);}});},reader;}function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=0x1,reader_buffer=_0x16a2f8;var _0x3075ac=requireReader();(_0x16a2f8['prototype']=Object['create'](_0x3075ac['prototype']))['constructor']=_0x16a2f8;var _0x32645f=requireMinimal$1();function _0x16a2f8(_0x33e36c){_0x3075ac['call'](this,_0x33e36c);}return _0x16a2f8['_configure']=function(){_0x32645f['Buffer']&&(_0x16a2f8['prototype']['_slice']=_0x32645f['Buffer']['prototype']['slice']);},_0x16a2f8['prototype']['string']=function(){var _0x5e11ee=this['uint32']();return this['buf']['utf8Slice']?this['buf']['utf8Slice'](this['pos'],this['pos']=Math['min'](this['pos']+_0x5e11ee,this['len'])):this['buf']['toString']('utf-8',this['pos'],this['pos']=Math['min'](this['pos']+_0x5e11ee,this['len']));},_0x16a2f8['_configure'](),reader_buffer;}var rpc={},service,hasRequiredService,hasRequiredRpc,roots,hasRequiredRoots,hasRequiredIndexMinimal,minimal,hasRequiredMinimal;function requireService(){if(hasRequiredService)return service;hasRequiredService=0x1,service=_0x4ff8f8;var _0x16441f=requireMinimal$1();function _0x4ff8f8(_0x5255dc,_0x476070,_0x2c59eb){if('function'!=typeof _0x5255dc)throw TypeError('rpcImpl\x20must\x20be\x20a\x20function');_0x16441f['EventEmitter']['call'](this),this['rpcImpl']=_0x5255dc,this['requestDelimited']=Boolean(_0x476070),this['responseDelimited']=Boolean(_0x2c59eb);}return(_0x4ff8f8['prototype']=Object['create'](_0x16441f['EventEmitter']['prototype']))['constructor']=_0x4ff8f8,_0x4ff8f8['prototype']['rpcCall']=function _0x410b6e(_0x2d5109,_0x13bd3f,_0xa7854,_0x1862c4,_0x463a21){if(!_0x1862c4)throw TypeError('request\x20must\x20be\x20specified');var _0x4338c9=this;if(!_0x463a21)return _0x16441f['asPromise'](_0x410b6e,_0x4338c9,_0x2d5109,_0x13bd3f,_0xa7854,_0x1862c4);if(_0x4338c9['rpcImpl'])try{return _0x4338c9['rpcImpl'](_0x2d5109,_0x13bd3f[_0x4338c9['requestDelimited']?'encodeDelimited':'encode'](_0x1862c4)['finish'](),function(_0x44d86a,_0x3e0ebd){if(_0x44d86a)return _0x4338c9['emit']('error',_0x44d86a,_0x2d5109),_0x463a21(_0x44d86a);if(null!==_0x3e0ebd){if(!(_0x3e0ebd instanceof _0xa7854))try{_0x3e0ebd=_0xa7854[_0x4338c9['responseDelimited']?'decodeDelimited':'decode'](_0x3e0ebd);}catch(_0x2a5d35){return _0x4338c9['emit']('error',_0x2a5d35,_0x2d5109),_0x463a21(_0x2a5d35);}return _0x4338c9['emit']('data',_0x3e0ebd,_0x2d5109),_0x463a21(null,_0x3e0ebd);}_0x4338c9['end'](!0x0);});}catch(_0x54363f){return _0x4338c9['emit']('error',_0x54363f,_0x2d5109),void setTimeout(function(){_0x463a21(_0x54363f);},0x0);}else setTimeout(function(){_0x463a21(Error('already\x20ended'));},0x0);},_0x4ff8f8['prototype']['end']=function(_0x9983d4){return this['rpcImpl']&&(_0x9983d4||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 _0x37cf1f=indexMinimal;function _0x47d1f1(){_0x37cf1f['util']['_configure'](),_0x37cf1f['Writer']['_configure'](_0x37cf1f['BufferWriter']),_0x37cf1f['Reader']['_configure'](_0x37cf1f['BufferReader']);}_0x37cf1f['build']='minimal',_0x37cf1f['Writer']=requireWriter(),_0x37cf1f['BufferWriter']=requireWriter_buffer(),_0x37cf1f['Reader']=requireReader(),_0x37cf1f['BufferReader']=requireReader_buffer(),_0x37cf1f['util']=requireMinimal$1(),_0x37cf1f['rpc']=requireRpc(),_0x37cf1f['roots']=requireRoots(),_0x37cf1f['configure']=_0x47d1f1,_0x47d1f1();}())),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'](_0x5a7d1e=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_0x5a7d1e]]=_0x5a7d1e;});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=_0x306616=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x306616):_0x306616&&_0x306616['buffer']instanceof ArrayBuffer,encodePacket=({type:_0x4b6ee7,data:_0x2fa056},_0xa4e317,_0x52f5d1)=>withNativeBlob$1&&_0x2fa056 instanceof Blob?_0xa4e317?_0x52f5d1(_0x2fa056):encodeBlobAsBase64(_0x2fa056,_0x52f5d1):withNativeArrayBuffer$2&&(_0x2fa056 instanceof ArrayBuffer||isView$1(_0x2fa056))?_0xa4e317?_0x52f5d1(_0x2fa056):encodeBlobAsBase64(new Blob([_0x2fa056]),_0x52f5d1):_0x52f5d1(PACKET_TYPES[_0x4b6ee7]+(_0x2fa056||'')),encodeBlobAsBase64=(_0x1ccf93,_0x4613f7)=>{const _0x309ffd=new FileReader();return _0x309ffd['onload']=function(){const _0x521c5f=_0x309ffd['result']['split'](',')[0x1];_0x4613f7('b'+(_0x521c5f||''));},_0x309ffd['readAsDataURL'](_0x1ccf93);};function toArray(_0x10d226){return _0x10d226 instanceof Uint8Array?_0x10d226:_0x10d226 instanceof ArrayBuffer?new Uint8Array(_0x10d226):new Uint8Array(_0x10d226['buffer'],_0x10d226['byteOffset'],_0x10d226['byteLength']);}let TEXT_ENCODER;function encodePacketToBinary(_0xcf307,_0x42e178){return withNativeBlob$1&&_0xcf307['data']instanceof Blob?_0xcf307['data']['arrayBuffer']()['then'](toArray)['then'](_0x42e178):withNativeArrayBuffer$2&&(_0xcf307['data']instanceof ArrayBuffer||isView$1(_0xcf307['data']))?_0x42e178(toArray(_0xcf307['data'])):void encodePacket(_0xcf307,!0x1,_0x1be6dc=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder()),_0x42e178(TEXT_ENCODER['encode'](_0x1be6dc));});}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=_0xbed349=>{let _0x2e273e,_0xdff64d,_0x492559,_0x44eac0,_0x1e2952,_0x461a10=0.75*_0xbed349['length'],_0x1b938d=_0xbed349['length'],_0x397705=0x0;'='===_0xbed349[_0xbed349['length']-0x1]&&(_0x461a10--,'='===_0xbed349[_0xbed349['length']-0x2]&&_0x461a10--);const _0x333134=new ArrayBuffer(_0x461a10),_0x522e86=new Uint8Array(_0x333134);for(_0x2e273e=0x0;_0x2e273e<_0x1b938d;_0x2e273e+=0x4)_0xdff64d=lookup$1[_0xbed349['charCodeAt'](_0x2e273e)],_0x492559=lookup$1[_0xbed349['charCodeAt'](_0x2e273e+0x1)],_0x44eac0=lookup$1[_0xbed349['charCodeAt'](_0x2e273e+0x2)],_0x1e2952=lookup$1[_0xbed349['charCodeAt'](_0x2e273e+0x3)],_0x522e86[_0x397705++]=_0xdff64d<<0x2|_0x492559>>0x4,_0x522e86[_0x397705++]=(0xf&_0x492559)<<0x4|_0x44eac0>>0x2,_0x522e86[_0x397705++]=(0x3&_0x44eac0)<<0x6|0x3f&_0x1e2952;return _0x333134;},withNativeArrayBuffer$1='function'==typeof ArrayBuffer,decodePacket=(_0x58d49d,_0x14d71f)=>{if('string'!=typeof _0x58d49d)return{'type':'message','data':mapBinary(_0x58d49d,_0x14d71f)};const _0x4d7a59=_0x58d49d['charAt'](0x0);if('b'===_0x4d7a59)return{'type':'message','data':decodeBase64Packet(_0x58d49d['substring'](0x1),_0x14d71f)};return PACKET_TYPES_REVERSE[_0x4d7a59]?_0x58d49d['length']>0x1?{'type':PACKET_TYPES_REVERSE[_0x4d7a59],'data':_0x58d49d['substring'](0x1)}:{'type':PACKET_TYPES_REVERSE[_0x4d7a59]}:ERROR_PACKET;},decodeBase64Packet=(_0x8ec2cf,_0x381f1a)=>{if(withNativeArrayBuffer$1){const _0xdb5ee7=decode$1(_0x8ec2cf);return mapBinary(_0xdb5ee7,_0x381f1a);}return{'base64':!0x0,'data':_0x8ec2cf};},mapBinary=(_0x28ace4,_0x326893)=>'blob'===_0x326893?_0x28ace4 instanceof Blob?_0x28ace4:new Blob([_0x28ace4]):_0x28ace4 instanceof ArrayBuffer?_0x28ace4:_0x28ace4['buffer'],SEPARATOR$2=String['fromCharCode'](0x1e),encodePayload=(_0x5a4611,_0x4b8d4c)=>{const _0x3b5a2e=_0x5a4611['length'],_0x39ebd7=new Array(_0x3b5a2e);let _0x5e4554=0x0;_0x5a4611['forEach']((_0x261812,_0x5ac658)=>{encodePacket(_0x261812,!0x1,_0x15e5d2=>{_0x39ebd7[_0x5ac658]=_0x15e5d2,++_0x5e4554===_0x3b5a2e&&_0x4b8d4c(_0x39ebd7['join'](SEPARATOR$2));});});},decodePayload=(_0x20ebeb,_0x11b4eb)=>{const _0x5b64f1=_0x20ebeb['split'](SEPARATOR$2),_0x29395b=[];for(let _0x380371=0x0;_0x380371<_0x5b64f1['length'];_0x380371++){const _0x37fc13=decodePacket(_0x5b64f1[_0x380371],_0x11b4eb);if(_0x29395b['push'](_0x37fc13),'error'===_0x37fc13['type'])break;}return _0x29395b;};function createPacketEncoderStream(){return new TransformStream({'transform'(_0x296ea2,_0x177963){encodePacketToBinary(_0x296ea2,_0x3e7ba0=>{const _0x23005b=_0x3e7ba0['length'];let _0x1205db;if(_0x23005b<0x7e)_0x1205db=new Uint8Array(0x1),new DataView(_0x1205db['buffer'])['setUint8'](0x0,_0x23005b);else{if(_0x23005b<0x10000){_0x1205db=new Uint8Array(0x3);const _0x290767=new DataView(_0x1205db['buffer']);_0x290767['setUint8'](0x0,0x7e),_0x290767['setUint16'](0x1,_0x23005b);}else{_0x1205db=new Uint8Array(0x9);const _0x2dcb74=new DataView(_0x1205db['buffer']);_0x2dcb74['setUint8'](0x0,0x7f),_0x2dcb74['setBigUint64'](0x1,BigInt(_0x23005b));}}_0x296ea2['data']&&'string'!=typeof _0x296ea2['data']&&(_0x1205db[0x0]|=0x80),_0x177963['enqueue'](_0x1205db),_0x177963['enqueue'](_0x3e7ba0);});}});}let TEXT_DECODER;function totalLength(_0x34b634){return _0x34b634['reduce']((_0x1e9911,_0x10f30c)=>_0x1e9911+_0x10f30c['length'],0x0);}function concatChunks(_0x3aa3d2,_0x27aed0){if(_0x3aa3d2[0x0]['length']===_0x27aed0)return _0x3aa3d2['shift']();const _0x523d46=new Uint8Array(_0x27aed0);let _0x2ab154=0x0;for(let _0x36f73f=0x0;_0x36f73f<_0x27aed0;_0x36f73f++)_0x523d46[_0x36f73f]=_0x3aa3d2[0x0][_0x2ab154++],_0x2ab154===_0x3aa3d2[0x0]['length']&&(_0x3aa3d2['shift'](),_0x2ab154=0x0);return _0x3aa3d2['length']&&_0x2ab154<_0x3aa3d2[0x0]['length']&&(_0x3aa3d2[0x0]=_0x3aa3d2[0x0]['slice'](_0x2ab154)),_0x523d46;}function createPacketDecoderStream(_0x2ef911,_0x581389){TEXT_DECODER||(TEXT_DECODER=new TextDecoder());const _0x4eee98=[];let _0x59c91e=0x0,_0x299157=-0x1,_0x4ad697=!0x1;return new TransformStream({'transform'(_0x57638f,_0x4511ea){for(_0x4eee98['push'](_0x57638f);;){if(0x0===_0x59c91e){if(totalLength(_0x4eee98)<0x1)break;const _0x1229b7=concatChunks(_0x4eee98,0x1);_0x4ad697=!(0x80&~_0x1229b7[0x0]),_0x299157=0x7f&_0x1229b7[0x0],_0x59c91e=_0x299157<0x7e?0x3:0x7e===_0x299157?0x1:0x2;}else{if(0x1===_0x59c91e){if(totalLength(_0x4eee98)<0x2)break;const _0x56b3cb=concatChunks(_0x4eee98,0x2);_0x299157=new DataView(_0x56b3cb['buffer'],_0x56b3cb['byteOffset'],_0x56b3cb['length'])['getUint16'](0x0),_0x59c91e=0x3;}else{if(0x2===_0x59c91e){if(totalLength(_0x4eee98)<0x8)break;const _0x2b84f4=concatChunks(_0x4eee98,0x8),_0x55e9de=new DataView(_0x2b84f4['buffer'],_0x2b84f4['byteOffset'],_0x2b84f4['length']),_0x290549=_0x55e9de['getUint32'](0x0);if(_0x290549>Math['pow'](0x2,0x15)-0x1){_0x4511ea['enqueue'](ERROR_PACKET);break;}_0x299157=_0x290549*Math['pow'](0x2,0x20)+_0x55e9de['getUint32'](0x4),_0x59c91e=0x3;}else{if(totalLength(_0x4eee98)<_0x299157)break;const _0xf0755e=concatChunks(_0x4eee98,_0x299157);_0x4511ea['enqueue'](decodePacket(_0x4ad697?_0xf0755e:TEXT_DECODER['decode'](_0xf0755e),_0x581389)),_0x59c91e=0x0;}}}if(0x0===_0x299157||_0x299157>_0x2ef911){_0x4511ea['enqueue'](ERROR_PACKET);break;}}}});}const protocol=0x4;function Emitter(_0x287dab){if(_0x287dab)return mixin(_0x287dab);}function mixin(_0x173f96){for(var _0x29cf45 in Emitter['prototype'])_0x173f96[_0x29cf45]=Emitter['prototype'][_0x29cf45];return _0x173f96;}Emitter['prototype']['on']=Emitter['prototype']['addEventListener']=function(_0x421d43,_0x1476e7){return this['_callbacks']=this['_callbacks']||{},(this['_callbacks']['$'+_0x421d43]=this['_callbacks']['$'+_0x421d43]||[])['push'](_0x1476e7),this;},Emitter['prototype']['once']=function(_0x4479a9,_0x166d09){function _0x56fda2(){this['off'](_0x4479a9,_0x56fda2),_0x166d09['apply'](this,arguments);}return _0x56fda2['fn']=_0x166d09,this['on'](_0x4479a9,_0x56fda2),this;},Emitter['prototype']['off']=Emitter['prototype']['removeListener']=Emitter['prototype']['removeAllListeners']=Emitter['prototype']['removeEventListener']=function(_0x7765cd,_0x403cd8){if(this['_callbacks']=this['_callbacks']||{},0x0==arguments['length'])return this['_callbacks']={},this;var _0xf48ba8,_0x10eab2=this['_callbacks']['$'+_0x7765cd];if(!_0x10eab2)return this;if(0x1==arguments['length'])return delete this['_callbacks']['$'+_0x7765cd],this;for(var _0x333d64=0x0;_0x333d64<_0x10eab2['length'];_0x333d64++)if((_0xf48ba8=_0x10eab2[_0x333d64])===_0x403cd8||_0xf48ba8['fn']===_0x403cd8){_0x10eab2['splice'](_0x333d64,0x1);break;}return 0x0===_0x10eab2['length']&&delete this['_callbacks']['$'+_0x7765cd],this;},Emitter['prototype']['emit']=function(_0x514ceb){this['_callbacks']=this['_callbacks']||{};for(var _0x154ea2=new Array(arguments['length']-0x1),_0x225bdb=this['_callbacks']['$'+_0x514ceb],_0x260264=0x1;_0x260264<arguments['length'];_0x260264++)_0x154ea2[_0x260264-0x1]=arguments[_0x260264];if(_0x225bdb){_0x260264=0x0;for(var _0xdb3f22=(_0x225bdb=_0x225bdb['slice'](0x0))['length'];_0x260264<_0xdb3f22;++_0x260264)_0x225bdb[_0x260264]['apply'](this,_0x154ea2);}return this;},Emitter['prototype']['emitReserved']=Emitter['prototype']['emit'],Emitter['prototype']['listeners']=function(_0x38dbb7){return this['_callbacks']=this['_callbacks']||{},this['_callbacks']['$'+_0x38dbb7]||[];},Emitter['prototype']['hasListeners']=function(_0x24369f){return!!this['listeners'](_0x24369f)['length'];};const globalThisShim='undefined'!=typeof self?self:'undefined'!=typeof window?window:Function('return\x20this')();function pick$1(_0x7cd53f,..._0x4d11ab){return _0x4d11ab['reduce']((_0x182ec8,_0x5f0513)=>(_0x7cd53f['hasOwnProperty'](_0x5f0513)&&(_0x182ec8[_0x5f0513]=_0x7cd53f[_0x5f0513]),_0x182ec8),{});}const NATIVE_SET_TIMEOUT=globalThisShim['setTimeout'],NATIVE_CLEAR_TIMEOUT=globalThisShim['clearTimeout'];function installTimerFunctions(_0x58b6af,_0x33f840){_0x33f840['useNativeTimers']?(_0x58b6af['setTimeoutFn']=NATIVE_SET_TIMEOUT['bind'](globalThisShim),_0x58b6af['clearTimeoutFn']=NATIVE_CLEAR_TIMEOUT['bind'](globalThisShim)):(_0x58b6af['setTimeoutFn']=globalThisShim['setTimeout']['bind'](globalThisShim),_0x58b6af['clearTimeoutFn']=globalThisShim['clearTimeout']['bind'](globalThisShim));}const BASE64_OVERHEAD=1.33;function byteLength(_0x3c632a){return'string'==typeof _0x3c632a?utf8Length(_0x3c632a):Math['ceil']((_0x3c632a['byteLength']||_0x3c632a['size'])*BASE64_OVERHEAD);}function utf8Length(_0x12a878){let _0x1e27fc=0x0,_0x3ac89d=0x0;for(let _0x200aa4=0x0,_0x51361b=_0x12a878['length'];_0x200aa4<_0x51361b;_0x200aa4++)_0x1e27fc=_0x12a878['charCodeAt'](_0x200aa4),_0x1e27fc<0x80?_0x3ac89d+=0x1:_0x1e27fc<0x800?_0x3ac89d+=0x2:_0x1e27fc<0xd800||_0x1e27fc>=0xe000?_0x3ac89d+=0x3:(_0x200aa4++,_0x3ac89d+=0x4);return _0x3ac89d;}function encode$1(_0x565185){let _0x26c51f='';for(let _0xcea7de in _0x565185)_0x565185['hasOwnProperty'](_0xcea7de)&&(_0x26c51f['length']&&(_0x26c51f+='&'),_0x26c51f+=encodeURIComponent(_0xcea7de)+'='+encodeURIComponent(_0x565185[_0xcea7de]));return _0x26c51f;}function decode(_0x3a0b0e){let _0x117e14={},_0x213bea=_0x3a0b0e['split']('&');for(let _0x59f509=0x0,_0x5eff63=_0x213bea['length'];_0x59f509<_0x5eff63;_0x59f509++){let _0x10e50c=_0x213bea[_0x59f509]['split']('=');_0x117e14[decodeURIComponent(_0x10e50c[0x0])]=decodeURIComponent(_0x10e50c[0x1]);}return _0x117e14;}class TransportError extends Error{constructor(_0xf7125f,_0x15aacb,_0x2ad624){super(_0xf7125f),this['description']=_0x15aacb,this['context']=_0x2ad624,this['type']='TransportError';}}class Transport extends Emitter{constructor(_0x269da4){super(),this['writable']=!0x1,installTimerFunctions(this,_0x269da4),this['opts']=_0x269da4,this['query']=_0x269da4['query'],this['socket']=_0x269da4['socket'];}['onError'](_0x42ae04,_0x50c5f5,_0x41fa1a){return super['emitReserved']('error',new TransportError(_0x42ae04,_0x50c5f5,_0x41fa1a)),this;}['open'](){return this['readyState']='opening',this['doOpen'](),this;}['close'](){return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['doClose'](),this['onClose']()),this;}['send'](_0x2f8022){'open'===this['readyState']&&this['write'](_0x2f8022);}['onOpen'](){this['readyState']='open',this['writable']=!0x0,super['emitReserved']('open');}['onData'](_0xd88cdb){const _0xda84c8=decodePacket(_0xd88cdb,this['socket']['binaryType']);this['onPacket'](_0xda84c8);}['onPacket'](_0x11dfbb){super['emitReserved']('packet',_0x11dfbb);}['onClose'](_0x59bfdd){this['readyState']='closed',super['emitReserved']('close',_0x59bfdd);}['pause'](_0x2c0322){}['createUri'](_0x2cf266,_0x430e65={}){return _0x2cf266+'://'+this['_hostname']()+this['_port']()+this['opts']['path']+this['_query'](_0x430e65);}['_hostname'](){const _0x196184=this['opts']['hostname'];return-0x1===_0x196184['indexOf'](':')?_0x196184:'['+_0x196184+']';}['_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'](_0x149407){const _0x2d7b3f=encode$1(_0x149407);return _0x2d7b3f['length']?'?'+_0x2d7b3f:'';}}const alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'['split'](''),length=0x40,map={};let seed=0x0,i$3=0x0,prev;function encode(_0x3e3e5b){let _0x860ae9='';do{_0x860ae9=alphabet[_0x3e3e5b%length]+_0x860ae9,_0x3e3e5b=Math['floor'](_0x3e3e5b/length);}while(_0x3e3e5b>0x0);return _0x860ae9;}function yeast(){const _0x5012ab=encode(+new Date());return _0x5012ab!==prev?(seed=0x0,prev=_0x5012ab):_0x5012ab+'.'+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(_0x1c1931){}const hasCORS=value;function XHR(_0x4a5ad1){const _0x1bdac2=_0x4a5ad1['xdomain'];try{if('undefined'!=typeof XMLHttpRequest&&(!_0x1bdac2||hasCORS))return new XMLHttpRequest();}catch(_0x44fcaf){}if(!_0x1bdac2)try{return new globalThisShim[(['Active']['concat']('Object')['join']('X'))]('Microsoft.XMLHTTP');}catch(_0x4c4bbd){}}function createCookieJar(){}function empty(){}const hasXHR2=null!=new XHR({'xdomain':!0x1})['responseType'];class Polling extends Transport{constructor(_0x582343){if(super(_0x582343),this['polling']=!0x1,'undefined'!=typeof location){const _0x108438='https:'===location['protocol'];let _0x412017=location['port'];_0x412017||(_0x412017=_0x108438?'443':'80'),this['xd']='undefined'!=typeof location&&_0x582343['hostname']!==location['hostname']||_0x412017!==_0x582343['port'];}const _0x338852=_0x582343&&_0x582343['forceBase64'];this['supportsBinary']=hasXHR2&&!_0x338852,this['opts']['withCredentials']&&(this['cookieJar']=createCookieJar());}get['name'](){return'polling';}['doOpen'](){this['poll']();}['pause'](_0x5411a6){this['readyState']='pausing';const _0x42d0bb=()=>{this['readyState']='paused',_0x5411a6();};if(this['polling']||!this['writable']){let _0x4b38f1=0x0;this['polling']&&(_0x4b38f1++,this['once']('pollComplete',function(){--_0x4b38f1||_0x42d0bb();})),this['writable']||(_0x4b38f1++,this['once']('drain',function(){--_0x4b38f1||_0x42d0bb();}));}else _0x42d0bb();}['poll'](){this['polling']=!0x0,this['doPoll'](),this['emitReserved']('poll');}['onData'](_0x59e349){decodePayload(_0x59e349,this['socket']['binaryType'])['forEach'](_0x8fe910=>{if('opening'===this['readyState']&&'open'===_0x8fe910['type']&&this['onOpen'](),'close'===_0x8fe910['type'])return this['onClose']({'description':'transport\x20closed\x20by\x20the\x20server'}),!0x1;this['onPacket'](_0x8fe910);}),'closed'!==this['readyState']&&(this['polling']=!0x1,this['emitReserved']('pollComplete'),'open'===this['readyState']&&this['poll']());}['doClose'](){const _0x3def7b=()=>{this['write']([{'type':'close'}]);};'open'===this['readyState']?_0x3def7b():this['once']('open',_0x3def7b);}['write'](_0x4aba89){this['writable']=!0x1,encodePayload(_0x4aba89,_0x14159e=>{this['doWrite'](_0x14159e,()=>{this['writable']=!0x0,this['emitReserved']('drain');});});}['uri'](){const _0x5efede=this['opts']['secure']?'https':'http',_0x23ae9c=this['query']||{};return!0x1!==this['opts']['timestampRequests']&&(_0x23ae9c[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||_0x23ae9c['sid']||(_0x23ae9c['b64']=0x1),this['createUri'](_0x5efede,_0x23ae9c);}['request'](_0x190f85={}){return Object['assign'](_0x190f85,{'xd':this['xd'],'cookieJar':this['cookieJar']},this['opts']),new Request(this['uri'](),_0x190f85);}['doWrite'](_0x7b4882,_0x109ac1){const _0x1dea85=this['request']({'method':'POST','data':_0x7b4882});_0x1dea85['on']('success',_0x109ac1),_0x1dea85['on']('error',(_0x59b828,_0x232654)=>{this['onError']('xhr\x20post\x20error',_0x59b828,_0x232654);});}['doPoll'](){const _0x532101=this['request']();_0x532101['on']('data',this['onData']['bind'](this)),_0x532101['on']('error',(_0x329c1f,_0x506f0a)=>{this['onError']('xhr\x20poll\x20error',_0x329c1f,_0x506f0a);}),this['pollXhr']=_0x532101;}}class Request extends Emitter{constructor(_0x2081e1,_0x2ed6bb){super(),installTimerFunctions(this,_0x2ed6bb),this['opts']=_0x2ed6bb,this['method']=_0x2ed6bb['method']||'GET',this['uri']=_0x2081e1,this['data']=void 0x0!==_0x2ed6bb['data']?_0x2ed6bb['data']:null,this['create']();}['create'](){var _0x43bee2;const _0x4833b8=pick$1(this['opts'],'agent','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','autoUnref');_0x4833b8['xdomain']=!!this['opts']['xd'];const _0x11c914=this['xhr']=new XHR(_0x4833b8);try{_0x11c914['open'](this['method'],this['uri'],!0x0);try{if(this['opts']['extraHeaders']){_0x11c914['setDisableHeaderCheck']&&_0x11c914['setDisableHeaderCheck'](!0x0);for(let _0x1382b1 in this['opts']['extraHeaders'])this['opts']['extraHeaders']['hasOwnProperty'](_0x1382b1)&&_0x11c914['setRequestHeader'](_0x1382b1,this['opts']['extraHeaders'][_0x1382b1]);}}catch(_0x6bd298){}if('POST'===this['method'])try{_0x11c914['setRequestHeader']('Content-type','text/plain;charset=UTF-8');}catch(_0x5c67f9){}try{_0x11c914['setRequestHeader']('Accept','*/*');}catch(_0x2b7441){}null===(_0x43bee2=this['opts']['cookieJar'])||void 0x0===_0x43bee2||_0x43bee2['addCookies'](_0x11c914),'withCredentials'in _0x11c914&&(_0x11c914['withCredentials']=this['opts']['withCredentials']),this['opts']['requestTimeout']&&(_0x11c914['timeout']=this['opts']['requestTimeout']),_0x11c914['onreadystatechange']=()=>{var _0x40f909;0x3===_0x11c914['readyState']&&(null===(_0x40f909=this['opts']['cookieJar'])||void 0x0===_0x40f909||_0x40f909['parseCookies'](_0x11c914)),0x4===_0x11c914['readyState']&&(0xc8===_0x11c914['status']||0x4c7===_0x11c914['status']?this['onLoad']():this['setTimeoutFn'](()=>{this['onError']('number'==typeof _0x11c914['status']?_0x11c914['status']:0x0);},0x0));},_0x11c914['send'](this['data']);}catch(_0x7c402b){return void this['setTimeoutFn'](()=>{this['onError'](_0x7c402b);},0x0);}'undefined'!=typeof document&&(this['index']=Request['requestsCount']++,Request['requests'][this['index']]=this);}['onError'](_0x24d97f){this['emitReserved']('error',_0x24d97f,this['xhr']),this['cleanup'](!0x0);}['cleanup'](_0x283694){if(void 0x0!==this['xhr']&&null!==this['xhr']){if(this['xhr']['onreadystatechange']=empty,_0x283694)try{this['xhr']['abort']();}catch(_0x4327fc){}'undefined'!=typeof document&&delete Request['requests'][this['index']],this['xhr']=null;}}['onLoad'](){const _0x536910=this['xhr']['responseText'];null!==_0x536910&&(this['emitReserved']('data',_0x536910),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 _0x5b1a87 in Request['requests'])Request['requests']['hasOwnProperty'](_0x5b1a87)&&Request['requests'][_0x5b1a87]['abort']();}const nextTick='function'==typeof Promise&&'function'==typeof Promise['resolve']?_0x362617=>Promise['resolve']()['then'](_0x362617):(_0x5a6d23,_0x493e2d)=>_0x493e2d(_0x5a6d23,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(_0x3dfbb4){super(_0x3dfbb4),this['supportsBinary']=!_0x3dfbb4['forceBase64'];}get['name'](){return'websocket';}['doOpen'](){if(!this['check']())return;const _0x163528=this['uri'](),_0x26d61a=this['opts']['protocols'],_0x3b1a62=isReactNative?{}:pick$1(this['opts'],'agent','perMessageDeflate','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','localAddress','protocolVersion','origin','maxPayload','family','checkServerIdentity');this['opts']['extraHeaders']&&(_0x3b1a62['headers']=this['opts']['extraHeaders']);try{this['ws']=usingBrowserWebSocket&&!isReactNative?_0x26d61a?new WebSocket$2(_0x163528,_0x26d61a):new WebSocket$2(_0x163528):new WebSocket$2(_0x163528,_0x26d61a,_0x3b1a62);}catch(_0x39f535){return this['emitReserved']('error',_0x39f535);}this['ws']['binaryType']=this['socket']['binaryType'],this['addEventListeners']();}['addEventListeners'](){this['ws']['onopen']=()=>{this['opts']['autoUnref']&&this['ws']['_socket']['unref'](),this['onOpen']();},this['ws']['onclose']=_0x2f23a4=>this['onClose']({'description':'websocket\x20connection\x20closed','context':_0x2f23a4}),this['ws']['onmessage']=_0x18ff5e=>this['onData'](_0x18ff5e['data']),this['ws']['onerror']=_0x32ce12=>this['onError']('websocket\x20error',_0x32ce12);}['write'](_0x43227e){this['writable']=!0x1;for(let _0x525bc3=0x0;_0x525bc3<_0x43227e['length'];_0x525bc3++){const _0x1099b0=_0x43227e[_0x525bc3],_0xb63b60=_0x525bc3===_0x43227e['length']-0x1;encodePacket(_0x1099b0,this['supportsBinary'],_0xfe27f1=>{try{usingBrowserWebSocket&&this['ws']['send'](_0xfe27f1);}catch(_0xd3c36c){}_0xb63b60&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){void 0x0!==this['ws']&&(this['ws']['close'](),this['ws']=null);}['uri'](){const _0x43011a=this['opts']['secure']?'wss':'ws',_0x41c57c=this['query']||{};return this['opts']['timestampRequests']&&(_0x41c57c[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||(_0x41c57c['b64']=0x1),this['createUri'](_0x43011a,_0x41c57c);}['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'](_0x29725d=>{this['onError']('webtransport\x20error',_0x29725d);}),this['transport']['ready']['then'](()=>{this['transport']['createBidirectionalStream']()['then'](_0x656b2b=>{const _0x5bd394=createPacketDecoderStream(Number['MAX_SAFE_INTEGER'],this['socket']['binaryType']),_0xb83e1a=_0x656b2b['readable']['pipeThrough'](_0x5bd394)['getReader'](),_0x502c82=createPacketEncoderStream();_0x502c82['readable']['pipeTo'](_0x656b2b['writable']),this['writer']=_0x502c82['writable']['getWriter']();const _0x3ee215=()=>{_0xb83e1a['read']()['then'](({done:_0x13c96d,value:_0xdf876c})=>{_0x13c96d||(this['onPacket'](_0xdf876c),_0x3ee215());})['catch'](_0x18a8c4=>{});};_0x3ee215();const _0x18902e={'type':'open'};this['query']['sid']&&(_0x18902e['data']='{\x22sid\x22:\x22'+this['query']['sid']+'\x22}'),this['writer']['write'](_0x18902e)['then'](()=>this['onOpen']());});}));}['write'](_0x23803f){this['writable']=!0x1;for(let _0x17d433=0x0;_0x17d433<_0x23803f['length'];_0x17d433++){const _0x364922=_0x23803f[_0x17d433],_0x49d3ff=_0x17d433===_0x23803f['length']-0x1;this['writer']['write'](_0x364922)['then'](()=>{_0x49d3ff&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){var _0x191752;null===(_0x191752=this['transport'])||void 0x0===_0x191752||_0x191752['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(_0x14caae){if(_0x14caae['length']>0x7d0)throw'URI\x20too\x20long';const _0x61913b=_0x14caae,_0x46330f=_0x14caae['indexOf']('['),_0x135f4a=_0x14caae['indexOf'](']');-0x1!=_0x46330f&&-0x1!=_0x135f4a&&(_0x14caae=_0x14caae['substring'](0x0,_0x46330f)+_0x14caae['substring'](_0x46330f,_0x135f4a)['replace'](/:/g,';')+_0x14caae['substring'](_0x135f4a,_0x14caae['length']));let _0x59dd1e=re['exec'](_0x14caae||''),_0x17b492={},_0x183780=0xe;for(;_0x183780--;)_0x17b492[parts[_0x183780]]=_0x59dd1e[_0x183780]||'';return-0x1!=_0x46330f&&-0x1!=_0x135f4a&&(_0x17b492['source']=_0x61913b,_0x17b492['host']=_0x17b492['host']['substring'](0x1,_0x17b492['host']['length']-0x1)['replace'](/;/g,':'),_0x17b492['authority']=_0x17b492['authority']['replace']('[','')['replace'](']','')['replace'](/;/g,':'),_0x17b492['ipv6uri']=!0x0),_0x17b492['pathNames']=pathNames(_0x17b492,_0x17b492['path']),_0x17b492['queryKey']=queryKey(_0x17b492,_0x17b492['query']),_0x17b492;}function pathNames(_0x1a71eb,_0x103f37){const _0x20d4dd=_0x103f37['replace'](/\/{2,9}/g,'/')['split']('/');return'/'!=_0x103f37['slice'](0x0,0x1)&&0x0!==_0x103f37['length']||_0x20d4dd['splice'](0x0,0x1),'/'==_0x103f37['slice'](-0x1)&&_0x20d4dd['splice'](_0x20d4dd['length']-0x1,0x1),_0x20d4dd;}function queryKey(_0x13de11,_0x57d801){const _0x4b2993={};return _0x57d801['replace'](/(?:^|&)([^&=]*)=?([^&]*)/g,function(_0x2e2ae1,_0x4e4232,_0x106a8e){_0x4e4232&&(_0x4b2993[_0x4e4232]=_0x106a8e);}),_0x4b2993;}let Socket$1=class e extends Emitter{constructor(_0x545b0c,_0x4dfa0d={}){super(),this['binaryType']=defaultBinaryType,this['writeBuffer']=[],_0x545b0c&&'object'==typeof _0x545b0c&&(_0x4dfa0d=_0x545b0c,_0x545b0c=null),_0x545b0c?(_0x545b0c=parse(_0x545b0c),_0x4dfa0d['hostname']=_0x545b0c['host'],_0x4dfa0d['secure']='https'===_0x545b0c['protocol']||'wss'===_0x545b0c['protocol'],_0x4dfa0d['port']=_0x545b0c['port'],_0x545b0c['query']&&(_0x4dfa0d['query']=_0x545b0c['query'])):_0x4dfa0d['host']&&(_0x4dfa0d['hostname']=parse(_0x4dfa0d['host'])['host']),installTimerFunctions(this,_0x4dfa0d),this['secure']=null!=_0x4dfa0d['secure']?_0x4dfa0d['secure']:'undefined'!=typeof location&&'https:'===location['protocol'],_0x4dfa0d['hostname']&&!_0x4dfa0d['port']&&(_0x4dfa0d['port']=this['secure']?'443':'80'),this['hostname']=_0x4dfa0d['hostname']||('undefined'!=typeof location?location['hostname']:'localhost'),this['port']=_0x4dfa0d['port']||('undefined'!=typeof location&&location['port']?location['port']:this['secure']?'443':'80'),this['transports']=_0x4dfa0d['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},_0x4dfa0d),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'](_0xea7ec3){const _0x224fd2=Object['assign']({},this['opts']['query']);_0x224fd2['EIO']=protocol,_0x224fd2['transport']=_0xea7ec3,this['id']&&(_0x224fd2['sid']=this['id']);const _0x35a5d1=Object['assign']({},this['opts'],{'query':_0x224fd2,'socket':this,'hostname':this['hostname'],'secure':this['secure'],'port':this['port']},this['opts']['transportOptions'][_0xea7ec3]);return new transports[_0xea7ec3](_0x35a5d1);}['open'](){let _0x3ec9ee;if(this['opts']['rememberUpgrade']&&e['priorWebsocketSuccess']&&-0x1!==this['transports']['indexOf']('websocket'))_0x3ec9ee='websocket';else{if(0x0===this['transports']['length'])return void this['setTimeoutFn'](()=>{this['emitReserved']('error','No\x20transports\x20available');},0x0);_0x3ec9ee=this['transports'][0x0];}this['readyState']='opening';try{_0x3ec9ee=this['createTransport'](_0x3ec9ee);}catch(_0x8cff78){return this['transports']['shift'](),void this['open']();}_0x3ec9ee['open'](),this['setTransport'](_0x3ec9ee);}['setTransport'](_0x5c88a5){this['transport']&&this['transport']['removeAllListeners'](),this['transport']=_0x5c88a5,_0x5c88a5['on']('drain',this['onDrain']['bind'](this))['on']('packet',this['onPacket']['bind'](this))['on']('error',this['onError']['bind'](this))['on']('close',_0x2c752b=>this['onClose']('transport\x20close',_0x2c752b));}['probe'](_0x5a3947){let _0x108870=this['createTransport'](_0x5a3947),_0x11d7e2=!0x1;e['priorWebsocketSuccess']=!0x1;const _0x3e923a=()=>{_0x11d7e2||(_0x108870['send']([{'type':'ping','data':'probe'}]),_0x108870['once']('packet',_0x391f58=>{if(!_0x11d7e2){if('pong'===_0x391f58['type']&&'probe'===_0x391f58['data']){if(this['upgrading']=!0x0,this['emitReserved']('upgrading',_0x108870),!_0x108870)return;e['priorWebsocketSuccess']='websocket'===_0x108870['name'],this['transport']['pause'](()=>{_0x11d7e2||'closed'!==this['readyState']&&(_0x2f7f98(),this['setTransport'](_0x108870),_0x108870['send']([{'type':'upgrade'}]),this['emitReserved']('upgrade',_0x108870),_0x108870=null,this['upgrading']=!0x1,this['flush']());});}else{const _0x2ec51e=new Error('probe\x20error');_0x2ec51e['transport']=_0x108870['name'],this['emitReserved']('upgradeError',_0x2ec51e);}}}));};function _0x3dfe2d(){_0x11d7e2||(_0x11d7e2=!0x0,_0x2f7f98(),_0x108870['close'](),_0x108870=null);}const _0x4193fe=_0x2fc425=>{const _0xc0bf8b=new Error('probe\x20error:\x20'+_0x2fc425);_0xc0bf8b['transport']=_0x108870['name'],_0x3dfe2d(),this['emitReserved']('upgradeError',_0xc0bf8b);};function _0x29bc11(){_0x4193fe('transport\x20closed');}function _0x1f10b6(){_0x4193fe('socket\x20closed');}function _0xf3d942(_0x3656cc){_0x108870&&_0x3656cc['name']!==_0x108870['name']&&_0x3dfe2d();}const _0x2f7f98=()=>{_0x108870['removeListener']('open',_0x3e923a),_0x108870['removeListener']('error',_0x4193fe),_0x108870['removeListener']('close',_0x29bc11),this['off']('close',_0x1f10b6),this['off']('upgrading',_0xf3d942);};_0x108870['once']('open',_0x3e923a),_0x108870['once']('error',_0x4193fe),_0x108870['once']('close',_0x29bc11),this['once']('close',_0x1f10b6),this['once']('upgrading',_0xf3d942),-0x1!==this['upgrades']['indexOf']('webtransport')&&'webtransport'!==_0x5a3947?this['setTimeoutFn'](()=>{_0x11d7e2||_0x108870['open']();},0xc8):_0x108870['open']();}['onOpen'](){if(this['readyState']='open',e['priorWebsocketSuccess']='websocket'===this['transport']['name'],this['emitReserved']('open'),this['flush'](),'open'===this['readyState']&&this['opts']['upgrade']){let _0x77c0e6=0x0;const _0x25fb5e=this['upgrades']['length'];for(;_0x77c0e6<_0x25fb5e;_0x77c0e6++)this['probe'](this['upgrades'][_0x77c0e6]);}}['onPacket'](_0x358205){if('opening'===this['readyState']||'open'===this['readyState']||'closing'===this['readyState'])switch(this['emitReserved']('packet',_0x358205),this['emitReserved']('heartbeat'),this['resetPingTimeout'](),_0x358205['type']){case'open':this['onHandshake'](JSON['parse'](_0x358205['data']));break;case'ping':this['sendPacket']('pong'),this['emitReserved']('ping'),this['emitReserved']('pong');break;case'error':const _0x34119f=new Error('server\x20error');_0x34119f['code']=_0x358205['data'],this['onError'](_0x34119f);break;case'message':this['emitReserved']('data',_0x358205['data']),this['emitReserved']('message',_0x358205['data']);}}['onHandshake'](_0x376b99){this['emitReserved']('handshake',_0x376b99),this['id']=_0x376b99['sid'],this['transport']['query']['sid']=_0x376b99['sid'],this['upgrades']=this['filterUpgrades'](_0x376b99['upgrades']),this['pingInterval']=_0x376b99['pingInterval'],this['pingTimeout']=_0x376b99['pingTimeout'],this['maxPayload']=_0x376b99['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 _0x4c193d=this['getWritablePackets']();this['transport']['send'](_0x4c193d),this['prevBufferLen']=_0x4c193d['length'],this['emitReserved']('flush');}}['getWritablePackets'](){if(!(this['maxPayload']&&'polling'===this['transport']['name']&&this['writeBuffer']['length']>0x1))return this['writeBuffer'];let _0x4df386=0x1;for(let _0x410a52=0x0;_0x410a52<this['writeBuffer']['length'];_0x410a52++){const _0x21187b=this['writeBuffer'][_0x410a52]['data'];if(_0x21187b&&(_0x4df386+=byteLength(_0x21187b)),_0x410a52>0x0&&_0x4df386>this['maxPayload'])return this['writeBuffer']['slice'](0x0,_0x410a52);_0x4df386+=0x2;}return this['writeBuffer'];}['write'](_0x54e55e,_0x58275d,_0x107f54){return this['sendPacket']('message',_0x54e55e,_0x58275d,_0x107f54),this;}['send'](_0x6b796d,_0x2c50e1,_0x1cacee){return this['sendPacket']('message',_0x6b796d,_0x2c50e1,_0x1cacee),this;}['sendPacket'](_0x27fd08,_0x387ed4,_0x46afc0,_0x308ce2){if('function'==typeof _0x387ed4&&(_0x308ce2=_0x387ed4,_0x387ed4=void 0x0),'function'==typeof _0x46afc0&&(_0x308ce2=_0x46afc0,_0x46afc0=null),'closing'===this['readyState']||'closed'===this['readyState'])return;(_0x46afc0=_0x46afc0||{})['compress']=!0x1!==_0x46afc0['compress'];const _0x149a97={'type':_0x27fd08,'data':_0x387ed4,'options':_0x46afc0};this['emitReserved']('packetCreate',_0x149a97),this['writeBuffer']['push'](_0x149a97),_0x308ce2&&this['once']('flush',_0x308ce2),this['flush']();}['close'](){const _0x3a52f1=()=>{this['onClose']('forced\x20close'),this['transport']['close']();},_0xb2f02b=()=>{this['off']('upgrade',_0xb2f02b),this['off']('upgradeError',_0xb2f02b),_0x3a52f1();},_0x5d91af=()=>{this['once']('upgrade',_0xb2f02b),this['once']('upgradeError',_0xb2f02b);};return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['readyState']='closing',this['writeBuffer']['length']?this['once']('drain',()=>{this['upgrading']?_0x5d91af():_0x3a52f1();}):this['upgrading']?_0x5d91af():_0x3a52f1()),this;}['onError'](_0xb63207){e['priorWebsocketSuccess']=!0x1,this['emitReserved']('error',_0xb63207),this['onClose']('transport\x20error',_0xb63207);}['onClose'](_0x151eed,_0x36e74a){'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',_0x151eed,_0x36e74a),this['writeBuffer']=[],this['prevBufferLen']=0x0);}['filterUpgrades'](_0x532794){const _0x4ed911=[];let _0x3d1145=0x0;const _0x53ce09=_0x532794['length'];for(;_0x3d1145<_0x53ce09;_0x3d1145++)~this['transports']['indexOf'](_0x532794[_0x3d1145])&&_0x4ed911['push'](_0x532794[_0x3d1145]);return _0x4ed911;}};function url(_0x285ec4,_0x5d8d78='',_0x48b0e8){let _0x4760f0=_0x285ec4;_0x48b0e8=_0x48b0e8||'undefined'!=typeof location&&location,null==_0x285ec4&&(_0x285ec4=_0x48b0e8['protocol']+'//'+_0x48b0e8['host']),'string'==typeof _0x285ec4&&('/'===_0x285ec4['charAt'](0x0)&&(_0x285ec4='/'===_0x285ec4['charAt'](0x1)?_0x48b0e8['protocol']+_0x285ec4:_0x48b0e8['host']+_0x285ec4),/^(https?|wss?):\/\//['test'](_0x285ec4)||(_0x285ec4=void 0x0!==_0x48b0e8?_0x48b0e8['protocol']+'//'+_0x285ec4:'https://'+_0x285ec4),_0x4760f0=parse(_0x285ec4)),_0x4760f0['port']||(/^(http|ws)$/['test'](_0x4760f0['protocol'])?_0x4760f0['port']='80':/^(http|ws)s$/['test'](_0x4760f0['protocol'])&&(_0x4760f0['port']='443')),_0x4760f0['path']=_0x4760f0['path']||'/';const _0x496c08=-0x1!==_0x4760f0['host']['indexOf'](':')?'['+_0x4760f0['host']+']':_0x4760f0['host'];return _0x4760f0['id']=_0x4760f0['protocol']+'://'+_0x496c08+':'+_0x4760f0['port']+_0x5d8d78,_0x4760f0['href']=_0x4760f0['protocol']+'://'+_0x496c08+(_0x48b0e8&&_0x48b0e8['port']===_0x4760f0['port']?'':':'+_0x4760f0['port']),_0x4760f0;}Socket$1['protocol']=protocol;const withNativeArrayBuffer='function'==typeof ArrayBuffer,isView=_0x198471=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x198471):_0x198471['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(_0x5b8b92){return withNativeArrayBuffer&&(_0x5b8b92 instanceof ArrayBuffer||isView(_0x5b8b92))||withNativeBlob&&_0x5b8b92 instanceof Blob||withNativeFile&&_0x5b8b92 instanceof File;}function hasBinary(_0x59ae03,_0x45ed8c){if(!_0x59ae03||'object'!=typeof _0x59ae03)return!0x1;if(Array['isArray'](_0x59ae03)){for(let _0x266cef=0x0,_0x1c4679=_0x59ae03['length'];_0x266cef<_0x1c4679;_0x266cef++)if(hasBinary(_0x59ae03[_0x266cef]))return!0x0;return!0x1;}if(isBinary(_0x59ae03))return!0x0;if(_0x59ae03['toJSON']&&'function'==typeof _0x59ae03['toJSON']&&0x1===arguments['length'])return hasBinary(_0x59ae03['toJSON'](),!0x0);for(const _0x5dbb75 in _0x59ae03)if(Object['prototype']['hasOwnProperty']['call'](_0x59ae03,_0x5dbb75)&&hasBinary(_0x59ae03[_0x5dbb75]))return!0x0;return!0x1;}function deconstructPacket(_0x409a73){const _0x424c2c=[],_0x9890cc=_0x409a73['data'],_0x373027=_0x409a73;return _0x373027['data']=_deconstructPacket(_0x9890cc,_0x424c2c),_0x373027['attachments']=_0x424c2c['length'],{'packet':_0x373027,'buffers':_0x424c2c};}function _deconstructPacket(_0x464576,_0x67568a){if(!_0x464576)return _0x464576;if(isBinary(_0x464576)){const _0x2e57ee={'_placeholder':!0x0,'num':_0x67568a['length']};return _0x67568a['push'](_0x464576),_0x2e57ee;}if(Array['isArray'](_0x464576)){const _0xb0ad35=new Array(_0x464576['length']);for(let _0x3225ce=0x0;_0x3225ce<_0x464576['length'];_0x3225ce++)_0xb0ad35[_0x3225ce]=_deconstructPacket(_0x464576[_0x3225ce],_0x67568a);return _0xb0ad35;}if('object'==typeof _0x464576&&!(_0x464576 instanceof Date)){const _0x44e04d={};for(const _0x155144 in _0x464576)Object['prototype']['hasOwnProperty']['call'](_0x464576,_0x155144)&&(_0x44e04d[_0x155144]=_deconstructPacket(_0x464576[_0x155144],_0x67568a));return _0x44e04d;}return _0x464576;}function reconstructPacket(_0x34533f,_0x540fa8){return _0x34533f['data']=_reconstructPacket(_0x34533f['data'],_0x540fa8),delete _0x34533f['attachments'],_0x34533f;}function _reconstructPacket(_0x10bc3c,_0x3b28d1){if(!_0x10bc3c)return _0x10bc3c;if(_0x10bc3c&&!0x0===_0x10bc3c['_placeholder']){if('number'==typeof _0x10bc3c['num']&&_0x10bc3c['num']>=0x0&&_0x10bc3c['num']<_0x3b28d1['length'])return _0x3b28d1[_0x10bc3c['num']];throw new Error('illegal\x20attachments');}if(Array['isArray'](_0x10bc3c)){for(let _0x11596f=0x0;_0x11596f<_0x10bc3c['length'];_0x11596f++)_0x10bc3c[_0x11596f]=_reconstructPacket(_0x10bc3c[_0x11596f],_0x3b28d1);}else{if('object'==typeof _0x10bc3c){for(const _0x122989 in _0x10bc3c)Object['prototype']['hasOwnProperty']['call'](_0x10bc3c,_0x122989)&&(_0x10bc3c[_0x122989]=_reconstructPacket(_0x10bc3c[_0x122989],_0x3b28d1));}}return _0x10bc3c;}const RESERVED_EVENTS$1=['connect','connect_error','disconnect','disconnecting','newListener','removeListener'];var PacketType;!function(_0x446b12){_0x446b12[_0x446b12['CONNECT']=0x0]='CONNECT',_0x446b12[_0x446b12['DISCONNECT']=0x1]='DISCONNECT',_0x446b12[_0x446b12['EVENT']=0x2]='EVENT',_0x446b12[_0x446b12['ACK']=0x3]='ACK',_0x446b12[_0x446b12['CONNECT_ERROR']=0x4]='CONNECT_ERROR',_0x446b12[_0x446b12['BINARY_EVENT']=0x5]='BINARY_EVENT',_0x446b12[_0x446b12['BINARY_ACK']=0x6]='BINARY_ACK';}(PacketType||(PacketType={}));let Encoder$1=class{constructor(_0x44e491){this['replacer']=_0x44e491;}['encode'](_0x57bdc2){return _0x57bdc2['type']!==PacketType['EVENT']&&_0x57bdc2['type']!==PacketType['ACK']||!hasBinary(_0x57bdc2)?[this['encodeAsString'](_0x57bdc2)]:this['encodeAsBinary']({'type':_0x57bdc2['type']===PacketType['EVENT']?PacketType['BINARY_EVENT']:PacketType['BINARY_ACK'],'nsp':_0x57bdc2['nsp'],'data':_0x57bdc2['data'],'id':_0x57bdc2['id']});}['encodeAsString'](_0x1dd779){let _0x48bd85=''+_0x1dd779['type'];return _0x1dd779['type']!==PacketType['BINARY_EVENT']&&_0x1dd779['type']!==PacketType['BINARY_ACK']||(_0x48bd85+=_0x1dd779['attachments']+'-'),_0x1dd779['nsp']&&'/'!==_0x1dd779['nsp']&&(_0x48bd85+=_0x1dd779['nsp']+','),null!=_0x1dd779['id']&&(_0x48bd85+=_0x1dd779['id']),null!=_0x1dd779['data']&&(_0x48bd85+=JSON['stringify'](_0x1dd779['data'],this['replacer'])),_0x48bd85;}['encodeAsBinary'](_0x3ac109){const _0x1254d3=deconstructPacket(_0x3ac109),_0x36169a=this['encodeAsString'](_0x1254d3['packet']),_0x7c0e42=_0x1254d3['buffers'];return _0x7c0e42['unshift'](_0x36169a),_0x7c0e42;}};function isObject$2(_0x37fc52){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x37fc52);}let Decoder$1=class e extends Emitter{constructor(_0x49ceae){super(),this['reviver']=_0x49ceae;}['add'](_0x56ebd){let _0x4ed0d2;if('string'==typeof _0x56ebd){if(this['reconstructor'])throw new Error('got\x20plaintext\x20data\x20when\x20reconstructing\x20a\x20packet');_0x4ed0d2=this['decodeString'](_0x56ebd);const _0x45b611=_0x4ed0d2['type']===PacketType['BINARY_EVENT'];_0x45b611||_0x4ed0d2['type']===PacketType['BINARY_ACK']?(_0x4ed0d2['type']=_0x45b611?PacketType['EVENT']:PacketType['ACK'],this['reconstructor']=new BinaryReconstructor(_0x4ed0d2),0x0===_0x4ed0d2['attachments']&&super['emitReserved']('decoded',_0x4ed0d2)):super['emitReserved']('decoded',_0x4ed0d2);}else{if(!isBinary(_0x56ebd)&&!_0x56ebd['base64'])throw new Error('Unknown\x20type:\x20'+_0x56ebd);if(!this['reconstructor'])throw new Error('got\x20binary\x20data\x20when\x20not\x20reconstructing\x20a\x20packet');_0x4ed0d2=this['reconstructor']['takeBinaryData'](_0x56ebd),_0x4ed0d2&&(this['reconstructor']=null,super['emitReserved']('decoded',_0x4ed0d2));}}['decodeString'](_0x1d52b2){let _0x4a2a35=0x0;const _0x18add1={'type':Number(_0x1d52b2['charAt'](0x0))};if(void 0x0===PacketType[_0x18add1['type']])throw new Error('unknown\x20packet\x20type\x20'+_0x18add1['type']);if(_0x18add1['type']===PacketType['BINARY_EVENT']||_0x18add1['type']===PacketType['BINARY_ACK']){const _0x4a11fc=_0x4a2a35+0x1;for(;'-'!==_0x1d52b2['charAt'](++_0x4a2a35)&&_0x4a2a35!=_0x1d52b2['length'];);const _0x10b876=_0x1d52b2['substring'](_0x4a11fc,_0x4a2a35);if(_0x10b876!=Number(_0x10b876)||'-'!==_0x1d52b2['charAt'](_0x4a2a35))throw new Error('Illegal\x20attachments');_0x18add1['attachments']=Number(_0x10b876);}if('/'===_0x1d52b2['charAt'](_0x4a2a35+0x1)){const _0x25745c=_0x4a2a35+0x1;for(;++_0x4a2a35;){if(','===_0x1d52b2['charAt'](_0x4a2a35))break;if(_0x4a2a35===_0x1d52b2['length'])break;}_0x18add1['nsp']=_0x1d52b2['substring'](_0x25745c,_0x4a2a35);}else _0x18add1['nsp']='/';const _0x469562=_0x1d52b2['charAt'](_0x4a2a35+0x1);if(''!==_0x469562&&Number(_0x469562)==_0x469562){const _0x9a4948=_0x4a2a35+0x1;for(;++_0x4a2a35;){const _0x5b88f4=_0x1d52b2['charAt'](_0x4a2a35);if(null==_0x5b88f4||Number(_0x5b88f4)!=_0x5b88f4){--_0x4a2a35;break;}if(_0x4a2a35===_0x1d52b2['length'])break;}_0x18add1['id']=Number(_0x1d52b2['substring'](_0x9a4948,_0x4a2a35+0x1));}if(_0x1d52b2['charAt'](++_0x4a2a35)){const _0xdebe9=this['tryParse'](_0x1d52b2['substr'](_0x4a2a35));if(!e['isPayloadValid'](_0x18add1['type'],_0xdebe9))throw new Error('invalid\x20payload');_0x18add1['data']=_0xdebe9;}return _0x18add1;}['tryParse'](_0x2d85b){try{return JSON['parse'](_0x2d85b,this['reviver']);}catch(_0xff0482){return!0x1;}}static['isPayloadValid'](_0x471876,_0x129f15){switch(_0x471876){case PacketType['CONNECT']:return isObject$2(_0x129f15);case PacketType['DISCONNECT']:return void 0x0===_0x129f15;case PacketType['CONNECT_ERROR']:return'string'==typeof _0x129f15||isObject$2(_0x129f15);case PacketType['EVENT']:case PacketType['BINARY_EVENT']:return Array['isArray'](_0x129f15)&&('number'==typeof _0x129f15[0x0]||'string'==typeof _0x129f15[0x0]&&-0x1===RESERVED_EVENTS$1['indexOf'](_0x129f15[0x0]));case PacketType['ACK']:case PacketType['BINARY_ACK']:return Array['isArray'](_0x129f15);}}['destroy'](){this['reconstructor']&&(this['reconstructor']['finishedReconstruction'](),this['reconstructor']=null);}};class BinaryReconstructor{constructor(_0x4b938e){this['packet']=_0x4b938e,this['buffers']=[],this['reconPack']=_0x4b938e;}['takeBinaryData'](_0x2cd266){if(this['buffers']['push'](_0x2cd266),this['buffers']['length']===this['reconPack']['attachments']){const _0x60e9ce=reconstructPacket(this['reconPack'],this['buffers']);return this['finishedReconstruction'](),_0x60e9ce;}return null;}['finishedReconstruction'](){this['reconPack']=null,this['buffers']=[];}}var parser$4=Object['freeze']({'__proto__':null,'Decoder':Decoder$1,'Encoder':Encoder$1,get 'PacketType'(){return PacketType;}});function on(_0x21abb8,_0x493751,_0x3794c5){return _0x21abb8['on'](_0x493751,_0x3794c5),function(){_0x21abb8['off'](_0x493751,_0x3794c5);};}const RESERVED_EVENTS=Object['freeze']({'connect':0x1,'connect_error':0x1,'disconnect':0x1,'disconnecting':0x1,'newListener':0x1,'removeListener':0x1});class Socket extends Emitter{constructor(_0x46ee5c,_0x2601c3,_0x3ff9f4){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']=_0x46ee5c,this['nsp']=_0x2601c3,_0x3ff9f4&&_0x3ff9f4['auth']&&(this['auth']=_0x3ff9f4['auth']),this['_opts']=Object['assign']({},_0x3ff9f4),this['io']['_autoConnect']&&this['open']();}get['disconnected'](){return!this['connected'];}['subEvents'](){if(this['subs'])return;const _0x338fee=this['io'];this['subs']=[on(_0x338fee,'open',this['onopen']['bind'](this)),on(_0x338fee,'packet',this['onpacket']['bind'](this)),on(_0x338fee,'error',this['onerror']['bind'](this)),on(_0x338fee,'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'](..._0x3f259b){return _0x3f259b['unshift']('message'),this['emit']['apply'](this,_0x3f259b),this;}['emit'](_0x1ae6a6,..._0x8ddda3){if(RESERVED_EVENTS['hasOwnProperty'](_0x1ae6a6))throw new Error('\x22'+_0x1ae6a6['toString']()+'\x22\x20is\x20a\x20reserved\x20event\x20name');if(_0x8ddda3['unshift'](_0x1ae6a6),this['_opts']['retries']&&!this['flags']['fromQueue']&&!this['flags']['volatile'])return this['_addToQueue'](_0x8ddda3),this;const _0x5093fe={'type':PacketType['EVENT'],'data':_0x8ddda3,'options':{}};if(_0x5093fe['options']['compress']=!0x1!==this['flags']['compress'],'function'==typeof _0x8ddda3[_0x8ddda3['length']-0x1]){const _0x234ed3=this['ids']++,_0x5e47b4=_0x8ddda3['pop']();this['_registerAckCallback'](_0x234ed3,_0x5e47b4),_0x5093fe['id']=_0x234ed3;}const _0x529f4b=this['io']['engine']&&this['io']['engine']['transport']&&this['io']['engine']['transport']['writable'];return this['flags']['volatile']&&(!_0x529f4b||!this['connected'])||(this['connected']?(this['notifyOutgoingListeners'](_0x5093fe),this['packet'](_0x5093fe)):this['sendBuffer']['push'](_0x5093fe)),this['flags']={},this;}['_registerAckCallback'](_0x47fc9f,_0x5555ce){var _0xd1ce0a;const _0x86ceef=null!==(_0xd1ce0a=this['flags']['timeout'])&&void 0x0!==_0xd1ce0a?_0xd1ce0a:this['_opts']['ackTimeout'];if(void 0x0===_0x86ceef)return void(this['acks'][_0x47fc9f]=_0x5555ce);const _0xc8d15f=this['io']['setTimeoutFn'](()=>{delete this['acks'][_0x47fc9f];for(let _0x57f2ae=0x0;_0x57f2ae<this['sendBuffer']['length'];_0x57f2ae++)this['sendBuffer'][_0x57f2ae]['id']===_0x47fc9f&&this['sendBuffer']['splice'](_0x57f2ae,0x1);_0x5555ce['call'](this,new Error('operation\x20has\x20timed\x20out'));},_0x86ceef);this['acks'][_0x47fc9f]=(..._0x390591)=>{this['io']['clearTimeoutFn'](_0xc8d15f),_0x5555ce['apply'](this,[null,..._0x390591]);};}['emitWithAck'](_0x2a83a7,..._0x4acf3f){const _0xaac30c=void 0x0!==this['flags']['timeout']||void 0x0!==this['_opts']['ackTimeout'];return new Promise((_0x1b01ef,_0x70d0d4)=>{_0x4acf3f['push']((_0x2b654c,_0x4a1bf3)=>_0xaac30c?_0x2b654c?_0x70d0d4(_0x2b654c):_0x1b01ef(_0x4a1bf3):_0x1b01ef(_0x2b654c)),this['emit'](_0x2a83a7,..._0x4acf3f);});}['_addToQueue'](_0x3ae60f){let _0x49fe04;'function'==typeof _0x3ae60f[_0x3ae60f['length']-0x1]&&(_0x49fe04=_0x3ae60f['pop']());const _0x4d7acd={'id':this['_queueSeq']++,'tryCount':0x0,'pending':!0x1,'args':_0x3ae60f,'flags':Object['assign']({'fromQueue':!0x0},this['flags'])};_0x3ae60f['push']((_0x147fa5,..._0x1270fb)=>{if(_0x4d7acd!==this['_queue'][0x0])return;return null!==_0x147fa5?_0x4d7acd['tryCount']>this['_opts']['retries']&&(this['_queue']['shift'](),_0x49fe04&&_0x49fe04(_0x147fa5)):(this['_queue']['shift'](),_0x49fe04&&_0x49fe04(null,..._0x1270fb)),_0x4d7acd['pending']=!0x1,this['_drainQueue']();}),this['_queue']['push'](_0x4d7acd),this['_drainQueue']();}['_drainQueue'](_0x97118f=!0x1){if(!this['connected']||0x0===this['_queue']['length'])return;const _0x347460=this['_queue'][0x0];_0x347460['pending']&&!_0x97118f||(_0x347460['pending']=!0x0,_0x347460['tryCount']++,this['flags']=_0x347460['flags'],this['emit']['apply'](this,_0x347460['args']));}['packet'](_0x4451c2){_0x4451c2['nsp']=this['nsp'],this['io']['_packet'](_0x4451c2);}['onopen'](){'function'==typeof this['auth']?this['auth'](_0xcca303=>{this['_sendConnectPacket'](_0xcca303);}):this['_sendConnectPacket'](this['auth']);}['_sendConnectPacket'](_0xaa98df){this['packet']({'type':PacketType['CONNECT'],'data':this['_pid']?Object['assign']({'pid':this['_pid'],'offset':this['_lastOffset']},_0xaa98df):_0xaa98df});}['onerror'](_0x4072ac){this['connected']||this['emitReserved']('connect_error',_0x4072ac);}['onclose'](_0x38e065,_0x388ff5){this['connected']=!0x1,delete this['id'],this['emitReserved']('disconnect',_0x38e065,_0x388ff5);}['onpacket'](_0x45f3f7){if(_0x45f3f7['nsp']===this['nsp'])switch(_0x45f3f7['type']){case PacketType['CONNECT']:_0x45f3f7['data']&&_0x45f3f7['data']['sid']?this['onconnect'](_0x45f3f7['data']['sid'],_0x45f3f7['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'](_0x45f3f7);break;case PacketType['ACK']:case PacketType['BINARY_ACK']:this['onack'](_0x45f3f7);break;case PacketType['DISCONNECT']:this['ondisconnect']();break;case PacketType['CONNECT_ERROR']:this['destroy']();const _0xf41253=new Error(_0x45f3f7['data']['message']);_0xf41253['data']=_0x45f3f7['data']['data'],this['emitReserved']('connect_error',_0xf41253);}}['onevent'](_0x3a275f){const _0x4f6780=_0x3a275f['data']||[];null!=_0x3a275f['id']&&_0x4f6780['push'](this['ack'](_0x3a275f['id'])),this['connected']?this['emitEvent'](_0x4f6780):this['receiveBuffer']['push'](Object['freeze'](_0x4f6780));}['emitEvent'](_0x426274){if(this['_anyListeners']&&this['_anyListeners']['length']){const _0x57657b=this['_anyListeners']['slice']();for(const _0x14d96f of _0x57657b)_0x14d96f['apply'](this,_0x426274);}super['emit']['apply'](this,_0x426274),this['_pid']&&_0x426274['length']&&'string'==typeof _0x426274[_0x426274['length']-0x1]&&(this['_lastOffset']=_0x426274[_0x426274['length']-0x1]);}['ack'](_0x409d00){const _0x996138=this;let _0x302f5a=!0x1;return function(..._0x3514e7){_0x302f5a||(_0x302f5a=!0x0,_0x996138['packet']({'type':PacketType['ACK'],'id':_0x409d00,'data':_0x3514e7}));};}['onack'](_0x5e7df8){const _0x18c85b=this['acks'][_0x5e7df8['id']];'function'==typeof _0x18c85b&&(_0x18c85b['apply'](this,_0x5e7df8['data']),delete this['acks'][_0x5e7df8['id']]);}['onconnect'](_0x1808cb,_0x764d06){this['id']=_0x1808cb,this['recovered']=_0x764d06&&this['_pid']===_0x764d06,this['_pid']=_0x764d06,this['connected']=!0x0,this['emitBuffered'](),this['emitReserved']('connect'),this['_drainQueue'](!0x0);}['emitBuffered'](){this['receiveBuffer']['forEach'](_0x30ef79=>this['emitEvent'](_0x30ef79)),this['receiveBuffer']=[],this['sendBuffer']['forEach'](_0x447838=>{this['notifyOutgoingListeners'](_0x447838),this['packet'](_0x447838);}),this['sendBuffer']=[];}['ondisconnect'](){this['destroy'](),this['onclose']('io\x20server\x20disconnect');}['destroy'](){this['subs']&&(this['subs']['forEach'](_0x29b335=>_0x29b335()),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'](_0xba1225){return this['flags']['compress']=_0xba1225,this;}get['volatile'](){return this['flags']['volatile']=!0x0,this;}['timeout'](_0xbea3ab){return this['flags']['timeout']=_0xbea3ab,this;}['onAny'](_0x52cf17){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['push'](_0x52cf17),this;}['prependAny'](_0x5c9d6e){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['unshift'](_0x5c9d6e),this;}['offAny'](_0x381414){if(!this['_anyListeners'])return this;if(_0x381414){const _0x34493b=this['_anyListeners'];for(let _0x49e8cc=0x0;_0x49e8cc<_0x34493b['length'];_0x49e8cc++)if(_0x381414===_0x34493b[_0x49e8cc])return _0x34493b['splice'](_0x49e8cc,0x1),this;}else this['_anyListeners']=[];return this;}['listenersAny'](){return this['_anyListeners']||[];}['onAnyOutgoing'](_0x454bbc){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['push'](_0x454bbc),this;}['prependAnyOutgoing'](_0x47b115){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['unshift'](_0x47b115),this;}['offAnyOutgoing'](_0x16d4b7){if(!this['_anyOutgoingListeners'])return this;if(_0x16d4b7){const _0x5202d1=this['_anyOutgoingListeners'];for(let _0x14fac1=0x0;_0x14fac1<_0x5202d1['length'];_0x14fac1++)if(_0x16d4b7===_0x5202d1[_0x14fac1])return _0x5202d1['splice'](_0x14fac1,0x1),this;}else this['_anyOutgoingListeners']=[];return this;}['listenersAnyOutgoing'](){return this['_anyOutgoingListeners']||[];}['notifyOutgoingListeners'](_0x20e413){if(this['_anyOutgoingListeners']&&this['_anyOutgoingListeners']['length']){const _0x155ed0=this['_anyOutgoingListeners']['slice']();for(const _0x17ef4b of _0x155ed0)_0x17ef4b['apply'](this,_0x20e413['data']);}}}function Backoff(_0x3e97d7){_0x3e97d7=_0x3e97d7||{},this['ms']=_0x3e97d7['min']||0x64,this['max']=_0x3e97d7['max']||0x2710,this['factor']=_0x3e97d7['factor']||0x2,this['jitter']=_0x3e97d7['jitter']>0x0&&_0x3e97d7['jitter']<=0x1?_0x3e97d7['jitter']:0x0,this['attempts']=0x0;}Backoff['prototype']['duration']=function(){var _0x3aee03=this['ms']*Math['pow'](this['factor'],this['attempts']++);if(this['jitter']){var _0x129aad=Math['random'](),_0x5c58ea=Math['floor'](_0x129aad*this['jitter']*_0x3aee03);_0x3aee03=0x1&Math['floor'](0xa*_0x129aad)?_0x3aee03+_0x5c58ea:_0x3aee03-_0x5c58ea;}return 0x0|Math['min'](_0x3aee03,this['max']);},Backoff['prototype']['reset']=function(){this['attempts']=0x0;},Backoff['prototype']['setMin']=function(_0x27e42d){this['ms']=_0x27e42d;},Backoff['prototype']['setMax']=function(_0x5a9c3f){this['max']=_0x5a9c3f;},Backoff['prototype']['setJitter']=function(_0x2fad4d){this['jitter']=_0x2fad4d;};class Manager extends Emitter{constructor(_0x2653eb,_0x35a0a0){var _0x5e3c24;super(),this['nsps']={},this['subs']=[],_0x2653eb&&'object'==typeof _0x2653eb&&(_0x35a0a0=_0x2653eb,_0x2653eb=void 0x0),(_0x35a0a0=_0x35a0a0||{})['path']=_0x35a0a0['path']||'/socket.io',this['opts']=_0x35a0a0,installTimerFunctions(this,_0x35a0a0),this['reconnection'](!0x1!==_0x35a0a0['reconnection']),this['reconnectionAttempts'](_0x35a0a0['reconnectionAttempts']||0x1/0x0),this['reconnectionDelay'](_0x35a0a0['reconnectionDelay']||0x3e8),this['reconnectionDelayMax'](_0x35a0a0['reconnectionDelayMax']||0x1388),this['randomizationFactor'](null!==(_0x5e3c24=_0x35a0a0['randomizationFactor'])&&void 0x0!==_0x5e3c24?_0x5e3c24:0.5),this['backoff']=new Backoff({'min':this['reconnectionDelay'](),'max':this['reconnectionDelayMax'](),'jitter':this['randomizationFactor']()}),this['timeout'](null==_0x35a0a0['timeout']?0x4e20:_0x35a0a0['timeout']),this['_readyState']='closed',this['uri']=_0x2653eb;const _0x4f053b=_0x35a0a0['parser']||parser$4;this['encoder']=new _0x4f053b['Encoder'](),this['decoder']=new _0x4f053b['Decoder'](),this['_autoConnect']=!0x1!==_0x35a0a0['autoConnect'],this['_autoConnect']&&this['open']();}['reconnection'](_0x2d05ca){return arguments['length']?(this['_reconnection']=!!_0x2d05ca,this):this['_reconnection'];}['reconnectionAttempts'](_0x101e90){return void 0x0===_0x101e90?this['_reconnectionAttempts']:(this['_reconnectionAttempts']=_0x101e90,this);}['reconnectionDelay'](_0x1a7750){var _0x1fd07a;return void 0x0===_0x1a7750?this['_reconnectionDelay']:(this['_reconnectionDelay']=_0x1a7750,null===(_0x1fd07a=this['backoff'])||void 0x0===_0x1fd07a||_0x1fd07a['setMin'](_0x1a7750),this);}['randomizationFactor'](_0x4eeba1){var _0x5c4766;return void 0x0===_0x4eeba1?this['_randomizationFactor']:(this['_randomizationFactor']=_0x4eeba1,null===(_0x5c4766=this['backoff'])||void 0x0===_0x5c4766||_0x5c4766['setJitter'](_0x4eeba1),this);}['reconnectionDelayMax'](_0xc22f19){var _0x5cc818;return void 0x0===_0xc22f19?this['_reconnectionDelayMax']:(this['_reconnectionDelayMax']=_0xc22f19,null===(_0x5cc818=this['backoff'])||void 0x0===_0x5cc818||_0x5cc818['setMax'](_0xc22f19),this);}['timeout'](_0x46ab55){return arguments['length']?(this['_timeout']=_0x46ab55,this):this['_timeout'];}['maybeReconnectOnOpen'](){!this['_reconnecting']&&this['_reconnection']&&0x0===this['backoff']['attempts']&&this['reconnect']();}['open'](_0x28c131){if(~this['_readyState']['indexOf']('open'))return this;this['engine']=new Socket$1(this['uri'],this['opts']);const _0x5ebf12=this['engine'],_0x4b9d17=this;this['_readyState']='opening',this['skipReconnect']=!0x1;const _0x106132=on(_0x5ebf12,'open',function(){_0x4b9d17['onopen'](),_0x28c131&&_0x28c131();}),_0x5ed1c8=_0x46ec7e=>{this['cleanup'](),this['_readyState']='closed',this['emitReserved']('error',_0x46ec7e),_0x28c131?_0x28c131(_0x46ec7e):this['maybeReconnectOnOpen']();},_0x3aa180=on(_0x5ebf12,'error',_0x5ed1c8);if(!0x1!==this['_timeout']){const _0x34fec1=this['_timeout'],_0x172de4=this['setTimeoutFn'](()=>{_0x106132(),_0x5ed1c8(new Error('timeout')),_0x5ebf12['close']();},_0x34fec1);this['opts']['autoUnref']&&_0x172de4['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x172de4);});}return this['subs']['push'](_0x106132),this['subs']['push'](_0x3aa180),this;}['connect'](_0x5aa365){return this['open'](_0x5aa365);}['onopen'](){this['cleanup'](),this['_readyState']='open',this['emitReserved']('open');const _0x31b0c6=this['engine'];this['subs']['push'](on(_0x31b0c6,'ping',this['onping']['bind'](this)),on(_0x31b0c6,'data',this['ondata']['bind'](this)),on(_0x31b0c6,'error',this['onerror']['bind'](this)),on(_0x31b0c6,'close',this['onclose']['bind'](this)),on(this['decoder'],'decoded',this['ondecoded']['bind'](this)));}['onping'](){this['emitReserved']('ping');}['ondata'](_0x11b2f5){try{this['decoder']['add'](_0x11b2f5);}catch(_0x463204){this['onclose']('parse\x20error',_0x463204);}}['ondecoded'](_0xb88f1){nextTick(()=>{this['emitReserved']('packet',_0xb88f1);},this['setTimeoutFn']);}['onerror'](_0x3b6046){this['emitReserved']('error',_0x3b6046);}['socket'](_0x5d07d2,_0x5ab40f){let _0x31c9db=this['nsps'][_0x5d07d2];return _0x31c9db?this['_autoConnect']&&!_0x31c9db['active']&&_0x31c9db['connect']():(_0x31c9db=new Socket(this,_0x5d07d2,_0x5ab40f),this['nsps'][_0x5d07d2]=_0x31c9db),_0x31c9db;}['_destroy'](_0x3b518a){const _0x4e7af2=Object['keys'](this['nsps']);for(const _0x211c10 of _0x4e7af2){if(this['nsps'][_0x211c10]['active'])return;}this['_close']();}['_packet'](_0x2382f5){const _0x3259f4=this['encoder']['encode'](_0x2382f5);for(let _0xeba76c=0x0;_0xeba76c<_0x3259f4['length'];_0xeba76c++)this['engine']['write'](_0x3259f4[_0xeba76c],_0x2382f5['options']);}['cleanup'](){this['subs']['forEach'](_0xf7765f=>_0xf7765f()),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'](_0x47a8b3,_0x43355d){this['cleanup'](),this['backoff']['reset'](),this['_readyState']='closed',this['emitReserved']('close',_0x47a8b3,_0x43355d),this['_reconnection']&&!this['skipReconnect']&&this['reconnect']();}['reconnect'](){if(this['_reconnecting']||this['skipReconnect'])return this;const _0x496aa8=this;if(this['backoff']['attempts']>=this['_reconnectionAttempts'])this['backoff']['reset'](),this['emitReserved']('reconnect_failed'),this['_reconnecting']=!0x1;else{const _0x421f6d=this['backoff']['duration']();this['_reconnecting']=!0x0;const _0x563ca9=this['setTimeoutFn'](()=>{_0x496aa8['skipReconnect']||(this['emitReserved']('reconnect_attempt',_0x496aa8['backoff']['attempts']),_0x496aa8['skipReconnect']||_0x496aa8['open'](_0x462597=>{_0x462597?(_0x496aa8['_reconnecting']=!0x1,_0x496aa8['reconnect'](),this['emitReserved']('reconnect_error',_0x462597)):_0x496aa8['onreconnect']();}));},_0x421f6d);this['opts']['autoUnref']&&_0x563ca9['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x563ca9);});}}['onreconnect'](){const _0x5c1362=this['backoff']['attempts'];this['_reconnecting']=!0x1,this['backoff']['reset'](),this['emitReserved']('reconnect',_0x5c1362);}}const cache$1={};function lookup(_0x2de70c,_0x2c16b8){'object'==typeof _0x2de70c&&(_0x2c16b8=_0x2de70c,_0x2de70c=void 0x0);const _0x40c0a4=url(_0x2de70c,(_0x2c16b8=_0x2c16b8||{})['path']||'/socket.io'),_0x585133=_0x40c0a4['source'],_0x329953=_0x40c0a4['id'],_0x54066b=_0x40c0a4['path'],_0x4fe7ae=cache$1[_0x329953]&&_0x54066b in cache$1[_0x329953]['nsps'];let _0x489068;return _0x2c16b8['forceNew']||_0x2c16b8['force\x20new\x20connection']||!0x1===_0x2c16b8['multiplex']||_0x4fe7ae?_0x489068=new Manager(_0x585133,_0x2c16b8):(cache$1[_0x329953]||(cache$1[_0x329953]=new Manager(_0x585133,_0x2c16b8)),_0x489068=cache$1[_0x329953]),_0x40c0a4['query']&&!_0x2c16b8['query']&&(_0x2c16b8['query']=_0x40c0a4['queryKey']),_0x489068['socket'](_0x40c0a4['path'],_0x2c16b8);}var requiresPort,hasRequiredRequiresPort;function requireRequiresPort(){return hasRequiredRequiresPort||(hasRequiredRequiresPort=0x1,requiresPort=function(_0x152517,_0x48328b){if(_0x48328b=_0x48328b['split'](':')[0x0],!(_0x152517=+_0x152517))return!0x1;switch(_0x48328b){case'http':case'ws':return 0x50!==_0x152517;case'https':case'wss':return 0x1bb!==_0x152517;case'ftp':return 0x15!==_0x152517;case'gopher':return 0x46!==_0x152517;case'file':return!0x1;}return 0x0!==_0x152517;}),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 _0x2cb755=Object['prototype']['hasOwnProperty'];function _0x47f586(_0x5271ba){try{return decodeURIComponent(_0x5271ba['replace'](/\+/g,'\x20'));}catch(_0x101abb){return null;}}function _0x3f6d09(_0x101236){try{return encodeURIComponent(_0x101236);}catch(_0x5cc078){return null;}}return querystringify['stringify']=function(_0x516bd8,_0x523d0e){_0x523d0e=_0x523d0e||'';var _0xade657,_0x20375e,_0x1d03fe=[];for(_0x20375e in('string'!=typeof _0x523d0e&&(_0x523d0e='?'),_0x516bd8))if(_0x2cb755['call'](_0x516bd8,_0x20375e)){if((_0xade657=_0x516bd8[_0x20375e])||null!=_0xade657&&!isNaN(_0xade657)||(_0xade657=''),_0x20375e=_0x3f6d09(_0x20375e),_0xade657=_0x3f6d09(_0xade657),null===_0x20375e||null===_0xade657)continue;_0x1d03fe['push'](_0x20375e+'='+_0xade657);}return _0x1d03fe['length']?_0x523d0e+_0x1d03fe['join']('&'):'';},querystringify['parse']=function(_0x2fb4f8){for(var _0x4fc916,_0x4adc6f=/([^=?#&]+)=?([^&]*)/g,_0x5824e1={};_0x4fc916=_0x4adc6f['exec'](_0x2fb4f8);){var _0x32f046=_0x47f586(_0x4fc916[0x1]),_0x48700d=_0x47f586(_0x4fc916[0x2]);null===_0x32f046||null===_0x48700d||_0x32f046 in _0x5824e1||(_0x5824e1[_0x32f046]=_0x48700d);}return _0x5824e1;},querystringify;}function requireUrlParse(){if(hasRequiredUrlParse)return urlParse;hasRequiredUrlParse=0x1;var _0x57f519=requireRequiresPort(),_0x1b0f35=requireQuerystringify(),_0x147cfb=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,_0x3d4acb=/[\n\r\t]/g,_0x35674d=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,_0x490bc7=/:\d+$/,_0x66f474=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,_0x402907=/^[a-zA-Z]:/;function _0xd1b96a(_0x336c6f){return(_0x336c6f||'')['toString']()['replace'](_0x147cfb,'');}var _0x535149=[['#','hash'],['?','query'],function(_0x20a1d3,_0x3373ce){return _0x13c68d(_0x3373ce['protocol'])?_0x20a1d3['replace'](/\\/g,'/'):_0x20a1d3;},['/','pathname'],['@','auth',0x1],[NaN,'host',void 0x0,0x1,0x1],[/:(\d*)$/,'port',void 0x0,0x1],[NaN,'hostname',void 0x0,0x1,0x1]],_0x35609f={'hash':0x1,'query':0x1};function _0x1f300c(_0x4ab074){var _0x5b1969,_0x25fea9=('undefined'!=typeof window?window:void 0x0!==commonjsGlobal?commonjsGlobal:'undefined'!=typeof self?self:{})['location']||{},_0x5dd06b={},_0x599aca=typeof(_0x4ab074=_0x4ab074||_0x25fea9);if('blob:'===_0x4ab074['protocol'])_0x5dd06b=new _0x8c3767(unescape(_0x4ab074['pathname']),{});else{if('string'===_0x599aca){for(_0x5b1969 in(_0x5dd06b=new _0x8c3767(_0x4ab074,{}),_0x35609f))delete _0x5dd06b[_0x5b1969];}else{if('object'===_0x599aca){for(_0x5b1969 in _0x4ab074)_0x5b1969 in _0x35609f||(_0x5dd06b[_0x5b1969]=_0x4ab074[_0x5b1969]);void 0x0===_0x5dd06b['slashes']&&(_0x5dd06b['slashes']=_0x35674d['test'](_0x4ab074['href']));}}}return _0x5dd06b;}function _0x13c68d(_0x15fb2a){return'file:'===_0x15fb2a||'ftp:'===_0x15fb2a||'http:'===_0x15fb2a||'https:'===_0x15fb2a||'ws:'===_0x15fb2a||'wss:'===_0x15fb2a;}function _0x3ef616(_0x468c64,_0xf99307){_0x468c64=(_0x468c64=_0xd1b96a(_0x468c64))['replace'](_0x3d4acb,''),_0xf99307=_0xf99307||{};var _0x480431,_0x24ba04=_0x66f474['exec'](_0x468c64),_0x295341=_0x24ba04[0x1]?_0x24ba04[0x1]['toLowerCase']():'',_0xf01817=!!_0x24ba04[0x2],_0x400c18=!!_0x24ba04[0x3],_0x44a72c=0x0;return _0xf01817?_0x400c18?(_0x480431=_0x24ba04[0x2]+_0x24ba04[0x3]+_0x24ba04[0x4],_0x44a72c=_0x24ba04[0x2]['length']+_0x24ba04[0x3]['length']):(_0x480431=_0x24ba04[0x2]+_0x24ba04[0x4],_0x44a72c=_0x24ba04[0x2]['length']):_0x400c18?(_0x480431=_0x24ba04[0x3]+_0x24ba04[0x4],_0x44a72c=_0x24ba04[0x3]['length']):_0x480431=_0x24ba04[0x4],'file:'===_0x295341?_0x44a72c>=0x2&&(_0x480431=_0x480431['slice'](0x2)):_0x13c68d(_0x295341)?_0x480431=_0x24ba04[0x4]:_0x295341?_0xf01817&&(_0x480431=_0x480431['slice'](0x2)):_0x44a72c>=0x2&&_0x13c68d(_0xf99307['protocol'])&&(_0x480431=_0x24ba04[0x4]),{'protocol':_0x295341,'slashes':_0xf01817||_0x13c68d(_0x295341),'slashesCount':_0x44a72c,'rest':_0x480431};}function _0x8c3767(_0x266d3f,_0x5146d3,_0x5b673e){if(_0x266d3f=(_0x266d3f=_0xd1b96a(_0x266d3f))['replace'](_0x3d4acb,''),!(this instanceof _0x8c3767))return new _0x8c3767(_0x266d3f,_0x5146d3,_0x5b673e);var _0x2135f6,_0x5ef923,_0x5c025b,_0x3a6674,_0x13f013,_0x260f22,_0x610c63=_0x535149['slice'](),_0x7a501d=typeof _0x5146d3,_0x51bde6=this,_0x2882e5=0x0;for('object'!==_0x7a501d&&'string'!==_0x7a501d&&(_0x5b673e=_0x5146d3,_0x5146d3=null),_0x5b673e&&'function'!=typeof _0x5b673e&&(_0x5b673e=_0x1b0f35['parse']),_0x2135f6=!(_0x5ef923=_0x3ef616(_0x266d3f||'',_0x5146d3=_0x1f300c(_0x5146d3)))['protocol']&&!_0x5ef923['slashes'],_0x51bde6['slashes']=_0x5ef923['slashes']||_0x2135f6&&_0x5146d3['slashes'],_0x51bde6['protocol']=_0x5ef923['protocol']||_0x5146d3['protocol']||'',_0x266d3f=_0x5ef923['rest'],('file:'===_0x5ef923['protocol']&&(0x2!==_0x5ef923['slashesCount']||_0x402907['test'](_0x266d3f))||!_0x5ef923['slashes']&&(_0x5ef923['protocol']||_0x5ef923['slashesCount']<0x2||!_0x13c68d(_0x51bde6['protocol'])))&&(_0x610c63[0x3]=[/(.*)/,'pathname']);_0x2882e5<_0x610c63['length'];_0x2882e5++)'function'!=typeof(_0x3a6674=_0x610c63[_0x2882e5])?(_0x5c025b=_0x3a6674[0x0],_0x260f22=_0x3a6674[0x1],_0x5c025b!=_0x5c025b?_0x51bde6[_0x260f22]=_0x266d3f:'string'==typeof _0x5c025b?~(_0x13f013='@'===_0x5c025b?_0x266d3f['lastIndexOf'](_0x5c025b):_0x266d3f['indexOf'](_0x5c025b))&&('number'==typeof _0x3a6674[0x2]?(_0x51bde6[_0x260f22]=_0x266d3f['slice'](0x0,_0x13f013),_0x266d3f=_0x266d3f['slice'](_0x13f013+_0x3a6674[0x2])):(_0x51bde6[_0x260f22]=_0x266d3f['slice'](_0x13f013),_0x266d3f=_0x266d3f['slice'](0x0,_0x13f013))):(_0x13f013=_0x5c025b['exec'](_0x266d3f))&&(_0x51bde6[_0x260f22]=_0x13f013[0x1],_0x266d3f=_0x266d3f['slice'](0x0,_0x13f013['index'])),_0x51bde6[_0x260f22]=_0x51bde6[_0x260f22]||_0x2135f6&&_0x3a6674[0x3]&&_0x5146d3[_0x260f22]||'',_0x3a6674[0x4]&&(_0x51bde6[_0x260f22]=_0x51bde6[_0x260f22]['toLowerCase']())):_0x266d3f=_0x3a6674(_0x266d3f,_0x51bde6);_0x5b673e&&(_0x51bde6['query']=_0x5b673e(_0x51bde6['query'])),_0x2135f6&&_0x5146d3['slashes']&&'/'!==_0x51bde6['pathname']['charAt'](0x0)&&(''!==_0x51bde6['pathname']||''!==_0x5146d3['pathname'])&&(_0x51bde6['pathname']=function(_0x1f2951,_0x4e800d){if(''===_0x1f2951)return _0x4e800d;for(var _0x467cc5=(_0x4e800d||'/')['split']('/')['slice'](0x0,-0x1)['concat'](_0x1f2951['split']('/')),_0x1cce22=_0x467cc5['length'],_0x44a8b2=_0x467cc5[_0x1cce22-0x1],_0x2ac9fa=!0x1,_0x2cad69=0x0;_0x1cce22--;)'.'===_0x467cc5[_0x1cce22]?_0x467cc5['splice'](_0x1cce22,0x1):'..'===_0x467cc5[_0x1cce22]?(_0x467cc5['splice'](_0x1cce22,0x1),_0x2cad69++):_0x2cad69&&(0x0===_0x1cce22&&(_0x2ac9fa=!0x0),_0x467cc5['splice'](_0x1cce22,0x1),_0x2cad69--);return _0x2ac9fa&&_0x467cc5['unshift'](''),'.'!==_0x44a8b2&&'..'!==_0x44a8b2||_0x467cc5['push'](''),_0x467cc5['join']('/');}(_0x51bde6['pathname'],_0x5146d3['pathname'])),'/'!==_0x51bde6['pathname']['charAt'](0x0)&&_0x13c68d(_0x51bde6['protocol'])&&(_0x51bde6['pathname']='/'+_0x51bde6['pathname']),_0x57f519(_0x51bde6['port'],_0x51bde6['protocol'])||(_0x51bde6['host']=_0x51bde6['hostname'],_0x51bde6['port']=''),_0x51bde6['username']=_0x51bde6['password']='',_0x51bde6['auth']&&(~(_0x13f013=_0x51bde6['auth']['indexOf'](':'))?(_0x51bde6['username']=_0x51bde6['auth']['slice'](0x0,_0x13f013),_0x51bde6['username']=encodeURIComponent(decodeURIComponent(_0x51bde6['username'])),_0x51bde6['password']=_0x51bde6['auth']['slice'](_0x13f013+0x1),_0x51bde6['password']=encodeURIComponent(decodeURIComponent(_0x51bde6['password']))):_0x51bde6['username']=encodeURIComponent(decodeURIComponent(_0x51bde6['auth'])),_0x51bde6['auth']=_0x51bde6['password']?_0x51bde6['username']+':'+_0x51bde6['password']:_0x51bde6['username']),_0x51bde6['origin']='file:'!==_0x51bde6['protocol']&&_0x13c68d(_0x51bde6['protocol'])&&_0x51bde6['host']?_0x51bde6['protocol']+'//'+_0x51bde6['host']:'null',_0x51bde6['href']=_0x51bde6['toString']();}return _0x8c3767['prototype']={'set':function(_0x4d2774,_0x53dbc8,_0x13e9fa){var _0x16b6ba=this;switch(_0x4d2774){case'query':'string'==typeof _0x53dbc8&&_0x53dbc8['length']&&(_0x53dbc8=(_0x13e9fa||_0x1b0f35['parse'])(_0x53dbc8)),_0x16b6ba[_0x4d2774]=_0x53dbc8;break;case'port':_0x16b6ba[_0x4d2774]=_0x53dbc8,_0x57f519(_0x53dbc8,_0x16b6ba['protocol'])?_0x53dbc8&&(_0x16b6ba['host']=_0x16b6ba['hostname']+':'+_0x53dbc8):(_0x16b6ba['host']=_0x16b6ba['hostname'],_0x16b6ba[_0x4d2774]='');break;case'hostname':_0x16b6ba[_0x4d2774]=_0x53dbc8,_0x16b6ba['port']&&(_0x53dbc8+=':'+_0x16b6ba['port']),_0x16b6ba['host']=_0x53dbc8;break;case'host':_0x16b6ba[_0x4d2774]=_0x53dbc8,_0x490bc7['test'](_0x53dbc8)?(_0x53dbc8=_0x53dbc8['split'](':'),_0x16b6ba['port']=_0x53dbc8['pop'](),_0x16b6ba['hostname']=_0x53dbc8['join'](':')):(_0x16b6ba['hostname']=_0x53dbc8,_0x16b6ba['port']='');break;case'protocol':_0x16b6ba['protocol']=_0x53dbc8['toLowerCase'](),_0x16b6ba['slashes']=!_0x13e9fa;break;case'pathname':case'hash':if(_0x53dbc8){var _0x6d741a='pathname'===_0x4d2774?'/':'#';_0x16b6ba[_0x4d2774]=_0x53dbc8['charAt'](0x0)!==_0x6d741a?_0x6d741a+_0x53dbc8:_0x53dbc8;}else _0x16b6ba[_0x4d2774]=_0x53dbc8;break;case'username':case'password':_0x16b6ba[_0x4d2774]=encodeURIComponent(_0x53dbc8);break;case'auth':var _0x1f2c59=_0x53dbc8['indexOf'](':');~_0x1f2c59?(_0x16b6ba['username']=_0x53dbc8['slice'](0x0,_0x1f2c59),_0x16b6ba['username']=encodeURIComponent(decodeURIComponent(_0x16b6ba['username'])),_0x16b6ba['password']=_0x53dbc8['slice'](_0x1f2c59+0x1),_0x16b6ba['password']=encodeURIComponent(decodeURIComponent(_0x16b6ba['password']))):_0x16b6ba['username']=encodeURIComponent(decodeURIComponent(_0x53dbc8));}for(var _0x345724=0x0;_0x345724<_0x535149['length'];_0x345724++){var _0x1da6c6=_0x535149[_0x345724];_0x1da6c6[0x4]&&(_0x16b6ba[_0x1da6c6[0x1]]=_0x16b6ba[_0x1da6c6[0x1]]['toLowerCase']());}return _0x16b6ba['auth']=_0x16b6ba['password']?_0x16b6ba['username']+':'+_0x16b6ba['password']:_0x16b6ba['username'],_0x16b6ba['origin']='file:'!==_0x16b6ba['protocol']&&_0x13c68d(_0x16b6ba['protocol'])&&_0x16b6ba['host']?_0x16b6ba['protocol']+'//'+_0x16b6ba['host']:'null',_0x16b6ba['href']=_0x16b6ba['toString'](),_0x16b6ba;},'toString':function(_0x4b3c2c){_0x4b3c2c&&'function'==typeof _0x4b3c2c||(_0x4b3c2c=_0x1b0f35['stringify']);var _0x3c503d,_0x55e6f3=this,_0x5e1048=_0x55e6f3['host'],_0x333a05=_0x55e6f3['protocol'];_0x333a05&&':'!==_0x333a05['charAt'](_0x333a05['length']-0x1)&&(_0x333a05+=':');var _0x8e75dc=_0x333a05+(_0x55e6f3['protocol']&&_0x55e6f3['slashes']||_0x13c68d(_0x55e6f3['protocol'])?'//':'');return _0x55e6f3['username']?(_0x8e75dc+=_0x55e6f3['username'],_0x55e6f3['password']&&(_0x8e75dc+=':'+_0x55e6f3['password']),_0x8e75dc+='@'):_0x55e6f3['password']?(_0x8e75dc+=':'+_0x55e6f3['password'],_0x8e75dc+='@'):'file:'!==_0x55e6f3['protocol']&&_0x13c68d(_0x55e6f3['protocol'])&&!_0x5e1048&&'/'!==_0x55e6f3['pathname']&&(_0x8e75dc+='@'),(':'===_0x5e1048[_0x5e1048['length']-0x1]||_0x490bc7['test'](_0x55e6f3['hostname'])&&!_0x55e6f3['port'])&&(_0x5e1048+=':'),_0x8e75dc+=_0x5e1048+_0x55e6f3['pathname'],(_0x3c503d='object'==typeof _0x55e6f3['query']?_0x4b3c2c(_0x55e6f3['query']):_0x55e6f3['query'])&&(_0x8e75dc+='?'!==_0x3c503d['charAt'](0x0)?'?'+_0x3c503d:_0x3c503d),_0x55e6f3['hash']&&(_0x8e75dc+=_0x55e6f3['hash']),_0x8e75dc;}},_0x8c3767['extractProtocol']=_0x3ef616,_0x8c3767['location']=_0x1f300c,_0x8c3767['trimLeft']=_0xd1b96a,_0x8c3767['qs']=_0x1b0f35,urlParse=_0x8c3767;}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(_0x59ec46,_0x58b539=0x0){return byteToHex[_0x59ec46[_0x58b539+0x0]]+byteToHex[_0x59ec46[_0x58b539+0x1]]+byteToHex[_0x59ec46[_0x58b539+0x2]]+byteToHex[_0x59ec46[_0x58b539+0x3]]+'-'+byteToHex[_0x59ec46[_0x58b539+0x4]]+byteToHex[_0x59ec46[_0x58b539+0x5]]+'-'+byteToHex[_0x59ec46[_0x58b539+0x6]]+byteToHex[_0x59ec46[_0x58b539+0x7]]+'-'+byteToHex[_0x59ec46[_0x58b539+0x8]]+byteToHex[_0x59ec46[_0x58b539+0x9]]+'-'+byteToHex[_0x59ec46[_0x58b539+0xa]]+byteToHex[_0x59ec46[_0x58b539+0xb]]+byteToHex[_0x59ec46[_0x58b539+0xc]]+byteToHex[_0x59ec46[_0x58b539+0xd]]+byteToHex[_0x59ec46[_0x58b539+0xe]]+byteToHex[_0x59ec46[_0x58b539+0xf]];}const randomUUID='undefined'!=typeof crypto&&crypto['randomUUID']&&crypto['randomUUID']['bind'](crypto);var native$1={'randomUUID':randomUUID};function v4(_0x40742a,_0x396fa3,_0x134a53){if(native$1['randomUUID']&&!_0x40742a)return native$1['randomUUID']();const _0x31a5ae=(_0x40742a=_0x40742a||{})['random']||(_0x40742a['rng']||rng)();return _0x31a5ae[0x6]=0xf&_0x31a5ae[0x6]|0x40,_0x31a5ae[0x8]=0x3f&_0x31a5ae[0x8]|0x80,unsafeStringify(_0x31a5ae);}class Descriptor{static ['DESCRIPTOR_NAME'];static ['DESCRIPTOR'];constructor(..._0x5c1035){}}class Message extends Descriptor{static ['TYPE']='1000';static ['READABLE_TYPE_NAME'];constructor(..._0x312b6a){super();}static['fromJSON'](_0xdd3eb0){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(_0x183c75){super(),this['id']=_0x183c75;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](_0x341408){return new GetUserMessage(_0x341408['id']);}}class GetUserResponse extends Message{['attributes'];static ['DESCRIPTOR_NAME']='GetUserResponse';static ['DESCRIPTOR']={'fields':{'attributes':{'rule':'repeated','type':'KeyValueDescriptor','id':0x1}}};constructor(_0x302731){super(),this['attributes']=_0x302731;}['toJSON'](){return{'attributes':Object['keys'](this['attributes'])['map'](_0xb5a14=>({'key':_0xb5a14,'value':JSON['stringify'](this['attributes'][_0xb5a14])}))};}static['fromJSON'](_0x3931d4){const _0x3dec98=_0x3931d4['attributes']['reduce']((_0x259737,_0x103ab8)=>(_0x259737[_0x103ab8['key']]=_0x103ab8['value']?JSON['parse'](_0x103ab8['value']):null,_0x259737),{});return new GetUserResponse(_0x3dec98);}}const messages$1=/* #__PURE__ -- @preserve */
((()=>{var _0x5e9c2f=minimalExports['Reader'],_0x2e8075=minimalExports['Writer'],_0x44b59b=minimalExports['util'],_0x1429da=minimalExports['roots']['default']||(minimalExports['roots']['default']={});return _0x1429da['StringStringPacketDataMessage']=(function(){function _0x1876cd(_0xbab4c2){if(_0xbab4c2){for(var _0x35e3f4=Object['keys'](_0xbab4c2),_0x24e1ec=0x0;_0x24e1ec<_0x35e3f4['length'];++_0x24e1ec)null!=_0xbab4c2[_0x35e3f4[_0x24e1ec]]&&(this[_0x35e3f4[_0x24e1ec]]=_0xbab4c2[_0x35e3f4[_0x24e1ec]]);}}return _0x1876cd['prototype']['data']='',_0x1876cd['prototype']['data1']='',_0x1876cd['create']=function(_0x2fdfa4){return new _0x1876cd(_0x2fdfa4);},_0x1876cd['encode']=function(_0x595a01,_0x14f555){return _0x14f555||(_0x14f555=_0x2e8075['create']()),null!=_0x595a01['data']&&Object['hasOwnProperty']['call'](_0x595a01,'data')&&_0x14f555['uint32'](0xa)['string'](_0x595a01['data']),null!=_0x595a01['data1']&&Object['hasOwnProperty']['call'](_0x595a01,'data1')&&_0x14f555['uint32'](0x12)['string'](_0x595a01['data1']),_0x14f555;},_0x1876cd['encodeDelimited']=function(_0x4002d4,_0x33aa4b){return this['encode'](_0x4002d4,_0x33aa4b)['ldelim']();},_0x1876cd['decode']=function(_0x40bb1e,_0x1ac359,_0x40f6fe){_0x40bb1e instanceof _0x5e9c2f||(_0x40bb1e=_0x5e9c2f['create'](_0x40bb1e));for(var _0x31862d=void 0x0===_0x1ac359?_0x40bb1e['len']:_0x40bb1e['pos']+_0x1ac359,_0x402893=new _0x1429da['StringStringPacketDataMessage']();_0x40bb1e['pos']<_0x31862d;){var _0x31166f=_0x40bb1e['uint32']();if(_0x31166f===_0x40f6fe)break;switch(_0x31166f>>>0x3){case 0x1:_0x402893['data']=_0x40bb1e['string']();break;case 0x2:_0x402893['data1']=_0x40bb1e['string']();break;default:_0x40bb1e['skipType'](0x7&_0x31166f);}}return _0x402893;},_0x1876cd['decodeDelimited']=function(_0x55858e){return _0x55858e instanceof _0x5e9c2f||(_0x55858e=new _0x5e9c2f(_0x55858e)),this['decode'](_0x55858e,_0x55858e['uint32']());},_0x1876cd['verify']=function(_0x21b793){return'object'!=typeof _0x21b793||null===_0x21b793?'object\x20expected':null!=_0x21b793['data']&&_0x21b793['hasOwnProperty']('data')&&!_0x44b59b['isString'](_0x21b793['data'])?'data:\x20string\x20expected':null!=_0x21b793['data1']&&_0x21b793['hasOwnProperty']('data1')&&!_0x44b59b['isString'](_0x21b793['data1'])?'data1:\x20string\x20expected':null;},_0x1876cd['fromObject']=function(_0x4d02bd){if(_0x4d02bd instanceof _0x1429da['StringStringPacketDataMessage'])return _0x4d02bd;var _0x548c13=new _0x1429da['StringStringPacketDataMessage']();return null!=_0x4d02bd['data']&&(_0x548c13['data']=String(_0x4d02bd['data'])),null!=_0x4d02bd['data1']&&(_0x548c13['data1']=String(_0x4d02bd['data1'])),_0x548c13;},_0x1876cd['toObject']=function(_0x337517,_0x2b2f63){_0x2b2f63||(_0x2b2f63={});var _0x414b74={};return _0x2b2f63['defaults']&&(_0x414b74['data']='',_0x414b74['data1']=''),null!=_0x337517['data']&&_0x337517['hasOwnProperty']('data')&&(_0x414b74['data']=_0x337517['data']),null!=_0x337517['data1']&&_0x337517['hasOwnProperty']('data1')&&(_0x414b74['data1']=_0x337517['data1']),_0x414b74;},_0x1876cd['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1876cd['getTypeUrl']=function(_0x2a7740){return void 0x0===_0x2a7740&&(_0x2a7740='type.googleapis.com'),_0x2a7740+'/StringStringPacketDataMessage';},_0x1876cd;}()),_0x1429da['StringObjectPacketDataMessage']=(function(){function _0x306a6e(_0xd37a0f){if(_0xd37a0f){for(var _0x4e60c9=Object['keys'](_0xd37a0f),_0x4ae784=0x0;_0x4ae784<_0x4e60c9['length'];++_0x4ae784)null!=_0xd37a0f[_0x4e60c9[_0x4ae784]]&&(this[_0x4e60c9[_0x4ae784]]=_0xd37a0f[_0x4e60c9[_0x4ae784]]);}}return _0x306a6e['prototype']['data']='',_0x306a6e['prototype']['data1']='',_0x306a6e['create']=function(_0x4a9a09){return new _0x306a6e(_0x4a9a09);},_0x306a6e['encode']=function(_0x1ab5af,_0x2df7d9){return _0x2df7d9||(_0x2df7d9=_0x2e8075['create']()),null!=_0x1ab5af['data']&&Object['hasOwnProperty']['call'](_0x1ab5af,'data')&&_0x2df7d9['uint32'](0xa)['string'](_0x1ab5af['data']),null!=_0x1ab5af['data1']&&Object['hasOwnProperty']['call'](_0x1ab5af,'data1')&&_0x2df7d9['uint32'](0x12)['string'](_0x1ab5af['data1']),_0x2df7d9;},_0x306a6e['encodeDelimited']=function(_0x339e16,_0x448619){return this['encode'](_0x339e16,_0x448619)['ldelim']();},_0x306a6e['decode']=function(_0x38eb14,_0x1138f2,_0x2e2bbe){_0x38eb14 instanceof _0x5e9c2f||(_0x38eb14=_0x5e9c2f['create'](_0x38eb14));for(var _0x2f7917=void 0x0===_0x1138f2?_0x38eb14['len']:_0x38eb14['pos']+_0x1138f2,_0x5583e1=new _0x1429da['StringObjectPacketDataMessage']();_0x38eb14['pos']<_0x2f7917;){var _0x26b601=_0x38eb14['uint32']();if(_0x26b601===_0x2e2bbe)break;switch(_0x26b601>>>0x3){case 0x1:_0x5583e1['data']=_0x38eb14['string']();break;case 0x2:_0x5583e1['data1']=_0x38eb14['string']();break;default:_0x38eb14['skipType'](0x7&_0x26b601);}}return _0x5583e1;},_0x306a6e['decodeDelimited']=function(_0x2ae0db){return _0x2ae0db instanceof _0x5e9c2f||(_0x2ae0db=new _0x5e9c2f(_0x2ae0db)),this['decode'](_0x2ae0db,_0x2ae0db['uint32']());},_0x306a6e['verify']=function(_0x55dc02){return'object'!=typeof _0x55dc02||null===_0x55dc02?'object\x20expected':null!=_0x55dc02['data']&&_0x55dc02['hasOwnProperty']('data')&&!_0x44b59b['isString'](_0x55dc02['data'])?'data:\x20string\x20expected':null!=_0x55dc02['data1']&&_0x55dc02['hasOwnProperty']('data1')&&!_0x44b59b['isString'](_0x55dc02['data1'])?'data1:\x20string\x20expected':null;},_0x306a6e['fromObject']=function(_0x540a87){if(_0x540a87 instanceof _0x1429da['StringObjectPacketDataMessage'])return _0x540a87;var _0x20d947=new _0x1429da['StringObjectPacketDataMessage']();return null!=_0x540a87['data']&&(_0x20d947['data']=String(_0x540a87['data'])),null!=_0x540a87['data1']&&(_0x20d947['data1']=String(_0x540a87['data1'])),_0x20d947;},_0x306a6e['toObject']=function(_0x5ef2ce,_0x152cd9){_0x152cd9||(_0x152cd9={});var _0xe71610={};return _0x152cd9['defaults']&&(_0xe71610['data']='',_0xe71610['data1']=''),null!=_0x5ef2ce['data']&&_0x5ef2ce['hasOwnProperty']('data')&&(_0xe71610['data']=_0x5ef2ce['data']),null!=_0x5ef2ce['data1']&&_0x5ef2ce['hasOwnProperty']('data1')&&(_0xe71610['data1']=_0x5ef2ce['data1']),_0xe71610;},_0x306a6e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x306a6e['getTypeUrl']=function(_0x6044fa){return void 0x0===_0x6044fa&&(_0x6044fa='type.googleapis.com'),_0x6044fa+'/StringObjectPacketDataMessage';},_0x306a6e;}()),_0x1429da['StringNumberPacketDataMessage']=(function(){function _0x31aafa(_0x1dce99){if(_0x1dce99){for(var _0x5a04f9=Object['keys'](_0x1dce99),_0x3fa943=0x0;_0x3fa943<_0x5a04f9['length'];++_0x3fa943)null!=_0x1dce99[_0x5a04f9[_0x3fa943]]&&(this[_0x5a04f9[_0x3fa943]]=_0x1dce99[_0x5a04f9[_0x3fa943]]);}}return _0x31aafa['prototype']['data']='',_0x31aafa['prototype']['data1']=0x0,_0x31aafa['create']=function(_0x5434c6){return new _0x31aafa(_0x5434c6);},_0x31aafa['encode']=function(_0x5df7fd,_0x15cdc1){return _0x15cdc1||(_0x15cdc1=_0x2e8075['create']()),null!=_0x5df7fd['data']&&Object['hasOwnProperty']['call'](_0x5df7fd,'data')&&_0x15cdc1['uint32'](0xa)['string'](_0x5df7fd['data']),null!=_0x5df7fd['data1']&&Object['hasOwnProperty']['call'](_0x5df7fd,'data1')&&_0x15cdc1['uint32'](0x10)['uint32'](_0x5df7fd['data1']),_0x15cdc1;},_0x31aafa['encodeDelimited']=function(_0xd88afd,_0x27eeb1){return this['encode'](_0xd88afd,_0x27eeb1)['ldelim']();},_0x31aafa['decode']=function(_0x644a08,_0xc326c5,_0x1551c6){_0x644a08 instanceof _0x5e9c2f||(_0x644a08=_0x5e9c2f['create'](_0x644a08));for(var _0x449a2a=void 0x0===_0xc326c5?_0x644a08['len']:_0x644a08['pos']+_0xc326c5,_0x29bbb0=new _0x1429da['StringNumberPacketDataMessage']();_0x644a08['pos']<_0x449a2a;){var _0x2c5f0a=_0x644a08['uint32']();if(_0x2c5f0a===_0x1551c6)break;switch(_0x2c5f0a>>>0x3){case 0x1:_0x29bbb0['data']=_0x644a08['string']();break;case 0x2:_0x29bbb0['data1']=_0x644a08['uint32']();break;default:_0x644a08['skipType'](0x7&_0x2c5f0a);}}return _0x29bbb0;},_0x31aafa['decodeDelimited']=function(_0x342b95){return _0x342b95 instanceof _0x5e9c2f||(_0x342b95=new _0x5e9c2f(_0x342b95)),this['decode'](_0x342b95,_0x342b95['uint32']());},_0x31aafa['verify']=function(_0x5782ff){return'object'!=typeof _0x5782ff||null===_0x5782ff?'object\x20expected':null!=_0x5782ff['data']&&_0x5782ff['hasOwnProperty']('data')&&!_0x44b59b['isString'](_0x5782ff['data'])?'data:\x20string\x20expected':null!=_0x5782ff['data1']&&_0x5782ff['hasOwnProperty']('data1')&&!_0x44b59b['isInteger'](_0x5782ff['data1'])?'data1:\x20integer\x20expected':null;},_0x31aafa['fromObject']=function(_0x1a4162){if(_0x1a4162 instanceof _0x1429da['StringNumberPacketDataMessage'])return _0x1a4162;var _0x19aadf=new _0x1429da['StringNumberPacketDataMessage']();return null!=_0x1a4162['data']&&(_0x19aadf['data']=String(_0x1a4162['data'])),null!=_0x1a4162['data1']&&(_0x19aadf['data1']=_0x1a4162['data1']>>>0x0),_0x19aadf;},_0x31aafa['toObject']=function(_0x4753fd,_0xed7f0f){_0xed7f0f||(_0xed7f0f={});var _0x303780={};return _0xed7f0f['defaults']&&(_0x303780['data']='',_0x303780['data1']=0x0),null!=_0x4753fd['data']&&_0x4753fd['hasOwnProperty']('data')&&(_0x303780['data']=_0x4753fd['data']),null!=_0x4753fd['data1']&&_0x4753fd['hasOwnProperty']('data1')&&(_0x303780['data1']=_0x4753fd['data1']),_0x303780;},_0x31aafa['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x31aafa['getTypeUrl']=function(_0x2e2896){return void 0x0===_0x2e2896&&(_0x2e2896='type.googleapis.com'),_0x2e2896+'/StringNumberPacketDataMessage';},_0x31aafa;}()),_0x1429da['StringBytesPacketDataMessage']=(function(){function _0x5ed687(_0xf67a26){if(_0xf67a26){for(var _0xd10a2a=Object['keys'](_0xf67a26),_0x205026=0x0;_0x205026<_0xd10a2a['length'];++_0x205026)null!=_0xf67a26[_0xd10a2a[_0x205026]]&&(this[_0xd10a2a[_0x205026]]=_0xf67a26[_0xd10a2a[_0x205026]]);}}return _0x5ed687['prototype']['data']='',_0x5ed687['prototype']['data1']=_0x44b59b['newBuffer']([]),_0x5ed687['create']=function(_0x59792d){return new _0x5ed687(_0x59792d);},_0x5ed687['encode']=function(_0x24411c,_0x1fd64d){return _0x1fd64d||(_0x1fd64d=_0x2e8075['create']()),null!=_0x24411c['data']&&Object['hasOwnProperty']['call'](_0x24411c,'data')&&_0x1fd64d['uint32'](0xa)['string'](_0x24411c['data']),null!=_0x24411c['data1']&&Object['hasOwnProperty']['call'](_0x24411c,'data1')&&_0x1fd64d['uint32'](0x12)['bytes'](_0x24411c['data1']),_0x1fd64d;},_0x5ed687['encodeDelimited']=function(_0x5bc26e,_0x325ead){return this['encode'](_0x5bc26e,_0x325ead)['ldelim']();},_0x5ed687['decode']=function(_0x4a00e2,_0x406cc5,_0x2376be){_0x4a00e2 instanceof _0x5e9c2f||(_0x4a00e2=_0x5e9c2f['create'](_0x4a00e2));for(var _0x25c12c=void 0x0===_0x406cc5?_0x4a00e2['len']:_0x4a00e2['pos']+_0x406cc5,_0x3dfcb0=new _0x1429da['StringBytesPacketDataMessage']();_0x4a00e2['pos']<_0x25c12c;){var _0x2652ea=_0x4a00e2['uint32']();if(_0x2652ea===_0x2376be)break;switch(_0x2652ea>>>0x3){case 0x1:_0x3dfcb0['data']=_0x4a00e2['string']();break;case 0x2:_0x3dfcb0['data1']=_0x4a00e2['bytes']();break;default:_0x4a00e2['skipType'](0x7&_0x2652ea);}}return _0x3dfcb0;},_0x5ed687['decodeDelimited']=function(_0x4a7fc3){return _0x4a7fc3 instanceof _0x5e9c2f||(_0x4a7fc3=new _0x5e9c2f(_0x4a7fc3)),this['decode'](_0x4a7fc3,_0x4a7fc3['uint32']());},_0x5ed687['verify']=function(_0x293be3){return'object'!=typeof _0x293be3||null===_0x293be3?'object\x20expected':null!=_0x293be3['data']&&_0x293be3['hasOwnProperty']('data')&&!_0x44b59b['isString'](_0x293be3['data'])?'data:\x20string\x20expected':null!=_0x293be3['data1']&&_0x293be3['hasOwnProperty']('data1')&&!(_0x293be3['data1']&&'number'==typeof _0x293be3['data1']['length']||_0x44b59b['isString'](_0x293be3['data1']))?'data1:\x20buffer\x20expected':null;},_0x5ed687['fromObject']=function(_0x332546){if(_0x332546 instanceof _0x1429da['StringBytesPacketDataMessage'])return _0x332546;var _0x4cf06c=new _0x1429da['StringBytesPacketDataMessage']();return null!=_0x332546['data']&&(_0x4cf06c['data']=String(_0x332546['data'])),null!=_0x332546['data1']&&('string'==typeof _0x332546['data1']?_0x44b59b['base64']['decode'](_0x332546['data1'],_0x4cf06c['data1']=_0x44b59b['newBuffer'](_0x44b59b['base64']['length'](_0x332546['data1'])),0x0):_0x332546['data1']['length']>=0x0&&(_0x4cf06c['data1']=_0x332546['data1'])),_0x4cf06c;},_0x5ed687['toObject']=function(_0x28e619,_0x289a99){_0x289a99||(_0x289a99={});var _0x2be5d6={};return _0x289a99['defaults']&&(_0x2be5d6['data']='',_0x289a99['bytes']===String?_0x2be5d6['data1']='':(_0x2be5d6['data1']=[],_0x289a99['bytes']!==Array&&(_0x2be5d6['data1']=_0x44b59b['newBuffer'](_0x2be5d6['data1'])))),null!=_0x28e619['data']&&_0x28e619['hasOwnProperty']('data')&&(_0x2be5d6['data']=_0x28e619['data']),null!=_0x28e619['data1']&&_0x28e619['hasOwnProperty']('data1')&&(_0x2be5d6['data1']=_0x289a99['bytes']===String?_0x44b59b['base64']['encode'](_0x28e619['data1'],0x0,_0x28e619['data1']['length']):_0x289a99['bytes']===Array?Array['prototype']['slice']['call'](_0x28e619['data1']):_0x28e619['data1']),_0x2be5d6;},_0x5ed687['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5ed687['getTypeUrl']=function(_0x27257f){return void 0x0===_0x27257f&&(_0x27257f='type.googleapis.com'),_0x27257f+'/StringBytesPacketDataMessage';},_0x5ed687;}()),_0x1429da['PacketOptionsMessage']=(function(){function _0x30a5b(_0x4df27c){if(this['rooms']=[],this['except']=[],_0x4df27c){for(var _0x553795=Object['keys'](_0x4df27c),_0x2200e2=0x0;_0x2200e2<_0x553795['length'];++_0x2200e2)null!=_0x4df27c[_0x553795[_0x2200e2]]&&(this[_0x553795[_0x2200e2]]=_0x4df27c[_0x553795[_0x2200e2]]);}}return _0x30a5b['prototype']['flags']='',_0x30a5b['prototype']['rooms']=_0x44b59b['emptyArray'],_0x30a5b['prototype']['except']=_0x44b59b['emptyArray'],_0x30a5b['create']=function(_0x57e43f){return new _0x30a5b(_0x57e43f);},_0x30a5b['encode']=function(_0x108c79,_0x5dc2c6){if(_0x5dc2c6||(_0x5dc2c6=_0x2e8075['create']()),null!=_0x108c79['flags']&&Object['hasOwnProperty']['call'](_0x108c79,'flags')&&_0x5dc2c6['uint32'](0xa)['string'](_0x108c79['flags']),null!=_0x108c79['rooms']&&_0x108c79['rooms']['length']){for(var _0x15824c=0x0;_0x15824c<_0x108c79['rooms']['length'];++_0x15824c)_0x5dc2c6['uint32'](0x12)['string'](_0x108c79['rooms'][_0x15824c]);}if(null!=_0x108c79['except']&&_0x108c79['except']['length']){for(_0x15824c=0x0;_0x15824c<_0x108c79['except']['length'];++_0x15824c)_0x5dc2c6['uint32'](0x1a)['string'](_0x108c79['except'][_0x15824c]);}return _0x5dc2c6;},_0x30a5b['encodeDelimited']=function(_0x9b03e7,_0xdd4165){return this['encode'](_0x9b03e7,_0xdd4165)['ldelim']();},_0x30a5b['decode']=function(_0x5df7d1,_0x1da9c2,_0x53a108){_0x5df7d1 instanceof _0x5e9c2f||(_0x5df7d1=_0x5e9c2f['create'](_0x5df7d1));for(var _0x18cc0c=void 0x0===_0x1da9c2?_0x5df7d1['len']:_0x5df7d1['pos']+_0x1da9c2,_0x507835=new _0x1429da['PacketOptionsMessage']();_0x5df7d1['pos']<_0x18cc0c;){var _0xfb7e23=_0x5df7d1['uint32']();if(_0xfb7e23===_0x53a108)break;switch(_0xfb7e23>>>0x3){case 0x1:_0x507835['flags']=_0x5df7d1['string']();break;case 0x2:_0x507835['rooms']&&_0x507835['rooms']['length']||(_0x507835['rooms']=[]),_0x507835['rooms']['push'](_0x5df7d1['string']());break;case 0x3:_0x507835['except']&&_0x507835['except']['length']||(_0x507835['except']=[]),_0x507835['except']['push'](_0x5df7d1['string']());break;default:_0x5df7d1['skipType'](0x7&_0xfb7e23);}}return _0x507835;},_0x30a5b['decodeDelimited']=function(_0xe5ea21){return _0xe5ea21 instanceof _0x5e9c2f||(_0xe5ea21=new _0x5e9c2f(_0xe5ea21)),this['decode'](_0xe5ea21,_0xe5ea21['uint32']());},_0x30a5b['verify']=function(_0x5625ac){if('object'!=typeof _0x5625ac||null===_0x5625ac)return'object\x20expected';if(null!=_0x5625ac['flags']&&_0x5625ac['hasOwnProperty']('flags')&&!_0x44b59b['isString'](_0x5625ac['flags']))return'flags:\x20string\x20expected';if(null!=_0x5625ac['rooms']&&_0x5625ac['hasOwnProperty']('rooms')){if(!Array['isArray'](_0x5625ac['rooms']))return'rooms:\x20array\x20expected';for(var _0x1e6d48=0x0;_0x1e6d48<_0x5625ac['rooms']['length'];++_0x1e6d48)if(!_0x44b59b['isString'](_0x5625ac['rooms'][_0x1e6d48]))return'rooms:\x20string[]\x20expected';}if(null!=_0x5625ac['except']&&_0x5625ac['hasOwnProperty']('except')){if(!Array['isArray'](_0x5625ac['except']))return'except:\x20array\x20expected';for(_0x1e6d48=0x0;_0x1e6d48<_0x5625ac['except']['length'];++_0x1e6d48)if(!_0x44b59b['isString'](_0x5625ac['except'][_0x1e6d48]))return'except:\x20string[]\x20expected';}return null;},_0x30a5b['fromObject']=function(_0x38081f){if(_0x38081f instanceof _0x1429da['PacketOptionsMessage'])return _0x38081f;var _0x427417=new _0x1429da['PacketOptionsMessage']();if(null!=_0x38081f['flags']&&(_0x427417['flags']=String(_0x38081f['flags'])),_0x38081f['rooms']){if(!Array['isArray'](_0x38081f['rooms']))throw TypeError('.PacketOptionsMessage.rooms:\x20array\x20expected');_0x427417['rooms']=[];for(var _0x27fee5=0x0;_0x27fee5<_0x38081f['rooms']['length'];++_0x27fee5)_0x427417['rooms'][_0x27fee5]=String(_0x38081f['rooms'][_0x27fee5]);}if(_0x38081f['except']){if(!Array['isArray'](_0x38081f['except']))throw TypeError('.PacketOptionsMessage.except:\x20array\x20expected');for(_0x427417['except']=[],_0x27fee5=0x0;_0x27fee5<_0x38081f['except']['length'];++_0x27fee5)_0x427417['except'][_0x27fee5]=String(_0x38081f['except'][_0x27fee5]);}return _0x427417;},_0x30a5b['toObject']=function(_0x191faa,_0x21df57){_0x21df57||(_0x21df57={});var _0x51fdb4={};if((_0x21df57['arrays']||_0x21df57['defaults'])&&(_0x51fdb4['rooms']=[],_0x51fdb4['except']=[]),_0x21df57['defaults']&&(_0x51fdb4['flags']=''),null!=_0x191faa['flags']&&_0x191faa['hasOwnProperty']('flags')&&(_0x51fdb4['flags']=_0x191faa['flags']),_0x191faa['rooms']&&_0x191faa['rooms']['length']){_0x51fdb4['rooms']=[];for(var _0x27a1fa=0x0;_0x27a1fa<_0x191faa['rooms']['length'];++_0x27a1fa)_0x51fdb4['rooms'][_0x27a1fa]=_0x191faa['rooms'][_0x27a1fa];}if(_0x191faa['except']&&_0x191faa['except']['length']){for(_0x51fdb4['except']=[],_0x27a1fa=0x0;_0x27a1fa<_0x191faa['except']['length'];++_0x27a1fa)_0x51fdb4['except'][_0x27a1fa]=_0x191faa['except'][_0x27a1fa];}return _0x51fdb4;},_0x30a5b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x30a5b['getTypeUrl']=function(_0x4e9c03){return void 0x0===_0x4e9c03&&(_0x4e9c03='type.googleapis.com'),_0x4e9c03+'/PacketOptionsMessage';},_0x30a5b;}()),_0x1429da['PacketMessage']=(function(){function _0x455dca(_0x4cb00a){if(_0x4cb00a){for(var _0x22dc83=Object['keys'](_0x4cb00a),_0x51d52f=0x0;_0x51d52f<_0x22dc83['length'];++_0x51d52f)null!=_0x4cb00a[_0x22dc83[_0x51d52f]]&&(this[_0x22dc83[_0x51d52f]]=_0x4cb00a[_0x22dc83[_0x51d52f]]);}}return _0x455dca['prototype']['type']=0x0,_0x455dca['prototype']['id']=0x0,_0x455dca['prototype']['nsp']='',_0x455dca['prototype']['data']=_0x44b59b['newBuffer']([]),_0x455dca['prototype']['options']=_0x44b59b['newBuffer']([]),_0x455dca['create']=function(_0x2b9064){return new _0x455dca(_0x2b9064);},_0x455dca['encode']=function(_0x3f109a,_0x3afbd9){return _0x3afbd9||(_0x3afbd9=_0x2e8075['create']()),null!=_0x3f109a['type']&&Object['hasOwnProperty']['call'](_0x3f109a,'type')&&_0x3afbd9['uint32'](0x8)['uint32'](_0x3f109a['type']),null!=_0x3f109a['id']&&Object['hasOwnProperty']['call'](_0x3f109a,'id')&&_0x3afbd9['uint32'](0x10)['uint32'](_0x3f109a['id']),null!=_0x3f109a['nsp']&&Object['hasOwnProperty']['call'](_0x3f109a,'nsp')&&_0x3afbd9['uint32'](0x1a)['string'](_0x3f109a['nsp']),null!=_0x3f109a['data']&&Object['hasOwnProperty']['call'](_0x3f109a,'data')&&_0x3afbd9['uint32'](0x22)['bytes'](_0x3f109a['data']),null!=_0x3f109a['options']&&Object['hasOwnProperty']['call'](_0x3f109a,'options')&&_0x3afbd9['uint32'](0x2a)['bytes'](_0x3f109a['options']),_0x3afbd9;},_0x455dca['encodeDelimited']=function(_0x2f3a0d,_0x3ef47f){return this['encode'](_0x2f3a0d,_0x3ef47f)['ldelim']();},_0x455dca['decode']=function(_0xbb1e31,_0x4a12f0,_0x576099){_0xbb1e31 instanceof _0x5e9c2f||(_0xbb1e31=_0x5e9c2f['create'](_0xbb1e31));for(var _0x35d34d=void 0x0===_0x4a12f0?_0xbb1e31['len']:_0xbb1e31['pos']+_0x4a12f0,_0xf877c8=new _0x1429da['PacketMessage']();_0xbb1e31['pos']<_0x35d34d;){var _0x21023f=_0xbb1e31['uint32']();if(_0x21023f===_0x576099)break;switch(_0x21023f>>>0x3){case 0x1:_0xf877c8['type']=_0xbb1e31['uint32']();break;case 0x2:_0xf877c8['id']=_0xbb1e31['uint32']();break;case 0x3:_0xf877c8['nsp']=_0xbb1e31['string']();break;case 0x4:_0xf877c8['data']=_0xbb1e31['bytes']();break;case 0x5:_0xf877c8['options']=_0xbb1e31['bytes']();break;default:_0xbb1e31['skipType'](0x7&_0x21023f);}}return _0xf877c8;},_0x455dca['decodeDelimited']=function(_0xcae00c){return _0xcae00c instanceof _0x5e9c2f||(_0xcae00c=new _0x5e9c2f(_0xcae00c)),this['decode'](_0xcae00c,_0xcae00c['uint32']());},_0x455dca['verify']=function(_0x13cd81){return'object'!=typeof _0x13cd81||null===_0x13cd81?'object\x20expected':null!=_0x13cd81['type']&&_0x13cd81['hasOwnProperty']('type')&&!_0x44b59b['isInteger'](_0x13cd81['type'])?'type:\x20integer\x20expected':null!=_0x13cd81['id']&&_0x13cd81['hasOwnProperty']('id')&&!_0x44b59b['isInteger'](_0x13cd81['id'])?'id:\x20integer\x20expected':null!=_0x13cd81['nsp']&&_0x13cd81['hasOwnProperty']('nsp')&&!_0x44b59b['isString'](_0x13cd81['nsp'])?'nsp:\x20string\x20expected':null!=_0x13cd81['data']&&_0x13cd81['hasOwnProperty']('data')&&!(_0x13cd81['data']&&'number'==typeof _0x13cd81['data']['length']||_0x44b59b['isString'](_0x13cd81['data']))?'data:\x20buffer\x20expected':null!=_0x13cd81['options']&&_0x13cd81['hasOwnProperty']('options')&&!(_0x13cd81['options']&&'number'==typeof _0x13cd81['options']['length']||_0x44b59b['isString'](_0x13cd81['options']))?'options:\x20buffer\x20expected':null;},_0x455dca['fromObject']=function(_0x830d8f){if(_0x830d8f instanceof _0x1429da['PacketMessage'])return _0x830d8f;var _0x14093b=new _0x1429da['PacketMessage']();return null!=_0x830d8f['type']&&(_0x14093b['type']=_0x830d8f['type']>>>0x0),null!=_0x830d8f['id']&&(_0x14093b['id']=_0x830d8f['id']>>>0x0),null!=_0x830d8f['nsp']&&(_0x14093b['nsp']=String(_0x830d8f['nsp'])),null!=_0x830d8f['data']&&('string'==typeof _0x830d8f['data']?_0x44b59b['base64']['decode'](_0x830d8f['data'],_0x14093b['data']=_0x44b59b['newBuffer'](_0x44b59b['base64']['length'](_0x830d8f['data'])),0x0):_0x830d8f['data']['length']>=0x0&&(_0x14093b['data']=_0x830d8f['data'])),null!=_0x830d8f['options']&&('string'==typeof _0x830d8f['options']?_0x44b59b['base64']['decode'](_0x830d8f['options'],_0x14093b['options']=_0x44b59b['newBuffer'](_0x44b59b['base64']['length'](_0x830d8f['options'])),0x0):_0x830d8f['options']['length']>=0x0&&(_0x14093b['options']=_0x830d8f['options'])),_0x14093b;},_0x455dca['toObject']=function(_0x46380d,_0x2d9296){_0x2d9296||(_0x2d9296={});var _0x5af46e={};return _0x2d9296['defaults']&&(_0x5af46e['type']=0x0,_0x5af46e['id']=0x0,_0x5af46e['nsp']='',_0x2d9296['bytes']===String?_0x5af46e['data']='':(_0x5af46e['data']=[],_0x2d9296['bytes']!==Array&&(_0x5af46e['data']=_0x44b59b['newBuffer'](_0x5af46e['data']))),_0x2d9296['bytes']===String?_0x5af46e['options']='':(_0x5af46e['options']=[],_0x2d9296['bytes']!==Array&&(_0x5af46e['options']=_0x44b59b['newBuffer'](_0x5af46e['options'])))),null!=_0x46380d['type']&&_0x46380d['hasOwnProperty']('type')&&(_0x5af46e['type']=_0x46380d['type']),null!=_0x46380d['id']&&_0x46380d['hasOwnProperty']('id')&&(_0x5af46e['id']=_0x46380d['id']),null!=_0x46380d['nsp']&&_0x46380d['hasOwnProperty']('nsp')&&(_0x5af46e['nsp']=_0x46380d['nsp']),null!=_0x46380d['data']&&_0x46380d['hasOwnProperty']('data')&&(_0x5af46e['data']=_0x2d9296['bytes']===String?_0x44b59b['base64']['encode'](_0x46380d['data'],0x0,_0x46380d['data']['length']):_0x2d9296['bytes']===Array?Array['prototype']['slice']['call'](_0x46380d['data']):_0x46380d['data']),null!=_0x46380d['options']&&_0x46380d['hasOwnProperty']('options')&&(_0x5af46e['options']=_0x2d9296['bytes']===String?_0x44b59b['base64']['encode'](_0x46380d['options'],0x0,_0x46380d['options']['length']):_0x2d9296['bytes']===Array?Array['prototype']['slice']['call'](_0x46380d['options']):_0x46380d['options']),_0x5af46e;},_0x455dca['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x455dca['getTypeUrl']=function(_0x482579){return void 0x0===_0x482579&&(_0x482579='type.googleapis.com'),_0x482579+'/PacketMessage';},_0x455dca;}()),_0x1429da['ObjectObjectPacketDataMessage']=(function(){function _0x385dd9(_0x24ba31){if(_0x24ba31){for(var _0x2d5695=Object['keys'](_0x24ba31),_0x3a34e7=0x0;_0x3a34e7<_0x2d5695['length'];++_0x3a34e7)null!=_0x24ba31[_0x2d5695[_0x3a34e7]]&&(this[_0x2d5695[_0x3a34e7]]=_0x24ba31[_0x2d5695[_0x3a34e7]]);}}return _0x385dd9['prototype']['data']='',_0x385dd9['prototype']['data1']='',_0x385dd9['create']=function(_0x16ec4d){return new _0x385dd9(_0x16ec4d);},_0x385dd9['encode']=function(_0x52cb0b,_0x14a98a){return _0x14a98a||(_0x14a98a=_0x2e8075['create']()),null!=_0x52cb0b['data']&&Object['hasOwnProperty']['call'](_0x52cb0b,'data')&&_0x14a98a['uint32'](0xa)['string'](_0x52cb0b['data']),null!=_0x52cb0b['data1']&&Object['hasOwnProperty']['call'](_0x52cb0b,'data1')&&_0x14a98a['uint32'](0x12)['string'](_0x52cb0b['data1']),_0x14a98a;},_0x385dd9['encodeDelimited']=function(_0x3eec28,_0xde78d6){return this['encode'](_0x3eec28,_0xde78d6)['ldelim']();},_0x385dd9['decode']=function(_0x4c0681,_0x242c72,_0x3d1d9d){_0x4c0681 instanceof _0x5e9c2f||(_0x4c0681=_0x5e9c2f['create'](_0x4c0681));for(var _0xd4dd71=void 0x0===_0x242c72?_0x4c0681['len']:_0x4c0681['pos']+_0x242c72,_0x1cff21=new _0x1429da['ObjectObjectPacketDataMessage']();_0x4c0681['pos']<_0xd4dd71;){var _0x790095=_0x4c0681['uint32']();if(_0x790095===_0x3d1d9d)break;switch(_0x790095>>>0x3){case 0x1:_0x1cff21['data']=_0x4c0681['string']();break;case 0x2:_0x1cff21['data1']=_0x4c0681['string']();break;default:_0x4c0681['skipType'](0x7&_0x790095);}}return _0x1cff21;},_0x385dd9['decodeDelimited']=function(_0xa59bbe){return _0xa59bbe instanceof _0x5e9c2f||(_0xa59bbe=new _0x5e9c2f(_0xa59bbe)),this['decode'](_0xa59bbe,_0xa59bbe['uint32']());},_0x385dd9['verify']=function(_0x440ee6){return'object'!=typeof _0x440ee6||null===_0x440ee6?'object\x20expected':null!=_0x440ee6['data']&&_0x440ee6['hasOwnProperty']('data')&&!_0x44b59b['isString'](_0x440ee6['data'])?'data:\x20string\x20expected':null!=_0x440ee6['data1']&&_0x440ee6['hasOwnProperty']('data1')&&!_0x44b59b['isString'](_0x440ee6['data1'])?'data1:\x20string\x20expected':null;},_0x385dd9['fromObject']=function(_0x10757f){if(_0x10757f instanceof _0x1429da['ObjectObjectPacketDataMessage'])return _0x10757f;var _0x580a59=new _0x1429da['ObjectObjectPacketDataMessage']();return null!=_0x10757f['data']&&(_0x580a59['data']=String(_0x10757f['data'])),null!=_0x10757f['data1']&&(_0x580a59['data1']=String(_0x10757f['data1'])),_0x580a59;},_0x385dd9['toObject']=function(_0x3e6cf0,_0x5071e8){_0x5071e8||(_0x5071e8={});var _0x128006={};return _0x5071e8['defaults']&&(_0x128006['data']='',_0x128006['data1']=''),null!=_0x3e6cf0['data']&&_0x3e6cf0['hasOwnProperty']('data')&&(_0x128006['data']=_0x3e6cf0['data']),null!=_0x3e6cf0['data1']&&_0x3e6cf0['hasOwnProperty']('data1')&&(_0x128006['data1']=_0x3e6cf0['data1']),_0x128006;},_0x385dd9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x385dd9['getTypeUrl']=function(_0xa07bbe){return void 0x0===_0xa07bbe&&(_0xa07bbe='type.googleapis.com'),_0xa07bbe+'/ObjectObjectPacketDataMessage';},_0x385dd9;}()),_0x1429da['ObjectBufferPacketDataMessage']=(function(){function _0x360540(_0x174cf6){if(_0x174cf6){for(var _0x4099b6=Object['keys'](_0x174cf6),_0x33eaf4=0x0;_0x33eaf4<_0x4099b6['length'];++_0x33eaf4)null!=_0x174cf6[_0x4099b6[_0x33eaf4]]&&(this[_0x4099b6[_0x33eaf4]]=_0x174cf6[_0x4099b6[_0x33eaf4]]);}}return _0x360540['prototype']['data']='',_0x360540['prototype']['data1']=_0x44b59b['newBuffer']([]),_0x360540['create']=function(_0x26a1bb){return new _0x360540(_0x26a1bb);},_0x360540['encode']=function(_0x31c79b,_0x367be5){return _0x367be5||(_0x367be5=_0x2e8075['create']()),null!=_0x31c79b['data']&&Object['hasOwnProperty']['call'](_0x31c79b,'data')&&_0x367be5['uint32'](0xa)['string'](_0x31c79b['data']),null!=_0x31c79b['data1']&&Object['hasOwnProperty']['call'](_0x31c79b,'data1')&&_0x367be5['uint32'](0x12)['bytes'](_0x31c79b['data1']),_0x367be5;},_0x360540['encodeDelimited']=function(_0x518117,_0x352eaa){return this['encode'](_0x518117,_0x352eaa)['ldelim']();},_0x360540['decode']=function(_0x393fa7,_0x5a555e,_0x1ccbb5){_0x393fa7 instanceof _0x5e9c2f||(_0x393fa7=_0x5e9c2f['create'](_0x393fa7));for(var _0x232082=void 0x0===_0x5a555e?_0x393fa7['len']:_0x393fa7['pos']+_0x5a555e,_0x5bffa7=new _0x1429da['ObjectBufferPacketDataMessage']();_0x393fa7['pos']<_0x232082;){var _0x31a213=_0x393fa7['uint32']();if(_0x31a213===_0x1ccbb5)break;switch(_0x31a213>>>0x3){case 0x1:_0x5bffa7['data']=_0x393fa7['string']();break;case 0x2:_0x5bffa7['data1']=_0x393fa7['bytes']();break;default:_0x393fa7['skipType'](0x7&_0x31a213);}}return _0x5bffa7;},_0x360540['decodeDelimited']=function(_0x1ecd62){return _0x1ecd62 instanceof _0x5e9c2f||(_0x1ecd62=new _0x5e9c2f(_0x1ecd62)),this['decode'](_0x1ecd62,_0x1ecd62['uint32']());},_0x360540['verify']=function(_0x4e7605){return'object'!=typeof _0x4e7605||null===_0x4e7605?'object\x20expected':null!=_0x4e7605['data']&&_0x4e7605['hasOwnProperty']('data')&&!_0x44b59b['isString'](_0x4e7605['data'])?'data:\x20string\x20expected':null!=_0x4e7605['data1']&&_0x4e7605['hasOwnProperty']('data1')&&!(_0x4e7605['data1']&&'number'==typeof _0x4e7605['data1']['length']||_0x44b59b['isString'](_0x4e7605['data1']))?'data1:\x20buffer\x20expected':null;},_0x360540['fromObject']=function(_0x480c4e){if(_0x480c4e instanceof _0x1429da['ObjectBufferPacketDataMessage'])return _0x480c4e;var _0x868e43=new _0x1429da['ObjectBufferPacketDataMessage']();return null!=_0x480c4e['data']&&(_0x868e43['data']=String(_0x480c4e['data'])),null!=_0x480c4e['data1']&&('string'==typeof _0x480c4e['data1']?_0x44b59b['base64']['decode'](_0x480c4e['data1'],_0x868e43['data1']=_0x44b59b['newBuffer'](_0x44b59b['base64']['length'](_0x480c4e['data1'])),0x0):_0x480c4e['data1']['length']>=0x0&&(_0x868e43['data1']=_0x480c4e['data1'])),_0x868e43;},_0x360540['toObject']=function(_0x2b3a74,_0x128bcf){_0x128bcf||(_0x128bcf={});var _0x464401={};return _0x128bcf['defaults']&&(_0x464401['data']='',_0x128bcf['bytes']===String?_0x464401['data1']='':(_0x464401['data1']=[],_0x128bcf['bytes']!==Array&&(_0x464401['data1']=_0x44b59b['newBuffer'](_0x464401['data1'])))),null!=_0x2b3a74['data']&&_0x2b3a74['hasOwnProperty']('data')&&(_0x464401['data']=_0x2b3a74['data']),null!=_0x2b3a74['data1']&&_0x2b3a74['hasOwnProperty']('data1')&&(_0x464401['data1']=_0x128bcf['bytes']===String?_0x44b59b['base64']['encode'](_0x2b3a74['data1'],0x0,_0x2b3a74['data1']['length']):_0x128bcf['bytes']===Array?Array['prototype']['slice']['call'](_0x2b3a74['data1']):_0x2b3a74['data1']),_0x464401;},_0x360540['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x360540['getTypeUrl']=function(_0x40607c){return void 0x0===_0x40607c&&(_0x40607c='type.googleapis.com'),_0x40607c+'/ObjectBufferPacketDataMessage';},_0x360540;}()),_0x1429da['NumberStringPacketDataMessage']=(function(){function _0x3fbc8f(_0x366912){if(_0x366912){for(var _0x8fe828=Object['keys'](_0x366912),_0x2fc493=0x0;_0x2fc493<_0x8fe828['length'];++_0x2fc493)null!=_0x366912[_0x8fe828[_0x2fc493]]&&(this[_0x8fe828[_0x2fc493]]=_0x366912[_0x8fe828[_0x2fc493]]);}}return _0x3fbc8f['prototype']['data']=0x0,_0x3fbc8f['prototype']['data1']='',_0x3fbc8f['create']=function(_0x3fb9ca){return new _0x3fbc8f(_0x3fb9ca);},_0x3fbc8f['encode']=function(_0x32a8d1,_0x2f4d05){return _0x2f4d05||(_0x2f4d05=_0x2e8075['create']()),null!=_0x32a8d1['data']&&Object['hasOwnProperty']['call'](_0x32a8d1,'data')&&_0x2f4d05['uint32'](0x8)['uint32'](_0x32a8d1['data']),null!=_0x32a8d1['data1']&&Object['hasOwnProperty']['call'](_0x32a8d1,'data1')&&_0x2f4d05['uint32'](0x12)['string'](_0x32a8d1['data1']),_0x2f4d05;},_0x3fbc8f['encodeDelimited']=function(_0x514ac3,_0x237877){return this['encode'](_0x514ac3,_0x237877)['ldelim']();},_0x3fbc8f['decode']=function(_0x532bc2,_0x270045,_0x505be5){_0x532bc2 instanceof _0x5e9c2f||(_0x532bc2=_0x5e9c2f['create'](_0x532bc2));for(var _0x166b6d=void 0x0===_0x270045?_0x532bc2['len']:_0x532bc2['pos']+_0x270045,_0x613da6=new _0x1429da['NumberStringPacketDataMessage']();_0x532bc2['pos']<_0x166b6d;){var _0x3880a1=_0x532bc2['uint32']();if(_0x3880a1===_0x505be5)break;switch(_0x3880a1>>>0x3){case 0x1:_0x613da6['data']=_0x532bc2['uint32']();break;case 0x2:_0x613da6['data1']=_0x532bc2['string']();break;default:_0x532bc2['skipType'](0x7&_0x3880a1);}}return _0x613da6;},_0x3fbc8f['decodeDelimited']=function(_0x1cbd09){return _0x1cbd09 instanceof _0x5e9c2f||(_0x1cbd09=new _0x5e9c2f(_0x1cbd09)),this['decode'](_0x1cbd09,_0x1cbd09['uint32']());},_0x3fbc8f['verify']=function(_0x46bc5a){return'object'!=typeof _0x46bc5a||null===_0x46bc5a?'object\x20expected':null!=_0x46bc5a['data']&&_0x46bc5a['hasOwnProperty']('data')&&!_0x44b59b['isInteger'](_0x46bc5a['data'])?'data:\x20integer\x20expected':null!=_0x46bc5a['data1']&&_0x46bc5a['hasOwnProperty']('data1')&&!_0x44b59b['isString'](_0x46bc5a['data1'])?'data1:\x20string\x20expected':null;},_0x3fbc8f['fromObject']=function(_0x4e52a4){if(_0x4e52a4 instanceof _0x1429da['NumberStringPacketDataMessage'])return _0x4e52a4;var _0x26d25e=new _0x1429da['NumberStringPacketDataMessage']();return null!=_0x4e52a4['data']&&(_0x26d25e['data']=_0x4e52a4['data']>>>0x0),null!=_0x4e52a4['data1']&&(_0x26d25e['data1']=String(_0x4e52a4['data1'])),_0x26d25e;},_0x3fbc8f['toObject']=function(_0xda617d,_0x6ab4aa){_0x6ab4aa||(_0x6ab4aa={});var _0x1404bb={};return _0x6ab4aa['defaults']&&(_0x1404bb['data']=0x0,_0x1404bb['data1']=''),null!=_0xda617d['data']&&_0xda617d['hasOwnProperty']('data')&&(_0x1404bb['data']=_0xda617d['data']),null!=_0xda617d['data1']&&_0xda617d['hasOwnProperty']('data1')&&(_0x1404bb['data1']=_0xda617d['data1']),_0x1404bb;},_0x3fbc8f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3fbc8f['getTypeUrl']=function(_0x42d443){return void 0x0===_0x42d443&&(_0x42d443='type.googleapis.com'),_0x42d443+'/NumberStringPacketDataMessage';},_0x3fbc8f;}()),_0x1429da['NumberObjectPacketDataMessage']=(function(){function _0x381a82(_0x4d8bc8){if(_0x4d8bc8){for(var _0x4b3525=Object['keys'](_0x4d8bc8),_0x506c92=0x0;_0x506c92<_0x4b3525['length'];++_0x506c92)null!=_0x4d8bc8[_0x4b3525[_0x506c92]]&&(this[_0x4b3525[_0x506c92]]=_0x4d8bc8[_0x4b3525[_0x506c92]]);}}return _0x381a82['prototype']['data']=0x0,_0x381a82['prototype']['data1']='',_0x381a82['create']=function(_0x2578d9){return new _0x381a82(_0x2578d9);},_0x381a82['encode']=function(_0x19a648,_0xd30c8c){return _0xd30c8c||(_0xd30c8c=_0x2e8075['create']()),null!=_0x19a648['data']&&Object['hasOwnProperty']['call'](_0x19a648,'data')&&_0xd30c8c['uint32'](0x8)['uint32'](_0x19a648['data']),null!=_0x19a648['data1']&&Object['hasOwnProperty']['call'](_0x19a648,'data1')&&_0xd30c8c['uint32'](0x12)['string'](_0x19a648['data1']),_0xd30c8c;},_0x381a82['encodeDelimited']=function(_0x343f2f,_0x54fa39){return this['encode'](_0x343f2f,_0x54fa39)['ldelim']();},_0x381a82['decode']=function(_0x2593d2,_0x526d8e,_0x2a9925){_0x2593d2 instanceof _0x5e9c2f||(_0x2593d2=_0x5e9c2f['create'](_0x2593d2));for(var _0x4dd6e6=void 0x0===_0x526d8e?_0x2593d2['len']:_0x2593d2['pos']+_0x526d8e,_0x2d4dba=new _0x1429da['NumberObjectPacketDataMessage']();_0x2593d2['pos']<_0x4dd6e6;){var _0x35f3d3=_0x2593d2['uint32']();if(_0x35f3d3===_0x2a9925)break;switch(_0x35f3d3>>>0x3){case 0x1:_0x2d4dba['data']=_0x2593d2['uint32']();break;case 0x2:_0x2d4dba['data1']=_0x2593d2['string']();break;default:_0x2593d2['skipType'](0x7&_0x35f3d3);}}return _0x2d4dba;},_0x381a82['decodeDelimited']=function(_0x5b2324){return _0x5b2324 instanceof _0x5e9c2f||(_0x5b2324=new _0x5e9c2f(_0x5b2324)),this['decode'](_0x5b2324,_0x5b2324['uint32']());},_0x381a82['verify']=function(_0x54b20f){return'object'!=typeof _0x54b20f||null===_0x54b20f?'object\x20expected':null!=_0x54b20f['data']&&_0x54b20f['hasOwnProperty']('data')&&!_0x44b59b['isInteger'](_0x54b20f['data'])?'data:\x20integer\x20expected':null!=_0x54b20f['data1']&&_0x54b20f['hasOwnProperty']('data1')&&!_0x44b59b['isString'](_0x54b20f['data1'])?'data1:\x20string\x20expected':null;},_0x381a82['fromObject']=function(_0x377963){if(_0x377963 instanceof _0x1429da['NumberObjectPacketDataMessage'])return _0x377963;var _0x5a4d88=new _0x1429da['NumberObjectPacketDataMessage']();return null!=_0x377963['data']&&(_0x5a4d88['data']=_0x377963['data']>>>0x0),null!=_0x377963['data1']&&(_0x5a4d88['data1']=String(_0x377963['data1'])),_0x5a4d88;},_0x381a82['toObject']=function(_0x32e104,_0x2fc260){_0x2fc260||(_0x2fc260={});var _0x3b303b={};return _0x2fc260['defaults']&&(_0x3b303b['data']=0x0,_0x3b303b['data1']=''),null!=_0x32e104['data']&&_0x32e104['hasOwnProperty']('data')&&(_0x3b303b['data']=_0x32e104['data']),null!=_0x32e104['data1']&&_0x32e104['hasOwnProperty']('data1')&&(_0x3b303b['data1']=_0x32e104['data1']),_0x3b303b;},_0x381a82['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x381a82['getTypeUrl']=function(_0x1bc70a){return void 0x0===_0x1bc70a&&(_0x1bc70a='type.googleapis.com'),_0x1bc70a+'/NumberObjectPacketDataMessage';},_0x381a82;}()),_0x1429da['NumberNumberPacketDataMessage']=(function(){function _0x193379(_0x2492b0){if(_0x2492b0){for(var _0x3f2d61=Object['keys'](_0x2492b0),_0x38ba22=0x0;_0x38ba22<_0x3f2d61['length'];++_0x38ba22)null!=_0x2492b0[_0x3f2d61[_0x38ba22]]&&(this[_0x3f2d61[_0x38ba22]]=_0x2492b0[_0x3f2d61[_0x38ba22]]);}}return _0x193379['prototype']['data']=0x0,_0x193379['prototype']['data1']=0x0,_0x193379['create']=function(_0x4e6550){return new _0x193379(_0x4e6550);},_0x193379['encode']=function(_0xcab0ca,_0x3e82c1){return _0x3e82c1||(_0x3e82c1=_0x2e8075['create']()),null!=_0xcab0ca['data']&&Object['hasOwnProperty']['call'](_0xcab0ca,'data')&&_0x3e82c1['uint32'](0x8)['uint32'](_0xcab0ca['data']),null!=_0xcab0ca['data1']&&Object['hasOwnProperty']['call'](_0xcab0ca,'data1')&&_0x3e82c1['uint32'](0x10)['uint32'](_0xcab0ca['data1']),_0x3e82c1;},_0x193379['encodeDelimited']=function(_0xfada2a,_0x4144ac){return this['encode'](_0xfada2a,_0x4144ac)['ldelim']();},_0x193379['decode']=function(_0x439379,_0x5934c8,_0x320b80){_0x439379 instanceof _0x5e9c2f||(_0x439379=_0x5e9c2f['create'](_0x439379));for(var _0xc4b327=void 0x0===_0x5934c8?_0x439379['len']:_0x439379['pos']+_0x5934c8,_0x1180e1=new _0x1429da['NumberNumberPacketDataMessage']();_0x439379['pos']<_0xc4b327;){var _0x3e32e8=_0x439379['uint32']();if(_0x3e32e8===_0x320b80)break;switch(_0x3e32e8>>>0x3){case 0x1:_0x1180e1['data']=_0x439379['uint32']();break;case 0x2:_0x1180e1['data1']=_0x439379['uint32']();break;default:_0x439379['skipType'](0x7&_0x3e32e8);}}return _0x1180e1;},_0x193379['decodeDelimited']=function(_0x3595ea){return _0x3595ea instanceof _0x5e9c2f||(_0x3595ea=new _0x5e9c2f(_0x3595ea)),this['decode'](_0x3595ea,_0x3595ea['uint32']());},_0x193379['verify']=function(_0x3c14d7){return'object'!=typeof _0x3c14d7||null===_0x3c14d7?'object\x20expected':null!=_0x3c14d7['data']&&_0x3c14d7['hasOwnProperty']('data')&&!_0x44b59b['isInteger'](_0x3c14d7['data'])?'data:\x20integer\x20expected':null!=_0x3c14d7['data1']&&_0x3c14d7['hasOwnProperty']('data1')&&!_0x44b59b['isInteger'](_0x3c14d7['data1'])?'data1:\x20integer\x20expected':null;},_0x193379['fromObject']=function(_0x2a26af){if(_0x2a26af instanceof _0x1429da['NumberNumberPacketDataMessage'])return _0x2a26af;var _0x4c3773=new _0x1429da['NumberNumberPacketDataMessage']();return null!=_0x2a26af['data']&&(_0x4c3773['data']=_0x2a26af['data']>>>0x0),null!=_0x2a26af['data1']&&(_0x4c3773['data1']=_0x2a26af['data1']>>>0x0),_0x4c3773;},_0x193379['toObject']=function(_0x5960a8,_0x2c1cec){_0x2c1cec||(_0x2c1cec={});var _0x1a1528={};return _0x2c1cec['defaults']&&(_0x1a1528['data']=0x0,_0x1a1528['data1']=0x0),null!=_0x5960a8['data']&&_0x5960a8['hasOwnProperty']('data')&&(_0x1a1528['data']=_0x5960a8['data']),null!=_0x5960a8['data1']&&_0x5960a8['hasOwnProperty']('data1')&&(_0x1a1528['data1']=_0x5960a8['data1']),_0x1a1528;},_0x193379['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x193379['getTypeUrl']=function(_0x3b3f48){return void 0x0===_0x3b3f48&&(_0x3b3f48='type.googleapis.com'),_0x3b3f48+'/NumberNumberPacketDataMessage';},_0x193379;}()),_0x1429da['NumberBytesPacketDataMessage']=(function(){function _0x4276b1(_0x5115da){if(_0x5115da){for(var _0x59a30f=Object['keys'](_0x5115da),_0x4ec40d=0x0;_0x4ec40d<_0x59a30f['length'];++_0x4ec40d)null!=_0x5115da[_0x59a30f[_0x4ec40d]]&&(this[_0x59a30f[_0x4ec40d]]=_0x5115da[_0x59a30f[_0x4ec40d]]);}}return _0x4276b1['prototype']['data']=0x0,_0x4276b1['prototype']['data1']=_0x44b59b['newBuffer']([]),_0x4276b1['create']=function(_0xcfb904){return new _0x4276b1(_0xcfb904);},_0x4276b1['encode']=function(_0xc7914b,_0x4f1e20){return _0x4f1e20||(_0x4f1e20=_0x2e8075['create']()),null!=_0xc7914b['data']&&Object['hasOwnProperty']['call'](_0xc7914b,'data')&&_0x4f1e20['uint32'](0x8)['uint32'](_0xc7914b['data']),null!=_0xc7914b['data1']&&Object['hasOwnProperty']['call'](_0xc7914b,'data1')&&_0x4f1e20['uint32'](0x12)['bytes'](_0xc7914b['data1']),_0x4f1e20;},_0x4276b1['encodeDelimited']=function(_0x37d542,_0x592ab0){return this['encode'](_0x37d542,_0x592ab0)['ldelim']();},_0x4276b1['decode']=function(_0x3c1e74,_0x378f97,_0x408635){_0x3c1e74 instanceof _0x5e9c2f||(_0x3c1e74=_0x5e9c2f['create'](_0x3c1e74));for(var _0x63b47c=void 0x0===_0x378f97?_0x3c1e74['len']:_0x3c1e74['pos']+_0x378f97,_0x18a177=new _0x1429da['NumberBytesPacketDataMessage']();_0x3c1e74['pos']<_0x63b47c;){var _0x594097=_0x3c1e74['uint32']();if(_0x594097===_0x408635)break;switch(_0x594097>>>0x3){case 0x1:_0x18a177['data']=_0x3c1e74['uint32']();break;case 0x2:_0x18a177['data1']=_0x3c1e74['bytes']();break;default:_0x3c1e74['skipType'](0x7&_0x594097);}}return _0x18a177;},_0x4276b1['decodeDelimited']=function(_0x1559c7){return _0x1559c7 instanceof _0x5e9c2f||(_0x1559c7=new _0x5e9c2f(_0x1559c7)),this['decode'](_0x1559c7,_0x1559c7['uint32']());},_0x4276b1['verify']=function(_0x2283f3){return'object'!=typeof _0x2283f3||null===_0x2283f3?'object\x20expected':null!=_0x2283f3['data']&&_0x2283f3['hasOwnProperty']('data')&&!_0x44b59b['isInteger'](_0x2283f3['data'])?'data:\x20integer\x20expected':null!=_0x2283f3['data1']&&_0x2283f3['hasOwnProperty']('data1')&&!(_0x2283f3['data1']&&'number'==typeof _0x2283f3['data1']['length']||_0x44b59b['isString'](_0x2283f3['data1']))?'data1:\x20buffer\x20expected':null;},_0x4276b1['fromObject']=function(_0x343245){if(_0x343245 instanceof _0x1429da['NumberBytesPacketDataMessage'])return _0x343245;var _0x2651d0=new _0x1429da['NumberBytesPacketDataMessage']();return null!=_0x343245['data']&&(_0x2651d0['data']=_0x343245['data']>>>0x0),null!=_0x343245['data1']&&('string'==typeof _0x343245['data1']?_0x44b59b['base64']['decode'](_0x343245['data1'],_0x2651d0['data1']=_0x44b59b['newBuffer'](_0x44b59b['base64']['length'](_0x343245['data1'])),0x0):_0x343245['data1']['length']>=0x0&&(_0x2651d0['data1']=_0x343245['data1'])),_0x2651d0;},_0x4276b1['toObject']=function(_0x344ecb,_0x1c5943){_0x1c5943||(_0x1c5943={});var _0x404923={};return _0x1c5943['defaults']&&(_0x404923['data']=0x0,_0x1c5943['bytes']===String?_0x404923['data1']='':(_0x404923['data1']=[],_0x1c5943['bytes']!==Array&&(_0x404923['data1']=_0x44b59b['newBuffer'](_0x404923['data1'])))),null!=_0x344ecb['data']&&_0x344ecb['hasOwnProperty']('data')&&(_0x404923['data']=_0x344ecb['data']),null!=_0x344ecb['data1']&&_0x344ecb['hasOwnProperty']('data1')&&(_0x404923['data1']=_0x1c5943['bytes']===String?_0x44b59b['base64']['encode'](_0x344ecb['data1'],0x0,_0x344ecb['data1']['length']):_0x1c5943['bytes']===Array?Array['prototype']['slice']['call'](_0x344ecb['data1']):_0x344ecb['data1']),_0x404923;},_0x4276b1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4276b1['getTypeUrl']=function(_0xa35451){return void 0x0===_0xa35451&&(_0xa35451='type.googleapis.com'),_0xa35451+'/NumberBytesPacketDataMessage';},_0x4276b1;}()),_0x1429da['BytesBytesPacketDataMessage']=(function(){function _0x54f076(_0x3a5dc2){if(_0x3a5dc2){for(var _0x31c613=Object['keys'](_0x3a5dc2),_0x46423a=0x0;_0x46423a<_0x31c613['length'];++_0x46423a)null!=_0x3a5dc2[_0x31c613[_0x46423a]]&&(this[_0x31c613[_0x46423a]]=_0x3a5dc2[_0x31c613[_0x46423a]]);}}return _0x54f076['prototype']['data']=_0x44b59b['newBuffer']([]),_0x54f076['prototype']['data1']=_0x44b59b['newBuffer']([]),_0x54f076['create']=function(_0x3e6ca7){return new _0x54f076(_0x3e6ca7);},_0x54f076['encode']=function(_0x4cd7a4,_0x354e4d){return _0x354e4d||(_0x354e4d=_0x2e8075['create']()),null!=_0x4cd7a4['data']&&Object['hasOwnProperty']['call'](_0x4cd7a4,'data')&&_0x354e4d['uint32'](0xa)['bytes'](_0x4cd7a4['data']),null!=_0x4cd7a4['data1']&&Object['hasOwnProperty']['call'](_0x4cd7a4,'data1')&&_0x354e4d['uint32'](0x12)['bytes'](_0x4cd7a4['data1']),_0x354e4d;},_0x54f076['encodeDelimited']=function(_0x5ddceb,_0x3afe00){return this['encode'](_0x5ddceb,_0x3afe00)['ldelim']();},_0x54f076['decode']=function(_0x4d92af,_0x538e18,_0x2ba316){_0x4d92af instanceof _0x5e9c2f||(_0x4d92af=_0x5e9c2f['create'](_0x4d92af));for(var _0x4e6eb1=void 0x0===_0x538e18?_0x4d92af['len']:_0x4d92af['pos']+_0x538e18,_0x3786c6=new _0x1429da['BytesBytesPacketDataMessage']();_0x4d92af['pos']<_0x4e6eb1;){var _0x3d323a=_0x4d92af['uint32']();if(_0x3d323a===_0x2ba316)break;switch(_0x3d323a>>>0x3){case 0x1:_0x3786c6['data']=_0x4d92af['bytes']();break;case 0x2:_0x3786c6['data1']=_0x4d92af['bytes']();break;default:_0x4d92af['skipType'](0x7&_0x3d323a);}}return _0x3786c6;},_0x54f076['decodeDelimited']=function(_0x855527){return _0x855527 instanceof _0x5e9c2f||(_0x855527=new _0x5e9c2f(_0x855527)),this['decode'](_0x855527,_0x855527['uint32']());},_0x54f076['verify']=function(_0x2d645e){return'object'!=typeof _0x2d645e||null===_0x2d645e?'object\x20expected':null!=_0x2d645e['data']&&_0x2d645e['hasOwnProperty']('data')&&!(_0x2d645e['data']&&'number'==typeof _0x2d645e['data']['length']||_0x44b59b['isString'](_0x2d645e['data']))?'data:\x20buffer\x20expected':null!=_0x2d645e['data1']&&_0x2d645e['hasOwnProperty']('data1')&&!(_0x2d645e['data1']&&'number'==typeof _0x2d645e['data1']['length']||_0x44b59b['isString'](_0x2d645e['data1']))?'data1:\x20buffer\x20expected':null;},_0x54f076['fromObject']=function(_0x42ec50){if(_0x42ec50 instanceof _0x1429da['BytesBytesPacketDataMessage'])return _0x42ec50;var _0x1f20e9=new _0x1429da['BytesBytesPacketDataMessage']();return null!=_0x42ec50['data']&&('string'==typeof _0x42ec50['data']?_0x44b59b['base64']['decode'](_0x42ec50['data'],_0x1f20e9['data']=_0x44b59b['newBuffer'](_0x44b59b['base64']['length'](_0x42ec50['data'])),0x0):_0x42ec50['data']['length']>=0x0&&(_0x1f20e9['data']=_0x42ec50['data'])),null!=_0x42ec50['data1']&&('string'==typeof _0x42ec50['data1']?_0x44b59b['base64']['decode'](_0x42ec50['data1'],_0x1f20e9['data1']=_0x44b59b['newBuffer'](_0x44b59b['base64']['length'](_0x42ec50['data1'])),0x0):_0x42ec50['data1']['length']>=0x0&&(_0x1f20e9['data1']=_0x42ec50['data1'])),_0x1f20e9;},_0x54f076['toObject']=function(_0x27d575,_0x7a45db){_0x7a45db||(_0x7a45db={});var _0x4234dd={};return _0x7a45db['defaults']&&(_0x7a45db['bytes']===String?_0x4234dd['data']='':(_0x4234dd['data']=[],_0x7a45db['bytes']!==Array&&(_0x4234dd['data']=_0x44b59b['newBuffer'](_0x4234dd['data']))),_0x7a45db['bytes']===String?_0x4234dd['data1']='':(_0x4234dd['data1']=[],_0x7a45db['bytes']!==Array&&(_0x4234dd['data1']=_0x44b59b['newBuffer'](_0x4234dd['data1'])))),null!=_0x27d575['data']&&_0x27d575['hasOwnProperty']('data')&&(_0x4234dd['data']=_0x7a45db['bytes']===String?_0x44b59b['base64']['encode'](_0x27d575['data'],0x0,_0x27d575['data']['length']):_0x7a45db['bytes']===Array?Array['prototype']['slice']['call'](_0x27d575['data']):_0x27d575['data']),null!=_0x27d575['data1']&&_0x27d575['hasOwnProperty']('data1')&&(_0x4234dd['data1']=_0x7a45db['bytes']===String?_0x44b59b['base64']['encode'](_0x27d575['data1'],0x0,_0x27d575['data1']['length']):_0x7a45db['bytes']===Array?Array['prototype']['slice']['call'](_0x27d575['data1']):_0x27d575['data1']),_0x4234dd;},_0x54f076['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x54f076['getTypeUrl']=function(_0x1e13c1){return void 0x0===_0x1e13c1&&(_0x1e13c1='type.googleapis.com'),_0x1e13c1+'/BytesBytesPacketDataMessage';},_0x54f076;}()),_0x1429da['ChannelMessage']=(function(){function _0x85c2fc(_0x324789){if(_0x324789){for(var _0x30e68c=Object['keys'](_0x324789),_0x845f6e=0x0;_0x845f6e<_0x30e68c['length'];++_0x845f6e)null!=_0x324789[_0x30e68c[_0x845f6e]]&&(this[_0x30e68c[_0x845f6e]]=_0x324789[_0x30e68c[_0x845f6e]]);}}return _0x85c2fc['prototype']['type']=0x0,_0x85c2fc['prototype']['socketId']='',_0x85c2fc['prototype']['data']=_0x44b59b['newBuffer']([]),_0x85c2fc['create']=function(_0x5556d5){return new _0x85c2fc(_0x5556d5);},_0x85c2fc['encode']=function(_0x54bbc9,_0x191758){return _0x191758||(_0x191758=_0x2e8075['create']()),null!=_0x54bbc9['type']&&Object['hasOwnProperty']['call'](_0x54bbc9,'type')&&_0x191758['uint32'](0x8)['uint32'](_0x54bbc9['type']),null!=_0x54bbc9['socketId']&&Object['hasOwnProperty']['call'](_0x54bbc9,'socketId')&&_0x191758['uint32'](0x12)['string'](_0x54bbc9['socketId']),null!=_0x54bbc9['data']&&Object['hasOwnProperty']['call'](_0x54bbc9,'data')&&_0x191758['uint32'](0x1a)['bytes'](_0x54bbc9['data']),_0x191758;},_0x85c2fc['encodeDelimited']=function(_0x59d6e6,_0xa69e7f){return this['encode'](_0x59d6e6,_0xa69e7f)['ldelim']();},_0x85c2fc['decode']=function(_0x2198da,_0x2fc88c,_0x3d30a2){_0x2198da instanceof _0x5e9c2f||(_0x2198da=_0x5e9c2f['create'](_0x2198da));for(var _0x382d28=void 0x0===_0x2fc88c?_0x2198da['len']:_0x2198da['pos']+_0x2fc88c,_0x374c83=new _0x1429da['ChannelMessage']();_0x2198da['pos']<_0x382d28;){var _0x5cc840=_0x2198da['uint32']();if(_0x5cc840===_0x3d30a2)break;switch(_0x5cc840>>>0x3){case 0x1:_0x374c83['type']=_0x2198da['uint32']();break;case 0x2:_0x374c83['socketId']=_0x2198da['string']();break;case 0x3:_0x374c83['data']=_0x2198da['bytes']();break;default:_0x2198da['skipType'](0x7&_0x5cc840);}}return _0x374c83;},_0x85c2fc['decodeDelimited']=function(_0x243622){return _0x243622 instanceof _0x5e9c2f||(_0x243622=new _0x5e9c2f(_0x243622)),this['decode'](_0x243622,_0x243622['uint32']());},_0x85c2fc['verify']=function(_0x4ac6e4){return'object'!=typeof _0x4ac6e4||null===_0x4ac6e4?'object\x20expected':null!=_0x4ac6e4['type']&&_0x4ac6e4['hasOwnProperty']('type')&&!_0x44b59b['isInteger'](_0x4ac6e4['type'])?'type:\x20integer\x20expected':null!=_0x4ac6e4['socketId']&&_0x4ac6e4['hasOwnProperty']('socketId')&&!_0x44b59b['isString'](_0x4ac6e4['socketId'])?'socketId:\x20string\x20expected':null!=_0x4ac6e4['data']&&_0x4ac6e4['hasOwnProperty']('data')&&!(_0x4ac6e4['data']&&'number'==typeof _0x4ac6e4['data']['length']||_0x44b59b['isString'](_0x4ac6e4['data']))?'data:\x20buffer\x20expected':null;},_0x85c2fc['fromObject']=function(_0x5a61ca){if(_0x5a61ca instanceof _0x1429da['ChannelMessage'])return _0x5a61ca;var _0x2b8a40=new _0x1429da['ChannelMessage']();return null!=_0x5a61ca['type']&&(_0x2b8a40['type']=_0x5a61ca['type']>>>0x0),null!=_0x5a61ca['socketId']&&(_0x2b8a40['socketId']=String(_0x5a61ca['socketId'])),null!=_0x5a61ca['data']&&('string'==typeof _0x5a61ca['data']?_0x44b59b['base64']['decode'](_0x5a61ca['data'],_0x2b8a40['data']=_0x44b59b['newBuffer'](_0x44b59b['base64']['length'](_0x5a61ca['data'])),0x0):_0x5a61ca['data']['length']>=0x0&&(_0x2b8a40['data']=_0x5a61ca['data'])),_0x2b8a40;},_0x85c2fc['toObject']=function(_0x4a0927,_0x288a1f){_0x288a1f||(_0x288a1f={});var _0x16a3ef={};return _0x288a1f['defaults']&&(_0x16a3ef['type']=0x0,_0x16a3ef['socketId']='',_0x288a1f['bytes']===String?_0x16a3ef['data']='':(_0x16a3ef['data']=[],_0x288a1f['bytes']!==Array&&(_0x16a3ef['data']=_0x44b59b['newBuffer'](_0x16a3ef['data'])))),null!=_0x4a0927['type']&&_0x4a0927['hasOwnProperty']('type')&&(_0x16a3ef['type']=_0x4a0927['type']),null!=_0x4a0927['socketId']&&_0x4a0927['hasOwnProperty']('socketId')&&(_0x16a3ef['socketId']=_0x4a0927['socketId']),null!=_0x4a0927['data']&&_0x4a0927['hasOwnProperty']('data')&&(_0x16a3ef['data']=_0x288a1f['bytes']===String?_0x44b59b['base64']['encode'](_0x4a0927['data'],0x0,_0x4a0927['data']['length']):_0x288a1f['bytes']===Array?Array['prototype']['slice']['call'](_0x4a0927['data']):_0x4a0927['data']),_0x16a3ef;},_0x85c2fc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x85c2fc['getTypeUrl']=function(_0x3c6aee){return void 0x0===_0x3c6aee&&(_0x3c6aee='type.googleapis.com'),_0x3c6aee+'/ChannelMessage';},_0x85c2fc;}()),_0x1429da['GetUserResponse']=(function(){function _0x128455(_0x59a683){if(this['attributes']=[],_0x59a683){for(var _0x3b035e=Object['keys'](_0x59a683),_0x1e96ae=0x0;_0x1e96ae<_0x3b035e['length'];++_0x1e96ae)null!=_0x59a683[_0x3b035e[_0x1e96ae]]&&(this[_0x3b035e[_0x1e96ae]]=_0x59a683[_0x3b035e[_0x1e96ae]]);}}return _0x128455['prototype']['attributes']=_0x44b59b['emptyArray'],_0x128455['create']=function(_0x4edc0d){return new _0x128455(_0x4edc0d);},_0x128455['encode']=function(_0x1c40ec,_0x4169a1){if(_0x4169a1||(_0x4169a1=_0x2e8075['create']()),null!=_0x1c40ec['attributes']&&_0x1c40ec['attributes']['length']){for(var _0x5bfa2b=0x0;_0x5bfa2b<_0x1c40ec['attributes']['length'];++_0x5bfa2b)_0x1429da['KeyValueDescriptor']['encode'](_0x1c40ec['attributes'][_0x5bfa2b],_0x4169a1['uint32'](0xa)['fork']())['ldelim']();}return _0x4169a1;},_0x128455['encodeDelimited']=function(_0x1c9f9,_0x31f586){return this['encode'](_0x1c9f9,_0x31f586)['ldelim']();},_0x128455['decode']=function(_0x45f60c,_0x30bb97,_0x153689){_0x45f60c instanceof _0x5e9c2f||(_0x45f60c=_0x5e9c2f['create'](_0x45f60c));for(var _0x4833ed=void 0x0===_0x30bb97?_0x45f60c['len']:_0x45f60c['pos']+_0x30bb97,_0x3ae071=new _0x1429da['GetUserResponse']();_0x45f60c['pos']<_0x4833ed;){var _0x5d4a4e=_0x45f60c['uint32']();if(_0x5d4a4e===_0x153689)break;_0x5d4a4e>>>0x3==0x1?(_0x3ae071['attributes']&&_0x3ae071['attributes']['length']||(_0x3ae071['attributes']=[]),_0x3ae071['attributes']['push'](_0x1429da['KeyValueDescriptor']['decode'](_0x45f60c,_0x45f60c['uint32']()))):_0x45f60c['skipType'](0x7&_0x5d4a4e);}return _0x3ae071;},_0x128455['decodeDelimited']=function(_0x2bad33){return _0x2bad33 instanceof _0x5e9c2f||(_0x2bad33=new _0x5e9c2f(_0x2bad33)),this['decode'](_0x2bad33,_0x2bad33['uint32']());},_0x128455['verify']=function(_0x4613e2){if('object'!=typeof _0x4613e2||null===_0x4613e2)return'object\x20expected';if(null!=_0x4613e2['attributes']&&_0x4613e2['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x4613e2['attributes']))return'attributes:\x20array\x20expected';for(var _0x445831=0x0;_0x445831<_0x4613e2['attributes']['length'];++_0x445831){var _0xcdf328=_0x1429da['KeyValueDescriptor']['verify'](_0x4613e2['attributes'][_0x445831]);if(_0xcdf328)return'attributes.'+_0xcdf328;}}return null;},_0x128455['fromObject']=function(_0x32b9a5){if(_0x32b9a5 instanceof _0x1429da['GetUserResponse'])return _0x32b9a5;var _0x339e0a=new _0x1429da['GetUserResponse']();if(_0x32b9a5['attributes']){if(!Array['isArray'](_0x32b9a5['attributes']))throw TypeError('.GetUserResponse.attributes:\x20array\x20expected');_0x339e0a['attributes']=[];for(var _0x22b2dd=0x0;_0x22b2dd<_0x32b9a5['attributes']['length'];++_0x22b2dd){if('object'!=typeof _0x32b9a5['attributes'][_0x22b2dd])throw TypeError('.GetUserResponse.attributes:\x20object\x20expected');_0x339e0a['attributes'][_0x22b2dd]=_0x1429da['KeyValueDescriptor']['fromObject'](_0x32b9a5['attributes'][_0x22b2dd]);}}return _0x339e0a;},_0x128455['toObject']=function(_0x58682e,_0x2ae879){_0x2ae879||(_0x2ae879={});var _0x20d562={};if((_0x2ae879['arrays']||_0x2ae879['defaults'])&&(_0x20d562['attributes']=[]),_0x58682e['attributes']&&_0x58682e['attributes']['length']){_0x20d562['attributes']=[];for(var _0x3a8afb=0x0;_0x3a8afb<_0x58682e['attributes']['length'];++_0x3a8afb)_0x20d562['attributes'][_0x3a8afb]=_0x1429da['KeyValueDescriptor']['toObject'](_0x58682e['attributes'][_0x3a8afb],_0x2ae879);}return _0x20d562;},_0x128455['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x128455['getTypeUrl']=function(_0x2fdb32){return void 0x0===_0x2fdb32&&(_0x2fdb32='type.googleapis.com'),_0x2fdb32+'/GetUserResponse';},_0x128455;}()),_0x1429da['GetManyUsersResponse']=(function(){function _0x242499(_0x38e986){if(this['users']=[],_0x38e986){for(var _0x3fb229=Object['keys'](_0x38e986),_0x5eaef5=0x0;_0x5eaef5<_0x3fb229['length'];++_0x5eaef5)null!=_0x38e986[_0x3fb229[_0x5eaef5]]&&(this[_0x3fb229[_0x5eaef5]]=_0x38e986[_0x3fb229[_0x5eaef5]]);}}return _0x242499['prototype']['users']=_0x44b59b['emptyArray'],_0x242499['create']=function(_0x5ce53b){return new _0x242499(_0x5ce53b);},_0x242499['encode']=function(_0x2bff48,_0x14f081){if(_0x14f081||(_0x14f081=_0x2e8075['create']()),null!=_0x2bff48['users']&&_0x2bff48['users']['length']){for(var _0x2b03df=0x0;_0x2b03df<_0x2bff48['users']['length'];++_0x2b03df)_0x1429da['UserDescriptor']['encode'](_0x2bff48['users'][_0x2b03df],_0x14f081['uint32'](0xa)['fork']())['ldelim']();}return _0x14f081;},_0x242499['encodeDelimited']=function(_0x467c63,_0x14be9b){return this['encode'](_0x467c63,_0x14be9b)['ldelim']();},_0x242499['decode']=function(_0xea88ac,_0x5c5dfb,_0x171aa6){_0xea88ac instanceof _0x5e9c2f||(_0xea88ac=_0x5e9c2f['create'](_0xea88ac));for(var _0x4cb7fb=void 0x0===_0x5c5dfb?_0xea88ac['len']:_0xea88ac['pos']+_0x5c5dfb,_0x58153c=new _0x1429da['GetManyUsersResponse']();_0xea88ac['pos']<_0x4cb7fb;){var _0x4b0348=_0xea88ac['uint32']();if(_0x4b0348===_0x171aa6)break;_0x4b0348>>>0x3==0x1?(_0x58153c['users']&&_0x58153c['users']['length']||(_0x58153c['users']=[]),_0x58153c['users']['push'](_0x1429da['UserDescriptor']['decode'](_0xea88ac,_0xea88ac['uint32']()))):_0xea88ac['skipType'](0x7&_0x4b0348);}return _0x58153c;},_0x242499['decodeDelimited']=function(_0x295fad){return _0x295fad instanceof _0x5e9c2f||(_0x295fad=new _0x5e9c2f(_0x295fad)),this['decode'](_0x295fad,_0x295fad['uint32']());},_0x242499['verify']=function(_0x5320da){if('object'!=typeof _0x5320da||null===_0x5320da)return'object\x20expected';if(null!=_0x5320da['users']&&_0x5320da['hasOwnProperty']('users')){if(!Array['isArray'](_0x5320da['users']))return'users:\x20array\x20expected';for(var _0xdc326c=0x0;_0xdc326c<_0x5320da['users']['length'];++_0xdc326c){var _0x5ce49b=_0x1429da['UserDescriptor']['verify'](_0x5320da['users'][_0xdc326c]);if(_0x5ce49b)return'users.'+_0x5ce49b;}}return null;},_0x242499['fromObject']=function(_0x154eba){if(_0x154eba instanceof _0x1429da['GetManyUsersResponse'])return _0x154eba;var _0x106d15=new _0x1429da['GetManyUsersResponse']();if(_0x154eba['users']){if(!Array['isArray'](_0x154eba['users']))throw TypeError('.GetManyUsersResponse.users:\x20array\x20expected');_0x106d15['users']=[];for(var _0x2d37e4=0x0;_0x2d37e4<_0x154eba['users']['length'];++_0x2d37e4){if('object'!=typeof _0x154eba['users'][_0x2d37e4])throw TypeError('.GetManyUsersResponse.users:\x20object\x20expected');_0x106d15['users'][_0x2d37e4]=_0x1429da['UserDescriptor']['fromObject'](_0x154eba['users'][_0x2d37e4]);}}return _0x106d15;},_0x242499['toObject']=function(_0x59298e,_0x3f3ab3){_0x3f3ab3||(_0x3f3ab3={});var _0x45e369={};if((_0x3f3ab3['arrays']||_0x3f3ab3['defaults'])&&(_0x45e369['users']=[]),_0x59298e['users']&&_0x59298e['users']['length']){_0x45e369['users']=[];for(var _0x2cd36b=0x0;_0x2cd36b<_0x59298e['users']['length'];++_0x2cd36b)_0x45e369['users'][_0x2cd36b]=_0x1429da['UserDescriptor']['toObject'](_0x59298e['users'][_0x2cd36b],_0x3f3ab3);}return _0x45e369;},_0x242499['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x242499['getTypeUrl']=function(_0x5ce1fd){return void 0x0===_0x5ce1fd&&(_0x5ce1fd='type.googleapis.com'),_0x5ce1fd+'/GetManyUsersResponse';},_0x242499;}()),_0x1429da['GetUserMessage']=(function(){function _0x154dd3(_0x1aad2a){if(_0x1aad2a){for(var _0x33cf1d=Object['keys'](_0x1aad2a),_0x496c4e=0x0;_0x496c4e<_0x33cf1d['length'];++_0x496c4e)null!=_0x1aad2a[_0x33cf1d[_0x496c4e]]&&(this[_0x33cf1d[_0x496c4e]]=_0x1aad2a[_0x33cf1d[_0x496c4e]]);}}return _0x154dd3['prototype']['id']='',_0x154dd3['create']=function(_0x3fc743){return new _0x154dd3(_0x3fc743);},_0x154dd3['encode']=function(_0x874116,_0x20064d){return _0x20064d||(_0x20064d=_0x2e8075['create']()),null!=_0x874116['id']&&Object['hasOwnProperty']['call'](_0x874116,'id')&&_0x20064d['uint32'](0xa)['string'](_0x874116['id']),_0x20064d;},_0x154dd3['encodeDelimited']=function(_0x2c7687,_0x47614d){return this['encode'](_0x2c7687,_0x47614d)['ldelim']();},_0x154dd3['decode']=function(_0x4d86e8,_0x43e512,_0x455e06){_0x4d86e8 instanceof _0x5e9c2f||(_0x4d86e8=_0x5e9c2f['create'](_0x4d86e8));for(var _0x490fed=void 0x0===_0x43e512?_0x4d86e8['len']:_0x4d86e8['pos']+_0x43e512,_0x35bddf=new _0x1429da['GetUserMessage']();_0x4d86e8['pos']<_0x490fed;){var _0x41fad5=_0x4d86e8['uint32']();if(_0x41fad5===_0x455e06)break;_0x41fad5>>>0x3==0x1?_0x35bddf['id']=_0x4d86e8['string']():_0x4d86e8['skipType'](0x7&_0x41fad5);}return _0x35bddf;},_0x154dd3['decodeDelimited']=function(_0x1fa309){return _0x1fa309 instanceof _0x5e9c2f||(_0x1fa309=new _0x5e9c2f(_0x1fa309)),this['decode'](_0x1fa309,_0x1fa309['uint32']());},_0x154dd3['verify']=function(_0x716b77){return'object'!=typeof _0x716b77||null===_0x716b77?'object\x20expected':null!=_0x716b77['id']&&_0x716b77['hasOwnProperty']('id')&&!_0x44b59b['isString'](_0x716b77['id'])?'id:\x20string\x20expected':null;},_0x154dd3['fromObject']=function(_0x1a6dc6){if(_0x1a6dc6 instanceof _0x1429da['GetUserMessage'])return _0x1a6dc6;var _0x409301=new _0x1429da['GetUserMessage']();return null!=_0x1a6dc6['id']&&(_0x409301['id']=String(_0x1a6dc6['id'])),_0x409301;},_0x154dd3['toObject']=function(_0x241aec,_0x54e419){_0x54e419||(_0x54e419={});var _0x3bff1f={};return _0x54e419['defaults']&&(_0x3bff1f['id']=''),null!=_0x241aec['id']&&_0x241aec['hasOwnProperty']('id')&&(_0x3bff1f['id']=_0x241aec['id']),_0x3bff1f;},_0x154dd3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x154dd3['getTypeUrl']=function(_0x417b90){return void 0x0===_0x417b90&&(_0x417b90='type.googleapis.com'),_0x417b90+'/GetUserMessage';},_0x154dd3;}()),_0x1429da['GetManyUsersMessage']=(function(){function _0x74864e(_0x47dc3e){if(this['ids']=[],_0x47dc3e){for(var _0x460658=Object['keys'](_0x47dc3e),_0x1633b1=0x0;_0x1633b1<_0x460658['length'];++_0x1633b1)null!=_0x47dc3e[_0x460658[_0x1633b1]]&&(this[_0x460658[_0x1633b1]]=_0x47dc3e[_0x460658[_0x1633b1]]);}}return _0x74864e['prototype']['ids']=_0x44b59b['emptyArray'],_0x74864e['create']=function(_0x6f82c0){return new _0x74864e(_0x6f82c0);},_0x74864e['encode']=function(_0x5c08a6,_0x56cbeb){if(_0x56cbeb||(_0x56cbeb=_0x2e8075['create']()),null!=_0x5c08a6['ids']&&_0x5c08a6['ids']['length']){for(var _0x4b8a51=0x0;_0x4b8a51<_0x5c08a6['ids']['length'];++_0x4b8a51)_0x56cbeb['uint32'](0xa)['string'](_0x5c08a6['ids'][_0x4b8a51]);}return _0x56cbeb;},_0x74864e['encodeDelimited']=function(_0xf3addf,_0x3a7a33){return this['encode'](_0xf3addf,_0x3a7a33)['ldelim']();},_0x74864e['decode']=function(_0x190cbb,_0x45b57c,_0x27f6ff){_0x190cbb instanceof _0x5e9c2f||(_0x190cbb=_0x5e9c2f['create'](_0x190cbb));for(var _0x3304e6=void 0x0===_0x45b57c?_0x190cbb['len']:_0x190cbb['pos']+_0x45b57c,_0x200605=new _0x1429da['GetManyUsersMessage']();_0x190cbb['pos']<_0x3304e6;){var _0x25247a=_0x190cbb['uint32']();if(_0x25247a===_0x27f6ff)break;_0x25247a>>>0x3==0x1?(_0x200605['ids']&&_0x200605['ids']['length']||(_0x200605['ids']=[]),_0x200605['ids']['push'](_0x190cbb['string']())):_0x190cbb['skipType'](0x7&_0x25247a);}return _0x200605;},_0x74864e['decodeDelimited']=function(_0x323809){return _0x323809 instanceof _0x5e9c2f||(_0x323809=new _0x5e9c2f(_0x323809)),this['decode'](_0x323809,_0x323809['uint32']());},_0x74864e['verify']=function(_0x35c8ef){if('object'!=typeof _0x35c8ef||null===_0x35c8ef)return'object\x20expected';if(null!=_0x35c8ef['ids']&&_0x35c8ef['hasOwnProperty']('ids')){if(!Array['isArray'](_0x35c8ef['ids']))return'ids:\x20array\x20expected';for(var _0x265261=0x0;_0x265261<_0x35c8ef['ids']['length'];++_0x265261)if(!_0x44b59b['isString'](_0x35c8ef['ids'][_0x265261]))return'ids:\x20string[]\x20expected';}return null;},_0x74864e['fromObject']=function(_0x2af738){if(_0x2af738 instanceof _0x1429da['GetManyUsersMessage'])return _0x2af738;var _0x4aa608=new _0x1429da['GetManyUsersMessage']();if(_0x2af738['ids']){if(!Array['isArray'](_0x2af738['ids']))throw TypeError('.GetManyUsersMessage.ids:\x20array\x20expected');_0x4aa608['ids']=[];for(var _0x170633=0x0;_0x170633<_0x2af738['ids']['length'];++_0x170633)_0x4aa608['ids'][_0x170633]=String(_0x2af738['ids'][_0x170633]);}return _0x4aa608;},_0x74864e['toObject']=function(_0x4e5935,_0x1b1a60){_0x1b1a60||(_0x1b1a60={});var _0x5f551f={};if((_0x1b1a60['arrays']||_0x1b1a60['defaults'])&&(_0x5f551f['ids']=[]),_0x4e5935['ids']&&_0x4e5935['ids']['length']){_0x5f551f['ids']=[];for(var _0x31aed7=0x0;_0x31aed7<_0x4e5935['ids']['length'];++_0x31aed7)_0x5f551f['ids'][_0x31aed7]=_0x4e5935['ids'][_0x31aed7];}return _0x5f551f;},_0x74864e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x74864e['getTypeUrl']=function(_0x406a68){return void 0x0===_0x406a68&&(_0x406a68='type.googleapis.com'),_0x406a68+'/GetManyUsersMessage';},_0x74864e;}()),_0x1429da['UserDescriptor']=(function(){function _0x16db88(_0x4ac54d){if(this['attributes']=[],_0x4ac54d){for(var _0x2e89d2=Object['keys'](_0x4ac54d),_0x3c41e3=0x0;_0x3c41e3<_0x2e89d2['length'];++_0x3c41e3)null!=_0x4ac54d[_0x2e89d2[_0x3c41e3]]&&(this[_0x2e89d2[_0x3c41e3]]=_0x4ac54d[_0x2e89d2[_0x3c41e3]]);}}return _0x16db88['prototype']['attributes']=_0x44b59b['emptyArray'],_0x16db88['create']=function(_0x613b39){return new _0x16db88(_0x613b39);},_0x16db88['encode']=function(_0x4e0d74,_0x43d11b){if(_0x43d11b||(_0x43d11b=_0x2e8075['create']()),null!=_0x4e0d74['attributes']&&_0x4e0d74['attributes']['length']){for(var _0x163e81=0x0;_0x163e81<_0x4e0d74['attributes']['length'];++_0x163e81)_0x1429da['KeyValueDescriptor']['encode'](_0x4e0d74['attributes'][_0x163e81],_0x43d11b['uint32'](0xa)['fork']())['ldelim']();}return _0x43d11b;},_0x16db88['encodeDelimited']=function(_0x11ea9b,_0x1d8ddb){return this['encode'](_0x11ea9b,_0x1d8ddb)['ldelim']();},_0x16db88['decode']=function(_0x218a3e,_0x4622cc,_0x15ff65){_0x218a3e instanceof _0x5e9c2f||(_0x218a3e=_0x5e9c2f['create'](_0x218a3e));for(var _0x3eeaa7=void 0x0===_0x4622cc?_0x218a3e['len']:_0x218a3e['pos']+_0x4622cc,_0x213ea1=new _0x1429da['UserDescriptor']();_0x218a3e['pos']<_0x3eeaa7;){var _0x3d1167=_0x218a3e['uint32']();if(_0x3d1167===_0x15ff65)break;_0x3d1167>>>0x3==0x1?(_0x213ea1['attributes']&&_0x213ea1['attributes']['length']||(_0x213ea1['attributes']=[]),_0x213ea1['attributes']['push'](_0x1429da['KeyValueDescriptor']['decode'](_0x218a3e,_0x218a3e['uint32']()))):_0x218a3e['skipType'](0x7&_0x3d1167);}return _0x213ea1;},_0x16db88['decodeDelimited']=function(_0x435907){return _0x435907 instanceof _0x5e9c2f||(_0x435907=new _0x5e9c2f(_0x435907)),this['decode'](_0x435907,_0x435907['uint32']());},_0x16db88['verify']=function(_0x131a36){if('object'!=typeof _0x131a36||null===_0x131a36)return'object\x20expected';if(null!=_0x131a36['attributes']&&_0x131a36['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x131a36['attributes']))return'attributes:\x20array\x20expected';for(var _0x4b4b0c=0x0;_0x4b4b0c<_0x131a36['attributes']['length'];++_0x4b4b0c){var _0x39bb15=_0x1429da['KeyValueDescriptor']['verify'](_0x131a36['attributes'][_0x4b4b0c]);if(_0x39bb15)return'attributes.'+_0x39bb15;}}return null;},_0x16db88['fromObject']=function(_0x1f7cc9){if(_0x1f7cc9 instanceof _0x1429da['UserDescriptor'])return _0x1f7cc9;var _0x5c8902=new _0x1429da['UserDescriptor']();if(_0x1f7cc9['attributes']){if(!Array['isArray'](_0x1f7cc9['attributes']))throw TypeError('.UserDescriptor.attributes:\x20array\x20expected');_0x5c8902['attributes']=[];for(var _0x55020f=0x0;_0x55020f<_0x1f7cc9['attributes']['length'];++_0x55020f){if('object'!=typeof _0x1f7cc9['attributes'][_0x55020f])throw TypeError('.UserDescriptor.attributes:\x20object\x20expected');_0x5c8902['attributes'][_0x55020f]=_0x1429da['KeyValueDescriptor']['fromObject'](_0x1f7cc9['attributes'][_0x55020f]);}}return _0x5c8902;},_0x16db88['toObject']=function(_0x2c0bc9,_0x353794){_0x353794||(_0x353794={});var _0x265820={};if((_0x353794['arrays']||_0x353794['defaults'])&&(_0x265820['attributes']=[]),_0x2c0bc9['attributes']&&_0x2c0bc9['attributes']['length']){_0x265820['attributes']=[];for(var _0x536ec7=0x0;_0x536ec7<_0x2c0bc9['attributes']['length'];++_0x536ec7)_0x265820['attributes'][_0x536ec7]=_0x1429da['KeyValueDescriptor']['toObject'](_0x2c0bc9['attributes'][_0x536ec7],_0x353794);}return _0x265820;},_0x16db88['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x16db88['getTypeUrl']=function(_0x5c0130){return void 0x0===_0x5c0130&&(_0x5c0130='type.googleapis.com'),_0x5c0130+'/UserDescriptor';},_0x16db88;}()),_0x1429da['TrackChangesGetSuggestionResponse']=(function(){function _0x52a591(_0x34e09b){if(_0x34e09b){for(var _0x53e401=Object['keys'](_0x34e09b),_0x35fc1a=0x0;_0x35fc1a<_0x53e401['length'];++_0x35fc1a)null!=_0x34e09b[_0x53e401[_0x35fc1a]]&&(this[_0x53e401[_0x35fc1a]]=_0x34e09b[_0x53e401[_0x35fc1a]]);}}return _0x52a591['prototype']['id']='',_0x52a591['prototype']['authorId']='',_0x52a591['prototype']['type']='',_0x52a591['prototype']['createdAt']='',_0x52a591['prototype']['data']='',_0x52a591['prototype']['hasComments']=!0x1,_0x52a591['prototype']['state']='',_0x52a591['prototype']['attributes']='',_0x52a591['create']=function(_0x1be01f){return new _0x52a591(_0x1be01f);},_0x52a591['encode']=function(_0xb5493f,_0x1ce7e4){return _0x1ce7e4||(_0x1ce7e4=_0x2e8075['create']()),null!=_0xb5493f['id']&&Object['hasOwnProperty']['call'](_0xb5493f,'id')&&_0x1ce7e4['uint32'](0xa)['string'](_0xb5493f['id']),null!=_0xb5493f['authorId']&&Object['hasOwnProperty']['call'](_0xb5493f,'authorId')&&_0x1ce7e4['uint32'](0x12)['string'](_0xb5493f['authorId']),null!=_0xb5493f['type']&&Object['hasOwnProperty']['call'](_0xb5493f,'type')&&_0x1ce7e4['uint32'](0x1a)['string'](_0xb5493f['type']),null!=_0xb5493f['createdAt']&&Object['hasOwnProperty']['call'](_0xb5493f,'createdAt')&&_0x1ce7e4['uint32'](0x22)['string'](_0xb5493f['createdAt']),null!=_0xb5493f['data']&&Object['hasOwnProperty']['call'](_0xb5493f,'data')&&_0x1ce7e4['uint32'](0x2a)['string'](_0xb5493f['data']),null!=_0xb5493f['hasComments']&&Object['hasOwnProperty']['call'](_0xb5493f,'hasComments')&&_0x1ce7e4['uint32'](0x30)['bool'](_0xb5493f['hasComments']),null!=_0xb5493f['state']&&Object['hasOwnProperty']['call'](_0xb5493f,'state')&&_0x1ce7e4['uint32'](0x3a)['string'](_0xb5493f['state']),null!=_0xb5493f['attributes']&&Object['hasOwnProperty']['call'](_0xb5493f,'attributes')&&_0x1ce7e4['uint32'](0x42)['string'](_0xb5493f['attributes']),_0x1ce7e4;},_0x52a591['encodeDelimited']=function(_0x10edf1,_0x33ae3f){return this['encode'](_0x10edf1,_0x33ae3f)['ldelim']();},_0x52a591['decode']=function(_0xaf4323,_0x325d59,_0xb286ad){_0xaf4323 instanceof _0x5e9c2f||(_0xaf4323=_0x5e9c2f['create'](_0xaf4323));for(var _0x15a763=void 0x0===_0x325d59?_0xaf4323['len']:_0xaf4323['pos']+_0x325d59,_0x1c5f16=new _0x1429da['TrackChangesGetSuggestionResponse']();_0xaf4323['pos']<_0x15a763;){var _0x390159=_0xaf4323['uint32']();if(_0x390159===_0xb286ad)break;switch(_0x390159>>>0x3){case 0x1:_0x1c5f16['id']=_0xaf4323['string']();break;case 0x2:_0x1c5f16['authorId']=_0xaf4323['string']();break;case 0x3:_0x1c5f16['type']=_0xaf4323['string']();break;case 0x4:_0x1c5f16['createdAt']=_0xaf4323['string']();break;case 0x5:_0x1c5f16['data']=_0xaf4323['string']();break;case 0x6:_0x1c5f16['hasComments']=_0xaf4323['bool']();break;case 0x7:_0x1c5f16['state']=_0xaf4323['string']();break;case 0x8:_0x1c5f16['attributes']=_0xaf4323['string']();break;default:_0xaf4323['skipType'](0x7&_0x390159);}}return _0x1c5f16;},_0x52a591['decodeDelimited']=function(_0x2227a3){return _0x2227a3 instanceof _0x5e9c2f||(_0x2227a3=new _0x5e9c2f(_0x2227a3)),this['decode'](_0x2227a3,_0x2227a3['uint32']());},_0x52a591['verify']=function(_0x2ecf1c){return'object'!=typeof _0x2ecf1c||null===_0x2ecf1c?'object\x20expected':null!=_0x2ecf1c['id']&&_0x2ecf1c['hasOwnProperty']('id')&&!_0x44b59b['isString'](_0x2ecf1c['id'])?'id:\x20string\x20expected':null!=_0x2ecf1c['authorId']&&_0x2ecf1c['hasOwnProperty']('authorId')&&!_0x44b59b['isString'](_0x2ecf1c['authorId'])?'authorId:\x20string\x20expected':null!=_0x2ecf1c['type']&&_0x2ecf1c['hasOwnProperty']('type')&&!_0x44b59b['isString'](_0x2ecf1c['type'])?'type:\x20string\x20expected':null!=_0x2ecf1c['createdAt']&&_0x2ecf1c['hasOwnProperty']('createdAt')&&!_0x44b59b['isString'](_0x2ecf1c['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x2ecf1c['data']&&_0x2ecf1c['hasOwnProperty']('data')&&!_0x44b59b['isString'](_0x2ecf1c['data'])?'data:\x20string\x20expected':null!=_0x2ecf1c['hasComments']&&_0x2ecf1c['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x2ecf1c['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x2ecf1c['state']&&_0x2ecf1c['hasOwnProperty']('state')&&!_0x44b59b['isString'](_0x2ecf1c['state'])?'state:\x20string\x20expected':null!=_0x2ecf1c['attributes']&&_0x2ecf1c['hasOwnProperty']('attributes')&&!_0x44b59b['isString'](_0x2ecf1c['attributes'])?'attributes:\x20string\x20expected':null;},_0x52a591['fromObject']=function(_0xda409e){if(_0xda409e instanceof _0x1429da['TrackChangesGetSuggestionResponse'])return _0xda409e;var _0x13ba0a=new _0x1429da['TrackChangesGetSuggestionResponse']();return null!=_0xda409e['id']&&(_0x13ba0a['id']=String(_0xda409e['id'])),null!=_0xda409e['authorId']&&(_0x13ba0a['authorId']=String(_0xda409e['authorId'])),null!=_0xda409e['type']&&(_0x13ba0a['type']=String(_0xda409e['type'])),null!=_0xda409e['createdAt']&&(_0x13ba0a['createdAt']=String(_0xda409e['createdAt'])),null!=_0xda409e['data']&&(_0x13ba0a['data']=String(_0xda409e['data'])),null!=_0xda409e['hasComments']&&(_0x13ba0a['hasComments']=Boolean(_0xda409e['hasComments'])),null!=_0xda409e['state']&&(_0x13ba0a['state']=String(_0xda409e['state'])),null!=_0xda409e['attributes']&&(_0x13ba0a['attributes']=String(_0xda409e['attributes'])),_0x13ba0a;},_0x52a591['toObject']=function(_0x4efa01,_0x4611c1){_0x4611c1||(_0x4611c1={});var _0x416de9={};return _0x4611c1['defaults']&&(_0x416de9['id']='',_0x416de9['authorId']='',_0x416de9['type']='',_0x416de9['createdAt']='',_0x416de9['data']='',_0x416de9['hasComments']=!0x1,_0x416de9['state']='',_0x416de9['attributes']=''),null!=_0x4efa01['id']&&_0x4efa01['hasOwnProperty']('id')&&(_0x416de9['id']=_0x4efa01['id']),null!=_0x4efa01['authorId']&&_0x4efa01['hasOwnProperty']('authorId')&&(_0x416de9['authorId']=_0x4efa01['authorId']),null!=_0x4efa01['type']&&_0x4efa01['hasOwnProperty']('type')&&(_0x416de9['type']=_0x4efa01['type']),null!=_0x4efa01['createdAt']&&_0x4efa01['hasOwnProperty']('createdAt')&&(_0x416de9['createdAt']=_0x4efa01['createdAt']),null!=_0x4efa01['data']&&_0x4efa01['hasOwnProperty']('data')&&(_0x416de9['data']=_0x4efa01['data']),null!=_0x4efa01['hasComments']&&_0x4efa01['hasOwnProperty']('hasComments')&&(_0x416de9['hasComments']=_0x4efa01['hasComments']),null!=_0x4efa01['state']&&_0x4efa01['hasOwnProperty']('state')&&(_0x416de9['state']=_0x4efa01['state']),null!=_0x4efa01['attributes']&&_0x4efa01['hasOwnProperty']('attributes')&&(_0x416de9['attributes']=_0x4efa01['attributes']),_0x416de9;},_0x52a591['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x52a591['getTypeUrl']=function(_0x2b8f7f){return void 0x0===_0x2b8f7f&&(_0x2b8f7f='type.googleapis.com'),_0x2b8f7f+'/TrackChangesGetSuggestionResponse';},_0x52a591;}()),_0x1429da['TrackChangesGetAllSuggestionsResponse']=(function(){function _0x139a11(_0x5b856c){if(this['suggestions']=[],this['suggestionsV2']=[],_0x5b856c){for(var _0x58f6ba=Object['keys'](_0x5b856c),_0x3001aa=0x0;_0x3001aa<_0x58f6ba['length'];++_0x3001aa)null!=_0x5b856c[_0x58f6ba[_0x3001aa]]&&(this[_0x58f6ba[_0x3001aa]]=_0x5b856c[_0x58f6ba[_0x3001aa]]);}}return _0x139a11['prototype']['suggestions']=_0x44b59b['emptyArray'],_0x139a11['prototype']['suggestionsV2']=_0x44b59b['emptyArray'],_0x139a11['create']=function(_0x44af64){return new _0x139a11(_0x44af64);},_0x139a11['encode']=function(_0x594922,_0x435eec){if(_0x435eec||(_0x435eec=_0x2e8075['create']()),null!=_0x594922['suggestions']&&_0x594922['suggestions']['length']){for(var _0x3cfed7=0x0;_0x3cfed7<_0x594922['suggestions']['length'];++_0x3cfed7)_0x435eec['uint32'](0xa)['string'](_0x594922['suggestions'][_0x3cfed7]);}if(null!=_0x594922['suggestionsV2']&&_0x594922['suggestionsV2']['length']){for(_0x3cfed7=0x0;_0x3cfed7<_0x594922['suggestionsV2']['length'];++_0x3cfed7)_0x1429da['SuggestionDescriptor']['encode'](_0x594922['suggestionsV2'][_0x3cfed7],_0x435eec['uint32'](0x12)['fork']())['ldelim']();}return _0x435eec;},_0x139a11['encodeDelimited']=function(_0x503ec0,_0x4c8110){return this['encode'](_0x503ec0,_0x4c8110)['ldelim']();},_0x139a11['decode']=function(_0x19cc6e,_0x5bfc1e,_0x275c1a){_0x19cc6e instanceof _0x5e9c2f||(_0x19cc6e=_0x5e9c2f['create'](_0x19cc6e));for(var _0x4e653b=void 0x0===_0x5bfc1e?_0x19cc6e['len']:_0x19cc6e['pos']+_0x5bfc1e,_0x1e4223=new _0x1429da['TrackChangesGetAllSuggestionsResponse']();_0x19cc6e['pos']<_0x4e653b;){var _0x377eb9=_0x19cc6e['uint32']();if(_0x377eb9===_0x275c1a)break;switch(_0x377eb9>>>0x3){case 0x1:_0x1e4223['suggestions']&&_0x1e4223['suggestions']['length']||(_0x1e4223['suggestions']=[]),_0x1e4223['suggestions']['push'](_0x19cc6e['string']());break;case 0x2:_0x1e4223['suggestionsV2']&&_0x1e4223['suggestionsV2']['length']||(_0x1e4223['suggestionsV2']=[]),_0x1e4223['suggestionsV2']['push'](_0x1429da['SuggestionDescriptor']['decode'](_0x19cc6e,_0x19cc6e['uint32']()));break;default:_0x19cc6e['skipType'](0x7&_0x377eb9);}}return _0x1e4223;},_0x139a11['decodeDelimited']=function(_0x4f745f){return _0x4f745f instanceof _0x5e9c2f||(_0x4f745f=new _0x5e9c2f(_0x4f745f)),this['decode'](_0x4f745f,_0x4f745f['uint32']());},_0x139a11['verify']=function(_0x4cfe34){if('object'!=typeof _0x4cfe34||null===_0x4cfe34)return'object\x20expected';if(null!=_0x4cfe34['suggestions']&&_0x4cfe34['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x4cfe34['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x513278=0x0;_0x513278<_0x4cfe34['suggestions']['length'];++_0x513278)if(!_0x44b59b['isString'](_0x4cfe34['suggestions'][_0x513278]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x4cfe34['suggestionsV2']&&_0x4cfe34['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x4cfe34['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x513278=0x0;_0x513278<_0x4cfe34['suggestionsV2']['length'];++_0x513278){var _0x54d0c5=_0x1429da['SuggestionDescriptor']['verify'](_0x4cfe34['suggestionsV2'][_0x513278]);if(_0x54d0c5)return'suggestionsV2.'+_0x54d0c5;}}return null;},_0x139a11['fromObject']=function(_0x1b922a){if(_0x1b922a instanceof _0x1429da['TrackChangesGetAllSuggestionsResponse'])return _0x1b922a;var _0x44fbbf=new _0x1429da['TrackChangesGetAllSuggestionsResponse']();if(_0x1b922a['suggestions']){if(!Array['isArray'](_0x1b922a['suggestions']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestions:\x20array\x20expected');_0x44fbbf['suggestions']=[];for(var _0x7cb091=0x0;_0x7cb091<_0x1b922a['suggestions']['length'];++_0x7cb091)_0x44fbbf['suggestions'][_0x7cb091]=String(_0x1b922a['suggestions'][_0x7cb091]);}if(_0x1b922a['suggestionsV2']){if(!Array['isArray'](_0x1b922a['suggestionsV2']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20array\x20expected');for(_0x44fbbf['suggestionsV2']=[],_0x7cb091=0x0;_0x7cb091<_0x1b922a['suggestionsV2']['length'];++_0x7cb091){if('object'!=typeof _0x1b922a['suggestionsV2'][_0x7cb091])throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20object\x20expected');_0x44fbbf['suggestionsV2'][_0x7cb091]=_0x1429da['SuggestionDescriptor']['fromObject'](_0x1b922a['suggestionsV2'][_0x7cb091]);}}return _0x44fbbf;},_0x139a11['toObject']=function(_0x314f30,_0x19a610){_0x19a610||(_0x19a610={});var _0x201a63={};if((_0x19a610['arrays']||_0x19a610['defaults'])&&(_0x201a63['suggestions']=[],_0x201a63['suggestionsV2']=[]),_0x314f30['suggestions']&&_0x314f30['suggestions']['length']){_0x201a63['suggestions']=[];for(var _0x22600c=0x0;_0x22600c<_0x314f30['suggestions']['length'];++_0x22600c)_0x201a63['suggestions'][_0x22600c]=_0x314f30['suggestions'][_0x22600c];}if(_0x314f30['suggestionsV2']&&_0x314f30['suggestionsV2']['length']){for(_0x201a63['suggestionsV2']=[],_0x22600c=0x0;_0x22600c<_0x314f30['suggestionsV2']['length'];++_0x22600c)_0x201a63['suggestionsV2'][_0x22600c]=_0x1429da['SuggestionDescriptor']['toObject'](_0x314f30['suggestionsV2'][_0x22600c],_0x19a610);}return _0x201a63;},_0x139a11['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x139a11['getTypeUrl']=function(_0x18c134){return void 0x0===_0x18c134&&(_0x18c134='type.googleapis.com'),_0x18c134+'/TrackChangesGetAllSuggestionsResponse';},_0x139a11;}()),_0x1429da['TrackChangesConnectResponse']=(function(){function _0x4c89ea(_0x5f3b1c){if(this['suggestions']=[],this['suggestionsV2']=[],_0x5f3b1c){for(var _0x12d2b1=Object['keys'](_0x5f3b1c),_0x373bb5=0x0;_0x373bb5<_0x12d2b1['length'];++_0x373bb5)null!=_0x5f3b1c[_0x12d2b1[_0x373bb5]]&&(this[_0x12d2b1[_0x373bb5]]=_0x5f3b1c[_0x12d2b1[_0x373bb5]]);}}return _0x4c89ea['prototype']['channel']='',_0x4c89ea['prototype']['suggestions']=_0x44b59b['emptyArray'],_0x4c89ea['prototype']['suggestionsV2']=_0x44b59b['emptyArray'],_0x4c89ea['create']=function(_0x26f6df){return new _0x4c89ea(_0x26f6df);},_0x4c89ea['encode']=function(_0x367530,_0x525a4d){if(_0x525a4d||(_0x525a4d=_0x2e8075['create']()),null!=_0x367530['channel']&&Object['hasOwnProperty']['call'](_0x367530,'channel')&&_0x525a4d['uint32'](0xa)['string'](_0x367530['channel']),null!=_0x367530['suggestions']&&_0x367530['suggestions']['length']){for(var _0xae62ca=0x0;_0xae62ca<_0x367530['suggestions']['length'];++_0xae62ca)_0x525a4d['uint32'](0x12)['string'](_0x367530['suggestions'][_0xae62ca]);}if(null!=_0x367530['suggestionsV2']&&_0x367530['suggestionsV2']['length']){for(_0xae62ca=0x0;_0xae62ca<_0x367530['suggestionsV2']['length'];++_0xae62ca)_0x1429da['SuggestionDescriptor']['encode'](_0x367530['suggestionsV2'][_0xae62ca],_0x525a4d['uint32'](0x1a)['fork']())['ldelim']();}return _0x525a4d;},_0x4c89ea['encodeDelimited']=function(_0x3fd4bc,_0x3442f6){return this['encode'](_0x3fd4bc,_0x3442f6)['ldelim']();},_0x4c89ea['decode']=function(_0x3a1d7a,_0x377388,_0x9c7289){_0x3a1d7a instanceof _0x5e9c2f||(_0x3a1d7a=_0x5e9c2f['create'](_0x3a1d7a));for(var _0x9a6564=void 0x0===_0x377388?_0x3a1d7a['len']:_0x3a1d7a['pos']+_0x377388,_0x33248f=new _0x1429da['TrackChangesConnectResponse']();_0x3a1d7a['pos']<_0x9a6564;){var _0x3b67fd=_0x3a1d7a['uint32']();if(_0x3b67fd===_0x9c7289)break;switch(_0x3b67fd>>>0x3){case 0x1:_0x33248f['channel']=_0x3a1d7a['string']();break;case 0x2:_0x33248f['suggestions']&&_0x33248f['suggestions']['length']||(_0x33248f['suggestions']=[]),_0x33248f['suggestions']['push'](_0x3a1d7a['string']());break;case 0x3:_0x33248f['suggestionsV2']&&_0x33248f['suggestionsV2']['length']||(_0x33248f['suggestionsV2']=[]),_0x33248f['suggestionsV2']['push'](_0x1429da['SuggestionDescriptor']['decode'](_0x3a1d7a,_0x3a1d7a['uint32']()));break;default:_0x3a1d7a['skipType'](0x7&_0x3b67fd);}}return _0x33248f;},_0x4c89ea['decodeDelimited']=function(_0x5a73b3){return _0x5a73b3 instanceof _0x5e9c2f||(_0x5a73b3=new _0x5e9c2f(_0x5a73b3)),this['decode'](_0x5a73b3,_0x5a73b3['uint32']());},_0x4c89ea['verify']=function(_0x204f13){if('object'!=typeof _0x204f13||null===_0x204f13)return'object\x20expected';if(null!=_0x204f13['channel']&&_0x204f13['hasOwnProperty']('channel')&&!_0x44b59b['isString'](_0x204f13['channel']))return'channel:\x20string\x20expected';if(null!=_0x204f13['suggestions']&&_0x204f13['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x204f13['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x1a3ab3=0x0;_0x1a3ab3<_0x204f13['suggestions']['length'];++_0x1a3ab3)if(!_0x44b59b['isString'](_0x204f13['suggestions'][_0x1a3ab3]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x204f13['suggestionsV2']&&_0x204f13['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x204f13['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x1a3ab3=0x0;_0x1a3ab3<_0x204f13['suggestionsV2']['length'];++_0x1a3ab3){var _0x1981ca=_0x1429da['SuggestionDescriptor']['verify'](_0x204f13['suggestionsV2'][_0x1a3ab3]);if(_0x1981ca)return'suggestionsV2.'+_0x1981ca;}}return null;},_0x4c89ea['fromObject']=function(_0xebfa02){if(_0xebfa02 instanceof _0x1429da['TrackChangesConnectResponse'])return _0xebfa02;var _0x49c2f7=new _0x1429da['TrackChangesConnectResponse']();if(null!=_0xebfa02['channel']&&(_0x49c2f7['channel']=String(_0xebfa02['channel'])),_0xebfa02['suggestions']){if(!Array['isArray'](_0xebfa02['suggestions']))throw TypeError('.TrackChangesConnectResponse.suggestions:\x20array\x20expected');_0x49c2f7['suggestions']=[];for(var _0xf8963=0x0;_0xf8963<_0xebfa02['suggestions']['length'];++_0xf8963)_0x49c2f7['suggestions'][_0xf8963]=String(_0xebfa02['suggestions'][_0xf8963]);}if(_0xebfa02['suggestionsV2']){if(!Array['isArray'](_0xebfa02['suggestionsV2']))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20array\x20expected');for(_0x49c2f7['suggestionsV2']=[],_0xf8963=0x0;_0xf8963<_0xebfa02['suggestionsV2']['length'];++_0xf8963){if('object'!=typeof _0xebfa02['suggestionsV2'][_0xf8963])throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20object\x20expected');_0x49c2f7['suggestionsV2'][_0xf8963]=_0x1429da['SuggestionDescriptor']['fromObject'](_0xebfa02['suggestionsV2'][_0xf8963]);}}return _0x49c2f7;},_0x4c89ea['toObject']=function(_0x3f316c,_0x4c3424){_0x4c3424||(_0x4c3424={});var _0x9aa6c1={};if((_0x4c3424['arrays']||_0x4c3424['defaults'])&&(_0x9aa6c1['suggestions']=[],_0x9aa6c1['suggestionsV2']=[]),_0x4c3424['defaults']&&(_0x9aa6c1['channel']=''),null!=_0x3f316c['channel']&&_0x3f316c['hasOwnProperty']('channel')&&(_0x9aa6c1['channel']=_0x3f316c['channel']),_0x3f316c['suggestions']&&_0x3f316c['suggestions']['length']){_0x9aa6c1['suggestions']=[];for(var _0x9448f0=0x0;_0x9448f0<_0x3f316c['suggestions']['length'];++_0x9448f0)_0x9aa6c1['suggestions'][_0x9448f0]=_0x3f316c['suggestions'][_0x9448f0];}if(_0x3f316c['suggestionsV2']&&_0x3f316c['suggestionsV2']['length']){for(_0x9aa6c1['suggestionsV2']=[],_0x9448f0=0x0;_0x9448f0<_0x3f316c['suggestionsV2']['length'];++_0x9448f0)_0x9aa6c1['suggestionsV2'][_0x9448f0]=_0x1429da['SuggestionDescriptor']['toObject'](_0x3f316c['suggestionsV2'][_0x9448f0],_0x4c3424);}return _0x9aa6c1;},_0x4c89ea['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4c89ea['getTypeUrl']=function(_0x1ae2d7){return void 0x0===_0x1ae2d7&&(_0x1ae2d7='type.googleapis.com'),_0x1ae2d7+'/TrackChangesConnectResponse';},_0x4c89ea;}()),_0x1429da['TrackChangesAddSuggestionResponse']=(function(){function _0x1a4b26(_0x2a7af0){if(_0x2a7af0){for(var _0x186390=Object['keys'](_0x2a7af0),_0x1ca911=0x0;_0x1ca911<_0x186390['length'];++_0x1ca911)null!=_0x2a7af0[_0x186390[_0x1ca911]]&&(this[_0x186390[_0x1ca911]]=_0x2a7af0[_0x186390[_0x1ca911]]);}}return _0x1a4b26['prototype']['id']='',_0x1a4b26['prototype']['authorId']='',_0x1a4b26['prototype']['type']='',_0x1a4b26['prototype']['createdAt']='',_0x1a4b26['prototype']['data']='',_0x1a4b26['prototype']['hasComments']=!0x1,_0x1a4b26['prototype']['state']='',_0x1a4b26['prototype']['attributes']='',_0x1a4b26['create']=function(_0x527ec3){return new _0x1a4b26(_0x527ec3);},_0x1a4b26['encode']=function(_0x22ffab,_0x441f7a){return _0x441f7a||(_0x441f7a=_0x2e8075['create']()),null!=_0x22ffab['id']&&Object['hasOwnProperty']['call'](_0x22ffab,'id')&&_0x441f7a['uint32'](0xa)['string'](_0x22ffab['id']),null!=_0x22ffab['authorId']&&Object['hasOwnProperty']['call'](_0x22ffab,'authorId')&&_0x441f7a['uint32'](0x12)['string'](_0x22ffab['authorId']),null!=_0x22ffab['type']&&Object['hasOwnProperty']['call'](_0x22ffab,'type')&&_0x441f7a['uint32'](0x1a)['string'](_0x22ffab['type']),null!=_0x22ffab['createdAt']&&Object['hasOwnProperty']['call'](_0x22ffab,'createdAt')&&_0x441f7a['uint32'](0x22)['string'](_0x22ffab['createdAt']),null!=_0x22ffab['data']&&Object['hasOwnProperty']['call'](_0x22ffab,'data')&&_0x441f7a['uint32'](0x2a)['string'](_0x22ffab['data']),null!=_0x22ffab['hasComments']&&Object['hasOwnProperty']['call'](_0x22ffab,'hasComments')&&_0x441f7a['uint32'](0x30)['bool'](_0x22ffab['hasComments']),null!=_0x22ffab['state']&&Object['hasOwnProperty']['call'](_0x22ffab,'state')&&_0x441f7a['uint32'](0x3a)['string'](_0x22ffab['state']),null!=_0x22ffab['attributes']&&Object['hasOwnProperty']['call'](_0x22ffab,'attributes')&&_0x441f7a['uint32'](0x42)['string'](_0x22ffab['attributes']),_0x441f7a;},_0x1a4b26['encodeDelimited']=function(_0x18cd8e,_0x149f00){return this['encode'](_0x18cd8e,_0x149f00)['ldelim']();},_0x1a4b26['decode']=function(_0x142307,_0x58dae8,_0x43af26){_0x142307 instanceof _0x5e9c2f||(_0x142307=_0x5e9c2f['create'](_0x142307));for(var _0x43cf20=void 0x0===_0x58dae8?_0x142307['len']:_0x142307['pos']+_0x58dae8,_0x2d7c2c=new _0x1429da['TrackChangesAddSuggestionResponse']();_0x142307['pos']<_0x43cf20;){var _0x23531f=_0x142307['uint32']();if(_0x23531f===_0x43af26)break;switch(_0x23531f>>>0x3){case 0x1:_0x2d7c2c['id']=_0x142307['string']();break;case 0x2:_0x2d7c2c['authorId']=_0x142307['string']();break;case 0x3:_0x2d7c2c['type']=_0x142307['string']();break;case 0x4:_0x2d7c2c['createdAt']=_0x142307['string']();break;case 0x5:_0x2d7c2c['data']=_0x142307['string']();break;case 0x6:_0x2d7c2c['hasComments']=_0x142307['bool']();break;case 0x7:_0x2d7c2c['state']=_0x142307['string']();break;case 0x8:_0x2d7c2c['attributes']=_0x142307['string']();break;default:_0x142307['skipType'](0x7&_0x23531f);}}return _0x2d7c2c;},_0x1a4b26['decodeDelimited']=function(_0x45794d){return _0x45794d instanceof _0x5e9c2f||(_0x45794d=new _0x5e9c2f(_0x45794d)),this['decode'](_0x45794d,_0x45794d['uint32']());},_0x1a4b26['verify']=function(_0x3c9510){return'object'!=typeof _0x3c9510||null===_0x3c9510?'object\x20expected':null!=_0x3c9510['id']&&_0x3c9510['hasOwnProperty']('id')&&!_0x44b59b['isString'](_0x3c9510['id'])?'id:\x20string\x20expected':null!=_0x3c9510['authorId']&&_0x3c9510['hasOwnProperty']('authorId')&&!_0x44b59b['isString'](_0x3c9510['authorId'])?'authorId:\x20string\x20expected':null!=_0x3c9510['type']&&_0x3c9510['hasOwnProperty']('type')&&!_0x44b59b['isString'](_0x3c9510['type'])?'type:\x20string\x20expected':null!=_0x3c9510['createdAt']&&_0x3c9510['hasOwnProperty']('createdAt')&&!_0x44b59b['isString'](_0x3c9510['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3c9510['data']&&_0x3c9510['hasOwnProperty']('data')&&!_0x44b59b['isString'](_0x3c9510['data'])?'data:\x20string\x20expected':null!=_0x3c9510['hasComments']&&_0x3c9510['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x3c9510['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x3c9510['state']&&_0x3c9510['hasOwnProperty']('state')&&!_0x44b59b['isString'](_0x3c9510['state'])?'state:\x20string\x20expected':null!=_0x3c9510['attributes']&&_0x3c9510['hasOwnProperty']('attributes')&&!_0x44b59b['isString'](_0x3c9510['attributes'])?'attributes:\x20string\x20expected':null;},_0x1a4b26['fromObject']=function(_0x3d8972){if(_0x3d8972 instanceof _0x1429da['TrackChangesAddSuggestionResponse'])return _0x3d8972;var _0x2b0c80=new _0x1429da['TrackChangesAddSuggestionResponse']();return null!=_0x3d8972['id']&&(_0x2b0c80['id']=String(_0x3d8972['id'])),null!=_0x3d8972['authorId']&&(_0x2b0c80['authorId']=String(_0x3d8972['authorId'])),null!=_0x3d8972['type']&&(_0x2b0c80['type']=String(_0x3d8972['type'])),null!=_0x3d8972['createdAt']&&(_0x2b0c80['createdAt']=String(_0x3d8972['createdAt'])),null!=_0x3d8972['data']&&(_0x2b0c80['data']=String(_0x3d8972['data'])),null!=_0x3d8972['hasComments']&&(_0x2b0c80['hasComments']=Boolean(_0x3d8972['hasComments'])),null!=_0x3d8972['state']&&(_0x2b0c80['state']=String(_0x3d8972['state'])),null!=_0x3d8972['attributes']&&(_0x2b0c80['attributes']=String(_0x3d8972['attributes'])),_0x2b0c80;},_0x1a4b26['toObject']=function(_0x178e54,_0x317fbb){_0x317fbb||(_0x317fbb={});var _0x3e980a={};return _0x317fbb['defaults']&&(_0x3e980a['id']='',_0x3e980a['authorId']='',_0x3e980a['type']='',_0x3e980a['createdAt']='',_0x3e980a['data']='',_0x3e980a['hasComments']=!0x1,_0x3e980a['state']='',_0x3e980a['attributes']=''),null!=_0x178e54['id']&&_0x178e54['hasOwnProperty']('id')&&(_0x3e980a['id']=_0x178e54['id']),null!=_0x178e54['authorId']&&_0x178e54['hasOwnProperty']('authorId')&&(_0x3e980a['authorId']=_0x178e54['authorId']),null!=_0x178e54['type']&&_0x178e54['hasOwnProperty']('type')&&(_0x3e980a['type']=_0x178e54['type']),null!=_0x178e54['createdAt']&&_0x178e54['hasOwnProperty']('createdAt')&&(_0x3e980a['createdAt']=_0x178e54['createdAt']),null!=_0x178e54['data']&&_0x178e54['hasOwnProperty']('data')&&(_0x3e980a['data']=_0x178e54['data']),null!=_0x178e54['hasComments']&&_0x178e54['hasOwnProperty']('hasComments')&&(_0x3e980a['hasComments']=_0x178e54['hasComments']),null!=_0x178e54['state']&&_0x178e54['hasOwnProperty']('state')&&(_0x3e980a['state']=_0x178e54['state']),null!=_0x178e54['attributes']&&_0x178e54['hasOwnProperty']('attributes')&&(_0x3e980a['attributes']=_0x178e54['attributes']),_0x3e980a;},_0x1a4b26['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1a4b26['getTypeUrl']=function(_0x270c4d){return void 0x0===_0x270c4d&&(_0x270c4d='type.googleapis.com'),_0x270c4d+'/TrackChangesAddSuggestionResponse';},_0x1a4b26;}()),_0x1429da['TrackChangesUpdateSuggestionMessage']=(function(){function _0x53c48a(_0x5d9949){if(_0x5d9949){for(var _0x4df97c=Object['keys'](_0x5d9949),_0x2f7cfa=0x0;_0x2f7cfa<_0x4df97c['length'];++_0x2f7cfa)null!=_0x5d9949[_0x4df97c[_0x2f7cfa]]&&(this[_0x4df97c[_0x2f7cfa]]=_0x5d9949[_0x4df97c[_0x2f7cfa]]);}}return _0x53c48a['prototype']['id']='',_0x53c48a['prototype']['documentId']='',_0x53c48a['prototype']['hasComments']=!0x1,_0x53c48a['prototype']['isHasCommentsModified']=!0x1,_0x53c48a['prototype']['state']='',_0x53c48a['prototype']['attributes']='',_0x53c48a['create']=function(_0x401214){return new _0x53c48a(_0x401214);},_0x53c48a['encode']=function(_0x1cf404,_0x542c6c){return _0x542c6c||(_0x542c6c=_0x2e8075['create']()),null!=_0x1cf404['id']&&Object['hasOwnProperty']['call'](_0x1cf404,'id')&&_0x542c6c['uint32'](0xa)['string'](_0x1cf404['id']),null!=_0x1cf404['documentId']&&Object['hasOwnProperty']['call'](_0x1cf404,'documentId')&&_0x542c6c['uint32'](0x12)['string'](_0x1cf404['documentId']),null!=_0x1cf404['hasComments']&&Object['hasOwnProperty']['call'](_0x1cf404,'hasComments')&&_0x542c6c['uint32'](0x18)['bool'](_0x1cf404['hasComments']),null!=_0x1cf404['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x1cf404,'isHasCommentsModified')&&_0x542c6c['uint32'](0x20)['bool'](_0x1cf404['isHasCommentsModified']),null!=_0x1cf404['state']&&Object['hasOwnProperty']['call'](_0x1cf404,'state')&&_0x542c6c['uint32'](0x2a)['string'](_0x1cf404['state']),null!=_0x1cf404['attributes']&&Object['hasOwnProperty']['call'](_0x1cf404,'attributes')&&_0x542c6c['uint32'](0x32)['string'](_0x1cf404['attributes']),_0x542c6c;},_0x53c48a['encodeDelimited']=function(_0x500c8a,_0x561e1d){return this['encode'](_0x500c8a,_0x561e1d)['ldelim']();},_0x53c48a['decode']=function(_0x1b10d2,_0x1acab0,_0x4be55a){_0x1b10d2 instanceof _0x5e9c2f||(_0x1b10d2=_0x5e9c2f['create'](_0x1b10d2));for(var _0x2c7209=void 0x0===_0x1acab0?_0x1b10d2['len']:_0x1b10d2['pos']+_0x1acab0,_0x20bf14=new _0x1429da['TrackChangesUpdateSuggestionMessage']();_0x1b10d2['pos']<_0x2c7209;){var _0xfb343f=_0x1b10d2['uint32']();if(_0xfb343f===_0x4be55a)break;switch(_0xfb343f>>>0x3){case 0x1:_0x20bf14['id']=_0x1b10d2['string']();break;case 0x2:_0x20bf14['documentId']=_0x1b10d2['string']();break;case 0x3:_0x20bf14['hasComments']=_0x1b10d2['bool']();break;case 0x4:_0x20bf14['isHasCommentsModified']=_0x1b10d2['bool']();break;case 0x5:_0x20bf14['state']=_0x1b10d2['string']();break;case 0x6:_0x20bf14['attributes']=_0x1b10d2['string']();break;default:_0x1b10d2['skipType'](0x7&_0xfb343f);}}return _0x20bf14;},_0x53c48a['decodeDelimited']=function(_0x2baff3){return _0x2baff3 instanceof _0x5e9c2f||(_0x2baff3=new _0x5e9c2f(_0x2baff3)),this['decode'](_0x2baff3,_0x2baff3['uint32']());},_0x53c48a['verify']=function(_0x2d7525){return'object'!=typeof _0x2d7525||null===_0x2d7525?'object\x20expected':null!=_0x2d7525['id']&&_0x2d7525['hasOwnProperty']('id')&&!_0x44b59b['isString'](_0x2d7525['id'])?'id:\x20string\x20expected':null!=_0x2d7525['documentId']&&_0x2d7525['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x2d7525['documentId'])?'documentId:\x20string\x20expected':null!=_0x2d7525['hasComments']&&_0x2d7525['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x2d7525['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x2d7525['isHasCommentsModified']&&_0x2d7525['hasOwnProperty']('isHasCommentsModified')&&'boolean'!=typeof _0x2d7525['isHasCommentsModified']?'isHasCommentsModified:\x20boolean\x20expected':null!=_0x2d7525['state']&&_0x2d7525['hasOwnProperty']('state')&&!_0x44b59b['isString'](_0x2d7525['state'])?'state:\x20string\x20expected':null!=_0x2d7525['attributes']&&_0x2d7525['hasOwnProperty']('attributes')&&!_0x44b59b['isString'](_0x2d7525['attributes'])?'attributes:\x20string\x20expected':null;},_0x53c48a['fromObject']=function(_0x2bb9a2){if(_0x2bb9a2 instanceof _0x1429da['TrackChangesUpdateSuggestionMessage'])return _0x2bb9a2;var _0x32ac4d=new _0x1429da['TrackChangesUpdateSuggestionMessage']();return null!=_0x2bb9a2['id']&&(_0x32ac4d['id']=String(_0x2bb9a2['id'])),null!=_0x2bb9a2['documentId']&&(_0x32ac4d['documentId']=String(_0x2bb9a2['documentId'])),null!=_0x2bb9a2['hasComments']&&(_0x32ac4d['hasComments']=Boolean(_0x2bb9a2['hasComments'])),null!=_0x2bb9a2['isHasCommentsModified']&&(_0x32ac4d['isHasCommentsModified']=Boolean(_0x2bb9a2['isHasCommentsModified'])),null!=_0x2bb9a2['state']&&(_0x32ac4d['state']=String(_0x2bb9a2['state'])),null!=_0x2bb9a2['attributes']&&(_0x32ac4d['attributes']=String(_0x2bb9a2['attributes'])),_0x32ac4d;},_0x53c48a['toObject']=function(_0x145246,_0x35feb3){_0x35feb3||(_0x35feb3={});var _0x5dabd2={};return _0x35feb3['defaults']&&(_0x5dabd2['id']='',_0x5dabd2['documentId']='',_0x5dabd2['hasComments']=!0x1,_0x5dabd2['isHasCommentsModified']=!0x1,_0x5dabd2['state']='',_0x5dabd2['attributes']=''),null!=_0x145246['id']&&_0x145246['hasOwnProperty']('id')&&(_0x5dabd2['id']=_0x145246['id']),null!=_0x145246['documentId']&&_0x145246['hasOwnProperty']('documentId')&&(_0x5dabd2['documentId']=_0x145246['documentId']),null!=_0x145246['hasComments']&&_0x145246['hasOwnProperty']('hasComments')&&(_0x5dabd2['hasComments']=_0x145246['hasComments']),null!=_0x145246['isHasCommentsModified']&&_0x145246['hasOwnProperty']('isHasCommentsModified')&&(_0x5dabd2['isHasCommentsModified']=_0x145246['isHasCommentsModified']),null!=_0x145246['state']&&_0x145246['hasOwnProperty']('state')&&(_0x5dabd2['state']=_0x145246['state']),null!=_0x145246['attributes']&&_0x145246['hasOwnProperty']('attributes')&&(_0x5dabd2['attributes']=_0x145246['attributes']),_0x5dabd2;},_0x53c48a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x53c48a['getTypeUrl']=function(_0x5d9596){return void 0x0===_0x5d9596&&(_0x5d9596='type.googleapis.com'),_0x5d9596+'/TrackChangesUpdateSuggestionMessage';},_0x53c48a;}()),_0x1429da['TrackChangesGetSuggestionMessage']=(function(){function _0x22cadf(_0x6657df){if(_0x6657df){for(var _0x39e7eb=Object['keys'](_0x6657df),_0x48ed09=0x0;_0x48ed09<_0x39e7eb['length'];++_0x48ed09)null!=_0x6657df[_0x39e7eb[_0x48ed09]]&&(this[_0x39e7eb[_0x48ed09]]=_0x6657df[_0x39e7eb[_0x48ed09]]);}}return _0x22cadf['prototype']['id']='',_0x22cadf['prototype']['documentId']='',_0x22cadf['create']=function(_0x487232){return new _0x22cadf(_0x487232);},_0x22cadf['encode']=function(_0x2366be,_0x14443c){return _0x14443c||(_0x14443c=_0x2e8075['create']()),null!=_0x2366be['id']&&Object['hasOwnProperty']['call'](_0x2366be,'id')&&_0x14443c['uint32'](0xa)['string'](_0x2366be['id']),null!=_0x2366be['documentId']&&Object['hasOwnProperty']['call'](_0x2366be,'documentId')&&_0x14443c['uint32'](0x12)['string'](_0x2366be['documentId']),_0x14443c;},_0x22cadf['encodeDelimited']=function(_0x463030,_0x4a8fcd){return this['encode'](_0x463030,_0x4a8fcd)['ldelim']();},_0x22cadf['decode']=function(_0xdc25e2,_0x3a29ff,_0x3d36d8){_0xdc25e2 instanceof _0x5e9c2f||(_0xdc25e2=_0x5e9c2f['create'](_0xdc25e2));for(var _0x1f8a66=void 0x0===_0x3a29ff?_0xdc25e2['len']:_0xdc25e2['pos']+_0x3a29ff,_0x4baaea=new _0x1429da['TrackChangesGetSuggestionMessage']();_0xdc25e2['pos']<_0x1f8a66;){var _0x52c5dc=_0xdc25e2['uint32']();if(_0x52c5dc===_0x3d36d8)break;switch(_0x52c5dc>>>0x3){case 0x1:_0x4baaea['id']=_0xdc25e2['string']();break;case 0x2:_0x4baaea['documentId']=_0xdc25e2['string']();break;default:_0xdc25e2['skipType'](0x7&_0x52c5dc);}}return _0x4baaea;},_0x22cadf['decodeDelimited']=function(_0x9dc349){return _0x9dc349 instanceof _0x5e9c2f||(_0x9dc349=new _0x5e9c2f(_0x9dc349)),this['decode'](_0x9dc349,_0x9dc349['uint32']());},_0x22cadf['verify']=function(_0x464207){return'object'!=typeof _0x464207||null===_0x464207?'object\x20expected':null!=_0x464207['id']&&_0x464207['hasOwnProperty']('id')&&!_0x44b59b['isString'](_0x464207['id'])?'id:\x20string\x20expected':null!=_0x464207['documentId']&&_0x464207['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x464207['documentId'])?'documentId:\x20string\x20expected':null;},_0x22cadf['fromObject']=function(_0x4982ea){if(_0x4982ea instanceof _0x1429da['TrackChangesGetSuggestionMessage'])return _0x4982ea;var _0x3aeea2=new _0x1429da['TrackChangesGetSuggestionMessage']();return null!=_0x4982ea['id']&&(_0x3aeea2['id']=String(_0x4982ea['id'])),null!=_0x4982ea['documentId']&&(_0x3aeea2['documentId']=String(_0x4982ea['documentId'])),_0x3aeea2;},_0x22cadf['toObject']=function(_0x1e5056,_0x10db97){_0x10db97||(_0x10db97={});var _0x2d56ca={};return _0x10db97['defaults']&&(_0x2d56ca['id']='',_0x2d56ca['documentId']=''),null!=_0x1e5056['id']&&_0x1e5056['hasOwnProperty']('id')&&(_0x2d56ca['id']=_0x1e5056['id']),null!=_0x1e5056['documentId']&&_0x1e5056['hasOwnProperty']('documentId')&&(_0x2d56ca['documentId']=_0x1e5056['documentId']),_0x2d56ca;},_0x22cadf['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x22cadf['getTypeUrl']=function(_0x3bc2a8){return void 0x0===_0x3bc2a8&&(_0x3bc2a8='type.googleapis.com'),_0x3bc2a8+'/TrackChangesGetSuggestionMessage';},_0x22cadf;}()),_0x1429da['TrackChangesGetAllSuggestionMessage']=(function(){function _0x39a405(_0x454bf0){if(_0x454bf0){for(var _0x2ef5a8=Object['keys'](_0x454bf0),_0x25e04e=0x0;_0x25e04e<_0x2ef5a8['length'];++_0x25e04e)null!=_0x454bf0[_0x2ef5a8[_0x25e04e]]&&(this[_0x2ef5a8[_0x25e04e]]=_0x454bf0[_0x2ef5a8[_0x25e04e]]);}}return _0x39a405['prototype']['documentId']='',_0x39a405['create']=function(_0x2120c9){return new _0x39a405(_0x2120c9);},_0x39a405['encode']=function(_0x542aef,_0x2c69c1){return _0x2c69c1||(_0x2c69c1=_0x2e8075['create']()),null!=_0x542aef['documentId']&&Object['hasOwnProperty']['call'](_0x542aef,'documentId')&&_0x2c69c1['uint32'](0xa)['string'](_0x542aef['documentId']),_0x2c69c1;},_0x39a405['encodeDelimited']=function(_0x351113,_0x1bc759){return this['encode'](_0x351113,_0x1bc759)['ldelim']();},_0x39a405['decode']=function(_0x2f92d5,_0x52b93d,_0x4cfebf){_0x2f92d5 instanceof _0x5e9c2f||(_0x2f92d5=_0x5e9c2f['create'](_0x2f92d5));for(var _0x5364e2=void 0x0===_0x52b93d?_0x2f92d5['len']:_0x2f92d5['pos']+_0x52b93d,_0x1af74f=new _0x1429da['TrackChangesGetAllSuggestionMessage']();_0x2f92d5['pos']<_0x5364e2;){var _0x39c66c=_0x2f92d5['uint32']();if(_0x39c66c===_0x4cfebf)break;_0x39c66c>>>0x3==0x1?_0x1af74f['documentId']=_0x2f92d5['string']():_0x2f92d5['skipType'](0x7&_0x39c66c);}return _0x1af74f;},_0x39a405['decodeDelimited']=function(_0xc2be8d){return _0xc2be8d instanceof _0x5e9c2f||(_0xc2be8d=new _0x5e9c2f(_0xc2be8d)),this['decode'](_0xc2be8d,_0xc2be8d['uint32']());},_0x39a405['verify']=function(_0x37d063){return'object'!=typeof _0x37d063||null===_0x37d063?'object\x20expected':null!=_0x37d063['documentId']&&_0x37d063['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x37d063['documentId'])?'documentId:\x20string\x20expected':null;},_0x39a405['fromObject']=function(_0x42916b){if(_0x42916b instanceof _0x1429da['TrackChangesGetAllSuggestionMessage'])return _0x42916b;var _0x1b6630=new _0x1429da['TrackChangesGetAllSuggestionMessage']();return null!=_0x42916b['documentId']&&(_0x1b6630['documentId']=String(_0x42916b['documentId'])),_0x1b6630;},_0x39a405['toObject']=function(_0x565a48,_0x161e4e){_0x161e4e||(_0x161e4e={});var _0x49b2f3={};return _0x161e4e['defaults']&&(_0x49b2f3['documentId']=''),null!=_0x565a48['documentId']&&_0x565a48['hasOwnProperty']('documentId')&&(_0x49b2f3['documentId']=_0x565a48['documentId']),_0x49b2f3;},_0x39a405['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x39a405['getTypeUrl']=function(_0x51b06d){return void 0x0===_0x51b06d&&(_0x51b06d='type.googleapis.com'),_0x51b06d+'/TrackChangesGetAllSuggestionMessage';},_0x39a405;}()),_0x1429da['TrackChangesConnectMessage']=(function(){function _0x258a0d(_0x485514){if(_0x485514){for(var _0x3a7dec=Object['keys'](_0x485514),_0xeff044=0x0;_0xeff044<_0x3a7dec['length'];++_0xeff044)null!=_0x485514[_0x3a7dec[_0xeff044]]&&(this[_0x3a7dec[_0xeff044]]=_0x485514[_0x3a7dec[_0xeff044]]);}}return _0x258a0d['prototype']['documentId']='',_0x258a0d['create']=function(_0x5e497a){return new _0x258a0d(_0x5e497a);},_0x258a0d['encode']=function(_0x16c172,_0x4a703d){return _0x4a703d||(_0x4a703d=_0x2e8075['create']()),null!=_0x16c172['documentId']&&Object['hasOwnProperty']['call'](_0x16c172,'documentId')&&_0x4a703d['uint32'](0xa)['string'](_0x16c172['documentId']),_0x4a703d;},_0x258a0d['encodeDelimited']=function(_0x5b6844,_0x1a2266){return this['encode'](_0x5b6844,_0x1a2266)['ldelim']();},_0x258a0d['decode']=function(_0x423143,_0x4d8944,_0x703434){_0x423143 instanceof _0x5e9c2f||(_0x423143=_0x5e9c2f['create'](_0x423143));for(var _0x32f74d=void 0x0===_0x4d8944?_0x423143['len']:_0x423143['pos']+_0x4d8944,_0x59e59a=new _0x1429da['TrackChangesConnectMessage']();_0x423143['pos']<_0x32f74d;){var _0x120c24=_0x423143['uint32']();if(_0x120c24===_0x703434)break;_0x120c24>>>0x3==0x1?_0x59e59a['documentId']=_0x423143['string']():_0x423143['skipType'](0x7&_0x120c24);}return _0x59e59a;},_0x258a0d['decodeDelimited']=function(_0x1c1636){return _0x1c1636 instanceof _0x5e9c2f||(_0x1c1636=new _0x5e9c2f(_0x1c1636)),this['decode'](_0x1c1636,_0x1c1636['uint32']());},_0x258a0d['verify']=function(_0x21732e){return'object'!=typeof _0x21732e||null===_0x21732e?'object\x20expected':null!=_0x21732e['documentId']&&_0x21732e['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x21732e['documentId'])?'documentId:\x20string\x20expected':null;},_0x258a0d['fromObject']=function(_0x207dd3){if(_0x207dd3 instanceof _0x1429da['TrackChangesConnectMessage'])return _0x207dd3;var _0x19094d=new _0x1429da['TrackChangesConnectMessage']();return null!=_0x207dd3['documentId']&&(_0x19094d['documentId']=String(_0x207dd3['documentId'])),_0x19094d;},_0x258a0d['toObject']=function(_0x17a19b,_0x2b4945){_0x2b4945||(_0x2b4945={});var _0x3c5d60={};return _0x2b4945['defaults']&&(_0x3c5d60['documentId']=''),null!=_0x17a19b['documentId']&&_0x17a19b['hasOwnProperty']('documentId')&&(_0x3c5d60['documentId']=_0x17a19b['documentId']),_0x3c5d60;},_0x258a0d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x258a0d['getTypeUrl']=function(_0x18c151){return void 0x0===_0x18c151&&(_0x18c151='type.googleapis.com'),_0x18c151+'/TrackChangesConnectMessage';},_0x258a0d;}()),_0x1429da['TrackChangesBatchUpdateSuggestionsStateMessage']=(function(){function _0x256f81(_0x29e4ac){if(this['ids']=[],_0x29e4ac){for(var _0x2a4016=Object['keys'](_0x29e4ac),_0x1273c7=0x0;_0x1273c7<_0x2a4016['length'];++_0x1273c7)null!=_0x29e4ac[_0x2a4016[_0x1273c7]]&&(this[_0x2a4016[_0x1273c7]]=_0x29e4ac[_0x2a4016[_0x1273c7]]);}}return _0x256f81['prototype']['ids']=_0x44b59b['emptyArray'],_0x256f81['prototype']['documentId']='',_0x256f81['prototype']['state']='',_0x256f81['create']=function(_0x3a8429){return new _0x256f81(_0x3a8429);},_0x256f81['encode']=function(_0x25f1e4,_0x19b053){if(_0x19b053||(_0x19b053=_0x2e8075['create']()),null!=_0x25f1e4['ids']&&_0x25f1e4['ids']['length']){for(var _0x568569=0x0;_0x568569<_0x25f1e4['ids']['length'];++_0x568569)_0x19b053['uint32'](0xa)['string'](_0x25f1e4['ids'][_0x568569]);}return null!=_0x25f1e4['documentId']&&Object['hasOwnProperty']['call'](_0x25f1e4,'documentId')&&_0x19b053['uint32'](0x12)['string'](_0x25f1e4['documentId']),null!=_0x25f1e4['state']&&Object['hasOwnProperty']['call'](_0x25f1e4,'state')&&_0x19b053['uint32'](0x1a)['string'](_0x25f1e4['state']),_0x19b053;},_0x256f81['encodeDelimited']=function(_0x59b0f4,_0x5e5726){return this['encode'](_0x59b0f4,_0x5e5726)['ldelim']();},_0x256f81['decode']=function(_0x279e74,_0x49c66b,_0x425eae){_0x279e74 instanceof _0x5e9c2f||(_0x279e74=_0x5e9c2f['create'](_0x279e74));for(var _0x3794f9=void 0x0===_0x49c66b?_0x279e74['len']:_0x279e74['pos']+_0x49c66b,_0x43323c=new _0x1429da['TrackChangesBatchUpdateSuggestionsStateMessage']();_0x279e74['pos']<_0x3794f9;){var _0x319f42=_0x279e74['uint32']();if(_0x319f42===_0x425eae)break;switch(_0x319f42>>>0x3){case 0x1:_0x43323c['ids']&&_0x43323c['ids']['length']||(_0x43323c['ids']=[]),_0x43323c['ids']['push'](_0x279e74['string']());break;case 0x2:_0x43323c['documentId']=_0x279e74['string']();break;case 0x3:_0x43323c['state']=_0x279e74['string']();break;default:_0x279e74['skipType'](0x7&_0x319f42);}}return _0x43323c;},_0x256f81['decodeDelimited']=function(_0xa40794){return _0xa40794 instanceof _0x5e9c2f||(_0xa40794=new _0x5e9c2f(_0xa40794)),this['decode'](_0xa40794,_0xa40794['uint32']());},_0x256f81['verify']=function(_0x3cd210){if('object'!=typeof _0x3cd210||null===_0x3cd210)return'object\x20expected';if(null!=_0x3cd210['ids']&&_0x3cd210['hasOwnProperty']('ids')){if(!Array['isArray'](_0x3cd210['ids']))return'ids:\x20array\x20expected';for(var _0x19f487=0x0;_0x19f487<_0x3cd210['ids']['length'];++_0x19f487)if(!_0x44b59b['isString'](_0x3cd210['ids'][_0x19f487]))return'ids:\x20string[]\x20expected';}return null!=_0x3cd210['documentId']&&_0x3cd210['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x3cd210['documentId'])?'documentId:\x20string\x20expected':null!=_0x3cd210['state']&&_0x3cd210['hasOwnProperty']('state')&&!_0x44b59b['isString'](_0x3cd210['state'])?'state:\x20string\x20expected':null;},_0x256f81['fromObject']=function(_0x156a19){if(_0x156a19 instanceof _0x1429da['TrackChangesBatchUpdateSuggestionsStateMessage'])return _0x156a19;var _0xbfc188=new _0x1429da['TrackChangesBatchUpdateSuggestionsStateMessage']();if(_0x156a19['ids']){if(!Array['isArray'](_0x156a19['ids']))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage.ids:\x20array\x20expected');_0xbfc188['ids']=[];for(var _0x546c05=0x0;_0x546c05<_0x156a19['ids']['length'];++_0x546c05)_0xbfc188['ids'][_0x546c05]=String(_0x156a19['ids'][_0x546c05]);}return null!=_0x156a19['documentId']&&(_0xbfc188['documentId']=String(_0x156a19['documentId'])),null!=_0x156a19['state']&&(_0xbfc188['state']=String(_0x156a19['state'])),_0xbfc188;},_0x256f81['toObject']=function(_0x3c6e9b,_0x31402d){_0x31402d||(_0x31402d={});var _0x566cde={};if((_0x31402d['arrays']||_0x31402d['defaults'])&&(_0x566cde['ids']=[]),_0x31402d['defaults']&&(_0x566cde['documentId']='',_0x566cde['state']=''),_0x3c6e9b['ids']&&_0x3c6e9b['ids']['length']){_0x566cde['ids']=[];for(var _0x273806=0x0;_0x273806<_0x3c6e9b['ids']['length'];++_0x273806)_0x566cde['ids'][_0x273806]=_0x3c6e9b['ids'][_0x273806];}return null!=_0x3c6e9b['documentId']&&_0x3c6e9b['hasOwnProperty']('documentId')&&(_0x566cde['documentId']=_0x3c6e9b['documentId']),null!=_0x3c6e9b['state']&&_0x3c6e9b['hasOwnProperty']('state')&&(_0x566cde['state']=_0x3c6e9b['state']),_0x566cde;},_0x256f81['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x256f81['getTypeUrl']=function(_0x19fe08){return void 0x0===_0x19fe08&&(_0x19fe08='type.googleapis.com'),_0x19fe08+'/TrackChangesBatchUpdateSuggestionsStateMessage';},_0x256f81;}()),_0x1429da['TrackChangesAddSuggestionMessage']=(function(){function _0x5d54c1(_0x3af03f){if(_0x3af03f){for(var _0x1ff0f5=Object['keys'](_0x3af03f),_0x5a9b25=0x0;_0x5a9b25<_0x1ff0f5['length'];++_0x5a9b25)null!=_0x3af03f[_0x1ff0f5[_0x5a9b25]]&&(this[_0x1ff0f5[_0x5a9b25]]=_0x3af03f[_0x1ff0f5[_0x5a9b25]]);}}return _0x5d54c1['prototype']['id']='',_0x5d54c1['prototype']['documentId']='',_0x5d54c1['prototype']['type']='',_0x5d54c1['prototype']['data']='',_0x5d54c1['prototype']['originalSuggestionId']='',_0x5d54c1['prototype']['attributes']='',_0x5d54c1['create']=function(_0x4b7ed5){return new _0x5d54c1(_0x4b7ed5);},_0x5d54c1['encode']=function(_0x3e00c2,_0x532205){return _0x532205||(_0x532205=_0x2e8075['create']()),null!=_0x3e00c2['id']&&Object['hasOwnProperty']['call'](_0x3e00c2,'id')&&_0x532205['uint32'](0xa)['string'](_0x3e00c2['id']),null!=_0x3e00c2['documentId']&&Object['hasOwnProperty']['call'](_0x3e00c2,'documentId')&&_0x532205['uint32'](0x12)['string'](_0x3e00c2['documentId']),null!=_0x3e00c2['type']&&Object['hasOwnProperty']['call'](_0x3e00c2,'type')&&_0x532205['uint32'](0x1a)['string'](_0x3e00c2['type']),null!=_0x3e00c2['data']&&Object['hasOwnProperty']['call'](_0x3e00c2,'data')&&_0x532205['uint32'](0x22)['string'](_0x3e00c2['data']),null!=_0x3e00c2['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x3e00c2,'originalSuggestionId')&&_0x532205['uint32'](0x2a)['string'](_0x3e00c2['originalSuggestionId']),null!=_0x3e00c2['attributes']&&Object['hasOwnProperty']['call'](_0x3e00c2,'attributes')&&_0x532205['uint32'](0x32)['string'](_0x3e00c2['attributes']),_0x532205;},_0x5d54c1['encodeDelimited']=function(_0x3133ed,_0x4f4aaf){return this['encode'](_0x3133ed,_0x4f4aaf)['ldelim']();},_0x5d54c1['decode']=function(_0x35aa84,_0x1108ea,_0x11bb62){_0x35aa84 instanceof _0x5e9c2f||(_0x35aa84=_0x5e9c2f['create'](_0x35aa84));for(var _0x471466=void 0x0===_0x1108ea?_0x35aa84['len']:_0x35aa84['pos']+_0x1108ea,_0xa03d09=new _0x1429da['TrackChangesAddSuggestionMessage']();_0x35aa84['pos']<_0x471466;){var _0x3c19da=_0x35aa84['uint32']();if(_0x3c19da===_0x11bb62)break;switch(_0x3c19da>>>0x3){case 0x1:_0xa03d09['id']=_0x35aa84['string']();break;case 0x2:_0xa03d09['documentId']=_0x35aa84['string']();break;case 0x3:_0xa03d09['type']=_0x35aa84['string']();break;case 0x4:_0xa03d09['data']=_0x35aa84['string']();break;case 0x5:_0xa03d09['originalSuggestionId']=_0x35aa84['string']();break;case 0x6:_0xa03d09['attributes']=_0x35aa84['string']();break;default:_0x35aa84['skipType'](0x7&_0x3c19da);}}return _0xa03d09;},_0x5d54c1['decodeDelimited']=function(_0x332fe8){return _0x332fe8 instanceof _0x5e9c2f||(_0x332fe8=new _0x5e9c2f(_0x332fe8)),this['decode'](_0x332fe8,_0x332fe8['uint32']());},_0x5d54c1['verify']=function(_0x1f191c){return'object'!=typeof _0x1f191c||null===_0x1f191c?'object\x20expected':null!=_0x1f191c['id']&&_0x1f191c['hasOwnProperty']('id')&&!_0x44b59b['isString'](_0x1f191c['id'])?'id:\x20string\x20expected':null!=_0x1f191c['documentId']&&_0x1f191c['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x1f191c['documentId'])?'documentId:\x20string\x20expected':null!=_0x1f191c['type']&&_0x1f191c['hasOwnProperty']('type')&&!_0x44b59b['isString'](_0x1f191c['type'])?'type:\x20string\x20expected':null!=_0x1f191c['data']&&_0x1f191c['hasOwnProperty']('data')&&!_0x44b59b['isString'](_0x1f191c['data'])?'data:\x20string\x20expected':null!=_0x1f191c['originalSuggestionId']&&_0x1f191c['hasOwnProperty']('originalSuggestionId')&&!_0x44b59b['isString'](_0x1f191c['originalSuggestionId'])?'originalSuggestionId:\x20string\x20expected':null!=_0x1f191c['attributes']&&_0x1f191c['hasOwnProperty']('attributes')&&!_0x44b59b['isString'](_0x1f191c['attributes'])?'attributes:\x20string\x20expected':null;},_0x5d54c1['fromObject']=function(_0x2e0538){if(_0x2e0538 instanceof _0x1429da['TrackChangesAddSuggestionMessage'])return _0x2e0538;var _0xc5f258=new _0x1429da['TrackChangesAddSuggestionMessage']();return null!=_0x2e0538['id']&&(_0xc5f258['id']=String(_0x2e0538['id'])),null!=_0x2e0538['documentId']&&(_0xc5f258['documentId']=String(_0x2e0538['documentId'])),null!=_0x2e0538['type']&&(_0xc5f258['type']=String(_0x2e0538['type'])),null!=_0x2e0538['data']&&(_0xc5f258['data']=String(_0x2e0538['data'])),null!=_0x2e0538['originalSuggestionId']&&(_0xc5f258['originalSuggestionId']=String(_0x2e0538['originalSuggestionId'])),null!=_0x2e0538['attributes']&&(_0xc5f258['attributes']=String(_0x2e0538['attributes'])),_0xc5f258;},_0x5d54c1['toObject']=function(_0x113ae5,_0x170876){_0x170876||(_0x170876={});var _0xca3b63={};return _0x170876['defaults']&&(_0xca3b63['id']='',_0xca3b63['documentId']='',_0xca3b63['type']='',_0xca3b63['data']='',_0xca3b63['originalSuggestionId']='',_0xca3b63['attributes']=''),null!=_0x113ae5['id']&&_0x113ae5['hasOwnProperty']('id')&&(_0xca3b63['id']=_0x113ae5['id']),null!=_0x113ae5['documentId']&&_0x113ae5['hasOwnProperty']('documentId')&&(_0xca3b63['documentId']=_0x113ae5['documentId']),null!=_0x113ae5['type']&&_0x113ae5['hasOwnProperty']('type')&&(_0xca3b63['type']=_0x113ae5['type']),null!=_0x113ae5['data']&&_0x113ae5['hasOwnProperty']('data')&&(_0xca3b63['data']=_0x113ae5['data']),null!=_0x113ae5['originalSuggestionId']&&_0x113ae5['hasOwnProperty']('originalSuggestionId')&&(_0xca3b63['originalSuggestionId']=_0x113ae5['originalSuggestionId']),null!=_0x113ae5['attributes']&&_0x113ae5['hasOwnProperty']('attributes')&&(_0xca3b63['attributes']=_0x113ae5['attributes']),_0xca3b63;},_0x5d54c1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5d54c1['getTypeUrl']=function(_0x1a2f98){return void 0x0===_0x1a2f98&&(_0x1a2f98='type.googleapis.com'),_0x1a2f98+'/TrackChangesAddSuggestionMessage';},_0x5d54c1;}()),_0x1429da['SuggestionDescriptor']=(function(){function _0x5238cc(_0x3f06f6){if(_0x3f06f6){for(var _0x4c9de2=Object['keys'](_0x3f06f6),_0x68c394=0x0;_0x68c394<_0x4c9de2['length'];++_0x68c394)null!=_0x3f06f6[_0x4c9de2[_0x68c394]]&&(this[_0x4c9de2[_0x68c394]]=_0x3f06f6[_0x4c9de2[_0x68c394]]);}}return _0x5238cc['prototype']['id']='',_0x5238cc['prototype']['authorId']='',_0x5238cc['prototype']['type']='',_0x5238cc['prototype']['createdAt']='',_0x5238cc['prototype']['data']='',_0x5238cc['prototype']['hasComments']=!0x1,_0x5238cc['prototype']['state']='',_0x5238cc['prototype']['attributes']='',_0x5238cc['create']=function(_0x58e3b7){return new _0x5238cc(_0x58e3b7);},_0x5238cc['encode']=function(_0x18486a,_0xbaf6e1){return _0xbaf6e1||(_0xbaf6e1=_0x2e8075['create']()),null!=_0x18486a['id']&&Object['hasOwnProperty']['call'](_0x18486a,'id')&&_0xbaf6e1['uint32'](0xa)['string'](_0x18486a['id']),null!=_0x18486a['authorId']&&Object['hasOwnProperty']['call'](_0x18486a,'authorId')&&_0xbaf6e1['uint32'](0x12)['string'](_0x18486a['authorId']),null!=_0x18486a['type']&&Object['hasOwnProperty']['call'](_0x18486a,'type')&&_0xbaf6e1['uint32'](0x1a)['string'](_0x18486a['type']),null!=_0x18486a['createdAt']&&Object['hasOwnProperty']['call'](_0x18486a,'createdAt')&&_0xbaf6e1['uint32'](0x22)['string'](_0x18486a['createdAt']),null!=_0x18486a['data']&&Object['hasOwnProperty']['call'](_0x18486a,'data')&&_0xbaf6e1['uint32'](0x2a)['string'](_0x18486a['data']),null!=_0x18486a['hasComments']&&Object['hasOwnProperty']['call'](_0x18486a,'hasComments')&&_0xbaf6e1['uint32'](0x30)['bool'](_0x18486a['hasComments']),null!=_0x18486a['state']&&Object['hasOwnProperty']['call'](_0x18486a,'state')&&_0xbaf6e1['uint32'](0x3a)['string'](_0x18486a['state']),null!=_0x18486a['attributes']&&Object['hasOwnProperty']['call'](_0x18486a,'attributes')&&_0xbaf6e1['uint32'](0x42)['string'](_0x18486a['attributes']),_0xbaf6e1;},_0x5238cc['encodeDelimited']=function(_0x3a4583,_0x56057c){return this['encode'](_0x3a4583,_0x56057c)['ldelim']();},_0x5238cc['decode']=function(_0x2cd31a,_0x2c0af5,_0x3f36bc){_0x2cd31a instanceof _0x5e9c2f||(_0x2cd31a=_0x5e9c2f['create'](_0x2cd31a));for(var _0x2229a4=void 0x0===_0x2c0af5?_0x2cd31a['len']:_0x2cd31a['pos']+_0x2c0af5,_0x506d6f=new _0x1429da['SuggestionDescriptor']();_0x2cd31a['pos']<_0x2229a4;){var _0x270383=_0x2cd31a['uint32']();if(_0x270383===_0x3f36bc)break;switch(_0x270383>>>0x3){case 0x1:_0x506d6f['id']=_0x2cd31a['string']();break;case 0x2:_0x506d6f['authorId']=_0x2cd31a['string']();break;case 0x3:_0x506d6f['type']=_0x2cd31a['string']();break;case 0x4:_0x506d6f['createdAt']=_0x2cd31a['string']();break;case 0x5:_0x506d6f['data']=_0x2cd31a['string']();break;case 0x6:_0x506d6f['hasComments']=_0x2cd31a['bool']();break;case 0x7:_0x506d6f['state']=_0x2cd31a['string']();break;case 0x8:_0x506d6f['attributes']=_0x2cd31a['string']();break;default:_0x2cd31a['skipType'](0x7&_0x270383);}}return _0x506d6f;},_0x5238cc['decodeDelimited']=function(_0x4817b3){return _0x4817b3 instanceof _0x5e9c2f||(_0x4817b3=new _0x5e9c2f(_0x4817b3)),this['decode'](_0x4817b3,_0x4817b3['uint32']());},_0x5238cc['verify']=function(_0x897d65){return'object'!=typeof _0x897d65||null===_0x897d65?'object\x20expected':null!=_0x897d65['id']&&_0x897d65['hasOwnProperty']('id')&&!_0x44b59b['isString'](_0x897d65['id'])?'id:\x20string\x20expected':null!=_0x897d65['authorId']&&_0x897d65['hasOwnProperty']('authorId')&&!_0x44b59b['isString'](_0x897d65['authorId'])?'authorId:\x20string\x20expected':null!=_0x897d65['type']&&_0x897d65['hasOwnProperty']('type')&&!_0x44b59b['isString'](_0x897d65['type'])?'type:\x20string\x20expected':null!=_0x897d65['createdAt']&&_0x897d65['hasOwnProperty']('createdAt')&&!_0x44b59b['isString'](_0x897d65['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x897d65['data']&&_0x897d65['hasOwnProperty']('data')&&!_0x44b59b['isString'](_0x897d65['data'])?'data:\x20string\x20expected':null!=_0x897d65['hasComments']&&_0x897d65['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x897d65['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x897d65['state']&&_0x897d65['hasOwnProperty']('state')&&!_0x44b59b['isString'](_0x897d65['state'])?'state:\x20string\x20expected':null!=_0x897d65['attributes']&&_0x897d65['hasOwnProperty']('attributes')&&!_0x44b59b['isString'](_0x897d65['attributes'])?'attributes:\x20string\x20expected':null;},_0x5238cc['fromObject']=function(_0x3b2527){if(_0x3b2527 instanceof _0x1429da['SuggestionDescriptor'])return _0x3b2527;var _0x3bcbd1=new _0x1429da['SuggestionDescriptor']();return null!=_0x3b2527['id']&&(_0x3bcbd1['id']=String(_0x3b2527['id'])),null!=_0x3b2527['authorId']&&(_0x3bcbd1['authorId']=String(_0x3b2527['authorId'])),null!=_0x3b2527['type']&&(_0x3bcbd1['type']=String(_0x3b2527['type'])),null!=_0x3b2527['createdAt']&&(_0x3bcbd1['createdAt']=String(_0x3b2527['createdAt'])),null!=_0x3b2527['data']&&(_0x3bcbd1['data']=String(_0x3b2527['data'])),null!=_0x3b2527['hasComments']&&(_0x3bcbd1['hasComments']=Boolean(_0x3b2527['hasComments'])),null!=_0x3b2527['state']&&(_0x3bcbd1['state']=String(_0x3b2527['state'])),null!=_0x3b2527['attributes']&&(_0x3bcbd1['attributes']=String(_0x3b2527['attributes'])),_0x3bcbd1;},_0x5238cc['toObject']=function(_0x34cd13,_0x2f4272){_0x2f4272||(_0x2f4272={});var _0x1928ec={};return _0x2f4272['defaults']&&(_0x1928ec['id']='',_0x1928ec['authorId']='',_0x1928ec['type']='',_0x1928ec['createdAt']='',_0x1928ec['data']='',_0x1928ec['hasComments']=!0x1,_0x1928ec['state']='',_0x1928ec['attributes']=''),null!=_0x34cd13['id']&&_0x34cd13['hasOwnProperty']('id')&&(_0x1928ec['id']=_0x34cd13['id']),null!=_0x34cd13['authorId']&&_0x34cd13['hasOwnProperty']('authorId')&&(_0x1928ec['authorId']=_0x34cd13['authorId']),null!=_0x34cd13['type']&&_0x34cd13['hasOwnProperty']('type')&&(_0x1928ec['type']=_0x34cd13['type']),null!=_0x34cd13['createdAt']&&_0x34cd13['hasOwnProperty']('createdAt')&&(_0x1928ec['createdAt']=_0x34cd13['createdAt']),null!=_0x34cd13['data']&&_0x34cd13['hasOwnProperty']('data')&&(_0x1928ec['data']=_0x34cd13['data']),null!=_0x34cd13['hasComments']&&_0x34cd13['hasOwnProperty']('hasComments')&&(_0x1928ec['hasComments']=_0x34cd13['hasComments']),null!=_0x34cd13['state']&&_0x34cd13['hasOwnProperty']('state')&&(_0x1928ec['state']=_0x34cd13['state']),null!=_0x34cd13['attributes']&&_0x34cd13['hasOwnProperty']('attributes')&&(_0x1928ec['attributes']=_0x34cd13['attributes']),_0x1928ec;},_0x5238cc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5238cc['getTypeUrl']=function(_0x1cdb8c){return void 0x0===_0x1cdb8c&&(_0x1cdb8c='type.googleapis.com'),_0x1cdb8c+'/SuggestionDescriptor';},_0x5238cc;}()),_0x1429da['SessionsConnectResponse']=(function(){function _0x578b6c(_0x1aa0cd){if(this['sockets']=[],_0x1aa0cd){for(var _0xb5c55a=Object['keys'](_0x1aa0cd),_0x2283c9=0x0;_0x2283c9<_0xb5c55a['length'];++_0x2283c9)null!=_0x1aa0cd[_0xb5c55a[_0x2283c9]]&&(this[_0xb5c55a[_0x2283c9]]=_0x1aa0cd[_0xb5c55a[_0x2283c9]]);}}return _0x578b6c['prototype']['channel']='',_0x578b6c['prototype']['sockets']=_0x44b59b['emptyArray'],_0x578b6c['create']=function(_0x3c9498){return new _0x578b6c(_0x3c9498);},_0x578b6c['encode']=function(_0x3b2fed,_0x43aca5){if(_0x43aca5||(_0x43aca5=_0x2e8075['create']()),null!=_0x3b2fed['channel']&&Object['hasOwnProperty']['call'](_0x3b2fed,'channel')&&_0x43aca5['uint32'](0xa)['string'](_0x3b2fed['channel']),null!=_0x3b2fed['sockets']&&_0x3b2fed['sockets']['length']){for(var _0x5a1892=0x0;_0x5a1892<_0x3b2fed['sockets']['length'];++_0x5a1892)_0x1429da['SessionsSocketDescriptor']['encode'](_0x3b2fed['sockets'][_0x5a1892],_0x43aca5['uint32'](0x12)['fork']())['ldelim']();}return _0x43aca5;},_0x578b6c['encodeDelimited']=function(_0x28fa5c,_0x30ba16){return this['encode'](_0x28fa5c,_0x30ba16)['ldelim']();},_0x578b6c['decode']=function(_0x332a0a,_0x281d37,_0x5a363b){_0x332a0a instanceof _0x5e9c2f||(_0x332a0a=_0x5e9c2f['create'](_0x332a0a));for(var _0x775a08=void 0x0===_0x281d37?_0x332a0a['len']:_0x332a0a['pos']+_0x281d37,_0x43eff1=new _0x1429da['SessionsConnectResponse']();_0x332a0a['pos']<_0x775a08;){var _0x5e6e9e=_0x332a0a['uint32']();if(_0x5e6e9e===_0x5a363b)break;switch(_0x5e6e9e>>>0x3){case 0x1:_0x43eff1['channel']=_0x332a0a['string']();break;case 0x2:_0x43eff1['sockets']&&_0x43eff1['sockets']['length']||(_0x43eff1['sockets']=[]),_0x43eff1['sockets']['push'](_0x1429da['SessionsSocketDescriptor']['decode'](_0x332a0a,_0x332a0a['uint32']()));break;default:_0x332a0a['skipType'](0x7&_0x5e6e9e);}}return _0x43eff1;},_0x578b6c['decodeDelimited']=function(_0x1626c8){return _0x1626c8 instanceof _0x5e9c2f||(_0x1626c8=new _0x5e9c2f(_0x1626c8)),this['decode'](_0x1626c8,_0x1626c8['uint32']());},_0x578b6c['verify']=function(_0x1a89ec){if('object'!=typeof _0x1a89ec||null===_0x1a89ec)return'object\x20expected';if(null!=_0x1a89ec['channel']&&_0x1a89ec['hasOwnProperty']('channel')&&!_0x44b59b['isString'](_0x1a89ec['channel']))return'channel:\x20string\x20expected';if(null!=_0x1a89ec['sockets']&&_0x1a89ec['hasOwnProperty']('sockets')){if(!Array['isArray'](_0x1a89ec['sockets']))return'sockets:\x20array\x20expected';for(var _0x296549=0x0;_0x296549<_0x1a89ec['sockets']['length'];++_0x296549){var _0x428288=_0x1429da['SessionsSocketDescriptor']['verify'](_0x1a89ec['sockets'][_0x296549]);if(_0x428288)return'sockets.'+_0x428288;}}return null;},_0x578b6c['fromObject']=function(_0x2f1688){if(_0x2f1688 instanceof _0x1429da['SessionsConnectResponse'])return _0x2f1688;var _0x2749ae=new _0x1429da['SessionsConnectResponse']();if(null!=_0x2f1688['channel']&&(_0x2749ae['channel']=String(_0x2f1688['channel'])),_0x2f1688['sockets']){if(!Array['isArray'](_0x2f1688['sockets']))throw TypeError('.SessionsConnectResponse.sockets:\x20array\x20expected');_0x2749ae['sockets']=[];for(var _0x218b45=0x0;_0x218b45<_0x2f1688['sockets']['length'];++_0x218b45){if('object'!=typeof _0x2f1688['sockets'][_0x218b45])throw TypeError('.SessionsConnectResponse.sockets:\x20object\x20expected');_0x2749ae['sockets'][_0x218b45]=_0x1429da['SessionsSocketDescriptor']['fromObject'](_0x2f1688['sockets'][_0x218b45]);}}return _0x2749ae;},_0x578b6c['toObject']=function(_0x259059,_0x3a4ef8){_0x3a4ef8||(_0x3a4ef8={});var _0x4bf566={};if((_0x3a4ef8['arrays']||_0x3a4ef8['defaults'])&&(_0x4bf566['sockets']=[]),_0x3a4ef8['defaults']&&(_0x4bf566['channel']=''),null!=_0x259059['channel']&&_0x259059['hasOwnProperty']('channel')&&(_0x4bf566['channel']=_0x259059['channel']),_0x259059['sockets']&&_0x259059['sockets']['length']){_0x4bf566['sockets']=[];for(var _0x549424=0x0;_0x549424<_0x259059['sockets']['length'];++_0x549424)_0x4bf566['sockets'][_0x549424]=_0x1429da['SessionsSocketDescriptor']['toObject'](_0x259059['sockets'][_0x549424],_0x3a4ef8);}return _0x4bf566;},_0x578b6c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x578b6c['getTypeUrl']=function(_0x55ae4e){return void 0x0===_0x55ae4e&&(_0x55ae4e='type.googleapis.com'),_0x55ae4e+'/SessionsConnectResponse';},_0x578b6c;}()),_0x1429da['SocketDisconnectMessage']=(function(){function _0x56157c(_0x25653d){if(_0x25653d){for(var _0x2fd294=Object['keys'](_0x25653d),_0x1ccf78=0x0;_0x1ccf78<_0x2fd294['length'];++_0x1ccf78)null!=_0x25653d[_0x2fd294[_0x1ccf78]]&&(this[_0x2fd294[_0x1ccf78]]=_0x25653d[_0x2fd294[_0x1ccf78]]);}}return _0x56157c['prototype']['id']='',_0x56157c['create']=function(_0x3a861f){return new _0x56157c(_0x3a861f);},_0x56157c['encode']=function(_0x2a82e1,_0x7cdd25){return _0x7cdd25||(_0x7cdd25=_0x2e8075['create']()),null!=_0x2a82e1['id']&&Object['hasOwnProperty']['call'](_0x2a82e1,'id')&&_0x7cdd25['uint32'](0xa)['string'](_0x2a82e1['id']),_0x7cdd25;},_0x56157c['encodeDelimited']=function(_0x3df6b4,_0x47eb3f){return this['encode'](_0x3df6b4,_0x47eb3f)['ldelim']();},_0x56157c['decode']=function(_0x22b35f,_0x42b29c,_0x5aeebf){_0x22b35f instanceof _0x5e9c2f||(_0x22b35f=_0x5e9c2f['create'](_0x22b35f));for(var _0x1797de=void 0x0===_0x42b29c?_0x22b35f['len']:_0x22b35f['pos']+_0x42b29c,_0x5e1653=new _0x1429da['SocketDisconnectMessage']();_0x22b35f['pos']<_0x1797de;){var _0x34117e=_0x22b35f['uint32']();if(_0x34117e===_0x5aeebf)break;_0x34117e>>>0x3==0x1?_0x5e1653['id']=_0x22b35f['string']():_0x22b35f['skipType'](0x7&_0x34117e);}return _0x5e1653;},_0x56157c['decodeDelimited']=function(_0x438feb){return _0x438feb instanceof _0x5e9c2f||(_0x438feb=new _0x5e9c2f(_0x438feb)),this['decode'](_0x438feb,_0x438feb['uint32']());},_0x56157c['verify']=function(_0x1e9061){return'object'!=typeof _0x1e9061||null===_0x1e9061?'object\x20expected':null!=_0x1e9061['id']&&_0x1e9061['hasOwnProperty']('id')&&!_0x44b59b['isString'](_0x1e9061['id'])?'id:\x20string\x20expected':null;},_0x56157c['fromObject']=function(_0x3b85a9){if(_0x3b85a9 instanceof _0x1429da['SocketDisconnectMessage'])return _0x3b85a9;var _0x296132=new _0x1429da['SocketDisconnectMessage']();return null!=_0x3b85a9['id']&&(_0x296132['id']=String(_0x3b85a9['id'])),_0x296132;},_0x56157c['toObject']=function(_0x3d4b6e,_0x5dbdd0){_0x5dbdd0||(_0x5dbdd0={});var _0x29a9fa={};return _0x5dbdd0['defaults']&&(_0x29a9fa['id']=''),null!=_0x3d4b6e['id']&&_0x3d4b6e['hasOwnProperty']('id')&&(_0x29a9fa['id']=_0x3d4b6e['id']),_0x29a9fa;},_0x56157c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x56157c['getTypeUrl']=function(_0x320990){return void 0x0===_0x320990&&(_0x320990='type.googleapis.com'),_0x320990+'/SocketDisconnectMessage';},_0x56157c;}()),_0x1429da['SocketConnectMessage']=(function(){function _0x330b9c(_0x4ae882){if(this['permissions']=[],_0x4ae882){for(var _0x364cba=Object['keys'](_0x4ae882),_0x5a7249=0x0;_0x5a7249<_0x364cba['length'];++_0x5a7249)null!=_0x4ae882[_0x364cba[_0x5a7249]]&&(this[_0x364cba[_0x5a7249]]=_0x4ae882[_0x364cba[_0x5a7249]]);}}return _0x330b9c['prototype']['id']='',_0x330b9c['prototype']['userId']='',_0x330b9c['prototype']['role']='',_0x330b9c['prototype']['permissions']=_0x44b59b['emptyArray'],_0x330b9c['create']=function(_0x2b2f26){return new _0x330b9c(_0x2b2f26);},_0x330b9c['encode']=function(_0x44f9fc,_0x451160){if(_0x451160||(_0x451160=_0x2e8075['create']()),null!=_0x44f9fc['id']&&Object['hasOwnProperty']['call'](_0x44f9fc,'id')&&_0x451160['uint32'](0xa)['string'](_0x44f9fc['id']),null!=_0x44f9fc['userId']&&Object['hasOwnProperty']['call'](_0x44f9fc,'userId')&&_0x451160['uint32'](0x12)['string'](_0x44f9fc['userId']),null!=_0x44f9fc['role']&&Object['hasOwnProperty']['call'](_0x44f9fc,'role')&&_0x451160['uint32'](0x1a)['string'](_0x44f9fc['role']),null!=_0x44f9fc['permissions']&&_0x44f9fc['permissions']['length']){for(var _0xbd768c=0x0;_0xbd768c<_0x44f9fc['permissions']['length'];++_0xbd768c)_0x451160['uint32'](0x22)['string'](_0x44f9fc['permissions'][_0xbd768c]);}return _0x451160;},_0x330b9c['encodeDelimited']=function(_0x1320b2,_0x8232af){return this['encode'](_0x1320b2,_0x8232af)['ldelim']();},_0x330b9c['decode']=function(_0x39dfc2,_0x3cb409,_0x1de6d4){_0x39dfc2 instanceof _0x5e9c2f||(_0x39dfc2=_0x5e9c2f['create'](_0x39dfc2));for(var _0x2d2c34=void 0x0===_0x3cb409?_0x39dfc2['len']:_0x39dfc2['pos']+_0x3cb409,_0x28e7a9=new _0x1429da['SocketConnectMessage']();_0x39dfc2['pos']<_0x2d2c34;){var _0x58ac11=_0x39dfc2['uint32']();if(_0x58ac11===_0x1de6d4)break;switch(_0x58ac11>>>0x3){case 0x1:_0x28e7a9['id']=_0x39dfc2['string']();break;case 0x2:_0x28e7a9['userId']=_0x39dfc2['string']();break;case 0x3:_0x28e7a9['role']=_0x39dfc2['string']();break;case 0x4:_0x28e7a9['permissions']&&_0x28e7a9['permissions']['length']||(_0x28e7a9['permissions']=[]),_0x28e7a9['permissions']['push'](_0x39dfc2['string']());break;default:_0x39dfc2['skipType'](0x7&_0x58ac11);}}return _0x28e7a9;},_0x330b9c['decodeDelimited']=function(_0x96e7ae){return _0x96e7ae instanceof _0x5e9c2f||(_0x96e7ae=new _0x5e9c2f(_0x96e7ae)),this['decode'](_0x96e7ae,_0x96e7ae['uint32']());},_0x330b9c['verify']=function(_0x445091){if('object'!=typeof _0x445091||null===_0x445091)return'object\x20expected';if(null!=_0x445091['id']&&_0x445091['hasOwnProperty']('id')&&!_0x44b59b['isString'](_0x445091['id']))return'id:\x20string\x20expected';if(null!=_0x445091['userId']&&_0x445091['hasOwnProperty']('userId')&&!_0x44b59b['isString'](_0x445091['userId']))return'userId:\x20string\x20expected';if(null!=_0x445091['role']&&_0x445091['hasOwnProperty']('role')&&!_0x44b59b['isString'](_0x445091['role']))return'role:\x20string\x20expected';if(null!=_0x445091['permissions']&&_0x445091['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x445091['permissions']))return'permissions:\x20array\x20expected';for(var _0x51ab52=0x0;_0x51ab52<_0x445091['permissions']['length'];++_0x51ab52)if(!_0x44b59b['isString'](_0x445091['permissions'][_0x51ab52]))return'permissions:\x20string[]\x20expected';}return null;},_0x330b9c['fromObject']=function(_0x442017){if(_0x442017 instanceof _0x1429da['SocketConnectMessage'])return _0x442017;var _0x4e5f15=new _0x1429da['SocketConnectMessage']();if(null!=_0x442017['id']&&(_0x4e5f15['id']=String(_0x442017['id'])),null!=_0x442017['userId']&&(_0x4e5f15['userId']=String(_0x442017['userId'])),null!=_0x442017['role']&&(_0x4e5f15['role']=String(_0x442017['role'])),_0x442017['permissions']){if(!Array['isArray'](_0x442017['permissions']))throw TypeError('.SocketConnectMessage.permissions:\x20array\x20expected');_0x4e5f15['permissions']=[];for(var _0x4d85c9=0x0;_0x4d85c9<_0x442017['permissions']['length'];++_0x4d85c9)_0x4e5f15['permissions'][_0x4d85c9]=String(_0x442017['permissions'][_0x4d85c9]);}return _0x4e5f15;},_0x330b9c['toObject']=function(_0x5508ad,_0x33f27c){_0x33f27c||(_0x33f27c={});var _0x54ed53={};if((_0x33f27c['arrays']||_0x33f27c['defaults'])&&(_0x54ed53['permissions']=[]),_0x33f27c['defaults']&&(_0x54ed53['id']='',_0x54ed53['userId']='',_0x54ed53['role']=''),null!=_0x5508ad['id']&&_0x5508ad['hasOwnProperty']('id')&&(_0x54ed53['id']=_0x5508ad['id']),null!=_0x5508ad['userId']&&_0x5508ad['hasOwnProperty']('userId')&&(_0x54ed53['userId']=_0x5508ad['userId']),null!=_0x5508ad['role']&&_0x5508ad['hasOwnProperty']('role')&&(_0x54ed53['role']=_0x5508ad['role']),_0x5508ad['permissions']&&_0x5508ad['permissions']['length']){_0x54ed53['permissions']=[];for(var _0x7ba183=0x0;_0x7ba183<_0x5508ad['permissions']['length'];++_0x7ba183)_0x54ed53['permissions'][_0x7ba183]=_0x5508ad['permissions'][_0x7ba183];}return _0x54ed53;},_0x330b9c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x330b9c['getTypeUrl']=function(_0xed860c){return void 0x0===_0xed860c&&(_0xed860c='type.googleapis.com'),_0xed860c+'/SocketConnectMessage';},_0x330b9c;}()),_0x1429da['SessionsConnectMessage']=(function(){function _0x161bbe(_0x4de3ee){if(_0x4de3ee){for(var _0x43620a=Object['keys'](_0x4de3ee),_0x4aeeff=0x0;_0x4aeeff<_0x43620a['length'];++_0x4aeeff)null!=_0x4de3ee[_0x43620a[_0x4aeeff]]&&(this[_0x43620a[_0x4aeeff]]=_0x4de3ee[_0x43620a[_0x4aeeff]]);}}return _0x161bbe['prototype']['id']='',_0x161bbe['prototype']['sessionType']=0x0,_0x161bbe['create']=function(_0x4019c6){return new _0x161bbe(_0x4019c6);},_0x161bbe['encode']=function(_0x147cf0,_0xeacebb){return _0xeacebb||(_0xeacebb=_0x2e8075['create']()),null!=_0x147cf0['id']&&Object['hasOwnProperty']['call'](_0x147cf0,'id')&&_0xeacebb['uint32'](0xa)['string'](_0x147cf0['id']),null!=_0x147cf0['sessionType']&&Object['hasOwnProperty']['call'](_0x147cf0,'sessionType')&&_0xeacebb['uint32'](0x10)['uint32'](_0x147cf0['sessionType']),_0xeacebb;},_0x161bbe['encodeDelimited']=function(_0x10b786,_0x39aea6){return this['encode'](_0x10b786,_0x39aea6)['ldelim']();},_0x161bbe['decode']=function(_0x390190,_0x578bd6,_0x5e7dd5){_0x390190 instanceof _0x5e9c2f||(_0x390190=_0x5e9c2f['create'](_0x390190));for(var _0x25e795=void 0x0===_0x578bd6?_0x390190['len']:_0x390190['pos']+_0x578bd6,_0x2c0b6c=new _0x1429da['SessionsConnectMessage']();_0x390190['pos']<_0x25e795;){var _0x47e4c9=_0x390190['uint32']();if(_0x47e4c9===_0x5e7dd5)break;switch(_0x47e4c9>>>0x3){case 0x1:_0x2c0b6c['id']=_0x390190['string']();break;case 0x2:_0x2c0b6c['sessionType']=_0x390190['uint32']();break;default:_0x390190['skipType'](0x7&_0x47e4c9);}}return _0x2c0b6c;},_0x161bbe['decodeDelimited']=function(_0x32326d){return _0x32326d instanceof _0x5e9c2f||(_0x32326d=new _0x5e9c2f(_0x32326d)),this['decode'](_0x32326d,_0x32326d['uint32']());},_0x161bbe['verify']=function(_0x4b8342){return'object'!=typeof _0x4b8342||null===_0x4b8342?'object\x20expected':null!=_0x4b8342['id']&&_0x4b8342['hasOwnProperty']('id')&&!_0x44b59b['isString'](_0x4b8342['id'])?'id:\x20string\x20expected':null!=_0x4b8342['sessionType']&&_0x4b8342['hasOwnProperty']('sessionType')&&!_0x44b59b['isInteger'](_0x4b8342['sessionType'])?'sessionType:\x20integer\x20expected':null;},_0x161bbe['fromObject']=function(_0x4de8b0){if(_0x4de8b0 instanceof _0x1429da['SessionsConnectMessage'])return _0x4de8b0;var _0x2ccffc=new _0x1429da['SessionsConnectMessage']();return null!=_0x4de8b0['id']&&(_0x2ccffc['id']=String(_0x4de8b0['id'])),null!=_0x4de8b0['sessionType']&&(_0x2ccffc['sessionType']=_0x4de8b0['sessionType']>>>0x0),_0x2ccffc;},_0x161bbe['toObject']=function(_0x3b6f4d,_0x3b9e1e){_0x3b9e1e||(_0x3b9e1e={});var _0x49c667={};return _0x3b9e1e['defaults']&&(_0x49c667['id']='',_0x49c667['sessionType']=0x0),null!=_0x3b6f4d['id']&&_0x3b6f4d['hasOwnProperty']('id')&&(_0x49c667['id']=_0x3b6f4d['id']),null!=_0x3b6f4d['sessionType']&&_0x3b6f4d['hasOwnProperty']('sessionType')&&(_0x49c667['sessionType']=_0x3b6f4d['sessionType']),_0x49c667;},_0x161bbe['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x161bbe['getTypeUrl']=function(_0x1c4814){return void 0x0===_0x1c4814&&(_0x1c4814='type.googleapis.com'),_0x1c4814+'/SessionsConnectMessage';},_0x161bbe;}()),_0x1429da['SessionsSocketDescriptor']=(function(){function _0x70ac5b(_0x33825c){if(this['permissions']=[],_0x33825c){for(var _0x3709d7=Object['keys'](_0x33825c),_0x9b570a=0x0;_0x9b570a<_0x3709d7['length'];++_0x9b570a)null!=_0x33825c[_0x3709d7[_0x9b570a]]&&(this[_0x3709d7[_0x9b570a]]=_0x33825c[_0x3709d7[_0x9b570a]]);}}return _0x70ac5b['prototype']['session']='',_0x70ac5b['prototype']['user']='',_0x70ac5b['prototype']['role']='',_0x70ac5b['prototype']['permissions']=_0x44b59b['emptyArray'],_0x70ac5b['create']=function(_0x440b0f){return new _0x70ac5b(_0x440b0f);},_0x70ac5b['encode']=function(_0x50a130,_0xb45ffe){if(_0xb45ffe||(_0xb45ffe=_0x2e8075['create']()),null!=_0x50a130['session']&&Object['hasOwnProperty']['call'](_0x50a130,'session')&&_0xb45ffe['uint32'](0xa)['string'](_0x50a130['session']),null!=_0x50a130['user']&&Object['hasOwnProperty']['call'](_0x50a130,'user')&&_0xb45ffe['uint32'](0x12)['string'](_0x50a130['user']),null!=_0x50a130['role']&&Object['hasOwnProperty']['call'](_0x50a130,'role')&&_0xb45ffe['uint32'](0x1a)['string'](_0x50a130['role']),null!=_0x50a130['permissions']&&_0x50a130['permissions']['length']){for(var _0x2a7c04=0x0;_0x2a7c04<_0x50a130['permissions']['length'];++_0x2a7c04)_0xb45ffe['uint32'](0x22)['string'](_0x50a130['permissions'][_0x2a7c04]);}return _0xb45ffe;},_0x70ac5b['encodeDelimited']=function(_0x545dce,_0x19aeab){return this['encode'](_0x545dce,_0x19aeab)['ldelim']();},_0x70ac5b['decode']=function(_0x19657a,_0x29883a,_0x1171a0){_0x19657a instanceof _0x5e9c2f||(_0x19657a=_0x5e9c2f['create'](_0x19657a));for(var _0x42dbe1=void 0x0===_0x29883a?_0x19657a['len']:_0x19657a['pos']+_0x29883a,_0x12e554=new _0x1429da['SessionsSocketDescriptor']();_0x19657a['pos']<_0x42dbe1;){var _0x5a6616=_0x19657a['uint32']();if(_0x5a6616===_0x1171a0)break;switch(_0x5a6616>>>0x3){case 0x1:_0x12e554['session']=_0x19657a['string']();break;case 0x2:_0x12e554['user']=_0x19657a['string']();break;case 0x3:_0x12e554['role']=_0x19657a['string']();break;case 0x4:_0x12e554['permissions']&&_0x12e554['permissions']['length']||(_0x12e554['permissions']=[]),_0x12e554['permissions']['push'](_0x19657a['string']());break;default:_0x19657a['skipType'](0x7&_0x5a6616);}}return _0x12e554;},_0x70ac5b['decodeDelimited']=function(_0x382940){return _0x382940 instanceof _0x5e9c2f||(_0x382940=new _0x5e9c2f(_0x382940)),this['decode'](_0x382940,_0x382940['uint32']());},_0x70ac5b['verify']=function(_0x370d7c){if('object'!=typeof _0x370d7c||null===_0x370d7c)return'object\x20expected';if(null!=_0x370d7c['session']&&_0x370d7c['hasOwnProperty']('session')&&!_0x44b59b['isString'](_0x370d7c['session']))return'session:\x20string\x20expected';if(null!=_0x370d7c['user']&&_0x370d7c['hasOwnProperty']('user')&&!_0x44b59b['isString'](_0x370d7c['user']))return'user:\x20string\x20expected';if(null!=_0x370d7c['role']&&_0x370d7c['hasOwnProperty']('role')&&!_0x44b59b['isString'](_0x370d7c['role']))return'role:\x20string\x20expected';if(null!=_0x370d7c['permissions']&&_0x370d7c['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x370d7c['permissions']))return'permissions:\x20array\x20expected';for(var _0xea5ba5=0x0;_0xea5ba5<_0x370d7c['permissions']['length'];++_0xea5ba5)if(!_0x44b59b['isString'](_0x370d7c['permissions'][_0xea5ba5]))return'permissions:\x20string[]\x20expected';}return null;},_0x70ac5b['fromObject']=function(_0x31a4f0){if(_0x31a4f0 instanceof _0x1429da['SessionsSocketDescriptor'])return _0x31a4f0;var _0x25f290=new _0x1429da['SessionsSocketDescriptor']();if(null!=_0x31a4f0['session']&&(_0x25f290['session']=String(_0x31a4f0['session'])),null!=_0x31a4f0['user']&&(_0x25f290['user']=String(_0x31a4f0['user'])),null!=_0x31a4f0['role']&&(_0x25f290['role']=String(_0x31a4f0['role'])),_0x31a4f0['permissions']){if(!Array['isArray'](_0x31a4f0['permissions']))throw TypeError('.SessionsSocketDescriptor.permissions:\x20array\x20expected');_0x25f290['permissions']=[];for(var _0x2f8fd6=0x0;_0x2f8fd6<_0x31a4f0['permissions']['length'];++_0x2f8fd6)_0x25f290['permissions'][_0x2f8fd6]=String(_0x31a4f0['permissions'][_0x2f8fd6]);}return _0x25f290;},_0x70ac5b['toObject']=function(_0x2882d8,_0x28daa2){_0x28daa2||(_0x28daa2={});var _0x537756={};if((_0x28daa2['arrays']||_0x28daa2['defaults'])&&(_0x537756['permissions']=[]),_0x28daa2['defaults']&&(_0x537756['session']='',_0x537756['user']='',_0x537756['role']=''),null!=_0x2882d8['session']&&_0x2882d8['hasOwnProperty']('session')&&(_0x537756['session']=_0x2882d8['session']),null!=_0x2882d8['user']&&_0x2882d8['hasOwnProperty']('user')&&(_0x537756['user']=_0x2882d8['user']),null!=_0x2882d8['role']&&_0x2882d8['hasOwnProperty']('role')&&(_0x537756['role']=_0x2882d8['role']),_0x2882d8['permissions']&&_0x2882d8['permissions']['length']){_0x537756['permissions']=[];for(var _0x229d39=0x0;_0x229d39<_0x2882d8['permissions']['length'];++_0x229d39)_0x537756['permissions'][_0x229d39]=_0x2882d8['permissions'][_0x229d39];}return _0x537756;},_0x70ac5b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x70ac5b['getTypeUrl']=function(_0x2401b1){return void 0x0===_0x2401b1&&(_0x2401b1='type.googleapis.com'),_0x2401b1+'/SessionsSocketDescriptor';},_0x70ac5b;}()),_0x1429da['RevisionHistoryUpdateRevisionsResponse']=(function(){function _0x309d06(_0x5dc50f){if(_0x5dc50f){for(var _0x15f459=Object['keys'](_0x5dc50f),_0x187937=0x0;_0x187937<_0x15f459['length'];++_0x187937)null!=_0x5dc50f[_0x15f459[_0x187937]]&&(this[_0x15f459[_0x187937]]=_0x5dc50f[_0x15f459[_0x187937]]);}}return _0x309d06['prototype']['requestId']=0x0,_0x309d06['create']=function(_0x29e48d){return new _0x309d06(_0x29e48d);},_0x309d06['encode']=function(_0x36d057,_0x2aade5){return _0x2aade5||(_0x2aade5=_0x2e8075['create']()),null!=_0x36d057['requestId']&&Object['hasOwnProperty']['call'](_0x36d057,'requestId')&&_0x2aade5['uint32'](0x8)['uint32'](_0x36d057['requestId']),_0x2aade5;},_0x309d06['encodeDelimited']=function(_0x53c08f,_0x5d0519){return this['encode'](_0x53c08f,_0x5d0519)['ldelim']();},_0x309d06['decode']=function(_0x45a872,_0x39e6b9,_0x1b8f82){_0x45a872 instanceof _0x5e9c2f||(_0x45a872=_0x5e9c2f['create'](_0x45a872));for(var _0x13e02d=void 0x0===_0x39e6b9?_0x45a872['len']:_0x45a872['pos']+_0x39e6b9,_0x4a5242=new _0x1429da['RevisionHistoryUpdateRevisionsResponse']();_0x45a872['pos']<_0x13e02d;){var _0x384a7f=_0x45a872['uint32']();if(_0x384a7f===_0x1b8f82)break;_0x384a7f>>>0x3==0x1?_0x4a5242['requestId']=_0x45a872['uint32']():_0x45a872['skipType'](0x7&_0x384a7f);}return _0x4a5242;},_0x309d06['decodeDelimited']=function(_0x1f4679){return _0x1f4679 instanceof _0x5e9c2f||(_0x1f4679=new _0x5e9c2f(_0x1f4679)),this['decode'](_0x1f4679,_0x1f4679['uint32']());},_0x309d06['verify']=function(_0x345a01){return'object'!=typeof _0x345a01||null===_0x345a01?'object\x20expected':null!=_0x345a01['requestId']&&_0x345a01['hasOwnProperty']('requestId')&&!_0x44b59b['isInteger'](_0x345a01['requestId'])?'requestId:\x20integer\x20expected':null;},_0x309d06['fromObject']=function(_0x3dd88f){if(_0x3dd88f instanceof _0x1429da['RevisionHistoryUpdateRevisionsResponse'])return _0x3dd88f;var _0x31f09e=new _0x1429da['RevisionHistoryUpdateRevisionsResponse']();return null!=_0x3dd88f['requestId']&&(_0x31f09e['requestId']=_0x3dd88f['requestId']>>>0x0),_0x31f09e;},_0x309d06['toObject']=function(_0x459179,_0x175e8a){_0x175e8a||(_0x175e8a={});var _0x2f437e={};return _0x175e8a['defaults']&&(_0x2f437e['requestId']=0x0),null!=_0x459179['requestId']&&_0x459179['hasOwnProperty']('requestId')&&(_0x2f437e['requestId']=_0x459179['requestId']),_0x2f437e;},_0x309d06['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x309d06['getTypeUrl']=function(_0x22dd64){return void 0x0===_0x22dd64&&(_0x22dd64='type.googleapis.com'),_0x22dd64+'/RevisionHistoryUpdateRevisionsResponse';},_0x309d06;}()),_0x1429da['RevisionHistoryGetRevisionResponse']=(function(){function _0x4ed2a1(_0xcbd677){if(_0xcbd677){for(var _0x47a9f3=Object['keys'](_0xcbd677),_0x1f548a=0x0;_0x1f548a<_0x47a9f3['length'];++_0x1f548a)null!=_0xcbd677[_0x47a9f3[_0x1f548a]]&&(this[_0x47a9f3[_0x1f548a]]=_0xcbd677[_0x47a9f3[_0x1f548a]]);}}return _0x4ed2a1['prototype']['revisionId']='',_0x4ed2a1['prototype']['name']='',_0x4ed2a1['prototype']['creatorId']='',_0x4ed2a1['prototype']['authorsIds']='',_0x4ed2a1['prototype']['diffData']='',_0x4ed2a1['prototype']['createdAt']='',_0x4ed2a1['prototype']['attributes']='',_0x4ed2a1['prototype']['toVersion']=0x0,_0x4ed2a1['prototype']['fromVersion']=0x0,_0x4ed2a1['prototype']['isEmptyCurrent']=!0x1,_0x4ed2a1['create']=function(_0x14f413){return new _0x4ed2a1(_0x14f413);},_0x4ed2a1['encode']=function(_0x227de1,_0x293764){return _0x293764||(_0x293764=_0x2e8075['create']()),null!=_0x227de1['revisionId']&&Object['hasOwnProperty']['call'](_0x227de1,'revisionId')&&_0x293764['uint32'](0xa)['string'](_0x227de1['revisionId']),null!=_0x227de1['name']&&Object['hasOwnProperty']['call'](_0x227de1,'name')&&_0x293764['uint32'](0x12)['string'](_0x227de1['name']),null!=_0x227de1['creatorId']&&Object['hasOwnProperty']['call'](_0x227de1,'creatorId')&&_0x293764['uint32'](0x1a)['string'](_0x227de1['creatorId']),null!=_0x227de1['authorsIds']&&Object['hasOwnProperty']['call'](_0x227de1,'authorsIds')&&_0x293764['uint32'](0x22)['string'](_0x227de1['authorsIds']),null!=_0x227de1['diffData']&&Object['hasOwnProperty']['call'](_0x227de1,'diffData')&&_0x293764['uint32'](0x2a)['string'](_0x227de1['diffData']),null!=_0x227de1['createdAt']&&Object['hasOwnProperty']['call'](_0x227de1,'createdAt')&&_0x293764['uint32'](0x32)['string'](_0x227de1['createdAt']),null!=_0x227de1['attributes']&&Object['hasOwnProperty']['call'](_0x227de1,'attributes')&&_0x293764['uint32'](0x3a)['string'](_0x227de1['attributes']),null!=_0x227de1['toVersion']&&Object['hasOwnProperty']['call'](_0x227de1,'toVersion')&&_0x293764['uint32'](0x40)['uint32'](_0x227de1['toVersion']),null!=_0x227de1['fromVersion']&&Object['hasOwnProperty']['call'](_0x227de1,'fromVersion')&&_0x293764['uint32'](0x48)['uint32'](_0x227de1['fromVersion']),null!=_0x227de1['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x227de1,'isEmptyCurrent')&&_0x293764['uint32'](0x50)['bool'](_0x227de1['isEmptyCurrent']),_0x293764;},_0x4ed2a1['encodeDelimited']=function(_0x3f3ae8,_0x46928d){return this['encode'](_0x3f3ae8,_0x46928d)['ldelim']();},_0x4ed2a1['decode']=function(_0x4d8075,_0x4c9406,_0x5c3846){_0x4d8075 instanceof _0x5e9c2f||(_0x4d8075=_0x5e9c2f['create'](_0x4d8075));for(var _0x4594f7=void 0x0===_0x4c9406?_0x4d8075['len']:_0x4d8075['pos']+_0x4c9406,_0x1b3166=new _0x1429da['RevisionHistoryGetRevisionResponse']();_0x4d8075['pos']<_0x4594f7;){var _0x1bde98=_0x4d8075['uint32']();if(_0x1bde98===_0x5c3846)break;switch(_0x1bde98>>>0x3){case 0x1:_0x1b3166['revisionId']=_0x4d8075['string']();break;case 0x2:_0x1b3166['name']=_0x4d8075['string']();break;case 0x3:_0x1b3166['creatorId']=_0x4d8075['string']();break;case 0x4:_0x1b3166['authorsIds']=_0x4d8075['string']();break;case 0x5:_0x1b3166['diffData']=_0x4d8075['string']();break;case 0x6:_0x1b3166['createdAt']=_0x4d8075['string']();break;case 0x7:_0x1b3166['attributes']=_0x4d8075['string']();break;case 0x8:_0x1b3166['toVersion']=_0x4d8075['uint32']();break;case 0x9:_0x1b3166['fromVersion']=_0x4d8075['uint32']();break;case 0xa:_0x1b3166['isEmptyCurrent']=_0x4d8075['bool']();break;default:_0x4d8075['skipType'](0x7&_0x1bde98);}}return _0x1b3166;},_0x4ed2a1['decodeDelimited']=function(_0x373737){return _0x373737 instanceof _0x5e9c2f||(_0x373737=new _0x5e9c2f(_0x373737)),this['decode'](_0x373737,_0x373737['uint32']());},_0x4ed2a1['verify']=function(_0x5f1bcc){return'object'!=typeof _0x5f1bcc||null===_0x5f1bcc?'object\x20expected':null!=_0x5f1bcc['revisionId']&&_0x5f1bcc['hasOwnProperty']('revisionId')&&!_0x44b59b['isString'](_0x5f1bcc['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x5f1bcc['name']&&_0x5f1bcc['hasOwnProperty']('name')&&!_0x44b59b['isString'](_0x5f1bcc['name'])?'name:\x20string\x20expected':null!=_0x5f1bcc['creatorId']&&_0x5f1bcc['hasOwnProperty']('creatorId')&&!_0x44b59b['isString'](_0x5f1bcc['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x5f1bcc['authorsIds']&&_0x5f1bcc['hasOwnProperty']('authorsIds')&&!_0x44b59b['isString'](_0x5f1bcc['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x5f1bcc['diffData']&&_0x5f1bcc['hasOwnProperty']('diffData')&&!_0x44b59b['isString'](_0x5f1bcc['diffData'])?'diffData:\x20string\x20expected':null!=_0x5f1bcc['createdAt']&&_0x5f1bcc['hasOwnProperty']('createdAt')&&!_0x44b59b['isString'](_0x5f1bcc['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x5f1bcc['attributes']&&_0x5f1bcc['hasOwnProperty']('attributes')&&!_0x44b59b['isString'](_0x5f1bcc['attributes'])?'attributes:\x20string\x20expected':null!=_0x5f1bcc['toVersion']&&_0x5f1bcc['hasOwnProperty']('toVersion')&&!_0x44b59b['isInteger'](_0x5f1bcc['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x5f1bcc['fromVersion']&&_0x5f1bcc['hasOwnProperty']('fromVersion')&&!_0x44b59b['isInteger'](_0x5f1bcc['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x5f1bcc['isEmptyCurrent']&&_0x5f1bcc['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x5f1bcc['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},_0x4ed2a1['fromObject']=function(_0x448565){if(_0x448565 instanceof _0x1429da['RevisionHistoryGetRevisionResponse'])return _0x448565;var _0x531c66=new _0x1429da['RevisionHistoryGetRevisionResponse']();return null!=_0x448565['revisionId']&&(_0x531c66['revisionId']=String(_0x448565['revisionId'])),null!=_0x448565['name']&&(_0x531c66['name']=String(_0x448565['name'])),null!=_0x448565['creatorId']&&(_0x531c66['creatorId']=String(_0x448565['creatorId'])),null!=_0x448565['authorsIds']&&(_0x531c66['authorsIds']=String(_0x448565['authorsIds'])),null!=_0x448565['diffData']&&(_0x531c66['diffData']=String(_0x448565['diffData'])),null!=_0x448565['createdAt']&&(_0x531c66['createdAt']=String(_0x448565['createdAt'])),null!=_0x448565['attributes']&&(_0x531c66['attributes']=String(_0x448565['attributes'])),null!=_0x448565['toVersion']&&(_0x531c66['toVersion']=_0x448565['toVersion']>>>0x0),null!=_0x448565['fromVersion']&&(_0x531c66['fromVersion']=_0x448565['fromVersion']>>>0x0),null!=_0x448565['isEmptyCurrent']&&(_0x531c66['isEmptyCurrent']=Boolean(_0x448565['isEmptyCurrent'])),_0x531c66;},_0x4ed2a1['toObject']=function(_0x5f1646,_0x4aa78e){_0x4aa78e||(_0x4aa78e={});var _0x34ed20={};return _0x4aa78e['defaults']&&(_0x34ed20['revisionId']='',_0x34ed20['name']='',_0x34ed20['creatorId']='',_0x34ed20['authorsIds']='',_0x34ed20['diffData']='',_0x34ed20['createdAt']='',_0x34ed20['attributes']='',_0x34ed20['toVersion']=0x0,_0x34ed20['fromVersion']=0x0,_0x34ed20['isEmptyCurrent']=!0x1),null!=_0x5f1646['revisionId']&&_0x5f1646['hasOwnProperty']('revisionId')&&(_0x34ed20['revisionId']=_0x5f1646['revisionId']),null!=_0x5f1646['name']&&_0x5f1646['hasOwnProperty']('name')&&(_0x34ed20['name']=_0x5f1646['name']),null!=_0x5f1646['creatorId']&&_0x5f1646['hasOwnProperty']('creatorId')&&(_0x34ed20['creatorId']=_0x5f1646['creatorId']),null!=_0x5f1646['authorsIds']&&_0x5f1646['hasOwnProperty']('authorsIds')&&(_0x34ed20['authorsIds']=_0x5f1646['authorsIds']),null!=_0x5f1646['diffData']&&_0x5f1646['hasOwnProperty']('diffData')&&(_0x34ed20['diffData']=_0x5f1646['diffData']),null!=_0x5f1646['createdAt']&&_0x5f1646['hasOwnProperty']('createdAt')&&(_0x34ed20['createdAt']=_0x5f1646['createdAt']),null!=_0x5f1646['attributes']&&_0x5f1646['hasOwnProperty']('attributes')&&(_0x34ed20['attributes']=_0x5f1646['attributes']),null!=_0x5f1646['toVersion']&&_0x5f1646['hasOwnProperty']('toVersion')&&(_0x34ed20['toVersion']=_0x5f1646['toVersion']),null!=_0x5f1646['fromVersion']&&_0x5f1646['hasOwnProperty']('fromVersion')&&(_0x34ed20['fromVersion']=_0x5f1646['fromVersion']),null!=_0x5f1646['isEmptyCurrent']&&_0x5f1646['hasOwnProperty']('isEmptyCurrent')&&(_0x34ed20['isEmptyCurrent']=_0x5f1646['isEmptyCurrent']),_0x34ed20;},_0x4ed2a1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4ed2a1['getTypeUrl']=function(_0x5cfda4){return void 0x0===_0x5cfda4&&(_0x5cfda4='type.googleapis.com'),_0x5cfda4+'/RevisionHistoryGetRevisionResponse';},_0x4ed2a1;}()),_0x1429da['RevisionHistoryConnectResponse']=(function(){function _0x56cd25(_0xac680e){if(this['revisions']=[],_0xac680e){for(var _0x4ca785=Object['keys'](_0xac680e),_0x41e66b=0x0;_0x41e66b<_0x4ca785['length'];++_0x41e66b)null!=_0xac680e[_0x4ca785[_0x41e66b]]&&(this[_0x4ca785[_0x41e66b]]=_0xac680e[_0x4ca785[_0x41e66b]]);}}return _0x56cd25['prototype']['channel']='',_0x56cd25['prototype']['requestId']=0x0,_0x56cd25['prototype']['revisions']=_0x44b59b['emptyArray'],_0x56cd25['create']=function(_0xf170f8){return new _0x56cd25(_0xf170f8);},_0x56cd25['encode']=function(_0x4dd491,_0xcd6ff9){if(_0xcd6ff9||(_0xcd6ff9=_0x2e8075['create']()),null!=_0x4dd491['channel']&&Object['hasOwnProperty']['call'](_0x4dd491,'channel')&&_0xcd6ff9['uint32'](0xa)['string'](_0x4dd491['channel']),null!=_0x4dd491['requestId']&&Object['hasOwnProperty']['call'](_0x4dd491,'requestId')&&_0xcd6ff9['uint32'](0x10)['uint32'](_0x4dd491['requestId']),null!=_0x4dd491['revisions']&&_0x4dd491['revisions']['length']){for(var _0x19c12d=0x0;_0x19c12d<_0x4dd491['revisions']['length'];++_0x19c12d)_0x1429da['RevisionDescriptor']['encode'](_0x4dd491['revisions'][_0x19c12d],_0xcd6ff9['uint32'](0x1a)['fork']())['ldelim']();}return _0xcd6ff9;},_0x56cd25['encodeDelimited']=function(_0x258b5e,_0xee351c){return this['encode'](_0x258b5e,_0xee351c)['ldelim']();},_0x56cd25['decode']=function(_0x5d2fd1,_0x1f3901,_0x4f8135){_0x5d2fd1 instanceof _0x5e9c2f||(_0x5d2fd1=_0x5e9c2f['create'](_0x5d2fd1));for(var _0x11cead=void 0x0===_0x1f3901?_0x5d2fd1['len']:_0x5d2fd1['pos']+_0x1f3901,_0xc2ccad=new _0x1429da['RevisionHistoryConnectResponse']();_0x5d2fd1['pos']<_0x11cead;){var _0x378264=_0x5d2fd1['uint32']();if(_0x378264===_0x4f8135)break;switch(_0x378264>>>0x3){case 0x1:_0xc2ccad['channel']=_0x5d2fd1['string']();break;case 0x2:_0xc2ccad['requestId']=_0x5d2fd1['uint32']();break;case 0x3:_0xc2ccad['revisions']&&_0xc2ccad['revisions']['length']||(_0xc2ccad['revisions']=[]),_0xc2ccad['revisions']['push'](_0x1429da['RevisionDescriptor']['decode'](_0x5d2fd1,_0x5d2fd1['uint32']()));break;default:_0x5d2fd1['skipType'](0x7&_0x378264);}}return _0xc2ccad;},_0x56cd25['decodeDelimited']=function(_0x452c64){return _0x452c64 instanceof _0x5e9c2f||(_0x452c64=new _0x5e9c2f(_0x452c64)),this['decode'](_0x452c64,_0x452c64['uint32']());},_0x56cd25['verify']=function(_0x46dd3b){if('object'!=typeof _0x46dd3b||null===_0x46dd3b)return'object\x20expected';if(null!=_0x46dd3b['channel']&&_0x46dd3b['hasOwnProperty']('channel')&&!_0x44b59b['isString'](_0x46dd3b['channel']))return'channel:\x20string\x20expected';if(null!=_0x46dd3b['requestId']&&_0x46dd3b['hasOwnProperty']('requestId')&&!_0x44b59b['isInteger'](_0x46dd3b['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x46dd3b['revisions']&&_0x46dd3b['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x46dd3b['revisions']))return'revisions:\x20array\x20expected';for(var _0x592a57=0x0;_0x592a57<_0x46dd3b['revisions']['length'];++_0x592a57){var _0x166551=_0x1429da['RevisionDescriptor']['verify'](_0x46dd3b['revisions'][_0x592a57]);if(_0x166551)return'revisions.'+_0x166551;}}return null;},_0x56cd25['fromObject']=function(_0x104b25){if(_0x104b25 instanceof _0x1429da['RevisionHistoryConnectResponse'])return _0x104b25;var _0x40f74f=new _0x1429da['RevisionHistoryConnectResponse']();if(null!=_0x104b25['channel']&&(_0x40f74f['channel']=String(_0x104b25['channel'])),null!=_0x104b25['requestId']&&(_0x40f74f['requestId']=_0x104b25['requestId']>>>0x0),_0x104b25['revisions']){if(!Array['isArray'](_0x104b25['revisions']))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20array\x20expected');_0x40f74f['revisions']=[];for(var _0x5a2af6=0x0;_0x5a2af6<_0x104b25['revisions']['length'];++_0x5a2af6){if('object'!=typeof _0x104b25['revisions'][_0x5a2af6])throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20object\x20expected');_0x40f74f['revisions'][_0x5a2af6]=_0x1429da['RevisionDescriptor']['fromObject'](_0x104b25['revisions'][_0x5a2af6]);}}return _0x40f74f;},_0x56cd25['toObject']=function(_0x13e73a,_0x11dce2){_0x11dce2||(_0x11dce2={});var _0x1287f1={};if((_0x11dce2['arrays']||_0x11dce2['defaults'])&&(_0x1287f1['revisions']=[]),_0x11dce2['defaults']&&(_0x1287f1['channel']='',_0x1287f1['requestId']=0x0),null!=_0x13e73a['channel']&&_0x13e73a['hasOwnProperty']('channel')&&(_0x1287f1['channel']=_0x13e73a['channel']),null!=_0x13e73a['requestId']&&_0x13e73a['hasOwnProperty']('requestId')&&(_0x1287f1['requestId']=_0x13e73a['requestId']),_0x13e73a['revisions']&&_0x13e73a['revisions']['length']){_0x1287f1['revisions']=[];for(var _0x4a5ecd=0x0;_0x4a5ecd<_0x13e73a['revisions']['length'];++_0x4a5ecd)_0x1287f1['revisions'][_0x4a5ecd]=_0x1429da['RevisionDescriptor']['toObject'](_0x13e73a['revisions'][_0x4a5ecd],_0x11dce2);}return _0x1287f1;},_0x56cd25['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x56cd25['getTypeUrl']=function(_0x993a5d){return void 0x0===_0x993a5d&&(_0x993a5d='type.googleapis.com'),_0x993a5d+'/RevisionHistoryConnectResponse';},_0x56cd25;}()),_0x1429da['RevisionHistoryUpdateRevisionsMessage']=(function(){function _0x2517f2(_0x5cf5cc){if(this['revisions']=[],_0x5cf5cc){for(var _0x1b9e9c=Object['keys'](_0x5cf5cc),_0x4bf046=0x0;_0x4bf046<_0x1b9e9c['length'];++_0x4bf046)null!=_0x5cf5cc[_0x1b9e9c[_0x4bf046]]&&(this[_0x1b9e9c[_0x4bf046]]=_0x5cf5cc[_0x1b9e9c[_0x4bf046]]);}}return _0x2517f2['prototype']['documentId']='',_0x2517f2['prototype']['requestId']=0x0,_0x2517f2['prototype']['revisions']=_0x44b59b['emptyArray'],_0x2517f2['create']=function(_0x25f454){return new _0x2517f2(_0x25f454);},_0x2517f2['encode']=function(_0x1d4250,_0x256e94){if(_0x256e94||(_0x256e94=_0x2e8075['create']()),null!=_0x1d4250['documentId']&&Object['hasOwnProperty']['call'](_0x1d4250,'documentId')&&_0x256e94['uint32'](0xa)['string'](_0x1d4250['documentId']),null!=_0x1d4250['requestId']&&Object['hasOwnProperty']['call'](_0x1d4250,'requestId')&&_0x256e94['uint32'](0x10)['uint32'](_0x1d4250['requestId']),null!=_0x1d4250['revisions']&&_0x1d4250['revisions']['length']){for(var _0x3dafaa=0x0;_0x3dafaa<_0x1d4250['revisions']['length'];++_0x3dafaa)_0x1429da['RevisionDescriptor']['encode'](_0x1d4250['revisions'][_0x3dafaa],_0x256e94['uint32'](0x1a)['fork']())['ldelim']();}return _0x256e94;},_0x2517f2['encodeDelimited']=function(_0x3443fe,_0x31400e){return this['encode'](_0x3443fe,_0x31400e)['ldelim']();},_0x2517f2['decode']=function(_0x264b86,_0x46fb6a,_0x252c30){_0x264b86 instanceof _0x5e9c2f||(_0x264b86=_0x5e9c2f['create'](_0x264b86));for(var _0x1820b3=void 0x0===_0x46fb6a?_0x264b86['len']:_0x264b86['pos']+_0x46fb6a,_0x553e38=new _0x1429da['RevisionHistoryUpdateRevisionsMessage']();_0x264b86['pos']<_0x1820b3;){var _0xe5be57=_0x264b86['uint32']();if(_0xe5be57===_0x252c30)break;switch(_0xe5be57>>>0x3){case 0x1:_0x553e38['documentId']=_0x264b86['string']();break;case 0x2:_0x553e38['requestId']=_0x264b86['uint32']();break;case 0x3:_0x553e38['revisions']&&_0x553e38['revisions']['length']||(_0x553e38['revisions']=[]),_0x553e38['revisions']['push'](_0x1429da['RevisionDescriptor']['decode'](_0x264b86,_0x264b86['uint32']()));break;default:_0x264b86['skipType'](0x7&_0xe5be57);}}return _0x553e38;},_0x2517f2['decodeDelimited']=function(_0x122252){return _0x122252 instanceof _0x5e9c2f||(_0x122252=new _0x5e9c2f(_0x122252)),this['decode'](_0x122252,_0x122252['uint32']());},_0x2517f2['verify']=function(_0x5b1530){if('object'!=typeof _0x5b1530||null===_0x5b1530)return'object\x20expected';if(null!=_0x5b1530['documentId']&&_0x5b1530['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x5b1530['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x5b1530['requestId']&&_0x5b1530['hasOwnProperty']('requestId')&&!_0x44b59b['isInteger'](_0x5b1530['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x5b1530['revisions']&&_0x5b1530['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x5b1530['revisions']))return'revisions:\x20array\x20expected';for(var _0x48de30=0x0;_0x48de30<_0x5b1530['revisions']['length'];++_0x48de30){var _0x7456f0=_0x1429da['RevisionDescriptor']['verify'](_0x5b1530['revisions'][_0x48de30]);if(_0x7456f0)return'revisions.'+_0x7456f0;}}return null;},_0x2517f2['fromObject']=function(_0x5d19c4){if(_0x5d19c4 instanceof _0x1429da['RevisionHistoryUpdateRevisionsMessage'])return _0x5d19c4;var _0xc42a7a=new _0x1429da['RevisionHistoryUpdateRevisionsMessage']();if(null!=_0x5d19c4['documentId']&&(_0xc42a7a['documentId']=String(_0x5d19c4['documentId'])),null!=_0x5d19c4['requestId']&&(_0xc42a7a['requestId']=_0x5d19c4['requestId']>>>0x0),_0x5d19c4['revisions']){if(!Array['isArray'](_0x5d19c4['revisions']))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20array\x20expected');_0xc42a7a['revisions']=[];for(var _0xd5c02b=0x0;_0xd5c02b<_0x5d19c4['revisions']['length'];++_0xd5c02b){if('object'!=typeof _0x5d19c4['revisions'][_0xd5c02b])throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20object\x20expected');_0xc42a7a['revisions'][_0xd5c02b]=_0x1429da['RevisionDescriptor']['fromObject'](_0x5d19c4['revisions'][_0xd5c02b]);}}return _0xc42a7a;},_0x2517f2['toObject']=function(_0x2a52a1,_0x2f5539){_0x2f5539||(_0x2f5539={});var _0x6f0bd7={};if((_0x2f5539['arrays']||_0x2f5539['defaults'])&&(_0x6f0bd7['revisions']=[]),_0x2f5539['defaults']&&(_0x6f0bd7['documentId']='',_0x6f0bd7['requestId']=0x0),null!=_0x2a52a1['documentId']&&_0x2a52a1['hasOwnProperty']('documentId')&&(_0x6f0bd7['documentId']=_0x2a52a1['documentId']),null!=_0x2a52a1['requestId']&&_0x2a52a1['hasOwnProperty']('requestId')&&(_0x6f0bd7['requestId']=_0x2a52a1['requestId']),_0x2a52a1['revisions']&&_0x2a52a1['revisions']['length']){_0x6f0bd7['revisions']=[];for(var _0x216e7c=0x0;_0x216e7c<_0x2a52a1['revisions']['length'];++_0x216e7c)_0x6f0bd7['revisions'][_0x216e7c]=_0x1429da['RevisionDescriptor']['toObject'](_0x2a52a1['revisions'][_0x216e7c],_0x2f5539);}return _0x6f0bd7;},_0x2517f2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2517f2['getTypeUrl']=function(_0x137401){return void 0x0===_0x137401&&(_0x137401='type.googleapis.com'),_0x137401+'/RevisionHistoryUpdateRevisionsMessage';},_0x2517f2;}()),_0x1429da['RevisionHistoryReconnectMessage']=(function(){function _0xcd224d(_0x2046db){if(_0x2046db){for(var _0x201e26=Object['keys'](_0x2046db),_0x4217b5=0x0;_0x4217b5<_0x201e26['length'];++_0x4217b5)null!=_0x2046db[_0x201e26[_0x4217b5]]&&(this[_0x201e26[_0x4217b5]]=_0x2046db[_0x201e26[_0x4217b5]]);}}return _0xcd224d['prototype']['documentId']='',_0xcd224d['prototype']['requestId']=0x0,_0xcd224d['create']=function(_0x342297){return new _0xcd224d(_0x342297);},_0xcd224d['encode']=function(_0x322881,_0x1c1ed3){return _0x1c1ed3||(_0x1c1ed3=_0x2e8075['create']()),null!=_0x322881['documentId']&&Object['hasOwnProperty']['call'](_0x322881,'documentId')&&_0x1c1ed3['uint32'](0xa)['string'](_0x322881['documentId']),null!=_0x322881['requestId']&&Object['hasOwnProperty']['call'](_0x322881,'requestId')&&_0x1c1ed3['uint32'](0x10)['uint32'](_0x322881['requestId']),_0x1c1ed3;},_0xcd224d['encodeDelimited']=function(_0x4cc4e0,_0x546bfa){return this['encode'](_0x4cc4e0,_0x546bfa)['ldelim']();},_0xcd224d['decode']=function(_0x1a2375,_0x34bd86,_0x2e41de){_0x1a2375 instanceof _0x5e9c2f||(_0x1a2375=_0x5e9c2f['create'](_0x1a2375));for(var _0x19ed22=void 0x0===_0x34bd86?_0x1a2375['len']:_0x1a2375['pos']+_0x34bd86,_0x4164e8=new _0x1429da['RevisionHistoryReconnectMessage']();_0x1a2375['pos']<_0x19ed22;){var _0x5abe62=_0x1a2375['uint32']();if(_0x5abe62===_0x2e41de)break;switch(_0x5abe62>>>0x3){case 0x1:_0x4164e8['documentId']=_0x1a2375['string']();break;case 0x2:_0x4164e8['requestId']=_0x1a2375['uint32']();break;default:_0x1a2375['skipType'](0x7&_0x5abe62);}}return _0x4164e8;},_0xcd224d['decodeDelimited']=function(_0x2e228d){return _0x2e228d instanceof _0x5e9c2f||(_0x2e228d=new _0x5e9c2f(_0x2e228d)),this['decode'](_0x2e228d,_0x2e228d['uint32']());},_0xcd224d['verify']=function(_0x22ced2){return'object'!=typeof _0x22ced2||null===_0x22ced2?'object\x20expected':null!=_0x22ced2['documentId']&&_0x22ced2['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x22ced2['documentId'])?'documentId:\x20string\x20expected':null!=_0x22ced2['requestId']&&_0x22ced2['hasOwnProperty']('requestId')&&!_0x44b59b['isInteger'](_0x22ced2['requestId'])?'requestId:\x20integer\x20expected':null;},_0xcd224d['fromObject']=function(_0x539a44){if(_0x539a44 instanceof _0x1429da['RevisionHistoryReconnectMessage'])return _0x539a44;var _0x208392=new _0x1429da['RevisionHistoryReconnectMessage']();return null!=_0x539a44['documentId']&&(_0x208392['documentId']=String(_0x539a44['documentId'])),null!=_0x539a44['requestId']&&(_0x208392['requestId']=_0x539a44['requestId']>>>0x0),_0x208392;},_0xcd224d['toObject']=function(_0x3245dd,_0x2b1243){_0x2b1243||(_0x2b1243={});var _0x4ca8f2={};return _0x2b1243['defaults']&&(_0x4ca8f2['documentId']='',_0x4ca8f2['requestId']=0x0),null!=_0x3245dd['documentId']&&_0x3245dd['hasOwnProperty']('documentId')&&(_0x4ca8f2['documentId']=_0x3245dd['documentId']),null!=_0x3245dd['requestId']&&_0x3245dd['hasOwnProperty']('requestId')&&(_0x4ca8f2['requestId']=_0x3245dd['requestId']),_0x4ca8f2;},_0xcd224d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xcd224d['getTypeUrl']=function(_0x5c7a50){return void 0x0===_0x5c7a50&&(_0x5c7a50='type.googleapis.com'),_0x5c7a50+'/RevisionHistoryReconnectMessage';},_0xcd224d;}()),_0x1429da['RevisionHistoryGetRevisionMessage']=(function(){function _0x4e29d8(_0x478879){if(_0x478879){for(var _0x128449=Object['keys'](_0x478879),_0x5a2fd6=0x0;_0x5a2fd6<_0x128449['length'];++_0x5a2fd6)null!=_0x478879[_0x128449[_0x5a2fd6]]&&(this[_0x128449[_0x5a2fd6]]=_0x478879[_0x128449[_0x5a2fd6]]);}}return _0x4e29d8['prototype']['documentId']='',_0x4e29d8['prototype']['revisionId']='',_0x4e29d8['create']=function(_0x35b17c){return new _0x4e29d8(_0x35b17c);},_0x4e29d8['encode']=function(_0x3da12d,_0x160ff8){return _0x160ff8||(_0x160ff8=_0x2e8075['create']()),null!=_0x3da12d['documentId']&&Object['hasOwnProperty']['call'](_0x3da12d,'documentId')&&_0x160ff8['uint32'](0xa)['string'](_0x3da12d['documentId']),null!=_0x3da12d['revisionId']&&Object['hasOwnProperty']['call'](_0x3da12d,'revisionId')&&_0x160ff8['uint32'](0x12)['string'](_0x3da12d['revisionId']),_0x160ff8;},_0x4e29d8['encodeDelimited']=function(_0x540196,_0x13bec4){return this['encode'](_0x540196,_0x13bec4)['ldelim']();},_0x4e29d8['decode']=function(_0x4edf25,_0x2fcfff,_0x446dc7){_0x4edf25 instanceof _0x5e9c2f||(_0x4edf25=_0x5e9c2f['create'](_0x4edf25));for(var _0x2cf6a8=void 0x0===_0x2fcfff?_0x4edf25['len']:_0x4edf25['pos']+_0x2fcfff,_0x4a4c68=new _0x1429da['RevisionHistoryGetRevisionMessage']();_0x4edf25['pos']<_0x2cf6a8;){var _0x15521d=_0x4edf25['uint32']();if(_0x15521d===_0x446dc7)break;switch(_0x15521d>>>0x3){case 0x1:_0x4a4c68['documentId']=_0x4edf25['string']();break;case 0x2:_0x4a4c68['revisionId']=_0x4edf25['string']();break;default:_0x4edf25['skipType'](0x7&_0x15521d);}}return _0x4a4c68;},_0x4e29d8['decodeDelimited']=function(_0x520c80){return _0x520c80 instanceof _0x5e9c2f||(_0x520c80=new _0x5e9c2f(_0x520c80)),this['decode'](_0x520c80,_0x520c80['uint32']());},_0x4e29d8['verify']=function(_0x5f3168){return'object'!=typeof _0x5f3168||null===_0x5f3168?'object\x20expected':null!=_0x5f3168['documentId']&&_0x5f3168['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x5f3168['documentId'])?'documentId:\x20string\x20expected':null!=_0x5f3168['revisionId']&&_0x5f3168['hasOwnProperty']('revisionId')&&!_0x44b59b['isString'](_0x5f3168['revisionId'])?'revisionId:\x20string\x20expected':null;},_0x4e29d8['fromObject']=function(_0x1b0b26){if(_0x1b0b26 instanceof _0x1429da['RevisionHistoryGetRevisionMessage'])return _0x1b0b26;var _0x2af06d=new _0x1429da['RevisionHistoryGetRevisionMessage']();return null!=_0x1b0b26['documentId']&&(_0x2af06d['documentId']=String(_0x1b0b26['documentId'])),null!=_0x1b0b26['revisionId']&&(_0x2af06d['revisionId']=String(_0x1b0b26['revisionId'])),_0x2af06d;},_0x4e29d8['toObject']=function(_0xa54e64,_0x5c8146){_0x5c8146||(_0x5c8146={});var _0x3071cf={};return _0x5c8146['defaults']&&(_0x3071cf['documentId']='',_0x3071cf['revisionId']=''),null!=_0xa54e64['documentId']&&_0xa54e64['hasOwnProperty']('documentId')&&(_0x3071cf['documentId']=_0xa54e64['documentId']),null!=_0xa54e64['revisionId']&&_0xa54e64['hasOwnProperty']('revisionId')&&(_0x3071cf['revisionId']=_0xa54e64['revisionId']),_0x3071cf;},_0x4e29d8['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4e29d8['getTypeUrl']=function(_0x2ba459){return void 0x0===_0x2ba459&&(_0x2ba459='type.googleapis.com'),_0x2ba459+'/RevisionHistoryGetRevisionMessage';},_0x4e29d8;}()),_0x1429da['RevisionHistoryConnectMessage']=(function(){function _0x1fc771(_0x39ad85){if(_0x39ad85){for(var _0x260c85=Object['keys'](_0x39ad85),_0x17882b=0x0;_0x17882b<_0x260c85['length'];++_0x17882b)null!=_0x39ad85[_0x260c85[_0x17882b]]&&(this[_0x260c85[_0x17882b]]=_0x39ad85[_0x260c85[_0x17882b]]);}}return _0x1fc771['prototype']['documentId']='',_0x1fc771['create']=function(_0x3db6f2){return new _0x1fc771(_0x3db6f2);},_0x1fc771['encode']=function(_0xac3986,_0x564dc5){return _0x564dc5||(_0x564dc5=_0x2e8075['create']()),null!=_0xac3986['documentId']&&Object['hasOwnProperty']['call'](_0xac3986,'documentId')&&_0x564dc5['uint32'](0xa)['string'](_0xac3986['documentId']),_0x564dc5;},_0x1fc771['encodeDelimited']=function(_0x513a17,_0x1f831b){return this['encode'](_0x513a17,_0x1f831b)['ldelim']();},_0x1fc771['decode']=function(_0x3bbadc,_0x2f8ca3,_0x957afe){_0x3bbadc instanceof _0x5e9c2f||(_0x3bbadc=_0x5e9c2f['create'](_0x3bbadc));for(var _0x4ea278=void 0x0===_0x2f8ca3?_0x3bbadc['len']:_0x3bbadc['pos']+_0x2f8ca3,_0x293945=new _0x1429da['RevisionHistoryConnectMessage']();_0x3bbadc['pos']<_0x4ea278;){var _0x1656be=_0x3bbadc['uint32']();if(_0x1656be===_0x957afe)break;_0x1656be>>>0x3==0x1?_0x293945['documentId']=_0x3bbadc['string']():_0x3bbadc['skipType'](0x7&_0x1656be);}return _0x293945;},_0x1fc771['decodeDelimited']=function(_0x30d670){return _0x30d670 instanceof _0x5e9c2f||(_0x30d670=new _0x5e9c2f(_0x30d670)),this['decode'](_0x30d670,_0x30d670['uint32']());},_0x1fc771['verify']=function(_0x29dc8b){return'object'!=typeof _0x29dc8b||null===_0x29dc8b?'object\x20expected':null!=_0x29dc8b['documentId']&&_0x29dc8b['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x29dc8b['documentId'])?'documentId:\x20string\x20expected':null;},_0x1fc771['fromObject']=function(_0x21447f){if(_0x21447f instanceof _0x1429da['RevisionHistoryConnectMessage'])return _0x21447f;var _0x468f44=new _0x1429da['RevisionHistoryConnectMessage']();return null!=_0x21447f['documentId']&&(_0x468f44['documentId']=String(_0x21447f['documentId'])),_0x468f44;},_0x1fc771['toObject']=function(_0x14c17f,_0x4e1757){_0x4e1757||(_0x4e1757={});var _0x56c6f5={};return _0x4e1757['defaults']&&(_0x56c6f5['documentId']=''),null!=_0x14c17f['documentId']&&_0x14c17f['hasOwnProperty']('documentId')&&(_0x56c6f5['documentId']=_0x14c17f['documentId']),_0x56c6f5;},_0x1fc771['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1fc771['getTypeUrl']=function(_0x3236bb){return void 0x0===_0x3236bb&&(_0x3236bb='type.googleapis.com'),_0x3236bb+'/RevisionHistoryConnectMessage';},_0x1fc771;}()),_0x1429da['RevisionDescriptor']=(function(){function _0x6a2165(_0x47f44f){if(_0x47f44f){for(var _0x587087=Object['keys'](_0x47f44f),_0x249b38=0x0;_0x249b38<_0x587087['length'];++_0x249b38)null!=_0x47f44f[_0x587087[_0x249b38]]&&(this[_0x587087[_0x249b38]]=_0x47f44f[_0x587087[_0x249b38]]);}}return _0x6a2165['prototype']['revisionId']='',_0x6a2165['prototype']['name']='',_0x6a2165['prototype']['creatorId']='',_0x6a2165['prototype']['authorsIds']='',_0x6a2165['prototype']['diffData']='',_0x6a2165['prototype']['createdAt']='',_0x6a2165['prototype']['attributes']='',_0x6a2165['prototype']['toVersion']=0x0,_0x6a2165['prototype']['fromVersion']=0x0,_0x6a2165['prototype']['isEmptyCurrent']=!0x1,_0x6a2165['create']=function(_0x4e20b5){return new _0x6a2165(_0x4e20b5);},_0x6a2165['encode']=function(_0x257153,_0x34b1b5){return _0x34b1b5||(_0x34b1b5=_0x2e8075['create']()),null!=_0x257153['revisionId']&&Object['hasOwnProperty']['call'](_0x257153,'revisionId')&&_0x34b1b5['uint32'](0xa)['string'](_0x257153['revisionId']),null!=_0x257153['name']&&Object['hasOwnProperty']['call'](_0x257153,'name')&&_0x34b1b5['uint32'](0x12)['string'](_0x257153['name']),null!=_0x257153['creatorId']&&Object['hasOwnProperty']['call'](_0x257153,'creatorId')&&_0x34b1b5['uint32'](0x1a)['string'](_0x257153['creatorId']),null!=_0x257153['authorsIds']&&Object['hasOwnProperty']['call'](_0x257153,'authorsIds')&&_0x34b1b5['uint32'](0x22)['string'](_0x257153['authorsIds']),null!=_0x257153['diffData']&&Object['hasOwnProperty']['call'](_0x257153,'diffData')&&_0x34b1b5['uint32'](0x2a)['string'](_0x257153['diffData']),null!=_0x257153['createdAt']&&Object['hasOwnProperty']['call'](_0x257153,'createdAt')&&_0x34b1b5['uint32'](0x32)['string'](_0x257153['createdAt']),null!=_0x257153['attributes']&&Object['hasOwnProperty']['call'](_0x257153,'attributes')&&_0x34b1b5['uint32'](0x3a)['string'](_0x257153['attributes']),null!=_0x257153['toVersion']&&Object['hasOwnProperty']['call'](_0x257153,'toVersion')&&_0x34b1b5['uint32'](0x40)['uint32'](_0x257153['toVersion']),null!=_0x257153['fromVersion']&&Object['hasOwnProperty']['call'](_0x257153,'fromVersion')&&_0x34b1b5['uint32'](0x48)['uint32'](_0x257153['fromVersion']),null!=_0x257153['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x257153,'isEmptyCurrent')&&_0x34b1b5['uint32'](0x50)['bool'](_0x257153['isEmptyCurrent']),_0x34b1b5;},_0x6a2165['encodeDelimited']=function(_0x38f560,_0x55da7e){return this['encode'](_0x38f560,_0x55da7e)['ldelim']();},_0x6a2165['decode']=function(_0x18b0ea,_0x4f2379,_0x4ba261){_0x18b0ea instanceof _0x5e9c2f||(_0x18b0ea=_0x5e9c2f['create'](_0x18b0ea));for(var _0x209eba=void 0x0===_0x4f2379?_0x18b0ea['len']:_0x18b0ea['pos']+_0x4f2379,_0x3f442f=new _0x1429da['RevisionDescriptor']();_0x18b0ea['pos']<_0x209eba;){var _0x2581c6=_0x18b0ea['uint32']();if(_0x2581c6===_0x4ba261)break;switch(_0x2581c6>>>0x3){case 0x1:_0x3f442f['revisionId']=_0x18b0ea['string']();break;case 0x2:_0x3f442f['name']=_0x18b0ea['string']();break;case 0x3:_0x3f442f['creatorId']=_0x18b0ea['string']();break;case 0x4:_0x3f442f['authorsIds']=_0x18b0ea['string']();break;case 0x5:_0x3f442f['diffData']=_0x18b0ea['string']();break;case 0x6:_0x3f442f['createdAt']=_0x18b0ea['string']();break;case 0x7:_0x3f442f['attributes']=_0x18b0ea['string']();break;case 0x8:_0x3f442f['toVersion']=_0x18b0ea['uint32']();break;case 0x9:_0x3f442f['fromVersion']=_0x18b0ea['uint32']();break;case 0xa:_0x3f442f['isEmptyCurrent']=_0x18b0ea['bool']();break;default:_0x18b0ea['skipType'](0x7&_0x2581c6);}}return _0x3f442f;},_0x6a2165['decodeDelimited']=function(_0x469999){return _0x469999 instanceof _0x5e9c2f||(_0x469999=new _0x5e9c2f(_0x469999)),this['decode'](_0x469999,_0x469999['uint32']());},_0x6a2165['verify']=function(_0x27ffd4){return'object'!=typeof _0x27ffd4||null===_0x27ffd4?'object\x20expected':null!=_0x27ffd4['revisionId']&&_0x27ffd4['hasOwnProperty']('revisionId')&&!_0x44b59b['isString'](_0x27ffd4['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x27ffd4['name']&&_0x27ffd4['hasOwnProperty']('name')&&!_0x44b59b['isString'](_0x27ffd4['name'])?'name:\x20string\x20expected':null!=_0x27ffd4['creatorId']&&_0x27ffd4['hasOwnProperty']('creatorId')&&!_0x44b59b['isString'](_0x27ffd4['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x27ffd4['authorsIds']&&_0x27ffd4['hasOwnProperty']('authorsIds')&&!_0x44b59b['isString'](_0x27ffd4['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x27ffd4['diffData']&&_0x27ffd4['hasOwnProperty']('diffData')&&!_0x44b59b['isString'](_0x27ffd4['diffData'])?'diffData:\x20string\x20expected':null!=_0x27ffd4['createdAt']&&_0x27ffd4['hasOwnProperty']('createdAt')&&!_0x44b59b['isString'](_0x27ffd4['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x27ffd4['attributes']&&_0x27ffd4['hasOwnProperty']('attributes')&&!_0x44b59b['isString'](_0x27ffd4['attributes'])?'attributes:\x20string\x20expected':null!=_0x27ffd4['toVersion']&&_0x27ffd4['hasOwnProperty']('toVersion')&&!_0x44b59b['isInteger'](_0x27ffd4['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x27ffd4['fromVersion']&&_0x27ffd4['hasOwnProperty']('fromVersion')&&!_0x44b59b['isInteger'](_0x27ffd4['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x27ffd4['isEmptyCurrent']&&_0x27ffd4['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x27ffd4['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},_0x6a2165['fromObject']=function(_0x264b4c){if(_0x264b4c instanceof _0x1429da['RevisionDescriptor'])return _0x264b4c;var _0x5e623d=new _0x1429da['RevisionDescriptor']();return null!=_0x264b4c['revisionId']&&(_0x5e623d['revisionId']=String(_0x264b4c['revisionId'])),null!=_0x264b4c['name']&&(_0x5e623d['name']=String(_0x264b4c['name'])),null!=_0x264b4c['creatorId']&&(_0x5e623d['creatorId']=String(_0x264b4c['creatorId'])),null!=_0x264b4c['authorsIds']&&(_0x5e623d['authorsIds']=String(_0x264b4c['authorsIds'])),null!=_0x264b4c['diffData']&&(_0x5e623d['diffData']=String(_0x264b4c['diffData'])),null!=_0x264b4c['createdAt']&&(_0x5e623d['createdAt']=String(_0x264b4c['createdAt'])),null!=_0x264b4c['attributes']&&(_0x5e623d['attributes']=String(_0x264b4c['attributes'])),null!=_0x264b4c['toVersion']&&(_0x5e623d['toVersion']=_0x264b4c['toVersion']>>>0x0),null!=_0x264b4c['fromVersion']&&(_0x5e623d['fromVersion']=_0x264b4c['fromVersion']>>>0x0),null!=_0x264b4c['isEmptyCurrent']&&(_0x5e623d['isEmptyCurrent']=Boolean(_0x264b4c['isEmptyCurrent'])),_0x5e623d;},_0x6a2165['toObject']=function(_0x186db0,_0x2b5f94){_0x2b5f94||(_0x2b5f94={});var _0x5c561a={};return _0x2b5f94['defaults']&&(_0x5c561a['revisionId']='',_0x5c561a['name']='',_0x5c561a['creatorId']='',_0x5c561a['authorsIds']='',_0x5c561a['diffData']='',_0x5c561a['createdAt']='',_0x5c561a['attributes']='',_0x5c561a['toVersion']=0x0,_0x5c561a['fromVersion']=0x0,_0x5c561a['isEmptyCurrent']=!0x1),null!=_0x186db0['revisionId']&&_0x186db0['hasOwnProperty']('revisionId')&&(_0x5c561a['revisionId']=_0x186db0['revisionId']),null!=_0x186db0['name']&&_0x186db0['hasOwnProperty']('name')&&(_0x5c561a['name']=_0x186db0['name']),null!=_0x186db0['creatorId']&&_0x186db0['hasOwnProperty']('creatorId')&&(_0x5c561a['creatorId']=_0x186db0['creatorId']),null!=_0x186db0['authorsIds']&&_0x186db0['hasOwnProperty']('authorsIds')&&(_0x5c561a['authorsIds']=_0x186db0['authorsIds']),null!=_0x186db0['diffData']&&_0x186db0['hasOwnProperty']('diffData')&&(_0x5c561a['diffData']=_0x186db0['diffData']),null!=_0x186db0['createdAt']&&_0x186db0['hasOwnProperty']('createdAt')&&(_0x5c561a['createdAt']=_0x186db0['createdAt']),null!=_0x186db0['attributes']&&_0x186db0['hasOwnProperty']('attributes')&&(_0x5c561a['attributes']=_0x186db0['attributes']),null!=_0x186db0['toVersion']&&_0x186db0['hasOwnProperty']('toVersion')&&(_0x5c561a['toVersion']=_0x186db0['toVersion']),null!=_0x186db0['fromVersion']&&_0x186db0['hasOwnProperty']('fromVersion')&&(_0x5c561a['fromVersion']=_0x186db0['fromVersion']),null!=_0x186db0['isEmptyCurrent']&&_0x186db0['hasOwnProperty']('isEmptyCurrent')&&(_0x5c561a['isEmptyCurrent']=_0x186db0['isEmptyCurrent']),_0x5c561a;},_0x6a2165['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x6a2165['getTypeUrl']=function(_0x38187a){return void 0x0===_0x38187a&&(_0x38187a='type.googleapis.com'),_0x38187a+'/RevisionDescriptor';},_0x6a2165;}()),_0x1429da['IsEditorBundleUploadedResponse']=(function(){function _0xe1d6f7(_0x241628){if(_0x241628){for(var _0x4013ac=Object['keys'](_0x241628),_0x1c5cdc=0x0;_0x1c5cdc<_0x4013ac['length'];++_0x1c5cdc)null!=_0x241628[_0x4013ac[_0x1c5cdc]]&&(this[_0x4013ac[_0x1c5cdc]]=_0x241628[_0x4013ac[_0x1c5cdc]]);}}return _0xe1d6f7['prototype']['isUploaded']=!0x1,_0xe1d6f7['create']=function(_0x15abc7){return new _0xe1d6f7(_0x15abc7);},_0xe1d6f7['encode']=function(_0x3ec0d5,_0x4c4c4b){return _0x4c4c4b||(_0x4c4c4b=_0x2e8075['create']()),null!=_0x3ec0d5['isUploaded']&&Object['hasOwnProperty']['call'](_0x3ec0d5,'isUploaded')&&_0x4c4c4b['uint32'](0x8)['bool'](_0x3ec0d5['isUploaded']),_0x4c4c4b;},_0xe1d6f7['encodeDelimited']=function(_0x42b1d9,_0x2da096){return this['encode'](_0x42b1d9,_0x2da096)['ldelim']();},_0xe1d6f7['decode']=function(_0x58e163,_0x312a47,_0x2272d3){_0x58e163 instanceof _0x5e9c2f||(_0x58e163=_0x5e9c2f['create'](_0x58e163));for(var _0x421bec=void 0x0===_0x312a47?_0x58e163['len']:_0x58e163['pos']+_0x312a47,_0x5b6a67=new _0x1429da['IsEditorBundleUploadedResponse']();_0x58e163['pos']<_0x421bec;){var _0xba924f=_0x58e163['uint32']();if(_0xba924f===_0x2272d3)break;_0xba924f>>>0x3==0x1?_0x5b6a67['isUploaded']=_0x58e163['bool']():_0x58e163['skipType'](0x7&_0xba924f);}return _0x5b6a67;},_0xe1d6f7['decodeDelimited']=function(_0x3fc2b5){return _0x3fc2b5 instanceof _0x5e9c2f||(_0x3fc2b5=new _0x5e9c2f(_0x3fc2b5)),this['decode'](_0x3fc2b5,_0x3fc2b5['uint32']());},_0xe1d6f7['verify']=function(_0x44595e){return'object'!=typeof _0x44595e||null===_0x44595e?'object\x20expected':null!=_0x44595e['isUploaded']&&_0x44595e['hasOwnProperty']('isUploaded')&&'boolean'!=typeof _0x44595e['isUploaded']?'isUploaded:\x20boolean\x20expected':null;},_0xe1d6f7['fromObject']=function(_0x45400a){if(_0x45400a instanceof _0x1429da['IsEditorBundleUploadedResponse'])return _0x45400a;var _0x357cce=new _0x1429da['IsEditorBundleUploadedResponse']();return null!=_0x45400a['isUploaded']&&(_0x357cce['isUploaded']=Boolean(_0x45400a['isUploaded'])),_0x357cce;},_0xe1d6f7['toObject']=function(_0x4a8df3,_0x3d50d1){_0x3d50d1||(_0x3d50d1={});var _0x4485dc={};return _0x3d50d1['defaults']&&(_0x4485dc['isUploaded']=!0x1),null!=_0x4a8df3['isUploaded']&&_0x4a8df3['hasOwnProperty']('isUploaded')&&(_0x4485dc['isUploaded']=_0x4a8df3['isUploaded']),_0x4485dc;},_0xe1d6f7['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xe1d6f7['getTypeUrl']=function(_0x297259){return void 0x0===_0x297259&&(_0x297259='type.googleapis.com'),_0x297259+'/IsEditorBundleUploadedResponse';},_0xe1d6f7;}()),_0x1429da['IsEditorBundleUploadedMessage']=(function(){function _0x2bdbda(_0xafcb71){if(_0xafcb71){for(var _0x4c6c97=Object['keys'](_0xafcb71),_0xc9cecf=0x0;_0xc9cecf<_0x4c6c97['length'];++_0xc9cecf)null!=_0xafcb71[_0x4c6c97[_0xc9cecf]]&&(this[_0x4c6c97[_0xc9cecf]]=_0xafcb71[_0x4c6c97[_0xc9cecf]]);}}return _0x2bdbda['prototype']['bundleVersion']='',_0x2bdbda['create']=function(_0x564ae6){return new _0x2bdbda(_0x564ae6);},_0x2bdbda['encode']=function(_0x4d2312,_0x2a693d){return _0x2a693d||(_0x2a693d=_0x2e8075['create']()),null!=_0x4d2312['bundleVersion']&&Object['hasOwnProperty']['call'](_0x4d2312,'bundleVersion')&&_0x2a693d['uint32'](0xa)['string'](_0x4d2312['bundleVersion']),_0x2a693d;},_0x2bdbda['encodeDelimited']=function(_0x105ec4,_0x26639f){return this['encode'](_0x105ec4,_0x26639f)['ldelim']();},_0x2bdbda['decode']=function(_0x4732eb,_0x440705,_0x1c6aa4){_0x4732eb instanceof _0x5e9c2f||(_0x4732eb=_0x5e9c2f['create'](_0x4732eb));for(var _0x417be5=void 0x0===_0x440705?_0x4732eb['len']:_0x4732eb['pos']+_0x440705,_0x1cfa78=new _0x1429da['IsEditorBundleUploadedMessage']();_0x4732eb['pos']<_0x417be5;){var _0x561fc3=_0x4732eb['uint32']();if(_0x561fc3===_0x1c6aa4)break;_0x561fc3>>>0x3==0x1?_0x1cfa78['bundleVersion']=_0x4732eb['string']():_0x4732eb['skipType'](0x7&_0x561fc3);}return _0x1cfa78;},_0x2bdbda['decodeDelimited']=function(_0x4ccbf6){return _0x4ccbf6 instanceof _0x5e9c2f||(_0x4ccbf6=new _0x5e9c2f(_0x4ccbf6)),this['decode'](_0x4ccbf6,_0x4ccbf6['uint32']());},_0x2bdbda['verify']=function(_0xa322b9){return'object'!=typeof _0xa322b9||null===_0xa322b9?'object\x20expected':null!=_0xa322b9['bundleVersion']&&_0xa322b9['hasOwnProperty']('bundleVersion')&&!_0x44b59b['isString'](_0xa322b9['bundleVersion'])?'bundleVersion:\x20string\x20expected':null;},_0x2bdbda['fromObject']=function(_0x49f931){if(_0x49f931 instanceof _0x1429da['IsEditorBundleUploadedMessage'])return _0x49f931;var _0x4c75ba=new _0x1429da['IsEditorBundleUploadedMessage']();return null!=_0x49f931['bundleVersion']&&(_0x4c75ba['bundleVersion']=String(_0x49f931['bundleVersion'])),_0x4c75ba;},_0x2bdbda['toObject']=function(_0x5b0152,_0x57b36c){_0x57b36c||(_0x57b36c={});var _0x317c3d={};return _0x57b36c['defaults']&&(_0x317c3d['bundleVersion']=''),null!=_0x5b0152['bundleVersion']&&_0x5b0152['hasOwnProperty']('bundleVersion')&&(_0x317c3d['bundleVersion']=_0x5b0152['bundleVersion']),_0x317c3d;},_0x2bdbda['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2bdbda['getTypeUrl']=function(_0x406518){return void 0x0===_0x406518&&(_0x406518='type.googleapis.com'),_0x406518+'/IsEditorBundleUploadedMessage';},_0x2bdbda;}()),_0x1429da['KeyValueDescriptor']=(function(){function _0x49fced(_0x39b794){if(_0x39b794){for(var _0x14bc1b=Object['keys'](_0x39b794),_0x5781b3=0x0;_0x5781b3<_0x14bc1b['length'];++_0x5781b3)null!=_0x39b794[_0x14bc1b[_0x5781b3]]&&(this[_0x14bc1b[_0x5781b3]]=_0x39b794[_0x14bc1b[_0x5781b3]]);}}return _0x49fced['prototype']['key']='',_0x49fced['prototype']['value']='',_0x49fced['create']=function(_0x3b76ea){return new _0x49fced(_0x3b76ea);},_0x49fced['encode']=function(_0x340034,_0x2526dc){return _0x2526dc||(_0x2526dc=_0x2e8075['create']()),null!=_0x340034['key']&&Object['hasOwnProperty']['call'](_0x340034,'key')&&_0x2526dc['uint32'](0xa)['string'](_0x340034['key']),null!=_0x340034['value']&&Object['hasOwnProperty']['call'](_0x340034,'value')&&_0x2526dc['uint32'](0x12)['string'](_0x340034['value']),_0x2526dc;},_0x49fced['encodeDelimited']=function(_0x2fe9fa,_0x89812d){return this['encode'](_0x2fe9fa,_0x89812d)['ldelim']();},_0x49fced['decode']=function(_0x587a87,_0x13dc28,_0x5d147f){_0x587a87 instanceof _0x5e9c2f||(_0x587a87=_0x5e9c2f['create'](_0x587a87));for(var _0x1bffbb=void 0x0===_0x13dc28?_0x587a87['len']:_0x587a87['pos']+_0x13dc28,_0x5e365b=new _0x1429da['KeyValueDescriptor']();_0x587a87['pos']<_0x1bffbb;){var _0x20ded0=_0x587a87['uint32']();if(_0x20ded0===_0x5d147f)break;switch(_0x20ded0>>>0x3){case 0x1:_0x5e365b['key']=_0x587a87['string']();break;case 0x2:_0x5e365b['value']=_0x587a87['string']();break;default:_0x587a87['skipType'](0x7&_0x20ded0);}}return _0x5e365b;},_0x49fced['decodeDelimited']=function(_0x369417){return _0x369417 instanceof _0x5e9c2f||(_0x369417=new _0x5e9c2f(_0x369417)),this['decode'](_0x369417,_0x369417['uint32']());},_0x49fced['verify']=function(_0x332c54){return'object'!=typeof _0x332c54||null===_0x332c54?'object\x20expected':null!=_0x332c54['key']&&_0x332c54['hasOwnProperty']('key')&&!_0x44b59b['isString'](_0x332c54['key'])?'key:\x20string\x20expected':null!=_0x332c54['value']&&_0x332c54['hasOwnProperty']('value')&&!_0x44b59b['isString'](_0x332c54['value'])?'value:\x20string\x20expected':null;},_0x49fced['fromObject']=function(_0x5b914a){if(_0x5b914a instanceof _0x1429da['KeyValueDescriptor'])return _0x5b914a;var _0x2e77a7=new _0x1429da['KeyValueDescriptor']();return null!=_0x5b914a['key']&&(_0x2e77a7['key']=String(_0x5b914a['key'])),null!=_0x5b914a['value']&&(_0x2e77a7['value']=String(_0x5b914a['value'])),_0x2e77a7;},_0x49fced['toObject']=function(_0x5c4a5b,_0x3c2ae8){_0x3c2ae8||(_0x3c2ae8={});var _0x214bb9={};return _0x3c2ae8['defaults']&&(_0x214bb9['key']='',_0x214bb9['value']=''),null!=_0x5c4a5b['key']&&_0x5c4a5b['hasOwnProperty']('key')&&(_0x214bb9['key']=_0x5c4a5b['key']),null!=_0x5c4a5b['value']&&_0x5c4a5b['hasOwnProperty']('value')&&(_0x214bb9['value']=_0x5c4a5b['value']),_0x214bb9;},_0x49fced['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x49fced['getTypeUrl']=function(_0x46b087){return void 0x0===_0x46b087&&(_0x46b087='type.googleapis.com'),_0x46b087+'/KeyValueDescriptor';},_0x49fced;}()),_0x1429da['CommentsV2GetDocumentThreadsResponse']=(function(){function _0x32f759(_0x234b72){if(this['threads']=[],this['threadsV2']=[],_0x234b72){for(var _0x352c74=Object['keys'](_0x234b72),_0x3403cb=0x0;_0x3403cb<_0x352c74['length'];++_0x3403cb)null!=_0x234b72[_0x352c74[_0x3403cb]]&&(this[_0x352c74[_0x3403cb]]=_0x234b72[_0x352c74[_0x3403cb]]);}}return _0x32f759['prototype']['threads']=_0x44b59b['emptyArray'],_0x32f759['prototype']['threadsV2']=_0x44b59b['emptyArray'],_0x32f759['create']=function(_0x40824e){return new _0x32f759(_0x40824e);},_0x32f759['encode']=function(_0x8b284,_0x5f2646){if(_0x5f2646||(_0x5f2646=_0x2e8075['create']()),null!=_0x8b284['threads']&&_0x8b284['threads']['length']){for(var _0x175805=0x0;_0x175805<_0x8b284['threads']['length'];++_0x175805)_0x5f2646['uint32'](0xa)['string'](_0x8b284['threads'][_0x175805]);}if(null!=_0x8b284['threadsV2']&&_0x8b284['threadsV2']['length']){for(_0x175805=0x0;_0x175805<_0x8b284['threadsV2']['length'];++_0x175805)_0x1429da['CommentsThreadDescriptor']['encode'](_0x8b284['threadsV2'][_0x175805],_0x5f2646['uint32'](0x12)['fork']())['ldelim']();}return _0x5f2646;},_0x32f759['encodeDelimited']=function(_0x106e4c,_0x528af4){return this['encode'](_0x106e4c,_0x528af4)['ldelim']();},_0x32f759['decode']=function(_0x159127,_0x2bfc4a,_0xff5b0c){_0x159127 instanceof _0x5e9c2f||(_0x159127=_0x5e9c2f['create'](_0x159127));for(var _0x157223=void 0x0===_0x2bfc4a?_0x159127['len']:_0x159127['pos']+_0x2bfc4a,_0x37732c=new _0x1429da['CommentsV2GetDocumentThreadsResponse']();_0x159127['pos']<_0x157223;){var _0x3711d7=_0x159127['uint32']();if(_0x3711d7===_0xff5b0c)break;switch(_0x3711d7>>>0x3){case 0x1:_0x37732c['threads']&&_0x37732c['threads']['length']||(_0x37732c['threads']=[]),_0x37732c['threads']['push'](_0x159127['string']());break;case 0x2:_0x37732c['threadsV2']&&_0x37732c['threadsV2']['length']||(_0x37732c['threadsV2']=[]),_0x37732c['threadsV2']['push'](_0x1429da['CommentsThreadDescriptor']['decode'](_0x159127,_0x159127['uint32']()));break;default:_0x159127['skipType'](0x7&_0x3711d7);}}return _0x37732c;},_0x32f759['decodeDelimited']=function(_0xc0ff32){return _0xc0ff32 instanceof _0x5e9c2f||(_0xc0ff32=new _0x5e9c2f(_0xc0ff32)),this['decode'](_0xc0ff32,_0xc0ff32['uint32']());},_0x32f759['verify']=function(_0x2ec718){if('object'!=typeof _0x2ec718||null===_0x2ec718)return'object\x20expected';if(null!=_0x2ec718['threads']&&_0x2ec718['hasOwnProperty']('threads')){if(!Array['isArray'](_0x2ec718['threads']))return'threads:\x20array\x20expected';for(var _0xfbb302=0x0;_0xfbb302<_0x2ec718['threads']['length'];++_0xfbb302)if(!_0x44b59b['isString'](_0x2ec718['threads'][_0xfbb302]))return'threads:\x20string[]\x20expected';}if(null!=_0x2ec718['threadsV2']&&_0x2ec718['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x2ec718['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0xfbb302=0x0;_0xfbb302<_0x2ec718['threadsV2']['length'];++_0xfbb302){var _0x6ba95a=_0x1429da['CommentsThreadDescriptor']['verify'](_0x2ec718['threadsV2'][_0xfbb302]);if(_0x6ba95a)return'threadsV2.'+_0x6ba95a;}}return null;},_0x32f759['fromObject']=function(_0x57200a){if(_0x57200a instanceof _0x1429da['CommentsV2GetDocumentThreadsResponse'])return _0x57200a;var _0x4d87b3=new _0x1429da['CommentsV2GetDocumentThreadsResponse']();if(_0x57200a['threads']){if(!Array['isArray'](_0x57200a['threads']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threads:\x20array\x20expected');_0x4d87b3['threads']=[];for(var _0x1b023f=0x0;_0x1b023f<_0x57200a['threads']['length'];++_0x1b023f)_0x4d87b3['threads'][_0x1b023f]=String(_0x57200a['threads'][_0x1b023f]);}if(_0x57200a['threadsV2']){if(!Array['isArray'](_0x57200a['threadsV2']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20array\x20expected');for(_0x4d87b3['threadsV2']=[],_0x1b023f=0x0;_0x1b023f<_0x57200a['threadsV2']['length'];++_0x1b023f){if('object'!=typeof _0x57200a['threadsV2'][_0x1b023f])throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20object\x20expected');_0x4d87b3['threadsV2'][_0x1b023f]=_0x1429da['CommentsThreadDescriptor']['fromObject'](_0x57200a['threadsV2'][_0x1b023f]);}}return _0x4d87b3;},_0x32f759['toObject']=function(_0x1a020f,_0x3d2043){_0x3d2043||(_0x3d2043={});var _0x14aa9f={};if((_0x3d2043['arrays']||_0x3d2043['defaults'])&&(_0x14aa9f['threads']=[],_0x14aa9f['threadsV2']=[]),_0x1a020f['threads']&&_0x1a020f['threads']['length']){_0x14aa9f['threads']=[];for(var _0x4d9015=0x0;_0x4d9015<_0x1a020f['threads']['length'];++_0x4d9015)_0x14aa9f['threads'][_0x4d9015]=_0x1a020f['threads'][_0x4d9015];}if(_0x1a020f['threadsV2']&&_0x1a020f['threadsV2']['length']){for(_0x14aa9f['threadsV2']=[],_0x4d9015=0x0;_0x4d9015<_0x1a020f['threadsV2']['length'];++_0x4d9015)_0x14aa9f['threadsV2'][_0x4d9015]=_0x1429da['CommentsThreadDescriptor']['toObject'](_0x1a020f['threadsV2'][_0x4d9015],_0x3d2043);}return _0x14aa9f;},_0x32f759['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x32f759['getTypeUrl']=function(_0x4c5ba2){return void 0x0===_0x4c5ba2&&(_0x4c5ba2='type.googleapis.com'),_0x4c5ba2+'/CommentsV2GetDocumentThreadsResponse';},_0x32f759;}()),_0x1429da['CommentsV2GetCommentThreadResponse']=(function(){function _0x418730(_0x92f9ad){if(this['comments']=[],this['commentsV2']=[],_0x92f9ad){for(var _0x351e94=Object['keys'](_0x92f9ad),_0x266aeb=0x0;_0x266aeb<_0x351e94['length'];++_0x266aeb)null!=_0x92f9ad[_0x351e94[_0x266aeb]]&&(this[_0x351e94[_0x266aeb]]=_0x92f9ad[_0x351e94[_0x266aeb]]);}}return _0x418730['prototype']['commentThreadId']='',_0x418730['prototype']['comments']=_0x44b59b['emptyArray'],_0x418730['prototype']['commentsV2']=_0x44b59b['emptyArray'],_0x418730['prototype']['resolvedAt']='',_0x418730['prototype']['resolvedBy']='',_0x418730['prototype']['context']='',_0x418730['prototype']['createdAt']='',_0x418730['prototype']['deletedAt']='',_0x418730['prototype']['attributes']='',_0x418730['prototype']['unlinkedAt']='',_0x418730['create']=function(_0x107d33){return new _0x418730(_0x107d33);},_0x418730['encode']=function(_0x450c1f,_0x291781){if(_0x291781||(_0x291781=_0x2e8075['create']()),null!=_0x450c1f['commentThreadId']&&Object['hasOwnProperty']['call'](_0x450c1f,'commentThreadId')&&_0x291781['uint32'](0xa)['string'](_0x450c1f['commentThreadId']),null!=_0x450c1f['comments']&&_0x450c1f['comments']['length']){for(var _0x272493=0x0;_0x272493<_0x450c1f['comments']['length'];++_0x272493)_0x291781['uint32'](0x12)['string'](_0x450c1f['comments'][_0x272493]);}if(null!=_0x450c1f['commentsV2']&&_0x450c1f['commentsV2']['length']){for(_0x272493=0x0;_0x272493<_0x450c1f['commentsV2']['length'];++_0x272493)_0x1429da['CommentDescriptor']['encode'](_0x450c1f['commentsV2'][_0x272493],_0x291781['uint32'](0x1a)['fork']())['ldelim']();}return null!=_0x450c1f['resolvedAt']&&Object['hasOwnProperty']['call'](_0x450c1f,'resolvedAt')&&_0x291781['uint32'](0x22)['string'](_0x450c1f['resolvedAt']),null!=_0x450c1f['resolvedBy']&&Object['hasOwnProperty']['call'](_0x450c1f,'resolvedBy')&&_0x291781['uint32'](0x2a)['string'](_0x450c1f['resolvedBy']),null!=_0x450c1f['context']&&Object['hasOwnProperty']['call'](_0x450c1f,'context')&&_0x291781['uint32'](0x32)['string'](_0x450c1f['context']),null!=_0x450c1f['createdAt']&&Object['hasOwnProperty']['call'](_0x450c1f,'createdAt')&&_0x291781['uint32'](0x3a)['string'](_0x450c1f['createdAt']),null!=_0x450c1f['deletedAt']&&Object['hasOwnProperty']['call'](_0x450c1f,'deletedAt')&&_0x291781['uint32'](0x42)['string'](_0x450c1f['deletedAt']),null!=_0x450c1f['attributes']&&Object['hasOwnProperty']['call'](_0x450c1f,'attributes')&&_0x291781['uint32'](0x4a)['string'](_0x450c1f['attributes']),null!=_0x450c1f['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x450c1f,'unlinkedAt')&&_0x291781['uint32'](0x52)['string'](_0x450c1f['unlinkedAt']),_0x291781;},_0x418730['encodeDelimited']=function(_0x2ffb0c,_0x406390){return this['encode'](_0x2ffb0c,_0x406390)['ldelim']();},_0x418730['decode']=function(_0x2cabe5,_0xb33855,_0x43c879){_0x2cabe5 instanceof _0x5e9c2f||(_0x2cabe5=_0x5e9c2f['create'](_0x2cabe5));for(var _0x109950=void 0x0===_0xb33855?_0x2cabe5['len']:_0x2cabe5['pos']+_0xb33855,_0x5c4413=new _0x1429da['CommentsV2GetCommentThreadResponse']();_0x2cabe5['pos']<_0x109950;){var _0x4a4b82=_0x2cabe5['uint32']();if(_0x4a4b82===_0x43c879)break;switch(_0x4a4b82>>>0x3){case 0x1:_0x5c4413['commentThreadId']=_0x2cabe5['string']();break;case 0x2:_0x5c4413['comments']&&_0x5c4413['comments']['length']||(_0x5c4413['comments']=[]),_0x5c4413['comments']['push'](_0x2cabe5['string']());break;case 0x3:_0x5c4413['commentsV2']&&_0x5c4413['commentsV2']['length']||(_0x5c4413['commentsV2']=[]),_0x5c4413['commentsV2']['push'](_0x1429da['CommentDescriptor']['decode'](_0x2cabe5,_0x2cabe5['uint32']()));break;case 0x4:_0x5c4413['resolvedAt']=_0x2cabe5['string']();break;case 0x5:_0x5c4413['resolvedBy']=_0x2cabe5['string']();break;case 0x6:_0x5c4413['context']=_0x2cabe5['string']();break;case 0x7:_0x5c4413['createdAt']=_0x2cabe5['string']();break;case 0x8:_0x5c4413['deletedAt']=_0x2cabe5['string']();break;case 0x9:_0x5c4413['attributes']=_0x2cabe5['string']();break;case 0xa:_0x5c4413['unlinkedAt']=_0x2cabe5['string']();break;default:_0x2cabe5['skipType'](0x7&_0x4a4b82);}}return _0x5c4413;},_0x418730['decodeDelimited']=function(_0x1e4f4e){return _0x1e4f4e instanceof _0x5e9c2f||(_0x1e4f4e=new _0x5e9c2f(_0x1e4f4e)),this['decode'](_0x1e4f4e,_0x1e4f4e['uint32']());},_0x418730['verify']=function(_0x358378){if('object'!=typeof _0x358378||null===_0x358378)return'object\x20expected';if(null!=_0x358378['commentThreadId']&&_0x358378['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x358378['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x358378['comments']&&_0x358378['hasOwnProperty']('comments')){if(!Array['isArray'](_0x358378['comments']))return'comments:\x20array\x20expected';for(var _0x13da8d=0x0;_0x13da8d<_0x358378['comments']['length'];++_0x13da8d)if(!_0x44b59b['isString'](_0x358378['comments'][_0x13da8d]))return'comments:\x20string[]\x20expected';}if(null!=_0x358378['commentsV2']&&_0x358378['hasOwnProperty']('commentsV2')){if(!Array['isArray'](_0x358378['commentsV2']))return'commentsV2:\x20array\x20expected';for(_0x13da8d=0x0;_0x13da8d<_0x358378['commentsV2']['length'];++_0x13da8d){var _0x31a4c8=_0x1429da['CommentDescriptor']['verify'](_0x358378['commentsV2'][_0x13da8d]);if(_0x31a4c8)return'commentsV2.'+_0x31a4c8;}}return null!=_0x358378['resolvedAt']&&_0x358378['hasOwnProperty']('resolvedAt')&&!_0x44b59b['isString'](_0x358378['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x358378['resolvedBy']&&_0x358378['hasOwnProperty']('resolvedBy')&&!_0x44b59b['isString'](_0x358378['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x358378['context']&&_0x358378['hasOwnProperty']('context')&&!_0x44b59b['isString'](_0x358378['context'])?'context:\x20string\x20expected':null!=_0x358378['createdAt']&&_0x358378['hasOwnProperty']('createdAt')&&!_0x44b59b['isString'](_0x358378['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x358378['deletedAt']&&_0x358378['hasOwnProperty']('deletedAt')&&!_0x44b59b['isString'](_0x358378['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x358378['attributes']&&_0x358378['hasOwnProperty']('attributes')&&!_0x44b59b['isString'](_0x358378['attributes'])?'attributes:\x20string\x20expected':null!=_0x358378['unlinkedAt']&&_0x358378['hasOwnProperty']('unlinkedAt')&&!_0x44b59b['isString'](_0x358378['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x418730['fromObject']=function(_0x5b7d52){if(_0x5b7d52 instanceof _0x1429da['CommentsV2GetCommentThreadResponse'])return _0x5b7d52;var _0x7ba38=new _0x1429da['CommentsV2GetCommentThreadResponse']();if(null!=_0x5b7d52['commentThreadId']&&(_0x7ba38['commentThreadId']=String(_0x5b7d52['commentThreadId'])),_0x5b7d52['comments']){if(!Array['isArray'](_0x5b7d52['comments']))throw TypeError('.CommentsV2GetCommentThreadResponse.comments:\x20array\x20expected');_0x7ba38['comments']=[];for(var _0x452bd9=0x0;_0x452bd9<_0x5b7d52['comments']['length'];++_0x452bd9)_0x7ba38['comments'][_0x452bd9]=String(_0x5b7d52['comments'][_0x452bd9]);}if(_0x5b7d52['commentsV2']){if(!Array['isArray'](_0x5b7d52['commentsV2']))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20array\x20expected');for(_0x7ba38['commentsV2']=[],_0x452bd9=0x0;_0x452bd9<_0x5b7d52['commentsV2']['length'];++_0x452bd9){if('object'!=typeof _0x5b7d52['commentsV2'][_0x452bd9])throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20object\x20expected');_0x7ba38['commentsV2'][_0x452bd9]=_0x1429da['CommentDescriptor']['fromObject'](_0x5b7d52['commentsV2'][_0x452bd9]);}}return null!=_0x5b7d52['resolvedAt']&&(_0x7ba38['resolvedAt']=String(_0x5b7d52['resolvedAt'])),null!=_0x5b7d52['resolvedBy']&&(_0x7ba38['resolvedBy']=String(_0x5b7d52['resolvedBy'])),null!=_0x5b7d52['context']&&(_0x7ba38['context']=String(_0x5b7d52['context'])),null!=_0x5b7d52['createdAt']&&(_0x7ba38['createdAt']=String(_0x5b7d52['createdAt'])),null!=_0x5b7d52['deletedAt']&&(_0x7ba38['deletedAt']=String(_0x5b7d52['deletedAt'])),null!=_0x5b7d52['attributes']&&(_0x7ba38['attributes']=String(_0x5b7d52['attributes'])),null!=_0x5b7d52['unlinkedAt']&&(_0x7ba38['unlinkedAt']=String(_0x5b7d52['unlinkedAt'])),_0x7ba38;},_0x418730['toObject']=function(_0x41e3fa,_0x3ec484){_0x3ec484||(_0x3ec484={});var _0x5bed4a={};if((_0x3ec484['arrays']||_0x3ec484['defaults'])&&(_0x5bed4a['comments']=[],_0x5bed4a['commentsV2']=[]),_0x3ec484['defaults']&&(_0x5bed4a['commentThreadId']='',_0x5bed4a['resolvedAt']='',_0x5bed4a['resolvedBy']='',_0x5bed4a['context']='',_0x5bed4a['createdAt']='',_0x5bed4a['deletedAt']='',_0x5bed4a['attributes']='',_0x5bed4a['unlinkedAt']=''),null!=_0x41e3fa['commentThreadId']&&_0x41e3fa['hasOwnProperty']('commentThreadId')&&(_0x5bed4a['commentThreadId']=_0x41e3fa['commentThreadId']),_0x41e3fa['comments']&&_0x41e3fa['comments']['length']){_0x5bed4a['comments']=[];for(var _0x5a1673=0x0;_0x5a1673<_0x41e3fa['comments']['length'];++_0x5a1673)_0x5bed4a['comments'][_0x5a1673]=_0x41e3fa['comments'][_0x5a1673];}if(_0x41e3fa['commentsV2']&&_0x41e3fa['commentsV2']['length']){for(_0x5bed4a['commentsV2']=[],_0x5a1673=0x0;_0x5a1673<_0x41e3fa['commentsV2']['length'];++_0x5a1673)_0x5bed4a['commentsV2'][_0x5a1673]=_0x1429da['CommentDescriptor']['toObject'](_0x41e3fa['commentsV2'][_0x5a1673],_0x3ec484);}return null!=_0x41e3fa['resolvedAt']&&_0x41e3fa['hasOwnProperty']('resolvedAt')&&(_0x5bed4a['resolvedAt']=_0x41e3fa['resolvedAt']),null!=_0x41e3fa['resolvedBy']&&_0x41e3fa['hasOwnProperty']('resolvedBy')&&(_0x5bed4a['resolvedBy']=_0x41e3fa['resolvedBy']),null!=_0x41e3fa['context']&&_0x41e3fa['hasOwnProperty']('context')&&(_0x5bed4a['context']=_0x41e3fa['context']),null!=_0x41e3fa['createdAt']&&_0x41e3fa['hasOwnProperty']('createdAt')&&(_0x5bed4a['createdAt']=_0x41e3fa['createdAt']),null!=_0x41e3fa['deletedAt']&&_0x41e3fa['hasOwnProperty']('deletedAt')&&(_0x5bed4a['deletedAt']=_0x41e3fa['deletedAt']),null!=_0x41e3fa['attributes']&&_0x41e3fa['hasOwnProperty']('attributes')&&(_0x5bed4a['attributes']=_0x41e3fa['attributes']),null!=_0x41e3fa['unlinkedAt']&&_0x41e3fa['hasOwnProperty']('unlinkedAt')&&(_0x5bed4a['unlinkedAt']=_0x41e3fa['unlinkedAt']),_0x5bed4a;},_0x418730['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x418730['getTypeUrl']=function(_0x1dcc9c){return void 0x0===_0x1dcc9c&&(_0x1dcc9c='type.googleapis.com'),_0x1dcc9c+'/CommentsV2GetCommentThreadResponse';},_0x418730;}()),_0x1429da['CommentsV2ConnectResponse']=(function(){function _0xb68432(_0x26b072){if(this['threads']=[],this['threadsV2']=[],_0x26b072){for(var _0x2769ce=Object['keys'](_0x26b072),_0x112294=0x0;_0x112294<_0x2769ce['length'];++_0x112294)null!=_0x26b072[_0x2769ce[_0x112294]]&&(this[_0x2769ce[_0x112294]]=_0x26b072[_0x2769ce[_0x112294]]);}}return _0xb68432['prototype']['channel']='',_0xb68432['prototype']['threads']=_0x44b59b['emptyArray'],_0xb68432['prototype']['threadsV2']=_0x44b59b['emptyArray'],_0xb68432['create']=function(_0x57c85a){return new _0xb68432(_0x57c85a);},_0xb68432['encode']=function(_0x2b471e,_0x2c8480){if(_0x2c8480||(_0x2c8480=_0x2e8075['create']()),null!=_0x2b471e['channel']&&Object['hasOwnProperty']['call'](_0x2b471e,'channel')&&_0x2c8480['uint32'](0xa)['string'](_0x2b471e['channel']),null!=_0x2b471e['threads']&&_0x2b471e['threads']['length']){for(var _0x5782e0=0x0;_0x5782e0<_0x2b471e['threads']['length'];++_0x5782e0)_0x2c8480['uint32'](0x12)['string'](_0x2b471e['threads'][_0x5782e0]);}if(null!=_0x2b471e['threadsV2']&&_0x2b471e['threadsV2']['length']){for(_0x5782e0=0x0;_0x5782e0<_0x2b471e['threadsV2']['length'];++_0x5782e0)_0x1429da['CommentsThreadDescriptor']['encode'](_0x2b471e['threadsV2'][_0x5782e0],_0x2c8480['uint32'](0x1a)['fork']())['ldelim']();}return _0x2c8480;},_0xb68432['encodeDelimited']=function(_0x51a788,_0x233793){return this['encode'](_0x51a788,_0x233793)['ldelim']();},_0xb68432['decode']=function(_0x8cef95,_0x3c169f,_0x4c829d){_0x8cef95 instanceof _0x5e9c2f||(_0x8cef95=_0x5e9c2f['create'](_0x8cef95));for(var _0x27fa2c=void 0x0===_0x3c169f?_0x8cef95['len']:_0x8cef95['pos']+_0x3c169f,_0x1b41b7=new _0x1429da['CommentsV2ConnectResponse']();_0x8cef95['pos']<_0x27fa2c;){var _0x2fea82=_0x8cef95['uint32']();if(_0x2fea82===_0x4c829d)break;switch(_0x2fea82>>>0x3){case 0x1:_0x1b41b7['channel']=_0x8cef95['string']();break;case 0x2:_0x1b41b7['threads']&&_0x1b41b7['threads']['length']||(_0x1b41b7['threads']=[]),_0x1b41b7['threads']['push'](_0x8cef95['string']());break;case 0x3:_0x1b41b7['threadsV2']&&_0x1b41b7['threadsV2']['length']||(_0x1b41b7['threadsV2']=[]),_0x1b41b7['threadsV2']['push'](_0x1429da['CommentsThreadDescriptor']['decode'](_0x8cef95,_0x8cef95['uint32']()));break;default:_0x8cef95['skipType'](0x7&_0x2fea82);}}return _0x1b41b7;},_0xb68432['decodeDelimited']=function(_0x41f3ba){return _0x41f3ba instanceof _0x5e9c2f||(_0x41f3ba=new _0x5e9c2f(_0x41f3ba)),this['decode'](_0x41f3ba,_0x41f3ba['uint32']());},_0xb68432['verify']=function(_0x589b6d){if('object'!=typeof _0x589b6d||null===_0x589b6d)return'object\x20expected';if(null!=_0x589b6d['channel']&&_0x589b6d['hasOwnProperty']('channel')&&!_0x44b59b['isString'](_0x589b6d['channel']))return'channel:\x20string\x20expected';if(null!=_0x589b6d['threads']&&_0x589b6d['hasOwnProperty']('threads')){if(!Array['isArray'](_0x589b6d['threads']))return'threads:\x20array\x20expected';for(var _0x36f923=0x0;_0x36f923<_0x589b6d['threads']['length'];++_0x36f923)if(!_0x44b59b['isString'](_0x589b6d['threads'][_0x36f923]))return'threads:\x20string[]\x20expected';}if(null!=_0x589b6d['threadsV2']&&_0x589b6d['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x589b6d['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x36f923=0x0;_0x36f923<_0x589b6d['threadsV2']['length'];++_0x36f923){var _0x2c206e=_0x1429da['CommentsThreadDescriptor']['verify'](_0x589b6d['threadsV2'][_0x36f923]);if(_0x2c206e)return'threadsV2.'+_0x2c206e;}}return null;},_0xb68432['fromObject']=function(_0x43728c){if(_0x43728c instanceof _0x1429da['CommentsV2ConnectResponse'])return _0x43728c;var _0x5f2058=new _0x1429da['CommentsV2ConnectResponse']();if(null!=_0x43728c['channel']&&(_0x5f2058['channel']=String(_0x43728c['channel'])),_0x43728c['threads']){if(!Array['isArray'](_0x43728c['threads']))throw TypeError('.CommentsV2ConnectResponse.threads:\x20array\x20expected');_0x5f2058['threads']=[];for(var _0x34e052=0x0;_0x34e052<_0x43728c['threads']['length'];++_0x34e052)_0x5f2058['threads'][_0x34e052]=String(_0x43728c['threads'][_0x34e052]);}if(_0x43728c['threadsV2']){if(!Array['isArray'](_0x43728c['threadsV2']))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20array\x20expected');for(_0x5f2058['threadsV2']=[],_0x34e052=0x0;_0x34e052<_0x43728c['threadsV2']['length'];++_0x34e052){if('object'!=typeof _0x43728c['threadsV2'][_0x34e052])throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20object\x20expected');_0x5f2058['threadsV2'][_0x34e052]=_0x1429da['CommentsThreadDescriptor']['fromObject'](_0x43728c['threadsV2'][_0x34e052]);}}return _0x5f2058;},_0xb68432['toObject']=function(_0x27b88e,_0xaf4548){_0xaf4548||(_0xaf4548={});var _0x1dbe75={};if((_0xaf4548['arrays']||_0xaf4548['defaults'])&&(_0x1dbe75['threads']=[],_0x1dbe75['threadsV2']=[]),_0xaf4548['defaults']&&(_0x1dbe75['channel']=''),null!=_0x27b88e['channel']&&_0x27b88e['hasOwnProperty']('channel')&&(_0x1dbe75['channel']=_0x27b88e['channel']),_0x27b88e['threads']&&_0x27b88e['threads']['length']){_0x1dbe75['threads']=[];for(var _0x42583=0x0;_0x42583<_0x27b88e['threads']['length'];++_0x42583)_0x1dbe75['threads'][_0x42583]=_0x27b88e['threads'][_0x42583];}if(_0x27b88e['threadsV2']&&_0x27b88e['threadsV2']['length']){for(_0x1dbe75['threadsV2']=[],_0x42583=0x0;_0x42583<_0x27b88e['threadsV2']['length'];++_0x42583)_0x1dbe75['threadsV2'][_0x42583]=_0x1429da['CommentsThreadDescriptor']['toObject'](_0x27b88e['threadsV2'][_0x42583],_0xaf4548);}return _0x1dbe75;},_0xb68432['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xb68432['getTypeUrl']=function(_0x2aea7f){return void 0x0===_0x2aea7f&&(_0x2aea7f='type.googleapis.com'),_0x2aea7f+'/CommentsV2ConnectResponse';},_0xb68432;}()),_0x1429da['CommentsV2AddCommentResponse']=(function(){function _0x5d630c(_0x1a89d4){if(_0x1a89d4){for(var _0x517b69=Object['keys'](_0x1a89d4),_0x35f07a=0x0;_0x35f07a<_0x517b69['length'];++_0x35f07a)null!=_0x1a89d4[_0x517b69[_0x35f07a]]&&(this[_0x517b69[_0x35f07a]]=_0x1a89d4[_0x517b69[_0x35f07a]]);}}return _0x5d630c['prototype']['commentThreadId']='',_0x5d630c['prototype']['commentId']='',_0x5d630c['prototype']['createdAt']='',_0x5d630c['create']=function(_0x547233){return new _0x5d630c(_0x547233);},_0x5d630c['encode']=function(_0x1e3c6e,_0x661605){return _0x661605||(_0x661605=_0x2e8075['create']()),null!=_0x1e3c6e['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1e3c6e,'commentThreadId')&&_0x661605['uint32'](0xa)['string'](_0x1e3c6e['commentThreadId']),null!=_0x1e3c6e['commentId']&&Object['hasOwnProperty']['call'](_0x1e3c6e,'commentId')&&_0x661605['uint32'](0x12)['string'](_0x1e3c6e['commentId']),null!=_0x1e3c6e['createdAt']&&Object['hasOwnProperty']['call'](_0x1e3c6e,'createdAt')&&_0x661605['uint32'](0x1a)['string'](_0x1e3c6e['createdAt']),_0x661605;},_0x5d630c['encodeDelimited']=function(_0xc4b345,_0x3d7f01){return this['encode'](_0xc4b345,_0x3d7f01)['ldelim']();},_0x5d630c['decode']=function(_0x4f8c68,_0x5b46ec,_0x1c5eec){_0x4f8c68 instanceof _0x5e9c2f||(_0x4f8c68=_0x5e9c2f['create'](_0x4f8c68));for(var _0x159f7e=void 0x0===_0x5b46ec?_0x4f8c68['len']:_0x4f8c68['pos']+_0x5b46ec,_0x5efbe8=new _0x1429da['CommentsV2AddCommentResponse']();_0x4f8c68['pos']<_0x159f7e;){var _0x3b067e=_0x4f8c68['uint32']();if(_0x3b067e===_0x1c5eec)break;switch(_0x3b067e>>>0x3){case 0x1:_0x5efbe8['commentThreadId']=_0x4f8c68['string']();break;case 0x2:_0x5efbe8['commentId']=_0x4f8c68['string']();break;case 0x3:_0x5efbe8['createdAt']=_0x4f8c68['string']();break;default:_0x4f8c68['skipType'](0x7&_0x3b067e);}}return _0x5efbe8;},_0x5d630c['decodeDelimited']=function(_0x33e23a){return _0x33e23a instanceof _0x5e9c2f||(_0x33e23a=new _0x5e9c2f(_0x33e23a)),this['decode'](_0x33e23a,_0x33e23a['uint32']());},_0x5d630c['verify']=function(_0x33eaf3){return'object'!=typeof _0x33eaf3||null===_0x33eaf3?'object\x20expected':null!=_0x33eaf3['commentThreadId']&&_0x33eaf3['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x33eaf3['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x33eaf3['commentId']&&_0x33eaf3['hasOwnProperty']('commentId')&&!_0x44b59b['isString'](_0x33eaf3['commentId'])?'commentId:\x20string\x20expected':null!=_0x33eaf3['createdAt']&&_0x33eaf3['hasOwnProperty']('createdAt')&&!_0x44b59b['isString'](_0x33eaf3['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x5d630c['fromObject']=function(_0x47fb28){if(_0x47fb28 instanceof _0x1429da['CommentsV2AddCommentResponse'])return _0x47fb28;var _0x22f875=new _0x1429da['CommentsV2AddCommentResponse']();return null!=_0x47fb28['commentThreadId']&&(_0x22f875['commentThreadId']=String(_0x47fb28['commentThreadId'])),null!=_0x47fb28['commentId']&&(_0x22f875['commentId']=String(_0x47fb28['commentId'])),null!=_0x47fb28['createdAt']&&(_0x22f875['createdAt']=String(_0x47fb28['createdAt'])),_0x22f875;},_0x5d630c['toObject']=function(_0x4f120b,_0xdee3d4){_0xdee3d4||(_0xdee3d4={});var _0x70cf2d={};return _0xdee3d4['defaults']&&(_0x70cf2d['commentThreadId']='',_0x70cf2d['commentId']='',_0x70cf2d['createdAt']=''),null!=_0x4f120b['commentThreadId']&&_0x4f120b['hasOwnProperty']('commentThreadId')&&(_0x70cf2d['commentThreadId']=_0x4f120b['commentThreadId']),null!=_0x4f120b['commentId']&&_0x4f120b['hasOwnProperty']('commentId')&&(_0x70cf2d['commentId']=_0x4f120b['commentId']),null!=_0x4f120b['createdAt']&&_0x4f120b['hasOwnProperty']('createdAt')&&(_0x70cf2d['createdAt']=_0x4f120b['createdAt']),_0x70cf2d;},_0x5d630c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5d630c['getTypeUrl']=function(_0x4826df){return void 0x0===_0x4826df&&(_0x4826df='type.googleapis.com'),_0x4826df+'/CommentsV2AddCommentResponse';},_0x5d630c;}()),_0x1429da['CommentsV2ResolveCommentThreadResponse']=(function(){function _0x3ef399(_0x1eba53){if(_0x1eba53){for(var _0x5c8d8a=Object['keys'](_0x1eba53),_0x49331d=0x0;_0x49331d<_0x5c8d8a['length'];++_0x49331d)null!=_0x1eba53[_0x5c8d8a[_0x49331d]]&&(this[_0x5c8d8a[_0x49331d]]=_0x1eba53[_0x5c8d8a[_0x49331d]]);}}return _0x3ef399['prototype']['commentThreadId']='',_0x3ef399['prototype']['documentId']='',_0x3ef399['prototype']['resolvedAt']='',_0x3ef399['prototype']['resolvedBy']='',_0x3ef399['create']=function(_0x27e4a4){return new _0x3ef399(_0x27e4a4);},_0x3ef399['encode']=function(_0x35ce16,_0x303f8a){return _0x303f8a||(_0x303f8a=_0x2e8075['create']()),null!=_0x35ce16['commentThreadId']&&Object['hasOwnProperty']['call'](_0x35ce16,'commentThreadId')&&_0x303f8a['uint32'](0xa)['string'](_0x35ce16['commentThreadId']),null!=_0x35ce16['documentId']&&Object['hasOwnProperty']['call'](_0x35ce16,'documentId')&&_0x303f8a['uint32'](0x12)['string'](_0x35ce16['documentId']),null!=_0x35ce16['resolvedAt']&&Object['hasOwnProperty']['call'](_0x35ce16,'resolvedAt')&&_0x303f8a['uint32'](0x1a)['string'](_0x35ce16['resolvedAt']),null!=_0x35ce16['resolvedBy']&&Object['hasOwnProperty']['call'](_0x35ce16,'resolvedBy')&&_0x303f8a['uint32'](0x22)['string'](_0x35ce16['resolvedBy']),_0x303f8a;},_0x3ef399['encodeDelimited']=function(_0x14b78a,_0x519091){return this['encode'](_0x14b78a,_0x519091)['ldelim']();},_0x3ef399['decode']=function(_0x5befb8,_0x179e80,_0x11ba79){_0x5befb8 instanceof _0x5e9c2f||(_0x5befb8=_0x5e9c2f['create'](_0x5befb8));for(var _0x1b9de8=void 0x0===_0x179e80?_0x5befb8['len']:_0x5befb8['pos']+_0x179e80,_0xf4e3b7=new _0x1429da['CommentsV2ResolveCommentThreadResponse']();_0x5befb8['pos']<_0x1b9de8;){var _0x4b7b44=_0x5befb8['uint32']();if(_0x4b7b44===_0x11ba79)break;switch(_0x4b7b44>>>0x3){case 0x1:_0xf4e3b7['commentThreadId']=_0x5befb8['string']();break;case 0x2:_0xf4e3b7['documentId']=_0x5befb8['string']();break;case 0x3:_0xf4e3b7['resolvedAt']=_0x5befb8['string']();break;case 0x4:_0xf4e3b7['resolvedBy']=_0x5befb8['string']();break;default:_0x5befb8['skipType'](0x7&_0x4b7b44);}}return _0xf4e3b7;},_0x3ef399['decodeDelimited']=function(_0x348eef){return _0x348eef instanceof _0x5e9c2f||(_0x348eef=new _0x5e9c2f(_0x348eef)),this['decode'](_0x348eef,_0x348eef['uint32']());},_0x3ef399['verify']=function(_0x37d4e2){return'object'!=typeof _0x37d4e2||null===_0x37d4e2?'object\x20expected':null!=_0x37d4e2['commentThreadId']&&_0x37d4e2['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x37d4e2['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x37d4e2['documentId']&&_0x37d4e2['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x37d4e2['documentId'])?'documentId:\x20string\x20expected':null!=_0x37d4e2['resolvedAt']&&_0x37d4e2['hasOwnProperty']('resolvedAt')&&!_0x44b59b['isString'](_0x37d4e2['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x37d4e2['resolvedBy']&&_0x37d4e2['hasOwnProperty']('resolvedBy')&&!_0x44b59b['isString'](_0x37d4e2['resolvedBy'])?'resolvedBy:\x20string\x20expected':null;},_0x3ef399['fromObject']=function(_0x340169){if(_0x340169 instanceof _0x1429da['CommentsV2ResolveCommentThreadResponse'])return _0x340169;var _0x3ef574=new _0x1429da['CommentsV2ResolveCommentThreadResponse']();return null!=_0x340169['commentThreadId']&&(_0x3ef574['commentThreadId']=String(_0x340169['commentThreadId'])),null!=_0x340169['documentId']&&(_0x3ef574['documentId']=String(_0x340169['documentId'])),null!=_0x340169['resolvedAt']&&(_0x3ef574['resolvedAt']=String(_0x340169['resolvedAt'])),null!=_0x340169['resolvedBy']&&(_0x3ef574['resolvedBy']=String(_0x340169['resolvedBy'])),_0x3ef574;},_0x3ef399['toObject']=function(_0x58863f,_0x9a792c){_0x9a792c||(_0x9a792c={});var _0x49a467={};return _0x9a792c['defaults']&&(_0x49a467['commentThreadId']='',_0x49a467['documentId']='',_0x49a467['resolvedAt']='',_0x49a467['resolvedBy']=''),null!=_0x58863f['commentThreadId']&&_0x58863f['hasOwnProperty']('commentThreadId')&&(_0x49a467['commentThreadId']=_0x58863f['commentThreadId']),null!=_0x58863f['documentId']&&_0x58863f['hasOwnProperty']('documentId')&&(_0x49a467['documentId']=_0x58863f['documentId']),null!=_0x58863f['resolvedAt']&&_0x58863f['hasOwnProperty']('resolvedAt')&&(_0x49a467['resolvedAt']=_0x58863f['resolvedAt']),null!=_0x58863f['resolvedBy']&&_0x58863f['hasOwnProperty']('resolvedBy')&&(_0x49a467['resolvedBy']=_0x58863f['resolvedBy']),_0x49a467;},_0x3ef399['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3ef399['getTypeUrl']=function(_0x354016){return void 0x0===_0x354016&&(_0x354016='type.googleapis.com'),_0x354016+'/CommentsV2ResolveCommentThreadResponse';},_0x3ef399;}()),_0x1429da['CommentsV2AddCommentThreadResponse']=(function(){function _0x145a69(_0x5792b9){if(this['comments']=[],_0x5792b9){for(var _0x57a156=Object['keys'](_0x5792b9),_0x323ee5=0x0;_0x323ee5<_0x57a156['length'];++_0x323ee5)null!=_0x5792b9[_0x57a156[_0x323ee5]]&&(this[_0x57a156[_0x323ee5]]=_0x5792b9[_0x57a156[_0x323ee5]]);}}return _0x145a69['prototype']['commentThreadId']='',_0x145a69['prototype']['createdAt']='',_0x145a69['prototype']['comments']=_0x44b59b['emptyArray'],_0x145a69['create']=function(_0x1d1e33){return new _0x145a69(_0x1d1e33);},_0x145a69['encode']=function(_0xb108ed,_0x5e4962){if(_0x5e4962||(_0x5e4962=_0x2e8075['create']()),null!=_0xb108ed['commentThreadId']&&Object['hasOwnProperty']['call'](_0xb108ed,'commentThreadId')&&_0x5e4962['uint32'](0xa)['string'](_0xb108ed['commentThreadId']),null!=_0xb108ed['createdAt']&&Object['hasOwnProperty']['call'](_0xb108ed,'createdAt')&&_0x5e4962['uint32'](0x12)['string'](_0xb108ed['createdAt']),null!=_0xb108ed['comments']&&_0xb108ed['comments']['length']){for(var _0x4ec6cc=0x0;_0x4ec6cc<_0xb108ed['comments']['length'];++_0x4ec6cc)_0x1429da['CommentThreadAddedCommentDescriptor']['encode'](_0xb108ed['comments'][_0x4ec6cc],_0x5e4962['uint32'](0x1a)['fork']())['ldelim']();}return _0x5e4962;},_0x145a69['encodeDelimited']=function(_0x42dfe3,_0x50b9c3){return this['encode'](_0x42dfe3,_0x50b9c3)['ldelim']();},_0x145a69['decode']=function(_0x3c6904,_0x339b13,_0x356c79){_0x3c6904 instanceof _0x5e9c2f||(_0x3c6904=_0x5e9c2f['create'](_0x3c6904));for(var _0x42152e=void 0x0===_0x339b13?_0x3c6904['len']:_0x3c6904['pos']+_0x339b13,_0x3b047e=new _0x1429da['CommentsV2AddCommentThreadResponse']();_0x3c6904['pos']<_0x42152e;){var _0x2c4ad6=_0x3c6904['uint32']();if(_0x2c4ad6===_0x356c79)break;switch(_0x2c4ad6>>>0x3){case 0x1:_0x3b047e['commentThreadId']=_0x3c6904['string']();break;case 0x2:_0x3b047e['createdAt']=_0x3c6904['string']();break;case 0x3:_0x3b047e['comments']&&_0x3b047e['comments']['length']||(_0x3b047e['comments']=[]),_0x3b047e['comments']['push'](_0x1429da['CommentThreadAddedCommentDescriptor']['decode'](_0x3c6904,_0x3c6904['uint32']()));break;default:_0x3c6904['skipType'](0x7&_0x2c4ad6);}}return _0x3b047e;},_0x145a69['decodeDelimited']=function(_0x128136){return _0x128136 instanceof _0x5e9c2f||(_0x128136=new _0x5e9c2f(_0x128136)),this['decode'](_0x128136,_0x128136['uint32']());},_0x145a69['verify']=function(_0x18c404){if('object'!=typeof _0x18c404||null===_0x18c404)return'object\x20expected';if(null!=_0x18c404['commentThreadId']&&_0x18c404['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x18c404['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x18c404['createdAt']&&_0x18c404['hasOwnProperty']('createdAt')&&!_0x44b59b['isString'](_0x18c404['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x18c404['comments']&&_0x18c404['hasOwnProperty']('comments')){if(!Array['isArray'](_0x18c404['comments']))return'comments:\x20array\x20expected';for(var _0xaea5ab=0x0;_0xaea5ab<_0x18c404['comments']['length'];++_0xaea5ab){var _0x34d447=_0x1429da['CommentThreadAddedCommentDescriptor']['verify'](_0x18c404['comments'][_0xaea5ab]);if(_0x34d447)return'comments.'+_0x34d447;}}return null;},_0x145a69['fromObject']=function(_0x3f02a5){if(_0x3f02a5 instanceof _0x1429da['CommentsV2AddCommentThreadResponse'])return _0x3f02a5;var _0x460eb1=new _0x1429da['CommentsV2AddCommentThreadResponse']();if(null!=_0x3f02a5['commentThreadId']&&(_0x460eb1['commentThreadId']=String(_0x3f02a5['commentThreadId'])),null!=_0x3f02a5['createdAt']&&(_0x460eb1['createdAt']=String(_0x3f02a5['createdAt'])),_0x3f02a5['comments']){if(!Array['isArray'](_0x3f02a5['comments']))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20array\x20expected');_0x460eb1['comments']=[];for(var _0x2bffac=0x0;_0x2bffac<_0x3f02a5['comments']['length'];++_0x2bffac){if('object'!=typeof _0x3f02a5['comments'][_0x2bffac])throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20object\x20expected');_0x460eb1['comments'][_0x2bffac]=_0x1429da['CommentThreadAddedCommentDescriptor']['fromObject'](_0x3f02a5['comments'][_0x2bffac]);}}return _0x460eb1;},_0x145a69['toObject']=function(_0x427f25,_0xd3d865){_0xd3d865||(_0xd3d865={});var _0x4101f7={};if((_0xd3d865['arrays']||_0xd3d865['defaults'])&&(_0x4101f7['comments']=[]),_0xd3d865['defaults']&&(_0x4101f7['commentThreadId']='',_0x4101f7['createdAt']=''),null!=_0x427f25['commentThreadId']&&_0x427f25['hasOwnProperty']('commentThreadId')&&(_0x4101f7['commentThreadId']=_0x427f25['commentThreadId']),null!=_0x427f25['createdAt']&&_0x427f25['hasOwnProperty']('createdAt')&&(_0x4101f7['createdAt']=_0x427f25['createdAt']),_0x427f25['comments']&&_0x427f25['comments']['length']){_0x4101f7['comments']=[];for(var _0x3770f2=0x0;_0x3770f2<_0x427f25['comments']['length'];++_0x3770f2)_0x4101f7['comments'][_0x3770f2]=_0x1429da['CommentThreadAddedCommentDescriptor']['toObject'](_0x427f25['comments'][_0x3770f2],_0xd3d865);}return _0x4101f7;},_0x145a69['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x145a69['getTypeUrl']=function(_0x253086){return void 0x0===_0x253086&&(_0x253086='type.googleapis.com'),_0x253086+'/CommentsV2AddCommentThreadResponse';},_0x145a69;}()),_0x1429da['CommentsV2UpdateCommentMessage']=(function(){function _0x2f4af8(_0x2c1bb7){if(_0x2c1bb7){for(var _0x55ae54=Object['keys'](_0x2c1bb7),_0x484cd2=0x0;_0x484cd2<_0x55ae54['length'];++_0x484cd2)null!=_0x2c1bb7[_0x55ae54[_0x484cd2]]&&(this[_0x55ae54[_0x484cd2]]=_0x2c1bb7[_0x55ae54[_0x484cd2]]);}}return _0x2f4af8['prototype']['commentThreadId']='',_0x2f4af8['prototype']['commentId']='',_0x2f4af8['prototype']['content']='',_0x2f4af8['prototype']['documentId']='',_0x2f4af8['prototype']['attributes']='',_0x2f4af8['prototype']['isAttributesUpdated']=!0x1,_0x2f4af8['prototype']['commentThread']=null,_0x2f4af8['create']=function(_0x3a1d63){return new _0x2f4af8(_0x3a1d63);},_0x2f4af8['encode']=function(_0x3af730,_0x589a90){return _0x589a90||(_0x589a90=_0x2e8075['create']()),null!=_0x3af730['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3af730,'commentThreadId')&&_0x589a90['uint32'](0xa)['string'](_0x3af730['commentThreadId']),null!=_0x3af730['commentId']&&Object['hasOwnProperty']['call'](_0x3af730,'commentId')&&_0x589a90['uint32'](0x12)['string'](_0x3af730['commentId']),null!=_0x3af730['content']&&Object['hasOwnProperty']['call'](_0x3af730,'content')&&_0x589a90['uint32'](0x1a)['string'](_0x3af730['content']),null!=_0x3af730['documentId']&&Object['hasOwnProperty']['call'](_0x3af730,'documentId')&&_0x589a90['uint32'](0x22)['string'](_0x3af730['documentId']),null!=_0x3af730['attributes']&&Object['hasOwnProperty']['call'](_0x3af730,'attributes')&&_0x589a90['uint32'](0x2a)['string'](_0x3af730['attributes']),null!=_0x3af730['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x3af730,'isAttributesUpdated')&&_0x589a90['uint32'](0x30)['bool'](_0x3af730['isAttributesUpdated']),null!=_0x3af730['commentThread']&&Object['hasOwnProperty']['call'](_0x3af730,'commentThread')&&_0x1429da['CommentsThreadDescriptor']['encode'](_0x3af730['commentThread'],_0x589a90['uint32'](0x3a)['fork']())['ldelim'](),_0x589a90;},_0x2f4af8['encodeDelimited']=function(_0x5831f2,_0x154ca0){return this['encode'](_0x5831f2,_0x154ca0)['ldelim']();},_0x2f4af8['decode']=function(_0x4a40d9,_0x3b8efd,_0x372a40){_0x4a40d9 instanceof _0x5e9c2f||(_0x4a40d9=_0x5e9c2f['create'](_0x4a40d9));for(var _0x558c59=void 0x0===_0x3b8efd?_0x4a40d9['len']:_0x4a40d9['pos']+_0x3b8efd,_0x308115=new _0x1429da['CommentsV2UpdateCommentMessage']();_0x4a40d9['pos']<_0x558c59;){var _0x4bda5b=_0x4a40d9['uint32']();if(_0x4bda5b===_0x372a40)break;switch(_0x4bda5b>>>0x3){case 0x1:_0x308115['commentThreadId']=_0x4a40d9['string']();break;case 0x2:_0x308115['commentId']=_0x4a40d9['string']();break;case 0x3:_0x308115['content']=_0x4a40d9['string']();break;case 0x4:_0x308115['documentId']=_0x4a40d9['string']();break;case 0x5:_0x308115['attributes']=_0x4a40d9['string']();break;case 0x6:_0x308115['isAttributesUpdated']=_0x4a40d9['bool']();break;case 0x7:_0x308115['commentThread']=_0x1429da['CommentsThreadDescriptor']['decode'](_0x4a40d9,_0x4a40d9['uint32']());break;default:_0x4a40d9['skipType'](0x7&_0x4bda5b);}}return _0x308115;},_0x2f4af8['decodeDelimited']=function(_0x442af0){return _0x442af0 instanceof _0x5e9c2f||(_0x442af0=new _0x5e9c2f(_0x442af0)),this['decode'](_0x442af0,_0x442af0['uint32']());},_0x2f4af8['verify']=function(_0x385bdb){if('object'!=typeof _0x385bdb||null===_0x385bdb)return'object\x20expected';if(null!=_0x385bdb['commentThreadId']&&_0x385bdb['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x385bdb['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x385bdb['commentId']&&_0x385bdb['hasOwnProperty']('commentId')&&!_0x44b59b['isString'](_0x385bdb['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x385bdb['content']&&_0x385bdb['hasOwnProperty']('content')&&!_0x44b59b['isString'](_0x385bdb['content']))return'content:\x20string\x20expected';if(null!=_0x385bdb['documentId']&&_0x385bdb['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x385bdb['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x385bdb['attributes']&&_0x385bdb['hasOwnProperty']('attributes')&&!_0x44b59b['isString'](_0x385bdb['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x385bdb['isAttributesUpdated']&&_0x385bdb['hasOwnProperty']('isAttributesUpdated')&&'boolean'!=typeof _0x385bdb['isAttributesUpdated'])return'isAttributesUpdated:\x20boolean\x20expected';if(null!=_0x385bdb['commentThread']&&_0x385bdb['hasOwnProperty']('commentThread')){var _0x1e9cc5=_0x1429da['CommentsThreadDescriptor']['verify'](_0x385bdb['commentThread']);if(_0x1e9cc5)return'commentThread.'+_0x1e9cc5;}return null;},_0x2f4af8['fromObject']=function(_0x38aa4a){if(_0x38aa4a instanceof _0x1429da['CommentsV2UpdateCommentMessage'])return _0x38aa4a;var _0x4611e7=new _0x1429da['CommentsV2UpdateCommentMessage']();if(null!=_0x38aa4a['commentThreadId']&&(_0x4611e7['commentThreadId']=String(_0x38aa4a['commentThreadId'])),null!=_0x38aa4a['commentId']&&(_0x4611e7['commentId']=String(_0x38aa4a['commentId'])),null!=_0x38aa4a['content']&&(_0x4611e7['content']=String(_0x38aa4a['content'])),null!=_0x38aa4a['documentId']&&(_0x4611e7['documentId']=String(_0x38aa4a['documentId'])),null!=_0x38aa4a['attributes']&&(_0x4611e7['attributes']=String(_0x38aa4a['attributes'])),null!=_0x38aa4a['isAttributesUpdated']&&(_0x4611e7['isAttributesUpdated']=Boolean(_0x38aa4a['isAttributesUpdated'])),null!=_0x38aa4a['commentThread']){if('object'!=typeof _0x38aa4a['commentThread'])throw TypeError('.CommentsV2UpdateCommentMessage.commentThread:\x20object\x20expected');_0x4611e7['commentThread']=_0x1429da['CommentsThreadDescriptor']['fromObject'](_0x38aa4a['commentThread']);}return _0x4611e7;},_0x2f4af8['toObject']=function(_0x3c24e7,_0x215645){_0x215645||(_0x215645={});var _0x1c6923={};return _0x215645['defaults']&&(_0x1c6923['commentThreadId']='',_0x1c6923['commentId']='',_0x1c6923['content']='',_0x1c6923['documentId']='',_0x1c6923['attributes']='',_0x1c6923['isAttributesUpdated']=!0x1,_0x1c6923['commentThread']=null),null!=_0x3c24e7['commentThreadId']&&_0x3c24e7['hasOwnProperty']('commentThreadId')&&(_0x1c6923['commentThreadId']=_0x3c24e7['commentThreadId']),null!=_0x3c24e7['commentId']&&_0x3c24e7['hasOwnProperty']('commentId')&&(_0x1c6923['commentId']=_0x3c24e7['commentId']),null!=_0x3c24e7['content']&&_0x3c24e7['hasOwnProperty']('content')&&(_0x1c6923['content']=_0x3c24e7['content']),null!=_0x3c24e7['documentId']&&_0x3c24e7['hasOwnProperty']('documentId')&&(_0x1c6923['documentId']=_0x3c24e7['documentId']),null!=_0x3c24e7['attributes']&&_0x3c24e7['hasOwnProperty']('attributes')&&(_0x1c6923['attributes']=_0x3c24e7['attributes']),null!=_0x3c24e7['isAttributesUpdated']&&_0x3c24e7['hasOwnProperty']('isAttributesUpdated')&&(_0x1c6923['isAttributesUpdated']=_0x3c24e7['isAttributesUpdated']),null!=_0x3c24e7['commentThread']&&_0x3c24e7['hasOwnProperty']('commentThread')&&(_0x1c6923['commentThread']=_0x1429da['CommentsThreadDescriptor']['toObject'](_0x3c24e7['commentThread'],_0x215645)),_0x1c6923;},_0x2f4af8['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2f4af8['getTypeUrl']=function(_0x362f78){return void 0x0===_0x362f78&&(_0x362f78='type.googleapis.com'),_0x362f78+'/CommentsV2UpdateCommentMessage';},_0x2f4af8;}()),_0x1429da['CommentsV2RemoveCommentThreadMessage']=(function(){function _0x331f8c(_0x37ea24){if(_0x37ea24){for(var _0x42cc35=Object['keys'](_0x37ea24),_0x49825d=0x0;_0x49825d<_0x42cc35['length'];++_0x49825d)null!=_0x37ea24[_0x42cc35[_0x49825d]]&&(this[_0x42cc35[_0x49825d]]=_0x37ea24[_0x42cc35[_0x49825d]]);}}return _0x331f8c['prototype']['commentThreadId']='',_0x331f8c['prototype']['documentId']='',_0x331f8c['create']=function(_0x1df397){return new _0x331f8c(_0x1df397);},_0x331f8c['encode']=function(_0x4e633a,_0x1ae43d){return _0x1ae43d||(_0x1ae43d=_0x2e8075['create']()),null!=_0x4e633a['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4e633a,'commentThreadId')&&_0x1ae43d['uint32'](0xa)['string'](_0x4e633a['commentThreadId']),null!=_0x4e633a['documentId']&&Object['hasOwnProperty']['call'](_0x4e633a,'documentId')&&_0x1ae43d['uint32'](0x12)['string'](_0x4e633a['documentId']),_0x1ae43d;},_0x331f8c['encodeDelimited']=function(_0x27b4ac,_0x376338){return this['encode'](_0x27b4ac,_0x376338)['ldelim']();},_0x331f8c['decode']=function(_0x4f9f18,_0x5e8d64,_0x4bd3bf){_0x4f9f18 instanceof _0x5e9c2f||(_0x4f9f18=_0x5e9c2f['create'](_0x4f9f18));for(var _0xb6815e=void 0x0===_0x5e8d64?_0x4f9f18['len']:_0x4f9f18['pos']+_0x5e8d64,_0x391b83=new _0x1429da['CommentsV2RemoveCommentThreadMessage']();_0x4f9f18['pos']<_0xb6815e;){var _0x3b613b=_0x4f9f18['uint32']();if(_0x3b613b===_0x4bd3bf)break;switch(_0x3b613b>>>0x3){case 0x1:_0x391b83['commentThreadId']=_0x4f9f18['string']();break;case 0x2:_0x391b83['documentId']=_0x4f9f18['string']();break;default:_0x4f9f18['skipType'](0x7&_0x3b613b);}}return _0x391b83;},_0x331f8c['decodeDelimited']=function(_0xb91c19){return _0xb91c19 instanceof _0x5e9c2f||(_0xb91c19=new _0x5e9c2f(_0xb91c19)),this['decode'](_0xb91c19,_0xb91c19['uint32']());},_0x331f8c['verify']=function(_0x1e8a14){return'object'!=typeof _0x1e8a14||null===_0x1e8a14?'object\x20expected':null!=_0x1e8a14['commentThreadId']&&_0x1e8a14['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x1e8a14['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x1e8a14['documentId']&&_0x1e8a14['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x1e8a14['documentId'])?'documentId:\x20string\x20expected':null;},_0x331f8c['fromObject']=function(_0x536c75){if(_0x536c75 instanceof _0x1429da['CommentsV2RemoveCommentThreadMessage'])return _0x536c75;var _0x428a62=new _0x1429da['CommentsV2RemoveCommentThreadMessage']();return null!=_0x536c75['commentThreadId']&&(_0x428a62['commentThreadId']=String(_0x536c75['commentThreadId'])),null!=_0x536c75['documentId']&&(_0x428a62['documentId']=String(_0x536c75['documentId'])),_0x428a62;},_0x331f8c['toObject']=function(_0x2d71eb,_0x2e2b9b){_0x2e2b9b||(_0x2e2b9b={});var _0x34ddb0={};return _0x2e2b9b['defaults']&&(_0x34ddb0['commentThreadId']='',_0x34ddb0['documentId']=''),null!=_0x2d71eb['commentThreadId']&&_0x2d71eb['hasOwnProperty']('commentThreadId')&&(_0x34ddb0['commentThreadId']=_0x2d71eb['commentThreadId']),null!=_0x2d71eb['documentId']&&_0x2d71eb['hasOwnProperty']('documentId')&&(_0x34ddb0['documentId']=_0x2d71eb['documentId']),_0x34ddb0;},_0x331f8c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x331f8c['getTypeUrl']=function(_0x5884e5){return void 0x0===_0x5884e5&&(_0x5884e5='type.googleapis.com'),_0x5884e5+'/CommentsV2RemoveCommentThreadMessage';},_0x331f8c;}()),_0x1429da['CommentsV2RemoveCommentMessage']=(function(){function _0x2e6065(_0x428578){if(_0x428578){for(var _0x132244=Object['keys'](_0x428578),_0x190294=0x0;_0x190294<_0x132244['length'];++_0x190294)null!=_0x428578[_0x132244[_0x190294]]&&(this[_0x132244[_0x190294]]=_0x428578[_0x132244[_0x190294]]);}}return _0x2e6065['prototype']['commentThreadId']='',_0x2e6065['prototype']['commentId']='',_0x2e6065['prototype']['documentId']='',_0x2e6065['create']=function(_0x530d82){return new _0x2e6065(_0x530d82);},_0x2e6065['encode']=function(_0x4c5639,_0x19b0f0){return _0x19b0f0||(_0x19b0f0=_0x2e8075['create']()),null!=_0x4c5639['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4c5639,'commentThreadId')&&_0x19b0f0['uint32'](0xa)['string'](_0x4c5639['commentThreadId']),null!=_0x4c5639['commentId']&&Object['hasOwnProperty']['call'](_0x4c5639,'commentId')&&_0x19b0f0['uint32'](0x12)['string'](_0x4c5639['commentId']),null!=_0x4c5639['documentId']&&Object['hasOwnProperty']['call'](_0x4c5639,'documentId')&&_0x19b0f0['uint32'](0x1a)['string'](_0x4c5639['documentId']),_0x19b0f0;},_0x2e6065['encodeDelimited']=function(_0x4666b3,_0x5db749){return this['encode'](_0x4666b3,_0x5db749)['ldelim']();},_0x2e6065['decode']=function(_0x253bdb,_0x502871,_0x176a03){_0x253bdb instanceof _0x5e9c2f||(_0x253bdb=_0x5e9c2f['create'](_0x253bdb));for(var _0x4df925=void 0x0===_0x502871?_0x253bdb['len']:_0x253bdb['pos']+_0x502871,_0xd94942=new _0x1429da['CommentsV2RemoveCommentMessage']();_0x253bdb['pos']<_0x4df925;){var _0x2e5a8d=_0x253bdb['uint32']();if(_0x2e5a8d===_0x176a03)break;switch(_0x2e5a8d>>>0x3){case 0x1:_0xd94942['commentThreadId']=_0x253bdb['string']();break;case 0x2:_0xd94942['commentId']=_0x253bdb['string']();break;case 0x3:_0xd94942['documentId']=_0x253bdb['string']();break;default:_0x253bdb['skipType'](0x7&_0x2e5a8d);}}return _0xd94942;},_0x2e6065['decodeDelimited']=function(_0x4515e8){return _0x4515e8 instanceof _0x5e9c2f||(_0x4515e8=new _0x5e9c2f(_0x4515e8)),this['decode'](_0x4515e8,_0x4515e8['uint32']());},_0x2e6065['verify']=function(_0x4c8d18){return'object'!=typeof _0x4c8d18||null===_0x4c8d18?'object\x20expected':null!=_0x4c8d18['commentThreadId']&&_0x4c8d18['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x4c8d18['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x4c8d18['commentId']&&_0x4c8d18['hasOwnProperty']('commentId')&&!_0x44b59b['isString'](_0x4c8d18['commentId'])?'commentId:\x20string\x20expected':null!=_0x4c8d18['documentId']&&_0x4c8d18['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x4c8d18['documentId'])?'documentId:\x20string\x20expected':null;},_0x2e6065['fromObject']=function(_0x472b1f){if(_0x472b1f instanceof _0x1429da['CommentsV2RemoveCommentMessage'])return _0x472b1f;var _0x4c1158=new _0x1429da['CommentsV2RemoveCommentMessage']();return null!=_0x472b1f['commentThreadId']&&(_0x4c1158['commentThreadId']=String(_0x472b1f['commentThreadId'])),null!=_0x472b1f['commentId']&&(_0x4c1158['commentId']=String(_0x472b1f['commentId'])),null!=_0x472b1f['documentId']&&(_0x4c1158['documentId']=String(_0x472b1f['documentId'])),_0x4c1158;},_0x2e6065['toObject']=function(_0xbdb188,_0x51fad1){_0x51fad1||(_0x51fad1={});var _0x3dd1e9={};return _0x51fad1['defaults']&&(_0x3dd1e9['commentThreadId']='',_0x3dd1e9['commentId']='',_0x3dd1e9['documentId']=''),null!=_0xbdb188['commentThreadId']&&_0xbdb188['hasOwnProperty']('commentThreadId')&&(_0x3dd1e9['commentThreadId']=_0xbdb188['commentThreadId']),null!=_0xbdb188['commentId']&&_0xbdb188['hasOwnProperty']('commentId')&&(_0x3dd1e9['commentId']=_0xbdb188['commentId']),null!=_0xbdb188['documentId']&&_0xbdb188['hasOwnProperty']('documentId')&&(_0x3dd1e9['documentId']=_0xbdb188['documentId']),_0x3dd1e9;},_0x2e6065['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2e6065['getTypeUrl']=function(_0x172df5){return void 0x0===_0x172df5&&(_0x172df5='type.googleapis.com'),_0x172df5+'/CommentsV2RemoveCommentMessage';},_0x2e6065;}()),_0x1429da['CommentsV2GetDocumentThreadsMessage']=(function(){function _0x4d50b1(_0x2eb241){if(_0x2eb241){for(var _0xb808cd=Object['keys'](_0x2eb241),_0x44ea30=0x0;_0x44ea30<_0xb808cd['length'];++_0x44ea30)null!=_0x2eb241[_0xb808cd[_0x44ea30]]&&(this[_0xb808cd[_0x44ea30]]=_0x2eb241[_0xb808cd[_0x44ea30]]);}}return _0x4d50b1['prototype']['documentId']='',_0x4d50b1['create']=function(_0x562390){return new _0x4d50b1(_0x562390);},_0x4d50b1['encode']=function(_0x4ed794,_0x4fbe3e){return _0x4fbe3e||(_0x4fbe3e=_0x2e8075['create']()),null!=_0x4ed794['documentId']&&Object['hasOwnProperty']['call'](_0x4ed794,'documentId')&&_0x4fbe3e['uint32'](0xa)['string'](_0x4ed794['documentId']),_0x4fbe3e;},_0x4d50b1['encodeDelimited']=function(_0x2f8975,_0x74049b){return this['encode'](_0x2f8975,_0x74049b)['ldelim']();},_0x4d50b1['decode']=function(_0x1b5373,_0x538f48,_0x3f2fbc){_0x1b5373 instanceof _0x5e9c2f||(_0x1b5373=_0x5e9c2f['create'](_0x1b5373));for(var _0x3e3ca7=void 0x0===_0x538f48?_0x1b5373['len']:_0x1b5373['pos']+_0x538f48,_0x61c58a=new _0x1429da['CommentsV2GetDocumentThreadsMessage']();_0x1b5373['pos']<_0x3e3ca7;){var _0x3ab3f4=_0x1b5373['uint32']();if(_0x3ab3f4===_0x3f2fbc)break;_0x3ab3f4>>>0x3==0x1?_0x61c58a['documentId']=_0x1b5373['string']():_0x1b5373['skipType'](0x7&_0x3ab3f4);}return _0x61c58a;},_0x4d50b1['decodeDelimited']=function(_0x4017df){return _0x4017df instanceof _0x5e9c2f||(_0x4017df=new _0x5e9c2f(_0x4017df)),this['decode'](_0x4017df,_0x4017df['uint32']());},_0x4d50b1['verify']=function(_0x52e93c){return'object'!=typeof _0x52e93c||null===_0x52e93c?'object\x20expected':null!=_0x52e93c['documentId']&&_0x52e93c['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x52e93c['documentId'])?'documentId:\x20string\x20expected':null;},_0x4d50b1['fromObject']=function(_0xab86de){if(_0xab86de instanceof _0x1429da['CommentsV2GetDocumentThreadsMessage'])return _0xab86de;var _0x6fa474=new _0x1429da['CommentsV2GetDocumentThreadsMessage']();return null!=_0xab86de['documentId']&&(_0x6fa474['documentId']=String(_0xab86de['documentId'])),_0x6fa474;},_0x4d50b1['toObject']=function(_0x528159,_0x48addf){_0x48addf||(_0x48addf={});var _0x3a705c={};return _0x48addf['defaults']&&(_0x3a705c['documentId']=''),null!=_0x528159['documentId']&&_0x528159['hasOwnProperty']('documentId')&&(_0x3a705c['documentId']=_0x528159['documentId']),_0x3a705c;},_0x4d50b1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4d50b1['getTypeUrl']=function(_0x1bc8dd){return void 0x0===_0x1bc8dd&&(_0x1bc8dd='type.googleapis.com'),_0x1bc8dd+'/CommentsV2GetDocumentThreadsMessage';},_0x4d50b1;}()),_0x1429da['CommentsV2GetCommentThreadMessage']=(function(){function _0x4eefb3(_0x5bb0e4){if(_0x5bb0e4){for(var _0x1f5e34=Object['keys'](_0x5bb0e4),_0x2d4266=0x0;_0x2d4266<_0x1f5e34['length'];++_0x2d4266)null!=_0x5bb0e4[_0x1f5e34[_0x2d4266]]&&(this[_0x1f5e34[_0x2d4266]]=_0x5bb0e4[_0x1f5e34[_0x2d4266]]);}}return _0x4eefb3['prototype']['commentThreadId']='',_0x4eefb3['prototype']['documentId']='',_0x4eefb3['create']=function(_0x249581){return new _0x4eefb3(_0x249581);},_0x4eefb3['encode']=function(_0x4222ce,_0xacc497){return _0xacc497||(_0xacc497=_0x2e8075['create']()),null!=_0x4222ce['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4222ce,'commentThreadId')&&_0xacc497['uint32'](0xa)['string'](_0x4222ce['commentThreadId']),null!=_0x4222ce['documentId']&&Object['hasOwnProperty']['call'](_0x4222ce,'documentId')&&_0xacc497['uint32'](0x12)['string'](_0x4222ce['documentId']),_0xacc497;},_0x4eefb3['encodeDelimited']=function(_0x416844,_0x248ab0){return this['encode'](_0x416844,_0x248ab0)['ldelim']();},_0x4eefb3['decode']=function(_0x488639,_0x32279f,_0x390390){_0x488639 instanceof _0x5e9c2f||(_0x488639=_0x5e9c2f['create'](_0x488639));for(var _0x4eb6e9=void 0x0===_0x32279f?_0x488639['len']:_0x488639['pos']+_0x32279f,_0x3f07ca=new _0x1429da['CommentsV2GetCommentThreadMessage']();_0x488639['pos']<_0x4eb6e9;){var _0x280df3=_0x488639['uint32']();if(_0x280df3===_0x390390)break;switch(_0x280df3>>>0x3){case 0x1:_0x3f07ca['commentThreadId']=_0x488639['string']();break;case 0x2:_0x3f07ca['documentId']=_0x488639['string']();break;default:_0x488639['skipType'](0x7&_0x280df3);}}return _0x3f07ca;},_0x4eefb3['decodeDelimited']=function(_0x91d7a9){return _0x91d7a9 instanceof _0x5e9c2f||(_0x91d7a9=new _0x5e9c2f(_0x91d7a9)),this['decode'](_0x91d7a9,_0x91d7a9['uint32']());},_0x4eefb3['verify']=function(_0x3999af){return'object'!=typeof _0x3999af||null===_0x3999af?'object\x20expected':null!=_0x3999af['commentThreadId']&&_0x3999af['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x3999af['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x3999af['documentId']&&_0x3999af['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x3999af['documentId'])?'documentId:\x20string\x20expected':null;},_0x4eefb3['fromObject']=function(_0x73c408){if(_0x73c408 instanceof _0x1429da['CommentsV2GetCommentThreadMessage'])return _0x73c408;var _0x31a8ea=new _0x1429da['CommentsV2GetCommentThreadMessage']();return null!=_0x73c408['commentThreadId']&&(_0x31a8ea['commentThreadId']=String(_0x73c408['commentThreadId'])),null!=_0x73c408['documentId']&&(_0x31a8ea['documentId']=String(_0x73c408['documentId'])),_0x31a8ea;},_0x4eefb3['toObject']=function(_0x46c891,_0x47db3d){_0x47db3d||(_0x47db3d={});var _0x3aea63={};return _0x47db3d['defaults']&&(_0x3aea63['commentThreadId']='',_0x3aea63['documentId']=''),null!=_0x46c891['commentThreadId']&&_0x46c891['hasOwnProperty']('commentThreadId')&&(_0x3aea63['commentThreadId']=_0x46c891['commentThreadId']),null!=_0x46c891['documentId']&&_0x46c891['hasOwnProperty']('documentId')&&(_0x3aea63['documentId']=_0x46c891['documentId']),_0x3aea63;},_0x4eefb3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4eefb3['getTypeUrl']=function(_0x2b8ef4){return void 0x0===_0x2b8ef4&&(_0x2b8ef4='type.googleapis.com'),_0x2b8ef4+'/CommentsV2GetCommentThreadMessage';},_0x4eefb3;}()),_0x1429da['CommentsV2ConnectMessage']=(function(){function _0x5f0d02(_0x458d5c){if(_0x458d5c){for(var _0x4d6336=Object['keys'](_0x458d5c),_0x5564fb=0x0;_0x5564fb<_0x4d6336['length'];++_0x5564fb)null!=_0x458d5c[_0x4d6336[_0x5564fb]]&&(this[_0x4d6336[_0x5564fb]]=_0x458d5c[_0x4d6336[_0x5564fb]]);}}return _0x5f0d02['prototype']['documentId']='',_0x5f0d02['create']=function(_0x5310d6){return new _0x5f0d02(_0x5310d6);},_0x5f0d02['encode']=function(_0xd212c9,_0x5280dd){return _0x5280dd||(_0x5280dd=_0x2e8075['create']()),null!=_0xd212c9['documentId']&&Object['hasOwnProperty']['call'](_0xd212c9,'documentId')&&_0x5280dd['uint32'](0xa)['string'](_0xd212c9['documentId']),_0x5280dd;},_0x5f0d02['encodeDelimited']=function(_0xf034d6,_0xceffc7){return this['encode'](_0xf034d6,_0xceffc7)['ldelim']();},_0x5f0d02['decode']=function(_0x1783ba,_0x499f36,_0x246bbf){_0x1783ba instanceof _0x5e9c2f||(_0x1783ba=_0x5e9c2f['create'](_0x1783ba));for(var _0x1c20d0=void 0x0===_0x499f36?_0x1783ba['len']:_0x1783ba['pos']+_0x499f36,_0x42565a=new _0x1429da['CommentsV2ConnectMessage']();_0x1783ba['pos']<_0x1c20d0;){var _0x2d7ea9=_0x1783ba['uint32']();if(_0x2d7ea9===_0x246bbf)break;_0x2d7ea9>>>0x3==0x1?_0x42565a['documentId']=_0x1783ba['string']():_0x1783ba['skipType'](0x7&_0x2d7ea9);}return _0x42565a;},_0x5f0d02['decodeDelimited']=function(_0x107245){return _0x107245 instanceof _0x5e9c2f||(_0x107245=new _0x5e9c2f(_0x107245)),this['decode'](_0x107245,_0x107245['uint32']());},_0x5f0d02['verify']=function(_0x27eba1){return'object'!=typeof _0x27eba1||null===_0x27eba1?'object\x20expected':null!=_0x27eba1['documentId']&&_0x27eba1['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x27eba1['documentId'])?'documentId:\x20string\x20expected':null;},_0x5f0d02['fromObject']=function(_0x246f5d){if(_0x246f5d instanceof _0x1429da['CommentsV2ConnectMessage'])return _0x246f5d;var _0x5c1930=new _0x1429da['CommentsV2ConnectMessage']();return null!=_0x246f5d['documentId']&&(_0x5c1930['documentId']=String(_0x246f5d['documentId'])),_0x5c1930;},_0x5f0d02['toObject']=function(_0x170296,_0x1eaa00){_0x1eaa00||(_0x1eaa00={});var _0x245607={};return _0x1eaa00['defaults']&&(_0x245607['documentId']=''),null!=_0x170296['documentId']&&_0x170296['hasOwnProperty']('documentId')&&(_0x245607['documentId']=_0x170296['documentId']),_0x245607;},_0x5f0d02['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5f0d02['getTypeUrl']=function(_0x281568){return void 0x0===_0x281568&&(_0x281568='type.googleapis.com'),_0x281568+'/CommentsV2ConnectMessage';},_0x5f0d02;}()),_0x1429da['CommentsV2AddCommentMessage']=(function(){function _0x5e8f85(_0x3bcc73){if(_0x3bcc73){for(var _0x4238e8=Object['keys'](_0x3bcc73),_0x1d5fd1=0x0;_0x1d5fd1<_0x4238e8['length'];++_0x1d5fd1)null!=_0x3bcc73[_0x4238e8[_0x1d5fd1]]&&(this[_0x4238e8[_0x1d5fd1]]=_0x3bcc73[_0x4238e8[_0x1d5fd1]]);}}return _0x5e8f85['prototype']['commentThreadId']='',_0x5e8f85['prototype']['content']='',_0x5e8f85['prototype']['documentId']='',_0x5e8f85['prototype']['commentId']='',_0x5e8f85['prototype']['createdAt']='',_0x5e8f85['prototype']['userId']='',_0x5e8f85['prototype']['attributes']='',_0x5e8f85['prototype']['commentThread']=null,_0x5e8f85['create']=function(_0xa0549){return new _0x5e8f85(_0xa0549);},_0x5e8f85['encode']=function(_0x5dbfb2,_0x480cee){return _0x480cee||(_0x480cee=_0x2e8075['create']()),null!=_0x5dbfb2['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5dbfb2,'commentThreadId')&&_0x480cee['uint32'](0xa)['string'](_0x5dbfb2['commentThreadId']),null!=_0x5dbfb2['content']&&Object['hasOwnProperty']['call'](_0x5dbfb2,'content')&&_0x480cee['uint32'](0x12)['string'](_0x5dbfb2['content']),null!=_0x5dbfb2['documentId']&&Object['hasOwnProperty']['call'](_0x5dbfb2,'documentId')&&_0x480cee['uint32'](0x1a)['string'](_0x5dbfb2['documentId']),null!=_0x5dbfb2['commentId']&&Object['hasOwnProperty']['call'](_0x5dbfb2,'commentId')&&_0x480cee['uint32'](0x22)['string'](_0x5dbfb2['commentId']),null!=_0x5dbfb2['createdAt']&&Object['hasOwnProperty']['call'](_0x5dbfb2,'createdAt')&&_0x480cee['uint32'](0x2a)['string'](_0x5dbfb2['createdAt']),null!=_0x5dbfb2['userId']&&Object['hasOwnProperty']['call'](_0x5dbfb2,'userId')&&_0x480cee['uint32'](0x32)['string'](_0x5dbfb2['userId']),null!=_0x5dbfb2['attributes']&&Object['hasOwnProperty']['call'](_0x5dbfb2,'attributes')&&_0x480cee['uint32'](0x3a)['string'](_0x5dbfb2['attributes']),null!=_0x5dbfb2['commentThread']&&Object['hasOwnProperty']['call'](_0x5dbfb2,'commentThread')&&_0x1429da['CommentsThreadDescriptor']['encode'](_0x5dbfb2['commentThread'],_0x480cee['uint32'](0x42)['fork']())['ldelim'](),_0x480cee;},_0x5e8f85['encodeDelimited']=function(_0x1a66ad,_0x36245b){return this['encode'](_0x1a66ad,_0x36245b)['ldelim']();},_0x5e8f85['decode']=function(_0x682982,_0x462fa3,_0x3f8787){_0x682982 instanceof _0x5e9c2f||(_0x682982=_0x5e9c2f['create'](_0x682982));for(var _0x233b70=void 0x0===_0x462fa3?_0x682982['len']:_0x682982['pos']+_0x462fa3,_0x443640=new _0x1429da['CommentsV2AddCommentMessage']();_0x682982['pos']<_0x233b70;){var _0x3fa526=_0x682982['uint32']();if(_0x3fa526===_0x3f8787)break;switch(_0x3fa526>>>0x3){case 0x1:_0x443640['commentThreadId']=_0x682982['string']();break;case 0x2:_0x443640['content']=_0x682982['string']();break;case 0x3:_0x443640['documentId']=_0x682982['string']();break;case 0x4:_0x443640['commentId']=_0x682982['string']();break;case 0x5:_0x443640['createdAt']=_0x682982['string']();break;case 0x6:_0x443640['userId']=_0x682982['string']();break;case 0x7:_0x443640['attributes']=_0x682982['string']();break;case 0x8:_0x443640['commentThread']=_0x1429da['CommentsThreadDescriptor']['decode'](_0x682982,_0x682982['uint32']());break;default:_0x682982['skipType'](0x7&_0x3fa526);}}return _0x443640;},_0x5e8f85['decodeDelimited']=function(_0x47a1b1){return _0x47a1b1 instanceof _0x5e9c2f||(_0x47a1b1=new _0x5e9c2f(_0x47a1b1)),this['decode'](_0x47a1b1,_0x47a1b1['uint32']());},_0x5e8f85['verify']=function(_0x538144){if('object'!=typeof _0x538144||null===_0x538144)return'object\x20expected';if(null!=_0x538144['commentThreadId']&&_0x538144['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x538144['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x538144['content']&&_0x538144['hasOwnProperty']('content')&&!_0x44b59b['isString'](_0x538144['content']))return'content:\x20string\x20expected';if(null!=_0x538144['documentId']&&_0x538144['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x538144['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x538144['commentId']&&_0x538144['hasOwnProperty']('commentId')&&!_0x44b59b['isString'](_0x538144['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x538144['createdAt']&&_0x538144['hasOwnProperty']('createdAt')&&!_0x44b59b['isString'](_0x538144['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x538144['userId']&&_0x538144['hasOwnProperty']('userId')&&!_0x44b59b['isString'](_0x538144['userId']))return'userId:\x20string\x20expected';if(null!=_0x538144['attributes']&&_0x538144['hasOwnProperty']('attributes')&&!_0x44b59b['isString'](_0x538144['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x538144['commentThread']&&_0x538144['hasOwnProperty']('commentThread')){var _0x1e3dbf=_0x1429da['CommentsThreadDescriptor']['verify'](_0x538144['commentThread']);if(_0x1e3dbf)return'commentThread.'+_0x1e3dbf;}return null;},_0x5e8f85['fromObject']=function(_0x4bacec){if(_0x4bacec instanceof _0x1429da['CommentsV2AddCommentMessage'])return _0x4bacec;var _0x2bfab0=new _0x1429da['CommentsV2AddCommentMessage']();if(null!=_0x4bacec['commentThreadId']&&(_0x2bfab0['commentThreadId']=String(_0x4bacec['commentThreadId'])),null!=_0x4bacec['content']&&(_0x2bfab0['content']=String(_0x4bacec['content'])),null!=_0x4bacec['documentId']&&(_0x2bfab0['documentId']=String(_0x4bacec['documentId'])),null!=_0x4bacec['commentId']&&(_0x2bfab0['commentId']=String(_0x4bacec['commentId'])),null!=_0x4bacec['createdAt']&&(_0x2bfab0['createdAt']=String(_0x4bacec['createdAt'])),null!=_0x4bacec['userId']&&(_0x2bfab0['userId']=String(_0x4bacec['userId'])),null!=_0x4bacec['attributes']&&(_0x2bfab0['attributes']=String(_0x4bacec['attributes'])),null!=_0x4bacec['commentThread']){if('object'!=typeof _0x4bacec['commentThread'])throw TypeError('.CommentsV2AddCommentMessage.commentThread:\x20object\x20expected');_0x2bfab0['commentThread']=_0x1429da['CommentsThreadDescriptor']['fromObject'](_0x4bacec['commentThread']);}return _0x2bfab0;},_0x5e8f85['toObject']=function(_0x1caabc,_0x2bc43a){_0x2bc43a||(_0x2bc43a={});var _0x1a6239={};return _0x2bc43a['defaults']&&(_0x1a6239['commentThreadId']='',_0x1a6239['content']='',_0x1a6239['documentId']='',_0x1a6239['commentId']='',_0x1a6239['createdAt']='',_0x1a6239['userId']='',_0x1a6239['attributes']='',_0x1a6239['commentThread']=null),null!=_0x1caabc['commentThreadId']&&_0x1caabc['hasOwnProperty']('commentThreadId')&&(_0x1a6239['commentThreadId']=_0x1caabc['commentThreadId']),null!=_0x1caabc['content']&&_0x1caabc['hasOwnProperty']('content')&&(_0x1a6239['content']=_0x1caabc['content']),null!=_0x1caabc['documentId']&&_0x1caabc['hasOwnProperty']('documentId')&&(_0x1a6239['documentId']=_0x1caabc['documentId']),null!=_0x1caabc['commentId']&&_0x1caabc['hasOwnProperty']('commentId')&&(_0x1a6239['commentId']=_0x1caabc['commentId']),null!=_0x1caabc['createdAt']&&_0x1caabc['hasOwnProperty']('createdAt')&&(_0x1a6239['createdAt']=_0x1caabc['createdAt']),null!=_0x1caabc['userId']&&_0x1caabc['hasOwnProperty']('userId')&&(_0x1a6239['userId']=_0x1caabc['userId']),null!=_0x1caabc['attributes']&&_0x1caabc['hasOwnProperty']('attributes')&&(_0x1a6239['attributes']=_0x1caabc['attributes']),null!=_0x1caabc['commentThread']&&_0x1caabc['hasOwnProperty']('commentThread')&&(_0x1a6239['commentThread']=_0x1429da['CommentsThreadDescriptor']['toObject'](_0x1caabc['commentThread'],_0x2bc43a)),_0x1a6239;},_0x5e8f85['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5e8f85['getTypeUrl']=function(_0x3e837a){return void 0x0===_0x3e837a&&(_0x3e837a='type.googleapis.com'),_0x3e837a+'/CommentsV2AddCommentMessage';},_0x5e8f85;}()),_0x1429da['CommentsV2UpdateCommentThreadMessage']=(function(){function _0xe7f179(_0x16547e){if(_0x16547e){for(var _0x3d27a8=Object['keys'](_0x16547e),_0x34bcfe=0x0;_0x34bcfe<_0x3d27a8['length'];++_0x34bcfe)null!=_0x16547e[_0x3d27a8[_0x34bcfe]]&&(this[_0x3d27a8[_0x34bcfe]]=_0x16547e[_0x3d27a8[_0x34bcfe]]);}}return _0xe7f179['prototype']['commentThreadId']='',_0xe7f179['prototype']['documentId']='',_0xe7f179['prototype']['context']='',_0xe7f179['prototype']['attributes']='',_0xe7f179['prototype']['unlinkedAt']='',_0xe7f179['create']=function(_0x33eabd){return new _0xe7f179(_0x33eabd);},_0xe7f179['encode']=function(_0x1be47f,_0x3648ba){return _0x3648ba||(_0x3648ba=_0x2e8075['create']()),null!=_0x1be47f['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1be47f,'commentThreadId')&&_0x3648ba['uint32'](0xa)['string'](_0x1be47f['commentThreadId']),null!=_0x1be47f['documentId']&&Object['hasOwnProperty']['call'](_0x1be47f,'documentId')&&_0x3648ba['uint32'](0x12)['string'](_0x1be47f['documentId']),null!=_0x1be47f['context']&&Object['hasOwnProperty']['call'](_0x1be47f,'context')&&_0x3648ba['uint32'](0x1a)['string'](_0x1be47f['context']),null!=_0x1be47f['attributes']&&Object['hasOwnProperty']['call'](_0x1be47f,'attributes')&&_0x3648ba['uint32'](0x22)['string'](_0x1be47f['attributes']),null!=_0x1be47f['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x1be47f,'unlinkedAt')&&_0x3648ba['uint32'](0x2a)['string'](_0x1be47f['unlinkedAt']),_0x3648ba;},_0xe7f179['encodeDelimited']=function(_0x3dca4a,_0x171c84){return this['encode'](_0x3dca4a,_0x171c84)['ldelim']();},_0xe7f179['decode']=function(_0x323411,_0xc16937,_0x56fdf0){_0x323411 instanceof _0x5e9c2f||(_0x323411=_0x5e9c2f['create'](_0x323411));for(var _0x2a6b2e=void 0x0===_0xc16937?_0x323411['len']:_0x323411['pos']+_0xc16937,_0x456337=new _0x1429da['CommentsV2UpdateCommentThreadMessage']();_0x323411['pos']<_0x2a6b2e;){var _0xc32536=_0x323411['uint32']();if(_0xc32536===_0x56fdf0)break;switch(_0xc32536>>>0x3){case 0x1:_0x456337['commentThreadId']=_0x323411['string']();break;case 0x2:_0x456337['documentId']=_0x323411['string']();break;case 0x3:_0x456337['context']=_0x323411['string']();break;case 0x4:_0x456337['attributes']=_0x323411['string']();break;case 0x5:_0x456337['unlinkedAt']=_0x323411['string']();break;default:_0x323411['skipType'](0x7&_0xc32536);}}return _0x456337;},_0xe7f179['decodeDelimited']=function(_0x432a7f){return _0x432a7f instanceof _0x5e9c2f||(_0x432a7f=new _0x5e9c2f(_0x432a7f)),this['decode'](_0x432a7f,_0x432a7f['uint32']());},_0xe7f179['verify']=function(_0x446e46){return'object'!=typeof _0x446e46||null===_0x446e46?'object\x20expected':null!=_0x446e46['commentThreadId']&&_0x446e46['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x446e46['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x446e46['documentId']&&_0x446e46['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x446e46['documentId'])?'documentId:\x20string\x20expected':null!=_0x446e46['context']&&_0x446e46['hasOwnProperty']('context')&&!_0x44b59b['isString'](_0x446e46['context'])?'context:\x20string\x20expected':null!=_0x446e46['attributes']&&_0x446e46['hasOwnProperty']('attributes')&&!_0x44b59b['isString'](_0x446e46['attributes'])?'attributes:\x20string\x20expected':null!=_0x446e46['unlinkedAt']&&_0x446e46['hasOwnProperty']('unlinkedAt')&&!_0x44b59b['isString'](_0x446e46['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0xe7f179['fromObject']=function(_0x4aabdd){if(_0x4aabdd instanceof _0x1429da['CommentsV2UpdateCommentThreadMessage'])return _0x4aabdd;var _0x5fa629=new _0x1429da['CommentsV2UpdateCommentThreadMessage']();return null!=_0x4aabdd['commentThreadId']&&(_0x5fa629['commentThreadId']=String(_0x4aabdd['commentThreadId'])),null!=_0x4aabdd['documentId']&&(_0x5fa629['documentId']=String(_0x4aabdd['documentId'])),null!=_0x4aabdd['context']&&(_0x5fa629['context']=String(_0x4aabdd['context'])),null!=_0x4aabdd['attributes']&&(_0x5fa629['attributes']=String(_0x4aabdd['attributes'])),null!=_0x4aabdd['unlinkedAt']&&(_0x5fa629['unlinkedAt']=String(_0x4aabdd['unlinkedAt'])),_0x5fa629;},_0xe7f179['toObject']=function(_0x4701a8,_0xf188cc){_0xf188cc||(_0xf188cc={});var _0x4f64e3={};return _0xf188cc['defaults']&&(_0x4f64e3['commentThreadId']='',_0x4f64e3['documentId']='',_0x4f64e3['context']='',_0x4f64e3['attributes']='',_0x4f64e3['unlinkedAt']=''),null!=_0x4701a8['commentThreadId']&&_0x4701a8['hasOwnProperty']('commentThreadId')&&(_0x4f64e3['commentThreadId']=_0x4701a8['commentThreadId']),null!=_0x4701a8['documentId']&&_0x4701a8['hasOwnProperty']('documentId')&&(_0x4f64e3['documentId']=_0x4701a8['documentId']),null!=_0x4701a8['context']&&_0x4701a8['hasOwnProperty']('context')&&(_0x4f64e3['context']=_0x4701a8['context']),null!=_0x4701a8['attributes']&&_0x4701a8['hasOwnProperty']('attributes')&&(_0x4f64e3['attributes']=_0x4701a8['attributes']),null!=_0x4701a8['unlinkedAt']&&_0x4701a8['hasOwnProperty']('unlinkedAt')&&(_0x4f64e3['unlinkedAt']=_0x4701a8['unlinkedAt']),_0x4f64e3;},_0xe7f179['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xe7f179['getTypeUrl']=function(_0xddbba0){return void 0x0===_0xddbba0&&(_0xddbba0='type.googleapis.com'),_0xddbba0+'/CommentsV2UpdateCommentThreadMessage';},_0xe7f179;}()),_0x1429da['CommentsV2ResolveCommentThreadMessage']=(function(){function _0x4564ac(_0x4fa15d){if(_0x4fa15d){for(var _0x2b26c4=Object['keys'](_0x4fa15d),_0x1ecfc2=0x0;_0x1ecfc2<_0x2b26c4['length'];++_0x1ecfc2)null!=_0x4fa15d[_0x2b26c4[_0x1ecfc2]]&&(this[_0x2b26c4[_0x1ecfc2]]=_0x4fa15d[_0x2b26c4[_0x1ecfc2]]);}}return _0x4564ac['prototype']['commentThreadId']='',_0x4564ac['prototype']['documentId']='',_0x4564ac['prototype']['resolvedBy']='',_0x4564ac['prototype']['resolvedAt']='',_0x4564ac['create']=function(_0x2b0e72){return new _0x4564ac(_0x2b0e72);},_0x4564ac['encode']=function(_0x3be6a6,_0x36267e){return _0x36267e||(_0x36267e=_0x2e8075['create']()),null!=_0x3be6a6['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3be6a6,'commentThreadId')&&_0x36267e['uint32'](0xa)['string'](_0x3be6a6['commentThreadId']),null!=_0x3be6a6['documentId']&&Object['hasOwnProperty']['call'](_0x3be6a6,'documentId')&&_0x36267e['uint32'](0x12)['string'](_0x3be6a6['documentId']),null!=_0x3be6a6['resolvedBy']&&Object['hasOwnProperty']['call'](_0x3be6a6,'resolvedBy')&&_0x36267e['uint32'](0x1a)['string'](_0x3be6a6['resolvedBy']),null!=_0x3be6a6['resolvedAt']&&Object['hasOwnProperty']['call'](_0x3be6a6,'resolvedAt')&&_0x36267e['uint32'](0x22)['string'](_0x3be6a6['resolvedAt']),_0x36267e;},_0x4564ac['encodeDelimited']=function(_0x6082b9,_0x102c43){return this['encode'](_0x6082b9,_0x102c43)['ldelim']();},_0x4564ac['decode']=function(_0x509c0d,_0x3b096f,_0x3ea740){_0x509c0d instanceof _0x5e9c2f||(_0x509c0d=_0x5e9c2f['create'](_0x509c0d));for(var _0x1f3d65=void 0x0===_0x3b096f?_0x509c0d['len']:_0x509c0d['pos']+_0x3b096f,_0x5b372a=new _0x1429da['CommentsV2ResolveCommentThreadMessage']();_0x509c0d['pos']<_0x1f3d65;){var _0x5a227b=_0x509c0d['uint32']();if(_0x5a227b===_0x3ea740)break;switch(_0x5a227b>>>0x3){case 0x1:_0x5b372a['commentThreadId']=_0x509c0d['string']();break;case 0x2:_0x5b372a['documentId']=_0x509c0d['string']();break;case 0x3:_0x5b372a['resolvedBy']=_0x509c0d['string']();break;case 0x4:_0x5b372a['resolvedAt']=_0x509c0d['string']();break;default:_0x509c0d['skipType'](0x7&_0x5a227b);}}return _0x5b372a;},_0x4564ac['decodeDelimited']=function(_0x479da8){return _0x479da8 instanceof _0x5e9c2f||(_0x479da8=new _0x5e9c2f(_0x479da8)),this['decode'](_0x479da8,_0x479da8['uint32']());},_0x4564ac['verify']=function(_0x77f9fe){return'object'!=typeof _0x77f9fe||null===_0x77f9fe?'object\x20expected':null!=_0x77f9fe['commentThreadId']&&_0x77f9fe['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x77f9fe['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x77f9fe['documentId']&&_0x77f9fe['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x77f9fe['documentId'])?'documentId:\x20string\x20expected':null!=_0x77f9fe['resolvedBy']&&_0x77f9fe['hasOwnProperty']('resolvedBy')&&!_0x44b59b['isString'](_0x77f9fe['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x77f9fe['resolvedAt']&&_0x77f9fe['hasOwnProperty']('resolvedAt')&&!_0x44b59b['isString'](_0x77f9fe['resolvedAt'])?'resolvedAt:\x20string\x20expected':null;},_0x4564ac['fromObject']=function(_0x2c46c2){if(_0x2c46c2 instanceof _0x1429da['CommentsV2ResolveCommentThreadMessage'])return _0x2c46c2;var _0x90a84e=new _0x1429da['CommentsV2ResolveCommentThreadMessage']();return null!=_0x2c46c2['commentThreadId']&&(_0x90a84e['commentThreadId']=String(_0x2c46c2['commentThreadId'])),null!=_0x2c46c2['documentId']&&(_0x90a84e['documentId']=String(_0x2c46c2['documentId'])),null!=_0x2c46c2['resolvedBy']&&(_0x90a84e['resolvedBy']=String(_0x2c46c2['resolvedBy'])),null!=_0x2c46c2['resolvedAt']&&(_0x90a84e['resolvedAt']=String(_0x2c46c2['resolvedAt'])),_0x90a84e;},_0x4564ac['toObject']=function(_0x407105,_0x5a4067){_0x5a4067||(_0x5a4067={});var _0x272a09={};return _0x5a4067['defaults']&&(_0x272a09['commentThreadId']='',_0x272a09['documentId']='',_0x272a09['resolvedBy']='',_0x272a09['resolvedAt']=''),null!=_0x407105['commentThreadId']&&_0x407105['hasOwnProperty']('commentThreadId')&&(_0x272a09['commentThreadId']=_0x407105['commentThreadId']),null!=_0x407105['documentId']&&_0x407105['hasOwnProperty']('documentId')&&(_0x272a09['documentId']=_0x407105['documentId']),null!=_0x407105['resolvedBy']&&_0x407105['hasOwnProperty']('resolvedBy')&&(_0x272a09['resolvedBy']=_0x407105['resolvedBy']),null!=_0x407105['resolvedAt']&&_0x407105['hasOwnProperty']('resolvedAt')&&(_0x272a09['resolvedAt']=_0x407105['resolvedAt']),_0x272a09;},_0x4564ac['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4564ac['getTypeUrl']=function(_0x2bb284){return void 0x0===_0x2bb284&&(_0x2bb284='type.googleapis.com'),_0x2bb284+'/CommentsV2ResolveCommentThreadMessage';},_0x4564ac;}()),_0x1429da['CommentsV2ReopenCommentThreadMessage']=(function(){function _0x30a13b(_0x5760fb){if(_0x5760fb){for(var _0x4c72db=Object['keys'](_0x5760fb),_0x369a75=0x0;_0x369a75<_0x4c72db['length'];++_0x369a75)null!=_0x5760fb[_0x4c72db[_0x369a75]]&&(this[_0x4c72db[_0x369a75]]=_0x5760fb[_0x4c72db[_0x369a75]]);}}return _0x30a13b['prototype']['commentThreadId']='',_0x30a13b['prototype']['documentId']='',_0x30a13b['create']=function(_0x4cab5c){return new _0x30a13b(_0x4cab5c);},_0x30a13b['encode']=function(_0x154071,_0x23ca6e){return _0x23ca6e||(_0x23ca6e=_0x2e8075['create']()),null!=_0x154071['commentThreadId']&&Object['hasOwnProperty']['call'](_0x154071,'commentThreadId')&&_0x23ca6e['uint32'](0xa)['string'](_0x154071['commentThreadId']),null!=_0x154071['documentId']&&Object['hasOwnProperty']['call'](_0x154071,'documentId')&&_0x23ca6e['uint32'](0x12)['string'](_0x154071['documentId']),_0x23ca6e;},_0x30a13b['encodeDelimited']=function(_0x1dd3c4,_0x204de1){return this['encode'](_0x1dd3c4,_0x204de1)['ldelim']();},_0x30a13b['decode']=function(_0x502d37,_0x4f0366,_0x2b8887){_0x502d37 instanceof _0x5e9c2f||(_0x502d37=_0x5e9c2f['create'](_0x502d37));for(var _0x6e1500=void 0x0===_0x4f0366?_0x502d37['len']:_0x502d37['pos']+_0x4f0366,_0x5054f9=new _0x1429da['CommentsV2ReopenCommentThreadMessage']();_0x502d37['pos']<_0x6e1500;){var _0x5d889f=_0x502d37['uint32']();if(_0x5d889f===_0x2b8887)break;switch(_0x5d889f>>>0x3){case 0x1:_0x5054f9['commentThreadId']=_0x502d37['string']();break;case 0x2:_0x5054f9['documentId']=_0x502d37['string']();break;default:_0x502d37['skipType'](0x7&_0x5d889f);}}return _0x5054f9;},_0x30a13b['decodeDelimited']=function(_0x3f89dd){return _0x3f89dd instanceof _0x5e9c2f||(_0x3f89dd=new _0x5e9c2f(_0x3f89dd)),this['decode'](_0x3f89dd,_0x3f89dd['uint32']());},_0x30a13b['verify']=function(_0x1f3254){return'object'!=typeof _0x1f3254||null===_0x1f3254?'object\x20expected':null!=_0x1f3254['commentThreadId']&&_0x1f3254['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x1f3254['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x1f3254['documentId']&&_0x1f3254['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x1f3254['documentId'])?'documentId:\x20string\x20expected':null;},_0x30a13b['fromObject']=function(_0x138897){if(_0x138897 instanceof _0x1429da['CommentsV2ReopenCommentThreadMessage'])return _0x138897;var _0xdf7dd=new _0x1429da['CommentsV2ReopenCommentThreadMessage']();return null!=_0x138897['commentThreadId']&&(_0xdf7dd['commentThreadId']=String(_0x138897['commentThreadId'])),null!=_0x138897['documentId']&&(_0xdf7dd['documentId']=String(_0x138897['documentId'])),_0xdf7dd;},_0x30a13b['toObject']=function(_0x58fae6,_0x5e1058){_0x5e1058||(_0x5e1058={});var _0x1b77c5={};return _0x5e1058['defaults']&&(_0x1b77c5['commentThreadId']='',_0x1b77c5['documentId']=''),null!=_0x58fae6['commentThreadId']&&_0x58fae6['hasOwnProperty']('commentThreadId')&&(_0x1b77c5['commentThreadId']=_0x58fae6['commentThreadId']),null!=_0x58fae6['documentId']&&_0x58fae6['hasOwnProperty']('documentId')&&(_0x1b77c5['documentId']=_0x58fae6['documentId']),_0x1b77c5;},_0x30a13b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x30a13b['getTypeUrl']=function(_0x6bf26b){return void 0x0===_0x6bf26b&&(_0x6bf26b='type.googleapis.com'),_0x6bf26b+'/CommentsV2ReopenCommentThreadMessage';},_0x30a13b;}()),_0x1429da['CommentsV2AddCommentThreadMessage']=(function(){function _0x4d69a5(_0x13ccc9){if(this['comments']=[],_0x13ccc9){for(var _0x5160af=Object['keys'](_0x13ccc9),_0x1608df=0x0;_0x1608df<_0x5160af['length'];++_0x1608df)null!=_0x13ccc9[_0x5160af[_0x1608df]]&&(this[_0x5160af[_0x1608df]]=_0x13ccc9[_0x5160af[_0x1608df]]);}}return _0x4d69a5['prototype']['documentId']='',_0x4d69a5['prototype']['commentThreadId']='',_0x4d69a5['prototype']['context']='',_0x4d69a5['prototype']['createdAt']='',_0x4d69a5['prototype']['resolvedAt']='',_0x4d69a5['prototype']['resolvedBy']='',_0x4d69a5['prototype']['attributes']='',_0x4d69a5['prototype']['deletedAt']='',_0x4d69a5['prototype']['comments']=_0x44b59b['emptyArray'],_0x4d69a5['create']=function(_0x563efb){return new _0x4d69a5(_0x563efb);},_0x4d69a5['encode']=function(_0x236b48,_0x5866b3){if(_0x5866b3||(_0x5866b3=_0x2e8075['create']()),null!=_0x236b48['documentId']&&Object['hasOwnProperty']['call'](_0x236b48,'documentId')&&_0x5866b3['uint32'](0xa)['string'](_0x236b48['documentId']),null!=_0x236b48['commentThreadId']&&Object['hasOwnProperty']['call'](_0x236b48,'commentThreadId')&&_0x5866b3['uint32'](0x12)['string'](_0x236b48['commentThreadId']),null!=_0x236b48['context']&&Object['hasOwnProperty']['call'](_0x236b48,'context')&&_0x5866b3['uint32'](0x1a)['string'](_0x236b48['context']),null!=_0x236b48['createdAt']&&Object['hasOwnProperty']['call'](_0x236b48,'createdAt')&&_0x5866b3['uint32'](0x22)['string'](_0x236b48['createdAt']),null!=_0x236b48['resolvedAt']&&Object['hasOwnProperty']['call'](_0x236b48,'resolvedAt')&&_0x5866b3['uint32'](0x2a)['string'](_0x236b48['resolvedAt']),null!=_0x236b48['resolvedBy']&&Object['hasOwnProperty']['call'](_0x236b48,'resolvedBy')&&_0x5866b3['uint32'](0x32)['string'](_0x236b48['resolvedBy']),null!=_0x236b48['attributes']&&Object['hasOwnProperty']['call'](_0x236b48,'attributes')&&_0x5866b3['uint32'](0x3a)['string'](_0x236b48['attributes']),null!=_0x236b48['deletedAt']&&Object['hasOwnProperty']['call'](_0x236b48,'deletedAt')&&_0x5866b3['uint32'](0x42)['string'](_0x236b48['deletedAt']),null!=_0x236b48['comments']&&_0x236b48['comments']['length']){for(var _0x4a1977=0x0;_0x4a1977<_0x236b48['comments']['length'];++_0x4a1977)_0x1429da['CommentDescriptor']['encode'](_0x236b48['comments'][_0x4a1977],_0x5866b3['uint32'](0x4a)['fork']())['ldelim']();}return _0x5866b3;},_0x4d69a5['encodeDelimited']=function(_0x20b58e,_0x1dc82a){return this['encode'](_0x20b58e,_0x1dc82a)['ldelim']();},_0x4d69a5['decode']=function(_0x53f816,_0x24d5c2,_0x4e661a){_0x53f816 instanceof _0x5e9c2f||(_0x53f816=_0x5e9c2f['create'](_0x53f816));for(var _0x39d7e9=void 0x0===_0x24d5c2?_0x53f816['len']:_0x53f816['pos']+_0x24d5c2,_0x1b7174=new _0x1429da['CommentsV2AddCommentThreadMessage']();_0x53f816['pos']<_0x39d7e9;){var _0x47bb5a=_0x53f816['uint32']();if(_0x47bb5a===_0x4e661a)break;switch(_0x47bb5a>>>0x3){case 0x1:_0x1b7174['documentId']=_0x53f816['string']();break;case 0x2:_0x1b7174['commentThreadId']=_0x53f816['string']();break;case 0x3:_0x1b7174['context']=_0x53f816['string']();break;case 0x4:_0x1b7174['createdAt']=_0x53f816['string']();break;case 0x5:_0x1b7174['resolvedAt']=_0x53f816['string']();break;case 0x6:_0x1b7174['resolvedBy']=_0x53f816['string']();break;case 0x7:_0x1b7174['attributes']=_0x53f816['string']();break;case 0x8:_0x1b7174['deletedAt']=_0x53f816['string']();break;case 0x9:_0x1b7174['comments']&&_0x1b7174['comments']['length']||(_0x1b7174['comments']=[]),_0x1b7174['comments']['push'](_0x1429da['CommentDescriptor']['decode'](_0x53f816,_0x53f816['uint32']()));break;default:_0x53f816['skipType'](0x7&_0x47bb5a);}}return _0x1b7174;},_0x4d69a5['decodeDelimited']=function(_0x226909){return _0x226909 instanceof _0x5e9c2f||(_0x226909=new _0x5e9c2f(_0x226909)),this['decode'](_0x226909,_0x226909['uint32']());},_0x4d69a5['verify']=function(_0x35aa62){if('object'!=typeof _0x35aa62||null===_0x35aa62)return'object\x20expected';if(null!=_0x35aa62['documentId']&&_0x35aa62['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x35aa62['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x35aa62['commentThreadId']&&_0x35aa62['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x35aa62['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x35aa62['context']&&_0x35aa62['hasOwnProperty']('context')&&!_0x44b59b['isString'](_0x35aa62['context']))return'context:\x20string\x20expected';if(null!=_0x35aa62['createdAt']&&_0x35aa62['hasOwnProperty']('createdAt')&&!_0x44b59b['isString'](_0x35aa62['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x35aa62['resolvedAt']&&_0x35aa62['hasOwnProperty']('resolvedAt')&&!_0x44b59b['isString'](_0x35aa62['resolvedAt']))return'resolvedAt:\x20string\x20expected';if(null!=_0x35aa62['resolvedBy']&&_0x35aa62['hasOwnProperty']('resolvedBy')&&!_0x44b59b['isString'](_0x35aa62['resolvedBy']))return'resolvedBy:\x20string\x20expected';if(null!=_0x35aa62['attributes']&&_0x35aa62['hasOwnProperty']('attributes')&&!_0x44b59b['isString'](_0x35aa62['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x35aa62['deletedAt']&&_0x35aa62['hasOwnProperty']('deletedAt')&&!_0x44b59b['isString'](_0x35aa62['deletedAt']))return'deletedAt:\x20string\x20expected';if(null!=_0x35aa62['comments']&&_0x35aa62['hasOwnProperty']('comments')){if(!Array['isArray'](_0x35aa62['comments']))return'comments:\x20array\x20expected';for(var _0x3141da=0x0;_0x3141da<_0x35aa62['comments']['length'];++_0x3141da){var _0x2c1627=_0x1429da['CommentDescriptor']['verify'](_0x35aa62['comments'][_0x3141da]);if(_0x2c1627)return'comments.'+_0x2c1627;}}return null;},_0x4d69a5['fromObject']=function(_0x4a402d){if(_0x4a402d instanceof _0x1429da['CommentsV2AddCommentThreadMessage'])return _0x4a402d;var _0x144e4f=new _0x1429da['CommentsV2AddCommentThreadMessage']();if(null!=_0x4a402d['documentId']&&(_0x144e4f['documentId']=String(_0x4a402d['documentId'])),null!=_0x4a402d['commentThreadId']&&(_0x144e4f['commentThreadId']=String(_0x4a402d['commentThreadId'])),null!=_0x4a402d['context']&&(_0x144e4f['context']=String(_0x4a402d['context'])),null!=_0x4a402d['createdAt']&&(_0x144e4f['createdAt']=String(_0x4a402d['createdAt'])),null!=_0x4a402d['resolvedAt']&&(_0x144e4f['resolvedAt']=String(_0x4a402d['resolvedAt'])),null!=_0x4a402d['resolvedBy']&&(_0x144e4f['resolvedBy']=String(_0x4a402d['resolvedBy'])),null!=_0x4a402d['attributes']&&(_0x144e4f['attributes']=String(_0x4a402d['attributes'])),null!=_0x4a402d['deletedAt']&&(_0x144e4f['deletedAt']=String(_0x4a402d['deletedAt'])),_0x4a402d['comments']){if(!Array['isArray'](_0x4a402d['comments']))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20array\x20expected');_0x144e4f['comments']=[];for(var _0x11bb77=0x0;_0x11bb77<_0x4a402d['comments']['length'];++_0x11bb77){if('object'!=typeof _0x4a402d['comments'][_0x11bb77])throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20object\x20expected');_0x144e4f['comments'][_0x11bb77]=_0x1429da['CommentDescriptor']['fromObject'](_0x4a402d['comments'][_0x11bb77]);}}return _0x144e4f;},_0x4d69a5['toObject']=function(_0x423e92,_0x298cfa){_0x298cfa||(_0x298cfa={});var _0x519177={};if((_0x298cfa['arrays']||_0x298cfa['defaults'])&&(_0x519177['comments']=[]),_0x298cfa['defaults']&&(_0x519177['documentId']='',_0x519177['commentThreadId']='',_0x519177['context']='',_0x519177['createdAt']='',_0x519177['resolvedAt']='',_0x519177['resolvedBy']='',_0x519177['attributes']='',_0x519177['deletedAt']=''),null!=_0x423e92['documentId']&&_0x423e92['hasOwnProperty']('documentId')&&(_0x519177['documentId']=_0x423e92['documentId']),null!=_0x423e92['commentThreadId']&&_0x423e92['hasOwnProperty']('commentThreadId')&&(_0x519177['commentThreadId']=_0x423e92['commentThreadId']),null!=_0x423e92['context']&&_0x423e92['hasOwnProperty']('context')&&(_0x519177['context']=_0x423e92['context']),null!=_0x423e92['createdAt']&&_0x423e92['hasOwnProperty']('createdAt')&&(_0x519177['createdAt']=_0x423e92['createdAt']),null!=_0x423e92['resolvedAt']&&_0x423e92['hasOwnProperty']('resolvedAt')&&(_0x519177['resolvedAt']=_0x423e92['resolvedAt']),null!=_0x423e92['resolvedBy']&&_0x423e92['hasOwnProperty']('resolvedBy')&&(_0x519177['resolvedBy']=_0x423e92['resolvedBy']),null!=_0x423e92['attributes']&&_0x423e92['hasOwnProperty']('attributes')&&(_0x519177['attributes']=_0x423e92['attributes']),null!=_0x423e92['deletedAt']&&_0x423e92['hasOwnProperty']('deletedAt')&&(_0x519177['deletedAt']=_0x423e92['deletedAt']),_0x423e92['comments']&&_0x423e92['comments']['length']){_0x519177['comments']=[];for(var _0x568b40=0x0;_0x568b40<_0x423e92['comments']['length'];++_0x568b40)_0x519177['comments'][_0x568b40]=_0x1429da['CommentDescriptor']['toObject'](_0x423e92['comments'][_0x568b40],_0x298cfa);}return _0x519177;},_0x4d69a5['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4d69a5['getTypeUrl']=function(_0x55bcd4){return void 0x0===_0x55bcd4&&(_0x55bcd4='type.googleapis.com'),_0x55bcd4+'/CommentsV2AddCommentThreadMessage';},_0x4d69a5;}()),_0x1429da['CommentThreadAddedCommentDescriptor']=(function(){function _0x16e40c(_0x28723a){if(_0x28723a){for(var _0x238c2c=Object['keys'](_0x28723a),_0x352975=0x0;_0x352975<_0x238c2c['length'];++_0x352975)null!=_0x28723a[_0x238c2c[_0x352975]]&&(this[_0x238c2c[_0x352975]]=_0x28723a[_0x238c2c[_0x352975]]);}}return _0x16e40c['prototype']['commentId']='',_0x16e40c['prototype']['createdAt']='',_0x16e40c['create']=function(_0x309e5b){return new _0x16e40c(_0x309e5b);},_0x16e40c['encode']=function(_0xa7610e,_0x166afd){return _0x166afd||(_0x166afd=_0x2e8075['create']()),null!=_0xa7610e['commentId']&&Object['hasOwnProperty']['call'](_0xa7610e,'commentId')&&_0x166afd['uint32'](0xa)['string'](_0xa7610e['commentId']),null!=_0xa7610e['createdAt']&&Object['hasOwnProperty']['call'](_0xa7610e,'createdAt')&&_0x166afd['uint32'](0x12)['string'](_0xa7610e['createdAt']),_0x166afd;},_0x16e40c['encodeDelimited']=function(_0x44a798,_0x15f3ce){return this['encode'](_0x44a798,_0x15f3ce)['ldelim']();},_0x16e40c['decode']=function(_0x37e422,_0x45c590,_0x3d452f){_0x37e422 instanceof _0x5e9c2f||(_0x37e422=_0x5e9c2f['create'](_0x37e422));for(var _0x1fb9f6=void 0x0===_0x45c590?_0x37e422['len']:_0x37e422['pos']+_0x45c590,_0x54841a=new _0x1429da['CommentThreadAddedCommentDescriptor']();_0x37e422['pos']<_0x1fb9f6;){var _0x439253=_0x37e422['uint32']();if(_0x439253===_0x3d452f)break;switch(_0x439253>>>0x3){case 0x1:_0x54841a['commentId']=_0x37e422['string']();break;case 0x2:_0x54841a['createdAt']=_0x37e422['string']();break;default:_0x37e422['skipType'](0x7&_0x439253);}}return _0x54841a;},_0x16e40c['decodeDelimited']=function(_0x5616aa){return _0x5616aa instanceof _0x5e9c2f||(_0x5616aa=new _0x5e9c2f(_0x5616aa)),this['decode'](_0x5616aa,_0x5616aa['uint32']());},_0x16e40c['verify']=function(_0x10de3d){return'object'!=typeof _0x10de3d||null===_0x10de3d?'object\x20expected':null!=_0x10de3d['commentId']&&_0x10de3d['hasOwnProperty']('commentId')&&!_0x44b59b['isString'](_0x10de3d['commentId'])?'commentId:\x20string\x20expected':null!=_0x10de3d['createdAt']&&_0x10de3d['hasOwnProperty']('createdAt')&&!_0x44b59b['isString'](_0x10de3d['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x16e40c['fromObject']=function(_0x50fb6d){if(_0x50fb6d instanceof _0x1429da['CommentThreadAddedCommentDescriptor'])return _0x50fb6d;var _0x920078=new _0x1429da['CommentThreadAddedCommentDescriptor']();return null!=_0x50fb6d['commentId']&&(_0x920078['commentId']=String(_0x50fb6d['commentId'])),null!=_0x50fb6d['createdAt']&&(_0x920078['createdAt']=String(_0x50fb6d['createdAt'])),_0x920078;},_0x16e40c['toObject']=function(_0x448ea4,_0x4f9ed1){_0x4f9ed1||(_0x4f9ed1={});var _0x13848d={};return _0x4f9ed1['defaults']&&(_0x13848d['commentId']='',_0x13848d['createdAt']=''),null!=_0x448ea4['commentId']&&_0x448ea4['hasOwnProperty']('commentId')&&(_0x13848d['commentId']=_0x448ea4['commentId']),null!=_0x448ea4['createdAt']&&_0x448ea4['hasOwnProperty']('createdAt')&&(_0x13848d['createdAt']=_0x448ea4['createdAt']),_0x13848d;},_0x16e40c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x16e40c['getTypeUrl']=function(_0x5b14bf){return void 0x0===_0x5b14bf&&(_0x5b14bf='type.googleapis.com'),_0x5b14bf+'/CommentThreadAddedCommentDescriptor';},_0x16e40c;}()),_0x1429da['CommentsThreadDescriptor']=(function(){function _0x2c9509(_0x4bb1d9){if(this['comments']=[],_0x4bb1d9){for(var _0x37ffce=Object['keys'](_0x4bb1d9),_0x18defe=0x0;_0x18defe<_0x37ffce['length'];++_0x18defe)null!=_0x4bb1d9[_0x37ffce[_0x18defe]]&&(this[_0x37ffce[_0x18defe]]=_0x4bb1d9[_0x37ffce[_0x18defe]]);}}return _0x2c9509['prototype']['commentThreadId']='',_0x2c9509['prototype']['comments']=_0x44b59b['emptyArray'],_0x2c9509['prototype']['resolvedAt']='',_0x2c9509['prototype']['resolvedBy']='',_0x2c9509['prototype']['context']='',_0x2c9509['prototype']['createdAt']='',_0x2c9509['prototype']['deletedAt']='',_0x2c9509['prototype']['attributes']='',_0x2c9509['prototype']['unlinkedAt']='',_0x2c9509['create']=function(_0x1a2c5f){return new _0x2c9509(_0x1a2c5f);},_0x2c9509['encode']=function(_0x4ac7e2,_0x3dc306){if(_0x3dc306||(_0x3dc306=_0x2e8075['create']()),null!=_0x4ac7e2['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4ac7e2,'commentThreadId')&&_0x3dc306['uint32'](0xa)['string'](_0x4ac7e2['commentThreadId']),null!=_0x4ac7e2['comments']&&_0x4ac7e2['comments']['length']){for(var _0x38568d=0x0;_0x38568d<_0x4ac7e2['comments']['length'];++_0x38568d)_0x1429da['CommentDescriptor']['encode'](_0x4ac7e2['comments'][_0x38568d],_0x3dc306['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x4ac7e2['resolvedAt']&&Object['hasOwnProperty']['call'](_0x4ac7e2,'resolvedAt')&&_0x3dc306['uint32'](0x1a)['string'](_0x4ac7e2['resolvedAt']),null!=_0x4ac7e2['resolvedBy']&&Object['hasOwnProperty']['call'](_0x4ac7e2,'resolvedBy')&&_0x3dc306['uint32'](0x22)['string'](_0x4ac7e2['resolvedBy']),null!=_0x4ac7e2['context']&&Object['hasOwnProperty']['call'](_0x4ac7e2,'context')&&_0x3dc306['uint32'](0x2a)['string'](_0x4ac7e2['context']),null!=_0x4ac7e2['createdAt']&&Object['hasOwnProperty']['call'](_0x4ac7e2,'createdAt')&&_0x3dc306['uint32'](0x32)['string'](_0x4ac7e2['createdAt']),null!=_0x4ac7e2['deletedAt']&&Object['hasOwnProperty']['call'](_0x4ac7e2,'deletedAt')&&_0x3dc306['uint32'](0x3a)['string'](_0x4ac7e2['deletedAt']),null!=_0x4ac7e2['attributes']&&Object['hasOwnProperty']['call'](_0x4ac7e2,'attributes')&&_0x3dc306['uint32'](0x42)['string'](_0x4ac7e2['attributes']),null!=_0x4ac7e2['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x4ac7e2,'unlinkedAt')&&_0x3dc306['uint32'](0x4a)['string'](_0x4ac7e2['unlinkedAt']),_0x3dc306;},_0x2c9509['encodeDelimited']=function(_0x676a45,_0x36232d){return this['encode'](_0x676a45,_0x36232d)['ldelim']();},_0x2c9509['decode']=function(_0x4022de,_0xaa12d7,_0x1a5f4b){_0x4022de instanceof _0x5e9c2f||(_0x4022de=_0x5e9c2f['create'](_0x4022de));for(var _0x25b3b8=void 0x0===_0xaa12d7?_0x4022de['len']:_0x4022de['pos']+_0xaa12d7,_0x39b18e=new _0x1429da['CommentsThreadDescriptor']();_0x4022de['pos']<_0x25b3b8;){var _0x1332a6=_0x4022de['uint32']();if(_0x1332a6===_0x1a5f4b)break;switch(_0x1332a6>>>0x3){case 0x1:_0x39b18e['commentThreadId']=_0x4022de['string']();break;case 0x2:_0x39b18e['comments']&&_0x39b18e['comments']['length']||(_0x39b18e['comments']=[]),_0x39b18e['comments']['push'](_0x1429da['CommentDescriptor']['decode'](_0x4022de,_0x4022de['uint32']()));break;case 0x3:_0x39b18e['resolvedAt']=_0x4022de['string']();break;case 0x4:_0x39b18e['resolvedBy']=_0x4022de['string']();break;case 0x5:_0x39b18e['context']=_0x4022de['string']();break;case 0x6:_0x39b18e['createdAt']=_0x4022de['string']();break;case 0x7:_0x39b18e['deletedAt']=_0x4022de['string']();break;case 0x8:_0x39b18e['attributes']=_0x4022de['string']();break;case 0x9:_0x39b18e['unlinkedAt']=_0x4022de['string']();break;default:_0x4022de['skipType'](0x7&_0x1332a6);}}return _0x39b18e;},_0x2c9509['decodeDelimited']=function(_0x39e6e1){return _0x39e6e1 instanceof _0x5e9c2f||(_0x39e6e1=new _0x5e9c2f(_0x39e6e1)),this['decode'](_0x39e6e1,_0x39e6e1['uint32']());},_0x2c9509['verify']=function(_0x3de882){if('object'!=typeof _0x3de882||null===_0x3de882)return'object\x20expected';if(null!=_0x3de882['commentThreadId']&&_0x3de882['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x3de882['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x3de882['comments']&&_0x3de882['hasOwnProperty']('comments')){if(!Array['isArray'](_0x3de882['comments']))return'comments:\x20array\x20expected';for(var _0x41e8a5=0x0;_0x41e8a5<_0x3de882['comments']['length'];++_0x41e8a5){var _0x4871ac=_0x1429da['CommentDescriptor']['verify'](_0x3de882['comments'][_0x41e8a5]);if(_0x4871ac)return'comments.'+_0x4871ac;}}return null!=_0x3de882['resolvedAt']&&_0x3de882['hasOwnProperty']('resolvedAt')&&!_0x44b59b['isString'](_0x3de882['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x3de882['resolvedBy']&&_0x3de882['hasOwnProperty']('resolvedBy')&&!_0x44b59b['isString'](_0x3de882['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x3de882['context']&&_0x3de882['hasOwnProperty']('context')&&!_0x44b59b['isString'](_0x3de882['context'])?'context:\x20string\x20expected':null!=_0x3de882['createdAt']&&_0x3de882['hasOwnProperty']('createdAt')&&!_0x44b59b['isString'](_0x3de882['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3de882['deletedAt']&&_0x3de882['hasOwnProperty']('deletedAt')&&!_0x44b59b['isString'](_0x3de882['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x3de882['attributes']&&_0x3de882['hasOwnProperty']('attributes')&&!_0x44b59b['isString'](_0x3de882['attributes'])?'attributes:\x20string\x20expected':null!=_0x3de882['unlinkedAt']&&_0x3de882['hasOwnProperty']('unlinkedAt')&&!_0x44b59b['isString'](_0x3de882['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x2c9509['fromObject']=function(_0x7635cd){if(_0x7635cd instanceof _0x1429da['CommentsThreadDescriptor'])return _0x7635cd;var _0x50b224=new _0x1429da['CommentsThreadDescriptor']();if(null!=_0x7635cd['commentThreadId']&&(_0x50b224['commentThreadId']=String(_0x7635cd['commentThreadId'])),_0x7635cd['comments']){if(!Array['isArray'](_0x7635cd['comments']))throw TypeError('.CommentsThreadDescriptor.comments:\x20array\x20expected');_0x50b224['comments']=[];for(var _0x432f4d=0x0;_0x432f4d<_0x7635cd['comments']['length'];++_0x432f4d){if('object'!=typeof _0x7635cd['comments'][_0x432f4d])throw TypeError('.CommentsThreadDescriptor.comments:\x20object\x20expected');_0x50b224['comments'][_0x432f4d]=_0x1429da['CommentDescriptor']['fromObject'](_0x7635cd['comments'][_0x432f4d]);}}return null!=_0x7635cd['resolvedAt']&&(_0x50b224['resolvedAt']=String(_0x7635cd['resolvedAt'])),null!=_0x7635cd['resolvedBy']&&(_0x50b224['resolvedBy']=String(_0x7635cd['resolvedBy'])),null!=_0x7635cd['context']&&(_0x50b224['context']=String(_0x7635cd['context'])),null!=_0x7635cd['createdAt']&&(_0x50b224['createdAt']=String(_0x7635cd['createdAt'])),null!=_0x7635cd['deletedAt']&&(_0x50b224['deletedAt']=String(_0x7635cd['deletedAt'])),null!=_0x7635cd['attributes']&&(_0x50b224['attributes']=String(_0x7635cd['attributes'])),null!=_0x7635cd['unlinkedAt']&&(_0x50b224['unlinkedAt']=String(_0x7635cd['unlinkedAt'])),_0x50b224;},_0x2c9509['toObject']=function(_0x3e39fe,_0xe4ea93){_0xe4ea93||(_0xe4ea93={});var _0x2258a8={};if((_0xe4ea93['arrays']||_0xe4ea93['defaults'])&&(_0x2258a8['comments']=[]),_0xe4ea93['defaults']&&(_0x2258a8['commentThreadId']='',_0x2258a8['resolvedAt']='',_0x2258a8['resolvedBy']='',_0x2258a8['context']='',_0x2258a8['createdAt']='',_0x2258a8['deletedAt']='',_0x2258a8['attributes']='',_0x2258a8['unlinkedAt']=''),null!=_0x3e39fe['commentThreadId']&&_0x3e39fe['hasOwnProperty']('commentThreadId')&&(_0x2258a8['commentThreadId']=_0x3e39fe['commentThreadId']),_0x3e39fe['comments']&&_0x3e39fe['comments']['length']){_0x2258a8['comments']=[];for(var _0x4efd71=0x0;_0x4efd71<_0x3e39fe['comments']['length'];++_0x4efd71)_0x2258a8['comments'][_0x4efd71]=_0x1429da['CommentDescriptor']['toObject'](_0x3e39fe['comments'][_0x4efd71],_0xe4ea93);}return null!=_0x3e39fe['resolvedAt']&&_0x3e39fe['hasOwnProperty']('resolvedAt')&&(_0x2258a8['resolvedAt']=_0x3e39fe['resolvedAt']),null!=_0x3e39fe['resolvedBy']&&_0x3e39fe['hasOwnProperty']('resolvedBy')&&(_0x2258a8['resolvedBy']=_0x3e39fe['resolvedBy']),null!=_0x3e39fe['context']&&_0x3e39fe['hasOwnProperty']('context')&&(_0x2258a8['context']=_0x3e39fe['context']),null!=_0x3e39fe['createdAt']&&_0x3e39fe['hasOwnProperty']('createdAt')&&(_0x2258a8['createdAt']=_0x3e39fe['createdAt']),null!=_0x3e39fe['deletedAt']&&_0x3e39fe['hasOwnProperty']('deletedAt')&&(_0x2258a8['deletedAt']=_0x3e39fe['deletedAt']),null!=_0x3e39fe['attributes']&&_0x3e39fe['hasOwnProperty']('attributes')&&(_0x2258a8['attributes']=_0x3e39fe['attributes']),null!=_0x3e39fe['unlinkedAt']&&_0x3e39fe['hasOwnProperty']('unlinkedAt')&&(_0x2258a8['unlinkedAt']=_0x3e39fe['unlinkedAt']),_0x2258a8;},_0x2c9509['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2c9509['getTypeUrl']=function(_0x2186e6){return void 0x0===_0x2186e6&&(_0x2186e6='type.googleapis.com'),_0x2186e6+'/CommentsThreadDescriptor';},_0x2c9509;}()),_0x1429da['CommentDescriptor']=(function(){function _0x4cbb8f(_0x26d759){if(_0x26d759){for(var _0x2a9406=Object['keys'](_0x26d759),_0x5d124e=0x0;_0x5d124e<_0x2a9406['length'];++_0x5d124e)null!=_0x26d759[_0x2a9406[_0x5d124e]]&&(this[_0x2a9406[_0x5d124e]]=_0x26d759[_0x2a9406[_0x5d124e]]);}}return _0x4cbb8f['prototype']['commentId']='',_0x4cbb8f['prototype']['commentThreadId']='',_0x4cbb8f['prototype']['userId']='',_0x4cbb8f['prototype']['content']='',_0x4cbb8f['prototype']['documentId']='',_0x4cbb8f['prototype']['createdAt']='',_0x4cbb8f['prototype']['attributes']='',_0x4cbb8f['create']=function(_0x45bd40){return new _0x4cbb8f(_0x45bd40);},_0x4cbb8f['encode']=function(_0xd98991,_0x5d93f9){return _0x5d93f9||(_0x5d93f9=_0x2e8075['create']()),null!=_0xd98991['commentId']&&Object['hasOwnProperty']['call'](_0xd98991,'commentId')&&_0x5d93f9['uint32'](0xa)['string'](_0xd98991['commentId']),null!=_0xd98991['commentThreadId']&&Object['hasOwnProperty']['call'](_0xd98991,'commentThreadId')&&_0x5d93f9['uint32'](0x12)['string'](_0xd98991['commentThreadId']),null!=_0xd98991['userId']&&Object['hasOwnProperty']['call'](_0xd98991,'userId')&&_0x5d93f9['uint32'](0x1a)['string'](_0xd98991['userId']),null!=_0xd98991['content']&&Object['hasOwnProperty']['call'](_0xd98991,'content')&&_0x5d93f9['uint32'](0x22)['string'](_0xd98991['content']),null!=_0xd98991['documentId']&&Object['hasOwnProperty']['call'](_0xd98991,'documentId')&&_0x5d93f9['uint32'](0x2a)['string'](_0xd98991['documentId']),null!=_0xd98991['createdAt']&&Object['hasOwnProperty']['call'](_0xd98991,'createdAt')&&_0x5d93f9['uint32'](0x32)['string'](_0xd98991['createdAt']),null!=_0xd98991['attributes']&&Object['hasOwnProperty']['call'](_0xd98991,'attributes')&&_0x5d93f9['uint32'](0x3a)['string'](_0xd98991['attributes']),_0x5d93f9;},_0x4cbb8f['encodeDelimited']=function(_0x241db9,_0x4fb93e){return this['encode'](_0x241db9,_0x4fb93e)['ldelim']();},_0x4cbb8f['decode']=function(_0x35604a,_0x68bcb9,_0x3bde23){_0x35604a instanceof _0x5e9c2f||(_0x35604a=_0x5e9c2f['create'](_0x35604a));for(var _0x110ef8=void 0x0===_0x68bcb9?_0x35604a['len']:_0x35604a['pos']+_0x68bcb9,_0x14ff76=new _0x1429da['CommentDescriptor']();_0x35604a['pos']<_0x110ef8;){var _0x4f81dc=_0x35604a['uint32']();if(_0x4f81dc===_0x3bde23)break;switch(_0x4f81dc>>>0x3){case 0x1:_0x14ff76['commentId']=_0x35604a['string']();break;case 0x2:_0x14ff76['commentThreadId']=_0x35604a['string']();break;case 0x3:_0x14ff76['userId']=_0x35604a['string']();break;case 0x4:_0x14ff76['content']=_0x35604a['string']();break;case 0x5:_0x14ff76['documentId']=_0x35604a['string']();break;case 0x6:_0x14ff76['createdAt']=_0x35604a['string']();break;case 0x7:_0x14ff76['attributes']=_0x35604a['string']();break;default:_0x35604a['skipType'](0x7&_0x4f81dc);}}return _0x14ff76;},_0x4cbb8f['decodeDelimited']=function(_0x3f2d78){return _0x3f2d78 instanceof _0x5e9c2f||(_0x3f2d78=new _0x5e9c2f(_0x3f2d78)),this['decode'](_0x3f2d78,_0x3f2d78['uint32']());},_0x4cbb8f['verify']=function(_0x3ba906){return'object'!=typeof _0x3ba906||null===_0x3ba906?'object\x20expected':null!=_0x3ba906['commentId']&&_0x3ba906['hasOwnProperty']('commentId')&&!_0x44b59b['isString'](_0x3ba906['commentId'])?'commentId:\x20string\x20expected':null!=_0x3ba906['commentThreadId']&&_0x3ba906['hasOwnProperty']('commentThreadId')&&!_0x44b59b['isString'](_0x3ba906['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x3ba906['userId']&&_0x3ba906['hasOwnProperty']('userId')&&!_0x44b59b['isString'](_0x3ba906['userId'])?'userId:\x20string\x20expected':null!=_0x3ba906['content']&&_0x3ba906['hasOwnProperty']('content')&&!_0x44b59b['isString'](_0x3ba906['content'])?'content:\x20string\x20expected':null!=_0x3ba906['documentId']&&_0x3ba906['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x3ba906['documentId'])?'documentId:\x20string\x20expected':null!=_0x3ba906['createdAt']&&_0x3ba906['hasOwnProperty']('createdAt')&&!_0x44b59b['isString'](_0x3ba906['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3ba906['attributes']&&_0x3ba906['hasOwnProperty']('attributes')&&!_0x44b59b['isString'](_0x3ba906['attributes'])?'attributes:\x20string\x20expected':null;},_0x4cbb8f['fromObject']=function(_0x55f828){if(_0x55f828 instanceof _0x1429da['CommentDescriptor'])return _0x55f828;var _0x1d84ae=new _0x1429da['CommentDescriptor']();return null!=_0x55f828['commentId']&&(_0x1d84ae['commentId']=String(_0x55f828['commentId'])),null!=_0x55f828['commentThreadId']&&(_0x1d84ae['commentThreadId']=String(_0x55f828['commentThreadId'])),null!=_0x55f828['userId']&&(_0x1d84ae['userId']=String(_0x55f828['userId'])),null!=_0x55f828['content']&&(_0x1d84ae['content']=String(_0x55f828['content'])),null!=_0x55f828['documentId']&&(_0x1d84ae['documentId']=String(_0x55f828['documentId'])),null!=_0x55f828['createdAt']&&(_0x1d84ae['createdAt']=String(_0x55f828['createdAt'])),null!=_0x55f828['attributes']&&(_0x1d84ae['attributes']=String(_0x55f828['attributes'])),_0x1d84ae;},_0x4cbb8f['toObject']=function(_0xdab1ff,_0x1f45fd){_0x1f45fd||(_0x1f45fd={});var _0x6ff5e4={};return _0x1f45fd['defaults']&&(_0x6ff5e4['commentId']='',_0x6ff5e4['commentThreadId']='',_0x6ff5e4['userId']='',_0x6ff5e4['content']='',_0x6ff5e4['documentId']='',_0x6ff5e4['createdAt']='',_0x6ff5e4['attributes']=''),null!=_0xdab1ff['commentId']&&_0xdab1ff['hasOwnProperty']('commentId')&&(_0x6ff5e4['commentId']=_0xdab1ff['commentId']),null!=_0xdab1ff['commentThreadId']&&_0xdab1ff['hasOwnProperty']('commentThreadId')&&(_0x6ff5e4['commentThreadId']=_0xdab1ff['commentThreadId']),null!=_0xdab1ff['userId']&&_0xdab1ff['hasOwnProperty']('userId')&&(_0x6ff5e4['userId']=_0xdab1ff['userId']),null!=_0xdab1ff['content']&&_0xdab1ff['hasOwnProperty']('content')&&(_0x6ff5e4['content']=_0xdab1ff['content']),null!=_0xdab1ff['documentId']&&_0xdab1ff['hasOwnProperty']('documentId')&&(_0x6ff5e4['documentId']=_0xdab1ff['documentId']),null!=_0xdab1ff['createdAt']&&_0xdab1ff['hasOwnProperty']('createdAt')&&(_0x6ff5e4['createdAt']=_0xdab1ff['createdAt']),null!=_0xdab1ff['attributes']&&_0xdab1ff['hasOwnProperty']('attributes')&&(_0x6ff5e4['attributes']=_0xdab1ff['attributes']),_0x6ff5e4;},_0x4cbb8f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4cbb8f['getTypeUrl']=function(_0x29f440){return void 0x0===_0x29f440&&(_0x29f440='type.googleapis.com'),_0x29f440+'/CommentDescriptor';},_0x4cbb8f;}()),_0x1429da['GetDocumentDetailsResponse']=(function(){function _0x538755(_0x1ff86b){if(_0x1ff86b){for(var _0x565173=Object['keys'](_0x1ff86b),_0x2a7272=0x0;_0x2a7272<_0x565173['length'];++_0x2a7272)null!=_0x1ff86b[_0x565173[_0x2a7272]]&&(this[_0x565173[_0x2a7272]]=_0x1ff86b[_0x565173[_0x2a7272]]);}}return _0x538755['prototype']['lastDocumentSessionId']='',_0x538755['prototype']['lastDocumentSessionOperationId']='',_0x538755['prototype']['currentDocumentSessionId']='',_0x538755['prototype']['currentDocumentSessionVersion']=0x0,_0x538755['prototype']['currentDocumentSessionOperationId']='',_0x538755['create']=function(_0x2e0abe){return new _0x538755(_0x2e0abe);},_0x538755['encode']=function(_0x297400,_0x61d66){return _0x61d66||(_0x61d66=_0x2e8075['create']()),null!=_0x297400['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x297400,'lastDocumentSessionId')&&_0x61d66['uint32'](0xa)['string'](_0x297400['lastDocumentSessionId']),null!=_0x297400['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x297400,'lastDocumentSessionOperationId')&&_0x61d66['uint32'](0x12)['string'](_0x297400['lastDocumentSessionOperationId']),null!=_0x297400['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x297400,'currentDocumentSessionId')&&_0x61d66['uint32'](0x1a)['string'](_0x297400['currentDocumentSessionId']),null!=_0x297400['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x297400,'currentDocumentSessionVersion')&&_0x61d66['uint32'](0x20)['uint32'](_0x297400['currentDocumentSessionVersion']),null!=_0x297400['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x297400,'currentDocumentSessionOperationId')&&_0x61d66['uint32'](0x2a)['string'](_0x297400['currentDocumentSessionOperationId']),_0x61d66;},_0x538755['encodeDelimited']=function(_0x42f9d9,_0x514ee9){return this['encode'](_0x42f9d9,_0x514ee9)['ldelim']();},_0x538755['decode']=function(_0x2d1e9e,_0x1ddfa5,_0x5e7023){_0x2d1e9e instanceof _0x5e9c2f||(_0x2d1e9e=_0x5e9c2f['create'](_0x2d1e9e));for(var _0x49736b=void 0x0===_0x1ddfa5?_0x2d1e9e['len']:_0x2d1e9e['pos']+_0x1ddfa5,_0x3959f7=new _0x1429da['GetDocumentDetailsResponse']();_0x2d1e9e['pos']<_0x49736b;){var _0x2c468c=_0x2d1e9e['uint32']();if(_0x2c468c===_0x5e7023)break;switch(_0x2c468c>>>0x3){case 0x1:_0x3959f7['lastDocumentSessionId']=_0x2d1e9e['string']();break;case 0x2:_0x3959f7['lastDocumentSessionOperationId']=_0x2d1e9e['string']();break;case 0x3:_0x3959f7['currentDocumentSessionId']=_0x2d1e9e['string']();break;case 0x4:_0x3959f7['currentDocumentSessionVersion']=_0x2d1e9e['uint32']();break;case 0x5:_0x3959f7['currentDocumentSessionOperationId']=_0x2d1e9e['string']();break;default:_0x2d1e9e['skipType'](0x7&_0x2c468c);}}return _0x3959f7;},_0x538755['decodeDelimited']=function(_0x490da0){return _0x490da0 instanceof _0x5e9c2f||(_0x490da0=new _0x5e9c2f(_0x490da0)),this['decode'](_0x490da0,_0x490da0['uint32']());},_0x538755['verify']=function(_0x2c3a98){return'object'!=typeof _0x2c3a98||null===_0x2c3a98?'object\x20expected':null!=_0x2c3a98['lastDocumentSessionId']&&_0x2c3a98['hasOwnProperty']('lastDocumentSessionId')&&!_0x44b59b['isString'](_0x2c3a98['lastDocumentSessionId'])?'lastDocumentSessionId:\x20string\x20expected':null!=_0x2c3a98['lastDocumentSessionOperationId']&&_0x2c3a98['hasOwnProperty']('lastDocumentSessionOperationId')&&!_0x44b59b['isString'](_0x2c3a98['lastDocumentSessionOperationId'])?'lastDocumentSessionOperationId:\x20string\x20expected':null!=_0x2c3a98['currentDocumentSessionId']&&_0x2c3a98['hasOwnProperty']('currentDocumentSessionId')&&!_0x44b59b['isString'](_0x2c3a98['currentDocumentSessionId'])?'currentDocumentSessionId:\x20string\x20expected':null!=_0x2c3a98['currentDocumentSessionVersion']&&_0x2c3a98['hasOwnProperty']('currentDocumentSessionVersion')&&!_0x44b59b['isInteger'](_0x2c3a98['currentDocumentSessionVersion'])?'currentDocumentSessionVersion:\x20integer\x20expected':null!=_0x2c3a98['currentDocumentSessionOperationId']&&_0x2c3a98['hasOwnProperty']('currentDocumentSessionOperationId')&&!_0x44b59b['isString'](_0x2c3a98['currentDocumentSessionOperationId'])?'currentDocumentSessionOperationId:\x20string\x20expected':null;},_0x538755['fromObject']=function(_0x35a73d){if(_0x35a73d instanceof _0x1429da['GetDocumentDetailsResponse'])return _0x35a73d;var _0x2ecc8a=new _0x1429da['GetDocumentDetailsResponse']();return null!=_0x35a73d['lastDocumentSessionId']&&(_0x2ecc8a['lastDocumentSessionId']=String(_0x35a73d['lastDocumentSessionId'])),null!=_0x35a73d['lastDocumentSessionOperationId']&&(_0x2ecc8a['lastDocumentSessionOperationId']=String(_0x35a73d['lastDocumentSessionOperationId'])),null!=_0x35a73d['currentDocumentSessionId']&&(_0x2ecc8a['currentDocumentSessionId']=String(_0x35a73d['currentDocumentSessionId'])),null!=_0x35a73d['currentDocumentSessionVersion']&&(_0x2ecc8a['currentDocumentSessionVersion']=_0x35a73d['currentDocumentSessionVersion']>>>0x0),null!=_0x35a73d['currentDocumentSessionOperationId']&&(_0x2ecc8a['currentDocumentSessionOperationId']=String(_0x35a73d['currentDocumentSessionOperationId'])),_0x2ecc8a;},_0x538755['toObject']=function(_0x13f192,_0x2b7e63){_0x2b7e63||(_0x2b7e63={});var _0x20fe32={};return _0x2b7e63['defaults']&&(_0x20fe32['lastDocumentSessionId']='',_0x20fe32['lastDocumentSessionOperationId']='',_0x20fe32['currentDocumentSessionId']='',_0x20fe32['currentDocumentSessionVersion']=0x0,_0x20fe32['currentDocumentSessionOperationId']=''),null!=_0x13f192['lastDocumentSessionId']&&_0x13f192['hasOwnProperty']('lastDocumentSessionId')&&(_0x20fe32['lastDocumentSessionId']=_0x13f192['lastDocumentSessionId']),null!=_0x13f192['lastDocumentSessionOperationId']&&_0x13f192['hasOwnProperty']('lastDocumentSessionOperationId')&&(_0x20fe32['lastDocumentSessionOperationId']=_0x13f192['lastDocumentSessionOperationId']),null!=_0x13f192['currentDocumentSessionId']&&_0x13f192['hasOwnProperty']('currentDocumentSessionId')&&(_0x20fe32['currentDocumentSessionId']=_0x13f192['currentDocumentSessionId']),null!=_0x13f192['currentDocumentSessionVersion']&&_0x13f192['hasOwnProperty']('currentDocumentSessionVersion')&&(_0x20fe32['currentDocumentSessionVersion']=_0x13f192['currentDocumentSessionVersion']),null!=_0x13f192['currentDocumentSessionOperationId']&&_0x13f192['hasOwnProperty']('currentDocumentSessionOperationId')&&(_0x20fe32['currentDocumentSessionOperationId']=_0x13f192['currentDocumentSessionOperationId']),_0x20fe32;},_0x538755['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x538755['getTypeUrl']=function(_0x2714d1){return void 0x0===_0x2714d1&&(_0x2714d1='type.googleapis.com'),_0x2714d1+'/GetDocumentDetailsResponse';},_0x538755;}()),_0x1429da['CollaborativeEditingResponse']=(function(){function _0x5a316e(_0x50c4c4){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x50c4c4){for(var _0x167e68=Object['keys'](_0x50c4c4),_0x2cbf38=0x0;_0x2cbf38<_0x167e68['length'];++_0x2cbf38)null!=_0x50c4c4[_0x167e68[_0x2cbf38]]&&(this[_0x167e68[_0x2cbf38]]=_0x50c4c4[_0x167e68[_0x2cbf38]]);}}return _0x5a316e['prototype']['version']=0x0,_0x5a316e['prototype']['buffers']=_0x44b59b['emptyArray'],_0x5a316e['prototype']['types']=_0x44b59b['emptyArray'],_0x5a316e['prototype']['metadata']=_0x44b59b['emptyArray'],_0x5a316e['prototype']['lastOperationId']='',_0x5a316e['prototype']['lastOperationAcceptedAt']='',_0x5a316e['create']=function(_0x39c1d8){return new _0x5a316e(_0x39c1d8);},_0x5a316e['encode']=function(_0x72cbf0,_0x469ab9){if(_0x469ab9||(_0x469ab9=_0x2e8075['create']()),null!=_0x72cbf0['version']&&Object['hasOwnProperty']['call'](_0x72cbf0,'version')&&_0x469ab9['uint32'](0x8)['uint32'](_0x72cbf0['version']),null!=_0x72cbf0['buffers']&&_0x72cbf0['buffers']['length']){for(var _0x33f8e6=0x0;_0x33f8e6<_0x72cbf0['buffers']['length'];++_0x33f8e6)_0x469ab9['uint32'](0x12)['bytes'](_0x72cbf0['buffers'][_0x33f8e6]);}if(null!=_0x72cbf0['types']&&_0x72cbf0['types']['length']){for(_0x469ab9['uint32'](0x1a)['fork'](),_0x33f8e6=0x0;_0x33f8e6<_0x72cbf0['types']['length'];++_0x33f8e6)_0x469ab9['uint32'](_0x72cbf0['types'][_0x33f8e6]);_0x469ab9['ldelim']();}if(null!=_0x72cbf0['metadata']&&_0x72cbf0['metadata']['length']){for(_0x33f8e6=0x0;_0x33f8e6<_0x72cbf0['metadata']['length'];++_0x33f8e6)_0x1429da['OperationMetadataDescriptor']['encode'](_0x72cbf0['metadata'][_0x33f8e6],_0x469ab9['uint32'](0x2a)['fork']())['ldelim']();}return null!=_0x72cbf0['lastOperationId']&&Object['hasOwnProperty']['call'](_0x72cbf0,'lastOperationId')&&_0x469ab9['uint32'](0x32)['string'](_0x72cbf0['lastOperationId']),null!=_0x72cbf0['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x72cbf0,'lastOperationAcceptedAt')&&_0x469ab9['uint32'](0x3a)['string'](_0x72cbf0['lastOperationAcceptedAt']),_0x469ab9;},_0x5a316e['encodeDelimited']=function(_0x140ea9,_0x4fcd3b){return this['encode'](_0x140ea9,_0x4fcd3b)['ldelim']();},_0x5a316e['decode']=function(_0x5b0b6b,_0x4c210a,_0x16e009){_0x5b0b6b instanceof _0x5e9c2f||(_0x5b0b6b=_0x5e9c2f['create'](_0x5b0b6b));for(var _0x2a8236=void 0x0===_0x4c210a?_0x5b0b6b['len']:_0x5b0b6b['pos']+_0x4c210a,_0x1f9852=new _0x1429da['CollaborativeEditingResponse']();_0x5b0b6b['pos']<_0x2a8236;){var _0xce1bc6=_0x5b0b6b['uint32']();if(_0xce1bc6===_0x16e009)break;switch(_0xce1bc6>>>0x3){case 0x1:_0x1f9852['version']=_0x5b0b6b['uint32']();break;case 0x2:_0x1f9852['buffers']&&_0x1f9852['buffers']['length']||(_0x1f9852['buffers']=[]),_0x1f9852['buffers']['push'](_0x5b0b6b['bytes']());break;case 0x3:if(_0x1f9852['types']&&_0x1f9852['types']['length']||(_0x1f9852['types']=[]),0x2==(0x7&_0xce1bc6)){for(var _0x285ee1=_0x5b0b6b['uint32']()+_0x5b0b6b['pos'];_0x5b0b6b['pos']<_0x285ee1;)_0x1f9852['types']['push'](_0x5b0b6b['uint32']());}else _0x1f9852['types']['push'](_0x5b0b6b['uint32']());break;case 0x5:_0x1f9852['metadata']&&_0x1f9852['metadata']['length']||(_0x1f9852['metadata']=[]),_0x1f9852['metadata']['push'](_0x1429da['OperationMetadataDescriptor']['decode'](_0x5b0b6b,_0x5b0b6b['uint32']()));break;case 0x6:_0x1f9852['lastOperationId']=_0x5b0b6b['string']();break;case 0x7:_0x1f9852['lastOperationAcceptedAt']=_0x5b0b6b['string']();break;default:_0x5b0b6b['skipType'](0x7&_0xce1bc6);}}return _0x1f9852;},_0x5a316e['decodeDelimited']=function(_0x4071dc){return _0x4071dc instanceof _0x5e9c2f||(_0x4071dc=new _0x5e9c2f(_0x4071dc)),this['decode'](_0x4071dc,_0x4071dc['uint32']());},_0x5a316e['verify']=function(_0x543913){if('object'!=typeof _0x543913||null===_0x543913)return'object\x20expected';if(null!=_0x543913['version']&&_0x543913['hasOwnProperty']('version')&&!_0x44b59b['isInteger'](_0x543913['version']))return'version:\x20integer\x20expected';if(null!=_0x543913['buffers']&&_0x543913['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x543913['buffers']))return'buffers:\x20array\x20expected';for(var _0x1759b1=0x0;_0x1759b1<_0x543913['buffers']['length'];++_0x1759b1)if(!(_0x543913['buffers'][_0x1759b1]&&'number'==typeof _0x543913['buffers'][_0x1759b1]['length']||_0x44b59b['isString'](_0x543913['buffers'][_0x1759b1])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x543913['types']&&_0x543913['hasOwnProperty']('types')){if(!Array['isArray'](_0x543913['types']))return'types:\x20array\x20expected';for(_0x1759b1=0x0;_0x1759b1<_0x543913['types']['length'];++_0x1759b1)if(!_0x44b59b['isInteger'](_0x543913['types'][_0x1759b1]))return'types:\x20integer[]\x20expected';}if(null!=_0x543913['metadata']&&_0x543913['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x543913['metadata']))return'metadata:\x20array\x20expected';for(_0x1759b1=0x0;_0x1759b1<_0x543913['metadata']['length'];++_0x1759b1){var _0x487c54=_0x1429da['OperationMetadataDescriptor']['verify'](_0x543913['metadata'][_0x1759b1]);if(_0x487c54)return'metadata.'+_0x487c54;}}return null!=_0x543913['lastOperationId']&&_0x543913['hasOwnProperty']('lastOperationId')&&!_0x44b59b['isString'](_0x543913['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x543913['lastOperationAcceptedAt']&&_0x543913['hasOwnProperty']('lastOperationAcceptedAt')&&!_0x44b59b['isString'](_0x543913['lastOperationAcceptedAt'])?'lastOperationAcceptedAt:\x20string\x20expected':null;},_0x5a316e['fromObject']=function(_0x54a471){if(_0x54a471 instanceof _0x1429da['CollaborativeEditingResponse'])return _0x54a471;var _0x27d29f=new _0x1429da['CollaborativeEditingResponse']();if(null!=_0x54a471['version']&&(_0x27d29f['version']=_0x54a471['version']>>>0x0),_0x54a471['buffers']){if(!Array['isArray'](_0x54a471['buffers']))throw TypeError('.CollaborativeEditingResponse.buffers:\x20array\x20expected');_0x27d29f['buffers']=[];for(var _0x54f027=0x0;_0x54f027<_0x54a471['buffers']['length'];++_0x54f027)'string'==typeof _0x54a471['buffers'][_0x54f027]?_0x44b59b['base64']['decode'](_0x54a471['buffers'][_0x54f027],_0x27d29f['buffers'][_0x54f027]=_0x44b59b['newBuffer'](_0x44b59b['base64']['length'](_0x54a471['buffers'][_0x54f027])),0x0):_0x54a471['buffers'][_0x54f027]['length']>=0x0&&(_0x27d29f['buffers'][_0x54f027]=_0x54a471['buffers'][_0x54f027]);}if(_0x54a471['types']){if(!Array['isArray'](_0x54a471['types']))throw TypeError('.CollaborativeEditingResponse.types:\x20array\x20expected');for(_0x27d29f['types']=[],_0x54f027=0x0;_0x54f027<_0x54a471['types']['length'];++_0x54f027)_0x27d29f['types'][_0x54f027]=_0x54a471['types'][_0x54f027]>>>0x0;}if(_0x54a471['metadata']){if(!Array['isArray'](_0x54a471['metadata']))throw TypeError('.CollaborativeEditingResponse.metadata:\x20array\x20expected');for(_0x27d29f['metadata']=[],_0x54f027=0x0;_0x54f027<_0x54a471['metadata']['length'];++_0x54f027){if('object'!=typeof _0x54a471['metadata'][_0x54f027])throw TypeError('.CollaborativeEditingResponse.metadata:\x20object\x20expected');_0x27d29f['metadata'][_0x54f027]=_0x1429da['OperationMetadataDescriptor']['fromObject'](_0x54a471['metadata'][_0x54f027]);}}return null!=_0x54a471['lastOperationId']&&(_0x27d29f['lastOperationId']=String(_0x54a471['lastOperationId'])),null!=_0x54a471['lastOperationAcceptedAt']&&(_0x27d29f['lastOperationAcceptedAt']=String(_0x54a471['lastOperationAcceptedAt'])),_0x27d29f;},_0x5a316e['toObject']=function(_0x5265dc,_0x305b9c){_0x305b9c||(_0x305b9c={});var _0x1b4fce={};if((_0x305b9c['arrays']||_0x305b9c['defaults'])&&(_0x1b4fce['buffers']=[],_0x1b4fce['types']=[],_0x1b4fce['metadata']=[]),_0x305b9c['defaults']&&(_0x1b4fce['version']=0x0,_0x1b4fce['lastOperationId']='',_0x1b4fce['lastOperationAcceptedAt']=''),null!=_0x5265dc['version']&&_0x5265dc['hasOwnProperty']('version')&&(_0x1b4fce['version']=_0x5265dc['version']),_0x5265dc['buffers']&&_0x5265dc['buffers']['length']){_0x1b4fce['buffers']=[];for(var _0x2827d8=0x0;_0x2827d8<_0x5265dc['buffers']['length'];++_0x2827d8)_0x1b4fce['buffers'][_0x2827d8]=_0x305b9c['bytes']===String?_0x44b59b['base64']['encode'](_0x5265dc['buffers'][_0x2827d8],0x0,_0x5265dc['buffers'][_0x2827d8]['length']):_0x305b9c['bytes']===Array?Array['prototype']['slice']['call'](_0x5265dc['buffers'][_0x2827d8]):_0x5265dc['buffers'][_0x2827d8];}if(_0x5265dc['types']&&_0x5265dc['types']['length']){for(_0x1b4fce['types']=[],_0x2827d8=0x0;_0x2827d8<_0x5265dc['types']['length'];++_0x2827d8)_0x1b4fce['types'][_0x2827d8]=_0x5265dc['types'][_0x2827d8];}if(_0x5265dc['metadata']&&_0x5265dc['metadata']['length']){for(_0x1b4fce['metadata']=[],_0x2827d8=0x0;_0x2827d8<_0x5265dc['metadata']['length'];++_0x2827d8)_0x1b4fce['metadata'][_0x2827d8]=_0x1429da['OperationMetadataDescriptor']['toObject'](_0x5265dc['metadata'][_0x2827d8],_0x305b9c);}return null!=_0x5265dc['lastOperationId']&&_0x5265dc['hasOwnProperty']('lastOperationId')&&(_0x1b4fce['lastOperationId']=_0x5265dc['lastOperationId']),null!=_0x5265dc['lastOperationAcceptedAt']&&_0x5265dc['hasOwnProperty']('lastOperationAcceptedAt')&&(_0x1b4fce['lastOperationAcceptedAt']=_0x5265dc['lastOperationAcceptedAt']),_0x1b4fce;},_0x5a316e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5a316e['getTypeUrl']=function(_0x47ac7d){return void 0x0===_0x47ac7d&&(_0x47ac7d='type.googleapis.com'),_0x47ac7d+'/CollaborativeEditingResponse';},_0x5a316e;}()),_0x1429da['CollaborativeEditingConnectResponse']=(function(){function _0x26138c(_0x2ab989){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x2ab989){for(var _0x2fe851=Object['keys'](_0x2ab989),_0x12df35=0x0;_0x12df35<_0x2fe851['length'];++_0x12df35)null!=_0x2ab989[_0x2fe851[_0x12df35]]&&(this[_0x2fe851[_0x12df35]]=_0x2ab989[_0x2fe851[_0x12df35]]);}}return _0x26138c['prototype']['channel']='',_0x26138c['prototype']['offset']=0x0,_0x26138c['prototype']['version']=0x0,_0x26138c['prototype']['buffers']=_0x44b59b['emptyArray'],_0x26138c['prototype']['types']=_0x44b59b['emptyArray'],_0x26138c['prototype']['metadata']=_0x44b59b['emptyArray'],_0x26138c['prototype']['initData']='',_0x26138c['prototype']['isInitialized']=!0x1,_0x26138c['prototype']['sessionId']='',_0x26138c['prototype']['lastOperationId']='',_0x26138c['prototype']['sessionCreatedAt']='',_0x26138c['create']=function(_0x19f044){return new _0x26138c(_0x19f044);},_0x26138c['encode']=function(_0x1d6add,_0x5b8a18){if(_0x5b8a18||(_0x5b8a18=_0x2e8075['create']()),null!=_0x1d6add['channel']&&Object['hasOwnProperty']['call'](_0x1d6add,'channel')&&_0x5b8a18['uint32'](0xa)['string'](_0x1d6add['channel']),null!=_0x1d6add['offset']&&Object['hasOwnProperty']['call'](_0x1d6add,'offset')&&_0x5b8a18['uint32'](0x10)['uint32'](_0x1d6add['offset']),null!=_0x1d6add['version']&&Object['hasOwnProperty']['call'](_0x1d6add,'version')&&_0x5b8a18['uint32'](0x18)['uint32'](_0x1d6add['version']),null!=_0x1d6add['buffers']&&_0x1d6add['buffers']['length']){for(var _0x4f349a=0x0;_0x4f349a<_0x1d6add['buffers']['length'];++_0x4f349a)_0x5b8a18['uint32'](0x22)['bytes'](_0x1d6add['buffers'][_0x4f349a]);}if(null!=_0x1d6add['types']&&_0x1d6add['types']['length']){for(_0x5b8a18['uint32'](0x2a)['fork'](),_0x4f349a=0x0;_0x4f349a<_0x1d6add['types']['length'];++_0x4f349a)_0x5b8a18['uint32'](_0x1d6add['types'][_0x4f349a]);_0x5b8a18['ldelim']();}if(null!=_0x1d6add['metadata']&&_0x1d6add['metadata']['length']){for(_0x4f349a=0x0;_0x4f349a<_0x1d6add['metadata']['length'];++_0x4f349a)_0x1429da['OperationMetadataDescriptor']['encode'](_0x1d6add['metadata'][_0x4f349a],_0x5b8a18['uint32'](0x3a)['fork']())['ldelim']();}return null!=_0x1d6add['initData']&&Object['hasOwnProperty']['call'](_0x1d6add,'initData')&&_0x5b8a18['uint32'](0x42)['string'](_0x1d6add['initData']),null!=_0x1d6add['isInitialized']&&Object['hasOwnProperty']['call'](_0x1d6add,'isInitialized')&&_0x5b8a18['uint32'](0x48)['bool'](_0x1d6add['isInitialized']),null!=_0x1d6add['sessionId']&&Object['hasOwnProperty']['call'](_0x1d6add,'sessionId')&&_0x5b8a18['uint32'](0x52)['string'](_0x1d6add['sessionId']),null!=_0x1d6add['lastOperationId']&&Object['hasOwnProperty']['call'](_0x1d6add,'lastOperationId')&&_0x5b8a18['uint32'](0x5a)['string'](_0x1d6add['lastOperationId']),null!=_0x1d6add['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x1d6add,'sessionCreatedAt')&&_0x5b8a18['uint32'](0x62)['string'](_0x1d6add['sessionCreatedAt']),_0x5b8a18;},_0x26138c['encodeDelimited']=function(_0x3a5399,_0x499384){return this['encode'](_0x3a5399,_0x499384)['ldelim']();},_0x26138c['decode']=function(_0x2d4a44,_0xcb3abd,_0xe9e2c6){_0x2d4a44 instanceof _0x5e9c2f||(_0x2d4a44=_0x5e9c2f['create'](_0x2d4a44));for(var _0xb5bf48=void 0x0===_0xcb3abd?_0x2d4a44['len']:_0x2d4a44['pos']+_0xcb3abd,_0x402529=new _0x1429da['CollaborativeEditingConnectResponse']();_0x2d4a44['pos']<_0xb5bf48;){var _0x1e2ac2=_0x2d4a44['uint32']();if(_0x1e2ac2===_0xe9e2c6)break;switch(_0x1e2ac2>>>0x3){case 0x1:_0x402529['channel']=_0x2d4a44['string']();break;case 0x2:_0x402529['offset']=_0x2d4a44['uint32']();break;case 0x3:_0x402529['version']=_0x2d4a44['uint32']();break;case 0x4:_0x402529['buffers']&&_0x402529['buffers']['length']||(_0x402529['buffers']=[]),_0x402529['buffers']['push'](_0x2d4a44['bytes']());break;case 0x5:if(_0x402529['types']&&_0x402529['types']['length']||(_0x402529['types']=[]),0x2==(0x7&_0x1e2ac2)){for(var _0x295f58=_0x2d4a44['uint32']()+_0x2d4a44['pos'];_0x2d4a44['pos']<_0x295f58;)_0x402529['types']['push'](_0x2d4a44['uint32']());}else _0x402529['types']['push'](_0x2d4a44['uint32']());break;case 0x7:_0x402529['metadata']&&_0x402529['metadata']['length']||(_0x402529['metadata']=[]),_0x402529['metadata']['push'](_0x1429da['OperationMetadataDescriptor']['decode'](_0x2d4a44,_0x2d4a44['uint32']()));break;case 0x8:_0x402529['initData']=_0x2d4a44['string']();break;case 0x9:_0x402529['isInitialized']=_0x2d4a44['bool']();break;case 0xa:_0x402529['sessionId']=_0x2d4a44['string']();break;case 0xb:_0x402529['lastOperationId']=_0x2d4a44['string']();break;case 0xc:_0x402529['sessionCreatedAt']=_0x2d4a44['string']();break;default:_0x2d4a44['skipType'](0x7&_0x1e2ac2);}}return _0x402529;},_0x26138c['decodeDelimited']=function(_0x464b6f){return _0x464b6f instanceof _0x5e9c2f||(_0x464b6f=new _0x5e9c2f(_0x464b6f)),this['decode'](_0x464b6f,_0x464b6f['uint32']());},_0x26138c['verify']=function(_0x357bc8){if('object'!=typeof _0x357bc8||null===_0x357bc8)return'object\x20expected';if(null!=_0x357bc8['channel']&&_0x357bc8['hasOwnProperty']('channel')&&!_0x44b59b['isString'](_0x357bc8['channel']))return'channel:\x20string\x20expected';if(null!=_0x357bc8['offset']&&_0x357bc8['hasOwnProperty']('offset')&&!_0x44b59b['isInteger'](_0x357bc8['offset']))return'offset:\x20integer\x20expected';if(null!=_0x357bc8['version']&&_0x357bc8['hasOwnProperty']('version')&&!_0x44b59b['isInteger'](_0x357bc8['version']))return'version:\x20integer\x20expected';if(null!=_0x357bc8['buffers']&&_0x357bc8['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x357bc8['buffers']))return'buffers:\x20array\x20expected';for(var _0x265349=0x0;_0x265349<_0x357bc8['buffers']['length'];++_0x265349)if(!(_0x357bc8['buffers'][_0x265349]&&'number'==typeof _0x357bc8['buffers'][_0x265349]['length']||_0x44b59b['isString'](_0x357bc8['buffers'][_0x265349])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x357bc8['types']&&_0x357bc8['hasOwnProperty']('types')){if(!Array['isArray'](_0x357bc8['types']))return'types:\x20array\x20expected';for(_0x265349=0x0;_0x265349<_0x357bc8['types']['length'];++_0x265349)if(!_0x44b59b['isInteger'](_0x357bc8['types'][_0x265349]))return'types:\x20integer[]\x20expected';}if(null!=_0x357bc8['metadata']&&_0x357bc8['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x357bc8['metadata']))return'metadata:\x20array\x20expected';for(_0x265349=0x0;_0x265349<_0x357bc8['metadata']['length'];++_0x265349){var _0x49e7ce=_0x1429da['OperationMetadataDescriptor']['verify'](_0x357bc8['metadata'][_0x265349]);if(_0x49e7ce)return'metadata.'+_0x49e7ce;}}return null!=_0x357bc8['initData']&&_0x357bc8['hasOwnProperty']('initData')&&!_0x44b59b['isString'](_0x357bc8['initData'])?'initData:\x20string\x20expected':null!=_0x357bc8['isInitialized']&&_0x357bc8['hasOwnProperty']('isInitialized')&&'boolean'!=typeof _0x357bc8['isInitialized']?'isInitialized:\x20boolean\x20expected':null!=_0x357bc8['sessionId']&&_0x357bc8['hasOwnProperty']('sessionId')&&!_0x44b59b['isString'](_0x357bc8['sessionId'])?'sessionId:\x20string\x20expected':null!=_0x357bc8['lastOperationId']&&_0x357bc8['hasOwnProperty']('lastOperationId')&&!_0x44b59b['isString'](_0x357bc8['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x357bc8['sessionCreatedAt']&&_0x357bc8['hasOwnProperty']('sessionCreatedAt')&&!_0x44b59b['isString'](_0x357bc8['sessionCreatedAt'])?'sessionCreatedAt:\x20string\x20expected':null;},_0x26138c['fromObject']=function(_0x34a03e){if(_0x34a03e instanceof _0x1429da['CollaborativeEditingConnectResponse'])return _0x34a03e;var _0x5415c2=new _0x1429da['CollaborativeEditingConnectResponse']();if(null!=_0x34a03e['channel']&&(_0x5415c2['channel']=String(_0x34a03e['channel'])),null!=_0x34a03e['offset']&&(_0x5415c2['offset']=_0x34a03e['offset']>>>0x0),null!=_0x34a03e['version']&&(_0x5415c2['version']=_0x34a03e['version']>>>0x0),_0x34a03e['buffers']){if(!Array['isArray'](_0x34a03e['buffers']))throw TypeError('.CollaborativeEditingConnectResponse.buffers:\x20array\x20expected');_0x5415c2['buffers']=[];for(var _0x177b71=0x0;_0x177b71<_0x34a03e['buffers']['length'];++_0x177b71)'string'==typeof _0x34a03e['buffers'][_0x177b71]?_0x44b59b['base64']['decode'](_0x34a03e['buffers'][_0x177b71],_0x5415c2['buffers'][_0x177b71]=_0x44b59b['newBuffer'](_0x44b59b['base64']['length'](_0x34a03e['buffers'][_0x177b71])),0x0):_0x34a03e['buffers'][_0x177b71]['length']>=0x0&&(_0x5415c2['buffers'][_0x177b71]=_0x34a03e['buffers'][_0x177b71]);}if(_0x34a03e['types']){if(!Array['isArray'](_0x34a03e['types']))throw TypeError('.CollaborativeEditingConnectResponse.types:\x20array\x20expected');for(_0x5415c2['types']=[],_0x177b71=0x0;_0x177b71<_0x34a03e['types']['length'];++_0x177b71)_0x5415c2['types'][_0x177b71]=_0x34a03e['types'][_0x177b71]>>>0x0;}if(_0x34a03e['metadata']){if(!Array['isArray'](_0x34a03e['metadata']))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20array\x20expected');for(_0x5415c2['metadata']=[],_0x177b71=0x0;_0x177b71<_0x34a03e['metadata']['length'];++_0x177b71){if('object'!=typeof _0x34a03e['metadata'][_0x177b71])throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20object\x20expected');_0x5415c2['metadata'][_0x177b71]=_0x1429da['OperationMetadataDescriptor']['fromObject'](_0x34a03e['metadata'][_0x177b71]);}}return null!=_0x34a03e['initData']&&(_0x5415c2['initData']=String(_0x34a03e['initData'])),null!=_0x34a03e['isInitialized']&&(_0x5415c2['isInitialized']=Boolean(_0x34a03e['isInitialized'])),null!=_0x34a03e['sessionId']&&(_0x5415c2['sessionId']=String(_0x34a03e['sessionId'])),null!=_0x34a03e['lastOperationId']&&(_0x5415c2['lastOperationId']=String(_0x34a03e['lastOperationId'])),null!=_0x34a03e['sessionCreatedAt']&&(_0x5415c2['sessionCreatedAt']=String(_0x34a03e['sessionCreatedAt'])),_0x5415c2;},_0x26138c['toObject']=function(_0x1c3473,_0x22846a){_0x22846a||(_0x22846a={});var _0x2005e1={};if((_0x22846a['arrays']||_0x22846a['defaults'])&&(_0x2005e1['buffers']=[],_0x2005e1['types']=[],_0x2005e1['metadata']=[]),_0x22846a['defaults']&&(_0x2005e1['channel']='',_0x2005e1['offset']=0x0,_0x2005e1['version']=0x0,_0x2005e1['initData']='',_0x2005e1['isInitialized']=!0x1,_0x2005e1['sessionId']='',_0x2005e1['lastOperationId']='',_0x2005e1['sessionCreatedAt']=''),null!=_0x1c3473['channel']&&_0x1c3473['hasOwnProperty']('channel')&&(_0x2005e1['channel']=_0x1c3473['channel']),null!=_0x1c3473['offset']&&_0x1c3473['hasOwnProperty']('offset')&&(_0x2005e1['offset']=_0x1c3473['offset']),null!=_0x1c3473['version']&&_0x1c3473['hasOwnProperty']('version')&&(_0x2005e1['version']=_0x1c3473['version']),_0x1c3473['buffers']&&_0x1c3473['buffers']['length']){_0x2005e1['buffers']=[];for(var _0x2d6acf=0x0;_0x2d6acf<_0x1c3473['buffers']['length'];++_0x2d6acf)_0x2005e1['buffers'][_0x2d6acf]=_0x22846a['bytes']===String?_0x44b59b['base64']['encode'](_0x1c3473['buffers'][_0x2d6acf],0x0,_0x1c3473['buffers'][_0x2d6acf]['length']):_0x22846a['bytes']===Array?Array['prototype']['slice']['call'](_0x1c3473['buffers'][_0x2d6acf]):_0x1c3473['buffers'][_0x2d6acf];}if(_0x1c3473['types']&&_0x1c3473['types']['length']){for(_0x2005e1['types']=[],_0x2d6acf=0x0;_0x2d6acf<_0x1c3473['types']['length'];++_0x2d6acf)_0x2005e1['types'][_0x2d6acf]=_0x1c3473['types'][_0x2d6acf];}if(_0x1c3473['metadata']&&_0x1c3473['metadata']['length']){for(_0x2005e1['metadata']=[],_0x2d6acf=0x0;_0x2d6acf<_0x1c3473['metadata']['length'];++_0x2d6acf)_0x2005e1['metadata'][_0x2d6acf]=_0x1429da['OperationMetadataDescriptor']['toObject'](_0x1c3473['metadata'][_0x2d6acf],_0x22846a);}return null!=_0x1c3473['initData']&&_0x1c3473['hasOwnProperty']('initData')&&(_0x2005e1['initData']=_0x1c3473['initData']),null!=_0x1c3473['isInitialized']&&_0x1c3473['hasOwnProperty']('isInitialized')&&(_0x2005e1['isInitialized']=_0x1c3473['isInitialized']),null!=_0x1c3473['sessionId']&&_0x1c3473['hasOwnProperty']('sessionId')&&(_0x2005e1['sessionId']=_0x1c3473['sessionId']),null!=_0x1c3473['lastOperationId']&&_0x1c3473['hasOwnProperty']('lastOperationId')&&(_0x2005e1['lastOperationId']=_0x1c3473['lastOperationId']),null!=_0x1c3473['sessionCreatedAt']&&_0x1c3473['hasOwnProperty']('sessionCreatedAt')&&(_0x2005e1['sessionCreatedAt']=_0x1c3473['sessionCreatedAt']),_0x2005e1;},_0x26138c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x26138c['getTypeUrl']=function(_0x3dd42d){return void 0x0===_0x3dd42d&&(_0x3dd42d='type.googleapis.com'),_0x3dd42d+'/CollaborativeEditingConnectResponse';},_0x26138c;}()),_0x1429da['GetDocumentDetailsMessage']=(function(){function _0x9788eb(_0x3d43a6){if(_0x3d43a6){for(var _0x4b25bf=Object['keys'](_0x3d43a6),_0x111fcb=0x0;_0x111fcb<_0x4b25bf['length'];++_0x111fcb)null!=_0x3d43a6[_0x4b25bf[_0x111fcb]]&&(this[_0x4b25bf[_0x111fcb]]=_0x3d43a6[_0x4b25bf[_0x111fcb]]);}}return _0x9788eb['prototype']['documentId']='',_0x9788eb['prototype']['environmentId']='',_0x9788eb['create']=function(_0x1622e8){return new _0x9788eb(_0x1622e8);},_0x9788eb['encode']=function(_0x33c997,_0x4321d0){return _0x4321d0||(_0x4321d0=_0x2e8075['create']()),null!=_0x33c997['documentId']&&Object['hasOwnProperty']['call'](_0x33c997,'documentId')&&_0x4321d0['uint32'](0xa)['string'](_0x33c997['documentId']),null!=_0x33c997['environmentId']&&Object['hasOwnProperty']['call'](_0x33c997,'environmentId')&&_0x4321d0['uint32'](0x12)['string'](_0x33c997['environmentId']),_0x4321d0;},_0x9788eb['encodeDelimited']=function(_0x108534,_0x2cbdb){return this['encode'](_0x108534,_0x2cbdb)['ldelim']();},_0x9788eb['decode']=function(_0x9bff0,_0x46b1d5,_0x2fede2){_0x9bff0 instanceof _0x5e9c2f||(_0x9bff0=_0x5e9c2f['create'](_0x9bff0));for(var _0x2bd4d0=void 0x0===_0x46b1d5?_0x9bff0['len']:_0x9bff0['pos']+_0x46b1d5,_0x17fd82=new _0x1429da['GetDocumentDetailsMessage']();_0x9bff0['pos']<_0x2bd4d0;){var _0x1ffff4=_0x9bff0['uint32']();if(_0x1ffff4===_0x2fede2)break;switch(_0x1ffff4>>>0x3){case 0x1:_0x17fd82['documentId']=_0x9bff0['string']();break;case 0x2:_0x17fd82['environmentId']=_0x9bff0['string']();break;default:_0x9bff0['skipType'](0x7&_0x1ffff4);}}return _0x17fd82;},_0x9788eb['decodeDelimited']=function(_0x3e0ebb){return _0x3e0ebb instanceof _0x5e9c2f||(_0x3e0ebb=new _0x5e9c2f(_0x3e0ebb)),this['decode'](_0x3e0ebb,_0x3e0ebb['uint32']());},_0x9788eb['verify']=function(_0x5460c7){return'object'!=typeof _0x5460c7||null===_0x5460c7?'object\x20expected':null!=_0x5460c7['documentId']&&_0x5460c7['hasOwnProperty']('documentId')&&!_0x44b59b['isString'](_0x5460c7['documentId'])?'documentId:\x20string\x20expected':null!=_0x5460c7['environmentId']&&_0x5460c7['hasOwnProperty']('environmentId')&&!_0x44b59b['isString'](_0x5460c7['environmentId'])?'environmentId:\x20string\x20expected':null;},_0x9788eb['fromObject']=function(_0x10f43c){if(_0x10f43c instanceof _0x1429da['GetDocumentDetailsMessage'])return _0x10f43c;var _0x5075ef=new _0x1429da['GetDocumentDetailsMessage']();return null!=_0x10f43c['documentId']&&(_0x5075ef['documentId']=String(_0x10f43c['documentId'])),null!=_0x10f43c['environmentId']&&(_0x5075ef['environmentId']=String(_0x10f43c['environmentId'])),_0x5075ef;},_0x9788eb['toObject']=function(_0x31ec4a,_0x2fcc65){_0x2fcc65||(_0x2fcc65={});var _0x4d7a34={};return _0x2fcc65['defaults']&&(_0x4d7a34['documentId']='',_0x4d7a34['environmentId']=''),null!=_0x31ec4a['documentId']&&_0x31ec4a['hasOwnProperty']('documentId')&&(_0x4d7a34['documentId']=_0x31ec4a['documentId']),null!=_0x31ec4a['environmentId']&&_0x31ec4a['hasOwnProperty']('environmentId')&&(_0x4d7a34['environmentId']=_0x31ec4a['environmentId']),_0x4d7a34;},_0x9788eb['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x9788eb['getTypeUrl']=function(_0x4de319){return void 0x0===_0x4de319&&(_0x4de319='type.googleapis.com'),_0x4de319+'/GetDocumentDetailsMessage';},_0x9788eb;}()),_0x1429da['CollaborativeEditingUpdateMessage']=(function(){function _0x4eeb05(_0x2c9cb7){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x2c9cb7){for(var _0x520163=Object['keys'](_0x2c9cb7),_0x4a31b2=0x0;_0x4a31b2<_0x520163['length'];++_0x4a31b2)null!=_0x2c9cb7[_0x520163[_0x4a31b2]]&&(this[_0x520163[_0x4a31b2]]=_0x2c9cb7[_0x520163[_0x4a31b2]]);}}return _0x4eeb05['prototype']['id']='',_0x4eeb05['prototype']['baseVersion']=0x0,_0x4eeb05['prototype']['buffers']=_0x44b59b['emptyArray'],_0x4eeb05['prototype']['types']=_0x44b59b['emptyArray'],_0x4eeb05['prototype']['metadata']=_0x44b59b['emptyArray'],_0x4eeb05['prototype']['lastOperationId']='',_0x4eeb05['create']=function(_0x3747d3){return new _0x4eeb05(_0x3747d3);},_0x4eeb05['encode']=function(_0x185127,_0x5ea65b){if(_0x5ea65b||(_0x5ea65b=_0x2e8075['create']()),null!=_0x185127['id']&&Object['hasOwnProperty']['call'](_0x185127,'id')&&_0x5ea65b['uint32'](0xa)['string'](_0x185127['id']),null!=_0x185127['baseVersion']&&Object['hasOwnProperty']['call'](_0x185127,'baseVersion')&&_0x5ea65b['uint32'](0x10)['uint32'](_0x185127['baseVersion']),null!=_0x185127['buffers']&&_0x185127['buffers']['length']){for(var _0x2f78c9=0x0;_0x2f78c9<_0x185127['buffers']['length'];++_0x2f78c9)_0x5ea65b['uint32'](0x1a)['bytes'](_0x185127['buffers'][_0x2f78c9]);}if(null!=_0x185127['types']&&_0x185127['types']['length']){for(_0x5ea65b['uint32'](0x22)['fork'](),_0x2f78c9=0x0;_0x2f78c9<_0x185127['types']['length'];++_0x2f78c9)_0x5ea65b['uint32'](_0x185127['types'][_0x2f78c9]);_0x5ea65b['ldelim']();}if(null!=_0x185127['metadata']&&_0x185127['metadata']['length']){for(_0x2f78c9=0x0;_0x2f78c9<_0x185127['metadata']['length'];++_0x2f78c9)_0x1429da['OperationMetadataDescriptor']['encode'](_0x185127['metadata'][_0x2f78c9],_0x5ea65b['uint32'](0x32)['fork']())['ldelim']();}return null!=_0x185127['lastOperationId']&&Object['hasOwnProperty']['call'](_0x185127,'lastOperationId')&&_0x5ea65b['uint32'](0x3a)['string'](_0x185127['lastOperationId']),_0x5ea65b;},_0x4eeb05['encodeDelimited']=function(_0x414e18,_0x5713d4){return this['encode'](_0x414e18,_0x5713d4)['ldelim']();},_0x4eeb05['decode']=function(_0x39e900,_0x45efe5,_0x28e5bf){_0x39e900 instanceof _0x5e9c2f||(_0x39e900=_0x5e9c2f['create'](_0x39e900));for(var _0x13fa8f=void 0x0===_0x45efe5?_0x39e900['len']:_0x39e900['pos']+_0x45efe5,_0x4af88c=new _0x1429da['CollaborativeEditingUpdateMessage']();_0x39e900['pos']<_0x13fa8f;){var _0x4c7315=_0x39e900['uint32']();if(_0x4c7315===_0x28e5bf)break;switch(_0x4c7315>>>0x3){case 0x1:_0x4af88c['id']=_0x39e900['string']();break;case 0x2:_0x4af88c['baseVersion']=_0x39e900['uint32']();break;case 0x3:_0x4af88c['buffers']&&_0x4af88c['buffers']['length']||(_0x4af88c['buffers']=[]),_0x4af88c['buffers']['push'](_0x39e900['bytes']());break;case 0x4:if(_0x4af88c['types']&&_0x4af88c['types']['length']||(_0x4af88c['types']=[]),0x2==(0x7&_0x4c7315)){for(var _0x5b88b6=_0x39e900['uint32']()+_0x39e900['pos'];_0x39e900['pos']<_0x5b88b6;)_0x4af88c['types']['push'](_0x39e900['uint32']());}else _0x4af88c['types']['push'](_0x39e900['uint32']());break;case 0x6:_0x4af88c['metadata']&&_0x4af88c['metadata']['length']||(_0x4af88c['metadata']=[]),_0x4af88c['metadata']['push'](_0x1429da['OperationMetadataDescriptor']['decode'](_0x39e900,_0x39e900['uint32']()));break;case 0x7:_0x4af88c['lastOperationId']=_0x39e900['string']();break;default:_0x39e900['skipType'](0x7&_0x4c7315);}}return _0x4af88c;},_0x4eeb05['decodeDelimited']=function(_0x3725b1){return _0x3725b1 instanceof _0x5e9c2f||(_0x3725b1=new _0x5e9c2f(_0x3725b1)),this['decode'](_0x3725b1,_0x3725b1['uint32']());},_0x4eeb05['verify']=function(_0x1e17bc){if('object'!=typeof _0x1e17bc||null===_0x1e17bc)return'object\x20expected';if(null!=_0x1e17bc['id']&&_0x1e17bc['hasOwnProperty']('id')&&!_0x44b59b['isString'](_0x1e17bc['id']))return'id:\x20string\x20expected';if(null!=_0x1e17bc['baseVersion']&&_0x1e17bc['hasOwnProperty']('baseVersion')&&!_0x44b59b['isInteger'](_0x1e17bc['baseVersion']))return'baseVersion:\x20integer\x20expected';if(null!=_0x1e17bc['buffers']&&_0x1e17bc['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x1e17bc['buffers']))return'buffers:\x20array\x20expected';for(var _0x53fa31=0x0;_0x53fa31<_0x1e17bc['buffers']['length'];++_0x53fa31)if(!(_0x1e17bc['buffers'][_0x53fa31]&&'number'==typeof _0x1e17bc['buffers'][_0x53fa31]['length']||_0x44b59b['isString'](_0x1e17bc['buffers'][_0x53fa31])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x1e17bc['types']&&_0x1e17bc['hasOwnProperty']('types')){if(!Array['isArray'](_0x1e17bc['types']))return'types:\x20array\x20expected';for(_0x53fa31=0x0;_0x53fa31<_0x1e17bc['types']['length'];++_0x53fa31)if(!_0x44b59b['isInteger'](_0x1e17bc['types'][_0x53fa31]))return'types:\x20integer[]\x20expected';}if(null!=_0x1e17bc['metadata']&&_0x1e17bc['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x1e17bc['metadata']))return'metadata:\x20array\x20expected';for(_0x53fa31=0x0;_0x53fa31<_0x1e17bc['metadata']['length'];++_0x53fa31){var _0x2926b9=_0x1429da['OperationMetadataDescriptor']['verify'](_0x1e17bc['metadata'][_0x53fa31]);if(_0x2926b9)return'metadata.'+_0x2926b9;}}return null!=_0x1e17bc['lastOperationId']&&_0x1e17bc['hasOwnProperty']('lastOperationId')&&!_0x44b59b['isString'](_0x1e17bc['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x4eeb05['fromObject']=function(_0x39aab3){if(_0x39aab3 instanceof _0x1429da['CollaborativeEditingUpdateMessage'])return _0x39aab3;var _0x3d9f22=new _0x1429da['CollaborativeEditingUpdateMessage']();if(null!=_0x39aab3['id']&&(_0x3d9f22['id']=String(_0x39aab3['id'])),null!=_0x39aab3['baseVersion']&&(_0x3d9f22['baseVersion']=_0x39aab3['baseVersion']>>>0x0),_0x39aab3['buffers']){if(!Array['isArray'](_0x39aab3['buffers']))throw TypeError('.CollaborativeEditingUpdateMessage.buffers:\x20array\x20expected');_0x3d9f22['buffers']=[];for(var _0x1c0351=0x0;_0x1c0351<_0x39aab3['buffers']['length'];++_0x1c0351)'string'==typeof _0x39aab3['buffers'][_0x1c0351]?_0x44b59b['base64']['decode'](_0x39aab3['buffers'][_0x1c0351],_0x3d9f22['buffers'][_0x1c0351]=_0x44b59b['newBuffer'](_0x44b59b['base64']['length'](_0x39aab3['buffers'][_0x1c0351])),0x0):_0x39aab3['buffers'][_0x1c0351]['length']>=0x0&&(_0x3d9f22['buffers'][_0x1c0351]=_0x39aab3['buffers'][_0x1c0351]);}if(_0x39aab3['types']){if(!Array['isArray'](_0x39aab3['types']))throw TypeError('.CollaborativeEditingUpdateMessage.types:\x20array\x20expected');for(_0x3d9f22['types']=[],_0x1c0351=0x0;_0x1c0351<_0x39aab3['types']['length'];++_0x1c0351)_0x3d9f22['types'][_0x1c0351]=_0x39aab3['types'][_0x1c0351]>>>0x0;}if(_0x39aab3['metadata']){if(!Array['isArray'](_0x39aab3['metadata']))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20array\x20expected');for(_0x3d9f22['metadata']=[],_0x1c0351=0x0;_0x1c0351<_0x39aab3['metadata']['length'];++_0x1c0351){if('object'!=typeof _0x39aab3['metadata'][_0x1c0351])throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20object\x20expected');_0x3d9f22['metadata'][_0x1c0351]=_0x1429da['OperationMetadataDescriptor']['fromObject'](_0x39aab3['metadata'][_0x1c0351]);}}return null!=_0x39aab3['lastOperationId']&&(_0x3d9f22['lastOperationId']=String(_0x39aab3['lastOperationId'])),_0x3d9f22;},_0x4eeb05['toObject']=function(_0x47d408,_0x124051){_0x124051||(_0x124051={});var _0x255bf1={};if((_0x124051['arrays']||_0x124051['defaults'])&&(_0x255bf1['buffers']=[],_0x255bf1['types']=[],_0x255bf1['metadata']=[]),_0x124051['defaults']&&(_0x255bf1['id']='',_0x255bf1['baseVersion']=0x0,_0x255bf1['lastOperationId']=''),null!=_0x47d408['id']&&_0x47d408['hasOwnProperty']('id')&&(_0x255bf1['id']=_0x47d408['id']),null!=_0x47d408['baseVersion']&&_0x47d408['hasOwnProperty']('baseVersion')&&(_0x255bf1['baseVersion']=_0x47d408['baseVersion']),_0x47d408['buffers']&&_0x47d408['buffers']['length']){_0x255bf1['buffers']=[];for(var _0x2ccdad=0x0;_0x2ccdad<_0x47d408['buffers']['length'];++_0x2ccdad)_0x255bf1['buffers'][_0x2ccdad]=_0x124051['bytes']===String?_0x44b59b['base64']['encode'](_0x47d408['buffers'][_0x2ccdad],0x0,_0x47d408['buffers'][_0x2ccdad]['length']):_0x124051['bytes']===Array?Array['prototype']['slice']['call'](_0x47d408['buffers'][_0x2ccdad]):_0x47d408['buffers'][_0x2ccdad];}if(_0x47d408['types']&&_0x47d408['types']['length']){for(_0x255bf1['types']=[],_0x2ccdad=0x0;_0x2ccdad<_0x47d408['types']['length'];++_0x2ccdad)_0x255bf1['types'][_0x2ccdad]=_0x47d408['types'][_0x2ccdad];}if(_0x47d408['metadata']&&_0x47d408['metadata']['length']){for(_0x255bf1['metadata']=[],_0x2ccdad=0x0;_0x2ccdad<_0x47d408['metadata']['length'];++_0x2ccdad)_0x255bf1['metadata'][_0x2ccdad]=_0x1429da['OperationMetadataDescriptor']['toObject'](_0x47d408['metadata'][_0x2ccdad],_0x124051);}return null!=_0x47d408['lastOperationId']&&_0x47d408['hasOwnProperty']('lastOperationId')&&(_0x255bf1['lastOperationId']=_0x47d408['lastOperationId']),_0x255bf1;},_0x4eeb05['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4eeb05['getTypeUrl']=function(_0x3f0a27){return void 0x0===_0x3f0a27&&(_0x3f0a27='type.googleapis.com'),_0x3f0a27+'/CollaborativeEditingUpdateMessage';},_0x4eeb05;}()),_0x1429da['CollaborativeEditingReconnectMessage']=(function(){function _0x57dfac(_0x4093a0){if(_0x4093a0){for(var _0x3161e2=Object['keys'](_0x4093a0),_0x2ef82e=0x0;_0x2ef82e<_0x3161e2['length'];++_0x2ef82e)null!=_0x4093a0[_0x3161e2[_0x2ef82e]]&&(this[_0x3161e2[_0x2ef82e]]=_0x4093a0[_0x3161e2[_0x2ef82e]]);}}return _0x57dfac['prototype']['id']='',_0x57dfac['prototype']['bundleVersion']='',_0x57dfac['prototype']['lastKnowVersion']=0x0,_0x57dfac['create']=function(_0x2c54c6){return new _0x57dfac(_0x2c54c6);},_0x57dfac['encode']=function(_0x55a547,_0x5848fe){return _0x5848fe||(_0x5848fe=_0x2e8075['create']()),null!=_0x55a547['id']&&Object['hasOwnProperty']['call'](_0x55a547,'id')&&_0x5848fe['uint32'](0xa)['string'](_0x55a547['id']),null!=_0x55a547['bundleVersion']&&Object['hasOwnProperty']['call'](_0x55a547,'bundleVersion')&&_0x5848fe['uint32'](0x12)['string'](_0x55a547['bundleVersion']),null!=_0x55a547['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x55a547,'lastKnowVersion')&&_0x5848fe['uint32'](0x18)['uint32'](_0x55a547['lastKnowVersion']),_0x5848fe;},_0x57dfac['encodeDelimited']=function(_0x12049b,_0xd1d0e2){return this['encode'](_0x12049b,_0xd1d0e2)['ldelim']();},_0x57dfac['decode']=function(_0x517bcd,_0x42e99d,_0x1353d6){_0x517bcd instanceof _0x5e9c2f||(_0x517bcd=_0x5e9c2f['create'](_0x517bcd));for(var _0x2daa5d=void 0x0===_0x42e99d?_0x517bcd['len']:_0x517bcd['pos']+_0x42e99d,_0x795ee=new _0x1429da['CollaborativeEditingReconnectMessage']();_0x517bcd['pos']<_0x2daa5d;){var _0x13e3ba=_0x517bcd['uint32']();if(_0x13e3ba===_0x1353d6)break;switch(_0x13e3ba>>>0x3){case 0x1:_0x795ee['id']=_0x517bcd['string']();break;case 0x2:_0x795ee['bundleVersion']=_0x517bcd['string']();break;case 0x3:_0x795ee['lastKnowVersion']=_0x517bcd['uint32']();break;default:_0x517bcd['skipType'](0x7&_0x13e3ba);}}return _0x795ee;},_0x57dfac['decodeDelimited']=function(_0x44e9a4){return _0x44e9a4 instanceof _0x5e9c2f||(_0x44e9a4=new _0x5e9c2f(_0x44e9a4)),this['decode'](_0x44e9a4,_0x44e9a4['uint32']());},_0x57dfac['verify']=function(_0xff934){return'object'!=typeof _0xff934||null===_0xff934?'object\x20expected':null!=_0xff934['id']&&_0xff934['hasOwnProperty']('id')&&!_0x44b59b['isString'](_0xff934['id'])?'id:\x20string\x20expected':null!=_0xff934['bundleVersion']&&_0xff934['hasOwnProperty']('bundleVersion')&&!_0x44b59b['isString'](_0xff934['bundleVersion'])?'bundleVersion:\x20string\x20expected':null!=_0xff934['lastKnowVersion']&&_0xff934['hasOwnProperty']('lastKnowVersion')&&!_0x44b59b['isInteger'](_0xff934['lastKnowVersion'])?'lastKnowVersion:\x20integer\x20expected':null;},_0x57dfac['fromObject']=function(_0x36e3c3){if(_0x36e3c3 instanceof _0x1429da['CollaborativeEditingReconnectMessage'])return _0x36e3c3;var _0x29b943=new _0x1429da['CollaborativeEditingReconnectMessage']();return null!=_0x36e3c3['id']&&(_0x29b943['id']=String(_0x36e3c3['id'])),null!=_0x36e3c3['bundleVersion']&&(_0x29b943['bundleVersion']=String(_0x36e3c3['bundleVersion'])),null!=_0x36e3c3['lastKnowVersion']&&(_0x29b943['lastKnowVersion']=_0x36e3c3['lastKnowVersion']>>>0x0),_0x29b943;},_0x57dfac['toObject']=function(_0x69c0a4,_0x3110d5){_0x3110d5||(_0x3110d5={});var _0x16b024={};return _0x3110d5['defaults']&&(_0x16b024['id']='',_0x16b024['bundleVersion']='',_0x16b024['lastKnowVersion']=0x0),null!=_0x69c0a4['id']&&_0x69c0a4['hasOwnProperty']('id')&&(_0x16b024['id']=_0x69c0a4['id']),null!=_0x69c0a4['bundleVersion']&&_0x69c0a4['hasOwnProperty']('bundleVersion')&&(_0x16b024['bundleVersion']=_0x69c0a4['bundleVersion']),null!=_0x69c0a4['lastKnowVersion']&&_0x69c0a4['hasOwnProperty']('lastKnowVersion')&&(_0x16b024['lastKnowVersion']=_0x69c0a4['lastKnowVersion']),_0x16b024;},_0x57dfac['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x57dfac['getTypeUrl']=function(_0x55a8dc){return void 0x0===_0x55a8dc&&(_0x55a8dc='type.googleapis.com'),_0x55a8dc+'/CollaborativeEditingReconnectMessage';},_0x57dfac;}()),_0x1429da['CollaborativeEditingConnectMessage']=(function(){function _0x5964b4(_0x7bac3e){if(this['buffers']=[],this['types']=[],_0x7bac3e){for(var _0x339d86=Object['keys'](_0x7bac3e),_0x38861f=0x0;_0x38861f<_0x339d86['length'];++_0x38861f)null!=_0x7bac3e[_0x339d86[_0x38861f]]&&(this[_0x339d86[_0x38861f]]=_0x7bac3e[_0x339d86[_0x38861f]]);}}return _0x5964b4['prototype']['id']='',_0x5964b4['prototype']['bundleVersion']='',_0x5964b4['prototype']['buffers']=_0x44b59b['emptyArray'],_0x5964b4['prototype']['types']=_0x44b59b['emptyArray'],_0x5964b4['prototype']['lastOperationId']='',_0x5964b4['create']=function(_0x6e0c1){return new _0x5964b4(_0x6e0c1);},_0x5964b4['encode']=function(_0x168c8a,_0x17e104){if(_0x17e104||(_0x17e104=_0x2e8075['create']()),null!=_0x168c8a['id']&&Object['hasOwnProperty']['call'](_0x168c8a,'id')&&_0x17e104['uint32'](0xa)['string'](_0x168c8a['id']),null!=_0x168c8a['bundleVersion']&&Object['hasOwnProperty']['call'](_0x168c8a,'bundleVersion')&&_0x17e104['uint32'](0x12)['string'](_0x168c8a['bundleVersion']),null!=_0x168c8a['buffers']&&_0x168c8a['buffers']['length']){for(var _0x4babdb=0x0;_0x4babdb<_0x168c8a['buffers']['length'];++_0x4babdb)_0x17e104['uint32'](0x1a)['bytes'](_0x168c8a['buffers'][_0x4babdb]);}if(null!=_0x168c8a['types']&&_0x168c8a['types']['length']){for(_0x17e104['uint32'](0x22)['fork'](),_0x4babdb=0x0;_0x4babdb<_0x168c8a['types']['length'];++_0x4babdb)_0x17e104['uint32'](_0x168c8a['types'][_0x4babdb]);_0x17e104['ldelim']();}return null!=_0x168c8a['lastOperationId']&&Object['hasOwnProperty']['call'](_0x168c8a,'lastOperationId')&&_0x17e104['uint32'](0x2a)['string'](_0x168c8a['lastOperationId']),_0x17e104;},_0x5964b4['encodeDelimited']=function(_0x4d8de6,_0x548f25){return this['encode'](_0x4d8de6,_0x548f25)['ldelim']();},_0x5964b4['decode']=function(_0x4dc901,_0x599366,_0x42d640){_0x4dc901 instanceof _0x5e9c2f||(_0x4dc901=_0x5e9c2f['create'](_0x4dc901));for(var _0x14b579=void 0x0===_0x599366?_0x4dc901['len']:_0x4dc901['pos']+_0x599366,_0x559222=new _0x1429da['CollaborativeEditingConnectMessage']();_0x4dc901['pos']<_0x14b579;){var _0x2a4c3d=_0x4dc901['uint32']();if(_0x2a4c3d===_0x42d640)break;switch(_0x2a4c3d>>>0x3){case 0x1:_0x559222['id']=_0x4dc901['string']();break;case 0x2:_0x559222['bundleVersion']=_0x4dc901['string']();break;case 0x3:_0x559222['buffers']&&_0x559222['buffers']['length']||(_0x559222['buffers']=[]),_0x559222['buffers']['push'](_0x4dc901['bytes']());break;case 0x4:if(_0x559222['types']&&_0x559222['types']['length']||(_0x559222['types']=[]),0x2==(0x7&_0x2a4c3d)){for(var _0x5d5fed=_0x4dc901['uint32']()+_0x4dc901['pos'];_0x4dc901['pos']<_0x5d5fed;)_0x559222['types']['push'](_0x4dc901['uint32']());}else _0x559222['types']['push'](_0x4dc901['uint32']());break;case 0x5:_0x559222['lastOperationId']=_0x4dc901['string']();break;default:_0x4dc901['skipType'](0x7&_0x2a4c3d);}}return _0x559222;},_0x5964b4['decodeDelimited']=function(_0xf03cb3){return _0xf03cb3 instanceof _0x5e9c2f||(_0xf03cb3=new _0x5e9c2f(_0xf03cb3)),this['decode'](_0xf03cb3,_0xf03cb3['uint32']());},_0x5964b4['verify']=function(_0x4d7d48){if('object'!=typeof _0x4d7d48||null===_0x4d7d48)return'object\x20expected';if(null!=_0x4d7d48['id']&&_0x4d7d48['hasOwnProperty']('id')&&!_0x44b59b['isString'](_0x4d7d48['id']))return'id:\x20string\x20expected';if(null!=_0x4d7d48['bundleVersion']&&_0x4d7d48['hasOwnProperty']('bundleVersion')&&!_0x44b59b['isString'](_0x4d7d48['bundleVersion']))return'bundleVersion:\x20string\x20expected';if(null!=_0x4d7d48['buffers']&&_0x4d7d48['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x4d7d48['buffers']))return'buffers:\x20array\x20expected';for(var _0x15b25c=0x0;_0x15b25c<_0x4d7d48['buffers']['length'];++_0x15b25c)if(!(_0x4d7d48['buffers'][_0x15b25c]&&'number'==typeof _0x4d7d48['buffers'][_0x15b25c]['length']||_0x44b59b['isString'](_0x4d7d48['buffers'][_0x15b25c])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x4d7d48['types']&&_0x4d7d48['hasOwnProperty']('types')){if(!Array['isArray'](_0x4d7d48['types']))return'types:\x20array\x20expected';for(_0x15b25c=0x0;_0x15b25c<_0x4d7d48['types']['length'];++_0x15b25c)if(!_0x44b59b['isInteger'](_0x4d7d48['types'][_0x15b25c]))return'types:\x20integer[]\x20expected';}return null!=_0x4d7d48['lastOperationId']&&_0x4d7d48['hasOwnProperty']('lastOperationId')&&!_0x44b59b['isString'](_0x4d7d48['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x5964b4['fromObject']=function(_0x4b83b8){if(_0x4b83b8 instanceof _0x1429da['CollaborativeEditingConnectMessage'])return _0x4b83b8;var _0x5ed645=new _0x1429da['CollaborativeEditingConnectMessage']();if(null!=_0x4b83b8['id']&&(_0x5ed645['id']=String(_0x4b83b8['id'])),null!=_0x4b83b8['bundleVersion']&&(_0x5ed645['bundleVersion']=String(_0x4b83b8['bundleVersion'])),_0x4b83b8['buffers']){if(!Array['isArray'](_0x4b83b8['buffers']))throw TypeError('.CollaborativeEditingConnectMessage.buffers:\x20array\x20expected');_0x5ed645['buffers']=[];for(var _0x4735fe=0x0;_0x4735fe<_0x4b83b8['buffers']['length'];++_0x4735fe)'string'==typeof _0x4b83b8['buffers'][_0x4735fe]?_0x44b59b['base64']['decode'](_0x4b83b8['buffers'][_0x4735fe],_0x5ed645['buffers'][_0x4735fe]=_0x44b59b['newBuffer'](_0x44b59b['base64']['length'](_0x4b83b8['buffers'][_0x4735fe])),0x0):_0x4b83b8['buffers'][_0x4735fe]['length']>=0x0&&(_0x5ed645['buffers'][_0x4735fe]=_0x4b83b8['buffers'][_0x4735fe]);}if(_0x4b83b8['types']){if(!Array['isArray'](_0x4b83b8['types']))throw TypeError('.CollaborativeEditingConnectMessage.types:\x20array\x20expected');for(_0x5ed645['types']=[],_0x4735fe=0x0;_0x4735fe<_0x4b83b8['types']['length'];++_0x4735fe)_0x5ed645['types'][_0x4735fe]=_0x4b83b8['types'][_0x4735fe]>>>0x0;}return null!=_0x4b83b8['lastOperationId']&&(_0x5ed645['lastOperationId']=String(_0x4b83b8['lastOperationId'])),_0x5ed645;},_0x5964b4['toObject']=function(_0x448548,_0x217e87){_0x217e87||(_0x217e87={});var _0x2fe35f={};if((_0x217e87['arrays']||_0x217e87['defaults'])&&(_0x2fe35f['buffers']=[],_0x2fe35f['types']=[]),_0x217e87['defaults']&&(_0x2fe35f['id']='',_0x2fe35f['bundleVersion']='',_0x2fe35f['lastOperationId']=''),null!=_0x448548['id']&&_0x448548['hasOwnProperty']('id')&&(_0x2fe35f['id']=_0x448548['id']),null!=_0x448548['bundleVersion']&&_0x448548['hasOwnProperty']('bundleVersion')&&(_0x2fe35f['bundleVersion']=_0x448548['bundleVersion']),_0x448548['buffers']&&_0x448548['buffers']['length']){_0x2fe35f['buffers']=[];for(var _0x520429=0x0;_0x520429<_0x448548['buffers']['length'];++_0x520429)_0x2fe35f['buffers'][_0x520429]=_0x217e87['bytes']===String?_0x44b59b['base64']['encode'](_0x448548['buffers'][_0x520429],0x0,_0x448548['buffers'][_0x520429]['length']):_0x217e87['bytes']===Array?Array['prototype']['slice']['call'](_0x448548['buffers'][_0x520429]):_0x448548['buffers'][_0x520429];}if(_0x448548['types']&&_0x448548['types']['length']){for(_0x2fe35f['types']=[],_0x520429=0x0;_0x520429<_0x448548['types']['length'];++_0x520429)_0x2fe35f['types'][_0x520429]=_0x448548['types'][_0x520429];}return null!=_0x448548['lastOperationId']&&_0x448548['hasOwnProperty']('lastOperationId')&&(_0x2fe35f['lastOperationId']=_0x448548['lastOperationId']),_0x2fe35f;},_0x5964b4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5964b4['getTypeUrl']=function(_0x286d4e){return void 0x0===_0x286d4e&&(_0x286d4e='type.googleapis.com'),_0x286d4e+'/CollaborativeEditingConnectMessage';},_0x5964b4;}()),_0x1429da['OperationMetadataDescriptor']=(function(){function _0x17f236(_0xde028d){if(_0xde028d){for(var _0x1ef4ee=Object['keys'](_0xde028d),_0x568f3f=0x0;_0x568f3f<_0x1ef4ee['length'];++_0x568f3f)null!=_0xde028d[_0x1ef4ee[_0x568f3f]]&&(this[_0x1ef4ee[_0x568f3f]]=_0xde028d[_0x1ef4ee[_0x568f3f]]);}}return _0x17f236['prototype']['userId']='',_0x17f236['prototype']['type']='',_0x17f236['prototype']['createdAt']='',_0x17f236['create']=function(_0x25d463){return new _0x17f236(_0x25d463);},_0x17f236['encode']=function(_0x4ab44c,_0x390869){return _0x390869||(_0x390869=_0x2e8075['create']()),null!=_0x4ab44c['userId']&&Object['hasOwnProperty']['call'](_0x4ab44c,'userId')&&_0x390869['uint32'](0xa)['string'](_0x4ab44c['userId']),null!=_0x4ab44c['type']&&Object['hasOwnProperty']['call'](_0x4ab44c,'type')&&_0x390869['uint32'](0x12)['string'](_0x4ab44c['type']),null!=_0x4ab44c['createdAt']&&Object['hasOwnProperty']['call'](_0x4ab44c,'createdAt')&&_0x390869['uint32'](0x1a)['string'](_0x4ab44c['createdAt']),_0x390869;},_0x17f236['encodeDelimited']=function(_0xc4136f,_0x53b286){return this['encode'](_0xc4136f,_0x53b286)['ldelim']();},_0x17f236['decode']=function(_0x3497ba,_0x54b98d,_0x3630a1){_0x3497ba instanceof _0x5e9c2f||(_0x3497ba=_0x5e9c2f['create'](_0x3497ba));for(var _0x5d6ab6=void 0x0===_0x54b98d?_0x3497ba['len']:_0x3497ba['pos']+_0x54b98d,_0x358908=new _0x1429da['OperationMetadataDescriptor']();_0x3497ba['pos']<_0x5d6ab6;){var _0x153c53=_0x3497ba['uint32']();if(_0x153c53===_0x3630a1)break;switch(_0x153c53>>>0x3){case 0x1:_0x358908['userId']=_0x3497ba['string']();break;case 0x2:_0x358908['type']=_0x3497ba['string']();break;case 0x3:_0x358908['createdAt']=_0x3497ba['string']();break;default:_0x3497ba['skipType'](0x7&_0x153c53);}}return _0x358908;},_0x17f236['decodeDelimited']=function(_0x550757){return _0x550757 instanceof _0x5e9c2f||(_0x550757=new _0x5e9c2f(_0x550757)),this['decode'](_0x550757,_0x550757['uint32']());},_0x17f236['verify']=function(_0x1959be){return'object'!=typeof _0x1959be||null===_0x1959be?'object\x20expected':null!=_0x1959be['userId']&&_0x1959be['hasOwnProperty']('userId')&&!_0x44b59b['isString'](_0x1959be['userId'])?'userId:\x20string\x20expected':null!=_0x1959be['type']&&_0x1959be['hasOwnProperty']('type')&&!_0x44b59b['isString'](_0x1959be['type'])?'type:\x20string\x20expected':null!=_0x1959be['createdAt']&&_0x1959be['hasOwnProperty']('createdAt')&&!_0x44b59b['isString'](_0x1959be['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x17f236['fromObject']=function(_0x3d6c06){if(_0x3d6c06 instanceof _0x1429da['OperationMetadataDescriptor'])return _0x3d6c06;var _0x40f49f=new _0x1429da['OperationMetadataDescriptor']();return null!=_0x3d6c06['userId']&&(_0x40f49f['userId']=String(_0x3d6c06['userId'])),null!=_0x3d6c06['type']&&(_0x40f49f['type']=String(_0x3d6c06['type'])),null!=_0x3d6c06['createdAt']&&(_0x40f49f['createdAt']=String(_0x3d6c06['createdAt'])),_0x40f49f;},_0x17f236['toObject']=function(_0x2b6d9f,_0x1a16d2){_0x1a16d2||(_0x1a16d2={});var _0x3d839f={};return _0x1a16d2['defaults']&&(_0x3d839f['userId']='',_0x3d839f['type']='',_0x3d839f['createdAt']=''),null!=_0x2b6d9f['userId']&&_0x2b6d9f['hasOwnProperty']('userId')&&(_0x3d839f['userId']=_0x2b6d9f['userId']),null!=_0x2b6d9f['type']&&_0x2b6d9f['hasOwnProperty']('type')&&(_0x3d839f['type']=_0x2b6d9f['type']),null!=_0x2b6d9f['createdAt']&&_0x2b6d9f['hasOwnProperty']('createdAt')&&(_0x3d839f['createdAt']=_0x2b6d9f['createdAt']),_0x3d839f;},_0x17f236['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x17f236['getTypeUrl']=function(_0x136ae4){return void 0x0===_0x136ae4&&(_0x136ae4='type.googleapis.com'),_0x136ae4+'/OperationMetadataDescriptor';},_0x17f236;}()),_0x1429da;})());class MessagesCompressor{static['decode'](_0x2e833c,_0x301b6b){const _0x25b46c=_getType(_0x301b6b)['decode']('undefined'==typeof window?_0x2e833c:new Uint8Array(_0x2e833c));return _0x301b6b['fromJSON']({..._0x25b46c});}static['encode'](_0x351407){const _0x281da6=_getType(_0x351407['constructor']),_0x4cfadc=_0x351407['toJSON'](),_0x49a522=_0x281da6['verify'](_0x4cfadc);if(_0x49a522)throw Error(_0x49a522);return _0x281da6['encode'](_0x281da6['create'](_0x4cfadc))['finish']();}}function _getType(_0x556edf){return messages$1[_0x556edf['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(_0x514bc1){super(),this['ids']=_0x514bc1;}['toJSON'](){return{'ids':this['ids']};}static['fromJSON'](_0x157d7a){return new GetManyUsersMessage(_0x157d7a['ids']);}}class GetManyUsersResponse extends Message{['users'];static ['DESCRIPTOR_NAME']='GetManyUsersResponse';static ['DESCRIPTOR']={'fields':{'users':{'rule':'repeated','type':'UserDescriptor','id':0x1}}};constructor(_0x1798b2){super(),this['users']=_0x1798b2;}['toJSON'](){return{'users':this['users']['map'](_userToJson)};}static['fromJSON'](_0x117eb4){return new GetManyUsersResponse(_0x117eb4['users']['map'](_userFromJson));}}function _userToJson(_0x5a0526){return{'attributes':Object['keys'](_0x5a0526)['map'](_0xbaec53=>({'key':_0xbaec53,'value':JSON['stringify'](_0x5a0526[_0xbaec53])}))};}function _userFromJson(_0x302fef){return _0x302fef['attributes']['reduce']((_0x4fa55e,_0x4f3eed)=>(_0x4fa55e[_0x4f3eed['key']]=_0x4f3eed['value']?JSON['parse'](_0x4f3eed['value']):null,_0x4fa55e),{});}class User{static ['_SERVICE']=0x2;constructor(_0x53eb31={}){this['_attributes']=new Map();for(const _0x15d00a of Object['keys'](_0x53eb31))'id'!==_0x15d00a?(this['_attributes']['set'](_0x15d00a,_0x53eb31[_0x15d00a]),Object['defineProperty'](this,_0x15d00a,{'enumerable':!0x0,'configurable':!0x1,'get':()=>this['_attributes']['get'](_0x15d00a)})):this['id']=_0x53eb31['id'];}static['fromData'](_0xcf0bcd){return new User(_0xcf0bcd);}static async['get'](_0x38688e,_0x5267a4){const _0x4e4df1=new GetUserMessage(_0x5267a4);try{const _0x48175e=await _0x38688e['_sendRequest'](User['_SERVICE'],GetUserMessage['TYPE'],MessagesCompressor['encode'](_0x4e4df1)),_0xeb17fc=MessagesCompressor['decode'](_0x48175e,GetUserResponse);return new User(_0xeb17fc['attributes']);}catch{return new User({'id':_0x5267a4});}}static async['getMany'](_0x1ad61a,_0x1d85a8){const _0x4b3f33=new GetManyUsersMessage(_0x1d85a8);try{const _0xaccb21=await _0x1ad61a['_sendRequest'](User['_SERVICE'],GetManyUsersMessage['TYPE'],MessagesCompressor['encode'](_0x4b3f33));return MessagesCompressor['decode'](_0xaccb21,GetManyUsersResponse)['users']['map'](_0xd72287=>new User(_0xd72287));}catch{return _0x1d85a8['map'](_0x564318=>new User({'id':_0x564318}));}}}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(_0x32ba86,_0x12218f,_0x3805df){super(),this['type']=_0x32ba86,this['socketId']=_0x12218f,this['data']=_0x3805df;}['toJSON'](){return{'type':this['type'],'socketId':this['socketId'],'data':this['data']};}static['fromJSON'](_0x2b6ff1){return new ChannelMessage(_0x2b6ff1['type'],_0x2b6ff1['socketId'],_0x2b6ff1['data']);}}class Channel extends/* #__PURE__ -- @preserve */
EmitterMixin(){['_channelName'];['_wsGateway'];['_socket'];constructor(_0x2be8b9,_0x374073,_0x234c88){super(),this['_channelName']=_0x2be8b9,this['_wsGateway']=_0x374073,this['_socket']=_0x234c88,this['_subscribeToChannel']();}['remove'](){this['_socket']['off'](this['_channelName']);}['getEventName'](_0x1000eb,_0x3c9eb1=!0x1){let _0x1bb61e='';return _0x3c9eb1&&(_0x1bb61e+='all:'),_0x1bb61e+='event',_0x1000eb&&(_0x1bb61e+=':'+_0x1000eb),_0x1bb61e;}['_subscribeToChannel'](){this['_socket']['on'](this['_channelName'],_0x4bf175=>{const _0x1c235b=MessagesCompressor['decode'](_0x4bf175,ChannelMessage);this['fire'](this['getEventName'](_0x1c235b['type'],!0x0),_0x1c235b['data'],_0x1c235b['socketId']),_0x1c235b['socketId']!==this['_wsGateway']['socketId']&&this['fire'](this['getEventName'](_0x1c235b['type']),_0x1c235b['data'],_0x1c235b['socketId']);});}}class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x280cdf,_0xc3b6e1,_0x1369bb=null,_0x275775={}){super('cloud-services-internal-error:\x20'+_0x280cdf),this['context']=_0xc3b6e1,this['code']=_0x1369bb,this['data']=_0x275775,this['name']='CKEditorError';}static['fromPublicError'](_0x345cfe){return new CKEditorCloudServicesError(function(_0x413b86){let _0x165394='cloud-services-error:\x20'+_0x413b86['message'];return _0x413b86['data']&&(_0x165394+='\x0aError\x20data:\x20'+JSON['stringify'](_0x413b86['data'])),_0x413b86['explanation']&&(_0x165394+='\x0aExplanation:\x20'+_0x413b86['explanation']),_0x413b86['action']&&(_0x165394+='\x0aAction:\x20'+_0x413b86['action']),_0x413b86['traceId']&&(_0x165394+='\x0aTraceId:\x20'+_0x413b86['traceId']),_0x413b86['code']&&(_0x165394+='\x0aCode:\x20'+_0x413b86['code']),_0x165394;}(_0x345cfe),_0x345cfe);}}class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x461460,_0x3939d5){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x461460,this['code']=_0x3939d5['code'],this['traceId']=_0x3939d5['traceId'],this['data']=_0x3939d5['data'];}static['fromPublicError'](_0x10d7d7){return new CKEditorCloudServicesServerError(function(_0x2a51d7){let _0x2e7cb1='cloud-services-server-error:\x20'+_0x2a51d7['message'];return _0x2a51d7['explanation']&&(_0x2e7cb1+='\x0aExplanation:\x20'+_0x2a51d7['explanation']),_0x2a51d7['action']&&(_0x2e7cb1+='\x0aAction:\x20'+_0x2a51d7['action']),_0x2a51d7['traceId']&&(_0x2e7cb1+='\x0aTraceId:\x20'+_0x2a51d7['traceId']),_0x2a51d7['code']&&(_0x2e7cb1+='\x0aCode:\x20'+_0x2a51d7['code']),_0x2e7cb1;}(_0x10d7d7),_0x10d7d7);}}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(_0x4fa591,_0xa10937=[],_0x156066=[]){super(),this['flags']=_0x4fa591,this['rooms']=_0xa10937,this['except']=_0x156066;}['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'](_0x19a3ef){return new PacketOptionsMessage(_0x19a3ef['flags']&&JSON['parse'](_0x19a3ef['flags']),_0x19a3ef['rooms'],_0x19a3ef['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'](..._0xb4916f){let _0x5868e1=0x0;for(let _0x453d09=0x0;_0x453d09<_0xb4916f['length'];_0x453d09++)_0x5868e1+=_0xb4916f[_0x453d09]*Math['pow'](0xa,_0xb4916f['length']-_0x453d09-0x1);return _0x5868e1;}static['getType'](_0x196837){if(ParserUtils['isBuffer'](_0x196837))return MessageDataTypes_BUFFER;const _0x1eadf0=typeof _0x196837;return'string'===_0x1eadf0?MessageDataTypes_STRING:'number'===_0x1eadf0?MessageDataTypes_NUMBER:MessageDataTypes_OBJECT;}static['isBuffer'](_0x4db9e3){return IS_NODE&&Buffer['isBuffer'](_0x4db9e3)||_0x4db9e3 instanceof ArrayBuffer||_0x4db9e3 instanceof Uint8Array||this['_isBufferView'](_0x4db9e3);}static['_isBufferView'](_0x22b529){return'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x22b529):_0x22b529['buffer']instanceof ArrayBuffer;}}class PackageDataMessage extends Message{['data'];['data1'];static['create'](_0x1a1e66,_0x1152ed){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(_0x22b96d,_0x185fff){super(),this['data']=_0x22b96d,this['data1']=_0x185fff;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x3cfb1b){return new NumberBytesPacketDataMessage(_0x3cfb1b['data'],_0x3cfb1b['data1']);}static['create'](_0x9fa300,_0x3c29c1){return new NumberBytesPacketDataMessage(_0x9fa300,_0x3c29c1);}}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(_0x218bd4,_0x499693){super(),this['data']=_0x218bd4,this['data1']=_0x499693;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x29fa90){return new StringBytesPacketDataMessage(_0x29fa90['data'],_0x29fa90['data1']);}static['create'](_0x54ea8b,_0x40dbeb){return new StringBytesPacketDataMessage(_0x54ea8b,_0x40dbeb);}}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(_0x36027e,_0x3b4df0){super(),this['data']=_0x36027e,this['data1']=_0x3b4df0;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x12cf56){return new BytesBytesPacketDataMessage(_0x12cf56['data'],_0x12cf56['data1']);}static['create'](_0x572a30,_0x37fa00){return new BytesBytesPacketDataMessage(_0x572a30,_0x37fa00);}}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(_0x474b65,_0x522a17){super(),this['data']=_0x474b65,this['data1']=_0x522a17;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x181df7){return new StringObjectPacketDataMessage(_0x181df7['data'],_0x181df7['data1']&&JSON['parse'](_0x181df7['data1']));}static['create'](_0x8acb89,_0x2d96e8){return new StringObjectPacketDataMessage(_0x8acb89,_0x2d96e8);}}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(_0x379434,_0x136fb3){super(),this['data']=_0x379434,this['data1']=_0x136fb3;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x30a45b){return new NumberObjectPacketDataMessage(_0x30a45b['data'],_0x30a45b['data1']&&JSON['parse'](_0x30a45b['data1']));}static['create'](_0x43b9cd,_0xd2e2f7){return new NumberObjectPacketDataMessage(_0x43b9cd,_0xd2e2f7);}}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(_0x1f5a37,_0x248f61){super(),this['data']=_0x1f5a37,this['data1']=_0x248f61;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x5d7c23){return new ObjectObjectPacketDataMessage(_0x5d7c23['data']&&JSON['parse'](_0x5d7c23['data']),_0x5d7c23['data1']&&JSON['parse'](_0x5d7c23['data1']));}static['create'](_0x54d371,_0x1a5f23){return new ObjectObjectPacketDataMessage(_0x54d371,_0x1a5f23);}}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(_0x2ab988,_0x1e0f91){super(),this['data']=_0x2ab988,this['data1']=_0x1e0f91;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']};}static['fromJSON'](_0x48f487){return new ObjectBufferPacketDataMessage(_0x48f487['data']&&JSON['parse'](_0x48f487['data']),_0x48f487['data1']);}static['create'](_0x5a87d0,_0x265ee2){return new ObjectBufferPacketDataMessage(_0x5a87d0,_0x265ee2);}}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(_0x56d1fa,_0x114db2){super(),this['data']=_0x56d1fa,this['data1']=_0x114db2;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x4530a9){return new StringStringPacketDataMessage(_0x4530a9['data'],_0x4530a9['data1']);}static['create'](_0x109de0,_0x228a05){return new StringStringPacketDataMessage(_0x109de0,_0x228a05);}}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(_0x4984c3,_0x4b55cb){super(),this['data']=_0x4984c3,this['data1']=_0x4b55cb;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x90535f){return new StringNumberPacketDataMessage(_0x90535f['data'],_0x90535f['data1']);}static['create'](_0x258464,_0x531afa){return new StringNumberPacketDataMessage(_0x258464,_0x531afa);}}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(_0x2d9968,_0x42563c){super(),this['data']=_0x2d9968,this['data1']=_0x42563c;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x4ed31b){return new NumberNumberPacketDataMessage(_0x4ed31b['data'],_0x4ed31b['data1']);}static['create'](_0x144db2,_0x2e5b39){return new NumberNumberPacketDataMessage(_0x144db2,_0x2e5b39);}}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(_0x344e47,_0x30fae7){super(),this['data']=_0x344e47,this['data1']=_0x30fae7;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x9665b5){return new NumberStringPacketDataMessage(_0x9665b5['data'],_0x9665b5['data1']);}static['create'](_0x393562,_0x562bb4){return new NumberStringPacketDataMessage(_0x393562,_0x562bb4);}}const PACKET_DATA_MESSAGES=/* #__PURE__ -- @preserve */
((()=>[NumberBytesPacketDataMessage,StringBytesPacketDataMessage,BytesBytesPacketDataMessage,StringObjectPacketDataMessage,NumberObjectPacketDataMessage,ObjectObjectPacketDataMessage,ObjectBufferPacketDataMessage,StringStringPacketDataMessage,StringNumberPacketDataMessage,NumberNumberPacketDataMessage,NumberStringPacketDataMessage]['reduce']((_0x265d72,_0x58aeea)=>(_0x265d72[_0x58aeea['TYPE']]=_0x58aeea,_0x265d72),{}))());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(_0x3ddb3a,_0x583a16,_0x181909,_0x2638f2='/',_0x2190f6){super(),this['type']=_0x3ddb3a,this['data']=_0x583a16,this['id']=_0x181909,this['nsp']=_0x2638f2,this['options']=_0x2190f6??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 _0xf1dc48=MessagesCompressor['encode'](this['options']),_0x4c2145=MessagesCompressor['encode'](this['data']);return{'type':this['type']+0xa*this['data']['constructor']['TYPE'],'id':this['id'],'nsp':'/'===this['nsp']?void 0x0:this['nsp'],'data':_0x4c2145,'options':_0xf1dc48};}static['fromJSON'](_0x24af7f){const _0x48c74b=Math['floor'](_0x24af7f['type']/0xa);return new PacketMessage(_0x24af7f['type']-0xa*_0x48c74b,MessagesCompressor['decode'](_0x24af7f['data'],PACKET_DATA_MESSAGES[_0x48c74b]),_0x24af7f['id'],_0x24af7f['nsp'],_0x24af7f['options']?MessagesCompressor['decode'](_0x24af7f['options'],PacketOptionsMessage):new PacketOptionsMessage());}static['create'](_0x20919f,_0x4fb9d6={}){const _0x268562=ParserUtils['getPacketType'](ParserUtils['getType'](_0x20919f['data'][0x0]),ParserUtils['getType'](_0x20919f['data'][0x1]??_0x20919f['data'][0x0]));return new PacketMessage(_0x20919f['type'],PACKET_DATA_MESSAGES[_0x268562]['create'](_0x20919f['data'][0x0],_0x20919f['data'][0x1]),_0x20919f['id'],_0x20919f['nsp'],new PacketOptionsMessage(_0x4fb9d6['flags'],_0x4fb9d6['rooms'],_0x4fb9d6['except']));}}class PacketParser{['encode'](_0x3ed2b6,_0x1d53ff,_0x532b27,_0x59fd40='/',_0x280328={}){if(_0x1d53ff['length']>0x2)throw new Error('PacketParser\x20supports\x20only\x202\x20elements\x20in\x20data');const _0x1cd960={'type':_0x3ed2b6,'data':_0x1d53ff,'id':_0x532b27,'nsp':_0x59fd40};return MessagesCompressor['encode'](PacketMessage['create'](_0x1cd960,_0x280328));}['decode'](_0x30cfe7){const _0x11787f=MessagesCompressor['decode'](_0x30cfe7,PacketMessage);return{'packet':{'id':_0x11787f['id'],'type':_0x11787f['type'],'data':_0x11787f['packetData'],'nsp':_0x11787f['nsp']},'options':{'flags':_0x11787f['options']['flags'],'rooms':_0x11787f['options']['rooms'],'except':_0x11787f['options']['except']}};}}const ENCODED_TYPES=/* #__PURE__ -- @preserve */
((()=>[PacketType['EVENT'],PacketType['ACK'],PacketType['BINARY_ACK'],PacketType['BINARY_EVENT']])());class Encoder extends Encoder$1{['_packetParser'];constructor(_0xecb068){super(),this['_packetParser']=_0xecb068??new PacketParser();}['encode'](_0x164231){if(ENCODED_TYPES['includes'](_0x164231['type']))try{return[this['_packetParser']['encode'](_0x164231['type'],_0x164231['data'],_0x164231['id'],_0x164231['nsp'])];}catch(_0x473f53){console['error']('Can\x20not\x20properly\x20serialize\x20or\x20deserialize\x20messages.\x20Check\x20the\x20original\x20error.',{'originalError':{'message':_0x473f53['message']}});}return super['encode'](_0x164231);}}class Decoder extends Decoder$1{['_packetParser'];constructor(_0x143d7e){super(),this['_packetParser']=_0x143d7e??new PacketParser();}['add'](_0xbc7e0d){if(!ParserUtils['isBuffer'](_0xbc7e0d))return super['add'](_0xbc7e0d);let _0x24d703;try{_0x24d703=this['_packetParser']['decode'](_0xbc7e0d)['packet'];}catch{return super['add'](_0xbc7e0d);}super['emitReserved']('decoded',_0x24d703);}}class WebSocketRequest{['_context'];['_deferredPromise']=/* #__PURE__ -- @preserve */
_deferPromise();['timeout'];constructor(_0x55db9f,_0x3419f0){this['_context']=_0x55db9f,this['timeout']=setTimeout(()=>this['error'](new CKEditorCloudServicesError('Request\x20timeout.',this['_context'])),_0x3419f0);}get['promise'](){return this['_deferredPromise']['promise'];}['response'](_0x2a2168){this['_deferredPromise']['resolve'](_0x2a2168);}['error'](_0x3c56f2){this['_deferredPromise']['reject'](_0x3c56f2);}}class WebSocketGatewayRequestsManager{['_context'];['_requests']=new Set();constructor(_0x1bb33b){this['_context']=_0x1bb33b;}async['send'](_0x25850c,_0x274b0a=0xafc8){const _0x41eac7=this['_createRequest'](_0x274b0a);try{return _0x25850c(_0x41eac7),await _0x41eac7['promise'];}finally{this['_finishRequest'](_0x41eac7);}}['errorAll'](_0x2d8c8d){for(const _0x33617f of this['_requests'])_0x33617f['error'](_0x2d8c8d);}['waitForAllRequests'](_0x3cac7e=0xafc8){return this['_waitForRequests'](_0x3cac7e);}['_createRequest'](_0x5d14aa){const _0x344c6f=new WebSocketRequest(this['_context'],_0x5d14aa);return this['_requests']['add'](_0x344c6f),_0x344c6f;}['_finishRequest'](_0xb07ead){this['_requests']['delete'](_0xb07ead),clearTimeout(_0xb07ead['timeout']);}async['_waitForRequests'](_0x3dd3d8=0x1388,_0x51b87e=0x0){return!this['_requests']['size']||_0x51b87e>=_0x3dd3d8/0x1f4?Promise['resolve']():(await new Promise(_0x56b0e3=>{setTimeout(_0x56b0e3,0x1f4);}),this['_waitForRequests'](_0x3dd3d8,_0x51b87e++));}}function _deferPromise(){let _0x5282c2,_0x5ed5d6;const _0x5034d9=new Promise((_0x40d047,_0x4f3f40)=>{_0x5282c2=_0x40d047,_0x5ed5d6=_0x4f3f40;});return{'resolve':_0x5282c2,'reject':_0x5ed5d6,'promise':_0x5034d9};}const WEB_SOCKET_GATEWAY_STATES={'DISCONNECTED':'disconnected','CONNECTING':'connecting','CONNECTED':'connected'};let WebSocketGateway$1=class e extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_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['get']('highest')+0xf423f)());constructor(_0x243393,_0xf10842,_0x2473c2,_0x4a9a9f,_0x4d5075){if(super(),this['_token']=_0xf10842,this['_options']=_0x2473c2??{},this['_connectionProvider']=_0x4a9a9f??lookup,this['_userFactory']=_0x4d5075??User['get'],this['_requestsManager']=new WebSocketGatewayRequestsManager(this),this['_channels']=new Map(),!_0x243393)throw new TypeError('Api\x20address\x20must\x20be\x20provided.');if(!this['_token'])throw new TypeError('Token\x20must\x20be\x20provided.');this['_options']['requestTimeout']??=0x4e20,this['_url']=urlParseExports(_0x243393['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(_0x8b3d23,_0x3f81eb,_0x2cbc4a)=>{if(this['_debugEvent']('ws-gw:change:state',_0x2cbc4a),_0x2cbc4a!==e['STATE_CONNECTED']){if(_0x2cbc4a===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{}},{'priority':e['_CHANGE_STATE_EVENT_PRIORITY']}),this['on']('error',(_0x5bc88f,_0x359008)=>{this['_options']['onError']?this['_options']['onError'](_0x359008):console['error'](_0x359008);});}get['sessionId'](){return this['socketId'];}['waitForAllRequests'](_0x4fb32b){return this['_requestsManager']['waitForAllRequests'](_0x4fb32b);}['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'](_0x5f495f,_0x5815f3='local.cs.dev:443/ws-v2',_0x234ace={},_0x27299f=lookup,_0xa79ab1=User['get']){const _0x77def2=new e(_0x5815f3,_0x5f495f,_0x234ace,_0x27299f,_0xa79ab1);return await _0x77def2['_connect'](),_0x77def2;}['_sendRequest'](_0x4652b6,_0xfadab4,_0x402aa9){if(!_0x4652b6)throw new CKEditorCloudServicesError('`serviceName`\x20must\x20be\x20provided.',this);if(this['state']!==e['STATE_CONNECTED'])throw new CKEditorCloudServicesError('Not\x20connected.',this);if(!this['_socketAuth']?.['isAuthenticated'])throw new CKEditorCloudServicesError('Not\x20authenticated.',this);const _0x5bb53c=new ArrayBuffer(_0x402aa9['length']+0x2),_0x41e6b9=new Uint8Array(_0x5bb53c);return _0x41e6b9[0x0]=_0x4652b6,_0x41e6b9[0x1]=parseInt(_0xfadab4),_0x41e6b9['set'](_0x402aa9,0x2),this['_emit'](0x1,_0x41e6b9);}['_getChannel'](_0x1fe7b4,_0x13d9e1){const _0x5c7719=''+_0x1fe7b4+_0x13d9e1;return!this['_channels']['has'](_0x5c7719)&&this['_socket']&&this['_channels']['set'](_0x5c7719,new Channel(_0x5c7719,this,this['_socket'])),this['_channels']['get'](_0x5c7719);}['_connect'](){return new Promise((_0x4f2af0,_0x5c826e)=>{const _0x436bbe=this['_setupSocket']();!this['socketId']&&_0x436bbe['io']['on']('reconnect_error',()=>{this['_debugEvent']('reconnect_error'),this['_reconnectionAttemptError'](_0x5c826e);}),_0x436bbe['once']('connect',async()=>{this['_debugEvent']('once-connect');try{await this['_onConnect'](),_0x4f2af0();}catch(_0x549d48){_0x5c826e(_0x549d48);}}),_0x436bbe['connect']();});}['_getPortByProtocol'](_0x5ba78a){return['http:','ws:']['includes'](_0x5ba78a)?0x50:0x1bb;}['_setupSocket'](){if(this['_socket'])return this['_socket'];const _0x10bc8e=this['_url']['port']||this['_getPortByProtocol'](this['_url']['protocol']),_0x2cc2aa=(this['_url']['protocol']||'https:')+'//'+this['_url']['hostname']+':'+_0x10bc8e,_0x3933a9=this['_url']['pathname']['match'](/^\/.*\/ws/)?this['_url']['pathname']['split']('/ws')[0x0]:'',_0x408451=this['_connectionProvider'](_0x2cc2aa,{'parser':{'Encoder':Encoder,'Decoder':Decoder},'path':_0x3933a9+'/ws-v2/ws','transports':['websocket'],'timeout':void 0x0!==this['_options']['timeout']?this['_options']['timeout']:0x1388,'reconnection':void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect'],'reconnectionDelay':0x3e8,'reconnectionDelayMax':0x1388,'rejectUnauthorized':void 0x0===this['_options']['rejectUnauthorized']||this['_options']['rejectUnauthorized'],'query':{'version':'54.0.1'},'agent':this['_options']['agent']??!0x1,'closeOnBeforeunload':!0x1});return this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],_0x408451['on']('connect',()=>{this['_debugEvent']('connect'),this['socketId']=_0x408451['id'];}),_0x408451['on']('connect_error',_0x4daaa7=>{this['_debugEvent']('connect_error',_0x4daaa7);}),_0x408451['on']('disconnect',()=>{this['_debugEvent']('disconnect'),this['_onDisconnect']();}),_0x408451['io']['on']('reconnect',async()=>{this['_debugEvent']('reconnect'),await this['_onReconnect']();}),_0x408451['io']['on']('reconnect_attempt',_0x206e2c=>{this['_debugEvent']('reconnect_attempt',_0x206e2c),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],this['_connectionAttempt']=_0x206e2c;}),_0x408451['on']('unauthorized',_0x3712bc=>{this['_debugEvent']('unauthorized'),this['_onUnauthorized'](_0x3712bc);}),_0x408451['on']('authenticationRequest',async _0x37c54c=>{this['_debugEvent']('authenticationRequest',_0x37c54c['attempt']),await this['_onReconnect']();}),this['_socket']=_0x408451,_0x408451;}['_emit'](_0x4a67cf,_0x2af9c9){const _0x1d8947=this['_socket'];return this['_requestsManager']['send'](_0x2f23d0=>{_0x1d8947['emit'](_0x4a67cf,_0x2af9c9,(_0x51f638,_0x5b541a)=>{if(_0x51f638)return _0x2f23d0['error'](CKEditorCloudServicesServerError['fromPublicError'](_0x51f638));_0x2f23d0['response'](_0x5b541a);});},this['_options']['requestTimeout']);}['_addAuthData'](_0x357f22,_0x276a49){this['_socketAuth']={'environmentId':_0x357f22,'userId':_0x276a49,'isAuthenticated':!0x0};}['_removeAuthData'](){this['_socketAuth']=void 0x0;}async['_onConnect'](){await this['_authenticate'](this['_token']['value']),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'];const _0x357892=async(_0x5c3328,_0x4af96f,_0x78db56)=>{this['_debugEvent']('token:value:change');try{await this['_authenticate'](_0x78db56);}catch{}};this['_token']['on']('change:value',_0x357892),this['_socket']['io']['off']('reconnect_error'),this['on']('disconnect',()=>{this['_token']['off']('change:value',_0x357892);});}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 _0x52cf3f of this['_channels']['values']())_0x52cf3f['remove']();this['_channels']['clear'](),void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect']||(this['_socket']=void 0x0);}['_debugEvent'](_0x73d781,_0x48935e){if(!this['_isDebugModeEnabled']())return;const _0x3e55f3=void 0x0!==_0x48935e?',\x20data:\x20'+_0x48935e:'';console['info'](new Date()['toLocaleString']()+'\x20'+_0x73d781+_0x3e55f3);}['_reconnectionAttemptError'](_0x52e9c2){this['_connectionAttempt']>=0x2&&(this['disconnect'](),_0x52e9c2(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:_0x27c330}){this['_removeAuthData'](),this['fire']('error',CKEditorCloudServicesServerError['fromPublicError'](_0x27c330));}async['_authenticate'](_0x50647e){try{this['_debugEvent']('authenticate:start');const _0x19847f=await this['_emit'](0x2,{'token':_0x50647e});this['_debugEvent']('authenticate:success','envId:\x20'+_0x19847f['environmentId']+',\x20userId:\x20'+_0x19847f['userId']),this['_addAuthData'](_0x19847f['environmentId'],_0x19847f['userId']);}catch(_0x40794e){throw this['_debugEvent']('authenticate:error',_0x40794e['message']),this['_removeAuthData'](),_0x40794e;}}['_isDebugModeEnabled'](){return!!_0x176c57['window']['localStorage']&&'true'===(_0x176c57['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(_0x4ffc34){super(),this['bundleVersion']=_0x4ffc34;}['toJSON'](){return{'bundleVersion':this['bundleVersion']};}static['fromJSON'](_0x4af94b){return new IsEditorBundleUploadedMessage(_0x4af94b['bundleVersion']);}}class IsEditorBundleUploadedResponse extends Message{['isUploaded'];static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedResponse';static ['DESCRIPTOR']={'fields':{'isUploaded':{'type':'bool','id':0x1}}};constructor(_0x24d3bb){super(),this['isUploaded']=_0x24d3bb;}['toJSON'](){return{'isUploaded':this['isUploaded']};}static['fromJSON'](_0xe6abc5){return new IsEditorBundleUploadedResponse(_0xe6abc5['isUploaded']);}}class EditorService extends/* #__PURE__ -- @preserve */
EmitterMixin(){static ['_SERVICE']=0xd;static async['isBundleUploaded'](_0x5c54ee,_0x3e87d7){const _0x457e44=new IsEditorBundleUploadedMessage(_0x3e87d7);if(_0x5c54ee['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x5c54ee);const _0x8e9960=await _0x5c54ee['_sendRequest'](EditorService['_SERVICE'],IsEditorBundleUploadedMessage['TYPE'],MessagesCompressor['encode'](_0x457e44));return MessagesCompressor['decode'](_0x8e9960,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(_0x3033fe,_0x19463f){super(),this['documentId']=_0x3033fe,this['revisionId']=_0x19463f;}['toJSON'](){return{'documentId':this['documentId'],'revisionId':this['revisionId']};}static['fromJSON'](_0xb49abc){return new RevisionHistoryGetRevisionMessage(_0xb49abc['documentId'],_0xb49abc['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'](_0x2ff73a){return{'revisionId':_0x2ff73a['id'],'name':_0x2ff73a['name'],'creatorId':_0x2ff73a['creatorId'],'createdAt':_0x2ff73a['createdAt'],'fromVersion':_0x2ff73a['fromVersion'],'toVersion':_0x2ff73a['toVersion'],'isEmptyCurrent':_0x2ff73a['isEmptyCurrent'],'diffData':_0x2ff73a['diffData']?JSON['stringify'](_0x2ff73a['diffData']):void 0x0,'attributes':_0x2ff73a['attributes'],'authorsIds':_0x2ff73a['authorsIds']};}static['toJSON'](_0xf640bd){return{'revisionId':_0xf640bd['revisionId'],'name':_0xf640bd['name'],'creatorId':_0xf640bd['creatorId'],'authorsIds':_0xf640bd['authorsIds']?JSON['stringify'](_0xf640bd['authorsIds']):void 0x0,'diffData':_0xf640bd['diffData'],'createdAt':_0xf640bd['createdAt']?.['toISOString'](),'attributes':_0xf640bd['attributes']?JSON['stringify'](_0xf640bd['attributes']):void 0x0,'toVersion':_0xf640bd['toVersion'],'fromVersion':_0xf640bd['fromVersion'],'isEmptyCurrent':_0xf640bd['isEmptyCurrent']};}static['fromJSON'](_0x26d899){return{'revisionId':(_0x26d899={..._0x26d899})['revisionId'],'name':_0x26d899['name'],'creatorId':_0x26d899['creatorId'],'authorsIds':_0x26d899['authorsIds']?JSON['parse'](_0x26d899['authorsIds']):void 0x0,'diffData':_0x26d899['diffData'],'createdAt':_0x26d899['createdAt']?new Date(_0x26d899['createdAt']):void 0x0,'attributes':_0x26d899['attributes']?JSON['parse'](_0x26d899['attributes']):void 0x0,'toVersion':_0x26d899['toVersion'],'fromVersion':_0x26d899['fromVersion'],'isEmptyCurrent':_0x26d899['isEmptyCurrent']};}static['toObject'](_0x6dc231){return function(_0x27ab97){for(const [_0x5eacde,_0x3c3e1b]of Object['entries'](_0x27ab97))void 0x0===_0x3c3e1b&&delete _0x27ab97[_0x5eacde];return _0x27ab97;}({'id':_0x6dc231['revisionId'],'name':_0x6dc231['name'],'creatorId':_0x6dc231['creatorId'],'createdAt':_0x6dc231['createdAt'],'fromVersion':_0x6dc231['fromVersion'],'toVersion':_0x6dc231['toVersion'],'isEmptyCurrent':_0x6dc231['isEmptyCurrent'],'diffData':_0x6dc231['diffData']?JSON['parse'](_0x6dc231['diffData']):void 0x0,'attributes':_0x6dc231['attributes'],'authorsIds':_0x6dc231['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(_0x5c8ef2,_0xb6df11,_0x449961,_0x41cd38,_0x2da622,_0x1138ef,_0xf5e034,_0x4a850b,_0x49405f,_0x4e7f00){super(),this['revisionId']=_0x5c8ef2,this['name']=_0xb6df11,this['creatorId']=_0x449961,this['authorsIds']=_0x41cd38,this['createdAt']=_0x2da622,this['diffData']=_0x1138ef,this['attributes']=_0xf5e034,this['fromVersion']=_0x4a850b,this['toVersion']=_0x49405f,this['isEmptyCurrent']=_0x4e7f00;}['toJSON'](){return RevisionDescriptor['toJSON'](this);}['toObject'](){return RevisionDescriptor['toObject'](this);}static['create'](_0x31d3a5){return new RevisionHistoryGetRevisionResponse(_0x31d3a5['revisionId'],_0x31d3a5['name'],_0x31d3a5['creatorId'],_0x31d3a5['authorsIds'],_0x31d3a5['createdAt'],_0x31d3a5['diffData'],_0x31d3a5['attributes'],_0x31d3a5['fromVersion'],_0x31d3a5['toVersion'],_0x31d3a5['isEmptyCurrent']);}static['fromJSON'](_0x5c6356){return new RevisionHistoryGetRevisionResponse(_0x5c6356['revisionId'],_0x5c6356['name'],_0x5c6356['creatorId'],_0x5c6356['authorsIds']?JSON['parse'](_0x5c6356['authorsIds']):void 0x0,_0x5c6356['createdAt']?new Date(_0x5c6356['createdAt']):void 0x0,_0x5c6356['diffData'],_0x5c6356['attributes']?JSON['parse'](_0x5c6356['attributes']):void 0x0,_0x5c6356['fromVersion'],_0x5c6356['toVersion'],_0x5c6356['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(_0x452df4,_0x23efa5,_0x554684){super(),this['documentId']=_0x452df4,this['requestId']=_0x23efa5,this['revisions']=_0x554684;}['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'](_0x24fccf){return new RevisionHistoryUpdateRevisionsMessage(_0x24fccf['documentId'],_0x24fccf['requestId'],_0x24fccf['revisions']['map'](RevisionDescriptor['create']));}static['fromJSON'](_0x2d8024){return new RevisionHistoryUpdateRevisionsMessage(_0x2d8024['documentId'],_0x2d8024['requestId'],_0x2d8024['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryUpdateRevisionsResponse extends Message{['requestId'];static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsResponse';static ['DESCRIPTOR']={'fields':{'requestId':{'type':'uint32','id':0x1}}};constructor(_0x133246){super(),this['requestId']=_0x133246;}['toJSON'](){return{'requestId':this['requestId']};}static['fromJSON'](_0x1b02af){return new RevisionHistoryUpdateRevisionsResponse(_0x1b02af['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(_0x45bc50){super(),this['documentId']=_0x45bc50;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x30884e){return new RevisionHistoryConnectMessage(_0x30884e['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(_0x4e04e2,_0x20de64,_0x5ab618){super(),this['channel']=_0x4e04e2,this['requestId']=_0x20de64,this['revisions']=_0x5ab618;}['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'](_0x19e3eb){return new RevisionHistoryConnectResponse(_0x19e3eb['channel'],_0x19e3eb['requestId'],_0x19e3eb['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(_0x22d1ea,_0x98155f){super(),this['documentId']=_0x22d1ea,this['requestId']=_0x98155f;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId']};}static['fromJSON'](_0x36d309){return new RevisionHistoryReconnectMessage(_0x36d309['documentId'],_0x36d309['requestId']);}}class ServiceNotConnectedError extends CKEditorCloudServicesError{constructor(_0x1d79d5,_0x384d1d){super(_0x1d79d5+'\x20Service\x20is\x20not\x20connected.',_0x384d1d);}}class RevisionHistoryService extends/* #__PURE__ -- @preserve */
EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xc;constructor(_0x29baa6){super(),this['_documentId']=_0x29baa6;}get['isConnected'](){return this['_isConnected'];}['connect'](_0x75ef46){return this['_isConnected']?Promise['resolve']():this['_connect'](_0x75ef46,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'](_0x4404e7,_0x5b71da){if(this['isConnected'])throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x4404e7);return this['_connect'](_0x4404e7,new RevisionHistoryReconnectMessage(this['_documentId'],_0x5b71da));}async['updateRevisions'](_0x331771,_0x48e54f){const _0xe0599=RevisionHistoryUpdateRevisionsMessage['create']({'documentId':this['_documentId'],'requestId':_0x48e54f,'revisions':_0x331771}),_0x48930d=await this['_sendRequest'](RevisionHistoryUpdateRevisionsMessage['TYPE'],_0xe0599),{requestId:_0xeeeef6}=MessagesCompressor['decode'](_0x48930d,RevisionHistoryUpdateRevisionsResponse);return _0xeeeef6;}async['getRevision'](_0x58e470){const _0x5791db=new RevisionHistoryGetRevisionMessage(this['_documentId'],_0x58e470),_0x41fea2=await this['_sendRequest'](RevisionHistoryGetRevisionMessage['TYPE'],_0x5791db);return MessagesCompressor['decode'](_0x41fea2,RevisionHistoryGetRevisionResponse)['toObject']();}async['_connect'](_0xbaf0a2,_0x16eafa){if(_0xbaf0a2['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0xbaf0a2);this['_wsGateway']=_0xbaf0a2,this['stopListening'](_0xbaf0a2,'change:state');const _0x5e661e=await _0xbaf0a2['_sendRequest'](0xc,_0x16eafa['constructor']['TYPE'],MessagesCompressor['encode'](_0x16eafa)),{channel:_0x1e1ea7,requestId:_0x239add,revisions:_0x39c826}=MessagesCompressor['decode'](_0x5e661e,RevisionHistoryConnectResponse)['toObject']();return this['listenTo'](_0xbaf0a2,'change:state',(_0x123310,_0xc9bd33,_0x17e3cf)=>this['_onWsGatewayStateChange'](_0x17e3cf),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0xbaf0a2,_0x1e1ea7),this['_isConnected']=!0x0,this['fire']('connected'),{'revisions':_0x39c826,'requestId':_0x239add};}['_connectToChannel'](_0x15f380,_0x338b07){this['_channel']=_0x15f380['_getChannel'](RevisionHistoryService['_SERVICE'],_0x338b07),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](RevisionHistoryUpdateRevisionsMessage['TYPE']),(_0x276bd6,_0x2b32a5)=>{const {documentId:_0x2909df,requestId:_0x2ebc94,revisions:_0x2f18de}=MessagesCompressor['decode'](_0x2b32a5,RevisionHistoryUpdateRevisionsMessage)['toObject']();this['fire']('revisionsUpdated',{'documentId':_0x2909df,'requestId':_0x2ebc94,'revisionsData':_0x2f18de});});}['_onWsGatewayStateChange'](_0x138daf){_0x138daf===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x35718b,_0x4d2d27){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Revision\x20History',this);return this['_wsGateway']['_sendRequest'](0xc,_0x35718b,MessagesCompressor['encode'](_0x4d2d27));}}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(_0x14b672,_0x3109ef,_0x372948,_0x36d782={},_0x8975f3=null,_0x5d4227=null){super(),this['id']=_0x14b672,this['documentId']=_0x3109ef,this['type']=_0x372948,this['data']=_0x36d782,this['originalSuggestionId']=_0x8975f3,this['attributes']=_0x5d4227;}['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'](_0x35bf70){return new AddSuggestionMessage(_0x35bf70['id'],_0x35bf70['documentId'],_0x35bf70['type'],JSON['parse'](_0x35bf70['data']),_0x35bf70['originalSuggestionId']??null,_0x35bf70['attributes']?JSON['parse'](_0x35bf70['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(_0x5adf0e,_0x161607,_0x3c5d38,_0x359371,_0x4bdcd4,_0xbceea8,_0x2660c2={},_0x141151=null){super(),this['id']=_0x5adf0e,this['authorId']=_0x161607,this['type']=_0x3c5d38,this['hasComments']=_0x4bdcd4,this['state']=_0xbceea8,this['data']=_0x2660c2,this['attributes']=_0x141151,this['createdAt']=_0x359371?new Date(_0x359371):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'](_0x2a37f6){return new AddSuggestionResponse(_0x2a37f6['id'],_0x2a37f6['authorId'],_0x2a37f6['type'],_0x2a37f6['createdAt'],_0x2a37f6['hasComments'],_0x2a37f6['state'],JSON['parse'](_0x2a37f6['data']),_0x2a37f6['attributes']?JSON['parse'](_0x2a37f6['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(_0x167f99,_0x594ebe){super(),this['id']=_0x167f99,this['documentId']=_0x594ebe;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId']};}static['fromJSON'](_0x3d1ce9){return new GetSuggestionMessage(_0x3d1ce9['id'],_0x3d1ce9['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(_0x10d16a,_0x1a19a6,_0x466811,_0x54af92,_0x6f9ed9,_0x1b10fb,_0x247c0d={},_0x5ddfb4=null){super(),this['id']=_0x10d16a,this['authorId']=_0x1a19a6,this['type']=_0x466811,this['hasComments']=_0x6f9ed9,this['state']=_0x1b10fb,this['data']=_0x247c0d,this['attributes']=_0x5ddfb4,this['createdAt']=new Date(_0x54af92);}['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'](_0x3f1959){return new GetSuggestionResponse(_0x3f1959['id'],_0x3f1959['authorId'],_0x3f1959['type'],_0x3f1959['createdAt'],_0x3f1959['hasComments'],_0x3f1959['state'],JSON['parse'](_0x3f1959['data']),_0x3f1959['attributes']?JSON['parse'](_0x3f1959['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(_0x5f120e){super(),this['documentId']=_0x5f120e;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x1f0f1b){return new GetAllSuggestionsMessage(_0x1f0f1b['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'](_0x288d2f){return{..._0x288d2f,'data':_0x288d2f['data']?JSON['stringify'](_0x288d2f['data']):_0x288d2f['data'],'attributes':_0x288d2f['attributes']?JSON['stringify'](_0x288d2f['attributes']):_0x288d2f['attributes'],'createdAt':_0x288d2f['createdAt']?.['toISOString']()};}static['fromJSON'](_0x51c642){return{..._0x51c642,'data':_0x51c642['data']?JSON['parse'](_0x51c642['data']):_0x51c642['data'],'attributes':_0x51c642['attributes']?JSON['parse'](_0x51c642['attributes']):_0x51c642['attributes'],'createdAt':_0x51c642['createdAt']?new Date(_0x51c642['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(_0x2c20bc,_0x25bea4){super(),this['_suggestions']=_0x2c20bc,this['_suggestionsV2']=_0x25bea4,this['suggestions']=_0x25bea4?.['length']?_0x25bea4:_0x2c20bc;}['toJSON'](){return{'suggestions':this['_suggestions']?.['map'](_0x36a0b2=>JSON['stringify'](_0x36a0b2)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](_0x3f6d8a){return new GetAllSuggestionResponse(_0x3f6d8a['suggestions']?.['map'](_suggestionFromString),_0x3f6d8a['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}}function _suggestionFromString(_0x15e53f){const _0xca17b2=JSON['parse'](_0x15e53f);return _0xca17b2['createdAt']=_0xca17b2['createdAt']?new Date(_0xca17b2['createdAt']):void 0x0,_0xca17b2;}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(_0x5765fd,_0x44394f,_0x5d505d,_0x18acb0,_0x4f74a0,_0x834959=null){super(),this['id']=_0x5765fd,this['documentId']=_0x44394f,this['hasComments']=_0x5d505d,this['isHasCommentsModified']=_0x18acb0,this['state']=_0x4f74a0,this['attributes']=_0x834959;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'hasComments':this['hasComments'],'isHasCommentsModified':this['isHasCommentsModified'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x1cb13f){return new UpdateSuggestionMessage(_0x1cb13f['id'],_0x1cb13f['documentId'],_0x1cb13f['hasComments'],_0x1cb13f['isHasCommentsModified'],_0x1cb13f['state'],_0x1cb13f['attributes']?JSON['parse'](_0x1cb13f['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(_0x6a6f8e){super(),this['documentId']=_0x6a6f8e;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x1322e1){return new e(_0x1322e1['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(_0x4d1beb,_0x83ee16,_0x5d7cc7){super(),this['channel']=_0x4d1beb,this['_suggestions']=_0x83ee16,this['_suggestionsV2']=_0x5d7cc7,this['suggestions']=_0x5d7cc7?.['length']?_0x5d7cc7:_0x83ee16;}['toJSON'](){return{'channel':this['channel'],'suggestions':this['_suggestions']?.['map'](_0x6a3fe2=>JSON['stringify'](_0x6a3fe2)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](_0x48e485){return new e(_0x48e485['channel'],_0x48e485['suggestions']?.['map'](_0x4c2173=>JSON['parse'](_0x4c2173)),_0x48e485['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(_0x3faa03,_0x387181,_0x5b43a5){super(),this['ids']=_0x3faa03,this['documentId']=_0x387181,this['state']=_0x5b43a5;}['toJSON'](){return{'ids':this['ids'],'documentId':this['documentId'],'state':this['state']};}static['fromJSON'](_0x2b66de){return new BatchUpdateSuggestionsStateMessage(_0x2b66de['ids'],_0x2b66de['documentId'],_0x2b66de['state']);}}class TrackChangesService extends/* #__PURE__ -- @preserve */
EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xa;constructor(_0x30ad66){super(),this['_documentId']=_0x30ad66;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x3cf98b){if(this['_isConnected'])return;if(_0x3cf98b['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x3cf98b);const _0x39b036=new ConnectMessage$1(this['_documentId']);this['_wsGateway']=_0x3cf98b,this['stopListening'](_0x3cf98b,'change:state');const _0x43e4f1=await _0x3cf98b['_sendRequest'](0xa,ConnectMessage$1['TYPE'],MessagesCompressor['encode'](_0x39b036)),_0xe9ca29=MessagesCompressor['decode'](_0x43e4f1,ConnectResponse$1);return this['listenTo'](_0x3cf98b,'change:state',(_0x1f2be3,_0x3d4449,_0x31ff1b)=>this['_onWsGatewayStateChange'](_0x31ff1b),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x3cf98b,_0xe9ca29['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0xe9ca29['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'](_0x2c2977,_0x3f88f4,_0x14150e,_0x1ac45a=null,_0x209cf7){const _0x5c3501=new AddSuggestionMessage(_0x2c2977,this['_documentId'],_0x3f88f4,_0x14150e,_0x1ac45a,_0x209cf7),_0x2d8630=await this['_sendRequest'](AddSuggestionMessage['TYPE'],_0x5c3501);return MessagesCompressor['decode'](_0x2d8630,AddSuggestionResponse);}async['get'](_0xa37f55,_0x4c978c=0x1){const _0x923ba3=new GetSuggestionMessage(_0xa37f55,this['_documentId']);try{const _0x42cbf9=await this['_sendRequest'](GetSuggestionMessage['TYPE'],_0x923ba3);return MessagesCompressor['decode'](_0x42cbf9,GetSuggestionResponse);}catch(_0x4fb78d){if('CKEditorCloudServicesServerError'===_0x4fb78d['name']&&'404'===_0x4fb78d['code']&&_0x4c978c<0x5)return await(_0x16daac=0x64*_0x4c978c,new Promise(_0x234743=>{setTimeout(_0x234743,_0x16daac);})),this['get'](_0xa37f55,_0x4c978c+0x1);if('CKEditorCloudServicesServerError'===_0x4fb78d['name'])throw _0x4fb78d;throw CKEditorCloudServicesServerError['fromPublicError'](_0x4fb78d);}var _0x16daac;}async['getAll'](){const _0x30f97f=new GetAllSuggestionsMessage(this['_documentId']),_0x4253f5=await this['_sendRequest'](GetAllSuggestionsMessage['TYPE'],_0x30f97f),{suggestions:_0xec0190}=MessagesCompressor['decode'](_0x4253f5,GetAllSuggestionResponse);return _0xec0190;}async['update'](_0x46690b,_0x170eb6={}){const {hasComments:_0xad104d,state:_0x59f417,attributes:_0x1adddf}=_0x170eb6,_0x497a8f=void 0x0!==_0xad104d,_0x4ae44a=new UpdateSuggestionMessage(_0x46690b,this['_documentId'],_0xad104d,_0x497a8f,_0x59f417,_0x1adddf);await this['_sendRequest'](UpdateSuggestionMessage['TYPE'],_0x4ae44a);}async['batchUpdateState'](_0xdcf725){const _0x2edfc8=new BatchUpdateSuggestionsStateMessage(_0xdcf725['ids'],this['_documentId'],_0xdcf725['state']);await this['_sendRequest'](BatchUpdateSuggestionsStateMessage['TYPE'],_0x2edfc8);}['_connectToChannel'](_0x521c20,_0x35a85e){this['_channel']=_0x521c20['_getChannel'](TrackChangesService['_SERVICE'],_0x35a85e),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateSuggestionMessage['TYPE']),(_0x583274,_0x584471)=>{const _0x52062e=MessagesCompressor['decode'](_0x584471,UpdateSuggestionMessage);this['fire']('suggestionUpdated',_0x52062e);});}['_onWsGatewayStateChange'](_0x419d2c){_0x419d2c===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x4dc9db,_0x48ea6c){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Track\x20Changes',this);return this['_wsGateway']['_sendRequest'](0xa,_0x4dc9db,MessagesCompressor['encode'](_0x48ea6c));}}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(_0x278427,_0x1fda6c=[]){super(),this['channel']=_0x278427,this['sockets']=_0x1fda6c;}['toJSON'](){return{'channel':this['channel'],'sockets':this['sockets']['map'](_0x3c5893=>({'user':_0x3c5893['userId'],'session':_0x3c5893['id'],'role':_0x3c5893['role'],'permissions':_0x3c5893['permissions']}))};}static['fromJSON'](_0x52a9bd){return new SessionsConnectResponse(_0x52a9bd['channel'],_0x52a9bd['sockets']['map'](_0xcb9a85=>({'id':_0xcb9a85['session'],'userId':_0xcb9a85['user'],'role':_0xcb9a85['role'],'permissions':_0xcb9a85['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(_0x3f6e04,_0x59faea){super(),this['id']=_0x3f6e04,this['sessionType']=_0x59faea;}['toJSON'](){return{'id':this['id'],'sessionType':this['sessionType']};}static['fromJSON'](_0x5e25b9){return new SessionsConnectMessage(_0x5e25b9['id'],_0x5e25b9['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(_0x14ffa7,_0x4548b3,_0x4d9495,_0x2a5818){super(),this['id']=_0x14ffa7,this['userId']=_0x4548b3,this['role']=_0x4d9495,this['permissions']=_0x2a5818;}['toJSON'](){return{'id':this['id'],'userId':this['userId']??void 0x0,'role':this['role']??void 0x0,'permissions':this['permissions']??void 0x0};}static['fromJSON'](_0x2e889f){return new SocketConnectMessage(_0x2e889f['id'],_0x2e889f['userId'],_0x2e889f['role'],_0x2e889f['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(_0x335334){super(),this['id']=_0x335334;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](_0x31941e){return new SocketDisconnectMessage(_0x31941e['id']);}}class SessionCollection extends Collection{['_id'];['_sessionType'];['_handlers']=new Map();['_channel'];['_wsGateway'];['_connected'];['_eventsQueue']=[];['_isRunning']=!0x1;constructor(_0x66c4b3,_0x3166b7){super({'idProperty':'id'}),this['_id']=_0x66c4b3,this['_sessionType']=_0x3166b7;}async['connect'](_0x1baf65){this['_wsGateway']=_0x1baf65,this['stopListening'](_0x1baf65,'change:state');const _0x3bf1ee=new SessionsConnectMessage(this['_id'],this['_sessionType']);let _0x274c1c;try{const _0x4f4b39=await this['_wsGateway']['_sendRequest'](0x3,SessionsConnectMessage['TYPE'],MessagesCompressor['encode'](_0x3bf1ee));_0x274c1c=MessagesCompressor['decode'](_0x4f4b39,SessionsConnectResponse);}catch{_0x274c1c=new SessionsConnectResponse(this['_id'],[]);}this['_connectToChannel'](this['_wsGateway'],_0x274c1c['channel'],this['_sessionType']);const _0x1cda70=await async function(_0x32ad28,_0x5ef67a){const _0x5d32bd=_0x5ef67a['map'](_0x18e79b=>_0x18e79b['userId']),_0x3c4cb4=_0x5d32bd['length']?await User['getMany'](_0x32ad28,_0x5d32bd):[];return _0x5ef67a['map'](_0x1d61b8=>{const _0x166fe5={'id':_0x1d61b8['id'],'role':_0x1d61b8['role'],'permissions':_0x1d61b8['permissions']};return _0x166fe5['user']=_0x1d61b8['userId']&&_0x3c4cb4['find'](_0x5d4e18=>_0x5d4e18['id']===_0x1d61b8['userId'])||new User(),_0x166fe5;});}(this['_wsGateway'],_0x274c1c['sockets']);for(const _0xac6a32 of _0x1cda70)super['add'](_0xac6a32);this['_connected']=!0x0,this['fire']('connected'),this['listenTo'](this['_wsGateway'],'change:state',(_0x1da296,_0x35d23d,_0x5416cb)=>this['_onWsGatewayStateChange'](_0x5416cb),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),await this['_runQueue']();}['disconnect'](_0x485007=!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']&&_0x485007&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['fire']('disconnected'),_0x485007&&this['stopListening']();}}['add'](_0x1252f2,_0x429594){throw new TypeError('The\x20collection\x20is\x20read-only.');}['remove'](_0x46eabc){throw new TypeError('The\x20collection\x20is\x20read-only.');}['_connectToChannel'](_0x328b67,_0x4d8522,_0x326047){this['_channel']=_0x328b67['_getChannel'](_0x326047,_0x4d8522),this['_channel']&&(this['_addHandler'](this['_channel'],SocketConnectMessage['TYPE'],async _0x119a3b=>{const _0xf5b3e8=MessagesCompressor['decode'](_0x119a3b,SocketConnectMessage);if(-0x1===this['getIndex'](_0xf5b3e8['id'])){const _0x18125b={'id':_0xf5b3e8['id'],'role':_0xf5b3e8['role'],'permissions':_0xf5b3e8['permissions']};_0xf5b3e8['userId']&&(_0x18125b['user']=await User['get'](_0x328b67,_0xf5b3e8['userId'])),super['add'](_0x18125b);}}),this['_addHandler'](this['_channel'],SocketDisconnectMessage['TYPE'],_0x2d60ad=>{const _0x256e14=MessagesCompressor['decode'](_0x2d60ad,SocketDisconnectMessage);-0x1!==this['getIndex'](_0x256e14['id'])&&super['remove'](_0x256e14['id']);}));}async['_onWsGatewayStateChange'](_0x5e81df){_0x5e81df===WebSocketGateway$1['STATE_DISCONNECTED']&&this['disconnect'](!0x1),_0x5e81df===WebSocketGateway$1['STATE_CONNECTED']&&await this['connect'](this['_wsGateway']);}async['_runQueue'](){if(this['_isRunning']||!this['_connected'])return;let _0x444277;for(this['_isRunning']=!0x0;_0x444277=this['_eventsQueue']['shift']();){const _0x10d46c=this['_handlers']['get'](_0x444277['eventName']);_0x10d46c&&await _0x10d46c(_0x444277['data']);}this['_isRunning']=!0x1;}['_addHandler'](_0x40302f,_0x850ec1,_0x2c15f9){const _0xdfac03=_0x40302f['getEventName'](_0x850ec1,!0x0);this['listenTo'](_0x40302f,_0xdfac03,async(_0x1ca2af,_0xb8d5c9)=>{const _0x4b7c40=_0x1ca2af['name'];this['_eventsQueue']['push']({'eventName':_0x4b7c40,'data':_0xb8d5c9}),await this['_runQueue']();}),this['_handlers']['set'](_0xdfac03,_0x2c15f9);}}let Sessions$1=class{static async['getConnectedSessions'](_0xaa83ba,_0x1d5b77,_0x21ab51){const _0x311f02=new SessionCollection(_0x1d5b77,_0x21ab51);return await _0x311f02['connect'](_0xaa83ba),_0x311f02;}};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(_0x4c9885,_0x19427f,_0x1f13fd,_0xdd298a,_0x101c98=''){super(),this['id']=_0x4c9885,this['buffers']=_0x19427f,this['types']=_0x1f13fd,this['bundleVersion']=_0xdd298a,this['lastOperationId']=_0x101c98;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x276d08){return new CollaborativeEditingConnectMessage(_0x276d08['id'],_0x276d08['buffers'],_0x276d08['types'],_0x276d08['bundleVersion'],_0x276d08['lastOperationId']);}}class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0x31e6d1,_0xdda7d0){if(!_0x31e6d1?.['length']||!_0xdda7d0?.['length'])return[];const _0x290ebd=[];let _0x541d16=0x0;for(const _0x151172 of _0x31e6d1)if(0x0!==_0x151172){if(!_0xdda7d0[_0x541d16])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x290ebd['push'](_0xdda7d0[_0x541d16]),_0x541d16++;}else _0x290ebd['push'](_0x290ebd[_0x290ebd['length']-0x1]);return _0x290ebd;}static['removeUnnecessaryMetadata'](_0x4d3cfa,_0x6a316e){if(!_0x4d3cfa?.['length']||!_0x6a316e?.['length'])return[];const _0x9226c6=[];for(let _0x4b8a8b=0x0;_0x4b8a8b<_0x4d3cfa['length'];_0x4b8a8b++)if(0x0!==_0x4d3cfa[_0x4b8a8b]){if(!_0x6a316e[_0x4b8a8b])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x9226c6['push'](_0x6a316e[_0x4b8a8b]);}return _0x9226c6;}}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:_0xfdedb,..._0x185841}){const _0x23da2d={..._0x185841};return _0xfdedb?.['toISOString']&&(_0x23da2d['createdAt']=_0xfdedb['toISOString']()),_0x23da2d;}static['fromJSON']({createdAt:_0x50b4d8,..._0x4764b7}){const _0x57ea93={..._0x4764b7};return _0x50b4d8&&(_0x57ea93['createdAt']=new Date(_0x50b4d8)),_0x57ea93;}}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(_0x15349e,_0x478d27,_0x3fdc84,_0x1b8ae0,_0x34ae12=[],_0x295af0=''){super(),this['id']=_0x15349e,this['buffers']=_0x478d27,this['types']=_0x3fdc84,this['baseVersion']=_0x1b8ae0,this['metadata']=_0x34ae12,this['lastOperationId']=_0x295af0;}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'](_0x1b6eaf){return new CollaborativeEditingUpdateMessage(_0x1b6eaf['id'],_0x1b6eaf['buffers'],_0x1b6eaf['types'],_0x1b6eaf['baseVersion'],OperationMetadataHelpers['prepareMetadataForOperations'](_0x1b6eaf['types'],_0x1b6eaf['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),_0x1b6eaf['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(_0x34c884,_0x18cc82,_0x3551c4){super(),this['id']=_0x34c884,this['lastKnowVersion']=_0x18cc82,this['bundleVersion']=_0x3551c4;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x41f20d){return new CollaborativeEditingReconnectMessage(_0x41f20d['id'],_0x41f20d['lastKnowVersion'],_0x41f20d['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(_0xf0d5c6,_0x557ef1=[],_0x53f7e7=[],_0x3fa63b=[],_0x7befb6='',_0x373772=null){super(),this['version']=_0xf0d5c6,this['buffers']=_0x557ef1,this['types']=_0x53f7e7,this['metadata']=_0x3fa63b,this['lastOperationId']=_0x7befb6,this['lastOperationAcceptedAt']=_0x373772;}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'](_0x4805a5){return new CollaborativeEditingResponse(_0x4805a5['version'],_0x4805a5['buffers'],_0x4805a5['types'],OperationMetadataHelpers['prepareMetadataForOperations'](_0x4805a5['types'],_0x4805a5['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),_0x4805a5['lastOperationId'],_0x4805a5['lastOperationAcceptedAt']?new Date(_0x4805a5['lastOperationAcceptedAt']):null);}static['create'](_0x101381){return new CollaborativeEditingResponse(_0x101381['version'],_0x101381['buffers'],_0x101381['types'],_0x101381['metadata'],_0x101381['lastOperationId'],_0x101381['lastOperationAcceptedAt']?new Date(_0x101381['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(_0x5bf081,_0x59caec,_0x319b75=[],_0x5cb756=[],_0x3580ff=0x0,_0x5b89e3=[],_0x440ce5=null,_0x4cf28b='',_0x56a709='',_0x545258=null){super(),this['channel']=_0x5bf081,this['version']=_0x59caec,this['buffers']=_0x319b75,this['types']=_0x5cb756,this['offset']=_0x3580ff,this['metadata']=_0x5b89e3,this['initData']=_0x440ce5,this['sessionId']=_0x4cf28b,this['lastOperationId']=_0x56a709,this['sessionCreatedAt']=_0x545258;}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'](_0x53eabb){return new CollaborativeEditingConnectResponse(_0x53eabb['channel'],_0x53eabb['version'],_0x53eabb['buffers'],_0x53eabb['types'],_0x53eabb['offset'],_0x53eabb['metadata'],_0x53eabb['initData'],_0x53eabb['sessionId'],_0x53eabb['lastOperationId'],_0x53eabb['sessionCreatedAt']);}static['fromJSON'](_0x2d01c7){let _0x234132=null;return!0x0===_0x2d01c7['isInitialized']?_0x234132=_0x2d01c7['initData']??'':'boolean'!=typeof _0x2d01c7['isInitialized']&&_0x2d01c7['initData']&&(_0x234132=_0x2d01c7['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x2d01c7['channel'],'version':_0x2d01c7['version'],'buffers':_0x2d01c7['buffers'],'types':_0x2d01c7['types'],'offset':_0x2d01c7['offset'],'metadata':OperationMetadataHelpers['prepareMetadataForOperations'](_0x2d01c7['types'],_0x2d01c7['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),'initData':_0x234132,'sessionId':_0x2d01c7['sessionId'],'lastOperationId':_0x2d01c7['lastOperationId'],'sessionCreatedAt':_0x2d01c7['sessionCreatedAt']?new Date(_0x2d01c7['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(_0x4020de,_0x305e1d){super(),this['lastDocumentSession']=_0x4020de,this['currentDocumentSession']=_0x305e1d;}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'](_0x3eff77){const _0x422d49=_0x3eff77['lastDocumentSessionId']?{'id':_0x3eff77['lastDocumentSessionId'],'lastOperationId':_0x3eff77['lastDocumentSessionOperationId']}:void 0x0,_0x4c9480=_0x3eff77['currentDocumentSessionId']?{'lastOperationId':_0x3eff77['currentDocumentSessionOperationId'],'version':_0x3eff77['currentDocumentSessionVersion'],'id':_0x3eff77['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x422d49,_0x4c9480);}}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(_0x5f5bd7){super(),this['documentId']=_0x5f5bd7;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x1bcc56){return new GetDocumentDetailsMessage(_0x1bcc56['documentId']);}}class CollaborativeEditingService extends/* #__PURE__ -- @preserve */
EmitterMixin(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x96a883,_0x1e8ddb){if(super(),!_0x96a883)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x1e8ddb??v4(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x96a883;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x59edf1,_0x3b9011={'buffers':[],'types':[]},_0x3843a4){const _0x682a3c=new CollaborativeEditingConnectMessage(this['getId'](),_0x3b9011['buffers'],_0x3b9011['types'],this['_bundleVersion'],_0x3843a4);return this['_connect'](_0x59edf1,_0x682a3c);}['reconnect'](_0x20ba01,_0x3ea371){if(this['isConnected']())throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x20ba01);return this['_connect'](_0x20ba01,new CollaborativeEditingReconnectMessage(this['getId'](),_0x3ea371,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 _0x3f4f66=new GetDocumentDetailsMessage(this['getId']());if(!this['_wsGateway'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x4afc3e=await this['_wsGateway']['_sendRequest'](0x1,GetDocumentDetailsMessage['TYPE'],MessagesCompressor['encode'](_0x3f4f66));return MessagesCompressor['decode'](_0x4afc3e,GetDocumentDetailsResponse);}async['sendOperations'](_0x428ab6,_0x26cb2e,_0x54cb1d){if(!_0x428ab6?.['types']?.['length'])throw new CKEditorCloudServicesError('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x10c27f='number'==typeof _0x26cb2e?_0x26cb2e:parseInt(_0x26cb2e);if(!Number['isInteger'](_0x10c27f)||_0x10c27f<0x0)throw new CKEditorCloudServicesError('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x5c1530=new CollaborativeEditingUpdateMessage(this['getId'](),_0x428ab6['buffers'],_0x428ab6['types'],_0x10c27f,[],_0x54cb1d);if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x538b69=await this['_wsGateway']['_sendRequest'](0x1,CollaborativeEditingUpdateMessage['TYPE'],MessagesCompressor['encode'](_0x5c1530));return MessagesCompressor['decode'](_0x538b69,CollaborativeEditingResponse);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);return this['_connectedSessions']??=await Sessions$1['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1),this['_connectedSessions'];}static['getConnectedSessions'](_0x5e04a1,_0x58fa8e){return Sessions$1['getConnectedSessions'](_0x5e04a1,_0x58fa8e,0x1);}async['_connect'](_0x53b43c,_0x3cb74b){if(this['isConnected']())return;if(_0x53b43c['state']!==WebSocketGateway$1['STATE_CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x53b43c);this['_wsGateway']=_0x53b43c,this['stopListening'](_0x53b43c,'change:state');const _0x30a0b1=await _0x53b43c['_sendRequest'](0x1,_0x3cb74b['constructor']['TYPE'],MessagesCompressor['encode'](_0x3cb74b)),_0xa391f9=MessagesCompressor['decode'](_0x30a0b1,CollaborativeEditingConnectResponse);return this['listenTo'](_0x53b43c,'change:state',(_0x4b1720,_0x47c214,_0xeebfa9)=>this['_onWsGatewayStateChange'](_0xeebfa9),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x53b43c,_0xa391f9['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0xa391f9;}['_connectToChannel'](_0x5b5376,_0x434ed1){this['_channel']=_0x5b5376['_getChannel'](0x1,_0x434ed1),this['listenTo'](this['_channel'],this['_channel']['getEventName'](CollaborativeEditingUpdateMessage['TYPE']),(_0x37bdaf,_0x4ec7c9)=>{const _0x584676=MessagesCompressor['decode'](_0x4ec7c9,CollaborativeEditingUpdateMessage);this['fire']('operationsReceived',_0x584676['baseVersion'],_0x584676['data'],_0x584676['metadata']);});}['_onWsGatewayStateChange'](_0x2a6bd7){_0x2a6bd7===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'](_0xe54098){return{..._0xe54098,'createdAt':_0xe54098['createdAt']?.['toISOString'](),'attributes':_0xe54098['attributes']?JSON['stringify'](_0xe54098['attributes']):null};}static['fromJSON'](_0x114b77){return{..._0x114b77,'createdAt':new Date(_0x114b77['createdAt']),'attributes':_0x114b77['attributes']?JSON['parse'](_0x114b77['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'](_0x37e75c){return{..._0x37e75c,'createdAt':_0x37e75c['createdAt']?.['toISOString'](),'deletedAt':_0x37e75c['deletedAt']?.['toISOString'](),'resolvedAt':_0x37e75c['resolvedAt']?.['toISOString'](),'attributes':_0x37e75c['attributes']?JSON['stringify'](_0x37e75c['attributes']):null,'context':_0x37e75c['context']?JSON['stringify'](_0x37e75c['context']):_0x37e75c['context'],'comments':_0x37e75c['comments']?.['map'](CommentDescriptor['toJSON']),'unlinkedAt':_0x37e75c['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x1775f2){return{..._0x1775f2,'createdAt':_0x1775f2['createdAt']?new Date(_0x1775f2['createdAt']):void 0x0,'deletedAt':_0x1775f2['deletedAt']?new Date(_0x1775f2['deletedAt']):void 0x0,'resolvedAt':_0x1775f2['resolvedAt']?new Date(_0x1775f2['resolvedAt']):void 0x0,'attributes':_0x1775f2['attributes']?JSON['parse'](_0x1775f2['attributes']):null,'context':_0x1775f2['context']?JSON['parse'](_0x1775f2['context']):void 0x0,'comments':_0x1775f2['comments']?.['map'](CommentDescriptor['fromJSON']),'unlinkedAt':_0x1775f2['unlinkedAt']?new Date(_0x1775f2['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(_0x5f21ea,_0x3ff550,_0xbe2c4,_0xe401af='',_0x322b44,_0x21abf8='',_0x229b88=null,_0x56ee10){super(),this['documentId']=_0x5f21ea,this['commentThreadId']=_0x3ff550,this['content']=_0xbe2c4,this['commentId']=_0xe401af,this['userId']=_0x21abf8,this['attributes']=_0x229b88,this['commentThread']=_0x56ee10,this['createdAt']=_0x322b44?new Date(_0x322b44):'';}['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'](_0x1e1710){return new AddCommentMessage(_0x1e1710['documentId'],_0x1e1710['commentThreadId'],_0x1e1710['content'],_0x1e1710['commentId']?_0x1e1710['commentId']:void 0x0,_0x1e1710['createdAt']?new Date(_0x1e1710['createdAt']):void 0x0,_0x1e1710['userId']?_0x1e1710['userId']:void 0x0,_0x1e1710['attributes']?JSON['parse'](_0x1e1710['attributes']):{},_0x1e1710['commentThread']?CommentsThreadDescriptor['fromJSON'](_0x1e1710['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(_0xc7fd09,_0x4a2a34,_0xfe9733){super(),this['commentThreadId']=_0xc7fd09,this['commentId']=_0x4a2a34,this['createdAt']=new Date(_0xfe9733);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x3080d8){return new AddCommentResponse(_0x3080d8['commentThreadId'],_0x3080d8['commentId'],_0x3080d8['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(_0x35c3e3){super(),this['documentId']=_0x35c3e3;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x1f0213){return new ConnectMessage(_0x1f0213['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(_0x4776b0,_0x38680b,_0x21c2a7){super(),this['channel']=_0x4776b0,this['_threads']=_0x38680b,this['_threadsV2']=_0x21c2a7,this['threads']=_0x21c2a7?.['length']?_0x21c2a7:_0x38680b;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x394a00=>JSON['stringify'](_0x394a00)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](_0x1ebcf5){return new ConnectResponse(_0x1ebcf5['channel'],_0x1ebcf5['threads']?.['map'](_0x671835=>JSON['parse'](_0x671835)),_0x1ebcf5['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(_0x681d16,_0x4ffc71,_0xbf3486){super(),this['documentId']=_0x681d16,this['commentThreadId']=_0x4ffc71,this['commentId']=_0xbf3486;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x5d3f21){return new RemoveCommentMessage(_0x5d3f21['documentId'],_0x5d3f21['commentThreadId'],_0x5d3f21['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(_0x40c23b,_0x3c079d){super(),this['documentId']=_0x40c23b,this['commentThreadId']=_0x3c079d;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x3f3167){return new RemoveCommentThreadMessage(_0x3f3167['documentId'],_0x3f3167['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(_0x38c01c,_0x34d3b5,_0xc4ac3a,_0x597852,_0x3808d0=null,_0x2c1960=!0x1,_0x252491){super(),this['documentId']=_0x38c01c,this['commentThreadId']=_0x34d3b5,this['commentId']=_0xc4ac3a,this['content']=_0x597852,this['attributes']=_0x3808d0,this['isAttributesUpdated']=_0x2c1960,this['commentThread']=_0x252491;}['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'](_0x4b5f73){return new UpdateCommentMessage(_0x4b5f73['documentId'],_0x4b5f73['commentThreadId'],_0x4b5f73['commentId'],_0x4b5f73['content'],_0x4b5f73['attributes']?JSON['parse'](_0x4b5f73['attributes']):null,_0x4b5f73['isAttributesUpdated'],_0x4b5f73['commentThread']?CommentsThreadDescriptor['fromJSON'](_0x4b5f73['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(_0x378eb6,_0x5d4e14){super(),this['commentThreadId']=_0x378eb6,this['documentId']=_0x5d4e14;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x263335){return new GetCommentThreadMessage(_0x263335['commentThreadId'],_0x263335['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(_0x10b97f,_0x117f32,_0x5965c4,_0x2695f6,_0x404082,_0x5bf9a6,_0x140785,_0x17aa79,_0x1d7991,_0x3fb969){super(),this['commentThreadId']=_0x10b97f,this['_comments']=_0x117f32,this['_commentsV2']=_0x5965c4,this['resolvedBy']=_0x404082,this['comments']=_0x5965c4?.['length']?_0x5965c4:_0x117f32,this['createdAt']=_0x140785?new Date(_0x140785):void 0x0,this['deletedAt']='string'==typeof _0x17aa79?new Date(_0x17aa79):_0x17aa79,this['resolvedAt']='string'==typeof _0x1d7991?new Date(_0x1d7991):_0x1d7991,this['unlinkedAt']='string'==typeof _0x3fb969?new Date(_0x3fb969):_0x3fb969,this['attributes']='string'==typeof _0x2695f6?JSON['parse'](_0x2695f6):_0x2695f6,this['context']='string'==typeof _0x5bf9a6?JSON['parse'](_0x5bf9a6):_0x5bf9a6;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'comments':this['_comments']?.['map'](_0x3c1961=>JSON['stringify'](_0x3c1961)),'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'](_0x41c9f3){return new GetCommentThreadResponse(_0x41c9f3['commentThreadId'],_0x41c9f3['comments']?.['map'](_0x3be616=>function(_0x52fda2){const _0x22c486=JSON['parse'](_0x52fda2);return{..._0x22c486,'createdAt':new Date(_0x22c486['createdAt'])};}(_0x3be616)),_0x41c9f3['commentsV2']?.['map'](CommentDescriptor['fromJSON']),_0x41c9f3['attributes']?JSON['parse'](_0x41c9f3['attributes']):_0x41c9f3['attributes'],_0x41c9f3['resolvedBy'],_0x41c9f3['context']?JSON['parse'](_0x41c9f3['context']):_0x41c9f3['context'],_0x41c9f3['createdAt'],_0x41c9f3['deletedAt'],_0x41c9f3['resolvedAt'],_0x41c9f3['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(_0x276e41){super(),this['documentId']=_0x276e41;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0xaf6719){return new GetDocumentThreadsMessage(_0xaf6719['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(_0x1e12ff,_0x2d0220){super(),this['_threads']=_0x1e12ff,this['_threadsV2']=_0x2d0220,this['threads']=_0x2d0220?.['length']?_0x2d0220:_0x1e12ff;}['toJSON'](){return{'threads':this['_threads']?.['map'](_0x57e7ca=>JSON['stringify'](_0x57e7ca)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](_0x48a7c3){return new GetDocumentThreadsResponse(_0x48a7c3['threads']?.['map'](_0x3e749c=>function(_0xe03936){const _0x54f8af=JSON['parse'](_0xe03936),_0x32e585={..._0x54f8af};return _0x54f8af['comments']&&(_0x32e585['comments']=_0x54f8af['comments']?.['map'](_0x54867a=>({..._0x54867a,'createdAt':new Date(_0x54867a['createdAt'])}))),_0x32e585;}(_0x3e749c)),_0x48a7c3['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'](_0x2893d4){return{'commentId':_0x2893d4['commentId'],'createdAt':_0x2893d4['createdAt']?.['toISOString']()};}static['fromJSON'](_0x2f70cd){return{'commentId':_0x2f70cd['commentId'],'createdAt':new Date(_0x2f70cd['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(_0x1b39d7,_0x34c4d3,_0x1832c2=[]){super(),this['commentThreadId']=_0x1b39d7,this['comments']=_0x1832c2,this['createdAt']=new Date(_0x34c4d3);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x4e8d17=>CommentThreadAddedCommentDescriptor['toJSON'](_0x4e8d17))};}static['fromJSON'](_0x29cc05){return new AddCommentThreadResponse(_0x29cc05['commentThreadId'],_0x29cc05['createdAt'],_0x29cc05['comments']['map'](_0x2f76da=>CommentThreadAddedCommentDescriptor['fromJSON'](_0x2f76da)));}}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(_0x3656a7,_0x2d0285,_0x2efc90=[],_0x849710,_0x527486=null,_0x1a8ed4=null,_0x4b1073=null,_0x38223a=null,_0x41c2c6=null){super(),this['documentId']=_0x3656a7,this['commentThreadId']=_0x2d0285,this['comments']=_0x2efc90,this['context']=_0x849710,this['resolvedBy']=_0x527486,this['attributes']=_0x41c2c6,this['createdAt']=_0x1a8ed4?new Date(_0x1a8ed4):'',this['resolvedAt']=_0x4b1073?new Date(_0x4b1073):'',this['deletedAt']=_0x38223a?new Date(_0x38223a):'';}['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'](_0x760704=>CommentDescriptor['toJSON'](_0x760704))};}static['fromJSON'](_0x5252a8){return new AddCommentThreadMessage(_0x5252a8['documentId'],_0x5252a8['commentThreadId'],_0x5252a8['comments']?.['map'](_0x4f7bec=>CommentDescriptor['fromJSON']({..._0x4f7bec,'documentId':_0x5252a8['documentId'],'commentThreadId':_0x5252a8['commentThreadId']})),_0x5252a8['context']?JSON['parse'](_0x5252a8['context']):_0x5252a8['context'],_0x5252a8['resolvedBy'],_0x5252a8['createdAt']?new Date(_0x5252a8['createdAt']):void 0x0,_0x5252a8['resolvedAt']?new Date(_0x5252a8['resolvedAt']):void 0x0,_0x5252a8['deletedAt']?new Date(_0x5252a8['deletedAt']):void 0x0,_0x5252a8['attributes']?JSON['parse'](_0x5252a8['attributes']):_0x5252a8['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(_0x4f1e2e,_0x784ac,_0x4423c0,_0x53dd52){super(),this['commentThreadId']=_0x4f1e2e,this['documentId']=_0x784ac,this['resolvedBy']=_0x4423c0,this['resolvedAt']=_0x53dd52?new Date(_0x53dd52):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x2a18b7){return new ResolveCommentThreadMessage(_0x2a18b7['commentThreadId'],_0x2a18b7['documentId'],_0x2a18b7['resolvedBy'],_0x2a18b7['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(_0xeff2fb,_0x24915a){super(),this['commentThreadId']=_0xeff2fb,this['documentId']=_0x24915a;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0xeb58ca){return new ReopenCommentThreadMessage(_0xeb58ca['commentThreadId'],_0xeb58ca['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(_0x1506c8,_0xbeba61,_0x101ff8,_0x49873c=null,_0x21618d=null){super(),this['commentThreadId']=_0x1506c8,this['documentId']=_0xbeba61,this['context']=_0x101ff8,this['attributes']=_0x49873c,this['unlinkedAt']=_0x21618d?new Date(_0x21618d):'';}['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'](_0x3cba26){return new UpdateCommentThreadMessage(_0x3cba26['commentThreadId'],_0x3cba26['documentId'],_0x3cba26['context']?JSON['parse'](_0x3cba26['context']):_0x3cba26['context'],_0x3cba26['attributes']?JSON['parse'](_0x3cba26['attributes']):null,_0x3cba26['unlinkedAt']?new Date(_0x3cba26['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(_0x40d4d9,_0x15dec4,_0x1245d7,_0x12a9cd){super(),this['commentThreadId']=_0x40d4d9,this['documentId']=_0x15dec4,this['resolvedBy']=_0x1245d7,this['resolvedAt']=new Date(_0x12a9cd);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x1d208e){return new ResolveCommentThreadResponse(_0x1d208e['commentThreadId'],_0x1d208e['documentId'],_0x1d208e['resolvedBy'],_0x1d208e['resolvedAt']);}}class CommentsService extends/* #__PURE__ -- @preserve */
EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_0xd7c585){super(),this['_documentId']=_0xd7c585;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x272f17){if(this['_isConnected'])return;if(_0x272f17['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x272f17);const _0x12ebb0=new ConnectMessage(this['_documentId']);this['_wsGateway']=_0x272f17,this['stopListening'](_0x272f17,'change:state');const _0xe1dc1f=await _0x272f17['_sendRequest'](0x9,ConnectMessage['TYPE'],MessagesCompressor['encode'](_0x12ebb0)),{channel:_0x153513,threads:_0x207d41}=MessagesCompressor['decode'](_0xe1dc1f,ConnectResponse);return this['listenTo'](_0x272f17,'change:state',(_0x4e360d,_0x23305f,_0x20b11a)=>this['_onWsGatewayStateChange'](_0x20b11a),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x272f17,_0x153513),this['_isConnected']=!0x0,this['fire']('connected'),_0x207d41;}['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'](_0x1015ca,_0x5767fe,_0x666e56,_0x278b7f){const _0x4ab892=new AddCommentMessage(this['_documentId'],_0x1015ca,_0x666e56,_0x5767fe,void 0x0,void 0x0,_0x278b7f),_0x592c58=await this['_sendRequest'](AddCommentMessage['TYPE'],_0x4ab892);return MessagesCompressor['decode'](_0x592c58,AddCommentResponse);}async['updateComment'](_0x4ffc81,_0x2ba3f2,_0x2dbe3b,_0x2edcd6){const _0x444315=void 0x0!==_0x2edcd6,_0x1a6654=new UpdateCommentMessage(this['_documentId'],_0x4ffc81,_0x2ba3f2,_0x2dbe3b,_0x2edcd6,_0x444315);await this['_sendRequest'](UpdateCommentMessage['TYPE'],_0x1a6654);}async['removeComment'](_0x3513b1,_0x4193de){const _0x24d04f=new RemoveCommentMessage(this['_documentId'],_0x3513b1,_0x4193de);await this['_sendRequest'](RemoveCommentMessage['TYPE'],_0x24d04f);}async['removeCommentThread'](_0x2c470b){const _0x51a07c=new RemoveCommentThreadMessage(this['_documentId'],_0x2c470b);await this['_sendRequest'](RemoveCommentThreadMessage['TYPE'],_0x51a07c);}async['addCommentThread'](_0x293407){const _0x219443=new AddCommentThreadMessage(this['_documentId'],_0x293407['commentThreadId'],_0x293407['comments']?.['map'](_0x5775cf=>({..._0x5775cf,'documentId':this['_documentId'],'commentThreadId':_0x293407['commentThreadId']})),_0x293407['context'],_0x293407['resolvedBy'],_0x293407['createdAt'],_0x293407['resolvedAt'],_0x293407['deletedAt'],_0x293407['attributes']),_0x2fb025=await this['_sendRequest'](AddCommentThreadMessage['TYPE'],_0x219443);return MessagesCompressor['decode'](_0x2fb025,AddCommentThreadResponse);}async['resolveCommentThread'](_0x2a902f){const _0x52d9ff=new ResolveCommentThreadMessage(_0x2a902f,this['_documentId']),_0x2b3b99=await this['_sendRequest'](ResolveCommentThreadMessage['TYPE'],_0x52d9ff);return MessagesCompressor['decode'](_0x2b3b99,ResolveCommentThreadResponse);}async['reopenCommentThread'](_0xd76147){const _0x3c83fa=new ReopenCommentThreadMessage(_0xd76147,this['_documentId']);await this['_sendRequest'](ReopenCommentThreadMessage['TYPE'],_0x3c83fa);}async['updateCommentThread'](_0x42829f){const _0x11e835=new UpdateCommentThreadMessage(_0x42829f['commentThreadId'],this['_documentId'],_0x42829f['context'],_0x42829f['attributes'],_0x42829f['unlinkedAt']);await this['_sendRequest'](UpdateCommentThreadMessage['TYPE'],_0x11e835);}async['getCommentThread'](_0x172a3d,_0x4d3fb0=0x1){const _0x104623=new GetCommentThreadMessage(_0x172a3d,this['_documentId']);try{const _0x43d8ad=await this['_sendRequest'](GetCommentThreadMessage['TYPE'],_0x104623),_0x519806=MessagesCompressor['decode'](_0x43d8ad,GetCommentThreadResponse);return{'commentThreadId':_0x519806['commentThreadId'],'comments':_0x519806['comments'],'attributes':_0x519806['attributes'],'context':_0x519806['context'],'resolvedAt':_0x519806['resolvedAt'],'resolvedBy':_0x519806['resolvedBy'],'deletedAt':_0x519806['deletedAt'],'unlinkedAt':_0x519806['unlinkedAt']};}catch(_0xe1c134){if('CKEditorCloudServicesServerError'===_0xe1c134['name']&&'404'===_0xe1c134['code']&&_0x4d3fb0<0x5)return await(_0x20844c=0x64*_0x4d3fb0,new Promise(_0x90e4d6=>{setTimeout(_0x90e4d6,_0x20844c);})),this['getCommentThread'](_0x172a3d,_0x4d3fb0+0x1);if('CKEditorCloudServicesServerError'===_0xe1c134['name'])throw _0xe1c134;throw CKEditorCloudServicesServerError['fromPublicError'](_0xe1c134);}var _0x20844c;}async['getDocumentThreads'](){const _0x36be1a=new GetDocumentThreadsMessage(this['_documentId']),_0x432fee=await this['_sendRequest'](GetDocumentThreadsMessage['TYPE'],_0x36be1a),{threads:_0x4f5e34}=MessagesCompressor['decode'](_0x432fee,GetDocumentThreadsResponse);return{'threads':_0x4f5e34};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_connectedSessions']??=await Sessions$1['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9),this['_connectedSessions'];}['_connectToChannel'](_0x2de55b,_0xeee7ef){this['_channel']=_0x2de55b['_getChannel'](CommentsService['_SERVICE'],_0xeee7ef),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentMessage['TYPE']),(_0x51feb2,_0x5a209d)=>{const _0x33609d=MessagesCompressor['decode'](_0x5a209d,AddCommentMessage);this['fire']('commentAdded',_0x33609d);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentMessage['TYPE']),(_0x10fa83,_0x4cce10)=>{const _0x156d50=MessagesCompressor['decode'](_0x4cce10,RemoveCommentMessage);this['fire']('commentRemoved',_0x156d50);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentMessage['TYPE']),(_0x58f026,_0x4f7aea)=>{const _0xcd5886=MessagesCompressor['decode'](_0x4f7aea,UpdateCommentMessage);this['fire']('commentUpdated',_0xcd5886);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentThreadMessage['TYPE']),(_0x27d1d8,_0xa830d3)=>{const _0x4b3749=MessagesCompressor['decode'](_0xa830d3,RemoveCommentThreadMessage);this['fire']('commentThreadRemoved',_0x4b3749);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentThreadMessage['TYPE']),(_0x337691,_0x53621e)=>{const _0xb0e0b4=MessagesCompressor['decode'](_0x53621e,AddCommentThreadMessage);this['fire']('commentThreadAdded',_0xb0e0b4);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentThreadMessage['TYPE']),(_0x33bf24,_0x138eee)=>{const _0x1cff57=MessagesCompressor['decode'](_0x138eee,UpdateCommentThreadMessage);this['fire']('commentThreadUpdated',_0x1cff57);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ResolveCommentThreadMessage['TYPE']),(_0x57ffbb,_0x3b2520)=>{const _0x59b7c2=MessagesCompressor['decode'](_0x3b2520,ResolveCommentThreadMessage);this['fire']('commentThreadResolved',_0x59b7c2);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ReopenCommentThreadMessage['TYPE']),(_0xa6e84f,_0x5ceb35)=>{const _0x57438d=MessagesCompressor['decode'](_0x5ceb35,ReopenCommentThreadMessage);this['fire']('commentThreadReopened',_0x57438d);}));}['_onWsGatewayStateChange'](_0x82b513){_0x82b513===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x182c11,_0x5ce06f){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x182c11,MessagesCompressor['encode'](_0x5ce06f));}}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(_0x3cbc89){super(_0x3cbc89),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 _0x20b150=this['context'],_0x5d2ab3=_0x20b150['plugins']['get'](CloudServices),_0x44e12b=_0x20b150['plugins']['get'](Notification);if(!_0x5d2ab3['token'])throw new CKEditorError('websocketgateway-missing-token',this);if(!_0x5d2ab3['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'](_0x5d2ab3['token'],_0x5d2ab3['webSocketUrl'],{'timeout':0x3e8*this['context']['config']['get']('cloudServices.connectionTimeout'),'requestTimeout':0x3e8*this['context']['config']['get']('cloudServices.requestTimeout')})['then'](_0x4ad34e=>{if(this['connection']=_0x4ad34e,this['bind']('state')['to'](_0x4ad34e,'state',this,'_isBrowserOffline',(_0x2af086,_0x32272b)=>('connected'!==_0x2af086&&(this['_shouldPluginsReconnect']=!0x0),_0x32272b||_0x2af086!==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',(_0x265a8f,_0x1972db)=>{if('limitExceeded'!==_0x1972db['code'])throw console['error'](_0x1972db),new CKEditorError('cloudservices-init',null,{'originalError':_0x1972db});_0x44e12b['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'});}),!_0x4ad34e['me'])return new Promise(_0x2eb8f4=>_0x4ad34e['on']('change:me',_0x2eb8f4));})['catch'](_0x41cfe3=>{throw console['error'](_0x41cfe3),new CKEditorError('cloudservices-init',null,{'originalError':_0x41cfe3});});}['addToReconnectionStack'](_0x4bd8ce){if('function'!=typeof _0x4bd8ce['reconnect'])throw new CKEditorError('websocketgateway-invalid-plugin-interface',this);if(this['isInReconnectionStack'](_0x4bd8ce))throw new CKEditorError('websocketgateway-plugin-already-registered',this,{'name':_0x4bd8ce['constructor']['pluginName']});this['_reconnectionStack']['add'](_0x4bd8ce);}['removeFromReconnectionStack'](_0x28632a){this['_reconnectionStack']['delete'](_0x28632a);}['isInReconnectionStack'](_0x4bf692){return this['_reconnectionStack']['has'](_0x4bf692);}['_reconnect'](){return this['connection']['reconnect']()['then'](()=>Promise['all'](Array['from'](this['_reconnectionStack'],_0xa40843=>_0xa40843['reconnect']())))['then'](()=>this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'])['catch'](_0x172282=>{throw console['error'](_0x172282),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(_0x2c1e3c){super(_0x2c1e3c),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 _0x1c72f4=this['context']['plugins']['get'](WebSocketGateway);this['listenTo'](_0x1c72f4,'change:state',(_0x2dc92d,_0x2ceb93,_0x3bacc1)=>{if('connected'!==_0x3bacc1)this['channelSessions']['forEach'](_0xaa46d=>_0xaa46d['clear']()),this['channelConnectedUsers']['forEach'](_0x177734=>_0x177734['clear']()),this['allConnectedUsers']['clear']();else{for(const [_0xbfc823,_0xbabd02]of this['_registeredSessions'])for(const _0x2a8872 of _0xbabd02)this['_handleSessionAdd'](_0xbfc823,_0x2a8872);}}),this['_createUser'](_0x1c72f4['connection']['me'],!0x0);}['register'](_0x27720e,_0x31b56f){if(this['_registeredSessions']['has'](_0x27720e))throw new CKEditorError('sessions-register-already-registered',null,{'channelId':_0x27720e});this['_registeredSessions']['set'](_0x27720e,_0x31b56f),this['channelSessions']['set'](_0x27720e,new Collection()),this['channelConnectedUsers']['set'](_0x27720e,new Collection()),this['listenTo'](_0x31b56f,'add',(_0x1b3965,_0x835b6c)=>this['_handleSessionAdd'](_0x27720e,_0x835b6c)),this['listenTo'](_0x31b56f,'remove',(_0x48c5df,_0x15ffa3)=>this['_handleSessionRemove'](_0x27720e,_0x15ffa3));for(const _0xc4a8d3 of _0x31b56f)this['_handleSessionAdd'](_0x27720e,_0xc4a8d3);}['unregister'](_0xd97cad){if(!this['_registeredSessions']['has'](_0xd97cad))throw new CKEditorError('sessions-unregister-not-exist',null,{'channelId':_0xd97cad});const _0x14b364=this['_registeredSessions']['get'](_0xd97cad);this['stopListening'](_0x14b364);for(const _0xa9f91b of _0x14b364)'connected'===this['context']['plugins']['get'](WebSocketGateway)['state']&&this['_handleSessionRemove'](_0xd97cad,_0xa9f91b);this['_registeredSessions']['delete'](_0xd97cad),this['channelSessions']['delete'](_0xd97cad),this['channelConnectedUsers']['delete'](_0xd97cad);}get['mySessionId'](){return this['context']['plugins']['get'](WebSocketGateway)['connection']['sessionId'];}['getUserBySessionId'](_0x4758bc){for(const _0x2c539a of this['channelSessions']['values']())for(const _0x2248e1 of _0x2c539a)if(_0x2248e1['id']===_0x4758bc)return _0x2248e1['user'];}['getUserSessions'](_0x433df1,_0x557b81){const _0x576dca=_0x557b81?[this['channelSessions']['get'](_0x557b81)]:this['channelSessions']['values'](),_0x265818=new Set();for(const _0x5913a1 of _0x576dca)for(const _0x65fc7d of _0x5913a1)_0x65fc7d['user']['id']===_0x433df1['id']&&_0x265818['add'](_0x65fc7d['id']);return _0x265818;}['getUserRole'](_0x2ce197){for(const _0x9210c4 of this['channelSessions']['values']())for(const _0x5e44f2 of _0x9210c4)if(_0x5e44f2['user']===_0x2ce197)return _0x5e44f2['role'];}['_handleSessionAdd'](_0x1d3166,_0x52f0f2){if('connected'!==this['context']['plugins']['get'](WebSocketGateway)['state'])return;const _0x32cca6=_0x52f0f2['user'],_0x45b5c7=this['_users']['getUser'](_0x32cca6['id'])||this['_createUser'](_0x32cca6),_0x405e05=Object['assign']({},_0x52f0f2,{'user':_0x45b5c7});if(this['channelSessions']['get'](_0x1d3166)['add'](_0x405e05),!_0x32cca6['hiddenInPresenceList']){const _0x3d7a4a=this['channelConnectedUsers']['get'](_0x1d3166);_0x3d7a4a['has'](_0x45b5c7['id'])||_0x3d7a4a['add'](_0x45b5c7),this['allConnectedUsers']['has'](_0x45b5c7['id'])||_0x32cca6['hiddenInPresenceList']||this['allConnectedUsers']['add'](_0x45b5c7,_0x45b5c7['isMe']?0x0:void 0x0);}this['fire']('sessionAdd:'+_0x1d3166,{'channelId':_0x1d3166,'session':_0x405e05});}['_handleSessionRemove'](_0xa807a2,_0x21db3c){if('connected'!==this['context']['plugins']['get'](WebSocketGateway)['state'])return;const _0x587cfc=this['channelConnectedUsers']['get'](_0xa807a2),_0x4f54b8=_0x21db3c['user'];_0x4f54b8['id']&&(this['channelSessions']['get'](_0xa807a2)['remove'](_0x21db3c['id']),_0x587cfc['has'](_0x4f54b8['id'])&&!this['getUserSessions'](_0x4f54b8,_0xa807a2)['size']&&_0x587cfc['remove'](_0x4f54b8['id']),this['allConnectedUsers']['get'](_0x4f54b8['id'])&&!this['getUserSessions'](_0x4f54b8)['size']&&this['allConnectedUsers']['remove'](_0x4f54b8['id']));}['_createUser'](_0x17db15,_0x4800d9){const _0x3645b4=this['_users']['addUser'](_0x17db15);return _0x4800d9&&this['_users']['defineMe'](_0x17db15['id']),_0x3645b4['orderNumber']=this['_uniqueUsersCount']++,_0x3645b4;}}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 _0x198ae9=this['editor'],_0x38c34b=_0x198ae9['plugins']['get'](Sessions);_0x198ae9['conversion']['for']('editingDowncast')['markerToElement']({'model':'user:position','view':(_0x530437,{writer:_0x22cbf1})=>createUserPositionViewElement(_0x530437,_0x22cbf1,_0x38c34b,_0x198ae9)}),_0x198ae9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'user:range','view':_0x115da7=>createUserRangeViewElement(_0x115da7,_0x38c34b)}),createUserMarkerPostFixer(_0x198ae9),this['_domEmitter']['listenTo'](_0x176c57['document'],'keydown',(_0x38bc62,{key:_0x104cba})=>{'Escape'===_0x104cba&&hideHoveredUserPositionMarkersTooltips(_0x198ae9);},{'useCapture':!0x0});}['afterInit'](){const _0x1f331f=this['editor'],_0x2a5a1b=_0x1f331f['commands']['get']('undo');_0x2a5a1b&&_0x1f331f['model']['on']('applyOperation',(_0x41c5aa,_0x44489c)=>{const _0x34131b=_0x44489c[0x0];if(!_0x34131b['isDocumentOperation'])return;if('marker'!=_0x34131b['type']||!_0x34131b['name']['startsWith']('user:'))return;const _0x25b29c=_0x34131b['batch'];_0x2a5a1b['_createdBatches']['has'](_0x25b29c)&&(_0x34131b['newRange']=_0x34131b['oldRange']?_0x1f331f['model']['createRange'](_0x34131b['oldRange']['start'],_0x34131b['oldRange']['end']):null);},{'priority':'highest'});}['destroy'](){return this['_domEmitter']['stopListening'](),super['destroy']();}['createUserMarkerOperations'](){const _0x4c87ce=this['editor'],_0x2e7aa2=_0x4c87ce['model']['document'],_0x4755e7=_0x4c87ce['plugins']['get'](Sessions);_0x4c87ce['model']['enqueueChange']({'isUndoable':!0x1},_0x42cf23=>{const _0x52b458='user:range:'+_0x4755e7['mySessionId'],_0x5cce6b='user:position:'+_0x4755e7['mySessionId'],_0x3ba6f2=_0x4c87ce['model']['markers']['has'](_0x52b458);_0x4c87ce['editing']['view']['hasDomSelection']?updateUserMarkers(_0x4755e7['mySessionId'],_0x2e7aa2['selection']['getFirstRange'](),_0x4c87ce['model'],_0x42cf23):_0x3ba6f2&&(_0x42cf23['removeMarker'](_0x52b458),_0x42cf23['removeMarker'](_0x5cce6b));});}}function updateUserMarkers(_0x53722e,_0x2d5153,_0x486d5e,_0x6fd6f8){const _0xda2794='user:range:'+_0x53722e,_0x314754='user:position:'+_0x53722e,_0xc1bfef=_0x2d5153['getContainedElement']();let _0x5a9ddf=_0x2d5153['start'];if(_0xc1bfef&&_0xc1bfef['is']('element','tableCell')){const _0x17c853=getPositionForText(_0x2d5153,_0x486d5e);_0x17c853&&(_0x5a9ddf=_0x17c853,_0x2d5153=_0x6fd6f8['createRange'](_0x5a9ddf));}const _0x268b68=_0x6fd6f8['createRange'](_0x5a9ddf);_0x486d5e['markers']['has'](_0xda2794)?(_0x6fd6f8['updateMarker'](_0xda2794,{'range':_0x2d5153}),_0x6fd6f8['updateMarker'](_0x314754,{'range':_0x268b68})):(_0x6fd6f8['addMarker'](_0xda2794,{'range':_0x2d5153,'usingOperation':!0x0}),_0x6fd6f8['addMarker'](_0x314754,{'range':_0x268b68,'usingOperation':!0x0}));}function getPositionForText(_0x4714fa,_0x6fc365){for(const _0x45df2d of _0x4714fa['getPositions']())if(_0x6fc365['schema']['checkChild'](_0x45df2d,'$text'))return _0x45df2d;}function createUserPositionViewElement(_0x4d74ef,_0x547e3e,_0x39bc16,_0x2e4fa7){const _0x526bdf=_0x4d74ef['markerName']['split'](':')[0x2],_0x442ba5=_0x39bc16['getUserBySessionId'](_0x526bdf);if(!_0x442ba5||_0x526bdf===_0x39bc16['mySessionId'])return;if(!_0x2e4fa7['model']['schema']['checkChild'](_0x4d74ef['markerRange']['start'],'$text'))return;const _0x3aeb17={'class':'ck-user__marker\x20'+_0x442ba5['color']['getMarkerClass'](),'style':getUserColorStyle(_0x442ba5),'data-name':_0x442ba5['name'],'data-session-id':_0x526bdf},_0x5bfe6e=_0x2e4fa7['model']['markers']['get'](_0x4d74ef['markerName'])['getStart'](),_0xe57b54=_0x5bfe6e['nodeAfter'],_0x510adb=_0x2e4fa7['model']['schema'];if(_0xe57b54&&_0x510adb['isObject'](_0xe57b54)&&_0x510adb['isInline'](_0xe57b54)&&!_0x2e4fa7['model']['markers']['get']('user:range:'+_0x526bdf)['getRange']()['isCollapsed'])return;const _0x4f82bd=_0x5bfe6e['parent'];return _0x2e4fa7['model']['schema']['isLimit'](_0x4f82bd)&&!_0x2e4fa7['model']['hasContent'](_0x4f82bd)&&(_0x3aeb17['contenteditable']=!0x1),createUserPositionMarkerElement(_0x547e3e,_0x3aeb17,_0x442ba5);}function createUserRangeViewElement(_0x39f972,_0x32ce5f){const _0x454a9b=_0x39f972['markerName']['split'](':')[0x2];if(_0x454a9b===_0x32ce5f['mySessionId'])return null;const _0x1c56b6=_0x32ce5f['getUserBySessionId'](_0x454a9b);return _0x1c56b6?{'id':_0x454a9b,'classes':['ck-user__selection',_0x1c56b6['color']['getSelectionClass']()],'attributes':{'style':getUserColorStyle(_0x1c56b6),'data-session-id':_0x454a9b},'priority':0x7d0+_0x1c56b6['orderNumber']}:{'id':_0x454a9b,'classes':[]};}function getUserColorStyle(_0x268679){return'--ck-user-color:'+_0x268679['color']['getColorVariable']()+';--ck-user-color-alpha:'+_0x268679['color']['getColorAlphaVariable']()+';';}function createUserPositionMarkerElement(_0x477674,_0x9e8a76,_0x40bc2f){const _0x10ca3e=_0x477674['createUIElement']('span',_0x9e8a76);return _0x477674['setCustomProperty']('userPositionMarker',!0x0,_0x10ca3e),_0x10ca3e['render']=function(_0x343f43){const _0x246248=this['toDomElement'](_0x343f43),_0x238759=document['createElement']('span');return _0x238759['classList']['add']('ck-user__marker-tooltip'),_0x238759['setAttribute']('contenteditable','false'),_0x238759['setAttribute']('spellcheck','false'),_0x238759['textContent']=_0x40bc2f['name'],_0x246248['innerHTML']='⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>'+_0x238759['outerHTML']+'⁠',_0x246248['addEventListener']('mouseenter',()=>{_0x246248['classList']['add']('ck-user__marker_hovered');}),_0x246248['addEventListener']('mouseleave',()=>{_0x246248['classList']['remove']('ck-user__marker_hovered');}),_0x246248;},_0x10ca3e['isSimilar']=function(_0x31b6f7){return!(!this['getCustomProperty']('userPositionMarker')||!_0x31b6f7['getCustomProperty']('userPositionMarker')||this['getAttribute']('data-session-id')!=_0x31b6f7['getAttribute']('data-session-id'));},_0x10ca3e;}function hideHoveredUserPositionMarkersTooltips(_0x4c59a5){_0x4c59a5['editing']['view']['change'](_0x4fd171=>{for(const _0x4ddde3 of _0x4c59a5['model']['markers']){if(!_0x4ddde3['name']['startsWith']('user:position'))continue;const _0x30b3e1=_0x4c59a5['editing']['mapper']['markerNameToElements'](_0x4ddde3['name']);if(_0x30b3e1){for(const _0x1ddab1 of _0x30b3e1)_0x4fd171['removeClass']('ck-user__marker_hovered',_0x1ddab1);}}});}function createUserMarkerPostFixer(_0x21df9b){const _0x511020=_0x21df9b['model'],_0x54a237=new Map(),_0x43b10e=_0x21df9b['plugins']['get'](Sessions);_0x511020['markers']['on']('update:user:range',(_0x7f8e81,_0x1d3ad7,_0x2c6625,_0x44e812)=>{if(!_0x44e812&&_0x54a237['get'](_0x1d3ad7['name']))return _0x54a237['get'](_0x1d3ad7['name'])['detach'](),void _0x54a237['delete'](_0x1d3ad7['name']);const _0x52a356=_0x1d3ad7['name']['split'](':')[0x2];if(_0x52a356===_0x43b10e['mySessionId'])return;const _0x3fe237='user:position:'+_0x52a356;_0x511020['markers']['has'](_0x3fe237)&&_0x21df9b['editing']['reconvertMarker'](_0x3fe237),_0x1d3ad7['on']('change:range',(_0xd17e37,_0x27b521,_0x2594e0)=>{if('$graveyard'!=_0x27b521['root']['rootName']&&'$graveyard'==_0x1d3ad7['getRange']()['root']['rootName']&&!_0x54a237['has'](_0x1d3ad7['name'])){const _0x2eb1f2=_0x511020['schema']['getNearestSelectionRange'](_0x2594e0['deletionPosition']);if(_0x2eb1f2){const _0x262c71=ModelLiveRange['fromRange'](_0x2eb1f2);_0x54a237['set'](_0x1d3ad7['name'],_0x262c71),_0x262c71['on']('change:range',(_0x59636f,_0x32efec,_0x15a050)=>{if('$graveyard'==_0x262c71['root']['rootName']){const _0x3e8e67=_0x511020['schema']['getNearestSelectionRange'](_0x15a050['deletionPosition']);_0x3e8e67?(_0x262c71['start']=_0x3e8e67['start'],_0x262c71['end']=_0x3e8e67['end']):(_0x54a237['delete'](_0x1d3ad7['name']),_0x262c71['detach']());}});}}});}),_0x511020['document']['on']('change',()=>{_0x54a237['size']>0x0&&_0x511020['enqueueChange']({'isUndoable':!0x1},_0x54e678=>{for(const [_0x47a652,_0x1eba43]of _0x54a237)'$graveyard'==_0x511020['markers']['get'](_0x47a652)['getRange']()['root']['rootName']&&(updateUserMarkers(_0x47a652['split'](':')[0x2],_0x1eba43['toRange'](),_0x511020,_0x54e678),_0x1eba43['detach']());_0x54a237['clear']();});});}function getTranslation$6(_0x41ace6,_0x19451f,_0x504cae){const _0x253078=_0x41ace6['t'],t=_0x41ace6['t'];switch(_0x19451f){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 _0x253078({'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'},_0x504cae);default:return'';}}const messages=/* #__PURE__ -- @preserve */
((()=>{var _0x472bc5=minimalExports['Reader'],_0x39e296=minimalExports['Writer'],_0x104d6e=minimalExports['util'],_0x1516eb=minimalExports['roots']['default']||(minimalExports['roots']['default']={});return _0x1516eb['AttributeOperation']=(function(){function _0x3a83b7(_0x429b1f){if(_0x429b1f){for(var _0x17ecff=Object['keys'](_0x429b1f),_0x2c1f10=0x0;_0x2c1f10<_0x17ecff['length'];++_0x2c1f10)null!=_0x429b1f[_0x17ecff[_0x2c1f10]]&&(this[_0x17ecff[_0x2c1f10]]=_0x429b1f[_0x17ecff[_0x2c1f10]]);}}return _0x3a83b7['prototype']['range']=null,_0x3a83b7['prototype']['key']='',_0x3a83b7['prototype']['oldValueBoolean']=!0x1,_0x3a83b7['prototype']['oldValueJson']='',_0x3a83b7['prototype']['newValueBoolean']=!0x1,_0x3a83b7['prototype']['newValueJson']='',_0x3a83b7['prototype']['wasUndone']=!0x1,_0x3a83b7['create']=function(_0x485aec){return new _0x3a83b7(_0x485aec);},_0x3a83b7['encode']=function(_0x4902e3,_0xa5c309){return _0xa5c309||(_0xa5c309=_0x39e296['create']()),null!=_0x4902e3['range']&&Object['hasOwnProperty']['call'](_0x4902e3,'range')&&_0x1516eb['Range']['encode'](_0x4902e3['range'],_0xa5c309['uint32'](0xa)['fork']())['ldelim'](),null!=_0x4902e3['key']&&Object['hasOwnProperty']['call'](_0x4902e3,'key')&&_0xa5c309['uint32'](0x12)['string'](_0x4902e3['key']),null!=_0x4902e3['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x4902e3,'oldValueBoolean')&&_0xa5c309['uint32'](0x18)['bool'](_0x4902e3['oldValueBoolean']),null!=_0x4902e3['oldValueJson']&&Object['hasOwnProperty']['call'](_0x4902e3,'oldValueJson')&&_0xa5c309['uint32'](0x22)['string'](_0x4902e3['oldValueJson']),null!=_0x4902e3['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x4902e3,'newValueBoolean')&&_0xa5c309['uint32'](0x28)['bool'](_0x4902e3['newValueBoolean']),null!=_0x4902e3['newValueJson']&&Object['hasOwnProperty']['call'](_0x4902e3,'newValueJson')&&_0xa5c309['uint32'](0x32)['string'](_0x4902e3['newValueJson']),null!=_0x4902e3['wasUndone']&&Object['hasOwnProperty']['call'](_0x4902e3,'wasUndone')&&_0xa5c309['uint32'](0x38)['bool'](_0x4902e3['wasUndone']),_0xa5c309;},_0x3a83b7['encodeDelimited']=function(_0x1f47b4,_0x20a6c8){return this['encode'](_0x1f47b4,_0x20a6c8)['ldelim']();},_0x3a83b7['decode']=function(_0x1a09d1,_0x2f9da6){_0x1a09d1 instanceof _0x472bc5||(_0x1a09d1=_0x472bc5['create'](_0x1a09d1));for(var _0x75f23d=void 0x0===_0x2f9da6?_0x1a09d1['len']:_0x1a09d1['pos']+_0x2f9da6,_0x5e65c6=new _0x1516eb['AttributeOperation']();_0x1a09d1['pos']<_0x75f23d;){var _0x534cbd=_0x1a09d1['uint32']();switch(_0x534cbd>>>0x3){case 0x1:_0x5e65c6['range']=_0x1516eb['Range']['decode'](_0x1a09d1,_0x1a09d1['uint32']());break;case 0x2:_0x5e65c6['key']=_0x1a09d1['string']();break;case 0x3:_0x5e65c6['oldValueBoolean']=_0x1a09d1['bool']();break;case 0x4:_0x5e65c6['oldValueJson']=_0x1a09d1['string']();break;case 0x5:_0x5e65c6['newValueBoolean']=_0x1a09d1['bool']();break;case 0x6:_0x5e65c6['newValueJson']=_0x1a09d1['string']();break;case 0x7:_0x5e65c6['wasUndone']=_0x1a09d1['bool']();break;default:_0x1a09d1['skipType'](0x7&_0x534cbd);}}return _0x5e65c6;},_0x3a83b7['decodeDelimited']=function(_0x15d491){return _0x15d491 instanceof _0x472bc5||(_0x15d491=new _0x472bc5(_0x15d491)),this['decode'](_0x15d491,_0x15d491['uint32']());},_0x3a83b7['verify']=function(_0x2cc5af){if('object'!=typeof _0x2cc5af||null===_0x2cc5af)return'object\x20expected';if(null!=_0x2cc5af['range']&&_0x2cc5af['hasOwnProperty']('range')){var _0x11ff11=_0x1516eb['Range']['verify'](_0x2cc5af['range']);if(_0x11ff11)return'range.'+_0x11ff11;}return null!=_0x2cc5af['key']&&_0x2cc5af['hasOwnProperty']('key')&&!_0x104d6e['isString'](_0x2cc5af['key'])?'key:\x20string\x20expected':null!=_0x2cc5af['oldValueBoolean']&&_0x2cc5af['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x2cc5af['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x2cc5af['oldValueJson']&&_0x2cc5af['hasOwnProperty']('oldValueJson')&&!_0x104d6e['isString'](_0x2cc5af['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x2cc5af['newValueBoolean']&&_0x2cc5af['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x2cc5af['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x2cc5af['newValueJson']&&_0x2cc5af['hasOwnProperty']('newValueJson')&&!_0x104d6e['isString'](_0x2cc5af['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x2cc5af['wasUndone']&&_0x2cc5af['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x2cc5af['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x3a83b7['fromObject']=function(_0x2ec2ab){if(_0x2ec2ab instanceof _0x1516eb['AttributeOperation'])return _0x2ec2ab;var _0x2e1d29=new _0x1516eb['AttributeOperation']();if(null!=_0x2ec2ab['range']){if('object'!=typeof _0x2ec2ab['range'])throw TypeError('.AttributeOperation.range:\x20object\x20expected');_0x2e1d29['range']=_0x1516eb['Range']['fromObject'](_0x2ec2ab['range']);}return null!=_0x2ec2ab['key']&&(_0x2e1d29['key']=String(_0x2ec2ab['key'])),null!=_0x2ec2ab['oldValueBoolean']&&(_0x2e1d29['oldValueBoolean']=Boolean(_0x2ec2ab['oldValueBoolean'])),null!=_0x2ec2ab['oldValueJson']&&(_0x2e1d29['oldValueJson']=String(_0x2ec2ab['oldValueJson'])),null!=_0x2ec2ab['newValueBoolean']&&(_0x2e1d29['newValueBoolean']=Boolean(_0x2ec2ab['newValueBoolean'])),null!=_0x2ec2ab['newValueJson']&&(_0x2e1d29['newValueJson']=String(_0x2ec2ab['newValueJson'])),null!=_0x2ec2ab['wasUndone']&&(_0x2e1d29['wasUndone']=Boolean(_0x2ec2ab['wasUndone'])),_0x2e1d29;},_0x3a83b7['toObject']=function(_0x3cf6d3,_0x21f0c9){_0x21f0c9||(_0x21f0c9={});var _0x5a7735={};return _0x21f0c9['defaults']&&(_0x5a7735['range']=null,_0x5a7735['key']='',_0x5a7735['oldValueBoolean']=!0x1,_0x5a7735['oldValueJson']='',_0x5a7735['newValueBoolean']=!0x1,_0x5a7735['newValueJson']='',_0x5a7735['wasUndone']=!0x1),null!=_0x3cf6d3['range']&&_0x3cf6d3['hasOwnProperty']('range')&&(_0x5a7735['range']=_0x1516eb['Range']['toObject'](_0x3cf6d3['range'],_0x21f0c9)),null!=_0x3cf6d3['key']&&_0x3cf6d3['hasOwnProperty']('key')&&(_0x5a7735['key']=_0x3cf6d3['key']),null!=_0x3cf6d3['oldValueBoolean']&&_0x3cf6d3['hasOwnProperty']('oldValueBoolean')&&(_0x5a7735['oldValueBoolean']=_0x3cf6d3['oldValueBoolean']),null!=_0x3cf6d3['oldValueJson']&&_0x3cf6d3['hasOwnProperty']('oldValueJson')&&(_0x5a7735['oldValueJson']=_0x3cf6d3['oldValueJson']),null!=_0x3cf6d3['newValueBoolean']&&_0x3cf6d3['hasOwnProperty']('newValueBoolean')&&(_0x5a7735['newValueBoolean']=_0x3cf6d3['newValueBoolean']),null!=_0x3cf6d3['newValueJson']&&_0x3cf6d3['hasOwnProperty']('newValueJson')&&(_0x5a7735['newValueJson']=_0x3cf6d3['newValueJson']),null!=_0x3cf6d3['wasUndone']&&_0x3cf6d3['hasOwnProperty']('wasUndone')&&(_0x5a7735['wasUndone']=_0x3cf6d3['wasUndone']),_0x5a7735;},_0x3a83b7['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3a83b7['getTypeUrl']=function(_0x5680b8){return void 0x0===_0x5680b8&&(_0x5680b8='type.googleapis.com'),_0x5680b8+'/AttributeOperation';},_0x3a83b7;}()),_0x1516eb['InsertOperation']=(function(){function _0x3df0d6(_0x918a6){if(this['nodes']=[],_0x918a6){for(var _0x19bbc7=Object['keys'](_0x918a6),_0x4f3f17=0x0;_0x4f3f17<_0x19bbc7['length'];++_0x4f3f17)null!=_0x918a6[_0x19bbc7[_0x4f3f17]]&&(this[_0x19bbc7[_0x4f3f17]]=_0x918a6[_0x19bbc7[_0x4f3f17]]);}}return _0x3df0d6['prototype']['position']=null,_0x3df0d6['prototype']['nodes']=_0x104d6e['emptyArray'],_0x3df0d6['prototype']['shouldReceiveAttributes']=!0x1,_0x3df0d6['prototype']['wasUndone']=!0x1,_0x3df0d6['create']=function(_0x1e0d43){return new _0x3df0d6(_0x1e0d43);},_0x3df0d6['encode']=function(_0x29eac6,_0x25d797){if(_0x25d797||(_0x25d797=_0x39e296['create']()),null!=_0x29eac6['position']&&Object['hasOwnProperty']['call'](_0x29eac6,'position')&&_0x1516eb['Position']['encode'](_0x29eac6['position'],_0x25d797['uint32'](0xa)['fork']())['ldelim'](),null!=_0x29eac6['nodes']&&_0x29eac6['nodes']['length']){for(var _0xdaecb1=0x0;_0xdaecb1<_0x29eac6['nodes']['length'];++_0xdaecb1)_0x1516eb['Element']['encode'](_0x29eac6['nodes'][_0xdaecb1],_0x25d797['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x29eac6['shouldReceiveAttributes']&&Object['hasOwnProperty']['call'](_0x29eac6,'shouldReceiveAttributes')&&_0x25d797['uint32'](0x18)['bool'](_0x29eac6['shouldReceiveAttributes']),null!=_0x29eac6['wasUndone']&&Object['hasOwnProperty']['call'](_0x29eac6,'wasUndone')&&_0x25d797['uint32'](0x20)['bool'](_0x29eac6['wasUndone']),_0x25d797;},_0x3df0d6['encodeDelimited']=function(_0x431951,_0x26e8a4){return this['encode'](_0x431951,_0x26e8a4)['ldelim']();},_0x3df0d6['decode']=function(_0x401f71,_0x10b1bb){_0x401f71 instanceof _0x472bc5||(_0x401f71=_0x472bc5['create'](_0x401f71));for(var _0x325922=void 0x0===_0x10b1bb?_0x401f71['len']:_0x401f71['pos']+_0x10b1bb,_0x440b8a=new _0x1516eb['InsertOperation']();_0x401f71['pos']<_0x325922;){var _0x3027ec=_0x401f71['uint32']();switch(_0x3027ec>>>0x3){case 0x1:_0x440b8a['position']=_0x1516eb['Position']['decode'](_0x401f71,_0x401f71['uint32']());break;case 0x2:_0x440b8a['nodes']&&_0x440b8a['nodes']['length']||(_0x440b8a['nodes']=[]),_0x440b8a['nodes']['push'](_0x1516eb['Element']['decode'](_0x401f71,_0x401f71['uint32']()));break;case 0x3:_0x440b8a['shouldReceiveAttributes']=_0x401f71['bool']();break;case 0x4:_0x440b8a['wasUndone']=_0x401f71['bool']();break;default:_0x401f71['skipType'](0x7&_0x3027ec);}}return _0x440b8a;},_0x3df0d6['decodeDelimited']=function(_0x7c16d0){return _0x7c16d0 instanceof _0x472bc5||(_0x7c16d0=new _0x472bc5(_0x7c16d0)),this['decode'](_0x7c16d0,_0x7c16d0['uint32']());},_0x3df0d6['verify']=function(_0x498384){if('object'!=typeof _0x498384||null===_0x498384)return'object\x20expected';if(null!=_0x498384['position']&&_0x498384['hasOwnProperty']('position')&&(_0x5e0ce5=_0x1516eb['Position']['verify'](_0x498384['position'])))return'position.'+_0x5e0ce5;if(null!=_0x498384['nodes']&&_0x498384['hasOwnProperty']('nodes')){if(!Array['isArray'](_0x498384['nodes']))return'nodes:\x20array\x20expected';for(var _0xa726d8=0x0;_0xa726d8<_0x498384['nodes']['length'];++_0xa726d8){var _0x5e0ce5;if(_0x5e0ce5=_0x1516eb['Element']['verify'](_0x498384['nodes'][_0xa726d8]))return'nodes.'+_0x5e0ce5;}}return null!=_0x498384['shouldReceiveAttributes']&&_0x498384['hasOwnProperty']('shouldReceiveAttributes')&&'boolean'!=typeof _0x498384['shouldReceiveAttributes']?'shouldReceiveAttributes:\x20boolean\x20expected':null!=_0x498384['wasUndone']&&_0x498384['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x498384['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x3df0d6['fromObject']=function(_0x39323d){if(_0x39323d instanceof _0x1516eb['InsertOperation'])return _0x39323d;var _0x55dbc2=new _0x1516eb['InsertOperation']();if(null!=_0x39323d['position']){if('object'!=typeof _0x39323d['position'])throw TypeError('.InsertOperation.position:\x20object\x20expected');_0x55dbc2['position']=_0x1516eb['Position']['fromObject'](_0x39323d['position']);}if(_0x39323d['nodes']){if(!Array['isArray'](_0x39323d['nodes']))throw TypeError('.InsertOperation.nodes:\x20array\x20expected');_0x55dbc2['nodes']=[];for(var _0x4a3414=0x0;_0x4a3414<_0x39323d['nodes']['length'];++_0x4a3414){if('object'!=typeof _0x39323d['nodes'][_0x4a3414])throw TypeError('.InsertOperation.nodes:\x20object\x20expected');_0x55dbc2['nodes'][_0x4a3414]=_0x1516eb['Element']['fromObject'](_0x39323d['nodes'][_0x4a3414]);}}return null!=_0x39323d['shouldReceiveAttributes']&&(_0x55dbc2['shouldReceiveAttributes']=Boolean(_0x39323d['shouldReceiveAttributes'])),null!=_0x39323d['wasUndone']&&(_0x55dbc2['wasUndone']=Boolean(_0x39323d['wasUndone'])),_0x55dbc2;},_0x3df0d6['toObject']=function(_0xd2302c,_0xa015f2){_0xa015f2||(_0xa015f2={});var _0x1649a6={};if((_0xa015f2['arrays']||_0xa015f2['defaults'])&&(_0x1649a6['nodes']=[]),_0xa015f2['defaults']&&(_0x1649a6['position']=null,_0x1649a6['shouldReceiveAttributes']=!0x1,_0x1649a6['wasUndone']=!0x1),null!=_0xd2302c['position']&&_0xd2302c['hasOwnProperty']('position')&&(_0x1649a6['position']=_0x1516eb['Position']['toObject'](_0xd2302c['position'],_0xa015f2)),_0xd2302c['nodes']&&_0xd2302c['nodes']['length']){_0x1649a6['nodes']=[];for(var _0x13774c=0x0;_0x13774c<_0xd2302c['nodes']['length'];++_0x13774c)_0x1649a6['nodes'][_0x13774c]=_0x1516eb['Element']['toObject'](_0xd2302c['nodes'][_0x13774c],_0xa015f2);}return null!=_0xd2302c['shouldReceiveAttributes']&&_0xd2302c['hasOwnProperty']('shouldReceiveAttributes')&&(_0x1649a6['shouldReceiveAttributes']=_0xd2302c['shouldReceiveAttributes']),null!=_0xd2302c['wasUndone']&&_0xd2302c['hasOwnProperty']('wasUndone')&&(_0x1649a6['wasUndone']=_0xd2302c['wasUndone']),_0x1649a6;},_0x3df0d6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3df0d6['getTypeUrl']=function(_0x5f4a78){return void 0x0===_0x5f4a78&&(_0x5f4a78='type.googleapis.com'),_0x5f4a78+'/InsertOperation';},_0x3df0d6;}()),_0x1516eb['MarkerOperation']=(function(){function _0x23d43c(_0x49ecd8){if(_0x49ecd8){for(var _0x569fc5=Object['keys'](_0x49ecd8),_0x31be54=0x0;_0x31be54<_0x569fc5['length'];++_0x31be54)null!=_0x49ecd8[_0x569fc5[_0x31be54]]&&(this[_0x569fc5[_0x31be54]]=_0x49ecd8[_0x569fc5[_0x31be54]]);}}return _0x23d43c['prototype']['name']='',_0x23d43c['prototype']['oldRange']=null,_0x23d43c['prototype']['newRange']=null,_0x23d43c['prototype']['affectsData']=!0x1,_0x23d43c['prototype']['wasUndone']=!0x1,_0x23d43c['create']=function(_0x293c4e){return new _0x23d43c(_0x293c4e);},_0x23d43c['encode']=function(_0xf84fc3,_0x464fdf){return _0x464fdf||(_0x464fdf=_0x39e296['create']()),null!=_0xf84fc3['name']&&Object['hasOwnProperty']['call'](_0xf84fc3,'name')&&_0x464fdf['uint32'](0xa)['string'](_0xf84fc3['name']),null!=_0xf84fc3['oldRange']&&Object['hasOwnProperty']['call'](_0xf84fc3,'oldRange')&&_0x1516eb['Range']['encode'](_0xf84fc3['oldRange'],_0x464fdf['uint32'](0x12)['fork']())['ldelim'](),null!=_0xf84fc3['newRange']&&Object['hasOwnProperty']['call'](_0xf84fc3,'newRange')&&_0x1516eb['Range']['encode'](_0xf84fc3['newRange'],_0x464fdf['uint32'](0x1a)['fork']())['ldelim'](),null!=_0xf84fc3['affectsData']&&Object['hasOwnProperty']['call'](_0xf84fc3,'affectsData')&&_0x464fdf['uint32'](0x20)['bool'](_0xf84fc3['affectsData']),null!=_0xf84fc3['wasUndone']&&Object['hasOwnProperty']['call'](_0xf84fc3,'wasUndone')&&_0x464fdf['uint32'](0x28)['bool'](_0xf84fc3['wasUndone']),_0x464fdf;},_0x23d43c['encodeDelimited']=function(_0x408532,_0x36ef6e){return this['encode'](_0x408532,_0x36ef6e)['ldelim']();},_0x23d43c['decode']=function(_0x5478ce,_0x965fb7){_0x5478ce instanceof _0x472bc5||(_0x5478ce=_0x472bc5['create'](_0x5478ce));for(var _0x2f7d59=void 0x0===_0x965fb7?_0x5478ce['len']:_0x5478ce['pos']+_0x965fb7,_0x507e23=new _0x1516eb['MarkerOperation']();_0x5478ce['pos']<_0x2f7d59;){var _0x1755f6=_0x5478ce['uint32']();switch(_0x1755f6>>>0x3){case 0x1:_0x507e23['name']=_0x5478ce['string']();break;case 0x2:_0x507e23['oldRange']=_0x1516eb['Range']['decode'](_0x5478ce,_0x5478ce['uint32']());break;case 0x3:_0x507e23['newRange']=_0x1516eb['Range']['decode'](_0x5478ce,_0x5478ce['uint32']());break;case 0x4:_0x507e23['affectsData']=_0x5478ce['bool']();break;case 0x5:_0x507e23['wasUndone']=_0x5478ce['bool']();break;default:_0x5478ce['skipType'](0x7&_0x1755f6);}}return _0x507e23;},_0x23d43c['decodeDelimited']=function(_0x32d8d0){return _0x32d8d0 instanceof _0x472bc5||(_0x32d8d0=new _0x472bc5(_0x32d8d0)),this['decode'](_0x32d8d0,_0x32d8d0['uint32']());},_0x23d43c['verify']=function(_0x54b503){if('object'!=typeof _0x54b503||null===_0x54b503)return'object\x20expected';if(null!=_0x54b503['name']&&_0x54b503['hasOwnProperty']('name')&&!_0x104d6e['isString'](_0x54b503['name']))return'name:\x20string\x20expected';var _0x972df8;if(null!=_0x54b503['oldRange']&&_0x54b503['hasOwnProperty']('oldRange')&&(_0x972df8=_0x1516eb['Range']['verify'](_0x54b503['oldRange'])))return'oldRange.'+_0x972df8;if(null!=_0x54b503['newRange']&&_0x54b503['hasOwnProperty']('newRange')&&(_0x972df8=_0x1516eb['Range']['verify'](_0x54b503['newRange'])))return'newRange.'+_0x972df8;return null!=_0x54b503['affectsData']&&_0x54b503['hasOwnProperty']('affectsData')&&'boolean'!=typeof _0x54b503['affectsData']?'affectsData:\x20boolean\x20expected':null!=_0x54b503['wasUndone']&&_0x54b503['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x54b503['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x23d43c['fromObject']=function(_0x2b0823){if(_0x2b0823 instanceof _0x1516eb['MarkerOperation'])return _0x2b0823;var _0x36a2ad=new _0x1516eb['MarkerOperation']();if(null!=_0x2b0823['name']&&(_0x36a2ad['name']=String(_0x2b0823['name'])),null!=_0x2b0823['oldRange']){if('object'!=typeof _0x2b0823['oldRange'])throw TypeError('.MarkerOperation.oldRange:\x20object\x20expected');_0x36a2ad['oldRange']=_0x1516eb['Range']['fromObject'](_0x2b0823['oldRange']);}if(null!=_0x2b0823['newRange']){if('object'!=typeof _0x2b0823['newRange'])throw TypeError('.MarkerOperation.newRange:\x20object\x20expected');_0x36a2ad['newRange']=_0x1516eb['Range']['fromObject'](_0x2b0823['newRange']);}return null!=_0x2b0823['affectsData']&&(_0x36a2ad['affectsData']=Boolean(_0x2b0823['affectsData'])),null!=_0x2b0823['wasUndone']&&(_0x36a2ad['wasUndone']=Boolean(_0x2b0823['wasUndone'])),_0x36a2ad;},_0x23d43c['toObject']=function(_0x47a04e,_0x1427fb){_0x1427fb||(_0x1427fb={});var _0x4eaa64={};return _0x1427fb['defaults']&&(_0x4eaa64['name']='',_0x4eaa64['oldRange']=null,_0x4eaa64['newRange']=null,_0x4eaa64['affectsData']=!0x1,_0x4eaa64['wasUndone']=!0x1),null!=_0x47a04e['name']&&_0x47a04e['hasOwnProperty']('name')&&(_0x4eaa64['name']=_0x47a04e['name']),null!=_0x47a04e['oldRange']&&_0x47a04e['hasOwnProperty']('oldRange')&&(_0x4eaa64['oldRange']=_0x1516eb['Range']['toObject'](_0x47a04e['oldRange'],_0x1427fb)),null!=_0x47a04e['newRange']&&_0x47a04e['hasOwnProperty']('newRange')&&(_0x4eaa64['newRange']=_0x1516eb['Range']['toObject'](_0x47a04e['newRange'],_0x1427fb)),null!=_0x47a04e['affectsData']&&_0x47a04e['hasOwnProperty']('affectsData')&&(_0x4eaa64['affectsData']=_0x47a04e['affectsData']),null!=_0x47a04e['wasUndone']&&_0x47a04e['hasOwnProperty']('wasUndone')&&(_0x4eaa64['wasUndone']=_0x47a04e['wasUndone']),_0x4eaa64;},_0x23d43c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x23d43c['getTypeUrl']=function(_0xacd066){return void 0x0===_0xacd066&&(_0xacd066='type.googleapis.com'),_0xacd066+'/MarkerOperation';},_0x23d43c;}()),_0x1516eb['MergeOperation']=(function(){function _0x13fe0e(_0x308f18){if(_0x308f18){for(var _0x3d68c8=Object['keys'](_0x308f18),_0xfb927a=0x0;_0xfb927a<_0x3d68c8['length'];++_0xfb927a)null!=_0x308f18[_0x3d68c8[_0xfb927a]]&&(this[_0x3d68c8[_0xfb927a]]=_0x308f18[_0x3d68c8[_0xfb927a]]);}}return _0x13fe0e['prototype']['sourcePosition']=null,_0x13fe0e['prototype']['targetPosition']=null,_0x13fe0e['prototype']['graveyardPosition']=null,_0x13fe0e['prototype']['howMany']=0x0,_0x13fe0e['prototype']['wasUndone']=!0x1,_0x13fe0e['create']=function(_0x3ef38f){return new _0x13fe0e(_0x3ef38f);},_0x13fe0e['encode']=function(_0x5eba49,_0x89c6ab){return _0x89c6ab||(_0x89c6ab=_0x39e296['create']()),null!=_0x5eba49['sourcePosition']&&Object['hasOwnProperty']['call'](_0x5eba49,'sourcePosition')&&_0x1516eb['Position']['encode'](_0x5eba49['sourcePosition'],_0x89c6ab['uint32'](0xa)['fork']())['ldelim'](),null!=_0x5eba49['targetPosition']&&Object['hasOwnProperty']['call'](_0x5eba49,'targetPosition')&&_0x1516eb['Position']['encode'](_0x5eba49['targetPosition'],_0x89c6ab['uint32'](0x12)['fork']())['ldelim'](),null!=_0x5eba49['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x5eba49,'graveyardPosition')&&_0x1516eb['Position']['encode'](_0x5eba49['graveyardPosition'],_0x89c6ab['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x5eba49['howMany']&&Object['hasOwnProperty']['call'](_0x5eba49,'howMany')&&_0x89c6ab['uint32'](0x20)['uint32'](_0x5eba49['howMany']),null!=_0x5eba49['wasUndone']&&Object['hasOwnProperty']['call'](_0x5eba49,'wasUndone')&&_0x89c6ab['uint32'](0x28)['bool'](_0x5eba49['wasUndone']),_0x89c6ab;},_0x13fe0e['encodeDelimited']=function(_0x145de0,_0x4019fc){return this['encode'](_0x145de0,_0x4019fc)['ldelim']();},_0x13fe0e['decode']=function(_0x32378d,_0x5c9c11){_0x32378d instanceof _0x472bc5||(_0x32378d=_0x472bc5['create'](_0x32378d));for(var _0x412071=void 0x0===_0x5c9c11?_0x32378d['len']:_0x32378d['pos']+_0x5c9c11,_0x2ce9b6=new _0x1516eb['MergeOperation']();_0x32378d['pos']<_0x412071;){var _0x5d2394=_0x32378d['uint32']();switch(_0x5d2394>>>0x3){case 0x1:_0x2ce9b6['sourcePosition']=_0x1516eb['Position']['decode'](_0x32378d,_0x32378d['uint32']());break;case 0x2:_0x2ce9b6['targetPosition']=_0x1516eb['Position']['decode'](_0x32378d,_0x32378d['uint32']());break;case 0x3:_0x2ce9b6['graveyardPosition']=_0x1516eb['Position']['decode'](_0x32378d,_0x32378d['uint32']());break;case 0x4:_0x2ce9b6['howMany']=_0x32378d['uint32']();break;case 0x5:_0x2ce9b6['wasUndone']=_0x32378d['bool']();break;default:_0x32378d['skipType'](0x7&_0x5d2394);}}return _0x2ce9b6;},_0x13fe0e['decodeDelimited']=function(_0x28898d){return _0x28898d instanceof _0x472bc5||(_0x28898d=new _0x472bc5(_0x28898d)),this['decode'](_0x28898d,_0x28898d['uint32']());},_0x13fe0e['verify']=function(_0x412536){if('object'!=typeof _0x412536||null===_0x412536)return'object\x20expected';var _0x48a15a;if(null!=_0x412536['sourcePosition']&&_0x412536['hasOwnProperty']('sourcePosition')&&(_0x48a15a=_0x1516eb['Position']['verify'](_0x412536['sourcePosition'])))return'sourcePosition.'+_0x48a15a;if(null!=_0x412536['targetPosition']&&_0x412536['hasOwnProperty']('targetPosition')&&(_0x48a15a=_0x1516eb['Position']['verify'](_0x412536['targetPosition'])))return'targetPosition.'+_0x48a15a;if(null!=_0x412536['graveyardPosition']&&_0x412536['hasOwnProperty']('graveyardPosition')&&(_0x48a15a=_0x1516eb['Position']['verify'](_0x412536['graveyardPosition'])))return'graveyardPosition.'+_0x48a15a;return null!=_0x412536['howMany']&&_0x412536['hasOwnProperty']('howMany')&&!_0x104d6e['isInteger'](_0x412536['howMany'])?'howMany:\x20integer\x20expected':null!=_0x412536['wasUndone']&&_0x412536['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x412536['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x13fe0e['fromObject']=function(_0x5f3d54){if(_0x5f3d54 instanceof _0x1516eb['MergeOperation'])return _0x5f3d54;var _0x3714c0=new _0x1516eb['MergeOperation']();if(null!=_0x5f3d54['sourcePosition']){if('object'!=typeof _0x5f3d54['sourcePosition'])throw TypeError('.MergeOperation.sourcePosition:\x20object\x20expected');_0x3714c0['sourcePosition']=_0x1516eb['Position']['fromObject'](_0x5f3d54['sourcePosition']);}if(null!=_0x5f3d54['targetPosition']){if('object'!=typeof _0x5f3d54['targetPosition'])throw TypeError('.MergeOperation.targetPosition:\x20object\x20expected');_0x3714c0['targetPosition']=_0x1516eb['Position']['fromObject'](_0x5f3d54['targetPosition']);}if(null!=_0x5f3d54['graveyardPosition']){if('object'!=typeof _0x5f3d54['graveyardPosition'])throw TypeError('.MergeOperation.graveyardPosition:\x20object\x20expected');_0x3714c0['graveyardPosition']=_0x1516eb['Position']['fromObject'](_0x5f3d54['graveyardPosition']);}return null!=_0x5f3d54['howMany']&&(_0x3714c0['howMany']=_0x5f3d54['howMany']>>>0x0),null!=_0x5f3d54['wasUndone']&&(_0x3714c0['wasUndone']=Boolean(_0x5f3d54['wasUndone'])),_0x3714c0;},_0x13fe0e['toObject']=function(_0x1373c6,_0x47fd3a){_0x47fd3a||(_0x47fd3a={});var _0xee549d={};return _0x47fd3a['defaults']&&(_0xee549d['sourcePosition']=null,_0xee549d['targetPosition']=null,_0xee549d['graveyardPosition']=null,_0xee549d['howMany']=0x0,_0xee549d['wasUndone']=!0x1),null!=_0x1373c6['sourcePosition']&&_0x1373c6['hasOwnProperty']('sourcePosition')&&(_0xee549d['sourcePosition']=_0x1516eb['Position']['toObject'](_0x1373c6['sourcePosition'],_0x47fd3a)),null!=_0x1373c6['targetPosition']&&_0x1373c6['hasOwnProperty']('targetPosition')&&(_0xee549d['targetPosition']=_0x1516eb['Position']['toObject'](_0x1373c6['targetPosition'],_0x47fd3a)),null!=_0x1373c6['graveyardPosition']&&_0x1373c6['hasOwnProperty']('graveyardPosition')&&(_0xee549d['graveyardPosition']=_0x1516eb['Position']['toObject'](_0x1373c6['graveyardPosition'],_0x47fd3a)),null!=_0x1373c6['howMany']&&_0x1373c6['hasOwnProperty']('howMany')&&(_0xee549d['howMany']=_0x1373c6['howMany']),null!=_0x1373c6['wasUndone']&&_0x1373c6['hasOwnProperty']('wasUndone')&&(_0xee549d['wasUndone']=_0x1373c6['wasUndone']),_0xee549d;},_0x13fe0e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x13fe0e['getTypeUrl']=function(_0x246d39){return void 0x0===_0x246d39&&(_0x246d39='type.googleapis.com'),_0x246d39+'/MergeOperation';},_0x13fe0e;}()),_0x1516eb['MoveOperation']=(function(){function _0x589d7d(_0x4604cc){if(_0x4604cc){for(var _0x2aae21=Object['keys'](_0x4604cc),_0xc94705=0x0;_0xc94705<_0x2aae21['length'];++_0xc94705)null!=_0x4604cc[_0x2aae21[_0xc94705]]&&(this[_0x2aae21[_0xc94705]]=_0x4604cc[_0x2aae21[_0xc94705]]);}}return _0x589d7d['prototype']['sourcePosition']=null,_0x589d7d['prototype']['howMany']=0x0,_0x589d7d['prototype']['targetPosition']=null,_0x589d7d['prototype']['wasUndone']=!0x1,_0x589d7d['create']=function(_0x2d38b4){return new _0x589d7d(_0x2d38b4);},_0x589d7d['encode']=function(_0x5b5d81,_0x68e616){return _0x68e616||(_0x68e616=_0x39e296['create']()),null!=_0x5b5d81['sourcePosition']&&Object['hasOwnProperty']['call'](_0x5b5d81,'sourcePosition')&&_0x1516eb['Position']['encode'](_0x5b5d81['sourcePosition'],_0x68e616['uint32'](0xa)['fork']())['ldelim'](),null!=_0x5b5d81['howMany']&&Object['hasOwnProperty']['call'](_0x5b5d81,'howMany')&&_0x68e616['uint32'](0x10)['uint32'](_0x5b5d81['howMany']),null!=_0x5b5d81['targetPosition']&&Object['hasOwnProperty']['call'](_0x5b5d81,'targetPosition')&&_0x1516eb['Position']['encode'](_0x5b5d81['targetPosition'],_0x68e616['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x5b5d81['wasUndone']&&Object['hasOwnProperty']['call'](_0x5b5d81,'wasUndone')&&_0x68e616['uint32'](0x20)['bool'](_0x5b5d81['wasUndone']),_0x68e616;},_0x589d7d['encodeDelimited']=function(_0x27d8d5,_0x46a68a){return this['encode'](_0x27d8d5,_0x46a68a)['ldelim']();},_0x589d7d['decode']=function(_0x23f200,_0x3f759b){_0x23f200 instanceof _0x472bc5||(_0x23f200=_0x472bc5['create'](_0x23f200));for(var _0x333187=void 0x0===_0x3f759b?_0x23f200['len']:_0x23f200['pos']+_0x3f759b,_0x3b686f=new _0x1516eb['MoveOperation']();_0x23f200['pos']<_0x333187;){var _0x17ef3c=_0x23f200['uint32']();switch(_0x17ef3c>>>0x3){case 0x1:_0x3b686f['sourcePosition']=_0x1516eb['Position']['decode'](_0x23f200,_0x23f200['uint32']());break;case 0x2:_0x3b686f['howMany']=_0x23f200['uint32']();break;case 0x3:_0x3b686f['targetPosition']=_0x1516eb['Position']['decode'](_0x23f200,_0x23f200['uint32']());break;case 0x4:_0x3b686f['wasUndone']=_0x23f200['bool']();break;default:_0x23f200['skipType'](0x7&_0x17ef3c);}}return _0x3b686f;},_0x589d7d['decodeDelimited']=function(_0x3aba39){return _0x3aba39 instanceof _0x472bc5||(_0x3aba39=new _0x472bc5(_0x3aba39)),this['decode'](_0x3aba39,_0x3aba39['uint32']());},_0x589d7d['verify']=function(_0x1b10dd){if('object'!=typeof _0x1b10dd||null===_0x1b10dd)return'object\x20expected';var _0x3c1e5d;if(null!=_0x1b10dd['sourcePosition']&&_0x1b10dd['hasOwnProperty']('sourcePosition')&&(_0x3c1e5d=_0x1516eb['Position']['verify'](_0x1b10dd['sourcePosition'])))return'sourcePosition.'+_0x3c1e5d;if(null!=_0x1b10dd['howMany']&&_0x1b10dd['hasOwnProperty']('howMany')&&!_0x104d6e['isInteger'](_0x1b10dd['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x1b10dd['targetPosition']&&_0x1b10dd['hasOwnProperty']('targetPosition')&&(_0x3c1e5d=_0x1516eb['Position']['verify'](_0x1b10dd['targetPosition'])))return'targetPosition.'+_0x3c1e5d;return null!=_0x1b10dd['wasUndone']&&_0x1b10dd['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x1b10dd['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x589d7d['fromObject']=function(_0x20e0e7){if(_0x20e0e7 instanceof _0x1516eb['MoveOperation'])return _0x20e0e7;var _0x323da7=new _0x1516eb['MoveOperation']();if(null!=_0x20e0e7['sourcePosition']){if('object'!=typeof _0x20e0e7['sourcePosition'])throw TypeError('.MoveOperation.sourcePosition:\x20object\x20expected');_0x323da7['sourcePosition']=_0x1516eb['Position']['fromObject'](_0x20e0e7['sourcePosition']);}if(null!=_0x20e0e7['howMany']&&(_0x323da7['howMany']=_0x20e0e7['howMany']>>>0x0),null!=_0x20e0e7['targetPosition']){if('object'!=typeof _0x20e0e7['targetPosition'])throw TypeError('.MoveOperation.targetPosition:\x20object\x20expected');_0x323da7['targetPosition']=_0x1516eb['Position']['fromObject'](_0x20e0e7['targetPosition']);}return null!=_0x20e0e7['wasUndone']&&(_0x323da7['wasUndone']=Boolean(_0x20e0e7['wasUndone'])),_0x323da7;},_0x589d7d['toObject']=function(_0x4dd53a,_0x32c790){_0x32c790||(_0x32c790={});var _0xaba912={};return _0x32c790['defaults']&&(_0xaba912['sourcePosition']=null,_0xaba912['howMany']=0x0,_0xaba912['targetPosition']=null,_0xaba912['wasUndone']=!0x1),null!=_0x4dd53a['sourcePosition']&&_0x4dd53a['hasOwnProperty']('sourcePosition')&&(_0xaba912['sourcePosition']=_0x1516eb['Position']['toObject'](_0x4dd53a['sourcePosition'],_0x32c790)),null!=_0x4dd53a['howMany']&&_0x4dd53a['hasOwnProperty']('howMany')&&(_0xaba912['howMany']=_0x4dd53a['howMany']),null!=_0x4dd53a['targetPosition']&&_0x4dd53a['hasOwnProperty']('targetPosition')&&(_0xaba912['targetPosition']=_0x1516eb['Position']['toObject'](_0x4dd53a['targetPosition'],_0x32c790)),null!=_0x4dd53a['wasUndone']&&_0x4dd53a['hasOwnProperty']('wasUndone')&&(_0xaba912['wasUndone']=_0x4dd53a['wasUndone']),_0xaba912;},_0x589d7d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x589d7d['getTypeUrl']=function(_0x43cb24){return void 0x0===_0x43cb24&&(_0x43cb24='type.googleapis.com'),_0x43cb24+'/MoveOperation';},_0x589d7d;}()),_0x1516eb['RenameOperation']=(function(){function _0x2e86ef(_0x31a8a4){if(_0x31a8a4){for(var _0x1b52cf=Object['keys'](_0x31a8a4),_0x2e5772=0x0;_0x2e5772<_0x1b52cf['length'];++_0x2e5772)null!=_0x31a8a4[_0x1b52cf[_0x2e5772]]&&(this[_0x1b52cf[_0x2e5772]]=_0x31a8a4[_0x1b52cf[_0x2e5772]]);}}return _0x2e86ef['prototype']['position']=null,_0x2e86ef['prototype']['oldName']='',_0x2e86ef['prototype']['newName']='',_0x2e86ef['prototype']['wasUndone']=!0x1,_0x2e86ef['create']=function(_0x5e85cc){return new _0x2e86ef(_0x5e85cc);},_0x2e86ef['encode']=function(_0x3043e7,_0x1bb4cb){return _0x1bb4cb||(_0x1bb4cb=_0x39e296['create']()),null!=_0x3043e7['position']&&Object['hasOwnProperty']['call'](_0x3043e7,'position')&&_0x1516eb['Position']['encode'](_0x3043e7['position'],_0x1bb4cb['uint32'](0xa)['fork']())['ldelim'](),null!=_0x3043e7['oldName']&&Object['hasOwnProperty']['call'](_0x3043e7,'oldName')&&_0x1bb4cb['uint32'](0x12)['string'](_0x3043e7['oldName']),null!=_0x3043e7['newName']&&Object['hasOwnProperty']['call'](_0x3043e7,'newName')&&_0x1bb4cb['uint32'](0x1a)['string'](_0x3043e7['newName']),null!=_0x3043e7['wasUndone']&&Object['hasOwnProperty']['call'](_0x3043e7,'wasUndone')&&_0x1bb4cb['uint32'](0x20)['bool'](_0x3043e7['wasUndone']),_0x1bb4cb;},_0x2e86ef['encodeDelimited']=function(_0x460db2,_0x2cb961){return this['encode'](_0x460db2,_0x2cb961)['ldelim']();},_0x2e86ef['decode']=function(_0x2f1c68,_0x438665){_0x2f1c68 instanceof _0x472bc5||(_0x2f1c68=_0x472bc5['create'](_0x2f1c68));for(var _0x7899ec=void 0x0===_0x438665?_0x2f1c68['len']:_0x2f1c68['pos']+_0x438665,_0x4ab581=new _0x1516eb['RenameOperation']();_0x2f1c68['pos']<_0x7899ec;){var _0x509387=_0x2f1c68['uint32']();switch(_0x509387>>>0x3){case 0x1:_0x4ab581['position']=_0x1516eb['Position']['decode'](_0x2f1c68,_0x2f1c68['uint32']());break;case 0x2:_0x4ab581['oldName']=_0x2f1c68['string']();break;case 0x3:_0x4ab581['newName']=_0x2f1c68['string']();break;case 0x4:_0x4ab581['wasUndone']=_0x2f1c68['bool']();break;default:_0x2f1c68['skipType'](0x7&_0x509387);}}return _0x4ab581;},_0x2e86ef['decodeDelimited']=function(_0x479da7){return _0x479da7 instanceof _0x472bc5||(_0x479da7=new _0x472bc5(_0x479da7)),this['decode'](_0x479da7,_0x479da7['uint32']());},_0x2e86ef['verify']=function(_0x560fd7){if('object'!=typeof _0x560fd7||null===_0x560fd7)return'object\x20expected';if(null!=_0x560fd7['position']&&_0x560fd7['hasOwnProperty']('position')){var _0x1454ac=_0x1516eb['Position']['verify'](_0x560fd7['position']);if(_0x1454ac)return'position.'+_0x1454ac;}return null!=_0x560fd7['oldName']&&_0x560fd7['hasOwnProperty']('oldName')&&!_0x104d6e['isString'](_0x560fd7['oldName'])?'oldName:\x20string\x20expected':null!=_0x560fd7['newName']&&_0x560fd7['hasOwnProperty']('newName')&&!_0x104d6e['isString'](_0x560fd7['newName'])?'newName:\x20string\x20expected':null!=_0x560fd7['wasUndone']&&_0x560fd7['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x560fd7['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x2e86ef['fromObject']=function(_0x47e66a){if(_0x47e66a instanceof _0x1516eb['RenameOperation'])return _0x47e66a;var _0x1cf80c=new _0x1516eb['RenameOperation']();if(null!=_0x47e66a['position']){if('object'!=typeof _0x47e66a['position'])throw TypeError('.RenameOperation.position:\x20object\x20expected');_0x1cf80c['position']=_0x1516eb['Position']['fromObject'](_0x47e66a['position']);}return null!=_0x47e66a['oldName']&&(_0x1cf80c['oldName']=String(_0x47e66a['oldName'])),null!=_0x47e66a['newName']&&(_0x1cf80c['newName']=String(_0x47e66a['newName'])),null!=_0x47e66a['wasUndone']&&(_0x1cf80c['wasUndone']=Boolean(_0x47e66a['wasUndone'])),_0x1cf80c;},_0x2e86ef['toObject']=function(_0x32c6e0,_0x5b606b){_0x5b606b||(_0x5b606b={});var _0x446955={};return _0x5b606b['defaults']&&(_0x446955['position']=null,_0x446955['oldName']='',_0x446955['newName']='',_0x446955['wasUndone']=!0x1),null!=_0x32c6e0['position']&&_0x32c6e0['hasOwnProperty']('position')&&(_0x446955['position']=_0x1516eb['Position']['toObject'](_0x32c6e0['position'],_0x5b606b)),null!=_0x32c6e0['oldName']&&_0x32c6e0['hasOwnProperty']('oldName')&&(_0x446955['oldName']=_0x32c6e0['oldName']),null!=_0x32c6e0['newName']&&_0x32c6e0['hasOwnProperty']('newName')&&(_0x446955['newName']=_0x32c6e0['newName']),null!=_0x32c6e0['wasUndone']&&_0x32c6e0['hasOwnProperty']('wasUndone')&&(_0x446955['wasUndone']=_0x32c6e0['wasUndone']),_0x446955;},_0x2e86ef['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2e86ef['getTypeUrl']=function(_0x1c5eb6){return void 0x0===_0x1c5eb6&&(_0x1c5eb6='type.googleapis.com'),_0x1c5eb6+'/RenameOperation';},_0x2e86ef;}()),_0x1516eb['RootAttributeOperation']=(function(){function _0x49b5f7(_0x3410ec){if(_0x3410ec){for(var _0x342787=Object['keys'](_0x3410ec),_0xdcb1fe=0x0;_0xdcb1fe<_0x342787['length'];++_0xdcb1fe)null!=_0x3410ec[_0x342787[_0xdcb1fe]]&&(this[_0x342787[_0xdcb1fe]]=_0x3410ec[_0x342787[_0xdcb1fe]]);}}return _0x49b5f7['prototype']['root']='',_0x49b5f7['prototype']['key']='',_0x49b5f7['prototype']['oldValueBoolean']=!0x1,_0x49b5f7['prototype']['oldValueJson']='',_0x49b5f7['prototype']['newValueBoolean']=!0x1,_0x49b5f7['prototype']['newValueJson']='',_0x49b5f7['prototype']['wasUndone']=!0x1,_0x49b5f7['create']=function(_0x388123){return new _0x49b5f7(_0x388123);},_0x49b5f7['encode']=function(_0x20fd2a,_0x4db649){return _0x4db649||(_0x4db649=_0x39e296['create']()),null!=_0x20fd2a['root']&&Object['hasOwnProperty']['call'](_0x20fd2a,'root')&&_0x4db649['uint32'](0xa)['string'](_0x20fd2a['root']),null!=_0x20fd2a['key']&&Object['hasOwnProperty']['call'](_0x20fd2a,'key')&&_0x4db649['uint32'](0x12)['string'](_0x20fd2a['key']),null!=_0x20fd2a['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x20fd2a,'oldValueBoolean')&&_0x4db649['uint32'](0x18)['bool'](_0x20fd2a['oldValueBoolean']),null!=_0x20fd2a['oldValueJson']&&Object['hasOwnProperty']['call'](_0x20fd2a,'oldValueJson')&&_0x4db649['uint32'](0x22)['string'](_0x20fd2a['oldValueJson']),null!=_0x20fd2a['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x20fd2a,'newValueBoolean')&&_0x4db649['uint32'](0x28)['bool'](_0x20fd2a['newValueBoolean']),null!=_0x20fd2a['newValueJson']&&Object['hasOwnProperty']['call'](_0x20fd2a,'newValueJson')&&_0x4db649['uint32'](0x32)['string'](_0x20fd2a['newValueJson']),null!=_0x20fd2a['wasUndone']&&Object['hasOwnProperty']['call'](_0x20fd2a,'wasUndone')&&_0x4db649['uint32'](0x38)['bool'](_0x20fd2a['wasUndone']),_0x4db649;},_0x49b5f7['encodeDelimited']=function(_0x5ae63e,_0x5eb067){return this['encode'](_0x5ae63e,_0x5eb067)['ldelim']();},_0x49b5f7['decode']=function(_0x3b930c,_0x563e07){_0x3b930c instanceof _0x472bc5||(_0x3b930c=_0x472bc5['create'](_0x3b930c));for(var _0xdabe24=void 0x0===_0x563e07?_0x3b930c['len']:_0x3b930c['pos']+_0x563e07,_0x3e58a3=new _0x1516eb['RootAttributeOperation']();_0x3b930c['pos']<_0xdabe24;){var _0xc6fbce=_0x3b930c['uint32']();switch(_0xc6fbce>>>0x3){case 0x1:_0x3e58a3['root']=_0x3b930c['string']();break;case 0x2:_0x3e58a3['key']=_0x3b930c['string']();break;case 0x3:_0x3e58a3['oldValueBoolean']=_0x3b930c['bool']();break;case 0x4:_0x3e58a3['oldValueJson']=_0x3b930c['string']();break;case 0x5:_0x3e58a3['newValueBoolean']=_0x3b930c['bool']();break;case 0x6:_0x3e58a3['newValueJson']=_0x3b930c['string']();break;case 0x7:_0x3e58a3['wasUndone']=_0x3b930c['bool']();break;default:_0x3b930c['skipType'](0x7&_0xc6fbce);}}return _0x3e58a3;},_0x49b5f7['decodeDelimited']=function(_0x1e764d){return _0x1e764d instanceof _0x472bc5||(_0x1e764d=new _0x472bc5(_0x1e764d)),this['decode'](_0x1e764d,_0x1e764d['uint32']());},_0x49b5f7['verify']=function(_0x2bc05c){return'object'!=typeof _0x2bc05c||null===_0x2bc05c?'object\x20expected':null!=_0x2bc05c['root']&&_0x2bc05c['hasOwnProperty']('root')&&!_0x104d6e['isString'](_0x2bc05c['root'])?'root:\x20string\x20expected':null!=_0x2bc05c['key']&&_0x2bc05c['hasOwnProperty']('key')&&!_0x104d6e['isString'](_0x2bc05c['key'])?'key:\x20string\x20expected':null!=_0x2bc05c['oldValueBoolean']&&_0x2bc05c['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x2bc05c['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x2bc05c['oldValueJson']&&_0x2bc05c['hasOwnProperty']('oldValueJson')&&!_0x104d6e['isString'](_0x2bc05c['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x2bc05c['newValueBoolean']&&_0x2bc05c['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x2bc05c['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x2bc05c['newValueJson']&&_0x2bc05c['hasOwnProperty']('newValueJson')&&!_0x104d6e['isString'](_0x2bc05c['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x2bc05c['wasUndone']&&_0x2bc05c['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x2bc05c['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x49b5f7['fromObject']=function(_0x559493){if(_0x559493 instanceof _0x1516eb['RootAttributeOperation'])return _0x559493;var _0x4cb789=new _0x1516eb['RootAttributeOperation']();return null!=_0x559493['root']&&(_0x4cb789['root']=String(_0x559493['root'])),null!=_0x559493['key']&&(_0x4cb789['key']=String(_0x559493['key'])),null!=_0x559493['oldValueBoolean']&&(_0x4cb789['oldValueBoolean']=Boolean(_0x559493['oldValueBoolean'])),null!=_0x559493['oldValueJson']&&(_0x4cb789['oldValueJson']=String(_0x559493['oldValueJson'])),null!=_0x559493['newValueBoolean']&&(_0x4cb789['newValueBoolean']=Boolean(_0x559493['newValueBoolean'])),null!=_0x559493['newValueJson']&&(_0x4cb789['newValueJson']=String(_0x559493['newValueJson'])),null!=_0x559493['wasUndone']&&(_0x4cb789['wasUndone']=Boolean(_0x559493['wasUndone'])),_0x4cb789;},_0x49b5f7['toObject']=function(_0x41fa83,_0x30c007){_0x30c007||(_0x30c007={});var _0x4ee241={};return _0x30c007['defaults']&&(_0x4ee241['root']='',_0x4ee241['key']='',_0x4ee241['oldValueBoolean']=!0x1,_0x4ee241['oldValueJson']='',_0x4ee241['newValueBoolean']=!0x1,_0x4ee241['newValueJson']='',_0x4ee241['wasUndone']=!0x1),null!=_0x41fa83['root']&&_0x41fa83['hasOwnProperty']('root')&&(_0x4ee241['root']=_0x41fa83['root']),null!=_0x41fa83['key']&&_0x41fa83['hasOwnProperty']('key')&&(_0x4ee241['key']=_0x41fa83['key']),null!=_0x41fa83['oldValueBoolean']&&_0x41fa83['hasOwnProperty']('oldValueBoolean')&&(_0x4ee241['oldValueBoolean']=_0x41fa83['oldValueBoolean']),null!=_0x41fa83['oldValueJson']&&_0x41fa83['hasOwnProperty']('oldValueJson')&&(_0x4ee241['oldValueJson']=_0x41fa83['oldValueJson']),null!=_0x41fa83['newValueBoolean']&&_0x41fa83['hasOwnProperty']('newValueBoolean')&&(_0x4ee241['newValueBoolean']=_0x41fa83['newValueBoolean']),null!=_0x41fa83['newValueJson']&&_0x41fa83['hasOwnProperty']('newValueJson')&&(_0x4ee241['newValueJson']=_0x41fa83['newValueJson']),null!=_0x41fa83['wasUndone']&&_0x41fa83['hasOwnProperty']('wasUndone')&&(_0x4ee241['wasUndone']=_0x41fa83['wasUndone']),_0x4ee241;},_0x49b5f7['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x49b5f7['getTypeUrl']=function(_0xdead5c){return void 0x0===_0xdead5c&&(_0xdead5c='type.googleapis.com'),_0xdead5c+'/RootAttributeOperation';},_0x49b5f7;}()),_0x1516eb['RootOperation']=(function(){function _0x327746(_0x216646){if(_0x216646){for(var _0x1a59a2=Object['keys'](_0x216646),_0x442e83=0x0;_0x442e83<_0x1a59a2['length'];++_0x442e83)null!=_0x216646[_0x1a59a2[_0x442e83]]&&(this[_0x1a59a2[_0x442e83]]=_0x216646[_0x1a59a2[_0x442e83]]);}}return _0x327746['prototype']['rootName']='',_0x327746['prototype']['elementName']='',_0x327746['prototype']['isAdd']=!0x1,_0x327746['prototype']['wasUndone']=!0x1,_0x327746['create']=function(_0x369059){return new _0x327746(_0x369059);},_0x327746['encode']=function(_0x265dbd,_0x501445){return _0x501445||(_0x501445=_0x39e296['create']()),null!=_0x265dbd['rootName']&&Object['hasOwnProperty']['call'](_0x265dbd,'rootName')&&_0x501445['uint32'](0xa)['string'](_0x265dbd['rootName']),null!=_0x265dbd['elementName']&&Object['hasOwnProperty']['call'](_0x265dbd,'elementName')&&_0x501445['uint32'](0x12)['string'](_0x265dbd['elementName']),null!=_0x265dbd['isAdd']&&Object['hasOwnProperty']['call'](_0x265dbd,'isAdd')&&_0x501445['uint32'](0x18)['bool'](_0x265dbd['isAdd']),null!=_0x265dbd['wasUndone']&&Object['hasOwnProperty']['call'](_0x265dbd,'wasUndone')&&_0x501445['uint32'](0x20)['bool'](_0x265dbd['wasUndone']),_0x501445;},_0x327746['encodeDelimited']=function(_0x503708,_0x395484){return this['encode'](_0x503708,_0x395484)['ldelim']();},_0x327746['decode']=function(_0x332e7d,_0xf97728){_0x332e7d instanceof _0x472bc5||(_0x332e7d=_0x472bc5['create'](_0x332e7d));for(var _0x31f9da=void 0x0===_0xf97728?_0x332e7d['len']:_0x332e7d['pos']+_0xf97728,_0xf55c54=new _0x1516eb['RootOperation']();_0x332e7d['pos']<_0x31f9da;){var _0xeacb32=_0x332e7d['uint32']();switch(_0xeacb32>>>0x3){case 0x1:_0xf55c54['rootName']=_0x332e7d['string']();break;case 0x2:_0xf55c54['elementName']=_0x332e7d['string']();break;case 0x3:_0xf55c54['isAdd']=_0x332e7d['bool']();break;case 0x4:_0xf55c54['wasUndone']=_0x332e7d['bool']();break;default:_0x332e7d['skipType'](0x7&_0xeacb32);}}return _0xf55c54;},_0x327746['decodeDelimited']=function(_0xd1214a){return _0xd1214a instanceof _0x472bc5||(_0xd1214a=new _0x472bc5(_0xd1214a)),this['decode'](_0xd1214a,_0xd1214a['uint32']());},_0x327746['verify']=function(_0x51a434){return'object'!=typeof _0x51a434||null===_0x51a434?'object\x20expected':null!=_0x51a434['rootName']&&_0x51a434['hasOwnProperty']('rootName')&&!_0x104d6e['isString'](_0x51a434['rootName'])?'rootName:\x20string\x20expected':null!=_0x51a434['elementName']&&_0x51a434['hasOwnProperty']('elementName')&&!_0x104d6e['isString'](_0x51a434['elementName'])?'elementName:\x20string\x20expected':null!=_0x51a434['isAdd']&&_0x51a434['hasOwnProperty']('isAdd')&&'boolean'!=typeof _0x51a434['isAdd']?'isAdd:\x20boolean\x20expected':null!=_0x51a434['wasUndone']&&_0x51a434['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x51a434['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x327746['fromObject']=function(_0x2fecc4){if(_0x2fecc4 instanceof _0x1516eb['RootOperation'])return _0x2fecc4;var _0x2c51fd=new _0x1516eb['RootOperation']();return null!=_0x2fecc4['rootName']&&(_0x2c51fd['rootName']=String(_0x2fecc4['rootName'])),null!=_0x2fecc4['elementName']&&(_0x2c51fd['elementName']=String(_0x2fecc4['elementName'])),null!=_0x2fecc4['isAdd']&&(_0x2c51fd['isAdd']=Boolean(_0x2fecc4['isAdd'])),null!=_0x2fecc4['wasUndone']&&(_0x2c51fd['wasUndone']=Boolean(_0x2fecc4['wasUndone'])),_0x2c51fd;},_0x327746['toObject']=function(_0x43b47a,_0x432ff0){_0x432ff0||(_0x432ff0={});var _0x46dfbc={};return _0x432ff0['defaults']&&(_0x46dfbc['rootName']='',_0x46dfbc['elementName']='',_0x46dfbc['isAdd']=!0x1,_0x46dfbc['wasUndone']=!0x1),null!=_0x43b47a['rootName']&&_0x43b47a['hasOwnProperty']('rootName')&&(_0x46dfbc['rootName']=_0x43b47a['rootName']),null!=_0x43b47a['elementName']&&_0x43b47a['hasOwnProperty']('elementName')&&(_0x46dfbc['elementName']=_0x43b47a['elementName']),null!=_0x43b47a['isAdd']&&_0x43b47a['hasOwnProperty']('isAdd')&&(_0x46dfbc['isAdd']=_0x43b47a['isAdd']),null!=_0x43b47a['wasUndone']&&_0x43b47a['hasOwnProperty']('wasUndone')&&(_0x46dfbc['wasUndone']=_0x43b47a['wasUndone']),_0x46dfbc;},_0x327746['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x327746['getTypeUrl']=function(_0x14f397){return void 0x0===_0x14f397&&(_0x14f397='type.googleapis.com'),_0x14f397+'/RootOperation';},_0x327746;}()),_0x1516eb['SplitOperation']=(function(){function _0x2aab43(_0x302777){if(_0x302777){for(var _0x2265d4=Object['keys'](_0x302777),_0x299bb6=0x0;_0x299bb6<_0x2265d4['length'];++_0x299bb6)null!=_0x302777[_0x2265d4[_0x299bb6]]&&(this[_0x2265d4[_0x299bb6]]=_0x302777[_0x2265d4[_0x299bb6]]);}}return _0x2aab43['prototype']['splitPosition']=null,_0x2aab43['prototype']['graveyardPosition']=null,_0x2aab43['prototype']['howMany']=0x0,_0x2aab43['prototype']['insertionPosition']=null,_0x2aab43['prototype']['wasUndone']=!0x1,_0x2aab43['create']=function(_0x37a28d){return new _0x2aab43(_0x37a28d);},_0x2aab43['encode']=function(_0x12d955,_0x175832){return _0x175832||(_0x175832=_0x39e296['create']()),null!=_0x12d955['splitPosition']&&Object['hasOwnProperty']['call'](_0x12d955,'splitPosition')&&_0x1516eb['Position']['encode'](_0x12d955['splitPosition'],_0x175832['uint32'](0xa)['fork']())['ldelim'](),null!=_0x12d955['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x12d955,'graveyardPosition')&&_0x1516eb['Position']['encode'](_0x12d955['graveyardPosition'],_0x175832['uint32'](0x12)['fork']())['ldelim'](),null!=_0x12d955['howMany']&&Object['hasOwnProperty']['call'](_0x12d955,'howMany')&&_0x175832['uint32'](0x18)['uint32'](_0x12d955['howMany']),null!=_0x12d955['insertionPosition']&&Object['hasOwnProperty']['call'](_0x12d955,'insertionPosition')&&_0x1516eb['Position']['encode'](_0x12d955['insertionPosition'],_0x175832['uint32'](0x22)['fork']())['ldelim'](),null!=_0x12d955['wasUndone']&&Object['hasOwnProperty']['call'](_0x12d955,'wasUndone')&&_0x175832['uint32'](0x28)['bool'](_0x12d955['wasUndone']),_0x175832;},_0x2aab43['encodeDelimited']=function(_0xd302e1,_0x267a0d){return this['encode'](_0xd302e1,_0x267a0d)['ldelim']();},_0x2aab43['decode']=function(_0x5099b2,_0x538bc5){_0x5099b2 instanceof _0x472bc5||(_0x5099b2=_0x472bc5['create'](_0x5099b2));for(var _0x53e3b6=void 0x0===_0x538bc5?_0x5099b2['len']:_0x5099b2['pos']+_0x538bc5,_0x1beac3=new _0x1516eb['SplitOperation']();_0x5099b2['pos']<_0x53e3b6;){var _0x4e826a=_0x5099b2['uint32']();switch(_0x4e826a>>>0x3){case 0x1:_0x1beac3['splitPosition']=_0x1516eb['Position']['decode'](_0x5099b2,_0x5099b2['uint32']());break;case 0x2:_0x1beac3['graveyardPosition']=_0x1516eb['Position']['decode'](_0x5099b2,_0x5099b2['uint32']());break;case 0x3:_0x1beac3['howMany']=_0x5099b2['uint32']();break;case 0x4:_0x1beac3['insertionPosition']=_0x1516eb['Position']['decode'](_0x5099b2,_0x5099b2['uint32']());break;case 0x5:_0x1beac3['wasUndone']=_0x5099b2['bool']();break;default:_0x5099b2['skipType'](0x7&_0x4e826a);}}return _0x1beac3;},_0x2aab43['decodeDelimited']=function(_0x53d198){return _0x53d198 instanceof _0x472bc5||(_0x53d198=new _0x472bc5(_0x53d198)),this['decode'](_0x53d198,_0x53d198['uint32']());},_0x2aab43['verify']=function(_0x136e8f){if('object'!=typeof _0x136e8f||null===_0x136e8f)return'object\x20expected';var _0x432722;if(null!=_0x136e8f['splitPosition']&&_0x136e8f['hasOwnProperty']('splitPosition')&&(_0x432722=_0x1516eb['Position']['verify'](_0x136e8f['splitPosition'])))return'splitPosition.'+_0x432722;if(null!=_0x136e8f['graveyardPosition']&&_0x136e8f['hasOwnProperty']('graveyardPosition')&&(_0x432722=_0x1516eb['Position']['verify'](_0x136e8f['graveyardPosition'])))return'graveyardPosition.'+_0x432722;if(null!=_0x136e8f['howMany']&&_0x136e8f['hasOwnProperty']('howMany')&&!_0x104d6e['isInteger'](_0x136e8f['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x136e8f['insertionPosition']&&_0x136e8f['hasOwnProperty']('insertionPosition')&&(_0x432722=_0x1516eb['Position']['verify'](_0x136e8f['insertionPosition'])))return'insertionPosition.'+_0x432722;return null!=_0x136e8f['wasUndone']&&_0x136e8f['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x136e8f['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x2aab43['fromObject']=function(_0x776e56){if(_0x776e56 instanceof _0x1516eb['SplitOperation'])return _0x776e56;var _0x24fb85=new _0x1516eb['SplitOperation']();if(null!=_0x776e56['splitPosition']){if('object'!=typeof _0x776e56['splitPosition'])throw TypeError('.SplitOperation.splitPosition:\x20object\x20expected');_0x24fb85['splitPosition']=_0x1516eb['Position']['fromObject'](_0x776e56['splitPosition']);}if(null!=_0x776e56['graveyardPosition']){if('object'!=typeof _0x776e56['graveyardPosition'])throw TypeError('.SplitOperation.graveyardPosition:\x20object\x20expected');_0x24fb85['graveyardPosition']=_0x1516eb['Position']['fromObject'](_0x776e56['graveyardPosition']);}if(null!=_0x776e56['howMany']&&(_0x24fb85['howMany']=_0x776e56['howMany']>>>0x0),null!=_0x776e56['insertionPosition']){if('object'!=typeof _0x776e56['insertionPosition'])throw TypeError('.SplitOperation.insertionPosition:\x20object\x20expected');_0x24fb85['insertionPosition']=_0x1516eb['Position']['fromObject'](_0x776e56['insertionPosition']);}return null!=_0x776e56['wasUndone']&&(_0x24fb85['wasUndone']=Boolean(_0x776e56['wasUndone'])),_0x24fb85;},_0x2aab43['toObject']=function(_0x555467,_0x48a4e4){_0x48a4e4||(_0x48a4e4={});var _0x2bcbc2={};return _0x48a4e4['defaults']&&(_0x2bcbc2['splitPosition']=null,_0x2bcbc2['graveyardPosition']=null,_0x2bcbc2['howMany']=0x0,_0x2bcbc2['insertionPosition']=null,_0x2bcbc2['wasUndone']=!0x1),null!=_0x555467['splitPosition']&&_0x555467['hasOwnProperty']('splitPosition')&&(_0x2bcbc2['splitPosition']=_0x1516eb['Position']['toObject'](_0x555467['splitPosition'],_0x48a4e4)),null!=_0x555467['graveyardPosition']&&_0x555467['hasOwnProperty']('graveyardPosition')&&(_0x2bcbc2['graveyardPosition']=_0x1516eb['Position']['toObject'](_0x555467['graveyardPosition'],_0x48a4e4)),null!=_0x555467['howMany']&&_0x555467['hasOwnProperty']('howMany')&&(_0x2bcbc2['howMany']=_0x555467['howMany']),null!=_0x555467['insertionPosition']&&_0x555467['hasOwnProperty']('insertionPosition')&&(_0x2bcbc2['insertionPosition']=_0x1516eb['Position']['toObject'](_0x555467['insertionPosition'],_0x48a4e4)),null!=_0x555467['wasUndone']&&_0x555467['hasOwnProperty']('wasUndone')&&(_0x2bcbc2['wasUndone']=_0x555467['wasUndone']),_0x2bcbc2;},_0x2aab43['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2aab43['getTypeUrl']=function(_0x8e77eb){return void 0x0===_0x8e77eb&&(_0x8e77eb='type.googleapis.com'),_0x8e77eb+'/SplitOperation';},_0x2aab43;}()),_0x1516eb['Position']=(function(){function _0x328063(_0x4af337){if(this['path']=[],_0x4af337){for(var _0x157033=Object['keys'](_0x4af337),_0x20eb61=0x0;_0x20eb61<_0x157033['length'];++_0x20eb61)null!=_0x4af337[_0x157033[_0x20eb61]]&&(this[_0x157033[_0x20eb61]]=_0x4af337[_0x157033[_0x20eb61]]);}}return _0x328063['prototype']['root']='',_0x328063['prototype']['rootMain']=!0x1,_0x328063['prototype']['rootGraveyard']=!0x1,_0x328063['prototype']['path']=_0x104d6e['emptyArray'],_0x328063['prototype']['stickiness']='',_0x328063['create']=function(_0x280fc0){return new _0x328063(_0x280fc0);},_0x328063['encode']=function(_0x26085a,_0x5dbf79){if(_0x5dbf79||(_0x5dbf79=_0x39e296['create']()),null!=_0x26085a['root']&&Object['hasOwnProperty']['call'](_0x26085a,'root')&&_0x5dbf79['uint32'](0xa)['string'](_0x26085a['root']),null!=_0x26085a['rootMain']&&Object['hasOwnProperty']['call'](_0x26085a,'rootMain')&&_0x5dbf79['uint32'](0x10)['bool'](_0x26085a['rootMain']),null!=_0x26085a['rootGraveyard']&&Object['hasOwnProperty']['call'](_0x26085a,'rootGraveyard')&&_0x5dbf79['uint32'](0x18)['bool'](_0x26085a['rootGraveyard']),null!=_0x26085a['path']&&_0x26085a['path']['length']){_0x5dbf79['uint32'](0x22)['fork']();for(var _0x586f07=0x0;_0x586f07<_0x26085a['path']['length'];++_0x586f07)_0x5dbf79['uint32'](_0x26085a['path'][_0x586f07]);_0x5dbf79['ldelim']();}return null!=_0x26085a['stickiness']&&Object['hasOwnProperty']['call'](_0x26085a,'stickiness')&&_0x5dbf79['uint32'](0x2a)['string'](_0x26085a['stickiness']),_0x5dbf79;},_0x328063['encodeDelimited']=function(_0x512c05,_0x56e8bf){return this['encode'](_0x512c05,_0x56e8bf)['ldelim']();},_0x328063['decode']=function(_0x40717d,_0x4822a4){_0x40717d instanceof _0x472bc5||(_0x40717d=_0x472bc5['create'](_0x40717d));for(var _0x41ac4e=void 0x0===_0x4822a4?_0x40717d['len']:_0x40717d['pos']+_0x4822a4,_0x53d3bd=new _0x1516eb['Position']();_0x40717d['pos']<_0x41ac4e;){var _0xacd4fe=_0x40717d['uint32']();switch(_0xacd4fe>>>0x3){case 0x1:_0x53d3bd['root']=_0x40717d['string']();break;case 0x2:_0x53d3bd['rootMain']=_0x40717d['bool']();break;case 0x3:_0x53d3bd['rootGraveyard']=_0x40717d['bool']();break;case 0x4:if(_0x53d3bd['path']&&_0x53d3bd['path']['length']||(_0x53d3bd['path']=[]),0x2==(0x7&_0xacd4fe)){for(var _0x3bee26=_0x40717d['uint32']()+_0x40717d['pos'];_0x40717d['pos']<_0x3bee26;)_0x53d3bd['path']['push'](_0x40717d['uint32']());}else _0x53d3bd['path']['push'](_0x40717d['uint32']());break;case 0x5:_0x53d3bd['stickiness']=_0x40717d['string']();break;default:_0x40717d['skipType'](0x7&_0xacd4fe);}}return _0x53d3bd;},_0x328063['decodeDelimited']=function(_0x336ef9){return _0x336ef9 instanceof _0x472bc5||(_0x336ef9=new _0x472bc5(_0x336ef9)),this['decode'](_0x336ef9,_0x336ef9['uint32']());},_0x328063['verify']=function(_0x3dedd7){if('object'!=typeof _0x3dedd7||null===_0x3dedd7)return'object\x20expected';if(null!=_0x3dedd7['root']&&_0x3dedd7['hasOwnProperty']('root')&&!_0x104d6e['isString'](_0x3dedd7['root']))return'root:\x20string\x20expected';if(null!=_0x3dedd7['rootMain']&&_0x3dedd7['hasOwnProperty']('rootMain')&&'boolean'!=typeof _0x3dedd7['rootMain'])return'rootMain:\x20boolean\x20expected';if(null!=_0x3dedd7['rootGraveyard']&&_0x3dedd7['hasOwnProperty']('rootGraveyard')&&'boolean'!=typeof _0x3dedd7['rootGraveyard'])return'rootGraveyard:\x20boolean\x20expected';if(null!=_0x3dedd7['path']&&_0x3dedd7['hasOwnProperty']('path')){if(!Array['isArray'](_0x3dedd7['path']))return'path:\x20array\x20expected';for(var _0x332b46=0x0;_0x332b46<_0x3dedd7['path']['length'];++_0x332b46)if(!_0x104d6e['isInteger'](_0x3dedd7['path'][_0x332b46]))return'path:\x20integer[]\x20expected';}return null!=_0x3dedd7['stickiness']&&_0x3dedd7['hasOwnProperty']('stickiness')&&!_0x104d6e['isString'](_0x3dedd7['stickiness'])?'stickiness:\x20string\x20expected':null;},_0x328063['fromObject']=function(_0x9b4863){if(_0x9b4863 instanceof _0x1516eb['Position'])return _0x9b4863;var _0x1e05f7=new _0x1516eb['Position']();if(null!=_0x9b4863['root']&&(_0x1e05f7['root']=String(_0x9b4863['root'])),null!=_0x9b4863['rootMain']&&(_0x1e05f7['rootMain']=Boolean(_0x9b4863['rootMain'])),null!=_0x9b4863['rootGraveyard']&&(_0x1e05f7['rootGraveyard']=Boolean(_0x9b4863['rootGraveyard'])),_0x9b4863['path']){if(!Array['isArray'](_0x9b4863['path']))throw TypeError('.Position.path:\x20array\x20expected');_0x1e05f7['path']=[];for(var _0x56857b=0x0;_0x56857b<_0x9b4863['path']['length'];++_0x56857b)_0x1e05f7['path'][_0x56857b]=_0x9b4863['path'][_0x56857b]>>>0x0;}return null!=_0x9b4863['stickiness']&&(_0x1e05f7['stickiness']=String(_0x9b4863['stickiness'])),_0x1e05f7;},_0x328063['toObject']=function(_0x2aca30,_0x5ba895){_0x5ba895||(_0x5ba895={});var _0x3cc226={};if((_0x5ba895['arrays']||_0x5ba895['defaults'])&&(_0x3cc226['path']=[]),_0x5ba895['defaults']&&(_0x3cc226['root']='',_0x3cc226['rootMain']=!0x1,_0x3cc226['rootGraveyard']=!0x1,_0x3cc226['stickiness']=''),null!=_0x2aca30['root']&&_0x2aca30['hasOwnProperty']('root')&&(_0x3cc226['root']=_0x2aca30['root']),null!=_0x2aca30['rootMain']&&_0x2aca30['hasOwnProperty']('rootMain')&&(_0x3cc226['rootMain']=_0x2aca30['rootMain']),null!=_0x2aca30['rootGraveyard']&&_0x2aca30['hasOwnProperty']('rootGraveyard')&&(_0x3cc226['rootGraveyard']=_0x2aca30['rootGraveyard']),_0x2aca30['path']&&_0x2aca30['path']['length']){_0x3cc226['path']=[];for(var _0x45e44a=0x0;_0x45e44a<_0x2aca30['path']['length'];++_0x45e44a)_0x3cc226['path'][_0x45e44a]=_0x2aca30['path'][_0x45e44a];}return null!=_0x2aca30['stickiness']&&_0x2aca30['hasOwnProperty']('stickiness')&&(_0x3cc226['stickiness']=_0x2aca30['stickiness']),_0x3cc226;},_0x328063['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x328063['getTypeUrl']=function(_0xdfb952){return void 0x0===_0xdfb952&&(_0xdfb952='type.googleapis.com'),_0xdfb952+'/Position';},_0x328063;}()),_0x1516eb['Range']=(function(){function _0x42074(_0x5bc832){if(_0x5bc832){for(var _0x4f9690=Object['keys'](_0x5bc832),_0x577608=0x0;_0x577608<_0x4f9690['length'];++_0x577608)null!=_0x5bc832[_0x4f9690[_0x577608]]&&(this[_0x4f9690[_0x577608]]=_0x5bc832[_0x4f9690[_0x577608]]);}}return _0x42074['prototype']['start']=null,_0x42074['prototype']['end']=null,_0x42074['create']=function(_0x1eec82){return new _0x42074(_0x1eec82);},_0x42074['encode']=function(_0x1ff78f,_0xfcb95d){return _0xfcb95d||(_0xfcb95d=_0x39e296['create']()),null!=_0x1ff78f['start']&&Object['hasOwnProperty']['call'](_0x1ff78f,'start')&&_0x1516eb['Position']['encode'](_0x1ff78f['start'],_0xfcb95d['uint32'](0xa)['fork']())['ldelim'](),null!=_0x1ff78f['end']&&Object['hasOwnProperty']['call'](_0x1ff78f,'end')&&_0x1516eb['Position']['encode'](_0x1ff78f['end'],_0xfcb95d['uint32'](0x12)['fork']())['ldelim'](),_0xfcb95d;},_0x42074['encodeDelimited']=function(_0x2b77a0,_0x4ec13a){return this['encode'](_0x2b77a0,_0x4ec13a)['ldelim']();},_0x42074['decode']=function(_0xf00722,_0x49cd8f){_0xf00722 instanceof _0x472bc5||(_0xf00722=_0x472bc5['create'](_0xf00722));for(var _0x2c4236=void 0x0===_0x49cd8f?_0xf00722['len']:_0xf00722['pos']+_0x49cd8f,_0x547edb=new _0x1516eb['Range']();_0xf00722['pos']<_0x2c4236;){var _0x3d4219=_0xf00722['uint32']();switch(_0x3d4219>>>0x3){case 0x1:_0x547edb['start']=_0x1516eb['Position']['decode'](_0xf00722,_0xf00722['uint32']());break;case 0x2:_0x547edb['end']=_0x1516eb['Position']['decode'](_0xf00722,_0xf00722['uint32']());break;default:_0xf00722['skipType'](0x7&_0x3d4219);}}return _0x547edb;},_0x42074['decodeDelimited']=function(_0x18168a){return _0x18168a instanceof _0x472bc5||(_0x18168a=new _0x472bc5(_0x18168a)),this['decode'](_0x18168a,_0x18168a['uint32']());},_0x42074['verify']=function(_0x579996){if('object'!=typeof _0x579996||null===_0x579996)return'object\x20expected';var _0x36592a;if(null!=_0x579996['start']&&_0x579996['hasOwnProperty']('start')&&(_0x36592a=_0x1516eb['Position']['verify'](_0x579996['start'])))return'start.'+_0x36592a;if(null!=_0x579996['end']&&_0x579996['hasOwnProperty']('end')&&(_0x36592a=_0x1516eb['Position']['verify'](_0x579996['end'])))return'end.'+_0x36592a;return null;},_0x42074['fromObject']=function(_0x222ea3){if(_0x222ea3 instanceof _0x1516eb['Range'])return _0x222ea3;var _0x517f05=new _0x1516eb['Range']();if(null!=_0x222ea3['start']){if('object'!=typeof _0x222ea3['start'])throw TypeError('.Range.start:\x20object\x20expected');_0x517f05['start']=_0x1516eb['Position']['fromObject'](_0x222ea3['start']);}if(null!=_0x222ea3['end']){if('object'!=typeof _0x222ea3['end'])throw TypeError('.Range.end:\x20object\x20expected');_0x517f05['end']=_0x1516eb['Position']['fromObject'](_0x222ea3['end']);}return _0x517f05;},_0x42074['toObject']=function(_0x324419,_0x3f47a5){_0x3f47a5||(_0x3f47a5={});var _0x5aacb9={};return _0x3f47a5['defaults']&&(_0x5aacb9['start']=null,_0x5aacb9['end']=null),null!=_0x324419['start']&&_0x324419['hasOwnProperty']('start')&&(_0x5aacb9['start']=_0x1516eb['Position']['toObject'](_0x324419['start'],_0x3f47a5)),null!=_0x324419['end']&&_0x324419['hasOwnProperty']('end')&&(_0x5aacb9['end']=_0x1516eb['Position']['toObject'](_0x324419['end'],_0x3f47a5)),_0x5aacb9;},_0x42074['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x42074['getTypeUrl']=function(_0x3791b5){return void 0x0===_0x3791b5&&(_0x3791b5='type.googleapis.com'),_0x3791b5+'/Range';},_0x42074;}()),_0x1516eb['Element']=(function(){function _0x264f29(_0x3f30e1){if(this['children']=[],this['attributesBoolean']={},_0x3f30e1){for(var _0x25a2e2=Object['keys'](_0x3f30e1),_0x2a87e8=0x0;_0x2a87e8<_0x25a2e2['length'];++_0x2a87e8)null!=_0x3f30e1[_0x25a2e2[_0x2a87e8]]&&(this[_0x25a2e2[_0x2a87e8]]=_0x3f30e1[_0x25a2e2[_0x2a87e8]]);}}return _0x264f29['prototype']['name']='',_0x264f29['prototype']['children']=_0x104d6e['emptyArray'],_0x264f29['prototype']['data']='',_0x264f29['prototype']['attributesBoolean']=_0x104d6e['emptyObject'],_0x264f29['prototype']['attributesJson']='',_0x264f29['create']=function(_0x290383){return new _0x264f29(_0x290383);},_0x264f29['encode']=function(_0x325668,_0x1bb693){if(_0x1bb693||(_0x1bb693=_0x39e296['create']()),null!=_0x325668['name']&&Object['hasOwnProperty']['call'](_0x325668,'name')&&_0x1bb693['uint32'](0xa)['string'](_0x325668['name']),null!=_0x325668['children']&&_0x325668['children']['length']){for(var _0x49f592=0x0;_0x49f592<_0x325668['children']['length'];++_0x49f592)_0x1516eb['Element']['encode'](_0x325668['children'][_0x49f592],_0x1bb693['uint32'](0x12)['fork']())['ldelim']();}if(null!=_0x325668['data']&&Object['hasOwnProperty']['call'](_0x325668,'data')&&_0x1bb693['uint32'](0x1a)['string'](_0x325668['data']),null!=_0x325668['attributesBoolean']&&Object['hasOwnProperty']['call'](_0x325668,'attributesBoolean')){var _0x335a05=Object['keys'](_0x325668['attributesBoolean']);for(_0x49f592=0x0;_0x49f592<_0x335a05['length'];++_0x49f592)_0x1bb693['uint32'](0x22)['fork']()['uint32'](0xa)['string'](_0x335a05[_0x49f592])['uint32'](0x10)['bool'](_0x325668['attributesBoolean'][_0x335a05[_0x49f592]])['ldelim']();}return null!=_0x325668['attributesJson']&&Object['hasOwnProperty']['call'](_0x325668,'attributesJson')&&_0x1bb693['uint32'](0x2a)['string'](_0x325668['attributesJson']),_0x1bb693;},_0x264f29['encodeDelimited']=function(_0x3bb107,_0x1113fd){return this['encode'](_0x3bb107,_0x1113fd)['ldelim']();},_0x264f29['decode']=function(_0x50d98d,_0x235783){_0x50d98d instanceof _0x472bc5||(_0x50d98d=_0x472bc5['create'](_0x50d98d));for(var _0x50bafa,_0x1ce58c,_0x2b6fc9=void 0x0===_0x235783?_0x50d98d['len']:_0x50d98d['pos']+_0x235783,_0x3f2bd5=new _0x1516eb['Element']();_0x50d98d['pos']<_0x2b6fc9;){var _0x5c83aa=_0x50d98d['uint32']();switch(_0x5c83aa>>>0x3){case 0x1:_0x3f2bd5['name']=_0x50d98d['string']();break;case 0x2:_0x3f2bd5['children']&&_0x3f2bd5['children']['length']||(_0x3f2bd5['children']=[]),_0x3f2bd5['children']['push'](_0x1516eb['Element']['decode'](_0x50d98d,_0x50d98d['uint32']()));break;case 0x3:_0x3f2bd5['data']=_0x50d98d['string']();break;case 0x4:_0x3f2bd5['attributesBoolean']===_0x104d6e['emptyObject']&&(_0x3f2bd5['attributesBoolean']={});var _0x175b83=_0x50d98d['uint32']()+_0x50d98d['pos'];for(_0x50bafa='',_0x1ce58c=!0x1;_0x50d98d['pos']<_0x175b83;){var _0x1891ca=_0x50d98d['uint32']();switch(_0x1891ca>>>0x3){case 0x1:_0x50bafa=_0x50d98d['string']();break;case 0x2:_0x1ce58c=_0x50d98d['bool']();break;default:_0x50d98d['skipType'](0x7&_0x1891ca);}}_0x3f2bd5['attributesBoolean'][_0x50bafa]=_0x1ce58c;break;case 0x5:_0x3f2bd5['attributesJson']=_0x50d98d['string']();break;default:_0x50d98d['skipType'](0x7&_0x5c83aa);}}return _0x3f2bd5;},_0x264f29['decodeDelimited']=function(_0x431a9a){return _0x431a9a instanceof _0x472bc5||(_0x431a9a=new _0x472bc5(_0x431a9a)),this['decode'](_0x431a9a,_0x431a9a['uint32']());},_0x264f29['verify']=function(_0x3d943a){if('object'!=typeof _0x3d943a||null===_0x3d943a)return'object\x20expected';if(null!=_0x3d943a['name']&&_0x3d943a['hasOwnProperty']('name')&&!_0x104d6e['isString'](_0x3d943a['name']))return'name:\x20string\x20expected';if(null!=_0x3d943a['children']&&_0x3d943a['hasOwnProperty']('children')){if(!Array['isArray'](_0x3d943a['children']))return'children:\x20array\x20expected';for(var _0x219fa2=0x0;_0x219fa2<_0x3d943a['children']['length'];++_0x219fa2){var _0x2b9427=_0x1516eb['Element']['verify'](_0x3d943a['children'][_0x219fa2]);if(_0x2b9427)return'children.'+_0x2b9427;}}if(null!=_0x3d943a['data']&&_0x3d943a['hasOwnProperty']('data')&&!_0x104d6e['isString'](_0x3d943a['data']))return'data:\x20string\x20expected';if(null!=_0x3d943a['attributesBoolean']&&_0x3d943a['hasOwnProperty']('attributesBoolean')){if(!_0x104d6e['isObject'](_0x3d943a['attributesBoolean']))return'attributesBoolean:\x20object\x20expected';var _0x27af94=Object['keys'](_0x3d943a['attributesBoolean']);for(_0x219fa2=0x0;_0x219fa2<_0x27af94['length'];++_0x219fa2)if('boolean'!=typeof _0x3d943a['attributesBoolean'][_0x27af94[_0x219fa2]])return'attributesBoolean:\x20boolean{k:string}\x20expected';}return null!=_0x3d943a['attributesJson']&&_0x3d943a['hasOwnProperty']('attributesJson')&&!_0x104d6e['isString'](_0x3d943a['attributesJson'])?'attributesJson:\x20string\x20expected':null;},_0x264f29['fromObject']=function(_0x26cfd8){if(_0x26cfd8 instanceof _0x1516eb['Element'])return _0x26cfd8;var _0x5d3f43=new _0x1516eb['Element']();if(null!=_0x26cfd8['name']&&(_0x5d3f43['name']=String(_0x26cfd8['name'])),_0x26cfd8['children']){if(!Array['isArray'](_0x26cfd8['children']))throw TypeError('.Element.children:\x20array\x20expected');_0x5d3f43['children']=[];for(var _0x3de56d=0x0;_0x3de56d<_0x26cfd8['children']['length'];++_0x3de56d){if('object'!=typeof _0x26cfd8['children'][_0x3de56d])throw TypeError('.Element.children:\x20object\x20expected');_0x5d3f43['children'][_0x3de56d]=_0x1516eb['Element']['fromObject'](_0x26cfd8['children'][_0x3de56d]);}}if(null!=_0x26cfd8['data']&&(_0x5d3f43['data']=String(_0x26cfd8['data'])),_0x26cfd8['attributesBoolean']){if('object'!=typeof _0x26cfd8['attributesBoolean'])throw TypeError('.Element.attributesBoolean:\x20object\x20expected');_0x5d3f43['attributesBoolean']={};var _0x42be82=Object['keys'](_0x26cfd8['attributesBoolean']);for(_0x3de56d=0x0;_0x3de56d<_0x42be82['length'];++_0x3de56d)_0x5d3f43['attributesBoolean'][_0x42be82[_0x3de56d]]=Boolean(_0x26cfd8['attributesBoolean'][_0x42be82[_0x3de56d]]);}return null!=_0x26cfd8['attributesJson']&&(_0x5d3f43['attributesJson']=String(_0x26cfd8['attributesJson'])),_0x5d3f43;},_0x264f29['toObject']=function(_0x340642,_0x5618fa){_0x5618fa||(_0x5618fa={});var _0xbe436b,_0x593071={};if((_0x5618fa['arrays']||_0x5618fa['defaults'])&&(_0x593071['children']=[]),(_0x5618fa['objects']||_0x5618fa['defaults'])&&(_0x593071['attributesBoolean']={}),_0x5618fa['defaults']&&(_0x593071['name']='',_0x593071['data']='',_0x593071['attributesJson']=''),null!=_0x340642['name']&&_0x340642['hasOwnProperty']('name')&&(_0x593071['name']=_0x340642['name']),_0x340642['children']&&_0x340642['children']['length']){_0x593071['children']=[];for(var _0x5d3662=0x0;_0x5d3662<_0x340642['children']['length'];++_0x5d3662)_0x593071['children'][_0x5d3662]=_0x1516eb['Element']['toObject'](_0x340642['children'][_0x5d3662],_0x5618fa);}if(null!=_0x340642['data']&&_0x340642['hasOwnProperty']('data')&&(_0x593071['data']=_0x340642['data']),_0x340642['attributesBoolean']&&(_0xbe436b=Object['keys'](_0x340642['attributesBoolean']))['length']){_0x593071['attributesBoolean']={};for(_0x5d3662=0x0;_0x5d3662<_0xbe436b['length'];++_0x5d3662)_0x593071['attributesBoolean'][_0xbe436b[_0x5d3662]]=_0x340642['attributesBoolean'][_0xbe436b[_0x5d3662]];}return null!=_0x340642['attributesJson']&&_0x340642['hasOwnProperty']('attributesJson')&&(_0x593071['attributesJson']=_0x340642['attributesJson']),_0x593071;},_0x264f29['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x264f29['getTypeUrl']=function(_0x40cb76){return void 0x0===_0x40cb76&&(_0x40cb76='type.googleapis.com'),_0x40cb76+'/Element';},_0x264f29;}()),_0x1516eb;})());class ProtobufFactory{['_protobufRoot'];constructor(){this['_protobufRoot']=messages;}['getDescriptor'](_0x4423bc){return new ProtobufDescriptor(this['_protobufRoot'][_0x4423bc]);}}class ProtobufDescriptor{['_protobuf'];constructor(_0x2af5bd){this['_protobuf']=_0x2af5bd;}['compress'](_0x9acfa3){const _0x3202e2=this['_protobuf']['verify'](_0x9acfa3);if(_0x3202e2)throw Error(_0x3202e2);return this['_protobuf']['encode'](this['_protobuf']['create'](_0x9acfa3))['finish']();}['decompress'](_0x406c82){return this['_protobuf']['toObject'](this['_protobuf']['decode'](_0x406c82),{'oneofs':!0x0});}}function getPositionShiftedBy(_0x45fcef,_0x3e4810){const _0x53a4dc=cloneDeep(_0x45fcef);return _0x53a4dc['path'][_0x53a4dc['path']['length']-0x1]+=_0x3e4810,_0x53a4dc;}function arePositionsEqual(_0x126b17,_0x4af37f){return _0x126b17['root']===_0x4af37f['root']&&isEqual(_0x126b17['path'],_0x4af37f['path']);}function parsePositionBeforeCompression(_0x45c7f9){_mapPositions(_0x45c7f9,_0x5eb7a0=>('main'==_0x5eb7a0['root']?(_0x5eb7a0['rootMain']=!0x0,delete _0x5eb7a0['root']):'$graveyard'==_0x5eb7a0['root']&&(_0x5eb7a0['rootGraveyard']=!0x0,delete _0x5eb7a0['root']),_0x5eb7a0));}function parsePositionAfterCompression(_0x35fd9){_mapPositions(_0x35fd9,_0x958be8=>(_0x958be8['rootMain']?(_0x958be8['root']='main',delete _0x958be8['rootMain']):_0x958be8['rootGraveyard']&&(_0x958be8['root']='$graveyard',delete _0x958be8['rootGraveyard']),_0x958be8));}function _mapPositions(_0x564881,_0x1e2034){for(const _0x5578a1 in _0x564881){const _0x34af82=_0x564881[_0x5578a1];'nodes'!==_0x5578a1&&isObject$3(_0x34af82)&&(_0x34af82['path']&&(_0x34af82['root']||_0x34af82['rootMain']||_0x34af82['rootGraveyard'])?_0x564881[_0x5578a1]=_0x1e2034(_0x34af82):_mapPositions(_0x34af82,_0x1e2034));}return _0x564881;}class OperationCompressor{['_id'];['_operationName'];['_protobufDescriptor'];constructor(_0x7cfdd4,_0x5bef0f,_0x542075){this['_id']=_0x7cfdd4,this['_operationName']=_0x5bef0f,this['_protobufDescriptor']=_0x542075;}['compress'](_0xde17b4,_0x475dc4){const _0x1caf32=_0x475dc4['operations'][_0x475dc4['index']++];return parsePositionBeforeCompression(_0x1caf32),_0xde17b4['buffers']['push'](this['_protobufDescriptor']['compress'](_0x1caf32)),_0xde17b4['types']['push'](this['_id']),!0x0;}['decompress'](_0x2ab321,_0x318bf4){_0x318bf4['typeIndex']++;const _0x1c7652=_0x318bf4['buffers'][_0x318bf4['bufferIndex']++],_0x4cb398=this['_protobufDescriptor']['decompress'](_0x1c7652);parsePositionAfterCompression(_0x4cb398),_0x4cb398['__className']=this['_operationName'],_0x2ab321['push'](_0x4cb398);}}class AttributeOperationCompressor extends OperationCompressor{['compress'](_0x109f10,_0x11d950){const _0x44d03b=_0x11d950['operations'][_0x11d950['index']++];return this['_serializeOneOf']('oldValue',_0x44d03b),this['_serializeOneOf']('newValue',_0x44d03b),parsePositionBeforeCompression(_0x44d03b),_0x109f10['buffers']['push'](this['_protobufDescriptor']['compress'](_0x44d03b)),_0x109f10['types']['push'](this['_id']),!0x0;}['decompress'](_0x34ca1f,_0x12bba1){_0x12bba1['typeIndex']++;const _0x48bab5=_0x12bba1['buffers'][_0x12bba1['bufferIndex']++],_0x5f37da=this['_protobufDescriptor']['decompress'](_0x48bab5);this['_deserializeOneOf']('oldValue',_0x5f37da),this['_deserializeOneOf']('newValue',_0x5f37da),parsePositionAfterCompression(_0x5f37da),_0x5f37da['__className']=this['_operationName'],_0x34ca1f['push'](_0x5f37da);}['_serializeOneOf'](_0x23785e,_0x51d07f){const _0xa8850f=_0x51d07f[_0x23785e];'boolean'==typeof _0xa8850f?_0x51d07f[_0x23785e+'Boolean']=_0xa8850f:_0x51d07f[_0x23785e+'Json']=JSON['stringify'](_0xa8850f);}['_deserializeOneOf'](_0x4e3453,_0x23768e){const _0x1b041f=_0x4e3453+'Json';_0x23768e[_0x1b041f]?(_0x23768e[_0x4e3453]=JSON['parse'](_0x23768e[_0x1b041f]),delete _0x23768e[_0x1b041f]):(_0x23768e[_0x4e3453]=_0x23768e[_0x4e3453+'Boolean'],delete _0x23768e[_0x4e3453+'Boolean']);}}class InsertOperationCompressor extends OperationCompressor{['compress'](_0x45659c,_0x8e5189){const _0x3c67fc=_0x8e5189['operations'][_0x8e5189['index']++];return this['_serializeNodesAttributes'](_0x3c67fc['nodes']),parsePositionBeforeCompression(_0x3c67fc),_0x45659c['buffers']['push'](this['_protobufDescriptor']['compress'](_0x3c67fc)),_0x45659c['types']['push'](this['_id']),!0x0;}['decompress'](_0x5e01a8,_0xf43f17){_0xf43f17['typeIndex']++;const _0x3355d5=_0xf43f17['buffers'][_0xf43f17['bufferIndex']++],_0x1b4d4f=this['_protobufDescriptor']['decompress'](_0x3355d5);_0x1b4d4f['nodes']||(_0x1b4d4f['nodes']=[]),this['_deserializeNodesAttributes'](_0x1b4d4f['nodes']),parsePositionAfterCompression(_0x1b4d4f),_0x1b4d4f['__className']=this['_operationName'],_0x5e01a8['push'](_0x1b4d4f);}['_serializeNodesAttributes'](_0x14f76e){for(const _0x127d98 of _0x14f76e){if(_0x127d98['attributes']){const _0x4de735=_0x127d98['attributes'];this['_areValuesBoolean'](_0x4de735)?_0x127d98['attributesBoolean']=_0x4de735:_0x127d98['attributesJson']=JSON['stringify'](_0x4de735);}_0x127d98['children']&&this['_serializeNodesAttributes'](_0x127d98['children']);}}['_deserializeNodesAttributes'](_0x2459e4){for(const _0x48e58b of _0x2459e4)(_0x48e58b['attributesBoolean']||_0x48e58b['attributesJson'])&&(_0x48e58b['attributesBoolean']?(_0x48e58b['attributes']=_0x48e58b['attributesBoolean'],delete _0x48e58b['attributesBoolean']):(_0x48e58b['attributes']=JSON['parse'](_0x48e58b['attributesJson']),delete _0x48e58b['attributesJson'])),_0x48e58b['children']&&this['_deserializeNodesAttributes'](_0x48e58b['children']);}['_areValuesBoolean'](_0x38144c){return Object['keys'](_0x38144c)['every'](_0x59a818=>'boolean'==typeof _0x38144c[_0x59a818]);}}class MarkerOperationCompressor extends OperationCompressor{['decompress'](_0x3f8982,_0x5de503){super['decompress'](_0x3f8982,_0x5de503);const _0x51ac81=_0x3f8982[_0x3f8982['length']-0x1];_0x51ac81['oldRange']||(_0x51ac81['oldRange']=null),_0x51ac81['newRange']||(_0x51ac81['newRange']=null);}}class NoOperationCompressor extends OperationCompressor{['compress'](_0x44c370,_0x1a7ee7){return _0x1a7ee7['index']++,_0x44c370['types']['push'](this['_id']),!0x0;}['decompress'](_0x119aca,_0x1630ef){_0x1630ef['typeIndex']++,_0x119aca['push']({'__className':this['_operationName']});}}class AnnotationMarkerOperationCompressor extends MarkerOperationCompressor{['_omittedNamespace'];constructor(_0x44fcf9,_0x11c332,_0x1c2ac4,_0x4b3a94){super(_0x44fcf9,_0x11c332,_0x1c2ac4),this['_omittedNamespace']=_0x4b3a94+':';}['compress'](_0x4e61e9,_0x32eb33){const _0x14def0=_0x32eb33['operations'][_0x32eb33['index']];return!('MarkerOperation'!=_0x14def0['__className']||!_0x14def0['name']['startsWith'](this['_omittedNamespace']))&&(_0x14def0['name']=_0x14def0['name']['replace'](new RegExp('^'+this['_omittedNamespace']),''),super['compress'](_0x4e61e9,_0x32eb33),!0x0);}['decompress'](_0xcd54a6,_0x389120){super['decompress'](_0xcd54a6,_0x389120);const _0x2c629a=_0xcd54a6[_0xcd54a6['length']-0x1];_0x2c629a['name']=this['_omittedNamespace']+_0x2c629a['name'];}}class ActionCompressor{['_id'];['_context'];constructor(_0x10ddc3,_0x57fa10){this['_id']=_0x10ddc3,this['_context']=_0x57fa10;}['compress'](_0x147d2c,_0x6743dd){let _0x484487,_0x467d4a=_0x6743dd['operations'][_0x6743dd['index']],_0x1420a6=_0x6743dd['operations'][_0x6743dd['index']+0x1];for(;_0x1420a6&&this['_compareOperations'](_0x467d4a,_0x1420a6);)_0x484487?(_0x484487=this['_combineNext'](_0x467d4a,_0x484487),_0x147d2c['types']['push'](0x0)):(_0x484487=cloneDeep(_0x467d4a),_0x147d2c['types']['push'](this['_id'])),_0x6743dd['index']++,_0x467d4a=_0x6743dd['operations'][_0x6743dd['index']],_0x1420a6=_0x6743dd['operations'][_0x6743dd['index']+0x1];return!!_0x484487&&(_0x484487=this['_combineNext'](_0x6743dd['operations'][_0x6743dd['index']++],_0x484487),_0x147d2c['types']['push'](0x0),_0x147d2c['buffers']['push'](this['_compressSingleOperation'](_0x484487)),!0x0);}['decompress'](_0x1ba407,_0x1fb315){const _0x68c24c=this['_decompressSingleOperation'](_0x1fb315);for(;0x0==_0x1fb315['types'][_0x1fb315['typeIndex']];)_0x1fb315['typeIndex']++,_0x1ba407['push'](this['_splitCurrent'](_0x68c24c));_0x1ba407['push'](_0x68c24c);}}class TypingActionCompressor extends ActionCompressor{['_combineNext'](_0x26b71e,_0x12a47f){return _0x12a47f['nodes'][0x0]['data']+=_0x26b71e['nodes'][0x0]['data'],_0x12a47f;}['_splitCurrent'](_0xea2b8c){const _0x4bf0d0=cloneDeep(_0xea2b8c),_0x5cdabe=_0x4bf0d0['nodes'][0x0],_0x182c20=_0xea2b8c['nodes'][0x0],_0x45f812=_0x182c20['data'][Symbol['iterator']]()['next']()['value'],_0x414902=_0x45f812['length'];return _0x5cdabe['data']=_0x45f812,_0x182c20['data']=_0x182c20['data']['substr'](_0x414902),_0xea2b8c['position']=getPositionShiftedBy(_0xea2b8c['position'],_0x414902),_0x4bf0d0;}['_compareOperations'](_0x5bf391,_0x4ba0a9){if(this['_checkOperation'](_0x5bf391)&&this['_checkOperation'](_0x4ba0a9)){const _0x253800=_0x5bf391['nodes'][0x0]['data']['length'],_0x100cd2=arePositionsEqual(getPositionShiftedBy(_0x5bf391['position'],_0x253800),_0x4ba0a9['position']),_0x3afb86=_0x5bf391['nodes'][0x0],_0x4bfc9d=_0x4ba0a9['nodes'][0x0];return _0x100cd2&&this['_compareAttributes'](_0x3afb86,_0x4bfc9d);}return!0x1;}['_compressSingleOperation'](_0x4eab12){const _0x2305f9={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('InsertOperation')['compress'](_0x2305f9,{'operations':[_0x4eab12],'index':0x0}),_0x2305f9['buffers'][0x0];}['_decompressSingleOperation'](_0x379319){const _0x575b45=[];return this['_context']['_getCompressorByName']('InsertOperation')['decompress'](_0x575b45,_0x379319),_0x575b45[0x0];}['_checkOperation'](_0x535c01){return'InsertOperation'==_0x535c01['__className']&&0x1==_0x535c01['nodes']['length']&&_0x535c01['nodes'][0x0]['data']&&!_0x535c01['wasUndone']&&0x1==Array['from'](_0x535c01['nodes'][0x0]['data'])['length'];}['_compareAttributes'](_0x187ef6,_0x5e7038){const _0x42e277=Object['keys'](_0x187ef6['attributes']||{}),_0xc35a4=Object['keys'](_0x5e7038['attributes']||{});return _0x42e277['length']===_0xc35a4['length']&&_0x42e277['every'](_0x39d8db=>_0x5e7038['attributes'][_0x39d8db]&&_0x5e7038['attributes'][_0x39d8db]===_0x187ef6['attributes'][_0x39d8db]);}}class DeletingActionCompressor extends ActionCompressor{['_combineNext'](_0xa6c358,_0x38a505){return _0x38a505['howMany']++,_0x38a505['sourcePosition']=cloneDeep(_0xa6c358['sourcePosition']),_0x38a505;}['_splitCurrent'](_0x238290){const _0x40404a=cloneDeep(_0x238290);return _0x238290['howMany']--,_0x40404a['howMany']=0x1,_0x40404a['sourcePosition']=getPositionShiftedBy(_0x40404a['sourcePosition'],_0x238290['howMany']),_0x40404a;}['_compareOperations'](_0x45ce37,_0x41d10d){return!(!this['_checkOperation'](_0x45ce37)||!this['_checkOperation'](_0x41d10d))&&(arePositionsEqual(getPositionShiftedBy(_0x45ce37['sourcePosition'],-0x1),_0x41d10d['sourcePosition'])&&arePositionsEqual(_0x45ce37['targetPosition'],_0x41d10d['targetPosition']));}['_compressSingleOperation'](_0x1183bd){const _0x2fcafb={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x2fcafb,{'operations':[_0x1183bd],'index':0x0}),_0x2fcafb['buffers'][0x0];}['_decompressSingleOperation'](_0x3e04d7){const _0x2fa3dd=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x2fa3dd,_0x3e04d7),_0x2fa3dd[0x0];}['_checkOperation'](_0x3ea6ae){return'MoveOperation'==_0x3ea6ae['__className']&&'$graveyard'==_0x3ea6ae['targetPosition']['root']&&0x1==_0x3ea6ae['howMany']&&!_0x3ea6ae['wasUndone'];}}class ForwardDeletingActionCompressor extends ActionCompressor{['_combineNext'](_0x364d73,_0x2f8463){return _0x2f8463['howMany']++,_0x2f8463;}['_splitCurrent'](_0x18bc53){const _0x9db829=cloneDeep(_0x18bc53);return _0x9db829['howMany']=0x1,_0x18bc53['howMany']--,_0x9db829;}['_compareOperations'](_0x3164ac,_0x4bbe7f){return!(!this['_checkOperation'](_0x3164ac)||!this['_checkOperation'](_0x4bbe7f))&&(arePositionsEqual(_0x3164ac['sourcePosition'],_0x4bbe7f['sourcePosition'])&&arePositionsEqual(_0x3164ac['targetPosition'],_0x4bbe7f['targetPosition']));}['_compressSingleOperation'](_0x6d6780){const _0x584394={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x584394,{'operations':[_0x6d6780],'index':0x0}),_0x584394['buffers'][0x0];}['_decompressSingleOperation'](_0x8bf3a0){const _0xe3da5d=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0xe3da5d,_0x8bf3a0),_0xe3da5d[0x0];}['_checkOperation'](_0x20efe8){return'MoveOperation'==_0x20efe8['__className']&&'$graveyard'==_0x20efe8['targetPosition']['root']&&0x1==_0x20efe8['howMany']&&!_0x20efe8['wasUndone'];}}class UserSelectionActionCompressor extends ActionCompressor{['compress'](_0x39b896,_0x5e729d){if(!this['_compareOperations'](_0x5e729d['operations'][_0x5e729d['index']],_0x5e729d['operations'][_0x5e729d['index']+0x1]))return!0x1;const _0x5685bd=_0x5e729d['operations'][_0x5e729d['index']++];return _0x5685bd['oldRange']=null,_0x5685bd['newRange']&&arePositionsEqual(_0x5685bd['newRange']['start'],_0x5685bd['newRange']['end'])&&(_0x5685bd['newRange']['end']=null),_0x5e729d['index']++,_0x39b896['types']['push'](this['_id']),_0x39b896['types']['push'](0x0),_0x39b896['buffers']['push'](this['_compressSingleOperation'](_0x5685bd)),!0x0;}['decompress'](_0x1dbeef,_0x2fb4a6){const _0x634743=this['_decompressSingleOperation'](_0x2fb4a6);_0x634743['newRange']&&!_0x634743['newRange']['end']&&(_0x634743['newRange']['end']=cloneDeep(_0x634743['newRange']['start']));const _0x2c060b=cloneDeep(_0x634743);_0x2c060b['newRange']&&(_0x2c060b['newRange']['start']['stickiness']='toNone',_0x2c060b['newRange']['end']=cloneDeep(_0x2c060b['newRange']['start'])),_0x2c060b['name']='user:position:'+_0x2c060b['name']['split'](':')[0x2],_0x2fb4a6['typeIndex']++,_0x1dbeef['push'](_0x634743),_0x1dbeef['push'](_0x2c060b);}['_compressSingleOperation'](_0x1b9bb7){const _0x78be2b={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MarkerOperation')['compress'](_0x78be2b,{'operations':[_0x1b9bb7],'index':0x0}),_0x78be2b['buffers'][0x0];}['_decompressSingleOperation'](_0x3aacfc){const _0x46e10c=[];return this['_context']['_getCompressorByName']('MarkerOperation')['decompress'](_0x46e10c,_0x3aacfc),_0x46e10c[0x0];}['_compareOperations'](_0xcf7b5e,_0x13d85a){return!(!_0xcf7b5e||!_0x13d85a)&&('MarkerOperation'==_0xcf7b5e['__className']&&'MarkerOperation'==_0x13d85a['__className']&&!(!_0xcf7b5e['name']['startsWith']('user:')||!_0x13d85a['name']['startsWith']('user:')||_0xcf7b5e['name']==_0x13d85a['name']));}}class Compressor{['_compressorById'];['_compressorByName'];['_protobufFactory'];constructor(){this['_compressorById']=new Map(),this['_compressorByName']=new Map(),this['_protobufFactory']=new ProtobufFactory();const _0x12a2f3=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',_0x12a2f3,'comment')),this['_registerCompressor'](0x13,'SuggestionMarkerOperation',new AnnotationMarkerOperationCompressor(0x13,'MarkerOperation',_0x12a2f3,'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'](_0x462a27){if(!_0x462a27||!_0x462a27[0x0])throw new CKEditorError('no-operations-provided',this);const _0x55163e={'operations':_0x462a27,'index':0x0},_0x768d0={'types':[],'buffers':[],'baseVersion':_0x462a27[0x0]['baseVersion']};for(;_0x55163e['index']<_0x55163e['operations']['length'];){if(this['_getCompressorByName']('UserSelectionAction')['compress'](_0x768d0,_0x55163e))continue;if(this['_getCompressorByName']('TypingAction')['compress'](_0x768d0,_0x55163e))continue;if(this['_getCompressorByName']('DeletingAction')['compress'](_0x768d0,_0x55163e))continue;if(this['_getCompressorByName']('ForwardDeletingAction')['compress'](_0x768d0,_0x55163e))continue;if(this['_getCompressorByName']('CommentMarkerOperation')['compress'](_0x768d0,_0x55163e))continue;if(this['_getCompressorByName']('SuggestionMarkerOperation')['compress'](_0x768d0,_0x55163e))continue;const _0x2196d6=_0x55163e['operations'][_0x55163e['index']]['__className'];this['_getCompressorByName'](_0x2196d6)['compress'](_0x768d0,_0x55163e);}return _0x768d0;}['decompress'](_0x31c4da){const _0x570125=[],_0x1bf139={'types':_0x31c4da['types'],'buffers':_0x31c4da['buffers'],'baseVersion':_0x31c4da['baseVersion'],'typeIndex':0x0,'bufferIndex':0x0};for(;_0x1bf139['typeIndex']<_0x1bf139['types']['length'];){const _0x37c5eb=_0x1bf139['types'][_0x1bf139['typeIndex']],_0xf46a34=this['_compressorById']['get'](_0x37c5eb);if(!_0xf46a34)throw new CKEditorError('decompress-compressor-not-found',this,{'type':_0x37c5eb});_0xf46a34['decompress'](_0x570125,_0x1bf139);}return _0x570125['forEach']((_0xce5b90,_0x25722a)=>_0xce5b90['baseVersion']=_0x31c4da['baseVersion']+_0x25722a),_0x570125;}['_getCompressorByName'](_0x2f85a7){return this['_compressorByName']['get'](_0x2f85a7);}['_registerOperationCompressor'](_0x4244c1,_0x51fe93,_0x31c9a6){const _0x1765eb=new _0x31c9a6(_0x4244c1,_0x51fe93,this['_protobufFactory']['getDescriptor'](_0x51fe93));this['_registerCompressor'](_0x4244c1,_0x51fe93,_0x1765eb);}['_registerActionCompressor'](_0x4342f0,_0x14491d,_0x16bf51){const _0xf042fc=new _0x16bf51(_0x4342f0,this);this['_registerCompressor'](_0x4342f0,_0x14491d,_0xf042fc);}['_registerCompressor'](_0x5bf762,_0x13cf4e,_0x508b54){this['_compressorById']['set'](_0x5bf762,_0x508b54),this['_compressorByName']['set'](_0x13cf4e,_0x508b54);}}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 _0x13a8df=this['serverHistory']['getOperations']();for(let _0xfaeaa1=_0x13a8df['length']-0x1;_0xfaeaa1>=0x0;_0xfaeaa1--){const _0x335cd4=_0x13a8df[_0xfaeaa1];if(!this['_disconnectionOperations']['has'](_0x335cd4))return _0x335cd4['baseVersion']+0x1-this['_offset'];}return 0x0;}constructor(_0x2843d5){if(super(_0x2843d5),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 _0x5d3075=_0x2843d5['config']['get']('cloudServices.bundleVersion')||_0x4bb576;this['_service']=new RealTimeCollaborationClient['CollaborativeEditingService'](_0x5d3075,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 _0x552354=this['editor'],_0x5d4bb3=_0x552354['plugins']['get'](Users),_0x1b8088=_0x552354['plugins']['get'](WebSocketGateway);this['listenTo'](_0x5d4bb3,'getOperationAuthor',(_0x4d1dee,_0x62ac23)=>{const _0xfdb2fb=_0x62ac23[0x0];_0xfdb2fb['_authorId']&&(_0x4d1dee['return']=_0x5d4bb3['getUser'](_0xfdb2fb['_authorId']),_0x4d1dee['stop']()),null===_0xfdb2fb['_authorId']&&(_0x4d1dee['return']=null,_0x4d1dee['stop']());},{'priority':'high'}),this['listenTo'](_0x552354['model']['document']['selection'],'change:range',(_0x5c73c0,_0x3f6ada)=>{_0x3f6ada['directChange']&&this['_refreshUserSelectionMarkers']();}),this['listenTo'](_0x552354['editing']['view'],'change:hasDomSelection',()=>{this['_refreshUserSelectionMarkers']();}),this['_initThrowingOnDataSet'](),_0x552354['model']['on']('applyOperation',(_0x565803,_0x303a9c)=>{const _0x25032a=_0x303a9c[0x0];_0x25032a['isDocumentOperation']&&(this['_saveOperationInBuffer'](_0x25032a),this['_shouldSendUpdate']()&&this['_sendBufferedOperationsDelayed']());}),this['_setUpDataInit'](),this['bind']('_isEditingAllowed')['to'](_0x1b8088,'state',this,'_hasSynchronizationProblem',(_0x4d42dd,_0x5d0913)=>'connected'===_0x4d42dd&&!_0x5d0913),this['on']('change:_isEditingAllowed',()=>{this['_isEditingAllowed']?_0x552354['disableReadOnlyMode']('rtc-offline'):_0x552354['enableReadOnlyMode']('rtc-offline');}),this['_isEditingAllowed']?_0x552354['disableReadOnlyMode']('rtc-offline'):_0x552354['enableReadOnlyMode']('rtc-offline'),this['set']('_isConnected',!0x1);}async['reconnect'](){const _0x25a4d9=this['editor']['plugins']['get'](Sessions),_0x3e0c4d=this['editor']['plugins']['get'](WebSocketGateway);try{this['_isPendingUpdate']=!0x0,_0x25a4d9['unregister'](this['_channelId']);const _0x4012ef=await this['_service']['reconnect'](_0x3e0c4d['connection'],this['lastSyncVersion']);await this['_handleReconnectionResponse'](_0x4012ef)&&(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());const _0x3aeb6f=await this['_service']['getConnectedSessions']();_0x25a4d9['register'](this['_channelId'],_0x3aeb6f),this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}catch(_0x3a9254){if(isSessionNotExistingError(_0x3a9254)&&this['sessionId'])await this['_connectAfterSessionHasBeenFlushed']();else{if(isBaseVersionMismatchError(_0x3a9254)){const _0x4e976e=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'](_0x4e976e);}else{if(!(_0x3a9254 instanceof ReconnectionError))throw _0x3a9254;this['_handleReconnectionError']();}}}}['destroy'](){const _0x4b0412=this['editor']['plugins']['get'](WebSocketGateway),_0x1cfec0=this['editor']['plugins']['get'](Sessions);this['editor']['enableReadOnlyMode']('rtc-destroyed'),_0x1cfec0['channelSessions']['has'](this['_channelId'])&&_0x1cfec0['unregister'](this['_channelId']),_0x4b0412['removeFromReconnectionStack'](this),this['_disconnectService'](),super['destroy']();}async['_handleReconnectionResponse'](_0x4ec9de){if(this['sessionId']!==_0x4ec9de['sessionId']&&this['_lastSyncedOperationId']!==_0x4ec9de['lastOperationId'])throw new ReconnectionError();return this['sessionId']=_0x4ec9de['sessionId'],this['_handleServerResponse']([],{..._0x4ec9de,'wereChangesApplied':!0x1,'data':_0x4ec9de['data']},'reconnect');}async['_connectService'](_0x1997ba,_0x5b6680=!0x1){const {connection:_0x2a8d8e}=this['editor']['plugins']['get'](WebSocketGateway);RealTimeCollaborationClient['CollaborativeEditingService']['getConnectedSessions'](_0x2a8d8e,this['_channelId'])['then'](_0x17cac8=>this['_initSessionsHandling'](_0x17cac8))['catch'](_0x3efbd9=>{this['_crash']('realtimecollaborationclient-init-session-connection-error',_0x3efbd9);}),this['listenTo'](this['_service'],'operationsReceived',this['_handleReceivedOperations']['bind'](this)),this['listenTo'](this['_service'],'error',(_0x1a56e0,_0x52ffb7)=>{this['_crash']('realtimecollaborationclient-init-service-internal-error',_0x52ffb7);}),this['listenTo'](this['_service'],'disconnected',()=>{this['_isConnected']=!0x1;});const _0x4dfe7d=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x1997ba);this['_isPendingUpdate']=!0x0;const _0x26f1ba=await this['_service']['connect'](_0x2a8d8e,this['_compressOperations'](_0x1997ba),_0x4dfe7d);if(this['sessionId']=_0x26f1ba['sessionId'],_0x5b6680){if(!_0x26f1ba['wereChangesApplied'])return void this['_handleReconnectionError']();this['_isPendingUpdate']=!0x1,this['_clearPendingAction'](),this['serverHistory']['reset'](),this['_offset']=_0x26f1ba['offset'],this['serverHistory']['version']=this['_offset'],await this['_handleServerResponse'](_0x1997ba,_0x26f1ba,'reconnection:\x20flushed\x20session');}else await this['_handleInitialConnectionData'](_0x26f1ba,_0x1997ba);this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}['_handleSendingSelectionMarkers'](){const _0x48cfab=this['editor']['plugins']['get'](Sessions),_0x37da67=this['editor']['plugins']['get'](UserMarkers),_0x2218a4=_0x48cfab['channelSessions']['get'](this['_channelId']);_0x2218a4&&_0x2218a4['length']>0x1?_0x37da67['createUserMarkerOperations']():this['listenTo'](_0x48cfab,'sessionAdd:'+this['_channelId'],()=>{0x2===_0x48cfab['channelSessions']['get'](this['_channelId'])['length']&&_0x37da67['createUserMarkerOperations']();});}async['_handleReceivedOperations'](_0x212ea7,_0x3b60a1,_0x364ee8,_0x3e88ac){if(!this['_isPendingUpdate']&&this['_document']['version']==_0x3b60a1){const _0x3b4fd9=this['_decompressOperations'](_0x364ee8,_0x3e88ac);await this['_fetchMissingUsers'](_0x3b4fd9),this['_handleExternalOperations'](_0x3b4fd9,_0x3b60a1,_0x364ee8['lastOperationId'])||this['_crash']('realtimecollaborationclient-init-service-incorrect-server-operation');}}async['_connectAfterSessionHasBeenFlushed'](){this['_disconnectService']();const {locale:_0x118208}=this['editor'];let _0x2d0fc1;try{_0x2d0fc1=await this['_service']['getDocumentDetails']();}catch{const _0x2448ce=getTranslation$6(_0x118208,'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'](_0x2448ce);}const _0x3f1734=_0x2d0fc1['currentDocumentSession']||_0x2d0fc1['lastDocumentSession'];if(this['_lastSyncedOperationId']!==_0x3f1734['lastOperationId']){const _0x279933=getTranslation$6(_0x118208,'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'](_0x279933);}await this['_connectService'](this['editor']['model']['document']['history']['getOperations'](),!0x0);}['_disconnectService'](){this['_service']['disconnect'](),this['_bufferedOperations']=[],clearTimeout(this['_sendBufferedOperationsDelayId']),this['stopListening'](this['_service']);}['_initSessionsHandling'](_0x346ddb){const _0x4f4e02=this['editor']['plugins']['get'](Sessions);this['listenTo'](_0x4f4e02,'sessionAdd:'+this['_channelId'],(_0x2ff5fb,{session:_0x319135})=>{if(_0x319135['id']===_0x4f4e02['mySessionId']){_0x2ff5fb['off']();const _0x5f462e=this['editor']['plugins']['has']('CommentsOnly')&&this['editor']['plugins']['get']('CommentsOnly');let _0x5f400f=_0x319135['permissions'];_0x5f462e&&_0x5f462e['isEnabled']&&(_0x5f400f=_0x5f400f['filter'](_0x118c2f=>'document:write'!==_0x118c2f)),this['editor']['plugins']['get']('Permissions')['setPermissions'](_0x5f400f,this['_channelId']);}}),_0x4f4e02['register'](this['_channelId'],_0x346ddb);}['_initThrowingOnDataSet'](){const _0x424d7f=this['editor']['data']['set'];this['editor']['data']['set']=(..._0x5050a7)=>{if(!_0x5050a7[_0x5050a7['length']-0x1]['suppressErrorInCollaboration'])throw new CKEditorError('realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration',this);_0x424d7f['apply'](this['editor']['data'],_0x5050a7);};}['_setUpDataInit'](){this['editor']['data']['on']('init',(_0x5b4f6a,[_0x377ca7])=>{if(this['_document']['version'])throw new CKEditorError('realtimecollaborationclient-init-document-already-initialized',this);_0x5b4f6a['stop'](),this['_setPendingAction']();const _0x197741=Object['fromEntries'](Object['entries'](this['editor']['config']['get']('roots')||{})['filter'](([,_0x177bc9])=>!_0x177bc9['lazyLoad'])['map'](([_0x3d91dc,_0x51c77a])=>[_0x3d91dc,_0x51c77a['modelAttributes']||{}])),_0x199311=this['_getOperationsFromInitData'](_0x377ca7,_0x197741);0x0==_0x199311['length']&&_0x199311['push'](new NoOperation(0x0)),_0x5b4f6a['return']=this['_connectService'](_0x199311)['then'](()=>{this['editor']['plugins']['get'](WebSocketGateway)['addToReconnectionStack'](this),this['editor']['data']['fire']('ready');})['catch'](_0x8b80cc=>this['_crash']('realtimecollaborationclient-init-connection-failed',_0x8b80cc))['finally'](()=>this['_clearPendingAction']());},{'priority':'high'}),this['editor']['on']('loadRoot',async(_0x5e5477,[_0x4e1939,_0x40abc0])=>{_0x5e5477['stop']();const _0x329ea6=this['editor']['model']['document']['getRoot'](_0x4e1939);if(!this['_knownRootNames']['has'](_0x4e1939)){const _0x106bb9=_0x40abc0&&_0x40abc0['data']?_0x40abc0['data']:'',_0x446648=_0x40abc0&&_0x40abc0['attributes']?_0x40abc0['attributes']:{};await this['_loadRoot'](_0x4e1939,_0x106bb9,_0x446648);}this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x329ea6['_isLoaded']=!0x0,this['editor']['model']['document']['differ']['_bufferRootLoad'](_0x329ea6);});},{'priority':'high'});}async['_fetchMissingUsers'](_0x3beefc){const _0x2dcc9b=this['editor']['plugins']['get'](Users),{connection:_0x3ad6e8}=this['editor']['plugins']['get'](WebSocketGateway),_0x115114=new Set();for(const _0x16ee90 of _0x3beefc){const _0x46b41b=_0x16ee90['_authorId'];_0x46b41b&&!_0x2dcc9b['getUser'](_0x46b41b)&&_0x115114['add'](_0x46b41b);}if(0x0===_0x115114['size'])return;const _0x46b2f2=await User['getMany'](_0x3ad6e8,Array['from'](_0x115114));for(const _0x2e6a53 of _0x46b2f2)_0x2dcc9b['getUser'](_0x2e6a53['id'])||_0x2dcc9b['addUser'](_0x2e6a53);}['_getOperationsFromInitData'](_0x12d684,_0x39164d={}){const _0x43c0cf=this['editor']['model'],_0xe82298=[];let _0x472e77=0x0;const _0x113a96='string'==typeof _0x12d684?{'main':_0x12d684}:_0x12d684;for(const _0x5f464e of Object['keys'](_0x113a96)){if(!this['_document']['roots']['has'](_0x5f464e))throw new CKEditorError('realtimecollaborationclient-init-non-existent-root',this);const _0xe17468=this['editor']['data']['parse'](_0x113a96[_0x5f464e]),_0xc23ffa=this['_document']['getRoot'](_0x5f464e),_0x2816bf=new InsertOperation(_0x43c0cf['createPositionAt'](_0xc23ffa,0x0),_0xe17468,_0x472e77++);_0xe82298['push'](_0x2816bf);for(const [_0x106a35,_0x1c6475]of _0xe17468['markers']){const _0x2f0dd3=_0x43c0cf['createRange'](_0x43c0cf['createPositionFromPath'](_0xc23ffa,_0x1c6475['start']['path']['slice']()),_0x43c0cf['createPositionFromPath'](_0xc23ffa,_0x1c6475['end']['path']['slice']())),_0x35e2a8=new MarkerOperation(_0x106a35,null,_0x2f0dd3,_0x43c0cf['markers'],!0x0,_0x472e77++);_0xe82298['push'](_0x35e2a8);}}if(_0x39164d)for(const [_0x40b115,_0x168ea8]of Object['entries'](_0x39164d)){const _0x2b0536=_0x43c0cf['document']['getRoot'](_0x40b115);if(!_0x2b0536)throw new CKEditorError('multi-root-editor-root-attributes-no-root',null);for(const [_0xedcc9a,_0x936241]of Object['entries'](_0x168ea8))if(null!==_0x936241){const _0x206041=new RootAttributeOperation(_0x2b0536,_0xedcc9a,null,_0x936241,_0x472e77++);_0xe82298['push'](_0x206041);}}return _0xe82298;}async['_loadRoot'](_0x146003,_0x431ee1,_0x34d206){this['_getOperationsFromInitData']({[_0x146003]:_0x431ee1},{[_0x146003]:_0x34d206})['forEach']((_0xaae1fa,_0x1a5256)=>{_0xaae1fa['baseVersion']=this['_document']['version']+_0x1a5256,_0xaae1fa['_isInit']=!0x0,this['_saveOperationInBuffer'](_0xaae1fa);}),this['_sendBufferedOperationsDelayed'](),await this['_waitUntilSynced']();}async['_handleInitialConnectionData'](_0x2c4781,_0x2e0a38){let _0xe1e1f;this['_offset']=_0x2c4781['offset'];const _0x2c8949=_0x2c4781['wereChangesApplied']&&!_0x2c4781['initData'],_0x1ce0a4=_0x2c8949?0x0:_0x2c4781['data']['baseVersion'];if(_0x2e0a38['forEach'](_0x3182f4=>{_0x3182f4['_isInit']=!0x0,_0x3182f4['createdAt']=_0x2c4781['sessionCreatedAt'],_0x3182f4['_authorId']=null;}),_0x2c8949)_0xe1e1f=_0x2e0a38,this['_applyOperationsSet'](_0xe1e1f,_0x2c8949);else{if(_0x2c4781['initData']){const _0x23d880=this['_getOperationsFromInitData'](_0x2c4781['initData']);this['_document']['history']['version']=-_0x23d880['length'],_0x23d880['forEach'](_0x4551aa=>{_0x4551aa['baseVersion']-=_0x23d880['length'],_0x4551aa['createdAt']=_0x2c4781['sessionCreatedAt'],_0x4551aa['_isInit']=!0x0,_0x4551aa['_authorId']=null;}),this['_applyOperationsSet'](_0x23d880,!0x0),this['serverHistory']['version']=-_0x23d880['length']+this['_offset'],this['_updateServerHistory'](_0x23d880);}this['_document']['history']['version']=_0x1ce0a4,_0xe1e1f=this['_decompressOperations'](_0x2c4781['data'],_0x2c4781['metadata']),await this['_fetchMissingUsers'](_0xe1e1f),this['_applyOperationsSet'](_0xe1e1f,_0x2c8949);}_0x2c4781['lastOperationId']&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0xe1e1f,_0x2c4781['lastOperationId']),this['_lastSyncedOperationId']=_0x2c4781['lastOperationId']),this['serverHistory']['version']=_0x1ce0a4+this['_offset'],this['_updateServerHistory'](_0xe1e1f),_0x2e0a38['filter'](_0x349336=>{const _0xdfd4c4=this['_getAffectedRoot'](_0x349336);return _0xdfd4c4&&!this['_knownRootNames']['has'](_0xdfd4c4);})['forEach']((_0x33df8a,_0x348795)=>{_0x33df8a['baseVersion']=this['_document']['version']+_0x348795,this['_saveOperationInBuffer'](_0x33df8a);}),this['_shouldSendUpdate']()?(this['_currentBufferDelay']=0x0,this['_sendBufferedOperationsDelayed'](!0x0),await this['_waitUntilSynced']()):(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());}['_crash'](_0x2d27db,_0x412b1c){const _0x598270=_0x412b1c&&_0x412b1c['message'];if(_0x598270&&_0x598270['startsWith']('realtimecollaborationclient'))throw _0x412b1c;const _0x12901c=this['editor']['plugins']['get'](WebSocketGateway);throw this['_isPendingUpdate']=!0x0,_0x12901c['disconnect'](),this['editor']['enableReadOnlyMode']('realtimecollaborationclient-error'),new CKEditorError(_0x2d27db,this['editor'],_0x598270?{'originalError':_0x598270}:void 0x0);}['_saveOperationInBuffer'](_0x7719c0){this['_knownOperations']['has'](_0x7719c0)||(this['_knownOperations']['add'](_0x7719c0),this['_bufferedOperations']['push'](_0x7719c0),this['_pendingAction']||'marker'==_0x7719c0['type']&&!_0x7719c0['affectsData']||this['_setPendingAction']());}['_sendBufferedOperationsDelayed'](_0x53505a=!0x1){!_0x53505a&&this['_isPendingUpdate']||(this['_isPendingUpdate']=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_sendBufferedOperationsDelayId']=setTimeout(()=>{this['_sendBufferedOperations']()['then'](_0x146eda=>{_0x146eda&&(this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1);})['catch'](_0x16d7c0=>{this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1,isDisconnectionError$3(_0x16d7c0)||this['_crash'](_0x16d7c0['message'],_0x16d7c0);});},this['_currentBufferDelay']));}['_waitUntilSynced'](){return new Promise(_0x13df8b=>{this['on']('change:_isPendingUpdate',()=>{_0x13df8b();});});}async['_sendBufferedOperations'](){const _0x2669ba=this['editor']['plugins']['get'](UserMarkers);if(this['_shouldSendSelectionUpdate']()&&(_0x2669ba['createUserMarkerOperations'](),this['_hasSelectionChanged']=!0x1),!this['_shouldSendUpdate']())return!0x0;const _0x3c51fc=[...this['_bufferedOperations']];for(const _0x1bc1cd of _0x3c51fc)_0x1bc1cd['wasUndone']=this['_document']['history']['isUndoneOperation'](_0x1bc1cd);const _0x530b3f=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x3c51fc),_0x5478f0=requestCount++,_0x4dc42d=this['_compressOperations'](_0x3c51fc),_0x28ec12=await this['_service']['sendOperations'](_0x4dc42d,_0x4dc42d['baseVersion'],_0x530b3f);try{return await this['_handleServerResponse'](_0x3c51fc,_0x28ec12,_0x5478f0);}catch(_0x577709){return this['_crash']('realtimecollaborationclient-sendbufferedoperations',_0x577709);}}async['_handleServerResponse'](_0x17c28d,_0x5aa668,_0xcf97c){if('error'in _0x5aa668)throw _0x5aa668['error'];let _0x498c51=!0x1;if(_0x5aa668['wereChangesApplied']){_0x5aa668['lastOperationId']&&(this['_lastSyncedOperationId']=_0x5aa668['lastOperationId']),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x4133e9=>!_0x17c28d['includes'](_0x4133e9));for(const _0xa2148c of _0x17c28d)_0xa2148c['createdAt']='lastOperationAcceptedAt'in _0x5aa668&&_0x5aa668['lastOperationAcceptedAt']||void 0x0;updateBaseVersions(_0x17c28d,_0x5aa668['version']-_0x17c28d['length']),this['_updateServerHistory'](_0x17c28d);const _0x2d5f0b=_0x17c28d['filter'](_0x200f1b=>{if(!_0x200f1b['_isInit'])return!0x1;const _0x1ad51d=this['_getAffectedRoot'](_0x200f1b);return _0x1ad51d&&!this['_knownRootNames']['has'](_0x1ad51d);});updateBaseVersions(_0x2d5f0b,this['_document']['version']),this['_applyOperationsSet'](_0x2d5f0b),_0x498c51=!0x0,this['_currentBufferDelay']=this['_baseBufferDelay'];}else{const _0x3edaa0=this['_decompressOperations'](_0x5aa668['data'],_0x5aa668['metadata'])['filter'](_0x449980=>_0x449980['baseVersion']>=this['_lastServerVersion']);_0x3edaa0['forEach'](_0x252d71=>this['_addKnownRoot'](_0x252d71)),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x4eed17=>!_0x4eed17['_isInit']||!this['_knownRootNames']['has'](this['_getAffectedRoot'](_0x4eed17))),this['_bufferedOperations']['length']&&updateBaseVersions(this['_bufferedOperations'],this['_bufferedOperations'][0x0]['baseVersion']),await this['_fetchMissingUsers'](_0x3edaa0),_0x498c51=this['_handleExternalOperations'](_0x3edaa0,_0x5aa668['version'],_0x5aa668['lastOperationId']),this['_currentBufferDelay']=Math['round'](this['_currentBufferDelay']/0x2);}return _0x498c51?!this['_shouldSendUpdate']()||(this['_sendBufferedOperationsDelayed'](!0x0),!0x1):this['_crash']('realtimecollaborationclient-handleserverresponse');}['_handleExternalOperations'](_0x4383c8,_0x239cab,_0x19d2ff){try{const _0x49c638={'document':this['_document'],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x4187c2,operationsB:_0x4cf01a,originalOperations:_0x56d52b}=transformOperationSets(_0x4383c8,this['_bufferedOperations'],_0x49c638);updateBaseVersions(_0x4187c2,this['_document']['version']),updateBaseVersions(_0x4cf01a,_0x239cab);for(const _0x374bd3 of _0x4187c2){const _0x4f54d0=_0x56d52b['get'](_0x374bd3);_0x374bd3['_authorId']=_0x4f54d0?_0x4f54d0['_authorId']:null;}_0x19d2ff&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x4383c8,_0x19d2ff),this['_lastSyncedOperationId']=_0x19d2ff),this['_bufferedOperations']=[..._0x4cf01a],this['_applyOperationsSet'](_0x4187c2),this['_updateServerHistory'](_0x4383c8);}catch(_0x51a401){return console['error'](_0x51a401),!0x1;}return!0x0;}['_applyOperationsSet'](_0xa6ae24,_0x1df1d7=!0x1){this['editor']['model']['enqueueChange']({'isUndoable':!0x1,'isLocal':!0x1},_0x21769a=>{for(const _0x5e027d of _0xa6ae24)this['_knownOperations']['add'](_0x5e027d),this['_addKnownRoot'](_0x5e027d),_0x21769a['batch']['addOperation'](_0x5e027d),this['editor']['model']['applyOperation'](_0x5e027d);});}['_addKnownRoot'](_0x2da7a4){const _0x12cc85=this['_getAffectedRoot'](_0x2da7a4);_0x12cc85&&this['_knownRootNames']['add'](_0x12cc85);}['_getAffectedRoot'](_0x12788e){let _0x4e6b1c,_0x57923b;switch(_0x12788e['type']){case'insert':_0x4e6b1c=_0x12788e['position']['root'];break;case'marker':if(_0x57923b=_0x12788e['newRange'],!_0x57923b)return null;_0x4e6b1c=_0x57923b['root'];break;case'addRootAttribute':_0x4e6b1c=_0x12788e['root'];break;case'addRoot':_0x4e6b1c=_0x12788e['affectedSelectable'];break;case'move':_0x4e6b1c=_0x12788e['targetPosition']['root'];break;default:return null;}return _0x4e6b1c['rootName'];}['_updateServerHistory'](_0x2f17b6){_0x2f17b6['forEach'](_0x33f4ee=>{const _0x5878ae=_0x33f4ee['clone']();_0x5878ae['_authorId']=_0x33f4ee['_authorId'],_0x5878ae['_isInit']=!!_0x33f4ee['_isInit'],_0x5878ae['createdAt']=_0x33f4ee['createdAt'],_0x5878ae['baseVersion']+=this['_offset'],_0x33f4ee['_isDisconnection']&&this['_disconnectionOperations']['add'](_0x5878ae),this['serverHistory']['addOperation'](_0x5878ae);});}['_handleReconnectionError'](_0x2d530e){const _0x314bc5=this['editor']['plugins']['get']('Notification'),_0x1a79ce=this['editor']['locale'];_0x2d530e||(_0x2d530e=getTranslation$6(_0x1a79ce,'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.')),_0x314bc5['showWarning'](_0x2d530e,{'title':getTranslation$6(_0x1a79ce,'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'](_0x37e560){const _0x237dee=_0x37e560['map'](_0xca1865=>_0xca1865['toJSON']());return this['_compressor']['compress'](_0x237dee);}['_decompressOperations'](_0x15c2ff,_0x3a052a){return this['_compressor']['decompress'](_0x15c2ff)['map']((_0x59f739,_0x480ae7)=>{const _0x1f8c7d='init'==_0x3a052a[_0x480ae7]['type'];if('InsertOperation'==_0x59f739['__className']){const _0x2c2f65=_0x59f739['position']['root'];!this['_document']['getRoot'](_0x2c2f65)&&(this['_document']['createRoot']('$root',_0x2c2f65)['_isAttached']=!0x1);}const _0x10976d=OperationFactory['fromJSON'](_0x59f739,this['_document']);return _0x10976d['wasUndone']=_0x59f739['wasUndone'],_0x10976d['_isInit']=_0x1f8c7d,_0x10976d['_authorId']=_0x1f8c7d?null:_0x3a052a[_0x480ae7]['userId'],_0x10976d['_isDisconnection']='cs:removeUser'===_0x3a052a[_0x480ae7]['type'],_0x10976d['createdAt']=_0x3a052a[_0x480ae7]['createdAt'],_0x10976d;});}['_refreshUserSelectionMarkers'](){this['_hasSelectionChanged']=!0x0,this['_shouldSendSelectionUpdate']()?this['_sendBufferedOperationsDelayed']():this['_hasSelectionChanged']=!0x1;}['_shouldSendSelectionUpdate'](){const _0x3d9cbf=this['editor']['plugins']['get'](Sessions)['channelSessions']['get'](this['_channelId']);return!this['editor']['isReadOnly']&&!!_0x3d9cbf&&_0x3d9cbf['length']>0x1&&this['_hasSelectionChanged'];}['_shouldSendUpdate'](){return this['_bufferedOperations']['length']>0x0||this['_shouldSendSelectionUpdate']();}}class ReconnectionError extends Error{}function updateBaseVersions(_0x33cd38,_0x5a1305){for(const _0x1d58e7 of _0x33cd38)_0x1d58e7['baseVersion']=_0x5a1305++;}function isSessionNotExistingError(_0x4d8817){return'404'===_0x4d8817['code'];}function isBaseVersionMismatchError(_0x295ce3){return'409'===_0x295ce3['code'];}function isDisconnectionError$3(_0x3ff1aa){return _0x3ff1aa['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x3ff1aa['message']['startsWith']('cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.')||_0x3ff1aa['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}class OperationIdentifier{['_ignoredOperations'];['_operationToId'];constructor(_0x2715d8){this['_ignoredOperations']=_0x2715d8,this['_operationToId']=new WeakMap();}['getIdOfTheLastOperation'](_0x2f8fa6){let _0x5a2c52=_0x2f8fa6['length'];for(;_0x5a2c52--;){const _0x558687=_0x2f8fa6[_0x5a2c52];if(!this['_ignoredOperations']['has'](_0x558687)){if(!this['_operationToId']['has'](_0x558687)){const _0x71178a=uid()['slice'](0x1,0x12);this['_operationToId']['set'](_0x558687,_0x71178a);}return this['_operationToId']['get'](_0x558687);}}}['setIdForTheLastOperation'](_0x22c0c9,_0x4d6ab3){if(!_0x4d6ab3)return;let _0x7818e1=_0x22c0c9['length'];for(;_0x7818e1--;){const _0x587031=_0x22c0c9[_0x7818e1];this['_ignoredOperations']['has'](_0x587031)||this['_operationToId']['set'](_0x587031,_0x4d6ab3);}}}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 TrackChangesCommand extends Command{['_enabledCommands'];constructor(_0x20613f,_0x5d1ee4){super(_0x20613f),this['_enabledCommands']=_0x5d1ee4,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 _0x140d3d of this['editor']['commands']['commands']())_0x140d3d['affectsData']&&!this['_enabledCommands']['has'](_0x140d3d)&&_0x140d3d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x253fdf of this['editor']['commands']['commands']())_0x253fdf['affectsData']&&!this['_enabledCommands']['has'](_0x253fdf)&&_0x253fdf['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends Command{['_suggestions'];constructor(_0x5506fa,_0x233cfc){super(_0x5506fa),this['_suggestions']=_0x233cfc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1ad209){const _0x49ffe2=this['_suggestions']['get'](_0x1ad209);if(!_0x49ffe2)throw new CKEditorError('track-changes-accept-suggestion-not-found',this);const _0x13a773=_0x49ffe2['getRanges']();this['editor']['model']['canEditAt'](_0x13a773)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x49ffe2);}}class DiscardSuggestionCommand extends Command{['_suggestions'];constructor(_0x244b5b,_0x464740){super(_0x244b5b),this['_suggestions']=_0x464740,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xd86823){const _0x55448c=this['_suggestions']['get'](_0xd86823);if(!_0x55448c)throw new CKEditorError('track-changes-discard-suggestion-not-found',this);const _0x442502=_0x55448c['getRanges']();this['editor']['model']['canEditAt'](_0x442502)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x55448c);}}function renderDescription(_0xef576b,_0x1b4e10){let _0x38e30a='';return _0x38e30a+=_0xef576b['split']('*')['map']((_0x7e8b25,_0x5db1d0)=>_0x5db1d0%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+sanitize(_0x7e8b25)+'</span>':sanitize(_0x7e8b25))['join'](''),_0x1b4e10&&(_0x38e30a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1b4e10['value']+'\x22\x20title=\x22'+_0x1b4e10['title']+'\x22></span>'),_0x38e30a;}function sanitize(_0x3030bb){const _0x3286b9=document['createElement']('span');return _0x3286b9['innerText']=_0x3030bb,_0x3286b9['innerHTML'];}function sortSuggestions(_0x5ef1bd){return _0x5ef1bd['sort']((_0x1948a8,_0x4f2d9e)=>'attribute'===_0x1948a8['type']&&'attribute'!==_0x4f2d9e['type']?-0x1:'attribute'!==_0x1948a8['type']&&'attribute'===_0x4f2d9e['type']?0x1:'deletion'==_0x1948a8['type']&&'deletion'!=_0x4f2d9e['type']?-0x1:'deletion'!=_0x1948a8['type']&&'deletion'==_0x4f2d9e['type']?0x1:0x0);}function getSelectedSuggestions(_0x1a9280,_0x52eaf0){const _0x109897=Array['from'](_0x1a9280['getRanges']()),_0x311181=new Set();for(const _0x120189 of _0x52eaf0)if(_0x120189['isInContent']){for(const _0x157a79 of _0x109897)for(const _0xd2d5dc of _0x120189['getRanges']())(_0x157a79['isIntersecting'](_0xd2d5dc)||_0x1a9280['isCollapsed']&&!_0x120189['isMultiRange']&&_0x120189['next']&&_0xd2d5dc['end']['isTouching'](_0x157a79['start']))&&_0x311181['add'](_0x120189);}return _0x311181;}function getRangesOfBlockGroups(_0x41ff2a,_0x3eacf5){let _0x167695,_0x46ae99=0x0;const _0x1439f4=[],_0x3fdc9f=_0x3eacf5['schema'];for(;_0x46ae99<_0x41ff2a['length'];){const _0x361717=_0x41ff2a[_0x46ae99],_0x2d7c2d=_0x41ff2a[_0x46ae99+0x1];_0x167695||(_0x167695=_0x3eacf5['createPositionBefore'](_0x361717)),areNeighbourBlocks(_0x3eacf5,_0x361717,_0x2d7c2d)||(_0x1439f4['push'](_0x3eacf5['createRange'](_0x167695,_0x3fdc9f['isObject'](_0x361717)?_0x3eacf5['createPositionAfter'](_0x361717):_0x3eacf5['createPositionAt'](_0x361717,'end'))),_0x167695=null),_0x46ae99++;}return _0x1439f4;}function areNeighbourBlocks(_0x5a3cfd,_0x33ddc8,_0x4b2eb9){if(!_0x4b2eb9)return!0x1;const _0x23c223=_0x5a3cfd['createPositionAfter'](_0x33ddc8),_0x477af2=_0x5a3cfd['createPositionBefore'](_0x4b2eb9);return _0x23c223['isTouching'](_0x477af2);}const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;function executeCommandForSuggestions(_0x17f5e4,_0x5f504f,_0x4a55e6){for(;_0x4a55e6['length'];){const _0x3123a9=_0x4a55e6['splice'](0x0,MAX_SUGGESTION_ACTIONS_IN_BATCH);_0x17f5e4['change'](()=>{for(const _0x38692a of _0x3123a9)_0x38692a['isInContent']&&_0x5f504f['execute'](_0x38692a['id']);});}}class ExecuteOnAllSuggestionsCommand extends Command{['_command'];['_suggestions'];constructor(_0xe4e8d,_0x298ef8,_0x2ced09){super(_0xe4e8d),this['_command']=_0x298ef8,this['_suggestions']=_0x2ced09,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x48095a=Array['from'](this['_suggestions']['values']())['some'](_0x1104c9=>_0x1104c9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x48095a;}['execute'](){const _0x41c8ea=sortSuggestions(Array['from'](this['_suggestions']['values']()));for(const _0x5f4791 of _0x41c8ea){const _0x246f99=_0x5f4791['getRanges']();if(!this['editor']['model']['canEditAt'](_0x246f99))return;}executeCommandForSuggestions(this['editor']['model'],this['_command'],_0x41c8ea);}}class ExecuteOnSelectedSuggestionsCommand extends Command{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3b3076,_0x85534b,_0x1278f7){super(_0x3b3076),this['_command']=_0x85534b,this['_suggestions']=_0x1278f7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x50b8b8=this['editor']['model']['document']['selection'],_0x4bce25=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=getSelectedSuggestions(_0x50b8b8,_0x4bce25),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x493a42=sortSuggestions(Array['from'](this['_selectedSuggestions']));for(const _0x394aaf of _0x493a42){const _0x5241f7=_0x394aaf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5241f7))return;}executeCommandForSuggestions(this['editor']['model'],this['_command'],_0x493a42);}}class Suggestion extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x424b06,_0x16b1b5){super(),this['id']=_0x16b1b5['id'],this['type']=_0x16b1b5['type'],this['subType']=_0x16b1b5['subType']||null,this['author']=_0x16b1b5['author'],this['creator']=_0x16b1b5['creator']||_0x16b1b5['author'],this['isExternal']=Boolean(_0x16b1b5['attributes']&&_0x16b1b5['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x16b1b5['originalSuggestionId']||null,this['_model']=_0x424b06,this['_onAccept']=_0x16b1b5['onAccept'],this['_onDiscard']=_0x16b1b5['onDiscard'],this['_onAttributesChange']=_0x16b1b5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x16b1b5['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 _0x358658=this;for(;_0x358658['previous'];)_0x358658=_0x358658['previous'];return _0x358658;}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'](_0x477ec3){this['_markerNames']['add'](_0x477ec3);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x523906=>this['_model']['markers']['get'](_0x523906))['filter'](_0x58cb23=>_0x58cb23);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5222ef=>{for(const _0x182787 of this['getMarkers']())_0x5222ef['removeMarker'](_0x182787);}),this['_markerNames']['clear']();}['removeMarker'](_0x2e4273){this['_model']['change'](_0x1c1f69=>{_0x1c1f69['removeMarker'](_0x2e4273);}),this['_markerNames']['delete'](_0x2e4273);}['addRange'](_0x421213){const _0x1768f2='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x1768f2),this['_model']['change'](_0x1a17e9=>{_0x1a17e9['addMarker'](_0x1768f2,{'range':_0x421213,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x7efa1c){for(const _0x2b98ad of this['getRanges']())if(_0x2b98ad['isIntersecting'](_0x7efa1c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x582f6d=>_0x582f6d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xf298ed,_0x25a0ce)=>[..._0xf298ed,..._0x25a0ce['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x56a158=this['getRanges']();if(0x1!=_0x56a158['length'])return null;const _0x1aabf8=_0x56a158[0x0],_0x65aff=_0x1aabf8['start']['nodeAfter'],_0xcdb7b0=_0x1aabf8['end']['nodeBefore'];return _0x65aff instanceof ModelElement?_0x65aff!=_0xcdb7b0?null:_0x65aff: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 _0x50cb3e=[];let _0x371a20=this['head'];for(;_0x371a20;)_0x50cb3e['push'](_0x371a20),_0x371a20=_0x371a20['next'];return _0x50cb3e;}['setAttribute'](_0x1354bc,_0x154431){const _0x54b43a=cloneDeep(this['attributes']);set(_0x54b43a,_0x1354bc,_0x154431),isEqual(_0x54b43a,this['attributes'])||(this['attributes']=_0x54b43a,this['_onAttributesChange'](_0x54b43a));}['removeAttribute'](_0x307c8f){const _0x175e9e=cloneDeep(this['attributes']);unset(_0x175e9e,_0x307c8f),isEqual(_0x175e9e,this['attributes'])||(this['attributes']=_0x175e9e,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$5(_0xd2953c,_0x2a546b,_0x5c15b5){const _0x510be7=_0xd2953c['t'],t=_0xd2953c['t'];switch(_0x2a546b){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',_0x5c15b5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5c15b5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5c15b5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5c15b5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5c15b5);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',_0x5c15b5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5c15b5);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',_0x5c15b5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5c15b5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5c15b5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5c15b5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5c15b5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5c15b5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5c15b5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5c15b5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5c15b5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5c15b5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5c15b5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5c15b5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5c15b5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5c15b5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5c15b5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5c15b5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5c15b5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5c15b5);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'},_0x5c15b5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5c15b5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5c15b5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5c15b5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5c15b5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5c15b5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5c15b5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5c15b5);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'},_0x5c15b5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5c15b5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5c15b5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5c15b5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5c15b5);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'},_0x5c15b5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5c15b5);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'},_0x5c15b5);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_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'},_0x5c15b5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5c15b5);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'},_0x5c15b5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5c15b5);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'},_0x5c15b5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5c15b5);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5c15b5);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5c15b5);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5c15b5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5c15b5);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'},_0x5c15b5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5c15b5);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 _0x510be7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5c15b5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x510be7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5c15b5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5c15b5);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'},_0x5c15b5);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'},_0x5c15b5);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'},_0x5c15b5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2a546b;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xa053d6,_0x65063e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xa053d6,this['_locale']=_0x65063e;}['getDescriptions'](_0x44ec51){const _0x3edf39=[],_0x806355=new Set(),_0x4aa717=new Set();for(let _0x1e38f3=0x0;_0x1e38f3<_0x44ec51['length'];_0x1e38f3++){const _0x19a48d=_0x44ec51[_0x1e38f3];if(!_0x19a48d['isInContent'])continue;const _0x310c66=this['_handleCustomCallbackDescription'](_0x19a48d);if(_0x310c66){if(null!=_0x19a48d['subType']){if(_0x806355['has'](_0x19a48d['subType']))continue;_0x806355['add'](_0x19a48d['subType']);}_0x3edf39['push'](_0x310c66);}else{if('attribute'==_0x19a48d['type']){const _0x60b1d9=_0x19a48d['data']['key'];if(_0x4aa717['has'](_0x60b1d9))continue;_0x4aa717['add'](_0x19a48d['data']['key']),_0x60b1d9==renameAttributeKey?this['_handleRenameSuggestionDescription'](_0x3edf39,_0x19a48d):this['_handleAttributeSuggestionDescription'](_0x3edf39,_0x19a48d);continue;}'insertion'!=_0x19a48d['type']&&'deletion'!=_0x19a48d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3edf39,_0x19a48d,_0x44ec51[_0x1e38f3+0x1]);}}return this['_resolveDescriptionItems'](_0x3edf39);}['registerDescriptionCallback'](_0x1449e1){this['_customCallbacks']['push'](_0x1449e1);}['registerElementLabel'](_0x328d85,_0x5e3a9f,_0x59b0d4=priorities['normal']){'function'==typeof _0x328d85?insertToPriorityArray(this['_itemLabelsCallbacks'],{'matchingCallback':_0x328d85,'label':_0x5e3a9f,'priority':_0x59b0d4}):this['_itemLabels']['set'](_0x328d85,_0x5e3a9f);}['registerAttributeLabel'](_0x45df33,_0x9f434f){this['_attributeLabels']['set'](_0x45df33,_0x9f434f);}['getItemLabel'](_0xc6bb8d,_0x9d9516=0x1){let _0xe5077b;for(const _0x2fc753 of this['_itemLabelsCallbacks'])if(_0x2fc753['matchingCallback'](_0xc6bb8d)){_0xe5077b=_0x2fc753['label'];break;}return _0xe5077b||(_0xe5077b=this['_itemLabels']['get'](_0xc6bb8d['name'])),_0xe5077b?_0xe5077b(_0x9d9516):0x1!==_0x9d9516?_0x9d9516+'\x20'+_0xc6bb8d['name']+'s':''+_0xc6bb8d['name'];}['_addDescriptionItems'](_0x54982b,_0x5ed824){const _0x389be8=_0x5ed824['getFirstRange']()['getWalker'](),_0x463930='insertion'==_0x5ed824['type']?'add':'remove';for(const _0x2fb24f of _0x389be8){const _0x290f9b=_0x2fb24f['item'],_0x704df3=_0x54982b[_0x54982b['length']-0x1];if(_0x290f9b['is']('$textProxy'))_0x704df3&&_0x704df3['type']['indexOf']('Container')>-0x1&&_0x54982b['pop'](),_0x704df3&&'text'==_0x704df3['type']?_0x704df3[_0x463930]+=_0x290f9b['data']:_0x54982b['push']({'type':'text','add':'add'==_0x463930?_0x290f9b['data']:'','remove':'remove'==_0x463930?_0x290f9b['data']:''});else{if(this['_schema']['isObject'](_0x290f9b)){const _0x9d95de=_0x290f9b;if(_0x704df3&&_0x704df3['type']['indexOf']('Container')>-0x1&&_0x54982b['pop'](),'elementEnd'==_0x2fb24f['type'])continue;_0x704df3&&_0x704df3['type']==_0x463930+'Object'&&_0x704df3['element']['name']==_0x9d95de['name']?_0x704df3['quantity']++:_0x54982b['push']({'type':_0x463930+'Object','element':_0x9d95de,'quantity':0x1}),_0x389be8['skip'](_0x5d66da=>!('elementEnd'==_0x5d66da['type']&&_0x5d66da['item']==_0x290f9b));}else{if(this['_schema']['checkChild'](_0x290f9b,'$text')||_0x290f9b['is']('element','softBreak')){const _0x19f85d=_0x290f9b;if('add'==_0x463930&&'elementStart'==_0x2fb24f['type']||'remove'==_0x463930&&'elementEnd'==_0x2fb24f['type'])continue;if(_0x704df3&&-0x1==_0x704df3['type']['indexOf']('Container')){'text'==_0x704df3['type']&&(_0x704df3[_0x463930]+='\x0a');continue;}let _0x473326;if(_0x473326='add'==_0x463930?_0x19f85d['nextSibling']&&!this['_schema']['isObject'](_0x19f85d['nextSibling'])?_0x19f85d['nextSibling']:null:_0x19f85d['previousSibling']&&!this['_schema']['isObject'](_0x19f85d['previousSibling'])?_0x19f85d['previousSibling']:null,_0x19f85d['isEmpty']||_0x473326&&_0x473326['isEmpty']){const _0x361cc3=_0x473326&&_0x473326['isEmpty']?_0x473326:_0x19f85d;_0x704df3&&_0x704df3['type']==_0x463930+'EmptyContainer'&&_0x704df3['element']['name']==_0x361cc3['name']?_0x704df3['quantity']++:_0x54982b['push']({'type':_0x463930+'EmptyContainer','element':_0x361cc3,'quantity':0x1});}else _0x54982b['push']({'type':_0x463930+'Container','element':_0x19f85d});}}}}}['_resolveDescriptionItems'](_0x6962c6){const _0x533969=this['_locale'],_0x195e3a=[],_0x12ca76=[],_0x1ee7a4=[];for(const _0xa11943 of _0x6962c6)switch(_0xa11943['type']){case'text':if(_0xa11943['add']=_0xa11943['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xa11943['remove']=_0xa11943['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xa11943['add']&&''!=_0xa11943['remove']){_0x195e3a['push']({'type':'replace','content':getTranslation$5(_0x533969,'REPLACE_TEXT',['\x22'+_0xa11943['remove']+'\x22','\x22'+_0xa11943['add']+'\x22'])});continue;}if(null!=_0xa11943['add']['match'](/^ +$/)){_0x195e3a['push']({'type':'insertion','content':getTranslation$5(_0x533969,'*Insert:*\x20%0',getTranslation$5(_0x533969,'ELEMENT_SPACE',_0xa11943['add']['length']))});continue;}if(null!=_0xa11943['remove']['match'](/^ +$/)){_0x195e3a['push']({'type':'deletion','content':getTranslation$5(_0x533969,'*Remove:*\x20%0',getTranslation$5(_0x533969,'ELEMENT_SPACE',_0xa11943['remove']['length']))});continue;}if(''!=_0xa11943['add']){_0x195e3a['push']({'type':'insertion','content':getTranslation$5(_0x533969,'*Insert:*\x20%0','\x22'+_0xa11943['add']+'\x22')});continue;}_0x195e3a['push']({'type':'deletion','content':getTranslation$5(_0x533969,'*Remove:*\x20%0','\x22'+_0xa11943['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x195e3a['push']({'type':'insertion','content':getTranslation$5(_0x533969,'*Insert:*\x20%0',this['getItemLabel'](_0xa11943['element'],_0xa11943['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x195e3a['push']({'type':'deletion','content':getTranslation$5(_0x533969,'*Remove:*\x20%0',this['getItemLabel'](_0xa11943['element'],_0xa11943['quantity']))});continue;case'addContainer':_0x195e3a['push']({'type':'insertion','content':getTranslation$5(_0x533969,'*Split:*\x20%0',this['getItemLabel'](_0xa11943['element'],_0xa11943['quantity']))});continue;case'removeContainer':_0x195e3a['push']({'type':'deletion','content':getTranslation$5(_0x533969,'*Merge:*\x20%0',this['getItemLabel'](_0xa11943['element'],_0xa11943['quantity']))});continue;case'addFormat':_0x12ca76['push'](_0xa11943['key']);continue;case'removeFormat':_0x1ee7a4['push'](_0xa11943['key']);continue;default:_0x195e3a['push'](_0xa11943);}if(_0x12ca76['length']){const _0x589ba2=_0x12ca76['map'](_0x4d89ce=>this['_attributeLabels']['has'](_0x4d89ce)?this['_attributeLabels']['get'](_0x4d89ce):_0x4d89ce)['join'](',\x20');_0x195e3a['push']({'type':'format','content':getTranslation$5(this['_locale'],'*Set\x20format:*\x20%0',_0x589ba2)});}if(_0x1ee7a4['length']){const _0x1f262b=_0x1ee7a4['map'](_0x128cfb=>this['_attributeLabels']['has'](_0x128cfb)?this['_attributeLabels']['get'](_0x128cfb):_0x128cfb)['join'](',\x20');_0x195e3a['push']({'type':'format','content':getTranslation$5(this['_locale'],'*Remove\x20format:*\x20%0',_0x1f262b)});}return _0x195e3a;}['_handleCustomCallbackDescription'](_0x32df79){for(const _0x2645a7 of this['_customCallbacks']){const _0x1d8f03=_0x2645a7(_0x32df79);if(_0x1d8f03&&'type'in _0x1d8f03)return _0x1d8f03;}}['_handleAttributeSuggestionDescription'](_0x26e339,_0x4fbef6){const _0x33220d=_0x4fbef6['data'],_0x527c0e=void 0x0===_0x33220d['newValue']?'removeFormat':'addFormat';_0x26e339['push']({'type':_0x527c0e,'key':_0x33220d['key']});}['_handleRenameSuggestionDescription'](_0x16fe4d,_0xacb62){_0x16fe4d['push']({'type':'format','content':getTranslation$5(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xacb62['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x252983,_0x5008b6,_0x1050af){if(this['_addDescriptionItems'](_0x252983,_0x5008b6),_0x1050af&&_0x1050af['getFirstRange']()&&!_0x5008b6['getFirstRange']()['end']['isEqual'](_0x1050af['getFirstRange']()['start'])){const _0x4fedf9=_0x252983[_0x252983['length']-0x1],_0x54161e='insertion'==_0x5008b6['type']?'add':'remove';_0x4fedf9&&'text'==_0x4fedf9['type']&&(_0x4fedf9[_0x54161e]+='\x0a');}}}class TrackChangesAIAssistant extends Plugin{['afterInit'](){const _0x13a487=this['editor'],_0x13214c=_0x13a487['plugins']['get']('TrackChangesEditing');_0x13a487['commands']['get']('showAIAssistant')&&_0x13214c['enableCommand']('showAIAssistant');}}class TrackChangesAI extends Plugin{['afterInit'](){const _0x546a17=this['editor'],_0x2db92f=_0x546a17['plugins']['get']('TrackChangesEditing');_0x546a17['commands']['get']('toggleAi')&&_0x2db92f['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends Plugin{['afterInit'](){const _0x207880=this['editor'],_0x2012af=_0x207880['plugins']['get']('TrackChangesEditing');_0x207880['commands']['get']('aiQuickAction')&&_0x2012af['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends Plugin{['afterInit'](){const _0x425436=this['editor'],_0x577530=_0x425436['locale'];if(!_0x425436['plugins']['has']('AlignmentEditing'))return;const _0x27fcac=_0x425436['plugins']['get']('TrackChangesEditing');_0x27fcac['enableDefaultAttributesIntegration']('alignment'),_0x27fcac['descriptionFactory']['registerAttributeLabel']('alignment',getTranslation$5(_0x577530,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1261f6=this['editor'],_0x5a4848=_0x1261f6['locale'];_0x1261f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fc25e=>{if('formatBlock'!=_0x4fc25e['type'])return;const {data:_0x12142e}=_0x4fc25e;if(_0x12142e&&'alignment'==_0x12142e['commandName']){const _0x2b5128=_0x12142e['commandParams'][0x0]['value'];return{'type':'format','content':getTranslation$5(_0x5a4848,'*Format:*\x20%0',function(_0x8be94c){switch(_0x8be94c){case'left':return getTranslation$5(_0x5a4848,'FORMAT_ALIGN_TO_LEFT');case'right':return getTranslation$5(_0x5a4848,'FORMAT_ALIGN_TO_RIGHT');case'center':return getTranslation$5(_0x5a4848,'FORMAT_ALIGN_TO_CENTER');case'justify':return getTranslation$5(_0x5a4848,'FORMAT_JUSTIFY_TEXT');}}(_0x2b5128))};}});}}const basicStylesPlugins=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends Plugin{['afterInit'](){const _0x4421bc=this['editor'],_0x489bb3=_0x4421bc['plugins']['get']('TrackChangesEditing'),_0x24701d=_0x4421bc['locale'];for(const _0x1c7739 of basicStylesPlugins){if(!_0x4421bc['plugins']['has'](_0x1c7739))continue;const _0x589192=_0x1c7739['slice'](0x0,-0x7)['toLowerCase'](),_0x131e8c='FORMAT_'+_0x589192['toUpperCase']();_0x489bb3['enableDefaultAttributesIntegration'](_0x589192),_0x489bb3['descriptionFactory']['registerAttributeLabel'](_0x589192,getTranslation$5(_0x24701d,_0x131e8c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dce60=this['editor'],_0xc68991=_0x3dce60['locale'],_0x2a64d5=_0x3dce60['plugins']['get']('TrackChangesEditing');function _0x190474(_0x3d5f43,_0x4177de){_0x2a64d5['descriptionFactory']['registerDescriptionCallback'](_0x30f96e=>{if('formatInline'!=_0x30f96e['type'])return;const {data:_0x3645c9}=_0x30f96e;return _0x3645c9&&_0x3645c9['commandName']===_0x3d5f43?_0x3645c9['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$5(_0xc68991,'*Format:*\x20%0',_0x4177de)}:{'type':'format','content':getTranslation$5(_0xc68991,'*Remove\x20format:*\x20%0',_0x4177de)}:void 0x0;});}_0x190474('bold',getTranslation$5(_0xc68991,'FORMAT_BOLD')),_0x190474('italic',getTranslation$5(_0xc68991,'FORMAT_ITALIC')),_0x190474('underline',getTranslation$5(_0xc68991,'FORMAT_UNDERLINE')),_0x190474('code',getTranslation$5(_0xc68991,'FORMAT_CODE')),_0x190474('strikethrough',getTranslation$5(_0xc68991,'FORMAT_STRIKETHROUGH')),_0x190474('subscript',getTranslation$5(_0xc68991,'FORMAT_SUBSCRIPT')),_0x190474('superscript',getTranslation$5(_0xc68991,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends Plugin{['afterInit'](){const _0x2330af=this['editor'],_0x3f9c3a=_0x2330af['locale'];if(!_0x2330af['plugins']['has']('BlockQuoteEditing'))return;const _0x3f8dfb=_0x2330af['plugins']['get']('TrackChangesEditing'),_0x4bcb88=this['editor']['commands']['get']('blockQuote');_0x3f8dfb['enableCommand']('blockQuote',(_0x4e8d28,_0x3f089f={})=>{const _0x3e3add=this['editor']['model']['document']['selection'],_0x492c54=_0x3f089f&&void 0x0!==_0x3f089f['forceValue']?_0x3f089f['forceValue']:!_0x4bcb88['value'];let _0xfc5720=[];if(_0x492c54){const _0x40f4e2=Array['from'](_0x3e3add['getSelectedBlocks']())['filter'](_0x213b2b=>isInQuote(_0x213b2b)||checkCanBeQuoted(_0x213b2b,this['editor']['model']['schema']));_0xfc5720=getRangesOfBlockGroups(_0x40f4e2,_0x2330af['model']);}else{const _0x561910=Array['from'](_0x3e3add['getSelectedBlocks']())['filter'](_0x19643b=>isInQuote(_0x19643b));_0xfc5720=getRangesOfBlockGroups(_0x561910,_0x2330af['model']);}_0x2330af['model']['change'](()=>{for(const _0x2084f1 of _0xfc5720)_0x3f8dfb['markBlockFormat'](_0x2084f1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x492c54}]});});}),_0x3f8dfb['descriptionFactory']['registerDescriptionCallback'](_0x40ac2e=>{const {data:_0x45c063}=_0x40ac2e;if(_0x45c063&&'blockQuote'==_0x45c063['commandName']){const _0x29b927=getTranslation$5(_0x3f9c3a,'ELEMENT_BLOCK_QUOTE');return _0x45c063['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$5(_0x3f9c3a,'*Set\x20format:*\x20%0',_0x29b927)}:{'type':'format','content':getTranslation$5(_0x3f9c3a,'*Remove\x20format:*\x20%0',_0x29b927)};}});}}function checkCanBeQuoted(_0x50daa9,_0x3dd57c){const _0x3cd81f=_0x3dd57c['checkChild'](_0x50daa9['parent'],'blockQuote'),_0x406a79=_0x3dd57c['checkChild'](['$root','blockQuote'],_0x50daa9);return _0x3cd81f&&_0x406a79;}function isInQuote(_0x331d0e){return'blockQuote'==_0x331d0e['parent']['name'];}class TrackChangesBookmark extends Plugin{['afterInit'](){const _0x832837=this['editor'],_0x145eb5=_0x832837['locale'],_0x4c05e3=_0x832837['plugins']['get']('TrackChangesEditing');_0x832837['plugins']['has']('BookmarkEditing')&&(_0x4c05e3['enableCommand']('insertBookmark'),_0x4c05e3['enableDefaultAttributesIntegration']('updateBookmark'),_0x4c05e3['descriptionFactory']['registerDescriptionCallback'](_0x2aa88a=>{if('insertion'!=_0x2aa88a['type']&&'deletion'!=_0x2aa88a['type']&&'attribute'!=_0x2aa88a['type'])return;const _0x4bdd45=_0x2aa88a['getContainedElement']();if(null==_0x4bdd45)return;if(!_0x4bdd45['is']('element','bookmark'))return;const _0x3a99d4=_0x4bdd45['getAttribute']('bookmarkId');if('insertion'==_0x2aa88a['type'])return{'type':'insertion','content':getTranslation$5(_0x145eb5,'*Insert:*\x20%0','\x22'+_0x3a99d4+'\x22\x20'+getTranslation$5(_0x145eb5,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2aa88a['type'])return{'type':'deletion','content':getTranslation$5(_0x145eb5,'*Remove:*\x20%0','\x22'+_0x3a99d4+'\x22\x20'+getTranslation$5(_0x145eb5,'ELEMENT_BOOKMARK'))};const {data:_0x2c4e57}=_0x2aa88a;if(!_0x2c4e57||'bookmarkId'!=_0x2c4e57['key'])return;return{'type':'format','content':getTranslation$5(_0x145eb5,'*Set\x20bookmark:*\x20%0','\x22'+_0x2c4e57['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends Plugin{['afterInit'](){const _0xc0108a=this['editor'];_0xc0108a['plugins']['has']('CaseChange')&&(_0xc0108a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xc0108a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xc0108a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends Plugin{['afterInit'](){const _0x3a320c=this['editor'];_0x3a320c['commands']['get']('ckbox')&&_0x3a320c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends Plugin{['afterInit'](){const _0x496bcd=this['editor'];if(!_0x496bcd['plugins']['has']('CodeBlock'))return;const _0x1ff143=_0x496bcd['plugins']['get']('TrackChangesEditing'),_0x5169b8=_0x496bcd['locale'],_0x95d44b=_0x496bcd['config']['get']('codeBlock')['languages'],_0x3fd12a=_0x496bcd['commands']['get']('codeBlock');_0x1ff143['enableCommand']('indentCodeBlock'),_0x1ff143['enableCommand']('outdentCodeBlock'),_0x1ff143['enableCommand']('codeBlock',(_0x2ba7d4,_0x2c1f21={})=>{const _0x2272f8=_0x496bcd['model'],_0xa397c0=_0x496bcd['model']['document']['selection'],_0x254210=_0x2c1f21&&void 0x0!==_0x2c1f21['forceValue']?_0x2c1f21['forceValue']:!_0x3fd12a['value'];let _0x306a4b;_0x2c1f21['language']||(_0x2c1f21['language']=_0x95d44b[0x0]['language']),_0x306a4b=_0x254210?Array['from'](_0xa397c0['getSelectedBlocks']())['filter'](_0x596c81=>isCodeBlock(_0x596c81)||canBeCodeBlock(_0x596c81,_0x2272f8['schema'])):Array['from'](_0xa397c0['getSelectedBlocks']())['filter'](_0x3bea4f=>isCodeBlock(_0x3bea4f));const _0x847a32=getRangesOfBlockGroups(_0x306a4b,_0x2272f8);_0x2272f8['change'](()=>{for(const _0x195ffb of _0x847a32)_0x1ff143['markBlockFormat'](_0x195ffb,{'commandName':'codeBlock','commandParams':[{..._0x2c1f21,'forceValue':_0x254210}],'formatGroupId':'blockName'});});}),(_0x1ff143['descriptionFactory']['registerElementLabel']('codeBlock',_0x1ae2af=>getTranslation$5(_0x5169b8,'ELEMENT_CODE_BLOCK',_0x1ae2af)),_0x1ff143['descriptionFactory']['registerDescriptionCallback'](_0x372ed7=>{if('formatBlock'!=_0x372ed7['type'])return;const _0x496fd9=_0x5169b8['t'],{data:_0x2e098e}=_0x372ed7;if(!_0x2e098e||'codeBlock'!=_0x2e098e['commandName'])return;const _0x37a4db=_0x2e098e['commandParams'][0x0]['language'],_0x1ffc25=_0x95d44b['find'](_0x3eba73=>_0x3eba73['language']===_0x37a4db)['label'],_0x4a77f9=_0x496fd9(_0x1ffc25)['toLowerCase']();return _0x2e098e['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$5(_0x5169b8,'*Set\x20format:*\x20%0',getTranslation$5(_0x5169b8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4a77f9+')')}:{'type':'format','content':getTranslation$5(_0x5169b8,'*Remove\x20format:*\x20%0',getTranslation$5(_0x5169b8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function canBeCodeBlock(_0x37c2ff,_0x5c69a5){return!_0x37c2ff['is']('rootElement')&&!_0x5c69a5['isLimit'](_0x37c2ff)&&_0x5c69a5['checkChild'](_0x37c2ff['parent'],'codeBlock');}function isCodeBlock(_0x333fd6){return'codeBlock'==_0x333fd6['name'];}class TrackChangesComments extends Plugin{['afterInit'](){const _0x5712eb=this['editor'];if(!_0x5712eb['plugins']['has']('CommentsEditing'))return;_0x5712eb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends Plugin{static get['requires'](){return[Delete];}['init'](){const _0x31263b=this['editor'],_0x4e4bf2=_0x31263b['plugins']['get']('TrackChangesEditing');_0x4e4bf2['enableCommand']('delete');const _0x961a25=_0x31263b['commands']['get']('deleteForward');_0x4e4bf2['enableCommand']('deleteForward',(_0x4df878,_0x3b87a9={})=>{const _0x52f2e0=_0x31263b['model']['createSelection'](_0x31263b['model']['document']['selection']);_0x52f2e0['isCollapsed']&&_0x31263b['model']['modifySelection'](_0x52f2e0,{'direction':'forward','unit':_0x3b87a9['unit']});const _0x362517=_0x52f2e0['getFirstRange'](),_0x533f35=ModelLiveRange['fromRange'](_0x362517);let _0xeb21f9;_0x4df878(_0x3b87a9),_0xeb21f9='$graveyard'==_0x533f35['root']['rootName']?_0x31263b['model']['createRange'](_0x362517['start']):_0x31263b['model']['createRange'](_0x533f35['start'],_0x533f35['end']),_0x533f35['detach'](),_0x31263b['model']['enqueueChange'](_0x961a25['buffer']['batch'],_0x554d54=>{_0x961a25['buffer']['lock'](),_0x554d54['setSelection'](_0x554d54['createRange'](_0xeb21f9['end'])),_0x961a25['buffer']['unlock']();});});}}class TrackChangesList extends Plugin{['afterInit'](){const _0x1a3c8a=this['editor'];if(!_0x1a3c8a['plugins']['has']('ListEditing'))return;const _0xbc6a4=_0x1a3c8a['locale'],_0x5caaa7=_0x1a3c8a['plugins']['get']('TrackChangesEditing'),_0x225140=_0x1a3c8a['plugins']['has']('TodoListEditing'),_0x409eaf=!!_0x1a3c8a['config']['get']('list.multiBlock');function _0x3f2ef2(_0x5eae45){return{'type':'format','content':''+getTranslation$5(_0xbc6a4,'*Set\x20format:*\x20%0',_0x5eae45)};}function _0x19cebe(_0x54554e){return{'type':'format','content':''+getTranslation$5(_0xbc6a4,'*Remove\x20format:*\x20%0',_0x54554e)};}_0x5caaa7['enableDefaultAttributesIntegration']('numberedList'),_0x5caaa7['enableDefaultAttributesIntegration']('bulletedList'),_0x5caaa7['enableDefaultAttributesIntegration']('customNumberedList'),_0x5caaa7['enableDefaultAttributesIntegration']('customBulletedList'),_0x5caaa7['enableDefaultAttributesIntegration']('indentList'),_0x5caaa7['enableDefaultAttributesIntegration']('outdentList'),_0x5caaa7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5caaa7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x409eaf&&(_0x5caaa7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5caaa7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x225140&&(_0x5caaa7['enableDefaultAttributesIntegration']('todoList'),_0x5caaa7['enableDefaultAttributesIntegration']('checkTodoList'),_0x5caaa7['descriptionFactory']['registerDescriptionCallback'](_0x331598=>{const {data:_0x13bd29}=_0x331598;if(_0x13bd29&&'todoListChecked'==_0x13bd29['key'])return{'type':'format','content':_0x13bd29['newValue']?getTranslation$5(_0xbc6a4,'*Check\x20item*'):getTranslation$5(_0xbc6a4,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x32fea3=>{if(_0x32fea3['batch']['isUndo'])return!0x1;let _0x4d13c3=!0x1;const _0x53bddd=_0x5caaa7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16c0d6=>'todoListChecked'===_0x5caaa7['_getAttributeKey'](_0x16c0d6));for(const _0x5ed397 of _0x53bddd){'todo'!=_0x5ed397['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5caaa7['_findSuggestions'](_0x5ed397['getFirstRange'](),'attribute')['find'](_0x22cfdb=>'listType'===_0x5caaa7['_getAttributeKey'](_0x22cfdb['suggestion']))||(_0x32fea3['removeMarker'](_0x5ed397['getFirstMarker']()),_0x4d13c3=!0x0));}return _0x4d13c3;})),_0x5caaa7['descriptionFactory']['registerAttributeLabel']('listIndent',getTranslation$5(_0xbc6a4,'FORMAT_INDENT'));const _0x38917a={'type':'format','content':''};_0x5caaa7['descriptionFactory']['registerDescriptionCallback'](_0x17bc6d=>{const {data:_0x2d66dc}=_0x17bc6d;if(!_0x2d66dc||'listType'!=_0x2d66dc['key'])return;let _0x1b2ec4=_0x17bc6d['head'];for(;_0x1b2ec4;){if(_0x1b2ec4['data']&&(('listStyle'==_0x1b2ec4['data']['key']||'listMarkerStyle'==_0x1b2ec4['data']['key'])&&(_0x1b2ec4['data']['newValue']&&'default'!=_0x1b2ec4['data']['newValue']||'default'!=_0x1b2ec4['data']['oldValue']&&!_0x2d66dc['newValue'])||!_0x409eaf&&_0x1b2ec4['data']['key']==renameAttributeKey))return _0x38917a;_0x1b2ec4=_0x1b2ec4['next'];}if(null==_0x2d66dc['newValue'])switch(_0x2d66dc['oldValue']){case'bulleted':return _0x19cebe(getTranslation$5(_0xbc6a4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19cebe(getTranslation$5(_0xbc6a4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19cebe(getTranslation$5(_0xbc6a4,'ELEMENT_TODO_LIST'));}switch(_0x2d66dc['newValue']){case'bulleted':return _0x3f2ef2(getTranslation$5(_0xbc6a4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f2ef2(getTranslation$5(_0xbc6a4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f2ef2(getTranslation$5(_0xbc6a4,'ELEMENT_TODO_LIST'));}}),_0x5caaa7['descriptionFactory']['registerDescriptionCallback'](_0x49519c=>{const {data:_0x32bf73}=_0x49519c;if(_0x32bf73&&'listIndent'==_0x32bf73['key'])return null==_0x32bf73['newValue']||null==_0x32bf73['oldValue']&&0x0==_0x32bf73['newValue']?_0x38917a:void 0x0;}),_0x5caaa7['descriptionFactory']['registerDescriptionCallback'](_0x57a3d1=>{if('attribute'!=_0x57a3d1['type'])return;const {data:_0x50605b}=_0x57a3d1;if(!_0x50605b||'listItemId'!=_0x50605b['key'])return;const _0x586325=checkSiblingsListItemId(_0x57a3d1);return'newValue'==_0x586325?{'type':'format','content':getTranslation$5(_0xbc6a4,'*Merge:*\x20list\x20item')}:'oldValue'==_0x586325?{'type':'format','content':getTranslation$5(_0xbc6a4,'*Split:*\x20list\x20item')}:_0x38917a;}),_0x1a3c8a['model']['document']['registerPostFixer'](_0x47756d=>this['listItemIdFixer'](_0x47756d)),_0x1a3c8a['model']['document']['registerPostFixer'](_0x3407e5=>this['noTrackChangesFixer'](_0x3407e5)),_0x1a3c8a['model']['document']['on']('change:data',(_0x4b0611,_0x32bfac)=>{if(_0x32bfac['isUndo']||!_0x32bfac['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x341548){if(_0x341548['batch']['isUndo']||!_0x341548['batch']['isLocal'])return!0x1;let _0x4667c2=!0x1;const _0x19f6be=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a86f6=>_0x4a86f6['data']&&'listItemId'==_0x4a86f6['data']['key'])['filter'](_0x529f61=>_0x529f61['data']['newValue']&&_0x529f61['data']['oldValue']);for(const _0x279b39 of _0x19f6be)checkSiblingsListItemId(_0x279b39)||(_0x341548['removeMarker'](_0x279b39['getFirstMarker']()),_0x4667c2=!0x0);return _0x4667c2;}['noTrackChangesFixer'](_0x46f449){if(_0x46f449['batch']['isUndo']||!_0x46f449['batch']['isLocal'])return!0x1;const _0x2de8db=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2de8db['trackChangesCommand']['value'])return!0x1;let _0x33b668=!0x1;const _0xd2645a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x889696=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xc2f37f=>'attribute'==_0xc2f37f['type'])['filter'](_0x2c0a9f=>_0xd2645a['includes'](_0x2c0a9f['attributeKey']));if(0x0==_0x889696['length'])return _0x33b668;for(const _0x5a86cf of _0x889696){const _0xc56ed4=_0x2de8db['_findSuggestions'](_0x5a86cf['range'],'attribute')['filter'](_0x4c6818=>!_0x4c6818['meta']['isNextTo'])['map'](_0x548351=>_0x548351['suggestion'])['filter'](_0x2f5db6=>{const _0x580732=_0x2de8db['_getAttributeKey'](_0x2f5db6);return _0xd2645a['includes'](_0x580732);});if(_0xc56ed4['length']){for(const _0x31da5b of _0xc56ed4)_0x46f449['removeMarker'](_0x31da5b['getFirstMarker']());_0x33b668=!0x0;}}return _0x33b668;}['assureChains'](){const _0x329f8f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38abd8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x33f180;const _0x2e4db2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x14807a=>{if(_0x14807a['data']['oldRange']||!_0x14807a['data']['newRange'])return null;if(!_0x14807a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3fafe5}=splitSuggestionMarkerName(_0x14807a['name']);if(!_0x329f8f['hasSuggestion'](_0x3fafe5))return null;const _0x67284c=_0x329f8f['getSuggestion'](_0x3fafe5);return _0x38abd8['includes'](_0x67284c['data']['key']);})['map'](_0x693b54=>{const {id:_0x5e4b9b}=splitSuggestionMarkerName(_0x693b54['name']),_0x169eba=_0x329f8f['getSuggestion'](_0x5e4b9b);return _0x33f180=_0x169eba['attributes']['groupId'],_0x169eba['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2e4db2['size'])return;const _0x34e177=_0x329f8f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b21e4=>'attribute'==_0x2b21e4['type']&&_0x2b21e4['data']&&_0x38abd8['includes'](_0x2b21e4['data']['key'])&&_0x2b21e4['attributes']['groupId']!=_0x33f180)['map'](_0x39bb08=>({'listItem':_0x39bb08['getFirstRange']()['start']['nodeAfter'],'groupId':_0x39bb08['attributes']['groupId']})),_0xb026d8=new Set();for(const {groupId:_0x1beff2,listItem:_0x31fdb1}of _0x34e177)_0x2e4db2['has'](_0x31fdb1)&&_0xb026d8['add'](_0x1beff2);for(const _0x55a16a of _0x329f8f['getSuggestions']())_0xb026d8['has'](_0x55a16a['attributes']['groupId'])&&_0x55a16a['setAttribute']('groupId',_0x33f180);}['_supportLegacySuggestions'](){const _0x657984=this['editor'],_0x2fe0b4=_0x657984['locale'],_0x45407c=_0x657984['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x45407c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x21cf46,_0x54fbb8){const _0x5554c2=[];for(let _0x2c2717 of _0x21cf46)_0x2c2717['start']['nodeAfter']===_0x2c2717['end']['parent']&&(_0x2c2717=_0x657984['model']['createRange'](_0x657984['model']['createPositionAt'](_0x2c2717['start']['nodeAfter'],0x0))),_0x5554c2['push'](_0x2c2717);_0x657984['model']['change'](_0x60729=>{const _0x28da58=_0x657984['model']['document']['selection'],_0x4e5b94=Array['from'](_0x28da58['getRanges']())['map'](_0x3636f4=>ModelLiveRange['fromRange'](_0x3636f4));_0x60729['setSelection'](_0x5554c2),_0x657984['commands']['get'](_0x54fbb8['commandName'])['refresh'](),_0x54fbb8['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x657984['execute'](_0x54fbb8['commandName'],..._0x54fbb8['commandParams']),_0x60729['setSelection'](_0x4e5b94);for(const _0x3ad6b0 of _0x4e5b94)_0x3ad6b0['detach']();});}),_0x45407c['descriptionFactory']['registerElementLabel'](function(_0x51b44c){const _0x3949f0=!_0x657984['model']['schema']['isObject'](_0x51b44c),_0x5afdd1=_0x51b44c['previousSibling'],_0x12e336=_0x51b44c['nextSibling'],_0x547c33=_0x51b44c['getAttribute']('listItemId'),_0x408e27=!_0x5afdd1||_0x5afdd1['getAttribute']('listItemId')!==_0x547c33,_0x1a09fd=!_0x12e336||_0x12e336['getAttribute']('listItemId')!==_0x547c33;return _0x3949f0&&Boolean(_0x547c33)&&_0x408e27&&_0x1a09fd;},_0x2baab1=>getTranslation$5(_0x2fe0b4,'ELEMENT_LIST_ITEM',_0x2baab1));}['_registerLegacyDescription'](){const _0x5c3b3e=this['editor'],_0x295168=_0x5c3b3e['locale'];function _0x53e5cb(_0x392c01){const _0x155641=_0x5c3b3e['commands']['get']('bulletedList')['value'],_0x66d379=_0x5c3b3e['commands']['get']('numberedList')['value'];return'numberedList'===_0x392c01?_0x155641:_0x66d379;}_0x5c3b3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x138bff){if('formatBlock'!=_0x138bff['type'])return;const {data:_0x38a3b2}=_0x138bff;if(!_0x38a3b2)return;let _0x209b96,_0x483212,_0x481bad,_0x6737a7;switch(_0x38a3b2['commandName']){case'bulletedList':_0x481bad=_0x38a3b2['commandParams'][0x0]['forceValue'],_0x6737a7=_0x53e5cb(_0x38a3b2['commandName']),_0x209b96=_0x481bad?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x6737a7&&_0x5c3b3e['config']['get']('list.multiBlock')||(_0x209b96='*Change\x20to:*\x20%0'),_0x483212={'type':'format','content':getTranslation$5(_0x295168,_0x209b96,getTranslation$5(_0x295168,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x481bad=_0x38a3b2['commandParams'][0x0]['forceValue'],_0x6737a7=_0x53e5cb(_0x38a3b2['commandName']),_0x209b96=_0x481bad?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x6737a7&&_0x5c3b3e['config']['get']('list.multiBlock')||(_0x209b96='*Change\x20to:*\x20%0'),_0x483212={'type':'format','content':getTranslation$5(_0x295168,_0x209b96,getTranslation$5(_0x295168,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x209b96='*Indent:*\x20%0',_0x483212={'type':'format','content':getTranslation$5(_0x295168,_0x209b96,getTranslation$5(_0x295168,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x209b96=function(_0x3e76d4){const _0x132f18=_0x3e76d4['getFirstRange']();let _0x157841=_0x132f18['start']['nodeAfter'];for(;_0x157841&&_0x132f18['containsItem'](_0x157841);){if(_0x157841['getAttribute']('listIndent')>0x0)return!0x1;_0x157841=_0x157841['nextSibling'];}return!0x0;}(_0x138bff)?getTranslation$5(_0x295168,'*Format:*\x20remove\x20from\x20%0',getTranslation$5(_0x295168,function(_0x14429e){return'ELEMENT_'+_0x14429e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x138bff))):getTranslation$5(_0x295168,'*Outdent:*\x20%0',getTranslation$5(_0x295168,'ELEMENT_LIST_ITEM')),_0x483212={'type':'format','content':_0x209b96};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x38a3b2['multipleBlocks']&&(_0x209b96='*Merge:*\x20%0',_0x483212={'type':'deletion','content':getTranslation$5(_0x295168,_0x209b96,getTranslation$5(_0x295168,'ELEMENT_LIST_ITEM'))});}return _0x483212;});}}function checkSiblingsListItemId(_0x366360){let _0x4b32c9=_0x366360['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b32c9;){const _0xd1139a=_0x4b32c9['getAttribute']('listItemId');if(!_0xd1139a)return!0x1;if(_0xd1139a==_0x366360['data']['newValue'])return'newValue';if(_0xd1139a==_0x366360['data']['oldValue'])return'oldValue';_0x4b32c9=_0x4b32c9['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4afb73=this['editor']['config']['get']('list.properties'),_0x390fa5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4afb73['styles']&&_0x390fa5['enableDefaultAttributesIntegration']('listStyle'),_0x4afb73['reversed']&&_0x390fa5['enableDefaultAttributesIntegration']('listReversed'),_0x4afb73['startIndex']&&_0x390fa5['enableDefaultAttributesIntegration']('listStart');const _0x17f553={'type':'format','content':''};_0x390fa5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x159da4=this['editor']['locale'];_0x390fa5['descriptionFactory']['registerAttributeLabel']('listReversed',getTranslation$5(_0x159da4,'FORMAT_LIST_REVERSED')),_0x390fa5['descriptionFactory']['registerDescriptionCallback'](_0xefc43b=>{const {data:_0x3f5b14}=_0xefc43b;if(_0x3f5b14&&'listReversed'==_0x3f5b14['key'])return null==_0x3f5b14['newValue']||0x0==_0x3f5b14['newValue']&&null==_0x3f5b14['oldValue']?_0x17f553:void 0x0;}),_0x390fa5['descriptionFactory']['registerAttributeLabel']('listStart',getTranslation$5(_0x159da4,'FORMAT_LIST_START')),_0x390fa5['descriptionFactory']['registerDescriptionCallback'](_0x54c9c6=>{const {data:_0xcb8103}=_0x54c9c6;if(_0xcb8103&&'listStart'==_0xcb8103['key'])return null==_0xcb8103['newValue']||0x1==_0xcb8103['newValue']&&null==_0xcb8103['oldValue']?_0x17f553:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x23cb1f=>{if(_0x23cb1f['batch']['isUndo'])return!0x1;let _0x47b973=!0x1;const _0x445b94=_0x390fa5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2cfb18=>{const _0x655484=_0x390fa5['_getAttributeKey'](_0x2cfb18);return'listStart'==_0x655484||'listReversed'==_0x655484;});for(const _0x1da3d3 of _0x445b94){const _0x147e5d=_0x1da3d3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x147e5d||'customNumbered'==_0x147e5d)continue;_0x390fa5['_findSuggestions'](_0x1da3d3['getFirstRange'](),'attribute')['find'](_0x27b7f6=>'listType'==_0x390fa5['_getAttributeKey'](_0x27b7f6['suggestion']))||(_0x23cb1f['removeMarker'](_0x1da3d3['getFirstMarker']()),_0x47b973=!0x0);}return _0x47b973;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x517ffc){const _0x4ad22d=this['editor']['locale'],{data:_0x4e6de1}=_0x517ffc,_0x5a5c4e={'type':'format','content':''};if(!_0x4e6de1||'listStyle'!=_0x4e6de1['key'])return;if(!_0x4e6de1['oldValue'])return'default'==_0x4e6de1['newValue']?_0x5a5c4e:{'type':'format','content':''+getTranslation$5(_0x4ad22d,'*Set\x20format:*\x20%0',getTranslation$5(_0x4ad22d,this['_getTranslationKeyForListStyle'](_0x4e6de1['newValue'])))};if(!_0x4e6de1['newValue']){if('default'==_0x4e6de1['oldValue'])return _0x5a5c4e;let _0x33a974=_0x517ffc['head'];for(;_0x33a974;){if(_0x33a974['data']&&'listType'==_0x33a974['data']['key']&&_0x33a974['data']['newValue'])return _0x5a5c4e;_0x33a974=_0x33a974['next'];}return{'type':'format','content':''+getTranslation$5(_0x4ad22d,'*Remove\x20format:*\x20%0',getTranslation$5(_0x4ad22d,this['_getTranslationKeyForListStyle'](_0x4e6de1['oldValue'])))};}if('default'!=_0x4e6de1['newValue'])return{'type':'format','content':''+getTranslation$5(_0x4ad22d,'*Set\x20format:*\x20%0',getTranslation$5(_0x4ad22d,this['_getTranslationKeyForListStyle'](_0x4e6de1['newValue'])))};let _0x2be196=_0x517ffc['head'];for(;_0x2be196;){if(_0x2be196['data']&&'listType'==_0x2be196['data']['key']&&_0x2be196['data']['newValue']&&_0x2be196['data']['oldValue'])return _0x5a5c4e;_0x2be196=_0x2be196['next'];}return{'type':'format','content':getTranslation$5(_0x4ad22d,'*Set\x20format:*\x20%0',getTranslation$5(_0x4ad22d,'ELEMENT_'+_0x517ffc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1a8780=this['editor'],_0x80b4f0=_0x1a8780['locale'];_0x1a8780['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd39a21=>{if('formatBlock'!=_0xd39a21['type'])return;const {data:_0x7b529c}=_0xd39a21;if(!_0x7b529c)return;let _0x16d62d,_0x24867d;switch(_0x7b529c['commandName']){case'listStyle':_0x16d62d='*Change\x20to:*\x20%0',_0x24867d={'type':'format','content':getTranslation$5(_0x80b4f0,_0x16d62d,getTranslation$5(_0x80b4f0,this['_getTranslationKeyForListStyle'](_0x7b529c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x16d62d=_0x7b529c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x24867d={'type':'format','content':getTranslation$5(_0x80b4f0,_0x16d62d)};break;case'listStart':_0x16d62d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x24867d={'type':'format','content':getTranslation$5(_0x80b4f0,_0x16d62d,_0x7b529c['commandParams'][0x0]['startIndex'])};}return _0x24867d;});}['_getTranslationKeyForListStyle'](_0x506451){return'ELEMENT_'+getListTypeFromListStyleType(_0x506451)['toUpperCase']()+'_LIST_'+_0x506451['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(_0x552035){return BULLETED_LIST_STYLE_TYPES['includes'](_0x552035)?'bulleted':NUMBERED_LIST_STYLE_TYPES['includes'](_0x552035)?'numbered':null;}class TrackChangesEmoji extends Plugin{['afterInit'](){const _0x5ae7ed=this['editor'];_0x5ae7ed['commands']['get']('emoji')&&_0x5ae7ed['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends Plugin{static get['requires'](){return[Enter];}['init'](){const _0x468197=this['editor'],_0x5858c9=_0x468197['plugins']['get']('TrackChangesEditing'),_0xdb7fc5=_0x468197['commands']['get']('enter');_0x5858c9['enableCommand']('enter',()=>{_0x468197['model']['change'](_0x3b571d=>{const _0x340125=_0x468197['model']['document']['selection'],_0x44c211=_0x340125['getFirstPosition'](),_0x2134c1=ModelLiveRange['fromRange'](_0x340125['getFirstRange']());if(_0xdb7fc5['enterBlock'](_0x3b571d)){const _0x56f80c=_0x468197['model']['createPositionAt'](_0x44c211['parent']['nextSibling'],0x0),_0x2867ce=_0x3b571d['createRange'](_0x44c211,_0x56f80c);_0x5858c9['markInsertion'](_0x2867ce);}else _0x3b571d['setSelection'](_0x3b571d['createRange'](_0x2134c1['end']));_0x2134c1['detach'](),_0xdb7fc5['fire']('afterExecute',{'writer':_0x3b571d});});});}}class TrackChangesFindAndReplace extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5154f4=this['editor']['plugins']['get']('TrackChangesEditing');_0x5154f4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5154f4['enableCommand']('findNext'),_0x5154f4['enableCommand']('findPrevious'),_0x5154f4['enableCommand']('replace'),_0x5154f4['enableCommand']('replaceAll');}['handleFindCommand'](_0x4f629f,_0x5a453d,_0x939d99={}){const _0x13228a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4f629f(_0x5811bd=>{let _0x2696a0=('string'==typeof _0x5a453d?_0x13228a['findByTextCallback'](_0x5a453d,_0x939d99):_0x5a453d)(_0x5811bd);Array['isArray'](_0x2696a0)&&(_0x2696a0={'results':_0x2696a0,'searchText':'string'==typeof _0x5a453d?_0x5a453d:''});const _0xef4690=_0x2696a0['results']['filter'](_0x4b557a=>!0x1===this['_isInDeletionRange'](_0x4b557a,_0x5811bd['item']));return{..._0x2696a0,'results':_0xef4690};},_0x939d99);}['_isInDeletionRange'](_0x9ad260,_0x619306){const _0x82cd69=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x619306,_0x9ad260['start']),this['editor']['model']['createPositionAt'](_0x619306,_0x9ad260['end']));for(const _0x236963 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x82cd69['getIntersection'](_0x236963['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 _0x4682f1=this['editor']['locale'],_0x20177b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3b2b53,commandName:_0x258cb0}of fontPlugins)this['editor']['plugins']['has'](_0x3b2b53)&&_0x20177b['enableDefaultAttributesIntegration'](_0x258cb0);_0x20177b['descriptionFactory']['registerAttributeLabel']('fontSize',getTranslation$5(_0x4682f1,'FORMAT_FONT_SIZE')),_0x20177b['descriptionFactory']['registerAttributeLabel']('fontFamily',getTranslation$5(_0x4682f1,'FORMAT_FONT_FAMILY')),_0x20177b['descriptionFactory']['registerAttributeLabel']('fontColor',getTranslation$5(_0x4682f1,'FORMAT_FONT_COLOR')),_0x20177b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',getTranslation$5(_0x4682f1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59dc8b=this['editor'],_0x1235fb=_0x59dc8b['locale'];_0x59dc8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b53f1=>{const _0x4b8893=_0x1235fb['t'];if('formatInline'!=_0x1b53f1['type'])return;const {data:_0x137dd9}=_0x1b53f1;if(null!=_0x137dd9){if('fontSize'==_0x137dd9['commandName']){const _0xfb91a6=_0x137dd9['commandParams'][0x0]['value'];if(_0xfb91a6){const _0x4b9a7e=_0x4b8893(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4443ea=>_0x4443ea['model']==_0xfb91a6)['title'])['toLowerCase']();return{'type':'format','content':getTranslation$5(_0x1235fb,'*Set\x20font\x20size:*\x20%0',_0x4b9a7e)};}return{'type':'format','content':getTranslation$5(_0x1235fb,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x137dd9['commandName']){const _0x5e74b9=_0x137dd9['commandParams'][0x0]['value'];return _0x5e74b9?{'type':'format','content':getTranslation$5(_0x1235fb,'*Set\x20font\x20family:*\x20%0',_0x5e74b9)}:{'type':'format','content':getTranslation$5(_0x1235fb,'*Reset\x20font\x20family*')};}if('fontColor'==_0x137dd9['commandName']){const _0x136fea=_0x137dd9['commandParams'][0x0]['value'];if(_0x136fea){const _0x4224f5=normalizeColorOptions(this['editor']['config']['get']('fontColor.colors'))['find'](_0x24b7f6=>_0x24b7f6['model']==_0x136fea);let _0x5efae6=_0x136fea,_0x172647='';return _0x4224f5&&(_0x5efae6=_0x4224f5['label'],_0x172647=_0x4b8893(_0x5efae6)['toLowerCase']()),{'type':'format','content':getTranslation$5(_0x1235fb,'*Set\x20font\x20color:*\x20%0',_0x172647)['trim'](),'color':{'value':_0x136fea,'title':_0x172647||_0x5efae6}};}return{'type':'format','content':getTranslation$5(_0x1235fb,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x137dd9['commandName']){const _0x175782=_0x137dd9['commandParams'][0x0]['value'];if(_0x175782){const _0x2d0129=normalizeColorOptions(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3dc9cd=>_0x3dc9cd['model']==_0x175782);let _0x519d61=_0x175782,_0x4d7d63='';return _0x2d0129&&(_0x519d61=_0x2d0129['label'],_0x4d7d63=_0x4b8893(_0x519d61)['toLowerCase']()),{'type':'format','content':getTranslation$5(_0x1235fb,'*Set\x20font\x20background\x20color:*\x20%0',_0x4d7d63)['trim'](),'color':{'value':_0x175782,'title':_0x4d7d63||_0x519d61}};}return{'type':'format','content':getTranslation$5(_0x1235fb,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends Plugin{['afterInit'](){const {plugins:_0xcc5c63}=this['editor'];_0xcc5c63['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0xcc5c63['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x9c805,plugins:_0x1b074a,commands:_0x4e52db}=this['editor'],_0x2d00e5=_0x1b074a['get']('TrackChangesEditing');_0x4e52db['get']('footnotesStyle')&&_0x2d00e5['enableDefaultAttributesIntegration']('footnotesStyle'),_0x4e52db['get']('footnotesStart')&&_0x2d00e5['enableDefaultAttributesIntegration']('footnotesStart'),_0x2d00e5['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',getTranslation$5(_0x9c805,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x2d00e5['descriptionFactory']['registerAttributeLabel']('footnotesListStart',getTranslation$5(_0x9c805,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x445a55=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x381fe2,commands:_0x13a12d}=this['editor'];_0x13a12d['get']('insertFootnote')&&_0x445a55['enableCommand']('insertFootnote'),_0x445a55['descriptionFactory']['registerElementLabel']('footnoteRef',_0x17ee92=>getTranslation$5(_0x381fe2,'ELEMENT_FOOTNOTE_REF',_0x17ee92)),_0x445a55['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4db190=>getTranslation$5(_0x381fe2,'ELEMENT_FOOTNOTE_DEFINITION',_0x4db190)),_0x445a55['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x55abf8=>getTranslation$5(_0x381fe2,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x55abf8));}}class TrackChangesFormatPainter extends Plugin{['afterInit'](){const _0x595be1=this['editor'],_0xc50479=_0x595be1['plugins']['get']('TrackChangesEditing'),_0x59c7ce=_0x595be1['commands']['get']('copyFormat'),_0x25874a=_0x595be1['commands']['get']('pasteFormat');_0x59c7ce&&_0x25874a&&(_0xc50479['enableDefaultAttributesIntegration']('pasteFormat'),_0xc50479['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x393f83=this['editor'],_0x2f6d39=_0x393f83['locale'];_0x393f83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c7dde=>{if('formatBlock'!=_0x3c7dde['type']&&'formatInline'!=_0x3c7dde['type'])return;const {data:_0x41c200}=_0x3c7dde;if(_0x41c200&&'pasteFormat'===_0x41c200['commandName']){const _0x242c12=[],_0x17263f=_0x41c200['commandParams'][0x0];for(const [_0x11a897,_0x115c20]of Object['entries'](_0x17263f))_0x242c12['push'](translateFormatting(_0x393f83,_0x11a897,_0x115c20));return _0x242c12['length']?{'type':'format','content':getTranslation$5(_0x2f6d39,'*Set\x20format\x20to:*\x20%0',_0x242c12['join'](',\x20'))}:{'type':'format','content':getTranslation$5(_0x2f6d39,'*Remove\x20all\x20formatting*')};}});}}function translateFormatting(_0x374426,_0x282a59,_0x1c51f1){const _0x3fb43f=_0x374426['locale']['t'],_0x981a3a=_0x282a59['split'](/(?=[A-Z])/)['join']('\x20'),_0x22863a=_0x3fb43f(_0x981a3a['charAt'](0x0)['toUpperCase']()+_0x981a3a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1c51f1)return _0x22863a;if('fontColor'===_0x282a59||'fontBackgroundColor'===_0x282a59){const _0x1eecbe=normalizeColorOptions(_0x374426['config']['get']('fontColor.colors'))['find'](_0x3a98ba=>_0x3a98ba['model']==_0x1c51f1);return _0x22863a+'\x20('+(_0x1eecbe?_0x3fb43f(_0x1eecbe['label'])['toLowerCase']():_0x1c51f1)+')';}if('fontSize'===_0x282a59&&isNaN(parseFloat(_0x1c51f1))){const _0x154f64=_0x374426['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x374426['config']['get']('fontSize.options'))['find'](_0x24358f=>_0x24358f['model']==_0x1c51f1);return _0x22863a+'\x20('+(_0x154f64?_0x3fb43f(_0x154f64['title'])['toLowerCase']():_0x1c51f1)+')';}return _0x22863a+'\x20('+_0x1c51f1+')';}class TrackChangesHeading extends Plugin{['_headingOptions'];['afterInit'](){const _0x414cad=this['editor'];if(!_0x414cad['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x414cad['config']['get']('heading.options');const _0x581b73=_0x414cad['locale'],_0x4cb86f=_0x414cad['plugins']['get']('TrackChangesEditing');_0x4cb86f['enableDefaultAttributesIntegration']('heading');for(const _0x3e58c7 of this['_headingOptions'])'paragraph'!=_0x3e58c7['model']&&_0x4cb86f['descriptionFactory']['registerElementLabel'](_0x3e58c7['model'],_0x852041=>{const _0x24b527=this['_getHeadingLevel'](_0x3e58c7['model']);return null!==_0x24b527?_0xbe15d3(_0x852041,_0x24b527):_0x30ffe9(_0x852041,_0x3e58c7['title']);});function _0xbe15d3(_0x5a6e3c,_0x219464){return getTranslation$5(_0x581b73,'ELEMENT_HEADING',[_0x5a6e3c,_0x219464]);}function _0x30ffe9(_0x41f274,_0xf618f7){return getTranslation$5(_0x581b73,'ELEMENT_HEADING_CUSTOM',[_0x41f274,_0xf618f7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4afe5f=this['editor'],_0x5bc81e=_0x4afe5f['locale'];function _0xc459fe(_0x36bae3,_0x572173){return getTranslation$5(_0x5bc81e,'ELEMENT_HEADING_CUSTOM',[_0x36bae3,_0x572173]);}_0x4afe5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dc142=>{if('formatBlock'!=_0x2dc142['type'])return;const {data:_0x12ed2b}=_0x2dc142;if(_0x12ed2b&&'heading'==_0x12ed2b['commandName']){const _0x1065cf=_0x12ed2b['commandParams'][0x0]['value'],_0x2c1044=this['_getHeadingLevel'](_0x1065cf);if(null!==_0x2c1044)return{'type':'format','content':getTranslation$5(_0x5bc81e,'*Change\x20to:*\x20%0',(_0x3e4dec=0x1,_0x1f53e0=_0x2c1044,getTranslation$5(_0x5bc81e,'ELEMENT_HEADING',[_0x3e4dec,_0x1f53e0])))};const _0x4996d2=this['_headingOptions']['find'](_0x40e51c=>_0x40e51c['model']===_0x1065cf)['title'];return{'type':'format','content':getTranslation$5(_0x5bc81e,'*Change\x20to:*\x20%0',_0xc459fe(0x1,_0x4996d2))};}var _0x3e4dec,_0x1f53e0;});}['_getHeadingLevel'](_0x391aa4){const _0x385b7a=_0x391aa4['match'](/^heading(\d+)/);if(_0x385b7a)return _0x385b7a[0x1];const _0x22d36b=this['_headingOptions']?.['find'](_0x474eeb=>_0x474eeb['model']==_0x391aa4);if(_0x22d36b&&_0x22d36b['view']){const _0x12bd3c=_0x22d36b['view'],_0x4a084d=(_0x12bd3c['name']??_0x12bd3c)['match'](/^h(\d+)/);if(_0x4a084d)return _0x4a084d[0x1];}return null;}}class TrackChangesHighlight extends Plugin{['afterInit'](){const _0x32d757=this['editor'];if(!_0x32d757['plugins']['has']('HighlightEditing'))return;const _0x709a8a=_0x32d757['plugins']['get']('TrackChangesEditing'),_0x38a9fc=_0x32d757['locale'];_0x709a8a['enableDefaultAttributesIntegration']('highlight'),_0x709a8a['descriptionFactory']['registerAttributeLabel']('highlight',getTranslation$5(_0x38a9fc,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9169b9=this['editor'],_0xcde85b=_0x9169b9['locale'];_0x9169b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26947b=>{if('formatInline'!=_0x26947b['type'])return;const {data:_0xdfe46}=_0x26947b;if(_0xdfe46&&'highlight'==_0xdfe46['commandName']){const _0x53df22=_0xcde85b['t'],_0x10f055=_0xdfe46['commandParams'][0x0]['value'];if(_0x10f055){const _0x52867d=_0x9169b9['config']['get']('highlight.options')['find'](_0x4827a4=>_0x4827a4['model']==_0x10f055),_0x4804d5=_0x53df22(_0x52867d['title'])['toLowerCase']();return{'type':'format','content':getTranslation$5(_0xcde85b,'*Set\x20highlight:*\x20%0',_0x4804d5),'color':{'value':_0x52867d['color'],'title':_0x52867d['title']}};}return{'type':'format','content':getTranslation$5(_0xcde85b,'*Remove\x20highlight*',getTranslation$5(_0xcde85b,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends Plugin{['afterInit'](){const _0x435708=this['editor'];if(!_0x435708['plugins']['has']('HorizontalLineEditing'))return;_0x435708['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5ab36a=_0x435708['plugins']['get']('TrackChangesEditing'),_0x4e7616=_0x435708['locale'];_0x5ab36a['descriptionFactory']['registerElementLabel']('horizontalLine',_0xb01e50=>getTranslation$5(_0x4e7616,'ELEMENT_HORIZONTAL_LINE',_0xb01e50));}}class TrackChangesHtmlEmbed extends Plugin{['afterInit'](){const _0x22287a=this['editor'];if(!_0x22287a['plugins']['has']('HtmlEmbed'))return;const _0x4a3f26=_0x22287a['plugins']['get']('TrackChangesEditing'),_0xefa7ca=_0x22287a['locale'];_0x4a3f26['descriptionFactory']['registerElementLabel']('rawHtml',_0x4132d9=>getTranslation$5(_0xefa7ca,'ELEMENT_HTML_EMBED',_0x4132d9)),_0x4a3f26['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4a3f26['descriptionFactory']['registerDescriptionCallback'](_0x12fad8=>{if('attribute'!=_0x12fad8['type'])return;const {data:_0x221a0e}=_0x12fad8;if(_0x221a0e&&'value'==_0x221a0e['key']&&_0x12fad8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xd4a287=getTranslation$5(_0xefa7ca,'ELEMENT_HTML_EMBED');return{'type':'format','content':getTranslation$5(_0xefa7ca,'*Change\x20%0\x20content*',_0xd4a287)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c457b=this['editor'],_0xa62304=_0x4c457b['locale'];_0x4c457b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11d05e=>{if('formatBlock'!=_0x11d05e['type'])return;const {data:_0x5e5bd4}=_0x11d05e;if(_0x5e5bd4&&'htmlEmbed'==_0x5e5bd4['commandName']){const _0x1bb531=getTranslation$5(_0xa62304,'ELEMENT_HTML_EMBED');return{'type':'format','content':getTranslation$5(_0xa62304,'*Change\x20%0\x20content*',_0x1bb531)};}});}}class TrackChangesImage extends Plugin{['afterInit'](){const _0x29ea4a=this['editor'];if(!_0x29ea4a['plugins']['has']('ImageEditing'))return;const _0x26f80d=_0x29ea4a['plugins']['get']('TrackChangesEditing'),_0x4ec438=_0x29ea4a['plugins']['get']('ImageUtils'),_0x2f8141=_0x29ea4a['locale'];_0x26f80d['enableCommand']('insertImage'),_0x26f80d['descriptionFactory']['registerElementLabel']('imageBlock',_0x502fe8=>getTranslation$5(_0x2f8141,'ELEMENT_IMAGE',_0x502fe8)),_0x26f80d['descriptionFactory']['registerElementLabel']('imageInline',_0x546b2b=>getTranslation$5(_0x2f8141,'ELEMENT_INLINE_IMAGE',_0x546b2b)),_0x26f80d['descriptionFactory']['registerElementLabel']('caption',()=>getTranslation$5(_0x2f8141,'ELEMENT_CAPTION')),_0x29ea4a['plugins']['has']('ImageUploadEditing')&&_0x26f80d['enableCommand']('uploadImage'),_0x29ea4a['plugins']['has']('ImageBlockEditing')&&_0x29ea4a['plugins']['has']('ImageInlineEditing')&&(_0x26f80d['enableCommand']('imageTypeInline',(_0x2136f7,_0x37b258)=>{const _0x3c6197=_0x4ec438['getClosestSelectedImageElement'](_0x29ea4a['model']['document']['selection']);_0x29ea4a['model']['change'](()=>{_0x26f80d['markBlockFormat'](_0x3c6197,{'commandName':'imageTypeInline','commandParams':[_0x37b258]},[],'convertBlockImageToInline');});}),_0x26f80d['enableCommand']('imageTypeBlock',(_0x3604e8,_0x13ea10)=>{_0x29ea4a['model']['change'](_0x5145df=>{let _0x38258c=_0x4ec438['getClosestSelectedImageElement'](_0x29ea4a['model']['document']['selection']),_0x3bdf24=_0x5145df['createRangeOn'](_0x38258c);const _0x467b10=ModelLivePosition['fromPosition'](_0x3bdf24['start'],'toPrevious'),_0x38e3b5=ModelLivePosition['fromPosition'](_0x3bdf24['end'],'toNext');_0x26f80d['forceDefaultExecution'](()=>_0x3604e8(_0x13ea10)),_0x38258c=_0x4ec438['getClosestSelectedImageElement'](_0x29ea4a['model']['document']['selection']),_0x3bdf24=_0x5145df['createRangeOn'](_0x38258c);const _0x54eac7=_0x5145df['createRange'](_0x467b10,_0x38e3b5);_0x467b10['detach'](),_0x38e3b5['detach'](),_0x26f80d['markBlockFormat'](_0x38258c,{'commandName':'imageTypeInline','commandParams':[_0x13ea10]},[],'convertInlineImageToBlock'),_0x54eac7['start']['isBefore'](_0x3bdf24['start'])&&_0x26f80d['markInsertion'](_0x5145df['createRange'](_0x54eac7['start'],_0x3bdf24['start']),'convertInlineImageToBlock'),_0x3bdf24['end']['isBefore'](_0x54eac7['end'])&&_0x26f80d['markInsertion'](_0x5145df['createRange'](_0x3bdf24['end'],_0x54eac7['end']),'convertInlineImageToBlock');});}),_0x26f80d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x26f80d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x26f80d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x26f80d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x26f80d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x26f80d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x18a687])=>{const _0x1d09f7=_0x26f80d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x43e5f2=_0x18a687['start'],_0x17adf3=_0x18a687['end'];const _0x3bbb60=_0x29ea4a['model']['schema']['getNearestSelectionRange'](_0x43e5f2,'backward'),_0x512682=_0x29ea4a['model']['schema']['getNearestSelectionRange'](_0x17adf3,'forward');_0x3bbb60['isCollapsed']&&(_0x43e5f2=_0x3bbb60['start']),_0x512682['isCollapsed']&&(_0x17adf3=_0x512682['end']),_0x1d09f7([_0x29ea4a['model']['createRange'](_0x43e5f2,_0x17adf3)]);}),_0x26f80d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5beabb),_0x26f80d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5beabb)),_0x29ea4a['plugins']['has']('ImageCaptionEditing')&&(_0x26f80d['enableCommand']('toggleImageCaption',(_0x3be0a1,_0x381856)=>{const _0x54fede=_0x29ea4a['plugins']['get']('ImageCaptionUtils');let _0x161dde=_0x4ec438['getClosestSelectedImageElement'](_0x29ea4a['model']['document']['selection']),_0x5a8a5c=_0x54fede['getCaptionFromImageModelElement'](_0x161dde);_0x29ea4a['model']['change'](()=>{if(_0x5a8a5c)return void _0x26f80d['markDeletion'](_0x29ea4a['model']['createRangeOn'](_0x5a8a5c));const _0x1615e0=_0x4ec438['isBlockImage'](_0x161dde);_0x3be0a1(_0x381856),_0x161dde=_0x4ec438['getClosestSelectedImageElement'](_0x29ea4a['model']['document']['selection']),_0x5a8a5c=_0x54fede['getCaptionFromImageModelElement'](_0x161dde),_0x26f80d['markInsertion'](_0x29ea4a['model']['createRangeOn'](_0x5a8a5c),_0x1615e0?null:'imageCaption');});}),_0x26f80d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5beabb));const _0x33a15f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x205924(_0xbacc01,_0x5ee3e1){const _0x3c43af=_0x33a15f['findIndex'](({type:_0x294d1b,subType:_0x5b5070})=>_0xbacc01['type']==_0x294d1b&&_0xbacc01['subType']==_0x5b5070),_0x37a39f=_0x33a15f['findIndex'](({type:_0x1ca1bb,subType:_0x2053af})=>_0x5ee3e1['type']==_0x1ca1bb&&_0x5ee3e1['subType']==_0x2053af);if(_0x3c43af<0x0||_0x37a39f<0x0)return!0x1;const _0x1dc680=_0xbacc01['getFirstRange'](),_0x1a97bc=_0x5ee3e1['getFirstRange']();if((0x0==_0x3c43af||0x1==_0x3c43af)&&0x2==_0x37a39f&&_0x1dc680['isIntersecting'](_0x1a97bc))return!0x0;if(0x2==_0x3c43af&&0x3==_0x37a39f){const _0x832775=_0x26f80d['_findSuggestions'](_0x1dc680,'insertion')['filter'](({suggestion:_0x3ef6e6,meta:_0x376bf7})=>_0x376bf7['isOwn']&&'convertInlineImageToBlock'==_0x3ef6e6['subType']);if(_0x832775['length']>0x1&&_0x1a97bc['end']['isEqual'](_0x1dc680['start']))return!0x0;if(0x1==_0x832775['length']&&(_0x1dc680['start']['isEqual'](_0x1a97bc['end'])||_0x1dc680['end']['isEqual'](_0x1a97bc['start'])))return!0x0;}if(0x3==_0x3c43af&&0x3==_0x37a39f&&_0x1dc680['start']['isBefore'](_0x1a97bc['start'])){const _0x299ec2=_0x1dc680['end']['nodeAfter'],_0x2ea793=_0x1a97bc['start']['nodeBefore'];return _0x4ec438['isBlockImage'](_0x299ec2)&&_0x299ec2===_0x2ea793;}return!0x1;}function _0x5beabb(_0x2a6190,_0x1f5009){return _0x205924(_0x2a6190,_0x1f5009)?[_0x2a6190,_0x1f5009]:_0x205924(_0x1f5009,_0x2a6190)?[_0x1f5009,_0x2a6190]:null;}_0x29ea4a['plugins']['has']('ImageResize')&&(_0x26f80d['enableDefaultAttributesIntegration']('resizeImage'),_0x26f80d['descriptionFactory']['registerAttributeLabel']('resizedWidth',getTranslation$5(_0x2f8141,'FORMAT_IMAGE_SIZE'))),_0x29ea4a['plugins']['has']('ImageTextAlternativeEditing')&&_0x26f80d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x29ea4a['plugins']['has']('PictureEditing')&&_0x26f80d['descriptionFactory']['registerDescriptionCallback'](_0x5275a7=>{if('attribute'!=_0x5275a7['type'])return;const {data:_0x4d9d1f}=_0x5275a7;return _0x4d9d1f&&'sources'==_0x4d9d1f['key']?{'type':'format','content':''}:void 0x0;}),_0x29ea4a['plugins']['has']('ImageSizeAttributes')&&_0x26f80d['descriptionFactory']['registerDescriptionCallback'](_0x417114=>{if('attribute'!=_0x417114['type'])return;const {data:_0x47b55d}=_0x417114;return!_0x47b55d||'width'!=_0x47b55d['key']&&'height'!=_0x47b55d['key']?void 0x0:{'type':'format','content':''};}),_0x26f80d['descriptionFactory']['registerDescriptionCallback'](_0x37a6ec=>{if(!!_0x33a15f['find'](({type:_0x51c061,subType:_0x467996})=>_0x37a6ec['type']==_0x51c061&&_0x37a6ec['subType']==_0x467996))return _0x37a6ec['previous']?{}:void 0x0;}),_0x26f80d['descriptionFactory']['registerDescriptionCallback'](_0x3c1a36=>{if('insertion'==_0x3c1a36['type']||'deletion'==_0x3c1a36['type']){const _0x5020a9=_0x3c1a36['getContainedElement']();if(_0x5020a9&&_0x5020a9['is']('element','caption'))return{'type':'insertion'==_0x3c1a36['type']?'addObject':'removeObject','element':_0x5020a9,'quantity':0x1};}}),_0x26f80d['descriptionFactory']['registerDescriptionCallback'](_0x1875e7=>'formatBlock'==_0x1875e7['type']&&'convertInlineImageToBlock'==_0x1875e7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1875e7['type']&&'convertBlockImageToInline'==_0x1875e7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x26f80d['descriptionFactory']['registerDescriptionCallback'](_0x5a8a61=>{if('attribute'!=_0x5a8a61['type'])return;const {data:_0x406509}=_0x5a8a61;if(!_0x406509||'alt'!=_0x406509['key'])return;const _0x437741=_0x406509['newValue'];return _0x437741?{'type':'format','content':getTranslation$5(_0x2f8141,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x437741+'\x22')}:{'type':'format','content':getTranslation$5(_0x2f8141,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f4f5f=this['editor'],_0x153a41=_0x4f4f5f['locale'];_0x4f4f5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ac5f8=>{if('formatBlock'!=_0x1ac5f8['type']&&'formatInline'!=_0x1ac5f8['type'])return;const {data:_0x32444d}=_0x1ac5f8;if(_0x32444d){if('imageTextAlternative'==_0x32444d['commandName']){const _0x34abff=_0x32444d['commandParams'][0x0]['newValue'];return _0x34abff?{'type':'format','content':getTranslation$5(_0x153a41,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x34abff+'\x22')}:{'type':'format','content':getTranslation$5(_0x153a41,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x32444d['commandName']){const _0x422219=_0x32444d['commandParams'][0x0]['width'];return _0x422219?{'type':'format','content':getTranslation$5(_0x153a41,'*Set\x20image\x20width:*\x20%0',_0x422219)}:{'type':'format','content':getTranslation$5(_0x153a41,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1f5cc1=this['editor']['locale'],_0x425a36=this['editor']['plugins']['get']('TrackChangesEditing');_0x425a36['enableDefaultAttributesIntegration']('replaceImageSource'),_0x425a36['descriptionFactory']['registerDescriptionCallback'](_0x583a6a=>{if('attribute'!=_0x583a6a['type'])return;const {data:_0x438d05}=_0x583a6a;return _0x438d05&&'src'==_0x438d05['key']?_0x438d05['newValue']&&_0x438d05['oldValue']?{'type':'format','content':getTranslation$5(_0x1f5cc1,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2f5be4=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f5be4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2f5be4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f5be4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2f5be4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d8b5b=this['editor'],_0x56c393=_0x3d8b5b['locale'];_0x3d8b5b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53612b=>{if('formatBlock'!=_0x53612b['type']&&'formatInline'!=_0x53612b['type'])return;const {data:_0x2f9849}=_0x53612b;if(!_0x2f9849||'replaceImageSource'!=_0x2f9849['commandName'])return;return{'type':'format','content':getTranslation$5(_0x56c393,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends Plugin{['afterInit'](){const _0x52abb8=this['editor'];if(!_0x52abb8['plugins']['has']('ImageStyleEditing'))return;const _0x42c7b6=_0x52abb8['plugins']['get']('TrackChangesEditing'),_0x3af3b7=_0x52abb8['plugins']['get']('ImageUtils'),_0x49086d={};_0x42c7b6['enableCommand']('imageStyle',(_0x437dc7,_0x4582b0)=>{const _0x3b2208=_0x52abb8['plugins']['get']('Users')['me'],_0x426534=_0x52abb8['commands']['get']('imageStyle');let _0x459ca6=_0x3af3b7['getClosestSelectedImageElement'](_0x52abb8['model']['document']['selection']),_0x9f2ae3=_0x52abb8['model']['createRangeOn'](_0x459ca6),_0x41b816=_0x426534['value'];if(_0x41b816==_0x4582b0['value'])return;const _0x4e00f6={'commandName':'imageStyle','commandParams':[_0x4582b0],'formatGroupId':uid()};_0x52abb8['model']['change'](()=>{if(_0x42c7b6['getSuggestions']()['filter'](_0x2945bf=>_0x2945bf['isInContent']&&_0x3b2208==_0x2945bf['author']&&('formatBlock'==_0x2945bf['type']||'formatInline'==_0x2945bf['type'])&&('imageStylePreApply'==_0x2945bf['subType']||'imageStylePostApply'==_0x2945bf['subType'])&&_0x2945bf['getFirstRange']()['isEqual'](_0x9f2ae3))['forEach'](_0x38826b=>_0x42c7b6['discardSuggestion'](_0x38826b['head'])),_0x459ca6=_0x3af3b7['getClosestSelectedImageElement'](_0x52abb8['model']['document']['selection']),_0x9f2ae3=_0x52abb8['model']['createRangeOn'](_0x459ca6),_0x426534['refresh'](),_0x52abb8['commands']['get']('imageTypeInline')['refresh'](),_0x52abb8['commands']['get']('imageTypeBlock')['refresh'](),_0x41b816=_0x426534['value'],_0x41b816!=_0x4582b0['value'])return _0x3af3b7['isInlineImage'](_0x459ca6)&&_0x426534['shouldConvertImageType'](_0x4582b0['value'],_0x459ca6)?(_0x437dc7({..._0x4582b0,'setImageSizes':!0x1}),_0x459ca6=_0x3af3b7['getClosestSelectedImageElement'](_0x52abb8['model']['document']['selection']),void _0x42c7b6['markBlockFormat'](_0x459ca6,{..._0x4e00f6,'commandReversedParams':[{'value':_0x41b816||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3af3b7['isBlockImage'](_0x459ca6)?_0x42c7b6['markBlockFormat'](_0x459ca6,_0x4e00f6,[],'imageStylePostApply'):_0x42c7b6['markInlineFormat'](_0x9f2ae3,_0x4e00f6,'imageStylePostApply'));});});for(const _0x3f456f of _0x52abb8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x49086d[_0x3f456f['name']]=_0x3f456f['title']['toLowerCase']();_0x42c7b6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x42c7b6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x42c7b6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x42c7b6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3f63e9])=>{_0x3af3b7['setImageNaturalSizeAttributes'](_0x3f63e9['getContainedElement']());}),_0x42c7b6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x527f23,_0x49f75c)=>{_0x42c7b6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x527f23,{'commandName':_0x49f75c['commandName'],'commandParams':_0x49f75c['commandReversedParams']});}),_0x42c7b6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x23337f,_0x533139){if(_0x5ec63e(_0x23337f,_0x533139))return[_0x23337f,_0x533139];if(_0x5ec63e(_0x533139,_0x23337f))return[_0x533139,_0x23337f];return null;});const _0x7bc7c4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ec63e(_0x2ab50d,_0x4cfd94){const _0x6b9827=_0x7bc7c4['findIndex'](({type:_0x1198c4,subType:_0x1d5db0})=>_0x2ab50d['type']==_0x1198c4&&_0x2ab50d['subType']==_0x1d5db0),_0x539623=_0x7bc7c4['findIndex'](({type:_0x55ee88,subType:_0x3d86cb})=>_0x4cfd94['type']==_0x55ee88&&_0x4cfd94['subType']==_0x3d86cb);if(_0x6b9827<0x0||_0x539623<0x0)return!0x1;const _0x47b90c=_0x2ab50d['getFirstRange'](),_0x578389=_0x4cfd94['getFirstRange']();if((0x0==_0x6b9827||0x1==_0x6b9827)&&0x2==_0x539623&&_0x47b90c['isIntersecting'](_0x578389))return!0x0;if(0x2==_0x6b9827&&0x3==_0x539623){const _0x4dd7d8=_0x42c7b6['_findSuggestions'](_0x47b90c,'insertion')['filter'](({suggestion:_0x247be9,meta:_0x4a8113})=>_0x4a8113['isOwn']&&'convertInlineImageToBlock'==_0x247be9['subType']);if(_0x4dd7d8['length']>0x1&&_0x578389['end']['isEqual'](_0x47b90c['start']))return!0x0;if(0x1==_0x4dd7d8['length']&&(_0x47b90c['start']['isEqual'](_0x578389['end'])||_0x47b90c['end']['isEqual'](_0x578389['start'])))return!0x0;}if(0x3==_0x6b9827&&0x3==_0x539623&&_0x47b90c['start']['isBefore'](_0x578389['start'])){const _0x28a085=_0x47b90c['end']['nodeAfter'],_0x373bb2=_0x578389['start']['nodeBefore'];return _0x3af3b7['isBlockImage'](_0x28a085)&&_0x28a085===_0x373bb2;}return!0x1;}_0x52abb8['model']['document']['registerPostFixer'](()=>{let _0x577e86=!0x1;const _0x3abfaa=Array['from'](_0x52abb8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c2e39,data:_0x3de850}of _0x3abfaa){const {group:_0x468e32,type:_0x35dc34,subType:_0x5662a8,id:_0x2b6ce9}=splitSuggestionMarkerName(_0x5c2e39);if('suggestion'==_0x468e32&&_0x42c7b6['hasSuggestion'](_0x2b6ce9)){if('formatBlock'==_0x35dc34&&('imageStylePreApply'==_0x5662a8||'imageStylePostApply'==_0x5662a8)){const _0x375fd9=_0x42c7b6['getSuggestion'](_0x2b6ce9);if(_0x3de850['newRange']){const _0x58e0aa=_0x375fd9['getFirstRange']()['getContainedElement']();if(_0x3af3b7['isBlockImage'](_0x58e0aa))continue;_0x42c7b6['discardSuggestion'](_0x375fd9),_0x577e86=!0x0;}}if('insertion'==_0x35dc34&&'imageCaption'==_0x5662a8&&!_0x3de850['newRange']){const _0x6fac5f=_0x42c7b6['getSuggestion'](_0x2b6ce9);_0x6fac5f['next']&&_0x6fac5f['next']['isInContent']&&(_0x42c7b6['discardSuggestion'](_0x6fac5f['next']),_0x577e86=!0x0);}}}return _0x577e86;}),this['_registerLegacyDescription'](_0x49086d);}['_registerLegacyDescription'](_0x4f8ae3){const _0x26d7fd=this['editor'],_0xa645f4=_0x26d7fd['locale'];_0x26d7fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x119392=>{if('formatBlock'!=_0x119392['type']&&'formatInline'!=_0x119392['type'])return;const {data:_0x3f3778}=_0x119392;if(!_0x3f3778||'imageStyle'!=_0x3f3778['commandName'])return;const _0x27fb53=_0x3f3778['commandParams'][0x0]['value'];return _0x6319cf('side'===_0x27fb53?getTranslation$5(_0xa645f4,'FORMAT_SIDE_IMAGE'):_0x4f8ae3[_0x27fb53]||_0x27fb53);function _0x6319cf(_0x2d6b32){return{'type':'format','content':getTranslation$5(_0xa645f4,'*Format:*\x20%0',_0x2d6b32)};}});}}class TrackChangesImportWord extends Plugin{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1bc5ba){super(_0x1bc5ba),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5f0a4c=this['editor'],_0x484af6=_0x5f0a4c['commands']['get']('importWord'),_0x4dc569=_0x5f0a4c['commands']['get']('trackChanges');_0x484af6&&(_0x484af6['on']('execute',(_0x4bb0cc,[,_0x161ca6])=>{this['_trackChangesValueDuringImport']=_0x4dc569['value'],_0x161ca6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x484af6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x484af6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4dc569['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5f0a4c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3e8187,_0x5933dd){const {suggestions:_0x552f09}=_0x5933dd,_0x175603=this['editor']['commands']['get']('trackChanges'),_0x53e71f=_0x175603['value'];this['_trackChangesValueDuringImport']!==_0x53e71f&&(_0x175603['execute'](),this['_trackChangesExecuted']=!0x0),_0x552f09&&_0x552f09['forEach'](({id:_0x142319,type:_0x42ba4d,author:_0x5854b4,created_at:_0x1307b2})=>{const _0x249b33={'id':_0x142319,'type':_0x42ba4d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5854b4,'createdAt':_0x1307b2?new Date(_0x1307b2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x249b33);});}}class TrackChangesIndent extends Plugin{['afterInit'](){const _0x32b684=this['editor'],_0x720d10=_0x32b684['plugins']['get']('TrackChangesEditing');if(_0x32b684['plugins']['has']('IndentEditing')&&(_0x720d10['enableCommand']('indent'),_0x720d10['enableCommand']('outdent')),_0x32b684['plugins']['has']('IndentBlock')){for(const _0x268c8e of['indentBlock','outdentBlock'])_0x720d10['enableDefaultAttributesIntegration'](_0x268c8e);if(_0x32b684['plugins']['has']('ListEditing')){for(const _0x243d71 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x720d10['enableDefaultAttributesIntegration'](_0x243d71);}}const _0x56d68c=_0x32b684['locale'];_0x720d10['descriptionFactory']['registerAttributeLabel']('blockIndent',getTranslation$5(_0x56d68c,'FORMAT_INDENT')),_0x720d10['descriptionFactory']['registerAttributeLabel']('blockIndentList',getTranslation$5(_0x56d68c,'FORMAT_INDENT')),_0x720d10['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',getTranslation$5(_0x56d68c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e3e13=this['editor'],_0x189cb0=_0x4e3e13['locale'],_0x3401f7=_0x4e3e13['plugins']['get']('TrackChangesEditing');_0x3401f7['descriptionFactory']['registerDescriptionCallback'](_0x3153b5=>{if('formatBlock'!=_0x3153b5['type'])return;const {data:_0x461e2f}=_0x3153b5;if(!_0x461e2f)return;if('indentBlock'!=_0x461e2f['commandName']&&'outdentBlock'!=_0x461e2f['commandName'])return;const _0x4535ba=_0x3153b5['getItems']()[0x0],_0x376b48=_0x3401f7['descriptionFactory']['getItemLabel'](_0x4535ba);return'indentBlock'==_0x461e2f['commandName']?{'type':'format','content':getTranslation$5(_0x189cb0,'*Indent:*\x20%0',_0x376b48)}:'outdentBlock'==_0x461e2f['commandName']?{'type':'format','content':getTranslation$5(_0x189cb0,'*Outdent:*\x20%0',_0x376b48)}: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 _0x2a88de=this['editor'];if(!_0x2a88de['plugins']['has']('LinkEditing'))return;const _0x5d91ae=_0x2a88de['plugins']['get']('TrackChangesEditing'),_0x16b554=_0x2a88de['commands']['get']('link');_0x5d91ae['enableDefaultAttributesIntegration']('link'),_0x5d91ae['enableDefaultAttributesIntegration']('unlink');for(const _0x1f7087 of _0x16b554['manualDecorators'])_0x5d91ae['descriptionFactory']['registerAttributeLabel'](_0x1f7087['id'],'link\x20('+_0x1f7087['label']['toLowerCase']()+')');_0x5d91ae['descriptionFactory']['registerDescriptionCallback'](_0x5ee45c=>{if('attribute'!=_0x5ee45c['type'])return;const {data:_0xce4e66}=_0x5ee45c;if(!_0xce4e66||'linkHref'!=_0xce4e66['key'])return;const _0x262703=_0xce4e66['newValue'],_0x3ac4cd=_0x2a88de['locale'];return{'type':'format','content':null==_0x262703?getTranslation$5(_0x3ac4cd,'*Remove\x20link*'):getTranslation$5(_0x3ac4cd,'*Set\x20link:*\x20%0','\x22'+_0x262703+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3253e5=this['editor'],_0x441c6a=_0x3253e5['locale'];_0x3253e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e47e9=>{if('formatInline'!=_0x1e47e9['type'])return;const {data:_0xf34357}=_0x1e47e9;if(_0xf34357){if('link'==_0xf34357['commandName']){const _0x138394=_0xf34357['commandParams'][0x0];return{'type':'format','content':getTranslation$5(_0x441c6a,'*Set\x20link:*\x20%0','\x22'+_0x138394+'\x22')};}return'unlink'==_0xf34357['commandName']?{'type':'format','content':getTranslation$5(_0x441c6a,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends Plugin{['afterInit'](){const _0x15b5f2=this['editor'],_0x818d7e=_0x15b5f2['locale'];if(!_0x15b5f2['plugins']['has']('LegacyListEditing'))return;const _0x9fda37=_0x15b5f2['plugins']['get']('TrackChangesEditing'),_0x3e1e94=_0x15b5f2['plugins']['has']('LegacyTodoListEditing');function _0x2a9d6f(_0x53ac5a){return()=>{const _0x22f8e6=_0x15b5f2['model']['document']['selection'],_0x510edc=_0x15b5f2['commands']['get'](_0x53ac5a);if(_0x510edc['value'])return void _0x15b5f2['execute']('paragraph',{});const _0x115971=_0x53ac5a['slice'](0x0,-0x4),_0x130120=getBlocksToMarkForListTypeChange(_0x22f8e6['getSelectedBlocks'](),_0x115971,_0x15b5f2['model']['schema']);_0x15b5f2['model']['change'](()=>{for(const _0x378f07 of _0x130120)_0x9fda37['markBlockFormat'](_0x378f07,{'commandName':_0x53ac5a,'commandParams':[{'forceValue':!_0x510edc['value']}],'formatGroupId':'blockName'},getBlocksAffectedByListTypeChange(_0x378f07));});};}function _0x185654(_0x53ebee){return()=>{const _0x49c687=getBlocksToMarkForIndentChange(_0x15b5f2['model']['document']['selection']['getSelectedBlocks']()),_0x9eb630=_0x15b5f2['model']['createRange'](_0x15b5f2['model']['createPositionAt'](_0x49c687[0x0],'before'),_0x15b5f2['model']['createPositionAt'](_0x49c687[_0x49c687['length']-0x1],'end'));_0x15b5f2['model']['change'](()=>{_0x9fda37['markBlockFormat'](_0x9eb630,{'commandName':_0x53ebee,'commandParams':[],'formatGroupId':'listIndent'},getBlocksAffectedByIndent(_0x49c687));});};}_0x9fda37['enableCommand']('numberedList',_0x2a9d6f('numberedList')),_0x9fda37['enableCommand']('bulletedList',_0x2a9d6f('bulletedList')),_0x3e1e94&&_0x9fda37['enableCommand']('todoList',_0x2a9d6f('todoList')),_0x9fda37['enableCommand']('indentList',_0x185654('indentList')),_0x9fda37['enableCommand']('outdentList',_0x185654('outdentList')),_0x3e1e94&&_0x9fda37['enableCommand']('checkTodoList',()=>{const _0x41575d=_0x15b5f2['commands']['get']('checkTodoList'),_0x6991fe=Array['from'](_0x41575d['_selectedElements']);_0x6991fe['filter'](_0x32a185=>_0x32a185['getAttribute']('todoListChecked')!=_0x41575d['value']),_0x15b5f2['model']['change'](()=>{for(const _0x4af29b of _0x6991fe)_0x9fda37['markBlockFormat'](_0x4af29b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x41575d['value']}]});});}),_0x9fda37['descriptionFactory']['registerElementLabel']('listItem',_0x3c2325=>getTranslation$5(_0x818d7e,'ELEMENT_LIST_ITEM',_0x3c2325)),_0x9fda37['descriptionFactory']['registerDescriptionCallback'](_0xae9b61=>{if('formatBlock'!=_0xae9b61['type']&&'formatInline'!=_0xae9b61['type'])return;const {data:_0x47113f}=_0xae9b61;if(_0x47113f){if('numberedList'==_0x47113f['commandName']||'bulletedList'==_0x47113f['commandName']||'todoList'==_0x47113f['commandName'])switch(_0x47113f['commandName']['replace']('List','')){case'bulleted':return _0x5853fc(getTranslation$5(_0x818d7e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5853fc(getTranslation$5(_0x818d7e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5853fc(getTranslation$5(_0x818d7e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x47113f['commandName'])return{'type':'format','content':getTranslation$5(_0x818d7e,'*Indent:*\x20%0',getTranslation$5(_0x818d7e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x47113f['commandName'])return{'type':'format','content':getTranslation$5(_0x818d7e,'*Outdent:*\x20%0',getTranslation$5(_0x818d7e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x47113f['commandName'])return _0x47113f['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$5(_0x818d7e,'*Check\x20item*')}:{'type':'format','content':getTranslation$5(_0x818d7e,'*Uncheck\x20item*')};}function _0x5853fc(_0x5a9abf){return{'type':'format','content':getTranslation$5(_0x818d7e,'*Change\x20to:*\x20%0',_0x5a9abf)};}});}}function getBlocksToMarkForListTypeChange(_0x18f713,_0x45587b,_0x3d1a93){let _0x4afd42=Array['from'](_0x18f713)['filter'](_0x17dbd8=>checkCanBecomeListItem(_0x17dbd8,_0x3d1a93));_0x4afd42=_0x4afd42['filter'](_0x1de93b=>!_0x1de93b['is']('element','listItem')||_0x1de93b['getAttribute']('listType')!=_0x45587b);const _0x1874fe=new Set();for(const _0xc577c6 of _0x4afd42)_0xc577c6['is']('element','listItem')?_0x1874fe['add'](getListHead(_0xc577c6)):_0x1874fe['add'](_0xc577c6);return Array['from'](_0x1874fe);}function checkCanBecomeListItem(_0x2584a3,_0x2e9d3e){return _0x2e9d3e['checkChild'](_0x2584a3['parent'],'listItem')&&!_0x2e9d3e['isObject'](_0x2584a3);}function getBlocksToMarkForIndentChange(_0x50ae5d){let _0x14b012=Array['from'](_0x50ae5d);const _0x18d1e5=_0x14b012['findIndex'](_0x38715c=>'listItem'!=_0x38715c['name']);return _0x18d1e5>-0x1&&(_0x14b012=_0x14b012['slice'](0x0,_0x18d1e5)),_0x14b012;}function getListHead(_0xabeab3){const _0x4b8423=_0xabeab3['getAttribute']('listIndent');if(0x0==_0x4b8423)return _0xabeab3;let _0x5e86fe=_0xabeab3;for(;_0xabeab3['previousSibling']&&_0xabeab3['previousSibling']['is']('element','listItem');){const _0x138035=_0xabeab3['previousSibling']['getAttribute']('listIndent');if(_0x138035==_0x4b8423)_0x5e86fe=_0xabeab3['previousSibling'];else{if(_0x138035<_0x4b8423)break;}_0xabeab3=_0xabeab3['previousSibling'];}return _0x5e86fe;}function getBlocksAffectedByListTypeChange(_0x25d48e){const _0x433322=[];if(_0x25d48e['is']('element','listItem')&&_0x25d48e['getAttribute']('listIndent')>0x0){let _0x1188a3=_0x25d48e['nextSibling'];for(;_0x1188a3&&'listItem'==_0x1188a3['name']&&_0x1188a3['getAttribute']('listIndent')==_0x25d48e['getAttribute']('listIndent');)_0x433322['push'](_0x1188a3),_0x1188a3=_0x1188a3['nextSibling'];}return _0x433322;}function getBlocksAffectedByIndent(_0x5d58ae){const _0x1e226e=new Set();for(const _0x585a77 of _0x5d58ae){let _0x535063=_0x585a77['nextSibling'];for(;_0x535063&&_0x535063['getAttribute']('listIndent')>_0x585a77['getAttribute']('listIndent');)_0x1e226e['add'](_0x535063),_0x535063=_0x535063['nextSibling'];}return Array['from'](_0x1e226e);}class TrackChangesLegacyListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4f2293=this['editor']['config']['get']('list.properties'),_0xa2aba8=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f2293['styles']&&_0xa2aba8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4f2293['reversed']&&_0xa2aba8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4f2293['startIndex']&&_0xa2aba8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xa2aba8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x15cd35,_0x5f3e2e={}){const _0x524c64=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33c4d1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x524c64['markMultiRangeBlockFormat'](_0x33c4d1,{'commandName':'listStyle','commandParams':[{'type':_0x5f3e2e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x38cc16,_0x165ffd={}){const _0x4662d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28403e=this['_getSuggestionBlocks'](_0xb64c0d=>_0xb64c0d['is']('element','listItem')&&'numbered'===_0xb64c0d['getAttribute']('listType'));if(_0x28403e['length']<0x1)return;const _0x69297d=_0x28403e['map'](_0x5bb7ba=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5bb7ba,'before'),this['editor']['model']['createPositionAt'](_0x5bb7ba,0x0)));this['editor']['model']['change'](()=>{_0x4662d2['markMultiRangeBlockFormat'](_0x69297d,{'commandName':'listReversed','commandParams':[{'reversed':_0x165ffd['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x308fad,_0x26a98e={}){const _0x452b64=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24098c=this['_getSuggestionBlocks'](_0x2e6c19=>_0x2e6c19['is']('element','listItem')&&'numbered'===_0x2e6c19['getAttribute']('listType'));if(_0x24098c['length']<0x1)return;const _0x540b40=_0x24098c['map'](_0x3aa18b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3aa18b,'before'),this['editor']['model']['createPositionAt'](_0x3aa18b,0x0)));this['editor']['model']['change'](()=>{_0x452b64['markMultiRangeBlockFormat'](_0x540b40,{'commandName':'listStart','commandParams':[{'startIndex':_0x26a98e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5b0782){if('formatBlock'!=_0x5b0782['type']&&'formatInline'!=_0x5b0782['type'])return;const _0x453205=this['editor']['locale'],{data:_0x53be64}=_0x5b0782;if(!_0x53be64)return;let _0x2b0a12,_0x43f411;switch(_0x53be64['commandName']){case'listStyle':_0x2b0a12='*Change\x20to:*\x20%0',_0x43f411={'type':'format','content':getTranslation$5(_0x453205,_0x2b0a12,getTranslation$5(_0x453205,this['_getTranslationKeyForListStyle'](_0x53be64['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2b0a12=_0x53be64['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x43f411={'type':'format','content':getTranslation$5(_0x453205,_0x2b0a12)};break;case'listStart':_0x2b0a12='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x43f411={'type':'format','content':getTranslation$5(_0x453205,_0x2b0a12,_0x53be64['commandParams'][0x0]['startIndex'])};}return _0x43f411;}['_getSuggestionBlocksForListStyle'](){const _0x4cf962=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c8b09=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2c8b09[0x0]?.['is']('element','listItem')&&_0x2c8b09['unshift'](..._0x4cf962['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2c8b09[_0x2c8b09['length']-0x1]?.['is']('element','listItem')&&_0x2c8b09['push'](..._0x4cf962['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2c8b09=[...new Set(_0x2c8b09)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2c8b09=_0x2c8b09['filter'](_0x570deb=>_0x570deb['is']('element','listItem'))),_0x2c8b09;}['_getSuggestionBlocks'](_0x29e6aa){const _0x1450c6=this['editor']['plugins']['get']('LegacyListUtils');let _0x7afc80=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x29e6aa)['map'](_0x1e5fe1=>{const _0x120472=this['editor']['model']['createPositionAt'](_0x1e5fe1,0x0);return[..._0x1450c6['getSiblingNodes'](_0x120472,'backward'),..._0x1450c6['getSiblingNodes'](_0x120472,'forward')];})['flat']();return _0x7afc80=[...new Set(_0x7afc80)],_0x7afc80;}['_getTranslationKeyForListStyle'](_0x5229e2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5229e2)||'default')['toUpperCase']()+'_LIST_'+_0x5229e2['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends Plugin{['afterInit'](){const _0xb1f6b1=this['editor'];if(!_0xb1f6b1['plugins']['has']('MediaEmbedEditing'))return;const _0x4b232a=_0xb1f6b1['plugins']['get']('TrackChangesEditing'),_0x553378=_0xb1f6b1['locale'];_0x4b232a['enableCommand']('mediaEmbed'),_0x4b232a['descriptionFactory']['registerElementLabel']('media',_0x479cb4=>getTranslation$5(_0x553378,'ELEMENT_MEDIA',_0x479cb4));}}class TrackChangesMention extends Plugin{['afterInit'](){const _0x20f680=this['editor'];_0x20f680['plugins']['has']('MentionEditing')&&_0x20f680['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends Plugin{['afterInit'](){const _0x47ad34=this['editor'];if(!_0x47ad34['plugins']['has']('MergeFieldsEditing'))return;const _0x1c45d2=_0x47ad34['plugins']['get']('TrackChangesEditing'),_0x5ef427=_0x47ad34['locale'];_0x1c45d2['enableCommand']('insertMergeField'),_0x1c45d2['enableCommand']('insertMergeFieldBlock'),_0x1c45d2['enableCommand']('insertMergeFieldImage'),_0x1c45d2['descriptionFactory']['registerElementLabel']('mergeField',_0x409f56=>getTranslation$5(_0x5ef427,'ELEMENT_MERGE_FIELD',_0x409f56)),_0x1c45d2['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1493ef=>getTranslation$5(_0x5ef427,'ELEMENT_MERGE_FIELD',_0x1493ef)),_0x1c45d2['descriptionFactory']['registerDescriptionCallback'](_0x58346d=>{if('insertion'!=_0x58346d['type']&&'deletion'!=_0x58346d['type'])return;const _0x5d750f=_0x58346d['getContainedElement']();if(null==_0x5d750f)return;const _0x2b67bb=_0x47ad34['plugins']['get']('MergeFieldsEditing');let _0x4347a1;switch(_0x2b67bb['getMergeFieldType'](_0x5d750f)){case null:return;case'image':{const _0x186a8f=_0x2b67bb['unwrapAffixes'](_0x5d750f['getAttribute']('src'));_0x4347a1=_0x2b67bb['getLabel'](_0x186a8f)||_0x186a8f;break;}default:{const _0xb42892=_0x5d750f['getAttribute']('id');_0x4347a1=_0x2b67bb['getLabel'](_0xb42892)||_0xb42892;break;}}return'insertion'==_0x58346d['type']?{'type':'insertion','content':getTranslation$5(_0x5ef427,'*Insert:*\x20%0','\x22'+_0x4347a1+'\x22\x20'+getTranslation$5(_0x5ef427,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':getTranslation$5(_0x5ef427,'*Remove:*\x20%0','\x22'+_0x4347a1+'\x22\x20'+getTranslation$5(_0x5ef427,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends Plugin{['afterInit'](){const _0x3c5fc3=this['editor'],_0x2d4887=_0x3c5fc3['plugins']['get']('TrackChangesEditing');_0x3c5fc3['plugins']['has']('MultiLevelList')&&(_0x2d4887['enableDefaultAttributesIntegration']('multiLevelList'),_0x2d4887['descriptionFactory']['registerDescriptionCallback'](_0x26d402=>this['handleDescriptions'](_0x26d402)));}['handleDescriptions'](_0x412853){const _0x317fb5=this['editor']['locale'],{data:_0x32b05c}=_0x412853,_0x533809={'type':'format','content':''};if(_0x32b05c&&'listMarkerStyle'==_0x32b05c['key']){if(!_0x32b05c['oldValue'])return{'type':'format','content':getTranslation$5(_0x317fb5,'*Set\x20format:*\x20%0',getTranslation$5(_0x317fb5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x32b05c['newValue']+')'};if(!_0x32b05c['newValue']){let _0x1117d2=_0x412853['head'];for(;_0x1117d2;){if(_0x1117d2['data']&&'listType'==_0x1117d2['data']['key']&&_0x1117d2['data']['newValue'])return _0x533809;_0x1117d2=_0x1117d2['next'];}return{'type':'format','content':getTranslation$5(_0x317fb5,'*Remove\x20format:*\x20%0',getTranslation$5(_0x317fb5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x32b05c['oldValue']+')'};}}}}class TrackChangesPageBreak extends Plugin{['afterInit'](){const _0x22b351=this['editor'];if(!_0x22b351['plugins']['has']('PageBreakEditing'))return;_0x22b351['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x22fbb4=_0x22b351['plugins']['get']('TrackChangesEditing'),_0x57431a=_0x22b351['locale'];_0x22fbb4['descriptionFactory']['registerElementLabel']('pageBreak',_0x2d5afb=>getTranslation$5(_0x57431a,'ELEMENT_PAGE_BREAK',_0x2d5afb));}}class TrackChangesParagraph extends Plugin{['afterInit'](){const _0x2e67f0=this['editor'];if(!_0x2e67f0['plugins']['has']('Paragraph'))return;const _0x394422=_0x2e67f0['locale'],_0x221911=_0x2e67f0['plugins']['get']('TrackChangesEditing');_0x221911['descriptionFactory']['registerElementLabel']('paragraph',_0x52407d=>getTranslation$5(_0x394422,'ELEMENT_PARAGRAPH',_0x52407d)),_0x221911['enableDefaultAttributesIntegration']('paragraph'),_0x221911['enableCommand']('insertParagraph');const _0x5f3e35=_0x221911['descriptionFactory'];_0x5f3e35['registerDescriptionCallback'](_0x5332dd=>{if('insertion'!==_0x5332dd['type'])return;const {start:_0x1fa0ac,end:_0x4fbb82}=_0x5332dd['getFirstRange']();if(!_0x1fa0ac['isTouching'](_0x4fbb82)||!_0x1fa0ac['nodeAfter'])return;const _0xc8fcce=_0x2e67f0['model']['schema'],_0x249600=_0x1fa0ac['nodeAfter'];return _0xc8fcce['isBlock'](_0x249600)&&!_0xc8fcce['isLimit'](_0x249600)&&_0xc8fcce['checkChild'](_0x249600,'$text')?{'type':'insertion','content':getTranslation$5(_0x394422,'*Insert:*\x20%0',_0x5f3e35['getItemLabel'](_0x249600,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19b50e=this['editor'],_0x4b21a4=_0x19b50e['locale'];_0x19b50e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41c4a3=>{if('formatBlock'!=_0x41c4a3['type'])return;const {data:_0x1a9597}=_0x41c4a3;return _0x1a9597&&'paragraph'==_0x1a9597['commandName']?{'type':'format','content':getTranslation$5(_0x4b21a4,'*Change\x20to:*\x20%0',getTranslation$5(_0x4b21a4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends Plugin{['afterInit'](){const _0x5c55e9=this['editor'];_0x5c55e9['commands']['get']('replaceSource')&&_0x5c55e9['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends Plugin{['afterInit'](){const _0x99209d=this['editor'];if(!_0x99209d['plugins']['has']('RemoveFormatEditing'))return;_0x99209d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35e2bb=this['editor'];_0x35e2bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x429067=>{if('formatBlock'!=_0x429067['type']&&'formatInline'!=_0x429067['type'])return;const {data:_0x413e2f}=_0x429067;return _0x413e2f&&'removeFormat'==_0x413e2f['commandName']?{'type':'format','content':getTranslation$5(_0x35e2bb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends Plugin{['afterInit'](){const _0x150eca=this['editor'];if(!_0x150eca['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x195657=_0x150eca['plugins']['get']('TrackChangesEditing');_0x195657['enableCommand']('goToPreviousRestrictedEditingException'),_0x195657['enableCommand']('goToNextRestrictedEditingException');const _0x24cb50=_0x150eca['plugins']['get']('RestrictedEditingModeEditing');_0x24cb50['enableCommand']('trackChanges'),_0x24cb50['enableCommand']('acceptSuggestion'),_0x24cb50['enableCommand']('discardSuggestion'),_0x24cb50['enableCommand']('acceptAllSuggestions'),_0x24cb50['enableCommand']('discardAllSuggestions'),_0x24cb50['enableCommand']('acceptSelectedSuggestions'),_0x24cb50['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends Plugin{['afterInit'](){const _0x4bef62=this['editor'];if(!_0x4bef62['plugins']['has']('ShiftEnter'))return;const _0x90d411=_0x4bef62['plugins']['get']('TrackChangesEditing');_0x90d411['enableCommand']('shiftEnter'),_0x90d411['descriptionFactory']['registerElementLabel']('softBreak',_0x5dddd6=>getTranslation$5(_0x4bef62['locale'],'ELEMENT_LINE_BREAK',_0x5dddd6));}}function getRangesWithAttribute(_0xed517e,_0x38a2c3,_0x1bd799){const _0x5f59e3=[];for(const _0xa06f0f of _0x38a2c3['getItems']())_0xa06f0f['hasAttribute'](_0xed517e)&&_0x5f59e3['push'](_0x1bd799['createRangeOn'](_0xa06f0f));return _0x5f59e3;}class TrackChangesStandardEditingMode extends Plugin{['afterInit'](){const _0x50f189=this['editor'],_0xe32511=_0x50f189['plugins']['get']('TrackChangesEditing');_0x50f189['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xe32511['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x2e8225=this['editor'],_0x273c15=_0x2e8225['model'],_0xac0846=_0x2e8225['locale'],_0x102177=_0x2e8225['plugins']['get']('TrackChangesEditing'),_0x4953e9='restrictedEditingException',_0x39adb0=_0x2e8225['commands']['get'](_0x4953e9);_0x102177['enableCommand'](_0x4953e9,(_0x302a99,_0x776708={})=>{const _0x23eb79=_0x273c15['document']['selection'];if(_0x23eb79['isCollapsed'])return void _0x302a99(_0x776708);const _0x232721=void 0x0!==_0x776708['forceValue']?_0x776708['forceValue']:!_0x39adb0['value'];_0x273c15['change'](()=>{const _0xeee8e6=Array['from'](_0x23eb79['getRanges']());for(const _0x24f220 of _0xeee8e6){const _0x2284ed=_0x232721?[_0x24f220]:getRangesWithAttribute(_0x4953e9,_0x24f220,_0x273c15);for(const _0x414c5a of _0x2284ed)_0x102177['markInlineFormat'](_0x414c5a,{'commandName':_0x4953e9,'commandParams':[{'forceValue':_0x232721}]});}});}),_0x102177['descriptionFactory']['registerDescriptionCallback'](_0x5955cb=>{if('formatBlock'!=_0x5955cb['type']&&'formatInline'!=_0x5955cb['type'])return;const {data:_0x4a3506}=_0x5955cb;return _0x4a3506&&_0x4a3506['commandName']==_0x4953e9?_0x4a3506['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$5(_0xac0846,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':getTranslation$5(_0xac0846,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x43c935=this['editor'],_0x26a5ed=_0x43c935['locale'],_0x4e2307=_0x43c935['plugins']['get']('TrackChangesEditing'),_0x14754e='restrictedEditingExceptionBlock',_0x1ab0e6=this['editor']['commands']['get'](_0x14754e);_0x4e2307['enableCommand'](_0x14754e,(_0x4d1166,_0x46e8e9={})=>{const _0x4af0e4=this['editor']['model']['document']['selection'],_0x19d8de=_0x46e8e9&&void 0x0!==_0x46e8e9['forceValue']?_0x46e8e9['forceValue']:!_0x1ab0e6['value'];let _0x5c07ed=[];if(_0x19d8de){const _0x50b9b2=Array['from'](_0x4af0e4['getSelectedBlocks']())['filter'](_0x9568f5=>isInBlockException(_0x9568f5)||checkCanBeWrapped(_0x9568f5,this['editor']['model']['schema']));_0x5c07ed=getRangesOfBlockGroups(_0x50b9b2,_0x43c935['model']);}else{const _0x4e1a90=Array['from'](_0x4af0e4['getSelectedBlocks']())['map'](_0x52538a=>findExceptionContentBlock(_0x52538a))['filter'](_0x2d4e65=>!!_0x2d4e65);_0x5c07ed=getRangesOfBlockGroups(_0x4e1a90,_0x43c935['model']);}_0x43c935['model']['change'](()=>{for(const _0xa93330 of _0x5c07ed)_0x4e2307['markBlockFormat'](_0xa93330,{'commandName':_0x14754e,'commandParams':[{'forceValue':_0x19d8de}]});});}),_0x4e2307['descriptionFactory']['registerDescriptionCallback'](_0x4c41e5=>{const {data:_0x2a1a89}=_0x4c41e5;if(_0x2a1a89&&_0x2a1a89['commandName']==_0x14754e)return _0x2a1a89['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$5(_0x26a5ed,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':getTranslation$5(_0x26a5ed,'FORMAT_RESTRICTED_DISABLED')};});}}function checkCanBeWrapped(_0x37bc19,_0x3d9ab2){const _0x58e746=_0x3d9ab2['createContext'](_0x37bc19['parent']);return!!_0x3d9ab2['checkChild'](_0x58e746,'restrictedEditingException')&&!!_0x3d9ab2['checkChild'](_0x58e746['push']('restrictedEditingException'),_0x37bc19);}function isInBlockException(_0x5cb0ee){return!!_0x5cb0ee['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}function findExceptionContentBlock(_0x1f7cc0){let _0x2ba537=_0x1f7cc0;for(;_0x2ba537['parent'];){if('restrictedEditingException'==_0x2ba537['parent']['name'])return _0x2ba537;_0x2ba537=_0x2ba537['parent'];}return null;}class TrackChangesStylesDropdown extends Plugin{['afterInit'](){const _0x5857ba=this['editor'];if(!_0x5857ba['plugins']['has']('Style')||!_0x5857ba['plugins']['has']('DataSchema'))return;const _0x155965=_0x5857ba['plugins']['get']('TrackChangesEditing'),_0x46d630=_0x5857ba['locale'],_0x1ecb8f=_0x5857ba['config']['get']('style')||{},_0x2149f0=_0x5857ba['plugins']['get']('GeneralHtmlSupport'),_0x58e2a9=_0x5857ba['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5857ba['plugins']['get']('DataSchema'),_0x1ecb8f['definitions']);_0x155965['enableDefaultAttributesIntegration']('style');const _0x1992bb=new Set();for(const _0x19f0fb of _0x58e2a9['block']){const _0x217a37=_0x2149f0['getGhsAttributeNameForElement'](_0x19f0fb['element']);_0x1992bb['add'](_0x217a37);}const _0x3b635b=new Set();for(const _0xc6959a of _0x58e2a9['inline']){const _0x20045c=_0x2149f0['getGhsAttributeNameForElement'](_0xc6959a['element']);_0x3b635b['add'](_0x20045c);for(const _0xd6a7c9 of _0xc6959a['ghsAttributes'])_0x3b635b['add'](_0xd6a7c9);}for(const _0x38a722 of _0x1992bb)_0x155965['descriptionFactory']['registerAttributeLabel'](_0x38a722,getTranslation$5(_0x46d630,'FORMAT_STYLE'));for(const _0x10e4ba of _0x3b635b)_0x155965['descriptionFactory']['registerAttributeLabel'](_0x10e4ba,getTranslation$5(_0x46d630,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4868c3=this['editor'],_0x15a1ea=_0x4868c3['locale'];_0x4868c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27b0b2=>{if('formatBlock'!=_0x27b0b2['type']&&'formatInline'!=_0x27b0b2['type'])return;const {data:_0x5a9bf4}=_0x27b0b2;return _0x5a9bf4&&'style'===_0x5a9bf4['commandName']?_0x5a9bf4['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$5(_0x15a1ea,'*Set\x20format:*\x20%0',_0x5a9bf4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':getTranslation$5(_0x15a1ea,'*Remove\x20format:*\x20%0',_0x5a9bf4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends Plugin{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x49a2ad){super(_0x49a2ad),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x50ccd3=this['editor'],_0x30927f=_0x50ccd3['model']['document']['selection'];if(!_0x50ccd3['plugins']['has']('TableEditing'))return;const _0x38e5dc=_0x50ccd3['locale'],_0x173b6d=_0x50ccd3['plugins']['get']('TrackChangesEditing'),_0xa271b0=_0x50ccd3['plugins']['get']('TableUtils');_0x173b6d['descriptionFactory']['registerElementLabel']('table',_0x266a74=>getTranslation$5(_0x38e5dc,'ELEMENT_TABLE',_0x266a74)),this['_setupColumnsRowsFixing'](),_0x173b6d['enableCommand']('insertTable'),_0x173b6d['enableCommand']('selectTableRow'),_0x173b6d['enableCommand']('selectTableColumn');for(const _0xe572d8 of['insertTableRowAbove','insertTableRowBelow']){const _0x3c69fb=_0x50ccd3['commands']['get'](_0xe572d8);_0x173b6d['enableCommand'](_0xe572d8,_0x163235=>{_0x50ccd3['model']['change'](_0x2ed257=>{_0x163235();const _0x2be7cf='above'===_0x3c69fb['order'],_0x543ca0=_0xa271b0['getSelectionAffectedTableCells'](_0x30927f),_0x782d8e=_0xa271b0['getRowIndexes'](_0x543ca0),_0x325bdd=_0x2be7cf?_0x782d8e['first']-0x1:_0x782d8e['last']+0x1,_0x4386c7=_0x543ca0[0x0]['findAncestor']('table'),_0x53df29=_0xa271b0['createTableWalker'](_0x4386c7,{'startRow':_0x325bdd,'endRow':_0x325bdd}),_0x3c334=Array['from'](_0x53df29)['map'](_0x10e584=>_0x2ed257['createRangeOn'](_0x10e584['cell']));_0x173b6d['markMultiRangeInsertion'](_0x3c334,'tableRow');});});}for(const _0x22f7b9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x606a18=_0x50ccd3['commands']['get'](_0x22f7b9);_0x173b6d['enableCommand'](_0x22f7b9,_0x37dd4c=>{_0x50ccd3['model']['change'](_0x4c8a89=>{_0x37dd4c();const _0x2dfe92='left'===_0x606a18['order'],_0x3a3cdd=_0xa271b0['getSelectionAffectedTableCells'](_0x30927f),_0x205641=_0xa271b0['getColumnIndexes'](_0x3a3cdd),_0x40730e=_0x2dfe92?_0x205641['first']-0x1:_0x205641['last']+0x1,_0x560fbc=_0x3a3cdd[0x0]['findAncestor']('table'),_0xa33758=_0xa271b0['createTableWalker'](_0x560fbc,{'startRow':0x0,'column':_0x40730e,'includeAllSlots':!0x1}),_0x783401=Array['from'](_0xa33758)['map'](_0x3f5bdb=>_0x4c8a89['createRangeOn'](_0x3f5bdb['cell']));_0x173b6d['markMultiRangeInsertion'](_0x783401,'tableColumn');});});}for(const _0x11790b of['removeTableRow','removeTableColumn']){const _0x44527f=_0x11790b['substr'](0xb),_0x29b060=_0x44527f['toLowerCase'](),_0x1717a3=_0x29b060['substr'](0x0,0x3)+'span',_0x220a29='table'+_0x44527f,_0x550957='min'+_0x44527f,_0x560fbb='max'+_0x44527f;_0x173b6d['enableCommand'](_0x11790b,()=>{_0x50ccd3['model']['change'](_0x5ebd5b=>{const _0x48cbc7=_0xa271b0['getSelectionAffectedTableCells'](_0x30927f),_0x413bd9=_0x48cbc7[0x0]['findAncestor']('table');let _0x15c448;if('removeTableRow'==_0x11790b){const _0x524915=_0xa271b0['getRowIndexes'](_0x48cbc7);_0x15c448={'startRow':_0x524915['first'],'endRow':_0x524915['last'],'includeAllSlots':!0x0};}else{const _0x445dc8=_0xa271b0['getColumnIndexes'](_0x48cbc7);_0x15c448={'startColumn':_0x445dc8['first'],'endColumn':_0x445dc8['last'],'includeAllSlots':!0x0};}const _0xbe80dd=_0xa271b0['createTableWalker'](_0x413bd9,_0x15c448),_0x25a469=Array['from'](_0xbe80dd)['map'](({cell:_0x597e2f})=>_0x597e2f),_0x448959=uniqueValues(_0x25a469['filter'](_0xad4d3d=>_0xad4d3d['hasAttribute'](_0x1717a3))),_0x5f37a5=uniqueValues(_0x25a469['filter'](_0x59643e=>!_0x59643e['hasAttribute'](_0x1717a3)))['map'](_0x1017f7=>_0x5ebd5b['createRangeOn'](_0x1017f7)),_0x45aca4=_0x173b6d['markMultiRangeDeletion'](_0x5f37a5,_0x220a29);if(_0x45aca4&&('tableRow'==_0x45aca4['subType']||'tableColumn'==_0x45aca4['subType'])){const _0x22d2d4=this['_getSuggestionCoords'](_0x45aca4);for(const _0x25c266 of _0x448959){const _0xcf8b22=_0x5ebd5b['createRangeOn'](_0x25c266),_0x4d1cef=_0xa271b0['getCellLocation'](_0x25c266),_0x2671be=_0x25c266['getAttribute'](_0x1717a3)-0x1,_0x76c95=_0x22d2d4[_0x550957],_0x1e41f3=_0x22d2d4[_0x560fbb];_0x76c95<=_0x4d1cef[_0x29b060]&&_0x4d1cef[_0x29b060]+_0x2671be<=_0x1e41f3&&_0x45aca4['addRange'](_0xcf8b22);}}});});}function _0x2331e4(_0x10d47a){const _0x2b6d1=Array['from'](_0x30927f['getRanges']())['map'](_0x550db6=>ModelLiveRange['fromRange'](_0x550db6));_0x50ccd3['model']['change'](_0x1cff7a=>{const _0x4e7a66=_0x1cff7a['batch'];_0x10d47a=_0x10d47a['filter'](_0xe4371e=>'$graveyard'!=_0xe4371e['root']['rootName']),_0x1cff7a['setSelection'](_0x10d47a),_0x50ccd3['commands']['get']('removeTableRow')['refresh'](),_0x50ccd3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x50ccd3['model']['enqueueChange'](()=>{_0x50ccd3['model']['enqueueChange'](_0x4e7a66,_0xf5ed3d=>{const _0x2b737d=_0x2b6d1['filter'](_0x1e6cdf=>'$graveyard'!=_0x1e6cdf['root']['rootName']);_0x2b737d['length']>0x0&&_0xf5ed3d['setSelection'](_0x2b737d);for(const _0x28c7b2 of _0x2b6d1)_0x28c7b2['detach']();});});});}function _0x4795b6(_0x4d283b){_0x50ccd3['model']['change'](_0x4395f8=>{const _0x955dbb=Array['from'](_0x30927f['getRanges']())['map'](_0x31df73=>ModelLiveRange['fromRange'](_0x31df73)),_0x22f8ad=[];for(const _0x3ce023 of _0x4d283b)for(const _0x6f1997 of _0x3ce023['getItems']({'shallow':!0x0}))_0x22f8ad['push'](_0x6f1997);for(const _0x16aa15 of _0x22f8ad)'$graveyard'!=_0x16aa15['root']['rootName']&&(_0x4395f8['setSelection'](_0x4395f8['createPositionAt'](_0x16aa15,0x0)),_0x50ccd3['commands']['get']('removeTableColumn')['refresh'](),_0x50ccd3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x165542=_0x955dbb['filter'](_0x28d19e=>'$graveyard'!=_0x28d19e['root']['rootName']);_0x165542['length']>0x0&&_0x4395f8['setSelection'](_0x165542);for(const _0x37c88d of _0x955dbb)_0x37c88d['detach']();});}function _0x46b6c7(_0x22ecb5,_0x3a258c){return _0x3a258c['every'](_0x5e8de4=>_0x22ecb5['some'](_0x36a1fb=>_0x36a1fb['end']['isEqual'](_0x5e8de4['start'])||_0x5e8de4['end']['isEqual'](_0x36a1fb['start'])));}function _0x4e68a6(_0x2d65a2,_0xeefc71){return!_0x2d65a2['some'](_0x40244d=>_0xeefc71['some'](_0x3b3b52=>_0x40244d['isIntersecting'](_0x3b3b52)))&&_0x2d65a2['some'](_0x151b96=>_0xeefc71['some'](_0x2f7f9f=>_0x151b96['end']['isTouching'](_0x2f7f9f['start'])));}_0x173b6d['descriptionFactory']['registerDescriptionCallback'](_0x3190e5=>{if('insertion'!=_0x3190e5['type']&&'deletion'!=_0x3190e5['type'])return;const _0x11836d=_0x3190e5['getContainedElement']();if(null!=_0x11836d&&_0x11836d['is']('element','table')){if('insertion'==_0x3190e5['type']){const _0x1e7d55=_0x3190e5['getItems']()['filter'](_0x46fffb=>_0x46fffb['is']('$textProxy'))['map'](_0x2cffb3=>_0x2cffb3['data']);if(_0x1e7d55['length'])return{'type':'insertion','content':getTranslation$5(_0x38e5dc,'*Insert:*\x20%0',getTranslation$5(_0x38e5dc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1e7d55['join']('\x20')+'\x22'))};}if('deletion'==_0x3190e5['type']){const _0xed091d=_0x3190e5['getItems']()['filter'](_0x3fc11a=>_0x3fc11a['is']('$textProxy'))['map'](_0x4153ae=>_0x4153ae['data']);if(_0xed091d['length'])return{'type':'deletion','content':getTranslation$5(_0x38e5dc,'*Remove:*\x20%0',getTranslation$5(_0x38e5dc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xed091d['join']('\x20')+'\x22'))};}}}),_0x173b6d['descriptionFactory']['registerDescriptionCallback'](_0x334d8d=>{if('tableRow'==_0x334d8d['subType']){const _0x2dbe94=_0x334d8d['getItems']()['filter'](_0x2d9f12=>_0x2d9f12['is']('$textProxy'))['map'](_0x249e17=>_0x249e17['data']),_0x22226f=this['_getSuggestionCoords'](_0x334d8d),_0x5987cf=_0x22226f['maxRow']-_0x22226f['minRow']+0x1;if('insertion'==_0x334d8d['type'])return _0x2dbe94['length']?{'type':'insertion','content':getTranslation$5(_0x38e5dc,'*Insert:*\x20%0',getTranslation$5(_0x38e5dc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5987cf,'\x22'+_0x2dbe94['join']('\x20')+'\x22']))}:{'type':'insertion','content':getTranslation$5(_0x38e5dc,'*Insert:*\x20%0',getTranslation$5(_0x38e5dc,'ELEMENT_TABLE_ROW',_0x5987cf))};if('deletion'==_0x334d8d['type'])return _0x2dbe94['length']?{'type':'deletion','content':getTranslation$5(_0x38e5dc,'*Remove:*\x20%0',getTranslation$5(_0x38e5dc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5987cf,'\x22'+_0x2dbe94['join']('\x20')+'\x22']))}:{'type':'deletion','content':getTranslation$5(_0x38e5dc,'*Remove:*\x20%0',getTranslation$5(_0x38e5dc,'ELEMENT_TABLE_ROW',_0x5987cf))};}if('tableColumn'==_0x334d8d['subType']){const _0x5ad6c5=_0x334d8d['getItems']()['filter'](_0x62caea=>_0x62caea['is']('$textProxy'))['map'](_0x20add4=>_0x20add4['data']),_0x316739=this['_getSuggestionCoords'](_0x334d8d),_0x363d0c=_0x316739['maxColumn']-_0x316739['minColumn']+0x1;if('insertion'==_0x334d8d['type'])return _0x5ad6c5['length']?{'type':'insertion','content':getTranslation$5(_0x38e5dc,'*Insert:*\x20%0',getTranslation$5(_0x38e5dc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x363d0c,'\x22'+_0x5ad6c5['join']('\x20')+'\x22']))}:{'type':'insertion','content':getTranslation$5(_0x38e5dc,'*Insert:*\x20%0',getTranslation$5(_0x38e5dc,'ELEMENT_TABLE_COLUMN',_0x363d0c))};if('deletion'==_0x334d8d['type'])return _0x5ad6c5['length']?{'type':'deletion','content':getTranslation$5(_0x38e5dc,'*Remove:*\x20%0',getTranslation$5(_0x38e5dc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x363d0c,'\x22'+_0x5ad6c5['join']('\x20')+'\x22']))}:{'type':'deletion','content':getTranslation$5(_0x38e5dc,'*Remove:*\x20%0',getTranslation$5(_0x38e5dc,'ELEMENT_TABLE_COLUMN',_0x363d0c))};}}),_0x173b6d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2331e4),_0x173b6d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2331e4),_0x173b6d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4795b6),_0x173b6d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4795b6),_0x173b6d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x46b6c7),_0x173b6d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x46b6c7),_0x173b6d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4e68a6),_0x173b6d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4e68a6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2cec9b=this['editor'],_0x119b5c=_0x2cec9b['model']['document']['selection'];return(_0x272cb8,_0x46c6dc)=>{_0x2cec9b['model']['change'](_0xe40e6c=>{const {commandName:_0x5ea0f3,commandParams:_0x220ebc}=_0x46c6dc;let _0x4de533=_0x272cb8[0x0]['end']['nodeBefore'];_0x220ebc&&_0x220ebc[0x0]&&!0x1===_0x220ebc[0x0]['forceValue']&&(_0x4de533=_0x272cb8[0x0]['start']['nodeAfter']);const _0x3599d6=_0xe40e6c['createRangeIn'](_0x4de533);if('$graveyard'==_0x3599d6['root']['rootName'])return;const _0x2844dd=Array['from'](_0x119b5c['getRanges']())['map'](_0x55c258=>ModelLiveRange['fromRange'](_0x55c258));_0xe40e6c['setSelection'](_0x3599d6),_0x2cec9b['commands']['get'](_0x5ea0f3)['refresh'](),_0x220ebc['push']({'forceDefaultExecution':!0x0}),_0x2cec9b['execute'](_0x5ea0f3,..._0x220ebc);const _0xc438b7=_0x2844dd['filter'](_0x1c81d6=>'$graveyard'!=_0x1c81d6['root']['rootName']);_0xc438b7['length']>0x0&&_0xe40e6c['setSelection'](_0xc438b7);for(const _0x4c4900 of _0x2844dd)_0x4c4900['detach']();});};}['_getCoordsForCells'](_0x56a7a7){const _0x5c35c5=this['editor']['plugins']['get']('TableUtils');let _0x49940a=Number['MAX_SAFE_INTEGER'],_0xb4361b=Number['MIN_SAFE_INTEGER'],_0x1b3a95=Number['MAX_SAFE_INTEGER'],_0x275861=Number['MIN_SAFE_INTEGER'];for(const _0x5a2cdc of _0x56a7a7){if('$graveyard'==_0x5a2cdc['root']['rootName'])continue;const {row:_0x167155,column:_0xda57f4}=_0x5c35c5['getCellLocation'](_0x5a2cdc),_0x593aea=_0x5a2cdc['hasAttribute']('rowspan')?_0x5a2cdc['getAttribute']('rowspan')-0x1:0x0,_0xc331d6=_0x5a2cdc['hasAttribute']('colspan')?_0x5a2cdc['getAttribute']('colspan')-0x1:0x0;_0x49940a=_0x167155<_0x49940a?_0x167155:_0x49940a,_0xb4361b=_0x167155+_0x593aea>_0xb4361b?_0x167155+_0x593aea:_0xb4361b,_0x1b3a95=_0xda57f4<_0x1b3a95?_0xda57f4:_0x1b3a95,_0x275861=_0xda57f4+_0xc331d6>_0x275861?_0xda57f4+_0xc331d6:_0x275861;}return{'minRow':_0x49940a,'maxRow':_0xb4361b,'minColumn':_0x1b3a95,'maxColumn':_0x275861};}['_setupColumnsRowsFixing'](){const _0x547ab4=this['editor'],_0x398158=_0x547ab4['plugins']['get']('TrackChangesEditing'),_0x10b054=_0x547ab4['plugins']['get']('TableUtils');_0x547ab4['model']['document']['on']('change:data',()=>{const _0x5c8f1b=Array['from'](_0x547ab4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a64a9,data:_0x159172}of _0x5c8f1b){const {group:_0x98f4da,id:_0x24f36b,subType:_0x350107}=splitSuggestionMarkerName(_0x2a64a9);if('suggestion'!=_0x98f4da)continue;if(null!=_0x159172['oldRange'])continue;const _0xe7cbdb=_0x398158['getSuggestion'](_0x24f36b);this['_tablePostFixingSubtypes']['includes'](_0x350107)&&this['_tableSuggestions']['add'](_0xe7cbdb);}},{'priority':'low'});const _0x24e4d5=(_0x4145a3,_0x361f9d)=>{let _0x4dedea=!0x1;const _0x575d8e=_0x361f9d['createRangeOn'](_0x4145a3),_0x7e8361=_0x4145a3['findAncestor']('table'),_0x4afa5a=_0x10b054['getCellLocation'](_0x4145a3);for(const _0x4380c6 of this['_tableSuggestions']){const _0x5be38b=_0x4380c6['subType'],_0x438289=_0x5be38b['startsWith']('tablePaste'),_0x206c5d=_0x5be38b['substr'](_0x438289?0xa:0x5),_0xe721b6=_0x206c5d['toLowerCase'](),_0x4afdf8=_0xe721b6['substr'](0x0,0x3)+'span',_0x529504='min'+_0x206c5d,_0x1b82bc='max'+_0x206c5d;if(!_0x4380c6['isInContent'])continue;if(_0x7e8361!=_0x4380c6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4380c6['isIntersectingWithRange'](_0x575d8e))continue;const _0x459fae=_0x4145a3['hasAttribute'](_0x4afdf8)?_0x4145a3['getAttribute'](_0x4afdf8)-0x1:0x0,_0x28d79a=this['_getSuggestionCoords'](_0x4380c6),_0x1e2da5=_0x28d79a[_0x529504],_0x1096d1=_0x28d79a[_0x1b82bc];_0x1e2da5<=_0x4afa5a[_0xe721b6]&&_0x4afa5a[_0xe721b6]+_0x459fae<=_0x1096d1&&(_0x4380c6['addRange'](_0x575d8e),_0x4dedea=!0x0);}return _0x4dedea;};_0x547ab4['model']['document']['registerPostFixer'](_0x2b6a4f=>{let _0x7dc1d6=!0x1;for(const _0x1684d7 of _0x547ab4['model']['document']['differ']['getChanges']())if('insert'==_0x1684d7['type']){if('tableRow'==_0x1684d7['name']){for(const _0x358a27 of _0x1684d7['position']['nodeAfter']['getChildren']())_0x7dc1d6=_0x7dc1d6||_0x24e4d5(_0x358a27,_0x2b6a4f);}else'tableCell'==_0x1684d7['name']&&(_0x7dc1d6=_0x7dc1d6||_0x24e4d5(_0x1684d7['position']['nodeAfter'],_0x2b6a4f));}return _0x7dc1d6;});}['_getSuggestionCoords'](_0x3faeb4){return this['_getCoordsForCells'](_0x3faeb4['getRanges']()['map'](_0x21a036=>_0x21a036['start']['nodeAfter']));}}function uniqueValues(_0x2467ac){return Array['from'](new Set(_0x2467ac)['values']());}class TrackChangesTableMergeSplit extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x5a957c=this['editor'],_0x305a80=_0x5a957c['model']['document']['selection'],_0x2ce2d4=_0x5a957c['locale'];if(!_0x5a957c['plugins']['has']('TableEditing'))return;const _0x19e442=_0x5a957c['plugins']['get']('TrackChangesEditing'),_0x42bc32=_0x5a957c['plugins']['get']('TableUtils'),_0x3ce8f6=_0x5a957c['plugins']['get'](TrackChangesTable);_0x3ce8f6['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x19e442['enableCommand']('mergeTableCells',()=>{const _0x38f6ee=_0x42bc32['getSelectionAffectedTableCells'](_0x5a957c['model']['document']['selection']);_0x5a957c['model']['change'](()=>{_0x19e442['markMultiRangeBlockFormat'](_0x38f6ee,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5a957c['commands']['get']('mergeTableCells')['on']('execute',(_0x5ae241,_0x25ac7d)=>{_0x5a957c['commands']['get']('trackChanges')['value']&&(_0x25ac7d['length']>0x0&&_0x25ac7d[_0x25ac7d['length']-0x1]&&_0x25ac7d[_0x25ac7d['length']-0x1]['forceDefaultExecution']||_0x19e442['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5ae241['stop']());},{'priority':'highest'});for(const _0x3d782c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5e4257=_0x5a957c['commands']['get'](_0x3d782c);_0x19e442['enableCommand'](_0x3d782c,()=>{const _0x525aa8=_0x5a957c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3af06a=>_0x3af06a['is']('element','tableCell')),_0x9be134=_0x5e4257['value'];_0x5a957c['model']['change'](()=>{_0x19e442['markMultiRangeBlockFormat']([_0x525aa8,_0x9be134],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1405ad of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5676b9=_0x5a957c['commands']['get'](_0x1405ad);_0x19e442['enableCommand'](_0x1405ad,()=>{const _0x493487=_0x42bc32['getSelectionAffectedTableCells'](_0x5a957c['model']['document']['selection'])[0x0],_0x51ccff=_0x493487['findAncestor']('table'),{column:_0x42ba27,row:_0x278d28}=_0x42bc32['getCellLocation'](_0x493487);let _0x3f2cdc=[];if('horizontally'==_0x5676b9['direction']){const _0x2d7e69=_0x42bc32['createTableWalker'](_0x51ccff,{'startRow':_0x278d28,'endRow':_0x278d28,'includeAllSlots':!0x0});_0x3f2cdc=Array['from'](_0x2d7e69)['map'](_0x56dd8b=>_0x56dd8b['cell']);}else{const _0x1b993d=_0x42bc32['createTableWalker'](_0x51ccff,{'column':_0x42ba27,'includeAllSlots':!0x0});_0x3f2cdc=Array['from'](_0x1b993d)['map'](_0x3c3661=>_0x3c3661['cell']);}_0x5a957c['model']['change'](_0x16e729=>{_0x19e442['markBlockFormat'](_0x16e729['createRangeOn'](_0x493487),{'commandName':_0x1405ad,'commandParams':[]},_0x3f2cdc,_0x1405ad);});});}_0x19e442['descriptionFactory']['registerDescriptionCallback'](_0x58d2bc=>{if('formatBlock'!=_0x58d2bc['type']&&'formatInline'!=_0x58d2bc['type'])return;const {data:_0x27a0d0}=_0x58d2bc;return _0x27a0d0&&'mergeTableCells'==_0x27a0d0['commandName']?{'type':'format','content':getTranslation$5(_0x2ce2d4,'*Merge\x20cells*')}:void 0x0;}),_0x19e442['descriptionFactory']['registerDescriptionCallback'](_0x191f29=>{if('formatBlock'!=_0x191f29['type']&&'formatInline'!=_0x191f29['type'])return;const {data:_0x20384f}=_0x191f29;return _0x20384f?'splitTableCellVertically'==_0x20384f['commandName']?{'type':'format','content':getTranslation$5(_0x2ce2d4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x20384f['commandName']?{'type':'format','content':getTranslation$5(_0x2ce2d4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4e11c1=_0x3ce8f6['_acceptFormatSuggestionCallbackFactory']();for(const _0x1e4dda of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x19e442['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e4dda,'accept',_0x4e11c1);for(const _0x5f48d7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x19e442['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f48d7,'accept',_0x4e11c1);_0x19e442['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5590d5=>{_0x5a957c['model']['change'](_0x53dbe0=>{const _0x55089d=Array['from'](_0x305a80['getRanges']())['map'](_0x2202e4=>ModelLiveRange['fromRange'](_0x2202e4));_0x53dbe0['setSelection'](_0x5590d5),_0x5a957c['commands']['get']('mergeTableCells')['refresh'](),_0x5a957c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b3fc7=_0x55089d['filter'](_0x15f544=>'$graveyard'!=_0x15f544['root']['rootName']);_0x1b3fc7['length']>0x0&&_0x53dbe0['setSelection'](_0x1b3fc7);for(const _0x4727b7 of _0x55089d)_0x4727b7['detach']();});});for(const _0x4e8599 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x559c01=_0x5a957c['commands']['get'](_0x4e8599);_0x559c01['on']('set:isEnabled',(_0x34cf82,_0x3f5590,_0x2fdf25)=>{if(_0x2fdf25){const _0x426fa2=_0x5a957c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4e64c9=>_0x4e64c9['is']('element','tableCell'));this['_areMergableCells'](_0x559c01['value'],_0x426fa2)||(_0x34cf82['return']=!0x1,_0x34cf82['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x396fc4=this['editor']['commands']['get']('mergeTableCells'),_0x5d0346=this['editor']['plugins']['get']('TableUtils');if(!_0x396fc4['isEnabled'])return!0x1;const _0x47d4e2=_0x5d0346['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4d320f of _0x47d4e2)for(const _0x11099c of _0x47d4e2)if(_0x4d320f!=_0x11099c&&!this['_areMergableCells'](_0x4d320f,_0x11099c))return!0x1;return!0x0;}['_areMergableCells'](_0xc877d5,_0x35c824){const _0x57b23f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ac190=this['editor']['model']['createRangeOn'](_0xc877d5),_0x4ae3d1=this['editor']['model']['createRangeOn'](_0x35c824),_0x28098a=new Set(),_0x1bfa97=new Set();for(const _0x475142 of _0x57b23f['getSuggestions']())if(('insertion'==_0x475142['type']||'deletion'==_0x475142['type']||'mergeTableCells'==_0x475142['subType'])&&_0x475142['isInContent']){for(const _0x442dcf of _0x475142['getRanges']())_0x442dcf['containsRange'](_0x3ac190,!0x0)&&_0x28098a['add'](_0x475142['type']+':'+_0x475142['author']['id']),_0x442dcf['containsRange'](_0x4ae3d1,!0x0)&&_0x1bfa97['add'](_0x475142['type']+':'+_0x475142['author']['id']);}if(_0x28098a['size']!=_0x1bfa97['size'])return!0x1;for(const _0x77a8f of _0x28098a)if(!_0x1bfa97['has'](_0x77a8f))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x37be93=this['editor'];if(!_0x37be93['plugins']['has']('TableEditing'))return;const _0x10460a=_0x37be93['locale'],_0x27a347=_0x37be93['plugins']['get']('TrackChangesEditing');_0x27a347['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x27a347['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x27a347['descriptionFactory']['registerAttributeLabel']('headingRows',getTranslation$5(_0x10460a,'FORMAT_HEADER_ROW')),_0x27a347['descriptionFactory']['registerAttributeLabel']('headingColumns',getTranslation$5(_0x10460a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4f542e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b82d4=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x4f542e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4b82d4),_0x4f542e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4b82d4),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0xb9ab84=this['editor']['plugins']['get']('TrackChangesEditing'),_0x625bfc=this['editor']['plugins']['get']('TableUtils');function _0x5c5ea6({showActiveMarker:_0x478664=!0x0,setDataAttribute:_0x40584a=!0x0}={}){return(_0x5a71c4,_0x409228,_0x36d2d8)=>{const {type:_0x1d8e97,id:_0x447f84}=splitSuggestionMarkerName(_0x409228['markerName']);if(!_0xb9ab84['hasSuggestion'](_0x447f84))return;const _0x3b7967=_0xb9ab84['getSuggestion'](_0x447f84),_0x13cb49=_0x3b7967['data'];if('formatBlock'!=_0x3b7967['type']||!_0x13cb49||'setTableColumnHeader'!=_0x13cb49['commandName'])return;if(_0x409228['item'])return void _0x5a71c4['stop']();if(!_0x36d2d8['consumable']['consume'](_0x409228['markerRange'],_0x5a71c4['name']))return;const _0x20b48b=_0x409228['markerRange']['start']['nodeAfter'],_0x3fad19=_0x409228['markerRange']['end']['nodeBefore'],_0x2ff22e=_0x20b48b['parent']['parent'],{column:_0x5581a6}=_0x625bfc['getCellLocation'](_0x20b48b),{column:_0x3b6dbb}=_0x625bfc['getCellLocation'](_0x3fad19);for(let _0x49611f=_0x5581a6;_0x49611f<=_0x3b6dbb;_0x49611f++){const _0x1796b0=_0x625bfc['createTableWalker'](_0x2ff22e,{'column':_0x49611f,'includeAllSlots':!0x1});for(const _0x4852a0 of _0x1796b0){const _0x352c92=_0x4852a0['cell'],_0x268c66=_0x36d2d8['mapper']['toViewElement'](_0x352c92);_0x36d2d8['writer']['addClass']('ck-suggestion-marker-'+_0x1d8e97,_0x268c66),_0x40584a&&_0x36d2d8['writer']['setAttribute']('data-suggestion',_0x447f84,_0x268c66),_0x36d2d8['mapper']['bindElementToMarker'](_0x268c66,_0x409228['markerName']),_0x478664&&(_0xb9ab84['activeMarkers']['includes'](_0x409228['markerName'])?_0x36d2d8['writer']['addClass']('ck-suggestion-marker--active',_0x268c66):_0x36d2d8['writer']['removeClass']('ck-suggestion-marker--active',_0x268c66));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5c5ea6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2ddef4,_0x23bda9,_0x3a5c24)=>{_0x3a5c24['options']['showSuggestionHighlights']&&_0x5c5ea6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2ddef4,_0x23bda9,_0x3a5c24);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x54b8b0,_0x358d47,_0x128579)=>{const {type:_0xd5e534,id:_0x108f10}=splitSuggestionMarkerName(_0x358d47['markerName']);if(!_0xb9ab84['hasSuggestion'](_0x108f10))return;const _0x26cc86=_0xb9ab84['getSuggestion'](_0x108f10),_0x480294=_0x26cc86['data'];if('formatBlock'!=_0x26cc86['type']||!_0x480294||'setTableColumnHeader'!=_0x480294['commandName'])return;const _0x57c546=_0x128579['mapper']['markerNameToElements'](_0x358d47['markerName']);if(_0x57c546){for(const _0x3a28ad of _0x57c546)_0x128579['writer']['removeClass']('ck-suggestion-marker-'+_0xd5e534,_0x3a28ad),_0x128579['writer']['removeClass']('ck-suggestion-marker--active',_0x3a28ad),_0x128579['writer']['removeAttribute']('data-suggestion',_0x3a28ad),_0x128579['mapper']['unbindElementFromMarkerName'](_0x3a28ad,_0x358d47['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x5f055a=this['editor'],_0x3665f1=_0x5f055a['locale'];function _0x443ba5(_0x335453){return{'type':'format','content':getTranslation$5(_0x3665f1,'*Format:*\x20%0',_0x335453)};}_0x5f055a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc5723d=>{if('formatBlock'!=_0xc5723d['type'])return;const {data:_0x3cc27c}=_0xc5723d;if(_0x3cc27c){if('setTableRowHeader'==_0x3cc27c['commandName']){const _0x1a5ff4=_0x3cc27c['commandParams'][0x0]['forceValue'];return _0x443ba5(getTranslation$5(_0x3665f1,_0x1a5ff4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3cc27c['commandName']){const _0x11dc3b=_0x3cc27c['commandParams'][0x0]['forceValue'];return _0x443ba5(getTranslation$5(_0x3665f1,_0x11dc3b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x4d16c7=this['editor'];if(!_0x4d16c7['plugins']['has']('TableEditing')||!_0x4d16c7['config']['get']('table.enableFooters'))return;const _0xef859a=_0x4d16c7['locale'],_0x2dc973=_0x4d16c7['plugins']['get']('TrackChangesEditing');_0x2dc973['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x2dc973['descriptionFactory']['registerAttributeLabel']('footerRows',getTranslation$5(_0xef859a,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends Plugin{['afterInit'](){const _0x4c24e7=this['editor'],_0x2ef56f=_0x4c24e7['locale'],_0x391c20=_0x4c24e7['plugins']['get']('TrackChangesEditing');function _0x53252c(_0x107147){return{'type':'format','content':''+getTranslation$5(_0x2ef56f,'*Set\x20table\x20type:*\x20%0',_0x107147)};}_0x4c24e7['plugins']['has']('TableLayout')&&(_0x391c20['enableCommand']('insertTableLayout'),_0x391c20['enableDefaultAttributesIntegration']('tableType'),_0x391c20['descriptionFactory']['registerElementLabel'](_0x210517=>_0x210517['is']('element','table')&&'layout'===_0x210517['getAttribute']('tableType'),_0xde87a2=>getTranslation$5(_0x2ef56f,'ELEMENT_LAYOUT_TABLE',_0xde87a2)),_0x391c20['descriptionFactory']['registerDescriptionCallback'](_0x36e972=>{const {data:_0x5862be}=_0x36e972;if(_0x5862be&&'tableType'==_0x5862be['key'])switch(_0x5862be['newValue']){case'layout':return _0x53252c(getTranslation$5(_0x2ef56f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x53252c(getTranslation$5(_0x2ef56f,'ELEMENT_CONTENT_TABLE'));}}));}}const tableCellStyleAttributeNames=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],tableCellStyleAttributesObject=/* #__PURE__ -- @preserve */
Object['fromEntries'](tableCellStyleAttributeNames['map'](_0x3daef1=>[_0x3daef1,null]));class TrackChangesTableClipboard extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0xefb799=this['editor'];if(!_0xefb799['plugins']['has']('TableClipboard'))return;const _0x18dc74=_0xefb799['plugins']['get']('TrackChangesEditing'),_0x3dca48=_0xefb799['plugins']['get']('TableUtils'),_0x183fe7=_0xefb799['plugins']['get'](TrackChangesTable),_0x3726bc=_0xefb799['plugins']['get']('TableClipboard'),_0x71a72c=_0xefb799['plugins']['get']('TableSelection'),_0x2e4f0d=_0xefb799['plugins']['get'](ClipboardPipeline);_0x183fe7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xefb799['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xefb799['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1001fd=null,_0x568511=!0x1;_0x2e4f0d['on']('contentInsertion',(_0x2905c0,_0x567395)=>{_0x568511='paste'===_0x567395['method'];}),_0xefb799['model']['on']('insertContent',(_0x3fae23,_0x59f55b)=>{if(!_0x568511&&null===_0x71a72c['getSelectedTableCells']())return;const [_0xbed576,_0x12f996]=_0x59f55b,_0x5a587c=_0x59f55b[_0x59f55b['length']-0x1];_0x5a587c&&_0x5a587c['forceDefaultExecution']||_0x18dc74['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&isPasteTableIntoTable(_0xbed576,_0x12f996,_0xefb799['model'],_0x3dca48,_0x3726bc)&&(_0x3fae23['stop'](),_0x1001fd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xefb799['model']['change'](()=>{_0xefb799['model']['insertContent'](_0x59f55b[0x0],_0x59f55b[0x1],_0x59f55b[0x2],{'forceDefaultExecution':!0x0});const _0x362071=uid(),{rowInsertionRanges:_0x4a79f2,columnInsertionRanges:_0x38217d,insertionRanges:_0x2315d8,deletionRanges:_0x180dc3,cells:_0x549880}=_0x1001fd;_0x4a79f2['length']&&_0x18dc74['markMultiRangeInsertion'](_0x4a79f2,'tablePasteRow',{'tablePasteChainId':_0x362071}),_0x38217d['length']&&_0x18dc74['markMultiRangeInsertion'](_0x38217d,'tablePasteColumn',{'tablePasteChainId':_0x362071}),_0x2315d8['length']&&(_0x18dc74['markMultiRangeInsertion'](_0x2315d8,'tablePaste',{'tablePasteChainId':_0x362071,'skipNestingCheck':!0x0}),_0x2315d8['forEach'](_0x539084=>_0x539084['detach']?.())),_0x180dc3['length']&&(_0x18dc74['markMultiRangeDeletion'](_0x180dc3,'tablePaste',{'tablePasteChainId':_0x362071,'skipNestingCheck':!0x0}),_0x180dc3['forEach'](_0x2f2adb=>_0x2f2adb['detach']?.()));const _0x5e7187=_0x18dc74['markMultiRangeBlockFormat'](_0x549880['map'](({element:_0x3df7b1})=>_0x3df7b1),{'formatGroupId':uid()},[],'tablePasteCell',{'tablePasteChainId':_0x362071});if(_0x5e7187){const _0x19e3d5=_0x5e7187['getMarkers'](),_0x51222f=[];for(const {element:_0x590cea,attributes:_0x3ab351}of _0x549880){if(!_0x3ab351)continue;const _0x26f078=_0xefb799['model']['createRangeOn'](_0x590cea),_0x3c4904=_0x19e3d5['find'](_0xb7b0fa=>_0xb7b0fa['getRange']()['isEqual'](_0x26f078));_0x3c4904&&_0x51222f['push']([_0x3c4904['name'],_0x3ab351]);}_0x51222f['length']&&_0x5e7187['setAttribute']('markerAttributes',Object['fromEntries'](_0x51222f));}_0x1001fd=null;}));},{'priority':priorities['high']+0xa}),_0x2e4f0d['on']('contentInsertion',()=>{_0x568511=!0x1;},{'priority':'lowest'}),_0xefb799['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2ec3e2,_0xa879e4)=>{const [_0x19783e,_0x39e707,,_0x243027]=_0xa879e4;if(!_0x1001fd)return;_0x2ec3e2['stop']();const _0x18789a=_0x19783e['cell'],_0x33da40=_0x39e707,_0x10cea9=isEmpty(_0x18789a),_0xe83f85=isEmpty(_0x33da40);_0x2ec3e2['return']=_0x18789a;let _0x4b5509=null,_0x230d1f=null;if(_0xe83f85||_0x10cea9){if(_0x10cea9&&!_0xe83f85){_0x243027['remove'](_0x18789a['getChild'](0x0));for(const _0x5e08ca of Array['from'](_0x33da40['getChildren']()))_0x243027['insert'](_0x5e08ca,_0x18789a,'end');const _0x31d7d1=_0x1001fd['rowInsertionIndexes']['includes'](_0x19783e['row']),_0x29785c=_0x1001fd['columnInsertionIndexes']['includes'](_0x19783e['column']);_0x31d7d1||_0x29785c||(_0x4b5509=ModelLiveRange['fromRange'](_0x243027['createRangeIn'](_0x18789a)));}else _0xe83f85&&!_0x10cea9&&(_0x230d1f=_0x243027['createRangeIn'](_0x18789a));}else{const _0x27829e=_0x243027['createElement']('tableCellSuggestion'),_0x2bb736=_0x243027['createElement']('tableCellSuggestion');_0x243027['wrap'](_0x243027['createRangeIn'](_0x18789a),_0x2bb736),_0x243027['insert'](_0x27829e,_0x18789a,0x0);for(const _0x55532a of Array['from'](_0x33da40['getChildren']()))_0x243027['insert'](_0x55532a,_0x27829e,'end');_0x4b5509=ModelLiveRange['fromRange'](_0x243027['createRangeOn'](_0x27829e)),_0x230d1f=ModelLiveRange['fromRange'](_0x243027['createRangeOn'](_0x2bb736));}const _0x2af622=Array['from'](_0x33da40['getAttributes']())['filter'](([_0x39fec6])=>tableCellStyleAttributeNames['includes'](_0x39fec6));_0x1001fd['cells']['push']({'element':_0x18789a,'attributes':_0x2af622['length']?Object['fromEntries'](_0x2af622):null}),_0x4b5509&&_0x1001fd['insertionRanges']['push'](_0x4b5509),_0x230d1f&&_0x1001fd['deletionRanges']['push'](_0x230d1f);},{'priority':'high'}),_0x3dca48['on']('insertColumns',(_0x339840,_0x1297f2)=>{const [_0x33ca88,_0x558a92={}]=_0x1297f2;if(!_0x1001fd)return;const _0x373393=_0x558a92['at']||0x0,_0x3058ca=_0x558a92['columns']||0x1;_0x1001fd['columnInsertionIndexes']=new Array(_0x3058ca)['fill'](_0x373393)['map']((_0x211f3f,_0x492d07)=>_0x211f3f+_0x492d07);for(const {cell:_0x10ed21}of _0x3dca48['createTableWalker'](_0x33ca88,{'startColumn':_0x373393,'endColumn':_0x373393+_0x3058ca-0x1}))_0x1001fd['columnInsertionRanges']['push'](_0xefb799['model']['createRangeOn'](_0x10ed21));},{'priority':'low'}),_0x3dca48['on']('insertRows',(_0x1c9b87,_0x148fcb)=>{const [_0x457da0,_0x2ea097={}]=_0x148fcb;if(!_0x1001fd)return;const _0x5c9e32=_0x2ea097['at']||0x0,_0x23fa0c=_0x2ea097['rows']||0x1;_0x1001fd['rowInsertionIndexes']=new Array(_0x23fa0c)['fill'](_0x5c9e32)['map']((_0x326df7,_0x59f512)=>_0x326df7+_0x59f512);for(const {cell:_0x4a00da}of _0x3dca48['createTableWalker'](_0x457da0,{'startRow':_0x5c9e32,'endRow':_0x5c9e32+_0x23fa0c-0x1}))_0x1001fd['rowInsertionRanges']['push'](_0xefb799['model']['createRangeOn'](_0x4a00da));},{'priority':'low'}),_0x18dc74['descriptionFactory']['registerDescriptionCallback'](_0x16aeb8=>{if(_0x16aeb8['subType']&&_0x16aeb8['subType']['startsWith']('tablePaste'))return _0x16aeb8['previous']?{}:{'type':'insertion','content':getTranslation$5(_0xefb799['locale'],'*Replace\x20table\x20cells*')};});const _0x25f22f=()=>!0x1;for(const _0x2a0eb6 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x18dc74['_suggestionFactory']['registerCustomCallback']('insertion',_0x2a0eb6,'join',_0x25f22f),_0x18dc74['_suggestionFactory']['registerCustomCallback']('deletion',_0x2a0eb6,'join',_0x25f22f),_0x18dc74['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a0eb6,'join',_0x25f22f);_0x18dc74['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x25f22f),_0x18dc74['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x46efc5,_0xf58771,_0x243f84)=>{const _0x10dbab=_0x46efc5['map'](_0x4e8dfb=>_0x4e8dfb['getContainedElement']())['filter'](_0x59053a=>_0x59053a),_0x1e8093=new Map(_0x10dbab['map'](_0x58f158=>[_0x58f158,null]));if(_0x1001fd){for(const {element:_0x14b8a4,attributes:_0x7a523d}of _0x1001fd['cells'])_0x7a523d&&_0x1e8093['set'](_0x14b8a4,_0x7a523d);}else{if(_0x243f84&&_0x243f84['markerAttributes'])for(const [_0xa571,_0x454578]of Object['entries'](_0x243f84['markerAttributes'])){const _0x1c816e=_0xefb799['model']['markers']['get'](_0xa571),_0x5df2f8=_0x1c816e?_0x1c816e['getRange']()['getContainedElement']():null;_0x5df2f8&&_0x1e8093['set'](_0x5df2f8,_0x454578);}}_0xefb799['model']['change'](_0x167b5e=>{for(const [_0x516571,_0x56977c]of _0x1e8093)_0x167b5e['setAttributes']({...tableCellStyleAttributesObject,..._0x56977c},_0x516571);});});const _0x2304e6=(_0x5e4210,_0x2026bd)=>{_0x18dc74['_suggestionFactory']['registerCustomCallback'](_0x5e4210,'tablePaste',_0x2026bd,(_0x7220b9,_0x1de986,_0x11ac53)=>{_0xefb799['model']['change'](_0x181784=>{const _0x1495f7=[];for(const _0x2d5610 of _0x7220b9){const _0x2debe2=_0x2d5610['start']['nodeAfter'];_0x2debe2['is']('element','tableCellSuggestion')&&_0x1495f7['push'](_0x2debe2);}_0x18dc74['_suggestionFactory']['getSuggestionCallback'](_0x5e4210,null,_0x2026bd)(_0x7220b9,_0x1de986,_0x11ac53);for(const _0x585b06 of _0x1495f7)'$graveyard'!=_0x585b06['root']['rootName']&&_0x181784['unwrap'](_0x585b06);});});};_0x2304e6('insertion','accept'),_0x2304e6('insertion','discard'),_0x2304e6('deletion','accept'),_0x2304e6('deletion','discard'),_0x18dc74['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1cbab1=>{const _0x2b790b=_0x1cbab1['map'](_0x55dac7=>_0x55dac7['getContainedElement']()),_0x2648ca=_0x2b790b[0x0]['findAncestor']('table'),{minRow:_0x54e298,maxRow:_0x4fdc1a}=_0x183fe7['_getCoordsForCells'](_0x2b790b);_0x3dca48['removeRows'](_0x2648ca,{'at':_0x54e298,'rows':_0x4fdc1a-_0x54e298+0x1});}),_0x18dc74['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x503a87=>{const _0x857f08=_0x503a87['map'](_0x33e643=>_0x33e643['getContainedElement']()),_0x23febb=_0x857f08[0x0]['findAncestor']('table'),{minColumn:_0x29414e,maxColumn:_0x55793e}=_0x183fe7['_getCoordsForCells'](_0x857f08);_0x3dca48['removeColumns'](_0x23febb,{'at':_0x29414e,'columns':_0x55793e-_0x29414e+0x1});});const _0x3397d5=(_0x1908ef,_0x55f850)=>{if(!_0x55f850['subType']||!_0x55f850['subType']['startsWith']('tablePaste'))return;const _0x3cc432=_0x55f850['attributes']['tablePasteChainId'],_0x5efc5a=_0x18dc74['getSuggestions']()['filter'](_0x1ff9a5=>_0x1ff9a5['isInContent']&&_0x1ff9a5['attributes']&&_0x1ff9a5['attributes']['tablePasteChainId']==_0x3cc432);_0x5efc5a['length']&&_0x55f850['getAllAdjacentSuggestions']()['length']!=_0x5efc5a['length']&&_0x5efc5a['reduce']((_0x1214fd,_0xc57ec9)=>(_0x1214fd['next']=_0xc57ec9,_0xc57ec9['previous']=_0x1214fd,_0xc57ec9));};function _0x5973f1(_0x5c055f,_0x92421b=!0x0){const {id:_0x29d3ac,authorId:_0x4f5ff7}=splitSuggestionMarkerName(_0x5c055f['markerName']),_0x40682c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x220d5d=_0x18dc74['activeMarkers']['includes'](_0x5c055f['markerName']);return _0x220d5d&&_0x40682c['push']('ck-suggestion-marker--active'),{'classes':_0x40682c,'attributes':{'data-suggestion':_0x29d3ac,'data-author-id':_0x4f5ff7},'priority':_0x220d5d&&_0x92421b?0xbc2:0xbb8};}_0x18dc74['on']('suggestionLoaded',_0x3397d5,{'priority':'high'}),_0x18dc74['on']('suggestionUnloaded',_0x3397d5,{'priority':'high'}),_0xefb799['model']['document']['registerPostFixer'](()=>{let _0x50f56a=!0x1;const _0x84e497=Array['from'](_0xefb799['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a3416,data:_0x234661}of _0x84e497){const {group:_0x309a07,type:_0x4a8da4,id:_0x39f03a}=splitSuggestionMarkerName(_0x1a3416);if('suggestion'!=_0x309a07||'deletion'!=_0x4a8da4||_0x234661['oldRange'])continue;if(!_0x18dc74['hasSuggestion'](_0x39f03a))continue;const _0x4db4c1=_0x18dc74['getSuggestion'](_0x39f03a)['getRanges'](),_0x334f02=_0xefb799['plugins']['get']('Users')['me'];for(const _0x31ebb7 of _0x18dc74['getSuggestions']()){if(!_0x31ebb7['isInContent']||_0x31ebb7['author']!=_0x334f02)continue;if('formatBlock'!=_0x31ebb7['type']||'tablePasteCell'!=_0x31ebb7['subType'])continue;if(_0x31ebb7['getRanges']()['every'](_0x92c581=>_0x4db4c1['some'](_0x3e0042=>_0x3e0042['containsRange'](_0x92c581,!0x0)))){for(const _0x424e4b of _0x31ebb7['getAllAdjacentSuggestions']())_0x424e4b['isInContent']&&(_0x424e4b['discard'](),_0x50f56a=!0x0);}}}return _0x50f56a;}),_0xefb799['model']['document']['registerPostFixer'](_0x11a279=>{const _0x3dc048=_0xefb799['commands']['get']('redo');if(!_0x3dc048||!_0x3dc048['_createdBatches']['has'](_0x11a279['batch']))return!0x1;let _0x1483fd=!0x1;const _0x370f24=_0xefb799['plugins']['get']('Users')['me'],_0xd27b2a=_0xefb799['model']['document']['differ']['getChanges'](),_0x4bb3b0=Array['from'](_0xefb799['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x432be2,data:_0x12af3b})=>{const {group:_0x10f558,subType:_0x4181a9,authorId:_0x3982d3}=splitSuggestionMarkerName(_0x432be2);return'suggestion'==_0x10f558&&'tablePaste'==_0x4181a9&&_0x3982d3==_0x370f24['id']&&!_0x12af3b['oldRange'];});for(const _0x4e9c08 of _0xd27b2a){if('insert'!=_0x4e9c08['type']||'tableCellSuggestion'!=_0x4e9c08['name']||0x1!=_0x4e9c08['length'])continue;const _0x1859ce=_0x11a279['createRange'](_0x4e9c08['position'],_0x4e9c08['position']['getShiftedBy'](0x1)),_0x49b04e=_0x4bb3b0['find'](({data:_0x5879e6})=>_0x5879e6['newRange']['isEqual'](_0x1859ce));if(!_0x49b04e){for(const {name:_0xb9f30e,data:_0x48f537}of _0x4bb3b0)if(_0x1859ce['containsRange'](_0x48f537['newRange'])){_0x11a279['updateMarker'](_0xb9f30e,{'range':_0x1859ce}),_0x1483fd=!0x0;break;}}}return _0x1483fd;}),_0xefb799['model']['document']['registerPostFixer'](_0x51b640=>{let _0x18be4e=!0x1;const _0x14b856=_0xefb799['plugins']['get']('Users')['me'],_0x10c4b0=_0x18dc74['getSuggestions']()['filter'](_0x47ebe9=>_0x47ebe9['isInContent']&&_0x47ebe9['author']==_0x14b856),_0x36b7ba=new Set(),_0x43ac28=new Set();for(const _0x5a4a35 of _0x10c4b0)if('tablePaste'==_0x5a4a35['subType'])for(const _0x51763e of _0x5a4a35['getMarkers']()){const _0x116583=_0x51763e['getRange']()['getContainedElement']();if(_0x116583){if(_0x116583['is']('element','tableCellSuggestion')&&isEmpty(_0x116583)){_0x5a4a35['removeMarker'](_0x51763e['name']),_0x36b7ba['add'](_0x116583),_0x18be4e=!0x0;const _0x1701a8=_0x116583['nextSibling'],_0x25be7b=_0x116583['previousSibling'],_0x356970=_0x1701a8&&_0x1701a8['is']('element','tableCellSuggestion'),_0x5b2d1a=_0x25be7b&&_0x25be7b['is']('element','tableCellSuggestion');_0x356970&&!_0x36b7ba['has'](_0x1701a8)&&_0x43ac28['add'](_0x1701a8),_0x5b2d1a&&!_0x36b7ba['has'](_0x25be7b)&&_0x43ac28['add'](_0x25be7b);}else _0x116583['is']('element','paragraph')&&_0x116583['isEmpty']&&(_0x5a4a35['removeMarker'](_0x51763e['name']),_0x18be4e=!0x0);}}else{if('tablePasteCell'==_0x5a4a35['subType']){if(!_0x5a4a35['attributes']||!_0x5a4a35['attributes']['tablePasteChainId'])continue;const _0x4e0214=_0x5a4a35['attributes']['markerAttributes'];if(_0x4e0214&&Object['keys'](_0x4e0214)['length'])continue;const _0x364d57=_0x5a4a35['attributes']['tablePasteChainId'];let _0x4f0b9f=!0x0,_0x21db7a=!0x0;for(const _0x2d2790 of _0x10c4b0)if(_0x2d2790['subType']&&_0x2d2790['subType']['startsWith']('tablePaste')){if(!_0x2d2790['attributes']['tablePasteChainId']){_0x21db7a=!0x1;break;}if(_0x2d2790['id']!=_0x5a4a35['id']&&_0x2d2790['attributes']['tablePasteChainId']==_0x364d57){_0x4f0b9f=!0x1;break;}}_0x21db7a&&_0x4f0b9f&&(_0x5a4a35['removeMarkers'](),_0x18be4e=!0x0);}}for(const _0x54dd72 of _0x36b7ba)_0x51b640['remove'](_0x54dd72);for(const _0x221487 of _0x43ac28)_0x51b640['unwrap'](_0x221487);return _0x18be4e;}),_0xefb799['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x589b90=>_0x5973f1(_0x589b90),'converterPriority':'high'}),_0xefb799['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3d8d41,_0x2d5400)=>_0x2d5400['options']['showSuggestionHighlights']?_0x5973f1(_0x3d8d41,!0x1):null,'converterPriority':'high'});const _0x358551=_0xefb799['editing']['view'];this['listenTo'](_0x358551['document'],'clipboardOutput',(_0x4057c6,_0x2d7fe1)=>{const _0x5936de=[];for(const _0x493dc8 of _0x358551['createRangeIn'](_0x2d7fe1['content'])['getItems']())_0x493dc8['is']('element','suggestion-td')&&_0x5936de['push'](_0x493dc8);_0x358551['change'](_0x4f82e5=>{for(const _0x55ab11 of _0x5936de)_0x4f82e5['move'](_0x4f82e5['createRangeIn'](_0x55ab11),_0x4f82e5['createPositionBefore'](_0x55ab11)),_0x4f82e5['remove'](_0x55ab11);});});}}function isEmpty(_0x2ce42c){if(_0x2ce42c['isEmpty'])return!0x0;const _0x288b36=_0x2ce42c['getChild'](0x0);return _0x288b36['is']('element','paragraph')&&_0x288b36['isEmpty'];}function isPasteTableIntoTable(_0x550836,_0x45753e,_0x106362,_0x275843,_0x4159f6){if(_0x45753e&&!_0x45753e['is']('documentSelection'))return!0x1;const _0x32d41b=_0x4159f6['getTableIfOnlyTableInContent'](_0x550836,_0x106362);if(!_0x32d41b||!isPlainTable(_0x32d41b,void 0x0,_0x275843))return!0x1;const _0x11f004=_0x275843['getSelectionAffectedTableCells'](_0x106362['document']['selection']);if(!_0x11f004['length'])return!0x1;const _0x5037f4=_0x11f004[0x0]['findAncestor']('table'),_0x27b1c2=_0x275843['getRowIndexes'](_0x11f004),_0x4aa96f=_0x275843['getColumnIndexes'](_0x11f004),_0x49e128={'startRow':_0x27b1c2['first'],'endRow':_0x27b1c2['last'],'startColumn':_0x4aa96f['first'],'endColumn':_0x4aa96f['last']};return 0x1==_0x11f004['length']&&(_0x49e128['endRow']+=_0x275843['getRows'](_0x32d41b)-0x1,_0x49e128['endColumn']+=_0x275843['getColumns'](_0x32d41b)-0x1),isPlainTable(_0x5037f4,_0x49e128,_0x275843);}function isPlainTable(_0x4c5ac1,_0x506575={},_0x4a7bc7){for(const {isAnchor:_0x51ab03,cellHeight:_0x3c3f77,cellWidth:_0x1aea40}of _0x4a7bc7['createTableWalker'](_0x4c5ac1,{'includeAllSlots':!0x0,..._0x506575}))if(!_0x51ab03||0x1!=_0x3c3f77||0x1!=_0x1aea40)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xdc24ae=this['editor']['plugins']['get']('TrackChangesEditing');_0xdc24ae['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xdc24ae['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xdc24ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xdc24ae['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xdc24ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xdc24ae['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x340a9c,_0x4ae366){const _0x16ab3a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x553154=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2c46af=_0x4ae366['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x417f0c=_0x553154['getColumnGroupElement'](_0x2c46af);let _0x2623e6=_0x417f0c?_0x553154['getTableColumnsWidths'](_0x417f0c):null,_0x29b2ad=_0x2c46af['getAttribute']('tableWidth')||null;const _0xbe9691=_0x4ae366['tableWidth']||_0x29b2ad,_0x34f35c=_0x4ae366['columnWidths']||_0x2623e6,_0x538239=this['editor']['plugins']['get']('Users')['me'];for(const _0x23559f of _0x16ab3a['getSuggestions']()){const _0x13c234=_0x23559f['getContainedElement']();if('resizeTable'===_0x23559f['subType']&&_0x13c234===_0x2c46af){_0x23559f['author']!==_0x538239&&_0x23559f['discard']();const _0x42938c=_0x23559f['data']['commandParams'];_0x29b2ad=_0x42938c[0x0]['tableWidth'],_0x2623e6=_0x42938c[0x0]['columnWidths'];break;}}_0x340a9c({'table':_0x2c46af,'tableWidth':_0xbe9691,'columnWidths':_0x34f35c}),_0x16ab3a['markBlockFormat'](_0x2c46af,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x29b2ad,'columnWidths':_0x2623e6}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2104c6){if('formatBlock'!=_0x2104c6['type']&&'formatInline'!=_0x2104c6['type'])return;const {data:_0x4e5db2}=_0x2104c6;if(_0x4e5db2&&'resizeTable'===_0x4e5db2['formatGroupId']){const _0x38fa84='*Format:*\x20resize\x20table';return{'type':'format','content':getTranslation$5(this['editor']['locale'],_0x38fa84)};}}}class TrackChangesTemplate extends Plugin{['afterInit'](){const _0x3fd598=this['editor'];_0x3fd598['plugins']['has']('Template')&&_0x3fd598['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends Plugin{['afterInit'](){const _0x4919a3=this['editor'];if(!_0x4919a3['commands']['get']('insertTableOfContents'))return;_0x4919a3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x6d95c9=_0x4919a3['plugins']['get']('TrackChangesEditing'),_0x510b8c=_0x4919a3['locale'];_0x6d95c9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x50e640=>getTranslation$5(_0x510b8c,'ELEMENT_TABLE_OF_CONTENTS',_0x50e640));}}class TrackChangesTitle extends Plugin{['afterInit'](){const _0x1554ce=this['editor'];if(!_0x1554ce['plugins']['has']('Title'))return;_0x1554ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>getTranslation$5(_0x1554ce['locale'],'ELEMENT_TITLE')),_0x1554ce['model']['document']['registerPostFixer'](_0x63fc4a=>{let _0x4a0cf3=!0x1;const _0x4165b1=Array['from'](_0x1554ce['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bc279,data:_0x398986}of _0x4165b1){const {group:_0x2c8597}=splitSuggestionMarkerName(_0x2bc279);if('suggestion'!==_0x2c8597||!_0x398986['newRange'])continue;const _0x2bb90f=_0x398986['newRange'],_0x80f140=_0x2bb90f['end']['nodeBefore'];if(!_0x80f140||!_0x80f140['is']('element','title-content'))continue;if(!_0x2bb90f['start']['isTouching'](_0x2bb90f['end']))continue;const _0xc2901c=_0x1554ce['model']['schema']['getNearestSelectionRange'](_0x2bb90f['end'],'forward');if(_0xc2901c&&_0xc2901c['isCollapsed']){const _0x9fb11d=_0x63fc4a['createRange'](_0x2bb90f['start'],_0xc2901c['start']);_0x9fb11d['isEqual'](_0x2bb90f)||(_0x63fc4a['updateMarker'](_0x2bc279,{'range':_0x9fb11d}),_0x4a0cf3=!0x0);}_0x4a0cf3||(_0x63fc4a['removeMarker'](_0x2bc279),_0x4a0cf3=!0x0);}return _0x4a0cf3;});}}class TrackChangesUploadcare extends Plugin{['afterInit'](){const _0x4cc229=this['editor'],_0x1413d5=_0x4cc229['plugins']['get']('TrackChangesEditing');_0x4cc229['plugins']['has']('Uploadcare')&&(_0x1413d5['enableCommand']('uploadcare'),_0x4cc229['plugins']['has']('UploadcareImageEdit')&&(_0x1413d5['enableCommand']('uploadcareImageEdit'),_0x1413d5['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1413d5['descriptionFactory']['registerDescriptionCallback'](_0x386bb8=>{if('attribute'!=_0x386bb8['type'])return;const {data:_0x36bc65}=_0x386bb8;return _0x36bc65&&'uploadcareImageId'==_0x36bc65['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends Plugin{['afterInit'](){const _0x5e262b=this['editor'],_0x132ddc=_0x5e262b['plugins']['get']('TrackChangesEditing');_0x5e262b['plugins']['has']('UndoEditing')&&(_0x132ddc['enableCommand']('undo'),_0x132ddc['enableCommand']('redo'));}}class TrackChangesTableCaption extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x14a061=this['editor'];if(!_0x14a061['plugins']['has']('TableCaptionEditing'))return;_0x14a061['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends Plugin{['tableProperties'];['tableCellProperties'];constructor(_0x911950){super(_0x911950),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x33b71c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x33917b of this['tableProperties'])_0x33b71c['enableCommand'](_0x33917b,(_0xeb275d,_0x4d8305)=>{const _0x4f871d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x33917b,[_0x4f871d],this['tableProperties'],'tableProperties',_0xeb275d,_0x4d8305);});_0x33b71c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x33b71c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33b71c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x370f31,_0x2a09ba)=>this['handleDiscardAction'](this['tableProperties'],_0x370f31,_0x2a09ba)),_0x33b71c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4fbbdf of this['tableCellProperties'])this['editor']['commands']['get'](_0x4fbbdf)&&_0x33b71c['enableCommand'](_0x4fbbdf,(_0x12ad9c,_0x58228c)=>{const _0xeb2142=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4fbbdf,_0xeb2142,this['tableCellProperties'],'tableCellProperties',_0x12ad9c,_0x58228c);});_0x33b71c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x33b71c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33b71c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1c0f59,_0x293dd6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1c0f59,_0x293dd6)),_0x33b71c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x33b71c['descriptionFactory']['registerAttributeLabel']('tableCellType',getTranslation$5(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x33b71c['descriptionFactory']['registerDescriptionCallback'](_0xcdf967=>this['handleSuggestionDescription'](_0xcdf967)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x17d216,_0x33be0d,_0x516754,_0x3b32cf,_0x2e4ef2,_0x291e0e){const _0x4a85b1=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x291e0e['batch'],()=>{for(const _0x40980f of _0x33be0d){if(this['_getSuggestion'](_0x40980f,_0x3b32cf))_0x2e4ef2(_0x291e0e);else{const _0x2fcaf0={};for(const _0xea8d67 of _0x516754){const _0x499972=_0x40980f['getAttribute'](_0xea8d67);void 0x0!==_0x499972&&(_0x2fcaf0[_0xea8d67]=_0x499972);}_0x2e4ef2(_0x291e0e),_0x4a85b1['markBlockFormat'](_0x40980f,{'commandParams':[_0x2fcaf0]},[],_0x3b32cf);}}});}['handleDiscardAction'](_0x7f377f,_0x50e821,_0x457639){const _0x50aee1=_0x50e821[0x0]['start']['nodeAfter'],_0x2516e9=_0x457639['commandParams'][0x0];this['editor']['model']['change'](_0x4ead02=>{for(const _0x43ff3e of _0x7f377f)void 0x0!==_0x2516e9[_0x43ff3e]?_0x4ead02['setAttribute'](_0x43ff3e,_0x2516e9[_0x43ff3e],_0x50aee1):_0x4ead02['removeAttribute'](_0x43ff3e,_0x50aee1);});}['handleSuggestionDescription'](_0x46a089){if(_0x46a089['data'])switch(_0x46a089['subType']){case'tableProperties':return{'type':'format','content':getTranslation$5(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':getTranslation$5(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1d1441,_0x3b1846){const _0x511cd4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x597df1 of _0x511cd4['getSuggestions']({'skipNotAttached':!0x0})){const _0x2654f9=_0x597df1['getContainedElement']();if(_0x597df1['subType']===_0x3b1846&&_0x2654f9===_0x1d1441)return _0x597df1;}return null;}['_registerTablePropertiesAttributes'](){const _0x558fd4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x390796=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xa8e7d4 of _0x390796){const _0x30c5df=_0xa8e7d4['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x558fd4['descriptionFactory']['registerAttributeLabel'](_0xa8e7d4,getTranslation$5(this['editor']['locale'],'FORMAT_'+_0x30c5df));}}}class TrackChangesLineHeight extends Plugin{['afterInit'](){const _0x4be541=this['editor'];if(!_0x4be541['plugins']['has']('LineHeight'))return;const _0xf30a3f=_0x4be541['plugins']['get']('TrackChangesEditing'),_0x27226f=_0x4be541['locale'];_0xf30a3f['enableDefaultAttributesIntegration']('lineHeight'),_0xf30a3f['descriptionFactory']['registerAttributeLabel']('lineHeight',getTranslation$5(_0x27226f,'FORMAT_LINE_HEIGHT'));}}const renameAttributeKey='$elementName';class TrackChangesEditing extends Plugin{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_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,TrackChangesTableFooters,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(_0x9ae3a1){super(_0x9ae3a1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5423e7,_0x292b7a,_0x52dd24,_0x58fedf)=>{this['_model']['change'](()=>{for(const _0xa01e42 of[..._0x58fedf,..._0x52dd24])this['_model']['markers']['has'](_0xa01e42)&&_0x9ae3a1['editing']['reconvertMarker'](_0xa01e42);});}),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']=_0x9ae3a1['plugins']['get'](CommentsRepository),this['_suggestionsConversion']=_0x9ae3a1['plugins']['get'](SuggestionsConversion),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x9ae3a1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x9ae3a1['config']['get']('trackChanges.trackFormatChanges'),_0x9ae3a1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x9ae3a1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x9ae3a1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2deca1=this['editor'];_0x2deca1['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xfc099e,{writer:_0x44eabb})=>{let _0x352127='suggestion:'+_0xfc099e['getAttribute']('suggestion-type')+':'+_0xfc099e['getAttribute']('id');return _0xfc099e['getAttribute']('marker-count')&&(_0x352127+=':'+_0xfc099e['getAttribute']('marker-count')),_0x44eabb['createElement']('$marker',{'data-name':_0x352127});}}),_0x2deca1['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2deca1['model']['document']['registerPostFixer'](_0x55340c=>{let _0xd7b991=!0x1;const _0x5a5416=Array['from'](_0x2deca1['model']['document']['differ']['getChangedMarkers']()),_0x305160=new Set();for(const {name:_0x47c8b6,data:_0x4bfb90}of _0x5a5416){const {group:_0x6a4c99,type:_0x270681,subType:_0x5108ac,id:_0x4b9b02}=splitSuggestionMarkerName(_0x47c8b6);if('suggestion'!==_0x6a4c99)continue;const _0x14db12=_0x5108ac?'suggestion:'+_0x270681+':'+_0x5108ac+':'+_0x4b9b02:'suggestion:'+_0x270681+':'+_0x4b9b02,_0x131c24=_0x2deca1['model']['markers']['getMarkersGroup'](_0x14db12),_0x11953b=_0x2deca1['model']['markers']['get'](_0x47c8b6),_0xfd94b7=this['_suggestions']['get'](_0x4b9b02);if(null!=_0x4bfb90['newRange']){'formatInline'==_0x270681&&(_0xd7b991=_0xd7b991||trimFormatInlineSuggestionRange(_0x4bfb90['newRange'],_0x47c8b6,_0x55340c,_0x2deca1['model']['schema']));const _0x58ab82='attribute'==_0x270681&&this['_suggestionsConversion']['isBlockAttribute'](_getAttributeKeyFromSubType(_0x5108ac)),_0x5e4a9c='attribute'==_0x270681&&this['_suggestionsConversion']['isInlineAttribute'](_getAttributeKeyFromSubType(_0x5108ac));if(_0x4bfb90['newRange']['isCollapsed']||'$graveyard'==_0x4bfb90['newRange']['root']['rootName']||'formatBlock'==_0x270681&&!isCorrectFormatBlockSuggestionRange(_0x4bfb90['newRange'])||_0x58ab82&&!isCorrectFormatBlockSuggestionRange(_0x4bfb90['newRange'])||_0x5e4a9c&&isEmptyRange(_0x4bfb90['newRange'])||'deletion'==_0x270681&&isEmptyRange(_0x4bfb90['newRange'])||_0x11953b&&isIntersectingWithOtherMarkers(_0x11953b,_0x131c24))_0x55340c['removeMarker'](_0x47c8b6),_0xd7b991=!0x0;else{if(!_0xfd94b7||!_0xfd94b7['isInContent'])continue;if(_0x4bfb90['newRange']&&_0x4bfb90['oldRange']&&_0x4bfb90['newRange']['isEqual'](_0x4bfb90['oldRange']))continue;_0x305160['add'](_0xfd94b7);}}}return _0x305160['size']>0x0&&(_0xd7b991=!!this['_joinWithAdjacentSuggestions'](_0x305160)||_0xd7b991),_0xd7b991;}),_0x2deca1['model']['document']['registerPostFixer'](_0x1d3c11=>{let _0x506fac=!0x1;for(const _0x47237d of _0x2deca1['model']['document']['differ']['getChanges']())if('insert'==_0x47237d['type'])for(const _0x3cf53d of this['_suggestions']['values']()){if(_0x3cf53d['isMultiRange']||!_0x3cf53d['isInContent'])continue;const _0x46615b='formatBlock'==_0x3cf53d['type'],_0x4d7a93=this['_getAttributeKey'](_0x3cf53d),_0x469619=_0x4d7a93&&this['_suggestionsConversion']['isBlockAttribute'](_0x4d7a93);if(!_0x46615b&&!_0x469619)continue;const _0x26fb6f=_0x3cf53d['getFirstRange']();if(_0x26fb6f['start']['parent']!=_0x26fb6f['end']['parent']&&!_0x26fb6f['end']['isAtEnd']){const _0x29e64b=_0x2deca1['model']['createPositionAt'](_0x26fb6f['start']['nodeAfter'],'end'),_0x72954f=_0x2deca1['model']['createRange'](_0x26fb6f['start'],_0x29e64b);_0x1d3c11['updateMarker'](_0x3cf53d['getFirstMarker'](),{'range':_0x72954f}),_0x506fac=!0x0;}}return _0x506fac;}),_0x2deca1['model']['document']['registerPostFixer'](_0x2ab2ac=>this['_processAttributeChanges'](_0x2ab2ac)),_0x2deca1['model']['document']['registerPostFixer'](_0xa15439=>!_0xa15439['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xa15439)),_0x2deca1['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2deca1['model']['document']['on']('change:data',(_0x10a470,_0x47cc4e)=>{if(!_0x47cc4e['isLocal']||_0x47cc4e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x463d68=_0x2deca1['model']['document']['differ']['getChanges']();if(0x0==_0x463d68['length'])return;const _0x403ebb=[],_0x4dbb81=_0x463d68['filter'](_0x400161=>'attribute'==_0x400161['type']),_0x4d9620=_0x463d68['filter'](_0x1c05d0=>'insert'==_0x1c05d0['type']&&'$text'!=_0x1c05d0['name']);for(const _0x466b20 of _0x4dbb81)this['_suggestionsConversion']['isRegisteredAttribute'](_0x466b20['attributeKey'])&&_0x403ebb['push']({'key':_0x466b20['attributeKey'],'newValue':_0x466b20['attributeNewValue'],'oldValue':_0x466b20['attributeOldValue'],'range':fixAttributeSuggestionRange(_0x466b20['range'],_0x2deca1['model'])});for(const _0x46a64f of _0x4d9620){if('rename'!=_0x46a64f['action']&&'refresh'!=_0x46a64f['action'])continue;const _0xac4936=createBlockFormatRangeForElement(_0x46a64f['position']['nodeAfter'],_0x2deca1['model']),_0x164cf7=_0x46a64f['before'];'rename'==_0x46a64f['action']&&_0x403ebb['push']({'key':renameAttributeKey,'newValue':_0x46a64f['name'],'oldValue':_0x164cf7['name'],'range':_0xac4936});for(const [_0x5cd883,_0x400bf4]of _0x164cf7['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x5cd883))continue;const _0xd73cbd=_0x46a64f['attributes']['get'](_0x5cd883);_0x400bf4!==_0xd73cbd&&_0x403ebb['push']({'key':_0x5cd883,'newValue':_0xd73cbd,'oldValue':_0x400bf4,'range':_0xac4936});}for(const [_0x140395,_0x5b0697]of _0x46a64f['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x140395)&&(_0x164cf7['attributes']['has'](_0x140395)||_0x403ebb['push']({'key':_0x140395,'newValue':_0x5b0697,'oldValue':null,'range':_0xac4936}));}0x0!=_0x403ebb['length']&&_0x2deca1['model']['enqueueChange'](_0x47cc4e,_0x224001=>{const _0x411e6e=uid();for(const {range:_0x2a0ad,key:_0x5230c4,oldValue:_0x551a7c,newValue:_0x5e0f32}of _0x403ebb)this['markAttributeChange'](_0x2a0ad,_0x5230c4,_0x551a7c,_0x5e0f32,{'groupId':_0x411e6e});this['_reduceExistingSuggestions'](_0x224001,_0x403ebb);});},{'priority':'lowest'}),_0x2deca1['model']['markers']['on']('update:suggestion',(_0x3c8cee,_0x11bb05,_0x26c2ca)=>{if(null==_0x26c2ca){const {id:_0x22f56e}=splitSuggestionMarkerName(_0x11bb05['name']),_0x324602=this['_suggestions']['get'](_0x22f56e);_0x324602&&_0x324602['addMarkerName'](_0x11bb05['name']);}}),_0x2deca1['model']['document']['on']('change:data',()=>{const _0x595ba6=Array['from'](_0x2deca1['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3969f2=>'suggestion'===splitSuggestionMarkerName(_0x3969f2['name'])['group']);if(0x0===_0x595ba6['length'])return;_0x595ba6['sort']((_0x33f61a,_0x8c588e)=>{const _0x33acb4=_0x33f61a['data']['oldRange'],_0x369ff7=_0x8c588e['data']['oldRange'];return null===_0x33acb4&&null===_0x369ff7?0x0:null===_0x33acb4&&null!==_0x369ff7?-0x1:null!==_0x33acb4&&null===_0x369ff7?0x1:_0x33acb4['start']['isBefore'](_0x369ff7['start'])?-0x1:0x1;});const _0x3f5bb0=new Set(),_0x17f59f=new Set();for(const {name:_0x1754e3,data:_0x14e019}of _0x595ba6){const {id:_0x243bb8}=splitSuggestionMarkerName(_0x1754e3);if(null===_0x14e019['oldRange']){const _0x5edf10=this['_handleNewSuggestionMarker'](_0x1754e3);_0x17f59f['add'](_0x5edf10);}else{const _0x53b764=this['_suggestions']['get'](_0x243bb8);null!==_0x14e019['newRange']||_0x53b764['isInContent']?(_0x3f5bb0['add'](_0x53b764['head']),_0x17f59f['add'](_0x53b764)):this['_removeSuggestion'](_0x53b764);}}_0x17f59f['size']>0x0&&this['_refreshSuggestionsChain'](_0x17f59f);for(const _0x5294df of _0x3f5bb0)this['fire']('suggestionChanged',_0x5294df);}),_0x2deca1['model']['on']('applyOperation',(_0x4b3df6,_0x2d95d3)=>{const _0x19cf5a=_0x2d95d3[0x0];if(!this['_suggestions']['size'])return;if(!_0x19cf5a['isDocumentOperation'])return;if(_0x19cf5a['batch']['isUndo']||!_0x19cf5a['batch']['isLocal'])return;let _0x5491b9,_0x3b27ab;switch(_0x19cf5a['type']){case'insert':_0x5491b9=_0x2deca1['model']['createPositionAt'](_0x19cf5a['position']),_0x3b27ab=_0x5491b9['getShiftedBy'](_0x19cf5a['howMany']);break;case'split':_0x5491b9=_0x2deca1['model']['createPositionAt'](_0x19cf5a['splitPosition']),_0x3b27ab=_0x2deca1['model']['createPositionAt'](_0x19cf5a['moveTargetPosition']);break;case'move':_0x5491b9=_0x2deca1['model']['createPositionAt'](_0x19cf5a['targetPosition']),_0x3b27ab=_0x5491b9['getShiftedBy'](_0x19cf5a['howMany']);break;default:return;}const _0x504d9b=_0x2deca1['model']['createRange'](_0x5491b9,_0x3b27ab);_0x2deca1['model']['change'](()=>{for(const {suggestion:_0x264e08,meta:_0xf3bd86}of this['_findSuggestions'](_0x504d9b)){if(_0x264e08['isMultiRange'])continue;if('formatInline'==_0x264e08['type'])continue;const _0x907c51=this['_getAttributeKey'](_0x264e08);if(_0x907c51&&this['_suggestionsConversion']['isBlockAttribute'](_0x907c51)&&'split'!=_0x19cf5a['type'])continue;const _0x3f507c=_0x264e08['data']&&_0x264e08['data']['multipleBlocks'];('formatBlock'!=_0x264e08['type']||'split'==_0x19cf5a['type']&&!_0x3f507c)&&(_0xf3bd86['containsRangeInObject']||'insertion'==_0x264e08['type']&&_0xf3bd86['isOwn']||_0x264e08['getFirstRange']()['containsRange'](_0x504d9b)&&this['_breakSuggestionMarker'](_0x264e08,_0x5491b9,_0x3b27ab));}});},{'priority':'lowest'}),_0x2deca1['model']['on']('deleteContent',(_0x5204aa,_0x422915)=>{const _0x424f90=_0x422915[0x0],_0x7553df=_0x422915[0x1];if(_0x7553df&&_0x7553df['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x424f90['isCollapsed'])return;const _0x486716=_0x2deca1['model']['schema'],{start:_0x227e22,end:_0x44b244}=_0x424f90['getFirstRange'](),_0x571f28=_0x227e22['nodeAfter']&&_0x486716['isLimit'](_0x227e22['nodeAfter'])?null:_0x486716['getNearestSelectionRange'](_0x227e22,'forward'),_0x3cf5d7=_0x44b244['nodeBefore']&&_0x486716['isLimit'](_0x44b244['nodeBefore'])?null:_0x486716['getNearestSelectionRange'](_0x44b244,'backward'),_0x15f588=_0x2deca1['model']['createRange'](_0x571f28?_0x571f28['start']:_0x227e22,_0x3cf5d7?_0x3cf5d7['end']:_0x44b244);_0x2deca1['model']['change'](_0xf5a472=>{this['markDeletion'](_0x15f588);const _0x2e063a=_0x2deca1['model']['schema']['getNearestSelectionRange'](_0x15f588['start']);_0x424f90['is']('documentSelection')?_0xf5a472['setSelection'](_0x2e063a):_0x424f90['setTo'](_0x2e063a);}),_0x5204aa['stop']();},{'priority':priorities['normal']+0xa}),_0x2deca1['model']['on']('insertContent',(_0x3e40df,_0x29d0e3)=>{const _0x22b08b=_0x29d0e3[_0x29d0e3['length']-0x1];_0x22b08b&&_0x22b08b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2deca1['model']['change'](()=>{let _0x1a484b=_0x2deca1['model']['insertContent'](_0x29d0e3[0x0],_0x29d0e3[0x1],_0x29d0e3[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a484b)return;_0x3e40df['return']=_0x1a484b['clone']();const _0x12164c=_0x1a484b['end']['nodeBefore'],_0x585b44=_0x2deca1['model']['schema'];_0x12164c&&_0x585b44['isBlock'](_0x12164c)&&!_0x585b44['isObject'](_0x12164c)&&(_0x1a484b=_0x2deca1['model']['createRange'](_0x1a484b['start'],_0x2deca1['model']['createPositionAt'](_0x12164c,'end'))),this['markInsertion'](_0x1a484b);}),_0x3e40df['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1fec46=new AcceptSuggestionCommand(_0x2deca1,this['_suggestions']);_0x2deca1['commands']['add']('acceptSuggestion',_0x1fec46),this['enableCommand']('acceptSuggestion');const _0x5f187d=new DiscardSuggestionCommand(_0x2deca1,this['_suggestions']);_0x2deca1['commands']['add']('discardSuggestion',_0x5f187d),this['enableCommand']('discardSuggestion'),_0x2deca1['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x2deca1,_0x1fec46,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2deca1['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x2deca1,_0x5f187d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2deca1['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x2deca1,_0x1fec46,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2deca1['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x2deca1,_0x5f187d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2ea5c2=_0x2deca1['plugins']['get'](CommentsRepository);this['listenTo'](_0x2ea5c2,'addComment',(_0x4db747,{threadId:_0x2d6d93})=>{const _0x1a01f1=this['_suggestions']['get'](_0x2d6d93);_0x1a01f1&&_0x1a01f1['commentThread']&&0x1===_0x1a01f1['commentThread']['length']&&this['_updateSuggestionData'](_0x2d6d93,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2ea5c2,'removeComment',(_0x3dc3e9,{threadId:_0x2ad671})=>{const _0x26e91f=this['_suggestions']['get'](_0x2ad671);_0x26e91f&&_0x26e91f['commentThread']&&!_0x26e91f['commentThread']['length']&&this['_updateSuggestionData'](_0x2ad671,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){checkLicense$5(this);}set['adapter'](_0x2e2d0e){if(this['_adapter'])throw new CKEditorError('track-changes-adapter-already-set',this);this['_adapter']=_0x2e2d0e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xfdc08b=!0x1,toJSON:_0x35c3ee=!0x1}={}){const _0x3c51c9=[];for(const _0x36dda8 of this['_suggestions']['values']())_0xfdc08b&&!_0x36dda8['isInContent']||_0x3c51c9['push'](_0x36dda8);return _0x35c3ee?_0x3c51c9['map'](_0x54c823=>_0x54c823['toJSON']()):_0x3c51c9;}['getSuggestion'](_0x3ae248){const _0x55e702=this['_suggestions']['get'](_0x3ae248);if(!_0x55e702)throw new CKEditorError('track-changes-suggestion-not-found',this);return _0x55e702;}['hasSuggestion'](_0x107107){return this['_suggestions']['has'](_0x107107);}['addSuggestionData'](_0x3dcad8){const {authorId:_0x286e5b,id:_0x1661c9,originalSuggestionId:_0x5d4ed7,attributes:_0x3b0e97}=_0x3dcad8,[_0x8e50d7,_0x440c25]=_0x3dcad8['type']['split'](':'),_0x3f1f00=this['_suggestions']['get'](_0x1661c9)||this['_createSuggestion'](_0x8e50d7,_0x440c25,_0x1661c9,_0x286e5b,_0x3b0e97,_0x5d4ed7);if(this['_addThreadToSuggestion'](_0x3f1f00),this['_checkSuggestionCorrectness'](_0x3f1f00,_0x8e50d7,_0x440c25||null,_0x286e5b),_0x3f1f00['createdAt']=_0x3dcad8['createdAt'],_0x3f1f00['_isDataLoaded']=!0x0,_0x3b0e97&&_0x3b0e97['@external']){const _0x29af96=_0x3b0e97['@external'],_0x44b4bb=this['_getExternalAuthor'](_0x29af96['authorName']);_0x3f1f00['authoredAt']=_0x29af96['createdAt'],_0x3f1f00['author']=_0x44b4bb,_0x3f1f00['isExternal']=!0x0;}else _0x3f1f00['authoredAt']=_0x3dcad8['createdAt'];switch(_0x3dcad8['data']&&(_0x3f1f00['data']=_0x3dcad8['data']),_0x3dcad8['attributes']&&(_0x3f1f00['attributes']=_0x3dcad8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3f1f00['_saved']=!0x0),this['_suggestionState']['get'](_0x3f1f00)){case'notReady':this['_suggestionState']['set'](_0x3f1f00,'dataReady');break;case'markerReady':_0x3f1f00['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3f1f00])),this['_refreshSuggestionsChain'](new Set([_0x3f1f00])),this['_suggestionState']['set'](_0x3f1f00,'ready'),this['fire']('suggestionLoaded',_0x3f1f00)):this['_suggestionState']['set'](_0x3f1f00,'removed');}return _0x3f1f00;}['acceptSuggestion'](_0x35a13d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x406dfc of _0x35a13d['getAllAdjacentSuggestions']())_0x406dfc['accept']();});});}['discardSuggestion'](_0x5c1ab1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2b6010 of _0x5c1ab1['getAllAdjacentSuggestions']())_0x2b6010['discard']();});});}['enableCommand'](_0x5c38c5,_0x181ba6){const _0x30af3c=this['editor']['commands']['get'](_0x5c38c5);if(!_0x30af3c)throw new CKEditorError('track-changes-command-not-found',this,{'commandName':_0x5c38c5});if(this['_enabledCommands']['has'](_0x30af3c))throw new CKEditorError('track-changes-enable-command-twice',this,{'commandName':_0x5c38c5});this['_enabledCommands']['add'](_0x30af3c),_0x181ba6&&_0x30af3c['on']('execute',(_0x4b6baf,_0x2e7fcf)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e7fcf['length']>0x0&&_0x2e7fcf[_0x2e7fcf['length']-0x1]&&_0x2e7fcf[_0x2e7fcf['length']-0x1]['forceDefaultExecution']?_0x2e7fcf['pop']():(_0x4b6baf['return']=_0x181ba6((..._0x2a06d5)=>_0x30af3c['execute'](..._0x2a06d5,{'forceDefaultExecution':!0x0}),..._0x2e7fcf),_0x4b6baf['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4f14b0){let _0x12fc1c,_0x3deafa;const _0x42acd0=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x12fc1c=_0x4f14b0();}catch(_0x537f76){_0x3deafa=_0x537f76;}return _0x42acd0||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3deafa&&CKEditorError['rethrowUnexpectedError'](_0x3deafa,this),_0x12fc1c;}['markInsertion'](_0x14d27f,_0x3c9faf=null,_0x33be29={}){if(_0x14d27f['isCollapsed'])return null;const _0x5a8dd4=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x33be29['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3e6232,meta:_0x12bf84}of this['_findSuggestions'](_0x14d27f,'insertion'))if(_0x12bf84['isOwn']){if(!_0x12bf84['isNextTo']){if(_0x12bf84['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!_areSimilarAttributes(_0x3e6232,_0x33be29))continue;return _0x3e6232;}if(_areSimilarAttributes(_0x3e6232,_0x33be29))return _0x3e6232;this['_breakSuggestionMarker'](_0x3e6232,_0x14d27f['start'],_0x14d27f['end']);break;}if(_0x3c9faf==_0x3e6232['subType']&&_areSimilarAttributes(_0x3e6232,_0x33be29)){const _0x55a3fa=_0x3e6232['getFirstRange']();return _0x55a3fa['start']['isEqual'](_0x14d27f['end'])?this['_setSuggestionRange'](_0x3e6232,this['_model']['createRange'](_0x14d27f['start'],_0x55a3fa['end'])):this['_setSuggestionRange'](_0x3e6232,this['_model']['createRange'](_0x55a3fa['start'],_0x14d27f['end'])),_0x3e6232;}}const _0x2a8f8f=uid(),_0x141e53=_0x5a8dd4['id'],_0x1f3786=_0x3c9faf?'insertion:'+_0x3c9faf:'insertion',_0x2a098c=this['_setSuggestionData']({'id':_0x2a8f8f,'type':_0x1f3786,'createdAt':new Date(),'authorId':_0x141e53,'attributes':_0x33be29});return this['_addSuggestionMarker'](_0x1f3786,_0x2a8f8f,_0x141e53,_0x14d27f),_0x2a098c;}['markMultiRangeInsertion'](_0x2800b0,_0xe1e7d0='multi',_0x3f1c96={}){const _0x758f73=this['editor']['plugins']['get']('Users')['me'],_0x3b417c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xe1e7d0,'join');this['_trackingSessionId']&&(_0x3f1c96['trackingSessionId']=this['_trackingSessionId']);for(const _0x5d9e1a of this['getSuggestions']())if(_0x5d9e1a['author']['id']==_0x758f73['id']&&'insertion'==_0x5d9e1a['type']&&_0x5d9e1a['subType']==_0xe1e7d0&&_areSimilarAttributes(_0x5d9e1a,_0x3f1c96)&&(_0x3b417c(_0x5d9e1a['getRanges'](),_0x2800b0)||_0x3b417c(_0x2800b0,_0x5d9e1a['getRanges']()))){for(const _0x2e3534 of _0x2800b0)_0x5d9e1a['addRange'](_0x2e3534);return _0x5d9e1a;}for(const {suggestion:_0x4a3f9a,meta:_0x7e3ba8}of this['_findSuggestions'](_0x2800b0,'insertion')){if(!_0x7e3ba8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x7e3ba8['containsRangeInObject'])continue;if(!_areSimilarAttributes(_0x4a3f9a,_0x3f1c96))continue;let _0x3b8594=!0x0;for(const _0x4dab42 of _0x4a3f9a['getRanges']())for(const _0xcd8447 of _0x2800b0)if(!_0x4dab42['containsRange'](_0xcd8447)){_0x3b8594=!0x1;break;}if(_0x3b8594)return _0x4a3f9a;}const _0x379dfb=uid(),_0x4e2def=_0x758f73['id'],_0xe07a08='insertion:'+_0xe1e7d0,_0x1555ae=this['_setSuggestionData']({'id':_0x379dfb,'type':_0xe07a08,'createdAt':new Date(),'authorId':_0x4e2def,'attributes':_0x3f1c96});for(const _0x5d5e45 of _0x2800b0)this['_addSuggestionMarker'](_0xe07a08,_0x379dfb,_0x4e2def,_0x5d5e45,Suggestion['getMultiRangeId']());return _0x1555ae;}['markInlineFormat'](_0x2b8935,_0x480187,_0x299aa0=null,_0x286150={}){if(_0x299aa0=_0x299aa0||createFormatSubType(_0x480187),_0x2b8935['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x286150['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2d724b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x299aa0,'accept');return this['forceDefaultExecution'](()=>_0x2d724b([_0x2b8935],_0x480187,_0x286150)),null;}const _0x75e96a=this['editor']['plugins']['get']('Users')['me'],_0x3cb778=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1bca9e,meta:_0x30a952}of this['_findSuggestions'](_0x2b8935,'insertion'))_0x30a952['isOwn']&&!_0x30a952['isInsideObject']&&_0x3cb778['push'](..._0x1bca9e['getRanges']());}const _0x1ad5d7=getIntersectionsWithMultipleRanges(_0x2b8935,_0x3cb778),_0x55a7b1=getDifferencesWithMultipleRanges(_0x2b8935,_0x3cb778);_0x1ad5d7['length']&&this['_model']['change'](()=>{for(const _0x87e9f9 of _0x1ad5d7){const _0x38062b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x299aa0,'accept');this['forceDefaultExecution'](()=>_0x38062b([_0x87e9f9],_0x480187,_0x286150));}});for(const _0x41a671 of _0x55a7b1){let _0x2ccc6e=null,_0x449fb7=_0x41a671['start'],_0x38d6ab=_0x41a671['end'];for(const {suggestion:_0x54fdd0,meta:_0x4639e1}of this['_findSuggestions'](_0x41a671,'formatInline')){if(!_0x4639e1['isOwn'])continue;if(_0x54fdd0['subType']!=_0x299aa0)continue;if(!_areSimilarAttributes(_0x54fdd0,_0x286150))continue;const _0x3496f0=_0x54fdd0['getFirstRange']();if(_0x3496f0['containsRange'](_0x41a671,!0x0))return null;_0x449fb7=_0x449fb7['isBefore'](_0x3496f0['start'])?_0x449fb7:_0x3496f0['start'],_0x38d6ab=_0x38d6ab['isAfter'](_0x3496f0['end'])?_0x38d6ab:_0x3496f0['end'],_0x2ccc6e?_0x3496f0['start']['isBefore'](_0x2ccc6e['getFirstRange']()['start'])?(_0x2ccc6e['removeMarkers'](),_0x2ccc6e=_0x54fdd0):_0x54fdd0['removeMarkers']():_0x2ccc6e=_0x54fdd0;}const _0x3da78f=this['_model']['createRange'](_0x449fb7,_0x38d6ab);if(_0x2ccc6e)this['_setSuggestionRange'](_0x2ccc6e,_0x3da78f);else{const _0x2a8f0a=uid(),_0x2403cf=_0x75e96a['id'];this['_setSuggestionData']({'id':_0x2a8f0a,'type':'formatInline:'+_0x299aa0,'data':_0x480187,'createdAt':new Date(),'authorId':_0x2403cf,'attributes':_0x286150}),this['_addSuggestionMarker']('formatInline:'+_0x299aa0,_0x2a8f0a,_0x2403cf,_0x3da78f);}}return null;}['markBlockFormat'](_0x618d1a,_0x9cbf50,_0x2832ac=[],_0x2b7165=null,_0x5957de={}){_0x9cbf50['formatGroupId']||(_0x9cbf50['formatGroupId']=_0x9cbf50['commandName']),_0x9cbf50['multipleBlocks']=_0x618d1a['is']('range'),_0x2b7165=_0x2b7165||createFormatSubType(_0x9cbf50);const _0x41f11d=_0x2832ac['map'](_0x3315ed=>createBlockFormatRangeForElement(_0x3315ed,this['_model'])),_0x256fa0=_0x618d1a['is']('range')?_0x618d1a:createBlockFormatRangeForElement(_0x618d1a,this['_model']);if(this['_trackingSessionId']&&(_0x5957de['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5545b9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b7165,'accept');return this['forceDefaultExecution'](()=>_0x5545b9([_0x256fa0],_0x9cbf50,_0x5957de)),null;}_0x41f11d['push'](_0x256fa0);let _0x46a50c=!0x0;for(const _0x5ce8b7 of _0x41f11d)if(!this['_rangeIsInLocalUserInsertion'](_0x5ce8b7)){_0x46a50c=!0x1;break;}if(_0x46a50c&&'always'!==this['_trackFormatChanges']){const _0x13b628=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b7165,'accept');return this['forceDefaultExecution'](()=>_0x13b628([_0x256fa0],_0x9cbf50,_0x5957de)),null;}let _0x305b67=null,_0x1240d8=_0x256fa0['start'],_0x4f1ee3=_0x256fa0['end'];for(const {suggestion:_0x29ea25,meta:_0x365bdc}of this['_findSuggestions'](_0x256fa0,'formatBlock')){if(!_0x365bdc['isOwn'])continue;if(_0x365bdc['isNextTo']||_0x365bdc['containsRangeInObject']||_0x365bdc['isInsideObject'])continue;if(_0x29ea25['data']['formatGroupId']!=_0x9cbf50['formatGroupId'])continue;if(!_areSimilarAttributes(_0x29ea25,_0x5957de))continue;const _0x520118=_0x29ea25['getFirstRange']();if(_0x29ea25['subType']==_0x2b7165){if(_0x520118['containsRange'](_0x256fa0,!0x0))return null;_0x1240d8=_0x1240d8['isBefore'](_0x520118['start'])?_0x1240d8:_0x520118['start'],_0x4f1ee3=_0x4f1ee3['isAfter'](_0x520118['end'])?_0x4f1ee3:_0x520118['end'],_0x305b67?_0x520118['start']['isBefore'](_0x305b67['getFirstRange']()['start'])?(_0x305b67['removeMarkers'](),_0x305b67=_0x29ea25):_0x29ea25['removeMarkers']():_0x305b67=_0x29ea25;}else{const _0x272304=_0x256fa0['getIntersection'](_0x520118);this['_cutOutSuggestionMarker'](_0x29ea25,_0x272304);}}const _0xac7e0d=this['editor']['plugins']['get']('Users')['me'],_0x49bbdf=uid(),_0x1fa8a0=_0xac7e0d['id'];if(_0x305b67)return this['_setSuggestionRange'](_0x305b67,this['_model']['createRange'](_0x1240d8,_0x4f1ee3)),_0x305b67;{const _0x38292e=this['_setSuggestionData']({'id':_0x49bbdf,'type':'formatBlock:'+_0x2b7165,'data':_0x9cbf50,'createdAt':new Date(),'authorId':_0x1fa8a0,'attributes':_0x5957de});return this['_addSuggestionMarker']('formatBlock:'+_0x2b7165,_0x49bbdf,_0x1fa8a0,this['_model']['createRange'](_0x1240d8,_0x4f1ee3)),_0x38292e;}}['markMultiRangeBlockFormat'](_0x561db9,_0x48b079,_0x311f6d=[],_0x19c18c=null,_0x28034d={}){_0x48b079['formatGroupId']||(_0x48b079['formatGroupId']=_0x48b079['commandName']);const _0x398c3e=_0x561db9[0x0];_0x48b079['multipleBlocks']=_0x398c3e['is']('range'),_0x19c18c=_0x19c18c||createFormatSubType(_0x48b079);const _0x2dbe37=_0x311f6d['map'](_0x2cfc82=>createBlockFormatRangeForElement(_0x2cfc82,this['_model'])),_0x4d0bec=_0x398c3e['is']('range')?_0x561db9:_0x561db9['map'](_0x2b62da=>createBlockFormatRangeForElement(_0x2b62da,this['_model']));if(this['_trackingSessionId']&&(_0x28034d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x12cf43=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19c18c,'accept');return this['forceDefaultExecution'](()=>_0x12cf43(_0x4d0bec,_0x48b079,_0x28034d)),null;}_0x2dbe37['push'](..._0x4d0bec);let _0x595eeb=!0x0;for(const _0x39a8e6 of _0x2dbe37)if(!this['_rangeIsInLocalUserInsertion'](_0x39a8e6)){_0x595eeb=!0x1;break;}if(_0x595eeb&&'always'!==this['_trackFormatChanges']){const _0xf54391=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19c18c,'accept');return this['forceDefaultExecution'](()=>_0xf54391(_0x4d0bec,_0x48b079,_0x28034d)),null;}const _0x269ca3=this['editor']['plugins']['get']('Users')['me'];for(const _0x1883c5 of this['getSuggestions']()){const _0x55c4a9=_0x1883c5['data'];if(_0x1883c5['author']['id']!=_0x269ca3['id'])continue;if('formatBlock'!=_0x1883c5['type']||_0x55c4a9['formatGroupId']!=_0x48b079['formatGroupId'])continue;if(!_areSimilarAttributes(_0x1883c5,_0x28034d))continue;const _0x1cadfe=_0x1883c5['subType']==_0x19c18c;for(let _0x202972=0x0;_0x202972<_0x4d0bec['length'];_0x202972++){const _0x262d57=_0x4d0bec[_0x202972];for(const _0x1425bf of _0x1883c5['getMarkers']()){const _0x47b2e9=_0x1425bf['getRange']();if(_0x262d57['isEqual'](_0x47b2e9)){_0x1cadfe?(_0x4d0bec['splice'](_0x202972,0x1),_0x202972--):_0x1883c5['removeMarker'](_0x1425bf['name']);break;}}}}if(0x0==_0x4d0bec['length'])return null;const _0x217c1e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19c18c,'join');for(const _0x52e020 of this['getSuggestions']()){const _0x403e02=_0x52e020['data'];if(_0x52e020['author']['id']==_0x269ca3['id']&&('formatBlock'==_0x52e020['type']&&_0x403e02['formatGroupId']==_0x48b079['formatGroupId']&&_0x52e020['subType']==_0x19c18c&&_areSimilarAttributes(_0x52e020,_0x28034d)&&(_0x217c1e(_0x52e020['getRanges'](),_0x4d0bec)||_0x217c1e(_0x4d0bec,_0x52e020['getRanges']())))){for(const _0x109157 of _0x4d0bec)_0x52e020['addRange'](_0x109157);return _0x52e020;}}const _0x242e84=uid(),_0x4e9439=_0x269ca3['id'],_0x578806='formatBlock:'+_0x19c18c,_0x30f221=this['_setSuggestionData']({'id':_0x242e84,'type':_0x578806,'data':_0x48b079,'createdAt':new Date(),'authorId':_0x4e9439,'attributes':_0x28034d});for(const _0x1eae37 of _0x4d0bec)this['_addSuggestionMarker'](_0x578806,_0x242e84,_0x4e9439,_0x1eae37,Suggestion['getMultiRangeId']());return _0x30f221;}['markDeletion'](_0xd22cf5,_0x33c990=null,_0x4eb8da={}){if(_0xd22cf5['isCollapsed'])return null;const _0xd3f830=this['editor']['plugins']['get']('Users')['me'],_0x300a3e=new ModelLiveRange(_0xd22cf5['start'],_0xd22cf5['end']);this['_trackingSessionId']&&(_0x4eb8da['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xa03ab,meta:_0x4abaff}of this['_findSuggestions'](_0x300a3e,'insertion'))if(_0x4abaff['isOwn']&&!_0x4abaff['isNextTo']){if(_0xa03ab['isMultiRange']){const _0x332bb4=_0xa03ab['getRanges']()['filter'](_0x41c210=>'$graveyard'!=_0x41c210['root']['rootName']);_0x332bb4['every'](_0x19faa7=>_0x300a3e['containsRange'](_0x19faa7,!0x0))&&_0xa03ab['discard']();if(_0x332bb4['some'](_0x329ea7=>_0x329ea7['containsRange'](_0x300a3e,!0x0))){const _0x591671=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33c990,'accept');return this['forceDefaultExecution'](()=>_0x591671([_0x300a3e],null,_0x4eb8da)),null;}}else{const _0x40c7f9=_0x300a3e['getIntersection'](_0xa03ab['getFirstRange']());null!==_0x40c7f9&&_0xa03ab['_onDiscard']([_0x40c7f9],null,_0x4eb8da);}}if(_0x300a3e['detach'](),_0x300a3e['isCollapsed']||'$graveyard'==_0x300a3e['root']['rootName'])return null;let _0x3597d7=null,_0x555180=_0x300a3e['start'],_0x3f9210=_0x300a3e['end'];const _0x3e35fe=this['_findSuggestions'](_0x300a3e,'deletion');for(const {suggestion:_0x416252,meta:_0x40a310}of _0x3e35fe){const _0x479dc7=this['_model']['createRange'](_0x555180,_0x3f9210);if(_0x40a310['isOwn']&&(this['_mergeNestedSuggestions']||!_0x40a310['containsRangeInObject']&&!_0x40a310['isInsideObject'])){if(_0x416252['isMultiRange']){if(!_areSimilarAttributes(_0x416252,_0x4eb8da))continue;let _0x3cef02=!0x0;for(const _0x420e6e of _0x416252['getRanges']()){if(_0x420e6e['containsRange'](_0x479dc7,!0x0))return _0x416252;_0x479dc7['containsRange'](_0x420e6e)||(_0x3cef02=!0x1);}_0x3cef02&&_0x416252['discard']();}else{const _0x90a558=_0x416252['getFirstRange']();if(_0x90a558['containsRange'](_0x479dc7,!0x0))return _0x416252;if(!_areSimilarAttributes(_0x416252,_0x4eb8da)){_0x479dc7['containsRange'](_0x90a558)?_0x416252['removeMarkers']():_0x90a558['containsPosition'](_0x555180)?_0x555180=_0x90a558['end']:_0x90a558['containsPosition'](_0x3f9210)&&(_0x3f9210=_0x90a558['start']);continue;}_0x555180=_0x555180['isBefore'](_0x90a558['start'])?_0x555180:_0x90a558['start'],_0x3f9210=_0x3f9210['isAfter'](_0x90a558['end'])?_0x3f9210:_0x90a558['end'],_0x4eb8da=Object['assign']({},_0x416252['attributes']),_0x3597d7?_0x90a558['start']['isBefore'](_0x3597d7['getFirstRange']()['start'])?(_0x3597d7['removeMarkers'](),_0x3597d7=_0x416252):_0x416252['removeMarkers']():_0x3597d7=_0x416252;}}}if(_0x3597d7)return this['_setSuggestionRange'](_0x3597d7,this['_model']['createRange'](_0x555180,_0x3f9210)),_0x3597d7;{const _0x4faeba=uid(),_0x1daf3e=this['_model']['createRange'](_0x555180,_0x3f9210),_0x57533a=_0xd3f830['id'],_0x3970d8=_0x33c990?'deletion:'+_0x33c990:'deletion',_0x59d734=this['_setSuggestionData']({'id':_0x4faeba,'type':_0x3970d8,'createdAt':new Date(),'authorId':_0x57533a,'attributes':_0x4eb8da});return this['_addSuggestionMarker'](_0x3970d8,_0x4faeba,_0x57533a,_0x1daf3e),_0x59d734;}}['markMultiRangeDeletion'](_0x4a733a,_0x283997='multi',_0x1eddf5={}){const _0x496302=this['editor']['plugins']['get']('Users')['me'],_0x12b031=_0x4a733a['map'](_0x2f4229=>new ModelLiveRange(_0x2f4229['start'],_0x2f4229['end'])),_0x215cc7=new Set();this['_trackingSessionId']&&(_0x1eddf5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x173aa6,meta:_0x5d03e7}of this['_findSuggestions'](_0x12b031,'insertion'))_0x5d03e7['isOwn']&&!_0x5d03e7['isNextTo']&&_0x215cc7['add'](_0x173aa6);for(const _0x5c73f1 of _0x215cc7)if(_0x5c73f1['isMultiRange']){const _0x1cdfc9=_0x5c73f1['getRanges']();(!_0x5c73f1['attributes']||!_0x5c73f1['attributes']['skipNestingCheck'])&&(_0x1cdfc9['every'](_0x58de59=>_0x12b031['some'](_0x1928fb=>_0x1928fb['containsRange'](_0x58de59,!0x0)))&&_0x5c73f1['discard']());if(_0x12b031['every'](_0xaba815=>_0x1cdfc9['some'](_0x2a33b9=>_0x2a33b9['containsRange'](_0xaba815,!0x0)))){const _0x4a919d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x283997,'accept');return this['forceDefaultExecution'](()=>_0x4a919d(_0x4a733a,null,_0x1eddf5)),null;}}else{const _0x3b2d34=_0x5c73f1['getFirstRange']();_0x12b031['some'](_0x2b5ed7=>_0x2b5ed7['containsRange'](_0x3b2d34,!0x0))&&_0x5c73f1['discard']();if(_0x12b031['every'](_0x253fe4=>_0x3b2d34['containsRange'](_0x253fe4,!0x0))){const _0x329dfc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x283997,'accept');return this['forceDefaultExecution'](()=>_0x329dfc(_0x12b031,null,_0x1eddf5)),null;}}const _0x5b6a0c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x283997,'join');let _0x3d7d04=null;for(const _0x5918f6 of this['getSuggestions']())if(_0x5918f6['author']['id']==_0x496302['id']&&_0x5918f6['isInContent']&&'deletion'==_0x5918f6['type']&&_0x5918f6['subType']==_0x283997&&_areSimilarAttributes(_0x5918f6,_0x1eddf5)&&(_0x5b6a0c(_0x5918f6['getRanges'](),_0x12b031)||_0x5b6a0c(_0x12b031,_0x5918f6['getRanges']()))){if(_0x3d7d04){if(_0x5918f6['commentThread']&&_0x5918f6['commentThread']['length'])continue;for(const _0x59fc8b of _0x5918f6['getRanges']())_0x3d7d04['isIntersectingWithRange'](_0x59fc8b)||_0x3d7d04['addRange'](_0x59fc8b);_0x5918f6['removeMarkers']();}else{_0x3d7d04=_0x5918f6;for(const _0x1d0dba of _0x12b031)_0x5918f6['isIntersectingWithRange'](_0x1d0dba)||_0x5918f6['addRange'](_0x1d0dba);}}if(_0x3d7d04)return _0x3d7d04;_0x215cc7['clear']();for(const {suggestion:_0xc7451e,meta:_0x542871}of this['_findSuggestions'](_0x12b031,'deletion'))_0x542871['isOwn']&&(this['_mergeNestedSuggestions']||!_0x542871['containsRangeInObject']&&!_0x542871['isInsideObject'])&&_areSimilarAttributes(_0xc7451e,_0x1eddf5)&&_0x215cc7['add'](_0xc7451e);for(const _0x374779 of _0x215cc7){const _0x32960b=_0x374779['getRanges']();if(!_0x1eddf5||!_0x1eddf5['skipNestingCheck']){if(_0x12b031['every'](_0x1cce9f=>_0x32960b['some'](_0x163c7a=>_0x163c7a['containsRange'](_0x1cce9f,!0x0))))return _0x374779;}(!_0x374779['attributes']||!_0x374779['attributes']['skipNestingCheck'])&&(_0x32960b['every'](_0x5447cc=>_0x12b031['some'](_0x3170f2=>_0x3170f2['containsRange'](_0x5447cc,!0x0)))&&_0x374779['discard']());}const _0x2a3784=uid(),_0x23ee1f=_0x496302['id'],_0xd6b107='deletion:'+_0x283997,_0x905eb4=this['_setSuggestionData']({'id':_0x2a3784,'type':_0xd6b107,'createdAt':new Date(),'authorId':_0x23ee1f,'attributes':_0x1eddf5});for(const _0x531fb4 of _0x12b031)_0x531fb4['detach'](),_0x531fb4['isCollapsed']||'$graveyard'==_0x531fb4['root']['rootName']||this['_addSuggestionMarker'](_0xd6b107,_0x2a3784,_0x23ee1f,_0x531fb4,Suggestion['getMultiRangeId']());return _0x905eb4;}['markAttributeChange'](_0x5ead0e,_0x58358c,_0xf61602,_0x86744a,_0x28dd4f){if(_0x5ead0e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1fc70f=this['editor']['plugins']['get']('Users')['me']['id'],_0x3a2a4e=Array['from'](this['_suggestions']['values']())['filter'](_0x36911f=>'attribute'==_0x36911f['type']&&_0x36911f['data']['key']==_0x58358c&&_0x36911f['isIntersectingWithRange'](_0x5ead0e));if(this['_trackingSessionId']&&(_0x28dd4f['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5157ad=this['_findSuggestions'](_0x5ead0e,'insertion')['filter'](({meta:_0x2c6773})=>_0x2c6773['isOwn']&&!_0x2c6773['isInsideObject']&&!_0x2c6773['isNextTo'])['map'](({suggestion:_0x5cdd85})=>_0x5cdd85);_0x3a2a4e['unshift'](..._0x5157ad);}const _0x380692=new Map([[_0x5ead0e,_0xf61602]]);for(const _0xc6cffe of _0x3a2a4e){const _0x4f32c0='attribute'==_0xc6cffe['type']?_0xc6cffe['data']['oldValue']:void 0x0,_0x3f9da3=_0xc6cffe['getFirstRange'](),_0x5a67a4=Array['from'](_0x380692['keys']())['find'](_0x2cb178=>_0x2cb178['isIntersecting'](_0x3f9da3));if(!_0x5a67a4)continue;const _0x456056=_0x5a67a4['getDifference'](_0x3f9da3);this['_suggestionsConversion']['isBlockAttribute'](_0x58358c)&&'insertion'==_0xc6cffe['type']&&0x0!=_0x456056['length']||(_0x380692['delete'](_0x5a67a4),_0x456056['forEach'](_0x2b21af=>{_0x380692['set'](_0x2b21af,_0xf61602);}),'insertion'!=_0xc6cffe['type']&&_0x4f32c0!=_0x86744a&&_0x380692['set'](_0x5a67a4['getIntersection'](_0x3f9da3),_0x4f32c0));}const _0x2b3555=[];for(const [_0x449123,_0x4a7bb4]of _0x380692){const _0x16ffde=uid(),_0x13aed0={'key':_0x58358c,'oldValue':_0x4a7bb4,'newValue':_0x86744a};_0x58358c['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':_0x58358c});const _0x392929=('attribute:'+(_0x58358c+'|'+createFormatSubType({'newValue':_0x86744a})))['substring'](0x0,0x3c),_0x23ad49=this['_setSuggestionData']({'id':_0x16ffde,'type':_0x392929,'data':_0x13aed0,'createdAt':new Date(),'authorId':_0x1fc70f,'attributes':_0x28dd4f});_0x2b3555['push'](_0x23ad49),this['_addSuggestionMarker'](_0x392929,_0x16ffde,_0x1fc70f,_0x449123);}return _0x2b3555;}['enableDefaultAttributesIntegration'](_0x227780){this['enableCommand'](_0x227780,(_0x29fc74,..._0x5631ea)=>{this['recordAttributeChanges'](()=>{_0x29fc74(..._0x5631ea);});});}['startTrackingSession'](_0xb28111){return this['_trackingSessionId']=void 0x0!==_0xb28111?_0xb28111:uid(),this['_trackingSessionId'];}['_getAttributeKey'](_0x59eb32){return'attribute'==_0x59eb32['type']?_getAttributeKeyFromSubType(_0x59eb32['subType']):null;}['_applyOperationsAsSuggestions'](_0xa4d3cf){if(0x0==_0xa4d3cf['length'])return;const _0x5017a0=this['editor'],_0x9025b7=_0x5017a0['plugins']['get'](DocumentCompare),_0x470589=[];_0x5017a0['model']['change'](_0x58225c=>{for(let _0x30236e=0x0;_0x30236e<_0xa4d3cf['length'];_0x30236e++){const _0x399e47=_0xa4d3cf[_0x30236e];if(_0x399e47['baseVersion']=_0x5017a0['model']['document']['version'],_0x399e47['isDocumentOperation']=!0x0,_0x9025b7['isMarkedRemoveOperation'](_0x399e47)){const _0x321d8b=fixElementSuggestionRange(_0x399e47['newRange'],_0x5017a0['model']);_0x470589['unshift'](ModelLiveRange['fromRange'](_0x321d8b));}else switch(_0x399e47['type']){case'rename':{const _0x1a9fa6=_0x399e47['oldName'],_0xb3a1c9=_0x399e47['newName'];if(_0x1a9fa6==_0xb3a1c9)break;_0x58225c['batch']['addOperation'](_0x399e47),_0x5017a0['model']['applyOperation'](_0x399e47);const _0x2f5766='$elementName',_0x6fa57b=_0x399e47['position'],_0x18ffa9=_0x5017a0['model']['createRange'](_0x6fa57b,_0x5017a0['model']['createPositionAt'](_0x6fa57b['nodeAfter'],'end'));this['markAttributeChange'](_0x18ffa9,_0x2f5766,_0x1a9fa6,_0xb3a1c9,{'groupId':uid()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x5d601e=_0x399e47['oldValue'],_0x17afd0=_0x399e47['newValue'];if(_0x5d601e==_0x17afd0)break;_0x58225c['batch']['addOperation'](_0x399e47),_0x5017a0['model']['applyOperation'](_0x399e47);const _0x56da89=_0x399e47['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x56da89))break;const _0x2543d7=fixElementSuggestionRange(_0x399e47['range'],_0x5017a0['model']);this['markAttributeChange'](_0x2543d7,_0x56da89,_0x5d601e,_0x17afd0,{'groupId':uid()});break;}case'insert':{_0x58225c['batch']['addOperation'](_0x399e47),_0x5017a0['model']['applyOperation'](_0x399e47);if(_0xa4d3cf[_0x30236e+0x1]&&'move'==_0xa4d3cf[_0x30236e+0x1]['type'])break;const _0x2b0e24=_0x399e47['position'],_0x2bad48=_0x399e47['howMany'],_0x37eade=fixElementSuggestionRange(_0x5017a0['model']['createRange'](_0x2b0e24,_0x2b0e24['getShiftedBy'](_0x2bad48)),_0x5017a0['model']);this['markInsertion'](_0x37eade);break;}case'split':{_0x58225c['batch']['addOperation'](_0x399e47),_0x5017a0['model']['applyOperation'](_0x399e47);const _0x386a39=_0x399e47['splitPosition'],_0x11505e=_0x399e47['moveTargetPosition'];this['markInsertion'](_0x5017a0['model']['createRange'](_0x386a39,_0x11505e));break;}case'move':case'remove':_0x58225c['batch']['addOperation'](_0x399e47),_0x5017a0['model']['applyOperation'](_0x399e47);}}for(const _0xa6aa0d of _0x470589)_0xa6aa0d['detach'](),this['markDeletion'](_0xa6aa0d);});}['_setSuggestionRange'](_0x5da20b,_0x48eb27){const _0x6faa96=_0x5da20b['getFirstMarker']();this['_model']['change'](_0x10976f=>{_0x10976f['updateMarker'](_0x6faa96,{'range':_0x48eb27});});}['_addThreadToSuggestion'](_0x10a949){const _0x55652a=_0x10a949['id'],_0x54176f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x55652a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x54176f,'threadId':_0x55652a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x52fd6c=this['_commentsRepository']['getCommentThread'](_0x55652a);_0x52fd6c['unbind']('isRemovable'),_0x52fd6c['isRemovable']=!0x1,_0x10a949['commentThread']=_0x52fd6c;}['_checkSuggestionCorrectness'](_0x45e88a,_0x36f813,_0x9b1c68,_0x517f17){if(_0x45e88a['type']!=_0x36f813||_0x45e88a['subType']!=_0x9b1c68||_0x45e88a['creator']['id']!=_0x517f17)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new CKEditorError('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1af642,_0x302066){const _0x56daf6=_0x1af642['getFirstRange']();if(_0x302066['isEqual'](_0x56daf6))_0x1af642['removeMarkers']();else{if(_0x56daf6['containsRange'](_0x302066)){const _0xf3080=this['_model']['createPositionAt'](_0x302066['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1af642,this['_model']['createRange'](_0x56daf6['start'],_0xf3080));const _0x120dd1=uid(),_0x41a7bd=_0x1af642['creator']['id'],_0x4a43b8=_0x1af642['type']+':'+_0x1af642['subType'];this['_setSuggestionData']({'id':_0x120dd1,'type':_0x4a43b8,'createdAt':new Date(),'authorId':_0x41a7bd,'data':_0x1af642['data'],'attributes':_0x1af642['attributes']});const _0x5a1e3d=this['_model']['createPositionAt'](_0x302066['end']['parent'],'after'),_0x5a4151=this['_model']['createRange'](_0x5a1e3d,_0x56daf6['end']);this['_addSuggestionMarker'](_0x4a43b8,_0x120dd1,_0x41a7bd,_0x5a4151);}else{if(_0x56daf6['containsPosition'](_0x302066['start'])){const _0x416761=this['_model']['createPositionAt'](_0x302066['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1af642,this['_model']['createRange'](_0x56daf6['start'],_0x416761));}else{const _0x313edb=this['_model']['createPositionAt'](_0x302066['end']['parent'],'after');this['_setSuggestionRange'](_0x1af642,this['_model']['createRange'](_0x313edb,_0x56daf6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x34ea5c){for(const {suggestion:_0x5094e2,meta:_0x5a5d20}of this['_findSuggestions'](_0x34ea5c,'insertion')){if(!_0x5a5d20['isOwn'])continue;const _0x609744=_0x5094e2['getRanges']();for(const _0x182fc8 of _0x609744)if(!_0x34ea5c['getDifference'](_0x182fc8)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2a444c){return this['editor']['plugins']['get']('Users')['getUser'](_0x2a444c);}['_getExternalAuthor'](_0x580807){const _0x3929a3=this['editor']['plugins']['get']('Users'),_0x193413=hashObject('external:'+_0x580807),_0x20e047=_0x3929a3['getUser'](_0x193413);return _0x20e047||_0x3929a3['addUser']({'id':_0x193413,'name':_0x580807});}['_createSuggestion'](_0x27c0d1,_0x3bc65d,_0x3c3c3c,_0x302a9d,_0x357790,_0x1c1218){const _0x45339a=this['_getAuthorFromId'](_0x302a9d);if(!_0x45339a)throw new CKEditorError('track-changes-user-not-found',this,{'authorId':_0x302a9d,'suggestionId':_0x3c3c3c});const _0x421e11=this['_suggestionFactory']['buildSuggestion'](_0x27c0d1,_0x3bc65d,_0x3c3c3c,_0x45339a,_0x357790,_0x4f2e2b=>{this['_updateSuggestionData'](_0x3c3c3c,{'attributes':_0x4f2e2b});const _0x21def0=this['getSuggestion'](_0x3c3c3c);this['_joinWithAdjacentSuggestions'](new Set([_0x21def0])),this['_refreshSuggestionsChain'](new Set([_0x21def0]));},_0x1c1218);return this['listenTo'](_0x421e11,'accept',()=>{this['_updateSuggestionData'](_0x3c3c3c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x421e11,'discard',()=>{this['_updateSuggestionData'](_0x3c3c3c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3c3c3c,_0x421e11),this['_suggestionState']['set'](_0x421e11,'notReady'),_0x421e11;}['_breakSuggestionMarker'](_0x2e2b86,_0x3acbfe,_0x571deb){const _0x806695=_0x2e2b86['getFirstRange'](),_0x3d3fe4=_0x806695['start'],_0x1ea062=_0x806695['end'];this['_setSuggestionRange'](_0x2e2b86,this['_model']['createRange'](_0x3d3fe4,_0x3acbfe));const _0x528ef7=uid(),_0x59285f=_0x2e2b86['creator']['id'],_0x1a6080=_0x2e2b86['type']+(_0x2e2b86['subType']?':'+_0x2e2b86['subType']:'');this['_setSuggestionData']({'id':_0x528ef7,'type':_0x1a6080,'createdAt':new Date(),'authorId':_0x59285f,'originalSuggestionId':_0x2e2b86['_originalSuggestionId']||_0x2e2b86['id'],'attributes':_0x2e2b86['attributes'],'data':_0x2e2b86['data']});const _0x2147e6=this['_getAttributeKey'](_0x2e2b86);('formatBlock'==_0x2e2b86['type']||_0x2147e6&&this['_suggestionsConversion']['isBlockAttribute'](_0x2147e6))&&(_0x571deb=this['_model']['createPositionBefore'](_0x571deb['parent'])),this['_addSuggestionMarker'](_0x1a6080,_0x528ef7,_0x59285f,this['_model']['createRange'](_0x571deb,_0x1ea062));}['_findSuggestions'](_0x460c20,_0x355e3a=null){const _0x53ca9=[],_0x41a69e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x460c20)||(_0x460c20=[_0x460c20]);for(const _0xefa675 of this['getSuggestions']()){if(!_0xefa675['isInContent'])continue;if(_0x355e3a&&_0xefa675['type']!=_0x355e3a)continue;let _0x1d439e=!0x1;for(const _0x2740da of _0xefa675['getRanges']()){for(const _0x48fdc1 of _0x460c20){const _0x59b64f=_0x48fdc1['start']['isEqual'](_0x2740da['end'])||_0x48fdc1['end']['isEqual'](_0x2740da['start']);if(_0x59b64f||_0x48fdc1['getIntersection'](_0x2740da)){const _0xa4e3df=_0x48fdc1['containsRange'](_0x2740da)&&_isInObject(this['_model']['schema'],_0x2740da['start'],_0x48fdc1),_0x3b0292=_0x2740da['containsRange'](_0x48fdc1)&&_isInObject(this['_model']['schema'],_0x48fdc1['start'],_0x2740da);_0x53ca9['push']({'suggestion':_0xefa675,'meta':{'isOwn':_0x41a69e==_0xefa675['author'],'isNextTo':_0x59b64f,'isInsideObject':_0xa4e3df,'containsRangeInObject':_0x3b0292}}),_0x1d439e=!0x0;break;}}if(_0x1d439e)break;}}return _0x53ca9;}['_addSuggestionMarker'](_0x58c28d,_0x29a4d3,_0x271e87,_0x2936fa,_0x4629dd){this['_model']['change'](_0x3eec99=>{let _0x2d2b51='suggestion:'+_0x58c28d+':'+_0x29a4d3+':'+_0x271e87;_0x4629dd&&(_0x2d2b51=_0x2d2b51+':'+_0x4629dd),_0x3eec99['addMarker'](_0x2d2b51,{'range':_0x2936fa,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x624e24){const _0x3f815b=_0x624e24['previous'],_0x273612=_0x624e24['next'];_0x624e24['previous']=null,_0x624e24['next']=null,null!=_0x3f815b&&_0x3f815b['next']==_0x624e24&&(_0x3f815b['next']=_0x273612),null!=_0x273612&&_0x273612['previous']==_0x624e24&&(_0x273612['previous']=_0x3f815b),'ready'==this['_suggestionState']['get'](_0x624e24)&&(this['_suggestionState']['set'](_0x624e24,'removed'),this['fire']('suggestionUnloaded',_0x624e24,_0x3f815b,_0x273612));}['_setSuggestionData'](_0x5ab080){const _0x169369=_0x5ab080['id'],_0x3dc00d=this['addSuggestionData'](_0x5ab080);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x12c35a=this['editor']['plugins']['get']('PendingActions'),_0x2d3c78=_0x3dc00d['hasComments'],_0x483b62=_0x3dc00d['subType']?_0x3dc00d['type']+':'+_0x3dc00d['subType']:_0x3dc00d['type'],_0x3c2077=this['editor']['locale'],_0x5e448f=_0x12c35a['add'](getTranslation$5(_0x3c2077,'PENDING_ACTION_SUGGESTION')),_0x1b2091={'id':_0x169369,'type':_0x483b62,'hasComments':_0x2d3c78,'data':_0x5ab080['data']||null,'originalSuggestionId':_0x5ab080['originalSuggestionId']||null,'attributes':_0x3dc00d['attributes']};this['_adapter']['addSuggestion'](_0x1b2091)['then'](_0x24f3bf=>{_0x3dc00d['_saved']=!0x0,_0x12c35a['remove'](_0x5e448f),_0x24f3bf&&_0x24f3bf['createdAt']&&(this['_suggestions']['get'](_0x169369)['createdAt']=_0x24f3bf['createdAt']);})['catch'](_0x5f38ef=>{throw logWarning('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3dc00d['discard']();}),_0x3dc00d['stopListening'](),this['_suggestions']['delete'](_0x3dc00d['id']),this['_suggestionState']['delete'](_0x3dc00d),_0x5f38ef;});}return _0x3dc00d;}['_updateSuggestionData'](_0x176c0c,_0x58d8b2){const _0x478bd1=this['editor']['plugins']['get']('PendingActions'),_0x39f906=this['getSuggestion'](_0x176c0c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x39f906['_saved']){const _0x1bf865=_0x478bd1['add'](getTranslation$5(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x176c0c,_0x58d8b2)['then'](()=>{_0x478bd1['remove'](_0x1bf865);});}else _0x39f906['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x176c0c,_0x58d8b2);});}}['_getSuggestionData'](_0x392793){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new CKEditorError('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x392793);}['_handleNewSuggestionMarker'](_0x6d275a){const {id:_0x5dfa48,type:_0x45fd27,subType:_0xa9bc1a,authorId:_0x7df62a}=splitSuggestionMarkerName(_0x6d275a),_0x4423cd=this['_suggestions']['get'](_0x5dfa48)||this['_createSuggestion'](_0x45fd27,_0xa9bc1a,_0x5dfa48,_0x7df62a,{});switch(this['_checkSuggestionCorrectness'](_0x4423cd,_0x45fd27,_0xa9bc1a,_0x7df62a),this['_suggestionState']['get'](_0x4423cd)){case'notReady':this['_getSuggestionData'](_0x5dfa48)['then'](_0x287477=>{let _0x401a80=Promise['resolve']();_0x287477['hasComments']&&(_0x401a80=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5dfa48})),_0x401a80['then'](()=>{this['addSuggestionData'](_0x287477)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4423cd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5dfa48,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4423cd,'ready'),this['fire']('suggestionLoaded',_0x4423cd);break;case'ready':this['fire']('suggestionChanged',_0x4423cd);}return _0x4423cd['addMarkerName'](_0x6d275a),_0x4423cd;}['_refreshSuggestionsChain'](_0x32a76a){const _0x17502c=Array['from'](_0x32a76a),_0x2438fe=_0x17502c['filter'](_0x4ad8ba=>'attribute'==_0x4ad8ba['type']);this['_refreshAttributeSuggestionsChain'](_0x2438fe);const _0x4d697e=_0x17502c['filter'](_0x2a1c2c=>!_0x2a1c2c['isMultiRange']&&'attribute'!=_0x2a1c2c['type']),_0xd1d2b4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23f8ad=>!_0x23f8ad['isMultiRange']&&'attribute'!=_0x23f8ad['type']),_0x5cf30d=_0xd1d2b4['filter'](_0x2c4cd9=>!_0x32a76a['has'](_0x2c4cd9)),_0x84a58c=new Map(_0xd1d2b4['map'](_0x3dc102=>[_0x3dc102,this['_suggestionFactory']['getSuggestionCallback'](_0x3dc102['type'],_0x3dc102['subType'],'chain')])),_0x3cecdc=new Map(_0xd1d2b4['map'](_0x5c2175=>[_0x5c2175,_0x5c2175['getFirstRange']()])),_0x35f7c8=new Set(),_0xb0a18a=new Set();for(let _0x1a0caa=0x0;_0x1a0caa<_0x4d697e['length'];_0x1a0caa++)_0x55a63e(_0x4d697e[_0x1a0caa],_0x4d697e,_0x1a0caa+0x1);for(let _0x256624=0x0;_0x256624<_0x4d697e['length'];_0x256624++)_0x55a63e(_0x4d697e[_0x256624],_0x5cf30d,0x0);const _0xcf8ad9=new Set();for(let _0x2f7567=0x0;_0x2f7567<_0x4d697e['length'];_0x2f7567++){const _0x4d45e7=_0x4d697e[_0x2f7567];!_0xb0a18a['has'](_0x4d45e7)&&_0x4d45e7['previous']&&(_0xcf8ad9['add'](_0x4d45e7['previous']),_0x4d45e7['previous']['next']===_0x4d45e7&&(_0x4d45e7['previous']['next']=null),_0x4d45e7['previous']=null),!_0x35f7c8['has'](_0x4d45e7)&&_0x4d45e7['next']&&(_0xcf8ad9['add'](_0x4d45e7['next']),_0x4d45e7['next']['previous']===_0x4d45e7&&(_0x4d45e7['next']['previous']=null),_0x4d45e7['next']=null);}function _0x55a63e(_0x2eb6ef,_0x2ee06a,_0x222529){for(let _0x2c9d23=_0x222529;_0x2c9d23<_0x2ee06a['length'];_0x2c9d23++){const _0x4bb2f0=_0x40d411(_0x2eb6ef,_0x2ee06a[_0x2c9d23]);_0x4bb2f0&&(_0x4bb2f0[0x0]['next']=_0x4bb2f0[0x1],_0x4bb2f0[0x1]['previous']=_0x4bb2f0[0x0],_0x35f7c8['add'](_0x4bb2f0[0x0]),_0xb0a18a['add'](_0x4bb2f0[0x1]));}}function _0x40d411(_0x99fcd0,_0xc6695c){if(_0x99fcd0['author']['id']!==_0xc6695c['author']['id'])return null;const _0x2a9d3f=_0x84a58c['get'](_0x99fcd0)(_0x99fcd0,_0xc6695c,_0x3cecdc['get'](_0x99fcd0),_0x3cecdc['get'](_0xc6695c));if(!_0x2a9d3f)return null;return _0x84a58c['get'](_0xc6695c)(_0x99fcd0,_0xc6695c,_0x3cecdc['get'](_0x99fcd0),_0x3cecdc['get'](_0xc6695c))?_0x2a9d3f[0x1]['commentThread']&&_0x2a9d3f[0x1]['commentThread']['length']?null:_0x2a9d3f:null;}_0xcf8ad9['size']&&this['_refreshSuggestionsChain'](_0xcf8ad9);}['_refreshAttributeSuggestionsChain'](_0x243f5f){if(0x0==_0x243f5f['length'])return;const _0x4581ad=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ac214=>'attribute'==_0x4ac214['type']&&_0x4ac214['_isDataLoaded']),_0x3c79bb=[],_0x68f12c=new Map();for(const _0x2d16a8 of _0x4581ad){const _0xcf967b=hashObject(_0x2d16a8['attributes']);_0x68f12c['has'](_0xcf967b)||(_0x68f12c['set'](_0xcf967b,_0x3c79bb['length']),_0x3c79bb['push']([]));const _0x1692ea=_0x68f12c['get'](_0xcf967b);_0x3c79bb[_0x1692ea]['push'](_0x2d16a8);}!(function(){_0x3c79bb['sort']((_0x23cb55,_0x53a9e4)=>{const _0xe6add4=_0x23cb55[0x0]['createdAt'],_0xdda28b=_0x53a9e4[0x0]['createdAt'];return _0xe6add4==_0xdda28b?_0x23cb55[0x0]['attributes']['groupId']<_0x53a9e4[0x0]['attributes']['groupId']?-0x1:0x1:_0xe6add4<_0xdda28b?-0x1:0x1;});for(const _0x4512f5 of _0x3c79bb)_0x4512f5['sort']((_0x1142f6,_0x41620f)=>_0x1142f6['id']<_0x41620f['id']?-0x1:0x1);}());for(let _0x4ca043=0x0;_0x4ca043<_0x3c79bb['length'];_0x4ca043++){if(0x0==_0x3c79bb[_0x4ca043]['length'])continue;const _0x15d5c0=[];for(let _0x632789=_0x4ca043+0x1;_0x632789<_0x3c79bb['length'];_0x632789++)0x0!=_0x3c79bb[_0x632789]['length']&&_0xf17cad(_0x3c79bb[_0x4ca043],_0x3c79bb[_0x632789])&&_0x15d5c0['push'](_0x632789);for(const _0xc83ea5 of _0x15d5c0)_0x3c79bb[_0x4ca043]=_0x3c79bb[_0x4ca043]['concat'](_0x3c79bb[_0xc83ea5]),_0x3c79bb[_0xc83ea5]=[];}for(const _0x35f462 of _0x3c79bb)for(let _0x15b982=0x0;_0x15b982<_0x35f462['length'];_0x15b982++){const _0x11ab65=_0x35f462[_0x15b982+0x1]||null;_0x35f462[_0x15b982]['next']!==_0x11ab65&&(_0x35f462[_0x15b982]['next']=_0x11ab65);}for(const _0xbd23cb of _0x3c79bb)for(let _0x4832ac=0x0;_0x4832ac<_0xbd23cb['length'];_0x4832ac++){const _0x4cf1b6=_0xbd23cb[_0x4832ac-0x1]||null;_0xbd23cb[_0x4832ac]['previous']!==_0x4cf1b6&&(_0xbd23cb[_0x4832ac]['previous']=_0x4cf1b6);}function _0xf17cad(_0x4008fc,_0x3363d1){if(_0x4008fc[0x0]['attributes']['groupId']!==_0x3363d1[0x0]['attributes']['groupId']&&_0x4008fc[0x0]['author']!==_0x3363d1[0x0]['author'])return!0x1;if(!function(_0x33b8f5,_0x5cfb26){if(!_0x33b8f5['hasComments']&&!_0x5cfb26['hasComments'])return!0x0;if(_0x33b8f5['hasComments']&&_0x5cfb26['hasComments'])return!0x1;if(_0x33b8f5['hasComments']&&_0x5cfb26['createdAt']<_0x33b8f5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5cfb26['hasComments']&&_0x33b8f5['createdAt']<_0x5cfb26['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4008fc[0x0],_0x3363d1[0x0]))return!0x1;if(!isEqual(omit(_0x4008fc[0x0]['attributes'],['groupId','trackingSessionId']),omit(_0x3363d1[0x0]['attributes'],['groupId','trackingSessionId'])))return!0x1;if(_0x4008fc[0x0]['attributes']['groupId']==_0x3363d1[0x0]['attributes']['groupId'])return!0x0;if(_0x4008fc[0x0]['attributes']['trackingSessionId']!==_0x3363d1[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4008fc['every'](_0x5e18d4=>_0x3363d1['some'](_0x28bef6=>_0x5e18d4['getFirstRange']()['isEqual'](_0x28bef6['getFirstRange']())))&&_0x3363d1['every'](_0x4ee400=>_0x4008fc['some'](_0x2e4592=>_0x4ee400['getFirstRange']()['isEqual'](_0x2e4592['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x14d229){const _0x41ec64=Array['from'](_0x14d229),_0x488d49=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1b7397=_0x488d49['filter'](_0x39b6a8=>!_0x14d229['has'](_0x39b6a8)),_0x3ec996=new Map(_0x41ec64['map'](_0x437593=>[_0x437593,this['_suggestionFactory']['getSuggestionCallback'](_0x437593['type'],_0x437593['subType'],'join')])),_0x556be6=new Map(_0x488d49['map'](_0x433773=>[_0x433773,_0x433773['getRanges']()]));for(let _0x26234a=0x0;_0x26234a<_0x41ec64['length'];_0x26234a++){if(_0x1f3352(this,_0x41ec64[_0x26234a],_0x41ec64,_0x26234a+0x1))return!0x0;}for(let _0x487b69=0x0;_0x487b69<_0x41ec64['length'];_0x487b69++){if(_0x1f3352(this,_0x41ec64[_0x487b69],_0x1b7397,0x0))return!0x0;}return!0x1;function _0x1f3352(_0x2bf6e7,_0x5011c4,_0xffb684,_0x41d3d6){for(let _0x1b44f3=_0x41d3d6;_0x1b44f3<_0xffb684['length'];_0x1b44f3++){const _0x35aefd=_0xffb684[_0x1b44f3];if(_0x35aefd['type']!==_0x5011c4['type']||_0x35aefd['author']['id']!==_0x5011c4['author']['id']||_0x35aefd['subType']!==_0x5011c4['subType'])continue;if(!_haveSameAttributes(_0x5011c4,_0x35aefd))continue;if('attribute'==_0x5011c4['type']&&_0x5011c4['data']['oldValue']!=_0x35aefd['data']['oldValue'])continue;if('attribute'==_0x5011c4['type']&&_0x2bf6e7['_suggestionsConversion']['isBlockAttribute'](_0x5011c4['data']['key']))continue;if('formatBlock'==_0x5011c4['type']){const _0x5a3793=_0x2bf6e7['editor']['model'],_0x18428a=_0x5011c4['getContainedElement']();if(_0x18428a&&(_0x5a3793['schema']['isObject'](_0x18428a)||_0x5a3793['schema']['isLimit'](_0x18428a)))continue;}const _0x25743a=_0x3ec996['get'](_0x5011c4),_0x4625af=_0x556be6['get'](_0x5011c4),_0x7dd2bd=_0x556be6['get'](_0x35aefd),_0x4aa3b8=_0x5011c4['commentThread']&&_0x5011c4['commentThread']['length'],_0x4676b6=_0x35aefd['commentThread']&&_0x35aefd['commentThread']['length'];if(!_0x4aa3b8&&_0x25743a(_0x7dd2bd,_0x4625af))return _0x2bf6e7['_joinSuggestions'](_0x35aefd,_0x5011c4),_0x556be6['delete'](_0x5011c4),!0x0;if(!_0x4676b6&&_0x25743a(_0x4625af,_0x7dd2bd))return _0x2bf6e7['_joinSuggestions'](_0x5011c4,_0x35aefd),_0x556be6['delete'](_0x35aefd),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3fbdf9,_0x8df42b){if(_0x3fbdf9['isMultiRange']){for(const _0x43fea3 of _0x8df42b['getRanges']())_0x3fbdf9['addRange'](_0x43fea3);}else{const _0x3a41ae=_0x8df42b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3fbdf9,this['_model']['createRange'](_0x3fbdf9['getFirstRange']()['start'],_0x3a41ae));}_0x8df42b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x251bc3,_0x3e9123,_0x4e16ab){const _0x46ed57=_0x251bc3['startsWith']('format')||_0x251bc3['startsWith']('attribute')?'FORMATTING':_0x251bc3['toUpperCase']();return getTranslation$5(this['editor']['locale'],_0x3e9123+'_'+_0x46ed57+'_SUGGESTION_ANNOUNCEMENT',_0x4e16ab);}['_initAriaMarkerChangeAnnouncements'](){const _0x39fd7d=this['editor'];if(!_0x39fd7d['ui'])return;const {ariaLiveAnnouncer:_0x418229}=_0x39fd7d['ui'];surroundingMarkersDetector(this['_model'],({left:_0x5ded9b,entered:_0x14e3af})=>{for(const _0x3b712c of _0x5ded9b){const {group:_0x50275f,type:_0xafed7b}=splitSuggestionMarkerName(_0x3b712c['name']);if('suggestion'===_0x50275f){_0x418229['announce'](this['_getMarkerAnnouncementText'](_0xafed7b,'LEAVE'));break;}}for(const _0x1cc140 of _0x14e3af){const {group:_0x3eee09,type:_0x20edd8}=splitSuggestionMarkerName(_0x1cc140['name']);if('suggestion'===_0x3eee09){_0x418229['announce'](this['_getMarkerAnnouncementText'](_0x20edd8,'ENTER',getEnvKeystrokeText(FOCUS_ANNOTATION_KEYSTROKE)));break;}}});}['_processAttributeChanges'](_0x4e5a74){if(this['_recordAttributeSuggestions'])return!0x1;const _0x26271a=this['editor'],_0x323aa6=_0x26271a['model']['document']['differ']['getChanges']();if(0x0==_0x323aa6['length'])return!0x1;const _0x2bff95=[],_0x5ec733=_0x323aa6['filter'](_0x1dcedc=>'attribute'==_0x1dcedc['type']),_0x5e29cd=_0x323aa6['filter'](_0x2f811a=>'insert'==_0x2f811a['type']&&'$text'!=_0x2f811a['name']),_0x439433=_0x323aa6['filter'](_0x234e95=>'remove'==_0x234e95['type']&&'$text'!=_0x234e95['name']);for(const _0x5921e4 of _0x5ec733)_0x2bff95['push']({'key':_0x5921e4['attributeKey'],'newValue':_0x5921e4['attributeNewValue'],'oldValue':_0x5921e4['attributeOldValue'],'range':fixAttributeSuggestionRange(_0x5921e4['range'],_0x26271a['model'])});for(const _0x4c4911 of _0x5e29cd){const _0x5b19cc=_0x439433['find'](_0x22cf46=>_0x22cf46['position']['isEqual'](_0x4c4911['position']));_0x5b19cc&&_0x2bff95['push']({'key':renameAttributeKey,'newValue':_0x4c4911['name'],'oldValue':_0x5b19cc['name'],'range':_0x26271a['model']['createRangeOn'](_0x4c4911['position']['nodeAfter'])});}return 0x0!=_0x2bff95['length']&&this['_reduceExistingSuggestions'](_0x4e5a74,_0x2bff95);}['_processAttributeSuggestions'](_0x1099b7){let _0x393711=!0x1;const _0x4028fd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x58368b=>_0x58368b['data']['newRange']&&_0x58368b['name']['startsWith']('suggestion:attribute:'));for(const _0x4a1b5d of _0x4028fd){const {subType:_0x19e324,id:_0x44b18a}=splitSuggestionMarkerName(_0x4a1b5d['name']),_0x334143=_0x19e324['split']('|')[0x0];for(const _0xbfaf65 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xbfaf65['id']!=_0x44b18a&&'attribute'==_0xbfaf65['type']&&_0xbfaf65['data']&&_0xbfaf65['data']['key']==_0x334143&&_0xbfaf65['getFirstRange']()['isIntersecting'](_0x4a1b5d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xbfaf65,_0x4a1b5d['data']['newRange'],_0x1099b7),_0x393711=!0x0);}return _0x393711;}['recordAttributeChanges'](_0x592391){this['_recordAttributeSuggestions']=!0x0,_0x592391();}['_reduceExistingSuggestions'](_0x531aa1,_0x828cee){if(0x0==_0x828cee['length'])return!0x1;let _0x4bc28c=!0x1;for(const _0x370266 of _0x828cee){const _0x43c0b2=this['_findSuggestions'](_0x370266['range'],'attribute')['filter'](_0x2c8e75=>!_0x2c8e75['meta']['isNextTo'])['map'](_0x155da6=>_0x155da6['suggestion']),_0x895597=hashObject({'newValue':_0x370266['newValue']});_0x43c0b2['filter'](_0x18ed0e=>{const [_0xd30095,_0x32e86f]=_0x18ed0e['subType']['split']('|');return _0xd30095==_0x370266['key']&&_0x32e86f!=_0x895597;})['forEach'](_0x2bad61=>{this['_reduceSuggestionAttributeRange'](_0x2bad61,_0x370266['range'],_0x531aa1),_0x4bc28c=!0x0;});}return _0x4bc28c;}['_reduceSuggestionAttributeRange'](_0x18e928,_0x93072a,_0x54491a){const _0x4dfd8e=_0x18e928['getFirstRange']()['getDifference'](_0x93072a);0x0!==_0x4dfd8e['length']?0x1!==_0x4dfd8e['length']?this['_breakSuggestionMarker'](_0x18e928,_0x93072a['start'],_0x93072a['end']):this['_setSuggestionRange'](_0x18e928,_0x4dfd8e[0x0]):_0x54491a['removeMarker'](_0x18e928['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1f030f){this['_editor']=_0x1f030f,this['_model']=_0x1f030f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2a3f9f,_0x5979ad,_0x1a10b0,_0x482709,_0x2a581c,_0x2ecf38,_0x3bf492){return new Suggestion(this['_model'],{'type':_0x2a3f9f,'subType':_0x5979ad,'id':_0x1a10b0,'originalSuggestionId':_0x3bf492,'author':_0x482709,'creator':_0x482709,'attributes':_0x2a581c,'onAttributesChange':_0x2ecf38,'onAccept':(..._0x5610ba)=>this['getSuggestionCallback'](_0x2a3f9f,_0x5979ad,'accept')(..._0x5610ba),'onDiscard':(..._0x2d7762)=>this['getSuggestionCallback'](_0x2a3f9f,_0x5979ad,'discard')(..._0x2d7762)});}['registerCustomCallback'](_0x28170d,_0x4f605e,_0x11f37a,_0x42396c){const _0x121c01=_0x28170d+':'+_0x4f605e+':'+_0x11f37a;this['_customCallbacks']['set'](_0x121c01,_0x42396c);}['getSuggestionCallback'](_0x3b822b,_0x3e248f,_0x58bf09){const _0x4f8b17=_0x3b822b+':'+_0x3e248f+':'+_0x58bf09;return this['_customCallbacks']['get'](_0x4f8b17)||this['_defaultCallbacks']['get'](_0x3b822b+':'+_0x58bf09);}['_registerDefaultCallbacks'](){const _0x30fc33=()=>!0x1,_0x3ecc29=_0x2df9db=>{_0x2df9db['sort']((_0x329644,_0x54989a)=>_0x329644['start']['isBefore'](_0x54989a['start'])?0x1:-0x1),this['_model']['change'](_0x797799=>{for(const _0x962450 of _0x2df9db){let _0x316630;_0x316630=_0x962450['end']['isAtEnd']&&_0x962450['end']['parent']==_0x962450['start']['nodeAfter']?_0x797799['createSelection'](_0x962450['start']['nodeAfter'],'on'):_0x797799['createSelection'](_0x962450),this['_model']['deleteContent'](_0x316630,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x42dc39=(_0x18fbe0,_0x2e9bce)=>{_0x2e9bce&&this['_model']['change'](_0x56ffbd=>{const {commandName:_0xaac9b2,commandParams:_0x12d09e=[]}=_0x2e9bce,_0x173ec7=_0x18fbe0['map'](_0x3607a4=>(rangeOnOpeningTag(_0x3607a4)&&(_0x3607a4=this['_model']['createRange'](_0x3607a4['end'])),_0x3607a4))['filter'](_0x363ea6=>'$graveyard'!==_0x363ea6['root']['rootName']);if(_0x173ec7['length']<0x1)return;const _0x5624c0=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2f0f56=>ModelLiveRange['fromRange'](_0x2f0f56));_0x56ffbd['setSelection'](_0x173ec7);for(const _0x576185 of this['_editor']['commands']['commands']())_0x576185['refresh']();_0x12d09e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xaac9b2,..._0x12d09e);const _0x4169db=_0x5624c0['filter'](_0x29d3c0=>'$graveyard'!=_0x29d3c0['root']['rootName']);_0x4169db['length']>0x0&&_0x56ffbd['setSelection'](_0x4169db);for(const _0xb8487e of _0x5624c0)_0xb8487e['detach']();});},_0x2edd4c=(_0x269b9b,_0x148ddf)=>0x1==_0x269b9b['length']&&0x1==_0x148ddf['length']&&_0x269b9b[0x0]['end']['isEqual'](_0x148ddf[0x0]['start']),_0x4fbc6b=(_0x1fda9d,_0x6d03a2,_0x2f6485,_0x341862)=>canChainSuggestions(_0x1fda9d,_0x6d03a2,_0x2f6485,_0x341862)?[_0x1fda9d,_0x6d03a2]:canChainSuggestions(_0x6d03a2,_0x1fda9d,_0x341862,_0x2f6485)?[_0x6d03a2,_0x1fda9d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x30fc33),this['_defaultCallbacks']['set']('insertion:discard',_0x3ecc29),this['_defaultCallbacks']['set']('insertion:join',_0x2edd4c),this['_defaultCallbacks']['set']('insertion:chain',_0x4fbc6b),this['_defaultCallbacks']['set']('deletion:accept',_0x3ecc29),this['_defaultCallbacks']['set']('deletion:discard',_0x30fc33),this['_defaultCallbacks']['set']('deletion:join',_0x2edd4c),this['_defaultCallbacks']['set']('deletion:chain',_0x4fbc6b),this['_defaultCallbacks']['set']('formatInline:accept',_0x42dc39),this['_defaultCallbacks']['set']('formatInline:discard',_0x30fc33),this['_defaultCallbacks']['set']('formatInline:join',_0x2edd4c),this['_defaultCallbacks']['set']('formatInline:chain',_0x30fc33),this['_defaultCallbacks']['set']('formatBlock:accept',_0x42dc39),this['_defaultCallbacks']['set']('formatBlock:discard',_0x30fc33),this['_defaultCallbacks']['set']('formatBlock:join',_0x2edd4c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x30fc33),this['_defaultCallbacks']['set']('attribute:accept',_0x30fc33),this['_defaultCallbacks']['set']('attribute:discard',(_0x30a05b,_0x5141b4)=>{if(!_0x5141b4)return;const _0x25e5a7=this['_editor']['plugins']['get'](SuggestionsConversion);this['_model']['change'](_0x458a01=>{if(_0x5141b4['key']==renameAttributeKey)for(const _0x15567d of _0x30a05b){const _0xd695fe=_0x15567d['start']['nodeAfter'],_0xb613b2=_0x5141b4['oldValue'];_0x458a01['rename'](_0xd695fe,_0xb613b2);}else{if(_0x25e5a7['isBlockAttribute'](_0x5141b4['key'])){for(const _0x477b14 of _0x30a05b)void 0x0!==_0x5141b4['oldValue']?_0x458a01['setAttribute'](_0x5141b4['key'],_0x5141b4['oldValue'],_0x477b14['start']['nodeAfter']):_0x458a01['removeAttribute'](_0x5141b4['key'],_0x477b14['start']['nodeAfter']);}else{for(const _0xcdfdb2 of _0x30a05b)_0x5141b4['oldValue']?_0x458a01['setAttribute'](_0x5141b4['key'],_0x5141b4['oldValue'],_0xcdfdb2):_0x458a01['removeAttribute'](_0x5141b4['key'],_0xcdfdb2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2edd4c);}}function getIntersectionsWithMultipleRanges(_0x2b221c,_0x1ab91f){const _0x28b891=[];for(const _0x40940e of _0x1ab91f){const _0x3cd9b5=_0x2b221c['getIntersection'](_0x40940e);_0x3cd9b5&&_0x28b891['push'](_0x3cd9b5);}return _0x28b891;}function getDifferencesWithMultipleRanges(_0x57bbbb,_0x585457){const _0x1b9ce2=[_0x57bbbb];for(const _0x5e5bb1 of _0x585457){let _0x1d20e4=0x0;for(;_0x1d20e4<_0x1b9ce2['length'];){const _0x2fdf8c=_0x1b9ce2[_0x1d20e4]['getDifference'](_0x5e5bb1);_0x1b9ce2['splice'](_0x1d20e4,0x1,..._0x2fdf8c),_0x1d20e4+=_0x2fdf8c['length'];}}return _0x1b9ce2;}function _isInObject(_0x257617,_0x4ee474,_0x3eb50e){for(const _0xd7ed10 of _0x4ee474['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xd7ed10['root']==_0xd7ed10)return!0x1;if(!_0x3eb50e['containsItem'](_0xd7ed10))return!0x1;if(_0x257617['isObject'](_0xd7ed10)||_0x257617['isLimit'](_0xd7ed10))return!0x0;}return!0x1;}function rangeOnOpeningTag(_0x28ca24){return _0x28ca24['end']['parent']==_0x28ca24['start']['nodeAfter']&&_0x28ca24['end']['isAtStart'];}function rangeOnClosingTag(_0x5700c3){return _0x5700c3['start']['parent']==_0x5700c3['end']['nodeBefore']&&_0x5700c3['start']['isAtEnd'];}function trimFormatInlineSuggestionRange(_0x4045ab,_0x15e548,_0x3f4bb3,_0x3dd2b5){const _0x2c3598=_0x30becf=>!_0x30becf['item']['is']('$textProxy')&&!_0x3dd2b5['isObject'](_0x30becf['item']),_0x3a2c09=_0x4045ab['start']['getLastMatchingPosition'](_0x2c3598),_0x2ca399=_0x4045ab['end']['getLastMatchingPosition'](_0x2c3598,{'direction':'backward'});return(!_0x4045ab['start']['isEqual'](_0x3a2c09)||!_0x4045ab['end']['isEqual'](_0x2ca399))&&(_0x3a2c09['isBefore'](_0x2ca399)?_0x3f4bb3['updateMarker'](_0x15e548,{'range':_0x3f4bb3['createRange'](_0x3a2c09,_0x2ca399)}):_0x3f4bb3['removeMarker'](_0x15e548),!0x0);}function createFormatSubType(_0x2caae8){return hashObject(_0x2caae8);}function isCorrectFormatBlockSuggestionRange(_0x7b4b01){const _0x5af73b=_0x7b4b01['start']['nodeAfter'];return _0x5af73b&&_0x5af73b['is']('element');}function isEmptyRange(_0x45a7fe){return rangeOnOpeningTag(_0x45a7fe)||rangeOnClosingTag(_0x45a7fe);}function isIntersectingWithOtherMarkers(_0x30f5ae,_0x38c099){try{const _0x5c45fe=_0x30f5ae['getRange']();for(const _0x19e0ee of _0x38c099)if(_0x30f5ae!==_0x19e0ee&&_0x5c45fe&&_0x5c45fe['isIntersecting'](_0x19e0ee['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function fixAttributeSuggestionRange(_0x44d0b7,_0x23d877){return null==_0x44d0b7['end']['nodeBefore']&&_0x44d0b7['end']['parent']==_0x44d0b7['start']['nodeAfter']?createBlockFormatRangeForElement(_0x44d0b7['start']['nodeAfter'],_0x23d877):_0x44d0b7;}function createBlockFormatRangeForElement(_0x5d3d7d,_0x3bdc17){const _0x24e1f3=_0x3bdc17['schema']['isObject'](_0x5d3d7d)||_0x3bdc17['schema']['isSelectable'](_0x5d3d7d);return _0x3bdc17['createRange'](_0x3bdc17['createPositionAt'](_0x5d3d7d,'before'),_0x24e1f3?_0x3bdc17['createPositionAfter'](_0x5d3d7d):_0x3bdc17['createPositionAt'](_0x5d3d7d,'end'));}function canChainSuggestions(_0x9fa6e6,_0x3b2393,_0x25cf9c,_0x1fd52f){return!!_haveSameAttributes(_0x9fa6e6,_0x3b2393)&&_0x25cf9c['end']['isEqual'](_0x1fd52f['start']);}function _haveSameAttributes(_0x56384f,_0x452522){if(!_0x56384f['_isDataLoaded']||!_0x452522['_isDataLoaded'])return!0x1;const _0x12f3ff=new Set(Object['keys'](_0x56384f['attributes'])),_0x10696a=new Set(Object['keys'](_0x452522['attributes']));if(_0x12f3ff['delete']('groupId'),_0x10696a['delete']('groupId'),0x0==_0x12f3ff['size']&&0x0==_0x10696a['size'])return!0x0;if(_0x12f3ff['size']!=_0x10696a['size'])return!0x1;const _0x386b33={..._0x56384f['attributes']},_0x494eab={..._0x452522['attributes']};return delete _0x386b33['groupId'],delete _0x494eab['groupId'],JSON['stringify'](_0x386b33)==JSON['stringify'](_0x494eab);}function _areSimilarAttributes(_0x42d04a,_0x5e1b20){const _0x49cbef=_cleanUpAttributes(_0x42d04a['attributes']),_0x4387dd=_cleanUpAttributes(_0x5e1b20);if(!_0x42d04a['_isDataLoaded'])return!0x1;for(const _0x1dc4fd of Object['keys'](_0x4387dd))if(!isEqual(_0x49cbef[_0x1dc4fd],_0x4387dd[_0x1dc4fd]))return!0x1;return!0x0;}function _cleanUpAttributes(_0x4b7e7a){const _0x324f9e=Object['assign']({},_0x4b7e7a);return delete _0x324f9e['skipNestingCheck'],delete _0x324f9e['tablePasteChainId'],_0x324f9e;}function _getAttributeKeyFromSubType(_0xf38ed3){return _0xf38ed3['split']('|')[0x0];}async function checkLicense$5(_0x666077){const _0x2c0ce3=_0x76e169([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]),_0x11c715=window[_0x76e169([0x44,0x61,0x74,0x65])][_0x76e169([0x6e,0x6f,0x77])](),_0x2eb9e3=_0x666077[_0x76e169([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2cb82e=new window[(_0x76e169([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45b599=>{_0x2eb9e3[_0x76e169([0x6f,0x6e,0x63,0x65])](_0x76e169([0x72,0x65,0x61,0x64,0x79]),_0x45b599);}),_0x3ea406={[_0x76e169([0x6b,0x74,0x79])]:_0x76e169([0x45,0x43]),[_0x76e169([0x75,0x73,0x65])]:_0x76e169([0x73,0x69,0x67]),[_0x76e169([0x63,0x72,0x76])]:_0x76e169([0x50,0x2d,0x32,0x35,0x36]),[_0x76e169([0x78])]:_0x76e169([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]),[_0x76e169([0x79])]:_0x76e169([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]),[_0x76e169([0x61,0x6c,0x67])]:_0x76e169([0x45,0x53,0x32,0x35,0x36])},_0x5aed32=_0x2eb9e3[_0x76e169([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x76e169([0x67,0x65,0x74])](_0x76e169([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x3bcc09=await(async function(){let _0x513817,_0x9c960a=null,_0x5a65a8=null;try{if(_0x5aed32==_0x76e169([0x47,0x50,0x4c]))return _0x76e169([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x513817=(function(){const _0x36a142=_0x5aed32[_0x76e169([0x73,0x70,0x6c,0x69,0x74])](_0x76e169([0x2e]));if(0x3!=_0x36a142[_0x76e169([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x7d6e72=_0x36a142[0x1];return _0x2cd0cc(_0x7d6e72);function _0x2cd0cc(_0x4c6032){const _0x3bd3ad=_0x543d09(_0x4c6032);return _0x3bd3ad&&_0x9d86f8()?_0x3bd3ad:null;function _0x9d86f8(){const _0x3c1037=_0x3bd3ad[_0x76e169([0x6a,0x74,0x69])],_0x1f0bb4=window[_0x76e169([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c1037[_0x76e169([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c1037[_0x76e169([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x566d7c={..._0x3bd3ad,[_0x76e169([0x6a,0x74,0x69])]:_0x3c1037[_0x76e169([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c1037[_0x76e169([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x566d7c[_0x76e169([0x76,0x63])],_0x1c90f0(_0x566d7c)==_0x1f0bb4;}}}()),!_0x513817)return _0x76e169([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x513817[_0x76e169([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a65a8=function(_0x27a33e,_0x10d23c){return new window[(_0x76e169([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5df240=>{if(_0x217368())return _0x5df240(_0x76e169([0x56,0x61,0x6c,0x69,0x64]));_0x51d287(),_0x2eb9e3[_0x76e169([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x76e169([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f8238=!0x1;const _0x2caa94=uid();function _0x2d5bce(_0x4a51d4){return!!_0x4a51d4&&(typeof _0x4a51d4===_0x76e169([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a51d4===_0x76e169([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a51d4[_0x76e169([0x74,0x68,0x65,0x6e])]===_0x76e169([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a51d4[_0x76e169([0x63,0x61,0x74,0x63,0x68])]===_0x76e169([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x750aa8(_0x4dc0cd){_0xdd0493(_0x4dc0cd)[_0x76e169([0x74,0x68,0x65,0x6e])](_0x250958=>{if(!_0x250958||_0x250958[_0x76e169([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x76e169([0x6f,0x6b]))return _0x76e169([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x13551e(_0x1c90f0(_0x2caa94+_0x10d23c))!=_0x250958[_0x76e169([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x76e169([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x76e169([0x56,0x61,0x6c,0x69,0x64]);})[_0x76e169([0x74,0x68,0x65,0x6e])](_0x5763a9=>(_0x52a2a2(),_0x5763a9),()=>{const _0x1f0244=_0x1bc82e();return null==_0x1f0244?(_0x52a2a2(),_0x76e169([0x56,0x61,0x6c,0x69,0x64])):_0x76e169(_0x11c715-_0x1f0244>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x76e169([0x74,0x68,0x65,0x6e])](_0x5df240)[_0x76e169([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5df240(_0x76e169([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35efe6=0x36ee80;function _0x52a2a2(){const _0x408236=_0x76e169([0x6c,0x6c,0x63,0x74,0x2d])+_0x13551e(_0x1c90f0(_0x27a33e)),_0x4bf00d=_0x35829a(_0x13551e(window[_0x76e169([0x4d,0x61,0x74,0x68])][_0x76e169([0x63,0x65,0x69,0x6c])](_0x11c715/_0x35efe6)));window[_0x76e169([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x76e169([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x408236,_0x4bf00d);}function _0x1bc82e(){const _0x5577df=_0x76e169([0x6c,0x6c,0x63,0x74,0x2d])+_0x13551e(_0x1c90f0(_0x27a33e)),_0x4364fb=window[_0x76e169([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x76e169([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5577df);return _0x4364fb?window[_0x76e169([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35829a(_0x4364fb),0x10)*_0x35efe6:null;}function _0xdd0493(_0x455c6f){return new window[(_0x76e169([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ea1d8,_0x24bcd5)=>{_0x455c6f[_0x76e169([0x74,0x68,0x65,0x6e])](_0x1ea1d8,_0x24bcd5),window[_0x76e169([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24bcd5,0x1d4c0);});}}_0x2eb9e3[_0x76e169([0x6f,0x6e])](_0x76e169([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e88d8,_0x151abe)=>{if(_0x151abe[0x0]!=_0x27a33e)return _0x5df240(_0x76e169([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x151abe[0x1]={..._0x151abe[0x1],[_0x76e169([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2caa94};},{[_0x76e169([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x76e169([0x68,0x69,0x67,0x68])}),_0x2eb9e3[_0x76e169([0x6f,0x6e])](_0x76e169([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4afcd4=>{_0x2d5bce(_0x4afcd4[_0x76e169([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f8238=!0x0,_0x750aa8(_0x4afcd4[_0x76e169([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x76e169([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x76e169([0x6c,0x6f,0x77])}),_0x2cb82e[_0x76e169([0x74,0x68,0x65,0x6e])](()=>{_0x2f8238||_0x5df240(_0x76e169([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x217368(){return _0x2eb9e3[_0x76e169([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x76e169([0x76,0x69,0x65,0x77])][_0x76e169([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x76e169([0x61,0x75,0x74,0x6f]);}function _0x51d287(){_0x2eb9e3[_0x76e169([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x76e169([0x76,0x69,0x65,0x77])][_0x76e169([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x76e169([0x61,0x75,0x74,0x6f]);}}(_0x513817[_0x76e169([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x513817[_0x76e169([0x6a,0x74,0x69])]));const _0x57334a=await(async function(){let _0x52de2b=!0x0;try{const _0x145c9f=_0x5aed32[_0x76e169([0x73,0x70,0x6c,0x69,0x74])](_0x76e169([0x2e])),[_0x2dba0b,_0x37b9cb,_0x29a558]=_0x145c9f;return _0x3c2532(_0x2dba0b),await _0x1e7019(_0x2dba0b,_0x37b9cb,_0x29a558),_0x52de2b;}catch{return!0x1;}function _0x3c2532(_0x15ddc1){const _0x26c264=_0x543d09(_0x15ddc1);_0x26c264&&_0x26c264[_0x76e169([0x61,0x6c,0x67])]==_0x76e169([0x45,0x53,0x32,0x35,0x36])||(_0x52de2b=!0x1);}async function _0x1e7019(_0x1cbdfe,_0x407996,_0x94d34a){const _0x44af8e=window[_0x76e169([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x76e169([0x66,0x72,0x6f,0x6d])](_0x2228cc(_0x94d34a),_0x35341f=>_0x35341f[_0x76e169([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x46cb45=new window[(_0x76e169([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x76e169([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1cbdfe+_0x76e169([0x2e])+_0x407996),_0xa38ce3=window[_0x76e169([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x76e169([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xa38ce3)return;const _0x32179f=await _0xa38ce3[_0x76e169([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x76e169([0x6a,0x77,0x6b]),_0x3ea406,{[_0x76e169([0x6e,0x61,0x6d,0x65])]:_0x76e169([0x45,0x43,0x44,0x53,0x41]),[_0x76e169([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x76e169([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x76e169([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xa38ce3[_0x76e169([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x76e169([0x6e,0x61,0x6d,0x65])]:_0x76e169([0x45,0x43,0x44,0x53,0x41]),[_0x76e169([0x68,0x61,0x73,0x68])]:{[_0x76e169([0x6e,0x61,0x6d,0x65])]:_0x76e169([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32179f,_0x44af8e,_0x46cb45)||(_0x52de2b=!0x1);}}());return _0x57334a?(function(){const _0x3f8fe6=_0x513817[_0x76e169([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3f8fe6)return!0x1;if(_0x3f8fe6[_0x76e169([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76e169([0x2a])))return!0x0;if(_0x3f8fe6[_0x76e169([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76e169([0x54,0x43])))return!0x0;if(_0x3f8fe6[_0x76e169([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76e169([0x52,0x54,0x43]))){if(_0x19b6e2(_0x76e169([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&(_0x16d823=_0x76e169([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]),_0x2eb9e3[_0x76e169([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x76e169([0x67,0x65,0x74])](_0x16d823))[_0x76e169([0x73,0x74,0x61,0x74,0x65])]==_0x76e169([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x19b6e2(_0x76e169([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]))||_0x19b6e2(_0x76e169([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 _0x16d823;return!0x1;}())?(function(){const _0x585e27=[_0x76e169([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x76e169([0x74,0x72,0x69,0x61,0x6c])][_0x76e169([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x513817[_0x76e169([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11c715/0x3e8:0x69cb0e80;return _0x513817[_0x76e169([0x65,0x78,0x70])]<_0x585e27;}())?_0x76e169([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x49d111=_0x513817[_0x76e169([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x49d111||0x0==_0x49d111[_0x76e169([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x220d2e}=new URL(window[_0x76e169([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x49d111[_0x76e169([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x220d2e))return!0x0;const _0x13633f=_0x220d2e[_0x76e169([0x73,0x70,0x6c,0x69,0x74])](_0x76e169([0x2e]));return _0x49d111[_0x76e169([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e615c=>_0x3e615c[_0x76e169([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76e169([0x2a])))[_0x76e169([0x6d,0x61,0x70])](_0x43bde7=>_0x43bde7[_0x76e169([0x73,0x70,0x6c,0x69,0x74])](_0x76e169([0x2e])))[_0x76e169([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b9749=>_0x1b9749[_0x76e169([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x13633f[_0x76e169([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x76e169([0x6d,0x61,0x70])](_0x712876=>Array(_0x13633f[_0x76e169([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x712876[_0x76e169([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x76e169([0x66,0x69,0x6c,0x6c])](_0x712876[0x0]===_0x76e169([0x2a])?_0x76e169([0x2a]):'')[_0x76e169([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x712876))[_0x76e169([0x73,0x6f,0x6d,0x65])](_0x33bd5b=>_0x13633f[_0x76e169([0x65,0x76,0x65,0x72,0x79])]((_0x59353d,_0x445ed5)=>_0x33bd5b[_0x445ed5]===_0x59353d||_0x33bd5b[_0x445ed5]===_0x76e169([0x2a])));}())?(_0x513817[_0x76e169([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x76e169([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9c960a=function(_0x84c834){const _0x5689db=new window[(_0x76e169([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30b07a=>setTimeout(_0x30b07a,0x93ecc)),_0x24cb30=_0x2cb82e[_0x76e169([0x74,0x68,0x65,0x6e])](()=>new window[(_0x76e169([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x451d8d=>{let _0x529c2a=0x0;_0x2eb9e3[_0x76e169([0x6d,0x6f,0x64,0x65,0x6c])][_0x76e169([0x6f,0x6e])](_0x76e169([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x48f33b,_0xd3215f)=>{_0xd3215f[0x0][_0x76e169([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x529c2a++,0x5e8==_0x529c2a&&(_0x451d8d(),_0x48f33b[_0x76e169([0x6f,0x66,0x66])]());});})),_0x25a054=[_0x5689db,_0x24cb30];return window[_0x76e169([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x76e169([0x72,0x61,0x63,0x65])](_0x25a054)[_0x76e169([0x74,0x68,0x65,0x6e])](()=>_0x84c834);}(_0x76e169([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x9c960a&&_0x5a65a8)return new window[(_0x76e169([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e6ba6,_0x549427)=>{_0x9c960a[_0x76e169([0x74,0x68,0x65,0x6e])](_0x5e6ba6,_0x549427),_0x5a65a8[_0x76e169([0x74,0x68,0x65,0x6e])](_0x386b74=>{_0x386b74!=_0x76e169([0x56,0x61,0x6c,0x69,0x64])&&_0x5e6ba6(_0x386b74);},_0x549427);});return _0x9c960a||_0x5a65a8||_0x76e169([0x56,0x61,0x6c,0x69,0x64]);}())):_0x76e169([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x76e169([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x76e169([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x76e169([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x543d09(_0x35ce5d){return _0x35ce5d[_0x76e169([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x76e169([0x65,0x79]))?JSON[_0x76e169([0x70,0x61,0x72,0x73,0x65])](_0x2228cc(_0x35ce5d)):null;}function _0x2228cc(_0x416587){return window[_0x76e169([0x61,0x74,0x6f,0x62])](_0x416587[_0x76e169([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x76e169([0x2b]))[_0x76e169([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x76e169([0x2f])));}function _0x1c90f0(_0x55a4cf){let _0x2d78ae=0x1505;function _0x85c2da(_0xffc85a){for(let _0x1d8851=0x0;_0x1d8851<_0xffc85a[_0x76e169([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d8851++){const _0x2f5ccc=_0xffc85a[_0x76e169([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d8851);_0x2d78ae=(_0x2d78ae<<0x5)+_0x2d78ae+_0x2f5ccc,_0x2d78ae&=_0x2d78ae;}}return function _0x5aa97c(_0xb1195f){Array[_0x76e169([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb1195f)?_0xb1195f[_0x76e169([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5aa97c):_0xb1195f&&typeof _0xb1195f==_0x76e169([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x76e169([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb1195f)[_0x76e169([0x73,0x6f,0x72,0x74])]()[_0x76e169([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c0deb,_0x38cd55])=>{_0x85c2da(_0x3c0deb),_0x5aa97c(_0x38cd55);}):_0x85c2da(window[_0x76e169([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb1195f));}(_0x55a4cf),_0x2d78ae>>>0x0;}function _0x13551e(_0xd874fd){return _0xd874fd[_0x76e169([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x76e169([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x76e169([0x30]));}function _0x35829a(_0x3d0b9c){return _0x3d0b9c[_0x76e169([0x73,0x70,0x6c,0x69,0x74])]('')[_0x76e169([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x76e169([0x6a,0x6f,0x69,0x6e])]('');}function _0x19b6e2(_0x45d481){return _0x2eb9e3[_0x76e169([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x76e169([0x68,0x61,0x73])](_0x45d481);}function _0x452533(){}function _0x76e169(_0x5e3d2a){return _0x5e3d2a['map'](_0x570dc1=>String['fromCharCode'](_0x570dc1))['join']('');}!function(_0xd35368){const _0x2aff2f=(function(){const _0x5a88e4=window[_0x76e169([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x76e169([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x76e169([0x6e,0x6f,0x77])]())[_0x76e169([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x76e169([0x2e]),'');let _0x304e4d=_0x76e169([0x52]);for(let _0x1e0439=0x0;_0x1e0439<_0x5a88e4[_0x76e169([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e0439+=0x2){let _0x54c687=window[_0x76e169([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a88e4[_0x76e169([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e0439,_0x1e0439+0x2));_0x54c687>=_0x2c0ce3[_0x76e169([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54c687-=_0x2c0ce3[_0x76e169([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x304e4d+=_0x2c0ce3[_0x54c687];}return _0x304e4d;}());_0x2eb9e3[_0x2aff2f]=_0x76e169([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xd35368,_0xd35368!=_0x76e169([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x2cb82e,_0x2eb9e3[_0x76e169([0x6d,0x6f,0x64,0x65,0x6c])][_0x76e169([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x452533,_0x2eb9e3[_0x76e169([0x6d,0x6f,0x64,0x65,0x6c])][_0x76e169([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x452533,_0x2eb9e3[_0x76e169([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x76e169([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x3bcc09);}class SuggestionController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x489ac8,_0x37aac8,_0x19af1e,_0x43c14d){super(),this['model']=_0x37aac8,this['view']=_0x19af1e,this['commentThreadController']=_0x43c14d,this['_editor']=_0x489ac8,this['_acceptCommand']=_0x489ac8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x489ac8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2e9e18,_0x374d0f)=>_0x2e9e18||_0x374d0f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x8cfe90=>_0x8cfe90&&this['_editor']['model']['canEditAt'](_0x37aac8['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4abb85=>_0x4abb85&&this['_editor']['model']['canEditAt'](_0x37aac8['getRanges']())),this['_pendingAction']=null,_0x19af1e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x19af1e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x19af1e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x19af1e,'change:isDirty',()=>{_0x19af1e['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 _0x275e4b=getTranslation$5(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x275e4b);}['_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(_0x2c9d42,_0x487528,_0x1601c7,_0x6f177e){super(_0x2c9d42),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new AriaDescriptionView(_0x2c9d42,getTranslation$5(_0x2c9d42,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x487528['authoredAt']),this['bind']('authoredAt')['to'](_0x487528),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',_0x487528,'authoredAt',this,'descriptionParts',(_0x5ca7cd,_0x3b53ce,_0x474e3a)=>{const _0x21da4c=_0x474e3a['map'](_0x574168=>renderDescription(_0x574168['content']))['join']('.\x20')+'.';return getTranslation$5(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5ca7cd-0x1,_0x487528['author']['name'],_0x3b53ce?_0x6f177e['formatDateTime'](_0x3b53ce):'',new DOMParser()['parseFromString'](_0x21da4c,'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':_0x2bad62=>_0x2bad62['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x487528,this['_localUser']=_0x1601c7,this['_config']=_0x6f177e,_0x6f177e['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:_0x680292}=this['_config'];this['commentsListView']=new _0x680292(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',_0x25b2ea=>_0x25b2ea+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4840bc,_0x49d410)=>_0x4840bc||!!_0x49d410);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x207051}=this['_config'],_0x4176dc=new _0x207051(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2fe603=_0x4176dc['commentInputView'];return _0x4176dc['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2fe603,'value',(_0x3cdd61,_0x2a9c68,_0x1c9f1a)=>!!_0x1c9f1a||_0x3cdd61&&!_0x2a9c68),_0x2fe603['on']('submit',(_0xe1c83a,_0x27c91f)=>{this['fire']('addComment',_0x27c91f),_0x2fe603['editor']['setData']('');}),_0x2fe603['on']('cancel',()=>this['focus']()),_0x2fe603['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4176dc;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x9db5e1,_0x1796ad,_0x4fceb4,_0x2c6aff){super(_0x9db5e1,_0x1796ad,_0x4fceb4,_0x2c6aff),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3a8b7b=>_0x3a8b7b&&_0x3a8b7b[0x0]?_0x3a8b7b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4c3f65,_0x2d96ba)=>{let _0x46ae0d='';for(const _0x50b5af of _0x4c3f65)_0x46ae0d+='<p>'+renderDescription(_0x50b5af['content'],_0x50b5af['color'])+'</p>';return _0x2d96ba?_0x46ae0d:trimHtml(_0x46ae0d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2c6aff['SuggestionView'](_0x9db5e1,_0x1796ad,{'formatDateTime':_0x2c6aff['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 _0x40a3d8=this['bindTemplate'],_0x105901=[this['suggestionView']];this['commentsListView']&&_0x105901['push'](this['commentsListView']),this['commentThreadInputView']&&_0x105901['push'](this['commentThreadInputView']),_0x105901['push'](this['ariaDescriptionView']);const _0x16961c={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x40a3d8['if']('isActive','ck-suggestion-wrapper--active'),_0x40a3d8['to']('type',_0x3ec0ee=>'ck-suggestion-'+_0x3ec0ee),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':_0x40a3d8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x105901};return _0x16961c;}['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(_0x5c4b54,_0x3818c1,_0x324f40){super(_0x5c4b54),this['_model']=_0x3818c1,this['_config']=_0x324f40,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3818c1),this['acceptButton']=this['_createButton'](getTranslation$5(_0x5c4b54,'Accept\x20suggestion'),IconCheck,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](getTranslation$5(_0x5c4b54,'Discard\x20suggestion'),IconCancel,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new UserView(_0x5c4b54,_0x3818c1['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':_0x53773e=>_0x53773e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4fd3a8=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4fd3a8['innerHTML']=this['description'],this['on']('change:description',(_0x2185a0,_0x28a09d,_0x19ebb9)=>{_0x4fd3a8['innerHTML']=_0x19ebb9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5ee71f=this['bindTemplate'],_0x4f0526=[{'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':_0x5ee71f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5ee71f['to']('authoredAt',_0x1bfb91=>this['_config']['formatDateTime'](_0x1bfb91))}]}]},{'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']&&_0x4f0526['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':_0x4f0526}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$5(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):getTranslation$5(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$5(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):getTranslation$5(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x7e0f41,_0x1e13c7,_0x1cc6a4,_0x29c8db,_0x212272){const _0x2251bc=new LateFocusButtonView(this['locale']);return _0x2251bc['set']({'label':_0x7e0f41,'icon':_0x1e13c7,'tooltip':!0x0,'tooltipPosition':_0x212272}),_0x2251bc['extendTemplate']({'attributes':{'class':_0x1cc6a4}}),_0x2251bc['on']('execute',()=>{this['fire'](_0x29c8db,this['_model']['id']);}),_0x2251bc;}['_setupKeyboardNavigation'](){const _0x58434c=this['element'];this['keystrokes']['listenTo'](_0x58434c);for(const _0x393d8c of this['focusables'])this['focusTracker']['add'](_0x393d8c['element']),this['keystrokes']['listenTo'](_0x393d8c['element']);this['keystrokes']['set']('enter',(_0x553164,_0x259827)=>{_0x58434c===_0x553164['target']&&(this['focusCycler']['focusFirst'](),_0x259827());}),this['keystrokes']['set']('esc',(_0x45f251,_0x21036b)=>{_0x58434c!==_0x45f251['target']&&(this['focus'](),_0x21036b());});}}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(_0x40d15b){super(_0x40d15b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x20bc99=this['editor']['config'];_0x20bc99['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x20bc99['define']('trackChanges.SuggestionView',SuggestionView),_0x20bc99['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x20bc99['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1a18da,_0x198be5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2e8c9b,_0x169f01]of this['_handleControllerBuffer']){const _0x24ebc1=this['_suggestionToController']['has'](_0x2e8c9b);_0x24ebc1||_0x169f01?_0x24ebc1&&_0x169f01&&this['_destroyController'](_0x2e8c9b):this['_initializeController'](_0x2e8c9b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](EditorAnnotations)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1a18da,_0x198be5);}['init'](){const _0x44edfe=this['editor'],_0x16ea42=_0x44edfe['plugins']['get'](TrackChangesEditing),_0x57ac51=_0x44edfe['plugins']['get'](Annotations),_0x4859a7=_0x44edfe['plugins']['get'](EditorAnnotations),_0x445e25=_0x44edfe['plugins']['get'](CommentsRepository);this['_addUIComponentsToFactory'](),_0x4859a7['addSourceCollector'](()=>{const _0x36a21=[];for(const [_0x55ee13,_0x52d916]of Array['from'](this['_suggestionToController'])){const _0xc651d6=_0x55ee13['getAllAdjacentSuggestions'](),_0x6e4226=[];for(const _0x56b75b of _0xc651d6){if(!_0x56b75b['isInContent'])continue;if(_0x56b75b['isMultiRange']){_0x6e4226['push'](..._0x56b75b['getRanges']());continue;}const _0x4a8614=_0x56b75b['getFirstRange']();if(_0x6e4226['length']>0x0){const _0xdcb167=_0x6e4226[0x0]['getJoined'](_0x4a8614);if(_0xdcb167){_0x6e4226[0x0]=_0xdcb167;continue;}}_0x6e4226['push'](_0x4a8614);}_0x36a21['push']([_0x52d916['view'],_0x6e4226]);}return _0x36a21;}),this['listenTo'](_0x16ea42,'suggestionLoaded',(_0x7a9128,_0x5d2b6e)=>{this['listenTo'](_0x5d2b6e,'change:previous',(_0x502151,_0x398e2e,_0x14ca62,_0x4f6b37)=>{_0x5d2b6e['isInContent']&&(null==_0x14ca62?(this['_updateController'](_0x4f6b37['head']),this['_handleSuggestionControllerDelayed'](_0x5d2b6e,!0x1)):(this['_updateController'](_0x14ca62['head']),null==_0x4f6b37&&this['_handleSuggestionControllerDelayed'](_0x5d2b6e,!0x0)));}),null!==_0x5d2b6e['previous']?this['_updateController'](_0x5d2b6e['head']):this['_handleSuggestionControllerDelayed'](_0x5d2b6e,!0x1);}),this['listenTo'](_0x16ea42,'suggestionUnloaded',(_0x3c33b4,_0x5e7b5f,_0x57c45f)=>{this['stopListening'](_0x5e7b5f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5e7b5f),this['_suggestionToController']['has'](_0x5e7b5f)&&this['_destroyController'](_0x5e7b5f),_0x57c45f&&this['_updateController'](_0x57c45f['head']);}),this['listenTo'](_0x16ea42,'suggestionChanged',(_0x51cd1d,_0x1cca8b)=>{this['_updateController'](_0x1cca8b);}),this['listenTo'](_0x57ac51,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x445e25,'addComment',(_0x17995a,{threadId:_0x9c8634,isFromAdapter:_0x5cbcf2})=>{if(_0x5cbcf2||!_0x16ea42['hasSuggestion'](_0x9c8634))return;const _0x393107=_0x16ea42['getSuggestion'](_0x9c8634);this['_suggestionToController']['get'](_0x393107)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5d9a99=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3070f6;for(const _0x2ca54f in _0x5d9a99){const _0x30ee78=_0x2ca54f,_0x1d4022=_0x5d9a99[_0x30ee78];if('trackChangesLicenseKeyValid'==_0x1d4022||'trackChangesLicenseKeyInvalid'==_0x1d4022||'trackChangesLicenseKeyExpired'==_0x1d4022||'trackChangesLicenseKeyDomainLimit'==_0x1d4022||'trackChangesLicenseKeyNotAllowed'==_0x1d4022||'trackChangesLicenseKeyEvaluationLimit'==_0x1d4022||'trackChangesLicenseKeyUsageLimit'==_0x1d4022){delete _0x5d9a99[_0x30ee78],_0x3070f6=_0x1d4022,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3070f6&&_0x5d9a99['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3070f6&&_0x5d9a99['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3070f6&&_0x5d9a99['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3070f6&&_0x5d9a99['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3070f6&&_0x5d9a99['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3070f6&&_0x5d9a99['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5c0cb9){const _0x533741=this['_suggestionToController']['get'](_0x5c0cb9);if(!_0x533741)return null;return this['editor']['plugins']['get'](Annotations)['getByInnerView'](_0x533741['view'])||null;}['getSuggestionForAnnotation'](_0x3abaa2){const _0x5185e3=this['_viewToController']['get'](_0x3abaa2['innerView']);return _0x5185e3?_0x5185e3['model']:null;}['_refreshActiveMarkers'](){const _0x157bca=this['editor']['plugins']['get'](Annotations),_0x1f6a50=this['editor']['plugins']['get'](TrackChangesEditing),_0x5a2bd9=Array['from'](_0x157bca['activeAnnotations'],_0x4772cb=>_0x4772cb['innerView'])['filter'](_0x38b56a=>this['_viewToController']['has'](_0x38b56a)),_0x4b8782=[];for(const _0x4623ef of _0x5a2bd9){const _0x250ece=this['_viewToController']['get'](_0x4623ef)['model']['getAllAdjacentSuggestions']();_0x4b8782['push'](..._0x250ece['reduce']((_0x38f135,_0x494afa)=>[..._0x38f135,..._0x494afa['getMarkerNames']()],[]));}_0x1f6a50['activeMarkers']=_0x4b8782;}['_addUIComponentsToFactory'](){const _0x4d3af2=this['editor'],_0x51df2b=_0x4d3af2['locale'],_0x518237=getTranslation$5(_0x51df2b,'Track\x20changes'),_0x14e5ae=new Collection([{'type':'switchbutton','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':_0x518237,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$5(_0x51df2b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$5(_0x51df2b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$5(_0x51df2b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$5(_0x51df2b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4d3af2['plugins']['has']('TrackChangesPreview')&&_0x14e5ae['addMany']([{'type':'separator'},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$5(_0x51df2b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x96bfc1 of _0x14e5ae)if(isListDropdownButtonDefinition(_0x96bfc1)){const _0x125d1f=_0x4d3af2['commands']['get'](_0x96bfc1['model']['commandName']);_0x96bfc1['model']['bind']('isOn','isEnabled')['to'](_0x125d1f,'value','isEnabled');}_0x4d3af2['ui']['componentFactory']['add']('trackChanges',_0x292b5f=>this['_createToolbarButton'](_0x292b5f,_0x14e5ae,_0x518237)),_0x4d3af2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1a50fc=>this['_createMenuBarMenu'](_0x1a50fc,_0x14e5ae,_0x518237));}['_createToolbarButton'](_0x2efc72,_0x53ec66,_0x4ebc18){const _0x4d3c13=createDropdown(_0x2efc72,SplitButtonView),_0x49c9bf=this['editor']['commands']['get']('trackChanges');_0x4d3c13['buttonView']['set']({'tooltip':_0x4ebc18,'label':_0x4ebc18,'icon':IconTrackChanges}),_0x4d3c13['buttonView']['bind']('isOn')['to'](_0x49c9bf,'value'),_0x4d3c13['buttonView']['on']('execute',()=>{_0x49c9bf['execute'](),this['editor']['editing']['view']['focus']();}),addListToDropdown(_0x4d3c13,_0x53ec66,{'role':'menu'});const _0x5477f6=[];for(const _0x2fd38b of _0x53ec66)isListDropdownButtonDefinition(_0x2fd38b)&&_0x5477f6['push'](this['editor']['commands']['get'](_0x2fd38b['model']['commandName']));const _0x2e1a35=_0x4d3c13['buttonView'];return _0x2e1a35['actionView']['unbind']('isEnabled'),_0x2e1a35['arrowView']['unbind']('isEnabled'),_0x2e1a35['actionView']['bind']('isEnabled')['to'](_0x49c9bf,'isEnabled'),_0x2e1a35['arrowView']['bind']('isEnabled')['toMany'](_0x5477f6,'isEnabled',(..._0x1503a1)=>_0x1503a1['some'](_0x37e25d=>_0x37e25d)),_0x4d3c13['on']('execute',_0x3505e7=>{this['editor']['execute'](_0x3505e7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4d3c13;}['_createMenuBarMenu'](_0x4bfd77,_0xde894b,_0x3fcfee){const _0x218fb9=new MenuBarMenuView(_0x4bfd77),_0x582b3b=this['editor']['commands']['get']('trackChanges');_0x218fb9['buttonView']['set']({'label':_0x3fcfee,'icon':IconTrackChanges});const _0x315edb=new MenuBarMenuListView(_0x4bfd77);for(const _0xd9bd3d of _0xde894b){if('separator'==_0xd9bd3d['type']){_0x315edb['items']['add'](new ListSeparatorView(_0x4bfd77));continue;}const _0x575d31=new MenuBarMenuListItemView(_0x4bfd77,_0x218fb9),_0x4f9cd0=new MenuBarMenuListItemButtonView(_0x4bfd77),_0x1ef8cb=_0xd9bd3d['model'];_0x4f9cd0['bind'](...Object['keys'](_0x1ef8cb))['to'](_0x1ef8cb),_0x4f9cd0['delegate']('execute')['to'](_0x218fb9),_0x4f9cd0['on']('execute',()=>{this['editor']['execute'](_0x1ef8cb['commandName']),this['editor']['editing']['view']['focus']();}),_0x575d31['children']['add'](_0x4f9cd0),_0x315edb['items']['add'](_0x575d31);}return _0x218fb9['bind']('isEnabled')['to'](_0x582b3b,'isEnabled'),_0x218fb9['panelView']['children']['add'](_0x315edb),_0x218fb9;}['_initializeController'](_0x267d7e){const _0x5a5bb1=this['editor'],_0x481d9a=_0x5a5bb1['config'],_0x1c0174=_0x5a5bb1['plugins']['get'](Annotations),_0x5a75f0=_0x5a5bb1['plugins']['get'](CommentsRepository),_0x3fb86e=_0x5a5bb1['plugins']['get'](EditorAnnotations),_0x4ad0e8=_0x5a5bb1['plugins']['get'](Users)['me'],_0x216a9e=_0x481d9a['get']('trackChanges')['SuggestionThreadView'],_0x5e5237=_0x481d9a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5ae863,CommentThreadInputView:_0x3edd40}=_0x5a5bb1['plugins']['get']('CommentsUI');let _0x327359,_0x3ae398,_0x2afbd2;this['_annotationViews']['has'](_0x267d7e['id'])?(_0x3ae398=this['_annotationViews']['get'](_0x267d7e['id']),_0x327359=_0x3ae398['mainView']):(_0x327359=new _0x216a9e(_0x5a5bb1['locale'],_0x267d7e,_0x4ad0e8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x481d9a['get']('comments.editorConfig'),'licenseKey':_0x481d9a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x481d9a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x481d9a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x481d9a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':getDateTimeFormatter(_0x481d9a['get']('locale'),_0x5a5bb1['locale']),'CommentView':_0x481d9a['get']('comments')['CommentView'],'CommentsListView':_0x5ae863,'CommentThreadInputView':_0x3edd40,'SuggestionView':_0x5e5237}),_0x327359['suggestionView']['acceptButton']['on']('execute',()=>{_0x5a5bb1['editing']['view']['focus']();}),_0x327359['suggestionView']['discardButton']['on']('execute',()=>{_0x5a5bb1['editing']['view']['focus']();}),_0x3ae398=_0x1c0174['createAnnotationView'](this['editor']['locale'],_0x327359),_0x3ae398['bind']('isDirty')['to'](_0x327359,'isDirty'),_0x3ae398['bind']('length')['to'](_0x327359),_0x3ae398['bind']('type')['to'](_0x327359,'type',_0x51979b=>'suggestion-'+_0x51979b),_0x327359['on']('escape',()=>{_0x2afbd2['fire']('escape');}),this['_annotationViews']['set'](_0x267d7e['id'],_0x3ae398));const _0x3839bc=_0x5a75f0['createCommentThreadController'](_0x267d7e['commentThread'],_0x327359),_0x2854dc=new SuggestionController(_0x5a5bb1,_0x267d7e,_0x327359,_0x3839bc),_0x42962e=_0x267d7e['getAllAdjacentSuggestions']()['filter'](_0x112be7=>_0x112be7['isInContent']);_0x327359['descriptionParts']=_0x5a5bb1['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x42962e),this['_suggestionToController']['set'](_0x267d7e,_0x2854dc),this['_viewToController']['set'](_0x327359,_0x2854dc);const _0x58e979=()=>{const _0x4ab58b=[],_0xf672ae=_0x267d7e['getAllAdjacentSuggestions']()['filter'](_0x42a80a=>_0x42a80a['isInContent']);for(const _0x3ee86d of _0xf672ae)_0x4ab58b['push'](..._0x3ee86d['getMarkers']());return getAllMarkersDomElementsSorted(_0x5a5bb1['editing'],_0x4ab58b);};_0x2afbd2=_0x1c0174['createAnnotation']({'view':_0x3ae398,'target':_0x58e979,'type':()=>'suggestion-'+_0x2854dc['view']['type'],'isVisible':!!_0x58e979()}),_0x5a75f0['_bindAnnotationToEditors'](_0x327359,_0x2afbd2),_0x1c0174['add'](_0x2afbd2),_0x3fb86e['registerAnnotation'](_0x2afbd2);}['_destroyController'](_0x31f1bd){const _0x245316=this['editor']['plugins']['get'](CommentsRepository),_0x27c13b=this['editor']['plugins']['get'](Annotations),_0x49e1f2=this['_suggestionToController']['get'](_0x31f1bd),_0x22316f=_0x49e1f2['view'],_0x22c8d6=_0x27c13b['getByInnerView'](_0x22316f);_0x245316['_unbindEditors'](_0x22316f),_0x22c8d6&&_0x27c13b['remove'](_0x22c8d6),this['_suggestionToController']['delete'](_0x31f1bd),this['_viewToController']['delete'](_0x22316f),_0x49e1f2['destroy']();}['_updateController'](_0x1b8e42){if(!_0x1b8e42['isInContent']||!this['_suggestionToController']['has'](_0x1b8e42))return;const _0x42db05=this['editor']['plugins']['get'](TrackChangesEditing),_0x4005e3=this['_suggestionToController']['get'](_0x1b8e42),_0x40c41a=_0x1b8e42['getAllAdjacentSuggestions']();_0x4005e3['view']['descriptionParts']=_0x42db05['descriptionFactory']['getDescriptions'](_0x40c41a);}['destroy'](){for(const _0x12c9bf of this['_suggestionToController']['keys']())this['_destroyController'](_0x12c9bf);for(const _0x21a666 of this['_annotationViews']['values']())_0x21a666['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function isListDropdownButtonDefinition(_0x56848d){return'model'in _0x56848d;}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'](_0x313ddf){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x313ddf;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x4b994d){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x4b994d);}['getSuggestions']({skipNotAttached:_0x3d348d=!0x1,toJSON:_0x32b47f=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x3d348d,'toJSON':_0x32b47f});}['getSuggestion'](_0x274673){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x274673);}}const blackListedPlugins$1=['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 _0x16c0e1=this['editor'];if(_0x16c0e1['config']['define']('trackChangesData.editorCreator',_0x56facd=>{const _0x4ebfb4=_0x16c0e1['model']['document']['getRootNames']()['reduce']((_0x114d5d,_0x3d2ec3)=>(_0x114d5d[_0x3d2ec3]='',_0x114d5d),{});return _0x16c0e1['constructor']['create'](_0x4ebfb4,_0x56facd);}),'function'!=typeof _0x16c0e1['config']['get']('trackChangesData')['editorCreator'])throw new CKEditorError('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x17d870){return getTrackChangesData(this['editor'],!0x0,_0x17d870);}['getDataWithDiscardedSuggestions'](_0x3d984b){return getTrackChangesData(this['editor'],!0x1,_0x3d984b);}}class TrackChangesDataGetter extends Plugin{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f95e1){function _0x2a77a7(_0x19b6cd){return _0x19b6cd['map'](_0x2704dc=>String['fromCharCode'](_0x2704dc))['join']('');}super(_0x1f95e1),this['result']='end',_0x1f95e1[_0x2a77a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a77a7([0x76,0x69,0x65,0x77])][_0x2a77a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a77a7([0x61,0x75,0x74,0x6f]),_0x1f95e1[_0x2a77a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2a77a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a77a7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2a77a7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2a77a7([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(_0xcbe97c){return void 0x0!==_0xcbe97c['getRootsAttributes'];}async function getTrackChangesData(_0x1bd55f,_0x5278aa,_0x402ede){const _0x1aba87=sanitizeEditorConfig(_0x1bd55f,blackListedPlugins$1);if(_0x1aba87['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),isMultiRootEditor$1(_0x1bd55f)){_0x1aba87['roots']=Object['create'](null);for(const _0x4e6c49 of _0x1bd55f['model']['document']['getRootNames']())_0x1aba87['roots'][_0x4e6c49]={'modelAttributes':_0x1bd55f['getRootAttributes'](_0x4e6c49)};}const _0x5b5906=document['createDocumentFragment'](),_0xac53fb=_0x1bd55f['config']['get']('trackChangesData')['editorCreator'],_0x1a137a=await _0xac53fb(_0x1aba87,()=>createAttachedElement(_0x5b5906));copyEditorData(_0x1bd55f,_0x1a137a),_0x1a137a['execute'](_0x5278aa?'acceptAllSuggestions':'discardAllSuggestions');const _0x5b001c=isMultiRootEditor$1(_0x1a137a)?_0x1a137a['getFullData'](_0x402ede):_0x1a137a['data']['get'](_0x402ede);return await _0x1a137a['destroy'](),_0x5b001c;}function copyEditorData(_0x257739,_0x1e14cb){const _0x20da72=_0x257739['model']['document']['getRootNames']()['reduce']((_0x2264e3,_0xeca920)=>(_0x2264e3[_0xeca920]=_0x257739['data']['get']({'rootName':_0xeca920}),_0x2264e3),{}),_0x595d2f=_0x257739['plugins']['get']('Users')['users']['map'](_0x3c7fe9=>({'id':_0x3c7fe9['id'],'name':_0x3c7fe9['name']})),_0x1e9cfc=_0x257739['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x33800e=_0x257739['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x411aba=_0x1e14cb['plugins']['get']('Users'),_0x197b3a=_0x1e14cb['plugins']['get']('TrackChangesEditing'),_0x23c4ec=_0x1e14cb['plugins']['get']('CommentsRepository');for(const _0x3fc13c of _0x23c4ec['getCommentThreads']())_0x3fc13c['remove']();for(const _0x1f6b4d of _0x595d2f)_0x411aba['getUser'](_0x1f6b4d['id'])||_0x411aba['addUser'](_0x1f6b4d);_0x411aba['me']||_0x411aba['useAnonymousUser']();for(const _0x29eef9 of _0x33800e)_0x23c4ec['addCommentThread'](_0x29eef9);for(const _0x235e1f of _0x1e9cfc)_0x197b3a['addSuggestionData'](_0x235e1f);_0x1e14cb['data']['set'](_0x20da72);}function createAttachedElement(_0x56f26b){const _0x1e86d0=document['createElement']('div');return _0x56f26b['appendChild'](_0x1e86d0),_0x1e86d0;}class TrackChangesPreviewView extends View{['options'];constructor(_0x47b0bb,_0x34dfb3){super(_0x47b0bb),this['options']=_0x34dfb3,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'](_0x51c1c7,_0x1a071d){if(!this['element'])return;const _0x4a823e=[];for(const [_0x21cd4c,_0x17f823]of _0x51c1c7){const _0x3933c1=document['createElement']('div');_0x3933c1['setAttribute']('data-ck-root-name',_0x21cd4c),_0x3933c1['className']=_0x17f823['classes']+'\x20ck-track-changes-preview__root-container',_0x3933c1['innerHTML']=_0x17f823['content'],_0x4a823e['push'](_0x3933c1);}_0x1a071d(this['element'],_0x4a823e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends Command{constructor(_0x572857){super(_0x572857),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5d3282=this['editor'],_0x6f77d=_0x5d3282['locale'],_0x46c678=_0x5d3282['plugins']['get']('Dialog');let _0x178638;const _0x5542ce=getEditables(_0x5d3282),_0x2960ae=calculateDialogRects(_0x5542ce);_0x46c678['show']({'id':'finalContentPreview','title':getTranslation$5(_0x6f77d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x6f77d,{'dialogRects':_0x2960ae}),'onHide':()=>{_0x178638['detachFromDom']();},'onShow':()=>{_0x5d3282['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3e87d8=>{const _0x3c0c07=this['_standarizeRootsData'](_0x3e87d8,_0x5d3282,_0x5542ce);_0x46c678['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3c0c07,_0x5d3282['config']['get']('trackChanges.preview.renderFunction'));}),_0x178638=new BodyCollection(_0x6f77d,[_0x46c678['view']]),_0x178638['attachToDom'](),_0x178638['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5d3282['once']('destroy',()=>{_0x178638['detachFromDom']();});const _0x4efd5b=_0x46c678['view']['headerView']['class'];_0x46c678['view']['headerView']['class']=_0x4efd5b?_0x4efd5b+'\x20ck-reset_all':'ck-reset_all',_0x46c678['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x46c678['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x360efd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x30c88f=_0x360efd['previewMode'],_0x5a909e={};if('$labels'===_0x30c88f){for(const _0x1a31b2 of _0x360efd['getMergeFieldsIds']())_0x5a909e[_0x1a31b2]=_0x360efd['getLabel'](_0x1a31b2)||_0x1a31b2;}else{const _0x14087c='$defaultValues'===_0x30c88f?_0x360efd['getDefaultValues']():_0x360efd['getDataSetValues'](_0x30c88f,!0x0);for(const _0x4f53c9 of Object['entries'](_0x14087c)){const [_0x190800,_0x151d0e]=_0x4f53c9;_0x5a909e[_0x190800]=null!==_0x151d0e?_0x151d0e:_0x360efd['getLabel'](_0x190800)||_0x190800;}}return{'mergeFieldsData':_0x5a909e};}['_standarizeRootsData'](_0x3c0193,_0x1c1be9,_0x58ba05){let _0x1c2478;if('string'==typeof _0x3c0193){const _0x48d085=_0x1c1be9['model']['document']['getRootNames']()[0x0];_0x1c2478={[_0x48d085]:_0x3c0193};}else _0x1c2478=_0x3c0193;const _0x3381ab=this['_fixMediaEmbeds'](_0x1c2478,_0x1c1be9);return addEditableClasses(this['_sortRoots'](_0x1c1be9)['reduce']((_0x46a4fd,_0x12a97a)=>(_0x46a4fd['push']([_0x12a97a,{'content':_0x3381ab[_0x12a97a],'classes':''}]),_0x46a4fd),[]),_0x58ba05);}['_fixMediaEmbeds'](_0x3f475e,_0x356aaa){if(!_0x356aaa['plugins']['has']('MediaEmbedEditing'))return _0x3f475e;const _0x26ad90=_0x356aaa['plugins']['get']('MediaEmbedEditing');for(const [_0x114fa6,_0x4ff8e4]of Object['entries'](_0x3f475e)){const _0x57a4c4=document['createElement']('div');_0x57a4c4['innerHTML']=_0x4ff8e4,(_0x57a4c4['querySelectorAll']('figure.media')['forEach'](_0x412f3c=>{const _0x2d0a49=_0x412f3c['querySelector']('oembed');if(_0x2d0a49){const _0x51c05b=_0x2d0a49['getAttribute']('url');if(_0x51c05b){const _0x208123=_0x26ad90['registry']['getMediaViewElement'](new ViewDowncastWriter(_0x356aaa['editing']['view']['document']),_0x51c05b,{'elementName':'','renderForEditingView':!0x0}),_0x2f79ac=document['createElement']('div');_0x2f79ac['classList']['add']('ck-media__wrapper'),_0x208123['render'](_0x2f79ac,_0x356aaa['editing']['view']['domConverter']),_0x2d0a49['replaceWith'](_0x2f79ac);}}}),_0x3f475e[_0x114fa6]=_0x57a4c4['innerHTML']);}return _0x3f475e;}['_sortRoots'](_0x1c292e){if(!isMultiRootEditor(_0x1c292e))return _0x1c292e['model']['document']['getRootNames']();const _0x586b33=[],_0x1136ad=new Map();for(const _0x5e9a7c of _0x1c292e['model']['document']['getRootNames']()){const _0x73d18e=_0x1c292e['editing']['view']['getDomRoot'](_0x5e9a7c)['getClientRects']()['item'](0x0);_0x586b33['push'](_0x5e9a7c),_0x1136ad['set'](_0x5e9a7c,_0x73d18e);}return _0x586b33['sort']((_0x3edcc8,_0x7be697)=>{const _0x4ac746=_0x1136ad['get'](_0x3edcc8),_0x198d7c=_0x1136ad['get'](_0x7be697);return _0x4ac746['y']-_0x198d7c['y']||_0x4ac746['x']-_0x198d7c['x'];}),_0x586b33;}}function getEditables(_0x12e1a2){const _0x205722={};if('editables'in _0x12e1a2['ui']['view']){for(const [_0x329393,_0x91903]of Object['entries'](_0x12e1a2['ui']['view']['editables']))_0x205722[_0x329393]=_0x91903['element'];}else _0x205722[_0x12e1a2['model']['document']['getRootNames']()[0x0]]=_0x12e1a2['ui']['view']['editable']['element'];return _0x205722;}function calculateDialogRects(_0x365fe1){let _0x360a7d=0x0;for(const _0x1044ad of Object['values'](_0x365fe1))_0x360a7d=Math['max'](_0x360a7d,_0x1044ad['getBoundingClientRect']()['width']);let _0x9d79e5=0x0;for(const _0x16eaab of Object['values'](_0x365fe1))_0x9d79e5+=_0x16eaab['getBoundingClientRect']()['height'];const _0x45e40d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x360a7d,'height':Math['min'](_0x9d79e5,_0x45e40d)};}function addEditableClasses(_0x50db64,_0x387c72){for(const [_0x56e260,_0x10c512]of _0x50db64)_0x10c512['classes']=_0x387c72[_0x56e260]['classList']['value']['replace']('ck-focused','');return _0x50db64;}function isMultiRootEditor(_0x532890){return void 0x0!==_0x532890['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(_0x1d8168){super(_0x1d8168),_0x1d8168['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x1d8168['config']['define']('trackChanges.preview.renderFunction',(_0x2de150,_0x1b5b92)=>{for(const _0x2aeca3 of _0x1b5b92)_0x2de150['appendChild'](_0x2aeca3);});}}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(_0x57a29a){super(_0x57a29a),this['_services']=new Map();}async['init'](){const _0x40221c=this['context'],_0x4538b7=_0x40221c['plugins']['get'](CommentsRepository);if(_0x40221c['plugins']['get'](WebSocketGateway)['addToReconnectionStack'](this),_0x4538b7['adapter']={'addCommentThread':async({channelId:_0xd9e900,threadId:_0xc6f6a7,comments:_0x4cf351,resolvedAt:_0x417e0a,resolvedBy:_0x27ce65,context:_0x5d2dd2,attributes:_0x176531})=>{const _0x340063=await this['_getService'](_0xd9e900)['addCommentThread']({'commentThreadId':_0xc6f6a7,'comments':_0x4cf351['map'](_0x32af41=>parseLocalCommentToRemote(_0x32af41,_0xd9e900,_0xc6f6a7)),'resolvedAt':_0x417e0a,'resolvedBy':_0x27ce65,'context':_0x5d2dd2,'attributes':_0x176531})['catch'](handleDisconnectionError$1);return{'threadId':_0x340063['commentThreadId'],'comments':_0x340063['comments']};},'getCommentThread':async({channelId:_0x407c1a,threadId:_0xb1d701})=>{const _0x27209a=await this['_getService'](_0x407c1a)['getCommentThread'](_0xb1d701)['catch'](handleServerError)['catch'](handleDisconnectionError$1);return _0x27209a?_0x27209a['deletedAt']?null:(await this['_fetchMissingUsersForThreads']([_0x27209a]),{'threadId':_0x27209a['commentThreadId'],'comments':_0x27209a['comments']['map'](parseRemoteCommentToLocal),'context':_0x27209a['context'],'resolvedAt':_0x27209a['resolvedAt'],'resolvedBy':_0x27209a['resolvedBy'],'attributes':_0x27209a['attributes']||{}}):null;},'updateCommentThread':async({channelId:_0x2fc8eb,threadId:_0x8f47e6,context:_0x43f4b4,unlinkedAt:_0x11c897,attributes:_0xcb5d6f})=>this['_getService'](_0x2fc8eb)['updateCommentThread']({'commentThreadId':_0x8f47e6,'context':_0x43f4b4,'attributes':_0xcb5d6f,'unlinkedAt':_0x11c897})['catch'](handleServerError)['catch'](handleDisconnectionError$1),'resolveCommentThread':async({channelId:_0x3d6a6a,threadId:_0x25cc16})=>{const _0x398a86=await this['_getService'](_0x3d6a6a)['resolveCommentThread'](_0x25cc16)['catch'](handleServerError)['catch'](handleDisconnectionError$1);return{'threadId':_0x398a86['commentThreadId'],'resolvedAt':_0x398a86['resolvedAt'],'resolvedBy':_0x398a86['resolvedBy']};},'reopenCommentThread':async({channelId:_0x4992ed,threadId:_0x39ff6b})=>this['_getService'](_0x4992ed)['reopenCommentThread'](_0x39ff6b)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'removeCommentThread':({channelId:_0x5b3ab5,threadId:_0xdfe6f3})=>this['_getService'](_0x5b3ab5)['removeCommentThread'](_0xdfe6f3)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'addComment':({channelId:_0xb97c32,threadId:_0x5dbf31,commentId:_0x4046e9,content:_0x2d6c3e,attributes:_0x214664})=>this['_getService'](_0xb97c32)['addComment'](_0x5dbf31,_0x4046e9,_0x2d6c3e,_0x214664)['catch'](handleDisconnectionError$1),'updateComment':({channelId:_0x53c3b4,threadId:_0x559524,commentId:_0x22b8e7,content:_0x89ea9b,attributes:_0x51e9cf})=>this['_getService'](_0x53c3b4)['updateComment'](_0x559524,_0x22b8e7,_0x89ea9b,_0x51e9cf)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'removeComment':({channelId:_0x5ef6e7,threadId:_0x18b6ee,commentId:_0x51a248})=>this['_getService'](_0x5ef6e7)['removeComment'](_0x18b6ee,_0x51a248)['catch'](handleServerError)['catch'](handleDisconnectionError$1)},_0x40221c instanceof Context$1){const _0x3c054a=_0x40221c['config']['get']('collaboration.channelId'),_0xa69c2b=_0x40221c['plugins']['get'](Sessions);await this['_setUpService'](_0x3c054a);const _0x4f5087=await this['_services']['get'](_0x3c054a)['getConnectedSessions']();this['listenTo'](_0xa69c2b,'sessionAdd:'+_0x3c054a,(_0x13f797,{session:_0x669b5d})=>{_0x669b5d['id']===_0xa69c2b['mySessionId']&&(_0x13f797['off'](),this['context']['plugins']['get']('Permissions')['setPermissions'](_0x669b5d['permissions'],_0x3c054a));}),_0xa69c2b['register'](_0x3c054a,_0x4f5087);}}async['_setUpService'](_0x213ec5){if(this['_services']['has'](_0x213ec5))throw new CKEditorError('cloudservicescommentsadapter-connect-already-connected',null,{'channelId':_0x213ec5});const _0x45efd7=this['context']['plugins']['get'](CommentsRepository),_0x578ef4=new CloudServicesCommentsAdapter['CommentsService'](_0x213ec5);this['_services']['set'](_0x213ec5,_0x578ef4),this['listenTo'](_0x578ef4,'commentThreadAdded',(_0x56eb18,_0x4a1063)=>{const {commentThreadId:_0x48a95c,documentId:_0x3b0831,context:_0x153808,attributes:_0x5bf701,resolvedAt:_0x1994bc,resolvedBy:_0x1e87f3,comments:_0xfcee7a}=_0x4a1063;_0x45efd7['getCommentThread'](_0x48a95c)||_0x45efd7['addCommentThread']({'threadId':_0x48a95c,'channelId':_0x3b0831,'comments':_0xfcee7a?_0xfcee7a['map'](parseRemoteCommentToLocal):[],'context':_0x153808,'attributes':_0x5bf701,'resolvedAt':_0x1994bc,'resolvedBy':_0x1e87f3,'isFromAdapter':!0x0});}),this['listenTo'](_0x578ef4,'commentThreadUpdated',(_0x24373b,{commentThreadId:_0x4123ac,documentId:_0x3682a4,context:_0x5d2083,unlinkedAt:_0xc9b95,attributes:_0x2aef22})=>{_0x45efd7['getCommentThread'](_0x4123ac)&&_0x45efd7['updateCommentThread']({'threadId':_0x4123ac,'channelId':_0x3682a4,'context':_0x5d2083,'unlinkedAt':_0xc9b95,'attributes':_0x2aef22,'isFromAdapter':!0x0});}),this['listenTo'](_0x578ef4,'commentThreadResolved',(_0x336ba0,{commentThreadId:_0x5e8aa1,resolvedBy:_0xf49741,resolvedAt:_0x554bd0})=>{const _0xbbf864=_0x45efd7['getCommentThread'](_0x5e8aa1);_0xbbf864&&_0xbbf864['resolve']({'resolvedBy':_0xf49741,'resolvedAt':_0x554bd0,'isFromAdapter':!0x0});}),this['listenTo'](_0x578ef4,'commentThreadReopened',(_0x33241f,{commentThreadId:_0x3dc150})=>{const _0x5ba4fa=_0x45efd7['getCommentThread'](_0x3dc150);_0x5ba4fa&&_0x5ba4fa['reopen']({'isFromAdapter':!0x0});}),this['listenTo'](_0x578ef4,'commentThreadRemoved',(_0x6a07ec,{commentThreadId:_0x356a2c})=>{const _0x296062=_0x45efd7['getCommentThread'](_0x356a2c);_0x296062&&_0x296062['remove']({'isFromAdapter':!0x0});}),this['listenTo'](_0x578ef4,'commentAdded',(_0x5d1415,_0x2b7010)=>{const _0x16f6d5=_0x2b7010['commentThreadId'],_0x4b4419=_0x45efd7['getCommentThread'](_0x16f6d5);_0x4b4419&&_0x4b4419['addComment']({...parseRemoteCommentToLocal(_0x2b7010),'isFromAdapter':!0x0});}),this['listenTo'](_0x578ef4,'commentUpdated',(_0x5b9dad,{commentThreadId:_0x1f4ae8,commentId:_0x56cb1c,content:_0x49ffe9,attributes:_0x2af485})=>{const _0x202b27=_0x45efd7['getCommentThread'](_0x1f4ae8);if(_0x202b27){const _0x31f54d=_0x202b27['getComment'](_0x56cb1c);_0x31f54d&&_0x31f54d['update']({'content':_0x49ffe9,'attributes':_0x2af485,'isFromAdapter':!0x0});}}),this['listenTo'](_0x578ef4,'commentRemoved',(_0x2f1d41,{commentThreadId:_0x260229,commentId:_0x226cc2})=>{const _0x30044c=_0x45efd7['getCommentThread'](_0x260229);if(_0x30044c){const _0xbea99f=_0x30044c['getComment'](_0x226cc2);_0xbea99f&&_0xbea99f['remove']({'isFromAdapter':!0x0});}}),await this['_connectService'](_0x213ec5);}['destroy'](){if(this['context']instanceof Context$1){const _0x206c62=this['context']['config']['get']('collaboration.channelId');this['_terminateService'](_0x206c62);}}['_terminateService'](_0x4731c9){if(!this['_services']['has'](_0x4731c9))throw new CKEditorError('cloudservicescommentsadapter-disconnect-not-exist',null,{'channelId':_0x4731c9});this['_getService'](_0x4731c9)['disconnect'](),this['_services']['delete'](_0x4731c9);}async['reconnect'](){for(const _0x457c1d of this['_services']['keys']())await this['_connectService'](_0x457c1d);if(this['context']instanceof Context$1){const _0x143f5f=this['context']['config']['get']('collaboration.channelId'),_0x11a553=this['context']['plugins']['get'](Sessions);_0x11a553['unregister'](_0x143f5f);const _0x2a3fce=await this['_services']['get'](_0x143f5f)['getConnectedSessions']();_0x11a553['register'](_0x143f5f,_0x2a3fce);}}async['_connectService'](_0x23f408){const {connection:_0x24777c}=this['context']['plugins']['get'](WebSocketGateway),_0x3c1427=this['context']['plugins']['get'](CommentsRepository),_0x3fc8b6=this['_services']['get'](_0x23f408),_0x74a2e6=await _0x3fc8b6['connect'](_0x24777c);await this['_fetchMissingUsersForThreads'](_0x74a2e6);const _0x89b21e=new Set(Array['from'](_0x3c1427['getCommentThreads']({'channelId':_0x23f408}),_0x2bfc1d=>_0x2bfc1d['id']));for(const _0x59fa94 of _0x74a2e6)_0x59fa94['deletedAt']||_0x89b21e['delete'](_0x59fa94['commentThreadId']);for(const _0x4154c5 of _0x89b21e)_0x3c1427['getCommentThread'](_0x4154c5)['remove']({'isFromAdapter':!0x0});for(const _0x3dd6e6 of _0x74a2e6){let _0x1305aa=_0x3c1427['getCommentThread'](_0x3dd6e6['commentThreadId']);const {commentThreadId:_0x4ad9ca,context:_0x37b7c6,attributes:_0x2569dd,resolvedBy:_0x537ce5,resolvedAt:_0x5d7e85,unlinkedAt:_0x23f416,deletedAt:_0x3369dc}=_0x3dd6e6;if(_0x3369dc)continue;_0x1305aa||(_0x1305aa=_0x3c1427['addCommentThread']({'channelId':_0x23f408,'threadId':_0x4ad9ca,'context':_0x37b7c6,'attributes':_0x2569dd||{},'resolvedBy':_0x537ce5,'resolvedAt':_0x5d7e85,'unlinkedAt':_0x23f416,'isFromAdapter':!0x0}));const _0x30d04c=new Set(Array['from'](_0x1305aa['comments'],_0x393646=>_0x393646['id']));for(const _0x1629c7 of _0x3dd6e6['comments'])_0x30d04c['delete'](_0x1629c7['commentId']);for(const _0x4a5a2 of _0x30d04c)_0x1305aa['getComment'](_0x4a5a2)['remove']({'isFromAdapter':!0x0});for(const _0x5e2686 of _0x3dd6e6['comments']){const _0x3b6add=_0x1305aa['getComment'](_0x5e2686['commentId']);_0x3b6add?_0x3b6add['content']!==_0x5e2686['content']&&_0x3b6add['update']({'content':_0x5e2686['content'],'isFromAdapter':!0x0}):_0x1305aa['addComment'](Object['assign'](parseRemoteCommentToLocal(_0x5e2686),{'isFromAdapter':!0x0}));}}}['_getService'](_0x10a083){if(!this['_services']['has'](_0x10a083))throw new CKEditorError('cloudservicescommentsadapter-service-not-exist',null,{'channelId':_0x10a083});return this['_services']['get'](_0x10a083);}async['_fetchMissingUsersForThreads'](_0xfe7dc2){const _0x4e6bf4=this['context']['plugins']['get'](Users),{connection:_0x29b225}=this['context']['plugins']['get'](WebSocketGateway),_0x135888=new Set();for(const {resolvedBy:_0x47a811,comments:_0x4e97bd}of _0xfe7dc2){_0x47a811&&!_0x4e6bf4['getUser'](_0x47a811)&&_0x135888['add'](_0x47a811);for(const {userId:_0x3156ff}of _0x4e97bd)_0x4e6bf4['getUser'](_0x3156ff)||_0x135888['add'](_0x3156ff);}if(0x0===_0x135888['size'])return;const _0x12e1c2=await User['getMany'](_0x29b225,Array['from'](_0x135888));for(const _0x1cad45 of _0x12e1c2)_0x4e6bf4['getUser'](_0x1cad45['id'])||_0x4e6bf4['addUser'](_0x1cad45);}}async function handleServerError(_0x5ea3d8){if('404'!==_0x5ea3d8['code'])throw _0x5ea3d8;}function handleDisconnectionError$1(_0x4634d6){if(isDisconnectionError$2(_0x4634d6))return new Promise(()=>{});throw _0x4634d6;}function isDisconnectionError$2(_0x3c5ea1){return _0x3c5ea1['message']['startsWith']('cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.')||_0x3c5ea1['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x3c5ea1['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}function parseRemoteCommentToLocal(_0x183316){return{'threadId':_0x183316['commentThreadId'],'commentId':_0x183316['commentId'],'content':_0x183316['content'],'createdAt':_0x183316['createdAt'],'authorId':_0x183316['userId'],'attributes':_0x183316['attributes']||{}};}function parseLocalCommentToRemote(_0x4ab049,_0x5a4bcb,_0x576702){return{'commentThreadId':_0x576702,'commentId':_0x4ab049['commentId'],'userId':_0x4ab049['authorId'],'content':_0x4ab049['content'],'documentId':_0x5a4bcb,'createdAt':_0x4ab049['createdAt'],'attributes':_0x4ab049['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(_0x29ca1e){super(_0x29ca1e);const _0x2356bb=this['editor']['config']['get']('collaboration.channelId');this['_bufferedRequests']=new Map(),this['_trackChangesService']=new CloudServicesTrackChangesAdapter['TrackChangesService'](_0x2356bb);}['init'](){const _0x4e40a7=this['editor']['plugins']['get'](WebSocketGateway),_0x4757ae=this['editor']['plugins']['get'](TrackChangesEditing);return _0x4757ae['adapter']={'getSuggestion':async _0x1ce104=>{await this['_waitForServiceReady']();const _0x324480=await this['_trackChangesService']['get'](_0x1ce104)['catch'](handleDisconnectionError);return await this['_fetchMissingUsersForThreads']([_0x324480]),_0x324480;},'addSuggestion':async({id:_0x5de63b,type:_0x3a71af,data:_0x37db8e,originalSuggestionId:_0x41b3c2,attributes:_0x547464})=>{await this['_waitForServiceReady']();const _0x1a7c95={'id':_0x5de63b,'type':_0x3a71af,'data':_0x37db8e,'originalSuggestionId':_0x41b3c2,'attributes':_0x547464},_0x372714=await this['_trackChangesService']['add'](_0x5de63b,_0x3a71af,_0x37db8e,_0x41b3c2,_0x547464)['catch'](_0x547e89=>{if(isDisconnectionError$1(_0x547e89))return new Promise(_0x4a6f8c=>{this['_bufferedRequests']['set'](_0x5de63b,{'resolve':_0x4a6f8c,'suggestionData':_0x1a7c95});});throw _0x547e89;});return this['_bufferedRequests']['delete'](_0x5de63b),_0x372714;},'updateSuggestion':async(_0x20fa36,_0x4b5867)=>{if(await this['_waitForServiceReady'](),'open'!==_0x4b5867['state'])return this['_trackChangesService']['update'](_0x20fa36,_0x4b5867)['catch'](handleDisconnectionError);}},this['listenTo'](this['_trackChangesService'],'suggestionUpdated',(_0x58e81c,_0x4cfbb9)=>{_0x4757ae['hasSuggestion'](_0x4cfbb9['id'])&&(_0x4757ae['getSuggestion'](_0x4cfbb9['id'])['attributes']=_0x4cfbb9['attributes']);}),this['_trackChangesService']['connect'](_0x4e40a7['connection'])['then'](_0x22a746=>(_0x4e40a7['addToReconnectionStack'](this),this['_fetchMissingUsersForThreads'](_0x22a746)['then'](()=>{for(const _0x4ecc7e of _0x22a746){_0x4757ae['addSuggestionData'](_0x4ecc7e)['_saved']=!0x0;}})));}async['reconnect'](){const _0x3966a2=this['editor']['plugins']['get']('TrackChangesEditing'),{connection:_0x28cfea}=this['editor']['plugins']['get'](WebSocketGateway),_0x295b2a=await this['_trackChangesService']['connect'](_0x28cfea);await this['_fetchMissingUsersForThreads'](_0x295b2a);for(const {suggestionData:_0x5e1013,resolve:_0xc1a678}of this['_bufferedRequests']['values']()){let _0x3f35ae=_0x295b2a['find'](_0x34fa4f=>_0x34fa4f['id']===_0x5e1013['id']);_0x3f35ae||(_0x3f35ae=await this['_trackChangesService']['add'](_0x5e1013['id'],_0x5e1013['type'],_0x5e1013['data'],_0x5e1013['originalSuggestionId'])),_0xc1a678(_0x3f35ae);}for(const _0x1b7fe8 of _0x295b2a)_0x3966a2['hasSuggestion'](_0x1b7fe8['id'])||_0x3966a2['addSuggestionData'](_0x1b7fe8);}async['_waitForServiceReady'](){this['_trackChangesService']['isConnected']||await new Promise(_0x13e770=>{this['listenTo'](this['_trackChangesService'],'connected',_0x434da8=>{_0x434da8['off'](),_0x13e770();});});}async['_fetchMissingUsersForThreads'](_0x1f9c6d){const _0x2f9021=this['editor']['plugins']['get'](Users),{connection:_0x108a2d}=this['editor']['plugins']['get'](WebSocketGateway),_0x4f41be=new Set();for(const {authorId:_0x1766dc}of _0x1f9c6d)_0x2f9021['getUser'](_0x1766dc)||_0x4f41be['add'](_0x1766dc);if(0x0===_0x4f41be['size'])return;const _0x34a979=await User['getMany'](_0x108a2d,Array['from'](_0x4f41be));for(const _0x1c1841 of _0x34a979)_0x2f9021['getUser'](_0x1c1841['id'])||_0x2f9021['addUser'](_0x1c1841);}}function handleDisconnectionError(_0x3ea35e){if(isDisconnectionError$1(_0x3ea35e))return new Promise(()=>{});throw _0x3ea35e;}function isDisconnectionError$1(_0x3f52d0){return _0x3f52d0['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x3f52d0['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 _0x330797=this['editor']['plugins']['get'](WebSocketGateway),_0x4d2533=this['editor']['plugins']['get'](CommentsEditing),_0x1fe7f1=this['editor']['plugins']['get'](CloudServicesCommentsAdapter);return this['editor']['data']['once']('ready',()=>{this['listenTo'](_0x330797,'change:state',(_0x1e1c64,_0x1bff53,_0x55783f)=>{_0x4d2533['isThreadsLoadingPaused']='connected'!==_0x55783f;});}),this['listenTo'](_0x330797,'change:state',(_0x5a82e8,_0x22fa49,_0x2e304f)=>{this['editor']['plugins']['get'](CommentsRepository)['switchReadOnly']('connected'!==_0x2e304f);}),_0x1fe7f1['_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 Revision extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x359e4d){super(),this['id']=_0x359e4d['id']||uid(),this['creator']=_0x359e4d['creator']||null,this['authors']=_0x359e4d['authors']||[],this['diffData']=_0x359e4d['diffData']||null,this['toVersion']=_0x359e4d['toVersion']||0x0,this['fromVersion']=_0x359e4d['fromVersion']||0x0,this['set']('name',_0x359e4d['name']||''),this['set']('createdAt',_0x359e4d['createdAt']||new Date()),this['set']('attributes',_0x359e4d['attributes']||{});}['setName'](_0x4d16b0){this['_update']({'name':_0x4d16b0});}['setAttribute'](_0xafa954,_0x1c67c6){const _0x1aee71=cloneDeep(this['attributes']);set(_0x1aee71,_0xafa954,_0x1c67c6),this['_update']({'attributes':_0x1aee71});}['removeAttribute'](_0x4d738d){const _0x594400=cloneDeep(this['attributes']);unset(_0x594400,_0x4d738d),this['_update']({'attributes':_0x594400});}['_update'](_0x5f5aa3,_0x2f166e=!0x1){let _0x179b70=!0x1;const _0x4def11={'id':this['id']},_0x403fc5=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1fb0d0 of _0x403fc5){const _0x549628=_0x5f5aa3[_0x1fb0d0];void 0x0!==_0x549628&&_0x549628!==this[_0x1fb0d0]&&(this[_0x1fb0d0]=_0x549628,_0x4def11[_0x1fb0d0]=_0x549628,_0x179b70=!0x0);}_0x179b70&&(_0x4def11['authors']&&(_0x4def11['authorsIds']=_0x4def11['authors']['map'](_0xf3757f=>_0xf3757f['id']),delete _0x4def11['authors']),this['fire']('_update',_0x4def11,_0x2f166e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3f3f7=>_0x3f3f7['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(_0x5a519f){super(_0x5a519f),this['_revisions']=new Collection();}['afterInit'](){checkLicense$4(this);}['createRevision'](_0x132377){const _0x5c3750=this['editor']['plugins']['get']('Users');return new Revision({'id':_0x132377['id'],'name':_0x132377['name'],'creator':_0x132377['creatorId']?_0x5c3750['getUser'](_0x132377['creatorId']):null,'diffData':_0x132377['diffData']||_0x132377['data'],'authors':_0x132377['authorsIds']['map'](_0x38d5bd=>_0x5c3750['getUser'](_0x38d5bd)),'createdAt':new Date(_0x132377['createdAt']),'attributes':_0x132377['attributes'],'fromVersion':_0x132377['fromVersion'],'toVersion':_0x132377['toVersion']});}['addRevision'](_0x1df35a,_0x1bd458=0x0){this['_revisions']['add'](_0x1df35a,_0x1bd458);}['getRevision'](_0x190d8d){return this['_revisions']['get'](_0x190d8d);}['getRevisions'](_0x294ce4={'toJSON':!0x1}){const _0x3cc12e=Array['from'](this['_revisions']);return _0x3cc12e['reverse'](),_0x294ce4['toJSON']?_0x3cc12e['map'](_0x36c7ba=>_0x36c7ba['toJSON']()):_0x3cc12e;}['getIndex'](_0x42d38f){return this['_revisions']['getIndex'](_0x42d38f);}['getEarlierVisibleRevision'](_0x20fd0e){const [,_0x3d969c]=this['getRevisionsIterator'](_0x20fd0e,{'direction':'earlier'});return _0x3d969c;}['getLaterVisibleRevision'](_0x2ee8a5){const [,_0x1e2224]=this['getRevisionsIterator'](_0x2ee8a5,{'direction':'later'});return _0x1e2224;}['getRevisionsInDiff'](_0x4ac164){const _0x423d73=[];for(const _0x2df2a2 of this['getRevisionsIterator'](_0x4ac164['newRevisionId']))if(_0x423d73['push'](_0x2df2a2),_0x2df2a2['id']===_0x4ac164['oldRevisionId'])break;return _0x423d73;}*['getRevisionsIterator'](_0x1bbf5c,{direction:_0x1e3088='earlier',filter:_0x3e7624=()=>!0x0}={}){const _0x1b515e='earlier'===_0x1e3088?0x1:-0x1;let _0x1bd1bc=this['_revisions']['get'](_0x1bbf5c),_0x2d3f8c=this['getIndex'](_0x1bd1bc);for(yield _0x1bd1bc;_0x1bd1bc;){if(_0x2d3f8c+=_0x1b515e,_0x1bd1bc=this['getRevision'](_0x2d3f8c),!_0x1bd1bc)return;_0x3e7624(_0x1bd1bc)&&(yield _0x1bd1bc);}}}async function checkLicense$4(_0x519a2a){const _0x32ce2a=_0x2e3152([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]),_0x38b1fb=0xeb829,_0x48435e=window[_0x2e3152([0x44,0x61,0x74,0x65])][_0x2e3152([0x6e,0x6f,0x77])](),_0x313828=_0x519a2a[_0x2e3152([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e3f2b=new window[(_0x2e3152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c992d=>{_0x313828[_0x2e3152([0x6f,0x6e,0x63,0x65])](_0x2e3152([0x72,0x65,0x61,0x64,0x79]),_0x3c992d);}),_0x43d376={[_0x2e3152([0x6b,0x74,0x79])]:_0x2e3152([0x45,0x43]),[_0x2e3152([0x75,0x73,0x65])]:_0x2e3152([0x73,0x69,0x67]),[_0x2e3152([0x63,0x72,0x76])]:_0x2e3152([0x50,0x2d,0x32,0x35,0x36]),[_0x2e3152([0x78])]:_0x2e3152([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]),[_0x2e3152([0x79])]:_0x2e3152([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]),[_0x2e3152([0x61,0x6c,0x67])]:_0x2e3152([0x45,0x53,0x32,0x35,0x36])},_0x9df127=_0x313828[_0x2e3152([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e3152([0x67,0x65,0x74])](_0x2e3152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x127d2a=await(async function(){let _0x3642fc,_0x151ba2=null,_0x298d61=null;try{if(_0x9df127==_0x2e3152([0x47,0x50,0x4c]))return _0x2e3152([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3642fc=(function(){const _0x4a1e2d=_0x9df127[_0x2e3152([0x73,0x70,0x6c,0x69,0x74])](_0x2e3152([0x2e]));if(0x3!=_0x4a1e2d[_0x2e3152([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5d8bf8=_0x4a1e2d[0x1];return _0x32b09d(_0x5d8bf8);function _0x32b09d(_0x1e38c9){const _0x15bc9f=_0x2d5e7a(_0x1e38c9);return _0x15bc9f&&_0x5bb0d0()?_0x15bc9f:null;function _0x5bb0d0(){const _0x9505c5=_0x15bc9f[_0x2e3152([0x6a,0x74,0x69])],_0xf0a2ad=window[_0x2e3152([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9505c5[_0x2e3152([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9505c5[_0x2e3152([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x29f347={..._0x15bc9f,[_0x2e3152([0x6a,0x74,0x69])]:_0x9505c5[_0x2e3152([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x9505c5[_0x2e3152([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x29f347[_0x2e3152([0x76,0x63])],_0x2876aa(_0x29f347)==_0xf0a2ad;}}}()),!_0x3642fc)return _0x2e3152([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x3642fc[_0x2e3152([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x298d61=function(_0x13932d,_0x253255){return new window[(_0x2e3152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x257e10=>{if(_0x2b4024())return _0x257e10(_0x2e3152([0x56,0x61,0x6c,0x69,0x64]));_0x374c16(),_0x313828[_0x2e3152([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e3152([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x520f56=!0x1;const _0x5c0f32=uid();function _0x182783(_0x44cc37){return!!_0x44cc37&&(typeof _0x44cc37===_0x2e3152([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x44cc37===_0x2e3152([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x44cc37[_0x2e3152([0x74,0x68,0x65,0x6e])]===_0x2e3152([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x44cc37[_0x2e3152([0x63,0x61,0x74,0x63,0x68])]===_0x2e3152([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3887ad(_0x59b13d){_0x31f24c(_0x59b13d)[_0x2e3152([0x74,0x68,0x65,0x6e])](_0x20061a=>{if(!_0x20061a||_0x20061a[_0x2e3152([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e3152([0x6f,0x6b]))return _0x2e3152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a6ac1(_0x2876aa(_0x5c0f32+_0x253255))!=_0x20061a[_0x2e3152([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e3152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e3152([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e3152([0x74,0x68,0x65,0x6e])](_0x108fe8=>(_0x3e141b(),_0x108fe8),()=>{const _0x53433f=_0x46e760();return null==_0x53433f?(_0x3e141b(),_0x2e3152([0x56,0x61,0x6c,0x69,0x64])):_0x2e3152(_0x48435e-_0x53433f>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e3152([0x74,0x68,0x65,0x6e])](_0x257e10)[_0x2e3152([0x63,0x61,0x74,0x63,0x68])](()=>{_0x257e10(_0x2e3152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xad6265=0x36ee80;function _0x3e141b(){const _0x4abfdb=_0x2e3152([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a6ac1(_0x2876aa(_0x13932d)),_0x51c9d5=_0x261897(_0x3a6ac1(window[_0x2e3152([0x4d,0x61,0x74,0x68])][_0x2e3152([0x63,0x65,0x69,0x6c])](_0x48435e/_0xad6265)));window[_0x2e3152([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e3152([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4abfdb,_0x51c9d5);}function _0x46e760(){const _0x4adb5d=_0x2e3152([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a6ac1(_0x2876aa(_0x13932d)),_0x59bc8e=window[_0x2e3152([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e3152([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4adb5d);return _0x59bc8e?window[_0x2e3152([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x261897(_0x59bc8e),0x10)*_0xad6265:null;}function _0x31f24c(_0x2ef159){return new window[(_0x2e3152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e0d28,_0x13f7d6)=>{_0x2ef159[_0x2e3152([0x74,0x68,0x65,0x6e])](_0x3e0d28,_0x13f7d6),window[_0x2e3152([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13f7d6,0x1d4c0);});}}_0x313828[_0x2e3152([0x6f,0x6e])](_0x2e3152([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a81aa,_0x57db22)=>{if(_0x57db22[0x0]!=_0x13932d)return _0x257e10(_0x2e3152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57db22[0x1]={..._0x57db22[0x1],[_0x2e3152([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c0f32};},{[_0x2e3152([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e3152([0x68,0x69,0x67,0x68])}),_0x313828[_0x2e3152([0x6f,0x6e])](_0x2e3152([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9fa6f0=>{_0x182783(_0x9fa6f0[_0x2e3152([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x520f56=!0x0,_0x3887ad(_0x9fa6f0[_0x2e3152([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e3152([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e3152([0x6c,0x6f,0x77])}),_0x3e3f2b[_0x2e3152([0x74,0x68,0x65,0x6e])](()=>{_0x520f56||_0x257e10(_0x2e3152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b4024(){return _0x313828[_0x2e3152([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e3152([0x76,0x69,0x65,0x77])][_0x2e3152([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e3152([0x61,0x75,0x74,0x6f]);}function _0x374c16(){_0x313828[_0x2e3152([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e3152([0x76,0x69,0x65,0x77])][_0x2e3152([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e3152([0x61,0x75,0x74,0x6f]);}}(_0x3642fc[_0x2e3152([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3642fc[_0x2e3152([0x6a,0x74,0x69])]));const _0x3bd611=await(async function(){let _0x116763=!0x0;try{const _0x566e8b=_0x9df127[_0x2e3152([0x73,0x70,0x6c,0x69,0x74])](_0x2e3152([0x2e])),[_0x45d5df,_0x1980c8,_0x32b649]=_0x566e8b;return _0x4b78ff(_0x45d5df),await _0x1295c5(_0x45d5df,_0x1980c8,_0x32b649),_0x116763;}catch{return!0x1;}function _0x4b78ff(_0x5dd6fb){const _0x3a1142=_0x2d5e7a(_0x5dd6fb);_0x3a1142&&_0x3a1142[_0x2e3152([0x61,0x6c,0x67])]==_0x2e3152([0x45,0x53,0x32,0x35,0x36])||(_0x116763=!0x1);}async function _0x1295c5(_0x52ec6f,_0x4b5f52,_0x507469){const _0x127633=window[_0x2e3152([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e3152([0x66,0x72,0x6f,0x6d])](_0x2c5fb4(_0x507469),_0x28f0ac=>_0x28f0ac[_0x2e3152([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29b537=new window[(_0x2e3152([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e3152([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52ec6f+_0x2e3152([0x2e])+_0x4b5f52),_0x24bd43=window[_0x2e3152([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e3152([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24bd43)return;const _0x12391b=await _0x24bd43[_0x2e3152([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e3152([0x6a,0x77,0x6b]),_0x43d376,{[_0x2e3152([0x6e,0x61,0x6d,0x65])]:_0x2e3152([0x45,0x43,0x44,0x53,0x41]),[_0x2e3152([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e3152([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e3152([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24bd43[_0x2e3152([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e3152([0x6e,0x61,0x6d,0x65])]:_0x2e3152([0x45,0x43,0x44,0x53,0x41]),[_0x2e3152([0x68,0x61,0x73,0x68])]:{[_0x2e3152([0x6e,0x61,0x6d,0x65])]:_0x2e3152([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12391b,_0x127633,_0x29b537)||(_0x116763=!0x1);}}());return _0x3bd611?(function(){const _0x6ceb92=_0x3642fc[_0x2e3152([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x6ceb92)return!0x1;if(_0x6ceb92[_0x2e3152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e3152([0x2a])))return!0x0;if(_0x6ceb92[_0x2e3152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e3152([0x52,0x48])))return!0x0;if(_0x6ceb92[_0x2e3152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e3152([0x52,0x52,0x48]))){if(_0xc9480d(_0x2e3152([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3796ed(_0x2e3152([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2e3152([0x73,0x74,0x61,0x74,0x65])]==_0x2e3152([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0xc9480d(_0x2e3152([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]))||_0xc9480d(_0x2e3152([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 _0x3241b9=[_0x2e3152([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e3152([0x74,0x72,0x69,0x61,0x6c])][_0x2e3152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3642fc[_0x2e3152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x48435e/0x3e8:0x69cb0e80;return _0x3642fc[_0x2e3152([0x65,0x78,0x70])]<_0x3241b9;}())?_0x2e3152([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x3292ea=_0x3642fc[_0x2e3152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3292ea||0x0==_0x3292ea[_0x2e3152([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe07c9e}=new URL(window[_0x2e3152([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3292ea[_0x2e3152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe07c9e))return!0x0;const _0x51ed13=_0xe07c9e[_0x2e3152([0x73,0x70,0x6c,0x69,0x74])](_0x2e3152([0x2e]));return _0x3292ea[_0x2e3152([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x493709=>_0x493709[_0x2e3152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e3152([0x2a])))[_0x2e3152([0x6d,0x61,0x70])](_0x36d97c=>_0x36d97c[_0x2e3152([0x73,0x70,0x6c,0x69,0x74])](_0x2e3152([0x2e])))[_0x2e3152([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x248a45=>_0x248a45[_0x2e3152([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x51ed13[_0x2e3152([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e3152([0x6d,0x61,0x70])](_0x27ff8b=>Array(_0x51ed13[_0x2e3152([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27ff8b[_0x2e3152([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e3152([0x66,0x69,0x6c,0x6c])](_0x27ff8b[0x0]===_0x2e3152([0x2a])?_0x2e3152([0x2a]):'')[_0x2e3152([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27ff8b))[_0x2e3152([0x73,0x6f,0x6d,0x65])](_0x22cb69=>_0x51ed13[_0x2e3152([0x65,0x76,0x65,0x72,0x79])]((_0x427f6c,_0x178497)=>_0x22cb69[_0x178497]===_0x427f6c||_0x22cb69[_0x178497]===_0x2e3152([0x2a])));}())?(_0x3642fc[_0x2e3152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e3152([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x151ba2=function(_0x3fd219){const _0x1a2d90=new window[(_0x2e3152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ea1b4=>setTimeout(_0x4ea1b4,0x93ecc)),_0x506c41=_0x3e3f2b[_0x2e3152([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e3152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56c3f5=>{const _0x2cf5c7=0x7,_0x2b0a2e=_0x519a2a[_0x2e3152([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5bff78(){_0x2b0a2e[_0x2e3152([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2cf5c7&&_0x56c3f5();}_0x5bff78(),_0x2b0a2e[_0x2e3152([0x6f,0x6e])](_0x2e3152([0x61,0x64,0x64]),_0x5bff78);})),_0x592d31=new window[(_0x2e3152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27cb68=>{function _0x42f969(){for(const _0x1493e3 in window)if(window[_0x2e3152([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2e3152([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1493e3))&&window[_0x1493e3]==_0x38b1fb)return _0x27cb68();_0x313828[_0x2e3152([0x73,0x74,0x61,0x74,0x65])]!=_0x2e3152([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2e3152([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42f969,0x1388);}_0xc9480d(_0x2e3152([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x42f969();}),_0xe3bb11=[_0x1a2d90,_0x506c41,_0x592d31];return window[_0x2e3152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e3152([0x72,0x61,0x63,0x65])](_0xe3bb11)[_0x2e3152([0x74,0x68,0x65,0x6e])](()=>_0x3fd219);}(_0x2e3152([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x151ba2&&_0x298d61)return new window[(_0x2e3152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x551a56,_0x273442)=>{_0x151ba2[_0x2e3152([0x74,0x68,0x65,0x6e])](_0x551a56,_0x273442),_0x298d61[_0x2e3152([0x74,0x68,0x65,0x6e])](_0x2f99e9=>{_0x2f99e9!=_0x2e3152([0x56,0x61,0x6c,0x69,0x64])&&_0x551a56(_0x2f99e9);},_0x273442);});return _0x151ba2||_0x298d61||_0x2e3152([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2e3152([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e3152([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e3152([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2e3152([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x89c461(){const _0x5f4a29=window[_0x2e3152([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e3152([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e3152([0x6e,0x6f,0x77])]())[_0x2e3152([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e3152([0x2e]),'');let _0x50796a=_0x2e3152([0x76]);for(let _0x54bce8=0x0;_0x54bce8<_0x5f4a29[_0x2e3152([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54bce8+=0x2){let _0x23c010=window[_0x2e3152([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f4a29[_0x2e3152([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54bce8,_0x54bce8+0x2));_0x23c010>=_0x32ce2a[_0x2e3152([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x23c010-=_0x32ce2a[_0x2e3152([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50796a+=_0x32ce2a[_0x23c010];}return _0x50796a;}function _0x2d5e7a(_0x4de695){return _0x4de695[_0x2e3152([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e3152([0x65,0x79]))?JSON[_0x2e3152([0x70,0x61,0x72,0x73,0x65])](_0x2c5fb4(_0x4de695)):null;}function _0x2c5fb4(_0x374274){return window[_0x2e3152([0x61,0x74,0x6f,0x62])](_0x374274[_0x2e3152([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e3152([0x2b]))[_0x2e3152([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e3152([0x2f])));}function _0x2876aa(_0x21cdb8){let _0x4e8e8d=0x1505;function _0x3ba9cc(_0xf57092){for(let _0x5cbc87=0x0;_0x5cbc87<_0xf57092[_0x2e3152([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cbc87++){const _0x4023ac=_0xf57092[_0x2e3152([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5cbc87);_0x4e8e8d=(_0x4e8e8d<<0x5)+_0x4e8e8d+_0x4023ac,_0x4e8e8d&=_0x4e8e8d;}}return function _0x215963(_0x5d37ae){Array[_0x2e3152([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d37ae)?_0x5d37ae[_0x2e3152([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x215963):_0x5d37ae&&typeof _0x5d37ae==_0x2e3152([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e3152([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d37ae)[_0x2e3152([0x73,0x6f,0x72,0x74])]()[_0x2e3152([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28e776,_0x52dfe5])=>{_0x3ba9cc(_0x28e776),_0x215963(_0x52dfe5);}):_0x3ba9cc(window[_0x2e3152([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d37ae));}(_0x21cdb8),_0x4e8e8d>>>0x0;}function _0x3a6ac1(_0x55f465){return _0x55f465[_0x2e3152([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e3152([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e3152([0x30]));}function _0x261897(_0x3183ad){return _0x3183ad[_0x2e3152([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e3152([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e3152([0x6a,0x6f,0x69,0x6e])]('');}function _0xc9480d(_0x1f0b41){return _0x313828[_0x2e3152([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e3152([0x68,0x61,0x73])](_0x1f0b41);}function _0x3796ed(_0x17f512){return _0x313828[_0x2e3152([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e3152([0x67,0x65,0x74])](_0x17f512);}function _0x94fc67(){}function _0x2e3152(_0xb4450){return _0xb4450['map'](_0x3fc39f=>String['fromCharCode'](_0x3fc39f))['join']('');}!function(_0xba1e01){const _0x869f13=_0x89c461();_0x313828[_0x869f13]=_0x2e3152([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])+_0xba1e01,_0xba1e01[_0x2e3152([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2e3152([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x89c461()]=_0x38b1fb),_0xba1e01!=_0x2e3152([0x56,0x61,0x6c,0x69,0x64])&&(async function(){if(await _0x3e3f2b,_0xc9480d(_0x2e3152([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x54a7b7=_0x519a2a[_0x2e3152([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2c76a5=_0x519a2a[_0x2e3152([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])](_0x54a7b7[_0x2e3152([0x69,0x64])]),_0xd22317=_0x3796ed(_0x2e3152([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xd22317[_0x2e3152([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x54a7b7['id'],_0x2c76a5?_0x2c76a5['id']:null,!0x0),_0xd22317[_0x2e3152([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2e3152([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xd22317[_0x2e3152([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xd22317[_0x2e3152([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x94fc67,void(_0xd22317[_0x2e3152([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x94fc67);}if(_0xc9480d(_0x2e3152([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1f93a3=_0x3796ed(_0x2e3152([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1f93a3[_0x2e3152([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2e3152([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1f93a3[_0x2e3152([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1f93a3[_0x2e3152([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x94fc67,_0x1f93a3[_0x2e3152([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x94fc67;}_0x313828[_0x2e3152([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e3152([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x94fc67,_0x313828[_0x2e3152([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e3152([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x94fc67,_0x313828[_0x2e3152([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e3152([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x127d2a);}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'](_0x52bc75,_0x3962a7){if(_0x52bc75['diffData']||!_0x3962a7)return;const _0x28c137=this['editor']['config']['get']('collaboration.channelId'),_0x170be5=await _0x3962a7['getRevision']({'channelId':_0x28c137,'revisionId':_0x52bc75['id']});_0x52bc75['diffData']=_0x170be5['diffData'];}['getRevisionDocumentData'](_0xe35438){const _0x470a6f={};for(const _0x260a1d in _0xe35438['diffData']){if(_0xe35438['diffData'][_0x260a1d]['attachChange']&&!_0xe35438['diffData'][_0x260a1d]['attachChange']['isAttached'])continue;const _0xafff21=this['_removeRevisionMarkers'](JSON['parse'](_0xe35438['diffData'][_0x260a1d]['insertions'])),_0x1b38fa=this['editor']['editing']['view']['document'],_0x139014=new ViewDocumentFragment(_0x1b38fa,_0xafff21['map'](_0x56b408=>this['_getViewFromDiffObj'](_0x56b408,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x470a6f[_0x260a1d]=this['editor']['data']['processor']['toData'](_0x139014),this['editor']['data']['processor']['useFillerType']('default');}return _0x470a6f;}['getRevisionRootsAttributes'](_0x4adb0a){const _0x45775a={};for(const _0x2b7ca0 in _0x4adb0a['diffData'])_0x4adb0a['diffData'][_0x2b7ca0]['attachChange']&&!_0x4adb0a['diffData'][_0x2b7ca0]['attachChange']['isAttached']||(_0x45775a[_0x2b7ca0]=_0x4adb0a['diffData'][_0x2b7ca0]['attributesAfter']||{});return _0x45775a;}['_getTypeCharForViewElement'](_0x37fe99){return this['_viewClassToTypeChar']['get'](_0x37fe99['constructor']);}['_getViewFromDiffObj'](_0x4136a9,_0x2cc8dc){const _0x592ab1=this['editor']['editing']['view']['document'];if('string'==typeof _0x4136a9)return new ViewText(_0x592ab1,_0x4136a9);{let _0x219f5a,_0x121188;_0x121188='u'==_0x4136a9['type']||'r'==_0x4136a9['type']?[]:_0x4136a9['children']['map'](_0x253d20=>this['_getViewFromDiffObj'](_0x253d20,_0x2cc8dc));const _0x1a64c4=this['_typeCharToViewClass']['get'](_0x4136a9['type'])||ViewElement,_0x5a8919=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x219f5a=new _0x1a64c4(_0x592ab1,_0x4136a9['name'],_0x4136a9['attributes'],_0x121188),'u'==_0x4136a9['type']&&_0x4136a9['children'][0x0]){const _0x21e7b3=_0x4136a9['children'][0x0];if(_0x219f5a['render']=function(_0x57a9ba){const _0x55dfe0=_0x57a9ba['createElement']('div');return _0x55dfe0['innerHTML']=_0x21e7b3,_0x55dfe0['childNodes'][0x0];},_0x2cc8dc){const _0x127333=new ViewDocumentFragment(_0x592ab1);_0x127333['_appendChild'](_0x219f5a);const _0x2efa4e=Array['from'](_0x5a8919['viewChildrenToDom'](_0x127333,{'bind':!0x1})),_0x4d1029=_0x5a8919['domDocument']['createElement']('div');_0x4d1029['append'](..._0x2efa4e),_0x219f5a=Array['from'](_0x5a8919['domChildrenToView'](_0x4d1029))[0x0];}}else{if('r'==_0x4136a9['type']&&_0x4136a9['children'][0x0]){const _0x523a06=_0x4136a9['children'][0x0];if(_0x219f5a['render']=function(_0x1ef094){_0x1ef094['innerHTML']=_0x523a06;},_0x2cc8dc){const _0x585109=new ViewDocumentFragment(_0x592ab1);_0x585109['_appendChild'](_0x219f5a);const _0xa51d00=Array['from'](_0x5a8919['viewChildrenToDom'](_0x585109,{'bind':!0x1})),_0xc81886=_0x5a8919['domDocument']['createElement']('div');_0xc81886['append'](..._0xa51d00);const _0x1acf6d=Array['from'](_0x5a8919['domChildrenToView'](_0xc81886));_0x1acf6d['length']>0x1?_0x219f5a['_appendChild'](_0x1acf6d):_0x219f5a=_0x1acf6d[0x0];}}}if(_0x4136a9['customProperties']){for(const [_0x315cc7,_0x170272]of _0x4136a9['customProperties'])_0x219f5a['_setCustomProperty'](_0x315cc7,_0x170272);}const _0x166310=void 0x0===_0x4136a9['fillerOffset']?null:_0x4136a9['fillerOffset'];return null!==_0x166310&&(_0x219f5a['getFillerOffset']=()=>_0x166310),_0x219f5a;}}['_makeModelFromViewString'](_0x146e63){const _0x1fcc4c=JSON['parse'](_0x146e63),_0x4706ac=this['editor']['editing']['view']['document'],_0x4cfa11=new ViewDocumentFragment(_0x4706ac,_0x1fcc4c['map'](_0x7c09c8=>this['_getViewFromDiffObj'](_0x7c09c8,!0x0)));return this['editor']['data']['toModel'](_0x4cfa11);}['_removeRevisionMarkers'](_0x188616){return(_0x188616=_0x188616['filter'](_0x128a92=>!_0x128a92['name']||'revision-start'!==_0x128a92['name']&&'revision-end'!==_0x128a92['name']))['forEach'](_0x393fc9=>{'string'!=typeof _0x393fc9&&(_0x393fc9['children']=this['_removeRevisionMarkers'](_0x393fc9['children']),_0x393fc9['attributes']=_0x393fc9['attributes']['filter'](_0x593ac2=>!_0x593ac2[0x0]['startsWith']('data-revision-')));}),_0x188616;}}function getTranslation$4(_0x2938a6,_0x4d33c3,_0x2119c1){const t=_0x2938a6['t'];switch(_0x4d33c3){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'},_0x2119c1);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2119c1);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(_0x3db265){super(_0x3db265),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 _0x538192=uid();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x538192},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 _0x9ca6ee=this['repository']['getRevision'](0x0),_0x2583ce=_0x9ca6ee&&null===_0x9ca6ee['creator']?_0x9ca6ee:null;if(this['_continueCurrentRevision']=!!_0x2583ce&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x275c5f=this['_source']['getCurrentRevisionId'](),_0x20890b=this['repository']['getRevision'](_0x275c5f);if(_0x20890b)this['_startingVersion']=_0x20890b['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x42272b=this['_source']['history']['_operations']['find'](_0x711986=>!_0x711986['_isInit']),_0x4f744c=_0x42272b?_0x42272b['baseVersion']:this['_source']['history']['version'];_0x9ca6ee?(_0x9ca6ee['toVersion']<_0x4f744c&&_0x9ca6ee['_update']({'toVersion':_0x4f744c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2583ce['id'],this['_startingVersion']=_0x2583ce['fromVersion']):(this['_startingVersion']=_0x9ca6ee['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4f744c,this['_continueCurrentRevision']=!0x1);}}else _0x2583ce&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2583ce['toVersion'],this['editor']['model']['document']['history']['version']),_0x2583ce['fromVersion']===_0x2583ce['toVersion']?(0x0!==_0x2583ce['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2583ce['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2583ce['id'],this['_startingVersion']=_0x2583ce['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',_0x34e272=>!_0x34e272),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5612af=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e5282;for(const _0x488541 in _0x5612af){const _0x1963bb=_0x488541,_0x4eaca6=_0x5612af[_0x1963bb];if('revisionHistoryLicenseKeyValid'==_0x4eaca6||'revisionHistoryLicenseKeyInvalid'==_0x4eaca6||'revisionHistoryLicenseKeyExpired'==_0x4eaca6||'revisionHistoryLicenseKeyDomainLimit'==_0x4eaca6||'revisionHistoryLicenseKeyNotAllowed'==_0x4eaca6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4eaca6||'revisionHistoryLicenseKeyUsageLimit'==_0x4eaca6){delete _0x5612af[_0x1963bb],_0x5e5282=_0x4eaca6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5e5282&&_0x5612af['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5e5282&&_0x5612af['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5e5282&&_0x5612af['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5e5282&&_0x5612af['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5e5282&&_0x5612af['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5e5282&&_0x5612af['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x280812=this['repository']['getRevision'](0x0),_0x4e1e7d=await this['getRevisionDocumentData'](_0x280812),_0x495469=await this['getRevisionRootsAttributes'](_0x280812);this['_replaceEditorDataWithRevisionData'](_0x4e1e7d,_0x495469);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x52a094){this['_source']=_0x52a094;}async['update'](){const _0x26fab2=await this['_source']['getLatestVersion']();if(_0x26fab2>this['currentRevision']['toVersion']){await this['_loadState']();const _0x42df07=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x26fab2});_0x42df07['authors']=_0x42df07['authorsIds']['map'](_0x5f6a08=>this['editor']['plugins']['get']('Users')['getUser'](_0x5f6a08)),this['currentRevision']['_update'](_0x42df07);}}async['saveRevision'](_0x2a5dd9={},_0x41f602=null){const _0x90e719=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x41f602>this['currentRevision']['toVersion']&&(_0x41f602=null),null===_0x41f602&&(_0x41f602=await this['_source']['getLatestVersion']());const _0x987ee=this['_getFromVersion'](_0x41f602),_0x23309e=this['buildRevisionData']({'from':_0x987ee,'to':_0x41f602});if(this['currentRevision']['toVersion']<_0x41f602){const _0x173107=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x41f602,'to':_0x41f602});_0x173107['authors']=[],_0x173107['authorsIds']=[],_0x173107['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x173107,!0x0),delete _0x173107['authors'],_0x90e719['push'](_0x173107);}_0x2a5dd9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2a5dd9['name']=_0x2a5dd9['name']||null,_0x2a5dd9['id']=_0x2a5dd9['id']||uid(),_0x2a5dd9={..._0x2a5dd9,..._0x23309e};const _0x27d374=this['addRevisionData'](_0x2a5dd9);_0x90e719['push'](_0x2a5dd9);const _0x22ae7b=this['repository']['getIndex'](_0x27d374);if(0x0!==_0x22ae7b){const _0x580e8a=this['repository']['getRevision'](_0x22ae7b-0x1);if(_0x580e8a['fromVersion']!==_0x41f602){const _0x3ec402=this['_revisionDataBuilder']['getData'](_0x41f602,_0x580e8a['toVersion']),_0x454a31={'id':_0x580e8a['id'],'diffData':_0x3ec402['diffData'],'authorsIds':_0x3ec402['authorsIds'],'authors':_0x3ec402['authorsIds']['map'](_0x59d14f=>this['editor']['plugins']['get']('Users')['getUser'](_0x59d14f)),'fromVersion':_0x41f602};_0x580e8a===this['currentRevision']&&(_0x454a31['createdAt']=new Date(_0x2a5dd9['createdAt']['getTime']()+0xa)),_0x580e8a['_update'](_0x454a31,!0x0),delete _0x454a31['authors'],_0x90e719['push'](_0x454a31);}}if(this['adapter']){for(const _0x4d50fc of _0x90e719)this['_bufferUpdate'](_0x4d50fc['id'],_0x4d50fc,!0x0);this['sendBufferedUpdates']();}return _0x27d374;}['addRevisionData'](_0x1c0af1){const _0x5d39eb=this['repository']['createRevision'](_0x1c0af1);return this['adapter']&&_0x5d39eb['on']('_update',(_0x5902cb,_0x2855c6,_0x56eecc)=>{_0x56eecc||(this['_bufferUpdate'](_0x2855c6['id'],_0x2855c6,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5d39eb,this['_findInsertionIndex'](_0x5d39eb)),_0x5d39eb;}async['getRevisionDocumentData'](_0x1e13ca){return await this['_utils']['loadRevisionData'](_0x1e13ca,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1e13ca);}async['getRevisionRootsAttributes'](_0x4ffbd9){return await this['_utils']['loadRevisionData'](_0x4ffbd9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4ffbd9);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x439d75=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x587761=0x0;_0x587761<_0x439d75['length'];_0x587761++){const _0x366a01=_0x439d75[_0x587761];let _0x42ff7b=!0x1;for(const _0x20f1f7 of Object['keys'](_0x366a01))void 0x0===_0x366a01[_0x20f1f7]?delete _0x366a01[_0x20f1f7]:'id'!==_0x20f1f7&&(_0x42ff7b=!0x0);_0x42ff7b||(_0x439d75[_0x587761]=null);}if(_0x439d75=_0x439d75['filter'](_0x5b99d2=>null!==_0x5b99d2),!_0x439d75['length'])return;for(let _0x39d7da=0x0;_0x39d7da<_0x439d75['length'];_0x39d7da++){const _0x5a485d=_0x439d75[_0x39d7da];void 0x0!==_0x5a485d['fromVersion']&&void 0x0===_0x5a485d['toVersion']&&(_0x5a485d['toVersion']=this['repository']['getRevision'](_0x5a485d['id'])['toVersion']),void 0x0!==_0x5a485d['toVersion']&&void 0x0===_0x5a485d['fromVersion']&&(_0x5a485d['fromVersion']=this['repository']['getRevision'](_0x5a485d['id'])['fromVersion']);}const _0x523ee6=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x439d75,_0x523ee6)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x24446f=>{if(_0x24446f){for(const _0x389bd7 of _0x24446f)this['setRevisionData']({'id':_0x389bd7['id'],'createdAt':_0x389bd7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x5b5b6e=null,from:_0x516128=null,to:_0x27f1d4=null}){_0x516128=null!==_0x516128?_0x516128:_0x5b5b6e['fromVersion'],_0x27f1d4=null!==_0x27f1d4?_0x27f1d4:_0x5b5b6e['toVersion'];const _0x1ae68d=this['_revisionDataBuilder']['getData'](_0x516128,_0x27f1d4),_0x501387={'diffData':_0x1ae68d['diffData'],'authorsIds':_0x1ae68d['authorsIds'],'fromVersion':_0x516128,'toVersion':_0x27f1d4};if(!_0x5b5b6e||_0x27f1d4!==_0x5b5b6e['toVersion']){const _0x439af2=_0x27f1d4-0x1,_0x4677f2=this['_source']['history']['getOperation'](_0x439af2);_0x501387['createdAt']=_0x4677f2&&_0x4677f2['createdAt']||new Date();}if(this['_loadedStateData']&&_0x516128===this['_loadedStateData']['fromVersion']){for(const _0x559fe3 of this['_loadedStateData']['authors'])_0x501387['authorsIds']['includes'](_0x559fe3['id'])||_0x501387['authorsIds']['push'](_0x559fe3['id']);}return _0x501387;}['_bufferUpdate'](_0x46059c,_0x296892,_0x398a76){if(this['_bufferedUpdates']['has'](_0x46059c)){const _0xb05b40=this['_bufferedUpdates']['get'](_0x46059c);_0x296892=_0x398a76?{..._0xb05b40,..._0x296892}:{..._0x296892,..._0xb05b40};}this['_bufferedUpdates']['set'](_0x46059c,_0x296892);}['setRevisionData'](_0x591b3a){const _0x7f801a=this['repository']['getRevision'](_0x591b3a['id']);if(_0x591b3a['createdAt']&&(_0x591b3a['createdAt']=new Date(_0x591b3a['createdAt'])),_0x591b3a['authorsIds']){const _0x169cdd=this['editor']['plugins']['get']('Users');_0x591b3a['authors']=_0x591b3a['authorsIds']['map'](_0x3fbbea=>_0x169cdd['getUser'](_0x3fbbea));}_0x7f801a['_update'](_0x591b3a,!0x0);}['_createInitialRevision'](_0x5c4854){const _0x476c50=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x476c50)this['_initialRevisionId']=_0x476c50['id'];else{const _0x120fb4=!this['editor']['model']['document']['roots']['find'](_0xfa2ad=>this['editor']['model']['hasContent'](_0xfa2ad)),_0x25b9e3=this['editor']['plugins']['get']('Users')['me']['id'],_0x523039=getTranslation$4(this['editor']['locale'],_0x120fb4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5c4854,'to':_0x5c4854,'id':this['_initialRevisionId'],'name':_0x523039,'creatorId':_0x25b9e3});}}['_createCurrentRevision'](_0x206718){const _0x2a4808=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2a4808),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x206718,'to':_0x206718,'id':_0x2a4808,'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'](_0x4b8dd0,_0x1b5ed4){const _0x27cf83={},_0x509fa6={},_0xde0f93=this['editor']['config']['get']('roots')||{};for(const [_0x2b6cc4,_0x372b95]of Object['entries'](_0xde0f93))_0x372b95['lazyLoad']||(_0x27cf83[_0x2b6cc4]=_0x372b95['initialData']??'',_0x509fa6[_0x2b6cc4]=_0x372b95['modelAttributes']||{});for(const _0x1cd28b of this['editor']['model']['document']['getRootNames']())_0x27cf83[_0x1cd28b]??='',_0x509fa6[_0x1cd28b]??={};let _0x453fd5=!0x1;const _0x45f673=Object['keys'](_0x27cf83),_0x299291=Object['keys'](_0x4b8dd0);for(const _0x2ff191 of _0x45f673){if(_0x27cf83[_0x2ff191]!==_0x4b8dd0[_0x2ff191]&&''!==_0x27cf83[_0x2ff191]['trim']()){_0x453fd5=!0x0;break;}if(!isEqual(_0x509fa6[_0x2ff191],_0x1b5ed4[_0x2ff191])&&Object['keys'](_0x509fa6[_0x2ff191])['length']>0x0){_0x453fd5=!0x0;break;}}_0x453fd5||(_0x453fd5=_0x299291['some'](_0x2b0885=>!this['editor']['model']['document']['getRoot'](_0x2b0885))),_0x453fd5&&logWarning('editor-initial-data-replaced-with-revision-data',{'editorData':_0x27cf83,'editorRootsAttributes':_0x509fa6,'revisionData':_0x4b8dd0,'revisionRootsAttributes':_0x1b5ed4});for(const [_0x4790db,_0x1c6ce1]of Object['entries'](_0x4b8dd0))this['editor']['config']['set']('roots.'+_0x4790db+'.initialData',_0x1c6ce1);for(const [_0xa3cd9b,_0x3aa15c]of Object['entries'](_0x1b5ed4))this['editor']['config']['set']('roots.'+_0xa3cd9b+'.modelAttributes',_0x3aa15c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x248490=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x248490['add'](getTranslation$4(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3432d4){const _0x53958c=this['repository']['getRevisions']();_0x53958c['reverse']();let _0x90fd83=0x0;for(;_0x90fd83<_0x53958c['length'];){const _0x4043d2=_0x53958c[_0x90fd83];if(_0x4043d2===this['currentRevision']){_0x90fd83++;continue;}if(_0x4043d2['id']===this['_initialRevisionId'])break;const _0x449ae7=_0x3432d4['toVersion']-_0x4043d2['toVersion']||_0x3432d4['fromVersion']-_0x4043d2['fromVersion'];if(_0x449ae7>0x0)break;if(_0x449ae7<0x0)_0x90fd83++;else{if(!_0x3432d4['creator']&&_0x4043d2['creator'])break;if(_0x4043d2['creator']||!_0x3432d4['creator']){if(_0x3432d4['createdAt']>_0x4043d2['createdAt'])break;_0x90fd83++;}else _0x90fd83++;}}return _0x90fd83;}['_getFromVersion'](_0x31e101){const _0x250208=this['repository']['getRevisions']();_0x250208['reverse'](),_0x250208['shift']();const _0x5c00cc=_0x250208['find'](_0x1d0751=>_0x1d0751['toVersion']<=_0x31e101)['toVersion'];return _0x5c00cc<this['_startingVersion']?this['_startingVersion']:_0x5c00cc;}['_makeRevision']({name:_0x3458bf,from:_0x2c4f63,to:_0x51859d,creatorId:_0x3624bf,id:_0x334554}){const _0x2bcc14=this['buildRevisionData']({'from':_0x2c4f63,'to':_0x51859d});_0x2bcc14['name']=_0x3458bf,_0x2bcc14['creatorId']=_0x3624bf,_0x2bcc14['id']=_0x334554;const _0x199587=this['addRevisionData'](_0x2bcc14);return this['adapter']&&this['_bufferUpdate'](_0x2bcc14['id'],_0x2bcc14,!0x0),_0x199587;}['_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(_0x6d27e0){this['editor']=_0x6d27e0,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'](_0x247c40){this['source']=_0x247c40;const _0x54be91=new Map(),_0xd2d591=new Map(),_0x97c235=this['editor']['model']['document']['roots']['map'](_0x553959=>_0x553959['rootName']);for(const _0x463c38 of _0x97c235){const _0x1972da=this['editor']['model']['document']['getRoot'](_0x463c38),_0x3a3cc4=_cloneRoot(_0x1972da);_0x54be91['set'](_0x463c38,_0x3a3cc4),_0xd2d591['set'](_0x463c38,Object['fromEntries'](_0x1972da['getAttributes']()));}const _0x2273bd=Array['from'](this['editor']['model']['markers'])['map'](_0x1ec4a4=>[_0x1ec4a4['name'],_0x1ec4a4['getRange']()]),_0xc28391=this['source']['version'];this['_saveMetaData'](_0xc28391,_0x54be91,_0x2273bd,_0xd2d591),this['_startingRevisionId']=this['_revisionId'];const _0x29efa6=new Map(),_0x50d954=new Map();for(const _0x2d1979 of _0x97c235){const _0x4f655e=_emptyRoot(_0x2d1979);_0x29efa6['set'](_0x2d1979,_0x4f655e),_0x50d954['set'](_0x2d1979,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x29efa6,[],_0x50d954);}['getData'](_0x52c9ed,_0xc903fe){if(this['_lastFrom']===_0x52c9ed&&this['_lastTo']<=_0xc903fe)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xc903fe,!0x0);else{if(!this['_savedMetaData']['has'](_0x52c9ed)){const _0x597358=this['_getPreviousFrom'](_0x52c9ed);this['_calculateMetaData'](_0x597358,_0x52c9ed,!0x1);}this['_calculateMetaData'](_0x52c9ed,_0xc903fe,!0x0);}return this['_lastFrom']=_0x52c9ed,this['_lastTo']=_0xc903fe,this['_getState']();}['loadState'](_0x38bfc4){if(!this['_savedMetaData']['has'](_0x38bfc4['fromVersion'])){const _0x328150=this['_getPreviousFrom'](_0x38bfc4['fromVersion']);this['_calculateMetaData'](_0x328150,_0x38bfc4['fromVersion'],!0x1);}this['_calculateMetaData'](_0x38bfc4['fromVersion'],_0x38bfc4['toVersion'],!0x1);const _0x489aeb=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x38bfc4['fromVersion'],this['_lastTo']=_0x38bfc4['toVersion'];for(const _0x128e5f in _0x38bfc4['diffData']){const _0x1be782=_0x38bfc4['diffData'][_0x128e5f]['attachChange'],_0x1d7995=cloneDeep(_0x38bfc4['diffData'][_0x128e5f]['attributesBefore'])||{},_0x1ec057=_0x489aeb['_makeModelFromViewString'](_0x38bfc4['diffData'][_0x128e5f]['deletions']);_0x1ec057['rootName']=_0x128e5f,_0x1ec057['_isAttached']=!_0x1be782||!_0x1be782['isAttached'],_0x1ec057['isAttached']=()=>_0x1ec057['_isAttached'],this['_baseRoots']['set'](_0x128e5f,_0x1ec057),this['_baseRootsAttributes']['set'](_0x128e5f,_0x1d7995),_0x1be782&&this['_touchedRoots']['set'](_0x128e5f,_0x1be782);const _0x3da5c6=this['_makeIdsRoot'](_0x1ec057);this['_baseIdsRoots']['set'](_0x128e5f,_0x3da5c6);for(const [_0x217802,_0x440b41]of _0x1ec057['markers']){if(!_0x217802['startsWith']('revision:'))continue;const _0x5f1356=_0x217802['split'](':')[0x2];for(const _0x354260 of _0x440b41['getWalker']({'singleCharacters':!0x0})){const _0x3f492b=this['_getVidAttributeName'](_0x354260),_0x275a89='elementEnd'==_0x354260['type']?_0x354260['previousPosition']['path']['slice'](0x0,-0x1):_0x354260['previousPosition']['path'],_0x5ad26c=_0x3da5c6['getNodeByPath'](_0x275a89)['getAttribute'](_0x3f492b);this['_touched']['set'](_0x5ad26c,{'userId':_0x5f1356});}_0x1ec057['markers']['delete'](_0x217802);}}this['_startingRevisionId']=this['_revisionId'];const _0x1ce012=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1e23b8=>!this['_touched']['has'](_0x1e23b8));let _0x24fd26=0x0;const _0x4b1775=new Map();for(const _0x80d601 in _0x38bfc4['diffData']){const _0x30adfb=_0x38bfc4['diffData'][_0x80d601]['attachChange'],_0x12c325=cloneDeep(_0x38bfc4['diffData'][_0x80d601]['attributesAfter'])||{},_0x10a414=_0x489aeb['_makeModelFromViewString'](_0x38bfc4['diffData'][_0x80d601]['insertions']);_0x10a414['rootName']=_0x80d601,_0x10a414['_isAttached']=!_0x30adfb||_0x30adfb['isAttached'],_0x10a414['isAttached']=()=>_0x10a414['_isAttached'],this['_diffRoots']['set'](_0x80d601,_0x10a414),this['_diffRootsAttributes']['set'](_0x80d601,_0x12c325);const _0x1eeaf5=this['_makeIdsRoot'](_0x10a414,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x80d601,_0x1eeaf5),_0x4b1775['set'](_0x80d601,_0x10a414['isAttached']()?_0x12c325:{});for(const [_0x263867,_0x293a48]of _0x10a414['markers']){if(!_0x263867['startsWith']('revision:'))continue;const _0x2f9877=_0x263867['split'](':')[0x2];for(const _0x141581 of _0x293a48['getWalker']({'singleCharacters':!0x0})){const _0xef77d5=this['_getVidAttributeName'](_0x141581),_0x4f5b9f=this['_revisionId']++,_0x558b8e='elementEnd'==_0x141581['type']?_0x141581['previousPosition']['path']['slice'](0x0,-0x1):_0x141581['previousPosition']['path'];_0x1eeaf5['getNodeByPath'](_0x558b8e)['_setAttribute'](_0xef77d5,_0x4f5b9f),this['_touched']['set'](_0x4f5b9f,{'userId':_0x2f9877});}_0x10a414['markers']['delete'](_0x263867);}for(const _0x27ce14 of this['editor']['model']['createRangeIn'](_0x10a414)['getWalker']({'singleCharacters':!0x0})){const _0x2f1887=this['_getVidAttributeName'](_0x27ce14),_0x21f27c='elementEnd'==_0x27ce14['type']?_0x27ce14['previousPosition']['path']['slice'](0x0,-0x1):_0x27ce14['previousPosition']['path'],_0x5317c3=_0x1eeaf5['getNodeByPath'](_0x21f27c);_0x5317c3['getAttribute'](_0x2f1887)>0x0||_0x5317c3['_setAttribute'](_0x2f1887,_0x1ce012[_0x24fd26++]);}for(const [_0x47fa74,_0x578951]of _0x10a414['markers'])_0x47fa74['startsWith']('revision:')||this['_markers']['set'](_0x47fa74,_0x578951);}const {roots:_0x39aa90}=this['_savedMetaData']['get'](_0x38bfc4['fromVersion']),{roots:_0x45b0e8}=this['_savedMetaData']['get'](_0x38bfc4['toVersion']),_0x35acde=_cloneRoot(_0x39aa90['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x35acde),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x35acde,Number['NEGATIVE_INFINITY']));const _0x37fd61=_cloneRoot(_0x45b0e8['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x37fd61),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x37fd61));const _0x57be80=Array['from'](this['_diffRoots'])['map'](([_0x5dcafa,_0xa2736b])=>[_0x5dcafa,_cloneRoot(_0xa2736b)]);this['_saveMetaData'](this['_lastTo'],_0x57be80,this['_markers'],_0x4b1775);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0xc1c2d5,_0x128651,_0x1b6af3,_0x152394){const _0x2909fa=new Map(_0x128651),_0x589b77=new Map(cloneDeep(_0x152394)),_0x1a5727=new Map();for(const [_0x356166,_0x3b4b21]of _0x1b6af3)_0x1a5727['set'](_0x356166,{'start':_0x3b4b21['start']['clone'](),'end':_0x3b4b21['end']['clone'](),'rootName':_0x3b4b21['root']['rootName']});this['_savedMetaData']['set'](_0xc1c2d5,{'roots':_0x2909fa,'markers':_0x1a5727,'rootsAttributes':_0x589b77});}['_removeMetaData'](_0x47bc4f){this['_savedMetaData']['delete'](_0x47bc4f);}['_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'](_0x8ad28a,_0x50cc66=null){let _0x34be8a=null;_0x8ad28a['is']('documentFragment')||(_0x34be8a=new ModelElement(_0x8ad28a['name'],{'vid_start':null===_0x50cc66?this['_revisionId']++:_0x50cc66++}));const _0x1ca914=[];for(const _0x4c7970 of _0x8ad28a['getChildren']())if(_0x4c7970['is']('element')){_0x1ca914['push'](this['_makeIdsRoot'](_0x4c7970,_0x50cc66));const _0xa3d6d9=_0x1ca914[_0x1ca914['length']-0x1];null!==_0x50cc66&&(_0x50cc66=_0xa3d6d9['is']('element','$text')?_0xa3d6d9['getAttribute']('vid')+0x1:_0xa3d6d9['getAttribute']('vid_end')+0x1);}else{for(let _0x32dec9=0x0;_0x32dec9<_0x4c7970['offsetSize'];_0x32dec9++)_0x1ca914['push'](new ModelElement('$text',{'vid':null===_0x50cc66?this['_revisionId']++:_0x50cc66++}));}if(_0x8ad28a['is']('documentFragment')){const _0x57c2ff=_emptyRoot(_0x8ad28a['rootName']);return _0x57c2ff['_insertChild'](0x0,_0x1ca914),_0x57c2ff;}return _0x34be8a['_setAttribute']('vid_end',null===_0x50cc66?this['_revisionId']++:_0x50cc66++),_0x34be8a['_insertChild'](0x0,_0x1ca914),_0x34be8a;}['_calculateMetaData'](_0x101251,_0x1b445b,_0x696adc){this['_reset']();const {roots:_0x1e250b,markers:_0x477006,rootsAttributes:_0x2a512a}=this['_savedMetaData']['get'](_0x101251);this['_baseRoots']=new Map(_0x1e250b),this['_baseRootsAttributes']=new Map(cloneDeep(_0x2a512a));for(const [_0x4a655e,_0x27c7e1]of this['_baseRoots'])if('$graveyard'!==_0x4a655e&&(this['_diffRoots']['set'](_0x4a655e,_cloneRoot(_0x27c7e1)),this['_diffRootsAttributes']=new Map(cloneDeep(_0x2a512a)),_0x696adc)){const _0x19eb8f=this['_revisionId'];this['_idsRoots']['set'](_0x4a655e,this['_makeIdsRoot'](_0x27c7e1)),this['_baseIdsRoots']['set'](_0x4a655e,this['_makeIdsRoot'](_0x27c7e1,_0x19eb8f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',_cloneRoot(this['_baseRoots']['get']('$graveyard'))),_0x696adc&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x419c16,_0x5dabfd]of _0x477006){const _0x1459ff=this['_baseRoots']['get'](_0x5dabfd['rootName']),_0x1a96c6=this['_diffRoots']['get'](_0x5dabfd['rootName']),_0x3dc98b=new ModelRange(this['_fixPosition'](_0x5dabfd['start'],_0x1459ff),this['_fixPosition'](_0x5dabfd['end'],_0x1459ff)),_0x2a880c=this['_fixRange'](_0x3dc98b,_0x1a96c6);_0x1459ff['markers']['set'](_0x419c16,_0x3dc98b),this['_markers']['set'](_0x419c16,_0x2a880c);}this['_applyOperations'](_0x101251,_0x1b445b,_0x696adc);}['_applyOperations'](_0x3c2b4,_0x26fd09,_0x286620){for(const _0x87f0a6 of this['source']['getOperations'](_0x3c2b4,_0x26fd09))this['_handleOperation'](_0x87f0a6,_0x286620);for(const _0x3bef1d of this['_diffRoots']['values']())_0x3bef1d['markers']['clear']();for(const [_0x166c0e,_0x5e9447]of this['_markers']){this['_diffRoots']['get'](_0x5e9447['root']['rootName'])['markers']['set'](_0x166c0e,_0x5e9447['clone']());}const _0x59366b=new Map(),_0x1e6b7c=new Map();for(const [_0x17258a,_0x56b324]of this['_diffRoots'])_0x59366b['set'](_0x17258a,_cloneRoot(_0x56b324)),_0x1e6b7c['set'](_0x17258a,this['_diffRootsAttributes']['get'](_0x17258a));this['_saveMetaData'](_0x26fd09,_0x59366b,this['_markers'],_0x1e6b7c);}['_getPreviousFrom'](_0x2e203d){const _0x48a4bb=Array['from'](this['_savedMetaData']['keys']());_0x48a4bb['sort']((_0x5c0794,_0x2000f2)=>_0x5c0794-_0x2000f2),_0x48a4bb['reverse']();for(const _0x1777d4 of _0x48a4bb)if(_0x1777d4<_0x2e203d)return _0x1777d4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5d4eba,_0x3ba5d1){const _0x250d76=Array['from'](_0x3ba5d1['markers'])['map'](([_0x534a37,_0x52ff62])=>[_0x534a37,this['_fixRange'](_0x52ff62,_0x5d4eba)]);_0x5d4eba['markers']=new Map(_0x250d76);}['_transformMarkers'](_0x57bc12){for(const _0x19da39 of this['_markers']['values']()){const _0x5252c1=_0x19da39['getTransformedByOperation'](_0x57bc12),_0x304ebd=ModelRange['_createFromRanges'](_0x5252c1);_0x19da39['start']=_0x304ebd['start'],_0x19da39['end']=_0x304ebd['end'];}}['_handleOperation'](_0x3a662f,_0x102dab){if('addRoot'!=_0x3a662f['type']&&'detachRoot'!=_0x3a662f['type']){if('insert'==_0x3a662f['type']){const _0x3ec7b8=_0x3a662f['position']['root']['rootName'];this['_diffRoots']['has'](_0x3ec7b8)||(this['_diffRoots']['set'](_0x3ec7b8,_emptyRoot(_0x3ec7b8,!0x0)),this['_diffRootsAttributes']['set'](_0x3ec7b8,{}),_0x102dab&&this['_idsRoots']['set'](_0x3ec7b8,_emptyRoot(_0x3ec7b8,!0x0)));}else{if('addRootAttribute'==_0x3a662f['type']||'removeRootAttribute'==_0x3a662f['type']||'changeRootAttribute'==_0x3a662f['type'])return void this['_handleRootAttributeOperation'](_0x3a662f);'marker'==_0x3a662f['type']&&this['_handleMarkerOperation'](_0x3a662f);}if('marker'!==_0x3a662f['type']){const _0x582cd0=this['_cloneOperation'](_0x3a662f,this['_diffRoots']);_0x582cd0['_execute'](),this['_transformMarkers'](_0x582cd0);}if(_0x102dab)switch(_0x3a662f['type']){case'insert':this['_handleInsertOperation'](_0x3a662f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3a662f);break;case'merge':this['_handleMergeOperation'](_0x3a662f);break;case'split':this['_handleSplitOperation'](_0x3a662f);}}else this['_handleRootOperation'](_0x3a662f,_0x102dab);}['_cloneOperation'](_0x19a7b7,_0x2b77c0){const _0x473066=_0x19a7b7['clone']();return _0x473066['_authorId']=_0x19a7b7['_authorId'],this['_fixOperation'](_0x473066,_0x2b77c0),_0x473066;}['_getBaseVids'](_0x1b776c){return _0x1b776c['map'](_0x445315=>{const _0x5a533e=this['_getVidAttributeName'](_0x445315);return Number(_0x445315['item']['getAttribute'](_0x5a533e));});}['_generateTape'](_0x13a772,_0x4f1ae1){if(_0x13a772['is']('element','$text'))_0x4f1ae1['push']({'item':_0x13a772,'type':'text'});else{_0x13a772['is']('element')&&_0x4f1ae1['push']({'item':_0x13a772,'type':'elementStart'});for(const _0x222a3d of _0x13a772['getChildren']())this['_generateTape'](_0x222a3d,_0x4f1ae1);_0x13a772['is']('element')&&_0x4f1ae1['push']({'item':_0x13a772,'type':'elementEnd'});}return _0x4f1ae1;}['_getState'](){const _0xf60226=new Map(this['_touched']),_0x3e940e=new Map(_0xf60226),_0x26de03=new Map(),_0xd5ce21={'insertions':{},'deletions':{}},_0x1e0830={'insertions':{},'deletions':{}},_0x33f2df=new Map(),_0x23ff47=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x23ff47['delete']('$graveyard');for(const _0x1edf1e of _0x23ff47){const _0x2f89f7=this['_diffRoots']['get'](_0x1edf1e)||_emptyRoot(_0x1edf1e,!0x1),_0xaca53b=this['_baseRoots']['get'](_0x1edf1e)||_emptyRoot(_0x1edf1e,!0x1);_0x2f89f7['isAttached']()||_0xaca53b['isAttached']()?(_0xd5ce21['insertions'][_0x1edf1e]=_cloneRoot(_0x2f89f7),_0xd5ce21['deletions'][_0x1edf1e]=_cloneRoot(_0xaca53b),this['_copyMarkers'](_0xd5ce21['deletions'][_0x1edf1e],_0xaca53b),this['_copyMarkers'](_0xd5ce21['insertions'][_0x1edf1e],_0x2f89f7),_0x1e0830['insertions'][_0x1edf1e]=this['_generateTape'](this['_idsRoots']['get'](_0x1edf1e),[]),_0x1e0830['deletions'][_0x1edf1e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1edf1e)||_emptyRoot(_0x1edf1e,!0x1),[])):_0x23ff47['delete'](_0x1edf1e);}for(const _0x38f66e of _0x23ff47){const _0x259aed=_0x1e0830['insertions'][_0x38f66e];for(const _0x3c1b31 of _0x259aed){const _0x588acb=this['_getVidAttributeName'](_0x3c1b31),_0x170e9e=_0x3c1b31['item']['getAttribute'](_0x588acb);_0x3e940e['delete'](_0x170e9e),_0x170e9e>=this['_startingRevisionId']&&_0x26de03['set'](_0x170e9e,_0xf60226['get'](_0x170e9e));}}for(const _0x5e8bd0 of _0x23ff47){const _0x175598=_0x1e0830['insertions'][_0x5e8bd0],_0x2cf009=this['_getBaseVids'](_0x1e0830['deletions'][_0x5e8bd0]);let _0xc9752a=0x0;for(const _0x749dce of _0x175598){const _0x264f68=this['_getVidAttributeName'](_0x749dce),_0x1f7804=_0x749dce['item']['getAttribute'](_0x264f68);if(!_0x26de03['has'](_0x1f7804)&&!_0x33f2df['has'](_0x1f7804)){if(_0x3e940e['has'](_0x1f7804))_0xc9752a++;else{if(_0x1f7804!=_0x2cf009[_0xc9752a]){const _0xb828ea=_0xf60226['get'](_0x1f7804)||_0xf60226['get'](_0x2cf009[_0xc9752a]);for(;_0x1f7804!=_0x2cf009[_0xc9752a];)_0x3e940e['has'](_0x2cf009[_0xc9752a])||(_0x33f2df['set'](_0x2cf009[_0xc9752a],_0xb828ea),_0xf60226['set'](_0x2cf009[_0xc9752a],_0xb828ea)),_0xc9752a++;}_0xc9752a++;}}}}for(const _0x2b1927 of _0x23ff47){const _0x2b7d03=_0x1e0830['insertions'][_0x2b1927];for(const _0x18f8e8 of _0x2b7d03){const _0xb2b3b5=this['_getVidAttributeName'](_0x18f8e8),_0x3a6f4a=_0x18f8e8['item']['getAttribute'](_0xb2b3b5);if(_0x33f2df['has'](_0x3a6f4a)){const _0x4f758c=_0x33f2df['get'](_0x3a6f4a);_0x3e940e['has'](_0x3a6f4a)||_0x3e940e['set'](_0x3a6f4a,{..._0x4f758c}),_0x26de03['set'](_0x3a6f4a,{..._0x4f758c});}}}for(const _0x256c1a of _0x3e940e['keys']())_0x256c1a>=this['_startingRevisionId']&&_0x3e940e['delete'](_0x256c1a);const _0x3c4282=new Map();for(const _0xe32107 of _0x23ff47){let _0x4ff729=_0x1e0830['insertions'][_0xe32107];for(const _0x3d3ca9 of _0x4ff729)if(_0x3d3ca9['item']['is']('element','tableCell')){const _0x1b5cbb=this['_getVidAttributeName'](_0x3d3ca9),_0x4145a7=_0x3d3ca9['item']['getAttribute'](_0x1b5cbb);if(_0x26de03['has'](_0x4145a7)){const _0xe00c2=_0x3d3ca9['item']['parent']['parent']['getAttribute']('vid_start'),_0x4e1925=_0x3c4282['get'](_0xe00c2)||new Set();_0x4e1925['add'](_0x26de03['get'](_0x4145a7)['userId']),_0x3c4282['set'](_0xe00c2,_0x4e1925);}}_0x4ff729=_0x1e0830['deletions'][_0xe32107];for(const _0x280703 of _0x4ff729)if(_0x280703['item']['is']('element','tableCell')){const _0x19beda=this['_getVidAttributeName'](_0x280703),_0x43f17e=_0x280703['item']['getAttribute'](_0x19beda);if(_0x3e940e['has'](_0x43f17e)){const _0x545a4e=_0x280703['item']['parent']['parent']['getAttribute']('vid_start'),_0x1e387e=_0x3c4282['get'](_0x545a4e)||new Set();_0x1e387e['add'](_0x3e940e['get'](_0x43f17e)['userId']),_0x3c4282['set'](_0x545a4e,_0x1e387e);}}for(const _0xcc2eb8 of _0x3c4282['keys']())(_0x26de03['has'](_0xcc2eb8)||_0x3e940e['has'](_0xcc2eb8))&&_0x3c4282['delete'](_0xcc2eb8);}for(const _0x2584f5 of _0x23ff47){const _0x6985e2=_0x1e0830['insertions'][_0x2584f5];let _0x4702a7=null,_0x5356a4=null;for(const _0x32fffe of _0x6985e2){const _0x1ac157=this['_getVidAttributeName'](_0x32fffe),_0x594060=_0x32fffe['item']['getAttribute'](_0x1ac157),_0x135e64=_0x3c4282['get'](_0x594060);_0x135e64&&'elementStart'==_0x32fffe['type']&&(_0x4702a7=Array['from'](_0x135e64)[0x0],_0x5356a4=_0x32fffe['item']['getAttribute']('vid_end')),_0x4702a7&&(_0x3e940e['set'](_0x594060,{'userId':_0x4702a7}),_0x26de03['set'](_0x594060,{'userId':_0x4702a7})),_0x594060==_0x5356a4&&(_0x4702a7=null,_0x5356a4=null);}}const _0x300eac={},_0xfb609b=new Set();for(const _0xc3dffe of _0x23ff47){const _0x586044=_0xd5ce21['deletions'][_0xc3dffe],_0x45d881=_0xd5ce21['insertions'][_0xc3dffe];for(const {userId:_0x5f212c}of this['_touchedMarkers']['values']())null!==_0x5f212c&&_0xfb609b['add'](_0x5f212c);for(const {userId:_0x2ab5ed}of this['_touchedRoots']['values']())null!==_0x2ab5ed&&_0xfb609b['add'](_0x2ab5ed);this['_markChanges'](_0x45d881,_0x1e0830['insertions'][_0xc3dffe],_0x26de03,'insertion',_0xfb609b),this['_markChanges'](_0x586044,_0x1e0830['deletions'][_0xc3dffe],_0x3e940e,'deletion',_0xfb609b),_0x300eac[_0xc3dffe]={'insertions':this['_prepareViewToSave'](_0x45d881),'deletions':this['_prepareViewToSave'](_0x586044),'attachChange':this['_touchedRoots']['get'](_0xc3dffe)||null,'attributesBefore':cloneDeep(this['_baseRootsAttributes']['get'](_0xc3dffe))||{},'attributesAfter':cloneDeep(this['_diffRootsAttributes']['get'](_0xc3dffe))};}return{'diffData':_0x300eac,'authorsIds':Array['from'](_0xfb609b)};}['_processRootBeforeSave'](_0x272a46){for(const [,_0xe1fa6]of _0x272a46['markers']){const _0x465962=_0xe1fa6['start']['getAncestors']()['filter'](_0x3bc3ad=>'tableCell'==_0x3bc3ad['name']);for(const _0x26901b of _0x465962)0x1==_0x26901b['childCount']&&_0x26901b['getChild'](0x0)['is']('element','paragraph')&&_0x26901b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2a182f){this['_processRootBeforeSave'](_0x2a182f);const _0x875b66=this['editor']['data']['toView'](_0x2a182f,{}),_0x337fb4=Array['from'](_0x875b66['getChildren']())['map'](_0x41dfe7=>this['_getViewJson'](_0x41dfe7));return JSON['stringify'](_0x337fb4);}['_getViewJson'](_0xce73a4){if(_0xce73a4['is']('$text'))return _0xce73a4['data'];{const _0x243263=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1f16ea=_0xce73a4,_0x27f4a3=this['editor']['data']['htmlProcessor']['domConverter'],_0x1ace28={'type':_0x243263['_getTypeCharForViewElement'](_0x1f16ea),'name':_0x1f16ea['name'],'attributes':Array['from'](_0x1f16ea['getAttributes']()),'children':Array['from'](_0x1f16ea['getChildren']())['map'](_0x391bf2=>this['_getViewJson'](_0x391bf2))};if(_0xce73a4['is']('uiElement')&&'$comment'!=_0xce73a4['name']){const _0x4fb557=_0xce73a4['render'](_0x27f4a3['domDocument'],_0x27f4a3);_0x1ace28['children']['push'](_0x4fb557['outerHTML']);}else{if(_0xce73a4['is']('rawElement')){const _0x241f7c=_0x27f4a3['domDocument']['createElement'](_0x1f16ea['name']);_0xce73a4['render'](_0x241f7c,_0x27f4a3),_0x1ace28['children']['push'](_0x241f7c['innerHTML']);}}const _0x43eedf=Array['from'](_0x1f16ea['getCustomProperties']());_0x43eedf['length']>0x0&&(_0x1ace28['customProperties']=_0x43eedf);const _0x4e536f=_0x1f16ea['getFillerOffset']();return null!==_0x4e536f&&(_0x1ace28['fillerOffset']=_0x4e536f),_0x1ace28;}}['_markChanges'](_0x2f0dab,_0x2a7ec8,_0xadbeb0,_0x5823f9,_0x46d13c){let _0x4ef8de=null,_0x58f3a8=null,_0x173df0=0x0;const _0x57dd4c=this['editor']['model'];for(let _0x784c11=0x0;_0x784c11<_0x2a7ec8['length'];_0x784c11++){const _0x255a6a=this['_getVidAttributeName'](_0x2a7ec8[_0x784c11]),_0x3b15f9=_0x2a7ec8[_0x784c11]['item']['getAttribute'](_0x255a6a),_0x3359c7=_0xadbeb0['get'](_0x3b15f9),_0x3751e0=_0x784c11==_0x2a7ec8['length']-0x1;(!_0x4ef8de&&_0x3359c7&&(_0x4ef8de=_0x3359c7,_0x58f3a8=_0x2a7ec8[_0x784c11]),_0x4ef8de&&(!_0x3359c7||_0x3359c7['userId']!=_0x4ef8de['userId']))&&(_0x1a5d1b(_0x3359c7,_getPosBefore(_0x58f3a8,_0x2f0dab,_0x57dd4c),_getPosBefore(_0x2a7ec8[_0x784c11],_0x2f0dab,_0x57dd4c)),_0x4ef8de=_0x3359c7||null,_0x58f3a8=_0x3359c7?_0x2a7ec8[_0x784c11]:null),_0x4ef8de&&_0x3751e0&&_0x1a5d1b(_0x3359c7,_getPosBefore(_0x58f3a8,_0x2f0dab,_0x57dd4c),_getPosAfter(_0x2a7ec8[_0x784c11],_0x2f0dab,_0x57dd4c));}function _0x1a5d1b(_0x485e2e,_0x3c7a6a,_0x1cf818){const _0x4e9b0f=_0x4ef8de['userId'],_0x46c66b='revision:'+_0x5823f9+':'+_0x4e9b0f+':'+_0x173df0++,_0x9fbca4=_0x57dd4c['createRange'](_0x3c7a6a,_0x1cf818);_0x2f0dab['markers']['set'](_0x46c66b,_0x9fbca4),null!==_0x4e9b0f&&_0x46d13c['add'](_0x4e9b0f);}}['_getVidAttributeName'](_0x137114){switch(_0x137114['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x992d90,_0x4c6617){_0x992d90['baseVersion']=null;for(const _0x56be01 in _0x992d90){const _0x48ece4=_0x992d90[_0x56be01];if(_0x48ece4 instanceof ModelPosition){const _0x17dc9d=_0x4c6617['get'](_0x48ece4['root']['rootName']);_0x992d90[_0x56be01]=this['_fixPosition'](_0x48ece4,_0x17dc9d);}if(_0x48ece4 instanceof ModelRange){const _0x47bd28=_0x4c6617['get'](_0x48ece4['root']['rootName']);_0x992d90[_0x56be01]=this['_fixRange'](_0x48ece4,_0x47bd28);}'root'===_0x56be01&&(_0x992d90['root']=_0x4c6617['get'](_0x992d90['root']['rootName']));}}['_fixRange'](_0x15c4d1,_0x2ff554){return this['editor']['model']['createRange'](this['_fixPosition'](_0x15c4d1['start'],_0x2ff554),this['_fixPosition'](_0x15c4d1['end'],_0x2ff554));}['_fixPosition'](_0x3f3169,_0x39d451){return this['editor']['model']['createPositionFromPath'](_0x39d451,_0x3f3169['path'],_0x3f3169['stickiness']);}['_handleInsertOperation'](_0x29985c){const _0x3b7293=this['_idsRoots']['get'](_0x29985c['position']['root']['rootName']),_0x14a1aa=this['_fixPosition'](_0x29985c['position'],_0x3b7293),_0x3bda3f=null===_0x29985c['_authorId']?null:_0x29985c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x442a2e=_0x14a1aa['parent'],_0x4028e3=this['_revisionId'],_0x2ece42=[];for(const _0x162fff of _0x29985c['nodes'])if(_0x162fff['is']('element'))_0x2ece42['push'](this['_makeIdsRoot'](_0x162fff));else{for(let _0x271dd6=0x0;_0x271dd6<_0x162fff['offsetSize'];_0x271dd6++)_0x2ece42['push'](new ModelElement('$text',{'vid':this['_revisionId']++}));}const _0x22b7b6=this['_revisionId'];for(let _0x4c7291=_0x4028e3;_0x4c7291<_0x22b7b6;_0x4c7291++)this['_touched']['set'](_0x4c7291,{'userId':_0x3bda3f});_0x442a2e['_insertChild'](_0x14a1aa['offset'],_0x2ece42);}['_handleMoveOperation'](_0x36f6c5){(_0x36f6c5=this['_cloneOperation'](_0x36f6c5,this['_idsRoots']))['_execute']();const _0x38d463=null===_0x36f6c5['_authorId']?null:_0x36f6c5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3da200=_0x36f6c5['getMovedRangeStart'](),_0x3137e0=_0x3da200['parent'],_0xdc6227=_0x3da200['offset'];!function _0x5cfc70(_0x5da84a,_0x30b422,_0x28cfc6,_0x2fd7fb){for(let _0xa9a0a8=_0x28cfc6;_0xa9a0a8<_0x2fd7fb;_0xa9a0a8++){const _0x3ba3de=_0x30b422['getChild'](_0xa9a0a8);_0x3ba3de['is']('element','$text')?_0x5da84a['set'](_0x3ba3de['getAttribute']('vid'),{'userId':_0x38d463}):(_0x5da84a['set'](_0x3ba3de['getAttribute']('vid_start'),{'userId':_0x38d463}),_0x5cfc70(_0x5da84a,_0x3ba3de,0x0,_0x3ba3de['childCount']),_0x5da84a['set'](_0x3ba3de['getAttribute']('vid_end'),{'userId':_0x38d463}));}}(this['_touched'],_0x3137e0,_0xdc6227,_0xdc6227+_0x36f6c5['howMany']);}['_handleMergeOperation'](_0x28205a){const _0x27cac8=null===(_0x28205a=this['_cloneOperation'](_0x28205a,this['_idsRoots']))['_authorId']?null:_0x28205a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5dca19=_0x28205a['targetPosition']['parent'],_0x502b76=_0x28205a['sourcePosition']['parent'],_0x13dec0=_0x5dca19['getAttribute']('vid_end'),_0x442cd0=_0x502b76['getAttribute']('vid_start');_0x5dca19['_setAttribute']('vid_end',_0x502b76['getAttribute']('vid_end')),_0x502b76['_setAttribute']('vid_end',_0x13dec0),this['_touched']['set'](_0x442cd0,{'userId':_0x27cac8}),this['_touched']['set'](_0x13dec0,{'userId':_0x27cac8}),_0x28205a['_execute']();}['_handleSplitOperation'](_0x39c286){const _0x1520af=null===(_0x39c286=this['_cloneOperation'](_0x39c286,this['_idsRoots']))['_authorId']?null:_0x39c286['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2348b3=_0x39c286['graveyardPosition'],_0x47b7e3=_0x39c286['splitPosition']['parent'];_0x39c286['_execute']();const _0x3306cf=_0x47b7e3['getAttribute']('vid_end'),_0x432341=_0x39c286['insertionPosition']['nodeAfter'];if(_0x2348b3){const _0x48f617=_0x432341['getAttribute']('vid_end'),_0x3652f3=_0x47b7e3['getAttribute']('vid_end');_0x47b7e3['_setAttribute']('vid_end',_0x48f617),_0x432341['_setAttribute']('vid_end',_0x3652f3),this['_touched']['set'](_0x47b7e3['getAttribute']('vid_end'),{'userId':_0x1520af}),this['_touched']['set'](_0x432341['getAttribute']('vid_start'),{'userId':_0x1520af});}else{const _0x25c933=this['_revisionId']++,_0x4cbaaf=this['_revisionId']++;_0x47b7e3['_setAttribute']('vid_end',_0x25c933),_0x432341['_setAttribute']('vid_start',_0x4cbaaf),_0x432341['_setAttribute']('vid_end',_0x3306cf),this['_touched']['set'](_0x25c933,{'userId':_0x1520af}),this['_touched']['set'](_0x4cbaaf,{'userId':_0x1520af});}}['_handleMarkerOperation'](_0x189496){if(!_0x189496['affectsData'])return;const _0x5adb1e=(_0x189496=this['_cloneOperation'](_0x189496,this['_diffRoots']))['oldRange']?_0x189496['oldRange']['root']:null,_0x46c137=_0x189496['newRange']?_0x189496['newRange']['root']:null;_0x5adb1e&&this['_markers']['delete'](_0x189496['name']),_0x46c137&&this['_markers']['set'](_0x189496['name'],_0x189496['newRange']['clone']());const _0x1dffff=null===_0x189496['_authorId']?null:_0x189496['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1ce834=_0x189496['name'];if(!this['_touchedMarkers']['has'](_0x1ce834))return void this['_touchedMarkers']['set'](_0x1ce834,{'range':_0x189496['oldRange'],'userId':_0x1dffff});const _0x450ca5=this['_touchedMarkers']['get'](_0x1ce834),_0x38883f=_0x450ca5['range'],_0x2a7d01=_0x189496['newRange'];null==_0x38883f&&null==_0x2a7d01||_0x38883f&&_0x2a7d01&&_0x38883f['isEqual'](_0x2a7d01)?this['_touchedMarkers']['delete'](_0x189496['name']):_0x450ca5['userId']=_0x1dffff;}['_handleRootOperation'](_0x32bbd7,_0x13629f){this['_diffRoots']['has'](_0x32bbd7['rootName'])?this['_diffRoots']['get'](_0x32bbd7['rootName'])['_isAttached']=_0x32bbd7['isAdd']:(this['_diffRoots']['set'](_0x32bbd7['rootName'],_emptyRoot(_0x32bbd7['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x32bbd7['rootName'],{}),_0x13629f&&this['_idsRoots']['set'](_0x32bbd7['rootName'],_emptyRoot(_0x32bbd7['rootName'],!0x0)));const _0x40bb8f=null===_0x32bbd7['_authorId']?null:_0x32bbd7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3fb75=this['_touchedRoots']['get'](_0x32bbd7['rootName']);_0x3fb75&&_0x3fb75['userId']===_0x40bb8f?this['_touchedRoots']['delete'](_0x32bbd7['rootName']):this['_touchedRoots']['set'](_0x32bbd7['rootName'],{'userId':_0x40bb8f,'isAttached':_0x32bbd7['isAdd']});}['_handleRootAttributeOperation'](_0x5967be){const _0xd621c1=this['_diffRootsAttributes']['get'](_0x5967be['root']['rootName']);null===_0x5967be['newValue']?delete _0xd621c1[_0x5967be['key']]:_0xd621c1[_0x5967be['key']]=_0x5967be['newValue'];}}function _cloneRoot(_0x26f211){const _0x5ce208=_emptyRoot(_0x26f211['rootName'],_0x26f211['isAttached']());for(const _0x70f0d4 of _0x26f211['getChildren']()){const _0x29ae40=_0x70f0d4['_clone'](!0x0);_0x5ce208['_appendChild'](_0x29ae40);}return _0x5ce208;}function _emptyRoot(_0x3a1b62,_0x2e87bc=!0x0){const _0xdf580d=new ModelDocumentFragment();return _0xdf580d['rootName']=_0x3a1b62,_0xdf580d['_isAttached']=_0x2e87bc,_0xdf580d['isAttached']=()=>_0xdf580d['_isAttached'],_0xdf580d;}function _getPosBefore(_0x578153,_0x11cc8c,_0x4f93df){const _0x4b11bf='elementEnd'==_0x578153['type']?_0x4f93df['createPositionAt'](_0x578153['item'],'end'):_0x4f93df['createPositionBefore'](_0x578153['item']);return _0x4f93df['createPositionFromPath'](_0x11cc8c,_0x4b11bf['path'],_0x4b11bf['stickiness']);}function _getPosAfter(_0x432a98,_0x2b666c,_0x3a88c2){const _0x4bd9cf='elementStart'==_0x432a98['type']?_0x3a88c2['createPositionAt'](_0x432a98['item'],0x0):_0x3a88c2['createPositionAfter'](_0x432a98['item']);return _0x3a88c2['createPositionFromPath'](_0x2b666c,_0x4bd9cf['path'],_0x4bd9cf['stickiness']);}class RevisionHistorySaveRevisionFormView extends/* #__PURE__ -- @preserve */
CssTransitionDisablerMixin(View){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x273089,_0x763452){super(_0x273089),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x763452),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 _0x54a948=_0xcd3bf9=>_0xcd3bf9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x54a948),this['keystrokes']['set']('arrowleft',_0x54a948),this['keystrokes']['set']('arrowup',_0x54a948),this['keystrokes']['set']('arrowdown',_0x54a948);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x935902){this['revisionNameInputView']['fieldView']['element']['value']=_0x935902['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x378f44){const _0x35aa75=new LabeledFieldView(this['locale'],createLabeledInputText),_0x5063cd=_0x35aa75['fieldView'];_0x5063cd['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1d0773=getTranslation$4(this['locale'],'Name\x20of\x20the\x20revision');return!_0x378f44&&(_0x1d0773+='\x20('+getTranslation$4(this['locale'],'optional')+')'),(_0x35aa75['label']=_0x1d0773,_0x5063cd['on']('input',()=>{this['revisionNameInputValue']=_0x5063cd['element']['value']['trim']();}),_0x35aa75);}}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 _0x311fbe=this['editor'],_0x4b3957=_0x311fbe['plugins']['get']('RevisionTracker');_0x311fbe['ui']['componentFactory']['add']('revisionHistory',_0x17e762=>{const _0x421f66=createDropdown(_0x17e762),_0x115924=_0x421f66['panelView']['children'],_0x4ba055=new ListView(_0x17e762),_0x4f319e=new ListItemView(_0x17e762),_0x3f87af=this['_createSaveRevisionButton'](ButtonView),_0x3d767c=new ListItemView(_0x17e762),_0xf4cf6b=this['_createOpenRevisionButton'](ButtonView);return _0x421f66['bind']('isEnabled')['to'](_0x4b3957,'isReady',_0x4b3957,'isEnabled',_0x311fbe,'isReadOnly',(_0x230c47,_0x3db6a6,_0x138f87)=>_0x230c47&&_0x3db6a6&&!_0x138f87),_0x421f66['buttonView']['set']({'icon':IconHistory,'label':getTranslation$4(_0x17e762,'Revision\x20history'),'tooltip':!0x0}),_0x3f87af['set']({'withText':!0x0,'role':'menuitem'}),_0xf4cf6b['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0xf4cf6b,'execute',()=>{_0x421f66['isOpen']=!0x1,_0x311fbe['editing']['view']['focus']();},{'priority':'low'}),_0x4f319e['children']['add'](_0x3f87af),_0x3d767c['children']['add'](_0xf4cf6b),_0x4ba055['role']='menu',_0x4ba055['items']['addMany']([_0x4f319e,_0x3d767c]),_0x115924['add'](_0x4ba055),_0x421f66;}),_0x311fbe['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x275555=this['editor'],_0x2ae8fa=_0x275555['locale'],_0xc5de13=_0x275555['plugins']['get']('RevisionTracker'),_0x5daa61=new MenuBarMenuView(_0x2ae8fa),_0x11b57b=new MenuBarMenuListView(_0x2ae8fa);_0x5daa61['bind']('isEnabled')['to'](_0xc5de13,'isReady',_0xc5de13,'isEnabled',_0x275555,'isReadOnly',(_0x4e1b56,_0x5f10f5,_0x1c063c)=>_0x4e1b56&&_0x5f10f5&&!_0x1c063c),_0x5daa61['buttonView']['set']({'icon':IconHistory,'label':getTranslation$4(_0x2ae8fa,'Revision\x20history')});const _0x581a8a=new MenuBarMenuListItemView(_0x2ae8fa,_0x5daa61),_0x2c75e4=this['_createSaveRevisionButton'](MenuBarMenuListItemButtonView);_0x2c75e4['delegate']('execute')['to'](_0x5daa61),_0x581a8a['children']['add'](_0x2c75e4),_0x11b57b['items']['add'](_0x581a8a);const _0x41c743=new MenuBarMenuListItemView(_0x2ae8fa,_0x5daa61),_0x9e2c83=this['_createOpenRevisionButton'](MenuBarMenuListItemButtonView);return _0x9e2c83['delegate']('execute')['to'](_0x5daa61),_0x41c743['children']['add'](_0x9e2c83),_0x11b57b['items']['add'](_0x41c743),_0x5daa61['panelView']['children']['add'](_0x11b57b),_0x5daa61;}['_createSaveRevisionButton'](_0x4c8094){const _0x18e6bb=this['editor'],_0x1029fe=_0x18e6bb['plugins']['get']('RevisionTracker'),_0x3e2119=new _0x4c8094(_0x18e6bb['locale']);return _0x3e2119['set']({'label':getTranslation$4(_0x18e6bb['locale'],'Save\x20current\x20revision')}),_0x3e2119['bind']('isEnabled')['to'](_0x1029fe,'isReady',_0x1029fe,'isEnabled',_0x18e6bb,'isReadOnly',(_0x43c5b5,_0x47c5b9,_0x2d4e51)=>_0x43c5b5&&_0x47c5b9&&!_0x2d4e51),this['listenTo'](_0x3e2119,'execute',()=>{this['_showDialog']();}),_0x3e2119;}['_createOpenRevisionButton'](_0xe64f06){const _0xb5bb39=this['editor'],_0x3218b9=_0xb5bb39['plugins']['get']('RevisionTracker'),_0x5901dc=new _0xe64f06(_0xb5bb39['locale']);return _0x5901dc['set']({'label':getTranslation$4(_0xb5bb39['locale'],'Open\x20revision\x20history')}),_0x5901dc['bind']('isEnabled')['to'](_0x3218b9,'isReady',_0xb5bb39,'isReadOnly',(_0x4377ca,_0x19dab6)=>_0x4377ca&&!_0x19dab6),this['listenTo'](_0x5901dc,'execute',()=>{_0xb5bb39['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5901dc;}['_showDialog'](){const _0x4f8c03=this['editor'],_0x25cf7e=_0x4f8c03['locale'],_0x4647e5=_0x4f8c03['plugins']['get']('Dialog'),_0x24693c=_0x4f8c03['plugins']['get']('RevisionTracker');function _0x7f6765(_0x4de41e){_0x4f8c03['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4de41e['revisionName']?_0x4de41e['revisionNameInputView']['errorText']=getTranslation$4(_0x25cf7e,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4f8c03['plugins']['get'](RevisionTracker)['saveRevision']({'name':_0x4de41e['revisionName']}),_0x4647e5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x7f6765(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4647e5['show']({'id':'revisionSave','title':getTranslation$4(_0x25cf7e,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':getTranslation$4(_0x4f8c03['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4647e5['hide']()},{'label':getTranslation$4(_0x4f8c03['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5c6af3){_0x5c6af3['bind']('isEnabled')['to'](_0x24693c,'isReady',_0x24693c,'isEnabled',_0x4f8c03,'isReadOnly',(_0x2dc8ec,_0x1cf520,_0x1596ab)=>_0x2dc8ec&&_0x1cf520&&!_0x1596ab);},'onExecute':()=>_0x7f6765(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x25c3db=this['editor'],_0x591e61=_0x25c3db['locale'];this['_saveRevisionFormView']=new RevisionHistorySaveRevisionFormView(_0x591e61,_0x25c3db['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class ChangeDetailsView extends View{['changeId'];['_model'];constructor(_0x47ab56,_0x4ea01f){super(_0x47ab56),this['_model']=_0x4ea01f,this['changeId']=_0x4ea01f['id'];const _0x4846c5=this['bindTemplate'],_0x32fddf=getTranslation$4(_0x47ab56,_0x4ea01f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4ea01f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4ea01f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4846c5['to']('type',_0x67fdd5=>'ck-revision-change__'+_0x67fdd5)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x32fddf}]},{'text':'\x20'+_0x4ea01f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class ChangeItem extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x43eb13){super(),this['id']=_0x43eb13['id']||uid(),this['author']=_0x43eb13['author'],this['type']=_0x43eb13['type'],this['data']=_0x43eb13['data']||{},this['rootName']=_0x43eb13['rootName'],this['set']('createdAt',_0x43eb13['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(_0x4b714a,_0x1ba39d){this['newRevisionId']=_0x4b714a,this['oldRevisionId']=_0x1ba39d,this['changes']=new Collection();}['_setChanges'](_0x30bce8){for(const _0x42e7f3 of _0x30bce8)this['changes']['add'](_0x42e7f3);}}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(_0x4b7b5d){super(_0x4b7b5d),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',(_0x4c3efe,_0x30ff20,_0x3fefbd)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4b74db=>{for(const _0x584830 of this['editor']['editing']['view']['document']['roots'])_0x3fefbd?_0x4b74db['removeClass']('ck-editor__editable__overlay',_0x584830):_0x4b74db['addClass']('ck-editor__editable__overlay',_0x584830);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x56b48e=>null!==_0x56b48e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x44fe8a,_0x5c4162,_0x22e0de)=>_0x44fe8a&&_0x22e0de?_0x5c4162['changes']['getIndex'](_0x22e0de):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x167ded,_0x561e9b)=>_0x167ded?_0x561e9b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](ContextualBalloon);}['init'](){const _0x5c1abf=this['editor'],_0x50a926=new ShowChangeCommand(_0x5c1abf,{'direction':'backward'}),_0x81ad2c=new ShowChangeCommand(_0x5c1abf,{'direction':'forward'});(_0x5c1abf['commands']['add']('showPreviousChange',_0x50a926),_0x5c1abf['commands']['add']('showNextChange',_0x81ad2c),_0x5c1abf['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x5c1abf)),this['on']('change:numberOfChanges',()=>{_0x50a926['refresh'](),_0x81ad2c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5c1abf['enableReadOnlyMode']('revision-viewer'),_0x5c1abf['plugins']['has']('WidgetToolbarRepository'))&&_0x5c1abf['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x4a8072){return await this['_utils']['loadRevisionData'](_0x4a8072,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4a8072);}async['getRevisionRootsAttributes'](_0x388fe6){return await this['_utils']['loadRevisionData'](_0x388fe6,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x388fe6);}async['compare'](_0x4e2a44,_0x15d854,_0x57ee95=!0x1){if(!this['isEnabled'])return;const _0x7c0af1=this['diff'],_0xaa1dba=this['repository'],_0x3970bd='string'==typeof _0x4e2a44?_0xaa1dba['getRevision'](_0x4e2a44):_0x4e2a44,_0x3b57f3='string'==typeof _0x15d854?_0xaa1dba['getRevision'](_0x15d854):_0x15d854,_0x48cab0=_0x3970bd['id'],_0xa7d995=_0x3b57f3?_0x3b57f3['id']:null;if(!_0x57ee95&&this['diff']&&this['diff']['newRevisionId']===_0x48cab0&&this['diff']['oldRevisionId']===_0xa7d995)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new RevisionDiff(_0x48cab0,_0xa7d995);const _0x46ad87=this['_getRevisionsRange'](_0x3970bd,_0x3b57f3,!0x0)['map'](_0x1eb35c=>this['_utils']['loadRevisionData'](_0x1eb35c,this['adapter']));return _0x46ad87['push'](new Promise(_0xec497f=>{setTimeout(_0xec497f,0x14);})),Promise['all'](_0x46ad87)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x233b0c=this['_getDiff'](_0x48cab0,_0xa7d995);for(const _0x190e9a of _0x233b0c['changes'])this['_changeIdToChange']['set'](_0x190e9a['id'],_0x190e9a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x495c0a=>{for(const _0x4d8f4c of this['editor']['model']['document']['getRootNames']())_0x495c0a['detachRoot'](_0x4d8f4c);for(const _0x26338f of Object['keys'](_0x233b0c['model'])){const _0x531541=_0x495c0a['addRoot'](_0x26338f);for(const _0x4d0c40 of Object['keys'](_0x233b0c['attributes'][_0x26338f]))_0x495c0a['setAttribute'](_0x4d0c40,_0x233b0c['attributes'][_0x26338f][_0x4d0c40],_0x531541);_0x495c0a['insert'](_0x233b0c['model'][_0x26338f],_0x531541,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x233b0c['changes'])),this['isReady']=!0x0;})['catch'](_0x253faa=>{console['error'](_0x253faa),this['_cleanUp'](),_0x7c0af1&&(this['diff']=_0x7c0af1),this['isReady']=!0x0;});}['addRevisionData'](_0x4c04d1,_0x4b4b35){const _0x428792=this['repository']['createRevision'](_0x4c04d1);return _0x428792['on']('_update',(_0x6a4f0c,_0xaa2567,_0x271702)=>_0x4b4b35(_0xaa2567,_0x271702,_0x428792)),this['repository']['addRevision'](_0x428792),_0x428792;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3fa6ed=>{for(const _0x48b9d8 of this['editor']['model']['document']['getRootNames']())_0x3fa6ed['detachRoot'](_0x48b9d8);});}['_sortAndFilterDiffChanges'](_0x186e8f){const _0x1842e8=[],_0xff46d3=new Map();for(const _0x129b52 of this['editor']['model']['document']['getRootNames']()){const _0x1fbe44=this['editor']['editing']['view']['getDomRoot'](_0x129b52);if(!_0x1fbe44)continue;const _0x5972a7=_0x1fbe44['getClientRects']()['item'](0x0);_0x5972a7&&(_0x1842e8['push'](_0x129b52),_0xff46d3['set'](_0x129b52,_0x5972a7));}return _0x1842e8['sort']((_0x2ae734,_0x5cce39)=>{const _0xd8b3c7=_0xff46d3['get'](_0x2ae734),_0x56aa00=_0xff46d3['get'](_0x5cce39);return _0xd8b3c7['y']-_0x56aa00['y']||_0xd8b3c7['x']-_0x56aa00['x'];}),(_0x186e8f=_0x186e8f['filter'](_0x36dee7=>_0x1842e8['includes'](_0x36dee7['rootName'])))['sort']((_0x524738,_0x2a4711)=>_0x1842e8['indexOf'](_0x524738['rootName'])-_0x1842e8['indexOf'](_0x2a4711['rootName'])),_0x186e8f;}['_makeTape'](_0x243873){const _0x19a864=Array['from'](_0x243873['markers'])['filter'](([_0x1982b2,_0x5879b6])=>_0x1982b2['startsWith']('revision:')&&!_0x5879b6['isCollapsed']),_0x52ac05=Array['from'](this['editor']['model']['createRangeIn'](_0x243873)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x19a864['length'])for(const _0x33c8be of _0x52ac05){const [_0x799df,_0x46fab1]=_0x19a864[0x0],[,_0x2b67f5,_0x47a802]=_0x799df['split'](':');if(_0x46fab1['end']['isEqual'](_0x33c8be['nextPosition'])&&_0x19a864['shift'](),(_0x33c8be['previousPosition']['isEqual'](_0x46fab1['start'])||_0x33c8be['previousPosition']['isAfter'](_0x46fab1['start']))&&('insertion'==_0x2b67f5?_0x33c8be['isAdded']={'userId':_0x47a802}:'deletion'==_0x2b67f5&&(_0x33c8be['isRemoved']={'userId':_0x47a802})),0x0==_0x19a864['length'])break;}return _0x52ac05;}['_refreshStartEndIndex'](_0x4999f6){const _0xf81ea9=new Map();for(let _0x108b0a=0x0;_0x108b0a<_0x4999f6['length'];_0x108b0a++)'text'===_0x4999f6[_0x108b0a]['type']?(_0x4999f6[_0x108b0a]['item']['startIndex']=_0x108b0a,_0x4999f6[_0x108b0a]['item']['endIndex']=_0x108b0a):('elementStart'===_0x4999f6[_0x108b0a]['type']?_0x4999f6[_0x108b0a]['item']['startIndex']=_0x108b0a:'elementEnd'===_0x4999f6[_0x108b0a]['type']&&(_0x4999f6[_0x108b0a]['item']['endIndex']=_0x108b0a),_0xf81ea9['set'](_0x4999f6[_0x108b0a]['id'],_0x108b0a));for(const _0x34caa1 of _0xf81ea9['values']())'elementStart'===_0x4999f6[_0x34caa1]['type']?_0x4999f6[_0x34caa1]['item']['endIndex']=_0xf81ea9['get'](_0x4999f6[_0x34caa1]['pairId']):'elementEnd'===_0x4999f6[_0x34caa1]['type']&&(_0x4999f6[_0x34caa1]['item']['startIndex']=_0xf81ea9['get'](_0x4999f6[_0x34caa1]['pairId']));}['_processTape'](_0x29a02b){for(let _0x504a37=0x0;_0x504a37<_0x29a02b['length'];_0x504a37++){if('elementStart'===_0x29a02b[_0x504a37]['type'])_0x29a02b[_0x504a37]['item']['startIndex']=_0x504a37;else{if('elementEnd'===_0x29a02b[_0x504a37]['type']){_0x29a02b[_0x504a37]['item']['endIndex']=_0x504a37;const _0x11b85b=_0x29a02b[_0x504a37]['item']['startIndex'];_0x29a02b[_0x11b85b]['pairId']=_0x29a02b[_0x504a37]['id'],_0x29a02b[_0x504a37]['pairId']=_0x29a02b[_0x11b85b]['id'];}else _0x29a02b[_0x504a37]['item']['startIndex']=_0x504a37,_0x29a02b[_0x504a37]['item']['endIndex']=_0x504a37,_0x29a02b[_0x504a37]['pairId']=null;}_0x29a02b[_0x504a37]['markersStart']||(_0x29a02b[_0x504a37]['markersStart']=[],_0x29a02b[_0x504a37]['markersEnd']=[]);}}['_markInsertions'](_0x3e3971,_0x1f579a){const _0x156b42=_0x3e3971['filter'](_0x5ac923=>!_0x5ac923['isAdded']);for(let _0x590710=0x0;_0x590710<_0x1f579a['length'];_0x590710++)_0x1f579a[_0x590710]['isAdded']&&(_0x156b42[_0x590710]['isAdded']=_0x1f579a[_0x590710]['isAdded']);}['_getDiff'](_0x3ade59,_0x2dca32=null){const _0x348728=this['repository']['getRevision'](_0x3ade59),_0x435e0f=_0x2dca32?this['repository']['getRevision'](_0x2dca32):null,_0x3f956b=this['_getRevisionsRange'](_0x348728,_0x435e0f),_0x474cd8=_0x3f956b[_0x3f956b['length']-0x1],_0x2f58e7=new Map(),_0x1d3268={'model':{},'attributes':{},'changes':[]},_0x12e5d7=new Set(),_0x576887=new Map();for(let _0x4bb295=_0x3f956b['length']-0x1;_0x4bb295>=0x0;_0x4bb295--){const _0x2ffa22=_0x3f956b[_0x4bb295];for(const _0xb8378 of Object['keys'](_0x2ffa22['diffData']))if(_0x2ffa22['diffData'][_0xb8378]['attachChange']){const _0x54d059=_0x2ffa22['diffData'][_0xb8378]['attachChange'];_0x54d059['isAttached']?(_0x12e5d7['add'](_0xb8378),_0x576887['has'](_0xb8378)&&_0x576887['get'](_0xb8378)['userId']==_0x54d059['userId']?_0x576887['delete'](_0xb8378):_0x576887['set'](_0xb8378,_0x54d059)):_0x576887['has'](_0xb8378)?(_0x12e5d7['delete'](_0xb8378),_0x576887['delete'](_0xb8378)):(_0x12e5d7['add'](_0xb8378),_0x576887['set'](_0xb8378,_0x54d059));}else _0x12e5d7['add'](_0xb8378);}for(const _0x2fd279 of _0x12e5d7){const _0x20b112=_0x576887['has'](_0x2fd279)&&!_0x576887['get'](_0x2fd279)['isAttached'];let _0x5a3769=_0x20b112?_0x3f956b['length']-0x1:0x0;const _0x5c2d6c=_0x20b112?-0x1:0x1;for(;_0x3f956b[_0x5a3769];){const _0x266125=_0x3f956b[_0x5a3769];if(_0x266125['diffData'][_0x2fd279]){const _0x2f746e=_0x20b112?_0x266125['diffData'][_0x2fd279]['attributesBefore']:_0x266125['diffData'][_0x2fd279]['attributesAfter'];_0x1d3268['attributes'][_0x2fd279]=_0x2f746e?cloneDeep(_0x2f746e):{};break;}_0x5a3769+=_0x5c2d6c;}}for(const _0x3bb1c3 of _0x3f956b){_0x3bb1c3['model']={};for(const _0x1e4522 of _0x3bb1c3['authors'])_0x2f58e7['set'](_0x1e4522['id'],_0x1e4522);for(const _0x3687dd of _0x12e5d7){const _0x5f0eee=_0x3bb1c3['diffData'][_0x3687dd]?_0x3bb1c3['diffData'][_0x3687dd]['insertions']:'[]',_0x85a737=_0x3bb1c3['diffData'][_0x3687dd]?_0x3bb1c3['diffData'][_0x3687dd]['deletions']:'[]';_0x3bb1c3['model'][_0x3687dd]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5f0eee),'deletions':this['_utils']['_makeModelFromViewString'](_0x85a737)};}}for(const _0x2f5f64 of _0x12e5d7){let _0x43e719=null,_0x269822=0x0;const _0x18ae89=new Map(Array['from'](_0x348728['model'][_0x2f5f64]['insertions']['markers'])['filter'](([_0x47e153])=>!_0x47e153['startsWith']('revision:')));let _0x3ee2b3=0x0;for(const _0x37f5bb of _0x3f956b){const _0x2a5817=this['_makeTape'](_0x37f5bb['model'][_0x2f5f64]['insertions']);_0x37f5bb==_0x348728?(_0x43e719=_0x2a5817,_0x269822=_0x43e719['length'],_0x43e719['forEach'](_0x310e25=>{_0x310e25['id']=_0x3ee2b3++;}),this['_processTape'](_0x43e719)):this['_markInsertions'](_0x43e719,_0x2a5817);const _0x55c1c3=_0x43e719['filter'](_0x2183a5=>!_0x2183a5['isAdded'])['map'](_0x58a740=>_0x58a740['id']);let _0x22a502=0x0;const _0x2ccf8c=this['_makeTape'](_0x37f5bb['model'][_0x2f5f64]['deletions']);_0x2ccf8c['forEach'](_0x201b27=>{_0x201b27['isRemoved']?_0x201b27['id']=_0x269822++:_0x201b27['id']=_0x55c1c3[_0x22a502++];}),this['_processTape'](_0x2ccf8c),this['_setDistance'](_0x43e719,'isAdded'),this['_setDistance'](_0x2ccf8c,'isRemoved'),_0x37f5bb==_0x348728&&this['_markMarkers'](_0x43e719,_0x18ae89),_0x43e719=this['_joinTapes'](_0x43e719,_0x2ccf8c),this['_refreshStartEndIndex'](_0x43e719),this['_setDistance'](_0x43e719,'isRemoved');}_0x43e719=_0x43e719['filter'](_0x4c90da=>!(_0x4c90da['isAdded']&&_0x4c90da['isRemoved']));const _0x44ee3f=new Map(_0x474cd8['model'][_0x2f5f64]['deletions']['markers']),_0x18035e=new Set(_0x18ae89['keys']());for(const _0x1c94f8 of _0x44ee3f['keys']())_0x18035e['delete'](_0x1c94f8);this['_markSuggestions'](_0x43e719,_0x18035e),this['_fixObsoleteTags'](_0x43e719),_0x43e719=this['_removeMissingPairs'](_0x43e719),_0x43e719=this['_markMismatchedRemovedTags'](_0x43e719),_0x43e719=this['_removeUnsupportedChanges'](_0x43e719);const {root:_0x9174a5,changes:_0x1628f2}=this['_makeModelFromTape'](_0x43e719,_0x2f58e7,_0x2f5f64);_0x1d3268['model'][_0x2f5f64]=_0x9174a5;const _0x45d624=_0x576887['get'](_0x2f5f64);if(_0x45d624){const _0x51afb7=_0x2f58e7['get'](_0x45d624['userId']),_0x118a12=new ChangeItem({'author':_0x51afb7,'type':_0x45d624['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2f5f64});_0x1628f2['unshift'](_0x118a12),_0x1d3268['attributes'][_0x2f5f64]['revisionHistoryAttachChange']=_0x118a12['id'];}_0x1d3268['changes']=_0x1d3268['changes']['concat'](_0x1628f2);}return _0x1d3268;}['_markMarkers'](_0x235e36,_0x59034f){for(let _0x17d2a3=0x0;_0x17d2a3<_0x235e36['length'];_0x17d2a3++)for(const [_0x40658d,_0x41c4fe]of _0x59034f)!_0x41c4fe['isCollapsed']&&_0x41c4fe['start']['isEqual'](_0x235e36[_0x17d2a3]['previousPosition'])&&_0x235e36[_0x17d2a3]['markersStart']['push'](_0x40658d),_0x41c4fe['end']['isEqual'](_0x235e36[_0x17d2a3]['nextPosition'])&&_0x235e36[_0x17d2a3]['markersEnd']['push'](_0x40658d);}['_joinTapes'](_0x11f621,_0x3572da){let _0x3bfa6d=[],_0x472c53=0x0,_0x1a195c=0x0;for(;_0x472c53<_0x11f621['length']||_0x1a195c<_0x3572da['length'];){const _0x4e3010=_0x11f621[_0x472c53]||{},_0x3da77e=_0x3572da[_0x1a195c]||{};if(_0x4e3010['id']==_0x3da77e['id'])_0x472c53++,_0x1a195c++,_0x3bfa6d['push'](_0x4e3010);else{if(_0x3da77e['isRemoved']&&_0x4e3010['isAdded']){const {commonTape:_0x4ac2b8,iEnd:_0x4691c7,jEnd:_0x3bfe39}=this['_threeWayMerge'](_0x11f621,_0x472c53,_0x3572da,_0x1a195c);_0x3bfa6d=_0x3bfa6d['concat'](_0x4ac2b8),_0x472c53=_0x4691c7,_0x1a195c=_0x3bfe39;}else _0x3da77e['isRemoved']?(_0x1a195c++,_0x3bfa6d['push'](_0x3da77e)):(_0x472c53++,_0x3bfa6d['push'](_0x4e3010));}}return _0x3bfa6d;}['_markSuggestions'](_0x4742d3,_0x5ba4a2){const _0x164b3a=[];for(let _0x3e56d0=0x0;_0x3e56d0<_0x4742d3['length'];_0x3e56d0++){for(let _0x2d39e6=0x0;_0x2d39e6<_0x4742d3[_0x3e56d0]['markersStart']['length'];_0x2d39e6++){const _0x5247d4=_0x4742d3[_0x3e56d0]['markersStart'][_0x2d39e6];if(!_0x5ba4a2['has'](_0x5247d4))continue;const {group:_0x11c7b6,type:_0x4d59e0,authorId:_0x52eb96}=_0x17047c(_0x5247d4);'revision-suggestion'!=_0x11c7b6||'insertion'!=_0x4d59e0&&'deletion'!=_0x4d59e0||(_0x164b3a['unshift']({'type':_0x4d59e0,'name':_0x5247d4,'userId':_0x52eb96}),_0x4742d3[_0x3e56d0]['markersStart']['splice'](_0x2d39e6,0x1),_0x2d39e6--);}_0xd1785e(_0x4742d3[_0x3e56d0]);for(let _0x374445=0x0;_0x374445<_0x4742d3[_0x3e56d0]['markersEnd']['length'];_0x374445++){const _0xc4a586=_0x4742d3[_0x3e56d0]['markersEnd'][_0x374445];if(!_0x5ba4a2['has'](_0xc4a586))continue;const {group:_0x2cc3a7,type:_0x556384}=_0x17047c(_0xc4a586);if('revision-suggestion'!=_0x2cc3a7||'insertion'!=_0x556384&&'deletion'!=_0x556384)continue;_0x4742d3[_0x3e56d0]['markersEnd']['splice'](_0x374445,0x1),_0x374445--;const _0x3af0f8=_0x164b3a['findIndex'](_0x430f4e=>_0x430f4e['name']==_0xc4a586);_0x3af0f8>-0x1&&_0x164b3a['splice'](_0x3af0f8,0x1);}}function _0x17047c(_0xd60b34){const _0x586e09=_0xd60b34['split'](':');return{'group':_0x586e09[0x0],'type':_0x586e09[0x1],'subType':_0x586e09['length']>=0x5?_0x586e09[0x2]:null,'id':_0x586e09['length']<0x5?_0x586e09[0x2]:_0x586e09[0x3],'authorId':_0x586e09['length']<0x5?_0x586e09[0x3]:_0x586e09[0x4],'markerCount':0x6==_0x586e09['length']?_0x586e09[0x5]:null};}function _0xd1785e(_0x4ee936){for(let _0x3fbe3b=0x0;_0x3fbe3b<_0x164b3a['length'];_0x3fbe3b++){if(_0x4ee936['isAdded']&&'insertion'==_0x164b3a[_0x3fbe3b]['type']&&_0x4ee936['isAdded']['userId']==_0x164b3a[_0x3fbe3b]['userId'])return _0x4ee936['isAddSuggestion']=_0x164b3a[_0x3fbe3b],void delete _0x4ee936['isAdded'];if(!_0x4ee936['isAdded']&&!_0x4ee936['isRemoved']&&'deletion'==_0x164b3a[_0x3fbe3b]['type'])return void(_0x4ee936['isRemoveSuggestion']=_0x164b3a[_0x3fbe3b]);}}}['_setDistance'](_0x2568fe,_0x4a97ba){let _0x44f9cf=0x0,_0x3cee3f=!0x1;const _0x251eb2=new Map();for(const _0x5f00cc of _0x2568fe)_0x5f00cc[_0x4a97ba]?_0x3cee3f&&(_0x44f9cf++,_0x3cee3f=!0x1):(_0x44f9cf++,_0x3cee3f=!0x0),_0x251eb2['set'](_0x5f00cc['id'],_0x44f9cf);for(let _0x4f69d6=0x0;_0x4f69d6<_0x2568fe['length'];_0x4f69d6++){if('isRemoved'==_0x4a97ba&&_0x2568fe[_0x4f69d6]['isAdded']||'isAdded'==_0x4a97ba&&_0x2568fe[_0x4f69d6]['isRemoved'])continue;if('text'==_0x2568fe[_0x4f69d6]['type']){_0x2568fe[_0x4f69d6]['distance']=0x0;continue;}const _0x4c8e9f=_0x251eb2['get'](_0x2568fe[_0x4f69d6]['pairId']),_0x4e2c2a=_0x251eb2['get'](_0x2568fe[_0x4f69d6]['id']);_0x2568fe[_0x4f69d6]['distance']=_0x4c8e9f-_0x4e2c2a;}}['_getRevisionsRange'](_0x297795,_0x302440,_0x5cab26=!0x1){const _0x5c56ed=[];let _0x359077=this['repository']['getIndex'](_0x297795),_0x57896d=this['repository']['getIndex'](_0x302440);for(-0x1==_0x57896d&&(_0x57896d=this['repository']['_revisions']['length'],_0x5cab26=!0x1);_0x359077<_0x57896d;)_0x5c56ed['push'](this['repository']['getRevision'](_0x359077)),_0x359077++;return _0x5cab26&&_0x5c56ed['push'](this['repository']['getRevision'](_0x359077)),_0x5c56ed;}['_threeWayMerge'](_0xb78b8,_0x33f4ff,_0x549f8c,_0x197fa7){const _0x182a00=this['editor']['model']['schema'];let _0x41e90e=_0x33f4ff;for(;_0xb78b8[_0x41e90e]&&_0xb78b8[_0x41e90e]['isAdded'];)_0x41e90e++;let _0x40ca18=_0x197fa7;for(;_0x549f8c[_0x40ca18]&&_0x549f8c[_0x40ca18]['isRemoved'];)_0x40ca18++;_0x2e4ee0(_0xb78b8,_0x33f4ff,_0x41e90e),_0x2e4ee0(_0x549f8c,_0x197fa7,_0x40ca18);const _0x47d700=_0x549f8c['slice'](_0x197fa7,_0x40ca18)['concat'](_0xb78b8['slice'](_0x33f4ff,_0x41e90e));return _0x47d700['sort']((_0x5a6150,_0x49011d)=>_0x5a6150['side']!=_0x49011d['side']?_0x5a6150['side']-_0x49011d['side']:_0x5a6150['level']!=_0x49011d['level']?_0x5a6150['level']-_0x49011d['level']:_0x5a6150['distance']!=_0x49011d['distance']?_0x49011d['distance']-_0x5a6150['distance']:!!_0x5a6150['isAdded']!=!!_0x49011d['isAdded']?-0x1==_0x5a6150['side']||0x0==_0x5a6150['side']?_0x5a6150['isAdded']?-0x1:0x1:_0x5a6150['isAdded']?0x1:-0x1:_0x5a6150['index']-_0x49011d['index']),{'commonTape':_0x47d700,'iEnd':_0x41e90e,'jEnd':_0x40ca18};function _0x2e4ee0(_0x4ab9ec,_0x53a87f,_0x407e73){let _0x6936f8=-0x1,_0x44d929=Number['POSITIVE_INFINITY'],_0xc6d943=!0x0;for(let _0x1bb35a=_0x53a87f;_0x1bb35a<_0x407e73;_0x1bb35a++)if(_0x182a00['isInline'](_0x4ab9ec[_0x1bb35a]['item'])||(_0xc6d943=!0x1),_0x4ab9ec[_0x1bb35a]['item']['startIndex']<_0x53a87f&&(_0x6936f8=_0x1bb35a),_0x4ab9ec[_0x1bb35a]['item']['endIndex']>=_0x407e73){_0x44d929=_0x1bb35a;break;}_0xc6d943&&(_0x6936f8=_0x407e73-0x1);for(let _0x6e852=_0x53a87f;_0x6e852<_0x407e73;_0x6e852++)_0x4ab9ec[_0x6e852]['side']=_0x6e852<=_0x6936f8?-0x1:_0x6e852<_0x44d929?0x0:0x1,_0x4ab9ec[_0x6e852]['index']=_0x6e852;let _0x2faf32=0x0;for(let _0x5dd594=_0x53a87f;_0x5dd594<=_0x6936f8;_0x5dd594++)0x0==_0x4ab9ec[_0x5dd594]['distance']?_0x4ab9ec[_0x5dd594]['level']=_0x2faf32:(_0x2faf32++,_0x4ab9ec[_0x5dd594]['level']=_0x2faf32,_0x2faf32++);for(let _0x3146e7=_0x53a87f;_0x3146e7<_0x407e73;_0x3146e7++)0x0==_0x4ab9ec[_0x3146e7]['side']&&(_0x4ab9ec[_0x3146e7]['level']=_0x2faf32);_0x2faf32=0x0;for(let _0x17e7a5=_0x407e73-0x1;_0x17e7a5>=_0x44d929;_0x17e7a5--)0x0==_0x4ab9ec[_0x17e7a5]['distance']?_0x4ab9ec[_0x17e7a5]['level']=_0x2faf32:(_0x2faf32--,_0x4ab9ec[_0x17e7a5]['level']=_0x2faf32,_0x2faf32--);}}['_fixObsoleteTags'](_0x44ecaf){const _0x9a9140=new Map(),_0x5eacf6=this['editor']['model']['schema'];for(let _0x73bda3=0x1;_0x73bda3<_0x44ecaf['length'];_0x73bda3++){let _0x2b0d9f,_0x5cd1cc,_0x3aa570;const _0x6ae7e5=_0x44ecaf[_0x73bda3],_0x31e2fc=_0x44ecaf[_0x73bda3-0x1];if('text'==_0x6ae7e5['type'])continue;if(_0x6ae7e5['type']!=_0x31e2fc['type'])continue;if(!_0x5eacf6['isBlock'](_0x31e2fc['item'])||_0x5eacf6['isLimit'](_0x31e2fc['item']))continue;if(!_0x5eacf6['isBlock'](_0x6ae7e5['item'])||_0x5eacf6['isLimit'](_0x6ae7e5['item']))continue;if((_0x44ecaf[_0x73bda3]['isAdded']||_0x44ecaf[_0x73bda3]['isAddSuggestion'])&&_0x44ecaf[_0x73bda3-0x1]['isRemoved'])_0x2b0d9f=_0x44ecaf[_0x73bda3],_0x5cd1cc=_0x44ecaf[_0x73bda3-0x1],_0x3aa570=_0x73bda3-0x1;else{if(!_0x44ecaf[_0x73bda3]['isRemoved']||!_0x44ecaf[_0x73bda3-0x1]['isAdded']&&!_0x44ecaf[_0x73bda3-0x1]['isAddSuggestion'])continue;_0x2b0d9f=_0x44ecaf[_0x73bda3-0x1],_0x5cd1cc=_0x44ecaf[_0x73bda3],_0x3aa570=_0x73bda3;}const _0x1982ba=_0x2b0d9f['level']==_0x5cd1cc['level'],_0x413596=Math['abs'](_0x2b0d9f['level'])<Math['abs'](_0x5cd1cc['level'])&&0x0==_0x5cd1cc['distance'];(_0x1982ba||_0x413596)&&(_0x9a9140['set'](_0x5cd1cc['id'],_0x2b0d9f['id']),_0x44ecaf['splice'](_0x3aa570,0x1),_0x73bda3--,_0x2b0d9f['isAdded']=!0x1);}for(let _0x10e1d7=0x0;_0x10e1d7<_0x44ecaf['length'];_0x10e1d7++)_0x9a9140['has'](_0x44ecaf[_0x10e1d7]['pairId'])&&(_0x44ecaf[_0x10e1d7]['pairId']=_0x9a9140['get'](_0x44ecaf[_0x10e1d7]['pairId']));}['_removeMissingPairs'](_0x3c7196){const _0x12fd8a=new Set(_0x3c7196['map'](_0x4bbc34=>_0x4bbc34['id']));for(let _0x5c2184=0x0;_0x5c2184<_0x3c7196['length'];_0x5c2184++)_0x12fd8a['has'](_0x3c7196[_0x5c2184]['pairId'])||0x0==_0x3c7196[_0x5c2184]['distance']||(_0x3c7196[_0x5c2184]['isIncorrect']=!0x0);return _0x3c7196['filter'](_0x1ce524=>!_0x1ce524['isIncorrect']);}['_markMismatchedRemovedTags'](_0x74fed3){const _0x504cf4=new Set();for(let _0x53bff4=0x0;_0x53bff4<_0x74fed3['length'];_0x53bff4++){if(_0x504cf4['has'](_0x74fed3[_0x53bff4]['id'])&&_0x74fed3[_0x53bff4]['isRemoved']&&(_0x74fed3[_0x53bff4]['isIncorrect']=!0x0),_0x74fed3[_0x53bff4]['isIncorrect'])continue;if(0x0==_0x74fed3[_0x53bff4]['distance'])continue;if('elementStart'!=_0x74fed3[_0x53bff4]['type'])continue;if(null==_0x74fed3[_0x53bff4]['pairId'])continue;let _0x24ad89=_0x53bff4+0x1,_0x2608ed=0x0;for(;_0x74fed3[_0x24ad89]['id']!=_0x74fed3[_0x53bff4]['pairId'];)'elementStart'==_0x74fed3[_0x24ad89]['type']?_0x2608ed++:'elementEnd'==_0x74fed3[_0x24ad89]['type']&&_0x2608ed--,_0x24ad89++;if(0x0!=_0x2608ed){if(_0x74fed3[_0x53bff4]['isRemoved'])_0x74fed3[_0x53bff4]['isIncorrect']=!0x0;else{for(;_0x24ad89!=_0x53bff4;)_0x74fed3[_0x24ad89]['isRemoved']&&0x0!=_0x74fed3[_0x24ad89]['distance']&&(_0x74fed3[_0x24ad89]['isIncorrect']=!0x0,_0x504cf4['add'](_0x74fed3[_0x24ad89]['pairId'])),_0x24ad89--;}}}return _0x74fed3['filter'](_0x4f1270=>!_0x4f1270['isIncorrect']);}['_removeUnsupportedChanges'](_0x4dfabb){const _0x542e53=this['editor']['model']['schema'];for(let _0x2acd98=0x0;_0x2acd98<_0x4dfabb['length'];_0x2acd98++){if(!(_0x4dfabb[_0x2acd98]['isAdded']||_0x4dfabb[_0x2acd98]['isAddSuggestion']||_0x4dfabb[_0x2acd98]['isRemoved']||_0x4dfabb[_0x2acd98]['isRemoveSuggestion']))continue;if(0x0==_0x4dfabb[_0x2acd98]['distance'])continue;const _0x208cce=_0x4dfabb[_0x2acd98]['item'];_0x542e53['isBlock'](_0x208cce)||_0x542e53['isLimit'](_0x208cce)||(_0x4dfabb[_0x2acd98]['isAdded']&&delete _0x4dfabb[_0x2acd98]['isAdded'],_0x4dfabb[_0x2acd98]['isAddSuggestion']&&delete _0x4dfabb[_0x2acd98]['isAddSuggestion'],_0x4dfabb[_0x2acd98]['isRemoveSuggestion']&&delete _0x4dfabb[_0x2acd98]['isRemoveSuggestion'],_0x4dfabb[_0x2acd98]['isRemoved']&&(_0x4dfabb[_0x2acd98]['isIncorrect']=!0x0));}return _0x4dfabb['filter'](_0x2d8cc7=>!_0x2d8cc7['isIncorrect']);}['_makeModelFromTape'](_0x399c2b,_0xf495d,_0x8ccef0){const _0x32e6b4=new ModelDocumentFragment(),_0x35f657=[],_0xfbe4dd=new Map(),_0x405a62=this['editor']['model'],_0x5958ef=_0x405a62['schema'],_0x54039f=[_0x32e6b4],_0x406a88={},_0x325a2e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x20a868=null;const _0x52774d=[0x0];for(let _0x3d9c70=0x0;_0x3d9c70<_0x399c2b['length'];_0x3d9c70++)if('elementStart'===_0x399c2b[_0x3d9c70]['type']){_0x399c2b[_0x3d9c70]['previousPosition']=_0x405a62['createPositionFromPath'](_0x32e6b4,_0x52774d);const _0x46c266=new ModelElement(_0x399c2b[_0x3d9c70]['item']['name'],_0x399c2b[_0x3d9c70]['item']['getAttributes']());_0x54039f[0x0]['_appendChild'](_0x46c266),_0x52774d['push'](0x0),_0x54039f['unshift'](_0x46c266),_0x399c2b[_0x3d9c70]['nextPosition']=_0x405a62['createPositionFromPath'](_0x32e6b4,_0x52774d);}else'elementEnd'===_0x399c2b[_0x3d9c70]['type']?(_0x54039f['shift'](),_0x399c2b[_0x3d9c70]['previousPosition']=_0x405a62['createPositionFromPath'](_0x32e6b4,_0x52774d),_0x52774d['pop'](),_0x52774d[_0x52774d['length']-0x1]++,_0x399c2b[_0x3d9c70]['nextPosition']=_0x405a62['createPositionFromPath'](_0x32e6b4,_0x52774d)):(_0x399c2b[_0x3d9c70]['previousPosition']=_0x405a62['createPositionFromPath'](_0x32e6b4,_0x52774d),_0x20a868?_0x20a868['_data']+=_0x399c2b[_0x3d9c70]['item']['data']:_0x20a868=new ModelText(_0x399c2b[_0x3d9c70]['item']['data'],_0x399c2b[_0x3d9c70]['item']['getAttributes']()),_0x399c2b[_0x3d9c70+0x1]&&'text'===_0x399c2b[_0x3d9c70+0x1]['type']&&_0x30345a(_0x20a868,_0x399c2b[_0x3d9c70+0x1]['item'])||(_0x54039f[0x0]['_appendChild'](_0x20a868),_0x20a868=null),_0x52774d[_0x52774d['length']-0x1]+=_0x399c2b[_0x3d9c70]['item']['offsetSize'],_0x399c2b[_0x3d9c70]['nextPosition']=_0x405a62['createPositionFromPath'](_0x32e6b4,_0x52774d));for(let _0x332630=0x0;_0x332630<_0x399c2b['length'];_0x332630++){const _0x735e0a=_0x399c2b[_0x332630]['previousPosition'],_0x168956=_0x399c2b[_0x332630]['nextPosition'];for(const _0x6ae46b of _0x399c2b[_0x332630]['markersStart'])_0xfbe4dd['set'](_0x6ae46b,{'start':_0x735e0a,'end':null});_0x150685('isRemoveSuggestion',_0x332630,_0x735e0a,_0x168956),_0x150685('isAddSuggestion',_0x332630,_0x735e0a,_0x168956),_0x150685('isRemoved',_0x332630,_0x735e0a,_0x168956),_0x150685('isAdded',_0x332630,_0x735e0a,_0x168956);for(const _0xb37dbb of _0x399c2b[_0x332630]['markersEnd']){const _0x576a73=_0xfbe4dd['get'](_0xb37dbb);_0x576a73?_0x576a73['end']=_0x168956:_0xfbe4dd['set'](_0xb37dbb,{'start':_0x168956,'end':_0x168956});}}for(const [_0x4fb4ec,_0x8a9f08]of _0xfbe4dd){const _0x25c4df=this['editor']['model']['createRange'](_0x8a9f08['start'],_0x8a9f08['end']);_0x32e6b4['markers']['set'](_0x4fb4ec,_0x25c4df);}return _0x35f657['sort']((_0x559bf2,_0x1d6e96)=>{const _0x3f64df=_0x32e6b4['markers']['get']('revision:'+_0x559bf2['id']),_0x431081=_0x32e6b4['markers']['get']('revision:'+_0x1d6e96['id']);return _0x3f64df['start']['isBefore'](_0x431081['start'])?-0x1:_0x3f64df['start']['isAfter'](_0x431081['start'])?0x1:_0x3f64df['end']['isBefore'](_0x431081['end'])?-0x1:_0x3f64df['end']['isAfter'](_0x431081['end'])?0x1:'add'===_0x559bf2['type']?-0x1:0x1;}),{'root':_0x32e6b4,'changes':_0x35f657};function _0x150685(_0x5feb34,_0x30f848,_0x54bb9a,_0x9cde77){const _0x439e54=!!_0x399c2b[_0x30f848][_0x5feb34],_0x44a1c4=_0x439e54?_0x399c2b[_0x30f848][_0x5feb34]['userId']:null,_0x242904=_0x30f848===_0x399c2b['length']-0x1,_0x4b2c5d=_0x325a2e[_0x5feb34][0x0],_0x54e5ea=_0x5958ef['isObject'](_0x399c2b[_0x30f848]['item']);!_0x406a88[_0x5feb34]&&_0x439e54?_0x406a88[_0x5feb34]={'start':_0x54bb9a,'tapeItem':_0x399c2b[_0x30f848],'userId':_0x44a1c4,'type':_0x5feb34}:_0x406a88[_0x5feb34]&&!_0x439e54?(_0x406a88[_0x5feb34]['end']=_0x54bb9a,_0x4fe30f(_0x406a88[_0x5feb34]),_0x406a88[_0x5feb34]=null):_0x406a88[_0x5feb34]&&_0x439e54&&_0x406a88[_0x5feb34]['userId']!==_0x44a1c4&&(_0x406a88[_0x5feb34]['end']=_0x54bb9a,_0x4b2c5d&&_0x4b2c5d['userId']===_0x406a88[_0x5feb34]['userId']||_0x4fe30f(_0x406a88[_0x5feb34]),_0x406a88[_0x5feb34]={'start':_0x54bb9a,'tapeItem':_0x399c2b[_0x30f848],'userId':_0x44a1c4,'type':_0x5feb34}),_0x406a88[_0x5feb34]&&_0x54e5ea&&('elementStart'!==_0x399c2b[_0x30f848]['type']||_0x4b2c5d&&_0x4b2c5d['userId']===_0x44a1c4||_0x325a2e[_0x5feb34]['unshift']({'userId':_0x44a1c4,'object':_0x399c2b[_0x30f848]['item'],'change':_0x406a88[_0x5feb34]}),'elementEnd'===_0x399c2b[_0x30f848]['type']&&_0x4b2c5d&&_0x4b2c5d['object']===_0x399c2b[_0x30f848]['item']&&(_0x325a2e[_0x5feb34]['shift'](),_0x406a88[_0x5feb34]=_0x4b2c5d['change'])),_0x406a88[_0x5feb34]&&_0x242904&&(_0x406a88[_0x5feb34]['end']=_0x9cde77,_0x4fe30f(_0x406a88[_0x5feb34]),_0x406a88[_0x5feb34]=null);}function _0x4fe30f({start:_0x46ff77,end:_0x5b1efd,tapeItem:_0x353c72,userId:_0x50ff0d,type:_0x356927}){const _0x319e44=_0x353c72['item'],_0x3140af=_0x405a62['schema']['isBlock'](_0x319e44)&&!_0x405a62['schema']['isLimit'](_0x319e44),_0x12fe1a=_0x46ff77['nodeAfter']==_0x5b1efd['parent']&&_0x5b1efd['isAtStart'];if(_0x3140af&&_0x12fe1a)return;const _0x2a680=_0x405a62['createRange'](_0x46ff77,_0x5b1efd),_0x2ac45f=_0xf495d['get'](_0x50ff0d),_0x14cf74=new ChangeItem({'author':_0x2ac45f,'type':'isAdded'==_0x356927||'isAddSuggestion'==_0x356927?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x356927||'isRemoveSuggestion'==_0x356927},'createdAt':new Date(),'rootName':_0x8ccef0});_0x35f657['push'](_0x14cf74),_0x32e6b4['markers']['set']('revision:'+_0x14cf74['id'],_0x2a680);}function _0x30345a(_0x5405ae,_0x21fae8){const _0x38ef4f=_0x5405ae['getAttributes'](),_0x2533a4=_0x21fae8['getAttributes']();for(const _0xee3a6f of _0x38ef4f){if(_0xee3a6f[0x1]!==_0x21fae8['getAttribute'](_0xee3a6f[0x0]))return!0x1;_0x2533a4['next']();}return _0x2533a4['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3b2eb6=>{const _0x67df2c=_0x3b2eb6['markerName']['split'](':')[0x1],_0x502dd7=this['_getChangeFromId'](_0x67df2c);if(!_0x502dd7)return null;const _0x297903='add'==_0x502dd7['type']?'insertion':'deletion',_0x31806a=['ck-suggestion-marker','ck-suggestion-marker-'+_0x297903];return _0x502dd7['data']['isSuggestion']&&_0x31806a['push']('ck-suggestion-marker-'+_0x297903+'-new'),this['activeChange']==_0x502dd7&&_0x31806a['push']('ck-suggestion-marker--active'),{'classes':_0x31806a,'attributes':{'data-change-id':_0x67df2c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x436943=>{_0x436943['on']('element:pre',(_0x101df5,_0x2bd164,_0x1c7d2e)=>{const _0x53418b=_0x2bd164['viewItem']['getChild'](0x0);if(!_0x53418b||!_0x53418b['is']('element','code'))return;if(!_0x1c7d2e['consumable']['consume'](_0x53418b,{'attributes':['vid_start','vid_end']}))return;const _0x3fff33=_0x2bd164['modelRange']['start']['nodeAfter'];_0x1c7d2e['writer']['setAttribute']('vid_start',_0x53418b['getAttribute']('vid_start'),_0x3fff33),_0x1c7d2e['writer']['setAttribute']('vid_end',_0x53418b['getAttribute']('vid_end'),_0x3fff33);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x492435=>{_0x492435['on']('element',(_0x4642df,_0x5e3878,_0x5e620c)=>{if(!_0x5e620c['consumable']['consume'](_0x5e3878['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5e3878['modelRange']['isCollapsed'])return;const _0x1f0d23=_0x5e3878['modelRange']['start']['nodeAfter'];_0x1f0d23['hasAttribute']('vid_start')||_0x1f0d23['hasAttribute']('vid')||(_0x5e620c['writer']['setAttribute']('vid_start',_0x5e3878['viewItem']['getAttribute']('vid_start'),_0x1f0d23),_0x5e620c['writer']['setAttribute']('vid_end',_0x5e3878['viewItem']['getAttribute']('vid_end'),_0x1f0d23));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x375659=>_0x375659['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x8f9181,[,_0x37b940])=>{['vid_start','vid_end','vid']['includes'](_0x37b940)&&(_0x8f9181['return']=!0x0,_0x8f9181['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x6c11f1=>{_0x6c11f1['on']('attribute:vid',(_0x1682a0,_0x2f5ab0,_0x175188)=>{if('\x20'!=_0x2f5ab0['item']['data']||_0x2f5ab0['item']['parent']['maxOffset']>0x1)return;if(!_0x175188['consumable']['consume'](_0x2f5ab0['item'],_0x1682a0['name']))return;const _0x3b96c1=_0x175188['writer'],_0x11c477=_0x175188['mapper']['toViewRange'](_0x2f5ab0['range']);_0x3b96c1['wrap'](_0x11c477,_0x3b96c1['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',(_0x4e9d56,_0x3eeb0b,_0x1b4bae)=>{const _0x42279a=_0x1b4bae['mapper']['markerNameToElements'](_0x3eeb0b['markerName']);if(_0x42279a){for(const _0x15c166 of _0x42279a)(_0x15c166['hasClass']('ck-suggestion-marker-split')||_0x15c166['hasClass']('ck-suggestion-marker-merge'))&&(_0x1b4bae['mapper']['unbindElementFromMarkerName'](_0x15c166,_0x3eeb0b['markerName']),_0x1b4bae['writer']['remove'](_0x15c166));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x525698,_0x42011e,_0x2b2a49)=>{const _0x153989=_0x42011e['markerName']['split'](':')[0x1],_0x4723d1=this['_getChangeFromId'](_0x153989);if(!_0x4723d1)return null;const _0x582803='add'==_0x4723d1['type']?'split':'merge';if(_0x2b2a49['consumable']['test'](_0x42011e['markerRange'],_0x525698['name']))for(const _0x5c12b0 of _0x42011e['markerRange']['getItems']()){if(!_0x5c12b0['is']('element','softBreak'))continue;const _0x428c70=_0x2b2a49['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x582803}),_0x43abf0=_0x2b2a49['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5c12b0));_0x4723d1['data']['isSuggestion']&&_0x2b2a49['writer']['addClass']('ck-suggestion-marker-'+_0x582803+'-new',_0x428c70),this['activeChange']==_0x4723d1&&_0x2b2a49['writer']['addClass']('ck-suggestion-marker--active',_0x428c70),_0x2b2a49['writer']['insert'](_0x43abf0,_0x428c70),_0x2b2a49['mapper']['bindElementToMarker'](_0x428c70,_0x42011e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x194e4b=>{for(const _0x2e5b90 of this['editor']['model']['document']['getRootNames']()){const _0x4c4b7d=this['editor']['model']['document']['getRoot'](_0x2e5b90),_0x3a645c=this['editor']['editing']['view']['document']['getRoot'](_0x2e5b90);if(_0x3a645c){const _0x2329ed=_0x4c4b7d['getAttribute']('revisionHistoryAttachChange');if(_0x194e4b['removeAttribute']('data-change-id',_0x3a645c),_0x194e4b['removeClass']('ck-revision-history-root-add',_0x3a645c),_0x194e4b['removeClass']('ck-revision-history-root-remove',_0x3a645c),_0x194e4b['removeClass']('ck-revision-history-root--active',_0x3a645c),_0x2329ed){const _0x48e0d7=this['_getChangeFromId'](_0x2329ed);if(!_0x48e0d7)return null;_0x194e4b['setAttribute']('data-change-id',_0x2329ed,_0x3a645c),_0x194e4b['addClass']('ck-revision-history-root-'+_0x48e0d7['type'],_0x3a645c),this['activeChange']==_0x48e0d7&&_0x194e4b['addClass']('ck-revision-history-root--active',_0x3a645c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xdf212b=>'revision-comment:'+_0xdf212b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x48b58b=>'revision-suggestion:'+_0x48b58b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3d7818=>({'name':'suggestion:'+_0x3d7818,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2eb51a=>{const _0x368d5e=_0x2eb51a['markerName']['split'](':')[0x1];return'insertion'!=_0x368d5e&&'deletion'!=_0x368d5e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x368d5e]};}}),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',(_0x41699a,_0x47045b,_0x50048f)=>{const _0x14481f=_0x50048f['mapper']['markerNameToElements'](_0x47045b['markerName']);if(_0x14481f){for(const _0x276c92 of _0x14481f)_0x276c92['is']('uiElement')&&(_0x50048f['mapper']['unbindElementFromMarkerName'](_0x276c92,_0x47045b['markerName']),_0x50048f['writer']['remove'](_0x276c92));}},{'priority':'high'});}['_getChangeFromId'](_0x2d6773){return this['_changeIdToChange']['get'](_0x2d6773);}['_getViewForChange'](_0x3a1c9d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new ChangeDetailsView(this['editor']['locale'],_0x3a1c9d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4aaaff,_0x4ab16d,_0x3180f5,_0x2a1766)=>{_0x2a1766&&this['_balloon']['remove'](_0x2a1766),_0x3180f5&&(this['_balloon']['add']({'view':_0x3180f5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x46ce00=this['editor']['editing'],_0x3d675b=this['_getChangeFromId'](_0x3180f5['changeId']);let _0x7145e0;if(_0x3d675b['data']['isOnRoot']){const _0x5c4324=_0x46ce00['view']['getDomRoot'](_0x3d675b['rootName']);_0x7145e0=Array['from'](_0x5c4324['getClientRects']());}else{const _0x35f23a=this['editor']['model']['markers']['get']('revision:'+_0x3180f5['changeId']);_0x7145e0=Array['from'](_0x46ce00['mapper']['markerNameToElements'](_0x35f23a['name']))['map'](_0x4f615a=>_0x46ce00['view']['domConverter']['mapViewToDom'](_0x4f615a))['map'](_0x2a85e4=>Array['from'](_0x2a85e4['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x7145e0[0x0];return _0x7145e0['find'](_0x1f3633=>_0x1f3633['top']-0x3<=this['_activeViewTarget']['y']&&_0x1f3633['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1f3633['left']-0x3<=this['_activeViewTarget']['x']&&_0x1f3633['right']+0x3>=this['_activeViewTarget']['x'])||_0x7145e0[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x23a887,_0x272fcb,_0x3a6750,_0x2db493)=>{this['activeView']=_0x3a6750?this['_getViewForChange'](_0x3a6750):null,this['editor']['model']['change'](()=>{const _0x12c9ac=this['editor']['editing'];_0x2db493&&(_0x2db493['data']['isOnRoot']?_0x12c9ac['view']['change'](_0x5ab53b=>{_0x5ab53b['removeClass']('ck-revision-history-root--active',_0x12c9ac['view']['document']['getRoot'](_0x2db493['rootName']));}):_0x12c9ac['reconvertMarker']('revision:'+_0x2db493['id'])),_0x3a6750&&(_0x3a6750['data']['isOnRoot']?_0x12c9ac['view']['change'](_0x849ed7=>{_0x849ed7['addClass']('ck-revision-history-root--active',_0x12c9ac['view']['document']['getRoot'](_0x3a6750['rootName']));}):_0x12c9ac['reconvertMarker']('revision:'+_0x3a6750['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4b044d,_0x47e0d6)=>{if(this['activeChange'])return;const _0x5b87ea=this['_findChangeIdFromDomTarget'](_0x47e0d6['target']),_0x319762=this['_changeIdToChange']['get'](_0x5b87ea);_0x319762?(this['_activeViewTarget']={'x':_0x47e0d6['domEvent']['x'],'y':_0x47e0d6['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x319762)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5e3358,_0x1a9083)=>{const _0x363e94=this['_findChangeIdFromDomTarget'](_0x1a9083['target']),_0x2a15e8=this['_changeIdToChange']['get'](_0x363e94);_0x2a15e8?(this['_activeViewTarget']={'x':_0x1a9083['domEvent']['x'],'y':_0x1a9083['domEvent']['y']},_0x2a15e8===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2a15e8):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x565929){do{const _0x43d8cf=_0x565929['getAttribute']('data-change-id');if(_0x43d8cf)return _0x43d8cf;_0x565929=_0x565929['parent'];}while(_0x565929);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x13d9ff=>{for(const _0x3903e6 of this['editor']['model']['markers'])_0x13d9ff['removeMarker'](_0x3903e6);});}}function downcastSplitMergeMarker(_0x362761){const _0x4e5090=_0x362761['plugins']['get']('RevisionViewer');return(_0x56c98c,_0x14fa54,_0x4f8bd9)=>{const _0x1bbd2a=_0x14fa54['markerName']['split'](':')[0x1],_0x57c1fc=_0x4e5090['_getChangeFromId'](_0x1bbd2a);if(!_0x57c1fc)return null;const _0x5d7526='add'==_0x57c1fc['type']?'split':'merge';if(!_0x4f8bd9['consumable']['test'](_0x14fa54['markerRange'],_0x56c98c['name']))return;const _0x3bd760=_0x14fa54['markerRange']['getWalker'](),_0x261c64=_0x14fa54['markerRange']['start'],_0xb96656=_0x362761['model']['schema'];let _0x529114=null,_0x5c261a=null,_0x576d98=!0x1,_0xf5d646=!0x1;for(const _0x21e069 of _0x3bd760){const _0x192923=_0x21e069['item'];_0x576d98=_0x576d98||_0xb96656['isContent'](_0x192923);const _0x3d36ca=_0x4f8bd9['mapper']['toViewElement'](_0x192923);if(_0x3d36ca&&_0x3d36ca['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x21e069['type']&&(_0xb96656['isBlock'](_0x192923)&&!_0xb96656['isLimit'](_0x192923)&&(_0x192923['nextSibling']||_0x261c64['isAtEnd']?_0x529114&&_0x529114['parent']==_0x192923||(_0x529114=_0x192923,_0x49bba6(_0x21e069['previousPosition']),_0xf5d646=!0x0):_0x5c261a=_0x5c261a||_0x21e069['previousPosition']));}function _0x49bba6(_0x136f88){const _0x53b6ae=_0x4f8bd9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5d7526}),_0x4669ee=_0x4f8bd9['mapper']['toViewPosition'](_0x136f88);_0x57c1fc['data']['isSuggestion']&&_0x4f8bd9['writer']['addClass']('ck-suggestion-marker-'+_0x5d7526+'-new',_0x53b6ae),_0x4e5090['activeChange']==_0x57c1fc&&_0x4f8bd9['writer']['addClass']('ck-suggestion-marker--active',_0x53b6ae),_0x4f8bd9['writer']['insert'](_0x4669ee,_0x53b6ae),_0x4f8bd9['mapper']['bindElementToMarker'](_0x53b6ae,_0x14fa54['markerName']);}_0x576d98||_0xf5d646||!_0x5c261a||_0x49bba6(_0x5c261a);};}function downcastSplitMergeMarkerSuggestion(_0x308a53,_0x3dd49e){return(_0x3b4c97,_0x10338c,_0x35f6f0)=>{if(!_0x35f6f0['consumable']['test'](_0x10338c['markerRange'],_0x3b4c97['name']))return;const _0x5a0be3=_0x10338c['markerRange']['getWalker'](),_0x3f5e16=_0x10338c['markerRange']['start'],_0x43665c=_0x308a53['model']['schema'];let _0x3fe51a=null,_0x416e72=null,_0xd0e9c8=!0x1,_0x5520d0=!0x1;for(const _0x1e98e8 of _0x5a0be3){const _0x138e63=_0x1e98e8['item'];_0xd0e9c8=_0xd0e9c8||_0x43665c['isContent'](_0x138e63);const _0x4fe49f=_0x35f6f0['mapper']['toViewElement'](_0x138e63);if(_0x4fe49f&&_0x4fe49f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1e98e8['type']&&(_0x43665c['isBlock'](_0x138e63)&&!_0x43665c['isLimit'](_0x138e63)&&(_0x138e63['nextSibling']||_0x3f5e16['isAtEnd']?_0x3fe51a&&_0x3fe51a['parent']==_0x138e63||(_0x3fe51a=_0x138e63,_0x299cf7(_0x1e98e8['previousPosition']),_0x5520d0=!0x0):_0x416e72=_0x416e72||_0x1e98e8['previousPosition']));}function _0x299cf7(_0x4b1be6){const _0x53d772=_0x35f6f0['mapper']['toViewPosition'](_0x4b1be6),_0x5121ba=_0x35f6f0['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3dd49e});_0x35f6f0['writer']['insert'](_0x53d772,_0x5121ba),_0x35f6f0['mapper']['bindElementToMarker'](_0x5121ba,_0x10338c['markerName']);}_0xd0e9c8||_0x5520d0||!_0x416e72||_0x299cf7(_0x416e72);};}class RestoreRevisionCommand extends Command{constructor(_0x8ca5f4){super(_0x8ca5f4);const _0x386ad3=_0x8ca5f4['plugins']['get'](RevisionViewer);this['affectsData']=!0x1,this['listenTo'](_0x386ad3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x386ad3,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5a0bb8=this['editor'],_0xa2b8e3=_0x5a0bb8['plugins']['get'](RevisionViewer),_0x84b687=_0xa2b8e3['isReady']?_0xa2b8e3['diff']['newRevisionId']:null;_0x5a0bb8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x84b687);}['refresh'](){const {isReady:_0x50f97c,isEnabled:_0x342da2,repository:_0x367e6c,diff:_0x2d4a8c}=this['editor']['plugins']['get'](RevisionViewer),_0x5c14b0=_0x2d4a8c&&_0x367e6c['getLaterVisibleRevision'](_0x2d4a8c['newRevisionId']);this['isEnabled']=_0x50f97c&&_0x342da2&&Boolean(_0x5c14b0);}}class ShowChangeCommand extends Command{['_step'];constructor(_0x179f2e,{direction:_0xd44c86}){super(_0x179f2e);const _0x5a5fc4=_0x179f2e['plugins']['get'](RevisionViewer);this['affectsData']=!0x1,this['_step']='forward'===_0xd44c86?0x1:-0x1,this['listenTo'](_0x5a5fc4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5a5fc4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5a5fc4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x51df47=this['editor'],_0x3b7db7=_0x51df47['plugins']['get'](RevisionViewer),{isNavigationMode:_0x4e71a1,currentChangeNumber:_0x35f0d3}=_0x3b7db7;let _0x334555;if(_0x3b7db7['activeChange']=_0x4e71a1?_0x3b7db7['diff']['changes']['get'](_0x35f0d3+this['_step']):_0x3b7db7['diff']['changes']['first'],_0x3b7db7['activeChange']['data']['isOnRoot'])_0x334555=_0x51df47['editing']['view']['getDomRoot'](_0x3b7db7['activeChange']['rootName']);else{const _0x55ede0=_0x51df47['model']['markers']['get']('revision:'+_0x3b7db7['activeChange']['id']);_0x334555=getMarkerDomElement(_0x51df47['editing'],_0x55ede0);}scrollViewportToShowTarget({'target':_0x334555,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x260da1,currentChangeNumber:_0x1ecce5,numberOfChanges:_0x34c899,isReady:_0x14de91,isEnabled:_0x413fd0}=this['editor']['plugins']['get'](RevisionViewer);this['isEnabled']=!!(_0x413fd0&&_0x14de91&&_0x34c899)&&(!_0x260da1||(0x1===this['_step']?_0x1ecce5<_0x34c899-0x1:_0x1ecce5>0x0));}}class ChangesNavigationView extends View{constructor(_0x2e1daa){super(_0x2e1daa);const _0x2cb23b=this['bindTemplate'],_0x3e4f76=new ButtonView(_0x2e1daa),_0x3654a0=new ButtonView(_0x2e1daa);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',(_0x196466,_0x2f5ddd)=>_0x196466&&_0x2f5ddd>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x55278d,_0x38c2a6,_0x782182,_0x38dba5)=>{if(!_0x55278d)return getTranslation$4(_0x2e1daa,'Loading...');if(!_0x782182)return getTranslation$4(_0x2e1daa,'No\x20changes');const _0x5643f0=getTranslation$4(_0x2e1daa,'NUMBER_OF_CHANGES',_0x782182);return _0x38dba5?getTranslation$4(_0x2e1daa,'X_OF_Y_CHANGES',[_0x38c2a6+0x1,_0x782182]):_0x5643f0;}),_0x3e4f76['set']({'label':getTranslation$4(_0x2e1daa,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':IconChevronUp}),_0x3654a0['set']({'label':getTranslation$4(_0x2e1daa,'Show\x20next\x20change'),'tooltip':!0x0,'icon':IconChevronDown}),_0x3e4f76['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3654a0['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3e4f76['on']('execute',()=>this['fire']('execute','backward')),_0x3654a0['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',_0x2cb23b['if']('_isStatusLabelVisible','ck-hidden',_0x3980d0=>!_0x3980d0)]},'children':[{'text':_0x2cb23b['to']('isNavigationMode',_0x183a81=>_0x183a81?getTranslation$4(_0x2e1daa,'EDIT_X_OF_Y_REVISIONS')+':\x20':getTranslation$4(_0x2e1daa,'Total')+':\x20')}]},{'text':_0x2cb23b['to']('_statusText')}]},new ToolbarSeparatorView(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3e4f76,_0x3654a0]}]});}}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 _0x44f449=this['editor']['editing']['view'];_0x44f449['change'](_0x28dad8=>{for(const _0x221778 of _0x44f449['document']['roots'])_0x28dad8['addClass'](OVERLAY_CSS_CLASS,_0x221778);});}['hide'](){const _0x50467a=this['editor']['editing']['view'];_0x50467a['change'](_0x622777=>{for(const _0x16cd0 of _0x50467a['document']['roots'])_0x622777['removeClass'](OVERLAY_CSS_CLASS,_0x16cd0);});}}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 _0x2a1ce7=this['editor'],_0x4dcc54=_0x2a1ce7['plugins']['get'](RevisionViewer),_0x48c789=_0x2a1ce7['plugins']['get'](RevisionViewerLoadingOverlay);_0x2a1ce7['ui']['componentFactory']['add']('exitToEditing',_0xaceb00=>{const _0x1e668c=new ButtonView(_0xaceb00);return _0x1e668c['set']({'label':getTranslation$4(_0xaceb00,'Back\x20to\x20editing'),'icon':IconUndo,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1e668c,'execute',()=>{_0x2a1ce7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1e668c;}),_0x2a1ce7['ui']['componentFactory']['add']('restoreRevision',_0x47ec94=>{const _0x44613b=new ButtonView(_0x47ec94);return _0x44613b['set']({'label':getTranslation$4(_0x47ec94,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x44613b['bind']('isEnabled')['to'](_0x2a1ce7['commands']['get']('restoreRevision')),this['listenTo'](_0x44613b,'execute',()=>_0x2a1ce7['execute']('restoreRevision')),_0x44613b;}),_0x2a1ce7['ui']['componentFactory']['add']('changesNavigation',_0x2fd100=>{const _0x1d1ea2=new ChangesNavigationView(_0x2fd100),_0x265c67=_0x2a1ce7['commands']['get']('showPreviousChange'),_0x384a33=_0x2a1ce7['commands']['get']('showNextChange');return _0x1d1ea2['bind']('isBackwardNavigationEnabled')['to'](_0x265c67,'isEnabled'),_0x1d1ea2['bind']('isForwardNavigationEnabled')['to'](_0x384a33,'isEnabled'),_0x1d1ea2['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4dcc54),this['listenTo'](_0x1d1ea2,'execute',(_0x3897f2,_0x2ffecd)=>{_0x2a1ce7['execute']('forward'===_0x2ffecd?'showNextChange':'showPreviousChange');}),_0x1d1ea2;}),_0x48c789['show'](),_0x4dcc54['on']('change:isReady',(_0xb98fb5,_0x327e71,_0x3b4a93)=>{_0x3b4a93?_0x48c789['hide']():_0x48c789['show']();});}}class RevisionNameView extends LabeledFieldView{['_resizeObserver']=null;constructor(_0x39ee0b,_0x301e98){super(_0x39ee0b,_0x301e98);const _0x3def17=this['bindTemplate'];this['set']({'label':getTranslation$4(_0x39ee0b,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=getTranslation$4(_0x39ee0b,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3def17['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new _0x587747(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5783d5=this['fieldView']['element'];this['_tooltipString']=_0x5783d5['scrollWidth']>_0x5783d5['clientWidth']&&_0x5783d5['value']||'';}}class RevisionAuthorView extends View{constructor(_0x256608,_0x566e08,_0xa2b4a5){super(_0x256608);const _0x2bff0=new IconView();_0x2bff0['set']({'content':IconUser,'viewBox':'0\x200\x2011\x2010'});const _0xb07d79=['ck','ck-revision-history-sidebar__revision-author'];_0xa2b4a5&&_0xb07d79['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2fc1d0=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':getTranslation$4(_0x256608,_0xa2b4a5?'Revision\x20creator':'Revision\x20author')},'children':[_0x2bff0,_0x566e08['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xb07d79},'children':_0x2fc1d0});}}function dateToPrettyFormat(_0x411e54,_0x2e13b0){return _0x2e13b0['toLocaleDateString'](_0x411e54,{'month':'long','day':'numeric'})+',\x20'+_0x2e13b0['toLocaleTimeString'](_0x411e54,{'hour':'numeric','minute':'numeric'});}function createActionsDropdownView(_0x275948,_0x49d3ca){const _0x72df2d=_0x275948['bindTemplate'],_0xb05df2=_0x275948['locale'],_0x5d1e66=createDropdown(_0xb05df2);_0x5d1e66['panelPosition']='sw';const _0x51a440=_createDropdownOptions(_0x275948,_0x49d3ca);return _0x275948['bind']('isActionsDropdownOpen')['to'](_0x5d1e66,'isOpen'),_0x5d1e66['buttonView']['set']({'label':getTranslation$4(_0xb05df2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':IconThreeVerticalDots}),_0x5d1e66['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x72df2d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x72df2d['to'](_0x4ad36e=>_0x4ad36e['stopPropagation']())}}),_0x5d1e66['on']('execute',_0x462d72=>{_0x275948['isReady']&&'function'==typeof _0x462d72['source']['_action']&&_0x462d72['source']['_action'](_0x275948);}),addListToDropdown(_0x5d1e66,_0x51a440,{'role':'menu'}),_0x5d1e66['listenTo'](_0x275948,'change:isActionsDropdownOpen',(_0x47bdac,_0xf5edb3,_0x5b93db)=>{if(_0x5b93db)for(const _0x223143 of _0x5d1e66['listView']['items']){const _0x1caa7c=_0x223143['children']['first'],_0x43fe13=_0x49d3ca['find'](_0x3f052f=>_0x3f052f['action']===_0x1caa7c['_action'])['isVisible'];_0x223143['isVisible']=void 0x0===_0x43fe13||_0x43fe13(_0x275948);}}),_0x5d1e66;}function _createDropdownOptions(_0x5debcf,_0x42eed2){const _0x2d6b3b=_getLocalizedOptions(_0x5debcf,_0x42eed2),_0x3160d3=new Collection();for(const _0x3c6c8c of _0x2d6b3b){const _0x536db2={'type':'button','model':new UIModel({'label':_0x3c6c8c['name'],'class':_0x3c6c8c['class'],'withText':!0x0,'role':'menuitem','_action':_0x3c6c8c['action']})};_0x536db2['model']['bind']('isEnabled')['to'](_0x5debcf,'isActionsDropdownOpen',_0x58f5c2=>'function'!=typeof _0x3c6c8c['isEnabled']||(!_0x58f5c2||_0x3c6c8c['isEnabled'](_0x5debcf))),_0x3160d3['add'](_0x536db2);}return _0x3160d3;}function _getLocalizedOptions(_0x1ee4a2,_0x52282e){const _0x71019d=_0x1ee4a2['locale'],_0x17ac2c={'Compare\x20against\x20selected':getTranslation$4(_0x71019d,'Compare\x20against\x20selected'),'Name\x20this\x20revision':getTranslation$4(_0x71019d,'Name\x20this\x20revision'),'Restore\x20this\x20revision':getTranslation$4(_0x71019d,'Restore\x20this\x20revision')};return _0x52282e['map'](_0x23d435=>{const _0x80a69d=_0x17ac2c[_0x23d435['name']];return _0x80a69d&&_0x80a69d!==_0x23d435['name']&&(_0x23d435['name']=_0x80a69d),_0x23d435;});}class RevisionView extends/* #__PURE__ -- @preserve */
ConfirmMixin(View){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4c4e76,_0x3af8f6,_0xe7617c,_0x457bb6){super(_0x4c4e76);const _0x43f3b1=this['bindTemplate'],_0x468247=getAuthorViews(_0x4c4e76,_0x3af8f6);this['id']=_0x3af8f6['id'],this['_revision']=_0x3af8f6,this['_requireRevisionName']=_0x457bb6,this['bind']('name','createdAt')['to'](_0x3af8f6),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1623b1=>dateToPrettyFormat(_0x4c4e76['uiLanguage'],_0x1623b1)),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new RevisionNameView(_0x4c4e76,createLabeledInputText),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x33c35c=>_0x33c35c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1e0bba,_0x36285a)=>_0x1e0bba&&_0x36285a),this['revisionActionsView']=_0xe7617c&&_0xe7617c['length']?createActionsDropdownView(this,_0xe7617c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x43f3b1['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x43f3b1['if']('isEnabled','ck-disabled',_0x28772d=>!_0x28772d),_0x43f3b1['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x43f3b1['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x43f3b1['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':_0x43f3b1['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':_0x468247}]},this['revisionActionsView']],'on':{'click':_0x43f3b1['to'](_0x3a1bcc=>{_0x3a1bcc['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3349f2=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3349f2,'change',()=>{this['_requireRevisionName']&&!_0x3349f2['value']||this['fire']('setName',{'id':this['id'],'name':_0x3349f2['value']}),_0x3349f2['value']||(_0x3349f2['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(_0x3fd83c,_0xf85c28){const _0x5990d9=Array['from'](_0xf85c28['authors'])['filter'](_0xd43c99=>_0xd43c99!=_0xf85c28['creator']);return _0xf85c28['creator']&&_0x5990d9['unshift'](_0xf85c28['creator']),_0x5990d9['map'](_0x486b17=>new RevisionAuthorView(_0x3fd83c,_0x486b17,_0x486b17==_0xf85c28['creator']));}function getDateTimePeriodInfo(_0x5582c4,_0x20d0ea){const _0x2e4b0b=DateTime['fromJSDate'](_0x5582c4)['setLocale'](_0x20d0ea),_0x5e1abd=DateTime['local'](),_0x265afd=_0x5e1abd['minus']({'days':0x1})['startOf']('day');let _0x35fbe1,_0x447884;return _0x2e4b0b['hasSame'](_0x5e1abd,'day')?(_0x35fbe1=_0x2e4b0b['startOf']('day')['toJSDate'](),_0x447884=_0x2e4b0b['toRelativeCalendar']()):_0x2e4b0b['hasSame'](_0x265afd,'day')?(_0x35fbe1=_0x265afd['toJSDate'](),_0x447884=_0x2e4b0b['toRelativeCalendar']()):_0x2e4b0b['hasSame'](_0x5e1abd,'week')?(_0x35fbe1=_0x2e4b0b['startOf']('week')['toJSDate'](),_0x447884=_0x2e4b0b['weekdayLong']||''):_0x2e4b0b['hasSame'](_0x5e1abd,'year')?(_0x35fbe1=_0x2e4b0b['startOf']('month')['toJSDate'](),_0x447884=_0x2e4b0b['monthLong']||''):(_0x35fbe1=_0x2e4b0b['startOf']('year')['toJSDate'](),_0x447884=String(_0x2e4b0b['year'])),{'startDate':_0x35fbe1,'localizedPeriodName':_0x447884};}class RevisionsSidebarTimePeriodView extends View{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1a5015,_0x112bbd,_0x47a71d,_0xeb96b2){super(_0x1a5015);const _0x263c4a=getDateTimePeriodInfo(_0x112bbd,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x112bbd,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x47a71d,this['_requireRevisionName']=_0xeb96b2,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':_0x263c4a}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2952dc){const _0x29f9b4=new RevisionView(this['locale'],_0x2952dc,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x29f9b4);}['removeRevision'](_0x223c79){const _0x2a769d=this['revisionViews']['find'](_0x599bcd=>_0x599bcd['id']===_0x223c79['id']);this['revisionViews']['remove'](_0x2a769d);}}class RevisionsSidebarHeaderView extends View{constructor(_0x127b93){super(_0x127b93);const _0x303e91=new IconView();_0x303e91['content']=IconHistory,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x303e91,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[getTranslation$4(_0x127b93,'Revision\x20history')]}]});}}class RevisionsSidebarView extends View{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1fb918,_0x4cde83,_0x652a55,_0x26c744){super(_0x1fb918);const _0x543fae=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4cde83,this['_revisionActions']=_0x652a55,this['_requireRevisionName']=_0x26c744,this['on']('select',(_0x4e4c7d,_0x2f81d5)=>{this['fire']('revisionSelected',_0x2f81d5);}),this['on']('setName',(_0x4053dc,_0x579743)=>{this['fire']('revisionSetName',_0x579743);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new RevisionsSidebarHeaderView(_0x1fb918),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x543fae['if']('isEnabled','ck-disabled',_0x44a78f=>!_0x44a78f)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x31887c of this['_revisions'])this['_addRevision'](_0x31887c);this['_revisions']['on']('add',(_0x249024,_0x15348b)=>{this['_addRevision'](_0x15348b);}),this['_revisions']['on']('remove',(_0x25d12b,_0x40c9d3)=>{this['_removeRevision'](_0x40c9d3);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5e822a=>_0x5e822a['revisionViews']['map'](_0x21b880=>_0x21b880))['flat']();}['selectRevision'](_0x3add73){for(const _0x4796db of this['revisionViews'])_0x3add73&&_0x3add73['id']===_0x4796db['id']?_0x4796db['select']():_0x4796db['deselect']();}['highlightRevisions'](_0x1ad6e6){for(const _0x5f47a4 of this['revisionViews'])_0x1ad6e6['some'](({id:_0x6482e0})=>_0x6482e0===_0x5f47a4['id'])?_0x5f47a4['highlight']():_0x5f47a4['unhighlight']();}['_addRevision'](_0x483237){const _0x4cb3fe=getDateTimePeriodInfo(_0x483237['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x46a45c=this['timePeriodViews']['get'](0x0);_0x46a45c&&_0x46a45c['startDate']['getTime']()===_0x4cb3fe['getTime']()||(_0x46a45c=new RevisionsSidebarTimePeriodView(this['locale'],_0x4cb3fe,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x46a45c)),_0x46a45c['addRevision'](_0x483237);}['_removeRevision'](_0x22fdc2){const _0x10c233=getDateTimePeriodInfo(_0x22fdc2['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x10c233)['removeRevision'](_0x22fdc2);}['_getTimePeriodViewByStartDate'](_0x2151fa){return this['timePeriodViews']['find'](_0x402f1b=>_0x402f1b['startDate']['getTime']()===_0x2151fa['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(_0x36586c){super(_0x36586c),this['_revisionViewer']=_0x36586c['plugins']['get'](RevisionViewer),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x39c5b3=this['_revisionsRepository']['_revisions'],_0x277ab5=this['_createRevisionActions'](),_0x4ccb4b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new RevisionsSidebarView(this['editor']['locale'],_0x39c5b3,_0x277ab5,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',(_0x2edba6,_0x1a29e7)=>{_0x1a29e7['revisionViews']['on']('add',(_0x573a9d,_0x9cde56)=>{_0x9cde56['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)),_0x4ccb4b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2de1c1=this['_revisionsRepository']['getRevision'](0x0);if(_0x2de1c1){const _0x3a5816=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2de1c1['id']);this['_revisionViewer']['compare'](_0x2de1c1,_0x3a5816);}}['_handleRevisionSelected'](_0x517240,_0x29e663){const _0x2a88b4=this['_revisionsRepository']['getRevision'](_0x29e663['id']),_0x1df950=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2a88b4['id']);this['_revisionViewer']['compare'](_0x2a88b4,_0x1df950);}['_handleRevisionSetName'](_0x598e7f,_0xb51cdd){this['_revisionsRepository']['getRevision'](_0xb51cdd['id'])['setName'](_0xb51cdd['name']);}['_handleDiffChange'](_0x346b9e,_0x1576d9,_0x19a952){const _0x5d1833=this['_revisionsRepository']['getRevisionsInDiff'](_0x19a952);_0x5d1833['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5d1833),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5d1833[0x0]));}['_createRevisionActions'](){const _0x25fae6=this['editor'],_0x282bc3=RevisionsSidebar['availableRevisionActions'],_0x16540c=_0x25fae6['config']['get']('revisionHistory.revisionActions')||RevisionsSidebar['defaultRevisionActions'];if(_0x16540c['length'])return _0x16540c['map'](_0x38c122=>{const _0x47dc9f='string'==typeof _0x38c122?Object['assign']({},_0x282bc3[_0x38c122]):_0x38c122;return _0x47dc9f['action']=_0x47dc9f['action']['bind'](this,_0x25fae6),_0x47dc9f['isVisible']&&(_0x47dc9f['isVisible']=_0x47dc9f['isVisible']['bind'](this,_0x25fae6)),_0x47dc9f;});}}function availableRevisionActions(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3e4b7c},_0x1c5342)=>{const _0x5dec6e=_0x3e4b7c['get'](RevisionViewer),_0x4ca47b=_0x5dec6e['repository'];let _0x2602ec=_0x5dec6e['diff']['newRevisionId'],_0x3cf344=_0x1c5342['id'];_0x4ca47b['getIndex'](_0x2602ec)>_0x4ca47b['getIndex'](_0x3cf344)&&([_0x2602ec,_0x3cf344]=[_0x3cf344,_0x2602ec]),_0x5dec6e['compare'](_0x2602ec,_0x3cf344);},'isVisible':({plugins:_0x1b0e0d},_0x5d56cb)=>{const _0x3b67f3=_0x1b0e0d['get'](RevisionViewer);return!(_0x3b67f3['repository']['getRevisionsInDiff'](_0x3b67f3['diff'])['length']>0x2)&&!_0x5d56cb['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5a2c78,{id:_0xd3825f})=>{_0x5a2c78['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xd3825f);},'isVisible':({plugins:_0x599ec5},_0xe6b80)=>!!_0x599ec5['get'](RevisionViewer)['repository']['getLaterVisibleRevision'](_0xe6b80['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x44e5b7},{id:_0x489dbe,revisionNameView:_0x2ba4c6})=>{const _0x59d328=_0x44e5b7['get'](RevisionViewer),_0x4a36a3=_0x59d328['repository']['getEarlierVisibleRevision'](_0x489dbe);_0x59d328['compare'](_0x489dbe,_0x4a36a3),_0x2ba4c6['focus'](),_0x2ba4c6['fieldView']['select']();}}};}class RevisionViewerEditorUI extends EditorUI{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xc5f30,_0x178677){super(_0xc5f30),this['_view']=_0x178677,this['_toolbarConfig']=normalizeToolbarConfig(_0xc5f30['config']['get']('toolbar')),this['_elementReplacer']=new ElementReplacer();}get['element'](){return this['view']['element'];}['init'](_0x309592){const _0x3e9a96=this['editor'],_0x4a6251=this['view'],_0x47d510=_0x3e9a96['editing']['view'],_0x58538a=_0x4a6251['editable'],_0x1bd798=_0x47d510['document']['getRoot']();_0x58538a['name']=_0x1bd798['rootName'],_0x4a6251['render']();const _0x55a2e7=_0x58538a['element'];this['setEditableElement'](_0x58538a['name'],_0x55a2e7),_0x4a6251['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x47d510['attachDomRoot'](_0x55a2e7),this['_elementReplacer']['replace'](_0x309592,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4b916e=this['view'],_0x41ac08=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x41ac08['detachDomRoot'](_0x4b916e['editable']['name']),_0x4b916e['destroy']();}['_initToolbar'](){const _0x393fbd=this['view'];_0x393fbd['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x393fbd['stickyPanel']['limiterElement']=_0x393fbd['element'],_0x393fbd['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2cd322})=>_0x2cd322),_0x393fbd['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x393fbd['toolbar']);}}class RevisionViewerEditorUIView extends BoxedEditorUIView{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4372bf,_0x391a2b,_0x59b0df={}){super(_0x4372bf),this['stickyPanel']=new StickyPanelView(_0x4372bf),this['toolbar']=new ToolbarView(_0x4372bf,{'shouldGroupWhenFull':_0x59b0df['shouldToolbarGroupWhenFull']}),this['_editable']=new InlineEditableUIView(_0x4372bf,_0x391a2b);}['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(_0xbdfae6,_0x3211ce){super(_0x3211ce),this['sourceElement']=_0xbdfae6,this['model']['document']['createRoot']();const _0x2e8c80=new RevisionViewerEditorUIView(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new RevisionViewerEditorUI(this,_0x2e8c80);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x32365c,_0x345e8c){const _0x3476ae=new this(_0x32365c,_0x345e8c);return await _0x3476ae['initPlugins'](),await _0x3476ae['ui']['init'](_0x32365c),await _0x3476ae['data']['init'](_0x3476ae['config']['get']('initialData')||''),_0x3476ae['fire']('ready'),_0x3476ae;}}const blackListedPlugins=['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(_0x1afd6a){function _0xa3c4dd(_0x346552){return _0x346552['map'](_0xae0da5=>String['fromCharCode'](_0xae0da5))['join']('');}super(_0x1afd6a),this['result']='end',_0x1afd6a[_0xa3c4dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa3c4dd([0x76,0x69,0x65,0x77])][_0xa3c4dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa3c4dd([0x61,0x75,0x74,0x6f]),_0x1afd6a[_0xa3c4dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xa3c4dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa3c4dd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xa3c4dd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xa3c4dd([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(_0x3c7d82){if(super(_0x3c7d82),!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',_0x5984ec=>this['_showRevisionViewer']({..._0x5984ec,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x26ff48=>this['_closeRevisionViewer'](_0x26ff48)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5c6035=>this['_restoreRevision'](_0x5c6035)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1a724f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1a724f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x562e10){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x562e10);}['getRevision'](_0x45a023){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x45a023);}['getRevisions'](_0x3d6520){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3d6520||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5498c0=this['editor'],_0x56c347=sanitizeEditorConfig(_0x5498c0,blackListedPlugins),_0x8f8341=_0x5498c0['plugins']['get']('RevisionTracker'),_0x4903bb=_0x5498c0['plugins']['get'](Users)['users'];return _0x56c347['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x56c347['lazyRoots'],(_0x56c347['plugins']['push'](RevisionViewerIntegration,RevisionViewer,RevisionViewerUI,class extends Plugin{static get['requires'](){return[RevisionViewer,Users];}['init'](){const _0x11a9d3=this['editor']['plugins']['get'](Users);for(const _0x4f7fae of _0x4903bb)_0x4f7fae['isAnonymous']||_0x11a9d3['getUser'](_0x4f7fae['id'])||_0x11a9d3['addUser'](_0x4f7fae);const _0x5e91e5=_0x8f8341['repository']['getRevisions']();let _0x1aec0c=null;const _0xc83176=this['editor']['plugins']['get']('RevisionViewer');_0xc83176['adapter']=_0x8f8341['adapter'],_0xc83176['bind']('isEnabled')['to'](_0x8f8341),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5498c0,'isReadOnly',_0x53753b=>!_0x53753b);for(const _0x5a1488 of _0x5e91e5){const _0x13f54b=null===_0x5a1488['creator'];if(_0x13f54b&&_0x5a1488['toVersion']===_0x5a1488['fromVersion'])continue;const _0x461c35=_0x5a1488['toJSON']();_0xc83176['addRevisionData'](_0x461c35,(_0xf3bd50,_0x378b37,_0x1060e9)=>{if(_0x13f54b){if(_0x1aec0c)_0x1aec0c['_update'](_0xf3bd50,_0x378b37);else{if(!_0x378b37){const _0x245b97=_0x1060e9['toJSON']();_0x245b97['id']=uid(),_0x8f8341['saveRevision'](_0x245b97,_0x1060e9['toVersion'])['then'](_0xece81b=>{_0x1aec0c=_0xece81b;});}}}else _0x5a1488['_update'](_0xf3bd50,_0x378b37);});}}},RevisionsSidebar),_0x56c347);}['_enhanceShowRevisionViewerCallback'](){const _0x5e464a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5146f7=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x38761a=this['editor']['plugins']['get']('Autosave');await _0x38761a['save']();}else await _0x5146f7['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1a63e9=this['editor']['plugins']['get']('Dialog');_0x1a63e9['isOpen']&&_0x1a63e9['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x442d26=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x4fa82f of _0x442d26)_0x4fa82f['class']=_0x4fa82f['class']?_0x4fa82f['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x1530bf=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1530bf&&_0x1530bf['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x172cf6=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x172cf6&&_0x172cf6['setAttribute']('tabindex','-1');}}const _0x43eed6=this['_getRevisionViewerEditorConfig']();return _0x5e464a(_0x43eed6)['then'](_0x318a08=>{return(this['_viewerEditor']=_0x318a08,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'),_0x318a08);})['catch'](_0x31f9a3=>(console['error'](_0x31f9a3),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x21eeb4=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 _0x384608=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x6124b5 of _0x384608)_0x6124b5['class']='ck-tab-panel_disabled'===_0x6124b5['class']?'':_0x6124b5['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x111514=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x111514&&_0x111514['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x1ae7ed=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x1ae7ed&&_0x1ae7ed['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x21eeb4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1b5472=this['editor']['plugins']['get']('Annotations');_0x1b5472['refreshVisibility'](),_0x1b5472['refreshPositioning']();}});});}['_showRevisionViewer'](_0x14b087){const _0xb948cf=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x23edda=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4e880a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return RevisionViewerEditor['create'](_0x4e880a,_0x14b087)['then'](_0x337ea8=>(_0x23edda['style']['display']='block',_0xb948cf['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x337ea8));}['_closeRevisionViewer'](_0x134413){const _0x70a9a6=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x70a9a6['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x134413['destroy']();}async['_restoreRevision'](_0x1266c9){const _0x45996b=this['editor'],_0x1836a6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x20bf1e=_0x45996b['plugins']['get']('RevisionTracker'),_0x40408a=_0x45996b['plugins']['get']('RevisionHistoryUtils'),_0x268097=_0x1836a6['repository']['getRevision'](_0x1266c9);let _0x43bc47,_0x4c5512,_0x3d375e;try{await _0x40408a['loadRevisionData'](_0x268097,this['adapter']),_0x43bc47=_0x40408a['getRevisionDocumentData'](_0x268097),_0x4c5512=_0x40408a['getRevisionRootsAttributes'](_0x268097);}catch(_0x3668ee){return void console['error'](_0x3668ee);}_0x45996b['model']['change'](_0x1219d5=>{for(const _0x9119d2 of Array['from'](_0x45996b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1219d5['removeMarker'](_0x9119d2);}),_0x1836a6['isReady']=!0x1,_0x45996b['model']['enqueueChange'](_0x1c89c3=>{_0x1c89c3['setSelection'](null),_0x1c89c3['removeSelectionAttribute'](_0x45996b['model']['document']['selection']['getAttributeKeys']());const _0xd7e5f1=Object['keys'](_0x43bc47);for(const _0x20b32f of _0x45996b['model']['document']['roots'])'$graveyard'!=_0x20b32f['rootName']&&_0x20b32f['isAttached']()&&!_0xd7e5f1['includes'](_0x20b32f['rootName'])&&_0x1c89c3['detachRoot'](_0x20b32f);for(const _0x32bedb of _0xd7e5f1){let _0x4def27=_0x45996b['model']['document']['getRoot'](_0x32bedb);_0x4def27&&_0x4def27['isAttached']()||(_0x4def27=_0x1c89c3['addRoot'](_0x32bedb));const _0x1521cb=_0x4c5512[_0x32bedb],_0x3d5afe=Object['keys'](_0x1521cb),_0x598757=_0x43bc47[_0x32bedb];for(const _0x1fb023 of _0x4def27['getAttributeKeys']())_0x3d5afe['includes'](_0x1fb023)||_0x1c89c3['removeAttribute'](_0x1fb023,_0x4def27);for(const _0x2e13e8 of _0x3d5afe)_0x1c89c3['setAttribute'](_0x2e13e8,_0x4c5512[_0x32bedb][_0x2e13e8],_0x4def27);_0x1c89c3['remove'](_0x1c89c3['createRangeIn'](_0x4def27)),_0x1c89c3['insert'](_0x45996b['data']['parse'](_0x598757,_0x4def27),_0x4def27,0x0);}});const _0x42343a=getTranslation$4(_0x45996b['locale'],'Restored');if(_0x268097['name'])_0x3d375e=-0x1==_0x268097['name']['indexOf'](_0x42343a)?_0x42343a+':\x20'+_0x268097['name']:_0x268097['name'];else _0x3d375e=_0x42343a+':\x20'+(_0x268097['createdAt']['toLocaleDateString'](_0x45996b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x268097['createdAt']['toLocaleTimeString'](_0x45996b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x20bf1e['saveRevision']({'name':_0x3d375e}),_0x1836a6['isReady']=!0x0,_0x45996b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}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(_0x112143){super(_0x112143);const _0x5f49e3=this['editor']['config']['get']('collaboration.channelId');this['_lastRequestId']=null,this['_revisionTracker']=this['editor']['plugins']['get']('RevisionTracker'),this['_revisionHistoryService']=new CloudServicesRevisionHistoryAdapter['RevisionHistoryService'](_0x5f49e3);}async['init'](){const _0x56cb75=this['editor']['plugins']['get'](RealTimeCollaborationClient),_0x28e06b=_0x56cb75['serverHistory'],_0x18c9c7=this['editor']['plugins']['get'](WebSocketGateway);this['_revisionTracker']['setSource']({'history':_0x28e06b,'getLatestVersion':()=>this['_getLatestVersion'](),'getCurrentRevisionId':()=>_0x56cb75['sessionId']});const _0x24dcdf=this['editor']['config']['get']('cloudServices.bundleVersion')||_0x4bb576,_0x5c6010=await EditorService['isBundleUploaded'](_0x18c9c7['connection'],_0x24dcdf);this['editor']['plugins']['get'](RevisionHistory)['adapter']={'getRevision':async({revisionId:_0x46f0ef})=>(await this['_waitForServiceReady'](),await this['_revisionHistoryService']['getRevision'](_0x46f0ef)),'updateRevisions':async _0x2d31a0=>{await this['_waitForServiceReady']();const _0x36eca1=this['_revisionTracker']['currentRevision'];if(_0x5c6010&&0x1===_0x2d31a0['length']&&_0x2d31a0[0x0]['id']===_0x36eca1['id'])return _0x2d31a0;for(const _0xe683b6 of _0x2d31a0)_0xe683b6['id']===_0x36eca1['id']&&(_0xe683b6['isEmptyCurrent']=_0xe683b6['fromVersion']===_0xe683b6['toVersion']);return this['_revisionHistoryService']['updateRevisions'](_0x2d31a0,this['_lastRequestId'])['then'](_0x58c81b=>(this['_lastRequestId']=_0x58c81b,_0x2d31a0))['catch'](_0x4a4b1f=>{if(isDisconnectionError(_0x4a4b1f)||'400'===_0x4a4b1f['code']&&void 0x0!==_0x4a4b1f['data']['wrongRequestId']){for(const _0x312c90 of _0x2d31a0){!this['_revisionTracker']['repository']['getRevision'](_0x312c90['id'])||this['_revisionTracker']['_bufferUpdate'](_0x312c90['id'],_0x312c90,!0x1);}if(isDisconnectionError(_0x4a4b1f))throw _0x4a4b1f;return _0x2d31a0;}throw _0x4a4b1f;});}},this['listenTo'](this['_revisionHistoryService'],'revisionsUpdated',(_0x4306d5,{revisionsData:_0x1a1de2,requestId:_0x48368a})=>{Math['max'](..._0x1a1de2['map'](_0x4eb592=>_0x4eb592['toVersion']))>this['_getLatestVersionFromServerOperations']()-0x1?this['_getLatestVersion']()['then'](()=>{this['_handleRevisionsUpdate'](_0x1a1de2,_0x48368a);}):this['_handleRevisionsUpdate'](_0x1a1de2,_0x48368a);});const {revisions:_0x42fcd4,requestId:_0xe03515}=await this['_revisionHistoryService']['connect'](_0x18c9c7['connection']);_0x18c9c7['addToReconnectionStack'](this),this['_lastRequestId']=_0xe03515,await this['_fetchMissingUsers'](_0x42fcd4);for(const _0x1c4744 of _0x42fcd4)this['_revisionTracker']['addRevisionData'](_0x1c4744);this['listenTo'](_0x56cb75,'change:_isConnected',(_0x1934fa,_0x2eefed,_0x468497)=>{_0x468497&&(this['_oldOffset']=_0x56cb75['_offset'],_0x1934fa['off']());}),this['_revisionTracker']['bind']('isEnabled')['to'](_0x18c9c7,'state',_0x2ed9e1=>_0x2ed9e1===WEB_SOCKET_GATEWAY_STATES['CONNECTED']);}async['reconnect'](){const _0x4967c3=this['editor']['plugins']['get'](WebSocketGateway),_0x5a4f26=this['editor']['plugins']['get'](RealTimeCollaborationClient),_0x5c04e7=async()=>{const _0x1748ef=this['_revisionTracker']['currentRevision'],_0x12c92e=_0x1748ef['id'],_0x1589f1=_0x12c92e!==_0x5a4f26['sessionId'];if(_0x1589f1){const _0xc2a74c=_0x5a4f26['_offset']-this['_oldOffset'],_0xd64d00=this['_getLatestVersionFromServerOperations']();this['_revisionTracker']['_revisionDataBuilder']['reInit']();if(_0x1748ef['toVersion']+_0xc2a74c!==_0xd64d00){const _0x4b5ded=_0x1748ef['fromVersion']+_0xc2a74c,_0x40dde7=this['editor']['plugins']['get'](Users),_0x1ac679=this['_revisionTracker']['buildRevisionData']({'revision':_0x1748ef,'from':_0x4b5ded,'to':_0xd64d00});_0x1ac679['id']=_0x1748ef['id'];const _0x1d2148=_0x1ac679['authorsIds']['map'](_0x66df52=>_0x40dde7['getUser'](_0x66df52));_0x1748ef['_update']({..._0x1ac679,'authors':_0x1d2148},!0x0),this['_revisionTracker']['_bufferUpdate'](_0x1748ef['id'],_0x1ac679,!0x0);}this['_revisionTracker']['_startingVersion']=_0xd64d00,(_0x1748ef['toVersion']===_0x1748ef['fromVersion']&&!this['_revisionTracker']['_bufferedUpdates']['has'](_0x12c92e)&&this['_revisionTracker']['repository']['_revisions']['remove'](_0x12c92e),this['_revisionTracker']['_createCurrentRevision'](_0xd64d00));}const {revisions:_0x185869,requestId:_0x288a04}=await this['_revisionHistoryService']['reconnect'](_0x4967c3['connection'],this['_lastRequestId']);_0x1589f1&&_0x185869['length']>0x0?_0x5a4f26['_handleReconnectionError']():(await this['_fetchMissingUsers'](_0x185869),this['_handleRevisionsUpdate'](_0x185869,_0x288a04),this['_revisionTracker']['sendBufferedUpdates']());};return _0x5a4f26['_isConnected']?_0x5c04e7():new Promise((_0x34185b,_0x59bf87)=>{_0x5a4f26['once']('change:_isConnected',()=>{_0x5c04e7()['then'](_0x34185b)['catch'](_0x59bf87);});});}['destroy'](){super['destroy']();}async['_waitForServiceReady'](){this['_revisionHistoryService']['isConnected']||await new Promise(_0x20db14=>{this['listenTo'](this['_revisionHistoryService'],'connected',_0x31fed=>{_0x31fed['off'](),_0x20db14();});});}['_getLatestVersionFromServerOperations'](){const _0x5783cf=this['editor']['plugins']['get'](RealTimeCollaborationClient)['serverHistory']['getOperations']()['reverse']();for(const _0xd0bdd6 of _0x5783cf)if('marker'!==_0xd0bdd6['type']||_0xd0bdd6['affectsData'])return _0xd0bdd6['baseVersion']+0x1;}['_getLatestVersion'](){const _0x18867c=this['editor']['plugins']['get'](RealTimeCollaborationClient);return new Promise(_0x1bf156=>{_0x18867c['_isPendingUpdate']?_0x18867c['once']('change:_isPendingUpdate',()=>{_0x1bf156(this['_getLatestVersionFromServerOperations']());}):_0x1bf156(this['_getLatestVersionFromServerOperations']());});}['_handleRevisionsUpdate'](_0x3e3bd1,_0x807a8b){const _0x492c66=this['_revisionTracker']['repository'];this['_lastRequestId']=_0x807a8b;for(const _0x720ac4 of _0x3e3bd1){const _0x3d188e=_0x492c66['getRevision'](_0x720ac4['id']);if(_0x3d188e){if((_0x720ac4['fromVersion']||_0x720ac4['toVersion'])&&(_0x720ac4['diffData']=null),_0x3d188e===this['_revisionTracker']['currentRevision']){const _0x1384bb=Math['max'](_0x3d188e['toVersion'],_0x720ac4['toVersion']),_0x54482d=Math['max'](_0x3d188e['fromVersion'],_0x720ac4['fromVersion']);let _0x40ae4f;_0x3d188e['toVersion']===_0x720ac4['toVersion']&&_0x3d188e['fromVersion']===_0x720ac4['fromVersion']?(_0x40ae4f=!0x0,this['_preventResendingRevisionData'](_0x720ac4)):_0x720ac4['toVersion']===_0x1384bb&&_0x720ac4['fromVersion']===_0x54482d?_0x40ae4f=!0x1:(_0x3d188e['toVersion']===_0x1384bb&&_0x3d188e['fromVersion']===_0x54482d||this['_fixRevision']({'revision':_0x3d188e,'from':_0x54482d,'to':_0x1384bb}),_0x40ae4f=!0x0),_0x40ae4f&&(delete _0x720ac4['fromVersion'],delete _0x720ac4['toVersion'],delete _0x720ac4['diffData'],delete _0x720ac4['createdAt'],delete _0x720ac4['authorsIds']);}this['_revisionTracker']['setRevisionData'](_0x720ac4),this['_preventResendingRevisionData'](_0x720ac4);}else this['_revisionTracker']['addRevisionData'](_0x720ac4);}const _0x1f6346=_0x492c66['getRevisions']();_0x1f6346['reverse']();for(let _0x5724b1=0x0;_0x5724b1<_0x1f6346['length']-0x1;_0x5724b1++){const _0x401281=_0x1f6346[_0x5724b1],_0x2028fb=_0x1f6346[_0x5724b1+0x1];if(_0x401281['fromVersion']<_0x2028fb['toVersion']){const _0x11824c=_0x2028fb['toVersion'],_0x528c8e=Math['max'](_0x11824c,_0x401281['toVersion']);this['_fixRevision']({'revision':_0x401281,'from':_0x11824c,'to':_0x528c8e});}}}['_fixRevision']({revision:_0x146963,from:_0x22e0a4,to:_0x3da717}={}){const _0x3a4689=this['editor']['plugins']['get'](Users),_0x36eec4=this['_revisionTracker']['buildRevisionData']({'revision':_0x146963,'from':_0x22e0a4,'to':_0x3da717});_0x36eec4['authors']=_0x36eec4['authorsIds']['map'](_0x1c0eca=>_0x3a4689['getUser'](_0x1c0eca)),_0x146963['_update'](_0x36eec4);}['_preventResendingRevisionData'](_0x9d473e){const _0x1cee0d={};_0x1cee0d['id']=_0x9d473e['id'];for(const _0x356ed6 of Object['keys'](_0x9d473e))'id'!==_0x356ed6&&(_0x1cee0d[_0x356ed6]=void 0x0);this['_revisionTracker']['_bufferUpdate'](_0x1cee0d['id'],_0x1cee0d,!0x0);}async['_fetchMissingUsers'](_0x3b15fd){const _0xb541d7=this['editor']['plugins']['get'](Users),{connection:_0x5e75ff}=this['editor']['plugins']['get'](WebSocketGateway),_0x22f15c=new Set();for(const _0xa8c9b5 of _0x3b15fd){for(const _0x7a7285 of _0xa8c9b5['authorsIds'])_0x464d99(_0x7a7285);_0xa8c9b5['creatorId']&&_0x464d99(_0xa8c9b5['creatorId']);}if(0x0===_0x22f15c['size'])return;const _0x1a6657=await User['getMany'](_0x5e75ff,Array['from'](_0x22f15c));for(const _0x5ca87e of _0x1a6657)_0xb541d7['getUser'](_0x5ca87e['id'])||_0xb541d7['addUser'](_0x5ca87e);function _0x464d99(_0x80ac31){_0xb541d7['getUser'](_0x80ac31)||_0x22f15c['add'](_0x80ac31);}}}function isDisconnectionError(_0x4d1017){return _0x4d1017['message']['startsWith']('cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.')||_0x4d1017['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x4d1017['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(_0x47961d,_0xd7f104=0x6){super(_0x47961d);const _0x2b9240=this['bindTemplate'];this['set']('isHidden',!0x0),this['set']('usersCount',0x0),this['_collapseAt']=_0xd7f104,this['bind']('isHidden')['to'](this,'usersCount',_0x3b67e8=>_0x3b67e8<_0xd7f104),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item',_0x2b9240['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':_0x2b9240['to']('usersCount',_0x464220=>'+'+(_0x464220-this['_collapseAt']+0x2)['toString']())}]}]}]});}}class PresenceInlineListView extends View{['items'];['keystrokes'];constructor(_0x5ad195){super(_0x5ad195);const _0x592a92=this['bindTemplate'];this['items']=this['createCollection'](),this['keystrokes']=new KeystrokeHandler(),this['set']({'hasPopup':!0x1,'isExpanded':!0x1}),this['setTemplate']({'tag':'div','attributes':{'aria-haspopup':_0x592a92['if']('hasPopup'),'aria-expanded':_0x592a92['to']('isExpanded',_0x11e35f=>this['hasPopup']&&String(_0x11e35f)),'aria-label':_0x592a92['to']('hasPopup',_0x54cdc8=>getTranslation$6(_0x5ad195,_0x54cdc8?'Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)':'Connected\x20users\x20list')),'role':'list','tabindex':_0x592a92['to']('hasPopup',_0x5ad31d=>!!_0x5ad31d&&0x0),'class':['ck','ck-presence-list__list']},'children':this['items'],'on':{'mouseenter':_0x592a92['to'](()=>this['fire']('presencelist:show')),'mouseleave':_0x592a92['to'](_0x39b782=>{const _0x42e319=_0x39b782,_0x4c1291=document['querySelector']('.ck-presence-list__dropdown-list'),_0x562b74=document['querySelector']('.ck-balloon-panel_with-arrow');_0x4c1291?.['contains'](_0x42e319['relatedTarget'])||_0x562b74?.['contains'](_0x42e319['relatedTarget'])||this['fire']('presencelist:hide');})}}),this['on']('change:hasPopup',(_0x4c74c4,_0x4f6938,_0x268b40)=>{this['element']&&(_0x268b40?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(_0x3c649e,_0x4b0c19=0x6){super(_0x3c649e);const _0x2f82e0=this['bindTemplate'];this['set']('isCollapsed',!0x0),this['counterView']=new PresenceCounterView(this['locale'],_0x4b0c19),this['inlineListView']=new PresenceInlineListView(_0x3c649e),this['inlineListView']['bind']('hasPopup')['to'](this,'isCollapsed'),this['listenTo'](this['inlineListView']['items'],'change',()=>{for(const _0x110ac0 of this['inlineListView']['items'])_0x110ac0['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',_0x2f82e0['if']('isCollapsed','ck-presence-list--collapsed')]},'children':[this['inlineListView']]});}}class PresenceDropdownListView extends View{['listWrapperView'];constructor(_0x379644,_0x2bb7ec){super(_0x379644);const _0x250494=this['bindTemplate'];this['listWrapperView']=new PresenceDropdownListWrapperView(_0x379644,_0x2bb7ec),this['setTemplate']({'tag':'div','attributes':{'tabindex':-0x1,'role':'application','class':['ck','ck-presence-list__dropdown-list'],'aria-label':getTranslation$6(_0x379644,'Connected\x20users\x20list\x20dropdown\x20menu')},'children':[this['listWrapperView']],'on':{'mouseleave':_0x250494['to'](_0x53dafb=>{const _0x539ef7=_0x53dafb,_0x44f21f=document['querySelector']('.ck-presence-list__list'),_0x2158de=document['querySelector']('.ck-balloon-panel_with-arrow');_0x44f21f?.['contains'](_0x539ef7['relatedTarget'])||_0x2158de?.['contains'](_0x539ef7['relatedTarget'])||this['fire']('presencelist:hide');})}});}}class PresenceDropdownListWrapperView extends ListView{constructor(_0x1f92cc,_0x1cddbb){super(_0x1f92cc);const _0x29c1b2=this['bindTemplate'];this['set']('_isScrollable',!0x1),this['setTemplate']({'tag':_0x1cddbb?'div':'ul','attributes':{'class':['ck','ck-reset','ck-list','ck-presence-list__dropdown-list-wrapper',_0x29c1b2['if']('_isScrollable','ck-presence-list__dropdown-list-wrapper_scrollable')],'role':_0x29c1b2['to']('role'),'aria-label':_0x29c1b2['to']('ariaLabel'),'aria-labelledby':_0x29c1b2['to']('ariaLabelledBy')},'children':this['items']}),this['listenTo'](_0x176c57['window'],'resize',()=>this['checkIfScrollable']()),this['items']['on']('change',()=>this['checkIfScrollable']());}['render'](){super['render'](),this['checkIfScrollable']();}['checkIfScrollable'](){const _0x511610=this['element'];_0x511610&&(this['_isScrollable']=Math['max'](_0x511610['scrollHeight'],_0x511610['clientHeight'])>0.8*window['innerHeight']);}}class PresenceDropdownListItemView extends ListItemView{['userView'];constructor(_0x15c073,_0x5d1f9f,_0x31e506){super(_0x15c073);const _0x42a584=this['bindTemplate'];this['userView']=new UserView(_0x15c073,_0x5d1f9f);const _0x41c51a={'tag':'li','attributes':{'class':['ck','ck-presence-list__dropdown-list-item'],'tabindex':-0x1,'role':'presentation','aria-label':_0x5d1f9f['name']},'children':[this['userView'],{'tag':'span','attributes':{'class':['ck','ck-user__full-name']},'children':[{'text':_0x5d1f9f['name']}]},{'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0x5d1f9f['color']['getBackgroundColorClass']()],'style':{'--ck-user-color':_0x5d1f9f['color']['getColorVariable'](),'--ck-user-color-alpha':_0x5d1f9f['color']['getColorAlphaVariable']()},'aria-hidden':'true'}}]};_0x31e506&&(_0x41c51a['tag']='button',_0x41c51a['on']={'click':_0x42a584['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x41c51a);}['focus'](){this['element']['focus']();}}class PresenceInlineListItemView extends View{['userView'];['markerView'];constructor(_0x1b5782,_0x2f0ffc,_0xc15bf9){super(_0x1b5782);const _0x2ba737=this['bindTemplate'];this['set']('isFocusable',!0x1),this['set']('hasTooltip',!0x0),this['set']('tooltipPosition',''),this['userView']=new UserView(_0x1b5782,_0x2f0ffc),this['markerView']=new MarkerView(_0x1b5782,_0x2f0ffc);const _0x15d813=new LabelView(_0x1b5782);_0x15d813['template']['tag']='span',_0x15d813['text']=_0x2f0ffc['name'];const _0x144693={'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item'],'role':'listitem','tabindex':_0x2ba737['to']('isFocusable',_0x47c7af=>!!_0x47c7af&&0x0),'aria-labelledby':_0x15d813['id'],'data-cke-tooltip-text':this['userView']['name'],'data-cke-tooltip-position':_0x2ba737['to']('tooltipPosition'),'data-cke-tooltip-disabled':_0x2ba737['to']('hasTooltip',_0x568bc6=>!_0x568bc6),'data-cke-tooltip-class':'ck-presence-list__list-item__tooltip'},'children':[this['userView'],this['markerView'],_0x15d813]};_0xc15bf9&&(_0x144693['tag']='button',_0x144693['on']={'click':_0x2ba737['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x144693);}}class MarkerView extends View{constructor(_0x53f8e0,_0x976c19){super(_0x53f8e0),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0x976c19['color']['getBackgroundColorClass']()],'style':{'--ck-user-color':_0x976c19['color']['getColorVariable'](),'--ck-user-color-alpha':_0x976c19['color']['getColorAlphaVariable']()},'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(_0x3ec354){super(_0x3ec354),this['context']['config']['define']('presenceList',defaultPresenceListConfig);const _0x4b83b4=_0x3ec354['config']['get']('presenceList.collapseAt');if('number'!=typeof _0x4b83b4)throw new CKEditorError('presencelist-collapseat-invalid-format',this);if(_0x4b83b4<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 _0x45a34b of this['_allConnectedUsers'])this['_handleUserAdd'](_0x45a34b);this['listenTo'](this['_allConnectedUsers'],'add',(_0x674e97,_0x224658)=>{this['_handleUserAdd'](_0x224658);}),this['listenTo'](this['_allConnectedUsers'],'remove',(_0x4fb17c,_0x572317)=>{this['_handleUserRemove'](_0x572317);});}['_createView'](){const _0x1e7640=this['context'],_0x362152=new PresenceListView(this['context']['locale'],this['context']['config']['get']('presenceList.collapseAt')),_0x1e436a=this['balloonPanelView'];if(!isElement$2(_0x1e7640['config']['get']('presenceList.container')))throw new CKEditorError('presencelist-missing-container',this);return _0x362152['counterView']['bind']('usersCount')['to'](this),_0x362152['bind']('isCollapsed')['to'](this,'usersCount',_0x43164d=>{const {collapseAt:_0x6ea7b8}=_0x1e7640['config']['get']('presenceList'),_0x15eb28=_0x43164d>=_0x6ea7b8;if(_0x15eb28&&!_0x362152['inlineListView']['items']['find'](_0x4b1f6d=>_0x4b1f6d instanceof PresenceCounterView)){const _0x588d0d=this['context']['config']['get']('presenceList.collapseAt')-0x1;this['currentDisplayedUsers']['length']==_0x588d0d&&this['currentDisplayedUsers']['length']>0x1&&this['currentDisplayedUsers']['remove'](this['currentDisplayedUsers']['length']-0x1),_0x362152['inlineListView']['items']['add'](_0x362152['counterView']);}return _0x15eb28||this['hideDropdown'](),_0x15eb28;}),_0x362152['inlineListView']['items']['bindTo'](this['currentDisplayedUsers'])['using'](_0x3000a9=>{const _0x278814=_0x1e7640['config']['get']('presenceList'),_0x35d281=new PresenceInlineListItemView(_0x1e7640['locale'],_0x3000a9,!!_0x278814['onClick']);return _0x35d281['bind']('hasTooltip')['to'](_0x362152,'isCollapsed',_0x401920=>!_0x401920),_0x35d281['bind']('isFocusable')['to'](_0x362152,'isCollapsed',_0x322df0=>!_0x322df0),_0x278814['onClick']&&this['listenTo'](_0x35d281,'execute',()=>{this['view']['isCollapsed']||_0x278814['onClick'](_0x3000a9,_0x35d281['element']);}),_0x35d281;}),this['listenTo'](_0x362152['inlineListView'],'presencelist:show',()=>{this['view']['isCollapsed']&&this['showDropdown']();}),this['listenTo'](_0x362152['inlineListView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();}),_0x362152['inlineListView']['keystrokes']['set']('Enter',(_0x562ef8,_0xdde2e7)=>{this['view']['isCollapsed']&&(this['showDropdown'](),_0xdde2e7());}),_0x362152['render'](),_0x1e436a['render'](),clickOutsideHandler({'emitter':_0x362152,'activator':()=>_0x1e436a['isVisible'],'contextElements':[_0x1e436a['element'],_0x362152['inlineListView']['element']],'callback':()=>this['hideDropdown']()}),_0x1e7640['config']['get']('presenceList.container')['appendChild'](_0x362152['element']),this['_bodyCollection']=new BodyCollection(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_bodyCollection']['add'](this['balloonPanelView']),_0x362152;}['_handleUserAdd'](_0x115dcc){if(!this['context']['config']['get']('presenceList.displayMe')&&_0x115dcc['isMe'])return;const _0x15db09=this['context']['config']['get']('presenceList.collapseAt')-0x1;for(this['usersCount']++;this['currentDisplayedUsers']['length']>=_0x15db09-(this['view']['isCollapsed']?0x1:0x0)&&this['currentDisplayedUsers']['length']>0x1;)this['currentDisplayedUsers']['remove'](0x1);const _0x8751b4=_0x115dcc['isMe']?0x0:this['currentDisplayedUsers']['length'];this['currentDisplayedUsers']['add'](_0x115dcc,_0x8751b4);}['_handleUserRemove'](_0x428365){this['usersCount']--;const {collapseAt:_0x41120f}=this['context']['config']['get']('presenceList'),_0x3ff78c=this['usersCount']>=_0x41120f;if(this['currentDisplayedUsers']['get'](_0x428365['id']))this['currentDisplayedUsers']['remove'](_0x428365['id']);else{if(_0x3ff78c&&this['currentDisplayedUsers']['length']+0x1===_0x41120f-0x1)return;}if(this['currentDisplayedUsers']['length']+(_0x3ff78c?0x1:0x0)<this['usersCount']){for(const _0x3bd3c1 of Array['from'](this['_allConnectedUsers'])['reverse']())if(!this['currentDisplayedUsers']['get'](_0x3bd3c1['id'])&&(this['currentDisplayedUsers']['add'](_0x3bd3c1,Math['min'](this['currentDisplayedUsers']['length']-(_0x3ff78c?0x1:0x0),0x1)),this['currentDisplayedUsers']['length']+(_0x3ff78c?0x1:0x0)===_0x41120f-0x1))return;}}['showDropdown'](){if(this['presenceDropdownView'])return;const _0x53ccdc=this['context']['config']['get']('presenceList');this['presenceDropdownView']=new PresenceDropdownListView(this['context']['locale'],!!_0x53ccdc['onClick']),this['view']['inlineListView']['isExpanded']=!0x0,this['listenTo'](this['presenceDropdownView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();});const {listWrapperView:_0xef90f0}=this['presenceDropdownView'];_0xef90f0['items']['bindTo'](this['_allConnectedUsers'])['using'](_0x3af898=>{if(!_0x53ccdc['displayMe']&&_0x3af898['isMe'])return null;const _0x1f97db=new PresenceDropdownListItemView(this['context']['locale'],_0x3af898,!!_0x53ccdc['onClick']);return _0x53ccdc['onClick']&&this['listenTo'](_0x1f97db,'execute',()=>{_0x53ccdc['onClick'](_0x3af898,_0x1f97db['element']);}),_0x1f97db;}),this['balloonPanelView']['content']['add'](this['presenceDropdownView']),this['balloonPanelView']['pin']({'target':this['view']['inlineListView']['element']}),_0xef90f0['focus'](),_0xef90f0['checkIfScrollable']();const _0x3e03a5=(_0x53c6fe,_0x488408)=>{this['hideDropdown'](),this['view']['inlineListView']['focus'](),_0x488408();};_0xef90f0['keystrokes']['set']('Esc',_0x3e03a5),_0xef90f0['keystrokes']['set']('Shift+Tab',_0x3e03a5),_0xef90f0['keystrokes']['set']('Tab',(_0x14bfb2,_0x12c475)=>{focusNextElement(this['view']['element']),this['hideDropdown'](),_0x12c475();}),_0xef90f0['focusTracker']['add'](this['view']['element']),_0xef90f0['focusTracker']['on']('change:isFocused',(_0xe3fa06,_0x1fc95e,_0x28f53a)=>{_0x28f53a||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(_0x417c84){const _0x29b18d=['a','button','input','select','textarea','[tabindex]','[contenteditable]']['map'](_0x10410f=>_0x10410f+':not([disabled]):not([tabindex=\x22-1\x22])')['join'](','),_0x139f18=[...document['body']['querySelectorAll'](_0x29b18d)]['filter'](_0x20cec9=>_0x20cec9===document['activeElement']||_0x20cec9['offsetWidth']+_0x20cec9['offsetHeight']>0x0)['sort']((_0x5d0eab,_0x43fb06)=>(_0x5d0eab['tabIndex']||0x0)-(_0x43fb06['tabIndex']||0x0)),_0xb641e7=_0x139f18['indexOf'](_0x417c84),_0x26e3f6=_0x139f18[(_0xb641e7+0x1)%_0x139f18['length']];_0x26e3f6&&_0x26e3f6['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;}}function getTranslation$3(_0x3e7024,_0x4f67a7){const t=_0x3e7024['t'],_0x38b7f8=_0x3e7024['t'];switch(_0x4f67a7){case'AI\x20Assistant':return _0x38b7f8('AI\x20Assistant');case'Block\x20quote':return _0x38b7f8('Block\x20quote');case'Bulleted\x20list':return _0x38b7f8('Bulleted\x20list');case'Insert\x20code\x20block':return _0x38b7f8('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x38b7f8('Open\x20file\x20manager');case'Insert\x20image':return _0x38b7f8('Insert\x20image');case'Heading\x201':return _0x38b7f8('Heading\x201');case'Heading\x202':return _0x38b7f8('Heading\x202');case'Heading\x203':return _0x38b7f8('Heading\x203');case'Heading\x204':return _0x38b7f8('Heading\x204');case'Heading\x205':return _0x38b7f8('Heading\x205');case'Heading\x206':return _0x38b7f8('Heading\x206');case'Horizontal\x20line':return _0x38b7f8('Horizontal\x20line');case'Insert\x20HTML':return _0x38b7f8('Insert\x20HTML');case'Increase\x20indent':return _0x38b7f8('Increase\x20indent');case'Insert\x20table':return _0x38b7f8('Insert\x20table');case'Table\x20of\x20contents':return _0x38b7f8('Table\x20of\x20contents');case'Numbered\x20list':return _0x38b7f8('Numbered\x20list');case'Decrease\x20indent':return _0x38b7f8('Decrease\x20indent');case'Paragraph':return _0x38b7f8('Paragraph');case'To-do\x20list':return _0x38b7f8('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 _0x4f67a7;}}class SlashCommandConfig extends Plugin{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ecc64){super(_0x5ecc64),this['_allowedCommands']=null;}['afterInit'](){const _0x32d4ed=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x2056cc=getExcludedHeadings(this['editor']['config']['get']('heading.options')),_0x1121e0=this['getDefaultCommands']()['filter'](_0x553c13=>!_0x2056cc['includes'](_0x553c13['id']));let _0xb442e6=_0x1121e0['filter'](_0x20b339=>!_0x32d4ed['includes'](_0x20b339['commandName']));const _0x5eff82=this['editor']['config']['get']('slashCommand.extraCommands');_0x5eff82&&_0x5eff82['length']&&(_0xb442e6=_0xb442e6['concat'](_0x5eff82));const _0x3b6752=this['editor']['config']['get']('template.definitions');_0x3b6752&&_0x3b6752['length']&&(_0xb442e6=_0xb442e6['concat'](mapTemplates(_0x3b6752)));const _0x2549f4=this['editor']['config']['get']('style.definitions');_0x2549f4&&_0x2549f4['length']&&(_0xb442e6=_0xb442e6['concat'](mapStyles(_0x2549f4)));const _0x1b1309=_0xb442e6['filter'](_0x146fe8=>!_0x146fe8['commandName']||void 0x0!==this['editor']['commands']['get'](_0x146fe8['commandName'])),_0x3bff65=[];for(const _0x502217 of _0x1b1309)_0x3bff65['push']({'id':_0x502217['id'],'commandName':_0x502217['commandName'],'title':'function'==typeof _0x502217['title']?_0x502217['title'](this['editor']):_0x502217['title'],'description':_0x502217['description'],'icon':_0x502217['icon'],'isIconColorInherited':_0x502217['isIconColorInherited'],'aliases':_0x502217['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x502217),'execute':()=>this['_proxyExecute'](_0x502217)});this['_allowedCommands']=_0x3bff65['sort'](compareCommands),checkLicense$3(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x5159d9=_0x8bd47b=>getTranslation$3(this['editor']['locale'],_0x8bd47b);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':IconRobotPencil,'title':_0x5159d9('AI\x20Assistant'),'description':_0x5159d9('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x3f3061=>{setTimeout(()=>_0x3f3061['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':IconQuote,'title':_0x5159d9('Block\x20quote'),'description':_0x5159d9('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':IconBulletedList,'title':_0x5159d9('Bulleted\x20list'),'description':_0x5159d9('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':IconCodeBlock,'title':_0x5159d9('Insert\x20code\x20block'),'description':_0x5159d9('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':IconBrowseFiles,'title':_0x5159d9('Open\x20file\x20manager'),'description':_0x5159d9('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':IconBrowseFiles,'title':_0x5159d9('Insert\x20image'),'description':_0x5159d9('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':IconEmoji,'title':_0x5159d9('Emoji'),'description':_0x5159d9('Insert\x20an\x20emoji'),'execute':_0x33eab1=>{setTimeout(()=>_0x33eab1['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':IconHeading1,'title':_0x5159d9('Heading\x201'),'description':_0x5159d9('Create\x20a\x20heading\x20level\x201'),'execute':_0x187075=>{_0x187075['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':IconHeading2,'title':_0x5159d9('Heading\x202'),'description':_0x5159d9('Create\x20a\x20heading\x20level\x202'),'execute':_0x4ef110=>{_0x4ef110['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':IconHeading3,'title':_0x5159d9('Heading\x203'),'description':_0x5159d9('Create\x20a\x20heading\x20level\x203'),'execute':_0x6eb317=>{_0x6eb317['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':IconHeading4,'title':_0x5159d9('Heading\x204'),'description':_0x5159d9('Create\x20a\x20heading\x20level\x204'),'execute':_0x4925aa=>{_0x4925aa['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':IconHeading5,'title':_0x5159d9('Heading\x205'),'description':_0x5159d9('Create\x20a\x20heading\x20level\x205'),'execute':_0x8ee0c2=>{_0x8ee0c2['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':IconHeading6,'title':_0x5159d9('Heading\x206'),'description':_0x5159d9('Create\x20a\x20heading\x20level\x206'),'execute':_0x910a5c=>{_0x910a5c['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':IconHorizontalLine,'title':_0x5159d9('Horizontal\x20line'),'description':_0x5159d9('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':IconHtml,'title':_0x5159d9('Insert\x20HTML'),'description':_0x5159d9('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':IconIndent,'title':_0x5159d9('Increase\x20indent'),'description':_0x5159d9('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x5159d9('Insert\x20Mermaid\x20diagram'),'description':_0x5159d9('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':IconTable,'title':_0x5159d9('Insert\x20table'),'description':_0x5159d9('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':IconTableOfContents,'title':_0x5159d9('Table\x20of\x20contents'),'description':_0x5159d9('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':IconNumberedList,'title':_0x5159d9('Numbered\x20list'),'description':_0x5159d9('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':IconOutdent,'title':_0x5159d9('Decrease\x20indent'),'description':_0x5159d9('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':IconParagraph,'title':_0x5159d9('Paragraph'),'description':_0x5159d9('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':IconTodoList,'title':_0x5159d9('To-do\x20list'),'description':_0x5159d9('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':IconFootnote,'title':_0x5159d9('Footnote'),'description':_0x5159d9('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x1f6cd9){return _0x1f6cd9['isEnabled']?_0x1f6cd9['isEnabled'](this['editor']):!_0x1f6cd9['commandName']||this['editor']['commands']['get'](_0x1f6cd9['commandName'])['isEnabled'];}['_proxyExecute'](_0x5741ec){if(_0x5741ec['execute'])_0x5741ec['execute'](this['editor']);else{if(!_0x5741ec['commandName'])throw new CKEditorError('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x5741ec});this['editor']['execute'](_0x5741ec['commandName']);}}}function compareCommands(_0x2f0bd2,_0x518a2d){return _0x2f0bd2['title']<_0x518a2d['title']?-0x1:_0x2f0bd2['title']>_0x518a2d['title']?0x1:0x0;}function convertTitleToId(_0x29fba8,_0xd3d849){return _0xd3d849+'-'+_0x29fba8['toLowerCase']()['split']('\x20')['join']('-');}function mapTemplates(_0x18cd7a){return _0x18cd7a['map'](_0x50e524=>{const {title:_0x4c6d0a,icon:_0x56d5c3,description:_0x397036,data:_0x357d88}=_0x50e524,_0x7ee39a={'id':convertTitleToId(_0x4c6d0a,'template'),'commandName':'insertTemplate','execute':_0x59eb9e=>{_0x59eb9e['execute']('insertTemplate',_0x357d88);},'description':_0x397036,'icon':_0x56d5c3,'title':_0x4c6d0a};return _0x56d5c3&&(_0x7ee39a['isIconColorInherited']=!0x1),_0x7ee39a;});}function mapStyles(_0x447e9e){return _0x447e9e['map'](_0x1c4c17=>{const _0x3ef7e4={'id':convertTitleToId(_0x1c4c17['name'],'style'),'commandName':'style','execute':_0x578611=>{_0x578611['execute']('style',{'styleName':_0x1c4c17['name']});},'isEnabled':_0x1d5342=>{const _0x5f2a51=_0x1d5342['commands']['get']('style');return _0x5f2a51['isEnabled']&&_0x5f2a51['enabledStyles']['includes'](_0x1c4c17['name']);},'title':_0x1c4c17['name']};return _0x3ef7e4;});}function getExcludedHeadings(_0x307898){let _0x495889=['heading4','heading5','heading6'];if(_0x307898){const _0x52a116=_0x307898['map'](_0x196ff1=>_0x196ff1['model']);_0x495889=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x5c5a4c=>!_0x52a116['includes'](_0x5c5a4c));}return _0x495889;}async function checkLicense$3(_0x244427){const _0x2b1555=_0x4b9abe([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]),_0x5487fe=window[_0x4b9abe([0x44,0x61,0x74,0x65])][_0x4b9abe([0x6e,0x6f,0x77])](),_0x3bc66b=_0x244427[_0x4b9abe([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5be576=new window[(_0x4b9abe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9dd2d9=>{_0x3bc66b[_0x4b9abe([0x6f,0x6e,0x63,0x65])](_0x4b9abe([0x72,0x65,0x61,0x64,0x79]),_0x9dd2d9);}),_0x54b87a={[_0x4b9abe([0x6b,0x74,0x79])]:_0x4b9abe([0x45,0x43]),[_0x4b9abe([0x75,0x73,0x65])]:_0x4b9abe([0x73,0x69,0x67]),[_0x4b9abe([0x63,0x72,0x76])]:_0x4b9abe([0x50,0x2d,0x32,0x35,0x36]),[_0x4b9abe([0x78])]:_0x4b9abe([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]),[_0x4b9abe([0x79])]:_0x4b9abe([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]),[_0x4b9abe([0x61,0x6c,0x67])]:_0x4b9abe([0x45,0x53,0x32,0x35,0x36])},_0xa3ce5d=_0x3bc66b[_0x4b9abe([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b9abe([0x67,0x65,0x74])](_0x4b9abe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x34594b=await(async function(){let _0x604404,_0x2affd1=null,_0x15bb1d=null;try{if(_0xa3ce5d==_0x4b9abe([0x47,0x50,0x4c]))return _0x4b9abe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x604404=(function(){const _0x8e21dd=_0xa3ce5d[_0x4b9abe([0x73,0x70,0x6c,0x69,0x74])](_0x4b9abe([0x2e]));if(0x3!=_0x8e21dd[_0x4b9abe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x35ec28=_0x8e21dd[0x1];return _0x23052a(_0x35ec28);function _0x23052a(_0x468e8a){const _0x59f4e7=_0x2c781b(_0x468e8a);return _0x59f4e7&&_0x30ae55()?_0x59f4e7:null;function _0x30ae55(){const _0x1ca5e2=_0x59f4e7[_0x4b9abe([0x6a,0x74,0x69])],_0x3ecde5=window[_0x4b9abe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ca5e2[_0x4b9abe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ca5e2[_0x4b9abe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x156054={..._0x59f4e7,[_0x4b9abe([0x6a,0x74,0x69])]:_0x1ca5e2[_0x4b9abe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ca5e2[_0x4b9abe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x156054[_0x4b9abe([0x76,0x63])],_0x105787(_0x156054)==_0x3ecde5;}}}()),!_0x604404)return _0x4b9abe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x604404[_0x4b9abe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x15bb1d=function(_0xce5dcb,_0x1cbd88){return new window[(_0x4b9abe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x430e8e=>{if(_0x4a0e94())return _0x430e8e(_0x4b9abe([0x56,0x61,0x6c,0x69,0x64]));_0x4e5fb0(),_0x3bc66b[_0x4b9abe([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b9abe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x595f22=!0x1;const _0x29f1e8=uid();function _0x1ed30b(_0x1a180b){return!!_0x1a180b&&(typeof _0x1a180b===_0x4b9abe([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a180b===_0x4b9abe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a180b[_0x4b9abe([0x74,0x68,0x65,0x6e])]===_0x4b9abe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a180b[_0x4b9abe([0x63,0x61,0x74,0x63,0x68])]===_0x4b9abe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x54d9cc(_0x14ab04){_0x41f036(_0x14ab04)[_0x4b9abe([0x74,0x68,0x65,0x6e])](_0x531633=>{if(!_0x531633||_0x531633[_0x4b9abe([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b9abe([0x6f,0x6b]))return _0x4b9abe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x66e15f(_0x105787(_0x29f1e8+_0x1cbd88))!=_0x531633[_0x4b9abe([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b9abe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b9abe([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b9abe([0x74,0x68,0x65,0x6e])](_0x4fe865=>(_0x327148(),_0x4fe865),()=>{const _0x3a17e9=_0xbacb12();return null==_0x3a17e9?(_0x327148(),_0x4b9abe([0x56,0x61,0x6c,0x69,0x64])):_0x4b9abe(_0x5487fe-_0x3a17e9>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b9abe([0x74,0x68,0x65,0x6e])](_0x430e8e)[_0x4b9abe([0x63,0x61,0x74,0x63,0x68])](()=>{_0x430e8e(_0x4b9abe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe3d5e3=0x36ee80;function _0x327148(){const _0x310ad0=_0x4b9abe([0x6c,0x6c,0x63,0x74,0x2d])+_0x66e15f(_0x105787(_0xce5dcb)),_0x407597=_0xc87b43(_0x66e15f(window[_0x4b9abe([0x4d,0x61,0x74,0x68])][_0x4b9abe([0x63,0x65,0x69,0x6c])](_0x5487fe/_0xe3d5e3)));window[_0x4b9abe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b9abe([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x310ad0,_0x407597);}function _0xbacb12(){const _0x5b7c67=_0x4b9abe([0x6c,0x6c,0x63,0x74,0x2d])+_0x66e15f(_0x105787(_0xce5dcb)),_0x25750f=window[_0x4b9abe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b9abe([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b7c67);return _0x25750f?window[_0x4b9abe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc87b43(_0x25750f),0x10)*_0xe3d5e3:null;}function _0x41f036(_0xd92fc8){return new window[(_0x4b9abe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4417b5,_0x343ca0)=>{_0xd92fc8[_0x4b9abe([0x74,0x68,0x65,0x6e])](_0x4417b5,_0x343ca0),window[_0x4b9abe([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x343ca0,0x1d4c0);});}}_0x3bc66b[_0x4b9abe([0x6f,0x6e])](_0x4b9abe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51d2a2,_0x4247bd)=>{if(_0x4247bd[0x0]!=_0xce5dcb)return _0x430e8e(_0x4b9abe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4247bd[0x1]={..._0x4247bd[0x1],[_0x4b9abe([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29f1e8};},{[_0x4b9abe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b9abe([0x68,0x69,0x67,0x68])}),_0x3bc66b[_0x4b9abe([0x6f,0x6e])](_0x4b9abe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4191fa=>{_0x1ed30b(_0x4191fa[_0x4b9abe([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x595f22=!0x0,_0x54d9cc(_0x4191fa[_0x4b9abe([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b9abe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b9abe([0x6c,0x6f,0x77])}),_0x5be576[_0x4b9abe([0x74,0x68,0x65,0x6e])](()=>{_0x595f22||_0x430e8e(_0x4b9abe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a0e94(){return _0x3bc66b[_0x4b9abe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b9abe([0x76,0x69,0x65,0x77])][_0x4b9abe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b9abe([0x61,0x75,0x74,0x6f]);}function _0x4e5fb0(){_0x3bc66b[_0x4b9abe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b9abe([0x76,0x69,0x65,0x77])][_0x4b9abe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b9abe([0x61,0x75,0x74,0x6f]);}}(_0x604404[_0x4b9abe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x604404[_0x4b9abe([0x6a,0x74,0x69])]));const _0x5a002b=await(async function(){let _0x2ee81a=!0x0;try{const _0x184465=_0xa3ce5d[_0x4b9abe([0x73,0x70,0x6c,0x69,0x74])](_0x4b9abe([0x2e])),[_0x3e2b69,_0x4b41aa,_0x364ea5]=_0x184465;return _0x3889ab(_0x3e2b69),await _0x37c1d3(_0x3e2b69,_0x4b41aa,_0x364ea5),_0x2ee81a;}catch{return!0x1;}function _0x3889ab(_0x351d18){const _0x46e0ec=_0x2c781b(_0x351d18);_0x46e0ec&&_0x46e0ec[_0x4b9abe([0x61,0x6c,0x67])]==_0x4b9abe([0x45,0x53,0x32,0x35,0x36])||(_0x2ee81a=!0x1);}async function _0x37c1d3(_0x39b0d2,_0x25cd36,_0x41c0ca){const _0x33cc03=window[_0x4b9abe([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b9abe([0x66,0x72,0x6f,0x6d])](_0x37d510(_0x41c0ca),_0x1a68e3=>_0x1a68e3[_0x4b9abe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35781a=new window[(_0x4b9abe([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b9abe([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39b0d2+_0x4b9abe([0x2e])+_0x25cd36),_0x142552=window[_0x4b9abe([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b9abe([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x142552)return;const _0x3a7063=await _0x142552[_0x4b9abe([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b9abe([0x6a,0x77,0x6b]),_0x54b87a,{[_0x4b9abe([0x6e,0x61,0x6d,0x65])]:_0x4b9abe([0x45,0x43,0x44,0x53,0x41]),[_0x4b9abe([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b9abe([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b9abe([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x142552[_0x4b9abe([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b9abe([0x6e,0x61,0x6d,0x65])]:_0x4b9abe([0x45,0x43,0x44,0x53,0x41]),[_0x4b9abe([0x68,0x61,0x73,0x68])]:{[_0x4b9abe([0x6e,0x61,0x6d,0x65])]:_0x4b9abe([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a7063,_0x33cc03,_0x35781a)||(_0x2ee81a=!0x1);}}());return _0x5a002b?(function(){const _0x8a930f=_0x604404[_0x4b9abe([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x8a930f)return!0x1;if(_0x8a930f[_0x4b9abe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9abe([0x2a])))return!0x0;if(_0x8a930f[_0x4b9abe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9abe([0x53,0x43])))return!0x0;if(_0x8a930f[_0x4b9abe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9abe([0x50,0x50])))return!0x0;if(_0x8a930f[_0x4b9abe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9abe([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x4b9abe([0x67,0x6c,0x6f,0x62])]&&window[_0x4b9abe([0x67,0x6c,0x6f,0x62])][_0x4b9abe([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x3d07de=[_0x4b9abe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b9abe([0x74,0x72,0x69,0x61,0x6c])][_0x4b9abe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x604404[_0x4b9abe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5487fe/0x3e8:0x69cb0e80;return _0x604404[_0x4b9abe([0x65,0x78,0x70])]<_0x3d07de;}())?_0x4b9abe([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x1d1476=_0x604404[_0x4b9abe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d1476||0x0==_0x1d1476[_0x4b9abe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53f6ed}=new URL(window[_0x4b9abe([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d1476[_0x4b9abe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53f6ed))return!0x0;const _0x5c77d1=_0x53f6ed[_0x4b9abe([0x73,0x70,0x6c,0x69,0x74])](_0x4b9abe([0x2e]));return _0x1d1476[_0x4b9abe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b9cd9=>_0x1b9cd9[_0x4b9abe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9abe([0x2a])))[_0x4b9abe([0x6d,0x61,0x70])](_0x3d5e05=>_0x3d5e05[_0x4b9abe([0x73,0x70,0x6c,0x69,0x74])](_0x4b9abe([0x2e])))[_0x4b9abe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x42ea85=>_0x42ea85[_0x4b9abe([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5c77d1[_0x4b9abe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b9abe([0x6d,0x61,0x70])](_0x80f929=>Array(_0x5c77d1[_0x4b9abe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x80f929[_0x4b9abe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b9abe([0x66,0x69,0x6c,0x6c])](_0x80f929[0x0]===_0x4b9abe([0x2a])?_0x4b9abe([0x2a]):'')[_0x4b9abe([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x80f929))[_0x4b9abe([0x73,0x6f,0x6d,0x65])](_0x13f32f=>_0x5c77d1[_0x4b9abe([0x65,0x76,0x65,0x72,0x79])]((_0x4fa886,_0x2e3951)=>_0x13f32f[_0x2e3951]===_0x4fa886||_0x13f32f[_0x2e3951]===_0x4b9abe([0x2a])));}())?(_0x604404[_0x4b9abe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b9abe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2affd1=function(_0x1c9702){const _0x2b90ba=new window[(_0x4b9abe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b9ae0=>setTimeout(_0x3b9ae0,0x93ecc)),_0x9501dc=_0x5be576[_0x4b9abe([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b9abe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x343851=>{let _0x3fff86=0x0;_0x3bc66b[_0x4b9abe([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b9abe([0x6f,0x6e])](_0x4b9abe([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa213c6,_0x524012)=>{_0x524012[0x0][_0x4b9abe([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3fff86++,0x5e8==_0x3fff86&&(_0x343851(),_0xa213c6[_0x4b9abe([0x6f,0x66,0x66])]());});})),_0x50ef0b=[_0x2b90ba,_0x9501dc];return window[_0x4b9abe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b9abe([0x72,0x61,0x63,0x65])](_0x50ef0b)[_0x4b9abe([0x74,0x68,0x65,0x6e])](()=>_0x1c9702);}(_0x4b9abe([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2affd1&&_0x15bb1d)return new window[(_0x4b9abe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37a04d,_0x49f6b9)=>{_0x2affd1[_0x4b9abe([0x74,0x68,0x65,0x6e])](_0x37a04d,_0x49f6b9),_0x15bb1d[_0x4b9abe([0x74,0x68,0x65,0x6e])](_0x1fc840=>{_0x1fc840!=_0x4b9abe([0x56,0x61,0x6c,0x69,0x64])&&_0x37a04d(_0x1fc840);},_0x49f6b9);});return _0x2affd1||_0x15bb1d||_0x4b9abe([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4b9abe([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b9abe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b9abe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4b9abe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x2c781b(_0x2622e7){return _0x2622e7[_0x4b9abe([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b9abe([0x65,0x79]))?JSON[_0x4b9abe([0x70,0x61,0x72,0x73,0x65])](_0x37d510(_0x2622e7)):null;}function _0x37d510(_0x3bdf55){return window[_0x4b9abe([0x61,0x74,0x6f,0x62])](_0x3bdf55[_0x4b9abe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b9abe([0x2b]))[_0x4b9abe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b9abe([0x2f])));}function _0x105787(_0x27ebdb){let _0x391af2=0x1505;function _0x40a884(_0x3571fe){for(let _0xfadede=0x0;_0xfadede<_0x3571fe[_0x4b9abe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfadede++){const _0x64c69a=_0x3571fe[_0x4b9abe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xfadede);_0x391af2=(_0x391af2<<0x5)+_0x391af2+_0x64c69a,_0x391af2&=_0x391af2;}}return function _0x3616a7(_0x272c20){Array[_0x4b9abe([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x272c20)?_0x272c20[_0x4b9abe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3616a7):_0x272c20&&typeof _0x272c20==_0x4b9abe([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b9abe([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x272c20)[_0x4b9abe([0x73,0x6f,0x72,0x74])]()[_0x4b9abe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ab1a5,_0x11009f])=>{_0x40a884(_0x4ab1a5),_0x3616a7(_0x11009f);}):_0x40a884(window[_0x4b9abe([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x272c20));}(_0x27ebdb),_0x391af2>>>0x0;}function _0x66e15f(_0xc91132){return _0xc91132[_0x4b9abe([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b9abe([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b9abe([0x30]));}function _0xc87b43(_0x2a7436){return _0x2a7436[_0x4b9abe([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b9abe([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b9abe([0x6a,0x6f,0x69,0x6e])]('');}function _0x36163a(){}function _0x4b9abe(_0x356922){return _0x356922['map'](_0x440559=>String['fromCharCode'](_0x440559))['join']('');}!function(_0x2230fb){const _0x2a4cde=(function(){const _0x25d4fc=window[_0x4b9abe([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b9abe([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b9abe([0x6e,0x6f,0x77])]())[_0x4b9abe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b9abe([0x2e]),'');let _0x22fb18=_0x4b9abe([0x75]);for(let _0x87a127=0x0;_0x87a127<_0x25d4fc[_0x4b9abe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x87a127+=0x2){let _0xdfce89=window[_0x4b9abe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25d4fc[_0x4b9abe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x87a127,_0x87a127+0x2));_0xdfce89>=_0x2b1555[_0x4b9abe([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xdfce89-=_0x2b1555[_0x4b9abe([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22fb18+=_0x2b1555[_0xdfce89];}return _0x22fb18;}());_0x3bc66b[_0x2a4cde]=_0x4b9abe([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2230fb,_0x2230fb!=_0x4b9abe([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x5be576,_0x3bc66b[_0x4b9abe([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b9abe([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36163a,_0x3bc66b[_0x4b9abe([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b9abe([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36163a,_0x3bc66b[_0x4b9abe([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b9abe([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x34594b);}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'](_0x35d248){const _0x47701f=_0x35d248&&_0x35d248['toLowerCase']();let _0x3462ea=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x3462ea=_0x3462ea['filter'](_0x54ab1e=>_0x54ab1e['isEnabled']()),_0x47701f){const _0x4b4810=[],_0x16c04c=[],_0x2cca01=[],_0x4036cf=[];for(const _0x3bf407 of _0x3462ea)_0x3bf407['id']['toLowerCase']()['includes'](_0x47701f)?_0x4b4810['push'](_0x3bf407):_0x3bf407['title']['toLowerCase']()['includes'](_0x47701f)?_0x16c04c['push'](_0x3bf407):_0x3bf407['aliases']&&_0x3bf407['aliases']['some'](_0x151a5b=>_0x151a5b['toLowerCase']()['includes'](_0x47701f))?_0x2cca01['push'](_0x3bf407):_0x3bf407['description']&&_0x3bf407['description']['toLowerCase']()['includes'](_0x47701f)&&_0x4036cf['push'](_0x3bf407);_0x3462ea=_0x4b4810['concat'](_0x16c04c,_0x2cca01,_0x4036cf);}return _0x3462ea;}}class SlashCommandButtonView extends ButtonView{constructor(_0x1ff4f3,_0x6c7ec3){super(_0x1ff4f3),this['textPartView']=this['_createTextPartView'](_0x1ff4f3,_0x6c7ec3),void 0x0!==_0x6c7ec3['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x6c7ec3['isIconColorInherited']),this['set']({'icon':_0x6c7ec3['icon']||IconPlay,'withText':!0x0,'label':_0x6c7ec3['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x16c0fc,_0x5638a5){const _0x3cd9bb=new View(_0x16c0fc);return _0x3cd9bb['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x5638a5['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x5638a5['description']}]}]:[this['labelView']]}),_0x3cd9bb;}}class SlashCommandUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28cd38){super(_0x28cd38),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ce197=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47f9a3;for(const _0x364ed0 in _0x3ce197){const _0x18e6ca=_0x364ed0,_0x11f4be=_0x3ce197[_0x18e6ca];if('slashCommandLicenseKeyValid'==_0x11f4be||'slashCommandLicenseKeyInvalid'==_0x11f4be||'slashCommandLicenseKeyExpired'==_0x11f4be||'slashCommandLicenseKeyDomainLimit'==_0x11f4be||'slashCommandLicenseKeyNotAllowed'==_0x11f4be||'slashCommandLicenseKeyEvaluationLimit'==_0x11f4be||'slashCommandLicenseKeyUsageLimit'==_0x11f4be){delete _0x3ce197[_0x18e6ca],_0x47f9a3=_0x11f4be,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x47f9a3&&_0x3ce197['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x47f9a3&&_0x3ce197['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x47f9a3&&_0x3ce197['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x47f9a3&&_0x3ce197['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x47f9a3&&_0x3ce197['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x47f9a3&&_0x3ce197['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x1400e5=this['editor'],_0x50f299=this['editor']['plugins']['get']('SlashCommandEditing'),_0x56c3cf=_0x1400e5['config']['get']('mention.feeds');_0x56c3cf['push']({'marker':'/','feed':_0x5003dd=>_0x50f299['getMatchingCommands'](_0x5003dd),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x1400e5['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x1400e5['config']['set']('mention.feeds',_0x56c3cf);}['_overrideMentionExecuteListener'](){const _0x248f3d=this['editor'];_0x248f3d['commands']['get']('mention')['on']('execute',(_0x367256,_0x3716b4)=>{const _0x498342=_0x3716b4[0x0],_0x23fdd5=_0x248f3d['model'];'/'===_0x498342['marker']&&_0x23fdd5['change'](_0x1f8c85=>{_0x1f8c85['remove'](_0x498342['range']),_0x498342['mention']['execute'](),_0x367256['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0xd97af5){const _0x297069=this['editor']['locale'],_0x4d28e0=new SlashCommandButtonView(_0x297069,_0xd97af5);return _0x4d28e0['render'](),_0x4d28e0['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$2(_0x314f78,_0x38dc3a){const t=_0x314f78['t'];switch(_0x38dc3a){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 _0x38dc3a;}}function getActiveRootName(_0xbb1881){const _0x2666c6=_0xbb1881['editing']['view']['document']['roots'],_0x438979=_0x2666c6['length'];if(0x0===_0x438979)throw new CKEditorError('source-editing-enhanced-editor-no-root',_0xbb1881);if(0x1===_0x438979)return _0x2666c6['first']['rootName'];return Array['from'](_0xbb1881['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function formatSource(_0x34b825){return isHtml(_0x34b825)?formatHtml(_0x34b825):_0x34b825;}function unformatSource(_0x36c747){return isHtml(_0x36c747['replace'](/^[\n\s]*/g,''))?_0x36c747['replace'](/\s+/g,''):_0x36c747;}function isHtml(_0x3d44ca){return _0x3d44ca['startsWith']('<');}let rangeFrom=[],rangeTo=[];function isExtendingChar(_0x4de364){if(_0x4de364<0x300)return!0x1;for(let _0x4b5d87=0x0,_0x1a6002=rangeFrom['length'];;){let _0x5f0fcc=_0x4b5d87+_0x1a6002>>0x1;if(_0x4de364<rangeFrom[_0x5f0fcc])_0x1a6002=_0x5f0fcc;else{if(!(_0x4de364>=rangeTo[_0x5f0fcc]))return!0x0;_0x4b5d87=_0x5f0fcc+0x1;}if(_0x4b5d87==_0x1a6002)return!0x1;}}function isRegionalIndicator(_0x5b6504){return _0x5b6504>=0x1f1e6&&_0x5b6504<=0x1f1ff;}((()=>{let _0xcef7ef='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'](_0x38bf66=>_0x38bf66?parseInt(_0x38bf66,0x24):0x1);for(let _0x8f9b5f=0x0,_0x487a23=0x0;_0x8f9b5f<_0xcef7ef['length'];_0x8f9b5f++)(_0x8f9b5f%0x2?rangeTo:rangeFrom)['push'](_0x487a23+=_0xcef7ef[_0x8f9b5f]);})());const ZWJ=0x200d;function findClusterBreak$1(_0x1b2133,_0x2ce857,_0xde1319=!0x0,_0x536672=!0x0){return(_0xde1319?nextClusterBreak:prevClusterBreak)(_0x1b2133,_0x2ce857,_0x536672);}function nextClusterBreak(_0x580d0f,_0x4ac696,_0x40ffc3){if(_0x4ac696==_0x580d0f['length'])return _0x4ac696;_0x4ac696&&surrogateLow$1(_0x580d0f['charCodeAt'](_0x4ac696))&&surrogateHigh$1(_0x580d0f['charCodeAt'](_0x4ac696-0x1))&&_0x4ac696--;let _0x5d1dc9=codePointAt$1(_0x580d0f,_0x4ac696);for(_0x4ac696+=codePointSize$1(_0x5d1dc9);_0x4ac696<_0x580d0f['length'];){let _0x4e17a1=codePointAt$1(_0x580d0f,_0x4ac696);if(_0x5d1dc9==ZWJ||_0x4e17a1==ZWJ||_0x40ffc3&&isExtendingChar(_0x4e17a1))_0x4ac696+=codePointSize$1(_0x4e17a1),_0x5d1dc9=_0x4e17a1;else{if(!isRegionalIndicator(_0x4e17a1))break;{let _0x1729f0=0x0,_0x5db0f0=_0x4ac696-0x2;for(;_0x5db0f0>=0x0&&isRegionalIndicator(codePointAt$1(_0x580d0f,_0x5db0f0));)_0x1729f0++,_0x5db0f0-=0x2;if(_0x1729f0%0x2==0x0)break;_0x4ac696+=0x2;}}}return _0x4ac696;}function prevClusterBreak(_0x41eda2,_0x407b35,_0x134775){for(;_0x407b35>0x0;){let _0x165624=nextClusterBreak(_0x41eda2,_0x407b35-0x2,_0x134775);if(_0x165624<_0x407b35)return _0x165624;_0x407b35--;}return 0x0;}function codePointAt$1(_0x31e159,_0x5cd03d){let _0x374964=_0x31e159['charCodeAt'](_0x5cd03d);if(!surrogateHigh$1(_0x374964)||_0x5cd03d+0x1==_0x31e159['length'])return _0x374964;let _0x4253fc=_0x31e159['charCodeAt'](_0x5cd03d+0x1);return surrogateLow$1(_0x4253fc)?_0x4253fc-0xdc00+(_0x374964-0xd800<<0xa)+0x10000:_0x374964;}function surrogateLow$1(_0x1d294b){return _0x1d294b>=0xdc00&&_0x1d294b<0xe000;}function surrogateHigh$1(_0x32def3){return _0x32def3>=0xd800&&_0x32def3<0xdc00;}function codePointSize$1(_0x5253e9){return _0x5253e9<0x10000?0x1:0x2;}class Text{['lineAt'](_0x54b5e4){if(_0x54b5e4<0x0||_0x54b5e4>this['length'])throw new RangeError('Invalid\x20position\x20'+_0x54b5e4+'\x20in\x20document\x20of\x20length\x20'+this['length']);return this['lineInner'](_0x54b5e4,!0x1,0x1,0x0);}['line'](_0x4c47da){if(_0x4c47da<0x1||_0x4c47da>this['lines'])throw new RangeError('Invalid\x20line\x20number\x20'+_0x4c47da+'\x20in\x20'+this['lines']+'-line\x20document');return this['lineInner'](_0x4c47da,!0x0,0x1,0x0);}['replace'](_0x2a3846,_0x3e3375,_0x13c563){[_0x2a3846,_0x3e3375]=clip(this,_0x2a3846,_0x3e3375);let _0xb94709=[];return this['decompose'](0x0,_0x2a3846,_0xb94709,0x2),_0x13c563['length']&&_0x13c563['decompose'](0x0,_0x13c563['length'],_0xb94709,0x3),this['decompose'](_0x3e3375,this['length'],_0xb94709,0x1),TextNode['from'](_0xb94709,this['length']-(_0x3e3375-_0x2a3846)+_0x13c563['length']);}['append'](_0x365e37){return this['replace'](this['length'],this['length'],_0x365e37);}['slice'](_0x491593,_0x4f29c0=this['length']){[_0x491593,_0x4f29c0]=clip(this,_0x491593,_0x4f29c0);let _0xc80bdb=[];return this['decompose'](_0x491593,_0x4f29c0,_0xc80bdb,0x0),TextNode['from'](_0xc80bdb,_0x4f29c0-_0x491593);}['eq'](_0x1da5cf){if(_0x1da5cf==this)return!0x0;if(_0x1da5cf['length']!=this['length']||_0x1da5cf['lines']!=this['lines'])return!0x1;let _0x44d24d=this['scanIdentical'](_0x1da5cf,0x1),_0x882df2=this['length']-this['scanIdentical'](_0x1da5cf,-0x1),_0x431df8=new RawTextCursor(this),_0x5e8ed5=new RawTextCursor(_0x1da5cf);for(let _0x8fb02a=_0x44d24d,_0x506925=_0x44d24d;;){if(_0x431df8['next'](_0x8fb02a),_0x5e8ed5['next'](_0x8fb02a),_0x8fb02a=0x0,_0x431df8['lineBreak']!=_0x5e8ed5['lineBreak']||_0x431df8['done']!=_0x5e8ed5['done']||_0x431df8['value']!=_0x5e8ed5['value'])return!0x1;if(_0x506925+=_0x431df8['value']['length'],_0x431df8['done']||_0x506925>=_0x882df2)return!0x0;}}['iter'](_0x23c658=0x1){return new RawTextCursor(this,_0x23c658);}['iterRange'](_0x5eab6e,_0x46a2bf=this['length']){return new PartialTextCursor(this,_0x5eab6e,_0x46a2bf);}['iterLines'](_0x48fd70,_0xed422e){let _0x451d40;if(null==_0x48fd70)_0x451d40=this['iter']();else{null==_0xed422e&&(_0xed422e=this['lines']+0x1);let _0x53860c=this['line'](_0x48fd70)['from'];_0x451d40=this['iterRange'](_0x53860c,Math['max'](_0x53860c,_0xed422e==this['lines']+0x1?this['length']:_0xed422e<=0x1?0x0:this['line'](_0xed422e-0x1)['to']));}return new LineCursor(_0x451d40);}['toString'](){return this['sliceString'](0x0);}['toJSON'](){let _0x265b9b=[];return this['flatten'](_0x265b9b),_0x265b9b;}constructor(){}static['of'](_0x557e47){if(0x0==_0x557e47['length'])throw new RangeError('A\x20document\x20must\x20have\x20at\x20least\x20one\x20line');return 0x1!=_0x557e47['length']||_0x557e47[0x0]?_0x557e47['length']<=0x20?new TextLeaf(_0x557e47):TextNode['from'](TextLeaf['split'](_0x557e47,[])):Text['empty'];}}class TextLeaf extends Text{constructor(_0x437569,_0x2dcc73=textLength(_0x437569)){super(),this['text']=_0x437569,this['length']=_0x2dcc73;}get['lines'](){return this['text']['length'];}get['children'](){return null;}['lineInner'](_0x36afc6,_0x31fb79,_0x21f33a,_0xca4816){for(let _0x5251a0=0x0;;_0x5251a0++){let _0x32dc7e=this['text'][_0x5251a0],_0x2faa94=_0xca4816+_0x32dc7e['length'];if((_0x31fb79?_0x21f33a:_0x2faa94)>=_0x36afc6)return new Line$1(_0xca4816,_0x2faa94,_0x21f33a,_0x32dc7e);_0xca4816=_0x2faa94+0x1,_0x21f33a++;}}['decompose'](_0x13ee2d,_0x42cd86,_0x4cd188,_0x53a5f6){let _0x4b6b41=_0x13ee2d<=0x0&&_0x42cd86>=this['length']?this:new TextLeaf(sliceText(this['text'],_0x13ee2d,_0x42cd86),Math['min'](_0x42cd86,this['length'])-Math['max'](0x0,_0x13ee2d));if(0x1&_0x53a5f6){let _0x12a7e7=_0x4cd188['pop'](),_0x1916c5=appendText(_0x4b6b41['text'],_0x12a7e7['text']['slice'](),0x0,_0x4b6b41['length']);if(_0x1916c5['length']<=0x20)_0x4cd188['push'](new TextLeaf(_0x1916c5,_0x12a7e7['length']+_0x4b6b41['length']));else{let _0x46a5e8=_0x1916c5['length']>>0x1;_0x4cd188['push'](new TextLeaf(_0x1916c5['slice'](0x0,_0x46a5e8)),new TextLeaf(_0x1916c5['slice'](_0x46a5e8)));}}else _0x4cd188['push'](_0x4b6b41);}['replace'](_0x3a383f,_0x1b8983,_0x96e061){if(!(_0x96e061 instanceof TextLeaf))return super['replace'](_0x3a383f,_0x1b8983,_0x96e061);[_0x3a383f,_0x1b8983]=clip(this,_0x3a383f,_0x1b8983);let _0x2e06f4=appendText(this['text'],appendText(_0x96e061['text'],sliceText(this['text'],0x0,_0x3a383f)),_0x1b8983),_0x193309=this['length']+_0x96e061['length']-(_0x1b8983-_0x3a383f);return _0x2e06f4['length']<=0x20?new TextLeaf(_0x2e06f4,_0x193309):TextNode['from'](TextLeaf['split'](_0x2e06f4,[]),_0x193309);}['sliceString'](_0x3b26c6,_0x3abd91=this['length'],_0x42797e='\x0a'){[_0x3b26c6,_0x3abd91]=clip(this,_0x3b26c6,_0x3abd91);let _0x44794c='';for(let _0x17035d=0x0,_0x15a2f7=0x0;_0x17035d<=_0x3abd91&&_0x15a2f7<this['text']['length'];_0x15a2f7++){let _0x2c3189=this['text'][_0x15a2f7],_0x38e042=_0x17035d+_0x2c3189['length'];_0x17035d>_0x3b26c6&&_0x15a2f7&&(_0x44794c+=_0x42797e),_0x3b26c6<_0x38e042&&_0x3abd91>_0x17035d&&(_0x44794c+=_0x2c3189['slice'](Math['max'](0x0,_0x3b26c6-_0x17035d),_0x3abd91-_0x17035d)),_0x17035d=_0x38e042+0x1;}return _0x44794c;}['flatten'](_0x484899){for(let _0x4b165c of this['text'])_0x484899['push'](_0x4b165c);}['scanIdentical'](){return 0x0;}static['split'](_0x427452,_0x47b4fc){let _0x50dd16=[],_0x5459b9=-0x1;for(let _0x12e059 of _0x427452)_0x50dd16['push'](_0x12e059),_0x5459b9+=_0x12e059['length']+0x1,0x20==_0x50dd16['length']&&(_0x47b4fc['push'](new TextLeaf(_0x50dd16,_0x5459b9)),_0x50dd16=[],_0x5459b9=-0x1);return _0x5459b9>-0x1&&_0x47b4fc['push'](new TextLeaf(_0x50dd16,_0x5459b9)),_0x47b4fc;}}class TextNode extends Text{constructor(_0x53b829,_0x5e552a){super(),this['children']=_0x53b829,this['length']=_0x5e552a,this['lines']=0x0;for(let _0x451e47 of _0x53b829)this['lines']+=_0x451e47['lines'];}['lineInner'](_0x4e87f4,_0x3817ff,_0x197bc0,_0x560db1){for(let _0x5a2897=0x0;;_0x5a2897++){let _0x12a605=this['children'][_0x5a2897],_0x5e96fb=_0x560db1+_0x12a605['length'],_0x56c528=_0x197bc0+_0x12a605['lines']-0x1;if((_0x3817ff?_0x56c528:_0x5e96fb)>=_0x4e87f4)return _0x12a605['lineInner'](_0x4e87f4,_0x3817ff,_0x197bc0,_0x560db1);_0x560db1=_0x5e96fb+0x1,_0x197bc0=_0x56c528+0x1;}}['decompose'](_0x2c8f64,_0x3f5b10,_0x197701,_0xe50d5f){for(let _0x2ba2ab=0x0,_0x4f8c84=0x0;_0x4f8c84<=_0x3f5b10&&_0x2ba2ab<this['children']['length'];_0x2ba2ab++){let _0x16965c=this['children'][_0x2ba2ab],_0x4c67f1=_0x4f8c84+_0x16965c['length'];if(_0x2c8f64<=_0x4c67f1&&_0x3f5b10>=_0x4f8c84){let _0x1d71ff=_0xe50d5f&((_0x4f8c84<=_0x2c8f64?0x1:0x0)|(_0x4c67f1>=_0x3f5b10?0x2:0x0));_0x4f8c84>=_0x2c8f64&&_0x4c67f1<=_0x3f5b10&&!_0x1d71ff?_0x197701['push'](_0x16965c):_0x16965c['decompose'](_0x2c8f64-_0x4f8c84,_0x3f5b10-_0x4f8c84,_0x197701,_0x1d71ff);}_0x4f8c84=_0x4c67f1+0x1;}}['replace'](_0x58eaa5,_0x38a17b,_0x197ce2){if([_0x58eaa5,_0x38a17b]=clip(this,_0x58eaa5,_0x38a17b),_0x197ce2['lines']<this['lines'])for(let _0x4869c6=0x0,_0x170992=0x0;_0x4869c6<this['children']['length'];_0x4869c6++){let _0x53cb83=this['children'][_0x4869c6],_0xac30a8=_0x170992+_0x53cb83['length'];if(_0x58eaa5>=_0x170992&&_0x38a17b<=_0xac30a8){let _0x311e82=_0x53cb83['replace'](_0x58eaa5-_0x170992,_0x38a17b-_0x170992,_0x197ce2),_0x146326=this['lines']-_0x53cb83['lines']+_0x311e82['lines'];if(_0x311e82['lines']<_0x146326>>0x4&&_0x311e82['lines']>_0x146326>>0x6){let _0xc01aac=this['children']['slice']();return _0xc01aac[_0x4869c6]=_0x311e82,new TextNode(_0xc01aac,this['length']-(_0x38a17b-_0x58eaa5)+_0x197ce2['length']);}return super['replace'](_0x170992,_0xac30a8,_0x311e82);}_0x170992=_0xac30a8+0x1;}return super['replace'](_0x58eaa5,_0x38a17b,_0x197ce2);}['sliceString'](_0x5bf32b,_0x10cd5a=this['length'],_0x31c133='\x0a'){[_0x5bf32b,_0x10cd5a]=clip(this,_0x5bf32b,_0x10cd5a);let _0x4f4b7c='';for(let _0x3b030f=0x0,_0x3e5a01=0x0;_0x3b030f<this['children']['length']&&_0x3e5a01<=_0x10cd5a;_0x3b030f++){let _0x3931b5=this['children'][_0x3b030f],_0x15a695=_0x3e5a01+_0x3931b5['length'];_0x3e5a01>_0x5bf32b&&_0x3b030f&&(_0x4f4b7c+=_0x31c133),_0x5bf32b<_0x15a695&&_0x10cd5a>_0x3e5a01&&(_0x4f4b7c+=_0x3931b5['sliceString'](_0x5bf32b-_0x3e5a01,_0x10cd5a-_0x3e5a01,_0x31c133)),_0x3e5a01=_0x15a695+0x1;}return _0x4f4b7c;}['flatten'](_0x2a2bc0){for(let _0x4db85f of this['children'])_0x4db85f['flatten'](_0x2a2bc0);}['scanIdentical'](_0x42640a,_0x15dd20){if(!(_0x42640a instanceof TextNode))return 0x0;let _0x1536da=0x0,[_0x592729,_0x5479b3,_0x38fd81,_0xb6acba]=_0x15dd20>0x0?[0x0,0x0,this['children']['length'],_0x42640a['children']['length']]:[this['children']['length']-0x1,_0x42640a['children']['length']-0x1,-0x1,-0x1];for(;;_0x592729+=_0x15dd20,_0x5479b3+=_0x15dd20){if(_0x592729==_0x38fd81||_0x5479b3==_0xb6acba)return _0x1536da;let _0x92ff00=this['children'][_0x592729],_0x2a1054=_0x42640a['children'][_0x5479b3];if(_0x92ff00!=_0x2a1054)return _0x1536da+_0x92ff00['scanIdentical'](_0x2a1054,_0x15dd20);_0x1536da+=_0x92ff00['length']+0x1;}}static['from'](_0x19daf8,_0x1923c9=_0x19daf8['reduce']((_0x465a17,_0x13fa06)=>_0x465a17+_0x13fa06['length']+0x1,-0x1)){let _0x51f411=0x0;for(let _0x56d7a1 of _0x19daf8)_0x51f411+=_0x56d7a1['lines'];if(_0x51f411<0x20){let _0xa3c846=[];for(let _0x34305b of _0x19daf8)_0x34305b['flatten'](_0xa3c846);return new TextLeaf(_0xa3c846,_0x1923c9);}let _0x23b8c6=Math['max'](0x20,_0x51f411>>0x5),_0x42c076=_0x23b8c6<<0x1,_0xf4648a=_0x23b8c6>>0x1,_0x52ce9e=[],_0x3b5271=0x0,_0x116162=-0x1,_0x4b0e82=[];function _0x45e959(_0x2196a8){let _0x301421;if(_0x2196a8['lines']>_0x42c076&&_0x2196a8 instanceof TextNode){for(let _0x1b1f2a of _0x2196a8['children'])_0x45e959(_0x1b1f2a);}else _0x2196a8['lines']>_0xf4648a&&(_0x3b5271>_0xf4648a||!_0x3b5271)?(_0x149882(),_0x52ce9e['push'](_0x2196a8)):_0x2196a8 instanceof TextLeaf&&_0x3b5271&&(_0x301421=_0x4b0e82[_0x4b0e82['length']-0x1])instanceof TextLeaf&&_0x2196a8['lines']+_0x301421['lines']<=0x20?(_0x3b5271+=_0x2196a8['lines'],_0x116162+=_0x2196a8['length']+0x1,_0x4b0e82[_0x4b0e82['length']-0x1]=new TextLeaf(_0x301421['text']['concat'](_0x2196a8['text']),_0x301421['length']+0x1+_0x2196a8['length'])):(_0x3b5271+_0x2196a8['lines']>_0x23b8c6&&_0x149882(),_0x3b5271+=_0x2196a8['lines'],_0x116162+=_0x2196a8['length']+0x1,_0x4b0e82['push'](_0x2196a8));}function _0x149882(){0x0!=_0x3b5271&&(_0x52ce9e['push'](0x1==_0x4b0e82['length']?_0x4b0e82[0x0]:TextNode['from'](_0x4b0e82,_0x116162)),_0x116162=-0x1,_0x3b5271=_0x4b0e82['length']=0x0);}for(let _0x412888 of _0x19daf8)_0x45e959(_0x412888);return _0x149882(),0x1==_0x52ce9e['length']?_0x52ce9e[0x0]:new TextNode(_0x52ce9e,_0x1923c9);}}function textLength(_0x5857f7){let _0x13d86c=-0x1;for(let _0x3dd1ac of _0x5857f7)_0x13d86c+=_0x3dd1ac['length']+0x1;return _0x13d86c;}function appendText(_0x1c0646,_0x5b423b,_0x24bece=0x0,_0x111ca3=0x3b9aca00){for(let _0x1fc6bd=0x0,_0x4661cf=0x0,_0xdaf9af=!0x0;_0x4661cf<_0x1c0646['length']&&_0x1fc6bd<=_0x111ca3;_0x4661cf++){let _0x10e4a9=_0x1c0646[_0x4661cf],_0x437aba=_0x1fc6bd+_0x10e4a9['length'];_0x437aba>=_0x24bece&&(_0x437aba>_0x111ca3&&(_0x10e4a9=_0x10e4a9['slice'](0x0,_0x111ca3-_0x1fc6bd)),_0x1fc6bd<_0x24bece&&(_0x10e4a9=_0x10e4a9['slice'](_0x24bece-_0x1fc6bd)),_0xdaf9af?(_0x5b423b[_0x5b423b['length']-0x1]+=_0x10e4a9,_0xdaf9af=!0x1):_0x5b423b['push'](_0x10e4a9)),_0x1fc6bd=_0x437aba+0x1;}return _0x5b423b;}function sliceText(_0x405652,_0x5bb6f8,_0x10e9ce){return appendText(_0x405652,[''],_0x5bb6f8,_0x10e9ce);}Text['empty']=new TextLeaf([''],0x0);class RawTextCursor{constructor(_0x3d3bb9,_0xfc8fff=0x1){this['dir']=_0xfc8fff,this['done']=!0x1,this['lineBreak']=!0x1,this['value']='',this['nodes']=[_0x3d3bb9],this['offsets']=[_0xfc8fff>0x0?0x1:(_0x3d3bb9 instanceof TextLeaf?_0x3d3bb9['text']['length']:_0x3d3bb9['children']['length'])<<0x1];}['nextInner'](_0x56bac3,_0x23147d){for(this['done']=this['lineBreak']=!0x1;;){let _0x140512=this['nodes']['length']-0x1,_0x5c449b=this['nodes'][_0x140512],_0x6db5b9=this['offsets'][_0x140512],_0x2bcf63=_0x6db5b9>>0x1,_0x339dd8=_0x5c449b instanceof TextLeaf?_0x5c449b['text']['length']:_0x5c449b['children']['length'];if(_0x2bcf63==(_0x23147d>0x0?_0x339dd8:0x0)){if(0x0==_0x140512)return this['done']=!0x0,this['value']='',this;_0x23147d>0x0&&this['offsets'][_0x140512-0x1]++,this['nodes']['pop'](),this['offsets']['pop']();}else{if((0x1&_0x6db5b9)==(_0x23147d>0x0?0x0:0x1)){if(this['offsets'][_0x140512]+=_0x23147d,0x0==_0x56bac3)return this['lineBreak']=!0x0,this['value']='\x0a',this;_0x56bac3--;}else{if(_0x5c449b instanceof TextLeaf){let _0x5ce571=_0x5c449b['text'][_0x2bcf63+(_0x23147d<0x0?-0x1:0x0)];if(this['offsets'][_0x140512]+=_0x23147d,_0x5ce571['length']>Math['max'](0x0,_0x56bac3))return this['value']=0x0==_0x56bac3?_0x5ce571:_0x23147d>0x0?_0x5ce571['slice'](_0x56bac3):_0x5ce571['slice'](0x0,_0x5ce571['length']-_0x56bac3),this;_0x56bac3-=_0x5ce571['length'];}else{let _0x22fb31=_0x5c449b['children'][_0x2bcf63+(_0x23147d<0x0?-0x1:0x0)];_0x56bac3>_0x22fb31['length']?(_0x56bac3-=_0x22fb31['length'],this['offsets'][_0x140512]+=_0x23147d):(_0x23147d<0x0&&this['offsets'][_0x140512]--,this['nodes']['push'](_0x22fb31),this['offsets']['push'](_0x23147d>0x0?0x1:(_0x22fb31 instanceof TextLeaf?_0x22fb31['text']['length']:_0x22fb31['children']['length'])<<0x1));}}}}}['next'](_0x57fda2=0x0){return _0x57fda2<0x0&&(this['nextInner'](-_0x57fda2,-this['dir']),_0x57fda2=this['value']['length']),this['nextInner'](_0x57fda2,this['dir']);}}class PartialTextCursor{constructor(_0x551b8b,_0x4aaf9d,_0x2d9c7b){this['value']='',this['done']=!0x1,this['cursor']=new RawTextCursor(_0x551b8b,_0x4aaf9d>_0x2d9c7b?-0x1:0x1),this['pos']=_0x4aaf9d>_0x2d9c7b?_0x551b8b['length']:0x0,this['from']=Math['min'](_0x4aaf9d,_0x2d9c7b),this['to']=Math['max'](_0x4aaf9d,_0x2d9c7b);}['nextInner'](_0x2f8466,_0x2772b7){if(_0x2772b7<0x0?this['pos']<=this['from']:this['pos']>=this['to'])return this['value']='',this['done']=!0x0,this;_0x2f8466+=Math['max'](0x0,_0x2772b7<0x0?this['pos']-this['to']:this['from']-this['pos']);let _0x2fb693=_0x2772b7<0x0?this['pos']-this['from']:this['to']-this['pos'];_0x2f8466>_0x2fb693&&(_0x2f8466=_0x2fb693),_0x2fb693-=_0x2f8466;let {value:_0x4010bb}=this['cursor']['next'](_0x2f8466);return this['pos']+=(_0x4010bb['length']+_0x2f8466)*_0x2772b7,this['value']=_0x4010bb['length']<=_0x2fb693?_0x4010bb:_0x2772b7<0x0?_0x4010bb['slice'](_0x4010bb['length']-_0x2fb693):_0x4010bb['slice'](0x0,_0x2fb693),this['done']=!this['value'],this;}['next'](_0x540f45=0x0){return _0x540f45<0x0?_0x540f45=Math['max'](_0x540f45,this['from']-this['pos']):_0x540f45>0x0&&(_0x540f45=Math['min'](_0x540f45,this['to']-this['pos'])),this['nextInner'](_0x540f45,this['cursor']['dir']);}get['lineBreak'](){return this['cursor']['lineBreak']&&''!=this['value'];}}class LineCursor{constructor(_0x32f5fb){this['inner']=_0x32f5fb,this['afterBreak']=!0x0,this['value']='',this['done']=!0x1;}['next'](_0x19bbc4=0x0){let {done:_0x29cb38,lineBreak:_0x225bb2,value:_0x2260d5}=this['inner']['next'](_0x19bbc4);return _0x29cb38&&this['afterBreak']?(this['value']='',this['afterBreak']=!0x1):_0x29cb38?(this['done']=!0x0,this['value']=''):_0x225bb2?this['afterBreak']?this['value']='':(this['afterBreak']=!0x0,this['next']()):(this['value']=_0x2260d5,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(_0x1497d2,_0x1c62cb,_0x2637bf,_0x5a000e){this['from']=_0x1497d2,this['to']=_0x1c62cb,this['number']=_0x2637bf,this['text']=_0x5a000e;}get['length'](){return this['to']-this['from'];}};function clip(_0x5f4ea3,_0x383ef5,_0x247e75){return[_0x383ef5=Math['max'](0x0,Math['min'](_0x5f4ea3['length'],_0x383ef5)),Math['max'](_0x383ef5,Math['min'](_0x5f4ea3['length'],_0x247e75))];}function findClusterBreak(_0x5c648d,_0x546fda,_0x19da99=!0x0,_0x3e69ab=!0x0){return findClusterBreak$1(_0x5c648d,_0x546fda,_0x19da99,_0x3e69ab);}function surrogateLow(_0x203a82){return _0x203a82>=0xdc00&&_0x203a82<0xe000;}function surrogateHigh(_0x5e3593){return _0x5e3593>=0xd800&&_0x5e3593<0xdc00;}function codePointAt(_0x4a677e,_0x316bf1){let _0x299982=_0x4a677e['charCodeAt'](_0x316bf1);if(!surrogateHigh(_0x299982)||_0x316bf1+0x1==_0x4a677e['length'])return _0x299982;let _0x1d3dbf=_0x4a677e['charCodeAt'](_0x316bf1+0x1);return surrogateLow(_0x1d3dbf)?_0x1d3dbf-0xdc00+(_0x299982-0xd800<<0xa)+0x10000:_0x299982;}function fromCodePoint(_0x4235ba){return _0x4235ba<=0xffff?String['fromCharCode'](_0x4235ba):(_0x4235ba-=0x10000,String['fromCharCode'](0xd800+(_0x4235ba>>0xa),0xdc00+(0x3ff&_0x4235ba)));}function codePointSize(_0x4c76a9){return _0x4c76a9<0x10000?0x1:0x2;}const DefaultSplit=/\r\n?|\n/;var MapMode=function(_0x2555a1){return _0x2555a1[_0x2555a1['Simple']=0x0]='Simple',_0x2555a1[_0x2555a1['TrackDel']=0x1]='TrackDel',_0x2555a1[_0x2555a1['TrackBefore']=0x2]='TrackBefore',_0x2555a1[_0x2555a1['TrackAfter']=0x3]='TrackAfter',_0x2555a1;}(MapMode||(MapMode={}));class ChangeDesc{constructor(_0x66451b){this['sections']=_0x66451b;}get['length'](){let _0xa0ce5f=0x0;for(let _0x4b9e78=0x0;_0x4b9e78<this['sections']['length'];_0x4b9e78+=0x2)_0xa0ce5f+=this['sections'][_0x4b9e78];return _0xa0ce5f;}get['newLength'](){let _0x1ddada=0x0;for(let _0x47f563=0x0;_0x47f563<this['sections']['length'];_0x47f563+=0x2){let _0x123542=this['sections'][_0x47f563+0x1];_0x1ddada+=_0x123542<0x0?this['sections'][_0x47f563]:_0x123542;}return _0x1ddada;}get['empty'](){return 0x0==this['sections']['length']||0x2==this['sections']['length']&&this['sections'][0x1]<0x0;}['iterGaps'](_0x6c9312){for(let _0x54113f=0x0,_0xed182f=0x0,_0x2f94f8=0x0;_0x54113f<this['sections']['length'];){let _0x37c272=this['sections'][_0x54113f++],_0x3d0cab=this['sections'][_0x54113f++];_0x3d0cab<0x0?(_0x6c9312(_0xed182f,_0x2f94f8,_0x37c272),_0x2f94f8+=_0x37c272):_0x2f94f8+=_0x3d0cab,_0xed182f+=_0x37c272;}}['iterChangedRanges'](_0xc880b3,_0x29383e=!0x1){iterChanges(this,_0xc880b3,_0x29383e);}get['invertedDesc'](){let _0x4d3800=[];for(let _0x5779e1=0x0;_0x5779e1<this['sections']['length'];){let _0x2478fe=this['sections'][_0x5779e1++],_0x47e3d6=this['sections'][_0x5779e1++];_0x47e3d6<0x0?_0x4d3800['push'](_0x2478fe,_0x47e3d6):_0x4d3800['push'](_0x47e3d6,_0x2478fe);}return new ChangeDesc(_0x4d3800);}['composeDesc'](_0x193165){return this['empty']?_0x193165:_0x193165['empty']?this:composeSets(this,_0x193165);}['mapDesc'](_0x2a6857,_0x16dc53=!0x1){return _0x2a6857['empty']?this:mapSet(this,_0x2a6857,_0x16dc53);}['mapPos'](_0x4a59bb,_0x4bd1ea=-0x1,_0x361739=MapMode['Simple']){let _0x1ac6ac=0x0,_0x25cbcc=0x0;for(let _0x1c00de=0x0;_0x1c00de<this['sections']['length'];){let _0x575931=this['sections'][_0x1c00de++],_0x1153be=this['sections'][_0x1c00de++],_0x133810=_0x1ac6ac+_0x575931;if(_0x1153be<0x0){if(_0x133810>_0x4a59bb)return _0x25cbcc+(_0x4a59bb-_0x1ac6ac);_0x25cbcc+=_0x575931;}else{if(_0x361739!=MapMode['Simple']&&_0x133810>=_0x4a59bb&&(_0x361739==MapMode['TrackDel']&&_0x1ac6ac<_0x4a59bb&&_0x133810>_0x4a59bb||_0x361739==MapMode['TrackBefore']&&_0x1ac6ac<_0x4a59bb||_0x361739==MapMode['TrackAfter']&&_0x133810>_0x4a59bb))return null;if(_0x133810>_0x4a59bb||_0x133810==_0x4a59bb&&_0x4bd1ea<0x0&&!_0x575931)return _0x4a59bb==_0x1ac6ac||_0x4bd1ea<0x0?_0x25cbcc:_0x25cbcc+_0x1153be;_0x25cbcc+=_0x1153be;}_0x1ac6ac=_0x133810;}if(_0x4a59bb>_0x1ac6ac)throw new RangeError('Position\x20'+_0x4a59bb+'\x20is\x20out\x20of\x20range\x20for\x20changeset\x20of\x20length\x20'+_0x1ac6ac);return _0x25cbcc;}['touchesRange'](_0x259e43,_0xff77fe=_0x259e43){for(let _0x4f8680=0x0,_0x254924=0x0;_0x4f8680<this['sections']['length']&&_0x254924<=_0xff77fe;){let _0x33c211=_0x254924+this['sections'][_0x4f8680++];if(this['sections'][_0x4f8680++]>=0x0&&_0x254924<=_0xff77fe&&_0x33c211>=_0x259e43)return!(_0x254924<_0x259e43&&_0x33c211>_0xff77fe)||'cover';_0x254924=_0x33c211;}return!0x1;}['toString'](){let _0x3e1c4c='';for(let _0x455aaf=0x0;_0x455aaf<this['sections']['length'];){let _0x339f92=this['sections'][_0x455aaf++],_0x2321cc=this['sections'][_0x455aaf++];_0x3e1c4c+=(_0x3e1c4c?'\x20':'')+_0x339f92+(_0x2321cc>=0x0?':'+_0x2321cc:'');}return _0x3e1c4c;}['toJSON'](){return this['sections'];}static['fromJSON'](_0x57b411){if(!Array['isArray'](_0x57b411)||_0x57b411['length']%0x2||_0x57b411['some'](_0x40d801=>'number'!=typeof _0x40d801))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeDesc');return new ChangeDesc(_0x57b411);}static['create'](_0x230ec7){return new ChangeDesc(_0x230ec7);}}class ChangeSet extends ChangeDesc{constructor(_0x37d677,_0x3c42d3){super(_0x37d677),this['inserted']=_0x3c42d3;}['apply'](_0x2b488c){if(this['length']!=_0x2b488c['length'])throw new RangeError('Applying\x20change\x20set\x20to\x20a\x20document\x20with\x20the\x20wrong\x20length');return iterChanges(this,(_0x2b7fc9,_0xc42ebc,_0x2cb25c,_0x127913,_0x1f2ce7)=>_0x2b488c=_0x2b488c['replace'](_0x2cb25c,_0x2cb25c+(_0xc42ebc-_0x2b7fc9),_0x1f2ce7),!0x1),_0x2b488c;}['mapDesc'](_0x2a7f05,_0x5a6c77=!0x1){return mapSet(this,_0x2a7f05,_0x5a6c77,!0x0);}['invert'](_0x4e3f82){let _0x271cf1=this['sections']['slice'](),_0x416f98=[];for(let _0x66956e=0x0,_0x4ddaa2=0x0;_0x66956e<_0x271cf1['length'];_0x66956e+=0x2){let _0x2163b8=_0x271cf1[_0x66956e],_0x53343c=_0x271cf1[_0x66956e+0x1];if(_0x53343c>=0x0){_0x271cf1[_0x66956e]=_0x53343c,_0x271cf1[_0x66956e+0x1]=_0x2163b8;let _0x535bcd=_0x66956e>>0x1;for(;_0x416f98['length']<_0x535bcd;)_0x416f98['push'](Text['empty']);_0x416f98['push'](_0x2163b8?_0x4e3f82['slice'](_0x4ddaa2,_0x4ddaa2+_0x2163b8):Text['empty']);}_0x4ddaa2+=_0x2163b8;}return new ChangeSet(_0x271cf1,_0x416f98);}['compose'](_0x361afe){return this['empty']?_0x361afe:_0x361afe['empty']?this:composeSets(this,_0x361afe,!0x0);}['map'](_0x36a386,_0x53b328=!0x1){return _0x36a386['empty']?this:mapSet(this,_0x36a386,_0x53b328,!0x0);}['iterChanges'](_0xec96fd,_0xfed5b7=!0x1){iterChanges(this,_0xec96fd,_0xfed5b7);}get['desc'](){return ChangeDesc['create'](this['sections']);}['filter'](_0x52b7af){let _0x2b3938=[],_0x43e8a2=[],_0x5952fe=[],_0x16fef4=new SectionIter(this);t:for(let _0x565e53=0x0,_0x3001f9=0x0;;){let _0x328024=_0x565e53==_0x52b7af['length']?0x3b9aca00:_0x52b7af[_0x565e53++];for(;_0x3001f9<_0x328024||_0x3001f9==_0x328024&&0x0==_0x16fef4['len'];){if(_0x16fef4['done'])break t;let _0x251073=Math['min'](_0x16fef4['len'],_0x328024-_0x3001f9);addSection(_0x5952fe,_0x251073,-0x1);let _0x349a50=-0x1==_0x16fef4['ins']?-0x1:0x0==_0x16fef4['off']?_0x16fef4['ins']:0x0;addSection(_0x2b3938,_0x251073,_0x349a50),_0x349a50>0x0&&addInsert(_0x43e8a2,_0x2b3938,_0x16fef4['text']),_0x16fef4['forward'](_0x251073),_0x3001f9+=_0x251073;}let _0x34b8e9=_0x52b7af[_0x565e53++];for(;_0x3001f9<_0x34b8e9;){if(_0x16fef4['done'])break t;let _0x55ea5e=Math['min'](_0x16fef4['len'],_0x34b8e9-_0x3001f9);addSection(_0x2b3938,_0x55ea5e,-0x1),addSection(_0x5952fe,_0x55ea5e,-0x1==_0x16fef4['ins']?-0x1:0x0==_0x16fef4['off']?_0x16fef4['ins']:0x0),_0x16fef4['forward'](_0x55ea5e),_0x3001f9+=_0x55ea5e;}}return{'changes':new ChangeSet(_0x2b3938,_0x43e8a2),'filtered':ChangeDesc['create'](_0x5952fe)};}['toJSON'](){let _0x3ca33c=[];for(let _0x3732e0=0x0;_0x3732e0<this['sections']['length'];_0x3732e0+=0x2){let _0x3accd1=this['sections'][_0x3732e0],_0x2c48d2=this['sections'][_0x3732e0+0x1];_0x2c48d2<0x0?_0x3ca33c['push'](_0x3accd1):0x0==_0x2c48d2?_0x3ca33c['push']([_0x3accd1]):_0x3ca33c['push']([_0x3accd1]['concat'](this['inserted'][_0x3732e0>>0x1]['toJSON']()));}return _0x3ca33c;}static['of'](_0x3a1864,_0x27d088,_0x5e2824){let _0x5be479=[],_0xaa0a04=[],_0x37e28f=0x0,_0x12d782=null;function _0x4c4637(_0x4762a9=!0x1){if(!_0x4762a9&&!_0x5be479['length'])return;_0x37e28f<_0x27d088&&addSection(_0x5be479,_0x27d088-_0x37e28f,-0x1);let _0x117001=new ChangeSet(_0x5be479,_0xaa0a04);_0x12d782=_0x12d782?_0x12d782['compose'](_0x117001['map'](_0x12d782)):_0x117001,_0x5be479=[],_0xaa0a04=[],_0x37e28f=0x0;}return function _0x32fb57(_0x5b2d36){if(Array['isArray'](_0x5b2d36)){for(let _0x5aa636 of _0x5b2d36)_0x32fb57(_0x5aa636);}else{if(_0x5b2d36 instanceof ChangeSet){if(_0x5b2d36['length']!=_0x27d088)throw new RangeError('Mismatched\x20change\x20set\x20length\x20(got\x20'+_0x5b2d36['length']+',\x20expected\x20'+_0x27d088+')');_0x4c4637(),_0x12d782=_0x12d782?_0x12d782['compose'](_0x5b2d36['map'](_0x12d782)):_0x5b2d36;}else{let {from:_0x479a16,to:_0xe8419f=_0x479a16,insert:_0x127fdc}=_0x5b2d36;if(_0x479a16>_0xe8419f||_0x479a16<0x0||_0xe8419f>_0x27d088)throw new RangeError('Invalid\x20change\x20range\x20'+_0x479a16+'\x20to\x20'+_0xe8419f+'\x20(in\x20doc\x20of\x20length\x20'+_0x27d088+')');let _0x2dfbd4=_0x127fdc?'string'==typeof _0x127fdc?Text['of'](_0x127fdc['split'](_0x5e2824||DefaultSplit)):_0x127fdc:Text['empty'],_0x27bf0b=_0x2dfbd4['length'];if(_0x479a16==_0xe8419f&&0x0==_0x27bf0b)return;_0x479a16<_0x37e28f&&_0x4c4637(),_0x479a16>_0x37e28f&&addSection(_0x5be479,_0x479a16-_0x37e28f,-0x1),addSection(_0x5be479,_0xe8419f-_0x479a16,_0x27bf0b),addInsert(_0xaa0a04,_0x5be479,_0x2dfbd4),_0x37e28f=_0xe8419f;}}}(_0x3a1864),_0x4c4637(!_0x12d782),_0x12d782;}static['empty'](_0x3323c5){return new ChangeSet(_0x3323c5?[_0x3323c5,-0x1]:[],[]);}static['fromJSON'](_0x9192d5){if(!Array['isArray'](_0x9192d5))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');let _0x16de14=[],_0x16cb0d=[];for(let _0x498a3e=0x0;_0x498a3e<_0x9192d5['length'];_0x498a3e++){let _0x83f7b8=_0x9192d5[_0x498a3e];if('number'==typeof _0x83f7b8)_0x16de14['push'](_0x83f7b8,-0x1);else{if(!Array['isArray'](_0x83f7b8)||'number'!=typeof _0x83f7b8[0x0]||_0x83f7b8['some']((_0x29f0e1,_0x285eff)=>_0x285eff&&'string'!=typeof _0x29f0e1))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');if(0x1==_0x83f7b8['length'])_0x16de14['push'](_0x83f7b8[0x0],0x0);else{for(;_0x16cb0d['length']<_0x498a3e;)_0x16cb0d['push'](Text['empty']);_0x16cb0d[_0x498a3e]=Text['of'](_0x83f7b8['slice'](0x1)),_0x16de14['push'](_0x83f7b8[0x0],_0x16cb0d[_0x498a3e]['length']);}}}return new ChangeSet(_0x16de14,_0x16cb0d);}static['createSet'](_0x16278d,_0x34a00a){return new ChangeSet(_0x16278d,_0x34a00a);}}function addSection(_0x3cb34d,_0x154fb1,_0x42b89a,_0x5585c9=!0x1){if(0x0==_0x154fb1&&_0x42b89a<=0x0)return;let _0x1907b4=_0x3cb34d['length']-0x2;_0x1907b4>=0x0&&_0x42b89a<=0x0&&_0x42b89a==_0x3cb34d[_0x1907b4+0x1]?_0x3cb34d[_0x1907b4]+=_0x154fb1:_0x1907b4>=0x0&&0x0==_0x154fb1&&0x0==_0x3cb34d[_0x1907b4]?_0x3cb34d[_0x1907b4+0x1]+=_0x42b89a:_0x5585c9?(_0x3cb34d[_0x1907b4]+=_0x154fb1,_0x3cb34d[_0x1907b4+0x1]+=_0x42b89a):_0x3cb34d['push'](_0x154fb1,_0x42b89a);}function addInsert(_0x4b0dfe,_0x561e15,_0x38603e){if(0x0==_0x38603e['length'])return;let _0x354aad=_0x561e15['length']-0x2>>0x1;if(_0x354aad<_0x4b0dfe['length'])_0x4b0dfe[_0x4b0dfe['length']-0x1]=_0x4b0dfe[_0x4b0dfe['length']-0x1]['append'](_0x38603e);else{for(;_0x4b0dfe['length']<_0x354aad;)_0x4b0dfe['push'](Text['empty']);_0x4b0dfe['push'](_0x38603e);}}function iterChanges(_0x469f7e,_0x2a5c5a,_0x1ca5de){let _0x757758=_0x469f7e['inserted'];for(let _0x379e55=0x0,_0x56361c=0x0,_0x4aa85b=0x0;_0x4aa85b<_0x469f7e['sections']['length'];){let _0x37b117=_0x469f7e['sections'][_0x4aa85b++],_0x190b5c=_0x469f7e['sections'][_0x4aa85b++];if(_0x190b5c<0x0)_0x379e55+=_0x37b117,_0x56361c+=_0x37b117;else{let _0x553835=_0x379e55,_0x11a79a=_0x56361c,_0x2f4800=Text['empty'];for(;_0x553835+=_0x37b117,_0x11a79a+=_0x190b5c,_0x190b5c&&_0x757758&&(_0x2f4800=_0x2f4800['append'](_0x757758[_0x4aa85b-0x2>>0x1])),!(_0x1ca5de||_0x4aa85b==_0x469f7e['sections']['length']||_0x469f7e['sections'][_0x4aa85b+0x1]<0x0);)_0x37b117=_0x469f7e['sections'][_0x4aa85b++],_0x190b5c=_0x469f7e['sections'][_0x4aa85b++];_0x2a5c5a(_0x379e55,_0x553835,_0x56361c,_0x11a79a,_0x2f4800),_0x379e55=_0x553835,_0x56361c=_0x11a79a;}}}function mapSet(_0x46f5ef,_0x4f8c07,_0x3ed13c,_0x281a7c=!0x1){let _0x179fdb=[],_0x5da57e=_0x281a7c?[]:null,_0xf4af22=new SectionIter(_0x46f5ef),_0xc1959e=new SectionIter(_0x4f8c07);for(let _0x462f5e=-0x1;;){if(_0xf4af22['done']&&_0xc1959e['len']||_0xc1959e['done']&&_0xf4af22['len'])throw new Error('Mismatched\x20change\x20set\x20lengths');if(-0x1==_0xf4af22['ins']&&-0x1==_0xc1959e['ins']){let _0x2c07a3=Math['min'](_0xf4af22['len'],_0xc1959e['len']);addSection(_0x179fdb,_0x2c07a3,-0x1),_0xf4af22['forward'](_0x2c07a3),_0xc1959e['forward'](_0x2c07a3);}else{if(_0xc1959e['ins']>=0x0&&(_0xf4af22['ins']<0x0||_0x462f5e==_0xf4af22['i']||0x0==_0xf4af22['off']&&(_0xc1959e['len']<_0xf4af22['len']||_0xc1959e['len']==_0xf4af22['len']&&!_0x3ed13c))){let _0x4f756b=_0xc1959e['len'];for(addSection(_0x179fdb,_0xc1959e['ins'],-0x1);_0x4f756b;){let _0x24aa62=Math['min'](_0xf4af22['len'],_0x4f756b);_0xf4af22['ins']>=0x0&&_0x462f5e<_0xf4af22['i']&&_0xf4af22['len']<=_0x24aa62&&(addSection(_0x179fdb,0x0,_0xf4af22['ins']),_0x5da57e&&addInsert(_0x5da57e,_0x179fdb,_0xf4af22['text']),_0x462f5e=_0xf4af22['i']),_0xf4af22['forward'](_0x24aa62),_0x4f756b-=_0x24aa62;}_0xc1959e['next']();}else{if(!(_0xf4af22['ins']>=0x0)){if(_0xf4af22['done']&&_0xc1959e['done'])return _0x5da57e?ChangeSet['createSet'](_0x179fdb,_0x5da57e):ChangeDesc['create'](_0x179fdb);throw new Error('Mismatched\x20change\x20set\x20lengths');}{let _0x1698e6=0x0,_0x48b162=_0xf4af22['len'];for(;_0x48b162;)if(-0x1==_0xc1959e['ins']){let _0x5b79d9=Math['min'](_0x48b162,_0xc1959e['len']);_0x1698e6+=_0x5b79d9,_0x48b162-=_0x5b79d9,_0xc1959e['forward'](_0x5b79d9);}else{if(!(0x0==_0xc1959e['ins']&&_0xc1959e['len']<_0x48b162))break;_0x48b162-=_0xc1959e['len'],_0xc1959e['next']();}addSection(_0x179fdb,_0x1698e6,_0x462f5e<_0xf4af22['i']?_0xf4af22['ins']:0x0),_0x5da57e&&_0x462f5e<_0xf4af22['i']&&addInsert(_0x5da57e,_0x179fdb,_0xf4af22['text']),_0x462f5e=_0xf4af22['i'],_0xf4af22['forward'](_0xf4af22['len']-_0x48b162);}}}}}function composeSets(_0x29d395,_0x5e8d4c,_0x5c2685=!0x1){let _0x35d959=[],_0xef4dc1=_0x5c2685?[]:null,_0x25db16=new SectionIter(_0x29d395),_0x42465b=new SectionIter(_0x5e8d4c);for(let _0x448b3e=!0x1;;){if(_0x25db16['done']&&_0x42465b['done'])return _0xef4dc1?ChangeSet['createSet'](_0x35d959,_0xef4dc1):ChangeDesc['create'](_0x35d959);if(0x0==_0x25db16['ins'])addSection(_0x35d959,_0x25db16['len'],0x0,_0x448b3e),_0x25db16['next']();else{if(0x0!=_0x42465b['len']||_0x42465b['done']){if(_0x25db16['done']||_0x42465b['done'])throw new Error('Mismatched\x20change\x20set\x20lengths');{let _0x37a8ae=Math['min'](_0x25db16['len2'],_0x42465b['len']),_0x4522ea=_0x35d959['length'];if(-0x1==_0x25db16['ins']){let _0x5de41a=-0x1==_0x42465b['ins']?-0x1:_0x42465b['off']?0x0:_0x42465b['ins'];addSection(_0x35d959,_0x37a8ae,_0x5de41a,_0x448b3e),_0xef4dc1&&_0x5de41a&&addInsert(_0xef4dc1,_0x35d959,_0x42465b['text']);}else-0x1==_0x42465b['ins']?(addSection(_0x35d959,_0x25db16['off']?0x0:_0x25db16['len'],_0x37a8ae,_0x448b3e),_0xef4dc1&&addInsert(_0xef4dc1,_0x35d959,_0x25db16['textBit'](_0x37a8ae))):(addSection(_0x35d959,_0x25db16['off']?0x0:_0x25db16['len'],_0x42465b['off']?0x0:_0x42465b['ins'],_0x448b3e),_0xef4dc1&&!_0x42465b['off']&&addInsert(_0xef4dc1,_0x35d959,_0x42465b['text']));_0x448b3e=(_0x25db16['ins']>_0x37a8ae||_0x42465b['ins']>=0x0&&_0x42465b['len']>_0x37a8ae)&&(_0x448b3e||_0x35d959['length']>_0x4522ea),_0x25db16['forward2'](_0x37a8ae),_0x42465b['forward'](_0x37a8ae);}}else addSection(_0x35d959,0x0,_0x42465b['ins'],_0x448b3e),_0xef4dc1&&addInsert(_0xef4dc1,_0x35d959,_0x42465b['text']),_0x42465b['next']();}}}class SectionIter{constructor(_0x4bcf4c){this['set']=_0x4bcf4c,this['i']=0x0,this['next']();}['next'](){let {sections:_0x12c145}=this['set'];this['i']<_0x12c145['length']?(this['len']=_0x12c145[this['i']++],this['ins']=_0x12c145[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:_0x2e5b54}=this['set'],_0x36a2c0=this['i']-0x2>>0x1;return _0x36a2c0>=_0x2e5b54['length']?Text['empty']:_0x2e5b54[_0x36a2c0];}['textBit'](_0x1ce575){let {inserted:_0x312f60}=this['set'],_0x5068c3=this['i']-0x2>>0x1;return _0x5068c3>=_0x312f60['length']&&!_0x1ce575?Text['empty']:_0x312f60[_0x5068c3]['slice'](this['off'],null==_0x1ce575?void 0x0:this['off']+_0x1ce575);}['forward'](_0xc1e74e){_0xc1e74e==this['len']?this['next']():(this['len']-=_0xc1e74e,this['off']+=_0xc1e74e);}['forward2'](_0x48d03e){-0x1==this['ins']?this['forward'](_0x48d03e):_0x48d03e==this['ins']?this['next']():(this['ins']-=_0x48d03e,this['off']+=_0x48d03e);}}class SelectionRange{constructor(_0x379241,_0x517f54,_0x3bb87a){this['from']=_0x379241,this['to']=_0x517f54,this['flags']=_0x3bb87a;}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 _0x95ae93=0x7&this['flags'];return 0x7==_0x95ae93?null:_0x95ae93;}get['goalColumn'](){let _0xb044b0=this['flags']>>0x6;return 0xffffff==_0xb044b0?void 0x0:_0xb044b0;}['map'](_0x3ed164,_0x1bb211=-0x1){let _0x4b51d1,_0x52a21a;return this['empty']?_0x4b51d1=_0x52a21a=_0x3ed164['mapPos'](this['from'],_0x1bb211):(_0x4b51d1=_0x3ed164['mapPos'](this['from'],0x1),_0x52a21a=_0x3ed164['mapPos'](this['to'],-0x1)),_0x4b51d1==this['from']&&_0x52a21a==this['to']?this:new SelectionRange(_0x4b51d1,_0x52a21a,this['flags']);}['extend'](_0x2bc96c,_0x1ef7f5=_0x2bc96c){if(_0x2bc96c<=this['anchor']&&_0x1ef7f5>=this['anchor'])return EditorSelection['range'](_0x2bc96c,_0x1ef7f5);let _0x41bd23=Math['abs'](_0x2bc96c-this['anchor'])>Math['abs'](_0x1ef7f5-this['anchor'])?_0x2bc96c:_0x1ef7f5;return EditorSelection['range'](this['anchor'],_0x41bd23);}['eq'](_0x357b0f,_0x33eacb=!0x1){return!(this['anchor']!=_0x357b0f['anchor']||this['head']!=_0x357b0f['head']||_0x33eacb&&this['empty']&&this['assoc']!=_0x357b0f['assoc']);}['toJSON'](){return{'anchor':this['anchor'],'head':this['head']};}static['fromJSON'](_0x2610b6){if(!_0x2610b6||'number'!=typeof _0x2610b6['anchor']||'number'!=typeof _0x2610b6['head'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20SelectionRange');return EditorSelection['range'](_0x2610b6['anchor'],_0x2610b6['head']);}static['create'](_0x1672a,_0x53b818,_0x18a003){return new SelectionRange(_0x1672a,_0x53b818,_0x18a003);}}class EditorSelection{constructor(_0x5f4f14,_0x47b351){this['ranges']=_0x5f4f14,this['mainIndex']=_0x47b351;}['map'](_0x11a4a0,_0x39f526=-0x1){return _0x11a4a0['empty']?this:EditorSelection['create'](this['ranges']['map'](_0x23d2f9=>_0x23d2f9['map'](_0x11a4a0,_0x39f526)),this['mainIndex']);}['eq'](_0x173bb0,_0x4a0c5d=!0x1){if(this['ranges']['length']!=_0x173bb0['ranges']['length']||this['mainIndex']!=_0x173bb0['mainIndex'])return!0x1;for(let _0x33d14b=0x0;_0x33d14b<this['ranges']['length'];_0x33d14b++)if(!this['ranges'][_0x33d14b]['eq'](_0x173bb0['ranges'][_0x33d14b],_0x4a0c5d))return!0x1;return!0x0;}get['main'](){return this['ranges'][this['mainIndex']];}['asSingle'](){return 0x1==this['ranges']['length']?this:new EditorSelection([this['main']],0x0);}['addRange'](_0x3ddb55,_0x42847a=!0x0){return EditorSelection['create']([_0x3ddb55]['concat'](this['ranges']),_0x42847a?0x0:this['mainIndex']+0x1);}['replaceRange'](_0x6794ef,_0x2b4d44=this['mainIndex']){let _0x4d3fc1=this['ranges']['slice']();return _0x4d3fc1[_0x2b4d44]=_0x6794ef,EditorSelection['create'](_0x4d3fc1,this['mainIndex']);}['toJSON'](){return{'ranges':this['ranges']['map'](_0x3d61d1=>_0x3d61d1['toJSON']()),'main':this['mainIndex']};}static['fromJSON'](_0x1ade81){if(!_0x1ade81||!Array['isArray'](_0x1ade81['ranges'])||'number'!=typeof _0x1ade81['main']||_0x1ade81['main']>=_0x1ade81['ranges']['length'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorSelection');return new EditorSelection(_0x1ade81['ranges']['map'](_0x32f032=>SelectionRange['fromJSON'](_0x32f032)),_0x1ade81['main']);}static['single'](_0x38ecd6,_0x218399=_0x38ecd6){return new EditorSelection([EditorSelection['range'](_0x38ecd6,_0x218399)],0x0);}static['create'](_0x4a6361,_0x851b6=0x0){if(0x0==_0x4a6361['length'])throw new RangeError('A\x20selection\x20needs\x20at\x20least\x20one\x20range');for(let _0x5e1c4a=0x0,_0x373294=0x0;_0x373294<_0x4a6361['length'];_0x373294++){let _0x206757=_0x4a6361[_0x373294];if(_0x206757['empty']?_0x206757['from']<=_0x5e1c4a:_0x206757['from']<_0x5e1c4a)return EditorSelection['normalized'](_0x4a6361['slice'](),_0x851b6);_0x5e1c4a=_0x206757['to'];}return new EditorSelection(_0x4a6361,_0x851b6);}static['cursor'](_0x54ade2,_0x3ae5f6=0x0,_0x3d6d20,_0x3bb3d2){return SelectionRange['create'](_0x54ade2,_0x54ade2,(0x0==_0x3ae5f6?0x0:_0x3ae5f6<0x0?0x8:0x10)|(null==_0x3d6d20?0x7:Math['min'](0x6,_0x3d6d20))|(null!=_0x3bb3d2?_0x3bb3d2:0xffffff)<<0x6);}static['range'](_0x366418,_0x40b273,_0x1e39ad,_0x3030c0){let _0x50248e=(null!=_0x1e39ad?_0x1e39ad:0xffffff)<<0x6|(null==_0x3030c0?0x7:Math['min'](0x6,_0x3030c0));return _0x40b273<_0x366418?SelectionRange['create'](_0x40b273,_0x366418,0x30|_0x50248e):SelectionRange['create'](_0x366418,_0x40b273,(_0x40b273>_0x366418?0x8:0x0)|_0x50248e);}static['normalized'](_0x2bb7f6,_0x230919=0x0){let _0x1a7ab9=_0x2bb7f6[_0x230919];_0x2bb7f6['sort']((_0x22a48b,_0x3f19e2)=>_0x22a48b['from']-_0x3f19e2['from']),_0x230919=_0x2bb7f6['indexOf'](_0x1a7ab9);for(let _0x5e253e=0x1;_0x5e253e<_0x2bb7f6['length'];_0x5e253e++){let _0xb26cf6=_0x2bb7f6[_0x5e253e],_0x577daf=_0x2bb7f6[_0x5e253e-0x1];if(_0xb26cf6['empty']?_0xb26cf6['from']<=_0x577daf['to']:_0xb26cf6['from']<_0x577daf['to']){let _0x40abc8=_0x577daf['from'],_0x1ff8fc=Math['max'](_0xb26cf6['to'],_0x577daf['to']);_0x5e253e<=_0x230919&&_0x230919--,_0x2bb7f6['splice'](--_0x5e253e,0x2,_0xb26cf6['anchor']>_0xb26cf6['head']?EditorSelection['range'](_0x1ff8fc,_0x40abc8):EditorSelection['range'](_0x40abc8,_0x1ff8fc));}}return new EditorSelection(_0x2bb7f6,_0x230919);}}function checkSelection(_0x48231f,_0x34b03c){for(let _0x159e87 of _0x48231f['ranges'])if(_0x159e87['to']>_0x34b03c)throw new RangeError('Selection\x20points\x20outside\x20of\x20document');}let nextID=0x0;class Facet{constructor(_0x29563c,_0x4772fe,_0x5a1da6,_0x2b3251,_0x354b77){this['combine']=_0x29563c,this['compareInput']=_0x4772fe,this['compare']=_0x5a1da6,this['isStatic']=_0x2b3251,this['id']=nextID++,this['default']=_0x29563c([]),this['extensions']='function'==typeof _0x354b77?_0x354b77(this):_0x354b77;}get['reader'](){return this;}static['define'](_0x2b69d5={}){return new Facet(_0x2b69d5['combine']||(_0x129a9f=>_0x129a9f),_0x2b69d5['compareInput']||((_0x9f26a4,_0x1e0877)=>_0x9f26a4===_0x1e0877),_0x2b69d5['compare']||(_0x2b69d5['combine']?(_0x49f081,_0x50aeac)=>_0x49f081===_0x50aeac:sameArray$1),!!_0x2b69d5['static'],_0x2b69d5['enables']);}['of'](_0xab5364){return new FacetProvider([],this,0x0,_0xab5364);}['compute'](_0x367e79,_0x327648){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new FacetProvider(_0x367e79,this,0x1,_0x327648);}['computeN'](_0x52adb3,_0xd8ea0e){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new FacetProvider(_0x52adb3,this,0x2,_0xd8ea0e);}['from'](_0x5ab61f,_0x1aab3f){return _0x1aab3f||(_0x1aab3f=_0x3ae008=>_0x3ae008),this['compute']([_0x5ab61f],_0x31c251=>_0x1aab3f(_0x31c251['field'](_0x5ab61f)));}}function sameArray$1(_0x662a1,_0x35af88){return _0x662a1==_0x35af88||_0x662a1['length']==_0x35af88['length']&&_0x662a1['every']((_0x81f6de,_0x461c14)=>_0x81f6de===_0x35af88[_0x461c14]);}class FacetProvider{constructor(_0x4d5982,_0x399cad,_0x20d12f,_0x5e1e57){this['dependencies']=_0x4d5982,this['facet']=_0x399cad,this['type']=_0x20d12f,this['value']=_0x5e1e57,this['id']=nextID++;}['dynamicSlot'](_0x40e3ad){var _0x1ba2fa;let _0xc5fdf2=this['value'],_0x14d4e7=this['facet']['compareInput'],_0x432c23=this['id'],_0x2b5486=_0x40e3ad[_0x432c23]>>0x1,_0x2079f0=0x2==this['type'],_0x3a28d0=!0x1,_0x2d63e4=!0x1,_0x53d215=[];for(let _0x546ad0 of this['dependencies'])'doc'==_0x546ad0?_0x3a28d0=!0x0:'selection'==_0x546ad0?_0x2d63e4=!0x0:0x1&(null!==(_0x1ba2fa=_0x40e3ad[_0x546ad0['id']])&&void 0x0!==_0x1ba2fa?_0x1ba2fa:0x1)||_0x53d215['push'](_0x40e3ad[_0x546ad0['id']]);return{'create':_0x3578b4=>(_0x3578b4['values'][_0x2b5486]=_0xc5fdf2(_0x3578b4),0x1),'update'(_0x11dd19,_0x574333){if(_0x3a28d0&&_0x574333['docChanged']||_0x2d63e4&&(_0x574333['docChanged']||_0x574333['selection'])||ensureAll(_0x11dd19,_0x53d215)){let _0x1e791d=_0xc5fdf2(_0x11dd19);if(_0x2079f0?!compareArray(_0x1e791d,_0x11dd19['values'][_0x2b5486],_0x14d4e7):!_0x14d4e7(_0x1e791d,_0x11dd19['values'][_0x2b5486]))return _0x11dd19['values'][_0x2b5486]=_0x1e791d,0x1;}return 0x0;},'reconfigure':(_0x156b3f,_0x5938d9)=>{let _0x361d0a,_0x4d90e2=_0x5938d9['config']['address'][_0x432c23];if(null!=_0x4d90e2){let _0x32872a=getAddr(_0x5938d9,_0x4d90e2);if(this['dependencies']['every'](_0x533117=>_0x533117 instanceof Facet?_0x5938d9['facet'](_0x533117)===_0x156b3f['facet'](_0x533117):!(_0x533117 instanceof StateField)||_0x5938d9['field'](_0x533117,!0x1)==_0x156b3f['field'](_0x533117,!0x1))||(_0x2079f0?compareArray(_0x361d0a=_0xc5fdf2(_0x156b3f),_0x32872a,_0x14d4e7):_0x14d4e7(_0x361d0a=_0xc5fdf2(_0x156b3f),_0x32872a)))return _0x156b3f['values'][_0x2b5486]=_0x32872a,0x0;}else _0x361d0a=_0xc5fdf2(_0x156b3f);return _0x156b3f['values'][_0x2b5486]=_0x361d0a,0x1;}};}}function compareArray(_0x36fd68,_0x112871,_0x43b346){if(_0x36fd68['length']!=_0x112871['length'])return!0x1;for(let _0x167cff=0x0;_0x167cff<_0x36fd68['length'];_0x167cff++)if(!_0x43b346(_0x36fd68[_0x167cff],_0x112871[_0x167cff]))return!0x1;return!0x0;}function ensureAll(_0x11043d,_0x29613a){let _0x269337=!0x1;for(let _0x159069 of _0x29613a)0x1&ensureAddr(_0x11043d,_0x159069)&&(_0x269337=!0x0);return _0x269337;}function dynamicFacetSlot(_0x665b13,_0x17958c,_0x1a8127){let _0x13f652=_0x1a8127['map'](_0x2e80de=>_0x665b13[_0x2e80de['id']]),_0xbe6222=_0x1a8127['map'](_0x3b4773=>_0x3b4773['type']),_0x253f6f=_0x13f652['filter'](_0x3433f4=>!(0x1&_0x3433f4)),_0x425e30=_0x665b13[_0x17958c['id']]>>0x1;function _0x5e9606(_0x3b3a78){let _0x5c0a36=[];for(let _0x203e15=0x0;_0x203e15<_0x13f652['length'];_0x203e15++){let _0x14a58c=getAddr(_0x3b3a78,_0x13f652[_0x203e15]);if(0x2==_0xbe6222[_0x203e15]){for(let _0x4821e3 of _0x14a58c)_0x5c0a36['push'](_0x4821e3);}else _0x5c0a36['push'](_0x14a58c);}return _0x17958c['combine'](_0x5c0a36);}return{'create'(_0x574fe0){for(let _0x3083e9 of _0x13f652)ensureAddr(_0x574fe0,_0x3083e9);return _0x574fe0['values'][_0x425e30]=_0x5e9606(_0x574fe0),0x1;},'update'(_0x172ea1,_0x13f1cd){if(!ensureAll(_0x172ea1,_0x253f6f))return 0x0;let _0x3b37dd=_0x5e9606(_0x172ea1);return _0x17958c['compare'](_0x3b37dd,_0x172ea1['values'][_0x425e30])?0x0:(_0x172ea1['values'][_0x425e30]=_0x3b37dd,0x1);},'reconfigure'(_0x467779,_0x224dda){let _0x3c768d=ensureAll(_0x467779,_0x13f652),_0x97f84d=_0x224dda['config']['facets'][_0x17958c['id']],_0x1a973b=_0x224dda['facet'](_0x17958c);if(_0x97f84d&&!_0x3c768d&&sameArray$1(_0x1a8127,_0x97f84d))return _0x467779['values'][_0x425e30]=_0x1a973b,0x0;let _0x59304e=_0x5e9606(_0x467779);return _0x17958c['compare'](_0x59304e,_0x1a973b)?(_0x467779['values'][_0x425e30]=_0x1a973b,0x0):(_0x467779['values'][_0x425e30]=_0x59304e,0x1);}};}const initField=Facet['define']({'static':!0x0});class StateField{constructor(_0x486d68,_0x17a29b,_0x28a24d,_0x19caa1,_0x20227f){this['id']=_0x486d68,this['createF']=_0x17a29b,this['updateF']=_0x28a24d,this['compareF']=_0x19caa1,this['spec']=_0x20227f,this['provides']=void 0x0;}static['define'](_0x21c6bd){let _0x3ff0de=new StateField(nextID++,_0x21c6bd['create'],_0x21c6bd['update'],_0x21c6bd['compare']||((_0x4b996f,_0x34b5b4)=>_0x4b996f===_0x34b5b4),_0x21c6bd);return _0x21c6bd['provide']&&(_0x3ff0de['provides']=_0x21c6bd['provide'](_0x3ff0de)),_0x3ff0de;}['create'](_0x3ffab3){let _0x63f10f=_0x3ffab3['facet'](initField)['find'](_0x3515a2=>_0x3515a2['field']==this);return((null==_0x63f10f?void 0x0:_0x63f10f['create'])||this['createF'])(_0x3ffab3);}['slot'](_0x3ff3ab){let _0x57bf4b=_0x3ff3ab[this['id']]>>0x1;return{'create':_0x316d50=>(_0x316d50['values'][_0x57bf4b]=this['create'](_0x316d50),0x1),'update':(_0x3251da,_0x1e7774)=>{let _0x11e085=_0x3251da['values'][_0x57bf4b],_0x170d76=this['updateF'](_0x11e085,_0x1e7774);return this['compareF'](_0x11e085,_0x170d76)?0x0:(_0x3251da['values'][_0x57bf4b]=_0x170d76,0x1);},'reconfigure':(_0x227802,_0x3f6532)=>{let _0x9da00e,_0x902471=_0x227802['facet'](initField),_0x44b87f=_0x3f6532['facet'](initField);return(_0x9da00e=_0x902471['find'](_0x29e4fa=>_0x29e4fa['field']==this))&&_0x9da00e!=_0x44b87f['find'](_0x441ff0=>_0x441ff0['field']==this)?(_0x227802['values'][_0x57bf4b]=_0x9da00e['create'](_0x227802),0x1):null!=_0x3f6532['config']['address'][this['id']]?(_0x227802['values'][_0x57bf4b]=_0x3f6532['field'](this),0x0):(_0x227802['values'][_0x57bf4b]=this['create'](_0x227802),0x1);}};}['init'](_0x1a0167){return[this,initField['of']({'field':this,'create':_0x1a0167})];}get['extension'](){return this;}}const Prec_={'lowest':0x4,'low':0x3,'default':0x2,'high':0x1,'highest':0x0};function prec(_0x360428){return _0x4516a3=>new PrecExtension(_0x4516a3,_0x360428);}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(_0x29787d,_0x399a68){this['inner']=_0x29787d,this['prec']=_0x399a68;}}class Compartment{['of'](_0x3de297){return new CompartmentInstance(this,_0x3de297);}['reconfigure'](_0x5aa301){return Compartment['reconfigure']['of']({'compartment':this,'extension':_0x5aa301});}['get'](_0x5319df){return _0x5319df['config']['compartments']['get'](this);}}class CompartmentInstance{constructor(_0x51fa60,_0x12f0c6){this['compartment']=_0x51fa60,this['inner']=_0x12f0c6;}}class Configuration{constructor(_0x1cb0b4,_0x48babc,_0x2c52c2,_0xedf32,_0x5f0919,_0x354be1){for(this['base']=_0x1cb0b4,this['compartments']=_0x48babc,this['dynamicSlots']=_0x2c52c2,this['address']=_0xedf32,this['staticValues']=_0x5f0919,this['facets']=_0x354be1,this['statusTemplate']=[];this['statusTemplate']['length']<_0x2c52c2['length'];)this['statusTemplate']['push'](0x0);}['staticFacet'](_0x12bb4e){let _0xecdfa8=this['address'][_0x12bb4e['id']];return null==_0xecdfa8?_0x12bb4e['default']:this['staticValues'][_0xecdfa8>>0x1];}static['resolve'](_0x317f1b,_0x3330b0,_0x11b8aa){let _0x24517c=[],_0x498b45=Object['create'](null),_0x42438d=new Map();for(let _0x3e3a91 of flatten(_0x317f1b,_0x3330b0,_0x42438d))_0x3e3a91 instanceof StateField?_0x24517c['push'](_0x3e3a91):(_0x498b45[_0x3e3a91['facet']['id']]||(_0x498b45[_0x3e3a91['facet']['id']]=[]))['push'](_0x3e3a91);let _0x5027f4=Object['create'](null),_0x4bae18=[],_0x41665b=[];for(let _0x26265f of _0x24517c)_0x5027f4[_0x26265f['id']]=_0x41665b['length']<<0x1,_0x41665b['push'](_0x25ac55=>_0x26265f['slot'](_0x25ac55));let _0x113579=null==_0x11b8aa?void 0x0:_0x11b8aa['config']['facets'];for(let _0x3fc9c5 in _0x498b45){let _0x306515=_0x498b45[_0x3fc9c5],_0xf8685d=_0x306515[0x0]['facet'],_0xdf0727=_0x113579&&_0x113579[_0x3fc9c5]||[];if(_0x306515['every'](_0x145e24=>0x0==_0x145e24['type'])){if(_0x5027f4[_0xf8685d['id']]=_0x4bae18['length']<<0x1|0x1,sameArray$1(_0xdf0727,_0x306515))_0x4bae18['push'](_0x11b8aa['facet'](_0xf8685d));else{let _0x36b9e5=_0xf8685d['combine'](_0x306515['map'](_0x9c7ecb=>_0x9c7ecb['value']));_0x4bae18['push'](_0x11b8aa&&_0xf8685d['compare'](_0x36b9e5,_0x11b8aa['facet'](_0xf8685d))?_0x11b8aa['facet'](_0xf8685d):_0x36b9e5);}}else{for(let _0x9e0ca2 of _0x306515)0x0==_0x9e0ca2['type']?(_0x5027f4[_0x9e0ca2['id']]=_0x4bae18['length']<<0x1|0x1,_0x4bae18['push'](_0x9e0ca2['value'])):(_0x5027f4[_0x9e0ca2['id']]=_0x41665b['length']<<0x1,_0x41665b['push'](_0x56226c=>_0x9e0ca2['dynamicSlot'](_0x56226c)));_0x5027f4[_0xf8685d['id']]=_0x41665b['length']<<0x1,_0x41665b['push'](_0x32fde4=>dynamicFacetSlot(_0x32fde4,_0xf8685d,_0x306515));}}let _0x1fb1be=_0x41665b['map'](_0xd38119=>_0xd38119(_0x5027f4));return new Configuration(_0x317f1b,_0x42438d,_0x1fb1be,_0x5027f4,_0x4bae18,_0x498b45);}}function flatten(_0x359c9e,_0x5f38b4,_0x4e6831){let _0x77bd69=[[],[],[],[],[]],_0x563a8b=new Map();return function _0x3b3581(_0x2cf1bc,_0x3aa43b){let _0x43aa4d=_0x563a8b['get'](_0x2cf1bc);if(null!=_0x43aa4d){if(_0x43aa4d<=_0x3aa43b)return;let _0x3df860=_0x77bd69[_0x43aa4d]['indexOf'](_0x2cf1bc);_0x3df860>-0x1&&_0x77bd69[_0x43aa4d]['splice'](_0x3df860,0x1),_0x2cf1bc instanceof CompartmentInstance&&_0x4e6831['delete'](_0x2cf1bc['compartment']);}if(_0x563a8b['set'](_0x2cf1bc,_0x3aa43b),Array['isArray'](_0x2cf1bc)){for(let _0x5ec178 of _0x2cf1bc)_0x3b3581(_0x5ec178,_0x3aa43b);}else{if(_0x2cf1bc instanceof CompartmentInstance){if(_0x4e6831['has'](_0x2cf1bc['compartment']))throw new RangeError('Duplicate\x20use\x20of\x20compartment\x20in\x20extensions');let _0x199d03=_0x5f38b4['get'](_0x2cf1bc['compartment'])||_0x2cf1bc['inner'];_0x4e6831['set'](_0x2cf1bc['compartment'],_0x199d03),_0x3b3581(_0x199d03,_0x3aa43b);}else{if(_0x2cf1bc instanceof PrecExtension)_0x3b3581(_0x2cf1bc['inner'],_0x2cf1bc['prec']);else{if(_0x2cf1bc instanceof StateField)_0x77bd69[_0x3aa43b]['push'](_0x2cf1bc),_0x2cf1bc['provides']&&_0x3b3581(_0x2cf1bc['provides'],_0x3aa43b);else{if(_0x2cf1bc instanceof FacetProvider)_0x77bd69[_0x3aa43b]['push'](_0x2cf1bc),_0x2cf1bc['facet']['extensions']&&_0x3b3581(_0x2cf1bc['facet']['extensions'],Prec_['default']);else{let _0x4f81b4=_0x2cf1bc['extension'];if(!_0x4f81b4)throw new Error('Unrecognized\x20extension\x20value\x20in\x20extension\x20set\x20('+_0x2cf1bc+').\x20This\x20sometimes\x20happens\x20because\x20multiple\x20instances\x20of\x20@codemirror/state\x20are\x20loaded,\x20breaking\x20instanceof\x20checks.');_0x3b3581(_0x4f81b4,_0x3aa43b);}}}}}}(_0x359c9e,Prec_['default']),_0x77bd69['reduce']((_0x27ec0a,_0xefe9f8)=>_0x27ec0a['concat'](_0xefe9f8));}function ensureAddr(_0x3366e9,_0x4f8c3d){if(0x1&_0x4f8c3d)return 0x2;let _0x2e4c24=_0x4f8c3d>>0x1,_0x25bd18=_0x3366e9['status'][_0x2e4c24];if(0x4==_0x25bd18)throw new Error('Cyclic\x20dependency\x20between\x20fields\x20and/or\x20facets');if(0x2&_0x25bd18)return _0x25bd18;_0x3366e9['status'][_0x2e4c24]=0x4;let _0x275a13=_0x3366e9['computeSlot'](_0x3366e9,_0x3366e9['config']['dynamicSlots'][_0x2e4c24]);return _0x3366e9['status'][_0x2e4c24]=0x2|_0x275a13;}function getAddr(_0x233fd1,_0x2fb9bb){return 0x1&_0x2fb9bb?_0x233fd1['config']['staticValues'][_0x2fb9bb>>0x1]:_0x233fd1['values'][_0x2fb9bb>>0x1];}const languageData=Facet['define'](),allowMultipleSelections=Facet['define']({'combine':_0x5d8317=>_0x5d8317['some'](_0x5c4898=>_0x5c4898),'static':!0x0}),lineSeparator=Facet['define']({'combine':_0x2a81c0=>_0x2a81c0['length']?_0x2a81c0[0x0]:void 0x0,'static':!0x0}),changeFilter=Facet['define'](),transactionFilter=Facet['define'](),transactionExtender=Facet['define'](),readOnly=Facet['define']({'combine':_0x3e9055=>!!_0x3e9055['length']&&_0x3e9055[0x0]});class Annotation{constructor(_0x1dd9ca,_0x583359){this['type']=_0x1dd9ca,this['value']=_0x583359;}static['define'](){return new AnnotationType();}}class AnnotationType{['of'](_0x1991da){return new Annotation(this,_0x1991da);}}class StateEffectType{constructor(_0x351892){this['map']=_0x351892;}['of'](_0x403c0e){return new StateEffect(this,_0x403c0e);}}class StateEffect{constructor(_0x29b099,_0x4238c8){this['type']=_0x29b099,this['value']=_0x4238c8;}['map'](_0x45eb1b){let _0x238e6b=this['type']['map'](this['value'],_0x45eb1b);return void 0x0===_0x238e6b?void 0x0:_0x238e6b==this['value']?this:new StateEffect(this['type'],_0x238e6b);}['is'](_0x35a8d4){return this['type']==_0x35a8d4;}static['define'](_0x52e9cd={}){return new StateEffectType(_0x52e9cd['map']||(_0x2195b6=>_0x2195b6));}static['mapEffects'](_0x19af0e,_0x5316b7){if(!_0x19af0e['length'])return _0x19af0e;let _0x4e54a7=[];for(let _0x96f170 of _0x19af0e){let _0x5c9712=_0x96f170['map'](_0x5316b7);_0x5c9712&&_0x4e54a7['push'](_0x5c9712);}return _0x4e54a7;}}StateEffect['reconfigure']=StateEffect['define'](),StateEffect['appendConfig']=StateEffect['define']();class Transaction{constructor(_0x249749,_0x37d3eb,_0xcd3df9,_0x408d6f,_0x47729e,_0x1d29a1){this['startState']=_0x249749,this['changes']=_0x37d3eb,this['selection']=_0xcd3df9,this['effects']=_0x408d6f,this['annotations']=_0x47729e,this['scrollIntoView']=_0x1d29a1,this['_doc']=null,this['_state']=null,_0xcd3df9&&checkSelection(_0xcd3df9,_0x37d3eb['newLength']),_0x47729e['some'](_0x69b505=>_0x69b505['type']==Transaction['time'])||(this['annotations']=_0x47729e['concat'](Transaction['time']['of'](Date['now']())));}static['create'](_0x1fdc16,_0x3c7690,_0x2e2bb8,_0x5bd625,_0x377345,_0x93690c){return new Transaction(_0x1fdc16,_0x3c7690,_0x2e2bb8,_0x5bd625,_0x377345,_0x93690c);}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'](_0x9b475f){for(let _0x3f803d of this['annotations'])if(_0x3f803d['type']==_0x9b475f)return _0x3f803d['value'];}get['docChanged'](){return!this['changes']['empty'];}get['reconfigured'](){return this['startState']['config']!=this['state']['config'];}['isUserEvent'](_0x475fb2){let _0x9a98b3=this['annotation'](Transaction['userEvent']);return!(!_0x9a98b3||!(_0x9a98b3==_0x475fb2||_0x9a98b3['length']>_0x475fb2['length']&&_0x9a98b3['slice'](0x0,_0x475fb2['length'])==_0x475fb2&&'.'==_0x9a98b3[_0x475fb2['length']]));}}function joinRanges(_0x28a571,_0x5ebfce){let _0x35cb86=[];for(let _0x583d01=0x0,_0x33dd44=0x0;;){let _0x174d05,_0xeabeb5;if(_0x583d01<_0x28a571['length']&&(_0x33dd44==_0x5ebfce['length']||_0x5ebfce[_0x33dd44]>=_0x28a571[_0x583d01]))_0x174d05=_0x28a571[_0x583d01++],_0xeabeb5=_0x28a571[_0x583d01++];else{if(!(_0x33dd44<_0x5ebfce['length']))return _0x35cb86;_0x174d05=_0x5ebfce[_0x33dd44++],_0xeabeb5=_0x5ebfce[_0x33dd44++];}!_0x35cb86['length']||_0x35cb86[_0x35cb86['length']-0x1]<_0x174d05?_0x35cb86['push'](_0x174d05,_0xeabeb5):_0x35cb86[_0x35cb86['length']-0x1]<_0xeabeb5&&(_0x35cb86[_0x35cb86['length']-0x1]=_0xeabeb5);}}function mergeTransaction(_0x3c4969,_0x4ad189,_0x5716d6){var _0x519447;let _0x3595ed,_0x17d551,_0xa6a98d;return _0x5716d6?(_0x3595ed=_0x4ad189['changes'],_0x17d551=ChangeSet['empty'](_0x4ad189['changes']['length']),_0xa6a98d=_0x3c4969['changes']['compose'](_0x4ad189['changes'])):(_0x3595ed=_0x4ad189['changes']['map'](_0x3c4969['changes']),_0x17d551=_0x3c4969['changes']['mapDesc'](_0x4ad189['changes'],!0x0),_0xa6a98d=_0x3c4969['changes']['compose'](_0x3595ed)),{'changes':_0xa6a98d,'selection':_0x4ad189['selection']?_0x4ad189['selection']['map'](_0x17d551):null===(_0x519447=_0x3c4969['selection'])||void 0x0===_0x519447?void 0x0:_0x519447['map'](_0x3595ed),'effects':StateEffect['mapEffects'](_0x3c4969['effects'],_0x3595ed)['concat'](StateEffect['mapEffects'](_0x4ad189['effects'],_0x17d551)),'annotations':_0x3c4969['annotations']['length']?_0x3c4969['annotations']['concat'](_0x4ad189['annotations']):_0x4ad189['annotations'],'scrollIntoView':_0x3c4969['scrollIntoView']||_0x4ad189['scrollIntoView']};}function resolveTransactionInner(_0x8e2e9c,_0x345cfc,_0x434ffb){let _0x28f014=_0x345cfc['selection'],_0x57087e=asArray$2(_0x345cfc['annotations']);return _0x345cfc['userEvent']&&(_0x57087e=_0x57087e['concat'](Transaction['userEvent']['of'](_0x345cfc['userEvent']))),{'changes':_0x345cfc['changes']instanceof ChangeSet?_0x345cfc['changes']:ChangeSet['of'](_0x345cfc['changes']||[],_0x434ffb,_0x8e2e9c['facet'](lineSeparator)),'selection':_0x28f014&&(_0x28f014 instanceof EditorSelection?_0x28f014:EditorSelection['single'](_0x28f014['anchor'],_0x28f014['head'])),'effects':asArray$2(_0x345cfc['effects']),'annotations':_0x57087e,'scrollIntoView':!!_0x345cfc['scrollIntoView']};}function resolveTransaction(_0x335269,_0x47ae90,_0x1e75f5){let _0x5b53a1=resolveTransactionInner(_0x335269,_0x47ae90['length']?_0x47ae90[0x0]:{},_0x335269['doc']['length']);_0x47ae90['length']&&!0x1===_0x47ae90[0x0]['filter']&&(_0x1e75f5=!0x1);for(let _0x54e076=0x1;_0x54e076<_0x47ae90['length'];_0x54e076++){!0x1===_0x47ae90[_0x54e076]['filter']&&(_0x1e75f5=!0x1);let _0x324316=!!_0x47ae90[_0x54e076]['sequential'];_0x5b53a1=mergeTransaction(_0x5b53a1,resolveTransactionInner(_0x335269,_0x47ae90[_0x54e076],_0x324316?_0x5b53a1['changes']['newLength']:_0x335269['doc']['length']),_0x324316);}let _0x5b79a7=Transaction['create'](_0x335269,_0x5b53a1['changes'],_0x5b53a1['selection'],_0x5b53a1['effects'],_0x5b53a1['annotations'],_0x5b53a1['scrollIntoView']);return extendTransaction(_0x1e75f5?filterTransaction(_0x5b79a7):_0x5b79a7);}function filterTransaction(_0x25c227){let _0x38f951=_0x25c227['startState'],_0x232bf9=!0x0;for(let _0x508407 of _0x38f951['facet'](changeFilter)){let _0x2bfa74=_0x508407(_0x25c227);if(!0x1===_0x2bfa74){_0x232bf9=!0x1;break;}Array['isArray'](_0x2bfa74)&&(_0x232bf9=!0x0===_0x232bf9?_0x2bfa74:joinRanges(_0x232bf9,_0x2bfa74));}if(!0x0!==_0x232bf9){let _0x5ccea5,_0x294a95;if(!0x1===_0x232bf9)_0x294a95=_0x25c227['changes']['invertedDesc'],_0x5ccea5=ChangeSet['empty'](_0x38f951['doc']['length']);else{let _0x1be81b=_0x25c227['changes']['filter'](_0x232bf9);_0x5ccea5=_0x1be81b['changes'],_0x294a95=_0x1be81b['filtered']['mapDesc'](_0x1be81b['changes'])['invertedDesc'];}_0x25c227=Transaction['create'](_0x38f951,_0x5ccea5,_0x25c227['selection']&&_0x25c227['selection']['map'](_0x294a95),StateEffect['mapEffects'](_0x25c227['effects'],_0x294a95),_0x25c227['annotations'],_0x25c227['scrollIntoView']);}let _0x5ac970=_0x38f951['facet'](transactionFilter);for(let _0x29a841=_0x5ac970['length']-0x1;_0x29a841>=0x0;_0x29a841--){let _0x3f51f1=_0x5ac970[_0x29a841](_0x25c227);_0x25c227=_0x3f51f1 instanceof Transaction?_0x3f51f1:Array['isArray'](_0x3f51f1)&&0x1==_0x3f51f1['length']&&_0x3f51f1[0x0]instanceof Transaction?_0x3f51f1[0x0]:resolveTransaction(_0x38f951,asArray$2(_0x3f51f1),!0x1);}return _0x25c227;}function extendTransaction(_0x330243){let _0x558ca=_0x330243['startState'],_0xbcad3e=_0x558ca['facet'](transactionExtender),_0x5973ee=_0x330243;for(let _0x3fa0e7=_0xbcad3e['length']-0x1;_0x3fa0e7>=0x0;_0x3fa0e7--){let _0x12673f=_0xbcad3e[_0x3fa0e7](_0x330243);_0x12673f&&Object['keys'](_0x12673f)['length']&&(_0x5973ee=mergeTransaction(_0x5973ee,resolveTransactionInner(_0x558ca,_0x12673f,_0x330243['changes']['newLength']),!0x0));}return _0x5973ee==_0x330243?_0x330243:Transaction['create'](_0x558ca,_0x330243['changes'],_0x330243['selection'],_0x5973ee['effects'],_0x5973ee['annotations'],_0x5973ee['scrollIntoView']);}Transaction['time']=Annotation['define'](),Transaction['userEvent']=Annotation['define'](),Transaction['addToHistory']=Annotation['define'](),Transaction['remote']=Annotation['define']();const none$3=[];function asArray$2(_0x80e060){return null==_0x80e060?none$3:Array['isArray'](_0x80e060)?_0x80e060:[_0x80e060];}var CharCategory=function(_0x464549){return _0x464549[_0x464549['Word']=0x0]='Word',_0x464549[_0x464549['Space']=0x1]='Space',_0x464549[_0x464549['Other']=0x2]='Other',_0x464549;}(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(_0x10ca6b){}function hasWordChar(_0x5bdd0d){if(wordChar)return wordChar['test'](_0x5bdd0d);for(let _0x41d977=0x0;_0x41d977<_0x5bdd0d['length'];_0x41d977++){let _0x8b85b4=_0x5bdd0d[_0x41d977];if(/\w/['test'](_0x8b85b4)||_0x8b85b4>'\u0080'&&(_0x8b85b4['toUpperCase']()!=_0x8b85b4['toLowerCase']()||nonASCIISingleCaseWordChar['test'](_0x8b85b4)))return!0x0;}return!0x1;}function makeCategorizer(_0x3f4604){return _0xfdef98=>{if(!/\S/['test'](_0xfdef98))return CharCategory['Space'];if(hasWordChar(_0xfdef98))return CharCategory['Word'];for(let _0x4625f0=0x0;_0x4625f0<_0x3f4604['length'];_0x4625f0++)if(_0xfdef98['indexOf'](_0x3f4604[_0x4625f0])>-0x1)return CharCategory['Word'];return CharCategory['Other'];};}class EditorState{constructor(_0x15b2e0,_0x4fbddf,_0x38c9b1,_0x13a563,_0x109200,_0x282721){this['config']=_0x15b2e0,this['doc']=_0x4fbddf,this['selection']=_0x38c9b1,this['values']=_0x13a563,this['status']=_0x15b2e0['statusTemplate']['slice'](),this['computeSlot']=_0x109200,_0x282721&&(_0x282721['_state']=this);for(let _0xaa24db=0x0;_0xaa24db<this['config']['dynamicSlots']['length'];_0xaa24db++)ensureAddr(this,_0xaa24db<<0x1);this['computeSlot']=null;}['field'](_0x376e15,_0x59436d=!0x0){let _0x1e84a0=this['config']['address'][_0x376e15['id']];if(null!=_0x1e84a0)return ensureAddr(this,_0x1e84a0),getAddr(this,_0x1e84a0);if(_0x59436d)throw new RangeError('Field\x20is\x20not\x20present\x20in\x20this\x20state');}['update'](..._0x452f08){return resolveTransaction(this,_0x452f08,!0x0);}['applyTransaction'](_0x41cd7e){let _0x3a344b,_0x2f4263=this['config'],{base:_0x4954c8,compartments:_0x2f1179}=_0x2f4263;for(let _0x4a1e1b of _0x41cd7e['effects'])_0x4a1e1b['is'](Compartment['reconfigure'])?(_0x2f4263&&(_0x2f1179=new Map(),_0x2f4263['compartments']['forEach']((_0x2e78b5,_0x373147)=>_0x2f1179['set'](_0x373147,_0x2e78b5)),_0x2f4263=null),_0x2f1179['set'](_0x4a1e1b['value']['compartment'],_0x4a1e1b['value']['extension'])):_0x4a1e1b['is'](StateEffect['reconfigure'])?(_0x2f4263=null,_0x4954c8=_0x4a1e1b['value']):_0x4a1e1b['is'](StateEffect['appendConfig'])&&(_0x2f4263=null,_0x4954c8=asArray$2(_0x4954c8)['concat'](_0x4a1e1b['value']));if(_0x2f4263)_0x3a344b=_0x41cd7e['startState']['values']['slice']();else _0x2f4263=Configuration['resolve'](_0x4954c8,_0x2f1179,this),_0x3a344b=new EditorState(_0x2f4263,this['doc'],this['selection'],_0x2f4263['dynamicSlots']['map'](()=>null),(_0x2f3173,_0x4728f9)=>_0x4728f9['reconfigure'](_0x2f3173,this),null)['values'];let _0xa4d061=_0x41cd7e['startState']['facet'](allowMultipleSelections)?_0x41cd7e['newSelection']:_0x41cd7e['newSelection']['asSingle']();new EditorState(_0x2f4263,_0x41cd7e['newDoc'],_0xa4d061,_0x3a344b,(_0x1a1ba3,_0x499e90)=>_0x499e90['update'](_0x1a1ba3,_0x41cd7e),_0x41cd7e);}['replaceSelection'](_0x1f0ad5){return'string'==typeof _0x1f0ad5&&(_0x1f0ad5=this['toText'](_0x1f0ad5)),this['changeByRange'](_0x16abd1=>({'changes':{'from':_0x16abd1['from'],'to':_0x16abd1['to'],'insert':_0x1f0ad5},'range':EditorSelection['cursor'](_0x16abd1['from']+_0x1f0ad5['length'])}));}['changeByRange'](_0x531015){let _0x462705=this['selection'],_0x2f6ea6=_0x531015(_0x462705['ranges'][0x0]),_0x154314=this['changes'](_0x2f6ea6['changes']),_0x27e237=[_0x2f6ea6['range']],_0x23c04a=asArray$2(_0x2f6ea6['effects']);for(let _0x43f25e=0x1;_0x43f25e<_0x462705['ranges']['length'];_0x43f25e++){let _0x2b39e1=_0x531015(_0x462705['ranges'][_0x43f25e]),_0x4c3d32=this['changes'](_0x2b39e1['changes']),_0x28ea00=_0x4c3d32['map'](_0x154314);for(let _0xece658=0x0;_0xece658<_0x43f25e;_0xece658++)_0x27e237[_0xece658]=_0x27e237[_0xece658]['map'](_0x28ea00);let _0x5c23d4=_0x154314['mapDesc'](_0x4c3d32,!0x0);_0x27e237['push'](_0x2b39e1['range']['map'](_0x5c23d4)),_0x154314=_0x154314['compose'](_0x28ea00),_0x23c04a=StateEffect['mapEffects'](_0x23c04a,_0x28ea00)['concat'](StateEffect['mapEffects'](asArray$2(_0x2b39e1['effects']),_0x5c23d4));}return{'changes':_0x154314,'selection':EditorSelection['create'](_0x27e237,_0x462705['mainIndex']),'effects':_0x23c04a};}['changes'](_0x3e31af=[]){return _0x3e31af instanceof ChangeSet?_0x3e31af:ChangeSet['of'](_0x3e31af,this['doc']['length'],this['facet'](EditorState['lineSeparator']));}['toText'](_0x335989){return Text['of'](_0x335989['split'](this['facet'](EditorState['lineSeparator'])||DefaultSplit));}['sliceDoc'](_0x99aecf=0x0,_0x2d0941=this['doc']['length']){return this['doc']['sliceString'](_0x99aecf,_0x2d0941,this['lineBreak']);}['facet'](_0x202daa){let _0x4e59fe=this['config']['address'][_0x202daa['id']];return null==_0x4e59fe?_0x202daa['default']:(ensureAddr(this,_0x4e59fe),getAddr(this,_0x4e59fe));}['toJSON'](_0x5cb3bb){let _0x143bee={'doc':this['sliceDoc'](),'selection':this['selection']['toJSON']()};if(_0x5cb3bb)for(let _0x26d024 in _0x5cb3bb){let _0x482ebc=_0x5cb3bb[_0x26d024];_0x482ebc instanceof StateField&&null!=this['config']['address'][_0x482ebc['id']]&&(_0x143bee[_0x26d024]=_0x482ebc['spec']['toJSON'](this['field'](_0x5cb3bb[_0x26d024]),this));}return _0x143bee;}static['fromJSON'](_0x2492ee,_0xdd26a0={},_0x444e51){if(!_0x2492ee||'string'!=typeof _0x2492ee['doc'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorState');let _0x4258b5=[];if(_0x444e51){for(let _0x183308 in _0x444e51)if(Object['prototype']['hasOwnProperty']['call'](_0x2492ee,_0x183308)){let _0x6a1d73=_0x444e51[_0x183308],_0x4fed53=_0x2492ee[_0x183308];_0x4258b5['push'](_0x6a1d73['init'](_0x14d5b7=>_0x6a1d73['spec']['fromJSON'](_0x4fed53,_0x14d5b7)));}}return EditorState['create']({'doc':_0x2492ee['doc'],'selection':EditorSelection['fromJSON'](_0x2492ee['selection']),'extensions':_0xdd26a0['extensions']?_0x4258b5['concat']([_0xdd26a0['extensions']]):_0x4258b5});}static['create'](_0x327b93={}){let _0x23b8b4=Configuration['resolve'](_0x327b93['extensions']||[],new Map()),_0x481dde=_0x327b93['doc']instanceof Text?_0x327b93['doc']:Text['of']((_0x327b93['doc']||'')['split'](_0x23b8b4['staticFacet'](EditorState['lineSeparator'])||DefaultSplit)),_0x48e646=_0x327b93['selection']?_0x327b93['selection']instanceof EditorSelection?_0x327b93['selection']:EditorSelection['single'](_0x327b93['selection']['anchor'],_0x327b93['selection']['head']):EditorSelection['single'](0x0);return checkSelection(_0x48e646,_0x481dde['length']),_0x23b8b4['staticFacet'](allowMultipleSelections)||(_0x48e646=_0x48e646['asSingle']()),new EditorState(_0x23b8b4,_0x481dde,_0x48e646,_0x23b8b4['dynamicSlots']['map'](()=>null),(_0x229992,_0x14d372)=>_0x14d372['create'](_0x229992),null);}get['tabSize'](){return this['facet'](EditorState['tabSize']);}get['lineBreak'](){return this['facet'](EditorState['lineSeparator'])||'\x0a';}get['readOnly'](){return this['facet'](readOnly);}['phrase'](_0x880f9f,..._0x2cdd14){for(let _0x180b2d of this['facet'](EditorState['phrases']))if(Object['prototype']['hasOwnProperty']['call'](_0x180b2d,_0x880f9f)){_0x880f9f=_0x180b2d[_0x880f9f];break;}return _0x2cdd14['length']&&(_0x880f9f=_0x880f9f['replace'](/\$(\$|\d*)/g,(_0x5bd37a,_0x27cbcc)=>{if('$'==_0x27cbcc)return'$';let _0xa7df91=+(_0x27cbcc||0x1);return!_0xa7df91||_0xa7df91>_0x2cdd14['length']?_0x5bd37a:_0x2cdd14[_0xa7df91-0x1];})),_0x880f9f;}['languageDataAt'](_0x4b0614,_0x5da979,_0x45bedf=-0x1){let _0x139978=[];for(let _0x5c6859 of this['facet'](languageData))for(let _0x1ac855 of _0x5c6859(this,_0x5da979,_0x45bedf))Object['prototype']['hasOwnProperty']['call'](_0x1ac855,_0x4b0614)&&_0x139978['push'](_0x1ac855[_0x4b0614]);return _0x139978;}['charCategorizer'](_0x10207f){return makeCategorizer(this['languageDataAt']('wordChars',_0x10207f)['join'](''));}['wordAt'](_0xf9534b){let {text:_0x1728bb,from:_0x422080,length:_0x94ab79}=this['doc']['lineAt'](_0xf9534b),_0x2a2d8e=this['charCategorizer'](_0xf9534b),_0x4ed532=_0xf9534b-_0x422080,_0x25db2c=_0xf9534b-_0x422080;for(;_0x4ed532>0x0;){let _0x2e46b8=findClusterBreak(_0x1728bb,_0x4ed532,!0x1);if(_0x2a2d8e(_0x1728bb['slice'](_0x2e46b8,_0x4ed532))!=CharCategory['Word'])break;_0x4ed532=_0x2e46b8;}for(;_0x25db2c<_0x94ab79;){let _0x1e14f9=findClusterBreak(_0x1728bb,_0x25db2c);if(_0x2a2d8e(_0x1728bb['slice'](_0x25db2c,_0x1e14f9))!=CharCategory['Word'])break;_0x25db2c=_0x1e14f9;}return _0x4ed532==_0x25db2c?null:EditorSelection['range'](_0x4ed532+_0x422080,_0x25db2c+_0x422080);}}function combineConfig(_0x583cfa,_0xfcd7cd,_0x54b37f={}){let _0x6b2a99={};for(let _0x16d7d0 of _0x583cfa)for(let _0x38b69b of Object['keys'](_0x16d7d0)){let _0x57b107=_0x16d7d0[_0x38b69b],_0x20356e=_0x6b2a99[_0x38b69b];if(void 0x0===_0x20356e)_0x6b2a99[_0x38b69b]=_0x57b107;else{if(_0x20356e===_0x57b107||void 0x0===_0x57b107);else{if(!Object['hasOwnProperty']['call'](_0x54b37f,_0x38b69b))throw new Error('Config\x20merge\x20conflict\x20for\x20field\x20'+_0x38b69b);_0x6b2a99[_0x38b69b]=_0x54b37f[_0x38b69b](_0x20356e,_0x57b107);}}}for(let _0x46bf8e in _0xfcd7cd)void 0x0===_0x6b2a99[_0x46bf8e]&&(_0x6b2a99[_0x46bf8e]=_0xfcd7cd[_0x46bf8e]);return _0x6b2a99;}EditorState['allowMultipleSelections']=allowMultipleSelections,EditorState['tabSize']=Facet['define']({'combine':_0x46616f=>_0x46616f['length']?_0x46616f[0x0]:0x4}),EditorState['lineSeparator']=lineSeparator,EditorState['readOnly']=readOnly,EditorState['phrases']=Facet['define']({'compare'(_0x2fbdfd,_0x29839d){let _0x5c78c5=Object['keys'](_0x2fbdfd),_0x4beb61=Object['keys'](_0x29839d);return _0x5c78c5['length']==_0x4beb61['length']&&_0x5c78c5['every'](_0x1a3ab0=>_0x2fbdfd[_0x1a3ab0]==_0x29839d[_0x1a3ab0]);}}),EditorState['languageData']=languageData,EditorState['changeFilter']=changeFilter,EditorState['transactionFilter']=transactionFilter,EditorState['transactionExtender']=transactionExtender,Compartment['reconfigure']=StateEffect['define']();class RangeValue{['eq'](_0x2b9c2d){return this==_0x2b9c2d;}['range'](_0x39133d,_0x266de6=_0x39133d){return Range$1['create'](_0x39133d,_0x266de6,this);}}RangeValue['prototype']['startSide']=RangeValue['prototype']['endSide']=0x0,RangeValue['prototype']['point']=!0x1,RangeValue['prototype']['mapMode']=MapMode['TrackDel'];let Range$1=class e{constructor(_0x41613a,_0x36d9a0,_0x2dc76e){this['from']=_0x41613a,this['to']=_0x36d9a0,this['value']=_0x2dc76e;}static['create'](_0x3fdd9c,_0x33e1b2,_0x368eb8){return new e(_0x3fdd9c,_0x33e1b2,_0x368eb8);}};function cmpRange(_0xa3cc3,_0x1fea3e){return _0xa3cc3['from']-_0x1fea3e['from']||_0xa3cc3['value']['startSide']-_0x1fea3e['value']['startSide'];}class Chunk{constructor(_0x245c26,_0x3da9ea,_0x28753c,_0x13549c){this['from']=_0x245c26,this['to']=_0x3da9ea,this['value']=_0x28753c,this['maxPoint']=_0x13549c;}get['length'](){return this['to'][this['to']['length']-0x1];}['findIndex'](_0x3590d3,_0xaf228c,_0x2c3ebf,_0x45f455=0x0){let _0x3ca165=_0x2c3ebf?this['to']:this['from'];for(let _0x329b2d=_0x45f455,_0x49127c=_0x3ca165['length'];;){if(_0x329b2d==_0x49127c)return _0x329b2d;let _0x59a1ce=_0x329b2d+_0x49127c>>0x1,_0x31404d=_0x3ca165[_0x59a1ce]-_0x3590d3||(_0x2c3ebf?this['value'][_0x59a1ce]['endSide']:this['value'][_0x59a1ce]['startSide'])-_0xaf228c;if(_0x59a1ce==_0x329b2d)return _0x31404d>=0x0?_0x329b2d:_0x49127c;_0x31404d>=0x0?_0x49127c=_0x59a1ce:_0x329b2d=_0x59a1ce+0x1;}}['between'](_0x34c101,_0xf59caa,_0x297afe,_0x342ec1){for(let _0x5ae0a4=this['findIndex'](_0xf59caa,-0x3b9aca00,!0x0),_0x57b622=this['findIndex'](_0x297afe,0x3b9aca00,!0x1,_0x5ae0a4);_0x5ae0a4<_0x57b622;_0x5ae0a4++)if(!0x1===_0x342ec1(this['from'][_0x5ae0a4]+_0x34c101,this['to'][_0x5ae0a4]+_0x34c101,this['value'][_0x5ae0a4]))return!0x1;}['map'](_0x35121d,_0x549818){let _0x24b74f=[],_0x578d74=[],_0x315541=[],_0x5e53b7=-0x1,_0x429271=-0x1;for(let _0x2d77b1=0x0;_0x2d77b1<this['value']['length'];_0x2d77b1++){let _0x263e6e,_0x949a2e,_0x3946e3=this['value'][_0x2d77b1],_0x493bfe=this['from'][_0x2d77b1]+_0x35121d,_0x20efb0=this['to'][_0x2d77b1]+_0x35121d;if(_0x493bfe==_0x20efb0){let _0x1dd13a=_0x549818['mapPos'](_0x493bfe,_0x3946e3['startSide'],_0x3946e3['mapMode']);if(null==_0x1dd13a)continue;if(_0x263e6e=_0x949a2e=_0x1dd13a,_0x3946e3['startSide']!=_0x3946e3['endSide']&&(_0x949a2e=_0x549818['mapPos'](_0x493bfe,_0x3946e3['endSide']),_0x949a2e<_0x263e6e))continue;}else{if(_0x263e6e=_0x549818['mapPos'](_0x493bfe,_0x3946e3['startSide']),_0x949a2e=_0x549818['mapPos'](_0x20efb0,_0x3946e3['endSide']),_0x263e6e>_0x949a2e||_0x263e6e==_0x949a2e&&_0x3946e3['startSide']>0x0&&_0x3946e3['endSide']<=0x0)continue;}(_0x949a2e-_0x263e6e||_0x3946e3['endSide']-_0x3946e3['startSide'])<0x0||(_0x5e53b7<0x0&&(_0x5e53b7=_0x263e6e),_0x3946e3['point']&&(_0x429271=Math['max'](_0x429271,_0x949a2e-_0x263e6e)),_0x24b74f['push'](_0x3946e3),_0x578d74['push'](_0x263e6e-_0x5e53b7),_0x315541['push'](_0x949a2e-_0x5e53b7));}return{'mapped':_0x24b74f['length']?new Chunk(_0x578d74,_0x315541,_0x24b74f,_0x429271):null,'pos':_0x5e53b7};}}class RangeSet{constructor(_0x236941,_0x2596ef,_0x574bb8,_0x1c3559){this['chunkPos']=_0x236941,this['chunk']=_0x2596ef,this['nextLayer']=_0x574bb8,this['maxPoint']=_0x1c3559;}static['create'](_0x906d86,_0x558469,_0x2948b1,_0x250bf7){return new RangeSet(_0x906d86,_0x558469,_0x2948b1,_0x250bf7);}get['length'](){let _0x4dbc3b=this['chunk']['length']-0x1;return _0x4dbc3b<0x0?0x0:Math['max'](this['chunkEnd'](_0x4dbc3b),this['nextLayer']['length']);}get['size'](){if(this['isEmpty'])return 0x0;let _0x785010=this['nextLayer']['size'];for(let _0x5930b0 of this['chunk'])_0x785010+=_0x5930b0['value']['length'];return _0x785010;}['chunkEnd'](_0x58563e){return this['chunkPos'][_0x58563e]+this['chunk'][_0x58563e]['length'];}['update'](_0xf94c96){let {add:_0x47e02f=[],sort:_0x952b91=!0x1,filterFrom:_0x4a6185=0x0,filterTo:_0x5302c5=this['length']}=_0xf94c96,_0x29617f=_0xf94c96['filter'];if(0x0==_0x47e02f['length']&&!_0x29617f)return this;if(_0x952b91&&(_0x47e02f=_0x47e02f['slice']()['sort'](cmpRange)),this['isEmpty'])return _0x47e02f['length']?RangeSet['of'](_0x47e02f):this;let _0x2577f5=new LayerCursor(this,null,-0x1)['goto'](0x0),_0x196c50=0x0,_0x4790e6=[],_0x114fba=new RangeSetBuilder();for(;_0x2577f5['value']||_0x196c50<_0x47e02f['length'];)if(_0x196c50<_0x47e02f['length']&&(_0x2577f5['from']-_0x47e02f[_0x196c50]['from']||_0x2577f5['startSide']-_0x47e02f[_0x196c50]['value']['startSide'])>=0x0){let _0xb3558a=_0x47e02f[_0x196c50++];_0x114fba['addInner'](_0xb3558a['from'],_0xb3558a['to'],_0xb3558a['value'])||_0x4790e6['push'](_0xb3558a);}else 0x1==_0x2577f5['rangeIndex']&&_0x2577f5['chunkIndex']<this['chunk']['length']&&(_0x196c50==_0x47e02f['length']||this['chunkEnd'](_0x2577f5['chunkIndex'])<_0x47e02f[_0x196c50]['from'])&&(!_0x29617f||_0x4a6185>this['chunkEnd'](_0x2577f5['chunkIndex'])||_0x5302c5<this['chunkPos'][_0x2577f5['chunkIndex']])&&_0x114fba['addChunk'](this['chunkPos'][_0x2577f5['chunkIndex']],this['chunk'][_0x2577f5['chunkIndex']])?_0x2577f5['nextChunk']():((!_0x29617f||_0x4a6185>_0x2577f5['to']||_0x5302c5<_0x2577f5['from']||_0x29617f(_0x2577f5['from'],_0x2577f5['to'],_0x2577f5['value']))&&(_0x114fba['addInner'](_0x2577f5['from'],_0x2577f5['to'],_0x2577f5['value'])||_0x4790e6['push'](Range$1['create'](_0x2577f5['from'],_0x2577f5['to'],_0x2577f5['value']))),_0x2577f5['next']());return _0x114fba['finishInner'](this['nextLayer']['isEmpty']&&!_0x4790e6['length']?RangeSet['empty']:this['nextLayer']['update']({'add':_0x4790e6,'filter':_0x29617f,'filterFrom':_0x4a6185,'filterTo':_0x5302c5}));}['map'](_0x2b3d4a){if(_0x2b3d4a['empty']||this['isEmpty'])return this;let _0x13d631=[],_0x35f2fc=[],_0x2b377c=-0x1;for(let _0x505072=0x0;_0x505072<this['chunk']['length'];_0x505072++){let _0x4bc19d=this['chunkPos'][_0x505072],_0x3d5ae8=this['chunk'][_0x505072],_0xa0d668=_0x2b3d4a['touchesRange'](_0x4bc19d,_0x4bc19d+_0x3d5ae8['length']);if(!0x1===_0xa0d668)_0x2b377c=Math['max'](_0x2b377c,_0x3d5ae8['maxPoint']),_0x13d631['push'](_0x3d5ae8),_0x35f2fc['push'](_0x2b3d4a['mapPos'](_0x4bc19d));else{if(!0x0===_0xa0d668){let {mapped:_0x3d4848,pos:_0x2a76c8}=_0x3d5ae8['map'](_0x4bc19d,_0x2b3d4a);_0x3d4848&&(_0x2b377c=Math['max'](_0x2b377c,_0x3d4848['maxPoint']),_0x13d631['push'](_0x3d4848),_0x35f2fc['push'](_0x2a76c8));}}}let _0x4712db=this['nextLayer']['map'](_0x2b3d4a);return 0x0==_0x13d631['length']?_0x4712db:new RangeSet(_0x35f2fc,_0x13d631,_0x4712db||RangeSet['empty'],_0x2b377c);}['between'](_0x2b45e1,_0x5988ce,_0x376ec3){if(!this['isEmpty']){for(let _0xdb8fe0=0x0;_0xdb8fe0<this['chunk']['length'];_0xdb8fe0++){let _0x2bfd44=this['chunkPos'][_0xdb8fe0],_0x56e906=this['chunk'][_0xdb8fe0];if(_0x5988ce>=_0x2bfd44&&_0x2b45e1<=_0x2bfd44+_0x56e906['length']&&!0x1===_0x56e906['between'](_0x2bfd44,_0x2b45e1-_0x2bfd44,_0x5988ce-_0x2bfd44,_0x376ec3))return;}this['nextLayer']['between'](_0x2b45e1,_0x5988ce,_0x376ec3);}}['iter'](_0x569a5e=0x0){return HeapCursor['from']([this])['goto'](_0x569a5e);}get['isEmpty'](){return this['nextLayer']==this;}static['iter'](_0x4e5c21,_0x27c7d3=0x0){return HeapCursor['from'](_0x4e5c21)['goto'](_0x27c7d3);}static['compare'](_0x496ba8,_0x47cb77,_0x53f187,_0x35f1c5,_0x1bc98c=-0x1){let _0x23faba=_0x496ba8['filter'](_0x3eb81f=>_0x3eb81f['maxPoint']>0x0||!_0x3eb81f['isEmpty']&&_0x3eb81f['maxPoint']>=_0x1bc98c),_0x1740d7=_0x47cb77['filter'](_0x1df804=>_0x1df804['maxPoint']>0x0||!_0x1df804['isEmpty']&&_0x1df804['maxPoint']>=_0x1bc98c),_0x5dfcde=findSharedChunks(_0x23faba,_0x1740d7,_0x53f187),_0x2e6599=new SpanCursor(_0x23faba,_0x5dfcde,_0x1bc98c),_0x3ddacd=new SpanCursor(_0x1740d7,_0x5dfcde,_0x1bc98c);_0x53f187['iterGaps']((_0x5aa932,_0x5199db,_0x53ed8b)=>compare(_0x2e6599,_0x5aa932,_0x3ddacd,_0x5199db,_0x53ed8b,_0x35f1c5)),_0x53f187['empty']&&0x0==_0x53f187['length']&&compare(_0x2e6599,0x0,_0x3ddacd,0x0,0x0,_0x35f1c5);}static['eq'](_0x2265fd,_0xc274b5,_0x40938f=0x0,_0xaf1010){null==_0xaf1010&&(_0xaf1010=0x3b9ac9ff);let _0x3a8963=_0x2265fd['filter'](_0x21fdea=>!_0x21fdea['isEmpty']&&_0xc274b5['indexOf'](_0x21fdea)<0x0),_0x3f37da=_0xc274b5['filter'](_0x107553=>!_0x107553['isEmpty']&&_0x2265fd['indexOf'](_0x107553)<0x0);if(_0x3a8963['length']!=_0x3f37da['length'])return!0x1;if(!_0x3a8963['length'])return!0x0;let _0x5847f0=findSharedChunks(_0x3a8963,_0x3f37da),_0x944750=new SpanCursor(_0x3a8963,_0x5847f0,0x0)['goto'](_0x40938f),_0x76da7e=new SpanCursor(_0x3f37da,_0x5847f0,0x0)['goto'](_0x40938f);for(;;){if(_0x944750['to']!=_0x76da7e['to']||!sameValues(_0x944750['active'],_0x76da7e['active'])||_0x944750['point']&&(!_0x76da7e['point']||!_0x944750['point']['eq'](_0x76da7e['point'])))return!0x1;if(_0x944750['to']>_0xaf1010)return!0x0;_0x944750['next'](),_0x76da7e['next']();}}static['spans'](_0x1d43a0,_0x51e236,_0x19420f,_0x451716,_0x1236ce=-0x1){let _0x25abfe=new SpanCursor(_0x1d43a0,null,_0x1236ce)['goto'](_0x51e236),_0x5bf7e6=_0x51e236,_0x10b463=_0x25abfe['openStart'];for(;;){let _0x5c32e1=Math['min'](_0x25abfe['to'],_0x19420f);if(_0x25abfe['point']){let _0x143e90=_0x25abfe['activeForPoint'](_0x25abfe['to']),_0x482d86=_0x25abfe['pointFrom']<_0x51e236?_0x143e90['length']+0x1:_0x25abfe['point']['startSide']<0x0?_0x143e90['length']:Math['min'](_0x143e90['length'],_0x10b463);_0x451716['point'](_0x5bf7e6,_0x5c32e1,_0x25abfe['point'],_0x143e90,_0x482d86,_0x25abfe['pointRank']),_0x10b463=Math['min'](_0x25abfe['openEnd'](_0x5c32e1),_0x143e90['length']);}else _0x5c32e1>_0x5bf7e6&&(_0x451716['span'](_0x5bf7e6,_0x5c32e1,_0x25abfe['active'],_0x10b463),_0x10b463=_0x25abfe['openEnd'](_0x5c32e1));if(_0x25abfe['to']>_0x19420f)return _0x10b463+(_0x25abfe['point']&&_0x25abfe['to']>_0x19420f?0x1:0x0);_0x5bf7e6=_0x25abfe['to'],_0x25abfe['next']();}}static['of'](_0x1a2d2e,_0xbcad8d=!0x1){let _0x64ffb2=new RangeSetBuilder();for(let _0x3f9f3c of _0x1a2d2e instanceof Range$1?[_0x1a2d2e]:_0xbcad8d?lazySort(_0x1a2d2e):_0x1a2d2e)_0x64ffb2['add'](_0x3f9f3c['from'],_0x3f9f3c['to'],_0x3f9f3c['value']);return _0x64ffb2['finish']();}static['join'](_0x4fb2a9){if(!_0x4fb2a9['length'])return RangeSet['empty'];let _0x296939=_0x4fb2a9[_0x4fb2a9['length']-0x1];for(let _0x5c7b09=_0x4fb2a9['length']-0x2;_0x5c7b09>=0x0;_0x5c7b09--)for(let _0x126422=_0x4fb2a9[_0x5c7b09];_0x126422!=RangeSet['empty'];_0x126422=_0x126422['nextLayer'])_0x296939=new RangeSet(_0x126422['chunkPos'],_0x126422['chunk'],_0x296939,Math['max'](_0x126422['maxPoint'],_0x296939['maxPoint']));return _0x296939;}}function lazySort(_0x126850){if(_0x126850['length']>0x1)for(let _0x55d874=_0x126850[0x0],_0x5c1b8a=0x1;_0x5c1b8a<_0x126850['length'];_0x5c1b8a++){let _0x4abcc6=_0x126850[_0x5c1b8a];if(cmpRange(_0x55d874,_0x4abcc6)>0x0)return _0x126850['slice']()['sort'](cmpRange);_0x55d874=_0x4abcc6;}return _0x126850;}RangeSet['empty']=new RangeSet([],[],null,-0x1),RangeSet['empty']['nextLayer']=RangeSet['empty'];class RangeSetBuilder{['finishChunk'](_0x451659){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,_0x451659&&(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'](_0x9bffa5,_0x43f1fd,_0x3df960){this['addInner'](_0x9bffa5,_0x43f1fd,_0x3df960)||(this['nextLayer']||(this['nextLayer']=new RangeSetBuilder()))['add'](_0x9bffa5,_0x43f1fd,_0x3df960);}['addInner'](_0x5c0d27,_0x437c08,_0x2ca8b9){let _0x46fdd4=_0x5c0d27-this['lastTo']||_0x2ca8b9['startSide']-this['last']['endSide'];if(_0x46fdd4<=0x0&&(_0x5c0d27-this['lastFrom']||_0x2ca8b9['startSide']-this['last']['startSide'])<0x0)throw new Error('Ranges\x20must\x20be\x20added\x20sorted\x20by\x20`from`\x20position\x20and\x20`startSide`');return!(_0x46fdd4<0x0)&&(0xfa==this['from']['length']&&this['finishChunk'](!0x0),this['chunkStart']<0x0&&(this['chunkStart']=_0x5c0d27),this['from']['push'](_0x5c0d27-this['chunkStart']),this['to']['push'](_0x437c08-this['chunkStart']),this['last']=_0x2ca8b9,this['lastFrom']=_0x5c0d27,this['lastTo']=_0x437c08,this['value']['push'](_0x2ca8b9),_0x2ca8b9['point']&&(this['maxPoint']=Math['max'](this['maxPoint'],_0x437c08-_0x5c0d27)),!0x0);}['addChunk'](_0x4e823a,_0x1b6568){if((_0x4e823a-this['lastTo']||_0x1b6568['value'][0x0]['startSide']-this['last']['endSide'])<0x0)return!0x1;this['from']['length']&&this['finishChunk'](!0x0),this['setMaxPoint']=Math['max'](this['setMaxPoint'],_0x1b6568['maxPoint']),this['chunks']['push'](_0x1b6568),this['chunkPos']['push'](_0x4e823a);let _0xaece14=_0x1b6568['value']['length']-0x1;return this['last']=_0x1b6568['value'][_0xaece14],this['lastFrom']=_0x1b6568['from'][_0xaece14]+_0x4e823a,this['lastTo']=_0x1b6568['to'][_0xaece14]+_0x4e823a,!0x0;}['finish'](){return this['finishInner'](RangeSet['empty']);}['finishInner'](_0x1a2993){if(this['from']['length']&&this['finishChunk'](!0x1),0x0==this['chunks']['length'])return _0x1a2993;let _0xa0cc2e=RangeSet['create'](this['chunkPos'],this['chunks'],this['nextLayer']?this['nextLayer']['finishInner'](_0x1a2993):_0x1a2993,this['setMaxPoint']);return this['from']=null,_0xa0cc2e;}}function findSharedChunks(_0x1a44f8,_0x465bce,_0x25ac6b){let _0x19445a=new Map();for(let _0x52c709 of _0x1a44f8)for(let _0x398a95=0x0;_0x398a95<_0x52c709['chunk']['length'];_0x398a95++)_0x52c709['chunk'][_0x398a95]['maxPoint']<=0x0&&_0x19445a['set'](_0x52c709['chunk'][_0x398a95],_0x52c709['chunkPos'][_0x398a95]);let _0x30c8bb=new Set();for(let _0x1f9fae of _0x465bce)for(let _0x40e158=0x0;_0x40e158<_0x1f9fae['chunk']['length'];_0x40e158++){let _0x5494bc=_0x19445a['get'](_0x1f9fae['chunk'][_0x40e158]);null==_0x5494bc||(_0x25ac6b?_0x25ac6b['mapPos'](_0x5494bc):_0x5494bc)!=_0x1f9fae['chunkPos'][_0x40e158]||(null==_0x25ac6b?void 0x0:_0x25ac6b['touchesRange'](_0x5494bc,_0x5494bc+_0x1f9fae['chunk'][_0x40e158]['length']))||_0x30c8bb['add'](_0x1f9fae['chunk'][_0x40e158]);}return _0x30c8bb;}class LayerCursor{constructor(_0x487adb,_0x25b260,_0x253c38,_0x267b9b=0x0){this['layer']=_0x487adb,this['skip']=_0x25b260,this['minPoint']=_0x253c38,this['rank']=_0x267b9b;}get['startSide'](){return this['value']?this['value']['startSide']:0x0;}get['endSide'](){return this['value']?this['value']['endSide']:0x0;}['goto'](_0x3b215a,_0x351d68=-0x3b9aca00){return this['chunkIndex']=this['rangeIndex']=0x0,this['gotoInner'](_0x3b215a,_0x351d68,!0x1),this;}['gotoInner'](_0x577da0,_0x3245c6,_0x1ddd21){for(;this['chunkIndex']<this['layer']['chunk']['length'];){let _0xb829c4=this['layer']['chunk'][this['chunkIndex']];if(!(this['skip']&&this['skip']['has'](_0xb829c4)||this['layer']['chunkEnd'](this['chunkIndex'])<_0x577da0||_0xb829c4['maxPoint']<this['minPoint']))break;this['chunkIndex']++,_0x1ddd21=!0x1;}if(this['chunkIndex']<this['layer']['chunk']['length']){let _0x30b630=this['layer']['chunk'][this['chunkIndex']]['findIndex'](_0x577da0-this['layer']['chunkPos'][this['chunkIndex']],_0x3245c6,!0x0);(!_0x1ddd21||this['rangeIndex']<_0x30b630)&&this['setRangeIndex'](_0x30b630);}this['next']();}['forward'](_0x7b802f,_0x2e6827){(this['to']-_0x7b802f||this['endSide']-_0x2e6827)<0x0&&this['gotoInner'](_0x7b802f,_0x2e6827,!0x0);}['next'](){for(;;){if(this['chunkIndex']==this['layer']['chunk']['length']){this['from']=this['to']=0x3b9aca00,this['value']=null;break;}{let _0x12a6c6=this['layer']['chunkPos'][this['chunkIndex']],_0x2adf03=this['layer']['chunk'][this['chunkIndex']],_0x790b2b=_0x12a6c6+_0x2adf03['from'][this['rangeIndex']];if(this['from']=_0x790b2b,this['to']=_0x12a6c6+_0x2adf03['to'][this['rangeIndex']],this['value']=_0x2adf03['value'][this['rangeIndex']],this['setRangeIndex'](this['rangeIndex']+0x1),this['minPoint']<0x0||this['value']['point']&&this['to']-this['from']>=this['minPoint'])break;}}}['setRangeIndex'](_0x29be3f){if(_0x29be3f==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']=_0x29be3f;}['nextChunk'](){this['chunkIndex']++,this['rangeIndex']=0x0,this['next']();}['compare'](_0x55fc29){return this['from']-_0x55fc29['from']||this['startSide']-_0x55fc29['startSide']||this['rank']-_0x55fc29['rank']||this['to']-_0x55fc29['to']||this['endSide']-_0x55fc29['endSide'];}}class HeapCursor{constructor(_0x396da8){this['heap']=_0x396da8;}static['from'](_0x2de06b,_0x35c820=null,_0x3fe179=-0x1){let _0x5135c9=[];for(let _0xa1e9a3=0x0;_0xa1e9a3<_0x2de06b['length'];_0xa1e9a3++)for(let _0x56b0a5=_0x2de06b[_0xa1e9a3];!_0x56b0a5['isEmpty'];_0x56b0a5=_0x56b0a5['nextLayer'])_0x56b0a5['maxPoint']>=_0x3fe179&&_0x5135c9['push'](new LayerCursor(_0x56b0a5,_0x35c820,_0x3fe179,_0xa1e9a3));return 0x1==_0x5135c9['length']?_0x5135c9[0x0]:new HeapCursor(_0x5135c9);}get['startSide'](){return this['value']?this['value']['startSide']:0x0;}['goto'](_0x1ff035,_0x456c4f=-0x3b9aca00){for(let _0x8e55bf of this['heap'])_0x8e55bf['goto'](_0x1ff035,_0x456c4f);for(let _0x1bbcda=this['heap']['length']>>0x1;_0x1bbcda>=0x0;_0x1bbcda--)heapBubble(this['heap'],_0x1bbcda);return this['next'](),this;}['forward'](_0x3b329f,_0x14bb75){for(let _0x3106b9 of this['heap'])_0x3106b9['forward'](_0x3b329f,_0x14bb75);for(let _0x5cbab4=this['heap']['length']>>0x1;_0x5cbab4>=0x0;_0x5cbab4--)heapBubble(this['heap'],_0x5cbab4);(this['to']-_0x3b329f||this['value']['endSide']-_0x14bb75)<0x0&&this['next']();}['next'](){if(0x0==this['heap']['length'])this['from']=this['to']=0x3b9aca00,this['value']=null,this['rank']=-0x1;else{let _0x31dfed=this['heap'][0x0];this['from']=_0x31dfed['from'],this['to']=_0x31dfed['to'],this['value']=_0x31dfed['value'],this['rank']=_0x31dfed['rank'],_0x31dfed['value']&&_0x31dfed['next'](),heapBubble(this['heap'],0x0);}}}function heapBubble(_0x1f1fc9,_0x46c64f){for(let _0x3ab506=_0x1f1fc9[_0x46c64f];;){let _0x3ff131=0x1+(_0x46c64f<<0x1);if(_0x3ff131>=_0x1f1fc9['length'])break;let _0x171106=_0x1f1fc9[_0x3ff131];if(_0x3ff131+0x1<_0x1f1fc9['length']&&_0x171106['compare'](_0x1f1fc9[_0x3ff131+0x1])>=0x0&&(_0x171106=_0x1f1fc9[_0x3ff131+0x1],_0x3ff131++),_0x3ab506['compare'](_0x171106)<0x0)break;_0x1f1fc9[_0x3ff131]=_0x3ab506,_0x1f1fc9[_0x46c64f]=_0x171106,_0x46c64f=_0x3ff131;}}class SpanCursor{constructor(_0x130bca,_0x8a29cd,_0x4b3936){this['minPoint']=_0x4b3936,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'](_0x130bca,_0x8a29cd,_0x4b3936);}['goto'](_0x2f66d2,_0x252d17=-0x3b9aca00){return this['cursor']['goto'](_0x2f66d2,_0x252d17),this['active']['length']=this['activeTo']['length']=this['activeRank']['length']=0x0,this['minActive']=-0x1,this['to']=_0x2f66d2,this['endSide']=_0x252d17,this['openStart']=-0x1,this['next'](),this;}['forward'](_0x2cba37,_0x487940){for(;this['minActive']>-0x1&&(this['activeTo'][this['minActive']]-_0x2cba37||this['active'][this['minActive']]['endSide']-_0x487940)<0x0;)this['removeActive'](this['minActive']);this['cursor']['forward'](_0x2cba37,_0x487940);}['removeActive'](_0xaf559f){remove(this['active'],_0xaf559f),remove(this['activeTo'],_0xaf559f),remove(this['activeRank'],_0xaf559f),this['minActive']=findMinIndex(this['active'],this['activeTo']);}['addActive'](_0x2be633){let _0x1a8677=0x0,{value:_0x2c0ef8,to:_0x1e20b1,rank:_0x3331d1}=this['cursor'];for(;_0x1a8677<this['activeRank']['length']&&(_0x3331d1-this['activeRank'][_0x1a8677]||_0x1e20b1-this['activeTo'][_0x1a8677])>0x0;)_0x1a8677++;insert(this['active'],_0x1a8677,_0x2c0ef8),insert(this['activeTo'],_0x1a8677,_0x1e20b1),insert(this['activeRank'],_0x1a8677,_0x3331d1),_0x2be633&&insert(_0x2be633,_0x1a8677,this['cursor']['from']),this['minActive']=findMinIndex(this['active'],this['activeTo']);}['next'](){let _0x1195ba=this['to'],_0x13a898=this['point'];this['point']=null;let _0x41600e=this['openStart']<0x0?[]:null;for(;;){let _0x58c4a4=this['minActive'];if(_0x58c4a4>-0x1&&(this['activeTo'][_0x58c4a4]-this['cursor']['from']||this['active'][_0x58c4a4]['endSide']-this['cursor']['startSide'])<0x0){if(this['activeTo'][_0x58c4a4]>_0x1195ba){this['to']=this['activeTo'][_0x58c4a4],this['endSide']=this['active'][_0x58c4a4]['endSide'];break;}this['removeActive'](_0x58c4a4),_0x41600e&&remove(_0x41600e,_0x58c4a4);}else{if(!this['cursor']['value']){this['to']=this['endSide']=0x3b9aca00;break;}if(this['cursor']['from']>_0x1195ba){this['to']=this['cursor']['from'],this['endSide']=this['cursor']['startSide'];break;}{let _0x2b6b8e=this['cursor']['value'];if(_0x2b6b8e['point']){if(!(_0x13a898&&this['cursor']['to']==this['to']&&this['cursor']['from']<this['cursor']['to'])){this['point']=_0x2b6b8e,this['pointFrom']=this['cursor']['from'],this['pointRank']=this['cursor']['rank'],this['to']=this['cursor']['to'],this['endSide']=_0x2b6b8e['endSide'],this['cursor']['next'](),this['forward'](this['to'],this['endSide']);break;}this['cursor']['next']();}else this['addActive'](_0x41600e),this['cursor']['next']();}}}if(_0x41600e){this['openStart']=0x0;for(let _0x5038a3=_0x41600e['length']-0x1;_0x5038a3>=0x0&&_0x41600e[_0x5038a3]<_0x1195ba;_0x5038a3--)this['openStart']++;}}['activeForPoint'](_0x51d4f8){if(!this['active']['length'])return this['active'];let _0x50d70b=[];for(let _0x18fccc=this['active']['length']-0x1;_0x18fccc>=0x0&&!(this['activeRank'][_0x18fccc]<this['pointRank']);_0x18fccc--)(this['activeTo'][_0x18fccc]>_0x51d4f8||this['activeTo'][_0x18fccc]==_0x51d4f8&&this['active'][_0x18fccc]['endSide']>=this['point']['endSide'])&&_0x50d70b['push'](this['active'][_0x18fccc]);return _0x50d70b['reverse']();}['openEnd'](_0x51e3ac){let _0x342b51=0x0;for(let _0x3cc5be=this['activeTo']['length']-0x1;_0x3cc5be>=0x0&&this['activeTo'][_0x3cc5be]>_0x51e3ac;_0x3cc5be--)_0x342b51++;return _0x342b51;}}function compare(_0x5c20bb,_0x4eb12a,_0x4652b5,_0x2e9bc2,_0x51900b,_0x2a3066){_0x5c20bb['goto'](_0x4eb12a),_0x4652b5['goto'](_0x2e9bc2);let _0xda66bd=_0x2e9bc2+_0x51900b,_0x3cbfb0=_0x2e9bc2,_0x43ec6f=_0x2e9bc2-_0x4eb12a;for(;;){let _0x3f517d=_0x5c20bb['to']+_0x43ec6f-_0x4652b5['to'],_0x507e5e=_0x3f517d||_0x5c20bb['endSide']-_0x4652b5['endSide'],_0x3d9207=_0x507e5e<0x0?_0x5c20bb['to']+_0x43ec6f:_0x4652b5['to'],_0x190fcb=Math['min'](_0x3d9207,_0xda66bd);if(_0x5c20bb['point']||_0x4652b5['point']?_0x5c20bb['point']&&_0x4652b5['point']&&(_0x5c20bb['point']==_0x4652b5['point']||_0x5c20bb['point']['eq'](_0x4652b5['point']))&&sameValues(_0x5c20bb['activeForPoint'](_0x5c20bb['to']),_0x4652b5['activeForPoint'](_0x4652b5['to']))||_0x2a3066['comparePoint'](_0x3cbfb0,_0x190fcb,_0x5c20bb['point'],_0x4652b5['point']):_0x190fcb>_0x3cbfb0&&!sameValues(_0x5c20bb['active'],_0x4652b5['active'])&&_0x2a3066['compareRange'](_0x3cbfb0,_0x190fcb,_0x5c20bb['active'],_0x4652b5['active']),_0x3d9207>_0xda66bd)break;(_0x3f517d||_0x5c20bb['openEnd']!=_0x4652b5['openEnd'])&&_0x2a3066['boundChange']&&_0x2a3066['boundChange'](_0x3d9207),_0x3cbfb0=_0x3d9207,_0x507e5e<=0x0&&_0x5c20bb['next'](),_0x507e5e>=0x0&&_0x4652b5['next']();}}function sameValues(_0x54f45a,_0x4d9035){if(_0x54f45a['length']!=_0x4d9035['length'])return!0x1;for(let _0x119f67=0x0;_0x119f67<_0x54f45a['length'];_0x119f67++)if(_0x54f45a[_0x119f67]!=_0x4d9035[_0x119f67]&&!_0x54f45a[_0x119f67]['eq'](_0x4d9035[_0x119f67]))return!0x1;return!0x0;}function remove(_0x1f4306,_0x41373e){for(let _0x5b6f6d=_0x41373e,_0x54c1d3=_0x1f4306['length']-0x1;_0x5b6f6d<_0x54c1d3;_0x5b6f6d++)_0x1f4306[_0x5b6f6d]=_0x1f4306[_0x5b6f6d+0x1];_0x1f4306['pop']();}function insert(_0x21d549,_0x55abc1,_0x1ae472){for(let _0x1b221d=_0x21d549['length']-0x1;_0x1b221d>=_0x55abc1;_0x1b221d--)_0x21d549[_0x1b221d+0x1]=_0x21d549[_0x1b221d];_0x21d549[_0x55abc1]=_0x1ae472;}function findMinIndex(_0x8ca34d,_0x282e2e){let _0x2b27dc=-0x1,_0x20cdd4=0x3b9aca00;for(let _0x5ae74d=0x0;_0x5ae74d<_0x282e2e['length'];_0x5ae74d++)(_0x282e2e[_0x5ae74d]-_0x20cdd4||_0x8ca34d[_0x5ae74d]['endSide']-_0x8ca34d[_0x2b27dc]['endSide'])<0x0&&(_0x2b27dc=_0x5ae74d,_0x20cdd4=_0x282e2e[_0x5ae74d]);return _0x2b27dc;}function countColumn(_0x2940a1,_0x5b2ffc,_0x39577d=_0x2940a1['length']){let _0x220a6d=0x0;for(let _0x65421c=0x0;_0x65421c<_0x39577d&&_0x65421c<_0x2940a1['length'];)0x9==_0x2940a1['charCodeAt'](_0x65421c)?(_0x220a6d+=_0x5b2ffc-_0x220a6d%_0x5b2ffc,_0x65421c++):(_0x220a6d++,_0x65421c=findClusterBreak(_0x2940a1,_0x65421c));return _0x220a6d;}function findColumn(_0x1a806c,_0xcec988,_0x318556,_0x552269){for(let _0x15bf0b=0x0,_0x27356b=0x0;;){if(_0x27356b>=_0xcec988)return _0x15bf0b;if(_0x15bf0b==_0x1a806c['length'])break;_0x27356b+=0x9==_0x1a806c['charCodeAt'](_0x15bf0b)?_0x318556-_0x27356b%_0x318556:0x1,_0x15bf0b=findClusterBreak(_0x1a806c,_0x15bf0b);}return!0x0===_0x552269?-0x1:_0x1a806c['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(_0x217b07,_0x259901){this['rules']=[];let {finish:_0x2a0db3}=_0x259901||{};function _0x3edb5e(_0x46e244){return/^@/['test'](_0x46e244)?[_0x46e244]:_0x46e244['split'](/,\s*/);}function _0x190591(_0x5e9fa5,_0x57c1e0,_0x557e8b,_0x40d5ef){let _0xb79ca2=[],_0x4e07f9=/^@(\w+)\b/['exec'](_0x5e9fa5[0x0]),_0xb13bd9=_0x4e07f9&&'keyframes'==_0x4e07f9[0x1];if(_0x4e07f9&&null==_0x57c1e0)return _0x557e8b['push'](_0x5e9fa5[0x0]+';');for(let _0x1832b8 in _0x57c1e0){let _0x1a89de=_0x57c1e0[_0x1832b8];if(/&/['test'](_0x1832b8))_0x190591(_0x1832b8['split'](/,\s*/)['map'](_0xa0d6dc=>_0x5e9fa5['map'](_0x2b22cb=>_0xa0d6dc['replace'](/&/,_0x2b22cb)))['reduce']((_0xca6e4b,_0x449410)=>_0xca6e4b['concat'](_0x449410)),_0x1a89de,_0x557e8b);else{if(_0x1a89de&&'object'==typeof _0x1a89de){if(!_0x4e07f9)throw new RangeError('The\x20value\x20of\x20a\x20property\x20('+_0x1832b8+')\x20should\x20be\x20a\x20primitive\x20value.');_0x190591(_0x3edb5e(_0x1832b8),_0x1a89de,_0xb79ca2,_0xb13bd9);}else null!=_0x1a89de&&_0xb79ca2['push'](_0x1832b8['replace'](/_.*/,'')['replace'](/[A-Z]/g,_0x5073c2=>'-'+_0x5073c2['toLowerCase']())+':\x20'+_0x1a89de+';');}}(_0xb79ca2['length']||_0xb13bd9)&&_0x557e8b['push']((!_0x2a0db3||_0x4e07f9||_0x40d5ef?_0x5e9fa5:_0x5e9fa5['map'](_0x2a0db3))['join'](',\x20')+'\x20{'+_0xb79ca2['join']('\x20')+'}');}for(let _0x19f11c in _0x217b07)_0x190591(_0x3edb5e(_0x19f11c),_0x217b07[_0x19f11c],this['rules']);}['getRules'](){return this['rules']['join']('\x0a');}static['newName'](){let _0x515323=top[COUNT]||0x1;return top[COUNT]=_0x515323+0x1,C+_0x515323['toString'](0x24);}static['mount'](_0x5e233a,_0x1c5c84,_0x3683d6){let _0x127cd2=_0x5e233a[SET],_0xa3c21e=_0x3683d6&&_0x3683d6['nonce'];_0x127cd2?_0xa3c21e&&_0x127cd2['setNonce'](_0xa3c21e):_0x127cd2=new StyleSet(_0x5e233a,_0xa3c21e),_0x127cd2['mount'](Array['isArray'](_0x1c5c84)?_0x1c5c84:[_0x1c5c84],_0x5e233a);}}let adoptedSet=new Map();class StyleSet{constructor(_0x318933,_0x2682df){let _0x54130a=_0x318933['ownerDocument']||_0x318933,_0x121069=_0x54130a['defaultView'];if(!_0x318933['head']&&_0x318933['adoptedStyleSheets']&&_0x121069['CSSStyleSheet']){let _0x1065c1=adoptedSet['get'](_0x54130a);if(_0x1065c1)return _0x318933[SET]=_0x1065c1;this['sheet']=new _0x121069['CSSStyleSheet'](),adoptedSet['set'](_0x54130a,this);}else this['styleTag']=_0x54130a['createElement']('style'),_0x2682df&&this['styleTag']['setAttribute']('nonce',_0x2682df);this['modules']=[],_0x318933[SET]=this;}['mount'](_0x1997c9,_0x3db4d){let _0x4f9ae0=this['sheet'],_0x54929d=0x0,_0x23216f=0x0;for(let _0xfcc77a=0x0;_0xfcc77a<_0x1997c9['length'];_0xfcc77a++){let _0x3a9636=_0x1997c9[_0xfcc77a],_0x4dab77=this['modules']['indexOf'](_0x3a9636);if(_0x4dab77<_0x23216f&&_0x4dab77>-0x1&&(this['modules']['splice'](_0x4dab77,0x1),_0x23216f--,_0x4dab77=-0x1),-0x1==_0x4dab77){if(this['modules']['splice'](_0x23216f++,0x0,_0x3a9636),_0x4f9ae0){for(let _0x1086bc=0x0;_0x1086bc<_0x3a9636['rules']['length'];_0x1086bc++)_0x4f9ae0['insertRule'](_0x3a9636['rules'][_0x1086bc],_0x54929d++);}}else{for(;_0x23216f<_0x4dab77;)_0x54929d+=this['modules'][_0x23216f++]['rules']['length'];_0x54929d+=_0x3a9636['rules']['length'],_0x23216f++;}}if(_0x4f9ae0)_0x3db4d['adoptedStyleSheets']['indexOf'](this['sheet'])<0x0&&(_0x3db4d['adoptedStyleSheets']=[this['sheet'],..._0x3db4d['adoptedStyleSheets']]);else{let _0x218588='';for(let _0x3ed3ec=0x0;_0x3ed3ec<this['modules']['length'];_0x3ed3ec++)_0x218588+=this['modules'][_0x3ed3ec]['getRules']()+'\x0a';this['styleTag']['textContent']=_0x218588;let _0x1d100e=_0x3db4d['head']||_0x3db4d;this['styleTag']['parentNode']!=_0x1d100e&&_0x1d100e['insertBefore'](this['styleTag'],_0x1d100e['firstChild']);}}['setNonce'](_0x37eae7){this['styleTag']&&this['styleTag']['getAttribute']('nonce')!=_0x37eae7&&this['styleTag']['setAttribute']('nonce',_0x37eae7);}}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(_0x1d8d0f){var _0xfc5c7e=!(mac&&_0x1d8d0f['metaKey']&&_0x1d8d0f['shiftKey']&&!_0x1d8d0f['ctrlKey']&&!_0x1d8d0f['altKey']||ie$1&&_0x1d8d0f['shiftKey']&&_0x1d8d0f['key']&&0x1==_0x1d8d0f['key']['length']||'Unidentified'==_0x1d8d0f['key'])&&_0x1d8d0f['key']||(_0x1d8d0f['shiftKey']?shift:base$2)[_0x1d8d0f['keyCode']]||_0x1d8d0f['key']||'Unidentified';return'Esc'==_0xfc5c7e&&(_0xfc5c7e='Escape'),'Del'==_0xfc5c7e&&(_0xfc5c7e='Delete'),'Left'==_0xfc5c7e&&(_0xfc5c7e='ArrowLeft'),'Up'==_0xfc5c7e&&(_0xfc5c7e='ArrowUp'),'Right'==_0xfc5c7e&&(_0xfc5c7e='ArrowRight'),'Down'==_0xfc5c7e&&(_0xfc5c7e='ArrowDown'),_0xfc5c7e;}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(_0x13413b){let _0x4b5d46;return _0x4b5d46=0xb==_0x13413b['nodeType']?_0x13413b['getSelection']?_0x13413b:_0x13413b['ownerDocument']:_0x13413b,_0x4b5d46['getSelection']();}function contains(_0x4f1a80,_0x472817){return!!_0x472817&&(_0x4f1a80==_0x472817||_0x4f1a80['contains'](0x1!=_0x472817['nodeType']?_0x472817['parentNode']:_0x472817));}function hasSelection(_0x2cf5d7,_0x562444){if(!_0x562444['anchorNode'])return!0x1;try{return contains(_0x2cf5d7,_0x562444['anchorNode']);}catch(_0x176443){return!0x1;}}function clientRectsFor(_0x5dc500){return 0x3==_0x5dc500['nodeType']?textRange(_0x5dc500,0x0,_0x5dc500['nodeValue']['length'])['getClientRects']():0x1==_0x5dc500['nodeType']?_0x5dc500['getClientRects']():[];}function isEquivalentPosition(_0x4b921a,_0x3e50a5,_0x54fb37,_0x128bb1){return!!_0x54fb37&&(scanFor(_0x4b921a,_0x3e50a5,_0x54fb37,_0x128bb1,-0x1)||scanFor(_0x4b921a,_0x3e50a5,_0x54fb37,_0x128bb1,0x1));}function domIndex(_0x12b382){for(var _0x42f68a=0x0;;_0x42f68a++)if(!(_0x12b382=_0x12b382['previousSibling']))return _0x42f68a;}function isBlockElement(_0x32b2a0){return 0x1==_0x32b2a0['nodeType']&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/['test'](_0x32b2a0['nodeName']);}function scanFor(_0x4f003c,_0xaa451c,_0x4f491d,_0x5c1798,_0x5135f1){for(;;){if(_0x4f003c==_0x4f491d&&_0xaa451c==_0x5c1798)return!0x0;if(_0xaa451c==(_0x5135f1<0x0?0x0:maxOffset(_0x4f003c))){if('DIV'==_0x4f003c['nodeName'])return!0x1;let _0x3f4299=_0x4f003c['parentNode'];if(!_0x3f4299||0x1!=_0x3f4299['nodeType'])return!0x1;_0xaa451c=domIndex(_0x4f003c)+(_0x5135f1<0x0?0x0:0x1),_0x4f003c=_0x3f4299;}else{if(0x1!=_0x4f003c['nodeType'])return!0x1;if(0x1==(_0x4f003c=_0x4f003c['childNodes'][_0xaa451c+(_0x5135f1<0x0?-0x1:0x0)])['nodeType']&&'false'==_0x4f003c['contentEditable'])return!0x1;_0xaa451c=_0x5135f1<0x0?maxOffset(_0x4f003c):0x0;}}}function maxOffset(_0x1e94d2){return 0x3==_0x1e94d2['nodeType']?_0x1e94d2['nodeValue']['length']:_0x1e94d2['childNodes']['length'];}function flattenRect(_0xf6240f,_0x2fc636){let _0x2ad368=_0x2fc636?_0xf6240f['left']:_0xf6240f['right'];return{'left':_0x2ad368,'right':_0x2ad368,'top':_0xf6240f['top'],'bottom':_0xf6240f['bottom']};}function windowRect(_0x112254){let _0x34aeb6=_0x112254['visualViewport'];return _0x34aeb6?{'left':0x0,'right':_0x34aeb6['width'],'top':0x0,'bottom':_0x34aeb6['height']}:{'left':0x0,'right':_0x112254['innerWidth'],'top':0x0,'bottom':_0x112254['innerHeight']};}function getScale(_0x57bb18,_0xd5380a){let _0xe7fa55=_0xd5380a['width']/_0x57bb18['offsetWidth'],_0x5578e5=_0xd5380a['height']/_0x57bb18['offsetHeight'];return(_0xe7fa55>0.995&&_0xe7fa55<1.005||!isFinite(_0xe7fa55)||Math['abs'](_0xd5380a['width']-_0x57bb18['offsetWidth'])<0x1)&&(_0xe7fa55=0x1),(_0x5578e5>0.995&&_0x5578e5<1.005||!isFinite(_0x5578e5)||Math['abs'](_0xd5380a['height']-_0x57bb18['offsetHeight'])<0x1)&&(_0x5578e5=0x1),{'scaleX':_0xe7fa55,'scaleY':_0x5578e5};}function scrollRectIntoView(_0xe4c1e8,_0x464c54,_0x4d6d3e,_0x51f941,_0x9d0a28,_0x50dd5c,_0xd337e0,_0x37073b){let _0x1035cf=_0xe4c1e8['ownerDocument'],_0xab4e20=_0x1035cf['defaultView']||window;for(let _0x1d62bc=_0xe4c1e8,_0x5cb568=!0x1;_0x1d62bc&&!_0x5cb568;)if(0x1==_0x1d62bc['nodeType']){let _0xc06b4f,_0x257784=_0x1d62bc==_0x1035cf['body'],_0x564d32=0x1,_0x17696a=0x1;if(_0x257784)_0xc06b4f=windowRect(_0xab4e20);else{if(/^(fixed|sticky)$/['test'](getComputedStyle(_0x1d62bc)['position'])&&(_0x5cb568=!0x0),_0x1d62bc['scrollHeight']<=_0x1d62bc['clientHeight']&&_0x1d62bc['scrollWidth']<=_0x1d62bc['clientWidth']){_0x1d62bc=_0x1d62bc['assignedSlot']||_0x1d62bc['parentNode'];continue;}let _0x456b60=_0x1d62bc['getBoundingClientRect']();({scaleX:_0x564d32,scaleY:_0x17696a}=getScale(_0x1d62bc,_0x456b60),_0xc06b4f={'left':_0x456b60['left'],'right':_0x456b60['left']+_0x1d62bc['clientWidth']*_0x564d32,'top':_0x456b60['top'],'bottom':_0x456b60['top']+_0x1d62bc['clientHeight']*_0x17696a});}let _0x2b7bf8=0x0,_0x3da62b=0x0;if('nearest'==_0x9d0a28)_0x464c54['top']<_0xc06b4f['top']?(_0x3da62b=_0x464c54['top']-(_0xc06b4f['top']+_0xd337e0),_0x4d6d3e>0x0&&_0x464c54['bottom']>_0xc06b4f['bottom']+_0x3da62b&&(_0x3da62b=_0x464c54['bottom']-_0xc06b4f['bottom']+_0xd337e0)):_0x464c54['bottom']>_0xc06b4f['bottom']&&(_0x3da62b=_0x464c54['bottom']-_0xc06b4f['bottom']+_0xd337e0,_0x4d6d3e<0x0&&_0x464c54['top']-_0x3da62b<_0xc06b4f['top']&&(_0x3da62b=_0x464c54['top']-(_0xc06b4f['top']+_0xd337e0)));else{let _0x2ab5b2=_0x464c54['bottom']-_0x464c54['top'],_0x598cc3=_0xc06b4f['bottom']-_0xc06b4f['top'];_0x3da62b=('center'==_0x9d0a28&&_0x2ab5b2<=_0x598cc3?_0x464c54['top']+_0x2ab5b2/0x2-_0x598cc3/0x2:'start'==_0x9d0a28||'center'==_0x9d0a28&&_0x4d6d3e<0x0?_0x464c54['top']-_0xd337e0:_0x464c54['bottom']-_0x598cc3+_0xd337e0)-_0xc06b4f['top'];}if('nearest'==_0x51f941)_0x464c54['left']<_0xc06b4f['left']?(_0x2b7bf8=_0x464c54['left']-(_0xc06b4f['left']+_0x50dd5c),_0x4d6d3e>0x0&&_0x464c54['right']>_0xc06b4f['right']+_0x2b7bf8&&(_0x2b7bf8=_0x464c54['right']-_0xc06b4f['right']+_0x50dd5c)):_0x464c54['right']>_0xc06b4f['right']&&(_0x2b7bf8=_0x464c54['right']-_0xc06b4f['right']+_0x50dd5c,_0x4d6d3e<0x0&&_0x464c54['left']<_0xc06b4f['left']+_0x2b7bf8&&(_0x2b7bf8=_0x464c54['left']-(_0xc06b4f['left']+_0x50dd5c)));else _0x2b7bf8=('center'==_0x51f941?_0x464c54['left']+(_0x464c54['right']-_0x464c54['left'])/0x2-(_0xc06b4f['right']-_0xc06b4f['left'])/0x2:'start'==_0x51f941==_0x37073b?_0x464c54['left']-_0x50dd5c:_0x464c54['right']-(_0xc06b4f['right']-_0xc06b4f['left'])+_0x50dd5c)-_0xc06b4f['left'];if(_0x2b7bf8||_0x3da62b){if(_0x257784)_0xab4e20['scrollBy'](_0x2b7bf8,_0x3da62b);else{let _0x5b5973=0x0,_0x47944a=0x0;if(_0x3da62b){let _0x1e390c=_0x1d62bc['scrollTop'];_0x1d62bc['scrollTop']+=_0x3da62b/_0x17696a,_0x47944a=(_0x1d62bc['scrollTop']-_0x1e390c)*_0x17696a;}if(_0x2b7bf8){let _0x4c1df7=_0x1d62bc['scrollLeft'];_0x1d62bc['scrollLeft']+=_0x2b7bf8/_0x564d32,_0x5b5973=(_0x1d62bc['scrollLeft']-_0x4c1df7)*_0x564d32;}_0x464c54={'left':_0x464c54['left']-_0x5b5973,'top':_0x464c54['top']-_0x47944a,'right':_0x464c54['right']-_0x5b5973,'bottom':_0x464c54['bottom']-_0x47944a},_0x5b5973&&Math['abs'](_0x5b5973-_0x2b7bf8)<0x1&&(_0x51f941='nearest'),_0x47944a&&Math['abs'](_0x47944a-_0x3da62b)<0x1&&(_0x9d0a28='nearest');}}if(_0x257784)break;(_0x464c54['top']<_0xc06b4f['top']||_0x464c54['bottom']>_0xc06b4f['bottom']||_0x464c54['left']<_0xc06b4f['left']||_0x464c54['right']>_0xc06b4f['right'])&&(_0x464c54={'left':Math['max'](_0x464c54['left'],_0xc06b4f['left']),'right':Math['min'](_0x464c54['right'],_0xc06b4f['right']),'top':Math['max'](_0x464c54['top'],_0xc06b4f['top']),'bottom':Math['min'](_0x464c54['bottom'],_0xc06b4f['bottom'])}),_0x1d62bc=_0x1d62bc['assignedSlot']||_0x1d62bc['parentNode'];}else{if(0xb!=_0x1d62bc['nodeType'])break;_0x1d62bc=_0x1d62bc['host'];}}function scrollableParents(_0x237264){let _0x4e7a01,_0x566760,_0x528141=_0x237264['ownerDocument'];for(let _0x321258=_0x237264['parentNode'];_0x321258&&!(_0x321258==_0x528141['body']||_0x4e7a01&&_0x566760);)if(0x1==_0x321258['nodeType'])!_0x566760&&_0x321258['scrollHeight']>_0x321258['clientHeight']&&(_0x566760=_0x321258),!_0x4e7a01&&_0x321258['scrollWidth']>_0x321258['clientWidth']&&(_0x4e7a01=_0x321258),_0x321258=_0x321258['assignedSlot']||_0x321258['parentNode'];else{if(0xb!=_0x321258['nodeType'])break;_0x321258=_0x321258['host'];}return{'x':_0x4e7a01,'y':_0x566760};}class DOMSelectionState{constructor(){this['anchorNode']=null,this['anchorOffset']=0x0,this['focusNode']=null,this['focusOffset']=0x0;}['eq'](_0xfdb696){return this['anchorNode']==_0xfdb696['anchorNode']&&this['anchorOffset']==_0xfdb696['anchorOffset']&&this['focusNode']==_0xfdb696['focusNode']&&this['focusOffset']==_0xfdb696['focusOffset'];}['setRange'](_0x2cdf30){let {anchorNode:_0x13cb2b,focusNode:_0xb80a5f}=_0x2cdf30;this['set'](_0x13cb2b,Math['min'](_0x2cdf30['anchorOffset'],_0x13cb2b?maxOffset(_0x13cb2b):0x0),_0xb80a5f,Math['min'](_0x2cdf30['focusOffset'],_0xb80a5f?maxOffset(_0xb80a5f):0x0));}['set'](_0x139e18,_0x2dc9a7,_0x510648,_0x4f8b73){this['anchorNode']=_0x139e18,this['anchorOffset']=_0x2dc9a7,this['focusNode']=_0x510648,this['focusOffset']=_0x4f8b73;}}let preventScrollSupported=null,scratchRange;function focusPreventScroll(_0x528caa){if(_0x528caa['setActive'])return _0x528caa['setActive']();if(preventScrollSupported)return _0x528caa['focus'](preventScrollSupported);let _0x5e9f0b=[];for(let _0x208f44=_0x528caa;_0x208f44&&(_0x5e9f0b['push'](_0x208f44,_0x208f44['scrollTop'],_0x208f44['scrollLeft']),_0x208f44!=_0x208f44['ownerDocument']);_0x208f44=_0x208f44['parentNode']);if(_0x528caa['focus'](null==preventScrollSupported?{get 'preventScroll'(){return preventScrollSupported={'preventScroll':!0x0},!0x0;}}:void 0x0),!preventScrollSupported){preventScrollSupported=!0x1;for(let _0x4ae668=0x0;_0x4ae668<_0x5e9f0b['length'];){let _0x1bc368=_0x5e9f0b[_0x4ae668++],_0x1aaf33=_0x5e9f0b[_0x4ae668++],_0x1a8298=_0x5e9f0b[_0x4ae668++];_0x1bc368['scrollTop']!=_0x1aaf33&&(_0x1bc368['scrollTop']=_0x1aaf33),_0x1bc368['scrollLeft']!=_0x1a8298&&(_0x1bc368['scrollLeft']=_0x1a8298);}}}function textRange(_0x5a9562,_0xe34e84,_0x50e6c4=_0xe34e84){let _0x329910=scratchRange||(scratchRange=document['createRange']());return _0x329910['setEnd'](_0x5a9562,_0x50e6c4),_0x329910['setStart'](_0x5a9562,_0xe34e84),_0x329910;}function dispatchKey(_0x4c0b97,_0x2ddcf7,_0x52c495,_0x2399f3){let _0x44b207={'key':_0x2ddcf7,'code':_0x2ddcf7,'keyCode':_0x52c495,'which':_0x52c495,'cancelable':!0x0};_0x2399f3&&({altKey:_0x44b207['altKey'],ctrlKey:_0x44b207['ctrlKey'],shiftKey:_0x44b207['shiftKey'],metaKey:_0x44b207['metaKey']}=_0x2399f3);let _0x3d725a=new KeyboardEvent('keydown',_0x44b207);_0x3d725a['synthetic']=!0x0,_0x4c0b97['dispatchEvent'](_0x3d725a);let _0x1e77e7=new KeyboardEvent('keyup',_0x44b207);return _0x1e77e7['synthetic']=!0x0,_0x4c0b97['dispatchEvent'](_0x1e77e7),_0x3d725a['defaultPrevented']||_0x1e77e7['defaultPrevented'];}function getRoot(_0x440f03){for(;_0x440f03;){if(_0x440f03&&(0x9==_0x440f03['nodeType']||0xb==_0x440f03['nodeType']&&_0x440f03['host']))return _0x440f03;_0x440f03=_0x440f03['assignedSlot']||_0x440f03['parentNode'];}return null;}function clearAttributes(_0x222e3d){for(;_0x222e3d['attributes']['length'];)_0x222e3d['removeAttributeNode'](_0x222e3d['attributes'][0x0]);}function atElementStart(_0x3f0948,_0x1afedd){let _0x26d9f2=_0x1afedd['focusNode'],_0x5ad57b=_0x1afedd['focusOffset'];if(!_0x26d9f2||_0x1afedd['anchorNode']!=_0x26d9f2||_0x1afedd['anchorOffset']!=_0x5ad57b)return!0x1;for(_0x5ad57b=Math['min'](_0x5ad57b,maxOffset(_0x26d9f2));;)if(_0x5ad57b){if(0x1!=_0x26d9f2['nodeType'])return!0x1;let _0x37d145=_0x26d9f2['childNodes'][_0x5ad57b-0x1];'false'==_0x37d145['contentEditable']?_0x5ad57b--:(_0x26d9f2=_0x37d145,_0x5ad57b=maxOffset(_0x26d9f2));}else{if(_0x26d9f2==_0x3f0948)return!0x0;_0x5ad57b=domIndex(_0x26d9f2),_0x26d9f2=_0x26d9f2['parentNode'];}}function isScrolledToBottom(_0x14ec3b){return _0x14ec3b['scrollTop']>Math['max'](0x1,_0x14ec3b['scrollHeight']-_0x14ec3b['clientHeight']-0x4);}function textNodeBefore(_0x45dfec,_0x4f1dee){for(let _0x16d190=_0x45dfec,_0x166288=_0x4f1dee;;){if(0x3==_0x16d190['nodeType']&&_0x166288>0x0)return{'node':_0x16d190,'offset':_0x166288};if(0x1==_0x16d190['nodeType']&&_0x166288>0x0){if('false'==_0x16d190['contentEditable'])return null;_0x16d190=_0x16d190['childNodes'][_0x166288-0x1],_0x166288=maxOffset(_0x16d190);}else{if(!_0x16d190['parentNode']||isBlockElement(_0x16d190))return null;_0x166288=domIndex(_0x16d190),_0x16d190=_0x16d190['parentNode'];}}}function textNodeAfter(_0x4217c,_0x38689a){for(let _0x21e97e=_0x4217c,_0x3d3398=_0x38689a;;){if(0x3==_0x21e97e['nodeType']&&_0x3d3398<_0x21e97e['nodeValue']['length'])return{'node':_0x21e97e,'offset':_0x3d3398};if(0x1==_0x21e97e['nodeType']&&_0x3d3398<_0x21e97e['childNodes']['length']){if('false'==_0x21e97e['contentEditable'])return null;_0x21e97e=_0x21e97e['childNodes'][_0x3d3398],_0x3d3398=0x0;}else{if(!_0x21e97e['parentNode']||isBlockElement(_0x21e97e))return null;_0x3d3398=domIndex(_0x21e97e)+0x1,_0x21e97e=_0x21e97e['parentNode'];}}}browser['safari']&&browser['safari_version']>=0x1a&&(preventScrollSupported=!0x1);class DOMPos{constructor(_0x5864d3,_0x36d72c,_0x3607c4=!0x0){this['node']=_0x5864d3,this['offset']=_0x36d72c,this['precise']=_0x3607c4;}static['before'](_0x18917d,_0x2e0dfc){return new DOMPos(_0x18917d['parentNode'],domIndex(_0x18917d),_0x2e0dfc);}static['after'](_0x2aeb67,_0x5cea97){return new DOMPos(_0x2aeb67['parentNode'],domIndex(_0x2aeb67)+0x1,_0x5cea97);}}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'](_0x4a6d28){let _0x2c0960=this['posAtStart'];for(let _0x4c7a7a of this['children']){if(_0x4c7a7a==_0x4a6d28)return _0x2c0960;_0x2c0960+=_0x4c7a7a['length']+_0x4c7a7a['breakAfter'];}throw new RangeError('Invalid\x20child\x20in\x20posBefore');}['posAfter'](_0x2a6e94){return this['posBefore'](_0x2a6e94)+_0x2a6e94['length'];}['sync'](_0xcc88d9,_0x248fb2){if(0x2&this['flags']){let _0x3a8a55,_0x53b055=this['dom'],_0x5532d2=null;for(let _0x4e6cbb of this['children']){if(0x7&_0x4e6cbb['flags']){if(!_0x4e6cbb['dom']&&(_0x3a8a55=_0x5532d2?_0x5532d2['nextSibling']:_0x53b055['firstChild'])){let _0x2aec72=ContentView['get'](_0x3a8a55);(!_0x2aec72||!_0x2aec72['parent']&&_0x2aec72['canReuseDOM'](_0x4e6cbb))&&_0x4e6cbb['reuseDOM'](_0x3a8a55);}_0x4e6cbb['sync'](_0xcc88d9,_0x248fb2),_0x4e6cbb['flags']&=-0x8;}if(_0x3a8a55=_0x5532d2?_0x5532d2['nextSibling']:_0x53b055['firstChild'],_0x248fb2&&!_0x248fb2['written']&&_0x248fb2['node']==_0x53b055&&_0x3a8a55!=_0x4e6cbb['dom']&&(_0x248fb2['written']=!0x0),_0x4e6cbb['dom']['parentNode']==_0x53b055){for(;_0x3a8a55&&_0x3a8a55!=_0x4e6cbb['dom'];)_0x3a8a55=rm$1(_0x3a8a55);}else _0x53b055['insertBefore'](_0x4e6cbb['dom'],_0x3a8a55);_0x5532d2=_0x4e6cbb['dom'];}for(_0x3a8a55=_0x5532d2?_0x5532d2['nextSibling']:_0x53b055['firstChild'],_0x3a8a55&&_0x248fb2&&_0x248fb2['node']==_0x53b055&&(_0x248fb2['written']=!0x0);_0x3a8a55;)_0x3a8a55=rm$1(_0x3a8a55);}else{if(0x1&this['flags']){for(let _0x5ca172 of this['children'])0x7&_0x5ca172['flags']&&(_0x5ca172['sync'](_0xcc88d9,_0x248fb2),_0x5ca172['flags']&=-0x8);}}}['reuseDOM'](_0x8745bc){}['localPosFromDOM'](_0x578087,_0x6baf8a){let _0x236331;if(_0x578087==this['dom'])_0x236331=this['dom']['childNodes'][_0x6baf8a];else{let _0x780e12=0x0==maxOffset(_0x578087)?0x0:0x0==_0x6baf8a?-0x1:0x1;for(;;){let _0x8575e2=_0x578087['parentNode'];if(_0x8575e2==this['dom'])break;0x0==_0x780e12&&_0x8575e2['firstChild']!=_0x8575e2['lastChild']&&(_0x780e12=_0x578087==_0x8575e2['firstChild']?-0x1:0x1),_0x578087=_0x8575e2;}_0x236331=_0x780e12<0x0?_0x578087:_0x578087['nextSibling'];}if(_0x236331==this['dom']['firstChild'])return 0x0;for(;_0x236331&&!ContentView['get'](_0x236331);)_0x236331=_0x236331['nextSibling'];if(!_0x236331)return this['length'];for(let _0x1aba91=0x0,_0x4165fe=0x0;;_0x1aba91++){let _0x2a3b0e=this['children'][_0x1aba91];if(_0x2a3b0e['dom']==_0x236331)return _0x4165fe;_0x4165fe+=_0x2a3b0e['length']+_0x2a3b0e['breakAfter'];}}['domBoundsAround'](_0x389bca,_0x3fcf99,_0x2933c3=0x0){let _0x12298c=-0x1,_0x1eb575=-0x1,_0x4d853=-0x1,_0x3c65ab=-0x1;for(let _0x1dabe0=0x0,_0x20e772=_0x2933c3,_0x4b3845=_0x2933c3;_0x1dabe0<this['children']['length'];_0x1dabe0++){let _0x440f1d=this['children'][_0x1dabe0],_0x39db8e=_0x20e772+_0x440f1d['length'];if(_0x20e772<_0x389bca&&_0x39db8e>_0x3fcf99)return _0x440f1d['domBoundsAround'](_0x389bca,_0x3fcf99,_0x20e772);if(_0x39db8e>=_0x389bca&&-0x1==_0x12298c&&(_0x12298c=_0x1dabe0,_0x1eb575=_0x20e772),_0x20e772>_0x3fcf99&&_0x440f1d['dom']['parentNode']==this['dom']){_0x4d853=_0x1dabe0,_0x3c65ab=_0x4b3845;break;}_0x4b3845=_0x39db8e,_0x20e772=_0x39db8e+_0x440f1d['breakAfter'];}return{'from':_0x1eb575,'to':_0x3c65ab<0x0?_0x2933c3+this['length']:_0x3c65ab,'startDOM':(_0x12298c?this['children'][_0x12298c-0x1]['dom']['nextSibling']:null)||this['dom']['firstChild'],'endDOM':_0x4d853<this['children']['length']&&_0x4d853>=0x0?this['children'][_0x4d853]['dom']:null};}['markDirty'](_0x48a573=!0x1){this['flags']|=0x2,this['markParentsDirty'](_0x48a573);}['markParentsDirty'](_0x3ccb52){for(let _0x243bef=this['parent'];_0x243bef;_0x243bef=_0x243bef['parent']){if(_0x3ccb52&&(_0x243bef['flags']|=0x2),0x1&_0x243bef['flags'])return;_0x243bef['flags']|=0x1,_0x3ccb52=!0x1;}}['setParent'](_0x1782e3){this['parent']!=_0x1782e3&&(this['parent']=_0x1782e3,0x7&this['flags']&&this['markParentsDirty'](!0x0));}['setDOM'](_0x542293){this['dom']!=_0x542293&&(this['dom']&&(this['dom']['cmView']=null),this['dom']=_0x542293,_0x542293['cmView']=this);}get['rootView'](){for(let _0x5427ae=this;;){let _0x403911=_0x5427ae['parent'];if(!_0x403911)return _0x5427ae;_0x5427ae=_0x403911;}}['replaceChildren'](_0xfd0c86,_0x383e8d,_0x1042d5=noChildren){this['markDirty']();for(let _0x463153=_0xfd0c86;_0x463153<_0x383e8d;_0x463153++){let _0x17f98c=this['children'][_0x463153];_0x17f98c['parent']==this&&_0x1042d5['indexOf'](_0x17f98c)<0x0&&_0x17f98c['destroy']();}_0x1042d5['length']<0xfa?this['children']['splice'](_0xfd0c86,_0x383e8d-_0xfd0c86,..._0x1042d5):this['children']=[]['concat'](this['children']['slice'](0x0,_0xfd0c86),_0x1042d5,this['children']['slice'](_0x383e8d));for(let _0x5b6372=0x0;_0x5b6372<_0x1042d5['length'];_0x5b6372++)_0x1042d5[_0x5b6372]['setParent'](this);}['ignoreMutation'](_0x4b8a52){return!0x1;}['ignoreEvent'](_0x379f56){return!0x1;}['childCursor'](_0x64f80f=this['length']){return new ChildCursor(this['children'],_0x64f80f,this['children']['length']);}['childPos'](_0x56129d,_0x2178d0=0x1){return this['childCursor']()['findPos'](_0x56129d,_0x2178d0);}['toString'](){let _0x38b814=this['constructor']['name']['replace']('View','');return _0x38b814+(this['children']['length']?'('+this['children']['join']()+')':this['length']?'['+('Text'==_0x38b814?this['text']:this['length'])+']':'')+(this['breakAfter']?'#':'');}static['get'](_0x24aba0){return _0x24aba0['cmView'];}get['isEditable'](){return!0x0;}get['isWidget'](){return!0x1;}get['isHidden'](){return!0x1;}['merge'](_0x352240,_0x1c7293,_0x4719a3,_0x129671,_0x4bb3a2,_0x3a8f73){return!0x1;}['become'](_0x54101d){return!0x1;}['canReuseDOM'](_0x2e4af5){return _0x2e4af5['constructor']==this['constructor']&&!(0x8&(this['flags']|_0x2e4af5['flags']));}['getSide'](){return 0x0;}['destroy'](){for(let _0x2607c5 of this['children'])_0x2607c5['parent']==this&&_0x2607c5['destroy']();this['parent']=null;}}function rm$1(_0x4c9590){let _0x25736b=_0x4c9590['nextSibling'];return _0x4c9590['parentNode']['removeChild'](_0x4c9590),_0x25736b;}ContentView['prototype']['breakAfter']=0x0;class ChildCursor{constructor(_0x1af5b9,_0x80731,_0x8c9e18){this['children']=_0x1af5b9,this['pos']=_0x80731,this['i']=_0x8c9e18,this['off']=0x0;}['findPos'](_0x2ac939,_0x77a953=0x1){for(;;){if(_0x2ac939>this['pos']||_0x2ac939==this['pos']&&(_0x77a953>0x0||0x0==this['i']||this['children'][this['i']-0x1]['breakAfter']))return this['off']=_0x2ac939-this['pos'],this;let _0x17a30e=this['children'][--this['i']];this['pos']-=_0x17a30e['length']+_0x17a30e['breakAfter'];}}}function replaceRange(_0x38b39a,_0x15a35c,_0x38ab79,_0x486f51,_0x1cc73d,_0x4c4327,_0x4e2bc2,_0x65e2bd,_0x562f09){let {children:_0x587702}=_0x38b39a,_0x3a1cc6=_0x587702['length']?_0x587702[_0x15a35c]:null,_0x4c9f85=_0x4c4327['length']?_0x4c4327[_0x4c4327['length']-0x1]:null,_0x1e8e38=_0x4c9f85?_0x4c9f85['breakAfter']:_0x4e2bc2;if(!(_0x15a35c==_0x486f51&&_0x3a1cc6&&!_0x4e2bc2&&!_0x1e8e38&&_0x4c4327['length']<0x2&&_0x3a1cc6['merge'](_0x38ab79,_0x1cc73d,_0x4c4327['length']?_0x4c9f85:null,0x0==_0x38ab79,_0x65e2bd,_0x562f09))){if(_0x486f51<_0x587702['length']){let _0x2d929a=_0x587702[_0x486f51];_0x2d929a&&(_0x1cc73d<_0x2d929a['length']||_0x2d929a['breakAfter']&&(null==_0x4c9f85?void 0x0:_0x4c9f85['breakAfter']))?(_0x15a35c==_0x486f51&&(_0x2d929a=_0x2d929a['split'](_0x1cc73d),_0x1cc73d=0x0),!_0x1e8e38&&_0x4c9f85&&_0x2d929a['merge'](0x0,_0x1cc73d,_0x4c9f85,!0x0,0x0,_0x562f09)?_0x4c4327[_0x4c4327['length']-0x1]=_0x2d929a:((_0x1cc73d||_0x2d929a['children']['length']&&!_0x2d929a['children'][0x0]['length'])&&_0x2d929a['merge'](0x0,_0x1cc73d,null,!0x1,0x0,_0x562f09),_0x4c4327['push'](_0x2d929a))):(null==_0x2d929a?void 0x0:_0x2d929a['breakAfter'])&&(_0x4c9f85?_0x4c9f85['breakAfter']=0x1:_0x4e2bc2=0x1),_0x486f51++;}for(_0x3a1cc6&&(_0x3a1cc6['breakAfter']=_0x4e2bc2,_0x38ab79>0x0&&(!_0x4e2bc2&&_0x4c4327['length']&&_0x3a1cc6['merge'](_0x38ab79,_0x3a1cc6['length'],_0x4c4327[0x0],!0x1,_0x65e2bd,0x0)?_0x3a1cc6['breakAfter']=_0x4c4327['shift']()['breakAfter']:(_0x38ab79<_0x3a1cc6['length']||_0x3a1cc6['children']['length']&&0x0==_0x3a1cc6['children'][_0x3a1cc6['children']['length']-0x1]['length'])&&_0x3a1cc6['merge'](_0x38ab79,_0x3a1cc6['length'],null,!0x1,_0x65e2bd,0x0),_0x15a35c++));_0x15a35c<_0x486f51&&_0x4c4327['length'];)if(_0x587702[_0x486f51-0x1]['become'](_0x4c4327[_0x4c4327['length']-0x1]))_0x486f51--,_0x4c4327['pop'](),_0x562f09=_0x4c4327['length']?0x0:_0x65e2bd;else{if(!_0x587702[_0x15a35c]['become'](_0x4c4327[0x0]))break;_0x15a35c++,_0x4c4327['shift'](),_0x65e2bd=_0x4c4327['length']?0x0:_0x562f09;}!_0x4c4327['length']&&_0x15a35c&&_0x486f51<_0x587702['length']&&!_0x587702[_0x15a35c-0x1]['breakAfter']&&_0x587702[_0x486f51]['merge'](0x0,0x0,_0x587702[_0x15a35c-0x1],!0x1,_0x65e2bd,_0x562f09)&&_0x15a35c--,(_0x15a35c<_0x486f51||_0x4c4327['length'])&&_0x38b39a['replaceChildren'](_0x15a35c,_0x486f51,_0x4c4327);}}function mergeChildrenInto(_0x7eaf84,_0x39ccf0,_0x4bd701,_0x5a8ff2,_0x2c1015,_0x51cddf){let _0x5925a7=_0x7eaf84['childCursor'](),{i:_0x589cb1,off:_0xf3543c}=_0x5925a7['findPos'](_0x4bd701,0x1),{i:_0x515396,off:_0x4c41c5}=_0x5925a7['findPos'](_0x39ccf0,-0x1),_0x41751f=_0x39ccf0-_0x4bd701;for(let _0x4f2e18 of _0x5a8ff2)_0x41751f+=_0x4f2e18['length'];_0x7eaf84['length']+=_0x41751f,replaceRange(_0x7eaf84,_0x515396,_0x4c41c5,_0x589cb1,_0xf3543c,_0x5a8ff2,0x0,_0x2c1015,_0x51cddf);}const MaxJoinLen=0x100;class TextView extends ContentView{constructor(_0x2ace7a){super(),this['text']=_0x2ace7a;}get['length'](){return this['text']['length'];}['createDOM'](_0x54cd28){this['setDOM'](_0x54cd28||document['createTextNode'](this['text']));}['sync'](_0x492376,_0x65363b){this['dom']||this['createDOM'](),this['dom']['nodeValue']!=this['text']&&(_0x65363b&&_0x65363b['node']==this['dom']&&(_0x65363b['written']=!0x0),this['dom']['nodeValue']=this['text']);}['reuseDOM'](_0x1cdb58){0x3==_0x1cdb58['nodeType']&&this['createDOM'](_0x1cdb58);}['merge'](_0x5bc716,_0x5000b9,_0x5033aa){return!(0x8&this['flags']||_0x5033aa&&(!(_0x5033aa instanceof TextView)||this['length']-(_0x5000b9-_0x5bc716)+_0x5033aa['length']>MaxJoinLen||0x8&_0x5033aa['flags']))&&(this['text']=this['text']['slice'](0x0,_0x5bc716)+(_0x5033aa?_0x5033aa['text']:'')+this['text']['slice'](_0x5000b9),this['markDirty'](),!0x0);}['split'](_0x43a05a){let _0x5b73b1=new TextView(this['text']['slice'](_0x43a05a));return this['text']=this['text']['slice'](0x0,_0x43a05a),this['markDirty'](),_0x5b73b1['flags']|=0x8&this['flags'],_0x5b73b1;}['localPosFromDOM'](_0x24ec58,_0x47f62f){return _0x24ec58==this['dom']?_0x47f62f:_0x47f62f?this['text']['length']:0x0;}['domAtPos'](_0x5205b4){return new DOMPos(this['dom'],_0x5205b4);}['domBoundsAround'](_0x26c6f8,_0x4c5802,_0x1d06f2){return{'from':_0x1d06f2,'to':_0x1d06f2+this['length'],'startDOM':this['dom'],'endDOM':this['dom']['nextSibling']};}['coordsAt'](_0x2a1f63,_0x7d8675){return textCoords(this['dom'],_0x2a1f63,_0x7d8675);}}class MarkView extends ContentView{constructor(_0x15e07e,_0x5bfee9=[],_0x570bee=0x0){super(),this['mark']=_0x15e07e,this['children']=_0x5bfee9,this['length']=_0x570bee;for(let _0x4f4c6c of _0x5bfee9)_0x4f4c6c['setParent'](this);}['setAttrs'](_0x351b34){if(clearAttributes(_0x351b34),this['mark']['class']&&(_0x351b34['className']=this['mark']['class']),this['mark']['attrs']){for(let _0x42e972 in this['mark']['attrs'])_0x351b34['setAttribute'](_0x42e972,this['mark']['attrs'][_0x42e972]);}return _0x351b34;}['canReuseDOM'](_0x2bacc3){return super['canReuseDOM'](_0x2bacc3)&&!(0x8&(this['flags']|_0x2bacc3['flags']));}['reuseDOM'](_0x426f0b){_0x426f0b['nodeName']==this['mark']['tagName']['toUpperCase']()&&(this['setDOM'](_0x426f0b),this['flags']|=0x6);}['sync'](_0x480441,_0x50b08f){this['dom']?0x4&this['flags']&&this['setAttrs'](this['dom']):this['setDOM'](this['setAttrs'](document['createElement'](this['mark']['tagName']))),super['sync'](_0x480441,_0x50b08f);}['merge'](_0x439baf,_0x372740,_0xbb9c3c,_0x10f311,_0x191bd1,_0x18a6b0){return(!_0xbb9c3c||!(!(_0xbb9c3c instanceof MarkView&&_0xbb9c3c['mark']['eq'](this['mark']))||_0x439baf&&_0x191bd1<=0x0||_0x372740<this['length']&&_0x18a6b0<=0x0))&&(mergeChildrenInto(this,_0x439baf,_0x372740,_0xbb9c3c?_0xbb9c3c['children']['slice']():[],_0x191bd1-0x1,_0x18a6b0-0x1),this['markDirty'](),!0x0);}['split'](_0x5e8199){let _0x31eda5=[],_0x23c413=0x0,_0x3b630f=-0x1,_0x6e7ca2=0x0;for(let _0x394f48 of this['children']){let _0x1bcb26=_0x23c413+_0x394f48['length'];_0x1bcb26>_0x5e8199&&_0x31eda5['push'](_0x23c413<_0x5e8199?_0x394f48['split'](_0x5e8199-_0x23c413):_0x394f48),_0x3b630f<0x0&&_0x23c413>=_0x5e8199&&(_0x3b630f=_0x6e7ca2),_0x23c413=_0x1bcb26,_0x6e7ca2++;}let _0x559e06=this['length']-_0x5e8199;return this['length']=_0x5e8199,_0x3b630f>-0x1&&(this['children']['length']=_0x3b630f,this['markDirty']()),new MarkView(this['mark'],_0x31eda5,_0x559e06);}['domAtPos'](_0x354c71){return inlineDOMAtPos(this,_0x354c71);}['coordsAt'](_0x5480bc,_0x5ea1db){return coordsInChildren(this,_0x5480bc,_0x5ea1db);}}function textCoords(_0x3ca9f5,_0x1ce64a,_0x43b3df){let _0x44c7dd=_0x3ca9f5['nodeValue']['length'];_0x1ce64a>_0x44c7dd&&(_0x1ce64a=_0x44c7dd);let _0x3c10bc=_0x1ce64a,_0x246522=_0x1ce64a,_0x2b3651=0x0;0x0==_0x1ce64a&&_0x43b3df<0x0||_0x1ce64a==_0x44c7dd&&_0x43b3df>=0x0?browser['chrome']||browser['gecko']||(_0x1ce64a?(_0x3c10bc--,_0x2b3651=0x1):_0x246522<_0x44c7dd&&(_0x246522++,_0x2b3651=-0x1)):_0x43b3df<0x0?_0x3c10bc--:_0x246522<_0x44c7dd&&_0x246522++;let _0x24c2be=textRange(_0x3ca9f5,_0x3c10bc,_0x246522)['getClientRects']();if(!_0x24c2be['length'])return null;let _0x2a07b7=_0x24c2be[(_0x2b3651?_0x2b3651<0x0:_0x43b3df>=0x0)?0x0:_0x24c2be['length']-0x1];return browser['safari']&&!_0x2b3651&&0x0==_0x2a07b7['width']&&(_0x2a07b7=Array['prototype']['find']['call'](_0x24c2be,_0x141ba9=>_0x141ba9['width'])||_0x2a07b7),_0x2b3651?flattenRect(_0x2a07b7,_0x2b3651<0x0):_0x2a07b7||null;}class WidgetView extends ContentView{static['create'](_0x2b8e49,_0xf74915,_0x2de5cf){return new WidgetView(_0x2b8e49,_0xf74915,_0x2de5cf);}constructor(_0x22402a,_0x265220,_0x4c3e8c){super(),this['widget']=_0x22402a,this['length']=_0x265220,this['side']=_0x4c3e8c,this['prevWidget']=null;}['split'](_0x139302){let _0x4b7058=WidgetView['create'](this['widget'],this['length']-_0x139302,this['side']);return this['length']-=_0x139302,_0x4b7058;}['sync'](_0x60504a){this['dom']&&this['widget']['updateDOM'](this['dom'],_0x60504a)||(this['dom']&&this['prevWidget']&&this['prevWidget']['destroy'](this['dom']),this['prevWidget']=null,this['setDOM'](this['widget']['toDOM'](_0x60504a)),this['widget']['editable']||(this['dom']['contentEditable']='false'));}['getSide'](){return this['side'];}['merge'](_0x3e8d22,_0x3b55e3,_0x3c6f5b,_0x439f9c,_0x14db2d,_0x385c08){return!(_0x3c6f5b&&(!(_0x3c6f5b instanceof WidgetView&&this['widget']['compare'](_0x3c6f5b['widget']))||_0x3e8d22>0x0&&_0x14db2d<=0x0||_0x3b55e3<this['length']&&_0x385c08<=0x0))&&(this['length']=_0x3e8d22+(_0x3c6f5b?_0x3c6f5b['length']:0x0)+(this['length']-_0x3b55e3),!0x0);}['become'](_0x47dfb1){return _0x47dfb1 instanceof WidgetView&&_0x47dfb1['side']==this['side']&&this['widget']['constructor']==_0x47dfb1['widget']['constructor']&&(this['widget']['compare'](_0x47dfb1['widget'])||this['markDirty'](!0x0),this['dom']&&!this['prevWidget']&&(this['prevWidget']=this['widget']),this['widget']=_0x47dfb1['widget'],this['length']=_0x47dfb1['length'],!0x0);}['ignoreMutation'](){return!0x0;}['ignoreEvent'](_0x1f724e){return this['widget']['ignoreEvent'](_0x1f724e);}get['overrideDOMText'](){if(0x0==this['length'])return Text['empty'];let _0x126dfb=this;for(;_0x126dfb['parent'];)_0x126dfb=_0x126dfb['parent'];let {view:_0x3ccf09}=_0x126dfb,_0x4b4afe=_0x3ccf09&&_0x3ccf09['state']['doc'],_0x937503=this['posAtStart'];return _0x4b4afe?_0x4b4afe['slice'](_0x937503,_0x937503+this['length']):Text['empty'];}['domAtPos'](_0x267ae2){return(this['length']?0x0==_0x267ae2:this['side']>0x0)?DOMPos['before'](this['dom']):DOMPos['after'](this['dom'],_0x267ae2==this['length']);}['domBoundsAround'](){return null;}['coordsAt'](_0x214093,_0x4c6d7e){let _0x2699c7=this['widget']['coordsAt'](this['dom'],_0x214093,_0x4c6d7e);if(_0x2699c7)return _0x2699c7;let _0x3efde1=this['dom']['getClientRects'](),_0x48b49a=null;if(!_0x3efde1['length'])return null;let _0xd401c2=this['side']?this['side']<0x0:_0x214093>0x0;for(let _0x17537e=_0xd401c2?_0x3efde1['length']-0x1:0x0;_0x48b49a=_0x3efde1[_0x17537e],!(_0x214093>0x0?0x0==_0x17537e:_0x17537e==_0x3efde1['length']-0x1||_0x48b49a['top']<_0x48b49a['bottom']);_0x17537e+=_0xd401c2?-0x1:0x1);return flattenRect(_0x48b49a,!_0xd401c2);}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(_0x2a4a73){super(),this['side']=_0x2a4a73;}get['length'](){return 0x0;}['merge'](){return!0x1;}['become'](_0x186516){return _0x186516 instanceof WidgetBufferView&&_0x186516['side']==this['side'];}['split'](){return new WidgetBufferView(this['side']);}['sync'](){if(!this['dom']){let _0x4f955f=document['createElement']('img');_0x4f955f['className']='cm-widgetBuffer',_0x4f955f['setAttribute']('aria-hidden','true'),this['setDOM'](_0x4f955f);}}['getSide'](){return this['side'];}['domAtPos'](_0x1f272a){return this['side']>0x0?DOMPos['before'](this['dom']):DOMPos['after'](this['dom']);}['localPosFromDOM'](){return 0x0;}['domBoundsAround'](){return null;}['coordsAt'](_0x11a409){return this['dom']['getBoundingClientRect']();}get['overrideDOMText'](){return Text['empty'];}get['isHidden'](){return!0x0;}}function inlineDOMAtPos(_0x30d6db,_0x498f70){let _0x4dabe3=_0x30d6db['dom'],{children:_0xb1cc5c}=_0x30d6db,_0x2a5fde=0x0;for(let _0x46c8a6=0x0;_0x2a5fde<_0xb1cc5c['length'];_0x2a5fde++){let _0x46ddce=_0xb1cc5c[_0x2a5fde],_0x3fa919=_0x46c8a6+_0x46ddce['length'];if(!(_0x3fa919==_0x46c8a6&&_0x46ddce['getSide']()<=0x0)){if(_0x498f70>_0x46c8a6&&_0x498f70<_0x3fa919&&_0x46ddce['dom']['parentNode']==_0x4dabe3)return _0x46ddce['domAtPos'](_0x498f70-_0x46c8a6);if(_0x498f70<=_0x46c8a6)break;_0x46c8a6=_0x3fa919;}}for(let _0x42e001=_0x2a5fde;_0x42e001>0x0;_0x42e001--){let _0x3be946=_0xb1cc5c[_0x42e001-0x1];if(_0x3be946['dom']['parentNode']==_0x4dabe3)return _0x3be946['domAtPos'](_0x3be946['length']);}for(let _0x250fe8=_0x2a5fde;_0x250fe8<_0xb1cc5c['length'];_0x250fe8++){let _0x61f869=_0xb1cc5c[_0x250fe8];if(_0x61f869['dom']['parentNode']==_0x4dabe3)return _0x61f869['domAtPos'](0x0);}return new DOMPos(_0x4dabe3,0x0);}function joinInlineInto(_0x25cfc5,_0x6c2888,_0x2805d8){let _0x3c539c,{children:_0x2db588}=_0x25cfc5;_0x2805d8>0x0&&_0x6c2888 instanceof MarkView&&_0x2db588['length']&&(_0x3c539c=_0x2db588[_0x2db588['length']-0x1])instanceof MarkView&&_0x3c539c['mark']['eq'](_0x6c2888['mark'])?joinInlineInto(_0x3c539c,_0x6c2888['children'][0x0],_0x2805d8-0x1):(_0x2db588['push'](_0x6c2888),_0x6c2888['setParent'](_0x25cfc5)),_0x25cfc5['length']+=_0x6c2888['length'];}function coordsInChildren(_0x2a3211,_0x415a2b,_0x26809d){let _0x45065c=null,_0x5557d5=-0x1,_0x4fb15e=null,_0x33235a=-0x1;!function _0x5b6f68(_0x5aea64,_0x13e55d){for(let _0x4ac825=0x0,_0x25e714=0x0;_0x4ac825<_0x5aea64['children']['length']&&_0x25e714<=_0x13e55d;_0x4ac825++){let _0x186db9=_0x5aea64['children'][_0x4ac825],_0x3e57af=_0x25e714+_0x186db9['length'];_0x3e57af>=_0x13e55d&&(_0x186db9['children']['length']?_0x5b6f68(_0x186db9,_0x13e55d-_0x25e714):(!_0x4fb15e||_0x4fb15e['isHidden']&&(_0x26809d>0x0||onSameLine(_0x4fb15e,_0x186db9)))&&(_0x3e57af>_0x13e55d||_0x25e714==_0x3e57af&&_0x186db9['getSide']()>0x0)?(_0x4fb15e=_0x186db9,_0x33235a=_0x13e55d-_0x25e714):(_0x25e714<_0x13e55d||_0x25e714==_0x3e57af&&_0x186db9['getSide']()<0x0&&!_0x186db9['isHidden'])&&(_0x45065c=_0x186db9,_0x5557d5=_0x13e55d-_0x25e714)),_0x25e714=_0x3e57af;}}(_0x2a3211,_0x415a2b);let _0x14c0a7=(_0x26809d<0x0?_0x45065c:_0x4fb15e)||_0x45065c||_0x4fb15e;return _0x14c0a7?_0x14c0a7['coordsAt'](Math['max'](0x0,_0x14c0a7==_0x45065c?_0x5557d5:_0x33235a),_0x26809d):fallbackRect(_0x2a3211);}function fallbackRect(_0x315910){let _0x224c29=_0x315910['dom']['lastChild'];if(!_0x224c29)return _0x315910['dom']['getBoundingClientRect']();let _0x515cc3=clientRectsFor(_0x224c29);return _0x515cc3[_0x515cc3['length']-0x1]||null;}function onSameLine(_0x20a368,_0x3c402d){let _0x573ea6=_0x20a368['coordsAt'](0x0,0x1),_0x392285=_0x3c402d['coordsAt'](0x0,0x1);return _0x573ea6&&_0x392285&&_0x392285['top']<_0x573ea6['bottom'];}function combineAttrs(_0x42c7a7,_0x13388a){for(let _0x388294 in _0x42c7a7)'class'==_0x388294&&_0x13388a['class']?_0x13388a['class']+='\x20'+_0x42c7a7['class']:'style'==_0x388294&&_0x13388a['style']?_0x13388a['style']+=';'+_0x42c7a7['style']:_0x13388a[_0x388294]=_0x42c7a7[_0x388294];return _0x13388a;}TextView['prototype']['children']=WidgetView['prototype']['children']=WidgetBufferView['prototype']['children']=noChildren;const noAttrs$1=Object['create'](null);function attrsEq(_0x16e4e1,_0x416da8,_0x55957b){if(_0x16e4e1==_0x416da8)return!0x0;_0x16e4e1||(_0x16e4e1=noAttrs$1),_0x416da8||(_0x416da8=noAttrs$1);let _0x5e1ff2=Object['keys'](_0x16e4e1),_0x21e09b=Object['keys'](_0x416da8);if(_0x5e1ff2['length']-(_0x55957b&&_0x5e1ff2['indexOf'](_0x55957b)>-0x1?0x1:0x0)!=_0x21e09b['length']-(_0x55957b&&_0x21e09b['indexOf'](_0x55957b)>-0x1?0x1:0x0))return!0x1;for(let _0x4b30ed of _0x5e1ff2)if(_0x4b30ed!=_0x55957b&&(-0x1==_0x21e09b['indexOf'](_0x4b30ed)||_0x16e4e1[_0x4b30ed]!==_0x416da8[_0x4b30ed]))return!0x1;return!0x0;}function updateAttrs(_0x18bf2c,_0x2d05e1,_0x586720){let _0x96b9b=!0x1;if(_0x2d05e1){for(let _0x4f7bb2 in _0x2d05e1)_0x586720&&_0x4f7bb2 in _0x586720||(_0x96b9b=!0x0,'style'==_0x4f7bb2?_0x18bf2c['style']['cssText']='':_0x18bf2c['removeAttribute'](_0x4f7bb2));}if(_0x586720){for(let _0x414eae in _0x586720)_0x2d05e1&&_0x2d05e1[_0x414eae]==_0x586720[_0x414eae]||(_0x96b9b=!0x0,'style'==_0x414eae?_0x18bf2c['style']['cssText']=_0x586720[_0x414eae]:_0x18bf2c['setAttribute'](_0x414eae,_0x586720[_0x414eae]));}return _0x96b9b;}function getAttrs$1(_0x1d0c85){let _0x33c070=Object['create'](null);for(let _0xd8a049=0x0;_0xd8a049<_0x1d0c85['attributes']['length'];_0xd8a049++){let _0x1dfc84=_0x1d0c85['attributes'][_0xd8a049];_0x33c070[_0x1dfc84['name']]=_0x1dfc84['value'];}return _0x33c070;}class WidgetType{['eq'](_0x2b0098){return!0x1;}['updateDOM'](_0x3935c2,_0x55d423){return!0x1;}['compare'](_0x4b4095){return this==_0x4b4095||this['constructor']==_0x4b4095['constructor']&&this['eq'](_0x4b4095);}get['estimatedHeight'](){return-0x1;}get['lineBreaks'](){return 0x0;}['ignoreEvent'](_0x233c82){return!0x0;}['coordsAt'](_0x106b36,_0x1432e4,_0x4c3415){return null;}get['isHidden'](){return!0x1;}get['editable'](){return!0x1;}['destroy'](_0x183dff){}}var BlockType=function(_0xb66116){return _0xb66116[_0xb66116['Text']=0x0]='Text',_0xb66116[_0xb66116['WidgetBefore']=0x1]='WidgetBefore',_0xb66116[_0xb66116['WidgetAfter']=0x2]='WidgetAfter',_0xb66116[_0xb66116['WidgetRange']=0x3]='WidgetRange',_0xb66116;}(BlockType||(BlockType={}));class Decoration extends RangeValue{constructor(_0x1c193f,_0x2a83dd,_0x1878ff,_0x457c40){super(),this['startSide']=_0x1c193f,this['endSide']=_0x2a83dd,this['widget']=_0x1878ff,this['spec']=_0x457c40;}get['heightRelevant'](){return!0x1;}static['mark'](_0x276fc7){return new MarkDecoration(_0x276fc7);}static['widget'](_0x5c7ef2){let _0x9f3102=Math['max'](-0x2710,Math['min'](0x2710,_0x5c7ef2['side']||0x0)),_0x33c470=!!_0x5c7ef2['block'];return _0x9f3102+=_0x33c470&&!_0x5c7ef2['inlineOrder']?_0x9f3102>0x0?0x11e1a300:-0x17d78400:_0x9f3102>0x0?0x5f5e100:-0x5f5e100,new PointDecoration(_0x5c7ef2,_0x9f3102,_0x9f3102,_0x33c470,_0x5c7ef2['widget']||null,!0x1);}static['replace'](_0x472eb0){let _0x19d8ff,_0xa07fce,_0x35e2b4=!!_0x472eb0['block'];if(_0x472eb0['isBlockGap'])_0x19d8ff=-0x1dcd6500,_0xa07fce=0x17d78400;else{let {start:_0x1a49fa,end:_0x457757}=getInclusive(_0x472eb0,_0x35e2b4);_0x19d8ff=(_0x1a49fa?_0x35e2b4?-0x11e1a300:-0x1:0x1dcd6500)-0x1,_0xa07fce=0x1+(_0x457757?_0x35e2b4?0xbebc200:0x1:-0x23c34600);}return new PointDecoration(_0x472eb0,_0x19d8ff,_0xa07fce,_0x35e2b4,_0x472eb0['widget']||null,!0x0);}static['line'](_0x470d3e){return new LineDecoration(_0x470d3e);}static['set'](_0x59c2f3,_0xe5d81c=!0x1){return RangeSet['of'](_0x59c2f3,_0xe5d81c);}['hasHeight'](){return!!this['widget']&&this['widget']['estimatedHeight']>-0x1;}}Decoration['none']=RangeSet['empty'];class MarkDecoration extends Decoration{constructor(_0x3bf552){let {start:_0xf75d1a,end:_0x579799}=getInclusive(_0x3bf552);super(_0xf75d1a?-0x1:0x1dcd6500,_0x579799?0x1:-0x23c34600,null,_0x3bf552),this['tagName']=_0x3bf552['tagName']||'span',this['class']=_0x3bf552['class']||'',this['attrs']=_0x3bf552['attributes']||null;}['eq'](_0x33409b){var _0x4a7860,_0x3c889c;return this==_0x33409b||_0x33409b instanceof MarkDecoration&&this['tagName']==_0x33409b['tagName']&&(this['class']||(null===(_0x4a7860=this['attrs'])||void 0x0===_0x4a7860?void 0x0:_0x4a7860['class']))==(_0x33409b['class']||(null===(_0x3c889c=_0x33409b['attrs'])||void 0x0===_0x3c889c?void 0x0:_0x3c889c['class']))&&attrsEq(this['attrs'],_0x33409b['attrs'],'class');}['range'](_0x343030,_0x3a75fc=_0x343030){if(_0x343030>=_0x3a75fc)throw new RangeError('Mark\x20decorations\x20may\x20not\x20be\x20empty');return super['range'](_0x343030,_0x3a75fc);}}MarkDecoration['prototype']['point']=!0x1;class LineDecoration extends Decoration{constructor(_0x9896c4){super(-0xbebc200,-0xbebc200,null,_0x9896c4);}['eq'](_0x151ba6){return _0x151ba6 instanceof LineDecoration&&this['spec']['class']==_0x151ba6['spec']['class']&&attrsEq(this['spec']['attributes'],_0x151ba6['spec']['attributes']);}['range'](_0xb5ffd6,_0x3eb222=_0xb5ffd6){if(_0x3eb222!=_0xb5ffd6)throw new RangeError('Line\x20decoration\x20ranges\x20must\x20be\x20zero-length');return super['range'](_0xb5ffd6,_0x3eb222);}}LineDecoration['prototype']['mapMode']=MapMode['TrackBefore'],LineDecoration['prototype']['point']=!0x0;class PointDecoration extends Decoration{constructor(_0x2d597c,_0x19e277,_0x1db43e,_0x30ad90,_0x4628a3,_0x18f51b){super(_0x19e277,_0x1db43e,_0x4628a3,_0x2d597c),this['block']=_0x30ad90,this['isReplace']=_0x18f51b,this['mapMode']=_0x30ad90?_0x19e277<=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'](_0x62cc4d){return _0x62cc4d instanceof PointDecoration&&widgetsEq(this['widget'],_0x62cc4d['widget'])&&this['block']==_0x62cc4d['block']&&this['startSide']==_0x62cc4d['startSide']&&this['endSide']==_0x62cc4d['endSide'];}['range'](_0x515295,_0xf46593=_0x515295){if(this['isReplace']&&(_0x515295>_0xf46593||_0x515295==_0xf46593&&this['startSide']>0x0&&this['endSide']<=0x0))throw new RangeError('Invalid\x20range\x20for\x20replacement\x20decoration');if(!this['isReplace']&&_0xf46593!=_0x515295)throw new RangeError('Widget\x20decorations\x20can\x20only\x20have\x20zero-length\x20ranges');return super['range'](_0x515295,_0xf46593);}}function getInclusive(_0xef5a30,_0x17060f=!0x1){let {inclusiveStart:_0x36da54,inclusiveEnd:_0x53c6af}=_0xef5a30;return null==_0x36da54&&(_0x36da54=_0xef5a30['inclusive']),null==_0x53c6af&&(_0x53c6af=_0xef5a30['inclusive']),{'start':null!=_0x36da54?_0x36da54:_0x17060f,'end':null!=_0x53c6af?_0x53c6af:_0x17060f};}function widgetsEq(_0x311c92,_0x5b735e){return _0x311c92==_0x5b735e||!!(_0x311c92&&_0x5b735e&&_0x311c92['compare'](_0x5b735e));}function addRange(_0x5c0de1,_0x3841cb,_0x5d3c44,_0x26f71f=0x0){let _0xf0cfd2=_0x5d3c44['length']-0x1;_0xf0cfd2>=0x0&&_0x5d3c44[_0xf0cfd2]+_0x26f71f>=_0x5c0de1?_0x5d3c44[_0xf0cfd2]=Math['max'](_0x5d3c44[_0xf0cfd2],_0x3841cb):_0x5d3c44['push'](_0x5c0de1,_0x3841cb);}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'](_0x56e5b0,_0x25e34d,_0x40bae6,_0x519183,_0x2b9758,_0x2eef96){if(_0x40bae6){if(!(_0x40bae6 instanceof LineView))return!0x1;this['dom']||_0x40bae6['transferDOM'](this);}return _0x519183&&this['setDeco'](_0x40bae6?_0x40bae6['attrs']:null),mergeChildrenInto(this,_0x56e5b0,_0x25e34d,_0x40bae6?_0x40bae6['children']['slice']():[],_0x2b9758,_0x2eef96),!0x0;}['split'](_0x1fba5f){let _0x42aba8=new LineView();if(_0x42aba8['breakAfter']=this['breakAfter'],0x0==this['length'])return _0x42aba8;let {i:_0x2a3b5f,off:_0x3eee01}=this['childPos'](_0x1fba5f);_0x3eee01&&(_0x42aba8['append'](this['children'][_0x2a3b5f]['split'](_0x3eee01),0x0),this['children'][_0x2a3b5f]['merge'](_0x3eee01,this['children'][_0x2a3b5f]['length'],null,!0x1,0x0,0x0),_0x2a3b5f++);for(let _0x52fff4=_0x2a3b5f;_0x52fff4<this['children']['length'];_0x52fff4++)_0x42aba8['append'](this['children'][_0x52fff4],0x0);for(;_0x2a3b5f>0x0&&0x0==this['children'][_0x2a3b5f-0x1]['length'];)this['children'][--_0x2a3b5f]['destroy']();return this['children']['length']=_0x2a3b5f,this['markDirty'](),this['length']=_0x1fba5f,_0x42aba8;}['transferDOM'](_0x139e8e){this['dom']&&(this['markDirty'](),_0x139e8e['setDOM'](this['dom']),_0x139e8e['prevAttrs']=void 0x0===this['prevAttrs']?this['attrs']:this['prevAttrs'],this['prevAttrs']=void 0x0,this['dom']=null);}['setDeco'](_0x6acb55){attrsEq(this['attrs'],_0x6acb55)||(this['dom']&&(this['prevAttrs']=this['attrs'],this['markDirty']()),this['attrs']=_0x6acb55);}['append'](_0x444dbe,_0x2ed785){joinInlineInto(this,_0x444dbe,_0x2ed785);}['addLineDeco'](_0x502173){let _0x2b5fdb=_0x502173['spec']['attributes'],_0x1c3953=_0x502173['spec']['class'];_0x2b5fdb&&(this['attrs']=combineAttrs(_0x2b5fdb,this['attrs']||{})),_0x1c3953&&(this['attrs']=combineAttrs({'class':_0x1c3953},this['attrs']||{}));}['domAtPos'](_0x1c76f3){return inlineDOMAtPos(this,_0x1c76f3);}['reuseDOM'](_0x3cf7a0){'DIV'==_0x3cf7a0['nodeName']&&(this['setDOM'](_0x3cf7a0),this['flags']|=0x6);}['sync'](_0x40e1ae,_0x46698f){var _0x416b41;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'](_0x40e1ae,_0x46698f);let _0x39645c=this['dom']['lastChild'];for(;_0x39645c&&ContentView['get'](_0x39645c)instanceof MarkView;)_0x39645c=_0x39645c['lastChild'];if(!(_0x39645c&&this['length']&&('BR'==_0x39645c['nodeName']||0x0!=(null===(_0x416b41=ContentView['get'](_0x39645c))||void 0x0===_0x416b41?void 0x0:_0x416b41['isEditable'])||browser['ios']&&this['children']['some'](_0x612662=>_0x612662 instanceof TextView)))){let _0x342075=document['createElement']('BR');_0x342075['cmIgnore']=!0x0,this['dom']['appendChild'](_0x342075);}}['measureTextSize'](){if(0x0==this['children']['length']||this['length']>0x14)return null;let _0x4a49b6,_0x54dee6=0x0;for(let _0x36c1aa of this['children']){if(!(_0x36c1aa instanceof TextView)||/[^ -~]/['test'](_0x36c1aa['text']))return null;let _0x37c86a=clientRectsFor(_0x36c1aa['dom']);if(0x1!=_0x37c86a['length'])return null;_0x54dee6+=_0x37c86a[0x0]['width'],_0x4a49b6=_0x37c86a[0x0]['height'];}return _0x54dee6?{'lineHeight':this['dom']['getBoundingClientRect']()['height'],'charWidth':_0x54dee6/this['length'],'textHeight':_0x4a49b6}:null;}['coordsAt'](_0x1f256c,_0x5c543d){let _0x555fb5=coordsInChildren(this,_0x1f256c,_0x5c543d);if(!this['children']['length']&&_0x555fb5&&this['parent']){let {heightOracle:_0x29e20f}=this['parent']['view']['viewState'],_0x47f557=_0x555fb5['bottom']-_0x555fb5['top'];if(Math['abs'](_0x47f557-_0x29e20f['lineHeight'])<0x2&&_0x29e20f['textHeight']<_0x47f557){let _0x508198=(_0x47f557-_0x29e20f['textHeight'])/0x2;return{'top':_0x555fb5['top']+_0x508198,'bottom':_0x555fb5['bottom']-_0x508198,'left':_0x555fb5['left'],'right':_0x555fb5['left']};}}return _0x555fb5;}['become'](_0x5dcd20){return _0x5dcd20 instanceof LineView&&0x0==this['children']['length']&&0x0==_0x5dcd20['children']['length']&&attrsEq(this['attrs'],_0x5dcd20['attrs'])&&this['breakAfter']==_0x5dcd20['breakAfter'];}['covers'](){return!0x0;}static['find'](_0x4ba9cc,_0x4849c9){for(let _0x4a8dd2=0x0,_0x2beaec=0x0;_0x4a8dd2<_0x4ba9cc['children']['length'];_0x4a8dd2++){let _0x1443e2=_0x4ba9cc['children'][_0x4a8dd2],_0x577cce=_0x2beaec+_0x1443e2['length'];if(_0x577cce>=_0x4849c9){if(_0x1443e2 instanceof LineView)return _0x1443e2;if(_0x577cce>_0x4849c9)break;}_0x2beaec=_0x577cce+_0x1443e2['breakAfter'];}return null;}}class BlockWidgetView extends ContentView{constructor(_0x534311,_0x3bd6a6,_0x1b2643){super(),this['widget']=_0x534311,this['length']=_0x3bd6a6,this['deco']=_0x1b2643,this['breakAfter']=0x0,this['prevWidget']=null;}['merge'](_0x43417a,_0xea85f9,_0x3dab17,_0x2ae97c,_0x40e19e,_0xfab34a){return!(_0x3dab17&&(!(_0x3dab17 instanceof BlockWidgetView&&this['widget']['compare'](_0x3dab17['widget']))||_0x43417a>0x0&&_0x40e19e<=0x0||_0xea85f9<this['length']&&_0xfab34a<=0x0))&&(this['length']=_0x43417a+(_0x3dab17?_0x3dab17['length']:0x0)+(this['length']-_0xea85f9),!0x0);}['domAtPos'](_0x34ab0a){return 0x0==_0x34ab0a?DOMPos['before'](this['dom']):DOMPos['after'](this['dom'],_0x34ab0a==this['length']);}['split'](_0x3c4295){let _0x2631bb=this['length']-_0x3c4295;this['length']=_0x3c4295;let _0xc6456c=new BlockWidgetView(this['widget'],_0x2631bb,this['deco']);return _0xc6456c['breakAfter']=this['breakAfter'],_0xc6456c;}get['children'](){return noChildren;}['sync'](_0x14b7a8){this['dom']&&this['widget']['updateDOM'](this['dom'],_0x14b7a8)||(this['dom']&&this['prevWidget']&&this['prevWidget']['destroy'](this['dom']),this['prevWidget']=null,this['setDOM'](this['widget']['toDOM'](_0x14b7a8)),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'](_0x552fd8){return _0x552fd8 instanceof BlockWidgetView&&_0x552fd8['widget']['constructor']==this['widget']['constructor']&&(_0x552fd8['widget']['compare'](this['widget'])||this['markDirty'](!0x0),this['dom']&&!this['prevWidget']&&(this['prevWidget']=this['widget']),this['widget']=_0x552fd8['widget'],this['length']=_0x552fd8['length'],this['deco']=_0x552fd8['deco'],this['breakAfter']=_0x552fd8['breakAfter'],!0x0);}['ignoreMutation'](){return!0x0;}['ignoreEvent'](_0x3b1aef){return this['widget']['ignoreEvent'](_0x3b1aef);}get['isEditable'](){return!0x1;}get['isWidget'](){return!0x0;}['coordsAt'](_0x4605a0,_0xcfa3c2){let _0x1d9870=this['widget']['coordsAt'](this['dom'],_0x4605a0,_0xcfa3c2);return _0x1d9870||(this['widget']instanceof BlockGapWidget?null:flattenRect(this['dom']['getBoundingClientRect'](),this['length']?0x0==_0x4605a0:_0xcfa3c2<=0x0));}['destroy'](){super['destroy'](),this['dom']&&this['widget']['destroy'](this['dom']);}['covers'](_0x39ecbd){let {startSide:_0x5449ce,endSide:_0x56d32c}=this['deco'];return _0x5449ce!=_0x56d32c&&(_0x39ecbd<0x0?_0x5449ce<0x0:_0x56d32c>0x0);}}class BlockGapWidget extends WidgetType{constructor(_0x5b76e8){super(),this['height']=_0x5b76e8;}['toDOM'](){let _0x32c3bd=document['createElement']('div');return _0x32c3bd['className']='cm-gap',this['updateDOM'](_0x32c3bd),_0x32c3bd;}['eq'](_0x5b4073){return _0x5b4073['height']==this['height'];}['updateDOM'](_0x44f121){return _0x44f121['style']['height']=this['height']+'px',!0x0;}get['editable'](){return!0x0;}get['estimatedHeight'](){return this['height'];}['ignoreEvent'](){return!0x1;}}class ContentBuilder{constructor(_0x2fa86d,_0x2c5707,_0xe8e223,_0x596aae){this['doc']=_0x2fa86d,this['pos']=_0x2c5707,this['end']=_0xe8e223,this['disallowBlockEffectsFor']=_0x596aae,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']=_0x2fa86d['iter'](),this['skip']=_0x2c5707;}['posCovered'](){if(0x0==this['content']['length'])return!this['breakAtStart']&&this['doc']['lineAt'](this['pos'])['from']!=this['pos'];let _0x23e370=this['content'][this['content']['length']-0x1];return!(_0x23e370['breakAfter']||_0x23e370 instanceof BlockWidgetView&&_0x23e370['deco']['endSide']<0x0);}['getLine'](){return this['curLine']||(this['content']['push'](this['curLine']=new LineView()),this['atCursorPos']=!0x0),this['curLine'];}['flushBuffer'](_0x2277dd=this['bufferMarks']){this['pendingBuffer']&&(this['curLine']['append'](wrapMarks(new WidgetBufferView(-0x1),_0x2277dd),_0x2277dd['length']),this['pendingBuffer']=0x0);}['addBlockWidget'](_0x195945){this['flushBuffer'](),this['curLine']=null,this['content']['push'](_0x195945);}['finish'](_0x276804){this['pendingBuffer']&&_0x276804<=this['bufferMarks']['length']?this['flushBuffer']():this['pendingBuffer']=0x0,this['posCovered']()||_0x276804&&this['content']['length']&&this['content'][this['content']['length']-0x1]instanceof BlockWidgetView||this['getLine']();}['buildText'](_0x2f8fea,_0x3c2663,_0x5ba59e){for(;_0x2f8fea>0x0;){if(this['textOff']==this['text']['length']){let {value:_0x14f904,lineBreak:_0x313d89,done:_0x2c97b5}=this['cursor']['next'](this['skip']);if(this['skip']=0x0,_0x2c97b5)throw new Error('Ran\x20out\x20of\x20text\x20content\x20when\x20drawing\x20inline\x20views');if(_0x313d89){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,_0x2f8fea--;continue;}this['text']=_0x14f904,this['textOff']=0x0;}let _0x909aa0=Math['min'](this['text']['length']-this['textOff'],_0x2f8fea),_0x5e12aa=Math['min'](_0x909aa0,0x200);this['flushBuffer'](_0x3c2663['slice'](_0x3c2663['length']-_0x5ba59e)),this['getLine']()['append'](wrapMarks(new TextView(this['text']['slice'](this['textOff'],this['textOff']+_0x5e12aa)),_0x3c2663),_0x5ba59e),this['atCursorPos']=!0x0,this['textOff']+=_0x5e12aa,_0x2f8fea-=_0x5e12aa,_0x5ba59e=_0x909aa0<=_0x5e12aa?0x0:_0x3c2663['length'];}}['span'](_0x4465f6,_0x3fc055,_0x439f99,_0xbbfdd){this['buildText'](_0x3fc055-_0x4465f6,_0x439f99,_0xbbfdd),this['pos']=_0x3fc055,this['openStart']<0x0&&(this['openStart']=_0xbbfdd);}['point'](_0x41b4cc,_0x1ca58b,_0x21b475,_0x2e5345,_0x156542,_0x1cdb08){if(this['disallowBlockEffectsFor'][_0x1cdb08]&&_0x21b475 instanceof PointDecoration){if(_0x21b475['block'])throw new RangeError('Block\x20decorations\x20may\x20not\x20be\x20specified\x20via\x20plugins');if(_0x1ca58b>this['doc']['lineAt'](this['pos'])['to'])throw new RangeError('Decorations\x20that\x20replace\x20line\x20breaks\x20may\x20not\x20be\x20specified\x20via\x20plugins');}let _0x1e80b4=_0x1ca58b-_0x41b4cc;if(_0x21b475 instanceof PointDecoration){if(_0x21b475['block'])_0x21b475['startSide']>0x0&&!this['posCovered']()&&this['getLine'](),this['addBlockWidget'](new BlockWidgetView(_0x21b475['widget']||NullWidget['block'],_0x1e80b4,_0x21b475));else{let _0x1424ef=WidgetView['create'](_0x21b475['widget']||NullWidget['inline'],_0x1e80b4,_0x1e80b4?0x0:_0x21b475['startSide']),_0x4d5360=this['atCursorPos']&&!_0x1424ef['isEditable']&&_0x156542<=_0x2e5345['length']&&(_0x41b4cc<_0x1ca58b||_0x21b475['startSide']>0x0),_0x2d582a=!_0x1424ef['isEditable']&&(_0x41b4cc<_0x1ca58b||_0x156542>_0x2e5345['length']||_0x21b475['startSide']<=0x0),_0x1fdead=this['getLine']();0x2!=this['pendingBuffer']||_0x4d5360||_0x1424ef['isEditable']||(this['pendingBuffer']=0x0),this['flushBuffer'](_0x2e5345),_0x4d5360&&(_0x1fdead['append'](wrapMarks(new WidgetBufferView(0x1),_0x2e5345),_0x156542),_0x156542=_0x2e5345['length']+Math['max'](0x0,_0x156542-_0x2e5345['length'])),_0x1fdead['append'](wrapMarks(_0x1424ef,_0x2e5345),_0x156542),this['atCursorPos']=_0x2d582a,this['pendingBuffer']=_0x2d582a?_0x41b4cc<_0x1ca58b||_0x156542>_0x2e5345['length']?0x1:0x2:0x0,this['pendingBuffer']&&(this['bufferMarks']=_0x2e5345['slice']());}}else this['doc']['lineAt'](this['pos'])['from']==this['pos']&&this['getLine']()['addLineDeco'](_0x21b475);_0x1e80b4&&(this['textOff']+_0x1e80b4<=this['text']['length']?this['textOff']+=_0x1e80b4:(this['skip']+=_0x1e80b4-(this['text']['length']-this['textOff']),this['text']='',this['textOff']=0x0),this['pos']=_0x1ca58b),this['openStart']<0x0&&(this['openStart']=_0x156542);}static['build'](_0x4bd774,_0x3cf079,_0x504e67,_0x16a7e3,_0x38e9fd){let _0x26d66f=new ContentBuilder(_0x4bd774,_0x3cf079,_0x504e67,_0x38e9fd);return _0x26d66f['openEnd']=RangeSet['spans'](_0x16a7e3,_0x3cf079,_0x504e67,_0x26d66f),_0x26d66f['openStart']<0x0&&(_0x26d66f['openStart']=_0x26d66f['openEnd']),_0x26d66f['finish'](_0x26d66f['openEnd']),_0x26d66f;}}function wrapMarks(_0x577bad,_0x4d8ff2){for(let _0x11b53b of _0x4d8ff2)_0x577bad=new MarkView(_0x11b53b,[_0x577bad],_0x577bad['length']);return _0x577bad;}class NullWidget extends WidgetType{constructor(_0x513195){super(),this['tag']=_0x513195;}['eq'](_0x13506f){return _0x13506f['tag']==this['tag'];}['toDOM'](){return document['createElement'](this['tag']);}['updateDOM'](_0x425c5e){return _0x425c5e['nodeName']['toLowerCase']()==this['tag'];}get['isHidden'](){return!0x0;}}NullWidget['inline']=new NullWidget('span'),NullWidget['block']=new NullWidget('div');var Direction=function(_0x54a494){return _0x54a494[_0x54a494['LTR']=0x0]='LTR',_0x54a494[_0x54a494['RTL']=0x1]='RTL',_0x54a494;}(Direction||(Direction={}));const LTR=Direction['LTR'],RTL=Direction['RTL'];function dec(_0x4cc3fd){let _0x4503f9=[];for(let _0x3529e6=0x0;_0x3529e6<_0x4cc3fd['length'];_0x3529e6++)_0x4503f9['push'](0x1<<+_0x4cc3fd[_0x3529e6]);return _0x4503f9;}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(_0x1a4744){return _0x1a4744<=0xf7?LowTypes[_0x1a4744]:0x590<=_0x1a4744&&_0x1a4744<=0x5f4?0x2:0x600<=_0x1a4744&&_0x1a4744<=0x6f9?ArabicTypes[_0x1a4744-0x600]:0x6ee<=_0x1a4744&&_0x1a4744<=0x8ac?0x4:0x2000<=_0x1a4744&&_0x1a4744<=0x200c?0x100:0xfb50<=_0x1a4744&&_0x1a4744<=0xfdff?0x4:0x1;}const BidiRE=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class BidiSpan{get['dir'](){return this['level']%0x2?RTL:LTR;}constructor(_0x4e0f66,_0x13acc1,_0x4b01a3){this['from']=_0x4e0f66,this['to']=_0x13acc1,this['level']=_0x4b01a3;}['side'](_0x5546eb,_0x68a3e2){return this['dir']==_0x68a3e2==_0x5546eb?this['to']:this['from'];}['forward'](_0x1b0039,_0x247c51){return _0x1b0039==(this['dir']==_0x247c51);}static['find'](_0x508437,_0xb00811,_0x59ef92,_0x32514c){let _0xa266c0=-0x1;for(let _0x24a7d2=0x0;_0x24a7d2<_0x508437['length'];_0x24a7d2++){let _0x259e2c=_0x508437[_0x24a7d2];if(_0x259e2c['from']<=_0xb00811&&_0x259e2c['to']>=_0xb00811){if(_0x259e2c['level']==_0x59ef92)return _0x24a7d2;(_0xa266c0<0x0||(0x0!=_0x32514c?_0x32514c<0x0?_0x259e2c['from']<_0xb00811:_0x259e2c['to']>_0xb00811:_0x508437[_0xa266c0]['level']>_0x259e2c['level']))&&(_0xa266c0=_0x24a7d2);}}if(_0xa266c0<0x0)throw new RangeError('Index\x20out\x20of\x20range');return _0xa266c0;}}function isolatesEq(_0x1747e2,_0x15945a){if(_0x1747e2['length']!=_0x15945a['length'])return!0x1;for(let _0x2162a1=0x0;_0x2162a1<_0x1747e2['length'];_0x2162a1++){let _0x5532be=_0x1747e2[_0x2162a1],_0x14a634=_0x15945a[_0x2162a1];if(_0x5532be['from']!=_0x14a634['from']||_0x5532be['to']!=_0x14a634['to']||_0x5532be['direction']!=_0x14a634['direction']||!isolatesEq(_0x5532be['inner'],_0x14a634['inner']))return!0x1;}return!0x0;}const types=[];function computeCharTypes(_0x22bb9e,_0x26d01e,_0x18f5c8,_0xed3bbb,_0x3d887a){for(let _0x54d9f8=0x0;_0x54d9f8<=_0xed3bbb['length'];_0x54d9f8++){let _0x3e8b7a=_0x54d9f8?_0xed3bbb[_0x54d9f8-0x1]['to']:_0x26d01e,_0x1a6a6b=_0x54d9f8<_0xed3bbb['length']?_0xed3bbb[_0x54d9f8]['from']:_0x18f5c8,_0x14e418=_0x54d9f8?0x100:_0x3d887a;for(let _0x518365=_0x3e8b7a,_0x1d4f53=_0x14e418,_0x508881=_0x14e418;_0x518365<_0x1a6a6b;_0x518365++){let _0x1d0bf5=charType(_0x22bb9e['charCodeAt'](_0x518365));0x200==_0x1d0bf5?_0x1d0bf5=_0x1d4f53:0x8==_0x1d0bf5&&0x4==_0x508881&&(_0x1d0bf5=0x10),types[_0x518365]=0x4==_0x1d0bf5?0x2:_0x1d0bf5,0x7&_0x1d0bf5&&(_0x508881=_0x1d0bf5),_0x1d4f53=_0x1d0bf5;}for(let _0x1a8144=_0x3e8b7a,_0x12c6f2=_0x14e418,_0x2becd6=_0x14e418;_0x1a8144<_0x1a6a6b;_0x1a8144++){let _0x43b272=types[_0x1a8144];if(0x80==_0x43b272)_0x1a8144<_0x1a6a6b-0x1&&_0x12c6f2==types[_0x1a8144+0x1]&&0x18&_0x12c6f2?_0x43b272=types[_0x1a8144]=_0x12c6f2:types[_0x1a8144]=0x100;else{if(0x40==_0x43b272){let _0x11886c=_0x1a8144+0x1;for(;_0x11886c<_0x1a6a6b&&0x40==types[_0x11886c];)_0x11886c++;let _0x6771c7=_0x1a8144&&0x8==_0x12c6f2||_0x11886c<_0x18f5c8&&0x8==types[_0x11886c]?0x1==_0x2becd6?0x1:0x8:0x100;for(let _0x39b321=_0x1a8144;_0x39b321<_0x11886c;_0x39b321++)types[_0x39b321]=_0x6771c7;_0x1a8144=_0x11886c-0x1;}else 0x8==_0x43b272&&0x1==_0x2becd6&&(types[_0x1a8144]=0x1);}_0x12c6f2=_0x43b272,0x7&_0x43b272&&(_0x2becd6=_0x43b272);}}}function processBracketPairs(_0x4e2a0d,_0x4b6dc5,_0x124261,_0x4b956d,_0x21385e){let _0x12bb4f=0x1==_0x21385e?0x2:0x1;for(let _0x20b161=0x0,_0xf8160e=0x0,_0x1e1191=0x0;_0x20b161<=_0x4b956d['length'];_0x20b161++){let _0x3d274e=_0x20b161?_0x4b956d[_0x20b161-0x1]['to']:_0x4b6dc5,_0x20f83a=_0x20b161<_0x4b956d['length']?_0x4b956d[_0x20b161]['from']:_0x124261;for(let _0x2f330a,_0x686a60,_0x1b15bf,_0x107d72=_0x3d274e;_0x107d72<_0x20f83a;_0x107d72++)if(_0x686a60=Brackets[_0x2f330a=_0x4e2a0d['charCodeAt'](_0x107d72)]){if(_0x686a60<0x0){for(let _0x1b2ba6=_0xf8160e-0x3;_0x1b2ba6>=0x0;_0x1b2ba6-=0x3)if(BracketStack[_0x1b2ba6+0x1]==-_0x686a60){let _0x91ad13=BracketStack[_0x1b2ba6+0x2],_0x383c20=0x2&_0x91ad13?_0x21385e:0x4&_0x91ad13?0x1&_0x91ad13?_0x12bb4f:_0x21385e:0x0;_0x383c20&&(types[_0x107d72]=types[BracketStack[_0x1b2ba6]]=_0x383c20),_0xf8160e=_0x1b2ba6;break;}}else{if(0xbd==BracketStack['length'])break;BracketStack[_0xf8160e++]=_0x107d72,BracketStack[_0xf8160e++]=_0x2f330a,BracketStack[_0xf8160e++]=_0x1e1191;}}else{if(0x2==(_0x1b15bf=types[_0x107d72])||0x1==_0x1b15bf){let _0x390aa6=_0x1b15bf==_0x21385e;_0x1e1191=_0x390aa6?0x0:0x1;for(let _0x3932a0=_0xf8160e-0x3;_0x3932a0>=0x0;_0x3932a0-=0x3){let _0x1e6b60=BracketStack[_0x3932a0+0x2];if(0x2&_0x1e6b60)break;if(_0x390aa6)BracketStack[_0x3932a0+0x2]|=0x2;else{if(0x4&_0x1e6b60)break;BracketStack[_0x3932a0+0x2]|=0x4;}}}}}}function processNeutrals(_0xc2ded0,_0x4a5bf4,_0x129308,_0x58deb3){for(let _0x377f70=0x0,_0x3f09af=_0x58deb3;_0x377f70<=_0x129308['length'];_0x377f70++){let _0x266503=_0x377f70?_0x129308[_0x377f70-0x1]['to']:_0xc2ded0,_0x3ee9a6=_0x377f70<_0x129308['length']?_0x129308[_0x377f70]['from']:_0x4a5bf4;for(let _0xfd9818=_0x266503;_0xfd9818<_0x3ee9a6;){let _0x21f01e=types[_0xfd9818];if(0x100==_0x21f01e){let _0x43a7ad=_0xfd9818+0x1;for(;;)if(_0x43a7ad==_0x3ee9a6){if(_0x377f70==_0x129308['length'])break;_0x43a7ad=_0x129308[_0x377f70++]['to'],_0x3ee9a6=_0x377f70<_0x129308['length']?_0x129308[_0x377f70]['from']:_0x4a5bf4;}else{if(0x100!=types[_0x43a7ad])break;_0x43a7ad++;}let _0x23aac9=0x1==_0x3f09af,_0x30e6ab=_0x23aac9==(0x1==(_0x43a7ad<_0x4a5bf4?types[_0x43a7ad]:_0x58deb3))?_0x23aac9?0x1:0x2:_0x58deb3;for(let _0x432653=_0x43a7ad,_0x3819c1=_0x377f70,_0xa1b4c5=_0x3819c1?_0x129308[_0x3819c1-0x1]['to']:_0xc2ded0;_0x432653>_0xfd9818;)_0x432653==_0xa1b4c5&&(_0x432653=_0x129308[--_0x3819c1]['from'],_0xa1b4c5=_0x3819c1?_0x129308[_0x3819c1-0x1]['to']:_0xc2ded0),types[--_0x432653]=_0x30e6ab;_0xfd9818=_0x43a7ad;}else _0x3f09af=_0x21f01e,_0xfd9818++;}}}function emitSpans(_0x3a551d,_0x10c5e6,_0x19b8b3,_0x1958a0,_0x3a133a,_0x3b1c5a,_0x2067e5){let _0x176a8e=_0x1958a0%0x2?0x2:0x1;if(_0x1958a0%0x2==_0x3a133a%0x2)for(let _0x5a071a=_0x10c5e6,_0x175eb6=0x0;_0x5a071a<_0x19b8b3;){let _0x533171=!0x0,_0x4298aa=!0x1;if(_0x175eb6==_0x3b1c5a['length']||_0x5a071a<_0x3b1c5a[_0x175eb6]['from']){let _0x1a9fd2=types[_0x5a071a];_0x1a9fd2!=_0x176a8e&&(_0x533171=!0x1,_0x4298aa=0x10==_0x1a9fd2);}let _0x46546b=_0x533171||0x1!=_0x176a8e?null:[],_0x344605=_0x533171?_0x1958a0:_0x1958a0+0x1,_0x5b297c=_0x5a071a;t:for(;;)if(_0x175eb6<_0x3b1c5a['length']&&_0x5b297c==_0x3b1c5a[_0x175eb6]['from']){if(_0x4298aa)break t;let _0x5d7328=_0x3b1c5a[_0x175eb6];if(!_0x533171)for(let _0x275ec1=_0x5d7328['to'],_0x3f9877=_0x175eb6+0x1;;){if(_0x275ec1==_0x19b8b3)break t;if(!(_0x3f9877<_0x3b1c5a['length']&&_0x3b1c5a[_0x3f9877]['from']==_0x275ec1)){if(types[_0x275ec1]==_0x176a8e)break t;break;}_0x275ec1=_0x3b1c5a[_0x3f9877++]['to'];}if(_0x175eb6++,_0x46546b)_0x46546b['push'](_0x5d7328);else _0x5d7328['from']>_0x5a071a&&_0x2067e5['push'](new BidiSpan(_0x5a071a,_0x5d7328['from'],_0x344605)),computeSectionOrder(_0x3a551d,_0x5d7328['direction']==LTR!=!(_0x344605%0x2)?_0x1958a0+0x1:_0x1958a0,_0x3a133a,_0x5d7328['inner'],_0x5d7328['from'],_0x5d7328['to'],_0x2067e5),_0x5a071a=_0x5d7328['to'];_0x5b297c=_0x5d7328['to'];}else{if(_0x5b297c==_0x19b8b3||(_0x533171?types[_0x5b297c]!=_0x176a8e:types[_0x5b297c]==_0x176a8e))break;_0x5b297c++;}_0x46546b?emitSpans(_0x3a551d,_0x5a071a,_0x5b297c,_0x1958a0+0x1,_0x3a133a,_0x46546b,_0x2067e5):_0x5a071a<_0x5b297c&&_0x2067e5['push'](new BidiSpan(_0x5a071a,_0x5b297c,_0x344605)),_0x5a071a=_0x5b297c;}else for(let _0x38d1b9=_0x19b8b3,_0x2407c0=_0x3b1c5a['length'];_0x38d1b9>_0x10c5e6;){let _0x48e5bf=!0x0,_0x516af6=!0x1;if(!_0x2407c0||_0x38d1b9>_0x3b1c5a[_0x2407c0-0x1]['to']){let _0x520f98=types[_0x38d1b9-0x1];_0x520f98!=_0x176a8e&&(_0x48e5bf=!0x1,_0x516af6=0x10==_0x520f98);}let _0x2534ba=_0x48e5bf||0x1!=_0x176a8e?null:[],_0x45d4a2=_0x48e5bf?_0x1958a0:_0x1958a0+0x1,_0x521ef2=_0x38d1b9;t:for(;;)if(_0x2407c0&&_0x521ef2==_0x3b1c5a[_0x2407c0-0x1]['to']){if(_0x516af6)break t;let _0x5bbe9d=_0x3b1c5a[--_0x2407c0];if(!_0x48e5bf)for(let _0x2326c5=_0x5bbe9d['from'],_0x2b9897=_0x2407c0;;){if(_0x2326c5==_0x10c5e6)break t;if(!_0x2b9897||_0x3b1c5a[_0x2b9897-0x1]['to']!=_0x2326c5){if(types[_0x2326c5-0x1]==_0x176a8e)break t;break;}_0x2326c5=_0x3b1c5a[--_0x2b9897]['from'];}if(_0x2534ba)_0x2534ba['push'](_0x5bbe9d);else _0x5bbe9d['to']<_0x38d1b9&&_0x2067e5['push'](new BidiSpan(_0x5bbe9d['to'],_0x38d1b9,_0x45d4a2)),computeSectionOrder(_0x3a551d,_0x5bbe9d['direction']==LTR!=!(_0x45d4a2%0x2)?_0x1958a0+0x1:_0x1958a0,_0x3a133a,_0x5bbe9d['inner'],_0x5bbe9d['from'],_0x5bbe9d['to'],_0x2067e5),_0x38d1b9=_0x5bbe9d['from'];_0x521ef2=_0x5bbe9d['from'];}else{if(_0x521ef2==_0x10c5e6||(_0x48e5bf?types[_0x521ef2-0x1]!=_0x176a8e:types[_0x521ef2-0x1]==_0x176a8e))break;_0x521ef2--;}_0x2534ba?emitSpans(_0x3a551d,_0x521ef2,_0x38d1b9,_0x1958a0+0x1,_0x3a133a,_0x2534ba,_0x2067e5):_0x521ef2<_0x38d1b9&&_0x2067e5['push'](new BidiSpan(_0x521ef2,_0x38d1b9,_0x45d4a2)),_0x38d1b9=_0x521ef2;}}function computeSectionOrder(_0x3c8060,_0x37ed9b,_0x492a5f,_0x9db2a7,_0x355567,_0x1590ff,_0x268206){let _0x33331c=_0x37ed9b%0x2?0x2:0x1;computeCharTypes(_0x3c8060,_0x355567,_0x1590ff,_0x9db2a7,_0x33331c),processBracketPairs(_0x3c8060,_0x355567,_0x1590ff,_0x9db2a7,_0x33331c),processNeutrals(_0x355567,_0x1590ff,_0x9db2a7,_0x33331c),emitSpans(_0x3c8060,_0x355567,_0x1590ff,_0x37ed9b,_0x492a5f,_0x9db2a7,_0x268206);}function computeOrder(_0x187ee1,_0x45f530,_0x569e3b){if(!_0x187ee1)return[new BidiSpan(0x0,0x0,_0x45f530==RTL?0x1:0x0)];if(_0x45f530==LTR&&!_0x569e3b['length']&&!BidiRE['test'](_0x187ee1))return trivialOrder(_0x187ee1['length']);if(_0x569e3b['length']){for(;_0x187ee1['length']>types['length'];)types[types['length']]=0x100;}let _0x5da0e3=[],_0xab154a=_0x45f530==LTR?0x0:0x1;return computeSectionOrder(_0x187ee1,_0xab154a,_0xab154a,_0x569e3b,0x0,_0x187ee1['length'],_0x5da0e3),_0x5da0e3;}function trivialOrder(_0x2c162d){return[new BidiSpan(0x0,_0x2c162d,0x0)];}let movedOver='';function moveVisually(_0x38d837,_0x2eec87,_0x8462a2,_0x36879c,_0x20e15c){var _0x1c67e0;let _0x4f33f4=_0x36879c['head']-_0x38d837['from'],_0xcfbcd8=BidiSpan['find'](_0x2eec87,_0x4f33f4,null!==(_0x1c67e0=_0x36879c['bidiLevel'])&&void 0x0!==_0x1c67e0?_0x1c67e0:-0x1,_0x36879c['assoc']),_0x3759f7=_0x2eec87[_0xcfbcd8],_0x5c1c10=_0x3759f7['side'](_0x20e15c,_0x8462a2);if(_0x4f33f4==_0x5c1c10){let _0x2c8652=_0xcfbcd8+=_0x20e15c?0x1:-0x1;if(_0x2c8652<0x0||_0x2c8652>=_0x2eec87['length'])return null;_0x3759f7=_0x2eec87[_0xcfbcd8=_0x2c8652],_0x4f33f4=_0x3759f7['side'](!_0x20e15c,_0x8462a2),_0x5c1c10=_0x3759f7['side'](_0x20e15c,_0x8462a2);}let _0x433fec=findClusterBreak(_0x38d837['text'],_0x4f33f4,_0x3759f7['forward'](_0x20e15c,_0x8462a2));(_0x433fec<_0x3759f7['from']||_0x433fec>_0x3759f7['to'])&&(_0x433fec=_0x5c1c10),movedOver=_0x38d837['text']['slice'](Math['min'](_0x4f33f4,_0x433fec),Math['max'](_0x4f33f4,_0x433fec));let _0x46e7f4=_0xcfbcd8==(_0x20e15c?_0x2eec87['length']-0x1:0x0)?null:_0x2eec87[_0xcfbcd8+(_0x20e15c?0x1:-0x1)];return _0x46e7f4&&_0x433fec==_0x5c1c10&&_0x46e7f4['level']+(_0x20e15c?0x0:0x1)<_0x3759f7['level']?EditorSelection['cursor'](_0x46e7f4['side'](!_0x20e15c,_0x8462a2)+_0x38d837['from'],_0x46e7f4['forward'](_0x20e15c,_0x8462a2)?0x1:-0x1,_0x46e7f4['level']):EditorSelection['cursor'](_0x433fec+_0x38d837['from'],_0x3759f7['forward'](_0x20e15c,_0x8462a2)?-0x1:0x1,_0x3759f7['level']);}function autoDirection(_0xb3082d,_0x2ed91c,_0x27388b){for(let _0xcb378f=_0x2ed91c;_0xcb378f<_0x27388b;_0xcb378f++){let _0x2385f3=charType(_0xb3082d['charCodeAt'](_0xcb378f));if(0x1==_0x2385f3)return LTR;if(0x2==_0x2385f3||0x4==_0x2385f3)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':_0x91d374=>_0x91d374['some'](_0x22207e=>_0x22207e)}),nativeSelectionHidden=Facet['define']({'combine':_0x5ba354=>_0x5ba354['some'](_0x377671=>_0x377671)}),scrollHandler=Facet['define']();class ScrollTarget{constructor(_0x59af5f,_0x58d0a8='nearest',_0x1b0b24='nearest',_0x5ea834=0x5,_0x24ee58=0x5,_0xafce48=!0x1){this['range']=_0x59af5f,this['y']=_0x58d0a8,this['x']=_0x1b0b24,this['yMargin']=_0x5ea834,this['xMargin']=_0x24ee58,this['isSnapshot']=_0xafce48;}['map'](_0x277d5a){return _0x277d5a['empty']?this:new ScrollTarget(this['range']['map'](_0x277d5a),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}['clip'](_0x76d79c){return this['range']['to']<=_0x76d79c['doc']['length']?this:new ScrollTarget(EditorSelection['cursor'](_0x76d79c['doc']['length']),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}}const scrollIntoView$1=StateEffect['define']({'map':(t,_0x1026a4)=>t['map'](_0x1026a4)}),setEditContextFormatting=StateEffect['define']();function logException(_0x27d3f2,_0xfea1e9,_0x4239e2){let _0x5990d5=_0x27d3f2['facet'](exceptionSink);_0x5990d5['length']?_0x5990d5[0x0](_0xfea1e9):window['onerror']&&window['onerror'](String(_0xfea1e9),_0x4239e2,void 0x0,void 0x0,_0xfea1e9)||(_0x4239e2?console['error'](_0x4239e2+':',_0xfea1e9):console['error'](_0xfea1e9));}const editable=Facet['define']({'combine':_0x3db778=>!_0x3db778['length']||_0x3db778[0x0]});let nextPluginID=0x0;const viewPlugin=Facet['define']({'combine':_0x116455=>_0x116455['filter']((_0x2fae96,_0x1a2eb1)=>{for(let _0x5aadf9=0x0;_0x5aadf9<_0x1a2eb1;_0x5aadf9++)if(_0x116455[_0x5aadf9]['plugin']==_0x2fae96['plugin'])return!0x1;return!0x0;})});class ViewPlugin{constructor(_0x5782dc,_0x40fcd0,_0x50c045,_0x1bda5f,_0x37e85a){this['id']=_0x5782dc,this['create']=_0x40fcd0,this['domEventHandlers']=_0x50c045,this['domEventObservers']=_0x1bda5f,this['baseExtensions']=_0x37e85a(this),this['extension']=this['baseExtensions']['concat'](viewPlugin['of']({'plugin':this,'arg':void 0x0}));}['of'](_0xbb4e3a){return this['baseExtensions']['concat'](viewPlugin['of']({'plugin':this,'arg':_0xbb4e3a}));}static['define'](_0x1f8a23,_0x2e63e2){const {eventHandlers:_0x5aa6a6,eventObservers:_0x1b9dbf,provide:_0x12375b,decorations:_0x1f6d3f}=_0x2e63e2||{};return new ViewPlugin(nextPluginID++,_0x1f8a23,_0x5aa6a6,_0x1b9dbf,_0x5a3042=>{let _0x284c72=[];return _0x1f6d3f&&_0x284c72['push'](decorations['of'](_0x217770=>{let _0x198c1d=_0x217770['plugin'](_0x5a3042);return _0x198c1d?_0x1f6d3f(_0x198c1d):Decoration['none'];})),_0x12375b&&_0x284c72['push'](_0x12375b(_0x5a3042)),_0x284c72;});}static['fromClass'](_0x1896ff,_0x1e64d9){return ViewPlugin['define']((_0x2d54a2,_0x10ac61)=>new _0x1896ff(_0x2d54a2,_0x10ac61),_0x1e64d9);}}class PluginInstance{constructor(_0x522a06){this['spec']=_0x522a06,this['mustUpdate']=null,this['value']=null;}get['plugin'](){return this['spec']&&this['spec']['plugin'];}['update'](_0x246972){if(this['value']){if(this['mustUpdate']){let _0x3d3ce1=this['mustUpdate'];if(this['mustUpdate']=null,this['value']['update'])try{this['value']['update'](_0x3d3ce1);}catch(_0x263c83){if(logException(_0x3d3ce1['state'],_0x263c83,'CodeMirror\x20plugin\x20crashed'),this['value']['destroy'])try{this['value']['destroy']();}catch(_0x331c76){}this['deactivate']();}}}else{if(this['spec'])try{this['value']=this['spec']['plugin']['create'](_0x246972,this['spec']['arg']);}catch(_0x20aa44){logException(_0x246972['state'],_0x20aa44,'CodeMirror\x20plugin\x20crashed'),this['deactivate']();}}return this;}['destroy'](_0x5af55a){var _0x40cf70;if(null===(_0x40cf70=this['value'])||void 0x0===_0x40cf70?void 0x0:_0x40cf70['destroy'])try{this['value']['destroy']();}catch(_0x717d38){logException(_0x5af55a['state'],_0x717d38,'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(_0x2691d7,_0x360b13){let _0x41b6fa=_0x2691d7['state']['facet'](bidiIsolatedRanges);if(!_0x41b6fa['length'])return _0x41b6fa;let _0x28338b=_0x41b6fa['map'](_0x54e5fe=>_0x54e5fe instanceof Function?_0x54e5fe(_0x2691d7):_0x54e5fe),_0x3ac1ab=[];return RangeSet['spans'](_0x28338b,_0x360b13['from'],_0x360b13['to'],{'point'(){},'span'(_0x29a267,_0x326a60,_0x46841a,_0x32a850){let _0x579915=_0x29a267-_0x360b13['from'],_0x1ffa39=_0x326a60-_0x360b13['from'],_0x4c0cbc=_0x3ac1ab;for(let _0x55ae5f=_0x46841a['length']-0x1;_0x55ae5f>=0x0;_0x55ae5f--,_0x32a850--){let _0x14da91,_0x298213=_0x46841a[_0x55ae5f]['spec']['bidiIsolate'];if(null==_0x298213&&(_0x298213=autoDirection(_0x360b13['text'],_0x579915,_0x1ffa39)),_0x32a850>0x0&&_0x4c0cbc['length']&&(_0x14da91=_0x4c0cbc[_0x4c0cbc['length']-0x1])['to']==_0x579915&&_0x14da91['direction']==_0x298213)_0x14da91['to']=_0x1ffa39,_0x4c0cbc=_0x14da91['inner'];else{let _0x159305={'from':_0x579915,'to':_0x1ffa39,'direction':_0x298213,'inner':[]};_0x4c0cbc['push'](_0x159305),_0x4c0cbc=_0x159305['inner'];}}}}),_0x3ac1ab;}const scrollMargins=Facet['define']();function getScrollMargins(_0x281887){let _0x5de716=0x0,_0x6064c7=0x0,_0x4c2a84=0x0,_0x463dbf=0x0;for(let _0x1dd127 of _0x281887['state']['facet'](scrollMargins)){let _0x2ace0c=_0x1dd127(_0x281887);_0x2ace0c&&(null!=_0x2ace0c['left']&&(_0x5de716=Math['max'](_0x5de716,_0x2ace0c['left'])),null!=_0x2ace0c['right']&&(_0x6064c7=Math['max'](_0x6064c7,_0x2ace0c['right'])),null!=_0x2ace0c['top']&&(_0x4c2a84=Math['max'](_0x4c2a84,_0x2ace0c['top'])),null!=_0x2ace0c['bottom']&&(_0x463dbf=Math['max'](_0x463dbf,_0x2ace0c['bottom'])));}return{'left':_0x5de716,'right':_0x6064c7,'top':_0x4c2a84,'bottom':_0x463dbf};}const styleModule=Facet['define']();class ChangedRange{constructor(_0x303162,_0x3e9895,_0x5cec57,_0x1969c4){this['fromA']=_0x303162,this['toA']=_0x3e9895,this['fromB']=_0x5cec57,this['toB']=_0x1969c4;}['join'](_0x199063){return new ChangedRange(Math['min'](this['fromA'],_0x199063['fromA']),Math['max'](this['toA'],_0x199063['toA']),Math['min'](this['fromB'],_0x199063['fromB']),Math['max'](this['toB'],_0x199063['toB']));}['addToSet'](_0x41fc9b){let _0x4d9b70=_0x41fc9b['length'],_0x34c727=this;for(;_0x4d9b70>0x0;_0x4d9b70--){let _0x10a0d3=_0x41fc9b[_0x4d9b70-0x1];if(!(_0x10a0d3['fromA']>_0x34c727['toA'])){if(_0x10a0d3['toA']<_0x34c727['fromA'])break;_0x34c727=_0x34c727['join'](_0x10a0d3),_0x41fc9b['splice'](_0x4d9b70-0x1,0x1);}}return _0x41fc9b['splice'](_0x4d9b70,0x0,_0x34c727),_0x41fc9b;}static['extendWithRanges'](_0x7d9126,_0x4bbe45){if(0x0==_0x4bbe45['length'])return _0x7d9126;let _0x3aa0f9=[];for(let _0x44e671=0x0,_0x5a8632=0x0,_0x36ecb3=0x0,_0x158b27=0x0;;_0x44e671++){let _0x306aee=_0x44e671==_0x7d9126['length']?null:_0x7d9126[_0x44e671],_0x2f637e=_0x36ecb3-_0x158b27,_0x1ec959=_0x306aee?_0x306aee['fromB']:0x3b9aca00;for(;_0x5a8632<_0x4bbe45['length']&&_0x4bbe45[_0x5a8632]<_0x1ec959;){let _0x38309b=_0x4bbe45[_0x5a8632],_0x2f6d27=_0x4bbe45[_0x5a8632+0x1],_0x575caf=Math['max'](_0x158b27,_0x38309b),_0x3f55e4=Math['min'](_0x1ec959,_0x2f6d27);if(_0x575caf<=_0x3f55e4&&new ChangedRange(_0x575caf+_0x2f637e,_0x3f55e4+_0x2f637e,_0x575caf,_0x3f55e4)['addToSet'](_0x3aa0f9),_0x2f6d27>_0x1ec959)break;_0x5a8632+=0x2;}if(!_0x306aee)return _0x3aa0f9;new ChangedRange(_0x306aee['fromA'],_0x306aee['toA'],_0x306aee['fromB'],_0x306aee['toB'])['addToSet'](_0x3aa0f9),_0x36ecb3=_0x306aee['toA'],_0x158b27=_0x306aee['toB'];}}}class ViewUpdate{constructor(_0x2d627a,_0x404673,_0x247cd0){this['view']=_0x2d627a,this['state']=_0x404673,this['transactions']=_0x247cd0,this['flags']=0x0,this['startState']=_0x2d627a['state'],this['changes']=ChangeSet['empty'](this['startState']['doc']['length']);for(let _0x4a1470 of _0x247cd0)this['changes']=this['changes']['compose'](_0x4a1470['changes']);let _0x16bd64=[];this['changes']['iterChangedRanges']((_0x28de77,_0x2a68a7,_0xa5b9e,_0x27bf4b)=>_0x16bd64['push'](new ChangedRange(_0x28de77,_0x2a68a7,_0xa5b9e,_0x27bf4b))),this['changedRanges']=_0x16bd64;}static['create'](_0x223ff0,_0x3daae5,_0xe513e9){return new ViewUpdate(_0x223ff0,_0x3daae5,_0xe513e9);}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'](_0xa5cda8=>_0xa5cda8['selection']);}get['empty'](){return 0x0==this['flags']&&0x0==this['transactions']['length'];}}class DocView extends ContentView{get['length'](){return this['view']['state']['doc']['length'];}constructor(_0x444eeb){super(),this['view']=_0x444eeb,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'](_0x444eeb['contentDOM']),this['children']=[new LineView()],this['children'][0x0]['setParent'](this),this['updateDeco'](),this['updateInner']([new ChangedRange(0x0,0x0,0x0,_0x444eeb['state']['doc']['length'])],0x0,null);}['update'](_0x456c05){var _0x4f26a8;let _0x17488c=_0x456c05['changedRanges'];this['minWidth']>0x0&&_0x17488c['length']&&(_0x17488c['every'](({fromA:_0x28b449,toA:_0x1f0c33})=>_0x1f0c33<this['minWidthFrom']||_0x28b449>this['minWidthTo'])?(this['minWidthFrom']=_0x456c05['changes']['mapPos'](this['minWidthFrom'],0x1),this['minWidthTo']=_0x456c05['changes']['mapPos'](this['minWidthTo'],0x1)):this['minWidth']=this['minWidthFrom']=this['minWidthTo']=0x0),this['updateEditContextFormatting'](_0x456c05);let _0x192a3f=-0x1;this['view']['inputState']['composing']>=0x0&&!this['view']['observer']['editContext']&&((null===(_0x4f26a8=this['domChanged'])||void 0x0===_0x4f26a8?void 0x0:_0x4f26a8['newSel'])?_0x192a3f=this['domChanged']['newSel']['head']:touchesComposition(_0x456c05['changes'],this['hasComposition'])||_0x456c05['selectionSet']||(_0x192a3f=_0x456c05['state']['selection']['main']['head']));let _0x3c0d69=_0x192a3f>-0x1?findCompositionRange(this['view'],_0x456c05['changes'],_0x192a3f):null;if(this['domChanged']=null,this['hasComposition']){this['markedForComposition']['clear']();let {from:_0xb8aeb2,to:_0x241b4c}=this['hasComposition'];_0x17488c=new ChangedRange(_0xb8aeb2,_0x241b4c,_0x456c05['changes']['mapPos'](_0xb8aeb2,-0x1),_0x456c05['changes']['mapPos'](_0x241b4c,0x1))['addToSet'](_0x17488c['slice']());}this['hasComposition']=_0x3c0d69?{'from':_0x3c0d69['range']['fromB'],'to':_0x3c0d69['range']['toB']}:null,(browser['ie']||browser['chrome'])&&!_0x3c0d69&&_0x456c05&&_0x456c05['state']['doc']['lines']!=_0x456c05['startState']['doc']['lines']&&(this['forceSelection']=!0x0);let _0x3e2f4f=findChangedDeco(this['decorations'],this['updateDeco'](),_0x456c05['changes']);return _0x17488c=ChangedRange['extendWithRanges'](_0x17488c,_0x3e2f4f),!!(0x7&this['flags']||0x0!=_0x17488c['length'])&&(this['updateInner'](_0x17488c,_0x456c05['startState']['doc']['length'],_0x3c0d69),_0x456c05['transactions']['length']&&(this['lastUpdate']=Date['now']()),!0x0);}['updateInner'](_0x44ae7d,_0x18192e,_0x5632a5){this['view']['viewState']['mustMeasureContent']=!0x0,this['updateChildren'](_0x44ae7d,_0x18192e,_0x5632a5);let {observer:_0x5b1296}=this['view'];_0x5b1296['ignore'](()=>{this['dom']['style']['height']=this['view']['viewState']['contentHeight']/this['view']['scaleY']+'px',this['dom']['style']['flexBasis']=this['minWidth']?this['minWidth']+'px':'';let _0x1a28ee=browser['chrome']||browser['ios']?{'node':_0x5b1296['selectionRange']['focusNode'],'written':!0x1}:void 0x0;this['sync'](this['view'],_0x1a28ee),this['flags']&=-0x8,_0x1a28ee&&(_0x1a28ee['written']||_0x5b1296['selectionRange']['focusNode']!=_0x1a28ee['node'])&&(this['forceSelection']=!0x0),this['dom']['style']['height']='';}),this['markedForComposition']['forEach'](_0x446d3e=>_0x446d3e['flags']&=-0x9);let _0x256635=[];if(this['view']['viewport']['from']||this['view']['viewport']['to']<this['view']['state']['doc']['length']){for(let _0x240202 of this['children'])_0x240202 instanceof BlockWidgetView&&_0x240202['widget']instanceof BlockGapWidget&&_0x256635['push'](_0x240202['dom']);}_0x5b1296['updateGaps'](_0x256635);}['updateChildren'](_0x21b241,_0x21a9c6,_0x240b94){let _0x36fb39=_0x240b94?_0x240b94['range']['addToSet'](_0x21b241['slice']()):_0x21b241,_0x351b8e=this['childCursor'](_0x21a9c6);for(let _0x27f426=_0x36fb39['length']-0x1;;_0x27f426--){let _0x1bb17f=_0x27f426>=0x0?_0x36fb39[_0x27f426]:null;if(!_0x1bb17f)break;let _0x1e1c63,_0x3ab5ee,_0x3d7eee,_0x21d7de,{fromA:_0x4076ba,toA:_0x5c7a69,fromB:_0x28a650,toB:_0xab2e44}=_0x1bb17f;if(_0x240b94&&_0x240b94['range']['fromB']<_0xab2e44&&_0x240b94['range']['toB']>_0x28a650){let _0x177041=ContentBuilder['build'](this['view']['state']['doc'],_0x28a650,_0x240b94['range']['fromB'],this['decorations'],this['dynamicDecorationMap']),_0x5f581e=ContentBuilder['build'](this['view']['state']['doc'],_0x240b94['range']['toB'],_0xab2e44,this['decorations'],this['dynamicDecorationMap']);_0x3ab5ee=_0x177041['breakAtStart'],_0x3d7eee=_0x177041['openStart'],_0x21d7de=_0x5f581e['openEnd'];let _0x17df14=this['compositionView'](_0x240b94);_0x5f581e['breakAtStart']?_0x17df14['breakAfter']=0x1:_0x5f581e['content']['length']&&_0x17df14['merge'](_0x17df14['length'],_0x17df14['length'],_0x5f581e['content'][0x0],!0x1,_0x5f581e['openStart'],0x0)&&(_0x17df14['breakAfter']=_0x5f581e['content'][0x0]['breakAfter'],_0x5f581e['content']['shift']()),_0x177041['content']['length']&&_0x17df14['merge'](0x0,0x0,_0x177041['content'][_0x177041['content']['length']-0x1],!0x0,0x0,_0x177041['openEnd'])&&_0x177041['content']['pop'](),_0x1e1c63=_0x177041['content']['concat'](_0x17df14)['concat'](_0x5f581e['content']);}else({content:_0x1e1c63,breakAtStart:_0x3ab5ee,openStart:_0x3d7eee,openEnd:_0x21d7de}=ContentBuilder['build'](this['view']['state']['doc'],_0x28a650,_0xab2e44,this['decorations'],this['dynamicDecorationMap']));let {i:_0x41fa97,off:_0x4b3cd4}=_0x351b8e['findPos'](_0x5c7a69,0x1),{i:_0x5bf212,off:_0x52f0a0}=_0x351b8e['findPos'](_0x4076ba,-0x1);replaceRange(this,_0x5bf212,_0x52f0a0,_0x41fa97,_0x4b3cd4,_0x1e1c63,_0x3ab5ee,_0x3d7eee,_0x21d7de);}_0x240b94&&this['fixCompositionDOM'](_0x240b94);}['updateEditContextFormatting'](_0x4f91ae){this['editContextFormatting']=this['editContextFormatting']['map'](_0x4f91ae['changes']);for(let _0x2280ef of _0x4f91ae['transactions'])for(let _0x5b19bf of _0x2280ef['effects'])_0x5b19bf['is'](setEditContextFormatting)&&(this['editContextFormatting']=_0x5b19bf['value']);}['compositionView'](_0x3a108c){let _0x37a0a0=new TextView(_0x3a108c['text']['nodeValue']);_0x37a0a0['flags']|=0x8;for(let {deco:_0x31dd03}of _0x3a108c['marks'])_0x37a0a0=new MarkView(_0x31dd03,[_0x37a0a0],_0x37a0a0['length']);let _0x328df6=new LineView();return _0x328df6['append'](_0x37a0a0,0x0),_0x328df6;}['fixCompositionDOM'](_0x15801f){let _0xf357b3=(_0x1fe735,_0x1b9586)=>{_0x1b9586['flags']|=0x8|(_0x1b9586['children']['some'](_0xff8616=>0x7&_0xff8616['flags'])?0x1:0x0),this['markedForComposition']['add'](_0x1b9586);let _0x4828da=ContentView['get'](_0x1fe735);_0x4828da&&_0x4828da!=_0x1b9586&&(_0x4828da['dom']=null),_0x1b9586['setDOM'](_0x1fe735);},_0x3be9b2=this['childPos'](_0x15801f['range']['fromB'],0x1),_0x35f387=this['children'][_0x3be9b2['i']];_0xf357b3(_0x15801f['line'],_0x35f387);for(let _0x3ee511=_0x15801f['marks']['length']-0x1;_0x3ee511>=-0x1;_0x3ee511--)_0x3be9b2=_0x35f387['childPos'](_0x3be9b2['off'],0x1),_0x35f387=_0x35f387['children'][_0x3be9b2['i']],_0xf357b3(_0x3ee511>=0x0?_0x15801f['marks'][_0x3ee511]['node']:_0x15801f['text'],_0x35f387);}['updateSelection'](_0x59d3e4=!0x1,_0x3a1ab5=!0x1){!_0x59d3e4&&this['view']['observer']['selectionRange']['focusNode']||this['view']['observer']['readSelectionRange']();let _0xa8f65a=this['view']['root']['activeElement'],_0xc71e80=_0xa8f65a==this['dom'],_0x365f88=!_0xc71e80&&!(this['view']['state']['facet'](editable)||this['dom']['tabIndex']>-0x1)&&hasSelection(this['dom'],this['view']['observer']['selectionRange'])&&!(_0xa8f65a&&this['dom']['contains'](_0xa8f65a));if(!(_0xc71e80||_0x3a1ab5||_0x365f88))return;let _0x5bf1dd=this['forceSelection'];this['forceSelection']=!0x1;let _0x407eb4=this['view']['state']['selection']['main'],_0x1e9595=this['moveToLine'](this['domAtPos'](_0x407eb4['anchor'])),_0x4cf5f9=_0x407eb4['empty']?_0x1e9595:this['moveToLine'](this['domAtPos'](_0x407eb4['head']));if(browser['gecko']&&_0x407eb4['empty']&&!this['hasComposition']&&betweenUneditable(_0x1e9595)){let _0x3ee39c=document['createTextNode']('');this['view']['observer']['ignore'](()=>_0x1e9595['node']['insertBefore'](_0x3ee39c,_0x1e9595['node']['childNodes'][_0x1e9595['offset']]||null)),_0x1e9595=_0x4cf5f9=new DOMPos(_0x3ee39c,0x0),_0x5bf1dd=!0x0;}let _0x39a03a=this['view']['observer']['selectionRange'];!_0x5bf1dd&&_0x39a03a['focusNode']&&(isEquivalentPosition(_0x1e9595['node'],_0x1e9595['offset'],_0x39a03a['anchorNode'],_0x39a03a['anchorOffset'])&&isEquivalentPosition(_0x4cf5f9['node'],_0x4cf5f9['offset'],_0x39a03a['focusNode'],_0x39a03a['focusOffset'])||this['suppressWidgetCursorChange'](_0x39a03a,_0x407eb4))||(this['view']['observer']['ignore'](()=>{browser['android']&&browser['chrome']&&this['dom']['contains'](_0x39a03a['focusNode'])&&inUneditable(_0x39a03a['focusNode'],this['dom'])&&(this['dom']['blur'](),this['dom']['focus']({'preventScroll':!0x0}));let _0x7ef830=getSelection(this['view']['root']);if(_0x7ef830){if(_0x407eb4['empty']){if(browser['gecko']){let _0x46b788=nextToUneditable(_0x1e9595['node'],_0x1e9595['offset']);if(_0x46b788&&0x3!=_0x46b788){let _0x553a0=(0x1==_0x46b788?textNodeBefore:textNodeAfter)(_0x1e9595['node'],_0x1e9595['offset']);_0x553a0&&(_0x1e9595=new DOMPos(_0x553a0['node'],_0x553a0['offset']));}}_0x7ef830['collapse'](_0x1e9595['node'],_0x1e9595['offset']),null!=_0x407eb4['bidiLevel']&&void 0x0!==_0x7ef830['caretBidiLevel']&&(_0x7ef830['caretBidiLevel']=_0x407eb4['bidiLevel']);}else{if(_0x7ef830['extend']){_0x7ef830['collapse'](_0x1e9595['node'],_0x1e9595['offset']);try{_0x7ef830['extend'](_0x4cf5f9['node'],_0x4cf5f9['offset']);}catch(_0x1fffca){}}else{let _0x520c79=document['createRange']();_0x407eb4['anchor']>_0x407eb4['head']&&([_0x1e9595,_0x4cf5f9]=[_0x4cf5f9,_0x1e9595]),_0x520c79['setEnd'](_0x4cf5f9['node'],_0x4cf5f9['offset']),_0x520c79['setStart'](_0x1e9595['node'],_0x1e9595['offset']),_0x7ef830['removeAllRanges'](),_0x7ef830['addRange'](_0x520c79);}}}else;_0x365f88&&this['view']['root']['activeElement']==this['dom']&&(this['dom']['blur'](),_0xa8f65a&&_0xa8f65a['focus']());}),this['view']['observer']['setSelectionRange'](_0x1e9595,_0x4cf5f9)),this['impreciseAnchor']=_0x1e9595['precise']?null:new DOMPos(_0x39a03a['anchorNode'],_0x39a03a['anchorOffset']),this['impreciseHead']=_0x4cf5f9['precise']?null:new DOMPos(_0x39a03a['focusNode'],_0x39a03a['focusOffset']);}['suppressWidgetCursorChange'](_0x9c8496,_0x3f7a14){return this['hasComposition']&&_0x3f7a14['empty']&&isEquivalentPosition(_0x9c8496['focusNode'],_0x9c8496['focusOffset'],_0x9c8496['anchorNode'],_0x9c8496['anchorOffset'])&&this['posFromDOM'](_0x9c8496['focusNode'],_0x9c8496['focusOffset'])==_0x3f7a14['head'];}['enforceCursorAssoc'](){if(this['hasComposition'])return;let {view:_0xbcdec}=this,_0x3884fc=_0xbcdec['state']['selection']['main'],_0x1b0f53=getSelection(_0xbcdec['root']),{anchorNode:_0x5bd716,anchorOffset:_0x70dfad}=_0xbcdec['observer']['selectionRange'];if(!(_0x1b0f53&&_0x3884fc['empty']&&_0x3884fc['assoc']&&_0x1b0f53['modify']))return;let _0x48abdf=LineView['find'](this,_0x3884fc['head']);if(!_0x48abdf)return;let _0x353d71=_0x48abdf['posAtStart'];if(_0x3884fc['head']==_0x353d71||_0x3884fc['head']==_0x353d71+_0x48abdf['length'])return;let _0x5031b9=this['coordsAt'](_0x3884fc['head'],-0x1),_0x3643a3=this['coordsAt'](_0x3884fc['head'],0x1);if(!_0x5031b9||!_0x3643a3||_0x5031b9['bottom']>_0x3643a3['top'])return;let _0x445eb4=this['domAtPos'](_0x3884fc['head']+_0x3884fc['assoc']);_0x1b0f53['collapse'](_0x445eb4['node'],_0x445eb4['offset']),_0x1b0f53['modify']('move',_0x3884fc['assoc']<0x0?'forward':'backward','lineboundary'),_0xbcdec['observer']['readSelectionRange']();let _0x1c82b9=_0xbcdec['observer']['selectionRange'];_0xbcdec['docView']['posFromDOM'](_0x1c82b9['anchorNode'],_0x1c82b9['anchorOffset'])!=_0x3884fc['from']&&_0x1b0f53['collapse'](_0x5bd716,_0x70dfad);}['moveToLine'](_0x61c6de){let _0x13cd93,_0x260098=this['dom'];if(_0x61c6de['node']!=_0x260098)return _0x61c6de;for(let _0x1d8202=_0x61c6de['offset'];!_0x13cd93&&_0x1d8202<_0x260098['childNodes']['length'];_0x1d8202++){let _0x4489dc=ContentView['get'](_0x260098['childNodes'][_0x1d8202]);_0x4489dc instanceof LineView&&(_0x13cd93=_0x4489dc['domAtPos'](0x0));}for(let _0x37c1ab=_0x61c6de['offset']-0x1;!_0x13cd93&&_0x37c1ab>=0x0;_0x37c1ab--){let _0x9c9e71=ContentView['get'](_0x260098['childNodes'][_0x37c1ab]);_0x9c9e71 instanceof LineView&&(_0x13cd93=_0x9c9e71['domAtPos'](_0x9c9e71['length']));}return _0x13cd93?new DOMPos(_0x13cd93['node'],_0x13cd93['offset'],!0x0):_0x61c6de;}['nearest'](_0x5db697){for(let _0x5d9824=_0x5db697;_0x5d9824;){let _0x468923=ContentView['get'](_0x5d9824);if(_0x468923&&_0x468923['rootView']==this)return _0x468923;_0x5d9824=_0x5d9824['parentNode'];}return null;}['posFromDOM'](_0x2bba72,_0x428a18){let _0x29a82f=this['nearest'](_0x2bba72);if(!_0x29a82f)throw new RangeError('Trying\x20to\x20find\x20position\x20for\x20a\x20DOM\x20position\x20outside\x20of\x20the\x20document');return _0x29a82f['localPosFromDOM'](_0x2bba72,_0x428a18)+_0x29a82f['posAtStart'];}['domAtPos'](_0xa77885){let {i:_0x952af5,off:_0x488996}=this['childCursor']()['findPos'](_0xa77885,-0x1);for(;_0x952af5<this['children']['length']-0x1;){let _0x506c13=this['children'][_0x952af5];if(_0x488996<_0x506c13['length']||_0x506c13 instanceof LineView)break;_0x952af5++,_0x488996=0x0;}return this['children'][_0x952af5]['domAtPos'](_0x488996);}['coordsAt'](_0x184824,_0x24abb1){let _0x28440a=null,_0x16c04f=0x0;for(let _0x3356f7=this['length'],_0x444718=this['children']['length']-0x1;_0x444718>=0x0;_0x444718--){let _0x1269bd=this['children'][_0x444718],_0x4afd6a=_0x3356f7-_0x1269bd['breakAfter'],_0xfb9804=_0x4afd6a-_0x1269bd['length'];if(_0x4afd6a<_0x184824)break;if(_0xfb9804<=_0x184824&&(_0xfb9804<_0x184824||_0x1269bd['covers'](-0x1))&&(_0x4afd6a>_0x184824||_0x1269bd['covers'](0x1))&&(!_0x28440a||_0x1269bd instanceof LineView&&!(_0x28440a instanceof LineView&&_0x24abb1>=0x0)))_0x28440a=_0x1269bd,_0x16c04f=_0xfb9804;else{if(_0x28440a&&_0xfb9804==_0x184824&&_0x4afd6a==_0x184824&&_0x1269bd instanceof BlockWidgetView&&Math['abs'](_0x24abb1)<0x2){if(_0x1269bd['deco']['startSide']<0x0)break;_0x444718&&(_0x28440a=null);}}_0x3356f7=_0xfb9804;}return _0x28440a?_0x28440a['coordsAt'](_0x184824-_0x16c04f,_0x24abb1):null;}['coordsForChar'](_0x1413ea){let {i:_0x316e27,off:_0x251020}=this['childPos'](_0x1413ea,0x1),_0x1d519a=this['children'][_0x316e27];if(!(_0x1d519a instanceof LineView))return null;for(;_0x1d519a['children']['length'];){let {i:_0x480d8d,off:_0x5e8f6c}=_0x1d519a['childPos'](_0x251020,0x1);for(;;_0x480d8d++){if(_0x480d8d==_0x1d519a['children']['length'])return null;if((_0x1d519a=_0x1d519a['children'][_0x480d8d])['length'])break;}_0x251020=_0x5e8f6c;}if(!(_0x1d519a instanceof TextView))return null;let _0x5386d9=findClusterBreak(_0x1d519a['text'],_0x251020);if(_0x5386d9==_0x251020)return null;let _0x8cc73e=textRange(_0x1d519a['dom'],_0x251020,_0x5386d9)['getClientRects']();for(let _0x5085f2=0x0;_0x5085f2<_0x8cc73e['length'];_0x5085f2++){let _0x93b419=_0x8cc73e[_0x5085f2];if(_0x5085f2==_0x8cc73e['length']-0x1||_0x93b419['top']<_0x93b419['bottom']&&_0x93b419['left']<_0x93b419['right'])return _0x93b419;}return null;}['measureVisibleLineHeights'](_0x2a8129){let _0x18b296=[],{from:_0x44778e,to:_0x1627e7}=_0x2a8129,_0x4c08e0=this['view']['contentDOM']['clientWidth'],_0x389077=_0x4c08e0>Math['max'](this['view']['scrollDOM']['clientWidth'],this['minWidth'])+0x1,_0x2d2fd5=-0x1,_0x59f71c=this['view']['textDirection']==Direction['LTR'];for(let _0x524b10=0x0,_0x79a021=0x0;_0x79a021<this['children']['length'];_0x79a021++){let _0x389eea=this['children'][_0x79a021],_0x32e71e=_0x524b10+_0x389eea['length'];if(_0x32e71e>_0x1627e7)break;if(_0x524b10>=_0x44778e){let _0x319110=_0x389eea['dom']['getBoundingClientRect']();if(_0x18b296['push'](_0x319110['height']),_0x389077){let _0x3ac116=_0x389eea['dom']['lastChild'],_0x5143f9=_0x3ac116?clientRectsFor(_0x3ac116):[];if(_0x5143f9['length']){let _0x11f6e3=_0x5143f9[_0x5143f9['length']-0x1],_0x5bfc9f=_0x59f71c?_0x11f6e3['right']-_0x319110['left']:_0x319110['right']-_0x11f6e3['left'];_0x5bfc9f>_0x2d2fd5&&(_0x2d2fd5=_0x5bfc9f,this['minWidth']=_0x4c08e0,this['minWidthFrom']=_0x524b10,this['minWidthTo']=_0x32e71e);}}}_0x524b10=_0x32e71e+_0x389eea['breakAfter'];}return _0x18b296;}['textDirectionAt'](_0x11713b){let {i:_0x46cebe}=this['childPos'](_0x11713b,0x1);return'rtl'==getComputedStyle(this['children'][_0x46cebe]['dom'])['direction']?Direction['RTL']:Direction['LTR'];}['measureTextSize'](){for(let _0x14aff1 of this['children'])if(_0x14aff1 instanceof LineView){let _0x199368=_0x14aff1['measureTextSize']();if(_0x199368)return _0x199368;}let _0x5d82ad,_0x13e589,_0x46641d,_0x162a08=document['createElement']('div');return _0x162a08['className']='cm-line',_0x162a08['style']['width']='99999px',_0x162a08['style']['position']='absolute',_0x162a08['textContent']='abc\x20def\x20ghi\x20jkl\x20mno\x20pqr\x20stu',this['view']['observer']['ignore'](()=>{this['dom']['appendChild'](_0x162a08);let _0x48da7d=clientRectsFor(_0x162a08['firstChild'])[0x0];_0x5d82ad=_0x162a08['getBoundingClientRect']()['height'],_0x13e589=_0x48da7d?_0x48da7d['width']/0x1b:0x7,_0x46641d=_0x48da7d?_0x48da7d['height']:_0x5d82ad,_0x162a08['remove']();}),{'lineHeight':_0x5d82ad,'charWidth':_0x13e589,'textHeight':_0x46641d};}['childCursor'](_0x3150c4=this['length']){let _0x55ddb6=this['children']['length'];return _0x55ddb6&&(_0x3150c4-=this['children'][--_0x55ddb6]['length']),new ChildCursor(this['children'],_0x3150c4,_0x55ddb6);}['computeBlockGapDeco'](){let _0x47ff8c=[],_0xb082a9=this['view']['viewState'];for(let _0x3b4c76=0x0,_0x635189=0x0;;_0x635189++){let _0x6be43c=_0x635189==_0xb082a9['viewports']['length']?null:_0xb082a9['viewports'][_0x635189],_0x4f05af=_0x6be43c?_0x6be43c['from']-0x1:this['length'];if(_0x4f05af>_0x3b4c76){let _0x14f921=(_0xb082a9['lineBlockAt'](_0x4f05af)['bottom']-_0xb082a9['lineBlockAt'](_0x3b4c76)['top'])/this['view']['scaleY'];_0x47ff8c['push'](Decoration['replace']({'widget':new BlockGapWidget(_0x14f921),'block':!0x0,'inclusive':!0x0,'isBlockGap':!0x0})['range'](_0x3b4c76,_0x4f05af));}if(!_0x6be43c)break;_0x3b4c76=_0x6be43c['to']+0x1;}return Decoration['set'](_0x47ff8c);}['updateDeco'](){let _0x115ac4=0x1,_0x500c66=this['view']['state']['facet'](decorations)['map'](_0x2dc374=>(this['dynamicDecorationMap'][_0x115ac4++]='function'==typeof _0x2dc374)?_0x2dc374(this['view']):_0x2dc374),_0x1354aa=!0x1,_0x350485=this['view']['state']['facet'](outerDecorations)['map']((_0x44a982,_0x4711f7)=>{let _0x8f8bed='function'==typeof _0x44a982;return _0x8f8bed&&(_0x1354aa=!0x0),_0x8f8bed?_0x44a982(this['view']):_0x44a982;});for(_0x350485['length']&&(this['dynamicDecorationMap'][_0x115ac4++]=_0x1354aa,_0x500c66['push'](RangeSet['join'](_0x350485))),this['decorations']=[this['editContextFormatting'],..._0x500c66,this['computeBlockGapDeco'](),this['view']['viewState']['lineGapDeco']];_0x115ac4<this['decorations']['length'];)this['dynamicDecorationMap'][_0x115ac4++]=!0x1;return this['decorations'];}['scrollIntoView'](_0x3f4df2){if(_0x3f4df2['isSnapshot']){let _0x583e35=this['view']['viewState']['lineBlockAt'](_0x3f4df2['range']['head']);return this['view']['scrollDOM']['scrollTop']=_0x583e35['top']-_0x3f4df2['yMargin'],void(this['view']['scrollDOM']['scrollLeft']=_0x3f4df2['xMargin']);}for(let _0x1d7d41 of this['view']['state']['facet'](scrollHandler))try{if(_0x1d7d41(this['view'],_0x3f4df2['range'],_0x3f4df2))return!0x0;}catch(_0x45bdb3){logException(this['view']['state'],_0x45bdb3,'scroll\x20handler');}let _0x2f4390,{range:_0x3ab344}=_0x3f4df2,_0x4147c0=this['coordsAt'](_0x3ab344['head'],_0x3ab344['empty']?_0x3ab344['assoc']:_0x3ab344['head']>_0x3ab344['anchor']?-0x1:0x1);if(!_0x4147c0)return;!_0x3ab344['empty']&&(_0x2f4390=this['coordsAt'](_0x3ab344['anchor'],_0x3ab344['anchor']>_0x3ab344['head']?-0x1:0x1))&&(_0x4147c0={'left':Math['min'](_0x4147c0['left'],_0x2f4390['left']),'top':Math['min'](_0x4147c0['top'],_0x2f4390['top']),'right':Math['max'](_0x4147c0['right'],_0x2f4390['right']),'bottom':Math['max'](_0x4147c0['bottom'],_0x2f4390['bottom'])});let _0x2d92da=getScrollMargins(this['view']),_0x235c5b={'left':_0x4147c0['left']-_0x2d92da['left'],'top':_0x4147c0['top']-_0x2d92da['top'],'right':_0x4147c0['right']+_0x2d92da['right'],'bottom':_0x4147c0['bottom']+_0x2d92da['bottom']},{offsetWidth:_0x515e54,offsetHeight:_0x334b0c}=this['view']['scrollDOM'];scrollRectIntoView(this['view']['scrollDOM'],_0x235c5b,_0x3ab344['head']<_0x3ab344['anchor']?-0x1:0x1,_0x3f4df2['x'],_0x3f4df2['y'],Math['max'](Math['min'](_0x3f4df2['xMargin'],_0x515e54),-_0x515e54),Math['max'](Math['min'](_0x3f4df2['yMargin'],_0x334b0c),-_0x334b0c),this['view']['textDirection']==Direction['LTR']);}}function betweenUneditable(_0x4d3512){return 0x1==_0x4d3512['node']['nodeType']&&_0x4d3512['node']['firstChild']&&(0x0==_0x4d3512['offset']||'false'==_0x4d3512['node']['childNodes'][_0x4d3512['offset']-0x1]['contentEditable'])&&(_0x4d3512['offset']==_0x4d3512['node']['childNodes']['length']||'false'==_0x4d3512['node']['childNodes'][_0x4d3512['offset']]['contentEditable']);}function findCompositionNode(_0x5c0f91,_0x9b78e8){let _0x25f5ba=_0x5c0f91['observer']['selectionRange'];if(!_0x25f5ba['focusNode'])return null;let _0x362ff9=textNodeBefore(_0x25f5ba['focusNode'],_0x25f5ba['focusOffset']),_0x2a0fbb=textNodeAfter(_0x25f5ba['focusNode'],_0x25f5ba['focusOffset']),_0x11225a=_0x362ff9||_0x2a0fbb;if(_0x2a0fbb&&_0x362ff9&&_0x2a0fbb['node']!=_0x362ff9['node']){let _0x447ddd=ContentView['get'](_0x2a0fbb['node']);if(!_0x447ddd||_0x447ddd instanceof TextView&&_0x447ddd['text']!=_0x2a0fbb['node']['nodeValue'])_0x11225a=_0x2a0fbb;else{if(_0x5c0f91['docView']['lastCompositionAfterCursor']){let _0x123ec2=ContentView['get'](_0x362ff9['node']);!_0x123ec2||_0x123ec2 instanceof TextView&&_0x123ec2['text']!=_0x362ff9['node']['nodeValue']||(_0x11225a=_0x2a0fbb);}}}if(_0x5c0f91['docView']['lastCompositionAfterCursor']=_0x11225a!=_0x362ff9,!_0x11225a)return null;let _0x41ae19=_0x9b78e8-_0x11225a['offset'];return{'from':_0x41ae19,'to':_0x41ae19+_0x11225a['node']['nodeValue']['length'],'node':_0x11225a['node']};}function findCompositionRange(_0xd63f0b,_0x49d5cb,_0xe51ad6){let _0x2aa03e=findCompositionNode(_0xd63f0b,_0xe51ad6);if(!_0x2aa03e)return null;let {node:_0x15da87,from:_0x576685,to:_0x511fea}=_0x2aa03e,_0xf39cea=_0x15da87['nodeValue'];if(/[\n\r]/['test'](_0xf39cea))return null;if(_0xd63f0b['state']['doc']['sliceString'](_0x2aa03e['from'],_0x2aa03e['to'])!=_0xf39cea)return null;let _0x413c20=_0x49d5cb['invertedDesc'],_0x3440a0=new ChangedRange(_0x413c20['mapPos'](_0x576685),_0x413c20['mapPos'](_0x511fea),_0x576685,_0x511fea),_0x51e84f=[];for(let _0x3d8d98=_0x15da87['parentNode'];;_0x3d8d98=_0x3d8d98['parentNode']){let _0x5222a8=ContentView['get'](_0x3d8d98);if(_0x5222a8 instanceof MarkView)_0x51e84f['push']({'node':_0x3d8d98,'deco':_0x5222a8['mark']});else{if(_0x5222a8 instanceof LineView||'DIV'==_0x3d8d98['nodeName']&&_0x3d8d98['parentNode']==_0xd63f0b['contentDOM'])return{'range':_0x3440a0,'text':_0x15da87,'marks':_0x51e84f,'line':_0x3d8d98};if(_0x3d8d98==_0xd63f0b['contentDOM'])return null;_0x51e84f['push']({'node':_0x3d8d98,'deco':new MarkDecoration({'inclusive':!0x0,'attributes':getAttrs$1(_0x3d8d98),'tagName':_0x3d8d98['tagName']['toLowerCase']()})});}}}function nextToUneditable(_0x2d0b24,_0x12103f){return 0x1!=_0x2d0b24['nodeType']?0x0:(_0x12103f&&'false'==_0x2d0b24['childNodes'][_0x12103f-0x1]['contentEditable']?0x1:0x0)|(_0x12103f<_0x2d0b24['childNodes']['length']&&'false'==_0x2d0b24['childNodes'][_0x12103f]['contentEditable']?0x2:0x0);}let DecorationComparator$1=class{constructor(){this['changes']=[];}['compareRange'](_0x3211f3,_0xa2d8fd){addRange(_0x3211f3,_0xa2d8fd,this['changes']);}['comparePoint'](_0x3b7693,_0x1adaba){addRange(_0x3b7693,_0x1adaba,this['changes']);}['boundChange'](_0x2398cf){addRange(_0x2398cf,_0x2398cf,this['changes']);}};function findChangedDeco(_0x26b048,_0x1e508c,_0x253bac){let _0x109f24=new DecorationComparator$1();return RangeSet['compare'](_0x26b048,_0x1e508c,_0x253bac,_0x109f24),_0x109f24['changes'];}function inUneditable(_0x350c99,_0x7ccfd0){for(let _0x3df2a6=_0x350c99;_0x3df2a6&&_0x3df2a6!=_0x7ccfd0;_0x3df2a6=_0x3df2a6['assignedSlot']||_0x3df2a6['parentNode'])if(0x1==_0x3df2a6['nodeType']&&'false'==_0x3df2a6['contentEditable'])return!0x0;return!0x1;}function touchesComposition(_0x272a6f,_0x1eb4b5){let _0x2790f4=!0x1;return _0x1eb4b5&&_0x272a6f['iterChangedRanges']((_0x2a4310,_0xe82b2)=>{_0x2a4310<_0x1eb4b5['to']&&_0xe82b2>_0x1eb4b5['from']&&(_0x2790f4=!0x0);}),_0x2790f4;}function groupAt(_0x4b42bc,_0x277f06,_0x120a5a=0x1){let _0x579411=_0x4b42bc['charCategorizer'](_0x277f06),_0x41e790=_0x4b42bc['doc']['lineAt'](_0x277f06),_0x5cc5b3=_0x277f06-_0x41e790['from'];if(0x0==_0x41e790['length'])return EditorSelection['cursor'](_0x277f06);0x0==_0x5cc5b3?_0x120a5a=0x1:_0x5cc5b3==_0x41e790['length']&&(_0x120a5a=-0x1);let _0x7ee9de=_0x5cc5b3,_0x5a8d39=_0x5cc5b3;_0x120a5a<0x0?_0x7ee9de=findClusterBreak(_0x41e790['text'],_0x5cc5b3,!0x1):_0x5a8d39=findClusterBreak(_0x41e790['text'],_0x5cc5b3);let _0x3f1a90=_0x579411(_0x41e790['text']['slice'](_0x7ee9de,_0x5a8d39));for(;_0x7ee9de>0x0;){let _0x52a909=findClusterBreak(_0x41e790['text'],_0x7ee9de,!0x1);if(_0x579411(_0x41e790['text']['slice'](_0x52a909,_0x7ee9de))!=_0x3f1a90)break;_0x7ee9de=_0x52a909;}for(;_0x5a8d39<_0x41e790['length'];){let _0x1fad8b=findClusterBreak(_0x41e790['text'],_0x5a8d39);if(_0x579411(_0x41e790['text']['slice'](_0x5a8d39,_0x1fad8b))!=_0x3f1a90)break;_0x5a8d39=_0x1fad8b;}return EditorSelection['range'](_0x7ee9de+_0x41e790['from'],_0x5a8d39+_0x41e790['from']);}function getdx(_0x24bb62,_0x5b4b84){return _0x5b4b84['left']>_0x24bb62?_0x5b4b84['left']-_0x24bb62:Math['max'](0x0,_0x24bb62-_0x5b4b84['right']);}function getdy(_0x3f1da8,_0x5b0c63){return _0x5b0c63['top']>_0x3f1da8?_0x5b0c63['top']-_0x3f1da8:Math['max'](0x0,_0x3f1da8-_0x5b0c63['bottom']);}function yOverlap(_0x47216d,_0x1a0e75){return _0x47216d['top']<_0x1a0e75['bottom']-0x1&&_0x47216d['bottom']>_0x1a0e75['top']+0x1;}function upTop(_0x562570,_0x4a2393){return _0x4a2393<_0x562570['top']?{'top':_0x4a2393,'left':_0x562570['left'],'right':_0x562570['right'],'bottom':_0x562570['bottom']}:_0x562570;}function upBot(_0x57907e,_0x3ebcaa){return _0x3ebcaa>_0x57907e['bottom']?{'top':_0x57907e['top'],'left':_0x57907e['left'],'right':_0x57907e['right'],'bottom':_0x3ebcaa}:_0x57907e;}function domPosAtCoords(_0x2b232e,_0x54fc49,_0x7e944c){let _0x19e7a4,_0x39d6e0,_0x53c7ce,_0x5b24fd,_0x1e9755,_0x4acb4d,_0x4511a7,_0x24e6f1,_0x491b02=!0x1;for(let _0x5d2226=_0x2b232e['firstChild'];_0x5d2226;_0x5d2226=_0x5d2226['nextSibling']){let _0x2d45aa=clientRectsFor(_0x5d2226);for(let _0x79820e=0x0;_0x79820e<_0x2d45aa['length'];_0x79820e++){let _0x27e698=_0x2d45aa[_0x79820e];_0x39d6e0&&yOverlap(_0x39d6e0,_0x27e698)&&(_0x27e698=upTop(upBot(_0x27e698,_0x39d6e0['bottom']),_0x39d6e0['top']));let _0x582b51=getdx(_0x54fc49,_0x27e698),_0x4080ae=getdy(_0x7e944c,_0x27e698);if(0x0==_0x582b51&&0x0==_0x4080ae)return 0x3==_0x5d2226['nodeType']?domPosInText(_0x5d2226,_0x54fc49,_0x7e944c):domPosAtCoords(_0x5d2226,_0x54fc49,_0x7e944c);(!_0x19e7a4||_0x5b24fd>_0x4080ae||_0x5b24fd==_0x4080ae&&_0x53c7ce>_0x582b51)&&(_0x19e7a4=_0x5d2226,_0x39d6e0=_0x27e698,_0x53c7ce=_0x582b51,_0x5b24fd=_0x4080ae,_0x491b02=!_0x582b51||(_0x54fc49<_0x27e698['left']?_0x79820e>0x0:_0x79820e<_0x2d45aa['length']-0x1)),0x0==_0x582b51?_0x7e944c>_0x27e698['bottom']&&(!_0x4511a7||_0x4511a7['bottom']<_0x27e698['bottom'])?(_0x1e9755=_0x5d2226,_0x4511a7=_0x27e698):_0x7e944c<_0x27e698['top']&&(!_0x24e6f1||_0x24e6f1['top']>_0x27e698['top'])&&(_0x4acb4d=_0x5d2226,_0x24e6f1=_0x27e698):_0x4511a7&&yOverlap(_0x4511a7,_0x27e698)?_0x4511a7=upBot(_0x4511a7,_0x27e698['bottom']):_0x24e6f1&&yOverlap(_0x24e6f1,_0x27e698)&&(_0x24e6f1=upTop(_0x24e6f1,_0x27e698['top']));}}if(_0x4511a7&&_0x4511a7['bottom']>=_0x7e944c?(_0x19e7a4=_0x1e9755,_0x39d6e0=_0x4511a7):_0x24e6f1&&_0x24e6f1['top']<=_0x7e944c&&(_0x19e7a4=_0x4acb4d,_0x39d6e0=_0x24e6f1),!_0x19e7a4)return{'node':_0x2b232e,'offset':0x0};let _0x3f9a71=Math['max'](_0x39d6e0['left'],Math['min'](_0x39d6e0['right'],_0x54fc49));return 0x3==_0x19e7a4['nodeType']?domPosInText(_0x19e7a4,_0x3f9a71,_0x7e944c):_0x491b02&&'false'!=_0x19e7a4['contentEditable']?domPosAtCoords(_0x19e7a4,_0x3f9a71,_0x7e944c):{'node':_0x2b232e,'offset':Array['prototype']['indexOf']['call'](_0x2b232e['childNodes'],_0x19e7a4)+(_0x54fc49>=(_0x39d6e0['left']+_0x39d6e0['right'])/0x2?0x1:0x0)};}function domPosInText(_0x2af6d6,_0x4c2e8a,_0x2c6e05){let _0x92a0c2=_0x2af6d6['nodeValue']['length'],_0x1ea315=-0x1,_0x261032=0x3b9aca00,_0xa7cf8a=0x0;for(let _0x1647d5=0x0;_0x1647d5<_0x92a0c2;_0x1647d5++){let _0x5d1b5f=textRange(_0x2af6d6,_0x1647d5,_0x1647d5+0x1)['getClientRects']();for(let _0x377db3=0x0;_0x377db3<_0x5d1b5f['length'];_0x377db3++){let _0x35edc2=_0x5d1b5f[_0x377db3];if(_0x35edc2['top']==_0x35edc2['bottom'])continue;_0xa7cf8a||(_0xa7cf8a=_0x4c2e8a-_0x35edc2['left']);let _0xa85822=(_0x35edc2['top']>_0x2c6e05?_0x35edc2['top']-_0x2c6e05:_0x2c6e05-_0x35edc2['bottom'])-0x1;if(_0x35edc2['left']-0x1<=_0x4c2e8a&&_0x35edc2['right']+0x1>=_0x4c2e8a&&_0xa85822<_0x261032){let _0x9aea7d=_0x4c2e8a>=(_0x35edc2['left']+_0x35edc2['right'])/0x2,_0x6e062b=_0x9aea7d;(browser['chrome']||browser['gecko'])&&(textRange(_0x2af6d6,_0x1647d5)['getBoundingClientRect']()['left']==_0x35edc2['right']&&(_0x6e062b=!_0x9aea7d));if(_0xa85822<=0x0)return{'node':_0x2af6d6,'offset':_0x1647d5+(_0x6e062b?0x1:0x0)};_0x1ea315=_0x1647d5+(_0x6e062b?0x1:0x0),_0x261032=_0xa85822;}}}return{'node':_0x2af6d6,'offset':_0x1ea315>-0x1?_0x1ea315:_0xa7cf8a>0x0?_0x2af6d6['nodeValue']['length']:0x0};}function posAtCoords(_0x1d022e,_0x12ab0a,_0x12bf1a,_0x10c72a=-0x1){var _0x2b4f8a,_0xd4c0c4;let _0xd5387b,_0x5b9018=_0x1d022e['contentDOM']['getBoundingClientRect'](),_0x34f1d4=_0x5b9018['top']+_0x1d022e['viewState']['paddingTop'],{docHeight:_0x49fddc}=_0x1d022e['viewState'],{x:_0x49a51d,y:_0x90eca8}=_0x12ab0a,_0x27e9ac=_0x90eca8-_0x34f1d4;if(_0x27e9ac<0x0)return 0x0;if(_0x27e9ac>_0x49fddc)return _0x1d022e['state']['doc']['length'];for(let _0x1d9e8e=_0x1d022e['viewState']['heightOracle']['textHeight']/0x2,_0x2a75be=!0x1;_0xd5387b=_0x1d022e['elementAtHeight'](_0x27e9ac),_0xd5387b['type']!=BlockType['Text'];)for(;_0x27e9ac=_0x10c72a>0x0?_0xd5387b['bottom']+_0x1d9e8e:_0xd5387b['top']-_0x1d9e8e,!(_0x27e9ac>=0x0&&_0x27e9ac<=_0x49fddc);){if(_0x2a75be)return _0x12bf1a?null:0x0;_0x2a75be=!0x0,_0x10c72a=-_0x10c72a;}_0x90eca8=_0x34f1d4+_0x27e9ac;let _0x258e56=_0xd5387b['from'];if(_0x258e56<_0x1d022e['viewport']['from'])return 0x0==_0x1d022e['viewport']['from']?0x0:_0x12bf1a?null:posAtCoordsImprecise(_0x1d022e,_0x5b9018,_0xd5387b,_0x49a51d,_0x90eca8);if(_0x258e56>_0x1d022e['viewport']['to'])return _0x1d022e['viewport']['to']==_0x1d022e['state']['doc']['length']?_0x1d022e['state']['doc']['length']:_0x12bf1a?null:posAtCoordsImprecise(_0x1d022e,_0x5b9018,_0xd5387b,_0x49a51d,_0x90eca8);let _0x50d55a=_0x1d022e['dom']['ownerDocument'],_0x35ba5d=_0x1d022e['root']['elementFromPoint']?_0x1d022e['root']:_0x50d55a,_0x4a28b3=_0x35ba5d['elementFromPoint'](_0x49a51d,_0x90eca8);_0x4a28b3&&!_0x1d022e['contentDOM']['contains'](_0x4a28b3)&&(_0x4a28b3=null),_0x4a28b3||(_0x49a51d=Math['max'](_0x5b9018['left']+0x1,Math['min'](_0x5b9018['right']-0x1,_0x49a51d)),_0x4a28b3=_0x35ba5d['elementFromPoint'](_0x49a51d,_0x90eca8),_0x4a28b3&&!_0x1d022e['contentDOM']['contains'](_0x4a28b3)&&(_0x4a28b3=null));let _0x80bc97,_0x211fcd=-0x1;if(_0x4a28b3&&0x0!=(null===(_0x2b4f8a=_0x1d022e['docView']['nearest'](_0x4a28b3))||void 0x0===_0x2b4f8a?void 0x0:_0x2b4f8a['isEditable'])){if(_0x50d55a['caretPositionFromPoint']){let _0x541b84=_0x50d55a['caretPositionFromPoint'](_0x49a51d,_0x90eca8);_0x541b84&&({offsetNode:_0x80bc97,offset:_0x211fcd}=_0x541b84);}else{if(_0x50d55a['caretRangeFromPoint']){let _0x2fbe84=_0x50d55a['caretRangeFromPoint'](_0x49a51d,_0x90eca8);_0x2fbe84&&({startContainer:_0x80bc97,startOffset:_0x211fcd}=_0x2fbe84);}}_0x80bc97&&(!_0x1d022e['contentDOM']['contains'](_0x80bc97)||browser['safari']&&isSuspiciousSafariCaretResult(_0x80bc97,_0x211fcd,_0x49a51d)||browser['chrome']&&isSuspiciousChromeCaretResult(_0x80bc97,_0x211fcd,_0x49a51d))&&(_0x80bc97=void 0x0),_0x80bc97&&(_0x211fcd=Math['min'](maxOffset(_0x80bc97),_0x211fcd));}if(!_0x80bc97||!_0x1d022e['docView']['dom']['contains'](_0x80bc97)){let _0x55c275=LineView['find'](_0x1d022e['docView'],_0x258e56);if(!_0x55c275)return _0x27e9ac>_0xd5387b['top']+_0xd5387b['height']/0x2?_0xd5387b['to']:_0xd5387b['from'];({node:_0x80bc97,offset:_0x211fcd}=domPosAtCoords(_0x55c275['dom'],_0x49a51d,_0x90eca8));}let _0x100373=_0x1d022e['docView']['nearest'](_0x80bc97);if(!_0x100373)return null;if(_0x100373['isWidget']&&0x1==(null===(_0xd4c0c4=_0x100373['dom'])||void 0x0===_0xd4c0c4?void 0x0:_0xd4c0c4['nodeType'])){let _0x9ec5cc=_0x100373['dom']['getBoundingClientRect']();return _0x12ab0a['y']<_0x9ec5cc['top']||_0x12ab0a['y']<=_0x9ec5cc['bottom']&&_0x12ab0a['x']<=(_0x9ec5cc['left']+_0x9ec5cc['right'])/0x2?_0x100373['posAtStart']:_0x100373['posAtEnd'];}return _0x100373['localPosFromDOM'](_0x80bc97,_0x211fcd)+_0x100373['posAtStart'];}function posAtCoordsImprecise(_0x5d9a2c,_0x4032f9,_0x41e180,_0x11f448,_0x120284){let _0x5c3106=Math['round']((_0x11f448-_0x4032f9['left'])*_0x5d9a2c['defaultCharacterWidth']);if(_0x5d9a2c['lineWrapping']&&_0x41e180['height']>1.5*_0x5d9a2c['defaultLineHeight']){let _0x111693=_0x5d9a2c['viewState']['heightOracle']['textHeight'];_0x5c3106+=Math['floor']((_0x120284-_0x41e180['top']-0.5*(_0x5d9a2c['defaultLineHeight']-_0x111693))/_0x111693)*_0x5d9a2c['viewState']['heightOracle']['lineLength'];}let _0x2f087d=_0x5d9a2c['state']['sliceDoc'](_0x41e180['from'],_0x41e180['to']);return _0x41e180['from']+findColumn(_0x2f087d,_0x5c3106,_0x5d9a2c['state']['tabSize']);}function isEndOfLineBefore(_0x1a3245,_0x3ff31b,_0x5b24c2){let _0x149a9f,_0x396672=_0x1a3245;if(0x3!=_0x1a3245['nodeType']||_0x3ff31b!=(_0x149a9f=_0x1a3245['nodeValue']['length']))return!0x1;for(;;){let _0x6b139b=_0x396672['nextSibling'];if(_0x6b139b){if('BR'==_0x6b139b['nodeName'])break;return!0x1;}{let _0x48f978=_0x396672['parentNode'];if(!_0x48f978||'DIV'==_0x48f978['nodeName'])break;_0x396672=_0x48f978;}}return textRange(_0x1a3245,_0x149a9f-0x1,_0x149a9f)['getBoundingClientRect']()['right']>_0x5b24c2;}function isSuspiciousSafariCaretResult(_0x2db4e9,_0x56ee44,_0xe075b5){return isEndOfLineBefore(_0x2db4e9,_0x56ee44,_0xe075b5);}function isSuspiciousChromeCaretResult(_0xe175a9,_0x432c8c,_0x196549){if(0x0!=_0x432c8c)return isEndOfLineBefore(_0xe175a9,_0x432c8c,_0x196549);for(let _0x772893=_0xe175a9;;){let _0x32af7c=_0x772893['parentNode'];if(!_0x32af7c||0x1!=_0x32af7c['nodeType']||_0x32af7c['firstChild']!=_0x772893)return!0x1;if(_0x32af7c['classList']['contains']('cm-line'))break;_0x772893=_0x32af7c;}return _0x196549-(0x1==_0xe175a9['nodeType']?_0xe175a9['getBoundingClientRect']():textRange(_0xe175a9,0x0,Math['max'](_0xe175a9['nodeValue']['length'],0x1))['getBoundingClientRect']())['left']>0x5;}function blockAt(_0x230b53,_0x19d6d5,_0x23b2cd){let _0x79de54=_0x230b53['lineBlockAt'](_0x19d6d5);if(Array['isArray'](_0x79de54['type'])){let _0x40b601;for(let _0x5e49e6 of _0x79de54['type']){if(_0x5e49e6['from']>_0x19d6d5)break;if(!(_0x5e49e6['to']<_0x19d6d5)){if(_0x5e49e6['from']<_0x19d6d5&&_0x5e49e6['to']>_0x19d6d5)return _0x5e49e6;_0x40b601&&(_0x5e49e6['type']!=BlockType['Text']||_0x40b601['type']==_0x5e49e6['type']&&!(_0x23b2cd<0x0?_0x5e49e6['from']<_0x19d6d5:_0x5e49e6['to']>_0x19d6d5))||(_0x40b601=_0x5e49e6);}}return _0x40b601||_0x79de54;}return _0x79de54;}function moveToLineBoundary(_0x15c944,_0x2323b7,_0x29d23a,_0x4543af){let _0x25c6a5=blockAt(_0x15c944,_0x2323b7['head'],_0x2323b7['assoc']||-0x1),_0x3703aa=_0x4543af&&_0x25c6a5['type']==BlockType['Text']&&(_0x15c944['lineWrapping']||_0x25c6a5['widgetLineBreaks'])?_0x15c944['coordsAtPos'](_0x2323b7['assoc']<0x0&&_0x2323b7['head']>_0x25c6a5['from']?_0x2323b7['head']-0x1:_0x2323b7['head']):null;if(_0x3703aa){let _0x55d45b=_0x15c944['dom']['getBoundingClientRect'](),_0xecc991=_0x15c944['textDirectionAt'](_0x25c6a5['from']),_0x26f331=_0x15c944['posAtCoords']({'x':_0x29d23a==(_0xecc991==Direction['LTR'])?_0x55d45b['right']-0x1:_0x55d45b['left']+0x1,'y':(_0x3703aa['top']+_0x3703aa['bottom'])/0x2});if(null!=_0x26f331)return EditorSelection['cursor'](_0x26f331,_0x29d23a?-0x1:0x1);}return EditorSelection['cursor'](_0x29d23a?_0x25c6a5['to']:_0x25c6a5['from'],_0x29d23a?-0x1:0x1);}function moveByChar(_0x3c1b29,_0x4a8fb1,_0x47f3f7,_0x3728ac){let _0x126490=_0x3c1b29['state']['doc']['lineAt'](_0x4a8fb1['head']),_0x2f9207=_0x3c1b29['bidiSpans'](_0x126490),_0xc07b4a=_0x3c1b29['textDirectionAt'](_0x126490['from']);for(let _0x3d58e9=_0x4a8fb1,_0x326f6e=null;;){let _0x2eb25f=moveVisually(_0x126490,_0x2f9207,_0xc07b4a,_0x3d58e9,_0x47f3f7),_0x5dd9ec=movedOver;if(!_0x2eb25f){if(_0x126490['number']==(_0x47f3f7?_0x3c1b29['state']['doc']['lines']:0x1))return _0x3d58e9;_0x5dd9ec='\x0a',_0x126490=_0x3c1b29['state']['doc']['line'](_0x126490['number']+(_0x47f3f7?0x1:-0x1)),_0x2f9207=_0x3c1b29['bidiSpans'](_0x126490),_0x2eb25f=_0x3c1b29['visualLineSide'](_0x126490,!_0x47f3f7);}if(_0x326f6e){if(!_0x326f6e(_0x5dd9ec))return _0x3d58e9;}else{if(!_0x3728ac)return _0x2eb25f;_0x326f6e=_0x3728ac(_0x5dd9ec);}_0x3d58e9=_0x2eb25f;}}function byGroup(_0x34b713,_0x1b3c24,_0x32d6df){let _0x3c0293=_0x34b713['state']['charCategorizer'](_0x1b3c24),_0x4bae9f=_0x3c0293(_0x32d6df);return _0x42f238=>{let _0x504633=_0x3c0293(_0x42f238);return _0x4bae9f==CharCategory['Space']&&(_0x4bae9f=_0x504633),_0x4bae9f==_0x504633;};}function moveVertically(_0xe6dd24,_0xcf6b14,_0xfe862a,_0x4d22eb){let _0x5aaa17=_0xcf6b14['head'],_0x31fb5b=_0xfe862a?0x1:-0x1;if(_0x5aaa17==(_0xfe862a?_0xe6dd24['state']['doc']['length']:0x0))return EditorSelection['cursor'](_0x5aaa17,_0xcf6b14['assoc']);let _0x1906e6,_0x2cf332=_0xcf6b14['goalColumn'],_0x1ada0b=_0xe6dd24['contentDOM']['getBoundingClientRect'](),_0x4e5374=_0xe6dd24['coordsAtPos'](_0x5aaa17,_0xcf6b14['assoc']||-0x1),_0x4dcced=_0xe6dd24['documentTop'];if(_0x4e5374)null==_0x2cf332&&(_0x2cf332=_0x4e5374['left']-_0x1ada0b['left']),_0x1906e6=_0x31fb5b<0x0?_0x4e5374['top']:_0x4e5374['bottom'];else{let _0xa0e83=_0xe6dd24['viewState']['lineBlockAt'](_0x5aaa17);null==_0x2cf332&&(_0x2cf332=Math['min'](_0x1ada0b['right']-_0x1ada0b['left'],_0xe6dd24['defaultCharacterWidth']*(_0x5aaa17-_0xa0e83['from']))),_0x1906e6=(_0x31fb5b<0x0?_0xa0e83['top']:_0xa0e83['bottom'])+_0x4dcced;}let _0x3d2ed5=_0x1ada0b['left']+_0x2cf332,_0xa0ee97=null!=_0x4d22eb?_0x4d22eb:_0xe6dd24['viewState']['heightOracle']['textHeight']>>0x1;for(let _0x5721cf=0x0;;_0x5721cf+=0xa){let _0x11f376=_0x1906e6+(_0xa0ee97+_0x5721cf)*_0x31fb5b,_0x43ee20=posAtCoords(_0xe6dd24,{'x':_0x3d2ed5,'y':_0x11f376},!0x1,_0x31fb5b);if(_0x11f376<_0x1ada0b['top']||_0x11f376>_0x1ada0b['bottom']||(_0x31fb5b<0x0?_0x43ee20<_0x5aaa17:_0x43ee20>_0x5aaa17)){let _0x30fba2=_0xe6dd24['docView']['coordsForChar'](_0x43ee20),_0x58f341=!_0x30fba2||_0x11f376<_0x30fba2['top']?-0x1:0x1;return EditorSelection['cursor'](_0x43ee20,_0x58f341,void 0x0,_0x2cf332);}}}function skipAtomicRanges(_0x434537,_0x4732fc,_0x574074){for(;;){let _0x47e566=0x0;for(let _0x4544da of _0x434537)_0x4544da['between'](_0x4732fc-0x1,_0x4732fc+0x1,(_0x31bcf2,_0x33f0f6,_0x4d78ee)=>{if(_0x4732fc>_0x31bcf2&&_0x4732fc<_0x33f0f6){let _0x118e42=_0x47e566||_0x574074||(_0x4732fc-_0x31bcf2<_0x33f0f6-_0x4732fc?-0x1:0x1);_0x4732fc=_0x118e42<0x0?_0x31bcf2:_0x33f0f6,_0x47e566=_0x118e42;}});if(!_0x47e566)return _0x4732fc;}}function skipAtomsForSelection(_0x518735,_0x3c9159){let _0x2d692f=null;for(let _0x26b687=0x0;_0x26b687<_0x3c9159['ranges']['length'];_0x26b687++){let _0x26c88e=_0x3c9159['ranges'][_0x26b687],_0x3c2cfa=null;if(_0x26c88e['empty']){let _0x38e793=skipAtomicRanges(_0x518735,_0x26c88e['from'],0x0);_0x38e793!=_0x26c88e['from']&&(_0x3c2cfa=EditorSelection['cursor'](_0x38e793,-0x1));}else{let _0x23639e=skipAtomicRanges(_0x518735,_0x26c88e['from'],-0x1),_0x572234=skipAtomicRanges(_0x518735,_0x26c88e['to'],0x1);_0x23639e==_0x26c88e['from']&&_0x572234==_0x26c88e['to']||(_0x3c2cfa=EditorSelection['range'](_0x26c88e['from']==_0x26c88e['anchor']?_0x23639e:_0x572234,_0x26c88e['from']==_0x26c88e['head']?_0x23639e:_0x572234));}_0x3c2cfa&&(_0x2d692f||(_0x2d692f=_0x3c9159['ranges']['slice']()),_0x2d692f[_0x26b687]=_0x3c2cfa);}return _0x2d692f?EditorSelection['create'](_0x2d692f,_0x3c9159['mainIndex']):_0x3c9159;}function skipAtoms(_0xa8edfd,_0x1f6f54,_0x264b39){let _0x4791c3=skipAtomicRanges(_0xa8edfd['state']['facet'](atomicRanges)['map'](_0x419632=>_0x419632(_0xa8edfd)),_0x264b39['from'],_0x1f6f54['head']>_0x264b39['from']?-0x1:0x1);return _0x4791c3==_0x264b39['from']?_0x264b39:EditorSelection['cursor'](_0x4791c3,_0x4791c3<_0x264b39['from']?0x1:-0x1);}const LineBreakPlaceholder='';class DOMReader{constructor(_0x19f7ba,_0x44b946){this['points']=_0x19f7ba,this['text']='',this['lineSeparator']=_0x44b946['facet'](EditorState['lineSeparator']);}['append'](_0x16b012){this['text']+=_0x16b012;}['lineBreak'](){this['text']+=LineBreakPlaceholder;}['readRange'](_0x5b497b,_0x40e32a){if(!_0x5b497b)return this;let _0x524aa0=_0x5b497b['parentNode'];for(let _0x13ffd8=_0x5b497b;;){this['findPointBefore'](_0x524aa0,_0x13ffd8);let _0x25fe8f=this['text']['length'];this['readNode'](_0x13ffd8);let _0x4c232c=_0x13ffd8['nextSibling'];if(_0x4c232c==_0x40e32a)break;let _0x3e0cc3=ContentView['get'](_0x13ffd8),_0x48f681=ContentView['get'](_0x4c232c);(_0x3e0cc3&&_0x48f681?_0x3e0cc3['breakAfter']:(_0x3e0cc3?_0x3e0cc3['breakAfter']:isBlockElement(_0x13ffd8))||isBlockElement(_0x4c232c)&&('BR'!=_0x13ffd8['nodeName']||_0x13ffd8['cmIgnore'])&&this['text']['length']>_0x25fe8f)&&!isEmptyToEnd(_0x4c232c,_0x40e32a)&&this['lineBreak'](),_0x13ffd8=_0x4c232c;}return this['findPointBefore'](_0x524aa0,_0x40e32a),this;}['readTextNode'](_0x438eaf){let _0x5105aa=_0x438eaf['nodeValue'];for(let _0x589856 of this['points'])_0x589856['node']==_0x438eaf&&(_0x589856['pos']=this['text']['length']+Math['min'](_0x589856['offset'],_0x5105aa['length']));for(let _0x30b5a8=0x0,_0x2932af=this['lineSeparator']?null:/\r\n?|\n/g;;){let _0x3ff8dc,_0x5df00e=-0x1,_0x49e3cb=0x1;if(this['lineSeparator']?(_0x5df00e=_0x5105aa['indexOf'](this['lineSeparator'],_0x30b5a8),_0x49e3cb=this['lineSeparator']['length']):(_0x3ff8dc=_0x2932af['exec'](_0x5105aa))&&(_0x5df00e=_0x3ff8dc['index'],_0x49e3cb=_0x3ff8dc[0x0]['length']),this['append'](_0x5105aa['slice'](_0x30b5a8,_0x5df00e<0x0?_0x5105aa['length']:_0x5df00e)),_0x5df00e<0x0)break;if(this['lineBreak'](),_0x49e3cb>0x1){for(let _0x3b32a8 of this['points'])_0x3b32a8['node']==_0x438eaf&&_0x3b32a8['pos']>this['text']['length']&&(_0x3b32a8['pos']-=_0x49e3cb-0x1);}_0x30b5a8=_0x5df00e+_0x49e3cb;}}['readNode'](_0x459635){if(_0x459635['cmIgnore'])return;let _0x4e4513=ContentView['get'](_0x459635),_0x5574d4=_0x4e4513&&_0x4e4513['overrideDOMText'];if(null!=_0x5574d4){this['findPointInside'](_0x459635,_0x5574d4['length']);for(let _0x26cca6=_0x5574d4['iter']();!_0x26cca6['next']()['done'];)_0x26cca6['lineBreak']?this['lineBreak']():this['append'](_0x26cca6['value']);}else 0x3==_0x459635['nodeType']?this['readTextNode'](_0x459635):'BR'==_0x459635['nodeName']?_0x459635['nextSibling']&&this['lineBreak']():0x1==_0x459635['nodeType']&&this['readRange'](_0x459635['firstChild'],null);}['findPointBefore'](_0x116d9b,_0x784320){for(let _0x5de90f of this['points'])_0x5de90f['node']==_0x116d9b&&_0x116d9b['childNodes'][_0x5de90f['offset']]==_0x784320&&(_0x5de90f['pos']=this['text']['length']);}['findPointInside'](_0x1041aa,_0x337119){for(let _0x335ca9 of this['points'])(0x3==_0x1041aa['nodeType']?_0x335ca9['node']==_0x1041aa:_0x1041aa['contains'](_0x335ca9['node']))&&(_0x335ca9['pos']=this['text']['length']+(isAtEnd(_0x1041aa,_0x335ca9['node'],_0x335ca9['offset'])?_0x337119:0x0));}}function isAtEnd(_0x265d87,_0x508943,_0x47706a){for(;;){if(!_0x508943||_0x47706a<maxOffset(_0x508943))return!0x1;if(_0x508943==_0x265d87)return!0x0;_0x47706a=domIndex(_0x508943)+0x1,_0x508943=_0x508943['parentNode'];}}function isEmptyToEnd(_0x940eca,_0x41ea4b){let _0x525a74;for(;_0x940eca!=_0x41ea4b&&_0x940eca;_0x940eca=_0x940eca['nextSibling']){let _0x2c56a5=ContentView['get'](_0x940eca);if(!(null==_0x2c56a5?void 0x0:_0x2c56a5['isWidget'])&&!_0x940eca['cmIgnore'])return!0x1;_0x2c56a5&&(_0x525a74||(_0x525a74=[]))['push'](_0x2c56a5);}if(_0x525a74)for(let _0x34d4e7 of _0x525a74){let _0x2b0ebb=_0x34d4e7['overrideDOMText'];if(null==_0x2b0ebb?void 0x0:_0x2b0ebb['length'])return!0x1;}return!0x0;}class DOMPoint{constructor(_0x1cfd82,_0x1f595){this['node']=_0x1cfd82,this['offset']=_0x1f595,this['pos']=-0x1;}}class DOMChange{constructor(_0x2feeaf,_0x31b6d9,_0x180492,_0x348a75){this['typeOver']=_0x348a75,this['bounds']=null,this['text']='',this['domChanged']=_0x31b6d9>-0x1;let {impreciseHead:_0x5e7d14,impreciseAnchor:_0x46920d}=_0x2feeaf['docView'];if(_0x2feeaf['state']['readOnly']&&_0x31b6d9>-0x1)this['newSel']=null;else{if(_0x31b6d9>-0x1&&(this['bounds']=_0x2feeaf['docView']['domBoundsAround'](_0x31b6d9,_0x180492,0x0))){let _0x1f8b40=_0x5e7d14||_0x46920d?[]:selectionPoints(_0x2feeaf),_0x54c1e2=new DOMReader(_0x1f8b40,_0x2feeaf['state']);_0x54c1e2['readRange'](this['bounds']['startDOM'],this['bounds']['endDOM']),this['text']=_0x54c1e2['text'],this['newSel']=selectionFromPoints(_0x1f8b40,this['bounds']['from']);}else{let _0x54755a=_0x2feeaf['observer']['selectionRange'],_0x1f7f03=_0x5e7d14&&_0x5e7d14['node']==_0x54755a['focusNode']&&_0x5e7d14['offset']==_0x54755a['focusOffset']||!contains(_0x2feeaf['contentDOM'],_0x54755a['focusNode'])?_0x2feeaf['state']['selection']['main']['head']:_0x2feeaf['docView']['posFromDOM'](_0x54755a['focusNode'],_0x54755a['focusOffset']),_0x17830c=_0x46920d&&_0x46920d['node']==_0x54755a['anchorNode']&&_0x46920d['offset']==_0x54755a['anchorOffset']||!contains(_0x2feeaf['contentDOM'],_0x54755a['anchorNode'])?_0x2feeaf['state']['selection']['main']['anchor']:_0x2feeaf['docView']['posFromDOM'](_0x54755a['anchorNode'],_0x54755a['anchorOffset']),_0x26fae0=_0x2feeaf['viewport'];if((browser['ios']||browser['chrome'])&&_0x2feeaf['state']['selection']['main']['empty']&&_0x1f7f03!=_0x17830c&&(_0x26fae0['from']>0x0||_0x26fae0['to']<_0x2feeaf['state']['doc']['length'])){let _0x46a289=Math['min'](_0x1f7f03,_0x17830c),_0x43108e=Math['max'](_0x1f7f03,_0x17830c),_0x40e77a=_0x26fae0['from']-_0x46a289,_0x24cf17=_0x26fae0['to']-_0x43108e;0x0!=_0x40e77a&&0x1!=_0x40e77a&&0x0!=_0x46a289||0x0!=_0x24cf17&&-0x1!=_0x24cf17&&_0x43108e!=_0x2feeaf['state']['doc']['length']||(_0x1f7f03=0x0,_0x17830c=_0x2feeaf['state']['doc']['length']);}this['newSel']=EditorSelection['single'](_0x17830c,_0x1f7f03);}}}}function applyDOMChange(_0x138a6f,_0x3117c2){let _0x5005e6,{newSel:_0x26427b}=_0x3117c2,_0x5934a8=_0x138a6f['state']['selection']['main'],_0x4fba02=_0x138a6f['inputState']['lastKeyTime']>Date['now']()-0x64?_0x138a6f['inputState']['lastKeyCode']:-0x1;if(_0x3117c2['bounds']){let {from:_0x3e38ef,to:_0x5c1171}=_0x3117c2['bounds'],_0xbf23bf=_0x5934a8['from'],_0x2b3a0f=null;(0x8===_0x4fba02||browser['android']&&_0x3117c2['text']['length']<_0x5c1171-_0x3e38ef)&&(_0xbf23bf=_0x5934a8['to'],_0x2b3a0f='end');let _0x47e72a=findDiff(_0x138a6f['state']['doc']['sliceString'](_0x3e38ef,_0x5c1171,LineBreakPlaceholder),_0x3117c2['text'],_0xbf23bf-_0x3e38ef,_0x2b3a0f);_0x47e72a&&(browser['chrome']&&0xd==_0x4fba02&&_0x47e72a['toB']==_0x47e72a['from']+0x2&&_0x3117c2['text']['slice'](_0x47e72a['from'],_0x47e72a['toB'])==LineBreakPlaceholder+LineBreakPlaceholder&&_0x47e72a['toB']--,_0x5005e6={'from':_0x3e38ef+_0x47e72a['from'],'to':_0x3e38ef+_0x47e72a['toA'],'insert':Text['of'](_0x3117c2['text']['slice'](_0x47e72a['from'],_0x47e72a['toB'])['split'](LineBreakPlaceholder))});}else _0x26427b&&(!_0x138a6f['hasFocus']&&_0x138a6f['state']['facet'](editable)||_0x26427b['main']['eq'](_0x5934a8))&&(_0x26427b=null);if(!_0x5005e6&&!_0x26427b)return!0x1;if(!_0x5005e6&&_0x3117c2['typeOver']&&!_0x5934a8['empty']&&_0x26427b&&_0x26427b['main']['empty']?_0x5005e6={'from':_0x5934a8['from'],'to':_0x5934a8['to'],'insert':_0x138a6f['state']['doc']['slice'](_0x5934a8['from'],_0x5934a8['to'])}:(browser['mac']||browser['android'])&&_0x5005e6&&_0x5005e6['from']==_0x5005e6['to']&&_0x5005e6['from']==_0x5934a8['head']-0x1&&/^\. ?$/['test'](_0x5005e6['insert']['toString']())&&'off'==_0x138a6f['contentDOM']['getAttribute']('autocorrect')?(_0x26427b&&0x2==_0x5005e6['insert']['length']&&(_0x26427b=EditorSelection['single'](_0x26427b['main']['anchor']-0x1,_0x26427b['main']['head']-0x1)),_0x5005e6={'from':_0x5005e6['from'],'to':_0x5005e6['to'],'insert':Text['of']([_0x5005e6['insert']['toString']()['replace']('.','\x20')])}):_0x5005e6&&_0x5005e6['from']>=_0x5934a8['from']&&_0x5005e6['to']<=_0x5934a8['to']&&(_0x5005e6['from']!=_0x5934a8['from']||_0x5005e6['to']!=_0x5934a8['to'])&&_0x5934a8['to']-_0x5934a8['from']-(_0x5005e6['to']-_0x5005e6['from'])<=0x4?_0x5005e6={'from':_0x5934a8['from'],'to':_0x5934a8['to'],'insert':_0x138a6f['state']['doc']['slice'](_0x5934a8['from'],_0x5005e6['from'])['append'](_0x5005e6['insert'])['append'](_0x138a6f['state']['doc']['slice'](_0x5005e6['to'],_0x5934a8['to']))}:browser['chrome']&&_0x5005e6&&_0x5005e6['from']==_0x5005e6['to']&&_0x5005e6['from']==_0x5934a8['head']&&'\x0a\x20'==_0x5005e6['insert']['toString']()&&_0x138a6f['lineWrapping']&&(_0x26427b&&(_0x26427b=EditorSelection['single'](_0x26427b['main']['anchor']-0x1,_0x26427b['main']['head']-0x1)),_0x5005e6={'from':_0x5934a8['from'],'to':_0x5934a8['to'],'insert':Text['of'](['\x20'])}),_0x5005e6)return applyDOMChangeInner(_0x138a6f,_0x5005e6,_0x26427b,_0x4fba02);if(_0x26427b&&!_0x26427b['main']['eq'](_0x5934a8)){let _0x384ab5=!0x1,_0x37c4e8='select';return _0x138a6f['inputState']['lastSelectionTime']>Date['now']()-0x32&&('select'==_0x138a6f['inputState']['lastSelectionOrigin']&&(_0x384ab5=!0x0),_0x37c4e8=_0x138a6f['inputState']['lastSelectionOrigin'],'select.pointer'==_0x37c4e8&&(_0x26427b=skipAtomsForSelection(_0x138a6f['state']['facet'](atomicRanges)['map'](_0x5419a0=>_0x5419a0(_0x138a6f)),_0x26427b))),_0x138a6f['dispatch']({'selection':_0x26427b,'scrollIntoView':_0x384ab5,'userEvent':_0x37c4e8}),!0x0;}return!0x1;}function applyDOMChangeInner(_0x11cc4f,_0x19603e,_0x2dab33,_0xbf73bd=-0x1){if(browser['ios']&&_0x11cc4f['inputState']['flushIOSKey'](_0x19603e))return!0x0;let _0x49bfb5=_0x11cc4f['state']['selection']['main'];if(browser['android']&&(_0x19603e['to']==_0x49bfb5['to']&&(_0x19603e['from']==_0x49bfb5['from']||_0x19603e['from']==_0x49bfb5['from']-0x1&&'\x20'==_0x11cc4f['state']['sliceDoc'](_0x19603e['from'],_0x49bfb5['from']))&&0x1==_0x19603e['insert']['length']&&0x2==_0x19603e['insert']['lines']&&dispatchKey(_0x11cc4f['contentDOM'],'Enter',0xd)||(_0x19603e['from']==_0x49bfb5['from']-0x1&&_0x19603e['to']==_0x49bfb5['to']&&0x0==_0x19603e['insert']['length']||0x8==_0xbf73bd&&_0x19603e['insert']['length']<_0x19603e['to']-_0x19603e['from']&&_0x19603e['to']>_0x49bfb5['head'])&&dispatchKey(_0x11cc4f['contentDOM'],'Backspace',0x8)||_0x19603e['from']==_0x49bfb5['from']&&_0x19603e['to']==_0x49bfb5['to']+0x1&&0x0==_0x19603e['insert']['length']&&dispatchKey(_0x11cc4f['contentDOM'],'Delete',0x2e)))return!0x0;let _0x5bc0e2,_0x25d603=_0x19603e['insert']['toString']();_0x11cc4f['inputState']['composing']>=0x0&&_0x11cc4f['inputState']['composing']++;let _0x41092e=()=>_0x5bc0e2||(_0x5bc0e2=applyDefaultInsert(_0x11cc4f,_0x19603e,_0x2dab33));return _0x11cc4f['state']['facet'](inputHandler$1)['some'](_0x342fc0=>_0x342fc0(_0x11cc4f,_0x19603e['from'],_0x19603e['to'],_0x25d603,_0x41092e))||_0x11cc4f['dispatch'](_0x41092e()),!0x0;}function applyDefaultInsert(_0x1d563d,_0x4ad757,_0x113eca){let _0x53ca6c,_0x36d434=_0x1d563d['state'],_0x4e81a1=_0x36d434['selection']['main'],_0x40676d=-0x1;if(_0x4ad757['from']==_0x4ad757['to']&&_0x4ad757['from']<_0x4e81a1['from']||_0x4ad757['from']>_0x4e81a1['to']){let _0x1ecef0=_0x4ad757['from']<_0x4e81a1['from']?-0x1:0x1,_0x39e9ee=_0x1ecef0<0x0?_0x4e81a1['from']:_0x4e81a1['to'],_0x53de13=skipAtomicRanges(_0x36d434['facet'](atomicRanges)['map'](_0x56eef4=>_0x56eef4(_0x1d563d)),_0x39e9ee,_0x1ecef0);_0x4ad757['from']==_0x53de13&&(_0x40676d=_0x53de13);}if(_0x40676d>-0x1)_0x53ca6c={'changes':_0x4ad757,'selection':EditorSelection['cursor'](_0x4ad757['from']+_0x4ad757['insert']['length'],-0x1)};else{if(_0x4ad757['from']>=_0x4e81a1['from']&&_0x4ad757['to']<=_0x4e81a1['to']&&_0x4ad757['to']-_0x4ad757['from']>=(_0x4e81a1['to']-_0x4e81a1['from'])/0x3&&(!_0x113eca||_0x113eca['main']['empty']&&_0x113eca['main']['from']==_0x4ad757['from']+_0x4ad757['insert']['length'])&&_0x1d563d['inputState']['composing']<0x0){let _0x280054=_0x4e81a1['from']<_0x4ad757['from']?_0x36d434['sliceDoc'](_0x4e81a1['from'],_0x4ad757['from']):'',_0x233ffc=_0x4e81a1['to']>_0x4ad757['to']?_0x36d434['sliceDoc'](_0x4ad757['to'],_0x4e81a1['to']):'';_0x53ca6c=_0x36d434['replaceSelection'](_0x1d563d['state']['toText'](_0x280054+_0x4ad757['insert']['sliceString'](0x0,void 0x0,_0x1d563d['state']['lineBreak'])+_0x233ffc));}else{let _0x1ca372=_0x36d434['changes'](_0x4ad757),_0x57caf6=_0x113eca&&_0x113eca['main']['to']<=_0x1ca372['newLength']?_0x113eca['main']:void 0x0;if(_0x36d434['selection']['ranges']['length']>0x1&&_0x1d563d['inputState']['composing']>=0x0&&_0x4ad757['to']<=_0x4e81a1['to']&&_0x4ad757['to']>=_0x4e81a1['to']-0xa){let _0x11f8ad,_0xf57ffe=_0x1d563d['state']['sliceDoc'](_0x4ad757['from'],_0x4ad757['to']),_0x3afaf5=_0x113eca&&findCompositionNode(_0x1d563d,_0x113eca['main']['head']);if(_0x3afaf5){let _0x18db1c=_0x4ad757['insert']['length']-(_0x4ad757['to']-_0x4ad757['from']);_0x11f8ad={'from':_0x3afaf5['from'],'to':_0x3afaf5['to']-_0x18db1c};}else _0x11f8ad=_0x1d563d['state']['doc']['lineAt'](_0x4e81a1['head']);let _0x243ae8=_0x4e81a1['to']-_0x4ad757['to'],_0x13f9f0=_0x4e81a1['to']-_0x4e81a1['from'];_0x53ca6c=_0x36d434['changeByRange'](_0x403bbe=>{if(_0x403bbe['from']==_0x4e81a1['from']&&_0x403bbe['to']==_0x4e81a1['to'])return{'changes':_0x1ca372,'range':_0x57caf6||_0x403bbe['map'](_0x1ca372)};let _0x4098fb=_0x403bbe['to']-_0x243ae8,_0x381464=_0x4098fb-_0xf57ffe['length'];if(_0x403bbe['to']-_0x403bbe['from']!=_0x13f9f0||_0x1d563d['state']['sliceDoc'](_0x381464,_0x4098fb)!=_0xf57ffe||_0x403bbe['to']>=_0x11f8ad['from']&&_0x403bbe['from']<=_0x11f8ad['to'])return{'range':_0x403bbe};let _0x3e806d=_0x36d434['changes']({'from':_0x381464,'to':_0x4098fb,'insert':_0x4ad757['insert']}),_0x326bae=_0x403bbe['to']-_0x4e81a1['to'];return{'changes':_0x3e806d,'range':_0x57caf6?EditorSelection['range'](Math['max'](0x0,_0x57caf6['anchor']+_0x326bae),Math['max'](0x0,_0x57caf6['head']+_0x326bae)):_0x403bbe['map'](_0x3e806d)};});}else _0x53ca6c={'changes':_0x1ca372,'selection':_0x57caf6&&_0x36d434['selection']['replaceRange'](_0x57caf6)};}}let _0x534a33='input.type';return(_0x1d563d['composing']||_0x1d563d['inputState']['compositionPendingChange']&&_0x1d563d['inputState']['compositionEndedAt']>Date['now']()-0x32)&&(_0x1d563d['inputState']['compositionPendingChange']=!0x1,_0x534a33+='.compose',_0x1d563d['inputState']['compositionFirstChange']&&(_0x534a33+='.start',_0x1d563d['inputState']['compositionFirstChange']=!0x1)),_0x36d434['update'](_0x53ca6c,{'userEvent':_0x534a33,'scrollIntoView':!0x0});}function findDiff(_0x16f5c7,_0x34a00d,_0x12dbae,_0xf530ae){let _0x2c507d=Math['min'](_0x16f5c7['length'],_0x34a00d['length']),_0x2663b1=0x0;for(;_0x2663b1<_0x2c507d&&_0x16f5c7['charCodeAt'](_0x2663b1)==_0x34a00d['charCodeAt'](_0x2663b1);)_0x2663b1++;if(_0x2663b1==_0x2c507d&&_0x16f5c7['length']==_0x34a00d['length'])return null;let _0x371561=_0x16f5c7['length'],_0x390c7e=_0x34a00d['length'];for(;_0x371561>0x0&&_0x390c7e>0x0&&_0x16f5c7['charCodeAt'](_0x371561-0x1)==_0x34a00d['charCodeAt'](_0x390c7e-0x1);)_0x371561--,_0x390c7e--;'end'==_0xf530ae&&(_0x12dbae-=_0x371561+Math['max'](0x0,_0x2663b1-Math['min'](_0x371561,_0x390c7e))-_0x2663b1);if(_0x371561<_0x2663b1&&_0x16f5c7['length']<_0x34a00d['length'])_0x2663b1-=_0x12dbae<=_0x2663b1&&_0x12dbae>=_0x371561?_0x2663b1-_0x12dbae:0x0,_0x390c7e=_0x2663b1+(_0x390c7e-_0x371561),_0x371561=_0x2663b1;else _0x390c7e<_0x2663b1&&(_0x2663b1-=_0x12dbae<=_0x2663b1&&_0x12dbae>=_0x390c7e?_0x2663b1-_0x12dbae:0x0,_0x371561=_0x2663b1+(_0x371561-_0x390c7e),_0x390c7e=_0x2663b1);return{'from':_0x2663b1,'toA':_0x371561,'toB':_0x390c7e};}function selectionPoints(_0x1b4008){let _0x22c027=[];if(_0x1b4008['root']['activeElement']!=_0x1b4008['contentDOM'])return _0x22c027;let {anchorNode:_0x9f3b9e,anchorOffset:_0x21a294,focusNode:_0x32f70b,focusOffset:_0xac0052}=_0x1b4008['observer']['selectionRange'];return _0x9f3b9e&&(_0x22c027['push'](new DOMPoint(_0x9f3b9e,_0x21a294)),_0x32f70b==_0x9f3b9e&&_0xac0052==_0x21a294||_0x22c027['push'](new DOMPoint(_0x32f70b,_0xac0052))),_0x22c027;}function selectionFromPoints(_0x19a1fa,_0x46ed68){if(0x0==_0x19a1fa['length'])return null;let _0x16ec2c=_0x19a1fa[0x0]['pos'],_0x307371=0x2==_0x19a1fa['length']?_0x19a1fa[0x1]['pos']:_0x16ec2c;return _0x16ec2c>-0x1&&_0x307371>-0x1?EditorSelection['single'](_0x16ec2c+_0x46ed68,_0x307371+_0x46ed68):null;}class InputState{['setSelectionOrigin'](_0x5e76f2){this['lastSelectionOrigin']=_0x5e76f2,this['lastSelectionTime']=Date['now']();}constructor(_0x1f464c){this['view']=_0x1f464c,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']=_0x1f464c['hasFocus'],browser['safari']&&_0x1f464c['contentDOM']['addEventListener']('input',()=>null),browser['gecko']&&firefoxCopyCutHack(_0x1f464c['contentDOM']['ownerDocument']);}['handleEvent'](_0x4e5858){eventBelongsToEditor(this['view'],_0x4e5858)&&!this['ignoreDuringComposition'](_0x4e5858)&&('keydown'==_0x4e5858['type']&&this['keydown'](_0x4e5858)||(0x0!=this['view']['updateState']?Promise['resolve']()['then'](()=>this['runHandlers'](_0x4e5858['type'],_0x4e5858)):this['runHandlers'](_0x4e5858['type'],_0x4e5858)));}['runHandlers'](_0x4500d7,_0x4be0f4){let _0x20b3d4=this['handlers'][_0x4500d7];if(_0x20b3d4){for(let _0x4d0384 of _0x20b3d4['observers'])_0x4d0384(this['view'],_0x4be0f4);for(let _0x73867f of _0x20b3d4['handlers']){if(_0x4be0f4['defaultPrevented'])break;if(_0x73867f(this['view'],_0x4be0f4)){_0x4be0f4['preventDefault']();break;}}}}['ensureHandlers'](_0x29f2ff){let _0xf791a7=computeHandlers(_0x29f2ff),_0x5d0330=this['handlers'],_0x1503c5=this['view']['contentDOM'];for(let _0x314c02 in _0xf791a7)if('scroll'!=_0x314c02){let _0xe03a56=!_0xf791a7[_0x314c02]['handlers']['length'],_0x8d42df=_0x5d0330[_0x314c02];_0x8d42df&&_0xe03a56!=!_0x8d42df['handlers']['length']&&(_0x1503c5['removeEventListener'](_0x314c02,this['handleEvent']),_0x8d42df=null),_0x8d42df||_0x1503c5['addEventListener'](_0x314c02,this['handleEvent'],{'passive':_0xe03a56});}for(let _0x52a247 in _0x5d0330)'scroll'==_0x52a247||_0xf791a7[_0x52a247]||_0x1503c5['removeEventListener'](_0x52a247,this['handleEvent']);this['handlers']=_0xf791a7;}['keydown'](_0x36f0ab){if(this['lastKeyCode']=_0x36f0ab['keyCode'],this['lastKeyTime']=Date['now'](),0x9==_0x36f0ab['keyCode']&&this['tabFocusMode']>-0x1&&(!this['tabFocusMode']||Date['now']()<=this['tabFocusMode']))return!0x0;if(this['tabFocusMode']>0x0&&0x1b!=_0x36f0ab['keyCode']&&modifierCodes['indexOf'](_0x36f0ab['keyCode'])<0x0&&(this['tabFocusMode']=-0x1),browser['android']&&browser['chrome']&&!_0x36f0ab['synthetic']&&(0xd==_0x36f0ab['keyCode']||0x8==_0x36f0ab['keyCode']))return this['view']['observer']['delayAndroidKey'](_0x36f0ab['key'],_0x36f0ab['keyCode']),!0x0;let _0x5e9211;return!browser['ios']||_0x36f0ab['synthetic']||_0x36f0ab['altKey']||_0x36f0ab['metaKey']||!((_0x5e9211=PendingKeys['find'](_0x3b8260=>_0x3b8260['keyCode']==_0x36f0ab['keyCode']))&&!_0x36f0ab['ctrlKey']||EmacsyPendingKeys['indexOf'](_0x36f0ab['key'])>-0x1&&_0x36f0ab['ctrlKey']&&!_0x36f0ab['shiftKey'])?(0xe5!=_0x36f0ab['keyCode']&&this['view']['observer']['forceFlush'](),!0x1):(this['pendingIOSKey']=_0x5e9211||_0x36f0ab,setTimeout(()=>this['flushIOSKey'](),0xfa),!0x0);}['flushIOSKey'](_0x21c1db){let _0xc1a70f=this['pendingIOSKey'];return!!_0xc1a70f&&(!('Enter'==_0xc1a70f['key']&&_0x21c1db&&_0x21c1db['from']<_0x21c1db['to']&&/^\S+$/['test'](_0x21c1db['insert']['toString']()))&&(this['pendingIOSKey']=void 0x0,dispatchKey(this['view']['contentDOM'],_0xc1a70f['key'],_0xc1a70f['keyCode'],_0xc1a70f instanceof KeyboardEvent?_0xc1a70f:void 0x0)));}['ignoreDuringComposition'](_0x363365){return!(!/^key/['test'](_0x363365['type'])||_0x363365['synthetic'])&&(this['composing']>0x0||!!(browser['safari']&&!browser['ios']&&this['compositionPendingKey']&&Date['now']()-this['compositionEndedAt']<0x64)&&(this['compositionPendingKey']=!0x1,!0x0));}['startMouseSelection'](_0x418213){this['mouseSelection']&&this['mouseSelection']['destroy'](),this['mouseSelection']=_0x418213;}['update'](_0x39ffa4){this['view']['observer']['update'](_0x39ffa4),this['mouseSelection']&&this['mouseSelection']['update'](_0x39ffa4),this['draggedContent']&&_0x39ffa4['docChanged']&&(this['draggedContent']=this['draggedContent']['map'](_0x39ffa4['changes'])),_0x39ffa4['transactions']['length']&&(this['lastKeyCode']=this['lastSelectionTime']=0x0);}['destroy'](){this['mouseSelection']&&this['mouseSelection']['destroy']();}}function bindHandler(_0x3ee7a0,_0x1bd98f){return(_0x4fd17e,_0x55d475)=>{try{return _0x1bd98f['call'](_0x3ee7a0,_0x55d475,_0x4fd17e);}catch(_0x3a9362){logException(_0x4fd17e['state'],_0x3a9362);}};}function computeHandlers(_0x5b72ef){let _0x44d075=Object['create'](null);function _0x15ae50(_0x821cb0){return _0x44d075[_0x821cb0]||(_0x44d075[_0x821cb0]={'observers':[],'handlers':[]});}for(let _0x2523c9 of _0x5b72ef){let _0x503c0b=_0x2523c9['spec'],_0x3d8b74=_0x503c0b&&_0x503c0b['plugin']['domEventHandlers'],_0x5d8c88=_0x503c0b&&_0x503c0b['plugin']['domEventObservers'];if(_0x3d8b74)for(let _0x2425cb in _0x3d8b74){let _0xb93c80=_0x3d8b74[_0x2425cb];_0xb93c80&&_0x15ae50(_0x2425cb)['handlers']['push'](bindHandler(_0x2523c9['value'],_0xb93c80));}if(_0x5d8c88)for(let _0xeff73b in _0x5d8c88){let _0x8ab5f8=_0x5d8c88[_0xeff73b];_0x8ab5f8&&_0x15ae50(_0xeff73b)['observers']['push'](bindHandler(_0x2523c9['value'],_0x8ab5f8));}}for(let _0x210025 in handlers)_0x15ae50(_0x210025)['handlers']['push'](handlers[_0x210025]);for(let _0x164a98 in observers)_0x15ae50(_0x164a98)['observers']['push'](observers[_0x164a98]);return _0x44d075;}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(_0xb73b52){return 0.7*Math['max'](0x0,_0xb73b52)+0x8;}function dist(_0x41553c,_0x335b96){return Math['max'](Math['abs'](_0x41553c['clientX']-_0x335b96['clientX']),Math['abs'](_0x41553c['clientY']-_0x335b96['clientY']));}class MouseSelection{constructor(_0x3ad8a6,_0x114b69,_0x3ad20f,_0x3a8786){this['view']=_0x3ad8a6,this['startEvent']=_0x114b69,this['style']=_0x3ad20f,this['mustSelect']=_0x3a8786,this['scrollSpeed']={'x':0x0,'y':0x0},this['scrolling']=-0x1,this['lastEvent']=_0x114b69,this['scrollParents']=scrollableParents(_0x3ad8a6['contentDOM']),this['atoms']=_0x3ad8a6['state']['facet'](atomicRanges)['map'](_0x422147=>_0x422147(_0x3ad8a6));let _0x200990=_0x3ad8a6['contentDOM']['ownerDocument'];_0x200990['addEventListener']('mousemove',this['move']=this['move']['bind'](this)),_0x200990['addEventListener']('mouseup',this['up']=this['up']['bind'](this)),this['extend']=_0x114b69['shiftKey'],this['multiple']=_0x3ad8a6['state']['facet'](EditorState['allowMultipleSelections'])&&addsSelectionRange(_0x3ad8a6,_0x114b69),this['dragging']=!(!isInPrimarySelection(_0x3ad8a6,_0x114b69)||0x1!=getClickType(_0x114b69))&&null;}['start'](_0x27c223){!0x1===this['dragging']&&this['select'](_0x27c223);}['move'](_0x5af7b1){if(0x0==_0x5af7b1['buttons'])return this['destroy']();if(this['dragging']||null==this['dragging']&&dist(this['startEvent'],_0x5af7b1)<0xa)return;this['select'](this['lastEvent']=_0x5af7b1);let _0x396184=0x0,_0x30717f=0x0,_0x480640=0x0,_0x17f7e0=0x0,_0x172d18=this['view']['win']['innerWidth'],_0x1ac632=this['view']['win']['innerHeight'];this['scrollParents']['x']&&({left:_0x480640,right:_0x172d18}=this['scrollParents']['x']['getBoundingClientRect']()),this['scrollParents']['y']&&({top:_0x17f7e0,bottom:_0x1ac632}=this['scrollParents']['y']['getBoundingClientRect']());let _0x1c5cac=getScrollMargins(this['view']);_0x5af7b1['clientX']-_0x1c5cac['left']<=_0x480640+dragScrollMargin?_0x396184=-dragScrollSpeed(_0x480640-_0x5af7b1['clientX']):_0x5af7b1['clientX']+_0x1c5cac['right']>=_0x172d18-dragScrollMargin&&(_0x396184=dragScrollSpeed(_0x5af7b1['clientX']-_0x172d18)),_0x5af7b1['clientY']-_0x1c5cac['top']<=_0x17f7e0+dragScrollMargin?_0x30717f=-dragScrollSpeed(_0x17f7e0-_0x5af7b1['clientY']):_0x5af7b1['clientY']+_0x1c5cac['bottom']>=_0x1ac632-dragScrollMargin&&(_0x30717f=dragScrollSpeed(_0x5af7b1['clientY']-_0x1ac632)),this['setScrollSpeed'](_0x396184,_0x30717f);}['up'](_0x392f09){null==this['dragging']&&this['select'](this['lastEvent']),this['dragging']||_0x392f09['preventDefault'](),this['destroy']();}['destroy'](){this['setScrollSpeed'](0x0,0x0);let _0x3cd4aa=this['view']['contentDOM']['ownerDocument'];_0x3cd4aa['removeEventListener']('mousemove',this['move']),_0x3cd4aa['removeEventListener']('mouseup',this['up']),this['view']['inputState']['mouseSelection']=this['view']['inputState']['draggedContent']=null;}['setScrollSpeed'](_0xc8ab22,_0x50482d){this['scrollSpeed']={'x':_0xc8ab22,'y':_0x50482d},_0xc8ab22||_0x50482d?this['scrolling']<0x0&&(this['scrolling']=setInterval(()=>this['scroll'](),0x32)):this['scrolling']>-0x1&&(clearInterval(this['scrolling']),this['scrolling']=-0x1);}['scroll'](){let {x:_0x1c2a8b,y:_0x39b4cc}=this['scrollSpeed'];_0x1c2a8b&&this['scrollParents']['x']&&(this['scrollParents']['x']['scrollLeft']+=_0x1c2a8b,_0x1c2a8b=0x0),_0x39b4cc&&this['scrollParents']['y']&&(this['scrollParents']['y']['scrollTop']+=_0x39b4cc,_0x39b4cc=0x0),(_0x1c2a8b||_0x39b4cc)&&this['view']['win']['scrollBy'](_0x1c2a8b,_0x39b4cc),!0x1===this['dragging']&&this['select'](this['lastEvent']);}['select'](_0x504552){let {view:_0x4d0e4c}=this,_0x39619e=skipAtomsForSelection(this['atoms'],this['style']['get'](_0x504552,this['extend'],this['multiple']));!this['mustSelect']&&_0x39619e['eq'](_0x4d0e4c['state']['selection'],!0x1===this['dragging'])||this['view']['dispatch']({'selection':_0x39619e,'userEvent':'select.pointer'}),this['mustSelect']=!0x1;}['update'](_0x28615b){_0x28615b['transactions']['some'](_0x4abb10=>_0x4abb10['isUserEvent']('input.type'))?this['destroy']():this['style']['update'](_0x28615b)&&setTimeout(()=>this['select'](this['lastEvent']),0x14);}}function addsSelectionRange(_0x46bc01,_0x3f5e3a){let _0x19c511=_0x46bc01['state']['facet'](clickAddsSelectionRange);return _0x19c511['length']?_0x19c511[0x0](_0x3f5e3a):browser['mac']?_0x3f5e3a['metaKey']:_0x3f5e3a['ctrlKey'];}function dragMovesSelection(_0x190f2a,_0x48d1e2){let _0x3f86a8=_0x190f2a['state']['facet'](dragMovesSelection$1);return _0x3f86a8['length']?_0x3f86a8[0x0](_0x48d1e2):browser['mac']?!_0x48d1e2['altKey']:!_0x48d1e2['ctrlKey'];}function isInPrimarySelection(_0x3b76d0,_0x3a98f0){let {main:_0x471d28}=_0x3b76d0['state']['selection'];if(_0x471d28['empty'])return!0x1;let _0xa16f24=getSelection(_0x3b76d0['root']);if(!_0xa16f24||0x0==_0xa16f24['rangeCount'])return!0x0;let _0x31be44=_0xa16f24['getRangeAt'](0x0)['getClientRects']();for(let _0x8bf2a=0x0;_0x8bf2a<_0x31be44['length'];_0x8bf2a++){let _0x14fd72=_0x31be44[_0x8bf2a];if(_0x14fd72['left']<=_0x3a98f0['clientX']&&_0x14fd72['right']>=_0x3a98f0['clientX']&&_0x14fd72['top']<=_0x3a98f0['clientY']&&_0x14fd72['bottom']>=_0x3a98f0['clientY'])return!0x0;}return!0x1;}function eventBelongsToEditor(_0x4b3995,_0x27d2ad){if(!_0x27d2ad['bubbles'])return!0x0;if(_0x27d2ad['defaultPrevented'])return!0x1;for(let _0x47f55e,_0x2278da=_0x27d2ad['target'];_0x2278da!=_0x4b3995['contentDOM'];_0x2278da=_0x2278da['parentNode'])if(!_0x2278da||0xb==_0x2278da['nodeType']||(_0x47f55e=ContentView['get'](_0x2278da))&&_0x47f55e['ignoreEvent'](_0x27d2ad))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(_0x4a522d){let _0x31767e=_0x4a522d['dom']['parentNode'];if(!_0x31767e)return;let _0x9c682c=_0x31767e['appendChild'](document['createElement']('textarea'));_0x9c682c['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0x9c682c['focus'](),setTimeout(()=>{_0x4a522d['focus'](),_0x9c682c['remove'](),doPaste(_0x4a522d,_0x9c682c['value']);},0x32);}function textFilter(_0x2d52ef,_0x4bfd56,_0x192d2a){for(let _0xd26752 of _0x2d52ef['facet'](_0x4bfd56))_0x192d2a=_0xd26752(_0x192d2a,_0x2d52ef);return _0x192d2a;}function doPaste(_0x114af9,_0x1d2787){_0x1d2787=textFilter(_0x114af9['state'],clipboardInputFilter,_0x1d2787);let _0x525275,{state:_0x58ee7a}=_0x114af9,_0x18211c=0x1,_0x1f9bf8=_0x58ee7a['toText'](_0x1d2787),_0x352a4b=_0x1f9bf8['lines']==_0x58ee7a['selection']['ranges']['length'];if(null!=lastLinewiseCopy&&_0x58ee7a['selection']['ranges']['every'](_0x3b39a5=>_0x3b39a5['empty'])&&lastLinewiseCopy==_0x1f9bf8['toString']()){let _0x3143eb=-0x1;_0x525275=_0x58ee7a['changeByRange'](_0x52a6f4=>{let _0x67dbf3=_0x58ee7a['doc']['lineAt'](_0x52a6f4['from']);if(_0x67dbf3['from']==_0x3143eb)return{'range':_0x52a6f4};_0x3143eb=_0x67dbf3['from'];let _0x2495fe=_0x58ee7a['toText']((_0x352a4b?_0x1f9bf8['line'](_0x18211c++)['text']:_0x1d2787)+_0x58ee7a['lineBreak']);return{'changes':{'from':_0x67dbf3['from'],'insert':_0x2495fe},'range':EditorSelection['cursor'](_0x52a6f4['from']+_0x2495fe['length'])};});}else _0x525275=_0x352a4b?_0x58ee7a['changeByRange'](_0x4f1526=>{let _0x3ccafc=_0x1f9bf8['line'](_0x18211c++);return{'changes':{'from':_0x4f1526['from'],'to':_0x4f1526['to'],'insert':_0x3ccafc['text']},'range':EditorSelection['cursor'](_0x4f1526['from']+_0x3ccafc['length'])};}):_0x58ee7a['replaceSelection'](_0x1f9bf8);_0x114af9['dispatch'](_0x525275,{'userEvent':'input.paste','scrollIntoView':!0x0});}function rangeForClick(_0x25a592,_0x12ab72,_0x2f816f,_0x401721){if(0x1==_0x401721)return EditorSelection['cursor'](_0x12ab72,_0x2f816f);if(0x2==_0x401721)return groupAt(_0x25a592['state'],_0x12ab72,_0x2f816f);{let _0x708acd=LineView['find'](_0x25a592['docView'],_0x12ab72),_0x2dafd5=_0x25a592['state']['doc']['lineAt'](_0x708acd?_0x708acd['posAtEnd']:_0x12ab72),_0x33c756=_0x708acd?_0x708acd['posAtStart']:_0x2dafd5['from'],_0x5d9f3f=_0x708acd?_0x708acd['posAtEnd']:_0x2dafd5['to'];return _0x5d9f3f<_0x25a592['state']['doc']['length']&&_0x5d9f3f==_0x2dafd5['to']&&_0x5d9f3f++,EditorSelection['range'](_0x33c756,_0x5d9f3f);}}observers['scroll']=_0x5ec6e5=>{_0x5ec6e5['inputState']['lastScrollTop']=_0x5ec6e5['scrollDOM']['scrollTop'],_0x5ec6e5['inputState']['lastScrollLeft']=_0x5ec6e5['scrollDOM']['scrollLeft'];},handlers['keydown']=(_0x3141ec,_0x43fa6b)=>(_0x3141ec['inputState']['setSelectionOrigin']('select'),0x1b==_0x43fa6b['keyCode']&&0x0!=_0x3141ec['inputState']['tabFocusMode']&&(_0x3141ec['inputState']['tabFocusMode']=Date['now']()+0x7d0),!0x1),observers['touchstart']=(_0xedbdd0,_0x1edfcd)=>{_0xedbdd0['inputState']['lastTouchTime']=Date['now'](),_0xedbdd0['inputState']['setSelectionOrigin']('select.pointer');},observers['touchmove']=_0x55f431=>{_0x55f431['inputState']['setSelectionOrigin']('select.pointer');},handlers['mousedown']=(_0x2c81d0,_0x4bb246)=>{if(_0x2c81d0['observer']['flush'](),_0x2c81d0['inputState']['lastTouchTime']>Date['now']()-0x7d0)return!0x1;let _0xb928eb=null;for(let _0x3f17cd of _0x2c81d0['state']['facet'](mouseSelectionStyle))if(_0xb928eb=_0x3f17cd(_0x2c81d0,_0x4bb246),_0xb928eb)break;if(_0xb928eb||0x0!=_0x4bb246['button']||(_0xb928eb=basicMouseSelection(_0x2c81d0,_0x4bb246)),_0xb928eb){let _0x356c6f=!_0x2c81d0['hasFocus'];_0x2c81d0['inputState']['startMouseSelection'](new MouseSelection(_0x2c81d0,_0x4bb246,_0xb928eb,_0x356c6f)),_0x356c6f&&_0x2c81d0['observer']['ignore'](()=>{focusPreventScroll(_0x2c81d0['contentDOM']);let _0x200811=_0x2c81d0['root']['activeElement'];_0x200811&&!_0x200811['contains'](_0x2c81d0['contentDOM'])&&_0x200811['blur']();});let _0x580e07=_0x2c81d0['inputState']['mouseSelection'];if(_0x580e07)return _0x580e07['start'](_0x4bb246),!0x1===_0x580e07['dragging'];}else _0x2c81d0['inputState']['setSelectionOrigin']('select.pointer');return!0x1;};let inside=(_0xbb20b1,_0x3e1ed1,_0x70a29a)=>_0x3e1ed1>=_0x70a29a['top']&&_0x3e1ed1<=_0x70a29a['bottom']&&_0xbb20b1>=_0x70a29a['left']&&_0xbb20b1<=_0x70a29a['right'];function findPositionSide(_0x373e03,_0xd9f899,_0x8eb36e,_0x123617){let _0x38a2cd=LineView['find'](_0x373e03['docView'],_0xd9f899);if(!_0x38a2cd)return 0x1;let _0x47b947=_0xd9f899-_0x38a2cd['posAtStart'];if(0x0==_0x47b947)return 0x1;if(_0x47b947==_0x38a2cd['length'])return-0x1;let _0x66cb24=_0x38a2cd['coordsAt'](_0x47b947,-0x1);if(_0x66cb24&&inside(_0x8eb36e,_0x123617,_0x66cb24))return-0x1;let _0x360758=_0x38a2cd['coordsAt'](_0x47b947,0x1);return _0x360758&&inside(_0x8eb36e,_0x123617,_0x360758)?0x1:_0x66cb24&&_0x66cb24['bottom']>=_0x123617?-0x1:0x1;}function queryPos(_0x8b02de,_0x1270f0){let _0x3d75ef=_0x8b02de['posAtCoords']({'x':_0x1270f0['clientX'],'y':_0x1270f0['clientY']},!0x1);return{'pos':_0x3d75ef,'bias':findPositionSide(_0x8b02de,_0x3d75ef,_0x1270f0['clientX'],_0x1270f0['clientY'])};}const BadMouseDetail=browser['ie']&&browser['ie_version']<=0xb;let lastMouseDown=null,lastMouseDownCount=0x0,lastMouseDownTime=0x0;function getClickType(_0xf01662){if(!BadMouseDetail)return _0xf01662['detail'];let _0xbf1127=lastMouseDown,_0x164aeb=lastMouseDownTime;return lastMouseDown=_0xf01662,lastMouseDownTime=Date['now'](),lastMouseDownCount=!_0xbf1127||_0x164aeb>Date['now']()-0x190&&Math['abs'](_0xbf1127['clientX']-_0xf01662['clientX'])<0x2&&Math['abs'](_0xbf1127['clientY']-_0xf01662['clientY'])<0x2?(lastMouseDownCount+0x1)%0x3:0x1;}function basicMouseSelection(_0x4991f7,_0x2a25c4){let _0x56f02b=queryPos(_0x4991f7,_0x2a25c4),_0x3f1b45=getClickType(_0x2a25c4),_0x4deab6=_0x4991f7['state']['selection'];return{'update'(_0x281817){_0x281817['docChanged']&&(_0x56f02b['pos']=_0x281817['changes']['mapPos'](_0x56f02b['pos']),_0x4deab6=_0x4deab6['map'](_0x281817['changes']));},'get'(_0x55dda0,_0x5437ba,_0x4030c6){let _0x2a89cd,_0x310068=queryPos(_0x4991f7,_0x55dda0),_0x2fec43=rangeForClick(_0x4991f7,_0x310068['pos'],_0x310068['bias'],_0x3f1b45);if(_0x56f02b['pos']!=_0x310068['pos']&&!_0x5437ba){let _0x232aeb=rangeForClick(_0x4991f7,_0x56f02b['pos'],_0x56f02b['bias'],_0x3f1b45),_0x471406=Math['min'](_0x232aeb['from'],_0x2fec43['from']),_0x16edd7=Math['max'](_0x232aeb['to'],_0x2fec43['to']);_0x2fec43=_0x471406<_0x2fec43['from']?EditorSelection['range'](_0x471406,_0x16edd7):EditorSelection['range'](_0x16edd7,_0x471406);}return _0x5437ba?_0x4deab6['replaceRange'](_0x4deab6['main']['extend'](_0x2fec43['from'],_0x2fec43['to'])):_0x4030c6&&0x1==_0x3f1b45&&_0x4deab6['ranges']['length']>0x1&&(_0x2a89cd=removeRangeAround(_0x4deab6,_0x310068['pos']))?_0x2a89cd:_0x4030c6?_0x4deab6['addRange'](_0x2fec43):EditorSelection['create']([_0x2fec43]);}};}function removeRangeAround(_0x5d8429,_0x11db7c){for(let _0x5365e0=0x0;_0x5365e0<_0x5d8429['ranges']['length'];_0x5365e0++){let {from:_0x79133f,to:_0x53586e}=_0x5d8429['ranges'][_0x5365e0];if(_0x79133f<=_0x11db7c&&_0x53586e>=_0x11db7c)return EditorSelection['create'](_0x5d8429['ranges']['slice'](0x0,_0x5365e0)['concat'](_0x5d8429['ranges']['slice'](_0x5365e0+0x1)),_0x5d8429['mainIndex']==_0x5365e0?0x0:_0x5d8429['mainIndex']-(_0x5d8429['mainIndex']>_0x5365e0?0x1:0x0));}return null;}function dropText(_0x50beca,_0x55767a,_0x55707b,_0x26ab35){if(!(_0x55707b=textFilter(_0x50beca['state'],clipboardInputFilter,_0x55707b)))return;let _0x58cf66=_0x50beca['posAtCoords']({'x':_0x55767a['clientX'],'y':_0x55767a['clientY']},!0x1),{draggedContent:_0x2d5281}=_0x50beca['inputState'],_0x1a690e=_0x26ab35&&_0x2d5281&&dragMovesSelection(_0x50beca,_0x55767a)?{'from':_0x2d5281['from'],'to':_0x2d5281['to']}:null,_0x272771={'from':_0x58cf66,'insert':_0x55707b},_0x4d985e=_0x50beca['state']['changes'](_0x1a690e?[_0x1a690e,_0x272771]:_0x272771);_0x50beca['focus'](),_0x50beca['dispatch']({'changes':_0x4d985e,'selection':{'anchor':_0x4d985e['mapPos'](_0x58cf66,-0x1),'head':_0x4d985e['mapPos'](_0x58cf66,0x1)},'userEvent':_0x1a690e?'move.drop':'input.drop'}),_0x50beca['inputState']['draggedContent']=null;}function captureCopy(_0x165540,_0x59e9a8){let _0x545ccd=_0x165540['dom']['parentNode'];if(!_0x545ccd)return;let _0x3e4383=_0x545ccd['appendChild'](document['createElement']('textarea'));_0x3e4383['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0x3e4383['value']=_0x59e9a8,_0x3e4383['focus'](),_0x3e4383['selectionEnd']=_0x59e9a8['length'],_0x3e4383['selectionStart']=0x0,setTimeout(()=>{_0x3e4383['remove'](),_0x165540['focus']();},0x32);}function copiedRange(_0x5788ee){let _0x1ceb77=[],_0x54650c=[],_0x13b724=!0x1;for(let _0xec8cd of _0x5788ee['selection']['ranges'])_0xec8cd['empty']||(_0x1ceb77['push'](_0x5788ee['sliceDoc'](_0xec8cd['from'],_0xec8cd['to'])),_0x54650c['push'](_0xec8cd));if(!_0x1ceb77['length']){let _0x2f4487=-0x1;for(let {from:_0x12e52d}of _0x5788ee['selection']['ranges']){let _0x19cc78=_0x5788ee['doc']['lineAt'](_0x12e52d);_0x19cc78['number']>_0x2f4487&&(_0x1ceb77['push'](_0x19cc78['text']),_0x54650c['push']({'from':_0x19cc78['from'],'to':Math['min'](_0x5788ee['doc']['length'],_0x19cc78['to']+0x1)})),_0x2f4487=_0x19cc78['number'];}_0x13b724=!0x0;}return{'text':textFilter(_0x5788ee,clipboardOutputFilter,_0x1ceb77['join'](_0x5788ee['lineBreak'])),'ranges':_0x54650c,'linewise':_0x13b724};}handlers['dragstart']=(_0x59b43c,_0x42ef78)=>{let {selection:{main:_0x4b6014}}=_0x59b43c['state'];if(_0x42ef78['target']['draggable']){let _0x72e3e3=_0x59b43c['docView']['nearest'](_0x42ef78['target']);if(_0x72e3e3&&_0x72e3e3['isWidget']){let _0x38807c=_0x72e3e3['posAtStart'],_0x4fed66=_0x38807c+_0x72e3e3['length'];(_0x38807c>=_0x4b6014['to']||_0x4fed66<=_0x4b6014['from'])&&(_0x4b6014=EditorSelection['range'](_0x38807c,_0x4fed66));}}let {inputState:_0x1a308b}=_0x59b43c;return _0x1a308b['mouseSelection']&&(_0x1a308b['mouseSelection']['dragging']=!0x0),_0x1a308b['draggedContent']=_0x4b6014,_0x42ef78['dataTransfer']&&(_0x42ef78['dataTransfer']['setData']('Text',textFilter(_0x59b43c['state'],clipboardOutputFilter,_0x59b43c['state']['sliceDoc'](_0x4b6014['from'],_0x4b6014['to']))),_0x42ef78['dataTransfer']['effectAllowed']='copyMove'),!0x1;},handlers['dragend']=_0x1313db=>(_0x1313db['inputState']['draggedContent']=null,!0x1),handlers['drop']=(_0x5ef882,_0x4c5dd2)=>{if(!_0x4c5dd2['dataTransfer'])return!0x1;if(_0x5ef882['state']['readOnly'])return!0x0;let _0x146f9d=_0x4c5dd2['dataTransfer']['files'];if(_0x146f9d&&_0x146f9d['length']){let _0x47cb63=Array(_0x146f9d['length']),_0x1d2d14=0x0,_0x2ec5fc=()=>{++_0x1d2d14==_0x146f9d['length']&&dropText(_0x5ef882,_0x4c5dd2,_0x47cb63['filter'](_0x68373f=>null!=_0x68373f)['join'](_0x5ef882['state']['lineBreak']),!0x1);};for(let _0x5ca9cf=0x0;_0x5ca9cf<_0x146f9d['length'];_0x5ca9cf++){let _0x2d5c77=new FileReader();_0x2d5c77['onerror']=_0x2ec5fc,_0x2d5c77['onload']=()=>{/[\x00-\x08\x0e-\x1f]{2}/['test'](_0x2d5c77['result'])||(_0x47cb63[_0x5ca9cf]=_0x2d5c77['result']),_0x2ec5fc();},_0x2d5c77['readAsText'](_0x146f9d[_0x5ca9cf]);}return!0x0;}{let _0x21e598=_0x4c5dd2['dataTransfer']['getData']('Text');if(_0x21e598)return dropText(_0x5ef882,_0x4c5dd2,_0x21e598,!0x0),!0x0;}return!0x1;},handlers['paste']=(_0x4a5264,_0xea62c)=>{if(_0x4a5264['state']['readOnly'])return!0x0;_0x4a5264['observer']['flush']();let _0x2b461d=brokenClipboardAPI?null:_0xea62c['clipboardData'];return _0x2b461d?(doPaste(_0x4a5264,_0x2b461d['getData']('text/plain')||_0x2b461d['getData']('text/uri-list')),!0x0):(capturePaste(_0x4a5264),!0x1);};let lastLinewiseCopy=null;handlers['copy']=handlers['cut']=(_0x26843a,_0x582c07)=>{let {text:_0x4e72bd,ranges:_0x488ee0,linewise:_0x5ea628}=copiedRange(_0x26843a['state']);if(!_0x4e72bd&&!_0x5ea628)return!0x1;lastLinewiseCopy=_0x5ea628?_0x4e72bd:null,'cut'!=_0x582c07['type']||_0x26843a['state']['readOnly']||_0x26843a['dispatch']({'changes':_0x488ee0,'scrollIntoView':!0x0,'userEvent':'delete.cut'});let _0x5a230d=brokenClipboardAPI?null:_0x582c07['clipboardData'];return _0x5a230d?(_0x5a230d['clearData'](),_0x5a230d['setData']('text/plain',_0x4e72bd),!0x0):(captureCopy(_0x26843a,_0x4e72bd),!0x1);};const isFocusChange=Annotation['define']();function focusChangeTransaction(_0xe9e1d2,_0x4b4edc){let _0x203128=[];for(let _0x573c12 of _0xe9e1d2['facet'](focusChangeEffect)){let _0x2b1231=_0x573c12(_0xe9e1d2,_0x4b4edc);_0x2b1231&&_0x203128['push'](_0x2b1231);}return _0x203128['length']?_0xe9e1d2['update']({'effects':_0x203128,'annotations':isFocusChange['of'](!0x0)}):null;}function updateForFocusChange(_0x4c6cda){setTimeout(()=>{let _0x54f6ef=_0x4c6cda['hasFocus'];if(_0x54f6ef!=_0x4c6cda['inputState']['notifiedFocused']){let _0x126f6b=focusChangeTransaction(_0x4c6cda['state'],_0x54f6ef);_0x126f6b?_0x4c6cda['dispatch'](_0x126f6b):_0x4c6cda['update']([]);}},0xa);}observers['focus']=_0x371d96=>{_0x371d96['inputState']['lastFocusTime']=Date['now'](),_0x371d96['scrollDOM']['scrollTop']||!_0x371d96['inputState']['lastScrollTop']&&!_0x371d96['inputState']['lastScrollLeft']||(_0x371d96['scrollDOM']['scrollTop']=_0x371d96['inputState']['lastScrollTop'],_0x371d96['scrollDOM']['scrollLeft']=_0x371d96['inputState']['lastScrollLeft']),updateForFocusChange(_0x371d96);},observers['blur']=_0x574193=>{_0x574193['observer']['clearSelectionRange'](),updateForFocusChange(_0x574193);},observers['compositionstart']=observers['compositionupdate']=_0x15b908=>{_0x15b908['observer']['editContext']||(null==_0x15b908['inputState']['compositionFirstChange']&&(_0x15b908['inputState']['compositionFirstChange']=!0x0),_0x15b908['inputState']['composing']<0x0&&(_0x15b908['inputState']['composing']=0x0));},observers['compositionend']=_0x441b5d=>{_0x441b5d['observer']['editContext']||(_0x441b5d['inputState']['composing']=-0x1,_0x441b5d['inputState']['compositionEndedAt']=Date['now'](),_0x441b5d['inputState']['compositionPendingKey']=!0x0,_0x441b5d['inputState']['compositionPendingChange']=_0x441b5d['observer']['pendingRecords']()['length']>0x0,_0x441b5d['inputState']['compositionFirstChange']=null,browser['chrome']&&browser['android']?_0x441b5d['observer']['flushSoon']():_0x441b5d['inputState']['compositionPendingChange']?Promise['resolve']()['then'](()=>_0x441b5d['observer']['flush']()):setTimeout(()=>{_0x441b5d['inputState']['composing']<0x0&&_0x441b5d['docView']['hasComposition']&&_0x441b5d['update']([]);},0x32));},observers['contextmenu']=_0x50ae1e=>{_0x50ae1e['inputState']['lastContextMenu']=Date['now']();},handlers['beforeinput']=(_0x357de2,_0x25ac23)=>{var _0x2c50a6,_0x1f1b16;if('insertReplacementText'==_0x25ac23['inputType']&&_0x357de2['observer']['editContext']){let _0x154885=null===(_0x2c50a6=_0x25ac23['dataTransfer'])||void 0x0===_0x2c50a6?void 0x0:_0x2c50a6['getData']('text/plain'),_0x5aa149=_0x25ac23['getTargetRanges']();if(_0x154885&&_0x5aa149['length']){let _0x19d03e=_0x5aa149[0x0],_0x42d4cc=_0x357de2['posAtDOM'](_0x19d03e['startContainer'],_0x19d03e['startOffset']),_0x134b4d=_0x357de2['posAtDOM'](_0x19d03e['endContainer'],_0x19d03e['endOffset']);return applyDOMChangeInner(_0x357de2,{'from':_0x42d4cc,'to':_0x134b4d,'insert':_0x357de2['state']['toText'](_0x154885)},null),!0x0;}}let _0x5bca3d;if(browser['chrome']&&browser['android']&&(_0x5bca3d=PendingKeys['find'](_0x4087a3=>_0x4087a3['inputType']==_0x25ac23['inputType']))&&(_0x357de2['observer']['delayAndroidKey'](_0x5bca3d['key'],_0x5bca3d['keyCode']),'Backspace'==_0x5bca3d['key']||'Delete'==_0x5bca3d['key'])){let _0xc50e6=(null===(_0x1f1b16=window['visualViewport'])||void 0x0===_0x1f1b16?void 0x0:_0x1f1b16['height'])||0x0;setTimeout(()=>{var _0x3d1ca7;((null===(_0x3d1ca7=window['visualViewport'])||void 0x0===_0x3d1ca7?void 0x0:_0x3d1ca7['height'])||0x0)>_0xc50e6+0xa&&_0x357de2['hasFocus']&&(_0x357de2['contentDOM']['blur'](),_0x357de2['focus']());},0x64);}return browser['ios']&&'deleteContentForward'==_0x25ac23['inputType']&&_0x357de2['observer']['flushSoon'](),browser['safari']&&'insertText'==_0x25ac23['inputType']&&_0x357de2['inputState']['composing']>=0x0&&setTimeout(()=>observers['compositionend'](_0x357de2,_0x25ac23),0x14),!0x1;};const appliedFirefoxHack=new Set();function firefoxCopyCutHack(_0x4a7e0e){appliedFirefoxHack['has'](_0x4a7e0e)||(appliedFirefoxHack['add'](_0x4a7e0e),_0x4a7e0e['addEventListener']('copy',()=>{}),_0x4a7e0e['addEventListener']('cut',()=>{}));}const wrappingWhiteSpace=['pre-wrap','normal','pre-line','break-spaces'];let heightChangeFlag=!0x1;function clearHeightChangeFlag(){heightChangeFlag=!0x1;}class HeightOracle{constructor(_0x47fcdd){this['lineWrapping']=_0x47fcdd,this['doc']=Text['empty'],this['heightSamples']={},this['lineHeight']=0xe,this['charWidth']=0x7,this['textHeight']=0xe,this['lineLength']=0x1e;}['heightForGap'](_0x775cde,_0x4841fe){let _0x12ac01=this['doc']['lineAt'](_0x4841fe)['number']-this['doc']['lineAt'](_0x775cde)['number']+0x1;return this['lineWrapping']&&(_0x12ac01+=Math['max'](0x0,Math['ceil']((_0x4841fe-_0x775cde-_0x12ac01*this['lineLength']*0.5)/this['lineLength']))),this['lineHeight']*_0x12ac01;}['heightForLine'](_0x3ada7b){if(!this['lineWrapping'])return this['lineHeight'];return(0x1+Math['max'](0x0,Math['ceil']((_0x3ada7b-this['lineLength'])/Math['max'](0x1,this['lineLength']-0x5))))*this['lineHeight'];}['setDoc'](_0x329d31){return this['doc']=_0x329d31,this;}['mustRefreshForWrapping'](_0xc91bcd){return wrappingWhiteSpace['indexOf'](_0xc91bcd)>-0x1!=this['lineWrapping'];}['mustRefreshForHeights'](_0x3069e3){let _0x4452c6=!0x1;for(let _0x43b1d2=0x0;_0x43b1d2<_0x3069e3['length'];_0x43b1d2++){let _0x519fcd=_0x3069e3[_0x43b1d2];_0x519fcd<0x0?_0x43b1d2++:this['heightSamples'][Math['floor'](0xa*_0x519fcd)]||(_0x4452c6=!0x0,this['heightSamples'][Math['floor'](0xa*_0x519fcd)]=!0x0);}return _0x4452c6;}['refresh'](_0x33119c,_0x441b1d,_0x27c5f9,_0x2fcf9d,_0x10f7f9,_0xbd5611){let _0x1311be=wrappingWhiteSpace['indexOf'](_0x33119c)>-0x1,_0x1f24fe=Math['round'](_0x441b1d)!=Math['round'](this['lineHeight'])||this['lineWrapping']!=_0x1311be;if(this['lineWrapping']=_0x1311be,this['lineHeight']=_0x441b1d,this['charWidth']=_0x27c5f9,this['textHeight']=_0x2fcf9d,this['lineLength']=_0x10f7f9,_0x1f24fe){this['heightSamples']={};for(let _0x1693b4=0x0;_0x1693b4<_0xbd5611['length'];_0x1693b4++){let _0x4b720e=_0xbd5611[_0x1693b4];_0x4b720e<0x0?_0x1693b4++:this['heightSamples'][Math['floor'](0xa*_0x4b720e)]=!0x0;}}return _0x1f24fe;}}class MeasuredHeights{constructor(_0x401bf1,_0x4153e7){this['from']=_0x401bf1,this['heights']=_0x4153e7,this['index']=0x0;}get['more'](){return this['index']<this['heights']['length'];}}class BlockInfo{constructor(_0x2a6b80,_0x5b7412,_0x4c98bd,_0x3e5b89,_0x1da42a){this['from']=_0x2a6b80,this['length']=_0x5b7412,this['top']=_0x4c98bd,this['height']=_0x3e5b89,this['_content']=_0x1da42a;}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'](_0x42fe84){let _0x119516=(Array['isArray'](this['_content'])?this['_content']:[this])['concat'](Array['isArray'](_0x42fe84['_content'])?_0x42fe84['_content']:[_0x42fe84]);return new BlockInfo(this['from'],this['length']+_0x42fe84['length'],this['top'],this['height']+_0x42fe84['height'],_0x119516);}}var QueryType=function(_0x1c7544){return _0x1c7544[_0x1c7544['ByPos']=0x0]='ByPos',_0x1c7544[_0x1c7544['ByHeight']=0x1]='ByHeight',_0x1c7544[_0x1c7544['ByPosNoHeight']=0x2]='ByPosNoHeight',_0x1c7544;}(QueryType||(QueryType={}));const Epsilon=0.001;class HeightMap{constructor(_0x2361e1,_0x16ade7,_0x4258c4=0x2){this['length']=_0x2361e1,this['height']=_0x16ade7,this['flags']=_0x4258c4;}get['outdated'](){return(0x2&this['flags'])>0x0;}set['outdated'](_0x2cd186){this['flags']=(_0x2cd186?0x2:0x0)|-0x3&this['flags'];}['setHeight'](_0x4fac0d){this['height']!=_0x4fac0d&&(Math['abs'](this['height']-_0x4fac0d)>Epsilon&&(heightChangeFlag=!0x0),this['height']=_0x4fac0d);}['replace'](_0x4ec57f,_0xa547d4,_0x387dbf){return HeightMap['of'](_0x387dbf);}['decomposeLeft'](_0x39d246,_0x25c6e6){_0x25c6e6['push'](this);}['decomposeRight'](_0x59805d,_0x427de6){_0x427de6['push'](this);}['applyChanges'](_0x3980da,_0x56ff11,_0x1f9943,_0xef0fc3){let _0x3694b6=this,_0x538f88=_0x1f9943['doc'];for(let _0xa6478f=_0xef0fc3['length']-0x1;_0xa6478f>=0x0;_0xa6478f--){let {fromA:_0x2dd53c,toA:_0x3c4369,fromB:_0x2384f4,toB:_0xa1de50}=_0xef0fc3[_0xa6478f],_0x5b4d4b=_0x3694b6['lineAt'](_0x2dd53c,QueryType['ByPosNoHeight'],_0x1f9943['setDoc'](_0x56ff11),0x0,0x0),_0x324fa6=_0x5b4d4b['to']>=_0x3c4369?_0x5b4d4b:_0x3694b6['lineAt'](_0x3c4369,QueryType['ByPosNoHeight'],_0x1f9943,0x0,0x0);for(_0xa1de50+=_0x324fa6['to']-_0x3c4369,_0x3c4369=_0x324fa6['to'];_0xa6478f>0x0&&_0x5b4d4b['from']<=_0xef0fc3[_0xa6478f-0x1]['toA'];)_0x2dd53c=_0xef0fc3[_0xa6478f-0x1]['fromA'],_0x2384f4=_0xef0fc3[_0xa6478f-0x1]['fromB'],_0xa6478f--,_0x2dd53c<_0x5b4d4b['from']&&(_0x5b4d4b=_0x3694b6['lineAt'](_0x2dd53c,QueryType['ByPosNoHeight'],_0x1f9943,0x0,0x0));_0x2384f4+=_0x5b4d4b['from']-_0x2dd53c,_0x2dd53c=_0x5b4d4b['from'];let _0x43fd70=NodeBuilder['build'](_0x1f9943['setDoc'](_0x538f88),_0x3980da,_0x2384f4,_0xa1de50);_0x3694b6=replace(_0x3694b6,_0x3694b6['replace'](_0x2dd53c,_0x3c4369,_0x43fd70));}return _0x3694b6['updateHeight'](_0x1f9943,0x0);}static['empty'](){return new HeightMapText(0x0,0x0);}static['of'](_0xdc038c){if(0x1==_0xdc038c['length'])return _0xdc038c[0x0];let _0x1547ec=0x0,_0x571c6a=_0xdc038c['length'],_0x43eb0e=0x0,_0x1d7465=0x0;for(;;)if(_0x1547ec==_0x571c6a){if(_0x43eb0e>0x2*_0x1d7465){let _0x499815=_0xdc038c[_0x1547ec-0x1];_0x499815['break']?_0xdc038c['splice'](--_0x1547ec,0x1,_0x499815['left'],null,_0x499815['right']):_0xdc038c['splice'](--_0x1547ec,0x1,_0x499815['left'],_0x499815['right']),_0x571c6a+=0x1+_0x499815['break'],_0x43eb0e-=_0x499815['size'];}else{if(!(_0x1d7465>0x2*_0x43eb0e))break;{let _0x3f70fa=_0xdc038c[_0x571c6a];_0x3f70fa['break']?_0xdc038c['splice'](_0x571c6a,0x1,_0x3f70fa['left'],null,_0x3f70fa['right']):_0xdc038c['splice'](_0x571c6a,0x1,_0x3f70fa['left'],_0x3f70fa['right']),_0x571c6a+=0x2+_0x3f70fa['break'],_0x1d7465-=_0x3f70fa['size'];}}}else{if(_0x43eb0e<_0x1d7465){let _0x499536=_0xdc038c[_0x1547ec++];_0x499536&&(_0x43eb0e+=_0x499536['size']);}else{let _0x3574fa=_0xdc038c[--_0x571c6a];_0x3574fa&&(_0x1d7465+=_0x3574fa['size']);}}let _0x4546bf=0x0;return null==_0xdc038c[_0x1547ec-0x1]?(_0x4546bf=0x1,_0x1547ec--):null==_0xdc038c[_0x1547ec]&&(_0x4546bf=0x1,_0x571c6a++),new HeightMapBranch(HeightMap['of'](_0xdc038c['slice'](0x0,_0x1547ec)),_0x4546bf,HeightMap['of'](_0xdc038c['slice'](_0x571c6a)));}}function replace(_0x1eaa8d,_0x405f02){return _0x1eaa8d==_0x405f02?_0x1eaa8d:(_0x1eaa8d['constructor']!=_0x405f02['constructor']&&(heightChangeFlag=!0x0),_0x405f02);}HeightMap['prototype']['size']=0x1;class HeightMapBlock extends HeightMap{constructor(_0x44c4dc,_0x2103bb,_0x5f3123){super(_0x44c4dc,_0x2103bb),this['deco']=_0x5f3123;}['blockAt'](_0x3701a1,_0x1582c5,_0x418e9a,_0x531a0e){return new BlockInfo(_0x531a0e,this['length'],_0x418e9a,this['height'],this['deco']||0x0);}['lineAt'](_0x4e7cca,_0x4713de,_0x39ee23,_0x1c8df1,_0x57dbd6){return this['blockAt'](0x0,_0x39ee23,_0x1c8df1,_0x57dbd6);}['forEachLine'](_0x2fba47,_0x327f2f,_0x922f62,_0x3f2830,_0xaa66ec,_0x286bb5){_0x2fba47<=_0xaa66ec+this['length']&&_0x327f2f>=_0xaa66ec&&_0x286bb5(this['blockAt'](0x0,_0x922f62,_0x3f2830,_0xaa66ec));}['updateHeight'](_0xb683fe,_0xc2393e=0x0,_0x1fef10=!0x1,_0x4a1b27){return _0x4a1b27&&_0x4a1b27['from']<=_0xc2393e&&_0x4a1b27['more']&&this['setHeight'](_0x4a1b27['heights'][_0x4a1b27['index']++]),this['outdated']=!0x1,this;}['toString'](){return'block('+this['length']+')';}}class HeightMapText extends HeightMapBlock{constructor(_0x4654c5,_0x2b7d2a){super(_0x4654c5,_0x2b7d2a,null),this['collapsed']=0x0,this['widgetHeight']=0x0,this['breaks']=0x0;}['blockAt'](_0x35f6b1,_0x1ac43b,_0x57e1ba,_0x576fdd){return new BlockInfo(_0x576fdd,this['length'],_0x57e1ba,this['height'],this['breaks']);}['replace'](_0x43ec4b,_0x22869b,_0x3ed9f1){let _0x5df6d3=_0x3ed9f1[0x0];return 0x1==_0x3ed9f1['length']&&(_0x5df6d3 instanceof HeightMapText||_0x5df6d3 instanceof HeightMapGap&&0x4&_0x5df6d3['flags'])&&Math['abs'](this['length']-_0x5df6d3['length'])<0xa?(_0x5df6d3 instanceof HeightMapGap?_0x5df6d3=new HeightMapText(_0x5df6d3['length'],this['height']):_0x5df6d3['height']=this['height'],this['outdated']||(_0x5df6d3['outdated']=!0x1),_0x5df6d3):HeightMap['of'](_0x3ed9f1);}['updateHeight'](_0x544884,_0x475f52=0x0,_0x5552f3=!0x1,_0x5b2d38){return _0x5b2d38&&_0x5b2d38['from']<=_0x475f52&&_0x5b2d38['more']?this['setHeight'](_0x5b2d38['heights'][_0x5b2d38['index']++]):(_0x5552f3||this['outdated'])&&this['setHeight'](Math['max'](this['widgetHeight'],_0x544884['heightForLine'](this['length']-this['collapsed']))+this['breaks']*_0x544884['lineHeight']),this['outdated']=!0x1,this;}['toString'](){return'line('+this['length']+(this['collapsed']?-this['collapsed']:'')+(this['widgetHeight']?':'+this['widgetHeight']:'')+')';}}class HeightMapGap extends HeightMap{constructor(_0x27f1ec){super(_0x27f1ec,0x0);}['heightMetrics'](_0x145e7c,_0x2b7fdc){let _0x3897b7,_0x385d6b=_0x145e7c['doc']['lineAt'](_0x2b7fdc)['number'],_0x23bc66=_0x145e7c['doc']['lineAt'](_0x2b7fdc+this['length'])['number'],_0x42a7c1=_0x23bc66-_0x385d6b+0x1,_0x19f84c=0x0;if(_0x145e7c['lineWrapping']){let _0x15b9cd=Math['min'](this['height'],_0x145e7c['lineHeight']*_0x42a7c1);_0x3897b7=_0x15b9cd/_0x42a7c1,this['length']>_0x42a7c1+0x1&&(_0x19f84c=(this['height']-_0x15b9cd)/(this['length']-_0x42a7c1-0x1));}else _0x3897b7=this['height']/_0x42a7c1;return{'firstLine':_0x385d6b,'lastLine':_0x23bc66,'perLine':_0x3897b7,'perChar':_0x19f84c};}['blockAt'](_0x53e0d5,_0x5b3a9f,_0x5bcf4e,_0x1ef607){let {firstLine:_0x40657e,lastLine:_0x298217,perLine:_0x3735e7,perChar:_0x49abc4}=this['heightMetrics'](_0x5b3a9f,_0x1ef607);if(_0x5b3a9f['lineWrapping']){let _0x5c2b5d=_0x1ef607+(_0x53e0d5<_0x5b3a9f['lineHeight']?0x0:Math['round'](Math['max'](0x0,Math['min'](0x1,(_0x53e0d5-_0x5bcf4e)/this['height']))*this['length'])),_0xb48ac8=_0x5b3a9f['doc']['lineAt'](_0x5c2b5d),_0x398ff8=_0x3735e7+_0xb48ac8['length']*_0x49abc4,_0x52a367=Math['max'](_0x5bcf4e,_0x53e0d5-_0x398ff8/0x2);return new BlockInfo(_0xb48ac8['from'],_0xb48ac8['length'],_0x52a367,_0x398ff8,0x0);}{let _0x467fae=Math['max'](0x0,Math['min'](_0x298217-_0x40657e,Math['floor']((_0x53e0d5-_0x5bcf4e)/_0x3735e7))),{from:_0xb97c34,length:_0x2cda54}=_0x5b3a9f['doc']['line'](_0x40657e+_0x467fae);return new BlockInfo(_0xb97c34,_0x2cda54,_0x5bcf4e+_0x3735e7*_0x467fae,_0x3735e7,0x0);}}['lineAt'](_0x129be3,_0x1aad3e,_0x20c13c,_0x3a2cd2,_0x781cf5){if(_0x1aad3e==QueryType['ByHeight'])return this['blockAt'](_0x129be3,_0x20c13c,_0x3a2cd2,_0x781cf5);if(_0x1aad3e==QueryType['ByPosNoHeight']){let {from:_0x399109,to:_0x4bdafe}=_0x20c13c['doc']['lineAt'](_0x129be3);return new BlockInfo(_0x399109,_0x4bdafe-_0x399109,0x0,0x0,0x0);}let {firstLine:_0x92e88e,perLine:_0x303bc9,perChar:_0x2e75ff}=this['heightMetrics'](_0x20c13c,_0x781cf5),_0x34939e=_0x20c13c['doc']['lineAt'](_0x129be3),_0x34fa04=_0x303bc9+_0x34939e['length']*_0x2e75ff,_0x51ab85=_0x34939e['number']-_0x92e88e,_0x55aabd=_0x3a2cd2+_0x303bc9*_0x51ab85+_0x2e75ff*(_0x34939e['from']-_0x781cf5-_0x51ab85);return new BlockInfo(_0x34939e['from'],_0x34939e['length'],Math['max'](_0x3a2cd2,Math['min'](_0x55aabd,_0x3a2cd2+this['height']-_0x34fa04)),_0x34fa04,0x0);}['forEachLine'](_0x2ae6f8,_0x233718,_0x2eb645,_0x49d353,_0x10e4ff,_0x10b2bf){_0x2ae6f8=Math['max'](_0x2ae6f8,_0x10e4ff),_0x233718=Math['min'](_0x233718,_0x10e4ff+this['length']);let {firstLine:_0x41f2c3,perLine:_0x4a778f,perChar:_0x258d42}=this['heightMetrics'](_0x2eb645,_0x10e4ff);for(let _0x170c9e=_0x2ae6f8,_0x39bd4b=_0x49d353;_0x170c9e<=_0x233718;){let _0x1d4df0=_0x2eb645['doc']['lineAt'](_0x170c9e);if(_0x170c9e==_0x2ae6f8){let _0x5e462a=_0x1d4df0['number']-_0x41f2c3;_0x39bd4b+=_0x4a778f*_0x5e462a+_0x258d42*(_0x2ae6f8-_0x10e4ff-_0x5e462a);}let _0x4d4446=_0x4a778f+_0x258d42*_0x1d4df0['length'];_0x10b2bf(new BlockInfo(_0x1d4df0['from'],_0x1d4df0['length'],_0x39bd4b,_0x4d4446,0x0)),_0x39bd4b+=_0x4d4446,_0x170c9e=_0x1d4df0['to']+0x1;}}['replace'](_0x5732d6,_0x1fc8e0,_0x4176bb){let _0x303bae=this['length']-_0x1fc8e0;if(_0x303bae>0x0){let _0x46b4fa=_0x4176bb[_0x4176bb['length']-0x1];_0x46b4fa instanceof HeightMapGap?_0x4176bb[_0x4176bb['length']-0x1]=new HeightMapGap(_0x46b4fa['length']+_0x303bae):_0x4176bb['push'](null,new HeightMapGap(_0x303bae-0x1));}if(_0x5732d6>0x0){let _0x2ec1e7=_0x4176bb[0x0];_0x2ec1e7 instanceof HeightMapGap?_0x4176bb[0x0]=new HeightMapGap(_0x5732d6+_0x2ec1e7['length']):_0x4176bb['unshift'](new HeightMapGap(_0x5732d6-0x1),null);}return HeightMap['of'](_0x4176bb);}['decomposeLeft'](_0x5d62d6,_0xe1533c){_0xe1533c['push'](new HeightMapGap(_0x5d62d6-0x1),null);}['decomposeRight'](_0x82a218,_0xe5d5c8){_0xe5d5c8['push'](null,new HeightMapGap(this['length']-_0x82a218-0x1));}['updateHeight'](_0xf7a2e1,_0xd78c5=0x0,_0x23a717=!0x1,_0xeaf560){let _0x1d4e96=_0xd78c5+this['length'];if(_0xeaf560&&_0xeaf560['from']<=_0xd78c5+this['length']&&_0xeaf560['more']){let _0x3c3cd8=[],_0x2b469c=Math['max'](_0xd78c5,_0xeaf560['from']),_0x35995a=-0x1;for(_0xeaf560['from']>_0xd78c5&&_0x3c3cd8['push'](new HeightMapGap(_0xeaf560['from']-_0xd78c5-0x1)['updateHeight'](_0xf7a2e1,_0xd78c5));_0x2b469c<=_0x1d4e96&&_0xeaf560['more'];){let _0x429328=_0xf7a2e1['doc']['lineAt'](_0x2b469c)['length'];_0x3c3cd8['length']&&_0x3c3cd8['push'](null);let _0x28a1b3=_0xeaf560['heights'][_0xeaf560['index']++];-0x1==_0x35995a?_0x35995a=_0x28a1b3:Math['abs'](_0x28a1b3-_0x35995a)>=Epsilon&&(_0x35995a=-0x2);let _0x35b284=new HeightMapText(_0x429328,_0x28a1b3);_0x35b284['outdated']=!0x1,_0x3c3cd8['push'](_0x35b284),_0x2b469c+=_0x429328+0x1;}_0x2b469c<=_0x1d4e96&&_0x3c3cd8['push'](null,new HeightMapGap(_0x1d4e96-_0x2b469c)['updateHeight'](_0xf7a2e1,_0x2b469c));let _0x490cf0=HeightMap['of'](_0x3c3cd8);return(_0x35995a<0x0||Math['abs'](_0x490cf0['height']-this['height'])>=Epsilon||Math['abs'](_0x35995a-this['heightMetrics'](_0xf7a2e1,_0xd78c5)['perLine'])>=Epsilon)&&(heightChangeFlag=!0x0),replace(this,_0x490cf0);}return(_0x23a717||this['outdated'])&&(this['setHeight'](_0xf7a2e1['heightForGap'](_0xd78c5,_0xd78c5+this['length'])),this['outdated']=!0x1),this;}['toString'](){return'gap('+this['length']+')';}}class HeightMapBranch extends HeightMap{constructor(_0x3ccbd8,_0x4cf968,_0x38fec3){super(_0x3ccbd8['length']+_0x4cf968+_0x38fec3['length'],_0x3ccbd8['height']+_0x38fec3['height'],_0x4cf968|(_0x3ccbd8['outdated']||_0x38fec3['outdated']?0x2:0x0)),this['left']=_0x3ccbd8,this['right']=_0x38fec3,this['size']=_0x3ccbd8['size']+_0x38fec3['size'];}get['break'](){return 0x1&this['flags'];}['blockAt'](_0x242ad7,_0x10d04a,_0x2a26bb,_0x4a495a){let _0xedbf0f=_0x2a26bb+this['left']['height'];return _0x242ad7<_0xedbf0f?this['left']['blockAt'](_0x242ad7,_0x10d04a,_0x2a26bb,_0x4a495a):this['right']['blockAt'](_0x242ad7,_0x10d04a,_0xedbf0f,_0x4a495a+this['left']['length']+this['break']);}['lineAt'](_0x5eb9c5,_0x2fb58e,_0x41a495,_0x55937b,_0x31b56e){let _0x218549=_0x55937b+this['left']['height'],_0x4d25ba=_0x31b56e+this['left']['length']+this['break'],_0x30fe23=_0x2fb58e==QueryType['ByHeight']?_0x5eb9c5<_0x218549:_0x5eb9c5<_0x4d25ba,_0x26d56d=_0x30fe23?this['left']['lineAt'](_0x5eb9c5,_0x2fb58e,_0x41a495,_0x55937b,_0x31b56e):this['right']['lineAt'](_0x5eb9c5,_0x2fb58e,_0x41a495,_0x218549,_0x4d25ba);if(this['break']||(_0x30fe23?_0x26d56d['to']<_0x4d25ba:_0x26d56d['from']>_0x4d25ba))return _0x26d56d;let _0x4ce09b=_0x2fb58e==QueryType['ByPosNoHeight']?QueryType['ByPosNoHeight']:QueryType['ByPos'];return _0x30fe23?_0x26d56d['join'](this['right']['lineAt'](_0x4d25ba,_0x4ce09b,_0x41a495,_0x218549,_0x4d25ba)):this['left']['lineAt'](_0x4d25ba,_0x4ce09b,_0x41a495,_0x55937b,_0x31b56e)['join'](_0x26d56d);}['forEachLine'](_0x484f3f,_0x4c3ae7,_0x3a8808,_0x56ddd5,_0x2f4d28,_0xa19a04){let _0x4a145d=_0x56ddd5+this['left']['height'],_0x31787f=_0x2f4d28+this['left']['length']+this['break'];if(this['break'])_0x484f3f<_0x31787f&&this['left']['forEachLine'](_0x484f3f,_0x4c3ae7,_0x3a8808,_0x56ddd5,_0x2f4d28,_0xa19a04),_0x4c3ae7>=_0x31787f&&this['right']['forEachLine'](_0x484f3f,_0x4c3ae7,_0x3a8808,_0x4a145d,_0x31787f,_0xa19a04);else{let _0x525806=this['lineAt'](_0x31787f,QueryType['ByPos'],_0x3a8808,_0x56ddd5,_0x2f4d28);_0x484f3f<_0x525806['from']&&this['left']['forEachLine'](_0x484f3f,_0x525806['from']-0x1,_0x3a8808,_0x56ddd5,_0x2f4d28,_0xa19a04),_0x525806['to']>=_0x484f3f&&_0x525806['from']<=_0x4c3ae7&&_0xa19a04(_0x525806),_0x4c3ae7>_0x525806['to']&&this['right']['forEachLine'](_0x525806['to']+0x1,_0x4c3ae7,_0x3a8808,_0x4a145d,_0x31787f,_0xa19a04);}}['replace'](_0x5348fb,_0x583557,_0xd0274a){let _0x36c646=this['left']['length']+this['break'];if(_0x583557<_0x36c646)return this['balanced'](this['left']['replace'](_0x5348fb,_0x583557,_0xd0274a),this['right']);if(_0x5348fb>this['left']['length'])return this['balanced'](this['left'],this['right']['replace'](_0x5348fb-_0x36c646,_0x583557-_0x36c646,_0xd0274a));let _0x52a995=[];_0x5348fb>0x0&&this['decomposeLeft'](_0x5348fb,_0x52a995);let _0x3e145f=_0x52a995['length'];for(let _0x23e132 of _0xd0274a)_0x52a995['push'](_0x23e132);if(_0x5348fb>0x0&&mergeGaps(_0x52a995,_0x3e145f-0x1),_0x583557<this['length']){let _0xedcb3f=_0x52a995['length'];this['decomposeRight'](_0x583557,_0x52a995),mergeGaps(_0x52a995,_0xedcb3f);}return HeightMap['of'](_0x52a995);}['decomposeLeft'](_0x4eba7c,_0x3658be){let _0x440331=this['left']['length'];if(_0x4eba7c<=_0x440331)return this['left']['decomposeLeft'](_0x4eba7c,_0x3658be);_0x3658be['push'](this['left']),this['break']&&(_0x440331++,_0x4eba7c>=_0x440331&&_0x3658be['push'](null)),_0x4eba7c>_0x440331&&this['right']['decomposeLeft'](_0x4eba7c-_0x440331,_0x3658be);}['decomposeRight'](_0x1cf5e2,_0x5b4d5e){let _0x26c48b=this['left']['length'],_0x16faae=_0x26c48b+this['break'];if(_0x1cf5e2>=_0x16faae)return this['right']['decomposeRight'](_0x1cf5e2-_0x16faae,_0x5b4d5e);_0x1cf5e2<_0x26c48b&&this['left']['decomposeRight'](_0x1cf5e2,_0x5b4d5e),this['break']&&_0x1cf5e2<_0x16faae&&_0x5b4d5e['push'](null),_0x5b4d5e['push'](this['right']);}['balanced'](_0x5414a5,_0x19377d){return _0x5414a5['size']>0x2*_0x19377d['size']||_0x19377d['size']>0x2*_0x5414a5['size']?HeightMap['of'](this['break']?[_0x5414a5,null,_0x19377d]:[_0x5414a5,_0x19377d]):(this['left']=replace(this['left'],_0x5414a5),this['right']=replace(this['right'],_0x19377d),this['setHeight'](_0x5414a5['height']+_0x19377d['height']),this['outdated']=_0x5414a5['outdated']||_0x19377d['outdated'],this['size']=_0x5414a5['size']+_0x19377d['size'],this['length']=_0x5414a5['length']+this['break']+_0x19377d['length'],this);}['updateHeight'](_0x528108,_0x41a73f=0x0,_0x1b697a=!0x1,_0x5d5187){let {left:_0x37247e,right:_0x2c8694}=this,_0xd0ef5b=_0x41a73f+_0x37247e['length']+this['break'],_0x580dcb=null;return _0x5d5187&&_0x5d5187['from']<=_0x41a73f+_0x37247e['length']&&_0x5d5187['more']?_0x580dcb=_0x37247e=_0x37247e['updateHeight'](_0x528108,_0x41a73f,_0x1b697a,_0x5d5187):_0x37247e['updateHeight'](_0x528108,_0x41a73f,_0x1b697a),_0x5d5187&&_0x5d5187['from']<=_0xd0ef5b+_0x2c8694['length']&&_0x5d5187['more']?_0x580dcb=_0x2c8694=_0x2c8694['updateHeight'](_0x528108,_0xd0ef5b,_0x1b697a,_0x5d5187):_0x2c8694['updateHeight'](_0x528108,_0xd0ef5b,_0x1b697a),_0x580dcb?this['balanced'](_0x37247e,_0x2c8694):(this['height']=this['left']['height']+this['right']['height'],this['outdated']=!0x1,this);}['toString'](){return this['left']+(this['break']?'\x20':'-')+this['right'];}}function mergeGaps(_0x37984c,_0x5a3e62){let _0x37f59b,_0x22b8af;null==_0x37984c[_0x5a3e62]&&(_0x37f59b=_0x37984c[_0x5a3e62-0x1])instanceof HeightMapGap&&(_0x22b8af=_0x37984c[_0x5a3e62+0x1])instanceof HeightMapGap&&_0x37984c['splice'](_0x5a3e62-0x1,0x3,new HeightMapGap(_0x37f59b['length']+0x1+_0x22b8af['length']));}const relevantWidgetHeight=0x5;class NodeBuilder{constructor(_0x2226b5,_0x438723){this['pos']=_0x2226b5,this['oracle']=_0x438723,this['nodes']=[],this['lineStart']=-0x1,this['lineEnd']=-0x1,this['covering']=null,this['writtenTo']=_0x2226b5;}get['isCovered'](){return this['covering']&&this['nodes'][this['nodes']['length']-0x1]==this['covering'];}['span'](_0x1715aa,_0x31e879){if(this['lineStart']>-0x1){let _0x901861=Math['min'](_0x31e879,this['lineEnd']),_0x2915fc=this['nodes'][this['nodes']['length']-0x1];_0x2915fc instanceof HeightMapText?_0x2915fc['length']+=_0x901861-this['pos']:(_0x901861>this['pos']||!this['isCovered'])&&this['nodes']['push'](new HeightMapText(_0x901861-this['pos'],-0x1)),this['writtenTo']=_0x901861,_0x31e879>_0x901861&&(this['nodes']['push'](null),this['writtenTo']++,this['lineStart']=-0x1);}this['pos']=_0x31e879;}['point'](_0x27b7a5,_0x5babdb,_0x1367fa){if(_0x27b7a5<_0x5babdb||_0x1367fa['heightRelevant']){let _0x175186=_0x1367fa['widget']?_0x1367fa['widget']['estimatedHeight']:0x0,_0x299b7e=_0x1367fa['widget']?_0x1367fa['widget']['lineBreaks']:0x0;_0x175186<0x0&&(_0x175186=this['oracle']['lineHeight']);let _0xd399e=_0x5babdb-_0x27b7a5;_0x1367fa['block']?this['addBlock'](new HeightMapBlock(_0xd399e,_0x175186,_0x1367fa)):(_0xd399e||_0x299b7e||_0x175186>=relevantWidgetHeight)&&this['addLineDeco'](_0x175186,_0x299b7e,_0xd399e);}else _0x5babdb>_0x27b7a5&&this['span'](_0x27b7a5,_0x5babdb);this['lineEnd']>-0x1&&this['lineEnd']<this['pos']&&(this['lineEnd']=this['oracle']['doc']['lineAt'](this['pos'])['to']);}['enterLine'](){if(this['lineStart']>-0x1)return;let {from:_0x5d3be2,to:_0x5cc7db}=this['oracle']['doc']['lineAt'](this['pos']);this['lineStart']=_0x5d3be2,this['lineEnd']=_0x5cc7db,this['writtenTo']<_0x5d3be2&&((this['writtenTo']<_0x5d3be2-0x1||null==this['nodes'][this['nodes']['length']-0x1])&&this['nodes']['push'](this['blankContent'](this['writtenTo'],_0x5d3be2-0x1)),this['nodes']['push'](null)),this['pos']>_0x5d3be2&&this['nodes']['push'](new HeightMapText(this['pos']-_0x5d3be2,-0x1)),this['writtenTo']=this['pos'];}['blankContent'](_0x96b9df,_0x3ca843){let _0x40eb4e=new HeightMapGap(_0x3ca843-_0x96b9df);return this['oracle']['doc']['lineAt'](_0x96b9df)['to']==_0x3ca843&&(_0x40eb4e['flags']|=0x4),_0x40eb4e;}['ensureLine'](){this['enterLine']();let _0x165aa9=this['nodes']['length']?this['nodes'][this['nodes']['length']-0x1]:null;if(_0x165aa9 instanceof HeightMapText)return _0x165aa9;let _0x3fb7cb=new HeightMapText(0x0,-0x1);return this['nodes']['push'](_0x3fb7cb),_0x3fb7cb;}['addBlock'](_0x14f78f){this['enterLine']();let _0xaeeb03=_0x14f78f['deco'];_0xaeeb03&&_0xaeeb03['startSide']>0x0&&!this['isCovered']&&this['ensureLine'](),this['nodes']['push'](_0x14f78f),this['writtenTo']=this['pos']=this['pos']+_0x14f78f['length'],_0xaeeb03&&_0xaeeb03['endSide']>0x0&&(this['covering']=_0x14f78f);}['addLineDeco'](_0x1b9f18,_0x16095b,_0xf284c3){let _0x1cb70e=this['ensureLine']();_0x1cb70e['length']+=_0xf284c3,_0x1cb70e['collapsed']+=_0xf284c3,_0x1cb70e['widgetHeight']=Math['max'](_0x1cb70e['widgetHeight'],_0x1b9f18),_0x1cb70e['breaks']+=_0x16095b,this['writtenTo']=this['pos']=this['pos']+_0xf284c3;}['finish'](_0xb607a9){let _0x5d34b7=0x0==this['nodes']['length']?null:this['nodes'][this['nodes']['length']-0x1];!(this['lineStart']>-0x1)||_0x5d34b7 instanceof HeightMapText||this['isCovered']?(this['writtenTo']<this['pos']||null==_0x5d34b7)&&this['nodes']['push'](this['blankContent'](this['writtenTo'],this['pos'])):this['nodes']['push'](new HeightMapText(0x0,-0x1));let _0x40f02a=_0xb607a9;for(let _0x520886 of this['nodes'])_0x520886 instanceof HeightMapText&&_0x520886['updateHeight'](this['oracle'],_0x40f02a),_0x40f02a+=_0x520886?_0x520886['length']:0x1;return this['nodes'];}static['build'](_0x1771e1,_0x2d69da,_0x4d3743,_0x175e04){let _0x5b06cc=new NodeBuilder(_0x4d3743,_0x1771e1);return RangeSet['spans'](_0x2d69da,_0x4d3743,_0x175e04,_0x5b06cc,0x0),_0x5b06cc['finish'](_0x4d3743);}}function heightRelevantDecoChanges(_0x2937a0,_0x2b8253,_0x38383e){let _0x2b935c=new DecorationComparator();return RangeSet['compare'](_0x2937a0,_0x2b8253,_0x38383e,_0x2b935c,0x0),_0x2b935c['changes'];}class DecorationComparator{constructor(){this['changes']=[];}['compareRange'](){}['comparePoint'](_0x214c02,_0x2a8f18,_0x3d474b,_0x504b37){(_0x214c02<_0x2a8f18||_0x3d474b&&_0x3d474b['heightRelevant']||_0x504b37&&_0x504b37['heightRelevant'])&&addRange(_0x214c02,_0x2a8f18,this['changes'],0x5);}}function visiblePixelRange(_0x2e5949,_0x172948){let _0x31c751=_0x2e5949['getBoundingClientRect'](),_0x1d537d=_0x2e5949['ownerDocument'],_0x52fcef=_0x1d537d['defaultView']||window,_0x476d52=Math['max'](0x0,_0x31c751['left']),_0xe8e6ca=Math['min'](_0x52fcef['innerWidth'],_0x31c751['right']),_0x5639e5=Math['max'](0x0,_0x31c751['top']),_0x59a357=Math['min'](_0x52fcef['innerHeight'],_0x31c751['bottom']);for(let _0x2bf848=_0x2e5949['parentNode'];_0x2bf848&&_0x2bf848!=_0x1d537d['body'];)if(0x1==_0x2bf848['nodeType']){let _0x42f797=_0x2bf848,_0x5e0e3a=window['getComputedStyle'](_0x42f797);if((_0x42f797['scrollHeight']>_0x42f797['clientHeight']||_0x42f797['scrollWidth']>_0x42f797['clientWidth'])&&'visible'!=_0x5e0e3a['overflow']){let _0x15dde2=_0x42f797['getBoundingClientRect']();_0x476d52=Math['max'](_0x476d52,_0x15dde2['left']),_0xe8e6ca=Math['min'](_0xe8e6ca,_0x15dde2['right']),_0x5639e5=Math['max'](_0x5639e5,_0x15dde2['top']),_0x59a357=Math['min'](_0x2bf848==_0x2e5949['parentNode']?_0x52fcef['innerHeight']:_0x59a357,_0x15dde2['bottom']);}_0x2bf848='absolute'==_0x5e0e3a['position']||'fixed'==_0x5e0e3a['position']?_0x42f797['offsetParent']:_0x42f797['parentNode'];}else{if(0xb!=_0x2bf848['nodeType'])break;_0x2bf848=_0x2bf848['host'];}return{'left':_0x476d52-_0x31c751['left'],'right':Math['max'](_0x476d52,_0xe8e6ca)-_0x31c751['left'],'top':_0x5639e5-(_0x31c751['top']+_0x172948),'bottom':Math['max'](_0x5639e5,_0x59a357)-(_0x31c751['top']+_0x172948)};}function inWindow(_0x481997){let _0x3051ec=_0x481997['getBoundingClientRect'](),_0x1075e9=_0x481997['ownerDocument']['defaultView']||window;return _0x3051ec['left']<_0x1075e9['innerWidth']&&_0x3051ec['right']>0x0&&_0x3051ec['top']<_0x1075e9['innerHeight']&&_0x3051ec['bottom']>0x0;}function fullPixelRange(_0x373a82,_0x7fbcfa){let _0x586b49=_0x373a82['getBoundingClientRect']();return{'left':0x0,'right':_0x586b49['right']-_0x586b49['left'],'top':_0x7fbcfa,'bottom':_0x586b49['bottom']-(_0x586b49['top']+_0x7fbcfa)};}class LineGap{constructor(_0x57a2ee,_0x59e86c,_0x208244,_0x2dc78a){this['from']=_0x57a2ee,this['to']=_0x59e86c,this['size']=_0x208244,this['displaySize']=_0x2dc78a;}static['same'](_0x520c2f,_0x52bf50){if(_0x520c2f['length']!=_0x52bf50['length'])return!0x1;for(let _0x364660=0x0;_0x364660<_0x520c2f['length'];_0x364660++){let _0x3eea41=_0x520c2f[_0x364660],_0x4f5d8c=_0x52bf50[_0x364660];if(_0x3eea41['from']!=_0x4f5d8c['from']||_0x3eea41['to']!=_0x4f5d8c['to']||_0x3eea41['size']!=_0x4f5d8c['size'])return!0x1;}return!0x0;}['draw'](_0x23da80,_0x36427b){return Decoration['replace']({'widget':new LineGapWidget(this['displaySize']*(_0x36427b?_0x23da80['scaleY']:_0x23da80['scaleX']),_0x36427b)})['range'](this['from'],this['to']);}}class LineGapWidget extends WidgetType{constructor(_0x11d7a9,_0x5efbc1){super(),this['size']=_0x11d7a9,this['vertical']=_0x5efbc1;}['eq'](_0x2da2ea){return _0x2da2ea['size']==this['size']&&_0x2da2ea['vertical']==this['vertical'];}['toDOM'](){let _0x3f8882=document['createElement']('div');return this['vertical']?_0x3f8882['style']['height']=this['size']+'px':(_0x3f8882['style']['width']=this['size']+'px',_0x3f8882['style']['height']='2px',_0x3f8882['style']['display']='inline-block'),_0x3f8882;}get['estimatedHeight'](){return this['vertical']?this['size']:-0x1;}}class ViewState{constructor(_0x509562){this['state']=_0x509562,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 _0x2ae4e0=_0x509562['facet'](contentAttributes)['some'](_0x4b633b=>'function'!=typeof _0x4b633b&&'cm-lineWrapping'==_0x4b633b['class']);this['heightOracle']=new HeightOracle(_0x2ae4e0),this['stateDeco']=_0x509562['facet'](decorations)['filter'](_0x1e8416=>'function'!=typeof _0x1e8416),this['heightMap']=HeightMap['empty']()['applyChanges'](this['stateDeco'],Text['empty'],this['heightOracle']['setDoc'](_0x509562['doc']),[new ChangedRange(0x0,0x0,0x0,_0x509562['doc']['length'])]);for(let _0x2eed70=0x0;_0x2eed70<0x2&&(this['viewport']=this['getViewport'](0x0,null),this['updateForViewport']());_0x2eed70++);this['updateViewportLines'](),this['lineGaps']=this['ensureLineGaps']([]),this['lineGapDeco']=Decoration['set'](this['lineGaps']['map'](_0x27c4b=>_0x27c4b['draw'](this,!0x1))),this['computeVisibleRanges']();}['updateForViewport'](){let _0x437b4d=[this['viewport']],{main:_0x57e213}=this['state']['selection'];for(let _0x2c589d=0x0;_0x2c589d<=0x1;_0x2c589d++){let _0x5e255b=_0x2c589d?_0x57e213['head']:_0x57e213['anchor'];if(!_0x437b4d['some'](({from:_0x20ffcd,to:_0x5bb161})=>_0x5e255b>=_0x20ffcd&&_0x5e255b<=_0x5bb161)){let {from:_0x390e26,to:_0x16dca8}=this['lineBlockAt'](_0x5e255b);_0x437b4d['push'](new Viewport(_0x390e26,_0x16dca8));}}return this['viewports']=_0x437b4d['sort']((_0x439396,_0x1f1f80)=>_0x439396['from']-_0x1f1f80['from']),this['updateScaler']();}['updateScaler'](){let _0x26ebfc=this['scaler'];return this['scaler']=this['heightMap']['height']<=0x6acfc0?IdScaler:new BigScaler(this['heightOracle'],this['heightMap'],this['viewports']),_0x26ebfc['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,_0x556261=>{this['viewportLines']['push'](scaleBlock(_0x556261,this['scaler']));});}['update'](_0x1ad3df,_0x4d7554=null){this['state']=_0x1ad3df['state'];let _0x178522=this['stateDeco'];this['stateDeco']=this['state']['facet'](decorations)['filter'](_0x4af537=>'function'!=typeof _0x4af537);let _0x2f16ae=_0x1ad3df['changedRanges'],_0xb966c0=ChangedRange['extendWithRanges'](_0x2f16ae,heightRelevantDecoChanges(_0x178522,this['stateDeco'],_0x1ad3df?_0x1ad3df['changes']:ChangeSet['empty'](this['state']['doc']['length']))),_0x15b9e2=this['heightMap']['height'],_0x58a1d2=this['scrolledToBottom']?null:this['scrollAnchorAt'](this['scrollTop']);clearHeightChangeFlag(),this['heightMap']=this['heightMap']['applyChanges'](this['stateDeco'],_0x1ad3df['startState']['doc'],this['heightOracle']['setDoc'](this['state']['doc']),_0xb966c0),(this['heightMap']['height']!=_0x15b9e2||heightChangeFlag)&&(_0x1ad3df['flags']|=0x2),_0x58a1d2?(this['scrollAnchorPos']=_0x1ad3df['changes']['mapPos'](_0x58a1d2['from'],-0x1),this['scrollAnchorHeight']=_0x58a1d2['top']):(this['scrollAnchorPos']=-0x1,this['scrollAnchorHeight']=_0x15b9e2);let _0x5dba20=_0xb966c0['length']?this['mapViewport'](this['viewport'],_0x1ad3df['changes']):this['viewport'];(_0x4d7554&&(_0x4d7554['range']['head']<_0x5dba20['from']||_0x4d7554['range']['head']>_0x5dba20['to'])||!this['viewportIsAppropriate'](_0x5dba20))&&(_0x5dba20=this['getViewport'](0x0,_0x4d7554));let _0x33a979=_0x5dba20['from']!=this['viewport']['from']||_0x5dba20['to']!=this['viewport']['to'];this['viewport']=_0x5dba20,_0x1ad3df['flags']|=this['updateForViewport'](),(_0x33a979||!_0x1ad3df['changes']['empty']||0x2&_0x1ad3df['flags'])&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](this['mapLineGaps'](this['lineGaps'],_0x1ad3df['changes']))),_0x1ad3df['flags']|=this['computeVisibleRanges'](_0x1ad3df['changes']),_0x4d7554&&(this['scrollTarget']=_0x4d7554),!this['mustEnforceCursorAssoc']&&_0x1ad3df['selectionSet']&&_0x1ad3df['view']['lineWrapping']&&_0x1ad3df['state']['selection']['main']['empty']&&_0x1ad3df['state']['selection']['main']['assoc']&&!_0x1ad3df['state']['facet'](nativeSelectionHidden)&&(this['mustEnforceCursorAssoc']=!0x0);}['measure'](_0x373319){let _0x2f3a50=_0x373319['contentDOM'],_0x136ba7=window['getComputedStyle'](_0x2f3a50),_0x2a81a9=this['heightOracle'],_0x1932b1=_0x136ba7['whiteSpace'];this['defaultTextDirection']='rtl'==_0x136ba7['direction']?Direction['RTL']:Direction['LTR'];let _0x2983b4=this['heightOracle']['mustRefreshForWrapping'](_0x1932b1),_0x5e288c=_0x2f3a50['getBoundingClientRect'](),_0x33904b=_0x2983b4||this['mustMeasureContent']||this['contentDOMHeight']!=_0x5e288c['height'];this['contentDOMHeight']=_0x5e288c['height'],this['mustMeasureContent']=!0x1;let _0x216ce7=0x0,_0x529718=0x0;if(_0x5e288c['width']&&_0x5e288c['height']){let {scaleX:_0x24ceb6,scaleY:_0x1d51e2}=getScale(_0x2f3a50,_0x5e288c);(_0x24ceb6>0.005&&Math['abs'](this['scaleX']-_0x24ceb6)>0.005||_0x1d51e2>0.005&&Math['abs'](this['scaleY']-_0x1d51e2)>0.005)&&(this['scaleX']=_0x24ceb6,this['scaleY']=_0x1d51e2,_0x216ce7|=0x10,_0x2983b4=_0x33904b=!0x0);}let _0x4dc85b=(parseInt(_0x136ba7['paddingTop'])||0x0)*this['scaleY'],_0x4c7231=(parseInt(_0x136ba7['paddingBottom'])||0x0)*this['scaleY'];this['paddingTop']==_0x4dc85b&&this['paddingBottom']==_0x4c7231||(this['paddingTop']=_0x4dc85b,this['paddingBottom']=_0x4c7231,_0x216ce7|=0x12),this['editorWidth']!=_0x373319['scrollDOM']['clientWidth']&&(_0x2a81a9['lineWrapping']&&(_0x33904b=!0x0),this['editorWidth']=_0x373319['scrollDOM']['clientWidth'],_0x216ce7|=0x10);let _0x51113d=_0x373319['scrollDOM']['scrollTop']*this['scaleY'];this['scrollTop']!=_0x51113d&&(this['scrollAnchorHeight']=-0x1,this['scrollTop']=_0x51113d),this['scrolledToBottom']=isScrolledToBottom(_0x373319['scrollDOM']);let _0x53e658=(this['printing']?fullPixelRange:visiblePixelRange)(_0x2f3a50,this['paddingTop']),_0x1f10a7=_0x53e658['top']-this['pixelViewport']['top'],_0xc30507=_0x53e658['bottom']-this['pixelViewport']['bottom'];this['pixelViewport']=_0x53e658;let _0x3379c3=this['pixelViewport']['bottom']>this['pixelViewport']['top']&&this['pixelViewport']['right']>this['pixelViewport']['left'];if(_0x3379c3!=this['inView']&&(this['inView']=_0x3379c3,_0x3379c3&&(_0x33904b=!0x0)),!this['inView']&&!this['scrollTarget']&&!inWindow(_0x373319['dom']))return 0x0;let _0x194b2d=_0x5e288c['width'];if(this['contentDOMWidth']==_0x194b2d&&this['editorHeight']==_0x373319['scrollDOM']['clientHeight']||(this['contentDOMWidth']=_0x5e288c['width'],this['editorHeight']=_0x373319['scrollDOM']['clientHeight'],_0x216ce7|=0x10),_0x33904b){let _0x54ddf4=_0x373319['docView']['measureVisibleLineHeights'](this['viewport']);if(_0x2a81a9['mustRefreshForHeights'](_0x54ddf4)&&(_0x2983b4=!0x0),_0x2983b4||_0x2a81a9['lineWrapping']&&Math['abs'](_0x194b2d-this['contentDOMWidth'])>_0x2a81a9['charWidth']){let {lineHeight:_0x21b5dc,charWidth:_0x4292f4,textHeight:_0x5eb1a7}=_0x373319['docView']['measureTextSize']();_0x2983b4=_0x21b5dc>0x0&&_0x2a81a9['refresh'](_0x1932b1,_0x21b5dc,_0x4292f4,_0x5eb1a7,Math['max'](0x5,_0x194b2d/_0x4292f4),_0x54ddf4),_0x2983b4&&(_0x373319['docView']['minWidth']=0x0,_0x216ce7|=0x10);}_0x1f10a7>0x0&&_0xc30507>0x0?_0x529718=Math['max'](_0x1f10a7,_0xc30507):_0x1f10a7<0x0&&_0xc30507<0x0&&(_0x529718=Math['min'](_0x1f10a7,_0xc30507)),clearHeightChangeFlag();for(let _0x10f1c8 of this['viewports']){let _0x54ec70=_0x10f1c8['from']==this['viewport']['from']?_0x54ddf4:_0x373319['docView']['measureVisibleLineHeights'](_0x10f1c8);this['heightMap']=(_0x2983b4?HeightMap['empty']()['applyChanges'](this['stateDeco'],Text['empty'],this['heightOracle'],[new ChangedRange(0x0,0x0,0x0,_0x373319['state']['doc']['length'])]):this['heightMap'])['updateHeight'](_0x2a81a9,0x0,_0x2983b4,new MeasuredHeights(_0x10f1c8['from'],_0x54ec70));}heightChangeFlag&&(_0x216ce7|=0x2);}let _0x449516=!this['viewportIsAppropriate'](this['viewport'],_0x529718)||this['scrollTarget']&&(this['scrollTarget']['range']['head']<this['viewport']['from']||this['scrollTarget']['range']['head']>this['viewport']['to']);return _0x449516&&(0x2&_0x216ce7&&(_0x216ce7|=this['updateScaler']()),this['viewport']=this['getViewport'](_0x529718,this['scrollTarget']),_0x216ce7|=this['updateForViewport']()),(0x2&_0x216ce7||_0x449516)&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](_0x2983b4?[]:this['lineGaps'],_0x373319)),_0x216ce7|=this['computeVisibleRanges'](),this['mustEnforceCursorAssoc']&&(this['mustEnforceCursorAssoc']=!0x1,_0x373319['docView']['enforceCursorAssoc']()),_0x216ce7;}get['visibleTop'](){return this['scaler']['fromDOM'](this['pixelViewport']['top']);}get['visibleBottom'](){return this['scaler']['fromDOM'](this['pixelViewport']['bottom']);}['getViewport'](_0x33f988,_0x3ddc3e){let _0x16805a=0.5-Math['max'](-0.5,Math['min'](0.5,_0x33f988/0x3e8/0x2)),_0x26d92e=this['heightMap'],_0x57c5db=this['heightOracle'],{visibleTop:_0x4913e0,visibleBottom:_0x2aa839}=this,_0x12a4c5=new Viewport(_0x26d92e['lineAt'](_0x4913e0-0x3e8*_0x16805a,QueryType['ByHeight'],_0x57c5db,0x0,0x0)['from'],_0x26d92e['lineAt'](_0x2aa839+0x3e8*(0x1-_0x16805a),QueryType['ByHeight'],_0x57c5db,0x0,0x0)['to']);if(_0x3ddc3e){let {head:_0x1b63bc}=_0x3ddc3e['range'];if(_0x1b63bc<_0x12a4c5['from']||_0x1b63bc>_0x12a4c5['to']){let _0x32d29b,_0x59b4c9=Math['min'](this['editorHeight'],this['pixelViewport']['bottom']-this['pixelViewport']['top']),_0x46849f=_0x26d92e['lineAt'](_0x1b63bc,QueryType['ByPos'],_0x57c5db,0x0,0x0);_0x32d29b='center'==_0x3ddc3e['y']?(_0x46849f['top']+_0x46849f['bottom'])/0x2-_0x59b4c9/0x2:'start'==_0x3ddc3e['y']||'nearest'==_0x3ddc3e['y']&&_0x1b63bc<_0x12a4c5['from']?_0x46849f['top']:_0x46849f['bottom']-_0x59b4c9,_0x12a4c5=new Viewport(_0x26d92e['lineAt'](_0x32d29b-0x1f4,QueryType['ByHeight'],_0x57c5db,0x0,0x0)['from'],_0x26d92e['lineAt'](_0x32d29b+_0x59b4c9+0x1f4,QueryType['ByHeight'],_0x57c5db,0x0,0x0)['to']);}}return _0x12a4c5;}['mapViewport'](_0x3e9039,_0x282195){let _0x3c14f0=_0x282195['mapPos'](_0x3e9039['from'],-0x1),_0x4c3acc=_0x282195['mapPos'](_0x3e9039['to'],0x1);return new Viewport(this['heightMap']['lineAt'](_0x3c14f0,QueryType['ByPos'],this['heightOracle'],0x0,0x0)['from'],this['heightMap']['lineAt'](_0x4c3acc,QueryType['ByPos'],this['heightOracle'],0x0,0x0)['to']);}['viewportIsAppropriate']({from:_0x2cae0a,to:_0x3d7d10},_0x5d572d=0x0){if(!this['inView'])return!0x0;let {top:_0xe7d624}=this['heightMap']['lineAt'](_0x2cae0a,QueryType['ByPos'],this['heightOracle'],0x0,0x0),{bottom:_0x3ab6f0}=this['heightMap']['lineAt'](_0x3d7d10,QueryType['ByPos'],this['heightOracle'],0x0,0x0),{visibleTop:_0x261fbd,visibleBottom:_0x3872e0}=this;return(0x0==_0x2cae0a||_0xe7d624<=_0x261fbd-Math['max'](0xa,Math['min'](-_0x5d572d,0xfa)))&&(_0x3d7d10==this['state']['doc']['length']||_0x3ab6f0>=_0x3872e0+Math['max'](0xa,Math['min'](_0x5d572d,0xfa)))&&_0xe7d624>_0x261fbd-0x7d0&&_0x3ab6f0<_0x3872e0+0x7d0;}['mapLineGaps'](_0x58ff1b,_0x4f8866){if(!_0x58ff1b['length']||_0x4f8866['empty'])return _0x58ff1b;let _0x155dbb=[];for(let _0x2f1873 of _0x58ff1b)_0x4f8866['touchesRange'](_0x2f1873['from'],_0x2f1873['to'])||_0x155dbb['push'](new LineGap(_0x4f8866['mapPos'](_0x2f1873['from']),_0x4f8866['mapPos'](_0x2f1873['to']),_0x2f1873['size'],_0x2f1873['displaySize']));return _0x155dbb;}['ensureLineGaps'](_0x11743b,_0x569531){let _0x9a209d=this['heightOracle']['lineWrapping'],_0x10c57f=_0x9a209d?0x2710:0x7d0,_0x2a597c=_0x10c57f>>0x1,_0x385e32=_0x10c57f<<0x1;if(this['defaultTextDirection']!=Direction['LTR']&&!_0x9a209d)return[];let _0x573d8d=[],_0x41f113=(_0x171460,_0x570342,_0x4edb36,_0x2cd9c0)=>{if(_0x570342-_0x171460<_0x2a597c)return;let _0x4443fa=this['state']['selection']['main'],_0x2e04bd=[_0x4443fa['from']];_0x4443fa['empty']||_0x2e04bd['push'](_0x4443fa['to']);for(let _0x436195 of _0x2e04bd)if(_0x436195>_0x171460&&_0x436195<_0x570342)return _0x41f113(_0x171460,_0x436195-0xa,_0x4edb36,_0x2cd9c0),void _0x41f113(_0x436195+0xa,_0x570342,_0x4edb36,_0x2cd9c0);let _0x354df6=find(_0x11743b,_0x3dc2fc=>_0x3dc2fc['from']>=_0x4edb36['from']&&_0x3dc2fc['to']<=_0x4edb36['to']&&Math['abs'](_0x3dc2fc['from']-_0x171460)<_0x2a597c&&Math['abs'](_0x3dc2fc['to']-_0x570342)<_0x2a597c&&!_0x2e04bd['some'](_0x1c1e7d=>_0x3dc2fc['from']<_0x1c1e7d&&_0x3dc2fc['to']>_0x1c1e7d));if(!_0x354df6){if(_0x570342<_0x4edb36['to']&&_0x569531&&_0x9a209d&&_0x569531['visibleRanges']['some'](_0x1e9b2b=>_0x1e9b2b['from']<=_0x570342&&_0x1e9b2b['to']>=_0x570342)){let _0x3a5aeb=_0x569531['moveToLineBoundary'](EditorSelection['cursor'](_0x570342),!0x1,!0x0)['head'];_0x3a5aeb>_0x171460&&(_0x570342=_0x3a5aeb);}let _0x594a99=this['gapSize'](_0x4edb36,_0x171460,_0x570342,_0x2cd9c0);_0x354df6=new LineGap(_0x171460,_0x570342,_0x594a99,_0x9a209d||_0x594a99<0x1e8480?_0x594a99:0x1e8480);}_0x573d8d['push'](_0x354df6);},_0x5a263d=_0x321963=>{if(_0x321963['length']<_0x385e32||_0x321963['type']!=BlockType['Text'])return;let _0x5bd3f6=lineStructure(_0x321963['from'],_0x321963['to'],this['stateDeco']);if(_0x5bd3f6['total']<_0x385e32)return;let _0xdcd0f3,_0x5720be,_0xc98ad0=this['scrollTarget']?this['scrollTarget']['range']['head']:null;if(_0x9a209d){let _0x2a665d,_0x2b6a1d,_0x5af1b1=_0x10c57f/this['heightOracle']['lineLength']*this['heightOracle']['lineHeight'];if(null!=_0xc98ad0){let _0x5b4f32=findFraction(_0x5bd3f6,_0xc98ad0),_0xbe9e36=((this['visibleBottom']-this['visibleTop'])/0x2+_0x5af1b1)/_0x321963['height'];_0x2a665d=_0x5b4f32-_0xbe9e36,_0x2b6a1d=_0x5b4f32+_0xbe9e36;}else _0x2a665d=(this['visibleTop']-_0x321963['top']-_0x5af1b1)/_0x321963['height'],_0x2b6a1d=(this['visibleBottom']-_0x321963['top']+_0x5af1b1)/_0x321963['height'];_0xdcd0f3=findPosition(_0x5bd3f6,_0x2a665d),_0x5720be=findPosition(_0x5bd3f6,_0x2b6a1d);}else{let _0x3cfc1d=_0x5bd3f6['total']*this['heightOracle']['charWidth'],_0x594b83=_0x10c57f*this['heightOracle']['charWidth'],_0x4975cd=0x0;if(_0x3cfc1d>0x1e8480){for(let _0x432baf of _0x11743b)_0x432baf['from']>=_0x321963['from']&&_0x432baf['from']<_0x321963['to']&&_0x432baf['size']!=_0x432baf['displaySize']&&_0x432baf['from']*this['heightOracle']['charWidth']+_0x4975cd<this['pixelViewport']['left']&&(_0x4975cd=_0x432baf['size']-_0x432baf['displaySize']);}let _0x334c03,_0x743b98,_0x3bc5a0=this['pixelViewport']['left']+_0x4975cd,_0x4b28c6=this['pixelViewport']['right']+_0x4975cd;if(null!=_0xc98ad0){let _0x7c9c7=findFraction(_0x5bd3f6,_0xc98ad0),_0x43cbbf=((_0x4b28c6-_0x3bc5a0)/0x2+_0x594b83)/_0x3cfc1d;_0x334c03=_0x7c9c7-_0x43cbbf,_0x743b98=_0x7c9c7+_0x43cbbf;}else _0x334c03=(_0x3bc5a0-_0x594b83)/_0x3cfc1d,_0x743b98=(_0x4b28c6+_0x594b83)/_0x3cfc1d;_0xdcd0f3=findPosition(_0x5bd3f6,_0x334c03),_0x5720be=findPosition(_0x5bd3f6,_0x743b98);}_0xdcd0f3>_0x321963['from']&&_0x41f113(_0x321963['from'],_0xdcd0f3,_0x321963,_0x5bd3f6),_0x5720be<_0x321963['to']&&_0x41f113(_0x5720be,_0x321963['to'],_0x321963,_0x5bd3f6);};for(let _0x191ea5 of this['viewportLines'])Array['isArray'](_0x191ea5['type'])?_0x191ea5['type']['forEach'](_0x5a263d):_0x5a263d(_0x191ea5);return _0x573d8d;}['gapSize'](_0x432b46,_0x7d54fc,_0x4b6f43,_0x5e02a0){let _0x42b776=findFraction(_0x5e02a0,_0x4b6f43)-findFraction(_0x5e02a0,_0x7d54fc);return this['heightOracle']['lineWrapping']?_0x432b46['height']*_0x42b776:_0x5e02a0['total']*this['heightOracle']['charWidth']*_0x42b776;}['updateLineGaps'](_0x24d77e){LineGap['same'](_0x24d77e,this['lineGaps'])||(this['lineGaps']=_0x24d77e,this['lineGapDeco']=Decoration['set'](_0x24d77e['map'](_0x7f909c=>_0x7f909c['draw'](this,this['heightOracle']['lineWrapping']))));}['computeVisibleRanges'](_0x1d7111){let _0x5819ef=this['stateDeco'];this['lineGaps']['length']&&(_0x5819ef=_0x5819ef['concat'](this['lineGapDeco']));let _0x489de8=[];RangeSet['spans'](_0x5819ef,this['viewport']['from'],this['viewport']['to'],{'span'(_0x86f5ab,_0x494f3d){_0x489de8['push']({'from':_0x86f5ab,'to':_0x494f3d});},'point'(){}},0x14);let _0x73984=0x0;if(_0x489de8['length']!=this['visibleRanges']['length'])_0x73984=0xc;else for(let _0x350964=0x0;_0x350964<_0x489de8['length']&&!(0x8&_0x73984);_0x350964++){let _0x3f5724=this['visibleRanges'][_0x350964],_0x1bf43c=_0x489de8[_0x350964];_0x3f5724['from']==_0x1bf43c['from']&&_0x3f5724['to']==_0x1bf43c['to']||(_0x73984|=0x4,_0x1d7111&&_0x1d7111['mapPos'](_0x3f5724['from'],-0x1)==_0x1bf43c['from']&&_0x1d7111['mapPos'](_0x3f5724['to'],0x1)==_0x1bf43c['to']||(_0x73984|=0x8));}return this['visibleRanges']=_0x489de8,_0x73984;}['lineBlockAt'](_0x3a5de0){return _0x3a5de0>=this['viewport']['from']&&_0x3a5de0<=this['viewport']['to']&&this['viewportLines']['find'](_0x42cc2f=>_0x42cc2f['from']<=_0x3a5de0&&_0x42cc2f['to']>=_0x3a5de0)||scaleBlock(this['heightMap']['lineAt'](_0x3a5de0,QueryType['ByPos'],this['heightOracle'],0x0,0x0),this['scaler']);}['lineBlockAtHeight'](_0x17a7fa){return _0x17a7fa>=this['viewportLines'][0x0]['top']&&_0x17a7fa<=this['viewportLines'][this['viewportLines']['length']-0x1]['bottom']&&this['viewportLines']['find'](_0xd00641=>_0xd00641['top']<=_0x17a7fa&&_0xd00641['bottom']>=_0x17a7fa)||scaleBlock(this['heightMap']['lineAt'](this['scaler']['fromDOM'](_0x17a7fa),QueryType['ByHeight'],this['heightOracle'],0x0,0x0),this['scaler']);}['scrollAnchorAt'](_0x12e3e2){let _0x4f4adf=this['lineBlockAtHeight'](_0x12e3e2+0x8);return _0x4f4adf['from']>=this['viewport']['from']||this['viewportLines'][0x0]['top']-_0x12e3e2>0xc8?_0x4f4adf:this['viewportLines'][0x0];}['elementAtHeight'](_0x4c4cb7){return scaleBlock(this['heightMap']['blockAt'](this['scaler']['fromDOM'](_0x4c4cb7),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(_0x6b7183,_0xa8ed23){this['from']=_0x6b7183,this['to']=_0xa8ed23;}}function lineStructure(_0x279856,_0x2f451a,_0x11fb4c){let _0x18e090=[],_0x57ecd8=_0x279856,_0x4fe093=0x0;return RangeSet['spans'](_0x11fb4c,_0x279856,_0x2f451a,{'span'(){},'point'(_0x2a6dd8,_0x217cc2){_0x2a6dd8>_0x57ecd8&&(_0x18e090['push']({'from':_0x57ecd8,'to':_0x2a6dd8}),_0x4fe093+=_0x2a6dd8-_0x57ecd8),_0x57ecd8=_0x217cc2;}},0x14),_0x57ecd8<_0x2f451a&&(_0x18e090['push']({'from':_0x57ecd8,'to':_0x2f451a}),_0x4fe093+=_0x2f451a-_0x57ecd8),{'total':_0x4fe093,'ranges':_0x18e090};}function findPosition({total:_0xffab98,ranges:_0x596b98},_0xcc2b7e){if(_0xcc2b7e<=0x0)return _0x596b98[0x0]['from'];if(_0xcc2b7e>=0x1)return _0x596b98[_0x596b98['length']-0x1]['to'];let _0xc86cfe=Math['floor'](_0xffab98*_0xcc2b7e);for(let _0x84a167=0x0;;_0x84a167++){let {from:_0x4bf31a,to:_0x2da36c}=_0x596b98[_0x84a167],_0x2d97bd=_0x2da36c-_0x4bf31a;if(_0xc86cfe<=_0x2d97bd)return _0x4bf31a+_0xc86cfe;_0xc86cfe-=_0x2d97bd;}}function findFraction(_0x329574,_0x25dbac){let _0x430771=0x0;for(let {from:_0x33bfcf,to:_0x72e41}of _0x329574['ranges']){if(_0x25dbac<=_0x72e41){_0x430771+=_0x25dbac-_0x33bfcf;break;}_0x430771+=_0x72e41-_0x33bfcf;}return _0x430771/_0x329574['total'];}function find(_0x38ff33,_0x4014c3){for(let _0x198506 of _0x38ff33)if(_0x4014c3(_0x198506))return _0x198506;}const IdScaler={'toDOM':_0x4e845f=>_0x4e845f,'fromDOM':_0x51dfa4=>_0x51dfa4,'scale':0x1,'eq'(_0x292ae9){return _0x292ae9==this;}};class BigScaler{constructor(_0x58cc52,_0x185ba2,_0xe066c7){let _0x8f8f04=0x0,_0x30bec9=0x0,_0xf88f6a=0x0;this['viewports']=_0xe066c7['map'](({from:_0x2d9aa5,to:_0x3e3f84})=>{let _0x2c1e26=_0x185ba2['lineAt'](_0x2d9aa5,QueryType['ByPos'],_0x58cc52,0x0,0x0)['top'],_0x361fb9=_0x185ba2['lineAt'](_0x3e3f84,QueryType['ByPos'],_0x58cc52,0x0,0x0)['bottom'];return _0x8f8f04+=_0x361fb9-_0x2c1e26,{'from':_0x2d9aa5,'to':_0x3e3f84,'top':_0x2c1e26,'bottom':_0x361fb9,'domTop':0x0,'domBottom':0x0};}),this['scale']=(0x6acfc0-_0x8f8f04)/(_0x185ba2['height']-_0x8f8f04);for(let _0x3896cb of this['viewports'])_0x3896cb['domTop']=_0xf88f6a+(_0x3896cb['top']-_0x30bec9)*this['scale'],_0xf88f6a=_0x3896cb['domBottom']=_0x3896cb['domTop']+(_0x3896cb['bottom']-_0x3896cb['top']),_0x30bec9=_0x3896cb['bottom'];}['toDOM'](_0x5201be){for(let _0x4b7acd=0x0,_0x9b0143=0x0,_0x3387e3=0x0;;_0x4b7acd++){let _0x34fb8f=_0x4b7acd<this['viewports']['length']?this['viewports'][_0x4b7acd]:null;if(!_0x34fb8f||_0x5201be<_0x34fb8f['top'])return _0x3387e3+(_0x5201be-_0x9b0143)*this['scale'];if(_0x5201be<=_0x34fb8f['bottom'])return _0x34fb8f['domTop']+(_0x5201be-_0x34fb8f['top']);_0x9b0143=_0x34fb8f['bottom'],_0x3387e3=_0x34fb8f['domBottom'];}}['fromDOM'](_0x388d08){for(let _0x3c9581=0x0,_0x51338e=0x0,_0x4bb4b5=0x0;;_0x3c9581++){let _0x5d56f9=_0x3c9581<this['viewports']['length']?this['viewports'][_0x3c9581]:null;if(!_0x5d56f9||_0x388d08<_0x5d56f9['domTop'])return _0x51338e+(_0x388d08-_0x4bb4b5)/this['scale'];if(_0x388d08<=_0x5d56f9['domBottom'])return _0x5d56f9['top']+(_0x388d08-_0x5d56f9['domTop']);_0x51338e=_0x5d56f9['bottom'],_0x4bb4b5=_0x5d56f9['domBottom'];}}['eq'](_0x21c33c){return _0x21c33c instanceof BigScaler&&(this['scale']==_0x21c33c['scale']&&this['viewports']['length']==_0x21c33c['viewports']['length']&&this['viewports']['every']((_0x50ccd6,_0x4308af)=>_0x50ccd6['from']==_0x21c33c['viewports'][_0x4308af]['from']&&_0x50ccd6['to']==_0x21c33c['viewports'][_0x4308af]['to']));}}function scaleBlock(_0x4d7166,_0x5021bc){if(0x1==_0x5021bc['scale'])return _0x4d7166;let _0x3f6e12=_0x5021bc['toDOM'](_0x4d7166['top']),_0x2aade0=_0x5021bc['toDOM'](_0x4d7166['bottom']);return new BlockInfo(_0x4d7166['from'],_0x4d7166['length'],_0x3f6e12,_0x2aade0-_0x3f6e12,Array['isArray'](_0x4d7166['_content'])?_0x4d7166['_content']['map'](_0x271d2a=>scaleBlock(_0x271d2a,_0x5021bc)):_0x4d7166['_content']);}const theme=Facet['define']({'combine':_0x37e99b=>_0x37e99b['join']('\x20')}),darkTheme=Facet['define']({'combine':_0x27320e=>_0x27320e['indexOf'](!0x0)>-0x1}),baseThemeID=StyleModule['newName'](),baseLightID=StyleModule['newName'](),baseDarkID=StyleModule['newName'](),lightDarkIDs={'&light':'.'+baseLightID,'&dark':'.'+baseDarkID};function buildTheme(_0x467029,_0x22efde,_0x46b580){return new StyleModule(_0x22efde,{'finish':_0x37e2fb=>/&/['test'](_0x37e2fb)?_0x37e2fb['replace'](/&\w*/,_0x414b44=>{if('&'==_0x414b44)return _0x467029;if(!_0x46b580||!_0x46b580[_0x414b44])throw new RangeError('Unsupported\x20selector:\x20'+_0x414b44);return _0x46b580[_0x414b44];}):_0x467029+'\x20'+_0x37e2fb});}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(_0x3b82ed){this['view']=_0x3b82ed,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']=_0x3b82ed['contentDOM'],this['observer']=new MutationObserver(_0x1d69d4=>{for(let _0x2c1573 of _0x1d69d4)this['queue']['push'](_0x2c1573);(browser['ie']&&browser['ie_version']<=0xb||browser['ios']&&_0x3b82ed['composing'])&&_0x1d69d4['some'](_0x2f0a8a=>'childList'==_0x2f0a8a['type']&&_0x2f0a8a['removedNodes']['length']||'characterData'==_0x2f0a8a['type']&&_0x2f0a8a['oldValue']['length']>_0x2f0a8a['target']['nodeValue']['length'])?this['flushSoon']():this['flush']();}),!window['EditContext']||!browser['android']||!0x1===_0x3b82ed['constructor']['EDIT_CONTEXT']||browser['chrome']&&browser['chrome_version']<0x7e||(this['editContext']=new EditContextManager(_0x3b82ed),_0x3b82ed['state']['facet'](editable)&&(_0x3b82ed['contentDOM']['editContext']=this['editContext']['editContext'])),useCharData&&(this['onCharData']=_0x285661=>{this['queue']['push']({'target':_0x285661['target'],'type':'characterData','oldValue':_0x285661['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 _0x162339;(null===(_0x162339=this['view']['docView'])||void 0x0===_0x162339?void 0x0:_0x162339['lastUpdate'])<Date['now']()-0x4b&&this['onResize']();}),this['resizeScroll']['observe'](_0x3b82ed['scrollDOM'])),this['addWindowListeners'](this['win']=_0x3b82ed['win']),this['start'](),'function'==typeof IntersectionObserver&&(this['intersection']=new IntersectionObserver(_0x5d9740=>{this['parentCheck']<0x0&&(this['parentCheck']=setTimeout(this['listenForScroll']['bind'](this),0x3e8)),_0x5d9740['length']>0x0&&_0x5d9740[_0x5d9740['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(_0x2d48ef=>{_0x2d48ef['length']>0x0&&_0x2d48ef[_0x2d48ef['length']-0x1]['intersectionRatio']>0x0&&this['onScrollChanged'](document['createEvent']('Event'));},{})),this['listenForScroll'](),this['readSelectionRange']();}['onScrollChanged'](_0x35655c){this['view']['inputState']['runHandlers']('scroll',_0x35655c),this['intersecting']&&this['view']['measure']();}['onScroll'](_0x2788d2){this['intersecting']&&this['flush'](!0x1),this['editContext']&&this['view']['requestMeasure'](this['editContext']['measureReq']),this['onScrollChanged'](_0x2788d2);}['onResize'](){this['resizeTimeout']<0x0&&(this['resizeTimeout']=setTimeout(()=>{this['resizeTimeout']=-0x1,this['view']['requestMeasure']();},0x32));}['onPrint'](_0x2b537f){('change'!=_0x2b537f['type']&&_0x2b537f['type']||_0x2b537f['matches'])&&(this['view']['viewState']['printing']=!0x0,this['view']['measure'](),setTimeout(()=>{this['view']['viewState']['printing']=!0x1,this['view']['requestMeasure']();},0x1f4));}['updateGaps'](_0x4548bb){if(this['gapIntersection']&&(_0x4548bb['length']!=this['gaps']['length']||this['gaps']['some']((_0x569239,_0x491547)=>_0x569239!=_0x4548bb[_0x491547]))){this['gapIntersection']['disconnect']();for(let _0x193d59 of _0x4548bb)this['gapIntersection']['observe'](_0x193d59);this['gaps']=_0x4548bb;}}['onSelectionChange'](_0x31cdca){let _0x40264c=this['selectionChanged'];if(!this['readSelectionRange']()||this['delayedAndroidKey'])return;let {view:_0x5a5839}=this,_0xa61961=this['selectionRange'];if(_0x5a5839['state']['facet'](editable)?_0x5a5839['root']['activeElement']!=this['dom']:!hasSelection(this['dom'],_0xa61961))return;let _0x469a31=_0xa61961['anchorNode']&&_0x5a5839['docView']['nearest'](_0xa61961['anchorNode']);_0x469a31&&_0x469a31['ignoreEvent'](_0x31cdca)?_0x40264c||(this['selectionChanged']=!0x1):(browser['ie']&&browser['ie_version']<=0xb||browser['android']&&browser['chrome'])&&!_0x5a5839['state']['selection']['main']['empty']&&_0xa61961['focusNode']&&isEquivalentPosition(_0xa61961['focusNode'],_0xa61961['focusOffset'],_0xa61961['anchorNode'],_0xa61961['anchorOffset'])?this['flushSoon']():this['flush'](!0x1);}['readSelectionRange'](){let {view:_0x57d78b}=this,_0x59b46b=getSelection(_0x57d78b['root']);if(!_0x59b46b)return!0x1;let _0x165169=browser['safari']&&0xb==_0x57d78b['root']['nodeType']&&_0x57d78b['root']['activeElement']==this['dom']&&safariSelectionRangeHack(this['view'],_0x59b46b)||_0x59b46b;if(!_0x165169||this['selectionRange']['eq'](_0x165169))return!0x1;let _0x874200=hasSelection(this['dom'],_0x165169);return _0x874200&&!this['selectionChanged']&&_0x57d78b['inputState']['lastFocusTime']>Date['now']()-0xc8&&_0x57d78b['inputState']['lastTouchTime']<Date['now']()-0x12c&&atElementStart(this['dom'],_0x165169)?(this['view']['inputState']['lastFocusTime']=0x0,_0x57d78b['docView']['updateSelection'](),!0x1):(this['selectionRange']['setRange'](_0x165169),_0x874200&&(this['selectionChanged']=!0x0),!0x0);}['setSelectionRange'](_0x3dcdf5,_0x34dfdc){this['selectionRange']['set'](_0x3dcdf5['node'],_0x3dcdf5['offset'],_0x34dfdc['node'],_0x34dfdc['offset']),this['selectionChanged']=!0x1;}['clearSelectionRange'](){this['selectionRange']['set'](null,0x0,null,0x0);}['listenForScroll'](){this['parentCheck']=-0x1;let _0x5c3cf5=0x0,_0x1666fd=null;for(let _0x13e323=this['dom'];_0x13e323;)if(0x1==_0x13e323['nodeType'])!_0x1666fd&&_0x5c3cf5<this['scrollTargets']['length']&&this['scrollTargets'][_0x5c3cf5]==_0x13e323?_0x5c3cf5++:_0x1666fd||(_0x1666fd=this['scrollTargets']['slice'](0x0,_0x5c3cf5)),_0x1666fd&&_0x1666fd['push'](_0x13e323),_0x13e323=_0x13e323['assignedSlot']||_0x13e323['parentNode'];else{if(0xb!=_0x13e323['nodeType'])break;_0x13e323=_0x13e323['host'];}if(_0x5c3cf5<this['scrollTargets']['length']&&!_0x1666fd&&(_0x1666fd=this['scrollTargets']['slice'](0x0,_0x5c3cf5)),_0x1666fd){for(let _0xbc31f3 of this['scrollTargets'])_0xbc31f3['removeEventListener']('scroll',this['onScroll']);for(let _0xdfd511 of this['scrollTargets']=_0x1666fd)_0xdfd511['addEventListener']('scroll',this['onScroll']);}}['ignore'](_0x1755f3){if(!this['active'])return _0x1755f3();try{return this['stop'](),_0x1755f3();}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'](_0x373fe1,_0x170b18){var _0x397d8a;if(!this['delayedAndroidKey']){let _0x1580e6=()=>{let _0x5b3305=this['delayedAndroidKey'];_0x5b3305&&(this['clearDelayedAndroidKey'](),this['view']['inputState']['lastKeyCode']=_0x5b3305['keyCode'],this['view']['inputState']['lastKeyTime']=Date['now'](),!this['flush']()&&_0x5b3305['force']&&dispatchKey(this['dom'],_0x5b3305['key'],_0x5b3305['keyCode']));};this['flushingAndroidKey']=this['view']['win']['requestAnimationFrame'](_0x1580e6);}this['delayedAndroidKey']&&'Enter'!=_0x373fe1||(this['delayedAndroidKey']={'key':_0x373fe1,'keyCode':_0x170b18,'force':this['lastChange']<Date['now']()-0x32||!!(null===(_0x397d8a=this['delayedAndroidKey'])||void 0x0===_0x397d8a?void 0x0:_0x397d8a['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 _0x55177f of this['observer']['takeRecords']())this['queue']['push'](_0x55177f);return this['queue'];}['processRecords'](){let _0x764d25=this['pendingRecords']();_0x764d25['length']&&(this['queue']=[]);let _0x109c78=-0x1,_0x3a8bb1=-0x1,_0xeddda4=!0x1;for(let _0x3ac897 of _0x764d25){let _0x2d05a5=this['readMutation'](_0x3ac897);_0x2d05a5&&(_0x2d05a5['typeOver']&&(_0xeddda4=!0x0),-0x1==_0x109c78?{from:_0x109c78,to:_0x3a8bb1}=_0x2d05a5:(_0x109c78=Math['min'](_0x2d05a5['from'],_0x109c78),_0x3a8bb1=Math['max'](_0x2d05a5['to'],_0x3a8bb1)));}return{'from':_0x109c78,'to':_0x3a8bb1,'typeOver':_0xeddda4};}['readChange'](){let {from:_0x18c89e,to:_0x344368,typeOver:_0x48eaa}=this['processRecords'](),_0x3b81d7=this['selectionChanged']&&hasSelection(this['dom'],this['selectionRange']);if(_0x18c89e<0x0&&!_0x3b81d7)return null;_0x18c89e>-0x1&&(this['lastChange']=Date['now']()),this['view']['inputState']['lastFocusTime']=0x0,this['selectionChanged']=!0x1;let _0x5370e8=new DOMChange(this['view'],_0x18c89e,_0x344368,_0x48eaa);return this['view']['docView']['domChanged']={'newSel':_0x5370e8['newSel']?_0x5370e8['newSel']['main']:null},_0x5370e8;}['flush'](_0x56e929=!0x0){if(this['delayedFlush']>=0x0||this['delayedAndroidKey'])return!0x1;_0x56e929&&this['readSelectionRange']();let _0x275221=this['readChange']();if(!_0x275221)return this['view']['requestMeasure'](),!0x1;let _0x260573=this['view']['state'],_0xe95edb=applyDOMChange(this['view'],_0x275221);return this['view']['state']==_0x260573&&(_0x275221['domChanged']||_0x275221['newSel']&&!_0x275221['newSel']['main']['eq'](this['view']['state']['selection']['main']))&&this['view']['update']([]),_0xe95edb;}['readMutation'](_0x1dcceb){let _0x1d03db=this['view']['docView']['nearest'](_0x1dcceb['target']);if(!_0x1d03db||_0x1d03db['ignoreMutation'](_0x1dcceb))return null;if(_0x1d03db['markDirty']('attributes'==_0x1dcceb['type']),'attributes'==_0x1dcceb['type']&&(_0x1d03db['flags']|=0x4),'childList'==_0x1dcceb['type']){let _0x3534f3=findChild(_0x1d03db,_0x1dcceb['previousSibling']||_0x1dcceb['target']['previousSibling'],-0x1),_0x3930b0=findChild(_0x1d03db,_0x1dcceb['nextSibling']||_0x1dcceb['target']['nextSibling'],0x1);return{'from':_0x3534f3?_0x1d03db['posAfter'](_0x3534f3):_0x1d03db['posAtStart'],'to':_0x3930b0?_0x1d03db['posBefore'](_0x3930b0):_0x1d03db['posAtEnd'],'typeOver':!0x1};}return'characterData'==_0x1dcceb['type']?{'from':_0x1d03db['posAtStart'],'to':_0x1d03db['posAtEnd'],'typeOver':_0x1dcceb['target']['nodeValue']==_0x1dcceb['oldValue']}:null;}['setWindow'](_0x230d1e){_0x230d1e!=this['win']&&(this['removeWindowListeners'](this['win']),this['win']=_0x230d1e,this['addWindowListeners'](this['win']));}['addWindowListeners'](_0x4fbd4b){_0x4fbd4b['addEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['addEventListener']?this['printQuery']['addEventListener']('change',this['onPrint']):this['printQuery']['addListener'](this['onPrint']):_0x4fbd4b['addEventListener']('beforeprint',this['onPrint']),_0x4fbd4b['addEventListener']('scroll',this['onScroll']),_0x4fbd4b['document']['addEventListener']('selectionchange',this['onSelectionChange']);}['removeWindowListeners'](_0xce65f4){_0xce65f4['removeEventListener']('scroll',this['onScroll']),_0xce65f4['removeEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['removeEventListener']?this['printQuery']['removeEventListener']('change',this['onPrint']):this['printQuery']['removeListener'](this['onPrint']):_0xce65f4['removeEventListener']('beforeprint',this['onPrint']),_0xce65f4['document']['removeEventListener']('selectionchange',this['onSelectionChange']);}['update'](_0x10ce21){this['editContext']&&(this['editContext']['update'](_0x10ce21),_0x10ce21['startState']['facet'](editable)!=_0x10ce21['state']['facet'](editable)&&(_0x10ce21['view']['contentDOM']['editContext']=_0x10ce21['state']['facet'](editable)?this['editContext']['editContext']:null));}['destroy'](){var _0x310f3b,_0x56169c,_0x198048;this['stop'](),null===(_0x310f3b=this['intersection'])||void 0x0===_0x310f3b||_0x310f3b['disconnect'](),null===(_0x56169c=this['gapIntersection'])||void 0x0===_0x56169c||_0x56169c['disconnect'](),null===(_0x198048=this['resizeScroll'])||void 0x0===_0x198048||_0x198048['disconnect']();for(let _0x3a9c0c of this['scrollTargets'])_0x3a9c0c['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(_0x96155d,_0x209a52,_0x19803b){for(;_0x209a52;){let _0x23afcf=ContentView['get'](_0x209a52);if(_0x23afcf&&_0x23afcf['parent']==_0x96155d)return _0x23afcf;let _0x2fbb2a=_0x209a52['parentNode'];_0x209a52=_0x2fbb2a!=_0x96155d['dom']?_0x2fbb2a:_0x19803b>0x0?_0x209a52['nextSibling']:_0x209a52['previousSibling'];}return null;}function buildSelectionRangeFromRange(_0x27a0bf,_0x5f0b0a){let _0xaff731=_0x5f0b0a['startContainer'],_0x3cce01=_0x5f0b0a['startOffset'],_0x1fbbfb=_0x5f0b0a['endContainer'],_0x284f51=_0x5f0b0a['endOffset'],_0x102b5e=_0x27a0bf['docView']['domAtPos'](_0x27a0bf['state']['selection']['main']['anchor']);return isEquivalentPosition(_0x102b5e['node'],_0x102b5e['offset'],_0x1fbbfb,_0x284f51)&&([_0xaff731,_0x3cce01,_0x1fbbfb,_0x284f51]=[_0x1fbbfb,_0x284f51,_0xaff731,_0x3cce01]),{'anchorNode':_0xaff731,'anchorOffset':_0x3cce01,'focusNode':_0x1fbbfb,'focusOffset':_0x284f51};}function safariSelectionRangeHack(_0x50d9e9,_0x3a8d5d){if(_0x3a8d5d['getComposedRanges']){let _0x2b6fb5=_0x3a8d5d['getComposedRanges'](_0x50d9e9['root'])[0x0];if(_0x2b6fb5)return buildSelectionRangeFromRange(_0x50d9e9,_0x2b6fb5);}let _0x11e0e7=null;function _0x294e5e(_0x4dea48){_0x4dea48['preventDefault'](),_0x4dea48['stopImmediatePropagation'](),_0x11e0e7=_0x4dea48['getTargetRanges']()[0x0];}return _0x50d9e9['contentDOM']['addEventListener']('beforeinput',_0x294e5e,!0x0),_0x50d9e9['dom']['ownerDocument']['execCommand']('indent'),_0x50d9e9['contentDOM']['removeEventListener']('beforeinput',_0x294e5e,!0x0),_0x11e0e7?buildSelectionRangeFromRange(_0x50d9e9,_0x11e0e7):null;}class EditContextManager{constructor(_0x1ad2e9){this['from']=0x0,this['to']=0x0,this['pendingContextChange']=null,this['handlers']=Object['create'](null),this['composing']=null,this['resetRange'](_0x1ad2e9['state']);let _0x2a32f9=this['editContext']=new window['EditContext']({'text':_0x1ad2e9['state']['doc']['sliceString'](this['from'],this['to']),'selectionStart':this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0x1ad2e9['state']['selection']['main']['anchor']))),'selectionEnd':this['toContextPos'](_0x1ad2e9['state']['selection']['main']['head'])});this['handlers']['textupdate']=_0x45315e=>{let _0x38b89e=_0x1ad2e9['state']['selection']['main'],{anchor:_0x2100b1,head:_0x2a4807}=_0x38b89e,_0x2f2281=this['toEditorPos'](_0x45315e['updateRangeStart']),_0x747789=this['toEditorPos'](_0x45315e['updateRangeEnd']);_0x1ad2e9['inputState']['composing']>=0x0&&!this['composing']&&(this['composing']={'contextBase':_0x45315e['updateRangeStart'],'editorBase':_0x2f2281,'drifted':!0x1});let _0x524eb9=_0x747789-_0x2f2281>_0x45315e['text']['length'];_0x2f2281==this['from']&&_0x2100b1<this['from']?_0x2f2281=_0x2100b1:_0x747789==this['to']&&_0x2100b1>this['to']&&(_0x747789=_0x2100b1);let _0xb5ff72=findDiff(_0x1ad2e9['state']['sliceDoc'](_0x2f2281,_0x747789),_0x45315e['text'],(_0x524eb9?_0x38b89e['from']:_0x38b89e['to'])-_0x2f2281,_0x524eb9?'end':null);if(!_0xb5ff72){let _0x2d3b18=EditorSelection['single'](this['toEditorPos'](_0x45315e['selectionStart']),this['toEditorPos'](_0x45315e['selectionEnd']));return void(_0x2d3b18['main']['eq'](_0x38b89e)||_0x1ad2e9['dispatch']({'selection':_0x2d3b18,'userEvent':'select'}));}let _0x5eb7ff={'from':_0xb5ff72['from']+_0x2f2281,'to':_0xb5ff72['toA']+_0x2f2281,'insert':Text['of'](_0x45315e['text']['slice'](_0xb5ff72['from'],_0xb5ff72['toB'])['split']('\x0a'))};if((browser['mac']||browser['android'])&&_0x5eb7ff['from']==_0x2a4807-0x1&&/^\. ?$/['test'](_0x45315e['text'])&&'off'==_0x1ad2e9['contentDOM']['getAttribute']('autocorrect')&&(_0x5eb7ff={'from':_0x2f2281,'to':_0x747789,'insert':Text['of']([_0x45315e['text']['replace']('.','\x20')])}),this['pendingContextChange']=_0x5eb7ff,!_0x1ad2e9['state']['readOnly']){let _0x579f59=this['to']-this['from']+(_0x5eb7ff['to']-_0x5eb7ff['from']+_0x5eb7ff['insert']['length']);applyDOMChangeInner(_0x1ad2e9,_0x5eb7ff,EditorSelection['single'](this['toEditorPos'](_0x45315e['selectionStart'],_0x579f59),this['toEditorPos'](_0x45315e['selectionEnd'],_0x579f59)));}this['pendingContextChange']&&(this['revertPending'](_0x1ad2e9['state']),this['setSelection'](_0x1ad2e9['state'])),_0x5eb7ff['from']<_0x5eb7ff['to']&&!_0x5eb7ff['insert']['length']&&_0x1ad2e9['inputState']['composing']>=0x0&&!/[\\p{Alphabetic}\\p{Number}_]/['test'](_0x2a32f9['text']['slice'](Math['max'](0x0,_0x45315e['updateRangeStart']-0x1),Math['min'](_0x2a32f9['text']['length'],_0x45315e['updateRangeStart']+0x1)))&&this['handlers']['compositionend'](_0x45315e);},this['handlers']['characterboundsupdate']=_0x3f1617=>{let _0x571569=[],_0x53d1f6=null;for(let _0x330e85=this['toEditorPos'](_0x3f1617['rangeStart']),_0x208aa6=this['toEditorPos'](_0x3f1617['rangeEnd']);_0x330e85<_0x208aa6;_0x330e85++){let _0x51660b=_0x1ad2e9['coordsForChar'](_0x330e85);_0x53d1f6=_0x51660b&&new DOMRect(_0x51660b['left'],_0x51660b['top'],_0x51660b['right']-_0x51660b['left'],_0x51660b['bottom']-_0x51660b['top'])||_0x53d1f6||new DOMRect(),_0x571569['push'](_0x53d1f6);}_0x2a32f9['updateCharacterBounds'](_0x3f1617['rangeStart'],_0x571569);},this['handlers']['textformatupdate']=_0x5f47e7=>{let _0x1f406d=[];for(let _0x1ddc5a of _0x5f47e7['getTextFormats']()){let _0x55724f=_0x1ddc5a['underlineStyle'],_0x12fb53=_0x1ddc5a['underlineThickness'];if(!/none/i['test'](_0x55724f)&&!/none/i['test'](_0x12fb53)){let _0x29d20b=this['toEditorPos'](_0x1ddc5a['rangeStart']),_0x4fb9aa=this['toEditorPos'](_0x1ddc5a['rangeEnd']);if(_0x29d20b<_0x4fb9aa){let _0x2cd074='text-decoration:\x20underline\x20'+(/^[a-z]/['test'](_0x55724f)?_0x55724f+'\x20':'Dashed'==_0x55724f?'dashed\x20':'Squiggle'==_0x55724f?'wavy\x20':'')+(/thin/i['test'](_0x12fb53)?0x1:0x2)+'px';_0x1f406d['push'](Decoration['mark']({'attributes':{'style':_0x2cd074}})['range'](_0x29d20b,_0x4fb9aa));}}}_0x1ad2e9['dispatch']({'effects':setEditContextFormatting['of'](Decoration['set'](_0x1f406d))});},this['handlers']['compositionstart']=()=>{_0x1ad2e9['inputState']['composing']<0x0&&(_0x1ad2e9['inputState']['composing']=0x0,_0x1ad2e9['inputState']['compositionFirstChange']=!0x0);},this['handlers']['compositionend']=()=>{if(_0x1ad2e9['inputState']['composing']=-0x1,_0x1ad2e9['inputState']['compositionFirstChange']=null,this['composing']){let {drifted:_0x40cc8e}=this['composing'];this['composing']=null,_0x40cc8e&&this['reset'](_0x1ad2e9['state']);}};for(let _0x52e0c1 in this['handlers'])_0x2a32f9['addEventListener'](_0x52e0c1,this['handlers'][_0x52e0c1]);this['measureReq']={'read':_0x231fca=>{this['editContext']['updateControlBounds'](_0x231fca['contentDOM']['getBoundingClientRect']());let _0x449fd1=getSelection(_0x231fca['root']);_0x449fd1&&_0x449fd1['rangeCount']&&this['editContext']['updateSelectionBounds'](_0x449fd1['getRangeAt'](0x0)['getBoundingClientRect']());}};}['applyEdits'](_0x3fe371){let _0x30a35c=0x0,_0x3b4d2e=!0x1,_0x173df3=this['pendingContextChange'];return _0x3fe371['changes']['iterChanges']((_0x53f73e,_0x2fc51b,_0x54dbfa,_0x99fbad,_0x53e4da)=>{if(_0x3b4d2e)return;let _0x179859=_0x53e4da['length']-(_0x2fc51b-_0x53f73e);if(_0x173df3&&_0x2fc51b>=_0x173df3['to']){if(_0x173df3['from']==_0x53f73e&&_0x173df3['to']==_0x2fc51b&&_0x173df3['insert']['eq'](_0x53e4da))return _0x173df3=this['pendingContextChange']=null,_0x30a35c+=_0x179859,void(this['to']+=_0x179859);_0x173df3=null,this['revertPending'](_0x3fe371['state']);}if(_0x53f73e+=_0x30a35c,(_0x2fc51b+=_0x30a35c)<=this['from'])this['from']+=_0x179859,this['to']+=_0x179859;else{if(_0x53f73e<this['to']){if(_0x53f73e<this['from']||_0x2fc51b>this['to']||this['to']-this['from']+_0x53e4da['length']>0x7530)return void(_0x3b4d2e=!0x0);this['editContext']['updateText'](this['toContextPos'](_0x53f73e),this['toContextPos'](_0x2fc51b),_0x53e4da['toString']()),this['to']+=_0x179859;}}_0x30a35c+=_0x179859;}),_0x173df3&&!_0x3b4d2e&&this['revertPending'](_0x3fe371['state']),!_0x3b4d2e;}['update'](_0x5f1424){let _0x58115d=this['pendingContextChange'],_0x2a373e=_0x5f1424['startState']['selection']['main'];this['composing']&&(this['composing']['drifted']||!_0x5f1424['changes']['touchesRange'](_0x2a373e['from'],_0x2a373e['to'])&&_0x5f1424['transactions']['some'](_0x62929b=>!_0x62929b['isUserEvent']('input.type')&&_0x62929b['changes']['touchesRange'](this['from'],this['to'])))?(this['composing']['drifted']=!0x0,this['composing']['editorBase']=_0x5f1424['changes']['mapPos'](this['composing']['editorBase'])):this['applyEdits'](_0x5f1424)&&this['rangeIsValid'](_0x5f1424['state'])?(_0x5f1424['docChanged']||_0x5f1424['selectionSet']||_0x58115d)&&this['setSelection'](_0x5f1424['state']):(this['pendingContextChange']=null,this['reset'](_0x5f1424['state'])),(_0x5f1424['geometryChanged']||_0x5f1424['docChanged']||_0x5f1424['selectionSet'])&&_0x5f1424['view']['requestMeasure'](this['measureReq']);}['resetRange'](_0xd552f4){let {head:_0x5de6db}=_0xd552f4['selection']['main'];this['from']=Math['max'](0x0,_0x5de6db-0x2710),this['to']=Math['min'](_0xd552f4['doc']['length'],_0x5de6db+0x2710);}['reset'](_0x54bca3){this['resetRange'](_0x54bca3),this['editContext']['updateText'](0x0,this['editContext']['text']['length'],_0x54bca3['doc']['sliceString'](this['from'],this['to'])),this['setSelection'](_0x54bca3);}['revertPending'](_0x6bfc43){let _0x40eaeb=this['pendingContextChange'];this['pendingContextChange']=null,this['editContext']['updateText'](this['toContextPos'](_0x40eaeb['from']),this['toContextPos'](_0x40eaeb['from']+_0x40eaeb['insert']['length']),_0x6bfc43['doc']['sliceString'](_0x40eaeb['from'],_0x40eaeb['to']));}['setSelection'](_0x3d4314){let {main:_0xcb4223}=_0x3d4314['selection'],_0x1cd0ba=this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0xcb4223['anchor']))),_0x5b5012=this['toContextPos'](_0xcb4223['head']);this['editContext']['selectionStart']==_0x1cd0ba&&this['editContext']['selectionEnd']==_0x5b5012||this['editContext']['updateSelection'](_0x1cd0ba,_0x5b5012);}['rangeIsValid'](_0x4aee8e){let {head:_0x211a56}=_0x4aee8e['selection']['main'];return!(this['from']>0x0&&_0x211a56-this['from']<0x1f4||this['to']<_0x4aee8e['doc']['length']&&this['to']-_0x211a56<0x1f4||this['to']-this['from']>0x7530);}['toEditorPos'](_0x2e070f,_0x25deb6=this['to']-this['from']){_0x2e070f=Math['min'](_0x2e070f,_0x25deb6);let _0x23caa1=this['composing'];return _0x23caa1&&_0x23caa1['drifted']?_0x23caa1['editorBase']+(_0x2e070f-_0x23caa1['contextBase']):_0x2e070f+this['from'];}['toContextPos'](_0x32707c){let _0x4f42ae=this['composing'];return _0x4f42ae&&_0x4f42ae['drifted']?_0x4f42ae['contextBase']+(_0x32707c-_0x4f42ae['editorBase']):_0x32707c-this['from'];}['destroy'](){for(let _0x4d4187 in this['handlers'])this['editContext']['removeEventListener'](_0x4d4187,this['handlers'][_0x4d4187]);}}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(_0xbddd7f={}){var _0x523783;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']),_0xbddd7f['parent']&&_0xbddd7f['parent']['appendChild'](this['dom']);let {dispatch:_0x5756d7}=_0xbddd7f;this['dispatchTransactions']=_0xbddd7f['dispatchTransactions']||_0x5756d7&&(_0x39b415=>_0x39b415['forEach'](_0x360047=>_0x5756d7(_0x360047,this)))||(_0x5aa9a5=>this['update'](_0x5aa9a5)),this['dispatch']=this['dispatch']['bind'](this),this['_root']=_0xbddd7f['root']||getRoot(_0xbddd7f['parent'])||document,this['viewState']=new ViewState(_0xbddd7f['state']||EditorState['create'](_0xbddd7f)),_0xbddd7f['scrollTo']&&_0xbddd7f['scrollTo']['is'](scrollIntoView$1)&&(this['viewState']['scrollTarget']=_0xbddd7f['scrollTo']['value']['clip'](this['viewState']['state'])),this['plugins']=this['state']['facet'](viewPlugin)['map'](_0x251602=>new PluginInstance(_0x251602));for(let _0xa24b89 of this['plugins'])_0xa24b89['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===(_0x523783=document['fonts'])||void 0x0===_0x523783?void 0x0:_0x523783['ready'])&&document['fonts']['ready']['then'](()=>this['requestMeasure']());}['dispatch'](..._0x5ab0ed){let _0x17b129=0x1==_0x5ab0ed['length']&&_0x5ab0ed[0x0]instanceof Transaction?_0x5ab0ed:0x1==_0x5ab0ed['length']&&Array['isArray'](_0x5ab0ed[0x0])?_0x5ab0ed[0x0]:[this['state']['update'](..._0x5ab0ed)];this['dispatchTransactions'](_0x17b129,this);}['update'](_0x4e0268){if(0x0!=this['updateState'])throw new Error('Calls\x20to\x20EditorView.update\x20are\x20not\x20allowed\x20while\x20an\x20update\x20is\x20in\x20progress');let _0x1d8f6a,_0x48e265=!0x1,_0x5b163b=!0x1,_0x44b60f=this['state'];for(let _0x10c3f1 of _0x4e0268){if(_0x10c3f1['startState']!=_0x44b60f)throw new RangeError('Trying\x20to\x20update\x20state\x20with\x20a\x20transaction\x20that\x20doesn\x27t\x20start\x20from\x20the\x20previous\x20state.');_0x44b60f=_0x10c3f1['state'];}if(this['destroyed'])return void(this['viewState']['state']=_0x44b60f);let _0x358402=this['hasFocus'],_0xbd12ea=0x0,_0x1bc80b=null;_0x4e0268['some'](_0x1db0f6=>_0x1db0f6['annotation'](isFocusChange))?(this['inputState']['notifiedFocused']=_0x358402,_0xbd12ea=0x1):_0x358402!=this['inputState']['notifiedFocused']&&(this['inputState']['notifiedFocused']=_0x358402,_0x1bc80b=focusChangeTransaction(_0x44b60f,_0x358402),_0x1bc80b||(_0xbd12ea=0x1));let _0x11c14d=this['observer']['delayedAndroidKey'],_0x1a9cc4=null;if(_0x11c14d?(this['observer']['clearDelayedAndroidKey'](),_0x1a9cc4=this['observer']['readChange'](),(_0x1a9cc4&&!this['state']['doc']['eq'](_0x44b60f['doc'])||!this['state']['selection']['eq'](_0x44b60f['selection']))&&(_0x1a9cc4=null)):this['observer']['clear'](),_0x44b60f['facet'](EditorState['phrases'])!=this['state']['facet'](EditorState['phrases']))return this['setState'](_0x44b60f);_0x1d8f6a=ViewUpdate['create'](this,_0x44b60f,_0x4e0268),_0x1d8f6a['flags']|=_0xbd12ea;let _0x455808=this['viewState']['scrollTarget'];try{this['updateState']=0x2;for(let _0x4e6b80 of _0x4e0268){if(_0x455808&&(_0x455808=_0x455808['map'](_0x4e6b80['changes'])),_0x4e6b80['scrollIntoView']){let {main:_0xc9d112}=_0x4e6b80['state']['selection'];_0x455808=new ScrollTarget(_0xc9d112['empty']?_0xc9d112:EditorSelection['cursor'](_0xc9d112['head'],_0xc9d112['head']>_0xc9d112['anchor']?-0x1:0x1));}for(let _0x2c81b5 of _0x4e6b80['effects'])_0x2c81b5['is'](scrollIntoView$1)&&(_0x455808=_0x2c81b5['value']['clip'](this['state']));}this['viewState']['update'](_0x1d8f6a,_0x455808),this['bidiCache']=CachedOrder['update'](this['bidiCache'],_0x1d8f6a['changes']),_0x1d8f6a['empty']||(this['updatePlugins'](_0x1d8f6a),this['inputState']['update'](_0x1d8f6a)),_0x48e265=this['docView']['update'](_0x1d8f6a),this['state']['facet'](styleModule)!=this['styleModules']&&this['mountStyles'](),_0x5b163b=this['updateAttrs'](),this['showAnnouncements'](_0x4e0268),this['docView']['updateSelection'](_0x48e265,_0x4e0268['some'](_0x2e1d3d=>_0x2e1d3d['isUserEvent']('select.pointer')));}finally{this['updateState']=0x0;}if(_0x1d8f6a['startState']['facet'](theme)!=_0x1d8f6a['state']['facet'](theme)&&(this['viewState']['mustMeasureContent']=!0x0),(_0x48e265||_0x5b163b||_0x455808||this['viewState']['mustEnforceCursorAssoc']||this['viewState']['mustMeasureContent'])&&this['requestMeasure'](),_0x48e265&&this['docViewUpdate'](),!_0x1d8f6a['empty']){for(let _0x29a61b of this['state']['facet'](updateListener))try{_0x29a61b(_0x1d8f6a);}catch(_0x334eb9){logException(this['state'],_0x334eb9,'update\x20listener');}}(_0x1bc80b||_0x1a9cc4)&&Promise['resolve']()['then'](()=>{_0x1bc80b&&this['state']==_0x1bc80b['startState']&&this['dispatch'](_0x1bc80b),_0x1a9cc4&&!applyDOMChange(this,_0x1a9cc4)&&_0x11c14d['force']&&dispatchKey(this['contentDOM'],_0x11c14d['key'],_0x11c14d['keyCode']);});}['setState'](_0x3620f2){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']=_0x3620f2);this['updateState']=0x2;let _0x162735=this['hasFocus'];try{for(let _0x186bd9 of this['plugins'])_0x186bd9['destroy'](this);this['viewState']=new ViewState(_0x3620f2),this['plugins']=_0x3620f2['facet'](viewPlugin)['map'](_0xd450e9=>new PluginInstance(_0xd450e9)),this['pluginMap']['clear']();for(let _0x45917d of this['plugins'])_0x45917d['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;}_0x162735&&this['focus'](),this['requestMeasure']();}['updatePlugins'](_0x90974b){let _0x267ffd=_0x90974b['startState']['facet'](viewPlugin),_0x4a3a57=_0x90974b['state']['facet'](viewPlugin);if(_0x267ffd!=_0x4a3a57){let _0x43ec16=[];for(let _0xfd997e of _0x4a3a57){let _0x3fbb9e=_0x267ffd['indexOf'](_0xfd997e);if(_0x3fbb9e<0x0)_0x43ec16['push'](new PluginInstance(_0xfd997e));else{let _0x289760=this['plugins'][_0x3fbb9e];_0x289760['mustUpdate']=_0x90974b,_0x43ec16['push'](_0x289760);}}for(let _0x5b91c5 of this['plugins'])_0x5b91c5['mustUpdate']!=_0x90974b&&_0x5b91c5['destroy'](this);this['plugins']=_0x43ec16,this['pluginMap']['clear']();}else{for(let _0x4f820c of this['plugins'])_0x4f820c['mustUpdate']=_0x90974b;}for(let _0x53a653=0x0;_0x53a653<this['plugins']['length'];_0x53a653++)this['plugins'][_0x53a653]['update'](this);_0x267ffd!=_0x4a3a57&&this['inputState']['ensureHandlers'](this['plugins']);}['docViewUpdate'](){for(let _0x85dc54 of this['plugins']){let _0x1bbdcf=_0x85dc54['value'];if(_0x1bbdcf&&_0x1bbdcf['docViewUpdate'])try{_0x1bbdcf['docViewUpdate'](this);}catch(_0x39e673){logException(this['state'],_0x39e673,'doc\x20view\x20update\x20listener');}}}['measure'](_0xca7b99=!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,_0xca7b99&&this['observer']['forceFlush']();let _0x27ff4b=null,_0x122981=this['scrollDOM'],_0x35ed30=_0x122981['scrollTop']*this['scaleY'],{scrollAnchorPos:_0x1b9229,scrollAnchorHeight:_0x1ac1c1}=this['viewState'];Math['abs'](_0x35ed30-this['viewState']['scrollTop'])>0x1&&(_0x1ac1c1=-0x1),this['viewState']['scrollAnchorHeight']=-0x1;try{for(let _0x134e9a=0x0;;_0x134e9a++){if(_0x1ac1c1<0x0){if(isScrolledToBottom(_0x122981))_0x1b9229=-0x1,_0x1ac1c1=this['viewState']['heightMap']['height'];else{let _0x1bbcbb=this['viewState']['scrollAnchorAt'](_0x35ed30);_0x1b9229=_0x1bbcbb['from'],_0x1ac1c1=_0x1bbcbb['top'];}}this['updateState']=0x1;let _0x1e63d8=this['viewState']['measure'](this);if(!_0x1e63d8&&!this['measureRequests']['length']&&null==this['viewState']['scrollTarget'])break;if(_0x134e9a>0x5){console['warn'](this['measureRequests']['length']?'Measure\x20loop\x20restarted\x20more\x20than\x205\x20times':'Viewport\x20failed\x20to\x20stabilize');break;}let _0x585df1=[];0x4&_0x1e63d8||([this['measureRequests'],_0x585df1]=[_0x585df1,this['measureRequests']]);let _0xcae484=_0x585df1['map'](_0x349433=>{try{return _0x349433['read'](this);}catch(_0x8e3342){return logException(this['state'],_0x8e3342),BadMeasure;}}),_0x5b4f9c=ViewUpdate['create'](this,this['state'],[]),_0x93cf39=!0x1;_0x5b4f9c['flags']|=_0x1e63d8,_0x27ff4b?_0x27ff4b['flags']|=_0x1e63d8:_0x27ff4b=_0x5b4f9c,this['updateState']=0x2,_0x5b4f9c['empty']||(this['updatePlugins'](_0x5b4f9c),this['inputState']['update'](_0x5b4f9c),this['updateAttrs'](),_0x93cf39=this['docView']['update'](_0x5b4f9c),_0x93cf39&&this['docViewUpdate']());for(let _0x153640=0x0;_0x153640<_0x585df1['length'];_0x153640++)if(_0xcae484[_0x153640]!=BadMeasure)try{let _0x53baf8=_0x585df1[_0x153640];_0x53baf8['write']&&_0x53baf8['write'](_0xcae484[_0x153640],this);}catch(_0x4ff185){logException(this['state'],_0x4ff185);}if(_0x93cf39&&this['docView']['updateSelection'](!0x0),!_0x5b4f9c['viewportChanged']&&0x0==this['measureRequests']['length']){if(this['viewState']['editorHeight']){if(this['viewState']['scrollTarget']){this['docView']['scrollIntoView'](this['viewState']['scrollTarget']),this['viewState']['scrollTarget']=null,_0x1ac1c1=-0x1;continue;}{let _0x430fc6=(_0x1b9229<0x0?this['viewState']['heightMap']['height']:this['viewState']['lineBlockAt'](_0x1b9229)['top'])-_0x1ac1c1;if(_0x430fc6>0x1||_0x430fc6<-0x1){_0x35ed30+=_0x430fc6,_0x122981['scrollTop']=_0x35ed30/this['scaleY'],_0x1ac1c1=-0x1;continue;}}}break;}}}finally{this['updateState']=0x0,this['measureScheduled']=-0x1;}if(_0x27ff4b&&!_0x27ff4b['empty']){for(let _0x402f10 of this['state']['facet'](updateListener))_0x402f10(_0x27ff4b);}}get['themeClasses'](){return baseThemeID+'\x20'+(this['state']['facet'](darkTheme)?baseDarkID:baseLightID)+'\x20'+this['state']['facet'](theme);}['updateAttrs'](){let _0x3de665=attrsFromFacet(this,editorAttributes,{'class':'cm-editor'+(this['hasFocus']?'\x20cm-focused\x20':'\x20')+this['themeClasses']}),_0x11e547={'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']&&(_0x11e547['aria-readonly']='true'),attrsFromFacet(this,contentAttributes,_0x11e547);let _0x3de21a=this['observer']['ignore'](()=>{let _0x3ac721=updateAttrs(this['contentDOM'],this['contentAttrs'],_0x11e547),_0x179c0c=updateAttrs(this['dom'],this['editorAttrs'],_0x3de665);return _0x3ac721||_0x179c0c;});return this['editorAttrs']=_0x3de665,this['contentAttrs']=_0x11e547,_0x3de21a;}['showAnnouncements'](_0xf00035){let _0x228e98=!0x0;for(let _0x646379 of _0xf00035)for(let _0x397a37 of _0x646379['effects'])_0x397a37['is'](EditorView['announce'])&&(_0x228e98&&(this['announceDOM']['textContent']=''),_0x228e98=!0x1,this['announceDOM']['appendChild'](document['createElement']('div'))['textContent']=_0x397a37['value']);}['mountStyles'](){this['styleModules']=this['state']['facet'](styleModule);let _0x6915ca=this['state']['facet'](EditorView['cspNonce']);StyleModule['mount'](this['root'],this['styleModules']['concat'](baseTheme$1$1)['reverse'](),_0x6915ca?{'nonce':_0x6915ca}: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'](_0x5af11e){if(this['measureScheduled']<0x0&&(this['measureScheduled']=this['win']['requestAnimationFrame'](()=>this['measure']())),_0x5af11e){if(this['measureRequests']['indexOf'](_0x5af11e)>-0x1)return;if(null!=_0x5af11e['key']){for(let _0x161c66=0x0;_0x161c66<this['measureRequests']['length'];_0x161c66++)if(this['measureRequests'][_0x161c66]['key']===_0x5af11e['key'])return void(this['measureRequests'][_0x161c66]=_0x5af11e);}this['measureRequests']['push'](_0x5af11e);}}['plugin'](_0x199f3b){let _0x129277=this['pluginMap']['get'](_0x199f3b);return(void 0x0===_0x129277||_0x129277&&_0x129277['plugin']!=_0x199f3b)&&this['pluginMap']['set'](_0x199f3b,_0x129277=this['plugins']['find'](_0x29eb52=>_0x29eb52['plugin']==_0x199f3b)||null),_0x129277&&_0x129277['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'](_0x44a1b3){return this['readMeasured'](),this['viewState']['elementAtHeight'](_0x44a1b3);}['lineBlockAtHeight'](_0x253d0d){return this['readMeasured'](),this['viewState']['lineBlockAtHeight'](_0x253d0d);}get['viewportLineBlocks'](){return this['viewState']['viewportLines'];}['lineBlockAt'](_0x2f6cfa){return this['viewState']['lineBlockAt'](_0x2f6cfa);}get['contentHeight'](){return this['viewState']['contentHeight'];}['moveByChar'](_0x5ac150,_0x20c8f6,_0x456182){return skipAtoms(this,_0x5ac150,moveByChar(this,_0x5ac150,_0x20c8f6,_0x456182));}['moveByGroup'](_0x4d4ac8,_0x156270){return skipAtoms(this,_0x4d4ac8,moveByChar(this,_0x4d4ac8,_0x156270,_0x178313=>byGroup(this,_0x4d4ac8['head'],_0x178313)));}['visualLineSide'](_0x150032,_0x3eeab3){let _0x18c7a1=this['bidiSpans'](_0x150032),_0x27c831=this['textDirectionAt'](_0x150032['from']),_0x4db43e=_0x18c7a1[_0x3eeab3?_0x18c7a1['length']-0x1:0x0];return EditorSelection['cursor'](_0x4db43e['side'](_0x3eeab3,_0x27c831)+_0x150032['from'],_0x4db43e['forward'](!_0x3eeab3,_0x27c831)?0x1:-0x1);}['moveToLineBoundary'](_0x5c8255,_0x2f1411,_0x288cec=!0x0){return moveToLineBoundary(this,_0x5c8255,_0x2f1411,_0x288cec);}['moveVertically'](_0x4ced27,_0x38da03,_0x3dded3){return skipAtoms(this,_0x4ced27,moveVertically(this,_0x4ced27,_0x38da03,_0x3dded3));}['domAtPos'](_0x48aa17){return this['docView']['domAtPos'](_0x48aa17);}['posAtDOM'](_0xc13667,_0x130b9b=0x0){return this['docView']['posFromDOM'](_0xc13667,_0x130b9b);}['posAtCoords'](_0x247bba,_0x9a9e11=!0x0){return this['readMeasured'](),posAtCoords(this,_0x247bba,_0x9a9e11);}['coordsAtPos'](_0x11af80,_0x56ab92=0x1){this['readMeasured']();let _0x4c032a=this['docView']['coordsAt'](_0x11af80,_0x56ab92);if(!_0x4c032a||_0x4c032a['left']==_0x4c032a['right'])return _0x4c032a;let _0x256778=this['state']['doc']['lineAt'](_0x11af80),_0x2fd01f=this['bidiSpans'](_0x256778);return flattenRect(_0x4c032a,_0x2fd01f[BidiSpan['find'](_0x2fd01f,_0x11af80-_0x256778['from'],-0x1,_0x56ab92)]['dir']==Direction['LTR']==_0x56ab92>0x0);}['coordsForChar'](_0x59cd34){return this['readMeasured'](),this['docView']['coordsForChar'](_0x59cd34);}get['defaultCharacterWidth'](){return this['viewState']['heightOracle']['charWidth'];}get['defaultLineHeight'](){return this['viewState']['heightOracle']['lineHeight'];}get['textDirection'](){return this['viewState']['defaultTextDirection'];}['textDirectionAt'](_0x2ea69e){return!this['state']['facet'](perLineTextDirection)||_0x2ea69e<this['viewport']['from']||_0x2ea69e>this['viewport']['to']?this['textDirection']:(this['readMeasured'](),this['docView']['textDirectionAt'](_0x2ea69e));}get['lineWrapping'](){return this['viewState']['heightOracle']['lineWrapping'];}['bidiSpans'](_0x2a938f){if(_0x2a938f['length']>MaxBidiLine)return trivialOrder(_0x2a938f['length']);let _0x2046c2,_0x1f665d=this['textDirectionAt'](_0x2a938f['from']);for(let _0x520264 of this['bidiCache'])if(_0x520264['from']==_0x2a938f['from']&&_0x520264['dir']==_0x1f665d&&(_0x520264['fresh']||isolatesEq(_0x520264['isolates'],_0x2046c2=getIsolatedRanges(this,_0x2a938f))))return _0x520264['order'];_0x2046c2||(_0x2046c2=getIsolatedRanges(this,_0x2a938f));let _0x7412de=computeOrder(_0x2a938f['text'],_0x1f665d,_0x2046c2);return this['bidiCache']['push'](new CachedOrder(_0x2a938f['from'],_0x2a938f['to'],_0x1f665d,_0x2046c2,!0x0,_0x7412de)),_0x7412de;}get['hasFocus'](){var _0x1ea1a5;return(this['dom']['ownerDocument']['hasFocus']()||browser['safari']&&(null===(_0x1ea1a5=this['inputState'])||void 0x0===_0x1ea1a5?void 0x0:_0x1ea1a5['lastContextMenu'])>Date['now']()-0x7530)&&this['root']['activeElement']==this['contentDOM'];}['focus'](){this['observer']['ignore'](()=>{focusPreventScroll(this['contentDOM']),this['docView']['updateSelection']();});}['setRoot'](_0x282bc6){this['_root']!=_0x282bc6&&(this['_root']=_0x282bc6,this['observer']['setWindow']((0x9==_0x282bc6['nodeType']?_0x282bc6:_0x282bc6['ownerDocument'])['defaultView']||window),this['mountStyles']());}['destroy'](){this['root']['activeElement']==this['contentDOM']&&this['contentDOM']['blur']();for(let _0x35e28e of this['plugins'])_0x35e28e['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'](_0xd66c9a,_0x5eb942={}){return scrollIntoView$1['of'](new ScrollTarget('number'==typeof _0xd66c9a?EditorSelection['cursor'](_0xd66c9a):_0xd66c9a,_0x5eb942['y'],_0x5eb942['x'],_0x5eb942['yMargin'],_0x5eb942['xMargin']));}['scrollSnapshot'](){let {scrollTop:_0x24d013,scrollLeft:_0x1610f5}=this['scrollDOM'],_0x45570c=this['viewState']['scrollAnchorAt'](_0x24d013);return scrollIntoView$1['of'](new ScrollTarget(EditorSelection['cursor'](_0x45570c['from']),'start','start',_0x45570c['top']-_0x24d013,_0x1610f5,!0x0));}['setTabFocusMode'](_0x12f2a6){null==_0x12f2a6?this['inputState']['tabFocusMode']=this['inputState']['tabFocusMode']<0x0?0x0:-0x1:'boolean'==typeof _0x12f2a6?this['inputState']['tabFocusMode']=_0x12f2a6?0x0:-0x1:0x0!=this['inputState']['tabFocusMode']&&(this['inputState']['tabFocusMode']=Date['now']()+_0x12f2a6);}static['domEventHandlers'](_0x402345){return ViewPlugin['define'](()=>({}),{'eventHandlers':_0x402345});}static['domEventObservers'](_0x2ec31f){return ViewPlugin['define'](()=>({}),{'eventObservers':_0x2ec31f});}static['theme'](_0x1af8f1,_0x4479e2){let _0xa1b340=StyleModule['newName'](),_0x298043=[theme['of'](_0xa1b340),styleModule['of'](buildTheme('.'+_0xa1b340,_0x1af8f1))];return _0x4479e2&&_0x4479e2['dark']&&_0x298043['push'](darkTheme['of'](!0x0)),_0x298043;}static['baseTheme'](_0x4e73e7){return Prec['lowest'](styleModule['of'](buildTheme('.'+baseThemeID,_0x4e73e7,lightDarkIDs)));}static['findFromDOM'](_0x201646){var _0x2a9b34;let _0x54e822=_0x201646['querySelector']('.cm-content'),_0x3d11d8=_0x54e822&&ContentView['get'](_0x54e822)||ContentView['get'](_0x201646);return(null===(_0x2a9b34=null==_0x3d11d8?void 0x0:_0x3d11d8['rootView'])||void 0x0===_0x2a9b34?void 0x0:_0x2a9b34['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':_0x53578a=>_0x53578a['length']?_0x53578a[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(_0x1e3cbe,_0x71dcc0,_0x35b11c,_0x1339de,_0x41aa73,_0x5d1dd9){this['from']=_0x1e3cbe,this['to']=_0x71dcc0,this['dir']=_0x35b11c,this['isolates']=_0x1339de,this['fresh']=_0x41aa73,this['order']=_0x5d1dd9;}static['update'](_0x17d26c,_0x2d11b4){if(_0x2d11b4['empty']&&!_0x17d26c['some'](_0x16340a=>_0x16340a['fresh']))return _0x17d26c;let _0xf6c111=[],_0x11d297=_0x17d26c['length']?_0x17d26c[_0x17d26c['length']-0x1]['dir']:Direction['LTR'];for(let _0x8a80eb=Math['max'](0x0,_0x17d26c['length']-0xa);_0x8a80eb<_0x17d26c['length'];_0x8a80eb++){let _0x182ba8=_0x17d26c[_0x8a80eb];_0x182ba8['dir']!=_0x11d297||_0x2d11b4['touchesRange'](_0x182ba8['from'],_0x182ba8['to'])||_0xf6c111['push'](new CachedOrder(_0x2d11b4['mapPos'](_0x182ba8['from'],0x1),_0x2d11b4['mapPos'](_0x182ba8['to'],-0x1),_0x182ba8['dir'],_0x182ba8['isolates'],!0x1,_0x182ba8['order']));}return _0xf6c111;}}function attrsFromFacet(_0x2793a3,_0x5f4a1d,_0x1452e7){for(let _0x1fda79=_0x2793a3['state']['facet'](_0x5f4a1d),_0x2d032f=_0x1fda79['length']-0x1;_0x2d032f>=0x0;_0x2d032f--){let _0x15b07f=_0x1fda79[_0x2d032f],_0x5037e8='function'==typeof _0x15b07f?_0x15b07f(_0x2793a3):_0x15b07f;_0x5037e8&&combineAttrs(_0x5037e8,_0x1452e7);}return _0x1452e7;}const currentPlatform=browser['mac']?'mac':browser['windows']?'win':browser['linux']?'linux':'key';function normalizeKeyName(_0x161516,_0x56b84a){const _0x15583e=_0x161516['split'](/-(?!$)/);let _0xeb3560,_0x1606e3,_0x173256,_0xb8d19a,_0xe5fa60=_0x15583e[_0x15583e['length']-0x1];'Space'==_0xe5fa60&&(_0xe5fa60='\x20');for(let _0x11a208=0x0;_0x11a208<_0x15583e['length']-0x1;++_0x11a208){const _0x5a9ecc=_0x15583e[_0x11a208];if(/^(cmd|meta|m)$/i['test'](_0x5a9ecc))_0xb8d19a=!0x0;else{if(/^a(lt)?$/i['test'](_0x5a9ecc))_0xeb3560=!0x0;else{if(/^(c|ctrl|control)$/i['test'](_0x5a9ecc))_0x1606e3=!0x0;else{if(/^s(hift)?$/i['test'](_0x5a9ecc))_0x173256=!0x0;else{if(!/^mod$/i['test'](_0x5a9ecc))throw new Error('Unrecognized\x20modifier\x20name:\x20'+_0x5a9ecc);'mac'==_0x56b84a?_0xb8d19a=!0x0:_0x1606e3=!0x0;}}}}}return _0xeb3560&&(_0xe5fa60='Alt-'+_0xe5fa60),_0x1606e3&&(_0xe5fa60='Ctrl-'+_0xe5fa60),_0xb8d19a&&(_0xe5fa60='Meta-'+_0xe5fa60),_0x173256&&(_0xe5fa60='Shift-'+_0xe5fa60),_0xe5fa60;}function modifiers(_0x2c56fe,_0x109af2,_0x38a949){return _0x109af2['altKey']&&(_0x2c56fe='Alt-'+_0x2c56fe),_0x109af2['ctrlKey']&&(_0x2c56fe='Ctrl-'+_0x2c56fe),_0x109af2['metaKey']&&(_0x2c56fe='Meta-'+_0x2c56fe),!0x1!==_0x38a949&&_0x109af2['shiftKey']&&(_0x2c56fe='Shift-'+_0x2c56fe),_0x2c56fe;}const handleKeyEvents=Prec['default'](EditorView['domEventHandlers']({'keydown':(_0x5282cb,_0x436c25)=>runHandlers(getKeymap(_0x436c25['state']),_0x5282cb,_0x436c25,'editor')})),keymap=Facet['define']({'enables':handleKeyEvents}),Keymaps=new WeakMap();function getKeymap(_0x3fd742){let _0x3213fe=_0x3fd742['facet'](keymap),_0x2cb597=Keymaps['get'](_0x3213fe);return _0x2cb597||Keymaps['set'](_0x3213fe,_0x2cb597=buildKeymap(_0x3213fe['reduce']((_0xd68477,_0x42611a)=>_0xd68477['concat'](_0x42611a),[]))),_0x2cb597;}let storedPrefix=null;const PrefixTimeout=0xfa0;function buildKeymap(_0x3678ee,_0x1b2bb7=currentPlatform){let _0x4a917d=Object['create'](null),_0x11ff6e=Object['create'](null),_0x5bfd24=(_0x57afba,_0x16ce00)=>{let _0x463491=_0x11ff6e[_0x57afba];if(null==_0x463491)_0x11ff6e[_0x57afba]=_0x16ce00;else{if(_0x463491!=_0x16ce00)throw new Error('Key\x20binding\x20'+_0x57afba+'\x20is\x20used\x20both\x20as\x20a\x20regular\x20binding\x20and\x20as\x20a\x20multi-stroke\x20prefix');}},_0x25b223=(_0x459d45,_0x16f205,_0x20dcf7,_0x19250a,_0x3eda62)=>{var _0x3825c7,_0x27335f;let _0x14b0ba=_0x4a917d[_0x459d45]||(_0x4a917d[_0x459d45]=Object['create'](null)),_0x30b033=_0x16f205['split'](/ (?!$)/)['map'](_0x4737b5=>normalizeKeyName(_0x4737b5,_0x1b2bb7));for(let _0x5bdcae=0x1;_0x5bdcae<_0x30b033['length'];_0x5bdcae++){let _0x10ddb9=_0x30b033['slice'](0x0,_0x5bdcae)['join']('\x20');_0x5bfd24(_0x10ddb9,!0x0),_0x14b0ba[_0x10ddb9]||(_0x14b0ba[_0x10ddb9]={'preventDefault':!0x0,'stopPropagation':!0x1,'run':[_0x576a92=>{let _0x875844=storedPrefix={'view':_0x576a92,'prefix':_0x10ddb9,'scope':_0x459d45};return setTimeout(()=>{storedPrefix==_0x875844&&(storedPrefix=null);},PrefixTimeout),!0x0;}]});}let _0x34012f=_0x30b033['join']('\x20');_0x5bfd24(_0x34012f,!0x1);let _0x542519=_0x14b0ba[_0x34012f]||(_0x14b0ba[_0x34012f]={'preventDefault':!0x1,'stopPropagation':!0x1,'run':(null===(_0x27335f=null===(_0x3825c7=_0x14b0ba['_any'])||void 0x0===_0x3825c7?void 0x0:_0x3825c7['run'])||void 0x0===_0x27335f?void 0x0:_0x27335f['slice']())||[]});_0x20dcf7&&_0x542519['run']['push'](_0x20dcf7),_0x19250a&&(_0x542519['preventDefault']=!0x0),_0x3eda62&&(_0x542519['stopPropagation']=!0x0);};for(let _0x199cb9 of _0x3678ee){let _0x16b079=_0x199cb9['scope']?_0x199cb9['scope']['split']('\x20'):['editor'];if(_0x199cb9['any'])for(let _0x225802 of _0x16b079){let _0x57cb91=_0x4a917d[_0x225802]||(_0x4a917d[_0x225802]=Object['create'](null));_0x57cb91['_any']||(_0x57cb91['_any']={'preventDefault':!0x1,'stopPropagation':!0x1,'run':[]});let {any:_0x374b16}=_0x199cb9;for(let _0x464a13 in _0x57cb91)_0x57cb91[_0x464a13]['run']['push'](_0x19eef3=>_0x374b16(_0x19eef3,currentKeyEvent));}let _0x5e23a5=_0x199cb9[_0x1b2bb7]||_0x199cb9['key'];if(_0x5e23a5){for(let _0x38b5c9 of _0x16b079)_0x25b223(_0x38b5c9,_0x5e23a5,_0x199cb9['run'],_0x199cb9['preventDefault'],_0x199cb9['stopPropagation']),_0x199cb9['shift']&&_0x25b223(_0x38b5c9,'Shift-'+_0x5e23a5,_0x199cb9['shift'],_0x199cb9['preventDefault'],_0x199cb9['stopPropagation']);}}return _0x4a917d;}let currentKeyEvent=null;function runHandlers(_0x514828,_0x56d18b,_0x4253d3,_0x41e390){currentKeyEvent=_0x56d18b;let _0x410b5a=keyName(_0x56d18b),_0x3e92e5=codePointSize(codePointAt(_0x410b5a,0x0))==_0x410b5a['length']&&'\x20'!=_0x410b5a,_0x3aaed4='',_0x51cce2=!0x1,_0x43333a=!0x1,_0x561ec3=!0x1;storedPrefix&&storedPrefix['view']==_0x4253d3&&storedPrefix['scope']==_0x41e390&&(_0x3aaed4=storedPrefix['prefix']+'\x20',modifierCodes['indexOf'](_0x56d18b['keyCode'])<0x0&&(_0x43333a=!0x0,storedPrefix=null));let _0x3caf7e,_0x31f141,_0x5446bd=new Set(),_0x240e96=_0xeb0b18=>{if(_0xeb0b18){for(let _0x150388 of _0xeb0b18['run'])if(!_0x5446bd['has'](_0x150388)&&(_0x5446bd['add'](_0x150388),_0x150388(_0x4253d3)))return _0xeb0b18['stopPropagation']&&(_0x561ec3=!0x0),!0x0;_0xeb0b18['preventDefault']&&(_0xeb0b18['stopPropagation']&&(_0x561ec3=!0x0),_0x43333a=!0x0);}return!0x1;},_0x3cdde2=_0x514828[_0x41e390];return _0x3cdde2&&(_0x240e96(_0x3cdde2[_0x3aaed4+modifiers(_0x410b5a,_0x56d18b,!_0x3e92e5)])?_0x51cce2=!0x0:!_0x3e92e5||!(_0x56d18b['altKey']||_0x56d18b['metaKey']||_0x56d18b['ctrlKey'])||browser['windows']&&_0x56d18b['ctrlKey']&&_0x56d18b['altKey']||browser['mac']&&_0x56d18b['altKey']&&!_0x56d18b['ctrlKey']&&!_0x56d18b['metaKey']||!(_0x3caf7e=base$2[_0x56d18b['keyCode']])||_0x3caf7e==_0x410b5a?_0x3e92e5&&_0x56d18b['shiftKey']&&_0x240e96(_0x3cdde2[_0x3aaed4+modifiers(_0x410b5a,_0x56d18b,!0x0)])&&(_0x51cce2=!0x0):(_0x240e96(_0x3cdde2[_0x3aaed4+modifiers(_0x3caf7e,_0x56d18b,!0x0)])||_0x56d18b['shiftKey']&&(_0x31f141=shift[_0x56d18b['keyCode']])!=_0x410b5a&&_0x31f141!=_0x3caf7e&&_0x240e96(_0x3cdde2[_0x3aaed4+modifiers(_0x31f141,_0x56d18b,!0x1)]))&&(_0x51cce2=!0x0),!_0x51cce2&&_0x240e96(_0x3cdde2['_any'])&&(_0x51cce2=!0x0)),_0x43333a&&(_0x51cce2=!0x0),_0x51cce2&&_0x561ec3&&_0x56d18b['stopPropagation'](),currentKeyEvent=null,_0x51cce2;}class RectangleMarker{constructor(_0x4692a9,_0x366588,_0x59a8cb,_0x564e3a,_0x55d127){this['className']=_0x4692a9,this['left']=_0x366588,this['top']=_0x59a8cb,this['width']=_0x564e3a,this['height']=_0x55d127;}['draw'](){let _0x4b8da=document['createElement']('div');return _0x4b8da['className']=this['className'],this['adjust'](_0x4b8da),_0x4b8da;}['update'](_0x541d11,_0x396343){return _0x396343['className']==this['className']&&(this['adjust'](_0x541d11),!0x0);}['adjust'](_0xae4258){_0xae4258['style']['left']=this['left']+'px',_0xae4258['style']['top']=this['top']+'px',null!=this['width']&&(_0xae4258['style']['width']=this['width']+'px'),_0xae4258['style']['height']=this['height']+'px';}['eq'](_0x5d6349){return this['left']==_0x5d6349['left']&&this['top']==_0x5d6349['top']&&this['width']==_0x5d6349['width']&&this['height']==_0x5d6349['height']&&this['className']==_0x5d6349['className'];}static['forRange'](_0x347205,_0x3c5087,_0x45e9f7){if(_0x45e9f7['empty']){let _0x568152=_0x347205['coordsAtPos'](_0x45e9f7['head'],_0x45e9f7['assoc']||0x1);if(!_0x568152)return[];let _0x1c2ea5=getBase(_0x347205);return[new RectangleMarker(_0x3c5087,_0x568152['left']-_0x1c2ea5['left'],_0x568152['top']-_0x1c2ea5['top'],null,_0x568152['bottom']-_0x568152['top'])];}return rectanglesForRange(_0x347205,_0x3c5087,_0x45e9f7);}}function getBase(_0x17f998){let _0x2df87a=_0x17f998['scrollDOM']['getBoundingClientRect']();return{'left':(_0x17f998['textDirection']==Direction['LTR']?_0x2df87a['left']:_0x2df87a['right']-_0x17f998['scrollDOM']['clientWidth']*_0x17f998['scaleX'])-_0x17f998['scrollDOM']['scrollLeft']*_0x17f998['scaleX'],'top':_0x2df87a['top']-_0x17f998['scrollDOM']['scrollTop']*_0x17f998['scaleY']};}function wrappedLine(_0xeb2f1f,_0x49b93d,_0x3a5f1c,_0x471a51){let _0x17f474=_0xeb2f1f['coordsAtPos'](_0x49b93d,0x2*_0x3a5f1c);if(!_0x17f474)return _0x471a51;let _0x4ba45a=_0xeb2f1f['dom']['getBoundingClientRect'](),_0x1e5488=(_0x17f474['top']+_0x17f474['bottom'])/0x2,_0x214c42=_0xeb2f1f['posAtCoords']({'x':_0x4ba45a['left']+0x1,'y':_0x1e5488}),_0x2a5797=_0xeb2f1f['posAtCoords']({'x':_0x4ba45a['right']-0x1,'y':_0x1e5488});return null==_0x214c42||null==_0x2a5797?_0x471a51:{'from':Math['max'](_0x471a51['from'],Math['min'](_0x214c42,_0x2a5797)),'to':Math['min'](_0x471a51['to'],Math['max'](_0x214c42,_0x2a5797))};}function rectanglesForRange(_0x4b4909,_0x561673,_0x3dfa9f){if(_0x3dfa9f['to']<=_0x4b4909['viewport']['from']||_0x3dfa9f['from']>=_0x4b4909['viewport']['to'])return[];let _0x46da21=Math['max'](_0x3dfa9f['from'],_0x4b4909['viewport']['from']),_0x3846d0=Math['min'](_0x3dfa9f['to'],_0x4b4909['viewport']['to']),_0x2a4fe7=_0x4b4909['textDirection']==Direction['LTR'],_0x194481=_0x4b4909['contentDOM'],_0x34a76e=_0x194481['getBoundingClientRect'](),_0x4a4fbb=getBase(_0x4b4909),_0x3d4ec7=_0x194481['querySelector']('.cm-line'),_0x45ff14=_0x3d4ec7&&window['getComputedStyle'](_0x3d4ec7),_0x5c4143=_0x34a76e['left']+(_0x45ff14?parseInt(_0x45ff14['paddingLeft'])+Math['min'](0x0,parseInt(_0x45ff14['textIndent'])):0x0),_0x234de8=_0x34a76e['right']-(_0x45ff14?parseInt(_0x45ff14['paddingRight']):0x0),_0x29567e=blockAt(_0x4b4909,_0x46da21,0x1),_0x4a7451=blockAt(_0x4b4909,_0x3846d0,-0x1),_0x50a537=_0x29567e['type']==BlockType['Text']?_0x29567e:null,_0xfc3f7c=_0x4a7451['type']==BlockType['Text']?_0x4a7451:null;if(_0x50a537&&(_0x4b4909['lineWrapping']||_0x29567e['widgetLineBreaks'])&&(_0x50a537=wrappedLine(_0x4b4909,_0x46da21,0x1,_0x50a537)),_0xfc3f7c&&(_0x4b4909['lineWrapping']||_0x4a7451['widgetLineBreaks'])&&(_0xfc3f7c=wrappedLine(_0x4b4909,_0x3846d0,-0x1,_0xfc3f7c)),_0x50a537&&_0xfc3f7c&&_0x50a537['from']==_0xfc3f7c['from']&&_0x50a537['to']==_0xfc3f7c['to'])return _0x226631(_0x2cbe65(_0x3dfa9f['from'],_0x3dfa9f['to'],_0x50a537));{let _0x2910db=_0x50a537?_0x2cbe65(_0x3dfa9f['from'],null,_0x50a537):_0x4fe791(_0x29567e,!0x1),_0x9cffa2=_0xfc3f7c?_0x2cbe65(null,_0x3dfa9f['to'],_0xfc3f7c):_0x4fe791(_0x4a7451,!0x0),_0x22d3df=[];return(_0x50a537||_0x29567e)['to']<(_0xfc3f7c||_0x4a7451)['from']-(_0x50a537&&_0xfc3f7c?0x1:0x0)||_0x29567e['widgetLineBreaks']>0x1&&_0x2910db['bottom']+_0x4b4909['defaultLineHeight']/0x2<_0x9cffa2['top']?_0x22d3df['push'](_0xd3dd06(_0x5c4143,_0x2910db['bottom'],_0x234de8,_0x9cffa2['top'])):_0x2910db['bottom']<_0x9cffa2['top']&&_0x4b4909['elementAtHeight']((_0x2910db['bottom']+_0x9cffa2['top'])/0x2)['type']==BlockType['Text']&&(_0x2910db['bottom']=_0x9cffa2['top']=(_0x2910db['bottom']+_0x9cffa2['top'])/0x2),_0x226631(_0x2910db)['concat'](_0x22d3df)['concat'](_0x226631(_0x9cffa2));}function _0xd3dd06(_0x364bde,_0x28cd16,_0x1d4960,_0x486b36){return new RectangleMarker(_0x561673,_0x364bde-_0x4a4fbb['left'],_0x28cd16-_0x4a4fbb['top'],_0x1d4960-_0x364bde,_0x486b36-_0x28cd16);}function _0x226631({top:_0x565784,bottom:_0x318634,horizontal:_0x4b99d0}){let _0x56b5c8=[];for(let _0x1e4576=0x0;_0x1e4576<_0x4b99d0['length'];_0x1e4576+=0x2)_0x56b5c8['push'](_0xd3dd06(_0x4b99d0[_0x1e4576],_0x565784,_0x4b99d0[_0x1e4576+0x1],_0x318634));return _0x56b5c8;}function _0x2cbe65(_0x33adf6,_0x312aaf,_0xcb7616){let _0x1c2a97=0x3b9aca00,_0x1d9fb4=-0x3b9aca00,_0x145656=[];function _0x3af35d(_0x43063e,_0x1c99e8,_0x309f4b,_0x5d5e32,_0x3b5aea){let _0x3ff2c7=_0x4b4909['coordsAtPos'](_0x43063e,_0x43063e==_0xcb7616['to']?-0x2:0x2),_0x3ae664=_0x4b4909['coordsAtPos'](_0x309f4b,_0x309f4b==_0xcb7616['from']?0x2:-0x2);_0x3ff2c7&&_0x3ae664&&(_0x1c2a97=Math['min'](_0x3ff2c7['top'],_0x3ae664['top'],_0x1c2a97),_0x1d9fb4=Math['max'](_0x3ff2c7['bottom'],_0x3ae664['bottom'],_0x1d9fb4),_0x3b5aea==Direction['LTR']?_0x145656['push'](_0x2a4fe7&&_0x1c99e8?_0x5c4143:_0x3ff2c7['left'],_0x2a4fe7&&_0x5d5e32?_0x234de8:_0x3ae664['right']):_0x145656['push'](!_0x2a4fe7&&_0x5d5e32?_0x5c4143:_0x3ae664['left'],!_0x2a4fe7&&_0x1c99e8?_0x234de8:_0x3ff2c7['right']));}let _0x504127=null!=_0x33adf6?_0x33adf6:_0xcb7616['from'],_0x49e63e=null!=_0x312aaf?_0x312aaf:_0xcb7616['to'];for(let _0x363a03 of _0x4b4909['visibleRanges'])if(_0x363a03['to']>_0x504127&&_0x363a03['from']<_0x49e63e)for(let _0x43e7c2=Math['max'](_0x363a03['from'],_0x504127),_0xad3da3=Math['min'](_0x363a03['to'],_0x49e63e);;){let _0x14a03a=_0x4b4909['state']['doc']['lineAt'](_0x43e7c2);for(let _0x5629fe of _0x4b4909['bidiSpans'](_0x14a03a)){let _0x4d2c68=_0x5629fe['from']+_0x14a03a['from'],_0x25ec61=_0x5629fe['to']+_0x14a03a['from'];if(_0x4d2c68>=_0xad3da3)break;_0x25ec61>_0x43e7c2&&_0x3af35d(Math['max'](_0x4d2c68,_0x43e7c2),null==_0x33adf6&&_0x4d2c68<=_0x504127,Math['min'](_0x25ec61,_0xad3da3),null==_0x312aaf&&_0x25ec61>=_0x49e63e,_0x5629fe['dir']);}if(_0x43e7c2=_0x14a03a['to']+0x1,_0x43e7c2>=_0xad3da3)break;}return 0x0==_0x145656['length']&&_0x3af35d(_0x504127,null==_0x33adf6,_0x49e63e,null==_0x312aaf,_0x4b4909['textDirection']),{'top':_0x1c2a97,'bottom':_0x1d9fb4,'horizontal':_0x145656};}function _0x4fe791(_0x1c2b01,_0x110a5b){let _0x5dfba7=_0x34a76e['top']+(_0x110a5b?_0x1c2b01['top']:_0x1c2b01['bottom']);return{'top':_0x5dfba7,'bottom':_0x5dfba7,'horizontal':[]};}}function sameMarker(_0x3ba697,_0x5a4a58){return _0x3ba697['constructor']==_0x5a4a58['constructor']&&_0x3ba697['eq'](_0x5a4a58);}class LayerView{constructor(_0x2a63f4,_0x3a1820){this['view']=_0x2a63f4,this['layer']=_0x3a1820,this['drawn']=[],this['scaleX']=0x1,this['scaleY']=0x1,this['measureReq']={'read':this['measure']['bind'](this),'write':this['draw']['bind'](this)},this['dom']=_0x2a63f4['scrollDOM']['appendChild'](document['createElement']('div')),this['dom']['classList']['add']('cm-layer'),_0x3a1820['above']&&this['dom']['classList']['add']('cm-layer-above'),_0x3a1820['class']&&this['dom']['classList']['add'](_0x3a1820['class']),this['scale'](),this['dom']['setAttribute']('aria-hidden','true'),this['setOrder'](_0x2a63f4['state']),_0x2a63f4['requestMeasure'](this['measureReq']),_0x3a1820['mount']&&_0x3a1820['mount'](this['dom'],_0x2a63f4);}['update'](_0x36d23e){_0x36d23e['startState']['facet'](layerOrder)!=_0x36d23e['state']['facet'](layerOrder)&&this['setOrder'](_0x36d23e['state']),(this['layer']['update'](_0x36d23e,this['dom'])||_0x36d23e['geometryChanged'])&&(this['scale'](),_0x36d23e['view']['requestMeasure'](this['measureReq']));}['docViewUpdate'](_0x2a2d05){!0x1!==this['layer']['updateOnDocViewUpdate']&&_0x2a2d05['requestMeasure'](this['measureReq']);}['setOrder'](_0x40573f){let _0x5c84e7=0x0,_0x24a80c=_0x40573f['facet'](layerOrder);for(;_0x5c84e7<_0x24a80c['length']&&_0x24a80c[_0x5c84e7]!=this['layer'];)_0x5c84e7++;this['dom']['style']['zIndex']=String((this['layer']['above']?0x96:-0x1)-_0x5c84e7);}['measure'](){return this['layer']['markers'](this['view']);}['scale'](){let {scaleX:_0x344760,scaleY:_0x52e63d}=this['view'];_0x344760==this['scaleX']&&_0x52e63d==this['scaleY']||(this['scaleX']=_0x344760,this['scaleY']=_0x52e63d,this['dom']['style']['transform']='scale('+0x1/_0x344760+',\x20'+0x1/_0x52e63d+')');}['draw'](_0x34c06e){if(_0x34c06e['length']!=this['drawn']['length']||_0x34c06e['some']((_0x36a839,_0x1149ba)=>!sameMarker(_0x36a839,this['drawn'][_0x1149ba]))){let _0x79b72e=this['dom']['firstChild'],_0x186188=0x0;for(let _0x11649a of _0x34c06e)_0x11649a['update']&&_0x79b72e&&_0x11649a['constructor']&&this['drawn'][_0x186188]['constructor']&&_0x11649a['update'](_0x79b72e,this['drawn'][_0x186188])?(_0x79b72e=_0x79b72e['nextSibling'],_0x186188++):this['dom']['insertBefore'](_0x11649a['draw'](),_0x79b72e);for(;_0x79b72e;){let _0x41f5c5=_0x79b72e['nextSibling'];_0x79b72e['remove'](),_0x79b72e=_0x41f5c5;}this['drawn']=_0x34c06e,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(_0x43e84f){return[ViewPlugin['define'](_0x335252=>new LayerView(_0x335252,_0x43e84f)),layerOrder['of'](_0x43e84f)];}const selectionConfig=Facet['define']({'combine':_0x19e521=>combineConfig(_0x19e521,{'cursorBlinkRate':0x4b0,'drawRangeCursor':!0x0},{'cursorBlinkRate':(_0x5c421f,_0x11dac1)=>Math['min'](_0x5c421f,_0x11dac1),'drawRangeCursor':(_0x90e4fb,_0x1fe0d0)=>_0x90e4fb||_0x1fe0d0})});function drawSelection(_0x1d1334={}){return[selectionConfig['of'](_0x1d1334),cursorLayer,selectionLayer,hideNativeSelection,nativeSelectionHidden['of'](!0x0)];}function configChanged(_0x503d9b){return _0x503d9b['startState']['facet'](selectionConfig)!=_0x503d9b['state']['facet'](selectionConfig);}const cursorLayer=layer({'above':!0x0,'markers'(_0x1d5882){let {state:_0x1687fd}=_0x1d5882,_0x410378=_0x1687fd['facet'](selectionConfig),_0x48be2d=[];for(let _0xceb163 of _0x1687fd['selection']['ranges']){let _0x1f1f68=_0xceb163==_0x1687fd['selection']['main'];if(_0xceb163['empty']||_0x410378['drawRangeCursor']){let _0x184498=_0x1f1f68?'cm-cursor\x20cm-cursor-primary':'cm-cursor\x20cm-cursor-secondary',_0x36fede=_0xceb163['empty']?_0xceb163:EditorSelection['cursor'](_0xceb163['head'],_0xceb163['head']>_0xceb163['anchor']?-0x1:0x1);for(let _0x48b6c1 of RectangleMarker['forRange'](_0x1d5882,_0x184498,_0x36fede))_0x48be2d['push'](_0x48b6c1);}}return _0x48be2d;},'update'(_0x111ba6,_0x4ed155){_0x111ba6['transactions']['some'](_0x54dad7=>_0x54dad7['selection'])&&(_0x4ed155['style']['animationName']='cm-blink'==_0x4ed155['style']['animationName']?'cm-blink2':'cm-blink');let _0x25e865=configChanged(_0x111ba6);return _0x25e865&&setBlinkRate(_0x111ba6['state'],_0x4ed155),_0x111ba6['docChanged']||_0x111ba6['selectionSet']||_0x25e865;},'mount'(_0x540854,_0x197256){setBlinkRate(_0x197256['state'],_0x540854);},'class':'cm-cursorLayer'});function setBlinkRate(_0x5756be,_0x132c9f){_0x132c9f['style']['animationDuration']=_0x5756be['facet'](selectionConfig)['cursorBlinkRate']+'ms';}const selectionLayer=layer({'above':!0x1,'markers':_0x2e9cad=>_0x2e9cad['state']['selection']['ranges']['map'](_0x7e026f=>_0x7e026f['empty']?[]:RectangleMarker['forRange'](_0x2e9cad,'cm-selectionBackground',_0x7e026f))['reduce']((_0x469492,_0x5d280b)=>_0x469492['concat'](_0x5d280b)),'update':(_0xf4ffaa,_0xa7d1b9)=>_0xf4ffaa['docChanged']||_0xf4ffaa['selectionSet']||_0xf4ffaa['viewportChanged']||configChanged(_0xf4ffaa),'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':(_0x88bdbb,_0x31c5e5)=>null==_0x88bdbb?null:_0x31c5e5['mapPos'](_0x88bdbb)}),dropCursorPos=StateField['define']({'create':()=>null,'update':(_0x4d5f1e,_0x57bf76)=>(null!=_0x4d5f1e&&(_0x4d5f1e=_0x57bf76['changes']['mapPos'](_0x4d5f1e)),_0x57bf76['effects']['reduce']((_0x2a3ee5,_0x294b3e)=>_0x294b3e['is'](setDropCursorPos)?_0x294b3e['value']:_0x2a3ee5,_0x4d5f1e))}),drawDropCursor=ViewPlugin['fromClass'](class{constructor(_0x277c34){this['view']=_0x277c34,this['cursor']=null,this['measureReq']={'read':this['readPos']['bind'](this),'write':this['drawCursor']['bind'](this)};}['update'](_0x5264b6){var _0x9194b1;let _0x1b3d08=_0x5264b6['state']['field'](dropCursorPos);null==_0x1b3d08?null!=this['cursor']&&(null===(_0x9194b1=this['cursor'])||void 0x0===_0x9194b1||_0x9194b1['remove'](),this['cursor']=null):(this['cursor']||(this['cursor']=this['view']['scrollDOM']['appendChild'](document['createElement']('div')),this['cursor']['className']='cm-dropCursor'),(_0x5264b6['startState']['field'](dropCursorPos)!=_0x1b3d08||_0x5264b6['docChanged']||_0x5264b6['geometryChanged'])&&this['view']['requestMeasure'](this['measureReq']));}['readPos'](){let {view:_0x4c0b65}=this,_0x4cb1e6=_0x4c0b65['state']['field'](dropCursorPos),_0xf2ab4=null!=_0x4cb1e6&&_0x4c0b65['coordsAtPos'](_0x4cb1e6);if(!_0xf2ab4)return null;let _0x501292=_0x4c0b65['scrollDOM']['getBoundingClientRect']();return{'left':_0xf2ab4['left']-_0x501292['left']+_0x4c0b65['scrollDOM']['scrollLeft']*_0x4c0b65['scaleX'],'top':_0xf2ab4['top']-_0x501292['top']+_0x4c0b65['scrollDOM']['scrollTop']*_0x4c0b65['scaleY'],'height':_0xf2ab4['bottom']-_0xf2ab4['top']};}['drawCursor'](_0x5a12c5){if(this['cursor']){let {scaleX:_0xfafa45,scaleY:_0x221bc5}=this['view'];_0x5a12c5?(this['cursor']['style']['left']=_0x5a12c5['left']/_0xfafa45+'px',this['cursor']['style']['top']=_0x5a12c5['top']/_0x221bc5+'px',this['cursor']['style']['height']=_0x5a12c5['height']/_0x221bc5+'px'):this['cursor']['style']['left']='-100000px';}}['destroy'](){this['cursor']&&this['cursor']['remove']();}['setDropPos'](_0x351fe6){this['view']['state']['field'](dropCursorPos)!=_0x351fe6&&this['view']['dispatch']({'effects':setDropCursorPos['of'](_0x351fe6)});}},{'eventObservers':{'dragover'(_0x346943){this['setDropPos'](this['view']['posAtCoords']({'x':_0x346943['clientX'],'y':_0x346943['clientY']}));},'dragleave'(_0x4d2c91){_0x4d2c91['target']!=this['view']['contentDOM']&&this['view']['contentDOM']['contains'](_0x4d2c91['relatedTarget'])||this['setDropPos'](null);},'dragend'(){this['setDropPos'](null);},'drop'(){this['setDropPos'](null);}}});function dropCursor(){return[dropCursorPos,drawDropCursor];}function iterMatches(_0x11f9b9,_0xcd3038,_0x2af777,_0x412974,_0x13c580){_0xcd3038['lastIndex']=0x0;for(let _0x573c7e,_0x150529=_0x11f9b9['iterRange'](_0x2af777,_0x412974),_0x40fbeb=_0x2af777;!_0x150529['next']()['done'];_0x40fbeb+=_0x150529['value']['length'])if(!_0x150529['lineBreak']){for(;_0x573c7e=_0xcd3038['exec'](_0x150529['value']);)_0x13c580(_0x40fbeb+_0x573c7e['index'],_0x573c7e);}}function matchRanges(_0x776dfb,_0x60627e){let _0x273b71=_0x776dfb['visibleRanges'];if(0x1==_0x273b71['length']&&_0x273b71[0x0]['from']==_0x776dfb['viewport']['from']&&_0x273b71[0x0]['to']==_0x776dfb['viewport']['to'])return _0x273b71;let _0x260a5b=[];for(let {from:_0x3573cc,to:_0x1d6b48}of _0x273b71)_0x3573cc=Math['max'](_0x776dfb['state']['doc']['lineAt'](_0x3573cc)['from'],_0x3573cc-_0x60627e),_0x1d6b48=Math['min'](_0x776dfb['state']['doc']['lineAt'](_0x1d6b48)['to'],_0x1d6b48+_0x60627e),_0x260a5b['length']&&_0x260a5b[_0x260a5b['length']-0x1]['to']>=_0x3573cc?_0x260a5b[_0x260a5b['length']-0x1]['to']=_0x1d6b48:_0x260a5b['push']({'from':_0x3573cc,'to':_0x1d6b48});return _0x260a5b;}class MatchDecorator{constructor(_0xf4c6cb){const {regexp:_0x2e5c06,decoration:_0x5414cc,decorate:_0x386e0c,boundary:_0xa8f5db,maxLength:_0x527e3d=0x3e8}=_0xf4c6cb;if(!_0x2e5c06['global'])throw new RangeError('The\x20regular\x20expression\x20given\x20to\x20MatchDecorator\x20should\x20have\x20its\x20\x27g\x27\x20flag\x20set');if(this['regexp']=_0x2e5c06,_0x386e0c)this['addMatch']=(_0x30cb14,_0x3499df,_0x1b4453,_0x41dd98)=>_0x386e0c(_0x41dd98,_0x1b4453,_0x1b4453+_0x30cb14[0x0]['length'],_0x30cb14,_0x3499df);else{if('function'==typeof _0x5414cc)this['addMatch']=(_0x44d2ca,_0x3b4d3d,_0xcf3e19,_0x2490e)=>{let _0x285a4a=_0x5414cc(_0x44d2ca,_0x3b4d3d,_0xcf3e19);_0x285a4a&&_0x2490e(_0xcf3e19,_0xcf3e19+_0x44d2ca[0x0]['length'],_0x285a4a);};else{if(!_0x5414cc)throw new RangeError('Either\x20\x27decorate\x27\x20or\x20\x27decoration\x27\x20should\x20be\x20provided\x20to\x20MatchDecorator');this['addMatch']=(_0x479b0b,_0x4beb35,_0x229f65,_0x3a09ca)=>_0x3a09ca(_0x229f65,_0x229f65+_0x479b0b[0x0]['length'],_0x5414cc);}}this['boundary']=_0xa8f5db,this['maxLength']=_0x527e3d;}['createDeco'](_0x125d65){let _0x3853b0=new RangeSetBuilder(),_0xbdf2c0=_0x3853b0['add']['bind'](_0x3853b0);for(let {from:_0x2d6a7e,to:_0xcdfbc3}of matchRanges(_0x125d65,this['maxLength']))iterMatches(_0x125d65['state']['doc'],this['regexp'],_0x2d6a7e,_0xcdfbc3,(_0x1da0e5,_0x347b3b)=>this['addMatch'](_0x347b3b,_0x125d65,_0x1da0e5,_0xbdf2c0));return _0x3853b0['finish']();}['updateDeco'](_0x1063e9,_0x149168){let _0x3463db=0x3b9aca00,_0x5e23c2=-0x1;return _0x1063e9['docChanged']&&_0x1063e9['changes']['iterChanges']((_0x2960ea,_0x67c504,_0x1c1318,_0x1200ea)=>{_0x1200ea>=_0x1063e9['view']['viewport']['from']&&_0x1c1318<=_0x1063e9['view']['viewport']['to']&&(_0x3463db=Math['min'](_0x1c1318,_0x3463db),_0x5e23c2=Math['max'](_0x1200ea,_0x5e23c2));}),_0x1063e9['viewportMoved']||_0x5e23c2-_0x3463db>0x3e8?this['createDeco'](_0x1063e9['view']):_0x5e23c2>-0x1?this['updateRange'](_0x1063e9['view'],_0x149168['map'](_0x1063e9['changes']),_0x3463db,_0x5e23c2):_0x149168;}['updateRange'](_0x58bf57,_0x560258,_0x1bc60d,_0xdb90e0){for(let _0x512291 of _0x58bf57['visibleRanges']){let _0x9d397c=Math['max'](_0x512291['from'],_0x1bc60d),_0x39a3ac=Math['min'](_0x512291['to'],_0xdb90e0);if(_0x39a3ac>=_0x9d397c){let _0x2642ec=_0x58bf57['state']['doc']['lineAt'](_0x9d397c),_0x5e192f=_0x2642ec['to']<_0x39a3ac?_0x58bf57['state']['doc']['lineAt'](_0x39a3ac):_0x2642ec,_0x1e1369=Math['max'](_0x512291['from'],_0x2642ec['from']),_0x1433f2=Math['min'](_0x512291['to'],_0x5e192f['to']);if(this['boundary']){for(;_0x9d397c>_0x2642ec['from'];_0x9d397c--)if(this['boundary']['test'](_0x2642ec['text'][_0x9d397c-0x1-_0x2642ec['from']])){_0x1e1369=_0x9d397c;break;}for(;_0x39a3ac<_0x5e192f['to'];_0x39a3ac++)if(this['boundary']['test'](_0x5e192f['text'][_0x39a3ac-_0x5e192f['from']])){_0x1433f2=_0x39a3ac;break;}}let _0x2e99d3,_0x1175c2=[],_0x560749=(_0x421025,_0x2f6f10,_0x135c60)=>_0x1175c2['push'](_0x135c60['range'](_0x421025,_0x2f6f10));if(_0x2642ec==_0x5e192f){for(this['regexp']['lastIndex']=_0x1e1369-_0x2642ec['from'];(_0x2e99d3=this['regexp']['exec'](_0x2642ec['text']))&&_0x2e99d3['index']<_0x1433f2-_0x2642ec['from'];)this['addMatch'](_0x2e99d3,_0x58bf57,_0x2e99d3['index']+_0x2642ec['from'],_0x560749);}else iterMatches(_0x58bf57['state']['doc'],this['regexp'],_0x1e1369,_0x1433f2,(_0x5dbd5e,_0x353de5)=>this['addMatch'](_0x353de5,_0x58bf57,_0x5dbd5e,_0x560749));_0x560258=_0x560258['update']({'filterFrom':_0x1e1369,'filterTo':_0x1433f2,'filter':(_0x4d5bf6,_0x5890cb)=>_0x4d5bf6<_0x1e1369||_0x5890cb>_0x1433f2,'add':_0x1175c2});}}return _0x560258;}}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 _0x39c758;if(null==_supportsTabSize&&'undefined'!=typeof document&&document['body']){let _0x28b57f=document['body']['style'];_supportsTabSize=null!=(null!==(_0x39c758=_0x28b57f['tabSize'])&&void 0x0!==_0x39c758?_0x39c758:_0x28b57f['MozTabSize']);}return _supportsTabSize||!0x1;}const specialCharConfig=Facet['define']({'combine'(_0x17191d){let _0x5948d9=combineConfig(_0x17191d,{'render':null,'specialChars':Specials,'addSpecialChars':null});return(_0x5948d9['replaceTabs']=!supportsTabSize())&&(_0x5948d9['specialChars']=new RegExp('\x09|'+_0x5948d9['specialChars']['source'],UnicodeRegexpSupport)),_0x5948d9['addSpecialChars']&&(_0x5948d9['specialChars']=new RegExp(_0x5948d9['specialChars']['source']+'|'+_0x5948d9['addSpecialChars']['source'],UnicodeRegexpSupport)),_0x5948d9;}});function highlightSpecialChars(_0x28323d={}){return[specialCharConfig['of'](_0x28323d),specialCharPlugin()];}let _plugin=null;function specialCharPlugin(){return _plugin||(_plugin=ViewPlugin['fromClass'](class{constructor(_0x4a47eb){this['view']=_0x4a47eb,this['decorations']=Decoration['none'],this['decorationCache']=Object['create'](null),this['decorator']=this['makeDecorator'](_0x4a47eb['state']['facet'](specialCharConfig)),this['decorations']=this['decorator']['createDeco'](_0x4a47eb);}['makeDecorator'](_0x13be94){return new MatchDecorator({'regexp':_0x13be94['specialChars'],'decoration':(_0x48077e,_0x5efb64,_0x22dd1e)=>{let {doc:_0x2def3e}=_0x5efb64['state'],_0x1d1a39=codePointAt(_0x48077e[0x0],0x0);if(0x9==_0x1d1a39){let _0x1458d4=_0x2def3e['lineAt'](_0x22dd1e),_0x407000=_0x5efb64['state']['tabSize'],_0x2de181=countColumn(_0x1458d4['text'],_0x407000,_0x22dd1e-_0x1458d4['from']);return Decoration['replace']({'widget':new TabWidget((_0x407000-_0x2de181%_0x407000)*this['view']['defaultCharacterWidth']/this['view']['scaleX'])});}return this['decorationCache'][_0x1d1a39]||(this['decorationCache'][_0x1d1a39]=Decoration['replace']({'widget':new SpecialCharWidget(_0x13be94,_0x1d1a39)}));},'boundary':_0x13be94['replaceTabs']?void 0x0:/[^]/});}['update'](_0x1ef5b9){let _0x384df5=_0x1ef5b9['state']['facet'](specialCharConfig);_0x1ef5b9['startState']['facet'](specialCharConfig)!=_0x384df5?(this['decorator']=this['makeDecorator'](_0x384df5),this['decorations']=this['decorator']['createDeco'](_0x1ef5b9['view'])):this['decorations']=this['decorator']['updateDeco'](_0x1ef5b9,this['decorations']);}},{'decorations':_0x5c7ad0=>_0x5c7ad0['decorations']}));}const DefaultPlaceholder='•';function placeholder$1(_0x87f6a){return _0x87f6a>=0x20?DefaultPlaceholder:0xa==_0x87f6a?'␤':String['fromCharCode'](0x2400+_0x87f6a);}class SpecialCharWidget extends WidgetType{constructor(_0x2422f5,_0x37c5df){super(),this['options']=_0x2422f5,this['code']=_0x37c5df;}['eq'](_0xf46746){return _0xf46746['code']==this['code'];}['toDOM'](_0x15b699){let _0x2823c3=placeholder$1(this['code']),_0x38cbd4=_0x15b699['state']['phrase']('Control\x20character')+'\x20'+(Names[this['code']]||'0x'+this['code']['toString'](0x10)),_0xf4bfa3=this['options']['render']&&this['options']['render'](this['code'],_0x38cbd4,_0x2823c3);if(_0xf4bfa3)return _0xf4bfa3;let _0x2f402f=document['createElement']('span');return _0x2f402f['textContent']=_0x2823c3,_0x2f402f['title']=_0x38cbd4,_0x2f402f['setAttribute']('aria-label',_0x38cbd4),_0x2f402f['className']='cm-specialChar',_0x2f402f;}['ignoreEvent'](){return!0x1;}}class TabWidget extends WidgetType{constructor(_0x13caec){super(),this['width']=_0x13caec;}['eq'](_0x12858e){return _0x12858e['width']==this['width'];}['toDOM'](){let _0x2f9785=document['createElement']('span');return _0x2f9785['textContent']='\x09',_0x2f9785['className']='cm-tab',_0x2f9785['style']['width']=this['width']+'px',_0x2f9785;}['ignoreEvent'](){return!0x1;}}function highlightActiveLine(){return activeLineHighlighter;}const lineDeco=Decoration['line']({'class':'cm-activeLine'}),activeLineHighlighter=ViewPlugin['fromClass'](class{constructor(_0xb90f81){this['decorations']=this['getDeco'](_0xb90f81);}['update'](_0x428df2){(_0x428df2['docChanged']||_0x428df2['selectionSet'])&&(this['decorations']=this['getDeco'](_0x428df2['view']));}['getDeco'](_0x5a85e6){let _0x259296=-0x1,_0xb553b8=[];for(let _0x22f6db of _0x5a85e6['state']['selection']['ranges']){let _0x3ff255=_0x5a85e6['lineBlockAt'](_0x22f6db['head']);_0x3ff255['from']>_0x259296&&(_0xb553b8['push'](lineDeco['range'](_0x3ff255['from'])),_0x259296=_0x3ff255['from']);}return Decoration['set'](_0xb553b8);}},{'decorations':_0xe480bc=>_0xe480bc['decorations']}),MaxOff=0x7d0;function rectangleFor(_0x2bc342,_0x2dd0ff,_0x409660){let _0x3cea3e=Math['min'](_0x2dd0ff['line'],_0x409660['line']),_0x7b14ad=Math['max'](_0x2dd0ff['line'],_0x409660['line']),_0x1c4e90=[];if(_0x2dd0ff['off']>MaxOff||_0x409660['off']>MaxOff||_0x2dd0ff['col']<0x0||_0x409660['col']<0x0){let _0x19b002=Math['min'](_0x2dd0ff['off'],_0x409660['off']),_0xe30c2a=Math['max'](_0x2dd0ff['off'],_0x409660['off']);for(let _0x4c057f=_0x3cea3e;_0x4c057f<=_0x7b14ad;_0x4c057f++){let _0x3ace4e=_0x2bc342['doc']['line'](_0x4c057f);_0x3ace4e['length']<=_0xe30c2a&&_0x1c4e90['push'](EditorSelection['range'](_0x3ace4e['from']+_0x19b002,_0x3ace4e['to']+_0xe30c2a));}}else{let _0x5b2699=Math['min'](_0x2dd0ff['col'],_0x409660['col']),_0x3f36ba=Math['max'](_0x2dd0ff['col'],_0x409660['col']);for(let _0x2a7d2c=_0x3cea3e;_0x2a7d2c<=_0x7b14ad;_0x2a7d2c++){let _0x2aef35=_0x2bc342['doc']['line'](_0x2a7d2c),_0x5eb080=findColumn(_0x2aef35['text'],_0x5b2699,_0x2bc342['tabSize'],!0x0);if(_0x5eb080<0x0)_0x1c4e90['push'](EditorSelection['cursor'](_0x2aef35['to']));else{let _0x44ac42=findColumn(_0x2aef35['text'],_0x3f36ba,_0x2bc342['tabSize']);_0x1c4e90['push'](EditorSelection['range'](_0x2aef35['from']+_0x5eb080,_0x2aef35['from']+_0x44ac42));}}}return _0x1c4e90;}function absoluteColumn(_0x1574cb,_0x4b28fd){let _0x2876ae=_0x1574cb['coordsAtPos'](_0x1574cb['viewport']['from']);return _0x2876ae?Math['round'](Math['abs']((_0x2876ae['left']-_0x4b28fd)/_0x1574cb['defaultCharacterWidth'])):-0x1;}function getPos(_0x4e21cb,_0x39b8a4){let _0x5535a5=_0x4e21cb['posAtCoords']({'x':_0x39b8a4['clientX'],'y':_0x39b8a4['clientY']},!0x1),_0x2174db=_0x4e21cb['state']['doc']['lineAt'](_0x5535a5),_0x4695ec=_0x5535a5-_0x2174db['from'],_0x34624d=_0x4695ec>MaxOff?-0x1:_0x4695ec==_0x2174db['length']?absoluteColumn(_0x4e21cb,_0x39b8a4['clientX']):countColumn(_0x2174db['text'],_0x4e21cb['state']['tabSize'],_0x5535a5-_0x2174db['from']);return{'line':_0x2174db['number'],'col':_0x34624d,'off':_0x4695ec};}function rectangleSelectionStyle(_0x3e2b53,_0x38b9ad){let _0x1befc3=getPos(_0x3e2b53,_0x38b9ad),_0x4ac227=_0x3e2b53['state']['selection'];return _0x1befc3?{'update'(_0x5a6b81){if(_0x5a6b81['docChanged']){let _0x2ed475=_0x5a6b81['changes']['mapPos'](_0x5a6b81['startState']['doc']['line'](_0x1befc3['line'])['from']),_0xa8f4c6=_0x5a6b81['state']['doc']['lineAt'](_0x2ed475);_0x1befc3={'line':_0xa8f4c6['number'],'col':_0x1befc3['col'],'off':Math['min'](_0x1befc3['off'],_0xa8f4c6['length'])},_0x4ac227=_0x4ac227['map'](_0x5a6b81['changes']);}},'get'(_0x253301,_0xf682a4,_0x44c0a6){let _0x579fb9=getPos(_0x3e2b53,_0x253301);if(!_0x579fb9)return _0x4ac227;let _0x4ffbc6=rectangleFor(_0x3e2b53['state'],_0x1befc3,_0x579fb9);return _0x4ffbc6['length']?_0x44c0a6?EditorSelection['create'](_0x4ffbc6['concat'](_0x4ac227['ranges'])):EditorSelection['create'](_0x4ffbc6):_0x4ac227;}}:null;}function rectangularSelection(_0x5b0c89){return EditorView['mouseSelectionStyle']['of']((_0x686082,_0x20a158)=>{return(_0x563d03=_0x20a158)['altKey']&&0x0==_0x563d03['button']?rectangleSelectionStyle(_0x686082,_0x20a158):null;var _0x563d03;});}const keys={'Alt':[0x12,_0x332497=>!!_0x332497['altKey']],'Control':[0x11,_0x2b8627=>!!_0x2b8627['ctrlKey']],'Shift':[0x10,_0x512ea6=>!!_0x512ea6['shiftKey']],'Meta':[0x5b,_0x10be87=>!!_0x10be87['metaKey']]},showCrosshair={'style':'cursor:\x20crosshair'};function crosshairCursor(_0x545519={}){let [_0x59e80e,_0x257c9a]=keys[_0x545519['key']||'Alt'],_0x47f0b8=ViewPlugin['fromClass'](class{constructor(_0x4d819f){this['view']=_0x4d819f,this['isDown']=!0x1;}['set'](_0x482005){this['isDown']!=_0x482005&&(this['isDown']=_0x482005,this['view']['update']([]));}},{'eventObservers':{'keydown'(_0x2fadd0){this['set'](_0x2fadd0['keyCode']==_0x59e80e||_0x257c9a(_0x2fadd0));},'keyup'(_0x3d5a32){_0x3d5a32['keyCode']!=_0x59e80e&&_0x257c9a(_0x3d5a32)||this['set'](!0x1);},'mousemove'(_0x4a2c7c){this['set'](_0x257c9a(_0x4a2c7c));}}});return[_0x47f0b8,EditorView['contentAttributes']['of'](_0x5d6f3a=>{var _0x42e844;return(null===(_0x42e844=_0x5d6f3a['plugin'](_0x47f0b8))||void 0x0===_0x42e844?void 0x0:_0x42e844['isDown'])?showCrosshair:null;})];}const Outside='-10000px';class TooltipViewManager{constructor(_0x3e10a2,_0x14479e,_0x51bc6a,_0x2fe7cd){this['facet']=_0x14479e,this['createTooltipView']=_0x51bc6a,this['removeTooltipView']=_0x2fe7cd,this['input']=_0x3e10a2['state']['facet'](_0x14479e),this['tooltips']=this['input']['filter'](t=>t);let _0x39afef=null;this['tooltipViews']=this['tooltips']['map'](t=>_0x39afef=_0x51bc6a(t,_0x39afef));}['update'](_0x1aa360,_0x187d8d){var _0xe836bb;let _0x3dacf6=_0x1aa360['state']['facet'](this['facet']),_0x5b3762=_0x3dacf6['filter'](_0x5bdf0e=>_0x5bdf0e);if(_0x3dacf6===this['input']){for(let t of this['tooltipViews'])t['update']&&t['update'](_0x1aa360);return!0x1;}let _0x450855=[],_0x5a3fa7=_0x187d8d?[]:null;for(let _0x53d915=0x0;_0x53d915<_0x5b3762['length'];_0x53d915++){let _0x4f0a35=_0x5b3762[_0x53d915],_0x52cd57=-0x1;if(_0x4f0a35){for(let _0x1ec009=0x0;_0x1ec009<this['tooltips']['length'];_0x1ec009++){let _0x2df519=this['tooltips'][_0x1ec009];_0x2df519&&_0x2df519['create']==_0x4f0a35['create']&&(_0x52cd57=_0x1ec009);}if(_0x52cd57<0x0)_0x450855[_0x53d915]=this['createTooltipView'](_0x4f0a35,_0x53d915?_0x450855[_0x53d915-0x1]:null),_0x5a3fa7&&(_0x5a3fa7[_0x53d915]=!!_0x4f0a35['above']);else{let _0x331edf=_0x450855[_0x53d915]=this['tooltipViews'][_0x52cd57];_0x5a3fa7&&(_0x5a3fa7[_0x53d915]=_0x187d8d[_0x52cd57]),_0x331edf['update']&&_0x331edf['update'](_0x1aa360);}}}for(let t of this['tooltipViews'])_0x450855['indexOf'](t)<0x0&&(this['removeTooltipView'](t),null===(_0xe836bb=t['destroy'])||void 0x0===_0xe836bb||_0xe836bb['call'](t));return _0x187d8d&&(_0x5a3fa7['forEach']((_0x5390fc,_0x137269)=>_0x187d8d[_0x137269]=_0x5390fc),_0x187d8d['length']=_0x5a3fa7['length']),this['input']=_0x3dacf6,this['tooltips']=_0x5b3762,this['tooltipViews']=_0x450855,!0x0;}}function windowSpace(_0x594253){let _0x2ae30b=_0x594253['dom']['ownerDocument']['documentElement'];return{'top':0x0,'left':0x0,'bottom':_0x2ae30b['clientHeight'],'right':_0x2ae30b['clientWidth']};}const tooltipConfig=Facet['define']({'combine':_0x1fbcf1=>{var _0x264e4d,_0x190261,_0x23b82a;return{'position':browser['ios']?'absolute':(null===(_0x264e4d=_0x1fbcf1['find'](_0x44dd76=>_0x44dd76['position']))||void 0x0===_0x264e4d?void 0x0:_0x264e4d['position'])||'fixed','parent':(null===(_0x190261=_0x1fbcf1['find'](_0x51dccc=>_0x51dccc['parent']))||void 0x0===_0x190261?void 0x0:_0x190261['parent'])||null,'tooltipSpace':(null===(_0x23b82a=_0x1fbcf1['find'](_0x5c5a87=>_0x5c5a87['tooltipSpace']))||void 0x0===_0x23b82a?void 0x0:_0x23b82a['tooltipSpace'])||windowSpace};}}),knownHeight=new WeakMap(),tooltipPlugin=ViewPlugin['fromClass'](class{constructor(_0x20cc1f){this['view']=_0x20cc1f,this['above']=[],this['inView']=!0x0,this['madeAbsolute']=!0x1,this['lastTransaction']=0x0,this['measureTimeout']=-0x1;let _0x526780=_0x20cc1f['state']['facet'](tooltipConfig);this['position']=_0x526780['position'],this['parent']=_0x526780['parent'],this['classes']=_0x20cc1f['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(_0x20cc1f,showTooltip,(t,_0x98a729)=>this['createTooltip'](t,_0x98a729),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(_0x3b7869=>{Date['now']()>this['lastTransaction']-0x32&&_0x3b7869['length']>0x0&&_0x3b7869[_0x3b7869['length']-0x1]['intersectionRatio']<0x1&&this['measureSoon']();},{'threshold':[0x1]}):null,this['observeIntersection'](),_0x20cc1f['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 _0x37f37d of this['manager']['tooltipViews'])this['intersectionObserver']['observe'](_0x37f37d['dom']);}}['measureSoon'](){this['measureTimeout']<0x0&&(this['measureTimeout']=setTimeout(()=>{this['measureTimeout']=-0x1,this['maybeMeasure']();},0x32));}['update'](_0x19016d){_0x19016d['transactions']['length']&&(this['lastTransaction']=Date['now']());let _0x241a04=this['manager']['update'](_0x19016d,this['above']);_0x241a04&&this['observeIntersection']();let _0x16fb5c=_0x241a04||_0x19016d['geometryChanged'],_0xdbf062=_0x19016d['state']['facet'](tooltipConfig);if(_0xdbf062['position']!=this['position']&&!this['madeAbsolute']){this['position']=_0xdbf062['position'];for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']=this['position'];_0x16fb5c=!0x0;}if(_0xdbf062['parent']!=this['parent']){this['parent']&&this['container']['remove'](),this['parent']=_0xdbf062['parent'],this['createContainer']();for(let t of this['manager']['tooltipViews'])this['container']['appendChild'](t['dom']);_0x16fb5c=!0x0;}else this['parent']&&this['view']['themeClasses']!=this['classes']&&(this['classes']=this['container']['className']=this['view']['themeClasses']);_0x16fb5c&&this['maybeMeasure']();}['createTooltip'](_0x50ac8c,_0x491c18){let _0x37ff31=_0x50ac8c['create'](this['view']),_0x14a701=_0x491c18?_0x491c18['dom']:null;if(_0x37ff31['dom']['classList']['add']('cm-tooltip'),_0x50ac8c['arrow']&&!_0x37ff31['dom']['querySelector']('.cm-tooltip\x20>\x20.cm-tooltip-arrow')){let _0x3ef3cd=document['createElement']('div');_0x3ef3cd['className']='cm-tooltip-arrow',_0x37ff31['dom']['appendChild'](_0x3ef3cd);}return _0x37ff31['dom']['style']['position']=this['position'],_0x37ff31['dom']['style']['top']=Outside,_0x37ff31['dom']['style']['left']='0px',this['container']['insertBefore'](_0x37ff31['dom'],_0x14a701),_0x37ff31['mount']&&_0x37ff31['mount'](this['view']),this['resizeObserver']&&this['resizeObserver']['observe'](_0x37ff31['dom']),_0x37ff31;}['destroy'](){var _0xd33a3c,_0x47b4,_0x1f4f3c;this['view']['win']['removeEventListener']('resize',this['measureSoon']);for(let _0x4a31ac of this['manager']['tooltipViews'])_0x4a31ac['dom']['remove'](),null===(_0xd33a3c=_0x4a31ac['destroy'])||void 0x0===_0xd33a3c||_0xd33a3c['call'](_0x4a31ac);this['parent']&&this['container']['remove'](),null===(_0x47b4=this['resizeObserver'])||void 0x0===_0x47b4||_0x47b4['disconnect'](),null===(_0x1f4f3c=this['intersectionObserver'])||void 0x0===_0x1f4f3c||_0x1f4f3c['disconnect'](),clearTimeout(this['measureTimeout']);}['readMeasure'](){let _0x31827b=0x1,_0xb1f4c1=0x1,_0x6bab13=!0x1;if('fixed'==this['position']&&this['manager']['tooltipViews']['length']){let {dom:_0x162ae0}=this['manager']['tooltipViews'][0x0];if(browser['gecko'])_0x6bab13=_0x162ae0['offsetParent']!=this['container']['ownerDocument']['body'];else{if(_0x162ae0['style']['top']==Outside&&'0px'==_0x162ae0['style']['left']){let _0x2948f9=_0x162ae0['getBoundingClientRect']();_0x6bab13=Math['abs'](_0x2948f9['top']+0x2710)>0x1||Math['abs'](_0x2948f9['left'])>0x1;}}}if(_0x6bab13||'absolute'==this['position']){if(this['parent']){let _0x4d78cd=this['parent']['getBoundingClientRect']();_0x4d78cd['width']&&_0x4d78cd['height']&&(_0x31827b=_0x4d78cd['width']/this['parent']['offsetWidth'],_0xb1f4c1=_0x4d78cd['height']/this['parent']['offsetHeight']);}else({scaleX:_0x31827b,scaleY:_0xb1f4c1}=this['view']['viewState']);}let _0x468736=this['view']['scrollDOM']['getBoundingClientRect'](),_0xcef31f=getScrollMargins(this['view']);return{'visible':{'left':_0x468736['left']+_0xcef31f['left'],'top':_0x468736['top']+_0xcef31f['top'],'right':_0x468736['right']-_0xcef31f['right'],'bottom':_0x468736['bottom']-_0xcef31f['bottom']},'parent':this['parent']?this['container']['getBoundingClientRect']():this['view']['dom']['getBoundingClientRect'](),'pos':this['manager']['tooltips']['map']((t,_0x409a5e)=>{let _0x5e23fd=this['manager']['tooltipViews'][_0x409a5e];return _0x5e23fd['getCoords']?_0x5e23fd['getCoords'](t['pos']):this['view']['coordsAtPos'](t['pos']);}),'size':this['manager']['tooltipViews']['map'](({dom:_0x16a0e8})=>_0x16a0e8['getBoundingClientRect']()),'space':this['view']['state']['facet'](tooltipConfig)['tooltipSpace'](this['view']),'scaleX':_0x31827b,'scaleY':_0xb1f4c1,'makeAbsolute':_0x6bab13};}['writeMeasure'](_0x16f855){var _0x238932;if(_0x16f855['makeAbsolute']){this['madeAbsolute']=!0x0,this['position']='absolute';for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']='absolute';}let {visible:_0x3ac261,space:_0x3582dd,scaleX:_0x476f35,scaleY:_0xe80f48}=_0x16f855,_0x219fc1=[];for(let _0x11b84c=0x0;_0x11b84c<this['manager']['tooltips']['length'];_0x11b84c++){let _0x512b26=this['manager']['tooltips'][_0x11b84c],_0x5326d0=this['manager']['tooltipViews'][_0x11b84c],{dom:_0x25d80c}=_0x5326d0,_0x37fa0a=_0x16f855['pos'][_0x11b84c],_0x59132e=_0x16f855['size'][_0x11b84c];if(!_0x37fa0a||!0x1!==_0x512b26['clip']&&(_0x37fa0a['bottom']<=Math['max'](_0x3ac261['top'],_0x3582dd['top'])||_0x37fa0a['top']>=Math['min'](_0x3ac261['bottom'],_0x3582dd['bottom'])||_0x37fa0a['right']<Math['max'](_0x3ac261['left'],_0x3582dd['left'])-0.1||_0x37fa0a['left']>Math['min'](_0x3ac261['right'],_0x3582dd['right'])+0.1)){_0x25d80c['style']['top']=Outside;continue;}let _0x1c44f8=_0x512b26['arrow']?_0x5326d0['dom']['querySelector']('.cm-tooltip-arrow'):null,_0x433275=_0x1c44f8?0x7:0x0,_0x13db98=_0x59132e['right']-_0x59132e['left'],_0x52c953=null!==(_0x238932=knownHeight['get'](_0x5326d0))&&void 0x0!==_0x238932?_0x238932:_0x59132e['bottom']-_0x59132e['top'],_0x346a5f=_0x5326d0['offset']||noOffset,_0x57f58f=this['view']['textDirection']==Direction['LTR'],_0x2bd5fe=_0x59132e['width']>_0x3582dd['right']-_0x3582dd['left']?_0x57f58f?_0x3582dd['left']:_0x3582dd['right']-_0x59132e['width']:_0x57f58f?Math['max'](_0x3582dd['left'],Math['min'](_0x37fa0a['left']-(_0x1c44f8?0xe:0x0)+_0x346a5f['x'],_0x3582dd['right']-_0x13db98)):Math['min'](Math['max'](_0x3582dd['left'],_0x37fa0a['left']-_0x13db98+(_0x1c44f8?0xe:0x0)-_0x346a5f['x']),_0x3582dd['right']-_0x13db98),_0x566784=this['above'][_0x11b84c];!_0x512b26['strictSide']&&(_0x566784?_0x37fa0a['top']-_0x52c953-_0x433275-_0x346a5f['y']<_0x3582dd['top']:_0x37fa0a['bottom']+_0x52c953+_0x433275+_0x346a5f['y']>_0x3582dd['bottom'])&&_0x566784==_0x3582dd['bottom']-_0x37fa0a['bottom']>_0x37fa0a['top']-_0x3582dd['top']&&(_0x566784=this['above'][_0x11b84c]=!_0x566784);let _0x13b8ad=(_0x566784?_0x37fa0a['top']-_0x3582dd['top']:_0x3582dd['bottom']-_0x37fa0a['bottom'])-_0x433275;if(_0x13b8ad<_0x52c953&&!0x1!==_0x5326d0['resize']){if(_0x13b8ad<this['view']['defaultLineHeight']){_0x25d80c['style']['top']=Outside;continue;}knownHeight['set'](_0x5326d0,_0x52c953),_0x25d80c['style']['height']=(_0x52c953=_0x13b8ad)/_0xe80f48+'px';}else _0x25d80c['style']['height']&&(_0x25d80c['style']['height']='');let _0x4f02e3=_0x566784?_0x37fa0a['top']-_0x52c953-_0x433275-_0x346a5f['y']:_0x37fa0a['bottom']+_0x433275+_0x346a5f['y'],_0x3144a4=_0x2bd5fe+_0x13db98;if(!0x0!==_0x5326d0['overlap']){for(let _0x349f99 of _0x219fc1)_0x349f99['left']<_0x3144a4&&_0x349f99['right']>_0x2bd5fe&&_0x349f99['top']<_0x4f02e3+_0x52c953&&_0x349f99['bottom']>_0x4f02e3&&(_0x4f02e3=_0x566784?_0x349f99['top']-_0x52c953-0x2-_0x433275:_0x349f99['bottom']+_0x433275+0x2);}if('absolute'==this['position']?(_0x25d80c['style']['top']=(_0x4f02e3-_0x16f855['parent']['top'])/_0xe80f48+'px',setLeftStyle(_0x25d80c,(_0x2bd5fe-_0x16f855['parent']['left'])/_0x476f35)):(_0x25d80c['style']['top']=_0x4f02e3/_0xe80f48+'px',setLeftStyle(_0x25d80c,_0x2bd5fe/_0x476f35)),_0x1c44f8){let _0x1b7181=_0x37fa0a['left']+(_0x57f58f?_0x346a5f['x']:-_0x346a5f['x'])-(_0x2bd5fe+0xe-0x7);_0x1c44f8['style']['left']=_0x1b7181/_0x476f35+'px';}!0x0!==_0x5326d0['overlap']&&_0x219fc1['push']({'left':_0x2bd5fe,'top':_0x4f02e3,'right':_0x3144a4,'bottom':_0x4f02e3+_0x52c953}),_0x25d80c['classList']['toggle']('cm-tooltip-above',_0x566784),_0x25d80c['classList']['toggle']('cm-tooltip-below',!_0x566784),_0x5326d0['positioned']&&_0x5326d0['positioned'](_0x16f855['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 _0x2b9ca9 of this['manager']['tooltipViews'])_0x2b9ca9['dom']['style']['top']=Outside;}}},{'eventObservers':{'scroll'(){this['maybeMeasure']();}}});function setLeftStyle(_0x3f3edd,_0x25e3c1){let _0x3a4a9e=parseInt(_0x3f3edd['style']['left'],0xa);(isNaN(_0x3a4a9e)||Math['abs'](_0x25e3c1-_0x3a4a9e)>0x1)&&(_0x3f3edd['style']['left']=_0x25e3c1+'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(_0x3fad87,_0x5dc316){let _0x249bbc=_0x3fad87['plugin'](tooltipPlugin);if(!_0x249bbc)return null;let _0x5cb23c=_0x249bbc['manager']['tooltips']['indexOf'](_0x5dc316);return _0x5cb23c<0x0?null:_0x249bbc['manager']['tooltipViews'][_0x5cb23c];}class GutterMarker extends RangeValue{['compare'](_0x537cbd){return this==_0x537cbd||this['constructor']==_0x537cbd['constructor']&&this['eq'](_0x537cbd);}['eq'](_0x33f0bd){return!0x1;}['destroy'](_0x243ade){}}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(_0x36aabe){return[gutters(),activeGutters['of']({...defaults$1,..._0x36aabe})];}const unfixGutters=Facet['define']({'combine':_0x45ec07=>_0x45ec07['some'](_0xf1e8c7=>_0xf1e8c7)});function gutters(_0x4819d8){return[gutterView];}const gutterView=ViewPlugin['fromClass'](class{constructor(_0x10d5b3){this['view']=_0x10d5b3,this['domAfter']=null,this['prevViewport']=_0x10d5b3['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']=_0x10d5b3['state']['facet'](activeGutters)['map'](_0x12fb1e=>new SingleGutterView(_0x10d5b3,_0x12fb1e)),this['fixed']=!_0x10d5b3['state']['facet'](unfixGutters);for(let _0x15b82b of this['gutters'])'after'==_0x15b82b['config']['side']?this['getDOMAfter']()['appendChild'](_0x15b82b['dom']):this['dom']['appendChild'](_0x15b82b['dom']);this['fixed']&&(this['dom']['style']['position']='sticky'),this['syncGutters'](!0x1),_0x10d5b3['scrollDOM']['insertBefore'](this['dom'],_0x10d5b3['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'](_0x58cb8a){if(this['updateGutters'](_0x58cb8a)){let _0x493bac=this['prevViewport'],_0x3c3db0=_0x58cb8a['view']['viewport'],_0x5dfd85=Math['min'](_0x493bac['to'],_0x3c3db0['to'])-Math['max'](_0x493bac['from'],_0x3c3db0['from']);this['syncGutters'](_0x5dfd85<0.8*(_0x3c3db0['to']-_0x3c3db0['from']));}if(_0x58cb8a['geometryChanged']){let _0x4770a8=this['view']['contentHeight']/this['view']['scaleY']+'px';this['dom']['style']['minHeight']=_0x4770a8,this['domAfter']&&(this['domAfter']['style']['minHeight']=_0x4770a8);}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']=_0x58cb8a['view']['viewport'];}['syncGutters'](_0x14d9e5){let _0x16c2f1=this['dom']['nextSibling'];_0x14d9e5&&(this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']());let _0x46eb72=RangeSet['iter'](this['view']['state']['facet'](gutterLineClass),this['view']['viewport']['from']),_0x1c1e68=[],_0x575531=this['gutters']['map'](_0x3af053=>new UpdateContext(_0x3af053,this['view']['viewport'],-this['view']['documentPadding']['top']));for(let _0x31b69b of this['view']['viewportLineBlocks'])if(_0x1c1e68['length']&&(_0x1c1e68=[]),Array['isArray'](_0x31b69b['type'])){let _0x20b455=!0x0;for(let _0x454927 of _0x31b69b['type'])if(_0x454927['type']==BlockType['Text']&&_0x20b455){advanceCursor(_0x46eb72,_0x1c1e68,_0x454927['from']);for(let _0x53cfab of _0x575531)_0x53cfab['line'](this['view'],_0x454927,_0x1c1e68);_0x20b455=!0x1;}else{if(_0x454927['widget']){for(let _0x313cf3 of _0x575531)_0x313cf3['widget'](this['view'],_0x454927);}}}else{if(_0x31b69b['type']==BlockType['Text']){advanceCursor(_0x46eb72,_0x1c1e68,_0x31b69b['from']);for(let _0x12e59c of _0x575531)_0x12e59c['line'](this['view'],_0x31b69b,_0x1c1e68);}else{if(_0x31b69b['widget']){for(let _0xc2d50a of _0x575531)_0xc2d50a['widget'](this['view'],_0x31b69b);}}}for(let _0x452a24 of _0x575531)_0x452a24['finish']();_0x14d9e5&&(this['view']['scrollDOM']['insertBefore'](this['dom'],_0x16c2f1),this['domAfter']&&this['view']['scrollDOM']['appendChild'](this['domAfter']));}['updateGutters'](_0x3a15a8){let _0x22102d=_0x3a15a8['startState']['facet'](activeGutters),_0x39646a=_0x3a15a8['state']['facet'](activeGutters),_0x256d1d=_0x3a15a8['docChanged']||_0x3a15a8['heightChanged']||_0x3a15a8['viewportChanged']||!RangeSet['eq'](_0x3a15a8['startState']['facet'](gutterLineClass),_0x3a15a8['state']['facet'](gutterLineClass),_0x3a15a8['view']['viewport']['from'],_0x3a15a8['view']['viewport']['to']);if(_0x22102d==_0x39646a){for(let _0x4c9f89 of this['gutters'])_0x4c9f89['update'](_0x3a15a8)&&(_0x256d1d=!0x0);}else{_0x256d1d=!0x0;let _0x34f748=[];for(let _0x280950 of _0x39646a){let _0x4751c2=_0x22102d['indexOf'](_0x280950);_0x4751c2<0x0?_0x34f748['push'](new SingleGutterView(this['view'],_0x280950)):(this['gutters'][_0x4751c2]['update'](_0x3a15a8),_0x34f748['push'](this['gutters'][_0x4751c2]));}for(let _0x411236 of this['gutters'])_0x411236['dom']['remove'](),_0x34f748['indexOf'](_0x411236)<0x0&&_0x411236['destroy']();for(let _0x4b3611 of _0x34f748)'after'==_0x4b3611['config']['side']?this['getDOMAfter']()['appendChild'](_0x4b3611['dom']):this['dom']['appendChild'](_0x4b3611['dom']);this['gutters']=_0x34f748;}return _0x256d1d;}['destroy'](){for(let _0x3d71f9 of this['gutters'])_0x3d71f9['destroy']();this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']();}},{'provide':_0x3d9a1e=>EditorView['scrollMargins']['of'](_0x19388b=>{let _0x11d311=_0x19388b['plugin'](_0x3d9a1e);if(!_0x11d311||0x0==_0x11d311['gutters']['length']||!_0x11d311['fixed'])return null;let _0x3cd344=_0x11d311['dom']['offsetWidth']*_0x19388b['scaleX'],_0x521c2a=_0x11d311['domAfter']?_0x11d311['domAfter']['offsetWidth']*_0x19388b['scaleX']:0x0;return _0x19388b['textDirection']==Direction['LTR']?{'left':_0x3cd344,'right':_0x521c2a}:{'right':_0x3cd344,'left':_0x521c2a};})});function asArray$1(_0x4e404f){return Array['isArray'](_0x4e404f)?_0x4e404f:[_0x4e404f];}function advanceCursor(_0x985d91,_0x50fa17,_0x4c0d86){for(;_0x985d91['value']&&_0x985d91['from']<=_0x4c0d86;)_0x985d91['from']==_0x4c0d86&&_0x50fa17['push'](_0x985d91['value']),_0x985d91['next']();}class UpdateContext{constructor(_0x4c4a1a,_0x5dc9ec,_0x8e38d9){this['gutter']=_0x4c4a1a,this['height']=_0x8e38d9,this['i']=0x0,this['cursor']=RangeSet['iter'](_0x4c4a1a['markers'],_0x5dc9ec['from']);}['addElement'](_0x49d8cd,_0x2d6fad,_0x2ee0df){let {gutter:_0x38c70e}=this,_0x5ee1c2=(_0x2d6fad['top']-this['height'])/_0x49d8cd['scaleY'],_0x4a36c7=_0x2d6fad['height']/_0x49d8cd['scaleY'];if(this['i']==_0x38c70e['elements']['length']){let _0x1f4766=new GutterElement(_0x49d8cd,_0x4a36c7,_0x5ee1c2,_0x2ee0df);_0x38c70e['elements']['push'](_0x1f4766),_0x38c70e['dom']['appendChild'](_0x1f4766['dom']);}else _0x38c70e['elements'][this['i']]['update'](_0x49d8cd,_0x4a36c7,_0x5ee1c2,_0x2ee0df);this['height']=_0x2d6fad['bottom'],this['i']++;}['line'](_0x2ba1b5,_0x1ae210,_0x44b823){let _0x37a698=[];advanceCursor(this['cursor'],_0x37a698,_0x1ae210['from']),_0x44b823['length']&&(_0x37a698=_0x37a698['concat'](_0x44b823));let _0x32ae0a=this['gutter']['config']['lineMarker'](_0x2ba1b5,_0x1ae210,_0x37a698);_0x32ae0a&&_0x37a698['unshift'](_0x32ae0a);let _0x266d26=this['gutter'];(0x0!=_0x37a698['length']||_0x266d26['config']['renderEmptyElements'])&&this['addElement'](_0x2ba1b5,_0x1ae210,_0x37a698);}['widget'](_0x44fea7,_0x445759){let _0x45b547=this['gutter']['config']['widgetMarker'](_0x44fea7,_0x445759['widget'],_0x445759),_0x1e12d1=_0x45b547?[_0x45b547]:null;for(let _0x488c68 of _0x44fea7['state']['facet'](gutterWidgetClass)){let _0x4f89b8=_0x488c68(_0x44fea7,_0x445759['widget'],_0x445759);_0x4f89b8&&(_0x1e12d1||(_0x1e12d1=[]))['push'](_0x4f89b8);}_0x1e12d1&&this['addElement'](_0x44fea7,_0x445759,_0x1e12d1);}['finish'](){let _0x53742c=this['gutter'];for(;_0x53742c['elements']['length']>this['i'];){let _0x43b249=_0x53742c['elements']['pop']();_0x53742c['dom']['removeChild'](_0x43b249['dom']),_0x43b249['destroy']();}}}class SingleGutterView{constructor(_0x2f52ab,_0x399da9){this['view']=_0x2f52ab,this['config']=_0x399da9,this['elements']=[],this['spacer']=null,this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutter'+(this['config']['class']?'\x20'+this['config']['class']:'');for(let _0x3ec38d in _0x399da9['domEventHandlers'])this['dom']['addEventListener'](_0x3ec38d,_0x11f34c=>{let _0x4bc684,_0x38a0ce=_0x11f34c['target'];if(_0x38a0ce!=this['dom']&&this['dom']['contains'](_0x38a0ce)){for(;_0x38a0ce['parentNode']!=this['dom'];)_0x38a0ce=_0x38a0ce['parentNode'];let _0x2696d8=_0x38a0ce['getBoundingClientRect']();_0x4bc684=(_0x2696d8['top']+_0x2696d8['bottom'])/0x2;}else _0x4bc684=_0x11f34c['clientY'];let _0x2897fb=_0x2f52ab['lineBlockAtHeight'](_0x4bc684-_0x2f52ab['documentTop']);_0x399da9['domEventHandlers'][_0x3ec38d](_0x2f52ab,_0x2897fb,_0x11f34c)&&_0x11f34c['preventDefault']();});this['markers']=asArray$1(_0x399da9['markers'](_0x2f52ab)),_0x399da9['initialSpacer']&&(this['spacer']=new GutterElement(_0x2f52ab,0x0,0x0,[_0x399da9['initialSpacer'](_0x2f52ab)]),this['dom']['appendChild'](this['spacer']['dom']),this['spacer']['dom']['style']['cssText']+='visibility:\x20hidden;\x20pointer-events:\x20none');}['update'](_0x4dcabf){let _0x2a20f5=this['markers'];if(this['markers']=asArray$1(this['config']['markers'](_0x4dcabf['view'])),this['spacer']&&this['config']['updateSpacer']){let _0x31bd96=this['config']['updateSpacer'](this['spacer']['markers'][0x0],_0x4dcabf);_0x31bd96!=this['spacer']['markers'][0x0]&&this['spacer']['update'](_0x4dcabf['view'],0x0,0x0,[_0x31bd96]);}let _0x176920=_0x4dcabf['view']['viewport'];return!RangeSet['eq'](this['markers'],_0x2a20f5,_0x176920['from'],_0x176920['to'])||!!this['config']['lineMarkerChange']&&this['config']['lineMarkerChange'](_0x4dcabf);}['destroy'](){for(let _0x5b0bec of this['elements'])_0x5b0bec['destroy']();}}class GutterElement{constructor(_0x443a47,_0x11d722,_0x4bd48c,_0x16100f){this['height']=-0x1,this['above']=0x0,this['markers']=[],this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutterElement',this['update'](_0x443a47,_0x11d722,_0x4bd48c,_0x16100f);}['update'](_0x416f71,_0x393be7,_0x28cb79,_0x17a1ca){this['height']!=_0x393be7&&(this['height']=_0x393be7,this['dom']['style']['height']=_0x393be7+'px'),this['above']!=_0x28cb79&&(this['dom']['style']['marginTop']=(this['above']=_0x28cb79)?_0x28cb79+'px':''),sameMarkers(this['markers'],_0x17a1ca)||this['setMarkers'](_0x416f71,_0x17a1ca);}['setMarkers'](_0x55c5f1,_0x2d5e4f){let _0x431c75='cm-gutterElement',_0x31799a=this['dom']['firstChild'];for(let _0x35a29d=0x0,_0x441510=0x0;;){let _0x190342=_0x441510,_0xa92549=_0x35a29d<_0x2d5e4f['length']?_0x2d5e4f[_0x35a29d++]:null,_0x9b768f=!0x1;if(_0xa92549){let _0x312dac=_0xa92549['elementClass'];_0x312dac&&(_0x431c75+='\x20'+_0x312dac);for(let _0x473b10=_0x441510;_0x473b10<this['markers']['length'];_0x473b10++)if(this['markers'][_0x473b10]['compare'](_0xa92549)){_0x190342=_0x473b10,_0x9b768f=!0x0;break;}}else _0x190342=this['markers']['length'];for(;_0x441510<_0x190342;){let _0x15e5ff=this['markers'][_0x441510++];if(_0x15e5ff['toDOM']){_0x15e5ff['destroy'](_0x31799a);let _0x57a15e=_0x31799a['nextSibling'];_0x31799a['remove'](),_0x31799a=_0x57a15e;}}if(!_0xa92549)break;_0xa92549['toDOM']&&(_0x9b768f?_0x31799a=_0x31799a['nextSibling']:this['dom']['insertBefore'](_0xa92549['toDOM'](_0x55c5f1),_0x31799a)),_0x9b768f&&_0x441510++;}this['dom']['className']=_0x431c75,this['markers']=_0x2d5e4f;}['destroy'](){this['setMarkers'](null,[]);}}function sameMarkers(_0x5559c1,_0x33a4cb){if(_0x5559c1['length']!=_0x33a4cb['length'])return!0x1;for(let _0x1473ce=0x0;_0x1473ce<_0x5559c1['length'];_0x1473ce++)if(!_0x5559c1[_0x1473ce]['compare'](_0x33a4cb[_0x1473ce]))return!0x1;return!0x0;}const lineNumberMarkers=Facet['define'](),lineNumberWidgetMarker=Facet['define'](),lineNumberConfig=Facet['define']({'combine':_0x4b3309=>combineConfig(_0x4b3309,{'formatNumber':String,'domEventHandlers':{}},{'domEventHandlers'(_0x3710f1,_0x4f91a7){let _0x3125ae=Object['assign']({},_0x3710f1);for(let _0x20428d in _0x4f91a7){let _0x3516da=_0x3125ae[_0x20428d],_0x34955d=_0x4f91a7[_0x20428d];_0x3125ae[_0x20428d]=_0x3516da?(_0x526a9d,_0x43805e,_0x216190)=>_0x3516da(_0x526a9d,_0x43805e,_0x216190)||_0x34955d(_0x526a9d,_0x43805e,_0x216190):_0x34955d;}return _0x3125ae;}})});class NumberMarker extends GutterMarker{constructor(_0xcfda82){super(),this['number']=_0xcfda82;}['eq'](_0x2bf315){return this['number']==_0x2bf315['number'];}['toDOM'](){return document['createTextNode'](this['number']);}}function formatNumber(_0x3f69cd,_0x565aee){return _0x3f69cd['state']['facet'](lineNumberConfig)['formatNumber'](_0x565aee,_0x3f69cd['state']);}const lineNumberGutter=activeGutters['compute']([lineNumberConfig],_0x437cca=>({'class':'cm-lineNumbers','renderEmptyElements':!0x1,'markers':_0x526a46=>_0x526a46['state']['facet'](lineNumberMarkers),'lineMarker':(_0x2044e6,_0x2284ff,_0x5ccbe2)=>_0x5ccbe2['some'](_0x3ffd30=>_0x3ffd30['toDOM'])?null:new NumberMarker(formatNumber(_0x2044e6,_0x2044e6['state']['doc']['lineAt'](_0x2284ff['from'])['number'])),'widgetMarker':(_0x19352d,_0x298061,_0x1a787e)=>{for(let _0xa2efbe of _0x19352d['state']['facet'](lineNumberWidgetMarker)){let _0x1fc827=_0xa2efbe(_0x19352d,_0x298061,_0x1a787e);if(_0x1fc827)return _0x1fc827;}return null;},'lineMarkerChange':_0x2ab39a=>_0x2ab39a['startState']['facet'](lineNumberConfig)!=_0x2ab39a['state']['facet'](lineNumberConfig),'initialSpacer':_0x9d24c=>new NumberMarker(formatNumber(_0x9d24c,maxLineNumber(_0x9d24c['state']['doc']['lines']))),'updateSpacer'(_0x1743a0,_0x22a251){let _0x35b143=formatNumber(_0x22a251['view'],maxLineNumber(_0x22a251['view']['state']['doc']['lines']));return _0x35b143==_0x1743a0['number']?_0x1743a0:new NumberMarker(_0x35b143);},'domEventHandlers':_0x437cca['facet'](lineNumberConfig)['domEventHandlers'],'side':'before'}));function lineNumbers(_0x5e9c3e={}){return[lineNumberConfig['of'](_0x5e9c3e),gutters(),lineNumberGutter];}function maxLineNumber(_0x68f283){let _0x4561e3=0x9;for(;_0x4561e3<_0x68f283;)_0x4561e3=0xa*_0x4561e3+0x9;return _0x4561e3;}const activeLineGutterMarker=new class extends GutterMarker{constructor(){super(...arguments),this['elementClass']='cm-activeLineGutter';}}(),activeLineGutterHighlighter=gutterLineClass['compute'](['selection'],_0x334b05=>{let _0x438af4=[],_0x59a2f4=-0x1;for(let _0x4b347e of _0x334b05['selection']['ranges']){let _0x2a33dc=_0x334b05['doc']['lineAt'](_0x4b347e['head'])['from'];_0x2a33dc>_0x59a2f4&&(_0x59a2f4=_0x2a33dc,_0x438af4['push'](activeLineGutterMarker['range'](_0x2a33dc)));}return RangeSet['of'](_0x438af4);});function highlightActiveLineGutter(){return activeLineGutterHighlighter;}const DefaultBufferLength=0x400;let nextPropID=0x0;class Range{constructor(_0x1b2503,_0x1c72b2){this['from']=_0x1b2503,this['to']=_0x1c72b2;}}class NodeProp{constructor(_0x2fa529={}){this['id']=nextPropID++,this['perNode']=!!_0x2fa529['perNode'],this['deserialize']=_0x2fa529['deserialize']||(()=>{throw new Error('This\x20node\x20type\x20doesn\x27t\x20define\x20a\x20deserialize\x20function');}),this['combine']=_0x2fa529['combine']||null;}['add'](_0x234060){if(this['perNode'])throw new RangeError('Can\x27t\x20add\x20per-node\x20props\x20to\x20node\x20types');return'function'!=typeof _0x234060&&(_0x234060=NodeType['match'](_0x234060)),_0x1dd16c=>{let _0x4d833e=_0x234060(_0x1dd16c);return void 0x0===_0x4d833e?null:[this,_0x4d833e];};}}NodeProp['closedBy']=new NodeProp({'deserialize':_0x598a83=>_0x598a83['split']('\x20')}),NodeProp['openedBy']=new NodeProp({'deserialize':_0x540d69=>_0x540d69['split']('\x20')}),NodeProp['group']=new NodeProp({'deserialize':_0x52b5c4=>_0x52b5c4['split']('\x20')}),NodeProp['isolate']=new NodeProp({'deserialize':_0x2060ec=>{if(_0x2060ec&&'rtl'!=_0x2060ec&&'ltr'!=_0x2060ec&&'auto'!=_0x2060ec)throw new RangeError('Invalid\x20value\x20for\x20isolate:\x20'+_0x2060ec);return _0x2060ec||'auto';}}),NodeProp['contextHash']=new NodeProp({'perNode':!0x0}),NodeProp['lookAhead']=new NodeProp({'perNode':!0x0}),NodeProp['mounted']=new NodeProp({'perNode':!0x0});class MountedTree{constructor(_0x4d90ee,_0x21a689,_0x7934b8){this['tree']=_0x4d90ee,this['overlay']=_0x21a689,this['parser']=_0x7934b8;}static['get'](_0x60526b){return _0x60526b&&_0x60526b['props']&&_0x60526b['props'][NodeProp['mounted']['id']];}}const noProps=Object['create'](null);class NodeType{constructor(_0x911646,_0x5e04ee,_0x5d76a3,_0x1f37ca=0x0){this['name']=_0x911646,this['props']=_0x5e04ee,this['id']=_0x5d76a3,this['flags']=_0x1f37ca;}static['define'](_0xb9a6fc){let _0x3e66bf=_0xb9a6fc['props']&&_0xb9a6fc['props']['length']?Object['create'](null):noProps,_0xae232c=(_0xb9a6fc['top']?0x1:0x0)|(_0xb9a6fc['skipped']?0x2:0x0)|(_0xb9a6fc['error']?0x4:0x0)|(null==_0xb9a6fc['name']?0x8:0x0),_0x1873ee=new NodeType(_0xb9a6fc['name']||'',_0x3e66bf,_0xb9a6fc['id'],_0xae232c);if(_0xb9a6fc['props']){for(let _0x46b171 of _0xb9a6fc['props'])if(Array['isArray'](_0x46b171)||(_0x46b171=_0x46b171(_0x1873ee)),_0x46b171){if(_0x46b171[0x0]['perNode'])throw new RangeError('Can\x27t\x20store\x20a\x20per-node\x20prop\x20on\x20a\x20node\x20type');_0x3e66bf[_0x46b171[0x0]['id']]=_0x46b171[0x1];}}return _0x1873ee;}['prop'](_0x1d7ba2){return this['props'][_0x1d7ba2['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'](_0x3a74bd){if('string'==typeof _0x3a74bd){if(this['name']==_0x3a74bd)return!0x0;let _0x158411=this['prop'](NodeProp['group']);return!!_0x158411&&_0x158411['indexOf'](_0x3a74bd)>-0x1;}return this['id']==_0x3a74bd;}static['match'](_0x507b8c){let _0x18d947=Object['create'](null);for(let _0x5fe07e in _0x507b8c)for(let _0x39121a of _0x5fe07e['split']('\x20'))_0x18d947[_0x39121a]=_0x507b8c[_0x5fe07e];return _0x46edfc=>{for(let _0x44d138=_0x46edfc['prop'](NodeProp['group']),_0x2d30a5=-0x1;_0x2d30a5<(_0x44d138?_0x44d138['length']:0x0);_0x2d30a5++){let _0x409a23=_0x18d947[_0x2d30a5<0x0?_0x46edfc['name']:_0x44d138[_0x2d30a5]];if(_0x409a23)return _0x409a23;}};}}NodeType['none']=new NodeType('',Object['create'](null),0x0,0x8);class NodeSet{constructor(_0x52bc92){this['types']=_0x52bc92;for(let _0x35f180=0x0;_0x35f180<_0x52bc92['length'];_0x35f180++)if(_0x52bc92[_0x35f180]['id']!=_0x35f180)throw new RangeError('Node\x20type\x20ids\x20should\x20correspond\x20to\x20array\x20positions\x20when\x20creating\x20a\x20node\x20set');}['extend'](..._0x37fa8a){let _0xa62211=[];for(let _0x4dbfcf of this['types']){let _0x2ddfd0=null;for(let _0x2609e3 of _0x37fa8a){let _0x2fb857=_0x2609e3(_0x4dbfcf);if(_0x2fb857){_0x2ddfd0||(_0x2ddfd0=Object['assign']({},_0x4dbfcf['props']));let _0x178374=_0x2fb857[0x1],_0x303e1e=_0x2fb857[0x0];_0x303e1e['combine']&&_0x303e1e['id']in _0x2ddfd0&&(_0x178374=_0x303e1e['combine'](_0x2ddfd0[_0x303e1e['id']],_0x178374)),_0x2ddfd0[_0x303e1e['id']]=_0x178374;}}_0xa62211['push'](_0x2ddfd0?new NodeType(_0x4dbfcf['name'],_0x2ddfd0,_0x4dbfcf['id'],_0x4dbfcf['flags']):_0x4dbfcf);}return new NodeSet(_0xa62211);}}const CachedNode=new WeakMap(),CachedInnerNode=new WeakMap();var IterMode;!function(_0x50958c){_0x50958c[_0x50958c['ExcludeBuffers']=0x1]='ExcludeBuffers',_0x50958c[_0x50958c['IncludeAnonymous']=0x2]='IncludeAnonymous',_0x50958c[_0x50958c['IgnoreMounts']=0x4]='IgnoreMounts',_0x50958c[_0x50958c['IgnoreOverlays']=0x8]='IgnoreOverlays';}(IterMode||(IterMode={}));class Tree{constructor(_0x4cc803,_0x43a157,_0xe20ab3,_0x28eb3c,_0x3a0500){if(this['type']=_0x4cc803,this['children']=_0x43a157,this['positions']=_0xe20ab3,this['length']=_0x28eb3c,this['props']=null,_0x3a0500&&_0x3a0500['length']){this['props']=Object['create'](null);for(let [_0x1c6785,_0x43dd30]of _0x3a0500)this['props']['number'==typeof _0x1c6785?_0x1c6785:_0x1c6785['id']]=_0x43dd30;}}['toString'](){let _0x565de2=MountedTree['get'](this);if(_0x565de2&&!_0x565de2['overlay'])return _0x565de2['tree']['toString']();let _0x3aa5e7='';for(let _0x28e689 of this['children']){let _0x15a4fd=_0x28e689['toString']();_0x15a4fd&&(_0x3aa5e7&&(_0x3aa5e7+=','),_0x3aa5e7+=_0x15a4fd);}return this['type']['name']?(/\W/['test'](this['type']['name'])&&!this['type']['isError']?JSON['stringify'](this['type']['name']):this['type']['name'])+(_0x3aa5e7['length']?'('+_0x3aa5e7+')':''):_0x3aa5e7;}['cursor'](_0xb5e77a=0x0){return new TreeCursor(this['topNode'],_0xb5e77a);}['cursorAt'](_0x22e5c3,_0x42355=0x0,_0xcb0dd=0x0){let _0x4319f8=CachedNode['get'](this)||this['topNode'],_0x58e8a5=new TreeCursor(_0x4319f8);return _0x58e8a5['moveTo'](_0x22e5c3,_0x42355),CachedNode['set'](this,_0x58e8a5['_tree']),_0x58e8a5;}get['topNode'](){return new TreeNode(this,0x0,0x0,null);}['resolve'](_0x15e84b,_0x3d767e=0x0){let _0x48e112=resolveNode(CachedNode['get'](this)||this['topNode'],_0x15e84b,_0x3d767e,!0x1);return CachedNode['set'](this,_0x48e112),_0x48e112;}['resolveInner'](_0x2ef83c,_0x35de88=0x0){let _0x5c4ff2=resolveNode(CachedInnerNode['get'](this)||this['topNode'],_0x2ef83c,_0x35de88,!0x0);return CachedInnerNode['set'](this,_0x5c4ff2),_0x5c4ff2;}['resolveStack'](_0x2ace6c,_0x536fb7=0x0){return stackIterator(this,_0x2ace6c,_0x536fb7);}['iterate'](_0x4f0722){let {enter:_0x304934,leave:_0x13e01c,from:_0xbdaabe=0x0,to:_0x2c2fc4=this['length']}=_0x4f0722,_0x337ec0=_0x4f0722['mode']||0x0,_0x10c8fa=(_0x337ec0&IterMode['IncludeAnonymous'])>0x0;for(let _0x59ab41=this['cursor'](_0x337ec0|IterMode['IncludeAnonymous']);;){let _0x46daa0=!0x1;if(_0x59ab41['from']<=_0x2c2fc4&&_0x59ab41['to']>=_0xbdaabe&&(!_0x10c8fa&&_0x59ab41['type']['isAnonymous']||!0x1!==_0x304934(_0x59ab41))){if(_0x59ab41['firstChild']())continue;_0x46daa0=!0x0;}for(;_0x46daa0&&_0x13e01c&&(_0x10c8fa||!_0x59ab41['type']['isAnonymous'])&&_0x13e01c(_0x59ab41),!_0x59ab41['nextSibling']();){if(!_0x59ab41['parent']())return;_0x46daa0=!0x0;}}}['prop'](_0x2f2a76){return _0x2f2a76['perNode']?this['props']?this['props'][_0x2f2a76['id']]:void 0x0:this['type']['prop'](_0x2f2a76);}get['propValues'](){let _0x294e8c=[];if(this['props']){for(let _0x269a90 in this['props'])_0x294e8c['push']([+_0x269a90,this['props'][_0x269a90]]);}return _0x294e8c;}['balance'](_0x14f1db={}){return this['children']['length']<=0x8?this:balanceRange(NodeType['none'],this['children'],this['positions'],0x0,this['children']['length'],0x0,this['length'],(_0x2f9d89,_0x28f8cf,_0x4716c9)=>new Tree(this['type'],_0x2f9d89,_0x28f8cf,_0x4716c9,this['propValues']),_0x14f1db['makeTree']||((_0x5d7081,_0x7eb057,_0x3cac70)=>new Tree(NodeType['none'],_0x5d7081,_0x7eb057,_0x3cac70)));}static['build'](_0x2653fe){return buildTree(_0x2653fe);}}Tree['empty']=new Tree(NodeType['none'],[],[],0x0);class FlatBufferCursor{constructor(_0x5bb7b8,_0x590f7c){this['buffer']=_0x5bb7b8,this['index']=_0x590f7c;}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(_0x5b2c66,_0x31e2d4,_0x104afb){this['buffer']=_0x5b2c66,this['length']=_0x31e2d4,this['set']=_0x104afb;}get['type'](){return NodeType['none'];}['toString'](){let _0x48aa3a=[];for(let _0x2d945f=0x0;_0x2d945f<this['buffer']['length'];)_0x48aa3a['push'](this['childString'](_0x2d945f)),_0x2d945f=this['buffer'][_0x2d945f+0x3];return _0x48aa3a['join'](',');}['childString'](_0x29c9e0){let _0x2eab1b=this['buffer'][_0x29c9e0],_0x3097e2=this['buffer'][_0x29c9e0+0x3],_0x1096e9=this['set']['types'][_0x2eab1b],_0x4375f0=_0x1096e9['name'];if(/\W/['test'](_0x4375f0)&&!_0x1096e9['isError']&&(_0x4375f0=JSON['stringify'](_0x4375f0)),_0x3097e2==(_0x29c9e0+=0x4))return _0x4375f0;let _0x179621=[];for(;_0x29c9e0<_0x3097e2;)_0x179621['push'](this['childString'](_0x29c9e0)),_0x29c9e0=this['buffer'][_0x29c9e0+0x3];return _0x4375f0+'('+_0x179621['join'](',')+')';}['findChild'](_0x97211f,_0x5560ae,_0x168c9c,_0x2aebdc,_0x3eecab){let {buffer:_0xed402f}=this,_0x38d8e6=-0x1;for(let _0x553710=_0x97211f;_0x553710!=_0x5560ae&&!(checkSide(_0x3eecab,_0x2aebdc,_0xed402f[_0x553710+0x1],_0xed402f[_0x553710+0x2])&&(_0x38d8e6=_0x553710,_0x168c9c>0x0));_0x553710=_0xed402f[_0x553710+0x3]);return _0x38d8e6;}['slice'](_0x263c23,_0x2b7c55,_0x1e9bc4){let _0x50c79d=this['buffer'],_0x894e03=new Uint16Array(_0x2b7c55-_0x263c23),_0x51d3d6=0x0;for(let _0x94110a=_0x263c23,_0x333e95=0x0;_0x94110a<_0x2b7c55;){_0x894e03[_0x333e95++]=_0x50c79d[_0x94110a++],_0x894e03[_0x333e95++]=_0x50c79d[_0x94110a++]-_0x1e9bc4;let _0x4b1edf=_0x894e03[_0x333e95++]=_0x50c79d[_0x94110a++]-_0x1e9bc4;_0x894e03[_0x333e95++]=_0x50c79d[_0x94110a++]-_0x263c23,_0x51d3d6=Math['max'](_0x51d3d6,_0x4b1edf);}return new TreeBuffer(_0x894e03,_0x51d3d6,this['set']);}}function checkSide(_0x131602,_0x1aff03,_0x39a40d,_0x5e25da){switch(_0x131602){case-0x2:return _0x39a40d<_0x1aff03;case-0x1:return _0x5e25da>=_0x1aff03&&_0x39a40d<_0x1aff03;case 0x0:return _0x39a40d<_0x1aff03&&_0x5e25da>_0x1aff03;case 0x1:return _0x39a40d<=_0x1aff03&&_0x5e25da>_0x1aff03;case 0x2:return _0x5e25da>_0x1aff03;case 0x4:return!0x0;}}function resolveNode(_0x5c382e,_0xf823a0,_0x3b7deb,_0x490e07){for(var _0x982a6a;_0x5c382e['from']==_0x5c382e['to']||(_0x3b7deb<0x1?_0x5c382e['from']>=_0xf823a0:_0x5c382e['from']>_0xf823a0)||(_0x3b7deb>-0x1?_0x5c382e['to']<=_0xf823a0:_0x5c382e['to']<_0xf823a0);){let _0x25dfc4=!_0x490e07&&_0x5c382e instanceof TreeNode&&_0x5c382e['index']<0x0?null:_0x5c382e['parent'];if(!_0x25dfc4)return _0x5c382e;_0x5c382e=_0x25dfc4;}let _0x467634=_0x490e07?0x0:IterMode['IgnoreOverlays'];if(_0x490e07){for(let _0x4bd068=_0x5c382e,_0x14378f=_0x4bd068['parent'];_0x14378f;_0x4bd068=_0x14378f,_0x14378f=_0x4bd068['parent'])_0x4bd068 instanceof TreeNode&&_0x4bd068['index']<0x0&&(null===(_0x982a6a=_0x14378f['enter'](_0xf823a0,_0x3b7deb,_0x467634))||void 0x0===_0x982a6a?void 0x0:_0x982a6a['from'])!=_0x4bd068['from']&&(_0x5c382e=_0x14378f);}for(;;){let _0x17f2e4=_0x5c382e['enter'](_0xf823a0,_0x3b7deb,_0x467634);if(!_0x17f2e4)return _0x5c382e;_0x5c382e=_0x17f2e4;}}class BaseNode{['cursor'](_0x223dbf=0x0){return new TreeCursor(this,_0x223dbf);}['getChild'](_0x454577,_0xd08376=null,_0x552b7c=null){let _0x2d4021=getChildren(this,_0x454577,_0xd08376,_0x552b7c);return _0x2d4021['length']?_0x2d4021[0x0]:null;}['getChildren'](_0x1a6d7f,_0x4f1d50=null,_0x35e5ad=null){return getChildren(this,_0x1a6d7f,_0x4f1d50,_0x35e5ad);}['resolve'](_0x4aeb0c,_0x4fa65e=0x0){return resolveNode(this,_0x4aeb0c,_0x4fa65e,!0x1);}['resolveInner'](_0x49ba7a,_0x3763c8=0x0){return resolveNode(this,_0x49ba7a,_0x3763c8,!0x0);}['matchContext'](_0x5a0c16){return matchNodeContext(this['parent'],_0x5a0c16);}['enterUnfinishedNodesBefore'](_0x530544){let _0x3c8c2f=this['childBefore'](_0x530544),_0x5e30bc=this;for(;_0x3c8c2f;){let _0x22a82d=_0x3c8c2f['lastChild'];if(!_0x22a82d||_0x22a82d['to']!=_0x3c8c2f['to'])break;_0x22a82d['type']['isError']&&_0x22a82d['from']==_0x22a82d['to']?(_0x5e30bc=_0x3c8c2f,_0x3c8c2f=_0x22a82d['prevSibling']):_0x3c8c2f=_0x22a82d;}return _0x5e30bc;}get['node'](){return this;}get['next'](){return this['parent'];}}class TreeNode extends BaseNode{constructor(_0x5f43b2,_0x1051b5,_0x40e3c7,_0x2dd07b){super(),this['_tree']=_0x5f43b2,this['from']=_0x1051b5,this['index']=_0x40e3c7,this['_parent']=_0x2dd07b;}get['type'](){return this['_tree']['type'];}get['name'](){return this['_tree']['type']['name'];}get['to'](){return this['from']+this['_tree']['length'];}['nextChild'](_0x2ce081,_0x1927d3,_0x2433de,_0x50b3eb,_0x3f4161=0x0){for(let _0xf0e4b8=this;;){for(let {children:_0x3e6ced,positions:_0x221103}=_0xf0e4b8['_tree'],_0x256b22=_0x1927d3>0x0?_0x3e6ced['length']:-0x1;_0x2ce081!=_0x256b22;_0x2ce081+=_0x1927d3){let _0x40bfbc=_0x3e6ced[_0x2ce081],_0x14ef94=_0x221103[_0x2ce081]+_0xf0e4b8['from'];if(checkSide(_0x50b3eb,_0x2433de,_0x14ef94,_0x14ef94+_0x40bfbc['length'])){if(_0x40bfbc instanceof TreeBuffer){if(_0x3f4161&IterMode['ExcludeBuffers'])continue;let _0x423c98=_0x40bfbc['findChild'](0x0,_0x40bfbc['buffer']['length'],_0x1927d3,_0x2433de-_0x14ef94,_0x50b3eb);if(_0x423c98>-0x1)return new BufferNode(new BufferContext(_0xf0e4b8,_0x40bfbc,_0x2ce081,_0x14ef94),null,_0x423c98);}else{if(_0x3f4161&IterMode['IncludeAnonymous']||!_0x40bfbc['type']['isAnonymous']||hasChild(_0x40bfbc)){let _0x30bd3e;if(!(_0x3f4161&IterMode['IgnoreMounts'])&&(_0x30bd3e=MountedTree['get'](_0x40bfbc))&&!_0x30bd3e['overlay'])return new TreeNode(_0x30bd3e['tree'],_0x14ef94,_0x2ce081,_0xf0e4b8);let _0x2ad751=new TreeNode(_0x40bfbc,_0x14ef94,_0x2ce081,_0xf0e4b8);return _0x3f4161&IterMode['IncludeAnonymous']||!_0x2ad751['type']['isAnonymous']?_0x2ad751:_0x2ad751['nextChild'](_0x1927d3<0x0?_0x40bfbc['children']['length']-0x1:0x0,_0x1927d3,_0x2433de,_0x50b3eb);}}}}if(_0x3f4161&IterMode['IncludeAnonymous']||!_0xf0e4b8['type']['isAnonymous'])return null;if(_0x2ce081=_0xf0e4b8['index']>=0x0?_0xf0e4b8['index']+_0x1927d3:_0x1927d3<0x0?-0x1:_0xf0e4b8['_parent']['_tree']['children']['length'],_0xf0e4b8=_0xf0e4b8['_parent'],!_0xf0e4b8)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'](_0x23634e){return this['nextChild'](0x0,0x1,_0x23634e,0x2);}['childBefore'](_0x1fbb0c){return this['nextChild'](this['_tree']['children']['length']-0x1,-0x1,_0x1fbb0c,-0x2);}['enter'](_0x12e773,_0x4b1746,_0x436b11=0x0){let _0x4f20aa;if(!(_0x436b11&IterMode['IgnoreOverlays'])&&(_0x4f20aa=MountedTree['get'](this['_tree']))&&_0x4f20aa['overlay']){let _0xf2fb36=_0x12e773-this['from'];for(let {from:_0x54b9d5,to:_0x143440}of _0x4f20aa['overlay'])if((_0x4b1746>0x0?_0x54b9d5<=_0xf2fb36:_0x54b9d5<_0xf2fb36)&&(_0x4b1746<0x0?_0x143440>=_0xf2fb36:_0x143440>_0xf2fb36))return new TreeNode(_0x4f20aa['tree'],_0x4f20aa['overlay'][0x0]['from']+this['from'],-0x1,this);}return this['nextChild'](0x0,0x1,_0x12e773,_0x4b1746,_0x436b11);}['nextSignificantParent'](){let _0x11ef6b=this;for(;_0x11ef6b['type']['isAnonymous']&&_0x11ef6b['_parent'];)_0x11ef6b=_0x11ef6b['_parent'];return _0x11ef6b;}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(_0x5e980b,_0x2cf8c8,_0x423a87,_0x303b3e){let _0x1bec7a=_0x5e980b['cursor'](),_0x22e8d5=[];if(!_0x1bec7a['firstChild']())return _0x22e8d5;if(null!=_0x423a87){for(let _0x1dda3d=!0x1;!_0x1dda3d;)if(_0x1dda3d=_0x1bec7a['type']['is'](_0x423a87),!_0x1bec7a['nextSibling']())return _0x22e8d5;}for(;;){if(null!=_0x303b3e&&_0x1bec7a['type']['is'](_0x303b3e))return _0x22e8d5;if(_0x1bec7a['type']['is'](_0x2cf8c8)&&_0x22e8d5['push'](_0x1bec7a['node']),!_0x1bec7a['nextSibling']())return null==_0x303b3e?_0x22e8d5:[];}}function matchNodeContext(_0x76d61e,_0x13a1d8,_0x56e703=_0x13a1d8['length']-0x1){for(let _0x1086ab=_0x76d61e;_0x56e703>=0x0;_0x1086ab=_0x1086ab['parent']){if(!_0x1086ab)return!0x1;if(!_0x1086ab['type']['isAnonymous']){if(_0x13a1d8[_0x56e703]&&_0x13a1d8[_0x56e703]!=_0x1086ab['name'])return!0x1;_0x56e703--;}}return!0x0;}class BufferContext{constructor(_0xf2d5f4,_0x211d39,_0x3246b2,_0x13c891){this['parent']=_0xf2d5f4,this['buffer']=_0x211d39,this['index']=_0x3246b2,this['start']=_0x13c891;}}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(_0x18c8ae,_0x300b2c,_0x48710f){super(),this['context']=_0x18c8ae,this['_parent']=_0x300b2c,this['index']=_0x48710f,this['type']=_0x18c8ae['buffer']['set']['types'][_0x18c8ae['buffer']['buffer'][_0x48710f]];}['child'](_0x31b034,_0x514ca9,_0x26343e){let {buffer:_0x454f67}=this['context'],_0x5eb51b=_0x454f67['findChild'](this['index']+0x4,_0x454f67['buffer'][this['index']+0x3],_0x31b034,_0x514ca9-this['context']['start'],_0x26343e);return _0x5eb51b<0x0?null:new BufferNode(this['context'],this,_0x5eb51b);}get['firstChild'](){return this['child'](0x1,0x0,0x4);}get['lastChild'](){return this['child'](-0x1,0x0,0x4);}['childAfter'](_0x5a275a){return this['child'](0x1,_0x5a275a,0x2);}['childBefore'](_0x1ad589){return this['child'](-0x1,_0x1ad589,-0x2);}['enter'](_0x5b855a,_0x36c768,_0x546707=0x0){if(_0x546707&IterMode['ExcludeBuffers'])return null;let {buffer:_0x3209dc}=this['context'],_0x3cb561=_0x3209dc['findChild'](this['index']+0x4,_0x3209dc['buffer'][this['index']+0x3],_0x36c768>0x0?0x1:-0x1,_0x5b855a-this['context']['start'],_0x36c768);return _0x3cb561<0x0?null:new BufferNode(this['context'],this,_0x3cb561);}get['parent'](){return this['_parent']||this['context']['parent']['nextSignificantParent']();}['externalSibling'](_0x24be13){return this['_parent']?null:this['context']['parent']['nextChild'](this['context']['index']+_0x24be13,_0x24be13,0x0,0x4);}get['nextSibling'](){let {buffer:_0x4cd773}=this['context'],_0x57a04e=_0x4cd773['buffer'][this['index']+0x3];return _0x57a04e<(this['_parent']?_0x4cd773['buffer'][this['_parent']['index']+0x3]:_0x4cd773['buffer']['length'])?new BufferNode(this['context'],this['_parent'],_0x57a04e):this['externalSibling'](0x1);}get['prevSibling'](){let {buffer:_0xe3c953}=this['context'],_0x4e18e5=this['_parent']?this['_parent']['index']+0x4:0x0;return this['index']==_0x4e18e5?this['externalSibling'](-0x1):new BufferNode(this['context'],this['_parent'],_0xe3c953['findChild'](_0x4e18e5,this['index'],-0x1,0x0,0x4));}get['tree'](){return null;}['toTree'](){let _0x2115a4=[],_0x3ff70b=[],{buffer:_0x2c994e}=this['context'],_0x4e0a86=this['index']+0x4,_0x547d75=_0x2c994e['buffer'][this['index']+0x3];if(_0x547d75>_0x4e0a86){let _0x711af9=_0x2c994e['buffer'][this['index']+0x1];_0x2115a4['push'](_0x2c994e['slice'](_0x4e0a86,_0x547d75,_0x711af9)),_0x3ff70b['push'](0x0);}return new Tree(this['type'],_0x2115a4,_0x3ff70b,this['to']-this['from']);}['toString'](){return this['context']['buffer']['childString'](this['index']);}}function iterStack(_0x235827){if(!_0x235827['length'])return null;let _0x4c4c0b=0x0,_0x70c783=_0x235827[0x0];for(let _0x3aacc7=0x1;_0x3aacc7<_0x235827['length'];_0x3aacc7++){let _0x284442=_0x235827[_0x3aacc7];(_0x284442['from']>_0x70c783['from']||_0x284442['to']<_0x70c783['to'])&&(_0x70c783=_0x284442,_0x4c4c0b=_0x3aacc7);}let _0x4a4ca1=_0x70c783 instanceof TreeNode&&_0x70c783['index']<0x0?null:_0x70c783['parent'],_0x441629=_0x235827['slice']();return _0x4a4ca1?_0x441629[_0x4c4c0b]=_0x4a4ca1:_0x441629['splice'](_0x4c4c0b,0x1),new StackIterator(_0x441629,_0x70c783);}class StackIterator{constructor(_0x4247fc,_0xa49589){this['heads']=_0x4247fc,this['node']=_0xa49589;}get['next'](){return iterStack(this['heads']);}}function stackIterator(_0x2bfe79,_0x56163a,_0x5987ba){let _0x488a75=_0x2bfe79['resolveInner'](_0x56163a,_0x5987ba),_0x24d9ff=null;for(let _0x41fc77=_0x488a75 instanceof TreeNode?_0x488a75:_0x488a75['context']['parent'];_0x41fc77;_0x41fc77=_0x41fc77['parent'])if(_0x41fc77['index']<0x0){let _0x237d41=_0x41fc77['parent'];(_0x24d9ff||(_0x24d9ff=[_0x488a75]))['push'](_0x237d41['resolve'](_0x56163a,_0x5987ba)),_0x41fc77=_0x237d41;}else{let _0x2a4869=MountedTree['get'](_0x41fc77['tree']);if(_0x2a4869&&_0x2a4869['overlay']&&_0x2a4869['overlay'][0x0]['from']<=_0x56163a&&_0x2a4869['overlay'][_0x2a4869['overlay']['length']-0x1]['to']>=_0x56163a){let _0x4e7703=new TreeNode(_0x2a4869['tree'],_0x2a4869['overlay'][0x0]['from']+_0x41fc77['from'],-0x1,_0x41fc77);(_0x24d9ff||(_0x24d9ff=[_0x488a75]))['push'](resolveNode(_0x4e7703,_0x56163a,_0x5987ba,!0x1));}}return _0x24d9ff?iterStack(_0x24d9ff):_0x488a75;}class TreeCursor{get['name'](){return this['type']['name'];}constructor(_0x4883d7,_0x59c9ba=0x0){if(this['mode']=_0x59c9ba,this['buffer']=null,this['stack']=[],this['index']=0x0,this['bufferNode']=null,_0x4883d7 instanceof TreeNode)this['yieldNode'](_0x4883d7);else{this['_tree']=_0x4883d7['context']['parent'],this['buffer']=_0x4883d7['context'];for(let _0x1dfe17=_0x4883d7['_parent'];_0x1dfe17;_0x1dfe17=_0x1dfe17['_parent'])this['stack']['unshift'](_0x1dfe17['index']);this['bufferNode']=_0x4883d7,this['yieldBuf'](_0x4883d7['index']);}}['yieldNode'](_0x4168f5){return!!_0x4168f5&&(this['_tree']=_0x4168f5,this['type']=_0x4168f5['type'],this['from']=_0x4168f5['from'],this['to']=_0x4168f5['to'],!0x0);}['yieldBuf'](_0x28f4de,_0x8bad66){this['index']=_0x28f4de;let {start:_0x32a802,buffer:_0x301a85}=this['buffer'];return this['type']=_0x8bad66||_0x301a85['set']['types'][_0x301a85['buffer'][_0x28f4de]],this['from']=_0x32a802+_0x301a85['buffer'][_0x28f4de+0x1],this['to']=_0x32a802+_0x301a85['buffer'][_0x28f4de+0x2],!0x0;}['yield'](_0x5eaf89){return!!_0x5eaf89&&(_0x5eaf89 instanceof TreeNode?(this['buffer']=null,this['yieldNode'](_0x5eaf89)):(this['buffer']=_0x5eaf89['context'],this['yieldBuf'](_0x5eaf89['index'],_0x5eaf89['type'])));}['toString'](){return this['buffer']?this['buffer']['buffer']['childString'](this['index']):this['_tree']['toString']();}['enterChild'](_0x4391f3,_0x4319f5,_0x41321d){if(!this['buffer'])return this['yield'](this['_tree']['nextChild'](_0x4391f3<0x0?this['_tree']['_tree']['children']['length']-0x1:0x0,_0x4391f3,_0x4319f5,_0x41321d,this['mode']));let {buffer:_0x47bb4e}=this['buffer'],_0x4206d3=_0x47bb4e['findChild'](this['index']+0x4,_0x47bb4e['buffer'][this['index']+0x3],_0x4391f3,_0x4319f5-this['buffer']['start'],_0x41321d);return!(_0x4206d3<0x0)&&(this['stack']['push'](this['index']),this['yieldBuf'](_0x4206d3));}['firstChild'](){return this['enterChild'](0x1,0x0,0x4);}['lastChild'](){return this['enterChild'](-0x1,0x0,0x4);}['childAfter'](_0xb8681){return this['enterChild'](0x1,_0xb8681,0x2);}['childBefore'](_0x4d1e71){return this['enterChild'](-0x1,_0x4d1e71,-0x2);}['enter'](_0x7a4ff,_0x4a04a3,_0x61bd62=this['mode']){return this['buffer']?!(_0x61bd62&IterMode['ExcludeBuffers'])&&this['enterChild'](0x1,_0x7a4ff,_0x4a04a3):this['yield'](this['_tree']['enter'](_0x7a4ff,_0x4a04a3,_0x61bd62));}['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 _0x1c5ad1=this['mode']&IterMode['IncludeAnonymous']?this['buffer']['parent']:this['buffer']['parent']['nextSignificantParent']();return this['buffer']=null,this['yieldNode'](_0x1c5ad1);}['sibling'](_0x5cef05){if(!this['buffer'])return!!this['_tree']['_parent']&&this['yield'](this['_tree']['index']<0x0?null:this['_tree']['_parent']['nextChild'](this['_tree']['index']+_0x5cef05,_0x5cef05,0x0,0x4,this['mode']));let {buffer:_0x3f2a5c}=this['buffer'],_0x59de73=this['stack']['length']-0x1;if(_0x5cef05<0x0){let _0x27e8f8=_0x59de73<0x0?0x0:this['stack'][_0x59de73]+0x4;if(this['index']!=_0x27e8f8)return this['yieldBuf'](_0x3f2a5c['findChild'](_0x27e8f8,this['index'],-0x1,0x0,0x4));}else{let _0x2346b5=_0x3f2a5c['buffer'][this['index']+0x3];if(_0x2346b5<(_0x59de73<0x0?_0x3f2a5c['buffer']['length']:_0x3f2a5c['buffer'][this['stack'][_0x59de73]+0x3]))return this['yieldBuf'](_0x2346b5);}return _0x59de73<0x0&&this['yield'](this['buffer']['parent']['nextChild'](this['buffer']['index']+_0x5cef05,_0x5cef05,0x0,0x4,this['mode']));}['nextSibling'](){return this['sibling'](0x1);}['prevSibling'](){return this['sibling'](-0x1);}['atLastNode'](_0xc6a26a){let _0x1277d3,_0x191176,{buffer:_0xb7966b}=this;if(_0xb7966b){if(_0xc6a26a>0x0){if(this['index']<_0xb7966b['buffer']['buffer']['length'])return!0x1;}else{for(let _0x2ff143=0x0;_0x2ff143<this['index'];_0x2ff143++)if(_0xb7966b['buffer']['buffer'][_0x2ff143+0x3]<this['index'])return!0x1;}({index:_0x1277d3,parent:_0x191176}=_0xb7966b);}else({index:_0x1277d3,_parent:_0x191176}=this['_tree']);for(;_0x191176;{index:_0x1277d3,_parent:_0x191176}=_0x191176)if(_0x1277d3>-0x1)for(let _0x4c02cf=_0x1277d3+_0xc6a26a,_0x306806=_0xc6a26a<0x0?-0x1:_0x191176['_tree']['children']['length'];_0x4c02cf!=_0x306806;_0x4c02cf+=_0xc6a26a){let _0xf2afd2=_0x191176['_tree']['children'][_0x4c02cf];if(this['mode']&IterMode['IncludeAnonymous']||_0xf2afd2 instanceof TreeBuffer||!_0xf2afd2['type']['isAnonymous']||hasChild(_0xf2afd2))return!0x1;}return!0x0;}['move'](_0x3a0c28,_0x20edd7){if(_0x20edd7&&this['enterChild'](_0x3a0c28,0x0,0x4))return!0x0;for(;;){if(this['sibling'](_0x3a0c28))return!0x0;if(this['atLastNode'](_0x3a0c28)||!this['parent']())return!0x1;}}['next'](_0x486bd4=!0x0){return this['move'](0x1,_0x486bd4);}['prev'](_0xdd17ee=!0x0){return this['move'](-0x1,_0xdd17ee);}['moveTo'](_0x43870a,_0x4db14c=0x0){for(;(this['from']==this['to']||(_0x4db14c<0x1?this['from']>=_0x43870a:this['from']>_0x43870a)||(_0x4db14c>-0x1?this['to']<=_0x43870a:this['to']<_0x43870a))&&this['parent'](););for(;this['enterChild'](0x1,_0x43870a,_0x4db14c););return this;}get['node'](){if(!this['buffer'])return this['_tree'];let _0x234c75=this['bufferNode'],_0x58d3b2=null,_0x31c659=0x0;if(_0x234c75&&_0x234c75['context']==this['buffer']){t:for(let _0x495a64=this['index'],_0x10b434=this['stack']['length'];_0x10b434>=0x0;){for(let _0x182ed8=_0x234c75;_0x182ed8;_0x182ed8=_0x182ed8['_parent'])if(_0x182ed8['index']==_0x495a64){if(_0x495a64==this['index'])return _0x182ed8;_0x58d3b2=_0x182ed8,_0x31c659=_0x10b434+0x1;break t;}_0x495a64=this['stack'][--_0x10b434];}}for(let _0x403c7a=_0x31c659;_0x403c7a<this['stack']['length'];_0x403c7a++)_0x58d3b2=new BufferNode(this['buffer'],_0x58d3b2,this['stack'][_0x403c7a]);return this['bufferNode']=new BufferNode(this['buffer'],_0x58d3b2,this['index']);}get['tree'](){return this['buffer']?null:this['_tree']['_tree'];}['iterate'](_0x158333,_0x55096f){for(let _0x1dd5dc=0x0;;){let _0x3c3724=!0x1;if(this['type']['isAnonymous']||!0x1!==_0x158333(this)){if(this['firstChild']()){_0x1dd5dc++;continue;}this['type']['isAnonymous']||(_0x3c3724=!0x0);}for(;;){if(_0x3c3724&&_0x55096f&&_0x55096f(this),_0x3c3724=this['type']['isAnonymous'],!_0x1dd5dc)return;if(this['nextSibling']())break;this['parent'](),_0x1dd5dc--,_0x3c3724=!0x0;}}}['matchContext'](_0x1221a7){if(!this['buffer'])return matchNodeContext(this['node']['parent'],_0x1221a7);let {buffer:_0x43e65f}=this['buffer'],{types:_0x3e0b5a}=_0x43e65f['set'];for(let _0x4d03fc=_0x1221a7['length']-0x1,_0x1f74a6=this['stack']['length']-0x1;_0x4d03fc>=0x0;_0x1f74a6--){if(_0x1f74a6<0x0)return matchNodeContext(this['_tree'],_0x1221a7,_0x4d03fc);let _0x325f6=_0x3e0b5a[_0x43e65f['buffer'][this['stack'][_0x1f74a6]]];if(!_0x325f6['isAnonymous']){if(_0x1221a7[_0x4d03fc]&&_0x1221a7[_0x4d03fc]!=_0x325f6['name'])return!0x1;_0x4d03fc--;}}return!0x0;}}function hasChild(_0x24d35d){return _0x24d35d['children']['some'](_0x232b3b=>_0x232b3b instanceof TreeBuffer||!_0x232b3b['type']['isAnonymous']||hasChild(_0x232b3b));}function buildTree(_0x595ee7){var _0x63410;let {buffer:_0x27ffd1,nodeSet:_0x4c3763,maxBufferLength:_0x44c4f2=DefaultBufferLength,reused:_0x1ec5fd=[],minRepeatType:_0x550da6=_0x4c3763['types']['length']}=_0x595ee7,_0xa6494b=Array['isArray'](_0x27ffd1)?new FlatBufferCursor(_0x27ffd1,_0x27ffd1['length']):_0x27ffd1,_0x31d5fd=_0x4c3763['types'],_0x23bd6a=0x0,_0x13d660=0x0;function _0x502ba9(_0x1f38af,_0x536f7e,_0x4f395a,_0xb9b548,_0x4b57f6,_0x4803de){let {id:_0x1e376e,start:_0x1f8ca7,end:_0x5a1db9,size:_0x5eba9e}=_0xa6494b,_0x5f476a=_0x13d660,_0x112987=_0x23bd6a;if(_0x5eba9e<0x0){if(_0xa6494b['next'](),-0x1==_0x5eba9e){let _0x156b75=_0x1ec5fd[_0x1e376e];return _0x4f395a['push'](_0x156b75),void _0xb9b548['push'](_0x1f8ca7-_0x1f38af);}if(-0x3==_0x5eba9e)return void(_0x23bd6a=_0x1e376e);if(-0x4==_0x5eba9e)return void(_0x13d660=_0x1e376e);throw new RangeError('Unrecognized\x20record\x20size:\x20'+_0x5eba9e);}let _0xf2b19c,_0x344a3b,_0x16cb9e=_0x31d5fd[_0x1e376e],_0x5bfc2d=_0x1f8ca7-_0x1f38af;if(_0x5a1db9-_0x1f8ca7<=_0x44c4f2&&(_0x344a3b=function(_0x15cfc5,_0x1b9a64){let _0x1d9786=_0xa6494b['fork'](),_0x97133d=0x0,_0x2f7309=0x0,_0x58595a=0x0,_0x1cf062=_0x1d9786['end']-_0x44c4f2,_0x3c640f={'size':0x0,'start':0x0,'skip':0x0};t:for(let _0x3308e2=_0x1d9786['pos']-_0x15cfc5;_0x1d9786['pos']>_0x3308e2;){let _0xe69eab=_0x1d9786['size'];if(_0x1d9786['id']==_0x1b9a64&&_0xe69eab>=0x0){_0x3c640f['size']=_0x97133d,_0x3c640f['start']=_0x2f7309,_0x3c640f['skip']=_0x58595a,_0x58595a+=0x4,_0x97133d+=0x4,_0x1d9786['next']();continue;}let _0x2999cf=_0x1d9786['pos']-_0xe69eab;if(_0xe69eab<0x0||_0x2999cf<_0x3308e2||_0x1d9786['start']<_0x1cf062)break;let _0x3ee35e=_0x1d9786['id']>=_0x550da6?0x4:0x0,_0x2d3271=_0x1d9786['start'];for(_0x1d9786['next']();_0x1d9786['pos']>_0x2999cf;){if(_0x1d9786['size']<0x0){if(-0x3!=_0x1d9786['size'])break t;_0x3ee35e+=0x4;}else _0x1d9786['id']>=_0x550da6&&(_0x3ee35e+=0x4);_0x1d9786['next']();}_0x2f7309=_0x2d3271,_0x97133d+=_0xe69eab,_0x58595a+=_0x3ee35e;}return(_0x1b9a64<0x0||_0x97133d==_0x15cfc5)&&(_0x3c640f['size']=_0x97133d,_0x3c640f['start']=_0x2f7309,_0x3c640f['skip']=_0x58595a),_0x3c640f['size']>0x4?_0x3c640f:void 0x0;}(_0xa6494b['pos']-_0x536f7e,_0x4b57f6))){let _0x4a9554=new Uint16Array(_0x344a3b['size']-_0x344a3b['skip']),_0x3d077b=_0xa6494b['pos']-_0x344a3b['size'],_0x535aee=_0x4a9554['length'];for(;_0xa6494b['pos']>_0x3d077b;)_0x535aee=_0x41d47c(_0x344a3b['start'],_0x4a9554,_0x535aee);_0xf2b19c=new TreeBuffer(_0x4a9554,_0x5a1db9-_0x344a3b['start'],_0x4c3763),_0x5bfc2d=_0x344a3b['start']-_0x1f38af;}else{let _0x3cdaa4=_0xa6494b['pos']-_0x5eba9e;_0xa6494b['next']();let _0x36cb69=[],_0x213fdd=[],_0x43b343=_0x1e376e>=_0x550da6?_0x1e376e:-0x1,_0x2ef4d9=0x0,_0xc987e=_0x5a1db9;for(;_0xa6494b['pos']>_0x3cdaa4;)_0x43b343>=0x0&&_0xa6494b['id']==_0x43b343&&_0xa6494b['size']>=0x0?(_0xa6494b['end']<=_0xc987e-_0x44c4f2&&(_0x2d5f8c(_0x36cb69,_0x213fdd,_0x1f8ca7,_0x2ef4d9,_0xa6494b['end'],_0xc987e,_0x43b343,_0x5f476a,_0x112987),_0x2ef4d9=_0x36cb69['length'],_0xc987e=_0xa6494b['end']),_0xa6494b['next']()):_0x4803de>0x9c4?_0xddfd28(_0x1f8ca7,_0x3cdaa4,_0x36cb69,_0x213fdd):_0x502ba9(_0x1f8ca7,_0x3cdaa4,_0x36cb69,_0x213fdd,_0x43b343,_0x4803de+0x1);if(_0x43b343>=0x0&&_0x2ef4d9>0x0&&_0x2ef4d9<_0x36cb69['length']&&_0x2d5f8c(_0x36cb69,_0x213fdd,_0x1f8ca7,_0x2ef4d9,_0x1f8ca7,_0xc987e,_0x43b343,_0x5f476a,_0x112987),_0x36cb69['reverse'](),_0x213fdd['reverse'](),_0x43b343>-0x1&&_0x2ef4d9>0x0){let _0x15a89c=function(_0x38e692,_0x5b2b03){return(_0x102c28,_0x416281,_0x1fea3a)=>{let _0x427b3e,_0x48c493,_0xea82a9=0x0,_0x31db2f=_0x102c28['length']-0x1;if(_0x31db2f>=0x0&&(_0x427b3e=_0x102c28[_0x31db2f])instanceof Tree){if(!_0x31db2f&&_0x427b3e['type']==_0x38e692&&_0x427b3e['length']==_0x1fea3a)return _0x427b3e;(_0x48c493=_0x427b3e['prop'](NodeProp['lookAhead']))&&(_0xea82a9=_0x416281[_0x31db2f]+_0x427b3e['length']+_0x48c493);}return _0x4d8c2a(_0x38e692,_0x102c28,_0x416281,_0x1fea3a,_0xea82a9,_0x5b2b03);};}(_0x16cb9e,_0x112987);_0xf2b19c=balanceRange(_0x16cb9e,_0x36cb69,_0x213fdd,0x0,_0x36cb69['length'],0x0,_0x5a1db9-_0x1f8ca7,_0x15a89c,_0x15a89c);}else _0xf2b19c=_0x4d8c2a(_0x16cb9e,_0x36cb69,_0x213fdd,_0x5a1db9-_0x1f8ca7,_0x5f476a-_0x5a1db9,_0x112987);}_0x4f395a['push'](_0xf2b19c),_0xb9b548['push'](_0x5bfc2d);}function _0xddfd28(_0x3f420e,_0x1c9aee,_0x360bb6,_0x1be988){let _0x119857=[],_0x49783b=0x0,_0x92bbf8=-0x1;for(;_0xa6494b['pos']>_0x1c9aee;){let {id:_0x36fe9f,start:_0x3ef5ef,end:_0xbfa801,size:_0xce8ed5}=_0xa6494b;if(_0xce8ed5>0x4)_0xa6494b['next']();else{if(_0x92bbf8>-0x1&&_0x3ef5ef<_0x92bbf8)break;_0x92bbf8<0x0&&(_0x92bbf8=_0xbfa801-_0x44c4f2),_0x119857['push'](_0x36fe9f,_0x3ef5ef,_0xbfa801),_0x49783b++,_0xa6494b['next']();}}if(_0x49783b){let _0x16b1e5=new Uint16Array(0x4*_0x49783b),_0x2f635c=_0x119857[_0x119857['length']-0x2];for(let _0x2657c6=_0x119857['length']-0x3,_0x48a628=0x0;_0x2657c6>=0x0;_0x2657c6-=0x3)_0x16b1e5[_0x48a628++]=_0x119857[_0x2657c6],_0x16b1e5[_0x48a628++]=_0x119857[_0x2657c6+0x1]-_0x2f635c,_0x16b1e5[_0x48a628++]=_0x119857[_0x2657c6+0x2]-_0x2f635c,_0x16b1e5[_0x48a628++]=_0x48a628;_0x360bb6['push'](new TreeBuffer(_0x16b1e5,_0x119857[0x2]-_0x2f635c,_0x4c3763)),_0x1be988['push'](_0x2f635c-_0x3f420e);}}function _0x2d5f8c(_0x327b81,_0x10133a,_0x115668,_0x934614,_0x433e3a,_0x320ff9,_0x3c13e3,_0x39787a,_0x40714c){let _0x1bd710=[],_0x50568c=[];for(;_0x327b81['length']>_0x934614;)_0x1bd710['push'](_0x327b81['pop']()),_0x50568c['push'](_0x10133a['pop']()+_0x115668-_0x433e3a);_0x327b81['push'](_0x4d8c2a(_0x4c3763['types'][_0x3c13e3],_0x1bd710,_0x50568c,_0x320ff9-_0x433e3a,_0x39787a-_0x320ff9,_0x40714c)),_0x10133a['push'](_0x433e3a-_0x115668);}function _0x4d8c2a(_0x3e265e,_0x3e4442,_0x141939,_0x562f5f,_0x52a65c,_0x40735c,_0x172a35){if(_0x40735c){let _0x19e160=[NodeProp['contextHash'],_0x40735c];_0x172a35=_0x172a35?[_0x19e160]['concat'](_0x172a35):[_0x19e160];}if(_0x52a65c>0x19){let _0x159fb9=[NodeProp['lookAhead'],_0x52a65c];_0x172a35=_0x172a35?[_0x159fb9]['concat'](_0x172a35):[_0x159fb9];}return new Tree(_0x3e265e,_0x3e4442,_0x141939,_0x562f5f,_0x172a35);}function _0x41d47c(_0x887134,_0x1dc51c,_0x18daaa){let {id:_0x51f94e,start:_0xfd126c,end:_0xc5fca2,size:_0x1fb693}=_0xa6494b;if(_0xa6494b['next'](),_0x1fb693>=0x0&&_0x51f94e<_0x550da6){let _0x2a2d12=_0x18daaa;if(_0x1fb693>0x4){let _0x466843=_0xa6494b['pos']-(_0x1fb693-0x4);for(;_0xa6494b['pos']>_0x466843;)_0x18daaa=_0x41d47c(_0x887134,_0x1dc51c,_0x18daaa);}_0x1dc51c[--_0x18daaa]=_0x2a2d12,_0x1dc51c[--_0x18daaa]=_0xc5fca2-_0x887134,_0x1dc51c[--_0x18daaa]=_0xfd126c-_0x887134,_0x1dc51c[--_0x18daaa]=_0x51f94e;}else-0x3==_0x1fb693?_0x23bd6a=_0x51f94e:-0x4==_0x1fb693&&(_0x13d660=_0x51f94e);return _0x18daaa;}let _0x1004c4=[],_0x4341c2=[];for(;_0xa6494b['pos']>0x0;)_0x502ba9(_0x595ee7['start']||0x0,_0x595ee7['bufferStart']||0x0,_0x1004c4,_0x4341c2,-0x1,0x0);let _0x420229=null!==(_0x63410=_0x595ee7['length'])&&void 0x0!==_0x63410?_0x63410:_0x1004c4['length']?_0x4341c2[0x0]+_0x1004c4[0x0]['length']:0x0;return new Tree(_0x31d5fd[_0x595ee7['topID']],_0x1004c4['reverse'](),_0x4341c2['reverse'](),_0x420229);}const nodeSizeCache=new WeakMap();function nodeSize(_0x568e3b,_0x297b3c){if(!_0x568e3b['isAnonymous']||_0x297b3c instanceof TreeBuffer||_0x297b3c['type']!=_0x568e3b)return 0x1;let _0x4c34d4=nodeSizeCache['get'](_0x297b3c);if(null==_0x4c34d4){_0x4c34d4=0x1;for(let _0x4857d5 of _0x297b3c['children']){if(_0x4857d5['type']!=_0x568e3b||!(_0x4857d5 instanceof Tree)){_0x4c34d4=0x1;break;}_0x4c34d4+=nodeSize(_0x568e3b,_0x4857d5);}nodeSizeCache['set'](_0x297b3c,_0x4c34d4);}return _0x4c34d4;}function balanceRange(_0x2e29c2,_0x2f558e,_0x4e60e3,_0x4b0ddd,_0x43fde5,_0x374b06,_0x5e67ee,_0x18443a,_0xceb563){let _0x2a041c=0x0;for(let _0x32253d=_0x4b0ddd;_0x32253d<_0x43fde5;_0x32253d++)_0x2a041c+=nodeSize(_0x2e29c2,_0x2f558e[_0x32253d]);let _0x51a1cb=Math['ceil'](1.5*_0x2a041c/0x8),_0x183243=[],_0x5e9e9a=[];return function _0x3a4f75(_0x3ffa83,_0xc02dd6,_0x6321df,_0x3427bf,_0x282b7b){for(let _0x3cdb4a=_0x6321df;_0x3cdb4a<_0x3427bf;){let _0x327739=_0x3cdb4a,_0x9be2f=_0xc02dd6[_0x3cdb4a],_0xb8e5a1=nodeSize(_0x2e29c2,_0x3ffa83[_0x3cdb4a]);for(_0x3cdb4a++;_0x3cdb4a<_0x3427bf;_0x3cdb4a++){let _0x455ae3=nodeSize(_0x2e29c2,_0x3ffa83[_0x3cdb4a]);if(_0xb8e5a1+_0x455ae3>=_0x51a1cb)break;_0xb8e5a1+=_0x455ae3;}if(_0x3cdb4a==_0x327739+0x1){if(_0xb8e5a1>_0x51a1cb){let _0x10910c=_0x3ffa83[_0x327739];_0x3a4f75(_0x10910c['children'],_0x10910c['positions'],0x0,_0x10910c['children']['length'],_0xc02dd6[_0x327739]+_0x282b7b);continue;}_0x183243['push'](_0x3ffa83[_0x327739]);}else{let _0x53b961=_0xc02dd6[_0x3cdb4a-0x1]+_0x3ffa83[_0x3cdb4a-0x1]['length']-_0x9be2f;_0x183243['push'](balanceRange(_0x2e29c2,_0x3ffa83,_0xc02dd6,_0x327739,_0x3cdb4a,_0x9be2f,_0x53b961,null,_0xceb563));}_0x5e9e9a['push'](_0x9be2f+_0x282b7b-_0x374b06);}}(_0x2f558e,_0x4e60e3,_0x4b0ddd,_0x43fde5,0x0),(_0x18443a||_0xceb563)(_0x183243,_0x5e9e9a,_0x5e67ee);}class NodeWeakMap{constructor(){this['map']=new WeakMap();}['setBuffer'](_0xbe5e34,_0x5b2d5d,_0x5da845){let _0x5a9a2f=this['map']['get'](_0xbe5e34);_0x5a9a2f||this['map']['set'](_0xbe5e34,_0x5a9a2f=new Map()),_0x5a9a2f['set'](_0x5b2d5d,_0x5da845);}['getBuffer'](_0x311d06,_0x65c303){let _0x3dfd1f=this['map']['get'](_0x311d06);return _0x3dfd1f&&_0x3dfd1f['get'](_0x65c303);}['set'](_0x19a609,_0x30eb89){_0x19a609 instanceof BufferNode?this['setBuffer'](_0x19a609['context']['buffer'],_0x19a609['index'],_0x30eb89):_0x19a609 instanceof TreeNode&&this['map']['set'](_0x19a609['tree'],_0x30eb89);}['get'](_0x4bc2de){return _0x4bc2de instanceof BufferNode?this['getBuffer'](_0x4bc2de['context']['buffer'],_0x4bc2de['index']):_0x4bc2de instanceof TreeNode?this['map']['get'](_0x4bc2de['tree']):void 0x0;}['cursorSet'](_0x1f3203,_0x2304f1){_0x1f3203['buffer']?this['setBuffer'](_0x1f3203['buffer']['buffer'],_0x1f3203['index'],_0x2304f1):this['map']['set'](_0x1f3203['tree'],_0x2304f1);}['cursorGet'](_0x4b57eb){return _0x4b57eb['buffer']?this['getBuffer'](_0x4b57eb['buffer']['buffer'],_0x4b57eb['index']):this['map']['get'](_0x4b57eb['tree']);}}class TreeFragment{constructor(_0x394b18,_0x12b8f7,_0x51df2c,_0x38c148,_0x2616e8=!0x1,_0x383814=!0x1){this['from']=_0x394b18,this['to']=_0x12b8f7,this['tree']=_0x51df2c,this['offset']=_0x38c148,this['open']=(_0x2616e8?0x1:0x0)|(_0x383814?0x2:0x0);}get['openStart'](){return(0x1&this['open'])>0x0;}get['openEnd'](){return(0x2&this['open'])>0x0;}static['addTree'](_0x297f26,_0x4cdda5=[],_0x2f966f=!0x1){let _0x43fff4=[new TreeFragment(0x0,_0x297f26['length'],_0x297f26,0x0,!0x1,_0x2f966f)];for(let _0x5a21c8 of _0x4cdda5)_0x5a21c8['to']>_0x297f26['length']&&_0x43fff4['push'](_0x5a21c8);return _0x43fff4;}static['applyChanges'](_0x1c2cf2,_0x221184,_0x37eada=0x80){if(!_0x221184['length'])return _0x1c2cf2;let _0x27e264=[],_0x298bf6=0x1,_0x2b64eb=_0x1c2cf2['length']?_0x1c2cf2[0x0]:null;for(let _0x2e89e4=0x0,_0x4ded51=0x0,_0x1ac91e=0x0;;_0x2e89e4++){let _0xf4cc25=_0x2e89e4<_0x221184['length']?_0x221184[_0x2e89e4]:null,_0x560b0a=_0xf4cc25?_0xf4cc25['fromA']:0x3b9aca00;if(_0x560b0a-_0x4ded51>=_0x37eada)for(;_0x2b64eb&&_0x2b64eb['from']<_0x560b0a;){let _0x49dadb=_0x2b64eb;if(_0x4ded51>=_0x49dadb['from']||_0x560b0a<=_0x49dadb['to']||_0x1ac91e){let _0x565c72=Math['max'](_0x49dadb['from'],_0x4ded51)-_0x1ac91e,_0x154879=Math['min'](_0x49dadb['to'],_0x560b0a)-_0x1ac91e;_0x49dadb=_0x565c72>=_0x154879?null:new TreeFragment(_0x565c72,_0x154879,_0x49dadb['tree'],_0x49dadb['offset']+_0x1ac91e,_0x2e89e4>0x0,!!_0xf4cc25);}if(_0x49dadb&&_0x27e264['push'](_0x49dadb),_0x2b64eb['to']>_0x560b0a)break;_0x2b64eb=_0x298bf6<_0x1c2cf2['length']?_0x1c2cf2[_0x298bf6++]:null;}if(!_0xf4cc25)break;_0x4ded51=_0xf4cc25['toA'],_0x1ac91e=_0xf4cc25['toA']-_0xf4cc25['toB'];}return _0x27e264;}}class Parser{['startParse'](_0x10f237,_0x323bb2,_0x59902c){return'string'==typeof _0x10f237&&(_0x10f237=new StringInput(_0x10f237)),_0x59902c=_0x59902c?_0x59902c['length']?_0x59902c['map'](_0x58766c=>new Range(_0x58766c['from'],_0x58766c['to'])):[new Range(0x0,0x0)]:[new Range(0x0,_0x10f237['length'])],this['createParse'](_0x10f237,_0x323bb2||[],_0x59902c);}['parse'](_0x369f5b,_0x469e15,_0x1649bf){let _0x3ac18d=this['startParse'](_0x369f5b,_0x469e15,_0x1649bf);for(;;){let _0xfe57dc=_0x3ac18d['advance']();if(_0xfe57dc)return _0xfe57dc;}}}class StringInput{constructor(_0x54c7e3){this['string']=_0x54c7e3;}get['length'](){return this['string']['length'];}['chunk'](_0x5903e2){return this['string']['slice'](_0x5903e2);}get['lineChunks'](){return!0x1;}['read'](_0x33b700,_0xbc40f5){return this['string']['slice'](_0x33b700,_0xbc40f5);}}function parseMixed(_0x35941c){return(_0x3916dd,_0x2cfb34,_0x2e9787,_0x1fe523)=>new MixedParse(_0x3916dd,_0x35941c,_0x2cfb34,_0x2e9787,_0x1fe523);}class InnerParse{constructor(_0x4a38d8,_0x24f3b4,_0x2ac4b0,_0x220e0c,_0x14a87d){this['parser']=_0x4a38d8,this['parse']=_0x24f3b4,this['overlay']=_0x2ac4b0,this['target']=_0x220e0c,this['from']=_0x14a87d;}}function checkRanges(_0x1f8801){if(!_0x1f8801['length']||_0x1f8801['some'](_0x806237=>_0x806237['from']>=_0x806237['to']))throw new RangeError('Invalid\x20inner\x20parse\x20ranges\x20given:\x20'+JSON['stringify'](_0x1f8801));}class ActiveOverlay{constructor(_0x2d3fe0,_0x3df99f,_0x10f2c0,_0x4151b2,_0x26623b,_0x4a4212,_0x40fb9b){this['parser']=_0x2d3fe0,this['predicate']=_0x3df99f,this['mounts']=_0x10f2c0,this['index']=_0x4151b2,this['start']=_0x26623b,this['target']=_0x4a4212,this['prev']=_0x40fb9b,this['depth']=0x0,this['ranges']=[];}}const stoppedInner=new NodeProp({'perNode':!0x0});class MixedParse{constructor(_0x59d770,_0xb1a457,_0x13f942,_0x271131,_0x2dc1ca){this['nest']=_0xb1a457,this['input']=_0x13f942,this['fragments']=_0x271131,this['ranges']=_0x2dc1ca,this['inner']=[],this['innerDone']=0x0,this['baseTree']=null,this['stoppedAt']=null,this['baseParse']=_0x59d770;}['advance'](){if(this['baseParse']){let _0x474ffb=this['baseParse']['advance']();if(!_0x474ffb)return null;if(this['baseParse']=null,this['baseTree']=_0x474ffb,this['startInner'](),null!=this['stoppedAt']){for(let _0x2d26dc of this['inner'])_0x2d26dc['parse']['stopAt'](this['stoppedAt']);}}if(this['innerDone']==this['inner']['length']){let _0x5c60ff=this['baseTree'];return null!=this['stoppedAt']&&(_0x5c60ff=new Tree(_0x5c60ff['type'],_0x5c60ff['children'],_0x5c60ff['positions'],_0x5c60ff['length'],_0x5c60ff['propValues']['concat']([[stoppedInner,this['stoppedAt']]]))),_0x5c60ff;}let _0x1526d2=this['inner'][this['innerDone']],_0x305272=_0x1526d2['parse']['advance']();if(_0x305272){this['innerDone']++;let _0x5701dd=Object['assign'](Object['create'](null),_0x1526d2['target']['props']);_0x5701dd[NodeProp['mounted']['id']]=new MountedTree(_0x305272,_0x1526d2['overlay'],_0x1526d2['parser']),_0x1526d2['target']['props']=_0x5701dd;}return null;}get['parsedPos'](){if(this['baseParse'])return 0x0;let _0xc52a7=this['input']['length'];for(let _0x4858ae=this['innerDone'];_0x4858ae<this['inner']['length'];_0x4858ae++)this['inner'][_0x4858ae]['from']<_0xc52a7&&(_0xc52a7=Math['min'](_0xc52a7,this['inner'][_0x4858ae]['parse']['parsedPos']));return _0xc52a7;}['stopAt'](_0x180cac){if(this['stoppedAt']=_0x180cac,this['baseParse'])this['baseParse']['stopAt'](_0x180cac);else{for(let _0x54e2e5=this['innerDone'];_0x54e2e5<this['inner']['length'];_0x54e2e5++)this['inner'][_0x54e2e5]['parse']['stopAt'](_0x180cac);}}['startInner'](){let _0x129551=new FragmentCursor$2(this['fragments']),_0x163bc3=null,_0x2bd8ca=null,_0x40c44f=new TreeCursor(new TreeNode(this['baseTree'],this['ranges'][0x0]['from'],0x0,null),IterMode['IncludeAnonymous']|IterMode['IgnoreMounts']);t:for(let _0x449fbb,_0x4e4ad8;;){let _0x2ac0d8,_0x1cfea1=!0x0;if(null!=this['stoppedAt']&&_0x40c44f['from']>=this['stoppedAt'])_0x1cfea1=!0x1;else{if(_0x129551['hasNode'](_0x40c44f)){if(_0x163bc3){let _0x10bb56=_0x163bc3['mounts']['find'](_0x2b7d9=>_0x2b7d9['frag']['from']<=_0x40c44f['from']&&_0x2b7d9['frag']['to']>=_0x40c44f['to']&&_0x2b7d9['mount']['overlay']);if(_0x10bb56)for(let _0x19d660 of _0x10bb56['mount']['overlay']){let _0x5b0c2f=_0x19d660['from']+_0x10bb56['pos'],_0x3e822f=_0x19d660['to']+_0x10bb56['pos'];_0x5b0c2f>=_0x40c44f['from']&&_0x3e822f<=_0x40c44f['to']&&!_0x163bc3['ranges']['some'](_0x2c22b1=>_0x2c22b1['from']<_0x3e822f&&_0x2c22b1['to']>_0x5b0c2f)&&_0x163bc3['ranges']['push']({'from':_0x5b0c2f,'to':_0x3e822f});}}_0x1cfea1=!0x1;}else{if(_0x2bd8ca&&(_0x4e4ad8=checkCover(_0x2bd8ca['ranges'],_0x40c44f['from'],_0x40c44f['to'])))_0x1cfea1=0x2!=_0x4e4ad8;else{if(!_0x40c44f['type']['isAnonymous']&&(_0x449fbb=this['nest'](_0x40c44f,this['input']))&&(_0x40c44f['from']<_0x40c44f['to']||!_0x449fbb['overlay'])){_0x40c44f['tree']||(materialize(_0x40c44f),_0x163bc3&&_0x163bc3['depth']++,_0x2bd8ca&&_0x2bd8ca['depth']++);let _0x41ab7c=_0x129551['findMounts'](_0x40c44f['from'],_0x449fbb['parser']);if('function'==typeof _0x449fbb['overlay'])_0x163bc3=new ActiveOverlay(_0x449fbb['parser'],_0x449fbb['overlay'],_0x41ab7c,this['inner']['length'],_0x40c44f['from'],_0x40c44f['tree'],_0x163bc3);else{let _0x34f2bc=punchRanges(this['ranges'],_0x449fbb['overlay']||(_0x40c44f['from']<_0x40c44f['to']?[new Range(_0x40c44f['from'],_0x40c44f['to'])]:[]));_0x34f2bc['length']&&checkRanges(_0x34f2bc),!_0x34f2bc['length']&&_0x449fbb['overlay']||this['inner']['push'](new InnerParse(_0x449fbb['parser'],_0x34f2bc['length']?_0x449fbb['parser']['startParse'](this['input'],enterFragments(_0x41ab7c,_0x34f2bc),_0x34f2bc):_0x449fbb['parser']['startParse'](''),_0x449fbb['overlay']?_0x449fbb['overlay']['map'](_0x3d2092=>new Range(_0x3d2092['from']-_0x40c44f['from'],_0x3d2092['to']-_0x40c44f['from'])):null,_0x40c44f['tree'],_0x34f2bc['length']?_0x34f2bc[0x0]['from']:_0x40c44f['from'])),_0x449fbb['overlay']?_0x34f2bc['length']&&(_0x2bd8ca={'ranges':_0x34f2bc,'depth':0x0,'prev':_0x2bd8ca}):_0x1cfea1=!0x1;}}else{if(_0x163bc3&&(_0x2ac0d8=_0x163bc3['predicate'](_0x40c44f))&&(!0x0===_0x2ac0d8&&(_0x2ac0d8=new Range(_0x40c44f['from'],_0x40c44f['to'])),_0x2ac0d8['from']<_0x2ac0d8['to'])){let _0x143949=_0x163bc3['ranges']['length']-0x1;_0x143949>=0x0&&_0x163bc3['ranges'][_0x143949]['to']==_0x2ac0d8['from']?_0x163bc3['ranges'][_0x143949]={'from':_0x163bc3['ranges'][_0x143949]['from'],'to':_0x2ac0d8['to']}:_0x163bc3['ranges']['push'](_0x2ac0d8);}}}}}if(_0x1cfea1&&_0x40c44f['firstChild']())_0x163bc3&&_0x163bc3['depth']++,_0x2bd8ca&&_0x2bd8ca['depth']++;else for(;!_0x40c44f['nextSibling']();){if(!_0x40c44f['parent']())break t;if(_0x163bc3&&!--_0x163bc3['depth']){let _0x4d147f=punchRanges(this['ranges'],_0x163bc3['ranges']);_0x4d147f['length']&&(checkRanges(_0x4d147f),this['inner']['splice'](_0x163bc3['index'],0x0,new InnerParse(_0x163bc3['parser'],_0x163bc3['parser']['startParse'](this['input'],enterFragments(_0x163bc3['mounts'],_0x4d147f),_0x4d147f),_0x163bc3['ranges']['map'](_0x3ae813=>new Range(_0x3ae813['from']-_0x163bc3['start'],_0x3ae813['to']-_0x163bc3['start'])),_0x163bc3['target'],_0x4d147f[0x0]['from']))),_0x163bc3=_0x163bc3['prev'];}_0x2bd8ca&&!--_0x2bd8ca['depth']&&(_0x2bd8ca=_0x2bd8ca['prev']);}}}}function checkCover(_0x35ca0f,_0xa6ba6a,_0x2cd088){for(let _0xcdb203 of _0x35ca0f){if(_0xcdb203['from']>=_0x2cd088)break;if(_0xcdb203['to']>_0xa6ba6a)return _0xcdb203['from']<=_0xa6ba6a&&_0xcdb203['to']>=_0x2cd088?0x2:0x1;}return 0x0;}function sliceBuf(_0x290c43,_0x3d57d0,_0x143ec6,_0x62517b,_0x1b6fa2,_0x42edbf){if(_0x3d57d0<_0x143ec6){let _0x8298ff=_0x290c43['buffer'][_0x3d57d0+0x1];_0x62517b['push'](_0x290c43['slice'](_0x3d57d0,_0x143ec6,_0x8298ff)),_0x1b6fa2['push'](_0x8298ff-_0x42edbf);}}function materialize(_0x8c1870){let {node:_0x453a7a}=_0x8c1870,_0x12fc91=[],_0x13910e=_0x453a7a['context']['buffer'];do{_0x12fc91['push'](_0x8c1870['index']),_0x8c1870['parent']();}while(!_0x8c1870['tree']);let _0x4d0aeb=_0x8c1870['tree'],_0x10675a=_0x4d0aeb['children']['indexOf'](_0x13910e),_0x24307d=_0x4d0aeb['children'][_0x10675a],_0x35fb95=_0x24307d['buffer'],_0x42d7b0=[_0x10675a];_0x4d0aeb['children'][_0x10675a]=function _0x184ae0(_0x1409f2,_0x56f87f,_0x2c1f2d,_0x471ea9,_0x257449,_0x3de7c8){let _0x882f1a=_0x12fc91[_0x3de7c8],_0x2ca291=[],_0x1bb7c0=[];sliceBuf(_0x24307d,_0x1409f2,_0x882f1a,_0x2ca291,_0x1bb7c0,_0x471ea9);let _0x1dfd7f=_0x35fb95[_0x882f1a+0x1],_0x292bcc=_0x35fb95[_0x882f1a+0x2];_0x42d7b0['push'](_0x2ca291['length']);let _0x163915=_0x3de7c8?_0x184ae0(_0x882f1a+0x4,_0x35fb95[_0x882f1a+0x3],_0x24307d['set']['types'][_0x35fb95[_0x882f1a]],_0x1dfd7f,_0x292bcc-_0x1dfd7f,_0x3de7c8-0x1):_0x453a7a['toTree']();return _0x2ca291['push'](_0x163915),_0x1bb7c0['push'](_0x1dfd7f-_0x471ea9),sliceBuf(_0x24307d,_0x35fb95[_0x882f1a+0x3],_0x56f87f,_0x2ca291,_0x1bb7c0,_0x471ea9),new Tree(_0x2c1f2d,_0x2ca291,_0x1bb7c0,_0x257449);}(0x0,_0x35fb95['length'],NodeType['none'],0x0,_0x24307d['length'],_0x12fc91['length']-0x1);for(let _0x479e13 of _0x42d7b0){let _0x2046b9=_0x8c1870['tree']['children'][_0x479e13],_0x1692b8=_0x8c1870['tree']['positions'][_0x479e13];_0x8c1870['yield'](new TreeNode(_0x2046b9,_0x1692b8+_0x8c1870['from'],_0x479e13,_0x8c1870['_tree']));}}class StructureCursor{constructor(_0x31ddaf,_0x4a6de7){this['offset']=_0x4a6de7,this['done']=!0x1,this['cursor']=_0x31ddaf['cursor'](IterMode['IncludeAnonymous']|IterMode['IgnoreMounts']);}['moveTo'](_0x53c65a){let {cursor:_0x4e60db}=this,_0x20e5a2=_0x53c65a-this['offset'];for(;!this['done']&&_0x4e60db['from']<_0x20e5a2;)_0x4e60db['to']>=_0x53c65a&&_0x4e60db['enter'](_0x20e5a2,0x1,IterMode['IgnoreOverlays']|IterMode['ExcludeBuffers'])||_0x4e60db['next'](!0x1)||(this['done']=!0x0);}['hasNode'](_0x2fb552){if(this['moveTo'](_0x2fb552['from']),!this['done']&&this['cursor']['from']+this['offset']==_0x2fb552['from']&&this['cursor']['tree'])for(let _0x4445ba=this['cursor']['tree'];;){if(_0x4445ba==_0x2fb552['tree'])return!0x0;if(!(_0x4445ba['children']['length']&&0x0==_0x4445ba['positions'][0x0]&&_0x4445ba['children'][0x0]instanceof Tree))break;_0x4445ba=_0x4445ba['children'][0x0];}return!0x1;}}let FragmentCursor$2=class{constructor(_0x2e8a91){var _0x2a965a;if(this['fragments']=_0x2e8a91,this['curTo']=0x0,this['fragI']=0x0,_0x2e8a91['length']){let _0x197590=this['curFrag']=_0x2e8a91[0x0];this['curTo']=null!==(_0x2a965a=_0x197590['tree']['prop'](stoppedInner))&&void 0x0!==_0x2a965a?_0x2a965a:_0x197590['to'],this['inner']=new StructureCursor(_0x197590['tree'],-_0x197590['offset']);}else this['curFrag']=this['inner']=null;}['hasNode'](_0x352eba){for(;this['curFrag']&&_0x352eba['from']>=this['curTo'];)this['nextFrag']();return this['curFrag']&&this['curFrag']['from']<=_0x352eba['from']&&this['curTo']>=_0x352eba['to']&&this['inner']['hasNode'](_0x352eba);}['nextFrag'](){var _0x2ddbf6;if(this['fragI']++,this['fragI']==this['fragments']['length'])this['curFrag']=this['inner']=null;else{let _0x8b2928=this['curFrag']=this['fragments'][this['fragI']];this['curTo']=null!==(_0x2ddbf6=_0x8b2928['tree']['prop'](stoppedInner))&&void 0x0!==_0x2ddbf6?_0x2ddbf6:_0x8b2928['to'],this['inner']=new StructureCursor(_0x8b2928['tree'],-_0x8b2928['offset']);}}['findMounts'](_0x4ff496,_0x37815c){var _0x3f3776;let _0x4b0719=[];if(this['inner']){this['inner']['cursor']['moveTo'](_0x4ff496,0x1);for(let _0xd0c6b=this['inner']['cursor']['node'];_0xd0c6b;_0xd0c6b=_0xd0c6b['parent']){let _0x2647d9=null===(_0x3f3776=_0xd0c6b['tree'])||void 0x0===_0x3f3776?void 0x0:_0x3f3776['prop'](NodeProp['mounted']);if(_0x2647d9&&_0x2647d9['parser']==_0x37815c)for(let _0x353f85=this['fragI'];_0x353f85<this['fragments']['length'];_0x353f85++){let _0x411fe2=this['fragments'][_0x353f85];if(_0x411fe2['from']>=_0xd0c6b['to'])break;_0x411fe2['tree']==this['curFrag']['tree']&&_0x4b0719['push']({'frag':_0x411fe2,'pos':_0xd0c6b['from']-_0x411fe2['offset'],'mount':_0x2647d9});}}}return _0x4b0719;}};function punchRanges(_0x1d1a87,_0x2adcf0){let _0x5932c1=null,_0x3e9d03=_0x2adcf0;for(let _0x1f690b=0x1,_0x26bcbc=0x0;_0x1f690b<_0x1d1a87['length'];_0x1f690b++){let _0x565467=_0x1d1a87[_0x1f690b-0x1]['to'],_0x419dc7=_0x1d1a87[_0x1f690b]['from'];for(;_0x26bcbc<_0x3e9d03['length'];_0x26bcbc++){let _0x41d907=_0x3e9d03[_0x26bcbc];if(_0x41d907['from']>=_0x419dc7)break;_0x41d907['to']<=_0x565467||(_0x5932c1||(_0x3e9d03=_0x5932c1=_0x2adcf0['slice']()),_0x41d907['from']<_0x565467?(_0x5932c1[_0x26bcbc]=new Range(_0x41d907['from'],_0x565467),_0x41d907['to']>_0x419dc7&&_0x5932c1['splice'](_0x26bcbc+0x1,0x0,new Range(_0x419dc7,_0x41d907['to']))):_0x41d907['to']>_0x419dc7?_0x5932c1[_0x26bcbc--]=new Range(_0x419dc7,_0x41d907['to']):_0x5932c1['splice'](_0x26bcbc--,0x1));}}return _0x3e9d03;}function findCoverChanges(_0x4479ef,_0x117c3,_0x1f8d95,_0x2727db){let _0x14666f=0x0,_0x3c6d2a=0x0,_0x5ababc=!0x1,_0x3e1293=!0x1,_0xf53c0f=-0x3b9aca00,_0x369612=[];for(;;){let _0x34ace1=_0x14666f==_0x4479ef['length']?0x3b9aca00:_0x5ababc?_0x4479ef[_0x14666f]['to']:_0x4479ef[_0x14666f]['from'],_0x319ac1=_0x3c6d2a==_0x117c3['length']?0x3b9aca00:_0x3e1293?_0x117c3[_0x3c6d2a]['to']:_0x117c3[_0x3c6d2a]['from'];if(_0x5ababc!=_0x3e1293){let _0x5050cd=Math['max'](_0xf53c0f,_0x1f8d95),_0x1441ac=Math['min'](_0x34ace1,_0x319ac1,_0x2727db);_0x5050cd<_0x1441ac&&_0x369612['push'](new Range(_0x5050cd,_0x1441ac));}if(_0xf53c0f=Math['min'](_0x34ace1,_0x319ac1),0x3b9aca00==_0xf53c0f)break;_0x34ace1==_0xf53c0f&&(_0x5ababc?(_0x5ababc=!0x1,_0x14666f++):_0x5ababc=!0x0),_0x319ac1==_0xf53c0f&&(_0x3e1293?(_0x3e1293=!0x1,_0x3c6d2a++):_0x3e1293=!0x0);}return _0x369612;}function enterFragments(_0x44b90a,_0x4b9ab1){let _0x2918b6=[];for(let {pos:_0x1f04f9,mount:_0xca55b8,frag:_0x5aee73}of _0x44b90a){let _0x389e3c=_0x1f04f9+(_0xca55b8['overlay']?_0xca55b8['overlay'][0x0]['from']:0x0),_0x92c6c8=_0x389e3c+_0xca55b8['tree']['length'],_0x2f83f2=Math['max'](_0x5aee73['from'],_0x389e3c),_0x186d8b=Math['min'](_0x5aee73['to'],_0x92c6c8);if(_0xca55b8['overlay']){let _0x12582c=findCoverChanges(_0x4b9ab1,_0xca55b8['overlay']['map'](_0x42db78=>new Range(_0x42db78['from']+_0x1f04f9,_0x42db78['to']+_0x1f04f9)),_0x2f83f2,_0x186d8b);for(let _0x32be67=0x0,_0x132273=_0x2f83f2;;_0x32be67++){let _0x19e33b=_0x32be67==_0x12582c['length'],_0x4c776d=_0x19e33b?_0x186d8b:_0x12582c[_0x32be67]['from'];if(_0x4c776d>_0x132273&&_0x2918b6['push'](new TreeFragment(_0x132273,_0x4c776d,_0xca55b8['tree'],-_0x389e3c,_0x5aee73['from']>=_0x132273||_0x5aee73['openStart'],_0x5aee73['to']<=_0x4c776d||_0x5aee73['openEnd'])),_0x19e33b)break;_0x132273=_0x12582c[_0x32be67]['to'];}}else _0x2918b6['push'](new TreeFragment(_0x2f83f2,_0x186d8b,_0xca55b8['tree'],-_0x389e3c,_0x5aee73['from']>=_0x389e3c||_0x5aee73['openStart'],_0x5aee73['to']<=_0x92c6c8||_0x5aee73['openEnd']));}return _0x2918b6;}let nextTagID=0x0;class Tag{constructor(_0x5efd6a,_0x465ca6,_0x4698d3,_0x396f52){this['name']=_0x5efd6a,this['set']=_0x465ca6,this['base']=_0x4698d3,this['modified']=_0x396f52,this['id']=nextTagID++;}['toString'](){let {name:_0x9806e0}=this;for(let _0x586797 of this['modified'])_0x586797['name']&&(_0x9806e0=_0x586797['name']+'('+_0x9806e0+')');return _0x9806e0;}static['define'](_0x43523a,_0x4841a3){let _0x576200='string'==typeof _0x43523a?_0x43523a:'?';if(_0x43523a instanceof Tag&&(_0x4841a3=_0x43523a),null==_0x4841a3?void 0x0:_0x4841a3['base'])throw new Error('Can\x20not\x20derive\x20from\x20a\x20modified\x20tag');let _0x1ab184=new Tag(_0x576200,[],null,[]);if(_0x1ab184['set']['push'](_0x1ab184),_0x4841a3){for(let t of _0x4841a3['set'])_0x1ab184['set']['push'](t);}return _0x1ab184;}static['defineModifier'](_0x90165f){let _0x519520=new Modifier(_0x90165f);return _0x4dac2a=>_0x4dac2a['modified']['indexOf'](_0x519520)>-0x1?_0x4dac2a:Modifier['get'](_0x4dac2a['base']||_0x4dac2a,_0x4dac2a['modified']['concat'](_0x519520)['sort']((_0x5a94e0,_0x461d5b)=>_0x5a94e0['id']-_0x461d5b['id']));}}let nextModifierID=0x0;class Modifier{constructor(_0x4b0fd8){this['name']=_0x4b0fd8,this['instances']=[],this['id']=nextModifierID++;}static['get'](_0x5e3812,_0x344b72){if(!_0x344b72['length'])return _0x5e3812;let _0x55d4f9=_0x344b72[0x0]['instances']['find'](t=>t['base']==_0x5e3812&&sameArray(_0x344b72,t['modified']));if(_0x55d4f9)return _0x55d4f9;let _0x15f4dc=[],_0x50ed65=new Tag(_0x5e3812['name'],_0x15f4dc,_0x5e3812,_0x344b72);for(let _0x5afc73 of _0x344b72)_0x5afc73['instances']['push'](_0x50ed65);let _0x1eeb74=powerSet(_0x344b72);for(let _0x42995d of _0x5e3812['set'])if(!_0x42995d['modified']['length']){for(let _0x396808 of _0x1eeb74)_0x15f4dc['push'](Modifier['get'](_0x42995d,_0x396808));}return _0x50ed65;}}function sameArray(_0x5eec1f,_0x37e730){return _0x5eec1f['length']==_0x37e730['length']&&_0x5eec1f['every']((_0x52cba3,_0x2d28e7)=>_0x52cba3==_0x37e730[_0x2d28e7]);}function powerSet(_0x34bb86){let _0x6425b2=[[]];for(let _0x455f9c=0x0;_0x455f9c<_0x34bb86['length'];_0x455f9c++)for(let _0x154c5c=0x0,_0x25bc46=_0x6425b2['length'];_0x154c5c<_0x25bc46;_0x154c5c++)_0x6425b2['push'](_0x6425b2[_0x154c5c]['concat'](_0x34bb86[_0x455f9c]));return _0x6425b2['sort']((_0x2f3d23,_0x37b6fb)=>_0x37b6fb['length']-_0x2f3d23['length']);}function styleTags(_0x8e1ded){let _0xca5301=Object['create'](null);for(let _0x5395a9 in _0x8e1ded){let _0x325080=_0x8e1ded[_0x5395a9];Array['isArray'](_0x325080)||(_0x325080=[_0x325080]);for(let _0x266858 of _0x5395a9['split']('\x20'))if(_0x266858){let _0x2766cf=[],_0x5eb481=0x2,_0x1c676c=_0x266858;for(let _0x2f50d7=0x0;;){if('...'==_0x1c676c&&_0x2f50d7>0x0&&_0x2f50d7+0x3==_0x266858['length']){_0x5eb481=0x1;break;}let _0xf87026=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/['exec'](_0x1c676c);if(!_0xf87026)throw new RangeError('Invalid\x20path:\x20'+_0x266858);if(_0x2766cf['push']('*'==_0xf87026[0x0]?'':'\x22'==_0xf87026[0x0][0x0]?JSON['parse'](_0xf87026[0x0]):_0xf87026[0x0]),_0x2f50d7+=_0xf87026[0x0]['length'],_0x2f50d7==_0x266858['length'])break;let _0x399596=_0x266858[_0x2f50d7++];if(_0x2f50d7==_0x266858['length']&&'!'==_0x399596){_0x5eb481=0x0;break;}if('/'!=_0x399596)throw new RangeError('Invalid\x20path:\x20'+_0x266858);_0x1c676c=_0x266858['slice'](_0x2f50d7);}let _0x5f9b08=_0x2766cf['length']-0x1,_0x2a645e=_0x2766cf[_0x5f9b08];if(!_0x2a645e)throw new RangeError('Invalid\x20path:\x20'+_0x266858);let _0x3332c7=new Rule(_0x325080,_0x5eb481,_0x5f9b08>0x0?_0x2766cf['slice'](0x0,_0x5f9b08):null);_0xca5301[_0x2a645e]=_0x3332c7['sort'](_0xca5301[_0x2a645e]);}}return ruleNodeProp['add'](_0xca5301);}const ruleNodeProp=new NodeProp({'combine'(_0x27c4bd,_0x539566){let _0x1d5902,_0xa9fd49,_0x2366f4;for(;_0x27c4bd||_0x539566;){if(!_0x27c4bd||_0x539566&&_0x27c4bd['depth']>=_0x539566['depth']?(_0x2366f4=_0x539566,_0x539566=_0x539566['next']):(_0x2366f4=_0x27c4bd,_0x27c4bd=_0x27c4bd['next']),_0x1d5902&&_0x1d5902['mode']==_0x2366f4['mode']&&!_0x2366f4['context']&&!_0x1d5902['context'])continue;let _0x1b2ed5=new Rule(_0x2366f4['tags'],_0x2366f4['mode'],_0x2366f4['context']);_0x1d5902?_0x1d5902['next']=_0x1b2ed5:_0xa9fd49=_0x1b2ed5,_0x1d5902=_0x1b2ed5;}return _0xa9fd49;}});class Rule{constructor(_0x4efc6e,_0x2d5683,_0xf0e9fd,_0x599410){this['tags']=_0x4efc6e,this['mode']=_0x2d5683,this['context']=_0xf0e9fd,this['next']=_0x599410;}get['opaque'](){return 0x0==this['mode'];}get['inherit'](){return 0x1==this['mode'];}['sort'](_0x485667){return!_0x485667||_0x485667['depth']<this['depth']?(this['next']=_0x485667,this):(_0x485667['next']=this['sort'](_0x485667['next']),_0x485667);}get['depth'](){return this['context']?this['context']['length']:0x0;}}function tagHighlighter(_0x51a649,_0x3b347b){let _0x190901=Object['create'](null);for(let _0x105f0f of _0x51a649)if(Array['isArray'](_0x105f0f['tag'])){for(let _0x41f5dd of _0x105f0f['tag'])_0x190901[_0x41f5dd['id']]=_0x105f0f['class'];}else _0x190901[_0x105f0f['tag']['id']]=_0x105f0f['class'];let {scope:_0x5bcdd9,all:_0x4152f0=null}=_0x3b347b||{};return{'style':_0x2e1129=>{let _0x3762c5=_0x4152f0;for(let _0x14a632 of _0x2e1129)for(let _0x2eba21 of _0x14a632['set']){let _0x5530f3=_0x190901[_0x2eba21['id']];if(_0x5530f3){_0x3762c5=_0x3762c5?_0x3762c5+'\x20'+_0x5530f3:_0x5530f3;break;}}return _0x3762c5;},'scope':_0x5bcdd9};}function highlightTags(_0x5a2d15,_0x5bebb1){let _0x3e84e7=null;for(let _0x26478d of _0x5a2d15){let _0x10a522=_0x26478d['style'](_0x5bebb1);_0x10a522&&(_0x3e84e7=_0x3e84e7?_0x3e84e7+'\x20'+_0x10a522:_0x10a522);}return _0x3e84e7;}function highlightTree(_0x1ffae3,_0x4a9287,_0x387249,_0x3c1ab0=0x0,_0xb2cfd5=_0x1ffae3['length']){let _0x456338=new HighlightBuilder(_0x3c1ab0,Array['isArray'](_0x4a9287)?_0x4a9287:[_0x4a9287],_0x387249);_0x456338['highlightRange'](_0x1ffae3['cursor'](),_0x3c1ab0,_0xb2cfd5,'',_0x456338['highlighters']),_0x456338['flush'](_0xb2cfd5);}Rule['empty']=new Rule([],0x2,null);class HighlightBuilder{constructor(_0xf86af,_0x51e14a,_0xc0a89a){this['at']=_0xf86af,this['highlighters']=_0x51e14a,this['span']=_0xc0a89a,this['class']='';}['startSpan'](_0x4004af,_0x3a873a){_0x3a873a!=this['class']&&(this['flush'](_0x4004af),_0x4004af>this['at']&&(this['at']=_0x4004af),this['class']=_0x3a873a);}['flush'](_0x19433e){_0x19433e>this['at']&&this['class']&&this['span'](this['at'],_0x19433e,this['class']);}['highlightRange'](_0x45dc67,_0x23fa50,_0x95a948,_0x1f8ec0,_0x3e3513){let {type:_0x4cd4ec,from:_0x4b51d3,to:_0x56a26d}=_0x45dc67;if(_0x4b51d3>=_0x95a948||_0x56a26d<=_0x23fa50)return;_0x4cd4ec['isTop']&&(_0x3e3513=this['highlighters']['filter'](_0x3842bb=>!_0x3842bb['scope']||_0x3842bb['scope'](_0x4cd4ec)));let _0x1963da=_0x1f8ec0,_0x3583fe=getStyleTags(_0x45dc67)||Rule['empty'],_0x306008=highlightTags(_0x3e3513,_0x3583fe['tags']);if(_0x306008&&(_0x1963da&&(_0x1963da+='\x20'),_0x1963da+=_0x306008,0x1==_0x3583fe['mode']&&(_0x1f8ec0+=(_0x1f8ec0?'\x20':'')+_0x306008)),this['startSpan'](Math['max'](_0x23fa50,_0x4b51d3),_0x1963da),_0x3583fe['opaque'])return;let _0x434f4f=_0x45dc67['tree']&&_0x45dc67['tree']['prop'](NodeProp['mounted']);if(_0x434f4f&&_0x434f4f['overlay']){let _0x2de1a4=_0x45dc67['node']['enter'](_0x434f4f['overlay'][0x0]['from']+_0x4b51d3,0x1),_0x1b0393=this['highlighters']['filter'](_0x5d6e6b=>!_0x5d6e6b['scope']||_0x5d6e6b['scope'](_0x434f4f['tree']['type'])),_0x3960d4=_0x45dc67['firstChild']();for(let _0x3dc2eb=0x0,_0x4fc959=_0x4b51d3;;_0x3dc2eb++){let _0x5ce0f9=_0x3dc2eb<_0x434f4f['overlay']['length']?_0x434f4f['overlay'][_0x3dc2eb]:null,_0x23099a=_0x5ce0f9?_0x5ce0f9['from']+_0x4b51d3:_0x56a26d,_0x21c548=Math['max'](_0x23fa50,_0x4fc959),_0x57904d=Math['min'](_0x95a948,_0x23099a);if(_0x21c548<_0x57904d&&_0x3960d4){for(;_0x45dc67['from']<_0x57904d&&(this['highlightRange'](_0x45dc67,_0x21c548,_0x57904d,_0x1f8ec0,_0x3e3513),this['startSpan'](Math['min'](_0x57904d,_0x45dc67['to']),_0x1963da),!(_0x45dc67['to']>=_0x23099a)&&_0x45dc67['nextSibling']()););}if(!_0x5ce0f9||_0x23099a>_0x95a948)break;_0x4fc959=_0x5ce0f9['to']+_0x4b51d3,_0x4fc959>_0x23fa50&&(this['highlightRange'](_0x2de1a4['cursor'](),Math['max'](_0x23fa50,_0x5ce0f9['from']+_0x4b51d3),Math['min'](_0x95a948,_0x4fc959),'',_0x1b0393),this['startSpan'](Math['min'](_0x95a948,_0x4fc959),_0x1963da));}_0x3960d4&&_0x45dc67['parent']();}else{if(_0x45dc67['firstChild']()){_0x434f4f&&(_0x1f8ec0='');do{if(!(_0x45dc67['to']<=_0x23fa50)){if(_0x45dc67['from']>=_0x95a948)break;this['highlightRange'](_0x45dc67,_0x23fa50,_0x95a948,_0x1f8ec0,_0x3e3513),this['startSpan'](Math['min'](_0x95a948,_0x45dc67['to']),_0x1963da);}}while(_0x45dc67['nextSibling']());_0x45dc67['parent']();}}}}function getStyleTags(_0x4334a8){let _0x3d9c28=_0x4334a8['type']['prop'](ruleNodeProp);for(;_0x3d9c28&&_0x3d9c28['context']&&!_0x4334a8['matchContext'](_0x3d9c28['context']);)_0x3d9c28=_0x3d9c28['next'];return _0x3d9c28||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(_0x483852){return Facet['define']({'combine':_0x483852?_0x272322=>_0x272322['concat'](_0x483852):void 0x0});}const sublanguageProp=new NodeProp();class Language{constructor(_0x387e48,_0x51634b,_0x297d88=[],_0xcd842d=''){this['data']=_0x387e48,this['name']=_0xcd842d,EditorState['prototype']['hasOwnProperty']('tree')||Object['defineProperty'](EditorState['prototype'],'tree',{'get'(){return syntaxTree(this);}}),this['parser']=_0x51634b,this['extension']=[language['of'](this),EditorState['languageData']['of']((_0x24a1fd,_0x268f44,_0xf6dc25)=>{let _0x1a742d=topNodeAt(_0x24a1fd,_0x268f44,_0xf6dc25),_0x3cb7ed=_0x1a742d['type']['prop'](languageDataProp);if(!_0x3cb7ed)return[];let _0x350ec3=_0x24a1fd['facet'](_0x3cb7ed),_0x4d73f7=_0x1a742d['type']['prop'](sublanguageProp);if(_0x4d73f7){let _0x696ddf=_0x1a742d['resolve'](_0x268f44-_0x1a742d['from'],_0xf6dc25);for(let _0x4712fe of _0x4d73f7)if(_0x4712fe['test'](_0x696ddf,_0x24a1fd)){let _0x33fd6f=_0x24a1fd['facet'](_0x4712fe['facet']);return'replace'==_0x4712fe['type']?_0x33fd6f:_0x33fd6f['concat'](_0x350ec3);}}return _0x350ec3;})]['concat'](_0x297d88);}['isActiveAt'](_0x1699d8,_0x3866d5,_0x445ae0=-0x1){return topNodeAt(_0x1699d8,_0x3866d5,_0x445ae0)['type']['prop'](languageDataProp)==this['data'];}['findRegions'](_0x3cf8dc){let _0x3b884b=_0x3cf8dc['facet'](language);if((null==_0x3b884b?void 0x0:_0x3b884b['data'])==this['data'])return[{'from':0x0,'to':_0x3cf8dc['doc']['length']}];if(!_0x3b884b||!_0x3b884b['allowsNesting'])return[];let _0x41079e=[],_0x41064f=(_0x45eaea,_0x2c1c31)=>{if(_0x45eaea['prop'](languageDataProp)==this['data'])return void _0x41079e['push']({'from':_0x2c1c31,'to':_0x2c1c31+_0x45eaea['length']});let _0x2ff059=_0x45eaea['prop'](NodeProp['mounted']);if(_0x2ff059){if(_0x2ff059['tree']['prop'](languageDataProp)==this['data']){if(_0x2ff059['overlay']){for(let _0x205c40 of _0x2ff059['overlay'])_0x41079e['push']({'from':_0x205c40['from']+_0x2c1c31,'to':_0x205c40['to']+_0x2c1c31});}else _0x41079e['push']({'from':_0x2c1c31,'to':_0x2c1c31+_0x45eaea['length']});return;}if(_0x2ff059['overlay']){let _0x4758cb=_0x41079e['length'];if(_0x41064f(_0x2ff059['tree'],_0x2ff059['overlay'][0x0]['from']+_0x2c1c31),_0x41079e['length']>_0x4758cb)return;}}for(let _0xbbde98=0x0;_0xbbde98<_0x45eaea['children']['length'];_0xbbde98++){let _0x228179=_0x45eaea['children'][_0xbbde98];_0x228179 instanceof Tree&&_0x41064f(_0x228179,_0x45eaea['positions'][_0xbbde98]+_0x2c1c31);}};return _0x41064f(syntaxTree(_0x3cf8dc),0x0),_0x41079e;}get['allowsNesting'](){return!0x0;}}function topNodeAt(_0x1d286e,_0x537a02,_0x2d7784){let _0x2ba9a0=_0x1d286e['facet'](language),_0x50668d=syntaxTree(_0x1d286e)['topNode'];if(!_0x2ba9a0||_0x2ba9a0['allowsNesting']){for(let _0x3f773e=_0x50668d;_0x3f773e;_0x3f773e=_0x3f773e['enter'](_0x537a02,_0x2d7784,IterMode['ExcludeBuffers']))_0x3f773e['type']['isTop']&&(_0x50668d=_0x3f773e);}return _0x50668d;}Language['setState']=StateEffect['define']();class LRLanguage extends Language{constructor(_0x1b234b,_0x54d91b,_0x1dcd18){super(_0x1b234b,_0x54d91b,[],_0x1dcd18),this['parser']=_0x54d91b;}static['define'](_0x43d57b){let _0x2007a0=defineLanguageFacet(_0x43d57b['languageData']);return new LRLanguage(_0x2007a0,_0x43d57b['parser']['configure']({'props':[languageDataProp['add'](_0x8e3ab9=>_0x8e3ab9['isTop']?_0x2007a0:void 0x0)]}),_0x43d57b['name']);}['configure'](_0xb86132,_0x351c36){return new LRLanguage(this['data'],this['parser']['configure'](_0xb86132),_0x351c36||this['name']);}get['allowsNesting'](){return this['parser']['hasWrappers']();}}function syntaxTree(_0x206630){let _0x2bdb10=_0x206630['field'](Language['state'],!0x1);return _0x2bdb10?_0x2bdb10['tree']:Tree['empty'];}class DocInput{constructor(_0x592128){this['doc']=_0x592128,this['cursorPos']=0x0,this['string']='',this['cursor']=_0x592128['iter']();}get['length'](){return this['doc']['length'];}['syncTo'](_0x363028){return this['string']=this['cursor']['next'](_0x363028-this['cursorPos'])['value'],this['cursorPos']=_0x363028+this['string']['length'],this['cursorPos']-this['string']['length'];}['chunk'](_0x6dc4c1){return this['syncTo'](_0x6dc4c1),this['string'];}get['lineChunks'](){return!0x0;}['read'](_0x727450,_0x44d7c8){let _0x2a0d39=this['cursorPos']-this['string']['length'];return _0x727450<_0x2a0d39||_0x44d7c8>=this['cursorPos']?this['doc']['sliceString'](_0x727450,_0x44d7c8):this['string']['slice'](_0x727450-_0x2a0d39,_0x44d7c8-_0x2a0d39);}}let currentContext=null;class ParseContext{constructor(_0x6c4c5b,_0x1a0ea7,_0x1f5d6a=[],_0x199454,_0x49163a,_0x42ccb6,_0x3de5e9,_0x42077e){this['parser']=_0x6c4c5b,this['state']=_0x1a0ea7,this['fragments']=_0x1f5d6a,this['tree']=_0x199454,this['treeLen']=_0x49163a,this['viewport']=_0x42ccb6,this['skipped']=_0x3de5e9,this['scheduleOn']=_0x42077e,this['parse']=null,this['tempSkipped']=[];}static['create'](_0x99324e,_0x48a47c,_0x3a770d){return new ParseContext(_0x99324e,_0x48a47c,[],Tree['empty'],0x0,_0x3a770d,[],null);}['startParse'](){return this['parser']['startParse'](new DocInput(this['state']['doc']),this['fragments']);}['work'](_0x457c8e,_0x4ce412){return null!=_0x4ce412&&_0x4ce412>=this['state']['doc']['length']&&(_0x4ce412=void 0x0),this['tree']!=Tree['empty']&&this['isDone'](null!=_0x4ce412?_0x4ce412:this['state']['doc']['length'])?(this['takeTree'](),!0x0):this['withContext'](()=>{var _0x481834;if('number'==typeof _0x457c8e){let _0x1d1553=Date['now']()+_0x457c8e;_0x457c8e=()=>Date['now']()>_0x1d1553;}for(this['parse']||(this['parse']=this['startParse']()),null!=_0x4ce412&&(null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x4ce412)&&_0x4ce412<this['state']['doc']['length']&&this['parse']['stopAt'](_0x4ce412);;){let _0x4b3978=this['parse']['advance']();if(_0x4b3978){if(this['fragments']=this['withoutTempSkipped'](TreeFragment['addTree'](_0x4b3978,this['fragments'],null!=this['parse']['stoppedAt'])),this['treeLen']=null!==(_0x481834=this['parse']['stoppedAt'])&&void 0x0!==_0x481834?_0x481834:this['state']['doc']['length'],this['tree']=_0x4b3978,this['parse']=null,!(this['treeLen']<(null!=_0x4ce412?_0x4ce412:this['state']['doc']['length'])))return!0x0;this['parse']=this['startParse']();}if(_0x457c8e())return!0x1;}});}['takeTree'](){let _0x111076,_0x25d1bc;this['parse']&&(_0x111076=this['parse']['parsedPos'])>=this['treeLen']&&((null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x111076)&&this['parse']['stopAt'](_0x111076),this['withContext'](()=>{for(;!(_0x25d1bc=this['parse']['advance']()););}),this['treeLen']=_0x111076,this['tree']=_0x25d1bc,this['fragments']=this['withoutTempSkipped'](TreeFragment['addTree'](this['tree'],this['fragments'],!0x0)),this['parse']=null);}['withContext'](_0x5a03e0){let _0x5bacdc=currentContext;currentContext=this;try{return _0x5a03e0();}finally{currentContext=_0x5bacdc;}}['withoutTempSkipped'](_0x37b3b3){for(let _0x3974f9;_0x3974f9=this['tempSkipped']['pop']();)_0x37b3b3=cutFragments(_0x37b3b3,_0x3974f9['from'],_0x3974f9['to']);return _0x37b3b3;}['changes'](_0x4afde2,_0x4ef48b){let {fragments:_0x4a70be,tree:_0x3ecb04,treeLen:_0x16b1fc,viewport:_0x5776ac,skipped:_0x31bd33}=this;if(this['takeTree'](),!_0x4afde2['empty']){let _0x2bb6d2=[];if(_0x4afde2['iterChangedRanges']((_0x4c4f34,_0x14e7de,_0x2801cb,_0x1a72e1)=>_0x2bb6d2['push']({'fromA':_0x4c4f34,'toA':_0x14e7de,'fromB':_0x2801cb,'toB':_0x1a72e1})),_0x4a70be=TreeFragment['applyChanges'](_0x4a70be,_0x2bb6d2),_0x3ecb04=Tree['empty'],_0x16b1fc=0x0,_0x5776ac={'from':_0x4afde2['mapPos'](_0x5776ac['from'],-0x1),'to':_0x4afde2['mapPos'](_0x5776ac['to'],0x1)},this['skipped']['length']){_0x31bd33=[];for(let _0x15eaca of this['skipped']){let _0x26466b=_0x4afde2['mapPos'](_0x15eaca['from'],0x1),_0xd3f0e8=_0x4afde2['mapPos'](_0x15eaca['to'],-0x1);_0x26466b<_0xd3f0e8&&_0x31bd33['push']({'from':_0x26466b,'to':_0xd3f0e8});}}}return new ParseContext(this['parser'],_0x4ef48b,_0x4a70be,_0x3ecb04,_0x16b1fc,_0x5776ac,_0x31bd33,this['scheduleOn']);}['updateViewport'](_0x48ad4b){if(this['viewport']['from']==_0x48ad4b['from']&&this['viewport']['to']==_0x48ad4b['to'])return!0x1;this['viewport']=_0x48ad4b;let _0x163918=this['skipped']['length'];for(let _0x2cac68=0x0;_0x2cac68<this['skipped']['length'];_0x2cac68++){let {from:_0x3383e7,to:_0x328fa0}=this['skipped'][_0x2cac68];_0x3383e7<_0x48ad4b['to']&&_0x328fa0>_0x48ad4b['from']&&(this['fragments']=cutFragments(this['fragments'],_0x3383e7,_0x328fa0),this['skipped']['splice'](_0x2cac68--,0x1));}return!(this['skipped']['length']>=_0x163918)&&(this['reset'](),!0x0);}['reset'](){this['parse']&&(this['takeTree'](),this['parse']=null);}['skipUntilInView'](_0x453ad3,_0x23b516){this['skipped']['push']({'from':_0x453ad3,'to':_0x23b516});}static['getSkippingParser'](_0x1bf7b1){return new class extends Parser{['createParse'](_0x1c6bd3,_0x4caf45,_0x308e9b){let _0x16f8db=_0x308e9b[0x0]['from'],_0x3956de=_0x308e9b[_0x308e9b['length']-0x1]['to'];return{'parsedPos':_0x16f8db,'advance'(){let _0x1f9ac6=currentContext;if(_0x1f9ac6){for(let _0x35f762 of _0x308e9b)_0x1f9ac6['tempSkipped']['push'](_0x35f762);_0x1bf7b1&&(_0x1f9ac6['scheduleOn']=_0x1f9ac6['scheduleOn']?Promise['all']([_0x1f9ac6['scheduleOn'],_0x1bf7b1]):_0x1bf7b1);}return this['parsedPos']=_0x3956de,new Tree(NodeType['none'],[],[],_0x3956de-_0x16f8db);},'stoppedAt':null,'stopAt'(){}};}}();}['isDone'](_0x2d99db){_0x2d99db=Math['min'](_0x2d99db,this['state']['doc']['length']);let _0x1ea9d3=this['fragments'];return this['treeLen']>=_0x2d99db&&_0x1ea9d3['length']&&0x0==_0x1ea9d3[0x0]['from']&&_0x1ea9d3[0x0]['to']>=_0x2d99db;}static['get'](){return currentContext;}}function cutFragments(_0x235cc2,_0x3fabcd,_0xf09e8a){return TreeFragment['applyChanges'](_0x235cc2,[{'fromA':_0x3fabcd,'toA':_0xf09e8a,'fromB':_0x3fabcd,'toB':_0xf09e8a}]);}class LanguageState{constructor(_0x391152){this['context']=_0x391152,this['tree']=_0x391152['tree'];}['apply'](_0xd6e71d){if(!_0xd6e71d['docChanged']&&this['tree']==this['context']['tree'])return this;let _0x401b9a=this['context']['changes'](_0xd6e71d['changes'],_0xd6e71d['state']),_0x52bfb3=this['context']['treeLen']==_0xd6e71d['startState']['doc']['length']?void 0x0:Math['max'](_0xd6e71d['changes']['mapPos'](this['context']['treeLen']),_0x401b9a['viewport']['to']);return _0x401b9a['work'](0x14,_0x52bfb3)||_0x401b9a['takeTree'](),new LanguageState(_0x401b9a);}static['init'](_0x4319d2){let _0x2da674=Math['min'](0xbb8,_0x4319d2['doc']['length']),_0xa9175=ParseContext['create'](_0x4319d2['facet'](language)['parser'],_0x4319d2,{'from':0x0,'to':_0x2da674});return _0xa9175['work'](0x14,_0x2da674)||_0xa9175['takeTree'](),new LanguageState(_0xa9175);}}Language['state']=StateField['define']({'create':LanguageState['init'],'update'(_0x189853,_0x4fbf52){for(let _0x4d2ed3 of _0x4fbf52['effects'])if(_0x4d2ed3['is'](Language['setState']))return _0x4d2ed3['value'];return _0x4fbf52['startState']['facet'](language)!=_0x4fbf52['state']['facet'](language)?LanguageState['init'](_0x4fbf52['state']):_0x189853['apply'](_0x4fbf52);}});let requestIdle=_0x1993f5=>{let _0xf00c38=setTimeout(()=>_0x1993f5(),0x1f4);return()=>clearTimeout(_0xf00c38);};'undefined'!=typeof requestIdleCallback&&(requestIdle=_0x612f91=>{let _0x1ea04c=-0x1,_0x58a1bb=setTimeout(()=>{_0x1ea04c=requestIdleCallback(_0x612f91,{'timeout':0x190});},0x64);return()=>_0x1ea04c<0x0?clearTimeout(_0x58a1bb):cancelIdleCallback(_0x1ea04c);});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(_0xc503ce){this['view']=_0xc503ce,this['working']=null,this['workScheduled']=0x0,this['chunkEnd']=-0x1,this['chunkBudget']=-0x1,this['work']=this['work']['bind'](this),this['scheduleWork']();}['update'](_0x1608d0){let _0x11df36=this['view']['state']['field'](Language['state'])['context'];(_0x11df36['updateViewport'](_0x1608d0['view']['viewport'])||this['view']['viewport']['to']>_0x11df36['treeLen'])&&this['scheduleWork'](),(_0x1608d0['docChanged']||_0x1608d0['selectionSet'])&&(this['view']['hasFocus']&&(this['chunkBudget']+=0x32),this['scheduleWork']()),this['checkAsyncSchedule'](_0x11df36);}['scheduleWork'](){if(this['working'])return;let {state:_0x4694e8}=this['view'],_0x406488=_0x4694e8['field'](Language['state']);_0x406488['tree']==_0x406488['context']['tree']&&_0x406488['context']['isDone'](_0x4694e8['doc']['length'])||(this['working']=requestIdle(this['work']));}['work'](_0x2c4eb2){this['working']=null;let _0x1265cd=Date['now']();if(this['chunkEnd']<_0x1265cd&&(this['chunkEnd']<0x0||this['view']['hasFocus'])&&(this['chunkEnd']=_0x1265cd+0x7530,this['chunkBudget']=0xbb8),this['chunkBudget']<=0x0)return;let {state:_0x42fd60,viewport:{to:_0x165c14}}=this['view'],_0x10abb5=_0x42fd60['field'](Language['state']);if(_0x10abb5['tree']==_0x10abb5['context']['tree']&&_0x10abb5['context']['isDone'](_0x165c14+0x186a0))return;let _0x164986=Date['now']()+Math['min'](this['chunkBudget'],0x64,_0x2c4eb2&&!isInputPending?Math['max'](0x19,_0x2c4eb2['timeRemaining']()-0x5):0x3b9aca00),_0x434531=_0x10abb5['context']['treeLen']<_0x165c14&&_0x42fd60['doc']['length']>_0x165c14+0x3e8,_0x41b414=_0x10abb5['context']['work'](()=>isInputPending&&isInputPending()||Date['now']()>_0x164986,_0x165c14+(_0x434531?0x0:0x186a0));this['chunkBudget']-=Date['now']()-_0x1265cd,(_0x41b414||this['chunkBudget']<=0x0)&&(_0x10abb5['context']['takeTree'](),this['view']['dispatch']({'effects':Language['setState']['of'](new LanguageState(_0x10abb5['context']))})),this['chunkBudget']>0x0&&(!_0x41b414||_0x434531)&&this['scheduleWork'](),this['checkAsyncSchedule'](_0x10abb5['context']);}['checkAsyncSchedule'](_0x24e0ac){_0x24e0ac['scheduleOn']&&(this['workScheduled']++,_0x24e0ac['scheduleOn']['then'](()=>this['scheduleWork']())['catch'](_0x47e9fb=>logException(this['view']['state'],_0x47e9fb))['then'](()=>this['workScheduled']--),_0x24e0ac['scheduleOn']=null);}['destroy'](){this['working']&&this['working']();}['isWorking'](){return!!(this['working']||this['workScheduled']>0x0);}},{'eventHandlers':{'focus'(){this['scheduleWork']();}}}),language=Facet['define']({'combine':_0x1e5e64=>_0x1e5e64['length']?_0x1e5e64[0x0]:null,'enables':_0x3bd4a9=>[Language['state'],parseWorker,EditorView['contentAttributes']['compute']([_0x3bd4a9],_0x4236a0=>{let _0x322cb6=_0x4236a0['facet'](_0x3bd4a9);return _0x322cb6&&_0x322cb6['name']?{'data-language':_0x322cb6['name']}:{};})]});class LanguageSupport{constructor(_0x292de0,_0x4d05b6=[]){this['language']=_0x292de0,this['support']=_0x4d05b6,this['extension']=[_0x292de0,_0x4d05b6];}}class LanguageDescription{constructor(_0x59ee46,_0x455d11,_0x3be639,_0x457ee5,_0xe7be46,_0x114642=void 0x0){this['name']=_0x59ee46,this['alias']=_0x455d11,this['extensions']=_0x3be639,this['filename']=_0x457ee5,this['loadFunc']=_0xe7be46,this['support']=_0x114642,this['loading']=null;}['load'](){return this['loading']||(this['loading']=this['loadFunc']()['then'](_0x350fed=>this['support']=_0x350fed,_0x12309d=>{throw this['loading']=null,_0x12309d;}));}static['of'](_0x1c014d){let {load:_0x1ea39e,support:_0x1d1575}=_0x1c014d;if(!_0x1ea39e){if(!_0x1d1575)throw new RangeError('Must\x20pass\x20either\x20\x27load\x27\x20or\x20\x27support\x27\x20to\x20LanguageDescription.of');_0x1ea39e=()=>Promise['resolve'](_0x1d1575);}return new LanguageDescription(_0x1c014d['name'],(_0x1c014d['alias']||[])['concat'](_0x1c014d['name'])['map'](_0xea676a=>_0xea676a['toLowerCase']()),_0x1c014d['extensions']||[],_0x1c014d['filename'],_0x1ea39e,_0x1d1575);}static['matchFilename'](_0x1c6b04,_0x5284e6){for(let _0x4137f7 of _0x1c6b04)if(_0x4137f7['filename']&&_0x4137f7['filename']['test'](_0x5284e6))return _0x4137f7;let _0xa2cfdf=/\.([^.]+)$/['exec'](_0x5284e6);if(_0xa2cfdf){for(let _0x86ae7f of _0x1c6b04)if(_0x86ae7f['extensions']['indexOf'](_0xa2cfdf[0x1])>-0x1)return _0x86ae7f;}return null;}static['matchLanguageName'](_0x4df48e,_0x247001,_0x3295af=!0x0){_0x247001=_0x247001['toLowerCase']();for(let _0x38c777 of _0x4df48e)if(_0x38c777['alias']['some'](_0x24337a=>_0x24337a==_0x247001))return _0x38c777;if(_0x3295af){for(let _0x16e2a0 of _0x4df48e)for(let _0x52db61 of _0x16e2a0['alias']){let _0xf7bd21=_0x247001['indexOf'](_0x52db61);if(_0xf7bd21>-0x1&&(_0x52db61['length']>0x2||!/\w/['test'](_0x247001[_0xf7bd21-0x1])&&!/\w/['test'](_0x247001[_0xf7bd21+_0x52db61['length']])))return _0x16e2a0;}}return null;}}const indentService=Facet['define'](),indentUnit=Facet['define']({'combine':_0x2d0ab5=>{if(!_0x2d0ab5['length'])return'\x20\x20';let _0x1ff5d4=_0x2d0ab5[0x0];if(!_0x1ff5d4||/\S/['test'](_0x1ff5d4)||Array['from'](_0x1ff5d4)['some'](_0x2dcaa3=>_0x2dcaa3!=_0x1ff5d4[0x0]))throw new Error('Invalid\x20indent\x20unit:\x20'+JSON['stringify'](_0x2d0ab5[0x0]));return _0x1ff5d4;}});function getIndentUnit(_0x1ce394){let _0x5acda3=_0x1ce394['facet'](indentUnit);return 0x9==_0x5acda3['charCodeAt'](0x0)?_0x1ce394['tabSize']*_0x5acda3['length']:_0x5acda3['length'];}function indentString(_0x23fad5,_0x2d347b){let _0x15bd14='',_0x1cbbed=_0x23fad5['tabSize'],_0x2b19e4=_0x23fad5['facet'](indentUnit)[0x0];if('\x09'==_0x2b19e4){for(;_0x2d347b>=_0x1cbbed;)_0x15bd14+='\x09',_0x2d347b-=_0x1cbbed;_0x2b19e4='\x20';}for(let _0x28eb41=0x0;_0x28eb41<_0x2d347b;_0x28eb41++)_0x15bd14+=_0x2b19e4;return _0x15bd14;}function getIndentation(_0x59fc33,_0x4a0110){_0x59fc33 instanceof EditorState&&(_0x59fc33=new IndentContext(_0x59fc33));for(let _0x20b9d5 of _0x59fc33['state']['facet'](indentService)){let _0x509308=_0x20b9d5(_0x59fc33,_0x4a0110);if(void 0x0!==_0x509308)return _0x509308;}let _0x49d6bb=syntaxTree(_0x59fc33['state']);return _0x49d6bb['length']>=_0x4a0110?syntaxIndentation(_0x59fc33,_0x49d6bb,_0x4a0110):null;}class IndentContext{constructor(_0x4653d4,_0x1a4b5a={}){this['state']=_0x4653d4,this['options']=_0x1a4b5a,this['unit']=getIndentUnit(_0x4653d4);}['lineAt'](_0x4a2d0b,_0x47ae3e=0x1){let _0x1151a5=this['state']['doc']['lineAt'](_0x4a2d0b),{simulateBreak:_0x4120c1,simulateDoubleBreak:_0x3fc050}=this['options'];return null!=_0x4120c1&&_0x4120c1>=_0x1151a5['from']&&_0x4120c1<=_0x1151a5['to']?_0x3fc050&&_0x4120c1==_0x4a2d0b?{'text':'','from':_0x4a2d0b}:(_0x47ae3e<0x0?_0x4120c1<_0x4a2d0b:_0x4120c1<=_0x4a2d0b)?{'text':_0x1151a5['text']['slice'](_0x4120c1-_0x1151a5['from']),'from':_0x4120c1}:{'text':_0x1151a5['text']['slice'](0x0,_0x4120c1-_0x1151a5['from']),'from':_0x1151a5['from']}:_0x1151a5;}['textAfterPos'](_0x376f3a,_0x132515=0x1){if(this['options']['simulateDoubleBreak']&&_0x376f3a==this['options']['simulateBreak'])return'';let {text:_0x1b76bf,from:_0x75bab8}=this['lineAt'](_0x376f3a,_0x132515);return _0x1b76bf['slice'](_0x376f3a-_0x75bab8,Math['min'](_0x1b76bf['length'],_0x376f3a+0x64-_0x75bab8));}['column'](_0x4da4dc,_0x561751=0x1){let {text:_0x2968c2,from:_0x563174}=this['lineAt'](_0x4da4dc,_0x561751),_0x4fb84f=this['countColumn'](_0x2968c2,_0x4da4dc-_0x563174),_0x491b6c=this['options']['overrideIndentation']?this['options']['overrideIndentation'](_0x563174):-0x1;return _0x491b6c>-0x1&&(_0x4fb84f+=_0x491b6c-this['countColumn'](_0x2968c2,_0x2968c2['search'](/\S|$/))),_0x4fb84f;}['countColumn'](_0x26eded,_0x4b0bcd=_0x26eded['length']){return countColumn(_0x26eded,this['state']['tabSize'],_0x4b0bcd);}['lineIndent'](_0x58bb45,_0x148a95=0x1){let {text:_0x22e57a,from:_0x48cf20}=this['lineAt'](_0x58bb45,_0x148a95),_0x499367=this['options']['overrideIndentation'];if(_0x499367){let _0x1815f5=_0x499367(_0x48cf20);if(_0x1815f5>-0x1)return _0x1815f5;}return this['countColumn'](_0x22e57a,_0x22e57a['search'](/\S|$/));}get['simulatedBreak'](){return this['options']['simulateBreak']||null;}}const indentNodeProp=new NodeProp();function syntaxIndentation(_0xebbf2f,_0x3aba05,_0x4bb221){let _0x39c93e=_0x3aba05['resolveStack'](_0x4bb221),_0x374e8a=_0x3aba05['resolveInner'](_0x4bb221,-0x1)['resolve'](_0x4bb221,0x0)['enterUnfinishedNodesBefore'](_0x4bb221);if(_0x374e8a!=_0x39c93e['node']){let _0x20bd78=[];for(let _0x44bcee=_0x374e8a;_0x44bcee&&!(_0x44bcee['from']<_0x39c93e['node']['from']||_0x44bcee['to']>_0x39c93e['node']['to']||_0x44bcee['from']==_0x39c93e['node']['from']&&_0x44bcee['type']==_0x39c93e['node']['type']);_0x44bcee=_0x44bcee['parent'])_0x20bd78['push'](_0x44bcee);for(let _0x6ec66a=_0x20bd78['length']-0x1;_0x6ec66a>=0x0;_0x6ec66a--)_0x39c93e={'node':_0x20bd78[_0x6ec66a],'next':_0x39c93e};}return indentFor(_0x39c93e,_0xebbf2f,_0x4bb221);}function indentFor(_0x271921,_0x2d1e43,_0x485efa){for(let _0x5c6ea7=_0x271921;_0x5c6ea7;_0x5c6ea7=_0x5c6ea7['next']){let _0x17e327=indentStrategy(_0x5c6ea7['node']);if(_0x17e327)return _0x17e327(TreeIndentContext['create'](_0x2d1e43,_0x485efa,_0x5c6ea7));}return 0x0;}function ignoreClosed(_0x5683d8){return _0x5683d8['pos']==_0x5683d8['options']['simulateBreak']&&_0x5683d8['options']['simulateDoubleBreak'];}function indentStrategy(_0x2a78b5){let _0x115e3e=_0x2a78b5['type']['prop'](indentNodeProp);if(_0x115e3e)return _0x115e3e;let _0x54551d,_0x408625=_0x2a78b5['firstChild'];if(_0x408625&&(_0x54551d=_0x408625['type']['prop'](NodeProp['closedBy']))){let _0x20bcb7=_0x2a78b5['lastChild'],_0x1ffcfe=_0x20bcb7&&_0x54551d['indexOf'](_0x20bcb7['name'])>-0x1;return _0x36d0f6=>delimitedStrategy(_0x36d0f6,!0x0,0x1,void 0x0,_0x1ffcfe&&!ignoreClosed(_0x36d0f6)?_0x20bcb7['from']:void 0x0);}return null==_0x2a78b5['parent']?topIndent:null;}function topIndent(){return 0x0;}class TreeIndentContext extends IndentContext{constructor(_0x2b4cdb,_0x70540c,_0x94356e){super(_0x2b4cdb['state'],_0x2b4cdb['options']),this['base']=_0x2b4cdb,this['pos']=_0x70540c,this['context']=_0x94356e;}get['node'](){return this['context']['node'];}static['create'](_0x31506b,_0x19eab7,_0x294edd){return new TreeIndentContext(_0x31506b,_0x19eab7,_0x294edd);}get['textAfter'](){return this['textAfterPos'](this['pos']);}get['baseIndent'](){return this['baseIndentFor'](this['node']);}['baseIndentFor'](_0x33681d){let _0x4f5a8a=this['state']['doc']['lineAt'](_0x33681d['from']);for(;;){let _0x2e8b51=_0x33681d['resolve'](_0x4f5a8a['from']);for(;_0x2e8b51['parent']&&_0x2e8b51['parent']['from']==_0x2e8b51['from'];)_0x2e8b51=_0x2e8b51['parent'];if(isParent(_0x2e8b51,_0x33681d))break;_0x4f5a8a=this['state']['doc']['lineAt'](_0x2e8b51['from']);}return this['lineIndent'](_0x4f5a8a['from']);}['continue'](){return indentFor(this['context']['next'],this['base'],this['pos']);}}function isParent(_0x18030a,_0x285a55){for(let _0x5acfda=_0x285a55;_0x5acfda;_0x5acfda=_0x5acfda['parent'])if(_0x18030a==_0x5acfda)return!0x0;return!0x1;}function bracketedAligned(_0x414727){let _0x5193dd=_0x414727['node'],_0x266d2a=_0x5193dd['childAfter'](_0x5193dd['from']),_0x4afdc8=_0x5193dd['lastChild'];if(!_0x266d2a)return null;let _0x19e46d=_0x414727['options']['simulateBreak'],_0x3bed96=_0x414727['state']['doc']['lineAt'](_0x266d2a['from']),_0x55d73c=null==_0x19e46d||_0x19e46d<=_0x3bed96['from']?_0x3bed96['to']:Math['min'](_0x3bed96['to'],_0x19e46d);for(let _0x90efa0=_0x266d2a['to'];;){let _0x274990=_0x5193dd['childAfter'](_0x90efa0);if(!_0x274990||_0x274990==_0x4afdc8)return null;if(!_0x274990['type']['isSkipped']){if(_0x274990['from']>=_0x55d73c)return null;let _0x159701=/^ */['exec'](_0x3bed96['text']['slice'](_0x266d2a['to']-_0x3bed96['from']))[0x0]['length'];return{'from':_0x266d2a['from'],'to':_0x266d2a['to']+_0x159701};}_0x90efa0=_0x274990['to'];}}function delimitedIndent({closing:_0x9e4b9b,align:_0x741c2e=!0x0,units:_0x141627=0x1}){return _0x4ba8df=>delimitedStrategy(_0x4ba8df,_0x741c2e,_0x141627,_0x9e4b9b);}function delimitedStrategy(_0x4fb25a,_0x29cbe6,_0x13d8d2,_0x4853e4,_0x26edcb){let _0x397b85=_0x4fb25a['textAfter'],_0x1855cb=_0x397b85['match'](/^\s*/)[0x0]['length'],_0x550ae0=_0x4853e4&&_0x397b85['slice'](_0x1855cb,_0x1855cb+_0x4853e4['length'])==_0x4853e4||_0x26edcb==_0x4fb25a['pos']+_0x1855cb,_0x4b89c6=_0x29cbe6?bracketedAligned(_0x4fb25a):null;return _0x4b89c6?_0x550ae0?_0x4fb25a['column'](_0x4b89c6['from']):_0x4fb25a['column'](_0x4b89c6['to']):_0x4fb25a['baseIndent']+(_0x550ae0?0x0:_0x4fb25a['unit']*_0x13d8d2);}const flatIndent=_0x4d40ca=>_0x4d40ca['baseIndent'];function continuedIndent({except:_0xa832ae,units:_0x10fb57=0x1}={}){return _0x425af0=>{let _0x470cf1=_0xa832ae&&_0xa832ae['test'](_0x425af0['textAfter']);return _0x425af0['baseIndent']+(_0x470cf1?0x0:_0x10fb57*_0x425af0['unit']);};}const DontIndentBeyond=0xc8;function indentOnInput(){return EditorState['transactionFilter']['of'](_0x281bfe=>{if(!_0x281bfe['docChanged']||!_0x281bfe['isUserEvent']('input.type')&&!_0x281bfe['isUserEvent']('input.complete'))return _0x281bfe;let _0x34a6ba=_0x281bfe['startState']['languageDataAt']('indentOnInput',_0x281bfe['startState']['selection']['main']['head']);if(!_0x34a6ba['length'])return _0x281bfe;let _0x28ce81=_0x281bfe['newDoc'],{head:_0x20f1d5}=_0x281bfe['newSelection']['main'],_0x5208df=_0x28ce81['lineAt'](_0x20f1d5);if(_0x20f1d5>_0x5208df['from']+DontIndentBeyond)return _0x281bfe;let _0x40b259=_0x28ce81['sliceString'](_0x5208df['from'],_0x20f1d5);if(!_0x34a6ba['some'](_0x3b0992=>_0x3b0992['test'](_0x40b259)))return _0x281bfe;let {state:_0x44cef6}=_0x281bfe,_0x467b7a=-0x1,_0x4b8bc7=[];for(let {head:_0x150612}of _0x44cef6['selection']['ranges']){let _0x260556=_0x44cef6['doc']['lineAt'](_0x150612);if(_0x260556['from']==_0x467b7a)continue;_0x467b7a=_0x260556['from'];let _0xc2966d=getIndentation(_0x44cef6,_0x260556['from']);if(null==_0xc2966d)continue;let _0x177594=/^\s*/['exec'](_0x260556['text'])[0x0],_0x10bbcb=indentString(_0x44cef6,_0xc2966d);_0x177594!=_0x10bbcb&&_0x4b8bc7['push']({'from':_0x260556['from'],'to':_0x260556['from']+_0x177594['length'],'insert':_0x10bbcb});}return _0x4b8bc7['length']?[_0x281bfe,{'changes':_0x4b8bc7,'sequential':!0x0}]:_0x281bfe;});}const foldService=Facet['define'](),foldNodeProp=new NodeProp();function foldInside(_0x2c60d5){let _0x5a7a69=_0x2c60d5['firstChild'],_0x5bc6f3=_0x2c60d5['lastChild'];return _0x5a7a69&&_0x5a7a69['to']<_0x5bc6f3['from']?{'from':_0x5a7a69['to'],'to':_0x5bc6f3['type']['isError']?_0x2c60d5['to']:_0x5bc6f3['from']}:null;}function syntaxFolding(_0x333115,_0x130b3d,_0x518fb6){let _0x520196=syntaxTree(_0x333115);if(_0x520196['length']<_0x518fb6)return null;let _0x2b2584=null;for(let _0x9bf6bd=_0x520196['resolveStack'](_0x518fb6,0x1);_0x9bf6bd;_0x9bf6bd=_0x9bf6bd['next']){let _0x4bbfcc=_0x9bf6bd['node'];if(_0x4bbfcc['to']<=_0x518fb6||_0x4bbfcc['from']>_0x518fb6)continue;if(_0x2b2584&&_0x4bbfcc['from']<_0x130b3d)break;let _0x48d5e9=_0x4bbfcc['type']['prop'](foldNodeProp);if(_0x48d5e9&&(_0x4bbfcc['to']<_0x520196['length']-0x32||_0x520196['length']==_0x333115['doc']['length']||!isUnfinished(_0x4bbfcc))){let _0x2adf87=_0x48d5e9(_0x4bbfcc,_0x333115);_0x2adf87&&_0x2adf87['from']<=_0x518fb6&&_0x2adf87['from']>=_0x130b3d&&_0x2adf87['to']>_0x518fb6&&(_0x2b2584=_0x2adf87);}}return _0x2b2584;}function isUnfinished(_0x97da71){let _0x510f91=_0x97da71['lastChild'];return _0x510f91&&_0x510f91['to']==_0x97da71['to']&&_0x510f91['type']['isError'];}function foldable(_0x4080c8,_0x6f9751,_0x4a28d8){for(let _0x51decd of _0x4080c8['facet'](foldService)){let _0x15c564=_0x51decd(_0x4080c8,_0x6f9751,_0x4a28d8);if(_0x15c564)return _0x15c564;}return syntaxFolding(_0x4080c8,_0x6f9751,_0x4a28d8);}function mapRange(_0xb09466,_0x25c4f8){let _0x42656e=_0x25c4f8['mapPos'](_0xb09466['from'],0x1),_0x3a8536=_0x25c4f8['mapPos'](_0xb09466['to'],-0x1);return _0x42656e>=_0x3a8536?void 0x0:{'from':_0x42656e,'to':_0x3a8536};}const foldEffect=StateEffect['define']({'map':mapRange}),unfoldEffect=StateEffect['define']({'map':mapRange});function selectedLines(_0x4285a9){let _0x17eb13=[];for(let {head:_0x282b1f}of _0x4285a9['state']['selection']['ranges'])_0x17eb13['some'](_0x1f131b=>_0x1f131b['from']<=_0x282b1f&&_0x1f131b['to']>=_0x282b1f)||_0x17eb13['push'](_0x4285a9['lineBlockAt'](_0x282b1f));return _0x17eb13;}const foldState=StateField['define']({'create':()=>Decoration['none'],'update'(_0x34d5ec,_0x3b8d83){_0x3b8d83['isUserEvent']('delete')&&_0x3b8d83['changes']['iterChangedRanges']((_0x2d34ce,_0x3ed329)=>_0x34d5ec=clearTouchedFolds(_0x34d5ec,_0x2d34ce,_0x3ed329)),_0x34d5ec=_0x34d5ec['map'](_0x3b8d83['changes']);for(let _0x9dbf6f of _0x3b8d83['effects'])if(_0x9dbf6f['is'](foldEffect)&&!foldExists(_0x34d5ec,_0x9dbf6f['value']['from'],_0x9dbf6f['value']['to'])){let {preparePlaceholder:_0x46d0b1}=_0x3b8d83['state']['facet'](foldConfig),_0x2a188e=_0x46d0b1?Decoration['replace']({'widget':new PreparedFoldWidget(_0x46d0b1(_0x3b8d83['state'],_0x9dbf6f['value']))}):foldWidget;_0x34d5ec=_0x34d5ec['update']({'add':[_0x2a188e['range'](_0x9dbf6f['value']['from'],_0x9dbf6f['value']['to'])]});}else _0x9dbf6f['is'](unfoldEffect)&&(_0x34d5ec=_0x34d5ec['update']({'filter':(_0x362a24,_0x226088)=>_0x9dbf6f['value']['from']!=_0x362a24||_0x9dbf6f['value']['to']!=_0x226088,'filterFrom':_0x9dbf6f['value']['from'],'filterTo':_0x9dbf6f['value']['to']}));return _0x3b8d83['selection']&&(_0x34d5ec=clearTouchedFolds(_0x34d5ec,_0x3b8d83['selection']['main']['head'])),_0x34d5ec;},'provide':_0x4c0e69=>EditorView['decorations']['from'](_0x4c0e69),'toJSON'(_0x559a0a,_0x5aa482){let _0x439897=[];return _0x559a0a['between'](0x0,_0x5aa482['doc']['length'],(_0x4ebadb,_0x335603)=>{_0x439897['push'](_0x4ebadb,_0x335603);}),_0x439897;},'fromJSON'(_0x147a78){if(!Array['isArray'](_0x147a78)||_0x147a78['length']%0x2)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');let _0x253e10=[];for(let _0x53dabb=0x0;_0x53dabb<_0x147a78['length'];){let _0x5c17f9=_0x147a78[_0x53dabb++],_0x56788b=_0x147a78[_0x53dabb++];if('number'!=typeof _0x5c17f9||'number'!=typeof _0x56788b)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');_0x253e10['push'](foldWidget['range'](_0x5c17f9,_0x56788b));}return Decoration['set'](_0x253e10,!0x0);}});function clearTouchedFolds(_0x2d6ab7,_0x569553,_0x3870a6=_0x569553){let _0xe376f5=!0x1;return _0x2d6ab7['between'](_0x569553,_0x3870a6,(_0xf2f1e6,_0x4a2bee)=>{_0xf2f1e6<_0x3870a6&&_0x4a2bee>_0x569553&&(_0xe376f5=!0x0);}),_0xe376f5?_0x2d6ab7['update']({'filterFrom':_0x569553,'filterTo':_0x3870a6,'filter':(_0x498dd4,_0x2c7280)=>_0x498dd4>=_0x3870a6||_0x2c7280<=_0x569553}):_0x2d6ab7;}function findFold(_0xf56c4d,_0x23e3b4,_0x177982){var _0x129760;let _0x4b73ba=null;return null===(_0x129760=_0xf56c4d['field'](foldState,!0x1))||void 0x0===_0x129760||_0x129760['between'](_0x23e3b4,_0x177982,(_0x1a96c5,_0x26a63a)=>{(!_0x4b73ba||_0x4b73ba['from']>_0x1a96c5)&&(_0x4b73ba={'from':_0x1a96c5,'to':_0x26a63a});}),_0x4b73ba;}function foldExists(_0x45ac86,_0x4ff562,_0x3752f3){let _0x1d214c=!0x1;return _0x45ac86['between'](_0x4ff562,_0x4ff562,(_0x143dd4,_0x3b0076)=>{_0x143dd4==_0x4ff562&&_0x3b0076==_0x3752f3&&(_0x1d214c=!0x0);}),_0x1d214c;}function maybeEnable(_0x56ebce,_0x1fc088){return _0x56ebce['field'](foldState,!0x1)?_0x1fc088:_0x1fc088['concat'](StateEffect['appendConfig']['of'](codeFolding()));}const foldCode=_0x2d294b=>{for(let _0x3db565 of selectedLines(_0x2d294b)){let _0x138bb3=foldable(_0x2d294b['state'],_0x3db565['from'],_0x3db565['to']);if(_0x138bb3)return _0x2d294b['dispatch']({'effects':maybeEnable(_0x2d294b['state'],[foldEffect['of'](_0x138bb3),announceFold(_0x2d294b,_0x138bb3)])}),!0x0;}return!0x1;},unfoldCode=_0x165775=>{if(!_0x165775['state']['field'](foldState,!0x1))return!0x1;let _0x37d49c=[];for(let _0x5980e9 of selectedLines(_0x165775)){let _0x4d5ff8=findFold(_0x165775['state'],_0x5980e9['from'],_0x5980e9['to']);_0x4d5ff8&&_0x37d49c['push'](unfoldEffect['of'](_0x4d5ff8),announceFold(_0x165775,_0x4d5ff8,!0x1));}return _0x37d49c['length']&&_0x165775['dispatch']({'effects':_0x37d49c}),_0x37d49c['length']>0x0;};function announceFold(_0x47f9e9,_0xc4bfd2,_0x395a86=!0x0){let _0x57c930=_0x47f9e9['state']['doc']['lineAt'](_0xc4bfd2['from'])['number'],_0x48b1d2=_0x47f9e9['state']['doc']['lineAt'](_0xc4bfd2['to'])['number'];return EditorView['announce']['of'](_0x47f9e9['state']['phrase'](_0x395a86?'Folded\x20lines':'Unfolded\x20lines')+'\x20'+_0x57c930+'\x20'+_0x47f9e9['state']['phrase']('to')+'\x20'+_0x48b1d2+'.');}const foldAll=_0xdb9e3c=>{let {state:_0x598bce}=_0xdb9e3c,_0x143a1c=[];for(let _0x45dd59=0x0;_0x45dd59<_0x598bce['doc']['length'];){let _0x56cd82=_0xdb9e3c['lineBlockAt'](_0x45dd59),_0x1914ee=foldable(_0x598bce,_0x56cd82['from'],_0x56cd82['to']);_0x1914ee&&_0x143a1c['push'](foldEffect['of'](_0x1914ee)),_0x45dd59=(_0x1914ee?_0xdb9e3c['lineBlockAt'](_0x1914ee['to']):_0x56cd82)['to']+0x1;}return _0x143a1c['length']&&_0xdb9e3c['dispatch']({'effects':maybeEnable(_0xdb9e3c['state'],_0x143a1c)}),!!_0x143a1c['length'];},unfoldAll=_0x1adcb0=>{let _0x659a2a=_0x1adcb0['state']['field'](foldState,!0x1);if(!_0x659a2a||!_0x659a2a['size'])return!0x1;let _0x10d8b8=[];return _0x659a2a['between'](0x0,_0x1adcb0['state']['doc']['length'],(_0x2b93bf,_0x15f07c)=>{_0x10d8b8['push'](unfoldEffect['of']({'from':_0x2b93bf,'to':_0x15f07c}));}),_0x1adcb0['dispatch']({'effects':_0x10d8b8}),!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':_0x2983a1=>combineConfig(_0x2983a1,defaultConfig)});function codeFolding(_0x298e2){return[foldState,baseTheme$1];}function widgetToDOM(_0x129a01,_0x264d5a){let {state:_0x535993}=_0x129a01,_0x1e1854=_0x535993['facet'](foldConfig),_0x490f1a=_0x5eb71a=>{let _0xa4ee49=_0x129a01['lineBlockAt'](_0x129a01['posAtDOM'](_0x5eb71a['target'])),_0x5704f7=findFold(_0x129a01['state'],_0xa4ee49['from'],_0xa4ee49['to']);_0x5704f7&&_0x129a01['dispatch']({'effects':unfoldEffect['of'](_0x5704f7)}),_0x5eb71a['preventDefault']();};if(_0x1e1854['placeholderDOM'])return _0x1e1854['placeholderDOM'](_0x129a01,_0x490f1a,_0x264d5a);let _0x1c63ce=document['createElement']('span');return _0x1c63ce['textContent']=_0x1e1854['placeholderText'],_0x1c63ce['setAttribute']('aria-label',_0x535993['phrase']('folded\x20code')),_0x1c63ce['title']=_0x535993['phrase']('unfold'),_0x1c63ce['className']='cm-foldPlaceholder',_0x1c63ce['onclick']=_0x490f1a,_0x1c63ce;}const foldWidget=Decoration['replace']({'widget':new class extends WidgetType{['toDOM'](_0x3e3631){return widgetToDOM(_0x3e3631,null);}}()});class PreparedFoldWidget extends WidgetType{constructor(_0x12e73b){super(),this['value']=_0x12e73b;}['eq'](_0x5b1de0){return this['value']==_0x5b1de0['value'];}['toDOM'](_0x3c0918){return widgetToDOM(_0x3c0918,this['value']);}}const foldGutterDefaults={'openText':'⌄','closedText':'›','markerDOM':null,'domEventHandlers':{},'foldingChanged':()=>!0x1};class FoldMarker extends GutterMarker{constructor(_0x2f7e32,_0x1145b7){super(),this['config']=_0x2f7e32,this['open']=_0x1145b7;}['eq'](_0x5ec87b){return this['config']==_0x5ec87b['config']&&this['open']==_0x5ec87b['open'];}['toDOM'](_0x56141b){if(this['config']['markerDOM'])return this['config']['markerDOM'](this['open']);let _0x281e16=document['createElement']('span');return _0x281e16['textContent']=this['open']?this['config']['openText']:this['config']['closedText'],_0x281e16['title']=_0x56141b['state']['phrase'](this['open']?'Fold\x20line':'Unfold\x20line'),_0x281e16;}}function foldGutter(_0x20b4a6={}){let _0x29d664={...foldGutterDefaults,..._0x20b4a6},_0x510064=new FoldMarker(_0x29d664,!0x0),_0x389f08=new FoldMarker(_0x29d664,!0x1),_0x341f7c=ViewPlugin['fromClass'](class{constructor(_0x37113b){this['from']=_0x37113b['viewport']['from'],this['markers']=this['buildMarkers'](_0x37113b);}['update'](_0x4a7128){(_0x4a7128['docChanged']||_0x4a7128['viewportChanged']||_0x4a7128['startState']['facet'](language)!=_0x4a7128['state']['facet'](language)||_0x4a7128['startState']['field'](foldState,!0x1)!=_0x4a7128['state']['field'](foldState,!0x1)||syntaxTree(_0x4a7128['startState'])!=syntaxTree(_0x4a7128['state'])||_0x29d664['foldingChanged'](_0x4a7128))&&(this['markers']=this['buildMarkers'](_0x4a7128['view']));}['buildMarkers'](_0x18d271){let _0x20a27c=new RangeSetBuilder();for(let _0x3ae54e of _0x18d271['viewportLineBlocks']){let _0x4d3f65=findFold(_0x18d271['state'],_0x3ae54e['from'],_0x3ae54e['to'])?_0x389f08:foldable(_0x18d271['state'],_0x3ae54e['from'],_0x3ae54e['to'])?_0x510064:null;_0x4d3f65&&_0x20a27c['add'](_0x3ae54e['from'],_0x3ae54e['from'],_0x4d3f65);}return _0x20a27c['finish']();}}),{domEventHandlers:_0x1ac7a1}=_0x29d664;return[_0x341f7c,gutter({'class':'cm-foldGutter','markers'(_0x4fc9e4){var _0x4e3c27;return(null===(_0x4e3c27=_0x4fc9e4['plugin'](_0x341f7c))||void 0x0===_0x4e3c27?void 0x0:_0x4e3c27['markers'])||RangeSet['empty'];},'initialSpacer':()=>new FoldMarker(_0x29d664,!0x1),'domEventHandlers':{..._0x1ac7a1,'click':(_0x47359e,_0x21d473,_0x5e4a4a)=>{if(_0x1ac7a1['click']&&_0x1ac7a1['click'](_0x47359e,_0x21d473,_0x5e4a4a))return!0x0;let _0x26598e=findFold(_0x47359e['state'],_0x21d473['from'],_0x21d473['to']);if(_0x26598e)return _0x47359e['dispatch']({'effects':unfoldEffect['of'](_0x26598e)}),!0x0;let _0x20c671=foldable(_0x47359e['state'],_0x21d473['from'],_0x21d473['to']);return!!_0x20c671&&(_0x47359e['dispatch']({'effects':foldEffect['of'](_0x20c671)}),!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(_0x5ee0b2,_0x8425b5){let _0x1e4b68;function _0x4394bb(_0x11bd92){let _0x12a1e9=StyleModule['newName']();return(_0x1e4b68||(_0x1e4b68=Object['create'](null)))['.'+_0x12a1e9]=_0x11bd92,_0x12a1e9;}this['specs']=_0x5ee0b2;const _0x4a3ae7='string'==typeof _0x8425b5['all']?_0x8425b5['all']:_0x8425b5['all']?_0x4394bb(_0x8425b5['all']):void 0x0,_0x2d139f=_0x8425b5['scope'];this['scope']=_0x2d139f instanceof Language?_0x4a8553=>_0x4a8553['prop'](languageDataProp)==_0x2d139f['data']:_0x2d139f?_0x5a2b38=>_0x5a2b38==_0x2d139f:void 0x0,this['style']=tagHighlighter(_0x5ee0b2['map'](_0x1a7ec2=>({'tag':_0x1a7ec2['tag'],'class':_0x1a7ec2['class']||_0x4394bb(Object['assign']({},_0x1a7ec2,{'tag':null}))})),{'all':_0x4a3ae7})['style'],this['module']=_0x1e4b68?new StyleModule(_0x1e4b68):null,this['themeType']=_0x8425b5['themeType'];}static['define'](_0x152857,_0x49cb6c){return new HighlightStyle(_0x152857,_0x49cb6c||{});}}const highlighterFacet=Facet['define'](),fallbackHighlighter=Facet['define']({'combine':_0x30361d=>_0x30361d['length']?[_0x30361d[0x0]]:null});function getHighlighters(_0x38e4b3){let _0xfa18f0=_0x38e4b3['facet'](highlighterFacet);return _0xfa18f0['length']?_0xfa18f0:_0x38e4b3['facet'](fallbackHighlighter);}function syntaxHighlighting(_0x3e5908,_0x385aaa){let _0x4cf408,_0x1875a3=[treeHighlighter];return _0x3e5908 instanceof HighlightStyle&&(_0x3e5908['module']&&_0x1875a3['push'](EditorView['styleModule']['of'](_0x3e5908['module'])),_0x4cf408=_0x3e5908['themeType']),(null==_0x385aaa?void 0x0:_0x385aaa['fallback'])?_0x1875a3['push'](fallbackHighlighter['of'](_0x3e5908)):_0x4cf408?_0x1875a3['push'](highlighterFacet['computeN']([EditorView['darkTheme']],_0x1d681e=>_0x1d681e['facet'](EditorView['darkTheme'])==('dark'==_0x4cf408)?[_0x3e5908]:[])):_0x1875a3['push'](highlighterFacet['of'](_0x3e5908)),_0x1875a3;}class TreeHighlighter{constructor(_0x211939){this['markCache']=Object['create'](null),this['tree']=syntaxTree(_0x211939['state']),this['decorations']=this['buildDeco'](_0x211939,getHighlighters(_0x211939['state'])),this['decoratedTo']=_0x211939['viewport']['to'];}['update'](_0x18a137){let _0x573625=syntaxTree(_0x18a137['state']),_0x3082fb=getHighlighters(_0x18a137['state']),_0xf8e61b=_0x3082fb!=getHighlighters(_0x18a137['startState']),{viewport:_0x313417}=_0x18a137['view'],_0x533a72=_0x18a137['changes']['mapPos'](this['decoratedTo'],0x1);_0x573625['length']<_0x313417['to']&&!_0xf8e61b&&_0x573625['type']==this['tree']['type']&&_0x533a72>=_0x313417['to']?(this['decorations']=this['decorations']['map'](_0x18a137['changes']),this['decoratedTo']=_0x533a72):(_0x573625!=this['tree']||_0x18a137['viewportChanged']||_0xf8e61b)&&(this['tree']=_0x573625,this['decorations']=this['buildDeco'](_0x18a137['view'],_0x3082fb),this['decoratedTo']=_0x313417['to']);}['buildDeco'](_0x4b298c,_0x383a05){if(!_0x383a05||!this['tree']['length'])return Decoration['none'];let _0x30fd16=new RangeSetBuilder();for(let {from:_0x2a28b3,to:_0x3986ea}of _0x4b298c['visibleRanges'])highlightTree(this['tree'],_0x383a05,(_0x8d5208,_0x590bb6,_0x2ae0c3)=>{_0x30fd16['add'](_0x8d5208,_0x590bb6,this['markCache'][_0x2ae0c3]||(this['markCache'][_0x2ae0c3]=Decoration['mark']({'class':_0x2ae0c3})));},_0x2a28b3,_0x3986ea);return _0x30fd16['finish']();}}const treeHighlighter=Prec['high'](ViewPlugin['fromClass'](TreeHighlighter,{'decorations':_0x525821=>_0x525821['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':_0x1098b9=>combineConfig(_0x1098b9,{'afterCursor':!0x0,'brackets':DefaultBrackets,'maxScanDistance':DefaultScanDist,'renderMatch':defaultRenderMatch})}),matchingMark=Decoration['mark']({'class':'cm-matchingBracket'}),nonmatchingMark=Decoration['mark']({'class':'cm-nonmatchingBracket'});function defaultRenderMatch(_0x3f67f4){let _0x1b06d7=[],_0x4f539f=_0x3f67f4['matched']?matchingMark:nonmatchingMark;return _0x1b06d7['push'](_0x4f539f['range'](_0x3f67f4['start']['from'],_0x3f67f4['start']['to'])),_0x3f67f4['end']&&_0x1b06d7['push'](_0x4f539f['range'](_0x3f67f4['end']['from'],_0x3f67f4['end']['to'])),_0x1b06d7;}const bracketMatchingState=StateField['define']({'create':()=>Decoration['none'],'update'(_0x5375d6,_0x188470){if(!_0x188470['docChanged']&&!_0x188470['selection'])return _0x5375d6;let _0x24fad9=[],_0x19f035=_0x188470['state']['facet'](bracketMatchingConfig);for(let _0x335393 of _0x188470['state']['selection']['ranges']){if(!_0x335393['empty'])continue;let _0x9034bc=matchBrackets(_0x188470['state'],_0x335393['head'],-0x1,_0x19f035)||_0x335393['head']>0x0&&matchBrackets(_0x188470['state'],_0x335393['head']-0x1,0x1,_0x19f035)||_0x19f035['afterCursor']&&(matchBrackets(_0x188470['state'],_0x335393['head'],0x1,_0x19f035)||_0x335393['head']<_0x188470['state']['doc']['length']&&matchBrackets(_0x188470['state'],_0x335393['head']+0x1,-0x1,_0x19f035));_0x9034bc&&(_0x24fad9=_0x24fad9['concat'](_0x19f035['renderMatch'](_0x9034bc,_0x188470['state'])));}return Decoration['set'](_0x24fad9,!0x0);},'provide':_0x190fe6=>EditorView['decorations']['from'](_0x190fe6)}),bracketMatchingUnique=[bracketMatchingState,baseTheme$2];function bracketMatching(_0x458863={}){return[bracketMatchingConfig['of'](_0x458863),bracketMatchingUnique];}const bracketMatchingHandle=new NodeProp();function matchingNodes(_0x376add,_0x203de4,_0x4a9e5b){let _0xd58f0f=_0x376add['prop'](_0x203de4<0x0?NodeProp['openedBy']:NodeProp['closedBy']);if(_0xd58f0f)return _0xd58f0f;if(0x1==_0x376add['name']['length']){let _0x5bf60d=_0x4a9e5b['indexOf'](_0x376add['name']);if(_0x5bf60d>-0x1&&_0x5bf60d%0x2==(_0x203de4<0x0?0x1:0x0))return[_0x4a9e5b[_0x5bf60d+_0x203de4]];}return null;}function findHandle(_0x4b2f22){let _0x2e8941=_0x4b2f22['type']['prop'](bracketMatchingHandle);return _0x2e8941?_0x2e8941(_0x4b2f22['node']):_0x4b2f22;}function matchBrackets(_0x311de9,_0x259ef7,_0x529144,_0x51ca3c={}){let _0x128317=_0x51ca3c['maxScanDistance']||DefaultScanDist,_0x501da7=_0x51ca3c['brackets']||DefaultBrackets,_0x1e9fe9=syntaxTree(_0x311de9),_0x236600=_0x1e9fe9['resolveInner'](_0x259ef7,_0x529144);for(let _0x3974df=_0x236600;_0x3974df;_0x3974df=_0x3974df['parent']){let _0x111db3=matchingNodes(_0x3974df['type'],_0x529144,_0x501da7);if(_0x111db3&&_0x3974df['from']<_0x3974df['to']){let _0x2d10f1=findHandle(_0x3974df);if(_0x2d10f1&&(_0x529144>0x0?_0x259ef7>=_0x2d10f1['from']&&_0x259ef7<_0x2d10f1['to']:_0x259ef7>_0x2d10f1['from']&&_0x259ef7<=_0x2d10f1['to']))return matchMarkedBrackets(_0x311de9,_0x259ef7,_0x529144,_0x3974df,_0x2d10f1,_0x111db3,_0x501da7);}}return matchPlainBrackets(_0x311de9,_0x259ef7,_0x529144,_0x1e9fe9,_0x236600['type'],_0x128317,_0x501da7);}function matchMarkedBrackets(_0x4e5a6a,_0x129f36,_0x253bc3,_0xc6704a,_0x3e4706,_0x4a7d12,_0x332f38){let _0xb0413=_0xc6704a['parent'],_0x193e65={'from':_0x3e4706['from'],'to':_0x3e4706['to']},_0x20ca98=0x0,_0x111a91=null==_0xb0413?void 0x0:_0xb0413['cursor']();if(_0x111a91&&(_0x253bc3<0x0?_0x111a91['childBefore'](_0xc6704a['from']):_0x111a91['childAfter'](_0xc6704a['to'])))do{if(_0x253bc3<0x0?_0x111a91['to']<=_0xc6704a['from']:_0x111a91['from']>=_0xc6704a['to']){if(0x0==_0x20ca98&&_0x4a7d12['indexOf'](_0x111a91['type']['name'])>-0x1&&_0x111a91['from']<_0x111a91['to']){let _0x4e11eb=findHandle(_0x111a91);return{'start':_0x193e65,'end':_0x4e11eb?{'from':_0x4e11eb['from'],'to':_0x4e11eb['to']}:void 0x0,'matched':!0x0};}if(matchingNodes(_0x111a91['type'],_0x253bc3,_0x332f38))_0x20ca98++;else{if(matchingNodes(_0x111a91['type'],-_0x253bc3,_0x332f38)){if(0x0==_0x20ca98){let _0x5a3d65=findHandle(_0x111a91);return{'start':_0x193e65,'end':_0x5a3d65&&_0x5a3d65['from']<_0x5a3d65['to']?{'from':_0x5a3d65['from'],'to':_0x5a3d65['to']}:void 0x0,'matched':!0x1};}_0x20ca98--;}}}}while(_0x253bc3<0x0?_0x111a91['prevSibling']():_0x111a91['nextSibling']());return{'start':_0x193e65,'matched':!0x1};}function matchPlainBrackets(_0x116516,_0x444f7d,_0x409f07,_0x21280b,_0x1ecf06,_0x30837c,_0x2c2e62){let _0x59b3d4=_0x409f07<0x0?_0x116516['sliceDoc'](_0x444f7d-0x1,_0x444f7d):_0x116516['sliceDoc'](_0x444f7d,_0x444f7d+0x1),_0x6104b1=_0x2c2e62['indexOf'](_0x59b3d4);if(_0x6104b1<0x0||_0x6104b1%0x2==0x0!=_0x409f07>0x0)return null;let _0x575df1={'from':_0x409f07<0x0?_0x444f7d-0x1:_0x444f7d,'to':_0x409f07>0x0?_0x444f7d+0x1:_0x444f7d},_0x59b241=_0x116516['doc']['iterRange'](_0x444f7d,_0x409f07>0x0?_0x116516['doc']['length']:0x0),_0x2659f3=0x0;for(let _0x1972ad=0x0;!_0x59b241['next']()['done']&&_0x1972ad<=_0x30837c;){let _0x2881f1=_0x59b241['value'];_0x409f07<0x0&&(_0x1972ad+=_0x2881f1['length']);let _0xa8cdf3=_0x444f7d+_0x1972ad*_0x409f07;for(let _0x13de5d=_0x409f07>0x0?0x0:_0x2881f1['length']-0x1,_0x11892b=_0x409f07>0x0?_0x2881f1['length']:-0x1;_0x13de5d!=_0x11892b;_0x13de5d+=_0x409f07){let _0x493768=_0x2c2e62['indexOf'](_0x2881f1[_0x13de5d]);if(!(_0x493768<0x0||_0x21280b['resolveInner'](_0xa8cdf3+_0x13de5d,0x1)['type']!=_0x1ecf06)){if(_0x493768%0x2==0x0==_0x409f07>0x0)_0x2659f3++;else{if(0x1==_0x2659f3)return{'start':_0x575df1,'end':{'from':_0xa8cdf3+_0x13de5d,'to':_0xa8cdf3+_0x13de5d+0x1},'matched':_0x493768>>0x1==_0x6104b1>>0x1};_0x2659f3--;}}}_0x409f07>0x0&&(_0x1972ad+=_0x2881f1['length']);}return _0x59b241['done']?{'start':_0x575df1,'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(_0x4554b8,_0x59138d){warned['indexOf'](_0x4554b8)>-0x1||(warned['push'](_0x4554b8),console['warn'](_0x59138d));}function createTokenType(_0x181f0c,_0xc9f07a){let _0x16ca69=[];for(let _0x296472 of _0xc9f07a['split']('\x20')){let _0x46a9d6=[];for(let _0x4691de of _0x296472['split']('.')){let _0x43834e=_0x181f0c[_0x4691de]||tags$1[_0x4691de];_0x43834e?'function'==typeof _0x43834e?_0x46a9d6['length']?_0x46a9d6=_0x46a9d6['map'](_0x43834e):warnForPart(_0x4691de,'Modifier\x20'+_0x4691de+'\x20used\x20at\x20start\x20of\x20tag'):_0x46a9d6['length']?warnForPart(_0x4691de,'Tag\x20'+_0x4691de+'\x20used\x20as\x20modifier'):_0x46a9d6=Array['isArray'](_0x43834e)?_0x43834e:[_0x43834e]:warnForPart(_0x4691de,'Unknown\x20highlighting\x20tag\x20'+_0x4691de);}for(let _0x134260 of _0x46a9d6)_0x16ca69['push'](_0x134260);}if(!_0x16ca69['length'])return 0x0;let _0x27a15d=_0xc9f07a['replace'](/ /g,'_'),_0x9c68c3=_0x27a15d+'\x20'+_0x16ca69['map'](t=>t['id']),_0x15095b=byTag[_0x9c68c3];if(_0x15095b)return _0x15095b['id'];let _0x1d07f7=byTag[_0x9c68c3]=NodeType['define']({'id':typeArray['length'],'name':_0x27a15d,'props':[styleTags({[_0x27a15d]:_0x16ca69})]});return typeArray['push'](_0x1d07f7),_0x1d07f7['id'];}Direction['RTL'],Direction['LTR'];const toggleComment=_0x594ca6=>{let {state:_0x2c0e91}=_0x594ca6,_0x564446=_0x2c0e91['doc']['lineAt'](_0x2c0e91['selection']['main']['from']),_0x391db0=getConfig(_0x594ca6['state'],_0x564446['from']);return _0x391db0['line']?toggleLineComment(_0x594ca6):!!_0x391db0['block']&&toggleBlockCommentByLine(_0x594ca6);};function command(_0x35a461,_0x456527){return({state:_0x308b2d,dispatch:_0x225429})=>{if(_0x308b2d['readOnly'])return!0x1;let _0x42fb61=_0x35a461(_0x456527,_0x308b2d);return!!_0x42fb61&&(_0x225429(_0x308b2d['update'](_0x42fb61)),!0x0);};}const toggleLineComment=command(changeLineComment,0x0),toggleBlockComment=command(changeBlockComment,0x0),toggleBlockCommentByLine=command((_0x723859,_0x30ff46)=>changeBlockComment(_0x723859,_0x30ff46,selectedLineRanges(_0x30ff46)),0x0);function getConfig(_0x5ded6f,_0x248f8b){let _0x120c85=_0x5ded6f['languageDataAt']('commentTokens',_0x248f8b,0x1);return _0x120c85['length']?_0x120c85[0x0]:{};}const SearchMargin=0x32;function findBlockComment(_0x165b4f,{open:_0x384e03,close:_0x28d81d},_0x32c444,_0x250d38){let _0x1e6caa,_0x478bb3,_0x186245=_0x165b4f['sliceDoc'](_0x32c444-SearchMargin,_0x32c444),_0x31f881=_0x165b4f['sliceDoc'](_0x250d38,_0x250d38+SearchMargin),_0x9cae50=/\s*$/['exec'](_0x186245)[0x0]['length'],_0x465d8e=/^\s*/['exec'](_0x31f881)[0x0]['length'],_0x524c81=_0x186245['length']-_0x9cae50;if(_0x186245['slice'](_0x524c81-_0x384e03['length'],_0x524c81)==_0x384e03&&_0x31f881['slice'](_0x465d8e,_0x465d8e+_0x28d81d['length'])==_0x28d81d)return{'open':{'pos':_0x32c444-_0x9cae50,'margin':_0x9cae50&&0x1},'close':{'pos':_0x250d38+_0x465d8e,'margin':_0x465d8e&&0x1}};_0x250d38-_0x32c444<=0x2*SearchMargin?_0x1e6caa=_0x478bb3=_0x165b4f['sliceDoc'](_0x32c444,_0x250d38):(_0x1e6caa=_0x165b4f['sliceDoc'](_0x32c444,_0x32c444+SearchMargin),_0x478bb3=_0x165b4f['sliceDoc'](_0x250d38-SearchMargin,_0x250d38));let _0x3809af=/^\s*/['exec'](_0x1e6caa)[0x0]['length'],_0x5ec16b=/\s*$/['exec'](_0x478bb3)[0x0]['length'],_0x1133b3=_0x478bb3['length']-_0x5ec16b-_0x28d81d['length'];return _0x1e6caa['slice'](_0x3809af,_0x3809af+_0x384e03['length'])==_0x384e03&&_0x478bb3['slice'](_0x1133b3,_0x1133b3+_0x28d81d['length'])==_0x28d81d?{'open':{'pos':_0x32c444+_0x3809af+_0x384e03['length'],'margin':/\s/['test'](_0x1e6caa['charAt'](_0x3809af+_0x384e03['length']))?0x1:0x0},'close':{'pos':_0x250d38-_0x5ec16b-_0x28d81d['length'],'margin':/\s/['test'](_0x478bb3['charAt'](_0x1133b3-0x1))?0x1:0x0}}:null;}function selectedLineRanges(_0x18a0f7){let _0x46a62c=[];for(let _0x5bbd2c of _0x18a0f7['selection']['ranges']){let _0x10671b=_0x18a0f7['doc']['lineAt'](_0x5bbd2c['from']),_0x2f27f3=_0x5bbd2c['to']<=_0x10671b['to']?_0x10671b:_0x18a0f7['doc']['lineAt'](_0x5bbd2c['to']);_0x2f27f3['from']>_0x10671b['from']&&_0x2f27f3['from']==_0x5bbd2c['to']&&(_0x2f27f3=_0x5bbd2c['to']==_0x10671b['to']+0x1?_0x10671b:_0x18a0f7['doc']['lineAt'](_0x5bbd2c['to']-0x1));let _0x1377ef=_0x46a62c['length']-0x1;_0x1377ef>=0x0&&_0x46a62c[_0x1377ef]['to']>_0x10671b['from']?_0x46a62c[_0x1377ef]['to']=_0x2f27f3['to']:_0x46a62c['push']({'from':_0x10671b['from']+/^\s*/['exec'](_0x10671b['text'])[0x0]['length'],'to':_0x2f27f3['to']});}return _0x46a62c;}function changeBlockComment(_0x28240e,_0x1cac4c,_0x593672=_0x1cac4c['selection']['ranges']){let _0xc7287f=_0x593672['map'](_0xe77728=>getConfig(_0x1cac4c,_0xe77728['from'])['block']);if(!_0xc7287f['every'](_0x5b6622=>_0x5b6622))return null;let _0x49f4e3=_0x593672['map']((_0x2257be,_0x3a146a)=>findBlockComment(_0x1cac4c,_0xc7287f[_0x3a146a],_0x2257be['from'],_0x2257be['to']));if(0x2!=_0x28240e&&!_0x49f4e3['every'](_0x59b362=>_0x59b362))return{'changes':_0x1cac4c['changes'](_0x593672['map']((_0x4801c7,_0x25c201)=>_0x49f4e3[_0x25c201]?[]:[{'from':_0x4801c7['from'],'insert':_0xc7287f[_0x25c201]['open']+'\x20'},{'from':_0x4801c7['to'],'insert':'\x20'+_0xc7287f[_0x25c201]['close']}]))};if(0x1!=_0x28240e&&_0x49f4e3['some'](_0x385dab=>_0x385dab)){let _0xe7f529=[];for(let _0x20f0da,_0x3005cf=0x0;_0x3005cf<_0x49f4e3['length'];_0x3005cf++)if(_0x20f0da=_0x49f4e3[_0x3005cf]){let _0x4369db=_0xc7287f[_0x3005cf],{open:_0x56262c,close:_0x561a48}=_0x20f0da;_0xe7f529['push']({'from':_0x56262c['pos']-_0x4369db['open']['length'],'to':_0x56262c['pos']+_0x56262c['margin']},{'from':_0x561a48['pos']-_0x561a48['margin'],'to':_0x561a48['pos']+_0x4369db['close']['length']});}return{'changes':_0xe7f529};}return null;}function changeLineComment(_0x1abbc8,_0x3bbd39,_0x5db883=_0x3bbd39['selection']['ranges']){let _0x28c8ca=[],_0x172967=-0x1;for(let {from:_0x2706a9,to:_0x42accb}of _0x5db883){let _0xe4ab62=_0x28c8ca['length'],_0x16dbde=0x3b9aca00,_0x16cdd2=getConfig(_0x3bbd39,_0x2706a9)['line'];if(_0x16cdd2){for(let _0x27f649=_0x2706a9;_0x27f649<=_0x42accb;){let _0x2d4027=_0x3bbd39['doc']['lineAt'](_0x27f649);if(_0x2d4027['from']>_0x172967&&(_0x2706a9==_0x42accb||_0x42accb>_0x2d4027['from'])){_0x172967=_0x2d4027['from'];let _0x1251b7=/^\s*/['exec'](_0x2d4027['text'])[0x0]['length'],_0x2cf49e=_0x1251b7==_0x2d4027['length'],_0x2ffcb5=_0x2d4027['text']['slice'](_0x1251b7,_0x1251b7+_0x16cdd2['length'])==_0x16cdd2?_0x1251b7:-0x1;_0x1251b7<_0x2d4027['text']['length']&&_0x1251b7<_0x16dbde&&(_0x16dbde=_0x1251b7),_0x28c8ca['push']({'line':_0x2d4027,'comment':_0x2ffcb5,'token':_0x16cdd2,'indent':_0x1251b7,'empty':_0x2cf49e,'single':!0x1});}_0x27f649=_0x2d4027['to']+0x1;}if(_0x16dbde<0x3b9aca00){for(let _0x51c497=_0xe4ab62;_0x51c497<_0x28c8ca['length'];_0x51c497++)_0x28c8ca[_0x51c497]['indent']<_0x28c8ca[_0x51c497]['line']['text']['length']&&(_0x28c8ca[_0x51c497]['indent']=_0x16dbde);}_0x28c8ca['length']==_0xe4ab62+0x1&&(_0x28c8ca[_0xe4ab62]['single']=!0x0);}}if(0x2!=_0x1abbc8&&_0x28c8ca['some'](_0x5ba21a=>_0x5ba21a['comment']<0x0&&(!_0x5ba21a['empty']||_0x5ba21a['single']))){let _0x6c297d=[];for(let {line:_0x5384dd,token:_0x52d1b2,indent:_0x258bb1,empty:_0x38e031,single:_0x5109ed}of _0x28c8ca)!_0x5109ed&&_0x38e031||_0x6c297d['push']({'from':_0x5384dd['from']+_0x258bb1,'insert':_0x52d1b2+'\x20'});let _0x1cc312=_0x3bbd39['changes'](_0x6c297d);return{'changes':_0x1cc312,'selection':_0x3bbd39['selection']['map'](_0x1cc312,0x1)};}if(0x1!=_0x1abbc8&&_0x28c8ca['some'](_0x534572=>_0x534572['comment']>=0x0)){let _0x1cb9a3=[];for(let {line:_0xa76925,comment:_0x1dc1c2,token:_0x515d0e}of _0x28c8ca)if(_0x1dc1c2>=0x0){let _0xd3918f=_0xa76925['from']+_0x1dc1c2,_0x413c2a=_0xd3918f+_0x515d0e['length'];'\x20'==_0xa76925['text'][_0x413c2a-_0xa76925['from']]&&_0x413c2a++,_0x1cb9a3['push']({'from':_0xd3918f,'to':_0x413c2a});}return{'changes':_0x1cb9a3};}return null;}const fromHistory=Annotation['define'](),isolateHistory=Annotation['define'](),invertedEffects=Facet['define'](),historyConfig=Facet['define']({'combine':_0x4d2337=>combineConfig(_0x4d2337,{'minDepth':0x64,'newGroupDelay':0x1f4,'joinToEvent':(_0x4de191,_0x594e5b)=>_0x594e5b},{'minDepth':Math['max'],'newGroupDelay':Math['min'],'joinToEvent':(_0x5809b7,_0x443c13)=>(_0x1c7efd,_0x3a1b6d)=>_0x5809b7(_0x1c7efd,_0x3a1b6d)||_0x443c13(_0x1c7efd,_0x3a1b6d)})}),historyField_=StateField['define']({'create':()=>HistoryState['empty'],'update'(_0x5a052e,_0x18ba3d){let _0x24f639=_0x18ba3d['state']['facet'](historyConfig),_0x40528a=_0x18ba3d['annotation'](fromHistory);if(_0x40528a){let _0x57d641=HistEvent['fromTransaction'](_0x18ba3d,_0x40528a['selection']),_0x29e078=_0x40528a['side'],_0x40ed63=0x0==_0x29e078?_0x5a052e['undone']:_0x5a052e['done'];return _0x40ed63=_0x57d641?updateBranch(_0x40ed63,_0x40ed63['length'],_0x24f639['minDepth'],_0x57d641):addSelection(_0x40ed63,_0x18ba3d['startState']['selection']),new HistoryState(0x0==_0x29e078?_0x40528a['rest']:_0x40ed63,0x0==_0x29e078?_0x40ed63:_0x40528a['rest']);}let _0x48f716=_0x18ba3d['annotation'](isolateHistory);if('full'!=_0x48f716&&'before'!=_0x48f716||(_0x5a052e=_0x5a052e['isolate']()),!0x1===_0x18ba3d['annotation'](Transaction['addToHistory']))return _0x18ba3d['changes']['empty']?_0x5a052e:_0x5a052e['addMapping'](_0x18ba3d['changes']['desc']);let _0x49a0d4=HistEvent['fromTransaction'](_0x18ba3d),_0x1ec045=_0x18ba3d['annotation'](Transaction['time']),_0x969a18=_0x18ba3d['annotation'](Transaction['userEvent']);return _0x49a0d4?_0x5a052e=_0x5a052e['addChanges'](_0x49a0d4,_0x1ec045,_0x969a18,_0x24f639,_0x18ba3d):_0x18ba3d['selection']&&(_0x5a052e=_0x5a052e['addSelection'](_0x18ba3d['startState']['selection'],_0x1ec045,_0x969a18,_0x24f639['newGroupDelay'])),'full'!=_0x48f716&&'after'!=_0x48f716||(_0x5a052e=_0x5a052e['isolate']()),_0x5a052e;},'toJSON':_0x8835cf=>({'done':_0x8835cf['done']['map'](_0x5ce89=>_0x5ce89['toJSON']()),'undone':_0x8835cf['undone']['map'](_0x202fdc=>_0x202fdc['toJSON']())}),'fromJSON':_0x351d06=>new HistoryState(_0x351d06['done']['map'](HistEvent['fromJSON']),_0x351d06['undone']['map'](HistEvent['fromJSON']))});function history(_0x3980a0={}){return[historyField_,historyConfig['of'](_0x3980a0),EditorView['domEventHandlers']({'beforeinput'(_0x19747e,_0x31165a){let _0x44cfa2='historyUndo'==_0x19747e['inputType']?undo:'historyRedo'==_0x19747e['inputType']?redo:null;return!!_0x44cfa2&&(_0x19747e['preventDefault'](),_0x44cfa2(_0x31165a));}})];}function cmd(_0x5af7fd,_0x55af60){return function({state:_0x3481a5,dispatch:_0x44fa2b}){if(!_0x55af60&&_0x3481a5['readOnly'])return!0x1;let _0x34b492=_0x3481a5['field'](historyField_,!0x1);if(!_0x34b492)return!0x1;let _0x2fd7a4=_0x34b492['pop'](_0x5af7fd,_0x3481a5,_0x55af60);return!!_0x2fd7a4&&(_0x44fa2b(_0x2fd7a4),!0x0);};}const undo=cmd(0x0,!0x1),redo=cmd(0x1,!0x1),undoSelection=cmd(0x0,!0x0),redoSelection=cmd(0x1,!0x0);class HistEvent{constructor(_0x81ed97,_0x110f1a,_0x17db38,_0x2442ec,_0x53ee42){this['changes']=_0x81ed97,this['effects']=_0x110f1a,this['mapped']=_0x17db38,this['startSelection']=_0x2442ec,this['selectionsAfter']=_0x53ee42;}['setSelAfter'](_0x3d5f92){return new HistEvent(this['changes'],this['effects'],this['mapped'],this['startSelection'],_0x3d5f92);}['toJSON'](){var _0x145d5f,_0x533c8a,_0x21bad1;return{'changes':null===(_0x145d5f=this['changes'])||void 0x0===_0x145d5f?void 0x0:_0x145d5f['toJSON'](),'mapped':null===(_0x533c8a=this['mapped'])||void 0x0===_0x533c8a?void 0x0:_0x533c8a['toJSON'](),'startSelection':null===(_0x21bad1=this['startSelection'])||void 0x0===_0x21bad1?void 0x0:_0x21bad1['toJSON'](),'selectionsAfter':this['selectionsAfter']['map'](_0xad67bc=>_0xad67bc['toJSON']())};}static['fromJSON'](_0x3c2744){return new HistEvent(_0x3c2744['changes']&&ChangeSet['fromJSON'](_0x3c2744['changes']),[],_0x3c2744['mapped']&&ChangeDesc['fromJSON'](_0x3c2744['mapped']),_0x3c2744['startSelection']&&EditorSelection['fromJSON'](_0x3c2744['startSelection']),_0x3c2744['selectionsAfter']['map'](EditorSelection['fromJSON']));}static['fromTransaction'](_0x1c3527,_0x13106a){let _0x262c8f=none$2;for(let _0x212d9d of _0x1c3527['startState']['facet'](invertedEffects)){let _0x4515fd=_0x212d9d(_0x1c3527);_0x4515fd['length']&&(_0x262c8f=_0x262c8f['concat'](_0x4515fd));}return!_0x262c8f['length']&&_0x1c3527['changes']['empty']?null:new HistEvent(_0x1c3527['changes']['invert'](_0x1c3527['startState']['doc']),_0x262c8f,void 0x0,_0x13106a||_0x1c3527['startState']['selection'],none$2);}static['selection'](_0x5d92e0){return new HistEvent(void 0x0,none$2,void 0x0,void 0x0,_0x5d92e0);}}function updateBranch(_0x6e874e,_0x17e3ee,_0x51f75e,_0x3b7dd8){let _0x31c9b8=_0x17e3ee+0x1>_0x51f75e+0x14?_0x17e3ee-_0x51f75e-0x1:0x0,_0x3b4667=_0x6e874e['slice'](_0x31c9b8,_0x17e3ee);return _0x3b4667['push'](_0x3b7dd8),_0x3b4667;}function isAdjacent(_0x3fd0e3,_0x5ad516){let _0x3222d8=[],_0x3777f0=!0x1;return _0x3fd0e3['iterChangedRanges']((_0x13372c,t)=>_0x3222d8['push'](_0x13372c,t)),_0x5ad516['iterChangedRanges']((_0x4f9b90,_0x58e6ae,_0x428c05,t)=>{for(let _0x934e0d=0x0;_0x934e0d<_0x3222d8['length'];){let _0x2edb26=_0x3222d8[_0x934e0d++],_0x19f937=_0x3222d8[_0x934e0d++];t>=_0x2edb26&&_0x428c05<=_0x19f937&&(_0x3777f0=!0x0);}}),_0x3777f0;}function eqSelectionShape(_0x13799d,_0xb45e54){return _0x13799d['ranges']['length']==_0xb45e54['ranges']['length']&&0x0===_0x13799d['ranges']['filter']((_0x178e1a,_0x24d657)=>_0x178e1a['empty']!=_0xb45e54['ranges'][_0x24d657]['empty'])['length'];}function conc(_0x4ad480,_0x1af078){return _0x4ad480['length']?_0x1af078['length']?_0x4ad480['concat'](_0x1af078):_0x4ad480:_0x1af078;}const none$2=[],MaxSelectionsPerEvent=0xc8;function addSelection(_0x3f2043,_0x2e4d7b){if(_0x3f2043['length']){let _0x59cb57=_0x3f2043[_0x3f2043['length']-0x1],_0x407c2f=_0x59cb57['selectionsAfter']['slice'](Math['max'](0x0,_0x59cb57['selectionsAfter']['length']-MaxSelectionsPerEvent));return _0x407c2f['length']&&_0x407c2f[_0x407c2f['length']-0x1]['eq'](_0x2e4d7b)?_0x3f2043:(_0x407c2f['push'](_0x2e4d7b),updateBranch(_0x3f2043,_0x3f2043['length']-0x1,0x3b9aca00,_0x59cb57['setSelAfter'](_0x407c2f)));}return[HistEvent['selection']([_0x2e4d7b])];}function popSelection(_0x3fb20f){let _0x20d1ce=_0x3fb20f[_0x3fb20f['length']-0x1],_0x1ffa1b=_0x3fb20f['slice']();return _0x1ffa1b[_0x3fb20f['length']-0x1]=_0x20d1ce['setSelAfter'](_0x20d1ce['selectionsAfter']['slice'](0x0,_0x20d1ce['selectionsAfter']['length']-0x1)),_0x1ffa1b;}function addMappingToBranch(_0x3680fd,_0x49be4f){if(!_0x3680fd['length'])return _0x3680fd;let _0x204f8b=_0x3680fd['length'],_0x1a68b8=none$2;for(;_0x204f8b;){let _0x21e061=mapEvent(_0x3680fd[_0x204f8b-0x1],_0x49be4f,_0x1a68b8);if(_0x21e061['changes']&&!_0x21e061['changes']['empty']||_0x21e061['effects']['length']){let _0x3c73f1=_0x3680fd['slice'](0x0,_0x204f8b);return _0x3c73f1[_0x204f8b-0x1]=_0x21e061,_0x3c73f1;}_0x49be4f=_0x21e061['mapped'],_0x204f8b--,_0x1a68b8=_0x21e061['selectionsAfter'];}return _0x1a68b8['length']?[HistEvent['selection'](_0x1a68b8)]:none$2;}function mapEvent(_0x2de4c6,_0x4c0bbc,_0x266832){let _0x4f3fa7=conc(_0x2de4c6['selectionsAfter']['length']?_0x2de4c6['selectionsAfter']['map'](_0x3b6bd0=>_0x3b6bd0['map'](_0x4c0bbc)):none$2,_0x266832);if(!_0x2de4c6['changes'])return HistEvent['selection'](_0x4f3fa7);let _0x1a1139=_0x2de4c6['changes']['map'](_0x4c0bbc),_0x2decda=_0x4c0bbc['mapDesc'](_0x2de4c6['changes'],!0x0),_0x3e7d2f=_0x2de4c6['mapped']?_0x2de4c6['mapped']['composeDesc'](_0x2decda):_0x2decda;return new HistEvent(_0x1a1139,StateEffect['mapEffects'](_0x2de4c6['effects'],_0x4c0bbc),_0x3e7d2f,_0x2de4c6['startSelection']['map'](_0x2decda),_0x4f3fa7);}const joinableUserEvent=/^(input\.type|delete)($|\.)/;class HistoryState{constructor(_0x144045,_0x283078,_0x484543=0x0,_0x751239=void 0x0){this['done']=_0x144045,this['undone']=_0x283078,this['prevTime']=_0x484543,this['prevUserEvent']=_0x751239;}['isolate'](){return this['prevTime']?new HistoryState(this['done'],this['undone']):this;}['addChanges'](_0xf0bda4,_0x5c790d,_0x80098c,_0x1b7356,_0x4f6dfe){let _0x298dd9=this['done'],_0x223ff7=_0x298dd9[_0x298dd9['length']-0x1];return _0x298dd9=_0x223ff7&&_0x223ff7['changes']&&!_0x223ff7['changes']['empty']&&_0xf0bda4['changes']&&(!_0x80098c||joinableUserEvent['test'](_0x80098c))&&(!_0x223ff7['selectionsAfter']['length']&&_0x5c790d-this['prevTime']<_0x1b7356['newGroupDelay']&&_0x1b7356['joinToEvent'](_0x4f6dfe,isAdjacent(_0x223ff7['changes'],_0xf0bda4['changes']))||'input.type.compose'==_0x80098c)?updateBranch(_0x298dd9,_0x298dd9['length']-0x1,_0x1b7356['minDepth'],new HistEvent(_0xf0bda4['changes']['compose'](_0x223ff7['changes']),conc(StateEffect['mapEffects'](_0xf0bda4['effects'],_0x223ff7['changes']),_0x223ff7['effects']),_0x223ff7['mapped'],_0x223ff7['startSelection'],none$2)):updateBranch(_0x298dd9,_0x298dd9['length'],_0x1b7356['minDepth'],_0xf0bda4),new HistoryState(_0x298dd9,none$2,_0x5c790d,_0x80098c);}['addSelection'](_0x571b84,_0x7e6a35,_0x186e51,_0x51dda3){let _0x2ed157=this['done']['length']?this['done'][this['done']['length']-0x1]['selectionsAfter']:none$2;return _0x2ed157['length']>0x0&&_0x7e6a35-this['prevTime']<_0x51dda3&&_0x186e51==this['prevUserEvent']&&_0x186e51&&/^select($|\.)/['test'](_0x186e51)&&eqSelectionShape(_0x2ed157[_0x2ed157['length']-0x1],_0x571b84)?this:new HistoryState(addSelection(this['done'],_0x571b84),this['undone'],_0x7e6a35,_0x186e51);}['addMapping'](_0x323d1f){return new HistoryState(addMappingToBranch(this['done'],_0x323d1f),addMappingToBranch(this['undone'],_0x323d1f),this['prevTime'],this['prevUserEvent']);}['pop'](_0x34bf2,_0x10750c,_0xcb5436){let _0x32d713=0x0==_0x34bf2?this['done']:this['undone'];if(0x0==_0x32d713['length'])return null;let _0x398b4b=_0x32d713[_0x32d713['length']-0x1],_0xf3ac06=_0x398b4b['selectionsAfter'][0x0]||_0x10750c['selection'];if(_0xcb5436&&_0x398b4b['selectionsAfter']['length'])return _0x10750c['update']({'selection':_0x398b4b['selectionsAfter'][_0x398b4b['selectionsAfter']['length']-0x1],'annotations':fromHistory['of']({'side':_0x34bf2,'rest':popSelection(_0x32d713),'selection':_0xf3ac06}),'userEvent':0x0==_0x34bf2?'select.undo':'select.redo','scrollIntoView':!0x0});if(_0x398b4b['changes']){let _0x1afa5d=0x1==_0x32d713['length']?none$2:_0x32d713['slice'](0x0,_0x32d713['length']-0x1);return _0x398b4b['mapped']&&(_0x1afa5d=addMappingToBranch(_0x1afa5d,_0x398b4b['mapped'])),_0x10750c['update']({'changes':_0x398b4b['changes'],'selection':_0x398b4b['startSelection'],'effects':_0x398b4b['effects'],'annotations':fromHistory['of']({'side':_0x34bf2,'rest':_0x1afa5d,'selection':_0xf3ac06}),'filter':!0x1,'userEvent':0x0==_0x34bf2?'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(_0x17b173,_0x33a860){return EditorSelection['create'](_0x17b173['ranges']['map'](_0x33a860),_0x17b173['mainIndex']);}function setSel(_0x218c24,_0x517e1e){return _0x218c24['update']({'selection':_0x517e1e,'scrollIntoView':!0x0,'userEvent':'select'});}function moveSel({state:_0xe3bf9c,dispatch:_0x554ca2},_0x2d15fd){let _0x19a9fe=updateSel(_0xe3bf9c['selection'],_0x2d15fd);return!_0x19a9fe['eq'](_0xe3bf9c['selection'],!0x0)&&(_0x554ca2(setSel(_0xe3bf9c,_0x19a9fe)),!0x0);}function rangeEnd(_0x1219fe,_0x39b3bd){return EditorSelection['cursor'](_0x39b3bd?_0x1219fe['to']:_0x1219fe['from']);}function cursorByChar(_0x4b1b7f,_0x28b6c6){return moveSel(_0x4b1b7f,_0x1f2725=>_0x1f2725['empty']?_0x4b1b7f['moveByChar'](_0x1f2725,_0x28b6c6):rangeEnd(_0x1f2725,_0x28b6c6));}function ltrAtCursor(_0x34e62b){return _0x34e62b['textDirectionAt'](_0x34e62b['state']['selection']['main']['head'])==Direction['LTR'];}const cursorCharLeft=_0x12dfe0=>cursorByChar(_0x12dfe0,!ltrAtCursor(_0x12dfe0)),cursorCharRight=_0x2699c2=>cursorByChar(_0x2699c2,ltrAtCursor(_0x2699c2));function cursorByGroup(_0x4ebfab,_0x55fad1){return moveSel(_0x4ebfab,_0x4fc5e4=>_0x4fc5e4['empty']?_0x4ebfab['moveByGroup'](_0x4fc5e4,_0x55fad1):rangeEnd(_0x4fc5e4,_0x55fad1));}const cursorGroupLeft=_0x26bb2a=>cursorByGroup(_0x26bb2a,!ltrAtCursor(_0x26bb2a)),cursorGroupRight=_0x2e0fdb=>cursorByGroup(_0x2e0fdb,ltrAtCursor(_0x2e0fdb));function interestingNode(_0x320a67,_0x2feebe,_0x1923b5){if(_0x2feebe['type']['prop'](_0x1923b5))return!0x0;let _0x12bea0=_0x2feebe['to']-_0x2feebe['from'];return _0x12bea0&&(_0x12bea0>0x2||/[^\s,.;:]/['test'](_0x320a67['sliceDoc'](_0x2feebe['from'],_0x2feebe['to'])))||_0x2feebe['firstChild'];}function moveBySyntax(_0x58f6d0,_0x291ebf,_0x436698){let _0x3de931,_0x4fd367,_0x2126c2=syntaxTree(_0x58f6d0)['resolveInner'](_0x291ebf['head']),_0x4aa45c=_0x436698?NodeProp['closedBy']:NodeProp['openedBy'];for(let _0x56b2be=_0x291ebf['head'];;){let _0x102fa3=_0x436698?_0x2126c2['childAfter'](_0x56b2be):_0x2126c2['childBefore'](_0x56b2be);if(!_0x102fa3)break;interestingNode(_0x58f6d0,_0x102fa3,_0x4aa45c)?_0x2126c2=_0x102fa3:_0x56b2be=_0x436698?_0x102fa3['to']:_0x102fa3['from'];}return _0x4fd367=_0x2126c2['type']['prop'](_0x4aa45c)&&(_0x3de931=_0x436698?matchBrackets(_0x58f6d0,_0x2126c2['from'],0x1):matchBrackets(_0x58f6d0,_0x2126c2['to'],-0x1))&&_0x3de931['matched']?_0x436698?_0x3de931['end']['to']:_0x3de931['end']['from']:_0x436698?_0x2126c2['to']:_0x2126c2['from'],EditorSelection['cursor'](_0x4fd367,_0x436698?-0x1:0x1);}const cursorSyntaxLeft=_0x1604eb=>moveSel(_0x1604eb,_0x4ef41a=>moveBySyntax(_0x1604eb['state'],_0x4ef41a,!ltrAtCursor(_0x1604eb))),cursorSyntaxRight=_0x4e5ef7=>moveSel(_0x4e5ef7,_0x466ec9=>moveBySyntax(_0x4e5ef7['state'],_0x466ec9,ltrAtCursor(_0x4e5ef7)));function cursorByLine(_0x1df1b8,_0x3e1b62){return moveSel(_0x1df1b8,_0x485f4d=>{if(!_0x485f4d['empty'])return rangeEnd(_0x485f4d,_0x3e1b62);let _0x3f094d=_0x1df1b8['moveVertically'](_0x485f4d,_0x3e1b62);return _0x3f094d['head']!=_0x485f4d['head']?_0x3f094d:_0x1df1b8['moveToLineBoundary'](_0x485f4d,_0x3e1b62);});}const cursorLineUp=_0x28d9d2=>cursorByLine(_0x28d9d2,!0x1),cursorLineDown=_0x393cc1=>cursorByLine(_0x393cc1,!0x0);function pageInfo(_0x143d06){let _0x49e20c,_0x33f811=_0x143d06['scrollDOM']['clientHeight']<_0x143d06['scrollDOM']['scrollHeight']-0x2,_0xabd0f8=0x0,_0x2d208c=0x0;if(_0x33f811){for(let _0x1cfb12 of _0x143d06['state']['facet'](EditorView['scrollMargins'])){let _0x137a5d=_0x1cfb12(_0x143d06);(null==_0x137a5d?void 0x0:_0x137a5d['top'])&&(_0xabd0f8=Math['max'](null==_0x137a5d?void 0x0:_0x137a5d['top'],_0xabd0f8)),(null==_0x137a5d?void 0x0:_0x137a5d['bottom'])&&(_0x2d208c=Math['max'](null==_0x137a5d?void 0x0:_0x137a5d['bottom'],_0x2d208c));}_0x49e20c=_0x143d06['scrollDOM']['clientHeight']-_0xabd0f8-_0x2d208c;}else _0x49e20c=(_0x143d06['dom']['ownerDocument']['defaultView']||window)['innerHeight'];return{'marginTop':_0xabd0f8,'marginBottom':_0x2d208c,'selfScroll':_0x33f811,'height':Math['max'](_0x143d06['defaultLineHeight'],_0x49e20c-0x5)};}function cursorByPage(_0x4d3fc0,_0xd66f79){let _0x4c729c,_0x1af7b4=pageInfo(_0x4d3fc0),{state:_0x4f20e6}=_0x4d3fc0,_0x260d86=updateSel(_0x4f20e6['selection'],_0x679bd5=>_0x679bd5['empty']?_0x4d3fc0['moveVertically'](_0x679bd5,_0xd66f79,_0x1af7b4['height']):rangeEnd(_0x679bd5,_0xd66f79));if(_0x260d86['eq'](_0x4f20e6['selection']))return!0x1;if(_0x1af7b4['selfScroll']){let _0x698f98=_0x4d3fc0['coordsAtPos'](_0x4f20e6['selection']['main']['head']),_0x1efc3f=_0x4d3fc0['scrollDOM']['getBoundingClientRect'](),_0x16055d=_0x1efc3f['top']+_0x1af7b4['marginTop'],_0x489e9a=_0x1efc3f['bottom']-_0x1af7b4['marginBottom'];_0x698f98&&_0x698f98['top']>_0x16055d&&_0x698f98['bottom']<_0x489e9a&&(_0x4c729c=EditorView['scrollIntoView'](_0x260d86['main']['head'],{'y':'start','yMargin':_0x698f98['top']-_0x16055d}));}return _0x4d3fc0['dispatch'](setSel(_0x4f20e6,_0x260d86),{'effects':_0x4c729c}),!0x0;}const cursorPageUp=_0x4e87e7=>cursorByPage(_0x4e87e7,!0x1),cursorPageDown=_0x65b5e0=>cursorByPage(_0x65b5e0,!0x0);function moveByLineBoundary(_0x16b954,_0x29623d,_0x59bff1){let _0x2e1f01=_0x16b954['lineBlockAt'](_0x29623d['head']),_0x18eff9=_0x16b954['moveToLineBoundary'](_0x29623d,_0x59bff1);if(_0x18eff9['head']==_0x29623d['head']&&_0x18eff9['head']!=(_0x59bff1?_0x2e1f01['to']:_0x2e1f01['from'])&&(_0x18eff9=_0x16b954['moveToLineBoundary'](_0x29623d,_0x59bff1,!0x1)),!_0x59bff1&&_0x18eff9['head']==_0x2e1f01['from']&&_0x2e1f01['length']){let _0x473632=/^\s*/['exec'](_0x16b954['state']['sliceDoc'](_0x2e1f01['from'],Math['min'](_0x2e1f01['from']+0x64,_0x2e1f01['to'])))[0x0]['length'];_0x473632&&_0x29623d['head']!=_0x2e1f01['from']+_0x473632&&(_0x18eff9=EditorSelection['cursor'](_0x2e1f01['from']+_0x473632));}return _0x18eff9;}const cursorLineBoundaryForward=_0xfc29a=>moveSel(_0xfc29a,_0xa2d4f2=>moveByLineBoundary(_0xfc29a,_0xa2d4f2,!0x0)),cursorLineBoundaryBackward=_0x1497ae=>moveSel(_0x1497ae,_0x1cac40=>moveByLineBoundary(_0x1497ae,_0x1cac40,!0x1)),cursorLineBoundaryLeft=_0x422689=>moveSel(_0x422689,_0xb7dc1f=>moveByLineBoundary(_0x422689,_0xb7dc1f,!ltrAtCursor(_0x422689))),cursorLineBoundaryRight=_0x33fae3=>moveSel(_0x33fae3,_0x38b781=>moveByLineBoundary(_0x33fae3,_0x38b781,ltrAtCursor(_0x33fae3))),cursorLineStart=_0x1a1fa5=>moveSel(_0x1a1fa5,_0x2d08bd=>EditorSelection['cursor'](_0x1a1fa5['lineBlockAt'](_0x2d08bd['head'])['from'],0x1)),cursorLineEnd=_0x23a797=>moveSel(_0x23a797,_0x47f34c=>EditorSelection['cursor'](_0x23a797['lineBlockAt'](_0x47f34c['head'])['to'],-0x1));function toMatchingBracket(_0x1996e6,_0x5eb382,_0x399785){let _0x1b9429=!0x1,_0x39e156=updateSel(_0x1996e6['selection'],_0x3f1e35=>{let _0x3f1939=matchBrackets(_0x1996e6,_0x3f1e35['head'],-0x1)||matchBrackets(_0x1996e6,_0x3f1e35['head'],0x1)||_0x3f1e35['head']>0x0&&matchBrackets(_0x1996e6,_0x3f1e35['head']-0x1,0x1)||_0x3f1e35['head']<_0x1996e6['doc']['length']&&matchBrackets(_0x1996e6,_0x3f1e35['head']+0x1,-0x1);if(!_0x3f1939||!_0x3f1939['end'])return _0x3f1e35;_0x1b9429=!0x0;let _0x53ffed=_0x3f1939['start']['from']==_0x3f1e35['head']?_0x3f1939['end']['to']:_0x3f1939['end']['from'];return EditorSelection['cursor'](_0x53ffed);});return!!_0x1b9429&&(_0x5eb382(setSel(_0x1996e6,_0x39e156)),!0x0);}const cursorMatchingBracket=({state:_0x18f2c1,dispatch:_0x1fbe79})=>toMatchingBracket(_0x18f2c1,_0x1fbe79);function extendSel(_0x53f9b0,_0x3cc57f){let _0x4cf2b7=updateSel(_0x53f9b0['state']['selection'],_0x1ac3d0=>{let _0x140b69=_0x3cc57f(_0x1ac3d0);return EditorSelection['range'](_0x1ac3d0['anchor'],_0x140b69['head'],_0x140b69['goalColumn'],_0x140b69['bidiLevel']||void 0x0);});return!_0x4cf2b7['eq'](_0x53f9b0['state']['selection'])&&(_0x53f9b0['dispatch'](setSel(_0x53f9b0['state'],_0x4cf2b7)),!0x0);}function selectByChar(_0x51fe52,_0x536fe1){return extendSel(_0x51fe52,_0x3e8a60=>_0x51fe52['moveByChar'](_0x3e8a60,_0x536fe1));}const selectCharLeft=_0x1e7da5=>selectByChar(_0x1e7da5,!ltrAtCursor(_0x1e7da5)),selectCharRight=_0x5e255a=>selectByChar(_0x5e255a,ltrAtCursor(_0x5e255a));function selectByGroup(_0x5e822c,_0x49e198){return extendSel(_0x5e822c,_0x143ad2=>_0x5e822c['moveByGroup'](_0x143ad2,_0x49e198));}const selectGroupLeft=_0x55b4f0=>selectByGroup(_0x55b4f0,!ltrAtCursor(_0x55b4f0)),selectGroupRight=_0x10bbce=>selectByGroup(_0x10bbce,ltrAtCursor(_0x10bbce)),selectSyntaxLeft=_0x24bbfe=>extendSel(_0x24bbfe,_0x45db79=>moveBySyntax(_0x24bbfe['state'],_0x45db79,!ltrAtCursor(_0x24bbfe))),selectSyntaxRight=_0x1d251e=>extendSel(_0x1d251e,_0x1e77ce=>moveBySyntax(_0x1d251e['state'],_0x1e77ce,ltrAtCursor(_0x1d251e)));function selectByLine(_0x5c5ee2,_0x2c78c1){return extendSel(_0x5c5ee2,_0x1c967d=>_0x5c5ee2['moveVertically'](_0x1c967d,_0x2c78c1));}const selectLineUp=_0x3421df=>selectByLine(_0x3421df,!0x1),selectLineDown=_0x135be5=>selectByLine(_0x135be5,!0x0);function selectByPage(_0x4825c7,_0x11d7d7){return extendSel(_0x4825c7,_0x266427=>_0x4825c7['moveVertically'](_0x266427,_0x11d7d7,pageInfo(_0x4825c7)['height']));}const selectPageUp=_0x230f89=>selectByPage(_0x230f89,!0x1),selectPageDown=_0x16b5b7=>selectByPage(_0x16b5b7,!0x0),selectLineBoundaryForward=_0x2e5980=>extendSel(_0x2e5980,_0x16b44c=>moveByLineBoundary(_0x2e5980,_0x16b44c,!0x0)),selectLineBoundaryBackward=_0x280329=>extendSel(_0x280329,_0x235b25=>moveByLineBoundary(_0x280329,_0x235b25,!0x1)),selectLineBoundaryLeft=_0x2d5c3b=>extendSel(_0x2d5c3b,_0x396afb=>moveByLineBoundary(_0x2d5c3b,_0x396afb,!ltrAtCursor(_0x2d5c3b))),selectLineBoundaryRight=_0x2bdf30=>extendSel(_0x2bdf30,_0x26cd1d=>moveByLineBoundary(_0x2bdf30,_0x26cd1d,ltrAtCursor(_0x2bdf30))),selectLineStart=_0x3f3f1c=>extendSel(_0x3f3f1c,_0x1b11ca=>EditorSelection['cursor'](_0x3f3f1c['lineBlockAt'](_0x1b11ca['head'])['from'])),selectLineEnd=_0x544bec=>extendSel(_0x544bec,_0x2f6396=>EditorSelection['cursor'](_0x544bec['lineBlockAt'](_0x2f6396['head'])['to'])),cursorDocStart=({state:_0x2b1969,dispatch:_0x283014})=>(_0x283014(setSel(_0x2b1969,{'anchor':0x0})),!0x0),cursorDocEnd=({state:_0x10f2fe,dispatch:_0x5614ca})=>(_0x5614ca(setSel(_0x10f2fe,{'anchor':_0x10f2fe['doc']['length']})),!0x0),selectDocStart=({state:_0x3d54d7,dispatch:_0x51b85e})=>(_0x51b85e(setSel(_0x3d54d7,{'anchor':_0x3d54d7['selection']['main']['anchor'],'head':0x0})),!0x0),selectDocEnd=({state:_0x188d4f,dispatch:_0x4f1231})=>(_0x4f1231(setSel(_0x188d4f,{'anchor':_0x188d4f['selection']['main']['anchor'],'head':_0x188d4f['doc']['length']})),!0x0),selectAll=({state:_0xc41719,dispatch:_0x5a00ef})=>(_0x5a00ef(_0xc41719['update']({'selection':{'anchor':0x0,'head':_0xc41719['doc']['length']},'userEvent':'select'})),!0x0),selectLine=({state:_0x3b4204,dispatch:_0x1438a8})=>{let _0x4dcc1c=selectedLineBlocks(_0x3b4204)['map'](({from:_0x5ac36b,to:_0x4785cf})=>EditorSelection['range'](_0x5ac36b,Math['min'](_0x4785cf+0x1,_0x3b4204['doc']['length'])));return _0x1438a8(_0x3b4204['update']({'selection':EditorSelection['create'](_0x4dcc1c),'userEvent':'select'})),!0x0;},selectParentSyntax=({state:_0x34e3bf,dispatch:_0x26bae3})=>{let _0x6fbb05=updateSel(_0x34e3bf['selection'],_0xa5547c=>{let _0x30af15=syntaxTree(_0x34e3bf),_0x4c01d4=_0x30af15['resolveStack'](_0xa5547c['from'],0x1);if(_0xa5547c['empty']){let _0x325d37=_0x30af15['resolveStack'](_0xa5547c['from'],-0x1);_0x325d37['node']['from']>=_0x4c01d4['node']['from']&&_0x325d37['node']['to']<=_0x4c01d4['node']['to']&&(_0x4c01d4=_0x325d37);}for(let _0x27bbe1=_0x4c01d4;_0x27bbe1;_0x27bbe1=_0x27bbe1['next']){let {node:_0x49aaeb}=_0x27bbe1;if((_0x49aaeb['from']<_0xa5547c['from']&&_0x49aaeb['to']>=_0xa5547c['to']||_0x49aaeb['to']>_0xa5547c['to']&&_0x49aaeb['from']<=_0xa5547c['from'])&&_0x27bbe1['next'])return EditorSelection['range'](_0x49aaeb['to'],_0x49aaeb['from']);}return _0xa5547c;});return!_0x6fbb05['eq'](_0x34e3bf['selection'])&&(_0x26bae3(setSel(_0x34e3bf,_0x6fbb05)),!0x0);},simplifySelection=({state:_0x408232,dispatch:_0x1838ab})=>{let _0x24b36d=_0x408232['selection'],_0x3d2edb=null;return _0x24b36d['ranges']['length']>0x1?_0x3d2edb=EditorSelection['create']([_0x24b36d['main']]):_0x24b36d['main']['empty']||(_0x3d2edb=EditorSelection['create']([EditorSelection['cursor'](_0x24b36d['main']['head'])])),!!_0x3d2edb&&(_0x1838ab(setSel(_0x408232,_0x3d2edb)),!0x0);};function deleteBy(_0x38fd4c,_0x3f738d){if(_0x38fd4c['state']['readOnly'])return!0x1;let _0xd075a0='delete.selection',{state:_0x438821}=_0x38fd4c,_0x3aae61=_0x438821['changeByRange'](_0x2c265f=>{let {from:_0x2b4bc6,to:_0x3c85fd}=_0x2c265f;if(_0x2b4bc6==_0x3c85fd){let _0x1c232c=_0x3f738d(_0x2c265f);_0x1c232c<_0x2b4bc6?(_0xd075a0='delete.backward',_0x1c232c=skipAtomic(_0x38fd4c,_0x1c232c,!0x1)):_0x1c232c>_0x2b4bc6&&(_0xd075a0='delete.forward',_0x1c232c=skipAtomic(_0x38fd4c,_0x1c232c,!0x0)),_0x2b4bc6=Math['min'](_0x2b4bc6,_0x1c232c),_0x3c85fd=Math['max'](_0x3c85fd,_0x1c232c);}else _0x2b4bc6=skipAtomic(_0x38fd4c,_0x2b4bc6,!0x1),_0x3c85fd=skipAtomic(_0x38fd4c,_0x3c85fd,!0x0);return _0x2b4bc6==_0x3c85fd?{'range':_0x2c265f}:{'changes':{'from':_0x2b4bc6,'to':_0x3c85fd},'range':EditorSelection['cursor'](_0x2b4bc6,_0x2b4bc6<_0x2c265f['head']?-0x1:0x1)};});return!_0x3aae61['changes']['empty']&&(_0x38fd4c['dispatch'](_0x438821['update'](_0x3aae61,{'scrollIntoView':!0x0,'userEvent':_0xd075a0,'effects':'delete.selection'==_0xd075a0?EditorView['announce']['of'](_0x438821['phrase']('Selection\x20deleted')):void 0x0})),!0x0);}function skipAtomic(_0x231f98,_0x231459,_0x3d6d85){if(_0x231f98 instanceof EditorView){for(let _0x58a428 of _0x231f98['state']['facet'](EditorView['atomicRanges'])['map'](_0x4f0e4f=>_0x4f0e4f(_0x231f98)))_0x58a428['between'](_0x231459,_0x231459,(_0x3fd3e7,_0x11fe40)=>{_0x3fd3e7<_0x231459&&_0x11fe40>_0x231459&&(_0x231459=_0x3d6d85?_0x11fe40:_0x3fd3e7);});}return _0x231459;}const deleteByChar=(_0x2ad0ba,_0x571ec1,_0x4c3109)=>deleteBy(_0x2ad0ba,_0x53f524=>{let _0x485b18,_0x451200,_0x1f3a43=_0x53f524['from'],{state:_0x152739}=_0x2ad0ba,_0x4f257b=_0x152739['doc']['lineAt'](_0x1f3a43);if(_0x4c3109&&!_0x571ec1&&_0x1f3a43>_0x4f257b['from']&&_0x1f3a43<_0x4f257b['from']+0xc8&&!/[^ \t]/['test'](_0x485b18=_0x4f257b['text']['slice'](0x0,_0x1f3a43-_0x4f257b['from']))){if('\x09'==_0x485b18[_0x485b18['length']-0x1])return _0x1f3a43-0x1;let _0x252d40=countColumn(_0x485b18,_0x152739['tabSize'])%getIndentUnit(_0x152739)||getIndentUnit(_0x152739);for(let _0x1b3f61=0x0;_0x1b3f61<_0x252d40&&'\x20'==_0x485b18[_0x485b18['length']-0x1-_0x1b3f61];_0x1b3f61++)_0x1f3a43--;_0x451200=_0x1f3a43;}else _0x451200=findClusterBreak(_0x4f257b['text'],_0x1f3a43-_0x4f257b['from'],_0x571ec1,_0x571ec1)+_0x4f257b['from'],_0x451200==_0x1f3a43&&_0x4f257b['number']!=(_0x571ec1?_0x152739['doc']['lines']:0x1)?_0x451200+=_0x571ec1?0x1:-0x1:!_0x571ec1&&/[\ufe00-\ufe0f]/['test'](_0x4f257b['text']['slice'](_0x451200-_0x4f257b['from'],_0x1f3a43-_0x4f257b['from']))&&(_0x451200=findClusterBreak(_0x4f257b['text'],_0x451200-_0x4f257b['from'],!0x1,!0x1)+_0x4f257b['from']);return _0x451200;}),deleteCharBackward=_0x5c27bf=>deleteByChar(_0x5c27bf,!0x1,!0x0),deleteCharForward=_0x2f484b=>deleteByChar(_0x2f484b,!0x0,!0x1),deleteByGroup=(_0x5411c9,_0x191d99)=>deleteBy(_0x5411c9,_0x2a116e=>{let _0x196b47=_0x2a116e['head'],{state:_0x13ddb5}=_0x5411c9,_0x151dfd=_0x13ddb5['doc']['lineAt'](_0x196b47),_0x90ec2a=_0x13ddb5['charCategorizer'](_0x196b47);for(let _0x1f3017=null;;){if(_0x196b47==(_0x191d99?_0x151dfd['to']:_0x151dfd['from'])){_0x196b47==_0x2a116e['head']&&_0x151dfd['number']!=(_0x191d99?_0x13ddb5['doc']['lines']:0x1)&&(_0x196b47+=_0x191d99?0x1:-0x1);break;}let _0x1b5eaa=findClusterBreak(_0x151dfd['text'],_0x196b47-_0x151dfd['from'],_0x191d99)+_0x151dfd['from'],_0x3f868f=_0x151dfd['text']['slice'](Math['min'](_0x196b47,_0x1b5eaa)-_0x151dfd['from'],Math['max'](_0x196b47,_0x1b5eaa)-_0x151dfd['from']),_0x2e9eec=_0x90ec2a(_0x3f868f);if(null!=_0x1f3017&&_0x2e9eec!=_0x1f3017)break;'\x20'==_0x3f868f&&_0x196b47==_0x2a116e['head']||(_0x1f3017=_0x2e9eec),_0x196b47=_0x1b5eaa;}return _0x196b47;}),deleteGroupBackward=_0x2131be=>deleteByGroup(_0x2131be,!0x1),deleteGroupForward=_0x1872a6=>deleteByGroup(_0x1872a6,!0x0),deleteToLineEnd=_0x5267b5=>deleteBy(_0x5267b5,_0x5df073=>{let _0x2e98d0=_0x5267b5['lineBlockAt'](_0x5df073['head'])['to'];return _0x5df073['head']<_0x2e98d0?_0x2e98d0:Math['min'](_0x5267b5['state']['doc']['length'],_0x5df073['head']+0x1);}),deleteLineBoundaryBackward=_0x8dd3eb=>deleteBy(_0x8dd3eb,_0x45fc9b=>{let _0x4c3e6f=_0x8dd3eb['moveToLineBoundary'](_0x45fc9b,!0x1)['head'];return _0x45fc9b['head']>_0x4c3e6f?_0x4c3e6f:Math['max'](0x0,_0x45fc9b['head']-0x1);}),deleteLineBoundaryForward=_0x5184e9=>deleteBy(_0x5184e9,_0xd11d28=>{let _0xbaa9db=_0x5184e9['moveToLineBoundary'](_0xd11d28,!0x0)['head'];return _0xd11d28['head']<_0xbaa9db?_0xbaa9db:Math['min'](_0x5184e9['state']['doc']['length'],_0xd11d28['head']+0x1);}),splitLine=({state:_0x54d929,dispatch:_0x62d5ac})=>{if(_0x54d929['readOnly'])return!0x1;let _0x5ac2d3=_0x54d929['changeByRange'](_0x11d6f4=>({'changes':{'from':_0x11d6f4['from'],'to':_0x11d6f4['to'],'insert':Text['of'](['',''])},'range':EditorSelection['cursor'](_0x11d6f4['from'])}));return _0x62d5ac(_0x54d929['update'](_0x5ac2d3,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;},transposeChars=({state:_0x133d35,dispatch:_0xc344d6})=>{if(_0x133d35['readOnly'])return!0x1;let _0x395783=_0x133d35['changeByRange'](_0x4afdca=>{if(!_0x4afdca['empty']||0x0==_0x4afdca['from']||_0x4afdca['from']==_0x133d35['doc']['length'])return{'range':_0x4afdca};let _0x2ece72=_0x4afdca['from'],_0x422a50=_0x133d35['doc']['lineAt'](_0x2ece72),_0x527c01=_0x2ece72==_0x422a50['from']?_0x2ece72-0x1:findClusterBreak(_0x422a50['text'],_0x2ece72-_0x422a50['from'],!0x1)+_0x422a50['from'],_0x4a2a49=_0x2ece72==_0x422a50['to']?_0x2ece72+0x1:findClusterBreak(_0x422a50['text'],_0x2ece72-_0x422a50['from'],!0x0)+_0x422a50['from'];return{'changes':{'from':_0x527c01,'to':_0x4a2a49,'insert':_0x133d35['doc']['slice'](_0x2ece72,_0x4a2a49)['append'](_0x133d35['doc']['slice'](_0x527c01,_0x2ece72))},'range':EditorSelection['cursor'](_0x4a2a49)};});return!_0x395783['changes']['empty']&&(_0xc344d6(_0x133d35['update'](_0x395783,{'scrollIntoView':!0x0,'userEvent':'move.character'})),!0x0);};function selectedLineBlocks(_0x2d604e){let _0x2dfa28=[],_0x2681bb=-0x1;for(let _0x34803b of _0x2d604e['selection']['ranges']){let _0x5872d3=_0x2d604e['doc']['lineAt'](_0x34803b['from']),_0x59ce46=_0x2d604e['doc']['lineAt'](_0x34803b['to']);if(_0x34803b['empty']||_0x34803b['to']!=_0x59ce46['from']||(_0x59ce46=_0x2d604e['doc']['lineAt'](_0x34803b['to']-0x1)),_0x2681bb>=_0x5872d3['number']){let _0x1120ab=_0x2dfa28[_0x2dfa28['length']-0x1];_0x1120ab['to']=_0x59ce46['to'],_0x1120ab['ranges']['push'](_0x34803b);}else _0x2dfa28['push']({'from':_0x5872d3['from'],'to':_0x59ce46['to'],'ranges':[_0x34803b]});_0x2681bb=_0x59ce46['number']+0x1;}return _0x2dfa28;}function moveLine(_0x41da93,_0x3c0014,_0x4f61e0){if(_0x41da93['readOnly'])return!0x1;let _0x4d869f=[],_0x3eed74=[];for(let _0x5e6283 of selectedLineBlocks(_0x41da93)){if(_0x4f61e0?_0x5e6283['to']==_0x41da93['doc']['length']:0x0==_0x5e6283['from'])continue;let _0x2fed56=_0x41da93['doc']['lineAt'](_0x4f61e0?_0x5e6283['to']+0x1:_0x5e6283['from']-0x1),_0x3837e4=_0x2fed56['length']+0x1;if(_0x4f61e0){_0x4d869f['push']({'from':_0x5e6283['to'],'to':_0x2fed56['to']},{'from':_0x5e6283['from'],'insert':_0x2fed56['text']+_0x41da93['lineBreak']});for(let _0x31da41 of _0x5e6283['ranges'])_0x3eed74['push'](EditorSelection['range'](Math['min'](_0x41da93['doc']['length'],_0x31da41['anchor']+_0x3837e4),Math['min'](_0x41da93['doc']['length'],_0x31da41['head']+_0x3837e4)));}else{_0x4d869f['push']({'from':_0x2fed56['from'],'to':_0x5e6283['from']},{'from':_0x5e6283['to'],'insert':_0x41da93['lineBreak']+_0x2fed56['text']});for(let _0x199938 of _0x5e6283['ranges'])_0x3eed74['push'](EditorSelection['range'](_0x199938['anchor']-_0x3837e4,_0x199938['head']-_0x3837e4));}}return!!_0x4d869f['length']&&(_0x3c0014(_0x41da93['update']({'changes':_0x4d869f,'scrollIntoView':!0x0,'selection':EditorSelection['create'](_0x3eed74,_0x41da93['selection']['mainIndex']),'userEvent':'move.line'})),!0x0);}const moveLineUp=({state:_0x322be2,dispatch:_0x688273})=>moveLine(_0x322be2,_0x688273,!0x1),moveLineDown=({state:_0x115447,dispatch:_0x31e26d})=>moveLine(_0x115447,_0x31e26d,!0x0);function copyLine(_0x111953,_0x54cc75,_0x93430a){if(_0x111953['readOnly'])return!0x1;let _0x2d1d07=[];for(let _0x2492fd of selectedLineBlocks(_0x111953))_0x93430a?_0x2d1d07['push']({'from':_0x2492fd['from'],'insert':_0x111953['doc']['slice'](_0x2492fd['from'],_0x2492fd['to'])+_0x111953['lineBreak']}):_0x2d1d07['push']({'from':_0x2492fd['to'],'insert':_0x111953['lineBreak']+_0x111953['doc']['slice'](_0x2492fd['from'],_0x2492fd['to'])});return _0x54cc75(_0x111953['update']({'changes':_0x2d1d07,'scrollIntoView':!0x0,'userEvent':'input.copyline'})),!0x0;}const copyLineUp=({state:_0x237d21,dispatch:_0x526bd0})=>copyLine(_0x237d21,_0x526bd0,!0x1),copyLineDown=({state:_0x27c7ef,dispatch:_0x435394})=>copyLine(_0x27c7ef,_0x435394,!0x0),deleteLine=_0x56c6cd=>{if(_0x56c6cd['state']['readOnly'])return!0x1;let {state:_0x765bb8}=_0x56c6cd,_0x22a720=_0x765bb8['changes'](selectedLineBlocks(_0x765bb8)['map'](({from:_0x4142bb,to:_0x122b8c})=>(_0x4142bb>0x0?_0x4142bb--:_0x122b8c<_0x765bb8['doc']['length']&&_0x122b8c++,{'from':_0x4142bb,'to':_0x122b8c}))),_0x14bdc1=updateSel(_0x765bb8['selection'],_0x11cfe3=>{let _0x2987bc;if(_0x56c6cd['lineWrapping']){let _0x3f5e4c=_0x56c6cd['lineBlockAt'](_0x11cfe3['head']),_0xd9d671=_0x56c6cd['coordsAtPos'](_0x11cfe3['head'],_0x11cfe3['assoc']||0x1);_0xd9d671&&(_0x2987bc=_0x3f5e4c['bottom']+_0x56c6cd['documentTop']-_0xd9d671['bottom']+_0x56c6cd['defaultLineHeight']/0x2);}return _0x56c6cd['moveVertically'](_0x11cfe3,!0x0,_0x2987bc);})['map'](_0x22a720);return _0x56c6cd['dispatch']({'changes':_0x22a720,'selection':_0x14bdc1,'scrollIntoView':!0x0,'userEvent':'delete.line'}),!0x0;};function isBetweenBrackets(_0x47286b,_0x5c7e3a){if(/\(\)|\[\]|\{\}/['test'](_0x47286b['sliceDoc'](_0x5c7e3a-0x1,_0x5c7e3a+0x1)))return{'from':_0x5c7e3a,'to':_0x5c7e3a};let _0x24b33e,_0x5899a5=syntaxTree(_0x47286b)['resolveInner'](_0x5c7e3a),_0x2bf360=_0x5899a5['childBefore'](_0x5c7e3a),_0x656c66=_0x5899a5['childAfter'](_0x5c7e3a);return _0x2bf360&&_0x656c66&&_0x2bf360['to']<=_0x5c7e3a&&_0x656c66['from']>=_0x5c7e3a&&(_0x24b33e=_0x2bf360['type']['prop'](NodeProp['closedBy']))&&_0x24b33e['indexOf'](_0x656c66['name'])>-0x1&&_0x47286b['doc']['lineAt'](_0x2bf360['to'])['from']==_0x47286b['doc']['lineAt'](_0x656c66['from'])['from']&&!/\S/['test'](_0x47286b['sliceDoc'](_0x2bf360['to'],_0x656c66['from']))?{'from':_0x2bf360['to'],'to':_0x656c66['from']}:null;}const insertNewlineAndIndent=newlineAndIndent(!0x1),insertBlankLine=newlineAndIndent(!0x0);function newlineAndIndent(_0x3fd030){return({state:_0x193a03,dispatch:_0x1a2cd9})=>{if(_0x193a03['readOnly'])return!0x1;let _0x4c4998=_0x193a03['changeByRange'](_0x2e3ed2=>{let {from:_0x36ce0f,to:_0x50e365}=_0x2e3ed2,_0x619eb2=_0x193a03['doc']['lineAt'](_0x36ce0f),_0x5f3673=!_0x3fd030&&_0x36ce0f==_0x50e365&&isBetweenBrackets(_0x193a03,_0x36ce0f);_0x3fd030&&(_0x36ce0f=_0x50e365=(_0x50e365<=_0x619eb2['to']?_0x619eb2:_0x193a03['doc']['lineAt'](_0x50e365))['to']);let _0x54c128=new IndentContext(_0x193a03,{'simulateBreak':_0x36ce0f,'simulateDoubleBreak':!!_0x5f3673}),_0x346fe7=getIndentation(_0x54c128,_0x36ce0f);for(null==_0x346fe7&&(_0x346fe7=countColumn(/^\s*/['exec'](_0x193a03['doc']['lineAt'](_0x36ce0f)['text'])[0x0],_0x193a03['tabSize']));_0x50e365<_0x619eb2['to']&&/\s/['test'](_0x619eb2['text'][_0x50e365-_0x619eb2['from']]);)_0x50e365++;_0x5f3673?{from:_0x36ce0f,to:_0x50e365}=_0x5f3673:_0x36ce0f>_0x619eb2['from']&&_0x36ce0f<_0x619eb2['from']+0x64&&!/\S/['test'](_0x619eb2['text']['slice'](0x0,_0x36ce0f))&&(_0x36ce0f=_0x619eb2['from']);let _0x51b2e2=['',indentString(_0x193a03,_0x346fe7)];return _0x5f3673&&_0x51b2e2['push'](indentString(_0x193a03,_0x54c128['lineIndent'](_0x619eb2['from'],-0x1))),{'changes':{'from':_0x36ce0f,'to':_0x50e365,'insert':Text['of'](_0x51b2e2)},'range':EditorSelection['cursor'](_0x36ce0f+0x1+_0x51b2e2[0x1]['length'])};});return _0x1a2cd9(_0x193a03['update'](_0x4c4998,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;};}function changeBySelectedLine(_0x5e4709,_0x57eefc){let _0x47700b=-0x1;return _0x5e4709['changeByRange'](_0x3883ec=>{let _0xa9b58a=[];for(let _0x39ce9e=_0x3883ec['from'];_0x39ce9e<=_0x3883ec['to'];){let _0x1638c3=_0x5e4709['doc']['lineAt'](_0x39ce9e);_0x1638c3['number']>_0x47700b&&(_0x3883ec['empty']||_0x3883ec['to']>_0x1638c3['from'])&&(_0x57eefc(_0x1638c3,_0xa9b58a,_0x3883ec),_0x47700b=_0x1638c3['number']),_0x39ce9e=_0x1638c3['to']+0x1;}let _0x4d9751=_0x5e4709['changes'](_0xa9b58a);return{'changes':_0xa9b58a,'range':EditorSelection['range'](_0x4d9751['mapPos'](_0x3883ec['anchor'],0x1),_0x4d9751['mapPos'](_0x3883ec['head'],0x1))};});}const indentSelection=({state:_0x1bdc6b,dispatch:_0x4478a1})=>{if(_0x1bdc6b['readOnly'])return!0x1;let _0x4615e6=Object['create'](null),_0x501317=new IndentContext(_0x1bdc6b,{'overrideIndentation':_0x58f8ba=>{let _0x11c541=_0x4615e6[_0x58f8ba];return null==_0x11c541?-0x1:_0x11c541;}}),_0x35552c=changeBySelectedLine(_0x1bdc6b,(_0x2e86bf,_0x22eded,_0x3087bc)=>{let _0x4fc496=getIndentation(_0x501317,_0x2e86bf['from']);if(null==_0x4fc496)return;/\S/['test'](_0x2e86bf['text'])||(_0x4fc496=0x0);let _0x8a0f9a=/^\s*/['exec'](_0x2e86bf['text'])[0x0],_0x418808=indentString(_0x1bdc6b,_0x4fc496);(_0x8a0f9a!=_0x418808||_0x3087bc['from']<_0x2e86bf['from']+_0x8a0f9a['length'])&&(_0x4615e6[_0x2e86bf['from']]=_0x4fc496,_0x22eded['push']({'from':_0x2e86bf['from'],'to':_0x2e86bf['from']+_0x8a0f9a['length'],'insert':_0x418808}));});return _0x35552c['changes']['empty']||_0x4478a1(_0x1bdc6b['update'](_0x35552c,{'userEvent':'indent'})),!0x0;},indentMore=({state:_0x4720a0,dispatch:_0x4dbfe2})=>!_0x4720a0['readOnly']&&(_0x4dbfe2(_0x4720a0['update'](changeBySelectedLine(_0x4720a0,(_0x5424ed,_0x4bc644)=>{_0x4bc644['push']({'from':_0x5424ed['from'],'insert':_0x4720a0['facet'](indentUnit)});}),{'userEvent':'input.indent'})),!0x0),indentLess=({state:_0x3c38f4,dispatch:_0x427bc4})=>!_0x3c38f4['readOnly']&&(_0x427bc4(_0x3c38f4['update'](changeBySelectedLine(_0x3c38f4,(_0x32af3f,_0x5e98ec)=>{let _0x3a2713=/^\s*/['exec'](_0x32af3f['text'])[0x0];if(!_0x3a2713)return;let _0x35511a=countColumn(_0x3a2713,_0x3c38f4['tabSize']),_0x57ebcc=0x0,_0x4dfa23=indentString(_0x3c38f4,Math['max'](0x0,_0x35511a-getIndentUnit(_0x3c38f4)));for(;_0x57ebcc<_0x3a2713['length']&&_0x57ebcc<_0x4dfa23['length']&&_0x3a2713['charCodeAt'](_0x57ebcc)==_0x4dfa23['charCodeAt'](_0x57ebcc);)_0x57ebcc++;_0x5e98ec['push']({'from':_0x32af3f['from']+_0x57ebcc,'to':_0x32af3f['from']+_0x3a2713['length'],'insert':_0x4dfa23['slice'](_0x57ebcc)});}),{'userEvent':'delete.dedent'})),!0x0),toggleTabFocusMode=_0x2e6945=>(_0x2e6945['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'](_0x35e973=>({'mac':_0x35e973['key'],'run':_0x35e973['run'],'shift':_0x35e973['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(_0x22e30d,_0x490b0a,_0x8cf43f,_0xf769e5){this['state']=_0x22e30d,this['pos']=_0x490b0a,this['explicit']=_0x8cf43f,this['view']=_0xf769e5,this['abortListeners']=[],this['abortOnDocChange']=!0x1;}['tokenBefore'](_0x388284){let _0x484ee4=syntaxTree(this['state'])['resolveInner'](this['pos'],-0x1);for(;_0x484ee4&&_0x388284['indexOf'](_0x484ee4['name'])<0x0;)_0x484ee4=_0x484ee4['parent'];return _0x484ee4?{'from':_0x484ee4['from'],'to':this['pos'],'text':this['state']['sliceDoc'](_0x484ee4['from'],this['pos']),'type':_0x484ee4['type']}:null;}['matchBefore'](_0x20a8bb){let _0x821036=this['state']['doc']['lineAt'](this['pos']),_0x1d752c=Math['max'](_0x821036['from'],this['pos']-0xfa),_0x2d683a=_0x821036['text']['slice'](_0x1d752c-_0x821036['from'],this['pos']-_0x821036['from']),_0xb9fbfc=_0x2d683a['search'](ensureAnchor(_0x20a8bb,!0x1));return _0xb9fbfc<0x0?null:{'from':_0x1d752c+_0xb9fbfc,'to':this['pos'],'text':_0x2d683a['slice'](_0xb9fbfc)};}get['aborted'](){return null==this['abortListeners'];}['addEventListener'](_0x211a6c,_0x5a02f4,_0x2208fa){'abort'==_0x211a6c&&this['abortListeners']&&(this['abortListeners']['push'](_0x5a02f4),_0x2208fa&&_0x2208fa['onDocChange']&&(this['abortOnDocChange']=!0x0));}}function toSet(_0x4090e7){let _0x5c8feb=Object['keys'](_0x4090e7)['join'](''),_0xd39d10=/\w/['test'](_0x5c8feb);return _0xd39d10&&(_0x5c8feb=_0x5c8feb['replace'](/\w/g,'')),'['+(_0xd39d10?'\x5cw':'')+_0x5c8feb['replace'](/[^\w\s]/g,'\x5c$&')+']';}function prefixMatch(_0x4972ad){let _0x511e05=Object['create'](null),_0x3764b7=Object['create'](null);for(let {label:_0x54f48a}of _0x4972ad){_0x511e05[_0x54f48a[0x0]]=!0x0;for(let _0x1bb5cb=0x1;_0x1bb5cb<_0x54f48a['length'];_0x1bb5cb++)_0x3764b7[_0x54f48a[_0x1bb5cb]]=!0x0;}let _0x53719d=toSet(_0x511e05)+toSet(_0x3764b7)+'*$';return[new RegExp('^'+_0x53719d),new RegExp(_0x53719d)];}function completeFromList(_0x43bc3e){let _0x43a931=_0x43bc3e['map'](_0x4451a1=>'string'==typeof _0x4451a1?{'label':_0x4451a1}:_0x4451a1),[_0x3a7caa,_0x278e2e]=_0x43a931['every'](_0x15dd34=>/^\w+$/['test'](_0x15dd34['label']))?[/\w*$/,/\w+$/]:prefixMatch(_0x43a931);return _0x572613=>{let _0x5b63e1=_0x572613['matchBefore'](_0x278e2e);return _0x5b63e1||_0x572613['explicit']?{'from':_0x5b63e1?_0x5b63e1['from']:_0x572613['pos'],'options':_0x43a931,'validFor':_0x3a7caa}:null;};}function ifNotIn(_0x2ee644,_0x7e5dba){return _0x3b4706=>{for(let _0x4622bb=syntaxTree(_0x3b4706['state'])['resolveInner'](_0x3b4706['pos'],-0x1);_0x4622bb;_0x4622bb=_0x4622bb['parent']){if(_0x2ee644['indexOf'](_0x4622bb['name'])>-0x1)return null;if(_0x4622bb['type']['isTop'])break;}return _0x7e5dba(_0x3b4706);};}class Option{constructor(_0x1be5fd,_0x35e800,_0x3c94bf,_0x25e2c1){this['completion']=_0x1be5fd,this['source']=_0x35e800,this['match']=_0x3c94bf,this['score']=_0x25e2c1;}}function cur(_0x32dcd0){return _0x32dcd0['selection']['main']['from'];}function ensureAnchor(_0x2073d9,_0x418a8d){var _0x5d71ac;let {source:_0x22280e}=_0x2073d9,_0x143b93=_0x418a8d&&'^'!=_0x22280e[0x0],_0x4e10b8='$'!=_0x22280e[_0x22280e['length']-0x1];return _0x143b93||_0x4e10b8?new RegExp((_0x143b93?'^':'')+'(?:'+_0x22280e+')'+(_0x4e10b8?'$':''),null!==(_0x5d71ac=_0x2073d9['flags'])&&void 0x0!==_0x5d71ac?_0x5d71ac:_0x2073d9['ignoreCase']?'i':''):_0x2073d9;}const pickedCompletion=Annotation['define']();function insertCompletionText(_0x7122b6,_0x445592,_0x5c5eb9,_0x53c6bc){let {main:_0x52125d}=_0x7122b6['selection'],_0x7f5a3b=_0x5c5eb9-_0x52125d['from'],_0x17527e=_0x53c6bc-_0x52125d['from'];return{..._0x7122b6['changeByRange'](_0x16d7eb=>{if(_0x16d7eb!=_0x52125d&&_0x5c5eb9!=_0x53c6bc&&_0x7122b6['sliceDoc'](_0x16d7eb['from']+_0x7f5a3b,_0x16d7eb['from']+_0x17527e)!=_0x7122b6['sliceDoc'](_0x5c5eb9,_0x53c6bc))return{'range':_0x16d7eb};let _0x3fa94b=_0x7122b6['toText'](_0x445592);return{'changes':{'from':_0x16d7eb['from']+_0x7f5a3b,'to':_0x53c6bc==_0x52125d['from']?_0x16d7eb['to']:_0x16d7eb['from']+_0x17527e,'insert':_0x3fa94b},'range':EditorSelection['cursor'](_0x16d7eb['from']+_0x7f5a3b+_0x3fa94b['length'])};}),'scrollIntoView':!0x0,'userEvent':'input.complete'};}const SourceCache=new WeakMap();function asSource(_0x188571){if(!Array['isArray'](_0x188571))return _0x188571;let _0x373ced=SourceCache['get'](_0x188571);return _0x373ced||SourceCache['set'](_0x188571,_0x373ced=completeFromList(_0x188571)),_0x373ced;}const startCompletionEffect=StateEffect['define'](),closeCompletionEffect=StateEffect['define']();class FuzzyMatcher{constructor(_0x2bf396){this['pattern']=_0x2bf396,this['chars']=[],this['folded']=[],this['any']=[],this['precise']=[],this['byWord']=[],this['score']=0x0,this['matched']=[];for(let _0x183a97=0x0;_0x183a97<_0x2bf396['length'];){let _0x3b71ba=codePointAt(_0x2bf396,_0x183a97),_0x24cd9c=codePointSize(_0x3b71ba);this['chars']['push'](_0x3b71ba);let _0x54df92=_0x2bf396['slice'](_0x183a97,_0x183a97+_0x24cd9c),_0x384751=_0x54df92['toUpperCase']();this['folded']['push'](codePointAt(_0x384751==_0x54df92?_0x54df92['toLowerCase']():_0x384751,0x0)),_0x183a97+=_0x24cd9c;}this['astral']=_0x2bf396['length']!=this['chars']['length'];}['ret'](_0x50b623,_0x41baf8){return this['score']=_0x50b623,this['matched']=_0x41baf8,this;}['match'](_0x51e511){if(0x0==this['pattern']['length'])return this['ret'](-0x64,[]);if(_0x51e511['length']<this['pattern']['length'])return null;let {chars:_0x5a075c,folded:_0x233c69,any:_0x127d52,precise:_0x228406,byWord:_0x347159}=this;if(0x1==_0x5a075c['length']){let _0x28d54e=codePointAt(_0x51e511,0x0),_0x389d7d=codePointSize(_0x28d54e),_0x3c9068=_0x389d7d==_0x51e511['length']?0x0:-0x64;if(_0x28d54e==_0x5a075c[0x0]);else{if(_0x28d54e!=_0x233c69[0x0])return null;_0x3c9068+=-0xc8;}return this['ret'](_0x3c9068,[0x0,_0x389d7d]);}let _0xad6cd3=_0x51e511['indexOf'](this['pattern']);if(0x0==_0xad6cd3)return this['ret'](_0x51e511['length']==this['pattern']['length']?0x0:-0x64,[0x0,this['pattern']['length']]);let _0x9f50d7=_0x5a075c['length'],_0x1941d0=0x0;if(_0xad6cd3<0x0){for(let _0x3350f1=0x0,_0x4d38f3=Math['min'](_0x51e511['length'],0xc8);_0x3350f1<_0x4d38f3&&_0x1941d0<_0x9f50d7;){let _0x52ccc7=codePointAt(_0x51e511,_0x3350f1);_0x52ccc7!=_0x5a075c[_0x1941d0]&&_0x52ccc7!=_0x233c69[_0x1941d0]||(_0x127d52[_0x1941d0++]=_0x3350f1),_0x3350f1+=codePointSize(_0x52ccc7);}if(_0x1941d0<_0x9f50d7)return null;}let _0x1ee0a9=0x0,_0x436191=0x0,_0x144eb8=!0x1,_0x285cec=0x0,_0x442cb2=-0x1,_0x31ea10=-0x1,_0x17d0c8=/[a-z]/['test'](_0x51e511),_0x284e19=!0x0;for(let _0xbbaccb=0x0,_0x355bec=Math['min'](_0x51e511['length'],0xc8),_0x1b98df=0x0;_0xbbaccb<_0x355bec&&_0x436191<_0x9f50d7;){let _0x1cb0e4=codePointAt(_0x51e511,_0xbbaccb);_0xad6cd3<0x0&&(_0x1ee0a9<_0x9f50d7&&_0x1cb0e4==_0x5a075c[_0x1ee0a9]&&(_0x228406[_0x1ee0a9++]=_0xbbaccb),_0x285cec<_0x9f50d7&&(_0x1cb0e4==_0x5a075c[_0x285cec]||_0x1cb0e4==_0x233c69[_0x285cec]?(0x0==_0x285cec&&(_0x442cb2=_0xbbaccb),_0x31ea10=_0xbbaccb+0x1,_0x285cec++):_0x285cec=0x0));let _0x3d9ef8,_0x2fd944=_0x1cb0e4<0xff?_0x1cb0e4>=0x30&&_0x1cb0e4<=0x39||_0x1cb0e4>=0x61&&_0x1cb0e4<=0x7a?0x2:_0x1cb0e4>=0x41&&_0x1cb0e4<=0x5a?0x1:0x0:(_0x3d9ef8=fromCodePoint(_0x1cb0e4))!=_0x3d9ef8['toLowerCase']()?0x1:_0x3d9ef8!=_0x3d9ef8['toUpperCase']()?0x2:0x0;(!_0xbbaccb||0x1==_0x2fd944&&_0x17d0c8||0x0==_0x1b98df&&0x0!=_0x2fd944)&&(_0x5a075c[_0x436191]==_0x1cb0e4||_0x233c69[_0x436191]==_0x1cb0e4&&(_0x144eb8=!0x0)?_0x347159[_0x436191++]=_0xbbaccb:_0x347159['length']&&(_0x284e19=!0x1)),_0x1b98df=_0x2fd944,_0xbbaccb+=codePointSize(_0x1cb0e4);}return _0x436191==_0x9f50d7&&0x0==_0x347159[0x0]&&_0x284e19?this['result']((_0x144eb8?-0xc8:0x0)-0x64,_0x347159,_0x51e511):_0x285cec==_0x9f50d7&&0x0==_0x442cb2?this['ret'](-0xc8-_0x51e511['length']+(_0x31ea10==_0x51e511['length']?0x0:-0x64),[0x0,_0x31ea10]):_0xad6cd3>-0x1?this['ret'](-0x2bc-_0x51e511['length'],[_0xad6cd3,_0xad6cd3+this['pattern']['length']]):_0x285cec==_0x9f50d7?this['ret'](-0x384-_0x51e511['length'],[_0x442cb2,_0x31ea10]):_0x436191==_0x9f50d7?this['result']((_0x144eb8?-0xc8:0x0)-0x64-0x2bc+(_0x284e19?0x0:-0x44c),_0x347159,_0x51e511):0x2==_0x5a075c['length']?null:this['result']((_0x127d52[0x0]?-0x2bc:0x0)-0xc8-0x44c,_0x127d52,_0x51e511);}['result'](_0x5b3be4,_0x31896c,_0x5099bb){let _0x41fc2=[],_0x459475=0x0;for(let _0x555811 of _0x31896c){let _0x159c47=_0x555811+(this['astral']?codePointSize(codePointAt(_0x5099bb,_0x555811)):0x1);_0x459475&&_0x41fc2[_0x459475-0x1]==_0x555811?_0x41fc2[_0x459475-0x1]=_0x159c47:(_0x41fc2[_0x459475++]=_0x555811,_0x41fc2[_0x459475++]=_0x159c47);}return this['ret'](_0x5b3be4-_0x5099bb['length'],_0x41fc2);}}class StrictMatcher{constructor(_0x2c8997){this['pattern']=_0x2c8997,this['matched']=[],this['score']=0x0,this['folded']=_0x2c8997['toLowerCase']();}['match'](_0x22f79a){if(_0x22f79a['length']<this['pattern']['length'])return null;let _0x24e0e7=_0x22f79a['slice'](0x0,this['pattern']['length']),_0x2426b7=_0x24e0e7==this['pattern']?0x0:_0x24e0e7['toLowerCase']()==this['folded']?-0xc8:null;return null==_0x2426b7?null:(this['matched']=[0x0,_0x24e0e7['length']],this['score']=_0x2426b7+(_0x22f79a['length']==this['pattern']['length']?0x0:-0x64),this);}}const completionConfig=Facet['define']({'combine':_0x12382b=>combineConfig(_0x12382b,{'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':(_0x45dc07,_0x11126c)=>_0x45dc07['label']['localeCompare'](_0x11126c['label']),'interactionDelay':0x4b,'updateSyncTime':0x64},{'defaultKeymap':(_0x160553,_0x21a8d7)=>_0x160553&&_0x21a8d7,'closeOnBlur':(_0x3cfb1d,_0x3bfbd9)=>_0x3cfb1d&&_0x3bfbd9,'icons':(_0x2f8823,_0x171f15)=>_0x2f8823&&_0x171f15,'tooltipClass':(_0x58f465,_0x5965d5)=>_0x3b1153=>joinClass(_0x58f465(_0x3b1153),_0x5965d5(_0x3b1153)),'optionClass':(_0x4b99bc,_0x441400)=>_0xde7c49=>joinClass(_0x4b99bc(_0xde7c49),_0x441400(_0xde7c49)),'addToOptions':(_0x2b320f,_0x36878b)=>_0x2b320f['concat'](_0x36878b),'filterStrict':(_0x2ffaf2,_0x396521)=>_0x2ffaf2||_0x396521})});function joinClass(_0x13763c,_0x2842b2){return _0x13763c?_0x2842b2?_0x13763c+'\x20'+_0x2842b2:_0x13763c:_0x2842b2;}function defaultPositionInfo(_0x5d4163,_0x26b829,_0x2a6674,_0x1c61b2,_0x225a1a,_0x56dd82){let _0x28dd23,_0x4ca165,_0x1a432e=_0x5d4163['textDirection']==Direction['RTL'],_0x2b0618=_0x1a432e,_0xbc7dff=!0x1,_0x183c32='top',_0x12258f=_0x26b829['left']-_0x225a1a['left'],_0x3c765b=_0x225a1a['right']-_0x26b829['right'],_0x1d08a7=_0x1c61b2['right']-_0x1c61b2['left'],_0x47ed51=_0x1c61b2['bottom']-_0x1c61b2['top'];if(_0x2b0618&&_0x12258f<Math['min'](_0x1d08a7,_0x3c765b)?_0x2b0618=!0x1:!_0x2b0618&&_0x3c765b<Math['min'](_0x1d08a7,_0x12258f)&&(_0x2b0618=!0x0),_0x1d08a7<=(_0x2b0618?_0x12258f:_0x3c765b))_0x28dd23=Math['max'](_0x225a1a['top'],Math['min'](_0x2a6674['top'],_0x225a1a['bottom']-_0x47ed51))-_0x26b829['top'],_0x4ca165=Math['min'](0x190,_0x2b0618?_0x12258f:_0x3c765b);else{_0xbc7dff=!0x0,_0x4ca165=Math['min'](0x190,(_0x1a432e?_0x26b829['right']:_0x225a1a['right']-_0x26b829['left'])-0x1e);let _0x437c07=_0x225a1a['bottom']-_0x26b829['bottom'];_0x437c07>=_0x47ed51||_0x437c07>_0x26b829['top']?_0x28dd23=_0x2a6674['bottom']-_0x26b829['top']:(_0x183c32='bottom',_0x28dd23=_0x26b829['bottom']-_0x2a6674['top']);}return{'style':_0x183c32+':\x20'+_0x28dd23/((_0x26b829['bottom']-_0x26b829['top'])/_0x56dd82['offsetHeight'])+'px;\x20max-width:\x20'+_0x4ca165/((_0x26b829['right']-_0x26b829['left'])/_0x56dd82['offsetWidth'])+'px','class':'cm-completionInfo-'+(_0xbc7dff?_0x1a432e?'left-narrow':'right-narrow':_0x2b0618?'left':'right')};}function optionContent(_0x23846a){let _0x5f1238=_0x23846a['addToOptions']['slice']();return _0x23846a['icons']&&_0x5f1238['push']({'render'(_0x471b95){let _0x2e9843=document['createElement']('div');return _0x2e9843['classList']['add']('cm-completionIcon'),_0x471b95['type']&&_0x2e9843['classList']['add'](..._0x471b95['type']['split'](/\s+/g)['map'](_0x2985ce=>'cm-completionIcon-'+_0x2985ce)),_0x2e9843['setAttribute']('aria-hidden','true'),_0x2e9843;},'position':0x14}),_0x5f1238['push']({'render'(_0x46d63d,_0x6446b2,_0x49eeb6,_0x34111a){let _0x180aaf=document['createElement']('span');_0x180aaf['className']='cm-completionLabel';let _0x5d7832=_0x46d63d['displayLabel']||_0x46d63d['label'],_0x2b1b0d=0x0;for(let _0xc4118a=0x0;_0xc4118a<_0x34111a['length'];){let _0x41e161=_0x34111a[_0xc4118a++],_0x17c2c6=_0x34111a[_0xc4118a++];_0x41e161>_0x2b1b0d&&_0x180aaf['appendChild'](document['createTextNode'](_0x5d7832['slice'](_0x2b1b0d,_0x41e161)));let _0x218c1f=_0x180aaf['appendChild'](document['createElement']('span'));_0x218c1f['appendChild'](document['createTextNode'](_0x5d7832['slice'](_0x41e161,_0x17c2c6))),_0x218c1f['className']='cm-completionMatchedText',_0x2b1b0d=_0x17c2c6;}return _0x2b1b0d<_0x5d7832['length']&&_0x180aaf['appendChild'](document['createTextNode'](_0x5d7832['slice'](_0x2b1b0d))),_0x180aaf;},'position':0x32},{'render'(_0x1fd717){if(!_0x1fd717['detail'])return null;let _0x4a178f=document['createElement']('span');return _0x4a178f['className']='cm-completionDetail',_0x4a178f['textContent']=_0x1fd717['detail'],_0x4a178f;},'position':0x50}),_0x5f1238['sort']((_0xb8492d,_0x3953ce)=>_0xb8492d['position']-_0x3953ce['position'])['map'](_0x4072a0=>_0x4072a0['render']);}function rangeAroundSelected(_0x527a27,_0x2aa3a0,_0x214769){if(_0x527a27<=_0x214769)return{'from':0x0,'to':_0x527a27};if(_0x2aa3a0<0x0&&(_0x2aa3a0=0x0),_0x2aa3a0<=_0x527a27>>0x1){let _0x123820=Math['floor'](_0x2aa3a0/_0x214769);return{'from':_0x123820*_0x214769,'to':(_0x123820+0x1)*_0x214769};}let _0x30e892=Math['floor']((_0x527a27-_0x2aa3a0)/_0x214769);return{'from':_0x527a27-(_0x30e892+0x1)*_0x214769,'to':_0x527a27-_0x30e892*_0x214769};}class CompletionTooltip{constructor(_0x439026,_0x901b67,_0x3a62f7){this['view']=_0x439026,this['stateField']=_0x901b67,this['applyCompletion']=_0x3a62f7,this['info']=null,this['infoDestroy']=null,this['placeInfoReq']={'read':()=>this['measureInfo'](),'write':_0x5bc6b4=>this['placeInfo'](_0x5bc6b4),'key':this},this['space']=null,this['currentClass']='';let _0x13a33d=_0x439026['state']['field'](_0x901b67),{options:_0xf32420,selected:_0x23d956}=_0x13a33d['open'],_0x3bda96=_0x439026['state']['facet'](completionConfig);this['optionContent']=optionContent(_0x3bda96),this['optionClass']=_0x3bda96['optionClass'],this['tooltipClass']=_0x3bda96['tooltipClass'],this['range']=rangeAroundSelected(_0xf32420['length'],_0x23d956,_0x3bda96['maxRenderedOptions']),this['dom']=document['createElement']('div'),this['dom']['className']='cm-tooltip-autocomplete',this['updateTooltipClass'](_0x439026['state']),this['dom']['addEventListener']('mousedown',_0xb757d6=>{let {options:_0x385b6c}=_0x439026['state']['field'](_0x901b67)['open'];for(let _0x37f570,_0x183440=_0xb757d6['target'];_0x183440&&_0x183440!=this['dom'];_0x183440=_0x183440['parentNode'])if('LI'==_0x183440['nodeName']&&(_0x37f570=/-(\d+)$/['exec'](_0x183440['id']))&&+_0x37f570[0x1]<_0x385b6c['length'])return this['applyCompletion'](_0x439026,_0x385b6c[+_0x37f570[0x1]]),void _0xb757d6['preventDefault']();}),this['dom']['addEventListener']('focusout',_0x50c128=>{let _0xa1d035=_0x439026['state']['field'](this['stateField'],!0x1);_0xa1d035&&_0xa1d035['tooltip']&&_0x439026['state']['facet'](completionConfig)['closeOnBlur']&&_0x50c128['relatedTarget']!=_0x439026['contentDOM']&&_0x439026['dispatch']({'effects':closeCompletionEffect['of'](null)});}),this['showOptions'](_0xf32420,_0x13a33d['id']);}['mount'](){this['updateSel']();}['showOptions'](_0x110bd7,_0x4a716b){this['list']&&this['list']['remove'](),this['list']=this['dom']['appendChild'](this['createListBox'](_0x110bd7,_0x4a716b,this['range'])),this['list']['addEventListener']('scroll',()=>{this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);});}['update'](_0x1c7a7b){var _0x58dee4;let _0x51dc7a=_0x1c7a7b['state']['field'](this['stateField']),_0xeb5b59=_0x1c7a7b['startState']['field'](this['stateField']);if(this['updateTooltipClass'](_0x1c7a7b['state']),_0x51dc7a!=_0xeb5b59){let {options:_0x2fbd87,selected:_0x7ddba3,disabled:_0x29b65e}=_0x51dc7a['open'];_0xeb5b59['open']&&_0xeb5b59['open']['options']==_0x2fbd87||(this['range']=rangeAroundSelected(_0x2fbd87['length'],_0x7ddba3,_0x1c7a7b['state']['facet'](completionConfig)['maxRenderedOptions']),this['showOptions'](_0x2fbd87,_0x51dc7a['id'])),this['updateSel'](),_0x29b65e!=(null===(_0x58dee4=_0xeb5b59['open'])||void 0x0===_0x58dee4?void 0x0:_0x58dee4['disabled'])&&this['dom']['classList']['toggle']('cm-tooltip-autocomplete-disabled',!!_0x29b65e);}}['updateTooltipClass'](_0x23645d){let _0x4dc579=this['tooltipClass'](_0x23645d);if(_0x4dc579!=this['currentClass']){for(let _0x290740 of this['currentClass']['split']('\x20'))_0x290740&&this['dom']['classList']['remove'](_0x290740);for(let _0x22f58d of _0x4dc579['split']('\x20'))_0x22f58d&&this['dom']['classList']['add'](_0x22f58d);this['currentClass']=_0x4dc579;}}['positioned'](_0x4db86e){this['space']=_0x4db86e,this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);}['updateSel'](){let _0x13f882=this['view']['state']['field'](this['stateField']),_0x30d502=_0x13f882['open'];(_0x30d502['selected']>-0x1&&_0x30d502['selected']<this['range']['from']||_0x30d502['selected']>=this['range']['to'])&&(this['range']=rangeAroundSelected(_0x30d502['options']['length'],_0x30d502['selected'],this['view']['state']['facet'](completionConfig)['maxRenderedOptions']),this['showOptions'](_0x30d502['options'],_0x13f882['id']));let _0x238ecb=this['updateSelectedOption'](_0x30d502['selected']);if(_0x238ecb){this['destroyInfo']();let {completion:_0x599feb}=_0x30d502['options'][_0x30d502['selected']],{info:_0x36de69}=_0x599feb;if(!_0x36de69)return;let _0x5eb6a6='string'==typeof _0x36de69?document['createTextNode'](_0x36de69):_0x36de69(_0x599feb);if(!_0x5eb6a6)return;'then'in _0x5eb6a6?_0x5eb6a6['then'](_0x1c3b4c=>{_0x1c3b4c&&this['view']['state']['field'](this['stateField'],!0x1)==_0x13f882&&this['addInfoPane'](_0x1c3b4c,_0x599feb);})['catch'](_0x314700=>logException(this['view']['state'],_0x314700,'completion\x20info')):(this['addInfoPane'](_0x5eb6a6,_0x599feb),_0x238ecb['setAttribute']('aria-describedby',this['info']['id']));}}['addInfoPane'](_0x4f4ad4,_0xe0a2fe){this['destroyInfo']();let _0x1e1334=this['info']=document['createElement']('div');if(_0x1e1334['className']='cm-tooltip\x20cm-completionInfo',_0x1e1334['id']='cm-completionInfo-'+Math['floor'](0xffff*Math['random']())['toString'](0x10),null!=_0x4f4ad4['nodeType'])_0x1e1334['appendChild'](_0x4f4ad4),this['infoDestroy']=null;else{let {dom:_0xddf413,destroy:_0xb2ce17}=_0x4f4ad4;_0x1e1334['appendChild'](_0xddf413),this['infoDestroy']=_0xb2ce17||null;}this['dom']['appendChild'](_0x1e1334),this['view']['requestMeasure'](this['placeInfoReq']);}['updateSelectedOption'](_0x26a7f8){let _0x7503c9=null;for(let _0x926ab2=this['list']['firstChild'],_0x14058c=this['range']['from'];_0x926ab2;_0x926ab2=_0x926ab2['nextSibling'],_0x14058c++)'LI'==_0x926ab2['nodeName']&&_0x926ab2['id']?_0x14058c==_0x26a7f8?_0x926ab2['hasAttribute']('aria-selected')||(_0x926ab2['setAttribute']('aria-selected','true'),_0x7503c9=_0x926ab2):_0x926ab2['hasAttribute']('aria-selected')&&(_0x926ab2['removeAttribute']('aria-selected'),_0x926ab2['removeAttribute']('aria-describedby')):_0x14058c--;return _0x7503c9&&scrollIntoView(this['list'],_0x7503c9),_0x7503c9;}['measureInfo'](){let _0x450d05=this['dom']['querySelector']('[aria-selected]');if(!_0x450d05||!this['info'])return null;let _0x467749=this['dom']['getBoundingClientRect'](),_0x5d75da=this['info']['getBoundingClientRect'](),_0x2e6c59=_0x450d05['getBoundingClientRect'](),_0x51dcbd=this['space'];if(!_0x51dcbd){let _0x1ea198=this['dom']['ownerDocument']['documentElement'];_0x51dcbd={'left':0x0,'top':0x0,'right':_0x1ea198['clientWidth'],'bottom':_0x1ea198['clientHeight']};}return _0x2e6c59['top']>Math['min'](_0x51dcbd['bottom'],_0x467749['bottom'])-0xa||_0x2e6c59['bottom']<Math['max'](_0x51dcbd['top'],_0x467749['top'])+0xa?null:this['view']['state']['facet'](completionConfig)['positionInfo'](this['view'],_0x467749,_0x2e6c59,_0x5d75da,_0x51dcbd,this['dom']);}['placeInfo'](_0x51c7c4){this['info']&&(_0x51c7c4?(_0x51c7c4['style']&&(this['info']['style']['cssText']=_0x51c7c4['style']),this['info']['className']='cm-tooltip\x20cm-completionInfo\x20'+(_0x51c7c4['class']||'')):this['info']['style']['cssText']='top:\x20-1e6px');}['createListBox'](_0x21f580,_0x304bf3,_0xe1511e){const _0x14f787=document['createElement']('ul');_0x14f787['id']=_0x304bf3,_0x14f787['setAttribute']('role','listbox'),_0x14f787['setAttribute']('aria-expanded','true'),_0x14f787['setAttribute']('aria-label',this['view']['state']['phrase']('Completions')),_0x14f787['addEventListener']('mousedown',_0x362498=>{_0x362498['target']==_0x14f787&&_0x362498['preventDefault']();});let _0x28ebeb=null;for(let _0x471a38=_0xe1511e['from'];_0x471a38<_0xe1511e['to'];_0x471a38++){let {completion:_0x42bcca,match:_0x31eefc}=_0x21f580[_0x471a38],{section:_0x2769bf}=_0x42bcca;if(_0x2769bf){let _0x15a6ed='string'==typeof _0x2769bf?_0x2769bf:_0x2769bf['name'];if(_0x15a6ed!=_0x28ebeb&&(_0x471a38>_0xe1511e['from']||0x0==_0xe1511e['from'])){if(_0x28ebeb=_0x15a6ed,'string'!=typeof _0x2769bf&&_0x2769bf['header'])_0x14f787['appendChild'](_0x2769bf['header'](_0x2769bf));else _0x14f787['appendChild'](document['createElement']('completion-section'))['textContent']=_0x15a6ed;}}const _0x29490e=_0x14f787['appendChild'](document['createElement']('li'));_0x29490e['id']=_0x304bf3+'-'+_0x471a38,_0x29490e['setAttribute']('role','option');let _0x3c0bd0=this['optionClass'](_0x42bcca);_0x3c0bd0&&(_0x29490e['className']=_0x3c0bd0);for(let _0x1c20e0 of this['optionContent']){let _0x598c6b=_0x1c20e0(_0x42bcca,this['view']['state'],this['view'],_0x31eefc);_0x598c6b&&_0x29490e['appendChild'](_0x598c6b);}}return _0xe1511e['from']&&_0x14f787['classList']['add']('cm-completionListIncompleteTop'),_0xe1511e['to']<_0x21f580['length']&&_0x14f787['classList']['add']('cm-completionListIncompleteBottom'),_0x14f787;}['destroyInfo'](){this['info']&&(this['infoDestroy']&&this['infoDestroy'](),this['info']['remove'](),this['info']=null);}['destroy'](){this['destroyInfo']();}}function completionTooltip(_0x1f63f1,_0x18abbe){return _0x6b33a4=>new CompletionTooltip(_0x6b33a4,_0x1f63f1,_0x18abbe);}function scrollIntoView(_0x575db8,_0x1a5259){let _0x149592=_0x575db8['getBoundingClientRect'](),_0x34bee3=_0x1a5259['getBoundingClientRect'](),_0x492762=_0x149592['height']/_0x575db8['offsetHeight'];_0x34bee3['top']<_0x149592['top']?_0x575db8['scrollTop']-=(_0x149592['top']-_0x34bee3['top'])/_0x492762:_0x34bee3['bottom']>_0x149592['bottom']&&(_0x575db8['scrollTop']+=(_0x34bee3['bottom']-_0x149592['bottom'])/_0x492762);}function score(_0x4698e2){return 0x64*(_0x4698e2['boost']||0x0)+(_0x4698e2['apply']?0xa:0x0)+(_0x4698e2['info']?0x5:0x0)+(_0x4698e2['type']?0x1:0x0);}function sortOptions(_0x3fbf21,_0x4d04c5){let _0x2a4446=[],_0x55e930=null,_0x18f238=null,_0x3e3acb=_0x7c8e66=>{_0x2a4446['push'](_0x7c8e66);let {section:_0x1d6bc9}=_0x7c8e66['completion'];if(_0x1d6bc9){_0x55e930||(_0x55e930=[]);let _0x111977='string'==typeof _0x1d6bc9?_0x1d6bc9:_0x1d6bc9['name'];_0x55e930['some'](_0x558650=>_0x558650['name']==_0x111977)||_0x55e930['push']('string'==typeof _0x1d6bc9?{'name':_0x111977}:_0x1d6bc9);}},_0x3ec1c4=_0x4d04c5['facet'](completionConfig);for(let _0x33ef49 of _0x3fbf21)if(_0x33ef49['hasResult']()){let _0x48befe=_0x33ef49['result']['getMatch'];if(!0x1===_0x33ef49['result']['filter']){for(let _0x8c1a4d of _0x33ef49['result']['options'])_0x3e3acb(new Option(_0x8c1a4d,_0x33ef49['source'],_0x48befe?_0x48befe(_0x8c1a4d):[],0x3b9aca00-_0x2a4446['length']));}else{let _0x232305,_0xefa974=_0x4d04c5['sliceDoc'](_0x33ef49['from'],_0x33ef49['to']),_0x8536ec=_0x3ec1c4['filterStrict']?new StrictMatcher(_0xefa974):new FuzzyMatcher(_0xefa974);for(let _0x529599 of _0x33ef49['result']['options'])if(_0x232305=_0x8536ec['match'](_0x529599['label'])){let _0x5310b5=_0x529599['displayLabel']?_0x48befe?_0x48befe(_0x529599,_0x232305['matched']):[]:_0x232305['matched'],_0x4a4970=_0x232305['score']+(_0x529599['boost']||0x0);if(_0x3e3acb(new Option(_0x529599,_0x33ef49['source'],_0x5310b5,_0x4a4970)),'object'==typeof _0x529599['section']&&'dynamic'===_0x529599['section']['rank']){let {name:_0x50d3eb}=_0x529599['section'];_0x18f238||(_0x18f238=Object['create'](null)),_0x18f238[_0x50d3eb]=Math['max'](_0x4a4970,_0x18f238[_0x50d3eb]||-0x3b9aca00);}}}}if(_0x55e930){let _0xb4dd00=Object['create'](null),_0x2139f7=0x0,_0x1bacc8=(_0x485a45,_0x5c74dc)=>('dynamic'===_0x485a45['rank']&&'dynamic'===_0x5c74dc['rank']?_0x18f238[_0x5c74dc['name']]-_0x18f238[_0x485a45['name']]:0x0)||('number'==typeof _0x485a45['rank']?_0x485a45['rank']:0x3b9aca00)-('number'==typeof _0x5c74dc['rank']?_0x5c74dc['rank']:0x3b9aca00)||(_0x485a45['name']<_0x5c74dc['name']?-0x1:0x1);for(let _0x565ad6 of _0x55e930['sort'](_0x1bacc8))_0x2139f7-=0x186a0,_0xb4dd00[_0x565ad6['name']]=_0x2139f7;for(let _0x4cbf61 of _0x2a4446){let {section:_0x1fbe57}=_0x4cbf61['completion'];_0x1fbe57&&(_0x4cbf61['score']+=_0xb4dd00['string'==typeof _0x1fbe57?_0x1fbe57:_0x1fbe57['name']]);}}let _0x5f2927=[],_0x47d53c=null,_0x5e530d=_0x3ec1c4['compareCompletions'];for(let _0x2a71c0 of _0x2a4446['sort']((_0x249fa8,_0x106e11)=>_0x106e11['score']-_0x249fa8['score']||_0x5e530d(_0x249fa8['completion'],_0x106e11['completion']))){let _0x17d24e=_0x2a71c0['completion'];!_0x47d53c||_0x47d53c['label']!=_0x17d24e['label']||_0x47d53c['detail']!=_0x17d24e['detail']||null!=_0x47d53c['type']&&null!=_0x17d24e['type']&&_0x47d53c['type']!=_0x17d24e['type']||_0x47d53c['apply']!=_0x17d24e['apply']||_0x47d53c['boost']!=_0x17d24e['boost']?_0x5f2927['push'](_0x2a71c0):score(_0x2a71c0['completion'])>score(_0x47d53c)&&(_0x5f2927[_0x5f2927['length']-0x1]=_0x2a71c0),_0x47d53c=_0x2a71c0['completion'];}return _0x5f2927;}class CompletionDialog{constructor(_0x543a36,_0x1f7a43,_0x1f7ac4,_0x418cef,_0x5747cb,_0x2e83c2){this['options']=_0x543a36,this['attrs']=_0x1f7a43,this['tooltip']=_0x1f7ac4,this['timestamp']=_0x418cef,this['selected']=_0x5747cb,this['disabled']=_0x2e83c2;}['setSelected'](_0x3ad0eb,_0x10fd07){return _0x3ad0eb==this['selected']||_0x3ad0eb>=this['options']['length']?this:new CompletionDialog(this['options'],makeAttrs(_0x10fd07,_0x3ad0eb),this['tooltip'],this['timestamp'],_0x3ad0eb,this['disabled']);}static['build'](_0x4b1fda,_0xa02cad,_0x135e9b,_0x266fa4,_0x59cdeb,_0x7c6946){if(_0x266fa4&&!_0x7c6946&&_0x4b1fda['some'](_0x37a1=>_0x37a1['isPending']))return _0x266fa4['setDisabled']();let _0x1752e6=sortOptions(_0x4b1fda,_0xa02cad);if(!_0x1752e6['length'])return _0x266fa4&&_0x4b1fda['some'](_0x4a1ab1=>_0x4a1ab1['isPending'])?_0x266fa4['setDisabled']():null;let _0x4453e8=_0xa02cad['facet'](completionConfig)['selectOnOpen']?0x0:-0x1;if(_0x266fa4&&_0x266fa4['selected']!=_0x4453e8&&-0x1!=_0x266fa4['selected']){let _0x513135=_0x266fa4['options'][_0x266fa4['selected']]['completion'];for(let _0x30cdbb=0x0;_0x30cdbb<_0x1752e6['length'];_0x30cdbb++)if(_0x1752e6[_0x30cdbb]['completion']==_0x513135){_0x4453e8=_0x30cdbb;break;}}return new CompletionDialog(_0x1752e6,makeAttrs(_0x135e9b,_0x4453e8),{'pos':_0x4b1fda['reduce']((_0xda6cde,_0x263818)=>_0x263818['hasResult']()?Math['min'](_0xda6cde,_0x263818['from']):_0xda6cde,0x5f5e100),'create':createTooltip,'above':_0x59cdeb['aboveCursor']},_0x266fa4?_0x266fa4['timestamp']:Date['now'](),_0x4453e8,!0x1);}['map'](_0x55e394){return new CompletionDialog(this['options'],this['attrs'],{...this['tooltip'],'pos':_0x55e394['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(_0x1f7000,_0x161086,_0x516d43){this['active']=_0x1f7000,this['id']=_0x161086,this['open']=_0x516d43;}static['start'](){return new CompletionState(none$1,'cm-ac-'+Math['floor'](0x1e8480*Math['random']())['toString'](0x24),null);}['update'](_0x1ceccf){let {state:_0x30c4e8}=_0x1ceccf,_0x1c4d2f=_0x30c4e8['facet'](completionConfig),_0x4d0b22=(_0x1c4d2f['override']||_0x30c4e8['languageDataAt']('autocomplete',cur(_0x30c4e8))['map'](asSource))['map'](_0x2b6bff=>{let _0x170249=this['active']['find'](_0x154449=>_0x154449['source']==_0x2b6bff)||new ActiveSource(_0x2b6bff,this['active']['some'](_0x2c7de4=>0x0!=_0x2c7de4['state'])?0x1:0x0);return _0x170249['update'](_0x1ceccf,_0x1c4d2f);});_0x4d0b22['length']==this['active']['length']&&_0x4d0b22['every']((_0x1c8cea,_0x31cdbc)=>_0x1c8cea==this['active'][_0x31cdbc])&&(_0x4d0b22=this['active']);let _0x5363ac=this['open'],_0x2397d4=_0x1ceccf['effects']['some'](_0x33aa4c=>_0x33aa4c['is'](setActiveEffect));_0x5363ac&&_0x1ceccf['docChanged']&&(_0x5363ac=_0x5363ac['map'](_0x1ceccf['changes'])),_0x1ceccf['selection']||_0x4d0b22['some'](_0x14b122=>_0x14b122['hasResult']()&&_0x1ceccf['changes']['touchesRange'](_0x14b122['from'],_0x14b122['to']))||!sameResults(_0x4d0b22,this['active'])||_0x2397d4?_0x5363ac=CompletionDialog['build'](_0x4d0b22,_0x30c4e8,this['id'],_0x5363ac,_0x1c4d2f,_0x2397d4):_0x5363ac&&_0x5363ac['disabled']&&!_0x4d0b22['some'](_0x852da3=>_0x852da3['isPending'])&&(_0x5363ac=null),!_0x5363ac&&_0x4d0b22['every'](_0x231dab=>!_0x231dab['isPending'])&&_0x4d0b22['some'](_0x18940a=>_0x18940a['hasResult']())&&(_0x4d0b22=_0x4d0b22['map'](_0x54177d=>_0x54177d['hasResult']()?new ActiveSource(_0x54177d['source'],0x0):_0x54177d));for(let _0x2f59d5 of _0x1ceccf['effects'])_0x2f59d5['is'](setSelectedEffect)&&(_0x5363ac=_0x5363ac&&_0x5363ac['setSelected'](_0x2f59d5['value'],this['id']));return _0x4d0b22==this['active']&&_0x5363ac==this['open']?this:new CompletionState(_0x4d0b22,this['id'],_0x5363ac);}get['tooltip'](){return this['open']?this['open']['tooltip']:null;}get['attrs'](){return this['open']?this['open']['attrs']:this['active']['length']?baseAttrs:noAttrs;}}function sameResults(_0x318c8f,_0x41a44c){if(_0x318c8f==_0x41a44c)return!0x0;for(let _0x531f6b=0x0,_0x7fa3bf=0x0;;){for(;_0x531f6b<_0x318c8f['length']&&!_0x318c8f[_0x531f6b]['hasResult']();)_0x531f6b++;for(;_0x7fa3bf<_0x41a44c['length']&&!_0x41a44c[_0x7fa3bf]['hasResult']();)_0x7fa3bf++;let _0x39f50e=_0x531f6b==_0x318c8f['length'],_0x113fa2=_0x7fa3bf==_0x41a44c['length'];if(_0x39f50e||_0x113fa2)return _0x39f50e==_0x113fa2;if(_0x318c8f[_0x531f6b++]['result']!=_0x41a44c[_0x7fa3bf++]['result'])return!0x1;}}const baseAttrs={'aria-autocomplete':'list'},noAttrs={};function makeAttrs(_0x4d6d0a,_0x9e016b){let _0x7028={'aria-autocomplete':'list','aria-haspopup':'listbox','aria-controls':_0x4d6d0a};return _0x9e016b>-0x1&&(_0x7028['aria-activedescendant']=_0x4d6d0a+'-'+_0x9e016b),_0x7028;}const none$1=[];function getUpdateType(_0x4003b5,_0x1ff983){if(_0x4003b5['isUserEvent']('input.complete')){let _0x234abb=_0x4003b5['annotation'](pickedCompletion);if(_0x234abb&&_0x1ff983['activateOnCompletion'](_0x234abb))return 0xc;}let _0x4ef5a1=_0x4003b5['isUserEvent']('input.type');return _0x4ef5a1&&_0x1ff983['activateOnTyping']?0x5:_0x4ef5a1?0x1:_0x4003b5['isUserEvent']('delete.backward')?0x2:_0x4003b5['selection']?0x8:_0x4003b5['docChanged']?0x10:0x0;}class ActiveSource{constructor(_0x34ba9e,_0x4d0501,_0x3886ac=!0x1){this['source']=_0x34ba9e,this['state']=_0x4d0501,this['explicit']=_0x3886ac;}['hasResult'](){return!0x1;}get['isPending'](){return 0x1==this['state'];}['update'](_0x1a130d,_0xf4460d){let _0x2f35ed=getUpdateType(_0x1a130d,_0xf4460d),_0x36baf3=this;(0x8&_0x2f35ed||0x10&_0x2f35ed&&this['touches'](_0x1a130d))&&(_0x36baf3=new ActiveSource(_0x36baf3['source'],0x0)),0x4&_0x2f35ed&&0x0==_0x36baf3['state']&&(_0x36baf3=new ActiveSource(this['source'],0x1)),_0x36baf3=_0x36baf3['updateFor'](_0x1a130d,_0x2f35ed);for(let _0xf76b28 of _0x1a130d['effects'])if(_0xf76b28['is'](startCompletionEffect))_0x36baf3=new ActiveSource(_0x36baf3['source'],0x1,_0xf76b28['value']);else{if(_0xf76b28['is'](closeCompletionEffect))_0x36baf3=new ActiveSource(_0x36baf3['source'],0x0);else{if(_0xf76b28['is'](setActiveEffect)){for(let _0x4bad30 of _0xf76b28['value'])_0x4bad30['source']==_0x36baf3['source']&&(_0x36baf3=_0x4bad30);}}}return _0x36baf3;}['updateFor'](_0x4e7362,_0x356717){return this['map'](_0x4e7362['changes']);}['map'](_0x4716fa){return this;}['touches'](_0x549e14){return _0x549e14['changes']['touchesRange'](cur(_0x549e14['state']));}}class ActiveResult extends ActiveSource{constructor(_0x544d4d,_0x5ec8a0,_0x4db74d,_0x56849e,_0x2bc261,_0x2ca67b){super(_0x544d4d,0x3,_0x5ec8a0),this['limit']=_0x4db74d,this['result']=_0x56849e,this['from']=_0x2bc261,this['to']=_0x2ca67b;}['hasResult'](){return!0x0;}['updateFor'](_0x1a2fdf,_0x29bca2){var _0x54e32e;if(!(0x3&_0x29bca2))return this['map'](_0x1a2fdf['changes']);let _0x258efb=this['result'];_0x258efb['map']&&!_0x1a2fdf['changes']['empty']&&(_0x258efb=_0x258efb['map'](_0x258efb,_0x1a2fdf['changes']));let _0xd867cf=_0x1a2fdf['changes']['mapPos'](this['from']),_0x1e5095=_0x1a2fdf['changes']['mapPos'](this['to'],0x1),_0x5e23f3=cur(_0x1a2fdf['state']);if(_0x5e23f3>_0x1e5095||!_0x258efb||0x2&_0x29bca2&&(cur(_0x1a2fdf['startState'])==this['from']||_0x5e23f3<this['limit']))return new ActiveSource(this['source'],0x4&_0x29bca2?0x1:0x0);let _0x502e7e=_0x1a2fdf['changes']['mapPos'](this['limit']);return checkValid(_0x258efb['validFor'],_0x1a2fdf['state'],_0xd867cf,_0x1e5095)?new ActiveResult(this['source'],this['explicit'],_0x502e7e,_0x258efb,_0xd867cf,_0x1e5095):_0x258efb['update']&&(_0x258efb=_0x258efb['update'](_0x258efb,_0xd867cf,_0x1e5095,new CompletionContext(_0x1a2fdf['state'],_0x5e23f3,!0x1)))?new ActiveResult(this['source'],this['explicit'],_0x502e7e,_0x258efb,_0x258efb['from'],null!==(_0x54e32e=_0x258efb['to'])&&void 0x0!==_0x54e32e?_0x54e32e:cur(_0x1a2fdf['state'])):new ActiveSource(this['source'],0x1,this['explicit']);}['map'](_0x57f9f0){if(_0x57f9f0['empty'])return this;return(this['result']['map']?this['result']['map'](this['result'],_0x57f9f0):this['result'])?new ActiveResult(this['source'],this['explicit'],_0x57f9f0['mapPos'](this['limit']),this['result'],_0x57f9f0['mapPos'](this['from']),_0x57f9f0['mapPos'](this['to'],0x1)):new ActiveSource(this['source'],0x0);}['touches'](_0x411303){return _0x411303['changes']['touchesRange'](this['from'],this['to']);}}function checkValid(_0xe3f47f,_0x5cd5a0,_0x5e1ecc,_0x18191b){if(!_0xe3f47f)return!0x1;let _0x548ec5=_0x5cd5a0['sliceDoc'](_0x5e1ecc,_0x18191b);return'function'==typeof _0xe3f47f?_0xe3f47f(_0x548ec5,_0x5e1ecc,_0x18191b,_0x5cd5a0):ensureAnchor(_0xe3f47f,!0x0)['test'](_0x548ec5);}const setActiveEffect=StateEffect['define']({'map':(_0x429487,_0x1f212d)=>_0x429487['map'](_0x50247f=>_0x50247f['map'](_0x1f212d))}),setSelectedEffect=StateEffect['define'](),completionState=StateField['define']({'create':()=>CompletionState['start'](),'update':(_0x5bdd60,_0x3119b6)=>_0x5bdd60['update'](_0x3119b6),'provide':_0x325fb0=>[showTooltip['from'](_0x325fb0,_0x4add73=>_0x4add73['tooltip']),EditorView['contentAttributes']['from'](_0x325fb0,_0x58312f=>_0x58312f['attrs'])]});function applyCompletion(_0x56228f,_0x595f64){const _0x407f27=_0x595f64['completion']['apply']||_0x595f64['completion']['label'];let _0x28e584=_0x56228f['state']['field'](completionState)['active']['find'](_0x3d7c51=>_0x3d7c51['source']==_0x595f64['source']);return _0x28e584 instanceof ActiveResult&&('string'==typeof _0x407f27?_0x56228f['dispatch']({...insertCompletionText(_0x56228f['state'],_0x407f27,_0x28e584['from'],_0x28e584['to']),'annotations':pickedCompletion['of'](_0x595f64['completion'])}):_0x407f27(_0x56228f,_0x595f64['completion'],_0x28e584['from'],_0x28e584['to']),!0x0);}const createTooltip=completionTooltip(completionState,applyCompletion);function moveCompletionSelection(_0x532326,_0x4caef8='option'){return _0x48891d=>{let _0x145a16=_0x48891d['state']['field'](completionState,!0x1);if(!_0x145a16||!_0x145a16['open']||_0x145a16['open']['disabled']||Date['now']()-_0x145a16['open']['timestamp']<_0x48891d['state']['facet'](completionConfig)['interactionDelay'])return!0x1;let _0x21fdd6,_0x128cb3=0x1;'page'==_0x4caef8&&(_0x21fdd6=getTooltip(_0x48891d,_0x145a16['open']['tooltip']))&&(_0x128cb3=Math['max'](0x2,Math['floor'](_0x21fdd6['dom']['offsetHeight']/_0x21fdd6['dom']['querySelector']('li')['offsetHeight'])-0x1));let {length:_0x65d499}=_0x145a16['open']['options'],_0x56fa67=_0x145a16['open']['selected']>-0x1?_0x145a16['open']['selected']+_0x128cb3*(_0x532326?0x1:-0x1):_0x532326?0x0:_0x65d499-0x1;return _0x56fa67<0x0?_0x56fa67='page'==_0x4caef8?0x0:_0x65d499-0x1:_0x56fa67>=_0x65d499&&(_0x56fa67='page'==_0x4caef8?_0x65d499-0x1:0x0),_0x48891d['dispatch']({'effects':setSelectedEffect['of'](_0x56fa67)}),!0x0;};}const acceptCompletion=_0xef71aa=>{let _0x458e64=_0xef71aa['state']['field'](completionState,!0x1);return!(_0xef71aa['state']['readOnly']||!_0x458e64||!_0x458e64['open']||_0x458e64['open']['selected']<0x0||_0x458e64['open']['disabled']||Date['now']()-_0x458e64['open']['timestamp']<_0xef71aa['state']['facet'](completionConfig)['interactionDelay'])&&applyCompletion(_0xef71aa,_0x458e64['open']['options'][_0x458e64['open']['selected']]);},startCompletion=_0x47bd7e=>!!_0x47bd7e['state']['field'](completionState,!0x1)&&(_0x47bd7e['dispatch']({'effects':startCompletionEffect['of'](!0x0)}),!0x0),closeCompletion=_0x5139be=>{let _0x483595=_0x5139be['state']['field'](completionState,!0x1);return!(!_0x483595||!_0x483595['active']['some'](_0x2a912b=>0x0!=_0x2a912b['state']))&&(_0x5139be['dispatch']({'effects':closeCompletionEffect['of'](null)}),!0x0);};class RunningQuery{constructor(_0x3fc428,_0x460a3b){this['active']=_0x3fc428,this['context']=_0x460a3b,this['time']=Date['now'](),this['updates']=[],this['done']=void 0x0;}}const MaxUpdateCount=0x32,MinAbortTime=0x3e8,completionPlugin=ViewPlugin['fromClass'](class{constructor(_0x254402){this['view']=_0x254402,this['debounceUpdate']=-0x1,this['running']=[],this['debounceAccept']=-0x1,this['pendingStart']=!0x1,this['composing']=0x0;for(let _0x2bc4b2 of _0x254402['state']['field'](completionState)['active'])_0x2bc4b2['isPending']&&this['startQuery'](_0x2bc4b2);}['update'](_0x25632b){let _0x45afb2=_0x25632b['state']['field'](completionState),_0x374e80=_0x25632b['state']['facet'](completionConfig);if(!_0x25632b['selectionSet']&&!_0x25632b['docChanged']&&_0x25632b['startState']['field'](completionState)==_0x45afb2)return;let _0x47691b=_0x25632b['transactions']['some'](_0x570365=>{let _0x18b718=getUpdateType(_0x570365,_0x374e80);return 0x8&_0x18b718||(_0x570365['selection']||_0x570365['docChanged'])&&!(0x3&_0x18b718);});for(let _0x3131d3=0x0;_0x3131d3<this['running']['length'];_0x3131d3++){let _0xfa61c7=this['running'][_0x3131d3];if(_0x47691b||_0xfa61c7['context']['abortOnDocChange']&&_0x25632b['docChanged']||_0xfa61c7['updates']['length']+_0x25632b['transactions']['length']>MaxUpdateCount&&Date['now']()-_0xfa61c7['time']>MinAbortTime){for(let _0x5369bb of _0xfa61c7['context']['abortListeners'])try{_0x5369bb();}catch(_0x41476b){logException(this['view']['state'],_0x41476b);}_0xfa61c7['context']['abortListeners']=null,this['running']['splice'](_0x3131d3--,0x1);}else _0xfa61c7['updates']['push'](..._0x25632b['transactions']);}this['debounceUpdate']>-0x1&&clearTimeout(this['debounceUpdate']),_0x25632b['transactions']['some'](_0x14afd7=>_0x14afd7['effects']['some'](_0xcb042=>_0xcb042['is'](startCompletionEffect)))&&(this['pendingStart']=!0x0);let _0xef8cb3=this['pendingStart']?0x32:_0x374e80['activateOnTypingDelay'];if(this['debounceUpdate']=_0x45afb2['active']['some'](_0x539bd4=>_0x539bd4['isPending']&&!this['running']['some'](_0x222145=>_0x222145['active']['source']==_0x539bd4['source']))?setTimeout(()=>this['startUpdate'](),_0xef8cb3):-0x1,0x0!=this['composing']){for(let _0xe0c2b7 of _0x25632b['transactions'])_0xe0c2b7['isUserEvent']('input.type')?this['composing']=0x2:0x2==this['composing']&&_0xe0c2b7['selection']&&(this['composing']=0x3);}}['startUpdate'](){this['debounceUpdate']=-0x1,this['pendingStart']=!0x1;let {state:_0x2c7140}=this['view'],_0x366125=_0x2c7140['field'](completionState);for(let _0xd17ecd of _0x366125['active'])_0xd17ecd['isPending']&&!this['running']['some'](_0x33eb29=>_0x33eb29['active']['source']==_0xd17ecd['source'])&&this['startQuery'](_0xd17ecd);this['running']['length']&&_0x366125['open']&&_0x366125['open']['disabled']&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](completionConfig)['updateSyncTime']));}['startQuery'](_0xe3ab93){let {state:_0x22e5a2}=this['view'],_0x28f458=cur(_0x22e5a2),_0x3f195f=new CompletionContext(_0x22e5a2,_0x28f458,_0xe3ab93['explicit'],this['view']),_0x2c22c2=new RunningQuery(_0xe3ab93,_0x3f195f);this['running']['push'](_0x2c22c2),Promise['resolve'](_0xe3ab93['source'](_0x3f195f))['then'](_0xbb1c4a=>{_0x2c22c2['context']['aborted']||(_0x2c22c2['done']=_0xbb1c4a||null,this['scheduleAccept']());},_0x377e7f=>{this['view']['dispatch']({'effects':closeCompletionEffect['of'](null)}),logException(this['view']['state'],_0x377e7f);});}['scheduleAccept'](){this['running']['every'](_0x51e8b6=>void 0x0!==_0x51e8b6['done'])?this['accept']():this['debounceAccept']<0x0&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](completionConfig)['updateSyncTime']));}['accept'](){var _0x1a52cd;this['debounceAccept']>-0x1&&clearTimeout(this['debounceAccept']),this['debounceAccept']=-0x1;let _0x4497d2=[],_0x4325cb=this['view']['state']['facet'](completionConfig),_0x2a5cc2=this['view']['state']['field'](completionState);for(let _0x968065=0x0;_0x968065<this['running']['length'];_0x968065++){let _0x273e22=this['running'][_0x968065];if(void 0x0===_0x273e22['done'])continue;if(this['running']['splice'](_0x968065--,0x1),_0x273e22['done']){let _0xbdb2f2=cur(_0x273e22['updates']['length']?_0x273e22['updates'][0x0]['startState']:this['view']['state']),_0x357b1e=Math['min'](_0xbdb2f2,_0x273e22['done']['from']+(_0x273e22['active']['explicit']?0x0:0x1)),_0x5bc044=new ActiveResult(_0x273e22['active']['source'],_0x273e22['active']['explicit'],_0x357b1e,_0x273e22['done'],_0x273e22['done']['from'],null!==(_0x1a52cd=_0x273e22['done']['to'])&&void 0x0!==_0x1a52cd?_0x1a52cd:_0xbdb2f2);for(let _0x419e20 of _0x273e22['updates'])_0x5bc044=_0x5bc044['update'](_0x419e20,_0x4325cb);if(_0x5bc044['hasResult']()){_0x4497d2['push'](_0x5bc044);continue;}}let _0x5e9a5d=_0x2a5cc2['active']['find'](_0x4db97d=>_0x4db97d['source']==_0x273e22['active']['source']);if(_0x5e9a5d&&_0x5e9a5d['isPending']){if(null==_0x273e22['done']){let _0x27e3c9=new ActiveSource(_0x273e22['active']['source'],0x0);for(let _0x3b4818 of _0x273e22['updates'])_0x27e3c9=_0x27e3c9['update'](_0x3b4818,_0x4325cb);_0x27e3c9['isPending']||_0x4497d2['push'](_0x27e3c9);}else this['startQuery'](_0x5e9a5d);}}(_0x4497d2['length']||_0x2a5cc2['open']&&_0x2a5cc2['open']['disabled'])&&this['view']['dispatch']({'effects':setActiveEffect['of'](_0x4497d2)});}},{'eventHandlers':{'blur'(_0x2836b1){let _0x131df6=this['view']['state']['field'](completionState,!0x1);if(_0x131df6&&_0x131df6['tooltip']&&this['view']['state']['facet'](completionConfig)['closeOnBlur']){let _0xd8de44=_0x131df6['open']&&getTooltip(this['view'],_0x131df6['open']['tooltip']);_0xd8de44&&_0xd8de44['dom']['contains'](_0x2836b1['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'(_0x45bb9c,_0x103037){let _0x160cc5=_0x103037['state']['field'](completionState,!0x1);if(!_0x160cc5||!_0x160cc5['open']||_0x160cc5['open']['disabled']||_0x160cc5['open']['selected']<0x0||_0x45bb9c['key']['length']>0x1||_0x45bb9c['ctrlKey']&&(!windows||!_0x45bb9c['altKey'])||_0x45bb9c['metaKey'])return!0x1;let _0x4948a6=_0x160cc5['open']['options'][_0x160cc5['open']['selected']],_0x5a1678=_0x160cc5['active']['find'](_0x5acc89=>_0x5acc89['source']==_0x4948a6['source']),_0x21e74b=_0x4948a6['completion']['commitCharacters']||_0x5a1678['result']['commitCharacters'];return _0x21e74b&&_0x21e74b['indexOf'](_0x45bb9c['key'])>-0x1&&applyCompletion(_0x103037,_0x4948a6),!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(_0x4217a3,_0x74374,_0x444c4b,_0x1f0bc6){this['field']=_0x4217a3,this['line']=_0x74374,this['from']=_0x444c4b,this['to']=_0x1f0bc6;}}class FieldRange{constructor(_0x13aaf5,_0x45c0d0,_0x593317){this['field']=_0x13aaf5,this['from']=_0x45c0d0,this['to']=_0x593317;}['map'](_0xfdf5cc){let _0x1b4da9=_0xfdf5cc['mapPos'](this['from'],-0x1,MapMode['TrackDel']),_0x5f1af8=_0xfdf5cc['mapPos'](this['to'],0x1,MapMode['TrackDel']);return null==_0x1b4da9||null==_0x5f1af8?null:new FieldRange(this['field'],_0x1b4da9,_0x5f1af8);}}class Snippet{constructor(_0x155b62,_0x5c32c8){this['lines']=_0x155b62,this['fieldPositions']=_0x5c32c8;}['instantiate'](_0x591d25,_0x30875d){let _0x400aaa=[],_0x44a881=[_0x30875d],_0x292ab4=_0x591d25['doc']['lineAt'](_0x30875d),_0x92e48c=/^\s*/['exec'](_0x292ab4['text'])[0x0];for(let _0x1b4c55 of this['lines']){if(_0x400aaa['length']){let _0x269e06=_0x92e48c,_0x1ec9a6=/^\t*/['exec'](_0x1b4c55)[0x0]['length'];for(let _0x127909=0x0;_0x127909<_0x1ec9a6;_0x127909++)_0x269e06+=_0x591d25['facet'](indentUnit);_0x44a881['push'](_0x30875d+_0x269e06['length']-_0x1ec9a6),_0x1b4c55=_0x269e06+_0x1b4c55['slice'](_0x1ec9a6);}_0x400aaa['push'](_0x1b4c55),_0x30875d+=_0x1b4c55['length']+0x1;}let _0x573a03=this['fieldPositions']['map'](_0x478724=>new FieldRange(_0x478724['field'],_0x44a881[_0x478724['line']]+_0x478724['from'],_0x44a881[_0x478724['line']]+_0x478724['to']));return{'text':_0x400aaa,'ranges':_0x573a03};}static['parse'](_0x729266){let _0x4cd48b,_0x40519d=[],_0x2fcbb8=[],_0x43e3a5=[];for(let _0x583ced of _0x729266['split'](/\r\n?|\n/)){for(;_0x4cd48b=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/['exec'](_0x583ced);){let _0x54e105=_0x4cd48b[0x1]?+_0x4cd48b[0x1]:null,_0x1542c5=_0x4cd48b[0x2]||_0x4cd48b[0x3]||'',_0x2feffa=-0x1,_0x352483=_0x1542c5['replace'](/\\[{}]/g,_0x1b5193=>_0x1b5193[0x1]);for(let _0x1bc92d=0x0;_0x1bc92d<_0x40519d['length'];_0x1bc92d++)(null!=_0x54e105?_0x40519d[_0x1bc92d]['seq']==_0x54e105:_0x352483&&_0x40519d[_0x1bc92d]['name']==_0x352483)&&(_0x2feffa=_0x1bc92d);if(_0x2feffa<0x0){let _0x5ec603=0x0;for(;_0x5ec603<_0x40519d['length']&&(null==_0x54e105||null!=_0x40519d[_0x5ec603]['seq']&&_0x40519d[_0x5ec603]['seq']<_0x54e105);)_0x5ec603++;_0x40519d['splice'](_0x5ec603,0x0,{'seq':_0x54e105,'name':_0x352483}),_0x2feffa=_0x5ec603;for(let _0xb5ba93 of _0x43e3a5)_0xb5ba93['field']>=_0x2feffa&&_0xb5ba93['field']++;}for(let _0xd506fd of _0x43e3a5)if(_0xd506fd['line']==_0x2fcbb8['length']&&_0xd506fd['from']>_0x4cd48b['index']){let _0x22873a=_0x4cd48b[0x2]?0x3+(_0x4cd48b[0x1]||'')['length']:0x2;_0xd506fd['from']-=_0x22873a,_0xd506fd['to']-=_0x22873a;}_0x43e3a5['push'](new FieldPos(_0x2feffa,_0x2fcbb8['length'],_0x4cd48b['index'],_0x4cd48b['index']+_0x352483['length'])),_0x583ced=_0x583ced['slice'](0x0,_0x4cd48b['index'])+_0x1542c5+_0x583ced['slice'](_0x4cd48b['index']+_0x4cd48b[0x0]['length']);}_0x583ced=_0x583ced['replace'](/\\([{}])/g,(_0x242c60,_0xd28146,_0x13b529)=>{for(let _0xb3afff of _0x43e3a5)_0xb3afff['line']==_0x2fcbb8['length']&&_0xb3afff['from']>_0x13b529&&(_0xb3afff['from']--,_0xb3afff['to']--);return _0xd28146;}),_0x2fcbb8['push'](_0x583ced);}return new Snippet(_0x2fcbb8,_0x43e3a5);}}let fieldMarker=Decoration['widget']({'widget':new class extends WidgetType{['toDOM'](){let _0xf92063=document['createElement']('span');return _0xf92063['className']='cm-snippetFieldPosition',_0xf92063;}['ignoreEvent'](){return!0x1;}}()}),fieldRange=Decoration['mark']({'class':'cm-snippetField'});class ActiveSnippet{constructor(_0x337a76,_0x14fb00){this['ranges']=_0x337a76,this['active']=_0x14fb00,this['deco']=Decoration['set'](_0x337a76['map'](_0x21631f=>(_0x21631f['from']==_0x21631f['to']?fieldMarker:fieldRange)['range'](_0x21631f['from'],_0x21631f['to'])),!0x0);}['map'](_0x351f04){let _0x474a0d=[];for(let _0x29462d of this['ranges']){let _0x4be07e=_0x29462d['map'](_0x351f04);if(!_0x4be07e)return null;_0x474a0d['push'](_0x4be07e);}return new ActiveSnippet(_0x474a0d,this['active']);}['selectionInsideField'](_0x339d90){return _0x339d90['ranges']['every'](_0x53fed2=>this['ranges']['some'](_0x50c287=>_0x50c287['field']==this['active']&&_0x50c287['from']<=_0x53fed2['from']&&_0x50c287['to']>=_0x53fed2['to']));}}const setActive=StateEffect['define']({'map':(_0x3a68c4,_0x1e0231)=>_0x3a68c4&&_0x3a68c4['map'](_0x1e0231)}),moveToField=StateEffect['define'](),snippetState=StateField['define']({'create':()=>null,'update'(_0x57a79,_0x4e15a7){for(let _0x229c67 of _0x4e15a7['effects']){if(_0x229c67['is'](setActive))return _0x229c67['value'];if(_0x229c67['is'](moveToField)&&_0x57a79)return new ActiveSnippet(_0x57a79['ranges'],_0x229c67['value']);}return _0x57a79&&_0x4e15a7['docChanged']&&(_0x57a79=_0x57a79['map'](_0x4e15a7['changes'])),_0x57a79&&_0x4e15a7['selection']&&!_0x57a79['selectionInsideField'](_0x4e15a7['selection'])&&(_0x57a79=null),_0x57a79;},'provide':_0x30df4a=>EditorView['decorations']['from'](_0x30df4a,_0x4ff18b=>_0x4ff18b?_0x4ff18b['deco']:Decoration['none'])});function fieldSelection(_0x45e5de,_0x1f2071){return EditorSelection['create'](_0x45e5de['filter'](_0x3da0a3=>_0x3da0a3['field']==_0x1f2071)['map'](_0x343e92=>EditorSelection['range'](_0x343e92['from'],_0x343e92['to'])));}function snippet(_0x51253f){let _0x1e25ab=Snippet['parse'](_0x51253f);return(_0x3e94fe,_0xeee144,_0x4625b9,_0x1eab7f)=>{let {text:_0x8f699c,ranges:_0x514962}=_0x1e25ab['instantiate'](_0x3e94fe['state'],_0x4625b9),{main:_0x2999d9}=_0x3e94fe['state']['selection'],_0x238b33={'changes':{'from':_0x4625b9,'to':_0x1eab7f==_0x2999d9['from']?_0x2999d9['to']:_0x1eab7f,'insert':Text['of'](_0x8f699c)},'scrollIntoView':!0x0,'annotations':_0xeee144?[pickedCompletion['of'](_0xeee144),Transaction['userEvent']['of']('input.complete')]:void 0x0};if(_0x514962['length']&&(_0x238b33['selection']=fieldSelection(_0x514962,0x0)),_0x514962['some'](_0x342026=>_0x342026['field']>0x0)){let _0x5e6c1e=new ActiveSnippet(_0x514962,0x0),_0x500d72=_0x238b33['effects']=[setActive['of'](_0x5e6c1e)];void 0x0===_0x3e94fe['state']['field'](snippetState,!0x1)&&_0x500d72['push'](StateEffect['appendConfig']['of']([snippetState,addSnippetKeymap,snippetPointerHandler,baseTheme]));}_0x3e94fe['dispatch'](_0x3e94fe['state']['update'](_0x238b33));};}function moveField(_0x4e45a1){return({state:_0x2dc3f1,dispatch:_0x5f13aa})=>{let _0x4b0057=_0x2dc3f1['field'](snippetState,!0x1);if(!_0x4b0057||_0x4e45a1<0x0&&0x0==_0x4b0057['active'])return!0x1;let _0x167970=_0x4b0057['active']+_0x4e45a1,_0x39102a=_0x4e45a1>0x0&&!_0x4b0057['ranges']['some'](_0x576a67=>_0x576a67['field']==_0x167970+_0x4e45a1);return _0x5f13aa(_0x2dc3f1['update']({'selection':fieldSelection(_0x4b0057['ranges'],_0x167970),'effects':setActive['of'](_0x39102a?null:new ActiveSnippet(_0x4b0057['ranges'],_0x167970)),'scrollIntoView':!0x0})),!0x0;};}const clearSnippet=({state:_0x46d4bc,dispatch:_0x5bea38})=>!!_0x46d4bc['field'](snippetState,!0x1)&&(_0x5bea38(_0x46d4bc['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':_0x1e5720=>_0x1e5720['length']?_0x1e5720[0x0]:defaultSnippetKeymap}),addSnippetKeymap=Prec['highest'](keymap['compute']([snippetKeymap],_0xf847ba=>_0xf847ba['facet'](snippetKeymap)));function snippetCompletion(_0x45c079,_0x5bafe6){return{..._0x5bafe6,'apply':snippet(_0x45c079)};}const snippetPointerHandler=EditorView['domEventHandlers']({'mousedown'(_0x2c1813,_0x1e41e8){let _0x5e8cf5,_0x51d955=_0x1e41e8['state']['field'](snippetState,!0x1);if(!_0x51d955||null==(_0x5e8cf5=_0x1e41e8['posAtCoords']({'x':_0x2c1813['clientX'],'y':_0x2c1813['clientY']})))return!0x1;let _0x3df598=_0x51d955['ranges']['find'](_0xa77b8f=>_0xa77b8f['from']<=_0x5e8cf5&&_0xa77b8f['to']>=_0x5e8cf5);return!(!_0x3df598||_0x3df598['field']==_0x51d955['active'])&&(_0x1e41e8['dispatch']({'selection':fieldSelection(_0x51d955['ranges'],_0x3df598['field']),'effects':setActive['of'](_0x51d955['ranges']['some'](_0x36ae60=>_0x36ae60['field']>_0x3df598['field'])?new ActiveSnippet(_0x51d955['ranges'],_0x3df598['field']):null),'scrollIntoView':!0x0}),!0x0);}}),defaults={'brackets':['(','[','{','\x27','\x22'],'before':')]}:;>','stringPrefixes':[]},closeBracketEffect=StateEffect['define']({'map'(_0x84f946,_0x4ef745){let _0x3e1bf0=_0x4ef745['mapPos'](_0x84f946,-0x1,MapMode['TrackAfter']);return null==_0x3e1bf0?void 0x0:_0x3e1bf0;}}),closedBracket=new class extends RangeValue{}();closedBracket['startSide']=0x1,closedBracket['endSide']=-0x1;const bracketState=StateField['define']({'create':()=>RangeSet['empty'],'update'(_0x30ea16,_0x2b8bd4){if(_0x30ea16=_0x30ea16['map'](_0x2b8bd4['changes']),_0x2b8bd4['selection']){let _0x1f1a58=_0x2b8bd4['state']['doc']['lineAt'](_0x2b8bd4['selection']['main']['head']);_0x30ea16=_0x30ea16['update']({'filter':_0x1cd5f4=>_0x1cd5f4>=_0x1f1a58['from']&&_0x1cd5f4<=_0x1f1a58['to']});}for(let _0x2a5ec8 of _0x2b8bd4['effects'])_0x2a5ec8['is'](closeBracketEffect)&&(_0x30ea16=_0x30ea16['update']({'add':[closedBracket['range'](_0x2a5ec8['value'],_0x2a5ec8['value']+0x1)]}));return _0x30ea16;}});function closeBrackets(){return[inputHandler,bracketState];}const definedClosing='()[]{}<>«»»«［］｛｝';function closing(_0x5ea033){for(let _0x303345=0x0;_0x303345<definedClosing['length'];_0x303345+=0x2)if(definedClosing['charCodeAt'](_0x303345)==_0x5ea033)return definedClosing['charAt'](_0x303345+0x1);return fromCodePoint(_0x5ea033<0x80?_0x5ea033:_0x5ea033+0x1);}function config$1(_0x17f752,_0x4ea4a6){return _0x17f752['languageDataAt']('closeBrackets',_0x4ea4a6)[0x0]||defaults;}const android$1='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),inputHandler=EditorView['inputHandler']['of']((_0x41653c,_0x15547c,_0x34bf41,_0x284629)=>{if((android$1?_0x41653c['composing']:_0x41653c['compositionStarted'])||_0x41653c['state']['readOnly'])return!0x1;let _0x79d1b8=_0x41653c['state']['selection']['main'];if(_0x284629['length']>0x2||0x2==_0x284629['length']&&0x1==codePointSize(codePointAt(_0x284629,0x0))||_0x15547c!=_0x79d1b8['from']||_0x34bf41!=_0x79d1b8['to'])return!0x1;let _0x3e88a2=insertBracket(_0x41653c['state'],_0x284629);return!!_0x3e88a2&&(_0x41653c['dispatch'](_0x3e88a2),!0x0);}),deleteBracketPair=({state:_0x4483ce,dispatch:_0x50fcad})=>{if(_0x4483ce['readOnly'])return!0x1;let _0x4f8486=config$1(_0x4483ce,_0x4483ce['selection']['main']['head'])['brackets']||defaults['brackets'],_0x4bdfd9=null,_0xf290b7=_0x4483ce['changeByRange'](_0x4064cc=>{if(_0x4064cc['empty']){let _0x47f909=prevChar(_0x4483ce['doc'],_0x4064cc['head']);for(let _0x2c11a6 of _0x4f8486)if(_0x2c11a6==_0x47f909&&nextChar(_0x4483ce['doc'],_0x4064cc['head'])==closing(codePointAt(_0x2c11a6,0x0)))return{'changes':{'from':_0x4064cc['head']-_0x2c11a6['length'],'to':_0x4064cc['head']+_0x2c11a6['length']},'range':EditorSelection['cursor'](_0x4064cc['head']-_0x2c11a6['length'])};}return{'range':_0x4bdfd9=_0x4064cc};});return _0x4bdfd9||_0x50fcad(_0x4483ce['update'](_0xf290b7,{'scrollIntoView':!0x0,'userEvent':'delete.backward'})),!_0x4bdfd9;},closeBracketsKeymap=[{'key':'Backspace','run':deleteBracketPair}];function insertBracket(_0x46158f,_0x48df80){let _0x3e6bfa=config$1(_0x46158f,_0x46158f['selection']['main']['head']),_0x405914=_0x3e6bfa['brackets']||defaults['brackets'];for(let _0x2c51bb of _0x405914){let _0x476d71=closing(codePointAt(_0x2c51bb,0x0));if(_0x48df80==_0x2c51bb)return _0x476d71==_0x2c51bb?handleSame(_0x46158f,_0x2c51bb,_0x405914['indexOf'](_0x2c51bb+_0x2c51bb+_0x2c51bb)>-0x1,_0x3e6bfa):handleOpen(_0x46158f,_0x2c51bb,_0x476d71,_0x3e6bfa['before']||defaults['before']);if(_0x48df80==_0x476d71&&closedBracketAt(_0x46158f,_0x46158f['selection']['main']['from']))return handleClose(_0x46158f,_0x2c51bb,_0x476d71);}return null;}function closedBracketAt(_0x1341a8,_0x3c013e){let _0x47375f=!0x1;return _0x1341a8['field'](bracketState)['between'](0x0,_0x1341a8['doc']['length'],_0x50e974=>{_0x50e974==_0x3c013e&&(_0x47375f=!0x0);}),_0x47375f;}function nextChar(_0x19dc15,_0x2ea8a8){let _0x4c9ef1=_0x19dc15['sliceString'](_0x2ea8a8,_0x2ea8a8+0x2);return _0x4c9ef1['slice'](0x0,codePointSize(codePointAt(_0x4c9ef1,0x0)));}function prevChar(_0x4e4c34,_0x52b343){let _0x5080d1=_0x4e4c34['sliceString'](_0x52b343-0x2,_0x52b343);return codePointSize(codePointAt(_0x5080d1,0x0))==_0x5080d1['length']?_0x5080d1:_0x5080d1['slice'](0x1);}function handleOpen(_0x2f62df,_0x540e13,_0x3a41b9,_0x451223){let _0x3d79a6=null,_0x2ec617=_0x2f62df['changeByRange'](_0x53e561=>{if(!_0x53e561['empty'])return{'changes':[{'insert':_0x540e13,'from':_0x53e561['from']},{'insert':_0x3a41b9,'from':_0x53e561['to']}],'effects':closeBracketEffect['of'](_0x53e561['to']+_0x540e13['length']),'range':EditorSelection['range'](_0x53e561['anchor']+_0x540e13['length'],_0x53e561['head']+_0x540e13['length'])};let _0x528b0e=nextChar(_0x2f62df['doc'],_0x53e561['head']);return!_0x528b0e||/\s/['test'](_0x528b0e)||_0x451223['indexOf'](_0x528b0e)>-0x1?{'changes':{'insert':_0x540e13+_0x3a41b9,'from':_0x53e561['head']},'effects':closeBracketEffect['of'](_0x53e561['head']+_0x540e13['length']),'range':EditorSelection['cursor'](_0x53e561['head']+_0x540e13['length'])}:{'range':_0x3d79a6=_0x53e561};});return _0x3d79a6?null:_0x2f62df['update'](_0x2ec617,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function handleClose(_0x13574a,_0x38833d,_0x3275ff){let _0x3a04cb=null,_0x421b83=_0x13574a['changeByRange'](_0x3e548e=>_0x3e548e['empty']&&nextChar(_0x13574a['doc'],_0x3e548e['head'])==_0x3275ff?{'changes':{'from':_0x3e548e['head'],'to':_0x3e548e['head']+_0x3275ff['length'],'insert':_0x3275ff},'range':EditorSelection['cursor'](_0x3e548e['head']+_0x3275ff['length'])}:_0x3a04cb={'range':_0x3e548e});return _0x3a04cb?null:_0x13574a['update'](_0x421b83,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function handleSame(_0x46a9d7,_0x353141,_0x40f315,_0x20da57){let _0x43397c=_0x20da57['stringPrefixes']||defaults['stringPrefixes'],_0x26ef26=null,_0xbface8=_0x46a9d7['changeByRange'](_0x3dc13a=>{if(!_0x3dc13a['empty'])return{'changes':[{'insert':_0x353141,'from':_0x3dc13a['from']},{'insert':_0x353141,'from':_0x3dc13a['to']}],'effects':closeBracketEffect['of'](_0x3dc13a['to']+_0x353141['length']),'range':EditorSelection['range'](_0x3dc13a['anchor']+_0x353141['length'],_0x3dc13a['head']+_0x353141['length'])};let _0x1e4e66,_0x4ca13d=_0x3dc13a['head'],_0x39ed82=nextChar(_0x46a9d7['doc'],_0x4ca13d);if(_0x39ed82==_0x353141){if(nodeStart(_0x46a9d7,_0x4ca13d))return{'changes':{'insert':_0x353141+_0x353141,'from':_0x4ca13d},'effects':closeBracketEffect['of'](_0x4ca13d+_0x353141['length']),'range':EditorSelection['cursor'](_0x4ca13d+_0x353141['length'])};if(closedBracketAt(_0x46a9d7,_0x4ca13d)){let _0x57cc23=_0x40f315&&_0x46a9d7['sliceDoc'](_0x4ca13d,_0x4ca13d+0x3*_0x353141['length'])==_0x353141+_0x353141+_0x353141?_0x353141+_0x353141+_0x353141:_0x353141;return{'changes':{'from':_0x4ca13d,'to':_0x4ca13d+_0x57cc23['length'],'insert':_0x57cc23},'range':EditorSelection['cursor'](_0x4ca13d+_0x57cc23['length'])};}}else{if(_0x40f315&&_0x46a9d7['sliceDoc'](_0x4ca13d-0x2*_0x353141['length'],_0x4ca13d)==_0x353141+_0x353141&&(_0x1e4e66=canStartStringAt(_0x46a9d7,_0x4ca13d-0x2*_0x353141['length'],_0x43397c))>-0x1&&nodeStart(_0x46a9d7,_0x1e4e66))return{'changes':{'insert':_0x353141+_0x353141+_0x353141+_0x353141,'from':_0x4ca13d},'effects':closeBracketEffect['of'](_0x4ca13d+_0x353141['length']),'range':EditorSelection['cursor'](_0x4ca13d+_0x353141['length'])};if(_0x46a9d7['charCategorizer'](_0x4ca13d)(_0x39ed82)!=CharCategory['Word']&&canStartStringAt(_0x46a9d7,_0x4ca13d,_0x43397c)>-0x1&&!probablyInString(_0x46a9d7,_0x4ca13d,_0x353141,_0x43397c))return{'changes':{'insert':_0x353141+_0x353141,'from':_0x4ca13d},'effects':closeBracketEffect['of'](_0x4ca13d+_0x353141['length']),'range':EditorSelection['cursor'](_0x4ca13d+_0x353141['length'])};}return{'range':_0x26ef26=_0x3dc13a};});return _0x26ef26?null:_0x46a9d7['update'](_0xbface8,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function nodeStart(_0x2bd458,_0x3a3859){let _0x10c042=syntaxTree(_0x2bd458)['resolveInner'](_0x3a3859+0x1);return _0x10c042['parent']&&_0x10c042['from']==_0x3a3859;}function probablyInString(_0x24942f,_0x2db6bb,_0x1bdd9c,_0x2df5a3){let _0x5342d8=syntaxTree(_0x24942f)['resolveInner'](_0x2db6bb,-0x1),_0x5e5e43=_0x2df5a3['reduce']((_0x5d95bd,_0x1af3a9)=>Math['max'](_0x5d95bd,_0x1af3a9['length']),0x0);for(let _0x2614ea=0x0;_0x2614ea<0x5;_0x2614ea++){let _0x296913=_0x24942f['sliceDoc'](_0x5342d8['from'],Math['min'](_0x5342d8['to'],_0x5342d8['from']+_0x1bdd9c['length']+_0x5e5e43)),_0x166323=_0x296913['indexOf'](_0x1bdd9c);if(!_0x166323||_0x166323>-0x1&&_0x2df5a3['indexOf'](_0x296913['slice'](0x0,_0x166323))>-0x1){let _0x14a240=_0x5342d8['firstChild'];for(;_0x14a240&&_0x14a240['from']==_0x5342d8['from']&&_0x14a240['to']-_0x14a240['from']>_0x1bdd9c['length']+_0x166323;){if(_0x24942f['sliceDoc'](_0x14a240['to']-_0x1bdd9c['length'],_0x14a240['to'])==_0x1bdd9c)return!0x1;_0x14a240=_0x14a240['firstChild'];}return!0x0;}let _0x53ac7d=_0x5342d8['to']==_0x2db6bb&&_0x5342d8['parent'];if(!_0x53ac7d)break;_0x5342d8=_0x53ac7d;}return!0x1;}function canStartStringAt(_0x4a4183,_0x23274c,_0x2214d8){let _0x327ea4=_0x4a4183['charCategorizer'](_0x23274c);if(_0x327ea4(_0x4a4183['sliceDoc'](_0x23274c-0x1,_0x23274c))!=CharCategory['Word'])return _0x23274c;for(let _0x277497 of _0x2214d8){let _0x38bafc=_0x23274c-_0x277497['length'];if(_0x4a4183['sliceDoc'](_0x38bafc,_0x23274c)==_0x277497&&_0x327ea4(_0x4a4183['sliceDoc'](_0x38bafc-0x1,_0x38bafc))!=CharCategory['Word'])return _0x38bafc;}return-0x1;}function autocompletion(_0x475be9={}){return[commitCharacters,completionState,completionConfig['of'](_0x475be9),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],_0x37aa31=>_0x37aa31['facet'](completionConfig)['defaultKeymap']?[completionKeymap]:[]));class Stack{constructor(_0x312800,_0x2fc648,_0x27182a,_0x1bb595,_0x3777ea,_0xa12431,_0x2ac4b3,_0xdcae73,_0x297182,_0xfa14f8=0x0,_0x1c1472){this['p']=_0x312800,this['stack']=_0x2fc648,this['state']=_0x27182a,this['reducePos']=_0x1bb595,this['pos']=_0x3777ea,this['score']=_0xa12431,this['buffer']=_0x2ac4b3,this['bufferBase']=_0xdcae73,this['curContext']=_0x297182,this['lookAhead']=_0xfa14f8,this['parent']=_0x1c1472;}['toString'](){return'['+this['stack']['filter']((_0x33648c,_0x59d499)=>_0x59d499%0x3==0x0)['concat'](this['state'])+']@'+this['pos']+(this['score']?'!'+this['score']:'');}static['start'](_0x3742d6,_0x289ef0,_0x493c06=0x0){let _0x496524=_0x3742d6['parser']['context'];return new Stack(_0x3742d6,[],_0x289ef0,_0x493c06,_0x493c06,0x0,[],0x0,_0x496524?new StackContext(_0x496524,_0x496524['start']):null,0x0,null);}get['context'](){return this['curContext']?this['curContext']['context']:null;}['pushState'](_0x1956c0,_0x5e3f8d){this['stack']['push'](this['state'],_0x5e3f8d,this['bufferBase']+this['buffer']['length']),this['state']=_0x1956c0;}['reduce'](_0x19ec3d){var _0x4aa774;let _0x55574c=_0x19ec3d>>0x13,_0x4420cf=0xffff&_0x19ec3d,{parser:_0x39d8ea}=this['p'],_0x553893=this['reducePos']<this['pos']-0x19;_0x553893&&this['setLookAhead'](this['pos']);let _0x5f564b=_0x39d8ea['dynamicPrecedence'](_0x4420cf);if(_0x5f564b&&(this['score']+=_0x5f564b),0x0==_0x55574c)return this['pushState'](_0x39d8ea['getGoto'](this['state'],_0x4420cf,!0x0),this['reducePos']),_0x4420cf<_0x39d8ea['minRepeatTerm']&&this['storeNode'](_0x4420cf,this['reducePos'],this['reducePos'],_0x553893?0x8:0x4,!0x0),void this['reduceContext'](_0x4420cf,this['reducePos']);let _0x4090cc=this['stack']['length']-0x3*(_0x55574c-0x1)-(0x40000&_0x19ec3d?0x6:0x0),_0x43389f=_0x4090cc?this['stack'][_0x4090cc-0x2]:this['p']['ranges'][0x0]['from'],_0x14ee53=this['reducePos']-_0x43389f;_0x14ee53>=0x7d0&&!(null===(_0x4aa774=this['p']['parser']['nodeSet']['types'][_0x4420cf])||void 0x0===_0x4aa774?void 0x0:_0x4aa774['isAnonymous'])&&(_0x43389f==this['p']['lastBigReductionStart']?(this['p']['bigReductionCount']++,this['p']['lastBigReductionSize']=_0x14ee53):this['p']['lastBigReductionSize']<_0x14ee53&&(this['p']['bigReductionCount']=0x1,this['p']['lastBigReductionStart']=_0x43389f,this['p']['lastBigReductionSize']=_0x14ee53));let _0x238c92=_0x4090cc?this['stack'][_0x4090cc-0x1]:0x0,_0xc853da=this['bufferBase']+this['buffer']['length']-_0x238c92;if(_0x4420cf<_0x39d8ea['minRepeatTerm']||0x20000&_0x19ec3d){let _0x1ffdde=_0x39d8ea['stateFlag'](this['state'],0x1)?this['pos']:this['reducePos'];this['storeNode'](_0x4420cf,_0x43389f,_0x1ffdde,_0xc853da+0x4,!0x0);}if(0x40000&_0x19ec3d)this['state']=this['stack'][_0x4090cc];else{let _0x583dfb=this['stack'][_0x4090cc-0x3];this['state']=_0x39d8ea['getGoto'](_0x583dfb,_0x4420cf,!0x0);}for(;this['stack']['length']>_0x4090cc;)this['stack']['pop']();this['reduceContext'](_0x4420cf,_0x43389f);}['storeNode'](_0xc553bb,_0x55fc93,_0x473281,_0x460bb0=0x4,_0x211e6d=!0x1){if(0x0==_0xc553bb&&(!this['stack']['length']||this['stack'][this['stack']['length']-0x1]<this['buffer']['length']+this['bufferBase'])){let _0xb6a1a8=this,_0xe7f79=this['buffer']['length'];if(0x0==_0xe7f79&&_0xb6a1a8['parent']&&(_0xe7f79=_0xb6a1a8['bufferBase']-_0xb6a1a8['parent']['bufferBase'],_0xb6a1a8=_0xb6a1a8['parent']),_0xe7f79>0x0&&0x0==_0xb6a1a8['buffer'][_0xe7f79-0x4]&&_0xb6a1a8['buffer'][_0xe7f79-0x1]>-0x1){if(_0x55fc93==_0x473281)return;if(_0xb6a1a8['buffer'][_0xe7f79-0x2]>=_0x55fc93)return void(_0xb6a1a8['buffer'][_0xe7f79-0x2]=_0x473281);}}if(_0x211e6d&&this['pos']!=_0x473281){let _0x5e123f=this['buffer']['length'];if(_0x5e123f>0x0&&(0x0!=this['buffer'][_0x5e123f-0x4]||this['buffer'][_0x5e123f-0x1]<0x0)){let _0x5d8891=!0x1;for(let _0x4fa173=_0x5e123f;_0x4fa173>0x0&&this['buffer'][_0x4fa173-0x2]>_0x473281;_0x4fa173-=0x4)if(this['buffer'][_0x4fa173-0x1]>=0x0){_0x5d8891=!0x0;break;}if(_0x5d8891){for(;_0x5e123f>0x0&&this['buffer'][_0x5e123f-0x2]>_0x473281;)this['buffer'][_0x5e123f]=this['buffer'][_0x5e123f-0x4],this['buffer'][_0x5e123f+0x1]=this['buffer'][_0x5e123f-0x3],this['buffer'][_0x5e123f+0x2]=this['buffer'][_0x5e123f-0x2],this['buffer'][_0x5e123f+0x3]=this['buffer'][_0x5e123f-0x1],_0x5e123f-=0x4,_0x460bb0>0x4&&(_0x460bb0-=0x4);}}this['buffer'][_0x5e123f]=_0xc553bb,this['buffer'][_0x5e123f+0x1]=_0x55fc93,this['buffer'][_0x5e123f+0x2]=_0x473281,this['buffer'][_0x5e123f+0x3]=_0x460bb0;}else this['buffer']['push'](_0xc553bb,_0x55fc93,_0x473281,_0x460bb0);}['shift'](_0x16664c,_0x1f7d31,_0x283b76,_0x3237e2){if(0x20000&_0x16664c)this['pushState'](0xffff&_0x16664c,this['pos']);else{if(0x40000&_0x16664c)this['pos']=_0x3237e2,this['shiftContext'](_0x1f7d31,_0x283b76),_0x1f7d31<=this['p']['parser']['maxNode']&&this['buffer']['push'](_0x1f7d31,_0x283b76,_0x3237e2,0x4);else{let _0x7eadb3=_0x16664c,{parser:_0x17c982}=this['p'];(_0x3237e2>this['pos']||_0x1f7d31<=_0x17c982['maxNode'])&&(this['pos']=_0x3237e2,_0x17c982['stateFlag'](_0x7eadb3,0x1)||(this['reducePos']=_0x3237e2)),this['pushState'](_0x7eadb3,_0x283b76),this['shiftContext'](_0x1f7d31,_0x283b76),_0x1f7d31<=_0x17c982['maxNode']&&this['buffer']['push'](_0x1f7d31,_0x283b76,_0x3237e2,0x4);}}}['apply'](_0x1088cb,_0xeae512,_0x2105d4,_0x56ddf2){0x10000&_0x1088cb?this['reduce'](_0x1088cb):this['shift'](_0x1088cb,_0xeae512,_0x2105d4,_0x56ddf2);}['useNode'](_0x2989da,_0x2392fe){let _0x46d5b1=this['p']['reused']['length']-0x1;(_0x46d5b1<0x0||this['p']['reused'][_0x46d5b1]!=_0x2989da)&&(this['p']['reused']['push'](_0x2989da),_0x46d5b1++);let _0x37bd42=this['pos'];this['reducePos']=this['pos']=_0x37bd42+_0x2989da['length'],this['pushState'](_0x2392fe,_0x37bd42),this['buffer']['push'](_0x46d5b1,_0x37bd42,this['reducePos'],-0x1),this['curContext']&&this['updateContext'](this['curContext']['tracker']['reuse'](this['curContext']['context'],_0x2989da,this,this['p']['stream']['reset'](this['pos']-_0x2989da['length'])));}['split'](){let _0x17ca47=this,_0x34a1c5=_0x17ca47['buffer']['length'];for(;_0x34a1c5>0x0&&_0x17ca47['buffer'][_0x34a1c5-0x2]>_0x17ca47['reducePos'];)_0x34a1c5-=0x4;let _0x395134=_0x17ca47['buffer']['slice'](_0x34a1c5),_0x309f46=_0x17ca47['bufferBase']+_0x34a1c5;for(;_0x17ca47&&_0x309f46==_0x17ca47['bufferBase'];)_0x17ca47=_0x17ca47['parent'];return new Stack(this['p'],this['stack']['slice'](),this['state'],this['reducePos'],this['pos'],this['score'],_0x395134,_0x309f46,this['curContext'],this['lookAhead'],_0x17ca47);}['recoverByDelete'](_0x27dd8b,_0x3773f6){let _0x323e88=_0x27dd8b<=this['p']['parser']['maxNode'];_0x323e88&&this['storeNode'](_0x27dd8b,this['pos'],_0x3773f6,0x4),this['storeNode'](0x0,this['pos'],_0x3773f6,_0x323e88?0x8:0x4),this['pos']=this['reducePos']=_0x3773f6,this['score']-=0xbe;}['canShift'](_0x4059ab){for(let _0x50d53b=new SimulatedStack(this);;){let _0x1f588f=this['p']['parser']['stateSlot'](_0x50d53b['state'],0x4)||this['p']['parser']['hasAction'](_0x50d53b['state'],_0x4059ab);if(0x0==_0x1f588f)return!0x1;if(!(0x10000&_0x1f588f))return!0x0;_0x50d53b['reduce'](_0x1f588f);}}['recoverByInsert'](_0x517b47){if(this['stack']['length']>=0x12c)return[];let _0x248151=this['p']['parser']['nextStates'](this['state']);if(_0x248151['length']>0x8||this['stack']['length']>=0x78){let _0x2fc808=[];for(let _0x9ea586,_0x1a030a=0x0;_0x1a030a<_0x248151['length'];_0x1a030a+=0x2)(_0x9ea586=_0x248151[_0x1a030a+0x1])!=this['state']&&this['p']['parser']['hasAction'](_0x9ea586,_0x517b47)&&_0x2fc808['push'](_0x248151[_0x1a030a],_0x9ea586);if(this['stack']['length']<0x78)for(let _0x3bbb96=0x0;_0x2fc808['length']<0x8&&_0x3bbb96<_0x248151['length'];_0x3bbb96+=0x2){let _0x3dbfd7=_0x248151[_0x3bbb96+0x1];_0x2fc808['some']((_0x4531aa,_0x1bbfc8)=>0x1&_0x1bbfc8&&_0x4531aa==_0x3dbfd7)||_0x2fc808['push'](_0x248151[_0x3bbb96],_0x3dbfd7);}_0x248151=_0x2fc808;}let _0x23b627=[];for(let _0x49c6e2=0x0;_0x49c6e2<_0x248151['length']&&_0x23b627['length']<0x4;_0x49c6e2+=0x2){let _0x5ad3a3=_0x248151[_0x49c6e2+0x1];if(_0x5ad3a3==this['state'])continue;let _0x1a0568=this['split']();_0x1a0568['pushState'](_0x5ad3a3,this['pos']),_0x1a0568['storeNode'](0x0,_0x1a0568['pos'],_0x1a0568['pos'],0x4,!0x0),_0x1a0568['shiftContext'](_0x248151[_0x49c6e2],this['pos']),_0x1a0568['reducePos']=this['pos'],_0x1a0568['score']-=0xc8,_0x23b627['push'](_0x1a0568);}return _0x23b627;}['forceReduce'](){let {parser:_0x29e13f}=this['p'],_0x587909=_0x29e13f['stateSlot'](this['state'],0x5);if(!(0x10000&_0x587909))return!0x1;if(!_0x29e13f['validAction'](this['state'],_0x587909)){let _0x799e0=_0x587909>>0x13,_0x3097dd=0xffff&_0x587909,_0x144110=this['stack']['length']-0x3*_0x799e0;if(_0x144110<0x0||_0x29e13f['getGoto'](this['stack'][_0x144110],_0x3097dd,!0x1)<0x0){let _0x1850ac=this['findForcedReduction']();if(null==_0x1850ac)return!0x1;_0x587909=_0x1850ac;}this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['score']-=0x64;}return this['reducePos']=this['pos'],this['reduce'](_0x587909),!0x0;}['findForcedReduction'](){let {parser:_0x3002a4}=this['p'],_0x499971=[],_0x5df897=(_0x266d78,_0xf3389f)=>{if(!_0x499971['includes'](_0x266d78))return _0x499971['push'](_0x266d78),_0x3002a4['allActions'](_0x266d78,_0x2f52d9=>{if(0x60000&_0x2f52d9);else{if(0x10000&_0x2f52d9){let _0x42a3fd=(_0x2f52d9>>0x13)-_0xf3389f;if(_0x42a3fd>0x1){let _0x3ee6ce=0xffff&_0x2f52d9,_0x4ae540=this['stack']['length']-0x3*_0x42a3fd;if(_0x4ae540>=0x0&&_0x3002a4['getGoto'](this['stack'][_0x4ae540],_0x3ee6ce,!0x1)>=0x0)return _0x42a3fd<<0x13|0x10000|_0x3ee6ce;}}else{let _0x5240cb=_0x5df897(_0x2f52d9,_0xf3389f+0x1);if(null!=_0x5240cb)return _0x5240cb;}}});};return _0x5df897(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:_0x2bb40a}=this['p'];return 0xffff==_0x2bb40a['data'][_0x2bb40a['stateSlot'](this['state'],0x1)]&&!_0x2bb40a['stateSlot'](this['state'],0x4);}['restart'](){this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['state']=this['stack'][0x0],this['stack']['length']=0x0;}['sameState'](_0x4588fe){if(this['state']!=_0x4588fe['state']||this['stack']['length']!=_0x4588fe['stack']['length'])return!0x1;for(let _0x54fe7f=0x0;_0x54fe7f<this['stack']['length'];_0x54fe7f+=0x3)if(this['stack'][_0x54fe7f]!=_0x4588fe['stack'][_0x54fe7f])return!0x1;return!0x0;}get['parser'](){return this['p']['parser'];}['dialectEnabled'](_0x1ce54e){return this['p']['parser']['dialect']['flags'][_0x1ce54e];}['shiftContext'](_0xbea9b3,_0x31e1b3){this['curContext']&&this['updateContext'](this['curContext']['tracker']['shift'](this['curContext']['context'],_0xbea9b3,this,this['p']['stream']['reset'](_0x31e1b3)));}['reduceContext'](_0x17dd0a,_0x4211fd){this['curContext']&&this['updateContext'](this['curContext']['tracker']['reduce'](this['curContext']['context'],_0x17dd0a,this,this['p']['stream']['reset'](_0x4211fd)));}['emitContext'](){let _0x49a8a6=this['buffer']['length']-0x1;(_0x49a8a6<0x0||-0x3!=this['buffer'][_0x49a8a6])&&this['buffer']['push'](this['curContext']['hash'],this['pos'],this['pos'],-0x3);}['emitLookAhead'](){let _0x58d38f=this['buffer']['length']-0x1;(_0x58d38f<0x0||-0x4!=this['buffer'][_0x58d38f])&&this['buffer']['push'](this['lookAhead'],this['pos'],this['pos'],-0x4);}['updateContext'](_0x3ed9ae){if(_0x3ed9ae!=this['curContext']['context']){let _0x4c8ca4=new StackContext(this['curContext']['tracker'],_0x3ed9ae);_0x4c8ca4['hash']!=this['curContext']['hash']&&this['emitContext'](),this['curContext']=_0x4c8ca4;}}['setLookAhead'](_0x358ac7){_0x358ac7>this['lookAhead']&&(this['emitLookAhead'](),this['lookAhead']=_0x358ac7);}['close'](){this['curContext']&&this['curContext']['tracker']['strict']&&this['emitContext'](),this['lookAhead']>0x0&&this['emitLookAhead']();}}class StackContext{constructor(_0x2b5a78,_0x553d7f){this['tracker']=_0x2b5a78,this['context']=_0x553d7f,this['hash']=_0x2b5a78['strict']?_0x2b5a78['hash'](_0x553d7f):0x0;}}class SimulatedStack{constructor(_0x5bcee6){this['start']=_0x5bcee6,this['state']=_0x5bcee6['state'],this['stack']=_0x5bcee6['stack'],this['base']=this['stack']['length'];}['reduce'](_0x35142d){let _0x3043e9=0xffff&_0x35142d,_0x1c0e41=_0x35142d>>0x13;0x0==_0x1c0e41?(this['stack']==this['start']['stack']&&(this['stack']=this['stack']['slice']()),this['stack']['push'](this['state'],0x0,0x0),this['base']+=0x3):this['base']-=0x3*(_0x1c0e41-0x1);let _0x25c886=this['start']['p']['parser']['getGoto'](this['stack'][this['base']-0x3],_0x3043e9,!0x0);this['state']=_0x25c886;}}class StackBufferCursor{constructor(_0x5809f2,_0x3b6407,_0x6cc122){this['stack']=_0x5809f2,this['pos']=_0x3b6407,this['index']=_0x6cc122,this['buffer']=_0x5809f2['buffer'],0x0==this['index']&&this['maybeNext']();}static['create'](_0x30e9e2,_0x39bf4d=_0x30e9e2['bufferBase']+_0x30e9e2['buffer']['length']){return new StackBufferCursor(_0x30e9e2,_0x39bf4d,_0x39bf4d-_0x30e9e2['bufferBase']);}['maybeNext'](){let _0x56b1a0=this['stack']['parent'];null!=_0x56b1a0&&(this['index']=this['stack']['bufferBase']-_0x56b1a0['bufferBase'],this['stack']=_0x56b1a0,this['buffer']=_0x56b1a0['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(_0xabb3df,_0x337e17=Uint16Array){if('string'!=typeof _0xabb3df)return _0xabb3df;let _0x124b0b=null;for(let _0x22fef3=0x0,_0x5375e1=0x0;_0x22fef3<_0xabb3df['length'];){let _0x253b3a=0x0;for(;;){let _0x572209=_0xabb3df['charCodeAt'](_0x22fef3++),_0x5033c3=!0x1;if(0x7e==_0x572209){_0x253b3a=0xffff;break;}_0x572209>=0x5c&&_0x572209--,_0x572209>=0x22&&_0x572209--;let _0x8cf3dc=_0x572209-0x20;if(_0x8cf3dc>=0x2e&&(_0x8cf3dc-=0x2e,_0x5033c3=!0x0),_0x253b3a+=_0x8cf3dc,_0x5033c3)break;_0x253b3a*=0x2e;}_0x124b0b?_0x124b0b[_0x5375e1++]=_0x253b3a:_0x124b0b=new _0x337e17(_0x253b3a);}return _0x124b0b;}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(_0x826c9e,_0x277f80){this['input']=_0x826c9e,this['ranges']=_0x277f80,this['chunk']='',this['chunkOff']=0x0,this['chunk2']='',this['chunk2Pos']=0x0,this['next']=-0x1,this['token']=nullToken,this['rangeIndex']=0x0,this['pos']=this['chunkPos']=_0x277f80[0x0]['from'],this['range']=_0x277f80[0x0],this['end']=_0x277f80[_0x277f80['length']-0x1]['to'],this['readNext']();}['resolveOffset'](_0x404c64,_0xc50ee){let _0x1d4c1f=this['range'],_0x45f501=this['rangeIndex'],_0x5bca9a=this['pos']+_0x404c64;for(;_0x5bca9a<_0x1d4c1f['from'];){if(!_0x45f501)return null;let _0x235387=this['ranges'][--_0x45f501];_0x5bca9a-=_0x1d4c1f['from']-_0x235387['to'],_0x1d4c1f=_0x235387;}for(;_0xc50ee<0x0?_0x5bca9a>_0x1d4c1f['to']:_0x5bca9a>=_0x1d4c1f['to'];){if(_0x45f501==this['ranges']['length']-0x1)return null;let _0x402322=this['ranges'][++_0x45f501];_0x5bca9a+=_0x402322['from']-_0x1d4c1f['to'],_0x1d4c1f=_0x402322;}return _0x5bca9a;}['clipPos'](_0x580b99){if(_0x580b99>=this['range']['from']&&_0x580b99<this['range']['to'])return _0x580b99;for(let _0x2478cf of this['ranges'])if(_0x2478cf['to']>_0x580b99)return Math['max'](_0x580b99,_0x2478cf['from']);return this['end'];}['peek'](_0x550781){let _0x23c152,_0x543697,_0x53228c=this['chunkOff']+_0x550781;if(_0x53228c>=0x0&&_0x53228c<this['chunk']['length'])_0x23c152=this['pos']+_0x550781,_0x543697=this['chunk']['charCodeAt'](_0x53228c);else{let _0x218aaf=this['resolveOffset'](_0x550781,0x1);if(null==_0x218aaf)return-0x1;if(_0x23c152=_0x218aaf,_0x23c152>=this['chunk2Pos']&&_0x23c152<this['chunk2Pos']+this['chunk2']['length'])_0x543697=this['chunk2']['charCodeAt'](_0x23c152-this['chunk2Pos']);else{let _0x9feadb=this['rangeIndex'],_0x17eeb6=this['range'];for(;_0x17eeb6['to']<=_0x23c152;)_0x17eeb6=this['ranges'][++_0x9feadb];this['chunk2']=this['input']['chunk'](this['chunk2Pos']=_0x23c152),_0x23c152+this['chunk2']['length']>_0x17eeb6['to']&&(this['chunk2']=this['chunk2']['slice'](0x0,_0x17eeb6['to']-_0x23c152)),_0x543697=this['chunk2']['charCodeAt'](0x0);}}return _0x23c152>=this['token']['lookAhead']&&(this['token']['lookAhead']=_0x23c152+0x1),_0x543697;}['acceptToken'](_0x21dc75,_0x37cfbc=0x0){let _0x466284=_0x37cfbc?this['resolveOffset'](_0x37cfbc,-0x1):this['pos'];if(null==_0x466284||_0x466284<this['token']['start'])throw new RangeError('Token\x20end\x20out\x20of\x20bounds');this['token']['value']=_0x21dc75,this['token']['end']=_0x466284;}['acceptTokenTo'](_0x55a465,_0x124018){this['token']['value']=_0x55a465,this['token']['end']=_0x124018;}['getChunk'](){if(this['pos']>=this['chunk2Pos']&&this['pos']<this['chunk2Pos']+this['chunk2']['length']){let {chunk:_0x4fbf42,chunkPos:_0x422595}=this;this['chunk']=this['chunk2'],this['chunkPos']=this['chunk2Pos'],this['chunk2']=_0x4fbf42,this['chunk2Pos']=_0x422595,this['chunkOff']=this['pos']-this['chunkPos'];}else{this['chunk2']=this['chunk'],this['chunk2Pos']=this['chunkPos'];let _0x1573b7=this['input']['chunk'](this['pos']),_0xb9e6f1=this['pos']+_0x1573b7['length'];this['chunk']=_0xb9e6f1>this['range']['to']?_0x1573b7['slice'](0x0,this['range']['to']-this['pos']):_0x1573b7,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'](_0x5d113a=0x1){for(this['chunkOff']+=_0x5d113a;this['pos']+_0x5d113a>=this['range']['to'];){if(this['rangeIndex']==this['ranges']['length']-0x1)return this['setDone']();_0x5d113a-=this['range']['to']-this['pos'],this['range']=this['ranges'][++this['rangeIndex']],this['pos']=this['range']['from'];}return this['pos']+=_0x5d113a,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'](_0x1dbeea,_0xd62ec3){if(_0xd62ec3?(this['token']=_0xd62ec3,_0xd62ec3['start']=_0x1dbeea,_0xd62ec3['lookAhead']=_0x1dbeea+0x1,_0xd62ec3['value']=_0xd62ec3['extended']=-0x1):this['token']=nullToken,this['pos']!=_0x1dbeea){if(this['pos']=_0x1dbeea,_0x1dbeea==this['end'])return this['setDone'](),this;for(;_0x1dbeea<this['range']['from'];)this['range']=this['ranges'][--this['rangeIndex']];for(;_0x1dbeea>=this['range']['to'];)this['range']=this['ranges'][++this['rangeIndex']];_0x1dbeea>=this['chunkPos']&&_0x1dbeea<this['chunkPos']+this['chunk']['length']?this['chunkOff']=_0x1dbeea-this['chunkPos']:(this['chunk']='',this['chunkOff']=0x0),this['readNext']();}return this;}['read'](_0xf45b20,_0x30da53){if(_0xf45b20>=this['chunkPos']&&_0x30da53<=this['chunkPos']+this['chunk']['length'])return this['chunk']['slice'](_0xf45b20-this['chunkPos'],_0x30da53-this['chunkPos']);if(_0xf45b20>=this['chunk2Pos']&&_0x30da53<=this['chunk2Pos']+this['chunk2']['length'])return this['chunk2']['slice'](_0xf45b20-this['chunk2Pos'],_0x30da53-this['chunk2Pos']);if(_0xf45b20>=this['range']['from']&&_0x30da53<=this['range']['to'])return this['input']['read'](_0xf45b20,_0x30da53);let _0x4e6ed9='';for(let _0x28962f of this['ranges']){if(_0x28962f['from']>=_0x30da53)break;_0x28962f['to']>_0xf45b20&&(_0x4e6ed9+=this['input']['read'](Math['max'](_0x28962f['from'],_0xf45b20),Math['min'](_0x28962f['to'],_0x30da53)));}return _0x4e6ed9;}}class TokenGroup{constructor(_0x2a3b53,_0x18ae4e){this['data']=_0x2a3b53,this['id']=_0x18ae4e;}['token'](_0x11140d,_0x3ca879){let {parser:_0x4b0537}=_0x3ca879['p'];readToken(this['data'],_0x11140d,_0x3ca879,this['id'],_0x4b0537['data'],_0x4b0537['tokenPrecTable']);}}TokenGroup['prototype']['contextual']=TokenGroup['prototype']['fallback']=TokenGroup['prototype']['extend']=!0x1;class LocalTokenGroup{constructor(_0x3bee1c,_0x1251b5,_0x6b9fbb){this['precTable']=_0x1251b5,this['elseToken']=_0x6b9fbb,this['data']='string'==typeof _0x3bee1c?decodeArray(_0x3bee1c):_0x3bee1c;}['token'](_0x566146,_0x27f9b7){let _0x3b9ed1=_0x566146['pos'],_0x3beb63=0x0;for(;;){let _0x83e370=_0x566146['next']<0x0,_0xe378da=_0x566146['resolveOffset'](0x1,0x1);if(readToken(this['data'],_0x566146,_0x27f9b7,0x0,this['data'],this['precTable']),_0x566146['token']['value']>-0x1)break;if(null==this['elseToken'])return;if(_0x83e370||_0x3beb63++,null==_0xe378da)break;_0x566146['reset'](_0xe378da,_0x566146['token']);}_0x3beb63&&(_0x566146['reset'](_0x3b9ed1,_0x566146['token']),_0x566146['acceptToken'](this['elseToken'],_0x3beb63));}}LocalTokenGroup['prototype']['contextual']=TokenGroup['prototype']['fallback']=TokenGroup['prototype']['extend']=!0x1;class ExternalTokenizer{constructor(_0x621437,_0x3e3bb6={}){this['token']=_0x621437,this['contextual']=!!_0x3e3bb6['contextual'],this['fallback']=!!_0x3e3bb6['fallback'],this['extend']=!!_0x3e3bb6['extend'];}}function readToken(_0x4336cb,_0x563c19,_0x1fdd89,_0x216544,_0x2848e3,_0x1d7b92){let _0x39a2cd=0x0,_0xbaf66d=0x1<<_0x216544,{dialect:_0x5c242f}=_0x1fdd89['p']['parser'];t:for(;0x0!=(_0xbaf66d&_0x4336cb[_0x39a2cd]);){let _0x45fe4a=_0x4336cb[_0x39a2cd+0x1];for(let _0x16cc44=_0x39a2cd+0x3;_0x16cc44<_0x45fe4a;_0x16cc44+=0x2)if((_0x4336cb[_0x16cc44+0x1]&_0xbaf66d)>0x0){let _0x4079bf=_0x4336cb[_0x16cc44];if(_0x5c242f['allows'](_0x4079bf)&&(-0x1==_0x563c19['token']['value']||_0x563c19['token']['value']==_0x4079bf||overrides(_0x4079bf,_0x563c19['token']['value'],_0x2848e3,_0x1d7b92))){_0x563c19['acceptToken'](_0x4079bf);break;}}let _0x56a0f4=_0x563c19['next'],_0x4758a3=0x0,_0x56df47=_0x4336cb[_0x39a2cd+0x2];if(!(_0x563c19['next']<0x0&&_0x56df47>_0x4758a3&&0xffff==_0x4336cb[_0x45fe4a+0x3*_0x56df47-0x3])){for(;_0x4758a3<_0x56df47;){let _0x453392=_0x4758a3+_0x56df47>>0x1,_0x3db78f=_0x45fe4a+_0x453392+(_0x453392<<0x1),_0x3a234b=_0x4336cb[_0x3db78f],_0x1c76d5=_0x4336cb[_0x3db78f+0x1]||0x10000;if(_0x56a0f4<_0x3a234b)_0x56df47=_0x453392;else{if(!(_0x56a0f4>=_0x1c76d5)){_0x39a2cd=_0x4336cb[_0x3db78f+0x2],_0x563c19['advance']();continue t;}_0x4758a3=_0x453392+0x1;}}break;}_0x39a2cd=_0x4336cb[_0x45fe4a+0x3*_0x56df47-0x1];}}function findOffset(_0x404a88,_0x23726e,_0x47d589){for(let _0x4edd6a,_0x1e04d0=_0x23726e;0xffff!=(_0x4edd6a=_0x404a88[_0x1e04d0]);_0x1e04d0++)if(_0x4edd6a==_0x47d589)return _0x1e04d0-_0x23726e;return-0x1;}function overrides(_0x16f7ba,_0x18da27,_0x4c4e3a,_0x3c8814){let _0x265aca=findOffset(_0x4c4e3a,_0x3c8814,_0x18da27);return _0x265aca<0x0||findOffset(_0x4c4e3a,_0x3c8814,_0x16f7ba)<_0x265aca;}const verbose='undefined'!=typeof process&&process['env']&&/\bparse\b/['test'](process['env']['LOG']);let stackIDs=null;function cutAt(_0x4db8ff,_0x122cca,_0x1e4185){let _0x2d97ee=_0x4db8ff['cursor'](IterMode['IncludeAnonymous']);for(_0x2d97ee['moveTo'](_0x122cca);;)if(!(_0x1e4185<0x0?_0x2d97ee['childBefore'](_0x122cca):_0x2d97ee['childAfter'](_0x122cca)))for(;;){if((_0x1e4185<0x0?_0x2d97ee['to']<_0x122cca:_0x2d97ee['from']>_0x122cca)&&!_0x2d97ee['type']['isError'])return _0x1e4185<0x0?Math['max'](0x0,Math['min'](_0x2d97ee['to']-0x1,_0x122cca-0x19)):Math['min'](_0x4db8ff['length'],Math['max'](_0x2d97ee['from']+0x1,_0x122cca+0x19));if(_0x1e4185<0x0?_0x2d97ee['prevSibling']():_0x2d97ee['nextSibling']())break;if(!_0x2d97ee['parent']())return _0x1e4185<0x0?0x0:_0x4db8ff['length'];}}let FragmentCursor$1=class{constructor(_0x1ad9c5,_0x2a0e37){this['fragments']=_0x1ad9c5,this['nodeSet']=_0x2a0e37,this['i']=0x0,this['fragment']=null,this['safeFrom']=-0x1,this['safeTo']=-0x1,this['trees']=[],this['start']=[],this['index']=[],this['nextFragment']();}['nextFragment'](){let _0x4110ad=this['fragment']=this['i']==this['fragments']['length']?null:this['fragments'][this['i']++];if(_0x4110ad){for(this['safeFrom']=_0x4110ad['openStart']?cutAt(_0x4110ad['tree'],_0x4110ad['from']+_0x4110ad['offset'],0x1)-_0x4110ad['offset']:_0x4110ad['from'],this['safeTo']=_0x4110ad['openEnd']?cutAt(_0x4110ad['tree'],_0x4110ad['to']+_0x4110ad['offset'],-0x1)-_0x4110ad['offset']:_0x4110ad['to'];this['trees']['length'];)this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();this['trees']['push'](_0x4110ad['tree']),this['start']['push'](-_0x4110ad['offset']),this['index']['push'](0x0),this['nextStart']=this['safeFrom'];}else this['nextStart']=0x3b9aca00;}['nodeAt'](_0x120b85){if(_0x120b85<this['nextStart'])return null;for(;this['fragment']&&this['safeTo']<=_0x120b85;)this['nextFragment']();if(!this['fragment'])return null;for(;;){let _0x401553=this['trees']['length']-0x1;if(_0x401553<0x0)return this['nextFragment'](),null;let _0x292947=this['trees'][_0x401553],_0x15fbfe=this['index'][_0x401553];if(_0x15fbfe==_0x292947['children']['length']){this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();continue;}let _0x3f6bd3=_0x292947['children'][_0x15fbfe],_0x3f8d85=this['start'][_0x401553]+_0x292947['positions'][_0x15fbfe];if(_0x3f8d85>_0x120b85)return this['nextStart']=_0x3f8d85,null;if(_0x3f6bd3 instanceof Tree){if(_0x3f8d85==_0x120b85){if(_0x3f8d85<this['safeFrom'])return null;let _0x3b5bbb=_0x3f8d85+_0x3f6bd3['length'];if(_0x3b5bbb<=this['safeTo']){let _0x6473d5=_0x3f6bd3['prop'](NodeProp['lookAhead']);if(!_0x6473d5||_0x3b5bbb+_0x6473d5<this['fragment']['to'])return _0x3f6bd3;}}this['index'][_0x401553]++,_0x3f8d85+_0x3f6bd3['length']>=Math['max'](this['safeFrom'],_0x120b85)&&(this['trees']['push'](_0x3f6bd3),this['start']['push'](_0x3f8d85),this['index']['push'](0x0));}else this['index'][_0x401553]++,this['nextStart']=_0x3f8d85+_0x3f6bd3['length'];}}};class TokenCache{constructor(_0x796ef1,_0x176b3e){this['stream']=_0x176b3e,this['tokens']=[],this['mainToken']=null,this['actions']=[],this['tokens']=_0x796ef1['tokenizers']['map'](_0x26e2d6=>new CachedToken());}['getActions'](_0x26c944){let _0x573f19=0x0,_0xe5c384=null,{parser:_0x15757c}=_0x26c944['p'],{tokenizers:_0x2272a1}=_0x15757c,_0x1026cc=_0x15757c['stateSlot'](_0x26c944['state'],0x3),_0x35ffe0=_0x26c944['curContext']?_0x26c944['curContext']['hash']:0x0,_0x375d46=0x0;for(let _0x4dbbb6=0x0;_0x4dbbb6<_0x2272a1['length'];_0x4dbbb6++){if(!(0x1<<_0x4dbbb6&_0x1026cc))continue;let _0x1931bd=_0x2272a1[_0x4dbbb6],_0x354708=this['tokens'][_0x4dbbb6];if((!_0xe5c384||_0x1931bd['fallback'])&&((_0x1931bd['contextual']||_0x354708['start']!=_0x26c944['pos']||_0x354708['mask']!=_0x1026cc||_0x354708['context']!=_0x35ffe0)&&(this['updateCachedToken'](_0x354708,_0x1931bd,_0x26c944),_0x354708['mask']=_0x1026cc,_0x354708['context']=_0x35ffe0),_0x354708['lookAhead']>_0x354708['end']+0x19&&(_0x375d46=Math['max'](_0x354708['lookAhead'],_0x375d46)),0x0!=_0x354708['value'])){let _0x39f1a8=_0x573f19;if(_0x354708['extended']>-0x1&&(_0x573f19=this['addActions'](_0x26c944,_0x354708['extended'],_0x354708['end'],_0x573f19)),_0x573f19=this['addActions'](_0x26c944,_0x354708['value'],_0x354708['end'],_0x573f19),!_0x1931bd['extend']&&(_0xe5c384=_0x354708,_0x573f19>_0x39f1a8))break;}}for(;this['actions']['length']>_0x573f19;)this['actions']['pop']();return _0x375d46&&_0x26c944['setLookAhead'](_0x375d46),_0xe5c384||_0x26c944['pos']!=this['stream']['end']||(_0xe5c384=new CachedToken(),_0xe5c384['value']=_0x26c944['p']['parser']['eofTerm'],_0xe5c384['start']=_0xe5c384['end']=_0x26c944['pos'],_0x573f19=this['addActions'](_0x26c944,_0xe5c384['value'],_0xe5c384['end'],_0x573f19)),this['mainToken']=_0xe5c384,this['actions'];}['getMainToken'](_0x56097f){if(this['mainToken'])return this['mainToken'];let _0x2408e2=new CachedToken(),{pos:_0x362a67,p:_0x3b0aed}=_0x56097f;return _0x2408e2['start']=_0x362a67,_0x2408e2['end']=Math['min'](_0x362a67+0x1,_0x3b0aed['stream']['end']),_0x2408e2['value']=_0x362a67==_0x3b0aed['stream']['end']?_0x3b0aed['parser']['eofTerm']:0x0,_0x2408e2;}['updateCachedToken'](_0x50b1d0,_0x421e33,_0x2dccb6){let _0x4c04aa=this['stream']['clipPos'](_0x2dccb6['pos']);if(_0x421e33['token'](this['stream']['reset'](_0x4c04aa,_0x50b1d0),_0x2dccb6),_0x50b1d0['value']>-0x1){let {parser:_0xc9c37d}=_0x2dccb6['p'];for(let _0x1695ce=0x0;_0x1695ce<_0xc9c37d['specialized']['length'];_0x1695ce++)if(_0xc9c37d['specialized'][_0x1695ce]==_0x50b1d0['value']){let _0x3c8532=_0xc9c37d['specializers'][_0x1695ce](this['stream']['read'](_0x50b1d0['start'],_0x50b1d0['end']),_0x2dccb6);if(_0x3c8532>=0x0&&_0x2dccb6['p']['parser']['dialect']['allows'](_0x3c8532>>0x1)){0x1&_0x3c8532?_0x50b1d0['extended']=_0x3c8532>>0x1:_0x50b1d0['value']=_0x3c8532>>0x1;break;}}}else _0x50b1d0['value']=0x0,_0x50b1d0['end']=this['stream']['clipPos'](_0x4c04aa+0x1);}['putAction'](_0x4d96af,_0xb044e8,_0x55c401,_0xd4818){for(let _0xb76dec=0x0;_0xb76dec<_0xd4818;_0xb76dec+=0x3)if(this['actions'][_0xb76dec]==_0x4d96af)return _0xd4818;return this['actions'][_0xd4818++]=_0x4d96af,this['actions'][_0xd4818++]=_0xb044e8,this['actions'][_0xd4818++]=_0x55c401,_0xd4818;}['addActions'](_0x2ebd7b,_0x401217,_0x36fd92,_0x33ce1e){let {state:_0x3a4e20}=_0x2ebd7b,{parser:_0x1b8125}=_0x2ebd7b['p'],{data:_0x4c7d12}=_0x1b8125;for(let _0x51e962=0x0;_0x51e962<0x2;_0x51e962++)for(let _0x4ac05d=_0x1b8125['stateSlot'](_0x3a4e20,_0x51e962?0x2:0x1);;_0x4ac05d+=0x3){if(0xffff==_0x4c7d12[_0x4ac05d]){if(0x1!=_0x4c7d12[_0x4ac05d+0x1]){0x0==_0x33ce1e&&0x2==_0x4c7d12[_0x4ac05d+0x1]&&(_0x33ce1e=this['putAction'](pair(_0x4c7d12,_0x4ac05d+0x2),_0x401217,_0x36fd92,_0x33ce1e));break;}_0x4ac05d=pair(_0x4c7d12,_0x4ac05d+0x2);}_0x4c7d12[_0x4ac05d]==_0x401217&&(_0x33ce1e=this['putAction'](pair(_0x4c7d12,_0x4ac05d+0x1),_0x401217,_0x36fd92,_0x33ce1e));}return _0x33ce1e;}}class Parse{constructor(_0x20e66d,_0x41ba24,_0x53b561,_0x2a4174){this['parser']=_0x20e66d,this['input']=_0x41ba24,this['ranges']=_0x2a4174,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(_0x41ba24,_0x2a4174),this['tokens']=new TokenCache(_0x20e66d,this['stream']),this['topTerm']=_0x20e66d['top'][0x1];let {from:_0x6bcbdf}=_0x2a4174[0x0];this['stacks']=[Stack['start'](this,_0x20e66d['top'][0x0],_0x6bcbdf)],this['fragments']=_0x53b561['length']&&this['stream']['end']-_0x6bcbdf>0x4*_0x20e66d['bufferLength']?new FragmentCursor$1(_0x53b561,_0x20e66d['nodeSet']):null;}get['parsedPos'](){return this['minStackPos'];}['advance'](){let _0x3f7959,_0x82cad2,_0x1cd8c3=this['stacks'],_0x2c55d8=this['minStackPos'],_0x21e9dd=this['stacks']=[];if(this['bigReductionCount']>0x12c&&0x1==_0x1cd8c3['length']){let [_0x599712]=_0x1cd8c3;for(;_0x599712['forceReduce']()&&_0x599712['stack']['length']&&_0x599712['stack'][_0x599712['stack']['length']-0x2]>=this['lastBigReductionStart'];);this['bigReductionCount']=this['lastBigReductionSize']=0x0;}for(let _0x49762c=0x0;_0x49762c<_0x1cd8c3['length'];_0x49762c++){let _0x46ef52=_0x1cd8c3[_0x49762c];for(;;){if(this['tokens']['mainToken']=null,_0x46ef52['pos']>_0x2c55d8)_0x21e9dd['push'](_0x46ef52);else{if(this['advanceStack'](_0x46ef52,_0x21e9dd,_0x1cd8c3))continue;{_0x3f7959||(_0x3f7959=[],_0x82cad2=[]),_0x3f7959['push'](_0x46ef52);let _0x3cd885=this['tokens']['getMainToken'](_0x46ef52);_0x82cad2['push'](_0x3cd885['value'],_0x3cd885['end']);}}break;}}if(!_0x21e9dd['length']){let _0x4613ab=_0x3f7959&&findFinished(_0x3f7959);if(_0x4613ab)return verbose&&console['log']('Finish\x20with\x20'+this['stackID'](_0x4613ab)),this['stackToTree'](_0x4613ab);if(this['parser']['strict'])throw verbose&&_0x3f7959&&console['log']('Stuck\x20with\x20token\x20'+(this['tokens']['mainToken']?this['parser']['getName'](this['tokens']['mainToken']['value']):'none')),new SyntaxError('No\x20parse\x20at\x20'+_0x2c55d8);this['recovering']||(this['recovering']=0x5);}if(this['recovering']&&_0x3f7959){let _0x1d4b95=null!=this['stoppedAt']&&_0x3f7959[0x0]['pos']>this['stoppedAt']?_0x3f7959[0x0]:this['runRecovery'](_0x3f7959,_0x82cad2,_0x21e9dd);if(_0x1d4b95)return verbose&&console['log']('Force-finish\x20'+this['stackID'](_0x1d4b95)),this['stackToTree'](_0x1d4b95['forceAll']());}if(this['recovering']){let _0x280738=0x1==this['recovering']?0x1:0x3*this['recovering'];if(_0x21e9dd['length']>_0x280738){for(_0x21e9dd['sort']((_0x45fc2b,_0x18faf4)=>_0x18faf4['score']-_0x45fc2b['score']);_0x21e9dd['length']>_0x280738;)_0x21e9dd['pop']();}_0x21e9dd['some'](_0x2ffb26=>_0x2ffb26['reducePos']>_0x2c55d8)&&this['recovering']--;}else{if(_0x21e9dd['length']>0x1){t:for(let _0x5008dc=0x0;_0x5008dc<_0x21e9dd['length']-0x1;_0x5008dc++){let _0x4bcc96=_0x21e9dd[_0x5008dc];for(let _0x511211=_0x5008dc+0x1;_0x511211<_0x21e9dd['length'];_0x511211++){let _0xaa7fb=_0x21e9dd[_0x511211];if(_0x4bcc96['sameState'](_0xaa7fb)||_0x4bcc96['buffer']['length']>0x1f4&&_0xaa7fb['buffer']['length']>0x1f4){if(!((_0x4bcc96['score']-_0xaa7fb['score']||_0x4bcc96['buffer']['length']-_0xaa7fb['buffer']['length'])>0x0)){_0x21e9dd['splice'](_0x5008dc--,0x1);continue t;}_0x21e9dd['splice'](_0x511211--,0x1);}}}_0x21e9dd['length']>0xc&&_0x21e9dd['splice'](0xc,_0x21e9dd['length']-0xc);}}this['minStackPos']=_0x21e9dd[0x0]['pos'];for(let _0x2e824b=0x1;_0x2e824b<_0x21e9dd['length'];_0x2e824b++)_0x21e9dd[_0x2e824b]['pos']<this['minStackPos']&&(this['minStackPos']=_0x21e9dd[_0x2e824b]['pos']);return null;}['stopAt'](_0x39ac77){if(null!=this['stoppedAt']&&this['stoppedAt']<_0x39ac77)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0x39ac77;}['advanceStack'](_0x1fc951,_0x3d6038,_0x250e71){let _0x5691ed=_0x1fc951['pos'],{parser:_0x9e0485}=this,_0x5bcd48=verbose?this['stackID'](_0x1fc951)+'\x20->\x20':'';if(null!=this['stoppedAt']&&_0x5691ed>this['stoppedAt'])return _0x1fc951['forceReduce']()?_0x1fc951:null;if(this['fragments']){let _0x658fde=_0x1fc951['curContext']&&_0x1fc951['curContext']['tracker']['strict'],_0x322c54=_0x658fde?_0x1fc951['curContext']['hash']:0x0;for(let _0x576e97=this['fragments']['nodeAt'](_0x5691ed);_0x576e97;){let _0x13196a=this['parser']['nodeSet']['types'][_0x576e97['type']['id']]==_0x576e97['type']?_0x9e0485['getGoto'](_0x1fc951['state'],_0x576e97['type']['id']):-0x1;if(_0x13196a>-0x1&&_0x576e97['length']&&(!_0x658fde||(_0x576e97['prop'](NodeProp['contextHash'])||0x0)==_0x322c54))return _0x1fc951['useNode'](_0x576e97,_0x13196a),verbose&&console['log'](_0x5bcd48+this['stackID'](_0x1fc951)+('\x20(via\x20reuse\x20of\x20'+_0x9e0485['getName'](_0x576e97['type']['id'])+')')),!0x0;if(!(_0x576e97 instanceof Tree)||0x0==_0x576e97['children']['length']||_0x576e97['positions'][0x0]>0x0)break;let _0x2fae10=_0x576e97['children'][0x0];if(!(_0x2fae10 instanceof Tree&&0x0==_0x576e97['positions'][0x0]))break;_0x576e97=_0x2fae10;}}let _0x1842d5=_0x9e0485['stateSlot'](_0x1fc951['state'],0x4);if(_0x1842d5>0x0)return _0x1fc951['reduce'](_0x1842d5),verbose&&console['log'](_0x5bcd48+this['stackID'](_0x1fc951)+('\x20(via\x20always-reduce\x20'+_0x9e0485['getName'](0xffff&_0x1842d5)+')')),!0x0;if(_0x1fc951['stack']['length']>=0x20d0){for(;_0x1fc951['stack']['length']>0x1770&&_0x1fc951['forceReduce'](););}let _0x43d829=this['tokens']['getActions'](_0x1fc951);for(let _0x40fb09=0x0;_0x40fb09<_0x43d829['length'];){let _0x3fd19c=_0x43d829[_0x40fb09++],_0x47b958=_0x43d829[_0x40fb09++],_0x35da3b=_0x43d829[_0x40fb09++],_0x41303d=_0x40fb09==_0x43d829['length']||!_0x250e71,_0x523d94=_0x41303d?_0x1fc951:_0x1fc951['split'](),_0x221fcd=this['tokens']['mainToken'];if(_0x523d94['apply'](_0x3fd19c,_0x47b958,_0x221fcd?_0x221fcd['start']:_0x523d94['pos'],_0x35da3b),verbose&&console['log'](_0x5bcd48+this['stackID'](_0x523d94)+('\x20(via\x20'+(0x10000&_0x3fd19c?'reduce\x20of\x20'+_0x9e0485['getName'](0xffff&_0x3fd19c):'shift')+'\x20for\x20'+_0x9e0485['getName'](_0x47b958)+'\x20@\x20'+_0x5691ed+(_0x523d94==_0x1fc951?'':',\x20split')+')')),_0x41303d)return!0x0;_0x523d94['pos']>_0x5691ed?_0x3d6038['push'](_0x523d94):_0x250e71['push'](_0x523d94);}return!0x1;}['advanceFully'](_0x5e46f5,_0xebc32a){let _0x7fde74=_0x5e46f5['pos'];for(;;){if(!this['advanceStack'](_0x5e46f5,null,null))return!0x1;if(_0x5e46f5['pos']>_0x7fde74)return pushStackDedup(_0x5e46f5,_0xebc32a),!0x0;}}['runRecovery'](_0x27a920,_0x1105fd,_0x391dc8){let _0x2e5aab=null,_0x3d70b9=!0x1;for(let _0xe24151=0x0;_0xe24151<_0x27a920['length'];_0xe24151++){let _0x1948c0=_0x27a920[_0xe24151],_0x5b99a6=_0x1105fd[_0xe24151<<0x1],_0x3926cf=_0x1105fd[0x1+(_0xe24151<<0x1)],_0x2b0ede=verbose?this['stackID'](_0x1948c0)+'\x20->\x20':'';if(_0x1948c0['deadEnd']){if(_0x3d70b9)continue;if(_0x3d70b9=!0x0,_0x1948c0['restart'](),verbose&&console['log'](_0x2b0ede+this['stackID'](_0x1948c0)+'\x20(restarted)'),this['advanceFully'](_0x1948c0,_0x391dc8))continue;}let _0x5f1b24=_0x1948c0['split'](),_0x3ba7f5=_0x2b0ede;for(let _0x2a0e5e=0x0;_0x2a0e5e<0xa&&_0x5f1b24['forceReduce']();_0x2a0e5e++){if(verbose&&console['log'](_0x3ba7f5+this['stackID'](_0x5f1b24)+'\x20(via\x20force-reduce)'),this['advanceFully'](_0x5f1b24,_0x391dc8))break;verbose&&(_0x3ba7f5=this['stackID'](_0x5f1b24)+'\x20->\x20');}for(let _0x54c0c0 of _0x1948c0['recoverByInsert'](_0x5b99a6))verbose&&console['log'](_0x2b0ede+this['stackID'](_0x54c0c0)+'\x20(via\x20recover-insert)'),this['advanceFully'](_0x54c0c0,_0x391dc8);this['stream']['end']>_0x1948c0['pos']?(_0x3926cf==_0x1948c0['pos']&&(_0x3926cf++,_0x5b99a6=0x0),_0x1948c0['recoverByDelete'](_0x5b99a6,_0x3926cf),verbose&&console['log'](_0x2b0ede+this['stackID'](_0x1948c0)+('\x20(via\x20recover-delete\x20'+this['parser']['getName'](_0x5b99a6)+')')),pushStackDedup(_0x1948c0,_0x391dc8)):(!_0x2e5aab||_0x2e5aab['score']<_0x1948c0['score'])&&(_0x2e5aab=_0x1948c0);}return _0x2e5aab;}['stackToTree'](_0x361f95){return _0x361f95['close'](),Tree['build']({'buffer':StackBufferCursor['create'](_0x361f95),'nodeSet':this['parser']['nodeSet'],'topID':this['topTerm'],'maxBufferLength':this['parser']['bufferLength'],'reused':this['reused'],'start':this['ranges'][0x0]['from'],'length':_0x361f95['pos']-this['ranges'][0x0]['from'],'minRepeatType':this['parser']['minRepeatTerm']});}['stackID'](_0x1d906a){let _0x3320b9=(stackIDs||(stackIDs=new WeakMap()))['get'](_0x1d906a);return _0x3320b9||stackIDs['set'](_0x1d906a,_0x3320b9=String['fromCodePoint'](this['nextStackID']++)),_0x3320b9+_0x1d906a;}}function pushStackDedup(_0x3d5c69,_0x4d17e6){for(let _0x343eac=0x0;_0x343eac<_0x4d17e6['length'];_0x343eac++){let _0x42f1fe=_0x4d17e6[_0x343eac];if(_0x42f1fe['pos']==_0x3d5c69['pos']&&_0x42f1fe['sameState'](_0x3d5c69))return void(_0x4d17e6[_0x343eac]['score']<_0x3d5c69['score']&&(_0x4d17e6[_0x343eac]=_0x3d5c69));}_0x4d17e6['push'](_0x3d5c69);}class Dialect{constructor(_0x456c56,_0x266cbf,_0x9d8a8a){this['source']=_0x456c56,this['flags']=_0x266cbf,this['disabled']=_0x9d8a8a;}['allows'](_0x38e05d){return!this['disabled']||0x0==this['disabled'][_0x38e05d];}}const id=_0x674dac=>_0x674dac;class ContextTracker{constructor(_0x21b02b){this['start']=_0x21b02b['start'],this['shift']=_0x21b02b['shift']||id,this['reduce']=_0x21b02b['reduce']||id,this['reuse']=_0x21b02b['reuse']||id,this['hash']=_0x21b02b['hash']||(()=>0x0),this['strict']=!0x1!==_0x21b02b['strict'];}}class LRParser extends Parser{constructor(_0x589fd3){if(super(),this['wrappers']=[],0xe!=_0x589fd3['version'])throw new RangeError('Parser\x20version\x20('+_0x589fd3['version']+')\x20doesn\x27t\x20match\x20runtime\x20version\x20(14)');let _0x519047=_0x589fd3['nodeNames']['split']('\x20');this['minRepeatTerm']=_0x519047['length'];for(let _0x5938a7=0x0;_0x5938a7<_0x589fd3['repeatNodeCount'];_0x5938a7++)_0x519047['push']('');let _0x3b96df=Object['keys'](_0x589fd3['topRules'])['map'](_0x49310a=>_0x589fd3['topRules'][_0x49310a][0x1]),_0x5dfd5d=[];for(let _0x4e57db=0x0;_0x4e57db<_0x519047['length'];_0x4e57db++)_0x5dfd5d['push']([]);function _0x4a61e8(_0x5b5ead,_0x19e091,_0x23cd20){_0x5dfd5d[_0x5b5ead]['push']([_0x19e091,_0x19e091['deserialize'](String(_0x23cd20))]);}if(_0x589fd3['nodeProps'])for(let _0x80378c of _0x589fd3['nodeProps']){let _0x287849=_0x80378c[0x0];'string'==typeof _0x287849&&(_0x287849=NodeProp[_0x287849]);for(let _0x2b13cd=0x1;_0x2b13cd<_0x80378c['length'];){let _0x48c4b1=_0x80378c[_0x2b13cd++];if(_0x48c4b1>=0x0)_0x4a61e8(_0x48c4b1,_0x287849,_0x80378c[_0x2b13cd++]);else{let _0x1fa377=_0x80378c[_0x2b13cd+-_0x48c4b1];for(let _0x2e25d9=-_0x48c4b1;_0x2e25d9>0x0;_0x2e25d9--)_0x4a61e8(_0x80378c[_0x2b13cd++],_0x287849,_0x1fa377);_0x2b13cd++;}}}this['nodeSet']=new NodeSet(_0x519047['map']((_0x151087,_0x345fbb)=>NodeType['define']({'name':_0x345fbb>=this['minRepeatTerm']?void 0x0:_0x151087,'id':_0x345fbb,'props':_0x5dfd5d[_0x345fbb],'top':_0x3b96df['indexOf'](_0x345fbb)>-0x1,'error':0x0==_0x345fbb,'skipped':_0x589fd3['skippedNodes']&&_0x589fd3['skippedNodes']['indexOf'](_0x345fbb)>-0x1}))),_0x589fd3['propSources']&&(this['nodeSet']=this['nodeSet']['extend'](..._0x589fd3['propSources'])),this['strict']=!0x1,this['bufferLength']=DefaultBufferLength;let _0x446de0=decodeArray(_0x589fd3['tokenData']);this['context']=_0x589fd3['context'],this['specializerSpecs']=_0x589fd3['specialized']||[],this['specialized']=new Uint16Array(this['specializerSpecs']['length']);for(let _0x4485c6=0x0;_0x4485c6<this['specializerSpecs']['length'];_0x4485c6++)this['specialized'][_0x4485c6]=this['specializerSpecs'][_0x4485c6]['term'];this['specializers']=this['specializerSpecs']['map'](getSpecializer),this['states']=decodeArray(_0x589fd3['states'],Uint32Array),this['data']=decodeArray(_0x589fd3['stateData']),this['goto']=decodeArray(_0x589fd3['goto']),this['maxTerm']=_0x589fd3['maxTerm'],this['tokenizers']=_0x589fd3['tokenizers']['map'](_0x3633ef=>'number'==typeof _0x3633ef?new TokenGroup(_0x446de0,_0x3633ef):_0x3633ef),this['topRules']=_0x589fd3['topRules'],this['dialects']=_0x589fd3['dialects']||{},this['dynamicPrecedences']=_0x589fd3['dynamicPrecedences']||null,this['tokenPrecTable']=_0x589fd3['tokenPrec'],this['termNames']=_0x589fd3['termNames']||null,this['maxNode']=this['nodeSet']['types']['length']-0x1,this['dialect']=this['parseDialect'](),this['top']=this['topRules'][Object['keys'](this['topRules'])[0x0]];}['createParse'](_0x4b618b,_0x469eec,_0x2686b9){let _0x163969=new Parse(this,_0x4b618b,_0x469eec,_0x2686b9);for(let _0x14d6a4 of this['wrappers'])_0x163969=_0x14d6a4(_0x163969,_0x4b618b,_0x469eec,_0x2686b9);return _0x163969;}['getGoto'](_0x4a3b0d,_0xa03f07,_0x9c11d7=!0x1){let _0x342db9=this['goto'];if(_0xa03f07>=_0x342db9[0x0])return-0x1;for(let _0x5d4c2b=_0x342db9[_0xa03f07+0x1];;){let _0x4a5493=_0x342db9[_0x5d4c2b++],_0x5ec031=0x1&_0x4a5493,_0x26b885=_0x342db9[_0x5d4c2b++];if(_0x5ec031&&_0x9c11d7)return _0x26b885;for(let _0x1a4e9a=_0x5d4c2b+(_0x4a5493>>0x1);_0x5d4c2b<_0x1a4e9a;_0x5d4c2b++)if(_0x342db9[_0x5d4c2b]==_0x4a3b0d)return _0x26b885;if(_0x5ec031)return-0x1;}}['hasAction'](_0x42b2f4,_0x427e0c){let _0x3934ca=this['data'];for(let _0x16db3f=0x0;_0x16db3f<0x2;_0x16db3f++)for(let _0x30352d,_0x59078c=this['stateSlot'](_0x42b2f4,_0x16db3f?0x2:0x1);;_0x59078c+=0x3){if(0xffff==(_0x30352d=_0x3934ca[_0x59078c])){if(0x1!=_0x3934ca[_0x59078c+0x1]){if(0x2==_0x3934ca[_0x59078c+0x1])return pair(_0x3934ca,_0x59078c+0x2);break;}_0x30352d=_0x3934ca[_0x59078c=pair(_0x3934ca,_0x59078c+0x2)];}if(_0x30352d==_0x427e0c||0x0==_0x30352d)return pair(_0x3934ca,_0x59078c+0x1);}return 0x0;}['stateSlot'](_0x5f2f67,_0x170a4a){return this['states'][0x6*_0x5f2f67+_0x170a4a];}['stateFlag'](_0x1455f6,_0x1e358f){return(this['stateSlot'](_0x1455f6,0x0)&_0x1e358f)>0x0;}['validAction'](_0x493bf6,_0xb4cd14){return!!this['allActions'](_0x493bf6,_0x299970=>_0x299970==_0xb4cd14||null);}['allActions'](_0x20ed20,_0x379707){let _0x29d832=this['stateSlot'](_0x20ed20,0x4),_0x1f68af=_0x29d832?_0x379707(_0x29d832):void 0x0;for(let _0x1c4db5=this['stateSlot'](_0x20ed20,0x1);null==_0x1f68af;_0x1c4db5+=0x3){if(0xffff==this['data'][_0x1c4db5]){if(0x1!=this['data'][_0x1c4db5+0x1])break;_0x1c4db5=pair(this['data'],_0x1c4db5+0x2);}_0x1f68af=_0x379707(pair(this['data'],_0x1c4db5+0x1));}return _0x1f68af;}['nextStates'](_0x519fe9){let _0x295340=[];for(let _0x1e49bb=this['stateSlot'](_0x519fe9,0x1);;_0x1e49bb+=0x3){if(0xffff==this['data'][_0x1e49bb]){if(0x1!=this['data'][_0x1e49bb+0x1])break;_0x1e49bb=pair(this['data'],_0x1e49bb+0x2);}if(!(0x1&this['data'][_0x1e49bb+0x2])){let _0xcb53b8=this['data'][_0x1e49bb+0x1];_0x295340['some']((_0x1f842b,_0x1cb030)=>0x1&_0x1cb030&&_0x1f842b==_0xcb53b8)||_0x295340['push'](this['data'][_0x1e49bb],_0xcb53b8);}}return _0x295340;}['configure'](_0x4cf399){let _0x5ae169=Object['assign'](Object['create'](LRParser['prototype']),this);if(_0x4cf399['props']&&(_0x5ae169['nodeSet']=this['nodeSet']['extend'](..._0x4cf399['props'])),_0x4cf399['top']){let _0x9fcc4f=this['topRules'][_0x4cf399['top']];if(!_0x9fcc4f)throw new RangeError('Invalid\x20top\x20rule\x20name\x20'+_0x4cf399['top']);_0x5ae169['top']=_0x9fcc4f;}return _0x4cf399['tokenizers']&&(_0x5ae169['tokenizers']=this['tokenizers']['map'](t=>{let _0x4340d3=_0x4cf399['tokenizers']['find'](_0x23e771=>_0x23e771['from']==t);return _0x4340d3?_0x4340d3['to']:t;})),_0x4cf399['specializers']&&(_0x5ae169['specializers']=this['specializers']['slice'](),_0x5ae169['specializerSpecs']=this['specializerSpecs']['map']((_0x47ba81,_0x2f930b)=>{let _0x3fce42=_0x4cf399['specializers']['find'](_0x496b1e=>_0x496b1e['from']==_0x47ba81['external']);if(!_0x3fce42)return _0x47ba81;let _0x40aa8b=Object['assign'](Object['assign']({},_0x47ba81),{'external':_0x3fce42['to']});return _0x5ae169['specializers'][_0x2f930b]=getSpecializer(_0x40aa8b),_0x40aa8b;})),_0x4cf399['contextTracker']&&(_0x5ae169['context']=_0x4cf399['contextTracker']),_0x4cf399['dialect']&&(_0x5ae169['dialect']=this['parseDialect'](_0x4cf399['dialect'])),null!=_0x4cf399['strict']&&(_0x5ae169['strict']=_0x4cf399['strict']),_0x4cf399['wrap']&&(_0x5ae169['wrappers']=_0x5ae169['wrappers']['concat'](_0x4cf399['wrap'])),null!=_0x4cf399['bufferLength']&&(_0x5ae169['bufferLength']=_0x4cf399['bufferLength']),_0x5ae169;}['hasWrappers'](){return this['wrappers']['length']>0x0;}['getName'](_0x1e5211){return this['termNames']?this['termNames'][_0x1e5211]:String(_0x1e5211<=this['maxNode']&&this['nodeSet']['types'][_0x1e5211]['name']||_0x1e5211);}get['eofTerm'](){return this['maxNode']+0x1;}get['topNode'](){return this['nodeSet']['types'][this['top'][0x1]];}['dynamicPrecedence'](_0x7c8934){let _0x43ffdf=this['dynamicPrecedences'];return null==_0x43ffdf?0x0:_0x43ffdf[_0x7c8934]||0x0;}['parseDialect'](_0x47a634){let _0x2e2a29=Object['keys'](this['dialects']),_0x271c68=_0x2e2a29['map'](()=>!0x1);if(_0x47a634)for(let _0x17ef76 of _0x47a634['split']('\x20')){let _0x1d4c24=_0x2e2a29['indexOf'](_0x17ef76);_0x1d4c24>=0x0&&(_0x271c68[_0x1d4c24]=!0x0);}let _0x5f5745=null;for(let _0x42bef0=0x0;_0x42bef0<_0x2e2a29['length'];_0x42bef0++)if(!_0x271c68[_0x42bef0]){for(let _0x25692c,_0x3e0120=this['dialects'][_0x2e2a29[_0x42bef0]];0xffff!=(_0x25692c=this['data'][_0x3e0120++]);)(_0x5f5745||(_0x5f5745=new Uint8Array(this['maxTerm']+0x1)))[_0x25692c]=0x1;}return new Dialect(_0x47a634,_0x271c68,_0x5f5745);}static['deserialize'](_0x5be5ce){return new LRParser(_0x5be5ce);}}function pair(_0x2e7d10,_0x4a998b){return _0x2e7d10[_0x4a998b]|_0x2e7d10[_0x4a998b+0x1]<<0x10;}function findFinished(_0x2ae673){let _0x4a3847=null;for(let _0x2a8a81 of _0x2ae673){let _0x571273=_0x2a8a81['p']['stoppedAt'];(_0x2a8a81['pos']==_0x2a8a81['p']['stream']['end']||null!=_0x571273&&_0x2a8a81['pos']>_0x571273)&&_0x2a8a81['p']['parser']['stateFlag'](_0x2a8a81['state'],0x2)&&(!_0x4a3847||_0x4a3847['score']<_0x2a8a81['score'])&&(_0x4a3847=_0x2a8a81);}return _0x4a3847;}function getSpecializer(_0x5a1282){if(_0x5a1282['external']){let _0x36fbdc=_0x5a1282['extend']?0x1:0x0;return(_0x5b85b6,_0x497d15)=>_0x5a1282['external'](_0x5b85b6,_0x497d15)<<0x1|_0x36fbdc;}return _0x5a1282['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(_0x1eaab6){return 0x2d==_0x1eaab6||0x2e==_0x1eaab6||0x3a==_0x1eaab6||_0x1eaab6>=0x41&&_0x1eaab6<=0x5a||0x5f==_0x1eaab6||_0x1eaab6>=0x61&&_0x1eaab6<=0x7a||_0x1eaab6>=0xa1;}let cachedName=null,cachedInput=null,cachedPos=0x0;function tagNameAfter(_0x247a22,_0x185ff6){let _0x345972=_0x247a22['pos']+_0x185ff6;if(cachedPos==_0x345972&&cachedInput==_0x247a22)return cachedName;let _0x376e2b=_0x247a22['peek'](_0x185ff6),_0x4bfe8c='';for(;nameChar(_0x376e2b);)_0x4bfe8c+=String['fromCharCode'](_0x376e2b),_0x376e2b=_0x247a22['peek'](++_0x185ff6);return cachedInput=_0x247a22,cachedPos=_0x345972,cachedName=_0x4bfe8c?_0x4bfe8c['toLowerCase']():_0x376e2b==question$1||_0x376e2b==bang?void 0x0:null;}const lessThan=0x3c,greaterThan=0x3e,slash$1=0x2f,question$1=0x3f,bang=0x21,dash$1=0x2d;function ElementContext(_0x2c197e,_0x1a93e1){this['name']=_0x2c197e,this['parent']=_0x1a93e1;}const startTagTerms=[StartTag,StartSelfClosingTag,StartScriptTag,StartStyleTag,StartTextareaTag],elementContext=new ContextTracker({'start':null,'shift':(_0x920e43,_0x1bc3d2,_0x280997,_0x585e52)=>startTagTerms['indexOf'](_0x1bc3d2)>-0x1?new ElementContext(tagNameAfter(_0x585e52,0x1)||'',_0x920e43):_0x920e43,'reduce':(_0x21ade8,_0x549726)=>_0x549726==Element$2&&_0x21ade8?_0x21ade8['parent']:_0x21ade8,'reuse'(_0x4397d3,_0x374caf,_0x283306,_0x493ca5){let _0xe44eb8=_0x374caf['type']['id'];return _0xe44eb8==StartTag||_0xe44eb8==OpenTag?new ElementContext(tagNameAfter(_0x493ca5,0x1)||'',_0x4397d3):_0x4397d3;},'strict':!0x1}),tagStart=new ExternalTokenizer((_0x2f21be,_0x4ef8ec)=>{if(_0x2f21be['next']!=lessThan)return void(_0x2f21be['next']<0x0&&_0x4ef8ec['context']&&_0x2f21be['acceptToken'](missingCloseTag));_0x2f21be['advance']();let _0x34304b=_0x2f21be['next']==slash$1;_0x34304b&&_0x2f21be['advance']();let _0x2abb3f=tagNameAfter(_0x2f21be,0x0);if(void 0x0===_0x2abb3f)return;if(!_0x2abb3f)return _0x2f21be['acceptToken'](_0x34304b?IncompleteCloseTag:IncompleteTag);let _0x1341cc=_0x4ef8ec['context']?_0x4ef8ec['context']['name']:null;if(_0x34304b){if(_0x2abb3f==_0x1341cc)return _0x2f21be['acceptToken'](StartCloseTag);if(_0x1341cc&&implicitlyClosed[_0x1341cc])return _0x2f21be['acceptToken'](missingCloseTag,-0x2);if(_0x4ef8ec['dialectEnabled'](Dialect_noMatch))return _0x2f21be['acceptToken'](NoMatchStartCloseTag);for(let _0x566420=_0x4ef8ec['context'];_0x566420;_0x566420=_0x566420['parent'])if(_0x566420['name']==_0x2abb3f)return;_0x2f21be['acceptToken'](MismatchedStartCloseTag);}else{if('script'==_0x2abb3f)return _0x2f21be['acceptToken'](StartScriptTag);if('style'==_0x2abb3f)return _0x2f21be['acceptToken'](StartStyleTag);if('textarea'==_0x2abb3f)return _0x2f21be['acceptToken'](StartTextareaTag);if(selfClosers$1['hasOwnProperty'](_0x2abb3f))return _0x2f21be['acceptToken'](StartSelfClosingTag);_0x1341cc&&closeOnOpen[_0x1341cc]&&closeOnOpen[_0x1341cc][_0x2abb3f]?_0x2f21be['acceptToken'](missingCloseTag,-0x1):_0x2f21be['acceptToken'](StartTag);}},{'contextual':!0x0}),commentContent=new ExternalTokenizer(_0x166a89=>{for(let _0xcd6868=0x0,_0x2c118d=0x0;;_0x2c118d++){if(_0x166a89['next']<0x0){_0x2c118d&&_0x166a89['acceptToken'](commentContent$1);break;}if(_0x166a89['next']==dash$1)_0xcd6868++;else{if(_0x166a89['next']==greaterThan&&_0xcd6868>=0x2){_0x2c118d>=0x3&&_0x166a89['acceptToken'](commentContent$1,-0x2);break;}_0xcd6868=0x0;}_0x166a89['advance']();}});function inForeignElement(_0x4eec55){for(;_0x4eec55;_0x4eec55=_0x4eec55['parent'])if('svg'==_0x4eec55['name']||'math'==_0x4eec55['name'])return!0x0;return!0x1;}const endTag=new ExternalTokenizer((_0x1ec7c2,_0xec19ce)=>{if(_0x1ec7c2['next']==slash$1&&_0x1ec7c2['peek'](0x1)==greaterThan){let _0x3bffdd=_0xec19ce['dialectEnabled'](Dialect_selfClosing)||inForeignElement(_0xec19ce['context']);_0x1ec7c2['acceptToken'](_0x3bffdd?SelfClosingEndTag:EndTag,0x2);}else _0x1ec7c2['next']==greaterThan&&_0x1ec7c2['acceptToken'](EndTag,0x1);});function contentTokenizer(_0x145c05,_0x5722c3,_0x2dfe15){let _0x2d71b4=0x2+_0x145c05['length'];return new ExternalTokenizer(_0x253ae8=>{for(let _0x1d94f9=0x0,_0x1a5871=0x0,_0x242318=0x0;;_0x242318++){if(_0x253ae8['next']<0x0){_0x242318&&_0x253ae8['acceptToken'](_0x5722c3);break;}if(0x0==_0x1d94f9&&_0x253ae8['next']==lessThan||0x1==_0x1d94f9&&_0x253ae8['next']==slash$1||_0x1d94f9>=0x2&&_0x1d94f9<_0x2d71b4&&_0x253ae8['next']==_0x145c05['charCodeAt'](_0x1d94f9-0x2))_0x1d94f9++,_0x1a5871++;else{if(_0x1d94f9==_0x2d71b4&&_0x253ae8['next']==greaterThan){_0x242318>_0x1a5871?_0x253ae8['acceptToken'](_0x5722c3,-_0x1a5871):_0x253ae8['acceptToken'](_0x2dfe15,-(_0x1a5871-0x2));break;}if((0xa==_0x253ae8['next']||0xd==_0x253ae8['next'])&&_0x242318){_0x253ae8['acceptToken'](_0x5722c3,0x1);break;}_0x1d94f9=_0x1a5871=0x0;}_0x253ae8['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(_0x2955bc,_0x26ed9d){let _0x585a2d=Object['create'](null);for(let _0xb4c2a1 of _0x2955bc['getChildren'](Attribute)){let _0x3b1719=_0xb4c2a1['getChild'](AttributeName),_0x3a7997=_0xb4c2a1['getChild'](AttributeValue)||_0xb4c2a1['getChild'](UnquotedAttributeValue);_0x3b1719&&(_0x585a2d[_0x26ed9d['read'](_0x3b1719['from'],_0x3b1719['to'])]=_0x3a7997?_0x3a7997['type']['id']==AttributeValue?_0x26ed9d['read'](_0x3a7997['from']+0x1,_0x3a7997['to']-0x1):_0x26ed9d['read'](_0x3a7997['from'],_0x3a7997['to']):'');}return _0x585a2d;}function findTagName(_0x27a3f6,_0x484da6){let _0x2d5276=_0x27a3f6['getChild'](TagName);return _0x2d5276?_0x484da6['read'](_0x2d5276['from'],_0x2d5276['to']):'\x20';}function maybeNest(_0x45c4b7,_0x7d7e2f,_0x3d5b86){let _0x48d765;for(let _0x1b9dc3 of _0x3d5b86)if(!_0x1b9dc3['attrs']||_0x1b9dc3['attrs'](_0x48d765||(_0x48d765=getAttrs(_0x45c4b7['node']['parent']['firstChild'],_0x7d7e2f))))return{'parser':_0x1b9dc3['parser']};return null;}function configureNesting(_0x333f74=[],_0x946731=[]){let _0x4fa49e=[],_0x1b9560=[],_0xaf92b=[],_0x146c29=[];for(let _0x385b10 of _0x333f74){('script'==_0x385b10['tag']?_0x4fa49e:'style'==_0x385b10['tag']?_0x1b9560:'textarea'==_0x385b10['tag']?_0xaf92b:_0x146c29)['push'](_0x385b10);}let _0x4d6068=_0x946731['length']?Object['create'](null):null;for(let _0x1e0a5e of _0x946731)(_0x4d6068[_0x1e0a5e['name']]||(_0x4d6068[_0x1e0a5e['name']]=[]))['push'](_0x1e0a5e);return parseMixed((_0x774443,_0x428470)=>{let _0x29dfc8=_0x774443['type']['id'];if(_0x29dfc8==ScriptText)return maybeNest(_0x774443,_0x428470,_0x4fa49e);if(_0x29dfc8==StyleText)return maybeNest(_0x774443,_0x428470,_0x1b9560);if(_0x29dfc8==TextareaText)return maybeNest(_0x774443,_0x428470,_0xaf92b);if(_0x29dfc8==Element$2&&_0x146c29['length']){let _0x44bd0a,_0x22a438=_0x774443['node'],_0x40c24b=_0x22a438['firstChild'],_0xb6aaca=_0x40c24b&&findTagName(_0x40c24b,_0x428470);if(_0xb6aaca){for(let _0x20712f of _0x146c29)if(_0x20712f['tag']==_0xb6aaca&&(!_0x20712f['attrs']||_0x20712f['attrs'](_0x44bd0a||(_0x44bd0a=getAttrs(_0x40c24b,_0x428470))))){let _0x159e70=_0x22a438['lastChild'],_0x395f32=_0x159e70['type']['id']==CloseTag?_0x159e70['from']:_0x22a438['to'];if(_0x395f32>_0x40c24b['to'])return{'parser':_0x20712f['parser'],'overlay':[{'from':_0x40c24b['to'],'to':_0x395f32}]};}}}if(_0x4d6068&&_0x29dfc8==Attribute){let _0x31f569,_0x377e39=_0x774443['node'];if(_0x31f569=_0x377e39['firstChild']){let _0x56047e=_0x4d6068[_0x428470['read'](_0x31f569['from'],_0x31f569['to'])];if(_0x56047e)for(let _0xd346b2 of _0x56047e){if(_0xd346b2['tagName']&&_0xd346b2['tagName']!=findTagName(_0x377e39['parent'],_0x428470))continue;let _0x18587f=_0x377e39['lastChild'];if(_0x18587f['type']['id']==AttributeValue){let _0x54c1d1=_0x18587f['from']+0x1,_0x46061b=_0x18587f['lastChild'],_0x1e33ee=_0x18587f['to']-(_0x46061b&&_0x46061b['isError']?0x0:0x1);if(_0x1e33ee>_0x54c1d1)return{'parser':_0xd346b2['parser'],'overlay':[{'from':_0x54c1d1,'to':_0x1e33ee}]};}else{if(_0x18587f['type']['id']==UnquotedAttributeValue)return{'parser':_0xd346b2['parser'],'overlay':[{'from':_0x18587f['from'],'to':_0x18587f['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(_0x48daf7){return _0x48daf7>=0x41&&_0x48daf7<=0x5a||_0x48daf7>=0x61&&_0x48daf7<=0x7a||_0x48daf7>=0xa1;}function isDigit(_0x27da6a){return _0x27da6a>=0x30&&_0x27da6a<=0x39;}function isHex(_0x10b150){return isDigit(_0x10b150)||_0x10b150>=0x61&&_0x10b150<=0x66||_0x10b150>=0x41&&_0x10b150<=0x46;}const identifierTokens=(_0x2e9b93,_0x4f3abf,_0x8e42e9)=>(_0x53e2e7,_0x5259dd)=>{for(let _0x3892fc=!0x1,_0x508464=0x0,_0x5b4fb5=0x0;;_0x5b4fb5++){let {next:_0x2cdc7a}=_0x53e2e7;if(isAlpha(_0x2cdc7a)||_0x2cdc7a==dash||_0x2cdc7a==underscore||_0x3892fc&&isDigit(_0x2cdc7a))!_0x3892fc&&(_0x2cdc7a!=dash||_0x5b4fb5>0x0)&&(_0x3892fc=!0x0),_0x508464===_0x5b4fb5&&_0x2cdc7a==dash&&_0x508464++,_0x53e2e7['advance']();else{if(_0x2cdc7a!=backslash||_0x53e2e7['peek'](0x1)==newline$1){_0x3892fc&&_0x53e2e7['acceptToken'](0x2==_0x508464&&_0x5259dd['canShift'](VariableName)?_0x4f3abf:_0x2cdc7a==parenL?_0x8e42e9:_0x2e9b93);break;}if(_0x53e2e7['advance'](),isHex(_0x53e2e7['next'])){do{_0x53e2e7['advance']();}while(isHex(_0x53e2e7['next']));0x20==_0x53e2e7['next']&&_0x53e2e7['advance']();}else _0x53e2e7['next']>-0x1&&_0x53e2e7['advance']();_0x3892fc=!0x0;}}},identifiers=new ExternalTokenizer(identifierTokens(identifier$2,VariableName,callee)),queryIdentifiers=new ExternalTokenizer(identifierTokens(queryIdentifier,queryVariableName,QueryCallee)),descendant=new ExternalTokenizer(_0x1726f3=>{if(space$2['includes'](_0x1726f3['peek'](-0x1))){let {next:_0x290283}=_0x1726f3;(isAlpha(_0x290283)||_0x290283==underscore||_0x290283==hash||_0x290283==period||_0x290283==asterisk||_0x290283==bracketL$1||_0x290283==colon&&isAlpha(_0x1726f3['peek'](0x1))||_0x290283==dash||_0x290283==ampersand)&&_0x1726f3['acceptToken'](descendantOp);}}),unitToken=new ExternalTokenizer(_0x27744a=>{if(!space$2['includes'](_0x27744a['peek'](-0x1))){let {next:_0x3d41ca}=_0x27744a;if(_0x3d41ca==percent&&(_0x27744a['advance'](),_0x27744a['acceptToken'](Unit)),isAlpha(_0x3d41ca)){do{_0x27744a['advance']();}while(isAlpha(_0x27744a['next'])||isDigit(_0x27744a['next']));_0x27744a['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':_0x2851ec=>spec_callee[_0x2851ec]||-0x1},{'term':0x7d,'get':_0x40d439=>spec_queryIdentifier[_0x40d439]||-0x1},{'term':0x4,'get':_0x1f7f79=>spec_QueryCallee[_0x1f7f79]||-0x1},{'term':0x19,'get':_0x530af4=>spec_AtKeyword[_0x530af4]||-0x1},{'term':0x7b,'get':_0x1387c5=>spec_identifier$1[_0x1387c5]||-0x1}],'tokenPrec':0x7ab});let _properties=null;function properties(){if(!_properties&&'object'==typeof document&&document['body']){let {style:_0x39cb39}=document['body'],_0x56191b=[],_0x29cb68=new Set();for(let _0x2b468d in _0x39cb39)'cssText'!=_0x2b468d&&'cssFloat'!=_0x2b468d&&'string'==typeof _0x39cb39[_0x2b468d]&&(/[A-Z]/['test'](_0x2b468d)&&(_0x2b468d=_0x2b468d['replace'](/[A-Z]/g,_0x52009a=>'-'+_0x52009a['toLowerCase']())),_0x29cb68['has'](_0x2b468d)||(_0x56191b['push'](_0x2b468d),_0x29cb68['add'](_0x2b468d)));_properties=_0x56191b['sort']()['map'](_0x2dc01e=>({'type':'property','label':_0x2dc01e,'apply':_0x2dc01e+':\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'](_0x26d4c7=>({'type':'class','label':_0x26d4c7})),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'](_0x3fd9e0=>({'type':'keyword','label':_0x3fd9e0}))['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'](_0xc44f36=>({'type':'constant','label':_0xc44f36}))),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'](_0x57e628=>({'type':'type','label':_0x57e628})),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'](_0x4f6438=>({'type':'keyword','label':_0x4f6438})),identifier$1=/^(\w[\w-]*|-\w[\w-]*|)$/,variable=/^-(-[\w-]*)?$/;function isVarArg(_0x90e70c,_0x39f7b3){var _0x132fd6;if(('('==_0x90e70c['name']||_0x90e70c['type']['isError'])&&(_0x90e70c=_0x90e70c['parent']||_0x90e70c),'ArgList'!=_0x90e70c['name'])return!0x1;let _0x58f101=null===(_0x132fd6=_0x90e70c['parent'])||void 0x0===_0x132fd6?void 0x0:_0x132fd6['firstChild'];return'Callee'==(null==_0x58f101?void 0x0:_0x58f101['name'])&&'var'==_0x39f7b3['sliceString'](_0x58f101['from'],_0x58f101['to']);}const VariablesByNode=new NodeWeakMap(),declSelector=['Declaration'];function astTop(_0x563d46){for(let _0x212644=_0x563d46;;){if(_0x212644['type']['isTop'])return _0x212644;if(!(_0x212644=_0x212644['parent']))return _0x563d46;}}function variableNames(_0x1154c3,_0x39929a,_0xaabe32){if(_0x39929a['to']-_0x39929a['from']>0x1000){let _0x34e14e=VariablesByNode['get'](_0x39929a);if(_0x34e14e)return _0x34e14e;let _0x2c015b=[],_0x22bab9=new Set(),_0x5be6ba=_0x39929a['cursor'](IterMode['IncludeAnonymous']);if(_0x5be6ba['firstChild']())do{for(let _0x3d06e8 of variableNames(_0x1154c3,_0x5be6ba['node'],_0xaabe32))_0x22bab9['has'](_0x3d06e8['label'])||(_0x22bab9['add'](_0x3d06e8['label']),_0x2c015b['push'](_0x3d06e8));}while(_0x5be6ba['nextSibling']());return VariablesByNode['set'](_0x39929a,_0x2c015b),_0x2c015b;}{let _0x271267=[],_0x47f860=new Set();return _0x39929a['cursor']()['iterate'](_0x3847a2=>{var _0x98fd7b;if(_0xaabe32(_0x3847a2)&&_0x3847a2['matchContext'](declSelector)&&':'==(null===(_0x98fd7b=_0x3847a2['node']['nextSibling'])||void 0x0===_0x98fd7b?void 0x0:_0x98fd7b['name'])){let _0x1030b=_0x1154c3['sliceString'](_0x3847a2['from'],_0x3847a2['to']);_0x47f860['has'](_0x1030b)||(_0x47f860['add'](_0x1030b),_0x271267['push']({'label':_0x1030b,'type':'variable'}));}}),_0x271267;}}const defineCSSCompletionSource=_0x402a15=>_0x542eae=>{let {state:_0x47615e,pos:_0x4e0dd1}=_0x542eae,_0x18b2ee=syntaxTree(_0x47615e)['resolveInner'](_0x4e0dd1,-0x1),_0x43d0b5=_0x18b2ee['type']['isError']&&_0x18b2ee['from']==_0x18b2ee['to']-0x1&&'-'==_0x47615e['doc']['sliceString'](_0x18b2ee['from'],_0x18b2ee['to']);if('PropertyName'==_0x18b2ee['name']||(_0x43d0b5||'TagName'==_0x18b2ee['name'])&&/^(Block|Styles)$/['test'](_0x18b2ee['resolve'](_0x18b2ee['to'])['name']))return{'from':_0x18b2ee['from'],'options':properties(),'validFor':identifier$1};if('ValueName'==_0x18b2ee['name'])return{'from':_0x18b2ee['from'],'options':values,'validFor':identifier$1};if('PseudoClassName'==_0x18b2ee['name'])return{'from':_0x18b2ee['from'],'options':pseudoClasses,'validFor':identifier$1};if(_0x402a15(_0x18b2ee)||(_0x542eae['explicit']||_0x43d0b5)&&isVarArg(_0x18b2ee,_0x47615e['doc']))return{'from':_0x402a15(_0x18b2ee)||_0x43d0b5?_0x18b2ee['from']:_0x4e0dd1,'options':variableNames(_0x47615e['doc'],astTop(_0x18b2ee),_0x402a15),'validFor':variable};if('TagName'==_0x18b2ee['name']){for(let {parent:_0x30d651}=_0x18b2ee;_0x30d651;_0x30d651=_0x30d651['parent'])if('Block'==_0x30d651['name'])return{'from':_0x18b2ee['from'],'options':properties(),'validFor':identifier$1};return{'from':_0x18b2ee['from'],'options':tags,'validFor':identifier$1};}if('AtKeyword'==_0x18b2ee['name'])return{'from':_0x18b2ee['from'],'options':atRules,'validFor':identifier$1};if(!_0x542eae['explicit'])return null;let _0x34319e=_0x18b2ee['resolve'](_0x4e0dd1),_0x4a0732=_0x34319e['childBefore'](_0x4e0dd1);return _0x4a0732&&':'==_0x4a0732['name']&&'PseudoClassSelector'==_0x34319e['name']?{'from':_0x4e0dd1,'options':pseudoClasses,'validFor':identifier$1}:_0x4a0732&&':'==_0x4a0732['name']&&'Declaration'==_0x34319e['name']||'ArgList'==_0x34319e['name']?{'from':_0x4e0dd1,'options':values,'validFor':identifier$1}:'Block'==_0x34319e['name']||'Styles'==_0x34319e['name']?{'from':_0x4e0dd1,'options':properties(),'validFor':identifier$1}:null;},cssCompletionSource=defineCSSCompletionSource(_0x12471d=>'VariableName'==_0x12471d['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':(_0x19baca,_0xbcffd1)=>_0xbcffd1==LineComment||_0xbcffd1==BlockComment||_0xbcffd1==spaces?_0x19baca:_0xbcffd1==newline,'strict':!0x1}),insertSemicolon=new ExternalTokenizer((_0x168408,_0x40059a)=>{let {next:_0x139f1e}=_0x168408;(_0x139f1e==braceR||-0x1==_0x139f1e||_0x40059a['context'])&&_0x168408['acceptToken'](insertSemi);},{'contextual':!0x0,'fallback':!0x0}),noSemicolon=new ExternalTokenizer((_0x237c19,_0x3b26f9)=>{let _0x463bf7,{next:_0x19cfab}=_0x237c19;space$1['indexOf'](_0x19cfab)>-0x1||(_0x19cfab!=slash||(_0x463bf7=_0x237c19['peek'](0x1))!=slash&&_0x463bf7!=star)&&(_0x19cfab==braceR||_0x19cfab==semicolon||-0x1==_0x19cfab||_0x3b26f9['context']||_0x237c19['acceptToken'](noSemi));},{'contextual':!0x0}),noSemicolonType=new ExternalTokenizer((_0x2d0c31,_0x5c475a)=>{_0x2d0c31['next']!=bracketL||_0x5c475a['context']||_0x2d0c31['acceptToken'](noSemiType);},{'contextual':!0x0}),operatorToken=new ExternalTokenizer((_0x1ff318,_0x5e680e)=>{let {next:_0x51271a}=_0x1ff318;if(_0x51271a==plus||_0x51271a==minus){if(_0x1ff318['advance'](),_0x51271a==_0x1ff318['next']){_0x1ff318['advance']();let _0x547b27=!_0x5e680e['context']&&_0x5e680e['canShift'](incdec);_0x1ff318['acceptToken'](_0x547b27?incdec:incdecPrefix);}}else _0x51271a==question&&_0x1ff318['peek'](0x1)==dot&&(_0x1ff318['advance'](),_0x1ff318['advance'](),(_0x1ff318['next']<0x30||_0x1ff318['next']>0x39)&&_0x1ff318['acceptToken'](questionDot));},{'contextual':!0x0});function identifierChar(_0x4844f1,_0xfc7e9a){return _0x4844f1>=0x41&&_0x4844f1<=0x5a||_0x4844f1>=0x61&&_0x4844f1<=0x7a||0x5f==_0x4844f1||_0x4844f1>=0xc0||!_0xfc7e9a&&_0x4844f1>=0x30&&_0x4844f1<=0x39;}const jsx=new ExternalTokenizer((_0x236cc8,_0x20630e)=>{if(_0x236cc8['next']!=lt||!_0x20630e['dialectEnabled'](Dialect_jsx))return;if(_0x236cc8['advance'](),_0x236cc8['next']==slash)return;let _0x52ae4b=0x0;for(;space$1['indexOf'](_0x236cc8['next'])>-0x1;)_0x236cc8['advance'](),_0x52ae4b++;if(identifierChar(_0x236cc8['next'],!0x0)){for(_0x236cc8['advance'](),_0x52ae4b++;identifierChar(_0x236cc8['next'],!0x1);)_0x236cc8['advance'](),_0x52ae4b++;for(;space$1['indexOf'](_0x236cc8['next'])>-0x1;)_0x236cc8['advance'](),_0x52ae4b++;if(_0x236cc8['next']==comma)return;for(let _0x3d41cd=0x0;;_0x3d41cd++){if(0x7==_0x3d41cd){if(!identifierChar(_0x236cc8['next'],!0x0))return;break;}if(_0x236cc8['next']!='extends'['charCodeAt'](_0x3d41cd))break;_0x236cc8['advance'](),_0x52ae4b++;}}_0x236cc8['acceptToken'](JSXStartTag,-_0x52ae4b);}),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':_0x307e21=>spec_identifier[_0x307e21]||-0x1},{'term':0x157,'get':_0x1932ae=>spec_word[_0x1932ae]||-0x1},{'term':0x5f,'get':_0x5b6a42=>spec_LessThan[_0x5b6a42]||-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(_0x1be72b){return(_0x1a6510,_0x5a26ec)=>{let _0x53fd25=_0x1a6510['node']['getChild']('VariableDefinition');return _0x53fd25&&_0x5a26ec(_0x53fd25,_0x1be72b),!0x0;};}const functionContext=['FunctionDeclaration'],gatherCompletions={'FunctionDeclaration':defID('function'),'ClassDeclaration':defID('class'),'ClassExpression':()=>!0x0,'EnumDeclaration':defID('constant'),'TypeAliasDeclaration':defID('type'),'NamespaceDeclaration':defID('namespace'),'VariableDefinition'(_0x5b203c,_0x36b7a1){_0x5b203c['matchContext'](functionContext)||_0x36b7a1(_0x5b203c,'variable');},'TypeDefinition'(_0x14ade3,_0x1e9648){_0x1e9648(_0x14ade3,'type');},'__proto__':null};function getScope(_0xe6264a,_0x11e286){let _0x2a7b10=cache['get'](_0x11e286);if(_0x2a7b10)return _0x2a7b10;let _0x317b96=[],_0x396547=!0x0;function _0xab6587(_0x42ecb0,_0x1d12a2){let _0x46ea46=_0xe6264a['sliceString'](_0x42ecb0['from'],_0x42ecb0['to']);_0x317b96['push']({'label':_0x46ea46,'type':_0x1d12a2});}return _0x11e286['cursor'](IterMode['IncludeAnonymous'])['iterate'](_0x2a0593=>{if(_0x396547)_0x396547=!0x1;else{if(_0x2a0593['name']){let _0x2b8159=gatherCompletions[_0x2a0593['name']];if(_0x2b8159&&_0x2b8159(_0x2a0593,_0xab6587)||ScopeNodes['has'](_0x2a0593['name']))return!0x1;}else{if(_0x2a0593['to']-_0x2a0593['from']>0x2000){for(let _0x20de1c of getScope(_0xe6264a,_0x2a0593['node']))_0x317b96['push'](_0x20de1c);return!0x1;}}}}),cache['set'](_0x11e286,_0x317b96),_0x317b96;}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(_0x538687){let _0x4dabf0=syntaxTree(_0x538687['state'])['resolveInner'](_0x538687['pos'],-0x1);if(dontComplete['indexOf'](_0x4dabf0['name'])>-0x1)return null;let _0x3f175b='VariableName'==_0x4dabf0['name']||_0x4dabf0['to']-_0x4dabf0['from']<0x14&&Identifier['test'](_0x538687['state']['sliceDoc'](_0x4dabf0['from'],_0x4dabf0['to']));if(!_0x3f175b&&!_0x538687['explicit'])return null;let _0x2e0278=[];for(let _0x5a0297=_0x4dabf0;_0x5a0297;_0x5a0297=_0x5a0297['parent'])ScopeNodes['has'](_0x5a0297['name'])&&(_0x2e0278=_0x2e0278['concat'](getScope(_0x538687['state']['doc'],_0x5a0297)));return{'options':_0x2e0278,'from':_0x3f175b?_0x4dabf0['from']:_0x538687['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':_0x3cbfc6=>{let _0x1d239a=_0x3cbfc6['textAfter'],_0x115acd=/^\s*\}/['test'](_0x1d239a),_0x45be9e=/^\s*(case|default)\b/['test'](_0x1d239a);return _0x3cbfc6['baseIndent']+(_0x115acd?0x0:_0x45be9e?0x1:0x2)*_0x3cbfc6['unit'];},'Block':delimitedIndent({'closing':'}'}),'ArrowFunction':_0x21523d=>_0x21523d['baseIndent']+_0x21523d['unit'],'TemplateString\x20BlockComment':()=>null,'Statement\x20Property':continuedIndent({'except':/^\s*{/}),'JSXElement'(_0x373bc7){let _0x41536b=/^\s*<\//['test'](_0x373bc7['textAfter']);return _0x373bc7['lineIndent'](_0x373bc7['node']['from'])+(_0x41536b?0x0:_0x373bc7['unit']);},'JSXEscape'(_0x28e0ff){let _0x2df937=/\s*\}/['test'](_0x28e0ff['textAfter']);return _0x28e0ff['lineIndent'](_0x28e0ff['node']['from'])+(_0x2df937?0x0:_0x28e0ff['unit']);},'JSXOpenTag\x20JSXSelfClosingTag':_0x3b2489=>_0x3b2489['column'](_0x3b2489['node']['from'])+_0x3b2489['unit']}),foldNodeProp['add']({'Block\x20ClassBody\x20SwitchBody\x20EnumBody\x20ObjectExpression\x20ArrayExpression\x20ObjectType':foldInside,'BlockComment':_0x10cb59=>({'from':_0x10cb59['from']+0x2,'to':_0x10cb59['to']-0x2})})]}),'languageData':{'closeBrackets':{'brackets':['(','[','{','\x27','\x22','`']},'commentTokens':{'line':'//','block':{'open':'/*','close':'*/'}},'indentOnInput':/^\s*(?:case |default:|\{|\}|<\/)$/,'wordChars':'$'}}),jsxSublanguage={'test':_0x20ddd7=>/^JSX/['test'](_0x20ddd7['name']),'facet':defineLanguageFacet({'commentTokens':{'block':{'open':'{/*','close':'*/}'}}})},typescriptLanguage=javascriptLanguage['configure']({'dialect':'ts'},'typescript'),jsxLanguage=javascriptLanguage['configure']({'dialect':'jsx','props':[sublanguageProp['add'](_0x20644f=>_0x20644f['isTop']?[jsxSublanguage]:void 0x0)]}),tsxLanguage=javascriptLanguage['configure']({'dialect':'jsx\x20ts','props':[sublanguageProp['add'](_0x3780a2=>_0x3780a2['isTop']?[jsxSublanguage]:void 0x0)]},'typescript');let kwCompletion=_0x47033f=>({'label':_0x47033f,'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(_0x46a283={}){let _0x1305e4=_0x46a283['jsx']?_0x46a283['typescript']?tsxLanguage:jsxLanguage:_0x46a283['typescript']?typescriptLanguage:javascriptLanguage,_0x3219f8=_0x46a283['typescript']?typescriptSnippets['concat'](typescriptKeywords):snippets['concat'](keywords);return new LanguageSupport(_0x1305e4,[javascriptLanguage['data']['of']({'autocomplete':ifNotIn(dontComplete,completeFromList(_0x3219f8))}),javascriptLanguage['data']['of']({'autocomplete':localCompletionSource}),_0x46a283['jsx']?autoCloseTags$1:[]]);}function findOpenTag(_0x4b93b7){for(;;){if('JSXOpenTag'==_0x4b93b7['name']||'JSXSelfClosingTag'==_0x4b93b7['name']||'JSXFragmentTag'==_0x4b93b7['name'])return _0x4b93b7;if('JSXEscape'==_0x4b93b7['name']||!_0x4b93b7['parent'])return null;_0x4b93b7=_0x4b93b7['parent'];}}function elementName$1(_0x1ec1e7,_0x27d1a7,_0x15f6c1=_0x1ec1e7['length']){for(let _0x266a7e=null==_0x27d1a7?void 0x0:_0x27d1a7['firstChild'];_0x266a7e;_0x266a7e=_0x266a7e['nextSibling'])if('JSXIdentifier'==_0x266a7e['name']||'JSXBuiltin'==_0x266a7e['name']||'JSXNamespacedName'==_0x266a7e['name']||'JSXMemberExpression'==_0x266a7e['name'])return _0x1ec1e7['sliceString'](_0x266a7e['from'],Math['min'](_0x266a7e['to'],_0x15f6c1));return'';}const android='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),autoCloseTags$1=EditorView['inputHandler']['of']((_0x1f25ac,_0x6e8d7a,_0x55c4cf,_0x2ec6ed,_0x87af65)=>{if((android?_0x1f25ac['composing']:_0x1f25ac['compositionStarted'])||_0x1f25ac['state']['readOnly']||_0x6e8d7a!=_0x55c4cf||'>'!=_0x2ec6ed&&'/'!=_0x2ec6ed||!javascriptLanguage['isActiveAt'](_0x1f25ac['state'],_0x6e8d7a,-0x1))return!0x1;let _0x468f4f=_0x87af65(),{state:_0x4d12ad}=_0x468f4f,_0x5ef8b4=_0x4d12ad['changeByRange'](_0x1f8b5a=>{var _0x5e61cd;let _0x4743dd,{head:_0x5a0e88}=_0x1f8b5a,_0x4732bd=syntaxTree(_0x4d12ad)['resolveInner'](_0x5a0e88-0x1,-0x1);if('JSXStartTag'==_0x4732bd['name']&&(_0x4732bd=_0x4732bd['parent']),_0x4d12ad['doc']['sliceString'](_0x5a0e88-0x1,_0x5a0e88)!=_0x2ec6ed||'JSXAttributeValue'==_0x4732bd['name']&&_0x4732bd['to']>_0x5a0e88);else{if('>'==_0x2ec6ed&&'JSXFragmentTag'==_0x4732bd['name'])return{'range':_0x1f8b5a,'changes':{'from':_0x5a0e88,'insert':'</>'}};if('/'==_0x2ec6ed&&'JSXStartCloseTag'==_0x4732bd['name']){let _0x45f2f1=_0x4732bd['parent'],_0x8bf769=_0x45f2f1['parent'];if(_0x8bf769&&_0x45f2f1['from']==_0x5a0e88-0x2&&((_0x4743dd=elementName$1(_0x4d12ad['doc'],_0x8bf769['firstChild'],_0x5a0e88))||'JSXFragmentTag'==(null===(_0x5e61cd=_0x8bf769['firstChild'])||void 0x0===_0x5e61cd?void 0x0:_0x5e61cd['name']))){let _0x451a65=_0x4743dd+'>';return{'range':EditorSelection['cursor'](_0x5a0e88+_0x451a65['length'],-0x1),'changes':{'from':_0x5a0e88,'insert':_0x451a65}};}}else{if('>'==_0x2ec6ed){let _0x6eec5d=findOpenTag(_0x4732bd);if(_0x6eec5d&&'JSXOpenTag'==_0x6eec5d['name']&&!/^\/?>|^<\//['test'](_0x4d12ad['doc']['sliceString'](_0x5a0e88,_0x5a0e88+0x2))&&(_0x4743dd=elementName$1(_0x4d12ad['doc'],_0x6eec5d,_0x5a0e88)))return{'range':_0x1f8b5a,'changes':{'from':_0x5a0e88,'insert':'</'+_0x4743dd+'>'}};}}}return{'range':_0x1f8b5a};});return!_0x5ef8b4['changes']['empty']&&(_0x1f25ac['dispatch']([_0x468f4f,_0x4d12ad['update'](_0x5ef8b4,{'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'](_0x3d9709=>'on'+_0x3d9709);for(let e of eventAttributes)GlobalAttrs[e]=null;class Schema{constructor(_0x5d79c0,_0x441e1b){this['tags']={...Tags,..._0x5d79c0},this['globalAttrs']={...GlobalAttrs,..._0x441e1b},this['allTags']=Object['keys'](this['tags']),this['globalAttrNames']=Object['keys'](this['globalAttrs']);}}function elementName(_0x13e4be,_0x5c60bd,_0x285e11=_0x13e4be['length']){if(!_0x5c60bd)return'';let _0xb43a72=_0x5c60bd['firstChild'],_0x50cdd9=_0xb43a72&&_0xb43a72['getChild']('TagName');return _0x50cdd9?_0x13e4be['sliceString'](_0x50cdd9['from'],Math['min'](_0x50cdd9['to'],_0x285e11)):'';}function findParentElement(_0x518050,_0x28428e=!0x1){for(;_0x518050;_0x518050=_0x518050['parent'])if('Element'==_0x518050['name']){if(!_0x28428e)return _0x518050;_0x28428e=!0x1;}return null;}function allowedChildren(_0x41ac87,_0x22a6e1,_0x4f9fe6){let _0x529bbb=_0x4f9fe6['tags'][elementName(_0x41ac87,findParentElement(_0x22a6e1))];return(null==_0x529bbb?void 0x0:_0x529bbb['children'])||_0x4f9fe6['allTags'];}function openTags(_0x4a8cf5,_0x4897fb){let _0x1f50b4=[];for(let _0x564c4e=findParentElement(_0x4897fb);_0x564c4e&&!_0x564c4e['type']['isTop'];_0x564c4e=findParentElement(_0x564c4e['parent'])){let _0x4add51=elementName(_0x4a8cf5,_0x564c4e);if(_0x4add51&&'CloseTag'==_0x564c4e['lastChild']['name'])break;_0x4add51&&_0x1f50b4['indexOf'](_0x4add51)<0x0&&('EndTag'==_0x4897fb['name']||_0x4897fb['from']>=_0x564c4e['firstChild']['to'])&&_0x1f50b4['push'](_0x4add51);}return _0x1f50b4;}Schema['default']=new Schema();const identifier=/^[:\-\.\w\u00b7-\uffff]*$/;function completeTag(_0x3f5e50,_0x38a90a,_0x207028,_0x5946dc,_0x459e06){let _0x22431b=/\s*>/['test'](_0x3f5e50['sliceDoc'](_0x459e06,_0x459e06+0x5))?'':'>',_0x163623=findParentElement(_0x207028,'StartTag'==_0x207028['name']||'TagName'==_0x207028['name']);return{'from':_0x5946dc,'to':_0x459e06,'options':allowedChildren(_0x3f5e50['doc'],_0x163623,_0x38a90a)['map'](_0x5dee8c=>({'label':_0x5dee8c,'type':'type'}))['concat'](openTags(_0x3f5e50['doc'],_0x207028)['map']((_0x5cf813,_0x772715)=>({'label':'/'+_0x5cf813,'apply':'/'+_0x5cf813+_0x22431b,'type':'type','boost':0x63-_0x772715}))),'validFor':/^\/?[:\-\.\w\u00b7-\uffff]*$/};}function completeCloseTag(_0x50d239,_0x54491b,_0x14d201,_0x39468d){let _0x5ae191=/\s*>/['test'](_0x50d239['sliceDoc'](_0x39468d,_0x39468d+0x5))?'':'>';return{'from':_0x14d201,'to':_0x39468d,'options':openTags(_0x50d239['doc'],_0x54491b)['map']((_0x3c4812,_0xcc841a)=>({'label':_0x3c4812,'apply':_0x3c4812+_0x5ae191,'type':'type','boost':0x63-_0xcc841a})),'validFor':identifier};}function completeStartTag(_0xa5ef52,_0x52319d,_0x58cb57,_0x3cfc59){let _0x1e722f=[],_0x238f9c=0x0;for(let _0x422189 of allowedChildren(_0xa5ef52['doc'],_0x58cb57,_0x52319d))_0x1e722f['push']({'label':'<'+_0x422189,'type':'type'});for(let _0xbb18b0 of openTags(_0xa5ef52['doc'],_0x58cb57))_0x1e722f['push']({'label':'</'+_0xbb18b0+'>','type':'type','boost':0x63-_0x238f9c++});return{'from':_0x3cfc59,'to':_0x3cfc59,'options':_0x1e722f,'validFor':/^<\/?[:\-\.\w\u00b7-\uffff]*$/};}function completeAttrName(_0x189b74,_0x25cba9,_0x331258,_0x3503f1,_0x3ded75){let _0x3c9fae=findParentElement(_0x331258),_0x43693f=_0x3c9fae?_0x25cba9['tags'][elementName(_0x189b74['doc'],_0x3c9fae)]:null,_0x3e17c0=_0x43693f&&_0x43693f['attrs']?Object['keys'](_0x43693f['attrs']):[];return{'from':_0x3503f1,'to':_0x3ded75,'options':(_0x43693f&&!0x1===_0x43693f['globalAttrs']?_0x3e17c0:_0x3e17c0['length']?_0x3e17c0['concat'](_0x25cba9['globalAttrNames']):_0x25cba9['globalAttrNames'])['map'](_0x35c7f1=>({'label':_0x35c7f1,'type':'property'})),'validFor':identifier};}function completeAttrValue(_0x4d65b1,_0x37017c,_0x29858a,_0x448d72,_0x14cc30){var _0xea25b9;let _0x2d014a,_0x97831d=null===(_0xea25b9=_0x29858a['parent'])||void 0x0===_0xea25b9?void 0x0:_0xea25b9['getChild']('AttributeName'),_0x577fa5=[];if(_0x97831d){let _0x7b5673=_0x4d65b1['sliceDoc'](_0x97831d['from'],_0x97831d['to']),_0x1388b7=_0x37017c['globalAttrs'][_0x7b5673];if(!_0x1388b7){let _0x2e4188=findParentElement(_0x29858a),_0x2f6959=_0x2e4188?_0x37017c['tags'][elementName(_0x4d65b1['doc'],_0x2e4188)]:null;_0x1388b7=(null==_0x2f6959?void 0x0:_0x2f6959['attrs'])&&_0x2f6959['attrs'][_0x7b5673];}if(_0x1388b7){let _0x1283c8=_0x4d65b1['sliceDoc'](_0x448d72,_0x14cc30)['toLowerCase'](),_0x3835f8='\x22',_0x1243f1='\x22';/^['"]/['test'](_0x1283c8)?(_0x2d014a='\x22'==_0x1283c8[0x0]?/^[^"]*$/:/^[^']*$/,_0x3835f8='',_0x1243f1=_0x4d65b1['sliceDoc'](_0x14cc30,_0x14cc30+0x1)==_0x1283c8[0x0]?'':_0x1283c8[0x0],_0x1283c8=_0x1283c8['slice'](0x1),_0x448d72++):_0x2d014a=/^[^\s<>='"]*$/;for(let _0x39afe8 of _0x1388b7)_0x577fa5['push']({'label':_0x39afe8,'apply':_0x3835f8+_0x39afe8+_0x1243f1,'type':'constant'});}}return{'from':_0x448d72,'to':_0x14cc30,'options':_0x577fa5,'validFor':_0x2d014a};}function htmlCompletionFor(_0x28b9e9,_0x3fc9f7){let {state:_0x2434d1,pos:_0x16e56c}=_0x3fc9f7,_0x2c7b23=syntaxTree(_0x2434d1)['resolveInner'](_0x16e56c,-0x1),_0x16bde0=_0x2c7b23['resolve'](_0x16e56c);for(let _0x23982d,_0x4048f9=_0x16e56c;_0x16bde0==_0x2c7b23&&(_0x23982d=_0x2c7b23['childBefore'](_0x4048f9));){let _0x49e827=_0x23982d['lastChild'];if(!_0x49e827||!_0x49e827['type']['isError']||_0x49e827['from']<_0x49e827['to'])break;_0x16bde0=_0x2c7b23=_0x23982d,_0x4048f9=_0x49e827['from'];}return'TagName'==_0x2c7b23['name']?_0x2c7b23['parent']&&/CloseTag$/['test'](_0x2c7b23['parent']['name'])?completeCloseTag(_0x2434d1,_0x2c7b23,_0x2c7b23['from'],_0x16e56c):completeTag(_0x2434d1,_0x28b9e9,_0x2c7b23,_0x2c7b23['from'],_0x16e56c):'StartTag'==_0x2c7b23['name']||'IncompleteTag'==_0x2c7b23['name']?completeTag(_0x2434d1,_0x28b9e9,_0x2c7b23,_0x16e56c,_0x16e56c):'StartCloseTag'==_0x2c7b23['name']||'IncompleteCloseTag'==_0x2c7b23['name']?completeCloseTag(_0x2434d1,_0x2c7b23,_0x16e56c,_0x16e56c):'OpenTag'==_0x2c7b23['name']||'SelfClosingTag'==_0x2c7b23['name']||'AttributeName'==_0x2c7b23['name']?completeAttrName(_0x2434d1,_0x28b9e9,_0x2c7b23,'AttributeName'==_0x2c7b23['name']?_0x2c7b23['from']:_0x16e56c,_0x16e56c):'Is'==_0x2c7b23['name']||'AttributeValue'==_0x2c7b23['name']||'UnquotedAttributeValue'==_0x2c7b23['name']?completeAttrValue(_0x2434d1,_0x28b9e9,_0x2c7b23,'Is'==_0x2c7b23['name']?_0x16e56c:_0x2c7b23['from'],_0x16e56c):!_0x3fc9f7['explicit']||'Element'!=_0x16bde0['name']&&'Text'!=_0x16bde0['name']&&'Document'!=_0x16bde0['name']?null:completeStartTag(_0x2434d1,_0x28b9e9,_0x2c7b23,_0x16e56c);}function htmlCompletionSource(_0x18d325){return htmlCompletionFor(Schema['default'],_0x18d325);}function htmlCompletionSourceWith(_0x28e756){let {extraTags:_0x5d865f,extraGlobalAttributes:_0x462522}=_0x28e756,_0x4e0379=_0x462522||_0x5d865f?new Schema(_0x5d865f,_0x462522):Schema['default'];return _0x5d0c44=>htmlCompletionFor(_0x4e0379,_0x5d0c44);}const jsonParser=javascriptLanguage['parser']['configure']({'top':'SingleExpression'}),defaultNesting=[{'tag':'script','attrs':_0xe1e63f=>'text/typescript'==_0xe1e63f['type']||'ts'==_0xe1e63f['lang'],'parser':typescriptLanguage['parser']},{'tag':'script','attrs':_0x49e918=>'text/babel'==_0x49e918['type']||'text/jsx'==_0x49e918['type'],'parser':jsxLanguage['parser']},{'tag':'script','attrs':_0x5d6f38=>'text/typescript-jsx'==_0x5d6f38['type'],'parser':tsxLanguage['parser']},{'tag':'script','attrs':_0x5c7da5=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i['test'](_0x5c7da5['type']),'parser':jsonParser},{'tag':'script','attrs':_0x2032ab=>!_0x2032ab['type']||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i['test'](_0x2032ab['type']),'parser':javascriptLanguage['parser']},{'tag':'style','attrs':_0x1bb899=>(!_0x1bb899['lang']||'css'==_0x1bb899['lang'])&&(!_0x1bb899['type']||/^(text\/)?(x-)?(stylesheet|css)$/i['test'](_0x1bb899['type'])),'parser':cssLanguage['parser']}],defaultAttrs=[{'name':'style','parser':cssLanguage['parser']['configure']({'top':'Styles'})}]['concat'](eventAttributes['map'](_0x2b3b94=>({'name':_0x2b3b94,'parser':javascriptLanguage['parser']}))),htmlPlain=LRLanguage['define']({'name':'html','parser':parser$3['configure']({'props':[indentNodeProp['add']({'Element'(_0x488aeb){let _0x192741=/^(\s*)(<\/)?/['exec'](_0x488aeb['textAfter']);return _0x488aeb['node']['to']<=_0x488aeb['pos']+_0x192741[0x0]['length']?_0x488aeb['continue']():_0x488aeb['lineIndent'](_0x488aeb['node']['from'])+(_0x192741[0x2]?0x0:_0x488aeb['unit']);},'OpenTag\x20CloseTag\x20SelfClosingTag':_0x1da20a=>_0x1da20a['column'](_0x1da20a['node']['from'])+_0x1da20a['unit'],'Document'(_0xac1e37){if(_0xac1e37['pos']+/\s*/['exec'](_0xac1e37['textAfter'])[0x0]['length']<_0xac1e37['node']['to'])return _0xac1e37['continue']();let _0x47e613,_0x14b573=null;for(let _0x14a855=_0xac1e37['node'];;){let _0x5b35e4=_0x14a855['lastChild'];if(!_0x5b35e4||'Element'!=_0x5b35e4['name']||_0x5b35e4['to']!=_0x14a855['to'])break;_0x14b573=_0x14a855=_0x5b35e4;}return _0x14b573&&(!(_0x47e613=_0x14b573['lastChild'])||'CloseTag'!=_0x47e613['name']&&'SelfClosingTag'!=_0x47e613['name'])?_0xac1e37['lineIndent'](_0x14b573['from'])+_0xac1e37['unit']:null;}}),foldNodeProp['add']({'Element'(_0x12851e){let _0x2ad0aa=_0x12851e['firstChild'],_0x53ba4e=_0x12851e['lastChild'];return _0x2ad0aa&&'OpenTag'==_0x2ad0aa['name']?{'from':_0x2ad0aa['to'],'to':'CloseTag'==_0x53ba4e['name']?_0x53ba4e['from']:_0x12851e['to']}:null;}}),bracketMatchingHandle['add']({'OpenTag\x20CloseTag':_0x59f7af=>_0x59f7af['getChild']('TagName')})]}),'languageData':{'commentTokens':{'block':{'open':'<!--','close':'-->'}},'indentOnInput':/^\s*<\/\w+\W$/,'wordChars':'-_'}}),htmlLanguage=htmlPlain['configure']({'wrap':configureNesting(defaultNesting,defaultAttrs)});function html(_0x129762={}){let _0x5f45fa,_0x2c8131='';!0x1===_0x129762['matchClosingTags']&&(_0x2c8131='noMatch'),!0x0===_0x129762['selfClosingTags']&&(_0x2c8131=(_0x2c8131?_0x2c8131+'\x20':'')+'selfClosing'),(_0x129762['nestedLanguages']&&_0x129762['nestedLanguages']['length']||_0x129762['nestedAttributes']&&_0x129762['nestedAttributes']['length'])&&(_0x5f45fa=configureNesting((_0x129762['nestedLanguages']||[])['concat'](defaultNesting),(_0x129762['nestedAttributes']||[])['concat'](defaultAttrs)));let _0x318628=_0x5f45fa?htmlPlain['configure']({'wrap':_0x5f45fa,'dialect':_0x2c8131}):_0x2c8131?htmlLanguage['configure']({'dialect':_0x2c8131}):htmlLanguage;return new LanguageSupport(_0x318628,[htmlLanguage['data']['of']({'autocomplete':htmlCompletionSourceWith(_0x129762)}),!0x1!==_0x129762['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']((_0x43bccb,_0x3b6bae,_0x4f4a0b,_0x186fbe,_0xc4ad36)=>{if(_0x43bccb['composing']||_0x43bccb['state']['readOnly']||_0x3b6bae!=_0x4f4a0b||'>'!=_0x186fbe&&'/'!=_0x186fbe||!htmlLanguage['isActiveAt'](_0x43bccb['state'],_0x3b6bae,-0x1))return!0x1;let _0x599148=_0xc4ad36(),{state:_0x840f9e}=_0x599148,_0x4e621d=_0x840f9e['changeByRange'](_0x58ffd6=>{var _0x5881e3,_0x360af7,_0x46cc0c;let _0x1458ed,_0x31bf00=_0x840f9e['doc']['sliceString'](_0x58ffd6['from']-0x1,_0x58ffd6['to'])==_0x186fbe,{head:_0x52c582}=_0x58ffd6,_0x4e090a=syntaxTree(_0x840f9e)['resolveInner'](_0x52c582,-0x1);if(_0x31bf00&&'>'==_0x186fbe&&'EndTag'==_0x4e090a['name']){let _0x589014=_0x4e090a['parent'];if('CloseTag'!=(null===(_0x360af7=null===(_0x5881e3=_0x589014['parent'])||void 0x0===_0x5881e3?void 0x0:_0x5881e3['lastChild'])||void 0x0===_0x360af7?void 0x0:_0x360af7['name'])&&(_0x1458ed=elementName(_0x840f9e['doc'],_0x589014['parent'],_0x52c582))&&!selfClosers['has'](_0x1458ed))return{'range':_0x58ffd6,'changes':{'from':_0x52c582,'to':_0x52c582+('>'===_0x840f9e['doc']['sliceString'](_0x52c582,_0x52c582+0x1)?0x1:0x0),'insert':'</'+_0x1458ed+'>'}};}else{if(_0x31bf00&&'/'==_0x186fbe&&'IncompleteCloseTag'==_0x4e090a['name']){let _0x57f860=_0x4e090a['parent'];if(_0x4e090a['from']==_0x52c582-0x2&&'CloseTag'!=(null===(_0x46cc0c=_0x57f860['lastChild'])||void 0x0===_0x46cc0c?void 0x0:_0x46cc0c['name'])&&(_0x1458ed=elementName(_0x840f9e['doc'],_0x57f860,_0x52c582))&&!selfClosers['has'](_0x1458ed)){let _0x12c9bd=_0x52c582+('>'===_0x840f9e['doc']['sliceString'](_0x52c582,_0x52c582+0x1)?0x1:0x0),_0x413abb=_0x1458ed+'>';return{'range':EditorSelection['cursor'](_0x52c582+_0x413abb['length'],-0x1),'changes':{'from':_0x52c582,'to':_0x12c9bd,'insert':_0x413abb}};}}}return{'range':_0x58ffd6};});return!_0x4e621d['changes']['empty']&&(_0x43bccb['dispatch']([_0x599148,_0x840f9e['update'](_0x4e621d,{'userEvent':'input.complete','scrollIntoView':!0x0})]),!0x0);});class CompositeBlock{static['create'](_0x28033d,_0x3c4759,_0x36bcad,_0x2d92b2,_0x57ace2){return new CompositeBlock(_0x28033d,_0x3c4759,_0x36bcad,_0x2d92b2+(_0x2d92b2<<0x8)+_0x28033d+(_0x3c4759<<0x4)|0x0,_0x57ace2,[],[]);}constructor(_0x313043,_0x438431,_0x2a19c4,_0x2e0443,_0x26f67f,_0x5417d0,_0x395846){this['type']=_0x313043,this['value']=_0x438431,this['from']=_0x2a19c4,this['hash']=_0x2e0443,this['end']=_0x26f67f,this['children']=_0x5417d0,this['positions']=_0x395846,this['hashProp']=[[NodeProp['contextHash'],_0x2e0443]];}['addChild'](_0x3e3c6c,_0x5da83e){_0x3e3c6c['prop'](NodeProp['contextHash'])!=this['hash']&&(_0x3e3c6c=new Tree(_0x3e3c6c['type'],_0x3e3c6c['children'],_0x3e3c6c['positions'],_0x3e3c6c['length'],this['hashProp'])),this['children']['push'](_0x3e3c6c),this['positions']['push'](_0x5da83e);}['toTree'](_0xb19e95,_0x5f337c=this['end']){let _0x5ae35c=this['children']['length']-0x1;return _0x5ae35c>=0x0&&(_0x5f337c=Math['max'](_0x5f337c,this['positions'][_0x5ae35c]+this['children'][_0x5ae35c]['length']+this['from'])),new Tree(_0xb19e95['types'][this['type']],this['children'],this['positions'],_0x5f337c-this['from'])['balance']({'makeTree':(_0x19a27a,_0x5acbde,_0x3f5bdc)=>new Tree(NodeType['none'],_0x19a27a,_0x5acbde,_0x3f5bdc,this['hashProp'])});}}var Type;!function(_0x3a129f){_0x3a129f[_0x3a129f['Document']=0x1]='Document',_0x3a129f[_0x3a129f['CodeBlock']=0x2]='CodeBlock',_0x3a129f[_0x3a129f['FencedCode']=0x3]='FencedCode',_0x3a129f[_0x3a129f['Blockquote']=0x4]='Blockquote',_0x3a129f[_0x3a129f['HorizontalRule']=0x5]='HorizontalRule',_0x3a129f[_0x3a129f['BulletList']=0x6]='BulletList',_0x3a129f[_0x3a129f['OrderedList']=0x7]='OrderedList',_0x3a129f[_0x3a129f['ListItem']=0x8]='ListItem',_0x3a129f[_0x3a129f['ATXHeading1']=0x9]='ATXHeading1',_0x3a129f[_0x3a129f['ATXHeading2']=0xa]='ATXHeading2',_0x3a129f[_0x3a129f['ATXHeading3']=0xb]='ATXHeading3',_0x3a129f[_0x3a129f['ATXHeading4']=0xc]='ATXHeading4',_0x3a129f[_0x3a129f['ATXHeading5']=0xd]='ATXHeading5',_0x3a129f[_0x3a129f['ATXHeading6']=0xe]='ATXHeading6',_0x3a129f[_0x3a129f['SetextHeading1']=0xf]='SetextHeading1',_0x3a129f[_0x3a129f['SetextHeading2']=0x10]='SetextHeading2',_0x3a129f[_0x3a129f['HTMLBlock']=0x11]='HTMLBlock',_0x3a129f[_0x3a129f['LinkReference']=0x12]='LinkReference',_0x3a129f[_0x3a129f['Paragraph']=0x13]='Paragraph',_0x3a129f[_0x3a129f['CommentBlock']=0x14]='CommentBlock',_0x3a129f[_0x3a129f['ProcessingInstructionBlock']=0x15]='ProcessingInstructionBlock',_0x3a129f[_0x3a129f['Escape']=0x16]='Escape',_0x3a129f[_0x3a129f['Entity']=0x17]='Entity',_0x3a129f[_0x3a129f['HardBreak']=0x18]='HardBreak',_0x3a129f[_0x3a129f['Emphasis']=0x19]='Emphasis',_0x3a129f[_0x3a129f['StrongEmphasis']=0x1a]='StrongEmphasis',_0x3a129f[_0x3a129f['Link']=0x1b]='Link',_0x3a129f[_0x3a129f['Image']=0x1c]='Image',_0x3a129f[_0x3a129f['InlineCode']=0x1d]='InlineCode',_0x3a129f[_0x3a129f['HTMLTag']=0x1e]='HTMLTag',_0x3a129f[_0x3a129f['Comment']=0x1f]='Comment',_0x3a129f[_0x3a129f['ProcessingInstruction']=0x20]='ProcessingInstruction',_0x3a129f[_0x3a129f['Autolink']=0x21]='Autolink',_0x3a129f[_0x3a129f['HeaderMark']=0x22]='HeaderMark',_0x3a129f[_0x3a129f['QuoteMark']=0x23]='QuoteMark',_0x3a129f[_0x3a129f['ListMark']=0x24]='ListMark',_0x3a129f[_0x3a129f['LinkMark']=0x25]='LinkMark',_0x3a129f[_0x3a129f['EmphasisMark']=0x26]='EmphasisMark',_0x3a129f[_0x3a129f['CodeMark']=0x27]='CodeMark',_0x3a129f[_0x3a129f['CodeText']=0x28]='CodeText',_0x3a129f[_0x3a129f['CodeInfo']=0x29]='CodeInfo',_0x3a129f[_0x3a129f['LinkTitle']=0x2a]='LinkTitle',_0x3a129f[_0x3a129f['LinkLabel']=0x2b]='LinkLabel',_0x3a129f[_0x3a129f['URL']=0x2c]='URL';}(Type||(Type={}));class LeafBlock{constructor(_0x41cb7a,_0x384dc4){this['start']=_0x41cb7a,this['content']=_0x384dc4,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 _0x936553=this['skipSpace'](this['basePos']);this['indent']=this['countIndent'](_0x936553,this['pos'],this['indent']),this['pos']=_0x936553,this['next']=_0x936553==this['text']['length']?-0x1:this['text']['charCodeAt'](_0x936553);}['skipSpace'](_0x563dd3){return skipSpace(this['text'],_0x563dd3);}['reset'](_0x4c0b01){for(this['text']=_0x4c0b01,this['baseIndent']=this['basePos']=this['pos']=this['indent']=0x0,this['forwardInner'](),this['depth']=0x1;this['markers']['length'];)this['markers']['pop']();}['moveBase'](_0x26aecb){this['basePos']=_0x26aecb,this['baseIndent']=this['countIndent'](_0x26aecb,this['pos'],this['indent']);}['moveBaseColumn'](_0x133a9a){this['baseIndent']=_0x133a9a,this['basePos']=this['findColumn'](_0x133a9a);}['addMarker'](_0x590288){this['markers']['push'](_0x590288);}['countIndent'](_0x422856,_0xc838a1=0x0,_0xa6eeff=0x0){for(let _0x515cc6=_0xc838a1;_0x515cc6<_0x422856;_0x515cc6++)_0xa6eeff+=0x9==this['text']['charCodeAt'](_0x515cc6)?0x4-_0xa6eeff%0x4:0x1;return _0xa6eeff;}['findColumn'](_0xc7f648){let _0x4f529a=0x0;for(let _0x1c8ff1=0x0;_0x4f529a<this['text']['length']&&_0x1c8ff1<_0xc7f648;_0x4f529a++)_0x1c8ff1+=0x9==this['text']['charCodeAt'](_0x4f529a)?0x4-_0x1c8ff1%0x4:0x1;return _0x4f529a;}['scrub'](){if(!this['baseIndent'])return this['text'];let _0x243215='';for(let _0x288746=0x0;_0x288746<this['basePos'];_0x288746++)_0x243215+='\x20';return _0x243215+this['text']['slice'](this['basePos']);}}function skipForList(_0x229ea4,_0x44cefa,_0x488733){if(_0x488733['pos']==_0x488733['text']['length']||_0x229ea4!=_0x44cefa['block']&&_0x488733['indent']>=_0x44cefa['stack'][_0x488733['depth']+0x1]['value']+_0x488733['baseIndent'])return!0x0;if(_0x488733['indent']>=_0x488733['baseIndent']+0x4)return!0x1;let _0x5328d9=(_0x229ea4['type']==Type['OrderedList']?isOrderedList:isBulletList)(_0x488733,_0x44cefa,!0x1);return _0x5328d9>0x0&&(_0x229ea4['type']!=Type['BulletList']||isHorizontalRule(_0x488733,_0x44cefa,!0x1)<0x0)&&_0x488733['text']['charCodeAt'](_0x488733['pos']+_0x5328d9-0x1)==_0x229ea4['value'];}const DefaultSkipMarkup={[Type['Blockquote']]:(_0x2243fe,_0x38812e,_0x5a2f2c)=>0x3e==_0x5a2f2c['next']&&(_0x5a2f2c['markers']['push'](elt(Type['QuoteMark'],_0x38812e['lineStart']+_0x5a2f2c['pos'],_0x38812e['lineStart']+_0x5a2f2c['pos']+0x1)),_0x5a2f2c['moveBase'](_0x5a2f2c['pos']+(space(_0x5a2f2c['text']['charCodeAt'](_0x5a2f2c['pos']+0x1))?0x2:0x1)),_0x2243fe['end']=_0x38812e['lineStart']+_0x5a2f2c['text']['length'],!0x0),[Type['ListItem']]:(_0x11fe84,_0x3acabb,_0x34c13f)=>!(_0x34c13f['indent']<_0x34c13f['baseIndent']+_0x11fe84['value']&&_0x34c13f['next']>-0x1)&&(_0x34c13f['moveBaseColumn'](_0x34c13f['baseIndent']+_0x11fe84['value']),!0x0),[Type['OrderedList']]:skipForList,[Type['BulletList']]:skipForList,[Type['Document']]:()=>!0x0};function space(_0x519fb1){return 0x20==_0x519fb1||0x9==_0x519fb1||0xa==_0x519fb1||0xd==_0x519fb1;}function skipSpace(_0xa31d12,_0x5247cc=0x0){for(;_0x5247cc<_0xa31d12['length']&&space(_0xa31d12['charCodeAt'](_0x5247cc));)_0x5247cc++;return _0x5247cc;}function skipSpaceBack(_0x21974b,_0x5e01eb,_0x4bdda0){for(;_0x5e01eb>_0x4bdda0&&space(_0x21974b['charCodeAt'](_0x5e01eb-0x1));)_0x5e01eb--;return _0x5e01eb;}function isFencedCode(_0x42fd3f){if(0x60!=_0x42fd3f['next']&&0x7e!=_0x42fd3f['next'])return-0x1;let _0xa785df=_0x42fd3f['pos']+0x1;for(;_0xa785df<_0x42fd3f['text']['length']&&_0x42fd3f['text']['charCodeAt'](_0xa785df)==_0x42fd3f['next'];)_0xa785df++;if(_0xa785df<_0x42fd3f['pos']+0x3)return-0x1;if(0x60==_0x42fd3f['next']){for(let _0x565900=_0xa785df;_0x565900<_0x42fd3f['text']['length'];_0x565900++)if(0x60==_0x42fd3f['text']['charCodeAt'](_0x565900))return-0x1;}return _0xa785df;}function isBlockquote(_0xbf2cd8){return 0x3e!=_0xbf2cd8['next']?-0x1:0x20==_0xbf2cd8['text']['charCodeAt'](_0xbf2cd8['pos']+0x1)?0x2:0x1;}function isHorizontalRule(_0x2bd65f,_0x15b257,_0x404b16){if(0x2a!=_0x2bd65f['next']&&0x2d!=_0x2bd65f['next']&&0x5f!=_0x2bd65f['next'])return-0x1;let _0x3cd4f8=0x1;for(let _0x35d2e0=_0x2bd65f['pos']+0x1;_0x35d2e0<_0x2bd65f['text']['length'];_0x35d2e0++){let _0x88c2a5=_0x2bd65f['text']['charCodeAt'](_0x35d2e0);if(_0x88c2a5==_0x2bd65f['next'])_0x3cd4f8++;else{if(!space(_0x88c2a5))return-0x1;}}return _0x404b16&&0x2d==_0x2bd65f['next']&&isSetextUnderline(_0x2bd65f)>-0x1&&_0x2bd65f['depth']==_0x15b257['stack']['length']&&_0x15b257['parser']['leafBlockParsers']['indexOf'](DefaultLeafBlocks['SetextHeading'])>-0x1||_0x3cd4f8<0x3?-0x1:0x1;}function inList(_0x42d02a,_0x102a3f){for(let _0x3d51b2=_0x42d02a['stack']['length']-0x1;_0x3d51b2>=0x0;_0x3d51b2--)if(_0x42d02a['stack'][_0x3d51b2]['type']==_0x102a3f)return!0x0;return!0x1;}function isBulletList(_0x5a473c,_0x434e31,_0x515daa){return 0x2d!=_0x5a473c['next']&&0x2b!=_0x5a473c['next']&&0x2a!=_0x5a473c['next']||_0x5a473c['pos']!=_0x5a473c['text']['length']-0x1&&!space(_0x5a473c['text']['charCodeAt'](_0x5a473c['pos']+0x1))||!(!_0x515daa||inList(_0x434e31,Type['BulletList'])||_0x5a473c['skipSpace'](_0x5a473c['pos']+0x2)<_0x5a473c['text']['length'])?-0x1:0x1;}function isOrderedList(_0x5c8bd0,_0x2cf162,_0xdfed39){let _0x17426c=_0x5c8bd0['pos'],_0x4a9dcb=_0x5c8bd0['next'];for(;_0x4a9dcb>=0x30&&_0x4a9dcb<=0x39;){if(_0x17426c++,_0x17426c==_0x5c8bd0['text']['length'])return-0x1;_0x4a9dcb=_0x5c8bd0['text']['charCodeAt'](_0x17426c);}return _0x17426c==_0x5c8bd0['pos']||_0x17426c>_0x5c8bd0['pos']+0x9||0x2e!=_0x4a9dcb&&0x29!=_0x4a9dcb||_0x17426c<_0x5c8bd0['text']['length']-0x1&&!space(_0x5c8bd0['text']['charCodeAt'](_0x17426c+0x1))||_0xdfed39&&!inList(_0x2cf162,Type['OrderedList'])&&(_0x5c8bd0['skipSpace'](_0x17426c+0x1)==_0x5c8bd0['text']['length']||_0x17426c>_0x5c8bd0['pos']+0x1||0x31!=_0x5c8bd0['next'])?-0x1:_0x17426c+0x1-_0x5c8bd0['pos'];}function isAtxHeading(_0x1bcba9){if(0x23!=_0x1bcba9['next'])return-0x1;let _0x1c4f77=_0x1bcba9['pos']+0x1;for(;_0x1c4f77<_0x1bcba9['text']['length']&&0x23==_0x1bcba9['text']['charCodeAt'](_0x1c4f77);)_0x1c4f77++;if(_0x1c4f77<_0x1bcba9['text']['length']&&0x20!=_0x1bcba9['text']['charCodeAt'](_0x1c4f77))return-0x1;let _0x11d4fd=_0x1c4f77-_0x1bcba9['pos'];return _0x11d4fd>0x6?-0x1:_0x11d4fd;}function isSetextUnderline(_0x259568){if(0x2d!=_0x259568['next']&&0x3d!=_0x259568['next']||_0x259568['indent']>=_0x259568['baseIndent']+0x4)return-0x1;let _0x452599=_0x259568['pos']+0x1;for(;_0x452599<_0x259568['text']['length']&&_0x259568['text']['charCodeAt'](_0x452599)==_0x259568['next'];)_0x452599++;let _0x545b9a=_0x452599;for(;_0x452599<_0x259568['text']['length']&&space(_0x259568['text']['charCodeAt'](_0x452599));)_0x452599++;return _0x452599==_0x259568['text']['length']?_0x545b9a:-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(_0x350ebc,_0x2981ca,_0x5d3917){if(0x3c!=_0x350ebc['next'])return-0x1;let _0x47434d=_0x350ebc['text']['slice'](_0x350ebc['pos']);for(let _0x9eb6c5=0x0,_0x5ea2ec=HTMLBlockStyle['length']-(_0x5d3917?0x1:0x0);_0x9eb6c5<_0x5ea2ec;_0x9eb6c5++)if(HTMLBlockStyle[_0x9eb6c5][0x0]['test'](_0x47434d))return _0x9eb6c5;return-0x1;}function getListIndent(_0x2af913,_0x1119a7){let _0x22c3bd=_0x2af913['countIndent'](_0x1119a7,_0x2af913['pos'],_0x2af913['indent']),_0x13755c=_0x2af913['countIndent'](_0x2af913['skipSpace'](_0x1119a7),_0x1119a7,_0x22c3bd);return _0x13755c>=_0x22c3bd+0x5?_0x22c3bd+0x1:_0x13755c;}function addCodeText(_0x2c9bbf,_0x1e258e,_0x29ae72){let _0x3c1bd3=_0x2c9bbf['length']-0x1;_0x3c1bd3>=0x0&&_0x2c9bbf[_0x3c1bd3]['to']==_0x1e258e&&_0x2c9bbf[_0x3c1bd3]['type']==Type['CodeText']?_0x2c9bbf[_0x3c1bd3]['to']=_0x29ae72:_0x2c9bbf['push'](elt(Type['CodeText'],_0x1e258e,_0x29ae72));}const DefaultBlockParsers={'LinkReference':void 0x0,'IndentedCode'(_0x58b8b8,_0x2e61d7){let _0x13316a=_0x2e61d7['baseIndent']+0x4;if(_0x2e61d7['indent']<_0x13316a)return!0x1;let _0x7b8260=_0x2e61d7['findColumn'](_0x13316a),_0x376fda=_0x58b8b8['lineStart']+_0x7b8260,_0x41400a=_0x58b8b8['lineStart']+_0x2e61d7['text']['length'],_0x5e46a1=[],_0x25fdf2=[];for(addCodeText(_0x5e46a1,_0x376fda,_0x41400a);_0x58b8b8['nextLine']()&&_0x2e61d7['depth']>=_0x58b8b8['stack']['length'];)if(_0x2e61d7['pos']==_0x2e61d7['text']['length']){addCodeText(_0x25fdf2,_0x58b8b8['lineStart']-0x1,_0x58b8b8['lineStart']);for(let _0x1bb0cd of _0x2e61d7['markers'])_0x25fdf2['push'](_0x1bb0cd);}else{if(_0x2e61d7['indent']<_0x13316a)break;{if(_0x25fdf2['length']){for(let _0x19c5fa of _0x25fdf2)_0x19c5fa['type']==Type['CodeText']?addCodeText(_0x5e46a1,_0x19c5fa['from'],_0x19c5fa['to']):_0x5e46a1['push'](_0x19c5fa);_0x25fdf2=[];}addCodeText(_0x5e46a1,_0x58b8b8['lineStart']-0x1,_0x58b8b8['lineStart']);for(let _0x217784 of _0x2e61d7['markers'])_0x5e46a1['push'](_0x217784);_0x41400a=_0x58b8b8['lineStart']+_0x2e61d7['text']['length'];let _0x89c3b=_0x58b8b8['lineStart']+_0x2e61d7['findColumn'](_0x2e61d7['baseIndent']+0x4);_0x89c3b<_0x41400a&&addCodeText(_0x5e46a1,_0x89c3b,_0x41400a);}}return _0x25fdf2['length']&&(_0x25fdf2=_0x25fdf2['filter'](_0x29351c=>_0x29351c['type']!=Type['CodeText']),_0x25fdf2['length']&&(_0x2e61d7['markers']=_0x25fdf2['concat'](_0x2e61d7['markers']))),_0x58b8b8['addNode'](_0x58b8b8['buffer']['writeElements'](_0x5e46a1,-_0x376fda)['finish'](Type['CodeBlock'],_0x41400a-_0x376fda),_0x376fda),!0x0;},'FencedCode'(_0x45b34b,_0x49194b){let _0x5e8872=isFencedCode(_0x49194b);if(_0x5e8872<0x0)return!0x1;let _0x11b0b4=_0x45b34b['lineStart']+_0x49194b['pos'],_0x1dc70f=_0x49194b['next'],_0xd20913=_0x5e8872-_0x49194b['pos'],_0x97c4d3=_0x49194b['skipSpace'](_0x5e8872),_0x13c377=skipSpaceBack(_0x49194b['text'],_0x49194b['text']['length'],_0x97c4d3),_0x5535fe=[elt(Type['CodeMark'],_0x11b0b4,_0x11b0b4+_0xd20913)];_0x97c4d3<_0x13c377&&_0x5535fe['push'](elt(Type['CodeInfo'],_0x45b34b['lineStart']+_0x97c4d3,_0x45b34b['lineStart']+_0x13c377));for(let _0x1a12f0=!0x0;_0x45b34b['nextLine']()&&_0x49194b['depth']>=_0x45b34b['stack']['length'];_0x1a12f0=!0x1){let _0x3be59e=_0x49194b['pos'];if(_0x49194b['indent']-_0x49194b['baseIndent']<0x4){for(;_0x3be59e<_0x49194b['text']['length']&&_0x49194b['text']['charCodeAt'](_0x3be59e)==_0x1dc70f;)_0x3be59e++;}if(_0x3be59e-_0x49194b['pos']>=_0xd20913&&_0x49194b['skipSpace'](_0x3be59e)==_0x49194b['text']['length']){for(let _0x3a83a3 of _0x49194b['markers'])_0x5535fe['push'](_0x3a83a3);_0x5535fe['push'](elt(Type['CodeMark'],_0x45b34b['lineStart']+_0x49194b['pos'],_0x45b34b['lineStart']+_0x3be59e)),_0x45b34b['nextLine']();break;}{_0x1a12f0||addCodeText(_0x5535fe,_0x45b34b['lineStart']-0x1,_0x45b34b['lineStart']);for(let _0x3b640a of _0x49194b['markers'])_0x5535fe['push'](_0x3b640a);let _0x2d6290=_0x45b34b['lineStart']+_0x49194b['basePos'],_0x300e23=_0x45b34b['lineStart']+_0x49194b['text']['length'];_0x2d6290<_0x300e23&&addCodeText(_0x5535fe,_0x2d6290,_0x300e23);}}return _0x45b34b['addNode'](_0x45b34b['buffer']['writeElements'](_0x5535fe,-_0x11b0b4)['finish'](Type['FencedCode'],_0x45b34b['prevLineEnd']()-_0x11b0b4),_0x11b0b4),!0x0;},'Blockquote'(_0x2fa2d4,_0x4b00dd){let _0x304c62=isBlockquote(_0x4b00dd);return!(_0x304c62<0x0)&&(_0x2fa2d4['startContext'](Type['Blockquote'],_0x4b00dd['pos']),_0x2fa2d4['addNode'](Type['QuoteMark'],_0x2fa2d4['lineStart']+_0x4b00dd['pos'],_0x2fa2d4['lineStart']+_0x4b00dd['pos']+0x1),_0x4b00dd['moveBase'](_0x4b00dd['pos']+_0x304c62),null);},'HorizontalRule'(_0x4159b6,_0x5c605c){if(isHorizontalRule(_0x5c605c,_0x4159b6,!0x1)<0x0)return!0x1;let _0x32b8e2=_0x4159b6['lineStart']+_0x5c605c['pos'];return _0x4159b6['nextLine'](),_0x4159b6['addNode'](Type['HorizontalRule'],_0x32b8e2),!0x0;},'BulletList'(_0x1a47dd,_0x2df43c){let _0x14ae2f=isBulletList(_0x2df43c,_0x1a47dd,!0x1);if(_0x14ae2f<0x0)return!0x1;_0x1a47dd['block']['type']!=Type['BulletList']&&_0x1a47dd['startContext'](Type['BulletList'],_0x2df43c['basePos'],_0x2df43c['next']);let _0x4c354c=getListIndent(_0x2df43c,_0x2df43c['pos']+0x1);return _0x1a47dd['startContext'](Type['ListItem'],_0x2df43c['basePos'],_0x4c354c-_0x2df43c['baseIndent']),_0x1a47dd['addNode'](Type['ListMark'],_0x1a47dd['lineStart']+_0x2df43c['pos'],_0x1a47dd['lineStart']+_0x2df43c['pos']+_0x14ae2f),_0x2df43c['moveBaseColumn'](_0x4c354c),null;},'OrderedList'(_0x15b3b0,_0x1c0eaf){let _0x2406bf=isOrderedList(_0x1c0eaf,_0x15b3b0,!0x1);if(_0x2406bf<0x0)return!0x1;_0x15b3b0['block']['type']!=Type['OrderedList']&&_0x15b3b0['startContext'](Type['OrderedList'],_0x1c0eaf['basePos'],_0x1c0eaf['text']['charCodeAt'](_0x1c0eaf['pos']+_0x2406bf-0x1));let _0x3501b1=getListIndent(_0x1c0eaf,_0x1c0eaf['pos']+_0x2406bf);return _0x15b3b0['startContext'](Type['ListItem'],_0x1c0eaf['basePos'],_0x3501b1-_0x1c0eaf['baseIndent']),_0x15b3b0['addNode'](Type['ListMark'],_0x15b3b0['lineStart']+_0x1c0eaf['pos'],_0x15b3b0['lineStart']+_0x1c0eaf['pos']+_0x2406bf),_0x1c0eaf['moveBaseColumn'](_0x3501b1),null;},'ATXHeading'(_0x3c7409,_0x369fe4){let _0x49a141=isAtxHeading(_0x369fe4);if(_0x49a141<0x0)return!0x1;let _0x41b053=_0x369fe4['pos'],_0x3619ac=_0x3c7409['lineStart']+_0x41b053,_0x3f9450=skipSpaceBack(_0x369fe4['text'],_0x369fe4['text']['length'],_0x41b053),_0x32fa8b=_0x3f9450;for(;_0x32fa8b>_0x41b053&&_0x369fe4['text']['charCodeAt'](_0x32fa8b-0x1)==_0x369fe4['next'];)_0x32fa8b--;_0x32fa8b!=_0x3f9450&&_0x32fa8b!=_0x41b053&&space(_0x369fe4['text']['charCodeAt'](_0x32fa8b-0x1))||(_0x32fa8b=_0x369fe4['text']['length']);let _0x22c22a=_0x3c7409['buffer']['write'](Type['HeaderMark'],0x0,_0x49a141)['writeElements'](_0x3c7409['parser']['parseInline'](_0x369fe4['text']['slice'](_0x41b053+_0x49a141+0x1,_0x32fa8b),_0x3619ac+_0x49a141+0x1),-_0x3619ac);_0x32fa8b<_0x369fe4['text']['length']&&_0x22c22a['write'](Type['HeaderMark'],_0x32fa8b-_0x41b053,_0x3f9450-_0x41b053);let _0x3ea21d=_0x22c22a['finish'](Type['ATXHeading1']-0x1+_0x49a141,_0x369fe4['text']['length']-_0x41b053);return _0x3c7409['nextLine'](),_0x3c7409['addNode'](_0x3ea21d,_0x3619ac),!0x0;},'HTMLBlock'(_0x1ce3ff,_0x265786){let _0x2823b0=isHTMLBlock(_0x265786,_0x1ce3ff,!0x1);if(_0x2823b0<0x0)return!0x1;let _0x11ee72=_0x1ce3ff['lineStart']+_0x265786['pos'],_0x4f9096=HTMLBlockStyle[_0x2823b0][0x1],_0x26f414=[],_0x5df969=_0x4f9096!=EmptyLine;for(;!_0x4f9096['test'](_0x265786['text'])&&_0x1ce3ff['nextLine']();){if(_0x265786['depth']<_0x1ce3ff['stack']['length']){_0x5df969=!0x1;break;}for(let _0x2b480d of _0x265786['markers'])_0x26f414['push'](_0x2b480d);}_0x5df969&&_0x1ce3ff['nextLine']();let _0x56c448=_0x4f9096==CommentEnd?Type['CommentBlock']:_0x4f9096==ProcessingEnd?Type['ProcessingInstructionBlock']:Type['HTMLBlock'],_0xf2ca6f=_0x1ce3ff['prevLineEnd']();return _0x1ce3ff['addNode'](_0x1ce3ff['buffer']['writeElements'](_0x26f414,-_0x11ee72)['finish'](_0x56c448,_0xf2ca6f-_0x11ee72),_0x11ee72),!0x0;},'SetextHeading':void 0x0};class LinkReferenceParser{constructor(_0x4b4c8c){this['stage']=0x0,this['elts']=[],this['pos']=0x0,this['start']=_0x4b4c8c['start'],this['advance'](_0x4b4c8c['content']);}['nextLine'](_0x44c628,_0x11ad8d,_0x5d4dd8){if(-0x1==this['stage'])return!0x1;let _0x3c1020=_0x5d4dd8['content']+'\x0a'+_0x11ad8d['scrub'](),_0x3bffaa=this['advance'](_0x3c1020);return _0x3bffaa>-0x1&&_0x3bffaa<_0x3c1020['length']&&this['complete'](_0x44c628,_0x5d4dd8,_0x3bffaa);}['finish'](_0x1d66e7,_0x1e31f0){return(0x2==this['stage']||0x3==this['stage'])&&skipSpace(_0x1e31f0['content'],this['pos'])==_0x1e31f0['content']['length']&&this['complete'](_0x1d66e7,_0x1e31f0,_0x1e31f0['content']['length']);}['complete'](_0x1f730e,_0x3ba2be,_0x4480a8){return _0x1f730e['addLeafElement'](_0x3ba2be,elt(Type['LinkReference'],this['start'],this['start']+_0x4480a8,this['elts'])),!0x0;}['nextStage'](_0x22a353){return _0x22a353?(this['pos']=_0x22a353['to']-this['start'],this['elts']['push'](_0x22a353),this['stage']++,!0x0):(!0x1===_0x22a353&&(this['stage']=-0x1),!0x1);}['advance'](_0xd1ca60){for(;;){if(-0x1==this['stage'])return-0x1;if(0x0==this['stage']){if(!this['nextStage'](parseLinkLabel(_0xd1ca60,this['pos'],this['start'],!0x0)))return-0x1;if(0x3a!=_0xd1ca60['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 _0x46f014=skipSpace(_0xd1ca60,this['pos']),_0xad6f79=0x0;if(_0x46f014>this['pos']){let _0x2e0502=parseLinkTitle(_0xd1ca60,_0x46f014,this['start']);if(_0x2e0502){let _0x3f9ef6=lineEnd(_0xd1ca60,_0x2e0502['to']-this['start']);_0x3f9ef6>0x0&&(this['nextStage'](_0x2e0502),_0xad6f79=_0x3f9ef6);}}return _0xad6f79||(_0xad6f79=lineEnd(_0xd1ca60,this['pos'])),_0xad6f79>0x0&&_0xad6f79<_0xd1ca60['length']?_0xad6f79:-0x1;}return lineEnd(_0xd1ca60,this['pos']);}if(!this['nextStage'](parseURL(_0xd1ca60,skipSpace(_0xd1ca60,this['pos']),this['start'])))return-0x1;}}}}function lineEnd(_0x883b5e,_0x5b3e87){for(;_0x5b3e87<_0x883b5e['length'];_0x5b3e87++){let _0x197a59=_0x883b5e['charCodeAt'](_0x5b3e87);if(0xa==_0x197a59)break;if(!space(_0x197a59))return-0x1;}return _0x5b3e87;}class SetextHeadingParser{['nextLine'](_0x15e353,_0x1c147b,_0x23948d){let _0x12c7d0=_0x1c147b['depth']<_0x15e353['stack']['length']?-0x1:isSetextUnderline(_0x1c147b),_0x35a45f=_0x1c147b['next'];if(_0x12c7d0<0x0)return!0x1;let _0x35930a=elt(Type['HeaderMark'],_0x15e353['lineStart']+_0x1c147b['pos'],_0x15e353['lineStart']+_0x12c7d0);return _0x15e353['nextLine'](),_0x15e353['addLeafElement'](_0x23948d,elt(0x3d==_0x35a45f?Type['SetextHeading1']:Type['SetextHeading2'],_0x23948d['start'],_0x15e353['prevLineEnd'](),[..._0x15e353['parser']['parseInline'](_0x23948d['content'],_0x23948d['start']),_0x35930a])),!0x0;}['finish'](){return!0x1;}}const DefaultLeafBlocks={'LinkReference':(_0x2bad45,_0x59a784)=>0x5b==_0x59a784['content']['charCodeAt'](0x0)?new LinkReferenceParser(_0x59a784):null,'SetextHeading':()=>new SetextHeadingParser()},DefaultEndLeaf=[(_0x5d0439,_0x404ae6)=>isAtxHeading(_0x404ae6)>=0x0,(_0x478316,_0x4197c5)=>isFencedCode(_0x4197c5)>=0x0,(_0x13d924,_0x28b08f)=>isBlockquote(_0x28b08f)>=0x0,(_0x43d0c5,_0x4c8f3d)=>isBulletList(_0x4c8f3d,_0x43d0c5,!0x0)>=0x0,(_0x416e42,_0x5a98ec)=>isOrderedList(_0x5a98ec,_0x416e42,!0x0)>=0x0,(_0x590167,_0x192e8c)=>isHorizontalRule(_0x192e8c,_0x590167,!0x0)>=0x0,(_0x58ee49,_0x2b923f)=>isHTMLBlock(_0x2b923f,_0x58ee49,!0x0)>=0x0],scanLineResult={'text':'','end':0x0};class BlockContext{constructor(_0x3032fc,_0x913b3a,_0x11d19d,_0x181906){this['parser']=_0x3032fc,this['input']=_0x913b3a,this['ranges']=_0x181906,this['line']=new Line(),this['atEnd']=!0x1,this['reusePlaceholders']=new Map(),this['stoppedAt']=null,this['rangeI']=0x0,this['to']=_0x181906[_0x181906['length']-0x1]['to'],this['lineStart']=this['absoluteLineStart']=this['absoluteLineEnd']=_0x181906[0x0]['from'],this['block']=CompositeBlock['create'](Type['Document'],0x0,this['lineStart'],0x0,0x0),this['stack']=[this['block']],this['fragments']=_0x11d19d['length']?new FragmentCursor(_0x11d19d,_0x913b3a):null,this['readLine']();}get['parsedPos'](){return this['absoluteLineStart'];}['advance'](){if(null!=this['stoppedAt']&&this['absoluteLineStart']>this['stoppedAt'])return this['finish']();let {line:_0x5e0a7e}=this;for(;;){for(let _0x32dcf2=0x0;;){let _0x31d9ab=_0x5e0a7e['depth']<this['stack']['length']?this['stack'][this['stack']['length']-0x1]:null;for(;_0x32dcf2<_0x5e0a7e['markers']['length']&&(!_0x31d9ab||_0x5e0a7e['markers'][_0x32dcf2]['from']<_0x31d9ab['end']);){let _0x45d716=_0x5e0a7e['markers'][_0x32dcf2++];this['addNode'](_0x45d716['type'],_0x45d716['from'],_0x45d716['to']);}if(!_0x31d9ab)break;this['finishContext']();}if(_0x5e0a7e['pos']<_0x5e0a7e['text']['length'])break;if(!this['nextLine']())return this['finish']();}if(this['fragments']&&this['reuseFragment'](_0x5e0a7e['basePos']))return null;t:for(;;){for(let _0x28e97d of this['parser']['blockParsers'])if(_0x28e97d){let _0xbe1790=_0x28e97d(this,_0x5e0a7e);if(0x0!=_0xbe1790){if(0x1==_0xbe1790)return null;_0x5e0a7e['forward']();continue t;}}break;}let _0x3e05d7=new LeafBlock(this['lineStart']+_0x5e0a7e['pos'],_0x5e0a7e['text']['slice'](_0x5e0a7e['pos']));for(let _0x1adb8c of this['parser']['leafBlockParsers'])if(_0x1adb8c){let _0x35757b=_0x1adb8c(this,_0x3e05d7);_0x35757b&&_0x3e05d7['parsers']['push'](_0x35757b);}t:for(;this['nextLine']()&&_0x5e0a7e['pos']!=_0x5e0a7e['text']['length'];){if(_0x5e0a7e['indent']<_0x5e0a7e['baseIndent']+0x4){for(let _0xb1d045 of this['parser']['endLeafBlock'])if(_0xb1d045(this,_0x5e0a7e,_0x3e05d7))break t;}for(let _0xe21588 of _0x3e05d7['parsers'])if(_0xe21588['nextLine'](this,_0x5e0a7e,_0x3e05d7))return null;_0x3e05d7['content']+='\x0a'+_0x5e0a7e['scrub']();for(let _0x12a8f2 of _0x5e0a7e['markers'])_0x3e05d7['marks']['push'](_0x12a8f2);}return this['finishLeaf'](_0x3e05d7),null;}['stopAt'](_0xafaaa8){if(null!=this['stoppedAt']&&this['stoppedAt']<_0xafaaa8)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0xafaaa8;}['reuseFragment'](_0x2eba03){if(!this['fragments']['moveTo'](this['absoluteLineStart']+_0x2eba03,this['absoluteLineStart'])||!this['fragments']['matches'](this['block']['hash']))return!0x1;let _0x192507=this['fragments']['takeNodes'](this);return!!_0x192507&&(this['absoluteLineStart']+=_0x192507,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'](_0x53d123=this['depth']-0x1){return this['parser']['nodeSet']['types'][this['stack'][_0x53d123]['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'](_0x3c5c57){let _0x11f27d=scanLineResult;if(_0x11f27d['end']=_0x3c5c57,_0x3c5c57>=this['to'])_0x11f27d['text']='';else{if(_0x11f27d['text']=this['lineChunkAt'](_0x3c5c57),_0x11f27d['end']+=_0x11f27d['text']['length'],this['ranges']['length']>0x1){let _0x2d2e1d=this['absoluteLineStart'],_0x25ba9f=this['rangeI'];for(;this['ranges'][_0x25ba9f]['to']<_0x11f27d['end'];){_0x25ba9f++;let _0x227b49=this['ranges'][_0x25ba9f]['from'],_0x33f3d8=this['lineChunkAt'](_0x227b49);_0x11f27d['end']=_0x227b49+_0x33f3d8['length'],_0x11f27d['text']=_0x11f27d['text']['slice'](0x0,this['ranges'][_0x25ba9f-0x1]['to']-_0x2d2e1d)+_0x33f3d8,_0x2d2e1d=_0x11f27d['end']-_0x11f27d['text']['length'];}}}return _0x11f27d;}['readLine'](){let {line:_0x11dbc9}=this,{text:_0x5e894c,end:_0x220b5b}=this['scanLine'](this['absoluteLineStart']);for(this['absoluteLineEnd']=_0x220b5b,_0x11dbc9['reset'](_0x5e894c);_0x11dbc9['depth']<this['stack']['length'];_0x11dbc9['depth']++){let _0x296e7e=this['stack'][_0x11dbc9['depth']],_0x46c50f=this['parser']['skipContextMarkup'][_0x296e7e['type']];if(!_0x46c50f)throw new Error('Unhandled\x20block\x20context\x20'+Type[_0x296e7e['type']]);let _0x4c4737=this['line']['markers']['length'];if(!_0x46c50f(_0x296e7e,this,_0x11dbc9)){this['line']['markers']['length']>_0x4c4737&&(_0x296e7e['end']=this['line']['markers'][this['line']['markers']['length']-0x1]['to']);break;}_0x11dbc9['forward']();}}['lineChunkAt'](_0x1ae0d9){let _0xce8108,_0x1fd124=this['input']['chunk'](_0x1ae0d9);if(this['input']['lineChunks'])_0xce8108='\x0a'==_0x1fd124?'':_0x1fd124;else{let _0x1793ca=_0x1fd124['indexOf']('\x0a');_0xce8108=_0x1793ca<0x0?_0x1fd124:_0x1fd124['slice'](0x0,_0x1793ca);}return _0x1ae0d9+_0xce8108['length']>this['to']?_0xce8108['slice'](0x0,this['to']-_0x1ae0d9):_0xce8108;}['prevLineEnd'](){return this['atEnd']?this['lineStart']:this['lineStart']-0x1;}['startContext'](_0x3488c6,_0x2e24b8,_0x1e3e46=0x0){this['block']=CompositeBlock['create'](_0x3488c6,_0x1e3e46,this['lineStart']+_0x2e24b8,this['block']['hash'],this['lineStart']+this['line']['text']['length']),this['stack']['push'](this['block']);}['startComposite'](_0x4f1310,_0x1da961,_0x2add24=0x0){this['startContext'](this['parser']['getNodeType'](_0x4f1310),_0x1da961,_0x2add24);}['addNode'](_0x5ea41a,_0x17fc2a,_0x46852b){'number'==typeof _0x5ea41a&&(_0x5ea41a=new Tree(this['parser']['nodeSet']['types'][_0x5ea41a],none,none,(null!=_0x46852b?_0x46852b:this['prevLineEnd']())-_0x17fc2a)),this['block']['addChild'](_0x5ea41a,_0x17fc2a-this['block']['from']);}['addElement'](_0x176eca){this['block']['addChild'](_0x176eca['toTree'](this['parser']['nodeSet']),_0x176eca['from']-this['block']['from']);}['addLeafElement'](_0x226cd9,_0xbb9ae2){this['addNode'](this['buffer']['writeElements'](injectMarks(_0xbb9ae2['children'],_0x226cd9['marks']),-_0xbb9ae2['from'])['finish'](_0xbb9ae2['type'],_0xbb9ae2['to']-_0xbb9ae2['from']),_0xbb9ae2['from']);}['finishContext'](){let _0x565dae=this['stack']['pop'](),_0x4231e8=this['stack'][this['stack']['length']-0x1];_0x4231e8['addChild'](_0x565dae['toTree'](this['parser']['nodeSet']),_0x565dae['from']-_0x4231e8['from']),this['block']=_0x4231e8;}['finish'](){for(;this['stack']['length']>0x1;)this['finishContext']();return this['addGaps'](this['block']['toTree'](this['parser']['nodeSet'],this['lineStart']));}['addGaps'](_0x3c0383){return this['ranges']['length']>0x1?injectGaps(this['ranges'],0x0,_0x3c0383['topNode'],this['ranges'][0x0]['from'],this['reusePlaceholders']):_0x3c0383;}['finishLeaf'](_0x55a210){for(let _0x5194af of _0x55a210['parsers'])if(_0x5194af['finish'](this,_0x55a210))return;let _0x19832e=injectMarks(this['parser']['parseInline'](_0x55a210['content'],_0x55a210['start']),_0x55a210['marks']);this['addNode'](this['buffer']['writeElements'](_0x19832e,-_0x55a210['start'])['finish'](Type['Paragraph'],_0x55a210['content']['length']),_0x55a210['start']);}['elt'](_0x302e73,_0x2ed7aa,_0x52cccb,_0x1d3341){return'string'==typeof _0x302e73?elt(this['parser']['getNodeType'](_0x302e73),_0x2ed7aa,_0x52cccb,_0x1d3341):new TreeElement(_0x302e73,_0x2ed7aa);}get['buffer'](){return new Buffer$1(this['parser']['nodeSet']);}}function injectGaps(_0x2bad9d,_0x18398f,_0x433605,_0xa050a2,_0x3e84b0){let _0x21f1b7=_0x2bad9d[_0x18398f]['to'],_0x30b266=[],_0x2e7e74=[],_0x1cdd24=_0x433605['from']+_0xa050a2;function _0x158ca0(_0x4b6c91,_0xe29396){for(;_0xe29396?_0x4b6c91>=_0x21f1b7:_0x4b6c91>_0x21f1b7;){let _0xa516f=_0x2bad9d[_0x18398f+0x1]['from']-_0x21f1b7;_0xa050a2+=_0xa516f,_0x4b6c91+=_0xa516f,_0x18398f++,_0x21f1b7=_0x2bad9d[_0x18398f]['to'];}}for(let _0x17c4f6=_0x433605['firstChild'];_0x17c4f6;_0x17c4f6=_0x17c4f6['nextSibling']){_0x158ca0(_0x17c4f6['from']+_0xa050a2,!0x0);let _0x49ce4e,_0x642350=_0x17c4f6['from']+_0xa050a2,_0xa22055=_0x3e84b0['get'](_0x17c4f6['tree']);_0xa22055?_0x49ce4e=_0xa22055:_0x17c4f6['to']+_0xa050a2>_0x21f1b7?(_0x49ce4e=injectGaps(_0x2bad9d,_0x18398f,_0x17c4f6,_0xa050a2,_0x3e84b0),_0x158ca0(_0x17c4f6['to']+_0xa050a2,!0x1)):_0x49ce4e=_0x17c4f6['toTree'](),_0x30b266['push'](_0x49ce4e),_0x2e7e74['push'](_0x642350-_0x1cdd24);}return _0x158ca0(_0x433605['to']+_0xa050a2,!0x1),new Tree(_0x433605['type'],_0x30b266,_0x2e7e74,_0x433605['to']+_0xa050a2-_0x1cdd24,_0x433605['tree']?_0x433605['tree']['propValues']:void 0x0);}class MarkdownParser extends Parser{constructor(_0x3b60c8,_0x184df0,_0x267a43,_0x1508c1,_0x36c237,_0xb696cd,_0x2c76a2,_0xcfc1f7,_0x259a53){super(),this['nodeSet']=_0x3b60c8,this['blockParsers']=_0x184df0,this['leafBlockParsers']=_0x267a43,this['blockNames']=_0x1508c1,this['endLeafBlock']=_0x36c237,this['skipContextMarkup']=_0xb696cd,this['inlineParsers']=_0x2c76a2,this['inlineNames']=_0xcfc1f7,this['wrappers']=_0x259a53,this['nodeTypes']=Object['create'](null);for(let t of _0x3b60c8['types'])this['nodeTypes'][t['name']]=t['id'];}['createParse'](_0xbce635,_0x29d83c,_0x493bc1){let _0x4cf878=new BlockContext(this,_0xbce635,_0x29d83c,_0x493bc1);for(let _0xb88f32 of this['wrappers'])_0x4cf878=_0xb88f32(_0x4cf878,_0xbce635,_0x29d83c,_0x493bc1);return _0x4cf878;}['configure'](_0x2dbdd4){let _0x1dfc97=resolveConfig(_0x2dbdd4);if(!_0x1dfc97)return this;let {nodeSet:_0x65834e,skipContextMarkup:_0x3420ff}=this,_0x5c6e37=this['blockParsers']['slice'](),_0x4e1c34=this['leafBlockParsers']['slice'](),_0xed792=this['blockNames']['slice'](),_0x40d5f4=this['inlineParsers']['slice'](),_0x4d6d59=this['inlineNames']['slice'](),_0x463fda=this['endLeafBlock']['slice'](),_0xfd75be=this['wrappers'];if(nonEmpty(_0x1dfc97['defineNodes'])){_0x3420ff=Object['assign']({},_0x3420ff);let _0x2035b1,_0x28dc39=_0x65834e['types']['slice']();for(let _0x3382ac of _0x1dfc97['defineNodes']){let {name:_0x5a311e,block:_0x5d1957,composite:_0x4c0f63,style:_0x2bb2eb}='string'==typeof _0x3382ac?{'name':_0x3382ac}:_0x3382ac;if(_0x28dc39['some'](t=>t['name']==_0x5a311e))continue;_0x4c0f63&&(_0x3420ff[_0x28dc39['length']]=(_0x489407,_0xeb9790,_0x5c037a)=>_0x4c0f63(_0xeb9790,_0x5c037a,_0x489407['value']));let _0x17ee03=_0x28dc39['length'],_0xbb91cf=_0x4c0f63?['Block','BlockContext']:_0x5d1957?_0x17ee03>=Type['ATXHeading1']&&_0x17ee03<=Type['SetextHeading2']?['Block','LeafBlock','Heading']:['Block','LeafBlock']:void 0x0;_0x28dc39['push'](NodeType['define']({'id':_0x17ee03,'name':_0x5a311e,'props':_0xbb91cf&&[[NodeProp['group'],_0xbb91cf]]})),_0x2bb2eb&&(_0x2035b1||(_0x2035b1={}),Array['isArray'](_0x2bb2eb)||_0x2bb2eb instanceof Tag?_0x2035b1[_0x5a311e]=_0x2bb2eb:Object['assign'](_0x2035b1,_0x2bb2eb));}_0x65834e=new NodeSet(_0x28dc39),_0x2035b1&&(_0x65834e=_0x65834e['extend'](styleTags(_0x2035b1)));}if(nonEmpty(_0x1dfc97['props'])&&(_0x65834e=_0x65834e['extend'](..._0x1dfc97['props'])),nonEmpty(_0x1dfc97['remove']))for(let _0xb33718 of _0x1dfc97['remove']){let _0x4f3d78=this['blockNames']['indexOf'](_0xb33718),_0x2f06bf=this['inlineNames']['indexOf'](_0xb33718);_0x4f3d78>-0x1&&(_0x5c6e37[_0x4f3d78]=_0x4e1c34[_0x4f3d78]=void 0x0),_0x2f06bf>-0x1&&(_0x40d5f4[_0x2f06bf]=void 0x0);}if(nonEmpty(_0x1dfc97['parseBlock']))for(let _0x59886d of _0x1dfc97['parseBlock']){let _0x49d5e0=_0xed792['indexOf'](_0x59886d['name']);if(_0x49d5e0>-0x1)_0x5c6e37[_0x49d5e0]=_0x59886d['parse'],_0x4e1c34[_0x49d5e0]=_0x59886d['leaf'];else{let _0x31369e=_0x59886d['before']?findName(_0xed792,_0x59886d['before']):_0x59886d['after']?findName(_0xed792,_0x59886d['after'])+0x1:_0xed792['length']-0x1;_0x5c6e37['splice'](_0x31369e,0x0,_0x59886d['parse']),_0x4e1c34['splice'](_0x31369e,0x0,_0x59886d['leaf']),_0xed792['splice'](_0x31369e,0x0,_0x59886d['name']);}_0x59886d['endLeaf']&&_0x463fda['push'](_0x59886d['endLeaf']);}if(nonEmpty(_0x1dfc97['parseInline']))for(let _0x44f4d9 of _0x1dfc97['parseInline']){let _0x51a135=_0x4d6d59['indexOf'](_0x44f4d9['name']);if(_0x51a135>-0x1)_0x40d5f4[_0x51a135]=_0x44f4d9['parse'];else{let _0x2da869=_0x44f4d9['before']?findName(_0x4d6d59,_0x44f4d9['before']):_0x44f4d9['after']?findName(_0x4d6d59,_0x44f4d9['after'])+0x1:_0x4d6d59['length']-0x1;_0x40d5f4['splice'](_0x2da869,0x0,_0x44f4d9['parse']),_0x4d6d59['splice'](_0x2da869,0x0,_0x44f4d9['name']);}}return _0x1dfc97['wrap']&&(_0xfd75be=_0xfd75be['concat'](_0x1dfc97['wrap'])),new MarkdownParser(_0x65834e,_0x5c6e37,_0x4e1c34,_0xed792,_0x463fda,_0x3420ff,_0x40d5f4,_0x4d6d59,_0xfd75be);}['getNodeType'](_0x2d7681){let _0x5dccb1=this['nodeTypes'][_0x2d7681];if(null==_0x5dccb1)throw new RangeError('Unknown\x20node\x20type\x20\x27'+_0x2d7681+'\x27');return _0x5dccb1;}['parseInline'](_0x20d282,_0x22274e){let _0x24a1fe=new InlineContext(this,_0x20d282,_0x22274e);t:for(let _0x12e933=_0x22274e;_0x12e933<_0x24a1fe['end'];){let _0x5c0cbe=_0x24a1fe['char'](_0x12e933);for(let _0x3e9c77 of this['inlineParsers'])if(_0x3e9c77){let _0x5325b2=_0x3e9c77(_0x24a1fe,_0x5c0cbe,_0x12e933);if(_0x5325b2>=0x0){_0x12e933=_0x5325b2;continue t;}}_0x12e933++;}return _0x24a1fe['resolveMarkers'](0x0);}}function nonEmpty(_0x393c8a){return null!=_0x393c8a&&_0x393c8a['length']>0x0;}function resolveConfig(_0x4efaa9){if(!Array['isArray'](_0x4efaa9))return _0x4efaa9;if(0x0==_0x4efaa9['length'])return null;let _0x2cd7ec=resolveConfig(_0x4efaa9[0x0]);if(0x1==_0x4efaa9['length'])return _0x2cd7ec;let _0x5c82a7=resolveConfig(_0x4efaa9['slice'](0x1));if(!_0x5c82a7||!_0x2cd7ec)return _0x2cd7ec||_0x5c82a7;let _0x6f8df5=(_0x33cfd6,_0x356a49)=>(_0x33cfd6||none)['concat'](_0x356a49||none),_0x33b811=_0x2cd7ec['wrap'],_0x3ea6e9=_0x5c82a7['wrap'];return{'props':_0x6f8df5(_0x2cd7ec['props'],_0x5c82a7['props']),'defineNodes':_0x6f8df5(_0x2cd7ec['defineNodes'],_0x5c82a7['defineNodes']),'parseBlock':_0x6f8df5(_0x2cd7ec['parseBlock'],_0x5c82a7['parseBlock']),'parseInline':_0x6f8df5(_0x2cd7ec['parseInline'],_0x5c82a7['parseInline']),'remove':_0x6f8df5(_0x2cd7ec['remove'],_0x5c82a7['remove']),'wrap':_0x33b811?_0x3ea6e9?(_0x26627d,_0x47624d,_0x422869,_0x2be070)=>_0x33b811(_0x3ea6e9(_0x26627d,_0x47624d,_0x422869,_0x2be070),_0x47624d,_0x422869,_0x2be070):_0x33b811:_0x3ea6e9};}function findName(_0x2b44f1,_0x2ae42e){let _0x73fe4e=_0x2b44f1['indexOf'](_0x2ae42e);if(_0x73fe4e<0x0)throw new RangeError('Position\x20specified\x20relative\x20to\x20unknown\x20parser\x20'+_0x2ae42e);return _0x73fe4e;}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(_0x346508){this['nodeSet']=_0x346508,this['content']=[],this['nodes']=[];}['write'](_0x323b4b,_0x37e94e,_0xfc2047,_0x1ce50c=0x0){return this['content']['push'](_0x323b4b,_0x37e94e,_0xfc2047,0x4+0x4*_0x1ce50c),this;}['writeElements'](_0x899e9e,_0x81c6e3=0x0){for(let _0x24fea5 of _0x899e9e)_0x24fea5['writeTo'](this,_0x81c6e3);return this;}['finish'](_0x5e66e5,_0x358d23){return Tree['build']({'buffer':this['content'],'nodeSet':this['nodeSet'],'reused':this['nodes'],'topID':_0x5e66e5,'length':_0x358d23});}},Element$1=class{constructor(_0x2da116,_0x3c9648,_0xc33d9b,_0x53fb15=none){this['type']=_0x2da116,this['from']=_0x3c9648,this['to']=_0xc33d9b,this['children']=_0x53fb15;}['writeTo'](_0x14e281,_0x1e85f0){let _0x4f9bd7=_0x14e281['content']['length'];_0x14e281['writeElements'](this['children'],_0x1e85f0),_0x14e281['content']['push'](this['type'],this['from']+_0x1e85f0,this['to']+_0x1e85f0,_0x14e281['content']['length']+0x4-_0x4f9bd7);}['toTree'](_0x3ab916){return new Buffer$1(_0x3ab916)['writeElements'](this['children'],-this['from'])['finish'](this['type'],this['to']-this['from']);}};class TreeElement{constructor(_0x1eaaa5,_0x14505e){this['tree']=_0x1eaaa5,this['from']=_0x14505e;}get['to'](){return this['from']+this['tree']['length'];}get['type'](){return this['tree']['type']['id'];}get['children'](){return none;}['writeTo'](_0x2286ba,_0x3234a1){_0x2286ba['nodes']['push'](this['tree']),_0x2286ba['content']['push'](_0x2286ba['nodes']['length']-0x1,this['from']+_0x3234a1,this['to']+_0x3234a1,-0x1);}['toTree'](){return this['tree'];}}function elt(_0x5abdef,_0x388037,_0x7e26aa,_0x52b9b3){return new Element$1(_0x5abdef,_0x388037,_0x7e26aa,_0x52b9b3);}const EmphasisUnderscore={'resolve':'Emphasis','mark':'EmphasisMark'},EmphasisAsterisk={'resolve':'Emphasis','mark':'EmphasisMark'},LinkStart={},ImageStart={};class InlineDelimiter{constructor(_0xa0d73b,_0x1c4ae9,_0x2d3883,_0x4d8017){this['type']=_0xa0d73b,this['from']=_0x1c4ae9,this['to']=_0x2d3883,this['side']=_0x4d8017;}}const Escapable='!\x22#$%&\x27()*+,-./:;<=>?@[\x5c]^_`{|}~';let Punctuation=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Punctuation=new RegExp('[\x5cp{S}|\x5cp{P}]','u');}catch(_0x4758db){}const DefaultInline={'Escape'(_0x18e259,_0x27045e,_0x56e475){if(0x5c!=_0x27045e||_0x56e475==_0x18e259['end']-0x1)return-0x1;let _0x4712c5=_0x18e259['char'](_0x56e475+0x1);for(let _0x150db6=0x0;_0x150db6<Escapable['length'];_0x150db6++)if(Escapable['charCodeAt'](_0x150db6)==_0x4712c5)return _0x18e259['append'](elt(Type['Escape'],_0x56e475,_0x56e475+0x2));return-0x1;},'Entity'(_0xb2caa6,_0x14a395,_0x2c0e94){if(0x26!=_0x14a395)return-0x1;let _0x148188=/^(?:#\d+|#x[a-f\d]+|\w+);/i['exec'](_0xb2caa6['slice'](_0x2c0e94+0x1,_0x2c0e94+0x1f));return _0x148188?_0xb2caa6['append'](elt(Type['Entity'],_0x2c0e94,_0x2c0e94+0x1+_0x148188[0x0]['length'])):-0x1;},'InlineCode'(_0x4c71df,_0x18f5eb,_0x4c7b54){if(0x60!=_0x18f5eb||_0x4c7b54&&0x60==_0x4c71df['char'](_0x4c7b54-0x1))return-0x1;let _0xfab429=_0x4c7b54+0x1;for(;_0xfab429<_0x4c71df['end']&&0x60==_0x4c71df['char'](_0xfab429);)_0xfab429++;let _0x3b593b=_0xfab429-_0x4c7b54,_0x2b43fe=0x0;for(;_0xfab429<_0x4c71df['end'];_0xfab429++)if(0x60==_0x4c71df['char'](_0xfab429)){if(_0x2b43fe++,_0x2b43fe==_0x3b593b&&0x60!=_0x4c71df['char'](_0xfab429+0x1))return _0x4c71df['append'](elt(Type['InlineCode'],_0x4c7b54,_0xfab429+0x1,[elt(Type['CodeMark'],_0x4c7b54,_0x4c7b54+_0x3b593b),elt(Type['CodeMark'],_0xfab429+0x1-_0x3b593b,_0xfab429+0x1)]));}else _0x2b43fe=0x0;return-0x1;},'HTMLTag'(_0x3d1162,_0xa5c15c,_0x4a076c){if(0x3c!=_0xa5c15c||_0x4a076c==_0x3d1162['end']-0x1)return-0x1;let _0x5bd043=_0x3d1162['slice'](_0x4a076c+0x1,_0x3d1162['end']),_0x55e163=/^(?:[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'](_0x5bd043);if(_0x55e163)return _0x3d1162['append'](elt(Type['Autolink'],_0x4a076c,_0x4a076c+0x1+_0x55e163[0x0]['length'],[elt(Type['LinkMark'],_0x4a076c,_0x4a076c+0x1),elt(Type['URL'],_0x4a076c+0x1,_0x4a076c+_0x55e163[0x0]['length']),elt(Type['LinkMark'],_0x4a076c+_0x55e163[0x0]['length'],_0x4a076c+0x1+_0x55e163[0x0]['length'])]));let _0x33c227=/^!--[^>](?:-[^-]|[^-])*?-->/i['exec'](_0x5bd043);if(_0x33c227)return _0x3d1162['append'](elt(Type['Comment'],_0x4a076c,_0x4a076c+0x1+_0x33c227[0x0]['length']));let _0x36737f=/^\?[^]*?\?>/['exec'](_0x5bd043);if(_0x36737f)return _0x3d1162['append'](elt(Type['ProcessingInstruction'],_0x4a076c,_0x4a076c+0x1+_0x36737f[0x0]['length']));let _0x236f48=/^(?:![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'](_0x5bd043);return _0x236f48?_0x3d1162['append'](elt(Type['HTMLTag'],_0x4a076c,_0x4a076c+0x1+_0x236f48[0x0]['length'])):-0x1;},'Emphasis'(_0x276d5e,_0x56bfad,_0x1f9c45){if(0x5f!=_0x56bfad&&0x2a!=_0x56bfad)return-0x1;let _0x2a37ae=_0x1f9c45+0x1;for(;_0x276d5e['char'](_0x2a37ae)==_0x56bfad;)_0x2a37ae++;let _0x3b1433=_0x276d5e['slice'](_0x1f9c45-0x1,_0x1f9c45),_0x317722=_0x276d5e['slice'](_0x2a37ae,_0x2a37ae+0x1),_0x24cee4=Punctuation['test'](_0x3b1433),_0x40dbfc=Punctuation['test'](_0x317722),_0xfd56b3=/\s|^$/['test'](_0x3b1433),_0x2a7324=/\s|^$/['test'](_0x317722),_0x75ef4b=!_0x2a7324&&(!_0x40dbfc||_0xfd56b3||_0x24cee4),_0x3c2b58=!_0xfd56b3&&(!_0x24cee4||_0x2a7324||_0x40dbfc),_0x2a87f6=_0x75ef4b&&(0x2a==_0x56bfad||!_0x3c2b58||_0x24cee4),_0x4b6ded=_0x3c2b58&&(0x2a==_0x56bfad||!_0x75ef4b||_0x40dbfc);return _0x276d5e['append'](new InlineDelimiter(0x5f==_0x56bfad?EmphasisUnderscore:EmphasisAsterisk,_0x1f9c45,_0x2a37ae,(_0x2a87f6?0x1:0x0)|(_0x4b6ded?0x2:0x0)));},'HardBreak'(_0x5586be,_0x566b46,_0x681d7c){if(0x5c==_0x566b46&&0xa==_0x5586be['char'](_0x681d7c+0x1))return _0x5586be['append'](elt(Type['HardBreak'],_0x681d7c,_0x681d7c+0x2));if(0x20==_0x566b46){let _0x52d713=_0x681d7c+0x1;for(;0x20==_0x5586be['char'](_0x52d713);)_0x52d713++;if(0xa==_0x5586be['char'](_0x52d713)&&_0x52d713>=_0x681d7c+0x2)return _0x5586be['append'](elt(Type['HardBreak'],_0x681d7c,_0x52d713+0x1));}return-0x1;},'Link':(_0x5d9f7e,_0x1b0b9f,_0x32dc4b)=>0x5b==_0x1b0b9f?_0x5d9f7e['append'](new InlineDelimiter(LinkStart,_0x32dc4b,_0x32dc4b+0x1,0x1)):-0x1,'Image':(_0x13f152,_0x46037c,_0x689071)=>0x21==_0x46037c&&0x5b==_0x13f152['char'](_0x689071+0x1)?_0x13f152['append'](new InlineDelimiter(ImageStart,_0x689071,_0x689071+0x2,0x1)):-0x1,'LinkEnd'(_0x461db8,_0x163fc7,_0x26c506){if(0x5d!=_0x163fc7)return-0x1;for(let _0x42500c=_0x461db8['parts']['length']-0x1;_0x42500c>=0x0;_0x42500c--){let _0x3d84fe=_0x461db8['parts'][_0x42500c];if(_0x3d84fe instanceof InlineDelimiter&&(_0x3d84fe['type']==LinkStart||_0x3d84fe['type']==ImageStart)){if(!_0x3d84fe['side']||_0x461db8['skipSpace'](_0x3d84fe['to'])==_0x26c506&&!/[(\[]/['test'](_0x461db8['slice'](_0x26c506+0x1,_0x26c506+0x2)))return _0x461db8['parts'][_0x42500c]=null,-0x1;let _0x5bab18=_0x461db8['takeContent'](_0x42500c),_0x570755=_0x461db8['parts'][_0x42500c]=finishLink(_0x461db8,_0x5bab18,_0x3d84fe['type']==LinkStart?Type['Link']:Type['Image'],_0x3d84fe['from'],_0x26c506+0x1);if(_0x3d84fe['type']==LinkStart)for(let _0x44a7b2=0x0;_0x44a7b2<_0x42500c;_0x44a7b2++){let _0x4e6b26=_0x461db8['parts'][_0x44a7b2];_0x4e6b26 instanceof InlineDelimiter&&_0x4e6b26['type']==LinkStart&&(_0x4e6b26['side']=0x0);}return _0x570755['to'];}}return-0x1;}};function finishLink(_0x1cd138,_0x2df371,_0x27492c,_0x3ce1df,_0x45ed45){let {text:_0x37a578}=_0x1cd138,_0x2ff83e=_0x1cd138['char'](_0x45ed45),_0x3f91c1=_0x45ed45;if(_0x2df371['unshift'](elt(Type['LinkMark'],_0x3ce1df,_0x3ce1df+(_0x27492c==Type['Image']?0x2:0x1))),_0x2df371['push'](elt(Type['LinkMark'],_0x45ed45-0x1,_0x45ed45)),0x28==_0x2ff83e){let _0x17124d,_0x3d2583=_0x1cd138['skipSpace'](_0x45ed45+0x1),_0x2f4486=parseURL(_0x37a578,_0x3d2583-_0x1cd138['offset'],_0x1cd138['offset']);_0x2f4486&&(_0x3d2583=_0x1cd138['skipSpace'](_0x2f4486['to']),_0x3d2583!=_0x2f4486['to']&&(_0x17124d=parseLinkTitle(_0x37a578,_0x3d2583-_0x1cd138['offset'],_0x1cd138['offset']),_0x17124d&&(_0x3d2583=_0x1cd138['skipSpace'](_0x17124d['to'])))),0x29==_0x1cd138['char'](_0x3d2583)&&(_0x2df371['push'](elt(Type['LinkMark'],_0x45ed45,_0x45ed45+0x1)),_0x3f91c1=_0x3d2583+0x1,_0x2f4486&&_0x2df371['push'](_0x2f4486),_0x17124d&&_0x2df371['push'](_0x17124d),_0x2df371['push'](elt(Type['LinkMark'],_0x3d2583,_0x3f91c1)));}else{if(0x5b==_0x2ff83e){let _0x28ffc6=parseLinkLabel(_0x37a578,_0x45ed45-_0x1cd138['offset'],_0x1cd138['offset'],!0x1);_0x28ffc6&&(_0x2df371['push'](_0x28ffc6),_0x3f91c1=_0x28ffc6['to']);}}return elt(_0x27492c,_0x3ce1df,_0x3f91c1,_0x2df371);}function parseURL(_0x1a1a42,_0x4c256d,_0x2c4866){if(0x3c==_0x1a1a42['charCodeAt'](_0x4c256d)){for(let _0x7aa0ee=_0x4c256d+0x1;_0x7aa0ee<_0x1a1a42['length'];_0x7aa0ee++){let _0x2581ac=_0x1a1a42['charCodeAt'](_0x7aa0ee);if(0x3e==_0x2581ac)return elt(Type['URL'],_0x4c256d+_0x2c4866,_0x7aa0ee+0x1+_0x2c4866);if(0x3c==_0x2581ac||0xa==_0x2581ac)return!0x1;}return null;}{let _0x40e3c3=0x0,_0x355f3f=_0x4c256d;for(let _0x4b12d5=!0x1;_0x355f3f<_0x1a1a42['length'];_0x355f3f++){let _0x577e53=_0x1a1a42['charCodeAt'](_0x355f3f);if(space(_0x577e53))break;if(_0x4b12d5)_0x4b12d5=!0x1;else{if(0x28==_0x577e53)_0x40e3c3++;else{if(0x29==_0x577e53){if(!_0x40e3c3)break;_0x40e3c3--;}else 0x5c==_0x577e53&&(_0x4b12d5=!0x0);}}}return _0x355f3f>_0x4c256d?elt(Type['URL'],_0x4c256d+_0x2c4866,_0x355f3f+_0x2c4866):_0x355f3f==_0x1a1a42['length']&&null;}}function parseLinkTitle(_0x161e7c,_0x227f47,_0x33dd02){let _0x2326f2=_0x161e7c['charCodeAt'](_0x227f47);if(0x27!=_0x2326f2&&0x22!=_0x2326f2&&0x28!=_0x2326f2)return!0x1;let _0x34d84d=0x28==_0x2326f2?0x29:_0x2326f2;for(let _0x1d5b07=_0x227f47+0x1,_0x15fd45=!0x1;_0x1d5b07<_0x161e7c['length'];_0x1d5b07++){let _0x219475=_0x161e7c['charCodeAt'](_0x1d5b07);if(_0x15fd45)_0x15fd45=!0x1;else{if(_0x219475==_0x34d84d)return elt(Type['LinkTitle'],_0x227f47+_0x33dd02,_0x1d5b07+0x1+_0x33dd02);0x5c==_0x219475&&(_0x15fd45=!0x0);}}return null;}function parseLinkLabel(_0x5e8cfc,_0x46d5cb,_0x559b2c,_0x10027d){for(let _0x29fdb5=!0x1,_0xd67604=_0x46d5cb+0x1,_0x427fa0=Math['min'](_0x5e8cfc['length'],_0xd67604+0x3e7);_0xd67604<_0x427fa0;_0xd67604++){let _0x24d62e=_0x5e8cfc['charCodeAt'](_0xd67604);if(_0x29fdb5)_0x29fdb5=!0x1;else{if(0x5d==_0x24d62e)return!_0x10027d&&elt(Type['LinkLabel'],_0x46d5cb+_0x559b2c,_0xd67604+0x1+_0x559b2c);if(_0x10027d&&!space(_0x24d62e)&&(_0x10027d=!0x1),0x5b==_0x24d62e)return!0x1;0x5c==_0x24d62e&&(_0x29fdb5=!0x0);}}return null;}class InlineContext{constructor(_0x23a598,_0x121475,_0x3ccae7){this['parser']=_0x23a598,this['text']=_0x121475,this['offset']=_0x3ccae7,this['parts']=[];}['char'](_0x416ec4){return _0x416ec4>=this['end']?-0x1:this['text']['charCodeAt'](_0x416ec4-this['offset']);}get['end'](){return this['offset']+this['text']['length'];}['slice'](_0x5acb39,_0x572b54){return this['text']['slice'](_0x5acb39-this['offset'],_0x572b54-this['offset']);}['append'](_0xb042b7){return this['parts']['push'](_0xb042b7),_0xb042b7['to'];}['addDelimiter'](_0x1e9c9b,_0x58dc4f,_0x5f305f,_0x51bd3b,_0x2ba045){return this['append'](new InlineDelimiter(_0x1e9c9b,_0x58dc4f,_0x5f305f,(_0x51bd3b?0x1:0x0)|(_0x2ba045?0x2:0x0)));}get['hasOpenLink'](){for(let _0x5ab20c=this['parts']['length']-0x1;_0x5ab20c>=0x0;_0x5ab20c--){let _0x314ac9=this['parts'][_0x5ab20c];if(_0x314ac9 instanceof InlineDelimiter&&(_0x314ac9['type']==LinkStart||_0x314ac9['type']==ImageStart))return!0x0;}return!0x1;}['addElement'](_0x560b2e){return this['append'](_0x560b2e);}['resolveMarkers'](_0x142461){for(let _0x31d964=_0x142461;_0x31d964<this['parts']['length'];_0x31d964++){let _0x399cd6=this['parts'][_0x31d964];if(!(_0x399cd6 instanceof InlineDelimiter&&_0x399cd6['type']['resolve']&&0x2&_0x399cd6['side']))continue;let _0xbed202,_0x535db0=_0x399cd6['type']==EmphasisUnderscore||_0x399cd6['type']==EmphasisAsterisk,_0x20d127=_0x399cd6['to']-_0x399cd6['from'],_0x1829da=_0x31d964-0x1;for(;_0x1829da>=_0x142461;_0x1829da--){let _0x235aa7=this['parts'][_0x1829da];if(_0x235aa7 instanceof InlineDelimiter&&0x1&_0x235aa7['side']&&_0x235aa7['type']==_0x399cd6['type']&&!(_0x535db0&&(0x1&_0x399cd6['side']||0x2&_0x235aa7['side'])&&(_0x235aa7['to']-_0x235aa7['from']+_0x20d127)%0x3==0x0&&((_0x235aa7['to']-_0x235aa7['from'])%0x3||_0x20d127%0x3))){_0xbed202=_0x235aa7;break;}}if(!_0xbed202)continue;let _0x489145=_0x399cd6['type']['resolve'],_0x143285=[],_0x300745=_0xbed202['from'],_0x499d93=_0x399cd6['to'];if(_0x535db0){let _0x5dc2e1=Math['min'](0x2,_0xbed202['to']-_0xbed202['from'],_0x20d127);_0x300745=_0xbed202['to']-_0x5dc2e1,_0x499d93=_0x399cd6['from']+_0x5dc2e1,_0x489145=0x1==_0x5dc2e1?'Emphasis':'StrongEmphasis';}_0xbed202['type']['mark']&&_0x143285['push'](this['elt'](_0xbed202['type']['mark'],_0x300745,_0xbed202['to']));for(let _0x135b0a=_0x1829da+0x1;_0x135b0a<_0x31d964;_0x135b0a++)this['parts'][_0x135b0a]instanceof Element$1&&_0x143285['push'](this['parts'][_0x135b0a]),this['parts'][_0x135b0a]=null;_0x399cd6['type']['mark']&&_0x143285['push'](this['elt'](_0x399cd6['type']['mark'],_0x399cd6['from'],_0x499d93));let _0x4a7a11=this['elt'](_0x489145,_0x300745,_0x499d93,_0x143285);this['parts'][_0x1829da]=_0x535db0&&_0xbed202['from']!=_0x300745?new InlineDelimiter(_0xbed202['type'],_0xbed202['from'],_0x300745,_0xbed202['side']):null,(this['parts'][_0x31d964]=_0x535db0&&_0x399cd6['to']!=_0x499d93?new InlineDelimiter(_0x399cd6['type'],_0x499d93,_0x399cd6['to'],_0x399cd6['side']):null)?this['parts']['splice'](_0x31d964,0x0,_0x4a7a11):this['parts'][_0x31d964]=_0x4a7a11;}let _0x39ac98=[];for(let _0x5552c5=_0x142461;_0x5552c5<this['parts']['length'];_0x5552c5++){let _0x13c271=this['parts'][_0x5552c5];_0x13c271 instanceof Element$1&&_0x39ac98['push'](_0x13c271);}return _0x39ac98;}['findOpeningDelimiter'](_0x60eff9){for(let _0x2ae49f=this['parts']['length']-0x1;_0x2ae49f>=0x0;_0x2ae49f--){let _0x3707dd=this['parts'][_0x2ae49f];if(_0x3707dd instanceof InlineDelimiter&&_0x3707dd['type']==_0x60eff9&&0x1&_0x3707dd['side'])return _0x2ae49f;}return null;}['takeContent'](_0x964410){let _0x132e27=this['resolveMarkers'](_0x964410);return this['parts']['length']=_0x964410,_0x132e27;}['getDelimiterAt'](_0x1c0287){let _0xeea6fb=this['parts'][_0x1c0287];return _0xeea6fb instanceof InlineDelimiter?_0xeea6fb:null;}['skipSpace'](_0x4468bd){return skipSpace(this['text'],_0x4468bd-this['offset'])+this['offset'];}['elt'](_0x469613,_0x3ee4d2,_0x5bb5f7,_0x5812a4){return'string'==typeof _0x469613?elt(this['parser']['getNodeType'](_0x469613),_0x3ee4d2,_0x5bb5f7,_0x5812a4):new TreeElement(_0x469613,_0x3ee4d2);}}function injectMarks(_0xfe983a,_0x264890){if(!_0x264890['length'])return _0xfe983a;if(!_0xfe983a['length'])return _0x264890;let _0x380e7e=_0xfe983a['slice'](),_0x117da7=0x0;for(let _0x269e91 of _0x264890){for(;_0x117da7<_0x380e7e['length']&&_0x380e7e[_0x117da7]['to']<_0x269e91['to'];)_0x117da7++;if(_0x117da7<_0x380e7e['length']&&_0x380e7e[_0x117da7]['from']<_0x269e91['from']){let _0x3f28d0=_0x380e7e[_0x117da7];_0x3f28d0 instanceof Element$1&&(_0x380e7e[_0x117da7]=new Element$1(_0x3f28d0['type'],_0x3f28d0['from'],_0x3f28d0['to'],injectMarks(_0x3f28d0['children'],[_0x269e91])));}else _0x380e7e['splice'](_0x117da7++,0x0,_0x269e91);}return _0x380e7e;}InlineContext['linkStart']=LinkStart,InlineContext['imageStart']=ImageStart;const NotLast=[Type['CodeBlock'],Type['ListItem'],Type['OrderedList'],Type['BulletList']];class FragmentCursor{constructor(_0x124b92,_0x2b3e0b){this['fragments']=_0x124b92,this['input']=_0x2b3e0b,this['i']=0x0,this['fragment']=null,this['fragmentEnd']=-0x1,this['cursor']=null,_0x124b92['length']&&(this['fragment']=_0x124b92[this['i']++]);}['nextFragment'](){this['fragment']=this['i']<this['fragments']['length']?this['fragments'][this['i']++]:null,this['cursor']=null,this['fragmentEnd']=-0x1;}['moveTo'](_0x5db2ac,_0x940b66){for(;this['fragment']&&this['fragment']['to']<=_0x5db2ac;)this['nextFragment']();if(!this['fragment']||this['fragment']['from']>(_0x5db2ac?_0x5db2ac-0x1:0x0))return!0x1;if(this['fragmentEnd']<0x0){let _0x2896bd=this['fragment']['to'];for(;_0x2896bd>0x0&&'\x0a'!=this['input']['read'](_0x2896bd-0x1,_0x2896bd);)_0x2896bd--;this['fragmentEnd']=_0x2896bd?_0x2896bd-0x1:0x0;}let _0x2ead29=this['cursor'];_0x2ead29||(_0x2ead29=this['cursor']=this['fragment']['tree']['cursor'](),_0x2ead29['firstChild']());let _0x5598a8=_0x5db2ac+this['fragment']['offset'];for(;_0x2ead29['to']<=_0x5598a8;)if(!_0x2ead29['parent']())return!0x1;for(;;){if(_0x2ead29['from']>=_0x5598a8)return this['fragment']['from']<=_0x940b66;if(!_0x2ead29['childAfter'](_0x5598a8))return!0x1;}}['matches'](_0x34da1e){let _0x573907=this['cursor']['tree'];return _0x573907&&_0x573907['prop'](NodeProp['contextHash'])==_0x34da1e;}['takeNodes'](_0x3a22ce){let _0x4f9f61=this['cursor'],_0x16942b=this['fragment']['offset'],_0x5bea22=this['fragmentEnd']-(this['fragment']['openEnd']?0x1:0x0),_0x12687a=_0x3a22ce['absoluteLineStart'],_0x223aec=_0x12687a,_0x84efe=_0x3a22ce['block']['children']['length'],_0x1f816b=_0x223aec,_0x9c2693=_0x84efe;for(;;){if(_0x4f9f61['to']-_0x16942b>_0x5bea22){if(_0x4f9f61['type']['isAnonymous']&&_0x4f9f61['firstChild']())continue;break;}let _0x4762ff=toRelative(_0x4f9f61['from']-_0x16942b,_0x3a22ce['ranges']);if(_0x4f9f61['to']-_0x16942b<=_0x3a22ce['ranges'][_0x3a22ce['rangeI']]['to'])_0x3a22ce['addNode'](_0x4f9f61['tree'],_0x4762ff);else{let _0x1a4b6a=new Tree(_0x3a22ce['parser']['nodeSet']['types'][Type['Paragraph']],[],[],0x0,_0x3a22ce['block']['hashProp']);_0x3a22ce['reusePlaceholders']['set'](_0x1a4b6a,_0x4f9f61['tree']),_0x3a22ce['addNode'](_0x1a4b6a,_0x4762ff);}if(_0x4f9f61['type']['is']('Block')&&(NotLast['indexOf'](_0x4f9f61['type']['id'])<0x0?(_0x223aec=_0x4f9f61['to']-_0x16942b,_0x84efe=_0x3a22ce['block']['children']['length']):(_0x223aec=_0x1f816b,_0x84efe=_0x9c2693,_0x1f816b=_0x4f9f61['to']-_0x16942b,_0x9c2693=_0x3a22ce['block']['children']['length'])),!_0x4f9f61['nextSibling']())break;}for(;_0x3a22ce['block']['children']['length']>_0x84efe;)_0x3a22ce['block']['children']['pop'](),_0x3a22ce['block']['positions']['pop']();return _0x223aec-_0x12687a;}}function toRelative(_0x4420fe,_0x46db11){let _0x3ccaf6=_0x4420fe;for(let _0x1c12d3=0x1;_0x1c12d3<_0x46db11['length'];_0x1c12d3++){let _0xe6a708=_0x46db11[_0x1c12d3-0x1]['to'],_0x25bc12=_0x46db11[_0x1c12d3]['from'];_0xe6a708<_0x4420fe&&(_0x3ccaf6-=_0x25bc12-_0xe6a708);}return _0x3ccaf6;}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'](_0x69a4eb=>DefaultBlockParsers[_0x69a4eb]),Object['keys'](DefaultBlockParsers)['map'](_0x7e31d6=>DefaultLeafBlocks[_0x7e31d6]),Object['keys'](DefaultBlockParsers),DefaultEndLeaf,DefaultSkipMarkup,Object['keys'](DefaultInline)['map'](_0xf609f8=>DefaultInline[_0xf609f8]),Object['keys'](DefaultInline),[]);function leftOverSpace(_0x746cab,_0x297b92,_0x142be8){let _0x381bb8=[];for(let _0x401b5e=_0x746cab['firstChild'],_0x172d97=_0x297b92;;_0x401b5e=_0x401b5e['nextSibling']){let _0x75e004=_0x401b5e?_0x401b5e['from']:_0x142be8;if(_0x75e004>_0x172d97&&_0x381bb8['push']({'from':_0x172d97,'to':_0x75e004}),!_0x401b5e)break;_0x172d97=_0x401b5e['to'];}return _0x381bb8;}function parseCode(_0x577c57){let {codeParser:_0xfe7ceb,htmlParser:_0x1b3d45}=_0x577c57,_0x560785=parseMixed((_0x2ad4f6,_0xa4d500)=>{let _0x49c200=_0x2ad4f6['type']['id'];if(!_0xfe7ceb||_0x49c200!=Type['CodeBlock']&&_0x49c200!=Type['FencedCode']){if(_0x1b3d45&&(_0x49c200==Type['HTMLBlock']||_0x49c200==Type['HTMLTag']||_0x49c200==Type['CommentBlock']))return{'parser':_0x1b3d45,'overlay':leftOverSpace(_0x2ad4f6['node'],_0x2ad4f6['from'],_0x2ad4f6['to'])};}else{let _0x5d7cd4='';if(_0x49c200==Type['FencedCode']){let _0x76baac=_0x2ad4f6['node']['getChild'](Type['CodeInfo']);_0x76baac&&(_0x5d7cd4=_0xa4d500['read'](_0x76baac['from'],_0x76baac['to']));}let _0x2dca03=_0xfe7ceb(_0x5d7cd4);if(_0x2dca03)return{'parser':_0x2dca03,'overlay':_0x38970c=>_0x38970c['type']['id']==Type['CodeText']};}return null;});return{'wrap':_0x560785};}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'(_0x24c4ce,_0x4e6317,_0x3d58d4){if(0x7e!=_0x4e6317||0x7e!=_0x24c4ce['char'](_0x3d58d4+0x1)||0x7e==_0x24c4ce['char'](_0x3d58d4+0x2))return-0x1;let _0x4caaad=_0x24c4ce['slice'](_0x3d58d4-0x1,_0x3d58d4),_0x2230fe=_0x24c4ce['slice'](_0x3d58d4+0x2,_0x3d58d4+0x3),_0x4888ab=/\s|^$/['test'](_0x4caaad),_0x1ea77b=/\s|^$/['test'](_0x2230fe),_0x3f97c7=Punctuation['test'](_0x4caaad),_0x2155a1=Punctuation['test'](_0x2230fe);return _0x24c4ce['addDelimiter'](StrikethroughDelim,_0x3d58d4,_0x3d58d4+0x2,!_0x1ea77b&&(!_0x2155a1||_0x4888ab||_0x3f97c7),!_0x4888ab&&(!_0x3f97c7||_0x1ea77b||_0x2155a1));},'after':'Emphasis'}]};function parseRow(_0x4fc4a1,_0x98fab8,_0x43bf6e=0x0,_0x1ce137,_0x16d636=0x0){let _0x55b729=0x0,_0x358555=!0x0,_0x15a976=-0x1,_0xef848b=-0x1,_0x3fddc8=!0x1,_0x3bf71a=()=>{_0x1ce137['push'](_0x4fc4a1['elt']('TableCell',_0x16d636+_0x15a976,_0x16d636+_0xef848b,_0x4fc4a1['parser']['parseInline'](_0x98fab8['slice'](_0x15a976,_0xef848b),_0x16d636+_0x15a976)));};for(let _0x4ffb0f=_0x43bf6e;_0x4ffb0f<_0x98fab8['length'];_0x4ffb0f++){let _0x207bb3=_0x98fab8['charCodeAt'](_0x4ffb0f);0x7c!=_0x207bb3||_0x3fddc8?(_0x3fddc8||0x20!=_0x207bb3&&0x9!=_0x207bb3)&&(_0x15a976<0x0&&(_0x15a976=_0x4ffb0f),_0xef848b=_0x4ffb0f+0x1):((!_0x358555||_0x15a976>-0x1)&&_0x55b729++,_0x358555=!0x1,_0x1ce137&&(_0x15a976>-0x1&&_0x3bf71a(),_0x1ce137['push'](_0x4fc4a1['elt']('TableDelimiter',_0x4ffb0f+_0x16d636,_0x4ffb0f+_0x16d636+0x1))),_0x15a976=_0xef848b=-0x1),_0x3fddc8=!_0x3fddc8&&0x5c==_0x207bb3;}return _0x15a976>-0x1&&(_0x55b729++,_0x1ce137&&_0x3bf71a()),_0x55b729;}function hasPipe(_0x348986,_0x188c7a){for(let _0x4e362c=_0x188c7a;_0x4e362c<_0x348986['length'];_0x4e362c++){let _0x2cd0b2=_0x348986['charCodeAt'](_0x4e362c);if(0x7c==_0x2cd0b2)return!0x0;0x5c==_0x2cd0b2&&_0x4e362c++;}return!0x1;}const delimiterLine=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class TableParser{constructor(){this['rows']=null;}['nextLine'](_0x49696b,_0x369b1d,_0x45f13c){if(null==this['rows']){let _0x454102;if(this['rows']=!0x1,(0x2d==_0x369b1d['next']||0x3a==_0x369b1d['next']||0x7c==_0x369b1d['next'])&&delimiterLine['test'](_0x454102=_0x369b1d['text']['slice'](_0x369b1d['pos']))){let _0x3ee9f6=[];parseRow(_0x49696b,_0x45f13c['content'],0x0,_0x3ee9f6,_0x45f13c['start'])==parseRow(_0x49696b,_0x454102,_0x369b1d['pos'])&&(this['rows']=[_0x49696b['elt']('TableHeader',_0x45f13c['start'],_0x45f13c['start']+_0x45f13c['content']['length'],_0x3ee9f6),_0x49696b['elt']('TableDelimiter',_0x49696b['lineStart']+_0x369b1d['pos'],_0x49696b['lineStart']+_0x369b1d['text']['length'])]);}}else{if(this['rows']){let _0x32e755=[];parseRow(_0x49696b,_0x369b1d['text'],_0x369b1d['pos'],_0x32e755,_0x49696b['lineStart']),this['rows']['push'](_0x49696b['elt']('TableRow',_0x49696b['lineStart']+_0x369b1d['pos'],_0x49696b['lineStart']+_0x369b1d['text']['length'],_0x32e755));}}return!0x1;}['finish'](_0x3c4090,_0x35f4ab){return!!this['rows']&&(_0x3c4090['addLeafElement'](_0x35f4ab,_0x3c4090['elt']('Table',_0x35f4ab['start'],_0x35f4ab['start']+_0x35f4ab['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':(_0x4fd360,_0x25ff92)=>hasPipe(_0x25ff92['content'],0x0)?new TableParser():null,'endLeaf'(_0x53a3a4,_0x2ee36c,_0x5b1c96){if(_0x5b1c96['parsers']['some'](_0x322c10=>_0x322c10 instanceof TableParser)||!hasPipe(_0x2ee36c['text'],_0x2ee36c['basePos']))return!0x1;let _0x1c3180=_0x53a3a4['peekLine']();return delimiterLine['test'](_0x1c3180)&&parseRow(_0x53a3a4,_0x2ee36c['text'],_0x2ee36c['basePos'])==parseRow(_0x53a3a4,_0x1c3180,_0x2ee36c['basePos']);},'before':'SetextHeading'}]};class TaskParser{['nextLine'](){return!0x1;}['finish'](_0x21c19c,_0x1f82d9){return _0x21c19c['addLeafElement'](_0x1f82d9,_0x21c19c['elt']('Task',_0x1f82d9['start'],_0x1f82d9['start']+_0x1f82d9['content']['length'],[_0x21c19c['elt']('TaskMarker',_0x1f82d9['start'],_0x1f82d9['start']+0x3),..._0x21c19c['parser']['parseInline'](_0x1f82d9['content']['slice'](0x3),_0x1f82d9['start']+0x3)])),!0x0;}}const TaskList={'defineNodes':[{'name':'Task','block':!0x0,'style':tags$1['list']},{'name':'TaskMarker','style':tags$1['atom']}],'parseBlock':[{'name':'TaskList','leaf':(_0x132706,_0x4fcf7f)=>/^\[[ xX]\][ \t]/['test'](_0x4fcf7f['content'])&&'ListItem'==_0x132706['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(_0x9bb230,_0x85b375,_0x15cda7,_0x265c0c){let _0x4562a9=0x0;for(let _0x221972=_0x85b375;_0x221972<_0x15cda7;_0x221972++)_0x9bb230[_0x221972]==_0x265c0c&&_0x4562a9++;return _0x4562a9;}function autolinkURLEnd(_0xddc5da,_0x45a7b3){urlRE['lastIndex']=_0x45a7b3;let _0x3b6df2=urlRE['exec'](_0xddc5da);if(!_0x3b6df2||lastTwoDomainWords['exec'](_0x3b6df2[0x0])[0x0]['indexOf']('_')>-0x1)return-0x1;let _0xf1a4b9=_0x45a7b3+_0x3b6df2[0x0]['length'];for(;;){let _0x4c57b7,_0x53c284=_0xddc5da[_0xf1a4b9-0x1];if(/[?!.,:*_~]/['test'](_0x53c284)||')'==_0x53c284&&count(_0xddc5da,_0x45a7b3,_0xf1a4b9,')')>count(_0xddc5da,_0x45a7b3,_0xf1a4b9,'('))_0xf1a4b9--;else{if(';'!=_0x53c284||!(_0x4c57b7=/&(?:#\d+|#x[a-f\d]+|\w+);$/['exec'](_0xddc5da['slice'](_0x45a7b3,_0xf1a4b9))))break;_0xf1a4b9=_0x45a7b3+_0x4c57b7['index'];}}return _0xf1a4b9;}function autolinkEmailEnd(_0x4d2feb,_0x1cf86c){emailRE['lastIndex']=_0x1cf86c;let _0x51f10e=emailRE['exec'](_0x4d2feb);if(!_0x51f10e)return-0x1;let _0x97a885=_0x51f10e[0x0][_0x51f10e[0x0]['length']-0x1];return'_'==_0x97a885||'-'==_0x97a885?-0x1:_0x1cf86c+_0x51f10e[0x0]['length']-('.'==_0x97a885?0x1:0x0);}const Autolink={'parseInline':[{'name':'Autolink','parse'(_0x596b8a,_0x1b9d77,_0x5c032b){let _0x2b4c96=_0x5c032b-_0x596b8a['offset'];if(_0x2b4c96&&/\w/['test'](_0x596b8a['text'][_0x2b4c96-0x1]))return-0x1;autolinkRE['lastIndex']=_0x2b4c96;let _0x2d0dce=autolinkRE['exec'](_0x596b8a['text']),_0x525d8e=-0x1;if(!_0x2d0dce)return-0x1;if(_0x2d0dce[0x1]||_0x2d0dce[0x2])(_0x525d8e=autolinkURLEnd(_0x596b8a['text'],_0x2b4c96+_0x2d0dce[0x0]['length']),_0x525d8e>-0x1&&_0x596b8a['hasOpenLink'])&&(_0x525d8e=_0x2b4c96+/([^\[\]]|\[[^\]]*\])*/['exec'](_0x596b8a['text']['slice'](_0x2b4c96,_0x525d8e))[0x0]['length']);else _0x2d0dce[0x3]?_0x525d8e=autolinkEmailEnd(_0x596b8a['text'],_0x2b4c96):(_0x525d8e=autolinkEmailEnd(_0x596b8a['text'],_0x2b4c96+_0x2d0dce[0x0]['length']),_0x525d8e>-0x1&&'xmpp:'==_0x2d0dce[0x0]&&(xmppResourceRE['lastIndex']=_0x525d8e,_0x2d0dce=xmppResourceRE['exec'](_0x596b8a['text']),_0x2d0dce&&(_0x525d8e=_0x2d0dce['index']+_0x2d0dce[0x0]['length'])));return _0x525d8e<0x0?-0x1:(_0x596b8a['addElement'](_0x596b8a['elt']('URL',_0x5c032b,_0x525d8e+_0x596b8a['offset'])),_0x525d8e+_0x596b8a['offset']);}}]},GFM=[Table,TaskList,Strikethrough,Autolink];function parseSubSuper(_0x1c1b45,_0x4b1a3e,_0x45513b){return(_0x2896af,_0x28deab,_0x243afa)=>{if(_0x28deab!=_0x1c1b45||_0x2896af['char'](_0x243afa+0x1)==_0x1c1b45)return-0x1;let _0x55c75a=[_0x2896af['elt'](_0x45513b,_0x243afa,_0x243afa+0x1)];for(let _0x296a08=_0x243afa+0x1;_0x296a08<_0x2896af['end'];_0x296a08++){let _0x1fce33=_0x2896af['char'](_0x296a08);if(_0x1fce33==_0x1c1b45)return _0x2896af['addElement'](_0x2896af['elt'](_0x4b1a3e,_0x243afa,_0x296a08+0x1,_0x55c75a['concat'](_0x2896af['elt'](_0x45513b,_0x296a08,_0x296a08+0x1))));if(0x5c==_0x1fce33&&_0x55c75a['push'](_0x2896af['elt']('Escape',_0x296a08,0x2+_0x296a08++)),space(_0x1fce33))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'(_0x3c8654,_0x312367,_0x4095aa){let _0x32a173;return 0x3a==_0x312367&&(_0x32a173=/^[a-zA-Z_0-9]+:/['exec'](_0x3c8654['slice'](_0x4095aa+0x1,_0x3c8654['end'])))?_0x3c8654['addElement'](_0x3c8654['elt']('Emoji',_0x4095aa,_0x4095aa+0x1+_0x32a173[0x0]['length'])):-0x1;}}]},data=defineLanguageFacet({'commentTokens':{'block':{'open':'<!--','close':'-->'}}}),headingProp=new NodeProp(),commonmark=parser['configure']({'props':[foldNodeProp['add'](_0x73a1d5=>!_0x73a1d5['is']('Block')||_0x73a1d5['is']('Document')||null!=isHeading(_0x73a1d5)||isList(_0x73a1d5)?void 0x0:(_0x31ac55,_0x1e1aeb)=>({'from':_0x1e1aeb['doc']['lineAt'](_0x31ac55['from'])['to'],'to':_0x31ac55['to']})),headingProp['add'](isHeading),indentNodeProp['add']({'Document':()=>null}),languageDataProp['add']({'Document':data})]});function isHeading(_0x47c64b){let _0x25281f=/^(?:ATX|Setext)Heading(\d)$/['exec'](_0x47c64b['name']);return _0x25281f?+_0x25281f[0x1]:void 0x0;}function isList(_0x112ebf){return'OrderedList'==_0x112ebf['name']||'BulletList'==_0x112ebf['name'];}function findSectionEnd(_0x1858d4,_0x1ce772){let _0xb900ed=_0x1858d4;for(;;){let _0x3092b5,_0x564fce=_0xb900ed['nextSibling'];if(!_0x564fce||null!=(_0x3092b5=isHeading(_0x564fce['type']))&&_0x3092b5<=_0x1ce772)break;_0xb900ed=_0x564fce;}return _0xb900ed['to'];}const headerIndent=foldService['of']((_0x3afdb0,_0x327a2c,_0x52b562)=>{for(let _0x3e88b7=syntaxTree(_0x3afdb0)['resolveInner'](_0x52b562,-0x1);_0x3e88b7&&!(_0x3e88b7['from']<_0x327a2c);_0x3e88b7=_0x3e88b7['parent']){let _0x1026c3=_0x3e88b7['type']['prop'](headingProp);if(null==_0x1026c3)continue;let _0x2ad552=findSectionEnd(_0x3e88b7,_0x1026c3);if(_0x2ad552>_0x52b562)return{'from':_0x52b562,'to':_0x2ad552};}return null;});function mkLang(_0x3de067){return new Language(data,_0x3de067,[headerIndent],'markdown');}const commonmarkLanguage=mkLang(commonmark),extended=commonmark['configure']([GFM,Subscript,Superscript,Emoji,{'props':[foldNodeProp['add']({'Table':(_0x201598,_0x8d1b10)=>({'from':_0x8d1b10['doc']['lineAt'](_0x201598['from'])['to'],'to':_0x201598['to']})})]}]),markdownLanguage=mkLang(extended);function getCodeParser(_0x2a6031,_0x3efd56){return _0x38e741=>{if(_0x38e741&&_0x2a6031){let _0x4e88d6=null;if(_0x38e741=/\S*/['exec'](_0x38e741)[0x0],_0x4e88d6='function'==typeof _0x2a6031?_0x2a6031(_0x38e741):LanguageDescription['matchLanguageName'](_0x2a6031,_0x38e741,!0x0),_0x4e88d6 instanceof LanguageDescription)return _0x4e88d6['support']?_0x4e88d6['support']['language']['parser']:ParseContext['getSkippingParser'](_0x4e88d6['load']());if(_0x4e88d6)return _0x4e88d6['parser'];}return _0x3efd56?_0x3efd56['parser']:null;};}class Context{constructor(_0xd081b5,_0x361a2a,_0xdb1c1a,_0x1f4e2e,_0xc26c40,_0x5ec785,_0x26868d){this['node']=_0xd081b5,this['from']=_0x361a2a,this['to']=_0xdb1c1a,this['spaceBefore']=_0x1f4e2e,this['spaceAfter']=_0xc26c40,this['type']=_0x5ec785,this['item']=_0x26868d;}['blank'](_0x1e334e,_0x14071e=!0x0){let _0x308daf=this['spaceBefore']+('Blockquote'==this['node']['name']?'>':'');if(null!=_0x1e334e){for(;_0x308daf['length']<_0x1e334e;)_0x308daf+='\x20';return _0x308daf;}for(let _0xa5a6c0=this['to']-this['from']-_0x308daf['length']-this['spaceAfter']['length'];_0xa5a6c0>0x0;_0xa5a6c0--)_0x308daf+='\x20';return _0x308daf+(_0x14071e?this['spaceAfter']:'');}['marker'](_0x446ff6,_0xc7ed48){let _0x6ef99d='OrderedList'==this['node']['name']?String(+itemNumber(this['item'],_0x446ff6)[0x2]+_0xc7ed48):'';return this['spaceBefore']+_0x6ef99d+this['type']+this['spaceAfter'];}}function getContext(_0x401296,_0x43006e){let _0x4d4dd1=[],_0x3f6ab7=[];for(let _0x20c26a=_0x401296;_0x20c26a;_0x20c26a=_0x20c26a['parent']){if('FencedCode'==_0x20c26a['name'])return _0x3f6ab7;'ListItem'!=_0x20c26a['name']&&'Blockquote'!=_0x20c26a['name']||_0x4d4dd1['push'](_0x20c26a);}for(let _0x55079a=_0x4d4dd1['length']-0x1;_0x55079a>=0x0;_0x55079a--){let _0x344188,_0x282c56=_0x4d4dd1[_0x55079a],_0x3d3bf8=_0x43006e['lineAt'](_0x282c56['from']),_0x1a70a9=_0x282c56['from']-_0x3d3bf8['from'];if('Blockquote'==_0x282c56['name']&&(_0x344188=/^ *>( ?)/['exec'](_0x3d3bf8['text']['slice'](_0x1a70a9))))_0x3f6ab7['push'](new Context(_0x282c56,_0x1a70a9,_0x1a70a9+_0x344188[0x0]['length'],'',_0x344188[0x1],'>',null));else{if('ListItem'==_0x282c56['name']&&'OrderedList'==_0x282c56['parent']['name']&&(_0x344188=/^( *)\d+([.)])( *)/['exec'](_0x3d3bf8['text']['slice'](_0x1a70a9)))){let _0x1a55b7=_0x344188[0x3],_0x4c74db=_0x344188[0x0]['length'];_0x1a55b7['length']>=0x4&&(_0x1a55b7=_0x1a55b7['slice'](0x0,_0x1a55b7['length']-0x4),_0x4c74db-=0x4),_0x3f6ab7['push'](new Context(_0x282c56['parent'],_0x1a70a9,_0x1a70a9+_0x4c74db,_0x344188[0x1],_0x1a55b7,_0x344188[0x2],_0x282c56));}else{if('ListItem'==_0x282c56['name']&&'BulletList'==_0x282c56['parent']['name']&&(_0x344188=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/['exec'](_0x3d3bf8['text']['slice'](_0x1a70a9)))){let _0x2dc29=_0x344188[0x4],_0x3f662b=_0x344188[0x0]['length'];_0x2dc29['length']>0x4&&(_0x2dc29=_0x2dc29['slice'](0x0,_0x2dc29['length']-0x4),_0x3f662b-=0x4);let _0x53dfac=_0x344188[0x2];_0x344188[0x3]&&(_0x53dfac+=_0x344188[0x3]['replace'](/[xX]/,'\x20')),_0x3f6ab7['push'](new Context(_0x282c56['parent'],_0x1a70a9,_0x1a70a9+_0x3f662b,_0x344188[0x1],_0x2dc29,_0x53dfac,_0x282c56));}}}}return _0x3f6ab7;}function itemNumber(_0x4ea3a2,_0x2b2b99){return/^(\s*)(\d+)(?=[.)])/['exec'](_0x2b2b99['sliceString'](_0x4ea3a2['from'],_0x4ea3a2['from']+0xa));}function renumberList(_0x505fd0,_0x3866db,_0x5c780f,_0x2d9b21=0x0){for(let _0x5b2897=-0x1,_0x26ec93=_0x505fd0;;){if('ListItem'==_0x26ec93['name']){let _0x4171d6=itemNumber(_0x26ec93,_0x3866db),_0x3f37d6=+_0x4171d6[0x2];if(_0x5b2897>=0x0){if(_0x3f37d6!=_0x5b2897+0x1)return;_0x5c780f['push']({'from':_0x26ec93['from']+_0x4171d6[0x1]['length'],'to':_0x26ec93['from']+_0x4171d6[0x0]['length'],'insert':String(_0x5b2897+0x2+_0x2d9b21)});}_0x5b2897=_0x3f37d6;}let _0x4d1c59=_0x26ec93['nextSibling'];if(!_0x4d1c59)break;_0x26ec93=_0x4d1c59;}}function normalizeIndent(_0x73fb29,_0xc4cb3){let _0x215966=/^[ \t]*/['exec'](_0x73fb29)[0x0]['length'];if(!_0x215966||'\x09'!=_0xc4cb3['facet'](indentUnit))return _0x73fb29;let _0x284563='';for(let _0x30865a=countColumn(_0x73fb29,0x4,_0x215966);_0x30865a>0x0;)_0x30865a>=0x4?(_0x284563+='\x09',_0x30865a-=0x4):(_0x284563+='\x20',_0x30865a--);return _0x284563+_0x73fb29['slice'](_0x215966);}const insertNewlineContinueMarkup=({state:_0xda7274,dispatch:_0x2c38fe})=>{let _0x191647=syntaxTree(_0xda7274),{doc:_0x380a8f}=_0xda7274,_0x2f71f3=null,_0x2856c0=_0xda7274['changeByRange'](_0x5c89c4=>{if(!_0x5c89c4['empty']||!markdownLanguage['isActiveAt'](_0xda7274,_0x5c89c4['from'],0x0))return _0x2f71f3={'range':_0x5c89c4};let _0x52fa0d=_0x5c89c4['from'],_0xa30ff=_0x380a8f['lineAt'](_0x52fa0d),_0xb680c9=getContext(_0x191647['resolveInner'](_0x52fa0d,-0x1),_0x380a8f);for(;_0xb680c9['length']&&_0xb680c9[_0xb680c9['length']-0x1]['from']>_0x52fa0d-_0xa30ff['from'];)_0xb680c9['pop']();if(!_0xb680c9['length'])return _0x2f71f3={'range':_0x5c89c4};let _0x3fd089=_0xb680c9[_0xb680c9['length']-0x1];if(_0x3fd089['to']-_0x3fd089['spaceAfter']['length']>_0x52fa0d-_0xa30ff['from'])return _0x2f71f3={'range':_0x5c89c4};let _0x3d404d=_0x52fa0d>=_0x3fd089['to']-_0x3fd089['spaceAfter']['length']&&!/\S/['test'](_0xa30ff['text']['slice'](_0x3fd089['to']));if(_0x3fd089['item']&&_0x3d404d){let _0x8e9c82=_0x3fd089['node']['firstChild'],_0x31d3bf=_0x3fd089['node']['getChild']('ListItem','ListItem');if(_0x8e9c82['to']>=_0x52fa0d||_0x31d3bf&&_0x31d3bf['to']<_0x52fa0d||_0xa30ff['from']>0x0&&!/[^\s>]/['test'](_0x380a8f['lineAt'](_0xa30ff['from']-0x1)['text'])){let _0x201c0e,_0x1231d5=_0xb680c9['length']>0x1?_0xb680c9[_0xb680c9['length']-0x2]:null,_0x911f61='';_0x1231d5&&_0x1231d5['item']?(_0x201c0e=_0xa30ff['from']+_0x1231d5['from'],_0x911f61=_0x1231d5['marker'](_0x380a8f,0x1)):_0x201c0e=_0xa30ff['from']+(_0x1231d5?_0x1231d5['to']:0x0);let _0x429def=[{'from':_0x201c0e,'to':_0x52fa0d,'insert':_0x911f61}];return'OrderedList'==_0x3fd089['node']['name']&&renumberList(_0x3fd089['item'],_0x380a8f,_0x429def,-0x2),_0x1231d5&&'OrderedList'==_0x1231d5['node']['name']&&renumberList(_0x1231d5['item'],_0x380a8f,_0x429def),{'range':EditorSelection['cursor'](_0x201c0e+_0x911f61['length']),'changes':_0x429def};}{let _0x2a6e85=blankLine(_0xb680c9,_0xda7274,_0xa30ff);return{'range':EditorSelection['cursor'](_0x52fa0d+_0x2a6e85['length']+0x1),'changes':{'from':_0xa30ff['from'],'insert':_0x2a6e85+_0xda7274['lineBreak']}};}}if('Blockquote'==_0x3fd089['node']['name']&&_0x3d404d&&_0xa30ff['from']){let _0x818e39=_0x380a8f['lineAt'](_0xa30ff['from']-0x1),_0x453671=/>\s*$/['exec'](_0x818e39['text']);if(_0x453671&&_0x453671['index']==_0x3fd089['from']){let _0x5b8a8a=_0xda7274['changes']([{'from':_0x818e39['from']+_0x453671['index'],'to':_0x818e39['to']},{'from':_0xa30ff['from']+_0x3fd089['from'],'to':_0xa30ff['to']}]);return{'range':_0x5c89c4['map'](_0x5b8a8a),'changes':_0x5b8a8a};}}let _0x7b11d2=[];'OrderedList'==_0x3fd089['node']['name']&&renumberList(_0x3fd089['item'],_0x380a8f,_0x7b11d2);let _0x42c3c7=_0x3fd089['item']&&_0x3fd089['item']['from']<_0xa30ff['from'],_0x25197c='';if(!_0x42c3c7||/^[\s\d.)\-+*>]*/['exec'](_0xa30ff['text'])[0x0]['length']>=_0x3fd089['to']){for(let _0x35260e=0x0,_0x5de408=_0xb680c9['length']-0x1;_0x35260e<=_0x5de408;_0x35260e++)_0x25197c+=_0x35260e!=_0x5de408||_0x42c3c7?_0xb680c9[_0x35260e]['blank'](_0x35260e<_0x5de408?countColumn(_0xa30ff['text'],0x4,_0xb680c9[_0x35260e+0x1]['from'])-_0x25197c['length']:null):_0xb680c9[_0x35260e]['marker'](_0x380a8f,0x1);}let _0x227747=_0x52fa0d;for(;_0x227747>_0xa30ff['from']&&/\s/['test'](_0xa30ff['text']['charAt'](_0x227747-_0xa30ff['from']-0x1));)_0x227747--;return _0x25197c=normalizeIndent(_0x25197c,_0xda7274),nonTightList(_0x3fd089['node'],_0xda7274['doc'])&&(_0x25197c=blankLine(_0xb680c9,_0xda7274,_0xa30ff)+_0xda7274['lineBreak']+_0x25197c),_0x7b11d2['push']({'from':_0x227747,'to':_0x52fa0d,'insert':_0xda7274['lineBreak']+_0x25197c}),{'range':EditorSelection['cursor'](_0x227747+_0x25197c['length']+0x1),'changes':_0x7b11d2};});return!_0x2f71f3&&(_0x2c38fe(_0xda7274['update'](_0x2856c0,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0);};function isMark(_0x39f34e){return'QuoteMark'==_0x39f34e['name']||'ListMark'==_0x39f34e['name'];}function nonTightList(_0x4278f0,_0x1bcd0b){if('OrderedList'!=_0x4278f0['name']&&'BulletList'!=_0x4278f0['name'])return!0x1;let _0x2954e1=_0x4278f0['firstChild'],_0x2314ae=_0x4278f0['getChild']('ListItem','ListItem');if(!_0x2314ae)return!0x1;let _0x2a05ce=_0x1bcd0b['lineAt'](_0x2954e1['to']),_0x46618c=_0x1bcd0b['lineAt'](_0x2314ae['from']),_0x35a785=/^[\s>]*$/['test'](_0x2a05ce['text']);return _0x2a05ce['number']+(_0x35a785?0x0:0x1)<_0x46618c['number'];}function blankLine(_0x10ab91,_0x18c7f7,_0x5c13b0){let _0x206f4f='';for(let _0x53fc97=0x0,_0x1b9ddb=_0x10ab91['length']-0x2;_0x53fc97<=_0x1b9ddb;_0x53fc97++)_0x206f4f+=_0x10ab91[_0x53fc97]['blank'](_0x53fc97<_0x1b9ddb?countColumn(_0x5c13b0['text'],0x4,Math['min'](_0x5c13b0['text']['length'],_0x10ab91[_0x53fc97+0x1]['from']))-_0x206f4f['length']:null,_0x53fc97<_0x1b9ddb);return normalizeIndent(_0x206f4f,_0x18c7f7);}function contextNodeForDelete(_0x15429d,_0x53f924){let _0x147b7f=_0x15429d['resolveInner'](_0x53f924,-0x1),_0x50e729=_0x53f924;isMark(_0x147b7f)&&(_0x50e729=_0x147b7f['from'],_0x147b7f=_0x147b7f['parent']);for(let _0x3c400d;_0x3c400d=_0x147b7f['childBefore'](_0x50e729);)if(isMark(_0x3c400d))_0x50e729=_0x3c400d['from'];else{if('OrderedList'!=_0x3c400d['name']&&'BulletList'!=_0x3c400d['name'])break;_0x147b7f=_0x3c400d['lastChild'],_0x50e729=_0x147b7f['to'];}return _0x147b7f;}const deleteMarkupBackward=({state:_0x2fc2a5,dispatch:_0x447b93})=>{let _0x3e41f2=syntaxTree(_0x2fc2a5),_0x2c0ad1=null,_0x575bd4=_0x2fc2a5['changeByRange'](_0x175c92=>{let _0x5a3b9f=_0x175c92['from'],{doc:_0x12a3b5}=_0x2fc2a5;if(_0x175c92['empty']&&markdownLanguage['isActiveAt'](_0x2fc2a5,_0x175c92['from'])){let _0x49dd29=_0x12a3b5['lineAt'](_0x5a3b9f),_0x4ce423=getContext(contextNodeForDelete(_0x3e41f2,_0x5a3b9f),_0x12a3b5);if(_0x4ce423['length']){let _0x11db33=_0x4ce423[_0x4ce423['length']-0x1],_0x18f36b=_0x11db33['to']-_0x11db33['spaceAfter']['length']+(_0x11db33['spaceAfter']?0x1:0x0);if(_0x5a3b9f-_0x49dd29['from']>_0x18f36b&&!/\S/['test'](_0x49dd29['text']['slice'](_0x18f36b,_0x5a3b9f-_0x49dd29['from'])))return{'range':EditorSelection['cursor'](_0x49dd29['from']+_0x18f36b),'changes':{'from':_0x49dd29['from']+_0x18f36b,'to':_0x5a3b9f}};if(_0x5a3b9f-_0x49dd29['from']==_0x18f36b&&(!_0x11db33['item']||_0x49dd29['from']<=_0x11db33['item']['from']||!/\S/['test'](_0x49dd29['text']['slice'](0x0,_0x11db33['to'])))){let _0x541237=_0x49dd29['from']+_0x11db33['from'];if(_0x11db33['item']&&_0x11db33['node']['from']<_0x11db33['item']['from']&&/\S/['test'](_0x49dd29['text']['slice'](_0x11db33['from'],_0x11db33['to']))){let _0x549e3f=_0x11db33['blank'](countColumn(_0x49dd29['text'],0x4,_0x11db33['to'])-countColumn(_0x49dd29['text'],0x4,_0x11db33['from']));return _0x541237==_0x49dd29['from']&&(_0x549e3f=normalizeIndent(_0x549e3f,_0x2fc2a5)),{'range':EditorSelection['cursor'](_0x541237+_0x549e3f['length']),'changes':{'from':_0x541237,'to':_0x49dd29['from']+_0x11db33['to'],'insert':_0x549e3f}};}if(_0x541237<_0x5a3b9f)return{'range':EditorSelection['cursor'](_0x541237),'changes':{'from':_0x541237,'to':_0x5a3b9f}};}}}return _0x2c0ad1={'range':_0x175c92};});return!_0x2c0ad1&&(_0x447b93(_0x2fc2a5['update'](_0x575bd4,{'scrollIntoView':!0x0,'userEvent':'delete'})),!0x0);},markdownKeymap=[{'key':'Enter','run':insertNewlineContinueMarkup},{'key':'Backspace','run':deleteMarkupBackward}],htmlNoMatch=html({'matchClosingTags':!0x1});function markdown(_0x120b47={}){let {codeLanguages:_0xfcbffa,defaultCodeLanguage:_0x104f98,addKeymap:_0x1460fe=!0x0,base:{parser:_0x595bcc}=commonmarkLanguage,completeHTMLTags:_0x3e8c6e=!0x0,htmlTagLanguage:_0x5dde0a=htmlNoMatch}=_0x120b47;if(!(_0x595bcc instanceof MarkdownParser))throw new RangeError('Base\x20parser\x20provided\x20to\x20`markdown`\x20should\x20be\x20a\x20Markdown\x20parser');let _0x48f54c,_0x7e4903=_0x120b47['extensions']?[_0x120b47['extensions']]:[],_0x31847=[_0x5dde0a['support']];_0x104f98 instanceof LanguageSupport?(_0x31847['push'](_0x104f98['support']),_0x48f54c=_0x104f98['language']):_0x104f98&&(_0x48f54c=_0x104f98);let _0x16d597=_0xfcbffa||_0x48f54c?getCodeParser(_0xfcbffa,_0x48f54c):void 0x0;_0x7e4903['push'](parseCode({'codeParser':_0x16d597,'htmlParser':_0x5dde0a['language']['parser']})),_0x1460fe&&_0x31847['push'](Prec['high'](keymap['of'](markdownKeymap)));let _0x288175=mkLang(_0x595bcc['configure'](_0x7e4903));return _0x3e8c6e&&_0x31847['push'](_0x288175['data']['of']({'autocomplete':htmlTagCompletion})),new LanguageSupport(_0x288175,_0x31847);}function htmlTagCompletion(_0x2ffbc4){let {state:_0x55d757,pos:_0x4fcf8f}=_0x2ffbc4,_0x48947e=/<[:\-\.\w\u00b7-\uffff]*$/['exec'](_0x55d757['sliceDoc'](_0x4fcf8f-0x19,_0x4fcf8f));if(!_0x48947e)return null;let _0x528d4f=syntaxTree(_0x55d757)['resolveInner'](_0x4fcf8f,-0x1);for(;_0x528d4f&&!_0x528d4f['type']['isTop'];){if('CodeBlock'==_0x528d4f['name']||'FencedCode'==_0x528d4f['name']||'ProcessingInstructionBlock'==_0x528d4f['name']||'CommentBlock'==_0x528d4f['name']||'Link'==_0x528d4f['name']||'Image'==_0x528d4f['name'])return null;_0x528d4f=_0x528d4f['parent'];}return{'from':_0x4fcf8f-_0x48947e[0x0]['length'],'to':_0x4fcf8f,'options':htmlTagCompletions(),'validFor':/^<[:\-\.\w\u00b7-\uffff]*$/};}let _tagCompletions=null;function htmlTagCompletions(){if(_tagCompletions)return _tagCompletions;let _0x2d5478=htmlCompletionSource(new CompletionContext(EditorState['create']({'extensions':htmlNoMatch}),0x0,!0x0));return _tagCompletions=_0x2d5478?_0x2d5478['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(_0x13faad){const _0x39c123=getDefaultExtensions(),_0x92a69f=new Compartment();_0x39c123['push'](_0x92a69f['of'](EditorView['editable']['of'](!0x0))),'html'===_0x13faad['syntaxLanguage']?_0x39c123['push'](html()):_0x39c123['push'](markdown());const _0x33be1c=normalizeTheme(_0x13faad['theme']);_0x33be1c&&_0x39c123['push'](_0x33be1c),_0x39c123['push'](...getKeybindings());const _0x2c7604=new EditorView({'extensions':_0x39c123,'parent':_0x13faad['parent']});return toggleTabFocusMode(_0x2c7604),{'focus':()=>{_0x2c7604['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x2c7604['focus']();},'getData':()=>_0x2c7604['state']['doc']['toString'](),'setData':_0x5c8593=>{_0x2c7604['dispatch']({'changes':{'from':0x0,'to':_0x2c7604['state']['doc']['length'],'insert':_0x5c8593},'annotations':Transaction['addToHistory']['of'](!0x1)});},'setReadOnly':_0x2b6e87=>{_0x2c7604['dispatch']({'effects':[_0x92a69f['reconfigure'](EditorView['editable']['of'](!_0x2b6e87))]});},'destroy':()=>{_0x2c7604['destroy']();},'instance':_0x2c7604};}function normalizeTheme(_0x47607c){return _0x47607c&&'default'!==_0x47607c?'dark'===_0x47607c?oneDark:_0x47607c: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(_0x5e0490,_0x11579c){super(_0x5e0490),this['_options']=_0x11579c,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',(_0x3b3b2a,_0x30adac,_0x585d23)=>{this['setReadOnly'](_0x585d23);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x4ed17d){this['_codeEditorApi']['setData'](_0x4ed17d);}['setReadOnly'](_0x4a9810){this['_codeEditorApi']['setReadOnly'](_0x4a9810);}}const COMMAND_FORCE_DISABLE_ID='SourceEditingEnhancedMode';class EditSourceCommand extends Command{constructor(_0x28afa3){super(_0x28afa3),this['affectsData']=!0x1,this['editor']['plugins']['get'](PendingActions)['on']('change:hasAny',(_0x365a77,_0x5b0a20,_0x202bd1)=>{_0x202bd1?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x11cd05=this['editor'];for(const _0x522945 of _0x11cd05['commands']['names']())['replaceSource','editSource']['includes'](_0x522945)||_0x11cd05['commands']['get'](_0x522945)['forceDisabled'](COMMAND_FORCE_DISABLE_ID);}['_enableCommands'](){const _0xa0821d=this['editor'];for(const _0x3ec3ac of _0xa0821d['commands']['commands']())_0x3ec3ac['clearForceDisabled'](COMMAND_FORCE_DISABLE_ID);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x321d8f=this['editor'],_0x1cd781=_0x321d8f['locale'],_0x2f41bf=_0x321d8f['plugins']['get']('Dialog'),_0xea0f6=getActiveRootName(_0x321d8f),_0x335d5d=formatSource(_0x321d8f['data']['get']({'rootName':_0xea0f6})),_0x4aea2c=new CodeEditorView(_0x1cd781,{'syntaxLanguage':_0x321d8f['plugins']['has']('Markdown')?'markdown':'html','theme':_0x321d8f['config']['get']('sourceEditingEnhanced.theme')});let _0x20b7ab=!0x0;const _0x3a6099=_0x579694=>{if(!_0x20b7ab)return;return unformatSource(_0x4aea2c['getData']())!==unformatSource(_0x335d5d)?window['confirm'](getTranslation$2(_0x1cd781,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x579694['stop']():void 0x0;};_0x2f41bf['show']({'id':'sourceEditingEnhanced','title':getTranslation$2(_0x1cd781,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x4aea2c,'actionButtons':[{'label':getTranslation$2(_0x1cd781,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x2f41bf['hide']();}},{'label':getTranslation$2(_0x1cd781,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x1bc0ab=unformatSource(_0x4aea2c['getData']())!==unformatSource(_0x335d5d);(_0x1bc0ab&&_0x321d8f['execute']('replaceSource',_0x4aea2c['getData']()),_0x20b7ab=!0x1,_0x2f41bf['hide'](),_0x1bc0ab&&'editables'in _0x321d8f['ui']['view'])&&_0x321d8f['ui']['view']['editables'][_0xea0f6]['element']['focus']();},'onCreate':_0x27c15c=>{_0x27c15c['set']('isEnabled',!_0x321d8f['isReadOnly']),_0x27c15c['bind']('isEnabled')['to'](_0x321d8f,'isReadOnly',this,'isEnabled',(_0x4b245b,_0x309831)=>!_0x4b245b&&_0x309831);}}],'onHide':()=>{this['_enableCommands'](),_0x2f41bf['off']('hide',_0x3a6099),_0x4aea2c['destroy']();},'onShow':()=>{_0x4aea2c['bind']('isReadOnly')['to'](_0x321d8f,'isReadOnly',this,'isEnabled',(_0x307905,_0x532b44)=>_0x307905||!_0x532b44),_0x4aea2c['setData'](_0x335d5d),_0x4aea2c['focus'](),_0x2f41bf['on']('hide',_0x3a6099,{'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 _0x2fe043=this['editor'],_0x45a317=_0x2fe043['locale'],_0x15b49c=new EditSourceCommand(_0x2fe043);_0x2fe043['commands']['add']('editSource',_0x15b49c),_0x2fe043['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x146818=this['_createButton'](ButtonView,_0x15b49c);return _0x146818['set']({'label':getTranslation$2(_0x45a317,'Source'),'icon':IconSource,'tooltip':getTranslation$2(_0x45a317,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x146818;}),_0x2fe043['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x2e301d=this['_createButton'](MenuBarMenuListItemButtonView,_0x15b49c,!0x0);return _0x2e301d['set']({'label':getTranslation$2(_0x45a317,'Edit\x20source\x20modal\x20label'),'icon':IconSource,'role':'menuitemcheckbox'}),_0x2e301d;}),this['_registerKeybindings']();}['afterInit'](){checkLicense$2(this);}['_createButton'](_0x3e4f71,_0x1e6e4c,_0x58b649=!0x1){const _0x4dd786=new _0x3e4f71(this['editor']['locale']);return _0x4dd786['set']({'withText':_0x58b649,'isToggleable':!0x1}),_0x4dd786['bind']('isEnabled')['to'](_0x1e6e4c,'isEnabled'),this['listenTo'](_0x4dd786,'execute',()=>_0x1e6e4c['execute']()),_0x4dd786;}['_registerKeybindings'](){const _0x4afea6=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':getTranslation$2(_0x4afea6,'Source\x20Editing\x20Enhanced')});const _0x2755d2=_0x658ae['isMac']||_0x658ae['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':getTranslation$2(_0x4afea6,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':getTranslation$2(_0x4afea6,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':getTranslation$2(_0x4afea6,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':getTranslation$2(_0x4afea6,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':getTranslation$2(_0x4afea6,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':getTranslation$2(_0x4afea6,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':getTranslation$2(_0x4afea6,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x2755d2?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':getTranslation$2(_0x4afea6,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':getTranslation$2(_0x4afea6,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':getTranslation$2(_0x4afea6,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':getTranslation$2(_0x4afea6,'Select\x20line'),'keystroke':_0x2755d2?'Ctrl!+L':'Alt+L'},{'label':getTranslation$2(_0x4afea6,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x2755d2?'Alt+Shift+M':'Ctrl+M'},{'label':getTranslation$2(_0x4afea6,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':getTranslation$2(_0x4afea6,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':getTranslation$2(_0x4afea6,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':getTranslation$2(_0x4afea6,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':getTranslation$2(_0x4afea6,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x2755d2?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}async function checkLicense$2(_0x5499b3){const _0x1c6db6=_0x2abd66([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]),_0x373510=window[_0x2abd66([0x44,0x61,0x74,0x65])][_0x2abd66([0x6e,0x6f,0x77])](),_0x5e76b7=_0x5499b3[_0x2abd66([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a7ffe=new window[(_0x2abd66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15a1b6=>{_0x5e76b7[_0x2abd66([0x6f,0x6e,0x63,0x65])](_0x2abd66([0x72,0x65,0x61,0x64,0x79]),_0x15a1b6);}),_0x3f57fb={[_0x2abd66([0x6b,0x74,0x79])]:_0x2abd66([0x45,0x43]),[_0x2abd66([0x75,0x73,0x65])]:_0x2abd66([0x73,0x69,0x67]),[_0x2abd66([0x63,0x72,0x76])]:_0x2abd66([0x50,0x2d,0x32,0x35,0x36]),[_0x2abd66([0x78])]:_0x2abd66([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]),[_0x2abd66([0x79])]:_0x2abd66([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]),[_0x2abd66([0x61,0x6c,0x67])]:_0x2abd66([0x45,0x53,0x32,0x35,0x36])},_0x30d3fb=_0x5e76b7[_0x2abd66([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2abd66([0x67,0x65,0x74])](_0x2abd66([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x57aa85=await(async function(){let _0x8ae955,_0x16072e=null,_0xbc5dac=null;try{if(_0x30d3fb==_0x2abd66([0x47,0x50,0x4c]))return _0x2abd66([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8ae955=(function(){const _0x495db8=_0x30d3fb[_0x2abd66([0x73,0x70,0x6c,0x69,0x74])](_0x2abd66([0x2e]));if(0x3!=_0x495db8[_0x2abd66([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x2327a5=_0x495db8[0x1];return _0x648d54(_0x2327a5);function _0x648d54(_0x5f119d){const _0x116b0d=_0x5143c4(_0x5f119d);return _0x116b0d&&_0x30ce70()?_0x116b0d:null;function _0x30ce70(){const _0x1e99a9=_0x116b0d[_0x2abd66([0x6a,0x74,0x69])],_0x3d3255=window[_0x2abd66([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e99a9[_0x2abd66([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e99a9[_0x2abd66([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe56e41={..._0x116b0d,[_0x2abd66([0x6a,0x74,0x69])]:_0x1e99a9[_0x2abd66([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e99a9[_0x2abd66([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe56e41[_0x2abd66([0x76,0x63])],_0x335237(_0xe56e41)==_0x3d3255;}}}()),!_0x8ae955)return _0x2abd66([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x8ae955[_0x2abd66([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbc5dac=function(_0x1bfab3,_0x237f4b){return new window[(_0x2abd66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35c3ff=>{if(_0x31ce22())return _0x35c3ff(_0x2abd66([0x56,0x61,0x6c,0x69,0x64]));_0x46294d(),_0x5e76b7[_0x2abd66([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2abd66([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x58bcca=!0x1;const _0x34d6d7=uid();function _0x5a6801(_0x1dd2b3){return!!_0x1dd2b3&&(typeof _0x1dd2b3===_0x2abd66([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1dd2b3===_0x2abd66([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1dd2b3[_0x2abd66([0x74,0x68,0x65,0x6e])]===_0x2abd66([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1dd2b3[_0x2abd66([0x63,0x61,0x74,0x63,0x68])]===_0x2abd66([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x158147(_0x41514a){_0x5c2056(_0x41514a)[_0x2abd66([0x74,0x68,0x65,0x6e])](_0x549582=>{if(!_0x549582||_0x549582[_0x2abd66([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2abd66([0x6f,0x6b]))return _0x2abd66([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x181dfd(_0x335237(_0x34d6d7+_0x237f4b))!=_0x549582[_0x2abd66([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2abd66([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2abd66([0x56,0x61,0x6c,0x69,0x64]);})[_0x2abd66([0x74,0x68,0x65,0x6e])](_0x22334e=>(_0xb314de(),_0x22334e),()=>{const _0x5aa03a=_0x4ca4e2();return null==_0x5aa03a?(_0xb314de(),_0x2abd66([0x56,0x61,0x6c,0x69,0x64])):_0x2abd66(_0x373510-_0x5aa03a>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2abd66([0x74,0x68,0x65,0x6e])](_0x35c3ff)[_0x2abd66([0x63,0x61,0x74,0x63,0x68])](()=>{_0x35c3ff(_0x2abd66([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f2bca=0x36ee80;function _0xb314de(){const _0x136ab5=_0x2abd66([0x6c,0x6c,0x63,0x74,0x2d])+_0x181dfd(_0x335237(_0x1bfab3)),_0x4d3815=_0x14810c(_0x181dfd(window[_0x2abd66([0x4d,0x61,0x74,0x68])][_0x2abd66([0x63,0x65,0x69,0x6c])](_0x373510/_0x2f2bca)));window[_0x2abd66([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2abd66([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x136ab5,_0x4d3815);}function _0x4ca4e2(){const _0x5c4cd7=_0x2abd66([0x6c,0x6c,0x63,0x74,0x2d])+_0x181dfd(_0x335237(_0x1bfab3)),_0x2ee6b4=window[_0x2abd66([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2abd66([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c4cd7);return _0x2ee6b4?window[_0x2abd66([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14810c(_0x2ee6b4),0x10)*_0x2f2bca:null;}function _0x5c2056(_0x39d771){return new window[(_0x2abd66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x547293,_0x26acb4)=>{_0x39d771[_0x2abd66([0x74,0x68,0x65,0x6e])](_0x547293,_0x26acb4),window[_0x2abd66([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26acb4,0x1d4c0);});}}_0x5e76b7[_0x2abd66([0x6f,0x6e])](_0x2abd66([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x22b414,_0x5d3cf5)=>{if(_0x5d3cf5[0x0]!=_0x1bfab3)return _0x35c3ff(_0x2abd66([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d3cf5[0x1]={..._0x5d3cf5[0x1],[_0x2abd66([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x34d6d7};},{[_0x2abd66([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2abd66([0x68,0x69,0x67,0x68])}),_0x5e76b7[_0x2abd66([0x6f,0x6e])](_0x2abd66([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1eae2f=>{_0x5a6801(_0x1eae2f[_0x2abd66([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x58bcca=!0x0,_0x158147(_0x1eae2f[_0x2abd66([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2abd66([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2abd66([0x6c,0x6f,0x77])}),_0x5a7ffe[_0x2abd66([0x74,0x68,0x65,0x6e])](()=>{_0x58bcca||_0x35c3ff(_0x2abd66([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x31ce22(){return _0x5e76b7[_0x2abd66([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2abd66([0x76,0x69,0x65,0x77])][_0x2abd66([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2abd66([0x61,0x75,0x74,0x6f]);}function _0x46294d(){_0x5e76b7[_0x2abd66([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2abd66([0x76,0x69,0x65,0x77])][_0x2abd66([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2abd66([0x61,0x75,0x74,0x6f]);}}(_0x8ae955[_0x2abd66([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8ae955[_0x2abd66([0x6a,0x74,0x69])]));const _0x221a7d=await(async function(){let _0x107733=!0x0;try{const _0x40d916=_0x30d3fb[_0x2abd66([0x73,0x70,0x6c,0x69,0x74])](_0x2abd66([0x2e])),[_0x276fd6,_0x2bd505,_0x78a84]=_0x40d916;return _0x3037c0(_0x276fd6),await _0x51a806(_0x276fd6,_0x2bd505,_0x78a84),_0x107733;}catch{return!0x1;}function _0x3037c0(_0x3d599d){const _0x5c2e9b=_0x5143c4(_0x3d599d);_0x5c2e9b&&_0x5c2e9b[_0x2abd66([0x61,0x6c,0x67])]==_0x2abd66([0x45,0x53,0x32,0x35,0x36])||(_0x107733=!0x1);}async function _0x51a806(_0x2405ef,_0x203447,_0x131cac){const _0x38c9d5=window[_0x2abd66([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2abd66([0x66,0x72,0x6f,0x6d])](_0x48eb72(_0x131cac),_0x37cf0f=>_0x37cf0f[_0x2abd66([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x41866d=new window[(_0x2abd66([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2abd66([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2405ef+_0x2abd66([0x2e])+_0x203447),_0x380c9d=window[_0x2abd66([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2abd66([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x380c9d)return;const _0x2a18bc=await _0x380c9d[_0x2abd66([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2abd66([0x6a,0x77,0x6b]),_0x3f57fb,{[_0x2abd66([0x6e,0x61,0x6d,0x65])]:_0x2abd66([0x45,0x43,0x44,0x53,0x41]),[_0x2abd66([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2abd66([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2abd66([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x380c9d[_0x2abd66([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2abd66([0x6e,0x61,0x6d,0x65])]:_0x2abd66([0x45,0x43,0x44,0x53,0x41]),[_0x2abd66([0x68,0x61,0x73,0x68])]:{[_0x2abd66([0x6e,0x61,0x6d,0x65])]:_0x2abd66([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a18bc,_0x38c9d5,_0x41866d)||(_0x107733=!0x1);}}());return _0x221a7d?(function(){const _0x2b000e=_0x8ae955[_0x2abd66([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2b000e)return!0x1;if(_0x2b000e[_0x2abd66([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2abd66([0x2a])))return!0x0;if(_0x2b000e[_0x2abd66([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2abd66([0x53,0x45,0x45])))return!0x0;return!0x1;}())?(function(){const _0x2325fd=[_0x2abd66([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2abd66([0x74,0x72,0x69,0x61,0x6c])][_0x2abd66([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8ae955[_0x2abd66([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x373510/0x3e8:0x69cb0e80;return _0x8ae955[_0x2abd66([0x65,0x78,0x70])]<_0x2325fd;}())?_0x2abd66([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x33f3a9=_0x8ae955[_0x2abd66([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33f3a9||0x0==_0x33f3a9[_0x2abd66([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x259218}=new URL(window[_0x2abd66([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33f3a9[_0x2abd66([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x259218))return!0x0;const _0x175335=_0x259218[_0x2abd66([0x73,0x70,0x6c,0x69,0x74])](_0x2abd66([0x2e]));return _0x33f3a9[_0x2abd66([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf12226=>_0xf12226[_0x2abd66([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2abd66([0x2a])))[_0x2abd66([0x6d,0x61,0x70])](_0x4f396a=>_0x4f396a[_0x2abd66([0x73,0x70,0x6c,0x69,0x74])](_0x2abd66([0x2e])))[_0x2abd66([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x316955=>_0x316955[_0x2abd66([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x175335[_0x2abd66([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2abd66([0x6d,0x61,0x70])](_0x43a4fe=>Array(_0x175335[_0x2abd66([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x43a4fe[_0x2abd66([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2abd66([0x66,0x69,0x6c,0x6c])](_0x43a4fe[0x0]===_0x2abd66([0x2a])?_0x2abd66([0x2a]):'')[_0x2abd66([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x43a4fe))[_0x2abd66([0x73,0x6f,0x6d,0x65])](_0x65f6b3=>_0x175335[_0x2abd66([0x65,0x76,0x65,0x72,0x79])]((_0x1d3e37,_0x14c65b)=>_0x65f6b3[_0x14c65b]===_0x1d3e37||_0x65f6b3[_0x14c65b]===_0x2abd66([0x2a])));}())?(_0x8ae955[_0x2abd66([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2abd66([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x16072e=function(_0x20fa59){const _0x4bba9d=new window[(_0x2abd66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f8b58=>setTimeout(_0x4f8b58,0x93ecc)),_0x5bf6e7=_0x5a7ffe[_0x2abd66([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2abd66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26cacb=>{let _0x5d390c=0x0;_0x5e76b7[_0x2abd66([0x6d,0x6f,0x64,0x65,0x6c])][_0x2abd66([0x6f,0x6e])](_0x2abd66([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5bff35,_0x5273bb)=>{_0x5273bb[0x0][_0x2abd66([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d390c++,0x5e8==_0x5d390c&&(_0x26cacb(),_0x5bff35[_0x2abd66([0x6f,0x66,0x66])]());});})),_0x2712a2=[_0x4bba9d,_0x5bf6e7];return window[_0x2abd66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2abd66([0x72,0x61,0x63,0x65])](_0x2712a2)[_0x2abd66([0x74,0x68,0x65,0x6e])](()=>_0x20fa59);}(_0x2abd66([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x16072e&&_0xbc5dac)return new window[(_0x2abd66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39bffd,_0x568b81)=>{_0x16072e[_0x2abd66([0x74,0x68,0x65,0x6e])](_0x39bffd,_0x568b81),_0xbc5dac[_0x2abd66([0x74,0x68,0x65,0x6e])](_0x5601e4=>{_0x5601e4!=_0x2abd66([0x56,0x61,0x6c,0x69,0x64])&&_0x39bffd(_0x5601e4);},_0x568b81);});return _0x16072e||_0xbc5dac||_0x2abd66([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2abd66([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2abd66([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2abd66([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2abd66([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x5143c4(_0x2ed43b){return _0x2ed43b[_0x2abd66([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2abd66([0x65,0x79]))?JSON[_0x2abd66([0x70,0x61,0x72,0x73,0x65])](_0x48eb72(_0x2ed43b)):null;}function _0x48eb72(_0x5bfa1a){return window[_0x2abd66([0x61,0x74,0x6f,0x62])](_0x5bfa1a[_0x2abd66([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2abd66([0x2b]))[_0x2abd66([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2abd66([0x2f])));}function _0x335237(_0x42bbac){let _0x26d079=0x1505;function _0x1d5ff7(_0x8107b3){for(let _0x5d49a2=0x0;_0x5d49a2<_0x8107b3[_0x2abd66([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d49a2++){const _0x5cee06=_0x8107b3[_0x2abd66([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5d49a2);_0x26d079=(_0x26d079<<0x5)+_0x26d079+_0x5cee06,_0x26d079&=_0x26d079;}}return function _0x178763(_0x419fea){Array[_0x2abd66([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x419fea)?_0x419fea[_0x2abd66([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x178763):_0x419fea&&typeof _0x419fea==_0x2abd66([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2abd66([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x419fea)[_0x2abd66([0x73,0x6f,0x72,0x74])]()[_0x2abd66([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d86d4,_0x33c3c7])=>{_0x1d5ff7(_0x2d86d4),_0x178763(_0x33c3c7);}):_0x1d5ff7(window[_0x2abd66([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x419fea));}(_0x42bbac),_0x26d079>>>0x0;}function _0x181dfd(_0x5a0b81){return _0x5a0b81[_0x2abd66([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2abd66([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2abd66([0x30]));}function _0x14810c(_0x130955){return _0x130955[_0x2abd66([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2abd66([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2abd66([0x6a,0x6f,0x69,0x6e])]('');}function _0x4eca77(){}function _0x2abd66(_0x5e6bc){return _0x5e6bc['map'](_0x2b7091=>String['fromCharCode'](_0x2b7091))['join']('');}!function(_0x5ec7ce){const _0xf76fce=(function(){const _0x4d3f27=window[_0x2abd66([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2abd66([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2abd66([0x6e,0x6f,0x77])]())[_0x2abd66([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2abd66([0x2e]),'');let _0xcdca4f=_0x2abd66([0x4e]);for(let _0x5f18a4=0x0;_0x5f18a4<_0x4d3f27[_0x2abd66([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f18a4+=0x2){let _0x493b01=window[_0x2abd66([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d3f27[_0x2abd66([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f18a4,_0x5f18a4+0x2));_0x493b01>=_0x1c6db6[_0x2abd66([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x493b01-=_0x1c6db6[_0x2abd66([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcdca4f+=_0x1c6db6[_0x493b01];}return _0xcdca4f;}());_0x5e76b7[_0xf76fce]=_0x2abd66([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])+_0x5ec7ce,_0x5ec7ce!=_0x2abd66([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x5a7ffe,_0x5e76b7[_0x2abd66([0x6d,0x6f,0x64,0x65,0x6c])][_0x2abd66([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4eca77,_0x5e76b7[_0x2abd66([0x6d,0x6f,0x64,0x65,0x6c])][_0x2abd66([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4eca77,_0x5e76b7[_0x2abd66([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2abd66([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x57aa85);}class ReplaceSourceCommand extends Command{constructor(_0x4f0038){super(_0x4f0038),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x7df0cc,_0x18ea4e){const _0x4f9ffb=this['editor'],_0x64bb0c=_0x18ea4e?.['rootName']??getActiveRootName(_0x4f9ffb);_0x4f9ffb['data']['set']({[_0x64bb0c]:_0x7df0cc},{'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(_0x8d9331){super(_0x8d9331),_0x8d9331['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 _0x1423f2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x226a59;for(const _0x29195e in _0x1423f2){const _0x5950f8=_0x29195e,_0x51eeb8=_0x1423f2[_0x5950f8];if('sourceEditingEnhancedLicenseKeyValid'==_0x51eeb8||'sourceEditingEnhancedLicenseKeyInvalid'==_0x51eeb8||'sourceEditingEnhancedLicenseKeyExpired'==_0x51eeb8||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x51eeb8||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x51eeb8||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x51eeb8||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x51eeb8){delete _0x1423f2[_0x5950f8],_0x226a59=_0x51eeb8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x226a59&&_0x1423f2['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x226a59&&_0x1423f2['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x226a59&&_0x1423f2['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x226a59&&_0x1423f2['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x226a59&&_0x1423f2['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x226a59&&_0x1423f2['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x529fae=this['editor'],_0x3bc254=_0x529fae['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x3bc254&&_0x529fae['plugins']['has']('RealTimeCollaborativeEditing'))throw new CKEditorError('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x3bc254&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x11cd76=>_0x529fae['plugins']['has'](_0x11cd76))&&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.'),_0x529fae['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'](_0x2d9129){const {model:_0x5ad506}=this['editor'];let _0x5d126f;switch(typeof _0x2d9129){case'string':_0x5d126f=_0x2d9129;break;case'function':_0x5d126f=_0x2d9129();}'string'==typeof _0x5d126f&&_0x5ad506['change'](()=>{const _0x3635de=this['editor']['data']['htmlProcessor']['toView'](_0x5d126f),_0x2f6fc1=this['editor']['data']['toModel'](_0x3635de);_0x5ad506['insertContent'](_0x2f6fc1);});}}class TemplateEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3d3663}=this;_0x3d3663['commands']['add']('insertTemplate',new TemplateCommand(_0x3d3663)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c777f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2bc211;for(const _0x17d9f1 in _0x1c777f){const _0x55faf8=_0x17d9f1,_0x1625ed=_0x1c777f[_0x55faf8];if('templateLicenseKeyValid'==_0x1625ed||'templateLicenseKeyInvalid'==_0x1625ed||'templateLicenseKeyExpired'==_0x1625ed||'templateLicenseKeyDomainLimit'==_0x1625ed||'templateLicenseKeyNotAllowed'==_0x1625ed||'templateLicenseKeyEvaluationLimit'==_0x1625ed||'templateLicenseKeyUsageLimit'==_0x1625ed){delete _0x1c777f[_0x55faf8],_0x2bc211=_0x1625ed,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x2bc211&&_0x1c777f['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x2bc211&&_0x1c777f['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x2bc211&&_0x1c777f['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x2bc211&&_0x1c777f['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x2bc211&&_0x1c777f['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x2bc211&&_0x1c777f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TemplateListView extends ListView{['filter'](_0x4f8a39){if(!_0x4f8a39)return this['_resetFiltering']();const _0x7275e2=new Map(),_0x27c40b=this['items']['map'](_0x1199ad=>{const _0x7f7543=_0x1199ad['buttonView']['isMatching'](_0x4f8a39);return _0x1199ad['isVisible']=!!_0x7f7543,_0x1199ad['buttonView']['highlightText'](_0x7f7543?_0x4f8a39:null),_0x7f7543&&_0x7275e2['set'](_0x1199ad,_0x7f7543),_0x1199ad;})['sort'](unsortListItemsCallback)['sort'](getSortListItemsCallback(_0x7275e2));return this['items']['clear'](),this['items']['addMany'](_0x27c40b),{'resultsCount':_0x7275e2['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x579b9b=this['items']['map'](_0x55b0e7=>_0x55b0e7)['sort'](unsortListItemsCallback);return _0x579b9b['forEach'](_0x2d37bc=>{_0x2d37bc['isVisible']=!0x0,_0x2d37bc['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x579b9b),{'resultsCount':_0x579b9b['length'],'totalItemsCount':_0x579b9b['length']};}}function getSortListItemsCallback(_0x377e7b){return function(_0x415b29,_0x46ab0a){const _0xbd7ce7=_0x377e7b['get'](_0x415b29),_0x5617c3=_0x377e7b['get'](_0x46ab0a);return _0xbd7ce7&&!_0x5617c3?-0x1:_0x5617c3&&!_0xbd7ce7?0x1:_0xbd7ce7||_0x5617c3?_0xbd7ce7['title']&&!_0x5617c3['title']?-0x1:!_0xbd7ce7['title']&&_0x5617c3['title']?0x1:0x0:0x0;};}function unsortListItemsCallback(_0x497b88,_0x2cbf47){return _0x497b88['originalIndex']-_0x2cbf47['originalIndex'];}class TemplateListItemView extends ListItemView{['originalIndex'];['buttonView'];constructor(_0x280599,_0xaca3a){super(_0x280599),this['originalIndex']=_0xaca3a,this['buttonView']=null;}}class TemplateListButtonView extends ButtonView{['templateDefinition'];['textPartView'];constructor(_0x5e64a9,_0x486e26){super(_0x5e64a9),this['templateDefinition']=_0x486e26,this['textPartView']=null;const {icon:_0x2df78d=IconTemplateGeneric}=_0x486e26;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x2df78d}),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'](_0x390954){const {title:_0x491afd,description:_0x50330}=this['templateDefinition'],_0x4602e3=!!_0x491afd['match'](_0x390954),_0x52a0e3=!(!_0x50330||!_0x50330['match'](_0x390954));return _0x4602e3||_0x52a0e3?{'title':_0x4602e3,'description':_0x52a0e3}:null;}['highlightText'](_0x156a5d){this['textPartView']['highlightText'](_0x156a5d);}}class TextPartView extends View{constructor(_0x37a099,_0x50beb7,_0x1e7f23){super(_0x37a099),this['title']=_0x50beb7['title'],this['description']=_0x50beb7['description'],this['titleView']=new HighlightedTextView(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x1e7f23}});const _0x766e1a=[this['titleView']];this['description']&&(this['descriptionView']=new HighlightedTextView(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x766e1a['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x766e1a});}['highlightText'](_0x125316){this['titleView']['highlightText'](_0x125316),this['description']&&this['descriptionView']['highlightText'](_0x125316);}}function getTranslation$1(_0x1eef5a,_0x4aaa0c,..._0x449c61){const t=_0x1eef5a['t'];switch(_0x4aaa0c){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x449c61);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',..._0x449c61);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x4aaa0c;}}class TemplateUI extends Plugin{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x106a13}=this,_0x5bb71e=_0x106a13['config']['get']('template.definitions')||[];_0x106a13['ui']['componentFactory']['add']('insertTemplate',_0x486786=>{const _0x510389=createDropdown(_0x486786),_0x500e40=this['_createTemplateListView'](_0x486786,_0x5bb71e),_0x19b88b=new SearchTextView(_0x486786,{'filteredView':_0x500e40,'queryView':{'label':getTranslation$1(_0x486786,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x18d7c5=>getTranslation$1(_0x486786,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x18d7c5),'secondary':getTranslation$1(_0x486786,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':getTranslation$1(_0x486786,'No\x20templates\x20available.')}}}}),_0x35a5ad=_0x106a13['commands']['get']('insertTemplate');return _0x19b88b['on']('search',(_0x29e73e,_0x2639e8)=>{_0x2639e8['query']&&_0x2639e8['query']['length']&&_0x106a13['ui']['ariaLiveAnnouncer']['announce'](getTranslation$1(_0x486786,'%0\x20templates\x20found',_0x2639e8['resultsCount']));}),_0x510389['bind']('isEnabled')['to'](_0x35a5ad),_0x510389['panelView']['children']['add'](_0x19b88b),_0x510389['buttonView']['set']({'label':getTranslation$1(_0x486786,'Insert\x20template'),'icon':IconTemplate,'tooltip':!0x0}),_0x510389['on']('change:isOpen',(_0x41b6bf,_0x19225d,_0x48b4f8)=>{_0x48b4f8||_0x19b88b['reset']();}),_0x510389;}),_0x106a13['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x1b009e=>{const _0x3f0d34=_0x106a13['commands']['get']('insertTemplate'),_0x585491=new MenuBarMenuView(_0x1b009e);_0x585491['buttonView']['set']({'label':getTranslation$1(_0x1b009e,'Template'),'icon':IconTemplate});const _0x4600ed=new MenuBarMenuListView(_0x1b009e);if(!_0x5bb71e||!_0x5bb71e['length']){const _0x20b078=new MenuBarMenuListItemView(_0x1b009e,_0x585491),_0x28e753=new MenuBarMenuListItemButtonView(_0x1b009e);_0x28e753['set']({'label':getTranslation$1(_0x1b009e,'No\x20templates\x20available.')}),_0x28e753['delegate']('execute')['to'](_0x585491),_0x28e753['on']('execute',()=>{_0x106a13['editing']['view']['focus']();}),_0x20b078['children']['add'](_0x28e753),_0x4600ed['items']['add'](_0x20b078);}for(const _0xc30b6d of _0x5bb71e){const _0x5d85b1=new MenuBarMenuListItemView(_0x1b009e,_0x585491),_0x533c23=new MenuBarMenuListItemButtonView(_0x1b009e);_0x533c23['set']({'class':'ck-template-button','label':_0xc30b6d['title'],'icon':_0xc30b6d['icon']||IconTemplateGeneric}),_0x533c23['delegate']('execute')['to'](_0x585491),_0x533c23['on']('execute',()=>{_0x106a13['execute']('insertTemplate',_0xc30b6d['data']),_0x106a13['editing']['view']['focus']();}),_0x5d85b1['children']['add'](_0x533c23),_0x4600ed['items']['add'](_0x5d85b1);}return _0x585491['panelView']['children']['add'](_0x4600ed),_0x585491['bind']('isEnabled')['to'](_0x3f0d34,'isEnabled'),_0x585491;});}['afterInit'](){checkLicense$1(this);}['_createTemplateListView'](_0x1fa4fc,_0x5a73bb){const {editor:_0x564eb9}=this,_0x19bd6e=new TemplateListView(_0x1fa4fc);return _0x19bd6e['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x19bd6e['items']['addMany'](_0x5a73bb['map']((_0x21b54a,_0x521b73)=>{const _0x5aeb4d=new TemplateListItemView(_0x1fa4fc,_0x521b73),_0x4131b3=new TemplateListButtonView(_0x1fa4fc,_0x21b54a);return _0x5aeb4d['buttonView']=_0x4131b3,_0x5aeb4d['children']['add'](_0x4131b3),_0x5aeb4d['buttonView']['on']('execute',_0xf95fca=>{_0x564eb9['execute']('insertTemplate',_0xf95fca['source']['templateDefinition']['data']),_0x564eb9['editing']['view']['focus']();}),_0x5aeb4d;})),_0x19bd6e;}}async function checkLicense$1(_0x155260){const _0x2921c1=_0xd0df14([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]),_0x1107eb=window[_0xd0df14([0x44,0x61,0x74,0x65])][_0xd0df14([0x6e,0x6f,0x77])](),_0x53e76b=_0x155260[_0xd0df14([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e7855=new window[(_0xd0df14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa5f4fc=>{_0x53e76b[_0xd0df14([0x6f,0x6e,0x63,0x65])](_0xd0df14([0x72,0x65,0x61,0x64,0x79]),_0xa5f4fc);}),_0x35d0cb={[_0xd0df14([0x6b,0x74,0x79])]:_0xd0df14([0x45,0x43]),[_0xd0df14([0x75,0x73,0x65])]:_0xd0df14([0x73,0x69,0x67]),[_0xd0df14([0x63,0x72,0x76])]:_0xd0df14([0x50,0x2d,0x32,0x35,0x36]),[_0xd0df14([0x78])]:_0xd0df14([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]),[_0xd0df14([0x79])]:_0xd0df14([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]),[_0xd0df14([0x61,0x6c,0x67])]:_0xd0df14([0x45,0x53,0x32,0x35,0x36])},_0x4d4dc4=_0x53e76b[_0xd0df14([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd0df14([0x67,0x65,0x74])](_0xd0df14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x384de8=await(async function(){let _0x57c60e,_0x22e9d1=null,_0x395128=null;try{if(_0x4d4dc4==_0xd0df14([0x47,0x50,0x4c]))return _0xd0df14([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x57c60e=(function(){const _0x52d9ae=_0x4d4dc4[_0xd0df14([0x73,0x70,0x6c,0x69,0x74])](_0xd0df14([0x2e]));if(0x3!=_0x52d9ae[_0xd0df14([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x33e3dd=_0x52d9ae[0x1];return _0x3ab9b7(_0x33e3dd);function _0x3ab9b7(_0x68d23c){const _0xfdace6=_0x46187d(_0x68d23c);return _0xfdace6&&_0x31743e()?_0xfdace6:null;function _0x31743e(){const _0x399b65=_0xfdace6[_0xd0df14([0x6a,0x74,0x69])],_0x1cae54=window[_0xd0df14([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x399b65[_0xd0df14([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x399b65[_0xd0df14([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e7397={..._0xfdace6,[_0xd0df14([0x6a,0x74,0x69])]:_0x399b65[_0xd0df14([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x399b65[_0xd0df14([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e7397[_0xd0df14([0x76,0x63])],_0x4782e6(_0x2e7397)==_0x1cae54;}}}()),!_0x57c60e)return _0xd0df14([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x57c60e[_0xd0df14([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x395128=function(_0xe963c1,_0x241b84){return new window[(_0xd0df14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46227f=>{if(_0x2ec29b())return _0x46227f(_0xd0df14([0x56,0x61,0x6c,0x69,0x64]));_0x23c415(),_0x53e76b[_0xd0df14([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd0df14([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19b4c1=!0x1;const _0x1e4c6b=uid();function _0x4c3330(_0x52b480){return!!_0x52b480&&(typeof _0x52b480===_0xd0df14([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x52b480===_0xd0df14([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x52b480[_0xd0df14([0x74,0x68,0x65,0x6e])]===_0xd0df14([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x52b480[_0xd0df14([0x63,0x61,0x74,0x63,0x68])]===_0xd0df14([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25af18(_0x942018){_0x1b0d44(_0x942018)[_0xd0df14([0x74,0x68,0x65,0x6e])](_0x2038f7=>{if(!_0x2038f7||_0x2038f7[_0xd0df14([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd0df14([0x6f,0x6b]))return _0xd0df14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b7756(_0x4782e6(_0x1e4c6b+_0x241b84))!=_0x2038f7[_0xd0df14([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd0df14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd0df14([0x56,0x61,0x6c,0x69,0x64]);})[_0xd0df14([0x74,0x68,0x65,0x6e])](_0x5c9113=>(_0x383e2f(),_0x5c9113),()=>{const _0x1f9025=_0x118e55();return null==_0x1f9025?(_0x383e2f(),_0xd0df14([0x56,0x61,0x6c,0x69,0x64])):_0xd0df14(_0x1107eb-_0x1f9025>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd0df14([0x74,0x68,0x65,0x6e])](_0x46227f)[_0xd0df14([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46227f(_0xd0df14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe66cb4=0x36ee80;function _0x383e2f(){const _0x2548c4=_0xd0df14([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b7756(_0x4782e6(_0xe963c1)),_0x5ba1a5=_0x596b3e(_0x5b7756(window[_0xd0df14([0x4d,0x61,0x74,0x68])][_0xd0df14([0x63,0x65,0x69,0x6c])](_0x1107eb/_0xe66cb4)));window[_0xd0df14([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd0df14([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2548c4,_0x5ba1a5);}function _0x118e55(){const _0x42c514=_0xd0df14([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b7756(_0x4782e6(_0xe963c1)),_0x3be1fe=window[_0xd0df14([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd0df14([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42c514);return _0x3be1fe?window[_0xd0df14([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x596b3e(_0x3be1fe),0x10)*_0xe66cb4:null;}function _0x1b0d44(_0x4171f2){return new window[(_0xd0df14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6e6b36,_0x36ae57)=>{_0x4171f2[_0xd0df14([0x74,0x68,0x65,0x6e])](_0x6e6b36,_0x36ae57),window[_0xd0df14([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36ae57,0x1d4c0);});}}_0x53e76b[_0xd0df14([0x6f,0x6e])](_0xd0df14([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x80107d,_0x2c198a)=>{if(_0x2c198a[0x0]!=_0xe963c1)return _0x46227f(_0xd0df14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c198a[0x1]={..._0x2c198a[0x1],[_0xd0df14([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e4c6b};},{[_0xd0df14([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd0df14([0x68,0x69,0x67,0x68])}),_0x53e76b[_0xd0df14([0x6f,0x6e])](_0xd0df14([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4d1ed2=>{_0x4c3330(_0x4d1ed2[_0xd0df14([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19b4c1=!0x0,_0x25af18(_0x4d1ed2[_0xd0df14([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd0df14([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd0df14([0x6c,0x6f,0x77])}),_0x4e7855[_0xd0df14([0x74,0x68,0x65,0x6e])](()=>{_0x19b4c1||_0x46227f(_0xd0df14([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ec29b(){return _0x53e76b[_0xd0df14([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd0df14([0x76,0x69,0x65,0x77])][_0xd0df14([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd0df14([0x61,0x75,0x74,0x6f]);}function _0x23c415(){_0x53e76b[_0xd0df14([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd0df14([0x76,0x69,0x65,0x77])][_0xd0df14([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd0df14([0x61,0x75,0x74,0x6f]);}}(_0x57c60e[_0xd0df14([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x57c60e[_0xd0df14([0x6a,0x74,0x69])]));const _0x29fbea=await(async function(){let _0x15cd67=!0x0;try{const _0x538f75=_0x4d4dc4[_0xd0df14([0x73,0x70,0x6c,0x69,0x74])](_0xd0df14([0x2e])),[_0x4907e8,_0x54f171,_0x185082]=_0x538f75;return _0x360480(_0x4907e8),await _0x22fcd7(_0x4907e8,_0x54f171,_0x185082),_0x15cd67;}catch{return!0x1;}function _0x360480(_0x1ca04c){const _0x26a06d=_0x46187d(_0x1ca04c);_0x26a06d&&_0x26a06d[_0xd0df14([0x61,0x6c,0x67])]==_0xd0df14([0x45,0x53,0x32,0x35,0x36])||(_0x15cd67=!0x1);}async function _0x22fcd7(_0x21f2f6,_0x30ce5e,_0xc8d575){const _0x296df0=window[_0xd0df14([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd0df14([0x66,0x72,0x6f,0x6d])](_0x5f26f3(_0xc8d575),_0x2dcc57=>_0x2dcc57[_0xd0df14([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa4dbbf=new window[(_0xd0df14([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd0df14([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x21f2f6+_0xd0df14([0x2e])+_0x30ce5e),_0x17f269=window[_0xd0df14([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd0df14([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17f269)return;const _0x4ea3ca=await _0x17f269[_0xd0df14([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd0df14([0x6a,0x77,0x6b]),_0x35d0cb,{[_0xd0df14([0x6e,0x61,0x6d,0x65])]:_0xd0df14([0x45,0x43,0x44,0x53,0x41]),[_0xd0df14([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd0df14([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd0df14([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17f269[_0xd0df14([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd0df14([0x6e,0x61,0x6d,0x65])]:_0xd0df14([0x45,0x43,0x44,0x53,0x41]),[_0xd0df14([0x68,0x61,0x73,0x68])]:{[_0xd0df14([0x6e,0x61,0x6d,0x65])]:_0xd0df14([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ea3ca,_0x296df0,_0xa4dbbf)||(_0x15cd67=!0x1);}}());return _0x29fbea?(function(){const _0x434028=_0x57c60e[_0xd0df14([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x434028)return!0x1;if(_0x434028[_0xd0df14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd0df14([0x2a])))return!0x0;if(_0x434028[_0xd0df14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd0df14([0x54,0x50,0x4c])))return!0x0;if(_0x434028[_0xd0df14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd0df14([0x50,0x50])))return!0x0;if(_0x434028[_0xd0df14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd0df14([0x44,0x52,0x55,0x50]))&&window[_0xd0df14([0x44,0x72,0x75,0x70,0x61,0x6c])])return!0x0;if(_0x434028[_0xd0df14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd0df14([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0xd0df14([0x67,0x6c,0x6f,0x62])]&&window[_0xd0df14([0x67,0x6c,0x6f,0x62])][_0xd0df14([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x412058=[_0xd0df14([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd0df14([0x74,0x72,0x69,0x61,0x6c])][_0xd0df14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57c60e[_0xd0df14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1107eb/0x3e8:0x69cb0e80;return _0x57c60e[_0xd0df14([0x65,0x78,0x70])]<_0x412058;}())?_0xd0df14([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x167a5c=_0x57c60e[_0xd0df14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x167a5c||0x0==_0x167a5c[_0xd0df14([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ff92a}=new URL(window[_0xd0df14([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x167a5c[_0xd0df14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ff92a))return!0x0;const _0x1a6c92=_0x1ff92a[_0xd0df14([0x73,0x70,0x6c,0x69,0x74])](_0xd0df14([0x2e]));return _0x167a5c[_0xd0df14([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x917729=>_0x917729[_0xd0df14([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd0df14([0x2a])))[_0xd0df14([0x6d,0x61,0x70])](_0x46500a=>_0x46500a[_0xd0df14([0x73,0x70,0x6c,0x69,0x74])](_0xd0df14([0x2e])))[_0xd0df14([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x181702=>_0x181702[_0xd0df14([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a6c92[_0xd0df14([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd0df14([0x6d,0x61,0x70])](_0x126f8a=>Array(_0x1a6c92[_0xd0df14([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x126f8a[_0xd0df14([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd0df14([0x66,0x69,0x6c,0x6c])](_0x126f8a[0x0]===_0xd0df14([0x2a])?_0xd0df14([0x2a]):'')[_0xd0df14([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x126f8a))[_0xd0df14([0x73,0x6f,0x6d,0x65])](_0x456671=>_0x1a6c92[_0xd0df14([0x65,0x76,0x65,0x72,0x79])]((_0x194112,_0x5e1559)=>_0x456671[_0x5e1559]===_0x194112||_0x456671[_0x5e1559]===_0xd0df14([0x2a])));}())?(_0x57c60e[_0xd0df14([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd0df14([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x22e9d1=function(_0x184484){const _0x356f4e=new window[(_0xd0df14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x449327=>setTimeout(_0x449327,0x93ecc)),_0x181304=_0x4e7855[_0xd0df14([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd0df14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x465e1d=>{let _0x4e5dd3=0x0;_0x53e76b[_0xd0df14([0x6d,0x6f,0x64,0x65,0x6c])][_0xd0df14([0x6f,0x6e])](_0xd0df14([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x325e80,_0x4c94b4)=>{_0x4c94b4[0x0][_0xd0df14([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e5dd3++,0x5e8==_0x4e5dd3&&(_0x465e1d(),_0x325e80[_0xd0df14([0x6f,0x66,0x66])]());});})),_0x28b76a=[_0x356f4e,_0x181304];return window[_0xd0df14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd0df14([0x72,0x61,0x63,0x65])](_0x28b76a)[_0xd0df14([0x74,0x68,0x65,0x6e])](()=>_0x184484);}(_0xd0df14([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x22e9d1&&_0x395128)return new window[(_0xd0df14([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30d601,_0x498138)=>{_0x22e9d1[_0xd0df14([0x74,0x68,0x65,0x6e])](_0x30d601,_0x498138),_0x395128[_0xd0df14([0x74,0x68,0x65,0x6e])](_0xaf9e88=>{_0xaf9e88!=_0xd0df14([0x56,0x61,0x6c,0x69,0x64])&&_0x30d601(_0xaf9e88);},_0x498138);});return _0x22e9d1||_0x395128||_0xd0df14([0x56,0x61,0x6c,0x69,0x64]);}())):_0xd0df14([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd0df14([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd0df14([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd0df14([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x46187d(_0x5a37f2){return _0x5a37f2[_0xd0df14([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd0df14([0x65,0x79]))?JSON[_0xd0df14([0x70,0x61,0x72,0x73,0x65])](_0x5f26f3(_0x5a37f2)):null;}function _0x5f26f3(_0x3de22c){return window[_0xd0df14([0x61,0x74,0x6f,0x62])](_0x3de22c[_0xd0df14([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd0df14([0x2b]))[_0xd0df14([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd0df14([0x2f])));}function _0x4782e6(_0x3f4743){let _0x2e7079=0x1505;function _0xf6c84c(_0x1d5acb){for(let _0x1edf0b=0x0;_0x1edf0b<_0x1d5acb[_0xd0df14([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1edf0b++){const _0x33136c=_0x1d5acb[_0xd0df14([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1edf0b);_0x2e7079=(_0x2e7079<<0x5)+_0x2e7079+_0x33136c,_0x2e7079&=_0x2e7079;}}return function _0x24adfb(_0x1b7466){Array[_0xd0df14([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b7466)?_0x1b7466[_0xd0df14([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24adfb):_0x1b7466&&typeof _0x1b7466==_0xd0df14([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd0df14([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b7466)[_0xd0df14([0x73,0x6f,0x72,0x74])]()[_0xd0df14([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4cb559,_0x3031ea])=>{_0xf6c84c(_0x4cb559),_0x24adfb(_0x3031ea);}):_0xf6c84c(window[_0xd0df14([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b7466));}(_0x3f4743),_0x2e7079>>>0x0;}function _0x5b7756(_0x1e22d2){return _0x1e22d2[_0xd0df14([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd0df14([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd0df14([0x30]));}function _0x596b3e(_0x327e8f){return _0x327e8f[_0xd0df14([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd0df14([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd0df14([0x6a,0x6f,0x69,0x6e])]('');}function _0x415f61(){}function _0xd0df14(_0x4ea2bf){return _0x4ea2bf['map'](_0x56d6a7=>String['fromCharCode'](_0x56d6a7))['join']('');}!function(_0x2fd851){const _0x101e50=(function(){const _0x192e1f=window[_0xd0df14([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd0df14([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd0df14([0x6e,0x6f,0x77])]())[_0xd0df14([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd0df14([0x2e]),'');let _0x10ddb8=_0xd0df14([0x67]);for(let _0x174804=0x0;_0x174804<_0x192e1f[_0xd0df14([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x174804+=0x2){let _0x300b56=window[_0xd0df14([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x192e1f[_0xd0df14([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x174804,_0x174804+0x2));_0x300b56>=_0x2921c1[_0xd0df14([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x300b56-=_0x2921c1[_0xd0df14([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10ddb8+=_0x2921c1[_0x300b56];}return _0x10ddb8;}());_0x53e76b[_0x101e50]=_0xd0df14([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fd851,_0x2fd851!=_0xd0df14([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x4e7855,_0x53e76b[_0xd0df14([0x6d,0x6f,0x64,0x65,0x6c])][_0xd0df14([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x415f61,_0x53e76b[_0xd0df14([0x6d,0x6f,0x64,0x65,0x6c])][_0xd0df14([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x415f61,_0x53e76b[_0xd0df14([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd0df14([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x384de8);}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;}}function getTranslation(_0x12cf1f,_0x5379b9,_0x194d8c){const t=_0x12cf1f['t'],_0x58045b=_0x12cf1f['t'];switch(_0x5379b9){case'local':return{'text':_0x58045b('Insert'===_0x194d8c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x58045b('From\x20computer')};case'url':return{'text':'Insert'===_0x194d8c?_0x58045b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x58045b('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x194d8c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x194d8c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x194d8c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x194d8c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x194d8c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5379b9;}}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 _0x50d692=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x150e76;for(const _0x733416 in _0x50d692){const _0x2d1560=_0x733416,_0x45d079=_0x50d692[_0x2d1560];if('uploadcareLicenseKeyValid'==_0x45d079||'uploadcareLicenseKeyInvalid'==_0x45d079||'uploadcareLicenseKeyExpired'==_0x45d079||'uploadcareLicenseKeyDomainLimit'==_0x45d079||'uploadcareLicenseKeyNotAllowed'==_0x45d079||'uploadcareLicenseKeyEvaluationLimit'==_0x45d079||'uploadcareLicenseKeyUsageLimit'==_0x45d079){delete _0x50d692[_0x2d1560],_0x150e76=_0x45d079,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x150e76&&_0x50d692['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x150e76&&_0x50d692['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x150e76&&_0x50d692['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x150e76&&_0x50d692['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x150e76&&_0x50d692['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x150e76&&_0x50d692['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x554708}=this,_0x356e46=_0x554708['commands']['get']('uploadcare');if(!_0x356e46)return;const _0x2212b7=this['_normalizeConfigSourceList'](_0x554708['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x328e01,_0xe7473b)=>{const _0x116bd4=this['_getIntegrationKey'](_0xe7473b['type']);return _0x328e01[_0x116bd4]||(_0x328e01[_0x116bd4]=[]),_0x328e01[_0x116bd4]['push'](_0xe7473b),_0x328e01;},{});_0x554708['plugins']['has']('ImageInsertUI')&&_0x554708['commands']['get']('uploadcare')&&Object['entries'](_0x2212b7)['forEach'](([_0x3f455a,_0x309d9e])=>{_0x554708['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3f455a,'observable':()=>_0x356e46,'buttonViewCreator':()=>this['_createToolbarButton'](_0x309d9e),'formViewCreator':()=>this['_createDropdownButtons'](_0x309d9e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x309d9e),'override':'assetManager'!==_0x3f455a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x37dc9a){const {locale:_0x452391}=this['editor'];return _0x37dc9a['map'](_0x4d4600=>{const _0x56cc96=getTranslation(_0x452391,_0x4d4600,'Insert');switch(_0x4d4600){case'local':return{'icon':IconUploadcareImageUpload,'type':'local',..._0x56cc96};case'url':return{'icon':IconUploadcareLink,'type':'url',..._0x56cc96};case'dropbox':return{'icon':IconDropbox,'type':'dropbox',..._0x56cc96};case'facebook':return{'icon':IconFacebook,'type':'facebook',..._0x56cc96};case'gdrive':return{'icon':IconGoogleDrive,'type':'gdrive',..._0x56cc96};case'gphotos':return{'icon':IconGooglePhotos,'type':'gphotos',..._0x56cc96};case'onedrive':return{'icon':IconOneDrive,'type':'onedrive',..._0x56cc96};}});}['_getIntegrationKey'](_0xafc845){switch(_0xafc845){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x353069,_0x587639){const _0x1441fe=this['editor'],_0x56b479=new _0x353069(_0x1441fe['locale']),_0x339976=_0x1441fe['commands']['get']('uploadcare');return _0x56b479['bind']('isEnabled')['to'](_0x339976),_0x56b479['on']('execute',()=>{_0x339976['execute'](_0x587639);}),_0x56b479;}['_createToolbarButton'](_0x249ca0){const {locale:_0x2a4299}=this['editor'],_0x31c38d=this['editor']['plugins']['get']('ImageInsertUI'),_0x4d7914=_0x249ca0[0x0],_0x1b17ec=this['_createButton'](ButtonView,_0x4d7914['type']);return _0x1b17ec['icon']=_0x4d7914['icon'],_0x1b17ec['bind']('label')['to'](_0x31c38d,'isImageSelected',_0x77dbeb=>getTranslation(_0x2a4299,_0x4d7914['type'],_0x77dbeb?'Replace':'Insert')['text']),_0x1b17ec['tooltip']=!0x0,_0x1b17ec;}['_createDropdownButtons'](_0x4693ab){const {locale:_0x95cc2}=this['editor'],_0x8639ce=this['editor']['plugins']['get']('ImageInsertUI');return _0x4693ab['map'](_0x4492eb=>{const _0x2c4cff=this['_createButton'](ButtonView,_0x4492eb['type']);return _0x2c4cff['withText']=!0x0,_0x2c4cff['icon']=_0x4492eb['icon'],_0x2c4cff['bind']('label')['to'](_0x8639ce,'isImageSelected',_0x13823d=>getTranslation(_0x95cc2,_0x4492eb['type'],_0x13823d?'Replace':'Insert')['text']),_0x2c4cff;});}['_createMenuBarButtons'](_0x423923){return _0x423923['map'](_0xedd47e=>{const _0x4f95a2=this['_createButton'](MenuBarMenuListItemButtonView,_0xedd47e['type']);return _0x4f95a2['icon']=_0xedd47e['icon'],_0x4f95a2['label']=_0xedd47e['shortText'],_0x4f95a2;});}}class DialogFocusManagerView extends View{['focusTracker'];['focusCycler'];constructor(_0x273de4){super(_0x273de4),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(_0x341dcc,_0x426683){super(_0x341dcc),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-'+_0x426683}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function createEditabilityChecker(_0x47747a){const _0x2c90bd=createUrlChecker(_0x47747a);return _0x5c380d=>!(!_0x5c380d||!_0x5c380d['is']('element','imageBlock')&&!_0x5c380d['is']('element','imageInline'))&&(!!_0x5c380d['hasAttribute']('uploadcareImageId')||!!_0x5c380d['hasAttribute']('src')&&_0x2c90bd(_0x5c380d['getAttribute']('src')));}function getImageUrls(_0x373690,_0x1bb235){const _0x3a5843=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x40f979=>_0x40f979<=_0x1bb235)['map'](_0x1c7fff=>_0x373690['replace'](/\/$/,'')+'/-/resize/'+_0x1c7fff+'x/\x20'+_0x1c7fff+'w');return{'imageFallbackUrl':_0x373690,'imageSources':[{'srcset':_0x3a5843['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1bb235+'px)\x20100vw,\x20'+_0x1bb235+'px','type':'image/webp'}]};}function getImageDimension(_0x49ada9,_0x2086d0,_0x312623){const _0x1f805d=_0x49ada9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1f805d?parseInt(_0x1f805d[0x1],0xa):_0x2086d0,'height':_0x1f805d?parseInt(_0x1f805d[0x2],0xa):_0x312623};}function showImageProcessingIndicator(_0x412b59,_0x2b0457){const _0x4bcb84=new(DomEmitterMixin())(),_0x514e65=_0x412b59['plugins']['get']('ImageUtils'),_0x273f80=_0x412b59['editing']['mapper']['toViewElement'](_0x2b0457),_0x2d3448=_0x514e65['findViewImgElement'](_0x273f80),_0x5bd962=_0x412b59['editing']['view']['domConverter']['viewToDom'](_0x2d3448),_0x12c076=_0x2b0457['getAttribute']('width'),_0x528475=_0x2b0457['getAttribute']('height'),_0x917b65='image-processing';_0x412b59['editing']['view']['change'](_0x504a7d=>{_0x504a7d['addClass'](_0x917b65,_0x273f80),_0x504a7d['setStyle']('aspect-ratio',_0x12c076+'/'+_0x528475,_0x2d3448);}),_0x4bcb84['listenTo'](_0x5bd962,'load',()=>{_0x4bcb84['stopListening'](_0x5bd962,'load'),_0x412b59['editing']['view']['change'](_0x4fd9eb=>{_0x4fd9eb['removeClass'](_0x917b65,_0x273f80),_0x4fd9eb['removeStyle']('aspect-ratio',_0x2d3448);});});}function createUrlChecker(_0x27382d){if(Array['isArray'](_0x27382d)){const _0x55b3aa=_0x27382d['map'](createUrlChecker);return _0x29f1af=>_0x55b3aa['some'](_0x117ff8=>_0x117ff8(_0x29f1af));}if('origin'==_0x27382d){const _0x69fa36=_0x176c57['window']['location']['origin'];return _0x9d0bb5=>new URL(_0x9d0bb5,_0x176c57['document']['baseURI'])['origin']==_0x69fa36;}return'function'==typeof _0x27382d?_0x27382d:_0x27382d instanceof RegExp?_0x380921=>!(!_0x380921['match'](_0x27382d)&&!_0x380921['replace'](/^https?:\/\//,'')['match'](_0x27382d)):()=>!0x1;}function isAncestor(_0x4a1deb,_0x545fdd){return getAncestors(_0x4a1deb['target'])['includes'](_0x545fdd);}class UploadcareController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2c028f,_0xe457a1,_0x5b7ed5){super(),this['_editor']=_0x2c028f,this['_editing']=_0xe457a1,this['_dialog']=_0x2c028f['plugins']['get'](Dialog),this['_api']=_0xe457a1['ctxElement']['getAPI'](),this['_type']=_0x5b7ed5,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:_0x477305,model:_0x4baf15}=this['_editor'],_0x235614=_0x4baf15['document']['selection']['getSelectedElement'](),_0x566481=_0x235614&&(_0x235614['is']('element','imageBlock')||_0x235614['is']('element','imageInline'));this['_formView']=new UploadcareFormView(_0x477305,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':IconUploadcareImageUpload,'title':getTranslation(_0x477305,this['_type'],_0x566481?'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':_0x2fdf0a=>!isAncestor(_0x2fdf0a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x460b6d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4ae49c=>{const _0x1597ee=_0x460b6d['length'];for(const _0x36be50 of _0x460b6d){const _0x5aa014=_0x36be50===_0x460b6d[_0x1597ee-0x1],{cdnUrl:_0x1a43ae,fileInfo:_0x173114}=_0x36be50;if(!_0x1a43ae||!_0x173114)continue;const {width:_0xd65ac9,height:_0xf9c5c8}=_0x173114['imageInfo'],_0x4b940f=getImageDimension(_0x1a43ae,_0xd65ac9,_0xf9c5c8),_0x1d4ecc=getImageUrls(_0x1a43ae,_0x4b940f['width']),_0xbb0e13={'id':_0x173114['uuid'],'type':'image','attributes':{'imageDimension':_0x4b940f,..._0x1d4ecc}};this['_insertAsset'](_0xbb0e13,_0x5aa014,_0x4ae49c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x481bf7=>{'idle'===_0x481bf7['detail']['status']&&!_0x481bf7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('local'):this['_api']['initFlow']());});}['_insertAsset'](_0x2e66b9,_0x501014,_0x2b08bb){const _0x4353b7=this['_editor']['model']['document']['selection'],_0x29b150=_0x4353b7['getSelectedElement'](),_0x2b65f6=!(!_0x29b150||!_0x29b150['is']('element','imageInline'));_0x2b08bb['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2e66b9,_0x2b65f6),_0x501014||_0x2b08bb['setSelection'](_0x4353b7['getLastPosition']());}['_insertImage'](_0x16be40,_0x118f8b){const _0x3a4ec7=this['_editor'],{imageDimension:_0x184d2f,imageFallbackUrl:_0x391d22,imageSources:_0x263b74}=_0x16be40['attributes'];_0x3a4ec7['execute']('insertImage',{'imageType':_0x118f8b?'imageInline':null,'source':{'uploadcareImageId':_0x16be40['id'],'src':_0x391d22,'sources':_0x263b74,..._0x184d2f}});}}class UploadcareCommand extends Command{['_editing'];['_controller']=null;static get['requires'](){return[Dialog,UploadcareEditing];}constructor(_0x161128){super(_0x161128),this['_editing']=_0x161128['plugins']['get'](UploadcareEditing);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1f3e27){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new UploadcareController(this['editor'],this['_editing'],_0x1f3e27);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}function isObject$1(_0x13dbbb){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x13dbbb);}const SEPARATOR$1=/\W|_/g;function camelizeString$1(_0x4a3cb1){return _0x4a3cb1['split'](SEPARATOR$1)['map']((_0x1debc2,_0x1859c7)=>_0x1debc2['charAt'](0x0)[_0x1859c7>0x0?'toUpperCase':'toLowerCase']()+_0x1debc2['slice'](0x1))['join']('');}function camelizeArrayItems$1(_0x2fe816,{ignoreKeys:_0x1f0286}={'ignoreKeys':[]}){return Array['isArray'](_0x2fe816)?_0x2fe816['map'](_0x159424=>camelizeKeys$1(_0x159424,{'ignoreKeys':_0x1f0286})):_0x2fe816;}function camelizeKeys$1(_0x18574a,{ignoreKeys:_0x36df8b}={'ignoreKeys':[]}){if(Array['isArray'](_0x18574a))return camelizeArrayItems$1(_0x18574a,{'ignoreKeys':_0x36df8b});if(!isObject$1(_0x18574a))return _0x18574a;const _0x4ed035={};for(const _0x1a1add of Object['keys'](_0x18574a)){let _0xadd777=_0x18574a[_0x1a1add];_0x36df8b['includes'](_0x1a1add)?_0x4ed035[_0x1a1add]=_0xadd777:(isObject$1(_0xadd777)?_0xadd777=camelizeKeys$1(_0xadd777,{'ignoreKeys':_0x36df8b}):Array['isArray'](_0xadd777)&&(_0xadd777=camelizeArrayItems$1(_0xadd777,{'ignoreKeys':_0x36df8b})),_0x4ed035[camelizeString$1(_0x1a1add)]=_0xadd777);}return _0x4ed035;}const delay$1=_0x29987b=>new Promise(_0x16beff=>setTimeout(_0x16beff,_0x29987b));function getUserAgent$1$1({libraryName:_0x2d6bd0,libraryVersion:_0x1ecdf6,userAgent:_0xcffe7a,publicKey:_0x1a88cb='',integration:_0x3845e7=''}){const _0x270a25='JavaScript';if('string'==typeof _0xcffe7a)return _0xcffe7a;if('function'==typeof _0xcffe7a)return _0xcffe7a({'publicKey':_0x1a88cb,'libraryName':_0x2d6bd0,'libraryVersion':_0x1ecdf6,'languageName':_0x270a25,'integration':_0x3845e7});return[_0x2d6bd0,_0x1ecdf6,_0x1a88cb]['filter'](Boolean)['join']('/')+'\x20('+[_0x270a25,_0x3845e7]['filter'](Boolean)['join'](';\x20')+')';}const defaultOptions$1={'factor':0x2,'time':0x64};function retrier$1(_0x26565c,_0x191cec=defaultOptions$1){let _0x50a4ff=0x0;return function _0x95a43a(_0x38c92f){const _0x4f9cb0=Math['round'](_0x191cec['time']*_0x191cec['factor']**_0x50a4ff);return _0x38c92f({'attempt':_0x50a4ff,'retry':_0xa32394=>delay$1(_0xa32394??_0x4f9cb0)['then'](()=>(_0x50a4ff+=0x1,_0x95a43a(_0x38c92f)))});}(_0x26565c);}let UploadcareError$1=class extends Error{},NetworkError$1=class e extends UploadcareError$1{['originalProgressEvent'];constructor(_0x223d59){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,e['prototype']),this['originalProgressEvent']=_0x223d59;}};const onCancel$1=(_0x1618df,_0x3984f8)=>{_0x1618df&&(_0x1618df['aborted']?Promise['resolve']()['then'](_0x3984f8):_0x1618df['addEventListener']('abort',()=>_0x3984f8(),{'once':!0x0}));};let CancelError$1=class e extends UploadcareError$1{['isCancel']=!0x0;constructor(_0x5f4180='Request\x20canceled'){super(_0x5f4180),this['name']='CancelError',Object['setPrototypeOf'](this,e['prototype']);}};const DEFAULT_INTERVAL$1=0x1f4,poll$1=({check:_0x115612,interval:_0x11492f=DEFAULT_INTERVAL$1,timeout:_0xa586d1,signal:_0x2a5d45})=>new Promise((_0x3f92d5,_0x37f4ae)=>{let _0x4555a2,_0x5dd664;onCancel$1(_0x2a5d45,()=>{_0x4555a2&&clearTimeout(_0x4555a2),_0x37f4ae(new CancelError$1('Poll\x20cancelled'));}),_0xa586d1&&(_0x5dd664=setTimeout(()=>{_0x4555a2&&clearTimeout(_0x4555a2),_0x37f4ae(new CancelError$1('Timed\x20out'));},_0xa586d1));const _0x2092b7=()=>{try{Promise['resolve'](_0x115612(_0x2a5d45))['then'](_0x529f4d=>{_0x529f4d?(_0x5dd664&&clearTimeout(_0x5dd664),_0x3f92d5(_0x529f4d)):_0x4555a2=setTimeout(_0x2092b7,_0x11492f);})['catch'](_0x16c8c4=>{_0x5dd664&&clearTimeout(_0x5dd664),_0x37f4ae(_0x16c8c4);});}catch(_0x9f5550){_0x5dd664&&clearTimeout(_0x5dd664),_0x37f4ae(_0x9f5550);}};_0x4555a2=setTimeout(_0x2092b7,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:_0x1ad2b4,url:_0x3ad237,data:_0x5d8369,headers:_0x33b51f={},signal:_0x4328e7,onProgress:_0x54d38a})=>new Promise((_0x20b8cf,_0x2195ba)=>{const _0x58d3d1=new XMLHttpRequest(),_0x2027d9=_0x1ad2b4?.['toUpperCase']()||'GET';let _0x5f40b1=!0x1;_0x58d3d1['open'](_0x2027d9,_0x3ad237,!0x0),_0x33b51f&&Object['entries'](_0x33b51f)['forEach'](_0x218a53=>{const [_0x2737df,_0x1862ab]=_0x218a53;void 0x0!==_0x1862ab&&!Array['isArray'](_0x1862ab)&&_0x58d3d1['setRequestHeader'](_0x2737df,_0x1862ab);}),_0x58d3d1['responseType']='text',onCancel$1(_0x4328e7,()=>{_0x5f40b1=!0x0,_0x58d3d1['abort'](),_0x2195ba(new CancelError$1());}),_0x58d3d1['onload']=()=>{if(0xc8!=_0x58d3d1['status'])_0x2195ba(new Error('Error\x20'+_0x58d3d1['status']+':\x20'+_0x58d3d1['statusText']));else{const _0x7fb49e={'method':_0x2027d9,'url':_0x3ad237,'data':_0x5d8369,'headers':_0x33b51f||void 0x0,'signal':_0x4328e7,'onProgress':_0x54d38a},_0x15fc65=_0x58d3d1['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x4a6215={};_0x15fc65['forEach'](function(_0x3b0c47){const _0x1dc67c=_0x3b0c47['split'](':\x20'),_0x4aba65=_0x1dc67c['shift'](),_0x151bd6=_0x1dc67c['join'](':\x20');_0x4aba65&&void 0x0!==_0x4aba65&&(_0x4a6215[_0x4aba65]=_0x151bd6);});const _0x4d3386=_0x58d3d1['response'],_0x4d900c=_0x58d3d1['status'];_0x20b8cf({'request':_0x7fb49e,'data':_0x4d3386,'headers':_0x4a6215,'status':_0x4d900c});}},_0x58d3d1['onerror']=_0x3b6bee=>{_0x5f40b1||_0x2195ba(new NetworkError$1(_0x3b6bee));},_0x54d38a&&'function'==typeof _0x54d38a&&(_0x58d3d1['upload']['onprogress']=_0xffb0f2=>{_0xffb0f2['lengthComputable']?_0x54d38a({'isComputable':!0x0,'value':_0xffb0f2['loaded']/_0xffb0f2['total']}):_0x54d38a({'isComputable':!0x1});}),_0x5d8369?_0x58d3d1['send'](_0x5d8369):_0x58d3d1['send']();});function identity$1(_0x26a8ef,..._0x408605){return _0x26a8ef;}const getFileOptions$1=({name:_0x556cf4})=>_0x556cf4?[_0x556cf4]:[],transformFile$1=identity$1;var getFormData$1=()=>new FormData();const isBuffer$1=_0x56f65d=>!0x1,isBlob$1=_0xda18c8=>'undefined'!=typeof Blob&&_0xda18c8 instanceof Blob,isFile$1=_0x41f3f6=>'undefined'!=typeof File&&_0x41f3f6 instanceof File,isReactNativeAsset$1=_0x36ccab=>!!_0x36ccab&&'object'==typeof _0x36ccab&&!Array['isArray'](_0x36ccab)&&'uri'in _0x36ccab&&'string'==typeof _0x36ccab['uri'],isFileData$1=_0x3c948d=>isBlob$1(_0x3c948d)||isFile$1(_0x3c948d)||isBuffer$1()||isReactNativeAsset$1(_0x3c948d),isSimpleValue$1=_0x160899=>'string'==typeof _0x160899||'number'==typeof _0x160899||void 0x0===_0x160899,isObjectValue$1=_0x4fe54b=>!!_0x4fe54b&&'object'==typeof _0x4fe54b&&!Array['isArray'](_0x4fe54b),isFileValue$1=_0x261ecd=>!!_0x261ecd&&'object'==typeof _0x261ecd&&'data'in _0x261ecd&&isFileData$1(_0x261ecd['data']);function collectParams$1(_0x36cec1,_0x5abbee,_0x5d1e7a){if(Array['isArray'](_0x5d1e7a)){for(const _0x588ca3 of _0x5d1e7a)collectParams$1(_0x36cec1,_0x5abbee+'[]',_0x588ca3);}else{if(isFileValue$1(_0x5d1e7a)){const {name:_0x91bf59,contentType:_0x27a34f}=_0x5d1e7a,_0x47b535=transformFile$1(_0x5d1e7a['data'],_0x91bf59,_0x27a34f??defaultContentType$1),_0x599c2b=getFileOptions$1({'name':_0x91bf59});_0x36cec1['push']([_0x5abbee,_0x47b535,..._0x599c2b]);}else{if(isObjectValue$1(_0x5d1e7a)){for(const [_0xe991b8,_0x1cbfb8]of Object['entries'](_0x5d1e7a))void 0x0!==_0x1cbfb8&&_0x36cec1['push']([_0x5abbee+'['+_0xe991b8+']',String(_0x1cbfb8)]);}else isSimpleValue$1(_0x5d1e7a)&&_0x5d1e7a&&_0x36cec1['push']([_0x5abbee,_0x5d1e7a['toString']()]);}}}function getFormDataParams$1(_0x28a1b7){const _0x5503df=[];for(const [_0x18d2d3,_0x318f93]of Object['entries'](_0x28a1b7))collectParams$1(_0x5503df,_0x18d2d3,_0x318f93);return _0x5503df;}function buildFormData$1(_0x3b6345){const _0x1aba4c=getFormData$1(),_0x57aba0=getFormDataParams$1(_0x3b6345);for(const _0x51269a of _0x57aba0){const [_0x3c26b9,_0x21ec21,..._0x69205c]=_0x51269a;_0x1aba4c['append'](_0x3c26b9,_0x21ec21,..._0x69205c);}return _0x1aba4c;}let UploadError$1=class e extends UploadcareError$1{['code'];['request'];['response'];['headers'];constructor(_0x2fac09,_0xc47d07,_0x2bf1af,_0x5473a1,_0x13d884){super(),this['name']='UploadError',this['message']=_0x2fac09,this['code']=_0xc47d07,this['request']=_0x2bf1af,this['response']=_0x5473a1,this['headers']=_0x13d884,Object['setPrototypeOf'](this,e['prototype']);}};const buildSearchParams$1=_0x414a01=>{const _0x37e36f=new URLSearchParams();for(const [_0x5b40c7,_0xb9cc16]of Object['entries'](_0x414a01))_0xb9cc16&&'object'==typeof _0xb9cc16&&!Array['isArray'](_0xb9cc16)?Object['entries'](_0xb9cc16)['filter'](_0x2539fa=>_0x2539fa[0x1]??!0x1)['forEach'](_0x39888a=>_0x37e36f['set'](_0x5b40c7+'['+_0x39888a[0x0]+']',String(_0x39888a[0x1]))):Array['isArray'](_0xb9cc16)?_0xb9cc16['forEach'](_0x3b9c42=>{_0x37e36f['append'](_0x5b40c7+'[]',_0x3b9c42);}):'string'==typeof _0xb9cc16&&_0xb9cc16?_0x37e36f['set'](_0x5b40c7,_0xb9cc16):'number'==typeof _0xb9cc16&&_0x37e36f['set'](_0x5b40c7,_0xb9cc16['toString']());return _0x37e36f['toString']();},getUrl$1=(_0x2f622c,_0x18dd8d,_0x73c6cc)=>{const _0x39c444=new URL(_0x2f622c);return _0x39c444['pathname']=(_0x39c444['pathname']+_0x18dd8d)['replace']('//','/'),_0x73c6cc&&(_0x39c444['search']=buildSearchParams$1(_0x73c6cc)),_0x39c444['toString']();};var version$2='6.14.3';const LIBRARY_NAME$1='UploadcareUploadClient',LIBRARY_VERSION$1=version$2;function getUserAgent$2(_0x229bf5){return getUserAgent$1$1({'libraryName':LIBRARY_NAME$1,'libraryVersion':LIBRARY_VERSION$1,..._0x229bf5});}const REQUEST_WAS_THROTTLED_CODE$1='RequestThrottledError',DEFAULT_RETRY_AFTER_TIMEOUT$1=0x3a98,DEFAULT_NETWORK_ERROR_TIMEOUT$1=0x3e8;function getTimeoutFromThrottledRequest$1(_0x57930c){const {headers:_0x580bed}=_0x57930c||{};if(!_0x580bed||'string'!=typeof _0x580bed['retry-after'])return DEFAULT_RETRY_AFTER_TIMEOUT$1;const _0x3fc231=parseInt(_0x580bed['retry-after'],0xa);return Number['isFinite'](_0x3fc231)?0x3e8*_0x3fc231:DEFAULT_RETRY_AFTER_TIMEOUT$1;}function retryIfFailed$1(_0x2e71c0,_0xc83378){const {retryThrottledRequestMaxTimes:_0x3fb01f,retryNetworkErrorMaxTimes:_0x32c9cd}=_0xc83378;return retrier$1(({attempt:_0x153bbd,retry:_0x3c4154})=>_0x2e71c0()['catch'](_0x3fa20d=>{if('response'in _0x3fa20d&&_0x3fa20d?.['code']===REQUEST_WAS_THROTTLED_CODE$1&&_0x153bbd<_0x3fb01f)return _0x3c4154(getTimeoutFromThrottledRequest$1(_0x3fa20d));if(_0x3fa20d instanceof NetworkError$1&&_0x153bbd<_0x32c9cd)return _0x3c4154((_0x153bbd+0x1)*DEFAULT_NETWORK_ERROR_TIMEOUT$1);throw _0x3fa20d;}));}const getContentType$1=_0x4ba5f5=>{let _0x36807a='';return(isBlob$1(_0x4ba5f5)||isFile$1(_0x4ba5f5)||isReactNativeAsset$1(_0x4ba5f5))&&(_0x36807a=_0x4ba5f5['type']),_0x36807a||defaultContentType$1;},getFileName$1=_0x5c6d41=>{let _0x3775c1='';return isFile$1(_0x5c6d41)&&_0x5c6d41['name']?_0x3775c1=_0x5c6d41['name']:isBlob$1(_0x5c6d41)||isBuffer$1()?_0x3775c1='':isReactNativeAsset$1(_0x5c6d41)&&_0x5c6d41['name']&&(_0x3775c1=_0x5c6d41['name']),_0x3775c1||defaultFilename$1;};function getStoreValue$1(_0x4e0add){return void 0x0===_0x4e0add||'auto'===_0x4e0add?'auto':_0x4e0add?'1':'0';}function base$1(_0x11e2d4,{publicKey:_0x3f3389,fileName:_0x5e84b4,contentType:_0x42b001,baseURL:_0x526767=defaultSettings$1['baseURL'],secureSignature:_0x5ec4ad,secureExpire:_0x1392b2,store:_0x25739b,signal:_0x182c1c,onProgress:_0x3391b9,source:_0x62f6e8='local',integration:_0x13f529,userAgent:_0x2f3230,retryThrottledRequestMaxTimes:_0x309e5a=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x2484b9=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0xff9a78}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x526767,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x3f3389,'integration':_0x13f529,'userAgent':_0x2f3230})},'data':buildFormData$1({'file':{'data':_0x11e2d4,'name':_0x5e84b4||getFileName$1(_0x11e2d4),'contentType':_0x42b001||getContentType$1(_0x11e2d4)},'UPLOADCARE_PUB_KEY':_0x3f3389,'UPLOADCARE_STORE':getStoreValue$1(_0x25739b),'signature':_0x5ec4ad,'expire':_0x1392b2,'source':_0x62f6e8,'metadata':_0xff9a78}),'signal':_0x182c1c,'onProgress':_0x3391b9})['then'](({data:_0x18387a,headers:_0x488726,request:_0x48a9a9})=>{const _0x5dae21=camelizeKeys$1(JSON['parse'](_0x18387a));if('error'in _0x5dae21)throw new UploadError$1(_0x5dae21['error']['content'],_0x5dae21['error']['errorCode'],_0x48a9a9,_0x5dae21,_0x488726);return _0x5dae21;}),{'retryNetworkErrorMaxTimes':_0x2484b9,'retryThrottledRequestMaxTimes':_0x309e5a});}var TypeEnum$1,Status$1;function fromUrl$1(_0x136a5b,{publicKey:_0x57f237,baseURL:_0x358a76=defaultSettings$1['baseURL'],store:_0x5bbe51,fileName:_0xec4e1a,checkForUrlDuplicates:_0x2084dd,saveUrlForRecurrentUploads:_0x45f6f3,secureSignature:_0x434339,secureExpire:_0x411298,source:_0x4bc288='url',signal:_0x57e4a6,integration:_0x40a628,userAgent:_0x3456e7,retryThrottledRequestMaxTimes:_0x45066b=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x36cd83=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x331dea}){return retryIfFailed$1(()=>request$1({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x57f237,'integration':_0x40a628,'userAgent':_0x3456e7})},'url':getUrl$1(_0x358a76,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x57f237,'source_url':_0x136a5b,'store':getStoreValue$1(_0x5bbe51),'filename':_0xec4e1a,'check_URL_duplicates':_0x2084dd?0x1:void 0x0,'save_URL_duplicates':_0x45f6f3?0x1:void 0x0,'signature':_0x434339,'expire':_0x411298,'source':_0x4bc288,'metadata':_0x331dea}),'signal':_0x57e4a6})['then'](({data:_0x597af3,headers:_0x4bd044,request:_0x5b9eae})=>{const _0x2df118=camelizeKeys$1(JSON['parse'](_0x597af3));if('error'in _0x2df118)throw new UploadError$1(_0x2df118['error']['content'],_0x2df118['error']['errorCode'],_0x5b9eae,_0x2df118,_0x4bd044);return _0x2df118;}),{'retryNetworkErrorMaxTimes':_0x36cd83,'retryThrottledRequestMaxTimes':_0x45066b});}!function(_0x271962){_0x271962['Token']='token',_0x271962['FileInfo']='file_info';}(TypeEnum$1||(TypeEnum$1={})),function(_0x3723ac){_0x3723ac['Unknown']='unknown',_0x3723ac['Waiting']='waiting',_0x3723ac['Progress']='progress',_0x3723ac['Error']='error',_0x3723ac['Success']='success';}(Status$1||(Status$1={}));const isErrorResponse$1=_0x524b75=>'status'in _0x524b75&&_0x524b75['status']===Status$1['Error'];function fromUrlStatus$1(_0x323097,{publicKey:_0xc1af1b,baseURL:_0x1cde7a=defaultSettings$1['baseURL'],signal:_0x4ee4df,integration:_0x42e198,userAgent:_0x5bbe10,retryThrottledRequestMaxTimes:_0x5b23e9=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0xcaf999=defaultSettings$1['retryNetworkErrorMaxTimes']}={}){return retryIfFailed$1(()=>request$1({'method':'GET','headers':_0xc1af1b?{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0xc1af1b,'integration':_0x42e198,'userAgent':_0x5bbe10})}:void 0x0,'url':getUrl$1(_0x1cde7a,'/from_url/status/',{'jsonerrors':0x1,'token':_0x323097}),'signal':_0x4ee4df})['then'](({data:_0x483bc4,headers:_0x422a08,request:_0xa33e81})=>{const _0x998b4=camelizeKeys$1(JSON['parse'](_0x483bc4));if('error'in _0x998b4&&!isErrorResponse$1(_0x998b4))throw new UploadError$1(_0x998b4['error']['content'],_0x998b4['error']['errorCode'],_0xa33e81,_0x998b4,_0x422a08);return _0x998b4;}),{'retryNetworkErrorMaxTimes':_0xcaf999,'retryThrottledRequestMaxTimes':_0x5b23e9});}function info$1(_0xa705cf,{publicKey:_0x4d967b,baseURL:_0x239fa2=defaultSettings$1['baseURL'],signal:_0x586ad4,source:_0x29ff5c,integration:_0x43a61c,userAgent:_0x1b0804,retryThrottledRequestMaxTimes:_0x150ec5=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0xff4a8a=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'GET','headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x4d967b,'integration':_0x43a61c,'userAgent':_0x1b0804})},'url':getUrl$1(_0x239fa2,'/info/',{'jsonerrors':0x1,'pub_key':_0x4d967b,'file_id':_0xa705cf,'source':_0x29ff5c}),'signal':_0x586ad4})['then'](({data:_0x1d7f83,headers:_0x429acb,request:_0x119e41})=>{const _0x4f1e1e=camelizeKeys$1(JSON['parse'](_0x1d7f83));if('error'in _0x4f1e1e)throw new UploadError$1(_0x4f1e1e['error']['content'],_0x4f1e1e['error']['errorCode'],_0x119e41,_0x4f1e1e,_0x429acb);return _0x4f1e1e;}),{'retryThrottledRequestMaxTimes':_0x150ec5,'retryNetworkErrorMaxTimes':_0xff4a8a});}function multipartStart$1(_0x4a81d5,{publicKey:_0x17499c,contentType:_0x272deb,fileName:_0x4654a3,multipartChunkSize:_0x23e60a=defaultSettings$1['multipartChunkSize'],baseURL:_0x22c8c2='',secureSignature:_0x1e70c5,secureExpire:_0xbc952a,store:_0x565334,signal:_0x325c1b,source:_0x31bf9b='local',integration:_0x5171b3,userAgent:_0x31e4a7,retryThrottledRequestMaxTimes:_0x2b2df9=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4863d4=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x5d181d}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x22c8c2,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x17499c,'integration':_0x5171b3,'userAgent':_0x31e4a7})},'data':buildFormData$1({'filename':_0x4654a3||defaultFilename$1,'size':_0x4a81d5,'content_type':_0x272deb||defaultContentType$1,'part_size':_0x23e60a,'UPLOADCARE_STORE':getStoreValue$1(_0x565334),'UPLOADCARE_PUB_KEY':_0x17499c,'signature':_0x1e70c5,'expire':_0xbc952a,'source':_0x31bf9b,'metadata':_0x5d181d}),'signal':_0x325c1b})['then'](({data:_0x1f6530,headers:_0x273c1b,request:_0x5b96da})=>{const _0xef1e2a=camelizeKeys$1(JSON['parse'](_0x1f6530));if('error'in _0xef1e2a)throw new UploadError$1(_0xef1e2a['error']['content'],_0xef1e2a['error']['errorCode'],_0x5b96da,_0xef1e2a,_0x273c1b);return _0xef1e2a['parts']=Object['keys'](_0xef1e2a['parts'])['map'](_0x2b834f=>_0xef1e2a['parts'][Number(_0x2b834f)]),_0xef1e2a;}),{'retryThrottledRequestMaxTimes':_0x2b2df9,'retryNetworkErrorMaxTimes':_0x4863d4});}function multipartUpload$1(_0x2e6cbf,_0x1c48f2,{contentType:_0x1f6ba5,signal:_0x246c1a,onProgress:_0x19524c,retryThrottledRequestMaxTimes:_0x49cc71=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x602bc3=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'PUT','url':_0x1c48f2,'data':_0x2e6cbf,'onProgress':_0x19524c,'signal':_0x246c1a,'headers':{'Content-Type':_0x1f6ba5||defaultContentType$1}})['then'](_0x44bc32=>(_0x19524c&&_0x19524c({'isComputable':!0x0,'value':0x1}),_0x44bc32))['then'](({status:_0x423b1b})=>({'code':_0x423b1b})),{'retryThrottledRequestMaxTimes':_0x49cc71,'retryNetworkErrorMaxTimes':_0x602bc3});}function multipartComplete$1(_0x2b1797,{publicKey:_0x4fff6f,baseURL:_0x1cee3c=defaultSettings$1['baseURL'],source:_0x54ef7f='local',signal:_0x274f73,integration:_0x4534de,userAgent:_0x58b1c9,retryThrottledRequestMaxTimes:_0x16ac3d=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x74f6b4=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x1cee3c,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x4fff6f,'integration':_0x4534de,'userAgent':_0x58b1c9})},'data':buildFormData$1({'uuid':_0x2b1797,'UPLOADCARE_PUB_KEY':_0x4fff6f,'source':_0x54ef7f}),'signal':_0x274f73})['then'](({data:_0x5cd59c,headers:_0x5df93d,request:_0x185cac})=>{const _0x262127=camelizeKeys$1(JSON['parse'](_0x5cd59c));if('error'in _0x262127)throw new UploadError$1(_0x262127['error']['content'],_0x262127['error']['errorCode'],_0x185cac,_0x262127,_0x5df93d);return _0x262127;}),{'retryThrottledRequestMaxTimes':_0x16ac3d,'retryNetworkErrorMaxTimes':_0x74f6b4});}function isReadyPoll$1(_0x44dc97,{publicKey:_0x39c0c9,baseURL:_0x3664b3,source:_0x22375f,integration:_0x218f3c,userAgent:_0x220219,retryThrottledRequestMaxTimes:_0x2f29f7,retryNetworkErrorMaxTimes:_0x431d62,signal:_0x233cb9,onProgress:_0x4ab5e6}){return poll$1({'check':_0xbeb92f=>info$1(_0x44dc97,{'publicKey':_0x39c0c9,'baseURL':_0x3664b3,'signal':_0xbeb92f,'source':_0x22375f,'integration':_0x218f3c,'userAgent':_0x220219,'retryThrottledRequestMaxTimes':_0x2f29f7,'retryNetworkErrorMaxTimes':_0x431d62})['then'](_0x5fd470=>_0x5fd470['isReady']?_0x5fd470:(_0x4ab5e6&&_0x4ab5e6({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x233cb9});}function isGroupFileInfo$1(_0x1fa596){return'defaultEffects'in _0x1fa596;}let UploadcareFile$1=class{['uuid'];['name'];['size'];['isStored'];['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];['contentInfo'];['metadata'];['s3Bucket'];['defaultEffects']=null;constructor(_0x5b533e,{baseCDN:_0x48bf01=defaultSettings$1['baseCDN'],fileName:_0x29eced}={}){const {uuid:_0x2895e3,s3Bucket:_0x239b05}=_0x5b533e,_0x45f3aa=getUrl$1(_0x48bf01,_0x2895e3+'/'),_0x50d909=_0x239b05?getUrl$1('https://'+_0x239b05+'.s3.amazonaws.com/',_0x2895e3+'/'+_0x5b533e['filename']):null;this['uuid']=_0x2895e3,this['name']=_0x29eced||_0x5b533e['filename'],this['size']=_0x5b533e['size'],this['isStored']=_0x5b533e['isStored'],this['isImage']=_0x5b533e['isImage'],this['mimeType']=_0x5b533e['mimeType'],this['cdnUrl']=_0x45f3aa,this['originalFilename']=_0x5b533e['originalFilename'],this['imageInfo']=_0x5b533e['imageInfo'],this['videoInfo']=_0x5b533e['videoInfo'],this['contentInfo']=_0x5b533e['contentInfo'],this['metadata']=_0x5b533e['metadata']||null,this['s3Bucket']=_0x239b05||null,this['s3Url']=_0x50d909,isGroupFileInfo$1(_0x5b533e)&&(this['defaultEffects']=_0x5b533e['defaultEffects']);}};const uploadDirect$1=(_0x3fbbfd,{publicKey:_0x49cb4b,fileName:_0x202740,baseURL:_0x559279,secureSignature:_0x24d1fa,secureExpire:_0x271bef,store:_0x4bff7e,contentType:_0x389bb1,signal:_0x485b57,onProgress:_0x1c10c0,source:_0x5614f5,integration:_0x2f4540,userAgent:_0x5c2a07,retryThrottledRequestMaxTimes:_0x269025,retryNetworkErrorMaxTimes:_0x33e9f4,baseCDN:_0xffd4c2,metadata:_0x1b3dcf})=>base$1(_0x3fbbfd,{'publicKey':_0x49cb4b,'fileName':_0x202740,'contentType':_0x389bb1,'baseURL':_0x559279,'secureSignature':_0x24d1fa,'secureExpire':_0x271bef,'store':_0x4bff7e,'signal':_0x485b57,'onProgress':_0x1c10c0,'source':_0x5614f5,'integration':_0x2f4540,'userAgent':_0x5c2a07,'retryThrottledRequestMaxTimes':_0x269025,'retryNetworkErrorMaxTimes':_0x33e9f4,'metadata':_0x1b3dcf})['then'](({file:_0x237997})=>isReadyPoll$1(_0x237997,{'publicKey':_0x49cb4b,'baseURL':_0x559279,'source':_0x5614f5,'integration':_0x2f4540,'userAgent':_0x5c2a07,'retryThrottledRequestMaxTimes':_0x269025,'retryNetworkErrorMaxTimes':_0x33e9f4,'onProgress':_0x1c10c0,'signal':_0x485b57}))['then'](_0x24b2c1=>new UploadcareFile$1(_0x24b2c1,{'baseCDN':_0xffd4c2})),uploadFromUploaded$1=(_0x4213f3,{publicKey:_0x4a7c40,fileName:_0x2e5574,baseURL:_0x3cd5aa,signal:_0x2cf157,onProgress:_0xcde759,source:_0x138fb2,integration:_0x226106,userAgent:_0x309f74,retryThrottledRequestMaxTimes:_0x9a2e76,retryNetworkErrorMaxTimes:_0x32c36e,baseCDN:_0xddffba})=>info$1(_0x4213f3,{'publicKey':_0x4a7c40,'baseURL':_0x3cd5aa,'signal':_0x2cf157,'source':_0x138fb2,'integration':_0x226106,'userAgent':_0x309f74,'retryThrottledRequestMaxTimes':_0x9a2e76,'retryNetworkErrorMaxTimes':_0x32c36e})['then'](_0x344c89=>new UploadcareFile$1(_0x344c89,{'baseCDN':_0xddffba,'fileName':_0x2e5574}))['then'](_0x5aee3e=>(_0xcde759&&_0xcde759({'isComputable':!0x0,'value':0x1}),_0x5aee3e)),race$1=(_0x208647,{signal:_0x21a4d9}={})=>{let _0x3d8472=null,_0x174f1a=null;const _0x58737e=_0x208647['map'](()=>new AbortController());return onCancel$1(_0x21a4d9,()=>{_0x58737e['forEach'](_0x532d8d=>_0x532d8d['abort']());}),Promise['all'](_0x208647['map']((_0x17b434,_0x3a27c3)=>{const _0x59ca1f=(_0x2c0bf1=>()=>{_0x174f1a=_0x2c0bf1,_0x58737e['forEach']((_0x34844b,_0x538296)=>_0x538296!==_0x2c0bf1&&_0x34844b['abort']());})(_0x3a27c3);return Promise['resolve']()['then'](()=>_0x17b434({'stopRace':_0x59ca1f,'signal':_0x58737e[_0x3a27c3]['signal']}))['then'](_0x5566ae=>(_0x59ca1f(),_0x5566ae))['catch'](_0x1abd60=>(_0x3d8472=_0x1abd60,null));}))['then'](_0x1bcbe7=>{if(null===_0x174f1a)throw _0x3d8472;return _0x1bcbe7[_0x174f1a];});};var WebSocket$1=window['WebSocket'];let Events$1=class{['events']=Object['create']({});['emit'](_0x16a462,_0x2d63de){this['events'][_0x16a462]?.['forEach'](_0x4a169b=>_0x4a169b(_0x2d63de));}['on'](_0x12eda2,_0x168062){this['events'][_0x12eda2]=this['events'][_0x12eda2]||[],this['events'][_0x12eda2]['push'](_0x168062);}['off'](_0x582328,_0xad29ce){this['events'][_0x582328]=_0xad29ce?this['events'][_0x582328]['filter'](_0x1c5613=>_0x1c5613!==_0xad29ce):[];}};const response$1=(_0x36cc84,_0x562553)=>'success'===_0x36cc84?{'status':Status$1['Success'],..._0x562553}:'progress'===_0x36cc84?{'status':Status$1['Progress'],..._0x562553}:{'status':Status$1['Error'],..._0x562553};let Pusher$1=class{['key'];['disconnectTime'];['ws']=void 0x0;['queue']=[];['isConnected']=!0x1;['subscribers']=0x0;['emmitter']=new Events$1();['disconnectTimeoutId']=null;constructor(_0x5bf632,_0x78b03=0x7530){this['key']=_0x5bf632,this['disconnectTime']=_0x78b03;}['connect'](){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){const _0x574fa7='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new WebSocket$1(_0x574fa7),this['ws']['addEventListener']('error',_0x561051=>{this['emmitter']['emit']('error',new Error(_0x561051['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](_0x13d256=>this['send'](_0x13d256['event'],_0x13d256['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',_0x210d2d=>{const _0x3d4878=JSON['parse'](_0x210d2d['data']['toString']());switch(_0x3d4878['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'](_0x3d4878['channel'],response$1(_0x3d4878['event'],JSON['parse'](_0x3d4878['data'])));}});}}['disconnect'](){const _0x5d0746=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x5d0746();},this['disconnectTime']):_0x5d0746();}['send'](_0x458a3b,_0x4700b7){const _0x241650=JSON['stringify']({'event':_0x458a3b,'data':_0x4700b7});this['ws']?.['send'](_0x241650);}['subscribe'](_0x5664bf,_0xf84ba7){this['subscribers']+=0x1,this['connect']();const _0x48c781='task-status-'+_0x5664bf,_0x232795={'event':'pusher:subscribe','data':{'channel':_0x48c781}};this['emmitter']['on'](_0x48c781,_0xf84ba7),this['isConnected']?this['send'](_0x232795['event'],_0x232795['data']):this['queue']['push'](_0x232795);}['unsubscribe'](_0x1dbdaa){this['subscribers']-=0x1;const _0x56cfdc='task-status-'+_0x1dbdaa,_0x410e8d={'event':'pusher:unsubscribe','data':{'channel':_0x56cfdc}};this['emmitter']['off'](_0x56cfdc),this['isConnected']?this['send'](_0x410e8d['event'],_0x410e8d['data']):this['queue']=this['queue']['filter'](_0x574693=>_0x574693['data']['channel']!==_0x56cfdc),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0x307602){return this['emmitter']['on']('error',_0x307602),()=>this['emmitter']['off']('error',_0x307602);}},pusher$1=null;const getPusher$1=_0x5bf795=>{if(!pusher$1){const _0x385a12='undefined'==typeof window?0x0:0x7530;pusher$1=new Pusher$1(_0x5bf795,_0x385a12);}return pusher$1;},preconnect$1=_0x2e2100=>{getPusher$1(_0x2e2100)['connect']();};function pollStrategy$1({token:_0x22e579,publicKey:_0x1d2898,baseURL:_0xa8828a,integration:_0x4e5db7,userAgent:_0x4bf09f,retryThrottledRequestMaxTimes:_0x5925a4,retryNetworkErrorMaxTimes:_0x346667,onProgress:_0x27e93b,signal:_0x5bb63e}){return poll$1({'check':_0xe7ae65=>fromUrlStatus$1(_0x22e579,{'publicKey':_0x1d2898,'baseURL':_0xa8828a,'integration':_0x4e5db7,'userAgent':_0x4bf09f,'retryThrottledRequestMaxTimes':_0x5925a4,'retryNetworkErrorMaxTimes':_0x346667,'signal':_0xe7ae65})['then'](_0x252aac=>{switch(_0x252aac['status']){case Status$1['Error']:return new UploadError$1(_0x252aac['error'],_0x252aac['errorCode']);case Status$1['Waiting']:return!0x1;case Status$1['Unknown']:return new UploadError$1('Token\x20\x22'+_0x22e579+'\x22\x20was\x20not\x20found.');case Status$1['Progress']:return _0x27e93b&&('unknown'===_0x252aac['total']?_0x27e93b({'isComputable':!0x1}):_0x27e93b({'isComputable':!0x0,'value':_0x252aac['done']/_0x252aac['total']})),!0x1;case Status$1['Success']:return _0x27e93b&&_0x27e93b({'isComputable':!0x0,'value':_0x252aac['done']/_0x252aac['total']}),_0x252aac;default:throw new Error('Unknown\x20status');}}),'signal':_0x5bb63e});}const pushStrategy$1=({token:_0x3352b9,pusherKey:_0x5c097c,signal:_0x37e0f8,onProgress:_0x1dca0e})=>new Promise((_0x10769e,_0x2c42a0)=>{const _0x3440f0=getPusher$1(_0x5c097c),_0x440266=_0x3440f0['onError'](_0x2c42a0),_0x5ef77f=()=>{_0x440266(),_0x3440f0['unsubscribe'](_0x3352b9);};onCancel$1(_0x37e0f8,()=>{_0x5ef77f(),_0x2c42a0(new CancelError$1('pusher\x20cancelled'));}),_0x3440f0['subscribe'](_0x3352b9,_0x3669ae=>{switch(_0x3669ae['status']){case Status$1['Progress']:_0x1dca0e&&('unknown'===_0x3669ae['total']?_0x1dca0e({'isComputable':!0x1}):_0x1dca0e({'isComputable':!0x0,'value':_0x3669ae['done']/_0x3669ae['total']}));break;case Status$1['Success']:_0x5ef77f(),_0x1dca0e&&_0x1dca0e({'isComputable':!0x0,'value':_0x3669ae['done']/_0x3669ae['total']}),_0x10769e(_0x3669ae);break;case Status$1['Error']:_0x5ef77f(),_0x2c42a0(new UploadError$1(_0x3669ae['msg'],_0x3669ae['error_code']));}});}),uploadFromUrl$1=(_0x380835,{publicKey:_0x29261e,fileName:_0x57c4eb,baseURL:_0x4798c2,baseCDN:_0x14d46e,checkForUrlDuplicates:_0x3425bf,saveUrlForRecurrentUploads:_0x6c23be,secureSignature:_0x32fbe3,secureExpire:_0x423b57,store:_0xf70f95,signal:_0x94b1,onProgress:_0x42322d,source:_0x315e10,integration:_0x25e48d,userAgent:_0x27cac5,retryThrottledRequestMaxTimes:_0x2cdd58,pusherKey:_0x149da8=defaultSettings$1['pusherKey'],metadata:_0x3379f7})=>Promise['resolve'](preconnect$1(_0x149da8))['then'](()=>fromUrl$1(_0x380835,{'publicKey':_0x29261e,'fileName':_0x57c4eb,'baseURL':_0x4798c2,'checkForUrlDuplicates':_0x3425bf,'saveUrlForRecurrentUploads':_0x6c23be,'secureSignature':_0x32fbe3,'secureExpire':_0x423b57,'store':_0xf70f95,'signal':_0x94b1,'source':_0x315e10,'integration':_0x25e48d,'userAgent':_0x27cac5,'retryThrottledRequestMaxTimes':_0x2cdd58,'metadata':_0x3379f7}))['catch'](_0x40a06b=>{const _0xdb4bbe=getPusher$1(_0x149da8);return _0xdb4bbe?.['disconnect'](),Promise['reject'](_0x40a06b);})['then'](_0x28140c=>_0x28140c['type']===TypeEnum$1['FileInfo']?_0x28140c:race$1([({signal:_0x34862b})=>pollStrategy$1({'token':_0x28140c['token'],'publicKey':_0x29261e,'baseURL':_0x4798c2,'integration':_0x25e48d,'userAgent':_0x27cac5,'retryThrottledRequestMaxTimes':_0x2cdd58,'onProgress':_0x42322d,'signal':_0x34862b}),({signal:_0x1dd521})=>pushStrategy$1({'token':_0x28140c['token'],'pusherKey':_0x149da8,'signal':_0x1dd521,'onProgress':_0x42322d})],{'signal':_0x94b1}))['then'](_0x47ac9e=>{if(_0x47ac9e instanceof UploadError$1)throw _0x47ac9e;return _0x47ac9e;})['then'](_0x4baa32=>isReadyPoll$1(_0x4baa32['uuid'],{'publicKey':_0x29261e,'baseURL':_0x4798c2,'integration':_0x25e48d,'userAgent':_0x27cac5,'retryThrottledRequestMaxTimes':_0x2cdd58,'onProgress':_0x42322d,'signal':_0x94b1}))['then'](_0x2f822f=>new UploadcareFile$1(_0x2f822f,{'baseCDN':_0x14d46e})),memo$1=new WeakMap(),getBlobFromReactNativeAsset$1=async _0x5d8494=>{if(memo$1['has'](_0x5d8494))return memo$1['get'](_0x5d8494);const _0x4d29f4=await fetch(_0x5d8494['uri'])['then'](_0x3bf555=>_0x3bf555['blob']());return memo$1['set'](_0x5d8494,_0x4d29f4),_0x4d29f4;},getFileSize$1=async _0x33aded=>{if(isFile$1(_0x33aded)||isBlob$1(_0x33aded))return _0x33aded['size'];if(isReactNativeAsset$1(_0x33aded))return(await getBlobFromReactNativeAsset$1(_0x33aded))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},isMultipart$1=(_0x54f7fb,_0x47d0ad=defaultSettings$1['multipartMinFileSize'])=>_0x54f7fb>=_0x47d0ad,isUuid$1=_0x1d3b84=>{const _0x2346e4=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(_0x1d3b84)&&_0x2346e4['test'](_0x1d3b84);},isUrl$1=_0x35d470=>{const _0xdc3e27=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!isFileData$1(_0x35d470)&&_0xdc3e27['test'](_0x35d470);},runWithConcurrency$1=(_0x5aaca8,_0x357287)=>new Promise((_0x56eb3d,_0x15cd56)=>{const _0x581687=[];let _0x60eae=!0x1,_0x3ff102=_0x357287['length'];const _0x47026e=[..._0x357287],_0x42f88=()=>{const _0x42b570=_0x357287['length']-_0x47026e['length'],_0x1c6e4f=_0x47026e['shift']();_0x1c6e4f&&_0x1c6e4f()['then'](_0x53d454=>{_0x60eae||(_0x581687[_0x42b570]=_0x53d454,_0x3ff102-=0x1,_0x3ff102?_0x42f88():_0x56eb3d(_0x581687));})['catch'](_0x2f6bce=>{_0x60eae=!0x0,_0x15cd56(_0x2f6bce);});};for(let _0x58b31a=0x0;_0x58b31a<_0x5aaca8;_0x58b31a++)_0x42f88();}),sliceChunk$1=(_0x5b6b15,_0x1e2328,_0xf3d32f,_0x5e0650)=>{const _0x340864=_0x5e0650*_0x1e2328,_0x1e2d45=Math['min'](_0x340864+_0x5e0650,_0xf3d32f);return _0x5b6b15['slice'](_0x340864,_0x1e2d45);},prepareChunks$1=async(_0x490f53,_0x4a940b,_0x272fe4)=>_0x265f86=>sliceChunk$1(_0x490f53,_0x265f86,_0x4a940b,_0x272fe4),uploadPart$1=(_0x18b40d,_0x2df26e,{publicKey:_0xfffad1,contentType:_0x3e36cf,onProgress:_0x501df1,signal:_0x226828,integration:_0x56ce9a,retryThrottledRequestMaxTimes:_0x53b738,retryNetworkErrorMaxTimes:_0x1798f6})=>multipartUpload$1(_0x18b40d,_0x2df26e,{'contentType':_0x3e36cf,'onProgress':_0x501df1,'signal':_0x226828,'retryThrottledRequestMaxTimes':_0x53b738,'retryNetworkErrorMaxTimes':_0x1798f6}),uploadMultipart$1=async(_0x2a95d5,{publicKey:_0x7cc01c,fileName:_0x36da69,fileSize:_0x3b37ea,baseURL:_0x4da172,secureSignature:_0x102e35,secureExpire:_0x143dc4,store:_0x63df7,signal:_0x10e756,onProgress:_0x79aa01,source:_0x16304f,integration:_0x445a15,userAgent:_0x35dbf3,retryThrottledRequestMaxTimes:_0x542a9c,retryNetworkErrorMaxTimes:_0x4ebaa7,contentType:_0x50e57c,multipartChunkSize:_0x80eb5=defaultSettings$1['multipartChunkSize'],maxConcurrentRequests:_0x87fa9d=defaultSettings$1['maxConcurrentRequests'],baseCDN:_0x1b4eb1,metadata:_0x704790})=>{const _0x2058f6=_0x3b37ea??await getFileSize$1(_0x2a95d5);let _0xc3890a;const _0x2367fc=(_0x1c8df2,_0x1590a7)=>{if(!_0x79aa01)return;_0xc3890a||(_0xc3890a=Array(_0x1c8df2)['fill'](0x0));const _0x5de2b4=_0x4fe10f=>_0x4fe10f['reduce']((_0x4936d6,_0x5dd387)=>_0x4936d6+_0x5dd387,0x0);return _0x4d8cbf=>{_0x4d8cbf['isComputable']&&(_0xc3890a[_0x1590a7]=_0x4d8cbf['value'],_0x79aa01({'isComputable':!0x0,'value':_0x5de2b4(_0xc3890a)/_0x1c8df2}));};};return _0x50e57c||=getContentType$1(_0x2a95d5),multipartStart$1(_0x2058f6,{'publicKey':_0x7cc01c,'contentType':_0x50e57c,'fileName':_0x36da69||getFileName$1(_0x2a95d5),'baseURL':_0x4da172,'secureSignature':_0x102e35,'secureExpire':_0x143dc4,'store':_0x63df7,'signal':_0x10e756,'source':_0x16304f,'integration':_0x445a15,'userAgent':_0x35dbf3,'retryThrottledRequestMaxTimes':_0x542a9c,'retryNetworkErrorMaxTimes':_0x4ebaa7,'metadata':_0x704790,'multipartChunkSize':_0x80eb5})['then'](async({uuid:_0x121851,parts:_0x17b04d})=>{const _0x25227d=await prepareChunks$1(_0x2a95d5,_0x2058f6,_0x80eb5);return Promise['all']([_0x121851,runWithConcurrency$1(_0x87fa9d,_0x17b04d['map']((_0x36f6df,_0x2a83b1)=>()=>uploadPart$1(_0x25227d(_0x2a83b1),_0x36f6df,{'publicKey':_0x7cc01c,'contentType':_0x50e57c,'onProgress':_0x2367fc(_0x17b04d['length'],_0x2a83b1),'signal':_0x10e756,'integration':_0x445a15,'retryThrottledRequestMaxTimes':_0x542a9c,'retryNetworkErrorMaxTimes':_0x4ebaa7})))]);})['then'](([_0x82d81c])=>multipartComplete$1(_0x82d81c,{'publicKey':_0x7cc01c,'baseURL':_0x4da172,'source':_0x16304f,'integration':_0x445a15,'userAgent':_0x35dbf3,'retryThrottledRequestMaxTimes':_0x542a9c,'retryNetworkErrorMaxTimes':_0x4ebaa7}))['then'](_0x3baf6e=>_0x3baf6e['isReady']?_0x3baf6e:isReadyPoll$1(_0x3baf6e['uuid'],{'publicKey':_0x7cc01c,'baseURL':_0x4da172,'source':_0x16304f,'integration':_0x445a15,'userAgent':_0x35dbf3,'retryThrottledRequestMaxTimes':_0x542a9c,'retryNetworkErrorMaxTimes':_0x4ebaa7,'onProgress':_0x79aa01,'signal':_0x10e756}))['then'](_0x312023=>new UploadcareFile$1(_0x312023,{'baseCDN':_0x1b4eb1}));};async function uploadFile$1(_0x4e6eaa,{publicKey:_0x5a018c,fileName:_0x387e81,baseURL:_0x2aa961=defaultSettings$1['baseURL'],secureSignature:_0x3f6d05,secureExpire:_0xdc049c,store:_0x6cca0a,signal:_0x5541f4,onProgress:_0x81741d,source:_0x552a4f,integration:_0x2688ba,userAgent:_0x54a953,retryThrottledRequestMaxTimes:_0x43c8bc,retryNetworkErrorMaxTimes:_0x4596dd,contentType:_0xbc01aa,multipartMinFileSize:_0x16dfd1,multipartChunkSize:_0x552a9a,maxConcurrentRequests:_0x103a01,baseCDN:_0xdd673c=defaultSettings$1['baseCDN'],checkForUrlDuplicates:_0x36389c,saveUrlForRecurrentUploads:_0x6bec91,pusherKey:_0x44d6f3,metadata:_0x4f96c5}){if(isFileData$1(_0x4e6eaa)){const _0x22abd7=await getFileSize$1(_0x4e6eaa);return isMultipart$1(_0x22abd7,_0x16dfd1)?uploadMultipart$1(_0x4e6eaa,{'publicKey':_0x5a018c,'contentType':_0xbc01aa,'multipartChunkSize':_0x552a9a,'fileSize':_0x22abd7,'fileName':_0x387e81,'baseURL':_0x2aa961,'secureSignature':_0x3f6d05,'secureExpire':_0xdc049c,'store':_0x6cca0a,'signal':_0x5541f4,'onProgress':_0x81741d,'source':_0x552a4f,'integration':_0x2688ba,'userAgent':_0x54a953,'maxConcurrentRequests':_0x103a01,'retryThrottledRequestMaxTimes':_0x43c8bc,'retryNetworkErrorMaxTimes':_0x4596dd,'baseCDN':_0xdd673c,'metadata':_0x4f96c5}):uploadDirect$1(_0x4e6eaa,{'publicKey':_0x5a018c,'fileName':_0x387e81,'contentType':_0xbc01aa,'baseURL':_0x2aa961,'secureSignature':_0x3f6d05,'secureExpire':_0xdc049c,'store':_0x6cca0a,'signal':_0x5541f4,'onProgress':_0x81741d,'source':_0x552a4f,'integration':_0x2688ba,'userAgent':_0x54a953,'retryThrottledRequestMaxTimes':_0x43c8bc,'retryNetworkErrorMaxTimes':_0x4596dd,'baseCDN':_0xdd673c,'metadata':_0x4f96c5});}if(isUrl$1(_0x4e6eaa))return uploadFromUrl$1(_0x4e6eaa,{'publicKey':_0x5a018c,'fileName':_0x387e81,'baseURL':_0x2aa961,'baseCDN':_0xdd673c,'checkForUrlDuplicates':_0x36389c,'saveUrlForRecurrentUploads':_0x6bec91,'secureSignature':_0x3f6d05,'secureExpire':_0xdc049c,'store':_0x6cca0a,'signal':_0x5541f4,'onProgress':_0x81741d,'source':_0x552a4f,'integration':_0x2688ba,'userAgent':_0x54a953,'retryThrottledRequestMaxTimes':_0x43c8bc,'pusherKey':_0x44d6f3,'metadata':_0x4f96c5});if(isUuid$1(_0x4e6eaa))return uploadFromUploaded$1(_0x4e6eaa,{'publicKey':_0x5a018c,'fileName':_0x387e81,'baseURL':_0x2aa961,'signal':_0x5541f4,'onProgress':_0x81741d,'source':_0x552a4f,'integration':_0x2688ba,'userAgent':_0x54a953,'retryThrottledRequestMaxTimes':_0x43c8bc,'retryNetworkErrorMaxTimes':_0x4596dd,'baseCDN':_0xdd673c});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x4e6eaa+'\x22\x20is\x20not\x20supported');}class UploadUtils{static['upload']({file:_0x5799e0,..._0xbb2111}){return uploadFile$1(_0x5799e0,_0xbb2111);}static['getInfo'](_0x3e8b49,_0x83e73e){return info$1(_0x3e8b49,_0x83e73e);}}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 _0x321fd3=this['editor'];if(!!!_0x321fd3['config']['get']('uploadcare'))return;_0x321fd3['plugins']['get'](FileRepository)['createUploadAdapter']=_0x43632c=>new Adapter(_0x43632c,_0x321fd3),_0x321fd3['plugins']['get'](ImageUploadEditing)['on']('uploadComplete',(_0xa416a0,{imageElement:_0x4f602c,data:_0x135f2e})=>{_0x321fd3['model']['change'](_0x5cc9bb=>{_0x5cc9bb['setAttribute']('uploadcareImageId',_0x135f2e['uploadcareImageId'],_0x4f602c);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x175600,_0x5caa36){this['loader']=_0x175600,this['editor']=_0x5caa36,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x242abb=await this['loader']['file'];return UploadUtils['upload']({'file':_0x242abb,'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':_0x23bd29=>{_0x23bd29&&_0x23bd29['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x23bd29['value']);}})['then'](async _0x44d60a=>{const {imageFallbackUrl:_0x459921,imageSources:_0x443b83}=getImageUrls(_0x44d60a['cdnUrl'],_0x44d60a['imageInfo']['width']);return{'uploadcareImageId':_0x44d60a['uuid'],'default':_0x459921,'sources':_0x443b83};})['catch'](()=>{const _0x23a393=t('Cannot\x20upload\x20file:')+('\x20'+_0x242abb['name']+'.');return Promise['reject'](_0x23a393);});}['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(_0x3ed542){super(_0x3ed542),this['ucContextId']=uid();}['init'](){const _0x405f8d=this['editor'];_0x405f8d['commands']['add']('uploadcare',new UploadcareCommand(_0x405f8d));}['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 _0x149b6b=_0x176c57['document']['querySelector']('input[uploadcare-file-input]');_0x149b6b&&_0x149b6b['remove']();}),checkLicense(this);}['_initSchema'](){const _0x14778e=this['editor']['model']['schema'];_0x14778e['isRegistered']('imageBlock')&&_0x14778e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x14778e['isRegistered']('imageInline')&&_0x14778e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xcb12f3=this['editor'];_0xcb12f3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xcb12f3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5d719d=>_0x5d719d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x235f98=_0xcb12f3['commands']['get']('replaceImageSource');_0x235f98&&this['listenTo'](_0x235f98,'cleanupImage',(_0x4c766f,[_0x4c72f2,_0x359adc])=>{_0x4c72f2['removeAttribute']('uploadcareImageId',_0x359adc);});}['_initConfig'](){const _0x2c5926=this['editor']['config']['get']('uploadcare.uploader')||{},_0x32c075=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=createElement(_0x176c57['document'],'uc-config',{..._0x2c5926,'pubkey':_0x32c075,'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']=_0x1f006c=>{if('closeMax'==_0x1f006c)return'#uc-icon-arrow-down';},_0x176c57['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=createElement(_0x176c57['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x176c57['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xd8b5f7=this['editor']['commands']['get']('insertImage');_0xd8b5f7&&this['listenTo'](_0xd8b5f7,'execute',()=>{const _0x2a2cd7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a2cd7&&_0x2a2cd7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{showImageProcessingIndicator(this['editor'],_0x2a2cd7);});});const _0x3a355a=this['editor']['commands']['get']('uploadcareImageReplace');_0x3a355a&&this['listenTo'](_0x3a355a,'execute',()=>{const _0x3e1481=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3e1481&&_0x3e1481['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{showImageProcessingIndicator(this['editor'],_0x3e1481);});});}}async function checkLicense(_0x2ffdb8){const _0x469f24=_0x5415ed([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]),_0x1f618d=window[_0x5415ed([0x44,0x61,0x74,0x65])][_0x5415ed([0x6e,0x6f,0x77])](),_0x549b7d=_0x2ffdb8[_0x5415ed([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x43f51b=new window[(_0x5415ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8b80d5=>{_0x549b7d[_0x5415ed([0x6f,0x6e,0x63,0x65])](_0x5415ed([0x72,0x65,0x61,0x64,0x79]),_0x8b80d5);}),_0x54a059={[_0x5415ed([0x6b,0x74,0x79])]:_0x5415ed([0x45,0x43]),[_0x5415ed([0x75,0x73,0x65])]:_0x5415ed([0x73,0x69,0x67]),[_0x5415ed([0x63,0x72,0x76])]:_0x5415ed([0x50,0x2d,0x32,0x35,0x36]),[_0x5415ed([0x78])]:_0x5415ed([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]),[_0x5415ed([0x79])]:_0x5415ed([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]),[_0x5415ed([0x61,0x6c,0x67])]:_0x5415ed([0x45,0x53,0x32,0x35,0x36])},_0x15a9fe=_0x549b7d[_0x5415ed([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5415ed([0x67,0x65,0x74])](_0x5415ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x4c14f9=await(async function(){let _0x2f0220,_0x486e95=null,_0x450fe3=null;try{if(_0x15a9fe==_0x5415ed([0x47,0x50,0x4c]))return _0x5415ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f0220=(function(){const _0x1ed2ab=_0x15a9fe[_0x5415ed([0x73,0x70,0x6c,0x69,0x74])](_0x5415ed([0x2e]));if(0x3!=_0x1ed2ab[_0x5415ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5595a6=_0x1ed2ab[0x1];return _0x329c07(_0x5595a6);function _0x329c07(_0x2e54c3){const _0x2b73a4=_0x13e6ae(_0x2e54c3);return _0x2b73a4&&_0x5c53d8()?_0x2b73a4:null;function _0x5c53d8(){const _0x39e263=_0x2b73a4[_0x5415ed([0x6a,0x74,0x69])],_0x538502=window[_0x5415ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39e263[_0x5415ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39e263[_0x5415ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3dc210={..._0x2b73a4,[_0x5415ed([0x6a,0x74,0x69])]:_0x39e263[_0x5415ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x39e263[_0x5415ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3dc210[_0x5415ed([0x76,0x63])],_0x3c9caa(_0x3dc210)==_0x538502;}}}()),!_0x2f0220)return _0x5415ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x2f0220[_0x5415ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x450fe3=function(_0x13373e,_0x2eea6b){return new window[(_0x5415ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x592974=>{if(_0x47b0be())return _0x592974(_0x5415ed([0x56,0x61,0x6c,0x69,0x64]));_0x3fa32b(),_0x549b7d[_0x5415ed([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5415ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x566a99=!0x1;const _0x562868=uid();function _0x471c14(_0x3141e5){return!!_0x3141e5&&(typeof _0x3141e5===_0x5415ed([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3141e5===_0x5415ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3141e5[_0x5415ed([0x74,0x68,0x65,0x6e])]===_0x5415ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3141e5[_0x5415ed([0x63,0x61,0x74,0x63,0x68])]===_0x5415ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x208bc2(_0x462ec0){_0x4ae0e9(_0x462ec0)[_0x5415ed([0x74,0x68,0x65,0x6e])](_0x1761a3=>{if(!_0x1761a3||_0x1761a3[_0x5415ed([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5415ed([0x6f,0x6b]))return _0x5415ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2333bf(_0x3c9caa(_0x562868+_0x2eea6b))!=_0x1761a3[_0x5415ed([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5415ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5415ed([0x56,0x61,0x6c,0x69,0x64]);})[_0x5415ed([0x74,0x68,0x65,0x6e])](_0x23ab79=>(_0x6306d7(),_0x23ab79),()=>{const _0x15f2e0=_0x1ee7b1();return null==_0x15f2e0?(_0x6306d7(),_0x5415ed([0x56,0x61,0x6c,0x69,0x64])):_0x5415ed(_0x1f618d-_0x15f2e0>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5415ed([0x74,0x68,0x65,0x6e])](_0x592974)[_0x5415ed([0x63,0x61,0x74,0x63,0x68])](()=>{_0x592974(_0x5415ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x281886=0x36ee80;function _0x6306d7(){const _0x2ff98e=_0x5415ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x2333bf(_0x3c9caa(_0x13373e)),_0x4e0c34=_0x350dec(_0x2333bf(window[_0x5415ed([0x4d,0x61,0x74,0x68])][_0x5415ed([0x63,0x65,0x69,0x6c])](_0x1f618d/_0x281886)));window[_0x5415ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5415ed([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ff98e,_0x4e0c34);}function _0x1ee7b1(){const _0x52e551=_0x5415ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x2333bf(_0x3c9caa(_0x13373e)),_0x137c1e=window[_0x5415ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5415ed([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52e551);return _0x137c1e?window[_0x5415ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x350dec(_0x137c1e),0x10)*_0x281886:null;}function _0x4ae0e9(_0x3f822a){return new window[(_0x5415ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x415c38,_0x977913)=>{_0x3f822a[_0x5415ed([0x74,0x68,0x65,0x6e])](_0x415c38,_0x977913),window[_0x5415ed([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x977913,0x1d4c0);});}}_0x549b7d[_0x5415ed([0x6f,0x6e])](_0x5415ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e0967,_0x4986a8)=>{if(_0x4986a8[0x0]!=_0x13373e)return _0x592974(_0x5415ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4986a8[0x1]={..._0x4986a8[0x1],[_0x5415ed([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x562868};},{[_0x5415ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5415ed([0x68,0x69,0x67,0x68])}),_0x549b7d[_0x5415ed([0x6f,0x6e])](_0x5415ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4cc0e1=>{_0x471c14(_0x4cc0e1[_0x5415ed([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x566a99=!0x0,_0x208bc2(_0x4cc0e1[_0x5415ed([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5415ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5415ed([0x6c,0x6f,0x77])}),_0x43f51b[_0x5415ed([0x74,0x68,0x65,0x6e])](()=>{_0x566a99||_0x592974(_0x5415ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47b0be(){return _0x549b7d[_0x5415ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5415ed([0x76,0x69,0x65,0x77])][_0x5415ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5415ed([0x61,0x75,0x74,0x6f]);}function _0x3fa32b(){_0x549b7d[_0x5415ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5415ed([0x76,0x69,0x65,0x77])][_0x5415ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5415ed([0x61,0x75,0x74,0x6f]);}}(_0x2f0220[_0x5415ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f0220[_0x5415ed([0x6a,0x74,0x69])]));const _0x4c9056=await(async function(){let _0x3cf56a=!0x0;try{const _0x2cb777=_0x15a9fe[_0x5415ed([0x73,0x70,0x6c,0x69,0x74])](_0x5415ed([0x2e])),[_0x110e15,_0x19983b,_0x17cd25]=_0x2cb777;return _0x1dfcd6(_0x110e15),await _0x262b9e(_0x110e15,_0x19983b,_0x17cd25),_0x3cf56a;}catch{return!0x1;}function _0x1dfcd6(_0x1d7867){const _0x541425=_0x13e6ae(_0x1d7867);_0x541425&&_0x541425[_0x5415ed([0x61,0x6c,0x67])]==_0x5415ed([0x45,0x53,0x32,0x35,0x36])||(_0x3cf56a=!0x1);}async function _0x262b9e(_0x25144b,_0x19d343,_0xa8009b){const _0x538cb7=window[_0x5415ed([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5415ed([0x66,0x72,0x6f,0x6d])](_0x310449(_0xa8009b),_0x4da326=>_0x4da326[_0x5415ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5bc6ca=new window[(_0x5415ed([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5415ed([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25144b+_0x5415ed([0x2e])+_0x19d343),_0x13f612=window[_0x5415ed([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5415ed([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13f612)return;const _0x3439fa=await _0x13f612[_0x5415ed([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5415ed([0x6a,0x77,0x6b]),_0x54a059,{[_0x5415ed([0x6e,0x61,0x6d,0x65])]:_0x5415ed([0x45,0x43,0x44,0x53,0x41]),[_0x5415ed([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5415ed([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5415ed([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13f612[_0x5415ed([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5415ed([0x6e,0x61,0x6d,0x65])]:_0x5415ed([0x45,0x43,0x44,0x53,0x41]),[_0x5415ed([0x68,0x61,0x73,0x68])]:{[_0x5415ed([0x6e,0x61,0x6d,0x65])]:_0x5415ed([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3439fa,_0x538cb7,_0x5bc6ca)||(_0x3cf56a=!0x1);}}());return _0x4c9056?(function(){const _0x5ac6a3=_0x2f0220[_0x5415ed([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5ac6a3)return!0x1;if(_0x5ac6a3[_0x5415ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5415ed([0x2a])))return!0x0;if(_0x5ac6a3[_0x5415ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5415ed([0x55,0x50,0x4c,0x43])))return!0x0;return!0x1;}())?(function(){const _0x107ae5=[_0x5415ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5415ed([0x74,0x72,0x69,0x61,0x6c])][_0x5415ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f0220[_0x5415ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f618d/0x3e8:0x69cb0e80;return _0x2f0220[_0x5415ed([0x65,0x78,0x70])]<_0x107ae5;}())?_0x5415ed([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x3872de=_0x2f0220[_0x5415ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3872de||0x0==_0x3872de[_0x5415ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x28cb12}=new URL(window[_0x5415ed([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3872de[_0x5415ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28cb12))return!0x0;const _0x879a02=_0x28cb12[_0x5415ed([0x73,0x70,0x6c,0x69,0x74])](_0x5415ed([0x2e]));return _0x3872de[_0x5415ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14734d=>_0x14734d[_0x5415ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5415ed([0x2a])))[_0x5415ed([0x6d,0x61,0x70])](_0x2034ed=>_0x2034ed[_0x5415ed([0x73,0x70,0x6c,0x69,0x74])](_0x5415ed([0x2e])))[_0x5415ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1703fc=>_0x1703fc[_0x5415ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x879a02[_0x5415ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5415ed([0x6d,0x61,0x70])](_0x58e029=>Array(_0x879a02[_0x5415ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58e029[_0x5415ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5415ed([0x66,0x69,0x6c,0x6c])](_0x58e029[0x0]===_0x5415ed([0x2a])?_0x5415ed([0x2a]):'')[_0x5415ed([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58e029))[_0x5415ed([0x73,0x6f,0x6d,0x65])](_0x5305c3=>_0x879a02[_0x5415ed([0x65,0x76,0x65,0x72,0x79])]((_0x28187c,_0x2f564a)=>_0x5305c3[_0x2f564a]===_0x28187c||_0x5305c3[_0x2f564a]===_0x5415ed([0x2a])));}())?(_0x2f0220[_0x5415ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5415ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x486e95=function(_0x5c8475){const _0x4248b2=new window[(_0x5415ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fe586=>setTimeout(_0x4fe586,0x93ecc)),_0x1ac658=_0x43f51b[_0x5415ed([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5415ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5316a3=>{let _0x5c7d0e=0x0;_0x549b7d[_0x5415ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x5415ed([0x6f,0x6e])](_0x5415ed([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1107b3,_0x422660)=>{_0x422660[0x0][_0x5415ed([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c7d0e++,0x5e8==_0x5c7d0e&&(_0x5316a3(),_0x1107b3[_0x5415ed([0x6f,0x66,0x66])]());});})),_0x5e29aa=[_0x4248b2,_0x1ac658];return window[_0x5415ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5415ed([0x72,0x61,0x63,0x65])](_0x5e29aa)[_0x5415ed([0x74,0x68,0x65,0x6e])](()=>_0x5c8475);}(_0x5415ed([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x486e95&&_0x450fe3)return new window[(_0x5415ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b43b2,_0x20014a)=>{_0x486e95[_0x5415ed([0x74,0x68,0x65,0x6e])](_0x3b43b2,_0x20014a),_0x450fe3[_0x5415ed([0x74,0x68,0x65,0x6e])](_0x2e16d0=>{_0x2e16d0!=_0x5415ed([0x56,0x61,0x6c,0x69,0x64])&&_0x3b43b2(_0x2e16d0);},_0x20014a);});return _0x486e95||_0x450fe3||_0x5415ed([0x56,0x61,0x6c,0x69,0x64]);}())):_0x5415ed([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5415ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5415ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5415ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x13e6ae(_0x4867c8){return _0x4867c8[_0x5415ed([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5415ed([0x65,0x79]))?JSON[_0x5415ed([0x70,0x61,0x72,0x73,0x65])](_0x310449(_0x4867c8)):null;}function _0x310449(_0x5c117f){return window[_0x5415ed([0x61,0x74,0x6f,0x62])](_0x5c117f[_0x5415ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5415ed([0x2b]))[_0x5415ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5415ed([0x2f])));}function _0x3c9caa(_0x2a4c68){let _0x3af765=0x1505;function _0x11b501(_0x22a5ca){for(let _0x125cf9=0x0;_0x125cf9<_0x22a5ca[_0x5415ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x125cf9++){const _0x362521=_0x22a5ca[_0x5415ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x125cf9);_0x3af765=(_0x3af765<<0x5)+_0x3af765+_0x362521,_0x3af765&=_0x3af765;}}return function _0x18ff59(_0x556722){Array[_0x5415ed([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x556722)?_0x556722[_0x5415ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18ff59):_0x556722&&typeof _0x556722==_0x5415ed([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5415ed([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x556722)[_0x5415ed([0x73,0x6f,0x72,0x74])]()[_0x5415ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x18b3e0,_0x4436bb])=>{_0x11b501(_0x18b3e0),_0x18ff59(_0x4436bb);}):_0x11b501(window[_0x5415ed([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x556722));}(_0x2a4c68),_0x3af765>>>0x0;}function _0x2333bf(_0x5c3853){return _0x5c3853[_0x5415ed([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5415ed([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5415ed([0x30]));}function _0x350dec(_0x20f8b1){return _0x20f8b1[_0x5415ed([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5415ed([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5415ed([0x6a,0x6f,0x69,0x6e])]('');}function _0xd292d8(){}function _0x5415ed(_0x54875a){return _0x54875a['map'](_0x4edda4=>String['fromCharCode'](_0x4edda4))['join']('');}!function(_0xf9b12c){const _0x25b3b9=(function(){const _0x3f6227=window[_0x5415ed([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5415ed([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5415ed([0x6e,0x6f,0x77])]())[_0x5415ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5415ed([0x2e]),'');let _0x3ea80a=_0x5415ed([0x68]);for(let _0x1da612=0x0;_0x1da612<_0x3f6227[_0x5415ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1da612+=0x2){let _0xbbd576=window[_0x5415ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f6227[_0x5415ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1da612,_0x1da612+0x2));_0xbbd576>=_0x469f24[_0x5415ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xbbd576-=_0x469f24[_0x5415ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ea80a+=_0x469f24[_0xbbd576];}return _0x3ea80a;}());_0x549b7d[_0x25b3b9]=_0x5415ed([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf9b12c,_0xf9b12c!=_0x5415ed([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x43f51b,_0x549b7d[_0x5415ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x5415ed([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd292d8,_0x549b7d[_0x5415ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x5415ed([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd292d8,_0x549b7d[_0x5415ed([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5415ed([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x4c14f9);}var __defProp=Object['defineProperty'],__defNormalProp=(_0x57c158,_0x45a655,_0x5400cf)=>_0x45a655 in _0x57c158?__defProp(_0x57c158,_0x45a655,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5400cf}):_0x57c158[_0x45a655]=_0x5400cf,__publicField=(_0x40cf02,_0xff8103,_0x542887)=>(__defNormalProp(_0x40cf02,'symbol'!=typeof _0xff8103?_0xff8103+'':_0xff8103,_0x542887),_0x542887);function cloneObj(_0x2bade){let _0x4201f4=_0x49addd=>{var _0x4fbf08;for(let _0x434014 in _0x49addd)(null==(_0x4fbf08=_0x49addd[_0x434014])?void 0x0:_0x4fbf08['constructor'])===Object&&(_0x49addd[_0x434014]=_0x4201f4(_0x49addd[_0x434014]));return{..._0x49addd};};return _0x4201f4(_0x2bade);}var Data=class{constructor(_0x4ecfef){_0x4ecfef['constructor']===Object?this['store']=cloneObj(_0x4ecfef):(this['_storeIsProxy']=!0x0,this['store']=_0x4ecfef),this['callbackMap']=Object['create'](null);}static['warn'](_0x16ba70,_0x114e0c){console['warn']('Symbiote\x20Data:\x20cannot\x20'+_0x16ba70+'.\x20Prop\x20name:\x20'+_0x114e0c);}['read'](_0x15d30e){return this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x15d30e)?this['store'][_0x15d30e]:(Data['warn']('read',_0x15d30e),null);}['has'](_0x211c88){return this['_storeIsProxy']?void 0x0!==this['store'][_0x211c88]:this['store']['hasOwnProperty'](_0x211c88);}['add'](_0x111e67,_0x2edd37,_0x520e28=!0x1){!_0x520e28&&Object['keys'](this['store'])['includes'](_0x111e67)||(this['store'][_0x111e67]=_0x2edd37,this['notify'](_0x111e67));}['pub'](_0x215c1e,_0x5784f7){this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x215c1e)?(this['store'][_0x215c1e]=_0x5784f7,this['notify'](_0x215c1e)):Data['warn']('publish',_0x215c1e);}['multiPub'](_0x5344bd){for(let _0x510035 in _0x5344bd)this['pub'](_0x510035,_0x5344bd[_0x510035]);}['notify'](_0x135083){this['callbackMap'][_0x135083]&&this['callbackMap'][_0x135083]['forEach'](_0x3efe74=>{_0x3efe74(this['store'][_0x135083]);});}['sub'](_0x809acb,_0x4637d3,_0x563c3d=!0x0){return this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x809acb)?(this['callbackMap'][_0x809acb]||(this['callbackMap'][_0x809acb]=new Set()),this['callbackMap'][_0x809acb]['add'](_0x4637d3),_0x563c3d&&_0x4637d3(this['store'][_0x809acb]),{'remove':()=>{this['callbackMap'][_0x809acb]['delete'](_0x4637d3),this['callbackMap'][_0x809acb]['size']||delete this['callbackMap'][_0x809acb];},'callback':_0x4637d3}):(Data['warn']('subscribe',_0x809acb),null);}static['registerCtx'](_0x5134fb,_0x253d0a=Symbol()){let _0x4e9463=Data['globalStore']['get'](_0x253d0a);return _0x4e9463?console['warn']('State:\x20context\x20UID\x20\x22'+_0x253d0a+'\x22\x20already\x20in\x20use'):(_0x4e9463=new Data(_0x5134fb),Data['globalStore']['set'](_0x253d0a,_0x4e9463)),_0x4e9463;}static['deleteCtx'](_0x13772e){Data['globalStore']['delete'](_0x13772e);}static['getCtx'](_0xfe69d7,_0x499b4d=!0x0){return Data['globalStore']['get'](_0xfe69d7)||(_0x499b4d&&console['warn']('State:\x20wrong\x20context\x20UID\x20-\x20\x22'+_0xfe69d7+'\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'](_0x2514f7='XXXXXXXXX-XXX'){let _0x198e58='';for(let _0x337b1f=0x0;_0x337b1f<_0x2514f7['length'];_0x337b1f++)_0x198e58+='-'===_0x2514f7[_0x337b1f]?_0x2514f7[_0x337b1f]:CHARS['charAt'](Math['random']()*CHLENGTH);return _0x198e58;}};function setNestedProp(_0x187014,_0x3b731,_0x445ac8){let _0x49a1b6,_0xf45330=!0x0,_0x557e76=_0x3b731['split']('.');return _0x557e76['forEach']((_0x26c61a,_0x4716a0)=>{_0x4716a0<_0x557e76['length']-0x1?_0x187014=_0x187014[_0x26c61a]:_0x49a1b6=_0x26c61a;}),_0x187014?_0x187014[_0x49a1b6]=_0x445ac8:_0xf45330=!0x1,_0xf45330;}function kebabToCamel(_0xd84cba){return _0xd84cba['split']('-')['map']((_0x5260b7,_0x2b8db5)=>_0x5260b7&&_0x2b8db5?_0x5260b7[0x0]['toUpperCase']()+_0x5260b7['slice'](0x1):_0x5260b7)['join']('')['split']('_')['map']((_0x37268c,_0xaec13d)=>_0x37268c&&_0xaec13d?_0x37268c['toUpperCase']():_0x37268c)['join']('');}function repeatProcessor(_0x440c3f,_0x6ca805){[..._0x440c3f['querySelectorAll']('['+DICT['REPEAT_ATTR']+']')]['forEach'](_0x2b112a=>{let _0x53382a,_0xb73eae=_0x2b112a['getAttribute'](DICT['REPEAT_ITEM_TAG_ATTR']);if(_0xb73eae&&(_0x53382a=window['customElements']['get'](_0xb73eae)),!_0x53382a){_0x53382a=class extends _0x6ca805['BaseComponent']{constructor(){super(),_0xb73eae||(this['style']['display']='contents');}};let _0x5c3703=_0x2b112a['innerHTML'];_0x53382a['template']=_0x5c3703,_0x53382a['reg'](_0xb73eae);}for(;_0x2b112a['firstChild'];)_0x2b112a['firstChild']['remove']();let _0x17cfa4=_0x2b112a['getAttribute'](DICT['REPEAT_ATTR']);_0x6ca805['sub'](_0x17cfa4,_0x418ba9=>{if(!_0x418ba9){for(;_0x2b112a['firstChild'];)_0x2b112a['firstChild']['remove']();return;}let _0xc880d8,_0x2a05c3=[..._0x2b112a['children']],_0x149551=_0x35dc6a=>{_0x35dc6a['forEach']((_0x325433,_0x3b665d)=>{if(_0x2a05c3[_0x3b665d]){if(_0x2a05c3[_0x3b665d]['set$'])setTimeout(()=>{_0x2a05c3[_0x3b665d]['set$'](_0x325433);});else{for(let _0x449a11 in _0x325433)_0x2a05c3[_0x3b665d][_0x449a11]=_0x325433[_0x449a11];}}else{_0xc880d8||(_0xc880d8=new DocumentFragment());let _0x5daf9f=new _0x53382a();Object['assign'](_0x5daf9f['init$'],_0x325433),_0xc880d8['appendChild'](_0x5daf9f);}}),_0xc880d8&&_0x2b112a['appendChild'](_0xc880d8);let _0x2975d3=_0x2a05c3['slice'](_0x35dc6a['length'],_0x2a05c3['length']);for(let _0x166286 of _0x2975d3)_0x166286['remove']();};if(_0x418ba9['constructor']===Array)_0x149551(_0x418ba9);else{if(_0x418ba9['constructor']===Object){let _0xdde633=[];for(let _0x3b9ff6 in _0x418ba9){let _0x8f548c=_0x418ba9[_0x3b9ff6];Object['defineProperty'](_0x8f548c,'_KEY_',{'value':_0x3b9ff6,'enumerable':!0x0}),_0xdde633['push'](_0x8f548c);}_0x149551(_0xdde633);}else console['warn']('Symbiote\x20repeat\x20data\x20type\x20error:'),console['log'](_0x418ba9);}}),_0x2b112a['removeAttribute'](DICT['REPEAT_ATTR']),_0x2b112a['removeAttribute'](DICT['REPEAT_ITEM_TAG_ATTR']);});}var DEFAULT_SLOT_KEY='__default__';function slotProcessor(_0x177b48,_0x12e880){if(_0x12e880['shadowRoot'])return;let _0x2bdd16=[..._0x177b48['querySelectorAll']('slot')];if(!_0x2bdd16['length'])return;let _0x939934={};_0x2bdd16['forEach'](_0x115978=>{let _0x500dc3=_0x115978['getAttribute']('name')||DEFAULT_SLOT_KEY;_0x939934[_0x500dc3]={'slot':_0x115978,'fr':document['createDocumentFragment']()};}),_0x12e880['initChildren']['forEach'](_0x58408f=>{var _0x255255;let _0x363eb8=DEFAULT_SLOT_KEY;_0x58408f instanceof Element&&_0x58408f['hasAttribute']('slot')&&(_0x363eb8=_0x58408f['getAttribute']('slot'),_0x58408f['removeAttribute']('slot')),null==(_0x255255=_0x939934[_0x363eb8])||_0x255255['fr']['appendChild'](_0x58408f);}),Object['values'](_0x939934)['forEach'](_0x428a21=>{if(_0x428a21['fr']['childNodes']['length'])_0x428a21['slot']['parentNode']['replaceChild'](_0x428a21['fr'],_0x428a21['slot']);else{if(_0x428a21['slot']['childNodes']['length']){let _0x304c6b=document['createDocumentFragment']();_0x304c6b['append'](..._0x428a21['slot']['childNodes']),_0x428a21['slot']['parentNode']['replaceChild'](_0x304c6b,_0x428a21['slot']);}else _0x428a21['slot']['remove']();}});}function refProcessor(_0x412283,_0x250f80){[..._0x412283['querySelectorAll']('['+DICT['EL_REF_ATTR']+']')]['forEach'](_0x5b3b=>{let _0x4d57f0=_0x5b3b['getAttribute'](DICT['EL_REF_ATTR']);_0x250f80['ref'][_0x4d57f0]=_0x5b3b,_0x5b3b['removeAttribute'](DICT['EL_REF_ATTR']);});}function domSetProcessor(_0x53ca50,_0x50c04c){[..._0x53ca50['querySelectorAll']('['+DICT['BIND_ATTR']+']')]['forEach'](_0x3ba2a4=>{let _0x1723e2=_0x3ba2a4['getAttribute'](DICT['BIND_ATTR'])['split'](';');[..._0x3ba2a4['attributes']]['forEach'](_0x206165=>{if(_0x206165['name']['startsWith']('-')&&_0x206165['value']){let _0x2f5b96=kebabToCamel(_0x206165['name']['replace']('-',''));_0x1723e2['push'](_0x2f5b96+':'+_0x206165['value']),_0x3ba2a4['removeAttribute'](_0x206165['name']);}}),_0x1723e2['forEach'](_0x51377e=>{if(!_0x51377e)return;let _0x54f4b8,_0x508a01=_0x51377e['split'](':')['map'](_0x5a80f9=>_0x5a80f9['trim']()),_0x4d00c4=_0x508a01[0x0];0x0===_0x4d00c4['indexOf'](DICT['ATTR_BIND_PRFX'])&&(_0x54f4b8=!0x0,_0x4d00c4=_0x4d00c4['replace'](DICT['ATTR_BIND_PRFX'],''));let _0x19d094=_0x508a01[0x1]['split'](',')['map'](_0x34eb55=>_0x34eb55['trim']());for(let _0x3921ff of _0x19d094){let _0x4944de;_0x3921ff['startsWith']('!!')?(_0x4944de='double',_0x3921ff=_0x3921ff['replace']('!!','')):_0x3921ff['startsWith']('!')&&(_0x4944de='single',_0x3921ff=_0x3921ff['replace']('!','')),_0x50c04c['sub'](_0x3921ff,_0x1490ff=>{'double'===_0x4944de?_0x1490ff=!!_0x1490ff:'single'===_0x4944de&&(_0x1490ff=!_0x1490ff),_0x54f4b8?(null==_0x1490ff?void 0x0:_0x1490ff['constructor'])===Boolean?_0x1490ff?_0x3ba2a4['setAttribute'](_0x4d00c4,''):_0x3ba2a4['removeAttribute'](_0x4d00c4):_0x3ba2a4['setAttribute'](_0x4d00c4,_0x1490ff):setNestedProp(_0x3ba2a4,_0x4d00c4,_0x1490ff)||(_0x3ba2a4[DICT['SET_LATER_KEY']]||(_0x3ba2a4[DICT['SET_LATER_KEY']]=Object['create'](null)),_0x3ba2a4[DICT['SET_LATER_KEY']][_0x4d00c4]=_0x1490ff);});}}),_0x3ba2a4['removeAttribute'](DICT['BIND_ATTR']);});}var OPEN_TOKEN$1='{{',CLOSE_TOKEN$1='}}',SKIP_ATTR='skip-text';function getTextNodesWithTokens(_0x4f048c){let _0x207326,_0x35ff0d=[],_0x557949=document['createTreeWalker'](_0x4f048c,NodeFilter['SHOW_TEXT'],{'acceptNode':_0x40791f=>{var _0xa0104d;return!(null==(_0xa0104d=_0x40791f['parentElement'])?void 0x0:_0xa0104d['hasAttribute'](SKIP_ATTR))&&_0x40791f['textContent']['includes'](OPEN_TOKEN$1)&&_0x40791f['textContent']['includes'](CLOSE_TOKEN$1)&&0x1;}});for(;_0x207326=_0x557949['nextNode']();)_0x35ff0d['push'](_0x207326);return _0x35ff0d;}var txtNodesProcessor=function(_0x4842ea,_0x1d5104){getTextNodesWithTokens(_0x4842ea)['forEach'](_0x337cf8=>{let _0x25a5c2,_0x1238c2=[];for(;_0x337cf8['textContent']['includes'](CLOSE_TOKEN$1);)_0x337cf8['textContent']['startsWith'](OPEN_TOKEN$1)?(_0x25a5c2=_0x337cf8['textContent']['indexOf'](CLOSE_TOKEN$1)+CLOSE_TOKEN$1['length'],_0x337cf8['splitText'](_0x25a5c2),_0x1238c2['push'](_0x337cf8)):(_0x25a5c2=_0x337cf8['textContent']['indexOf'](OPEN_TOKEN$1),_0x337cf8['splitText'](_0x25a5c2)),_0x337cf8=_0x337cf8['nextSibling'];_0x1238c2['forEach'](_0x1d81ba=>{let _0x48d6ee=_0x1d81ba['textContent']['replace'](OPEN_TOKEN$1,'')['replace'](CLOSE_TOKEN$1,'');_0x1d81ba['textContent']='',_0x1d5104['sub'](_0x48d6ee,_0x18e6dd=>{_0x1d81ba['textContent']=_0x18e6dd;});});});},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(_0x14b9dd){return!(_0x14b9dd[0x0]!==DOUBLE_QUOTE&&_0x14b9dd[0x0]!==SINGLE_QUOTE||_0x14b9dd[_0x14b9dd['length']-0x1]!==DOUBLE_QUOTE&&_0x14b9dd[_0x14b9dd['length']-0x1]!==SINGLE_QUOTE);}function trimQuotes(_0x570cfa){return _0x570cfa[0x0]!==DOUBLE_QUOTE&&_0x570cfa[0x0]!==SINGLE_QUOTE||(_0x570cfa=_0x570cfa['slice'](0x1)),_0x570cfa[_0x570cfa['length']-0x1]!==DOUBLE_QUOTE&&_0x570cfa[_0x570cfa['length']-0x1]!==SINGLE_QUOTE||(_0x570cfa=_0x570cfa['slice'](0x0,-0x1)),_0x570cfa;}function escapeQuotes(_0x5f2326){let _0x6e4881='',_0x2d684c='';for(var _0x3ce71e=0x0;_0x3ce71e<_0x5f2326['length'];_0x3ce71e++){const _0x41f8dc=_0x5f2326[_0x3ce71e+0x1];'\x5c'===_0x5f2326[_0x3ce71e]&&'\x22'===_0x41f8dc?(_0x6e4881+='\x5c\x22',_0x3ce71e++):'\x22'===_0x5f2326[_0x3ce71e]&&'\x5c'!==_0x2d684c?_0x6e4881+='\x5c\x22':_0x6e4881+=_0x5f2326[_0x3ce71e],_0x2d684c=_0x5f2326[_0x3ce71e];}return _0x6e4881;}function parseCssPropertyValue(_0x5abf6f){let _0x4f89e6=_0x5abf6f;hasLeadingTrailingQuotes(_0x5abf6f)&&(_0x4f89e6=trimQuotes(_0x4f89e6),_0x4f89e6=_0x4f89e6['replace'](ESCAPED_PATTERN,(_0x8728db,_0x421968)=>String['fromCodePoint'](parseInt(_0x421968['trim'](),0x10))),_0x4f89e6=_0x4f89e6['replaceAll']('\x5c\x0a','\x5cn'),_0x4f89e6=escapeQuotes(_0x4f89e6),_0x4f89e6=DOUBLE_QUOTE+_0x4f89e6+DOUBLE_QUOTE);try{return JSON['parse'](_0x4f89e6);}catch(_0x137ba1){throw new Error('Failed\x20to\x20parse\x20CSS\x20property\x20value:\x20'+_0x4f89e6+'.\x20Original\x20input:\x20'+_0x5abf6f);}}var autoTagsCount=0x0,styleMutationObserver=null,styleMutationObserverCbList=null,_BaseComponent=class extends HTMLElement{constructor(){super(),__publicField(this,'updateCssData',()=>{var _0x3622ce;this['dropCssDataCache'](),null==(_0x3622ce=this['__boundCssProps'])||_0x3622ce['forEach'](_0x36fabe=>{let _0x19ffbf=this['getCssData'](this['__extractCssName'](_0x36fabe),!0x0);null!==_0x19ffbf&&this['$'][_0x36fabe]!==_0x19ffbf&&(this['$'][_0x36fabe]=_0x19ffbf);});}),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 _0x2901b7;this['__initialized']||(this['__initialized']=!0x0,null==(_0x2901b7=this['initCallback'])||_0x2901b7['call'](this));}['render'](_0x31a774,_0x4e6e19=this['renderShadow']){let _0x150aab;if(!_0x4e6e19&&!this['constructor']['__shadowStylesUrl']||this['shadowRoot']||this['attachShadow']({'mode':'open'}),this['allowCustomTemplate']){let _0x13383c=this['getAttribute'](DICT['USE_TPL']);if(_0x13383c){let _0x43fd6c=this['getRootNode'](),_0x24adce=(null==_0x43fd6c?void 0x0:_0x43fd6c['querySelector'](_0x13383c))||document['querySelector'](_0x13383c);_0x24adce?_0x31a774=_0x24adce['content']['cloneNode'](!0x0):console['warn']('Symbiote\x20template\x20\x22'+_0x13383c+'\x22\x20is\x20not\x20found...');}}if(this['processInnerHtml']){for(let _0x401e8b of this['tplProcessors'])_0x401e8b(this,this);}if(_0x31a774||this['constructor']['template']){if(this['constructor']['template']&&!this['constructor']['__tpl']&&(this['constructor']['__tpl']=document['createElement']('template'),this['constructor']['__tpl']['innerHTML']=this['constructor']['template']),(null==_0x31a774?void 0x0:_0x31a774['constructor'])===DocumentFragment)_0x150aab=_0x31a774;else{if((null==_0x31a774?void 0x0:_0x31a774['constructor'])===String){let _0x16a60d=document['createElement']('template');_0x16a60d['innerHTML']=_0x31a774,_0x150aab=_0x16a60d['content']['cloneNode'](!0x0);}else this['constructor']['__tpl']&&(_0x150aab=this['constructor']['__tpl']['content']['cloneNode'](!0x0));}for(let _0x5198b3 of this['tplProcessors'])_0x5198b3(_0x150aab,this);}let _0x20c9e5=()=>{_0x150aab&&(_0x4e6e19&&this['shadowRoot']['appendChild'](_0x150aab)||this['appendChild'](_0x150aab)),this['__initCallback']();};if(this['constructor']['__shadowStylesUrl']){_0x4e6e19=!0x0;let _0xb4b5dd=document['createElement']('link');_0xb4b5dd['rel']='stylesheet',_0xb4b5dd['href']=this['constructor']['__shadowStylesUrl'],_0xb4b5dd['onload']=_0x20c9e5,this['shadowRoot']['prepend'](_0xb4b5dd);}else _0x20c9e5();}['addTemplateProcessor'](_0x3452df){this['tplProcessors']['add'](_0x3452df);}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 _0x273b7a;let _0x43f8f0=(null==(_0x273b7a=this['getAttribute'](DICT['CTX_NAME_ATTR']))?void 0x0:_0x273b7a['trim']())||this['cssCtxName']||this['__cachedCtxName']||this['autoCtxName'];return this['__cachedCtxName']=_0x43f8f0,_0x43f8f0;}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'](_0xa379e3,_0x17f50a){let _0xd89108,_0x45ac78;if(_0xa379e3['startsWith'](DICT['EXT_DATA_CTX_PRFX']))_0xd89108=_0x17f50a['nodeCtx'],_0x45ac78=_0xa379e3['replace'](DICT['EXT_DATA_CTX_PRFX'],'');else{if(_0xa379e3['includes'](DICT['NAMED_DATA_CTX_SPLTR'])){let _0x3cf57d=_0xa379e3['split'](DICT['NAMED_DATA_CTX_SPLTR']);_0xd89108=Data['getCtx'](_0x3cf57d[0x0]),_0x45ac78=_0x3cf57d[0x1];}else _0xd89108=_0x17f50a['localCtx'],_0x45ac78=_0xa379e3;}return{'ctx':_0xd89108,'name':_0x45ac78};}['sub'](_0x23e069,_0x1c14f9,_0x1c4745=!0x0){let _0x22076c=_0x3a861c=>{this['isConnected']&&_0x1c14f9(_0x3a861c);},_0x49a4a4=_BaseComponent['__parseProp'](_0x23e069,this);_0x49a4a4['ctx']['has'](_0x49a4a4['name'])?this['allSubs']['add'](_0x49a4a4['ctx']['sub'](_0x49a4a4['name'],_0x22076c,_0x1c4745)):window['setTimeout'](()=>{this['allSubs']['add'](_0x49a4a4['ctx']['sub'](_0x49a4a4['name'],_0x22076c,_0x1c4745));});}['notify'](_0x402319){let _0x498748=_BaseComponent['__parseProp'](_0x402319,this);_0x498748['ctx']['notify'](_0x498748['name']);}['has'](_0x3e02af){let _0x29a42d=_BaseComponent['__parseProp'](_0x3e02af,this);return _0x29a42d['ctx']['has'](_0x29a42d['name']);}['add'](_0x5470a6,_0x20156d,_0x207518=!0x1){let _0x38ec3e=_BaseComponent['__parseProp'](_0x5470a6,this);_0x38ec3e['ctx']['add'](_0x38ec3e['name'],_0x20156d,_0x207518);}['add$'](_0xcf85e1,_0x4f5438=!0x1){for(let _0x5dbe2c in _0xcf85e1)this['add'](_0x5dbe2c,_0xcf85e1[_0x5dbe2c],_0x4f5438);}get['$'](){if(!this['__stateProxy']){let _0x1cfebf=Object['create'](null);this['__stateProxy']=new Proxy(_0x1cfebf,{'set':(_0x2a32d5,_0x40cb94,_0x134588)=>{let _0x5212f0=_BaseComponent['__parseProp'](_0x40cb94,this);return _0x5212f0['ctx']['pub'](_0x5212f0['name'],_0x134588),!0x0;},'get':(_0x26e06c,_0x1c4523)=>{let _0x12eb79=_BaseComponent['__parseProp'](_0x1c4523,this);return _0x12eb79['ctx']['read'](_0x12eb79['name']);}});}return this['__stateProxy'];}['set$'](_0x493a7b,_0x1d1a18=!0x1){for(let _0x15d4aa in _0x493a7b){let _0x45199d=_0x493a7b[_0x15d4aa],_0x36f329=[String,Number,Boolean];(_0x1d1a18||!_0x36f329['includes'](null==_0x45199d?void 0x0:_0x45199d['constructor'])||this['$'][_0x15d4aa]!==_0x45199d)&&(this['$'][_0x15d4aa]=_0x45199d);}}get['__ctxOwner'](){return this['ctxOwner']||this['hasAttribute'](DICT['CTX_OWNER_ATTR'])&&'false'!==this['getAttribute'](DICT['CTX_OWNER_ATTR']);}['__initDataCtx'](){let _0x22b480=this['constructor']['__attrDesc'];if(_0x22b480){for(let _0x2141c8 of Object['values'](_0x22b480))Object['keys'](this['init$'])['includes'](_0x2141c8)||(this['init$'][_0x2141c8]='');}for(let _0x3746c6 in this['init$'])if(_0x3746c6['startsWith'](DICT['EXT_DATA_CTX_PRFX']))this['nodeCtx']['add'](_0x3746c6['replace'](DICT['EXT_DATA_CTX_PRFX'],''),this['init$'][_0x3746c6],this['__ctxOwner']);else{if(_0x3746c6['includes'](DICT['NAMED_DATA_CTX_SPLTR'])){let _0x4e8546=_0x3746c6['split'](DICT['NAMED_DATA_CTX_SPLTR']),_0xb50d55=_0x4e8546[0x0]['trim'](),_0x17df4b=_0x4e8546[0x1]['trim']();if(_0xb50d55&&_0x17df4b){let _0x93ac21=Data['getCtx'](_0xb50d55,!0x1);_0x93ac21||(_0x93ac21=Data['registerCtx']({},_0xb50d55)),_0x93ac21['add'](_0x17df4b,this['init$'][_0x3746c6]);}}else this['localCtx']['add'](_0x3746c6,this['init$'][_0x3746c6]);}for(let _0x48feb3 in this['cssInit$'])this['bindCssData'](_0x48feb3,this['cssInit$'][_0x48feb3]);this['__dataCtxInitialized']=!0x0;}['connectedCallback'](){var _0x37bd32;if(this['isConnected']){if(this['__disconnectTimeout']&&window['clearTimeout'](this['__disconnectTimeout']),!this['connectedOnce']){let _0x507b47=null==(_0x37bd32=this['getAttribute'](DICT['CTX_NAME_ATTR']))?void 0x0:_0x37bd32['trim']();if(_0x507b47&&this['style']['setProperty'](DICT['CSS_CTX_PROP'],'\x27'+_0x507b47+'\x27'),this['__initDataCtx'](),this[DICT['SET_LATER_KEY']]){for(let _0x39ff80 in this[DICT['SET_LATER_KEY']])setNestedProp(this,_0x39ff80,this[DICT['SET_LATER_KEY']][_0x39ff80]);delete this[DICT['SET_LATER_KEY']];}this['initChildren']=[...this['childNodes']];for(let _0x4a6ee1 of tpl_processors_default)this['addTemplateProcessor'](_0x4a6ee1);if(this['pauseRender'])this['__initCallback']();else{if(this['constructor']['__rootStylesLink']){let _0x22689f=this['getRootNode']();if(!_0x22689f)return;if(null==_0x22689f?void 0x0:_0x22689f['querySelector']('link['+DICT['ROOT_STYLE_ATTR_NAME']+'=\x22'+this['constructor']['is']+'\x22]'))return void this['render']();let _0x32f896=this['constructor']['__rootStylesLink']['cloneNode'](!0x0);_0x32f896['setAttribute'](DICT['ROOT_STYLE_ATTR_NAME'],this['constructor']['is']),_0x32f896['onload']=()=>{this['render']();},_0x22689f['nodeType']===Node['DOCUMENT_NODE']?_0x22689f['head']['appendChild'](_0x32f896):_0x22689f['prepend'](_0x32f896);}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 _0x3a6a8b of this['allSubs'])_0x3a6a8b['remove'](),this['allSubs']['delete'](_0x3a6a8b);for(let _0x440da9 of this['tplProcessors'])this['tplProcessors']['delete'](_0x440da9);null==styleMutationObserverCbList||styleMutationObserverCbList['delete'](this['updateCssData']),(null==styleMutationObserverCbList?void 0x0:styleMutationObserverCbList['size'])||(null==styleMutationObserver||styleMutationObserver['disconnect'](),styleMutationObserver=null,styleMutationObserverCbList=null);},0x64)));}static['reg'](_0x161127,_0x29f9e4=!0x1){_0x161127||(autoTagsCount++,_0x161127=DICT['AUTO_TAG_PRFX']+'-'+autoTagsCount),this['__tag']=_0x161127;let _0x2b7e30=window['customElements']['get'](_0x161127);_0x2b7e30?_0x29f9e4||_0x2b7e30===this||console['warn'](['Element\x20with\x20tag\x20name\x20\x22'+_0x161127+'\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'](_0x161127,_0x29f9e4?class extends this{}:this);}static get['is'](){return this['__tag']||this['reg'](),this['__tag'];}static['bindAttributes'](_0x858b4a){this['observedAttributes']=Object['keys'](_0x858b4a),this['__attrDesc']=_0x858b4a;}['attributeChangedCallback'](_0x3b9bfb,_0x32d68d,_0x740296){var _0x164dac;if(_0x32d68d===_0x740296)return;let _0x107c43=null==(_0x164dac=this['constructor']['__attrDesc'])?void 0x0:_0x164dac[_0x3b9bfb];_0x107c43?this['__dataCtxInitialized']?this['$'][_0x107c43]=_0x740296:this['init$'][_0x107c43]=_0x740296:this[_0x3b9bfb]=_0x740296;}['getCssData'](_0x149ce3,_0xe479f0=!0x1){if(this['__cssDataCache']||(this['__cssDataCache']=Object['create'](null)),!Object['keys'](this['__cssDataCache'])['includes'](_0x149ce3)){this['__computedStyle']||(this['__computedStyle']=window['getComputedStyle'](this));let _0x6ffb9f=this['__computedStyle']['getPropertyValue'](_0x149ce3)['trim']();try{this['__cssDataCache'][_0x149ce3]=parseCssPropertyValue(_0x6ffb9f);}catch(_0x3a5db0){!_0xe479f0&&console['warn']('CSS\x20Data\x20error:\x20'+_0x149ce3),this['__cssDataCache'][_0x149ce3]=null;}}return this['__cssDataCache'][_0x149ce3];}['__extractCssName'](_0x25721b){return _0x25721b['split']('--')['map']((_0x5a3e3b,_0x39b761)=>0x0===_0x39b761?'':_0x5a3e3b)['join']('--');}['__initStyleAttrObserver'](){styleMutationObserverCbList||(styleMutationObserverCbList=new Set()),styleMutationObserverCbList['add'](this['updateCssData']),styleMutationObserver||(styleMutationObserver=new MutationObserver(_0x186f68=>{'attributes'===_0x186f68[0x0]['type']&&styleMutationObserverCbList['forEach'](_0x243bd3=>{_0x243bd3();});}))['observe'](document,{'childList':!0x0,'subtree':!0x0,'attributes':!0x0,'attributeFilter':['style']});}['bindCssData'](_0x1c3b13,_0x534d20=''){this['__boundCssProps']||(this['__boundCssProps']=new Set()),this['__boundCssProps']['add'](_0x1c3b13);let _0x4009d6=this['getCssData'](this['__extractCssName'](_0x1c3b13),!0x0);null===_0x4009d6&&(_0x4009d6=_0x534d20),this['add'](_0x1c3b13,_0x4009d6),this['__initStyleAttrObserver']();}['dropCssDataCache'](){this['__cssDataCache']=null,this['__computedStyle']=null;}['defineAccessor'](_0x513baa,_0x358a15,_0x513597){let _0x3702d5='__'+_0x513baa;this[_0x3702d5]=this[_0x513baa],Object['defineProperty'](this,_0x513baa,{'set':_0x55eeee=>{this[_0x3702d5]=_0x55eeee,_0x513597?window['setTimeout'](()=>{null==_0x358a15||_0x358a15(_0x55eeee);}):null==_0x358a15||_0x358a15(_0x55eeee);},'get':()=>this[_0x3702d5]}),this[_0x513baa]=this[_0x3702d5];}static set['shadowStyles'](_0x38c61e){let _0x43def6=new Blob([_0x38c61e],{'type':'text/css'});this['__shadowStylesUrl']=URL['createObjectURL'](_0x43def6);}static set['rootStyles'](_0x43c725){if(!this['__rootStylesLink']){let _0x33188d=new Blob([_0x43c725],{'type':'text/css'}),_0x118393=URL['createObjectURL'](_0x33188d),_0x3194e5=document['createElement']('link');_0x3194e5['href']=_0x118393,_0x3194e5['rel']='stylesheet',this['__rootStylesLink']=_0x3194e5;}}},BaseComponent=_BaseComponent;function applyStyles(_0x1535a1,_0x4c7acf){for(let _0x21732c in _0x4c7acf)_0x21732c['includes']('-')?_0x1535a1['style']['setProperty'](_0x21732c,_0x4c7acf[_0x21732c]):_0x1535a1['style'][_0x21732c]=_0x4c7acf[_0x21732c];}function applyAttributes(_0x4cc262,_0x2043cb){for(let _0x310dd6 in _0x2043cb)_0x2043cb[_0x310dd6]['constructor']===Boolean?_0x2043cb[_0x310dd6]?_0x4cc262['setAttribute'](_0x310dd6,''):_0x4cc262['removeAttribute'](_0x310dd6):_0x4cc262['setAttribute'](_0x310dd6,_0x2043cb[_0x310dd6]);}function create(_0xbaa907={'tag':'div'}){let _0x18f71f=document['createElement'](_0xbaa907['tag']);if(_0xbaa907['attributes']&&applyAttributes(_0x18f71f,_0xbaa907['attributes']),_0xbaa907['styles']&&applyStyles(_0x18f71f,_0xbaa907['styles']),_0xbaa907['properties']){for(let _0x563dde in _0xbaa907['properties'])_0x18f71f[_0x563dde]=_0xbaa907['properties'][_0x563dde];}return _0xbaa907['processors']&&_0xbaa907['processors']['forEach'](_0x4f7182=>{_0x4f7182(_0x18f71f);}),_0xbaa907['children']&&_0xbaa907['children']['forEach'](_0x1158a2=>{let _0x195136=create(_0x1158a2);_0x18f71f['appendChild'](_0x195136);}),_0x18f71f;}__publicField(BaseComponent,'template');var READY_EVENT_NAME='idb-store-ready',DEFAULT_DB_NAME='symbiote-db',UPD_EVENT_PREFIX='symbiote-idb-update_',DbInstance=class{['_notifyWhenReady'](_0x6d29ad=null){window['dispatchEvent'](new CustomEvent(READY_EVENT_NAME,{'detail':{'dbName':this['name'],'storeName':this['storeName'],'event':_0x6d29ad}}));}get['_updEventName'](){return UPD_EVENT_PREFIX+this['name'];}['_getUpdateEvent'](_0x32f110){return new CustomEvent(this['_updEventName'],{'detail':{'key':this['name'],'newValue':_0x32f110}});}['_notifySubscribers'](_0x163098){window['localStorage']['removeItem'](this['name']),window['localStorage']['setItem'](this['name'],_0x163098),window['dispatchEvent'](this['_getUpdateEvent'](_0x163098));}constructor(_0xc0ed9f,_0x57d14a){this['name']=_0xc0ed9f,this['storeName']=_0x57d14a,this['version']=0x1,this['request']=window['indexedDB']['open'](this['name'],this['version']),this['request']['onupgradeneeded']=_0x2fc4ce=>{this['db']=_0x2fc4ce['target']['result'],this['objStore']=this['db']['createObjectStore'](_0x57d14a,{'keyPath':'_key'}),this['objStore']['transaction']['oncomplete']=_0x5401ef=>{this['_notifyWhenReady'](_0x5401ef);};},this['request']['onsuccess']=_0x2bd6c9=>{this['db']=_0x2bd6c9['target']['result'],this['_notifyWhenReady'](_0x2bd6c9);},this['request']['onerror']=_0x400e1a=>{console['error'](_0x400e1a);},this['_subscriptionsMap']={},this['_updateHandler']=_0x3b9cbd=>{_0x3b9cbd['key']===this['name']&&this['_subscriptionsMap'][_0x3b9cbd['newValue']]&&this['_subscriptionsMap'][_0x3b9cbd['newValue']]['forEach'](async _0x45f44e=>{_0x45f44e(await this['read'](_0x3b9cbd['newValue']));});},this['_localUpdateHandler']=_0x4dc29e=>{this['_updateHandler'](_0x4dc29e['detail']);},window['addEventListener']('storage',this['_updateHandler']),window['addEventListener'](this['_updEventName'],this['_localUpdateHandler']);}['read'](_0x568f93){let _0xabbc5a=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['get'](_0x568f93);return new Promise((_0x350987,_0x2ed9ec)=>{_0xabbc5a['onsuccess']=_0x1d6ed6=>{var _0x31043c;(null==(_0x31043c=_0x1d6ed6['target']['result'])?void 0x0:_0x31043c['_value'])?_0x350987(_0x1d6ed6['target']['result']['_value']):(_0x350987(null),console['warn']('IDB:\x20cannot\x20read\x20\x22'+_0x568f93+'\x22'));},_0xabbc5a['onerror']=_0x1a6a1d=>{_0x2ed9ec(_0x1a6a1d);};});}['write'](_0x4c431f,_0x182615,_0xf2fdd5=!0x1){let _0x4c15ff={'_key':_0x4c431f,'_value':_0x182615},_0x324dfa=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['put'](_0x4c15ff);return new Promise((_0x1a0aa1,_0x18f8da)=>{_0x324dfa['onsuccess']=_0x4254e6=>{_0xf2fdd5||this['_notifySubscribers'](_0x4c431f),_0x1a0aa1(_0x4254e6['target']['result']);},_0x324dfa['onerror']=_0x2e7210=>{_0x18f8da(_0x2e7210);};});}['delete'](_0x559f68,_0x11ac1d=!0x1){let _0x134242=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['delete'](_0x559f68);return new Promise((_0x29d01f,_0x514d44)=>{_0x134242['onsuccess']=_0x198012=>{_0x11ac1d||this['_notifySubscribers'](_0x559f68),_0x29d01f(_0x198012);},_0x134242['onerror']=_0x31044b=>{_0x514d44(_0x31044b);};});}['getAll'](){let _0x5e7ba0=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['getAll']();return new Promise((_0x32d39e,_0x1cab3c)=>{_0x5e7ba0['onsuccess']=_0x23fb36=>{let _0x5e2f9b=_0x23fb36['target']['result'];_0x32d39e(_0x5e2f9b['map'](_0x3969b3=>_0x3969b3['_value']));},_0x5e7ba0['onerror']=_0x2d481e=>{_0x1cab3c(_0x2d481e);};});}['subscribe'](_0x2e13ac,_0x5b4584){this['_subscriptionsMap'][_0x2e13ac]||(this['_subscriptionsMap'][_0x2e13ac]=new Set());let _0x36dfe2=this['_subscriptionsMap'][_0x2e13ac];return _0x36dfe2['add'](_0x5b4584),{'remove':()=>{_0x36dfe2['delete'](_0x5b4584),_0x36dfe2['size']||delete this['_subscriptionsMap'][_0x2e13ac];}};}['stop'](){window['removeEventListener']('storage',this['_updateHandler']),this['_subscriptionsMap']=null,IDB['clear'](this['name']);}},IDB=class{static get['readyEventName'](){return READY_EVENT_NAME;}static['open'](_0x3d2731=DEFAULT_DB_NAME,_0x1382e2='store'){let _0x21f907=_0x3d2731+'/'+_0x1382e2;return this['_reg'][_0x21f907]||(this['_reg'][_0x21f907]=new DbInstance(_0x3d2731,_0x1382e2)),this['_reg'][_0x21f907];}static['clear'](_0x3599d5){window['indexedDB']['deleteDatabase'](_0x3599d5);for(let _0x101062 in this['_reg'])_0x101062['split']('/')[0x0]===_0x3599d5&&delete this['_reg'][_0x101062];}};function isObject(_0xf9d752){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0xf9d752);}__publicField(IDB,'_reg',Object['create'](null));const SEPARATOR=/\W|_/g;function camelizeString(_0x5685d5){return _0x5685d5['split'](SEPARATOR)['map']((_0x25db25,_0x644f4)=>_0x25db25['charAt'](0x0)[_0x644f4>0x0?'toUpperCase':'toLowerCase']()+_0x25db25['slice'](0x1))['join']('');}function camelizeArrayItems(_0x1c2c15,{ignoreKeys:_0xffbba4}={'ignoreKeys':[]}){return Array['isArray'](_0x1c2c15)?_0x1c2c15['map'](_0x2e19e4=>camelizeKeys(_0x2e19e4,{'ignoreKeys':_0xffbba4})):_0x1c2c15;}function camelizeKeys(_0x532b49,{ignoreKeys:_0x1422e7}={'ignoreKeys':[]}){if(Array['isArray'](_0x532b49))return camelizeArrayItems(_0x532b49,{'ignoreKeys':_0x1422e7});if(!isObject(_0x532b49))return _0x532b49;const _0x25e1da={};for(const _0x4029eb of Object['keys'](_0x532b49)){let _0x3d173a=_0x532b49[_0x4029eb];_0x1422e7['includes'](_0x4029eb)?_0x25e1da[_0x4029eb]=_0x3d173a:(isObject(_0x3d173a)?_0x3d173a=camelizeKeys(_0x3d173a,{'ignoreKeys':_0x1422e7}):Array['isArray'](_0x3d173a)&&(_0x3d173a=camelizeArrayItems(_0x3d173a,{'ignoreKeys':_0x1422e7})),_0x25e1da[camelizeString(_0x4029eb)]=_0x3d173a);}return _0x25e1da;}const delay=_0x2a1e94=>new Promise(_0x35301b=>setTimeout(_0x35301b,_0x2a1e94));function getUserAgent$1({libraryName:_0x187a3f,libraryVersion:_0x2fd7a5,userAgent:_0x1dfe25,publicKey:_0x5347fa='',integration:_0x2bb856=''}){const _0x35f4c2='JavaScript';if('string'==typeof _0x1dfe25)return _0x1dfe25;if('function'==typeof _0x1dfe25)return _0x1dfe25({'publicKey':_0x5347fa,'libraryName':_0x187a3f,'libraryVersion':_0x2fd7a5,'languageName':_0x35f4c2,'integration':_0x2bb856});return[_0x187a3f,_0x2fd7a5,_0x5347fa]['filter'](Boolean)['join']('/')+'\x20('+[_0x35f4c2,_0x2bb856]['filter'](Boolean)['join'](';\x20')+')';}const defaultOptions={'factor':0x2,'time':0x64};function retrier(_0x5c5b1f,_0x14905a=defaultOptions){let _0x5a9d6f=0x0;return function _0x189e98(_0x4684fb){const _0x3e7df1=Math['round'](_0x14905a['time']*_0x14905a['factor']**_0x5a9d6f);return _0x4684fb({'attempt':_0x5a9d6f,'retry':_0x252c73=>delay(_0x252c73??_0x3e7df1)['then'](()=>(_0x5a9d6f+=0x1,_0x189e98(_0x4684fb)))});}(_0x5c5b1f);}class UploadcareError extends Error{}class NetworkError extends UploadcareError{['originalProgressEvent'];constructor(_0x27faf3){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,NetworkError['prototype']),this['originalProgressEvent']=_0x27faf3;}}const onCancel=(_0x42fae2,_0x2bb41c)=>{_0x42fae2&&(_0x42fae2['aborted']?Promise['resolve']()['then'](_0x2bb41c):_0x42fae2['addEventListener']('abort',()=>_0x2bb41c(),{'once':!0x0}));};class CancelError extends UploadcareError{['isCancel']=!0x0;constructor(_0x3b1b6e='Request\x20canceled'){super(_0x3b1b6e),this['name']='CancelError',Object['setPrototypeOf'](this,CancelError['prototype']);}}const DEFAULT_INTERVAL=0x1f4,poll=({check:_0x2c463e,interval:_0x2114e0=DEFAULT_INTERVAL,timeout:_0xc1f04e,signal:_0x3d7c43})=>new Promise((_0x2a1023,_0x546b38)=>{let _0x50d803,_0x514a5d;onCancel(_0x3d7c43,()=>{_0x50d803&&clearTimeout(_0x50d803),_0x546b38(new CancelError('Poll\x20cancelled'));}),_0xc1f04e&&(_0x514a5d=setTimeout(()=>{_0x50d803&&clearTimeout(_0x50d803),_0x546b38(new CancelError('Timed\x20out'));},_0xc1f04e));const _0x33abfd=()=>{try{Promise['resolve'](_0x2c463e(_0x3d7c43))['then'](_0xc32436=>{_0xc32436?(_0x514a5d&&clearTimeout(_0x514a5d),_0x2a1023(_0xc32436)):_0x50d803=setTimeout(_0x33abfd,_0x2114e0);})['catch'](_0xab8eb1=>{_0x514a5d&&clearTimeout(_0x514a5d),_0x546b38(_0xab8eb1);});}catch(_0x2034cb){_0x514a5d&&clearTimeout(_0x514a5d),_0x546b38(_0x2034cb);}};_0x50d803=setTimeout(_0x33abfd,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:_0xb27337,url:_0x2b4d85,data:_0x4221f2,headers:_0xbe3205={},signal:_0x3a9e96,onProgress:_0x10da9a})=>new Promise((_0xf90a32,_0x2cab95)=>{const _0x4d1937=new XMLHttpRequest(),_0x3f4527=_0xb27337?.['toUpperCase']()||'GET';let _0x31e82f=!0x1;_0x4d1937['open'](_0x3f4527,_0x2b4d85,!0x0),_0xbe3205&&Object['entries'](_0xbe3205)['forEach'](_0x3fd102=>{const [_0x1f54d1,_0x1f717a]=_0x3fd102;void 0x0!==_0x1f717a&&!Array['isArray'](_0x1f717a)&&_0x4d1937['setRequestHeader'](_0x1f54d1,_0x1f717a);}),_0x4d1937['responseType']='text',onCancel(_0x3a9e96,()=>{_0x31e82f=!0x0,_0x4d1937['abort'](),_0x2cab95(new CancelError());}),_0x4d1937['onload']=()=>{if(0xc8!=_0x4d1937['status'])_0x2cab95(new Error('Error\x20'+_0x4d1937['status']+':\x20'+_0x4d1937['statusText']));else{const _0x32919b={'method':_0x3f4527,'url':_0x2b4d85,'data':_0x4221f2,'headers':_0xbe3205||void 0x0,'signal':_0x3a9e96,'onProgress':_0x10da9a},_0x405766=_0x4d1937['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x261a92={};_0x405766['forEach'](function(_0x5c4e6f){const _0x1d72c1=_0x5c4e6f['split'](':\x20'),_0xac3dfc=_0x1d72c1['shift'](),_0x1ebcd1=_0x1d72c1['join'](':\x20');_0xac3dfc&&void 0x0!==_0xac3dfc&&(_0x261a92[_0xac3dfc]=_0x1ebcd1);});const _0x5a632c=_0x4d1937['response'],_0xb2059e=_0x4d1937['status'];_0xf90a32({'request':_0x32919b,'data':_0x5a632c,'headers':_0x261a92,'status':_0xb2059e});}},_0x4d1937['onerror']=_0x5b831a=>{_0x31e82f||_0x2cab95(new NetworkError(_0x5b831a));},_0x10da9a&&'function'==typeof _0x10da9a&&(_0x4d1937['upload']['onprogress']=_0x5535b2=>{_0x5535b2['lengthComputable']?_0x10da9a({'isComputable':!0x0,'value':_0x5535b2['loaded']/_0x5535b2['total']}):_0x10da9a({'isComputable':!0x1});}),_0x4221f2?_0x4d1937['send'](_0x4221f2):_0x4d1937['send']();});function identity(_0x25097a,..._0x17e036){return _0x25097a;}const getFileOptions=({name:_0x31f9d8})=>_0x31f9d8?[_0x31f9d8]:[],transformFile=identity;var getFormData=()=>new FormData();const isBuffer=_0x238e03=>!0x1,isBlob=_0x5cbd92=>'undefined'!=typeof Blob&&_0x5cbd92 instanceof Blob,isFile=_0x1e137d=>'undefined'!=typeof File&&_0x1e137d instanceof File,isReactNativeAsset=_0x51507e=>!!_0x51507e&&'object'==typeof _0x51507e&&!Array['isArray'](_0x51507e)&&'uri'in _0x51507e&&'string'==typeof _0x51507e['uri'],isFileData=_0x4c27fd=>isBlob(_0x4c27fd)||isFile(_0x4c27fd)||isBuffer()||isReactNativeAsset(_0x4c27fd),isSimpleValue=_0x4aa16c=>'string'==typeof _0x4aa16c||'number'==typeof _0x4aa16c||void 0x0===_0x4aa16c,isObjectValue=_0x12b9ad=>!!_0x12b9ad&&'object'==typeof _0x12b9ad&&!Array['isArray'](_0x12b9ad),isFileValue=_0x4b0090=>!!_0x4b0090&&'object'==typeof _0x4b0090&&'data'in _0x4b0090&&isFileData(_0x4b0090['data']);function collectParams(_0x3bb5f3,_0x420a80,_0x2dedf1){if(Array['isArray'](_0x2dedf1)){for(const _0x301ca2 of _0x2dedf1)collectParams(_0x3bb5f3,_0x420a80+'[]',_0x301ca2);}else{if(isFileValue(_0x2dedf1)){const {name:_0x21eca8,contentType:_0x3ab263}=_0x2dedf1,_0x7167b4=transformFile(_0x2dedf1['data'],_0x21eca8,_0x3ab263??defaultContentType),_0x13403f=getFileOptions({'name':_0x21eca8});_0x3bb5f3['push']([_0x420a80,_0x7167b4,..._0x13403f]);}else{if(isObjectValue(_0x2dedf1)){for(const [_0x270694,_0x3ec1cc]of Object['entries'](_0x2dedf1))void 0x0!==_0x3ec1cc&&_0x3bb5f3['push']([_0x420a80+'['+_0x270694+']',String(_0x3ec1cc)]);}else isSimpleValue(_0x2dedf1)&&_0x2dedf1&&_0x3bb5f3['push']([_0x420a80,_0x2dedf1['toString']()]);}}}function getFormDataParams(_0x37e420){const _0x598735=[];for(const [_0x2df9fd,_0xd1684c]of Object['entries'](_0x37e420))collectParams(_0x598735,_0x2df9fd,_0xd1684c);return _0x598735;}function buildFormData(_0x592110){const _0xb19d5d=getFormData(),_0xa861bc=getFormDataParams(_0x592110);for(const _0x21f11d of _0xa861bc){const [_0x3423bc,_0x4f03c2,..._0x45e8f4]=_0x21f11d;_0xb19d5d['append'](_0x3423bc,_0x4f03c2,..._0x45e8f4);}return _0xb19d5d;}class UploadError extends UploadcareError{['code'];['request'];['response'];['headers'];constructor(_0x32766a,_0x4ca249,_0x295cea,_0x2458fe,_0x41a6dd){super(),this['name']='UploadError',this['message']=_0x32766a,this['code']=_0x4ca249,this['request']=_0x295cea,this['response']=_0x2458fe,this['headers']=_0x41a6dd,Object['setPrototypeOf'](this,UploadError['prototype']);}}const buildSearchParams=_0x2a1a15=>{const _0x110616=new URLSearchParams();for(const [_0x2ee9ad,_0x16acdc]of Object['entries'](_0x2a1a15))_0x16acdc&&'object'==typeof _0x16acdc&&!Array['isArray'](_0x16acdc)?Object['entries'](_0x16acdc)['filter'](_0xfbb29=>_0xfbb29[0x1]??!0x1)['forEach'](_0x15c10e=>_0x110616['set'](_0x2ee9ad+'['+_0x15c10e[0x0]+']',String(_0x15c10e[0x1]))):Array['isArray'](_0x16acdc)?_0x16acdc['forEach'](_0x5af7b2=>{_0x110616['append'](_0x2ee9ad+'[]',_0x5af7b2);}):'string'==typeof _0x16acdc&&_0x16acdc?_0x110616['set'](_0x2ee9ad,_0x16acdc):'number'==typeof _0x16acdc&&_0x110616['set'](_0x2ee9ad,_0x16acdc['toString']());return _0x110616['toString']();},getUrl=(_0xb373c0,_0x13c44a,_0x467397)=>{const _0x1ca918=new URL(_0xb373c0);return _0x1ca918['pathname']=(_0x1ca918['pathname']+_0x13c44a)['replace']('//','/'),_0x467397&&(_0x1ca918['search']=buildSearchParams(_0x467397)),_0x1ca918['toString']();};var version$1='6.18.2';const LIBRARY_NAME='UploadcareUploadClient',LIBRARY_VERSION=version$1;function getUserAgent(_0x9e9c0c){return getUserAgent$1({'libraryName':LIBRARY_NAME,'libraryVersion':LIBRARY_VERSION,..._0x9e9c0c});}const REQUEST_WAS_THROTTLED_CODE='RequestThrottledError',DEFAULT_RETRY_AFTER_TIMEOUT=0x3a98,DEFAULT_NETWORK_ERROR_TIMEOUT=0x3e8;function getTimeoutFromThrottledRequest(_0x5dd488){const {headers:_0x4ea7d1}=_0x5dd488||{};if(!_0x4ea7d1||'string'!=typeof _0x4ea7d1['retry-after'])return DEFAULT_RETRY_AFTER_TIMEOUT;const _0x105e59=parseInt(_0x4ea7d1['retry-after'],0xa);return Number['isFinite'](_0x105e59)?0x3e8*_0x105e59:DEFAULT_RETRY_AFTER_TIMEOUT;}function retryIfFailed(_0x122579,_0x5ab13d){const {retryThrottledRequestMaxTimes:_0x102642,retryNetworkErrorMaxTimes:_0x3d2b3a}=_0x5ab13d;return retrier(({attempt:_0x22344c,retry:_0x109ce2})=>_0x122579()['catch'](_0x540008=>{if('response'in _0x540008&&_0x540008?.['code']===REQUEST_WAS_THROTTLED_CODE&&_0x22344c<_0x102642)return _0x109ce2(getTimeoutFromThrottledRequest(_0x540008));if(_0x540008 instanceof NetworkError&&_0x22344c<_0x3d2b3a)return _0x109ce2((_0x22344c+0x1)*DEFAULT_NETWORK_ERROR_TIMEOUT);throw _0x540008;}));}const getContentType=_0x51e2eb=>{let _0x278765='';return(isBlob(_0x51e2eb)||isFile(_0x51e2eb)||isReactNativeAsset(_0x51e2eb))&&(_0x278765=_0x51e2eb['type']),_0x278765||defaultContentType;},getFileName=_0x21f666=>{let _0x260cb9='';return isFile(_0x21f666)&&_0x21f666['name']?_0x260cb9=_0x21f666['name']:isBlob(_0x21f666)||isBuffer()?_0x260cb9='':isReactNativeAsset(_0x21f666)&&_0x21f666['name']&&(_0x260cb9=_0x21f666['name']),_0x260cb9||defaultFilename;};function getStoreValue(_0x1b3596){return void 0x0===_0x1b3596||'auto'===_0x1b3596?'auto':_0x1b3596?'1':'0';}function base(_0x4f9827,{publicKey:_0x452684,fileName:_0x177269,contentType:_0x39eb81,baseURL:_0x38ab81=defaultSettings['baseURL'],secureSignature:_0x45a383,secureExpire:_0xb00d34,store:_0x4d75dd,signal:_0x5bb35a,onProgress:_0x4027d8,source:_0x239437='local',integration:_0x312823,userAgent:_0x25c793,retryThrottledRequestMaxTimes:_0x41b8ff=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x44bcbc=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x51cb8d}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x38ab81,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x452684,'integration':_0x312823,'userAgent':_0x25c793})},'data':buildFormData({'file':{'data':_0x4f9827,'name':_0x177269||getFileName(_0x4f9827),'contentType':_0x39eb81||getContentType(_0x4f9827)},'UPLOADCARE_PUB_KEY':_0x452684,'UPLOADCARE_STORE':getStoreValue(_0x4d75dd),'signature':_0x45a383,'expire':_0xb00d34,'source':_0x239437,'metadata':_0x51cb8d}),'signal':_0x5bb35a,'onProgress':_0x4027d8})['then'](({data:_0x22fdc5,headers:_0x411ae,request:_0x2e6c7b})=>{const _0x20a19a=camelizeKeys(JSON['parse'](_0x22fdc5));if('error'in _0x20a19a)throw new UploadError(_0x20a19a['error']['content'],_0x20a19a['error']['errorCode'],_0x2e6c7b,_0x20a19a,_0x411ae);return _0x20a19a;}),{'retryNetworkErrorMaxTimes':_0x44bcbc,'retryThrottledRequestMaxTimes':_0x41b8ff});}var TypeEnum,Status;function fromUrl(_0x5aaf4b,{publicKey:_0x53532e,baseURL:_0x5a9201=defaultSettings['baseURL'],store:_0x5c2b66,fileName:_0x2f669d,checkForUrlDuplicates:_0x4fcc10,saveUrlForRecurrentUploads:_0xf04d54,secureSignature:_0x2cc078,secureExpire:_0x591f20,source:_0x3dda55='url',signal:_0x5c2319,integration:_0x466e9b,userAgent:_0x5c10e6,retryThrottledRequestMaxTimes:_0x2db47f=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x34130f=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x417fa6}){return retryIfFailed(()=>request({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x53532e,'integration':_0x466e9b,'userAgent':_0x5c10e6})},'url':getUrl(_0x5a9201,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x53532e,'source_url':_0x5aaf4b,'store':getStoreValue(_0x5c2b66),'filename':_0x2f669d,'check_URL_duplicates':_0x4fcc10?0x1:void 0x0,'save_URL_duplicates':_0xf04d54?0x1:void 0x0,'signature':_0x2cc078,'expire':_0x591f20,'source':_0x3dda55,'metadata':_0x417fa6}),'signal':_0x5c2319})['then'](({data:_0x5e034c,headers:_0x43ba37,request:_0xa7270d})=>{const _0x47c948=camelizeKeys(JSON['parse'](_0x5e034c));if('error'in _0x47c948)throw new UploadError(_0x47c948['error']['content'],_0x47c948['error']['errorCode'],_0xa7270d,_0x47c948,_0x43ba37);return _0x47c948;}),{'retryNetworkErrorMaxTimes':_0x34130f,'retryThrottledRequestMaxTimes':_0x2db47f});}!function(_0x4817d6){_0x4817d6['Token']='token',_0x4817d6['FileInfo']='file_info';}(TypeEnum||(TypeEnum={})),function(_0x26a81f){_0x26a81f['Unknown']='unknown',_0x26a81f['Waiting']='waiting',_0x26a81f['Progress']='progress',_0x26a81f['Error']='error',_0x26a81f['Success']='success';}(Status||(Status={}));const isErrorResponse=_0x4af408=>'status'in _0x4af408&&_0x4af408['status']===Status['Error'];function fromUrlStatus(_0x25fd4f,{publicKey:_0x2a425b,baseURL:_0x27446f=defaultSettings['baseURL'],signal:_0x1075e2,integration:_0x12c192,userAgent:_0x199071,retryThrottledRequestMaxTimes:_0x589a9c=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x2730ec=defaultSettings['retryNetworkErrorMaxTimes']}={}){return retryIfFailed(()=>request({'method':'GET','headers':_0x2a425b?{'X-UC-User-Agent':getUserAgent({'publicKey':_0x2a425b,'integration':_0x12c192,'userAgent':_0x199071})}:void 0x0,'url':getUrl(_0x27446f,'/from_url/status/',{'jsonerrors':0x1,'token':_0x25fd4f}),'signal':_0x1075e2})['then'](({data:_0x14018c,headers:_0x1277f4,request:_0x3d8a9f})=>{const _0x281353=camelizeKeys(JSON['parse'](_0x14018c));if('error'in _0x281353&&!isErrorResponse(_0x281353))throw new UploadError(_0x281353['error']['content'],_0x281353['error']['errorCode'],_0x3d8a9f,_0x281353,_0x1277f4);return _0x281353;}),{'retryNetworkErrorMaxTimes':_0x2730ec,'retryThrottledRequestMaxTimes':_0x589a9c});}function group(_0x5703bd,{publicKey:_0x47c902,baseURL:_0x140662=defaultSettings['baseURL'],jsonpCallback:_0x8cd52c,secureSignature:_0x5a5d8d,secureExpire:_0x123626,signal:_0x41529c,source:_0x5380df,integration:_0x3001f3,userAgent:_0x276f54,retryThrottledRequestMaxTimes:_0x3ec783=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x296fb4=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x47c902,'integration':_0x3001f3,'userAgent':_0x276f54})},'url':getUrl(_0x140662,'/group/',{'jsonerrors':0x1}),'data':buildFormData({'files':_0x5703bd,'callback':_0x8cd52c,'pub_key':_0x47c902,'signature':_0x5a5d8d,'expire':_0x123626,'source':_0x5380df}),'signal':_0x41529c})['then'](({data:_0x194ed3,headers:_0xb97dba,request:_0x266ba5})=>{const _0xd41047=camelizeKeys(JSON['parse'](_0x194ed3));if('error'in _0xd41047)throw new UploadError(_0xd41047['error']['content'],_0xd41047['error']['errorCode'],_0x266ba5,_0xd41047,_0xb97dba);return _0xd41047;}),{'retryNetworkErrorMaxTimes':_0x296fb4,'retryThrottledRequestMaxTimes':_0x3ec783});}function info(_0x2f866e,{publicKey:_0x1de801,baseURL:_0x88ed53=defaultSettings['baseURL'],signal:_0x10d9d3,source:_0x365b4e,integration:_0x193f54,userAgent:_0x20fa7a,retryThrottledRequestMaxTimes:_0x8e1f56=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x32bcbb=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'GET','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x1de801,'integration':_0x193f54,'userAgent':_0x20fa7a})},'url':getUrl(_0x88ed53,'/info/',{'jsonerrors':0x1,'pub_key':_0x1de801,'file_id':_0x2f866e,'source':_0x365b4e}),'signal':_0x10d9d3})['then'](({data:_0x19c19d,headers:_0x3f1d5d,request:_0x12f111})=>{const _0x46f96b=camelizeKeys(JSON['parse'](_0x19c19d));if('error'in _0x46f96b)throw new UploadError(_0x46f96b['error']['content'],_0x46f96b['error']['errorCode'],_0x12f111,_0x46f96b,_0x3f1d5d);return _0x46f96b;}),{'retryThrottledRequestMaxTimes':_0x8e1f56,'retryNetworkErrorMaxTimes':_0x32bcbb});}function multipartStart(_0x416a26,{publicKey:_0x22c33b,contentType:_0x52a025,fileName:_0x4f4708,multipartChunkSize:_0x44bfcf=defaultSettings['multipartChunkSize'],baseURL:_0x758609='',secureSignature:_0x59f8f6,secureExpire:_0x10ff6e,store:_0x49b1ff,signal:_0x262507,source:_0x4e8645='local',integration:_0x2a114d,userAgent:_0x470a57,retryThrottledRequestMaxTimes:_0xb4046f=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4d9c45=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x523188}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x758609,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x22c33b,'integration':_0x2a114d,'userAgent':_0x470a57})},'data':buildFormData({'filename':_0x4f4708||defaultFilename,'size':_0x416a26,'content_type':_0x52a025||defaultContentType,'part_size':_0x44bfcf,'UPLOADCARE_STORE':getStoreValue(_0x49b1ff),'UPLOADCARE_PUB_KEY':_0x22c33b,'signature':_0x59f8f6,'expire':_0x10ff6e,'source':_0x4e8645,'metadata':_0x523188}),'signal':_0x262507})['then'](({data:_0x340c0a,headers:_0x58ba4d,request:_0x2fb341})=>{const _0x25629d=camelizeKeys(JSON['parse'](_0x340c0a));if('error'in _0x25629d)throw new UploadError(_0x25629d['error']['content'],_0x25629d['error']['errorCode'],_0x2fb341,_0x25629d,_0x58ba4d);return _0x25629d['parts']=Object['keys'](_0x25629d['parts'])['map'](_0x537aa8=>_0x25629d['parts'][Number(_0x537aa8)]),_0x25629d;}),{'retryThrottledRequestMaxTimes':_0xb4046f,'retryNetworkErrorMaxTimes':_0x4d9c45});}function multipartUpload(_0x2f01d2,_0x5a50a1,{contentType:_0x57c0d5,signal:_0x49ded2,onProgress:_0x59264e,retryThrottledRequestMaxTimes:_0x5a3f1a=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x40df98=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'PUT','url':_0x5a50a1,'data':_0x2f01d2,'onProgress':_0x59264e,'signal':_0x49ded2,'headers':{'Content-Type':_0x57c0d5||defaultContentType}})['then'](_0x5aa293=>(_0x59264e&&_0x59264e({'isComputable':!0x0,'value':0x1}),_0x5aa293))['then'](({status:_0x1ad858})=>({'code':_0x1ad858})),{'retryThrottledRequestMaxTimes':_0x5a3f1a,'retryNetworkErrorMaxTimes':_0x40df98});}function multipartComplete(_0x54ee3b,{publicKey:_0x9ab83a,baseURL:_0x4f3e5e=defaultSettings['baseURL'],source:_0x2eca55='local',signal:_0x59c41a,integration:_0x8d4864,userAgent:_0x47ac69,retryThrottledRequestMaxTimes:_0x13ae4d=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4035cc=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x4f3e5e,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x9ab83a,'integration':_0x8d4864,'userAgent':_0x47ac69})},'data':buildFormData({'uuid':_0x54ee3b,'UPLOADCARE_PUB_KEY':_0x9ab83a,'source':_0x2eca55}),'signal':_0x59c41a})['then'](({data:_0x1759d9,headers:_0x24a4ec,request:_0x16646b})=>{const _0x842d85=camelizeKeys(JSON['parse'](_0x1759d9));if('error'in _0x842d85)throw new UploadError(_0x842d85['error']['content'],_0x842d85['error']['errorCode'],_0x16646b,_0x842d85,_0x24a4ec);return _0x842d85;}),{'retryThrottledRequestMaxTimes':_0x13ae4d,'retryNetworkErrorMaxTimes':_0x4035cc});}function isReadyPoll(_0x1a0676,{publicKey:_0x3810b7,baseURL:_0x3eba23,source:_0x1346e4,integration:_0x4ce40d,userAgent:_0x2a79f8,retryThrottledRequestMaxTimes:_0x555ee4,retryNetworkErrorMaxTimes:_0x3e4d8f,signal:_0x1fdc79,onProgress:_0x4f90d1}){return poll({'check':_0x1b28ba=>info(_0x1a0676,{'publicKey':_0x3810b7,'baseURL':_0x3eba23,'signal':_0x1b28ba,'source':_0x1346e4,'integration':_0x4ce40d,'userAgent':_0x2a79f8,'retryThrottledRequestMaxTimes':_0x555ee4,'retryNetworkErrorMaxTimes':_0x3e4d8f})['then'](_0x29aeb7=>_0x29aeb7['isReady']?_0x29aeb7:(_0x4f90d1&&_0x4f90d1({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x1fdc79});}function isGroupFileInfo(_0x402c61){return'defaultEffects'in _0x402c61;}class UploadcareFile{['uuid'];['name'];['size'];['isStored'];['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];['contentInfo'];['metadata'];['s3Bucket'];['defaultEffects']=null;constructor(_0x23b468,{baseCDN:_0x5b4ecd=defaultSettings['baseCDN'],fileName:_0x2c10a0}={}){const {uuid:_0x4c003b,s3Bucket:_0x2da19c}=_0x23b468,_0x3c530b=getUrl(_0x5b4ecd,_0x4c003b+'/'),_0x3d32cb=_0x2da19c?getUrl('https://'+_0x2da19c+'.s3.amazonaws.com/',_0x4c003b+'/'+_0x23b468['filename']):null;this['uuid']=_0x4c003b,this['name']=_0x2c10a0||_0x23b468['filename'],this['size']=_0x23b468['size'],this['isStored']=_0x23b468['isStored'],this['isImage']=_0x23b468['isImage'],this['mimeType']=_0x23b468['mimeType'],this['cdnUrl']=_0x3c530b,this['originalFilename']=_0x23b468['originalFilename'],this['imageInfo']=_0x23b468['imageInfo'],this['videoInfo']=_0x23b468['videoInfo'],this['contentInfo']=_0x23b468['contentInfo'],this['metadata']=_0x23b468['metadata']||null,this['s3Bucket']=_0x2da19c||null,this['s3Url']=_0x3d32cb,isGroupFileInfo(_0x23b468)&&(this['defaultEffects']=_0x23b468['defaultEffects']);}}const uploadDirect=(_0x153a58,{publicKey:_0x50444f,fileName:_0x361083,baseURL:_0x96ba0c,secureSignature:_0x2a220d,secureExpire:_0x2c9e08,store:_0x347984,contentType:_0x6556c2,signal:_0x3a6668,onProgress:_0x4e2eae,source:_0x397ee2,integration:_0x2fe5a8,userAgent:_0x4f12aa,retryThrottledRequestMaxTimes:_0x4495de,retryNetworkErrorMaxTimes:_0x326acb,baseCDN:_0x3baaba,metadata:_0x352618})=>base(_0x153a58,{'publicKey':_0x50444f,'fileName':_0x361083,'contentType':_0x6556c2,'baseURL':_0x96ba0c,'secureSignature':_0x2a220d,'secureExpire':_0x2c9e08,'store':_0x347984,'signal':_0x3a6668,'onProgress':_0x4e2eae,'source':_0x397ee2,'integration':_0x2fe5a8,'userAgent':_0x4f12aa,'retryThrottledRequestMaxTimes':_0x4495de,'retryNetworkErrorMaxTimes':_0x326acb,'metadata':_0x352618})['then'](({file:_0x57902c})=>isReadyPoll(_0x57902c,{'publicKey':_0x50444f,'baseURL':_0x96ba0c,'source':_0x397ee2,'integration':_0x2fe5a8,'userAgent':_0x4f12aa,'retryThrottledRequestMaxTimes':_0x4495de,'retryNetworkErrorMaxTimes':_0x326acb,'onProgress':_0x4e2eae,'signal':_0x3a6668}))['then'](_0x1c625d=>new UploadcareFile(_0x1c625d,{'baseCDN':_0x3baaba})),uploadFromUploaded=(_0x465be1,{publicKey:_0x37fb35,fileName:_0x2aeefa,baseURL:_0x2e2f36,signal:_0x23e4d1,onProgress:_0x180653,source:_0xd31809,integration:_0x26461c,userAgent:_0x26b365,retryThrottledRequestMaxTimes:_0x4d2d32,retryNetworkErrorMaxTimes:_0x3438ea,baseCDN:_0x379181})=>info(_0x465be1,{'publicKey':_0x37fb35,'baseURL':_0x2e2f36,'signal':_0x23e4d1,'source':_0xd31809,'integration':_0x26461c,'userAgent':_0x26b365,'retryThrottledRequestMaxTimes':_0x4d2d32,'retryNetworkErrorMaxTimes':_0x3438ea})['then'](_0x20ba75=>new UploadcareFile(_0x20ba75,{'baseCDN':_0x379181,'fileName':_0x2aeefa}))['then'](_0x45fc71=>(_0x180653&&_0x180653({'isComputable':!0x0,'value':0x1}),_0x45fc71)),race=(_0x2eb7d4,{signal:_0x57935f}={})=>{let _0xe7cf20=null,_0xd7eced=null;const _0x1a9e2c=_0x2eb7d4['map'](()=>new AbortController());return onCancel(_0x57935f,()=>{_0x1a9e2c['forEach'](_0x42a27e=>_0x42a27e['abort']());}),Promise['all'](_0x2eb7d4['map']((_0x5c2de1,_0xf2d074)=>{const _0x2e89ce=(_0x595e17=>()=>{_0xd7eced=_0x595e17,_0x1a9e2c['forEach']((_0x29dba2,_0x5a354b)=>_0x5a354b!==_0x595e17&&_0x29dba2['abort']());})(_0xf2d074);return Promise['resolve']()['then'](()=>_0x5c2de1({'stopRace':_0x2e89ce,'signal':_0x1a9e2c[_0xf2d074]['signal']}))['then'](_0x15c158=>(_0x2e89ce(),_0x15c158))['catch'](_0x20119f=>(_0xe7cf20=_0x20119f,null));}))['then'](_0x464d68=>{if(null===_0xd7eced)throw _0xe7cf20;return _0x464d68[_0xd7eced];});};var WebSocket=window['WebSocket'];class Events{['events']=Object['create']({});['emit'](_0x194dd4,_0x225e9c){this['events'][_0x194dd4]?.['forEach'](_0x19e836=>_0x19e836(_0x225e9c));}['on'](_0x24a728,_0x49297e){this['events'][_0x24a728]=this['events'][_0x24a728]||[],this['events'][_0x24a728]['push'](_0x49297e);}['off'](_0x4886ab,_0x3e8e8a){this['events'][_0x4886ab]=_0x3e8e8a?this['events'][_0x4886ab]['filter'](_0x17fc19=>_0x17fc19!==_0x3e8e8a):[];}}const response=(_0x3e3342,_0x4383df)=>'success'===_0x3e3342?{'status':Status['Success'],..._0x4383df}:'progress'===_0x3e3342?{'status':Status['Progress'],..._0x4383df}:{'status':Status['Error'],..._0x4383df};class Pusher{['key'];['disconnectTime'];['ws']=void 0x0;['queue']=[];['isConnected']=!0x1;['subscribers']=0x0;['emmitter']=new Events();['disconnectTimeoutId']=null;constructor(_0x58fa50,_0x444dba=0x7530){this['key']=_0x58fa50,this['disconnectTime']=_0x444dba;}['connect'](){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){const _0x1048c6='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new WebSocket(_0x1048c6),this['ws']['addEventListener']('error',_0x657822=>{this['emmitter']['emit']('error',new Error(_0x657822['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](_0x13f587=>this['send'](_0x13f587['event'],_0x13f587['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',_0x3b8f9b=>{const _0x1b6e3c=JSON['parse'](_0x3b8f9b['data']['toString']());switch(_0x1b6e3c['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'](_0x1b6e3c['channel'],response(_0x1b6e3c['event'],JSON['parse'](_0x1b6e3c['data'])));}});}}['disconnect'](){const _0x29107f=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x29107f();},this['disconnectTime']):_0x29107f();}['send'](_0x4f6dc5,_0x275bff){const _0x4fda5b=JSON['stringify']({'event':_0x4f6dc5,'data':_0x275bff});this['ws']?.['send'](_0x4fda5b);}['subscribe'](_0x25147a,_0xa8b013){this['subscribers']+=0x1,this['connect']();const _0x4ec20b='task-status-'+_0x25147a,_0x1f09bb={'event':'pusher:subscribe','data':{'channel':_0x4ec20b}};this['emmitter']['on'](_0x4ec20b,_0xa8b013),this['isConnected']?this['send'](_0x1f09bb['event'],_0x1f09bb['data']):this['queue']['push'](_0x1f09bb);}['unsubscribe'](_0x305313){this['subscribers']-=0x1;const _0x33f435='task-status-'+_0x305313,_0xa04e75={'event':'pusher:unsubscribe','data':{'channel':_0x33f435}};this['emmitter']['off'](_0x33f435),this['isConnected']?this['send'](_0xa04e75['event'],_0xa04e75['data']):this['queue']=this['queue']['filter'](_0x142645=>_0x142645['data']['channel']!==_0x33f435),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0x275c32){return this['emmitter']['on']('error',_0x275c32),()=>this['emmitter']['off']('error',_0x275c32);}}let pusher=null;const getPusher=_0x740ec5=>{if(!pusher){const _0x179743='undefined'==typeof window?0x0:0x7530;pusher=new Pusher(_0x740ec5,_0x179743);}return pusher;},preconnect=_0x489a95=>{getPusher(_0x489a95)['connect']();};function pollStrategy({token:_0x426af3,publicKey:_0x5198ad,baseURL:_0x2cf26d,integration:_0x1bca60,userAgent:_0x1c888e,retryThrottledRequestMaxTimes:_0x51cda3,retryNetworkErrorMaxTimes:_0x24a274,onProgress:_0x35e11a,signal:_0x38de59}){return poll({'check':_0x10dea8=>fromUrlStatus(_0x426af3,{'publicKey':_0x5198ad,'baseURL':_0x2cf26d,'integration':_0x1bca60,'userAgent':_0x1c888e,'retryThrottledRequestMaxTimes':_0x51cda3,'retryNetworkErrorMaxTimes':_0x24a274,'signal':_0x10dea8})['then'](_0x466c3b=>{switch(_0x466c3b['status']){case Status['Error']:return new UploadError(_0x466c3b['error'],_0x466c3b['errorCode']);case Status['Waiting']:return!0x1;case Status['Unknown']:return new UploadError('Token\x20\x22'+_0x426af3+'\x22\x20was\x20not\x20found.');case Status['Progress']:return _0x35e11a&&('unknown'===_0x466c3b['total']?_0x35e11a({'isComputable':!0x1}):_0x35e11a({'isComputable':!0x0,'value':_0x466c3b['done']/_0x466c3b['total']})),!0x1;case Status['Success']:return _0x35e11a&&_0x35e11a({'isComputable':!0x0,'value':_0x466c3b['done']/_0x466c3b['total']}),_0x466c3b;default:throw new Error('Unknown\x20status');}}),'signal':_0x38de59});}const pushStrategy=({token:_0x26fc7c,pusherKey:_0x153ea6,signal:_0x518873,onProgress:_0x10a563})=>new Promise((_0x4523fb,_0xfa318e)=>{const _0x2e414a=getPusher(_0x153ea6),_0x3f1330=_0x2e414a['onError'](_0xfa318e),_0x3f7d71=()=>{_0x3f1330(),_0x2e414a['unsubscribe'](_0x26fc7c);};onCancel(_0x518873,()=>{_0x3f7d71(),_0xfa318e(new CancelError('pusher\x20cancelled'));}),_0x2e414a['subscribe'](_0x26fc7c,_0x2eed25=>{switch(_0x2eed25['status']){case Status['Progress']:_0x10a563&&('unknown'===_0x2eed25['total']?_0x10a563({'isComputable':!0x1}):_0x10a563({'isComputable':!0x0,'value':_0x2eed25['done']/_0x2eed25['total']}));break;case Status['Success']:_0x3f7d71(),_0x10a563&&_0x10a563({'isComputable':!0x0,'value':_0x2eed25['done']/_0x2eed25['total']}),_0x4523fb(_0x2eed25);break;case Status['Error']:_0x3f7d71(),_0xfa318e(new UploadError(_0x2eed25['msg'],_0x2eed25['error_code']));}});}),uploadFromUrl=(_0x5e4cb6,{publicKey:_0x4d05f5,fileName:_0x240f09,baseURL:_0x38c6be,baseCDN:_0x11b6bc,checkForUrlDuplicates:_0x35e9ec,saveUrlForRecurrentUploads:_0x548fd3,secureSignature:_0x22fd8c,secureExpire:_0x1c3b79,store:_0x2485e8,signal:_0x437e80,onProgress:_0x1614d2,source:_0x462203,integration:_0x2e443b,userAgent:_0x3ea150,retryThrottledRequestMaxTimes:_0x5b4746,pusherKey:_0x3eb985=defaultSettings['pusherKey'],metadata:_0x1f86c9})=>Promise['resolve'](preconnect(_0x3eb985))['then'](()=>fromUrl(_0x5e4cb6,{'publicKey':_0x4d05f5,'fileName':_0x240f09,'baseURL':_0x38c6be,'checkForUrlDuplicates':_0x35e9ec,'saveUrlForRecurrentUploads':_0x548fd3,'secureSignature':_0x22fd8c,'secureExpire':_0x1c3b79,'store':_0x2485e8,'signal':_0x437e80,'source':_0x462203,'integration':_0x2e443b,'userAgent':_0x3ea150,'retryThrottledRequestMaxTimes':_0x5b4746,'metadata':_0x1f86c9}))['catch'](_0x50f55e=>{const _0x4e1f97=getPusher(_0x3eb985);return _0x4e1f97?.['disconnect'](),Promise['reject'](_0x50f55e);})['then'](_0x1e193d=>_0x1e193d['type']===TypeEnum['FileInfo']?_0x1e193d:race([({signal:_0x1f1585})=>pollStrategy({'token':_0x1e193d['token'],'publicKey':_0x4d05f5,'baseURL':_0x38c6be,'integration':_0x2e443b,'userAgent':_0x3ea150,'retryThrottledRequestMaxTimes':_0x5b4746,'onProgress':_0x1614d2,'signal':_0x1f1585}),({signal:_0xfe3896})=>pushStrategy({'token':_0x1e193d['token'],'pusherKey':_0x3eb985,'signal':_0xfe3896,'onProgress':_0x1614d2})],{'signal':_0x437e80}))['then'](_0x20c8f5=>{if(_0x20c8f5 instanceof UploadError)throw _0x20c8f5;return _0x20c8f5;})['then'](_0x28a17e=>isReadyPoll(_0x28a17e['uuid'],{'publicKey':_0x4d05f5,'baseURL':_0x38c6be,'integration':_0x2e443b,'userAgent':_0x3ea150,'retryThrottledRequestMaxTimes':_0x5b4746,'onProgress':_0x1614d2,'signal':_0x437e80}))['then'](_0x248b73=>new UploadcareFile(_0x248b73,{'baseCDN':_0x11b6bc})),memo=new WeakMap(),getBlobFromReactNativeAsset=async _0x49566b=>{if(memo['has'](_0x49566b))return memo['get'](_0x49566b);const _0x49272f=await fetch(_0x49566b['uri'])['then'](_0x56ba2e=>_0x56ba2e['blob']());return memo['set'](_0x49566b,_0x49272f),_0x49272f;},getFileSize=async _0x54f455=>{if(isFile(_0x54f455)||isBlob(_0x54f455))return _0x54f455['size'];if(isReactNativeAsset(_0x54f455))return(await getBlobFromReactNativeAsset(_0x54f455))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},isMultipart=(_0x23029e,_0x1a5b78=defaultSettings['multipartMinFileSize'])=>_0x23029e>=_0x1a5b78,isUuid=_0x58842a=>{const _0x3759fc=new RegExp('[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}');return!isFileData(_0x58842a)&&_0x3759fc['test'](_0x58842a);},isUrl=_0x340802=>{const _0x1e27ba=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!isFileData(_0x340802)&&_0x1e27ba['test'](_0x340802);},runWithConcurrency=(_0x1ae7a2,_0x7dd92f)=>new Promise((_0x1f89fe,_0x338ed8)=>{const _0x5e7f91=[];let _0x554083=!0x1,_0x4dc7ee=_0x7dd92f['length'];const _0x4f1adf=[..._0x7dd92f],_0x3be365=()=>{const _0x473640=_0x7dd92f['length']-_0x4f1adf['length'],_0x5fb38c=_0x4f1adf['shift']();_0x5fb38c&&_0x5fb38c()['then'](_0x4c88cf=>{_0x554083||(_0x5e7f91[_0x473640]=_0x4c88cf,_0x4dc7ee-=0x1,_0x4dc7ee?_0x3be365():_0x1f89fe(_0x5e7f91));})['catch'](_0x51be89=>{_0x554083=!0x0,_0x338ed8(_0x51be89);});};for(let _0x35e4c0=0x0;_0x35e4c0<_0x1ae7a2;_0x35e4c0++)_0x3be365();}),sliceChunk=(_0x399b9a,_0x15b32e,_0x58fbc8,_0x34b11e)=>{const _0x72326d=_0x34b11e*_0x15b32e,_0x2082d8=Math['min'](_0x72326d+_0x34b11e,_0x58fbc8);return _0x399b9a['slice'](_0x72326d,_0x2082d8);},prepareChunks=async(_0x418939,_0x2beecc,_0x6f48da)=>_0x4b37b4=>sliceChunk(_0x418939,_0x4b37b4,_0x2beecc,_0x6f48da),uploadPart=(_0x45feb8,_0x3d487f,{publicKey:_0x212acc,contentType:_0x3098ca,onProgress:_0x2e7c8f,signal:_0x3e8fb0,integration:_0x54a80b,retryThrottledRequestMaxTimes:_0x1c409d,retryNetworkErrorMaxTimes:_0x1bda15})=>multipartUpload(_0x45feb8,_0x3d487f,{'contentType':_0x3098ca,'onProgress':_0x2e7c8f,'signal':_0x3e8fb0,'retryThrottledRequestMaxTimes':_0x1c409d,'retryNetworkErrorMaxTimes':_0x1bda15}),uploadMultipart=async(_0x40e086,{publicKey:_0x1e3c31,fileName:_0x111c69,fileSize:_0x3a3b90,baseURL:_0xd13b5a,secureSignature:_0x56f937,secureExpire:_0x29919e,store:_0x528b5c,signal:_0x2ba80b,onProgress:_0x2e8145,source:_0x67782d,integration:_0x14ce8b,userAgent:_0x3562c4,retryThrottledRequestMaxTimes:_0x1d2cdc,retryNetworkErrorMaxTimes:_0x211036,contentType:_0x1379d0,multipartChunkSize:_0x34e1b3=defaultSettings['multipartChunkSize'],maxConcurrentRequests:_0x49cc8c=defaultSettings['maxConcurrentRequests'],baseCDN:_0x5eab84,metadata:_0x3882f4})=>{const _0x1b5a42=_0x3a3b90??await getFileSize(_0x40e086);let _0x337678;const _0x2cfa64=(_0x264841,_0x59be8a)=>{if(!_0x2e8145)return;_0x337678||(_0x337678=Array(_0x264841)['fill'](0x0));const _0xde7fd7=_0x4cc730=>_0x4cc730['reduce']((_0x34a3e8,_0x147d1f)=>_0x34a3e8+_0x147d1f,0x0);return _0x5f5a3b=>{_0x5f5a3b['isComputable']&&(_0x337678[_0x59be8a]=_0x5f5a3b['value'],_0x2e8145({'isComputable':!0x0,'value':_0xde7fd7(_0x337678)/_0x264841}));};};return _0x1379d0||=getContentType(_0x40e086),multipartStart(_0x1b5a42,{'publicKey':_0x1e3c31,'contentType':_0x1379d0,'fileName':_0x111c69||getFileName(_0x40e086),'baseURL':_0xd13b5a,'secureSignature':_0x56f937,'secureExpire':_0x29919e,'store':_0x528b5c,'signal':_0x2ba80b,'source':_0x67782d,'integration':_0x14ce8b,'userAgent':_0x3562c4,'retryThrottledRequestMaxTimes':_0x1d2cdc,'retryNetworkErrorMaxTimes':_0x211036,'metadata':_0x3882f4,'multipartChunkSize':_0x34e1b3})['then'](async({uuid:_0x55a1b9,parts:_0x488107})=>{const _0x96d1b7=await prepareChunks(_0x40e086,_0x1b5a42,_0x34e1b3);return Promise['all']([_0x55a1b9,runWithConcurrency(_0x49cc8c,_0x488107['map']((_0x4f7695,_0x4a3aa2)=>()=>uploadPart(_0x96d1b7(_0x4a3aa2),_0x4f7695,{'publicKey':_0x1e3c31,'contentType':_0x1379d0,'onProgress':_0x2cfa64(_0x488107['length'],_0x4a3aa2),'signal':_0x2ba80b,'integration':_0x14ce8b,'retryThrottledRequestMaxTimes':_0x1d2cdc,'retryNetworkErrorMaxTimes':_0x211036})))]);})['then'](([_0x28dc8c])=>multipartComplete(_0x28dc8c,{'publicKey':_0x1e3c31,'baseURL':_0xd13b5a,'source':_0x67782d,'integration':_0x14ce8b,'userAgent':_0x3562c4,'retryThrottledRequestMaxTimes':_0x1d2cdc,'retryNetworkErrorMaxTimes':_0x211036}))['then'](_0x59eb39=>_0x59eb39['isReady']?_0x59eb39:isReadyPoll(_0x59eb39['uuid'],{'publicKey':_0x1e3c31,'baseURL':_0xd13b5a,'source':_0x67782d,'integration':_0x14ce8b,'userAgent':_0x3562c4,'retryThrottledRequestMaxTimes':_0x1d2cdc,'retryNetworkErrorMaxTimes':_0x211036,'onProgress':_0x2e8145,'signal':_0x2ba80b}))['then'](_0x30e8ed=>new UploadcareFile(_0x30e8ed,{'baseCDN':_0x5eab84}));};async function uploadFile(_0x3f8d82,{publicKey:_0x42fc78,fileName:_0x299108,baseURL:_0x448568=defaultSettings['baseURL'],secureSignature:_0x1c859b,secureExpire:_0xf1fdb5,store:_0x38e1bf,signal:_0x362ce0,onProgress:_0x415d5e,source:_0xd78c29,integration:_0x5b2e15,userAgent:_0x52ed6c,retryThrottledRequestMaxTimes:_0xe8933f,retryNetworkErrorMaxTimes:_0xf7b0f4,contentType:_0x384ace,multipartMinFileSize:_0x2362d2,multipartChunkSize:_0x367b59,maxConcurrentRequests:_0x17e94b,baseCDN:_0x591d7e=defaultSettings['baseCDN'],checkForUrlDuplicates:_0x224bd1,saveUrlForRecurrentUploads:_0x290256,pusherKey:_0x20966c,metadata:_0x406348}){if(isFileData(_0x3f8d82)){const _0x155ac5=await getFileSize(_0x3f8d82);return isMultipart(_0x155ac5,_0x2362d2)?uploadMultipart(_0x3f8d82,{'publicKey':_0x42fc78,'contentType':_0x384ace,'multipartChunkSize':_0x367b59,'fileSize':_0x155ac5,'fileName':_0x299108,'baseURL':_0x448568,'secureSignature':_0x1c859b,'secureExpire':_0xf1fdb5,'store':_0x38e1bf,'signal':_0x362ce0,'onProgress':_0x415d5e,'source':_0xd78c29,'integration':_0x5b2e15,'userAgent':_0x52ed6c,'maxConcurrentRequests':_0x17e94b,'retryThrottledRequestMaxTimes':_0xe8933f,'retryNetworkErrorMaxTimes':_0xf7b0f4,'baseCDN':_0x591d7e,'metadata':_0x406348}):uploadDirect(_0x3f8d82,{'publicKey':_0x42fc78,'fileName':_0x299108,'contentType':_0x384ace,'baseURL':_0x448568,'secureSignature':_0x1c859b,'secureExpire':_0xf1fdb5,'store':_0x38e1bf,'signal':_0x362ce0,'onProgress':_0x415d5e,'source':_0xd78c29,'integration':_0x5b2e15,'userAgent':_0x52ed6c,'retryThrottledRequestMaxTimes':_0xe8933f,'retryNetworkErrorMaxTimes':_0xf7b0f4,'baseCDN':_0x591d7e,'metadata':_0x406348});}if(isUrl(_0x3f8d82))return uploadFromUrl(_0x3f8d82,{'publicKey':_0x42fc78,'fileName':_0x299108,'baseURL':_0x448568,'baseCDN':_0x591d7e,'checkForUrlDuplicates':_0x224bd1,'saveUrlForRecurrentUploads':_0x290256,'secureSignature':_0x1c859b,'secureExpire':_0xf1fdb5,'store':_0x38e1bf,'signal':_0x362ce0,'onProgress':_0x415d5e,'source':_0xd78c29,'integration':_0x5b2e15,'userAgent':_0x52ed6c,'retryThrottledRequestMaxTimes':_0xe8933f,'pusherKey':_0x20966c,'metadata':_0x406348});if(isUuid(_0x3f8d82))return uploadFromUploaded(_0x3f8d82,{'publicKey':_0x42fc78,'fileName':_0x299108,'baseURL':_0x448568,'signal':_0x362ce0,'onProgress':_0x415d5e,'source':_0xd78c29,'integration':_0x5b2e15,'userAgent':_0x52ed6c,'retryThrottledRequestMaxTimes':_0xe8933f,'retryNetworkErrorMaxTimes':_0xf7b0f4,'baseCDN':_0x591d7e});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x3f8d82+'\x22\x20is\x20not\x20supported');}class UploadcareGroup{['uuid'];['filesCount'];['totalSize'];['isStored'];['isImage'];['cdnUrl'];['files'];['createdAt'];['storedAt']=null;constructor(_0x59fd30,{baseCDN:_0x42b617=defaultSettings['baseCDN']}={}){this['uuid']=_0x59fd30['id'],this['filesCount']=_0x59fd30['filesCount'];const _0x4f0a85=_0x59fd30['files']['filter'](Boolean);this['totalSize']=Object['values'](_0x4f0a85)['reduce']((_0x22d834,_0xd94499)=>_0x22d834+_0xd94499['size'],0x0),this['isStored']=!!_0x59fd30['datetimeStored'],this['isImage']=!!Object['values'](_0x4f0a85)['filter'](_0x94a510=>_0x94a510['isImage'])['length'],this['cdnUrl']=_0x59fd30['cdnUrl'],this['files']=_0x4f0a85['map'](_0x179ea5=>new UploadcareFile(_0x179ea5,{'baseCDN':_0x42b617})),this['createdAt']=_0x59fd30['datetimeCreated'],this['storedAt']=_0x59fd30['datetimeStored'];}}const isFileDataArray=_0x5f34a3=>{for(const _0x37ea2f of _0x5f34a3)if(!isFileData(_0x37ea2f))return!0x1;return!0x0;},isUuidArray=_0xd6dcf2=>{for(const _0x25468c of _0xd6dcf2)if(!isUuid(_0x25468c))return!0x1;return!0x0;},isUrlArray=_0x340959=>{for(const _0x3983b3 of _0x340959)if(!isUrl(_0x3983b3))return!0x1;return!0x0;};function uploadFileGroup(_0x4c871d,{publicKey:_0x4a6b33,fileName:_0x534f8b,baseURL:_0x1b21f0=defaultSettings['baseURL'],secureSignature:_0x31496a,secureExpire:_0xaebb36,store:_0x2eff07,signal:_0x479148,onProgress:_0x1d2b6a,source:_0x1cf5bb,integration:_0x3cd67a,userAgent:_0x2d203a,retryThrottledRequestMaxTimes:_0x1a5fd3,retryNetworkErrorMaxTimes:_0x5bc534,contentType:_0x4cc18b,multipartChunkSize:_0x2b4e30=defaultSettings['multipartChunkSize'],baseCDN:_0x5e85ea=defaultSettings['baseCDN'],checkForUrlDuplicates:_0x160028,saveUrlForRecurrentUploads:_0xdd5c7a,jsonpCallback:_0x586cce}){if(!isFileDataArray(_0x4c871d)&&!isUrlArray(_0x4c871d)&&!isUuidArray(_0x4c871d))throw new TypeError('Group\x20uploading\x20from\x20\x22'+_0x4c871d+'\x22\x20is\x20not\x20supported');let _0x5da75f,_0xf5822d=!0x0;const _0x2974de=_0x4c871d['length'],_0x2c9d6e=(_0x466cfa,_0x2fe3f3)=>{if(!_0x1d2b6a)return;_0x5da75f||(_0x5da75f=Array(_0x466cfa)['fill'](0x0));const _0xfa6358=_0x1dd5bf=>_0x1dd5bf['reduce']((_0xacb402,_0x11d961)=>_0xacb402+_0x11d961)/_0x466cfa;return _0x42b574=>{if(!_0x42b574['isComputable']||!_0xf5822d)return _0xf5822d=!0x1,void _0x1d2b6a({'isComputable':!0x1});_0x5da75f[_0x2fe3f3]=_0x42b574['value'],_0x1d2b6a({'isComputable':!0x0,'value':_0xfa6358(_0x5da75f)});};};return Promise['all'](_0x4c871d['map']((_0x20a692,_0x4c7ec0)=>isFileData(_0x20a692)||isUrl(_0x20a692)?uploadFile(_0x20a692,{'publicKey':_0x4a6b33,'fileName':_0x534f8b,'baseURL':_0x1b21f0,'secureSignature':_0x31496a,'secureExpire':_0xaebb36,'store':_0x2eff07,'signal':_0x479148,'onProgress':_0x2c9d6e(_0x2974de,_0x4c7ec0),'source':_0x1cf5bb,'integration':_0x3cd67a,'userAgent':_0x2d203a,'retryThrottledRequestMaxTimes':_0x1a5fd3,'retryNetworkErrorMaxTimes':_0x5bc534,'contentType':_0x4cc18b,'multipartChunkSize':_0x2b4e30,'baseCDN':_0x5e85ea,'checkForUrlDuplicates':_0x160028,'saveUrlForRecurrentUploads':_0xdd5c7a})['then'](_0x5d0c63=>_0x5d0c63['uuid']):_0x20a692))['then'](_0x4c6ba2=>group(_0x4c6ba2,{'publicKey':_0x4a6b33,'baseURL':_0x1b21f0,'jsonpCallback':_0x586cce,'secureSignature':_0x31496a,'secureExpire':_0xaebb36,'signal':_0x479148,'source':_0x1cf5bb,'integration':_0x3cd67a,'userAgent':_0x2d203a,'retryThrottledRequestMaxTimes':_0x1a5fd3,'retryNetworkErrorMaxTimes':_0x5bc534})['then'](_0x1c9cd6=>new UploadcareGroup(_0x1c9cd6,{'baseCDN':_0x5e85ea}))['then'](_0x38eed1=>(_0x1d2b6a&&_0x1d2b6a({'isComputable':!0x0,'value':0x1}),_0x38eed1)));}class Queue{['_concurrency']=0x1;['_pending']=[];['_running']=0x0;['_resolvers']=new Map();['_rejectors']=new Map();constructor(_0x3a04b7){this['_concurrency']=_0x3a04b7;}['run'](){const _0x537328=this['_concurrency']-this['_running'];for(let _0x31a3b9=0x0;_0x31a3b9<_0x537328;_0x31a3b9++){const _0x2e08a2=this['_pending']['shift']();if(!_0x2e08a2)return;const _0x537d72=this['_resolvers']['get'](_0x2e08a2),_0x1a0b01=this['_rejectors']['get'](_0x2e08a2);if(!_0x537d72||!_0x1a0b01)throw new Error('Unexpected\x20behavior:\x20resolver\x20or\x20rejector\x20is\x20undefined');this['_running']+=0x1,_0x2e08a2()['finally'](()=>{this['_resolvers']['delete'](_0x2e08a2),this['_rejectors']['delete'](_0x2e08a2),this['_running']-=0x1,this['run']();})['then'](_0x2c0941=>_0x537d72(_0x2c0941))['catch'](_0xf49ebc=>_0x1a0b01(_0xf49ebc));}}['add'](_0xfcd1,{autoRun:_0x5f12ca}={'autoRun':!0x0}){return new Promise((_0x18551b,_0x2fce0c)=>{this['_resolvers']['set'](_0xfcd1,_0x18551b),this['_rejectors']['set'](_0xfcd1,_0x2fce0c),this['_pending']['push'](_0xfcd1),_0x5f12ca&&this['run']();});}get['pending'](){return this['_pending']['length'];}get['running'](){return this['_running'];}set['concurrency'](_0xd93293){this['_concurrency']=_0xd93293,this['run']();}get['concurrency'](){return this['_concurrency'];}}const ROLES={'button':['toolbar'],'checkbox':['toolbar'],'menuitem':['menu','menubar'],'option':['listbox'],'tab':['tablist']};function focus(_0x1c79cf,_0x29cdcd){_0x29cdcd['tabIndex']=0x0,_0x29cdcd['focus'](),_0x1c79cf['tabIndex']=-0x1;}function findGroupNodeByEventTarget(_0xa13a10){let _0x49eb9f=_0xa13a10['role']||_0xa13a10['type']||_0xa13a10['tagName'];if(!_0x49eb9f)return null;let _0x1f750a=ROLES[_0x49eb9f['toLowerCase']()];if(!_0x1f750a)return null;for(let _0x4557bf of _0x1f750a){let _0xfecc0d=_0xa13a10['closest']('[role='+_0x4557bf+']');if(_0xfecc0d)return _0xfecc0d;}}function getItems(_0x52cccd,_0x1b9691){return'toolbar'===_0x1b9691['role']?getToolbarItems(_0x1b9691):_0x1b9691['querySelectorAll']('[role='+_0x52cccd['role']+']');}function getToolbarItems(_0x12a294){return[..._0x12a294['querySelectorAll']('*')]['filter'](_0x58caa4=>'button'===_0x58caa4['role']||'button'===_0x58caa4['type']||'checkbox'===_0x58caa4['role']||'checkbox'===_0x58caa4['type']);}function isHorizontalOrientation(_0x2f311d){let _0x472009=_0x2f311d['getAttribute']('aria-orientation');if('vertical'===_0x472009)return!0x1;if('horizontal'===_0x472009)return!0x0;let _0x535f94=_0x2f311d['role'];return'menubar'===_0x535f94||'tablist'===_0x535f94||'toolbar'===_0x535f94;}function focusGroupKeyUX(_0x5a37f8){return _0x16ac1b=>{let _0x402f23=!0x1,_0x329ddf=0x0,_0x361fa9='';function _0x4ecc97(_0x119ffe){let _0xbd0536=findGroupNodeByEventTarget(_0x119ffe['target']);if(!_0xbd0536)return void _0x4ed461();let _0x1febe7=getItems(_0x119ffe['target'],_0xbd0536),_0x72fcf7=Array['from'](_0x1febe7)['indexOf'](_0x119ffe['target']),_0x10e505='ArrowDown',_0x20cb1d='ArrowUp';if(isHorizontalOrientation(_0xbd0536)&&('rtl'===_0x16ac1b['document']['dir']?(_0x10e505='ArrowLeft',_0x20cb1d='ArrowRight'):(_0x10e505='ArrowRight',_0x20cb1d='ArrowLeft')),_0x119ffe['key']===_0x10e505)_0x119ffe['preventDefault'](),focus(_0x119ffe['target'],_0x1febe7[_0x72fcf7+0x1]||_0x1febe7[0x0]);else{if(_0x119ffe['key']===_0x20cb1d)_0x119ffe['preventDefault'](),focus(_0x119ffe['target'],_0x1febe7[_0x72fcf7-0x1]||_0x1febe7[_0x1febe7['length']-0x1]);else{if('Home'===_0x119ffe['key'])_0x119ffe['preventDefault'](),focus(_0x119ffe['target'],_0x1febe7[0x0]);else{if('End'===_0x119ffe['key'])_0x119ffe['preventDefault'](),focus(_0x119ffe['target'],_0x1febe7[_0x1febe7['length']-0x1]);else{if(0x1===_0x119ffe['key']['length']&&'tablist'!==_0xbd0536['role']){let _0x5664da=Date['now']();_0x5664da-_0x329ddf<=0x12c?_0x361fa9+=_0x119ffe['key']['toLowerCase']():_0x361fa9=_0x119ffe['key']['toLowerCase'](),_0x329ddf=_0x5664da;let _0x497f2d=Array['from'](_0x1febe7)['find'](_0x376edd=>_0x376edd['textContent']?.['trim']()?.['toLowerCase']()?.['startsWith'](_0x361fa9));_0x497f2d&&(_0x119ffe['preventDefault'](),focus(_0x119ffe['target'],_0x497f2d));}}}}}}function _0x4ed461(){_0x402f23=!0x1,_0x16ac1b['removeEventListener']('keydown',_0x4ecc97);}function _0x57668f(_0xa3b6dd){let _0x5d396b=findGroupNodeByEventTarget(_0xa3b6dd['target']);if(_0x5d396b){_0x402f23||(_0x402f23=!0x0,_0x16ac1b['addEventListener']('keydown',_0x4ecc97));let _0x4fa6cb=getItems(_0xa3b6dd['target'],_0x5d396b);for(let _0x3f5067 of _0x4fa6cb)_0x3f5067!==_0xa3b6dd['target']&&_0x3f5067['setAttribute']('tabindex',-0x1);}else _0x402f23&&_0x4ed461();}function _0x4e467b(_0x1ab641){_0x1ab641['relatedTarget']&&_0x1ab641['relatedTarget']!==_0x16ac1b['document']||_0x4ed461();}function _0x1789cd(_0x412873){let _0x38d497=findGroupNodeByEventTarget(_0x412873['target']);if(_0x38d497){let _0xd0a570=getItems(_0x412873['target'],_0x38d497);for(let _0x14162e of _0xd0a570)_0x14162e!==_0x412873['target']&&_0x14162e['setAttribute']('tabindex',-0x1);_0x412873['target']['setAttribute']('tabindex',0x0);}}return _0x16ac1b['addEventListener']('click',_0x1789cd),_0x16ac1b['addEventListener']('focusin',_0x57668f),_0x16ac1b['addEventListener']('focusout',_0x4e467b),()=>{_0x4ed461(),_0x16ac1b['removeEventListener']('click',_0x1789cd),_0x16ac1b['removeEventListener']('focusin',_0x57668f),_0x16ac1b['removeEventListener']('focusout',_0x4e467b);};};}function hiddenKeyUX(){return _0xc289be=>{let _0xa880bb,_0x35c575;function _0x3a870d(_0x42c908){if('true'===_0x42c908['target']['getAttribute']('aria-hidden')){_0xa880bb=_0x42c908['target'],_0xa880bb['setAttribute']('aria-hidden','false'),_0x35c575=_0xa880bb['hidden'],_0x35c575&&(_0xa880bb['hidden']=!0x1);let _0x38a28a=_0x42c908['target']['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x38a28a&&(_0x38a28a['tabIndex']=0x0);}}function _0x10144e(_0x5b15ab){!_0xa880bb||!_0xa880bb['contains'](_0x5b15ab['target'])||_0x5b15ab['relatedTarget']&&_0xa880bb['contains'](_0x5b15ab['relatedTarget'])||(_0x5b15ab['target']['tabIndex']=-0x1,_0xa880bb['setAttribute']('aria-hidden','true'),_0x35c575&&(_0xa880bb['hidden']=!0x0),_0xa880bb=null);}return _0xc289be['addEventListener']('keyuxJump',_0x3a870d),_0xc289be['addEventListener']('focusout',_0x10144e),()=>{_0xc289be['removeEventListener']('keyuxJump',_0x3a870d),_0xc289be['removeEventListener']('focusout',_0x10144e);};};}function jumpKeyUX(){return _0x125100=>{let _0x5b5407=[];function _0x1e816c(){let _0x142083=_0x5b5407['pop']();if(!_0x142083)return void _0x125100['document']['activeElement']['blur']();let _0x336575=_0x142083['deref']();_0x336575&&_0x336575['isConnected']?_0x336575['focus']():_0x1e816c();}let _0x371750,_0x31e593=0x0;function _0x82509e(_0x266767){clearInterval(_0x371750);let _0x50be8e=_0x266767['getAttribute']('aria-controls');_0x371750=setInterval(()=>{if(_0x31e593++>0x32)return void clearInterval(_0x371750);let _0x5d80c7=_0x125100['document']['getElementById'](_0x50be8e);if(_0x5d80c7){let _0x1e5426=_0x5d80c7['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x1e5426&&(clearInterval(_0x371750),_0x5d80c7['dispatchEvent'](new _0x125100['CustomEvent']('keyuxJump',{'bubbles':!0x0})),function(_0x32bc34){let _0x49b641=_0x125100['document']['activeElement'];_0x49b641&&_0x49b641!==_0x125100['document']['body']&&_0x5b5407['push'](new WeakRef(_0x49b641)),_0x32bc34['focus']({'focusVisible':!0x0});}(_0x1e5426));}},0x32);}function _0xcb9dbb(_0x3e1d88){_0x3e1d88['target']['getAttribute']('aria-controls')&&'Enter'===_0x3e1d88['key']&&_0x82509e(_0x3e1d88['target']),'Escape'===_0x3e1d88['key']&&_0x1e816c();}return _0x125100['addEventListener']('keydown',_0xcb9dbb),()=>{_0x125100['removeEventListener']('keydown',_0xcb9dbb);};};}function pressKeyUX(_0x4ce648){let _0x5b5ada,_0x47a076,_0x5ed25c=_0x4ce648['split']('\x20');function _0x947d75(_0x1c447c){'Enter'!==_0x1c447c['key']||'BUTTON'!==_0x1c447c['target']['tagName']&&'A'!==_0x1c447c['target']['tagName']||(_0x4ff47d(),_0x1c447c['target']['classList']['add'](..._0x5ed25c),_0x5b5ada=_0x1c447c['target'],_0x47a076=_0x1c447c['target']);}function _0x4ff47d(){_0x5b5ada&&_0x5b5ada['classList']['remove'](..._0x5ed25c),_0x47a076=null;}function _0x3b3050(_0x4aae7d){0x0===_0x4aae7d['clientX']&&0x0===_0x4aae7d['clientY']&&_0x47a076!==_0x4aae7d['target']&&(_0x4ff47d(),_0x4aae7d['target']['classList']['add'](..._0x5ed25c),_0x5b5ada=_0x4aae7d['target']);}return _0x2cad22=>(_0x2cad22['addEventListener']('click',_0x3b3050),_0x2cad22['addEventListener']('keydown',_0x947d75),_0x2cad22['addEventListener']('keyup',_0x4ff47d),()=>{_0x2cad22['removeEventListener']('click',_0x3b3050),_0x2cad22['removeEventListener']('keydown',_0x947d75),_0x2cad22['removeEventListener']('keyup',_0x4ff47d);});}function startKeyUX(_0x29aac1,_0x26c0fa){let _0x48fec0=_0x26c0fa['map'](_0x364b60=>_0x364b60(_0x29aac1));return()=>{_0x48fec0['forEach'](_0xe057a4=>_0xe057a4());};}function i$1(_0x299c51){return _0x299c51['replace'](/[A-Z]/g,_0x57a91d=>'_'+_0x57a91d['toLowerCase']())['replace'](/__/g,'_');}function c$2(_0x394b45){return Array['isArray'](_0x394b45)?_0x394b45['map'](_0x207de3=>'object'==typeof _0x207de3&&null!==_0x207de3?c$2(_0x207de3):_0x207de3):'object'!=typeof _0x394b45||null===_0x394b45?_0x394b45:Object['fromEntries'](Object['entries'](_0x394b45)['map'](([_0x394b56,_0x277ba3])=>{const t=i$1(_0x394b56);return'object'==typeof _0x277ba3&&null!==_0x277ba3?[t,c$2(_0x277ba3)]:[t,_0x277ba3];}));}function u(_0x480c51){return{'ok':!0x0,'value':_0x480c51};}function a$1(_0x14b923){return{'ok':!0x1,'error':_0x14b923};}const l='https://tlm.uploadcare.com/api/';class y{constructor(_0x27c236=l){this['baseUrl']=_0x27c236;}async['base'](_0x599f81,_0x278280={}){const t=''+this['baseUrl']+_0x599f81;try{const _0x15c0a=await fetch(t,_0x278280);if(!_0x15c0a['ok'])return a$1(new Error('Got\x20non-200\x20response\x20from\x20\x22'+t+'\x22.\x20Status:\x20'+_0x15c0a['status']['toString']()));try{return u(await _0x15c0a['json']());}catch(_0x46b081){return a$1(new Error('Error\x20parsing\x20JSON\x20from\x20\x22'+t+'\x22.\x20Error:\x20'+_0x46b081));}}catch(_0x13e117){return a$1(new Error('Error\x20fetching\x20data\x20from\x20\x22'+t+'\x22.\x20Error:\x20'+_0x13e117));}}async['post'](_0x200ae5,_0x4c0073,t={}){return await this['base'](_0x200ae5,{...t,'method':'POST','body':JSON['stringify'](c$2(_0x4c0073)),'headers':{'Content-Type':'application/json',...t['headers']||{}}});}async['get'](_0x5d8ec2,_0x3d625d={}){return await this['base'](_0x5d8ec2,{'method':'GET',..._0x3d625d});}}const f$1=async(_0x4c6a30,_0x3edac4)=>({'success':!0x0,'data':_0x3edac4});class p extends y{constructor(){super();}async['sendEvent'](_0x168911,_0x43c9e9){const t=await f$1(void 0x0,_0x168911);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',_0x168911,_0x43c9e9);}}const o=(_0x25fc65,_0x42035d)=>{const _0x5395ab=new URL(_0x42035d);return _0x5395ab['hostname']=_0x25fc65+'.'+_0x5395ab['hostname'],_0x5395ab['toString']()['replace'](/\/$/,'');},s='0123456789abcdefghijklmnopqrstuvwxyz',a=_0x4b761d=>{if(_0x4b761d<=0x0n)return'0';let _0xcf1040='';for(;_0x4b761d>0x0n;){_0xcf1040=s[Number(_0x4b761d%0x24n)]+_0xcf1040,_0x4b761d/=0x24n;}return _0xcf1040;},c$1=(_0x151c49,_0x533052)=>{try{const _0x4b6af0=new URL(_0x151c49),t=new URL(_0x533052);return _0x4b6af0['hostname']['endsWith'](t['hostname']);}catch{return!0x1;}},c=async _0xf6807e=>{const _0x341ca8=new TextEncoder()['encode'](_0xf6807e),t=await window['crypto']['subtle']['digest']('SHA-256',_0x341ca8),_0x3aaf0e=Array['from'](new Uint8Array(t))['map'](_0x4947ca=>_0x4947ca['toString'](0x10)['padStart'](0x2,'0'))['join']('');return BigInt('0x'+_0x3aaf0e);},i=0xa,d=async _0x3eeecb=>{const _0x54fd12=await c(_0x3eeecb);return a(_0x54fd12)['slice'](0x0,i);},f=async(_0x284ed2,_0x37ebf3)=>{const t=await d(_0x284ed2);return o(t,_0x37ebf3);},readJpegChunks=()=>{const _0x1153e8=[];return{'stack':_0x1153e8,'promiseReadJpegChunks':_0x477e6b=>new Promise((_0x38f96b,_0x350e1a)=>{let _0x2851d0=0x2;const _0x4b7ef2=(_0x173bdd,_0xa8800e)=>{const _0x346277=new FileReader();_0x346277['addEventListener']('load',()=>{_0xa8800e(new DataView(_0x346277['result']));}),_0x346277['addEventListener']('error',_0x47641c=>{_0x350e1a('Reader\x20error:\x20'+_0x47641c);}),_0x346277['readAsArrayBuffer'](_0x173bdd);},_0x519770=()=>_0x4b7ef2(_0x477e6b['slice'](_0x2851d0,_0x2851d0+0x80),_0x1930dd=>{let _0x3a19e3,_0x2fe951,_0x445124;for(_0x3a19e3=_0x2fe951=0x0,_0x445124=_0x1930dd['byteLength'];_0x445124>=0x0?_0x2fe951<_0x445124:_0x2fe951>_0x445124;_0x3a19e3=_0x445124>=0x0?++_0x2fe951:--_0x2fe951)if(0xff===_0x1930dd['getUint8'](_0x3a19e3)){_0x2851d0+=_0x3a19e3;break;}_0x3c96e2();}),_0x3c96e2=()=>{const _0x246776=_0x2851d0;return _0x4b7ef2(_0x477e6b['slice'](_0x2851d0,_0x2851d0+=0x4),_0x4ca9f6=>{if(0x4!==_0x4ca9f6['byteLength']||0xff!==_0x4ca9f6['getUint8'](0x0))return void _0x350e1a('Corrupted');const _0x1eab66=_0x4ca9f6['getUint8'](0x1);if(0xda===_0x1eab66)return void _0x38f96b(!0x0);const _0x374eef=_0x4ca9f6['getUint16'](0x2)-0x2;return _0x4b7ef2(_0x477e6b['slice'](_0x2851d0,_0x2851d0+=_0x374eef),_0x4b9c68=>{_0x4b9c68['byteLength']===_0x374eef?(_0x1153e8['push']({'startPos':_0x246776,'length':_0x374eef,'marker':_0x1eab66,'view':_0x4b9c68}),_0x519770()):_0x350e1a('Corrupted');});});};FileReader&&DataView||_0x350e1a('Not\x20Support'),_0x4b7ef2(_0x477e6b['slice'](0x0,0x2),_0x369145=>{0xffd8!==_0x369145['getUint16'](0x0)&&_0x350e1a('Not\x20jpeg'),_0x519770();});})};},getIccProfile=async _0x2e9c1d=>{const _0x105d3e=[],{promiseReadJpegChunks:_0x35db22,stack:_0x18b07e}=readJpegChunks();return await _0x35db22(_0x2e9c1d),_0x18b07e['forEach'](({marker:_0x3d2fa8,view:_0x3a0709})=>{0xe2===_0x3d2fa8&&0x4943435f===_0x3a0709['getUint32'](0x0)&&0x50524f46===_0x3a0709['getUint32'](0x4)&&0x494c4500===_0x3a0709['getUint32'](0x8)&&_0x105d3e['push'](_0x3a0709);}),_0x105d3e;},replaceJpegChunk=async(_0x42e7e9,_0x240948,_0x4f4a45)=>{{const _0x4d0f5e=[],_0x1b8c73=[],{promiseReadJpegChunks:_0x4c176f,stack:_0x5e74ff}=readJpegChunks();await _0x4c176f(_0x42e7e9),_0x5e74ff['forEach'](_0x4e6ef0=>{if(_0x4e6ef0['marker']===_0x240948)return _0x4d0f5e['push'](_0x4e6ef0['startPos']),_0x1b8c73['push'](_0x4e6ef0['length']);});const _0x37a8d2=[_0x42e7e9['slice'](0x0,0x2)];for(const _0x5d66b2 of _0x4f4a45){const _0x2d62b5=new DataView(new ArrayBuffer(0x4));_0x2d62b5['setUint16'](0x0,0xff00+_0x240948),_0x2d62b5['setUint16'](0x2,_0x5d66b2['byteLength']+0x2),_0x37a8d2['push'](_0x2d62b5['buffer']),_0x37a8d2['push'](_0x5d66b2);}let _0x26966d=0x2;for(let _0x19734e=0x0;_0x19734e<_0x4d0f5e['length'];_0x19734e++)_0x4d0f5e[_0x19734e]>_0x26966d&&_0x37a8d2['push'](_0x42e7e9['slice'](_0x26966d,_0x4d0f5e[_0x19734e])),_0x26966d=_0x4d0f5e[_0x19734e]+_0x1b8c73[_0x19734e]+0x4;return _0x37a8d2['push'](_0x42e7e9['slice'](_0x26966d,_0x42e7e9['size'])),new Blob(_0x37a8d2,{'type':_0x42e7e9['type']});}},MARKER=0xe2,replaceIccProfile=(_0x16fd88,_0x194d88)=>replaceJpegChunk(_0x16fd88,MARKER,_0x194d88['map'](_0xa2affb=>_0xa2affb['buffer'])),stripIccProfile=async _0x114374=>{try{return await replaceIccProfile(_0x114374,[]);}catch(_0xe1fa7b){throw new Error('Failed\x20to\x20strip\x20ICC\x20profile:\x20'+_0xe1fa7b);}},canvasToBlob=(_0x53feb7,_0x216e35,_0x13c268)=>new Promise((_0x54f22a,_0x39d117)=>{_0x53feb7['toBlob'](_0x19a2d0=>{_0x19a2d0?_0x54f22a(_0x19a2d0):_0x39d117('Failed\x20to\x20convert\x20canvas\x20to\x20blob');},_0x216e35,_0x13c268),_0x53feb7['width']=_0x53feb7['height']=0x1;}),createCanvas=()=>{const _0x25c44e=document['createElement']('canvas'),_0x310a26=_0x25c44e['getContext']('2d');return{'canvas':_0x25c44e,'ctx':_0x310a26};},hasTransparency=_0x5b0a74=>{const {ctx:_0xce8c8b,canvas:_0x326de9}=createCanvas();_0x326de9['width']=_0x326de9['height']=0x32,_0xce8c8b['drawImage'](_0x5b0a74,0x0,0x0,0x32,0x32);const _0x18adc7=_0xce8c8b['getImageData'](0x0,0x0,0x32,0x32)['data'];_0x326de9['width']=_0x326de9['height']=0x1;for(let _0x5ece6d=0x3;_0x5ece6d<_0x18adc7['length'];_0x5ece6d+=0x4)if(_0x18adc7[_0x5ece6d]<0xfe)return!0x0;return!0x1;},getExif=async _0x440148=>{let _0x1d1f57=null;const {promiseReadJpegChunks:_0x1d0a6e,stack:_0x20e4db}=readJpegChunks();return await _0x1d0a6e(_0x440148),_0x20e4db['forEach'](({marker:_0x484978,view:_0x19278e})=>{!_0x1d1f57&&0xe1===_0x484978&&_0x19278e['byteLength']>=0xe&&0x45786966===_0x19278e['getUint32'](0x0)&&0x0===_0x19278e['getUint16'](0x4)&&(_0x1d1f57=_0x19278e);}),_0x1d1f57;},base64ImageSrc='data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=';let isApplied;const isBrowserApplyExifOrientation=()=>new Promise(_0x136bde=>{if(void 0x0!==isApplied)_0x136bde(isApplied);else{const _0x57225a=new Image();_0x57225a['addEventListener']('load',()=>{isApplied=_0x57225a['naturalWidth']<_0x57225a['naturalHeight'],_0x57225a['src']='//:0',_0x136bde(isApplied);}),_0x57225a['src']=base64ImageSrc;}}),findExifOrientation=(_0x182e18,_0x308620)=>{let _0x2734e7,_0x4efe48,_0x1d6257,_0x32a077;if(!_0x182e18||_0x182e18['byteLength']<0xe||0x45786966!==_0x182e18['getUint32'](0x0)||0x0!==_0x182e18['getUint16'](0x4))return;if(0x4949===_0x182e18['getUint16'](0x6))_0x4efe48=!0x0;else{if(0x4d4d!==_0x182e18['getUint16'](0x6))return;_0x4efe48=!0x1;}if(0x2a!==_0x182e18['getUint16'](0x8,_0x4efe48))return;_0x1d6257=0x8+_0x182e18['getUint32'](0xa,_0x4efe48);for(_0x2734e7=0x0,_0x32a077=_0x182e18['getUint16'](_0x1d6257-0x2,_0x4efe48);_0x32a077>=0x0?_0x2734e7<_0x32a077:_0x2734e7>_0x32a077;_0x32a077>=0x0?++_0x2734e7:--_0x2734e7){if(_0x182e18['byteLength']<_0x1d6257+0xa)return;0x112===_0x182e18['getUint16'](_0x1d6257,_0x4efe48)&&_0x308620(_0x1d6257+0x8,_0x4efe48),_0x1d6257+=0xc;}},setExifOrientation=(_0x3b4b37,_0x3b44d8)=>{findExifOrientation(_0x3b4b37,(_0x2264e6,_0x7efea9)=>_0x3b4b37['setUint16'](_0x2264e6,_0x3b44d8,_0x7efea9));},replaceExif=async(_0x18b6ed,_0x5372c7,_0x570637)=>(_0x570637&&setExifOrientation(_0x5372c7,0x1),replaceJpegChunk(_0x18b6ed,0xe1,[_0x5372c7['buffer']])),processImage=(_0x42d18e,_0x5156a5)=>new Promise((_0xd772d6,_0x3e1d4f)=>{_0x5156a5&&(_0x42d18e['src']=_0x5156a5),_0x42d18e['complete']?_0xd772d6(_0x42d18e):(_0x42d18e['addEventListener']('load',()=>{_0xd772d6(_0x42d18e);}),_0x42d18e['addEventListener']('error',()=>{_0x3e1d4f(new Error('Failed\x20to\x20load\x20image.\x20Probably\x20not\x20an\x20image.'));}));}),imageLoader=_0x537f04=>processImage(new Image(),_0x537f04),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 _0x1da923=>{let _0x350536=!0x1;const {promiseReadJpegChunks:_0x32b8ac,stack:_0x2aac19}=readJpegChunks();return await _0x32b8ac(_0x1da923)['then'](()=>(_0x2aac19['forEach'](({marker:_0x432fa8,view:_0x6b0007})=>{if(!_0x350536&&markers['indexOf'](_0x432fa8)>=0x0){const _0x1e815f=_0x6b0007['getUint8'](0x5);allowLayers['indexOf'](_0x1e815f)<0x0&&(_0x350536=!0x0);}}),_0x350536))['catch'](()=>_0x350536);},memoize$1=(_0x1cb69f,_0x5ee7b)=>{const _0x36e525={};return(..._0xf8d06e)=>{const _0x4d4a77=_0x5ee7b(_0xf8d06e,_0x36e525);return _0x4d4a77 in _0x36e525?_0x36e525[_0x4d4a77]:_0x36e525[_0x4d4a77]=_0x1cb69f(..._0xf8d06e);};},memoKeySerializer=(_0x39f8db,_0x543742)=>{const [_0x274900]=_0x39f8db,_0x3a55be=Object['keys'](_0x543742)['map'](_0x25aba9=>parseInt(_0x25aba9,0xa))['sort']((_0x503d4d,_0xe564da)=>_0x503d4d-_0xe564da);for(let _0x37c8f1=0x0;_0x37c8f1<_0x3a55be['length'];_0x37c8f1++){const _0x1c7610=_0x3a55be[_0x37c8f1],_0x2c37d5=!!_0x543742[_0x1c7610];if(_0x1c7610>_0x274900&&_0x2c37d5)return _0x1c7610;if(_0x1c7610<_0x274900&&!_0x2c37d5)return _0x1c7610;}return _0x274900;},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=(_0x464a7f,_0xeaf5cd)=>{try{const _0x5019ed=[_0x464a7f-0x1,_0xeaf5cd-0x1,0x1,0x1],{canvas:_0x31be86,ctx:_0x2e3cbe}=createCanvas();_0x31be86['width']=0x1,_0x31be86['height']=0x1;const {canvas:_0x103641,ctx:_0x581395}=createCanvas();_0x103641['width']=_0x464a7f,_0x103641['height']=_0xeaf5cd,_0x581395&&(_0x581395['fillStyle']=FILL_STYLE,_0x581395['fillRect'](..._0x5019ed),_0x2e3cbe['drawImage'](_0x103641,_0x464a7f-0x1,_0xeaf5cd-0x1,0x1,0x1,0x0,0x0,0x1,0x1));const _0x5210a7=_0x2e3cbe&&_0x2e3cbe['getImageData'](0x0,0x0,0x1,0x1)['data'];let _0x49d7bd=!0x1;return _0x5210a7&&(_0x49d7bd=_0x5210a7[0x0]===TestPixel['R']&&_0x5210a7[0x1]===TestPixel['G']&&_0x5210a7[0x2]===TestPixel['B']&&_0x5210a7[0x3]===TestPixel['A']),_0x103641['width']=_0x103641['height']=0x1,_0x49d7bd;}catch(_0x57c58c){return console['error']('Failed\x20to\x20test\x20for\x20max\x20canvas\x20size\x20of\x20'+_0x464a7f+'x'+_0xeaf5cd+'.'),!0x1;}};function wrapAsync(_0x31db0b){return(..._0x5f217c)=>new Promise(_0xee512=>{setTimeout(()=>{const _0x64933b=_0x31db0b(..._0x5f217c);_0xee512(_0x64933b);},0x0);});}const squareTest=wrapAsync(memoize$1(canvasTest,memoKeySerializer)),dimensionTest=wrapAsync(memoize$1(canvasTest,memoKeySerializer)),testCanvasSize=async(_0x1bf659,_0x1d162c)=>{const _0x5022ec=sizes['squareSide']['find'](_0x3ffc81=>_0x3ffc81*_0x3ffc81>=_0x1bf659*_0x1d162c),_0x4a3be5=sizes['dimension']['find'](_0x4b1c45=>_0x4b1c45>=_0x1bf659&&_0x4b1c45>=_0x1d162c);if(!_0x5022ec||!_0x4a3be5)throw new Error('Not\x20supported');const [_0x10d64f,_0x3bdc4b]=await Promise['all']([squareTest(_0x5022ec,_0x5022ec),dimensionTest(_0x4a3be5,0x1)]);if(_0x10d64f&&_0x3bdc4b)return!0x0;throw new Error('Not\x20supported');},canvasResize=async(_0x1457e5,_0x126127,_0x2a6a52)=>{try{const {ctx:_0x2a2621,canvas:_0x4daf31}=createCanvas();return _0x4daf31['width']=_0x126127,_0x4daf31['height']=_0x2a6a52,_0x2a2621['imageSmoothingQuality']='high',_0x2a2621['drawImage'](_0x1457e5,0x0,0x0,_0x126127,_0x2a6a52),_0x1457e5 instanceof HTMLImageElement&&(_0x1457e5['src']='//:0'),_0x1457e5 instanceof HTMLCanvasElement&&(_0x1457e5['width']=_0x1457e5['height']=0x1),_0x4daf31;}catch(_0x1bf4fe){throw new Error('Canvas\x20resize\x20error',{'cause':_0x1bf4fe});}},native=({img:_0x158685,targetW:_0x6f940,targetH:_0x1a6c43})=>canvasResize(_0x158685,_0x6f940,_0x1a6c43),calcShrinkSteps=function({sourceW:_0x237c1b,targetW:_0x412a5b,targetH:_0x5042de,step:_0x27bd7e}){const _0x10a021=[];let _0x5edf91=_0x412a5b,_0x671aa1=_0x5042de;do{_0x10a021['push']([_0x5edf91,_0x671aa1]),_0x5edf91=Math['round'](_0x5edf91/_0x27bd7e),_0x671aa1=Math['round'](_0x671aa1/_0x27bd7e);}while(_0x5edf91<_0x237c1b*_0x27bd7e);return _0x10a021['reverse']();},fallback=({img:_0x68bf4f,sourceW:_0x50423a,targetW:_0x2edfe8,targetH:_0x25ffe3,step:_0x510ee1})=>{const _0x1090c3=calcShrinkSteps({'sourceW':_0x50423a,'targetW':_0x2edfe8,'targetH':_0x25ffe3,'step':_0x510ee1});return _0x1090c3['reduce']((_0xd52bf,[_0x44acd2,_0x539fbe],_0x3e1f42)=>_0xd52bf['then'](_0x5ee9a2=>testCanvasSize(_0x44acd2,_0x539fbe)['then'](()=>canvasResize(_0x5ee9a2,_0x44acd2,_0x539fbe))['catch'](()=>{if(_0x3e1f42===_0x1090c3['length']-0x1)throw new Error('Not\x20supported');return _0x5ee9a2;})),Promise['resolve'](_0x68bf4f));},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=(_0x1ff3d2,_0x1bb7e2)=>{if(_0x1ff3d2['width']*STEP*_0x1ff3d2['height']*STEP<_0x1bb7e2['size'])throw new Error('Not\x20required');const _0x2cc6a8=_0x1ff3d2['width'],_0xfe0557=_0x1ff3d2['height'],_0xb8f7dd=_0x2cc6a8/_0xfe0557,_0x1f4dd7=Math['floor'](Math['sqrt'](_0x1bb7e2['size']*_0xb8f7dd)),_0x2224f6=Math['floor'](_0x1bb7e2['size']/Math['sqrt'](_0x1bb7e2['size']*_0xb8f7dd));return testCanvasSize(_0x1f4dd7,_0x2224f6)['then'](()=>{const {ctx:_0x3fca44}=createCanvas();return'imageSmoothingQuality'in _0x3fca44&&!isIOS()&&!isIpadOS?native({'img':_0x1ff3d2,'targetW':_0x1f4dd7,'targetH':_0x2224f6}):fallback({'img':_0x1ff3d2,'sourceW':_0x2cc6a8,'targetW':_0x1f4dd7,'targetH':_0x2224f6,'step':STEP});})['catch'](()=>Promise['reject']('Not\x20supported'));},shrinkFile=async(_0x36ceaa,_0x2145e7)=>{try{if(await shouldSkipShrink(_0x36ceaa))throw new Error('Should\x20skipped');const _0x58c25e=await Promise['allSettled']([getExif(_0x36ceaa),isBrowserApplyExifOrientation(),getIccProfile(_0x36ceaa)]),_0x51a006=!_0x58c25e['some'](_0x2f3f2a=>'rejected'===_0x2f3f2a['status']),[_0x416239,_0x525e25,_0x317294]=_0x58c25e,_0x1e9352=await stripIccProfile(_0x36ceaa)['catch'](()=>_0x36ceaa),_0x357c96=await imageLoader(URL['createObjectURL'](_0x1e9352));URL['revokeObjectURL'](_0x357c96['src']);const _0x4babe8=await shrinkImage(_0x357c96,_0x2145e7);let _0x35294a='image/jpeg',_0x5456cb=_0x2145e7?.['quality']||0.8;!_0x51a006&&hasTransparency(_0x4babe8)&&(_0x35294a='image/png',_0x5456cb=void 0x0);let _0x503832=await canvasToBlob(_0x4babe8,_0x35294a,_0x5456cb);if(_0x51a006&&'fulfilled'===_0x416239['status']&&_0x416239['value']){const _0x5d6dcf=_0x416239['value'],_0x2e8b84='fulfilled'===_0x525e25['status']&&_0x525e25['value'];_0x503832=await replaceExif(_0x503832,_0x5d6dcf,_0x2e8b84);}return _0x51a006&&'fulfilled'===_0x317294['status']&&_0x317294['value']['length']>0x0&&(_0x503832=await replaceIccProfile(_0x503832,_0x317294['value'])),_0x503832;}catch(_0x582f65){let _0x55a25e;throw _0x582f65 instanceof Error&&(_0x55a25e=_0x582f65['message']),'string'==typeof _0x582f65&&(_0x55a25e=_0x582f65),new Error('Failed\x20to\x20shrink\x20image.\x20'+(_0x55a25e?'Message:\x20\x22'+_0x55a25e+'\x22.':''),{'cause':_0x582f65});}};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(_0x91bbe9){this['_debugPrint']=_0x91bbe9;}['bindTarget'](_0xb5ac21){this['_targets']['add'](_0xb5ac21);}['unbindTarget'](_0x107b62){this['_targets']['delete'](_0x107b62);}['_dispatch'](_0x53d26c,_0xaf9f7f){for(const _0x7a8a7f of this['_targets'])_0x7a8a7f['dispatchEvent'](new CustomEvent(_0x53d26c,{'detail':_0xaf9f7f}));this['_debugPrint']?.(()=>{const _0x608c45=_0xaf9f7f&&'object'==typeof _0xaf9f7f?{..._0xaf9f7f}:_0xaf9f7f;return['event\x20\x22'+_0x53d26c+'\x22',_0x608c45];});}['emit'](_0x99a48e,_0x51eaff,_0x4c45cf={}){const {debounce:_0x3faa5a}=_0x4c45cf;if('number'!=typeof _0x3faa5a&&!_0x3faa5a)return void this['_dispatch'](_0x99a48e,'function'==typeof _0x51eaff?_0x51eaff():_0x51eaff);this['_timeoutStore']['has'](_0x99a48e)&&window['clearTimeout'](this['_timeoutStore']['get'](_0x99a48e));const _0xc36a63='number'==typeof _0x3faa5a?_0x3faa5a:DEFAULT_DEBOUNCE_TIMEOUT,_0xc9a2d7=window['setTimeout'](()=>{this['_dispatch'](_0x99a48e,'function'==typeof _0x51eaff?_0x51eaff():_0x51eaff),this['_timeoutStore']['delete'](_0x99a48e);},_0xc36a63);this['_timeoutStore']['set'](_0x99a48e,_0xc9a2d7);}};function debounce(_0x180993,_0x50246c){let _0x309ee3;const _0x1deb8e=(..._0x3c121c)=>{_0x309ee3&&clearTimeout(_0x309ee3),_0x309ee3=setTimeout(()=>_0x180993(..._0x3c121c),_0x50246c);};return _0x1deb8e['cancel']=()=>{_0x309ee3&&clearTimeout(_0x309ee3);},_0x1deb8e;}var deserializeCsv=_0x135976=>_0x135976?_0x135976['split'](',')['map'](_0x4661a2=>_0x4661a2['trim']())['filter'](Boolean):[],serializeCsv=_0x29214e=>_0x29214e['join'](','),normalizeCdnOperation=_0x7b2e33=>{if('string'!=typeof _0x7b2e33||!_0x7b2e33)return'';let _0x25d95a=_0x7b2e33['trim']();return _0x25d95a['startsWith']('-/')?_0x25d95a=_0x25d95a['slice'](0x2):_0x25d95a['startsWith']('/')&&(_0x25d95a=_0x25d95a['slice'](0x1)),_0x25d95a['endsWith']('/')&&(_0x25d95a=_0x25d95a['slice'](0x0,_0x25d95a['length']-0x1)),_0x25d95a;},joinCdnOperations=(..._0x2c06a4)=>_0x2c06a4['filter'](_0x1f4ac2=>'string'==typeof _0x1f4ac2&&!!_0x1f4ac2)['map'](_0x44211f=>normalizeCdnOperation(_0x44211f))['join']('/-/'),createCdnUrlModifiers=(..._0x1b6bb8)=>{const _0xe7b17f=joinCdnOperations(..._0x1b6bb8);return _0xe7b17f?'-/'+_0xe7b17f+'/':'';};function extractFilename(_0x573f69){const _0x53da02=new URL(_0x573f69),_0x52ff93=_0x53da02['pathname']+_0x53da02['search']+_0x53da02['hash'],_0x6d9378=_0x52ff93['lastIndexOf']('http'),_0x722442=_0x52ff93['lastIndexOf']('/');let _0x31e7b0='';return _0x6d9378>=0x0?_0x31e7b0=_0x52ff93['slice'](_0x6d9378):_0x722442>=0x0&&(_0x31e7b0=_0x52ff93['slice'](_0x722442+0x1)),_0x31e7b0;}function extractUuid(_0x128c36){const _0x3960d1=new URL(_0x128c36),{pathname:_0x5682bf}=_0x3960d1,_0x512dcc=_0x5682bf['indexOf']('/'),_0x6d6b67=_0x5682bf['indexOf']('/',_0x512dcc+0x1);return _0x5682bf['substring'](_0x512dcc+0x1,_0x6d6b67);}function extractCdnUrlModifiers(_0x106109){const _0x2970dd=trimFilename(_0x106109),_0x4a2283=new URL(_0x2970dd),_0x4eb1f2=_0x4a2283['pathname']['indexOf']('/-/');if(-0x1===_0x4eb1f2)return'';return _0x4a2283['pathname']['substring'](_0x4eb1f2)['slice'](0x1);}function extractOperations(_0x1e662f){return extractCdnUrlModifiers(_0x1e662f)['split']('/-/')['filter'](Boolean)['map'](_0xb4d81=>normalizeCdnOperation(_0xb4d81));}function trimFilename(_0x56588b){const _0xa72236=new URL(_0x56588b),_0x3edf54=extractFilename(_0x56588b),_0x345aad=isFileUrl(_0x3edf54)?splitFileUrl(_0x3edf54)['pathname']:_0x3edf54;return _0xa72236['pathname']=_0xa72236['pathname']['replace'](_0x345aad,''),_0xa72236['search']='',_0xa72236['hash']='',_0xa72236['toString']();}function isFileUrl(_0x174bfe){return _0x174bfe['startsWith']('http');}function splitFileUrl(_0x4ec552){const _0x20be64=new URL(_0x4ec552);return{'pathname':''+_0x20be64['origin']+(_0x20be64['pathname']??''),'search':_0x20be64['search']??'','hash':_0x20be64['hash']??''};}var createCdnUrl=(_0x4e76a8,_0x4ae110,_0x4fec6c)=>{const _0x39773b=new URL(trimFilename(_0x4e76a8)),_0x3d5b81=_0x4fec6c??extractFilename(_0x4e76a8),_0x599fda=_0x4ae110??'';if(_0x39773b['pathname']['startsWith']('//')&&(_0x39773b['pathname']=_0x39773b['pathname']['replace']('//','/')),_0x3d5b81&&isFileUrl(_0x3d5b81)){const _0x37d021=splitFileUrl(_0x3d5b81);_0x39773b['pathname']=''+_0x39773b['pathname']+_0x599fda+(_0x37d021['pathname']||''),_0x39773b['search']=_0x37d021['search'],_0x39773b['hash']=_0x37d021['hash'];}else _0x39773b['pathname']=''+_0x39773b['pathname']+_0x599fda+(_0x3d5b81||'');return _0x39773b['toString']();},createOriginalUrl=(_0x27a72c,_0x44a20d)=>{const _0x38b7bb=new URL(_0x27a72c);return _0x38b7bb['pathname']=_0x44a20d+'/',_0x38b7bb['toString']();},stringToArray=(_0x3abbd0,_0x38a1c0=',')=>_0x3abbd0['trim']()['split'](_0x38a1c0)['map'](_0x2e1346=>_0x2e1346['trim']())['filter'](_0x27971d=>_0x27971d['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(_0x23bee3,_0x70cdf7){if('number'==typeof _0x70cdf7){const _0x3e6597=_0x70cdf7;return OPERATIONS_DEFAULTS[_0x23bee3]!==_0x3e6597?_0x23bee3+'/'+_0x3e6597:'';}if('boolean'==typeof _0x70cdf7){const _0x3ee955=_0x70cdf7;return OPERATIONS_DEFAULTS[_0x23bee3]!==_0x3ee955?''+_0x23bee3:'';}if('filter'===_0x23bee3&&_0x70cdf7){const {name:_0x4694b0,amount:_0x39b277}=_0x70cdf7;return OPERATIONS_DEFAULTS['filter']===_0x39b277?'':_0x23bee3+'/'+_0x4694b0+'/'+_0x39b277;}if('crop'===_0x23bee3&&_0x70cdf7){const {dimensions:_0x326693,coords:_0x560919}=_0x70cdf7;return _0x23bee3+'/'+_0x326693['join']('x')+'/'+_0x560919['join'](',');}return'';}function transformationsToOperations(_0x24c77b){return joinCdnOperations(...SUPPORTED_OPERATIONS_ORDERED['filter'](_0x209805=>void 0x0!==_0x24c77b[_0x209805]&&null!==_0x24c77b[_0x209805])['map'](_0x1b3c36=>transformationToStr(_0x1b3c36,_0x24c77b[_0x1b3c36]))['filter'](_0x327d24=>!!_0x327d24));}var COMMON_OPERATIONS=joinCdnOperations('format/auto','progressive/yes'),asNumber=([_0x315d8f])=>void 0x0!==_0x315d8f?Number(_0x315d8f):void 0x0,asBoolean=()=>!0x0,asFilter=([_0x2657ad,_0x80a09c])=>({'name':_0x2657ad,'amount':void 0x0!==_0x80a09c?Number(_0x80a09c):0x64}),asCrop=([_0x58c53b,_0x3074d6])=>{if(!/\d+x\d+/['test'](_0x58c53b)||!/\d+,\d+/['test'](_0x3074d6))throw new Error('Crop\x20by\x20aspect\x20ratio,\x20percentage\x20or\x20alignment\x20shortcuts\x20is\x20not\x20supported.');return{'dimensions':stringToArray(_0x58c53b,'x')['map'](Number),'coords':stringToArray(_0x3074d6)['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':_0x2fb83f=>{const [_0x3d0723,_0x2ee181]=_0x2fb83f,{dimensions:_0x500dd2,coords:_0x2b3832}=asCrop([_0x3d0723,_0x2ee181]);return{'dimensions':_0x500dd2,'coords':_0x2b3832};}});function operationsToTransformations(_0x16548a){const _0x5f16d7={};for(const _0x279808 of _0x16548a){const [_0x37b865,..._0x4242eb]=_0x279808['split']('/');if(!_0x37b865||!SUPPORTED_OPERATIONS_ORDERED['includes'](_0x37b865))continue;const _0x5e7d63=_0x37b865,_0x4ce201=OPERATION_PROCESSORS[_0x5e7d63];try{const _0x3564aa=_0x4ce201(_0x4242eb);_0x5f16d7[_0x5e7d63]=_0x3564aa;}catch(_0x51f61c){console['warn'](['Failed\x20to\x20parse\x20URL\x20operation\x20\x22'+_0x279808+'\x22.\x20It\x20will\x20be\x20ignored.',_0x51f61c instanceof Error?'Error\x20message:\x20\x22'+_0x51f61c['message']+'\x22':_0x51f61c,'If\x20you\x20need\x20this\x20functionality,\x20please\x20feel\x20free\x20to\x20open\x20an\x20issue\x20at\x20https://github.com/uploadcare/blocks/issues/new']['join']('\x0a'));}}return _0x5f16d7;}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=_0x3a4135=>{const _0x504c41=new Intl['Locale'](_0x3a4135);let _0x49d129='ltr';const _0x5e9080=_0x504c41['getTextInfo']?.()['direction'];return _0x5e9080?_0x49d129=_0x5e9080:_0x504c41['textInfo']?.['direction']&&(_0x49d129=_0x504c41['textInfo']['direction']),_0x49d129;},getPluralForm=(_0x3f081c,_0x27aa27)=>new Intl['PluralRules'](_0x3f081c)['select'](_0x27aa27),DEFAULT_TRANSFORMER=_0x59d43d=>_0x59d43d,OPEN_TOKEN='{{',CLOSE_TOKEN='}}',PLURAL_PREFIX='plural:';function applyTemplateData(_0x171f25,_0xd3cf6a={},_0x4a8d85={}){const {openToken:_0x5b08ee=OPEN_TOKEN,closeToken:_0x4e399e=CLOSE_TOKEN,transform:_0xac1ef2=DEFAULT_TRANSFORMER}=_0x4a8d85;for(const _0x34c015 in _0xd3cf6a){const _0x10a274=_0xd3cf6a[_0x34c015],_0x153cc5=null!=_0x10a274?_0x10a274['toString']():void 0x0,_0x3aa125='string'==typeof _0x153cc5?_0xac1ef2(_0x153cc5):String(_0x153cc5);_0x171f25=_0x171f25['replaceAll'](_0x5b08ee+_0x34c015+_0x4e399e,_0x3aa125);}return _0x171f25;}function getPluralObjects(_0x1a3e34){const _0x5ca62d=[];let _0xed2f9=_0x1a3e34['indexOf'](OPEN_TOKEN);for(;-0x1!==_0xed2f9;){const _0x481519=_0x1a3e34['indexOf'](CLOSE_TOKEN,_0xed2f9);if(-0x1===_0x481519)break;const _0xa8b7da=_0x1a3e34['substring'](_0xed2f9+0x2,_0x481519);if(_0xa8b7da['startsWith'](PLURAL_PREFIX)){const _0x1455cf=_0x1a3e34['substring'](_0xed2f9+0x2,_0x481519)['replace'](PLURAL_PREFIX,''),_0x3d6156=_0x1455cf['substring'](0x0,_0x1455cf['indexOf']('(')),_0x33f7fc=_0x1455cf['substring'](_0x1455cf['indexOf']('(')+0x1,_0x1455cf['indexOf'](')'));_0x5ca62d['push']({'variable':_0xa8b7da,'pluralKey':_0x3d6156,'countVariable':_0x33f7fc});}_0xed2f9=_0x1a3e34['indexOf'](OPEN_TOKEN,_0x481519);}return _0x5ca62d;}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'](_0x1e8c42){0x0===e['clientsRegistry']['size']&&e['attachTracker'](),e['clientsRegistry']['add'](_0x1e8c42);}static['unregisterClient'](_0x26a85f){e['clientsRegistry']['delete'](_0x26a85f),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:_0x24729f,attribute:_0x325c42,onSuccess:_0x1ed414,onTimeout:_0x10699d,timeout:_0x102ad9=0x12c})=>{const _0x556996=_0x24729f['getAttribute'](_0x325c42);if(null!==_0x556996)return void _0x1ed414(_0x556996);const _0x4be704=new MutationObserver(_0x80edac=>{const _0x4b8b00=_0x80edac[_0x80edac['length']-0x1];_0x4b8b00&&_0x42731c(_0x4b8b00);});_0x4be704['observe'](_0x24729f,{'attributes':!0x0,'attributeFilter':[_0x325c42]});const _0x3d5536=window['setTimeout'](()=>{_0x4be704['disconnect'](),_0x10699d();},_0x102ad9),_0x42731c=_0x188f0d=>{const _0x22b534=_0x24729f['getAttribute'](_0x325c42);'attributes'===_0x188f0d['type']&&_0x188f0d['attributeName']===_0x325c42&&null!==_0x22b534&&(window['clearTimeout'](_0x3d5536),_0x4be704['disconnect'](),_0x1ed414(_0x22b534));};},blockCtx=()=>({}),activityBlockCtx=_0x1c87d2=>({...blockCtx(),'*currentActivity':null,'*currentActivityParams':{},'*history':[],'*historyBack':null,'*closeModal':()=>{_0x1c87d2['modalManager']?.['close'](_0x1c87d2['$']['*currentActivity']),_0x1c87d2['set$']({'*currentActivity':null});}}),uploaderBlockCtx=_0x13938e=>({...activityBlockCtx(_0x13938e),'*commonProgress':0x0,'*uploadList':[],'*uploadQueue':new Queue(0x1),'*collectionErrors':[],'*collectionState':null,'*groupInfo':null,'*uploadTrigger':new Set(),'*secureUploadsManager':null}),solutionBlockCtx=_0x53333e=>({...uploaderBlockCtx(_0x53333e),'*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=(_0x2adf01,_0x320741)=>{localeRegistry['has'](_0x2adf01)&&console['log']('Locale\x20'+_0x2adf01+'\x20is\x20already\x20defined.\x20Overwriting...'),localeRegistry['set'](_0x2adf01,{...en_default,..._0x320741});},defineLocaleAsync=(_0x30d187,_0x2b9021)=>{localeResolvers['set'](_0x30d187,_0x2b9021);},defineLocale=(_0x5063d2,_0x449f24)=>{'function'==typeof _0x449f24?defineLocaleAsync(_0x5063d2,_0x449f24):defineLocaleSync(_0x5063d2,_0x449f24);},resolveLocaleDefinition=async _0x5ee5b8=>{if(!localeRegistry['has'](_0x5ee5b8)){if(!localeResolvers['has'](_0x5ee5b8))throw new Error('Locale\x20'+_0x5ee5b8+'\x20is\x20not\x20defined');const _0x59e1f4=localeResolvers['get'](_0x5ee5b8),_0x5964ab=await _0x59e1f4();defineLocaleSync(_0x5ee5b8,_0x5964ab);}return localeRegistry['get'](_0x5ee5b8);};defineLocale('en',en_default);var localeStateKey=_0x338e62=>'*l10n/'+_0x338e62,DEFAULT_LOCALE='en',LocaleManager=class{['_blockInstance']=null;['_localeName']='';['_callbacks']=new Set();['_boundBlocks']=new Map();constructor(_0x438322){this['_blockInstance']=_0x438322;for(const [_0x397b49,_0x1a5450]of Object['entries'](en_default)){const _0xf75fa5=!this['_blockInstance']['has'](localeStateKey(_0x397b49))||!this['_blockInstance']['$'][localeStateKey(_0x397b49)];this['_blockInstance']['add'](localeStateKey(_0x397b49),_0x1a5450,_0xf75fa5);}setTimeout(()=>{_0x438322['subConfigValue']('localeName',async _0x1c3dbd=>{if(!this['_blockInstance']||!_0x1c3dbd)return;this['_localeName']=_0x1c3dbd;const _0x24cc65=await resolveLocaleDefinition(_0x1c3dbd);if(_0x1c3dbd!==DEFAULT_LOCALE&&this['_localeName']!==_0x1c3dbd)return;const _0x26a630=this['_blockInstance']['cfg']['localeDefinitionOverride']?.[_0x1c3dbd];for(const [_0x380a0a,_0x91b12a]of Object['entries'](_0x24cc65)){const _0x52eabe=_0x26a630?.[_0x380a0a];this['_blockInstance']['add'](localeStateKey(_0x380a0a),_0x52eabe??_0x91b12a,!0x0);for(const _0x1caff4 of this['_callbacks'])_0x1caff4();}}),_0x438322['subConfigValue']('localeDefinitionOverride',_0x582fdb=>{if(!_0x582fdb)return;const _0x2b98f1=_0x582fdb[this['_localeName']];if(_0x2b98f1)for(const [_0x197ddc,_0x11e473]of Object['entries'](_0x2b98f1)){this['_blockInstance']?.['add'](localeStateKey(_0x197ddc),_0x11e473,!0x0);for(const _0x19c0d0 of this['_callbacks'])_0x19c0d0();}});});}['onLocaleChange'](_0x8e27c4){const _0x25a962=debounce(_0x8e27c4,0x0);return this['_callbacks']['add'](_0x25a962),()=>{this['_callbacks']['delete'](_0x25a962);};}['bindL10n'](_0x50120a,_0x16d0d0,_0x24a6e4){_0x50120a['$'][_0x16d0d0]=_0x24a6e4(),this['_boundBlocks']['has'](_0x50120a)||this['_boundBlocks']['set'](_0x50120a,new Map()),this['_boundBlocks']['get'](_0x50120a)?.['get'](_0x16d0d0)?.();const _0x2ce13f=this['onLocaleChange'](()=>{_0x50120a['$'][_0x16d0d0]=_0x24a6e4();});this['_boundBlocks']['get'](_0x50120a)?.['set'](_0x16d0d0,_0x2ce13f);}['destroyL10nBindings'](_0x3fa726){const _0x3dbef6=this['_boundBlocks']['get'](_0x3fa726);if(_0x3dbef6){for(const _0x40b5dc of _0x3dbef6['values']())_0x40b5dc();this['_boundBlocks']['delete'](_0x3fa726);}}['destroy'](){this['_callbacks']['clear']();}};function l10nProcessor(_0x39e538,_0x1a9381){[..._0x39e538['querySelectorAll']('[l10n]')]['forEach'](_0x83231f=>{const _0x4d9f6a=_0x83231f['getAttribute']('l10n');if(!_0x4d9f6a)return;const _0x162111=_0x4d9f6a['split'](';');for(const _0x214ab0 of _0x162111)_0x214ab0&&locale(_0x83231f,_0x214ab0,_0x1a9381);});}var locale=(_0x80812d,_0x179377,_0x4c2b37)=>{let _0x8e719b='textContent',_0x2d24d4=!0x1;if(_0x179377['includes'](':')){const _0xb06764=_0x179377['split'](':');if(0x2!==_0xb06764['length'])return void console['warn']('l10n\x20attribute\x20value\x20should\x20be\x20in\x20format\x20\x22property:key\x22\x20or\x20\x22key\x22.\x20Found:\x20'+_0x179377);const _0x3202d0=_0xb06764;_0x8e719b=_0x3202d0[0x0],_0x179377=_0x3202d0[0x1],_0x8e719b['startsWith']('@')&&(_0x8e719b=_0x8e719b['slice'](0x1),_0x2d24d4=!0x0);}const _0xc13f07=_0x179377;_0x4c2b37['has'](_0xc13f07)&&_0x4c2b37['sub'](_0xc13f07,_0x326254=>{if(!_0x326254)return;_0x4c2b37['l10nProcessorSubs']['has'](_0xc13f07)||_0x4c2b37['l10nProcessorSubs']['set'](_0xc13f07,new Set());const _0x4e4458=_0x4c2b37['l10nProcessorSubs']['get'](_0xc13f07);_0x4e4458?.['forEach'](_0x3d5e5e=>{_0x3d5e5e['remove'](),_0x4e4458['delete'](_0x3d5e5e),_0x4c2b37['allSubs']['delete'](_0x3d5e5e);});const _0x4ea13f=localeStateKey(_0x326254)['replace']('*','');_0x4c2b37['nodeCtx']['has'](_0x4ea13f)||_0x4c2b37['nodeCtx']['add'](_0x4ea13f,_0x326254);const _0xa07cc8=_0x4c2b37['nodeCtx']['sub'](_0x4ea13f,()=>{_0x80812d[_0x8e719b]=_0x4c2b37['l10n'](_0x326254);});_0x4e4458?.['add'](_0xa07cc8),_0x4c2b37['allSubs']['add'](_0xa07cc8),_0x80812d['removeAttribute']('l10n');});const _0x4a6bd0=localeStateKey(_0x179377);_0x4c2b37['has'](_0x4a6bd0)||_0x4c2b37['add'](_0x4a6bd0,''),_0x4c2b37['sub'](_0x4a6bd0,()=>{_0x2d24d4?_0x80812d['setAttribute'](_0x8e719b,_0x4c2b37['l10n'](_0x179377)):_0x80812d[_0x8e719b]=_0x4c2b37['l10n'](_0x179377);}),_0x80812d['removeAttribute']('l10n');},ScopedMinimalWindow=class{['_listeners']=new Map();['_scope']=[];['addEventListener'](_0x549230,_0x54503c){const _0x375b64=_0x31f169=>{const _0x3171d1=_0x31f169['target'];_0x3171d1 instanceof Node&&this['_scope']['some'](_0x3d7790=>_0x3d7790===_0x3171d1||_0x3d7790['contains'](_0x3171d1))&&_0x54503c(_0x31f169);};this['_listeners']['set'](_0x54503c,_0x375b64),window['addEventListener'](_0x549230,_0x375b64);}['removeEventListener'](_0x9c7af8,_0x16b60e){const _0x559d01=this['_listeners']['get'](_0x16b60e);_0x559d01&&window['removeEventListener'](_0x9c7af8,_0x559d01),this['_listeners']['delete'](_0x16b60e);}get['CustomEvent'](){return window['CustomEvent'];}get['document'](){return window['document'];}get['navigator'](){return window['navigator'];}['registerScope'](_0x5c1c92){this['_scope']['push'](_0x5c1c92);}['destroy'](){this['_scope']=[];for(const _0x13b2fc of this['_listeners']['values']())window['removeEventListener']('keydown',_0x13b2fc),window['removeEventListener']('keyup',_0x13b2fc);this['_listeners']['clear']();}},A11y=class{['_destroyKeyUX'];['_scopedWindow'];constructor(){this['_scopedWindow']=new ScopedMinimalWindow(),this['_destroyKeyUX']=startKeyUX(this['_scopedWindow'],[focusGroupKeyUX(),pressKeyUX('is-pressed'),jumpKeyUX(),hiddenKeyUX()]);}['registerBlock'](_0x3f5400){this['_scopedWindow']['registerScope'](_0x3f5400);}['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(_0x4f7803){this['_block']=_0x4f7803;}['_debugPrint'](..._0x4bbcfe){this['_block']['debugPrint']('[modal-manager]',..._0x4bbcfe);}['registerModal'](_0x1613e8,_0x1abe13){this['_modals']['set'](_0x1613e8,_0x1abe13),this['_notify'](ModalEvents['ADD'],{'id':_0x1613e8,'modal':_0x1abe13});}['deleteModal'](_0x4cdc48){if(!this['_modals']['has'](_0x4cdc48))return!0x1;const _0x1ab5da=this['_modals']['get'](_0x4cdc48);return this['_modals']['delete'](_0x4cdc48),this['_activeModals']['delete'](_0x4cdc48),this['_notify'](ModalEvents['DELETE'],{'id':_0x4cdc48,'modal':_0x1ab5da}),!0x0;}['open'](_0x52cf0f){if(!this['_modals']['has'](_0x52cf0f))return this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x52cf0f+'\x22\x20not\x20found'),!0x1;const _0x45f227=this['_modals']['get'](_0x52cf0f);return this['_activeModals']['add'](_0x52cf0f),this['_notify'](ModalEvents['OPEN'],{'modal':_0x45f227,'id':_0x52cf0f}),!0x0;}['close'](_0x4eb2cf){if(!this['_modals']['has'](_0x4eb2cf)||!this['_activeModals']['has'](_0x4eb2cf))return this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x4eb2cf+'\x22\x20not\x20found\x20or\x20not\x20active'),!0x1;const _0x1c01e8=this['_modals']['get'](_0x4eb2cf);return this['_activeModals']['delete'](_0x4eb2cf),this['_notify'](ModalEvents['CLOSE'],{'id':_0x4eb2cf,'modal':_0x1c01e8}),!0x0;}['toggle'](_0x4d28e4){return this['_modals']['has'](_0x4d28e4)?this['_activeModals']['has'](_0x4d28e4)?this['close'](_0x4d28e4):this['open'](_0x4d28e4):(this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x4d28e4+'\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 _0x168d11=Array['from'](this['_activeModals'])['pop']();return!!_0x168d11&&this['close'](_0x168d11);}['closeAll'](){const _0x195f34=this['_activeModals']['size'];return this['_activeModals']['clear'](),this['_notify'](ModalEvents['CLOSE_ALL'],{}),_0x195f34;}['subscribe'](_0x4479ba,_0x146b43){return this['_subscribers']['has'](_0x4479ba)||this['_subscribers']['set'](_0x4479ba,new Set()),this['_subscribers']['get'](_0x4479ba)?.['add'](_0x146b43),()=>this['unsubscribe'](_0x4479ba,_0x146b43);}['unsubscribe'](_0x50dc75,_0x2d9335){this['_subscribers']['has'](_0x50dc75)&&this['_subscribers']['get'](_0x50dc75)?.['delete'](_0x2d9335);}['_notify'](_0x363d92,_0x4cc070){if(this['_subscribers']['has'](_0x363d92)){for(const _0x3b1cac of this['_subscribers']['get'](_0x363d92)??new Set())try{_0x3b1cac(_0x4cc070);}catch(_0xde8e81){this['_block']['telemetryManager']['sendEventError'](_0xde8e81,'modal\x20subscriber'),this['_debugPrint']('Error\x20in\x20modal\x20subscriber:',_0xde8e81);}}}['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(_0x1ca6e1){this['_block']=_0x1ca6e1,this['_telemetryInstance']=new p(),this['_queue']=new Queue(0xa);for(const _0x28fc16 of Object['keys'](this['_config']))this['_block']['subConfigValue'](_0x28fc16,_0x531fa9=>{this['_initialized']&&this['_config'][_0x28fc16]!==_0x531fa9&&this['sendEvent']({'eventType':InternalEventType['CHANGE_CONFIG']}),this['_setConfig'](_0x28fc16,_0x531fa9);});}['_init'](_0x54b001){_0x54b001!==InternalEventType['INIT_SOLUTION']||this['_initialized']||(this['_initialized']=!0x0);}['_setConfig'](_0x2fe93,_0x34f568){this['_config'][_0x2fe93]!==_0x34f568&&(this['_config'][_0x2fe93]=_0x34f568);}['_formattingPayload'](_0x181cf4){const _0x3fe8b4=_0x181cf4['payload']?{..._0x181cf4['payload']}:{};_0x3fe8b4['activity']&&(_0x3fe8b4['activity']=void 0x0);const _0x33d39b={..._0x181cf4};return _0x181cf4['eventType']!==InternalEventType['INIT_SOLUTION']&&_0x181cf4['eventType']!==InternalEventType['CHANGE_CONFIG']||(_0x33d39b['config']=this['_config']),{..._0x33d39b,'appVersion':PACKAGE_VERSION,'appName':PACKAGE_NAME,'sessionId':this['_sessionId'],'component':this['_solution'],'activity':this['_activity'],'projectPubkey':this['_config']['pubkey'],'userAgent':navigator['userAgent'],'eventType':_0x33d39b['eventType']??'','eventTimestamp':this['_timestamp'],'payload':{'location':this['_location'],..._0x3fe8b4}};}['_excludedEvents'](_0x1c9afa){return!(!_0x1c9afa||![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'](_0x1c9afa));}['sendEvent'](_0x337c57){const _0x46328c=this['_formattingPayload']({'eventType':_0x337c57['eventType'],'payload':_0x337c57['payload'],'config':_0x337c57['config']});this['_init'](_0x337c57['eventType']);if(this['_excludedEvents'](_0x337c57['eventType']))return;this['_lastPayload']&&this['_checkObj'](this['_lastPayload'],_0x46328c)||this['_queue']['add'](async()=>{this['_lastPayload']=_0x46328c,await this['_telemetryInstance']['sendEvent'](_0x46328c);});}['sendEventError'](_0x4efc99,_0xcdcbe='unknown'){this['sendEvent']({'eventType':InternalEventType['ERROR_EVENT'],'payload':{'metadata':{'event':'error','text':'Error\x20in\x20'+_0xcdcbe,'error':_0x4efc99['message']}}});}['sendEventCloudImageEditor'](_0x1431f4,_0x4efc15,_0x5178f3={}){this['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'tabId':_0x4efc15,'node':_0x1431f4['currentTarget']?.['tagName'],'event':_0x1431f4['type'],..._0x5178f3}}});}['_checkObj'](_0x20e0f1,_0x4fd4f7){if(JSON['stringify'](_0x20e0f1)===JSON['stringify'](_0x4fd4f7))return!0x0;if('object'!=typeof _0x20e0f1||'object'!=typeof _0x4fd4f7||null==_0x20e0f1||null==_0x4fd4f7)return!0x1;const _0x5830d3=Object['keys'](_0x20e0f1),_0x33c9c3=Object['keys'](_0x4fd4f7);if(_0x5830d3['length']!==_0x33c9c3['length'])return!0x1;for(const _0x2d789 of _0x5830d3){if(!Object['hasOwn'](_0x4fd4f7,_0x2d789))return!0x1;if(!this['_checkObj'](_0x20e0f1[_0x2d789],_0x4fd4f7[_0x2d789]))return!0x1;}return!0x0;}get['_timestamp'](){return Date['now']();}get['_solution'](){if(!this['_block']['has']('*solution'))return null;const _0x247d73=this['_block']['$']['*solution'];return _0x247d73?_0x247d73['toLowerCase']():null;}get['_activity'](){return this['_block']['has']('*currentActivity')?this['_block']['$']['*currentActivity']??null:null;}get['_location'](){return location['origin'];}},sharedConfigKey=_0x550f87=>'*cfg/'+_0x550f87;function testModeProcessor(_0x3d6df2,_0x546f71){const _0x3eb788=_0x3d6df2['querySelectorAll']('[data-testid]');if(0x0===_0x3eb788['length'])return;const _0x6bc70a=new WeakMap();for(const _0x3a8ca4 of _0x3eb788){const _0x113dae=_0x3a8ca4['getAttribute']('data-testid');_0x113dae&&_0x6bc70a['set'](_0x3a8ca4,_0x113dae);}_0x546f71['subConfigValue']('testMode',_0x3167d9=>{if(!_0x3167d9){for(const _0x4444a8 of _0x3eb788)_0x4444a8['removeAttribute']('data-testid');return;}const _0x1e40cd=_0x546f71['testId'];for(const _0x50afa7 of _0x3eb788){const _0x20eb4a=_0x6bc70a['get'](_0x50afa7);_0x20eb4a&&_0x50afa7['setAttribute']('data-testid',_0x1e40cd+'--'+_0x20eb4a);}});}var TAG_PREFIX='uc-',Block=class extends BaseComponent{['__cfgProxy'];['l10nProcessorSubs']=new Map();static ['StateConsumerScope']=null;static ['styleAttrs']=[];['requireCtxName']=!0x1;['activityType']=null;['init$']=blockCtx();['l10n'](_0x22e537,_0x1d7508={}){if(!_0x22e537)return'';const _0x3c1b02=this['$'][localeStateKey(_0x22e537)]||_0x22e537,_0x24aefe=getPluralObjects(_0x3c1b02);for(const _0x5aea9b of _0x24aefe)_0x1d7508[_0x5aea9b['variable']]=this['pluralize'](_0x5aea9b['pluralKey'],Number(_0x1d7508[_0x5aea9b['countVariable']]));return applyTemplateData(_0x3c1b02,_0x1d7508);}['pluralize'](_0xe7d486,_0x40be40){const _0x191409=this['l10n']('locale-id')||'en',_0x39f24d=getPluralForm(_0x191409,_0x40be40);return this['l10n'](_0xe7d486+'__'+_0x39f24d);}['bindL10n'](_0x21fea3,_0xa279f){this['localeManager']?.['bindL10n'](this,_0x21fea3,_0xa279f);}constructor(){super(),this['addTemplateProcessor'](l10nProcessor),this['addTemplateProcessor'](testModeProcessor);}['emit'](_0x1d2bde,_0x3bd8e2,_0x54782f){const _0x396012=this['has']('*eventEmitter')?this['$']['*eventEmitter']:void 0x0;_0x396012&&(_0x396012['emit'](_0x1d2bde,_0x3bd8e2,_0x54782f),this['telemetryManager']['sendEvent']({'eventType':_0x1d2bde,'payload':'function'==typeof _0x3bd8e2?_0x3bd8e2():_0x3bd8e2}));}['hasBlockInCtx'](_0x2ad690){for(const _0x1e6f5e of this['blocksRegistry'])if(_0x2ad690(_0x1e6f5e))return!0x0;return!0x1;}['setOrAddState'](_0x3123ac,_0x23c2b1){this['add$']({[_0x3123ac]:_0x23c2b1},!0x0);}['connectedCallback'](){this['constructor']['styleAttrs']['forEach'](_0x334d4c=>{this['setAttribute'](_0x334d4c,'');}),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'),_0x330aea=>{const _0x31a427=getLocaleDirection(_0x330aea);this['style']['direction']='ltr'===_0x31a427?'':_0x31a427;}),this['subConfigValue']('testMode',_0x323667=>{_0x323667&&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 _0x76da28=this['blocksRegistry'];_0x76da28?.['delete'](this),this['localeManager']?.['destroyL10nBindings'](this),this['l10nProcessorSubs']=new Map(),Data['deleteCtx'](this),0x0===_0x76da28?.['size']&&setTimeout(()=>{this['destroyCtxCallback']();},0x0);}['destroyCtxCallback'](){Data['deleteCtx'](this['ctxName']),this['localeManager']?.['destroy'](),this['modalManager']?.['destroy']();}async['proxyUrl'](_0x25dde4){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'](_0x25dde4,{'uuid':extractUuid(_0x25dde4),'cdnUrlModifiers':extractCdnUrlModifiers(_0x25dde4),'fileName':extractFilename(_0x25dde4)});}catch(_0x33e060){return console['error']('Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.',_0x33e060),this['telemetryManager']['sendEventError'](_0x33e060,'secureDeliveryProxyUrlResolver.\x20Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.'),_0x25dde4;}return this['cfg']['secureDeliveryProxy']?applyTemplateData(this['cfg']['secureDeliveryProxy'],{'previewUrl':_0x25dde4},{'transform':_0x14d27d=>window['encodeURIComponent'](_0x14d27d)}):_0x25dde4;}get['cfg'](){if(!this['__cfgProxy']){const _0x4617ee=Object['create'](null);this['__cfgProxy']=new Proxy(_0x4617ee,{'set':(_0x80b8ab,_0x59a512,_0x252a95)=>{if('string'!=typeof _0x59a512)return!0x1;const _0x5a30f0=sharedConfigKey(_0x59a512);return this['has'](_0x5a30f0)||this['add'](_0x5a30f0,initialConfig[_0x59a512]),this['$'][_0x5a30f0]=_0x252a95,!0x0;},'get':(_0x291277,_0x14e50b)=>{const _0x52043b=sharedConfigKey(_0x14e50b);return this['has'](_0x52043b)||this['add'](_0x52043b,initialConfig[_0x14e50b]),this['$'][sharedConfigKey(_0x14e50b)];}});}return this['__cfgProxy'];}['subConfigValue'](_0x316c23,_0x4c4bc7){const _0x5be357=sharedConfigKey(_0x316c23);this['has'](_0x5be357)||this['add'](_0x5be357,initialConfig[_0x316c23]),this['sub'](_0x5be357,_0x4c4bc7);}['debugPrint'](..._0x39592b){if(!this['cfg']['debug'])return;let _0x26a236=_0x39592b;'function'==typeof _0x39592b?.[0x0]&&(_0x26a236=(0x0,_0x39592b[0x0])()),console['log']('['+this['ctxName']+']',..._0x26a236);}static['reg'](_0x453209){_0x453209?_0x453209['startsWith'](TAG_PREFIX)&&super['reg'](_0x453209):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 _0x5565c6=e['_activityCallbacks']['get'](this);this[ACTIVE_PROP]=!0x1,this['removeAttribute'](ACTIVE_ATTR),_0x5565c6?.['deactivateCallback']?.();}['_activate'](){const _0x58aec1=e['_activityCallbacks']['get'](this);this['$']['*historyBack']=this['historyBack']['bind'](this),this[ACTIVE_PROP]=!0x0,this['setAttribute'](ACTIVE_ATTR,''),_0x58aec1?.['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',_0x5833f9=>{try{this['activityType']!==_0x5833f9&&this[ACTIVE_PROP]?this['_deactivate']():this['activityType']!==_0x5833f9||this[ACTIVE_PROP]||this['_activate']();}catch(_0x5b9bc0){this['telemetryManager']['sendEventError'](_0x5b9bc0,'activity\x20\x22'+this['activityType']+'\x22'),console['error']('Error\x20in\x20activity\x20\x22'+this['activityType']+'\x22.\x20',_0x5b9bc0),this['$']['*currentActivity']=this['$']['*history'][this['$']['*history']['length']-0x1]??null;}_0x5833f9||(this['$']['*history']=[]);}));}['_historyFlush'](){let _0x3d70d6=this['$']['*history'];_0x3d70d6&&(_0x3d70d6['length']>0xa&&(_0x3d70d6=_0x3d70d6['slice'](_0x3d70d6['length']-0xb,_0x3d70d6['length']-0x1)),this['historyTracked']&&_0x3d70d6[_0x3d70d6['length']-0x1]!==this['activityType']&&_0x3d70d6['push'](this['activityType']),this['$']['*history']=_0x3d70d6);}['_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'](_0x3303d6,_0x210bba={}){const {onActivate:_0xac230d,onDeactivate:_0x5cc976}=_0x210bba;e['_activityCallbacks']['set'](this,{'activateCallback':_0xac230d,'deactivateCallback':_0x5cc976});}['unregisterActivity'](){this['isActivityActive']&&this['_deactivate'](),e['_activityCallbacks']['delete'](this);}['destroyCallback'](){super['destroyCallback'](),this['_isActivityRegistered']()&&this['unregisterActivity']();const _0x57ab4a=this['$']['*currentActivity'];!![...this['blocksRegistry']]['find'](_0x40ff73=>_0x40ff73 instanceof e&&_0x40ff73['activityType']===_0x57ab4a)||(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 _0x438f39=this['$']['*history'];if(_0x438f39){let _0x3aafe5=_0x438f39['pop']();for(;_0x3aafe5===this['activityType'];)_0x3aafe5=_0x438f39['pop']();let _0x398a2b=!!_0x3aafe5;if(_0x3aafe5){const _0x3a6ea8=[...this['blocksRegistry']]['find'](_0x3b7a48=>_0x3b7a48['activityType']===_0x3aafe5);_0x398a2b=_0x3a6ea8?.['couldOpenActivity']??!0x1;}_0x3aafe5=_0x398a2b?_0x3aafe5:void 0x0,_0x3aafe5&&this['modalManager']?.['open'](_0x3aafe5),this['$']['*currentActivity']=_0x3aafe5,this['$']['*history']=_0x438f39,_0x3aafe5||this['modalManager']?.['closeAll']();}}};function defineComponents(_0x16bc58){for(const _0x2fe944 in _0x16bc58){let _0x5ef462=[..._0x2fe944]['reduce']((_0x31eab0,_0x269731)=>(_0x269731['toUpperCase']()===_0x269731&&(_0x269731='-'+_0x269731['toLowerCase']()),_0x31eab0+=_0x269731),'');_0x5ef462['startsWith']('-')&&(_0x5ef462=_0x5ef462['replace']('-','')),_0x5ef462['startsWith']('uc-')||(_0x5ef462='uc-'+_0x5ef462),_0x16bc58[_0x2fe944]['reg']&&_0x16bc58[_0x2fe944]['reg'](_0x5ef462);}}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(_0x66ab28,_0x4a8823=!0x1){return new Promise((_0x5a6fe0,_0x36eeaa)=>{if('object'!=typeof document)return void _0x5a6fe0(null);if('object'==typeof window&&window[UC_WINDOW_KEY])return void _0x5a6fe0(window[UC_WINDOW_KEY]);const _0x42b470=document['createElement']('script');_0x42b470['async']=!0x0,_0x42b470['src']=_0x66ab28,_0x42b470['onerror']=()=>{_0x36eeaa();},_0x42b470['onload']=()=>{const _0x54b782=window[UC_WINDOW_KEY];_0x4a8823&&defineComponents(_0x54b782),_0x5a6fe0(_0x54b782);},document['head']['appendChild'](_0x42b470);});}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'](_0x1efb74){this['_template']=svg_sprite_default+_0x1efb74+'<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(_0x18e6ea,_0x10c8f8){for(const [_0x51281e,_0x5a55a1]of Object['entries'](_0x10c8f8))_0x18e6ea['setAttributeNS'](null,_0x51281e,_0x5a55a1['toString']());}function createSvgNode(_0x4a8ed2,_0x206e90={}){const _0x2ac9ff=document['createElementNS']('http://www.w3.org/2000/svg',_0x4a8ed2);return setSvgNodeAttrs(_0x2ac9ff,_0x206e90),_0x2ac9ff;}function cornerPath(_0x291e88,_0x498d68,_0x147689){const {x:_0x11438a,y:_0x2c9942,width:_0x57314b,height:_0x5adb5f}=_0x291e88,_0x2287ac=_0x498d68['includes']('w')?0x0:0x1,_0x13b9d8=_0x498d68['includes']('n')?0x0:0x1,_0x59dc8c=0x0===_0x2287ac?-0x1:0x1,_0x9798bc=0x0===_0x13b9d8?-0x1:0x1,_0x1e4ec9=[_0x11438a+_0x2287ac*_0x57314b+THUMB_OFFSET*_0x59dc8c,_0x2c9942+_0x13b9d8*_0x5adb5f+THUMB_OFFSET*_0x9798bc-THUMB_CORNER_SIZE*_0x147689*_0x9798bc],_0x114503=[_0x11438a+_0x2287ac*_0x57314b+THUMB_OFFSET*_0x59dc8c,_0x2c9942+_0x13b9d8*_0x5adb5f+THUMB_OFFSET*_0x9798bc],_0x25033f=[_0x11438a+_0x2287ac*_0x57314b-THUMB_CORNER_SIZE*_0x147689*_0x59dc8c+THUMB_OFFSET*_0x59dc8c,_0x2c9942+_0x13b9d8*_0x5adb5f+THUMB_OFFSET*_0x9798bc];return{'d':'M\x20'+_0x1e4ec9[0x0]+'\x20'+_0x1e4ec9[0x1]+'\x20L\x20'+_0x114503[0x0]+'\x20'+_0x114503[0x1]+'\x20L\x20'+_0x25033f[0x0]+'\x20'+_0x25033f[0x1],'center':[_0x114503[0x0],_0x114503[0x1]]};}function sidePath(_0x269490,_0x31c5be,_0x2882ae){const {x:_0x45e6c8,y:_0x5c35b6,width:_0xf52f39,height:_0x196ea0}=_0x269490,_0x419aed='n'===_0x31c5be||'s'===_0x31c5be,_0x136e54=_0x419aed?0.5:'w'===_0x31c5be?0x0:0x1,_0x454d5b='w'===_0x31c5be||'e'===_0x31c5be?0.5:'n'===_0x31c5be?0x0:0x1,_0x48a922='w'===_0x31c5be?-0x1:'e'===_0x31c5be?0x1:0x0,_0x494338='n'===_0x31c5be?-0x1:'s'===_0x31c5be?0x1:0x0;let _0x3ee857,_0x45be13;return _0x419aed?(_0x3ee857=[_0x45e6c8+_0x136e54*_0xf52f39-THUMB_SIDE_SIZE*_0x2882ae/0x2,_0x5c35b6+_0x454d5b*_0x196ea0+THUMB_OFFSET*_0x494338],_0x45be13=[_0x45e6c8+_0x136e54*_0xf52f39+THUMB_SIDE_SIZE*_0x2882ae/0x2,_0x5c35b6+_0x454d5b*_0x196ea0+THUMB_OFFSET*_0x494338]):(_0x3ee857=[_0x45e6c8+_0x136e54*_0xf52f39+THUMB_OFFSET*_0x48a922,_0x5c35b6+_0x454d5b*_0x196ea0-THUMB_SIDE_SIZE*_0x2882ae/0x2],_0x45be13=[_0x45e6c8+_0x136e54*_0xf52f39+THUMB_OFFSET*_0x48a922,_0x5c35b6+_0x454d5b*_0x196ea0+THUMB_SIDE_SIZE*_0x2882ae/0x2]),{'d':'M\x20'+_0x3ee857[0x0]+'\x20'+_0x3ee857[0x1]+'\x20L\x20'+_0x45be13[0x0]+'\x20'+_0x45be13[0x1],'center':[(_0x3ee857[0x0]+_0x45be13[0x0])/0x2,(_0x3ee857[0x1]+_0x45be13[0x1])/0x2]};}function thumbCursor(_0x3b0400){return''===_0x3b0400?'move':['e','w']['includes'](_0x3b0400)?'ew-resize':['n','s']['includes'](_0x3b0400)?'ns-resize':['nw','se']['includes'](_0x3b0400)?'nwse-resize':'nesw-resize';}function moveRect({rect:_0xcc32df,delta:[_0x33ce48,_0x5d1fdc],imageBox:_0x556297}){return constraintRect({..._0xcc32df,'x':_0xcc32df['x']+_0x33ce48,'y':_0xcc32df['y']+_0x5d1fdc},_0x556297);}function constraintRect(_0x16a11b,_0x2c13d4){let {x:_0x34629d}=_0x16a11b,{y:_0x46ec4b}=_0x16a11b;return _0x16a11b['x']<_0x2c13d4['x']?_0x34629d=_0x2c13d4['x']:_0x16a11b['x']+_0x16a11b['width']>_0x2c13d4['x']+_0x2c13d4['width']&&(_0x34629d=_0x2c13d4['x']+_0x2c13d4['width']-_0x16a11b['width']),_0x16a11b['y']<_0x2c13d4['y']?_0x46ec4b=_0x2c13d4['y']:_0x16a11b['y']+_0x16a11b['height']>_0x2c13d4['y']+_0x2c13d4['height']&&(_0x46ec4b=_0x2c13d4['y']+_0x2c13d4['height']-_0x16a11b['height']),{..._0x16a11b,'x':_0x34629d,'y':_0x46ec4b};}function resizeNorth({rect:_0x45dabd,delta:_0x3f3af7,aspectRatio:_0x4161d5,imageBox:_0x3d72eb}){const [,_0x25bd79]=_0x3f3af7;let {y:_0x4d6d6c,width:_0x5d9868,height:_0x5f30b8}=_0x45dabd;_0x4d6d6c+=_0x25bd79,_0x5f30b8-=_0x25bd79,_0x4161d5&&(_0x5d9868=_0x5f30b8*_0x4161d5);let _0x43fd2d=_0x45dabd['x']+_0x45dabd['width']/0x2-_0x5d9868/0x2;return _0x4d6d6c<=_0x3d72eb['y']&&(_0x4d6d6c=_0x3d72eb['y'],_0x5f30b8=_0x45dabd['y']+_0x45dabd['height']-_0x4d6d6c,_0x4161d5&&(_0x5d9868=_0x5f30b8*_0x4161d5,_0x43fd2d=_0x45dabd['x']+_0x45dabd['width']/0x2-_0x5d9868/0x2)),_0x43fd2d<=_0x3d72eb['x']&&(_0x43fd2d=_0x3d72eb['x'],_0x4d6d6c=_0x45dabd['y']+_0x45dabd['height']-_0x5f30b8),_0x43fd2d+_0x5d9868>=_0x3d72eb['x']+_0x3d72eb['width']&&(_0x43fd2d=Math['max'](_0x3d72eb['x'],_0x3d72eb['x']+_0x3d72eb['width']-_0x5d9868),_0x5d9868=_0x3d72eb['x']+_0x3d72eb['width']-_0x43fd2d,_0x4161d5&&(_0x5f30b8=_0x5d9868/_0x4161d5),_0x4d6d6c=_0x45dabd['y']+_0x45dabd['height']-_0x5f30b8),_0x5f30b8<MIN_CROP_SIZE&&(_0x5f30b8=MIN_CROP_SIZE,_0x4161d5&&(_0x5d9868=_0x5f30b8*_0x4161d5,_0x43fd2d=_0x45dabd['x']+_0x45dabd['width']/0x2-_0x5d9868/0x2),_0x4d6d6c=_0x45dabd['y']+_0x45dabd['height']-_0x5f30b8),_0x5d9868<MIN_CROP_SIZE&&(_0x5d9868=MIN_CROP_SIZE,_0x4161d5&&(_0x5f30b8=_0x5d9868/_0x4161d5,_0x43fd2d=_0x45dabd['x']+_0x45dabd['width']/0x2-_0x5d9868/0x2),_0x4d6d6c=_0x45dabd['y']+_0x45dabd['height']-_0x5f30b8),{'x':_0x43fd2d,'y':_0x4d6d6c,'width':_0x5d9868,'height':_0x5f30b8};}function resizeWest({rect:_0x39e463,delta:_0x1f836c,aspectRatio:_0x3ce4b1,imageBox:_0x2d5c56}){const [_0x30d04b]=_0x1f836c;let {x:_0x121717,width:_0x510be0,height:_0x1853e1}=_0x39e463;_0x121717+=_0x30d04b,_0x510be0-=_0x30d04b,_0x3ce4b1&&(_0x1853e1=_0x510be0/_0x3ce4b1);let _0x1a3f25=_0x39e463['y']+_0x39e463['height']/0x2-_0x1853e1/0x2;return _0x121717<=_0x2d5c56['x']&&(_0x121717=_0x2d5c56['x'],_0x510be0=_0x39e463['x']+_0x39e463['width']-_0x121717,_0x3ce4b1&&(_0x1853e1=_0x510be0/_0x3ce4b1,_0x1a3f25=_0x39e463['y']+_0x39e463['height']/0x2-_0x1853e1/0x2)),_0x1a3f25<=_0x2d5c56['y']&&(_0x1a3f25=_0x2d5c56['y'],_0x121717=_0x39e463['x']+_0x39e463['width']-_0x510be0),_0x1a3f25+_0x1853e1>=_0x2d5c56['y']+_0x2d5c56['height']&&(_0x1a3f25=Math['max'](_0x2d5c56['y'],_0x2d5c56['y']+_0x2d5c56['height']-_0x1853e1),_0x1853e1=_0x2d5c56['y']+_0x2d5c56['height']-_0x1a3f25,_0x3ce4b1&&(_0x510be0=_0x1853e1*_0x3ce4b1),_0x121717=_0x39e463['x']+_0x39e463['width']-_0x510be0),_0x1853e1<MIN_CROP_SIZE&&(_0x1853e1=MIN_CROP_SIZE,_0x3ce4b1&&(_0x510be0=_0x1853e1*_0x3ce4b1),_0x1a3f25=_0x39e463['y']+_0x39e463['height']/0x2-_0x1853e1/0x2,_0x121717=_0x39e463['x']+_0x39e463['width']-_0x510be0),_0x510be0<MIN_CROP_SIZE&&(_0x510be0=MIN_CROP_SIZE,_0x3ce4b1&&(_0x1853e1=_0x510be0/_0x3ce4b1),_0x1a3f25=_0x39e463['y']+_0x39e463['height']/0x2-_0x1853e1/0x2,_0x121717=_0x39e463['x']+_0x39e463['width']-_0x510be0),{'x':_0x121717,'y':_0x1a3f25,'width':_0x510be0,'height':_0x1853e1};}function resizeSouth({rect:_0x160c1a,delta:_0x149576,aspectRatio:_0x2ee7e2,imageBox:_0x5e92ac}){const [,_0x502640]=_0x149576;let {y:_0x5be0e5,width:_0x118909,height:_0x53e38a}=_0x160c1a;_0x53e38a+=_0x502640,_0x2ee7e2&&(_0x118909=_0x53e38a*_0x2ee7e2);let _0x1bc577=_0x160c1a['x']+_0x160c1a['width']/0x2-_0x118909/0x2;return _0x5be0e5+_0x53e38a>=_0x5e92ac['y']+_0x5e92ac['height']&&(_0x53e38a=_0x5e92ac['y']+_0x5e92ac['height']-_0x5be0e5,_0x2ee7e2&&(_0x118909=_0x53e38a*_0x2ee7e2),_0x1bc577=_0x160c1a['x']+_0x160c1a['width']/0x2-_0x118909/0x2),_0x1bc577<=_0x5e92ac['x']&&(_0x1bc577=_0x5e92ac['x'],_0x5be0e5=_0x160c1a['y']),_0x1bc577+_0x118909>=_0x5e92ac['x']+_0x5e92ac['width']&&(_0x1bc577=Math['max'](_0x5e92ac['x'],_0x5e92ac['x']+_0x5e92ac['width']-_0x118909),_0x118909=_0x5e92ac['x']+_0x5e92ac['width']-_0x1bc577,_0x2ee7e2&&(_0x53e38a=_0x118909/_0x2ee7e2),_0x5be0e5=_0x160c1a['y']),_0x53e38a<MIN_CROP_SIZE&&(_0x53e38a=MIN_CROP_SIZE,_0x2ee7e2&&(_0x118909=_0x53e38a*_0x2ee7e2),_0x1bc577=_0x160c1a['x']+_0x160c1a['width']/0x2-_0x118909/0x2),_0x118909<MIN_CROP_SIZE&&(_0x118909=MIN_CROP_SIZE,_0x2ee7e2&&(_0x53e38a=_0x118909/_0x2ee7e2),_0x1bc577=_0x160c1a['x']+_0x160c1a['width']/0x2-_0x118909/0x2),{'x':_0x1bc577,'y':_0x5be0e5,'width':_0x118909,'height':_0x53e38a};}function resizeEast({rect:_0x4a0655,delta:_0x357f35,aspectRatio:_0x419c7e,imageBox:_0x5d2c1a}){const [_0x364448]=_0x357f35;let {x:_0x28cc65,width:_0xfab2a6,height:_0x5888bf}=_0x4a0655;_0xfab2a6+=_0x364448,_0x419c7e&&(_0x5888bf=_0xfab2a6/_0x419c7e);let _0x2cb498=_0x4a0655['y']+_0x4a0655['height']/0x2-_0x5888bf/0x2;return _0x28cc65+_0xfab2a6>=_0x5d2c1a['x']+_0x5d2c1a['width']&&(_0xfab2a6=_0x5d2c1a['x']+_0x5d2c1a['width']-_0x28cc65,_0x419c7e&&(_0x5888bf=_0xfab2a6/_0x419c7e),_0x2cb498=_0x4a0655['y']+_0x4a0655['height']/0x2-_0x5888bf/0x2),_0x2cb498<=_0x5d2c1a['y']&&(_0x2cb498=_0x5d2c1a['y'],_0x28cc65=_0x4a0655['x']),_0x2cb498+_0x5888bf>=_0x5d2c1a['y']+_0x5d2c1a['height']&&(_0x2cb498=Math['max'](_0x5d2c1a['y'],_0x5d2c1a['y']+_0x5d2c1a['height']-_0x5888bf),_0x5888bf=_0x5d2c1a['y']+_0x5d2c1a['height']-_0x2cb498,_0x419c7e&&(_0xfab2a6=_0x5888bf*_0x419c7e),_0x28cc65=_0x4a0655['x']),_0x5888bf<MIN_CROP_SIZE&&(_0x5888bf=MIN_CROP_SIZE,_0x419c7e&&(_0xfab2a6=_0x5888bf*_0x419c7e),_0x2cb498=_0x4a0655['y']+_0x4a0655['height']/0x2-_0x5888bf/0x2),_0xfab2a6<MIN_CROP_SIZE&&(_0xfab2a6=MIN_CROP_SIZE,_0x419c7e&&(_0x5888bf=_0xfab2a6/_0x419c7e),_0x2cb498=_0x4a0655['y']+_0x4a0655['height']/0x2-_0x5888bf/0x2),{'x':_0x28cc65,'y':_0x2cb498,'width':_0xfab2a6,'height':_0x5888bf};}function resizeNorthWest({rect:_0x5790b5,delta:_0x42225e,aspectRatio:_0x4d82c4,imageBox:_0x22b082}){let [_0x3c0c6e,_0x1aa253]=_0x42225e,{x:_0x3e238c,y:_0x7b16b8,width:_0x4e0ca1,height:_0x309995}=_0x5790b5;return _0x3e238c+_0x3c0c6e<_0x22b082['x']&&(_0x3c0c6e=_0x22b082['x']-_0x3e238c),_0x7b16b8+_0x1aa253<_0x22b082['y']&&(_0x1aa253=_0x22b082['y']-_0x7b16b8),_0x3e238c+=_0x3c0c6e,_0x4e0ca1-=_0x3c0c6e,_0x7b16b8+=_0x1aa253,_0x309995-=_0x1aa253,_0x4d82c4&&Math['abs'](_0x4e0ca1/_0x309995)>_0x4d82c4?(_0x1aa253=_0x4e0ca1/_0x4d82c4-_0x309995,_0x309995+=_0x1aa253,_0x7b16b8-=_0x1aa253,_0x7b16b8<=_0x22b082['y']&&(_0x309995-=_0x22b082['y']-_0x7b16b8,_0x4e0ca1=_0x309995*_0x4d82c4,_0x3e238c=_0x5790b5['x']+_0x5790b5['width']-_0x4e0ca1,_0x7b16b8=_0x22b082['y'])):_0x4d82c4&&(_0x3c0c6e=_0x309995*_0x4d82c4-_0x4e0ca1,_0x4e0ca1+=_0x3c0c6e,_0x3e238c-=_0x3c0c6e,_0x3e238c<=_0x22b082['x']&&(_0x4e0ca1-=_0x22b082['x']-_0x3e238c,_0x309995=_0x4e0ca1/_0x4d82c4,_0x3e238c=_0x22b082['x'],_0x7b16b8=_0x5790b5['y']+_0x5790b5['height']-_0x309995)),_0x309995<MIN_CROP_SIZE&&(_0x309995=MIN_CROP_SIZE,_0x4d82c4&&(_0x4e0ca1=_0x309995*_0x4d82c4),_0x3e238c=_0x5790b5['x']+_0x5790b5['width']-_0x4e0ca1,_0x7b16b8=_0x5790b5['y']+_0x5790b5['height']-_0x309995),_0x4e0ca1<MIN_CROP_SIZE&&(_0x4e0ca1=MIN_CROP_SIZE,_0x4d82c4&&(_0x309995=_0x4e0ca1/_0x4d82c4),_0x3e238c=_0x5790b5['x']+_0x5790b5['width']-_0x4e0ca1,_0x7b16b8=_0x5790b5['y']+_0x5790b5['height']-_0x309995),{'x':_0x3e238c,'y':_0x7b16b8,'width':_0x4e0ca1,'height':_0x309995};}function resizeNorthEast({rect:_0x5aa4dd,delta:_0x4a928e,aspectRatio:_0x22b4e5,imageBox:_0x47cbba}){let [_0x434a6c,_0x5eb853]=_0x4a928e,{x:_0x14cc56,y:_0x5dc758,width:_0x4a01a6,height:_0x24496c}=_0x5aa4dd;return _0x14cc56+_0x4a01a6+_0x434a6c>_0x47cbba['x']+_0x47cbba['width']&&(_0x434a6c=_0x47cbba['x']+_0x47cbba['width']-_0x14cc56-_0x4a01a6),_0x5dc758+_0x5eb853<_0x47cbba['y']&&(_0x5eb853=_0x47cbba['y']-_0x5dc758),_0x4a01a6+=_0x434a6c,_0x5dc758+=_0x5eb853,_0x24496c-=_0x5eb853,_0x22b4e5&&Math['abs'](_0x4a01a6/_0x24496c)>_0x22b4e5?(_0x5eb853=_0x4a01a6/_0x22b4e5-_0x24496c,_0x24496c+=_0x5eb853,_0x5dc758-=_0x5eb853,_0x5dc758<=_0x47cbba['y']&&(_0x24496c-=_0x47cbba['y']-_0x5dc758,_0x4a01a6=_0x24496c*_0x22b4e5,_0x14cc56=_0x5aa4dd['x'],_0x5dc758=_0x47cbba['y'])):_0x22b4e5&&(_0x434a6c=_0x24496c*_0x22b4e5-_0x4a01a6,_0x4a01a6+=_0x434a6c,_0x14cc56+_0x4a01a6>=_0x47cbba['x']+_0x47cbba['width']&&(_0x4a01a6=_0x47cbba['x']+_0x47cbba['width']-_0x14cc56,_0x24496c=_0x4a01a6/_0x22b4e5,_0x14cc56=_0x47cbba['x']+_0x47cbba['width']-_0x4a01a6,_0x5dc758=_0x5aa4dd['y']+_0x5aa4dd['height']-_0x24496c)),_0x24496c<MIN_CROP_SIZE&&(_0x24496c=MIN_CROP_SIZE,_0x22b4e5&&(_0x4a01a6=_0x24496c*_0x22b4e5),_0x5dc758=_0x5aa4dd['y']+_0x5aa4dd['height']-_0x24496c),_0x4a01a6<MIN_CROP_SIZE&&(_0x4a01a6=MIN_CROP_SIZE,_0x22b4e5&&(_0x24496c=_0x4a01a6/_0x22b4e5),_0x5dc758=_0x5aa4dd['y']+_0x5aa4dd['height']-_0x24496c),{'x':_0x14cc56,'y':_0x5dc758,'width':_0x4a01a6,'height':_0x24496c};}function resizeSouthWest({rect:_0x492ea6,delta:_0x5814ed,aspectRatio:_0x588593,imageBox:_0xeb1f5a}){let [_0x1eec03,_0x472246]=_0x5814ed,{x:_0x3dccc7,y:_0x5b00a9,width:_0x23d5e5,height:_0x381ef2}=_0x492ea6;return _0x3dccc7+_0x1eec03<_0xeb1f5a['x']&&(_0x1eec03=_0xeb1f5a['x']-_0x3dccc7),_0x5b00a9+_0x381ef2+_0x472246>_0xeb1f5a['y']+_0xeb1f5a['height']&&(_0x472246=_0xeb1f5a['y']+_0xeb1f5a['height']-_0x5b00a9-_0x381ef2),_0x3dccc7+=_0x1eec03,_0x23d5e5-=_0x1eec03,_0x381ef2+=_0x472246,_0x588593&&Math['abs'](_0x23d5e5/_0x381ef2)>_0x588593?(_0x472246=_0x23d5e5/_0x588593-_0x381ef2,_0x381ef2+=_0x472246,_0x5b00a9+_0x381ef2>=_0xeb1f5a['y']+_0xeb1f5a['height']&&(_0x381ef2=_0xeb1f5a['y']+_0xeb1f5a['height']-_0x5b00a9,_0x23d5e5=_0x381ef2*_0x588593,_0x3dccc7=_0x492ea6['x']+_0x492ea6['width']-_0x23d5e5,_0x5b00a9=_0xeb1f5a['y']+_0xeb1f5a['height']-_0x381ef2)):_0x588593&&(_0x1eec03=_0x381ef2*_0x588593-_0x23d5e5,_0x23d5e5+=_0x1eec03,_0x3dccc7-=_0x1eec03,_0x3dccc7<=_0xeb1f5a['x']&&(_0x23d5e5-=_0xeb1f5a['x']-_0x3dccc7,_0x381ef2=_0x23d5e5/_0x588593,_0x3dccc7=_0xeb1f5a['x'],_0x5b00a9=_0x492ea6['y'])),_0x381ef2<MIN_CROP_SIZE&&(_0x381ef2=MIN_CROP_SIZE,_0x588593&&(_0x23d5e5=_0x381ef2*_0x588593),_0x3dccc7=_0x492ea6['x']+_0x492ea6['width']-_0x23d5e5),_0x23d5e5<MIN_CROP_SIZE&&(_0x23d5e5=MIN_CROP_SIZE,_0x588593&&(_0x381ef2=_0x23d5e5/_0x588593),_0x3dccc7=_0x492ea6['x']+_0x492ea6['width']-_0x23d5e5),{'x':_0x3dccc7,'y':_0x5b00a9,'width':_0x23d5e5,'height':_0x381ef2};}function resizeSouthEast({rect:_0x27a14b,delta:_0x2ecded,aspectRatio:_0x119ab0,imageBox:_0x36fca7}){let [_0x4316a4,_0x54cbba]=_0x2ecded,{x:_0x4d4761,y:_0x3de674,width:_0x54be57,height:_0x5b5df9}=_0x27a14b;return _0x4d4761+_0x54be57+_0x4316a4>_0x36fca7['x']+_0x36fca7['width']&&(_0x4316a4=_0x36fca7['x']+_0x36fca7['width']-_0x4d4761-_0x54be57),_0x3de674+_0x5b5df9+_0x54cbba>_0x36fca7['y']+_0x36fca7['height']&&(_0x54cbba=_0x36fca7['y']+_0x36fca7['height']-_0x3de674-_0x5b5df9),_0x54be57+=_0x4316a4,_0x5b5df9+=_0x54cbba,_0x119ab0&&Math['abs'](_0x54be57/_0x5b5df9)>_0x119ab0?(_0x54cbba=_0x54be57/_0x119ab0-_0x5b5df9,_0x5b5df9+=_0x54cbba,_0x3de674+_0x5b5df9>=_0x36fca7['y']+_0x36fca7['height']&&(_0x5b5df9=_0x36fca7['y']+_0x36fca7['height']-_0x3de674,_0x54be57=_0x5b5df9*_0x119ab0,_0x4d4761=_0x27a14b['x'],_0x3de674=_0x36fca7['y']+_0x36fca7['height']-_0x5b5df9)):_0x119ab0&&(_0x4316a4=_0x5b5df9*_0x119ab0-_0x54be57,_0x54be57+=_0x4316a4,_0x4d4761+_0x54be57>=_0x36fca7['x']+_0x36fca7['width']&&(_0x54be57=_0x36fca7['x']+_0x36fca7['width']-_0x4d4761,_0x5b5df9=_0x54be57/_0x119ab0,_0x4d4761=_0x36fca7['x']+_0x36fca7['width']-_0x54be57,_0x3de674=_0x27a14b['y'])),_0x5b5df9<MIN_CROP_SIZE&&(_0x5b5df9=MIN_CROP_SIZE,_0x119ab0&&(_0x54be57=_0x5b5df9*_0x119ab0)),_0x54be57<MIN_CROP_SIZE&&(_0x54be57=MIN_CROP_SIZE,_0x119ab0&&(_0x5b5df9=_0x54be57/_0x119ab0)),{'x':_0x4d4761,'y':_0x3de674,'width':_0x54be57,'height':_0x5b5df9};}function resizeRect({direction:_0x19a6f0,..._0x76f020}){switch(_0x19a6f0){case'n':return resizeNorth(_0x76f020);case'w':return resizeWest(_0x76f020);case's':return resizeSouth(_0x76f020);case'e':return resizeEast(_0x76f020);case'nw':return resizeNorthWest(_0x76f020);case'ne':return resizeNorthEast(_0x76f020);case'sw':return resizeSouthWest(_0x76f020);case'se':return resizeSouthEast(_0x76f020);default:return _0x76f020['rect'];}}function rectContainsPoint(_0x11a095,[_0x21e170,_0x476841]){return _0x11a095['x']<=_0x21e170&&_0x21e170<=_0x11a095['x']+_0x11a095['width']&&_0x11a095['y']<=_0x476841&&_0x476841<=_0x11a095['y']+_0x11a095['height'];}function isRectInsideRect(_0x394f6e,_0xa1c0ab){return _0x394f6e['x']>=_0xa1c0ab['x']&&_0x394f6e['y']>=_0xa1c0ab['y']&&_0x394f6e['x']+_0x394f6e['width']<=_0xa1c0ab['x']+_0xa1c0ab['width']&&_0x394f6e['y']+_0x394f6e['height']<=_0xa1c0ab['y']+_0xa1c0ab['height'];}function isRectMatchesAspectRatio(_0x1e7729,_0x1ca283){return Math['abs'](_0x1e7729['width']/_0x1e7729['height']-_0x1ca283)<0.1;}function rotateSize({width:_0x3bbd55,height:_0x441cf6},_0x3cf87f){const _0x221f40=_0x3cf87f/0x5a%0x2!=0x0;return{'width':_0x221f40?_0x441cf6:_0x3bbd55,'height':_0x221f40?_0x3bbd55:_0x441cf6};}function calculateMaxCenteredCropFrame(_0x566340,_0x3e30a4,_0x57c570){let _0x482ef3,_0x4c58aa;_0x566340/_0x3e30a4>_0x57c570?(_0x482ef3=Math['round'](_0x3e30a4*_0x57c570),_0x4c58aa=_0x3e30a4):(_0x482ef3=_0x566340,_0x4c58aa=Math['round'](_0x566340/_0x57c570));const _0x198628=Math['round']((_0x566340-_0x482ef3)/0x2),_0x52d995=Math['round']((_0x3e30a4-_0x4c58aa)/0x2);return _0x198628+_0x482ef3>_0x566340&&(_0x482ef3=_0x566340-_0x198628),_0x52d995+_0x4c58aa>_0x3e30a4&&(_0x4c58aa=_0x3e30a4-_0x52d995),{'x':_0x198628,'y':_0x52d995,'width':_0x482ef3,'height':_0x4c58aa};}function roundRect(_0x34fae5){return{'x':Math['round'](_0x34fae5['x']),'y':Math['round'](_0x34fae5['y']),'width':Math['round'](_0x34fae5['width']),'height':Math['round'](_0x34fae5['height'])};}function clamp(_0x2bba4d,_0x5432dc,_0x113942){return Math['min'](Math['max'](_0x2bba4d,_0x5432dc),_0x113942);}var EXCLUDED_TYPES=['free'],parseCropPreset=_0x2ab69f=>{const _0x50c2fb=stringToArray(_0x2ab69f);if(!_0x50c2fb||0x0===_0x50c2fb['length'])return[];const _0x13eadf=[];for(const _0x107db3 of _0x50c2fb){const _0x57c246=_0x107db3['trim']();if(!_0x57c246)continue;const _0x24ffb2=_0x57c246['indexOf'](':');if(-0x1===_0x24ffb2&&!EXCLUDED_TYPES['includes'](_0x57c246)){console['warn']('Invalid\x20crop\x20preset:\x20'+_0x57c246);continue;}const _0x94cd1e=Number(_0x57c246['slice'](0x0,_0x24ffb2)),_0x4ae1bc=Number(_0x57c246['slice'](_0x24ffb2+0x1));!(!Number['isFinite'](_0x94cd1e)||!Number['isFinite'](_0x4ae1bc)||_0x94cd1e<=0x0||_0x4ae1bc<=0x0)||EXCLUDED_TYPES['includes'](_0x57c246)?_0x13eadf['push']({'id':UID['generate'](),'type':'aspect-ratio','width':EXCLUDED_TYPES['includes'](_0x57c246)?0x0:_0x94cd1e,'height':EXCLUDED_TYPES['includes'](_0x57c246)?0x0:_0x4ae1bc,'hasFreeform':EXCLUDED_TYPES['includes'](_0x57c246)}):console['warn']('Invalid\x20crop\x20preset:\x20'+_0x57c246);}return _0x13eadf;},getClosestAspectRatio=(_0x19d3aa,_0x2c12a7,_0x1a860b,_0x1c3b77=0.1)=>{const _0x227afd=_0x19d3aa/_0x2c12a7;let _0x63757=null,_0x3944f3=0x1/0x0;for(const _0x28ddf0 of _0x1a860b){const [_0x4ca170,_0x3bb94f]=[_0x28ddf0['width'],_0x28ddf0['height']],_0x16b94c=_0x4ca170/_0x3bb94f,_0xb04ff4=Math['abs'](_0x227afd-_0x16b94c);_0xb04ff4<_0x3944f3&&(_0x3944f3=_0xb04ff4,_0x63757=_0x28ddf0);}if(_0x63757){const [_0x3ea9af,_0x42b368]=[_0x63757['width'],_0x63757['height']],_0x11692d=_0x3ea9af/_0x42b368;if(Math['abs'](_0x227afd-_0x11692d)/_0x11692d>_0x1c3b77)return null;}return _0x63757;},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(_0x2b8a54){return getUserAgent$1({..._0x2b8a54,'libraryName':PACKAGE_NAME,'libraryVersion':PACKAGE_VERSION});}var msToUnixTimestamp=_0x3f1d50=>'number'!=typeof _0x3f1d50?0x0:Math['floor'](_0x3f1d50/0x3e8),isSecureTokenExpired=(_0x32713d,{threshold:_0x5f4610})=>{const {secureExpire:_0x1a3986}=_0x32713d,_0x396c98=msToUnixTimestamp(Date['now']()),_0x22783a=Number(_0x1a3986);return _0x396c98+msToUnixTimestamp(_0x5f4610)>=_0x22783a;},SecureUploadsManager=class{['_block'];['_secureToken']=null;constructor(_0x373ca8){this['_block']=_0x373ca8;}['_debugPrint'](..._0x17e6d7){this['_block']['debugPrint']('[secure-uploads]',..._0x17e6d7);}async['getSecureToken'](){const {secureSignature:_0x36720c,secureExpire:_0x271acd,secureUploadsSignatureResolver:_0x194f4f}=this['_block']['cfg'];if((_0x36720c||_0x271acd)&&_0x194f4f&&console['warn']('Both\x20secureSignature/secureExpire\x20and\x20secureUploadsSignatureResolver\x20are\x20set.\x20secureUploadsSignatureResolver\x20will\x20be\x20used.'),_0x194f4f){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 _0xd97bee=await _0x194f4f();_0xd97bee?_0xd97bee['secureSignature']&&_0xd97bee['secureExpire']?(this['_debugPrint']('Secure\x20signature\x20resolved:',_0xd97bee),this['_debugPrint']('Secure\x20signature\x20will\x20expire\x20in',new Date(0x3e8*Number(_0xd97bee['secureExpire']))['toISOString']()),this['_secureToken']=_0xd97bee):console['error']('Secure\x20signature\x20resolver\x20returned\x20an\x20invalid\x20result:',_0xd97bee):(this['_debugPrint']('Secure\x20signature\x20resolver\x20returned\x20nothing.'),this['_secureToken']=null);}catch(_0x1442b0){console['error']('Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.',_0x1442b0),this['_block']['telemetryManager']['sendEventError'](_0x1442b0,'secureUploadsSignatureResolver.\x20Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.');}}return this['_secureToken'];}return _0x36720c&&_0x271acd?(this['_debugPrint']('Secure\x20signature\x20and\x20expire\x20are\x20set.\x20Using\x20them...',{'secureSignature':_0x36720c,'secureExpire':_0x271acd}),{'secureSignature':_0x36720c,'secureExpire':_0x271acd}):null;}},validateCollectionUploadError=(_0x1aadd2,_0x3e1531)=>{if(_0x1aadd2['failedCount']>0x0)return{'type':'SOME_FILES_HAS_ERRORS','message':_0x3e1531['l10n']('some-files-were-not-uploaded')};},validateMultiple=(_0x3f0765,_0x27a6f4)=>{const _0x2891a5=_0x3f0765['totalCount'],_0x3706b1=_0x27a6f4['cfg']['multiple']?_0x27a6f4['cfg']['multipleMin']:0x0,_0x288ab2=_0x27a6f4['cfg']['multiple']?_0x27a6f4['cfg']['multipleMax']:0x1;if(_0x3706b1&&_0x2891a5<_0x3706b1)return{'type':'TOO_FEW_FILES','message':_0x27a6f4['l10n']('files-count-limit-error-too-few',{'min':_0x3706b1,'max':_0x288ab2,'total':_0x2891a5}),'payload':{'total':_0x2891a5,'min':_0x3706b1,'max':_0x288ab2}};if(_0x288ab2&&_0x2891a5>_0x288ab2)return{'type':'TOO_MANY_FILES','message':_0x27a6f4['l10n']('files-count-limit-error-too-many',{'min':_0x3706b1,'max':_0x288ab2,'total':_0x2891a5}),'payload':{'total':_0x2891a5,'min':_0x3706b1,'max':_0x288ab2}};},calcIsDesktopSafari=()=>{const _0x611503=navigator['userAgent'];return/Macintosh|Windows/['test'](_0x611503)&&/Version\/[\d.]+.*Safari/['test'](_0x611503)&&!/Chrome|Chromium|Edg|OPR/['test'](_0x611503);},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=_0x1599fe=>_0x1599fe?_0x1599fe['filter'](_0x1f82c1=>'string'==typeof _0x1f82c1)['flatMap'](_0x4a4cca=>stringToArray(_0x4a4cca)):[],matchMimeType=(_0x542c1b,_0x3884bb)=>_0x3884bb['some'](_0xec5fb9=>{if(_0xec5fb9['endsWith']('*')){const _0x38baff=_0xec5fb9['replace']('*','');return _0x542c1b['startsWith'](_0x38baff);}return _0x542c1b===_0xec5fb9;}),matchExtension=(_0x36d7ee,_0x51713c)=>_0x51713c['some'](_0x5c54ff=>!!_0x5c54ff['startsWith']('.')&&_0x36d7ee['toLowerCase']()['endsWith'](_0x5c54ff['toLowerCase']())),fileIsImage=_0x3ad4d4=>{const _0x4f31e7=_0x3ad4d4?.['type'];return!!_0x4f31e7&&matchMimeType(_0x4f31e7,IMAGE_ACCEPT_LIST);},validateFileType=(_0x98899c,_0x47d077)=>{const _0x2bc749=_0x47d077['cfg']['imgOnly'],_0x83b242=_0x47d077['cfg']['accept'],_0x17d242=mergeFileTypes([..._0x2bc749?IMAGE_ACCEPT_LIST:[],_0x83b242]);if(!_0x17d242['length'])return;const _0x49f46d=_0x98899c['mimeType'],_0x3e872c=_0x98899c['name'];if(!_0x49f46d||!_0x3e872c)return;const _0x20acf0=matchMimeType(_0x49f46d,_0x17d242),_0x4ef16f=matchExtension(_0x3e872c,_0x17d242);return _0x20acf0||_0x4ef16f?void 0x0:{'type':'FORBIDDEN_FILE_TYPE','message':_0x47d077['l10n']('file-type-not-allowed'),'payload':{'entry':_0x98899c}};},validateIsImage=(_0x3dc6b3,_0x57689c)=>{const _0x3aaa9c=_0x57689c['cfg']['imgOnly'],_0x594b4c=_0x3dc6b3['isImage'];if(_0x3aaa9c&&!_0x594b4c&&(_0x3dc6b3['fileInfo']||!_0x3dc6b3['externalUrl'])&&(_0x3dc6b3['fileInfo']||_0x3dc6b3['mimeType']))return{'type':'NOT_AN_IMAGE','message':_0x57689c['l10n']('images-only-accepted'),'payload':{'entry':_0x3dc6b3}};},BASE=0x3e8,ByteUnitEnum=Object['freeze']({'AUTO':'auto','BYTE':'byte','KB':'kb','MB':'mb','GB':'gb','TB':'tb','PB':'pb'}),round=_0x5f1592=>Math['ceil'](0x64*_0x5f1592)/0x64,prettyBytes=(_0x4a125e,_0x3dd57b=ByteUnitEnum['AUTO'])=>{const _0x444000=_0x3dd57b===ByteUnitEnum['AUTO'];if(_0x3dd57b===ByteUnitEnum['BYTE']||_0x444000&&_0x4a125e<BASE**0x1)return _0x4a125e+'\x20'+('one'===getPluralForm('en-US',_0x4a125e)?'byte':'bytes');return _0x3dd57b===ByteUnitEnum['KB']||_0x444000&&_0x4a125e<BASE**0x2?round(_0x4a125e/BASE**0x1)+'\x20KB':_0x3dd57b===ByteUnitEnum['MB']||_0x444000&&_0x4a125e<BASE**0x3?round(_0x4a125e/BASE**0x2)+'\x20MB':_0x3dd57b===ByteUnitEnum['GB']||_0x444000&&_0x4a125e<BASE**0x4?round(_0x4a125e/BASE**0x3)+'\x20GB':_0x3dd57b===ByteUnitEnum['TB']||_0x444000&&_0x4a125e<BASE**0x5?round(_0x4a125e/BASE**0x4)+'\x20TB':round(_0x4a125e/BASE**0x5)+'\x20PB';},validateMaxSizeLimit=(_0x5836ca,_0x20d3e5)=>{const _0x3b91b3=_0x20d3e5['cfg']['maxLocalFileSizeBytes'],_0xe2407=_0x5836ca['size'];if(_0x3b91b3&&_0xe2407&&_0xe2407>_0x3b91b3)return{'type':'FILE_SIZE_EXCEEDED','message':_0x20d3e5['l10n']('files-max-size-limit-error',{'maxFileSize':prettyBytes(_0x3b91b3)}),'payload':{'entry':_0x5836ca}};},validateUploadError=(_0x5bc456,_0x1e571e)=>{const {internalId:_0x7d46a8}=_0x5bc456,_0x2fb7bb=_0x1e571e['_uploadCollection']['read'](_0x7d46a8),_0x5083a0=_0x2fb7bb?.['getValue']('uploadError');if(!_0x5083a0)return;if(_0x5083a0 instanceof UploadError)return{'type':'UPLOAD_ERROR','message':_0x5083a0['message'],'payload':{'entry':_0x5bc456,'error':_0x5083a0}};if(_0x5083a0 instanceof NetworkError)return{'type':'NETWORK_ERROR','message':_0x5083a0['message'],'payload':{'entry':_0x5bc456,'error':_0x5083a0}};const _0x522061=_0x5083a0 instanceof Error?_0x5083a0:new Error('Unknown\x20error',{'cause':_0x5083a0});return{'type':'UNKNOWN_ERROR','message':_0x522061['message'],'payload':{'entry':_0x5bc456,'error':_0x522061}};},withResolvers=()=>{let _0x2bbbe5=()=>{},_0x584adb=()=>{};return{'promise':new Promise((_0x4e2d1c,_0x223241)=>{_0x2bbbe5=_0x4e2d1c,_0x584adb=_0x223241;}),'resolve':_0x2bbbe5,'reject':_0x584adb};},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=_0x11b650=>'function'==typeof _0x11b650?{'runOn':'change','validator':_0x11b650}:_0x11b650,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(_0x45b754){this['_blockInstance']=_0x45b754,this['_uploadCollection']=this['_blockInstance']['uploadCollection'];const _0x25919c=()=>{this['runFileValidators']('change'),this['runCollectionValidators']();};this['_blockInstance']['subConfigValue']('maxLocalFileSizeBytes',_0x25919c),this['_blockInstance']['subConfigValue']('multipleMin',_0x25919c),this['_blockInstance']['subConfigValue']('multipleMax',_0x25919c),this['_blockInstance']['subConfigValue']('multiple',_0x25919c),this['_blockInstance']['subConfigValue']('imgOnly',_0x25919c),this['_blockInstance']['subConfigValue']('accept',_0x25919c),this['_blockInstance']['subConfigValue']('validationConcurrency',_0xfd562e=>{this['_queue']['concurrency']=_0xfd562e;});}['runFileValidators'](_0x1ad5ac,_0x2ca71e){const _0xe81241=_0x2ca71e??this['_uploadCollection']['items']();for(const _0x5c9168 of _0xe81241){const _0x6676ff=this['_uploadCollection']['read'](_0x5c9168);_0x6676ff&&this['_runFileValidatorsForEntry'](_0x6676ff,_0x1ad5ac);}}['runCollectionValidators'](){const _0x35a44a=this['_blockInstance']['api']['getOutputCollectionState'](),_0x1c63c3=[];for(const _0x1f4203 of[...this['_commonCollectionValidators'],...this['_blockInstance']['cfg']['collectionValidators']])try{const _0x17de36=_0x1f4203(_0x35a44a,this['_blockInstance']['api']);if(!_0x17de36)continue;_0x17de36&&(_0x1c63c3['push'](this['_addCustomTypeToValidationError'](_0x17de36)),_0x17de36['message']||console['warn'](LOG_TEXT['MISSING_ERROR_MESSAGE']));}catch(_0xbf0f3e){console['warn'](LOG_TEXT['COLLECTION_VALIDATION_FAILED'],_0xbf0f3e);}this['_blockInstance']['$']['*collectionErrors']=_0x1c63c3,_0x1c63c3['length']>0x0&&this['_blockInstance']['emit'](EventType['COMMON_UPLOAD_FAILED'],()=>this['_blockInstance']['api']['getOutputCollectionState'](),{'debounce':!0x0});}['cleanupValidationForEntry'](_0x390512){const _0x391145=this['_entryValidationState']['get'](_0x390512['uid']);_0x391145&&(_0x391145['abortController']?.['abort'](),this['_entryValidationState']['delete'](_0x390512['uid']));}async['_runFileValidatorsForEntry'](_0x42335e,_0x109310){const _0xea7f35=this['_getValidatorDescriptorsForEntry'](_0x42335e,_0x109310);if(0x0===_0xea7f35['length'])return;_0x42335e['setMultipleValues']({'isQueuedForValidation':!0x0,'isValidationPending':!0x0});const _0x8f6b76=this['_blockInstance']['api']['getOutputItem'](_0x42335e['uid']),_0x537147=this['_getEntryValidationState'](_0x42335e);_0x537147['promise']&&await _0x537147['promise'];const {promise:_0x459723,resolve:_0x1f8fa2}=withResolvers();_0x537147['promise']=_0x459723;const _0x288b94=new AbortController();_0x537147['abortController']=_0x288b94;const _0x1180e9=this['_blockInstance']['cfg']['validationTimeout'],_0x590f4e=this['_getValidatorDescriptors'](),_0x33facd=new Set(_0xea7f35['map'](_0xd222ad=>_0xd222ad['validator'])),_0x5075f7=[];for(const _0x507363 of _0x590f4e)if(!_0x33facd['has'](_0x507363['validator'])){const _0x1cb549=_0x537147['lastErrorThrownByValidator']['get'](_0x507363['validator']);_0x1cb549&&_0x5075f7['push'](_0x1cb549);}const _0x5b3482=_0xea7f35['map'](_0x2309eb=>async()=>{if(!this['_blockInstance']['isConnected'])return;const _0x50c82e=setTimeout(()=>{_0x537147['skippedValidators']['add'](_0x2309eb['validator']),_0x288b94['abort'](),console['warn'](LOG_TEXT['FILE_VALIDATION_TIMEOUT']);},_0x1180e9);try{const _0x55bb65=await _0x2309eb['validator'](_0x8f6b76,this['_blockInstance']['api'],{'signal':_0x288b94['signal']});if(!_0x55bb65||_0x288b94['signal']['aborted'])return void _0x537147['lastErrorThrownByValidator']['set'](_0x2309eb['validator'],void 0x0);const _0xb22771=this['_addCustomTypeToValidationError'](_0x55bb65);_0x537147['lastErrorThrownByValidator']['set'](_0x2309eb['validator'],_0xb22771),_0x5075f7['push'](_0xb22771),_0x55bb65['message']||console['warn'](LOG_TEXT['MISSING_ERROR_MESSAGE']);}catch(_0x12233c){_0x288b94['signal']['aborted']||(_0x537147['skippedValidators']['add'](_0x2309eb['validator']),console['warn'](LOG_TEXT['FILE_VALIDATION_FAILED'],_0x12233c),this['_blockInstance']['telemetryManager']['sendEventError'](_0x12233c,'file\x20validator.\x20'+LOG_TEXT['FILE_VALIDATION_FAILED']));}finally{clearTimeout(_0x50c82e),'change'!==_0x2309eb['runOn']&&_0x537147['skippedValidators']['add'](_0x2309eb['validator']);}});if(this['_runQueueDebounced'](),await this['_queue']['add'](async()=>{_0x42335e['setValue']('isQueuedForValidation',!0x1),await Promise['all'](_0x5b3482['map'](_0x2b620d=>_0x2b620d()))['catch'](()=>{});},{'autoRun':!0x1}),_0x288b94['signal']['aborted'])return _0x42335e['setMultipleValues']({'isQueuedForValidation':!0x1,'isValidationPending':!0x1}),void _0x1f8fa2();_0x42335e['setMultipleValues']({'isValidationPending':!0x1,'isQueuedForValidation':!0x1,'errors':_0x5075f7}),_0x1f8fa2();}['_addCustomTypeToValidationError'](_0x1e29c9){return{..._0x1e29c9,'type':_0x1e29c9['type']??'CUSTOM_ERROR'};}['_getEntryValidationState'](_0x2fb1f6){const _0x2dd396=this['_entryValidationState']['get'](_0x2fb1f6['uid']);if(_0x2dd396)return _0x2dd396;const _0x456120={'abortController':void 0x0,'skippedValidators':new WeakSet(),'promise':void 0x0,'lastErrorThrownByValidator':new WeakMap()};return this['_entryValidationState']['set'](_0x2fb1f6['uid'],_0x456120),_0x456120;}['_getValidatorDescriptors'](){return[...this['_commonFileValidators'],...this['_blockInstance']['cfg']['fileValidators']]['map'](getValidatorDescriptor);}['_getValidatorDescriptorsForEntry'](_0x51924a,_0x20f0d2){const _0x885ad9=this['_getEntryValidationState'](_0x51924a);return this['_getValidatorDescriptors']()['filter'](_0x6a6c09=>!_0x885ad9['skippedValidators']['has'](_0x6a6c09['validator']))['filter'](_0x315f1c=>_0x315f1c['runOn']===_0x20f0d2);}},MSG_NAME='[Typed\x20State]\x20Wrong\x20property\x20name:\x20',MSG_TYPE='[Typed\x20State]\x20Wrong\x20property\x20type:\x20',TypedData=class{['__typedSchema'];['__ctxId'];['__schema'];['__data'];constructor(_0xf34953,_0x130cb4){this['__typedSchema']=_0xf34953,this['__ctxId']=_0x130cb4||UID['generate'](),this['__schema']=Object['keys'](_0xf34953)['reduce']((_0x591fbe,_0x1d98d0)=>(_0xf34953[_0x1d98d0]&&(_0x591fbe[_0x1d98d0]=_0xf34953[_0x1d98d0]['value']),_0x591fbe),{}),this['__data']=Data['registerCtx'](this['__schema'],this['__ctxId']);}get['uid'](){return this['__ctxId'];}['setValue'](_0x1e9b18,_0x1e6388){if(!Object['hasOwn'](this['__typedSchema'],_0x1e9b18)||!this['__typedSchema'][_0x1e9b18])return void console['warn'](MSG_NAME+_0x1e9b18);const _0xa9bf6b=this['__typedSchema'][_0x1e9b18],_0x19f64c=_0x1e6388?.['constructor']===_0xa9bf6b['type'],_0x4f4254=_0x1e6388 instanceof _0xa9bf6b['type'],_0x466452=_0xa9bf6b['nullable']&&null===_0x1e6388;_0x19f64c||_0x4f4254||_0x466452?this['__data']['pub'](_0x1e9b18,_0x1e6388):console['warn'](MSG_TYPE+_0x1e9b18);}['setMultipleValues'](_0x27ee87){for(const [_0x965533,_0x3cfe80]of Object['entries'](_0x27ee87))this['setValue'](_0x965533,_0x3cfe80);}['getValue'](_0x59bf6c){return Object['hasOwn'](this['__typedSchema'],_0x59bf6c)||console['warn'](MSG_NAME+_0x59bf6c),this['__data']['read'](_0x59bf6c);}['subscribe'](_0x4df78c,_0x262ef7){return this['__data']['sub'](_0x4df78c,_0x262ef7);}['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(_0x3dddde){this['__typedSchema']=_0x3dddde['typedSchema'],this['__ctxId']=_0x3dddde['ctxName']||UID['generate'](),this['__data']=Data['registerCtx']({},this['__ctxId']),this['__watchList']=_0x3dddde['watchList']||[];let _0x15e3b4=Object['create'](null);this['__notifyObservers']=(_0x1eb862,_0xda3d86)=>{this['__observeTimeout']&&window['clearTimeout'](this['__observeTimeout']),_0x15e3b4[_0x1eb862]||(_0x15e3b4[_0x1eb862]=new Set()),_0x15e3b4[_0x1eb862]['add'](_0xda3d86),this['__observeTimeout']=window['setTimeout'](()=>{0x0!==Object['keys'](_0x15e3b4)['length']&&(this['__propertyObservers']['forEach'](_0x3aa399=>{_0x3aa399({..._0x15e3b4});}),_0x15e3b4=Object['create'](null));});},_0x3dddde['handler']&&this['observeCollection'](_0x3dddde['handler']);}['notify'](){this['__notifyTimeout']&&window['clearTimeout'](this['__notifyTimeout']),this['__notifyTimeout']=window['setTimeout'](()=>{const _0x1a6521=new Set(this['__added']),_0xc1caf=new Set(this['__removed']);this['__added']['clear'](),this['__removed']['clear']();for(const _0x4a4d59 of this['__collectionObservers'])_0x4a4d59?.([...this['__items']],_0x1a6521,_0xc1caf);});}['observeCollection'](_0x4aed9d){return this['__collectionObservers']['add'](_0x4aed9d),this['__items']['size']>0x0&&this['notify'](),()=>{this['unobserveCollection'](_0x4aed9d);};}['unobserveCollection'](_0x30de59){this['__collectionObservers']['delete'](_0x30de59);}['add'](_0x308689){const _0x32c79b=new TypedData(this['__typedSchema']);for(const [_0x2911fa,_0x8742ce]of Object['entries'](_0x308689))void 0x0!==_0x8742ce&&_0x32c79b['setValue'](_0x2911fa,_0x8742ce);return this['__items']['add'](_0x32c79b['uid']),this['notify'](),this['__data']['add'](_0x32c79b['uid'],_0x32c79b),this['__added']['add'](_0x32c79b),this['__watchList']['forEach'](_0x2898ac=>{this['__subsMap'][_0x32c79b['uid']]||(this['__subsMap'][_0x32c79b['uid']]=[]),this['__subsMap'][_0x32c79b['uid']]?.['push'](_0x32c79b['subscribe'](_0x2898ac,()=>{this['__notifyObservers'](_0x2898ac,_0x32c79b['uid']);}));}),_0x32c79b['uid'];}['read'](_0xd8ad2e){return this['__data']['read'](_0xd8ad2e);}['readProp'](_0x1c0939,_0x4da179){const _0x1a99a3=this['read'](_0x1c0939);return _0x1a99a3?_0x1a99a3['getValue'](_0x4da179):(console['warn']('Item\x20with\x20id\x20'+_0x1c0939+'\x20not\x20found'),null);}['publishProp'](_0x1e51ed,_0x583fb8,_0x58c46f){const _0x50465e=this['read'](_0x1e51ed);_0x50465e?_0x50465e['setValue'](_0x583fb8,_0x58c46f):console['warn']('Item\x20with\x20id\x20'+_0x1e51ed+'\x20not\x20found');}['remove'](_0x4aa6a8){const _0x15689a=this['read'](_0x4aa6a8);_0x15689a&&this['__removed']['add'](_0x15689a),this['__items']['delete'](_0x4aa6a8),this['notify'](),this['__data']['pub'](_0x4aa6a8,null),delete this['__subsMap'][_0x4aa6a8];}['clearAll'](){this['__items']['forEach'](_0x334731=>{this['remove'](_0x334731);});}['observeProperties'](_0x1b1a83){return this['__propertyObservers']['add'](_0x1b1a83),()=>{this['unobserveProperties'](_0x1b1a83);};}['unobserveProperties'](_0x5957d5){this['__propertyObservers']['delete'](_0x5957d5);}['findItems'](_0x52b1eb){const _0x5c4b0e=[];return this['__items']['forEach'](_0x5de130=>{const _0x3ad0b2=this['read'](_0x5de130);_0x3ad0b2&&_0x52b1eb(_0x3ad0b2)&&_0x5c4b0e['push'](_0x5de130);}),_0x5c4b0e;}['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 _0x3cac7a in this['__subsMap'])this['__subsMap'][_0x3cac7a]?.['forEach'](_0x2efc46=>{_0x2efc46['remove']();}),delete this['__subsMap'][_0x3cac7a];}},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=_0x2e9269=>({'isVideoRecordingEnabled':deserializeCsv(_0x2e9269['cameraModes'])['includes'](CameraSourceTypes['VIDEO']),'isPhotoEnabled':deserializeCsv(_0x2e9269['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:_0x86483e,cdnBase:_0x461dad})=>{const _0x99e0b6=new URL(_0x461dad),_0x33cf15=new URL(DEFAULT_CDN_CNAME),_0x33c904=new URL(_0x86483e);if(_0x99e0b6['host']!==_0x33c904['host']&&_0x33cf15['host']!==_0x33c904['host'])return null;const _0x1a0416=cdnUrlRegex['exec'](_0x33c904['pathname']);if(!_0x1a0416)return null;const [,_0x402177,_0x5cc9ba,_0x22021c]=_0x1a0416;return _0x402177?{'uuid':_0x402177,'cdnUrlModifiers':_0x5cc9ba||'','filename':_0x22021c||null}:null;};function memoize(_0x2da8ef){const _0x58618f=new Map();return(..._0x59ad9a)=>{const _0xd351e5=JSON['stringify'](_0x59ad9a);if(_0x58618f['has'](_0xd351e5))return _0x58618f['get'](_0xd351e5);const _0x4e6b07=_0x2da8ef(..._0x59ad9a);return _0x58618f['set'](_0xd351e5,_0x4e6b07),_0x4e6b07;};}var warnings=new Set();function warnOnce(_0x4deae2){warnings['has'](_0x4deae2)||(warnings['add'](_0x4deae2),console['warn'](_0x4deae2));}function createAsyncAssertWrapper(_0x288ffd){let _0xed1565=!0x1;return setTimeout(()=>{_0xed1565=!0x0;},0x0),_0x190875=>(..._0x1ea93e)=>(_0xed1565&&warnOnce(_0x288ffd),_0x190875(..._0x1ea93e));}function buildOutputCollectionState(_0x5e1493){const _0x35130c={},_0x1d25ac={'progress':()=>_0x5e1493['$']['*commonProgress'],'errors':()=>_0x5e1493['$']['*collectionErrors'],'group':()=>_0x5e1493['$']['*groupInfo'],'totalCount':()=>_0x5e1493['uploadCollection']['size'],'failedCount':()=>_0x35130c['failedEntries']['length'],'successCount':()=>_0x35130c['successEntries']['length'],'uploadingCount':()=>_0x35130c['uploadingEntries']['length'],'status':()=>_0x35130c['isFailed']?'failed':_0x35130c['isUploading']?'uploading':_0x35130c['isSuccess']?'success':'idle','isSuccess':()=>_0x35130c['allEntries']['length']>0x0&&0x0===_0x35130c['errors']['length']&&_0x35130c['successEntries']['length']===_0x35130c['allEntries']['length'],'isUploading':()=>_0x35130c['allEntries']['some'](_0x2970a9=>'uploading'===_0x2970a9['status']),'isFailed':()=>_0x35130c['errors']['length']>0x0||_0x35130c['failedEntries']['length']>0x0,'allEntries':()=>_0x5e1493['getOutputData'](),'successEntries':()=>_0x35130c['allEntries']['filter'](_0x778aa2=>'success'===_0x778aa2['status']),'failedEntries':()=>_0x35130c['allEntries']['filter'](_0x157376=>'failed'===_0x157376['status']),'uploadingEntries':()=>_0x35130c['allEntries']['filter'](_0x34a89a=>'uploading'===_0x34a89a['status']),'idleEntries':()=>_0x35130c['allEntries']['filter'](_0x262144=>'idle'===_0x262144['status'])},_0xfa750f=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 [_0x374d43,_0x3c7a90]of Object['entries'](_0x1d25ac)){const _0x58b4f4=_0x374d43,_0x2f6db6=memoize(_0xfa750f(_0x3c7a90));Object['defineProperty'](_0x35130c,_0x58b4f4,{'get':_0x2f6db6,'enumerable':!0x0});}return _0x35130c;}var UploaderPublicApi=class{['_ctx'];constructor(_0x4122df){this['_ctx']=_0x4122df;}get['_uploadCollection'](){return this['_ctx']['uploadCollection'];}get['cfg'](){return this['_ctx']['cfg'];}get['l10n'](){return this['_ctx']['l10n']['bind'](this['_ctx']);}['addFileFromUrl']=(_0x594a39,{silent:_0x4a62e8,fileName:_0x2c1ac4,source:_0x5834a6}={})=>{const _0x4cef3e=this['_uploadCollection']['add']({'externalUrl':_0x594a39,'fileName':_0x2c1ac4??null,'silent':_0x4a62e8??!0x1,'source':_0x5834a6??UploadSource['API']});return this['getOutputItem'](_0x4cef3e);};['addFileFromUuid']=(_0x1d6a73,{silent:_0x4898ac,fileName:_0xf84577,source:_0x218c53}={})=>{const _0x56bfc6=this['_uploadCollection']['add']({'uuid':_0x1d6a73,'fileName':_0xf84577??null,'silent':_0x4898ac??!0x1,'source':_0x218c53??UploadSource['API']});return this['getOutputItem'](_0x56bfc6);};['addFileFromCdnUrl']=(_0x55fb00,{silent:_0x2ef501,fileName:_0x359aca,source:_0x3a71ff}={})=>{const _0x12f770=parseCdnUrl({'url':_0x55fb00,'cdnBase':this['cfg']['cdnCname']});if(!_0x12f770)throw new Error('Invalid\x20CDN\x20URL');const _0x510ba5=this['_uploadCollection']['add']({'uuid':_0x12f770['uuid'],'cdnUrl':_0x55fb00,'cdnUrlModifiers':_0x12f770['cdnUrlModifiers'],'fileName':_0x359aca??_0x12f770['filename']??null,'silent':_0x2ef501??!0x1,'source':_0x3a71ff??UploadSource['API']});return this['getOutputItem'](_0x510ba5);};['addFileFromObject']=(_0x264f62,{silent:_0x48fd0b,fileName:_0x22585c,source:_0x245f1e,fullPath:_0x4e8a4f}={})=>{const _0x2d9d61=this['_uploadCollection']['add']({'file':_0x264f62,'isImage':fileIsImage(_0x264f62),'mimeType':_0x264f62['type'],'fileName':_0x22585c??_0x264f62['name'],'fileSize':_0x264f62['size'],'silent':_0x48fd0b??!0x1,'source':_0x245f1e??UploadSource['API'],'fullPath':_0x4e8a4f??null});return this['getOutputItem'](_0x2d9d61);};['removeFileByInternalId']=_0x2a688a=>{if(!this['_uploadCollection']['read'](_0x2a688a))throw new Error('File\x20with\x20internalId\x20'+_0x2a688a+'\x20not\x20found');this['_uploadCollection']['remove'](_0x2a688a);};['removeAllFiles'](){this['_uploadCollection']['clearAll']();}['uploadAll']=()=>{const _0x56bf3b=this['_uploadCollection']['items']()['filter'](_0xa8a51=>{const _0x717398=this['_uploadCollection']['read'](_0xa8a51);return!!_0x717398&&!(_0x717398['getValue']('isRemoved')||_0x717398['getValue']('isUploading')||_0x717398['getValue']('fileInfo')||0x0!==_0x717398['getValue']('errors')['length']||_0x717398['getValue']('isValidationPending')||_0x717398['getValue']('isQueuedForValidation'));});0x0!==_0x56bf3b['length']&&(this['_ctx']['$']['*uploadTrigger']=new Set(_0x56bf3b),this['_ctx']['emit'](EventType['COMMON_UPLOAD_START'],this['getOutputCollectionState']()));};['openSystemDialog']=(_0x377cf9={})=>{const _0x353409=serializeCsv(mergeFileTypes([this['cfg']['accept']??'',...this['cfg']['imgOnly']?IMAGE_ACCEPT_LIST:[]])),_0x53d934='uploadcare-file-input',_0x307447=document['createElement']('input');if(_0x307447['setAttribute'](_0x53d934,''),applyStyles(_0x307447,{'opacity':0x0,'height':0x0,'width':0x0,'visibility':'hidden','position':'absolute','top':0x0,'left':0x0}),_0x307447['type']='file',_0x307447['multiple']=this['cfg']['multiple'],_0x377cf9['captureCamera']){_0x307447['capture']=this['cfg']['cameraCapture'];const {isPhotoEnabled:_0x223931,isVideoRecordingEnabled:_0x5df57e}=calcCameraModes(this['cfg']);_0x377cf9['modeCamera']===CameraSourceTypes['PHOTO']&&_0x223931?_0x307447['accept']=BASIC_IMAGE_WILDCARD:_0x377cf9['modeCamera']===CameraSourceTypes['VIDEO']&&_0x5df57e?_0x307447['accept']=BASIC_VIDEO_WILDCARD:_0x307447['accept']=[BASIC_IMAGE_WILDCARD,_0x5df57e&&BASIC_VIDEO_WILDCARD]['filter'](Boolean)['join'](',');}else _0x307447['accept']=_0x353409;_0x307447['addEventListener']('change',()=>{_0x307447['files']&&([..._0x307447['files']]['forEach'](_0x39005c=>{this['addFileFromObject'](_0x39005c,{'source':_0x377cf9['captureCamera']?UploadSource['CAMERA']:UploadSource['LOCAL']});}),this['_ctx']['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['_ctx']['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],_0x307447['remove']());},{'once':!0x0}),document['querySelectorAll']('['+_0x53d934+']')['forEach'](_0x381083=>{_0x381083['remove']();}),document['body']['appendChild'](_0x307447),_0x307447['dispatchEvent'](new MouseEvent('click'));};['getOutputItem'](_0x2692d2){const _0x2206c9=Data['getCtx'](_0x2692d2)['store'],_0x57cc28=_0x2206c9['fileInfo'],_0x2bd4bf=_0x2206c9['isRemoved']?'removed':_0x2206c9['errors']['length']>0x0?'failed':_0x2206c9['fileInfo']?'success':_0x2206c9['isUploading']?'uploading':'idle';return{'uuid':_0x57cc28?.['uuid']??_0x2206c9['uuid']??null,'internalId':_0x2692d2,'name':_0x57cc28?.['originalFilename']??_0x2206c9['fileName'],'size':_0x57cc28?.['size']??_0x2206c9['fileSize'],'isImage':_0x57cc28?.['isImage']??_0x2206c9['isImage'],'mimeType':_0x57cc28?.['mimeType']??_0x2206c9['mimeType'],'file':_0x2206c9['file'],'externalUrl':_0x2206c9['externalUrl'],'cdnUrlModifiers':_0x2206c9['cdnUrlModifiers'],'cdnUrl':_0x2206c9['cdnUrl']??_0x57cc28?.['cdnUrl']??null,'fullPath':_0x2206c9['fullPath'],'uploadProgress':_0x2206c9['uploadProgress'],'fileInfo':_0x57cc28??null,'metadata':_0x2206c9['metadata']??_0x57cc28?.['metadata']??null,'isSuccess':'success'===_0x2bd4bf,'isUploading':'uploading'===_0x2bd4bf,'isFailed':'failed'===_0x2bd4bf,'isRemoved':'removed'===_0x2bd4bf,'isValidationPending':_0x2206c9['isValidationPending'],'errors':_0x2206c9['errors'],'status':_0x2bd4bf,'source':_0x2206c9?.['source']};}['getOutputCollectionState'](){return buildOutputCollectionState(this['_ctx']);}['initFlow']=(_0x586882=!0x1)=>{if(this['_uploadCollection']['size']>0x0&&!_0x586882)this['_ctx']['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']});else{if(0x1===this['_sourceList']?.['length']){const _0x3d41fd=this['_sourceList'][0x0];if('local'===_0x3d41fd)return this['_ctx']['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],void this['openSystemDialog']();if('camera'===_0x3d41fd&&browserFeatures['htmlMediaCapture']){const {isPhotoEnabled:_0x3052b5,isVideoRecordingEnabled:_0x465389}=calcCameraModes(this['cfg']);if(_0x3052b5&&_0x465389)return void this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['START_FROM']});if(_0x3052b5||_0x465389)return void this['openSystemDialog']({'captureCamera':!0x0,'modeCamera':_0x3052b5?CameraSourceTypes['PHOTO']:CameraSourceTypes['VIDEO']});this['openSystemDialog']({'captureCamera':!0x0,'modeCamera':CameraSourceTypes['PHOTO']});}const _0x148bab=[...this['_ctx']['$']['*blocksRegistry']]['find'](_0x1daaa0=>'type'in _0x1daaa0&&_0x1daaa0['type']===_0x3d41fd);_0x148bab?.['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']=(_0x530c4d,..._0x111885)=>{this['_ctx']['hasBlockInCtx'](_0xc1e2a8=>_0xc1e2a8['activityType']===_0x530c4d)?this['_ctx']['set$']({'*currentActivityParams':_0x111885??{},'*currentActivity':_0x530c4d}):console['warn']('Activity\x20type\x20\x22'+_0x530c4d+'\x22\x20not\x20found\x20in\x20the\x20context');};['getCurrentActivity']=()=>this['_ctx']['$']['*currentActivity'];['setModalState']=_0x285440=>{!_0x285440||this['_ctx']['$']['*currentActivity']?_0x285440?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 _0x1b89b2=[];return this['cfg']['sourceList']&&(_0x1b89b2=stringToArray(this['cfg']['sourceList'])),_0x1b89b2;}},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'](_0x11fd8c=>_0x11fd8c instanceof e&&(_0x11fd8c['isCtxOwner']&&_0x11fd8c['isConnected']&&_0x11fd8c!==this));}['initCallback'](){if(super['initCallback'](),!this['has']('*uploadCollection')){const _0x3d3357=new TypedCollection({'typedSchema':uploadEntrySchema,'watchList':['uploadProgress','uploadError','fileInfo','errors','cdnUrl','isUploading','isValidationPending']});this['add']('*uploadCollection',_0x3d3357);}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',_0x4bec9f=>{this['$']['*uploadQueue']['concurrency']=Number(_0x4bec9f)||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'](_0xb513f0){const _0x5e495e=await this['getUploadClientOptions'](),_0x2869c1=_0xb513f0['allEntries']['map'](_0xde9d73=>_0xde9d73['uuid']+(_0xde9d73['cdnUrlModifiers']?'/'+_0xde9d73['cdnUrlModifiers']:'')),_0x2b2c8e=new AbortController(),_0x3005f5=await uploadFileGroup(_0x2869c1,{..._0x5e495e,'signal':_0x2b2c8e['signal']});if(this['$']['*collectionState']!==_0xb513f0)return void _0x2b2c8e['abort']();this['$']['*groupInfo']=_0x3005f5;const _0x473ccf=this['api']['getOutputCollectionState']();this['emit'](EventType['GROUP_CREATED'],_0x473ccf),this['emit'](EventType['CHANGE'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}),this['$']['*collectionState']=_0x473ccf;}['_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']=(_0x48f94c,_0x1add4c,_0x172776)=>{(_0x1add4c['size']||_0x172776['size'])&&(this['$']['*groupInfo']=null),this['validationManager']['runFileValidators']('add',[..._0x1add4c]['map'](_0x2749f8=>_0x2749f8['uid']));for(const _0xe7839d of _0x1add4c)_0xe7839d['getValue']('silent')||this['emit'](EventType['FILE_ADDED'],this['api']['getOutputItem'](_0xe7839d['uid']));this['validationManager']['runCollectionValidators']();for(const _0x23a84a of _0x172776){this['$']['*uploadTrigger']['delete'](_0x23a84a['uid']),this['validationManager']['cleanupValidationForEntry'](_0x23a84a),_0x23a84a['getValue']('abortController')?.['abort'](),_0x23a84a['setMultipleValues']({'isRemoved':!0x0,'abortController':null,'isUploading':!0x1,'uploadProgress':0x0});const _0x366e56=_0x23a84a?.['getValue']('thumbUrl');_0x366e56&&URL['revokeObjectURL'](_0x366e56),this['emit'](EventType['FILE_REMOVED'],this['api']['getOutputItem'](_0x23a84a['uid']));}this['$']['*uploadList']=_0x48f94c['map'](_0x19d58e=>({'uid':_0x19d58e})),this['_flushCommonUploadProgress'](),this['_flushOutputItems']();};['_handleCollectionPropertiesUpdate']=_0x26b85f=>{this['_flushOutputItems']();const _0x16ace0=this['uploadCollection'],_0x18c103=[...new Set(Object['entries'](_0x26b85f)['filter'](([_0x16229e])=>['uploadError','fileInfo','cdnUrl','cdnUrlModifiers']['includes'](_0x16229e))['flatMap'](([,_0x17135f])=>[..._0x17135f]))];if(_0x18c103['length']>0x0&&setTimeout(()=>{const _0x4f340a=_0x18c103['filter'](_0x28a696=>_0x26b85f['fileInfo']?.['has'](_0x28a696)&&!!Data['getCtx'](_0x28a696)['store']['fileInfo']);_0x4f340a['length']>0x0&&this['validationManager']['runFileValidators']('upload',_0x4f340a),this['validationManager']['runFileValidators']('change',_0x18c103);}),_0x26b85f['uploadProgress']){for(const _0x6b6e6b of _0x26b85f['uploadProgress']){const {isUploading:_0x48612d,silent:_0x42b853}=Data['getCtx'](_0x6b6e6b)['store'];_0x48612d&&!_0x42b853&&this['emit'](EventType['FILE_UPLOAD_PROGRESS'],this['api']['getOutputItem'](_0x6b6e6b));}this['_flushCommonUploadProgress']();}if(_0x26b85f['isUploading'])for(const _0x43b1e4 of _0x26b85f['isUploading']){const {isUploading:_0x5ea8e1,silent:_0x5c5055}=Data['getCtx'](_0x43b1e4)['store'];_0x5ea8e1&&!_0x5c5055&&this['emit'](EventType['FILE_UPLOAD_START'],this['api']['getOutputItem'](_0x43b1e4));}if(_0x26b85f['fileInfo']){for(const _0x4ca6c1 of _0x26b85f['fileInfo']){const {fileInfo:_0x5471e4,silent:_0x2abca0}=Data['getCtx'](_0x4ca6c1)['store'];_0x5471e4&&!_0x2abca0&&this['emit'](EventType['FILE_UPLOAD_SUCCESS'],this['api']['getOutputItem'](_0x4ca6c1));}this['cfg']['cropPreset']&&this['setInitialCrop'](),this['cfg']['cloudImageEditorAutoOpen']&&this['openCloudImageEditor']();}if(_0x26b85f['errors']){this['validationManager']['runCollectionValidators']();for(const _0x221dec of _0x26b85f['errors']){const {errors:_0x46c671}=Data['getCtx'](_0x221dec)['store'];_0x46c671['length']>0x0&&(this['emit'](EventType['FILE_UPLOAD_FAILED'],this['api']['getOutputItem'](_0x221dec)),this['emit'](EventType['COMMON_UPLOAD_FAILED'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}));}const _0xee30b=_0x16ace0['findItems'](_0x2951c2=>!!_0x2951c2['getValue']('fileInfo')),_0x4ed062=_0x16ace0['findItems'](_0x2ad7a2=>_0x2ad7a2['getValue']('errors')['length']>0x0);_0x16ace0['size']>0x0&&0x0===_0x4ed062['length']&&_0x16ace0['size']===_0xee30b['length']&&0x0===this['$']['*collectionErrors']['length']&&this['emit'](EventType['COMMON_UPLOAD_SUCCESS'],this['api']['getOutputCollectionState']());}if(_0x26b85f['cdnUrl']){const _0x5f3858=[..._0x26b85f['cdnUrl']]['filter'](_0x5be366=>!!this['uploadCollection']['read'](_0x5be366)?.['getValue']('cdnUrl'));_0x5f3858['forEach'](_0x32910b=>{this['emit'](EventType['FILE_URL_CHANGED'],this['api']['getOutputItem'](_0x32910b));}),this['$']['*groupInfo']=null;}};['_flushCommonUploadProgress']=()=>{let _0x35fa59=0x0;const _0x436980=[...this['$']['*uploadTrigger']]['filter'](_0x5812a2=>!!this['uploadCollection']['read'](_0x5812a2));_0x436980['forEach'](_0xb5ec07=>{const _0x19c30f=this['uploadCollection']['readProp'](_0xb5ec07,'uploadProgress');'number'==typeof _0x19c30f&&(_0x35fa59+=_0x19c30f);});const _0x234ced=_0x436980['length']?Math['round'](_0x35fa59/_0x436980['length']):0x0;this['$']['*commonProgress']!==_0x234ced&&(this['$']['*commonProgress']=_0x234ced,this['emit'](EventType['COMMON_UPLOAD_PROGRESS'],this['api']['getOutputCollectionState']()));};['openCloudImageEditor'](){const [_0x481d90]=this['uploadCollection']['findItems'](_0x48db2a=>!!_0x48db2a['getValue']('fileInfo')&&_0x48db2a['getValue']('isImage'))['map'](_0x503d2c=>this['uploadCollection']['read'](_0x503d2c));_0x481d90&&0x1===this['uploadCollection']['size']&&this['cfg']['useCloudImageEditor']&&this['hasBlockInCtx'](_0x26278e=>_0x26278e['activityType']===ActivityBlock['activities']['CLOUD_IMG_EDIT'])&&(this['$']['*currentActivityParams']={'internalId':_0x481d90['uid']},this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'],this['modalManager']?.['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']));}['setInitialCrop'](){const _0x51d1e1=parseCropPreset(this['cfg']['cropPreset']);if(_0x51d1e1){const [_0x2c089b]=_0x51d1e1,_0x4c3226=this['uploadCollection']['findItems'](_0x30f152=>!!_0x30f152['getValue']('fileInfo')&&_0x30f152['getValue']('isImage')&&!_0x30f152['getValue']('cdnUrlModifiers')?.['includes']('/crop/'))['map'](_0x5b6685=>this['uploadCollection']['read'](_0x5b6685))['filter'](Boolean);for(const _0x3995d8 of _0x4c3226){const _0xc3a537=_0x3995d8['getValue']('fileInfo');if(!_0xc3a537||!_0xc3a537['imageInfo']){console['warn']('Failed\x20to\x20get\x20image\x20info\x20for\x20entry',_0x3995d8['uid']);continue;}const {width:_0x1d013b,height:_0x3f7fe8}=_0xc3a537['imageInfo'],_0x36c4c8=calculateMaxCenteredCropFrame(_0x1d013b,_0x3f7fe8,'number'==typeof _0x2c089b?.['width']&&'number'==typeof _0x2c089b?.['height']&&_0x2c089b['width']>0x0&&_0x2c089b['height']>0x0?_0x2c089b['width']/_0x2c089b['height']:0x1),_0x3adce3=createCdnUrlModifiers('crop/'+_0x36c4c8['width']+'x'+_0x36c4c8['height']+'/'+_0x36c4c8['x']+','+_0x36c4c8['y'],'preview'),_0x1a2e04=_0x3995d8['getValue']('cdnUrl');_0x1a2e04?(_0x3995d8['setMultipleValues']({'cdnUrlModifiers':_0x3adce3,'cdnUrl':createCdnUrl(_0x1a2e04,_0x3adce3)}),0x1===this['uploadCollection']['size']&&this['cfg']['useCloudImageEditor']&&this['hasBlockInCtx'](_0x394a25=>_0x394a25['activityType']===ActivityBlock['activities']['CLOUD_IMG_EDIT'])&&(this['$']['*currentActivityParams']={'internalId':_0x3995d8['uid']},this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'],this['modalManager']?.['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']))):console['warn']('Failed\x20to\x20get\x20cdnUrl\x20for\x20entry',_0x3995d8['uid']);}}}async['getMetadataFor'](_0x5974de){const _0xd96a85=this['cfg']['metadata']||void 0x0;if('function'==typeof _0xd96a85){const _0x13e7c9=this['api']['getOutputItem'](_0x5974de);return await _0xd96a85(_0x13e7c9);}return _0xd96a85;}async['getUploadClientOptions'](){const _0x3fe13e=this['$']['*secureUploadsManager'],_0x1206bc=await _0x3fe13e['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':_0x1206bc?.['secureSignature'],'secureExpire':_0x1206bc?.['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'](_0x1b527e=>this['api']['getOutputItem'](_0x1b527e));}};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(_0x46b60e){return Math['floor'](_0x46b60e/0x3c)['toString']()['padStart'](0x2,'0')+':'+Math['floor'](_0x46b60e%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':_0x1ad7a3=>{const _0x22f665=_0x1ad7a3['target'];_0x22f665&&(this['_selectedCameraId']=_0x22f665['value'],this['_capture']());},'onAudioSelectChange':_0x3d5897=>{const _0x28d057=_0x3d5897['target'];_0x28d057&&(this['_selectedAudioId']=_0x28d057['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':_0x37766b=>{const _0x10bab3=_0x37766b['currentTarget'],_0x2c954f=_0x10bab3?.['getAttribute']('data-id');_0x2c954f&&this['_handleActiveTab'](_0x2c954f);}};}['_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 _0x5a8981=Math['floor']((performance['now']()-this['$']['_startTime']+this['$']['_elapsedTime'])/0x3e8);if('number'==typeof this['cfg']['maxVideoRecordingDuration']&&this['cfg']['maxVideoRecordingDuration']>0x0){const _0x3f4697=this['cfg']['maxVideoRecordingDuration']-_0x5a8981;if(_0x3f4697<=0x0){const _0x4f99ba=this['ref']['timer'];return _0x4f99ba&&(_0x4f99ba['textContent']=formatTime(_0x3f4697)),void this['_stopRecording']();}const _0x3c4084=this['ref']['timer'];_0x3c4084&&(_0x3c4084['textContent']=formatTime(_0x3f4697));}else{const _0x50e8cf=this['ref']['timer'];_0x50e8cf&&(_0x50e8cf['textContent']=formatTime(_0x5a8981));}this['_animationFrameId']=requestAnimationFrame(this['_updateTimer']);};['_startTimer']=()=>{this['$']['_startTime']=performance['now'](),this['$']['_elapsedTime']=0x0,this['_updateTimer']();};['_stopTimer']=()=>{this['_animationFrameId']&&cancelAnimationFrame(this['_animationFrameId']);};['_startTimeline']=()=>{const _0x148180=this['ref']['video'];if(!_0x148180)return;const _0x1cc427=_0x148180['currentTime'],_0x337679=_0x148180['duration']||0x1,_0xf066a2=this['ref']['line'];_0xf066a2&&(_0xf066a2['style']['transform']='scaleX('+_0x1cc427/_0x337679+')');const _0x353b6d=this['ref']['timer'];_0x353b6d&&(_0x353b6d['textContent']=formatTime(_0x1cc427)),this['_animationFrameId']=requestAnimationFrame(this['_startTimeline']);};['_stopTimeline']=()=>{this['_animationFrameId']&&cancelAnimationFrame(this['_animationFrameId']);};['_animationFrameId']=null;['_startRecording']=()=>{try{this['_chunks']=[],this['_options']={...this['cfg']['mediaRecorderOptions']};const {mimeType:_0x114403}=this['cfg']['mediaRecorderOptions']||{};_0x114403&&MediaRecorder['isTypeSupported'](_0x114403)?this['_options']['mimeType']=_0x114403: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',_0x1c2a67=>{this['_chunks']['push'](_0x1c2a67['data']);}),this['_startTimer'](),this['classList']['add']('uc-recording'),this['_setCameraState'](CameraSourceEvents['PLAY']));}catch(_0x57b9fe){console['error']('Failed\x20to\x20start\x20recording',_0x57b9fe),this['telemetryManager']['sendEventError'](_0x57b9fe,'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'](_0x2f9efe=>{_0x2f9efe['enabled']=!_0x2f9efe['enabled'],this['$']['toggleMicrophoneIcon']=_0x2f9efe['enabled']?'microphone':'microphone-mute',this['$']['audioSelectDisabled']=!_0x2f9efe['enabled'];});};['_previewVideo']=()=>{try{const _0x1eaf58=new Blob(this['_chunks'],{'type':this['_mediaRecorder']?.['mimeType']}),_0x2a132d=URL['createObjectURL'](_0x1eaf58),_0x5261c0=this['ref']['video'];if(!_0x5261c0)return;_0x5261c0['muted']=!0x1,_0x5261c0['volume']=0x1,this['$']['video']=null,_0x5261c0['src']=_0x2a132d,_0x5261c0['addEventListener']('play',()=>{this['_startTimeline'](),this['set$']({'currentTimelineIcon':'pause'});}),_0x5261c0['addEventListener']('pause',()=>{this['set$']({'currentTimelineIcon':'play'}),this['_stopTimeline']();});}catch(_0x3e36a4){console['error']('Failed\x20to\x20preview\x20video',_0x3e36a4),this['telemetryManager']['sendEventError'](_0x3e36a4,'camera\x20previewing.\x20Failed\x20to\x20preview\x20video');}};['_retake']=()=>{if(this['_setCameraState'](CameraSourceEvents['RETAKE']),this['_activeTab']===CameraSourceTypes['VIDEO']){this['$']['video']=this['_stream'];const _0x190b69=this['ref']['video'];_0x190b69&&(_0x190b69['muted']=!0x0);}this['ref']['video']?.['play']?.();};['_accept']=()=>{if(this['_setCameraState'](CameraSourceEvents['ACCEPT']),this['_activeTab']===CameraSourceTypes['PHOTO'])return void this['_canvas']?.['toBlob'](_0x24da89=>{if(!_0x24da89)return;const _0x4911af=this['_createFile']('camera','jpeg',DEFAULT_PICTURE_FORMAT,_0x24da89);this['_toSend'](_0x4911af);},DEFAULT_PICTURE_FORMAT);const _0x988131=new Blob(this['_chunks'],{'type':this['_mediaRecorder']?.['mimeType']}),_0xd1fd38=this['_guessExtensionByMime'](this['_mediaRecorder']?.['mimeType']),_0x4e29ba=this['_createFile']('video',_0xd1fd38,'video/'+_0xd1fd38,_0x988131);this['_toSend'](_0x4e29ba),this['_chunks']=[];};['_handlePhoto']=_0x2359ba=>{_0x2359ba===CameraSourceEvents['SHOT']&&this['set$']({'tabVideoHidden':!0x0,'cameraHidden':!0x0,'tabCameraHidden':!0x0,'cameraActionsHidden':!0x1,'cameraSelectHidden':!0x0}),_0x2359ba!==CameraSourceEvents['RETAKE']&&_0x2359ba!==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']=_0x950bac=>{_0x950bac===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'}),_0x950bac===CameraSourceEvents['STOP']&&this['set$']({'timerHidden':!0x1,'cameraHidden':!0x0,'audioToggleMicrophoneHidden':!0x0,'cameraActionsHidden':!0x1}),_0x950bac!==CameraSourceEvents['RETAKE']&&_0x950bac!==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']=_0x44f598=>{this['_activeTab']!==CameraSourceTypes['PHOTO']||'shot'!==_0x44f598&&'retake'!==_0x44f598&&'accept'!==_0x44f598||this['_handlePhoto'](_0x44f598),this['_activeTab']!==CameraSourceTypes['VIDEO']||'play'!==_0x44f598&&'stop'!==_0x44f598&&'retake'!==_0x44f598&&'accept'!==_0x44f598&&'pause'!==_0x44f598&&'resume'!==_0x44f598||this['_handleVideo'](_0x44f598);};['_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']=_0x152927=>{const _0x5c3996=this['ref']['switcher'];_0x5c3996?.['querySelectorAll']('button')['forEach'](_0x25995e=>{_0x25995e['classList']['toggle']('uc-active',_0x25995e['getAttribute']('data-id')===_0x152927);}),_0x152927===CameraSourceTypes['PHOTO']&&this['set$']({'currentIcon':'camera-full','audioSelectHidden':!0x0,'audioToggleMicrophoneHidden':!0x0}),_0x152927===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':_0x152927}}}),this['_activeTab']=_0x152927;};['_createFile']=(_0x3520f8,_0x325e22,_0x4744db,_0x21d425)=>{const _0x5d0549=Date['now']();return new File([_0x21d425],_0x3520f8+'-'+_0x5d0549+'.'+_0x325e22,{'lastModified':_0x5d0549,'type':_0x4744db});};['_guessExtensionByMime'](_0x3dba0b){const _0x35736c={'mp4':'mp4','ogg':'ogg','webm':'webm','quicktime':'mov','x-matroska':'mkv'};if(''===_0x3dba0b)return'webm';if(_0x3dba0b){const _0xd79306=_0x3dba0b['split']('/');if('video'===_0xd79306?.[0x0]){const _0x4b6a32=_0xd79306['slice'](0x1)['join']('/'),_0x586f70=_0x4b6a32?.['split'](';')[0x0];if(_0x586f70&&_0x35736c[_0x586f70])return _0x35736c[_0x586f70];}}return'avi';}['_toSend']=_0x9d338d=>{this['api']['addFileFromObject'](_0x9d338d,{'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'](_0x34bd47=>_0x34bd47===CameraSourceTypes['PHOTO']||_0x34bd47===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 _0x4ee3e7=this['_stream']?.['getAudioTracks'](),_0x3e4505=this['_stream']?.['getVideoTracks']();return _0x4ee3e7['forEach'](_0x5e398f=>{_0x5e398f['stop']();}),_0x3e4505['forEach'](_0x39869d=>{_0x39869d['stop']();}),!0x0;};['_stopCapture']=()=>{if(this['_capturing']){this['ref']['video']['volume']=0x0;const _0x20ab69=this['$']['video']?.['getTracks']?.();_0x20ab69?.[0x0]?.['stop'](),this['$']['video']=null,this['_makeStreamInactive'](),this['_stopTimer'](),this['_capturing']=!0x1;}};['_capture']=async()=>{const _0x30b1d6={'video':{...DEFAULT_VIDEO_CONFIG},'audio':!!this['cfg']['enableAudioRecording']&&{}};this['_selectedCameraId']&&(_0x30b1d6['video']={'deviceId':{'exact':this['_selectedCameraId']}}),this['_selectedAudioId']&&this['cfg']['enableAudioRecording']&&(_0x30b1d6['audio']={'deviceId':{'exact':this['_selectedAudioId']}}),this['ref']['video']&&(this['ref']['video']['volume']=0x0);try{this['_setPermissionsState']('prompt'),this['_stream']=await navigator['mediaDevices']['getUserMedia'](_0x30b1d6),this['_stream']['addEventListener']('inactive',()=>{this['_setPermissionsState']('denied');}),this['$']['video']=this['_stream'],this['_capturing']=!0x0,this['_setPermissionsState']('granted');}catch(_0x3710cd){this['_setPermissionsState']('denied'),console['log']('Failed\x20to\x20capture\x20camera',_0x3710cd),this['telemetryManager']['sendEventError'](_0x3710cd,'camera\x20capturing.\x20Failed\x20to\x20capture\x20camera');}};['_handlePermissionsChange']=()=>{this['_capture']();};['_permissionAccess']=async()=>{try{for(const _0x59b215 of DEFAULT_PERMISSIONS){const _0x8ac0c5=await navigator['permissions']['query']({'name':_0x59b215});this['_permissionResponses'][_0x59b215]=_0x8ac0c5,_0x8ac0c5['addEventListener']('change',this['_handlePermissionsChange']);}}catch(_0x183891){console['log']('Failed\x20to\x20use\x20permissions\x20API.\x20Fallback\x20to\x20manual\x20request\x20mode.',_0x183891),this['telemetryManager']['sendEventError'](_0x183891,'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(_0x580219){this['telemetryManager']['sendEventError'](_0x580219,'camera\x20devices.\x20Failed\x20to\x20get\x20user\x20media'),console['log']('Failed\x20to\x20get\x20user\x20media',_0x580219);}};['_getDevices']=async()=>{try{const _0x2eb3d3=await navigator['mediaDevices']['enumerateDevices']();this['_cameraDevices']=_0x2eb3d3['filter'](_0xca7d47=>'videoinput'===_0xca7d47['kind'])['map']((_0x21bef9,_0x3a38c5)=>({'text':_0x21bef9['label']['trim']()||this['l10n']('caption-camera')+'\x20'+(_0x3a38c5+0x1),'value':_0x21bef9['deviceId']})),this['_audioDevices']=this['cfg']['enableAudioRecording']?_0x2eb3d3['filter'](_0x292fff=>'audioinput'===_0x292fff['kind'])['map'](_0xa405f4=>({'text':_0xa405f4['label']['trim'](),'value':_0xa405f4['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(_0x18d2f1){this['telemetryManager']['sendEventError'](_0x18d2f1,'camera\x20devices.\x20Failed\x20to\x20get\x20devices'),console['log']('Failed\x20to\x20get\x20devices',_0x18d2f1);}};['_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']=_0x5e8b04=>{this['$']['tabVideoHidden']=!_0x5e8b04['includes'](CameraSourceTypes['VIDEO']),this['$']['tabCameraHidden']=!_0x5e8b04['includes'](CameraSourceTypes['PHOTO']);const _0x148b9d=_0x5e8b04[0x0];!_0x148b9d||this['_activeTab']&&_0x5e8b04['includes'](this['_activeTab'])||this['_handleActiveTab'](_0x148b9d);};['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':this['_onActivate'],'onDeactivate':this['_onDeactivate']}),this['subConfigValue']('cameraMirror',_0x12b11c=>{this['$']['videoTransformCss']=_0x12b11c?'scaleX(-1)':null;}),this['subConfigValue']('enableAudioRecording',_0x5c82ea=>{this['$']['audioToggleMicrophoneHidden']=!_0x5c82ea,this['$']['audioSelectDisabled']=!_0x5c82ea;}),this['subConfigValue']('cameraModes',_0x152487=>{if(!this['isActivityActive'])return;const _0x3f77c=deserializeCsv(_0x152487);this['_handleCameraModes'](_0x3f77c['filter'](_0x599c5a=>_0x599c5a===CameraSourceTypes['PHOTO']||_0x599c5a===CameraSourceTypes['VIDEO']));});}['_destroy'](){for(const _0x4c358e of DEFAULT_PERMISSIONS)this['_permissionResponses'][_0x4c358e]?.['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(..._0x34f178){return _0x34f178['reduce']((_0x5aa0be,_0x2c4447)=>{if('string'==typeof _0x2c4447)return _0x5aa0be[_0x2c4447]=!0x0,_0x5aa0be;for(const _0x12b73a of Object['keys'](_0x2c4447))_0x5aa0be[_0x12b73a]=_0x2c4447[_0x12b73a];return _0x5aa0be;},{});}function classNames(..._0x3ffa09){const _0x4fa8e5=normalize(..._0x3ffa09);return Object['keys'](_0x4fa8e5)['reduce']((_0x46feb2,_0x414d4b)=>(_0x4fa8e5[_0x414d4b]&&_0x46feb2['push'](_0x414d4b),_0x46feb2),[])['join']('\x20');}function applyClassNames(_0x12bd2e,..._0x160766){const _0x3d3cff=normalize(..._0x160766);for(const _0x5b813d of Object['keys'](_0x3d3cff))_0x12bd2e['classList']['toggle'](_0x5b813d,Boolean(_0x3d3cff[_0x5b813d]));}var isTabIdValue=_0x3f088c=>ALL_TABS['includes'](_0x3f088c),parseTabs=_0x32ead4=>{if(!_0x32ead4)return ALL_TABS;const _0x5bd07b=deserializeCsv(_0x32ead4)['filter'](isTabIdValue);return 0x0===_0x5bd07b['length']?ALL_TABS:_0x5bd07b;};function initState(_0x877620){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 _0x4d2c23=_0x877620['querySelectorAll']('img');for(const _0x5bc1e8 of _0x4d2c23){const _0x148b5d=_0x5bc1e8['src'];_0x5bc1e8['src']=TRANSPARENT_PIXEL_SRC,_0x5bc1e8['src']=_0x148b5d;}_0x877620['$']['*networkProblems']=!0x1;},'*on.apply':_0x211dc5=>{if(!_0x211dc5)return;const _0x486f24=_0x877620['$']['*originalUrl'],_0x1f193a=createCdnUrlModifiers(transformationsToOperations(_0x211dc5),'preview'),_0x4f9a63={'originalUrl':_0x486f24,'cdnUrlModifiers':_0x1f193a,'cdnUrl':createCdnUrl(_0x486f24,_0x1f193a),'transformations':_0x211dc5};_0x877620['dispatchEvent'](new CustomEvent('apply',{'detail':_0x4f9a63,'bubbles':!0x0,'composed':!0x0})),_0x877620['remove']();},'*on.cancel':()=>{_0x877620['remove'](),_0x877620['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'](_0x2ebdd3){this['$']['showLoader']=_0x2ebdd3;}['_waitForSize'](){return new Promise((_0x34e98a,_0x5e6a98)=>{const _0xd5db9b=window['setTimeout'](()=>{_0x5e6a98(new Error('[cloud-image-editor]\x20timeout\x20waiting\x20for\x20non-zero\x20container\x20size'));},0xbb8),_0x477172=new ResizeObserver(_0x9201e6=>{const [_0x154a8f]=_0x9201e6;_0x154a8f&&_0x154a8f['contentRect']['width']>0x0&&_0x154a8f['contentRect']['height']>0x0&&(window['clearTimeout'](_0xd5db9b),_0x477172['disconnect'](),window['setTimeout'](()=>_0x34e98a(),0x0));});_0x477172['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 _0x4aa30f=this['$']['cdnUrl'],_0x57d228=extractUuid(_0x4aa30f),_0x27b6a2=createOriginalUrl(_0x4aa30f,_0x57d228);if(_0x27b6a2===this['$']['*originalUrl'])return;this['$']['*originalUrl']=_0x27b6a2;const _0x3aa7ad=operationsToTransformations(extractOperations(_0x4aa30f));this['$']['*editorTransformations']=_0x3aa7ad;}else{if(!this['$']['uuid'])throw new Error('No\x20UUID\x20nor\x20CDN\x20URL\x20provided');{const _0x5e5a53=createOriginalUrl(this['cfg']['cdnCname'],this['$']['uuid']);if(_0x5e5a53===this['$']['*originalUrl'])return;this['$']['*originalUrl']=_0x5e5a53,this['$']['*editorTransformations']={};}}this['$']['*tabId']===TabId['CROP']?this['$']['*cropperEl']?.['deactivate']({'reset':!0x0}):this['$']['*faderEl']?.['deactivate']();try{const _0x5bf49d=this['$']['*originalUrl'],_0x286d0e=await this['proxyUrl'](createCdnUrl(_0x5bf49d,createCdnUrlModifiers('json'))),_0x1a84ac=await fetch(_0x286d0e)['then'](_0x330964=>_0x330964['json']()),{width:_0x5acdc4,height:_0x32968c}=_0x1a84ac;this['$']['*imageSize']={'width':_0x5acdc4,'height':_0x32968c},this['$']['*tabId']===TabId['CROP']?this['$']['*cropperEl']?.['activate'](this['$']['*imageSize']):this['$']['*faderEl']?.['activate']({'url':_0x5bf49d});}catch(_0x2c78ef){_0x2c78ef&&(this['telemetryManager']['sendEventError'](_0x2c78ef,'cloud\x20editor\x20image.\x20Failed\x20to\x20load\x20image\x20info'),console['error']('Failed\x20to\x20load\x20image\x20info',_0x2c78ef));}}}async['initEditor'](){try{await this['_waitForSize']();}catch(_0xa3cbd4){return void(this['isConnected']&&console['error'](_0xa3cbd4['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',_0x9e19cf=>{const _0x5a8a2a=this['ref']['img-el'];_0x5a8a2a['src']!==_0x9e19cf&&(_0x5a8a2a['src']=_0x9e19cf||TRANSPARENT_PIXEL_SRC);}),this['sub']('tabs',_0x19c619=>{this['$']['*tabList']=parseTabs(_0x19c619);}),this['sub']('*tabId',_0x4fb8e5=>{this['ref']['img-el']['className']=classNames('uc-image',{'uc-image_hidden_to_cropper':_0x4fb8e5===TabId['CROP'],'uc-image_hidden_effects':_0x4fb8e5!==TabId['CROP']});}),this['classList']['add']('uc-editor_ON'),this['sub']('*networkProblems',_0x39f379=>{this['$']['presence.networkProblems']=_0x39f379,this['$']['presence.modalCaption']=!_0x39f379;}),this['sub']('*editorTransformations',_0x3c2c39=>{if(0x0===Object['keys'](_0x3c2c39)['length'])return;const _0x46c45d=this['$']['*originalUrl'],_0x1b941a=createCdnUrlModifiers(transformationsToOperations(_0x3c2c39),'preview'),_0x2f3506={'originalUrl':_0x46c45d,'cdnUrlModifiers':_0x1b941a,'cdnUrl':createCdnUrl(_0x46c45d,_0x1b941a),'transformations':_0x3c2c39};this['dispatchEvent'](new CustomEvent('change',{'detail':_0x2f3506,'bubbles':!0x0,'composed':!0x0}));},!0x1),this['sub']('uuid',_0x54f2fe=>_0x54f2fe&&this['updateImage']()),this['sub']('cdnUrl',_0x47a368=>_0x47a368&&this['updateImage']()),this['sub']('cropPreset',_0x232cb9=>{const _0x4e3f02=parseCropPreset(_0x232cb9);let _0x5c2b8e=null;if(this['$']['cdnUrl']){const _0x4015ec=operationsToTransformations(extractOperations(this['$']['cdnUrl']));if(Array['isArray'](_0x4015ec?.['crop']?.['dimensions'])){const [_0x19954c,_0x69a73e]=_0x4015ec['crop']['dimensions'];_0x5c2b8e=getClosestAspectRatio(_0x19954c,_0x69a73e,_0x4e3f02,0.1);}}this['$']['*cropPresetList']=_0x4e3f02,this['$']['*currentAspectRatio']=_0x5c2b8e??_0x4e3f02?.[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'](_0x5f1f31){const _0x3e5f8a=this['$']['*imageBox'];if(!_0x3e5f8a)return!0x1;if(''===_0x5f1f31&&_0x3e5f8a['height']<=MIN_CROP_SIZE&&_0x3e5f8a['width']<=MIN_CROP_SIZE)return!0x0;const _0x2276f1=_0x3e5f8a['height']<=MIN_CROP_SIZE&&(_0x5f1f31['includes']('n')||_0x5f1f31['includes']('s')),_0x192781=_0x3e5f8a['width']<=MIN_CROP_SIZE&&(_0x5f1f31['includes']('e')||_0x5f1f31['includes']('w'));return _0x2276f1||_0x192781;}['_createBackdrop'](){const _0x35c14a=this['$']['*cropBox'];if(!_0x35c14a)return;const {x:_0x230cb1,y:_0x217257,width:_0x4465cb,height:_0x1c06f0}=_0x35c14a,_0x3a6cc7=this['ref']['svg-el'],_0x1b0af7=createSvgNode('mask',{'id':this['_backdropMaskId']}),_0x80e7ad=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'white'}),_0x2ca403=createSvgNode('rect',{'x':_0x230cb1,'y':_0x217257,'width':_0x4465cb,'height':_0x1c06f0,'fill':'black'});_0x1b0af7['appendChild'](_0x80e7ad),_0x1b0af7['appendChild'](_0x2ca403);const _0x4b997f=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'var(--color-image-background)','fill-opacity':0.85,'mask':'url(#'+this['_backdropMaskId']+')'});_0x3a6cc7['appendChild'](_0x4b997f),_0x3a6cc7['appendChild'](_0x1b0af7),this['_backdropMask']=_0x1b0af7,this['_backdropMaskInner']=_0x2ca403;}['_resizeBackdrop'](){this['_backdropMask']&&(this['_backdropMask']['style']['display']='none',window['requestAnimationFrame'](()=>{this['_backdropMask']&&(this['_backdropMask']['style']['display']='block');}));}['_updateBackdrop'](){const _0x2737a3=this['$']['*cropBox'];if(!_0x2737a3)return;const {x:_0x9b5c1c,y:_0x1b1959,width:_0x53a3be,height:_0xbb6c8}=_0x2737a3;this['_backdropMaskInner']&&setSvgNodeAttrs(this['_backdropMaskInner'],{'x':_0x9b5c1c,'y':_0x1b1959,'width':_0x53a3be,'height':_0xbb6c8});}['_updateFrame'](){const _0x59cbd1=this['$']['*cropBox'];if(_0x59cbd1&&this['_frameGuides']&&this['_frameThumbs']){for(const _0x5177cd of Object['values'](this['_frameThumbs'])){if(!_0x5177cd)continue;const {direction:_0x3f00af,pathNode:_0x541ee1,interactionNode:_0xf0795d,groupNode:_0x529f08}=_0x5177cd,_0x4557bd=''===_0x3f00af,_0x49adaa=0x2===_0x3f00af['length'],{x:_0x3dad75,y:_0x3d5b82,width:_0x53bd52,height:_0x219fe4}=_0x59cbd1;if(_0x4557bd)setSvgNodeAttrs(_0xf0795d,{'x':_0x3dad75,'y':_0x3d5b82,'width':_0x53bd52,'height':_0x219fe4});else{const _0x2ac568=clamp(Math['min'](_0x53bd52,_0x219fe4)/(0x2*THUMB_CORNER_SIZE+THUMB_SIDE_SIZE)/0x2,0x0,0x1),_0x28e505=_0x49adaa?cornerPath(_0x59cbd1,_0x3f00af,_0x2ac568):sidePath(_0x59cbd1,_0x3f00af,_0x2ac568),_0x4d1e79=_0x28e505['center'];if(!_0x4d1e79)continue;const _0x276519=Math['max'](MAX_INTERACTION_SIZE*clamp(Math['min'](_0x53bd52,_0x219fe4)/MAX_INTERACTION_SIZE/0x3,0x0,0x1),MIN_INTERACTION_SIZE);setSvgNodeAttrs(_0xf0795d,{'x':_0x4d1e79[0x0]-_0x276519,'y':_0x4d1e79[0x1]-_0x276519,'width':0x2*_0x276519,'height':0x2*_0x276519}),setSvgNodeAttrs(_0x541ee1,{'d':_0x28e505['d']});}const _0x406cbc=this['_shouldThumbBeDisabled'](_0x3f00af);_0x529f08['setAttribute']('class',classNames('uc-thumb',{'uc-thumb--hidden':_0x406cbc,'uc-thumb--visible':!_0x406cbc}));}setSvgNodeAttrs(this['_frameGuides'],{'x':_0x59cbd1['x']-0.5*GUIDE_STROKE_WIDTH,'y':_0x59cbd1['y']-0.5*GUIDE_STROKE_WIDTH,'width':_0x59cbd1['width']+GUIDE_STROKE_WIDTH,'height':_0x59cbd1['height']+GUIDE_STROKE_WIDTH});}}['_createThumb'](_0x3b1870,_0x5daf38){const _0x5a31ca=createSvgNode('g');_0x5a31ca['classList']['add']('uc-thumb'),_0x5a31ca['setAttribute']('with-effects','');const _0x41a3cf=createSvgNode('rect',{'fill':'transparent'}),_0x4a8d60=createSvgNode('path',{'stroke':'currentColor','fill':'none','stroke-width':THUMB_STROKE_WIDTH});_0x5a31ca['appendChild'](_0x4a8d60),_0x5a31ca['appendChild'](_0x41a3cf),_0x3b1870[_0x5daf38]={'direction':_0x5daf38,'pathNode':_0x4a8d60,'interactionNode':_0x41a3cf,'groupNode':_0x5a31ca},''===_0x5daf38&&(_0x5a31ca['style']['cursor']='move'),_0x41a3cf['addEventListener']('pointerdown',this['_handlePointerDown']['bind'](this,_0x5daf38));}['_createThumbs'](){const _0x11dbbf={};for(let _0x580700=0x0;_0x580700<0x3;_0x580700++)for(let _0x2f17cb=0x0;_0x2f17cb<0x3;_0x2f17cb++){const _0xb74ac3=''+['n','','s'][_0x580700]+['w','','e'][_0x2f17cb];''!==_0xb74ac3&&this['_createThumb'](_0x11dbbf,_0xb74ac3);}return this['_createThumb'](_0x11dbbf,''),_0x11dbbf;}['_createGuides'](){const _0x30c8b5=createSvgNode('svg'),_0x3bda08=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'none','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.5});_0x30c8b5['appendChild'](_0x3bda08);for(let _0x5d07e0=0x1;_0x5d07e0<=0x2;_0x5d07e0++){const _0x36a0a0=createSvgNode('line',{'x1':GUIDE_THIRD*_0x5d07e0+'%','y1':'0%','x2':GUIDE_THIRD*_0x5d07e0+'%','y2':'100%','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.3});_0x30c8b5['appendChild'](_0x36a0a0);}for(let _0x18b86c=0x1;_0x18b86c<=0x2;_0x18b86c++){const _0x2663fd=createSvgNode('line',{'x1':'0%','y1':GUIDE_THIRD*_0x18b86c+'%','x2':'100%','y2':GUIDE_THIRD*_0x18b86c+'%','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.3});_0x30c8b5['appendChild'](_0x2663fd);}return _0x30c8b5['classList']['add']('uc-guides','uc-guides--semi-hidden'),_0x30c8b5;}['_createFrame'](){const _0x214a4b=this['ref']['svg-el'],_0x4cb17c=document['createDocumentFragment'](),_0xc2fd7d=this['_createGuides']();_0x4cb17c['appendChild'](_0xc2fd7d);const _0x1e8ca0=this['_createThumbs']();for(const {groupNode:_0x1a9242}of Object['values'](_0x1e8ca0))_0x4cb17c['appendChild'](_0x1a9242);_0x214a4b['appendChild'](_0x4cb17c),this['_frameThumbs']=_0x1e8ca0,this['_frameGuides']=_0xc2fd7d;}['_handlePointerDown'](_0x41ab76,_0x3d2f61){if(!this['_frameThumbs'])return;const _0x320b65=this['_frameThumbs'][_0x41ab76];if(!_0x320b65)return;if(this['_shouldThumbBeDisabled'](_0x41ab76))return;const _0x2829bf=this['$']['*cropBox'],_0x842760=this['ref']['svg-el'],{x:_0x3968a6,y:_0x450b39}=_0x842760['getBoundingClientRect'](),_0x440317=_0x3d2f61['x']-_0x3968a6,_0x439bb2=_0x3d2f61['y']-_0x450b39;this['$']['dragging']=!0x0,this['_draggingThumb']=_0x320b65,this['_dragStartPoint']=[_0x440317,_0x439bb2],this['_dragStartCrop']={..._0x2829bf};}['_handlePointerUp_'](_0x269c4d){this['_updateCursor'](),this['$']['dragging']&&(_0x269c4d['stopPropagation'](),_0x269c4d['preventDefault'](),this['$']['dragging']=!0x1);}['_handlePointerMove_'](_0x46b52e){if(!this['$']['dragging']||!this['_dragStartPoint']||!this['_draggingThumb'])return;_0x46b52e['stopPropagation'](),_0x46b52e['preventDefault']();const _0x45a3dc=this['ref']['svg-el'],{x:_0x2bee7e,y:_0x12faf0}=_0x45a3dc['getBoundingClientRect'](),_0x167c59=_0x46b52e['x']-_0x2bee7e,_0x51f7ce=_0x46b52e['y']-_0x12faf0,_0x195e08=_0x167c59-this['_dragStartPoint'][0x0],_0x48b99e=_0x51f7ce-this['_dragStartPoint'][0x1],{direction:_0x604896}=this['_draggingThumb'],_0x3d9398=this['_calcCropBox'](_0x604896,[_0x195e08,_0x48b99e]);_0x3d9398&&(this['$']['*cropBox']=_0x3d9398);}['_calcCropBox'](_0x2dcd86,_0x1a21ba){const [_0x345668,_0x48e5db]=_0x1a21ba,_0x19585f=this['$']['*imageBox'];let _0x4ae609=this['_dragStartCrop']??this['$']['*cropBox'];const _0x3defb7=this['$']['*currentAspectRatio'],_0x5749ae=_0x3defb7?_0x3defb7['width']/_0x3defb7['height']:void 0x0;if(_0x4ae609=''===_0x2dcd86?moveRect({'rect':_0x4ae609,'delta':[_0x345668,_0x48e5db],'imageBox':_0x19585f}):resizeRect({'rect':_0x4ae609,'delta':[_0x345668,_0x48e5db],'direction':_0x2dcd86,'aspectRatio':_0x5749ae,'imageBox':_0x19585f}),Object['values'](_0x4ae609)['every'](_0x3a4a59=>Number['isFinite'](_0x3a4a59)&&_0x3a4a59>=0x0))return constraintRect(roundRect(_0x4ae609),_0x19585f);console['error']('CropFrame\x20is\x20trying\x20to\x20create\x20invalid\x20rectangle',{'payload':_0x4ae609});}['_handleSvgPointerMove_'](_0x524c4f){if(!this['_frameThumbs'])return;const _0x3fca53=Object['values'](this['_frameThumbs'])['find'](_0x5bbd96=>{if(!_0x5bbd96)return!0x1;if(this['_shouldThumbBeDisabled'](_0x5bbd96['direction']))return!0x1;const _0x297195=_0x5bbd96['interactionNode']['getBoundingClientRect']();return rectContainsPoint({'x':_0x297195['x'],'y':_0x297195['y'],'width':_0x297195['width'],'height':_0x297195['height']},[_0x524c4f['x'],_0x524c4f['y']]);});this['_hoverThumb']=_0x3fca53,this['_updateCursor']();}['_updateCursor'](){const _0x2b0c5e=this['_hoverThumb'];this['ref']['svg-el']['style']['cursor']=_0x2b0c5e?thumbCursor(_0x2b0c5e['direction']):'initial';}['_createMask'](_0x332bb9){if(this['_frameImage'])return void this['_frameImage']['setAttribute']('href',_0x332bb9);const _0xe6e87b=this['ref']['svg-el'],_0x13f57a=document['createDocumentFragment'](),_0x101700=createSvgNode('image',{'href':_0x332bb9});_0x101700['setAttribute']('class','uc-cloud-mask'),_0x13f57a['appendChild'](_0x101700),_0xe6e87b['appendChild'](_0x13f57a),this['_frameImage']=_0x101700;}['_updateMask'](){const _0x42f848=this['$']['*cropBox'];if(!_0x42f848||!this['_frameImage'])return;const {x:_0x5975ca,y:_0x50200c,width:_0x2fe498,height:_0x8bdeba}=_0x42f848;setSvgNodeAttrs(this['_frameImage'],{'x':_0x5975ca,'y':_0x50200c,'height':_0x8bdeba,'width':_0x2fe498});}['_render'](){this['_updateBackdrop'](),this['_updateFrame'](),this['_updateMask']();}['toggleThumbs'](_0x3f0a0c){if(this['_frameThumbs'])for(const _0x1a22c9 of Object['values'](this['_frameThumbs'])){if(!_0x1a22c9)continue;const {groupNode:_0x16a4f5}=_0x1a22c9;_0x16a4f5['setAttribute']('class',classNames('uc-thumb',{'uc-thumb--hidden':!_0x3f0a0c,'uc-thumb--visible':_0x3f0a0c}));}}['initCallback'](){super['initCallback'](),this['_createBackdrop'](),this['_createFrame'](),this['sub']('*imageBox',()=>{this['_resizeBackdrop'](),window['requestAnimationFrame'](()=>{this['_render']();});}),this['sub']('*cropBox',_0x1d162a=>{_0x1d162a&&(this['_guidesHidden']=_0x1d162a['height']<=MIN_CROP_SIZE||_0x1d162a['width']<=MIN_CROP_SIZE,window['requestAnimationFrame'](()=>{this['_render']();}));}),this['subConfigValue']('cloudImageEditorMaskHref',_0x31dee5=>{_0x31dee5&&this['_createMask'](_0x31dee5);}),this['sub']('dragging',_0x2fd90f=>{this['_frameGuides']&&this['_frameGuides']['setAttribute']('class',classNames({'uc-guides--hidden':this['_guidesHidden'],'uc-guides--visible':!this['_guidesHidden']&&_0x2fd90f,'uc-guides--semi-hidden':!this['_guidesHidden']&&!_0x2fd90f}));}),(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',_0x3b0860=>{const _0xf6a43b=this['_titleEl'];_0xf6a43b&&(_0xf6a43b['style']['display']=_0x3b0860?'block':'none');}),this['sub']('active',_0x2b05e7=>{this['className']=classNames({'uc-active':_0x2b05e7,'uc-not_active':!_0x2b05e7});}),this['sub']('on.click',_0x555c2f=>{this['onclick']=_0x555c2f??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=_0x1d5de7=>{let _0x11105a=0xc,_0x241715=0xc;return _0x1d5de7['width']/_0x1d5de7['height']>=0x1?(_0x11105a=SIZE_RECT_FIXED,_0x241715=Math['round'](SIZE_RECT_FIXED*_0x1d5de7['height']/_0x1d5de7['width'])):(_0x241715=SIZE_RECT_FIXED,_0x11105a=Math['round'](SIZE_RECT_FIXED*_0x1d5de7['width']/_0x1d5de7['height'])),{'width':_0x11105a,'height':_0x241715};},EditorFreeformButtonControl=class extends EditorButtonControl{['initCallback'](){super['initCallback'](),this['$']['icon']='arrow-dropdown',this['$']['on.click']=this['handleClick']['bind'](this),this['sub']('*currentAspectRatio',_0xb0d7ef=>{this['$']['title']=_0xb0d7ef['hasFreeform']?this['l10n']('freeform-crop'):this['l10n']('crop-to-shape',{'value':_0xb0d7ef['width']+':'+_0xb0d7ef['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',_0x1a802e=>{if(!_0x1a802e)return;const _0x252e9b=!!_0x1a802e['hasFreeform'];this['$']['title']=_0x252e9b?this['l10n']('custom'):_0x1a802e['width']+':'+_0x1a802e['height'],_0x252e9b||this['_renderRectBasedOnAspectRatio'](_0x1a802e),_0x252e9b&&this['setAttribute']('uc-aspect-ratio-freeform',''),this['_aspectRatio']=_0x1a802e,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-aspect-ratio',{'name':_0x252e9b?this['l10n']('custom')['toLowerCase']():this['l10n']('crop-to-shape',{'value':_0x1a802e['width']+':'+_0x1a802e['height']})['toLowerCase'](),'value':''}));}),this['sub']('*currentAspectRatio',_0x449fcd=>{this['$']['active']=_0x449fcd&&_0x449fcd['id']===this['_aspectRatio']?.['id']||_0x449fcd?.['width']===this['_aspectRatio']?.['width']&&_0x449fcd?.['height']===this['_aspectRatio']?.['height'];}),this['$']['on.click']=this['handleClick']['bind'](this);}['handleClick'](){const _0x3c0c8d=this['$']['*currentAspectRatio'];_0x3c0c8d?.['id']!==this['_aspectRatio']?.['id']&&(this['$']['*currentAspectRatio']=this['_aspectRatio']);}['_renderRectBasedOnAspectRatio'](_0x519b68){const {width:_0x340c21,height:_0x3bfc5a}=getAdjustResolutions(_0x519b68),_0x4f8bff=createSvgNode('rect',{'stroke-linejoin':'round','fill':'none','stroke':'currentColor','stroke-width':1.2,'fill-rule':'evenodd','x':(SIZE_SVG_WRAPPER-_0x340c21)/0x2,'y':(SIZE_SVG_WRAPPER-_0x3bfc5a)/0x2,'rx':0x2,'width':_0x340c21,'height':_0x3bfc5a}),_0x34d784=this['ref']['icon-el']?.['ref']?.['svg'];_0x34d784&&(_0x34d784['innerHTML']='',_0x34d784['appendChild'](_0x4f8bff));}['_aspectRatio'];};function nextAngle(_0x95c693){let _0x3160c=_0x95c693+0x5a;return _0x3160c=_0x3160c>=0x168?0x0:_0x3160c,_0x3160c;}function nextValue(_0x5391ac,_0x4e9d05){if('rotate'===_0x5391ac)return nextAngle('number'==typeof _0x4e9d05?_0x4e9d05:0x0);if('mirror'===_0x5391ac||'flip'===_0x5391ac)return!_0x4e9d05;throw new Error('Unsupported\x20operation:\x20'+_0x5391ac);}var EditorCropButtonControl=class extends EditorButtonControl{['_operation']=void 0x0;['initCallback'](){super['initCallback'](),this['defineAccessor']('operation',_0x1fd208=>{_0x1fd208&&(this['_operation']=_0x1fd208,this['$']['icon']=_0x1fd208,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-crop',{'name':this['l10n'](_0x1fd208)['toLowerCase']()})));}),this['$']['on.click']=_0x56571b=>{if(!this['_operation'])return;const _0x421006=this['$']['*cropperEl'],_0x25945a=_0x421006['getValue'](this['_operation']),_0xc0a0da=nextValue(this['_operation'],_0x25945a);this['telemetryManager']['sendEventCloudImageEditor'](_0x56571b,this['$']['*tabId'],{'operation':this['_operation'],'next':_0xc0a0da,'prev':_0x25945a}),_0x421006['setValue'](this['_operation'],_0xc0a0da);};}};function preloadImage(_0x3870c6){const _0x4a8844=new Image();return{'promise':new Promise((_0x2b2a4f,_0x52410e)=>{_0x4a8844['src']=_0x3870c6,_0x4a8844['onload']=()=>_0x2b2a4f(),_0x4a8844['onerror']=_0x37f707=>_0x52410e(_0x37f707);}),'image':_0x4a8844,'cancel':()=>{0x0===_0x4a8844['naturalWidth']&&(_0x4a8844['src']=TRANSPARENT_PIXEL_SRC);}};}function batchPreloadImages(_0x4b532e){const _0x297a9e=[];for(const _0x320e2c of _0x4b532e){const _0x22b36e=preloadImage(_0x320e2c);_0x297a9e['push'](_0x22b36e);}const _0x50f056=_0x297a9e['map'](_0x3c6bf5=>_0x3c6bf5['image']);return{'promise':Promise['allSettled'](_0x297a9e['map'](_0x247394=>_0x247394['promise'])),'images':_0x50f056,'cancel':()=>{_0x297a9e['forEach'](_0x8f226f=>{_0x8f226f['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':_0x3e9633=>{const _0x582db5=this['$']['*faderEl'];_0x582db5?.['set'](_0x3e9633),this['$']['value']=_0x3e9633;}};}['setOperation'](_0x520deb,_0x53f0a9){this['_operation']=_0x520deb,this['_filter']=_0x53f0a9,this['_initializeValues']();const _0x2c52cd=this['$']['*faderEl'],_0x379185=this['_originalUrl']||this['$']['*originalUrl'];_0x2c52cd&&_0x379185&&_0x2c52cd['activate']({'url':_0x379185,'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 _0x32ebe0=this['_operation'],{range:_0x2bf092,zero:_0x4e9163}=COLOR_OPERATIONS_CONFIG[_0x32ebe0],[_0x132f98,_0xb3dace]=_0x2bf092;this['$']['min']=_0x132f98,this['$']['max']=_0xb3dace,this['$']['zero']=_0x4e9163;const _0x53c7d7=this['$']['*editorTransformations'][_0x32ebe0];if('filter'===_0x32ebe0){let _0x1a1dfb=Number(_0xb3dace);const _0xf8c146=_0x53c7d7;if(_0xf8c146){const {name:_0x3cf29e,amount:_0x2b12cf}=_0xf8c146;_0x1a1dfb=_0x3cf29e===this['_filter']?_0x2b12cf:_0xb3dace;}return this['$']['value']=_0x1a1dfb,void(this['$']['defaultValue']=_0x1a1dfb);}const _0x283706=void 0x0!==_0x53c7d7?_0x53c7d7:_0x4e9163;this['$']['value']=_0x283706,this['$']['defaultValue']=_0x283706;}['apply'](){const _0x170044={...this['$']['*editorTransformations']};'filter'===this['_operation']?this['_filter']&&this['_filter']!==FAKE_ORIGINAL_FILTER?_0x170044['filter']={'name':this['_filter'],'amount':this['$']['value']}:delete _0x170044['filter']:_0x170044[this['_operation']]=this['$']['value'],this['$']['*editorTransformations']=_0x170044;}['cancel'](){const _0x59196a=this['$']['*faderEl'];_0x59196a?.['deactivate']({'hide':!0x1});}['initCallback'](){super['initCallback'](),this['sub']('*originalUrl',_0xfc6a05=>{this['_originalUrl']=_0xfc6a05;}),this['sub']('value',_0x2380de=>{const _0x419546=(this['_filter']??this['_operation'])+'\x20'+_0x2380de;this['$']['*operationTooltip']=_0x419546;});}};function parseFilterValue(_0x3fc264){const _0x2bc20d=_0x3fc264['match'](/^([A-Za-z]+)\s+(\d+)$/);if(!_0x2bc20d)return null;const [,_0x2295bb,_0x19060b]=_0x2bc20d;return _0x2295bb&&void 0x0!==_0x19060b?{'filter':_0x2295bb,'value':Number(_0x19060b)}: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 _0x2b8e00=parseInt(window['getComputedStyle'](this)['getPropertyValue']('--l-base-min-width'),0xa),_0x1ea76e=window['devicePixelRatio'],_0x742ae6=Math['ceil'](_0x1ea76e*_0x2b8e00),_0x24d383=_0x1ea76e>=0x2?'lightest':'normal',_0x5782cb={...this['$']['*editorTransformations']};return _0x5782cb[this['_operation']]=this['_filter']!==FAKE_ORIGINAL_FILTER?{'name':this['_filter'],'amount':0x64}:void 0x0,createCdnUrl(this['_originalUrl'],createCdnUrlModifiers(COMMON_OPERATIONS,transformationsToOperations(_0x5782cb),'quality/'+_0x24d383,'scale_crop/'+_0x742ae6+'x'+_0x742ae6+'/center'));}async['_observerCallback'](_0xb159f3,_0x2d2c39){const _0x5c855f=_0xb159f3[0x0];if(_0x5c855f?.['isIntersecting']){const _0x5a1e01=await this['proxyUrl'](this['_previewSrc']()),_0x3dab89=this['ref']['preview-el'],{promise:_0x24adcf,cancel:_0x55e26b}=preloadImage(_0x5a1e01);this['_cancelPreload']=_0x55e26b,_0x24adcf['catch'](_0x390b3e=>{this['$']['*networkProblems']=!0x0,console['error']('Failed\x20to\x20load\x20image',{'error':_0x390b3e});})['finally'](()=>{_0x3dab89['style']['backgroundImage']='url('+_0x5a1e01+')',_0x3dab89['setAttribute']('loaded',''),_0x2d2c39['unobserve'](this);});}else this['_cancelPreload']?.();}['initCallback'](){super['initCallback'](),this['$']['on.click']=_0x154d8e=>{if(this['$']['active'])!this['$']['isOriginal']&&(this['$']['*sliderEl']['setOperation'](this['_operation'],this['_filter']),this['$']['*showSlider']=!0x0);else{const _0xb81ac9=this['$']['*sliderEl'];_0xb81ac9['setOperation'](this['_operation'],this['_filter']),_0xb81ac9['apply']();}this['telemetryManager']['sendEventCloudImageEditor'](_0x154d8e,this['$']['*tabId'],{'operation':parseFilterValue(this['$']['*operationTooltip'])}),this['$']['*currentFilter']=this['_filter'];},this['defineAccessor']('filter',_0x486d71=>{this['_operation']='filter',this['_filter']=_0x486d71,this['$']['isOriginal']=_0x486d71===FAKE_ORIGINAL_FILTER,this['$']['icon']=this['$']['isOriginal']?'original':'slider',this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-filter',{'name':_0x486d71['toLowerCase']()}));}),this['_observer']=new window['IntersectionObserver'](this['_observerCallback']['bind'](this),{'threshold':[0x0,0x1]});const _0x2107af=this['$']['*originalUrl'];if(this['_originalUrl']=_0x2107af,this['$']['isOriginal'])this['ref']['icon-el']['classList']['add']('uc-original-icon');else this['_observer']['observe'](this);this['sub']('*currentFilter',_0x4cc201=>{this['$']['active']=_0x4cc201&&_0x4cc201===this['_filter'];}),this['sub']('isOriginal',_0x2ad1d8=>{this['$']['iconSize']=_0x2ad1d8?0x28:0x14;}),this['sub']('active',_0x24153d=>{if(this['$']['isOriginal'])return;this['ref']['icon-el']['style']['opacity']=_0x24153d?'1':'0';const _0x3e42b5=this['ref']['preview-el'];_0x24153d?_0x3e42b5['style']['opacity']='0':_0x3e42b5['style']['backgroundImage']&&(_0x3e42b5['style']['opacity']='1');}),this['sub']('*networkProblems',async _0x2ba3a5=>{if(!_0x2ba3a5){const _0x10f292=await this['proxyUrl'](this['_previewSrc']()),_0x4cf2c2=this['ref']['preview-el'];_0x4cf2c2['style']['backgroundImage']&&(_0x4cf2c2['style']['backgroundImage']='none',_0x4cf2c2['style']['backgroundImage']='url('+_0x10f292+')');}});}['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=(_0x590ec7,_0x482314)=>{let _0x33d0c4,_0x3b84f6=!0x1,_0x1165b3=0x0;const _0x454ba6=(..._0x150780)=>{_0x3b84f6?(_0x33d0c4&&clearTimeout(_0x33d0c4),_0x33d0c4=setTimeout(()=>{Date['now']()-_0x1165b3>=_0x482314&&(_0x590ec7(..._0x150780),_0x1165b3=Date['now']());},Math['max'](_0x482314-(Date['now']()-_0x1165b3),0x0))):(_0x590ec7(..._0x150780),_0x1165b3=Date['now'](),_0x3b84f6=!0x0);};return Object['defineProperty'](_0x454ba6,'cancel',{'configurable':!0x1,'writable':!0x1,'enumerable':!0x1,'value':()=>{_0x33d0c4&&clearTimeout(_0x33d0c4);}}),_0x454ba6;};function pick(_0x30fb2a,_0x4d8aaa){const _0x4fcdee={};for(const _0x2dd988 of _0x4d8aaa){const _0xe95cf0=_0x30fb2a[_0x2dd988];(Object['hasOwn'](_0x30fb2a,_0x2dd988)||void 0x0!==_0xe95cf0)&&(_0x4fcdee[_0x2dd988]=_0xe95cf0);}return _0x4fcdee;}function viewerImageSrc(_0x139733,_0x478a1f,_0x349cce){const _0x507c30=window['devicePixelRatio'],_0x119a4b=Math['min'](Math['ceil'](_0x478a1f*_0x507c30),0xbb8),_0x1841a8=_0x507c30>=0x2?'lightest':'normal';return createCdnUrl(_0x139733,createCdnUrlModifiers(COMMON_OPERATIONS,transformationsToOperations(_0x349cce),'quality/'+_0x1841a8,'stretch/off/-/resize/'+_0x119a4b+'x','@clib/'+PACKAGE_NAME+'/'+PACKAGE_VERSION+'/uc-cloud-image-editor/'));}function validateCrop(_0x548a1e){if(!_0x548a1e)return!0x0;const _0x5807aa=[({dimensions:_0x1adb6d,coords:_0x4637a3})=>[..._0x1adb6d,..._0x4637a3]['every'](_0x2b8d29=>Number['isInteger'](_0x2b8d29)&&Number['isFinite'](_0x2b8d29)),({dimensions:_0x40bb93,coords:_0x2f8ed8})=>_0x40bb93['every'](_0xce8ea4=>_0xce8ea4>0x0)&&_0x2f8ed8['every'](_0x204df4=>_0x204df4>=0x0)];return _0x5807aa['every'](_0xca97e8=>_0xca97e8(_0x548a1e));}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 _0x29d514=pick(this['$']['*editorTransformations'],Object['keys'](this['$']['*operations'])),_0x333836={...this['$']['*operations'],..._0x29d514};this['$']['*operations']=_0x333836;}['_initCanvas'](){const _0x36800b=this['ref']['canvas-el'],_0x29917f=_0x36800b['getContext']('2d'),_0x7294e0=this['offsetWidth'],_0x2aeec1=this['offsetHeight'],_0x5cfa46=window['devicePixelRatio'];_0x36800b['style']['width']=_0x7294e0+'px',_0x36800b['style']['height']=_0x2aeec1+'px',_0x36800b['width']=_0x7294e0*_0x5cfa46,_0x36800b['height']=_0x2aeec1*_0x5cfa46,_0x29917f?.['scale'](_0x5cfa46,_0x5cfa46),this['_canvas']=_0x36800b,this['_ctx']=_0x29917f;}['_alignImage'](){if(!this['_isActive']||!this['$']['image'])return;const _0x2da516=this['$']['image'],_0x78410f=this['$']['*padding'],_0x36f343=this['$']['*operations'],{rotate:_0x51f612}=_0x36f343,_0x5f3d66=this['offsetWidth'],_0x212af4=this['offsetHeight'],_0x3a54ab=rotateSize({'width':_0x2da516['naturalWidth'],'height':_0x2da516['naturalHeight']},_0x51f612);let _0x33974f;if(_0x3a54ab['width']>_0x5f3d66-0x2*_0x78410f||_0x3a54ab['height']>_0x212af4-0x2*_0x78410f){const _0x5b185e=_0x3a54ab['width']/_0x3a54ab['height'];if(_0x5b185e>_0x5f3d66/_0x212af4){const _0x3ad578=_0x5f3d66-0x2*_0x78410f,_0x47ba44=_0x3ad578/_0x5b185e;_0x33974f={'x':0x0+_0x78410f,'y':_0x78410f+(_0x212af4-0x2*_0x78410f)/0x2-_0x47ba44/0x2,'width':_0x3ad578,'height':_0x47ba44};}else{const _0x57290e=_0x212af4-0x2*_0x78410f,_0x58d3e4=_0x57290e*_0x5b185e;_0x33974f={'x':_0x78410f+(_0x5f3d66-0x2*_0x78410f)/0x2-_0x58d3e4/0x2,'y':0x0+_0x78410f,'width':_0x58d3e4,'height':_0x57290e};}}else{const {width:_0x30ef68,height:_0x190d6c}=_0x3a54ab;_0x33974f={'x':_0x78410f+(_0x5f3d66-0x2*_0x78410f)/0x2-_0x30ef68/0x2,'y':_0x78410f+(_0x212af4-0x2*_0x78410f)/0x2-_0x190d6c/0x2,'width':_0x30ef68,'height':_0x190d6c};}this['$']['*imageBox']=roundRect(_0x33974f);}['_alignCrop'](){let _0x302a89=this['$']['*cropBox'];const _0x3d0f52=this['$']['*imageBox'],_0x2c3b6d=this['$']['*operations'],{rotate:_0x17acad}=_0x2c3b6d,_0x23e18f=this['$']['*editorTransformations']['crop'],{width:_0x2ad15b,x:_0x2b846e,y:_0x8c2abf}=_0x3d0f52;if(_0x23e18f){const {dimensions:[_0x4d83b2,_0x50004d],coords:[_0x2ba0ed,_0x14995d]}=_0x23e18f,{width:_0x452442}=rotateSize(this['_imageSize'],_0x17acad),_0x51c988=_0x2ad15b/_0x452442;_0x302a89=constraintRect(roundRect({'x':_0x2b846e+_0x2ba0ed*_0x51c988,'y':_0x8c2abf+_0x14995d*_0x51c988,'width':_0x4d83b2*_0x51c988,'height':_0x50004d*_0x51c988}),_0x3d0f52);}const _0x207130=this['$']['*currentAspectRatio'],_0x2932d6=_0x207130?_0x207130['width']/_0x207130['height']:void 0x0;if(!isRectInsideRect(_0x302a89,_0x3d0f52)||_0x2932d6&&!isRectMatchesAspectRatio(_0x302a89,_0x2932d6)){const _0x139ab6=_0x3d0f52['width']/_0x3d0f52['height'];let _0x5b1dcb=_0x3d0f52['width'],_0x53501a=_0x3d0f52['height'];_0x2932d6&&(_0x139ab6>_0x2932d6?_0x5b1dcb=Math['min'](_0x3d0f52['height']*_0x2932d6,_0x3d0f52['width']):_0x53501a=Math['min'](_0x3d0f52['width']/_0x2932d6,_0x3d0f52['height'])),_0x302a89={'x':_0x3d0f52['x']+_0x3d0f52['width']/0x2-_0x5b1dcb/0x2,'y':_0x3d0f52['y']+_0x3d0f52['height']/0x2-_0x53501a/0x2,'width':_0x5b1dcb,'height':_0x53501a};}this['$']['*cropBox']=constraintRect(roundRect(_0x302a89),_0x3d0f52);}['_drawImage'](){const _0x14a7bf=this['_ctx'];if(!_0x14a7bf)return;const _0x4938b9=this['$']['image'],_0x5a2334=this['$']['*imageBox'],_0x3919d3=this['$']['*operations'],{mirror:_0x5e5662,flip:_0x3c07bc,rotate:_0x497266}=_0x3919d3,_0x593166=rotateSize({'width':_0x5a2334['width'],'height':_0x5a2334['height']},_0x497266);_0x14a7bf['save'](),_0x14a7bf['translate'](_0x5a2334['x']+_0x5a2334['width']/0x2,_0x5a2334['y']+_0x5a2334['height']/0x2),_0x14a7bf['rotate'](_0x497266*Math['PI']*-0x1/0xb4),_0x14a7bf['scale'](_0x5e5662?-0x1:0x1,_0x3c07bc?-0x1:0x1),_0x14a7bf['drawImage'](_0x4938b9,-_0x593166['width']/0x2,-_0x593166['height']/0x2,_0x593166['width'],_0x593166['height']),_0x14a7bf['restore']();}['_draw'](){if(!(this['_isActive']&&this['$']['image']&&this['_canvas']&&this['_ctx']))return;const _0x14de3d=this['_canvas'];this['_ctx']['clearRect'](0x0,0x0,_0x14de3d['width'],_0x14de3d['height']),this['_drawImage']();}['_animateIn']({fromViewer:_0x39bfab}){this['$']['image']&&(this['ref']['frame-el']['toggleThumbs'](!0x0),this['_transitionToImage'](),setTimeout(()=>{this['className']=classNames({'uc-active_from_viewer':_0x39bfab,'uc-active_from_editor':!_0x39bfab,'uc-inactive_to_editor':!0x1});}));}['_getCropDimensions'](){const _0x3f1860=this['$']['*cropBox'],_0x673da9=this['$']['*imageBox'],_0x1bae62=this['$']['*operations'],{rotate:_0x5c83f7}=_0x1bae62,{width:_0x3c4b94,height:_0x3af57b}=_0x673da9,{width:_0x3443bf,height:_0x219c04}=rotateSize(this['_imageSize'],_0x5c83f7),{width:_0x3f95fd,height:_0x120bc9}=_0x3f1860,_0x7b248b=_0x3c4b94/_0x3443bf,_0x1270c9=_0x3af57b/_0x219c04;return[clamp(Math['round'](_0x3f95fd/_0x7b248b),0x1,_0x3443bf),clamp(Math['round'](_0x120bc9/_0x1270c9),0x1,_0x219c04)];}['_getCropTransformation'](){const _0x297566=this['$']['*cropBox'],_0x45ae03=this['$']['*imageBox'],_0x32507b=this['$']['*operations'],{rotate:_0x176889}=_0x32507b,{width:_0x20ce1e,height:_0x23ffa7,x:_0x248946,y:_0x37288a}=_0x45ae03,{width:_0x3518ce,height:_0xc772c3}=rotateSize(this['_imageSize'],_0x176889),{x:_0x13fe87,y:_0x351759}=_0x297566,_0x1bf8a6=_0x20ce1e/_0x3518ce,_0x581a2f=_0x23ffa7/_0xc772c3,_0x492f47=this['_getCropDimensions'](),_0x2fbbf9={'dimensions':_0x492f47,'coords':[clamp(Math['round']((_0x13fe87-_0x248946)/_0x1bf8a6),0x0,_0x3518ce-_0x492f47[0x0]),clamp(Math['round']((_0x351759-_0x37288a)/_0x581a2f),0x0,_0xc772c3-_0x492f47[0x1])]};if(validateCrop(_0x2fbbf9)){if(_0x492f47[0x0]!==_0x3518ce||_0x492f47[0x1]!==_0xc772c3)return _0x2fbbf9;}else console['error']('Cropper\x20is\x20trying\x20to\x20create\x20invalid\x20crop\x20object',{'payload':_0x2fbbf9});}['_commit'](){if(!this['isConnected']||!this['_imageSize'])return;const _0xe049a4=this['$']['*operations'],{rotate:_0x3997b4,mirror:_0x251b89,flip:_0x560bf8}=_0xe049a4,_0x2ca8ac=this['_getCropTransformation'](),_0x5ccf13={...this['$']['*editorTransformations'],'crop':_0x2ca8ac,'rotate':_0x3997b4,'mirror':_0x251b89,'flip':_0x560bf8};this['$']['*editorTransformations']=_0x5ccf13;}['setValue'](_0x46ae03,_0x2528fc){this['$']['*operations']={...this['$']['*operations'],[_0x46ae03]:_0x2528fc},this['_isActive']&&(this['_alignImage'](),this['_alignCrop'](),this['_draw']());}['getValue'](_0x280b89){return this['$']['*operations'][_0x280b89];}async['activate'](_0x572ecf,{fromViewer:_0x18b42f}={}){if(!this['_isActive']){this['_isActive']=!0x0,this['_imageSize']=_0x572ecf,this['removeEventListener']('transitionend',this['_reset']);try{const _0x33f24c=this['$']['*originalUrl'],_0x2a35f7=this['$']['*editorTransformations'];this['$']['image']=await this['_waitForImage'](_0x33f24c,_0x2a35f7),this['_syncTransformations'](),this['_animateIn']({'fromViewer':_0x18b42f});}catch(_0x4b5c25){console['error']('Failed\x20to\x20activate\x20cropper',{'error':_0x4b5c25}),this['telemetryManager']['sendEventError'](_0x4b5c25,'cloud\x20editor\x20image.\x20Failed\x20to\x20activate\x20cropper');}this['_observer']=new ResizeObserver(_0x5ec3ba=>{const [_0x413f9d]=_0x5ec3ba;if(!_0x413f9d)return;_0x413f9d['contentRect']['width']>0x0&&_0x413f9d['contentRect']['height']>0x0&&this['_isActive']&&this['$']['image']&&this['_handleResizeThrottled']();}),this['_observer']['observe'](this);}}['deactivate']({reset:_0x37310b=!0x1}={}){this['_isActive']&&(!_0x37310b&&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 _0x3c221b=this['_getCropDimensions'](),_0x3213bd=this['$']['*cropBox'],_0x2508bd=Math['min'](this['offsetWidth'],_0x3c221b[0x0])/_0x3213bd['width'],_0xd792a9=Math['min'](this['offsetHeight'],_0x3c221b[0x1])/_0x3213bd['height'],_0x8617e5=Math['min'](_0x2508bd,_0xd792a9),_0x3068ed=_0x3213bd['x']+_0x3213bd['width']/0x2,_0x38ebd3=_0x3213bd['y']+_0x3213bd['height']/0x2;this['style']['transform']='scale('+_0x8617e5+')\x20translate('+(this['offsetWidth']/0x2-_0x3068ed)/_0x8617e5+'px,\x20'+(this['offsetHeight']/0x2-_0x38ebd3)/_0x8617e5+'px)',this['style']['transformOrigin']=_0x3068ed+'px\x20'+_0x38ebd3+'px';}['_transitionToImage'](){const _0x3eabab=this['$']['*cropBox'],_0x384688=_0x3eabab['x']+_0x3eabab['width']/0x2,_0x41634f=_0x3eabab['y']+_0x3eabab['height']/0x2;this['style']['transform']='scale(1)',this['style']['transformOrigin']=_0x384688+'px\x20'+_0x41634f+'px';}['_reset'](){this['_isActive']||(this['$']['image']=null);}async['_waitForImage'](_0x2970e2,_0x258074){const _0x22a73a=this['offsetWidth'];_0x258074={..._0x258074,'crop':void 0x0,'rotate':void 0x0,'flip':void 0x0,'mirror':void 0x0};const _0x3ba48c=await this['proxyUrl'](viewerImageSrc(_0x2970e2,_0x22a73a,_0x258074)),{promise:_0x31a6d5,cancel:_0x4510d6,image:_0x3577bc}=preloadImage(_0x3ba48c),_0x4980e3=this['_handleImageLoading'](_0x3ba48c);return _0x3577bc['addEventListener']('load',_0x4980e3,{'once':!0x0}),_0x3577bc['addEventListener']('error',_0x4980e3,{'once':!0x0}),this['_cancelPreload']?.(),this['_cancelPreload']=_0x4510d6,_0x31a6d5['then'](()=>_0x3577bc)['catch'](_0x5b8480=>(console['error']('Failed\x20to\x20load\x20image',{'error':_0x5b8480}),this['$']['*networkProblems']=!0x0,_0x3577bc));}['_handleImageLoading'](_0x2b8c5e){const _0x33497c='crop',_0x3f2168=this['$']['*loadingOperations'];let _0x13ece6=_0x3f2168['get'](_0x33497c);return _0x13ece6||(_0x13ece6=new Map(),_0x3f2168['set'](_0x33497c,_0x13ece6)),_0x13ece6['get'](_0x2b8c5e)||(_0x13ece6['set'](_0x2b8c5e,!0x0),this['$']['*loadingOperations']=_0x3f2168),()=>{const _0x4d8b7a=_0x3f2168['get'](_0x33497c);_0x4d8b7a?.['has'](_0x2b8c5e)&&(_0x4d8b7a['delete'](_0x2b8c5e),this['$']['*loadingOperations']=_0x3f2168);};}['initCallback'](){super['initCallback'](),this['sub']('*imageBox',()=>{this['_draw']();}),this['sub']('*cropBox',()=>{this['$']['image']&&this['_commitDebounced']();}),this['sub']('*currentAspectRatio',()=>{this['_alignCrop']();}),setTimeout(()=>{this['sub']('*networkProblems',_0x1f99c0=>{_0x1f99c0||this['_isActive']&&this['activate'](this['_imageSize'],{'fromViewer':!0x1});});},0x0);}['destroyCallback'](){super['destroyCallback'](),this['_observer']?.['disconnect']();}};function linspace(_0x409211,_0x6b7227,_0x24e89e){const _0x236ccc=_0x24e89e-0x1,_0x24dbf4=new Array(_0x24e89e);for(let _0x12ac38=_0x236ccc;_0x12ac38>=0x0;_0x12ac38-=0x1)_0x24dbf4[_0x12ac38]=Math['ceil']((_0x12ac38*_0x6b7227+(_0x236ccc-_0x12ac38)*_0x409211)/_0x236ccc);return _0x24dbf4;}function isOperationKey(_0x578fe0){return'string'==typeof _0x578fe0&&_0x578fe0 in COLOR_OPERATIONS_CONFIG;}function splitBySections(_0x2469d6){const _0xf1fb3c=[];for(let _0x43050a=0x0;_0x43050a<_0x2469d6['length']-0x1;_0x43050a+=0x1){const _0x3f6989=_0x2469d6[_0x43050a],_0x3138f7=_0x2469d6[_0x43050a+0x1];'number'==typeof _0x3f6989&&'number'==typeof _0x3138f7&&_0xf1fb3c['push']([_0x3f6989,_0x3138f7]);}return _0xf1fb3c;}function calculateOpacities(_0x5e80ae,_0x2468ae,_0xec2c68){const _0x5c6c33=splitBySections(_0x5e80ae)['find'](([_0x22e119,_0x312691])=>_0x22e119<=_0x2468ae&&_0x2468ae<=_0x312691);if(!_0x5c6c33)return _0x5e80ae['map'](()=>0x0);const [_0x32dee0,_0x2e86a1]=_0x5c6c33;return _0x5e80ae['map'](_0x332666=>{const _0x181618=Math['abs'](_0x32dee0-_0x2e86a1)||0x1,_0x153dd4=Math['abs'](_0x2468ae-_0x32dee0)/_0x181618;return _0x32dee0===_0x332666?_0x2468ae>_0xec2c68?0x1:0x1-_0x153dd4:_0x2e86a1===_0x332666?_0x2468ae>=_0xec2c68?_0x153dd4:0x1:0x0;});}function calculateZIndices(_0x1769f2,_0x1e2eb6){return _0x1769f2['map']((_0x3be79b,_0x42bec8)=>_0x3be79b<_0x1e2eb6?_0x1769f2['length']-_0x42bec8:_0x42bec8);}function keypointsRange(_0x3041d7,_0x1e3324){const _0x49fa0d=COLOR_OPERATIONS_CONFIG[_0x3041d7]['keypointsNumber'],{range:_0x1d12ed,zero:_0x341cc3}=COLOR_OPERATIONS_CONFIG[_0x3041d7];return[...new Set([...linspace(_0x1d12ed[0x0],_0x341cc3,_0x49fa0d+0x1),...linspace(_0x341cc3,_0x1d12ed[0x1],_0x49fa0d+0x1),_0x341cc3,_0x1e3324])]['sort']((_0x4bf4a4,_0x1e59bf)=>_0x4bf4a4-_0x1e59bf);}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'](_0xc5480c){const _0x23718b=this['_operation'],_0x34e8a9=this['$']['*loadingOperations'];_0x34e8a9['has'](_0x23718b)||_0x34e8a9['set'](_0x23718b,new Map());const _0x558128=_0x34e8a9['get'](_0x23718b);return _0x558128&&!_0x558128['get'](_0xc5480c)&&(_0x558128['set'](_0xc5480c,!0x0),this['$']['*loadingOperations']=_0x34e8a9),()=>{const _0x2f6334=_0x34e8a9['get'](_0x23718b);_0x2f6334?.['has'](_0xc5480c)&&(_0x2f6334['delete'](_0xc5480c),this['$']['*loadingOperations']=_0x34e8a9);};}['_flush'](){window['cancelAnimationFrame'](this['_raf']),this['_raf']=window['requestAnimationFrame'](()=>{for(const _0x1fe284 of this['_keypoints']){const {image:_0x56a2a2}=_0x1fe284;_0x56a2a2&&(_0x56a2a2['style']['opacity']=_0x1fe284['opacity']['toString'](),_0x56a2a2['style']['zIndex']=_0x1fe284['zIndex']['toString']());}});}['_imageSrc']({url:_0x22f52b=this['_url'],filter:_0x2f767f=this['_filter']??void 0x0,operation:_0x53917f,value:_0x290350}={}){if(!_0x22f52b)throw new Error('URL\x20is\x20not\x20defined');const _0x1decfb={...this['_transformations']};_0x53917f&&('filter'===_0x53917f?_0x2f767f&&'number'==typeof _0x290350&&(_0x1decfb['filter']={'name':_0x2f767f,'amount':_0x290350}):'number'==typeof _0x290350&&(_0x1decfb[_0x53917f]=_0x290350));const _0x129d5b=this['offsetWidth'];return this['proxyUrl'](viewerImageSrc(_0x22f52b,_0x129d5b,_0x1decfb));}async['_constructKeypoint'](_0xb4f75c,_0x2a2bbe){return{'src':await this['_imageSrc']({'operation':_0xb4f75c,'value':_0x2a2bbe}),'image':void 0x0,'opacity':0x0,'zIndex':0x0,'value':_0x2a2bbe};}['_isSame'](_0x410aaf,_0x5cf124){return this['_operation']===_0x410aaf&&this['_filter']===_0x5cf124;}async['_addKeypoint'](_0x182001,_0x3bcd57,_0x342b0f){const _0x11d033=()=>!this['_isSame'](_0x182001,_0x3bcd57)||this['_value']!==_0x342b0f||!!this['_keypoints']['find'](_0xe98772=>_0xe98772['value']===_0x342b0f);if(_0x11d033())return;const _0x29c253=await this['_constructKeypoint'](_0x182001,_0x342b0f),_0x3c9958=new Image();_0x3c9958['src']=_0x29c253['src'];const _0x5ddb68=this['_handleImageLoading'](_0x29c253['src']);_0x3c9958['addEventListener']('load',_0x5ddb68,{'once':!0x0}),_0x3c9958['addEventListener']('error',_0x5ddb68,{'once':!0x0}),_0x29c253['image']=_0x3c9958,_0x3c9958['classList']['add']('uc-fader-image'),_0x3c9958['addEventListener']('load',()=>{if(_0x11d033())return;const _0x1ebf3d=this['_keypoints'];let _0x16530a=_0x1ebf3d['findIndex'](_0x57075e=>_0x57075e['value']>_0x342b0f);-0x1===_0x16530a&&(_0x16530a=_0x1ebf3d['length']);const _0x372bcf=_0x1ebf3d[_0x16530a],_0xb9b3ef=_0x372bcf?.['image'],_0x555a02=this['_container'];!_0x555a02||_0xb9b3ef&&!_0x555a02['contains'](_0xb9b3ef)||(_0x1ebf3d['splice'](_0x16530a,0x0,_0x29c253),_0xb9b3ef&&_0x555a02['insertBefore'](_0x3c9958,_0xb9b3ef),this['_update'](_0x182001,_0x342b0f));},{'once':!0x0}),_0x3c9958['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}['set'](_0x10b8ae){const _0x3e6c59='string'==typeof _0x10b8ae?parseInt(_0x10b8ae,0xa):_0x10b8ae;isOperationKey(this['_operation'])&&Number['isFinite'](_0x3e6c59)&&(this['_update'](this['_operation'],_0x3e6c59),this['_addKeypointDebounced'](this['_operation'],this['_filter'],_0x3e6c59));}['_update'](_0x2faaea,_0x37579c){this['_operation']=_0x2faaea,this['_value']=_0x37579c;const {zero:_0x23751a}=COLOR_OPERATIONS_CONFIG[_0x2faaea],_0x4253ae=this['_keypoints']['map'](_0x1a9d17=>_0x1a9d17['value']),_0x2e8e4d=calculateOpacities(_0x4253ae,_0x37579c,_0x23751a),_0x54f827=calculateZIndices(_0x4253ae,_0x23751a);this['_keypoints']['forEach']((_0x334d06,_0x277e8c)=>{const _0x40141b=_0x2e8e4d[_0x277e8c],_0x21f8c6=_0x54f827[_0x277e8c];'number'==typeof _0x40141b&&(_0x334d06['opacity']=_0x40141b),'number'==typeof _0x21f8c6&&(_0x334d06['zIndex']=_0x21f8c6);}),this['_flush']();}['_createPreviewImage'](){const _0x4b71bc=new Image();return _0x4b71bc['classList']['add']('uc-fader-image','uc-fader-image--preview'),_0x4b71bc['style']['opacity']='0',_0x4b71bc;}async['_initNodes'](){const _0x288cd3=document['createDocumentFragment']();this['_previewImage']=this['_previewImage']||this['_createPreviewImage']();const _0x1d33ab=this['_previewImage'];this['contains'](_0x1d33ab)||_0x288cd3['appendChild'](_0x1d33ab);const _0x305347=document['createElement']('div');_0x288cd3['appendChild'](_0x305347);const _0x10acb8=this['_keypoints']['map'](_0x2d9c83=>_0x2d9c83['src']),{images:_0x5bdce2,promise:_0x42db54,cancel:_0x4ba2a0}=batchPreloadImages(_0x10acb8);_0x5bdce2['forEach'](_0x4a3abf=>{const _0x2f3dfc=this['_handleImageLoading'](_0x4a3abf['src']);_0x4a3abf['addEventListener']('load',_0x2f3dfc),_0x4a3abf['addEventListener']('error',_0x2f3dfc);}),this['_cancelLastImages']=()=>{_0x4ba2a0(),this['_cancelLastImages']=void 0x0;};const _0x3ff46a=this['_operation'],_0x13db83=this['_filter'];await _0x42db54,this['_isActive']&&this['_isSame'](_0x3ff46a,_0x13db83)&&(this['_container']?.['remove'](),this['_container']=_0x305347,this['_keypoints']['forEach']((_0x5ccf43,_0x4336a2)=>{const _0x3e2ba2=_0x5bdce2[_0x4336a2];_0x3e2ba2&&(_0x3e2ba2['classList']['add']('uc-fader-image'),_0x5ccf43['image']=_0x3e2ba2,this['_container']?.['appendChild'](_0x3e2ba2));}),this['appendChild'](_0x288cd3),this['_flush']());}async['setTransformations'](_0x523ecb){if(this['_transformations']=_0x523ecb,this['_previewImage']){const _0x396039=await this['_imageSrc'](),_0xda8fdb=this['_handleImageLoading'](_0x396039);this['_previewImage']['src']=_0x396039,this['_previewImage']['addEventListener']('load',_0xda8fdb,{'once':!0x0}),this['_previewImage']['addEventListener']('error',_0xda8fdb,{'once':!0x0}),this['_previewImage']['style']['opacity']='1',this['_previewImage']['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}}async['preload']({url:_0x36f212,filter:_0x1e9bfd,operation:_0x4d9357,value:_0x345736}){if(!_0x4d9357||'number'!=typeof _0x345736)return;this['_cancelBatchPreload']?.();const _0x206471=keypointsRange(_0x4d9357,_0x345736),_0x5d0364=await Promise['all'](_0x206471['map'](_0x45ef69=>this['_imageSrc']({'url':_0x36f212,'filter':_0x1e9bfd,'operation':_0x4d9357,'value':_0x45ef69}))),{cancel:_0x4004d5}=batchPreloadImages(_0x5d0364);this['_cancelBatchPreload']=_0x4004d5;}['_setOriginalSrc'](_0xa723ac){const _0x16ebc6=this['_previewImage']||this['_createPreviewImage']();if(this['contains'](_0x16ebc6)||this['appendChild'](_0x16ebc6),this['_previewImage']=_0x16ebc6,_0x16ebc6['src']===_0xa723ac)return _0x16ebc6['style']['opacity']='1',_0x16ebc6['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}));_0x16ebc6['style']['opacity']='0';const _0x255049=this['_handleImageLoading'](_0xa723ac);_0x16ebc6['addEventListener']('error',_0x255049,{'once':!0x0}),_0x16ebc6['src']=_0xa723ac,_0x16ebc6['addEventListener']('load',()=>{_0x255049(),_0x16ebc6&&(_0x16ebc6['style']['opacity']='1',_0x16ebc6['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}),_0x16ebc6['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}async['activate']({url:_0x2e6d40,operation:_0x49733a,value:_0x529dd9,filter:_0x509cc8,fromViewer:_0x365f9d}){this['_isActive']=!0x0,this['_hidden']=!0x1,this['_url']=_0x2e6d40,this['_operation']=_0x49733a??'initial',this['_value']=_0x529dd9,this['_filter']=_0x509cc8,this['_fromViewer']=_0x365f9d;if('number'!=typeof _0x529dd9&&!_0x509cc8){const _0x136f58=await this['_imageSrc']({'operation':_0x49733a,'value':_0x529dd9});return this['_setOriginalSrc'](_0x136f58),void this['_container']?.['remove']();}_0x49733a&&'number'==typeof _0x529dd9&&(this['_keypoints']=await Promise['all'](keypointsRange(_0x49733a,_0x529dd9)['map'](_0x50b499=>this['_constructKeypoint'](_0x49733a,_0x50b499))),this['_update'](_0x49733a,_0x529dd9),this['_initNodes']());}['deactivate']({hide:_0x1fec19=!0x0}={}){this['_isActive']=!0x1,this['_cancelLastImages']?.(),this['_cancelBatchPreload']?.(),_0x1fec19&&!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']=_0x36a693=>{this['$']['*sliderEl']['setOperation'](this['_operation']),this['$']['*showSlider']=!0x0,this['$']['*currentOperation']=this['_operation'],this['telemetryManager']['sendEventCloudImageEditor'](_0x36a693,this['$']['*tabId'],{'operation':parseFilterValue(this['$']['*operationTooltip'])});},this['defineAccessor']('operation',_0x5788e2=>{_0x5788e2&&(this['_operation']=_0x5788e2,this['$']['icon']=_0x5788e2,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-tuning',{'name':this['l10n'](_0x5788e2)['toLowerCase']()})),this['bindL10n']('title',()=>this['l10n'](_0x5788e2)));}),this['sub']('*editorTransformations',_0x2ecccf=>{if(!this['_operation'])return;const {zero:_0x2901e3}=COLOR_OPERATIONS_CONFIG[this['_operation']],_0x5ecd2f=_0x2ecccf[this['_operation']],_0x4b5c9e=void 0x0!==_0x5ecd2f&&_0x5ecd2f!==_0x2901e3;this['$']['active']=_0x4b5c9e;});}},X_THRESHOLD=0x1,EditorScroller=class extends Block{['initCallback'](){super['initCallback'](),this['addEventListener']('wheel',_0x5b076e=>{_0x5b076e['preventDefault']();const {deltaY:_0x1b15ca,deltaX:_0x1a40e7}=_0x5b076e;Math['abs'](_0x1a40e7)>X_THRESHOLD?this['scrollLeft']+=_0x1a40e7:this['scrollLeft']+=_0x1b15ca;},{'passive':!0x1}),this['addEventListener']('scroll',()=>{},{'passive':!0x0});}};function renderTabToggle(_0x1f3a1f){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.'+_0x1f3a1f+';\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-'+_0x1f3a1f+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-id=\x22'+_0x1f3a1f+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22'+_0x1f3a1f+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20on.clickTab;\x20aria-role:tab_role;\x20aria-controls:tab_'+_0x1f3a1f+';\x20title-prop:\x20a11y-editor-tab-'+_0x1f3a1f+'\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(_0xbe97db){return'\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20id=\x22tab_'+_0xbe97db+'\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-tab-content\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.tabContent.'+_0xbe97db+';\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-'+_0xbe97db+'\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':_0x2b7692=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x2b7692,this['$']['*tabId'],{'action':'cancel'}),this['_cancelPreload']?.(),(0x0,this['$']['*on.cancel'])();},'on.apply':_0x22b93a=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x22b93a,this['$']['*tabId'],{'action':'apply'}),(0x0,this['$']['*on.apply'])(this['$']['*editorTransformations']);},'on.applySlider':_0x3dca47=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x3dca47,this['$']['*tabId'],{'action':'apply-slider','operation':parseFilterValue(this['$']['*operationTooltip'])}),(this['ref']['slider-el']['apply'](),this['_onSliderClose']());},'on.cancelSlider':_0x451382=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x451382,this['$']['*tabId'],{'action':'cancel-slider'}),(this['ref']['slider-el']['cancel'](),this['_onSliderClose']());},'on.clickTab':_0x11a32c=>{const _0x19f66f=_0x11a32c['currentTarget'],_0x2e1014=_0x19f66f?.['getAttribute']('data-id');_0x2e1014&&(this['telemetryManager']['sendEventCloudImageEditor'](_0x11a32c,_0x2e1014),this['_activateTab'](_0x2e1014,{'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'](_0xc0bff2){const _0x2c5c0a=new EditorOperationControl();return _0x2c5c0a['operation']=_0xc0bff2,_0x2c5c0a;}['_createFilterControl'](_0x132192){const _0x2c793a=new EditorFilterControl();return _0x2c793a['filter']=_0x132192,_0x2c793a;}['_createToggleControl'](_0x4d1e54){const _0x216e63=new EditorCropButtonControl();return _0x216e63['operation']=_0x4d1e54,_0x216e63;}['_createAspectRatioControl'](_0x1fe702){const _0x2b4903=new EditorAspectRatioButtonControl();return _0x2b4903['aspectRatio']=_0x1fe702,_0x2b4903;}['_createFreeformControl'](){return new EditorFreeformButtonControl();}['_clearListAspectRatio'](){const _0x595bfb=this['$']['*listAspectRatioEl'];_0x595bfb&&(_0x595bfb['innerHTML']='');}['_renderControlsList'](_0xfb574b){const _0x460951=this['ref']['controls-list-'+_0xfb574b],_0x166a80=document['createDocumentFragment']();if(this['_clearListAspectRatio'](),_0xfb574b===TabId['CROP']){const _0x415980=this['$']['*cropPresetList'],_0x3b8344=_0x415980['length']>=0x3;if(_0x3b8344){const _0x37ab0f=this['_createFreeformControl']();_0x166a80['appendChild'](_0x37ab0f);}for(const _0x16fe15 of _0x415980){const _0x36cbfd=this['_createAspectRatioControl'](_0x16fe15);if(_0x166a80['appendChild'](_0x36cbfd),_0x3b8344){const _0x82a977=this['$']['*listAspectRatioEl'];_0x82a977?.['appendChild'](_0x36cbfd);}}for(const _0x28419b of this['$']['cropOperations']){const _0x296f41=this['_createToggleControl'](_0x28419b);_0x166a80['appendChild'](_0x296f41);}}else{if(_0xfb574b===TabId['FILTERS']){const _0x4da746=this['$']['filters'];[FAKE_ORIGINAL_FILTER,..._0x4da746]['forEach'](_0x148bd5=>{const _0x4aba88=this['_createFilterControl'](_0x148bd5);_0x166a80['appendChild'](_0x4aba88);});}else{if(_0xfb574b===TabId['TUNING'])for(const _0x3e4b2c of this['$']['colorOperations']){const _0x33d95a=this['_createOperationControl'](_0x3e4b2c);_0x166a80['appendChild'](_0x33d95a);}}}[..._0x166a80['children']]['forEach']((_0x1745c8,_0x3ca13a)=>{_0x3ca13a===_0x166a80['childNodes']['length']-0x1&&_0x1745c8['classList']['add']('uc-controls-list_last-item');}),_0x460951['innerHTML']='',_0x460951['appendChild'](_0x166a80);}['_activateTab'](_0xf3b38f,{fromViewer:_0x23fa1b}={}){this['$']['*tabId']=_0xf3b38f;const _0x14e525=this['$']['*faderEl'],_0x2ae08b=this['$']['*cropperEl'];_0xf3b38f===TabId['CROP']?(_0x14e525?.['deactivate'](),_0x2ae08b?.['activate'](this['$']['*imageSize'],{'fromViewer':_0x23fa1b})):(_0x14e525?.['activate']({'url':this['$']['*originalUrl'],'fromViewer':_0x23fa1b}),_0x2ae08b?.['deactivate']());for(const _0x45be60 of ALL_TABS){const _0x2c6799=_0x45be60===_0xf3b38f;this['ref']['tab-toggle-'+_0x45be60]['active']=_0x2c6799,_0x2c6799?(this['_renderControlsList'](_0xf3b38f),this['_syncTabIndicator']()):this['_unmountTabControls'](_0x45be60),this['$']['presence.tabContent.'+_0x45be60]=_0x2c6799;}}['_unmountTabControls'](_0x1cb5e6){const _0x354771=this['ref']['controls-list-'+_0x1cb5e6];_0x354771&&(_0x354771['innerHTML']='');}['_syncTabIndicator'](){const _0x513565=this['ref']['tab-toggle-'+this['$']['*tabId']];this['ref']['tabs-indicator']['style']['transform']='translateX('+_0x513565['offsetLeft']+'px)';}async['_preloadEditedImage'](){if(this['$']['*imgContainerEl']&&this['$']['*originalUrl']){const _0x214303=this['$']['*imgContainerEl']['offsetWidth'],_0xbd0d87=await this['proxyUrl'](viewerImageSrc(this['$']['*originalUrl'],_0x214303,this['$']['*editorTransformations']));this['_cancelPreload']?.();const {cancel:_0x555784}=batchPreloadImages([_0xbd0d87]);this['_cancelPreload']=()=>{_0x555784(),this['_cancelPreload']=void 0x0;};}}['_showLoader'](_0x4931ab){this['$']['showLoader']=_0x4931ab;}['_updateInfoTooltipHandler'](){const _0x2c8411=this['$']['*editorTransformations'],_0x29da73=this['$']['*currentOperation'];let _0x81aa49='',_0x152e2c=!0x1;if(this['$']['*tabId']===TabId['FILTERS']){if(_0x152e2c=!0x0,this['$']['*currentFilter']&&_0x2c8411?.['filter']?.['name']===this['$']['*currentFilter']){const _0x123fc5=_0x2c8411?.['filter']?.['amount']||0x64;_0x81aa49=this['$']['*currentFilter']+'\x20'+_0x123fc5;}else _0x81aa49=this['l10n'](FAKE_ORIGINAL_FILTER);}else{if(this['$']['*tabId']===TabId['TUNING']&&_0x29da73){_0x152e2c=!0x0;const _0x1b05ee=_0x2c8411?.[_0x29da73]||COLOR_OPERATIONS_CONFIG[_0x29da73]['zero'];_0x81aa49=this['l10n'](_0x29da73)+'\x20'+_0x1b05ee;}}_0x152e2c&&(this['$']['*operationTooltip']=_0x81aa49),this['ref']['tooltip-el']['classList']['toggle']('uc-info-tooltip_visible',_0x152e2c);}['initCallback'](){super['initCallback'](),this['$']['*sliderEl']=this['ref']['slider-el'],this['$']['*listAspectRatioEl']=this['ref']['list-el'],this['sub']('*imageSize',_0x205dd8=>{_0x205dd8&&setTimeout(()=>{this['_activateTab'](this['$']['*tabId'],{'fromViewer':!0x0});},0x0);}),this['sub']('*editorTransformations',_0x1f93af=>{const _0x216b30=_0x1f93af?.['filter']?.['name'];this['$']['*currentFilter']!==_0x216b30&&(this['$']['*currentFilter']=_0x216b30);}),this['sub']('*currentFilter',()=>{this['_updateInfoTooltip']();}),this['sub']('*currentOperation',()=>{this['_updateInfoTooltip']();}),this['sub']('*tabId',()=>{this['_updateInfoTooltip']();}),this['sub']('*originalUrl',()=>{this['$']['*faderEl']?.['deactivate']();}),this['sub']('*editorTransformations',_0x16c169=>{this['_preloadEditedImage'](),this['$']['*faderEl']?.['setTransformations'](_0x16c169);}),this['sub']('*loadingOperations',_0x450a6f=>{let _0x2ca49c=!0x1;for(const [,_0x145489]of _0x450a6f['entries']()){if(_0x2ca49c)break;for(const [,_0x1c1e71]of _0x145489['entries']())if(_0x1c1e71){_0x2ca49c=!0x0;break;}}this['_debouncedShowLoader'](_0x2ca49c);}),this['sub']('*showSlider',_0x4f69e1=>{this['$']['presence.subToolbar']=_0x4f69e1,this['$']['presence.mainToolbar']=!_0x4f69e1,this['$']['hideSliderOrList']=!0x0;}),this['sub']('*showListAspectRatio',_0x252211=>{this['$']['presence.subToolbar']=_0x252211,this['$']['presence.mainToolbar']=!_0x252211,this['$']['hideSliderOrList']=!0x1;}),this['sub']('*tabList',_0x5bed13=>{this['$']['presence.tabToggles']=_0x5bed13['length']>0x1;for(const _0x3f6a64 of ALL_TABS){this['$']['presence.tabToggle.'+_0x3f6a64]=_0x5bed13['includes'](_0x3f6a64),this['ref']['tab-toggle-'+_0x3f6a64]['style']['gridColumn']=''+(_0x5bed13['indexOf'](_0x3f6a64)+0x1);}if(!_0x5bed13['includes'](this['$']['*tabId'])&&_0x5bed13['length']>0x0){const [_0x1a2a0e]=_0x5bed13;_0x1a2a0e&&this['_activateTab'](_0x1a2a0e,{'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',_0x56c4de=>{_0x56c4de?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',_0x22ecff=>{this['_iconSingle']=!this['$']['text'],this['_iconHidden']=!_0x22ecff,this['$']['iconCss']=this['_iconCss']();}),this['sub']('theme',_0x932faf=>{_0x932faf&&'custom'!==_0x932faf&&(this['className']='uc-'+_0x932faf);}),this['sub']('text',()=>{this['_iconSingle']=!0x1;}),this['hasAttribute']('theme')||this['setAttribute']('theme','default'),this['defineAccessor']('aria-role',_0x54a247=>{this['$']['aria-role']=_0x54a247||'';}),this['defineAccessor']('aria-controls',_0x4d91b4=>{this['$']['aria-controls']=_0x4d91b4||'';}),this['defineAccessor']('title-prop',_0x29fc0f=>{this['$']['title-prop']=_0x29fc0f||'';});}set['reverse'](_0x544a32){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 _0x251f06=this['ref']['line-el'];_0x251f06['style']['transition']='initial',_0x251f06['style']['opacity']='0',_0x251f06['style']['transform']='translateX(-101%)',this['_active']&&this['_start']();};['initCallback'](){super['initCallback'](),this['defineAccessor']('active',_0x563527=>{'boolean'==typeof _0x563527&&(_0x563527?this['_start']():this['_stop']());});}['_start'](){this['_active']=!0x0;const {width:_0x4947ea}=this['getBoundingClientRect'](),_0x5e379f=this['ref']['line-el'];_0x5e379f['style']['transition']='transform\x201s',_0x5e379f['style']['opacity']='1',_0x5e379f['style']['transform']='translateX('+_0x4947ea+'px)',_0x5e379f['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',_0x19724a=>{_0x19724a&&(this['_externalTransitions']=!0x0,this['_visibleStyle']=_0x19724a['visible']??DEFAULT_STYLE['visible'],this['_hiddenStyle']=_0x19724a['hidden']??DEFAULT_STYLE['hidden']);}),this['defineAccessor']('visible',_0x275fdc=>{'boolean'==typeof _0x275fdc&&(this['_visible']=_0x275fdc,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 _0x4cd1ad=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x4cd1ad),this['$']['onInput']?.(_0x4cd1ad);},'on.sliderChange':()=>{const _0x45fea6=Number['parseInt'](this['_inputEl']()['value'],0xa);this['$']['onChange']?.(_0x45fea6);}},this['setAttribute']('with-effects','');}['initCallback'](){super['initCallback'](),this['defineAccessor']('disabled',_0x2d81e4=>{this['$']['disabled']=_0x2d81e4;}),this['defineAccessor']('min',_0xec7bfe=>{this['$']['min']=_0xec7bfe;}),this['defineAccessor']('max',_0x285c0c=>{this['$']['max']=_0x285c0c;}),this['defineAccessor']('defaultValue',_0x38e330=>{this['$']['defaultValue']=_0x38e330,(this['_inputEl']()['value']=String(_0x38e330),this['_updateValue'](_0x38e330));}),this['defineAccessor']('zero',_0xc5264a=>{this['_zero']=_0xc5264a;}),this['defineAccessor']('onInput',_0x547c9c=>{_0x547c9c&&(this['$']['onInput']=_0x547c9c);}),this['defineAccessor']('onChange',_0x30de25=>{_0x30de25&&(this['$']['onChange']=_0x30de25);}),this['_updateSteps'](),this['_observer']=new ResizeObserver(()=>{this['_updateSteps']();const _0x2c5d15=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x2c5d15);}),this['_observer']['observe'](this),this['_thumbSize']=Number['parseInt'](window['getComputedStyle'](this)['getPropertyValue']('--l-thumb-size'),0xa),setTimeout(()=>{const _0x5dafcb=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x5dafcb);},0x0),this['sub']('disabled',_0x5a024c=>{const _0x4a5342=this['_inputEl']();_0x5a024c?_0x4a5342['setAttribute']('disabled','disabled'):_0x4a5342['removeAttribute']('disabled');});const _0x20e2ba=this['_inputEl']();_0x20e2ba['addEventListener']('focus',()=>{this['style']['setProperty']('--color-effect','var(--hover-color-rgb)');}),_0x20e2ba['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'](_0x16ea0c){this['_updateZeroDot'](_0x16ea0c);const {width:_0x3ec89e}=this['getBoundingClientRect'](),_0x5ee390=0x64/(this['$']['max']-this['$']['min'])*(_0x16ea0c-this['$']['min'])*(_0x3ec89e-this['_thumbSize'])/0x64;window['requestAnimationFrame'](()=>{this['_thumbEl']()['style']['transform']='translateX('+_0x5ee390+'px)';});}['_updateZeroDot'](_0x3bf425){if(!this['_zeroDotEl'])return;this['_zeroDotEl']['style']['opacity']=_0x3bf425===this['_zero']?'0':'1';const {width:_0x273d9c}=this['getBoundingClientRect'](),_0x42fb32=0x64/(this['$']['max']-this['$']['min'])*(this['_zero']-this['$']['min'])*(_0x273d9c-this['_thumbSize'])/0x64;window['requestAnimationFrame'](()=>{this['_zeroDotEl']&&(this['_zeroDotEl']['style']['transform']='translateX('+_0x42fb32+'px)');});}['_updateSteps'](){const _0x419c09=this['_stepsEl'](),{width:_0x4a304e}=_0x419c09['getBoundingClientRect'](),_0x3d70fb=Math['ceil'](_0x4a304e/0x2),_0x1d8556=Math['ceil'](_0x3d70fb/0xf)-0x2;if(this['_stepsCount']===_0x1d8556)return;const _0x2339ab=document['createDocumentFragment'](),_0x15f9c2=document['createElement']('div'),_0x2c41e3=document['createElement']('div');_0x15f9c2['className']='uc-minor-step',_0x2c41e3['className']='uc-border-step',_0x2339ab['appendChild'](_0x2c41e3);for(let _0x226560=0x0;_0x226560<_0x1d8556;_0x226560+=0x1)_0x2339ab['appendChild'](_0x15f9c2['cloneNode']());_0x2339ab['appendChild'](_0x2c41e3['cloneNode']());for(let _0x569aa2=0x0;_0x569aa2<_0x1d8556;_0x569aa2+=0x1)_0x2339ab['appendChild'](_0x15f9c2['cloneNode']());_0x2339ab['appendChild'](_0x2c41e3['cloneNode']());const _0x34f26e=document['createElement']('div');_0x34f26e['className']='uc-zero-dot',_0x2339ab['appendChild'](_0x34f26e),this['_zeroDotEl']=_0x34f26e,_0x419c09['innerHTML']='',_0x419c09['appendChild'](_0x2339ab),this['_stepsCount']=_0x1d8556;}['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 _0x1d92f0=super['activityParams'];if('internalId'in _0x1d92f0)return _0x1d92f0;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',_0x27fe20=>{this['_instance']&&this['_instance']['getAttribute']('crop-preset')!==_0x27fe20&&this['_instance']['setAttribute']('crop-preset',_0x27fe20);}),this['subConfigValue']('cloudImageEditorTabs',_0x2a9a93=>{this['_instance']&&this['_instance']['getAttribute']('tabs')!==_0x2a9a93&&this['_instance']['setAttribute']('tabs',_0x2a9a93);});}['handleApply'](_0x181096){if(!this['_entry'])return;const _0x52726b=_0x181096['detail'];this['_entry']['setMultipleValues']({'cdnUrl':_0x52726b['cdnUrl'],'cdnUrlModifiers':_0x52726b['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:_0x4ec5bb}=this['activityParams'],_0x13c2ce=this['uploadCollection']['read'](_0x4ec5bb);if(!_0x13c2ce)throw new Error('Entry\x20with\x20internalId\x20\x22'+_0x4ec5bb+'\x22\x20not\x20found');this['_entry']=_0x13c2ce;const _0x18b6cc=this['_entry']['getValue']('cdnUrl');if(!_0x18b6cc)throw new Error('Entry\x20with\x20internalId\x20\x22'+_0x4ec5bb+'\x22\x20hasn\x27t\x20uploaded\x20yet');const _0x102dae=new CloudImageEditorBlock(),_0x126e39=this['cfg']['cropPreset'],_0x1a8511=this['cfg']['cloudImageEditorTabs'];_0x102dae['setAttribute']('ctx-name',this['ctxName']),_0x102dae['setAttribute']('cdn-url',_0x18b6cc),_0x126e39&&_0x102dae['setAttribute']('crop-preset',_0x126e39),_0x1a8511&&_0x102dae['setAttribute']('tabs',_0x1a8511),_0x102dae['addEventListener']('apply',_0x437a3d=>{const _0xa1a6f2=_0x437a3d;this['handleApply'](_0xa1a6f2),this['debugPrint']('editor\x20event\x20\x22apply\x22',_0xa1a6f2['detail']);}),_0x102dae['addEventListener']('cancel',_0x5b65dc=>{const _0x279f0e=_0x5b65dc;this['handleCancel'](),this['debugPrint']('editor\x20event\x20\x22cancel\x22',_0x279f0e['detail']);}),_0x102dae['addEventListener']('change',_0x1cb308=>{const _0x34ffee=_0x1cb308;this['debugPrint']('editor\x20event\x20\x22change\x22',_0x34ffee['detail']);}),this['innerHTML']='',this['appendChild'](_0x102dae),this['_instance']=_0x102dae;}['unmountEditor'](){this['_instance']=void 0x0,this['_entry']=void 0x0,this['innerHTML']='';}},toKebabCase=_0x207ad9=>_0x207ad9['match'](/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.['map'](_0xc511ec=>_0xc511ec['toLowerCase']())['join']('-'),ASSERTIONS=[{'test':_0x18538c=>!!_0x18538c['accept']&&!!_0x18538c['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':_0x4c16f8=>null!==_0x4c16f8['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':_0x48424e=>null!==_0x48424e['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(_0x25d8f3=>{for(const {test:_0x171976,message:_0xe14b91}of ASSERTIONS)_0x171976(_0x25d8f3)&&warnOnce(_0xe14b91);},0x0),isPromiseLike=_0x4e98c1=>_0x4e98c1 instanceof Promise||Boolean(_0x4e98c1&&'object'==typeof _0x4e98c1&&'then'in _0x4e98c1&&'function'==typeof _0x4e98c1['then']),defineComputedProperty=_0x3ead61=>_0x3ead61,COMPUTED_PROPERTIES=[defineComputedProperty({'key':'cameraModes','deps':['enableVideoRecording'],'fn':({cameraModes:_0x5ce984,enableVideoRecording:_0x4e31bb})=>{if(null===_0x4e31bb)return _0x5ce984;let _0x10fa92=deserializeCsv(_0x5ce984);return _0x4e31bb&&!_0x10fa92['includes']('video')?_0x10fa92=_0x10fa92['concat']('video'):_0x4e31bb||(_0x10fa92=_0x10fa92['filter'](_0x5c03e2=>'video'!==_0x5c03e2)),serializeCsv(_0x10fa92);}}),defineComputedProperty({'key':'cameraModes','deps':['defaultCameraMode'],'fn':({cameraModes:_0x45c535,defaultCameraMode:_0x155733})=>{if(null===_0x155733)return _0x45c535;let _0x22708e=deserializeCsv(_0x45c535);return _0x22708e=_0x22708e['sort']((_0x4f9e86,_0x415b16)=>_0x4f9e86===_0x155733?-0x1:_0x415b16===_0x155733?0x1:0x0),serializeCsv(_0x22708e);}}),defineComputedProperty({'key':'cdnCname','deps':['pubkey','cdnCnamePrefixed'],'fn':({pubkey:_0x41ed32,cdnCname:_0x3959a0,cdnCnamePrefixed:_0x54a4db})=>_0x41ed32&&(_0x3959a0===DEFAULT_CDN_CNAME||c$1(_0x3959a0,_0x54a4db))?f(_0x41ed32,_0x54a4db):_0x3959a0})],computeProperty=({key:_0x2b5ea6,setValue:_0x536e84,getValue:_0x35c9ba,computationControllers:_0x340ef9})=>{for(const _0x31235c of COMPUTED_PROPERTIES)if(_0x31235c['deps']['includes'](_0x2b5ea6)){const _0x2b223e={[_0x31235c['key']]:_0x35c9ba(_0x31235c['key'])};for(const _0x4f853c of _0x31235c['deps'])_0x2b223e[_0x4f853c]=_0x35c9ba(_0x4f853c);const _0x43803b=new AbortController();let _0x38e62;_0x340ef9['get'](_0x31235c['key'])?.['abort'](),_0x340ef9['set'](_0x31235c['key'],_0x43803b);try{_0x38e62=_0x31235c['fn'](_0x2b223e,{'signal':_0x43803b['signal']});}catch(_0x29ab58){return _0x340ef9['get'](_0x31235c['key'])===_0x43803b&&_0x340ef9['delete'](_0x31235c['key']),void console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0x31235c['key']+'\x22',_0x29ab58);}isPromiseLike(_0x38e62)?_0x38e62['then'](_0x2eac2f=>{_0x43803b['signal']['aborted']||_0x536e84(_0x31235c['key'],_0x2eac2f);})['catch'](_0x10df6b=>{_0x43803b['signal']['aborted']||console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0x31235c['key']+'\x22',_0x10df6b);})['finally'](()=>{_0x340ef9['get'](_0x31235c['key'])===_0x43803b&&_0x340ef9['delete'](_0x31235c['key']);}):_0x536e84(_0x31235c['key'],_0x38e62);}},asString=_0x4e89ad=>String(_0x4e89ad),asNumber2=_0x45e8db=>{const _0x5a22d1=Number(_0x45e8db);if(Number['isNaN'](_0x5a22d1))throw new Error('Invalid\x20number:\x20\x22'+_0x45e8db+'\x22');return _0x5a22d1;},asBoolean2=_0x523ab4=>{if(null==_0x523ab4)return!0x1;if('boolean'==typeof _0x523ab4)return _0x523ab4;if('true'===_0x523ab4)return!0x0;if(''===_0x523ab4)return!0x0;if('false'===_0x523ab4)return!0x1;throw new Error('Invalid\x20boolean:\x20\x22'+_0x523ab4+'\x22');},asStore=_0x49e4d3=>'auto'===_0x49e4d3?_0x49e4d3:asBoolean2(_0x49e4d3),asCameraCapture=_0x4eea58=>{const _0x3ddfdd=asString(_0x4eea58);if('user'!==_0x3ddfdd&&'environment'!==_0x3ddfdd&&''!==_0x3ddfdd)throw new Error('Invalid\x20value:\x20\x22'+_0x3ddfdd+'\x22');return _0x3ddfdd;},asCameraMode=_0x47714e=>{const _0x1bface=asString(_0x47714e);if(!Object['values'](CameraSourceTypes)['includes'](_0x1bface))throw new Error('Invalid\x20value:\x20\x22'+_0x1bface+'\x22');return _0x1bface;},asCameraModes=_0x4adb92=>{const _0x191d15=asString(_0x4adb92),_0x3588d7=deserializeCsv(_0x191d15);if(_0x3588d7['some'](_0x333c4e=>!Object['values'](CameraSourceTypes)['includes'](_0x333c4e)))throw new Error('Invalid\x20value:\x20\x22'+JSON['stringify'](_0x3588d7)+'\x22');return _0x191d15;},asMetadata=_0x5cceb0=>{if('object'==typeof _0x5cceb0&&!Array['isArray'](_0x5cceb0))return _0x5cceb0;if('function'==typeof _0x5cceb0)return _0x5cceb0;throw new Error('Invalid\x20metadata\x20value.\x20Must\x20be\x20an\x20object\x20or\x20function.');},asObject=_0xe4b1d8=>{if('object'==typeof _0xe4b1d8)return _0xe4b1d8;throw new Error('Invalid\x20value.\x20Must\x20be\x20an\x20object.');},asFunction=_0x289821=>{if('function'==typeof _0x289821)return _0x289821;throw new Error('Invalid\x20value.\x20Must\x20be\x20a\x20function.');},asArray=_0x14882e=>{if(Array['isArray'](_0x14882e))return _0x14882e;throw new Error('Must\x20be\x20an\x20array.');},asFilesViewMode=_0x2b4cfc=>{const _0x2d15e1=asString(_0x2b4cfc);if(['grid','list']['includes'](_0x2d15e1))return _0x2d15e1;throw new Error('Invalid\x20value:\x20\x22'+_0x2d15e1+'\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':_0x56094f=>asObject(_0x56094f),'secureUploadsSignatureResolver':_0x5e0fc8=>asFunction(_0x5e0fc8),'secureDeliveryProxyUrlResolver':_0x457718=>asFunction(_0x457718),'iconHrefResolver':_0x195dd6=>asFunction(_0x195dd6),'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=(_0x713ef3,_0x2a8264)=>{if(null!=_0x2a8264)try{return mapping[_0x713ef3](_0x2a8264);}catch(_0x523d4e){return console['error']('Invalid\x20value\x20for\x20config\x20key\x20\x22'+_0x713ef3+'\x22.',_0x523d4e),initialConfig[_0x713ef3];}},allConfigKeys=[...new Set(['debug',...Object['keys'](initialConfig)])],complexConfigKeys=['metadata','localeDefinitionOverride','secureUploadsSignatureResolver','secureDeliveryProxyUrlResolver','iconHrefResolver','fileValidators','collectionValidators','mediaRecorderOptions'],isComplexKey=_0x306090=>complexConfigKeys['includes'](_0x306090),plainConfigKeys=allConfigKeys['filter'](_0x5f15a0=>!isComplexKey(_0x5f15a0)),attrKeyMapping={...Object['fromEntries'](plainConfigKeys['map'](_0x3f9390=>[toKebabCase(_0x3f9390),_0x3f9390])),...Object['fromEntries'](plainConfigKeys['map'](_0x5ec91f=>[_0x5ec91f['toLowerCase'](),_0x5ec91f]))},attrStateMapping={...Object['fromEntries'](plainConfigKeys['map'](_0x48467d=>[toKebabCase(_0x48467d),sharedConfigKey(_0x48467d)])),...Object['fromEntries'](plainConfigKeys['map'](_0x73fc9=>[_0x73fc9['toLowerCase'](),sharedConfigKey(_0x73fc9)]))},getLocalPropName=_0x18a41d=>'__'+_0x18a41d,Config=class extends Block{['requireCtxName']=!0x0;constructor(){super(),this['init$']={...this['init$'],...Object['fromEntries'](Object['entries'](initialConfig)['map'](([_0x37c69a,_0x1aac42])=>[sharedConfigKey(_0x37c69a),_0x1aac42])),'computationControllers':new Map()};}['_flushValueToAttribute'](_0xb7b52,_0x7b558d){if(!isComplexKey(_0xb7b52)){const _0x1defa9=[...new Set([toKebabCase(_0xb7b52),_0xb7b52['toLowerCase']()])];for(const _0x4dae1e of _0x1defa9)null==_0x7b558d?this['removeAttribute'](_0x4dae1e):this['getAttribute'](_0x4dae1e)!==_0x7b558d['toString']()&&this['setAttribute'](_0x4dae1e,_0x7b558d['toString']());}}['_flushValueToState'](_0x418c3b,_0x304516){this['$'][sharedConfigKey(_0x418c3b)]!==_0x304516&&(this['$'][sharedConfigKey(_0x418c3b)]=null==_0x304516?initialConfig[_0x418c3b]:_0x304516);}['_setValue'](_0x310443,_0x5910bd){const _0x521b39=this,_0x56b193=normalizeConfigValue(_0x310443,_0x5910bd),_0x375edf=getLocalPropName(_0x310443);_0x521b39[_0x375edf]!==_0x56b193&&(this['_assertSameValueDifferentReference'](_0x310443,_0x521b39[_0x375edf],_0x56b193),_0x521b39[_0x375edf]=_0x56b193,this['_flushValueToAttribute'](_0x310443,_0x56b193),this['_flushValueToState'](_0x310443,_0x56b193),this['debugPrint']('[uc-config]\x20\x22'+_0x310443+'\x22',_0x56b193),runAssertions(this['cfg']));}['_getValue'](_0x4ade3e){return this[getLocalPropName(_0x4ade3e)]??this['$'][sharedConfigKey(_0x4ade3e)];}['_assertSameValueDifferentReference'](_0x49fac3,_0x134f7d,_0xb1b154){this['cfg']['debug']&&_0xb1b154!==_0x134f7d&&'object'==typeof _0xb1b154&&'object'==typeof _0x134f7d&&JSON['stringify'](_0xb1b154)===JSON['stringify'](_0x134f7d)&&(console['warn']('[uc-config]\x20Option\x20\x22'+_0x49fac3+'\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'+_0x49fac3+'\x22\x20previous\x20value:',_0x134f7d),console['warn']('[uc-config]\x20\x22'+_0x49fac3+'\x22\x20new\x20value:',_0xb1b154));}['initCallback'](){super['initCallback']();const _0x5e5359=this;for(const _0x59dc14 of plainConfigKeys)this['sub'](sharedConfigKey(_0x59dc14),_0x5a07dc=>{this['_setValue'](_0x59dc14,_0x5a07dc);},!0x1);for(const _0x387257 of allConfigKeys){const _0x9a3bce=_0x5e5359[_0x387257]??this['$'][sharedConfigKey(_0x387257)];_0x9a3bce!==initialConfig[_0x387257]&&this['_setValue'](_0x387257,_0x9a3bce),Object['defineProperty'](this,_0x387257,{'set':_0x3eae30=>{this['_setValue'](_0x387257,_0x3eae30);},'get':()=>this['_getValue'](_0x387257)});}for(const _0x491be8 of allConfigKeys)this['sub'](sharedConfigKey(_0x491be8),()=>{computeProperty({'key':_0x491be8,'setValue':this['_setValue']['bind'](this),'getValue':this['_getValue']['bind'](this),'computationControllers':this['computationControllers']});});}['attributeChangedCallback'](_0x10f4dc,_0x3feb4d,_0x51775e){if(_0x3feb4d===_0x51775e)return;const _0x3991fa=this,_0x28a160=attrKeyMapping[_0x10f4dc];_0x28a160&&(_0x3991fa[_0x28a160]=_0x51775e);}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',_0x4a6abe=>{this['toggleAttribute']('hidden',!!_0x4a6abe);});}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(_0x3a5721){return new Promise(_0x32ef51=>{'function'!=typeof window['FileReader']&&_0x32ef51(!0x1);try{const _0x4622be=new FileReader();_0x4622be['onerror']=()=>{_0x32ef51(!0x0);};const _0x93c75f=_0x4c41c2=>{'loadend'!==_0x4c41c2['type']&&_0x4622be['abort'](),_0x32ef51(!0x1);};_0x4622be['onloadend']=_0x93c75f,_0x4622be['onprogress']=_0x93c75f,_0x4622be['readAsDataURL'](_0x3a5721);}catch{_0x32ef51(!0x1);}});}function readEntryContentAsync(_0x26a1b3,_0x43272a){return new Promise(_0x1dec13=>{let _0x28b6cf=0x0;const _0x4b7e23=[],_0x1762f4=_0x435286=>{if(!_0x435286)return console['warn']('Unexpectedly\x20received\x20empty\x20content\x20entry',{'scope':'drag-and-drop'}),void _0x1dec13(null);_0x435286['isFile']?(_0x28b6cf++,_0x435286['file'](_0x31e93f=>{_0x28b6cf--;const _0x109d90=new File([_0x31e93f],_0x31e93f['name'],{'type':_0x31e93f['type']||_0x43272a});_0x4b7e23['push']({'type':'file','file':_0x109d90,'fullPath':_0x435286['fullPath']}),0x0===_0x28b6cf&&_0x1dec13(_0x4b7e23);})):_0x435286['isDirectory']&&_0x5a8a08(_0x435286['createReader']());},_0x5a8a08=_0x206bc2=>{_0x28b6cf++,_0x206bc2['readEntries'](_0x480d6d=>{_0x28b6cf--;for(const _0x57ec54 of _0x480d6d)_0x1762f4(_0x57ec54);0x0===_0x28b6cf&&_0x1dec13(_0x4b7e23);});};_0x1762f4(_0x26a1b3);});}function getDropItems(_0x39a524){const _0x5a6c0d=[],_0x51f05e=[];for(let _0x17ca26=0x0;_0x17ca26<_0x39a524['items']['length'];_0x17ca26++){const _0x35b6b9=_0x39a524['items'][_0x17ca26];if(_0x35b6b9){if('file'===_0x35b6b9['kind']){const _0x186bae=_0x35b6b9['type'],_0x4504b2=_0x35b6b9;if('function'==typeof _0x4504b2['webkitGetAsEntry']||'function'==typeof _0x4504b2['getAsEntry']){const _0x42a18e='function'==typeof _0x4504b2['webkitGetAsEntry']?_0x4504b2['webkitGetAsEntry']():_0x4504b2['getAsEntry']?.();_0x42a18e&&_0x51f05e['push'](readEntryContentAsync(_0x42a18e,_0x186bae)['then'](_0x141ac0=>{_0x141ac0&&_0x5a6c0d['push'](..._0x141ac0);}));continue;}const _0x256fa3=_0x35b6b9['getAsFile']();_0x256fa3&&_0x51f05e['push'](checkIsDirectory(_0x256fa3)['then'](_0x5b9ecd=>{_0x5b9ecd||_0x5a6c0d['push']({'type':'file','file':_0x256fa3});}));}else'string'===_0x35b6b9['kind']&&/^text\/uri-list/['test'](_0x35b6b9['type'])&&_0x51f05e['push'](new Promise(_0x2190ad=>{_0x35b6b9['getAsString'](_0x46f59c=>{_0x5a6c0d['push']({'type':'url','url':_0x46f59c}),_0x2190ad();});}));}}return Promise['all'](_0x51f05e)['then'](()=>_0x5a6c0d);}var DropzoneState=Object['freeze']({'ACTIVE':0x0,'INACTIVE':0x1,'NEAR':0x2,'OVER':0x3}),RESET_EVENTS=['focus'],NEAR_OFFSET=0x64,nearnessRegistry=new Map();function distance(_0x124bdc,_0xa420c7){const _0x5774c1=Math['max'](Math['min'](_0x124bdc[0x0],_0xa420c7['x']+_0xa420c7['width']),_0xa420c7['x']),_0x3361f3=Math['max'](Math['min'](_0x124bdc[0x1],_0xa420c7['y']+_0xa420c7['height']),_0xa420c7['y']);return Math['sqrt']((_0x124bdc[0x0]-_0x5774c1)*(_0x124bdc[0x0]-_0x5774c1)+(_0x124bdc[0x1]-_0x3361f3)*(_0x124bdc[0x1]-_0x3361f3));}function addDropzone(_0x3df46a){let _0x98873c=0x0;const _0x53160a=document['body'],_0x381107=new Set();let _0x2b78d9=DropzoneState['INACTIVE'];const _0x53b174=_0x2627b7=>{_0x3df46a['shouldIgnore']()&&_0x2627b7!==DropzoneState['INACTIVE']||(_0x2b78d9!==_0x2627b7&&_0x381107['forEach'](_0x116ae7=>{_0x116ae7(_0x2627b7);}),_0x2b78d9=_0x2627b7);},_0x521cab=()=>_0x98873c>0x0;var _0x193dc0;_0x193dc0=_0x2d81da=>_0x3df46a['onChange'](_0x2d81da),_0x381107['add'](_0x193dc0);const _0x250e2a=()=>{_0x98873c=0x0,_0x53b174(DropzoneState['INACTIVE']);},_0x40b298=()=>{_0x98873c+=0x1,_0x2b78d9===DropzoneState['INACTIVE']&&_0x53b174(DropzoneState['ACTIVE']);},_0x75e0a1=()=>{_0x98873c-=0x1,_0x521cab()||_0x53b174(DropzoneState['INACTIVE']);},_0x5ef63b=_0x56fe23=>{_0x56fe23['preventDefault'](),_0x98873c=0x0,_0x53b174(DropzoneState['INACTIVE']);},_0x151b79=_0x2c3b69=>{if(_0x3df46a['shouldIgnore']())return;_0x521cab()||(_0x98873c+=0x1);const _0x5a9336=[_0x2c3b69['x'],_0x2c3b69['y']],_0x2d9cb8=_0x3df46a['element']['getBoundingClientRect'](),_0x325169=Math['floor'](distance(_0x5a9336,_0x2d9cb8)),_0x5ab628=_0x325169<NEAR_OFFSET,_0x29bf77=_0x2c3b69['composedPath']()['includes'](_0x3df46a['element']);nearnessRegistry['set'](_0x3df46a['element'],_0x325169);const _0x44220b=Math['min'](...nearnessRegistry['values']())===_0x325169;_0x29bf77&&_0x44220b?(_0x2c3b69['preventDefault'](),_0x53b174(DropzoneState['OVER'])):_0x53b174(_0x5ab628&&_0x44220b?DropzoneState['NEAR']:DropzoneState['ACTIVE']);},_0x56ef01=async _0x44ae5a=>{if(_0x3df46a['shouldIgnore']())return;_0x44ae5a['preventDefault']();const {dataTransfer:_0x457b5a}=_0x44ae5a;if(!_0x457b5a)return;const _0x5783fe=await getDropItems(_0x457b5a);_0x3df46a['onItems'](_0x5783fe),_0x53b174(DropzoneState['INACTIVE']);};return _0x53160a['addEventListener']('drop',_0x5ef63b),_0x53160a['addEventListener']('dragleave',_0x75e0a1),_0x53160a['addEventListener']('dragenter',_0x40b298),_0x53160a['addEventListener']('dragover',_0x151b79),_0x3df46a['element']['addEventListener']('drop',_0x56ef01),RESET_EVENTS['forEach'](_0x5da94a=>{window['addEventListener'](_0x5da94a,_0x250e2a);}),()=>{nearnessRegistry['delete'](_0x3df46a['element']),_0x53160a['removeEventListener']('drop',_0x5ef63b),_0x53160a['removeEventListener']('dragleave',_0x75e0a1),_0x53160a['removeEventListener']('dragenter',_0x40b298),_0x53160a['removeEventListener']('dragover',_0x151b79),_0x3df46a['element']['removeEventListener']('drop',_0x56ef01),RESET_EVENTS['forEach'](_0x38be6b=>{window['removeEventListener'](_0x38be6b,_0x250e2a);});};}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 _0x2d31a3=this['getBoundingClientRect'](),_0x81d661=_0x2d31a3['width']>0x0&&_0x2d31a3['height']>0x0,_0x257069=_0x2d31a3['top']>=0x0&&_0x2d31a3['left']>=0x0&&_0x2d31a3['bottom']<=(window['innerHeight']||document['documentElement']['clientHeight'])&&_0x2d31a3['right']<=(window['innerWidth']||document['documentElement']['clientWidth']),_0x1a65ca=window['getComputedStyle'](this),_0x26a7c3='hidden'!==_0x1a65ca['visibility']&&'none'!==_0x1a65ca['display'];return _0x81d661&&_0x26a7c3&&_0x257069;}['initCallback'](){super['initCallback'](),this['bindL10n']('text',()=>this['l10n']('drop-files-here')),(this['$'][REGISTRY_KEY]['add'](this),this['defineAccessor']('disabled',_0x56b45e=>{this['set$']({'isEnabled':!asBoolean2(_0x56b45e)});}),this['defineAccessor']('clickable',_0x5f660=>{this['set$']({'isClickable':asBoolean2(_0x5f660)});}),this['defineAccessor']('initflow',_0x2a6699=>{this['set$']({'isInitFlow':asBoolean2(_0x2a6699)});}),this['defineAccessor']('with-icon',_0x825d48=>{this['set$']({'withIcon':asBoolean2(_0x825d48)});}),this['defineAccessor']('fullscreen',_0x57187f=>{this['set$']({'isFullscreen':asBoolean2(_0x57187f)});}),this['defineAccessor']('text',_0x3e5f18=>{'string'==typeof _0x3e5f18?this['bindL10n']('text',()=>this['l10n'](_0x3e5f18)||_0x3e5f18):this['bindL10n']('text',()=>this['l10n']('drop-files-here'));}),this['_destroyDropzone']=addDropzone({'element':this,'shouldIgnore':()=>this['_shouldIgnore'](),'onChange':_0x54bdc6=>{this['$']['state']=_0x54bdc6;},'onItems':_0x1af732=>{_0x1af732['length']&&(_0x1af732['forEach'](_0x58971f=>{'url'===_0x58971f['type']?this['api']['addFileFromUrl'](_0x58971f['url'],{'source':UploadSource['DROP_AREA']}):'file'===_0x58971f['type']&&this['api']['addFileFromObject'](_0x58971f['file'],{'source':UploadSource['DROP_AREA'],'fullPath':_0x58971f['fullPath']});}),this['uploadCollection']['size']&&(this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']})));}}));const _0x1cebd4=this['ref']['content-wrapper'];if(_0x1cebd4&&(this['_destroyContentWrapperDropzone']=addDropzone({'element':_0x1cebd4,'onChange':_0x4f387a=>{const _0xdf9bb7=Object['entries'](DropzoneState)['find'](([,_0xf2d239])=>_0xf2d239===_0x4f387a)?.[0x0]['toLowerCase']();_0xdf9bb7&&_0x1cebd4['setAttribute']('drag-state',_0xdf9bb7);},'onItems':()=>{},'shouldIgnore':()=>this['_shouldIgnore']()})),this['sub']('state',_0x26ee57=>{const _0x5c27b7=Object['entries'](DropzoneState)['find'](([,_0x440784])=>_0x440784===_0x26ee57)?.[0x0]['toLowerCase']();_0x5c27b7&&this['setAttribute']('drag-state',_0x5c27b7);}),this['subConfigValue']('sourceList',_0x25c7ac=>{const _0x51fd32=stringToArray(_0x25c7ac);this['$']['isEnabled']=_0x51fd32['includes'](UploadSource['LOCAL']),this['$']['isVisible']=this['$']['isEnabled']||!this['querySelector']('[data-default-slot]');}),this['sub']('isVisible',_0x50b47b=>{this['toggleAttribute']('hidden',!_0x50b47b);}),this['sub']('isClickable',_0x92b994=>{this['toggleAttribute']('clickable',_0x92b994);}),this['$']['isClickable']){const _0x1e1bd4=_0xeb4fc0=>{if(_0xeb4fc0 instanceof KeyboardEvent){if('Space'===_0xeb4fc0['code']||'Enter'===_0xeb4fc0['code']){if(this['$']['isInitFlow'])return void this['api']['initFlow']();this['api']['openSystemDialog']();}}else{if(_0xeb4fc0 instanceof MouseEvent){if(this['$']['isInitFlow'])return void this['api']['initFlow']();this['api']['openSystemDialog']();}}};this['_onAreaClicked']=_0x1e1bd4,this['addEventListener']('keydown',_0x1e1bd4),this['addEventListener']('click',_0x1e1bd4);}}['_shouldIgnore'](){if(!this['$']['isEnabled'])return!0x0;if(!this['_couldHandleFiles']())return!0x0;if(!this['$']['isFullscreen'])return!0x1;const _0x114570=this['$'][REGISTRY_KEY];if(0x0===_0x114570['size'])return!0x1;return[..._0x114570]['filter'](_0x2a469b=>_0x2a469b!==this)['filter'](_0x54b101=>_0x54b101['isActive']())['length']>0x0;}['_couldHandleFiles'](){const _0x14bb13=this['cfg']['multiple'],_0x331293=this['cfg']['multipleMax'],_0x499d8b=this['uploadCollection']['size'];return!(_0x14bb13&&_0x331293&&_0x499d8b>=_0x331293)&&!(!_0x14bb13&&_0x499d8b>0x0);}['destroyCallback'](){super['destroyCallback']();const _0xf73309=this['$'][REGISTRY_KEY];_0xf73309['delete'](this),0x0===_0xf73309['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 _0x4b1443=globalThis['top']??globalThis['parent']??globalThis['self'];try{return _0x4b1443['location']['origin'];}catch(_0xe08992){return console['warn']('Unable\x20to\x20access\x20top-level\x20window\x20location:',_0xe08992),globalThis['location']['origin'];}},escapeRegExp=_0x428a56=>_0x428a56['replace'](/[\\-\\[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\x5c$&'),wildcardRegexp=(_0x49aaab,_0x49a62f='i')=>{const _0x3ce640=_0x49aaab['split']('*')['map'](escapeRegExp);return new RegExp('^'+_0x3ce640['join']('.+')+'$',_0x49a62f);},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=(_0x3835fa,_0x31ab34)=>window['getComputedStyle'](_0x3835fa)['getPropertyValue'](_0x31ab34)['trim'](),buildThemeDefinition=_0x3f84b6=>{const _0x23aa11={};for(const _0x2245be of ucCustomProperties){const _0x34536a=getCssValue(_0x3f84b6,_0x2245be);_0x34536a&&(_0x23aa11[_0x2245be]=_0x34536a);}return _0x23aa11;},MESSAGE_TYPE_WHITELIST=['selected-files-change','toolbar-state-change'],isWhitelistedMessage=_0x24fdf5=>{if(!_0x24fdf5)return!0x1;if('object'!=typeof _0x24fdf5)return!0x1;if(!('type'in _0x24fdf5))return!0x1;const _0x1fd2c0=_0x24fdf5['type'];return'string'==typeof _0x1fd2c0&&!!MESSAGE_TYPE_WHITELIST['includes'](_0x1fd2c0);},MessageBridge=class{['_handlerMap']=new Map();['_context'];['_getTargetOrigin'];constructor(_0x366592,_0x162db5){this['_context']=_0x366592,this['_getTargetOrigin']=_0x162db5,window['addEventListener']('message',this['_handleMessage']);}['_handleMessage']=_0x5d765d=>{if(_0x5d765d['source']!==this['_context'])return;const _0x4eb375=_0x5d765d['data'];if(!isWhitelistedMessage(_0x4eb375))return;const _0x1218ae=this['_handlerMap']['get'](_0x4eb375['type']);if(_0x1218ae){for(const _0x125d52 of _0x1218ae)_0x125d52(_0x4eb375);}};['on'](_0x255dda,_0x52d366){const _0x2bec1c=this['_handlerMap']['get'](_0x255dda)??new Set();this['_handlerMap']['has'](_0x255dda)||this['_handlerMap']['set'](_0x255dda,_0x2bec1c),_0x2bec1c['add'](_0x52d366);}['send'](_0x1c2023){const _0x53ee47=this['_getTargetOrigin']();this['_context']['postMessage'](_0x1c2023,_0x53ee47);}['destroy'](){window['removeEventListener']('message',this['_handleMessage']);}};function queryString(_0x55b376){const _0x32e468=[];for(const [_0x2406f4,_0x510ebb]of Object['entries'](_0x55b376))null==_0x510ebb||'string'==typeof _0x510ebb&&0x0===_0x510ebb['length']||_0x32e468['push'](_0x2406f4+'='+encodeURIComponent(_0x510ebb));return _0x32e468['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 _0x500935 of this['$']['selectedList']){const _0x23c9de=this['extractUrlFromSelectedFile'](_0x500935),{filename:_0x2eb09d}=_0x500935,{externalSourceType:_0x6d8f1d}=this['activityParams'];this['api']['addFileFromUrl'](_0x23c9de,{'fileName':_0x2eb09d,'source':_0x6d8f1d});}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 _0x4565c1=super['activityParams'];if('externalSourceType'in _0x4565c1)return _0x4565c1;throw new Error('External\x20Source\x20activity\x20params\x20not\x20found');}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':()=>{const {externalSourceType:_0x190a27}=this['activityParams'];if(!_0x190a27)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':''+_0x190a27[0x0]?.['toUpperCase']()+_0x190a27?.['slice'](0x1),'activityIcon':_0x190a27}),this['mountIframe']();}}),this['sub']('*currentActivityParams',_0x2e6bd5=>{this['isActivityActive']&&(this['unmountIframe'](),this['mountIframe']());}),this['sub']('*currentActivity',_0x492392=>{_0x492392!==this['activityType']&&this['unmountIframe']();}),this['subConfigValue']('multiple',_0x121372=>{this['$']['showSelectionStatus']=_0x121372;}),this['subConfigValue']('localeName',_0x265742=>{this['setupL10n']();}),this['subConfigValue']('externalSourcesEmbedCss',_0x8a4519=>{this['applyEmbedCss'](_0x8a4519);});}['extractUrlFromSelectedFile'](_0x302fba){if(_0x302fba['alternatives']){const _0x48fe73=stringToArray(this['cfg']['externalSourcesPreferredTypes']);for(const _0xb5ffce of _0x48fe73){const _0x2fa7f3=wildcardRegexp(_0xb5ffce);for(const [_0x3b1f89,_0x191c9d]of Object['entries'](_0x302fba['alternatives']))if(_0x2fa7f3['test'](_0x3b1f89))return _0x191c9d;}}return _0x302fba['url'];}['handleToolbarStateChange'](_0x1be180){this['set$']({'toolbarVisible':_0x1be180['isVisible']});}async['handleSelectedFilesChange'](_0x2ee065){this['cfg']['multiple']===_0x2ee065['isMultipleMode']?(this['bindL10n']('counterText',()=>this['l10n']('selected-count',{'count':_0x2ee065['selectedCount'],'total':_0x2ee065['total']})),this['set$']({'doneBtnTextClass':_0x2ee065['isReady']?'':'uc-hidden','isSelectionReady':_0x2ee065['isReady'],'isDoneBtnEnabled':_0x2ee065['isReady']&&_0x2ee065['selectedFiles']['length']>0x0,'showSelectionStatus':_0x2ee065['isMultipleMode']&&_0x2ee065['total']>0x0,'couldSelectAll':_0x2ee065['selectedCount']<_0x2ee065['total'],'couldDeselectAll':_0x2ee065['selectedCount']===_0x2ee065['total'],'selectedList':_0x2ee065['selectedFiles'],'showDoneBtn':_0x2ee065['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'](_0x41b4b9){this['_messageBridge']?.['send']({'type':'set-embed-css','css':_0x41b4b9});}['setupL10n'](){this['_messageBridge']?.['send']({'type':'set-locale-definition','localeDefinition':this['cfg']['localeName']});}['remoteUrl'](){const {pubkey:_0xe4815e,remoteTabSessionKey:_0x2300f6,socialBaseUrl:_0xf53969,multiple:_0xd8afb9}=this['cfg'],{externalSourceType:_0x41d715}=this['activityParams'],_0x37454f=SOCIAL_SOURCE_MAPPING[_0x41d715]??_0x41d715,_0x499714={'lang':this['l10n']('social-source-lang')?.['split']('-')?.[0x0]||'en','public_key':_0xe4815e,'images_only':(!0x1)['toString'](),'session_key':_0x2300f6,'wait_for_theme':!0x0,'multiple':_0xd8afb9['toString'](),'origin':this['cfg']['topLevelOrigin']||getTopLevelOrigin(),'debug':this['cfg']['debug']},_0x2fda9e=new URL('/window4/'+_0x37454f,_0xf53969);return _0x2fda9e['search']=queryString(_0x499714),_0x2fda9e['toString']();}['mountIframe'](){const _0x3be656=create({'tag':'iframe','attributes':{'src':this['remoteUrl'](),'marginheight':0x0,'marginwidth':0x0,'frameborder':0x0,'allowTransparency':!0x0}});_0x3be656['addEventListener']('load',this['handleIframeLoad']['bind'](this)),this['ref']['iframeWrapper']['innerHTML']='',this['ref']['iframeWrapper']['appendChild'](_0x3be656),_0x3be656['contentWindow']&&(this['_messageBridge']?.['destroy'](),this['_messageBridge']=new MessageBridge(_0x3be656['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=_0x49ea8e=>{if('string'!=typeof _0x49ea8e)return!0x1;const _0x468321=regExpShrink['exec'](_0x49ea8e['toLocaleLowerCase']())??[];if(0x0===_0x468321['length'])return!0x1;const _0x12bc36=Number(_0x468321[0x1])*Number(_0x468321[0x2]),_0x353bae=MAX_SQUARE_SIDE*MAX_SQUARE_SIDE;return _0x12bc36>_0x353bae?(console['warn']('Shrinked\x20size\x20can\x20not\x20be\x20larger\x20than\x20'+Math['floor'](_0x353bae/0x3e8/0x3e8)+'MP.\x20You\x20have\x20set\x20'+_0x468321[0x1]+'x'+_0x468321[0x2]+'\x20('+Math['ceil'](_0x12bc36/0x3e8/0x64)/0xa+'MP).'),!0x1):{'quality':_0x468321[0x3]?Number(_0x468321[0x3])/0x64:void 0x0,'size':_0x12bc36};},FileItemConfig=class extends UploaderBlock{['_entrySubs']=new Set();['_entry']=null;['_withEntry'](_0x2be8de){return(..._0x58fccc)=>{const _0x449a9a=this['_entry'];if(_0x449a9a)return _0x2be8de(_0x449a9a,..._0x58fccc);console['warn']('No\x20entry\x20found');};}['_subEntry'](_0x1a8a68,_0x1426d2){this['_withEntry']((_0x57c148,_0x7fa367,_0x5af040)=>{const _0xcae9f6=_0x57c148['subscribe'](_0x7fa367,_0x534af6=>{this['isConnected']&&_0x5af040(_0x534af6);});this['_entrySubs']['add'](_0xcae9f6);})(_0x1a8a68,_0x1426d2);}['_reset'](){for(const _0x5be153 of this['_entrySubs'])_0x5be153['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'](_0x55ceac=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'edit-file','node':this['tagName']}}}),this['$']['*currentActivityParams']={'internalId':_0x55ceac['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'](_0x433003){const [_0x244f48]=_0x433003;_0x244f48&&(this['_isIntersecting']=_0x244f48['isIntersecting'],this['_thumbRect']=_0x244f48['boundingClientRect'],_0x244f48['isIntersecting']&&!this['_renderedOnce']&&(this['render'](),this['_renderedOnce']=!0x0));}['_handleEntryId'](_0x37c0f1){this['_reset']();const _0xb1104b=this['uploadCollection']?.['read'](_0x37c0f1);this['_entry']=_0xb1104b,_0xb1104b&&(this['_subEntry']('isQueuedForValidation',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('isValidationPending',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('uploadProgress',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('isQueuedForUploading',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('fileName',_0x5f4a12=>{this['$']['itemName']=_0x5f4a12||_0xb1104b['getValue']('externalUrl')||this['l10n']('file-no-name'),this['_debouncedCalculateState']();}),this['_subEntry']('externalUrl',_0x7268ac=>{this['$']['itemName']=_0xb1104b['getValue']('fileName')||_0x7268ac||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'](_0x3e427f){'list'===this['cfg']['filesViewMode']?this['$']['showFileNames']=!0x0:this['$']['showFileNames']=_0x3e427f;}['initCallback'](){super['initCallback'](),this['sub']('uid',_0x55c64d=>{this['_handleEntryId'](_0x55c64d);}),this['sub']('state',_0x53f6fe=>{this['_handleState'](_0x53f6fe);}),this['subConfigValue']('useCloudImageEditor',()=>this['_debouncedCalculateState']()),this['subConfigValue']('filesViewMode',_0x12cb89=>{this['_updateShowFileNames'](this['cfg']['gridShowFileNames']),this['setAttribute']('mode',_0x12cb89);}),this['subConfigValue']('gridShowFileNames',_0x1e9e1e=>{this['_updateShowFileNames'](_0x1e9e1e);}),this['onclick']=()=>{e['activeInstances']['forEach'](_0x1ce491=>{_0x1ce491===this?_0x1ce491['setAttribute']('focused',''):_0x1ce491['removeAttribute']('focused');});},this['sub']('*uploadTrigger',_0x39893b=>{this['_entry']&&!_0x39893b['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'](_0x224afc){const _0x19524b=this['_settingsOfShrink']();return _0x19524b?await shrinkFile(_0x224afc,_0x19524b):(console['warn']('Image\x20shrink\x20settings\x20are\x20invalid,\x20skipping\x20shrinking'),_0x224afc);}['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 _0x3c845c=document['createElement']('input');return _0x3c845c['type']='text',_0x3c845c['name']=this['ctxName'],_0x3c845c['required']=this['cfg']['multipleMin']>0x0,_0x3c845c['tabIndex']=-0x1,applyStyles(_0x3c845c,{'opacity':0x0,'height':0x0,'width':0x0}),_0x3c845c;}['initCallback'](){super['initCallback'](),this['_validationInputElement']=this['_createValidationInput'](),this['appendChild'](this['_validationInputElement']),this['sub']('*collectionState',_0x154219=>{{if(!this['_dynamicInputsContainer']){const _0x45b898=document['createElement']('div');this['appendChild'](_0x45b898),this['_dynamicInputsContainer']=_0x45b898;}if(!this['_validationInputElement']){const _0x250681=this['_createValidationInput']();this['appendChild'](_0x250681),this['_validationInputElement']=_0x250681;}if(this['_dynamicInputsContainer']['innerHTML']='','uploading'===_0x154219['status']||'idle'===_0x154219['status'])return this['_validationInputElement']['value']='',void this['_validationInputElement']['setCustomValidity']('');if('failed'===_0x154219['status']){const _0xdf7c37=_0x154219['errors'][0x0]?.['message'];return this['_validationInputElement']['value']='',void this['_validationInputElement']['setCustomValidity'](_0xdf7c37??'');}const _0xfd7916=_0x154219['group']?_0x154219['group']:null;if(_0xfd7916)return this['_validationInputElement']['value']=_0xfd7916['cdnUrl']??'',void this['_validationInputElement']['setCustomValidity']('');const _0x481893=_0x154219['allEntries']['map'](_0x3c505b=>_0x3c505b['cdnUrl'])['filter'](_0x389af9=>'string'==typeof _0x389af9);if(!this['cfg']['multiple']&&0x1===_0x481893['length']&&_0x481893[0x0])return this['_validationInputElement']['value']=_0x481893[0x0],void this['_validationInputElement']['setCustomValidity']('');this['_validationInputElement']['remove'](),this['_validationInputElement']=null;const _0x3f7e99=new DocumentFragment();for(const _0x51cc18 of _0x481893){const _0x34884e=document['createElement']('input');_0x34884e['type']='hidden',_0x34884e['name']=this['ctxName']+'[]',_0x34884e['value']=_0x51cc18,_0x3f7e99['appendChild'](_0x34884e);}this['_dynamicInputsContainer']['replaceChildren'](_0x3f7e99);}},!0x1);}},Icon=class extends Block{constructor(){super(),this['init$']={...this['init$'],'name':'','href':''};}['initCallback'](){super['initCallback'](),this['sub']('name',_0xbb8eb9=>{if(!_0xbb8eb9)return;let _0x11b7f5='#uc-icon-'+_0xbb8eb9;this['subConfigValue']('iconHrefResolver',_0x590e6e=>{if(_0x590e6e){const _0x1a0528=_0x590e6e(_0xbb8eb9);_0x11b7f5=_0x1a0528??_0x11b7f5;}this['$']['href']=_0x11b7f5;});}),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=_0x5dc472=>[...new Set(_0x5dc472)],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;['$$'](_0x30abea){return this['$'][CSS_PREF+_0x30abea];}['set$$'](_0x3343b5){for(const _0x187cfb in _0x3343b5)this['$'][CSS_PREF+_0x187cfb]=_0x3343b5[_0x187cfb];}['sub$$'](_0x2152de,_0x5a8b1c){this['sub'](CSS_PREF+_0x2152de,_0x1312fb=>{null!==_0x1312fb&&''!==_0x1312fb&&_0x5a8b1c(_0x1312fb);});}['analyticsParams'](){return'-/@clib/'+PACKAGE_NAME+'/'+PACKAGE_VERSION+'/uc-img/';}['initAttributes'](_0x1417ae){[...this['attributes']]['forEach'](_0x4fa7b8=>{PROPS_MAP[_0x4fa7b8['name']]||_0x1417ae['setAttribute'](_0x4fa7b8['name'],_0x4fa7b8['value']);});}['initIntersection'](_0x4d23e6,_0x519446){this['_isnObserver']=new IntersectionObserver(_0x53ddc7=>{_0x53ddc7['forEach'](_0x52a2b7=>{_0x52a2b7['isIntersecting']&&(_0x519446(),this['_isnObserver']['unobserve'](_0x4d23e6));});},{'root':null,'rootMargin':'0px'}),this['_isnObserver']['observe'](_0x4d23e6),this['_observed']||(this['_observed']=new Set()),this['_observed']['add'](_0x4d23e6);}['destroyCallback'](){super['destroyCallback'](),this['_isnObserver']&&(this['_observed']['forEach'](_0x10db7e=>{this['_isnObserver']['unobserve'](_0x10db7e);}),this['_isnObserver']=null),Data['deleteCtx'](this);}static get['observedAttributes'](){return Object['keys'](PROPS_MAP);}['attributeChangedCallback'](_0x662033,_0x59fe31,_0x54cf3c){window['setTimeout'](()=>{this['$'][CSS_PREF+_0x662033]=_0x54cf3c;});}},parseObjectToString=_0x167600=>Object['entries'](_0x167600)['filter'](([_0x58dcd0,_0x5498c1])=>void 0x0!==_0x5498c1&&''!==_0x5498c1)['map'](([_0x565a38,_0x2a53f7])=>'cdn-operations'===_0x565a38||'analytics'===_0x565a38?_0x2a53f7:_0x565a38+'/'+_0x2a53f7),ImgBase=class extends ImgConfig{['_img']=new Image();['_imgPreview']=new Image();['_fmtAbs'](_0x1fdce3){return!_0x1fdce3['includes']('//')&&!DEV_MODE&&(_0x1fdce3=new URL(_0x1fdce3,document['baseURI'])['href']),_0x1fdce3;}['_validateSize'](_0x164262){if(''!==_0x164262?.['trim']()){const _0x59fb55=_0x164262['match'](/\d+/)[0x0],_0x39987b=_0x164262['match'](/[a-zA-Z]+/)[0x0],_0x85ca92=parseInt(_0x59fb55,0xa);if(Number(_0x85ca92)>MAX_WIDTH_JPG&&this['hasFormatJPG'])return MAX_WIDTH_JPG+_0x39987b;if(Number(_0x85ca92)>MAX_WIDTH&&!this['hasFormatJPG'])return MAX_WIDTH+_0x39987b;}return _0x164262;}['_getCdnModifiers'](_0xfee1af,_0x564846){const _0x490b69={'format':this['$$']('format'),'quality':this['$$']('quality'),'resize':this['_validateSize'](_0xfee1af),'blur':_0x564846,'cdn-operations':this['$$']('cdn-operations'),'analytics':this['analyticsParams']()};return createCdnUrlModifiers(...parseObjectToString(_0x490b69));}['_getUrlBase'](_0x477b7f='',_0x157af3=''){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 _0x34590f=this['_getCdnModifiers'](_0x477b7f,_0x157af3);return this['$$']('src')['startsWith'](this['$$']('cdn-cname'))?createCdnUrl(this['$$']('src'),_0x34590f):this['$$']('cdn-cname')&&this['$$']('uuid')||this['$$']('uuid')?this['_proxyUrl'](createCdnUrl(createOriginalUrl(this['$$']('cdn-cname'),this['$$']('uuid')),_0x34590f)):this['$$']('proxy-cname')?this['_proxyUrl'](createCdnUrl(this['$$']('proxy-cname'),_0x34590f,this['_fmtAbs'](this['$$']('src')))):this['$$']('pubkey')?this['_proxyUrl'](createCdnUrl('https://'+this['$$']('pubkey')+'.ucr.io/',_0x34590f,this['_fmtAbs'](this['$$']('src')))):void 0x0;}['_proxyUrl'](_0x42cec4){return this['$$']('secure-delivery-proxy')?applyTemplateData(this['$$']('secure-delivery-proxy'),{'previewUrl':_0x42cec4},{'transform':_0x41afb5=>window['encodeURIComponent'](_0x41afb5)}):_0x42cec4;}['_getElSize'](_0x6b71ed,_0x4643ee=0x1,_0xa65c22=!0x0){const _0x153f1c=_0x6b71ed['getBoundingClientRect'](),_0x4515dc=_0x4643ee*Math['round'](_0x153f1c['width']),_0x31422d=_0xa65c22?'':_0x4643ee*Math['round'](_0x153f1c['height']);return _0x4515dc||_0x31422d?(_0x4515dc||'')+'x'+(_0x31422d||''):null;}['_setupEventProxy'](_0x2937aa){const _0x41c4d9=_0x26bfe3=>{_0x26bfe3['stopPropagation']();const _0x53f8a6=new Event(_0x26bfe3['type'],_0x26bfe3);this['dispatchEvent'](_0x53f8a6);},_0xeb8be3=['load','error'];for(const _0x2a435d of _0xeb8be3)_0x2937aa['addEventListener'](_0x2a435d,_0x41c4d9);}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 _0x29ca9e=stringToArray(this['$$']('breakpoints'));return uniqueArray(_0x29ca9e['map'](_0x450750=>parseInt(_0x450750,0xa)));}return null;}get['hasFormatJPG'](){return'jpeg'===this['$$']('format')['toLowerCase']();}['renderBg'](_0x50bddf){const _0x14031a=new Set();_0x14031a['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x50bddf))+'\x22)\x201x'),this['$$']('hi-res-support')&&_0x14031a['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x50bddf,HI_RES_K))+'\x22)\x20'+HI_RES_K+'x'),this['$$']('ultra-res-support')&&_0x14031a['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x50bddf,ULTRA_RES_K))+'\x22)\x20'+ULTRA_RES_K+'x');const _0xabde69='image-set('+[..._0x14031a]['join'](',\x20')+')';_0x50bddf['style']['setProperty']('background-image',_0xabde69),_0x50bddf['style']['setProperty']('background-image','-webkit-'+_0xabde69);}['getSrcset'](){const _0x1e39f9=new Set();return this['breakpoints']?this['breakpoints']['forEach'](_0x16f937=>{_0x1e39f9['add'](this['_getUrlBase'](_0x16f937+'x')+('\x20'+this['_validateSize'](_0x16f937+'w'))),this['$$']('hi-res-support')&&_0x1e39f9['add'](this['_getUrlBase'](_0x16f937*HI_RES_K+'x')+('\x20'+this['_validateSize'](_0x16f937*HI_RES_K+'w'))),this['$$']('ultra-res-support')&&_0x1e39f9['add'](this['_getUrlBase'](_0x16f937*ULTRA_RES_K+'x')+('\x20'+this['_validateSize'](_0x16f937*ULTRA_RES_K+'w')));}):(_0x1e39f9['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img']))+'\x201x'),this['$$']('hi-res-support')&&_0x1e39f9['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img'],0x2))+'\x202x'),this['$$']('ultra-res-support')&&_0x1e39f9['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img'],0x3))+'\x203x')),[..._0x1e39f9]['join']();}['getSrc'](){return this['_getUrlBase']();}get['srcUrlPreview'](){return this['_getUrlBase']('100x','100');}['renderBackground'](){[...document['querySelectorAll'](this['bgSelector'])]['forEach'](_0x3b04f6=>{this['$$']('intersection')?this['initIntersection'](_0x3b04f6,()=>{this['renderBg'](_0x3b04f6);}):this['renderBg'](_0x3b04f6);});}['_appendURL']({elNode:_0x4a9062,src:_0x421a4c,srcset:_0x292786}){_0x421a4c&&(_0x4a9062['src']=_0x421a4c),_0x292786&&(_0x4a9062['srcset']=_0x292786);}['_setupConfigForImage']({elNode:_0x4bffd4}){this['_setupEventProxy'](_0x4bffd4),this['initAttributes'](_0x4bffd4);}['loaderImage']({src:_0x1d9ec5,srcset:_0xb3b69a,elNode:_0x43d316}){return new Promise((_0x5db5eb,_0x419c59)=>{this['_setupConfigForImage']({'elNode':_0x43d316}),_0x43d316['setAttribute'](UNRESOLVED_ATTR,''),_0x43d316['addEventListener']('load',()=>{_0x43d316['removeAttribute'](UNRESOLVED_ATTR),_0x5db5eb(_0x43d316);}),_0x43d316['addEventListener']('error',()=>{_0x419c59(!0x1);}),this['_appendURL']({'elNode':_0x43d316,'src':_0x1d9ec5,'srcset':_0xb3b69a});});}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(_0x1dd56d){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(_0x47e666){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',_0x364c51=>{this['$$']('is-background-for')||this['$$']('is-preview-blur')||(this['img']['loading']=_0x364c51?'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']=_0x452146=>{this['_mouseDownTarget']=_0x452146['target'];};['_handleDialogMouseUp']=_0x32bec6=>{const _0x231506=_0x32bec6['target'];_0x231506===this['ref']['dialog']&&_0x231506===this['_mouseDownTarget']&&this['_closeDialog']();};['show'](){const _0x2b6d65=this['ref']['dialog'];'function'==typeof _0x2b6d65['showModal']?(this['setAttribute']('aria-modal','true'),_0x2b6d65['showModal']()):_0x2b6d65['setAttribute']('open',''),this['cfg']['modalScrollLock']&&(document['body']['style']['overflow']='hidden');}['hide'](){const _0x21363c=this['ref']['dialog'];'function'==typeof _0x21363c['close']?(this['setAttribute']('aria-modal','false'),_0x21363c['close']()):_0x21363c['removeAttribute']('open');}['_handleModalOpen']({id:_0x12c389}){_0x12c389===this['id']?(LAST_ACTIVE_MODAL_ID=_0x12c389,this['show'](),this['emit'](EventType['MODAL_OPEN'],{'modalId':_0x12c389},{'debounce':!0x0})):this['hide']();}['_handleModalClose']({id:_0x356875}){_0x356875===this['id']&&(this['hide'](),this['emit'](EventType['MODAL_CLOSE'],{'modalId':_0x356875,'hasActiveModals':this['modalManager']?.['hasActiveModals']},{'debounce':!0x0}));}['_handleModalCloseAll'](_0x9184de){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 _0x14c311=this['ref']['dialog'];_0x14c311['addEventListener']('close',this['_handleDialogClose']),_0x14c311['addEventListener']('mousedown',this['_handleDialogMouseDown']),_0x14c311['addEventListener']('mouseup',this['_handleDialogMouseUp']),this['subConfigValue']('modalBackdropStrokes',_0x582988=>{_0x582988?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 _0xd39956=this['ref']['dialog'];_0xd39956['removeEventListener']('close',this['_handleDialogClose']),_0xd39956['removeEventListener']('mousedown',this['_handleDialogMouseDown']),_0xd39956['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 _0x55becf=this['ref']['fakeProgressLine'];this['_visible']?this['_value']>0x0&&_0x55becf['classList']['add']('uc-fake-progress--hidden'):_0x55becf['classList']['add']('uc-fake-progress--hidden');}),this['defineAccessor']('value',_0x445f89=>{null!=_0x445f89&&(this['_value']=_0x445f89,this['_visible']&&this['style']['setProperty']('--l-progress-value',this['_value']['toString']()));}),this['defineAccessor']('visible',_0x3f35d3=>{this['_visible']=_0x3f35d3,this['classList']['toggle']('uc-progress-bar--hidden',!_0x3f35d3);}));}};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 _0x578ec6=this['uploadCollection']['items']()['some'](_0x10707e=>{const _0x168c6c=this['uploadCollection']['read'](_0x10707e);return _0x168c6c?.['getValue']('isUploading')??!0x1;});this['$']['visible']=_0x578ec6;}),this['sub']('visible',_0x3002b7=>{_0x3002b7?this['setAttribute']('active',''):this['removeAttribute']('active');}),this['sub']('*commonProgress',_0x232871=>{this['$']['value']=_0x232871;});}['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':_0x59a300=>{_0x59a300['preventDefault'](),_0x59a300['stopPropagation']();const _0x3de115=this['ref']['select'];this['value']=_0x3de115['value'],this['$']['currentText']=this['$']['options']['find'](_0x2e4675=>_0x2e4675['value']===this['value'])?.['text']||'',this['dispatchEvent'](new Event('change'));}};}['initCallback'](){super['initCallback'](),this['sub']('options',_0x271637=>{this['$']['currentText']=_0x271637?.[0x0]?.['text']||'';let _0x4d178a='';_0x271637?.['forEach'](_0x29ddf4=>{_0x4d178a+='<option\x20value=\x22'+_0x29ddf4['value']+'\x22>'+_0x29ddf4['text']+'</option>';}),this['$']['selectHtml']=_0x4d178a;});}};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',_0x649f56=>{void 0x0!==_0x649f56&&(this['$']['withDropZone']=asBoolean2(_0x649f56));}),this['subConfigValue']('multiple',_0x423e65=>{this['$']['button-text']=_0x423e65?'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 _0x3d2971=browserFeatures['htmlMediaCapture'];return _0x3d2971&&this['api']['openSystemDialog']({'captureCamera':!0x0}),!_0x3d2971;}}),this['registerType']({'type':'draw','activity':ActivityBlock['activities']['DRAW'],'icon':'edit-draw'});for(const _0x523584 of Object['values'](UploadSourceMobile))this['registerType']({'type':_0x523584,'activity':ActivityBlock['activities']['CAMERA'],'activate':()=>{const _0x2062b0=browserFeatures['htmlMediaCapture'];return _0x2062b0&&this['api']['openSystemDialog']({'captureCamera':!0x0,'modeCamera':'mobile-photo-camera'===_0x523584?CameraSourceTypes['PHOTO']:CameraSourceTypes['VIDEO']}),!_0x2062b0;}});for(const _0xe3ad89 of Object['values'](ExternalUploadSource))this['registerType']({'type':_0xe3ad89,'activity':ActivityBlock['activities']['EXTERNAL'],'activityParams':{'externalSourceType':_0xe3ad89}});}['initCallback'](){super['initCallback'](),this['initTypes'](),this['defineAccessor']('type',_0x378e22=>{_0x378e22&&this['applyType'](_0x378e22);});}['registerType'](_0x551374){this['_registeredTypes'][_0x551374['type']]=_0x551374;}['getType'](_0x5efd17){return this['_registeredTypes'][_0x5efd17];}['activate'](){if(!this['type'])return;const _0x5a10f0=this['_registeredTypes'][this['type']];if(!_0x5a10f0)return;const {activity:_0x4771e0,activate:_0x240a5f,activityParams:_0x5d3385={}}=_0x5a10f0;(_0x240a5f?_0x240a5f():!!_0x4771e0)&&_0x4771e0&&(this['modalManager']?.['open'](_0x4771e0),this['set$']({'*currentActivityParams':_0x5d3385,'*currentActivity':_0x4771e0}));}['applyType'](_0x16fd17){const _0x1438ec=this['_registeredTypes'][_0x16fd17];if(!_0x1438ec)return void console['warn']('Unsupported\x20source\x20type:\x20'+_0x16fd17);const {textKey:_0x46d5df=_0x16fd17,icon:_0x5d0659=_0x16fd17}=_0x1438ec;this['$']['src-type']=''+L10N_PREFIX+_0x46d5df,this['$']['iconName']=_0x5d0659,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',_0x544060=>{const _0xd7c336=stringToArray(_0x544060);let _0x576539='';_0xd7c336['forEach'](_0x21e8c9=>{'instagram'!==_0x21e8c9?'camera'===_0x21e8c9&&browserFeatures['htmlMediaCapture']?this['subConfigValue']('cameraModes',_0x444384=>{const _0x55f883=deserializeCsv(_0x444384);_0x55f883['forEach'](_0x2db9be=>{_0x576539+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22mobile-'+_0x2db9be+'-camera\x22></uc-source-btn>';}),0x0===_0x55f883['length']&&(_0x576539+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22mobile-photo-camera\x22></uc-source-btn>');}):_0x576539+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22'+_0x21e8c9+'\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']=_0x576539:this['outerHTML']=_0x576539;});}},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(_0x2e78ac,_0x3a8f0d=0x28){if('image/svg+xml'===_0x2e78ac['type'])return URL['createObjectURL'](_0x2e78ac);const _0x51dcac=document['createElement']('canvas'),_0x53330c=_0x51dcac['getContext']('2d');if(!_0x53330c)return Promise['reject'](new Error('Canvas\x20context\x20not\x20supported'));const _0x14eeb5=new Image(),_0x56a25e=new Promise((_0x2b424f,_0x5b1888)=>{_0x14eeb5['onload']=()=>{const _0x2d1a94=_0x14eeb5['height']/_0x14eeb5['width'];_0x2d1a94>0x1?(_0x51dcac['width']=_0x3a8f0d,_0x51dcac['height']=_0x3a8f0d*_0x2d1a94):(_0x51dcac['height']=_0x3a8f0d,_0x51dcac['width']=_0x3a8f0d/_0x2d1a94),_0x53330c['fillStyle']='rgb(240,\x20240,\x20240)',_0x53330c['fillRect'](0x0,0x0,_0x51dcac['width'],_0x51dcac['height']),_0x53330c['drawImage'](_0x14eeb5,0x0,0x0,_0x51dcac['width'],_0x51dcac['height']),_0x51dcac['toBlob'](_0x3ce281=>{if(!_0x3ce281)return void _0x5b1888();const _0x532f9d=URL['createObjectURL'](_0x3ce281);_0x2b424f(_0x532f9d);});},_0x14eeb5['onerror']=_0x299779=>{_0x5b1888(_0x299779);};});return _0x14eeb5['src']=URL['createObjectURL'](_0x2e78ac),_0x56a25e;}function createSvgBlobUrl(_0x4650c8){const _0x44fb59=new Blob([_0x4650c8],{'type':'image/svg+xml'});return URL['createObjectURL'](_0x44fb59);}function fileCssBg(_0x51d394='hsl(209,\x2021%,\x2065%)',_0x20e78f=0x20,_0xb9ed15=0x20){return createSvgBlobUrl('\x0a\x20\x20<svg\x20width=\x22'+_0x20e78f+'\x22\x20height=\x22'+_0xb9ed15+'\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'+_0x51d394+'\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'](_0x5aa1bb=!0x1){_0x5aa1bb&&(this['_thumbRect']=this['getBoundingClientRect']());let _0x11ce3c=Math['max'](parseInt(String(this?.['_thumbRect']?.['height']||0x0),0xa),parseInt(String(this?.['_thumbRect']?.['width']||0x0),0xa),this['cfg']['thumbSize']);return window['devicePixelRatio']>0x1&&(_0x11ce3c*=window['devicePixelRatio']),Math['min'](_0x11ce3c,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'](_0x5ad187){const [_0x247e47]=_0x5ad187;_0x247e47&&(this['_isIntersecting']=_0x247e47['isIntersecting'],_0x247e47['isIntersecting']&&(this['_thumbRect']=_0x247e47['boundingClientRect'],this['_debouncedGenerateThumb'](),this['_observer']?.['disconnect']()),0x0===_0x247e47['intersectionRatio']&&this['_debouncedGenerateThumb']['cancel']());}['_reset'](){super['_reset'](),this['_debouncedGenerateThumb']['cancel']();}['_handleEntryId'](_0x2b5272){this['_reset']();const _0xce4ef9=this['uploadCollection']?.['read'](_0x2b5272);this['_entry']=_0xce4ef9,_0xce4ef9&&(this['_subEntry']('fileInfo',_0x35fc55=>{_0x35fc55?.['isImage']&&this['_isIntersecting']&&this['_debouncedGenerateThumb']();}),this['_subEntry']('thumbUrl',_0x2bc963=>{this['$']['thumbUrl']=_0x2bc963?'url('+_0x2bc963+')':'';}),this['_subEntry']('cdnUrlModifiers',()=>{this['_isIntersecting']&&this['_debouncedGenerateThumb']();}),this['_isIntersecting']&&this['_debouncedGenerateThumb']());}['initCallback'](){super['initCallback'](),this['defineAccessor']('badgeIcon',_0x247b9e=>{this['$']['badgeIcon']=_0x247b9e;}),this['defineAccessor']('uid',_0x3d06a2=>{this['set$']({'uid':_0x3d06a2});}),this['sub']('uid',_0x32df49=>{this['_handleEntryId'](_0x32df49);}),this['subConfigValue']('filesViewMode',_0x20838c=>{'grid'!==_0x20838c||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 _0xafe401=this['api']['getOutputCollectionState'](),_0x184ec8={'total':_0xafe401['totalCount'],'succeed':_0xafe401['successCount'],'uploading':_0xafe401['uploadingCount'],'failed':_0xafe401['failedCount'],'validatingBeforeUploading':_0xafe401['idleEntries']['filter'](_0x5d05fa=>_0x5d05fa['isValidationPending'])['length']},_0x47853a=!_0xafe401['errors']['some'](_0x257776=>'TOO_MANY_FILES'===_0x257776['type']||'TOO_FEW_FILES'===_0x257776['type']),_0x1e69d4=_0xafe401['errors']['some'](_0x31c05f=>'TOO_MANY_FILES'===_0x31c05f['type']),_0x35782f=_0xafe401['totalCount']===(this['cfg']['multiple']?this['cfg']['multipleMax']:0x1),_0x1618d8=_0xafe401['allEntries']['some'](_0x8033d5=>_0x8033d5['isValidationPending']),_0x370f64=0x0===_0x184ec8['failed']&&0x0===_0xafe401['errors']['length']&&!_0x1618d8;let _0x6925b9=!0x1,_0x411dc1=!0x1,_0x327c01=!0x1;if(_0x184ec8['total']-_0x184ec8['succeed']-_0x184ec8['uploading']-_0x184ec8['failed']>0x0&&_0x47853a&&_0x370f64)_0x6925b9=!0x0;else{_0x411dc1=!0x0;const _0x300326=!this['cfg']['groupOutput']||!!_0xafe401['group'];_0x327c01=_0x184ec8['total']===_0x184ec8['succeed']&&_0x47853a&&_0x370f64&&_0x300326;}this['set$']({'doneBtnVisible':_0x411dc1,'doneBtnEnabled':_0x327c01,'uploadBtnVisible':_0x6925b9,'addMoreBtnEnabled':0x0===_0x184ec8['total']||!_0x1e69d4&&!_0x35782f,'addMoreBtnVisible':!_0x35782f||this['cfg']['multiple'],'hasFiles':_0x184ec8['total']>0x0}),this['bindL10n']('headerText',()=>this['_getHeaderText'](_0x184ec8));}['_getHeaderText'](_0x232685){const _0x2d6368=_0x1a7f31=>{let _0x4f15d7=_0x232685[_0x1a7f31];return'uploading'===_0x1a7f31&&(_0x4f15d7+=_0x232685['validatingBeforeUploading']),this['l10n']('header-'+_0x1a7f31,{'count':_0x4f15d7});};return _0x232685['uploading']>0x0||_0x232685['validatingBeforeUploading']>0x0?_0x2d6368('uploading'):_0x232685['failed']>0x0?_0x2d6368('failed'):_0x232685['succeed']>0x0?_0x2d6368('succeed'):_0x2d6368('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',_0x3c1b62=>{_0x3c1b62&&this['_throttledHandleCollectionUpdate']();}),this['subConfigValue']('filesViewMode',_0x11a0a8=>{this['setAttribute']('mode',_0x11a0a8);}),this['sub']('*currentActivity',_0x195c91=>{this['couldOpenActivity']||_0x195c91!==this['activityType']||(this['$']['*currentActivity']=this['initActivity']);}),this['uploadCollection']['observeProperties'](this['_throttledHandleCollectionUpdate']),this['uploadCollection']['observeCollection'](this['_throttledHandleCollectionUpdate']),this['sub']('*collectionErrors',_0x1058ac=>{const _0x49b225=_0x1058ac['filter'](_0x366f7f=>'SOME_FILES_HAS_ERRORS'!==_0x366f7f['type'])[0x0];_0x49b225?this['set$']({'commonErrorMessage':_0x49b225['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':_0x128490=>{_0x128490['preventDefault'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'upload-from-url','node':this['tagName']}}});const _0x1b961d=this['ref']['input']['value'];this['api']['addFileFromUrl'](_0x1b961d,{'source':UploadSource['URL']}),this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'];},'onCancel':()=>{this['historyBack']();},'onInput':_0x2e7b44=>{const _0x32c890=_0x2e7b44['target']?.['value']??'';this['set$']({'importDisabled':!_0x32c890});}};}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType']??'',{'onActivate':()=>{const _0x319487=this['ref']['input'];_0x319487['value']='',_0x319487['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 _0x53c9fc=this['$']['*historyBack'];return void _0x53c9fc?.();}this['couldShowList']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}};}get['couldHistoryBack'](){const _0x7236b4=this['$']['*history'];return!(!_0x7236b4||_0x7236b4['length']<=0x1)&&_0x7236b4[_0x7236b4['length']-0x1]!==ActivityBlock['activities']['START_FROM'];}get['couldShowList'](){const _0x4c8db4=this['$']['*uploadList'];return this['cfg']['showEmptyList']||Array['isArray'](_0x4c8db4)&&_0x4c8db4['length']>0x0;}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']});const _0x1e3c7b=this['ref']['uBlock'];_0x1e3c7b&&(this['sub']('*currentActivity',_0x27eebf=>{_0x27eebf||(this['$']['*currentActivity']=_0x1e3c7b['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['sub']('*uploadList',_0x4e3b64=>{Array['isArray'](_0x4e3b64)&&_0x4e3b64['length']>0x0&&this['$']['*currentActivity']===(_0x1e3c7b['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'](_0x286591){_0x286591['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 _0xe28c0b=this['$']['*uploadList'];(!_0xe28c0b||_0xe28c0b['length']<=0x0)&&this['set$']({'classStartFrom':ACTIVE_CLASS});}['_handleModalClose'](_0x11b867){_0x11b867['id']===this['$']['*currentActivity']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['set$']({'isHiddenStartFrom':!0x1})),_0x11b867['id']===ActivityBlock['activities']['CLOUD_IMG_EDIT']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']});const _0x1dae2d=this['ref']['uBlock'];_0x1dae2d&&(this['sub']('*currentActivity',_0x3986d2=>{_0x3986d2===ActivityBlock['activities']['UPLOAD_LIST']&&this['modalManager']?.['closeAll'](),_0x3986d2||(this['$']['*currentActivity']=_0x1dae2d['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['sub']('*uploadList',_0x5d295c=>{Array['isArray'](_0x5d295c)&&_0x5d295c['length']>0x0?(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['set$']({'classStartFrom':EMPTY_CLASS})):(this['set$']({'classUploadList':EMPTY_CLASS,'isHiddenStartFrom':!0x1}),this['$']['*currentActivity']=_0x1dae2d['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['subConfigValue']('confirmUpload',_0x51235e=>{!0x1!==_0x51235e&&(this['cfg']['confirmUpload']=!0x1);}),this['subConfigValue']('filesViewMode',_0x4dccee=>{this['setAttribute']('mode',_0x4dccee),this['subConfigValue']('multiple',_0x22b43e=>{'grid'===_0x4dccee?(_0x22b43e?this['style']['removeProperty']('--uc-grid-col'):this['style']['setProperty']('--uc-grid-col','1'),this['$']['singleUpload']=!_0x22b43e):(this['style']['removeProperty']('--uc-grid-col'),this['$']['singleUpload']=!0x1);});}),this['handleModalOpen']=_0x57ccf3=>{this['_handleModalOpen'](_0x57ccf3);},this['handleModalClose']=_0x3a87bf=>{this['_handleModalClose'](_0x3a87bf);},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 _0x406281={...this['init$'],'isHidden':!0x1,'*solution':this['tagName']};this['init$']=_0x406281;}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']}),this['defineAccessor']('headless',_0x10e159=>{this['set$']({'isHidden':asBoolean2(_0x10e159)});});}};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(_0x16e534){super(_0x16e534),_0x16e534['config']['define']('uploadcare.uploader.sourceList',['local','url']),defineComponents(UC),this['_defineLocale']();}['_defineLocale'](){const _0x5f3bb1=this['editor']['config']['get']('uploadcare.locale'),_0x3de7f4=this['editor']['locale']['contentLanguage'];_0x5f3bb1&&defineLocale(_0x3de7f4,_0x5f3bb1);}}class UploadcareImageEditFormLoadingView extends View{constructor(_0x16a956){super(_0x16a956);const t=_0x16a956['t'],_0xab0b8f=this['bindTemplate'],_0x4464ea=new SpinnerView();_0x4464ea['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':[_0x4464ea,{'text':_0xab0b8f['to']('imageUploadProgress',_0x10b4e7=>t('Loading\x20image...')+'\x20('+(_0x10b4e7||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(_0x2c430a){super(_0x2c430a);const t=_0x2c430a['t'];this['set']('errorType',null);const _0x50212e=new ButtonView(_0x2c430a);_0x50212e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x50212e['withText']=!0x0,_0x50212e['class']='ck-button-action',_0x50212e['on']('execute',()=>{this['fire']('retry');}),_0x50212e['bind']('isVisible')['to'](this,'errorType',_0x35655a=>'NotFound'!==_0x35655a);const _0x558188=new IconView();_0x558188['content']=IconError,_0x558188['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4c67fa=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':[_0x558188,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4c67fa['to']('errorType',_0x3ebf12=>t('NotFound'!==_0x3ebf12?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x50212e]},{'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(_0x3f7916,_0x35dde4){super(_0x3f7916);const _0x125eef=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x35dde4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x125eef['to']('imageSrc')}});}}class UploadcareImageEditFormView extends DialogFocusManagerView{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4fc952,_0x136c56,_0xd81f69){super(_0x4fc952),this['_items']=this['createCollection'](),this['_loadingView']=new UploadcareImageEditFormLoadingView(_0x4fc952),this['_errorView']=new UploadcareImageEditFormErrorView(_0x4fc952),this['_editingView']=new UploadcareImageEditFormEditingView(_0x4fc952,_0xd81f69),this['_focusableView']=new View(_0x4fc952),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x136c56),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'],_0x585016=>{this['_addUploadcareImageEditorListeners'](_0x585016);});}),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'](_0x1fe5d2,_0x3a2e34){const _0x467e98='uc-cloud-image-editor',_0x478a25=_0x1fe5d2['querySelector'](_0x467e98);if(_0x478a25)return _0x3a2e34(_0x478a25);const _0x16b04e=new MutationObserver(_0x52d427=>{const _0x3305ab=_0x52d427['filter'](_0x4ef6d6=>_0x4ef6d6['target']===_0x1fe5d2&&_0x4ef6d6['addedNodes']['length']>0x0&&_0x4ef6d6['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x467e98);_0x3305ab['length']&&(_0x16b04e['disconnect'](),_0x3a2e34(_0x3305ab[0x0]['addedNodes'][0x0]));});_0x16b04e['observe'](_0x1fe5d2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xa21084){_0xa21084['addEventListener']('apply',_0x29f601=>{this['fire']('apply',{'imageSrc':_0x29f601['detail']['cdnUrl']});}),_0xa21084['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(_0x2e61f3,_0x5cbacd,_0x55c244){super(),this['_editor']=_0x2e61f3,this['_dialog']=_0x5cbacd,this['_imageElement']=_0x55c244,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 _0x2be721=this['_imageElement'],_0x458e41=_0x2be721['getAttribute']('uploadcareImageId'),_0x14e6d9=_0x2be721['getAttribute']('src');if(_0x458e41)await this['_loadImageInfo'](_0x458e41,_0x14e6d9);else{if(this['_imageCache']['has'](_0x14e6d9)){const _0x8a609=this['_imageCache']['get'](_0x14e6d9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8a609['url'],this['imageDimension']=_0x8a609['dimension'],this['imageId']=_0x8a609['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x401062}=this['_editor'],t=_0x401062['t'],_0x24b078=new UploadcareImageEditFormView(_0x401062,this['imageStatus'],this['_attributes']);_0x24b078['bind']('status')['to'](this,'imageStatus'),_0x24b078['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x24b078['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x24b078['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x24b078,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':IconUploadcareImageEdit,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x24b078,'position':DialogViewPosition['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x24b078['focus']();},'onHide':()=>{_0x24b078['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28c59a=>!isAncestor(_0x28c59a,_0x24b078['element'])}});}['_loadImageInfo'](_0x2ca389,_0x2dd392){return UploadUtils['getInfo'](_0x2ca389,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2ac767=>{const {width:_0x402d30,height:_0x429965}=_0x2ac767['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2dd392,this['imageDimension']={'width':_0x402d30,'height':_0x429965},this['imageId']=_0x2ca389;})['catch'](_0x5c3bf8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5c3bf8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x249207,_0x282c16){return this['_getImageAsFile'](_0x249207)['then'](_0x316eb0=>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':_0x282c16['signal'],'file':_0x316eb0,'onProgress':_0x28b35d=>{_0x28b35d&&_0x28b35d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x28b35d['value']));}}))['then'](_0x17f44e=>{const {width:_0x1f71cb,height:_0x3e5631}=_0x17f44e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17f44e['cdnUrl'],this['imageDimension']={'width':_0x1f71cb,'height':_0x3e5631},this['imageId']=_0x17f44e['uuid'],this['imageUploadProgress']=null;const _0x239459=_0x249207['getAttribute']('src');this['_imageCache']['set'](_0x239459,{'id':_0x17f44e['uuid'],'url':_0x17f44e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x593e66=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x593e66['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5133ee,_0x531d4d){_0x5133ee['on']('apply',(_0x51fc67,_0x29a27f)=>{this['_replaceImage'](_0x531d4d,_0x29a27f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5133ee['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5133ee['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x262da7,_0x5c57b6,_0x2ec729){const _0x5ce745=this['_editor'],{width:_0x14b6a0,height:_0x4a4175}=getImageDimension(_0x5c57b6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x444074,imageSources:_0x459095}=getImageUrls(_0x5c57b6,_0x14b6a0);_0x5ce745['model']['change'](_0x423832=>{if('$graveyard'===_0x262da7['root']['rootName']){_0x5ce745['execute']('insertImage',{'imageType':_0x262da7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x262da7['getAttributes']()),'uploadcareImageId':_0x2ec729,'src':_0x444074,'sources':_0x459095,'width':_0x14b6a0,'height':_0x4a4175}});const _0x43a173=_0x262da7['getChildren']();_0x262da7=_0x5ce745['model']['document']['selection']['getSelectedElement']();for(const _0x3ae6f3 of _0x43a173)_0x423832['append'](_0x423832['cloneElement'](_0x3ae6f3),_0x262da7);}else _0x423832['setSelection'](_0x262da7,'on'),_0x5ce745['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x262da7['getAttributes']()),'uploadcareImageId':_0x2ec729,'src':_0x444074,'sources':_0x459095,'width':_0x14b6a0,'height':_0x4a4175},_0x262da7);_0x423832['setSelection'](_0x262da7,'on');});}async['_getImageAsFile'](_0x42d48c){const _0x17bc06=_0x176c57['window'],_0x4b5670=_0x176c57['document']['location']['href'],_0x1ce179=new _0x17bc06['URL'](_0x42d48c['getAttribute']('src'),_0x4b5670);if('data:'===_0x1ce179['protocol']){const _0x1eaa55=_0x1ce179['href']['split'](','),_0x168043=_0x1eaa55[0x0]['match'](/:(.*?);/)[0x1],_0x1899fe=_0x168043['split']('/')[0x1],_0x36d8d1=_0x17bc06['atob'](_0x1eaa55[_0x1eaa55['length']-0x1]);let _0x554386=_0x36d8d1['length'];const _0x5c1fd9=new _0x17bc06['Uint8Array'](_0x554386);for(;_0x554386--;)_0x5c1fd9[_0x554386]=_0x36d8d1['charCodeAt'](_0x554386);return new _0x17bc06['File']([_0x5c1fd9],'image.'+_0x1899fe,{'type':_0x168043});}const _0x47ae39=_0x1ce179['href']['split']('/'),_0x34a1b5=_0x47ae39[_0x47ae39['length']-0x1],_0x34d3ae=_0x34a1b5['split']('.')[0x1];return _0x17bc06['fetch'](_0x1ce179['href'])['then'](_0x10d472=>_0x10d472['clone']()['blob']())['then'](_0x1017cf=>new _0x17bc06['File']([_0x1017cf],_0x34a1b5,{'type':'image/'+_0x34d3ae}));}}class UploadcareImageEditCommand extends Command{['imageEditController'];static get['requires'](){return[Dialog];}['_isEditable'];constructor(_0x440dcc){super(_0x440dcc),this['imageEditController']=void 0x0,this['_isEditable']=createEditabilityChecker(_0x440dcc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3f23bf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3f23bf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3047bd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3047bd&&(_0x3047bd['is']('element','imageBlock')||_0x3047bd['is']('element','imageInline'))&&(this['imageEditController']=new UploadcareImageEditController(this['editor'],this['editor']['plugins']['get'](Dialog),_0x3047bd),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class UploadcareImageReplaceCommand extends Command{['refresh'](){const _0x29044c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x29044c&&(_0x29044c['is']('element','imageBlock')||_0x29044c['is']('element','imageInline')));}['execute'](_0x3753df){const _0x501913=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x40c22c=>{_0x40c22c['setAttributes'](_0x3753df,_0x501913),_0x40c22c['removeAttribute']('srcset',_0x501913),_0x40c22c['removeAttribute']('sizes',_0x501913);});}}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:_0x59ccad}=this;_0x59ccad['commands']['add']('uploadcareImageEdit',new UploadcareImageEditCommand(_0x59ccad)),_0x59ccad['commands']['add']('uploadcareImageReplace',new UploadcareImageReplaceCommand(_0x59ccad));}}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 _0x3ca8d6=this['editor'];_0x3ca8d6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x50c79e=>{const _0x8a5f53=_0x3ca8d6['commands']['get']('uploadcareImageEdit'),_0x1bd001=new ButtonView(_0x50c79e),t=_0x50c79e['t'];return _0x1bd001['set']({'icon':IconUploadcareImageEdit,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1bd001['bind']('isEnabled')['to'](_0x8a5f53),_0x1bd001['bind']('isOn')['to'](_0x8a5f53,'isActive'),this['listenTo'](_0x1bd001,'execute',()=>{_0x3ca8d6['execute']('uploadcareImageEdit'),_0x3ca8d6['editing']['view']['focus']();}),_0x1bd001;}),this['_initConfig']();}['_initConfig'](){const _0x4c42e1=createElement(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4c42e1),this['listenTo'](this['editor'],'destroy',()=>{_0x4c42e1['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,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};