@ckeditor/ckeditor5-pagination 48.0.0-alpha.1 → 48.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3960ce}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0xe26854,InputNumberView as _0x5c9680,ButtonView as _0x32246f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x152815,global as _0x4fcb2c,Rect as _0x2ef3cb,uid as _0x5ac157,toUnit as _0x524f8d,first as _0x31f01d,env as _0x43999e,ResizeObserver as _0x5532fc,keyCodes as _0x2463f5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x14ebd1}from'es-toolkit/compat';import{IconArrowDown as _0x3be66f,IconArrowUp as _0x408843}from'@ckeditor/ckeditor5-icons/dist/index.js';class w extends _0x3960ce{['_recalculatePageBreaksDebounced']=_0x14ebd1(()=>this['_recalculatePageBreaks'](),0xc8);['_pagesContainer']=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void _0x152815('pagination-config-not-found',this['editor']['config']);const _0x43b078=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x43b078),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x41be0c,_0x274c25,_0x3842de)=>{_0x3842de&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x5db479){const _0x9c273c=_0x58767d([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0xc65472=0xc82cb1e,_0x1af3af=0xc854ffe^_0xc65472,_0x4de94b=window[_0x58767d([0x44,0x61,0x74,0x65])][_0x58767d([0x6e,0x6f,0x77])](),_0x27bf65=_0x5db479[_0x58767d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12e917=new window[(_0x58767d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x230ab3=>{_0x27bf65[_0x58767d([0x6f,0x6e,0x63,0x65])](_0x58767d([0x72,0x65,0x61,0x64,0x79]),_0x230ab3);}),_0x52723a={[_0x58767d([0x6b,0x74,0x79])]:_0x58767d([0x45,0x43]),[_0x58767d([0x75,0x73,0x65])]:_0x58767d([0x73,0x69,0x67]),[_0x58767d([0x63,0x72,0x76])]:_0x58767d([0x50,0x2d,0x32,0x35,0x36]),[_0x58767d([0x78])]:_0x58767d([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]),[_0x58767d([0x79])]:_0x58767d([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]),[_0x58767d([0x61,0x6c,0x67])]:_0x58767d([0x45,0x53,0x32,0x35,0x36])},_0x151c12=_0x27bf65[_0x58767d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58767d([0x67,0x65,0x74])](_0x58767d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1cf0f8(){let _0xfcbe43,_0x53396d=null,_0x3c107d=null;try{if(_0x151c12==_0x58767d([0x47,0x50,0x4c]))return _0x58767d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xfcbe43=_0x1c7ee8(),!_0xfcbe43)return _0x58767d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xfcbe43[_0x58767d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c107d=_0x3084e6(_0xfcbe43[_0x58767d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xfcbe43[_0x58767d([0x6a,0x74,0x69])])),await _0x357fc8()?_0x1464f4()?_0x219014()?_0x58767d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c5376()?(_0xfcbe43[_0x58767d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58767d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53396d=_0x3099d8(_0x58767d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d69d2()):_0x58767d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58767d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58767d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x58767d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x219014(){const _0x12cca8=[_0x58767d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58767d([0x74,0x72,0x69,0x61,0x6c])][_0x58767d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfcbe43[_0x58767d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4de94b/0x3e8:0xe10*_0x1af3af;return _0xfcbe43[_0x58767d([0x65,0x78,0x70])]<_0x12cca8;}function _0x1464f4(){const _0xd99bc6=_0xfcbe43[_0x58767d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xd99bc6&&(!!_0xd99bc6[_0x58767d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58767d([0x2a]))||!!_0xd99bc6[_0x58767d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58767d([0x50,0x41,0x47])));}function _0x2c5376(){const _0x4a18cd=_0xfcbe43[_0x58767d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a18cd||0x0==_0x4a18cd[_0x58767d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x22ff1e}=new URL(window[_0x58767d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a18cd[_0x58767d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ff1e))return!0x0;const _0xd559c7=_0x22ff1e[_0x58767d([0x73,0x70,0x6c,0x69,0x74])](_0x58767d([0x2e]));return _0x4a18cd[_0x58767d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b5c27=>_0x5b5c27[_0x58767d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58767d([0x2a])))[_0x58767d([0x6d,0x61,0x70])](_0x3adf95=>_0x3adf95[_0x58767d([0x73,0x70,0x6c,0x69,0x74])](_0x58767d([0x2e])))[_0x58767d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xafc341=>_0xafc341[_0x58767d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd559c7[_0x58767d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58767d([0x6d,0x61,0x70])](_0x52b7bb=>Array(_0xd559c7[_0x58767d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x52b7bb[_0x58767d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58767d([0x66,0x69,0x6c,0x6c])](_0x52b7bb[0x0]===_0x58767d([0x2a])?_0x58767d([0x2a]):'')[_0x58767d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x52b7bb))[_0x58767d([0x73,0x6f,0x6d,0x65])](_0x83cf42=>_0xd559c7[_0x58767d([0x65,0x76,0x65,0x72,0x79])]((_0x5e7a11,_0x2dd87b)=>_0x83cf42[_0x2dd87b]===_0x5e7a11||_0x83cf42[_0x2dd87b]===_0x58767d([0x2a])));}function _0x3d69d2(){return _0x53396d&&_0x3c107d?new window[(_0x58767d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa15848,_0x52223e)=>{_0x53396d[_0x58767d([0x74,0x68,0x65,0x6e])](_0xa15848,_0x52223e),_0x3c107d[_0x58767d([0x74,0x68,0x65,0x6e])](_0x350cb7=>{_0x350cb7!=_0x58767d([0x56,0x61,0x6c,0x69,0x64])&&_0xa15848(_0x350cb7);},_0x52223e);}):_0x53396d||_0x3c107d||_0x58767d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3084e6(_0x132a14,_0x54f869){return new window[(_0x58767d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16bfb4=>{if(_0x49c00b())return _0x16bfb4(_0x58767d([0x56,0x61,0x6c,0x69,0x64]));_0x5e9ea2(),_0x27bf65[_0x58767d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58767d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ceffc=!0x1;const _0x217b65=_0x5ac157();function _0x2d0ae8(_0x3739bb){return!!_0x3739bb&&(typeof _0x3739bb===_0x58767d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3739bb===_0x58767d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3739bb[_0x58767d([0x74,0x68,0x65,0x6e])]===_0x58767d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3739bb[_0x58767d([0x63,0x61,0x74,0x63,0x68])]===_0x58767d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39501b(_0x5907f9){_0x1078bf(_0x5907f9)[_0x58767d([0x74,0x68,0x65,0x6e])](_0x67001c=>{if(!_0x67001c||_0x67001c[_0x58767d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58767d([0x6f,0x6b]))return _0x58767d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x9281a7(_0x4387f0(_0x217b65+_0x54f869))!=_0x67001c[_0x58767d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58767d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58767d([0x56,0x61,0x6c,0x69,0x64]);})[_0x58767d([0x74,0x68,0x65,0x6e])](_0x11f69e=>(_0x1beb5f(),_0x11f69e),()=>{const _0x20ec52=_0x36cc5e();return null==_0x20ec52?(_0x1beb5f(),_0x58767d([0x56,0x61,0x6c,0x69,0x64])):_0x58767d(_0x4de94b-_0x20ec52>(0x288e4f1e^_0xc65472)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58767d([0x74,0x68,0x65,0x6e])](_0x16bfb4)[_0x58767d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x16bfb4(_0x58767d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39c482=0xcb4259e^_0xc65472;function _0x1beb5f(){const _0x598674=_0x58767d([0x6c,0x6c,0x63,0x74,0x2d])+_0x9281a7(_0x4387f0(_0x132a14)),_0x539674=_0xa3f50b(_0x9281a7(window[_0x58767d([0x4d,0x61,0x74,0x68])][_0x58767d([0x63,0x65,0x69,0x6c])](_0x4de94b/_0x39c482)));window[_0x58767d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58767d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x598674,_0x539674);}function _0x36cc5e(){const _0x32033c=_0x58767d([0x6c,0x6c,0x63,0x74,0x2d])+_0x9281a7(_0x4387f0(_0x132a14)),_0x1a1664=window[_0x58767d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58767d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32033c);return _0x1a1664?window[_0x58767d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa3f50b(_0x1a1664),0x10)*_0x39c482:null;}function _0x1078bf(_0x2c875c){return new window[(_0x58767d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4da5a5,_0x496fc7)=>{_0x2c875c[_0x58767d([0x74,0x68,0x65,0x6e])](_0x4da5a5,_0x496fc7),window[_0x58767d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x496fc7,0xc831fde^_0xc65472);});}}_0x27bf65[_0x58767d([0x6f,0x6e])](_0x58767d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x402e23,_0x5bb7d9)=>{if(_0x5bb7d9[0x0]!=_0x132a14)return _0x16bfb4(_0x58767d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5bb7d9[0x1]={..._0x5bb7d9[0x1],[_0x58767d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x217b65};},{[_0x58767d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58767d([0x68,0x69,0x67,0x68])}),_0x27bf65[_0x58767d([0x6f,0x6e])](_0x58767d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5f84f4=>{_0x2d0ae8(_0x5f84f4[_0x58767d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ceffc=!0x0,_0x39501b(_0x5f84f4[_0x58767d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58767d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58767d([0x6c,0x6f,0x77])}),_0x12e917[_0x58767d([0x74,0x68,0x65,0x6e])](()=>{_0x2ceffc||_0x16bfb4(_0x58767d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49c00b(){return _0x27bf65[_0x58767d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58767d([0x76,0x69,0x65,0x77])][_0x58767d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58767d([0x61,0x75,0x74,0x6f]);}function _0x5e9ea2(){_0x27bf65[_0x58767d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58767d([0x76,0x69,0x65,0x77])][_0x58767d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58767d([0x61,0x75,0x74,0x6f]);}}function _0x3099d8(_0x4cb57c){const _0x116d5a=[new window[(_0x58767d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3afc35=>setTimeout(_0x3afc35,0xc8bf5d2^_0xc65472)),_0x12e917[_0x58767d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58767d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xffa195=>{let _0x3ba4e0=0x0;_0x27bf65[_0x58767d([0x6d,0x6f,0x64,0x65,0x6c])][_0x58767d([0x6f,0x6e])](_0x58767d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x34e360,_0x387f10)=>{_0x387f10[0x0][_0x58767d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3ba4e0++,_0x3ba4e0==(0xc82cef6^_0xc65472)&&(_0xffa195(),_0x34e360[_0x58767d([0x6f,0x66,0x66])]());});}))];return window[_0x58767d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58767d([0x72,0x61,0x63,0x65])](_0x116d5a)[_0x58767d([0x74,0x68,0x65,0x6e])](()=>_0x4cb57c);}async function _0x1b1767(){await _0x12e917,_0x27bf65[_0x58767d([0x6d,0x6f,0x64,0x65,0x6c])][_0x58767d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c2b0c,_0x27bf65[_0x58767d([0x6d,0x6f,0x64,0x65,0x6c])][_0x58767d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c2b0c,_0x27bf65[_0x58767d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58767d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a1f3f(_0x37b5d7){const _0x38174e=_0x3c5e3b();_0x27bf65[_0x38174e]=_0x58767d([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x37b5d7,_0x37b5d7!=_0x58767d([0x56,0x61,0x6c,0x69,0x64])&&_0x1b1767();}function _0x3c5e3b(){const _0x400a4c=window[_0x58767d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58767d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58767d([0x6e,0x6f,0x77])]())[_0x58767d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58767d([0x2e]),'');let _0x5a98e0=_0x58767d([0x49]);for(let _0x3b0931=0x0;_0x3b0931<_0x400a4c[_0x58767d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b0931+=0x2){let _0x1a37ec=window[_0x58767d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x400a4c[_0x58767d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b0931,_0x3b0931+0x2));_0x1a37ec>=_0x9c273c[_0x58767d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a37ec-=_0x9c273c[_0x58767d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a98e0+=_0x9c273c[_0x1a37ec];}return _0x5a98e0;}function _0x1c7ee8(){const _0x4daeba=_0x151c12[_0x58767d([0x73,0x70,0x6c,0x69,0x74])](_0x58767d([0x2e]));if(0x3!=_0x4daeba[_0x58767d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e5dae(_0x4daeba[0x1]);function _0x1e5dae(_0x236c24){const _0x419b54=_0x236500(_0x236c24);return _0x419b54&&_0x3761b6()?_0x419b54:null;function _0x3761b6(){const _0x10f630=_0x419b54[_0x58767d([0x6a,0x74,0x69])],_0x2eb45d=window[_0x58767d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10f630[_0x58767d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10f630[_0x58767d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59d230={..._0x419b54,[_0x58767d([0x6a,0x74,0x69])]:_0x10f630[_0x58767d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x10f630[_0x58767d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59d230[_0x58767d([0x76,0x63])],_0x4387f0(_0x59d230)==_0x2eb45d;}}}async function _0x357fc8(){let _0x4df47e=!0x0;try{const _0x2010b0=_0x151c12[_0x58767d([0x73,0x70,0x6c,0x69,0x74])](_0x58767d([0x2e])),[_0x29a239,_0x6ce02c,_0x2fbeea]=_0x2010b0;return _0x47b7da(_0x29a239),await _0x19a129(_0x29a239,_0x6ce02c,_0x2fbeea),_0x4df47e;}catch{return!0x1;}function _0x47b7da(_0x58f6bd){const _0x12607f=_0x236500(_0x58f6bd);_0x12607f&&_0x12607f[_0x58767d([0x61,0x6c,0x67])]==_0x58767d([0x45,0x53,0x32,0x35,0x36])||(_0x4df47e=!0x1);}async function _0x19a129(_0x3c789f,_0xcb6dfc,_0x103424){const _0x253fa4=window[_0x58767d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58767d([0x66,0x72,0x6f,0x6d])](_0x2d1705(_0x103424),_0x29af22=>_0x29af22[_0x58767d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x51e56e=new window[(_0x58767d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58767d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c789f+_0x58767d([0x2e])+_0xcb6dfc),_0x3bfb04=window[_0x58767d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58767d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3bfb04)return;const _0x5db89d=await _0x3bfb04[_0x58767d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58767d([0x6a,0x77,0x6b]),_0x52723a,{[_0x58767d([0x6e,0x61,0x6d,0x65])]:_0x58767d([0x45,0x43,0x44,0x53,0x41]),[_0x58767d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58767d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58767d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3bfb04[_0x58767d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58767d([0x6e,0x61,0x6d,0x65])]:_0x58767d([0x45,0x43,0x44,0x53,0x41]),[_0x58767d([0x68,0x61,0x73,0x68])]:{[_0x58767d([0x6e,0x61,0x6d,0x65])]:_0x58767d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5db89d,_0x253fa4,_0x51e56e)||(_0x4df47e=!0x1);}}function _0x236500(_0x1b667b){return _0x1b667b[_0x58767d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58767d([0x65,0x79]))?JSON[_0x58767d([0x70,0x61,0x72,0x73,0x65])](_0x2d1705(_0x1b667b)):null;}function _0x2d1705(_0x585acc){return window[_0x58767d([0x61,0x74,0x6f,0x62])](_0x585acc[_0x58767d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58767d([0x2b]))[_0x58767d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58767d([0x2f])));}function _0x4387f0(_0x2306aa){let _0x55f52c=0x1505;function _0x8390c(_0x5b70aa){for(let _0xe92560=0x0;_0xe92560<_0x5b70aa[_0x58767d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe92560++){const _0x3c45ee=_0x5b70aa[_0x58767d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe92560);_0x55f52c=(_0x55f52c<<0x5)+_0x55f52c+_0x3c45ee,_0x55f52c&=_0x55f52c;}}function _0x19ff55(_0x32ec62){Array[_0x58767d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32ec62)?_0x32ec62[_0x58767d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19ff55):_0x32ec62&&typeof _0x32ec62==_0x58767d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58767d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32ec62)[_0x58767d([0x73,0x6f,0x72,0x74])]()[_0x58767d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ca208,_0x59c221])=>{_0x8390c(_0x3ca208),_0x19ff55(_0x59c221);}):_0x8390c(window[_0x58767d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32ec62));}return _0x19ff55(_0x2306aa),_0x55f52c>>>0x0;}function _0x9281a7(_0x11229e){return _0x11229e[_0x58767d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58767d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58767d([0x30]));}function _0xa3f50b(_0x1a7d96){return _0x1a7d96[_0x58767d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58767d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58767d([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c2b0c(){}function _0x58767d(_0x42cd5c){return _0x42cd5c['map'](_0x483f52=>String['fromCharCode'](_0x483f52))['join']('');}_0x3a1f3f(await _0x1cf0f8());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x3415a0=this['editor'],_0x16e89a=_0x3415a0['editing']['view'],_0x402ca3=this['_getAttachedDomRoot']();if(!_0x402ca3||0x0===_0x402ca3['childElementCount'])return void _0x3415a0['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x47600e,pageHeight:_0x30ad37}=_0x3415a0['config']['get']('pagination'),{top:_0x345080,left:_0x565415,bottom:_0x21e688,right:_0x224161}=this['_configuredPaddings'];this['_pagesContainer']=new _0xe26854(_0x3415a0['locale']);const _0x34eece=this['_pagesContainer'];_0x34eece['set']('class',''),_0x34eece['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x47600e,'width':_0x47600e,'height':'calc(\x20'+_0x30ad37+'\x20-\x20'+_0x345080+'\x20-\x20'+_0x21e688+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x224161+'\x200\x20'+_0x565415,'columnGap':'calc('+_0x565415+'\x20+\x20'+_0x224161+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x34eece['bindTemplate']['to']('class')}}),_0x34eece['render'](),_0x402ca3['parentNode']['insertBefore'](_0x34eece['element'],_0x402ca3['nextSibling']),this['listenTo'](_0x16e89a,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x59626d of this['editor']['editing']['view']['domRoots']['values']())if(_0x59626d['ownerDocument']['body']['contains'](_0x59626d))return _0x59626d;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x552592=this['editor']['editing']['view'],_0xba0ba6=this['_pagesContainer'],_0x1b9ec0=this['_getAttachedDomRoot']();if(!_0x1b9ec0)return Promise['resolve']();for(_0xba0ba6['class']=['ck-reset','ck-pagination-view',..._0x1b9ec0['classList']]['join']('\x20');_0xba0ba6['element']['firstChild'];)_0xba0ba6['element']['firstChild']['remove']();const _0x3e77cb=Array['from'](_0x552592['domRoots']);_0x3e77cb['sort'](([,_0x41ed87],[,_0x3bfe5a])=>_0x41ed87['compareDocumentPosition'](_0x3bfe5a)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x199bbf,_0x138b5f]of _0x3e77cb){const _0x304263=_0x138b5f['cloneNode'](!0x0);'attributeStyleMap'in _0x304263&&_0x304263['attributeStyleMap']['clear'](),_0x304263['dataset']['rootName']=_0x199bbf,_0x304263['className']='ck-content\x20ck-pagination_enabled',_0x304263['removeAttribute']('id'),_0x304263['tabIndex']=-0x1,_0xba0ba6['element']['append'](_0x304263);}const _0x1e6feb=Array['from'](_0xba0ba6['element']['querySelectorAll']('img'));return function(_0x29a0f9){return Promise['all'](_0x29a0f9['map'](_0x5b9882=>Promise['race']([k(_0x5b9882),v(0x3e8)])));}(_0x1e6feb)['then'](()=>{for(const _0x2996be of _0x1e6feb['filter'](_0x37c36d=>!_0x37c36d['closest']('table')))if(_0x2996be['offsetParent']){const _0x26e88e=_0x4fcb2c['window']['getComputedStyle'](_0x2996be),_0x28c28f=_0x4fcb2c['document']['createElement']('span');for(const _0x2e8b74 of _0x26e88e)_0x28c28f['style']['setProperty'](_0x2e8b74,_0x26e88e[_0x2e8b74]);_0x28c28f['style']['backgroundImage']='url(\x20'+_0x2996be['src']+'\x20)',_0x28c28f['style']['breakInside']='avoid','PICTURE'==_0x2996be['parentElement']?.['tagName']?_0x2996be['parentElement']['replaceWith'](_0x28c28f):_0x2996be['replaceWith'](_0x28c28f);}return new Promise(_0x5506c2=>_0x4fcb2c['window']['requestAnimationFrame'](()=>_0x5506c2()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x257b66=this['_pagesContainer']['element'];if(!_0x257b66['ownerDocument']['body']['contains'](_0x257b66))return;const _0xedc399=new _0x2ef3cb(_0x257b66)['excludeScrollbarsAndBorders'](),_0x202a7b=Math['floor'](_0xedc399['width']+0x64),_0x585b67=_(_0x257b66,Math['floor'](_0xedc399['left']-_0x257b66['scrollLeft']),_0x202a7b,_0xedc399['height'])['map'](_0x365337=>this['_mapPageStarterInfoToPageBreakInfo'](_0x365337))['filter'](_0x203ede=>!0x1!==_0x203ede);_0x585b67['every'](_0x3c6bff=>!!_0x3c6bff)&&(this['pageBreaks']=_0x585b67);}['_mapPageStarterInfoToPageBreakInfo'](_0x2f7f40){const _0x20189e=this['editor']['editing']['view'],_0x1672f9=this['editor']['editing']['mapper'],_0x2a037e=_0x20189e['domConverter'],_0x1b17b7=_0x2f7f40['path']['shift'](),_0x1fcd7f=this['_pagesContainer']['element']['childNodes'][_0x1b17b7]['dataset']['rootName'],_0x4fe86f=_0x20189e['getDomRoot'](_0x1fcd7f);if(!_0x4fe86f)return null;const _0x487059=function(_0x404111,_0x5e756c){let _0x6a99df=_0x404111;for(const _0x10e427 of _0x5e756c['path']){if(!_0x6a99df)return null;_0x6a99df=_0x6a99df['childNodes'][_0x10e427];}return _0x6a99df;}(_0x4fe86f,_0x2f7f40);if(!_0x487059)return null;const _0x5286b7=_0x2a037e['domPositionToView'](_0x487059,_0x2f7f40['textOffset']||0x0);return _0x5286b7?'manual'==_0x2f7f40['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x5286b7,_0x487059):'text'==_0x2f7f40['type']&&_0x1672f9['toModelPosition'](_0x5286b7)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x5286b7,_0x487059,_0x2f7f40['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x5286b7,_0x487059,_0x2f7f40['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x4bc062,_0x32890e){const _0x6949b8=this['editor']['model'],_0xb91c2=this['editor']['editing']['mapper']['toModelElement'](_0x4bc062['parent']),_0x2a54a8=_0x6949b8['createRangeOn'](_0xb91c2);return new b({'type':'manual','modelRange':_0x2a54a8,'domNode':_0x32890e,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x3ea527,_0x1d1441,_0x1046e9){const _0x3fbd29=this['editor']['model'],_0x135d6e=this['editor']['editing']['mapper'],_0x3c58ca=this['editor']['editing']['view']['domConverter'];if(_0x1046e9>=_0x1d1441['length'])return null;const _0x47fac8=_0x135d6e['toModelPosition'](_0x3ea527),_0x247b8a=_0x3fbd29['createRange'](_0x47fac8),_0xd3cf25=_0x135d6e['findMappedViewAncestor'](_0x3ea527),_0x306a10=_0x3c58ca['mapViewToDom'](_0xd3cf25);return new b({'type':'text','modelRange':_0x247b8a,'domNode':_0x1d1441,'offset':P(_0x1d1441,_0x1046e9,_0x306a10)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x5ef654,_0x99c536,_0x38082d){const _0x42fb50=this['editor']['model'],_0x539a10=this['editor']['editing'],_0x4eb7c0=_0x539a10['mapper'],_0x1a933b=_0x539a10['view']['domConverter'],_0x2d06ce=_0x4eb7c0['findMappedViewAncestor'](_0x5ef654),_0x56eb60=_0x4eb7c0['toModelElement'](_0x2d06ce);if(!_0x56eb60||_0x56eb60['is']('element','$root'))return!0x1;const _0x4ead54=function(_0x53b615){const _0x3291b5=_0x53b615['parent'],_0x7ab2c3=_0x3291b5['root']['document']['model'],_0x190a69=_0x3291b5['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x3b2f0c=null;for(const _0x19aac4 of _0x190a69){if(_0x19aac4['is']('rootElement'))return _0x3b2f0c;if(!_0x7ab2c3['createPositionBefore'](_0x19aac4)['isTouching'](_0x53b615))return _0x3b2f0c;_0x3b2f0c=_0x19aac4;}}(_0x42fb50['createPositionBefore'](_0x56eb60)),_0x47868f=_0x4ead54||_0x56eb60;let _0x39904c=_0x4eb7c0['toViewElement'](_0x47868f),_0x27c328=_0x42fb50['createRangeOn'](_0x47868f);const _0x2fbe06=_0x42fb50['createPositionBefore'](_0x47868f)['nodeBefore'];if(_0x2fbe06&&_0x2fbe06['is']('element','imageBlock')){const _0x3da2a0=_0x4eb7c0['toViewElement'](_0x2fbe06),_0x2b8d07=_0x1a933b['mapViewToDom'](_0x3da2a0),_0x4338e9=_0x4fcb2c['window']['getComputedStyle'](_0x2b8d07)['float'];'left'!=_0x4338e9&&'right'!=_0x4338e9||(_0x27c328=_0x42fb50['createRangeOn'](_0x2fbe06));}for(;_0x39904c['parent']!==_0x39904c['root']&&0x0===_0x39904c['index'];)_0x39904c=_0x39904c['parent'];const _0x32c1df=new _0x2ef3cb(I(_0x99c536)?_0x99c536:x(_0x99c536)),_0x341f09=_0x38082d?_0x32c1df['height']-_0x38082d:0x0,_0x313399=_0x1a933b['mapViewToDom'](_0x39904c),_0x3e282d=new _0x2ef3cb(_0x313399);return new b({'type':'element','modelRange':_0x27c328,'domNode':_0x313399,'offset':Math['round'](_0x341f09)||_0x2d06ce!=y(_0x5ef654)?_0x341f09+_0x32c1df['top']-_0x3e282d['top']:0x0});}get['_configuredPaddings'](){const _0x155302=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x155302);}static['_findPageStarterInfos'](_0x40054e,_0x1dd38f,_0x5c1aa0,_0x2a389c,_0x1cc056){return _(_0x40054e,_0x1dd38f,_0x5c1aa0,_0x2a389c,_0x1cc056);}}class b{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x40239a,modelRange:_0x20b871,domNode:_0x4de25f,offset:_0x21b82d}){this['type']=_0x40239a,this['modelRange']=_0x20b871,this['_domNode']=_0x4de25f,this['_offset']=_0x21b82d;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x528a37=new _0x2ef3cb(I(this['_domNode'])?this['_domNode']:x(this['_domNode']));return'manual'==this['type']?_0x528a37['top']+_0x528a37['height']/0x2:_0x528a37['top']+this['_offset'];}}function P(_0x4c77a7,_0x164840,_0x33cb82){const _0x15b589=x(_0x4c77a7),_0x4f589a=function(_0xfdd7fa){const _0x10cb89=_0x4fcb2c['document']['createRange']();return _0x10cb89['selectNodeContents'](_0xfdd7fa),_0x10cb89;}(_0x33cb82);let _0x322c5d;_0x322c5d=0x0==_0x164840?L(_0x4f589a['startContainer'],_0x4f589a['startOffset'],_0x4c77a7['parentNode'],Array['from'](_0x4c77a7['parentNode']['childNodes'])['indexOf'](_0x4c77a7)):L(_0x4f589a['startContainer'],_0x4f589a['startOffset'],_0x4c77a7,_0x164840);const _0x3c4be0=L(_0x4c77a7,_0x164840,_0x4f589a['endContainer'],_0x4f589a['endOffset']),_0x2eaa5e=new _0x2ef3cb(_0x322c5d)['bottom'];return(new _0x2ef3cb(_0x3c4be0)['top']+_0x2eaa5e)/0x2-new _0x2ef3cb(_0x15b589)['top'];}function y(_0x9db228){let _0x22d112=_0x9db228['parent'];for(;_0x22d112['is']('$text')||_0x22d112['is']('attributeElement');)_0x22d112=_0x22d112['parent'];return _0x22d112;}function k(_0x3f7fcf){return _0x3f7fcf['hasAttribute']('width')&&_0x3f7fcf['hasAttribute']('height')?Promise['resolve']():new Promise(_0x25e544=>{function _0x8a23b1(){_0x3f7fcf['removeEventListener']('load',_0x8a23b1),_0x3f7fcf['removeEventListener']('error',_0x8a23b1),_0x25e544();}_0x3f7fcf['complete']?_0x25e544():(_0x3f7fcf['addEventListener']('load',_0x8a23b1),_0x3f7fcf['addEventListener']('error',_0x8a23b1));});}function v(_0x518954){return new Promise(_0x3003fc=>setTimeout(_0x3003fc,_0x518954));}function x(_0x36d85b){const _0x410c52=_0x4fcb2c['document']['createRange']();return _0x410c52['selectNode'](_0x36d85b),_0x410c52;}function N(_0x595397,_0x49eae,_0x48438a){const _0x4ad4a5=_0x4fcb2c['document']['createRange']();return _0x4ad4a5['setStart'](_0x595397,_0x49eae),_0x4ad4a5['setEnd'](_0x595397,_0x48438a),_0x4ad4a5;}function L(_0x514882,_0x3ac9af,_0x27ccf0,_0x2908dc){const _0x583f41=_0x4fcb2c['document']['createRange']();return _0x583f41['setStart'](_0x514882,_0x3ac9af),_0x583f41['setEnd'](_0x27ccf0,_0x2908dc),_0x583f41;}function _(_0x1a71e0,_0x1b3cc1,_0x5639ea,_0x2b2eb4,_0x3d51d4){const _0x179003=[];for(const [_0x5afa27,_0x1113d5]of _0x1a71e0['childNodes']['entries']()){let _0x25635f=[];I(_0x1113d5)&&_0x1113d5['offsetParent']&&['static','relative']['includes'](_0x4fcb2c['window']['getComputedStyle'](_0x1113d5)['position'])?_0x25635f=S(_0x1113d5,_0x5afa27,_0x1b3cc1,_0x5639ea,_0x2b2eb4,_0x3d51d4):O(_0x1113d5)&&(_0x25635f=E(_0x1113d5,_0x5afa27,_0x1b3cc1,_0x5639ea,_0x3d51d4)),_0x25635f['length']&&(_0x179003['push'](..._0x25635f),_0x1b3cc1+=_0x25635f['length']*_0x5639ea,_0x3d51d4=!0x1);}return _0x179003;}function S(_0x548f0c,_0x1955f0,_0x40ef9b,_0x5afc9f,_0x3a58ef,_0x3dbb94){const _0x3c573=[];var _0x3c52c7;if((_0x3c52c7=_0x548f0c['previousSibling'])&&I(_0x3c52c7)&&Boolean(_0x3c52c7['classList']['contains']('page-break')||_0x3c52c7['closest']('.page-break'))&&(_0x3c573['push']({'type':'manual','offset':0x0,'path':[_0x1955f0-0x1]}),_0x3dbb94=!0x0),'table-row'==_0x4fcb2c['window']['getComputedStyle'](_0x548f0c)['display']){let _0x4ae56c=0x0,_0x2ac1e7=!0x1;for(const _0x5d1b71 of _0x548f0c['getClientRects']())_0x4ae56c+=_0x5d1b71['height'],_0x5d1b71['left']>=_0x40ef9b&&(_0x2ac1e7=!0x0);if(_0x4ae56c<_0x3a58ef&&_0x2ac1e7)return _0x3dbb94||_0x3c573['push']({'type':'element','offset':0x0,'path':[_0x1955f0]}),_0x3c573;}const _0x2fcae1=_0x548f0c['closest']('figure.image');if(_0x2fcae1&&function(_0x20afe1){let _0x5784f0=!0x1;const _0x2ee8e5=_0x20afe1['parentElement'],_0x362079=_0x2ee8e5['dataset']['rootName'],_0x237d06=_0x20afe1['nextElementSibling'],_0x42005a=_0x20afe1['previousElementSibling'],_0x45c517=_0x237d06&&_0x4fcb2c['window']['getComputedStyle'](_0x237d06)['float'],_0x1a8ba7=_0x237d06&&'ck-fake-selection-container'===_0x237d06['className'];!_0x362079||_0x237d06||_0x42005a||(_0x5784f0=!0x0),_0x362079&&!_0x42005a&&_0x1a8ba7&&(_0x5784f0=!0x0),_0x362079&&!_0x42005a&&'none'!==_0x45c517&&(_0x5784f0=!0x0);if(_0x5784f0)return!0x1;return!0x0;}(_0x2fcae1)){const _0x3dc560=_0x4fcb2c['window']['getComputedStyle'](_0x2fcae1)['float'];if('left'==_0x3dc560||'right'==_0x3dc560)return _0x3c573;}const _0x402f94=_(_0x548f0c,_0x40ef9b,_0x5afc9f,_0x3a58ef,_0x3dbb94);if(_0x402f94['length']){for(const _0x12d66a of _0x402f94)_0x3c573['push']({'type':_0x12d66a['type'],'offset':_0x12d66a['offset'],'textOffset':_0x12d66a['textOffset'],'path':[_0x1955f0,..._0x12d66a['path']]}),_0x40ef9b+=_0x5afc9f,_0x3dbb94=!0x1;return _0x3c573;}return _0x3c573['push'](...function(_0x2df9b1,_0x1556b8,_0xbf798a,_0x56b127,_0x203088){const _0x27fb15=[];if('table-cell'==_0x4fcb2c['window']['getComputedStyle'](_0x2df9b1)['display'])return[];const _0xd1d6f=[];for(const _0xb16a27 of _0x2df9b1['getClientRects']())if(_0xb16a27['left']>=_0xbf798a){for(const _0x2ffc36 of _0xd1d6f)_0x2ffc36['height']+=_0xb16a27['height'];_0xd1d6f['push']({'height':_0xb16a27['height']}),_0xbf798a+=_0x56b127;}for(const _0x4f1d8f of _0xd1d6f)_0x203088||_0x27fb15['push']({'type':'element','offset':_0x4f1d8f['height'],'textOffset':0x0,'path':[_0x1556b8]}),_0x203088=!0x1;return _0x27fb15;}(_0x548f0c,_0x1955f0,_0x40ef9b,_0x5afc9f,_0x3dbb94)),_0x3c573;}function E(_0x5b5637,_0x28e973,_0x4672a6,_0x5c5e60,_0x282299){const _0xf9637=x(_0x5b5637),_0x467c41=[];let _0x565278=0x0;for(const _0x1e4867 of _0xf9637['getClientRects']())if(_0x1e4867['left']>=_0x4672a6){const _0x5ba764=R(_0x5b5637,_0x565278,_0x4672a6,_0x5c5e60);_0x282299||_0x467c41['push']({'type':'text','path':[_0x28e973],'textOffset':_0x5ba764}),_0x565278=_0x5ba764,_0x4672a6+=_0x5c5e60,_0x282299=!0x1;}return _0x467c41;}function R(_0x2c5d2c,_0x504f68,_0x2d56ea,_0x4df8b9){let _0x4901f1=_0x504f68,_0x532a69=_0x2c5d2c['length'];for(;_0x532a69-_0x4901f1>0x1;){const _0x206057=Math['ceil']((_0x4901f1+_0x532a69)/0x2);K(N(_0x2c5d2c,_0x4901f1,_0x206057),_0x2d56ea,_0x4df8b9)?_0x532a69=_0x206057:_0x4901f1=_0x206057;}return _0x4901f1;}function K(_0x422de9,_0x4ab67f,_0x5ce888){for(const _0x431a62 of _0x422de9['getClientRects']())if(_0x431a62['left']>=_0x4ab67f&&_0x431a62['left']<_0x4ab67f+_0x5ce888)return!0x0;return!0x1;}function I(_0x2fc97e){return _0x2fc97e['nodeType']==Node['ELEMENT_NODE'];}function O(_0x51ae11){return _0x51ae11['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
- _0x524f8d('px');class T extends _0xe26854{constructor(){super();const _0x5afe9f=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x5afe9f['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x5afe9f['if']('isVisible','ck-hidden',_0x212089=>!_0x212089)],'style':{'left':_0x5afe9f['to']('left',_0x40e73f=>B(_0x40e73f)),'top':_0x5afe9f['to']('top',_0x10cc96=>B(_0x10cc96)),'width':_0x5afe9f['to']('width',_0x51d82a=>B(_0x51d82a))}}});}}class A{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x49bf41){this['_viewCollection']=_0x49bf41['ui']['view']['body'];}['destroy'](){for(const _0xfc50e9 of this['_hiddenLines'])_0xfc50e9['destroy']();}['cleanLines'](){for(const _0x5e9aaf of this['_visibleLines'])_0x5e9aaf['isVisible']=!0x1,this['_hiddenLines']['add'](_0x5e9aaf);this['_visibleLines']['clear']();}['showLine'](_0x4917cd,_0x2901ca,_0x13c3d0,_0x6b0f87){let _0x289854;this['_hiddenLines']['size']?(_0x289854=_0x31f01d(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x289854)):_0x289854=new T(),_0x289854['set']({'pageNumber':_0x6b0f87,'left':_0x4917cd,'top':_0x2901ca,'width':_0x13c3d0}),_0x289854['isVisible']=!0x0,this['_viewCollection']['has'](_0x289854)||this['_viewCollection']['add'](_0x289854),this['_visibleLines']['add'](_0x289854);}['setViewCollection'](_0x475d8e){for(const _0x1f2d32 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x1f2d32)&&this['_viewCollection']['remove'](_0x1f2d32);this['_viewCollection']=_0x475d8e;}}const D='ck-pagination_enabled';class $ extends _0x3960ce{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new A(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](D),this['on']('change:isEnabled',(_0x18b405,_0x50573d,_0x4dbab1)=>{_0x4dbab1||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x4dbab1);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x543989){if(!this['isEnabled'])return;const _0x350c54=_0x543989>0x1?this['_getPageBreakLineOffset'](_0x543989-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x350c54-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x43999e['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x2ddf2e=this['editor'],_0x18aa96=this['_getAttachedDomRoot']();_0x18aa96?(this['_scrollableEditingRootDomAncestor']&&_0x2ddf2e['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x4a7f31){let _0x320bd4=_0x4a7f31;do{_0x320bd4=_0x320bd4['parentElement'];const _0x2ecd64=_0x4fcb2c['window']['getComputedStyle'](_0x320bd4)['overflowY'];if('auto'==_0x2ecd64||'scroll'==_0x2ecd64)break;}while('BODY'!=_0x320bd4['tagName']);return _0x320bd4;}(_0x18aa96),_0x2ddf2e['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x5532fc(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x2ddf2e['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x3991c8=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x3991c8['ui']['view']['listenTo'](_0x4fcb2c['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x3991c8['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x1f4401 of this['editor']['editing']['view']['domRoots']['values']())if(_0x1f4401['ownerDocument']['body']['contains'](_0x1f4401))return _0x1f4401;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x299479=this['_getAttachedDomRoot'](),_0x291955=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x299479||0x1==_0x291955['length'])return void(this['pageNumber']=0x1);const _0x43cf98=new _0x2ef3cb(_0x299479)['excludeScrollbarsAndBorders'](),_0x3d79c6=new _0x2ef3cb(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x37b33c=_0x3d79c6['top']+_0x3d79c6['height']/0x3;let _0x1db956=!0x1;const _0x3d773e=[];for(let _0x43282c=0x1;_0x43282c<_0x291955['length'];_0x43282c++){const _0x3170af=this['_getPageBreakLineOffset'](_0x43282c,_0x3d79c6);if(!_0x3170af)continue;const _0x500b95=_0x3d79c6['top']+_0x3170af-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x3d773e['push']({'pageOffsetTop':_0x500b95,'domRootRect':_0x43cf98,'domScrollableRect':_0x3d79c6,'pageNumber':_0x43282c}),_0x500b95>_0x37b33c&&!_0x1db956&&(this['pageNumber']=_0x43282c,_0x1db956=!0x0);}this['_renderPageBreakLines'](_0x3d773e),_0x1db956||(this['pageNumber']=_0x291955['length']);}['_renderPageBreakLines'](_0x257e81){const {scrollX:_0x49af83,scrollY:_0x593c45}=_0x4fcb2c['window'];if(_0x257e81['length']){for(const {domScrollableRect:_0x1150d7,pageOffsetTop:_0x25f5cb,domRootRect:_0x3bf0ca,pageNumber:_0x156429}of _0x257e81)_0x1150d7['top']<_0x25f5cb&&_0x25f5cb<_0x1150d7['bottom']&&this['linesRepository']['showLine'](_0x3bf0ca['left']+_0x49af83,_0x25f5cb+_0x593c45,_0x3bf0ca['width'],_0x156429+0x1);}}['_getPageBreakLineOffset'](_0x369033,_0x18cc61=null){const _0x597f35=this['_paginationLookupPlugin']['pageBreaks'][_0x369033]['offset'];return _0x597f35?(_0x18cc61||(_0x18cc61=new _0x2ef3cb(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x597f35-_0x18cc61['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0xf1b19a,_0xaa5535=!0x0){const _0x156f4b=this['editor']['editing']['view'];_0x156f4b['change'](_0x3a2752=>{for(const _0x5b0d8a of _0x156f4b['document']['roots'])_0xaa5535?_0x3a2752['addClass'](_0xf1b19a,_0x5b0d8a):_0x3a2752['removeClass'](_0xf1b19a,_0x5b0d8a);});}}function G(_0x47146f,_0x3570ac,..._0x7060c5){const t=_0x47146f['t'];switch(_0x3570ac){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x7060c5);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x3570ac;}}class C extends _0x3960ce{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[w,$];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x45512e=this['editor']['plugins']['get']('Pagination'),_0x3d5a9=this['editor']['plugins']['get'](w),_0x2c995e=this['editor']['plugins']['get']($);this['bind']('isEnabled')['to'](_0x45512e),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x2c995e),this['listenTo'](_0x3d5a9,'change:pageBreaks',(_0x44e477,_0x3e9b3f,_0x340178,_0x5cb03f)=>{this['totalPages']=_0x340178['length'],this['_updatePageBreakMarkers'](_0x340178,_0x5cb03f);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4e7305=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x243600;for(const _0x545ffc in _0x4e7305){const _0x3a8ba0=_0x545ffc,_0x596981=_0x4e7305[_0x3a8ba0];if('paginationLicenseKeyValid'==_0x596981||'paginationLicenseKeyInvalid'==_0x596981||'paginationLicenseKeyExpired'==_0x596981||'paginationLicenseKeyDomainLimit'==_0x596981||'paginationLicenseKeyNotAllowed'==_0x596981||'paginationLicenseKeyEvaluationLimit'==_0x596981||'paginationLicenseKeyUsageLimit'==_0x596981){delete _0x4e7305[_0x3a8ba0],_0x243600=_0x596981,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x243600&&_0x4e7305['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x243600&&_0x4e7305['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x243600&&_0x4e7305['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x243600&&_0x4e7305['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x243600&&_0x4e7305['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x243600&&_0x4e7305['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x1e5841){if(!this['isEnabled'])return;this['editor']['plugins']['get']($)['scrollToPage'](this['_validatePageNumber'](_0x1e5841));}['moveSelectionToPage'](_0x3d614a){if(!this['isEnabled'])return;const _0x3d7513=this['editor'],_0x3e2f88=this['editor']['plugins']['get'](w)['pageBreaks'][_0x3d614a-0x1];_0x3e2f88&&_0x3d7513['model']['change'](_0x2f1199=>{switch(_0x3e2f88['type']){case'manual':{const _0x20d64a=_0x3d7513['model']['schema']['getNearestSelectionRange'](_0x3e2f88['modelRange']['end'],'forward');_0x2f1199['setSelection'](_0x20d64a);break;}case'element':{const _0x18d9ec=_0x3d7513['model']['schema']['getNearestSelectionRange'](_0x3e2f88['modelRange']['start'],'forward');_0x2f1199['setSelection'](_0x18d9ec);break;}case'text':{const _0x498281=_0x3e2f88['modelRange']['start'];if(_0x498281['textNode']&&'\x20'===_0x498281['textNode']['data'][_0x498281['offset']]){const _0x4a7ce3=_0x2f1199['createPositionAt'](_0x498281['parent'],_0x498281['offset']+0x1);_0x2f1199['setSelection'](_0x4a7ce3);}else _0x2f1199['setSelection'](_0x3e2f88['modelRange']);}}_0x3d7513['editing']['view']['focus']();});}['goToNextPage'](){const _0x43fb4c=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x43fb4c),this['scrollToPage'](_0x43fb4c);}['goToPreviousPage'](){const _0x3ffa35=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x3ffa35),this['scrollToPage'](_0x3ffa35);}['_updatePageBreakMarkers'](_0x3fb70b,_0x17da21){const _0x3c9bfe=this['editor']['model'];this['isEnabled']&&_0x3c9bfe['change'](_0x258970=>{for(let _0x1e30de=0x1;_0x1e30de<_0x3fb70b['length'];_0x1e30de++){const _0x4f8ef5=_0x3fb70b[_0x1e30de]['modelRange'],_0x33e856='pagination:'+(_0x1e30de+0x1);_0x3c9bfe['markers']['has'](_0x33e856)?_0x258970['updateMarker'](_0x33e856,{'range':_0x4f8ef5}):_0x258970['addMarker'](_0x33e856,{'range':_0x4f8ef5,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x12a12e=_0x3fb70b['length'];_0x12a12e<_0x17da21['length'];_0x12a12e++){const _0x58a3d4='pagination:'+(_0x12a12e+0x1);_0x3c9bfe['markers']['has'](_0x58a3d4)&&_0x258970['removeMarker'](_0x58a3d4);}});}['_setUpDataDowncastConversion'](){const _0x10fc6d='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x3848c0=>{_0x3848c0['on']('addMarker:'+_0x10fc6d,(_0x47e93d,{markerRange:_0x1288ed,markerName:_0x5cdcf4},_0x153343)=>{if(!_0x153343['options']['pagination'])return;if(!_0x153343['consumable']['consume'](_0x1288ed,_0x47e93d['name']))return;const _0x532ae9=_0x1288ed['getContainedElement']();let _0x458be4=_0x532ae9?_0x153343['mapper']['toViewElement'](_0x532ae9):null;if(!_0x458be4){const _0x123912=_0x1288ed['start'];if(_0x153343['schema']['checkChild'](_0x123912,'$text')){const _0x1d6cb9=_0x153343['mapper']['toViewPosition'](_0x123912);_0x458be4=_0x153343['writer']['createContainerElement']('span'),_0x458be4['getFillerOffset']=()=>null,_0x153343['writer']['insert'](_0x1d6cb9,_0x458be4);}else{const _0x5d5256=_0x123912['nodeAfter'];_0x458be4=_0x153343['mapper']['toViewElement'](_0x5d5256);}}for(;_0x458be4['parent']!==_0x458be4['root']&&0x0===_0x458be4['index'];)_0x458be4=_0x458be4['parent'];const _0x5e398b=_0x5cdcf4['substring'](0xb);_0x458be4['hasClass']('page-break')||(_0x153343['writer']['setStyle']('page-break-before','always',_0x458be4),_0x153343['writer']['setAttribute']('data-pagination-page',_0x5e398b,_0x458be4),_0x153343['mapper']['bindElementToMarker'](_0x458be4,_0x5cdcf4)),_0x47e93d['stop']();});});}['_setupKeystrokes'](){const _0x540f5a=this['editor'];_0x540f5a['keystrokes']['set']('Shift+Pageup',(_0x37d252,_0x535403)=>{this['goToPreviousPage'](),_0x535403();}),_0x540f5a['keystrokes']['set']('Shift+Pagedown',(_0x350217,_0xb75641)=>{this['goToNextPage'](),_0xb75641();}),_0x540f5a['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':G(_0x540f5a['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':G(_0x540f5a['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':G(_0x540f5a['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x17d11e){return _0x17d11e<0x1&&(_0x17d11e=0x1),_0x17d11e>this['totalPages']&&(_0x17d11e=this['totalPages']),_0x17d11e;}}class U extends _0xe26854{['pageNumberView'];constructor(_0x2e1e2a){super(_0x2e1e2a);const _0x5c2376=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x5c9680(_0x2e1e2a,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x15da8b=>G(_0x2e1e2a,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x15da8b)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x26b0c4=>!_0x26b0c4),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x5c2376['if']('isEnabled','ck-disabled',_0x2d7e6c=>!_0x2d7e6c)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x5c2376['to']('totalPages')}]}]});}['render'](){super['render']();const _0x2a0e8a=this['pageNumberView']['element'],_0xe3197=_0x5e3481=>{this['pageNumberView']['element']['value']=String(_0x5e3481);};_0xe3197(this['pageNumber']),this['on']('change:pageNumber',(_0x1b28cd,_0x5a878c,_0x3734f2)=>{_0xe3197(_0x3734f2);}),this['listenTo'](_0x2a0e8a,'keydown',(_0x5afc8f,_0x2d60be)=>{if('ArrowUp'===_0x2d60be['key']||'ArrowDown'===_0x2d60be['key'])return void _0x2d60be['stopPropagation']();if(_0x2d60be['keyCode']!==_0x2463f5['enter'])return;_0x2d60be['preventDefault']();const _0xad663b=_0x2a0e8a['valueAsNumber'];Number['isNaN'](_0xad663b)?_0x2a0e8a['value']=String(this['pageNumber']):(_0x2a0e8a['checkValidity']()?this['pageNumber']=_0xad663b:_0xad663b>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x2a0e8a['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x2a0e8a['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x2a0e8a,'blur',()=>{_0x2a0e8a['value']=String(this['pageNumber']);}),this['listenTo'](_0x2a0e8a,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class M extends _0x3960ce{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2743d8=this['editor'],_0x5ea7f0=_0x2743d8['plugins']['get']('PaginationEditing');_0x2743d8['ui']['componentFactory']['add']('pageNavigation',_0x5d3a85=>{const _0x49710f=new U(_0x5d3a85);return _0x49710f['bind']('pageNumber')['to'](_0x5ea7f0),_0x49710f['bind']('totalPages')['to'](_0x5ea7f0),_0x49710f['bind']('isEnabled')['to'](_0x5ea7f0),_0x49710f['on']('navigation',(_0x207bf2,_0x5e476f)=>{_0x5ea7f0['moveSelectionToPage'](_0x5e476f),_0x5ea7f0['scrollToPage'](_0x5e476f);}),_0x49710f;}),_0x2743d8['ui']['componentFactory']['add']('nextPage',_0x53ec7a=>{const _0x3fb542=new _0x32246f(_0x53ec7a);return _0x3fb542['isEnabled']=!0x0,_0x3fb542['label']=G(_0x2743d8['locale'],'Go\x20to\x20next\x20page'),_0x3fb542['icon']=_0x3be66f,_0x3fb542['tooltip']=!0x0,_0x3fb542['keystroke']='Shift+PageDown',_0x3fb542['bind']('isEnabled')['to'](_0x5ea7f0),this['listenTo'](_0x3fb542,'execute',()=>{_0x5ea7f0['goToNextPage']();}),_0x3fb542;}),_0x2743d8['ui']['componentFactory']['add']('previousPage',_0x12844f=>{const _0x542b36=new _0x32246f(_0x12844f);return _0x542b36['isEnabled']=!0x0,_0x542b36['label']=G(_0x2743d8['locale'],'Go\x20to\x20previous\x20page'),_0x542b36['icon']=_0x408843,_0x542b36['tooltip']=!0x0,_0x542b36['keystroke']='Shift+PageUp',_0x542b36['bind']('isEnabled')['to'](_0x5ea7f0),this['listenTo'](_0x542b36,'execute',()=>{_0x5ea7f0['goToPreviousPage']();}),_0x542b36;});}}class j extends _0x3960ce{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C,M];}constructor(_0x21d216){super(_0x21d216),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x385da5=this['editor']['plugins']['get'](C);this['bind']('pageNumber')['to'](_0x385da5),this['bind']('totalPages')['to'](_0x385da5),_0x43999e['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0xa371e1){this['editor']['plugins']['get'](C)['scrollToPage'](_0xa371e1);}}export{j as Pagination,$ as PaginationRenderer};
23
+ import{Plugin as _0xdb54e1}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x1b89ce,InputNumberView as _0x4d67b8,ButtonView as _0x5d4a55}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x29045d,global as _0x1f984f,Rect as _0x549341,uid as _0x587400,toUnit as _0xbc7100,first as _0xf42c5a,env as _0x5dfeed,ResizeObserver as _0x570fd7,keyCodes as _0x570225}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x5d8007}from'es-toolkit/compat';import{IconArrowDown as _0x500847,IconArrowUp as _0x3b15e5}from'@ckeditor/ckeditor5-icons/dist/index.js';class w extends _0xdb54e1{['_recalculatePageBreaksDebounced']=_0x5d8007(()=>this['_recalculatePageBreaks'](),0xc8);['_pagesContainer']=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void _0x29045d('pagination-config-not-found',this['editor']['config']);const _0x3e2ea2=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x3e2ea2),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x5d108a,_0x1e41fe,_0xb30b70)=>{_0xb30b70&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x425ab2){const _0x14478e=_0x20f18e([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0x266f3a=0xc82cb1e,_0x5399e4=0xc854fe6^_0x266f3a,_0x3ef368=window[_0x20f18e([0x44,0x61,0x74,0x65])][_0x20f18e([0x6e,0x6f,0x77])](),_0x22ed8e=_0x425ab2[_0x20f18e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x27432f=new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34fd3b=>{_0x22ed8e[_0x20f18e([0x6f,0x6e,0x63,0x65])](_0x20f18e([0x72,0x65,0x61,0x64,0x79]),_0x34fd3b);}),_0x19104={[_0x20f18e([0x6b,0x74,0x79])]:_0x20f18e([0x45,0x43]),[_0x20f18e([0x75,0x73,0x65])]:_0x20f18e([0x73,0x69,0x67]),[_0x20f18e([0x63,0x72,0x76])]:_0x20f18e([0x50,0x2d,0x32,0x35,0x36]),[_0x20f18e([0x78])]:_0x20f18e([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]),[_0x20f18e([0x79])]:_0x20f18e([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]),[_0x20f18e([0x61,0x6c,0x67])]:_0x20f18e([0x45,0x53,0x32,0x35,0x36])},_0x9a1051=_0x22ed8e[_0x20f18e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20f18e([0x67,0x65,0x74])](_0x20f18e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x126adf(){let _0x41a6d3,_0x2aed5=null,_0x2b1768=null;try{if(_0x9a1051==_0x20f18e([0x47,0x50,0x4c]))return _0x20f18e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41a6d3=_0x3601a1(),!_0x41a6d3)return _0x20f18e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41a6d3[_0x20f18e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b1768=_0x411535(_0x41a6d3[_0x20f18e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41a6d3[_0x20f18e([0x6a,0x74,0x69])])),await _0x2044b9()?_0x138d26()?_0x2c5e01()?_0x20f18e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x56c56d()?(_0x41a6d3[_0x20f18e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20f18e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2aed5=_0x313ce5(_0x20f18e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e0cc7()):_0x20f18e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20f18e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20f18e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x20f18e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c5e01(){const _0x3b46d7=[_0x20f18e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20f18e([0x74,0x72,0x69,0x61,0x6c])][_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41a6d3[_0x20f18e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ef368/0x3e8:0xe10*_0x5399e4;return _0x41a6d3[_0x20f18e([0x65,0x78,0x70])]<_0x3b46d7;}function _0x138d26(){const _0x419ce0=_0x41a6d3[_0x20f18e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x419ce0&&(!!_0x419ce0[_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20f18e([0x2a]))||!!_0x419ce0[_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20f18e([0x50,0x41,0x47])));}function _0x56c56d(){const _0x486bb1=_0x41a6d3[_0x20f18e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x486bb1||0x0==_0x486bb1[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xda2c9d}=new URL(window[_0x20f18e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x486bb1[_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xda2c9d))return!0x0;const _0x26fa1b=_0xda2c9d[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])](_0x20f18e([0x2e]));return _0x486bb1[_0x20f18e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ea221=>_0x3ea221[_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20f18e([0x2a])))[_0x20f18e([0x6d,0x61,0x70])](_0x183bdd=>_0x183bdd[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])](_0x20f18e([0x2e])))[_0x20f18e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e4454=>_0x2e4454[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x26fa1b[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20f18e([0x6d,0x61,0x70])](_0x147ec9=>Array(_0x26fa1b[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x147ec9[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20f18e([0x66,0x69,0x6c,0x6c])](_0x147ec9[0x0]===_0x20f18e([0x2a])?_0x20f18e([0x2a]):'')[_0x20f18e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x147ec9))[_0x20f18e([0x73,0x6f,0x6d,0x65])](_0x1fc87d=>_0x26fa1b[_0x20f18e([0x65,0x76,0x65,0x72,0x79])]((_0x505866,_0x2382f9)=>_0x1fc87d[_0x2382f9]===_0x505866||_0x1fc87d[_0x2382f9]===_0x20f18e([0x2a])));}function _0x1e0cc7(){return _0x2aed5&&_0x2b1768?new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e4f86,_0x27fc0a)=>{_0x2aed5[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x4e4f86,_0x27fc0a),_0x2b1768[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x1a54a1=>{_0x1a54a1!=_0x20f18e([0x56,0x61,0x6c,0x69,0x64])&&_0x4e4f86(_0x1a54a1);},_0x27fc0a);}):_0x2aed5||_0x2b1768||_0x20f18e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x411535(_0x1cc649,_0x30c0c1){return new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45cbf4=>{if(_0x489c35())return _0x45cbf4(_0x20f18e([0x56,0x61,0x6c,0x69,0x64]));_0x3ee562(),_0x22ed8e[_0x20f18e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20f18e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3923cf=!0x1;const _0x102143=_0x587400();function _0x10cbd0(_0x4b5e03){return!!_0x4b5e03&&(typeof _0x4b5e03===_0x20f18e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b5e03===_0x20f18e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b5e03[_0x20f18e([0x74,0x68,0x65,0x6e])]===_0x20f18e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b5e03[_0x20f18e([0x63,0x61,0x74,0x63,0x68])]===_0x20f18e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x525fe2(_0x4d4a47){_0x1313c0(_0x4d4a47)[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x2c6c67=>{if(!_0x2c6c67||_0x2c6c67[_0x20f18e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20f18e([0x6f,0x6b]))return _0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2fc2d5(_0xa40e65(_0x102143+_0x30c0c1))!=_0x2c6c67[_0x20f18e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20f18e([0x56,0x61,0x6c,0x69,0x64]);})[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x4c05d7=>(_0x59b836(),_0x4c05d7),()=>{const _0x491c8c=_0x21b46e();return null==_0x491c8c?(_0x59b836(),_0x20f18e([0x56,0x61,0x6c,0x69,0x64])):_0x20f18e(_0x3ef368-_0x491c8c>(0x288e4f1e^_0x266f3a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x45cbf4)[_0x20f18e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45cbf4(_0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d0b75=0xcb4259e^_0x266f3a;function _0x59b836(){const _0x10868d=_0x20f18e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fc2d5(_0xa40e65(_0x1cc649)),_0x262bc9=_0x13165e(_0x2fc2d5(window[_0x20f18e([0x4d,0x61,0x74,0x68])][_0x20f18e([0x63,0x65,0x69,0x6c])](_0x3ef368/_0x4d0b75)));window[_0x20f18e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20f18e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10868d,_0x262bc9);}function _0x21b46e(){const _0x13226d=_0x20f18e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fc2d5(_0xa40e65(_0x1cc649)),_0x39048d=window[_0x20f18e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20f18e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13226d);return _0x39048d?window[_0x20f18e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13165e(_0x39048d),0x10)*_0x4d0b75:null;}function _0x1313c0(_0x5a7d82){return new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fccc8,_0x2becd4)=>{_0x5a7d82[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x4fccc8,_0x2becd4),window[_0x20f18e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2becd4,0xc831fde^_0x266f3a);});}}_0x22ed8e[_0x20f18e([0x6f,0x6e])](_0x20f18e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x365ed5,_0x3b87cc)=>{if(_0x3b87cc[0x0]!=_0x1cc649)return _0x45cbf4(_0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b87cc[0x1]={..._0x3b87cc[0x1],[_0x20f18e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x102143};},{[_0x20f18e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20f18e([0x68,0x69,0x67,0x68])}),_0x22ed8e[_0x20f18e([0x6f,0x6e])](_0x20f18e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3185ec=>{_0x10cbd0(_0x3185ec[_0x20f18e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3923cf=!0x0,_0x525fe2(_0x3185ec[_0x20f18e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20f18e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20f18e([0x6c,0x6f,0x77])}),_0x27432f[_0x20f18e([0x74,0x68,0x65,0x6e])](()=>{_0x3923cf||_0x45cbf4(_0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x489c35(){return _0x22ed8e[_0x20f18e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20f18e([0x76,0x69,0x65,0x77])][_0x20f18e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20f18e([0x61,0x75,0x74,0x6f]);}function _0x3ee562(){_0x22ed8e[_0x20f18e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20f18e([0x76,0x69,0x65,0x77])][_0x20f18e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20f18e([0x61,0x75,0x74,0x6f]);}}function _0x313ce5(_0x24d27e){const _0x5892b1=[new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dff1c=>setTimeout(_0x5dff1c,0xc8bf5d2^_0x266f3a)),_0x27432f[_0x20f18e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cb33b=>{let _0x57dbbf=0x0;_0x22ed8e[_0x20f18e([0x6d,0x6f,0x64,0x65,0x6c])][_0x20f18e([0x6f,0x6e])](_0x20f18e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f6496,_0x40ccba)=>{_0x40ccba[0x0][_0x20f18e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x57dbbf++,_0x57dbbf==(0xc82cef6^_0x266f3a)&&(_0x4cb33b(),_0x3f6496[_0x20f18e([0x6f,0x66,0x66])]());});}))];return window[_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20f18e([0x72,0x61,0x63,0x65])](_0x5892b1)[_0x20f18e([0x74,0x68,0x65,0x6e])](()=>_0x24d27e);}async function _0x387d87(){await _0x27432f,_0x22ed8e[_0x20f18e([0x6d,0x6f,0x64,0x65,0x6c])][_0x20f18e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d25d8,_0x22ed8e[_0x20f18e([0x6d,0x6f,0x64,0x65,0x6c])][_0x20f18e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d25d8,_0x22ed8e[_0x20f18e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20f18e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e5030(_0x142081){const _0x2e8f9f=_0x368ac9();_0x22ed8e[_0x2e8f9f]=_0x20f18e([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x142081,_0x142081!=_0x20f18e([0x56,0x61,0x6c,0x69,0x64])&&_0x387d87();}function _0x368ac9(){const _0x5d1203=window[_0x20f18e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20f18e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20f18e([0x6e,0x6f,0x77])]())[_0x20f18e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20f18e([0x2e]),'');let _0x3b2b3a=_0x20f18e([0x49]);for(let _0x1dc41a=0x0;_0x1dc41a<_0x5d1203[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1dc41a+=0x2){let _0x32d2da=window[_0x20f18e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d1203[_0x20f18e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1dc41a,_0x1dc41a+0x2));_0x32d2da>=_0x14478e[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32d2da-=_0x14478e[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b2b3a+=_0x14478e[_0x32d2da];}return _0x3b2b3a;}function _0x3601a1(){const _0x5de764=_0x9a1051[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])](_0x20f18e([0x2e]));if(0x3!=_0x5de764[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x11d5e2(_0x5de764[0x1]);function _0x11d5e2(_0x4e5443){const _0x55330d=_0x58349f(_0x4e5443);return _0x55330d&&_0x5bdb78()?_0x55330d:null;function _0x5bdb78(){const _0x2024e7=_0x55330d[_0x20f18e([0x6a,0x74,0x69])],_0x35e9b5=window[_0x20f18e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2024e7[_0x20f18e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2024e7[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x250875={..._0x55330d,[_0x20f18e([0x6a,0x74,0x69])]:_0x2024e7[_0x20f18e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2024e7[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x250875[_0x20f18e([0x76,0x63])],_0xa40e65(_0x250875)==_0x35e9b5;}}}async function _0x2044b9(){let _0x599df9=!0x0;try{const _0x3d3279=_0x9a1051[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])](_0x20f18e([0x2e])),[_0x21284c,_0x2efad0,_0x3b876b]=_0x3d3279;return _0x3f614b(_0x21284c),await _0xa6cdea(_0x21284c,_0x2efad0,_0x3b876b),_0x599df9;}catch{return!0x1;}function _0x3f614b(_0x46baac){const _0x1a39a4=_0x58349f(_0x46baac);_0x1a39a4&&_0x1a39a4[_0x20f18e([0x61,0x6c,0x67])]==_0x20f18e([0x45,0x53,0x32,0x35,0x36])||(_0x599df9=!0x1);}async function _0xa6cdea(_0x1d077a,_0x160042,_0x391ec8){const _0x258e7c=window[_0x20f18e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20f18e([0x66,0x72,0x6f,0x6d])](_0xa0a681(_0x391ec8),_0x238634=>_0x238634[_0x20f18e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xeb6d6f=new window[(_0x20f18e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20f18e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d077a+_0x20f18e([0x2e])+_0x160042),_0x592e07=window[_0x20f18e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20f18e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x592e07)return;const _0x46103e=await _0x592e07[_0x20f18e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20f18e([0x6a,0x77,0x6b]),_0x19104,{[_0x20f18e([0x6e,0x61,0x6d,0x65])]:_0x20f18e([0x45,0x43,0x44,0x53,0x41]),[_0x20f18e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20f18e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20f18e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x592e07[_0x20f18e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20f18e([0x6e,0x61,0x6d,0x65])]:_0x20f18e([0x45,0x43,0x44,0x53,0x41]),[_0x20f18e([0x68,0x61,0x73,0x68])]:{[_0x20f18e([0x6e,0x61,0x6d,0x65])]:_0x20f18e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46103e,_0x258e7c,_0xeb6d6f)||(_0x599df9=!0x1);}}function _0x58349f(_0x447b77){return _0x447b77[_0x20f18e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20f18e([0x65,0x79]))?JSON[_0x20f18e([0x70,0x61,0x72,0x73,0x65])](_0xa0a681(_0x447b77)):null;}function _0xa0a681(_0x384e7e){return window[_0x20f18e([0x61,0x74,0x6f,0x62])](_0x384e7e[_0x20f18e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20f18e([0x2b]))[_0x20f18e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20f18e([0x2f])));}function _0xa40e65(_0x109d06){let _0x5d41b7=0x1505;function _0x33b7c0(_0x1d5442){for(let _0x192b37=0x0;_0x192b37<_0x1d5442[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x192b37++){const _0x44eb02=_0x1d5442[_0x20f18e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x192b37);_0x5d41b7=(_0x5d41b7<<0x5)+_0x5d41b7+_0x44eb02,_0x5d41b7&=_0x5d41b7;}}function _0x168ed0(_0x2098a8){Array[_0x20f18e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2098a8)?_0x2098a8[_0x20f18e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x168ed0):_0x2098a8&&typeof _0x2098a8==_0x20f18e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20f18e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2098a8)[_0x20f18e([0x73,0x6f,0x72,0x74])]()[_0x20f18e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fba6,_0x44972c])=>{_0x33b7c0(_0x4fba6),_0x168ed0(_0x44972c);}):_0x33b7c0(window[_0x20f18e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2098a8));}return _0x168ed0(_0x109d06),_0x5d41b7>>>0x0;}function _0x2fc2d5(_0x3a6998){return _0x3a6998[_0x20f18e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20f18e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20f18e([0x30]));}function _0x13165e(_0xb9f2df){return _0xb9f2df[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20f18e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20f18e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d25d8(){}function _0x20f18e(_0x4f75f3){return _0x4f75f3['map'](_0x2960e8=>String['fromCharCode'](_0x2960e8))['join']('');}_0x5e5030(await _0x126adf());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x128497=this['editor'],_0x55d92a=_0x128497['editing']['view'],_0xfd5e59=this['_getAttachedDomRoot']();if(!_0xfd5e59||0x0===_0xfd5e59['childElementCount'])return void _0x128497['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x12b1ac,pageHeight:_0x5b22a4}=_0x128497['config']['get']('pagination'),{top:_0x171ff1,left:_0x40e737,bottom:_0x30f893,right:_0x540520}=this['_configuredPaddings'];this['_pagesContainer']=new _0x1b89ce(_0x128497['locale']);const _0x529e80=this['_pagesContainer'];_0x529e80['set']('class',''),_0x529e80['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x12b1ac,'width':_0x12b1ac,'height':'calc(\x20'+_0x5b22a4+'\x20-\x20'+_0x171ff1+'\x20-\x20'+_0x30f893+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x540520+'\x200\x20'+_0x40e737,'columnGap':'calc('+_0x40e737+'\x20+\x20'+_0x540520+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x529e80['bindTemplate']['to']('class')}}),_0x529e80['render'](),_0xfd5e59['parentNode']['insertBefore'](_0x529e80['element'],_0xfd5e59['nextSibling']),this['listenTo'](_0x55d92a,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x155f7a of this['editor']['editing']['view']['domRoots']['values']())if(_0x155f7a['ownerDocument']['body']['contains'](_0x155f7a))return _0x155f7a;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x31da3c=this['editor']['editing']['view'],_0x5abbc3=this['_pagesContainer'],_0x5b9340=this['_getAttachedDomRoot']();if(!_0x5b9340)return Promise['resolve']();for(_0x5abbc3['class']=['ck-reset','ck-pagination-view',..._0x5b9340['classList']]['join']('\x20');_0x5abbc3['element']['firstChild'];)_0x5abbc3['element']['firstChild']['remove']();const _0x5d1006=Array['from'](_0x31da3c['domRoots']);_0x5d1006['sort'](([,_0x23a639],[,_0x397012])=>_0x23a639['compareDocumentPosition'](_0x397012)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x2f1f17,_0x13e8fd]of _0x5d1006){const _0x14181f=_0x13e8fd['cloneNode'](!0x0);'attributeStyleMap'in _0x14181f&&_0x14181f['attributeStyleMap']['clear'](),_0x14181f['dataset']['rootName']=_0x2f1f17,_0x14181f['className']='ck-content\x20ck-pagination_enabled',_0x14181f['removeAttribute']('id'),_0x14181f['tabIndex']=-0x1,_0x5abbc3['element']['append'](_0x14181f);}const _0x4c7b7e=Array['from'](_0x5abbc3['element']['querySelectorAll']('img'));return function(_0x170c1f){return Promise['all'](_0x170c1f['map'](_0x3aff15=>Promise['race']([k(_0x3aff15),v(0x3e8)])));}(_0x4c7b7e)['then'](()=>{for(const _0x408bfb of _0x4c7b7e['filter'](_0x398a6e=>!_0x398a6e['closest']('table')))if(_0x408bfb['offsetParent']){const _0x438611=_0x1f984f['window']['getComputedStyle'](_0x408bfb),_0x1259fa=_0x1f984f['document']['createElement']('span');for(const _0xe6b6b2 of _0x438611)_0x1259fa['style']['setProperty'](_0xe6b6b2,_0x438611[_0xe6b6b2]);_0x1259fa['style']['backgroundImage']='url(\x20'+_0x408bfb['src']+'\x20)',_0x1259fa['style']['breakInside']='avoid','PICTURE'==_0x408bfb['parentElement']?.['tagName']?_0x408bfb['parentElement']['replaceWith'](_0x1259fa):_0x408bfb['replaceWith'](_0x1259fa);}return new Promise(_0xd256e6=>_0x1f984f['window']['requestAnimationFrame'](()=>_0xd256e6()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x3518c0=this['_pagesContainer']['element'];if(!_0x3518c0['ownerDocument']['body']['contains'](_0x3518c0))return;const _0x3b245d=new _0x549341(_0x3518c0)['excludeScrollbarsAndBorders'](),_0x3428f0=Math['floor'](_0x3b245d['width']+0x64),_0x2a00df=_(_0x3518c0,Math['floor'](_0x3b245d['left']-_0x3518c0['scrollLeft']),_0x3428f0,_0x3b245d['height'])['map'](_0x558026=>this['_mapPageStarterInfoToPageBreakInfo'](_0x558026))['filter'](_0x3c6c63=>!0x1!==_0x3c6c63);_0x2a00df['every'](_0x2c6d5b=>!!_0x2c6d5b)&&(this['pageBreaks']=_0x2a00df);}['_mapPageStarterInfoToPageBreakInfo'](_0x28de29){const _0x129285=this['editor']['editing']['view'],_0x8f5553=this['editor']['editing']['mapper'],_0x1825b4=_0x129285['domConverter'],_0x49c3bf=_0x28de29['path']['shift'](),_0x4c1551=this['_pagesContainer']['element']['childNodes'][_0x49c3bf]['dataset']['rootName'],_0x5893c4=_0x129285['getDomRoot'](_0x4c1551);if(!_0x5893c4)return null;const _0x4d8e78=function(_0x1a89d6,_0x3c699b){let _0x275ac7=_0x1a89d6;for(const _0x228eab of _0x3c699b['path']){if(!_0x275ac7)return null;_0x275ac7=_0x275ac7['childNodes'][_0x228eab];}return _0x275ac7;}(_0x5893c4,_0x28de29);if(!_0x4d8e78)return null;const _0x51d7d7=_0x1825b4['domPositionToView'](_0x4d8e78,_0x28de29['textOffset']||0x0);return _0x51d7d7?'manual'==_0x28de29['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x51d7d7,_0x4d8e78):'text'==_0x28de29['type']&&_0x8f5553['toModelPosition'](_0x51d7d7)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x51d7d7,_0x4d8e78,_0x28de29['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x51d7d7,_0x4d8e78,_0x28de29['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x17aa1d,_0x17db63){const _0xd07375=this['editor']['model'],_0x3ef8c0=this['editor']['editing']['mapper']['toModelElement'](_0x17aa1d['parent']),_0x5847d5=_0xd07375['createRangeOn'](_0x3ef8c0);return new b({'type':'manual','modelRange':_0x5847d5,'domNode':_0x17db63,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x26fb9d,_0x152b56,_0x55087d){const _0x44abbd=this['editor']['model'],_0x2d3be7=this['editor']['editing']['mapper'],_0x2f3888=this['editor']['editing']['view']['domConverter'];if(_0x55087d>=_0x152b56['length'])return null;const _0x5d5c23=_0x2d3be7['toModelPosition'](_0x26fb9d),_0x47e126=_0x44abbd['createRange'](_0x5d5c23),_0xdfbae7=_0x2d3be7['findMappedViewAncestor'](_0x26fb9d),_0x2985fd=_0x2f3888['mapViewToDom'](_0xdfbae7);return new b({'type':'text','modelRange':_0x47e126,'domNode':_0x152b56,'offset':P(_0x152b56,_0x55087d,_0x2985fd)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x3cace2,_0x23cdb0,_0x32bf02){const _0x4967eb=this['editor']['model'],_0x598231=this['editor']['editing'],_0x1037f0=_0x598231['mapper'],_0x5a33a7=_0x598231['view']['domConverter'],_0x370036=_0x1037f0['findMappedViewAncestor'](_0x3cace2),_0x54d780=_0x1037f0['toModelElement'](_0x370036);if(!_0x54d780||_0x54d780['is']('element','$root'))return!0x1;const _0x4b01b3=function(_0xdcad13){const _0x53c9c7=_0xdcad13['parent'],_0x34134e=_0x53c9c7['root']['document']['model'],_0x2c6ef8=_0x53c9c7['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x1f817f=null;for(const _0xe0b5c4 of _0x2c6ef8){if(_0xe0b5c4['is']('rootElement'))return _0x1f817f;if(!_0x34134e['createPositionBefore'](_0xe0b5c4)['isTouching'](_0xdcad13))return _0x1f817f;_0x1f817f=_0xe0b5c4;}}(_0x4967eb['createPositionBefore'](_0x54d780)),_0x35e723=_0x4b01b3||_0x54d780;let _0x4cf89b=_0x1037f0['toViewElement'](_0x35e723),_0x44981e=_0x4967eb['createRangeOn'](_0x35e723);const _0x306e80=_0x4967eb['createPositionBefore'](_0x35e723)['nodeBefore'];if(_0x306e80&&_0x306e80['is']('element','imageBlock')){const _0x20be5a=_0x1037f0['toViewElement'](_0x306e80),_0xe23efa=_0x5a33a7['mapViewToDom'](_0x20be5a),_0x48f926=_0x1f984f['window']['getComputedStyle'](_0xe23efa)['float'];'left'!=_0x48f926&&'right'!=_0x48f926||(_0x44981e=_0x4967eb['createRangeOn'](_0x306e80));}for(;_0x4cf89b['parent']!==_0x4cf89b['root']&&0x0===_0x4cf89b['index'];)_0x4cf89b=_0x4cf89b['parent'];const _0x1cc76e=new _0x549341(I(_0x23cdb0)?_0x23cdb0:x(_0x23cdb0)),_0x3bf727=_0x32bf02?_0x1cc76e['height']-_0x32bf02:0x0,_0xa12572=_0x5a33a7['mapViewToDom'](_0x4cf89b),_0x5e73e8=new _0x549341(_0xa12572);return new b({'type':'element','modelRange':_0x44981e,'domNode':_0xa12572,'offset':Math['round'](_0x3bf727)||_0x370036!=y(_0x3cace2)?_0x3bf727+_0x1cc76e['top']-_0x5e73e8['top']:0x0});}get['_configuredPaddings'](){const _0x153063=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x153063);}static['_findPageStarterInfos'](_0x1aa5f6,_0x19ae8c,_0x3b8625,_0x5850f2,_0x1ff0ea){return _(_0x1aa5f6,_0x19ae8c,_0x3b8625,_0x5850f2,_0x1ff0ea);}}class b{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x403925,modelRange:_0x38517c,domNode:_0x9d8309,offset:_0x2f1275}){this['type']=_0x403925,this['modelRange']=_0x38517c,this['_domNode']=_0x9d8309,this['_offset']=_0x2f1275;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x20b3d7=new _0x549341(I(this['_domNode'])?this['_domNode']:x(this['_domNode']));return'manual'==this['type']?_0x20b3d7['top']+_0x20b3d7['height']/0x2:_0x20b3d7['top']+this['_offset'];}}function P(_0x11538b,_0x3b536c,_0x358a20){const _0x33e8c4=x(_0x11538b),_0x38ef1e=function(_0x55a5a5){const _0x24d87d=_0x1f984f['document']['createRange']();return _0x24d87d['selectNodeContents'](_0x55a5a5),_0x24d87d;}(_0x358a20);let _0x2b9269;_0x2b9269=0x0==_0x3b536c?L(_0x38ef1e['startContainer'],_0x38ef1e['startOffset'],_0x11538b['parentNode'],Array['from'](_0x11538b['parentNode']['childNodes'])['indexOf'](_0x11538b)):L(_0x38ef1e['startContainer'],_0x38ef1e['startOffset'],_0x11538b,_0x3b536c);const _0x3b04f7=L(_0x11538b,_0x3b536c,_0x38ef1e['endContainer'],_0x38ef1e['endOffset']),_0x315d4a=new _0x549341(_0x2b9269)['bottom'];return(new _0x549341(_0x3b04f7)['top']+_0x315d4a)/0x2-new _0x549341(_0x33e8c4)['top'];}function y(_0x282f64){let _0x13a2ab=_0x282f64['parent'];for(;_0x13a2ab['is']('$text')||_0x13a2ab['is']('attributeElement');)_0x13a2ab=_0x13a2ab['parent'];return _0x13a2ab;}function k(_0x1c042c){return _0x1c042c['hasAttribute']('width')&&_0x1c042c['hasAttribute']('height')?Promise['resolve']():new Promise(_0x12d24a=>{function _0x211e09(){_0x1c042c['removeEventListener']('load',_0x211e09),_0x1c042c['removeEventListener']('error',_0x211e09),_0x12d24a();}_0x1c042c['complete']?_0x12d24a():(_0x1c042c['addEventListener']('load',_0x211e09),_0x1c042c['addEventListener']('error',_0x211e09));});}function v(_0x284705){return new Promise(_0x219f88=>setTimeout(_0x219f88,_0x284705));}function x(_0xc6f0fc){const _0x6bf8a6=_0x1f984f['document']['createRange']();return _0x6bf8a6['selectNode'](_0xc6f0fc),_0x6bf8a6;}function N(_0x3180e2,_0x1c3a40,_0x26a543){const _0x381ccc=_0x1f984f['document']['createRange']();return _0x381ccc['setStart'](_0x3180e2,_0x1c3a40),_0x381ccc['setEnd'](_0x3180e2,_0x26a543),_0x381ccc;}function L(_0x47f76e,_0xee7220,_0x16fbfd,_0x19e7e0){const _0x401880=_0x1f984f['document']['createRange']();return _0x401880['setStart'](_0x47f76e,_0xee7220),_0x401880['setEnd'](_0x16fbfd,_0x19e7e0),_0x401880;}function _(_0x33e215,_0x8dc8e7,_0xc6ef4f,_0x421f73,_0x1e98d2){const _0x4c12e2=[];for(const [_0x7c27fb,_0x1fb31c]of _0x33e215['childNodes']['entries']()){let _0x23edfa=[];I(_0x1fb31c)&&_0x1fb31c['offsetParent']&&['static','relative']['includes'](_0x1f984f['window']['getComputedStyle'](_0x1fb31c)['position'])?_0x23edfa=S(_0x1fb31c,_0x7c27fb,_0x8dc8e7,_0xc6ef4f,_0x421f73,_0x1e98d2):O(_0x1fb31c)&&(_0x23edfa=E(_0x1fb31c,_0x7c27fb,_0x8dc8e7,_0xc6ef4f,_0x1e98d2)),_0x23edfa['length']&&(_0x4c12e2['push'](..._0x23edfa),_0x8dc8e7+=_0x23edfa['length']*_0xc6ef4f,_0x1e98d2=!0x1);}return _0x4c12e2;}function S(_0xf286f8,_0x30382e,_0x2f2629,_0x236e1c,_0x22e571,_0x4d7aef){const _0x471ceb=[];var _0x9005b0;if((_0x9005b0=_0xf286f8['previousSibling'])&&I(_0x9005b0)&&Boolean(_0x9005b0['classList']['contains']('page-break')||_0x9005b0['closest']('.page-break'))&&(_0x471ceb['push']({'type':'manual','offset':0x0,'path':[_0x30382e-0x1]}),_0x4d7aef=!0x0),'table-row'==_0x1f984f['window']['getComputedStyle'](_0xf286f8)['display']){let _0x40dc80=0x0,_0x482189=!0x1;for(const _0x453060 of _0xf286f8['getClientRects']())_0x40dc80+=_0x453060['height'],_0x453060['left']>=_0x2f2629&&(_0x482189=!0x0);if(_0x40dc80<_0x22e571&&_0x482189)return _0x4d7aef||_0x471ceb['push']({'type':'element','offset':0x0,'path':[_0x30382e]}),_0x471ceb;}const _0x1297d2=_0xf286f8['closest']('figure.image');if(_0x1297d2&&function(_0x1aa0c7){let _0x42dc17=!0x1;const _0x5081ab=_0x1aa0c7['parentElement'],_0x46d673=_0x5081ab['dataset']['rootName'],_0x4bde3f=_0x1aa0c7['nextElementSibling'],_0x4ae85d=_0x1aa0c7['previousElementSibling'],_0x51b495=_0x4bde3f&&_0x1f984f['window']['getComputedStyle'](_0x4bde3f)['float'],_0x5d3524=_0x4bde3f&&'ck-fake-selection-container'===_0x4bde3f['className'];!_0x46d673||_0x4bde3f||_0x4ae85d||(_0x42dc17=!0x0),_0x46d673&&!_0x4ae85d&&_0x5d3524&&(_0x42dc17=!0x0),_0x46d673&&!_0x4ae85d&&'none'!==_0x51b495&&(_0x42dc17=!0x0);if(_0x42dc17)return!0x1;return!0x0;}(_0x1297d2)){const _0x4ca3cb=_0x1f984f['window']['getComputedStyle'](_0x1297d2)['float'];if('left'==_0x4ca3cb||'right'==_0x4ca3cb)return _0x471ceb;}const _0x34ab35=_(_0xf286f8,_0x2f2629,_0x236e1c,_0x22e571,_0x4d7aef);if(_0x34ab35['length']){for(const _0x3d72c5 of _0x34ab35)_0x471ceb['push']({'type':_0x3d72c5['type'],'offset':_0x3d72c5['offset'],'textOffset':_0x3d72c5['textOffset'],'path':[_0x30382e,..._0x3d72c5['path']]}),_0x2f2629+=_0x236e1c,_0x4d7aef=!0x1;return _0x471ceb;}return _0x471ceb['push'](...function(_0x3d7dc7,_0x344288,_0x18ec89,_0x290a6f,_0x158622){const _0x134105=[];if('table-cell'==_0x1f984f['window']['getComputedStyle'](_0x3d7dc7)['display'])return[];const _0x267670=[];for(const _0x1f2760 of _0x3d7dc7['getClientRects']())if(_0x1f2760['left']>=_0x18ec89){for(const _0x14be4c of _0x267670)_0x14be4c['height']+=_0x1f2760['height'];_0x267670['push']({'height':_0x1f2760['height']}),_0x18ec89+=_0x290a6f;}for(const _0x1ee4d8 of _0x267670)_0x158622||_0x134105['push']({'type':'element','offset':_0x1ee4d8['height'],'textOffset':0x0,'path':[_0x344288]}),_0x158622=!0x1;return _0x134105;}(_0xf286f8,_0x30382e,_0x2f2629,_0x236e1c,_0x4d7aef)),_0x471ceb;}function E(_0x3b6891,_0x244985,_0xe47f38,_0x40c6f8,_0x2ce3b2){const _0x264faa=x(_0x3b6891),_0x436c40=[];let _0x5c67d3=0x0;for(const _0x184377 of _0x264faa['getClientRects']())if(_0x184377['left']>=_0xe47f38){const _0x10c861=R(_0x3b6891,_0x5c67d3,_0xe47f38,_0x40c6f8);_0x2ce3b2||_0x436c40['push']({'type':'text','path':[_0x244985],'textOffset':_0x10c861}),_0x5c67d3=_0x10c861,_0xe47f38+=_0x40c6f8,_0x2ce3b2=!0x1;}return _0x436c40;}function R(_0x4b2d44,_0x79abaa,_0xfc3b4,_0x207c09){let _0x16b697=_0x79abaa,_0x37c74a=_0x4b2d44['length'];for(;_0x37c74a-_0x16b697>0x1;){const _0x1b33ca=Math['ceil']((_0x16b697+_0x37c74a)/0x2);K(N(_0x4b2d44,_0x16b697,_0x1b33ca),_0xfc3b4,_0x207c09)?_0x37c74a=_0x1b33ca:_0x16b697=_0x1b33ca;}return _0x16b697;}function K(_0x5a9b7e,_0x2b58da,_0x1ab3a5){for(const _0x2617ec of _0x5a9b7e['getClientRects']())if(_0x2617ec['left']>=_0x2b58da&&_0x2617ec['left']<_0x2b58da+_0x1ab3a5)return!0x0;return!0x1;}function I(_0x19246a){return _0x19246a['nodeType']==Node['ELEMENT_NODE'];}function O(_0x577778){return _0x577778['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
+ _0xbc7100('px');class T extends _0x1b89ce{constructor(){super();const _0x4e9809=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x4e9809['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x4e9809['if']('isVisible','ck-hidden',_0x38299f=>!_0x38299f)],'style':{'left':_0x4e9809['to']('left',_0x4ce743=>B(_0x4ce743)),'top':_0x4e9809['to']('top',_0x2953e2=>B(_0x2953e2)),'width':_0x4e9809['to']('width',_0x37f8ac=>B(_0x37f8ac))}}});}}class A{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x522166){this['_viewCollection']=_0x522166['ui']['view']['body'];}['destroy'](){for(const _0xc61c0 of this['_hiddenLines'])_0xc61c0['destroy']();}['cleanLines'](){for(const _0x40fdd7 of this['_visibleLines'])_0x40fdd7['isVisible']=!0x1,this['_hiddenLines']['add'](_0x40fdd7);this['_visibleLines']['clear']();}['showLine'](_0x1e1c97,_0x37e263,_0x1587a4,_0x2bfd9a){let _0x3b8e48;this['_hiddenLines']['size']?(_0x3b8e48=_0xf42c5a(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x3b8e48)):_0x3b8e48=new T(),_0x3b8e48['set']({'pageNumber':_0x2bfd9a,'left':_0x1e1c97,'top':_0x37e263,'width':_0x1587a4}),_0x3b8e48['isVisible']=!0x0,this['_viewCollection']['has'](_0x3b8e48)||this['_viewCollection']['add'](_0x3b8e48),this['_visibleLines']['add'](_0x3b8e48);}['setViewCollection'](_0x79cf7b){for(const _0x59c424 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x59c424)&&this['_viewCollection']['remove'](_0x59c424);this['_viewCollection']=_0x79cf7b;}}const D='ck-pagination_enabled';class $ extends _0xdb54e1{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new A(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](D),this['on']('change:isEnabled',(_0xf1ba7d,_0x2d21f6,_0x2cab3a)=>{_0x2cab3a||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x2cab3a);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x1cc357){if(!this['isEnabled'])return;const _0x499093=_0x1cc357>0x1?this['_getPageBreakLineOffset'](_0x1cc357-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x499093-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x5dfeed['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x7b1502=this['editor'],_0x25f12a=this['_getAttachedDomRoot']();_0x25f12a?(this['_scrollableEditingRootDomAncestor']&&_0x7b1502['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x5e1931){let _0x2ada2c=_0x5e1931;do{_0x2ada2c=_0x2ada2c['parentElement'];const _0x54f677=_0x1f984f['window']['getComputedStyle'](_0x2ada2c)['overflowY'];if('auto'==_0x54f677||'scroll'==_0x54f677)break;}while('BODY'!=_0x2ada2c['tagName']);return _0x2ada2c;}(_0x25f12a),_0x7b1502['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x570fd7(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x7b1502['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x4f7fdc=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x4f7fdc['ui']['view']['listenTo'](_0x1f984f['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x4f7fdc['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x7eafab of this['editor']['editing']['view']['domRoots']['values']())if(_0x7eafab['ownerDocument']['body']['contains'](_0x7eafab))return _0x7eafab;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x28008d=this['_getAttachedDomRoot'](),_0xf10f06=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x28008d||0x1==_0xf10f06['length'])return void(this['pageNumber']=0x1);const _0xc33ac0=new _0x549341(_0x28008d)['excludeScrollbarsAndBorders'](),_0x3b1cdf=new _0x549341(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x4d6418=_0x3b1cdf['top']+_0x3b1cdf['height']/0x3;let _0x511500=!0x1;const _0x230a7e=[];for(let _0x34e71e=0x1;_0x34e71e<_0xf10f06['length'];_0x34e71e++){const _0x185c7c=this['_getPageBreakLineOffset'](_0x34e71e,_0x3b1cdf);if(!_0x185c7c)continue;const _0x20aa0b=_0x3b1cdf['top']+_0x185c7c-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x230a7e['push']({'pageOffsetTop':_0x20aa0b,'domRootRect':_0xc33ac0,'domScrollableRect':_0x3b1cdf,'pageNumber':_0x34e71e}),_0x20aa0b>_0x4d6418&&!_0x511500&&(this['pageNumber']=_0x34e71e,_0x511500=!0x0);}this['_renderPageBreakLines'](_0x230a7e),_0x511500||(this['pageNumber']=_0xf10f06['length']);}['_renderPageBreakLines'](_0x2ac9fe){const {scrollX:_0x5f2821,scrollY:_0x51af38}=_0x1f984f['window'];if(_0x2ac9fe['length']){for(const {domScrollableRect:_0x920d8d,pageOffsetTop:_0x43649f,domRootRect:_0x1e3f0d,pageNumber:_0x294f60}of _0x2ac9fe)_0x920d8d['top']<_0x43649f&&_0x43649f<_0x920d8d['bottom']&&this['linesRepository']['showLine'](_0x1e3f0d['left']+_0x5f2821,_0x43649f+_0x51af38,_0x1e3f0d['width'],_0x294f60+0x1);}}['_getPageBreakLineOffset'](_0x2c2d7a,_0x1cd66e=null){const _0x1de144=this['_paginationLookupPlugin']['pageBreaks'][_0x2c2d7a]['offset'];return _0x1de144?(_0x1cd66e||(_0x1cd66e=new _0x549341(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x1de144-_0x1cd66e['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x4799b0,_0xc8b87=!0x0){const _0xc39db=this['editor']['editing']['view'];_0xc39db['change'](_0x5e0080=>{for(const _0x532fe8 of _0xc39db['document']['roots'])_0xc8b87?_0x5e0080['addClass'](_0x4799b0,_0x532fe8):_0x5e0080['removeClass'](_0x4799b0,_0x532fe8);});}}function G(_0x31d0f5,_0x12c0f3,..._0x54a0ba){const t=_0x31d0f5['t'];switch(_0x12c0f3){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x54a0ba);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x12c0f3;}}class C extends _0xdb54e1{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[w,$];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x2a9448=this['editor']['plugins']['get']('Pagination'),_0xc16144=this['editor']['plugins']['get'](w),_0x199a49=this['editor']['plugins']['get']($);this['bind']('isEnabled')['to'](_0x2a9448),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x199a49),this['listenTo'](_0xc16144,'change:pageBreaks',(_0x34f33d,_0x449404,_0x15d722,_0x119486)=>{this['totalPages']=_0x15d722['length'],this['_updatePageBreakMarkers'](_0x15d722,_0x119486);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b5991=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d56e7;for(const _0x4f751b in _0x1b5991){const _0x4cedcf=_0x4f751b,_0x47a97d=_0x1b5991[_0x4cedcf];if('paginationLicenseKeyValid'==_0x47a97d||'paginationLicenseKeyInvalid'==_0x47a97d||'paginationLicenseKeyExpired'==_0x47a97d||'paginationLicenseKeyDomainLimit'==_0x47a97d||'paginationLicenseKeyNotAllowed'==_0x47a97d||'paginationLicenseKeyEvaluationLimit'==_0x47a97d||'paginationLicenseKeyUsageLimit'==_0x47a97d){delete _0x1b5991[_0x4cedcf],_0x1d56e7=_0x47a97d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x1d56e7&&_0x1b5991['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x1d56e7&&_0x1b5991['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x1d56e7&&_0x1b5991['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x1d56e7&&_0x1b5991['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x1d56e7&&_0x1b5991['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x1d56e7&&_0x1b5991['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x48ced6){if(!this['isEnabled'])return;this['editor']['plugins']['get']($)['scrollToPage'](this['_validatePageNumber'](_0x48ced6));}['moveSelectionToPage'](_0x11bd6e){if(!this['isEnabled'])return;const _0xf2168=this['editor'],_0x43cc82=this['editor']['plugins']['get'](w)['pageBreaks'][_0x11bd6e-0x1];_0x43cc82&&_0xf2168['model']['change'](_0x395de9=>{switch(_0x43cc82['type']){case'manual':{const _0x48a135=_0xf2168['model']['schema']['getNearestSelectionRange'](_0x43cc82['modelRange']['end'],'forward');_0x395de9['setSelection'](_0x48a135);break;}case'element':{const _0x31a66c=_0xf2168['model']['schema']['getNearestSelectionRange'](_0x43cc82['modelRange']['start'],'forward');_0x395de9['setSelection'](_0x31a66c);break;}case'text':{const _0x198403=_0x43cc82['modelRange']['start'];if(_0x198403['textNode']&&'\x20'===_0x198403['textNode']['data'][_0x198403['offset']]){const _0x4d94d7=_0x395de9['createPositionAt'](_0x198403['parent'],_0x198403['offset']+0x1);_0x395de9['setSelection'](_0x4d94d7);}else _0x395de9['setSelection'](_0x43cc82['modelRange']);}}_0xf2168['editing']['view']['focus']();});}['goToNextPage'](){const _0x1adde3=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x1adde3),this['scrollToPage'](_0x1adde3);}['goToPreviousPage'](){const _0x527cd7=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x527cd7),this['scrollToPage'](_0x527cd7);}['_updatePageBreakMarkers'](_0x345ee9,_0x281163){const _0x9c581=this['editor']['model'];this['isEnabled']&&_0x9c581['change'](_0x1e94e5=>{for(let _0x37ba6c=0x1;_0x37ba6c<_0x345ee9['length'];_0x37ba6c++){const _0x2096a1=_0x345ee9[_0x37ba6c]['modelRange'],_0x2ab440='pagination:'+(_0x37ba6c+0x1);_0x9c581['markers']['has'](_0x2ab440)?_0x1e94e5['updateMarker'](_0x2ab440,{'range':_0x2096a1}):_0x1e94e5['addMarker'](_0x2ab440,{'range':_0x2096a1,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x21e2b4=_0x345ee9['length'];_0x21e2b4<_0x281163['length'];_0x21e2b4++){const _0x23b72a='pagination:'+(_0x21e2b4+0x1);_0x9c581['markers']['has'](_0x23b72a)&&_0x1e94e5['removeMarker'](_0x23b72a);}});}['_setUpDataDowncastConversion'](){const _0x4a7fa1='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x3c2dd5=>{_0x3c2dd5['on']('addMarker:'+_0x4a7fa1,(_0x144f89,{markerRange:_0x36e62c,markerName:_0x40f7a1},_0x13ff45)=>{if(!_0x13ff45['options']['pagination'])return;if(!_0x13ff45['consumable']['consume'](_0x36e62c,_0x144f89['name']))return;const _0x4314f5=_0x36e62c['getContainedElement']();let _0x186887=_0x4314f5?_0x13ff45['mapper']['toViewElement'](_0x4314f5):null;if(!_0x186887){const _0x2fefce=_0x36e62c['start'];if(_0x13ff45['schema']['checkChild'](_0x2fefce,'$text')){const _0x129e61=_0x13ff45['mapper']['toViewPosition'](_0x2fefce);_0x186887=_0x13ff45['writer']['createContainerElement']('span'),_0x186887['getFillerOffset']=()=>null,_0x13ff45['writer']['insert'](_0x129e61,_0x186887);}else{const _0x690377=_0x2fefce['nodeAfter'];_0x186887=_0x13ff45['mapper']['toViewElement'](_0x690377);}}for(;_0x186887['parent']!==_0x186887['root']&&0x0===_0x186887['index'];)_0x186887=_0x186887['parent'];const _0x469bd8=_0x40f7a1['substring'](0xb);_0x186887['hasClass']('page-break')||(_0x13ff45['writer']['setStyle']('page-break-before','always',_0x186887),_0x13ff45['writer']['setAttribute']('data-pagination-page',_0x469bd8,_0x186887),_0x13ff45['mapper']['bindElementToMarker'](_0x186887,_0x40f7a1)),_0x144f89['stop']();});});}['_setupKeystrokes'](){const _0x8b19f0=this['editor'];_0x8b19f0['keystrokes']['set']('Shift+Pageup',(_0x516b1b,_0x21a5a3)=>{this['goToPreviousPage'](),_0x21a5a3();}),_0x8b19f0['keystrokes']['set']('Shift+Pagedown',(_0x38a6ab,_0x1e8d5c)=>{this['goToNextPage'](),_0x1e8d5c();}),_0x8b19f0['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':G(_0x8b19f0['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':G(_0x8b19f0['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':G(_0x8b19f0['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x482247){return _0x482247<0x1&&(_0x482247=0x1),_0x482247>this['totalPages']&&(_0x482247=this['totalPages']),_0x482247;}}class U extends _0x1b89ce{['pageNumberView'];constructor(_0x463443){super(_0x463443);const _0x104fe7=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x4d67b8(_0x463443,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x10b866=>G(_0x463443,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x10b866)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x353155=>!_0x353155),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x104fe7['if']('isEnabled','ck-disabled',_0x40b60b=>!_0x40b60b)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x104fe7['to']('totalPages')}]}]});}['render'](){super['render']();const _0x189bac=this['pageNumberView']['element'],_0x1ed078=_0x151d1e=>{this['pageNumberView']['element']['value']=String(_0x151d1e);};_0x1ed078(this['pageNumber']),this['on']('change:pageNumber',(_0x447aba,_0x201bf0,_0x1e104d)=>{_0x1ed078(_0x1e104d);}),this['listenTo'](_0x189bac,'keydown',(_0x2cd82a,_0x51bf1f)=>{if('ArrowUp'===_0x51bf1f['key']||'ArrowDown'===_0x51bf1f['key'])return void _0x51bf1f['stopPropagation']();if(_0x51bf1f['keyCode']!==_0x570225['enter'])return;_0x51bf1f['preventDefault']();const _0x4a8e2a=_0x189bac['valueAsNumber'];Number['isNaN'](_0x4a8e2a)?_0x189bac['value']=String(this['pageNumber']):(_0x189bac['checkValidity']()?this['pageNumber']=_0x4a8e2a:_0x4a8e2a>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x189bac['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x189bac['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x189bac,'blur',()=>{_0x189bac['value']=String(this['pageNumber']);}),this['listenTo'](_0x189bac,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class M extends _0xdb54e1{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4f4580=this['editor'],_0x354491=_0x4f4580['plugins']['get']('PaginationEditing');_0x4f4580['ui']['componentFactory']['add']('pageNavigation',_0x63fbc6=>{const _0x59723d=new U(_0x63fbc6);return _0x59723d['bind']('pageNumber')['to'](_0x354491),_0x59723d['bind']('totalPages')['to'](_0x354491),_0x59723d['bind']('isEnabled')['to'](_0x354491),_0x59723d['on']('navigation',(_0x2d1035,_0x923340)=>{_0x354491['moveSelectionToPage'](_0x923340),_0x354491['scrollToPage'](_0x923340);}),_0x59723d;}),_0x4f4580['ui']['componentFactory']['add']('nextPage',_0x5d85ef=>{const _0x3358f2=new _0x5d4a55(_0x5d85ef);return _0x3358f2['isEnabled']=!0x0,_0x3358f2['label']=G(_0x4f4580['locale'],'Go\x20to\x20next\x20page'),_0x3358f2['icon']=_0x500847,_0x3358f2['tooltip']=!0x0,_0x3358f2['keystroke']='Shift+PageDown',_0x3358f2['bind']('isEnabled')['to'](_0x354491),this['listenTo'](_0x3358f2,'execute',()=>{_0x354491['goToNextPage']();}),_0x3358f2;}),_0x4f4580['ui']['componentFactory']['add']('previousPage',_0x4818b0=>{const _0x53e879=new _0x5d4a55(_0x4818b0);return _0x53e879['isEnabled']=!0x0,_0x53e879['label']=G(_0x4f4580['locale'],'Go\x20to\x20previous\x20page'),_0x53e879['icon']=_0x3b15e5,_0x53e879['tooltip']=!0x0,_0x53e879['keystroke']='Shift+PageUp',_0x53e879['bind']('isEnabled')['to'](_0x354491),this['listenTo'](_0x53e879,'execute',()=>{_0x354491['goToPreviousPage']();}),_0x53e879;});}}class j extends _0xdb54e1{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C,M];}constructor(_0x2b39b7){super(_0x2b39b7),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x1e352c=this['editor']['plugins']['get'](C);this['bind']('pageNumber')['to'](_0x1e352c),this['bind']('totalPages')['to'](_0x1e352c),_0x5dfeed['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x432fbc){this['editor']['plugins']['get'](C)['scrollToPage'](_0x432fbc);}}export{j as Pagination,$ as PaginationRenderer};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-pagination",
3
- "version": "48.0.0-alpha.1",
3
+ "version": "48.0.0-alpha.2",
4
4
  "description": "Pagination feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,11 +21,11 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.0.0-alpha.1",
25
- "@ckeditor/ckeditor5-engine": "48.0.0-alpha.1",
26
- "@ckeditor/ckeditor5-icons": "48.0.0-alpha.1",
27
- "@ckeditor/ckeditor5-ui": "48.0.0-alpha.1",
28
- "@ckeditor/ckeditor5-utils": "48.0.0-alpha.1",
24
+ "@ckeditor/ckeditor5-core": "48.0.0-alpha.2",
25
+ "@ckeditor/ckeditor5-engine": "48.0.0-alpha.2",
26
+ "@ckeditor/ckeditor5-icons": "48.0.0-alpha.2",
27
+ "@ckeditor/ckeditor5-ui": "48.0.0-alpha.2",
28
+ "@ckeditor/ckeditor5-utils": "48.0.0-alpha.2",
29
29
  "es-toolkit": "1.45.1"
30
30
  },
31
31
  "files": [