@ckeditor/ckeditor5-document-outline 48.8.1-alpha.4 → 49.0.0-alpha.1
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.
- package/LICENSE.md +1 -1
- package/dist/augmentation.d.ts +31 -31
- package/dist/documentoutline/documentoutlineui.d.ts +42 -43
- package/dist/documentoutline/documentoutlineutils.d.ts +58 -60
- package/dist/documentoutline/ui/documentoutlineitemview.d.ts +43 -43
- package/dist/documentoutline/ui/documentoutlineview.d.ts +49 -49
- package/dist/documentoutline/utils.d.ts +11 -11
- package/dist/documentoutline.d.ts +91 -91
- package/dist/index-content.css +33 -31
- package/dist/index-editor.css +143 -132
- package/dist/index.css +157 -138
- package/dist/index.d.ts +16 -14
- package/dist/index.js +1 -1
- package/dist/legacyerrors.d.ts +0 -4
- package/dist/tableofcontents/headingid.d.ts +22 -22
- package/dist/tableofcontents/tableofcontentscommand.d.ts +17 -17
- package/dist/tableofcontents/tableofcontentsediting.d.ts +39 -40
- package/dist/tableofcontents/tableofcontentsui.d.ts +23 -23
- package/dist/tableofcontents.d.ts +68 -68
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/utils/common-translations.d.ts +6 -6
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x4bcd3e,Command as _0x429ef8}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x503350,throttle as _0x17ce26}from'es-toolkit/compat';import{ModelText as _0x1ef277,ModelTreeWalker as _0x11e75f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0xa3b9a3,diffToChanges as _0x4775fb,scrollAncestorsToShowTarget as _0x4ec294,CKEditorError as _0x14d477,global as _0x57be6a,Rect as _0x526217,uid as _0x462a17,priorities as _0x4c2a59}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x442f21,ButtonView as _0x47e791,MenuBarMenuListItemButtonView as _0x5a4b67}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x29fb16,toWidget as _0x159e01}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x51f915}from'@ckeditor/ckeditor5-icons/dist/index.js';function I(_0x22791d){let _0x7af832='';for(const _0x57143e of _0x22791d['getChildren']())_0x57143e instanceof _0x1ef277&&(_0x7af832+=_0x57143e['data']);return _0x7af832;}class DocumentOutlineUtils extends _0x4bcd3e{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x49c717=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x3f2287=[];_0x49c717['model']['document']['on']('change',_0x503350(()=>{const _0xb0347d=_0x3f2287;_0x3f2287=this['_getOutlineDefinitions']();const _0x529945=_0xa3b9a3(_0xb0347d,_0x3f2287,(_0x1f7db7,_0x57b6c8)=>_0x1f7db7['level']===_0x57b6c8['level']&&_0x1f7db7['text']===_0x57b6c8['text']&&_0x1f7db7['modelElement']===_0x57b6c8['modelElement']),_0x247a09=_0x4775fb(_0x529945,_0x3f2287),_0x23ebf5=this['_getActiveHeading'](),_0x528ccd=_0x3f2287['findIndex'](_0x15e9bf=>_0x15e9bf['modelElement']===_0x23ebf5);_0x247a09['length']&&this['fire']('change',{'outlineDefinitions':_0x3f2287,'activeItemIndex':_0x528ccd,'outlineChanges':_0x247a09}),this['fire']('activeItemIndex',{'index':_0x528ccd});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x428d70=this['editor'],_0x5cc8a4=[],_0x11526c=this['_headingNames'];for(const _0x5ab8c4 of _0x428d70['model']['document']['getRootNames']())_0x25ef80(_0x428d70['model']['document']['getRoot'](_0x5ab8c4));function _0x25ef80(_0x47b9cb){for(const _0x105673 of _0x47b9cb['getChildren']())_0x105673['is']('element')&&(_0x11526c['includes'](_0x105673['name'])&&_0x5cc8a4['push']({'level':_0x11526c['indexOf'](_0x105673['name'])+0x1,'text':I(_0x105673),'modelElement':_0x105673}),_0x25ef80(_0x105673));}return _0x5cc8a4;}['_getActiveHeading'](){const _0x1ff3f5=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x77a5f5=new _0x11e75f({'direction':'backward','startPosition':_0x1ff3f5});for(const _0x3add30 of _0x77a5f5)if(_0x3add30['item']['is']('element')&&this['_headingNames']['includes'](_0x3add30['item']['name']))return _0x3add30['item'];}['_getHeadingNames'](){const _0x3a61b2=this['editor']['config']['get']('documentOutline.headings');return _0x3a61b2||function(_0x516053){const _0x5c76b4=_0x516053['config']['get']('heading.options');return _0x5c76b4?_0x5c76b4['reduce']((_0xdaf511,_0x649630)=>('paragraph'!==_0x649630['model']&&_0xdaf511['push'](_0x649630['model']),_0xdaf511),[]):_0x516053['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x213680=this['editor'],_0x8acf2b=['h1','h2','h3','h4','h5','h6'],_0x34fd71=[];for(const _0x207b28 of _0x8acf2b){const _0x538739=_0x213680['editing']['view']['domConverter']['domToView'](document['createElement'](_0x207b28)),_0x55f18b=_0x213680['data']['toModel'](_0x538739)['getChild'](0x0);_0x55f18b?.['is']('element')&&_0x34fd71['push'](_0x55f18b['name']);}this['_headingNames']=_0x34fd71;}}function C(_0x2d37e4,_0x41c73c){const t=_0x2d37e4['t'];switch(_0x41c73c){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 _0x41c73c;}}class DocumentOutlineItemView extends _0x442f21{constructor(_0x22e772,_0x254aa6=!0x1){super(_0x22e772);const _0x20ec5c=this['bindTemplate'],_0x48dd4b=_0x254aa6?'['+C(_0x22e772,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x5a779d=>!_0x5a779d),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x20ec5c['to']('level',_0x29b813=>'ck-document-outline__item_level-'+_0x29b813),_0x20ec5c['if']('isActive','ck-document-outline__item_active'),_0x20ec5c['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x20ec5c['to']('text')},'children':[{'text':_0x20ec5c['to']('text',_0x2b8da9=>_0x2b8da9||_0x48dd4b)}],'on':{'click':_0x20ec5c['to']('click')}});}}class DocumentOutlineView extends _0x442f21{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x5c6085,_0x41f159=!0x1,_0xe03b5c){super(_0x5c6085),this['showEmptyHeadingText']=_0x41f159,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0xe03b5c,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x139bab,_0x73e9ab,_0xa33bc0,_0x562b43)=>{this['_setActiveItem'](_0x562b43,_0xa33bc0);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x5c6085['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x5c6085,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x5f45a6){_0x5f45a6['forEach'](_0x389f99=>{'insert'==_0x389f99['type']?this['_insertItem'](_0x389f99['index'],..._0x389f99['values']):'delete'==_0x389f99['type']&&this['_deleteItem'](_0x389f99['index'],_0x389f99['howMany']);});}['_setActiveItem'](_0x26128e,_0x2c52a){if(-0x1!==_0x26128e){const _0x38c4b0=this['items']['get'](_0x26128e);_0x38c4b0&&(_0x38c4b0['isActive']=!0x1);}-0x1!==_0x2c52a&&(this['items']['get'](_0x2c52a)['isActive']=!0x0,this['_scrollToItem'](_0x2c52a));}['_insertItem'](_0xffb1a,..._0x4f102f){const _0x5ba280=_0x4f102f['map']((_0x56f06e,_0x2b8b65)=>{const _0xa7efa4=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0xa7efa4['text']=_0x56f06e['text'],_0xa7efa4['level']=_0x56f06e['level'],_0xffb1a+_0x2b8b65===this['activeItemIndex']&&(_0xa7efa4['isActive']=!0x0),_0xa7efa4;});this['items']['addMany'](_0x5ba280,_0xffb1a);}['_deleteItem'](_0x233ed5,_0x13a632){do{this['items']['remove'](_0x233ed5);}while(--_0x13a632);}['_handleItemClick'](_0x55b349){const _0x4861fd=this['items']['getIndex'](_0x55b349['source']);this['fire']('itemSelected',_0x4861fd);}['_scrollToItem'](_0x4534c1){_0x4ec294(this['items']['get'](_0x4534c1)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class DocumentOutlineUI extends _0x4bcd3e{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x330b95){super(_0x330b95),this['view']=new DocumentOutlineView(_0x330b95['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x17ce26(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x3f68b9=this['editor'],_0x4448a5=_0x3f68b9['plugins']['get']('DocumentOutlineUtils');let _0x17940b=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x3f68b9['config']['get']('documentOutline.container'))throw new _0x14d477('document-outline-container-not-provided',{'editor':_0x3f68b9});_0x3f68b9['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x4448a5['on']('change',this['_handleOutlineChange']['bind'](this)),_0x4448a5['on']('activeItemIndex',(_0x56e477,{index:_0xb4dcd4})=>this['_setActiveViewItem'](_0xb4dcd4)),this['view']['on']('itemSelected',(_0x25897c,_0x3ed621)=>{_0x17940b=!0x0,this['_handleItemSelected'](_0x3ed621);}),this['view']['listenTo'](_0x57be6a['document'],'scroll',()=>{_0x17940b?_0x17940b=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x57be6a['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x285c0f){const _0x1f29f6=_0x5a1e91([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]),_0x20c2a8=0x1cb264a3,_0x4701aa=0x1cb5ee23^_0x20c2a8,_0x4afa06=window[_0x5a1e91([0x44,0x61,0x74,0x65])][_0x5a1e91([0x6e,0x6f,0x77])](),_0x5532b0=_0x285c0f[_0x5a1e91([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x436929=new window[(_0x5a1e91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e7c58=>{_0x5532b0[_0x5a1e91([0x6f,0x6e,0x63,0x65])](_0x5a1e91([0x72,0x65,0x61,0x64,0x79]),_0x5e7c58);}),_0x259249={[_0x5a1e91([0x6b,0x74,0x79])]:_0x5a1e91([0x45,0x43]),[_0x5a1e91([0x75,0x73,0x65])]:_0x5a1e91([0x73,0x69,0x67]),[_0x5a1e91([0x63,0x72,0x76])]:_0x5a1e91([0x50,0x2d,0x32,0x35,0x36]),[_0x5a1e91([0x78])]:_0x5a1e91([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]),[_0x5a1e91([0x79])]:_0x5a1e91([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]),[_0x5a1e91([0x61,0x6c,0x67])]:_0x5a1e91([0x45,0x53,0x32,0x35,0x36])},_0x572fbe=_0x5532b0[_0x5a1e91([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a1e91([0x67,0x65,0x74])](_0x5a1e91([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8fa1a(){let _0x4f250b,_0x59cf56=null,_0x180bd2=null;try{if(_0x572fbe==_0x5a1e91([0x47,0x50,0x4c]))return _0x5a1e91([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f250b=_0x45c671(),!_0x4f250b)return _0x5a1e91([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f250b[_0x5a1e91([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x180bd2=_0x4266b4(_0x4f250b[_0x5a1e91([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f250b[_0x5a1e91([0x6a,0x74,0x69])])),await _0x3e3adb()?_0x4389e7()?_0x411077()?_0x5a1e91([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45b162()?(_0x4f250b[_0x5a1e91([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a1e91([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59cf56=_0x51264e(_0x5a1e91([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c36ec()):_0x5a1e91([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a1e91([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a1e91([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5a1e91([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x411077(){const _0x19f71d=[_0x5a1e91([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a1e91([0x74,0x72,0x69,0x61,0x6c])][_0x5a1e91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f250b[_0x5a1e91([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4afa06/0x3e8:0xe10*_0x4701aa;return _0x4f250b[_0x5a1e91([0x65,0x78,0x70])]<_0x19f71d;}function _0x4389e7(){const _0x268aac=_0x4f250b[_0x5a1e91([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x268aac&&(!!_0x268aac[_0x5a1e91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a1e91([0x2a]))||(!!_0x268aac[_0x5a1e91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a1e91([0x44,0x4f]))||(!!_0x268aac[_0x5a1e91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a1e91([0x50,0x50]))||!(!_0x268aac[_0x5a1e91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a1e91([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x45c3bb()))));}function _0x45b162(){const _0x4c1329=_0x4f250b[_0x5a1e91([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c1329||0x0==_0x4c1329[_0x5a1e91([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x526235}=new URL(window[_0x5a1e91([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c1329[_0x5a1e91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x526235))return!0x0;const _0x2f97b2=_0x526235[_0x5a1e91([0x73,0x70,0x6c,0x69,0x74])](_0x5a1e91([0x2e]));return _0x4c1329[_0x5a1e91([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1075b3=>_0x1075b3[_0x5a1e91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a1e91([0x2a])))[_0x5a1e91([0x6d,0x61,0x70])](_0x37112e=>_0x37112e[_0x5a1e91([0x73,0x70,0x6c,0x69,0x74])](_0x5a1e91([0x2e])))[_0x5a1e91([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd77309=>_0xd77309[_0x5a1e91([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2f97b2[_0x5a1e91([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a1e91([0x6d,0x61,0x70])](_0x396345=>Array(_0x2f97b2[_0x5a1e91([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x396345[_0x5a1e91([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a1e91([0x66,0x69,0x6c,0x6c])](_0x396345[0x0]===_0x5a1e91([0x2a])?_0x5a1e91([0x2a]):'')[_0x5a1e91([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x396345))[_0x5a1e91([0x73,0x6f,0x6d,0x65])](_0x4cdc66=>_0x2f97b2[_0x5a1e91([0x65,0x76,0x65,0x72,0x79])]((_0x2220b6,_0x596650)=>_0x4cdc66[_0x596650]===_0x2220b6||_0x4cdc66[_0x596650]===_0x5a1e91([0x2a])));}function _0x4c36ec(){return _0x59cf56&&_0x180bd2?new window[(_0x5a1e91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fa6af,_0x42dfd7)=>{_0x59cf56[_0x5a1e91([0x74,0x68,0x65,0x6e])](_0x4fa6af,_0x42dfd7),_0x180bd2[_0x5a1e91([0x74,0x68,0x65,0x6e])](_0x13a90a=>{_0x13a90a!=_0x5a1e91([0x56,0x61,0x6c,0x69,0x64])&&_0x4fa6af(_0x13a90a);},_0x42dfd7);}):_0x59cf56||_0x180bd2||_0x5a1e91([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4266b4(_0x3f7452,_0x54dee0){return new window[(_0x5a1e91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x252446=>{if(_0x246cdf())return _0x252446(_0x5a1e91([0x56,0x61,0x6c,0x69,0x64]));_0x3c78da(),_0x5532b0[_0x5a1e91([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a1e91([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x21dee9=!0x1;const _0xd5f07c=_0x462a17();function _0x52adf8(_0x17a105){return!!_0x17a105&&(typeof _0x17a105===_0x5a1e91([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x17a105===_0x5a1e91([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x17a105[_0x5a1e91([0x74,0x68,0x65,0x6e])]===_0x5a1e91([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x17a105[_0x5a1e91([0x63,0x61,0x74,0x63,0x68])]===_0x5a1e91([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x450835(_0x172257){_0x5e43e7(_0x172257)[_0x5a1e91([0x74,0x68,0x65,0x6e])](_0x24fd5f=>{if(!_0x24fd5f||_0x24fd5f[_0x5a1e91([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a1e91([0x6f,0x6b]))return _0x5a1e91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34ba00(_0x484509(_0xd5f07c+_0x54dee0))!=_0x24fd5f[_0x5a1e91([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a1e91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a1e91([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a1e91([0x74,0x68,0x65,0x6e])](_0x2c9922=>(_0x217ab6(),_0x2c9922),()=>{const _0x15fd3b=_0xc9e775();return null==_0x15fd3b?(_0x217ab6(),_0x5a1e91([0x56,0x61,0x6c,0x69,0x64])):_0x5a1e91(_0x4afa06-_0x15fd3b>(0x38bee0a3^_0x20c2a8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a1e91([0x74,0x68,0x65,0x6e])](_0x252446)[_0x5a1e91([0x63,0x61,0x74,0x63,0x68])](()=>{_0x252446(_0x5a1e91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33ea1f=0x1c848a23^_0x20c2a8;function _0x217ab6(){const _0x201255=_0x5a1e91([0x6c,0x6c,0x63,0x74,0x2d])+_0x34ba00(_0x484509(_0x3f7452)),_0x35409a=_0x2a71c4(_0x34ba00(window[_0x5a1e91([0x4d,0x61,0x74,0x68])][_0x5a1e91([0x63,0x65,0x69,0x6c])](_0x4afa06/_0x33ea1f)));window[_0x5a1e91([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a1e91([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x201255,_0x35409a);}function _0xc9e775(){const _0x487e2f=_0x5a1e91([0x6c,0x6c,0x63,0x74,0x2d])+_0x34ba00(_0x484509(_0x3f7452)),_0x5dde17=window[_0x5a1e91([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a1e91([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x487e2f);return _0x5dde17?window[_0x5a1e91([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a71c4(_0x5dde17),0x10)*_0x33ea1f:null;}function _0x5e43e7(_0x4c7989){return new window[(_0x5a1e91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49b774,_0x18a3c3)=>{_0x4c7989[_0x5a1e91([0x74,0x68,0x65,0x6e])](_0x49b774,_0x18a3c3),window[_0x5a1e91([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18a3c3,0x1cb3b063^_0x20c2a8);});}}_0x5532b0[_0x5a1e91([0x6f,0x6e])](_0x5a1e91([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14db11,_0x1053a2)=>{if(_0x1053a2[0x0]!=_0x3f7452)return _0x252446(_0x5a1e91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1053a2[0x1]={..._0x1053a2[0x1],[_0x5a1e91([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd5f07c};},{[_0x5a1e91([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a1e91([0x68,0x69,0x67,0x68])}),_0x5532b0[_0x5a1e91([0x6f,0x6e])](_0x5a1e91([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c942a=>{_0x52adf8(_0x2c942a[_0x5a1e91([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x21dee9=!0x0,_0x450835(_0x2c942a[_0x5a1e91([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a1e91([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a1e91([0x6c,0x6f,0x77])}),_0x436929[_0x5a1e91([0x74,0x68,0x65,0x6e])](()=>{_0x21dee9||_0x252446(_0x5a1e91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x246cdf(){return _0x5532b0[_0x5a1e91([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a1e91([0x76,0x69,0x65,0x77])][_0x5a1e91([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a1e91([0x61,0x75,0x74,0x6f]);}function _0x3c78da(){_0x5532b0[_0x5a1e91([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a1e91([0x76,0x69,0x65,0x77])][_0x5a1e91([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a1e91([0x61,0x75,0x74,0x6f]);}}function _0x51264e(_0x2ea727){const _0x11b90b=[new window[(_0x5a1e91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d7bd7=>setTimeout(_0x3d7bd7,0x1cbb5a6f^_0x20c2a8)),_0x436929[_0x5a1e91([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a1e91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a1250=>{let _0x2f603e=0x0;_0x5532b0[_0x5a1e91([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a1e91([0x6f,0x6e])](_0x5a1e91([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x507226,_0x285708)=>{_0x285708[0x0][_0x5a1e91([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f603e++,_0x2f603e==(0x1cb2614b^_0x20c2a8)&&(_0x2a1250(),_0x507226[_0x5a1e91([0x6f,0x66,0x66])]());});}))];return window[_0x5a1e91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a1e91([0x72,0x61,0x63,0x65])](_0x11b90b)[_0x5a1e91([0x74,0x68,0x65,0x6e])](()=>_0x2ea727);}async function _0x192e11(){await _0x436929,_0x5532b0[_0x5a1e91([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a1e91([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42b7d2,_0x5532b0[_0x5a1e91([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a1e91([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42b7d2,_0x5532b0[_0x5a1e91([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a1e91([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45c3bb(){return window[_0x5a1e91([0x67,0x6c,0x6f,0x62])]&&window[_0x5a1e91([0x67,0x6c,0x6f,0x62])][_0x5a1e91([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x5dbc99(_0x173764){const _0x12b3bf=_0x2077d8();_0x5532b0[_0x12b3bf]=_0x5a1e91([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])+_0x173764,_0x173764!=_0x5a1e91([0x56,0x61,0x6c,0x69,0x64])&&_0x192e11();}function _0x2077d8(){const _0x178147=window[_0x5a1e91([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a1e91([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a1e91([0x6e,0x6f,0x77])]())[_0x5a1e91([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a1e91([0x2e]),'');let _0x3e3642=_0x5a1e91([0x61]);for(let _0x28492c=0x0;_0x28492c<_0x178147[_0x5a1e91([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28492c+=0x2){let _0x2c179c=window[_0x5a1e91([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x178147[_0x5a1e91([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28492c,_0x28492c+0x2));_0x2c179c>=_0x1f29f6[_0x5a1e91([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2c179c-=_0x1f29f6[_0x5a1e91([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e3642+=_0x1f29f6[_0x2c179c];}return _0x3e3642;}function _0x45c671(){const _0x2b37fa=_0x572fbe[_0x5a1e91([0x73,0x70,0x6c,0x69,0x74])](_0x5a1e91([0x2e]));if(0x3!=_0x2b37fa[_0x5a1e91([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e3e0e(_0x2b37fa[0x1]);function _0x3e3e0e(_0x2f45dc){const _0x9ffea9=_0x3cb2a6(_0x2f45dc);return _0x9ffea9&&_0x4df9fe()?_0x9ffea9:null;function _0x4df9fe(){const _0x165229=_0x9ffea9[_0x5a1e91([0x6a,0x74,0x69])],_0x3d9105=window[_0x5a1e91([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x165229[_0x5a1e91([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x165229[_0x5a1e91([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e523a={..._0x9ffea9,[_0x5a1e91([0x6a,0x74,0x69])]:_0x165229[_0x5a1e91([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x165229[_0x5a1e91([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e523a[_0x5a1e91([0x76,0x63])],_0x484509(_0x4e523a)==_0x3d9105;}}}async function _0x3e3adb(){let _0x183a2c=!0x0;try{const _0x17f743=_0x572fbe[_0x5a1e91([0x73,0x70,0x6c,0x69,0x74])](_0x5a1e91([0x2e])),[_0x5ed41e,_0x172768,_0x1b1ecf]=_0x17f743;return _0x2aeb7e(_0x5ed41e),await _0x328c87(_0x5ed41e,_0x172768,_0x1b1ecf),_0x183a2c;}catch{return!0x1;}function _0x2aeb7e(_0xc96278){const _0x3c8a0d=_0x3cb2a6(_0xc96278);_0x3c8a0d&&_0x3c8a0d[_0x5a1e91([0x61,0x6c,0x67])]==_0x5a1e91([0x45,0x53,0x32,0x35,0x36])||(_0x183a2c=!0x1);}async function _0x328c87(_0x5eaeea,_0xd68b4d,_0x43e6b7){const _0x221d5d=window[_0x5a1e91([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a1e91([0x66,0x72,0x6f,0x6d])](_0xad318b(_0x43e6b7),_0x2a197a=>_0x2a197a[_0x5a1e91([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x577542=new window[(_0x5a1e91([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a1e91([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5eaeea+_0x5a1e91([0x2e])+_0xd68b4d),_0x1c8df6=window[_0x5a1e91([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a1e91([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c8df6)return;const _0x51b9ec=await _0x1c8df6[_0x5a1e91([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a1e91([0x6a,0x77,0x6b]),_0x259249,{[_0x5a1e91([0x6e,0x61,0x6d,0x65])]:_0x5a1e91([0x45,0x43,0x44,0x53,0x41]),[_0x5a1e91([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a1e91([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a1e91([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c8df6[_0x5a1e91([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a1e91([0x6e,0x61,0x6d,0x65])]:_0x5a1e91([0x45,0x43,0x44,0x53,0x41]),[_0x5a1e91([0x68,0x61,0x73,0x68])]:{[_0x5a1e91([0x6e,0x61,0x6d,0x65])]:_0x5a1e91([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51b9ec,_0x221d5d,_0x577542)||(_0x183a2c=!0x1);}}function _0x3cb2a6(_0x2fd88e){return _0x2fd88e[_0x5a1e91([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a1e91([0x65,0x79]))?JSON[_0x5a1e91([0x70,0x61,0x72,0x73,0x65])](_0xad318b(_0x2fd88e)):null;}function _0xad318b(_0x56aa4f){return window[_0x5a1e91([0x61,0x74,0x6f,0x62])](_0x56aa4f[_0x5a1e91([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a1e91([0x2b]))[_0x5a1e91([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a1e91([0x2f])));}function _0x484509(_0x67a422){let _0x1ed577=0x1505;function _0x49391d(_0x220a8b){for(let _0x4181bd=0x0;_0x4181bd<_0x220a8b[_0x5a1e91([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4181bd++){const _0x311f9e=_0x220a8b[_0x5a1e91([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4181bd);_0x1ed577=(_0x1ed577<<0x5)+_0x1ed577+_0x311f9e,_0x1ed577&=_0x1ed577;}}function _0x33e806(_0x4a5867){Array[_0x5a1e91([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a5867)?_0x4a5867[_0x5a1e91([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33e806):_0x4a5867&&typeof _0x4a5867==_0x5a1e91([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a1e91([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a5867)[_0x5a1e91([0x73,0x6f,0x72,0x74])]()[_0x5a1e91([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cf604,_0x409ba2])=>{_0x49391d(_0x2cf604),_0x33e806(_0x409ba2);}):_0x49391d(window[_0x5a1e91([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a5867));}return _0x33e806(_0x67a422),_0x1ed577>>>0x0;}function _0x34ba00(_0x1f3386){return _0x1f3386[_0x5a1e91([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a1e91([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a1e91([0x30]));}function _0x2a71c4(_0x38f5d2){return _0x38f5d2[_0x5a1e91([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a1e91([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a1e91([0x6a,0x6f,0x69,0x6e])]('');}function _0x42b7d2(){}function _0x5a1e91(_0x5b0718){return _0x5b0718['map'](_0x3af0f8=>String['fromCharCode'](_0x3af0f8))['join']('');}_0x5dbc99(await _0x8fa1a());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x5242dc,{outlineDefinitions:_0x39645a,outlineChanges:_0x1aca57}){this['_currentOutlineDefinitions']=_0x39645a,this['view']['sync'](_0x1aca57);}['_setActiveViewItem'](_0x3ef5ba){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x3ef5ba]&&(this['view']['activeItemIndex']=_0x3ef5ba);}['_handleItemSelected'](_0x17f1d0){const _0x5726b0=this['_currentOutlineDefinitions'][_0x17f1d0]['modelElement'];this['editor']['model']['change'](_0x446798=>{_0x446798['setSelection'](_0x5726b0,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x17f1d0);}['_updateActiveDefinitionOnViewportChange'](){const _0x3ce860=this['editor'];let _0x4630d2;for(const _0x4936ed of _0x3ce860['model']['document']['getRootNames']()){const _0x5967c3=_0x3ce860['editing']['view']['getDomRoot'](_0x4936ed),_0x36aef2=_0x5967c3&&new _0x526217(_0x5967c3)['getVisible']();if(_0x36aef2){const _0xca2e54=new _0x526217(_0x57be6a['window'])['getIntersection'](_0x36aef2);_0xca2e54&&(_0x4630d2=_0xca2e54['top']+0.25*_0xca2e54['height']);}}if(void 0x0===_0x4630d2)return;const _0x59470d=v(_0x3ce860['editing'],this['_currentOutlineDefinitions'],_0x4630d2);_0x59470d?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x59470d)):this['_setActiveViewItem'](-0x1);}}function v(_0x327e1d,_0x51b24c,_0x2604f3,_0x46d00a=0x0,_0x49353c=_0x51b24c['length']-0x1){const _0x5360ea=Math['floor'](_0x46d00a+(_0x49353c-_0x46d00a)/0x2);if(_0x49353c>=_0x46d00a){const _0x298588=_0x51b24c[_0x5360ea],_0x4f5353=_0x327e1d['mapper']['toViewElement'](_0x298588['modelElement']);if(!_0x4f5353)return null;const _0x4357eb=_0x327e1d['view']['domConverter']['mapViewToDom'](_0x4f5353);return new _0x526217(_0x4357eb)['bottom']>_0x2604f3?v(_0x327e1d,_0x51b24c,_0x2604f3,_0x46d00a,_0x5360ea-0x1):v(_0x327e1d,_0x51b24c,_0x2604f3,_0x5360ea+0x1,_0x49353c);}return _0x5360ea<0x0?null:_0x51b24c[_0x5360ea];}class DocumentOutline extends _0x4bcd3e{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[DocumentOutlineUtils,DocumentOutlineUI];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x392cec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b973b;for(const _0x4df3b9 in _0x392cec){const _0x1b9fcd=_0x4df3b9,_0x16e721=_0x392cec[_0x1b9fcd];if('documentOutlineLicenseKeyValid'==_0x16e721||'documentOutlineLicenseKeyInvalid'==_0x16e721||'documentOutlineLicenseKeyExpired'==_0x16e721||'documentOutlineLicenseKeyDomainLimit'==_0x16e721||'documentOutlineLicenseKeyNotAllowed'==_0x16e721||'documentOutlineLicenseKeyEvaluationLimit'==_0x16e721||'documentOutlineLicenseKeyUsageLimit'==_0x16e721){delete _0x392cec[_0x1b9fcd],_0x2b973b=_0x16e721,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x2b973b&&_0x392cec['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x2b973b&&_0x392cec['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x2b973b&&_0x392cec['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x2b973b&&_0x392cec['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x2b973b&&_0x392cec['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x2b973b&&_0x392cec['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends _0x429ef8{['execute'](){this['editor']['model']['change'](_0x391e8a=>{this['editor']['model']['insertObject'](_0x391e8a['createElement']('tableOfContents'));});}['refresh'](){const _0x63ddb9=this['editor']['model'],_0x1bf12c=_0x63ddb9['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x1bf12c&&_0x63ddb9['schema']['findAllowedParent'](_0x1bf12c,'tableOfContents'));}}class HeadingId extends _0x4bcd3e{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x312a06=this['editor'];if(_0x312a06['config']['get']('headingId.modelAttributeName'))return;(function(_0x2a502e){const _0x4ac7a6=new Map();if(_0x2a502e)return _0x2a502e['forEach'](_0xcb7662=>{'paragraph'!==_0xcb7662['model']&&_0x4ac7a6['set'](_0xcb7662['view'],_0xcb7662['model']);}),_0x4ac7a6['get']('h1')||_0x4ac7a6['set']('h1','heading1'),_0x4ac7a6;return _0x4ac7a6;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x4410aa,_0x49db88)=>{this['_customUpcastHeadingsConversion'](_0x49db88),this['_customDataDowncastHeadingsConversion'](_0x4410aa),_0x312a06['model']['schema']['isRegistered'](_0x4410aa)&&_0x312a06['model']['schema']['extend'](_0x4410aa,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x188419){this['editor']['conversion']['for']('upcast')['add'](_0x2429b7=>_0x2429b7['on']('element:'+_0x188419,(_0x2713a5,_0x4629df,_0x221abd)=>{const {consumable:_0x58547a,writer:_0x2102b6}=_0x221abd,_0x2c393a=_0x4629df['viewItem']['getAttribute']('id'),_0x575ab2=_0x4629df['modelRange']['getContainedElement']();if(_0x575ab2)return _0x2c393a&&_0x2c393a['length']||_0x575ab2['hasAttribute']('headingId')?void(_0x58547a['consume'](_0x4629df['viewItem'],{'attributes':['id']})&&_0x2102b6['setAttribute']('headingId',_0x2c393a,_0x575ab2)):(_0x58547a['consume'](_0x4629df['viewItem'],{'attributes':['id']}),void _0x2102b6['setAttribute']('headingId',_0x462a17(),_0x575ab2));},{'priority':_0x4c2a59['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x551ed4){this['editor']['conversion']['for']('downcast')['add'](_0x35d5e5=>_0x35d5e5['on']('attribute:headingId:'+_0x551ed4,(_0x6b10f1,_0x4263c4,_0x14d056)=>{if(!_0x14d056['consumable']['consume'](_0x4263c4['item'],_0x6b10f1['name']))return;const _0x5beae3=_0x4263c4['item']['getAttribute']('headingId'),_0x554917=_0x14d056['mapper']['toViewElement'](_0x4263c4['item']);_0x14d056['writer']['setAttribute']('id',_0x5beae3,_0x554917);}));}['_registerHeadingIdAttributePostfixer'](){const _0x4fa95d=this['editor'],_0x6a2829=new Set(),_0x2c1dfb=new Set();function _0x29ec0e(_0x4263d2,_0x5ec9df){const _0x42191a=_0x462a17();return _0x2c1dfb['add'](_0x42191a),_0x4263d2['setAttribute']('headingId',_0x42191a,_0x5ec9df),_0x42191a;}function _0x45f2de(_0x53869f,_0x2999d3){_0x53869f['removeAttribute']('headingId',_0x2999d3);}_0x4fa95d['model']['document']['registerPostFixer'](_0x3e2ac3=>{const _0x3f8be3=_0x4fa95d['model']['document']['differ']['getChanges']();let _0x621fe2=!0x1;for(const _0x22f9e3 of _0x3f8be3)if('insert'==_0x22f9e3['type']&&_0x22f9e3['name']){if(_(_0x22f9e3['name'])){const _0x25dcf9=_0x22f9e3['attributes']['get']('headingId');'string'==typeof _0x25dcf9?_0x6a2829['has'](_0x25dcf9)?(_0x29ec0e(_0x3e2ac3,_0x22f9e3['position']['nodeAfter']),_0x621fe2=!0x0):_0x2c1dfb['add'](_0x25dcf9):(_0x29ec0e(_0x3e2ac3,_0x22f9e3['position']['nodeAfter']),_0x621fe2=!0x0);}else'string'==typeof _0x22f9e3['attributes']['get']('headingId')&&(_0x45f2de(_0x3e2ac3,_0x22f9e3['position']['nodeAfter']),_0x621fe2=!0x0);}else{if('remove'==_0x22f9e3['type']){const _0x3f9a34=_0x22f9e3['attributes']['get']('headingId');'string'==typeof _0x3f9a34&&_0x6a2829['delete'](_0x3f9a34);}}return _0x621fe2;}),_0x4fa95d['model']['document']['on']('change',()=>{_0x2c1dfb['forEach'](_0x6b3ae3=>_0x6a2829['add'](_0x6b3ae3)),_0x2c1dfb['clear']();});}}function _(_0x2fd179){return!!_0x2fd179['match'](/heading\d/);}class TableOfContentsEditing extends _0x4bcd3e{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x29fb16,DocumentOutlineUtils,HeadingId];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x35901b){super(_0x35901b),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x100a6b=this['editor'],_0x533fbc=_0x100a6b['editing']['view']['document'];_0x100a6b['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x100a6b['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x533fbc,'click',(_0x3e7db8,_0x118d6e)=>{if(!_0x118d6e['target'])return;const _0x5bda3e=_0x118d6e['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x5bda3e)&&(_0x118d6e['domEvent']['preventDefault'](),_0x3e7db8['stop'](),this['_handleScrollToHeading'](_0x5bda3e));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x100a6b['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x100a6b));const _0x32473d=_0x100a6b['config']['get']('tableOfContents.headings');if(_0x32473d&&_0x32473d['length'])this['listenTo'](_0x100a6b['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x32473d),this['_updateTableOfContentsElements']();});else _0x100a6b['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x8fe356,_0x34edba)=>{this['_currentOutlineDefinitions']=_0x34edba['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x100a6b['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x8faec){const _0x204771=_0x552452([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]),_0x530e7c=0x6b9b05fd,_0xdab521=0x6b9c8f7d^_0x530e7c,_0x1eaea5=window[_0x552452([0x44,0x61,0x74,0x65])][_0x552452([0x6e,0x6f,0x77])](),_0x58b663=_0x8faec[_0x552452([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1aa485=new window[(_0x552452([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x120f55=>{_0x58b663[_0x552452([0x6f,0x6e,0x63,0x65])](_0x552452([0x72,0x65,0x61,0x64,0x79]),_0x120f55);}),_0x39c878={[_0x552452([0x6b,0x74,0x79])]:_0x552452([0x45,0x43]),[_0x552452([0x75,0x73,0x65])]:_0x552452([0x73,0x69,0x67]),[_0x552452([0x63,0x72,0x76])]:_0x552452([0x50,0x2d,0x32,0x35,0x36]),[_0x552452([0x78])]:_0x552452([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]),[_0x552452([0x79])]:_0x552452([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]),[_0x552452([0x61,0x6c,0x67])]:_0x552452([0x45,0x53,0x32,0x35,0x36])},_0x2a1111=_0x58b663[_0x552452([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x552452([0x67,0x65,0x74])](_0x552452([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x43578b(){let _0x2313a5,_0x3e0f39=null,_0x690df1=null;try{if(_0x2a1111==_0x552452([0x47,0x50,0x4c]))return _0x552452([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2313a5=_0x3f7261(),!_0x2313a5)return _0x552452([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2313a5[_0x552452([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x690df1=_0x11724d(_0x2313a5[_0x552452([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2313a5[_0x552452([0x6a,0x74,0x69])])),await _0x54940e()?_0x41d448()?_0x3ae9be()?_0x552452([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x508a5c()?(_0x2313a5[_0x552452([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x552452([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e0f39=_0x13d029(_0x552452([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x347896()):_0x552452([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x552452([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x552452([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x552452([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ae9be(){const _0x517bec=[_0x552452([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x552452([0x74,0x72,0x69,0x61,0x6c])][_0x552452([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2313a5[_0x552452([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1eaea5/0x3e8:0xe10*_0xdab521;return _0x2313a5[_0x552452([0x65,0x78,0x70])]<_0x517bec;}function _0x41d448(){const _0x354630=_0x2313a5[_0x552452([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x354630&&(!!_0x354630[_0x552452([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x552452([0x2a]))||(!!_0x354630[_0x552452([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x552452([0x54,0x4f,0x43]))||(!!_0x354630[_0x552452([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x552452([0x50,0x50]))||!(!_0x354630[_0x552452([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x552452([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x471042()))));}function _0x508a5c(){const _0x3c8833=_0x2313a5[_0x552452([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c8833||0x0==_0x3c8833[_0x552452([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x45e100}=new URL(window[_0x552452([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c8833[_0x552452([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45e100))return!0x0;const _0x133256=_0x45e100[_0x552452([0x73,0x70,0x6c,0x69,0x74])](_0x552452([0x2e]));return _0x3c8833[_0x552452([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e8f7c=>_0x3e8f7c[_0x552452([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x552452([0x2a])))[_0x552452([0x6d,0x61,0x70])](_0x2ddb62=>_0x2ddb62[_0x552452([0x73,0x70,0x6c,0x69,0x74])](_0x552452([0x2e])))[_0x552452([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x524aeb=>_0x524aeb[_0x552452([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x133256[_0x552452([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x552452([0x6d,0x61,0x70])](_0x233a9b=>Array(_0x133256[_0x552452([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x233a9b[_0x552452([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x552452([0x66,0x69,0x6c,0x6c])](_0x233a9b[0x0]===_0x552452([0x2a])?_0x552452([0x2a]):'')[_0x552452([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x233a9b))[_0x552452([0x73,0x6f,0x6d,0x65])](_0x52349f=>_0x133256[_0x552452([0x65,0x76,0x65,0x72,0x79])]((_0x2c8429,_0x291473)=>_0x52349f[_0x291473]===_0x2c8429||_0x52349f[_0x291473]===_0x552452([0x2a])));}function _0x347896(){return _0x3e0f39&&_0x690df1?new window[(_0x552452([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f0fd5,_0xd15ea8)=>{_0x3e0f39[_0x552452([0x74,0x68,0x65,0x6e])](_0x4f0fd5,_0xd15ea8),_0x690df1[_0x552452([0x74,0x68,0x65,0x6e])](_0xfcee20=>{_0xfcee20!=_0x552452([0x56,0x61,0x6c,0x69,0x64])&&_0x4f0fd5(_0xfcee20);},_0xd15ea8);}):_0x3e0f39||_0x690df1||_0x552452([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11724d(_0x4d7243,_0xa1adf4){return new window[(_0x552452([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ea03f=>{if(_0x2d9b59())return _0x5ea03f(_0x552452([0x56,0x61,0x6c,0x69,0x64]));_0xa86664(),_0x58b663[_0x552452([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x552452([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ebbcb=!0x1;const _0xc2453f=_0x462a17();function _0x38e2e6(_0x5b09ae){return!!_0x5b09ae&&(typeof _0x5b09ae===_0x552452([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b09ae===_0x552452([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b09ae[_0x552452([0x74,0x68,0x65,0x6e])]===_0x552452([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b09ae[_0x552452([0x63,0x61,0x74,0x63,0x68])]===_0x552452([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x139821(_0x4518b0){_0x1c53a6(_0x4518b0)[_0x552452([0x74,0x68,0x65,0x6e])](_0x58f2cf=>{if(!_0x58f2cf||_0x58f2cf[_0x552452([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x552452([0x6f,0x6b]))return _0x552452([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x511815(_0x3ddc72(_0xc2453f+_0xa1adf4))!=_0x58f2cf[_0x552452([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x552452([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x552452([0x56,0x61,0x6c,0x69,0x64]);})[_0x552452([0x74,0x68,0x65,0x6e])](_0x37b424=>(_0x4b355c(),_0x37b424),()=>{const _0x1ea5fd=_0x355dd9();return null==_0x1ea5fd?(_0x4b355c(),_0x552452([0x56,0x61,0x6c,0x69,0x64])):_0x552452(_0x1eaea5-_0x1ea5fd>(0x4f9781fd^_0x530e7c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x552452([0x74,0x68,0x65,0x6e])](_0x5ea03f)[_0x552452([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ea03f(_0x552452([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x42f47b=0x6badeb7d^_0x530e7c;function _0x4b355c(){const _0xb17bd1=_0x552452([0x6c,0x6c,0x63,0x74,0x2d])+_0x511815(_0x3ddc72(_0x4d7243)),_0x3c3cf8=_0x1694c9(_0x511815(window[_0x552452([0x4d,0x61,0x74,0x68])][_0x552452([0x63,0x65,0x69,0x6c])](_0x1eaea5/_0x42f47b)));window[_0x552452([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x552452([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb17bd1,_0x3c3cf8);}function _0x355dd9(){const _0x2727f5=_0x552452([0x6c,0x6c,0x63,0x74,0x2d])+_0x511815(_0x3ddc72(_0x4d7243)),_0x493e6d=window[_0x552452([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x552452([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2727f5);return _0x493e6d?window[_0x552452([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1694c9(_0x493e6d),0x10)*_0x42f47b:null;}function _0x1c53a6(_0x232da0){return new window[(_0x552452([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2501c1,_0x182c5f)=>{_0x232da0[_0x552452([0x74,0x68,0x65,0x6e])](_0x2501c1,_0x182c5f),window[_0x552452([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x182c5f,0x6b9ad13d^_0x530e7c);});}}_0x58b663[_0x552452([0x6f,0x6e])](_0x552452([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c3749,_0x513c79)=>{if(_0x513c79[0x0]!=_0x4d7243)return _0x5ea03f(_0x552452([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x513c79[0x1]={..._0x513c79[0x1],[_0x552452([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc2453f};},{[_0x552452([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x552452([0x68,0x69,0x67,0x68])}),_0x58b663[_0x552452([0x6f,0x6e])](_0x552452([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d1375=>{_0x38e2e6(_0x3d1375[_0x552452([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ebbcb=!0x0,_0x139821(_0x3d1375[_0x552452([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x552452([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x552452([0x6c,0x6f,0x77])}),_0x1aa485[_0x552452([0x74,0x68,0x65,0x6e])](()=>{_0x3ebbcb||_0x5ea03f(_0x552452([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2d9b59(){return _0x58b663[_0x552452([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x552452([0x76,0x69,0x65,0x77])][_0x552452([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x552452([0x61,0x75,0x74,0x6f]);}function _0xa86664(){_0x58b663[_0x552452([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x552452([0x76,0x69,0x65,0x77])][_0x552452([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x552452([0x61,0x75,0x74,0x6f]);}}function _0x13d029(_0x3a8c14){const _0x348c3c=[new window[(_0x552452([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e25e8=>setTimeout(_0x2e25e8,0x6b923b31^_0x530e7c)),_0x1aa485[_0x552452([0x74,0x68,0x65,0x6e])](()=>new window[(_0x552452([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a772d=>{let _0x63ab9a=0x0;_0x58b663[_0x552452([0x6d,0x6f,0x64,0x65,0x6c])][_0x552452([0x6f,0x6e])](_0x552452([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a3da5,_0x3d7155)=>{_0x3d7155[0x0][_0x552452([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x63ab9a++,_0x63ab9a==(0x6b9b0015^_0x530e7c)&&(_0x4a772d(),_0x4a3da5[_0x552452([0x6f,0x66,0x66])]());});}))];return window[_0x552452([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x552452([0x72,0x61,0x63,0x65])](_0x348c3c)[_0x552452([0x74,0x68,0x65,0x6e])](()=>_0x3a8c14);}async function _0x4af3a6(){await _0x1aa485,_0x58b663[_0x552452([0x6d,0x6f,0x64,0x65,0x6c])][_0x552452([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x474de4,_0x58b663[_0x552452([0x6d,0x6f,0x64,0x65,0x6c])][_0x552452([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x474de4,_0x58b663[_0x552452([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x552452([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x471042(){return window[_0x552452([0x67,0x6c,0x6f,0x62])]&&window[_0x552452([0x67,0x6c,0x6f,0x62])][_0x552452([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x15d1c3(_0x1a975d){const _0x2f884d=_0x7fae8e();_0x58b663[_0x2f884d]=_0x552452([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])+_0x1a975d,_0x1a975d!=_0x552452([0x56,0x61,0x6c,0x69,0x64])&&_0x4af3a6();}function _0x7fae8e(){const _0x39819b=window[_0x552452([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x552452([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x552452([0x6e,0x6f,0x77])]())[_0x552452([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x552452([0x2e]),'');let _0x578d6b=_0x552452([0x6d]);for(let _0x322a56=0x0;_0x322a56<_0x39819b[_0x552452([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x322a56+=0x2){let _0x1e174f=window[_0x552452([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39819b[_0x552452([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x322a56,_0x322a56+0x2));_0x1e174f>=_0x204771[_0x552452([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e174f-=_0x204771[_0x552452([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x578d6b+=_0x204771[_0x1e174f];}return _0x578d6b;}function _0x3f7261(){const _0x319f1b=_0x2a1111[_0x552452([0x73,0x70,0x6c,0x69,0x74])](_0x552452([0x2e]));if(0x3!=_0x319f1b[_0x552452([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1fb542(_0x319f1b[0x1]);function _0x1fb542(_0x421146){const _0x394258=_0x3f1f94(_0x421146);return _0x394258&&_0x552ca7()?_0x394258:null;function _0x552ca7(){const _0x563538=_0x394258[_0x552452([0x6a,0x74,0x69])],_0x495c79=window[_0x552452([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x563538[_0x552452([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x563538[_0x552452([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26931e={..._0x394258,[_0x552452([0x6a,0x74,0x69])]:_0x563538[_0x552452([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x563538[_0x552452([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26931e[_0x552452([0x76,0x63])],_0x3ddc72(_0x26931e)==_0x495c79;}}}async function _0x54940e(){let _0x428ec3=!0x0;try{const _0x385d5f=_0x2a1111[_0x552452([0x73,0x70,0x6c,0x69,0x74])](_0x552452([0x2e])),[_0xef0ce7,_0x2b7528,_0x388804]=_0x385d5f;return _0x5f0bac(_0xef0ce7),await _0x234e60(_0xef0ce7,_0x2b7528,_0x388804),_0x428ec3;}catch{return!0x1;}function _0x5f0bac(_0x454b07){const _0x49f6ae=_0x3f1f94(_0x454b07);_0x49f6ae&&_0x49f6ae[_0x552452([0x61,0x6c,0x67])]==_0x552452([0x45,0x53,0x32,0x35,0x36])||(_0x428ec3=!0x1);}async function _0x234e60(_0x32716d,_0xfc2f44,_0x355eda){const _0x4b348c=window[_0x552452([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x552452([0x66,0x72,0x6f,0x6d])](_0x2a2f80(_0x355eda),_0x586fb0=>_0x586fb0[_0x552452([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x283559=new window[(_0x552452([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x552452([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32716d+_0x552452([0x2e])+_0xfc2f44),_0x2835af=window[_0x552452([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x552452([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2835af)return;const _0x54aefa=await _0x2835af[_0x552452([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x552452([0x6a,0x77,0x6b]),_0x39c878,{[_0x552452([0x6e,0x61,0x6d,0x65])]:_0x552452([0x45,0x43,0x44,0x53,0x41]),[_0x552452([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x552452([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x552452([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2835af[_0x552452([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x552452([0x6e,0x61,0x6d,0x65])]:_0x552452([0x45,0x43,0x44,0x53,0x41]),[_0x552452([0x68,0x61,0x73,0x68])]:{[_0x552452([0x6e,0x61,0x6d,0x65])]:_0x552452([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54aefa,_0x4b348c,_0x283559)||(_0x428ec3=!0x1);}}function _0x3f1f94(_0x24f584){return _0x24f584[_0x552452([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x552452([0x65,0x79]))?JSON[_0x552452([0x70,0x61,0x72,0x73,0x65])](_0x2a2f80(_0x24f584)):null;}function _0x2a2f80(_0x58736a){return window[_0x552452([0x61,0x74,0x6f,0x62])](_0x58736a[_0x552452([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x552452([0x2b]))[_0x552452([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x552452([0x2f])));}function _0x3ddc72(_0x445f2a){let _0x15ab6a=0x1505;function _0x38eb60(_0x2a1648){for(let _0x49d87b=0x0;_0x49d87b<_0x2a1648[_0x552452([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49d87b++){const _0x21d6e4=_0x2a1648[_0x552452([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x49d87b);_0x15ab6a=(_0x15ab6a<<0x5)+_0x15ab6a+_0x21d6e4,_0x15ab6a&=_0x15ab6a;}}function _0x2db88b(_0x1acab1){Array[_0x552452([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1acab1)?_0x1acab1[_0x552452([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2db88b):_0x1acab1&&typeof _0x1acab1==_0x552452([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x552452([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1acab1)[_0x552452([0x73,0x6f,0x72,0x74])]()[_0x552452([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44ca7d,_0x28e274])=>{_0x38eb60(_0x44ca7d),_0x2db88b(_0x28e274);}):_0x38eb60(window[_0x552452([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1acab1));}return _0x2db88b(_0x445f2a),_0x15ab6a>>>0x0;}function _0x511815(_0x2bc8c0){return _0x2bc8c0[_0x552452([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x552452([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x552452([0x30]));}function _0x1694c9(_0x2ab136){return _0x2ab136[_0x552452([0x73,0x70,0x6c,0x69,0x74])]('')[_0x552452([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x552452([0x6a,0x6f,0x69,0x6e])]('');}function _0x474de4(){}function _0x552452(_0x29803e){return _0x29803e['map'](_0x530e19=>String['fromCharCode'](_0x530e19))['join']('');}_0x15d1c3(await _0x43578b());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x40a395=>{'$graveyard'!==_0x40a395['rootName']&&this['editor']['editing']['reconvertItem'](_0x40a395);});}['_trackNewToCElements'](){for(const _0x4ebc4d of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x4ebc4d['type']||'tableOfContents'!==_0x4ebc4d['name'])return;this['_tableOfContentsElements']['add'](_0x4ebc4d['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x349b41){const _0xf6ca12=this['editor'],_0x510dde=[];for(const _0x127979 of _0xf6ca12['model']['document']['getRootNames']())_0x5edd71(_0xf6ca12['model']['document']['getRoot'](_0x127979));function _0x5edd71(_0x3c0a25){for(const _0x5508c2 of _0x3c0a25['getChildren']())_0x5508c2['is']('element')&&(_0x349b41['includes'](_0x5508c2['name'])&&_0x510dde['push']({'level':_0x349b41['indexOf'](_0x5508c2['name'])+0x1,'text':I(_0x5508c2),'modelElement':_0x5508c2}),_0x5edd71(_0x5508c2));}return _0x510dde;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x1213ba=this['editor']['conversion'];_0x1213ba['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x1213ba['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x5e02c3,{writer:_0x209d85})=>this['_createTableOfContents'](_0x209d85,!0x0)}),_0x1213ba['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x2f1579,{writer:_0x3b0b86})=>{this['_tableOfContentsElements']['add'](_0x2f1579);const _0x129039=this['_createTableOfContents'](_0x3b0b86);return _0x159e01(_0x129039,_0x3b0b86,{'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'](_0x26a3d0,_0x36de82=!0x1){const {locale:_0xd7b953}=this['editor'],_0x139868=_0x26a3d0['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x36de82&&{'data-table-of-contents-label':C(_0xd7b953,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x36de82&&_0x26a3d0['insert'](_0x26a3d0['createPositionAt'](_0x139868,'end'),_0x26a3d0['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x26a3d0['createText'](C(_0xd7b953,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x241e5d=_0x36de82?'':'['+C(_0xd7b953,'Empty\x20heading')+']';let _0x5a3e50=_0x139868;return this['_currentOutlineDefinitions']['forEach']((_0x42aa92,_0x5f3afa,_0x4b3adf)=>{const _0x259ab7=this['editor']['model']['hasContent'](_0x42aa92['modelElement'],{'ignoreWhitespaces':!0x0}),_0x3af330=_0x259ab7?_0x42aa92['text']:_0x241e5d,_0xc5f713=_0x42aa92['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x439bb0=_0x26a3d0['createContainerElement']('a',{'href':'#'+_0xc5f713,...!_0x36de82&&{'tabindex':'-1'}},[_0x26a3d0['createText'](_0x3af330)]),_0x2e3ece=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x26a3d0['setCustomProperty']('tableOfContentsHeadingIndex',_0x5f3afa,_0x439bb0);const _0x22c10b=_0x26a3d0['createContainerElement']('li',null,[_0x259ab7||!_0x36de82&&_0x2e3ece?_0x439bb0:_0x26a3d0['createText']('')]),_0x4d7ab0=_0x5f3afa?_0x4b3adf[_0x5f3afa-0x1]['level']:0x0,_0x9fffa3=Math['abs'](_0x42aa92['level']-_0x4d7ab0);if(_0x42aa92['level']>_0x4d7ab0){const _0x30d1bb=x(_0x22c10b,_0x9fffa3,_0x26a3d0);_0x26a3d0['insert'](_0x26a3d0['createPositionAt'](_0x5a3e50,'end'),_0x30d1bb);}else{const _0x3c2ad8=function(_0x31b9be,_0x66cef6){return _0x31b9be['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x3aafe8=>_0x3aafe8['is']('element','ol'))[_0x66cef6];}(_0x5a3e50,_0x9fffa3);_0x26a3d0['insert'](_0x26a3d0['createPositionAt'](_0x3c2ad8,'end'),_0x22c10b);}_0x5a3e50=_0x22c10b;}),_0x139868;}['_handleScrollToHeading'](_0xdf7763){const _0x16b380=this['_currentOutlineDefinitions'][_0xdf7763]['modelElement'];this['editor']['model']['change'](_0x3d48e1=>{_0x3d48e1['setSelection'](_0x16b380,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x419eed,_0x3cb7a7)=>{const _0x2a4922=_0x3cb7a7['mapper'],_0x4affc9=_0x2a4922['findMappedViewAncestor'](_0x3cb7a7['viewPosition']),_0x27bbdf=_0x2a4922['toModelElement'](_0x4affc9);_0x27bbdf['is']('element','tableOfContents')&&(_0x3cb7a7['modelPosition']=this['editor']['model']['createPositionAt'](_0x27bbdf,0x0),_0x419eed['stop']());};}}function x(_0x3e4e10,_0x2259b5,_0x43cc82){return 0x1===_0x2259b5?_0x43cc82['createContainerElement']('ol',null,[_0x3e4e10]):_0x43cc82['createContainerElement']('ol',null,[_0x43cc82['createContainerElement']('li',null,[x(_0x3e4e10,_0x2259b5-0x1,_0x43cc82)])]);}class TableOfContentsUI extends _0x4bcd3e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2080fc=this['editor'];_0x2080fc['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x5e3b04=this['_createButton'](_0x47e791);return _0x5e3b04['tooltip']=!0x0,_0x5e3b04;}),_0x2080fc['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x5a4b67)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x8d38fa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31dbcc;for(const _0x4fabc3 in _0x8d38fa){const _0xd62c2e=_0x4fabc3,_0x45913f=_0x8d38fa[_0xd62c2e];if('tableOfContentsLicenseKeyValid'==_0x45913f||'tableOfContentsLicenseKeyInvalid'==_0x45913f||'tableOfContentsLicenseKeyExpired'==_0x45913f||'tableOfContentsLicenseKeyDomainLimit'==_0x45913f||'tableOfContentsLicenseKeyNotAllowed'==_0x45913f||'tableOfContentsLicenseKeyEvaluationLimit'==_0x45913f||'tableOfContentsLicenseKeyUsageLimit'==_0x45913f){delete _0x8d38fa[_0xd62c2e],_0x31dbcc=_0x45913f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x31dbcc&&_0x8d38fa['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x31dbcc&&_0x8d38fa['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x31dbcc&&_0x8d38fa['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x31dbcc&&_0x8d38fa['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x31dbcc&&_0x8d38fa['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x31dbcc&&_0x8d38fa['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x57d6a0){const _0x3d161c=this['editor'],_0x4b735a=_0x3d161c['locale'],_0xb417b9=_0x3d161c['commands']['get']('insertTableOfContents'),_0xeda2d8=new _0x57d6a0(_0x4b735a);return _0xeda2d8['set']({'label':C(_0x4b735a,'Table\x20of\x20contents'),'icon':_0x51f915}),_0xeda2d8['bind']('isEnabled')['to'](_0xb417b9,'isEnabled'),this['listenTo'](_0xeda2d8,'execute',()=>{_0x3d161c['execute']('insertTableOfContents'),_0x3d161c['editing']['view']['focus']();}),_0xeda2d8;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContents extends _0x4bcd3e{static get['requires'](){return[TableOfContentsEditing,TableOfContentsUI];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{DocumentOutline,DocumentOutlineUI,DocumentOutlineUtils,HeadingId,TableOfContents,TableOfContentsCommand,TableOfContentsEditing,TableOfContentsUI};
|
|
23
|
+
import{Command as _0xc2b69d,Plugin as _0x71e769}from'@ckeditor/ckeditor5-core';import{debounce as _0x4ad28e,throttle as _0x40d4e9}from'es-toolkit/compat';import{ModelText as _0x5033dd,ModelTreeWalker as _0x3d66b9}from'@ckeditor/ckeditor5-engine';import{CKEditorError as _0x5026d9,Rect as _0xa6ab4d,diff as _0x3eab13,diffToChanges as _0x41c93b,global as _0x19947b,listenToShadowRoots as _0x2537c7,priorities as _0x22229d,scrollAncestorsToShowTarget as _0x53a086,uid as _0x28d885}from'@ckeditor/ckeditor5-utils';import{ButtonView as _0x6d5f8d,MenuBarMenuListItemButtonView as _0x14530a,View as _0x1ca94c}from'@ckeditor/ckeditor5-ui';import{Widget as _0x5d07ac,toWidget as _0x43ca30}from'@ckeditor/ckeditor5-widget';import{IconTableOfContents as _0x3bdc51}from'@ckeditor/ckeditor5-icons';function I(_0x20eddc){let _0x2b313d='';for(const _0x1e764f of _0x20eddc['getChildren']())_0x1e764f instanceof _0x5033dd&&(_0x2b313d+=_0x1e764f['data']);return _0x2b313d;}var L=class extends _0x71e769{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];init(){const _0x1303fe=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x16ae00=[];_0x1303fe['model']['document']['on']('change',_0x4ad28e(()=>{const _0x288388=_0x16ae00;_0x16ae00=this['_getOutlineDefinitions']();const _0x39ab37=_0x3eab13(_0x288388,_0x16ae00,(_0x10bed9,_0x31921c)=>_0x10bed9['level']===_0x31921c['level']&&_0x10bed9['text']===_0x31921c['text']&&_0x10bed9['modelElement']===_0x31921c['modelElement']),_0x1378ee=_0x41c93b(_0x39ab37,_0x16ae00),_0x5104b8=this['_getActiveHeading'](),_0x1bfbfc=_0x16ae00['findIndex'](_0x517234=>_0x517234['modelElement']===_0x5104b8);_0x1378ee['length']&&this['fire']('change',{'outlineDefinitions':_0x16ae00,'activeItemIndex':_0x1bfbfc,'outlineChanges':_0x1378ee}),this['fire']('activeItemIndex',{'index':_0x1bfbfc});},0xfa,{'leading':!0x0,'trailing':!0x0}));}afterInit(){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}_getOutlineDefinitions(){const _0x532f3b=this['editor'],_0x5598c3=[],_0x83c1dc=this['_headingNames'];for(const _0x10ac16 of _0x532f3b['model']['document']['getRootNames']())_0x575915(_0x532f3b['model']['document']['getRoot'](_0x10ac16));function _0x575915(_0x26f4eb){for(const _0x58e031 of _0x26f4eb['getChildren']())_0x58e031['is']('element')&&(_0x83c1dc['includes'](_0x58e031['name'])&&_0x5598c3['push']({'level':_0x83c1dc['indexOf'](_0x58e031['name'])+0x1,'text':I(_0x58e031),'modelElement':_0x58e031}),_0x575915(_0x58e031));}return _0x5598c3;}_getActiveHeading(){const _0x2b9a20=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x58b27f=new _0x3d66b9({'direction':'backward','startPosition':_0x2b9a20});for(const _0x4974fb of _0x58b27f)if(_0x4974fb['item']['is']('element')&&this['_headingNames']['includes'](_0x4974fb['item']['name']))return _0x4974fb['item'];}_getHeadingNames(){const _0x54113b=this['editor']['config']['get']('documentOutline.headings');return _0x54113b||function(_0x28b299){const _0x976428=_0x28b299['config']['get']('heading.options');return _0x976428?_0x976428['reduce']((_0x9211ee,_0xb64e14)=>('paragraph'!==_0xb64e14['model']&&_0x9211ee['push'](_0xb64e14['model']),_0x9211ee),[]):_0x28b299['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}_deriveHeadingElementsFromConversion(){const _0x39dcf1=this['editor'],_0x4e288d=['h1','h2','h3','h4','h5','h6'],_0x4574fd=[];for(const _0x35b997 of _0x4e288d){const _0x4b36ee=_0x39dcf1['editing']['view']['domConverter']['domToView'](document['createElement'](_0x35b997)),_0x5a1bc7=_0x39dcf1['data']['toModel'](_0x4b36ee)['getChild'](0x0);_0x5a1bc7?.['is']('element')&&_0x4574fd['push'](_0x5a1bc7['name']);}this['_headingNames']=_0x4574fd;}};function C(_0x5427f9,_0x4e27c5){const t=_0x5427f9['t'];switch(_0x4e27c5){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 _0x4e27c5;}}var _=class extends _0x1ca94c{constructor(_0x5e7e4f,_0x5edb52=!0x1){super(_0x5e7e4f);const _0x3c377c=this['bindTemplate'],_0x423925=_0x5edb52?'['+C(_0x5e7e4f,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0xc7a83d=>!_0xc7a83d),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x3c377c['to']('level',_0x5d58b4=>'ck-document-outline__item_level-'+_0x5d58b4),_0x3c377c['if']('isActive','ck-document-outline__item_active'),_0x3c377c['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x3c377c['to']('text')},'children':[{'text':_0x3c377c['to']('text',_0x1d1cac=>_0x1d1cac||_0x423925)}],'on':{'click':_0x3c377c['to']('click')}});}},k=class extends _0x1ca94c{items;documentOutlineContainer;showEmptyHeadingText;constructor(_0x108d55,_0xdc9720=!0x1,_0x30b5a3){super(_0x108d55),this['showEmptyHeadingText']=_0xdc9720,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x30b5a3,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x7e388e,_0x3f2211,_0x4b736d,_0x49486b)=>{this['_setActiveItem'](_0x49486b,_0x4b736d);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x108d55['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x108d55,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x149937){_0x149937['forEach'](_0x513ecf=>{'insert'==_0x513ecf['type']?this['_insertItem'](_0x513ecf['index'],..._0x513ecf['values']):'delete'==_0x513ecf['type']&&this['_deleteItem'](_0x513ecf['index'],_0x513ecf['howMany']);});}_setActiveItem(_0x5ad9bd,_0x16db70){if(-0x1!==_0x5ad9bd){const _0x178411=this['items']['get'](_0x5ad9bd);_0x178411&&(_0x178411['isActive']=!0x1);}-0x1!==_0x16db70&&(this['items']['get'](_0x16db70)['isActive']=!0x0,this['_scrollToItem'](_0x16db70));}_insertItem(_0x5f3b77,..._0x23cca1){const _0x1ba20b=_0x23cca1['map']((_0x4cd5d3,_0x6ec48f)=>{const _0x36990b=new _(this['locale'],this['showEmptyHeadingText']);return _0x36990b['text']=_0x4cd5d3['text'],_0x36990b['level']=_0x4cd5d3['level'],_0x5f3b77+_0x6ec48f===this['activeItemIndex']&&(_0x36990b['isActive']=!0x0),_0x36990b;});this['items']['addMany'](_0x1ba20b,_0x5f3b77);}_deleteItem(_0x4f5dc0,_0x48337c){do{this['items']['remove'](_0x4f5dc0);}while(--_0x48337c);}_handleItemClick(_0x15b6c1){const _0x5dec0e=this['items']['getIndex'](_0x15b6c1['source']);this['fire']('itemSelected',_0x5dec0e);}_scrollToItem(_0x1ab5a4){_0x53a086(this['items']['get'](_0x1ab5a4)['element'],0x14,this['documentOutlineContainer']);}destroy(){super['destroy'](),this['element']['remove']();}},x=class extends _0x71e769{['view'];_currentOutlineDefinitions;_updateActiveDefinitionFromViewportThrottled;static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4462bd){super(_0x4462bd),this['view']=new k(_0x4462bd['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x40d4e9(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}init(){const _0x22fd9e=this['editor'],_0xe4b445=_0x22fd9e['plugins']['get']('DocumentOutlineUtils');let _0x175e55=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x22fd9e['config']['get']('documentOutline.container'))throw new _0x5026d9('document-outline-container-not-provided',{'editor':_0x22fd9e});_0x22fd9e['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0xe4b445['on']('change',this['_handleOutlineChange']['bind'](this)),_0xe4b445['on']('activeItemIndex',(_0x1bf0dd,{index:_0x1d73b6})=>this['_setActiveViewItem'](_0x1d73b6)),this['view']['on']('itemSelected',(_0x46c9a7,_0xeaef0c)=>{_0x175e55=!0x0,this['_handleItemSelected'](_0xeaef0c);});const _0x231170=()=>{_0x175e55?_0x175e55=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();};this['view']['listenTo'](_0x19947b['document'],'scroll',_0x231170,{'useCapture':!0x0}),_0x2537c7(_0x22fd9e['ui']['shadowRootRegistry'],{'emitter':this['view'],'event':'scroll','callback':_0x231170,'listenerOptions':{'useCapture':!0x0}}),this['view']['listenTo'](_0x19947b['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}afterInit(){!async function(_0x124658){const _0x34fc50='uizTdvyBIa4RKsnOYmEXGMfjehwJQqbPSCk7DtZgF58Lxl29Ho6cAUW1pV3Nr0',_0x358ba0=0x79728,_0x7bb78={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x4ab80d(_0xac8743){const _0x882954=new window['Promise'](_0x5c437e=>{_0xac8743['once']('ready',_0x5c437e);}),_0x17496b=window['Date']['now'](),_0x5ccf59=_0xac8743['config']['get']('licenseKey');async function _0xe87085(){let _0x100961,_0x5c1639=null,_0x273edc=null;try{return'GPL'==_0x5ccf59?'NotAllowed':(_0x100961=_0x4caaa5(),_0x100961?(_0x100961['usageEndpoint']&&(_0x273edc=_0x4a9c25(_0x100961['usageEndpoint'],_0x100961['jti'])),await _0x480e08()?_0x56cc6c()?_0x3db79a()?'Expired':_0x596333()?('evaluation'==_0x100961['licenseType']&&(_0x5c1639=_0x4d7024('EvaluationLimit')),await _0x27676a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x3db79a(){const _0x4ee516=['evaluation','trial']['includes'](_0x100961['licenseType'])?_0x17496b/0x3e8:0xe10*_0x358ba0;return _0x100961['exp']<_0x4ee516;}function _0x56cc6c(){const _0x55dd57=_0x100961['features'];return!!_0x55dd57&&(!!_0x55dd57['includes']('*')||(!!_0x55dd57['includes']('DO')||(!!_0x55dd57['includes']('PP')||!(!_0x55dd57['includes']('TRILIUM')||!_0x5eaf76()))));}function _0x596333(){const _0xedc3fe=_0x100961['licensedHosts'];if(!_0xedc3fe||0x0==_0xedc3fe['length'])return!0x0;const {hostname:_0x31e79e}=new URL(window['location']['href']);if(_0xedc3fe['includes'](_0x31e79e))return!0x0;const _0x2b52af=_0x31e79e['split']('.');return _0xedc3fe['filter'](_0x45b4d1=>_0x45b4d1['includes']('*'))['map'](_0x2c0840=>_0x2c0840['split']('.'))['filter'](_0x53b80a=>_0x53b80a['length']<=_0x2b52af['length'])['map'](_0x447117=>Array(_0x2b52af['length']-_0x447117['length'])['fill']('*'===_0x447117[0x0]?'*':'')['concat'](_0x447117))['some'](_0x8c0d67=>_0x2b52af['every']((_0x1416a1,_0x5cecf9)=>_0x8c0d67[_0x5cecf9]===_0x1416a1||'*'===_0x8c0d67[_0x5cecf9]));}function _0x27676a(){return _0x5c1639&&_0x273edc?new window['Promise']((_0x2a6d81,_0x3c2065)=>{_0x5c1639['then'](_0x2a6d81,_0x3c2065),_0x273edc['then'](_0x30f08c=>{'Valid'!=_0x30f08c&&_0x2a6d81(_0x30f08c);},_0x3c2065);}):_0x5c1639||_0x273edc||'Valid';}}function _0x4a9c25(_0x22cdae,_0x3904e6){return new window['Promise'](_0x453e85=>{if(_0x16f114())return _0x453e85('Valid');_0x43a976(),_0xac8743['decorate']('_sendUsageRequest');let _0x5d5af0=!0x1;const _0x2884c6=_0x28d885();function _0x577616(_0x3652d3){return!!_0x3652d3&&('object'==typeof _0x3652d3||'function'==typeof _0x3652d3)&&'function'==typeof _0x3652d3['then']&&'function'==typeof _0x3652d3['catch'];}function _0x34efa0(_0x3e0fe1){_0x387bb9(_0x3e0fe1)['then'](_0x3db954=>_0x3db954&&'ok'==_0x3db954['status']?_0x280aa8(_0x10b815(_0x2884c6+_0x3904e6))!=_0x3db954['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1e7fd8=>(_0x1dbf23(),_0x1e7fd8),()=>{const _0x5f19e8=_0x3be5a1();return null==_0x5f19e8?(_0x1dbf23(),'Valid'):_0x17496b-_0x5f19e8>0x240c8400?'UsageLimit':'Valid';})['then'](_0x453e85)['catch'](()=>{_0x453e85('UsageLimit');});const _0xa64026=0x36ee80;function _0x1dbf23(){const _0x19ea17='llct-'+_0x280aa8(_0x10b815(_0x22cdae)),_0x5ca1b1=_0x48c556(_0x280aa8(window['Math']['ceil'](_0x17496b/_0xa64026)));window['localStorage']['setItem'](_0x19ea17,_0x5ca1b1);}function _0x3be5a1(){const _0x240cc1='llct-'+_0x280aa8(_0x10b815(_0x22cdae)),_0x48f18c=window['localStorage']['getItem'](_0x240cc1);return _0x48f18c?window['parseInt'](_0x48c556(_0x48f18c),0x10)*_0xa64026:null;}function _0x387bb9(_0x5f4b08){return new window['Promise']((_0x307f6a,_0x282713)=>{_0x5f4b08['then'](_0x307f6a,_0x282713),window['setTimeout'](_0x282713,0x1d4c0);});}}_0xac8743['on']('_sendUsageRequest',(_0x4e79dd,_0x1e6336)=>{if(_0x1e6336[0x0]!=_0x22cdae)return _0x453e85('UsageLimit');_0x1e6336[0x1]={..._0x1e6336[0x1],'requestId':_0x2884c6};},{'priority':'high'}),_0xac8743['on']('_sendUsageRequest',_0x1fad2b=>{_0x577616(_0x1fad2b['return'])&&(_0x5d5af0=!0x0,_0x34efa0(_0x1fad2b['return']));},{'priority':'low'}),_0x882954['then'](()=>{_0x5d5af0||_0x453e85('UsageLimit');});});function _0x16f114(){return'auto'==_0xac8743['editing']['view']['_overlayModeHint'];}function _0x43a976(){_0xac8743['editing']['view']['_overlayModeHint']='auto';}}function _0x4d7024(_0x518948){const _0x45d36f=[new window['Promise'](_0x1ee8c5=>setTimeout(_0x1ee8c5,0x93ecc)),_0x882954['then'](()=>new window['Promise'](_0x130c5b=>{let _0x3c6e8f=0x0;_0xac8743['model']['on']('applyOperation',(_0x2a937b,_0x5c8f1e)=>{_0x5c8f1e[0x0]['isDocumentOperation']&&_0x3c6e8f++,0x5e8==_0x3c6e8f&&(_0x130c5b(),_0x2a937b['off']());});}))];return window['Promise']['race'](_0x45d36f)['then'](()=>_0x518948);}async function _0x3f1057(){await _0x882954,_0xac8743['model']['change']=_0x430a9c,_0xac8743['model']['enqueueChange']=_0x430a9c,_0xac8743['enableReadOnlyMode']('model');}function _0x5eaf76(){return window['glob']&&window['glob']['triliumVersion'];}function _0x255ef1(_0x488f03){const _0x261586=_0x2bd846();_0xac8743[_0x261586]='documentOutlineLicenseKey'+_0x488f03,'Valid'!=_0x488f03&&_0x3f1057();}function _0x2bd846(){const _0x105150=window['String'](window['performance']['now']())['replace']('.','');let _0x58e5cc='u';for(let _0x217721=0x0;_0x217721<_0x105150['length'];_0x217721+=0x2){let _0x1da1e1=window['parseInt'](_0x105150['substring'](_0x217721,_0x217721+0x2));_0x1da1e1>=0x3e&&(_0x1da1e1-=0x3e),_0x58e5cc+=_0x34fc50[_0x1da1e1];}return _0x58e5cc;}function _0x4caaa5(){const _0x2c28b1=_0x5ccf59['split']('.');if(0x3!=_0x2c28b1['length'])return null;return _0x66dabd(_0x2c28b1[0x1]);function _0x66dabd(_0x1e8e1e){const _0x3b993d=_0x1ccafe(_0x1e8e1e);return _0x3b993d&&_0x561577()?_0x3b993d:null;function _0x561577(){const _0xdbddb5=_0x3b993d['jti'],_0x6271ef=window['parseInt'](_0xdbddb5['substring'](_0xdbddb5['length']-0x8),0x10),_0x382d63={..._0x3b993d,'jti':_0xdbddb5['substring'](0x0,_0xdbddb5['length']-0x8)};return delete _0x382d63['vc'],_0x10b815(_0x382d63)==_0x6271ef;}}}async function _0x480e08(){let _0x3a6f09=!0x0;try{const [_0x16fe31,_0x3f1563,_0x363e3c]=_0x5ccf59['split']('.');return _0x2d9273(_0x16fe31),await _0x39a1bd(_0x16fe31,_0x3f1563,_0x363e3c),_0x3a6f09;}catch{return!0x1;}function _0x2d9273(_0x50a5d4){const _0x4e2e34=_0x1ccafe(_0x50a5d4);_0x4e2e34&&'ES256'==_0x4e2e34['alg']||(_0x3a6f09=!0x1);}async function _0x39a1bd(_0x258fd0,_0x51af52,_0x198170){const _0x2bd239=window['Uint8Array']['from'](_0x399678(_0x198170),_0x31d7d8=>_0x31d7d8['charCodeAt'](0x0)),_0x432da4=new window['TextEncoder']()['encode'](_0x258fd0+'.'+_0x51af52),_0x845088=window['crypto']['subtle'];if(!_0x845088)return;const _0x524ee9=await _0x845088['importKey']('jwk',_0x7bb78,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x845088['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x524ee9,_0x2bd239,_0x432da4)||(_0x3a6f09=!0x1);}}function _0x1ccafe(_0x252282){return _0x252282['startsWith']('ey')?JSON['parse'](_0x399678(_0x252282)):null;}function _0x399678(_0x2a4434){return window['atob'](_0x2a4434['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x10b815(_0x49de07){let _0x3ab868=0x1505;function _0xfdb699(_0x9ae21a){for(let _0x10663a=0x0;_0x10663a<_0x9ae21a['length'];_0x10663a++){const _0x43a998=_0x9ae21a['charCodeAt'](_0x10663a);_0x3ab868=(_0x3ab868<<0x5)+_0x3ab868+_0x43a998,_0x3ab868&=_0x3ab868;}}function _0x173513(_0x1c67d7){Array['isArray'](_0x1c67d7)?_0x1c67d7['forEach'](_0x173513):_0x1c67d7&&'object'==typeof _0x1c67d7?Object['entries'](_0x1c67d7)['sort']()['forEach'](([_0x101fe6,_0xba2b34])=>{_0xfdb699(_0x101fe6),_0x173513(_0xba2b34);}):_0xfdb699(window['String'](_0x1c67d7));}return _0x173513(_0x49de07),_0x3ab868>>>0x0;}function _0x280aa8(_0x2b9c81){return _0x2b9c81['toString'](0x10)['padStart'](0x8,'0');}function _0x48c556(_0x4a94dd){return _0x4a94dd['split']('')['reverse']()['join']('');}function _0x430a9c(){}_0x255ef1(await _0xe87085());}_0x4ab80d(_0x124658['editor']);}(this);}destroy(){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}_handleOutlineChange(_0x2aa730,{outlineDefinitions:_0xccd406,outlineChanges:_0x27ede9}){this['_currentOutlineDefinitions']=_0xccd406,this['view']['sync'](_0x27ede9);}_setActiveViewItem(_0x1053e4){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x1053e4]&&(this['view']['activeItemIndex']=_0x1053e4);}_handleItemSelected(_0x5b5f1c){const _0x2b841c=this['_currentOutlineDefinitions'][_0x5b5f1c]['modelElement'];this['editor']['model']['change'](_0x2064b5=>{_0x2064b5['setSelection'](_0x2b841c,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x5b5f1c);}_updateActiveDefinitionOnViewportChange(){const _0xec7ace=this['editor'];let _0x14b38f;for(const _0x1cb13e of _0xec7ace['model']['document']['getRootNames']()){const _0x1d5efc=_0xec7ace['editing']['view']['getDomRoot'](_0x1cb13e),_0x18f794=_0x1d5efc&&new _0xa6ab4d(_0x1d5efc)['getVisible']();if(_0x18f794){const _0x2c5057=new _0xa6ab4d(_0x19947b['window'])['getIntersection'](_0x18f794);_0x2c5057&&(_0x14b38f=_0x2c5057['top']+0.25*_0x2c5057['height']);}}if(void 0x0===_0x14b38f)return;const _0x2658ba=E(_0xec7ace['editing'],this['_currentOutlineDefinitions'],_0x14b38f);_0x2658ba?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x2658ba)):this['_setActiveViewItem'](-0x1);}};function E(_0x47156c,_0x470030,_0x1c8cf1,_0x341433=0x0,_0x494833=_0x470030['length']-0x1){const _0x2a3a6f=Math['floor'](_0x341433+(_0x494833-_0x341433)/0x2);if(_0x494833>=_0x341433){const _0x323f05=_0x470030[_0x2a3a6f],_0x2824f7=_0x47156c['mapper']['toViewElement'](_0x323f05['modelElement']);if(!_0x2824f7)return null;const _0x107661=_0x47156c['view']['domConverter']['mapViewToDom'](_0x2824f7);return new _0xa6ab4d(_0x107661)['bottom']>_0x1c8cf1?E(_0x47156c,_0x470030,_0x1c8cf1,_0x341433,_0x2a3a6f-0x1):E(_0x47156c,_0x470030,_0x1c8cf1,_0x2a3a6f+0x1,_0x494833);}return _0x2a3a6f<0x0?null:_0x470030[_0x2a3a6f];}var K=class extends _0x71e769{['licenseKey'];_licenseKeyCheckInterval;static get requires(){return[L,x];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x298dc8=[this['editor']];for(const _0x33952c of _0x298dc8){let _0x5da99a;for(const _0x35ba16 in _0x33952c){const _0x3462e8=_0x35ba16,_0x41f49d=_0x33952c[_0x3462e8];if('documentOutlineLicenseKeyValid'==_0x41f49d||'documentOutlineLicenseKeyInvalid'==_0x41f49d||'documentOutlineLicenseKeyExpired'==_0x41f49d||'documentOutlineLicenseKeyDomainLimit'==_0x41f49d||'documentOutlineLicenseKeyNotAllowed'==_0x41f49d||'documentOutlineLicenseKeyEvaluationLimit'==_0x41f49d||'documentOutlineLicenseKeyUsageLimit'==_0x41f49d){delete _0x33952c[_0x3462e8],_0x5da99a=_0x41f49d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x5da99a&&_0x33952c['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x5da99a&&_0x33952c['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x5da99a&&_0x33952c['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x5da99a&&_0x33952c['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x5da99a&&_0x33952c['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x5da99a&&_0x33952c['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},A=class extends _0xc2b69d{execute(){this['editor']['model']['change'](_0x1fa116=>{this['editor']['model']['insertObject'](_0x1fa116['createElement']('tableOfContents'));});}['refresh'](){const _0x4f497b=this['editor']['model'],_0x1b1424=_0x4f497b['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x1b1424&&_0x4f497b['schema']['findAllowedParent'](_0x1b1424,'tableOfContents'));}},N=class extends _0x71e769{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x9f3b05=this['editor'];if(_0x9f3b05['config']['get']('headingId.modelAttributeName'))return;const {viewNames:_0x502e1c,modelNames:_0x34972b}=function(_0xb8aaa5){const _0x446010=new Set(['h1','h2','h3','h4','h5','h6']),_0x5f482b=new Set(['heading1','heading2','heading3','heading4','heading5','heading6','htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']);if(!_0xb8aaa5)return{'viewNames':_0x446010,'modelNames':_0x5f482b};for(const _0x10e7c0 of _0xb8aaa5){if('paragraph'===_0x10e7c0['model'])continue;const _0x488c6b='string'==typeof _0x10e7c0['view']?_0x10e7c0['view']:_0x10e7c0['view']['name'];_0x446010['add'](_0x488c6b),_0x5f482b['add'](_0x10e7c0['model']);}return{'viewNames':_0x446010,'modelNames':_0x5f482b};}(this['editor']['config']['get']('heading.options'));for(const _0x1e76dc of _0x502e1c)this['_customUpcastHeadingsConversion'](_0x1e76dc);for(const _0x27b5a5 of _0x34972b)this['_customDataDowncastHeadingsConversion'](_0x27b5a5),_0x9f3b05['model']['schema']['isRegistered'](_0x27b5a5)&&_0x9f3b05['model']['schema']['extend'](_0x27b5a5,{'allowAttributes':'headingId'});this['_registerHeadingIdAttributePostfixer'](_0x34972b);}_customUpcastHeadingsConversion(_0x798d78){this['editor']['conversion']['for']('upcast')['add'](_0x4985d0=>_0x4985d0['on']('element:'+_0x798d78,(_0x47d7b5,_0x1c43b0,_0x5cb032)=>{const {consumable:_0x15bbdb,writer:_0x2c8454}=_0x5cb032,_0xc953f5=_0x1c43b0['viewItem']['getAttribute']('id'),_0x332e43=_0x1c43b0['modelRange']?.['getContainedElement']();if(_0x332e43)return _0xc953f5&&_0xc953f5['length']||_0x332e43['hasAttribute']('headingId')?void(_0x15bbdb['consume'](_0x1c43b0['viewItem'],{'attributes':['id']})&&_0x2c8454['setAttribute']('headingId',_0xc953f5,_0x332e43)):(_0x15bbdb['consume'](_0x1c43b0['viewItem'],{'attributes':['id']}),void _0x2c8454['setAttribute']('headingId',_0x28d885(),_0x332e43));},{'priority':_0x22229d['get']('low')+0.5}));}_customDataDowncastHeadingsConversion(_0x3f435a){this['editor']['conversion']['for']('downcast')['add'](_0x5989e6=>_0x5989e6['on']('attribute:headingId:'+_0x3f435a,(_0x334211,_0x529e91,_0x37fbe2)=>{if(!_0x37fbe2['consumable']['consume'](_0x529e91['item'],_0x334211['name']))return;const _0x10212a=_0x529e91['item']['getAttribute']('headingId'),_0x1394ee=_0x37fbe2['mapper']['toViewElement'](_0x529e91['item']);_0x37fbe2['writer']['setAttribute']('id',_0x10212a,_0x1394ee);}));}_registerHeadingIdAttributePostfixer(_0x47e806){const _0x4541c5=this['editor'],_0x25f614=new Set(),_0x1257c3=new Set();function _0x4e3fd6(_0x51e6d4,_0x289f03){const _0x53f803=_0x28d885();return _0x1257c3['add'](_0x53f803),_0x51e6d4['setAttribute']('headingId',_0x53f803,_0x289f03),_0x53f803;}function _0x474ea7(_0x33f450,_0x140ffb){_0x33f450['removeAttribute']('headingId',_0x140ffb);}_0x4541c5['model']['document']['registerPostFixer'](_0x21511b=>{const _0x1d417c=_0x4541c5['model']['document']['differ']['getChanges']();let _0x2c916c=!0x1;for(const _0x118389 of _0x1d417c)if('insert'==_0x118389['type']&&_0x118389['name']){if(_0x47e806['has'](_0x118389['name'])){const _0x3293b4=_0x118389['attributes']['get']('headingId');'string'==typeof _0x3293b4?_0x25f614['has'](_0x3293b4)?(_0x4e3fd6(_0x21511b,_0x118389['position']['nodeAfter']),_0x2c916c=!0x0):_0x1257c3['add'](_0x3293b4):(_0x4e3fd6(_0x21511b,_0x118389['position']['nodeAfter']),_0x2c916c=!0x0);}else'string'==typeof _0x118389['attributes']['get']('headingId')&&(_0x474ea7(_0x21511b,_0x118389['position']['nodeAfter']),_0x2c916c=!0x0);}else{if('remove'==_0x118389['type']){const _0x54be02=_0x118389['attributes']['get']('headingId');'string'==typeof _0x54be02&&_0x25f614['delete'](_0x54be02);}}return _0x2c916c;}),_0x4541c5['model']['document']['on']('change',()=>{_0x1257c3['forEach'](_0x48e4f7=>_0x25f614['add'](_0x48e4f7)),_0x1257c3['clear']();});}},D=class extends _0x71e769{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5d07ac,L,N];}_currentOutlineDefinitions;_tableOfContentsElements;_headingIdModelAttributeName;constructor(_0x2b3402){super(_0x2b3402),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}init(){const _0x302c78=this['editor'],_0x2e2fc4=_0x302c78['editing']['view']['document'];_0x302c78['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x302c78['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x2e2fc4,'click',(_0x177ba7,_0x3f8b3c)=>{if(!_0x3f8b3c['target'])return;const _0x584a2a=_0x3f8b3c['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x584a2a)&&(_0x3f8b3c['domEvent']['preventDefault'](),_0x177ba7['stop'](),this['_handleScrollToHeading'](_0x584a2a));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x302c78['commands']['add']('insertTableOfContents',new A(_0x302c78));const _0x558541=_0x302c78['config']['get']('tableOfContents.headings');_0x558541&&_0x558541['length']?this['listenTo'](_0x302c78['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x558541),this['_updateTableOfContentsElements']();}):_0x302c78['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x16df76,_0x261dfa)=>{this['_currentOutlineDefinitions']=_0x261dfa['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x302c78['model']['document'],'change',()=>{this['_trackNewToCElements']();});}afterInit(){!async function(_0x5dec22){const _0x4fd6ca='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x550244=0x79728,_0x530f3a={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0xd27754(_0x5aa869){const _0x29b43a=new window['Promise'](_0x5ee2e6=>{_0x5aa869['once']('ready',_0x5ee2e6);}),_0x3bf539=window['Date']['now'](),_0x3e48d2=_0x5aa869['config']['get']('licenseKey');async function _0x123f74(){let _0x5e8950,_0x53b2cd=null,_0x5f52c6=null;try{return'GPL'==_0x3e48d2?'NotAllowed':(_0x5e8950=_0x93842b(),_0x5e8950?(_0x5e8950['usageEndpoint']&&(_0x5f52c6=_0x1e0885(_0x5e8950['usageEndpoint'],_0x5e8950['jti'])),await _0x64514e()?_0x14ac36()?_0x15c9df()?'Expired':_0x383984()?('evaluation'==_0x5e8950['licenseType']&&(_0x53b2cd=_0x584bf8('EvaluationLimit')),await _0x13a3ef()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x15c9df(){const _0xef4f08=['evaluation','trial']['includes'](_0x5e8950['licenseType'])?_0x3bf539/0x3e8:0xe10*_0x550244;return _0x5e8950['exp']<_0xef4f08;}function _0x14ac36(){const _0x134713=_0x5e8950['features'];return!!_0x134713&&(!!_0x134713['includes']('*')||(!!_0x134713['includes']('TOC')||(!!_0x134713['includes']('PP')||!(!_0x134713['includes']('TRILIUM')||!_0x497560()))));}function _0x383984(){const _0x2522cc=_0x5e8950['licensedHosts'];if(!_0x2522cc||0x0==_0x2522cc['length'])return!0x0;const {hostname:_0x500627}=new URL(window['location']['href']);if(_0x2522cc['includes'](_0x500627))return!0x0;const _0x117564=_0x500627['split']('.');return _0x2522cc['filter'](_0x243c0a=>_0x243c0a['includes']('*'))['map'](_0x19d87f=>_0x19d87f['split']('.'))['filter'](_0x419d60=>_0x419d60['length']<=_0x117564['length'])['map'](_0x49b80d=>Array(_0x117564['length']-_0x49b80d['length'])['fill']('*'===_0x49b80d[0x0]?'*':'')['concat'](_0x49b80d))['some'](_0x11f36a=>_0x117564['every']((_0x4bb27c,_0x576b18)=>_0x11f36a[_0x576b18]===_0x4bb27c||'*'===_0x11f36a[_0x576b18]));}function _0x13a3ef(){return _0x53b2cd&&_0x5f52c6?new window['Promise']((_0xb7ee85,_0x578320)=>{_0x53b2cd['then'](_0xb7ee85,_0x578320),_0x5f52c6['then'](_0xab23a4=>{'Valid'!=_0xab23a4&&_0xb7ee85(_0xab23a4);},_0x578320);}):_0x53b2cd||_0x5f52c6||'Valid';}}function _0x1e0885(_0x4d4e71,_0x3d3458){return new window['Promise'](_0x1a3717=>{if(_0x85f7df())return _0x1a3717('Valid');_0x2bee4c(),_0x5aa869['decorate']('_sendUsageRequest');let _0x154644=!0x1;const _0x1cb486=_0x28d885();function _0x50aa29(_0x349c89){return!!_0x349c89&&('object'==typeof _0x349c89||'function'==typeof _0x349c89)&&'function'==typeof _0x349c89['then']&&'function'==typeof _0x349c89['catch'];}function _0x1fc703(_0x5dfc75){_0x176faa(_0x5dfc75)['then'](_0x34ba1f=>_0x34ba1f&&'ok'==_0x34ba1f['status']?_0x1f47dc(_0x3012f3(_0x1cb486+_0x3d3458))!=_0x34ba1f['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x26df01=>(_0x2b57be(),_0x26df01),()=>{const _0x3d7ab4=_0x3636d6();return null==_0x3d7ab4?(_0x2b57be(),'Valid'):_0x3bf539-_0x3d7ab4>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1a3717)['catch'](()=>{_0x1a3717('UsageLimit');});const _0x128740=0x36ee80;function _0x2b57be(){const _0x579bf5='llct-'+_0x1f47dc(_0x3012f3(_0x4d4e71)),_0x491b87=_0x2b1b76(_0x1f47dc(window['Math']['ceil'](_0x3bf539/_0x128740)));window['localStorage']['setItem'](_0x579bf5,_0x491b87);}function _0x3636d6(){const _0x28b918='llct-'+_0x1f47dc(_0x3012f3(_0x4d4e71)),_0x4af557=window['localStorage']['getItem'](_0x28b918);return _0x4af557?window['parseInt'](_0x2b1b76(_0x4af557),0x10)*_0x128740:null;}function _0x176faa(_0xc3a6a3){return new window['Promise']((_0x2f48cf,_0x320ac4)=>{_0xc3a6a3['then'](_0x2f48cf,_0x320ac4),window['setTimeout'](_0x320ac4,0x1d4c0);});}}_0x5aa869['on']('_sendUsageRequest',(_0x370199,_0x314f71)=>{if(_0x314f71[0x0]!=_0x4d4e71)return _0x1a3717('UsageLimit');_0x314f71[0x1]={..._0x314f71[0x1],'requestId':_0x1cb486};},{'priority':'high'}),_0x5aa869['on']('_sendUsageRequest',_0x1a6bff=>{_0x50aa29(_0x1a6bff['return'])&&(_0x154644=!0x0,_0x1fc703(_0x1a6bff['return']));},{'priority':'low'}),_0x29b43a['then'](()=>{_0x154644||_0x1a3717('UsageLimit');});});function _0x85f7df(){return'auto'==_0x5aa869['editing']['view']['_overlayModeHint'];}function _0x2bee4c(){_0x5aa869['editing']['view']['_overlayModeHint']='auto';}}function _0x584bf8(_0x4782c2){const _0x33bd99=[new window['Promise'](_0x304a63=>setTimeout(_0x304a63,0x93ecc)),_0x29b43a['then'](()=>new window['Promise'](_0x4cb63c=>{let _0x2ce087=0x0;_0x5aa869['model']['on']('applyOperation',(_0x5dea1a,_0x2ffe3a)=>{_0x2ffe3a[0x0]['isDocumentOperation']&&_0x2ce087++,0x5e8==_0x2ce087&&(_0x4cb63c(),_0x5dea1a['off']());});}))];return window['Promise']['race'](_0x33bd99)['then'](()=>_0x4782c2);}async function _0x39a6a1(){await _0x29b43a,_0x5aa869['model']['change']=_0x2a842b,_0x5aa869['model']['enqueueChange']=_0x2a842b,_0x5aa869['enableReadOnlyMode']('model');}function _0x497560(){return window['glob']&&window['glob']['triliumVersion'];}function _0x26a206(_0x318354){const _0x597814=_0x4be40e();_0x5aa869[_0x597814]='tableOfContentsLicenseKey'+_0x318354,'Valid'!=_0x318354&&_0x39a6a1();}function _0x4be40e(){const _0xad1bae=window['String'](window['performance']['now']())['replace']('.','');let _0x44e71a='D';for(let _0x1ccb73=0x0;_0x1ccb73<_0xad1bae['length'];_0x1ccb73+=0x2){let _0x50d0df=window['parseInt'](_0xad1bae['substring'](_0x1ccb73,_0x1ccb73+0x2));_0x50d0df>=0x3e&&(_0x50d0df-=0x3e),_0x44e71a+=_0x4fd6ca[_0x50d0df];}return _0x44e71a;}function _0x93842b(){const _0x20f24f=_0x3e48d2['split']('.');if(0x3!=_0x20f24f['length'])return null;return _0x32d43b(_0x20f24f[0x1]);function _0x32d43b(_0x14413c){const _0x4020b5=_0xdd5d3(_0x14413c);return _0x4020b5&&_0x2bd6e9()?_0x4020b5:null;function _0x2bd6e9(){const _0x23fe19=_0x4020b5['jti'],_0xf67a90=window['parseInt'](_0x23fe19['substring'](_0x23fe19['length']-0x8),0x10),_0x80cc8e={..._0x4020b5,'jti':_0x23fe19['substring'](0x0,_0x23fe19['length']-0x8)};return delete _0x80cc8e['vc'],_0x3012f3(_0x80cc8e)==_0xf67a90;}}}async function _0x64514e(){let _0x3b3111=!0x0;try{const [_0x11dfc6,_0x91a7,_0x55d9ee]=_0x3e48d2['split']('.');return _0x460e10(_0x11dfc6),await _0x4bbdc0(_0x11dfc6,_0x91a7,_0x55d9ee),_0x3b3111;}catch{return!0x1;}function _0x460e10(_0xa1957d){const _0x3997a3=_0xdd5d3(_0xa1957d);_0x3997a3&&'ES256'==_0x3997a3['alg']||(_0x3b3111=!0x1);}async function _0x4bbdc0(_0x2db495,_0x170aea,_0x5cb775){const _0x4e908d=window['Uint8Array']['from'](_0x4481b2(_0x5cb775),_0x4e5876=>_0x4e5876['charCodeAt'](0x0)),_0x30f7da=new window['TextEncoder']()['encode'](_0x2db495+'.'+_0x170aea),_0xdd022=window['crypto']['subtle'];if(!_0xdd022)return;const _0x1e4ce3=await _0xdd022['importKey']('jwk',_0x530f3a,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xdd022['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1e4ce3,_0x4e908d,_0x30f7da)||(_0x3b3111=!0x1);}}function _0xdd5d3(_0xe4abc4){return _0xe4abc4['startsWith']('ey')?JSON['parse'](_0x4481b2(_0xe4abc4)):null;}function _0x4481b2(_0x4839ee){return window['atob'](_0x4839ee['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3012f3(_0x46ad7e){let _0x48165d=0x1505;function _0x4eeb91(_0x3db823){for(let _0x294ad2=0x0;_0x294ad2<_0x3db823['length'];_0x294ad2++){const _0x43648a=_0x3db823['charCodeAt'](_0x294ad2);_0x48165d=(_0x48165d<<0x5)+_0x48165d+_0x43648a,_0x48165d&=_0x48165d;}}function _0x2c8d83(_0x533786){Array['isArray'](_0x533786)?_0x533786['forEach'](_0x2c8d83):_0x533786&&'object'==typeof _0x533786?Object['entries'](_0x533786)['sort']()['forEach'](([_0x460e8a,_0x25e9c4])=>{_0x4eeb91(_0x460e8a),_0x2c8d83(_0x25e9c4);}):_0x4eeb91(window['String'](_0x533786));}return _0x2c8d83(_0x46ad7e),_0x48165d>>>0x0;}function _0x1f47dc(_0x7f8e9a){return _0x7f8e9a['toString'](0x10)['padStart'](0x8,'0');}function _0x2b1b76(_0xdf211b){return _0xdf211b['split']('')['reverse']()['join']('');}function _0x2a842b(){}_0x26a206(await _0x123f74());}_0xd27754(_0x5dec22['editor']);}(this);}_updateTableOfContentsElements(){this['_tableOfContentsElements']['forEach'](_0x49bf75=>{'$graveyard'!==_0x49bf75['rootName']&&this['editor']['editing']['reconvertItem'](_0x49bf75);});}_trackNewToCElements(){for(const _0x278b95 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x278b95['type']||'tableOfContents'!==_0x278b95['name'])return;this['_tableOfContentsElements']['add'](_0x278b95['position']['nodeAfter']);}}_getOutlineDefinitions(_0x277609){const _0x457bb1=this['editor'],_0x82211b=[];for(const _0x16219d of _0x457bb1['model']['document']['getRootNames']())_0x97e9da(_0x457bb1['model']['document']['getRoot'](_0x16219d));function _0x97e9da(_0x2f986d){for(const _0x414f76 of _0x2f986d['getChildren']())_0x414f76['is']('element')&&(_0x277609['includes'](_0x414f76['name'])&&_0x82211b['push']({'level':_0x277609['indexOf'](_0x414f76['name'])+0x1,'text':I(_0x414f76),'modelElement':_0x414f76}),_0x97e9da(_0x414f76));}return _0x82211b;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}_defineConverters(){const _0x2c7f7c=this['editor']['conversion'];_0x2c7f7c['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x2c7f7c['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x140b8c,{writer:_0x2500d0})=>this['_createTableOfContents'](_0x2500d0,!0x0)}),_0x2c7f7c['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x14c3c4,{writer:_0x2b6869})=>{this['_tableOfContentsElements']['add'](_0x14c3c4);const _0x1d2219=this['_createTableOfContents'](_0x2b6869);return _0x43ca30(_0x1d2219,_0x2b6869,{'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(_0x452d47,_0x55540e=!0x1){const {locale:_0x28ae73}=this['editor'],_0x23d9af=_0x452d47['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x55540e&&{'data-table-of-contents-label':C(_0x28ae73,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x55540e&&_0x452d47['insert'](_0x452d47['createPositionAt'](_0x23d9af,'end'),_0x452d47['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x452d47['createText'](C(_0x28ae73,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x4bd67e=_0x55540e?'':'['+C(_0x28ae73,'Empty\x20heading')+']';let _0x36b313=_0x23d9af;return this['_currentOutlineDefinitions']['forEach']((_0x1c3837,_0x598b80,_0x2c0ea7)=>{const _0x3c0f80=this['editor']['model']['hasContent'](_0x1c3837['modelElement'],{'ignoreWhitespaces':!0x0}),_0x351b0b=_0x3c0f80?_0x1c3837['text']:_0x4bd67e,_0x274337=_0x1c3837['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x501162=_0x452d47['createContainerElement']('a',{'href':'#'+_0x274337,...!_0x55540e&&{'tabindex':'-1'}},[_0x452d47['createText'](_0x351b0b)]),_0x3a33db=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x452d47['setCustomProperty']('tableOfContentsHeadingIndex',_0x598b80,_0x501162);const _0x23e756=_0x452d47['createContainerElement']('li',null,[_0x3c0f80||!_0x55540e&&_0x3a33db?_0x501162:_0x452d47['createText']('')]),_0x2665c4=_0x598b80?_0x2c0ea7[_0x598b80-0x1]['level']:0x0,_0x38493e=Math['abs'](_0x1c3837['level']-_0x2665c4);if(_0x1c3837['level']>_0x2665c4){const _0x390d1d=H(_0x23e756,_0x38493e,_0x452d47);_0x452d47['insert'](_0x452d47['createPositionAt'](_0x36b313,'end'),_0x390d1d);}else{const _0x1b5937=function(_0x5ceec8,_0x4ebb80){return _0x5ceec8['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x2701b4=>_0x2701b4['is']('element','ol'))[_0x4ebb80];}(_0x36b313,_0x38493e);_0x452d47['insert'](_0x452d47['createPositionAt'](_0x1b5937,'end'),_0x23e756);}_0x36b313=_0x23e756;}),_0x23d9af;}['_handleScrollToHeading'](_0x4d2055){const _0x52e956=this['_currentOutlineDefinitions'][_0x4d2055]['modelElement'];this['editor']['model']['change'](_0x305b79=>{_0x305b79['setSelection'](_0x52e956,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}_redirectMapper(){return(_0x924e5c,_0x57d5f8)=>{const _0x42d4e8=_0x57d5f8['mapper'],_0x1cf495=_0x42d4e8['findMappedViewAncestor'](_0x57d5f8['viewPosition']),_0xa3e2e3=_0x42d4e8['toModelElement'](_0x1cf495);_0xa3e2e3['is']('element','tableOfContents')&&(_0x57d5f8['modelPosition']=this['editor']['model']['createPositionAt'](_0xa3e2e3,0x0),_0x924e5c['stop']());};}};function H(_0x2d538d,_0x3f935d,_0x5728d1){return 0x1===_0x3f935d?_0x5728d1['createContainerElement']('ol',null,[_0x2d538d]):_0x5728d1['createContainerElement']('ol',null,[_0x5728d1['createContainerElement']('li',null,[H(_0x2d538d,_0x3f935d-0x1,_0x5728d1)])]);}var P=class extends _0x71e769{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x49ccb7=this['editor'];_0x49ccb7['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x2bc88a=this['_createButton'](_0x6d5f8d);return _0x2bc88a['tooltip']=!0x0,_0x2bc88a;}),_0x49ccb7['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x14530a)),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0xe2ed16=[this['editor']];for(const _0x3ea773 of _0xe2ed16){let _0x227edd;for(const _0x11ae79 in _0x3ea773){const _0x380555=_0x11ae79,_0x3b26b5=_0x3ea773[_0x380555];if('tableOfContentsLicenseKeyValid'==_0x3b26b5||'tableOfContentsLicenseKeyInvalid'==_0x3b26b5||'tableOfContentsLicenseKeyExpired'==_0x3b26b5||'tableOfContentsLicenseKeyDomainLimit'==_0x3b26b5||'tableOfContentsLicenseKeyNotAllowed'==_0x3b26b5||'tableOfContentsLicenseKeyEvaluationLimit'==_0x3b26b5||'tableOfContentsLicenseKeyUsageLimit'==_0x3b26b5){delete _0x3ea773[_0x380555],_0x227edd=_0x3b26b5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x227edd&&_0x3ea773['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x227edd&&_0x3ea773['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x227edd&&_0x3ea773['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x227edd&&_0x3ea773['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x227edd&&_0x3ea773['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x227edd&&_0x3ea773['_showLicenseError']('usageLimit');}},0x3e8);}_createButton(_0x16c6cf){const _0x16a35e=this['editor'],_0x2bf97f=_0x16a35e['locale'],_0x350733=_0x16a35e['commands']['get']('insertTableOfContents'),_0x4b266d=new _0x16c6cf(_0x2bf97f);return _0x4b266d['set']({'label':C(_0x2bf97f,'Table\x20of\x20contents'),'icon':_0x3bdc51}),_0x4b266d['bind']('isEnabled')['to'](_0x350733,'isEnabled'),this['listenTo'](_0x4b266d,'execute',()=>{_0x16a35e['execute']('insertTableOfContents'),_0x16a35e['editing']['view']['focus']();}),_0x4b266d;}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},U=class extends _0x71e769{static get requires(){return[D,P];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{K as DocumentOutline,x as DocumentOutlineUI,L as DocumentOutlineUtils,N as HeadingId,U as TableOfContents,A as TableOfContentsCommand,D as TableOfContentsEditing,P as TableOfContentsUI};
|
package/dist/legacyerrors.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Plugin } from
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
* The heading ID plugin. It adds support for the ID attribute on the heading[1-6] (model) and h[1-6] (data/view) elements.
|
|
8
|
+
*/
|
|
9
9
|
export declare class HeadingId extends Plugin {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @inheritDoc
|
|
12
|
+
*/
|
|
13
|
+
static get pluginName(): "HeadingId";
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static override get isOfficialPlugin(): true;
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static override get isPremiumPlugin(): true;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
afterInit(): void;
|
|
26
26
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Command } from
|
|
6
|
+
* @module document-outline/tableofcontents/tableofcontentscommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command } from "@ckeditor/ckeditor5-core";
|
|
10
10
|
export declare class TableOfContentsCommand extends Command {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Executes the command. Inserts the table of content into the model.
|
|
13
|
+
*
|
|
14
|
+
* @fires execute
|
|
15
|
+
*/
|
|
16
|
+
override execute(): void;
|
|
17
|
+
/**
|
|
18
|
+
* If the selection is wrong, the command is not enabled.
|
|
19
|
+
*/
|
|
20
|
+
override refresh(): void;
|
|
21
21
|
}
|
|
@@ -1,45 +1,44 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin, type Editor } from
|
|
9
|
-
import { Widget } from
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import { HeadingId } from './headingid.js';
|
|
6
|
+
* @module document-outline/tableofcontents/tableofcontentsediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { Widget } from "@ckeditor/ckeditor5-widget";
|
|
10
|
+
import { DocumentOutlineUtils } from "../documentoutline/documentoutlineutils.js";
|
|
11
|
+
import { HeadingId } from "./headingid.js";
|
|
13
12
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
* The table of contents editing plugin.
|
|
14
|
+
*/
|
|
16
15
|
export declare class TableOfContentsEditing extends Plugin {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
static get pluginName(): "TableOfContentsEditing";
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static override get isOfficialPlugin(): true;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static override get isPremiumPlugin(): true;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static get requires(): PluginDependenciesOf<[Widget, DocumentOutlineUtils, HeadingId]>;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
constructor(editor: Editor);
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
*/
|
|
39
|
+
init(): void;
|
|
40
|
+
/**
|
|
41
|
+
* @inheritDoc
|
|
42
|
+
*/
|
|
43
|
+
afterInit(): void;
|
|
45
44
|
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Plugin } from
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
* The UI plugin of the table of contents feature.
|
|
8
|
+
*/
|
|
9
9
|
export declare class TableOfContentsUI extends Plugin {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @inheritDoc
|
|
12
|
+
*/
|
|
13
|
+
static get pluginName(): "TableOfContentsUI";
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static override get isOfficialPlugin(): true;
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static override get isPremiumPlugin(): true;
|
|
22
|
+
init(): void;
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
override destroy(): void;
|
|
27
27
|
}
|