@ckeditor/ckeditor5-document-outline 48.2.0-alpha.7 → 48.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/augmentation.d.ts +31 -31
  2. package/dist/documentoutline/documentoutlineui.d.ts +43 -43
  3. package/dist/documentoutline/documentoutlineutils.d.ts +58 -60
  4. package/dist/documentoutline/ui/documentoutlineitemview.d.ts +43 -43
  5. package/dist/documentoutline/ui/documentoutlineview.d.ts +49 -49
  6. package/dist/documentoutline/utils.d.ts +11 -11
  7. package/dist/documentoutline.d.ts +91 -91
  8. package/dist/index.d.ts +14 -14
  9. package/dist/index.js +1 -1
  10. package/dist/legacyerrors.d.ts +0 -4
  11. package/dist/tableofcontents/headingid.d.ts +22 -22
  12. package/dist/tableofcontents/tableofcontentscommand.d.ts +17 -17
  13. package/dist/tableofcontents/tableofcontentsediting.d.ts +40 -40
  14. package/dist/tableofcontents/tableofcontentsui.d.ts +23 -23
  15. package/dist/tableofcontents.d.ts +68 -68
  16. package/dist/translations/af.js +1 -1
  17. package/dist/translations/af.umd.js +1 -1
  18. package/dist/translations/ar.js +1 -1
  19. package/dist/translations/ar.umd.js +1 -1
  20. package/dist/translations/ast.js +1 -1
  21. package/dist/translations/ast.umd.js +1 -1
  22. package/dist/translations/az.js +1 -1
  23. package/dist/translations/az.umd.js +1 -1
  24. package/dist/translations/be.js +1 -1
  25. package/dist/translations/be.umd.js +1 -1
  26. package/dist/translations/bg.js +1 -1
  27. package/dist/translations/bg.umd.js +1 -1
  28. package/dist/translations/bn.js +1 -1
  29. package/dist/translations/bn.umd.js +1 -1
  30. package/dist/translations/bs.js +1 -1
  31. package/dist/translations/bs.umd.js +1 -1
  32. package/dist/translations/ca.js +1 -1
  33. package/dist/translations/ca.umd.js +1 -1
  34. package/dist/translations/cs.js +1 -1
  35. package/dist/translations/cs.umd.js +1 -1
  36. package/dist/translations/da.js +1 -1
  37. package/dist/translations/da.umd.js +1 -1
  38. package/dist/translations/de-ch.js +1 -1
  39. package/dist/translations/de-ch.umd.js +1 -1
  40. package/dist/translations/de.js +1 -1
  41. package/dist/translations/de.umd.js +1 -1
  42. package/dist/translations/el.js +1 -1
  43. package/dist/translations/el.umd.js +1 -1
  44. package/dist/translations/en-au.js +1 -1
  45. package/dist/translations/en-au.umd.js +1 -1
  46. package/dist/translations/en-gb.js +1 -1
  47. package/dist/translations/en-gb.umd.js +1 -1
  48. package/dist/translations/en.js +1 -1
  49. package/dist/translations/en.umd.js +1 -1
  50. package/dist/translations/eo.js +1 -1
  51. package/dist/translations/eo.umd.js +1 -1
  52. package/dist/translations/es-co.js +1 -1
  53. package/dist/translations/es-co.umd.js +1 -1
  54. package/dist/translations/es.js +1 -1
  55. package/dist/translations/es.umd.js +1 -1
  56. package/dist/translations/et.js +1 -1
  57. package/dist/translations/et.umd.js +1 -1
  58. package/dist/translations/eu.js +1 -1
  59. package/dist/translations/eu.umd.js +1 -1
  60. package/dist/translations/fa.js +1 -1
  61. package/dist/translations/fa.umd.js +1 -1
  62. package/dist/translations/fi.js +1 -1
  63. package/dist/translations/fi.umd.js +1 -1
  64. package/dist/translations/fr.js +1 -1
  65. package/dist/translations/fr.umd.js +1 -1
  66. package/dist/translations/gl.js +1 -1
  67. package/dist/translations/gl.umd.js +1 -1
  68. package/dist/translations/gu.js +1 -1
  69. package/dist/translations/gu.umd.js +1 -1
  70. package/dist/translations/he.js +1 -1
  71. package/dist/translations/he.umd.js +1 -1
  72. package/dist/translations/hi.js +1 -1
  73. package/dist/translations/hi.umd.js +1 -1
  74. package/dist/translations/hr.js +1 -1
  75. package/dist/translations/hr.umd.js +1 -1
  76. package/dist/translations/hu.js +1 -1
  77. package/dist/translations/hu.umd.js +1 -1
  78. package/dist/translations/hy.js +1 -1
  79. package/dist/translations/hy.umd.js +1 -1
  80. package/dist/translations/id.js +1 -1
  81. package/dist/translations/id.umd.js +1 -1
  82. package/dist/translations/it.js +1 -1
  83. package/dist/translations/it.umd.js +1 -1
  84. package/dist/translations/ja.js +1 -1
  85. package/dist/translations/ja.umd.js +1 -1
  86. package/dist/translations/jv.js +1 -1
  87. package/dist/translations/jv.umd.js +1 -1
  88. package/dist/translations/kk.js +1 -1
  89. package/dist/translations/kk.umd.js +1 -1
  90. package/dist/translations/km.js +1 -1
  91. package/dist/translations/km.umd.js +1 -1
  92. package/dist/translations/kn.js +1 -1
  93. package/dist/translations/kn.umd.js +1 -1
  94. package/dist/translations/ko.js +1 -1
  95. package/dist/translations/ko.umd.js +1 -1
  96. package/dist/translations/ku.js +1 -1
  97. package/dist/translations/ku.umd.js +1 -1
  98. package/dist/translations/lt.js +1 -1
  99. package/dist/translations/lt.umd.js +1 -1
  100. package/dist/translations/lv.js +1 -1
  101. package/dist/translations/lv.umd.js +1 -1
  102. package/dist/translations/ms.js +1 -1
  103. package/dist/translations/ms.umd.js +1 -1
  104. package/dist/translations/nb.js +1 -1
  105. package/dist/translations/nb.umd.js +1 -1
  106. package/dist/translations/ne.js +1 -1
  107. package/dist/translations/ne.umd.js +1 -1
  108. package/dist/translations/nl.js +1 -1
  109. package/dist/translations/nl.umd.js +1 -1
  110. package/dist/translations/no.js +1 -1
  111. package/dist/translations/no.umd.js +1 -1
  112. package/dist/translations/oc.js +1 -1
  113. package/dist/translations/oc.umd.js +1 -1
  114. package/dist/translations/pl.js +1 -1
  115. package/dist/translations/pl.umd.js +1 -1
  116. package/dist/translations/pt-br.js +1 -1
  117. package/dist/translations/pt-br.umd.js +1 -1
  118. package/dist/translations/pt.js +1 -1
  119. package/dist/translations/pt.umd.js +1 -1
  120. package/dist/translations/ro.js +1 -1
  121. package/dist/translations/ro.umd.js +1 -1
  122. package/dist/translations/ru.js +1 -1
  123. package/dist/translations/ru.umd.js +1 -1
  124. package/dist/translations/si.js +1 -1
  125. package/dist/translations/si.umd.js +1 -1
  126. package/dist/translations/sk.js +1 -1
  127. package/dist/translations/sk.umd.js +1 -1
  128. package/dist/translations/sl.js +1 -1
  129. package/dist/translations/sl.umd.js +1 -1
  130. package/dist/translations/sq.js +1 -1
  131. package/dist/translations/sq.umd.js +1 -1
  132. package/dist/translations/sr-latn.js +1 -1
  133. package/dist/translations/sr-latn.umd.js +1 -1
  134. package/dist/translations/sr.js +1 -1
  135. package/dist/translations/sr.umd.js +1 -1
  136. package/dist/translations/sv.js +1 -1
  137. package/dist/translations/sv.umd.js +1 -1
  138. package/dist/translations/th.js +1 -1
  139. package/dist/translations/th.umd.js +1 -1
  140. package/dist/translations/ti.js +1 -1
  141. package/dist/translations/ti.umd.js +1 -1
  142. package/dist/translations/tk.js +1 -1
  143. package/dist/translations/tk.umd.js +1 -1
  144. package/dist/translations/tr.js +1 -1
  145. package/dist/translations/tr.umd.js +1 -1
  146. package/dist/translations/tt.js +1 -1
  147. package/dist/translations/tt.umd.js +1 -1
  148. package/dist/translations/ug.js +1 -1
  149. package/dist/translations/ug.umd.js +1 -1
  150. package/dist/translations/uk.js +1 -1
  151. package/dist/translations/uk.umd.js +1 -1
  152. package/dist/translations/ur.js +1 -1
  153. package/dist/translations/ur.umd.js +1 -1
  154. package/dist/translations/uz.js +1 -1
  155. package/dist/translations/uz.umd.js +1 -1
  156. package/dist/translations/vi.js +1 -1
  157. package/dist/translations/vi.umd.js +1 -1
  158. package/dist/translations/zh-cn.js +1 -1
  159. package/dist/translations/zh-cn.umd.js +1 -1
  160. package/dist/translations/zh.js +1 -1
  161. package/dist/translations/zh.umd.js +1 -1
  162. package/dist/utils/common-translations.d.ts +6 -6
  163. package/package.json +8 -8
@@ -1,99 +1,99 @@
1
1
  /**
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
- */
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
- * @module document-outline/documentoutline
7
- * @publicApi
8
- */
9
- import { Plugin } from '@ckeditor/ckeditor5-core';
10
- import { DocumentOutlineUtils } from './documentoutline/documentoutlineutils.js';
11
- import { DocumentOutlineUI } from './documentoutline/documentoutlineui.js';
6
+ * @module document-outline/documentoutline
7
+ * @publicApi
8
+ */
9
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
10
+ import { DocumentOutlineUtils } from "./documentoutline/documentoutlineutils.js";
11
+ import { DocumentOutlineUI } from "./documentoutline/documentoutlineui.js";
12
12
  /**
13
- * The document outline feature.
14
- * It allows for an easy access to a predefined list of headings in the document.
15
- */
13
+ * The document outline feature.
14
+ * It allows for an easy access to a predefined list of headings in the document.
15
+ */
16
16
  export declare class DocumentOutline extends Plugin {
17
- /**
18
- * @inheritDoc
19
- */
20
- static get requires(): readonly [typeof DocumentOutlineUtils, typeof DocumentOutlineUI];
21
- /**
22
- * @inheritDoc
23
- */
24
- static get pluginName(): "DocumentOutline";
25
- /**
26
- * @inheritDoc
27
- */
28
- static get isOfficialPlugin(): true;
29
- /**
30
- * @inheritDoc
31
- */
32
- static get isPremiumPlugin(): true;
33
- init(): void;
34
- /**
35
- * @inheritDoc
36
- */
37
- destroy(): void;
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get requires(): PluginDependenciesOf<[DocumentOutlineUtils, DocumentOutlineUI]>;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get pluginName(): "DocumentOutline";
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static override get isOfficialPlugin(): true;
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ static override get isPremiumPlugin(): true;
33
+ init(): void;
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ override destroy(): void;
38
38
  }
39
39
  /**
40
- * The configuration of the {@link module:document-outline/documentoutline~DocumentOutline document outline feature}.
41
- *
42
- * ```ts
43
- * ClassicEditor
44
- * .create( {
45
- * documentOutline: ... // Document outline feature configuration.
46
- * } )
47
- * .then( /* ... *\/ )
48
- * .catch( /* ... *\/ );
49
- * ```
50
- *
51
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
52
- */
40
+ * The configuration of the {@link module:document-outline/documentoutline~DocumentOutline document outline feature}.
41
+ *
42
+ * ```ts
43
+ * ClassicEditor
44
+ * .create( {
45
+ * documentOutline: ... // Document outline feature configuration.
46
+ * } )
47
+ * .then( /* ... *\/ )
48
+ * .catch( /* ... *\/ );
49
+ * ```
50
+ *
51
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
52
+ */
53
53
  export interface DocumentOutlineConfig {
54
- /**
55
- * The container element for the document outline to render. This should be a reference to an existing
56
- * container element in the DOM.
57
- */
58
- container?: HTMLElement;
59
- /**
60
- * An array of {@glink framework/architecture/editing-engine#model model} element names considered
61
- * as headings in the document outline.
62
- *
63
- * The index of the heading in the array reflects the heading nesting level. It can be used e.g. for reducing
64
- * the number of visible headings.
65
- *
66
- * ```ts
67
- * ClassicEditor
68
- * .create( {
69
- * plugins: [ DocumentOutline, /* ... *\/ ],
70
- * documentOutline: {
71
- * headings: [ 'heading1', 'heading2', /* ... *\/ ],
72
- * // ...
73
- * }
74
- * } )
75
- * .then( /* ... *\/ )
76
- * .catch( /* ... *\/ );
77
- * ```
78
- *
79
- * If this configuration is not defined, the feature will use the following defaults instead:
80
- *
81
- * 1. If the {@glink features/headings Headings feature} is loaded, it equals
82
- * * {@link module:heading/headingconfig~HeadingConfig#options `config.heading.options`}.
83
- * * `[ 'heading1', 'heading2', 'heading3' ]` if `config.heading.options` is not defined.
84
- * 2. If the {@glink features/html/general-html-support General HTML Support} feature is loaded, it equals
85
- * `[ 'htmlH1', 'htmlH2', 'htmlH3', 'htmlH4', 'htmlH5', 'htmlH6' ]`.
86
- *
87
- * **Note**: The Headings feature takes precedence over the General HTML Support feature when
88
- * both are loaded.
89
- */
90
- headings?: Array<string>;
91
- /**
92
- * Allows you to display a placeholder text: [Empty heading] for empty headings.
93
- *
94
- * By default, the display of a placeholder is disabled. To enable it, set this parameter to true.
95
- *
96
- * **Note**: This setting also affects Table of contents feature.
97
- */
98
- showEmptyHeadings?: boolean;
54
+ /**
55
+ * The container element for the document outline to render. This should be a reference to an existing
56
+ * container element in the DOM.
57
+ */
58
+ container?: HTMLElement;
59
+ /**
60
+ * An array of {@glink framework/architecture/editing-engine#model model} element names considered
61
+ * as headings in the document outline.
62
+ *
63
+ * The index of the heading in the array reflects the heading nesting level. It can be used e.g. for reducing
64
+ * the number of visible headings.
65
+ *
66
+ * ```ts
67
+ * ClassicEditor
68
+ * .create( {
69
+ * plugins: [ DocumentOutline, /* ... *\/ ],
70
+ * documentOutline: {
71
+ * headings: [ 'heading1', 'heading2', /* ... *\/ ],
72
+ * // ...
73
+ * }
74
+ * } )
75
+ * .then( /* ... *\/ )
76
+ * .catch( /* ... *\/ );
77
+ * ```
78
+ *
79
+ * If this configuration is not defined, the feature will use the following defaults instead:
80
+ *
81
+ * 1. If the {@glink features/headings Headings feature} is loaded, it equals
82
+ * * {@link module:heading/headingconfig~HeadingConfig#options `config.heading.options`}.
83
+ * * `[ 'heading1', 'heading2', 'heading3' ]` if `config.heading.options` is not defined.
84
+ * 2. If the {@glink features/html/general-html-support General HTML Support} feature is loaded, it equals
85
+ * `[ 'htmlH1', 'htmlH2', 'htmlH3', 'htmlH4', 'htmlH5', 'htmlH6' ]`.
86
+ *
87
+ * **Note**: The Headings feature takes precedence over the General HTML Support feature when
88
+ * both are loaded.
89
+ */
90
+ headings?: Array<string>;
91
+ /**
92
+ * Allows you to display a placeholder text: [Empty heading] for empty headings.
93
+ *
94
+ * By default, the display of a placeholder is disabled. To enable it, set this parameter to true.
95
+ *
96
+ * **Note**: This setting also affects Table of contents feature.
97
+ */
98
+ showEmptyHeadings?: boolean;
99
99
  }
