@ckeditor/ckeditor5-document-outline 45.2.1 → 46.0.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.
- package/build/document-outline.js +1 -1
- package/dist/index-content.css +7 -7
- package/dist/index-editor.css +3 -3
- package/dist/index.css +7 -7
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +10 -10
- package/src/documentoutline/documentoutlineui.d.ts +2 -2
- package/src/documentoutline/documentoutlineui.js +1 -1
- package/src/documentoutline/documentoutlineutils.d.ts +3 -3
- package/src/documentoutline/documentoutlineutils.js +1 -1
- package/src/documentoutline/ui/documentoutlineitemview.d.ts +1 -1
- package/src/documentoutline/ui/documentoutlineitemview.js +1 -1
- package/src/documentoutline/ui/documentoutlineview.d.ts +2 -2
- package/src/documentoutline/ui/documentoutlineview.js +1 -1
- package/src/documentoutline/utils.d.ts +2 -2
- package/src/documentoutline/utils.js +1 -1
- package/src/documentoutline.d.ts +3 -3
- package/src/documentoutline.js +1 -1
- package/src/index.d.ts +8 -8
- package/src/index.js +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/tableofcontents/headingid.d.ts +1 -1
- package/src/tableofcontents/headingid.js +1 -1
- package/src/tableofcontents/tableofcontentscommand.d.ts +1 -1
- package/src/tableofcontents/tableofcontentscommand.js +1 -1
- package/src/tableofcontents/tableofcontentsediting.d.ts +3 -3
- package/src/tableofcontents/tableofcontentsediting.js +1 -1
- package/src/tableofcontents/tableofcontentsui.d.ts +1 -1
- package/src/tableofcontents/tableofcontentsui.js +1 -1
- package/src/tableofcontents.d.ts +3 -3
- package/src/tableofcontents.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/tableofcontents.css +7 -7
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ddde0=_0x6fb9;(function(_0xcf5826,_0x46deae){const _0x408db1=_0x6fb9,_0x204fb1=_0xcf5826();while(!![]){try{const _0x251a96=parseInt(_0x408db1(0x220))/0x1*(parseInt(_0x408db1(0x1ec))/0x2)+parseInt(_0x408db1(0x20a))/0x3*(parseInt(_0x408db1(0x1f0))/0x4)+-parseInt(_0x408db1(0x207))/0x5*(-parseInt(_0x408db1(0x1e7))/0x6)+-parseInt(_0x408db1(0x21f))/0x7+-parseInt(_0x408db1(0x20f))/0x8+-parseInt(_0x408db1(0x1ef))/0x9+-parseInt(_0x408db1(0x1fd))/0xa;if(_0x251a96===_0x46deae)break;else _0x204fb1['push'](_0x204fb1['shift']());}catch(_0x28ff71){_0x204fb1['push'](_0x204fb1['shift']());}}}(_0x1a0c,0xaed40));function _0x6fb9(_0x7920ef,_0x130ea8){const _0x1a0c61=_0x1a0c();return _0x6fb9=function(_0x6fb94c,_0x2089b3){_0x6fb94c=_0x6fb94c-0x1e3;let _0x43f509=_0x1a0c61[_0x6fb94c];return _0x43f509;},_0x6fb9(_0x7920ef,_0x130ea8);}import{Plugin as _0x154889}from'ckeditor5/src/core.js';function _0x1a0c(){const _0x5806db=['for','getChanges','isRegistered','remove','conversion','_registerHeadingIdAttributePostfixer','pluginName','_customUpcastHeadingsConversion','HeadingId','headingId.modelAttributeName','position','get','consume','setAttribute','2258298iBfGvi','11NuyphS','getAttribute','toViewElement','nodeAfter','low','name','add','schema','isOfficialPlugin','set','model','element:','_customDataDowncastHeadingsConversion','upcast','string','1752102PGFLYw','document','heading.options','viewItem','paragraph','215942yVSSYy','view','length','1730736WsvDRf','4fGwloD','attribute:headingId:','match','insert','editor','registerPostFixer','change','has','heading1','config','downcast','item','clear','2406670czABtv','mapper','modelRange','isPremiumPlugin','differ','extend','hasAttribute','getContainedElement','writer','afterInit','5iOlNSF','headingId','consumable','2944605rXlDMt','type','removeAttribute','forEach','attributes','7916416RUGqgy','delete'];_0x1a0c=function(){return _0x5806db;};return _0x1a0c();}import{uid as _0x2a6376,priorities as _0xe80f1d}from'ckeditor5/src/utils.js';export class HeadingId extends _0x154889{static get[_0x1ddde0(0x217)](){const _0x2c9a8=_0x1ddde0;return _0x2c9a8(0x219);}static get[_0x1ddde0(0x228)](){return!0x0;}static get[_0x1ddde0(0x200)](){return!0x0;}[_0x1ddde0(0x206)](){const _0x5d201d=_0x1ddde0,_0x4a07f0=this[_0x5d201d(0x1f4)];if(_0x4a07f0[_0x5d201d(0x1f9)][_0x5d201d(0x21c)](_0x5d201d(0x21a)))return;(function(_0x45ed52){const _0x260144=_0x5d201d,_0x292d81=new Map();if(_0x45ed52)return _0x45ed52[_0x260144(0x20d)](_0x39a4e1=>{const _0x21799e=_0x260144;_0x21799e(0x1eb)!==_0x39a4e1[_0x21799e(0x22a)]&&_0x292d81[_0x21799e(0x229)](_0x39a4e1[_0x21799e(0x1ed)],_0x39a4e1[_0x21799e(0x22a)]);}),_0x292d81[_0x260144(0x21c)]('h1')||_0x292d81[_0x260144(0x229)]('h1',_0x260144(0x1f8)),_0x292d81;return _0x292d81;}(this[_0x5d201d(0x1f4)][_0x5d201d(0x1f9)][_0x5d201d(0x21c)](_0x5d201d(0x1e9)))[_0x5d201d(0x20d)]((_0x2765ce,_0x4605c9)=>{const _0x47e039=_0x5d201d;this[_0x47e039(0x218)](_0x4605c9),this[_0x47e039(0x1e4)](_0x2765ce),_0x4a07f0[_0x47e039(0x22a)][_0x47e039(0x227)][_0x47e039(0x213)](_0x2765ce)&&_0x4a07f0[_0x47e039(0x22a)][_0x47e039(0x227)][_0x47e039(0x202)](_0x2765ce,{'allowAttributes':_0x47e039(0x208)});}),this[_0x5d201d(0x216)]());}[_0x1ddde0(0x218)](_0xd01b6b){const _0x534ded=_0x1ddde0;this[_0x534ded(0x1f4)][_0x534ded(0x215)][_0x534ded(0x211)](_0x534ded(0x1e5))[_0x534ded(0x226)](_0x29beb2=>_0x29beb2['on'](_0x534ded(0x1e3)+_0xd01b6b,(_0xe48777,_0x4e21e0,_0x44c951)=>{const _0x3765c6=_0x534ded,{consumable:_0x32656d,writer:_0x2567e1}=_0x44c951,_0x24ea22=_0x4e21e0[_0x3765c6(0x1ea)][_0x3765c6(0x221)]('id'),_0x203926=_0x4e21e0[_0x3765c6(0x1ff)][_0x3765c6(0x204)]();if(_0x203926)return _0x24ea22&&_0x24ea22[_0x3765c6(0x1ee)]||_0x203926[_0x3765c6(0x203)](_0x3765c6(0x208))?void(_0x32656d[_0x3765c6(0x21d)](_0x4e21e0[_0x3765c6(0x1ea)],{'attributes':['id']})&&_0x2567e1[_0x3765c6(0x21e)](_0x3765c6(0x208),_0x24ea22,_0x203926)):(_0x32656d[_0x3765c6(0x21d)](_0x4e21e0[_0x3765c6(0x1ea)],{'attributes':['id']}),void _0x2567e1[_0x3765c6(0x21e)](_0x3765c6(0x208),_0x2a6376(),_0x203926));},{'priority':_0xe80f1d[_0x534ded(0x21c)](_0x534ded(0x224))+0.5}));}[_0x1ddde0(0x1e4)](_0x26afd8){const _0x3a04d3=_0x1ddde0;this[_0x3a04d3(0x1f4)][_0x3a04d3(0x215)][_0x3a04d3(0x211)](_0x3a04d3(0x1fa))[_0x3a04d3(0x226)](_0x54061d=>_0x54061d['on'](_0x3a04d3(0x1f1)+_0x26afd8,(_0x5de28b,_0x4bf46c,_0x476fe5)=>{const _0x4175b6=_0x3a04d3;if(!_0x476fe5[_0x4175b6(0x209)][_0x4175b6(0x21d)](_0x4bf46c[_0x4175b6(0x1fb)],_0x5de28b[_0x4175b6(0x225)]))return;const _0x416e60=_0x4bf46c[_0x4175b6(0x1fb)][_0x4175b6(0x221)](_0x4175b6(0x208)),_0x5da569=_0x476fe5[_0x4175b6(0x1fe)][_0x4175b6(0x222)](_0x4bf46c[_0x4175b6(0x1fb)]);_0x476fe5[_0x4175b6(0x205)][_0x4175b6(0x21e)]('id',_0x416e60,_0x5da569);}));}[_0x1ddde0(0x216)](){const _0xa6f1ef=_0x1ddde0,_0x15bc3a=this[_0xa6f1ef(0x1f4)],_0x464dbf=new Set(),_0x4e9f82=new Set();function _0x5a5557(_0x42fa05,_0x46330a){const _0x2e843c=_0xa6f1ef,_0x43cf1e=_0x2a6376();return _0x4e9f82[_0x2e843c(0x226)](_0x43cf1e),_0x42fa05[_0x2e843c(0x21e)](_0x2e843c(0x208),_0x43cf1e,_0x46330a),_0x43cf1e;}function _0x575f05(_0x4088bd,_0x3ca60a){const _0x266262=_0xa6f1ef;_0x4088bd[_0x266262(0x20c)](_0x266262(0x208),_0x3ca60a);}_0x15bc3a[_0xa6f1ef(0x22a)][_0xa6f1ef(0x1e8)][_0xa6f1ef(0x1f5)](_0x4e8d56=>{const _0x26fe30=_0xa6f1ef,_0x3fe1e2=_0x15bc3a[_0x26fe30(0x22a)][_0x26fe30(0x1e8)][_0x26fe30(0x201)][_0x26fe30(0x212)]();let _0x278057=!0x1;for(const _0x4a2ef3 of _0x3fe1e2)if(_0x26fe30(0x1f3)==_0x4a2ef3[_0x26fe30(0x20b)]&&_0x4a2ef3[_0x26fe30(0x225)]){if(b(_0x4a2ef3[_0x26fe30(0x225)])){const _0x547d2e=_0x4a2ef3[_0x26fe30(0x20e)][_0x26fe30(0x21c)](_0x26fe30(0x208));_0x26fe30(0x1e6)==typeof _0x547d2e?_0x464dbf[_0x26fe30(0x1f7)](_0x547d2e)?(_0x5a5557(_0x4e8d56,_0x4a2ef3[_0x26fe30(0x21b)][_0x26fe30(0x223)]),_0x278057=!0x0):_0x4e9f82[_0x26fe30(0x226)](_0x547d2e):(_0x5a5557(_0x4e8d56,_0x4a2ef3[_0x26fe30(0x21b)][_0x26fe30(0x223)]),_0x278057=!0x0);}else _0x26fe30(0x1e6)==typeof _0x4a2ef3[_0x26fe30(0x20e)][_0x26fe30(0x21c)](_0x26fe30(0x208))&&(_0x575f05(_0x4e8d56,_0x4a2ef3[_0x26fe30(0x21b)][_0x26fe30(0x223)]),_0x278057=!0x0);}else{if(_0x26fe30(0x214)==_0x4a2ef3[_0x26fe30(0x20b)]){const _0x4d6dad=_0x4a2ef3[_0x26fe30(0x20e)][_0x26fe30(0x21c)](_0x26fe30(0x208));_0x26fe30(0x1e6)==typeof _0x4d6dad&&_0x464dbf[_0x26fe30(0x210)](_0x4d6dad);}}return _0x278057;}),_0x15bc3a[_0xa6f1ef(0x22a)][_0xa6f1ef(0x1e8)]['on'](_0xa6f1ef(0x1f6),()=>{const _0x3a337d=_0xa6f1ef;_0x4e9f82[_0x3a337d(0x20d)](_0x2dc033=>_0x464dbf[_0x3a337d(0x226)](_0x2dc033)),_0x4e9f82[_0x3a337d(0x1fc)]();});}}function b(_0x26349e){const _0xce62b7=_0x1ddde0;return!!_0x26349e[_0xce62b7(0x1f2)](/heading\d/);}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { Command } from 'ckeditor5/src/core.js';
|
|
10
|
-
export
|
|
10
|
+
export declare class TableOfContentsCommand extends Command {
|
|
11
11
|
/**
|
|
12
12
|
* Executes the command. Inserts the table of content into the model.
|
|
13
13
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x21a1(){const _0x3b9999=['execute','5633538IPEOXy','20YESdQV','model','getFirstPosition','schema','1139260QVhKET','4407JSbEft','selection','139315YdDdqJ','document','insertObject','99jdZsnO','findAllowedParent','1392223NEboSU','1031736QAwlrp','5QdoaTW','change','createElement','refresh','tableOfContents','editor','1618wqbbdi','5814784sbzVxI','isEnabled'];_0x21a1=function(){return _0x3b9999;};return _0x21a1();}const _0x1d358d=_0x21f3;(function(_0x208ae8,_0x5e3b14){const _0x25a993=_0x21f3,_0x4f229f=_0x208ae8();while(!![]){try{const _0x405534=-parseInt(_0x25a993(0x143))/0x1+-parseInt(_0x25a993(0x13a))/0x2*(-parseInt(_0x25a993(0x12b))/0x3)+-parseInt(_0x25a993(0x13b))/0x4+parseInt(_0x25a993(0x134))/0x5*(parseInt(_0x25a993(0x13e))/0x6)+-parseInt(_0x25a993(0x132))/0x7+-parseInt(_0x25a993(0x133))/0x8*(-parseInt(_0x25a993(0x130))/0x9)+parseInt(_0x25a993(0x13f))/0xa*(-parseInt(_0x25a993(0x12d))/0xb);if(_0x405534===_0x5e3b14)break;else _0x4f229f['push'](_0x4f229f['shift']());}catch(_0x257e15){_0x4f229f['push'](_0x4f229f['shift']());}}}(_0x21a1,0xb1ee6));import{Command as _0x25ae7f}from'ckeditor5/src/core.js';function _0x21f3(_0xc18063,_0x4da4fe){const _0x21a126=_0x21a1();return _0x21f3=function(_0x21f3c5,_0x38c156){_0x21f3c5=_0x21f3c5-0x12b;let _0xf78289=_0x21a126[_0x21f3c5];return _0xf78289;},_0x21f3(_0xc18063,_0x4da4fe);}export class TableOfContentsCommand extends _0x25ae7f{[_0x1d358d(0x13d)](){const _0x4e42a8=_0x1d358d;this[_0x4e42a8(0x139)][_0x4e42a8(0x140)][_0x4e42a8(0x135)](_0x426535=>{const _0x5abe4a=_0x4e42a8;this[_0x5abe4a(0x139)][_0x5abe4a(0x140)][_0x5abe4a(0x12f)](_0x426535[_0x5abe4a(0x136)](_0x5abe4a(0x138)));});}[_0x1d358d(0x137)](){const _0x2e2f39=_0x1d358d,_0x1879c5=this[_0x2e2f39(0x139)][_0x2e2f39(0x140)],_0x4bb24c=_0x1879c5[_0x2e2f39(0x12e)][_0x2e2f39(0x12c)][_0x2e2f39(0x141)]();this[_0x2e2f39(0x13c)]=null!==(_0x4bb24c&&_0x1879c5[_0x2e2f39(0x142)][_0x2e2f39(0x131)](_0x4bb24c,_0x2e2f39(0x138)));}}
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
9
|
import { Widget } from 'ckeditor5/src/widget.js';
|
|
10
10
|
import '../../theme/tableofcontents.css';
|
|
11
|
-
import DocumentOutlineUtils from '../documentoutline/documentoutlineutils.js';
|
|
12
|
-
import HeadingId from './headingid.js';
|
|
11
|
+
import { DocumentOutlineUtils } from '../documentoutline/documentoutlineutils.js';
|
|
12
|
+
import { HeadingId } from './headingid.js';
|
|
13
13
|
/**
|
|
14
14
|
* The table of contents editing plugin.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class TableOfContentsEditing extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x41433a=_0x51ba;(function(_0x43f2bc,_0xd39d77){const _0x571000=_0x51ba,_0x38fbff=_0x43f2bc();while(!![]){try{const _0x1d76f5=parseInt(_0x571000(0x1c7))/0x1+-parseInt(_0x571000(0x1dd))/0x2*(-parseInt(_0x571000(0x1a7))/0x3)+-parseInt(_0x571000(0x1fd))/0x4*(parseInt(_0x571000(0x1d1))/0x5)+parseInt(_0x571000(0x1b9))/0x6*(parseInt(_0x571000(0x1b8))/0x7)+parseInt(_0x571000(0x194))/0x8*(parseInt(_0x571000(0x206))/0x9)+-parseInt(_0x571000(0x1cf))/0xa*(-parseInt(_0x571000(0x1d9))/0xb)+parseInt(_0x571000(0x1b1))/0xc*(-parseInt(_0x571000(0x1fc))/0xd);if(_0x1d76f5===_0xd39d77)break;else _0x38fbff['push'](_0x38fbff['shift']());}catch(_0x5aeeee){_0x38fbff['push'](_0x38fbff['shift']());}}}(_0x3825,0x9b08b));import{Plugin as _0x28dbdf}from'ckeditor5/src/core.js';import{toWidget as _0x5a77bb,Widget as _0xaeb95a}from'ckeditor5/src/widget.js';import{uid as _0x447eb1}from'ckeditor5/src/utils.js';import _0xacfe2c from'./tableofcontentscommand.js';function _0x51ba(_0x50c34d,_0x4d829d){const _0x382562=_0x3825();return _0x51ba=function(_0x51ba68,_0x2274e7){_0x51ba68=_0x51ba68-0x192;let _0x2dc8e8=_0x382562[_0x51ba68];return _0x2dc8e8;},_0x51ba(_0x50c34d,_0x4d829d);}import'../../theme/tableofcontents.css';import _0x10381a from'../documentoutline/documentoutlineutils.js';import _0x1e7a65 from'./headingid.js';import{getTranslation as _0x2f4768}from'../utils/common-translations.js';export default class s extends _0x28dbdf{static get[_0x41433a(0x1eb)](){const _0x2936d0=_0x41433a;return _0x2936d0(0x198);}static get[_0x41433a(0x1d4)](){return!0x0;}static get[_0x41433a(0x1db)](){return!0x0;}static get[_0x41433a(0x1b6)](){return[_0xaeb95a,_0x10381a,_0x1e7a65];}[_0x41433a(0x1be)];[_0x41433a(0x1cd)];[_0x41433a(0x1ff)];constructor(_0x4d2ea6){const _0x40e023=_0x41433a;super(_0x4d2ea6),this[_0x40e023(0x1be)]=[],this[_0x40e023(0x1cd)]=new Set(),this[_0x40e023(0x1ff)]=_0x40e023(0x1af);}[_0x41433a(0x1c1)](){const _0x2cdc48=_0x41433a,_0x26ca91=this[_0x2cdc48(0x1c5)],_0x10a60a=_0x26ca91[_0x2cdc48(0x1d2)][_0x2cdc48(0x196)][_0x2cdc48(0x1c0)];_0x26ca91[_0x2cdc48(0x1e8)][_0x2cdc48(0x1ce)](_0x2cdc48(0x1f2))&&(this[_0x2cdc48(0x1ff)]=_0x26ca91[_0x2cdc48(0x1e8)][_0x2cdc48(0x1ce)](_0x2cdc48(0x1f2))),this[_0x2cdc48(0x1d0)](_0x10a60a,_0x2cdc48(0x1a0),(_0x147590,_0x1bf0c5)=>{const _0x37a0bb=_0x2cdc48;if(!_0x1bf0c5[_0x37a0bb(0x1ca)])return;const _0x25084f=_0x1bf0c5[_0x37a0bb(0x1ca)][_0x37a0bb(0x1f6)](_0x37a0bb(0x195));Number[_0x37a0bb(0x1a4)](_0x25084f)&&(_0x1bf0c5[_0x37a0bb(0x1e3)][_0x37a0bb(0x1f7)](),_0x147590[_0x37a0bb(0x1cc)](),this[_0x37a0bb(0x1d3)](_0x25084f));},{'priority':_0x2cdc48(0x197),'context':_0x2cdc48(0x204)}),this[_0x2cdc48(0x1bc)](),this[_0x2cdc48(0x1a5)](),_0x26ca91[_0x2cdc48(0x199)][_0x2cdc48(0x1e9)](_0x2cdc48(0x1e0),new _0xacfe2c(_0x26ca91)),(_0x26ca91[_0x2cdc48(0x201)][_0x2cdc48(0x1ce)](_0x2cdc48(0x1cb))['on'](_0x2cdc48(0x1e6),(_0x5a10b2,_0x36fc3f)=>{const _0x4cfe51=_0x2cdc48;this[_0x4cfe51(0x1be)]=_0x36fc3f[_0x4cfe51(0x19d)],this[_0x4cfe51(0x1b0)]();}),this[_0x2cdc48(0x1d0)](_0x26ca91[_0x2cdc48(0x1c9)][_0x2cdc48(0x1c0)],_0x2cdc48(0x1e6),()=>{const _0x4b382b=_0x2cdc48;this[_0x4b382b(0x1e2)]();}));}[_0x41433a(0x1ad)](){!async function(_0x36f73c){const _0x2412aa=_0x865a12([0x72,0x53,0x37,0x55,0x50,0x5a,0x63,0x4c,0x4f,0x73,0x68,0x70,0x69,0x58,0x48,0x4b,0x77,0x6a,0x41,0x57,0x7a,0x64,0x6f,0x61,0x42,0x36,0x67,0x47,0x59,0x32,0x6d,0x34,0x79,0x44,0x76,0x6c,0x46,0x45,0x62,0x4d,0x43,0x52,0x4a,0x65,0x54,0x39,0x66,0x38,0x4e,0x31,0x78,0x75,0x51,0x74,0x71,0x35,0x33,0x49,0x30,0x6b,0x56,0x6e]),_0x50f30e=0x574f3f25,_0x3651ed=0x5748548d^_0x50f30e,_0x1b74d1=window[_0x865a12([0x44,0x61,0x74,0x65])][_0x865a12([0x6e,0x6f,0x77])](),_0x9a9f5a=_0x36f73c[_0x865a12([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5eede2=new window[(_0x865a12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e3a68=>{_0x9a9f5a[_0x865a12([0x6f,0x6e,0x63,0x65])](_0x865a12([0x72,0x65,0x61,0x64,0x79]),_0x5e3a68);}),_0x429f4f={[_0x865a12([0x6b,0x74,0x79])]:_0x865a12([0x45,0x43]),[_0x865a12([0x75,0x73,0x65])]:_0x865a12([0x73,0x69,0x67]),[_0x865a12([0x63,0x72,0x76])]:_0x865a12([0x50,0x2d,0x32,0x35,0x36]),[_0x865a12([0x78])]:_0x865a12([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]),[_0x865a12([0x79])]:_0x865a12([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]),[_0x865a12([0x61,0x6c,0x67])]:_0x865a12([0x45,0x53,0x32,0x35,0x36])},_0x56d59c=_0x9a9f5a[_0x865a12([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x865a12([0x67,0x65,0x74])](_0x865a12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56a37b(){let _0x22bfe4,_0x2f24e7=null,_0x50aa33=null;try{if(_0x56d59c==_0x865a12([0x47,0x50,0x4c]))return _0x865a12([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x22bfe4=_0x450d54(),!_0x22bfe4)return _0x865a12([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x22bfe4[_0x865a12([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x50aa33=_0x45c0a5(_0x22bfe4[_0x865a12([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x22bfe4[_0x865a12([0x6a,0x74,0x69])])),await _0x1067ed()?_0x5c051f()?_0x1f3d13()?_0x865a12([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52236d()?(_0x22bfe4[_0x865a12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x865a12([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f24e7=_0x2067a6(_0x865a12([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x22bfe4[_0x865a12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x865a12([0x74,0x72,0x69,0x61,0x6c])&&(_0x2f24e7=_0x2067a6(_0x865a12([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x44d707()):_0x865a12([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x865a12([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x865a12([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x865a12([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f3d13(){const _0xa22d4e=[_0x865a12([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x865a12([0x74,0x72,0x69,0x61,0x6c])][_0x865a12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22bfe4[_0x865a12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1b74d1/0x3e8:0xe10*_0x3651ed;return _0x22bfe4[_0x865a12([0x65,0x78,0x70])]<_0xa22d4e;}function _0x5c051f(){const _0x4c48b4=_0x22bfe4[_0x865a12([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4c48b4&&(!!_0x4c48b4[_0x865a12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x865a12([0x2a]))||(!!_0x4c48b4[_0x865a12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x865a12([0x54,0x4f,0x43]))||!!_0x4c48b4[_0x865a12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x865a12([0x50,0x50]))));}function _0x52236d(){const _0x15d953=_0x51ba,_0xf5c103=_0x22bfe4[_0x865a12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf5c103||0x0==_0xf5c103[_0x865a12([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x335fcd}=new URL(window[_0x865a12([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x15d953(0x1a2)]);if(_0xf5c103[_0x865a12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x335fcd))return!0x0;const _0x122140=_0x335fcd[_0x865a12([0x73,0x70,0x6c,0x69,0x74])](_0x865a12([0x2e]));return _0xf5c103[_0x865a12([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19f359=>_0x19f359[_0x865a12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x865a12([0x2a])))[_0x865a12([0x6d,0x61,0x70])](_0x5651a5=>_0x5651a5[_0x865a12([0x73,0x70,0x6c,0x69,0x74])](_0x865a12([0x2e])))[_0x865a12([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17decb=>_0x17decb[_0x865a12([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x122140[_0x865a12([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x865a12([0x6d,0x61,0x70])](_0x42796c=>Array(_0x122140[_0x865a12([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42796c[_0x865a12([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x865a12([0x66,0x69,0x6c,0x6c])](_0x42796c[0x0]===_0x865a12([0x2a])?_0x865a12([0x2a]):'')[_0x865a12([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42796c))[_0x865a12([0x73,0x6f,0x6d,0x65])](_0x25db97=>_0x122140[_0x865a12([0x65,0x76,0x65,0x72,0x79])]((_0x3d20b1,_0x1df0d5)=>_0x25db97[_0x1df0d5]===_0x3d20b1||_0x25db97[_0x1df0d5]===_0x865a12([0x2a])));}function _0x44d707(){return _0x2f24e7&&_0x50aa33?new window[(_0x865a12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33662d,_0x610c0)=>{_0x2f24e7[_0x865a12([0x74,0x68,0x65,0x6e])](_0x33662d,_0x610c0),_0x50aa33[_0x865a12([0x74,0x68,0x65,0x6e])](_0xf46533=>{_0xf46533!=_0x865a12([0x56,0x61,0x6c,0x69,0x64])&&_0x33662d(_0xf46533);},_0x610c0);}):_0x2f24e7||_0x50aa33||_0x865a12([0x56,0x61,0x6c,0x69,0x64]);}}function _0x45c0a5(_0x46de4a,_0xee624d){return new window[(_0x865a12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a2c85=>{if(_0x578a18())return _0x4a2c85(_0x865a12([0x56,0x61,0x6c,0x69,0x64]));_0xbab7d9(),_0x9a9f5a[_0x865a12([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x865a12([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc16d4a=!0x1;const _0x4c55f3=_0x447eb1();function _0x2dd730(_0x4de681){return!!_0x4de681&&(typeof _0x4de681===_0x865a12([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4de681===_0x865a12([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4de681[_0x865a12([0x74,0x68,0x65,0x6e])]===_0x865a12([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4de681[_0x865a12([0x63,0x61,0x74,0x63,0x68])]===_0x865a12([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x33b9af(_0x4c90c8){_0x2b8e7e(_0x4c90c8)[_0x865a12([0x74,0x68,0x65,0x6e])](_0x227999=>{if(!_0x227999||_0x227999[_0x865a12([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x865a12([0x6f,0x6b]))return _0x865a12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x581593(_0x2ea768(_0x4c55f3+_0xee624d))!=_0x227999[_0x865a12([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x865a12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x865a12([0x56,0x61,0x6c,0x69,0x64]);})[_0x865a12([0x74,0x68,0x65,0x6e])](_0x29947f=>(_0x3ff22b(),_0x29947f),()=>{const _0x19edcb=_0x141242();return null==_0x19edcb?(_0x3ff22b(),_0x865a12([0x56,0x61,0x6c,0x69,0x64])):_0x865a12(_0x1b74d1-_0x19edcb>(0x7343bb25^_0x50f30e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x865a12([0x74,0x68,0x65,0x6e])](_0x4a2c85)[_0x865a12([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a2c85(_0x865a12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x26768e=0x5779d1a5^_0x50f30e;function _0x3ff22b(){const _0x4cdd6e=_0x865a12([0x6c,0x6c,0x63,0x74,0x2d])+_0x581593(_0x2ea768(_0x46de4a)),_0x499421=_0x344998(_0x581593(window[_0x865a12([0x4d,0x61,0x74,0x68])][_0x865a12([0x63,0x65,0x69,0x6c])](_0x1b74d1/_0x26768e)));window[_0x865a12([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x865a12([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4cdd6e,_0x499421);}function _0x141242(){const _0x4e2dc4=_0x865a12([0x6c,0x6c,0x63,0x74,0x2d])+_0x581593(_0x2ea768(_0x46de4a)),_0xc41635=window[_0x865a12([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x865a12([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e2dc4);return _0xc41635?window[_0x865a12([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x344998(_0xc41635),0x10)*_0x26768e:null;}function _0x2b8e7e(_0x6ea098){return new window[(_0x865a12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54ff39,_0xaa0214)=>{_0x6ea098[_0x865a12([0x74,0x68,0x65,0x6e])](_0x54ff39,_0xaa0214),window[_0x865a12([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xaa0214,0x574eebe5^_0x50f30e);});}}_0x9a9f5a[_0x865a12([0x6f,0x6e])](_0x865a12([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4205c8,_0x1bd426)=>{if(_0x1bd426[0x0]!=_0x46de4a)return _0x4a2c85(_0x865a12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bd426[0x1]={..._0x1bd426[0x1],[_0x865a12([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c55f3};},{[_0x865a12([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x865a12([0x68,0x69,0x67,0x68])}),_0x9a9f5a[_0x865a12([0x6f,0x6e])](_0x865a12([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d54ed=>{_0x2dd730(_0x3d54ed[_0x865a12([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc16d4a=!0x0,_0x33b9af(_0x3d54ed[_0x865a12([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x865a12([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x865a12([0x6c,0x6f,0x77])}),_0x5eede2[_0x865a12([0x74,0x68,0x65,0x6e])](()=>{_0xc16d4a||_0x4a2c85(_0x865a12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x578a18(){return _0x9a9f5a[_0x865a12([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x865a12([0x76,0x69,0x65,0x77])][_0x865a12([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x865a12([0x61,0x75,0x74,0x6f]);}function _0xbab7d9(){_0x9a9f5a[_0x865a12([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x865a12([0x76,0x69,0x65,0x77])][_0x865a12([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x865a12([0x61,0x75,0x74,0x6f]);}}function _0x2067a6(_0x2178ad){const _0x8d6610=[new window[(_0x865a12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1abbc8=>setTimeout(_0x1abbc8,0x574601e9^_0x50f30e)),_0x5eede2[_0x865a12([0x74,0x68,0x65,0x6e])](()=>new window[(_0x865a12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3168f5=>{let _0x11f88c=0x0;_0x9a9f5a[_0x865a12([0x6d,0x6f,0x64,0x65,0x6c])][_0x865a12([0x6f,0x6e])](_0x865a12([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2f73c7,_0x17fad0)=>{_0x17fad0[0x0][_0x865a12([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x11f88c++,_0x11f88c==(0x574f3edd^_0x50f30e)&&(_0x3168f5(),_0x2f73c7[_0x865a12([0x6f,0x66,0x66])]());});}))];return window[_0x865a12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x865a12([0x72,0x61,0x63,0x65])](_0x8d6610)[_0x865a12([0x74,0x68,0x65,0x6e])](()=>_0x2178ad);}async function _0x3386f4(){await _0x5eede2,_0x9a9f5a[_0x865a12([0x6d,0x6f,0x64,0x65,0x6c])][_0x865a12([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x57c907,_0x9a9f5a[_0x865a12([0x6d,0x6f,0x64,0x65,0x6c])][_0x865a12([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x57c907,_0x9a9f5a[_0x865a12([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x865a12([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f54c2(_0x12f57a){const _0x17b47f=_0x100309();_0x9a9f5a[_0x17b47f]=_0x865a12([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])+_0x12f57a,_0x12f57a!=_0x865a12([0x56,0x61,0x6c,0x69,0x64])&&_0x3386f4();}function _0x100309(){const _0x55646c=window[_0x865a12([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x865a12([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x865a12([0x6e,0x6f,0x77])]())[_0x865a12([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x865a12([0x2e]),'');let _0x2b8953=_0x865a12([0x72]);for(let _0x14ea05=0x0;_0x14ea05<_0x55646c[_0x865a12([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14ea05+=0x2){let _0x290060=window[_0x865a12([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55646c[_0x865a12([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14ea05,_0x14ea05+0x2));_0x290060>=_0x2412aa[_0x865a12([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x290060-=_0x2412aa[_0x865a12([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b8953+=_0x2412aa[_0x290060];}return _0x2b8953;}function _0x450d54(){const _0x4a5bb4=_0x56d59c[_0x865a12([0x73,0x70,0x6c,0x69,0x74])](_0x865a12([0x2e]));if(0x3!=_0x4a5bb4[_0x865a12([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37cfc6(_0x4a5bb4[0x1]);function _0x37cfc6(_0x5b12b3){const _0x1392fb=_0xb383ba(_0x5b12b3);return _0x1392fb&&_0x40017f()?_0x1392fb:null;function _0x40017f(){const _0xbec279=_0x1392fb[_0x865a12([0x6a,0x74,0x69])],_0x441bb7=window[_0x865a12([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbec279[_0x865a12([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbec279[_0x865a12([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51a6db={..._0x1392fb,[_0x865a12([0x6a,0x74,0x69])]:_0xbec279[_0x865a12([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xbec279[_0x865a12([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51a6db[_0x865a12([0x76,0x63])],_0x2ea768(_0x51a6db)==_0x441bb7;}}}async function _0x1067ed(){let _0x431810=!0x0;try{const _0x381aae=_0x56d59c[_0x865a12([0x73,0x70,0x6c,0x69,0x74])](_0x865a12([0x2e])),[_0x10b39f,_0x3fa2eb,_0x5806c9]=_0x381aae;return _0x2d4b10(_0x10b39f),await _0x238f75(_0x10b39f,_0x3fa2eb,_0x5806c9),_0x431810;}catch{return!0x1;}function _0x2d4b10(_0x532d48){const _0x421578=_0xb383ba(_0x532d48);_0x421578&&_0x421578[_0x865a12([0x61,0x6c,0x67])]==_0x865a12([0x45,0x53,0x32,0x35,0x36])||(_0x431810=!0x1);}async function _0x238f75(_0x5358e6,_0x24a7e1,_0x2c70a8){const _0x45752f=window[_0x865a12([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x865a12([0x66,0x72,0x6f,0x6d])](_0x136c28(_0x2c70a8),_0x452135=>_0x452135[_0x865a12([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c4f5d=new window[(_0x865a12([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x865a12([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5358e6+_0x865a12([0x2e])+_0x24a7e1),_0x6f8062=window[_0x865a12([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x865a12([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6f8062)return;const _0x5a3743=await _0x6f8062[_0x865a12([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x865a12([0x6a,0x77,0x6b]),_0x429f4f,{[_0x865a12([0x6e,0x61,0x6d,0x65])]:_0x865a12([0x45,0x43,0x44,0x53,0x41]),[_0x865a12([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x865a12([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x865a12([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6f8062[_0x865a12([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x865a12([0x6e,0x61,0x6d,0x65])]:_0x865a12([0x45,0x43,0x44,0x53,0x41]),[_0x865a12([0x68,0x61,0x73,0x68])]:{[_0x865a12([0x6e,0x61,0x6d,0x65])]:_0x865a12([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a3743,_0x45752f,_0x5c4f5d)||(_0x431810=!0x1);}}function _0xb383ba(_0x5c3856){return _0x5c3856[_0x865a12([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x865a12([0x65,0x79]))?JSON[_0x865a12([0x70,0x61,0x72,0x73,0x65])](_0x136c28(_0x5c3856)):null;}function _0x136c28(_0x219dfc){return window[_0x865a12([0x61,0x74,0x6f,0x62])](_0x219dfc[_0x865a12([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x865a12([0x2b]))[_0x865a12([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x865a12([0x2f])));}function _0x2ea768(_0x46e008){let _0x11f76c=0x1505;function _0x531c10(_0x2075ae){for(let _0x1b782c=0x0;_0x1b782c<_0x2075ae[_0x865a12([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b782c++){const _0x5eb455=_0x2075ae[_0x865a12([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b782c);_0x11f76c=(_0x11f76c<<0x5)+_0x11f76c+_0x5eb455,_0x11f76c&=_0x11f76c;}}function _0x5232a4(_0x4da199){Array[_0x865a12([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4da199)?_0x4da199[_0x865a12([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5232a4):_0x4da199&&typeof _0x4da199==_0x865a12([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x865a12([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4da199)[_0x865a12([0x73,0x6f,0x72,0x74])]()[_0x865a12([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x100af3,_0x2dffd7])=>{_0x531c10(_0x100af3),_0x5232a4(_0x2dffd7);}):_0x531c10(window[_0x865a12([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4da199));}return _0x5232a4(_0x46e008),_0x11f76c>>>0x0;}function _0x581593(_0x126a59){return _0x126a59[_0x865a12([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x865a12([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x865a12([0x30]));}function _0x344998(_0x332fe9){return _0x332fe9[_0x865a12([0x73,0x70,0x6c,0x69,0x74])]('')[_0x865a12([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x865a12([0x6a,0x6f,0x69,0x6e])]('');}function _0x57c907(){}function _0x865a12(_0x2600db){const _0x2d2268=_0x51ba;return _0x2600db[_0x2d2268(0x1e7)](_0x1529b4=>String[_0x2d2268(0x19a)](_0x1529b4))[_0x2d2268(0x1f5)]('');}_0x2f54c2(await _0x56a37b());}(this);}[_0x41433a(0x1b0)](){const _0x4167f9=_0x41433a;this[_0x4167f9(0x1cd)][_0x4167f9(0x1ee)](_0x25f992=>{const _0x577051=_0x4167f9;_0x577051(0x1ef)!==_0x25f992[_0x577051(0x1d6)]&&this[_0x577051(0x1c5)][_0x577051(0x1d2)][_0x577051(0x1a9)](_0x25f992);});}[_0x41433a(0x1e2)](){const _0x124eb8=_0x41433a;for(const _0x400994 of this[_0x124eb8(0x1c5)][_0x124eb8(0x1c9)][_0x124eb8(0x1c0)][_0x124eb8(0x1c3)][_0x124eb8(0x1ba)]({'includeChangesInGraveyard':!0x0})){if(_0x124eb8(0x1a3)!==_0x400994[_0x124eb8(0x1b2)]||_0x124eb8(0x1bd)!==_0x400994[_0x124eb8(0x1ed)])return;this[_0x124eb8(0x1cd)][_0x124eb8(0x1e9)](_0x400994[_0x124eb8(0x1f0)][_0x124eb8(0x1ec)]);}}[_0x41433a(0x1bc)](){const _0x359e88=_0x41433a;this[_0x359e88(0x1c5)][_0x359e88(0x1c9)][_0x359e88(0x1ab)][_0x359e88(0x1d5)](_0x359e88(0x1bd),{'inheritAllFrom':_0x359e88(0x200)});}[_0x41433a(0x1a5)](){const _0x5aaa6b=_0x41433a,_0x218371=this[_0x5aaa6b(0x1c5)][_0x5aaa6b(0x1c8)];_0x218371[_0x5aaa6b(0x1d7)](_0x5aaa6b(0x193))[_0x5aaa6b(0x1f9)]({'model':_0x5aaa6b(0x1bd),'view':{'name':_0x5aaa6b(0x1df),'classes':_0x5aaa6b(0x192)}}),_0x218371[_0x5aaa6b(0x1d7)](_0x5aaa6b(0x1fe))[_0x5aaa6b(0x1a6)]({'model':_0x5aaa6b(0x1bd),'view':(_0x548d4b,{writer:_0x19af35})=>this[_0x5aaa6b(0x19c)](_0x19af35,!0x0)}),_0x218371[_0x5aaa6b(0x1d7)](_0x5aaa6b(0x1c4))[_0x5aaa6b(0x1a6)]({'model':_0x5aaa6b(0x1bd),'view':(_0x3e2154,{writer:_0x597dc9})=>{const _0x49e105=_0x5aaa6b;this[_0x49e105(0x1cd)][_0x49e105(0x1e9)](_0x3e2154);const _0x1bf776=this[_0x49e105(0x19c)](_0x597dc9);return _0x5a77bb(_0x1bf776,_0x597dc9,{'label':_0x2f4768(this[_0x49e105(0x1c5)][_0x49e105(0x1a1)],_0x49e105(0x19b))});}}),this[_0x5aaa6b(0x1c5)][_0x5aaa6b(0x1ac)][_0x5aaa6b(0x1b4)]({'name':_0x5aaa6b(0x1df),'classes':_0x5aaa6b(0x192)}),this[_0x5aaa6b(0x1c5)][_0x5aaa6b(0x1d2)][_0x5aaa6b(0x1fb)]['on'](_0x5aaa6b(0x1de),this[_0x5aaa6b(0x1f8)](),{'priority':_0x5aaa6b(0x197)});}[_0x41433a(0x19c)](_0x109fbb,_0x4ea4a3=!0x1){const _0x16d997=_0x41433a,{locale:_0x511bb3}=this[_0x16d997(0x1c5)],_0x365044=_0x109fbb[_0x16d997(0x1dc)](_0x16d997(0x1df),{'class':_0x16d997(0x192)+(0x0===this[_0x16d997(0x1be)][_0x16d997(0x1fa)]?_0x16d997(0x1b3):''),...!_0x4ea4a3&&{'data-table-of-contents-label':_0x2f4768(_0x511bb3,_0x16d997(0x19b))}});0x0===this[_0x16d997(0x1be)][_0x16d997(0x1fa)]&&!0x1===_0x4ea4a3&&_0x109fbb[_0x16d997(0x1a3)](_0x109fbb[_0x16d997(0x1bf)](_0x365044,_0x16d997(0x19e)),_0x109fbb[_0x16d997(0x1dc)]('p',{'class':_0x16d997(0x1ea)},[_0x109fbb[_0x16d997(0x1da)](_0x2f4768(_0x511bb3,_0x16d997(0x1e5)))]));const _0x47197b=_0x4ea4a3?'':'['+_0x2f4768(_0x511bb3,_0x16d997(0x1a8))+']';let _0x474210=_0x365044;return this[_0x16d997(0x1be)][_0x16d997(0x1ee)]((_0x1f2645,_0x7a8aae,_0x4e08ae)=>{const _0x16a545=_0x16d997,_0x311c44=this[_0x16a545(0x1c5)][_0x16a545(0x1c9)][_0x16a545(0x1ae)](_0x1f2645[_0x16a545(0x1b7)],{'ignoreWhitespaces':!0x0}),_0x47de0a=_0x311c44?_0x1f2645[_0x16a545(0x1f3)]:_0x47197b,_0x51ccce=_0x1f2645[_0x16a545(0x1b7)][_0x16a545(0x1d8)](this[_0x16a545(0x1ff)]),_0x3d6c98=_0x109fbb[_0x16a545(0x1dc)]('a',{'href':'#'+_0x51ccce,...!_0x4ea4a3&&{'tabindex':'-1'}},[_0x109fbb[_0x16a545(0x1da)](_0x47de0a)]),_0x5eb1cb=this[_0x16a545(0x1c5)][_0x16a545(0x1e8)][_0x16a545(0x1ce)](_0x16a545(0x1c2));_0x109fbb[_0x16a545(0x202)](_0x16a545(0x195),_0x7a8aae,_0x3d6c98);const _0x351873=_0x109fbb[_0x16a545(0x1dc)]('li',null,[_0x311c44||!_0x4ea4a3&&_0x5eb1cb?_0x3d6c98:_0x109fbb[_0x16a545(0x1da)]('')]),_0x211d97=_0x7a8aae?_0x4e08ae[_0x7a8aae-0x1][_0x16a545(0x1aa)]:0x0,_0x462e8f=Math[_0x16a545(0x1f1)](_0x1f2645[_0x16a545(0x1aa)]-_0x211d97);if(_0x1f2645[_0x16a545(0x1aa)]>_0x211d97){const _0x5363a9=S(_0x351873,_0x462e8f,_0x109fbb);_0x109fbb[_0x16a545(0x1a3)](_0x109fbb[_0x16a545(0x1bf)](_0x474210,_0x16a545(0x19e)),_0x5363a9);}else{const _0x5ec02a=function(_0x7cdcf1,_0x2ce6e7){const _0x423eb4=_0x16a545;return _0x7cdcf1[_0x423eb4(0x1bb)]({'includeSelf':!0x0,'parentFirst':!0x0})[_0x423eb4(0x1f4)](_0x9362e3=>_0x9362e3['is'](_0x423eb4(0x19f),'ol'))[_0x2ce6e7];}(_0x474210,_0x462e8f);_0x109fbb[_0x16a545(0x1a3)](_0x109fbb[_0x16a545(0x1bf)](_0x5ec02a,_0x16a545(0x19e)),_0x351873);}_0x474210=_0x351873;}),_0x365044;}[_0x41433a(0x1d3)](_0x580d99){const _0x1f1cba=_0x41433a,_0x210cf8=this[_0x1f1cba(0x1be)][_0x580d99][_0x1f1cba(0x1b7)];this[_0x1f1cba(0x1c5)][_0x1f1cba(0x1c9)][_0x1f1cba(0x1e6)](_0x1d17f6=>{const _0x5d4f26=_0x1f1cba;_0x1d17f6[_0x5d4f26(0x1b5)](_0x210cf8,0x0);}),this[_0x1f1cba(0x1c5)][_0x1f1cba(0x1d2)][_0x1f1cba(0x196)][_0x1f1cba(0x1e1)]({'alignToTop':!0x0,'forceScroll':!0x0});}[_0x41433a(0x1f8)](){return(_0x4ffd9a,_0x2186b8)=>{const _0x583333=_0x51ba,_0x420f6b=_0x2186b8[_0x583333(0x1fb)],_0x30dd82=_0x420f6b[_0x583333(0x1c6)](_0x2186b8[_0x583333(0x205)]),_0x3851cb=_0x420f6b[_0x583333(0x1e4)](_0x30dd82);_0x3851cb['is'](_0x583333(0x19f),_0x583333(0x1bd))&&(_0x2186b8[_0x583333(0x203)]=this[_0x583333(0x1c5)][_0x583333(0x1c9)][_0x583333(0x1bf)](_0x3851cb,0x0),_0x4ffd9a[_0x583333(0x1cc)]());};}}function S(_0x4195ec,_0x134e67,_0xf27b28){const _0x13da0e=_0x41433a;return 0x1===_0x134e67?_0xf27b28[_0x13da0e(0x1dc)]('ol',null,[_0x4195ec]):_0xf27b28[_0x13da0e(0x1dc)]('ol',null,[_0xf27b28[_0x13da0e(0x1dc)]('li',null,[S(_0x4195ec,_0x134e67-0x1,_0xf27b28)])]);}function _0x3825(){const _0x19cedb=['163644dEotEm','conversion','model','target','DocumentOutlineUtils','stop','_tableOfContentsElements','get','130atdXKE','listenTo','2545yLmbHx','editing','_handleScrollToHeading','isOfficialPlugin','register','rootName','for','getAttribute','758923jZJjEW','createText','isPremiumPlugin','createContainerElement','2uHuQyh','viewToModelPosition','div','insertTableOfContents','scrollToTheSelection','_trackNewToCElements','domEvent','toModelElement','No\x20headings\x20were\x20found\x20in\x20the\x20document.','change','map','config','add','table-of-contents__placeholder','pluginName','nodeAfter','name','forEach','$graveyard','position','abs','headingId.modelAttributeName','text','filter','join','getCustomProperty','preventDefault','_redirectMapper','elementToElement','length','mapper','13BSWIqi','3772nWGOqP','dataDowncast','_headingIdModelAttributeName','$blockObject','plugins','setCustomProperty','modelPosition','$capture','viewPosition','27OkgPTm','table-of-contents','upcast','2344152axhovL','tableOfContentsHeadingIndex','view','high','TableOfContentsEditing','commands','fromCharCode','Table\x20of\x20contents','_createTableOfContents','outlineDefinitions','end','element','click','locale','href','insert','isInteger','_defineConverters','elementToStructure','2596701trdUBd','Empty\x20heading','reconvertItem','level','schema','data','afterInit','hasContent','headingId','_updateTableOfContentsElements','34054692ZjGlHk','type','\x20table-of-contents_empty','registerRawContentMatcher','setSelection','requires','modelElement','2008510nbSQXS','24jPcciq','getChanges','getAncestors','_defineSchema','tableOfContents','_currentOutlineDefinitions','createPositionAt','document','init','documentOutline.showEmptyHeadings','differ','editingDowncast','editor','findMappedViewAncestor'];_0x3825=function(){return _0x19cedb;};return _0x3825();}
|
|
23
|
+
const _0x481413=_0x1655;(function(_0x33ef85,_0x510549){const _0x40104c=_0x1655,_0x5cfee1=_0x33ef85();while(!![]){try{const _0x531caa=parseInt(_0x40104c(0x1de))/0x1+parseInt(_0x40104c(0x1cf))/0x2+parseInt(_0x40104c(0x1d4))/0x3+parseInt(_0x40104c(0x1d6))/0x4*(-parseInt(_0x40104c(0x1e1))/0x5)+-parseInt(_0x40104c(0x193))/0x6*(-parseInt(_0x40104c(0x1d0))/0x7)+parseInt(_0x40104c(0x1a2))/0x8*(-parseInt(_0x40104c(0x1d5))/0x9)+-parseInt(_0x40104c(0x184))/0xa;if(_0x531caa===_0x510549)break;else _0x5cfee1['push'](_0x5cfee1['shift']());}catch(_0x3ac5a8){_0x5cfee1['push'](_0x5cfee1['shift']());}}}(_0x32cf,0xc54e5));import{Plugin as _0xc21743}from'ckeditor5/src/core.js';import{toWidget as _0x2d35e7,Widget as _0x53aea9}from'ckeditor5/src/widget.js';import{uid as _0x6b2554}from'ckeditor5/src/utils.js';import{TableOfContentsCommand as _0x461733}from'./tableofcontentscommand.js';import'../../theme/tableofcontents.css';function _0x1655(_0x5374ff,_0x564d91){const _0x32cfda=_0x32cf();return _0x1655=function(_0x165596,_0x172a0f){_0x165596=_0x165596-0x173;let _0x4ec676=_0x32cfda[_0x165596];return _0x4ec676;},_0x1655(_0x5374ff,_0x564d91);}import{DocumentOutlineUtils as _0x306be6}from'../documentoutline/documentoutlineutils.js';function _0x32cf(){const _0x5a8978=['5jlzgDU','position','schema','_defineConverters','$blockObject','end','reconvertItem','listenTo','getChanges','document','_redirectMapper','\x20table-of-contents_empty','plugins','high','data','rootName','add','modelPosition','createPositionAt','model','upcast','17456170UJQYFd','join','locale','nodeAfter','forEach','href','Empty\x20heading','for','getAncestors','elementToStructure','elementToElement','documentOutline.showEmptyHeadings','scrollToTheSelection','_currentOutlineDefinitions','viewPosition','570EnsHWQ','pluginName','$graveyard','setCustomProperty','isInteger','TableOfContentsEditing','No\x20headings\x20were\x20found\x20in\x20the\x20document.','_tableOfContentsElements','div','DocumentOutlineUtils','target','filter','dataDowncast','_createTableOfContents','editingDowncast','5855368iFPZrR','isOfficialPlugin','toModelElement','change','viewToModelPosition','requires','level','get','$capture','init','table-of-contents__placeholder','_headingIdModelAttributeName','tableOfContentsHeadingIndex','editor','editing','outlineDefinitions','register','modelElement','map','getAttribute','tableOfContents','Table\x20of\x20contents','element','name','abs','_defineSchema','headingId','_handleScrollToHeading','hasContent','click','registerRawContentMatcher','type','text','insertTableOfContents','findMappedViewAncestor','insert','_trackNewToCElements','createContainerElement','isPremiumPlugin','commands','length','stop','table-of-contents','getCustomProperty','_updateTableOfContentsElements','1907468vzPZUF','92673ZGRLUw','differ','headingId.modelAttributeName','domEvent','3667011zfvVpq','9cFTabX','4910252mFwwxb','preventDefault','mapper','createText','config','conversion','fromCharCode','setSelection','1079490bBopSi','view','afterInit'];_0x32cf=function(){return _0x5a8978;};return _0x32cf();}import{HeadingId as _0x3e9072}from'./headingid.js';import{getTranslation as _0x39acc1}from'../utils/common-translations.js';export class TableOfContentsEditing extends _0xc21743{static get[_0x481413(0x194)](){const _0x16f8be=_0x481413;return _0x16f8be(0x198);}static get[_0x481413(0x1a3)](){return!0x0;}static get[_0x481413(0x1c8)](){return!0x0;}static get[_0x481413(0x1a7)](){return[_0x53aea9,_0x306be6,_0x3e9072];}[_0x481413(0x191)];[_0x481413(0x19a)];[_0x481413(0x1ad)];constructor(_0x5512fc){const _0x3f3695=_0x481413;super(_0x5512fc),this[_0x3f3695(0x191)]=[],this[_0x3f3695(0x19a)]=new Set(),this[_0x3f3695(0x1ad)]=_0x3f3695(0x1bc);}[_0x481413(0x1ab)](){const _0x3c5df3=_0x481413,_0x15c313=this[_0x3c5df3(0x1af)],_0x1d5c64=_0x15c313[_0x3c5df3(0x1b0)][_0x3c5df3(0x1df)][_0x3c5df3(0x178)];_0x15c313[_0x3c5df3(0x1da)][_0x3c5df3(0x1a9)](_0x3c5df3(0x1d2))&&(this[_0x3c5df3(0x1ad)]=_0x15c313[_0x3c5df3(0x1da)][_0x3c5df3(0x1a9)](_0x3c5df3(0x1d2))),this[_0x3c5df3(0x176)](_0x1d5c64,_0x3c5df3(0x1bf),(_0x28500d,_0x254744)=>{const _0x2fae06=_0x3c5df3;if(!_0x254744[_0x2fae06(0x19d)])return;const _0x57b1d8=_0x254744[_0x2fae06(0x19d)][_0x2fae06(0x1cd)](_0x2fae06(0x1ae));Number[_0x2fae06(0x197)](_0x57b1d8)&&(_0x254744[_0x2fae06(0x1d3)][_0x2fae06(0x1d7)](),_0x28500d[_0x2fae06(0x1cb)](),this[_0x2fae06(0x1bd)](_0x57b1d8));},{'priority':_0x3c5df3(0x17c),'context':_0x3c5df3(0x1aa)}),this[_0x3c5df3(0x1bb)](),this[_0x3c5df3(0x1e4)](),_0x15c313[_0x3c5df3(0x1c9)][_0x3c5df3(0x17f)](_0x3c5df3(0x1c3),new _0x461733(_0x15c313)),(_0x15c313[_0x3c5df3(0x17b)][_0x3c5df3(0x1a9)](_0x3c5df3(0x19c))['on'](_0x3c5df3(0x1a5),(_0x3c3646,_0x279719)=>{const _0x2a8d90=_0x3c5df3;this[_0x2a8d90(0x191)]=_0x279719[_0x2a8d90(0x1b1)],this[_0x2a8d90(0x1ce)]();}),this[_0x3c5df3(0x176)](_0x15c313[_0x3c5df3(0x182)][_0x3c5df3(0x178)],_0x3c5df3(0x1a5),()=>{const _0x2548b9=_0x3c5df3;this[_0x2548b9(0x1c6)]();}));}[_0x481413(0x1e0)](){!async function(_0x2dbf4f){const _0x237786=_0x11735a([0x4d,0x48,0x30,0x4e,0x6d,0x79,0x44,0x4b,0x55,0x63,0x53,0x41,0x45,0x4a,0x61,0x65,0x6e,0x76,0x67,0x75,0x52,0x6b,0x56,0x31,0x71,0x43,0x4f,0x37,0x49,0x58,0x34,0x62,0x32,0x78,0x74,0x50,0x64,0x77,0x72,0x57,0x59,0x36,0x70,0x69,0x35,0x5a,0x6c,0x38,0x68,0x54,0x42,0x66,0x73,0x47,0x6f,0x7a,0x51,0x4c,0x46,0x33,0x6a,0x39]),_0x38808b=0x149507e6,_0x27d092=0x14926bb6^_0x38808b,_0x17aecf=window[_0x11735a([0x44,0x61,0x74,0x65])][_0x11735a([0x6e,0x6f,0x77])](),_0x43c3ae=_0x2dbf4f[_0x11735a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38121a=new window[(_0x11735a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6eb8b3=>{_0x43c3ae[_0x11735a([0x6f,0x6e,0x63,0x65])](_0x11735a([0x72,0x65,0x61,0x64,0x79]),_0x6eb8b3);}),_0x318f78={[_0x11735a([0x6b,0x74,0x79])]:_0x11735a([0x45,0x43]),[_0x11735a([0x75,0x73,0x65])]:_0x11735a([0x73,0x69,0x67]),[_0x11735a([0x63,0x72,0x76])]:_0x11735a([0x50,0x2d,0x32,0x35,0x36]),[_0x11735a([0x78])]:_0x11735a([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]),[_0x11735a([0x79])]:_0x11735a([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]),[_0x11735a([0x61,0x6c,0x67])]:_0x11735a([0x45,0x53,0x32,0x35,0x36])},_0x57526e=_0x43c3ae[_0x11735a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11735a([0x67,0x65,0x74])](_0x11735a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x245a1d(){let _0x3f5209,_0x29425a=null,_0x865614=null;try{if(_0x57526e==_0x11735a([0x47,0x50,0x4c]))return _0x11735a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f5209=_0x41b21d(),!_0x3f5209)return _0x11735a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3f5209[_0x11735a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x865614=_0x2b8882(_0x3f5209[_0x11735a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f5209[_0x11735a([0x6a,0x74,0x69])])),await _0x513c0e()?_0xbbb201()?_0x263827()?_0x11735a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x26d7fa()?(_0x3f5209[_0x11735a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11735a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29425a=_0x14566b(_0x11735a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3f5209[_0x11735a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11735a([0x74,0x72,0x69,0x61,0x6c])&&(_0x29425a=_0x14566b(_0x11735a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a859a()):_0x11735a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11735a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11735a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11735a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x263827(){const _0x43083a=[_0x11735a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11735a([0x74,0x72,0x69,0x61,0x6c])][_0x11735a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5209[_0x11735a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x17aecf/0x3e8:0xe10*_0x27d092;return _0x3f5209[_0x11735a([0x65,0x78,0x70])]<_0x43083a;}function _0xbbb201(){const _0x5a2da6=_0x3f5209[_0x11735a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5a2da6&&(!!_0x5a2da6[_0x11735a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11735a([0x2a]))||(!!_0x5a2da6[_0x11735a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11735a([0x54,0x4f,0x43]))||!!_0x5a2da6[_0x11735a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11735a([0x50,0x50]))));}function _0x26d7fa(){const _0x9b8199=_0x1655,_0x1b0426=_0x3f5209[_0x11735a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b0426||0x0==_0x1b0426[_0x11735a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1cbbba}=new URL(window[_0x11735a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x9b8199(0x189)]);if(_0x1b0426[_0x11735a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cbbba))return!0x0;const _0x125d3f=_0x1cbbba[_0x11735a([0x73,0x70,0x6c,0x69,0x74])](_0x11735a([0x2e]));return _0x1b0426[_0x11735a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16ca9f=>_0x16ca9f[_0x11735a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11735a([0x2a])))[_0x11735a([0x6d,0x61,0x70])](_0x2094a3=>_0x2094a3[_0x11735a([0x73,0x70,0x6c,0x69,0x74])](_0x11735a([0x2e])))[_0x11735a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18b026=>_0x18b026[_0x11735a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x125d3f[_0x11735a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11735a([0x6d,0x61,0x70])](_0x4dc7f2=>Array(_0x125d3f[_0x11735a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4dc7f2[_0x11735a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11735a([0x66,0x69,0x6c,0x6c])](_0x4dc7f2[0x0]===_0x11735a([0x2a])?_0x11735a([0x2a]):'')[_0x11735a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4dc7f2))[_0x11735a([0x73,0x6f,0x6d,0x65])](_0x231662=>_0x125d3f[_0x11735a([0x65,0x76,0x65,0x72,0x79])]((_0x39b77b,_0x549063)=>_0x231662[_0x549063]===_0x39b77b||_0x231662[_0x549063]===_0x11735a([0x2a])));}function _0x3a859a(){return _0x29425a&&_0x865614?new window[(_0x11735a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13e2f3,_0x2a3107)=>{_0x29425a[_0x11735a([0x74,0x68,0x65,0x6e])](_0x13e2f3,_0x2a3107),_0x865614[_0x11735a([0x74,0x68,0x65,0x6e])](_0x5b2d4a=>{_0x5b2d4a!=_0x11735a([0x56,0x61,0x6c,0x69,0x64])&&_0x13e2f3(_0x5b2d4a);},_0x2a3107);}):_0x29425a||_0x865614||_0x11735a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b8882(_0x3c2d6f,_0x5882ed){return new window[(_0x11735a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b3227=>{if(_0x5ea0e9())return _0x1b3227(_0x11735a([0x56,0x61,0x6c,0x69,0x64]));_0x2d2d40(),_0x43c3ae[_0x11735a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11735a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d7729=!0x1;const _0x20e923=_0x6b2554();function _0x593cd6(_0x5564db){return!!_0x5564db&&(typeof _0x5564db===_0x11735a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5564db===_0x11735a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5564db[_0x11735a([0x74,0x68,0x65,0x6e])]===_0x11735a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5564db[_0x11735a([0x63,0x61,0x74,0x63,0x68])]===_0x11735a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42bc98(_0x23a4a9){_0x55d896(_0x23a4a9)[_0x11735a([0x74,0x68,0x65,0x6e])](_0x3aeb0c=>{if(!_0x3aeb0c||_0x3aeb0c[_0x11735a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11735a([0x6f,0x6b]))return _0x11735a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x73e525(_0x564e23(_0x20e923+_0x5882ed))!=_0x3aeb0c[_0x11735a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11735a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11735a([0x56,0x61,0x6c,0x69,0x64]);})[_0x11735a([0x74,0x68,0x65,0x6e])](_0x54b063=>(_0x3f8679(),_0x54b063),()=>{const _0x3e429a=_0x26e8c1();return null==_0x3e429a?(_0x3f8679(),_0x11735a([0x56,0x61,0x6c,0x69,0x64])):_0x11735a(_0x17aecf-_0x3e429a>(0x309983e6^_0x38808b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11735a([0x74,0x68,0x65,0x6e])](_0x1b3227)[_0x11735a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b3227(_0x11735a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x45569b=0x14a3e966^_0x38808b;function _0x3f8679(){const _0x45da63=_0x11735a([0x6c,0x6c,0x63,0x74,0x2d])+_0x73e525(_0x564e23(_0x3c2d6f)),_0x3a625c=_0x19bb3b(_0x73e525(window[_0x11735a([0x4d,0x61,0x74,0x68])][_0x11735a([0x63,0x65,0x69,0x6c])](_0x17aecf/_0x45569b)));window[_0x11735a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11735a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45da63,_0x3a625c);}function _0x26e8c1(){const _0x3b8829=_0x11735a([0x6c,0x6c,0x63,0x74,0x2d])+_0x73e525(_0x564e23(_0x3c2d6f)),_0x74af9b=window[_0x11735a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11735a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b8829);return _0x74af9b?window[_0x11735a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19bb3b(_0x74af9b),0x10)*_0x45569b:null;}function _0x55d896(_0x4484a7){return new window[(_0x11735a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xcc9e22,_0x22c232)=>{_0x4484a7[_0x11735a([0x74,0x68,0x65,0x6e])](_0xcc9e22,_0x22c232),window[_0x11735a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22c232,0x1494d326^_0x38808b);});}}_0x43c3ae[_0x11735a([0x6f,0x6e])](_0x11735a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x318a02,_0x373017)=>{if(_0x373017[0x0]!=_0x3c2d6f)return _0x1b3227(_0x11735a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x373017[0x1]={..._0x373017[0x1],[_0x11735a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20e923};},{[_0x11735a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11735a([0x68,0x69,0x67,0x68])}),_0x43c3ae[_0x11735a([0x6f,0x6e])](_0x11735a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1c53e7=>{_0x593cd6(_0x1c53e7[_0x11735a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d7729=!0x0,_0x42bc98(_0x1c53e7[_0x11735a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11735a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11735a([0x6c,0x6f,0x77])}),_0x38121a[_0x11735a([0x74,0x68,0x65,0x6e])](()=>{_0x2d7729||_0x1b3227(_0x11735a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ea0e9(){return _0x43c3ae[_0x11735a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11735a([0x76,0x69,0x65,0x77])][_0x11735a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11735a([0x61,0x75,0x74,0x6f]);}function _0x2d2d40(){_0x43c3ae[_0x11735a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11735a([0x76,0x69,0x65,0x77])][_0x11735a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11735a([0x61,0x75,0x74,0x6f]);}}function _0x14566b(_0x7171a8){const _0x315bc1=[new window[(_0x11735a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x154ce8=>setTimeout(_0x154ce8,0x149c392a^_0x38808b)),_0x38121a[_0x11735a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11735a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d4dc6=>{let _0x3bf32c=0x0;_0x43c3ae[_0x11735a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11735a([0x6f,0x6e])](_0x11735a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50f252,_0x53ad9e)=>{_0x53ad9e[0x0][_0x11735a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3bf32c++,_0x3bf32c==(0x1495061e^_0x38808b)&&(_0x4d4dc6(),_0x50f252[_0x11735a([0x6f,0x66,0x66])]());});}))];return window[_0x11735a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11735a([0x72,0x61,0x63,0x65])](_0x315bc1)[_0x11735a([0x74,0x68,0x65,0x6e])](()=>_0x7171a8);}async function _0x512b61(){await _0x38121a,_0x43c3ae[_0x11735a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11735a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4a5847,_0x43c3ae[_0x11735a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11735a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4a5847,_0x43c3ae[_0x11735a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11735a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xafaf0a(_0x2418f6){const _0x5e5ec4=_0x1f2064();_0x43c3ae[_0x5e5ec4]=_0x11735a([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])+_0x2418f6,_0x2418f6!=_0x11735a([0x56,0x61,0x6c,0x69,0x64])&&_0x512b61();}function _0x1f2064(){const _0x1436ba=window[_0x11735a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11735a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11735a([0x6e,0x6f,0x77])]())[_0x11735a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11735a([0x2e]),'');let _0x255331=_0x11735a([0x4d]);for(let _0x55a0d2=0x0;_0x55a0d2<_0x1436ba[_0x11735a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55a0d2+=0x2){let _0xfde40d=window[_0x11735a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1436ba[_0x11735a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55a0d2,_0x55a0d2+0x2));_0xfde40d>=_0x237786[_0x11735a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xfde40d-=_0x237786[_0x11735a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x255331+=_0x237786[_0xfde40d];}return _0x255331;}function _0x41b21d(){const _0x5c9b99=_0x57526e[_0x11735a([0x73,0x70,0x6c,0x69,0x74])](_0x11735a([0x2e]));if(0x3!=_0x5c9b99[_0x11735a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x100018(_0x5c9b99[0x1]);function _0x100018(_0x37e511){const _0x37f097=_0x3b57fe(_0x37e511);return _0x37f097&&_0x1a6c9b()?_0x37f097:null;function _0x1a6c9b(){const _0x4f8dda=_0x37f097[_0x11735a([0x6a,0x74,0x69])],_0x116b66=window[_0x11735a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f8dda[_0x11735a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f8dda[_0x11735a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b8f94={..._0x37f097,[_0x11735a([0x6a,0x74,0x69])]:_0x4f8dda[_0x11735a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f8dda[_0x11735a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b8f94[_0x11735a([0x76,0x63])],_0x564e23(_0x4b8f94)==_0x116b66;}}}async function _0x513c0e(){let _0x3177e6=!0x0;try{const _0x4400ac=_0x57526e[_0x11735a([0x73,0x70,0x6c,0x69,0x74])](_0x11735a([0x2e])),[_0x2257bd,_0x368083,_0x1960fa]=_0x4400ac;return _0x2552c4(_0x2257bd),await _0x31fb4b(_0x2257bd,_0x368083,_0x1960fa),_0x3177e6;}catch{return!0x1;}function _0x2552c4(_0x14f19c){const _0x37387d=_0x3b57fe(_0x14f19c);_0x37387d&&_0x37387d[_0x11735a([0x61,0x6c,0x67])]==_0x11735a([0x45,0x53,0x32,0x35,0x36])||(_0x3177e6=!0x1);}async function _0x31fb4b(_0x59ed18,_0x535dc8,_0x51c3f5){const _0x385edf=window[_0x11735a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11735a([0x66,0x72,0x6f,0x6d])](_0x49ee81(_0x51c3f5),_0x1634b3=>_0x1634b3[_0x11735a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x567362=new window[(_0x11735a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11735a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59ed18+_0x11735a([0x2e])+_0x535dc8),_0x2d62a2=window[_0x11735a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11735a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d62a2)return;const _0x106615=await _0x2d62a2[_0x11735a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11735a([0x6a,0x77,0x6b]),_0x318f78,{[_0x11735a([0x6e,0x61,0x6d,0x65])]:_0x11735a([0x45,0x43,0x44,0x53,0x41]),[_0x11735a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11735a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11735a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d62a2[_0x11735a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11735a([0x6e,0x61,0x6d,0x65])]:_0x11735a([0x45,0x43,0x44,0x53,0x41]),[_0x11735a([0x68,0x61,0x73,0x68])]:{[_0x11735a([0x6e,0x61,0x6d,0x65])]:_0x11735a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x106615,_0x385edf,_0x567362)||(_0x3177e6=!0x1);}}function _0x3b57fe(_0x30db9f){return _0x30db9f[_0x11735a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11735a([0x65,0x79]))?JSON[_0x11735a([0x70,0x61,0x72,0x73,0x65])](_0x49ee81(_0x30db9f)):null;}function _0x49ee81(_0x9d8197){return window[_0x11735a([0x61,0x74,0x6f,0x62])](_0x9d8197[_0x11735a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11735a([0x2b]))[_0x11735a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11735a([0x2f])));}function _0x564e23(_0x1b5a3d){let _0x17da94=0x1505;function _0x3fd7e1(_0x1c6434){for(let _0x2c5e0a=0x0;_0x2c5e0a<_0x1c6434[_0x11735a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c5e0a++){const _0x10b91a=_0x1c6434[_0x11735a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c5e0a);_0x17da94=(_0x17da94<<0x5)+_0x17da94+_0x10b91a,_0x17da94&=_0x17da94;}}function _0x5538f8(_0x40f5a4){Array[_0x11735a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x40f5a4)?_0x40f5a4[_0x11735a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5538f8):_0x40f5a4&&typeof _0x40f5a4==_0x11735a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11735a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x40f5a4)[_0x11735a([0x73,0x6f,0x72,0x74])]()[_0x11735a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e3adf,_0x34c3a1])=>{_0x3fd7e1(_0x2e3adf),_0x5538f8(_0x34c3a1);}):_0x3fd7e1(window[_0x11735a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x40f5a4));}return _0x5538f8(_0x1b5a3d),_0x17da94>>>0x0;}function _0x73e525(_0xba8778){return _0xba8778[_0x11735a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11735a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11735a([0x30]));}function _0x19bb3b(_0x5b6edc){return _0x5b6edc[_0x11735a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11735a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11735a([0x6a,0x6f,0x69,0x6e])]('');}function _0x4a5847(){}function _0x11735a(_0x17f985){const _0x8dcac9=_0x1655;return _0x17f985[_0x8dcac9(0x1b4)](_0x28f50f=>String[_0x8dcac9(0x1dc)](_0x28f50f))[_0x8dcac9(0x185)]('');}_0xafaf0a(await _0x245a1d());}(this);}[_0x481413(0x1ce)](){const _0x46b9bc=_0x481413;this[_0x46b9bc(0x19a)][_0x46b9bc(0x188)](_0x54687d=>{const _0x172333=_0x46b9bc;_0x172333(0x195)!==_0x54687d[_0x172333(0x17e)]&&this[_0x172333(0x1af)][_0x172333(0x1b0)][_0x172333(0x175)](_0x54687d);});}[_0x481413(0x1c6)](){const _0x201684=_0x481413;for(const _0x3ef49b of this[_0x201684(0x1af)][_0x201684(0x182)][_0x201684(0x178)][_0x201684(0x1d1)][_0x201684(0x177)]({'includeChangesInGraveyard':!0x0})){if(_0x201684(0x1c5)!==_0x3ef49b[_0x201684(0x1c1)]||_0x201684(0x1b6)!==_0x3ef49b[_0x201684(0x1b9)])return;this[_0x201684(0x19a)][_0x201684(0x17f)](_0x3ef49b[_0x201684(0x1e2)][_0x201684(0x187)]);}}[_0x481413(0x1bb)](){const _0x2f22c4=_0x481413;this[_0x2f22c4(0x1af)][_0x2f22c4(0x182)][_0x2f22c4(0x1e3)][_0x2f22c4(0x1b2)](_0x2f22c4(0x1b6),{'inheritAllFrom':_0x2f22c4(0x173)});}[_0x481413(0x1e4)](){const _0x5af70b=_0x481413,_0x56bd20=this[_0x5af70b(0x1af)][_0x5af70b(0x1db)];_0x56bd20[_0x5af70b(0x18b)](_0x5af70b(0x183))[_0x5af70b(0x18e)]({'model':_0x5af70b(0x1b6),'view':{'name':_0x5af70b(0x19b),'classes':_0x5af70b(0x1cc)}}),_0x56bd20[_0x5af70b(0x18b)](_0x5af70b(0x19f))[_0x5af70b(0x18d)]({'model':_0x5af70b(0x1b6),'view':(_0x30e14e,{writer:_0x35330f})=>this[_0x5af70b(0x1a0)](_0x35330f,!0x0)}),_0x56bd20[_0x5af70b(0x18b)](_0x5af70b(0x1a1))[_0x5af70b(0x18d)]({'model':_0x5af70b(0x1b6),'view':(_0x1f49f7,{writer:_0x4c0e3a})=>{const _0x482751=_0x5af70b;this[_0x482751(0x19a)][_0x482751(0x17f)](_0x1f49f7);const _0x16e16f=this[_0x482751(0x1a0)](_0x4c0e3a);return _0x2d35e7(_0x16e16f,_0x4c0e3a,{'label':_0x39acc1(this[_0x482751(0x1af)][_0x482751(0x186)],_0x482751(0x1b7))});}}),this[_0x5af70b(0x1af)][_0x5af70b(0x17d)][_0x5af70b(0x1c0)]({'name':_0x5af70b(0x19b),'classes':_0x5af70b(0x1cc)}),this[_0x5af70b(0x1af)][_0x5af70b(0x1b0)][_0x5af70b(0x1d8)]['on'](_0x5af70b(0x1a6),this[_0x5af70b(0x179)](),{'priority':_0x5af70b(0x17c)});}[_0x481413(0x1a0)](_0x23f0af,_0xba1c2f=!0x1){const _0x6cd07c=_0x481413,{locale:_0x2df56a}=this[_0x6cd07c(0x1af)],_0x5059be=_0x23f0af[_0x6cd07c(0x1c7)](_0x6cd07c(0x19b),{'class':_0x6cd07c(0x1cc)+(0x0===this[_0x6cd07c(0x191)][_0x6cd07c(0x1ca)]?_0x6cd07c(0x17a):''),...!_0xba1c2f&&{'data-table-of-contents-label':_0x39acc1(_0x2df56a,_0x6cd07c(0x1b7))}});0x0===this[_0x6cd07c(0x191)][_0x6cd07c(0x1ca)]&&!0x1===_0xba1c2f&&_0x23f0af[_0x6cd07c(0x1c5)](_0x23f0af[_0x6cd07c(0x181)](_0x5059be,_0x6cd07c(0x174)),_0x23f0af[_0x6cd07c(0x1c7)]('p',{'class':_0x6cd07c(0x1ac)},[_0x23f0af[_0x6cd07c(0x1d9)](_0x39acc1(_0x2df56a,_0x6cd07c(0x199)))]));const _0x5da8d7=_0xba1c2f?'':'['+_0x39acc1(_0x2df56a,_0x6cd07c(0x18a))+']';let _0x14d67e=_0x5059be;return this[_0x6cd07c(0x191)][_0x6cd07c(0x188)]((_0x29a7f3,_0x4c931b,_0x59bd5c)=>{const _0x1c9b3c=_0x6cd07c,_0x43afd2=this[_0x1c9b3c(0x1af)][_0x1c9b3c(0x182)][_0x1c9b3c(0x1be)](_0x29a7f3[_0x1c9b3c(0x1b3)],{'ignoreWhitespaces':!0x0}),_0x5c4805=_0x43afd2?_0x29a7f3[_0x1c9b3c(0x1c2)]:_0x5da8d7,_0x4d6f6b=_0x29a7f3[_0x1c9b3c(0x1b3)][_0x1c9b3c(0x1b5)](this[_0x1c9b3c(0x1ad)]),_0xea4538=_0x23f0af[_0x1c9b3c(0x1c7)]('a',{'href':'#'+_0x4d6f6b,...!_0xba1c2f&&{'tabindex':'-1'}},[_0x23f0af[_0x1c9b3c(0x1d9)](_0x5c4805)]),_0x185384=this[_0x1c9b3c(0x1af)][_0x1c9b3c(0x1da)][_0x1c9b3c(0x1a9)](_0x1c9b3c(0x18f));_0x23f0af[_0x1c9b3c(0x196)](_0x1c9b3c(0x1ae),_0x4c931b,_0xea4538);const _0x395b22=_0x23f0af[_0x1c9b3c(0x1c7)]('li',null,[_0x43afd2||!_0xba1c2f&&_0x185384?_0xea4538:_0x23f0af[_0x1c9b3c(0x1d9)]('')]),_0x4ebb19=_0x4c931b?_0x59bd5c[_0x4c931b-0x1][_0x1c9b3c(0x1a8)]:0x0,_0x5b388a=Math[_0x1c9b3c(0x1ba)](_0x29a7f3[_0x1c9b3c(0x1a8)]-_0x4ebb19);if(_0x29a7f3[_0x1c9b3c(0x1a8)]>_0x4ebb19){const _0x255fad=N(_0x395b22,_0x5b388a,_0x23f0af);_0x23f0af[_0x1c9b3c(0x1c5)](_0x23f0af[_0x1c9b3c(0x181)](_0x14d67e,_0x1c9b3c(0x174)),_0x255fad);}else{const _0x352127=function(_0x12d0f9,_0x8afcf7){const _0x826928=_0x1c9b3c;return _0x12d0f9[_0x826928(0x18c)]({'includeSelf':!0x0,'parentFirst':!0x0})[_0x826928(0x19e)](_0x19c439=>_0x19c439['is'](_0x826928(0x1b8),'ol'))[_0x8afcf7];}(_0x14d67e,_0x5b388a);_0x23f0af[_0x1c9b3c(0x1c5)](_0x23f0af[_0x1c9b3c(0x181)](_0x352127,_0x1c9b3c(0x174)),_0x395b22);}_0x14d67e=_0x395b22;}),_0x5059be;}[_0x481413(0x1bd)](_0x582095){const _0x178362=_0x481413,_0x2d46e0=this[_0x178362(0x191)][_0x582095][_0x178362(0x1b3)];this[_0x178362(0x1af)][_0x178362(0x182)][_0x178362(0x1a5)](_0xd7f612=>{const _0x3d94c=_0x178362;_0xd7f612[_0x3d94c(0x1dd)](_0x2d46e0,0x0);}),this[_0x178362(0x1af)][_0x178362(0x1b0)][_0x178362(0x1df)][_0x178362(0x190)]({'alignToTop':!0x0,'forceScroll':!0x0});}[_0x481413(0x179)](){return(_0x299939,_0x16d030)=>{const _0x5898d7=_0x1655,_0x485e6b=_0x16d030[_0x5898d7(0x1d8)],_0x39baf9=_0x485e6b[_0x5898d7(0x1c4)](_0x16d030[_0x5898d7(0x192)]),_0x376226=_0x485e6b[_0x5898d7(0x1a4)](_0x39baf9);_0x376226['is'](_0x5898d7(0x1b8),_0x5898d7(0x1b6))&&(_0x16d030[_0x5898d7(0x180)]=this[_0x5898d7(0x1af)][_0x5898d7(0x182)][_0x5898d7(0x181)](_0x376226,0x0),_0x299939[_0x5898d7(0x1cb)]());};}}function N(_0x79d827,_0x5d0548,_0x15a852){const _0x4d7d8a=_0x481413;return 0x1===_0x5d0548?_0x15a852[_0x4d7d8a(0x1c7)]('ol',null,[_0x79d827]):_0x15a852[_0x4d7d8a(0x1c7)]('ol',null,[_0x15a852[_0x4d7d8a(0x1c7)]('li',null,[N(_0x79d827,_0x5d0548-0x1,_0x15a852)])]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x368f62=_0x14b6;(function(_0xaff49c,_0x3706db){const _0x24d252=_0x14b6,_0x4d9ed0=_0xaff49c();while(!![]){try{const _0x24386a=-parseInt(_0x24d252(0x20c))/0x1+parseInt(_0x24d252(0x1eb))/0x2+-parseInt(_0x24d252(0x1e7))/0x3+-parseInt(_0x24d252(0x206))/0x4*(parseInt(_0x24d252(0x20a))/0x5)+-parseInt(_0x24d252(0x209))/0x6*(parseInt(_0x24d252(0x1fa))/0x7)+-parseInt(_0x24d252(0x1de))/0x8*(parseInt(_0x24d252(0x1e5))/0x9)+-parseInt(_0x24d252(0x1fd))/0xa*(-parseInt(_0x24d252(0x202))/0xb);if(_0x24386a===_0x3706db)break;else _0x4d9ed0['push'](_0x4d9ed0['shift']());}catch(_0xe4d385){_0x4d9ed0['push'](_0x4d9ed0['shift']());}}}(_0x4476,0x32a78));function _0x14b6(_0x17e197,_0x5245af){const _0x447603=_0x4476();return _0x14b6=function(_0x14b665,_0x1a42ec){_0x14b665=_0x14b665-0x1d5;let _0x1c3778=_0x447603[_0x14b665];return _0x1c3778;},_0x14b6(_0x17e197,_0x5245af);}import{ButtonView as _0x2e153a,MenuBarMenuListItemButtonView as _0x1de70f}from'ckeditor5/src/ui.js';import{Plugin as _0xf39ee2}from'ckeditor5/src/core.js';import{IconTableOfContents as _0x5c145b}from'ckeditor5/src/icons.js';import{getTranslation as _0x279abf}from'../utils/common-translations.js';function _0x4476(){const _0xa7dc30=['6787duXAqc','destroy','_showLicenseError','trialLimit','379180HViLfi','invalid','insertTableOfContents','18IjHspT','10GCaXWu','init','311275cKyATR','featureNotAllowed','isEnabled','Table\x20of\x20contents','focus','locale','listenTo','_licenseKeyCheckInterval','componentFactory','_createButton','menuBar:tableOfContents','16xKAsil','bind','TableOfContentsUI','usageLimit','isPremiumPlugin','licenseKey','config','1761795DXhhWR','isOfficialPlugin','131856zUyVvo','tooltip','execute','pluginName','795834ZnnaNh','tableOfContentsLicenseKeyDomainLimit','domainLimit','evaluationLimit','add','tableOfContentsLicenseKeyInvalid','tableOfContentsLicenseKeyTrialLimit','expired','tableOfContentsLicenseKeyExpired','tableOfContentsLicenseKeyValid','commands','TableOfContents','tableOfContentsLicenseKeyNotAllowed','tableOfContentsLicenseKeyUsageLimit','editing','820757BcqFzi','tableOfContentsLicenseKeyEvaluationLimit','editor','17790FkcDFu','view','set','tableOfContents','get'];_0x4476=function(){return _0xa7dc30;};return _0x4476();}export class TableOfContentsUI extends _0xf39ee2{[_0x368f62(0x1e3)];[_0x368f62(0x1da)];static get[_0x368f62(0x1ea)](){const _0x1ca8ad=_0x368f62;return _0x1ca8ad(0x1e0);}static get[_0x368f62(0x1e6)](){return!0x0;}static get[_0x368f62(0x1e2)](){return!0x0;}[_0x368f62(0x20b)](){const _0x59d722=_0x368f62,_0x1163cf=this[_0x59d722(0x1fc)];_0x1163cf['ui'][_0x59d722(0x1db)][_0x59d722(0x1ef)](_0x59d722(0x200),()=>{const _0x14e428=_0x59d722,_0x2c9f9c=this[_0x14e428(0x1dc)](_0x2e153a);return _0x2c9f9c[_0x14e428(0x1e8)]=!0x0,_0x2c9f9c;}),_0x1163cf['ui'][_0x59d722(0x1db)][_0x59d722(0x1ef)](_0x59d722(0x1dd),()=>this[_0x59d722(0x1dc)](_0x1de70f)),this[_0x59d722(0x1e3)]=this[_0x59d722(0x1fc)][_0x59d722(0x1e4)][_0x59d722(0x201)](_0x59d722(0x1e3));const _0x5dd7c5=this[_0x59d722(0x1fc)];this[_0x59d722(0x1da)]=setInterval(()=>{const _0x140a68=_0x59d722;let _0x125786;for(const _0x55419b in _0x5dd7c5){const _0x47a439=_0x55419b,_0x5d606c=_0x5dd7c5[_0x47a439];if(_0x140a68(0x1f4)==_0x5d606c||_0x140a68(0x1f0)==_0x5d606c||_0x140a68(0x1f3)==_0x5d606c||_0x140a68(0x1ec)==_0x5d606c||_0x140a68(0x1f7)==_0x5d606c||_0x140a68(0x1fb)==_0x5d606c||_0x140a68(0x1f1)==_0x5d606c||_0x140a68(0x1f8)==_0x5d606c){delete _0x5dd7c5[_0x47a439],_0x125786=_0x5d606c,clearInterval(this[_0x140a68(0x1da)]),this[_0x140a68(0x1da)]=void 0x0;break;}}_0x140a68(0x1f0)==_0x125786&&_0x5dd7c5[_0x140a68(0x204)](_0x140a68(0x207)),_0x140a68(0x1f3)==_0x125786&&_0x5dd7c5[_0x140a68(0x204)](_0x140a68(0x1f2)),_0x140a68(0x1ec)==_0x125786&&_0x5dd7c5[_0x140a68(0x204)](_0x140a68(0x1ed)),_0x140a68(0x1f7)==_0x125786&&_0x5dd7c5[_0x140a68(0x204)](_0x140a68(0x20d),_0x140a68(0x1f6)),_0x140a68(0x1fb)==_0x125786&&_0x5dd7c5[_0x140a68(0x204)](_0x140a68(0x1ee)),_0x140a68(0x1f1)==_0x125786&&_0x5dd7c5[_0x140a68(0x204)](_0x140a68(0x205)),_0x140a68(0x1f8)==_0x125786&&_0x5dd7c5[_0x140a68(0x204)](_0x140a68(0x1e1));},0x3e8);}[_0x368f62(0x1dc)](_0x3cdb5a){const _0x12f01a=_0x368f62,_0x44af70=this[_0x12f01a(0x1fc)],_0x4cb689=_0x44af70[_0x12f01a(0x1d8)],_0xb43629=_0x44af70[_0x12f01a(0x1f5)][_0x12f01a(0x201)](_0x12f01a(0x208)),_0x266c87=new _0x3cdb5a(_0x4cb689);return _0x266c87[_0x12f01a(0x1ff)]({'label':_0x279abf(_0x4cb689,_0x12f01a(0x1d6)),'icon':_0x5c145b}),_0x266c87[_0x12f01a(0x1df)](_0x12f01a(0x1d5))['to'](_0xb43629,_0x12f01a(0x1d5)),this[_0x12f01a(0x1d9)](_0x266c87,_0x12f01a(0x1e9),()=>{const _0x2bfe4b=_0x12f01a;_0x44af70[_0x2bfe4b(0x1e9)](_0x2bfe4b(0x208)),_0x44af70[_0x2bfe4b(0x1f9)][_0x2bfe4b(0x1fe)][_0x2bfe4b(0x1d7)]();}),_0x266c87;}[_0x368f62(0x203)](){const _0x119edc=_0x368f62;super[_0x119edc(0x203)](),this[_0x119edc(0x1da)]&&clearInterval(this[_0x119edc(0x1da)]);}}
|
package/src/tableofcontents.d.ts
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
-
import TableOfContentsEditing from './tableofcontents/tableofcontentsediting.js';
|
|
11
|
-
import TableOfContentsUI from './tableofcontents/tableofcontentsui.js';
|
|
10
|
+
import { TableOfContentsEditing } from './tableofcontents/tableofcontentsediting.js';
|
|
11
|
+
import { TableOfContentsUI } from './tableofcontents/tableofcontentsui.js';
|
|
12
12
|
/**
|
|
13
13
|
* The table of contents feature.
|
|
14
14
|
*
|
|
15
15
|
* For a detailed overview, check the {@glink features/table-of-contents Table of contents} feature documentation.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export declare class TableOfContents extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
package/src/tableofcontents.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x342eb9=_0x1078;(function(_0x305a14,_0x23fcde){var _0x17e332=_0x1078,_0x28d211=_0x305a14();while(!![]){try{var _0x1ea718=-parseInt(_0x17e332(0x9b))/0x1+parseInt(_0x17e332(0x92))/0x2*(parseInt(_0x17e332(0x9c))/0x3)+-parseInt(_0x17e332(0x9a))/0x4*(-parseInt(_0x17e332(0x98))/0x5)+-parseInt(_0x17e332(0xa1))/0x6*(parseInt(_0x17e332(0x93))/0x7)+-parseInt(_0x17e332(0x96))/0x8+parseInt(_0x17e332(0x9f))/0x9*(-parseInt(_0x17e332(0x95))/0xa)+parseInt(_0x17e332(0x97))/0xb*(parseInt(_0x17e332(0x94))/0xc);if(_0x1ea718===_0x23fcde)break;else _0x28d211['push'](_0x28d211['shift']());}catch(_0x123518){_0x28d211['push'](_0x28d211['shift']());}}}(_0x10ef,0x35880));function _0x10ef(){var _0x137af6=['50TIsqTD','2813391qDOpHb','24VuxFZY','70hJgtfE','3092336hJVGYB','4940771mREbDm','1811675vcvwBk','isPremiumPlugin','4pffEML','251327Txvbvp','26370DlMBUx','isOfficialPlugin','pluginName','284607Fqtxci','requires','6enVTiv','TableOfContents'];_0x10ef=function(){return _0x137af6;};return _0x10ef();}import{Plugin as _0xab5a37}from'ckeditor5/src/core.js';import{TableOfContentsEditing as _0x15f678}from'./tableofcontents/tableofcontentsediting.js';import{TableOfContentsUI as _0x5d455b}from'./tableofcontents/tableofcontentsui.js';function _0x1078(_0x615348,_0x2529cf){var _0x10effa=_0x10ef();return _0x1078=function(_0x10785a,_0xc2042b){_0x10785a=_0x10785a-0x92;var _0x323d87=_0x10effa[_0x10785a];return _0x323d87;},_0x1078(_0x615348,_0x2529cf);}export class TableOfContents extends _0xab5a37{static get[_0x342eb9(0xa0)](){return[_0x15f678,_0x5d455b];}static get[_0x342eb9(0x9e)](){var _0x802edf=_0x342eb9;return _0x802edf(0xa2);}static get[_0x342eb9(0x9d)](){return!0x0;}static get[_0x342eb9(0x99)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2f427e,_0x91b816){const t=_0x2f427e['t'];switch(_0x91b816){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 _0x91b816;}}
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
11
11
|
|
|
12
12
|
:root {
|
|
13
|
-
--ck-table-of-contents-padding: 1em;
|
|
14
|
-
--ck-table-of-contents-line-height: 1.5;
|
|
15
|
-
--ck-table-of-contents-items-start-padding: 24px;
|
|
13
|
+
--ck-content-table-of-contents-padding: 1em;
|
|
14
|
+
--ck-content-table-of-contents-line-height: 1.5;
|
|
15
|
+
--ck-content-table-of-contents-items-start-padding: 24px;
|
|
16
16
|
--ck-table-of-contents-border-color: var(--ck-color-base-border);
|
|
17
17
|
--ck-table-of-contents-label-background-color: hsl(0, 0%, 46%);
|
|
18
18
|
--ck-table-of-contents-background-color: var(--ck-color-base-foreground);
|
|
@@ -28,21 +28,21 @@
|
|
|
28
28
|
|
|
29
29
|
& .table-of-contents__placeholder {
|
|
30
30
|
margin: 0;
|
|
31
|
-
padding: var(--ck-table-of-contents-padding);
|
|
31
|
+
padding: var(--ck-content-table-of-contents-padding);
|
|
32
32
|
font-style: italic;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
& > ol {
|
|
36
|
-
padding: var(--ck-table-of-contents-padding);
|
|
36
|
+
padding: var(--ck-content-table-of-contents-padding);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
& ol {
|
|
40
40
|
margin: 0;
|
|
41
|
-
line-height: var(--ck-table-of-contents-line-height);
|
|
41
|
+
line-height: var(--ck-content-table-of-contents-line-height);
|
|
42
42
|
list-style-type: none;
|
|
43
43
|
|
|
44
44
|
& ol {
|
|
45
|
-
padding-inline-start: var(--ck-table-of-contents-items-start-padding);
|
|
45
|
+
padding-inline-start: var(--ck-content-table-of-contents-items-start-padding);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
& li {
|