@ckeditor/ckeditor5-pagination 48.8.1-alpha.0 → 48.8.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x27b960}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x4f65a8,InputNumberView as _0x38c826,ButtonView as _0x35f0ed}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x5700ae,global as _0x49a940,Rect as _0x3b7683,uid as _0x2dbc57,toUnit as _0x3e7856,first as _0x8773f9,env as _0x29ec5f,ResizeObserver as _0x5da25b,keyCodes as _0x465fb7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x1ec0e5}from'es-toolkit/compat';import{IconArrowDown as _0x3a5955,IconArrowUp as _0x457cb6}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x27b960{['_recalculatePageBreaksDebounced']=_0x1ec0e5(()=>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 _0x5700ae('pagination-config-not-found',this['editor']['config']);const _0x31ee5c=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x31ee5c),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x5c9858,_0x1340e3,_0x2a2526)=>{_0x2a2526&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x19cecd){const _0x361242=_0x3e9149([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]),_0x36d94d=0xc82cb1e,_0x469de2=0xc85413e^_0x36d94d,_0x5f12a6=window[_0x3e9149([0x44,0x61,0x74,0x65])][_0x3e9149([0x6e,0x6f,0x77])](),_0x20b120=_0x19cecd[_0x3e9149([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3239ff=new window[(_0x3e9149([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47e32a=>{_0x20b120[_0x3e9149([0x6f,0x6e,0x63,0x65])](_0x3e9149([0x72,0x65,0x61,0x64,0x79]),_0x47e32a);}),_0x797a5d={[_0x3e9149([0x6b,0x74,0x79])]:_0x3e9149([0x45,0x43]),[_0x3e9149([0x75,0x73,0x65])]:_0x3e9149([0x73,0x69,0x67]),[_0x3e9149([0x63,0x72,0x76])]:_0x3e9149([0x50,0x2d,0x32,0x35,0x36]),[_0x3e9149([0x78])]:_0x3e9149([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]),[_0x3e9149([0x79])]:_0x3e9149([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]),[_0x3e9149([0x61,0x6c,0x67])]:_0x3e9149([0x45,0x53,0x32,0x35,0x36])},_0x19ccd4=_0x20b120[_0x3e9149([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e9149([0x67,0x65,0x74])](_0x3e9149([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2abea3(){let _0x2c9a57,_0x172362=null,_0xe6daee=null;try{if(_0x19ccd4==_0x3e9149([0x47,0x50,0x4c]))return _0x3e9149([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c9a57=_0x10aa1a(),!_0x2c9a57)return _0x3e9149([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c9a57[_0x3e9149([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xe6daee=_0x271a24(_0x2c9a57[_0x3e9149([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c9a57[_0x3e9149([0x6a,0x74,0x69])])),await _0x8817b1()?_0x567619()?_0x1d0223()?_0x3e9149([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52ce7c()?(_0x2c9a57[_0x3e9149([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e9149([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x172362=_0x24cf9b(_0x3e9149([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x173de9()):_0x3e9149([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e9149([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e9149([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e9149([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d0223(){const _0x58f9c1=[_0x3e9149([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e9149([0x74,0x72,0x69,0x61,0x6c])][_0x3e9149([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9a57[_0x3e9149([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f12a6/0x3e8:0xe10*_0x469de2;return _0x2c9a57[_0x3e9149([0x65,0x78,0x70])]<_0x58f9c1;}function _0x567619(){const _0x397906=_0x2c9a57[_0x3e9149([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x397906&&(!!_0x397906[_0x3e9149([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e9149([0x2a]))||!!_0x397906[_0x3e9149([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e9149([0x50,0x41,0x47])));}function _0x52ce7c(){const _0x2e0f7b=_0x2c9a57[_0x3e9149([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e0f7b||0x0==_0x2e0f7b[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41e794}=new URL(window[_0x3e9149([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e0f7b[_0x3e9149([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41e794))return!0x0;const _0x34acba=_0x41e794[_0x3e9149([0x73,0x70,0x6c,0x69,0x74])](_0x3e9149([0x2e]));return _0x2e0f7b[_0x3e9149([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b5bf4=>_0x4b5bf4[_0x3e9149([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e9149([0x2a])))[_0x3e9149([0x6d,0x61,0x70])](_0x1dac23=>_0x1dac23[_0x3e9149([0x73,0x70,0x6c,0x69,0x74])](_0x3e9149([0x2e])))[_0x3e9149([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a427d=>_0x3a427d[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x34acba[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e9149([0x6d,0x61,0x70])](_0x537d5d=>Array(_0x34acba[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x537d5d[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e9149([0x66,0x69,0x6c,0x6c])](_0x537d5d[0x0]===_0x3e9149([0x2a])?_0x3e9149([0x2a]):'')[_0x3e9149([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x537d5d))[_0x3e9149([0x73,0x6f,0x6d,0x65])](_0x3a4d82=>_0x34acba[_0x3e9149([0x65,0x76,0x65,0x72,0x79])]((_0x142b5f,_0x333e55)=>_0x3a4d82[_0x333e55]===_0x142b5f||_0x3a4d82[_0x333e55]===_0x3e9149([0x2a])));}function _0x173de9(){return _0x172362&&_0xe6daee?new window[(_0x3e9149([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x568810,_0x3f4928)=>{_0x172362[_0x3e9149([0x74,0x68,0x65,0x6e])](_0x568810,_0x3f4928),_0xe6daee[_0x3e9149([0x74,0x68,0x65,0x6e])](_0x23bf92=>{_0x23bf92!=_0x3e9149([0x56,0x61,0x6c,0x69,0x64])&&_0x568810(_0x23bf92);},_0x3f4928);}):_0x172362||_0xe6daee||_0x3e9149([0x56,0x61,0x6c,0x69,0x64]);}}function _0x271a24(_0x44a8c7,_0x1e945e){return new window[(_0x3e9149([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5964a0=>{if(_0x5b92bc())return _0x5964a0(_0x3e9149([0x56,0x61,0x6c,0x69,0x64]));_0xa381d0(),_0x20b120[_0x3e9149([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e9149([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ae7e0=!0x1;const _0x568041=_0x2dbc57();function _0xdc0cbd(_0x4a2889){return!!_0x4a2889&&(typeof _0x4a2889===_0x3e9149([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a2889===_0x3e9149([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a2889[_0x3e9149([0x74,0x68,0x65,0x6e])]===_0x3e9149([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a2889[_0x3e9149([0x63,0x61,0x74,0x63,0x68])]===_0x3e9149([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x484be5(_0xb8741e){_0xe56003(_0xb8741e)[_0x3e9149([0x74,0x68,0x65,0x6e])](_0x59b55e=>{if(!_0x59b55e||_0x59b55e[_0x3e9149([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e9149([0x6f,0x6b]))return _0x3e9149([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc5ed61(_0xd30168(_0x568041+_0x1e945e))!=_0x59b55e[_0x3e9149([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e9149([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e9149([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e9149([0x74,0x68,0x65,0x6e])](_0x4a32a8=>(_0x534d01(),_0x4a32a8),()=>{const _0x163453=_0x17c77d();return null==_0x163453?(_0x534d01(),_0x3e9149([0x56,0x61,0x6c,0x69,0x64])):_0x3e9149(_0x5f12a6-_0x163453>(0x288e4f1e^_0x36d94d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e9149([0x74,0x68,0x65,0x6e])](_0x5964a0)[_0x3e9149([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5964a0(_0x3e9149([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c582e=0xcb4259e^_0x36d94d;function _0x534d01(){const _0x5bb054=_0x3e9149([0x6c,0x6c,0x63,0x74,0x2d])+_0xc5ed61(_0xd30168(_0x44a8c7)),_0x43345a=_0x45459c(_0xc5ed61(window[_0x3e9149([0x4d,0x61,0x74,0x68])][_0x3e9149([0x63,0x65,0x69,0x6c])](_0x5f12a6/_0x3c582e)));window[_0x3e9149([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e9149([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bb054,_0x43345a);}function _0x17c77d(){const _0x2938fa=_0x3e9149([0x6c,0x6c,0x63,0x74,0x2d])+_0xc5ed61(_0xd30168(_0x44a8c7)),_0x4e5817=window[_0x3e9149([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e9149([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2938fa);return _0x4e5817?window[_0x3e9149([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45459c(_0x4e5817),0x10)*_0x3c582e:null;}function _0xe56003(_0x15678c){return new window[(_0x3e9149([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a066d,_0x415682)=>{_0x15678c[_0x3e9149([0x74,0x68,0x65,0x6e])](_0x5a066d,_0x415682),window[_0x3e9149([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x415682,0xc831fde^_0x36d94d);});}}_0x20b120[_0x3e9149([0x6f,0x6e])](_0x3e9149([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1257bd,_0x315142)=>{if(_0x315142[0x0]!=_0x44a8c7)return _0x5964a0(_0x3e9149([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x315142[0x1]={..._0x315142[0x1],[_0x3e9149([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x568041};},{[_0x3e9149([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e9149([0x68,0x69,0x67,0x68])}),_0x20b120[_0x3e9149([0x6f,0x6e])](_0x3e9149([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ba012=>{_0xdc0cbd(_0x4ba012[_0x3e9149([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ae7e0=!0x0,_0x484be5(_0x4ba012[_0x3e9149([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e9149([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e9149([0x6c,0x6f,0x77])}),_0x3239ff[_0x3e9149([0x74,0x68,0x65,0x6e])](()=>{_0x2ae7e0||_0x5964a0(_0x3e9149([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b92bc(){return _0x20b120[_0x3e9149([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e9149([0x76,0x69,0x65,0x77])][_0x3e9149([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e9149([0x61,0x75,0x74,0x6f]);}function _0xa381d0(){_0x20b120[_0x3e9149([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e9149([0x76,0x69,0x65,0x77])][_0x3e9149([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e9149([0x61,0x75,0x74,0x6f]);}}function _0x24cf9b(_0x1b5f8f){const _0x56eae0=[new window[(_0x3e9149([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x440701=>setTimeout(_0x440701,0xc8bf5d2^_0x36d94d)),_0x3239ff[_0x3e9149([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e9149([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c6efe=>{let _0x65a4c1=0x0;_0x20b120[_0x3e9149([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e9149([0x6f,0x6e])](_0x3e9149([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf0155,_0x57cb5e)=>{_0x57cb5e[0x0][_0x3e9149([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x65a4c1++,_0x65a4c1==(0xc82cef6^_0x36d94d)&&(_0x1c6efe(),_0xf0155[_0x3e9149([0x6f,0x66,0x66])]());});}))];return window[_0x3e9149([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e9149([0x72,0x61,0x63,0x65])](_0x56eae0)[_0x3e9149([0x74,0x68,0x65,0x6e])](()=>_0x1b5f8f);}async function _0x466a43(){await _0x3239ff,_0x20b120[_0x3e9149([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e9149([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1db1af,_0x20b120[_0x3e9149([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e9149([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1db1af,_0x20b120[_0x3e9149([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e9149([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x540b7f(_0x1abf66){const _0xf2a11b=_0x44866c();_0x20b120[_0xf2a11b]=_0x3e9149([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1abf66,_0x1abf66!=_0x3e9149([0x56,0x61,0x6c,0x69,0x64])&&_0x466a43();}function _0x44866c(){const _0x2bc4eb=window[_0x3e9149([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e9149([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e9149([0x6e,0x6f,0x77])]())[_0x3e9149([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e9149([0x2e]),'');let _0x3998cb=_0x3e9149([0x49]);for(let _0x3faa7a=0x0;_0x3faa7a<_0x2bc4eb[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3faa7a+=0x2){let _0x45871e=window[_0x3e9149([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bc4eb[_0x3e9149([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3faa7a,_0x3faa7a+0x2));_0x45871e>=_0x361242[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45871e-=_0x361242[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3998cb+=_0x361242[_0x45871e];}return _0x3998cb;}function _0x10aa1a(){const _0x3fbe93=_0x19ccd4[_0x3e9149([0x73,0x70,0x6c,0x69,0x74])](_0x3e9149([0x2e]));if(0x3!=_0x3fbe93[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x280db8(_0x3fbe93[0x1]);function _0x280db8(_0x2d48e9){const _0xbbcac2=_0x4aa680(_0x2d48e9);return _0xbbcac2&&_0x4a877e()?_0xbbcac2:null;function _0x4a877e(){const _0x529593=_0xbbcac2[_0x3e9149([0x6a,0x74,0x69])],_0x4d5f49=window[_0x3e9149([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x529593[_0x3e9149([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x529593[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33c3bb={..._0xbbcac2,[_0x3e9149([0x6a,0x74,0x69])]:_0x529593[_0x3e9149([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x529593[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33c3bb[_0x3e9149([0x76,0x63])],_0xd30168(_0x33c3bb)==_0x4d5f49;}}}async function _0x8817b1(){let _0x9e2ddf=!0x0;try{const _0x1b12f4=_0x19ccd4[_0x3e9149([0x73,0x70,0x6c,0x69,0x74])](_0x3e9149([0x2e])),[_0x52ebf4,_0x52a6ef,_0x3159a3]=_0x1b12f4;return _0x593b19(_0x52ebf4),await _0x5d0d53(_0x52ebf4,_0x52a6ef,_0x3159a3),_0x9e2ddf;}catch{return!0x1;}function _0x593b19(_0x5cb0fd){const _0x1d7599=_0x4aa680(_0x5cb0fd);_0x1d7599&&_0x1d7599[_0x3e9149([0x61,0x6c,0x67])]==_0x3e9149([0x45,0x53,0x32,0x35,0x36])||(_0x9e2ddf=!0x1);}async function _0x5d0d53(_0x175e57,_0x5ab100,_0x5e95cc){const _0x1629f5=window[_0x3e9149([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e9149([0x66,0x72,0x6f,0x6d])](_0x198170(_0x5e95cc),_0x1753dd=>_0x1753dd[_0x3e9149([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x491463=new window[(_0x3e9149([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e9149([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x175e57+_0x3e9149([0x2e])+_0x5ab100),_0x51a627=window[_0x3e9149([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e9149([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51a627)return;const _0x2124bd=await _0x51a627[_0x3e9149([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e9149([0x6a,0x77,0x6b]),_0x797a5d,{[_0x3e9149([0x6e,0x61,0x6d,0x65])]:_0x3e9149([0x45,0x43,0x44,0x53,0x41]),[_0x3e9149([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e9149([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e9149([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51a627[_0x3e9149([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e9149([0x6e,0x61,0x6d,0x65])]:_0x3e9149([0x45,0x43,0x44,0x53,0x41]),[_0x3e9149([0x68,0x61,0x73,0x68])]:{[_0x3e9149([0x6e,0x61,0x6d,0x65])]:_0x3e9149([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2124bd,_0x1629f5,_0x491463)||(_0x9e2ddf=!0x1);}}function _0x4aa680(_0x56db8a){return _0x56db8a[_0x3e9149([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e9149([0x65,0x79]))?JSON[_0x3e9149([0x70,0x61,0x72,0x73,0x65])](_0x198170(_0x56db8a)):null;}function _0x198170(_0x1d4ad7){return window[_0x3e9149([0x61,0x74,0x6f,0x62])](_0x1d4ad7[_0x3e9149([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e9149([0x2b]))[_0x3e9149([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e9149([0x2f])));}function _0xd30168(_0x2fa735){let _0xb51904=0x1505;function _0x457946(_0x240bbd){for(let _0xf97b9b=0x0;_0xf97b9b<_0x240bbd[_0x3e9149([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf97b9b++){const _0x31d32b=_0x240bbd[_0x3e9149([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf97b9b);_0xb51904=(_0xb51904<<0x5)+_0xb51904+_0x31d32b,_0xb51904&=_0xb51904;}}function _0x44cb7(_0x1c3350){Array[_0x3e9149([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c3350)?_0x1c3350[_0x3e9149([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44cb7):_0x1c3350&&typeof _0x1c3350==_0x3e9149([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e9149([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c3350)[_0x3e9149([0x73,0x6f,0x72,0x74])]()[_0x3e9149([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xb8c04b,_0x535a89])=>{_0x457946(_0xb8c04b),_0x44cb7(_0x535a89);}):_0x457946(window[_0x3e9149([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c3350));}return _0x44cb7(_0x2fa735),_0xb51904>>>0x0;}function _0xc5ed61(_0x50368a){return _0x50368a[_0x3e9149([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e9149([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e9149([0x30]));}function _0x45459c(_0x260d63){return _0x260d63[_0x3e9149([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e9149([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e9149([0x6a,0x6f,0x69,0x6e])]('');}function _0x1db1af(){}function _0x3e9149(_0x2879d8){return _0x2879d8['map'](_0xa5a510=>String['fromCharCode'](_0xa5a510))['join']('');}_0x540b7f(await _0x2abea3());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x4e3846=this['editor'],_0xbff486=_0x4e3846['editing']['view'],_0x5a924a=this['_getAttachedDomRoot']();if(!_0x5a924a||0x0===_0x5a924a['childElementCount'])return void _0x4e3846['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x2a8c77,pageHeight:_0x1c9262}=_0x4e3846['config']['get']('pagination'),{top:_0x418a5d,left:_0x1b49bf,bottom:_0x211500,right:_0x234c7c}=this['_configuredPaddings'];this['_pagesContainer']=new _0x4f65a8(_0x4e3846['locale']);const _0x4edaf5=this['_pagesContainer'];_0x4edaf5['set']('class',''),_0x4edaf5['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x2a8c77,'width':_0x2a8c77,'height':'calc(\x20'+_0x1c9262+'\x20-\x20'+_0x418a5d+'\x20-\x20'+_0x211500+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x234c7c+'\x200\x20'+_0x1b49bf,'columnGap':'calc('+_0x1b49bf+'\x20+\x20'+_0x234c7c+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x4edaf5['bindTemplate']['to']('class')}}),_0x4edaf5['render'](),_0x5a924a['parentNode']['insertBefore'](_0x4edaf5['element'],_0x5a924a['nextSibling']),this['listenTo'](_0xbff486,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x1ae0b5 of this['editor']['editing']['view']['domRoots']['values']())if(_0x1ae0b5['ownerDocument']['body']['contains'](_0x1ae0b5))return _0x1ae0b5;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x50a491=this['editor']['editing']['view'],_0x255b77=this['_pagesContainer'],_0x3360de=this['_getAttachedDomRoot']();if(!_0x3360de)return Promise['resolve']();for(_0x255b77['class']=['ck-reset','ck-pagination-view',..._0x3360de['classList']]['join']('\x20');_0x255b77['element']['firstChild'];)_0x255b77['element']['firstChild']['remove']();const _0x488328=Array['from'](_0x50a491['domRoots']);_0x488328['sort'](([,_0x137a2d],[,_0x35cd23])=>_0x137a2d['compareDocumentPosition'](_0x35cd23)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x3511d7,_0xe53139]of _0x488328){const _0x588b84=_0xe53139['cloneNode'](!0x0);'attributeStyleMap'in _0x588b84&&_0x588b84['attributeStyleMap']['clear'](),_0x588b84['dataset']['rootName']=_0x3511d7,_0x588b84['className']='ck-content\x20ck-pagination_enabled',_0x588b84['removeAttribute']('id'),_0x588b84['tabIndex']=-0x1,_0x255b77['element']['append'](_0x588b84);}const _0x23b93a=Array['from'](_0x255b77['element']['querySelectorAll']('img'));return function(_0x41dfc7){return Promise['all'](_0x41dfc7['map'](_0x127288=>Promise['race']([b(_0x127288),k(0x3e8)])));}(_0x23b93a)['then'](()=>{for(const _0xb8b80a of _0x23b93a['filter'](_0x80960d=>!_0x80960d['closest']('table')))if(_0xb8b80a['offsetParent']){const _0x3f98fa=_0x49a940['window']['getComputedStyle'](_0xb8b80a),_0x3ec634=_0x49a940['document']['createElement']('span');for(const _0x3c0af8 of _0x3f98fa)_0x3ec634['style']['setProperty'](_0x3c0af8,_0x3f98fa[_0x3c0af8]);_0x3ec634['style']['backgroundImage']='url(\x20'+_0xb8b80a['src']+'\x20)',_0x3ec634['style']['breakInside']='avoid','PICTURE'==_0xb8b80a['parentElement']?.['tagName']?_0xb8b80a['parentElement']['replaceWith'](_0x3ec634):_0xb8b80a['replaceWith'](_0x3ec634);}return new Promise(_0x1437dc=>_0x49a940['window']['requestAnimationFrame'](()=>_0x1437dc()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x333bde=this['_pagesContainer']['element'];if(!_0x333bde['ownerDocument']['body']['contains'](_0x333bde))return;const _0x3a1b5d=new _0x3b7683(_0x333bde)['excludeScrollbarsAndBorders'](),_0x10a79f=Math['floor'](_0x3a1b5d['width']+0x64),_0x35d447=L(_0x333bde,Math['floor'](_0x3a1b5d['left']-_0x333bde['scrollLeft']),_0x10a79f,_0x3a1b5d['height'])['map'](_0x126f56=>this['_mapPageStarterInfoToPageBreakInfo'](_0x126f56))['filter'](_0x3da161=>!0x1!==_0x3da161);_0x35d447['every'](_0xd22503=>!!_0xd22503)&&(this['pageBreaks']=_0x35d447);}['_mapPageStarterInfoToPageBreakInfo'](_0x48bd64){const _0x197319=this['editor']['editing']['view'],_0x46f284=this['editor']['editing']['mapper'],_0x3f09ab=_0x197319['domConverter'],_0x363e06=_0x48bd64['path']['shift'](),_0xb65f60=this['_pagesContainer']['element']['childNodes'][_0x363e06]['dataset']['rootName'],_0x4be09c=_0x197319['getDomRoot'](_0xb65f60);if(!_0x4be09c)return null;const _0x1965d7=function(_0x529cb3,_0x4513e1){let _0x29a962=_0x529cb3;for(const _0xee0bab of _0x4513e1['path']){if(!_0x29a962)return null;_0x29a962=_0x29a962['childNodes'][_0xee0bab];}return _0x29a962;}(_0x4be09c,_0x48bd64);if(!_0x1965d7)return null;const _0x425c5a=_0x3f09ab['domPositionToView'](_0x1965d7,_0x48bd64['textOffset']||0x0);return _0x425c5a?'manual'==_0x48bd64['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x425c5a,_0x1965d7):'text'==_0x48bd64['type']&&_0x46f284['toModelPosition'](_0x425c5a)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x425c5a,_0x1965d7,_0x48bd64['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x425c5a,_0x1965d7,_0x48bd64['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x5e9506,_0x2676f4){const _0x22845e=this['editor']['model'],_0x12a284=this['editor']['editing']['mapper']['toModelElement'](_0x5e9506['parent']),_0x3f775f=_0x22845e['createRangeOn'](_0x12a284);return new PageBreakInfo({'type':'manual','modelRange':_0x3f775f,'domNode':_0x2676f4,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x57504d,_0xeacb99,_0x21e073){const _0x561ab3=this['editor']['model'],_0x55d716=this['editor']['editing']['mapper'],_0x30efec=this['editor']['editing']['view']['domConverter'];if(_0x21e073>=_0xeacb99['length'])return null;const _0x2515f5=_0x55d716['toModelPosition'](_0x57504d),_0x14db86=_0x561ab3['createRange'](_0x2515f5),_0x28734c=_0x55d716['findMappedViewAncestor'](_0x57504d),_0x150657=_0x30efec['mapViewToDom'](_0x28734c);return new PageBreakInfo({'type':'text','modelRange':_0x14db86,'domNode':_0xeacb99,'offset':w(_0xeacb99,_0x21e073,_0x150657)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x1b1f3b,_0x27af52,_0x2e4f5a){const _0x45bafb=this['editor']['model'],_0x394005=this['editor']['editing'],_0x1d4c34=_0x394005['mapper'],_0x5349f4=_0x394005['view']['domConverter'],_0x7d9b36=_0x1d4c34['findMappedViewAncestor'](_0x1b1f3b),_0x30a787=_0x1d4c34['toModelElement'](_0x7d9b36);if(!_0x30a787||_0x30a787['is']('element','$root'))return!0x1;const _0x247825=function(_0x402674){const _0x233176=_0x402674['parent'],_0x2a8fea=_0x233176['root']['document']['model'],_0x1d0b42=_0x233176['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x591add=null;for(const _0x566e01 of _0x1d0b42){if(_0x566e01['is']('rootElement'))return _0x591add;if(!_0x2a8fea['createPositionBefore'](_0x566e01)['isTouching'](_0x402674))return _0x591add;_0x591add=_0x566e01;}}(_0x45bafb['createPositionBefore'](_0x30a787)),_0x1bdeea=_0x247825||_0x30a787;let _0x55b64a=_0x1d4c34['toViewElement'](_0x1bdeea),_0x1ed648=_0x45bafb['createRangeOn'](_0x1bdeea);const _0x2bb678=_0x45bafb['createPositionBefore'](_0x1bdeea)['nodeBefore'];if(_0x2bb678&&_0x2bb678['is']('element','imageBlock')){const _0x5d23e9=_0x1d4c34['toViewElement'](_0x2bb678),_0x2bddd2=_0x5349f4['mapViewToDom'](_0x5d23e9),_0x1573ad=_0x49a940['window']['getComputedStyle'](_0x2bddd2)['float'];'left'!=_0x1573ad&&'right'!=_0x1573ad||(_0x1ed648=_0x45bafb['createRangeOn'](_0x2bb678));}for(;_0x55b64a['parent']!==_0x55b64a['root']&&0x0===_0x55b64a['index'];)_0x55b64a=_0x55b64a['parent'];const _0x3ccd51=new _0x3b7683(S(_0x27af52)?_0x27af52:y(_0x27af52)),_0x47ed63=_0x2e4f5a?_0x3ccd51['height']-_0x2e4f5a:0x0,_0x3409ab=_0x5349f4['mapViewToDom'](_0x55b64a),_0x2cd05b=new _0x3b7683(_0x3409ab);return new PageBreakInfo({'type':'element','modelRange':_0x1ed648,'domNode':_0x3409ab,'offset':Math['round'](_0x47ed63)||_0x7d9b36!=P(_0x1b1f3b)?_0x47ed63+_0x3ccd51['top']-_0x2cd05b['top']:0x0});}get['_configuredPaddings'](){const _0x28f153=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x28f153);}static['_findPageStarterInfos'](_0x112b77,_0x32ac21,_0x503c70,_0x12b11b,_0x170a01){return L(_0x112b77,_0x32ac21,_0x503c70,_0x12b11b,_0x170a01);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x4b7cfd,modelRange:_0x16b8fd,domNode:_0x3c94b4,offset:_0x5bfb06}){this['type']=_0x4b7cfd,this['modelRange']=_0x16b8fd,this['_domNode']=_0x3c94b4,this['_offset']=_0x5bfb06;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0xa597b=new _0x3b7683(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0xa597b['top']+_0xa597b['height']/0x2:_0xa597b['top']+this['_offset'];}}function w(_0xe15b13,_0x17511d,_0x11193e){const _0x1b1cf0=y(_0xe15b13),_0x430237=function(_0x2c6bc3){const _0x3c240d=_0x49a940['document']['createRange']();return _0x3c240d['selectNodeContents'](_0x2c6bc3),_0x3c240d;}(_0x11193e);let _0x1ee591;_0x1ee591=0x0==_0x17511d?x(_0x430237['startContainer'],_0x430237['startOffset'],_0xe15b13['parentNode'],Array['from'](_0xe15b13['parentNode']['childNodes'])['indexOf'](_0xe15b13)):x(_0x430237['startContainer'],_0x430237['startOffset'],_0xe15b13,_0x17511d);const _0x1a016d=x(_0xe15b13,_0x17511d,_0x430237['endContainer'],_0x430237['endOffset']),_0x18c003=new _0x3b7683(_0x1ee591)['bottom'];return(new _0x3b7683(_0x1a016d)['top']+_0x18c003)/0x2-new _0x3b7683(_0x1b1cf0)['top'];}function P(_0x281314){let _0x9cdb1b=_0x281314['parent'];for(;_0x9cdb1b['is']('$text')||_0x9cdb1b['is']('attributeElement');)_0x9cdb1b=_0x9cdb1b['parent'];return _0x9cdb1b;}function b(_0x49029e){return _0x49029e['hasAttribute']('width')&&_0x49029e['hasAttribute']('height')?Promise['resolve']():new Promise(_0x353a5b=>{function _0x2a3987(){_0x49029e['removeEventListener']('load',_0x2a3987),_0x49029e['removeEventListener']('error',_0x2a3987),_0x353a5b();}_0x49029e['complete']?_0x353a5b():(_0x49029e['addEventListener']('load',_0x2a3987),_0x49029e['addEventListener']('error',_0x2a3987));});}function k(_0x599017){return new Promise(_0x22371e=>setTimeout(_0x22371e,_0x599017));}function y(_0x19954a){const _0x20dc6f=_0x49a940['document']['createRange']();return _0x20dc6f['selectNode'](_0x19954a),_0x20dc6f;}function v(_0x34ad14,_0x15748e,_0x2d416d){const _0x19198a=_0x49a940['document']['createRange']();return _0x19198a['setStart'](_0x34ad14,_0x15748e),_0x19198a['setEnd'](_0x34ad14,_0x2d416d),_0x19198a;}function x(_0x10271e,_0x1f3a76,_0x26d015,_0x2f1361){const _0x4d0f30=_0x49a940['document']['createRange']();return _0x4d0f30['setStart'](_0x10271e,_0x1f3a76),_0x4d0f30['setEnd'](_0x26d015,_0x2f1361),_0x4d0f30;}function L(_0x501bd7,_0xb7d97e,_0x5bc3f5,_0x34334e,_0x313aa4){const _0x1d058a=[];for(const [_0x51d92f,_0x3cf51c]of _0x501bd7['childNodes']['entries']()){let _0x2a6e24=[];S(_0x3cf51c)&&_0x3cf51c['offsetParent']&&['static','relative']['includes'](_0x49a940['window']['getComputedStyle'](_0x3cf51c)['position'])?_0x2a6e24=N(_0x3cf51c,_0x51d92f,_0xb7d97e,_0x5bc3f5,_0x34334e,_0x313aa4):I(_0x3cf51c)&&(_0x2a6e24=_(_0x3cf51c,_0x51d92f,_0xb7d97e,_0x5bc3f5,_0x313aa4)),_0x2a6e24['length']&&(_0x1d058a['push'](..._0x2a6e24),_0xb7d97e+=_0x2a6e24['length']*_0x5bc3f5,_0x313aa4=!0x1);}return _0x1d058a;}function N(_0x1fcaec,_0x42dbd2,_0x2aa8e5,_0x526191,_0x344aed,_0x5dde50){const _0x575199=[];var _0x1e9cd0;if((_0x1e9cd0=_0x1fcaec['previousSibling'])&&S(_0x1e9cd0)&&Boolean(_0x1e9cd0['classList']['contains']('page-break')||_0x1e9cd0['closest']('.page-break'))&&(_0x575199['push']({'type':'manual','offset':0x0,'path':[_0x42dbd2-0x1]}),_0x5dde50=!0x0),'table-row'==_0x49a940['window']['getComputedStyle'](_0x1fcaec)['display']){let _0x37d3d5=0x0,_0x1420b5=!0x1;for(const _0x15a7de of _0x1fcaec['getClientRects']())_0x37d3d5+=_0x15a7de['height'],_0x15a7de['left']>=_0x2aa8e5&&(_0x1420b5=!0x0);if(_0x37d3d5<_0x344aed&&_0x1420b5)return _0x5dde50||_0x575199['push']({'type':'element','offset':0x0,'path':[_0x42dbd2]}),_0x575199;}const _0x2311f6=_0x1fcaec['closest']('figure.image');if(_0x2311f6&&function(_0x2ec05c){let _0x2b0c77=!0x1;const _0x10e014=_0x2ec05c['parentElement'],_0x57626e=_0x10e014['dataset']['rootName'],_0x50c0c1=_0x2ec05c['nextElementSibling'],_0x179fce=_0x2ec05c['previousElementSibling'],_0x41f425=_0x50c0c1&&_0x49a940['window']['getComputedStyle'](_0x50c0c1)['float'],_0x57c8fb=_0x50c0c1&&'ck-fake-selection-container'===_0x50c0c1['className'];!_0x57626e||_0x50c0c1||_0x179fce||(_0x2b0c77=!0x0),_0x57626e&&!_0x179fce&&_0x57c8fb&&(_0x2b0c77=!0x0),_0x57626e&&!_0x179fce&&'none'!==_0x41f425&&(_0x2b0c77=!0x0);if(_0x2b0c77)return!0x1;return!0x0;}(_0x2311f6)){const _0x308034=_0x49a940['window']['getComputedStyle'](_0x2311f6)['float'];if('left'==_0x308034||'right'==_0x308034)return _0x575199;}const _0x1540e2=L(_0x1fcaec,_0x2aa8e5,_0x526191,_0x344aed,_0x5dde50);if(_0x1540e2['length']){for(const _0x38fa58 of _0x1540e2)_0x575199['push']({'type':_0x38fa58['type'],'offset':_0x38fa58['offset'],'textOffset':_0x38fa58['textOffset'],'path':[_0x42dbd2,..._0x38fa58['path']]}),_0x2aa8e5+=_0x526191,_0x5dde50=!0x1;return _0x575199;}return _0x575199['push'](...function(_0x1315e3,_0x48f43c,_0x16c96f,_0x367b51,_0x4ab655){const _0x4de9ea=[];if('table-cell'==_0x49a940['window']['getComputedStyle'](_0x1315e3)['display'])return[];const _0x1740d1=[];for(const _0x44a9dd of _0x1315e3['getClientRects']())if(_0x44a9dd['left']>=_0x16c96f){for(const _0x5d969b of _0x1740d1)_0x5d969b['height']+=_0x44a9dd['height'];_0x1740d1['push']({'height':_0x44a9dd['height']}),_0x16c96f+=_0x367b51;}for(const _0x143753 of _0x1740d1)_0x4ab655||_0x4de9ea['push']({'type':'element','offset':_0x143753['height'],'textOffset':0x0,'path':[_0x48f43c]}),_0x4ab655=!0x1;return _0x4de9ea;}(_0x1fcaec,_0x42dbd2,_0x2aa8e5,_0x526191,_0x5dde50)),_0x575199;}function _(_0x5dbd78,_0x465d9c,_0x337597,_0x23f468,_0x130d31){const _0x510b2a=y(_0x5dbd78),_0x2e5274=[];let _0x225a71=0x0;for(const _0x285280 of _0x510b2a['getClientRects']())if(_0x285280['left']>=_0x337597){const _0x2937e9=R(_0x5dbd78,_0x225a71,_0x337597,_0x23f468);_0x130d31||_0x2e5274['push']({'type':'text','path':[_0x465d9c],'textOffset':_0x2937e9}),_0x225a71=_0x2937e9,_0x337597+=_0x23f468,_0x130d31=!0x1;}return _0x2e5274;}function R(_0x24b06f,_0x1db28b,_0x3007c4,_0x430e20){let _0x188139=_0x1db28b,_0x59c50d=_0x24b06f['length'];for(;_0x59c50d-_0x188139>0x1;){const _0x41dad8=Math['ceil']((_0x188139+_0x59c50d)/0x2);E(v(_0x24b06f,_0x188139,_0x41dad8),_0x3007c4,_0x430e20)?_0x59c50d=_0x41dad8:_0x188139=_0x41dad8;}return _0x188139;}function E(_0x20f186,_0x5a418f,_0x1beef4){for(const _0x28d154 of _0x20f186['getClientRects']())if(_0x28d154['left']>=_0x5a418f&&_0x28d154['left']<_0x5a418f+_0x1beef4)return!0x0;return!0x1;}function S(_0x3e177f){return _0x3e177f['nodeType']==Node['ELEMENT_NODE'];}function I(_0x2bddce){return _0x2bddce['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
- _0x3e7856('px');class LineView extends _0x4f65a8{constructor(){super();const _0xb01b32=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0xb01b32['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0xb01b32['if']('isVisible','ck-hidden',_0xda1eda=>!_0xda1eda)],'style':{'left':_0xb01b32['to']('left',_0x224f78=>B(_0x224f78)),'top':_0xb01b32['to']('top',_0x5f28ce=>B(_0x5f28ce)),'width':_0xb01b32['to']('width',_0x3be25f=>B(_0x3be25f))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x2bb5b1){this['_viewCollection']=_0x2bb5b1['ui']['view']['body'];}['destroy'](){for(const _0x4857c7 of this['_hiddenLines'])_0x4857c7['destroy']();}['cleanLines'](){for(const _0x51120e of this['_visibleLines'])_0x51120e['isVisible']=!0x1,this['_hiddenLines']['add'](_0x51120e);this['_visibleLines']['clear']();}['showLine'](_0x55ff23,_0x193e7d,_0x50cea3,_0x3b7c22){let _0x278558;this['_hiddenLines']['size']?(_0x278558=_0x8773f9(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x278558)):_0x278558=new LineView(),_0x278558['set']({'pageNumber':_0x3b7c22,'left':_0x55ff23,'top':_0x193e7d,'width':_0x50cea3}),_0x278558['isVisible']=!0x0,this['_viewCollection']['has'](_0x278558)||this['_viewCollection']['add'](_0x278558),this['_visibleLines']['add'](_0x278558);}['setViewCollection'](_0x573dd6){for(const _0x57c57f of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x57c57f)&&this['_viewCollection']['remove'](_0x57c57f);this['_viewCollection']=_0x573dd6;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x27b960{['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',(_0x4fd548,_0x38b2ba,_0x4c2f29)=>{_0x4c2f29||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x4c2f29);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x53a601){if(!this['isEnabled'])return;const _0x153ff3=_0x53a601>0x1?this['_getPageBreakLineOffset'](_0x53a601-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x153ff3-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x29ec5f['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x57936a=this['editor'],_0x306921=this['_getAttachedDomRoot']();_0x306921?(this['_scrollableEditingRootDomAncestor']&&_0x57936a['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x1c7c81){let _0x43e926=_0x1c7c81;do{_0x43e926=_0x43e926['parentElement'];const _0x37df61=_0x49a940['window']['getComputedStyle'](_0x43e926)['overflowY'];if('auto'==_0x37df61||'scroll'==_0x37df61)break;}while('BODY'!=_0x43e926['tagName']);return _0x43e926;}(_0x306921),_0x57936a['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x5da25b(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x57936a['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x2a3851=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x2a3851['ui']['view']['listenTo'](_0x49a940['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x2a3851['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x5090c6 of this['editor']['editing']['view']['domRoots']['values']())if(_0x5090c6['ownerDocument']['body']['contains'](_0x5090c6))return _0x5090c6;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x1e876c=this['_getAttachedDomRoot'](),_0x372287=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x1e876c||0x1==_0x372287['length'])return void(this['pageNumber']=0x1);const _0x37483d=new _0x3b7683(_0x1e876c)['excludeScrollbarsAndBorders'](),_0x5be482=new _0x3b7683(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x195a39=_0x5be482['top']+_0x5be482['height']/0x3;let _0x97be73=!0x1;const _0x2f297e=[];for(let _0x14d7ef=0x1;_0x14d7ef<_0x372287['length'];_0x14d7ef++){const _0x9b4df2=this['_getPageBreakLineOffset'](_0x14d7ef,_0x5be482);if(!_0x9b4df2)continue;const _0x282876=_0x5be482['top']+_0x9b4df2-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x2f297e['push']({'pageOffsetTop':_0x282876,'domRootRect':_0x37483d,'domScrollableRect':_0x5be482,'pageNumber':_0x14d7ef}),_0x282876>_0x195a39&&!_0x97be73&&(this['pageNumber']=_0x14d7ef,_0x97be73=!0x0);}this['_renderPageBreakLines'](_0x2f297e),_0x97be73||(this['pageNumber']=_0x372287['length']);}['_renderPageBreakLines'](_0x2468e3){const {scrollX:_0x1e6422,scrollY:_0x375336}=_0x49a940['window'];if(_0x2468e3['length']){for(const {domScrollableRect:_0x4e46bd,pageOffsetTop:_0x3c13fe,domRootRect:_0x4feda7,pageNumber:_0x259fe1}of _0x2468e3)_0x4e46bd['top']<_0x3c13fe&&_0x3c13fe<_0x4e46bd['bottom']&&this['linesRepository']['showLine'](_0x4feda7['left']+_0x1e6422,_0x3c13fe+_0x375336,_0x4feda7['width'],_0x259fe1+0x1);}}['_getPageBreakLineOffset'](_0x274676,_0x599521=null){const _0x3dc389=this['_paginationLookupPlugin']['pageBreaks'][_0x274676]['offset'];return _0x3dc389?(_0x599521||(_0x599521=new _0x3b7683(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x3dc389-_0x599521['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x578cac,_0x5887e0=!0x0){const _0x36a988=this['editor']['editing']['view'];_0x36a988['change'](_0x36b374=>{for(const _0x42c713 of _0x36a988['document']['roots'])_0x5887e0?_0x36b374['addClass'](_0x578cac,_0x42c713):_0x36b374['removeClass'](_0x578cac,_0x42c713);});}}function O(_0x4d0c3a,_0x4a717c,..._0x1bcdee){const t=_0x4d0c3a['t'];switch(_0x4a717c){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)',..._0x1bcdee);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 _0x4a717c;}}class PaginationEditing extends _0x27b960{['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 _0x5d4901=this['editor']['plugins']['get']('Pagination'),_0x4501da=this['editor']['plugins']['get'](PaginationLookup),_0x176b5a=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x5d4901),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x176b5a),this['listenTo'](_0x4501da,'change:pageBreaks',(_0x3ce4e8,_0x3ec351,_0x1d5232,_0x1ed183)=>{this['totalPages']=_0x1d5232['length'],this['_updatePageBreakMarkers'](_0x1d5232,_0x1ed183);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x23d4c6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x272e0f;for(const _0xa6cb12 in _0x23d4c6){const _0x4ef703=_0xa6cb12,_0x4d6a70=_0x23d4c6[_0x4ef703];if('paginationLicenseKeyValid'==_0x4d6a70||'paginationLicenseKeyInvalid'==_0x4d6a70||'paginationLicenseKeyExpired'==_0x4d6a70||'paginationLicenseKeyDomainLimit'==_0x4d6a70||'paginationLicenseKeyNotAllowed'==_0x4d6a70||'paginationLicenseKeyEvaluationLimit'==_0x4d6a70||'paginationLicenseKeyUsageLimit'==_0x4d6a70){delete _0x23d4c6[_0x4ef703],_0x272e0f=_0x4d6a70,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x272e0f&&_0x23d4c6['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x272e0f&&_0x23d4c6['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x272e0f&&_0x23d4c6['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x272e0f&&_0x23d4c6['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x272e0f&&_0x23d4c6['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x272e0f&&_0x23d4c6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x59c84b){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x59c84b));}['moveSelectionToPage'](_0x3cf4de){if(!this['isEnabled'])return;const _0xbf8416=this['editor'],_0x29c5c8=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x3cf4de-0x1];_0x29c5c8&&_0xbf8416['model']['change'](_0x2d92c7=>{switch(_0x29c5c8['type']){case'manual':{const _0xce75d0=_0xbf8416['model']['schema']['getNearestSelectionRange'](_0x29c5c8['modelRange']['end'],'forward');_0x2d92c7['setSelection'](_0xce75d0);break;}case'element':{const _0x1c4370=_0xbf8416['model']['schema']['getNearestSelectionRange'](_0x29c5c8['modelRange']['start'],'forward');_0x2d92c7['setSelection'](_0x1c4370);break;}case'text':{const _0x5985c4=_0x29c5c8['modelRange']['start'];if(_0x5985c4['textNode']&&'\x20'===_0x5985c4['textNode']['data'][_0x5985c4['offset']]){const _0x5e0463=_0x2d92c7['createPositionAt'](_0x5985c4['parent'],_0x5985c4['offset']+0x1);_0x2d92c7['setSelection'](_0x5e0463);}else _0x2d92c7['setSelection'](_0x29c5c8['modelRange']);}}_0xbf8416['editing']['view']['focus']();});}['goToNextPage'](){const _0x2386d3=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x2386d3),this['scrollToPage'](_0x2386d3);}['goToPreviousPage'](){const _0x512f65=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x512f65),this['scrollToPage'](_0x512f65);}['_updatePageBreakMarkers'](_0x332049,_0x3dde91){const _0x1eeded=this['editor']['model'];this['isEnabled']&&_0x1eeded['change'](_0x305864=>{for(let _0x2106a9=0x1;_0x2106a9<_0x332049['length'];_0x2106a9++){const _0x534110=_0x332049[_0x2106a9]['modelRange'],_0x37b306='pagination:'+(_0x2106a9+0x1);_0x1eeded['markers']['has'](_0x37b306)?_0x305864['updateMarker'](_0x37b306,{'range':_0x534110}):_0x305864['addMarker'](_0x37b306,{'range':_0x534110,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x2c2a04=_0x332049['length'];_0x2c2a04<_0x3dde91['length'];_0x2c2a04++){const _0x1f1a05='pagination:'+(_0x2c2a04+0x1);_0x1eeded['markers']['has'](_0x1f1a05)&&_0x305864['removeMarker'](_0x1f1a05);}});}['_setUpDataDowncastConversion'](){const _0x79f505='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x1a5ec4=>{_0x1a5ec4['on']('addMarker:'+_0x79f505,(_0x5a4d04,{markerRange:_0x5aa718,markerName:_0x65366b},_0x2b5675)=>{if(!_0x2b5675['options']['pagination'])return;if(!_0x2b5675['consumable']['consume'](_0x5aa718,_0x5a4d04['name']))return;const _0x6cefe3=_0x5aa718['getContainedElement']();let _0x4b0cb5=_0x6cefe3?_0x2b5675['mapper']['toViewElement'](_0x6cefe3):null;if(!_0x4b0cb5){const _0x3a2ad5=_0x5aa718['start'];if(_0x2b5675['schema']['checkChild'](_0x3a2ad5,'$text')){const _0x8ae16a=_0x2b5675['mapper']['toViewPosition'](_0x3a2ad5);_0x4b0cb5=_0x2b5675['writer']['createContainerElement']('span'),_0x4b0cb5['getFillerOffset']=()=>null,_0x2b5675['writer']['insert'](_0x8ae16a,_0x4b0cb5);}else{const _0x8d57e0=_0x3a2ad5['nodeAfter'];_0x4b0cb5=_0x2b5675['mapper']['toViewElement'](_0x8d57e0);}}for(;_0x4b0cb5['parent']!==_0x4b0cb5['root']&&0x0===_0x4b0cb5['index'];)_0x4b0cb5=_0x4b0cb5['parent'];const _0x4e2f3c=_0x65366b['substring'](0xb);_0x4b0cb5['hasClass']('page-break')||(_0x2b5675['writer']['setStyle']('page-break-before','always',_0x4b0cb5),_0x2b5675['writer']['setAttribute']('data-pagination-page',_0x4e2f3c,_0x4b0cb5),_0x2b5675['mapper']['bindElementToMarker'](_0x4b0cb5,_0x65366b)),_0x5a4d04['stop']();});});}['_setupKeystrokes'](){const _0x31237f=this['editor'];_0x31237f['keystrokes']['set']('Shift+Pageup',(_0x462d45,_0x48dfe2)=>{this['goToPreviousPage'](),_0x48dfe2();}),_0x31237f['keystrokes']['set']('Shift+Pagedown',(_0x535844,_0xee11b7)=>{this['goToNextPage'](),_0xee11b7();}),_0x31237f['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x31237f['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x31237f['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x31237f['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x4f29cc){return _0x4f29cc<0x1&&(_0x4f29cc=0x1),_0x4f29cc>this['totalPages']&&(_0x4f29cc=this['totalPages']),_0x4f29cc;}}class PageNavigatorView extends _0x4f65a8{['pageNumberView'];constructor(_0x272f86){super(_0x272f86);const _0x40af37=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x38c826(_0x272f86,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x43fca5=>O(_0x272f86,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x43fca5)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x2bbc7e=>!_0x2bbc7e),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x40af37['if']('isEnabled','ck-disabled',_0x4be67c=>!_0x4be67c)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x40af37['to']('totalPages')}]}]});}['render'](){super['render']();const _0x51e7d5=this['pageNumberView']['element'],_0x47b6cd=_0x345ebc=>{this['pageNumberView']['element']['value']=String(_0x345ebc);};_0x47b6cd(this['pageNumber']),this['on']('change:pageNumber',(_0x539324,_0x2ee7b8,_0xdb141f)=>{_0x47b6cd(_0xdb141f);}),this['listenTo'](_0x51e7d5,'keydown',(_0x4f1540,_0x3e2c93)=>{if('ArrowUp'===_0x3e2c93['key']||'ArrowDown'===_0x3e2c93['key'])return void _0x3e2c93['stopPropagation']();if(_0x3e2c93['keyCode']!==_0x465fb7['enter'])return;_0x3e2c93['preventDefault']();const _0xc1d52c=_0x51e7d5['valueAsNumber'];Number['isNaN'](_0xc1d52c)?_0x51e7d5['value']=String(this['pageNumber']):(_0x51e7d5['checkValidity']()?this['pageNumber']=_0xc1d52c:_0xc1d52c>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x51e7d5['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x51e7d5['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x51e7d5,'blur',()=>{_0x51e7d5['value']=String(this['pageNumber']);}),this['listenTo'](_0x51e7d5,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class PaginationUI extends _0x27b960{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1cb2e4=this['editor'],_0x35a4cc=_0x1cb2e4['plugins']['get']('PaginationEditing');_0x1cb2e4['ui']['componentFactory']['add']('pageNavigation',_0xc96ba3=>{const _0x2030dd=new PageNavigatorView(_0xc96ba3);return _0x2030dd['bind']('pageNumber')['to'](_0x35a4cc),_0x2030dd['bind']('totalPages')['to'](_0x35a4cc),_0x2030dd['bind']('isEnabled')['to'](_0x35a4cc),_0x2030dd['on']('navigation',(_0x50b7f8,_0x2fc202)=>{_0x35a4cc['moveSelectionToPage'](_0x2fc202),_0x35a4cc['scrollToPage'](_0x2fc202);}),_0x2030dd;}),_0x1cb2e4['ui']['componentFactory']['add']('nextPage',_0xad0734=>{const _0x34b4bd=new _0x35f0ed(_0xad0734);return _0x34b4bd['isEnabled']=!0x0,_0x34b4bd['label']=O(_0x1cb2e4['locale'],'Go\x20to\x20next\x20page'),_0x34b4bd['icon']=_0x3a5955,_0x34b4bd['tooltip']=!0x0,_0x34b4bd['keystroke']='Shift+PageDown',_0x34b4bd['bind']('isEnabled')['to'](_0x35a4cc),this['listenTo'](_0x34b4bd,'execute',()=>{_0x35a4cc['goToNextPage']();}),_0x34b4bd;}),_0x1cb2e4['ui']['componentFactory']['add']('previousPage',_0x2fd609=>{const _0x4f59ea=new _0x35f0ed(_0x2fd609);return _0x4f59ea['isEnabled']=!0x0,_0x4f59ea['label']=O(_0x1cb2e4['locale'],'Go\x20to\x20previous\x20page'),_0x4f59ea['icon']=_0x457cb6,_0x4f59ea['tooltip']=!0x0,_0x4f59ea['keystroke']='Shift+PageUp',_0x4f59ea['bind']('isEnabled')['to'](_0x35a4cc),this['listenTo'](_0x4f59ea,'execute',()=>{_0x35a4cc['goToPreviousPage']();}),_0x4f59ea;});}}class Pagination extends _0x27b960{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x47f7c7){super(_0x47f7c7),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x1bbf4e=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x1bbf4e),this['bind']('totalPages')['to'](_0x1bbf4e),_0x29ec5f['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x587926){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x587926);}}export{Pagination,PaginationRenderer};
23
+ import{Plugin as _0x5223e5}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x11a891,InputNumberView as _0x126376,ButtonView as _0xcb0494}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x2ab310,global as _0x216b40,Rect as _0x28abe5,uid as _0x312852,toUnit as _0x36af81,first as _0x1c2cd9,env as _0x43afb6,ResizeObserver as _0x2de416,keyCodes as _0x48fff6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x1884f2}from'es-toolkit/compat';import{IconArrowDown as _0x998fdd,IconArrowUp as _0x468b34}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x5223e5{['_recalculatePageBreaksDebounced']=_0x1884f2(()=>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 _0x2ab310('pagination-config-not-found',this['editor']['config']);const _0x3b931f=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x3b931f),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x5b5d62,_0x259057,_0x544f31)=>{_0x544f31&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x1a26e1){const _0x107cf0=_0x51acaa([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]),_0x511af4=0xc82cb1e,_0x2d17c0=0xc85414e^_0x511af4,_0x59abac=window[_0x51acaa([0x44,0x61,0x74,0x65])][_0x51acaa([0x6e,0x6f,0x77])](),_0x281aeb=_0x1a26e1[_0x51acaa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x567c29=new window[(_0x51acaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdd5cac=>{_0x281aeb[_0x51acaa([0x6f,0x6e,0x63,0x65])](_0x51acaa([0x72,0x65,0x61,0x64,0x79]),_0xdd5cac);}),_0x315959={[_0x51acaa([0x6b,0x74,0x79])]:_0x51acaa([0x45,0x43]),[_0x51acaa([0x75,0x73,0x65])]:_0x51acaa([0x73,0x69,0x67]),[_0x51acaa([0x63,0x72,0x76])]:_0x51acaa([0x50,0x2d,0x32,0x35,0x36]),[_0x51acaa([0x78])]:_0x51acaa([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]),[_0x51acaa([0x79])]:_0x51acaa([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]),[_0x51acaa([0x61,0x6c,0x67])]:_0x51acaa([0x45,0x53,0x32,0x35,0x36])},_0x3c85ad=_0x281aeb[_0x51acaa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51acaa([0x67,0x65,0x74])](_0x51acaa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3395ba(){let _0x22982c,_0x43a2ab=null,_0xa162fc=null;try{if(_0x3c85ad==_0x51acaa([0x47,0x50,0x4c]))return _0x51acaa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x22982c=_0x387638(),!_0x22982c)return _0x51acaa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x22982c[_0x51acaa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa162fc=_0x2185dc(_0x22982c[_0x51acaa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x22982c[_0x51acaa([0x6a,0x74,0x69])])),await _0x354884()?_0x19e5a5()?_0x5459a5()?_0x51acaa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2cdcef()?(_0x22982c[_0x51acaa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51acaa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43a2ab=_0x1c2a1e(_0x51acaa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bd4ea()):_0x51acaa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51acaa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51acaa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51acaa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5459a5(){const _0x57030d=[_0x51acaa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51acaa([0x74,0x72,0x69,0x61,0x6c])][_0x51acaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22982c[_0x51acaa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59abac/0x3e8:0xe10*_0x2d17c0;return _0x22982c[_0x51acaa([0x65,0x78,0x70])]<_0x57030d;}function _0x19e5a5(){const _0x24b7e0=_0x22982c[_0x51acaa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24b7e0&&(!!_0x24b7e0[_0x51acaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51acaa([0x2a]))||!!_0x24b7e0[_0x51acaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51acaa([0x50,0x41,0x47])));}function _0x2cdcef(){const _0x5c7a8c=_0x22982c[_0x51acaa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c7a8c||0x0==_0x5c7a8c[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1acb72}=new URL(window[_0x51acaa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c7a8c[_0x51acaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1acb72))return!0x0;const _0x4ec225=_0x1acb72[_0x51acaa([0x73,0x70,0x6c,0x69,0x74])](_0x51acaa([0x2e]));return _0x5c7a8c[_0x51acaa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e866e=>_0x3e866e[_0x51acaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51acaa([0x2a])))[_0x51acaa([0x6d,0x61,0x70])](_0x24f8c7=>_0x24f8c7[_0x51acaa([0x73,0x70,0x6c,0x69,0x74])](_0x51acaa([0x2e])))[_0x51acaa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34b9a6=>_0x34b9a6[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4ec225[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51acaa([0x6d,0x61,0x70])](_0x2bbc28=>Array(_0x4ec225[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2bbc28[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51acaa([0x66,0x69,0x6c,0x6c])](_0x2bbc28[0x0]===_0x51acaa([0x2a])?_0x51acaa([0x2a]):'')[_0x51acaa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2bbc28))[_0x51acaa([0x73,0x6f,0x6d,0x65])](_0x546461=>_0x4ec225[_0x51acaa([0x65,0x76,0x65,0x72,0x79])]((_0x1d48a1,_0x468bde)=>_0x546461[_0x468bde]===_0x1d48a1||_0x546461[_0x468bde]===_0x51acaa([0x2a])));}function _0x4bd4ea(){return _0x43a2ab&&_0xa162fc?new window[(_0x51acaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5dfde5,_0x50e1c3)=>{_0x43a2ab[_0x51acaa([0x74,0x68,0x65,0x6e])](_0x5dfde5,_0x50e1c3),_0xa162fc[_0x51acaa([0x74,0x68,0x65,0x6e])](_0x40f8a1=>{_0x40f8a1!=_0x51acaa([0x56,0x61,0x6c,0x69,0x64])&&_0x5dfde5(_0x40f8a1);},_0x50e1c3);}):_0x43a2ab||_0xa162fc||_0x51acaa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2185dc(_0x300ff6,_0x1d260f){return new window[(_0x51acaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ae69a=>{if(_0x3f9d0b())return _0x2ae69a(_0x51acaa([0x56,0x61,0x6c,0x69,0x64]));_0x2194ef(),_0x281aeb[_0x51acaa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51acaa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5924cd=!0x1;const _0x400ce4=_0x312852();function _0x335f54(_0x474735){return!!_0x474735&&(typeof _0x474735===_0x51acaa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x474735===_0x51acaa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x474735[_0x51acaa([0x74,0x68,0x65,0x6e])]===_0x51acaa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x474735[_0x51acaa([0x63,0x61,0x74,0x63,0x68])]===_0x51acaa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b8843(_0x2ef3bb){_0x3bd12c(_0x2ef3bb)[_0x51acaa([0x74,0x68,0x65,0x6e])](_0x38d53a=>{if(!_0x38d53a||_0x38d53a[_0x51acaa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51acaa([0x6f,0x6b]))return _0x51acaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xeb3f35(_0x2b4b4b(_0x400ce4+_0x1d260f))!=_0x38d53a[_0x51acaa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51acaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51acaa([0x56,0x61,0x6c,0x69,0x64]);})[_0x51acaa([0x74,0x68,0x65,0x6e])](_0x39df0b=>(_0x311ed1(),_0x39df0b),()=>{const _0x3a6b13=_0x505711();return null==_0x3a6b13?(_0x311ed1(),_0x51acaa([0x56,0x61,0x6c,0x69,0x64])):_0x51acaa(_0x59abac-_0x3a6b13>(0x288e4f1e^_0x511af4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51acaa([0x74,0x68,0x65,0x6e])](_0x2ae69a)[_0x51acaa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ae69a(_0x51acaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10865f=0xcb4259e^_0x511af4;function _0x311ed1(){const _0x9405a9=_0x51acaa([0x6c,0x6c,0x63,0x74,0x2d])+_0xeb3f35(_0x2b4b4b(_0x300ff6)),_0x532500=_0x58c40d(_0xeb3f35(window[_0x51acaa([0x4d,0x61,0x74,0x68])][_0x51acaa([0x63,0x65,0x69,0x6c])](_0x59abac/_0x10865f)));window[_0x51acaa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51acaa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9405a9,_0x532500);}function _0x505711(){const _0x294460=_0x51acaa([0x6c,0x6c,0x63,0x74,0x2d])+_0xeb3f35(_0x2b4b4b(_0x300ff6)),_0x2227e0=window[_0x51acaa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51acaa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x294460);return _0x2227e0?window[_0x51acaa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58c40d(_0x2227e0),0x10)*_0x10865f:null;}function _0x3bd12c(_0x10c2f6){return new window[(_0x51acaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25cd10,_0xc33626)=>{_0x10c2f6[_0x51acaa([0x74,0x68,0x65,0x6e])](_0x25cd10,_0xc33626),window[_0x51acaa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc33626,0xc831fde^_0x511af4);});}}_0x281aeb[_0x51acaa([0x6f,0x6e])](_0x51acaa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xec93a5,_0x1ddfa1)=>{if(_0x1ddfa1[0x0]!=_0x300ff6)return _0x2ae69a(_0x51acaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ddfa1[0x1]={..._0x1ddfa1[0x1],[_0x51acaa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x400ce4};},{[_0x51acaa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51acaa([0x68,0x69,0x67,0x68])}),_0x281aeb[_0x51acaa([0x6f,0x6e])](_0x51acaa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x428468=>{_0x335f54(_0x428468[_0x51acaa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5924cd=!0x0,_0x4b8843(_0x428468[_0x51acaa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51acaa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51acaa([0x6c,0x6f,0x77])}),_0x567c29[_0x51acaa([0x74,0x68,0x65,0x6e])](()=>{_0x5924cd||_0x2ae69a(_0x51acaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f9d0b(){return _0x281aeb[_0x51acaa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51acaa([0x76,0x69,0x65,0x77])][_0x51acaa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51acaa([0x61,0x75,0x74,0x6f]);}function _0x2194ef(){_0x281aeb[_0x51acaa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51acaa([0x76,0x69,0x65,0x77])][_0x51acaa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51acaa([0x61,0x75,0x74,0x6f]);}}function _0x1c2a1e(_0x58ef10){const _0x11f369=[new window[(_0x51acaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x386d0d=>setTimeout(_0x386d0d,0xc8bf5d2^_0x511af4)),_0x567c29[_0x51acaa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51acaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27a335=>{let _0x2c4a79=0x0;_0x281aeb[_0x51acaa([0x6d,0x6f,0x64,0x65,0x6c])][_0x51acaa([0x6f,0x6e])](_0x51acaa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x548699,_0x1710b5)=>{_0x1710b5[0x0][_0x51acaa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2c4a79++,_0x2c4a79==(0xc82cef6^_0x511af4)&&(_0x27a335(),_0x548699[_0x51acaa([0x6f,0x66,0x66])]());});}))];return window[_0x51acaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51acaa([0x72,0x61,0x63,0x65])](_0x11f369)[_0x51acaa([0x74,0x68,0x65,0x6e])](()=>_0x58ef10);}async function _0x2301f8(){await _0x567c29,_0x281aeb[_0x51acaa([0x6d,0x6f,0x64,0x65,0x6c])][_0x51acaa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x571eea,_0x281aeb[_0x51acaa([0x6d,0x6f,0x64,0x65,0x6c])][_0x51acaa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x571eea,_0x281aeb[_0x51acaa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51acaa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a54b8(_0x31f324){const _0xc6ebbc=_0x1a99ab();_0x281aeb[_0xc6ebbc]=_0x51acaa([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31f324,_0x31f324!=_0x51acaa([0x56,0x61,0x6c,0x69,0x64])&&_0x2301f8();}function _0x1a99ab(){const _0x171d06=window[_0x51acaa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51acaa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51acaa([0x6e,0x6f,0x77])]())[_0x51acaa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51acaa([0x2e]),'');let _0x2400f5=_0x51acaa([0x49]);for(let _0x3723c2=0x0;_0x3723c2<_0x171d06[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3723c2+=0x2){let _0x51a098=window[_0x51acaa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x171d06[_0x51acaa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3723c2,_0x3723c2+0x2));_0x51a098>=_0x107cf0[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51a098-=_0x107cf0[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2400f5+=_0x107cf0[_0x51a098];}return _0x2400f5;}function _0x387638(){const _0x34571b=_0x3c85ad[_0x51acaa([0x73,0x70,0x6c,0x69,0x74])](_0x51acaa([0x2e]));if(0x3!=_0x34571b[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e5ca6(_0x34571b[0x1]);function _0x3e5ca6(_0x539c1e){const _0x425e2b=_0x2af9ff(_0x539c1e);return _0x425e2b&&_0x17becf()?_0x425e2b:null;function _0x17becf(){const _0x20d17d=_0x425e2b[_0x51acaa([0x6a,0x74,0x69])],_0x59baa4=window[_0x51acaa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20d17d[_0x51acaa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20d17d[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11ba74={..._0x425e2b,[_0x51acaa([0x6a,0x74,0x69])]:_0x20d17d[_0x51acaa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20d17d[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11ba74[_0x51acaa([0x76,0x63])],_0x2b4b4b(_0x11ba74)==_0x59baa4;}}}async function _0x354884(){let _0x4deb3c=!0x0;try{const _0x363fa2=_0x3c85ad[_0x51acaa([0x73,0x70,0x6c,0x69,0x74])](_0x51acaa([0x2e])),[_0x357097,_0x5550b0,_0x441a20]=_0x363fa2;return _0x18295c(_0x357097),await _0x15e4ad(_0x357097,_0x5550b0,_0x441a20),_0x4deb3c;}catch{return!0x1;}function _0x18295c(_0x1aeee1){const _0x37d0b0=_0x2af9ff(_0x1aeee1);_0x37d0b0&&_0x37d0b0[_0x51acaa([0x61,0x6c,0x67])]==_0x51acaa([0x45,0x53,0x32,0x35,0x36])||(_0x4deb3c=!0x1);}async function _0x15e4ad(_0x5953f1,_0x3370f9,_0x1d062c){const _0x2e792e=window[_0x51acaa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51acaa([0x66,0x72,0x6f,0x6d])](_0x176ef8(_0x1d062c),_0x1ae413=>_0x1ae413[_0x51acaa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x325690=new window[(_0x51acaa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51acaa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5953f1+_0x51acaa([0x2e])+_0x3370f9),_0x408940=window[_0x51acaa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51acaa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x408940)return;const _0x38e896=await _0x408940[_0x51acaa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51acaa([0x6a,0x77,0x6b]),_0x315959,{[_0x51acaa([0x6e,0x61,0x6d,0x65])]:_0x51acaa([0x45,0x43,0x44,0x53,0x41]),[_0x51acaa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51acaa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51acaa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x408940[_0x51acaa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51acaa([0x6e,0x61,0x6d,0x65])]:_0x51acaa([0x45,0x43,0x44,0x53,0x41]),[_0x51acaa([0x68,0x61,0x73,0x68])]:{[_0x51acaa([0x6e,0x61,0x6d,0x65])]:_0x51acaa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38e896,_0x2e792e,_0x325690)||(_0x4deb3c=!0x1);}}function _0x2af9ff(_0xc26065){return _0xc26065[_0x51acaa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51acaa([0x65,0x79]))?JSON[_0x51acaa([0x70,0x61,0x72,0x73,0x65])](_0x176ef8(_0xc26065)):null;}function _0x176ef8(_0x1adc43){return window[_0x51acaa([0x61,0x74,0x6f,0x62])](_0x1adc43[_0x51acaa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51acaa([0x2b]))[_0x51acaa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51acaa([0x2f])));}function _0x2b4b4b(_0x52dbea){let _0x4a4997=0x1505;function _0x56ff9e(_0x5c05af){for(let _0xe5596c=0x0;_0xe5596c<_0x5c05af[_0x51acaa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe5596c++){const _0x3cc9a6=_0x5c05af[_0x51acaa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe5596c);_0x4a4997=(_0x4a4997<<0x5)+_0x4a4997+_0x3cc9a6,_0x4a4997&=_0x4a4997;}}function _0x1fd476(_0x4d77ce){Array[_0x51acaa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d77ce)?_0x4d77ce[_0x51acaa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fd476):_0x4d77ce&&typeof _0x4d77ce==_0x51acaa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51acaa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d77ce)[_0x51acaa([0x73,0x6f,0x72,0x74])]()[_0x51acaa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ee827,_0x30a48a])=>{_0x56ff9e(_0x5ee827),_0x1fd476(_0x30a48a);}):_0x56ff9e(window[_0x51acaa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d77ce));}return _0x1fd476(_0x52dbea),_0x4a4997>>>0x0;}function _0xeb3f35(_0x6e9d04){return _0x6e9d04[_0x51acaa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51acaa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51acaa([0x30]));}function _0x58c40d(_0x42b3be){return _0x42b3be[_0x51acaa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51acaa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51acaa([0x6a,0x6f,0x69,0x6e])]('');}function _0x571eea(){}function _0x51acaa(_0x46741f){return _0x46741f['map'](_0x8ff18f=>String['fromCharCode'](_0x8ff18f))['join']('');}_0x4a54b8(await _0x3395ba());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x2b65b9=this['editor'],_0x4ef286=_0x2b65b9['editing']['view'],_0xbfa320=this['_getAttachedDomRoot']();if(!_0xbfa320||0x0===_0xbfa320['childElementCount'])return void _0x2b65b9['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x4024ea,pageHeight:_0x2fc0df}=_0x2b65b9['config']['get']('pagination'),{top:_0x2d4cac,left:_0x2349dc,bottom:_0x26fcba,right:_0xcc0d26}=this['_configuredPaddings'];this['_pagesContainer']=new _0x11a891(_0x2b65b9['locale']);const _0xce9bcd=this['_pagesContainer'];_0xce9bcd['set']('class',''),_0xce9bcd['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x4024ea,'width':_0x4024ea,'height':'calc(\x20'+_0x2fc0df+'\x20-\x20'+_0x2d4cac+'\x20-\x20'+_0x26fcba+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0xcc0d26+'\x200\x20'+_0x2349dc,'columnGap':'calc('+_0x2349dc+'\x20+\x20'+_0xcc0d26+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0xce9bcd['bindTemplate']['to']('class')}}),_0xce9bcd['render'](),_0xbfa320['parentNode']['insertBefore'](_0xce9bcd['element'],_0xbfa320['nextSibling']),this['listenTo'](_0x4ef286,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x2a605f of this['editor']['editing']['view']['domRoots']['values']())if(_0x2a605f['ownerDocument']['body']['contains'](_0x2a605f))return _0x2a605f;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x11a9bf=this['editor']['editing']['view'],_0x5c0c55=this['_pagesContainer'],_0x1d055f=this['_getAttachedDomRoot']();if(!_0x1d055f)return Promise['resolve']();for(_0x5c0c55['class']=['ck-reset','ck-pagination-view',..._0x1d055f['classList']]['join']('\x20');_0x5c0c55['element']['firstChild'];)_0x5c0c55['element']['firstChild']['remove']();const _0x18eb38=Array['from'](_0x11a9bf['domRoots']);_0x18eb38['sort'](([,_0x1072d7],[,_0x55c734])=>_0x1072d7['compareDocumentPosition'](_0x55c734)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x4560fb,_0x4adb5e]of _0x18eb38){const _0x34636f=_0x4adb5e['cloneNode'](!0x0);'attributeStyleMap'in _0x34636f&&_0x34636f['attributeStyleMap']['clear'](),_0x34636f['dataset']['rootName']=_0x4560fb,_0x34636f['className']='ck-content\x20ck-pagination_enabled',_0x34636f['removeAttribute']('id'),_0x34636f['tabIndex']=-0x1,_0x5c0c55['element']['append'](_0x34636f);}const _0x364513=Array['from'](_0x5c0c55['element']['querySelectorAll']('img'));return function(_0x317fda){return Promise['all'](_0x317fda['map'](_0x2e29d6=>Promise['race']([b(_0x2e29d6),k(0x3e8)])));}(_0x364513)['then'](()=>{for(const _0x2a283e of _0x364513['filter'](_0xe6a6c7=>!_0xe6a6c7['closest']('table')))if(_0x2a283e['offsetParent']){const _0x454ba3=_0x216b40['window']['getComputedStyle'](_0x2a283e),_0x154042=_0x216b40['document']['createElement']('span');for(const _0x38062a of _0x454ba3)_0x154042['style']['setProperty'](_0x38062a,_0x454ba3[_0x38062a]);_0x154042['style']['backgroundImage']='url(\x20'+_0x2a283e['src']+'\x20)',_0x154042['style']['breakInside']='avoid','PICTURE'==_0x2a283e['parentElement']?.['tagName']?_0x2a283e['parentElement']['replaceWith'](_0x154042):_0x2a283e['replaceWith'](_0x154042);}return new Promise(_0x284b93=>_0x216b40['window']['requestAnimationFrame'](()=>_0x284b93()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0xeef435=this['_pagesContainer']['element'];if(!_0xeef435['ownerDocument']['body']['contains'](_0xeef435))return;const _0x2c1649=new _0x28abe5(_0xeef435)['excludeScrollbarsAndBorders'](),_0xb098e9=Math['floor'](_0x2c1649['width']+0x64),_0x30d2d9=L(_0xeef435,Math['floor'](_0x2c1649['left']-_0xeef435['scrollLeft']),_0xb098e9,_0x2c1649['height'])['map'](_0x3985af=>this['_mapPageStarterInfoToPageBreakInfo'](_0x3985af))['filter'](_0x36fc1c=>!0x1!==_0x36fc1c);_0x30d2d9['every'](_0x2134d8=>!!_0x2134d8)&&(this['pageBreaks']=_0x30d2d9);}['_mapPageStarterInfoToPageBreakInfo'](_0x57de9b){const _0x446c1e=this['editor']['editing']['view'],_0x245c70=this['editor']['editing']['mapper'],_0x4b696d=_0x446c1e['domConverter'],_0x40651e=_0x57de9b['path']['shift'](),_0x24c667=this['_pagesContainer']['element']['childNodes'][_0x40651e]['dataset']['rootName'],_0xfa8917=_0x446c1e['getDomRoot'](_0x24c667);if(!_0xfa8917)return null;const _0x1614b0=function(_0x230167,_0x35036d){let _0x4812af=_0x230167;for(const _0x52151a of _0x35036d['path']){if(!_0x4812af)return null;_0x4812af=_0x4812af['childNodes'][_0x52151a];}return _0x4812af;}(_0xfa8917,_0x57de9b);if(!_0x1614b0)return null;const _0x22acb1=_0x4b696d['domPositionToView'](_0x1614b0,_0x57de9b['textOffset']||0x0);return _0x22acb1?'manual'==_0x57de9b['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x22acb1,_0x1614b0):'text'==_0x57de9b['type']&&_0x245c70['toModelPosition'](_0x22acb1)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x22acb1,_0x1614b0,_0x57de9b['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x22acb1,_0x1614b0,_0x57de9b['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x594953,_0x3808c4){const _0x3dbd22=this['editor']['model'],_0x40d581=this['editor']['editing']['mapper']['toModelElement'](_0x594953['parent']),_0x4a94ad=_0x3dbd22['createRangeOn'](_0x40d581);return new PageBreakInfo({'type':'manual','modelRange':_0x4a94ad,'domNode':_0x3808c4,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x523ab0,_0x1ee5bc,_0x1c8ca3){const _0x3a5132=this['editor']['model'],_0x44f748=this['editor']['editing']['mapper'],_0x11bbb2=this['editor']['editing']['view']['domConverter'];if(_0x1c8ca3>=_0x1ee5bc['length'])return null;const _0x46a766=_0x44f748['toModelPosition'](_0x523ab0),_0x2955bb=_0x3a5132['createRange'](_0x46a766),_0x504896=_0x44f748['findMappedViewAncestor'](_0x523ab0),_0x11c930=_0x11bbb2['mapViewToDom'](_0x504896);return new PageBreakInfo({'type':'text','modelRange':_0x2955bb,'domNode':_0x1ee5bc,'offset':w(_0x1ee5bc,_0x1c8ca3,_0x11c930)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x3b2608,_0x56f62c,_0x519f70){const _0x4eb815=this['editor']['model'],_0x4c51e4=this['editor']['editing'],_0x41f661=_0x4c51e4['mapper'],_0xe6e139=_0x4c51e4['view']['domConverter'],_0x462a0e=_0x41f661['findMappedViewAncestor'](_0x3b2608),_0x5188d4=_0x41f661['toModelElement'](_0x462a0e);if(!_0x5188d4||_0x5188d4['is']('element','$root'))return!0x1;const _0x57a8ce=function(_0x50057a){const _0x5362dd=_0x50057a['parent'],_0x1b5fd3=_0x5362dd['root']['document']['model'],_0xeca40e=_0x5362dd['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0xf2f2b4=null;for(const _0x29d881 of _0xeca40e){if(_0x29d881['is']('rootElement'))return _0xf2f2b4;if(!_0x1b5fd3['createPositionBefore'](_0x29d881)['isTouching'](_0x50057a))return _0xf2f2b4;_0xf2f2b4=_0x29d881;}}(_0x4eb815['createPositionBefore'](_0x5188d4)),_0x2d16c0=_0x57a8ce||_0x5188d4;let _0x2d6e5a=_0x41f661['toViewElement'](_0x2d16c0),_0x3e1288=_0x4eb815['createRangeOn'](_0x2d16c0);const _0x47d356=_0x4eb815['createPositionBefore'](_0x2d16c0)['nodeBefore'];if(_0x47d356&&_0x47d356['is']('element','imageBlock')){const _0x580563=_0x41f661['toViewElement'](_0x47d356),_0x3a29b3=_0xe6e139['mapViewToDom'](_0x580563),_0xb1d99c=_0x216b40['window']['getComputedStyle'](_0x3a29b3)['float'];'left'!=_0xb1d99c&&'right'!=_0xb1d99c||(_0x3e1288=_0x4eb815['createRangeOn'](_0x47d356));}for(;_0x2d6e5a['parent']!==_0x2d6e5a['root']&&0x0===_0x2d6e5a['index'];)_0x2d6e5a=_0x2d6e5a['parent'];const _0x97be4a=new _0x28abe5(S(_0x56f62c)?_0x56f62c:y(_0x56f62c)),_0x41952b=_0x519f70?_0x97be4a['height']-_0x519f70:0x0,_0x255235=_0xe6e139['mapViewToDom'](_0x2d6e5a),_0x245fb5=new _0x28abe5(_0x255235);return new PageBreakInfo({'type':'element','modelRange':_0x3e1288,'domNode':_0x255235,'offset':Math['round'](_0x41952b)||_0x462a0e!=P(_0x3b2608)?_0x41952b+_0x97be4a['top']-_0x245fb5['top']:0x0});}get['_configuredPaddings'](){const _0x77d441=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x77d441);}static['_findPageStarterInfos'](_0x101f12,_0x4eb636,_0x358d59,_0x35f53b,_0x2b408c){return L(_0x101f12,_0x4eb636,_0x358d59,_0x35f53b,_0x2b408c);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x50ef77,modelRange:_0x2622ca,domNode:_0x4fde96,offset:_0x399056}){this['type']=_0x50ef77,this['modelRange']=_0x2622ca,this['_domNode']=_0x4fde96,this['_offset']=_0x399056;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x57696b=new _0x28abe5(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x57696b['top']+_0x57696b['height']/0x2:_0x57696b['top']+this['_offset'];}}function w(_0x3f9978,_0x4ccf76,_0x2a397c){const _0x33bd35=y(_0x3f9978),_0x48d448=function(_0x56b22b){const _0x15a540=_0x216b40['document']['createRange']();return _0x15a540['selectNodeContents'](_0x56b22b),_0x15a540;}(_0x2a397c);let _0x307cbc;_0x307cbc=0x0==_0x4ccf76?x(_0x48d448['startContainer'],_0x48d448['startOffset'],_0x3f9978['parentNode'],Array['from'](_0x3f9978['parentNode']['childNodes'])['indexOf'](_0x3f9978)):x(_0x48d448['startContainer'],_0x48d448['startOffset'],_0x3f9978,_0x4ccf76);const _0x4ace33=x(_0x3f9978,_0x4ccf76,_0x48d448['endContainer'],_0x48d448['endOffset']),_0x5828a6=new _0x28abe5(_0x307cbc)['bottom'];return(new _0x28abe5(_0x4ace33)['top']+_0x5828a6)/0x2-new _0x28abe5(_0x33bd35)['top'];}function P(_0x28d1c0){let _0x4b62d0=_0x28d1c0['parent'];for(;_0x4b62d0['is']('$text')||_0x4b62d0['is']('attributeElement');)_0x4b62d0=_0x4b62d0['parent'];return _0x4b62d0;}function b(_0x2870c6){return _0x2870c6['hasAttribute']('width')&&_0x2870c6['hasAttribute']('height')?Promise['resolve']():new Promise(_0x2f5d89=>{function _0x5cdd02(){_0x2870c6['removeEventListener']('load',_0x5cdd02),_0x2870c6['removeEventListener']('error',_0x5cdd02),_0x2f5d89();}_0x2870c6['complete']?_0x2f5d89():(_0x2870c6['addEventListener']('load',_0x5cdd02),_0x2870c6['addEventListener']('error',_0x5cdd02));});}function k(_0x839a02){return new Promise(_0x5eb2b5=>setTimeout(_0x5eb2b5,_0x839a02));}function y(_0x5e2a05){const _0x7fb8c4=_0x216b40['document']['createRange']();return _0x7fb8c4['selectNode'](_0x5e2a05),_0x7fb8c4;}function v(_0x1e95c6,_0x59717d,_0x1c26f5){const _0x3c9caa=_0x216b40['document']['createRange']();return _0x3c9caa['setStart'](_0x1e95c6,_0x59717d),_0x3c9caa['setEnd'](_0x1e95c6,_0x1c26f5),_0x3c9caa;}function x(_0x3fbdfb,_0x2b01ad,_0x47d3e5,_0x50e196){const _0x372ba4=_0x216b40['document']['createRange']();return _0x372ba4['setStart'](_0x3fbdfb,_0x2b01ad),_0x372ba4['setEnd'](_0x47d3e5,_0x50e196),_0x372ba4;}function L(_0x1b39b8,_0x2fd176,_0xf8f4d2,_0x4feb58,_0x22ae20){const _0x3dd7aa=[];for(const [_0x568f07,_0x4b385d]of _0x1b39b8['childNodes']['entries']()){let _0x1bdcc8=[];S(_0x4b385d)&&_0x4b385d['offsetParent']&&['static','relative']['includes'](_0x216b40['window']['getComputedStyle'](_0x4b385d)['position'])?_0x1bdcc8=N(_0x4b385d,_0x568f07,_0x2fd176,_0xf8f4d2,_0x4feb58,_0x22ae20):I(_0x4b385d)&&(_0x1bdcc8=_(_0x4b385d,_0x568f07,_0x2fd176,_0xf8f4d2,_0x22ae20)),_0x1bdcc8['length']&&(_0x3dd7aa['push'](..._0x1bdcc8),_0x2fd176+=_0x1bdcc8['length']*_0xf8f4d2,_0x22ae20=!0x1);}return _0x3dd7aa;}function N(_0x1bd631,_0x58a61d,_0x5b7a73,_0x21a50d,_0x38ad18,_0x2811ff){const _0x171013=[];var _0x58b0b9;if((_0x58b0b9=_0x1bd631['previousSibling'])&&S(_0x58b0b9)&&Boolean(_0x58b0b9['classList']['contains']('page-break')||_0x58b0b9['closest']('.page-break'))&&(_0x171013['push']({'type':'manual','offset':0x0,'path':[_0x58a61d-0x1]}),_0x2811ff=!0x0),'table-row'==_0x216b40['window']['getComputedStyle'](_0x1bd631)['display']){let _0x38db5f=0x0,_0x1ecb97=!0x1;for(const _0x1d49f4 of _0x1bd631['getClientRects']())_0x38db5f+=_0x1d49f4['height'],_0x1d49f4['left']>=_0x5b7a73&&(_0x1ecb97=!0x0);if(_0x38db5f<_0x38ad18&&_0x1ecb97)return _0x2811ff||_0x171013['push']({'type':'element','offset':0x0,'path':[_0x58a61d]}),_0x171013;}const _0x13c827=_0x1bd631['closest']('figure.image');if(_0x13c827&&function(_0x1cc92f){let _0x5c1828=!0x1;const _0x244343=_0x1cc92f['parentElement'],_0x32b910=_0x244343['dataset']['rootName'],_0x4ec178=_0x1cc92f['nextElementSibling'],_0x232901=_0x1cc92f['previousElementSibling'],_0x7a4975=_0x4ec178&&_0x216b40['window']['getComputedStyle'](_0x4ec178)['float'],_0x5029e5=_0x4ec178&&'ck-fake-selection-container'===_0x4ec178['className'];!_0x32b910||_0x4ec178||_0x232901||(_0x5c1828=!0x0),_0x32b910&&!_0x232901&&_0x5029e5&&(_0x5c1828=!0x0),_0x32b910&&!_0x232901&&'none'!==_0x7a4975&&(_0x5c1828=!0x0);if(_0x5c1828)return!0x1;return!0x0;}(_0x13c827)){const _0x5bf7b4=_0x216b40['window']['getComputedStyle'](_0x13c827)['float'];if('left'==_0x5bf7b4||'right'==_0x5bf7b4)return _0x171013;}const _0x3e22a0=L(_0x1bd631,_0x5b7a73,_0x21a50d,_0x38ad18,_0x2811ff);if(_0x3e22a0['length']){for(const _0x1dd343 of _0x3e22a0)_0x171013['push']({'type':_0x1dd343['type'],'offset':_0x1dd343['offset'],'textOffset':_0x1dd343['textOffset'],'path':[_0x58a61d,..._0x1dd343['path']]}),_0x5b7a73+=_0x21a50d,_0x2811ff=!0x1;return _0x171013;}return _0x171013['push'](...function(_0x222c52,_0x3fda99,_0x9c14da,_0x19f336,_0x3b0f1f){const _0x20f93a=[];if('table-cell'==_0x216b40['window']['getComputedStyle'](_0x222c52)['display'])return[];const _0x1fa372=[];for(const _0x362f01 of _0x222c52['getClientRects']())if(_0x362f01['left']>=_0x9c14da){for(const _0xc3fbda of _0x1fa372)_0xc3fbda['height']+=_0x362f01['height'];_0x1fa372['push']({'height':_0x362f01['height']}),_0x9c14da+=_0x19f336;}for(const _0x113532 of _0x1fa372)_0x3b0f1f||_0x20f93a['push']({'type':'element','offset':_0x113532['height'],'textOffset':0x0,'path':[_0x3fda99]}),_0x3b0f1f=!0x1;return _0x20f93a;}(_0x1bd631,_0x58a61d,_0x5b7a73,_0x21a50d,_0x2811ff)),_0x171013;}function _(_0xcc0ca3,_0x449763,_0x15a5e4,_0x1b1c0f,_0x481ad1){const _0xe5376a=y(_0xcc0ca3),_0x1fb05c=[];let _0x582477=0x0;for(const _0x240261 of _0xe5376a['getClientRects']())if(_0x240261['left']>=_0x15a5e4){const _0x50c86d=R(_0xcc0ca3,_0x582477,_0x15a5e4,_0x1b1c0f);_0x481ad1||_0x1fb05c['push']({'type':'text','path':[_0x449763],'textOffset':_0x50c86d}),_0x582477=_0x50c86d,_0x15a5e4+=_0x1b1c0f,_0x481ad1=!0x1;}return _0x1fb05c;}function R(_0x355846,_0x5e3521,_0x28a3a3,_0x140d7b){let _0x1dbd1a=_0x5e3521,_0x55b2e0=_0x355846['length'];for(;_0x55b2e0-_0x1dbd1a>0x1;){const _0x119731=Math['ceil']((_0x1dbd1a+_0x55b2e0)/0x2);E(v(_0x355846,_0x1dbd1a,_0x119731),_0x28a3a3,_0x140d7b)?_0x55b2e0=_0x119731:_0x1dbd1a=_0x119731;}return _0x1dbd1a;}function E(_0x39243c,_0x1001fc,_0x28c229){for(const _0x5af014 of _0x39243c['getClientRects']())if(_0x5af014['left']>=_0x1001fc&&_0x5af014['left']<_0x1001fc+_0x28c229)return!0x0;return!0x1;}function S(_0x53209b){return _0x53209b['nodeType']==Node['ELEMENT_NODE'];}function I(_0x35d04e){return _0x35d04e['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
+ _0x36af81('px');class LineView extends _0x11a891{constructor(){super();const _0x514de7=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x514de7['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x514de7['if']('isVisible','ck-hidden',_0x5ebb0b=>!_0x5ebb0b)],'style':{'left':_0x514de7['to']('left',_0x47baae=>B(_0x47baae)),'top':_0x514de7['to']('top',_0x9008a5=>B(_0x9008a5)),'width':_0x514de7['to']('width',_0x251957=>B(_0x251957))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x27267c){this['_viewCollection']=_0x27267c['ui']['view']['body'];}['destroy'](){for(const _0x206373 of this['_hiddenLines'])_0x206373['destroy']();}['cleanLines'](){for(const _0x23d114 of this['_visibleLines'])_0x23d114['isVisible']=!0x1,this['_hiddenLines']['add'](_0x23d114);this['_visibleLines']['clear']();}['showLine'](_0x5cd334,_0x5e7541,_0x6be7d2,_0x2f225b){let _0x2173cd;this['_hiddenLines']['size']?(_0x2173cd=_0x1c2cd9(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x2173cd)):_0x2173cd=new LineView(),_0x2173cd['set']({'pageNumber':_0x2f225b,'left':_0x5cd334,'top':_0x5e7541,'width':_0x6be7d2}),_0x2173cd['isVisible']=!0x0,this['_viewCollection']['has'](_0x2173cd)||this['_viewCollection']['add'](_0x2173cd),this['_visibleLines']['add'](_0x2173cd);}['setViewCollection'](_0x17640d){for(const _0x2a8389 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x2a8389)&&this['_viewCollection']['remove'](_0x2a8389);this['_viewCollection']=_0x17640d;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x5223e5{['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',(_0x25a682,_0x4fa39e,_0x37a8fa)=>{_0x37a8fa||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x37a8fa);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x32359d){if(!this['isEnabled'])return;const _0x4c0739=_0x32359d>0x1?this['_getPageBreakLineOffset'](_0x32359d-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x4c0739-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x43afb6['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x4a5698=this['editor'],_0x1b77a7=this['_getAttachedDomRoot']();_0x1b77a7?(this['_scrollableEditingRootDomAncestor']&&_0x4a5698['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x364936){let _0x585ae1=_0x364936;do{_0x585ae1=_0x585ae1['parentElement'];const _0x1760f5=_0x216b40['window']['getComputedStyle'](_0x585ae1)['overflowY'];if('auto'==_0x1760f5||'scroll'==_0x1760f5)break;}while('BODY'!=_0x585ae1['tagName']);return _0x585ae1;}(_0x1b77a7),_0x4a5698['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x2de416(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x4a5698['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x2b01a4=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x2b01a4['ui']['view']['listenTo'](_0x216b40['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x2b01a4['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x1592aa of this['editor']['editing']['view']['domRoots']['values']())if(_0x1592aa['ownerDocument']['body']['contains'](_0x1592aa))return _0x1592aa;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x345ec2=this['_getAttachedDomRoot'](),_0x24b6b2=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x345ec2||0x1==_0x24b6b2['length'])return void(this['pageNumber']=0x1);const _0x1d959e=new _0x28abe5(_0x345ec2)['excludeScrollbarsAndBorders'](),_0x36bc50=new _0x28abe5(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x43aa5a=_0x36bc50['top']+_0x36bc50['height']/0x3;let _0x4f07ee=!0x1;const _0x5e8c46=[];for(let _0x3cc59f=0x1;_0x3cc59f<_0x24b6b2['length'];_0x3cc59f++){const _0x48e0fe=this['_getPageBreakLineOffset'](_0x3cc59f,_0x36bc50);if(!_0x48e0fe)continue;const _0xaa1d24=_0x36bc50['top']+_0x48e0fe-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x5e8c46['push']({'pageOffsetTop':_0xaa1d24,'domRootRect':_0x1d959e,'domScrollableRect':_0x36bc50,'pageNumber':_0x3cc59f}),_0xaa1d24>_0x43aa5a&&!_0x4f07ee&&(this['pageNumber']=_0x3cc59f,_0x4f07ee=!0x0);}this['_renderPageBreakLines'](_0x5e8c46),_0x4f07ee||(this['pageNumber']=_0x24b6b2['length']);}['_renderPageBreakLines'](_0x63d846){const {scrollX:_0x4a9690,scrollY:_0x282209}=_0x216b40['window'];if(_0x63d846['length']){for(const {domScrollableRect:_0x5dd6ac,pageOffsetTop:_0x1f43b1,domRootRect:_0x1e8d29,pageNumber:_0x1685bf}of _0x63d846)_0x5dd6ac['top']<_0x1f43b1&&_0x1f43b1<_0x5dd6ac['bottom']&&this['linesRepository']['showLine'](_0x1e8d29['left']+_0x4a9690,_0x1f43b1+_0x282209,_0x1e8d29['width'],_0x1685bf+0x1);}}['_getPageBreakLineOffset'](_0x2baa9a,_0xdfdf4f=null){const _0x9f8958=this['_paginationLookupPlugin']['pageBreaks'][_0x2baa9a]['offset'];return _0x9f8958?(_0xdfdf4f||(_0xdfdf4f=new _0x28abe5(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x9f8958-_0xdfdf4f['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x527ec9,_0x105f8a=!0x0){const _0x59fc0f=this['editor']['editing']['view'];_0x59fc0f['change'](_0x5875dc=>{for(const _0x461b0b of _0x59fc0f['document']['roots'])_0x105f8a?_0x5875dc['addClass'](_0x527ec9,_0x461b0b):_0x5875dc['removeClass'](_0x527ec9,_0x461b0b);});}}function O(_0xa54d8c,_0x2625f8,..._0x29df44){const t=_0xa54d8c['t'];switch(_0x2625f8){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)',..._0x29df44);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 _0x2625f8;}}class PaginationEditing extends _0x5223e5{['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 _0xb345cf=this['editor']['plugins']['get']('Pagination'),_0x40e31f=this['editor']['plugins']['get'](PaginationLookup),_0x38b980=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0xb345cf),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x38b980),this['listenTo'](_0x40e31f,'change:pageBreaks',(_0x4800bd,_0x3e0578,_0x5966f0,_0x131b73)=>{this['totalPages']=_0x5966f0['length'],this['_updatePageBreakMarkers'](_0x5966f0,_0x131b73);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b532f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x528ac8;for(const _0x41b153 in _0x1b532f){const _0x3ba189=_0x41b153,_0x3adb1f=_0x1b532f[_0x3ba189];if('paginationLicenseKeyValid'==_0x3adb1f||'paginationLicenseKeyInvalid'==_0x3adb1f||'paginationLicenseKeyExpired'==_0x3adb1f||'paginationLicenseKeyDomainLimit'==_0x3adb1f||'paginationLicenseKeyNotAllowed'==_0x3adb1f||'paginationLicenseKeyEvaluationLimit'==_0x3adb1f||'paginationLicenseKeyUsageLimit'==_0x3adb1f){delete _0x1b532f[_0x3ba189],_0x528ac8=_0x3adb1f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x528ac8&&_0x1b532f['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x528ac8&&_0x1b532f['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x528ac8&&_0x1b532f['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x528ac8&&_0x1b532f['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x528ac8&&_0x1b532f['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x528ac8&&_0x1b532f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x1d0230){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x1d0230));}['moveSelectionToPage'](_0x189505){if(!this['isEnabled'])return;const _0x46fa10=this['editor'],_0x3ef5e1=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x189505-0x1];_0x3ef5e1&&_0x46fa10['model']['change'](_0xf019dc=>{switch(_0x3ef5e1['type']){case'manual':{const _0x4a9b08=_0x46fa10['model']['schema']['getNearestSelectionRange'](_0x3ef5e1['modelRange']['end'],'forward');_0xf019dc['setSelection'](_0x4a9b08);break;}case'element':{const _0xce9aeb=_0x46fa10['model']['schema']['getNearestSelectionRange'](_0x3ef5e1['modelRange']['start'],'forward');_0xf019dc['setSelection'](_0xce9aeb);break;}case'text':{const _0x482d96=_0x3ef5e1['modelRange']['start'];if(_0x482d96['textNode']&&'\x20'===_0x482d96['textNode']['data'][_0x482d96['offset']]){const _0x2d4aeb=_0xf019dc['createPositionAt'](_0x482d96['parent'],_0x482d96['offset']+0x1);_0xf019dc['setSelection'](_0x2d4aeb);}else _0xf019dc['setSelection'](_0x3ef5e1['modelRange']);}}_0x46fa10['editing']['view']['focus']();});}['goToNextPage'](){const _0x48d820=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x48d820),this['scrollToPage'](_0x48d820);}['goToPreviousPage'](){const _0xb108aa=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0xb108aa),this['scrollToPage'](_0xb108aa);}['_updatePageBreakMarkers'](_0x1bcfe4,_0xfa07ea){const _0x21b720=this['editor']['model'];this['isEnabled']&&_0x21b720['change'](_0xfb616b=>{for(let _0x3d622c=0x1;_0x3d622c<_0x1bcfe4['length'];_0x3d622c++){const _0x1b68d6=_0x1bcfe4[_0x3d622c]['modelRange'],_0xadb3bb='pagination:'+(_0x3d622c+0x1);_0x21b720['markers']['has'](_0xadb3bb)?_0xfb616b['updateMarker'](_0xadb3bb,{'range':_0x1b68d6}):_0xfb616b['addMarker'](_0xadb3bb,{'range':_0x1b68d6,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x1d2577=_0x1bcfe4['length'];_0x1d2577<_0xfa07ea['length'];_0x1d2577++){const _0x25bf14='pagination:'+(_0x1d2577+0x1);_0x21b720['markers']['has'](_0x25bf14)&&_0xfb616b['removeMarker'](_0x25bf14);}});}['_setUpDataDowncastConversion'](){const _0x5d132e='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x1c93fd=>{_0x1c93fd['on']('addMarker:'+_0x5d132e,(_0x3ab8f4,{markerRange:_0xd7e2d5,markerName:_0x57bcf2},_0xbd2cfd)=>{if(!_0xbd2cfd['options']['pagination'])return;if(!_0xbd2cfd['consumable']['consume'](_0xd7e2d5,_0x3ab8f4['name']))return;const _0x584c90=_0xd7e2d5['getContainedElement']();let _0x784d97=_0x584c90?_0xbd2cfd['mapper']['toViewElement'](_0x584c90):null;if(!_0x784d97){const _0x1f064b=_0xd7e2d5['start'];if(_0xbd2cfd['schema']['checkChild'](_0x1f064b,'$text')){const _0x5e7f18=_0xbd2cfd['mapper']['toViewPosition'](_0x1f064b);_0x784d97=_0xbd2cfd['writer']['createContainerElement']('span'),_0x784d97['getFillerOffset']=()=>null,_0xbd2cfd['writer']['insert'](_0x5e7f18,_0x784d97);}else{const _0x3db309=_0x1f064b['nodeAfter'];_0x784d97=_0xbd2cfd['mapper']['toViewElement'](_0x3db309);}}for(;_0x784d97['parent']!==_0x784d97['root']&&0x0===_0x784d97['index'];)_0x784d97=_0x784d97['parent'];const _0x4c65b1=_0x57bcf2['substring'](0xb);_0x784d97['hasClass']('page-break')||(_0xbd2cfd['writer']['setStyle']('page-break-before','always',_0x784d97),_0xbd2cfd['writer']['setAttribute']('data-pagination-page',_0x4c65b1,_0x784d97),_0xbd2cfd['mapper']['bindElementToMarker'](_0x784d97,_0x57bcf2)),_0x3ab8f4['stop']();});});}['_setupKeystrokes'](){const _0x3705ee=this['editor'];_0x3705ee['keystrokes']['set']('Shift+Pageup',(_0x29d4ca,_0x51afab)=>{this['goToPreviousPage'](),_0x51afab();}),_0x3705ee['keystrokes']['set']('Shift+Pagedown',(_0x1cce9a,_0x33422c)=>{this['goToNextPage'](),_0x33422c();}),_0x3705ee['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x3705ee['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x3705ee['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x3705ee['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x563ffb){return _0x563ffb<0x1&&(_0x563ffb=0x1),_0x563ffb>this['totalPages']&&(_0x563ffb=this['totalPages']),_0x563ffb;}}class PageNavigatorView extends _0x11a891{['pageNumberView'];constructor(_0x2d4fc3){super(_0x2d4fc3);const _0x23b9cb=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x126376(_0x2d4fc3,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x16a1c7=>O(_0x2d4fc3,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x16a1c7)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x10fc48=>!_0x10fc48),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x23b9cb['if']('isEnabled','ck-disabled',_0x35145f=>!_0x35145f)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x23b9cb['to']('totalPages')}]}]});}['render'](){super['render']();const _0x3efbb3=this['pageNumberView']['element'],_0x40c21a=_0x4a3919=>{this['pageNumberView']['element']['value']=String(_0x4a3919);};_0x40c21a(this['pageNumber']),this['on']('change:pageNumber',(_0x299d56,_0x4f9b65,_0x5ddcb2)=>{_0x40c21a(_0x5ddcb2);}),this['listenTo'](_0x3efbb3,'keydown',(_0x16159f,_0x1ee18c)=>{if('ArrowUp'===_0x1ee18c['key']||'ArrowDown'===_0x1ee18c['key'])return void _0x1ee18c['stopPropagation']();if(_0x1ee18c['keyCode']!==_0x48fff6['enter'])return;_0x1ee18c['preventDefault']();const _0x442a1b=_0x3efbb3['valueAsNumber'];Number['isNaN'](_0x442a1b)?_0x3efbb3['value']=String(this['pageNumber']):(_0x3efbb3['checkValidity']()?this['pageNumber']=_0x442a1b:_0x442a1b>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x3efbb3['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x3efbb3['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x3efbb3,'blur',()=>{_0x3efbb3['value']=String(this['pageNumber']);}),this['listenTo'](_0x3efbb3,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class PaginationUI extends _0x5223e5{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2a344f=this['editor'],_0x39a600=_0x2a344f['plugins']['get']('PaginationEditing');_0x2a344f['ui']['componentFactory']['add']('pageNavigation',_0x1673b8=>{const _0x2f9911=new PageNavigatorView(_0x1673b8);return _0x2f9911['bind']('pageNumber')['to'](_0x39a600),_0x2f9911['bind']('totalPages')['to'](_0x39a600),_0x2f9911['bind']('isEnabled')['to'](_0x39a600),_0x2f9911['on']('navigation',(_0x156721,_0x2c7ded)=>{_0x39a600['moveSelectionToPage'](_0x2c7ded),_0x39a600['scrollToPage'](_0x2c7ded);}),_0x2f9911;}),_0x2a344f['ui']['componentFactory']['add']('nextPage',_0x2a7eff=>{const _0x4dd408=new _0xcb0494(_0x2a7eff);return _0x4dd408['isEnabled']=!0x0,_0x4dd408['label']=O(_0x2a344f['locale'],'Go\x20to\x20next\x20page'),_0x4dd408['icon']=_0x998fdd,_0x4dd408['tooltip']=!0x0,_0x4dd408['keystroke']='Shift+PageDown',_0x4dd408['bind']('isEnabled')['to'](_0x39a600),this['listenTo'](_0x4dd408,'execute',()=>{_0x39a600['goToNextPage']();}),_0x4dd408;}),_0x2a344f['ui']['componentFactory']['add']('previousPage',_0x210854=>{const _0x8d7fb8=new _0xcb0494(_0x210854);return _0x8d7fb8['isEnabled']=!0x0,_0x8d7fb8['label']=O(_0x2a344f['locale'],'Go\x20to\x20previous\x20page'),_0x8d7fb8['icon']=_0x468b34,_0x8d7fb8['tooltip']=!0x0,_0x8d7fb8['keystroke']='Shift+PageUp',_0x8d7fb8['bind']('isEnabled')['to'](_0x39a600),this['listenTo'](_0x8d7fb8,'execute',()=>{_0x39a600['goToPreviousPage']();}),_0x8d7fb8;});}}class Pagination extends _0x5223e5{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x19d03f){super(_0x19d03f),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x2f2768=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x2f2768),this['bind']('totalPages')['to'](_0x2f2768),_0x43afb6['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x7fbc7d){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x7fbc7d);}}export{Pagination,PaginationRenderer};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-pagination",
3
- "version": "48.8.1-alpha.0",
3
+ "version": "48.8.1-alpha.2",
4
4
  "description": "Pagination feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,11 +21,11 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.8.1-alpha.0",
25
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.0",
26
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.0",
27
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.0",
28
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.0",
24
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.2",
25
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.2",
26
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.2",
27
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.2",
28
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.2",
29
29
  "es-toolkit": "1.45.1"
30
30
  },
31
31
  "files": [