package/dist/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
1
  /**
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
- */
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
- * @module document-outline
7
- */
8
- export { DocumentOutline, type DocumentOutlineConfig } from './documentoutline.js';
9
- export { DocumentOutlineUI } from './documentoutline/documentoutlineui.js';
10
- export { DocumentOutlineUtils } from './documentoutline/documentoutlineutils.js';
11
- export { TableOfContents, type DocumentOutlineTableOfContentsConfig } from './tableofcontents.js';
12
- export { TableOfContentsCommand } from './tableofcontents/tableofcontentscommand.js';
13
- export { TableOfContentsEditing } from './tableofcontents/tableofcontentsediting.js';
14
- export { TableOfContentsUI } from './tableofcontents/tableofcontentsui.js';
15
- export { HeadingId } from './tableofcontents/headingid.js';
16
- import './augmentation.js';
6
+ * @module document-outline
7
+ */
8
+ export { DocumentOutline, type DocumentOutlineConfig } from "./documentoutline.js";
9
+ export { DocumentOutlineUI } from "./documentoutline/documentoutlineui.js";
10
+ export { DocumentOutlineUtils } from "./documentoutline/documentoutlineutils.js";
11
+ export { TableOfContents, type DocumentOutlineTableOfContentsConfig } from "./tableofcontents.js";
12
+ export { TableOfContentsCommand } from "./tableofcontents/tableofcontentscommand.js";
13
+ export { TableOfContentsEditing } from "./tableofcontents/tableofcontentsediting.js";
14
+ export { TableOfContentsUI } from "./tableofcontents/tableofcontentsui.js";
15
+ export { HeadingId } from "./tableofcontents/headingid.js";
16
+ import "./augmentation.js";
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x51bf14,Command as _0x2edbd9}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x137f34,throttle as _0x19866b}from'es-toolkit/compat';import{ModelText as _0x43b29d,ModelTreeWalker as _0x1747d9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0xb4be4a,diffToChanges as _0x28a9d2,scrollAncestorsToShowTarget as _0x2ef5bc,CKEditorError as _0x19c408,global as _0x25cfee,Rect as _0xbc11d9,uid as _0x4b11c2,priorities as _0x29858f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x5b81c1,ButtonView as _0x150438,MenuBarMenuListItemButtonView as _0x4c6456}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x33fd2d,toWidget as _0x398b94}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0xa7ce62}from'@ckeditor/ckeditor5-icons/dist/index.js';function I(_0x44b21c){let _0x1fa502='';for(const _0x2df192 of _0x44b21c['getChildren']())_0x2df192 instanceof _0x43b29d&&(_0x1fa502+=_0x2df192['data']);return _0x1fa502;}class DocumentOutlineUtils extends _0x51bf14{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x13ec21=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x2a18d0=[];_0x13ec21['model']['document']['on']('change',_0x137f34(()=>{const _0x4792a4=_0x2a18d0;_0x2a18d0=this['_getOutlineDefinitions']();const _0x391f5a=_0xb4be4a(_0x4792a4,_0x2a18d0,(_0x1345e8,_0x5b152c)=>_0x1345e8['level']===_0x5b152c['level']&&_0x1345e8['text']===_0x5b152c['text']&&_0x1345e8['modelElement']===_0x5b152c['modelElement']),_0x360f1f=_0x28a9d2(_0x391f5a,_0x2a18d0),_0x51f066=this['_getActiveHeading'](),_0x246c2d=_0x2a18d0['findIndex'](_0x7293dd=>_0x7293dd['modelElement']===_0x51f066);_0x360f1f['length']&&this['fire']('change',{'outlineDefinitions':_0x2a18d0,'activeItemIndex':_0x246c2d,'outlineChanges':_0x360f1f}),this['fire']('activeItemIndex',{'index':_0x246c2d});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x8e0962=this['editor'],_0x1851d4=[],_0x24894b=this['_headingNames'];for(const _0xb7ae80 of _0x8e0962['model']['document']['getRootNames']())_0x3c19fa(_0x8e0962['model']['document']['getRoot'](_0xb7ae80));function _0x3c19fa(_0x5887c7){for(const _0x1c66ae of _0x5887c7['getChildren']())_0x1c66ae['is']('element')&&(_0x24894b['includes'](_0x1c66ae['name'])&&_0x1851d4['push']({'level':_0x24894b['indexOf'](_0x1c66ae['name'])+0x1,'text':I(_0x1c66ae),'modelElement':_0x1c66ae}),_0x3c19fa(_0x1c66ae));}return _0x1851d4;}['_getActiveHeading'](){const _0x8aae14=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x483d68=new _0x1747d9({'direction':'backward','startPosition':_0x8aae14});for(const _0x34732e of _0x483d68)if(_0x34732e['item']['is']('element')&&this['_headingNames']['includes'](_0x34732e['item']['name']))return _0x34732e['item'];}['_getHeadingNames'](){const _0x2f6811=this['editor']['config']['get']('documentOutline.headings');return _0x2f6811||function(_0x114757){const _0x2933f1=_0x114757['config']['get']('heading.options');return _0x2933f1?_0x2933f1['reduce']((_0x31a447,_0x21ee35)=>('paragraph'!==_0x21ee35['model']&&_0x31a447['push'](_0x21ee35['model']),_0x31a447),[]):_0x114757['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x16aba7=this['editor'],_0x1549e8=['h1','h2','h3','h4','h5','h6'],_0x44bf00=[];for(const _0x5c3f0c of _0x1549e8){const _0x215685=_0x16aba7['editing']['view']['domConverter']['domToView'](document['createElement'](_0x5c3f0c)),_0x440d43=_0x16aba7['data']['toModel'](_0x215685)['getChild'](0x0);_0x440d43?.['is']('element')&&_0x44bf00['push'](_0x440d43['name']);}this['_headingNames']=_0x44bf00;}}function C(_0xbc17a0,_0x26bf2c){const t=_0xbc17a0['t'];switch(_0x26bf2c){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 _0x26bf2c;}}class DocumentOutlineItemView extends _0x5b81c1{constructor(_0x1665c0,_0x4b55f8=!0x1){super(_0x1665c0);const _0xd4b4fe=this['bindTemplate'],_0x187e4b=_0x4b55f8?'['+C(_0x1665c0,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x189d7b=>!_0x189d7b),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0xd4b4fe['to']('level',_0x401d71=>'ck-document-outline__item_level-'+_0x401d71),_0xd4b4fe['if']('isActive','ck-document-outline__item_active'),_0xd4b4fe['if']('isEmpty','ck-document-outline__item_empty')],'title':_0xd4b4fe['to']('text')},'children':[{'text':_0xd4b4fe['to']('text',_0x5a8f60=>_0x5a8f60||_0x187e4b)}],'on':{'click':_0xd4b4fe['to']('click')}});}}class DocumentOutlineView extends _0x5b81c1{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x18335d,_0x26e5b3=!0x1,_0x58ed67){super(_0x18335d),this['showEmptyHeadingText']=_0x26e5b3,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x58ed67,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x3d6b44,_0x141a39,_0x3f52a1,_0x1fe548)=>{this['_setActiveItem'](_0x1fe548,_0x3f52a1);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x18335d['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x18335d,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x3e4cb5){_0x3e4cb5['forEach'](_0xd331bc=>{'insert'==_0xd331bc['type']?this['_insertItem'](_0xd331bc['index'],..._0xd331bc['values']):'delete'==_0xd331bc['type']&&this['_deleteItem'](_0xd331bc['index'],_0xd331bc['howMany']);});}['_setActiveItem'](_0x511c4d,_0x528b27){if(-0x1!==_0x511c4d){const _0x1f5208=this['items']['get'](_0x511c4d);_0x1f5208&&(_0x1f5208['isActive']=!0x1);}-0x1!==_0x528b27&&(this['items']['get'](_0x528b27)['isActive']=!0x0,this['_scrollToItem'](_0x528b27));}['_insertItem'](_0x49c250,..._0x83d8c1){const _0x3ebe95=_0x83d8c1['map']((_0xfa5e5f,_0xc731b3)=>{const _0x533806=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x533806['text']=_0xfa5e5f['text'],_0x533806['level']=_0xfa5e5f['level'],_0x49c250+_0xc731b3===this['activeItemIndex']&&(_0x533806['isActive']=!0x0),_0x533806;});this['items']['addMany'](_0x3ebe95,_0x49c250);}['_deleteItem'](_0x2db276,_0x2ebde2){do{this['items']['remove'](_0x2db276);}while(--_0x2ebde2);}['_handleItemClick'](_0x54e624){const _0x46da72=this['items']['getIndex'](_0x54e624['source']);this['fire']('itemSelected',_0x46da72);}['_scrollToItem'](_0x365361){_0x2ef5bc(this['items']['get'](_0x365361)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class DocumentOutlineUI extends _0x51bf14{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a7cf9){super(_0x5a7cf9),this['view']=new DocumentOutlineView(_0x5a7cf9['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x19866b(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0xba9ded=this['editor'],_0x530f6e=_0xba9ded['plugins']['get']('DocumentOutlineUtils');let _0x4deea1=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0xba9ded['config']['get']('documentOutline.container'))throw new _0x19c408('document-outline-container-not-provided',{'editor':_0xba9ded});_0xba9ded['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x530f6e['on']('change',this['_handleOutlineChange']['bind'](this)),_0x530f6e['on']('activeItemIndex',(_0x5739d9,{index:_0x1a77ab})=>this['_setActiveViewItem'](_0x1a77ab)),this['view']['on']('itemSelected',(_0x3e130a,_0x432cc1)=>{_0x4deea1=!0x0,this['_handleItemSelected'](_0x432cc1);}),this['view']['listenTo'](_0x25cfee['document'],'scroll',()=>{_0x4deea1?_0x4deea1=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x25cfee['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x36a10b){const _0x376bc9=_0x3054fb([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]),_0x5f5784=0x1cb264a3,_0x1f133e=0x1cb5ef73^_0x5f5784,_0x55aa0c=window[_0x3054fb([0x44,0x61,0x74,0x65])][_0x3054fb([0x6e,0x6f,0x77])](),_0x567ad4=_0x36a10b[_0x3054fb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e7943=new window[(_0x3054fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2689f8=>{_0x567ad4[_0x3054fb([0x6f,0x6e,0x63,0x65])](_0x3054fb([0x72,0x65,0x61,0x64,0x79]),_0x2689f8);}),_0x4241d7={[_0x3054fb([0x6b,0x74,0x79])]:_0x3054fb([0x45,0x43]),[_0x3054fb([0x75,0x73,0x65])]:_0x3054fb([0x73,0x69,0x67]),[_0x3054fb([0x63,0x72,0x76])]:_0x3054fb([0x50,0x2d,0x32,0x35,0x36]),[_0x3054fb([0x78])]:_0x3054fb([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]),[_0x3054fb([0x79])]:_0x3054fb([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]),[_0x3054fb([0x61,0x6c,0x67])]:_0x3054fb([0x45,0x53,0x32,0x35,0x36])},_0x706687=_0x567ad4[_0x3054fb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3054fb([0x67,0x65,0x74])](_0x3054fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x199832(){let _0x335bda,_0x1fbd99=null,_0x1b3840=null;try{if(_0x706687==_0x3054fb([0x47,0x50,0x4c]))return _0x3054fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x335bda=_0x200708(),!_0x335bda)return _0x3054fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x335bda[_0x3054fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b3840=_0x8260d3(_0x335bda[_0x3054fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x335bda[_0x3054fb([0x6a,0x74,0x69])])),await _0x1b0d0d()?_0x49b9f9()?_0x2c4751()?_0x3054fb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x567247()?(_0x335bda[_0x3054fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3054fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1fbd99=_0x243b41(_0x3054fb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x353418()):_0x3054fb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3054fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3054fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3054fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c4751(){const _0x5b7da3=[_0x3054fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3054fb([0x74,0x72,0x69,0x61,0x6c])][_0x3054fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x335bda[_0x3054fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55aa0c/0x3e8:0xe10*_0x1f133e;return _0x335bda[_0x3054fb([0x65,0x78,0x70])]<_0x5b7da3;}function _0x49b9f9(){const _0x57975d=_0x335bda[_0x3054fb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x57975d&&(!!_0x57975d[_0x3054fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3054fb([0x2a]))||(!!_0x57975d[_0x3054fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3054fb([0x44,0x4f]))||(!!_0x57975d[_0x3054fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3054fb([0x50,0x50]))||!(!_0x57975d[_0x3054fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3054fb([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x54f60d()))));}function _0x567247(){const _0x3e7350=_0x335bda[_0x3054fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e7350||0x0==_0x3e7350[_0x3054fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x340152}=new URL(window[_0x3054fb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3e7350[_0x3054fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x340152))return!0x0;const _0x1b17a7=_0x340152[_0x3054fb([0x73,0x70,0x6c,0x69,0x74])](_0x3054fb([0x2e]));return _0x3e7350[_0x3054fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a5751=>_0x5a5751[_0x3054fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3054fb([0x2a])))[_0x3054fb([0x6d,0x61,0x70])](_0x33828b=>_0x33828b[_0x3054fb([0x73,0x70,0x6c,0x69,0x74])](_0x3054fb([0x2e])))[_0x3054fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21c864=>_0x21c864[_0x3054fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1b17a7[_0x3054fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3054fb([0x6d,0x61,0x70])](_0x39b9a1=>Array(_0x1b17a7[_0x3054fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x39b9a1[_0x3054fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3054fb([0x66,0x69,0x6c,0x6c])](_0x39b9a1[0x0]===_0x3054fb([0x2a])?_0x3054fb([0x2a]):'')[_0x3054fb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x39b9a1))[_0x3054fb([0x73,0x6f,0x6d,0x65])](_0x30cc7b=>_0x1b17a7[_0x3054fb([0x65,0x76,0x65,0x72,0x79])]((_0x287431,_0x1059f1)=>_0x30cc7b[_0x1059f1]===_0x287431||_0x30cc7b[_0x1059f1]===_0x3054fb([0x2a])));}function _0x353418(){return _0x1fbd99&&_0x1b3840?new window[(_0x3054fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53645e,_0x25e686)=>{_0x1fbd99[_0x3054fb([0x74,0x68,0x65,0x6e])](_0x53645e,_0x25e686),_0x1b3840[_0x3054fb([0x74,0x68,0x65,0x6e])](_0x4da8ea=>{_0x4da8ea!=_0x3054fb([0x56,0x61,0x6c,0x69,0x64])&&_0x53645e(_0x4da8ea);},_0x25e686);}):_0x1fbd99||_0x1b3840||_0x3054fb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x8260d3(_0x3b1e85,_0x3a7eeb){return new window[(_0x3054fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b3f88=>{if(_0x1c52da())return _0x3b3f88(_0x3054fb([0x56,0x61,0x6c,0x69,0x64]));_0x26c2bf(),_0x567ad4[_0x3054fb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3054fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x496f91=!0x1;const _0x1b6060=_0x4b11c2();function _0x270a6e(_0x462b47){return!!_0x462b47&&(typeof _0x462b47===_0x3054fb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x462b47===_0x3054fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x462b47[_0x3054fb([0x74,0x68,0x65,0x6e])]===_0x3054fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x462b47[_0x3054fb([0x63,0x61,0x74,0x63,0x68])]===_0x3054fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x320803(_0x1077ea){_0x929592(_0x1077ea)[_0x3054fb([0x74,0x68,0x65,0x6e])](_0x56d6cf=>{if(!_0x56d6cf||_0x56d6cf[_0x3054fb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3054fb([0x6f,0x6b]))return _0x3054fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2921d5(_0x4a019a(_0x1b6060+_0x3a7eeb))!=_0x56d6cf[_0x3054fb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3054fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3054fb([0x56,0x61,0x6c,0x69,0x64]);})[_0x3054fb([0x74,0x68,0x65,0x6e])](_0x53cdb8=>(_0x569cf0(),_0x53cdb8),()=>{const _0x3541e3=_0x530378();return null==_0x3541e3?(_0x569cf0(),_0x3054fb([0x56,0x61,0x6c,0x69,0x64])):_0x3054fb(_0x55aa0c-_0x3541e3>(0x38bee0a3^_0x5f5784)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3054fb([0x74,0x68,0x65,0x6e])](_0x3b3f88)[_0x3054fb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b3f88(_0x3054fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e349b=0x1c848a23^_0x5f5784;function _0x569cf0(){const _0x556810=_0x3054fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x2921d5(_0x4a019a(_0x3b1e85)),_0x41566b=_0x1b8d08(_0x2921d5(window[_0x3054fb([0x4d,0x61,0x74,0x68])][_0x3054fb([0x63,0x65,0x69,0x6c])](_0x55aa0c/_0x2e349b)));window[_0x3054fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3054fb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x556810,_0x41566b);}function _0x530378(){const _0x4f99f1=_0x3054fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x2921d5(_0x4a019a(_0x3b1e85)),_0x5b999b=window[_0x3054fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3054fb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f99f1);return _0x5b999b?window[_0x3054fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b8d08(_0x5b999b),0x10)*_0x2e349b:null;}function _0x929592(_0x1fcdf2){return new window[(_0x3054fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d7d26,_0x417ced)=>{_0x1fcdf2[_0x3054fb([0x74,0x68,0x65,0x6e])](_0x3d7d26,_0x417ced),window[_0x3054fb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x417ced,0x1cb3b063^_0x5f5784);});}}_0x567ad4[_0x3054fb([0x6f,0x6e])](_0x3054fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35b2c2,_0x349f2a)=>{if(_0x349f2a[0x0]!=_0x3b1e85)return _0x3b3f88(_0x3054fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x349f2a[0x1]={..._0x349f2a[0x1],[_0x3054fb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b6060};},{[_0x3054fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3054fb([0x68,0x69,0x67,0x68])}),_0x567ad4[_0x3054fb([0x6f,0x6e])](_0x3054fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5835b0=>{_0x270a6e(_0x5835b0[_0x3054fb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x496f91=!0x0,_0x320803(_0x5835b0[_0x3054fb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3054fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3054fb([0x6c,0x6f,0x77])}),_0x5e7943[_0x3054fb([0x74,0x68,0x65,0x6e])](()=>{_0x496f91||_0x3b3f88(_0x3054fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c52da(){return _0x567ad4[_0x3054fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3054fb([0x76,0x69,0x65,0x77])][_0x3054fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3054fb([0x61,0x75,0x74,0x6f]);}function _0x26c2bf(){_0x567ad4[_0x3054fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3054fb([0x76,0x69,0x65,0x77])][_0x3054fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3054fb([0x61,0x75,0x74,0x6f]);}}function _0x243b41(_0x23392e){const _0x488486=[new window[(_0x3054fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6f7db6=>setTimeout(_0x6f7db6,0x1cbb5a6f^_0x5f5784)),_0x5e7943[_0x3054fb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3054fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5486ea=>{let _0xd8af95=0x0;_0x567ad4[_0x3054fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3054fb([0x6f,0x6e])](_0x3054fb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x508cf2,_0x3f769a)=>{_0x3f769a[0x0][_0x3054fb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd8af95++,_0xd8af95==(0x1cb2614b^_0x5f5784)&&(_0x5486ea(),_0x508cf2[_0x3054fb([0x6f,0x66,0x66])]());});}))];return window[_0x3054fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3054fb([0x72,0x61,0x63,0x65])](_0x488486)[_0x3054fb([0x74,0x68,0x65,0x6e])](()=>_0x23392e);}async function _0x54253b(){await _0x5e7943,_0x567ad4[_0x3054fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3054fb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1265ea,_0x567ad4[_0x3054fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3054fb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1265ea,_0x567ad4[_0x3054fb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3054fb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54f60d(){return window[_0x3054fb([0x67,0x6c,0x6f,0x62])]&&window[_0x3054fb([0x67,0x6c,0x6f,0x62])][_0x3054fb([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x540cd0(_0x3f4f82){const _0x19a640=_0x294270();_0x567ad4[_0x19a640]=_0x3054fb([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])+_0x3f4f82,_0x3f4f82!=_0x3054fb([0x56,0x61,0x6c,0x69,0x64])&&_0x54253b();}function _0x294270(){const _0x57973c=window[_0x3054fb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3054fb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3054fb([0x6e,0x6f,0x77])]())[_0x3054fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3054fb([0x2e]),'');let _0x19fe34=_0x3054fb([0x61]);for(let _0x19a851=0x0;_0x19a851<_0x57973c[_0x3054fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19a851+=0x2){let _0x816caf=window[_0x3054fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57973c[_0x3054fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19a851,_0x19a851+0x2));_0x816caf>=_0x376bc9[_0x3054fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x816caf-=_0x376bc9[_0x3054fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x19fe34+=_0x376bc9[_0x816caf];}return _0x19fe34;}function _0x200708(){const _0x5b091a=_0x706687[_0x3054fb([0x73,0x70,0x6c,0x69,0x74])](_0x3054fb([0x2e]));if(0x3!=_0x5b091a[_0x3054fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4dfc48(_0x5b091a[0x1]);function _0x4dfc48(_0x491f69){const _0x34d003=_0x511b9c(_0x491f69);return _0x34d003&&_0x43b208()?_0x34d003:null;function _0x43b208(){const _0x1338a0=_0x34d003[_0x3054fb([0x6a,0x74,0x69])],_0x35359b=window[_0x3054fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1338a0[_0x3054fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1338a0[_0x3054fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31413e={..._0x34d003,[_0x3054fb([0x6a,0x74,0x69])]:_0x1338a0[_0x3054fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1338a0[_0x3054fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31413e[_0x3054fb([0x76,0x63])],_0x4a019a(_0x31413e)==_0x35359b;}}}async function _0x1b0d0d(){let _0x1dbdbf=!0x0;try{const _0x5d0758=_0x706687[_0x3054fb([0x73,0x70,0x6c,0x69,0x74])](_0x3054fb([0x2e])),[_0x264f49,_0x3677a6,_0x21a694]=_0x5d0758;return _0x3b20f7(_0x264f49),await _0xa93288(_0x264f49,_0x3677a6,_0x21a694),_0x1dbdbf;}catch{return!0x1;}function _0x3b20f7(_0x398789){const _0x4964a9=_0x511b9c(_0x398789);_0x4964a9&&_0x4964a9[_0x3054fb([0x61,0x6c,0x67])]==_0x3054fb([0x45,0x53,0x32,0x35,0x36])||(_0x1dbdbf=!0x1);}async function _0xa93288(_0x1d9625,_0x10c015,_0x2b8562){const _0x56b727=window[_0x3054fb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3054fb([0x66,0x72,0x6f,0x6d])](_0x25d89b(_0x2b8562),_0x487d07=>_0x487d07[_0x3054fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x545cf7=new window[(_0x3054fb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3054fb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d9625+_0x3054fb([0x2e])+_0x10c015),_0xaa4619=window[_0x3054fb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3054fb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xaa4619)return;const _0x5a8235=await _0xaa4619[_0x3054fb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3054fb([0x6a,0x77,0x6b]),_0x4241d7,{[_0x3054fb([0x6e,0x61,0x6d,0x65])]:_0x3054fb([0x45,0x43,0x44,0x53,0x41]),[_0x3054fb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3054fb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3054fb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xaa4619[_0x3054fb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3054fb([0x6e,0x61,0x6d,0x65])]:_0x3054fb([0x45,0x43,0x44,0x53,0x41]),[_0x3054fb([0x68,0x61,0x73,0x68])]:{[_0x3054fb([0x6e,0x61,0x6d,0x65])]:_0x3054fb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a8235,_0x56b727,_0x545cf7)||(_0x1dbdbf=!0x1);}}function _0x511b9c(_0x406be8){return _0x406be8[_0x3054fb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3054fb([0x65,0x79]))?JSON[_0x3054fb([0x70,0x61,0x72,0x73,0x65])](_0x25d89b(_0x406be8)):null;}function _0x25d89b(_0x1e19ed){return window[_0x3054fb([0x61,0x74,0x6f,0x62])](_0x1e19ed[_0x3054fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3054fb([0x2b]))[_0x3054fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3054fb([0x2f])));}function _0x4a019a(_0xe85865){let _0x57b9ec=0x1505;function _0x12f018(_0x45bbcb){for(let _0x56f229=0x0;_0x56f229<_0x45bbcb[_0x3054fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56f229++){const _0x39db7a=_0x45bbcb[_0x3054fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56f229);_0x57b9ec=(_0x57b9ec<<0x5)+_0x57b9ec+_0x39db7a,_0x57b9ec&=_0x57b9ec;}}function _0x5e5633(_0x3b38cf){Array[_0x3054fb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b38cf)?_0x3b38cf[_0x3054fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e5633):_0x3b38cf&&typeof _0x3b38cf==_0x3054fb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3054fb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b38cf)[_0x3054fb([0x73,0x6f,0x72,0x74])]()[_0x3054fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf1d718,_0x414d51])=>{_0x12f018(_0xf1d718),_0x5e5633(_0x414d51);}):_0x12f018(window[_0x3054fb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b38cf));}return _0x5e5633(_0xe85865),_0x57b9ec>>>0x0;}function _0x2921d5(_0x569eb4){return _0x569eb4[_0x3054fb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3054fb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3054fb([0x30]));}function _0x1b8d08(_0x3907fe){return _0x3907fe[_0x3054fb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3054fb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3054fb([0x6a,0x6f,0x69,0x6e])]('');}function _0x1265ea(){}function _0x3054fb(_0x10e25c){return _0x10e25c['map'](_0x2e6870=>String['fromCharCode'](_0x2e6870))['join']('');}_0x540cd0(await _0x199832());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x57980c,{outlineDefinitions:_0x2fabc5,outlineChanges:_0x5f088c}){this['_currentOutlineDefinitions']=_0x2fabc5,this['view']['sync'](_0x5f088c);}['_setActiveViewItem'](_0x171923){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x171923]&&(this['view']['activeItemIndex']=_0x171923);}['_handleItemSelected'](_0x2ed3ec){const _0x4d3842=this['_currentOutlineDefinitions'][_0x2ed3ec]['modelElement'];this['editor']['model']['change'](_0x3af36f=>{_0x3af36f['setSelection'](_0x4d3842,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x2ed3ec);}['_updateActiveDefinitionOnViewportChange'](){const _0x17bd06=this['editor'];let _0x4cad7f;for(const _0x19edee of _0x17bd06['model']['document']['getRootNames']()){const _0x211f4b=_0x17bd06['editing']['view']['getDomRoot'](_0x19edee),_0x4e3540=_0x211f4b&&new _0xbc11d9(_0x211f4b)['getVisible']();if(_0x4e3540){const _0x101e3a=new _0xbc11d9(_0x25cfee['window'])['getIntersection'](_0x4e3540);_0x101e3a&&(_0x4cad7f=_0x101e3a['top']+0.25*_0x101e3a['height']);}}if(void 0x0===_0x4cad7f)return;const _0x102e12=v(_0x17bd06['editing'],this['_currentOutlineDefinitions'],_0x4cad7f);_0x102e12?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x102e12)):this['_setActiveViewItem'](-0x1);}}function v(_0x54fb58,_0x11e2ca,_0x11d21f,_0x25fbed=0x0,_0x587b97=_0x11e2ca['length']-0x1){const _0x445264=Math['floor'](_0x25fbed+(_0x587b97-_0x25fbed)/0x2);if(_0x587b97>=_0x25fbed){const _0x4a0bf0=_0x11e2ca[_0x445264],_0x533e68=_0x54fb58['mapper']['toViewElement'](_0x4a0bf0['modelElement']);if(!_0x533e68)return null;const _0x3b6512=_0x54fb58['view']['domConverter']['mapViewToDom'](_0x533e68);return new _0xbc11d9(_0x3b6512)['bottom']>_0x11d21f?v(_0x54fb58,_0x11e2ca,_0x11d21f,_0x25fbed,_0x445264-0x1):v(_0x54fb58,_0x11e2ca,_0x11d21f,_0x445264+0x1,_0x587b97);}return _0x445264<0x0?null:_0x11e2ca[_0x445264];}class DocumentOutline extends _0x51bf14{['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 _0x18b8c5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7a026;for(const _0xf7004a in _0x18b8c5){const _0x534766=_0xf7004a,_0x24f9d7=_0x18b8c5[_0x534766];if('documentOutlineLicenseKeyValid'==_0x24f9d7||'documentOutlineLicenseKeyInvalid'==_0x24f9d7||'documentOutlineLicenseKeyExpired'==_0x24f9d7||'documentOutlineLicenseKeyDomainLimit'==_0x24f9d7||'documentOutlineLicenseKeyNotAllowed'==_0x24f9d7||'documentOutlineLicenseKeyEvaluationLimit'==_0x24f9d7||'documentOutlineLicenseKeyUsageLimit'==_0x24f9d7){delete _0x18b8c5[_0x534766],_0x7a026=_0x24f9d7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x7a026&&_0x18b8c5['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x7a026&&_0x18b8c5['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x7a026&&_0x18b8c5['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x7a026&&_0x18b8c5['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x7a026&&_0x18b8c5['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x7a026&&_0x18b8c5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends _0x2edbd9{['execute'](){this['editor']['model']['change'](_0x2360f6=>{this['editor']['model']['insertObject'](_0x2360f6['createElement']('tableOfContents'));});}['refresh'](){const _0x7135a5=this['editor']['model'],_0x5d01fc=_0x7135a5['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x5d01fc&&_0x7135a5['schema']['findAllowedParent'](_0x5d01fc,'tableOfContents'));}}class HeadingId extends _0x51bf14{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3536e3=this['editor'];if(_0x3536e3['config']['get']('headingId.modelAttributeName'))return;const {viewNames:_0xe74472,modelNames:_0x47541a}=function(_0x4b7d0b){const _0x591fd6=new Set(),_0x42f421=new Set();if(!_0x4b7d0b)return{'viewNames':_0x591fd6,'modelNames':_0x42f421};for(const _0x382978 of _0x4b7d0b){if('paragraph'===_0x382978['model'])continue;const _0x23d821='string'==typeof _0x382978['view']?_0x382978['view']:_0x382978['view']['name'];_0x591fd6['add'](_0x23d821),_0x42f421['add'](_0x382978['model']);}return _0x591fd6['has']('h1')||(_0x591fd6['add']('h1'),_0x42f421['add']('heading1')),{'viewNames':_0x591fd6,'modelNames':_0x42f421};}(this['editor']['config']['get']('heading.options'));for(const _0x1b1f07 of _0xe74472)this['_customUpcastHeadingsConversion'](_0x1b1f07);for(const _0x22c416 of _0x47541a)this['_customDataDowncastHeadingsConversion'](_0x22c416),_0x3536e3['model']['schema']['isRegistered'](_0x22c416)&&_0x3536e3['model']['schema']['extend'](_0x22c416,{'allowAttributes':'headingId'});this['_registerHeadingIdAttributePostfixer'](_0x47541a);}['_customUpcastHeadingsConversion'](_0x121be5){this['editor']['conversion']['for']('upcast')['add'](_0x3acffe=>_0x3acffe['on']('element:'+_0x121be5,(_0xb297e0,_0x14b32c,_0x456c05)=>{const {consumable:_0x225920,writer:_0x1bd56a}=_0x456c05,_0x55fbbb=_0x14b32c['viewItem']['getAttribute']('id'),_0x40a9b0=_0x14b32c['modelRange']?.['getContainedElement']();if(_0x40a9b0)return _0x55fbbb&&_0x55fbbb['length']||_0x40a9b0['hasAttribute']('headingId')?void(_0x225920['consume'](_0x14b32c['viewItem'],{'attributes':['id']})&&_0x1bd56a['setAttribute']('headingId',_0x55fbbb,_0x40a9b0)):(_0x225920['consume'](_0x14b32c['viewItem'],{'attributes':['id']}),void _0x1bd56a['setAttribute']('headingId',_0x4b11c2(),_0x40a9b0));},{'priority':_0x29858f['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x69fc83){this['editor']['conversion']['for']('downcast')['add'](_0x26d29a=>_0x26d29a['on']('attribute:headingId:'+_0x69fc83,(_0x281b67,_0x540eac,_0x1ffdc2)=>{if(!_0x1ffdc2['consumable']['consume'](_0x540eac['item'],_0x281b67['name']))return;const _0x5d5efa=_0x540eac['item']['getAttribute']('headingId'),_0x550765=_0x1ffdc2['mapper']['toViewElement'](_0x540eac['item']);_0x1ffdc2['writer']['setAttribute']('id',_0x5d5efa,_0x550765);}));}['_registerHeadingIdAttributePostfixer'](_0x4d4932){const _0x98ef0=this['editor'],_0x4d7e3c=new Set(),_0x16fa09=new Set();function _0x5c4f28(_0x46fa1a,_0x21334d){const _0x5421e7=_0x4b11c2();return _0x16fa09['add'](_0x5421e7),_0x46fa1a['setAttribute']('headingId',_0x5421e7,_0x21334d),_0x5421e7;}function _0x2413f8(_0x4d73eb,_0x39a18c){_0x4d73eb['removeAttribute']('headingId',_0x39a18c);}_0x98ef0['model']['document']['registerPostFixer'](_0x132417=>{const _0x175875=_0x98ef0['model']['document']['differ']['getChanges']();let _0x37ce52=!0x1;for(const _0x3d87bd of _0x175875)if('insert'==_0x3d87bd['type']&&_0x3d87bd['name']){if(_0x4d4932['has'](_0x3d87bd['name'])){const _0x40be24=_0x3d87bd['attributes']['get']('headingId');'string'==typeof _0x40be24?_0x4d7e3c['has'](_0x40be24)?(_0x5c4f28(_0x132417,_0x3d87bd['position']['nodeAfter']),_0x37ce52=!0x0):_0x16fa09['add'](_0x40be24):(_0x5c4f28(_0x132417,_0x3d87bd['position']['nodeAfter']),_0x37ce52=!0x0);}else'string'==typeof _0x3d87bd['attributes']['get']('headingId')&&(_0x2413f8(_0x132417,_0x3d87bd['position']['nodeAfter']),_0x37ce52=!0x0);}else{if('remove'==_0x3d87bd['type']){const _0x241171=_0x3d87bd['attributes']['get']('headingId');'string'==typeof _0x241171&&_0x4d7e3c['delete'](_0x241171);}}return _0x37ce52;}),_0x98ef0['model']['document']['on']('change',()=>{_0x16fa09['forEach'](_0x2acb41=>_0x4d7e3c['add'](_0x2acb41)),_0x16fa09['clear']();});}}class TableOfContentsEditing extends _0x51bf14{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x33fd2d,DocumentOutlineUtils,HeadingId];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0xf2f192){super(_0xf2f192),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x439ecf=this['editor'],_0x13a594=_0x439ecf['editing']['view']['document'];_0x439ecf['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x439ecf['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x13a594,'click',(_0xb82313,_0x356cb9)=>{if(!_0x356cb9['target'])return;const _0x5e0321=_0x356cb9['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x5e0321)&&(_0x356cb9['domEvent']['preventDefault'](),_0xb82313['stop'](),this['_handleScrollToHeading'](_0x5e0321));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x439ecf['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x439ecf));const _0xcea403=_0x439ecf['config']['get']('tableOfContents.headings');if(_0xcea403&&_0xcea403['length'])this['listenTo'](_0x439ecf['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0xcea403),this['_updateTableOfContentsElements']();});else _0x439ecf['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x3cab0b,_0x192f64)=>{this['_currentOutlineDefinitions']=_0x192f64['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x439ecf['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x599890){const _0x33cf14=_0x56c0da([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]),_0x1e358b=0x6b9b05fd,_0x4df8d9=0x6b9c8e2d^_0x1e358b,_0x29e4db=window[_0x56c0da([0x44,0x61,0x74,0x65])][_0x56c0da([0x6e,0x6f,0x77])](),_0x1d8729=_0x599890[_0x56c0da([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x135a5e=new window[(_0x56c0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7d4000=>{_0x1d8729[_0x56c0da([0x6f,0x6e,0x63,0x65])](_0x56c0da([0x72,0x65,0x61,0x64,0x79]),_0x7d4000);}),_0x1d1591={[_0x56c0da([0x6b,0x74,0x79])]:_0x56c0da([0x45,0x43]),[_0x56c0da([0x75,0x73,0x65])]:_0x56c0da([0x73,0x69,0x67]),[_0x56c0da([0x63,0x72,0x76])]:_0x56c0da([0x50,0x2d,0x32,0x35,0x36]),[_0x56c0da([0x78])]:_0x56c0da([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]),[_0x56c0da([0x79])]:_0x56c0da([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]),[_0x56c0da([0x61,0x6c,0x67])]:_0x56c0da([0x45,0x53,0x32,0x35,0x36])},_0x4cf5f1=_0x1d8729[_0x56c0da([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x56c0da([0x67,0x65,0x74])](_0x56c0da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4c286c(){let _0x52da,_0x48ba0b=null,_0x13bd3f=null;try{if(_0x4cf5f1==_0x56c0da([0x47,0x50,0x4c]))return _0x56c0da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52da=_0x5357a2(),!_0x52da)return _0x56c0da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52da[_0x56c0da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13bd3f=_0x1d9ea7(_0x52da[_0x56c0da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52da[_0x56c0da([0x6a,0x74,0x69])])),await _0x4a73d0()?_0x1c5843()?_0x1437fb()?_0x56c0da([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c2a8d()?(_0x52da[_0x56c0da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56c0da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x48ba0b=_0x4b1a95(_0x56c0da([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x518811()):_0x56c0da([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x56c0da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x56c0da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x56c0da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1437fb(){const _0x11a246=[_0x56c0da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x56c0da([0x74,0x72,0x69,0x61,0x6c])][_0x56c0da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52da[_0x56c0da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x29e4db/0x3e8:0xe10*_0x4df8d9;return _0x52da[_0x56c0da([0x65,0x78,0x70])]<_0x11a246;}function _0x1c5843(){const _0x4df885=_0x52da[_0x56c0da([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4df885&&(!!_0x4df885[_0x56c0da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56c0da([0x2a]))||(!!_0x4df885[_0x56c0da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56c0da([0x54,0x4f,0x43]))||(!!_0x4df885[_0x56c0da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56c0da([0x50,0x50]))||!(!_0x4df885[_0x56c0da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56c0da([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x1e1c8d()))));}function _0x4c2a8d(){const _0x3f5fac=_0x52da[_0x56c0da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3f5fac||0x0==_0x3f5fac[_0x56c0da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x52d87b}=new URL(window[_0x56c0da([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3f5fac[_0x56c0da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d87b))return!0x0;const _0x2e3e96=_0x52d87b[_0x56c0da([0x73,0x70,0x6c,0x69,0x74])](_0x56c0da([0x2e]));return _0x3f5fac[_0x56c0da([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e5752=>_0x3e5752[_0x56c0da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56c0da([0x2a])))[_0x56c0da([0x6d,0x61,0x70])](_0x20793b=>_0x20793b[_0x56c0da([0x73,0x70,0x6c,0x69,0x74])](_0x56c0da([0x2e])))[_0x56c0da([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2657e1=>_0x2657e1[_0x56c0da([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2e3e96[_0x56c0da([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56c0da([0x6d,0x61,0x70])](_0x2f654c=>Array(_0x2e3e96[_0x56c0da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2f654c[_0x56c0da([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56c0da([0x66,0x69,0x6c,0x6c])](_0x2f654c[0x0]===_0x56c0da([0x2a])?_0x56c0da([0x2a]):'')[_0x56c0da([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2f654c))[_0x56c0da([0x73,0x6f,0x6d,0x65])](_0x27e617=>_0x2e3e96[_0x56c0da([0x65,0x76,0x65,0x72,0x79])]((_0x24b209,_0x1f6f8e)=>_0x27e617[_0x1f6f8e]===_0x24b209||_0x27e617[_0x1f6f8e]===_0x56c0da([0x2a])));}function _0x518811(){return _0x48ba0b&&_0x13bd3f?new window[(_0x56c0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2db224,_0x3b21df)=>{_0x48ba0b[_0x56c0da([0x74,0x68,0x65,0x6e])](_0x2db224,_0x3b21df),_0x13bd3f[_0x56c0da([0x74,0x68,0x65,0x6e])](_0x23278a=>{_0x23278a!=_0x56c0da([0x56,0x61,0x6c,0x69,0x64])&&_0x2db224(_0x23278a);},_0x3b21df);}):_0x48ba0b||_0x13bd3f||_0x56c0da([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d9ea7(_0x3a0208,_0xdbc904){return new window[(_0x56c0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29dd3b=>{if(_0x16bf93())return _0x29dd3b(_0x56c0da([0x56,0x61,0x6c,0x69,0x64]));_0x9f2a0e(),_0x1d8729[_0x56c0da([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x56c0da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56dc7d=!0x1;const _0x52f409=_0x4b11c2();function _0x3c30ec(_0x1ec385){return!!_0x1ec385&&(typeof _0x1ec385===_0x56c0da([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ec385===_0x56c0da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ec385[_0x56c0da([0x74,0x68,0x65,0x6e])]===_0x56c0da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ec385[_0x56c0da([0x63,0x61,0x74,0x63,0x68])]===_0x56c0da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28afd6(_0x28e29e){_0x1d996a(_0x28e29e)[_0x56c0da([0x74,0x68,0x65,0x6e])](_0x1f7f18=>{if(!_0x1f7f18||_0x1f7f18[_0x56c0da([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x56c0da([0x6f,0x6b]))return _0x56c0da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34577e(_0x35391d(_0x52f409+_0xdbc904))!=_0x1f7f18[_0x56c0da([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x56c0da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x56c0da([0x56,0x61,0x6c,0x69,0x64]);})[_0x56c0da([0x74,0x68,0x65,0x6e])](_0x3a60d4=>(_0x23c9fd(),_0x3a60d4),()=>{const _0x55082c=_0x5d41fa();return null==_0x55082c?(_0x23c9fd(),_0x56c0da([0x56,0x61,0x6c,0x69,0x64])):_0x56c0da(_0x29e4db-_0x55082c>(0x4f9781fd^_0x1e358b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x56c0da([0x74,0x68,0x65,0x6e])](_0x29dd3b)[_0x56c0da([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29dd3b(_0x56c0da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57acbc=0x6badeb7d^_0x1e358b;function _0x23c9fd(){const _0x3c3ea5=_0x56c0da([0x6c,0x6c,0x63,0x74,0x2d])+_0x34577e(_0x35391d(_0x3a0208)),_0x15e5ff=_0x91e44a(_0x34577e(window[_0x56c0da([0x4d,0x61,0x74,0x68])][_0x56c0da([0x63,0x65,0x69,0x6c])](_0x29e4db/_0x57acbc)));window[_0x56c0da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56c0da([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c3ea5,_0x15e5ff);}function _0x5d41fa(){const _0x3b98a2=_0x56c0da([0x6c,0x6c,0x63,0x74,0x2d])+_0x34577e(_0x35391d(_0x3a0208)),_0x3a912f=window[_0x56c0da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56c0da([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b98a2);return _0x3a912f?window[_0x56c0da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x91e44a(_0x3a912f),0x10)*_0x57acbc:null;}function _0x1d996a(_0x2893a4){return new window[(_0x56c0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f0403,_0x3b2d41)=>{_0x2893a4[_0x56c0da([0x74,0x68,0x65,0x6e])](_0x1f0403,_0x3b2d41),window[_0x56c0da([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b2d41,0x6b9ad13d^_0x1e358b);});}}_0x1d8729[_0x56c0da([0x6f,0x6e])](_0x56c0da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b0c51,_0x27bef9)=>{if(_0x27bef9[0x0]!=_0x3a0208)return _0x29dd3b(_0x56c0da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x27bef9[0x1]={..._0x27bef9[0x1],[_0x56c0da([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x52f409};},{[_0x56c0da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56c0da([0x68,0x69,0x67,0x68])}),_0x1d8729[_0x56c0da([0x6f,0x6e])](_0x56c0da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x329f2c=>{_0x3c30ec(_0x329f2c[_0x56c0da([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56dc7d=!0x0,_0x28afd6(_0x329f2c[_0x56c0da([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x56c0da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56c0da([0x6c,0x6f,0x77])}),_0x135a5e[_0x56c0da([0x74,0x68,0x65,0x6e])](()=>{_0x56dc7d||_0x29dd3b(_0x56c0da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x16bf93(){return _0x1d8729[_0x56c0da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56c0da([0x76,0x69,0x65,0x77])][_0x56c0da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x56c0da([0x61,0x75,0x74,0x6f]);}function _0x9f2a0e(){_0x1d8729[_0x56c0da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56c0da([0x76,0x69,0x65,0x77])][_0x56c0da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56c0da([0x61,0x75,0x74,0x6f]);}}function _0x4b1a95(_0x6eba70){const _0x591131=[new window[(_0x56c0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x324241=>setTimeout(_0x324241,0x6b923b31^_0x1e358b)),_0x135a5e[_0x56c0da([0x74,0x68,0x65,0x6e])](()=>new window[(_0x56c0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47cc7d=>{let _0x5d4a9d=0x0;_0x1d8729[_0x56c0da([0x6d,0x6f,0x64,0x65,0x6c])][_0x56c0da([0x6f,0x6e])](_0x56c0da([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x323961,_0x58ebbf)=>{_0x58ebbf[0x0][_0x56c0da([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d4a9d++,_0x5d4a9d==(0x6b9b0015^_0x1e358b)&&(_0x47cc7d(),_0x323961[_0x56c0da([0x6f,0x66,0x66])]());});}))];return window[_0x56c0da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56c0da([0x72,0x61,0x63,0x65])](_0x591131)[_0x56c0da([0x74,0x68,0x65,0x6e])](()=>_0x6eba70);}async function _0x4355ce(){await _0x135a5e,_0x1d8729[_0x56c0da([0x6d,0x6f,0x64,0x65,0x6c])][_0x56c0da([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4df295,_0x1d8729[_0x56c0da([0x6d,0x6f,0x64,0x65,0x6c])][_0x56c0da([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4df295,_0x1d8729[_0x56c0da([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x56c0da([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e1c8d(){return window[_0x56c0da([0x67,0x6c,0x6f,0x62])]&&window[_0x56c0da([0x67,0x6c,0x6f,0x62])][_0x56c0da([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x495326(_0xedab2d){const _0xe76eaa=_0x18bdac();_0x1d8729[_0xe76eaa]=_0x56c0da([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])+_0xedab2d,_0xedab2d!=_0x56c0da([0x56,0x61,0x6c,0x69,0x64])&&_0x4355ce();}function _0x18bdac(){const _0x552738=window[_0x56c0da([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x56c0da([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x56c0da([0x6e,0x6f,0x77])]())[_0x56c0da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x56c0da([0x2e]),'');let _0x196b79=_0x56c0da([0x6d]);for(let _0x4160f7=0x0;_0x4160f7<_0x552738[_0x56c0da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4160f7+=0x2){let _0x3389bb=window[_0x56c0da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x552738[_0x56c0da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4160f7,_0x4160f7+0x2));_0x3389bb>=_0x33cf14[_0x56c0da([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3389bb-=_0x33cf14[_0x56c0da([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x196b79+=_0x33cf14[_0x3389bb];}return _0x196b79;}function _0x5357a2(){const _0x10f60b=_0x4cf5f1[_0x56c0da([0x73,0x70,0x6c,0x69,0x74])](_0x56c0da([0x2e]));if(0x3!=_0x10f60b[_0x56c0da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5246c6(_0x10f60b[0x1]);function _0x5246c6(_0x29bf4e){const _0x220603=_0x168f91(_0x29bf4e);return _0x220603&&_0x3a69b8()?_0x220603:null;function _0x3a69b8(){const _0xd4320=_0x220603[_0x56c0da([0x6a,0x74,0x69])],_0x3ebafd=window[_0x56c0da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd4320[_0x56c0da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd4320[_0x56c0da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11aadf={..._0x220603,[_0x56c0da([0x6a,0x74,0x69])]:_0xd4320[_0x56c0da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xd4320[_0x56c0da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11aadf[_0x56c0da([0x76,0x63])],_0x35391d(_0x11aadf)==_0x3ebafd;}}}async function _0x4a73d0(){let _0x3d38ef=!0x0;try{const _0x2e8237=_0x4cf5f1[_0x56c0da([0x73,0x70,0x6c,0x69,0x74])](_0x56c0da([0x2e])),[_0x5f5ce9,_0x491b1f,_0x201c6a]=_0x2e8237;return _0x1682ea(_0x5f5ce9),await _0x36b12d(_0x5f5ce9,_0x491b1f,_0x201c6a),_0x3d38ef;}catch{return!0x1;}function _0x1682ea(_0x4f71bb){const _0x1e7ce7=_0x168f91(_0x4f71bb);_0x1e7ce7&&_0x1e7ce7[_0x56c0da([0x61,0x6c,0x67])]==_0x56c0da([0x45,0x53,0x32,0x35,0x36])||(_0x3d38ef=!0x1);}async function _0x36b12d(_0x563c33,_0x3e342d,_0x5f2408){const _0x41561d=window[_0x56c0da([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x56c0da([0x66,0x72,0x6f,0x6d])](_0x3bf6c1(_0x5f2408),_0x4ccc33=>_0x4ccc33[_0x56c0da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x392ee6=new window[(_0x56c0da([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x56c0da([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x563c33+_0x56c0da([0x2e])+_0x3e342d),_0x47ec02=window[_0x56c0da([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x56c0da([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47ec02)return;const _0x1dc294=await _0x47ec02[_0x56c0da([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x56c0da([0x6a,0x77,0x6b]),_0x1d1591,{[_0x56c0da([0x6e,0x61,0x6d,0x65])]:_0x56c0da([0x45,0x43,0x44,0x53,0x41]),[_0x56c0da([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x56c0da([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x56c0da([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47ec02[_0x56c0da([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x56c0da([0x6e,0x61,0x6d,0x65])]:_0x56c0da([0x45,0x43,0x44,0x53,0x41]),[_0x56c0da([0x68,0x61,0x73,0x68])]:{[_0x56c0da([0x6e,0x61,0x6d,0x65])]:_0x56c0da([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1dc294,_0x41561d,_0x392ee6)||(_0x3d38ef=!0x1);}}function _0x168f91(_0x15f8ca){return _0x15f8ca[_0x56c0da([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x56c0da([0x65,0x79]))?JSON[_0x56c0da([0x70,0x61,0x72,0x73,0x65])](_0x3bf6c1(_0x15f8ca)):null;}function _0x3bf6c1(_0x5d66c0){return window[_0x56c0da([0x61,0x74,0x6f,0x62])](_0x5d66c0[_0x56c0da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x56c0da([0x2b]))[_0x56c0da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x56c0da([0x2f])));}function _0x35391d(_0x29210c){let _0x2d627e=0x1505;function _0x52f5bb(_0x20e2c2){for(let _0x2631aa=0x0;_0x2631aa<_0x20e2c2[_0x56c0da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2631aa++){const _0x224dd1=_0x20e2c2[_0x56c0da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2631aa);_0x2d627e=(_0x2d627e<<0x5)+_0x2d627e+_0x224dd1,_0x2d627e&=_0x2d627e;}}function _0x107746(_0x37c7f4){Array[_0x56c0da([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37c7f4)?_0x37c7f4[_0x56c0da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x107746):_0x37c7f4&&typeof _0x37c7f4==_0x56c0da([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x56c0da([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37c7f4)[_0x56c0da([0x73,0x6f,0x72,0x74])]()[_0x56c0da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x9d3feb,_0x4ce079])=>{_0x52f5bb(_0x9d3feb),_0x107746(_0x4ce079);}):_0x52f5bb(window[_0x56c0da([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37c7f4));}return _0x107746(_0x29210c),_0x2d627e>>>0x0;}function _0x34577e(_0x1b46ec){return _0x1b46ec[_0x56c0da([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x56c0da([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x56c0da([0x30]));}function _0x91e44a(_0x366be3){return _0x366be3[_0x56c0da([0x73,0x70,0x6c,0x69,0x74])]('')[_0x56c0da([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x56c0da([0x6a,0x6f,0x69,0x6e])]('');}function _0x4df295(){}function _0x56c0da(_0x129b5d){return _0x129b5d['map'](_0x23fdeb=>String['fromCharCode'](_0x23fdeb))['join']('');}_0x495326(await _0x4c286c());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x4c412e=>{'$graveyard'!==_0x4c412e['rootName']&&this['editor']['editing']['reconvertItem'](_0x4c412e);});}['_trackNewToCElements'](){for(const _0x19d108 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x19d108['type']||'tableOfContents'!==_0x19d108['name'])return;this['_tableOfContentsElements']['add'](_0x19d108['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x2b08d1){const _0x441cfc=this['editor'],_0x2ddd12=[];for(const _0x37b44f of _0x441cfc['model']['document']['getRootNames']())_0xd8b546(_0x441cfc['model']['document']['getRoot'](_0x37b44f));function _0xd8b546(_0x30c9c7){for(const _0x244493 of _0x30c9c7['getChildren']())_0x244493['is']('element')&&(_0x2b08d1['includes'](_0x244493['name'])&&_0x2ddd12['push']({'level':_0x2b08d1['indexOf'](_0x244493['name'])+0x1,'text':I(_0x244493),'modelElement':_0x244493}),_0xd8b546(_0x244493));}return _0x2ddd12;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x1f5131=this['editor']['conversion'];_0x1f5131['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x1f5131['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x1c824a,{writer:_0x2db00c})=>this['_createTableOfContents'](_0x2db00c,!0x0)}),_0x1f5131['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0xf5b580,{writer:_0xe4200b})=>{this['_tableOfContentsElements']['add'](_0xf5b580);const _0x27da14=this['_createTableOfContents'](_0xe4200b);return _0x398b94(_0x27da14,_0xe4200b,{'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'](_0xb6a106,_0x1620d8=!0x1){const {locale:_0x2198b1}=this['editor'],_0x2299be=_0xb6a106['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x1620d8&&{'data-table-of-contents-label':C(_0x2198b1,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x1620d8&&_0xb6a106['insert'](_0xb6a106['createPositionAt'](_0x2299be,'end'),_0xb6a106['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0xb6a106['createText'](C(_0x2198b1,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x266ffb=_0x1620d8?'':'['+C(_0x2198b1,'Empty\x20heading')+']';let _0x2c4c5c=_0x2299be;return this['_currentOutlineDefinitions']['forEach']((_0x1a27de,_0x6a0a21,_0x63f007)=>{const _0xa08ac=this['editor']['model']['hasContent'](_0x1a27de['modelElement'],{'ignoreWhitespaces':!0x0}),_0x3d5c74=_0xa08ac?_0x1a27de['text']:_0x266ffb,_0x311e95=_0x1a27de['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x46a493=_0xb6a106['createContainerElement']('a',{'href':'#'+_0x311e95,...!_0x1620d8&&{'tabindex':'-1'}},[_0xb6a106['createText'](_0x3d5c74)]),_0x202868=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0xb6a106['setCustomProperty']('tableOfContentsHeadingIndex',_0x6a0a21,_0x46a493);const _0x508df8=_0xb6a106['createContainerElement']('li',null,[_0xa08ac||!_0x1620d8&&_0x202868?_0x46a493:_0xb6a106['createText']('')]),_0x52e338=_0x6a0a21?_0x63f007[_0x6a0a21-0x1]['level']:0x0,_0x577cf6=Math['abs'](_0x1a27de['level']-_0x52e338);if(_0x1a27de['level']>_0x52e338){const _0x339cce=_(_0x508df8,_0x577cf6,_0xb6a106);_0xb6a106['insert'](_0xb6a106['createPositionAt'](_0x2c4c5c,'end'),_0x339cce);}else{const _0x80fad4=function(_0xfbf9ef,_0xf6490d){return _0xfbf9ef['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x564257=>_0x564257['is']('element','ol'))[_0xf6490d];}(_0x2c4c5c,_0x577cf6);_0xb6a106['insert'](_0xb6a106['createPositionAt'](_0x80fad4,'end'),_0x508df8);}_0x2c4c5c=_0x508df8;}),_0x2299be;}['_handleScrollToHeading'](_0x455a29){const _0x5d707b=this['_currentOutlineDefinitions'][_0x455a29]['modelElement'];this['editor']['model']['change'](_0x1347cd=>{_0x1347cd['setSelection'](_0x5d707b,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x54d629,_0x37faef)=>{const _0x3392fb=_0x37faef['mapper'],_0x3dcdf0=_0x3392fb['findMappedViewAncestor'](_0x37faef['viewPosition']),_0x13e9b1=_0x3392fb['toModelElement'](_0x3dcdf0);_0x13e9b1['is']('element','tableOfContents')&&(_0x37faef['modelPosition']=this['editor']['model']['createPositionAt'](_0x13e9b1,0x0),_0x54d629['stop']());};}}function _(_0x2afe48,_0x1af887,_0x4e1117){return 0x1===_0x1af887?_0x4e1117['createContainerElement']('ol',null,[_0x2afe48]):_0x4e1117['createContainerElement']('ol',null,[_0x4e1117['createContainerElement']('li',null,[_(_0x2afe48,_0x1af887-0x1,_0x4e1117)])]);}class TableOfContentsUI extends _0x51bf14{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1a733e=this['editor'];_0x1a733e['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x4a0dd0=this['_createButton'](_0x150438);return _0x4a0dd0['tooltip']=!0x0,_0x4a0dd0;}),_0x1a733e['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x4c6456)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3f5c4d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x59d427;for(const _0xbf7468 in _0x3f5c4d){const _0x5bd3bc=_0xbf7468,_0x512a7c=_0x3f5c4d[_0x5bd3bc];if('tableOfContentsLicenseKeyValid'==_0x512a7c||'tableOfContentsLicenseKeyInvalid'==_0x512a7c||'tableOfContentsLicenseKeyExpired'==_0x512a7c||'tableOfContentsLicenseKeyDomainLimit'==_0x512a7c||'tableOfContentsLicenseKeyNotAllowed'==_0x512a7c||'tableOfContentsLicenseKeyEvaluationLimit'==_0x512a7c||'tableOfContentsLicenseKeyUsageLimit'==_0x512a7c){delete _0x3f5c4d[_0x5bd3bc],_0x59d427=_0x512a7c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x59d427&&_0x3f5c4d['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x59d427&&_0x3f5c4d['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x59d427&&_0x3f5c4d['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x59d427&&_0x3f5c4d['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x59d427&&_0x3f5c4d['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x59d427&&_0x3f5c4d['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x25ca73){const _0x452ec3=this['editor'],_0x5c4a5f=_0x452ec3['locale'],_0xf64a68=_0x452ec3['commands']['get']('insertTableOfContents'),_0x428759=new _0x25ca73(_0x5c4a5f);return _0x428759['set']({'label':C(_0x5c4a5f,'Table\x20of\x20contents'),'icon':_0xa7ce62}),_0x428759['bind']('isEnabled')['to'](_0xf64a68,'isEnabled'),this['listenTo'](_0x428759,'execute',()=>{_0x452ec3['execute']('insertTableOfContents'),_0x452ec3['editing']['view']['focus']();}),_0x428759;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContents extends _0x51bf14{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 _0x4ec52c,Plugin as _0x464a3a}from'@ckeditor/ckeditor5-core';import{debounce as _0x31503c,throttle as _0x586193}from'es-toolkit/compat';import{ModelText as _0x345c52,ModelTreeWalker as _0x45f338}from'@ckeditor/ckeditor5-engine';import{CKEditorError as _0x16bb33,Rect as _0x23e40b,diff as _0x15f264,diffToChanges as _0x3cace0,global as _0x565fe4,priorities as _0x15bf35,scrollAncestorsToShowTarget as _0x548d1e,uid as _0x8d5b21}from'@ckeditor/ckeditor5-utils';import{ButtonView as _0x123b34,MenuBarMenuListItemButtonView as _0x3b1daf,View as _0x2529f8}from'@ckeditor/ckeditor5-ui';import{Widget as _0x1bc01e,toWidget as _0x49ab46}from'@ckeditor/ckeditor5-widget';import{IconTableOfContents as _0x204e27}from'@ckeditor/ckeditor5-icons';function b(_0x4f7808){let _0x37531c='';for(const _0x1760b1 of _0x4f7808['getChildren']())_0x1760b1 instanceof _0x345c52&&(_0x37531c+=_0x1760b1['data']);return _0x37531c;}var I=class extends _0x464a3a{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x158f6e=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x2aff7a=[];_0x158f6e['model']['document']['on']('change',_0x31503c(()=>{const _0x4f2d7e=_0x2aff7a;_0x2aff7a=this['_getOutlineDefinitions']();const _0x5d226b=_0x3cace0(_0x15f264(_0x4f2d7e,_0x2aff7a,(_0x32ac72,_0x3c0231)=>_0x32ac72['level']===_0x3c0231['level']&&_0x32ac72['text']===_0x3c0231['text']&&_0x32ac72['modelElement']===_0x3c0231['modelElement']),_0x2aff7a),_0x34305d=this['_getActiveHeading'](),_0x309808=_0x2aff7a['findIndex'](_0x580503=>_0x580503['modelElement']===_0x34305d);_0x5d226b['length']&&this['fire']('change',{'outlineDefinitions':_0x2aff7a,'activeItemIndex':_0x309808,'outlineChanges':_0x5d226b}),this['fire']('activeItemIndex',{'index':_0x309808});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x33afde=this['editor'],_0x3d668e=[],_0x3f5235=this['_headingNames'];for(const _0x3c5f38 of _0x33afde['model']['document']['getRootNames']())_0x81c3b4(_0x33afde['model']['document']['getRoot'](_0x3c5f38));function _0x81c3b4(_0x46a43c){for(const _0x38f91e of _0x46a43c['getChildren']())_0x38f91e['is']('element')&&(_0x3f5235['includes'](_0x38f91e['name'])&&_0x3d668e['push']({'level':_0x3f5235['indexOf'](_0x38f91e['name'])+0x1,'text':b(_0x38f91e),'modelElement':_0x38f91e}),_0x81c3b4(_0x38f91e));}return _0x3d668e;}['_getActiveHeading'](){const _0x2cb3ac=new _0x45f338({'direction':'backward','startPosition':this['editor']['model']['document']['selection']['getFirstPosition']()});for(const _0x48d5c5 of _0x2cb3ac)if(_0x48d5c5['item']['is']('element')&&this['_headingNames']['includes'](_0x48d5c5['item']['name']))return _0x48d5c5['item'];}['_getHeadingNames'](){const _0x33aec8=this['editor']['config']['get']('documentOutline.headings');return _0x33aec8||function(_0x39ee30){const _0x482390=_0x39ee30['config']['get']('heading.options');return _0x482390?_0x482390['reduce']((_0x2cb0b7,_0x4706f8)=>('paragraph'!==_0x4706f8['model']&&_0x2cb0b7['push'](_0x4706f8['model']),_0x2cb0b7),[]):_0x39ee30['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x2e1e6c=this['editor'],_0xd29d1e=['h1','h2','h3','h4','h5','h6'],_0x33b4ea=[];for(const _0x102dd1 of _0xd29d1e){const _0x5a7128=_0x2e1e6c['editing']['view']['domConverter']['domToView'](document['createElement'](_0x102dd1)),_0x383a66=_0x2e1e6c['data']['toModel'](_0x5a7128)['getChild'](0x0);_0x383a66?.['is']('element')&&_0x33b4ea['push'](_0x383a66['name']);}this['_headingNames']=_0x33b4ea;}};function L(_0x3582dc,_0x4d1456){const t=_0x3582dc['t'];switch(_0x4d1456){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 _0x4d1456;}}var C=class extends _0x2529f8{constructor(_0x180149,_0x40dcb2=!0x1){super(_0x180149);const _0x2d7794=this['bindTemplate'],_0x64f8d6=_0x40dcb2?'['+L(_0x180149,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x1f06f4=>!_0x1f06f4),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x2d7794['to']('level',_0x5723e2=>'ck-document-outline__item_level-'+_0x5723e2),_0x2d7794['if']('isActive','ck-document-outline__item_active'),_0x2d7794['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x2d7794['to']('text')},'children':[{'text':_0x2d7794['to']('text',_0x190e6f=>_0x190e6f||_0x64f8d6)}],'on':{'click':_0x2d7794['to']('click')}});}},_=class extends _0x2529f8{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x188a48,_0x4a52eb=!0x1,_0x3a82f8){super(_0x188a48),this['showEmptyHeadingText']=_0x4a52eb,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x3a82f8,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x44714f,_0x1cd6f6,_0x5ce786,_0x26e9c7)=>{this['_setActiveItem'](_0x26e9c7,_0x5ce786);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x188a48['contentLanguageDirection'],'data-document-outline-empty-placeholder':L(_0x188a48,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x536323){_0x536323['forEach'](_0x5925e9=>{'insert'==_0x5925e9['type']?this['_insertItem'](_0x5925e9['index'],..._0x5925e9['values']):'delete'==_0x5925e9['type']&&this['_deleteItem'](_0x5925e9['index'],_0x5925e9['howMany']);});}['_setActiveItem'](_0x1ed1ac,_0x225500){if(-0x1!==_0x1ed1ac){const _0x434c3c=this['items']['get'](_0x1ed1ac);_0x434c3c&&(_0x434c3c['isActive']=!0x1);}-0x1!==_0x225500&&(this['items']['get'](_0x225500)['isActive']=!0x0,this['_scrollToItem'](_0x225500));}['_insertItem'](_0x4365b9,..._0x45e6f2){const _0xd9b163=_0x45e6f2['map']((_0x5834ed,_0x192598)=>{const _0x59ff30=new C(this['locale'],this['showEmptyHeadingText']);return _0x59ff30['text']=_0x5834ed['text'],_0x59ff30['level']=_0x5834ed['level'],_0x4365b9+_0x192598===this['activeItemIndex']&&(_0x59ff30['isActive']=!0x0),_0x59ff30;});this['items']['addMany'](_0xd9b163,_0x4365b9);}['_deleteItem'](_0x29087d,_0x514800){do{this['items']['remove'](_0x29087d);}while(--_0x514800);}['_handleItemClick'](_0x577628){const _0x2a9d1f=this['items']['getIndex'](_0x577628['source']);this['fire']('itemSelected',_0x2a9d1f);}['_scrollToItem'](_0x31bbad){_0x548d1e(this['items']['get'](_0x31bbad)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}},x=class extends _0x464a3a{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ee879){super(_0x3ee879),this['view']=new _(_0x3ee879['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x586193(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x1b31d3=this['editor'],_0x5628ea=_0x1b31d3['plugins']['get']('DocumentOutlineUtils');let _0x161689=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x1b31d3['config']['get']('documentOutline.container'))throw new _0x16bb33('document-outline-container-not-provided',{'editor':_0x1b31d3});_0x1b31d3['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x5628ea['on']('change',this['_handleOutlineChange']['bind'](this)),_0x5628ea['on']('activeItemIndex',(_0x3ffd72,{index:_0x24e63d})=>this['_setActiveViewItem'](_0x24e63d)),this['view']['on']('itemSelected',(_0x14c941,_0x2642a4)=>{_0x161689=!0x0,this['_handleItemSelected'](_0x2642a4);}),this['view']['listenTo'](_0x565fe4['document'],'scroll',()=>{_0x161689?_0x161689=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x565fe4['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x53a625){const _0x53079c='aWxlPG0A3CDdHBsZEqwULojOrgMXVTRvu1bI2487ptzJKQeihfNkYS9n6y5mcF',_0x12b76c=0x78de0,_0xef4dc5=window['Date']['now'](),_0x559dab=_0x53a625['editor'],_0x6b633=new window['Promise'](_0x3f0af5=>{_0x559dab['once']('ready',_0x3f0af5);}),_0x472d5d={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x90ae36=_0x559dab['config']['get']('licenseKey');async function _0x215e55(){let _0x24e8d9,_0x34cfa6=null,_0x5c3f85=null;try{return'GPL'==_0x90ae36?'NotAllowed':(_0x24e8d9=_0x12b978(),_0x24e8d9?(_0x24e8d9['usageEndpoint']&&(_0x5c3f85=_0x1d3515(_0x24e8d9['usageEndpoint'],_0x24e8d9['jti'])),await _0x7a1403()?_0x190048()?_0x2ce7b3()?'Expired':_0x577c40()?('evaluation'==_0x24e8d9['licenseType']&&(_0x34cfa6=_0x25a7f8('EvaluationLimit')),await _0xee395a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2ce7b3(){const _0x15bab3=['evaluation','trial']['includes'](_0x24e8d9['licenseType'])?_0xef4dc5/0x3e8:0xe10*_0x12b76c;return _0x24e8d9['exp']<_0x15bab3;}function _0x190048(){const _0x56b385=_0x24e8d9['features'];return!!_0x56b385&&(!!_0x56b385['includes']('*')||(!!_0x56b385['includes']('DO')||(!!_0x56b385['includes']('PP')||!(!_0x56b385['includes']('TRILIUM')||!_0x5dd56b()))));}function _0x577c40(){const _0x5230b5=_0x24e8d9['licensedHosts'];if(!_0x5230b5||0x0==_0x5230b5['length'])return!0x0;const {hostname:_0x1c36cb}=new URL(window['location']['href']);if(_0x5230b5['includes'](_0x1c36cb))return!0x0;const _0x46e464=_0x1c36cb['split']('.');return _0x5230b5['filter'](_0x19bffd=>_0x19bffd['includes']('*'))['map'](_0xe8b4d4=>_0xe8b4d4['split']('.'))['filter'](_0x2f796e=>_0x2f796e['length']<=_0x46e464['length'])['map'](_0x4b692e=>Array(_0x46e464['length']-_0x4b692e['length'])['fill']('*'===_0x4b692e[0x0]?'*':'')['concat'](_0x4b692e))['some'](_0x375dba=>_0x46e464['every']((_0x10aa41,_0x2be36b)=>_0x375dba[_0x2be36b]===_0x10aa41||'*'===_0x375dba[_0x2be36b]));}function _0xee395a(){return _0x34cfa6&&_0x5c3f85?new window['Promise']((_0x23023b,_0x32e948)=>{_0x34cfa6['then'](_0x23023b,_0x32e948),_0x5c3f85['then'](_0x38d32d=>{'Valid'!=_0x38d32d&&_0x23023b(_0x38d32d);},_0x32e948);}):_0x34cfa6||_0x5c3f85||'Valid';}}function _0x1d3515(_0x22fa06,_0x4ea46d){return new window['Promise'](_0x36a02d=>{if(_0x2ea93f())return _0x36a02d('Valid');_0x486396(),_0x559dab['decorate']('_sendUsageRequest');let _0x41d2a4=!0x1;const _0x2cdffc=_0x8d5b21();function _0x1a276f(_0x5c6d12){return!!_0x5c6d12&&('object'==typeof _0x5c6d12||'function'==typeof _0x5c6d12)&&'function'==typeof _0x5c6d12['then']&&'function'==typeof _0x5c6d12['catch'];}function _0x52b6a4(_0x30eabf){_0x2f95d8(_0x30eabf)['then'](_0x89604a=>_0x89604a&&'ok'==_0x89604a['status']?_0x294239(_0x191e04(_0x2cdffc+_0x4ea46d))!=_0x89604a['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2e2da4=>(_0xace23(),_0x2e2da4),()=>{const _0x112278=_0x5e453d();return null==_0x112278?(_0xace23(),'Valid'):_0xef4dc5-_0x112278>0x240c8400?'UsageLimit':'Valid';})['then'](_0x36a02d)['catch'](()=>{_0x36a02d('UsageLimit');});const _0x27b589=0x36ee80;function _0xace23(){const _0x46f78e='llct-'+_0x294239(_0x191e04(_0x22fa06)),_0x4684f8=_0x1c351d(_0x294239(window['Math']['ceil'](_0xef4dc5/_0x27b589)));window['localStorage']['setItem'](_0x46f78e,_0x4684f8);}function _0x5e453d(){const _0x337b6c='llct-'+_0x294239(_0x191e04(_0x22fa06)),_0x4fa50b=window['localStorage']['getItem'](_0x337b6c);return _0x4fa50b?window['parseInt'](_0x1c351d(_0x4fa50b),0x10)*_0x27b589:null;}function _0x2f95d8(_0x3658e0){return new window['Promise']((_0x2bb8bb,_0x22fe70)=>{_0x3658e0['then'](_0x2bb8bb,_0x22fe70),window['setTimeout'](_0x22fe70,0x1d4c0);});}}_0x559dab['on']('_sendUsageRequest',(_0x4436a7,_0x16dd80)=>{if(_0x16dd80[0x0]!=_0x22fa06)return _0x36a02d('UsageLimit');_0x16dd80[0x1]={..._0x16dd80[0x1],'requestId':_0x2cdffc};},{'priority':'high'}),_0x559dab['on']('_sendUsageRequest',_0x325c09=>{_0x1a276f(_0x325c09['return'])&&(_0x41d2a4=!0x0,_0x52b6a4(_0x325c09['return']));},{'priority':'low'}),_0x6b633['then'](()=>{_0x41d2a4||_0x36a02d('UsageLimit');});});function _0x2ea93f(){return'auto'==_0x559dab['editing']['view']['_overlayModeHint'];}function _0x486396(){_0x559dab['editing']['view']['_overlayModeHint']='auto';}}function _0x25a7f8(_0x1d4890){const _0x385dc2=[new window['Promise'](_0xa07dce=>setTimeout(_0xa07dce,0x93ecc)),_0x6b633['then'](()=>new window['Promise'](_0x563986=>{let _0x11a948=0x0;_0x559dab['model']['on']('applyOperation',(_0x5c2e14,_0x44768f)=>{_0x44768f[0x0]['isDocumentOperation']&&_0x11a948++,0x5e8==_0x11a948&&(_0x563986(),_0x5c2e14['off']());});}))];return window['Promise']['race'](_0x385dc2)['then'](()=>_0x1d4890);}async function _0x5d0062(){await _0x6b633,_0x559dab['model']['change']=_0x27977f,_0x559dab['model']['enqueueChange']=_0x27977f,_0x559dab['enableReadOnlyMode']('model');}function _0x5dd56b(){return window['glob']&&window['glob']['triliumVersion'];}function _0x4412b0(_0x2bde25){const _0x513067=_0x50cfca();_0x559dab[_0x513067]='documentOutlineLicenseKey'+_0x2bde25,'Valid'!=_0x2bde25&&_0x5d0062();}function _0x50cfca(){const _0x1693d6=window['String'](window['performance']['now']())['replace']('.','');let _0x1a3bf0='a';for(let _0x3b40ec=0x0;_0x3b40ec<_0x1693d6['length'];_0x3b40ec+=0x2){let _0x51007d=window['parseInt'](_0x1693d6['substring'](_0x3b40ec,_0x3b40ec+0x2));_0x51007d>=0x3e&&(_0x51007d-=0x3e),_0x1a3bf0+=_0x53079c[_0x51007d];}return _0x1a3bf0;}function _0x12b978(){const _0x50239c=_0x90ae36['split']('.');if(0x3!=_0x50239c['length'])return null;return _0x424571(_0x50239c[0x1]);function _0x424571(_0x408bcc){const _0x4b5c7b=_0x4e29a2(_0x408bcc);return _0x4b5c7b&&_0x3d773c()?_0x4b5c7b:null;function _0x3d773c(){const _0x209b37=_0x4b5c7b['jti'],_0x324bbd=window['parseInt'](_0x209b37['substring'](_0x209b37['length']-0x8),0x10),_0x44e8ef={..._0x4b5c7b,'jti':_0x209b37['substring'](0x0,_0x209b37['length']-0x8)};return delete _0x44e8ef['vc'],_0x191e04(_0x44e8ef)==_0x324bbd;}}}async function _0x7a1403(){let _0xa88012=!0x0;try{const [_0x511a57,_0x398e8b,_0x5b6dbc]=_0x90ae36['split']('.');return _0xf6ace8(_0x511a57),await _0x44868d(_0x511a57,_0x398e8b,_0x5b6dbc),_0xa88012;}catch{return!0x1;}function _0xf6ace8(_0x3df43f){const _0xba5590=_0x4e29a2(_0x3df43f);_0xba5590&&'ES256'==_0xba5590['alg']||(_0xa88012=!0x1);}async function _0x44868d(_0x5932a2,_0x401b0d,_0x51af8c){const _0x38b395=window['Uint8Array']['from'](_0x5d26b3(_0x51af8c),_0x2b1481=>_0x2b1481['charCodeAt'](0x0)),_0x2260c3=new window['TextEncoder']()['encode'](_0x5932a2+'.'+_0x401b0d),_0x12d3c5=window['crypto']['subtle'];if(!_0x12d3c5)return;const _0x4da3d6=await _0x12d3c5['importKey']('jwk',_0x472d5d,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x12d3c5['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4da3d6,_0x38b395,_0x2260c3)||(_0xa88012=!0x1);}}function _0x4e29a2(_0x523d2c){return _0x523d2c['startsWith']('ey')?JSON['parse'](_0x5d26b3(_0x523d2c)):null;}function _0x5d26b3(_0x3bc502){return window['atob'](_0x3bc502['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x191e04(_0x305d64){let _0x109900=0x1505;function _0x27edd3(_0x5ba319){for(let _0x21eb32=0x0;_0x21eb32<_0x5ba319['length'];_0x21eb32++){const _0x18c32f=_0x5ba319['charCodeAt'](_0x21eb32);_0x109900=(_0x109900<<0x5)+_0x109900+_0x18c32f,_0x109900&=_0x109900;}}function _0x4e16e4(_0x34f70b){Array['isArray'](_0x34f70b)?_0x34f70b['forEach'](_0x4e16e4):_0x34f70b&&'object'==typeof _0x34f70b?Object['entries'](_0x34f70b)['sort']()['forEach'](([_0x3852d2,_0x2af0c7])=>{_0x27edd3(_0x3852d2),_0x4e16e4(_0x2af0c7);}):_0x27edd3(window['String'](_0x34f70b));}return _0x4e16e4(_0x305d64),_0x109900>>>0x0;}function _0x294239(_0x5ccd6e){return _0x5ccd6e['toString'](0x10)['padStart'](0x8,'0');}function _0x1c351d(_0x2bac5e){return _0x2bac5e['split']('')['reverse']()['join']('');}function _0x27977f(){}_0x4412b0(await _0x215e55());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x41bf0c,{outlineDefinitions:_0x487e4c,outlineChanges:_0x490228}){this['_currentOutlineDefinitions']=_0x487e4c,this['view']['sync'](_0x490228);}['_setActiveViewItem'](_0x424889){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x424889]&&(this['view']['activeItemIndex']=_0x424889);}['_handleItemSelected'](_0x5d367c){const _0x3efad1=this['_currentOutlineDefinitions'][_0x5d367c]['modelElement'];this['editor']['model']['change'](_0x391c06=>{_0x391c06['setSelection'](_0x3efad1,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x5d367c);}['_updateActiveDefinitionOnViewportChange'](){const _0x38eca3=this['editor'];let _0x5159c5;for(const _0x2dde65 of _0x38eca3['model']['document']['getRootNames']()){const _0x3e34b6=_0x38eca3['editing']['view']['getDomRoot'](_0x2dde65),_0x4f1564=_0x3e34b6&&new _0x23e40b(_0x3e34b6)['getVisible']();if(_0x4f1564){const _0xbd4202=new _0x23e40b(_0x565fe4['window'])['getIntersection'](_0x4f1564);_0xbd4202&&(_0x5159c5=_0xbd4202['top']+0.25*_0xbd4202['height']);}}if(void 0x0===_0x5159c5)return;const _0x1674b3=k(_0x38eca3['editing'],this['_currentOutlineDefinitions'],_0x5159c5);_0x1674b3?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x1674b3)):this['_setActiveViewItem'](-0x1);}};function k(_0xcfaddc,_0x274d54,_0x23060e,_0xf70980=0x0,_0x79c2b8=_0x274d54['length']-0x1){const _0x497dc0=Math['floor'](_0xf70980+(_0x79c2b8-_0xf70980)/0x2);if(_0x79c2b8>=_0xf70980){const _0x515132=_0x274d54[_0x497dc0],_0x290c79=_0xcfaddc['mapper']['toViewElement'](_0x515132['modelElement']);return _0x290c79?new _0x23e40b(_0xcfaddc['view']['domConverter']['mapViewToDom'](_0x290c79))['bottom']>_0x23060e?k(_0xcfaddc,_0x274d54,_0x23060e,_0xf70980,_0x497dc0-0x1):k(_0xcfaddc,_0x274d54,_0x23060e,_0x497dc0+0x1,_0x79c2b8):null;}return _0x497dc0<0x0?null:_0x274d54[_0x497dc0];}var E=class extends _0x464a3a{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[I,x];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x85f5d8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ed149;for(const _0x3f260f in _0x85f5d8){const _0x356ead=_0x3f260f,_0x126b8f=_0x85f5d8[_0x356ead];if('documentOutlineLicenseKeyValid'==_0x126b8f||'documentOutlineLicenseKeyInvalid'==_0x126b8f||'documentOutlineLicenseKeyExpired'==_0x126b8f||'documentOutlineLicenseKeyDomainLimit'==_0x126b8f||'documentOutlineLicenseKeyNotAllowed'==_0x126b8f||'documentOutlineLicenseKeyEvaluationLimit'==_0x126b8f||'documentOutlineLicenseKeyUsageLimit'==_0x126b8f){delete _0x85f5d8[_0x356ead],_0x1ed149=_0x126b8f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x1ed149&&_0x85f5d8['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x1ed149&&_0x85f5d8['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x1ed149&&_0x85f5d8['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x1ed149&&_0x85f5d8['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x1ed149&&_0x85f5d8['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x1ed149&&_0x85f5d8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},K=class extends _0x4ec52c{['execute'](){this['editor']['model']['change'](_0x439efd=>{this['editor']['model']['insertObject'](_0x439efd['createElement']('tableOfContents'));});}['refresh'](){const _0x527b98=this['editor']['model'],_0xbf64ad=_0x527b98['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0xbf64ad&&_0x527b98['schema']['findAllowedParent'](_0xbf64ad,'tableOfContents'));}},A=class extends _0x464a3a{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x19c04f=this['editor'];if(_0x19c04f['config']['get']('headingId.modelAttributeName'))return;const {viewNames:_0x49bb30,modelNames:_0x1481c8}=function(_0x4ab1e1){const _0x21393d=new Set(),_0x4e8e3b=new Set();if(!_0x4ab1e1)return{'viewNames':_0x21393d,'modelNames':_0x4e8e3b};for(const _0x1d6a57 of _0x4ab1e1){if('paragraph'===_0x1d6a57['model'])continue;const _0x2f898a='string'==typeof _0x1d6a57['view']?_0x1d6a57['view']:_0x1d6a57['view']['name'];_0x21393d['add'](_0x2f898a),_0x4e8e3b['add'](_0x1d6a57['model']);}return _0x21393d['has']('h1')||(_0x21393d['add']('h1'),_0x4e8e3b['add']('heading1')),{'viewNames':_0x21393d,'modelNames':_0x4e8e3b};}(this['editor']['config']['get']('heading.options'));for(const _0xd81ee1 of _0x49bb30)this['_customUpcastHeadingsConversion'](_0xd81ee1);for(const _0x382ab2 of _0x1481c8)this['_customDataDowncastHeadingsConversion'](_0x382ab2),_0x19c04f['model']['schema']['isRegistered'](_0x382ab2)&&_0x19c04f['model']['schema']['extend'](_0x382ab2,{'allowAttributes':'headingId'});this['_registerHeadingIdAttributePostfixer'](_0x1481c8);}['_customUpcastHeadingsConversion'](_0x44df6a){this['editor']['conversion']['for']('upcast')['add'](_0x3571be=>_0x3571be['on']('element:'+_0x44df6a,(_0x3d9aa4,_0x4bbafc,_0x1ae474)=>{const {consumable:_0xb37ade,writer:_0x48d9c2}=_0x1ae474,_0x1296f1=_0x4bbafc['viewItem']['getAttribute']('id'),_0x19ce1c=_0x4bbafc['modelRange']?.['getContainedElement']();if(_0x19ce1c)return _0x1296f1&&_0x1296f1['length']||_0x19ce1c['hasAttribute']('headingId')?void(_0xb37ade['consume'](_0x4bbafc['viewItem'],{'attributes':['id']})&&_0x48d9c2['setAttribute']('headingId',_0x1296f1,_0x19ce1c)):(_0xb37ade['consume'](_0x4bbafc['viewItem'],{'attributes':['id']}),void _0x48d9c2['setAttribute']('headingId',_0x8d5b21(),_0x19ce1c));},{'priority':_0x15bf35['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x3880ab){this['editor']['conversion']['for']('downcast')['add'](_0x5103d4=>_0x5103d4['on']('attribute:headingId:'+_0x3880ab,(_0x4a37c7,_0x570966,_0x8bd5a8)=>{if(!_0x8bd5a8['consumable']['consume'](_0x570966['item'],_0x4a37c7['name']))return;const _0x464ca9=_0x570966['item']['getAttribute']('headingId'),_0x455254=_0x8bd5a8['mapper']['toViewElement'](_0x570966['item']);_0x8bd5a8['writer']['setAttribute']('id',_0x464ca9,_0x455254);}));}['_registerHeadingIdAttributePostfixer'](_0x4e5653){const _0x2ac76f=this['editor'],_0x181cac=new Set(),_0x2982c3=new Set();function _0x59bb9b(_0xdf7ac7,_0x36a65f){const _0xe696e0=_0x8d5b21();return _0x2982c3['add'](_0xe696e0),_0xdf7ac7['setAttribute']('headingId',_0xe696e0,_0x36a65f),_0xe696e0;}function _0x1b07f4(_0x18eddb,_0x162966){_0x18eddb['removeAttribute']('headingId',_0x162966);}_0x2ac76f['model']['document']['registerPostFixer'](_0x5b6fc5=>{const _0x367156=_0x2ac76f['model']['document']['differ']['getChanges']();let _0x23bcbd=!0x1;for(const _0x193b9d of _0x367156)if('insert'==_0x193b9d['type']&&_0x193b9d['name']){if(_0x4e5653['has'](_0x193b9d['name'])){const _0x2166b7=_0x193b9d['attributes']['get']('headingId');'string'==typeof _0x2166b7?_0x181cac['has'](_0x2166b7)?(_0x59bb9b(_0x5b6fc5,_0x193b9d['position']['nodeAfter']),_0x23bcbd=!0x0):_0x2982c3['add'](_0x2166b7):(_0x59bb9b(_0x5b6fc5,_0x193b9d['position']['nodeAfter']),_0x23bcbd=!0x0);}else'string'==typeof _0x193b9d['attributes']['get']('headingId')&&(_0x1b07f4(_0x5b6fc5,_0x193b9d['position']['nodeAfter']),_0x23bcbd=!0x0);}else{if('remove'==_0x193b9d['type']){const _0x3bb198=_0x193b9d['attributes']['get']('headingId');'string'==typeof _0x3bb198&&_0x181cac['delete'](_0x3bb198);}}return _0x23bcbd;}),_0x2ac76f['model']['document']['on']('change',()=>{_0x2982c3['forEach'](_0x140005=>_0x181cac['add'](_0x140005)),_0x2982c3['clear']();});}},N=class extends _0x464a3a{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1bc01e,I,A];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x649544){super(_0x649544),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x38fab1=this['editor'],_0x59290b=_0x38fab1['editing']['view']['document'];_0x38fab1['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x38fab1['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x59290b,'click',(_0x247031,_0x3ade20)=>{if(!_0x3ade20['target'])return;const _0x105164=_0x3ade20['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x105164)&&(_0x3ade20['domEvent']['preventDefault'](),_0x247031['stop'](),this['_handleScrollToHeading'](_0x105164));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x38fab1['commands']['add']('insertTableOfContents',new K(_0x38fab1));const _0x35b7ad=_0x38fab1['config']['get']('tableOfContents.headings');_0x35b7ad&&_0x35b7ad['length']?this['listenTo'](_0x38fab1['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x35b7ad),this['_updateTableOfContentsElements']();}):_0x38fab1['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0xb30544,_0x33f54b)=>{this['_currentOutlineDefinitions']=_0x33f54b['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x38fab1['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x5ca1e1){const _0x156491='mr4z2yakM3x0phtD7jBw1T6qRfeUuZcOLNKVgQSPE9iGIHoXlJW8YsCb5AndFv',_0x5f4c0e=0x78de0,_0x9289e1=window['Date']['now'](),_0x9b2c8=_0x5ca1e1['editor'],_0x255380=new window['Promise'](_0x8e4c08=>{_0x9b2c8['once']('ready',_0x8e4c08);}),_0x5e1892={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x14b7ed=_0x9b2c8['config']['get']('licenseKey');async function _0xe5c1a9(){let _0x2d5c85,_0x24e848=null,_0x436f22=null;try{return'GPL'==_0x14b7ed?'NotAllowed':(_0x2d5c85=_0x146c3c(),_0x2d5c85?(_0x2d5c85['usageEndpoint']&&(_0x436f22=_0x3dbe4e(_0x2d5c85['usageEndpoint'],_0x2d5c85['jti'])),await _0x279c48()?_0x590018()?_0x2c6400()?'Expired':_0x313359()?('evaluation'==_0x2d5c85['licenseType']&&(_0x24e848=_0x4965fd('EvaluationLimit')),await _0x3cb66f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2c6400(){const _0x242bac=['evaluation','trial']['includes'](_0x2d5c85['licenseType'])?_0x9289e1/0x3e8:0xe10*_0x5f4c0e;return _0x2d5c85['exp']<_0x242bac;}function _0x590018(){const _0x596b98=_0x2d5c85['features'];return!!_0x596b98&&(!!_0x596b98['includes']('*')||(!!_0x596b98['includes']('TOC')||(!!_0x596b98['includes']('PP')||!(!_0x596b98['includes']('TRILIUM')||!_0x2452ee()))));}function _0x313359(){const _0x3e16fa=_0x2d5c85['licensedHosts'];if(!_0x3e16fa||0x0==_0x3e16fa['length'])return!0x0;const {hostname:_0x419a17}=new URL(window['location']['href']);if(_0x3e16fa['includes'](_0x419a17))return!0x0;const _0x199b30=_0x419a17['split']('.');return _0x3e16fa['filter'](_0xdc6da7=>_0xdc6da7['includes']('*'))['map'](_0x538a31=>_0x538a31['split']('.'))['filter'](_0x31e806=>_0x31e806['length']<=_0x199b30['length'])['map'](_0x4c2a64=>Array(_0x199b30['length']-_0x4c2a64['length'])['fill']('*'===_0x4c2a64[0x0]?'*':'')['concat'](_0x4c2a64))['some'](_0x1599dd=>_0x199b30['every']((_0x523dfd,_0x4bc3b0)=>_0x1599dd[_0x4bc3b0]===_0x523dfd||'*'===_0x1599dd[_0x4bc3b0]));}function _0x3cb66f(){return _0x24e848&&_0x436f22?new window['Promise']((_0x2ee80b,_0x53042d)=>{_0x24e848['then'](_0x2ee80b,_0x53042d),_0x436f22['then'](_0xa425a8=>{'Valid'!=_0xa425a8&&_0x2ee80b(_0xa425a8);},_0x53042d);}):_0x24e848||_0x436f22||'Valid';}}function _0x3dbe4e(_0x5a95b9,_0x26a4d9){return new window['Promise'](_0xd57d20=>{if(_0x543154())return _0xd57d20('Valid');_0x5ad6f5(),_0x9b2c8['decorate']('_sendUsageRequest');let _0x180fa3=!0x1;const _0x11ed29=_0x8d5b21();function _0x519898(_0x288215){return!!_0x288215&&('object'==typeof _0x288215||'function'==typeof _0x288215)&&'function'==typeof _0x288215['then']&&'function'==typeof _0x288215['catch'];}function _0x52c172(_0x2e6873){_0x31cac9(_0x2e6873)['then'](_0xac641e=>_0xac641e&&'ok'==_0xac641e['status']?_0xcc1d4f(_0x3f03d5(_0x11ed29+_0x26a4d9))!=_0xac641e['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0xa324d2=>(_0x5d8f06(),_0xa324d2),()=>{const _0x3794f6=_0x222bed();return null==_0x3794f6?(_0x5d8f06(),'Valid'):_0x9289e1-_0x3794f6>0x240c8400?'UsageLimit':'Valid';})['then'](_0xd57d20)['catch'](()=>{_0xd57d20('UsageLimit');});const _0x5cb359=0x36ee80;function _0x5d8f06(){const _0x1e5043='llct-'+_0xcc1d4f(_0x3f03d5(_0x5a95b9)),_0x31891e=_0x45d0d1(_0xcc1d4f(window['Math']['ceil'](_0x9289e1/_0x5cb359)));window['localStorage']['setItem'](_0x1e5043,_0x31891e);}function _0x222bed(){const _0x24e615='llct-'+_0xcc1d4f(_0x3f03d5(_0x5a95b9)),_0x76b19c=window['localStorage']['getItem'](_0x24e615);return _0x76b19c?window['parseInt'](_0x45d0d1(_0x76b19c),0x10)*_0x5cb359:null;}function _0x31cac9(_0x531a55){return new window['Promise']((_0x5e5db8,_0x5e2b15)=>{_0x531a55['then'](_0x5e5db8,_0x5e2b15),window['setTimeout'](_0x5e2b15,0x1d4c0);});}}_0x9b2c8['on']('_sendUsageRequest',(_0x4b8364,_0x4d05b7)=>{if(_0x4d05b7[0x0]!=_0x5a95b9)return _0xd57d20('UsageLimit');_0x4d05b7[0x1]={..._0x4d05b7[0x1],'requestId':_0x11ed29};},{'priority':'high'}),_0x9b2c8['on']('_sendUsageRequest',_0xb1fbc3=>{_0x519898(_0xb1fbc3['return'])&&(_0x180fa3=!0x0,_0x52c172(_0xb1fbc3['return']));},{'priority':'low'}),_0x255380['then'](()=>{_0x180fa3||_0xd57d20('UsageLimit');});});function _0x543154(){return'auto'==_0x9b2c8['editing']['view']['_overlayModeHint'];}function _0x5ad6f5(){_0x9b2c8['editing']['view']['_overlayModeHint']='auto';}}function _0x4965fd(_0x4ae6d3){const _0x3f1a8b=[new window['Promise'](_0x56c04f=>setTimeout(_0x56c04f,0x93ecc)),_0x255380['then'](()=>new window['Promise'](_0x20d084=>{let _0xa1282=0x0;_0x9b2c8['model']['on']('applyOperation',(_0x36d072,_0x42fb69)=>{_0x42fb69[0x0]['isDocumentOperation']&&_0xa1282++,0x5e8==_0xa1282&&(_0x20d084(),_0x36d072['off']());});}))];return window['Promise']['race'](_0x3f1a8b)['then'](()=>_0x4ae6d3);}async function _0x271a70(){await _0x255380,_0x9b2c8['model']['change']=_0x1b96ea,_0x9b2c8['model']['enqueueChange']=_0x1b96ea,_0x9b2c8['enableReadOnlyMode']('model');}function _0x2452ee(){return window['glob']&&window['glob']['triliumVersion'];}function _0x36a180(_0x3a2c34){const _0x110a3f=_0x36d6de();_0x9b2c8[_0x110a3f]='tableOfContentsLicenseKey'+_0x3a2c34,'Valid'!=_0x3a2c34&&_0x271a70();}function _0x36d6de(){const _0x1adf7c=window['String'](window['performance']['now']())['replace']('.','');let _0x2cd65b='m';for(let _0x3d44ca=0x0;_0x3d44ca<_0x1adf7c['length'];_0x3d44ca+=0x2){let _0x381391=window['parseInt'](_0x1adf7c['substring'](_0x3d44ca,_0x3d44ca+0x2));_0x381391>=0x3e&&(_0x381391-=0x3e),_0x2cd65b+=_0x156491[_0x381391];}return _0x2cd65b;}function _0x146c3c(){const _0x4b72a2=_0x14b7ed['split']('.');if(0x3!=_0x4b72a2['length'])return null;return _0x4c76b0(_0x4b72a2[0x1]);function _0x4c76b0(_0xab9449){const _0x187e88=_0x18dbbe(_0xab9449);return _0x187e88&&_0x1831af()?_0x187e88:null;function _0x1831af(){const _0x583548=_0x187e88['jti'],_0x2941f4=window['parseInt'](_0x583548['substring'](_0x583548['length']-0x8),0x10),_0x586007={..._0x187e88,'jti':_0x583548['substring'](0x0,_0x583548['length']-0x8)};return delete _0x586007['vc'],_0x3f03d5(_0x586007)==_0x2941f4;}}}async function _0x279c48(){let _0x2a2522=!0x0;try{const [_0x467c31,_0x2a064b,_0x14a2d6]=_0x14b7ed['split']('.');return _0x527636(_0x467c31),await _0x147897(_0x467c31,_0x2a064b,_0x14a2d6),_0x2a2522;}catch{return!0x1;}function _0x527636(_0x54f728){const _0x33cfa3=_0x18dbbe(_0x54f728);_0x33cfa3&&'ES256'==_0x33cfa3['alg']||(_0x2a2522=!0x1);}async function _0x147897(_0x452e69,_0x3bc17a,_0x1557c9){const _0x2c66d3=window['Uint8Array']['from'](_0x454a76(_0x1557c9),_0x361908=>_0x361908['charCodeAt'](0x0)),_0x4857aa=new window['TextEncoder']()['encode'](_0x452e69+'.'+_0x3bc17a),_0x4e5931=window['crypto']['subtle'];if(!_0x4e5931)return;const _0x3dd3cf=await _0x4e5931['importKey']('jwk',_0x5e1892,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4e5931['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3dd3cf,_0x2c66d3,_0x4857aa)||(_0x2a2522=!0x1);}}function _0x18dbbe(_0xbe335c){return _0xbe335c['startsWith']('ey')?JSON['parse'](_0x454a76(_0xbe335c)):null;}function _0x454a76(_0x84b113){return window['atob'](_0x84b113['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3f03d5(_0x595b18){let _0x22dd7b=0x1505;function _0x1854d6(_0x5e19dc){for(let _0x15c13a=0x0;_0x15c13a<_0x5e19dc['length'];_0x15c13a++){const _0x58348c=_0x5e19dc['charCodeAt'](_0x15c13a);_0x22dd7b=(_0x22dd7b<<0x5)+_0x22dd7b+_0x58348c,_0x22dd7b&=_0x22dd7b;}}function _0x393a10(_0x48fc94){Array['isArray'](_0x48fc94)?_0x48fc94['forEach'](_0x393a10):_0x48fc94&&'object'==typeof _0x48fc94?Object['entries'](_0x48fc94)['sort']()['forEach'](([_0x5628d5,_0x23aa3b])=>{_0x1854d6(_0x5628d5),_0x393a10(_0x23aa3b);}):_0x1854d6(window['String'](_0x48fc94));}return _0x393a10(_0x595b18),_0x22dd7b>>>0x0;}function _0xcc1d4f(_0x249a28){return _0x249a28['toString'](0x10)['padStart'](0x8,'0');}function _0x45d0d1(_0x59cc52){return _0x59cc52['split']('')['reverse']()['join']('');}function _0x1b96ea(){}_0x36a180(await _0xe5c1a9());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x2e6232=>{'$graveyard'!==_0x2e6232['rootName']&&this['editor']['editing']['reconvertItem'](_0x2e6232);});}['_trackNewToCElements'](){for(const _0x391795 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x391795['type']||'tableOfContents'!==_0x391795['name'])return;this['_tableOfContentsElements']['add'](_0x391795['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x4eeb13){const _0x3a8ef3=this['editor'],_0x35727c=[];for(const _0x2be758 of _0x3a8ef3['model']['document']['getRootNames']())_0x398d85(_0x3a8ef3['model']['document']['getRoot'](_0x2be758));function _0x398d85(_0x25022d){for(const _0x3e29ef of _0x25022d['getChildren']())_0x3e29ef['is']('element')&&(_0x4eeb13['includes'](_0x3e29ef['name'])&&_0x35727c['push']({'level':_0x4eeb13['indexOf'](_0x3e29ef['name'])+0x1,'text':b(_0x3e29ef),'modelElement':_0x3e29ef}),_0x398d85(_0x3e29ef));}return _0x35727c;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x3dd656=this['editor']['conversion'];_0x3dd656['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x3dd656['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x4df076,{writer:_0x7361ae})=>this['_createTableOfContents'](_0x7361ae,!0x0)}),_0x3dd656['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x17e525,{writer:_0x336c42})=>(this['_tableOfContentsElements']['add'](_0x17e525),_0x49ab46(this['_createTableOfContents'](_0x336c42),_0x336c42,{'label':L(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'](_0x5ca1d7,_0x102593=!0x1){const {locale:_0x3f2b8f}=this['editor'],_0x116768=_0x5ca1d7['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x102593&&{'data-table-of-contents-label':L(_0x3f2b8f,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x102593&&_0x5ca1d7['insert'](_0x5ca1d7['createPositionAt'](_0x116768,'end'),_0x5ca1d7['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x5ca1d7['createText'](L(_0x3f2b8f,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x360b59=_0x102593?'':'['+L(_0x3f2b8f,'Empty\x20heading')+']';let _0x1106b5=_0x116768;return this['_currentOutlineDefinitions']['forEach']((_0x316061,_0x4e5c58,_0x2e4380)=>{const _0x342564=this['editor']['model']['hasContent'](_0x316061['modelElement'],{'ignoreWhitespaces':!0x0}),_0x4d11de=_0x342564?_0x316061['text']:_0x360b59,_0x57a578=_0x316061['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x2a6e74=_0x5ca1d7['createContainerElement']('a',{'href':'#'+_0x57a578,...!_0x102593&&{'tabindex':'-1'}},[_0x5ca1d7['createText'](_0x4d11de)]),_0x2fca0f=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x5ca1d7['setCustomProperty']('tableOfContentsHeadingIndex',_0x4e5c58,_0x2a6e74);const _0xba389a=_0x5ca1d7['createContainerElement']('li',null,[_0x342564||!_0x102593&&_0x2fca0f?_0x2a6e74:_0x5ca1d7['createText']('')]),_0x50eb4e=_0x4e5c58?_0x2e4380[_0x4e5c58-0x1]['level']:0x0,_0x315124=Math['abs'](_0x316061['level']-_0x50eb4e);if(_0x316061['level']>_0x50eb4e){const _0x35f519=P(_0xba389a,_0x315124,_0x5ca1d7);_0x5ca1d7['insert'](_0x5ca1d7['createPositionAt'](_0x1106b5,'end'),_0x35f519);}else{const _0x590965=function(_0x2db7fa,_0x9a57cf){return _0x2db7fa['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x2232be=>_0x2232be['is']('element','ol'))[_0x9a57cf];}(_0x1106b5,_0x315124);_0x5ca1d7['insert'](_0x5ca1d7['createPositionAt'](_0x590965,'end'),_0xba389a);}_0x1106b5=_0xba389a;}),_0x116768;}['_handleScrollToHeading'](_0x19c93c){const _0x5dc6b4=this['_currentOutlineDefinitions'][_0x19c93c]['modelElement'];this['editor']['model']['change'](_0x191c4c=>{_0x191c4c['setSelection'](_0x5dc6b4,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x15d044,_0x2821ea)=>{const _0x1f4d0c=_0x2821ea['mapper'],_0x4bb686=_0x1f4d0c['findMappedViewAncestor'](_0x2821ea['viewPosition']),_0x54a366=_0x1f4d0c['toModelElement'](_0x4bb686);_0x54a366['is']('element','tableOfContents')&&(_0x2821ea['modelPosition']=this['editor']['model']['createPositionAt'](_0x54a366,0x0),_0x15d044['stop']());};}};function P(_0x2c0c07,_0x5e4c66,_0x8c5e81){return 0x1===_0x5e4c66?_0x8c5e81['createContainerElement']('ol',null,[_0x2c0c07]):_0x8c5e81['createContainerElement']('ol',null,[_0x8c5e81['createContainerElement']('li',null,[P(_0x2c0c07,_0x5e4c66-0x1,_0x8c5e81)])]);}var U=class extends _0x464a3a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2ebce6=this['editor'];_0x2ebce6['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x34f617=this['_createButton'](_0x123b34);return _0x34f617['tooltip']=!0x0,_0x34f617;}),_0x2ebce6['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x3b1daf)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x19eaa8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1da1dc;for(const _0x1d8f50 in _0x19eaa8){const _0x196494=_0x1d8f50,_0x2fd2a6=_0x19eaa8[_0x196494];if('tableOfContentsLicenseKeyValid'==_0x2fd2a6||'tableOfContentsLicenseKeyInvalid'==_0x2fd2a6||'tableOfContentsLicenseKeyExpired'==_0x2fd2a6||'tableOfContentsLicenseKeyDomainLimit'==_0x2fd2a6||'tableOfContentsLicenseKeyNotAllowed'==_0x2fd2a6||'tableOfContentsLicenseKeyEvaluationLimit'==_0x2fd2a6||'tableOfContentsLicenseKeyUsageLimit'==_0x2fd2a6){delete _0x19eaa8[_0x196494],_0x1da1dc=_0x2fd2a6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x1da1dc&&_0x19eaa8['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x1da1dc&&_0x19eaa8['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x1da1dc&&_0x19eaa8['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x1da1dc&&_0x19eaa8['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x1da1dc&&_0x19eaa8['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x1da1dc&&_0x19eaa8['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x55ffb4){const _0x1f38d5=this['editor'],_0x17b8b6=_0x1f38d5['locale'],_0x2b0c0b=_0x1f38d5['commands']['get']('insertTableOfContents'),_0x42f9d9=new _0x55ffb4(_0x17b8b6);return _0x42f9d9['set']({'label':L(_0x17b8b6,'Table\x20of\x20contents'),'icon':_0x204e27}),_0x42f9d9['bind']('isEnabled')['to'](_0x2b0c0b,'isEnabled'),this['listenTo'](_0x42f9d9,'execute',()=>{_0x1f38d5['execute']('insertTableOfContents'),_0x1f38d5['editing']['view']['focus']();}),_0x42f9d9;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},D=class extends _0x464a3a{static get['requires'](){return[N,U];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{E as DocumentOutline,x as DocumentOutlineUI,I as DocumentOutlineUtils,A as HeadingId,D as TableOfContents,K as TableOfContentsCommand,N as TableOfContentsEditing,U as TableOfContentsUI};
@@ -1,5 +1 @@
1
- /**
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
1
  export {};
@@ -1,26 +1,26 @@
1
1
  /**
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';
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
- * 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
- */
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
- * @inheritDoc
12
- */
13
- static get pluginName(): "HeadingId";
14
- /**
15
- * @inheritDoc
16
- */
17
- static get isOfficialPlugin(): true;
18
- /**
19
- * @inheritDoc
20
- */
21
- static get isPremiumPlugin(): true;
22
- /**
23
- * @inheritDoc
24
- */
25
- afterInit(): void;
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
  }