@ckeditor/ckeditor5-document-outline 48.0.0-alpha.10 → 48.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x21e46b,Command as _0x449110}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x59d953,throttle as _0x1d1c4f}from'es-toolkit/compat';import{ModelText as _0xd51303,ModelTreeWalker as _0x2f8507}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x3f1841,diffToChanges as _0x25c35d,scrollAncestorsToShowTarget as _0x46c36f,CKEditorError as _0x32f267,global as _0x2484f3,Rect as _0x3d7295,uid as _0xaf0c1e,priorities as _0x5d1d05}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x3c25c8,ButtonView as _0x410a2c,MenuBarMenuListItemButtonView as _0x31d22a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x262b05,toWidget as _0x4cb115}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x1c61a9}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x5953ef){let _0xf29660='';for(const _0x3db769 of _0x5953ef['getChildren']())_0x3db769 instanceof _0xd51303&&(_0xf29660+=_0x3db769['data']);return _0xf29660;}class I extends _0x21e46b{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x23b955=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x3ee94=[];_0x23b955['model']['document']['on']('change',_0x59d953(()=>{const _0x414ac1=_0x3ee94;_0x3ee94=this['_getOutlineDefinitions']();const _0x4ba3c3=_0x3f1841(_0x414ac1,_0x3ee94,(_0x14508c,_0x546cb7)=>_0x14508c['level']===_0x546cb7['level']&&_0x14508c['text']===_0x546cb7['text']&&_0x14508c['modelElement']===_0x546cb7['modelElement']),_0x182a75=_0x25c35d(_0x4ba3c3,_0x3ee94),_0x38a87e=this['_getActiveHeading'](),_0xd14e1a=_0x3ee94['findIndex'](_0x491378=>_0x491378['modelElement']===_0x38a87e);_0x182a75['length']&&this['fire']('change',{'outlineDefinitions':_0x3ee94,'activeItemIndex':_0xd14e1a,'outlineChanges':_0x182a75}),this['fire']('activeItemIndex',{'index':_0xd14e1a});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x36b543=this['editor'],_0x46fd51=[],_0x1edf17=this['_headingNames'];for(const _0x5ae500 of _0x36b543['model']['document']['getRootNames']())_0x32270f(_0x36b543['model']['document']['getRoot'](_0x5ae500));function _0x32270f(_0x12557e){for(const _0x567d45 of _0x12557e['getChildren']())_0x567d45['is']('element')&&(_0x1edf17['includes'](_0x567d45['name'])&&_0x46fd51['push']({'level':_0x1edf17['indexOf'](_0x567d45['name'])+0x1,'text':v(_0x567d45),'modelElement':_0x567d45}),_0x32270f(_0x567d45));}return _0x46fd51;}['_getActiveHeading'](){const _0xd7952a=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x5a9145=new _0x2f8507({'direction':'backward','startPosition':_0xd7952a});for(const _0x5c1403 of _0x5a9145)if(_0x5c1403['item']['is']('element')&&this['_headingNames']['includes'](_0x5c1403['item']['name']))return _0x5c1403['item'];}['_getHeadingNames'](){const _0x305c59=this['editor']['config']['get']('documentOutline.headings');return _0x305c59||function(_0x227685){const _0x491785=_0x227685['config']['get']('heading.options');return _0x491785?_0x491785['reduce']((_0x28c326,_0x3bbdb6)=>('paragraph'!==_0x3bbdb6['model']&&_0x28c326['push'](_0x3bbdb6['model']),_0x28c326),[]):_0x227685['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x3a8bfd=this['editor'],_0x585aed=['h1','h2','h3','h4','h5','h6'],_0x4223f3=[];for(const _0x4c4051 of _0x585aed){const _0x2f8904=_0x3a8bfd['editing']['view']['domConverter']['domToView'](document['createElement'](_0x4c4051)),_0x3879f3=_0x3a8bfd['data']['toModel'](_0x2f8904)['getChild'](0x0);_0x3879f3?.['is']('element')&&_0x4223f3['push'](_0x3879f3['name']);}this['_headingNames']=_0x4223f3;}}function C(_0x823a10,_0x282395){const t=_0x823a10['t'];switch(_0x282395){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 _0x282395;}}class _ extends _0x3c25c8{constructor(_0x4f5129,_0x53eb13=!0x1){super(_0x4f5129);const _0x41eac6=this['bindTemplate'],_0x4e1686=_0x53eb13?'['+C(_0x4f5129,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x3f89c7=>!_0x3f89c7),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x41eac6['to']('level',_0x42778e=>'ck-document-outline__item_level-'+_0x42778e),_0x41eac6['if']('isActive','ck-document-outline__item_active'),_0x41eac6['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x41eac6['to']('text')},'children':[{'text':_0x41eac6['to']('text',_0x2a844c=>_0x2a844c||_0x4e1686)}],'on':{'click':_0x41eac6['to']('click')}});}}class L extends _0x3c25c8{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0xd9b065,_0x24b455=!0x1,_0x2473c7){super(_0xd9b065),this['showEmptyHeadingText']=_0x24b455,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x2473c7,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x4ecd6e,_0x3a252e,_0x1c85c7,_0x3db144)=>{this['_setActiveItem'](_0x3db144,_0x1c85c7);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0xd9b065['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0xd9b065,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x2c7df7){_0x2c7df7['forEach'](_0x5791bd=>{'insert'==_0x5791bd['type']?this['_insertItem'](_0x5791bd['index'],..._0x5791bd['values']):'delete'==_0x5791bd['type']&&this['_deleteItem'](_0x5791bd['index'],_0x5791bd['howMany']);});}['_setActiveItem'](_0xfb6bf4,_0x1ff7fb){if(-0x1!==_0xfb6bf4){const _0x45bd63=this['items']['get'](_0xfb6bf4);_0x45bd63&&(_0x45bd63['isActive']=!0x1);}-0x1!==_0x1ff7fb&&(this['items']['get'](_0x1ff7fb)['isActive']=!0x0,this['_scrollToItem'](_0x1ff7fb));}['_insertItem'](_0x45ce07,..._0x531020){const _0x9f44b=_0x531020['map']((_0x442650,_0x383187)=>{const _0x1e0e9c=new _(this['locale'],this['showEmptyHeadingText']);return _0x1e0e9c['text']=_0x442650['text'],_0x1e0e9c['level']=_0x442650['level'],_0x45ce07+_0x383187===this['activeItemIndex']&&(_0x1e0e9c['isActive']=!0x0),_0x1e0e9c;});this['items']['addMany'](_0x9f44b,_0x45ce07);}['_deleteItem'](_0x32dbcf,_0x5213f8){do{this['items']['remove'](_0x32dbcf);}while(--_0x5213f8);}['_handleItemClick'](_0x23d8a5){const _0x44bb6a=this['items']['getIndex'](_0x23d8a5['source']);this['fire']('itemSelected',_0x44bb6a);}['_scrollToItem'](_0x54a044){_0x46c36f(this['items']['get'](_0x54a044)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class x extends _0x21e46b{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x530984){super(_0x530984),this['view']=new L(_0x530984['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x1d1c4f(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x3d7b80=this['editor'],_0x2729a8=_0x3d7b80['plugins']['get']('DocumentOutlineUtils');let _0xd673ca=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x3d7b80['config']['get']('documentOutline.container'))throw new _0x32f267('document-outline-container-not-provided',{'editor':_0x3d7b80});_0x3d7b80['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x2729a8['on']('change',this['_handleOutlineChange']['bind'](this)),_0x2729a8['on']('activeItemIndex',(_0x1ceefb,{index:_0x225523})=>this['_setActiveViewItem'](_0x225523)),this['view']['on']('itemSelected',(_0x4f3dfb,_0x4b7a4b)=>{_0xd673ca=!0x0,this['_handleItemSelected'](_0x4b7a4b);}),this['view']['listenTo'](_0x2484f3['document'],'scroll',()=>{_0xd673ca?_0xd673ca=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x2484f3['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x4376f3){const _0x23e78f=_0x59d138([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]),_0x471e5f=0x1cb264a3,_0x1007ed=0x1cb5e11b^_0x471e5f,_0x62f1c9=window[_0x59d138([0x44,0x61,0x74,0x65])][_0x59d138([0x6e,0x6f,0x77])](),_0x18320a=_0x4376f3[_0x59d138([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25d71d=new window[(_0x59d138([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b2e48=>{_0x18320a[_0x59d138([0x6f,0x6e,0x63,0x65])](_0x59d138([0x72,0x65,0x61,0x64,0x79]),_0x5b2e48);}),_0x314956={[_0x59d138([0x6b,0x74,0x79])]:_0x59d138([0x45,0x43]),[_0x59d138([0x75,0x73,0x65])]:_0x59d138([0x73,0x69,0x67]),[_0x59d138([0x63,0x72,0x76])]:_0x59d138([0x50,0x2d,0x32,0x35,0x36]),[_0x59d138([0x78])]:_0x59d138([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]),[_0x59d138([0x79])]:_0x59d138([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]),[_0x59d138([0x61,0x6c,0x67])]:_0x59d138([0x45,0x53,0x32,0x35,0x36])},_0x1c8822=_0x18320a[_0x59d138([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59d138([0x67,0x65,0x74])](_0x59d138([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b35b4(){let _0x2f4477,_0x451b5e=null,_0xde58b5=null;try{if(_0x1c8822==_0x59d138([0x47,0x50,0x4c]))return _0x59d138([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f4477=_0x17e6aa(),!_0x2f4477)return _0x59d138([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f4477[_0x59d138([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xde58b5=_0x1a05f2(_0x2f4477[_0x59d138([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f4477[_0x59d138([0x6a,0x74,0x69])])),await _0x3d3277()?_0x28a04a()?_0x1406a3()?_0x59d138([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b9738()?(_0x2f4477[_0x59d138([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59d138([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x451b5e=_0x3191d3(_0x59d138([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x385ddd()):_0x59d138([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59d138([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59d138([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59d138([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1406a3(){const _0x4dcf21=[_0x59d138([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59d138([0x74,0x72,0x69,0x61,0x6c])][_0x59d138([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f4477[_0x59d138([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x62f1c9/0x3e8:0xe10*_0x1007ed;return _0x2f4477[_0x59d138([0x65,0x78,0x70])]<_0x4dcf21;}function _0x28a04a(){const _0x449b59=_0x2f4477[_0x59d138([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x449b59&&(!!_0x449b59[_0x59d138([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59d138([0x2a]))||(!!_0x449b59[_0x59d138([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59d138([0x44,0x4f]))||(!!_0x449b59[_0x59d138([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59d138([0x50,0x50]))||!(!_0x449b59[_0x59d138([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59d138([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x304451()))));}function _0x5b9738(){const _0x6e213=_0x2f4477[_0x59d138([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6e213||0x0==_0x6e213[_0x59d138([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27f423}=new URL(window[_0x59d138([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6e213[_0x59d138([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27f423))return!0x0;const _0x11a7e2=_0x27f423[_0x59d138([0x73,0x70,0x6c,0x69,0x74])](_0x59d138([0x2e]));return _0x6e213[_0x59d138([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x511585=>_0x511585[_0x59d138([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59d138([0x2a])))[_0x59d138([0x6d,0x61,0x70])](_0x38f108=>_0x38f108[_0x59d138([0x73,0x70,0x6c,0x69,0x74])](_0x59d138([0x2e])))[_0x59d138([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3fedf8=>_0x3fedf8[_0x59d138([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x11a7e2[_0x59d138([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59d138([0x6d,0x61,0x70])](_0x1551fc=>Array(_0x11a7e2[_0x59d138([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1551fc[_0x59d138([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59d138([0x66,0x69,0x6c,0x6c])](_0x1551fc[0x0]===_0x59d138([0x2a])?_0x59d138([0x2a]):'')[_0x59d138([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1551fc))[_0x59d138([0x73,0x6f,0x6d,0x65])](_0x10fb92=>_0x11a7e2[_0x59d138([0x65,0x76,0x65,0x72,0x79])]((_0x4b3b7b,_0x49bff0)=>_0x10fb92[_0x49bff0]===_0x4b3b7b||_0x10fb92[_0x49bff0]===_0x59d138([0x2a])));}function _0x385ddd(){return _0x451b5e&&_0xde58b5?new window[(_0x59d138([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21968f,_0x5a3042)=>{_0x451b5e[_0x59d138([0x74,0x68,0x65,0x6e])](_0x21968f,_0x5a3042),_0xde58b5[_0x59d138([0x74,0x68,0x65,0x6e])](_0x11441a=>{_0x11441a!=_0x59d138([0x56,0x61,0x6c,0x69,0x64])&&_0x21968f(_0x11441a);},_0x5a3042);}):_0x451b5e||_0xde58b5||_0x59d138([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a05f2(_0x32d3ec,_0x2114a8){return new window[(_0x59d138([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x138956=>{if(_0x13d5b2())return _0x138956(_0x59d138([0x56,0x61,0x6c,0x69,0x64]));_0x32411b(),_0x18320a[_0x59d138([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59d138([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x238673=!0x1;const _0x2c71a3=_0xaf0c1e();function _0x537ea5(_0x5a20fa){return!!_0x5a20fa&&(typeof _0x5a20fa===_0x59d138([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a20fa===_0x59d138([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a20fa[_0x59d138([0x74,0x68,0x65,0x6e])]===_0x59d138([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a20fa[_0x59d138([0x63,0x61,0x74,0x63,0x68])]===_0x59d138([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x300d50(_0x5f348b){_0x3d437c(_0x5f348b)[_0x59d138([0x74,0x68,0x65,0x6e])](_0x4bb350=>{if(!_0x4bb350||_0x4bb350[_0x59d138([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59d138([0x6f,0x6b]))return _0x59d138([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cf891(_0x19fd77(_0x2c71a3+_0x2114a8))!=_0x4bb350[_0x59d138([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59d138([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59d138([0x56,0x61,0x6c,0x69,0x64]);})[_0x59d138([0x74,0x68,0x65,0x6e])](_0x41ec87=>(_0x291a4f(),_0x41ec87),()=>{const _0x574db0=_0x3f817d();return null==_0x574db0?(_0x291a4f(),_0x59d138([0x56,0x61,0x6c,0x69,0x64])):_0x59d138(_0x62f1c9-_0x574db0>(0x38bee0a3^_0x471e5f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59d138([0x74,0x68,0x65,0x6e])](_0x138956)[_0x59d138([0x63,0x61,0x74,0x63,0x68])](()=>{_0x138956(_0x59d138([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e7ed8=0x1c848a23^_0x471e5f;function _0x291a4f(){const _0x5ba0bb=_0x59d138([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cf891(_0x19fd77(_0x32d3ec)),_0x49ab8b=_0x310f38(_0x3cf891(window[_0x59d138([0x4d,0x61,0x74,0x68])][_0x59d138([0x63,0x65,0x69,0x6c])](_0x62f1c9/_0x2e7ed8)));window[_0x59d138([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59d138([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ba0bb,_0x49ab8b);}function _0x3f817d(){const _0x48bfa5=_0x59d138([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cf891(_0x19fd77(_0x32d3ec)),_0x345128=window[_0x59d138([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59d138([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48bfa5);return _0x345128?window[_0x59d138([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x310f38(_0x345128),0x10)*_0x2e7ed8:null;}function _0x3d437c(_0x458b8a){return new window[(_0x59d138([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f2d17,_0xc0da69)=>{_0x458b8a[_0x59d138([0x74,0x68,0x65,0x6e])](_0x2f2d17,_0xc0da69),window[_0x59d138([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc0da69,0x1cb3b063^_0x471e5f);});}}_0x18320a[_0x59d138([0x6f,0x6e])](_0x59d138([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc31888,_0x4183b9)=>{if(_0x4183b9[0x0]!=_0x32d3ec)return _0x138956(_0x59d138([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4183b9[0x1]={..._0x4183b9[0x1],[_0x59d138([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2c71a3};},{[_0x59d138([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59d138([0x68,0x69,0x67,0x68])}),_0x18320a[_0x59d138([0x6f,0x6e])](_0x59d138([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3759df=>{_0x537ea5(_0x3759df[_0x59d138([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x238673=!0x0,_0x300d50(_0x3759df[_0x59d138([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59d138([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59d138([0x6c,0x6f,0x77])}),_0x25d71d[_0x59d138([0x74,0x68,0x65,0x6e])](()=>{_0x238673||_0x138956(_0x59d138([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x13d5b2(){return _0x18320a[_0x59d138([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59d138([0x76,0x69,0x65,0x77])][_0x59d138([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59d138([0x61,0x75,0x74,0x6f]);}function _0x32411b(){_0x18320a[_0x59d138([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59d138([0x76,0x69,0x65,0x77])][_0x59d138([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59d138([0x61,0x75,0x74,0x6f]);}}function _0x3191d3(_0x5e0628){const _0x3e4fee=[new window[(_0x59d138([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2eb75a=>setTimeout(_0x2eb75a,0x1cbb5a6f^_0x471e5f)),_0x25d71d[_0x59d138([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59d138([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ba9f2=>{let _0x5aafaa=0x0;_0x18320a[_0x59d138([0x6d,0x6f,0x64,0x65,0x6c])][_0x59d138([0x6f,0x6e])](_0x59d138([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1617b9,_0x209092)=>{_0x209092[0x0][_0x59d138([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5aafaa++,_0x5aafaa==(0x1cb2614b^_0x471e5f)&&(_0x1ba9f2(),_0x1617b9[_0x59d138([0x6f,0x66,0x66])]());});}))];return window[_0x59d138([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59d138([0x72,0x61,0x63,0x65])](_0x3e4fee)[_0x59d138([0x74,0x68,0x65,0x6e])](()=>_0x5e0628);}async function _0x55f17b(){await _0x25d71d,_0x18320a[_0x59d138([0x6d,0x6f,0x64,0x65,0x6c])][_0x59d138([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x134228,_0x18320a[_0x59d138([0x6d,0x6f,0x64,0x65,0x6c])][_0x59d138([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x134228,_0x18320a[_0x59d138([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59d138([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x304451(){return window[_0x59d138([0x67,0x6c,0x6f,0x62])]&&window[_0x59d138([0x67,0x6c,0x6f,0x62])][_0x59d138([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0xe16cc4(_0x409c69){const _0x46c7da=_0x33598a();_0x18320a[_0x46c7da]=_0x59d138([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])+_0x409c69,_0x409c69!=_0x59d138([0x56,0x61,0x6c,0x69,0x64])&&_0x55f17b();}function _0x33598a(){const _0x591c9c=window[_0x59d138([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59d138([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59d138([0x6e,0x6f,0x77])]())[_0x59d138([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59d138([0x2e]),'');let _0x2e93a3=_0x59d138([0x61]);for(let _0x364edd=0x0;_0x364edd<_0x591c9c[_0x59d138([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x364edd+=0x2){let _0x2f47de=window[_0x59d138([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x591c9c[_0x59d138([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x364edd,_0x364edd+0x2));_0x2f47de>=_0x23e78f[_0x59d138([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f47de-=_0x23e78f[_0x59d138([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e93a3+=_0x23e78f[_0x2f47de];}return _0x2e93a3;}function _0x17e6aa(){const _0x4f716b=_0x1c8822[_0x59d138([0x73,0x70,0x6c,0x69,0x74])](_0x59d138([0x2e]));if(0x3!=_0x4f716b[_0x59d138([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37d53c(_0x4f716b[0x1]);function _0x37d53c(_0x42e4f0){const _0x5dc3ad=_0x1d6b23(_0x42e4f0);return _0x5dc3ad&&_0x46f52e()?_0x5dc3ad:null;function _0x46f52e(){const _0x3c90f8=_0x5dc3ad[_0x59d138([0x6a,0x74,0x69])],_0x55cb19=window[_0x59d138([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c90f8[_0x59d138([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c90f8[_0x59d138([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a6e1c={..._0x5dc3ad,[_0x59d138([0x6a,0x74,0x69])]:_0x3c90f8[_0x59d138([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c90f8[_0x59d138([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a6e1c[_0x59d138([0x76,0x63])],_0x19fd77(_0x1a6e1c)==_0x55cb19;}}}async function _0x3d3277(){let _0x47b7dc=!0x0;try{const _0x3727c1=_0x1c8822[_0x59d138([0x73,0x70,0x6c,0x69,0x74])](_0x59d138([0x2e])),[_0x20b0cb,_0x2d8ed2,_0x569a62]=_0x3727c1;return _0x30a0df(_0x20b0cb),await _0x36403d(_0x20b0cb,_0x2d8ed2,_0x569a62),_0x47b7dc;}catch{return!0x1;}function _0x30a0df(_0x1a769a){const _0x387a00=_0x1d6b23(_0x1a769a);_0x387a00&&_0x387a00[_0x59d138([0x61,0x6c,0x67])]==_0x59d138([0x45,0x53,0x32,0x35,0x36])||(_0x47b7dc=!0x1);}async function _0x36403d(_0x4b37a9,_0x247f00,_0x259f8e){const _0x35a75c=window[_0x59d138([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59d138([0x66,0x72,0x6f,0x6d])](_0x3335fc(_0x259f8e),_0x1447ed=>_0x1447ed[_0x59d138([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d24c8=new window[(_0x59d138([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59d138([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b37a9+_0x59d138([0x2e])+_0x247f00),_0x150f48=window[_0x59d138([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59d138([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x150f48)return;const _0x13d67b=await _0x150f48[_0x59d138([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59d138([0x6a,0x77,0x6b]),_0x314956,{[_0x59d138([0x6e,0x61,0x6d,0x65])]:_0x59d138([0x45,0x43,0x44,0x53,0x41]),[_0x59d138([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59d138([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59d138([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x150f48[_0x59d138([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59d138([0x6e,0x61,0x6d,0x65])]:_0x59d138([0x45,0x43,0x44,0x53,0x41]),[_0x59d138([0x68,0x61,0x73,0x68])]:{[_0x59d138([0x6e,0x61,0x6d,0x65])]:_0x59d138([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x13d67b,_0x35a75c,_0x1d24c8)||(_0x47b7dc=!0x1);}}function _0x1d6b23(_0x31c2d3){return _0x31c2d3[_0x59d138([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59d138([0x65,0x79]))?JSON[_0x59d138([0x70,0x61,0x72,0x73,0x65])](_0x3335fc(_0x31c2d3)):null;}function _0x3335fc(_0x75fdeb){return window[_0x59d138([0x61,0x74,0x6f,0x62])](_0x75fdeb[_0x59d138([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59d138([0x2b]))[_0x59d138([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59d138([0x2f])));}function _0x19fd77(_0x1a786c){let _0x10023b=0x1505;function _0x3a4320(_0xe7d224){for(let _0x23b8cf=0x0;_0x23b8cf<_0xe7d224[_0x59d138([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23b8cf++){const _0xca1777=_0xe7d224[_0x59d138([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23b8cf);_0x10023b=(_0x10023b<<0x5)+_0x10023b+_0xca1777,_0x10023b&=_0x10023b;}}function _0x55930f(_0x90aaf8){Array[_0x59d138([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x90aaf8)?_0x90aaf8[_0x59d138([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x55930f):_0x90aaf8&&typeof _0x90aaf8==_0x59d138([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59d138([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x90aaf8)[_0x59d138([0x73,0x6f,0x72,0x74])]()[_0x59d138([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xe08e0d,_0x1dbed1])=>{_0x3a4320(_0xe08e0d),_0x55930f(_0x1dbed1);}):_0x3a4320(window[_0x59d138([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x90aaf8));}return _0x55930f(_0x1a786c),_0x10023b>>>0x0;}function _0x3cf891(_0x57ccf9){return _0x57ccf9[_0x59d138([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59d138([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59d138([0x30]));}function _0x310f38(_0x47c637){return _0x47c637[_0x59d138([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59d138([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59d138([0x6a,0x6f,0x69,0x6e])]('');}function _0x134228(){}function _0x59d138(_0x5a157c){return _0x5a157c['map'](_0xfb237d=>String['fromCharCode'](_0xfb237d))['join']('');}_0xe16cc4(await _0x4b35b4());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x707592,{outlineDefinitions:_0x4cdb15,outlineChanges:_0x5a9f10}){this['_currentOutlineDefinitions']=_0x4cdb15,this['view']['sync'](_0x5a9f10);}['_setActiveViewItem'](_0x5e8d9a){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x5e8d9a]&&(this['view']['activeItemIndex']=_0x5e8d9a);}['_handleItemSelected'](_0x5594d5){const _0x545de4=this['_currentOutlineDefinitions'][_0x5594d5]['modelElement'];this['editor']['model']['change'](_0x4d4350=>{_0x4d4350['setSelection'](_0x545de4,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x5594d5);}['_updateActiveDefinitionOnViewportChange'](){const _0x51bdbb=this['editor'];let _0x37a359;for(const _0x27a9f3 of _0x51bdbb['model']['document']['getRootNames']()){const _0x452895=_0x51bdbb['editing']['view']['getDomRoot'](_0x27a9f3),_0x1e03d7=_0x452895&&new _0x3d7295(_0x452895)['getVisible']();if(_0x1e03d7){const _0xc7bfa7=new _0x3d7295(_0x2484f3['window'])['getIntersection'](_0x1e03d7);_0xc7bfa7&&(_0x37a359=_0xc7bfa7['top']+0.25*_0xc7bfa7['height']);}}if(void 0x0===_0x37a359)return;const _0x25dc42=k(_0x51bdbb['editing'],this['_currentOutlineDefinitions'],_0x37a359);_0x25dc42?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x25dc42)):this['_setActiveViewItem'](-0x1);}}function k(_0x3fc037,_0x135fb6,_0x116cdb,_0x40baaf=0x0,_0x15c75e=_0x135fb6['length']-0x1){const _0x33cf74=Math['floor'](_0x40baaf+(_0x15c75e-_0x40baaf)/0x2);if(_0x15c75e>=_0x40baaf){const _0x462bcc=_0x135fb6[_0x33cf74],_0x2b3d69=_0x3fc037['mapper']['toViewElement'](_0x462bcc['modelElement']);if(!_0x2b3d69)return null;const _0x538434=_0x3fc037['view']['domConverter']['mapViewToDom'](_0x2b3d69);return new _0x3d7295(_0x538434)['bottom']>_0x116cdb?k(_0x3fc037,_0x135fb6,_0x116cdb,_0x40baaf,_0x33cf74-0x1):k(_0x3fc037,_0x135fb6,_0x116cdb,_0x33cf74+0x1,_0x15c75e);}return _0x33cf74<0x0?null:_0x135fb6[_0x33cf74];}class K extends _0x21e46b{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[I,x];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x280a38=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35500c;for(const _0x1cf69b in _0x280a38){const _0x39e4aa=_0x1cf69b,_0x12f55c=_0x280a38[_0x39e4aa];if('documentOutlineLicenseKeyValid'==_0x12f55c||'documentOutlineLicenseKeyInvalid'==_0x12f55c||'documentOutlineLicenseKeyExpired'==_0x12f55c||'documentOutlineLicenseKeyDomainLimit'==_0x12f55c||'documentOutlineLicenseKeyNotAllowed'==_0x12f55c||'documentOutlineLicenseKeyEvaluationLimit'==_0x12f55c||'documentOutlineLicenseKeyUsageLimit'==_0x12f55c){delete _0x280a38[_0x39e4aa],_0x35500c=_0x12f55c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x35500c&&_0x280a38['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x35500c&&_0x280a38['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x35500c&&_0x280a38['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x35500c&&_0x280a38['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x35500c&&_0x280a38['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x35500c&&_0x280a38['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0x449110{['execute'](){this['editor']['model']['change'](_0xa0a381=>{this['editor']['model']['insertObject'](_0xa0a381['createElement']('tableOfContents'));});}['refresh'](){const _0x14e578=this['editor']['model'],_0x397b37=_0x14e578['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x397b37&&_0x14e578['schema']['findAllowedParent'](_0x397b37,'tableOfContents'));}}class N extends _0x21e46b{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4d3578=this['editor'];if(_0x4d3578['config']['get']('headingId.modelAttributeName'))return;(function(_0x48b107){const _0x5c0ff6=new Map();if(_0x48b107)return _0x48b107['forEach'](_0x5f0bd4=>{'paragraph'!==_0x5f0bd4['model']&&_0x5c0ff6['set'](_0x5f0bd4['view'],_0x5f0bd4['model']);}),_0x5c0ff6['get']('h1')||_0x5c0ff6['set']('h1','heading1'),_0x5c0ff6;return _0x5c0ff6;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x57e437,_0x244488)=>{this['_customUpcastHeadingsConversion'](_0x244488),this['_customDataDowncastHeadingsConversion'](_0x57e437),_0x4d3578['model']['schema']['isRegistered'](_0x57e437)&&_0x4d3578['model']['schema']['extend'](_0x57e437,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x16a7d7){this['editor']['conversion']['for']('upcast')['add'](_0x5f1939=>_0x5f1939['on']('element:'+_0x16a7d7,(_0x4d0759,_0x526193,_0x3c49ba)=>{const {consumable:_0x42fa70,writer:_0x59cf35}=_0x3c49ba,_0x4b680f=_0x526193['viewItem']['getAttribute']('id'),_0x219f65=_0x526193['modelRange']['getContainedElement']();if(_0x219f65)return _0x4b680f&&_0x4b680f['length']||_0x219f65['hasAttribute']('headingId')?void(_0x42fa70['consume'](_0x526193['viewItem'],{'attributes':['id']})&&_0x59cf35['setAttribute']('headingId',_0x4b680f,_0x219f65)):(_0x42fa70['consume'](_0x526193['viewItem'],{'attributes':['id']}),void _0x59cf35['setAttribute']('headingId',_0xaf0c1e(),_0x219f65));},{'priority':_0x5d1d05['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x2d6f72){this['editor']['conversion']['for']('downcast')['add'](_0x375e29=>_0x375e29['on']('attribute:headingId:'+_0x2d6f72,(_0x2c7518,_0x5c3a3c,_0x46c9c4)=>{if(!_0x46c9c4['consumable']['consume'](_0x5c3a3c['item'],_0x2c7518['name']))return;const _0x54b082=_0x5c3a3c['item']['getAttribute']('headingId'),_0x2bc39c=_0x46c9c4['mapper']['toViewElement'](_0x5c3a3c['item']);_0x46c9c4['writer']['setAttribute']('id',_0x54b082,_0x2bc39c);}));}['_registerHeadingIdAttributePostfixer'](){const _0x56e50e=this['editor'],_0x41e497=new Set(),_0x379df6=new Set();function _0x1947c1(_0x263f39,_0x33909a){const _0x1c18c4=_0xaf0c1e();return _0x379df6['add'](_0x1c18c4),_0x263f39['setAttribute']('headingId',_0x1c18c4,_0x33909a),_0x1c18c4;}function _0x3b55a7(_0x417268,_0x834ec5){_0x417268['removeAttribute']('headingId',_0x834ec5);}_0x56e50e['model']['document']['registerPostFixer'](_0x34d57f=>{const _0x5cfae4=_0x56e50e['model']['document']['differ']['getChanges']();let _0x2822e7=!0x1;for(const _0x434ce2 of _0x5cfae4)if('insert'==_0x434ce2['type']&&_0x434ce2['name']){if(T(_0x434ce2['name'])){const _0x4b998a=_0x434ce2['attributes']['get']('headingId');'string'==typeof _0x4b998a?_0x41e497['has'](_0x4b998a)?(_0x1947c1(_0x34d57f,_0x434ce2['position']['nodeAfter']),_0x2822e7=!0x0):_0x379df6['add'](_0x4b998a):(_0x1947c1(_0x34d57f,_0x434ce2['position']['nodeAfter']),_0x2822e7=!0x0);}else'string'==typeof _0x434ce2['attributes']['get']('headingId')&&(_0x3b55a7(_0x34d57f,_0x434ce2['position']['nodeAfter']),_0x2822e7=!0x0);}else{if('remove'==_0x434ce2['type']){const _0xf6173f=_0x434ce2['attributes']['get']('headingId');'string'==typeof _0xf6173f&&_0x41e497['delete'](_0xf6173f);}}return _0x2822e7;}),_0x56e50e['model']['document']['on']('change',()=>{_0x379df6['forEach'](_0x16291c=>_0x41e497['add'](_0x16291c)),_0x379df6['clear']();});}}function T(_0x147578){return!!_0x147578['match'](/heading\d/);}class A extends _0x21e46b{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x262b05,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x590373){super(_0x590373),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x311d31=this['editor'],_0x1a482c=_0x311d31['editing']['view']['document'];_0x311d31['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x311d31['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x1a482c,'click',(_0x46e458,_0x1b40fc)=>{if(!_0x1b40fc['target'])return;const _0x43a7bb=_0x1b40fc['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x43a7bb)&&(_0x1b40fc['domEvent']['preventDefault'](),_0x46e458['stop'](),this['_handleScrollToHeading'](_0x43a7bb));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x311d31['commands']['add']('insertTableOfContents',new E(_0x311d31)),(_0x311d31['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x126601,_0x4fd8b2)=>{this['_currentOutlineDefinitions']=_0x4fd8b2['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x311d31['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){!async function(_0xc8ef8c){const _0x41c451=_0x198934([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]),_0x4a1b07=0x6b9b05fd,_0x5b283d=0x6b9c8045^_0x4a1b07,_0x2dd9ff=window[_0x198934([0x44,0x61,0x74,0x65])][_0x198934([0x6e,0x6f,0x77])](),_0x3d9478=_0xc8ef8c[_0x198934([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2047b4=new window[(_0x198934([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d6c29=>{_0x3d9478[_0x198934([0x6f,0x6e,0x63,0x65])](_0x198934([0x72,0x65,0x61,0x64,0x79]),_0x5d6c29);}),_0x530696={[_0x198934([0x6b,0x74,0x79])]:_0x198934([0x45,0x43]),[_0x198934([0x75,0x73,0x65])]:_0x198934([0x73,0x69,0x67]),[_0x198934([0x63,0x72,0x76])]:_0x198934([0x50,0x2d,0x32,0x35,0x36]),[_0x198934([0x78])]:_0x198934([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]),[_0x198934([0x79])]:_0x198934([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]),[_0x198934([0x61,0x6c,0x67])]:_0x198934([0x45,0x53,0x32,0x35,0x36])},_0x476c6d=_0x3d9478[_0x198934([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x198934([0x67,0x65,0x74])](_0x198934([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a9295(){let _0x2df491,_0x2dba42=null,_0x3a22a8=null;try{if(_0x476c6d==_0x198934([0x47,0x50,0x4c]))return _0x198934([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2df491=_0x59bcaa(),!_0x2df491)return _0x198934([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2df491[_0x198934([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a22a8=_0x3fd520(_0x2df491[_0x198934([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2df491[_0x198934([0x6a,0x74,0x69])])),await _0x6a7ff1()?_0x187f0a()?_0x2f4ec4()?_0x198934([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c430d()?(_0x2df491[_0x198934([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x198934([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2dba42=_0x425a7b(_0x198934([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d535a()):_0x198934([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x198934([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x198934([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x198934([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f4ec4(){const _0x5e5ea6=[_0x198934([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x198934([0x74,0x72,0x69,0x61,0x6c])][_0x198934([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2df491[_0x198934([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2dd9ff/0x3e8:0xe10*_0x5b283d;return _0x2df491[_0x198934([0x65,0x78,0x70])]<_0x5e5ea6;}function _0x187f0a(){const _0x979e3d=_0x2df491[_0x198934([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x979e3d&&(!!_0x979e3d[_0x198934([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x198934([0x2a]))||(!!_0x979e3d[_0x198934([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x198934([0x54,0x4f,0x43]))||(!!_0x979e3d[_0x198934([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x198934([0x50,0x50]))||!(!_0x979e3d[_0x198934([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x198934([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x47c09f()))));}function _0x1c430d(){const _0x106c86=_0x2df491[_0x198934([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x106c86||0x0==_0x106c86[_0x198934([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1329d5}=new URL(window[_0x198934([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x106c86[_0x198934([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1329d5))return!0x0;const _0x47a89a=_0x1329d5[_0x198934([0x73,0x70,0x6c,0x69,0x74])](_0x198934([0x2e]));return _0x106c86[_0x198934([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55d46b=>_0x55d46b[_0x198934([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x198934([0x2a])))[_0x198934([0x6d,0x61,0x70])](_0xeb2693=>_0xeb2693[_0x198934([0x73,0x70,0x6c,0x69,0x74])](_0x198934([0x2e])))[_0x198934([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ccb3b=>_0x2ccb3b[_0x198934([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47a89a[_0x198934([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x198934([0x6d,0x61,0x70])](_0x38aef9=>Array(_0x47a89a[_0x198934([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38aef9[_0x198934([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x198934([0x66,0x69,0x6c,0x6c])](_0x38aef9[0x0]===_0x198934([0x2a])?_0x198934([0x2a]):'')[_0x198934([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38aef9))[_0x198934([0x73,0x6f,0x6d,0x65])](_0x25170d=>_0x47a89a[_0x198934([0x65,0x76,0x65,0x72,0x79])]((_0x487c10,_0x11cfe2)=>_0x25170d[_0x11cfe2]===_0x487c10||_0x25170d[_0x11cfe2]===_0x198934([0x2a])));}function _0x4d535a(){return _0x2dba42&&_0x3a22a8?new window[(_0x198934([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ddc47,_0x7b392)=>{_0x2dba42[_0x198934([0x74,0x68,0x65,0x6e])](_0x3ddc47,_0x7b392),_0x3a22a8[_0x198934([0x74,0x68,0x65,0x6e])](_0x2bdc58=>{_0x2bdc58!=_0x198934([0x56,0x61,0x6c,0x69,0x64])&&_0x3ddc47(_0x2bdc58);},_0x7b392);}):_0x2dba42||_0x3a22a8||_0x198934([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3fd520(_0x28d7e5,_0x55b3ec){return new window[(_0x198934([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2beed0=>{if(_0x19a9cb())return _0x2beed0(_0x198934([0x56,0x61,0x6c,0x69,0x64]));_0x1f69e5(),_0x3d9478[_0x198934([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x198934([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c6ab3=!0x1;const _0x1dadf0=_0xaf0c1e();function _0x3debad(_0x3e0974){return!!_0x3e0974&&(typeof _0x3e0974===_0x198934([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e0974===_0x198934([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e0974[_0x198934([0x74,0x68,0x65,0x6e])]===_0x198934([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e0974[_0x198934([0x63,0x61,0x74,0x63,0x68])]===_0x198934([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20daf6(_0x587f){_0x2253b4(_0x587f)[_0x198934([0x74,0x68,0x65,0x6e])](_0x44ec44=>{if(!_0x44ec44||_0x44ec44[_0x198934([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x198934([0x6f,0x6b]))return _0x198934([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x350f01(_0x18927c(_0x1dadf0+_0x55b3ec))!=_0x44ec44[_0x198934([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x198934([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x198934([0x56,0x61,0x6c,0x69,0x64]);})[_0x198934([0x74,0x68,0x65,0x6e])](_0x41575f=>(_0x241110(),_0x41575f),()=>{const _0x506d0e=_0x51d2eb();return null==_0x506d0e?(_0x241110(),_0x198934([0x56,0x61,0x6c,0x69,0x64])):_0x198934(_0x2dd9ff-_0x506d0e>(0x4f9781fd^_0x4a1b07)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x198934([0x74,0x68,0x65,0x6e])](_0x2beed0)[_0x198934([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2beed0(_0x198934([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa5c11f=0x6badeb7d^_0x4a1b07;function _0x241110(){const _0x1d3d60=_0x198934([0x6c,0x6c,0x63,0x74,0x2d])+_0x350f01(_0x18927c(_0x28d7e5)),_0x30f320=_0x248338(_0x350f01(window[_0x198934([0x4d,0x61,0x74,0x68])][_0x198934([0x63,0x65,0x69,0x6c])](_0x2dd9ff/_0xa5c11f)));window[_0x198934([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x198934([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d3d60,_0x30f320);}function _0x51d2eb(){const _0xba9ad4=_0x198934([0x6c,0x6c,0x63,0x74,0x2d])+_0x350f01(_0x18927c(_0x28d7e5)),_0x289aec=window[_0x198934([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x198934([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xba9ad4);return _0x289aec?window[_0x198934([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x248338(_0x289aec),0x10)*_0xa5c11f:null;}function _0x2253b4(_0x805da4){return new window[(_0x198934([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54fbdc,_0x215067)=>{_0x805da4[_0x198934([0x74,0x68,0x65,0x6e])](_0x54fbdc,_0x215067),window[_0x198934([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x215067,0x6b9ad13d^_0x4a1b07);});}}_0x3d9478[_0x198934([0x6f,0x6e])](_0x198934([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b47eb,_0x501f72)=>{if(_0x501f72[0x0]!=_0x28d7e5)return _0x2beed0(_0x198934([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x501f72[0x1]={..._0x501f72[0x1],[_0x198934([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1dadf0};},{[_0x198934([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x198934([0x68,0x69,0x67,0x68])}),_0x3d9478[_0x198934([0x6f,0x6e])](_0x198934([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x399a72=>{_0x3debad(_0x399a72[_0x198934([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c6ab3=!0x0,_0x20daf6(_0x399a72[_0x198934([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x198934([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x198934([0x6c,0x6f,0x77])}),_0x2047b4[_0x198934([0x74,0x68,0x65,0x6e])](()=>{_0x2c6ab3||_0x2beed0(_0x198934([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x19a9cb(){return _0x3d9478[_0x198934([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x198934([0x76,0x69,0x65,0x77])][_0x198934([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x198934([0x61,0x75,0x74,0x6f]);}function _0x1f69e5(){_0x3d9478[_0x198934([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x198934([0x76,0x69,0x65,0x77])][_0x198934([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x198934([0x61,0x75,0x74,0x6f]);}}function _0x425a7b(_0x3ca142){const _0x436512=[new window[(_0x198934([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16c42c=>setTimeout(_0x16c42c,0x6b923b31^_0x4a1b07)),_0x2047b4[_0x198934([0x74,0x68,0x65,0x6e])](()=>new window[(_0x198934([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x561864=>{let _0x249589=0x0;_0x3d9478[_0x198934([0x6d,0x6f,0x64,0x65,0x6c])][_0x198934([0x6f,0x6e])](_0x198934([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a0d28,_0x41d18b)=>{_0x41d18b[0x0][_0x198934([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x249589++,_0x249589==(0x6b9b0015^_0x4a1b07)&&(_0x561864(),_0x4a0d28[_0x198934([0x6f,0x66,0x66])]());});}))];return window[_0x198934([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x198934([0x72,0x61,0x63,0x65])](_0x436512)[_0x198934([0x74,0x68,0x65,0x6e])](()=>_0x3ca142);}async function _0x3028e4(){await _0x2047b4,_0x3d9478[_0x198934([0x6d,0x6f,0x64,0x65,0x6c])][_0x198934([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3cc13e,_0x3d9478[_0x198934([0x6d,0x6f,0x64,0x65,0x6c])][_0x198934([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3cc13e,_0x3d9478[_0x198934([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x198934([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x47c09f(){return window[_0x198934([0x67,0x6c,0x6f,0x62])]&&window[_0x198934([0x67,0x6c,0x6f,0x62])][_0x198934([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x400e27(_0x258ae5){const _0x30dd8d=_0x3546c8();_0x3d9478[_0x30dd8d]=_0x198934([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])+_0x258ae5,_0x258ae5!=_0x198934([0x56,0x61,0x6c,0x69,0x64])&&_0x3028e4();}function _0x3546c8(){const _0x12af2c=window[_0x198934([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x198934([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x198934([0x6e,0x6f,0x77])]())[_0x198934([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x198934([0x2e]),'');let _0x1fd540=_0x198934([0x6d]);for(let _0x575177=0x0;_0x575177<_0x12af2c[_0x198934([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x575177+=0x2){let _0x541ee7=window[_0x198934([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12af2c[_0x198934([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x575177,_0x575177+0x2));_0x541ee7>=_0x41c451[_0x198934([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x541ee7-=_0x41c451[_0x198934([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1fd540+=_0x41c451[_0x541ee7];}return _0x1fd540;}function _0x59bcaa(){const _0x81b324=_0x476c6d[_0x198934([0x73,0x70,0x6c,0x69,0x74])](_0x198934([0x2e]));if(0x3!=_0x81b324[_0x198934([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4727cf(_0x81b324[0x1]);function _0x4727cf(_0x511aff){const _0x7ab4c4=_0x1f2f06(_0x511aff);return _0x7ab4c4&&_0x4af939()?_0x7ab4c4:null;function _0x4af939(){const _0x3cd0a0=_0x7ab4c4[_0x198934([0x6a,0x74,0x69])],_0x4e4763=window[_0x198934([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cd0a0[_0x198934([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3cd0a0[_0x198934([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x52e8d7={..._0x7ab4c4,[_0x198934([0x6a,0x74,0x69])]:_0x3cd0a0[_0x198934([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3cd0a0[_0x198934([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x52e8d7[_0x198934([0x76,0x63])],_0x18927c(_0x52e8d7)==_0x4e4763;}}}async function _0x6a7ff1(){let _0x497213=!0x0;try{const _0xd63070=_0x476c6d[_0x198934([0x73,0x70,0x6c,0x69,0x74])](_0x198934([0x2e])),[_0x385d9b,_0x3af2d8,_0x4b93b2]=_0xd63070;return _0x2575ea(_0x385d9b),await _0x3ccea5(_0x385d9b,_0x3af2d8,_0x4b93b2),_0x497213;}catch{return!0x1;}function _0x2575ea(_0x227d0c){const _0xfb1fe4=_0x1f2f06(_0x227d0c);_0xfb1fe4&&_0xfb1fe4[_0x198934([0x61,0x6c,0x67])]==_0x198934([0x45,0x53,0x32,0x35,0x36])||(_0x497213=!0x1);}async function _0x3ccea5(_0x131e74,_0x5073eb,_0x4073a8){const _0x1ec236=window[_0x198934([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x198934([0x66,0x72,0x6f,0x6d])](_0x53210a(_0x4073a8),_0x14f895=>_0x14f895[_0x198934([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x386881=new window[(_0x198934([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x198934([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x131e74+_0x198934([0x2e])+_0x5073eb),_0x2c9285=window[_0x198934([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x198934([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c9285)return;const _0x2e984f=await _0x2c9285[_0x198934([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x198934([0x6a,0x77,0x6b]),_0x530696,{[_0x198934([0x6e,0x61,0x6d,0x65])]:_0x198934([0x45,0x43,0x44,0x53,0x41]),[_0x198934([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x198934([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x198934([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c9285[_0x198934([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x198934([0x6e,0x61,0x6d,0x65])]:_0x198934([0x45,0x43,0x44,0x53,0x41]),[_0x198934([0x68,0x61,0x73,0x68])]:{[_0x198934([0x6e,0x61,0x6d,0x65])]:_0x198934([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e984f,_0x1ec236,_0x386881)||(_0x497213=!0x1);}}function _0x1f2f06(_0x5f00b1){return _0x5f00b1[_0x198934([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x198934([0x65,0x79]))?JSON[_0x198934([0x70,0x61,0x72,0x73,0x65])](_0x53210a(_0x5f00b1)):null;}function _0x53210a(_0x2599e3){return window[_0x198934([0x61,0x74,0x6f,0x62])](_0x2599e3[_0x198934([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x198934([0x2b]))[_0x198934([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x198934([0x2f])));}function _0x18927c(_0x5cc0bf){let _0x452dc7=0x1505;function _0xb0e2d6(_0x201281){for(let _0x9c69ff=0x0;_0x9c69ff<_0x201281[_0x198934([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9c69ff++){const _0x5a0c4f=_0x201281[_0x198934([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9c69ff);_0x452dc7=(_0x452dc7<<0x5)+_0x452dc7+_0x5a0c4f,_0x452dc7&=_0x452dc7;}}function _0x5b6464(_0x34dba9){Array[_0x198934([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34dba9)?_0x34dba9[_0x198934([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b6464):_0x34dba9&&typeof _0x34dba9==_0x198934([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x198934([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34dba9)[_0x198934([0x73,0x6f,0x72,0x74])]()[_0x198934([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27513d,_0x466c36])=>{_0xb0e2d6(_0x27513d),_0x5b6464(_0x466c36);}):_0xb0e2d6(window[_0x198934([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34dba9));}return _0x5b6464(_0x5cc0bf),_0x452dc7>>>0x0;}function _0x350f01(_0x22a61d){return _0x22a61d[_0x198934([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x198934([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x198934([0x30]));}function _0x248338(_0xf8f7f0){return _0xf8f7f0[_0x198934([0x73,0x70,0x6c,0x69,0x74])]('')[_0x198934([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x198934([0x6a,0x6f,0x69,0x6e])]('');}function _0x3cc13e(){}function _0x198934(_0x19264f){return _0x19264f['map'](_0x26763e=>String['fromCharCode'](_0x26763e))['join']('');}_0x400e27(await _0x3a9295());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x4f1e73=>{'$graveyard'!==_0x4f1e73['rootName']&&this['editor']['editing']['reconvertItem'](_0x4f1e73);});}['_trackNewToCElements'](){for(const _0x3db26b of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x3db26b['type']||'tableOfContents'!==_0x3db26b['name'])return;this['_tableOfContentsElements']['add'](_0x3db26b['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x46ee49=this['editor']['conversion'];_0x46ee49['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x46ee49['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x1aeeee,{writer:_0x2ebc15})=>this['_createTableOfContents'](_0x2ebc15,!0x0)}),_0x46ee49['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x5618f5,{writer:_0x1625cd})=>{this['_tableOfContentsElements']['add'](_0x5618f5);const _0x1eea6a=this['_createTableOfContents'](_0x1625cd);return _0x4cb115(_0x1eea6a,_0x1625cd,{'label':C(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'](_0x206187,_0x3a2f57=!0x1){const {locale:_0x17b1a1}=this['editor'],_0x532581=_0x206187['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x3a2f57&&{'data-table-of-contents-label':C(_0x17b1a1,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x3a2f57&&_0x206187['insert'](_0x206187['createPositionAt'](_0x532581,'end'),_0x206187['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x206187['createText'](C(_0x17b1a1,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x2d5696=_0x3a2f57?'':'['+C(_0x17b1a1,'Empty\x20heading')+']';let _0xe77126=_0x532581;return this['_currentOutlineDefinitions']['forEach']((_0x37f71b,_0x208aaa,_0x445ad0)=>{const _0x598bcc=this['editor']['model']['hasContent'](_0x37f71b['modelElement'],{'ignoreWhitespaces':!0x0}),_0x4dc799=_0x598bcc?_0x37f71b['text']:_0x2d5696,_0x311f14=_0x37f71b['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0xdc0b31=_0x206187['createContainerElement']('a',{'href':'#'+_0x311f14,...!_0x3a2f57&&{'tabindex':'-1'}},[_0x206187['createText'](_0x4dc799)]),_0x24dce1=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x206187['setCustomProperty']('tableOfContentsHeadingIndex',_0x208aaa,_0xdc0b31);const _0x53bdd6=_0x206187['createContainerElement']('li',null,[_0x598bcc||!_0x3a2f57&&_0x24dce1?_0xdc0b31:_0x206187['createText']('')]),_0x1fd7da=_0x208aaa?_0x445ad0[_0x208aaa-0x1]['level']:0x0,_0x52e902=Math['abs'](_0x37f71b['level']-_0x1fd7da);if(_0x37f71b['level']>_0x1fd7da){const _0x9fea77=P(_0x53bdd6,_0x52e902,_0x206187);_0x206187['insert'](_0x206187['createPositionAt'](_0xe77126,'end'),_0x9fea77);}else{const _0xa28a39=function(_0x52a20f,_0x466c37){return _0x52a20f['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x5c5a2f=>_0x5c5a2f['is']('element','ol'))[_0x466c37];}(_0xe77126,_0x52e902);_0x206187['insert'](_0x206187['createPositionAt'](_0xa28a39,'end'),_0x53bdd6);}_0xe77126=_0x53bdd6;}),_0x532581;}['_handleScrollToHeading'](_0xcaf211){const _0x5da06e=this['_currentOutlineDefinitions'][_0xcaf211]['modelElement'];this['editor']['model']['change'](_0x44a67c=>{_0x44a67c['setSelection'](_0x5da06e,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x4d1a1f,_0x32cb79)=>{const _0x48c76c=_0x32cb79['mapper'],_0x8b5715=_0x48c76c['findMappedViewAncestor'](_0x32cb79['viewPosition']),_0x20225a=_0x48c76c['toModelElement'](_0x8b5715);_0x20225a['is']('element','tableOfContents')&&(_0x32cb79['modelPosition']=this['editor']['model']['createPositionAt'](_0x20225a,0x0),_0x4d1a1f['stop']());};}}function P(_0x47bf99,_0x1bfb35,_0x32853f){return 0x1===_0x1bfb35?_0x32853f['createContainerElement']('ol',null,[_0x47bf99]):_0x32853f['createContainerElement']('ol',null,[_0x32853f['createContainerElement']('li',null,[P(_0x47bf99,_0x1bfb35-0x1,_0x32853f)])]);}class D extends _0x21e46b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x371b93=this['editor'];_0x371b93['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x1785d4=this['_createButton'](_0x410a2c);return _0x1785d4['tooltip']=!0x0,_0x1785d4;}),_0x371b93['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x31d22a)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1bee31=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31242e;for(const _0x23d8dc in _0x1bee31){const _0x2684c1=_0x23d8dc,_0x361901=_0x1bee31[_0x2684c1];if('tableOfContentsLicenseKeyValid'==_0x361901||'tableOfContentsLicenseKeyInvalid'==_0x361901||'tableOfContentsLicenseKeyExpired'==_0x361901||'tableOfContentsLicenseKeyDomainLimit'==_0x361901||'tableOfContentsLicenseKeyNotAllowed'==_0x361901||'tableOfContentsLicenseKeyEvaluationLimit'==_0x361901||'tableOfContentsLicenseKeyUsageLimit'==_0x361901){delete _0x1bee31[_0x2684c1],_0x31242e=_0x361901,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x31242e&&_0x1bee31['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x31242e&&_0x1bee31['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x31242e&&_0x1bee31['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x31242e&&_0x1bee31['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x31242e&&_0x1bee31['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x31242e&&_0x1bee31['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x26b8c4){const _0x40c246=this['editor'],_0x42cb77=_0x40c246['locale'],_0x51e800=_0x40c246['commands']['get']('insertTableOfContents'),_0x2b330b=new _0x26b8c4(_0x42cb77);return _0x2b330b['set']({'label':C(_0x42cb77,'Table\x20of\x20contents'),'icon':_0x1c61a9}),_0x2b330b['bind']('isEnabled')['to'](_0x51e800,'isEnabled'),this['listenTo'](_0x2b330b,'execute',()=>{_0x40c246['execute']('insertTableOfContents'),_0x40c246['editing']['view']['focus']();}),_0x2b330b;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x21e46b{static get['requires'](){return[A,D];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{K as DocumentOutline,x as DocumentOutlineUI,I as DocumentOutlineUtils,N as HeadingId,H as TableOfContents,E as TableOfContentsCommand,A as TableOfContentsEditing,D as TableOfContentsUI};
23
+ import{Plugin as _0x489317,Command as _0x1224e7}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x540f12,throttle as _0x32a286}from'es-toolkit/compat';import{ModelText as _0x261c0c,ModelTreeWalker as _0xadb469}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x49a48d,diffToChanges as _0x467729,scrollAncestorsToShowTarget as _0x57bdb2,CKEditorError as _0x3821be,global as _0x5e7de1,Rect as _0x28e7c3,uid as _0x5b6801,priorities as _0x379e14}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0xb6c575,ButtonView as _0x56ee74,MenuBarMenuListItemButtonView as _0x276716}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x43367b,toWidget as _0x47d9c1}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x48a989}from'@ckeditor/ckeditor5-icons/dist/index.js';function v(_0x32947c){let _0x588ef9='';for(const _0x41a03e of _0x32947c['getChildren']())_0x41a03e instanceof _0x261c0c&&(_0x588ef9+=_0x41a03e['data']);return _0x588ef9;}class I extends _0x489317{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x2103f5=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x31b7a4=[];_0x2103f5['model']['document']['on']('change',_0x540f12(()=>{const _0x556b90=_0x31b7a4;_0x31b7a4=this['_getOutlineDefinitions']();const _0x1fce7b=_0x49a48d(_0x556b90,_0x31b7a4,(_0x208706,_0x5cf5fb)=>_0x208706['level']===_0x5cf5fb['level']&&_0x208706['text']===_0x5cf5fb['text']&&_0x208706['modelElement']===_0x5cf5fb['modelElement']),_0x3c5508=_0x467729(_0x1fce7b,_0x31b7a4),_0x497d4b=this['_getActiveHeading'](),_0x15baa2=_0x31b7a4['findIndex'](_0x1271b0=>_0x1271b0['modelElement']===_0x497d4b);_0x3c5508['length']&&this['fire']('change',{'outlineDefinitions':_0x31b7a4,'activeItemIndex':_0x15baa2,'outlineChanges':_0x3c5508}),this['fire']('activeItemIndex',{'index':_0x15baa2});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x244889=this['editor'],_0x1d0778=[],_0x2c4da5=this['_headingNames'];for(const _0x325944 of _0x244889['model']['document']['getRootNames']())_0x1f4538(_0x244889['model']['document']['getRoot'](_0x325944));function _0x1f4538(_0x12a9dd){for(const _0x96ca72 of _0x12a9dd['getChildren']())_0x96ca72['is']('element')&&(_0x2c4da5['includes'](_0x96ca72['name'])&&_0x1d0778['push']({'level':_0x2c4da5['indexOf'](_0x96ca72['name'])+0x1,'text':v(_0x96ca72),'modelElement':_0x96ca72}),_0x1f4538(_0x96ca72));}return _0x1d0778;}['_getActiveHeading'](){const _0x1a948e=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x411a5c=new _0xadb469({'direction':'backward','startPosition':_0x1a948e});for(const _0x3218aa of _0x411a5c)if(_0x3218aa['item']['is']('element')&&this['_headingNames']['includes'](_0x3218aa['item']['name']))return _0x3218aa['item'];}['_getHeadingNames'](){const _0x427d20=this['editor']['config']['get']('documentOutline.headings');return _0x427d20||function(_0x3a6594){const _0x315195=_0x3a6594['config']['get']('heading.options');return _0x315195?_0x315195['reduce']((_0x2cb215,_0x14f453)=>('paragraph'!==_0x14f453['model']&&_0x2cb215['push'](_0x14f453['model']),_0x2cb215),[]):_0x3a6594['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x11fae1=this['editor'],_0x504aba=['h1','h2','h3','h4','h5','h6'],_0x1ce67b=[];for(const _0x4c3e4a of _0x504aba){const _0x47b958=_0x11fae1['editing']['view']['domConverter']['domToView'](document['createElement'](_0x4c3e4a)),_0x37ef57=_0x11fae1['data']['toModel'](_0x47b958)['getChild'](0x0);_0x37ef57?.['is']('element')&&_0x1ce67b['push'](_0x37ef57['name']);}this['_headingNames']=_0x1ce67b;}}function C(_0xc77bb6,_0x5a72f8){const t=_0xc77bb6['t'];switch(_0x5a72f8){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 _0x5a72f8;}}class _ extends _0xb6c575{constructor(_0x3865f0,_0x5b25c8=!0x1){super(_0x3865f0);const _0x50334d=this['bindTemplate'],_0x2251e4=_0x5b25c8?'['+C(_0x3865f0,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x4bb453=>!_0x4bb453),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x50334d['to']('level',_0x2083ea=>'ck-document-outline__item_level-'+_0x2083ea),_0x50334d['if']('isActive','ck-document-outline__item_active'),_0x50334d['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x50334d['to']('text')},'children':[{'text':_0x50334d['to']('text',_0x5568aa=>_0x5568aa||_0x2251e4)}],'on':{'click':_0x50334d['to']('click')}});}}class L extends _0xb6c575{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x43939d,_0x7f8663=!0x1,_0x200cad){super(_0x43939d),this['showEmptyHeadingText']=_0x7f8663,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x200cad,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x405a01,_0x566dce,_0x1c19a3,_0x40b753)=>{this['_setActiveItem'](_0x40b753,_0x1c19a3);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x43939d['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x43939d,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x199aa8){_0x199aa8['forEach'](_0x82a0ff=>{'insert'==_0x82a0ff['type']?this['_insertItem'](_0x82a0ff['index'],..._0x82a0ff['values']):'delete'==_0x82a0ff['type']&&this['_deleteItem'](_0x82a0ff['index'],_0x82a0ff['howMany']);});}['_setActiveItem'](_0x2ea732,_0x4b385c){if(-0x1!==_0x2ea732){const _0x30143d=this['items']['get'](_0x2ea732);_0x30143d&&(_0x30143d['isActive']=!0x1);}-0x1!==_0x4b385c&&(this['items']['get'](_0x4b385c)['isActive']=!0x0,this['_scrollToItem'](_0x4b385c));}['_insertItem'](_0x2d3eb9,..._0x3276ac){const _0x9d0128=_0x3276ac['map']((_0x45e41d,_0xa17982)=>{const _0x19f044=new _(this['locale'],this['showEmptyHeadingText']);return _0x19f044['text']=_0x45e41d['text'],_0x19f044['level']=_0x45e41d['level'],_0x2d3eb9+_0xa17982===this['activeItemIndex']&&(_0x19f044['isActive']=!0x0),_0x19f044;});this['items']['addMany'](_0x9d0128,_0x2d3eb9);}['_deleteItem'](_0x49696d,_0x564112){do{this['items']['remove'](_0x49696d);}while(--_0x564112);}['_handleItemClick'](_0x18bf4e){const _0x5a73a8=this['items']['getIndex'](_0x18bf4e['source']);this['fire']('itemSelected',_0x5a73a8);}['_scrollToItem'](_0x11914e){_0x57bdb2(this['items']['get'](_0x11914e)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class x extends _0x489317{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x303290){super(_0x303290),this['view']=new L(_0x303290['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x32a286(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x39c7f4=this['editor'],_0x29b94f=_0x39c7f4['plugins']['get']('DocumentOutlineUtils');let _0x83857f=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x39c7f4['config']['get']('documentOutline.container'))throw new _0x3821be('document-outline-container-not-provided',{'editor':_0x39c7f4});_0x39c7f4['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x29b94f['on']('change',this['_handleOutlineChange']['bind'](this)),_0x29b94f['on']('activeItemIndex',(_0x45bd21,{index:_0x1de09a})=>this['_setActiveViewItem'](_0x1de09a)),this['view']['on']('itemSelected',(_0x1db70d,_0x365bcd)=>{_0x83857f=!0x0,this['_handleItemSelected'](_0x365bcd);}),this['view']['listenTo'](_0x5e7de1['document'],'scroll',()=>{_0x83857f?_0x83857f=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x5e7de1['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x2cb009){const _0x58177c=_0xa40eb0([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]),_0x1e0c09=0x1cb264a3,_0x296fce=0x1cb5e173^_0x1e0c09,_0x5f19ab=window[_0xa40eb0([0x44,0x61,0x74,0x65])][_0xa40eb0([0x6e,0x6f,0x77])](),_0x1eb766=_0x2cb009[_0xa40eb0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1685e1=new window[(_0xa40eb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1350f8=>{_0x1eb766[_0xa40eb0([0x6f,0x6e,0x63,0x65])](_0xa40eb0([0x72,0x65,0x61,0x64,0x79]),_0x1350f8);}),_0x3d3611={[_0xa40eb0([0x6b,0x74,0x79])]:_0xa40eb0([0x45,0x43]),[_0xa40eb0([0x75,0x73,0x65])]:_0xa40eb0([0x73,0x69,0x67]),[_0xa40eb0([0x63,0x72,0x76])]:_0xa40eb0([0x50,0x2d,0x32,0x35,0x36]),[_0xa40eb0([0x78])]:_0xa40eb0([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]),[_0xa40eb0([0x79])]:_0xa40eb0([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]),[_0xa40eb0([0x61,0x6c,0x67])]:_0xa40eb0([0x45,0x53,0x32,0x35,0x36])},_0x316d7e=_0x1eb766[_0xa40eb0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa40eb0([0x67,0x65,0x74])](_0xa40eb0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a8dfe(){let _0x536a4c,_0x15851a=null,_0x2d785b=null;try{if(_0x316d7e==_0xa40eb0([0x47,0x50,0x4c]))return _0xa40eb0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x536a4c=_0x3d6ff5(),!_0x536a4c)return _0xa40eb0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x536a4c[_0xa40eb0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d785b=_0x58048b(_0x536a4c[_0xa40eb0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x536a4c[_0xa40eb0([0x6a,0x74,0x69])])),await _0x39a33e()?_0x2d5f85()?_0x26ad6e()?_0xa40eb0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdc6753()?(_0x536a4c[_0xa40eb0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa40eb0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x15851a=_0x28da03(_0xa40eb0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e1436()):_0xa40eb0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa40eb0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa40eb0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa40eb0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26ad6e(){const _0x37bc30=[_0xa40eb0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa40eb0([0x74,0x72,0x69,0x61,0x6c])][_0xa40eb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x536a4c[_0xa40eb0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f19ab/0x3e8:0xe10*_0x296fce;return _0x536a4c[_0xa40eb0([0x65,0x78,0x70])]<_0x37bc30;}function _0x2d5f85(){const _0x41ac9d=_0x536a4c[_0xa40eb0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x41ac9d&&(!!_0x41ac9d[_0xa40eb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa40eb0([0x2a]))||(!!_0x41ac9d[_0xa40eb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa40eb0([0x44,0x4f]))||(!!_0x41ac9d[_0xa40eb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa40eb0([0x50,0x50]))||!(!_0x41ac9d[_0xa40eb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa40eb0([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x5a691e()))));}function _0xdc6753(){const _0x31734b=_0x536a4c[_0xa40eb0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31734b||0x0==_0x31734b[_0xa40eb0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a6703}=new URL(window[_0xa40eb0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31734b[_0xa40eb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a6703))return!0x0;const _0xbadb8e=_0x3a6703[_0xa40eb0([0x73,0x70,0x6c,0x69,0x74])](_0xa40eb0([0x2e]));return _0x31734b[_0xa40eb0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2971e5=>_0x2971e5[_0xa40eb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa40eb0([0x2a])))[_0xa40eb0([0x6d,0x61,0x70])](_0x54c8fa=>_0x54c8fa[_0xa40eb0([0x73,0x70,0x6c,0x69,0x74])](_0xa40eb0([0x2e])))[_0xa40eb0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x103168=>_0x103168[_0xa40eb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xbadb8e[_0xa40eb0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa40eb0([0x6d,0x61,0x70])](_0x42232e=>Array(_0xbadb8e[_0xa40eb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42232e[_0xa40eb0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa40eb0([0x66,0x69,0x6c,0x6c])](_0x42232e[0x0]===_0xa40eb0([0x2a])?_0xa40eb0([0x2a]):'')[_0xa40eb0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42232e))[_0xa40eb0([0x73,0x6f,0x6d,0x65])](_0x2e5b02=>_0xbadb8e[_0xa40eb0([0x65,0x76,0x65,0x72,0x79])]((_0x5994f0,_0x5ac32d)=>_0x2e5b02[_0x5ac32d]===_0x5994f0||_0x2e5b02[_0x5ac32d]===_0xa40eb0([0x2a])));}function _0x1e1436(){return _0x15851a&&_0x2d785b?new window[(_0xa40eb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x399d79,_0x343129)=>{_0x15851a[_0xa40eb0([0x74,0x68,0x65,0x6e])](_0x399d79,_0x343129),_0x2d785b[_0xa40eb0([0x74,0x68,0x65,0x6e])](_0x5ceaac=>{_0x5ceaac!=_0xa40eb0([0x56,0x61,0x6c,0x69,0x64])&&_0x399d79(_0x5ceaac);},_0x343129);}):_0x15851a||_0x2d785b||_0xa40eb0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58048b(_0x152f0f,_0x1cf643){return new window[(_0xa40eb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c813e=>{if(_0x13783f())return _0x4c813e(_0xa40eb0([0x56,0x61,0x6c,0x69,0x64]));_0x5b1a6a(),_0x1eb766[_0xa40eb0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa40eb0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x361cab=!0x1;const _0x5d5e2b=_0x5b6801();function _0x504120(_0x56e460){return!!_0x56e460&&(typeof _0x56e460===_0xa40eb0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x56e460===_0xa40eb0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x56e460[_0xa40eb0([0x74,0x68,0x65,0x6e])]===_0xa40eb0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x56e460[_0xa40eb0([0x63,0x61,0x74,0x63,0x68])]===_0xa40eb0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d1a05(_0x4395f3){_0x3e3665(_0x4395f3)[_0xa40eb0([0x74,0x68,0x65,0x6e])](_0x3a856d=>{if(!_0x3a856d||_0x3a856d[_0xa40eb0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa40eb0([0x6f,0x6b]))return _0xa40eb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x394c38(_0x58faa9(_0x5d5e2b+_0x1cf643))!=_0x3a856d[_0xa40eb0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa40eb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa40eb0([0x56,0x61,0x6c,0x69,0x64]);})[_0xa40eb0([0x74,0x68,0x65,0x6e])](_0x5054f1=>(_0x1c726d(),_0x5054f1),()=>{const _0x2a2472=_0x529189();return null==_0x2a2472?(_0x1c726d(),_0xa40eb0([0x56,0x61,0x6c,0x69,0x64])):_0xa40eb0(_0x5f19ab-_0x2a2472>(0x38bee0a3^_0x1e0c09)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa40eb0([0x74,0x68,0x65,0x6e])](_0x4c813e)[_0xa40eb0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c813e(_0xa40eb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x204c99=0x1c848a23^_0x1e0c09;function _0x1c726d(){const _0x466d19=_0xa40eb0([0x6c,0x6c,0x63,0x74,0x2d])+_0x394c38(_0x58faa9(_0x152f0f)),_0x4a28f7=_0x423044(_0x394c38(window[_0xa40eb0([0x4d,0x61,0x74,0x68])][_0xa40eb0([0x63,0x65,0x69,0x6c])](_0x5f19ab/_0x204c99)));window[_0xa40eb0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa40eb0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x466d19,_0x4a28f7);}function _0x529189(){const _0x4b7806=_0xa40eb0([0x6c,0x6c,0x63,0x74,0x2d])+_0x394c38(_0x58faa9(_0x152f0f)),_0x47d675=window[_0xa40eb0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa40eb0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b7806);return _0x47d675?window[_0xa40eb0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x423044(_0x47d675),0x10)*_0x204c99:null;}function _0x3e3665(_0x3e2361){return new window[(_0xa40eb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a86f3,_0x15ad69)=>{_0x3e2361[_0xa40eb0([0x74,0x68,0x65,0x6e])](_0x4a86f3,_0x15ad69),window[_0xa40eb0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15ad69,0x1cb3b063^_0x1e0c09);});}}_0x1eb766[_0xa40eb0([0x6f,0x6e])](_0xa40eb0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x386d93,_0x50a418)=>{if(_0x50a418[0x0]!=_0x152f0f)return _0x4c813e(_0xa40eb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50a418[0x1]={..._0x50a418[0x1],[_0xa40eb0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d5e2b};},{[_0xa40eb0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa40eb0([0x68,0x69,0x67,0x68])}),_0x1eb766[_0xa40eb0([0x6f,0x6e])](_0xa40eb0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x72ee88=>{_0x504120(_0x72ee88[_0xa40eb0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x361cab=!0x0,_0x1d1a05(_0x72ee88[_0xa40eb0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa40eb0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa40eb0([0x6c,0x6f,0x77])}),_0x1685e1[_0xa40eb0([0x74,0x68,0x65,0x6e])](()=>{_0x361cab||_0x4c813e(_0xa40eb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x13783f(){return _0x1eb766[_0xa40eb0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa40eb0([0x76,0x69,0x65,0x77])][_0xa40eb0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa40eb0([0x61,0x75,0x74,0x6f]);}function _0x5b1a6a(){_0x1eb766[_0xa40eb0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa40eb0([0x76,0x69,0x65,0x77])][_0xa40eb0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa40eb0([0x61,0x75,0x74,0x6f]);}}function _0x28da03(_0x132976){const _0x69c7b0=[new window[(_0xa40eb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7dd2ac=>setTimeout(_0x7dd2ac,0x1cbb5a6f^_0x1e0c09)),_0x1685e1[_0xa40eb0([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa40eb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c3dd8=>{let _0x8d747c=0x0;_0x1eb766[_0xa40eb0([0x6d,0x6f,0x64,0x65,0x6c])][_0xa40eb0([0x6f,0x6e])](_0xa40eb0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4282e5,_0x4ff915)=>{_0x4ff915[0x0][_0xa40eb0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8d747c++,_0x8d747c==(0x1cb2614b^_0x1e0c09)&&(_0x3c3dd8(),_0x4282e5[_0xa40eb0([0x6f,0x66,0x66])]());});}))];return window[_0xa40eb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa40eb0([0x72,0x61,0x63,0x65])](_0x69c7b0)[_0xa40eb0([0x74,0x68,0x65,0x6e])](()=>_0x132976);}async function _0x5f3d5f(){await _0x1685e1,_0x1eb766[_0xa40eb0([0x6d,0x6f,0x64,0x65,0x6c])][_0xa40eb0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x214905,_0x1eb766[_0xa40eb0([0x6d,0x6f,0x64,0x65,0x6c])][_0xa40eb0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x214905,_0x1eb766[_0xa40eb0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa40eb0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a691e(){return window[_0xa40eb0([0x67,0x6c,0x6f,0x62])]&&window[_0xa40eb0([0x67,0x6c,0x6f,0x62])][_0xa40eb0([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0xa1c571(_0x2c99cc){const _0x35dad8=_0x1ec3c4();_0x1eb766[_0x35dad8]=_0xa40eb0([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])+_0x2c99cc,_0x2c99cc!=_0xa40eb0([0x56,0x61,0x6c,0x69,0x64])&&_0x5f3d5f();}function _0x1ec3c4(){const _0x45f01d=window[_0xa40eb0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa40eb0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa40eb0([0x6e,0x6f,0x77])]())[_0xa40eb0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa40eb0([0x2e]),'');let _0x362e5=_0xa40eb0([0x61]);for(let _0x589b86=0x0;_0x589b86<_0x45f01d[_0xa40eb0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x589b86+=0x2){let _0x3b4043=window[_0xa40eb0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45f01d[_0xa40eb0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x589b86,_0x589b86+0x2));_0x3b4043>=_0x58177c[_0xa40eb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b4043-=_0x58177c[_0xa40eb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x362e5+=_0x58177c[_0x3b4043];}return _0x362e5;}function _0x3d6ff5(){const _0xf3ef09=_0x316d7e[_0xa40eb0([0x73,0x70,0x6c,0x69,0x74])](_0xa40eb0([0x2e]));if(0x3!=_0xf3ef09[_0xa40eb0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15fe3a(_0xf3ef09[0x1]);function _0x15fe3a(_0x5f58c8){const _0x5d249c=_0x11cafb(_0x5f58c8);return _0x5d249c&&_0x764f44()?_0x5d249c:null;function _0x764f44(){const _0x4f45be=_0x5d249c[_0xa40eb0([0x6a,0x74,0x69])],_0x32c4b4=window[_0xa40eb0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f45be[_0xa40eb0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f45be[_0xa40eb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x464090={..._0x5d249c,[_0xa40eb0([0x6a,0x74,0x69])]:_0x4f45be[_0xa40eb0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f45be[_0xa40eb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x464090[_0xa40eb0([0x76,0x63])],_0x58faa9(_0x464090)==_0x32c4b4;}}}async function _0x39a33e(){let _0x6a8e5=!0x0;try{const _0x364eef=_0x316d7e[_0xa40eb0([0x73,0x70,0x6c,0x69,0x74])](_0xa40eb0([0x2e])),[_0xb08f48,_0x48a82e,_0x2db03d]=_0x364eef;return _0x412750(_0xb08f48),await _0x332979(_0xb08f48,_0x48a82e,_0x2db03d),_0x6a8e5;}catch{return!0x1;}function _0x412750(_0xed603){const _0x4c9444=_0x11cafb(_0xed603);_0x4c9444&&_0x4c9444[_0xa40eb0([0x61,0x6c,0x67])]==_0xa40eb0([0x45,0x53,0x32,0x35,0x36])||(_0x6a8e5=!0x1);}async function _0x332979(_0x261933,_0x42b3dc,_0x5823d0){const _0x9f3104=window[_0xa40eb0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa40eb0([0x66,0x72,0x6f,0x6d])](_0x3039a6(_0x5823d0),_0x1a27e4=>_0x1a27e4[_0xa40eb0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ddf8e=new window[(_0xa40eb0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa40eb0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x261933+_0xa40eb0([0x2e])+_0x42b3dc),_0x1c6534=window[_0xa40eb0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa40eb0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c6534)return;const _0x2b4e63=await _0x1c6534[_0xa40eb0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa40eb0([0x6a,0x77,0x6b]),_0x3d3611,{[_0xa40eb0([0x6e,0x61,0x6d,0x65])]:_0xa40eb0([0x45,0x43,0x44,0x53,0x41]),[_0xa40eb0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa40eb0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa40eb0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c6534[_0xa40eb0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa40eb0([0x6e,0x61,0x6d,0x65])]:_0xa40eb0([0x45,0x43,0x44,0x53,0x41]),[_0xa40eb0([0x68,0x61,0x73,0x68])]:{[_0xa40eb0([0x6e,0x61,0x6d,0x65])]:_0xa40eb0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b4e63,_0x9f3104,_0x2ddf8e)||(_0x6a8e5=!0x1);}}function _0x11cafb(_0x3eb018){return _0x3eb018[_0xa40eb0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa40eb0([0x65,0x79]))?JSON[_0xa40eb0([0x70,0x61,0x72,0x73,0x65])](_0x3039a6(_0x3eb018)):null;}function _0x3039a6(_0x4efa63){return window[_0xa40eb0([0x61,0x74,0x6f,0x62])](_0x4efa63[_0xa40eb0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa40eb0([0x2b]))[_0xa40eb0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa40eb0([0x2f])));}function _0x58faa9(_0x19cc10){let _0x5beb11=0x1505;function _0x5dcbdf(_0x52c1ad){for(let _0x577fa2=0x0;_0x577fa2<_0x52c1ad[_0xa40eb0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x577fa2++){const _0x253c8f=_0x52c1ad[_0xa40eb0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x577fa2);_0x5beb11=(_0x5beb11<<0x5)+_0x5beb11+_0x253c8f,_0x5beb11&=_0x5beb11;}}function _0x5d1206(_0x50f406){Array[_0xa40eb0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x50f406)?_0x50f406[_0xa40eb0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d1206):_0x50f406&&typeof _0x50f406==_0xa40eb0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa40eb0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x50f406)[_0xa40eb0([0x73,0x6f,0x72,0x74])]()[_0xa40eb0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x50dbae,_0x904bf7])=>{_0x5dcbdf(_0x50dbae),_0x5d1206(_0x904bf7);}):_0x5dcbdf(window[_0xa40eb0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x50f406));}return _0x5d1206(_0x19cc10),_0x5beb11>>>0x0;}function _0x394c38(_0x148a11){return _0x148a11[_0xa40eb0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa40eb0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa40eb0([0x30]));}function _0x423044(_0x19f022){return _0x19f022[_0xa40eb0([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa40eb0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa40eb0([0x6a,0x6f,0x69,0x6e])]('');}function _0x214905(){}function _0xa40eb0(_0x4e1e79){return _0x4e1e79['map'](_0x19d590=>String['fromCharCode'](_0x19d590))['join']('');}_0xa1c571(await _0x4a8dfe());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0xcec6d,{outlineDefinitions:_0x5a6b75,outlineChanges:_0x398832}){this['_currentOutlineDefinitions']=_0x5a6b75,this['view']['sync'](_0x398832);}['_setActiveViewItem'](_0xd043d){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0xd043d]&&(this['view']['activeItemIndex']=_0xd043d);}['_handleItemSelected'](_0x12503b){const _0x37400d=this['_currentOutlineDefinitions'][_0x12503b]['modelElement'];this['editor']['model']['change'](_0x1e9ad7=>{_0x1e9ad7['setSelection'](_0x37400d,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x12503b);}['_updateActiveDefinitionOnViewportChange'](){const _0x3dac84=this['editor'];let _0xc9c481;for(const _0x34cac5 of _0x3dac84['model']['document']['getRootNames']()){const _0x5bae87=_0x3dac84['editing']['view']['getDomRoot'](_0x34cac5),_0x4d315f=_0x5bae87&&new _0x28e7c3(_0x5bae87)['getVisible']();if(_0x4d315f){const _0x3cfdea=new _0x28e7c3(_0x5e7de1['window'])['getIntersection'](_0x4d315f);_0x3cfdea&&(_0xc9c481=_0x3cfdea['top']+0.25*_0x3cfdea['height']);}}if(void 0x0===_0xc9c481)return;const _0x7fcebb=k(_0x3dac84['editing'],this['_currentOutlineDefinitions'],_0xc9c481);_0x7fcebb?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x7fcebb)):this['_setActiveViewItem'](-0x1);}}function k(_0xa66e81,_0x555f1c,_0x2cf531,_0x27fa94=0x0,_0x4add35=_0x555f1c['length']-0x1){const _0x5f1b2f=Math['floor'](_0x27fa94+(_0x4add35-_0x27fa94)/0x2);if(_0x4add35>=_0x27fa94){const _0xee53ff=_0x555f1c[_0x5f1b2f],_0x49fdd4=_0xa66e81['mapper']['toViewElement'](_0xee53ff['modelElement']);if(!_0x49fdd4)return null;const _0x39f1a8=_0xa66e81['view']['domConverter']['mapViewToDom'](_0x49fdd4);return new _0x28e7c3(_0x39f1a8)['bottom']>_0x2cf531?k(_0xa66e81,_0x555f1c,_0x2cf531,_0x27fa94,_0x5f1b2f-0x1):k(_0xa66e81,_0x555f1c,_0x2cf531,_0x5f1b2f+0x1,_0x4add35);}return _0x5f1b2f<0x0?null:_0x555f1c[_0x5f1b2f];}class K extends _0x489317{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[I,x];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2a06f5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x135957;for(const _0x1b12cd in _0x2a06f5){const _0x259981=_0x1b12cd,_0x450d92=_0x2a06f5[_0x259981];if('documentOutlineLicenseKeyValid'==_0x450d92||'documentOutlineLicenseKeyInvalid'==_0x450d92||'documentOutlineLicenseKeyExpired'==_0x450d92||'documentOutlineLicenseKeyDomainLimit'==_0x450d92||'documentOutlineLicenseKeyNotAllowed'==_0x450d92||'documentOutlineLicenseKeyEvaluationLimit'==_0x450d92||'documentOutlineLicenseKeyUsageLimit'==_0x450d92){delete _0x2a06f5[_0x259981],_0x135957=_0x450d92,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x135957&&_0x2a06f5['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x135957&&_0x2a06f5['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x135957&&_0x2a06f5['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x135957&&_0x2a06f5['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x135957&&_0x2a06f5['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x135957&&_0x2a06f5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class E extends _0x1224e7{['execute'](){this['editor']['model']['change'](_0x47c3ff=>{this['editor']['model']['insertObject'](_0x47c3ff['createElement']('tableOfContents'));});}['refresh'](){const _0x109bb1=this['editor']['model'],_0xd307fc=_0x109bb1['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0xd307fc&&_0x109bb1['schema']['findAllowedParent'](_0xd307fc,'tableOfContents'));}}class N extends _0x489317{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x364a58=this['editor'];if(_0x364a58['config']['get']('headingId.modelAttributeName'))return;(function(_0x38f5b0){const _0x4f13dd=new Map();if(_0x38f5b0)return _0x38f5b0['forEach'](_0x52ff61=>{'paragraph'!==_0x52ff61['model']&&_0x4f13dd['set'](_0x52ff61['view'],_0x52ff61['model']);}),_0x4f13dd['get']('h1')||_0x4f13dd['set']('h1','heading1'),_0x4f13dd;return _0x4f13dd;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x39f8ed,_0x2ba99c)=>{this['_customUpcastHeadingsConversion'](_0x2ba99c),this['_customDataDowncastHeadingsConversion'](_0x39f8ed),_0x364a58['model']['schema']['isRegistered'](_0x39f8ed)&&_0x364a58['model']['schema']['extend'](_0x39f8ed,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0xdc5069){this['editor']['conversion']['for']('upcast')['add'](_0x4440cd=>_0x4440cd['on']('element:'+_0xdc5069,(_0x2f920e,_0x9a9ed3,_0x16075d)=>{const {consumable:_0x4031ef,writer:_0x54a4d5}=_0x16075d,_0x2665f1=_0x9a9ed3['viewItem']['getAttribute']('id'),_0x199a0d=_0x9a9ed3['modelRange']['getContainedElement']();if(_0x199a0d)return _0x2665f1&&_0x2665f1['length']||_0x199a0d['hasAttribute']('headingId')?void(_0x4031ef['consume'](_0x9a9ed3['viewItem'],{'attributes':['id']})&&_0x54a4d5['setAttribute']('headingId',_0x2665f1,_0x199a0d)):(_0x4031ef['consume'](_0x9a9ed3['viewItem'],{'attributes':['id']}),void _0x54a4d5['setAttribute']('headingId',_0x5b6801(),_0x199a0d));},{'priority':_0x379e14['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x369fec){this['editor']['conversion']['for']('downcast')['add'](_0x53feb2=>_0x53feb2['on']('attribute:headingId:'+_0x369fec,(_0x5f197a,_0x46b165,_0x14b9de)=>{if(!_0x14b9de['consumable']['consume'](_0x46b165['item'],_0x5f197a['name']))return;const _0x1b9d2f=_0x46b165['item']['getAttribute']('headingId'),_0x2777ab=_0x14b9de['mapper']['toViewElement'](_0x46b165['item']);_0x14b9de['writer']['setAttribute']('id',_0x1b9d2f,_0x2777ab);}));}['_registerHeadingIdAttributePostfixer'](){const _0x57e0d1=this['editor'],_0x57120e=new Set(),_0x30d04e=new Set();function _0x89c217(_0x314423,_0x459afb){const _0x47b4ae=_0x5b6801();return _0x30d04e['add'](_0x47b4ae),_0x314423['setAttribute']('headingId',_0x47b4ae,_0x459afb),_0x47b4ae;}function _0x43fb2d(_0x36d2f5,_0x654f14){_0x36d2f5['removeAttribute']('headingId',_0x654f14);}_0x57e0d1['model']['document']['registerPostFixer'](_0x2f6fb6=>{const _0x41ad2d=_0x57e0d1['model']['document']['differ']['getChanges']();let _0x20b994=!0x1;for(const _0x4ecdf9 of _0x41ad2d)if('insert'==_0x4ecdf9['type']&&_0x4ecdf9['name']){if(T(_0x4ecdf9['name'])){const _0x35f788=_0x4ecdf9['attributes']['get']('headingId');'string'==typeof _0x35f788?_0x57120e['has'](_0x35f788)?(_0x89c217(_0x2f6fb6,_0x4ecdf9['position']['nodeAfter']),_0x20b994=!0x0):_0x30d04e['add'](_0x35f788):(_0x89c217(_0x2f6fb6,_0x4ecdf9['position']['nodeAfter']),_0x20b994=!0x0);}else'string'==typeof _0x4ecdf9['attributes']['get']('headingId')&&(_0x43fb2d(_0x2f6fb6,_0x4ecdf9['position']['nodeAfter']),_0x20b994=!0x0);}else{if('remove'==_0x4ecdf9['type']){const _0x653f73=_0x4ecdf9['attributes']['get']('headingId');'string'==typeof _0x653f73&&_0x57120e['delete'](_0x653f73);}}return _0x20b994;}),_0x57e0d1['model']['document']['on']('change',()=>{_0x30d04e['forEach'](_0x35f30d=>_0x57120e['add'](_0x35f30d)),_0x30d04e['clear']();});}}function T(_0xacdc0){return!!_0xacdc0['match'](/heading\d/);}class A extends _0x489317{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x43367b,I,N];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x32982b){super(_0x32982b),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0xf9f7d7=this['editor'],_0x30ba66=_0xf9f7d7['editing']['view']['document'];_0xf9f7d7['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0xf9f7d7['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x30ba66,'click',(_0x53304e,_0x2738d0)=>{if(!_0x2738d0['target'])return;const _0x53ee4d=_0x2738d0['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x53ee4d)&&(_0x2738d0['domEvent']['preventDefault'](),_0x53304e['stop'](),this['_handleScrollToHeading'](_0x53ee4d));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0xf9f7d7['commands']['add']('insertTableOfContents',new E(_0xf9f7d7)),(_0xf9f7d7['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0xad09f6,_0x520e3e)=>{this['_currentOutlineDefinitions']=_0x520e3e['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0xf9f7d7['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){!async function(_0x5432d5){const _0x19c165=_0x45dd5d([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]),_0x1439a6=0x6b9b05fd,_0x431752=0x6b9c802d^_0x1439a6,_0x501ce9=window[_0x45dd5d([0x44,0x61,0x74,0x65])][_0x45dd5d([0x6e,0x6f,0x77])](),_0x1b2c0a=_0x5432d5[_0x45dd5d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b110d=new window[(_0x45dd5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe4921e=>{_0x1b2c0a[_0x45dd5d([0x6f,0x6e,0x63,0x65])](_0x45dd5d([0x72,0x65,0x61,0x64,0x79]),_0xe4921e);}),_0x22dba2={[_0x45dd5d([0x6b,0x74,0x79])]:_0x45dd5d([0x45,0x43]),[_0x45dd5d([0x75,0x73,0x65])]:_0x45dd5d([0x73,0x69,0x67]),[_0x45dd5d([0x63,0x72,0x76])]:_0x45dd5d([0x50,0x2d,0x32,0x35,0x36]),[_0x45dd5d([0x78])]:_0x45dd5d([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]),[_0x45dd5d([0x79])]:_0x45dd5d([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]),[_0x45dd5d([0x61,0x6c,0x67])]:_0x45dd5d([0x45,0x53,0x32,0x35,0x36])},_0x265145=_0x1b2c0a[_0x45dd5d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x45dd5d([0x67,0x65,0x74])](_0x45dd5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x74898d(){let _0x33ef36,_0x3d5a25=null,_0x2687cf=null;try{if(_0x265145==_0x45dd5d([0x47,0x50,0x4c]))return _0x45dd5d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x33ef36=_0x4f4072(),!_0x33ef36)return _0x45dd5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x33ef36[_0x45dd5d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2687cf=_0x380d1f(_0x33ef36[_0x45dd5d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x33ef36[_0x45dd5d([0x6a,0x74,0x69])])),await _0x64fe00()?_0x2be494()?_0x1d1210()?_0x45dd5d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d4b00()?(_0x33ef36[_0x45dd5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45dd5d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d5a25=_0x1d50d9(_0x45dd5d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x41a6e7()):_0x45dd5d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x45dd5d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x45dd5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x45dd5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d1210(){const _0x13002c=[_0x45dd5d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x45dd5d([0x74,0x72,0x69,0x61,0x6c])][_0x45dd5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33ef36[_0x45dd5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x501ce9/0x3e8:0xe10*_0x431752;return _0x33ef36[_0x45dd5d([0x65,0x78,0x70])]<_0x13002c;}function _0x2be494(){const _0x3901d2=_0x33ef36[_0x45dd5d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3901d2&&(!!_0x3901d2[_0x45dd5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45dd5d([0x2a]))||(!!_0x3901d2[_0x45dd5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45dd5d([0x54,0x4f,0x43]))||(!!_0x3901d2[_0x45dd5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45dd5d([0x50,0x50]))||!(!_0x3901d2[_0x45dd5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45dd5d([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x1453ac()))));}function _0x4d4b00(){const _0x3ed27e=_0x33ef36[_0x45dd5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ed27e||0x0==_0x3ed27e[_0x45dd5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x115483}=new URL(window[_0x45dd5d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ed27e[_0x45dd5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x115483))return!0x0;const _0x4eaf8d=_0x115483[_0x45dd5d([0x73,0x70,0x6c,0x69,0x74])](_0x45dd5d([0x2e]));return _0x3ed27e[_0x45dd5d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4db29a=>_0x4db29a[_0x45dd5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45dd5d([0x2a])))[_0x45dd5d([0x6d,0x61,0x70])](_0x12ad92=>_0x12ad92[_0x45dd5d([0x73,0x70,0x6c,0x69,0x74])](_0x45dd5d([0x2e])))[_0x45dd5d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47f8cf=>_0x47f8cf[_0x45dd5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4eaf8d[_0x45dd5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45dd5d([0x6d,0x61,0x70])](_0xf57ae1=>Array(_0x4eaf8d[_0x45dd5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf57ae1[_0x45dd5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45dd5d([0x66,0x69,0x6c,0x6c])](_0xf57ae1[0x0]===_0x45dd5d([0x2a])?_0x45dd5d([0x2a]):'')[_0x45dd5d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf57ae1))[_0x45dd5d([0x73,0x6f,0x6d,0x65])](_0xd79397=>_0x4eaf8d[_0x45dd5d([0x65,0x76,0x65,0x72,0x79])]((_0x2924ef,_0x178071)=>_0xd79397[_0x178071]===_0x2924ef||_0xd79397[_0x178071]===_0x45dd5d([0x2a])));}function _0x41a6e7(){return _0x3d5a25&&_0x2687cf?new window[(_0x45dd5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa04434,_0xba7388)=>{_0x3d5a25[_0x45dd5d([0x74,0x68,0x65,0x6e])](_0xa04434,_0xba7388),_0x2687cf[_0x45dd5d([0x74,0x68,0x65,0x6e])](_0x3f7e6b=>{_0x3f7e6b!=_0x45dd5d([0x56,0x61,0x6c,0x69,0x64])&&_0xa04434(_0x3f7e6b);},_0xba7388);}):_0x3d5a25||_0x2687cf||_0x45dd5d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x380d1f(_0x16a8e7,_0x591c13){return new window[(_0x45dd5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2976a1=>{if(_0x4a68ba())return _0x2976a1(_0x45dd5d([0x56,0x61,0x6c,0x69,0x64]));_0x3286e2(),_0x1b2c0a[_0x45dd5d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x45dd5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe93ce1=!0x1;const _0x4b2f38=_0x5b6801();function _0x36a640(_0x2ddc4a){return!!_0x2ddc4a&&(typeof _0x2ddc4a===_0x45dd5d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ddc4a===_0x45dd5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ddc4a[_0x45dd5d([0x74,0x68,0x65,0x6e])]===_0x45dd5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ddc4a[_0x45dd5d([0x63,0x61,0x74,0x63,0x68])]===_0x45dd5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d54e8(_0x5d43f8){_0x15a517(_0x5d43f8)[_0x45dd5d([0x74,0x68,0x65,0x6e])](_0xe839b7=>{if(!_0xe839b7||_0xe839b7[_0x45dd5d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x45dd5d([0x6f,0x6b]))return _0x45dd5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x805756(_0x5f3625(_0x4b2f38+_0x591c13))!=_0xe839b7[_0x45dd5d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x45dd5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x45dd5d([0x56,0x61,0x6c,0x69,0x64]);})[_0x45dd5d([0x74,0x68,0x65,0x6e])](_0x3eeee9=>(_0x17ea31(),_0x3eeee9),()=>{const _0x1c9943=_0x248a79();return null==_0x1c9943?(_0x17ea31(),_0x45dd5d([0x56,0x61,0x6c,0x69,0x64])):_0x45dd5d(_0x501ce9-_0x1c9943>(0x4f9781fd^_0x1439a6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x45dd5d([0x74,0x68,0x65,0x6e])](_0x2976a1)[_0x45dd5d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2976a1(_0x45dd5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x48c6b4=0x6badeb7d^_0x1439a6;function _0x17ea31(){const _0x415428=_0x45dd5d([0x6c,0x6c,0x63,0x74,0x2d])+_0x805756(_0x5f3625(_0x16a8e7)),_0xdeb63b=_0x3f2029(_0x805756(window[_0x45dd5d([0x4d,0x61,0x74,0x68])][_0x45dd5d([0x63,0x65,0x69,0x6c])](_0x501ce9/_0x48c6b4)));window[_0x45dd5d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45dd5d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x415428,_0xdeb63b);}function _0x248a79(){const _0x25db5b=_0x45dd5d([0x6c,0x6c,0x63,0x74,0x2d])+_0x805756(_0x5f3625(_0x16a8e7)),_0x2e5cd3=window[_0x45dd5d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45dd5d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25db5b);return _0x2e5cd3?window[_0x45dd5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f2029(_0x2e5cd3),0x10)*_0x48c6b4:null;}function _0x15a517(_0x41c987){return new window[(_0x45dd5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34d1fe,_0x5da91b)=>{_0x41c987[_0x45dd5d([0x74,0x68,0x65,0x6e])](_0x34d1fe,_0x5da91b),window[_0x45dd5d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5da91b,0x6b9ad13d^_0x1439a6);});}}_0x1b2c0a[_0x45dd5d([0x6f,0x6e])](_0x45dd5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x517255,_0x4ace8d)=>{if(_0x4ace8d[0x0]!=_0x16a8e7)return _0x2976a1(_0x45dd5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ace8d[0x1]={..._0x4ace8d[0x1],[_0x45dd5d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b2f38};},{[_0x45dd5d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45dd5d([0x68,0x69,0x67,0x68])}),_0x1b2c0a[_0x45dd5d([0x6f,0x6e])](_0x45dd5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x422d79=>{_0x36a640(_0x422d79[_0x45dd5d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe93ce1=!0x0,_0x5d54e8(_0x422d79[_0x45dd5d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x45dd5d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45dd5d([0x6c,0x6f,0x77])}),_0x2b110d[_0x45dd5d([0x74,0x68,0x65,0x6e])](()=>{_0xe93ce1||_0x2976a1(_0x45dd5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a68ba(){return _0x1b2c0a[_0x45dd5d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45dd5d([0x76,0x69,0x65,0x77])][_0x45dd5d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x45dd5d([0x61,0x75,0x74,0x6f]);}function _0x3286e2(){_0x1b2c0a[_0x45dd5d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45dd5d([0x76,0x69,0x65,0x77])][_0x45dd5d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45dd5d([0x61,0x75,0x74,0x6f]);}}function _0x1d50d9(_0x56f85e){const _0x45841f=[new window[(_0x45dd5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d5c96=>setTimeout(_0x4d5c96,0x6b923b31^_0x1439a6)),_0x2b110d[_0x45dd5d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x45dd5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1099a8=>{let _0x972f9b=0x0;_0x1b2c0a[_0x45dd5d([0x6d,0x6f,0x64,0x65,0x6c])][_0x45dd5d([0x6f,0x6e])](_0x45dd5d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3a7bb6,_0x19ef17)=>{_0x19ef17[0x0][_0x45dd5d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x972f9b++,_0x972f9b==(0x6b9b0015^_0x1439a6)&&(_0x1099a8(),_0x3a7bb6[_0x45dd5d([0x6f,0x66,0x66])]());});}))];return window[_0x45dd5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45dd5d([0x72,0x61,0x63,0x65])](_0x45841f)[_0x45dd5d([0x74,0x68,0x65,0x6e])](()=>_0x56f85e);}async function _0x4ed46c(){await _0x2b110d,_0x1b2c0a[_0x45dd5d([0x6d,0x6f,0x64,0x65,0x6c])][_0x45dd5d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x131330,_0x1b2c0a[_0x45dd5d([0x6d,0x6f,0x64,0x65,0x6c])][_0x45dd5d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x131330,_0x1b2c0a[_0x45dd5d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x45dd5d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1453ac(){return window[_0x45dd5d([0x67,0x6c,0x6f,0x62])]&&window[_0x45dd5d([0x67,0x6c,0x6f,0x62])][_0x45dd5d([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x4b1f1e(_0x58e6dd){const _0x1f584e=_0x3c01b6();_0x1b2c0a[_0x1f584e]=_0x45dd5d([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])+_0x58e6dd,_0x58e6dd!=_0x45dd5d([0x56,0x61,0x6c,0x69,0x64])&&_0x4ed46c();}function _0x3c01b6(){const _0x42bea1=window[_0x45dd5d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x45dd5d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x45dd5d([0x6e,0x6f,0x77])]())[_0x45dd5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x45dd5d([0x2e]),'');let _0x5af5de=_0x45dd5d([0x6d]);for(let _0x51eefb=0x0;_0x51eefb<_0x42bea1[_0x45dd5d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51eefb+=0x2){let _0x3f1583=window[_0x45dd5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42bea1[_0x45dd5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51eefb,_0x51eefb+0x2));_0x3f1583>=_0x19c165[_0x45dd5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f1583-=_0x19c165[_0x45dd5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5af5de+=_0x19c165[_0x3f1583];}return _0x5af5de;}function _0x4f4072(){const _0x5e256e=_0x265145[_0x45dd5d([0x73,0x70,0x6c,0x69,0x74])](_0x45dd5d([0x2e]));if(0x3!=_0x5e256e[_0x45dd5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35109f(_0x5e256e[0x1]);function _0x35109f(_0x2461ab){const _0x13e20b=_0x3346b3(_0x2461ab);return _0x13e20b&&_0x49dd69()?_0x13e20b:null;function _0x49dd69(){const _0x35cfc6=_0x13e20b[_0x45dd5d([0x6a,0x74,0x69])],_0x3e9272=window[_0x45dd5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35cfc6[_0x45dd5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35cfc6[_0x45dd5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x409061={..._0x13e20b,[_0x45dd5d([0x6a,0x74,0x69])]:_0x35cfc6[_0x45dd5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x35cfc6[_0x45dd5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x409061[_0x45dd5d([0x76,0x63])],_0x5f3625(_0x409061)==_0x3e9272;}}}async function _0x64fe00(){let _0x41d12c=!0x0;try{const _0x192410=_0x265145[_0x45dd5d([0x73,0x70,0x6c,0x69,0x74])](_0x45dd5d([0x2e])),[_0x4368c1,_0x361534,_0x464e23]=_0x192410;return _0x7200c9(_0x4368c1),await _0x5b475b(_0x4368c1,_0x361534,_0x464e23),_0x41d12c;}catch{return!0x1;}function _0x7200c9(_0x2d9fd9){const _0x5ec425=_0x3346b3(_0x2d9fd9);_0x5ec425&&_0x5ec425[_0x45dd5d([0x61,0x6c,0x67])]==_0x45dd5d([0x45,0x53,0x32,0x35,0x36])||(_0x41d12c=!0x1);}async function _0x5b475b(_0x49a6d1,_0x5adc64,_0x4db36b){const _0x5f1a38=window[_0x45dd5d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x45dd5d([0x66,0x72,0x6f,0x6d])](_0x44e527(_0x4db36b),_0x5eda5c=>_0x5eda5c[_0x45dd5d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x139999=new window[(_0x45dd5d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x45dd5d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49a6d1+_0x45dd5d([0x2e])+_0x5adc64),_0x1c09b7=window[_0x45dd5d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x45dd5d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c09b7)return;const _0x1d1145=await _0x1c09b7[_0x45dd5d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x45dd5d([0x6a,0x77,0x6b]),_0x22dba2,{[_0x45dd5d([0x6e,0x61,0x6d,0x65])]:_0x45dd5d([0x45,0x43,0x44,0x53,0x41]),[_0x45dd5d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x45dd5d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x45dd5d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c09b7[_0x45dd5d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x45dd5d([0x6e,0x61,0x6d,0x65])]:_0x45dd5d([0x45,0x43,0x44,0x53,0x41]),[_0x45dd5d([0x68,0x61,0x73,0x68])]:{[_0x45dd5d([0x6e,0x61,0x6d,0x65])]:_0x45dd5d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d1145,_0x5f1a38,_0x139999)||(_0x41d12c=!0x1);}}function _0x3346b3(_0x4b259d){return _0x4b259d[_0x45dd5d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x45dd5d([0x65,0x79]))?JSON[_0x45dd5d([0x70,0x61,0x72,0x73,0x65])](_0x44e527(_0x4b259d)):null;}function _0x44e527(_0x2013b4){return window[_0x45dd5d([0x61,0x74,0x6f,0x62])](_0x2013b4[_0x45dd5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x45dd5d([0x2b]))[_0x45dd5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x45dd5d([0x2f])));}function _0x5f3625(_0x1c8835){let _0x1cdff5=0x1505;function _0x1dc828(_0x38d7e8){for(let _0x9771bc=0x0;_0x9771bc<_0x38d7e8[_0x45dd5d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9771bc++){const _0x2b5789=_0x38d7e8[_0x45dd5d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9771bc);_0x1cdff5=(_0x1cdff5<<0x5)+_0x1cdff5+_0x2b5789,_0x1cdff5&=_0x1cdff5;}}function _0x39d56a(_0x16b7c7){Array[_0x45dd5d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16b7c7)?_0x16b7c7[_0x45dd5d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39d56a):_0x16b7c7&&typeof _0x16b7c7==_0x45dd5d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x45dd5d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16b7c7)[_0x45dd5d([0x73,0x6f,0x72,0x74])]()[_0x45dd5d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x42a16c,_0x1baa3d])=>{_0x1dc828(_0x42a16c),_0x39d56a(_0x1baa3d);}):_0x1dc828(window[_0x45dd5d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16b7c7));}return _0x39d56a(_0x1c8835),_0x1cdff5>>>0x0;}function _0x805756(_0x516264){return _0x516264[_0x45dd5d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x45dd5d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x45dd5d([0x30]));}function _0x3f2029(_0x45beec){return _0x45beec[_0x45dd5d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x45dd5d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x45dd5d([0x6a,0x6f,0x69,0x6e])]('');}function _0x131330(){}function _0x45dd5d(_0x464a14){return _0x464a14['map'](_0x207826=>String['fromCharCode'](_0x207826))['join']('');}_0x4b1f1e(await _0x74898d());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x3c4ea1=>{'$graveyard'!==_0x3c4ea1['rootName']&&this['editor']['editing']['reconvertItem'](_0x3c4ea1);});}['_trackNewToCElements'](){for(const _0x53bb41 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x53bb41['type']||'tableOfContents'!==_0x53bb41['name'])return;this['_tableOfContentsElements']['add'](_0x53bb41['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x51061a=this['editor']['conversion'];_0x51061a['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x51061a['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x35ba16,{writer:_0x47cc8d})=>this['_createTableOfContents'](_0x47cc8d,!0x0)}),_0x51061a['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x28f500,{writer:_0x5bc1a4})=>{this['_tableOfContentsElements']['add'](_0x28f500);const _0x3fadfe=this['_createTableOfContents'](_0x5bc1a4);return _0x47d9c1(_0x3fadfe,_0x5bc1a4,{'label':C(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'](_0x1edfdd,_0x28b925=!0x1){const {locale:_0x33348a}=this['editor'],_0x2c196d=_0x1edfdd['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x28b925&&{'data-table-of-contents-label':C(_0x33348a,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x28b925&&_0x1edfdd['insert'](_0x1edfdd['createPositionAt'](_0x2c196d,'end'),_0x1edfdd['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x1edfdd['createText'](C(_0x33348a,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x2e508d=_0x28b925?'':'['+C(_0x33348a,'Empty\x20heading')+']';let _0x443337=_0x2c196d;return this['_currentOutlineDefinitions']['forEach']((_0x1d7097,_0x52dcfb,_0x28f79e)=>{const _0x3c8f5e=this['editor']['model']['hasContent'](_0x1d7097['modelElement'],{'ignoreWhitespaces':!0x0}),_0x36e6c2=_0x3c8f5e?_0x1d7097['text']:_0x2e508d,_0xb05326=_0x1d7097['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x2437fe=_0x1edfdd['createContainerElement']('a',{'href':'#'+_0xb05326,...!_0x28b925&&{'tabindex':'-1'}},[_0x1edfdd['createText'](_0x36e6c2)]),_0x120e68=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x1edfdd['setCustomProperty']('tableOfContentsHeadingIndex',_0x52dcfb,_0x2437fe);const _0x1e1045=_0x1edfdd['createContainerElement']('li',null,[_0x3c8f5e||!_0x28b925&&_0x120e68?_0x2437fe:_0x1edfdd['createText']('')]),_0x5b531b=_0x52dcfb?_0x28f79e[_0x52dcfb-0x1]['level']:0x0,_0x412718=Math['abs'](_0x1d7097['level']-_0x5b531b);if(_0x1d7097['level']>_0x5b531b){const _0xb53a7b=P(_0x1e1045,_0x412718,_0x1edfdd);_0x1edfdd['insert'](_0x1edfdd['createPositionAt'](_0x443337,'end'),_0xb53a7b);}else{const _0x304efd=function(_0x402d9e,_0x27cbcd){return _0x402d9e['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x57af9a=>_0x57af9a['is']('element','ol'))[_0x27cbcd];}(_0x443337,_0x412718);_0x1edfdd['insert'](_0x1edfdd['createPositionAt'](_0x304efd,'end'),_0x1e1045);}_0x443337=_0x1e1045;}),_0x2c196d;}['_handleScrollToHeading'](_0x28a781){const _0x57bd88=this['_currentOutlineDefinitions'][_0x28a781]['modelElement'];this['editor']['model']['change'](_0x34141e=>{_0x34141e['setSelection'](_0x57bd88,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x248205,_0x22d995)=>{const _0x5f324a=_0x22d995['mapper'],_0x421001=_0x5f324a['findMappedViewAncestor'](_0x22d995['viewPosition']),_0x31161b=_0x5f324a['toModelElement'](_0x421001);_0x31161b['is']('element','tableOfContents')&&(_0x22d995['modelPosition']=this['editor']['model']['createPositionAt'](_0x31161b,0x0),_0x248205['stop']());};}}function P(_0x1c5574,_0x4ba66a,_0x505c55){return 0x1===_0x4ba66a?_0x505c55['createContainerElement']('ol',null,[_0x1c5574]):_0x505c55['createContainerElement']('ol',null,[_0x505c55['createContainerElement']('li',null,[P(_0x1c5574,_0x4ba66a-0x1,_0x505c55)])]);}class D extends _0x489317{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5f2a56=this['editor'];_0x5f2a56['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x20d876=this['_createButton'](_0x56ee74);return _0x20d876['tooltip']=!0x0,_0x20d876;}),_0x5f2a56['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x276716)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x311a4d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a7576;for(const _0x4c6ac0 in _0x311a4d){const _0x11b746=_0x4c6ac0,_0x2e1196=_0x311a4d[_0x11b746];if('tableOfContentsLicenseKeyValid'==_0x2e1196||'tableOfContentsLicenseKeyInvalid'==_0x2e1196||'tableOfContentsLicenseKeyExpired'==_0x2e1196||'tableOfContentsLicenseKeyDomainLimit'==_0x2e1196||'tableOfContentsLicenseKeyNotAllowed'==_0x2e1196||'tableOfContentsLicenseKeyEvaluationLimit'==_0x2e1196||'tableOfContentsLicenseKeyUsageLimit'==_0x2e1196){delete _0x311a4d[_0x11b746],_0x4a7576=_0x2e1196,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x4a7576&&_0x311a4d['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x4a7576&&_0x311a4d['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x4a7576&&_0x311a4d['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x4a7576&&_0x311a4d['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x4a7576&&_0x311a4d['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x4a7576&&_0x311a4d['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x22f25a){const _0x276ae7=this['editor'],_0x36c20e=_0x276ae7['locale'],_0x423433=_0x276ae7['commands']['get']('insertTableOfContents'),_0x2380f4=new _0x22f25a(_0x36c20e);return _0x2380f4['set']({'label':C(_0x36c20e,'Table\x20of\x20contents'),'icon':_0x48a989}),_0x2380f4['bind']('isEnabled')['to'](_0x423433,'isEnabled'),this['listenTo'](_0x2380f4,'execute',()=>{_0x276ae7['execute']('insertTableOfContents'),_0x276ae7['editing']['view']['focus']();}),_0x2380f4;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class H extends _0x489317{static get['requires'](){return[A,D];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{K as DocumentOutline,x as DocumentOutlineUI,I as DocumentOutlineUtils,N as HeadingId,H as TableOfContents,E as TableOfContentsCommand,A as TableOfContentsEditing,D as TableOfContentsUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-document-outline",
3
- "version": "48.0.0-alpha.10",
3
+ "version": "48.0.0-alpha.11",
4
4
  "description": "Document outline feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,13 +21,13 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.0.0-alpha.10",
25
- "@ckeditor/ckeditor5-engine": "48.0.0-alpha.10",
26
- "@ckeditor/ckeditor5-heading": "48.0.0-alpha.10",
27
- "@ckeditor/ckeditor5-icons": "48.0.0-alpha.10",
28
- "@ckeditor/ckeditor5-ui": "48.0.0-alpha.10",
29
- "@ckeditor/ckeditor5-utils": "48.0.0-alpha.10",
30
- "@ckeditor/ckeditor5-widget": "48.0.0-alpha.10",
24
+ "@ckeditor/ckeditor5-core": "48.0.0-alpha.11",
25
+ "@ckeditor/ckeditor5-engine": "48.0.0-alpha.11",
26
+ "@ckeditor/ckeditor5-heading": "48.0.0-alpha.11",
27
+ "@ckeditor/ckeditor5-icons": "48.0.0-alpha.11",
28
+ "@ckeditor/ckeditor5-ui": "48.0.0-alpha.11",
29
+ "@ckeditor/ckeditor5-utils": "48.0.0-alpha.11",
30
+ "@ckeditor/ckeditor5-widget": "48.0.0-alpha.11",
31
31
  "es-toolkit": "1.45.1"
32
32
  },
33
33
  "files": [