@ckeditor/ckeditor5-pagination 48.2.0-alpha.4 → 48.2.0-alpha.5

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 _0x8bf567}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x264bc3,InputNumberView as _0x41d60,ButtonView as _0x5e59e0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x23d13e,global as _0x24414f,Rect as _0x306a11,uid as _0x3ffcba,toUnit as _0x9e043,first as _0x35e3ab,env as _0x1d5bfa,ResizeObserver as _0x3049c0,keyCodes as _0x3e0fc0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x419968}from'es-toolkit/compat';import{IconArrowDown as _0x3ee642,IconArrowUp as _0x2d1b84}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x8bf567{['_recalculatePageBreaksDebounced']=_0x419968(()=>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 _0x23d13e('pagination-config-not-found',this['editor']['config']);const _0x7605=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x7605),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x47e99b,_0x5657ce,_0x253a28)=>{_0x253a28&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x391bc9){const _0x206125=_0x1b80d9([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]),_0x33fb48=0xc82cb1e,_0x4dae25=0xc8540be^_0x33fb48,_0x33084b=window[_0x1b80d9([0x44,0x61,0x74,0x65])][_0x1b80d9([0x6e,0x6f,0x77])](),_0x1076d6=_0x391bc9[_0x1b80d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x67c44c=new window[(_0x1b80d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1714b4=>{_0x1076d6[_0x1b80d9([0x6f,0x6e,0x63,0x65])](_0x1b80d9([0x72,0x65,0x61,0x64,0x79]),_0x1714b4);}),_0x18fd91={[_0x1b80d9([0x6b,0x74,0x79])]:_0x1b80d9([0x45,0x43]),[_0x1b80d9([0x75,0x73,0x65])]:_0x1b80d9([0x73,0x69,0x67]),[_0x1b80d9([0x63,0x72,0x76])]:_0x1b80d9([0x50,0x2d,0x32,0x35,0x36]),[_0x1b80d9([0x78])]:_0x1b80d9([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]),[_0x1b80d9([0x79])]:_0x1b80d9([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]),[_0x1b80d9([0x61,0x6c,0x67])]:_0x1b80d9([0x45,0x53,0x32,0x35,0x36])},_0x41de5a=_0x1076d6[_0x1b80d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b80d9([0x67,0x65,0x74])](_0x1b80d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2ff4ed(){let _0x2411b6,_0x3d2bbe=null,_0x1fd0c6=null;try{if(_0x41de5a==_0x1b80d9([0x47,0x50,0x4c]))return _0x1b80d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2411b6=_0x4e7f77(),!_0x2411b6)return _0x1b80d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2411b6[_0x1b80d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1fd0c6=_0x3a25d9(_0x2411b6[_0x1b80d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2411b6[_0x1b80d9([0x6a,0x74,0x69])])),await _0x224d92()?_0xfc84a8()?_0x2a127d()?_0x1b80d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x187c23()?(_0x2411b6[_0x1b80d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b80d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d2bbe=_0x5e97b7(_0x1b80d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2ff6be()):_0x1b80d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b80d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b80d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1b80d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a127d(){const _0x133b37=[_0x1b80d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b80d9([0x74,0x72,0x69,0x61,0x6c])][_0x1b80d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2411b6[_0x1b80d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33084b/0x3e8:0xe10*_0x4dae25;return _0x2411b6[_0x1b80d9([0x65,0x78,0x70])]<_0x133b37;}function _0xfc84a8(){const _0x587e56=_0x2411b6[_0x1b80d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x587e56&&(!!_0x587e56[_0x1b80d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b80d9([0x2a]))||!!_0x587e56[_0x1b80d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b80d9([0x50,0x41,0x47])));}function _0x187c23(){const _0x103e41=_0x2411b6[_0x1b80d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x103e41||0x0==_0x103e41[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f2a2d}=new URL(window[_0x1b80d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x103e41[_0x1b80d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f2a2d))return!0x0;const _0x7768bf=_0x5f2a2d[_0x1b80d9([0x73,0x70,0x6c,0x69,0x74])](_0x1b80d9([0x2e]));return _0x103e41[_0x1b80d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5776b1=>_0x5776b1[_0x1b80d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b80d9([0x2a])))[_0x1b80d9([0x6d,0x61,0x70])](_0x4f19ff=>_0x4f19ff[_0x1b80d9([0x73,0x70,0x6c,0x69,0x74])](_0x1b80d9([0x2e])))[_0x1b80d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20e83b=>_0x20e83b[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7768bf[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b80d9([0x6d,0x61,0x70])](_0x4d7069=>Array(_0x7768bf[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4d7069[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b80d9([0x66,0x69,0x6c,0x6c])](_0x4d7069[0x0]===_0x1b80d9([0x2a])?_0x1b80d9([0x2a]):'')[_0x1b80d9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4d7069))[_0x1b80d9([0x73,0x6f,0x6d,0x65])](_0x4f319c=>_0x7768bf[_0x1b80d9([0x65,0x76,0x65,0x72,0x79])]((_0x5945d3,_0xe45236)=>_0x4f319c[_0xe45236]===_0x5945d3||_0x4f319c[_0xe45236]===_0x1b80d9([0x2a])));}function _0x2ff6be(){return _0x3d2bbe&&_0x1fd0c6?new window[(_0x1b80d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x570456,_0x15f67b)=>{_0x3d2bbe[_0x1b80d9([0x74,0x68,0x65,0x6e])](_0x570456,_0x15f67b),_0x1fd0c6[_0x1b80d9([0x74,0x68,0x65,0x6e])](_0x155688=>{_0x155688!=_0x1b80d9([0x56,0x61,0x6c,0x69,0x64])&&_0x570456(_0x155688);},_0x15f67b);}):_0x3d2bbe||_0x1fd0c6||_0x1b80d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a25d9(_0x468a04,_0xd8fc80){return new window[(_0x1b80d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fd021=>{if(_0x21e587())return _0x3fd021(_0x1b80d9([0x56,0x61,0x6c,0x69,0x64]));_0x3fcf46(),_0x1076d6[_0x1b80d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b80d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5898b4=!0x1;const _0x1d976d=_0x3ffcba();function _0x51a8c5(_0x31a81a){return!!_0x31a81a&&(typeof _0x31a81a===_0x1b80d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31a81a===_0x1b80d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31a81a[_0x1b80d9([0x74,0x68,0x65,0x6e])]===_0x1b80d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31a81a[_0x1b80d9([0x63,0x61,0x74,0x63,0x68])]===_0x1b80d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x591b7b(_0x3b22b0){_0x5cc778(_0x3b22b0)[_0x1b80d9([0x74,0x68,0x65,0x6e])](_0x163d2d=>{if(!_0x163d2d||_0x163d2d[_0x1b80d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b80d9([0x6f,0x6b]))return _0x1b80d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf314f8(_0x4158b9(_0x1d976d+_0xd8fc80))!=_0x163d2d[_0x1b80d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b80d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b80d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b80d9([0x74,0x68,0x65,0x6e])](_0x13ba0d=>(_0x1426de(),_0x13ba0d),()=>{const _0x53d262=_0x426cc6();return null==_0x53d262?(_0x1426de(),_0x1b80d9([0x56,0x61,0x6c,0x69,0x64])):_0x1b80d9(_0x33084b-_0x53d262>(0x288e4f1e^_0x33fb48)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b80d9([0x74,0x68,0x65,0x6e])](_0x3fd021)[_0x1b80d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3fd021(_0x1b80d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12bc9f=0xcb4259e^_0x33fb48;function _0x1426de(){const _0x2ad9e6=_0x1b80d9([0x6c,0x6c,0x63,0x74,0x2d])+_0xf314f8(_0x4158b9(_0x468a04)),_0x4fd9ae=_0x1c41d1(_0xf314f8(window[_0x1b80d9([0x4d,0x61,0x74,0x68])][_0x1b80d9([0x63,0x65,0x69,0x6c])](_0x33084b/_0x12bc9f)));window[_0x1b80d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b80d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ad9e6,_0x4fd9ae);}function _0x426cc6(){const _0x119583=_0x1b80d9([0x6c,0x6c,0x63,0x74,0x2d])+_0xf314f8(_0x4158b9(_0x468a04)),_0x3bfaec=window[_0x1b80d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b80d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x119583);return _0x3bfaec?window[_0x1b80d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c41d1(_0x3bfaec),0x10)*_0x12bc9f:null;}function _0x5cc778(_0x3ed662){return new window[(_0x1b80d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13cc64,_0x461b9d)=>{_0x3ed662[_0x1b80d9([0x74,0x68,0x65,0x6e])](_0x13cc64,_0x461b9d),window[_0x1b80d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x461b9d,0xc831fde^_0x33fb48);});}}_0x1076d6[_0x1b80d9([0x6f,0x6e])](_0x1b80d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a59f5,_0x3e157d)=>{if(_0x3e157d[0x0]!=_0x468a04)return _0x3fd021(_0x1b80d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e157d[0x1]={..._0x3e157d[0x1],[_0x1b80d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d976d};},{[_0x1b80d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b80d9([0x68,0x69,0x67,0x68])}),_0x1076d6[_0x1b80d9([0x6f,0x6e])](_0x1b80d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x297fe6=>{_0x51a8c5(_0x297fe6[_0x1b80d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5898b4=!0x0,_0x591b7b(_0x297fe6[_0x1b80d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b80d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b80d9([0x6c,0x6f,0x77])}),_0x67c44c[_0x1b80d9([0x74,0x68,0x65,0x6e])](()=>{_0x5898b4||_0x3fd021(_0x1b80d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21e587(){return _0x1076d6[_0x1b80d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b80d9([0x76,0x69,0x65,0x77])][_0x1b80d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b80d9([0x61,0x75,0x74,0x6f]);}function _0x3fcf46(){_0x1076d6[_0x1b80d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b80d9([0x76,0x69,0x65,0x77])][_0x1b80d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b80d9([0x61,0x75,0x74,0x6f]);}}function _0x5e97b7(_0x4f014d){const _0x376923=[new window[(_0x1b80d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x455ecb=>setTimeout(_0x455ecb,0xc8bf5d2^_0x33fb48)),_0x67c44c[_0x1b80d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b80d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e8718=>{let _0x6aea66=0x0;_0x1076d6[_0x1b80d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b80d9([0x6f,0x6e])](_0x1b80d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c20da,_0x425671)=>{_0x425671[0x0][_0x1b80d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6aea66++,_0x6aea66==(0xc82cef6^_0x33fb48)&&(_0x2e8718(),_0x4c20da[_0x1b80d9([0x6f,0x66,0x66])]());});}))];return window[_0x1b80d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b80d9([0x72,0x61,0x63,0x65])](_0x376923)[_0x1b80d9([0x74,0x68,0x65,0x6e])](()=>_0x4f014d);}async function _0x26dce4(){await _0x67c44c,_0x1076d6[_0x1b80d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b80d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf2ff42,_0x1076d6[_0x1b80d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b80d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf2ff42,_0x1076d6[_0x1b80d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b80d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x528ff6(_0x1d85f9){const _0x35f14b=_0x45eeff();_0x1076d6[_0x35f14b]=_0x1b80d9([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d85f9,_0x1d85f9!=_0x1b80d9([0x56,0x61,0x6c,0x69,0x64])&&_0x26dce4();}function _0x45eeff(){const _0x280d2c=window[_0x1b80d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b80d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b80d9([0x6e,0x6f,0x77])]())[_0x1b80d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b80d9([0x2e]),'');let _0xcf40fb=_0x1b80d9([0x49]);for(let _0xa77b75=0x0;_0xa77b75<_0x280d2c[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa77b75+=0x2){let _0x294136=window[_0x1b80d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x280d2c[_0x1b80d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa77b75,_0xa77b75+0x2));_0x294136>=_0x206125[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x294136-=_0x206125[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcf40fb+=_0x206125[_0x294136];}return _0xcf40fb;}function _0x4e7f77(){const _0x56d5d9=_0x41de5a[_0x1b80d9([0x73,0x70,0x6c,0x69,0x74])](_0x1b80d9([0x2e]));if(0x3!=_0x56d5d9[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d1b9e(_0x56d5d9[0x1]);function _0x1d1b9e(_0x2b3664){const _0x207d7a=_0x44bc38(_0x2b3664);return _0x207d7a&&_0xff14c0()?_0x207d7a:null;function _0xff14c0(){const _0x1493d8=_0x207d7a[_0x1b80d9([0x6a,0x74,0x69])],_0x1c2e35=window[_0x1b80d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1493d8[_0x1b80d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1493d8[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x439b0e={..._0x207d7a,[_0x1b80d9([0x6a,0x74,0x69])]:_0x1493d8[_0x1b80d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1493d8[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x439b0e[_0x1b80d9([0x76,0x63])],_0x4158b9(_0x439b0e)==_0x1c2e35;}}}async function _0x224d92(){let _0x4e5611=!0x0;try{const _0x132f97=_0x41de5a[_0x1b80d9([0x73,0x70,0x6c,0x69,0x74])](_0x1b80d9([0x2e])),[_0x3924e0,_0x2e3c1f,_0x2f210c]=_0x132f97;return _0x299ca8(_0x3924e0),await _0x29c45c(_0x3924e0,_0x2e3c1f,_0x2f210c),_0x4e5611;}catch{return!0x1;}function _0x299ca8(_0x42d0a4){const _0x1cb0af=_0x44bc38(_0x42d0a4);_0x1cb0af&&_0x1cb0af[_0x1b80d9([0x61,0x6c,0x67])]==_0x1b80d9([0x45,0x53,0x32,0x35,0x36])||(_0x4e5611=!0x1);}async function _0x29c45c(_0x22a9c8,_0x3a5f50,_0x3b52aa){const _0x4ec4b6=window[_0x1b80d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b80d9([0x66,0x72,0x6f,0x6d])](_0x58edfa(_0x3b52aa),_0x4c4acf=>_0x4c4acf[_0x1b80d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc74e86=new window[(_0x1b80d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b80d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22a9c8+_0x1b80d9([0x2e])+_0x3a5f50),_0x20d847=window[_0x1b80d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b80d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20d847)return;const _0x2329ab=await _0x20d847[_0x1b80d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b80d9([0x6a,0x77,0x6b]),_0x18fd91,{[_0x1b80d9([0x6e,0x61,0x6d,0x65])]:_0x1b80d9([0x45,0x43,0x44,0x53,0x41]),[_0x1b80d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b80d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b80d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20d847[_0x1b80d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b80d9([0x6e,0x61,0x6d,0x65])]:_0x1b80d9([0x45,0x43,0x44,0x53,0x41]),[_0x1b80d9([0x68,0x61,0x73,0x68])]:{[_0x1b80d9([0x6e,0x61,0x6d,0x65])]:_0x1b80d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2329ab,_0x4ec4b6,_0xc74e86)||(_0x4e5611=!0x1);}}function _0x44bc38(_0x1c42ff){return _0x1c42ff[_0x1b80d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b80d9([0x65,0x79]))?JSON[_0x1b80d9([0x70,0x61,0x72,0x73,0x65])](_0x58edfa(_0x1c42ff)):null;}function _0x58edfa(_0x54c1fa){return window[_0x1b80d9([0x61,0x74,0x6f,0x62])](_0x54c1fa[_0x1b80d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b80d9([0x2b]))[_0x1b80d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b80d9([0x2f])));}function _0x4158b9(_0x22ff21){let _0x5782b5=0x1505;function _0x2b71a2(_0x3019aa){for(let _0x4ca755=0x0;_0x4ca755<_0x3019aa[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ca755++){const _0x2d1b0a=_0x3019aa[_0x1b80d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ca755);_0x5782b5=(_0x5782b5<<0x5)+_0x5782b5+_0x2d1b0a,_0x5782b5&=_0x5782b5;}}function _0x5966cd(_0x55610a){Array[_0x1b80d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x55610a)?_0x55610a[_0x1b80d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5966cd):_0x55610a&&typeof _0x55610a==_0x1b80d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b80d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x55610a)[_0x1b80d9([0x73,0x6f,0x72,0x74])]()[_0x1b80d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b9873,_0xc44ff5])=>{_0x2b71a2(_0x5b9873),_0x5966cd(_0xc44ff5);}):_0x2b71a2(window[_0x1b80d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x55610a));}return _0x5966cd(_0x22ff21),_0x5782b5>>>0x0;}function _0xf314f8(_0x4dffcb){return _0x4dffcb[_0x1b80d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b80d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b80d9([0x30]));}function _0x1c41d1(_0x39e907){return _0x39e907[_0x1b80d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b80d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b80d9([0x6a,0x6f,0x69,0x6e])]('');}function _0xf2ff42(){}function _0x1b80d9(_0x4b696c){return _0x4b696c['map'](_0x4a4cb0=>String['fromCharCode'](_0x4a4cb0))['join']('');}_0x528ff6(await _0x2ff4ed());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x571b7a=this['editor'],_0x4bbce2=_0x571b7a['editing']['view'],_0x5d93fc=this['_getAttachedDomRoot']();if(!_0x5d93fc||0x0===_0x5d93fc['childElementCount'])return void _0x571b7a['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x5da225,pageHeight:_0x87f64f}=_0x571b7a['config']['get']('pagination'),{top:_0x7ee723,left:_0x513036,bottom:_0x167986,right:_0x40f7e2}=this['_configuredPaddings'];this['_pagesContainer']=new _0x264bc3(_0x571b7a['locale']);const _0x25a7ba=this['_pagesContainer'];_0x25a7ba['set']('class',''),_0x25a7ba['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x5da225,'width':_0x5da225,'height':'calc(\x20'+_0x87f64f+'\x20-\x20'+_0x7ee723+'\x20-\x20'+_0x167986+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x40f7e2+'\x200\x20'+_0x513036,'columnGap':'calc('+_0x513036+'\x20+\x20'+_0x40f7e2+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x25a7ba['bindTemplate']['to']('class')}}),_0x25a7ba['render'](),_0x5d93fc['parentNode']['insertBefore'](_0x25a7ba['element'],_0x5d93fc['nextSibling']),this['listenTo'](_0x4bbce2,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x14c7d8 of this['editor']['editing']['view']['domRoots']['values']())if(_0x14c7d8['ownerDocument']['body']['contains'](_0x14c7d8))return _0x14c7d8;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x46261f=this['editor']['editing']['view'],_0x2d4013=this['_pagesContainer'],_0x110e07=this['_getAttachedDomRoot']();if(!_0x110e07)return Promise['resolve']();for(_0x2d4013['class']=['ck-reset','ck-pagination-view',..._0x110e07['classList']]['join']('\x20');_0x2d4013['element']['firstChild'];)_0x2d4013['element']['firstChild']['remove']();const _0x4fcbf6=Array['from'](_0x46261f['domRoots']);_0x4fcbf6['sort'](([,_0x21eead],[,_0x42355c])=>_0x21eead['compareDocumentPosition'](_0x42355c)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x16b2da,_0x40702e]of _0x4fcbf6){const _0x1cddfd=_0x40702e['cloneNode'](!0x0);'attributeStyleMap'in _0x1cddfd&&_0x1cddfd['attributeStyleMap']['clear'](),_0x1cddfd['dataset']['rootName']=_0x16b2da,_0x1cddfd['className']='ck-content\x20ck-pagination_enabled',_0x1cddfd['removeAttribute']('id'),_0x1cddfd['tabIndex']=-0x1,_0x2d4013['element']['append'](_0x1cddfd);}const _0x3b6dd2=Array['from'](_0x2d4013['element']['querySelectorAll']('img'));return function(_0x454811){return Promise['all'](_0x454811['map'](_0xe45bd0=>Promise['race']([b(_0xe45bd0),k(0x3e8)])));}(_0x3b6dd2)['then'](()=>{for(const _0x4d6cf3 of _0x3b6dd2['filter'](_0x23c11b=>!_0x23c11b['closest']('table')))if(_0x4d6cf3['offsetParent']){const _0x421415=_0x24414f['window']['getComputedStyle'](_0x4d6cf3),_0x3eeff6=_0x24414f['document']['createElement']('span');for(const _0x571dce of _0x421415)_0x3eeff6['style']['setProperty'](_0x571dce,_0x421415[_0x571dce]);_0x3eeff6['style']['backgroundImage']='url(\x20'+_0x4d6cf3['src']+'\x20)',_0x3eeff6['style']['breakInside']='avoid','PICTURE'==_0x4d6cf3['parentElement']?.['tagName']?_0x4d6cf3['parentElement']['replaceWith'](_0x3eeff6):_0x4d6cf3['replaceWith'](_0x3eeff6);}return new Promise(_0x5ccfb8=>_0x24414f['window']['requestAnimationFrame'](()=>_0x5ccfb8()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x32529c=this['_pagesContainer']['element'];if(!_0x32529c['ownerDocument']['body']['contains'](_0x32529c))return;const _0x5ec802=new _0x306a11(_0x32529c)['excludeScrollbarsAndBorders'](),_0x3fcba1=Math['floor'](_0x5ec802['width']+0x64),_0x451e0b=L(_0x32529c,Math['floor'](_0x5ec802['left']-_0x32529c['scrollLeft']),_0x3fcba1,_0x5ec802['height'])['map'](_0x21ea82=>this['_mapPageStarterInfoToPageBreakInfo'](_0x21ea82))['filter'](_0x3279dc=>!0x1!==_0x3279dc);_0x451e0b['every'](_0x2c4a94=>!!_0x2c4a94)&&(this['pageBreaks']=_0x451e0b);}['_mapPageStarterInfoToPageBreakInfo'](_0x2713de){const _0x471bf2=this['editor']['editing']['view'],_0x385267=this['editor']['editing']['mapper'],_0x239808=_0x471bf2['domConverter'],_0x419f39=_0x2713de['path']['shift'](),_0x4b4f33=this['_pagesContainer']['element']['childNodes'][_0x419f39]['dataset']['rootName'],_0x284d21=_0x471bf2['getDomRoot'](_0x4b4f33);if(!_0x284d21)return null;const _0x1823c1=function(_0x118968,_0x366906){let _0x184ebe=_0x118968;for(const _0x573767 of _0x366906['path']){if(!_0x184ebe)return null;_0x184ebe=_0x184ebe['childNodes'][_0x573767];}return _0x184ebe;}(_0x284d21,_0x2713de);if(!_0x1823c1)return null;const _0x5adca6=_0x239808['domPositionToView'](_0x1823c1,_0x2713de['textOffset']||0x0);return _0x5adca6?'manual'==_0x2713de['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x5adca6,_0x1823c1):'text'==_0x2713de['type']&&_0x385267['toModelPosition'](_0x5adca6)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x5adca6,_0x1823c1,_0x2713de['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x5adca6,_0x1823c1,_0x2713de['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x476160,_0xc96065){const _0x58f3ae=this['editor']['model'],_0x2d8cf5=this['editor']['editing']['mapper']['toModelElement'](_0x476160['parent']),_0x3ab8f1=_0x58f3ae['createRangeOn'](_0x2d8cf5);return new PageBreakInfo({'type':'manual','modelRange':_0x3ab8f1,'domNode':_0xc96065,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x425c31,_0xdf46b,_0x2bd8e6){const _0x2bc356=this['editor']['model'],_0x197c90=this['editor']['editing']['mapper'],_0x38d1bc=this['editor']['editing']['view']['domConverter'];if(_0x2bd8e6>=_0xdf46b['length'])return null;const _0x292daf=_0x197c90['toModelPosition'](_0x425c31),_0xc4c962=_0x2bc356['createRange'](_0x292daf),_0x5a4bae=_0x197c90['findMappedViewAncestor'](_0x425c31),_0x45e778=_0x38d1bc['mapViewToDom'](_0x5a4bae);return new PageBreakInfo({'type':'text','modelRange':_0xc4c962,'domNode':_0xdf46b,'offset':w(_0xdf46b,_0x2bd8e6,_0x45e778)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x27f5a2,_0x232c56,_0x3cbad3){const _0x3e759e=this['editor']['model'],_0x2ee063=this['editor']['editing'],_0x2db454=_0x2ee063['mapper'],_0x5223a8=_0x2ee063['view']['domConverter'],_0x269fea=_0x2db454['findMappedViewAncestor'](_0x27f5a2),_0x46fd81=_0x2db454['toModelElement'](_0x269fea);if(!_0x46fd81||_0x46fd81['is']('rootElement'))return!0x1;const _0xb17c50=function(_0x2b95c7){const _0x2e30e6=_0x2b95c7['parent'],_0x47e3ca=_0x2e30e6['root']['document']['model'],_0x3553e4=_0x2e30e6['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0xcd706c=null;for(const _0x1dcf16 of _0x3553e4){if(_0x1dcf16['is']('rootElement'))return _0xcd706c;if(!_0x47e3ca['createPositionBefore'](_0x1dcf16)['isTouching'](_0x2b95c7))return _0xcd706c;_0xcd706c=_0x1dcf16;}}(_0x3e759e['createPositionBefore'](_0x46fd81)),_0x5e4ae6=_0xb17c50||_0x46fd81;let _0x572927=_0x2db454['toViewElement'](_0x5e4ae6),_0x15e0ea=_0x3e759e['createRangeOn'](_0x5e4ae6);const _0x23d121=_0x3e759e['createPositionBefore'](_0x5e4ae6)['nodeBefore'];if(_0x23d121&&_0x23d121['is']('element','imageBlock')){const _0x82164f=_0x2db454['toViewElement'](_0x23d121),_0x3fb2e2=_0x5223a8['mapViewToDom'](_0x82164f),_0x24c467=_0x24414f['window']['getComputedStyle'](_0x3fb2e2)['float'];'left'!=_0x24c467&&'right'!=_0x24c467||(_0x15e0ea=_0x3e759e['createRangeOn'](_0x23d121));}for(;_0x572927['parent']!==_0x572927['root']&&0x0===_0x572927['index'];)_0x572927=_0x572927['parent'];const _0x2f9a9e=new _0x306a11(S(_0x232c56)?_0x232c56:y(_0x232c56)),_0x478e73=_0x3cbad3?_0x2f9a9e['height']-_0x3cbad3:0x0,_0x36d30c=_0x5223a8['mapViewToDom'](_0x572927),_0x373931=new _0x306a11(_0x36d30c);return new PageBreakInfo({'type':'element','modelRange':_0x15e0ea,'domNode':_0x36d30c,'offset':Math['round'](_0x478e73)||_0x269fea!=P(_0x27f5a2)?_0x478e73+_0x2f9a9e['top']-_0x373931['top']:0x0});}get['_configuredPaddings'](){const _0x583ddc=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x583ddc);}static['_findPageStarterInfos'](_0x1ddf9a,_0x2294a9,_0xffc34c,_0x277f38,_0x1a39db){return L(_0x1ddf9a,_0x2294a9,_0xffc34c,_0x277f38,_0x1a39db);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x4a3e30,modelRange:_0x151203,domNode:_0x5becdd,offset:_0x18e1e3}){this['type']=_0x4a3e30,this['modelRange']=_0x151203,this['_domNode']=_0x5becdd,this['_offset']=_0x18e1e3;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x477e79=new _0x306a11(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x477e79['top']+_0x477e79['height']/0x2:_0x477e79['top']+this['_offset'];}}function w(_0x5b37c1,_0x5f2f1f,_0x518f1d){const _0x461a9a=y(_0x5b37c1),_0x10b80c=function(_0x539313){const _0x5d02fd=_0x24414f['document']['createRange']();return _0x5d02fd['selectNodeContents'](_0x539313),_0x5d02fd;}(_0x518f1d);let _0x550ce5;_0x550ce5=0x0==_0x5f2f1f?x(_0x10b80c['startContainer'],_0x10b80c['startOffset'],_0x5b37c1['parentNode'],Array['from'](_0x5b37c1['parentNode']['childNodes'])['indexOf'](_0x5b37c1)):x(_0x10b80c['startContainer'],_0x10b80c['startOffset'],_0x5b37c1,_0x5f2f1f);const _0x1ec9f6=x(_0x5b37c1,_0x5f2f1f,_0x10b80c['endContainer'],_0x10b80c['endOffset']),_0x211f3f=new _0x306a11(_0x550ce5)['bottom'];return(new _0x306a11(_0x1ec9f6)['top']+_0x211f3f)/0x2-new _0x306a11(_0x461a9a)['top'];}function P(_0x39f606){let _0xdcaa72=_0x39f606['parent'];for(;_0xdcaa72['is']('$text')||_0xdcaa72['is']('attributeElement');)_0xdcaa72=_0xdcaa72['parent'];return _0xdcaa72;}function b(_0x2b0c3b){return _0x2b0c3b['hasAttribute']('width')&&_0x2b0c3b['hasAttribute']('height')?Promise['resolve']():new Promise(_0x1eb583=>{function _0x20e5b3(){_0x2b0c3b['removeEventListener']('load',_0x20e5b3),_0x2b0c3b['removeEventListener']('error',_0x20e5b3),_0x1eb583();}_0x2b0c3b['complete']?_0x1eb583():(_0x2b0c3b['addEventListener']('load',_0x20e5b3),_0x2b0c3b['addEventListener']('error',_0x20e5b3));});}function k(_0x5d06fd){return new Promise(_0x2f119e=>setTimeout(_0x2f119e,_0x5d06fd));}function y(_0x3418f4){const _0x1d7e1c=_0x24414f['document']['createRange']();return _0x1d7e1c['selectNode'](_0x3418f4),_0x1d7e1c;}function v(_0xa2e6cc,_0x1cf241,_0x5cbb92){const _0x2035a9=_0x24414f['document']['createRange']();return _0x2035a9['setStart'](_0xa2e6cc,_0x1cf241),_0x2035a9['setEnd'](_0xa2e6cc,_0x5cbb92),_0x2035a9;}function x(_0x474d33,_0x46be81,_0x4ae690,_0x5595cd){const _0x329589=_0x24414f['document']['createRange']();return _0x329589['setStart'](_0x474d33,_0x46be81),_0x329589['setEnd'](_0x4ae690,_0x5595cd),_0x329589;}function L(_0xd04bd9,_0x4db2e8,_0x45b08d,_0x1cc276,_0x4cf4a3){const _0x181056=[];for(const [_0x278696,_0xf51f0f]of _0xd04bd9['childNodes']['entries']()){let _0x2bd99f=[];S(_0xf51f0f)&&_0xf51f0f['offsetParent']&&['static','relative']['includes'](_0x24414f['window']['getComputedStyle'](_0xf51f0f)['position'])?_0x2bd99f=N(_0xf51f0f,_0x278696,_0x4db2e8,_0x45b08d,_0x1cc276,_0x4cf4a3):I(_0xf51f0f)&&(_0x2bd99f=_(_0xf51f0f,_0x278696,_0x4db2e8,_0x45b08d,_0x4cf4a3)),_0x2bd99f['length']&&(_0x181056['push'](..._0x2bd99f),_0x4db2e8+=_0x2bd99f['length']*_0x45b08d,_0x4cf4a3=!0x1);}return _0x181056;}function N(_0x494bfd,_0x23d663,_0x23be81,_0x79c97c,_0x464f10,_0x4e5ab1){const _0x29b978=[];var _0x4d5d43;if((_0x4d5d43=_0x494bfd['previousSibling'])&&S(_0x4d5d43)&&Boolean(_0x4d5d43['classList']['contains']('page-break')||_0x4d5d43['closest']('.page-break'))&&(_0x29b978['push']({'type':'manual','offset':0x0,'path':[_0x23d663-0x1]}),_0x4e5ab1=!0x0),'table-row'==_0x24414f['window']['getComputedStyle'](_0x494bfd)['display']){let _0x3148c3=0x0,_0xd9ea36=!0x1;for(const _0x2e91c3 of _0x494bfd['getClientRects']())_0x3148c3+=_0x2e91c3['height'],_0x2e91c3['left']>=_0x23be81&&(_0xd9ea36=!0x0);if(_0x3148c3<_0x464f10&&_0xd9ea36)return _0x4e5ab1||_0x29b978['push']({'type':'element','offset':0x0,'path':[_0x23d663]}),_0x29b978;}const _0x704005=_0x494bfd['closest']('figure.image');if(_0x704005&&function(_0x2c6018){let _0x28daf6=!0x1;const _0x28a6f3=_0x2c6018['parentElement'],_0x2b25e0=_0x28a6f3['dataset']['rootName'],_0x20bbe5=_0x2c6018['nextElementSibling'],_0x4ad082=_0x2c6018['previousElementSibling'],_0x57dd1b=_0x20bbe5&&_0x24414f['window']['getComputedStyle'](_0x20bbe5)['float'],_0x1cba6b=_0x20bbe5&&'ck-fake-selection-container'===_0x20bbe5['className'];!_0x2b25e0||_0x20bbe5||_0x4ad082||(_0x28daf6=!0x0),_0x2b25e0&&!_0x4ad082&&_0x1cba6b&&(_0x28daf6=!0x0),_0x2b25e0&&!_0x4ad082&&'none'!==_0x57dd1b&&(_0x28daf6=!0x0);if(_0x28daf6)return!0x1;return!0x0;}(_0x704005)){const _0xe4b03=_0x24414f['window']['getComputedStyle'](_0x704005)['float'];if('left'==_0xe4b03||'right'==_0xe4b03)return _0x29b978;}const _0x32f121=L(_0x494bfd,_0x23be81,_0x79c97c,_0x464f10,_0x4e5ab1);if(_0x32f121['length']){for(const _0x593878 of _0x32f121)_0x29b978['push']({'type':_0x593878['type'],'offset':_0x593878['offset'],'textOffset':_0x593878['textOffset'],'path':[_0x23d663,..._0x593878['path']]}),_0x23be81+=_0x79c97c,_0x4e5ab1=!0x1;return _0x29b978;}return _0x29b978['push'](...function(_0x57f4ab,_0x1e6c87,_0x36eaf3,_0x24efb7,_0x3d5b4c){const _0x586aa7=[];if('table-cell'==_0x24414f['window']['getComputedStyle'](_0x57f4ab)['display'])return[];const _0xdd943d=[];for(const _0x179667 of _0x57f4ab['getClientRects']())if(_0x179667['left']>=_0x36eaf3){for(const _0x5560af of _0xdd943d)_0x5560af['height']+=_0x179667['height'];_0xdd943d['push']({'height':_0x179667['height']}),_0x36eaf3+=_0x24efb7;}for(const _0x3a896f of _0xdd943d)_0x3d5b4c||_0x586aa7['push']({'type':'element','offset':_0x3a896f['height'],'textOffset':0x0,'path':[_0x1e6c87]}),_0x3d5b4c=!0x1;return _0x586aa7;}(_0x494bfd,_0x23d663,_0x23be81,_0x79c97c,_0x4e5ab1)),_0x29b978;}function _(_0x3cc5b7,_0x5c3008,_0x4bcb33,_0x4442ae,_0x133d71){const _0x597194=y(_0x3cc5b7),_0x5c8bed=[];let _0x24aabe=0x0;for(const _0x45f0bf of _0x597194['getClientRects']())if(_0x45f0bf['left']>=_0x4bcb33){const _0x55c5fb=R(_0x3cc5b7,_0x24aabe,_0x4bcb33,_0x4442ae);_0x133d71||_0x5c8bed['push']({'type':'text','path':[_0x5c3008],'textOffset':_0x55c5fb}),_0x24aabe=_0x55c5fb,_0x4bcb33+=_0x4442ae,_0x133d71=!0x1;}return _0x5c8bed;}function R(_0x58ca48,_0xd547a2,_0x5738ad,_0x1f07d1){let _0x19b8f5=_0xd547a2,_0x44071c=_0x58ca48['length'];for(;_0x44071c-_0x19b8f5>0x1;){const _0x196875=Math['ceil']((_0x19b8f5+_0x44071c)/0x2);E(v(_0x58ca48,_0x19b8f5,_0x196875),_0x5738ad,_0x1f07d1)?_0x44071c=_0x196875:_0x19b8f5=_0x196875;}return _0x19b8f5;}function E(_0x40f272,_0x5c70f6,_0x1614a4){for(const _0x535b2f of _0x40f272['getClientRects']())if(_0x535b2f['left']>=_0x5c70f6&&_0x535b2f['left']<_0x5c70f6+_0x1614a4)return!0x0;return!0x1;}function S(_0x68e25b){return _0x68e25b['nodeType']==Node['ELEMENT_NODE'];}function I(_0x552f0c){return _0x552f0c['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
- _0x9e043('px');class LineView extends _0x264bc3{constructor(){super();const _0x39027b=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x39027b['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x39027b['if']('isVisible','ck-hidden',_0x10dd17=>!_0x10dd17)],'style':{'left':_0x39027b['to']('left',_0x4debdf=>B(_0x4debdf)),'top':_0x39027b['to']('top',_0x5538dc=>B(_0x5538dc)),'width':_0x39027b['to']('width',_0x2bc2f6=>B(_0x2bc2f6))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x1f79d1){this['_viewCollection']=_0x1f79d1['ui']['view']['body'];}['destroy'](){for(const _0x2d3153 of this['_hiddenLines'])_0x2d3153['destroy']();}['cleanLines'](){for(const _0x9ff772 of this['_visibleLines'])_0x9ff772['isVisible']=!0x1,this['_hiddenLines']['add'](_0x9ff772);this['_visibleLines']['clear']();}['showLine'](_0x20e257,_0xf59aed,_0x5be043,_0x58852a){let _0x13cc0e;this['_hiddenLines']['size']?(_0x13cc0e=_0x35e3ab(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x13cc0e)):_0x13cc0e=new LineView(),_0x13cc0e['set']({'pageNumber':_0x58852a,'left':_0x20e257,'top':_0xf59aed,'width':_0x5be043}),_0x13cc0e['isVisible']=!0x0,this['_viewCollection']['has'](_0x13cc0e)||this['_viewCollection']['add'](_0x13cc0e),this['_visibleLines']['add'](_0x13cc0e);}['setViewCollection'](_0x51b9df){for(const _0x312808 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x312808)&&this['_viewCollection']['remove'](_0x312808);this['_viewCollection']=_0x51b9df;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x8bf567{['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 LinesRepository(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'](K),this['on']('change:isEnabled',(_0x181b0e,_0x5597a6,_0xbdf483)=>{_0xbdf483||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0xbdf483);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x34c406){if(!this['isEnabled'])return;const _0x53745a=_0x34c406>0x1?this['_getPageBreakLineOffset'](_0x34c406-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x53745a-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x1d5bfa['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x358ccb=this['editor'],_0x93ee3f=this['_getAttachedDomRoot']();_0x93ee3f?(this['_scrollableEditingRootDomAncestor']&&_0x358ccb['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x5d44fe){let _0x4daf84=_0x5d44fe;do{_0x4daf84=_0x4daf84['parentElement'];const _0x79722a=_0x24414f['window']['getComputedStyle'](_0x4daf84)['overflowY'];if('auto'==_0x79722a||'scroll'==_0x79722a)break;}while('BODY'!=_0x4daf84['tagName']);return _0x4daf84;}(_0x93ee3f),_0x358ccb['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x3049c0(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x358ccb['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x2ba40d=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x2ba40d['ui']['view']['listenTo'](_0x24414f['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x2ba40d['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x30ecd0 of this['editor']['editing']['view']['domRoots']['values']())if(_0x30ecd0['ownerDocument']['body']['contains'](_0x30ecd0))return _0x30ecd0;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0xdd73ef=this['_getAttachedDomRoot'](),_0x5f17fc=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0xdd73ef||0x1==_0x5f17fc['length'])return void(this['pageNumber']=0x1);const _0x4c28f2=new _0x306a11(_0xdd73ef)['excludeScrollbarsAndBorders'](),_0x55ca78=new _0x306a11(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x320884=_0x55ca78['top']+_0x55ca78['height']/0x3;let _0x5a9e16=!0x1;const _0x506e54=[];for(let _0x1c9f9d=0x1;_0x1c9f9d<_0x5f17fc['length'];_0x1c9f9d++){const _0x2d43fe=this['_getPageBreakLineOffset'](_0x1c9f9d,_0x55ca78);if(!_0x2d43fe)continue;const _0x3ac9ed=_0x55ca78['top']+_0x2d43fe-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x506e54['push']({'pageOffsetTop':_0x3ac9ed,'domRootRect':_0x4c28f2,'domScrollableRect':_0x55ca78,'pageNumber':_0x1c9f9d}),_0x3ac9ed>_0x320884&&!_0x5a9e16&&(this['pageNumber']=_0x1c9f9d,_0x5a9e16=!0x0);}this['_renderPageBreakLines'](_0x506e54),_0x5a9e16||(this['pageNumber']=_0x5f17fc['length']);}['_renderPageBreakLines'](_0x40b737){const {scrollX:_0x5ebefe,scrollY:_0x3080bd}=_0x24414f['window'];if(_0x40b737['length']){for(const {domScrollableRect:_0x1eba38,pageOffsetTop:_0x35d696,domRootRect:_0x1ed0f7,pageNumber:_0x443c3c}of _0x40b737)_0x1eba38['top']<_0x35d696&&_0x35d696<_0x1eba38['bottom']&&this['linesRepository']['showLine'](_0x1ed0f7['left']+_0x5ebefe,_0x35d696+_0x3080bd,_0x1ed0f7['width'],_0x443c3c+0x1);}}['_getPageBreakLineOffset'](_0xb95e5e,_0x4c03b5=null){const _0xf16863=this['_paginationLookupPlugin']['pageBreaks'][_0xb95e5e]['offset'];return _0xf16863?(_0x4c03b5||(_0x4c03b5=new _0x306a11(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0xf16863-_0x4c03b5['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x251ba5,_0x56d34b=!0x0){const _0x394401=this['editor']['editing']['view'];_0x394401['change'](_0xb918d=>{for(const _0x3fa809 of _0x394401['document']['roots'])_0x56d34b?_0xb918d['addClass'](_0x251ba5,_0x3fa809):_0xb918d['removeClass'](_0x251ba5,_0x3fa809);});}}function O(_0x1e9c47,_0x44fdc3,..._0x7c4e74){const t=_0x1e9c47['t'];switch(_0x44fdc3){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)',..._0x7c4e74);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 _0x44fdc3;}}class PaginationEditing extends _0x8bf567{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationLookup,PaginationRenderer];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x21a130=this['editor']['plugins']['get']('Pagination'),_0x25b02a=this['editor']['plugins']['get'](PaginationLookup),_0x181386=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x21a130),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x181386),this['listenTo'](_0x25b02a,'change:pageBreaks',(_0x462784,_0x110739,_0x44baff,_0x282790)=>{this['totalPages']=_0x44baff['length'],this['_updatePageBreakMarkers'](_0x44baff,_0x282790);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x543bd5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13bed8;for(const _0x3317cc in _0x543bd5){const _0x25f162=_0x3317cc,_0x42c1e9=_0x543bd5[_0x25f162];if('paginationLicenseKeyValid'==_0x42c1e9||'paginationLicenseKeyInvalid'==_0x42c1e9||'paginationLicenseKeyExpired'==_0x42c1e9||'paginationLicenseKeyDomainLimit'==_0x42c1e9||'paginationLicenseKeyNotAllowed'==_0x42c1e9||'paginationLicenseKeyEvaluationLimit'==_0x42c1e9||'paginationLicenseKeyUsageLimit'==_0x42c1e9){delete _0x543bd5[_0x25f162],_0x13bed8=_0x42c1e9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x13bed8&&_0x543bd5['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x13bed8&&_0x543bd5['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x13bed8&&_0x543bd5['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x13bed8&&_0x543bd5['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x13bed8&&_0x543bd5['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x13bed8&&_0x543bd5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x36e395){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x36e395));}['moveSelectionToPage'](_0x170467){if(!this['isEnabled'])return;const _0x281041=this['editor'],_0xf9b60f=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x170467-0x1];_0xf9b60f&&_0x281041['model']['change'](_0x2c2d82=>{switch(_0xf9b60f['type']){case'manual':{const _0x3ee123=_0x281041['model']['schema']['getNearestSelectionRange'](_0xf9b60f['modelRange']['end'],'forward');_0x2c2d82['setSelection'](_0x3ee123);break;}case'element':{const _0x288d7d=_0x281041['model']['schema']['getNearestSelectionRange'](_0xf9b60f['modelRange']['start'],'forward');_0x2c2d82['setSelection'](_0x288d7d);break;}case'text':{const _0x284cb1=_0xf9b60f['modelRange']['start'];if(_0x284cb1['textNode']&&'\x20'===_0x284cb1['textNode']['data'][_0x284cb1['offset']]){const _0x2d3e66=_0x2c2d82['createPositionAt'](_0x284cb1['parent'],_0x284cb1['offset']+0x1);_0x2c2d82['setSelection'](_0x2d3e66);}else _0x2c2d82['setSelection'](_0xf9b60f['modelRange']);}}_0x281041['editing']['view']['focus']();});}['goToNextPage'](){const _0x33fbfb=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x33fbfb),this['scrollToPage'](_0x33fbfb);}['goToPreviousPage'](){const _0x2b5d84=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x2b5d84),this['scrollToPage'](_0x2b5d84);}['_updatePageBreakMarkers'](_0x46fa39,_0x368113){const _0x277bf3=this['editor']['model'];this['isEnabled']&&_0x277bf3['change'](_0x11ee4f=>{for(let _0x13533b=0x1;_0x13533b<_0x46fa39['length'];_0x13533b++){const _0x30715d=_0x46fa39[_0x13533b]['modelRange'],_0x506c1f='pagination:'+(_0x13533b+0x1);_0x277bf3['markers']['has'](_0x506c1f)?_0x11ee4f['updateMarker'](_0x506c1f,{'range':_0x30715d}):_0x11ee4f['addMarker'](_0x506c1f,{'range':_0x30715d,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x505541=_0x46fa39['length'];_0x505541<_0x368113['length'];_0x505541++){const _0x1a1c9c='pagination:'+(_0x505541+0x1);_0x277bf3['markers']['has'](_0x1a1c9c)&&_0x11ee4f['removeMarker'](_0x1a1c9c);}});}['_setUpDataDowncastConversion'](){const _0x4f70f6='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x53e3bc=>{_0x53e3bc['on']('addMarker:'+_0x4f70f6,(_0x490bda,{markerRange:_0xe2476c,markerName:_0x3e276a},_0x35da06)=>{if(!_0x35da06['options']['pagination'])return;if(!_0x35da06['consumable']['consume'](_0xe2476c,_0x490bda['name']))return;const _0x2878c3=_0xe2476c['getContainedElement']();let _0x1e99bf=_0x2878c3?_0x35da06['mapper']['toViewElement'](_0x2878c3):null;if(!_0x1e99bf){const _0x279828=_0xe2476c['start'];if(_0x35da06['schema']['checkChild'](_0x279828,'$text')){const _0x298dec=_0x35da06['mapper']['toViewPosition'](_0x279828);_0x1e99bf=_0x35da06['writer']['createContainerElement']('span'),_0x1e99bf['getFillerOffset']=()=>null,_0x35da06['writer']['insert'](_0x298dec,_0x1e99bf);}else{const _0x48179b=_0x279828['nodeAfter'];_0x1e99bf=_0x35da06['mapper']['toViewElement'](_0x48179b);}}for(;_0x1e99bf['parent']!==_0x1e99bf['root']&&0x0===_0x1e99bf['index'];)_0x1e99bf=_0x1e99bf['parent'];const _0x2154d8=_0x3e276a['substring'](0xb);_0x1e99bf['hasClass']('page-break')||(_0x35da06['writer']['setStyle']('page-break-before','always',_0x1e99bf),_0x35da06['writer']['setAttribute']('data-pagination-page',_0x2154d8,_0x1e99bf),_0x35da06['mapper']['bindElementToMarker'](_0x1e99bf,_0x3e276a)),_0x490bda['stop']();});});}['_setupKeystrokes'](){const _0x5c9296=this['editor'];_0x5c9296['keystrokes']['set']('Shift+Pageup',(_0x89d805,_0x17de5a)=>{this['goToPreviousPage'](),_0x17de5a();}),_0x5c9296['keystrokes']['set']('Shift+Pagedown',(_0x117c53,_0x57bdcd)=>{this['goToNextPage'](),_0x57bdcd();}),_0x5c9296['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x5c9296['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x5c9296['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x5c9296['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x2eb38e){return _0x2eb38e<0x1&&(_0x2eb38e=0x1),_0x2eb38e>this['totalPages']&&(_0x2eb38e=this['totalPages']),_0x2eb38e;}}class PageNavigatorView extends _0x264bc3{['pageNumberView'];constructor(_0x90d653){super(_0x90d653);const _0x460f15=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x41d60(_0x90d653,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x11a05b=>O(_0x90d653,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x11a05b)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x4099c8=>!_0x4099c8),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x460f15['if']('isEnabled','ck-disabled',_0x805339=>!_0x805339)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x460f15['to']('totalPages')}]}]});}['render'](){super['render']();const _0x37048e=this['pageNumberView']['element'],_0x478136=_0x4e45dd=>{this['pageNumberView']['element']['value']=String(_0x4e45dd);};_0x478136(this['pageNumber']),this['on']('change:pageNumber',(_0x3612eb,_0x3a4323,_0x4fd148)=>{_0x478136(_0x4fd148);}),this['listenTo'](_0x37048e,'keydown',(_0xcb8a69,_0x1aa017)=>{if('ArrowUp'===_0x1aa017['key']||'ArrowDown'===_0x1aa017['key'])return void _0x1aa017['stopPropagation']();if(_0x1aa017['keyCode']!==_0x3e0fc0['enter'])return;_0x1aa017['preventDefault']();const _0x29a8ba=_0x37048e['valueAsNumber'];Number['isNaN'](_0x29a8ba)?_0x37048e['value']=String(this['pageNumber']):(_0x37048e['checkValidity']()?this['pageNumber']=_0x29a8ba:_0x29a8ba>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x37048e['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x37048e['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x37048e,'blur',()=>{_0x37048e['value']=String(this['pageNumber']);}),this['listenTo'](_0x37048e,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['pageNumberView']['element']['focus']();}}class PaginationUI extends _0x8bf567{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1acfe0=this['editor'],_0x51cf13=_0x1acfe0['plugins']['get']('PaginationEditing');_0x1acfe0['ui']['componentFactory']['add']('pageNavigation',_0x49f4ec=>{const _0x4ccbaa=new PageNavigatorView(_0x49f4ec);return _0x4ccbaa['bind']('pageNumber')['to'](_0x51cf13),_0x4ccbaa['bind']('totalPages')['to'](_0x51cf13),_0x4ccbaa['bind']('isEnabled')['to'](_0x51cf13),_0x4ccbaa['on']('navigation',(_0x14ba36,_0x255839)=>{_0x51cf13['moveSelectionToPage'](_0x255839),_0x51cf13['scrollToPage'](_0x255839);}),_0x4ccbaa;}),_0x1acfe0['ui']['componentFactory']['add']('nextPage',_0x4ca61f=>{const _0x3c56cf=new _0x5e59e0(_0x4ca61f);return _0x3c56cf['isEnabled']=!0x0,_0x3c56cf['label']=O(_0x1acfe0['locale'],'Go\x20to\x20next\x20page'),_0x3c56cf['icon']=_0x3ee642,_0x3c56cf['tooltip']=!0x0,_0x3c56cf['keystroke']='Shift+PageDown',_0x3c56cf['bind']('isEnabled')['to'](_0x51cf13),this['listenTo'](_0x3c56cf,'execute',()=>{_0x51cf13['goToNextPage']();}),_0x3c56cf;}),_0x1acfe0['ui']['componentFactory']['add']('previousPage',_0x320217=>{const _0x530b26=new _0x5e59e0(_0x320217);return _0x530b26['isEnabled']=!0x0,_0x530b26['label']=O(_0x1acfe0['locale'],'Go\x20to\x20previous\x20page'),_0x530b26['icon']=_0x2d1b84,_0x530b26['tooltip']=!0x0,_0x530b26['keystroke']='Shift+PageUp',_0x530b26['bind']('isEnabled')['to'](_0x51cf13),this['listenTo'](_0x530b26,'execute',()=>{_0x51cf13['goToPreviousPage']();}),_0x530b26;});}}class Pagination extends _0x8bf567{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x5c0770){super(_0x5c0770),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x29bd42=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x29bd42),this['bind']('totalPages')['to'](_0x29bd42),_0x1d5bfa['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x46e985){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x46e985);}}export{Pagination,PaginationRenderer};
23
+ import{Plugin as _0x52dbff}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x494d81,InputNumberView as _0x503c92,ButtonView as _0x55a156}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x485975,global as _0x1a5a8d,Rect as _0x4c30e5,uid as _0x2f1b97,toUnit as _0x140e00,first as _0x28c424,env as _0x138cb4,ResizeObserver as _0x335a93,keyCodes as _0x165779}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x4a314e}from'es-toolkit/compat';import{IconArrowDown as _0x5b18e5,IconArrowUp as _0x35a1d5}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x52dbff{['_recalculatePageBreaksDebounced']=_0x4a314e(()=>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 _0x485975('pagination-config-not-found',this['editor']['config']);const _0x16c851=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x16c851),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x4a4185,_0x414769,_0x1a4de1)=>{_0x1a4de1&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x3edeed){const _0x2a7d72=_0x15e594([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]),_0x215a80=0xc82cb1e,_0x147af7=0xc8540a6^_0x215a80,_0x3e4f8c=window[_0x15e594([0x44,0x61,0x74,0x65])][_0x15e594([0x6e,0x6f,0x77])](),_0x48d277=_0x3edeed[_0x15e594([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57ffa3=new window[(_0x15e594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5008d1=>{_0x48d277[_0x15e594([0x6f,0x6e,0x63,0x65])](_0x15e594([0x72,0x65,0x61,0x64,0x79]),_0x5008d1);}),_0xa09d46={[_0x15e594([0x6b,0x74,0x79])]:_0x15e594([0x45,0x43]),[_0x15e594([0x75,0x73,0x65])]:_0x15e594([0x73,0x69,0x67]),[_0x15e594([0x63,0x72,0x76])]:_0x15e594([0x50,0x2d,0x32,0x35,0x36]),[_0x15e594([0x78])]:_0x15e594([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]),[_0x15e594([0x79])]:_0x15e594([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]),[_0x15e594([0x61,0x6c,0x67])]:_0x15e594([0x45,0x53,0x32,0x35,0x36])},_0x13c9c5=_0x48d277[_0x15e594([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15e594([0x67,0x65,0x74])](_0x15e594([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x327685(){let _0x418280,_0x1a4f36=null,_0x4ddea7=null;try{if(_0x13c9c5==_0x15e594([0x47,0x50,0x4c]))return _0x15e594([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x418280=_0xb92da1(),!_0x418280)return _0x15e594([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x418280[_0x15e594([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ddea7=_0x5a71da(_0x418280[_0x15e594([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x418280[_0x15e594([0x6a,0x74,0x69])])),await _0x4c0a2a()?_0x51b846()?_0x48b381()?_0x15e594([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x54654c()?(_0x418280[_0x15e594([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15e594([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a4f36=_0x1f7691(_0x15e594([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x494677()):_0x15e594([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15e594([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15e594([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x15e594([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48b381(){const _0x446a79=[_0x15e594([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15e594([0x74,0x72,0x69,0x61,0x6c])][_0x15e594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x418280[_0x15e594([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e4f8c/0x3e8:0xe10*_0x147af7;return _0x418280[_0x15e594([0x65,0x78,0x70])]<_0x446a79;}function _0x51b846(){const _0x411a7b=_0x418280[_0x15e594([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x411a7b&&(!!_0x411a7b[_0x15e594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15e594([0x2a]))||!!_0x411a7b[_0x15e594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15e594([0x50,0x41,0x47])));}function _0x54654c(){const _0x40fb14=_0x418280[_0x15e594([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x40fb14||0x0==_0x40fb14[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a7f8c}=new URL(window[_0x15e594([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x40fb14[_0x15e594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a7f8c))return!0x0;const _0x436331=_0x5a7f8c[_0x15e594([0x73,0x70,0x6c,0x69,0x74])](_0x15e594([0x2e]));return _0x40fb14[_0x15e594([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x404378=>_0x404378[_0x15e594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15e594([0x2a])))[_0x15e594([0x6d,0x61,0x70])](_0x5e27cd=>_0x5e27cd[_0x15e594([0x73,0x70,0x6c,0x69,0x74])](_0x15e594([0x2e])))[_0x15e594([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12c67c=>_0x12c67c[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x436331[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15e594([0x6d,0x61,0x70])](_0x14b5cd=>Array(_0x436331[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x14b5cd[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15e594([0x66,0x69,0x6c,0x6c])](_0x14b5cd[0x0]===_0x15e594([0x2a])?_0x15e594([0x2a]):'')[_0x15e594([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x14b5cd))[_0x15e594([0x73,0x6f,0x6d,0x65])](_0x3404da=>_0x436331[_0x15e594([0x65,0x76,0x65,0x72,0x79])]((_0x2cd266,_0x2af0cc)=>_0x3404da[_0x2af0cc]===_0x2cd266||_0x3404da[_0x2af0cc]===_0x15e594([0x2a])));}function _0x494677(){return _0x1a4f36&&_0x4ddea7?new window[(_0x15e594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x572398,_0x7ad8d0)=>{_0x1a4f36[_0x15e594([0x74,0x68,0x65,0x6e])](_0x572398,_0x7ad8d0),_0x4ddea7[_0x15e594([0x74,0x68,0x65,0x6e])](_0x15a4b9=>{_0x15a4b9!=_0x15e594([0x56,0x61,0x6c,0x69,0x64])&&_0x572398(_0x15a4b9);},_0x7ad8d0);}):_0x1a4f36||_0x4ddea7||_0x15e594([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a71da(_0x1ae205,_0x7ff669){return new window[(_0x15e594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d4fee=>{if(_0x6d78ca())return _0x5d4fee(_0x15e594([0x56,0x61,0x6c,0x69,0x64]));_0x1d9aba(),_0x48d277[_0x15e594([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15e594([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x286972=!0x1;const _0x586186=_0x2f1b97();function _0x3db9c0(_0x63ed41){return!!_0x63ed41&&(typeof _0x63ed41===_0x15e594([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x63ed41===_0x15e594([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x63ed41[_0x15e594([0x74,0x68,0x65,0x6e])]===_0x15e594([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x63ed41[_0x15e594([0x63,0x61,0x74,0x63,0x68])]===_0x15e594([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x182238(_0x2e3bc4){_0xed5ced(_0x2e3bc4)[_0x15e594([0x74,0x68,0x65,0x6e])](_0x32b02a=>{if(!_0x32b02a||_0x32b02a[_0x15e594([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15e594([0x6f,0x6b]))return _0x15e594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a84a9(_0x35b350(_0x586186+_0x7ff669))!=_0x32b02a[_0x15e594([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15e594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15e594([0x56,0x61,0x6c,0x69,0x64]);})[_0x15e594([0x74,0x68,0x65,0x6e])](_0x4f2195=>(_0x411ed2(),_0x4f2195),()=>{const _0xe84f93=_0x2aaeaf();return null==_0xe84f93?(_0x411ed2(),_0x15e594([0x56,0x61,0x6c,0x69,0x64])):_0x15e594(_0x3e4f8c-_0xe84f93>(0x288e4f1e^_0x215a80)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15e594([0x74,0x68,0x65,0x6e])](_0x5d4fee)[_0x15e594([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d4fee(_0x15e594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x435361=0xcb4259e^_0x215a80;function _0x411ed2(){const _0x270377=_0x15e594([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a84a9(_0x35b350(_0x1ae205)),_0x254d42=_0x1bfc44(_0x3a84a9(window[_0x15e594([0x4d,0x61,0x74,0x68])][_0x15e594([0x63,0x65,0x69,0x6c])](_0x3e4f8c/_0x435361)));window[_0x15e594([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15e594([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x270377,_0x254d42);}function _0x2aaeaf(){const _0x5f290f=_0x15e594([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a84a9(_0x35b350(_0x1ae205)),_0x272be8=window[_0x15e594([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15e594([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f290f);return _0x272be8?window[_0x15e594([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bfc44(_0x272be8),0x10)*_0x435361:null;}function _0xed5ced(_0x15300c){return new window[(_0x15e594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x109a7f,_0x5962db)=>{_0x15300c[_0x15e594([0x74,0x68,0x65,0x6e])](_0x109a7f,_0x5962db),window[_0x15e594([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5962db,0xc831fde^_0x215a80);});}}_0x48d277[_0x15e594([0x6f,0x6e])](_0x15e594([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53ed7b,_0x197a58)=>{if(_0x197a58[0x0]!=_0x1ae205)return _0x5d4fee(_0x15e594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x197a58[0x1]={..._0x197a58[0x1],[_0x15e594([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x586186};},{[_0x15e594([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15e594([0x68,0x69,0x67,0x68])}),_0x48d277[_0x15e594([0x6f,0x6e])](_0x15e594([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45e9ab=>{_0x3db9c0(_0x45e9ab[_0x15e594([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x286972=!0x0,_0x182238(_0x45e9ab[_0x15e594([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15e594([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15e594([0x6c,0x6f,0x77])}),_0x57ffa3[_0x15e594([0x74,0x68,0x65,0x6e])](()=>{_0x286972||_0x5d4fee(_0x15e594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6d78ca(){return _0x48d277[_0x15e594([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15e594([0x76,0x69,0x65,0x77])][_0x15e594([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15e594([0x61,0x75,0x74,0x6f]);}function _0x1d9aba(){_0x48d277[_0x15e594([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15e594([0x76,0x69,0x65,0x77])][_0x15e594([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15e594([0x61,0x75,0x74,0x6f]);}}function _0x1f7691(_0x310d41){const _0x1f9185=[new window[(_0x15e594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7619d4=>setTimeout(_0x7619d4,0xc8bf5d2^_0x215a80)),_0x57ffa3[_0x15e594([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15e594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c785c=>{let _0xcf4926=0x0;_0x48d277[_0x15e594([0x6d,0x6f,0x64,0x65,0x6c])][_0x15e594([0x6f,0x6e])](_0x15e594([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x17a8ab,_0x4859e5)=>{_0x4859e5[0x0][_0x15e594([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xcf4926++,_0xcf4926==(0xc82cef6^_0x215a80)&&(_0x2c785c(),_0x17a8ab[_0x15e594([0x6f,0x66,0x66])]());});}))];return window[_0x15e594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15e594([0x72,0x61,0x63,0x65])](_0x1f9185)[_0x15e594([0x74,0x68,0x65,0x6e])](()=>_0x310d41);}async function _0x281022(){await _0x57ffa3,_0x48d277[_0x15e594([0x6d,0x6f,0x64,0x65,0x6c])][_0x15e594([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c719c,_0x48d277[_0x15e594([0x6d,0x6f,0x64,0x65,0x6c])][_0x15e594([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c719c,_0x48d277[_0x15e594([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15e594([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c86cb(_0x53f6d7){const _0x389db8=_0x4f4301();_0x48d277[_0x389db8]=_0x15e594([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x53f6d7,_0x53f6d7!=_0x15e594([0x56,0x61,0x6c,0x69,0x64])&&_0x281022();}function _0x4f4301(){const _0x4683a8=window[_0x15e594([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15e594([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15e594([0x6e,0x6f,0x77])]())[_0x15e594([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15e594([0x2e]),'');let _0x1895de=_0x15e594([0x49]);for(let _0x4d0616=0x0;_0x4d0616<_0x4683a8[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d0616+=0x2){let _0x50454c=window[_0x15e594([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4683a8[_0x15e594([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d0616,_0x4d0616+0x2));_0x50454c>=_0x2a7d72[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x50454c-=_0x2a7d72[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1895de+=_0x2a7d72[_0x50454c];}return _0x1895de;}function _0xb92da1(){const _0x263f92=_0x13c9c5[_0x15e594([0x73,0x70,0x6c,0x69,0x74])](_0x15e594([0x2e]));if(0x3!=_0x263f92[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c5a5f(_0x263f92[0x1]);function _0x4c5a5f(_0x5ee3bc){const _0x10cc14=_0x1e2014(_0x5ee3bc);return _0x10cc14&&_0x364eba()?_0x10cc14:null;function _0x364eba(){const _0x2363f2=_0x10cc14[_0x15e594([0x6a,0x74,0x69])],_0x1e7cbf=window[_0x15e594([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2363f2[_0x15e594([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2363f2[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1730cc={..._0x10cc14,[_0x15e594([0x6a,0x74,0x69])]:_0x2363f2[_0x15e594([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2363f2[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1730cc[_0x15e594([0x76,0x63])],_0x35b350(_0x1730cc)==_0x1e7cbf;}}}async function _0x4c0a2a(){let _0x28f766=!0x0;try{const _0x409370=_0x13c9c5[_0x15e594([0x73,0x70,0x6c,0x69,0x74])](_0x15e594([0x2e])),[_0x3c0e3e,_0x52d927,_0x2df4d5]=_0x409370;return _0x26df3e(_0x3c0e3e),await _0x21f892(_0x3c0e3e,_0x52d927,_0x2df4d5),_0x28f766;}catch{return!0x1;}function _0x26df3e(_0x1b9891){const _0x5ce451=_0x1e2014(_0x1b9891);_0x5ce451&&_0x5ce451[_0x15e594([0x61,0x6c,0x67])]==_0x15e594([0x45,0x53,0x32,0x35,0x36])||(_0x28f766=!0x1);}async function _0x21f892(_0x470e60,_0x358032,_0x1b113e){const _0x2c05e6=window[_0x15e594([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15e594([0x66,0x72,0x6f,0x6d])](_0x4ab264(_0x1b113e),_0x188232=>_0x188232[_0x15e594([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ae12c=new window[(_0x15e594([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15e594([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x470e60+_0x15e594([0x2e])+_0x358032),_0x49f77d=window[_0x15e594([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15e594([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x49f77d)return;const _0x4d7a1f=await _0x49f77d[_0x15e594([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15e594([0x6a,0x77,0x6b]),_0xa09d46,{[_0x15e594([0x6e,0x61,0x6d,0x65])]:_0x15e594([0x45,0x43,0x44,0x53,0x41]),[_0x15e594([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15e594([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15e594([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x49f77d[_0x15e594([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15e594([0x6e,0x61,0x6d,0x65])]:_0x15e594([0x45,0x43,0x44,0x53,0x41]),[_0x15e594([0x68,0x61,0x73,0x68])]:{[_0x15e594([0x6e,0x61,0x6d,0x65])]:_0x15e594([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d7a1f,_0x2c05e6,_0x2ae12c)||(_0x28f766=!0x1);}}function _0x1e2014(_0x40d554){return _0x40d554[_0x15e594([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15e594([0x65,0x79]))?JSON[_0x15e594([0x70,0x61,0x72,0x73,0x65])](_0x4ab264(_0x40d554)):null;}function _0x4ab264(_0x46f0f4){return window[_0x15e594([0x61,0x74,0x6f,0x62])](_0x46f0f4[_0x15e594([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15e594([0x2b]))[_0x15e594([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15e594([0x2f])));}function _0x35b350(_0x2d069b){let _0x1cc87d=0x1505;function _0x31d396(_0x4a5727){for(let _0x3528fb=0x0;_0x3528fb<_0x4a5727[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3528fb++){const _0x4914e1=_0x4a5727[_0x15e594([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3528fb);_0x1cc87d=(_0x1cc87d<<0x5)+_0x1cc87d+_0x4914e1,_0x1cc87d&=_0x1cc87d;}}function _0x443ba1(_0x10e5bc){Array[_0x15e594([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10e5bc)?_0x10e5bc[_0x15e594([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x443ba1):_0x10e5bc&&typeof _0x10e5bc==_0x15e594([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15e594([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10e5bc)[_0x15e594([0x73,0x6f,0x72,0x74])]()[_0x15e594([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57509a,_0x501365])=>{_0x31d396(_0x57509a),_0x443ba1(_0x501365);}):_0x31d396(window[_0x15e594([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10e5bc));}return _0x443ba1(_0x2d069b),_0x1cc87d>>>0x0;}function _0x3a84a9(_0x39d4ef){return _0x39d4ef[_0x15e594([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15e594([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15e594([0x30]));}function _0x1bfc44(_0x468069){return _0x468069[_0x15e594([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15e594([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15e594([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c719c(){}function _0x15e594(_0x488d9c){return _0x488d9c['map'](_0x45e0cc=>String['fromCharCode'](_0x45e0cc))['join']('');}_0x3c86cb(await _0x327685());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x177ff9=this['editor'],_0x4a2ed7=_0x177ff9['editing']['view'],_0x16e289=this['_getAttachedDomRoot']();if(!_0x16e289||0x0===_0x16e289['childElementCount'])return void _0x177ff9['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x1f2747,pageHeight:_0x3329f2}=_0x177ff9['config']['get']('pagination'),{top:_0x13c3cc,left:_0x44af67,bottom:_0x1e8ec,right:_0x6e1d28}=this['_configuredPaddings'];this['_pagesContainer']=new _0x494d81(_0x177ff9['locale']);const _0x510f37=this['_pagesContainer'];_0x510f37['set']('class',''),_0x510f37['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x1f2747,'width':_0x1f2747,'height':'calc(\x20'+_0x3329f2+'\x20-\x20'+_0x13c3cc+'\x20-\x20'+_0x1e8ec+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x6e1d28+'\x200\x20'+_0x44af67,'columnGap':'calc('+_0x44af67+'\x20+\x20'+_0x6e1d28+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x510f37['bindTemplate']['to']('class')}}),_0x510f37['render'](),_0x16e289['parentNode']['insertBefore'](_0x510f37['element'],_0x16e289['nextSibling']),this['listenTo'](_0x4a2ed7,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x20214d of this['editor']['editing']['view']['domRoots']['values']())if(_0x20214d['ownerDocument']['body']['contains'](_0x20214d))return _0x20214d;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x2339fa=this['editor']['editing']['view'],_0x4559b3=this['_pagesContainer'],_0x4b878e=this['_getAttachedDomRoot']();if(!_0x4b878e)return Promise['resolve']();for(_0x4559b3['class']=['ck-reset','ck-pagination-view',..._0x4b878e['classList']]['join']('\x20');_0x4559b3['element']['firstChild'];)_0x4559b3['element']['firstChild']['remove']();const _0x45f384=Array['from'](_0x2339fa['domRoots']);_0x45f384['sort'](([,_0x556331],[,_0x5b60c0])=>_0x556331['compareDocumentPosition'](_0x5b60c0)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x529fbc,_0x2747f6]of _0x45f384){const _0x139b52=_0x2747f6['cloneNode'](!0x0);'attributeStyleMap'in _0x139b52&&_0x139b52['attributeStyleMap']['clear'](),_0x139b52['dataset']['rootName']=_0x529fbc,_0x139b52['className']='ck-content\x20ck-pagination_enabled',_0x139b52['removeAttribute']('id'),_0x139b52['tabIndex']=-0x1,_0x4559b3['element']['append'](_0x139b52);}const _0x52806e=Array['from'](_0x4559b3['element']['querySelectorAll']('img'));return function(_0x26870a){return Promise['all'](_0x26870a['map'](_0x1e36b1=>Promise['race']([b(_0x1e36b1),k(0x3e8)])));}(_0x52806e)['then'](()=>{for(const _0x4026a3 of _0x52806e['filter'](_0x55bcbe=>!_0x55bcbe['closest']('table')))if(_0x4026a3['offsetParent']){const _0x27099d=_0x1a5a8d['window']['getComputedStyle'](_0x4026a3),_0x2e6746=_0x1a5a8d['document']['createElement']('span');for(const _0x3ef029 of _0x27099d)_0x2e6746['style']['setProperty'](_0x3ef029,_0x27099d[_0x3ef029]);_0x2e6746['style']['backgroundImage']='url(\x20'+_0x4026a3['src']+'\x20)',_0x2e6746['style']['breakInside']='avoid','PICTURE'==_0x4026a3['parentElement']?.['tagName']?_0x4026a3['parentElement']['replaceWith'](_0x2e6746):_0x4026a3['replaceWith'](_0x2e6746);}return new Promise(_0x24fba6=>_0x1a5a8d['window']['requestAnimationFrame'](()=>_0x24fba6()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x254866=this['_pagesContainer']['element'];if(!_0x254866['ownerDocument']['body']['contains'](_0x254866))return;const _0x5d845b=new _0x4c30e5(_0x254866)['excludeScrollbarsAndBorders'](),_0x3a8e3a=Math['floor'](_0x5d845b['width']+0x64),_0x391493=L(_0x254866,Math['floor'](_0x5d845b['left']-_0x254866['scrollLeft']),_0x3a8e3a,_0x5d845b['height'])['map'](_0x714e62=>this['_mapPageStarterInfoToPageBreakInfo'](_0x714e62))['filter'](_0x50aabf=>!0x1!==_0x50aabf);_0x391493['every'](_0x276d5d=>!!_0x276d5d)&&(this['pageBreaks']=_0x391493);}['_mapPageStarterInfoToPageBreakInfo'](_0x57509c){const _0x369d7e=this['editor']['editing']['view'],_0x5284e6=this['editor']['editing']['mapper'],_0x3cb432=_0x369d7e['domConverter'],_0xf5d576=_0x57509c['path']['shift'](),_0x43e173=this['_pagesContainer']['element']['childNodes'][_0xf5d576]['dataset']['rootName'],_0x5dcc14=_0x369d7e['getDomRoot'](_0x43e173);if(!_0x5dcc14)return null;const _0x45602d=function(_0x494b31,_0x57d710){let _0x5841de=_0x494b31;for(const _0x23a421 of _0x57d710['path']){if(!_0x5841de)return null;_0x5841de=_0x5841de['childNodes'][_0x23a421];}return _0x5841de;}(_0x5dcc14,_0x57509c);if(!_0x45602d)return null;const _0x3d7647=_0x3cb432['domPositionToView'](_0x45602d,_0x57509c['textOffset']||0x0);return _0x3d7647?'manual'==_0x57509c['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x3d7647,_0x45602d):'text'==_0x57509c['type']&&_0x5284e6['toModelPosition'](_0x3d7647)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x3d7647,_0x45602d,_0x57509c['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x3d7647,_0x45602d,_0x57509c['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x5470bd,_0x4ba2ef){const _0x577fcc=this['editor']['model'],_0x454468=this['editor']['editing']['mapper']['toModelElement'](_0x5470bd['parent']),_0x5af79f=_0x577fcc['createRangeOn'](_0x454468);return new PageBreakInfo({'type':'manual','modelRange':_0x5af79f,'domNode':_0x4ba2ef,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x31cf91,_0x324834,_0x410f2f){const _0x5d7b70=this['editor']['model'],_0x52d755=this['editor']['editing']['mapper'],_0x2bf1e1=this['editor']['editing']['view']['domConverter'];if(_0x410f2f>=_0x324834['length'])return null;const _0x19dd72=_0x52d755['toModelPosition'](_0x31cf91),_0x5e4c32=_0x5d7b70['createRange'](_0x19dd72),_0x5928c0=_0x52d755['findMappedViewAncestor'](_0x31cf91),_0x4a8888=_0x2bf1e1['mapViewToDom'](_0x5928c0);return new PageBreakInfo({'type':'text','modelRange':_0x5e4c32,'domNode':_0x324834,'offset':w(_0x324834,_0x410f2f,_0x4a8888)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x6e497,_0x173298,_0x87a295){const _0x5ab412=this['editor']['model'],_0x4e1c04=this['editor']['editing'],_0x23c1fc=_0x4e1c04['mapper'],_0x2befe9=_0x4e1c04['view']['domConverter'],_0x44e38e=_0x23c1fc['findMappedViewAncestor'](_0x6e497),_0x8eecd7=_0x23c1fc['toModelElement'](_0x44e38e);if(!_0x8eecd7||_0x8eecd7['is']('rootElement'))return!0x1;const _0x4f7d43=function(_0xd64b0e){const _0x4bead2=_0xd64b0e['parent'],_0x3ea231=_0x4bead2['root']['document']['model'],_0x368f1f=_0x4bead2['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x54049c=null;for(const _0x468e19 of _0x368f1f){if(_0x468e19['is']('rootElement'))return _0x54049c;if(!_0x3ea231['createPositionBefore'](_0x468e19)['isTouching'](_0xd64b0e))return _0x54049c;_0x54049c=_0x468e19;}}(_0x5ab412['createPositionBefore'](_0x8eecd7)),_0x4dd68d=_0x4f7d43||_0x8eecd7;let _0x586ee1=_0x23c1fc['toViewElement'](_0x4dd68d),_0x32b07e=_0x5ab412['createRangeOn'](_0x4dd68d);const _0x196a23=_0x5ab412['createPositionBefore'](_0x4dd68d)['nodeBefore'];if(_0x196a23&&_0x196a23['is']('element','imageBlock')){const _0xf38515=_0x23c1fc['toViewElement'](_0x196a23),_0x28a2e0=_0x2befe9['mapViewToDom'](_0xf38515),_0x3312c6=_0x1a5a8d['window']['getComputedStyle'](_0x28a2e0)['float'];'left'!=_0x3312c6&&'right'!=_0x3312c6||(_0x32b07e=_0x5ab412['createRangeOn'](_0x196a23));}for(;_0x586ee1['parent']!==_0x586ee1['root']&&0x0===_0x586ee1['index'];)_0x586ee1=_0x586ee1['parent'];const _0x6ab73b=new _0x4c30e5(S(_0x173298)?_0x173298:y(_0x173298)),_0x334d33=_0x87a295?_0x6ab73b['height']-_0x87a295:0x0,_0x3e96b7=_0x2befe9['mapViewToDom'](_0x586ee1),_0x40e969=new _0x4c30e5(_0x3e96b7);return new PageBreakInfo({'type':'element','modelRange':_0x32b07e,'domNode':_0x3e96b7,'offset':Math['round'](_0x334d33)||_0x44e38e!=P(_0x6e497)?_0x334d33+_0x6ab73b['top']-_0x40e969['top']:0x0});}get['_configuredPaddings'](){const _0x5b2768=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x5b2768);}static['_findPageStarterInfos'](_0x247f41,_0x37c451,_0x994f16,_0x34a614,_0x54cea0){return L(_0x247f41,_0x37c451,_0x994f16,_0x34a614,_0x54cea0);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0xc438d9,modelRange:_0x5a82a2,domNode:_0x3fd520,offset:_0x2a98ef}){this['type']=_0xc438d9,this['modelRange']=_0x5a82a2,this['_domNode']=_0x3fd520,this['_offset']=_0x2a98ef;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x48ec84=new _0x4c30e5(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x48ec84['top']+_0x48ec84['height']/0x2:_0x48ec84['top']+this['_offset'];}}function w(_0x25d6f7,_0x1fddeb,_0x4da6dc){const _0x499473=y(_0x25d6f7),_0x3af798=function(_0x22725e){const _0x3d68e6=_0x1a5a8d['document']['createRange']();return _0x3d68e6['selectNodeContents'](_0x22725e),_0x3d68e6;}(_0x4da6dc);let _0x3e72d2;_0x3e72d2=0x0==_0x1fddeb?x(_0x3af798['startContainer'],_0x3af798['startOffset'],_0x25d6f7['parentNode'],Array['from'](_0x25d6f7['parentNode']['childNodes'])['indexOf'](_0x25d6f7)):x(_0x3af798['startContainer'],_0x3af798['startOffset'],_0x25d6f7,_0x1fddeb);const _0x37cb2e=x(_0x25d6f7,_0x1fddeb,_0x3af798['endContainer'],_0x3af798['endOffset']),_0xc00314=new _0x4c30e5(_0x3e72d2)['bottom'];return(new _0x4c30e5(_0x37cb2e)['top']+_0xc00314)/0x2-new _0x4c30e5(_0x499473)['top'];}function P(_0x3b5165){let _0x259a05=_0x3b5165['parent'];for(;_0x259a05['is']('$text')||_0x259a05['is']('attributeElement');)_0x259a05=_0x259a05['parent'];return _0x259a05;}function b(_0x1d04af){return _0x1d04af['hasAttribute']('width')&&_0x1d04af['hasAttribute']('height')?Promise['resolve']():new Promise(_0x5e0ef3=>{function _0x1e1bc8(){_0x1d04af['removeEventListener']('load',_0x1e1bc8),_0x1d04af['removeEventListener']('error',_0x1e1bc8),_0x5e0ef3();}_0x1d04af['complete']?_0x5e0ef3():(_0x1d04af['addEventListener']('load',_0x1e1bc8),_0x1d04af['addEventListener']('error',_0x1e1bc8));});}function k(_0x5b6690){return new Promise(_0x308fa6=>setTimeout(_0x308fa6,_0x5b6690));}function y(_0x12fab0){const _0x4c3463=_0x1a5a8d['document']['createRange']();return _0x4c3463['selectNode'](_0x12fab0),_0x4c3463;}function v(_0x501c2f,_0x2a9398,_0x526239){const _0x3e2053=_0x1a5a8d['document']['createRange']();return _0x3e2053['setStart'](_0x501c2f,_0x2a9398),_0x3e2053['setEnd'](_0x501c2f,_0x526239),_0x3e2053;}function x(_0x2f37ff,_0x4b37a9,_0x44c59d,_0xc2ef74){const _0x2d20ee=_0x1a5a8d['document']['createRange']();return _0x2d20ee['setStart'](_0x2f37ff,_0x4b37a9),_0x2d20ee['setEnd'](_0x44c59d,_0xc2ef74),_0x2d20ee;}function L(_0x4fa170,_0x6379e9,_0x1984d3,_0x5dcee3,_0x268ff7){const _0x473107=[];for(const [_0x5143ff,_0x1fa914]of _0x4fa170['childNodes']['entries']()){let _0x25523e=[];S(_0x1fa914)&&_0x1fa914['offsetParent']&&['static','relative']['includes'](_0x1a5a8d['window']['getComputedStyle'](_0x1fa914)['position'])?_0x25523e=N(_0x1fa914,_0x5143ff,_0x6379e9,_0x1984d3,_0x5dcee3,_0x268ff7):I(_0x1fa914)&&(_0x25523e=_(_0x1fa914,_0x5143ff,_0x6379e9,_0x1984d3,_0x268ff7)),_0x25523e['length']&&(_0x473107['push'](..._0x25523e),_0x6379e9+=_0x25523e['length']*_0x1984d3,_0x268ff7=!0x1);}return _0x473107;}function N(_0x212fec,_0x40ef78,_0x22adeb,_0x1dddba,_0x5285c0,_0x241d15){const _0x7a9950=[];var _0x1079f2;if((_0x1079f2=_0x212fec['previousSibling'])&&S(_0x1079f2)&&Boolean(_0x1079f2['classList']['contains']('page-break')||_0x1079f2['closest']('.page-break'))&&(_0x7a9950['push']({'type':'manual','offset':0x0,'path':[_0x40ef78-0x1]}),_0x241d15=!0x0),'table-row'==_0x1a5a8d['window']['getComputedStyle'](_0x212fec)['display']){let _0x5c4884=0x0,_0x5ef644=!0x1;for(const _0x2a0d8a of _0x212fec['getClientRects']())_0x5c4884+=_0x2a0d8a['height'],_0x2a0d8a['left']>=_0x22adeb&&(_0x5ef644=!0x0);if(_0x5c4884<_0x5285c0&&_0x5ef644)return _0x241d15||_0x7a9950['push']({'type':'element','offset':0x0,'path':[_0x40ef78]}),_0x7a9950;}const _0x3c48eb=_0x212fec['closest']('figure.image');if(_0x3c48eb&&function(_0xd3d007){let _0x4ed2bd=!0x1;const _0x21660f=_0xd3d007['parentElement'],_0x1d8ac4=_0x21660f['dataset']['rootName'],_0x1d0c10=_0xd3d007['nextElementSibling'],_0x84229d=_0xd3d007['previousElementSibling'],_0x464320=_0x1d0c10&&_0x1a5a8d['window']['getComputedStyle'](_0x1d0c10)['float'],_0x5bf2e3=_0x1d0c10&&'ck-fake-selection-container'===_0x1d0c10['className'];!_0x1d8ac4||_0x1d0c10||_0x84229d||(_0x4ed2bd=!0x0),_0x1d8ac4&&!_0x84229d&&_0x5bf2e3&&(_0x4ed2bd=!0x0),_0x1d8ac4&&!_0x84229d&&'none'!==_0x464320&&(_0x4ed2bd=!0x0);if(_0x4ed2bd)return!0x1;return!0x0;}(_0x3c48eb)){const _0x212a43=_0x1a5a8d['window']['getComputedStyle'](_0x3c48eb)['float'];if('left'==_0x212a43||'right'==_0x212a43)return _0x7a9950;}const _0x445579=L(_0x212fec,_0x22adeb,_0x1dddba,_0x5285c0,_0x241d15);if(_0x445579['length']){for(const _0x3a7dfa of _0x445579)_0x7a9950['push']({'type':_0x3a7dfa['type'],'offset':_0x3a7dfa['offset'],'textOffset':_0x3a7dfa['textOffset'],'path':[_0x40ef78,..._0x3a7dfa['path']]}),_0x22adeb+=_0x1dddba,_0x241d15=!0x1;return _0x7a9950;}return _0x7a9950['push'](...function(_0xdcdd0b,_0x7769df,_0x37c679,_0x40d1cc,_0x433398){const _0x11e190=[];if('table-cell'==_0x1a5a8d['window']['getComputedStyle'](_0xdcdd0b)['display'])return[];const _0x4aefc6=[];for(const _0x6c8d8b of _0xdcdd0b['getClientRects']())if(_0x6c8d8b['left']>=_0x37c679){for(const _0x1c626f of _0x4aefc6)_0x1c626f['height']+=_0x6c8d8b['height'];_0x4aefc6['push']({'height':_0x6c8d8b['height']}),_0x37c679+=_0x40d1cc;}for(const _0x141efa of _0x4aefc6)_0x433398||_0x11e190['push']({'type':'element','offset':_0x141efa['height'],'textOffset':0x0,'path':[_0x7769df]}),_0x433398=!0x1;return _0x11e190;}(_0x212fec,_0x40ef78,_0x22adeb,_0x1dddba,_0x241d15)),_0x7a9950;}function _(_0x471c42,_0x5f4254,_0x1417c5,_0x3c7d5e,_0x3923c1){const _0x28387e=y(_0x471c42),_0x49009d=[];let _0x262a89=0x0;for(const _0x506ca3 of _0x28387e['getClientRects']())if(_0x506ca3['left']>=_0x1417c5){const _0x454e9d=R(_0x471c42,_0x262a89,_0x1417c5,_0x3c7d5e);_0x3923c1||_0x49009d['push']({'type':'text','path':[_0x5f4254],'textOffset':_0x454e9d}),_0x262a89=_0x454e9d,_0x1417c5+=_0x3c7d5e,_0x3923c1=!0x1;}return _0x49009d;}function R(_0x443b15,_0x3d3244,_0x306488,_0x32e628){let _0x521433=_0x3d3244,_0x599e74=_0x443b15['length'];for(;_0x599e74-_0x521433>0x1;){const _0x3ebb2f=Math['ceil']((_0x521433+_0x599e74)/0x2);E(v(_0x443b15,_0x521433,_0x3ebb2f),_0x306488,_0x32e628)?_0x599e74=_0x3ebb2f:_0x521433=_0x3ebb2f;}return _0x521433;}function E(_0x3a0a3d,_0x41b5b8,_0x544f5c){for(const _0x59c68b of _0x3a0a3d['getClientRects']())if(_0x59c68b['left']>=_0x41b5b8&&_0x59c68b['left']<_0x41b5b8+_0x544f5c)return!0x0;return!0x1;}function S(_0x3e1fff){return _0x3e1fff['nodeType']==Node['ELEMENT_NODE'];}function I(_0x4db03c){return _0x4db03c['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
+ _0x140e00('px');class LineView extends _0x494d81{constructor(){super();const _0x2249ea=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x2249ea['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x2249ea['if']('isVisible','ck-hidden',_0x49420a=>!_0x49420a)],'style':{'left':_0x2249ea['to']('left',_0x450bea=>B(_0x450bea)),'top':_0x2249ea['to']('top',_0xcddfc=>B(_0xcddfc)),'width':_0x2249ea['to']('width',_0x468b5e=>B(_0x468b5e))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x8f33c9){this['_viewCollection']=_0x8f33c9['ui']['view']['body'];}['destroy'](){for(const _0x283221 of this['_hiddenLines'])_0x283221['destroy']();}['cleanLines'](){for(const _0x368806 of this['_visibleLines'])_0x368806['isVisible']=!0x1,this['_hiddenLines']['add'](_0x368806);this['_visibleLines']['clear']();}['showLine'](_0x452b71,_0x387ae5,_0x2086a0,_0x269174){let _0x5ce5b8;this['_hiddenLines']['size']?(_0x5ce5b8=_0x28c424(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x5ce5b8)):_0x5ce5b8=new LineView(),_0x5ce5b8['set']({'pageNumber':_0x269174,'left':_0x452b71,'top':_0x387ae5,'width':_0x2086a0}),_0x5ce5b8['isVisible']=!0x0,this['_viewCollection']['has'](_0x5ce5b8)||this['_viewCollection']['add'](_0x5ce5b8),this['_visibleLines']['add'](_0x5ce5b8);}['setViewCollection'](_0x3869e7){for(const _0x15db2b of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x15db2b)&&this['_viewCollection']['remove'](_0x15db2b);this['_viewCollection']=_0x3869e7;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x52dbff{['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 LinesRepository(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'](K),this['on']('change:isEnabled',(_0x5390d8,_0xa7b917,_0x1de817)=>{_0x1de817||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x1de817);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x2d8610){if(!this['isEnabled'])return;const _0x34dd90=_0x2d8610>0x1?this['_getPageBreakLineOffset'](_0x2d8610-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x34dd90-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x138cb4['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x4e214f=this['editor'],_0x2ef514=this['_getAttachedDomRoot']();_0x2ef514?(this['_scrollableEditingRootDomAncestor']&&_0x4e214f['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x483566){let _0x4bc924=_0x483566;do{_0x4bc924=_0x4bc924['parentElement'];const _0x3f6467=_0x1a5a8d['window']['getComputedStyle'](_0x4bc924)['overflowY'];if('auto'==_0x3f6467||'scroll'==_0x3f6467)break;}while('BODY'!=_0x4bc924['tagName']);return _0x4bc924;}(_0x2ef514),_0x4e214f['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x335a93(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x4e214f['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x10f6dc=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x10f6dc['ui']['view']['listenTo'](_0x1a5a8d['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x10f6dc['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x1d195d of this['editor']['editing']['view']['domRoots']['values']())if(_0x1d195d['ownerDocument']['body']['contains'](_0x1d195d))return _0x1d195d;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x555103=this['_getAttachedDomRoot'](),_0x950e31=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x555103||0x1==_0x950e31['length'])return void(this['pageNumber']=0x1);const _0x2ea005=new _0x4c30e5(_0x555103)['excludeScrollbarsAndBorders'](),_0xdce5c4=new _0x4c30e5(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x18c72a=_0xdce5c4['top']+_0xdce5c4['height']/0x3;let _0x40cf8a=!0x1;const _0x10a4b5=[];for(let _0x38069e=0x1;_0x38069e<_0x950e31['length'];_0x38069e++){const _0x58a513=this['_getPageBreakLineOffset'](_0x38069e,_0xdce5c4);if(!_0x58a513)continue;const _0x5f3446=_0xdce5c4['top']+_0x58a513-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x10a4b5['push']({'pageOffsetTop':_0x5f3446,'domRootRect':_0x2ea005,'domScrollableRect':_0xdce5c4,'pageNumber':_0x38069e}),_0x5f3446>_0x18c72a&&!_0x40cf8a&&(this['pageNumber']=_0x38069e,_0x40cf8a=!0x0);}this['_renderPageBreakLines'](_0x10a4b5),_0x40cf8a||(this['pageNumber']=_0x950e31['length']);}['_renderPageBreakLines'](_0x201c44){const {scrollX:_0x3af79b,scrollY:_0x4de4cd}=_0x1a5a8d['window'];if(_0x201c44['length']){for(const {domScrollableRect:_0x1b0bba,pageOffsetTop:_0x58e05f,domRootRect:_0x5152a4,pageNumber:_0x2608ce}of _0x201c44)_0x1b0bba['top']<_0x58e05f&&_0x58e05f<_0x1b0bba['bottom']&&this['linesRepository']['showLine'](_0x5152a4['left']+_0x3af79b,_0x58e05f+_0x4de4cd,_0x5152a4['width'],_0x2608ce+0x1);}}['_getPageBreakLineOffset'](_0x3f3b5d,_0x4f09f1=null){const _0x2020ce=this['_paginationLookupPlugin']['pageBreaks'][_0x3f3b5d]['offset'];return _0x2020ce?(_0x4f09f1||(_0x4f09f1=new _0x4c30e5(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x2020ce-_0x4f09f1['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x271d54,_0xa1d7ae=!0x0){const _0xa89fce=this['editor']['editing']['view'];_0xa89fce['change'](_0xf8ab85=>{for(const _0x2a409e of _0xa89fce['document']['roots'])_0xa1d7ae?_0xf8ab85['addClass'](_0x271d54,_0x2a409e):_0xf8ab85['removeClass'](_0x271d54,_0x2a409e);});}}function O(_0x579a82,_0x82bfce,..._0x322321){const t=_0x579a82['t'];switch(_0x82bfce){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)',..._0x322321);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 _0x82bfce;}}class PaginationEditing extends _0x52dbff{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationLookup,PaginationRenderer];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x98517b=this['editor']['plugins']['get']('Pagination'),_0x4175a7=this['editor']['plugins']['get'](PaginationLookup),_0x4ced6e=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x98517b),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x4ced6e),this['listenTo'](_0x4175a7,'change:pageBreaks',(_0x556406,_0x2bac99,_0x573373,_0x441f01)=>{this['totalPages']=_0x573373['length'],this['_updatePageBreakMarkers'](_0x573373,_0x441f01);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2d4345=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x54746f;for(const _0x5c241a in _0x2d4345){const _0x315d10=_0x5c241a,_0x13bc13=_0x2d4345[_0x315d10];if('paginationLicenseKeyValid'==_0x13bc13||'paginationLicenseKeyInvalid'==_0x13bc13||'paginationLicenseKeyExpired'==_0x13bc13||'paginationLicenseKeyDomainLimit'==_0x13bc13||'paginationLicenseKeyNotAllowed'==_0x13bc13||'paginationLicenseKeyEvaluationLimit'==_0x13bc13||'paginationLicenseKeyUsageLimit'==_0x13bc13){delete _0x2d4345[_0x315d10],_0x54746f=_0x13bc13,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x54746f&&_0x2d4345['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x54746f&&_0x2d4345['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x54746f&&_0x2d4345['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x54746f&&_0x2d4345['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x54746f&&_0x2d4345['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x54746f&&_0x2d4345['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x3bed3a){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x3bed3a));}['moveSelectionToPage'](_0x179736){if(!this['isEnabled'])return;const _0xe0f65c=this['editor'],_0x28d0d3=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x179736-0x1];_0x28d0d3&&_0xe0f65c['model']['change'](_0x112c45=>{switch(_0x28d0d3['type']){case'manual':{const _0x44ed81=_0xe0f65c['model']['schema']['getNearestSelectionRange'](_0x28d0d3['modelRange']['end'],'forward');_0x112c45['setSelection'](_0x44ed81);break;}case'element':{const _0x48675e=_0xe0f65c['model']['schema']['getNearestSelectionRange'](_0x28d0d3['modelRange']['start'],'forward');_0x112c45['setSelection'](_0x48675e);break;}case'text':{const _0x590ea3=_0x28d0d3['modelRange']['start'];if(_0x590ea3['textNode']&&'\x20'===_0x590ea3['textNode']['data'][_0x590ea3['offset']]){const _0x43f67e=_0x112c45['createPositionAt'](_0x590ea3['parent'],_0x590ea3['offset']+0x1);_0x112c45['setSelection'](_0x43f67e);}else _0x112c45['setSelection'](_0x28d0d3['modelRange']);}}_0xe0f65c['editing']['view']['focus']();});}['goToNextPage'](){const _0x51a776=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x51a776),this['scrollToPage'](_0x51a776);}['goToPreviousPage'](){const _0x35ee0e=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x35ee0e),this['scrollToPage'](_0x35ee0e);}['_updatePageBreakMarkers'](_0x53a486,_0x16fd62){const _0x1391b1=this['editor']['model'];this['isEnabled']&&_0x1391b1['change'](_0x6253d6=>{for(let _0xe9653=0x1;_0xe9653<_0x53a486['length'];_0xe9653++){const _0x1d8f4a=_0x53a486[_0xe9653]['modelRange'],_0x51ddc0='pagination:'+(_0xe9653+0x1);_0x1391b1['markers']['has'](_0x51ddc0)?_0x6253d6['updateMarker'](_0x51ddc0,{'range':_0x1d8f4a}):_0x6253d6['addMarker'](_0x51ddc0,{'range':_0x1d8f4a,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x377f79=_0x53a486['length'];_0x377f79<_0x16fd62['length'];_0x377f79++){const _0x1c8161='pagination:'+(_0x377f79+0x1);_0x1391b1['markers']['has'](_0x1c8161)&&_0x6253d6['removeMarker'](_0x1c8161);}});}['_setUpDataDowncastConversion'](){const _0x59bf0b='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0xa20a39=>{_0xa20a39['on']('addMarker:'+_0x59bf0b,(_0x1ffd52,{markerRange:_0x3cfcb4,markerName:_0x5c8766},_0x411219)=>{if(!_0x411219['options']['pagination'])return;if(!_0x411219['consumable']['consume'](_0x3cfcb4,_0x1ffd52['name']))return;const _0x4a8f0f=_0x3cfcb4['getContainedElement']();let _0x1da81a=_0x4a8f0f?_0x411219['mapper']['toViewElement'](_0x4a8f0f):null;if(!_0x1da81a){const _0x344473=_0x3cfcb4['start'];if(_0x411219['schema']['checkChild'](_0x344473,'$text')){const _0x121cf4=_0x411219['mapper']['toViewPosition'](_0x344473);_0x1da81a=_0x411219['writer']['createContainerElement']('span'),_0x1da81a['getFillerOffset']=()=>null,_0x411219['writer']['insert'](_0x121cf4,_0x1da81a);}else{const _0x104f58=_0x344473['nodeAfter'];_0x1da81a=_0x411219['mapper']['toViewElement'](_0x104f58);}}for(;_0x1da81a['parent']!==_0x1da81a['root']&&0x0===_0x1da81a['index'];)_0x1da81a=_0x1da81a['parent'];const _0x24264c=_0x5c8766['substring'](0xb);_0x1da81a['hasClass']('page-break')||(_0x411219['writer']['setStyle']('page-break-before','always',_0x1da81a),_0x411219['writer']['setAttribute']('data-pagination-page',_0x24264c,_0x1da81a),_0x411219['mapper']['bindElementToMarker'](_0x1da81a,_0x5c8766)),_0x1ffd52['stop']();});});}['_setupKeystrokes'](){const _0x303a4c=this['editor'];_0x303a4c['keystrokes']['set']('Shift+Pageup',(_0xabde46,_0x4ea0df)=>{this['goToPreviousPage'](),_0x4ea0df();}),_0x303a4c['keystrokes']['set']('Shift+Pagedown',(_0x539e76,_0x3cbb3a)=>{this['goToNextPage'](),_0x3cbb3a();}),_0x303a4c['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x303a4c['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x303a4c['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x303a4c['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x105793){return _0x105793<0x1&&(_0x105793=0x1),_0x105793>this['totalPages']&&(_0x105793=this['totalPages']),_0x105793;}}class PageNavigatorView extends _0x494d81{['pageNumberView'];constructor(_0x5c0cac){super(_0x5c0cac);const _0x3d4563=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x503c92(_0x5c0cac,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x1fa9cc=>O(_0x5c0cac,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x1fa9cc)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x45da31=>!_0x45da31),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x3d4563['if']('isEnabled','ck-disabled',_0x282580=>!_0x282580)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x3d4563['to']('totalPages')}]}]});}['render'](){super['render']();const _0x5915d8=this['pageNumberView']['element'],_0x2dc4f9=_0x2ffb61=>{this['pageNumberView']['element']['value']=String(_0x2ffb61);};_0x2dc4f9(this['pageNumber']),this['on']('change:pageNumber',(_0x2c174d,_0x512de2,_0x2a2265)=>{_0x2dc4f9(_0x2a2265);}),this['listenTo'](_0x5915d8,'keydown',(_0x15e228,_0x3fd810)=>{if('ArrowUp'===_0x3fd810['key']||'ArrowDown'===_0x3fd810['key'])return void _0x3fd810['stopPropagation']();if(_0x3fd810['keyCode']!==_0x165779['enter'])return;_0x3fd810['preventDefault']();const _0x1cf550=_0x5915d8['valueAsNumber'];Number['isNaN'](_0x1cf550)?_0x5915d8['value']=String(this['pageNumber']):(_0x5915d8['checkValidity']()?this['pageNumber']=_0x1cf550:_0x1cf550>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x5915d8['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x5915d8['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x5915d8,'blur',()=>{_0x5915d8['value']=String(this['pageNumber']);}),this['listenTo'](_0x5915d8,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['pageNumberView']['element']['focus']();}}class PaginationUI extends _0x52dbff{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1ce648=this['editor'],_0x4f062a=_0x1ce648['plugins']['get']('PaginationEditing');_0x1ce648['ui']['componentFactory']['add']('pageNavigation',_0x3785b2=>{const _0x455b5e=new PageNavigatorView(_0x3785b2);return _0x455b5e['bind']('pageNumber')['to'](_0x4f062a),_0x455b5e['bind']('totalPages')['to'](_0x4f062a),_0x455b5e['bind']('isEnabled')['to'](_0x4f062a),_0x455b5e['on']('navigation',(_0x206500,_0x3f8ab8)=>{_0x4f062a['moveSelectionToPage'](_0x3f8ab8),_0x4f062a['scrollToPage'](_0x3f8ab8);}),_0x455b5e;}),_0x1ce648['ui']['componentFactory']['add']('nextPage',_0x71f45=>{const _0x48f492=new _0x55a156(_0x71f45);return _0x48f492['isEnabled']=!0x0,_0x48f492['label']=O(_0x1ce648['locale'],'Go\x20to\x20next\x20page'),_0x48f492['icon']=_0x5b18e5,_0x48f492['tooltip']=!0x0,_0x48f492['keystroke']='Shift+PageDown',_0x48f492['bind']('isEnabled')['to'](_0x4f062a),this['listenTo'](_0x48f492,'execute',()=>{_0x4f062a['goToNextPage']();}),_0x48f492;}),_0x1ce648['ui']['componentFactory']['add']('previousPage',_0x2b3795=>{const _0x863cb8=new _0x55a156(_0x2b3795);return _0x863cb8['isEnabled']=!0x0,_0x863cb8['label']=O(_0x1ce648['locale'],'Go\x20to\x20previous\x20page'),_0x863cb8['icon']=_0x35a1d5,_0x863cb8['tooltip']=!0x0,_0x863cb8['keystroke']='Shift+PageUp',_0x863cb8['bind']('isEnabled')['to'](_0x4f062a),this['listenTo'](_0x863cb8,'execute',()=>{_0x4f062a['goToPreviousPage']();}),_0x863cb8;});}}class Pagination extends _0x52dbff{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x4a3132){super(_0x4a3132),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x871019=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x871019),this['bind']('totalPages')['to'](_0x871019),_0x138cb4['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x16e748){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x16e748);}}export{Pagination,PaginationRenderer};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-pagination",
3
- "version": "48.2.0-alpha.4",
3
+ "version": "48.2.0-alpha.5",
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.2.0-alpha.4",
25
- "@ckeditor/ckeditor5-engine": "48.2.0-alpha.4",
26
- "@ckeditor/ckeditor5-icons": "48.2.0-alpha.4",
27
- "@ckeditor/ckeditor5-ui": "48.2.0-alpha.4",
28
- "@ckeditor/ckeditor5-utils": "48.2.0-alpha.4",
24
+ "@ckeditor/ckeditor5-core": "48.2.0-alpha.5",
25
+ "@ckeditor/ckeditor5-engine": "48.2.0-alpha.5",
26
+ "@ckeditor/ckeditor5-icons": "48.2.0-alpha.5",
27
+ "@ckeditor/ckeditor5-ui": "48.2.0-alpha.5",
28
+ "@ckeditor/ckeditor5-utils": "48.2.0-alpha.5",
29
29
  "es-toolkit": "1.45.1"
30
30
  },
31
31
  "files": [