@ckeditor/ckeditor5-pagination 48.8.1-alpha.1 → 48.8.1-alpha.3

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 _0x1d58ec}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x396d63,InputNumberView as _0x5e7329,ButtonView as _0x892e9b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x5a2453,global as _0x128704,Rect as _0x4b1206,uid as _0x27ac58,toUnit as _0x3df125,first as _0x17c259,env as _0x27ec2c,ResizeObserver as _0x331a31,keyCodes as _0x3cbb44}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x5c5ac5}from'es-toolkit/compat';import{IconArrowDown as _0x2ac44a,IconArrowUp as _0x55c0e8}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x1d58ec{['_recalculatePageBreaksDebounced']=_0x5c5ac5(()=>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 _0x5a2453('pagination-config-not-found',this['editor']['config']);const _0x52af9d=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x52af9d),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x4d91e1,_0x12bce4,_0x91a67a)=>{_0x91a67a&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x5cc19a){const _0x12ac7a=_0x53d576([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]),_0x57b028=0xc82cb1e,_0x54fcaf=0xc854126^_0x57b028,_0x38f182=window[_0x53d576([0x44,0x61,0x74,0x65])][_0x53d576([0x6e,0x6f,0x77])](),_0xdc253d=_0x5cc19a[_0x53d576([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31603b=new window[(_0x53d576([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd0a0fc=>{_0xdc253d[_0x53d576([0x6f,0x6e,0x63,0x65])](_0x53d576([0x72,0x65,0x61,0x64,0x79]),_0xd0a0fc);}),_0x33d9d0={[_0x53d576([0x6b,0x74,0x79])]:_0x53d576([0x45,0x43]),[_0x53d576([0x75,0x73,0x65])]:_0x53d576([0x73,0x69,0x67]),[_0x53d576([0x63,0x72,0x76])]:_0x53d576([0x50,0x2d,0x32,0x35,0x36]),[_0x53d576([0x78])]:_0x53d576([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]),[_0x53d576([0x79])]:_0x53d576([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]),[_0x53d576([0x61,0x6c,0x67])]:_0x53d576([0x45,0x53,0x32,0x35,0x36])},_0x591162=_0xdc253d[_0x53d576([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53d576([0x67,0x65,0x74])](_0x53d576([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5ed0d3(){let _0x15670b,_0x35ca41=null,_0x43061a=null;try{if(_0x591162==_0x53d576([0x47,0x50,0x4c]))return _0x53d576([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15670b=_0x3d4809(),!_0x15670b)return _0x53d576([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15670b[_0x53d576([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43061a=_0x231bbd(_0x15670b[_0x53d576([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15670b[_0x53d576([0x6a,0x74,0x69])])),await _0xeb50a6()?_0x20a0ca()?_0x537290()?_0x53d576([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5607b2()?(_0x15670b[_0x53d576([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53d576([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35ca41=_0x334b0f(_0x53d576([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x209b07()):_0x53d576([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53d576([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53d576([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x53d576([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x537290(){const _0x36a6a7=[_0x53d576([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53d576([0x74,0x72,0x69,0x61,0x6c])][_0x53d576([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15670b[_0x53d576([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38f182/0x3e8:0xe10*_0x54fcaf;return _0x15670b[_0x53d576([0x65,0x78,0x70])]<_0x36a6a7;}function _0x20a0ca(){const _0x233942=_0x15670b[_0x53d576([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x233942&&(!!_0x233942[_0x53d576([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53d576([0x2a]))||!!_0x233942[_0x53d576([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53d576([0x50,0x41,0x47])));}function _0x5607b2(){const _0x224642=_0x15670b[_0x53d576([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x224642||0x0==_0x224642[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e1738}=new URL(window[_0x53d576([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x224642[_0x53d576([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e1738))return!0x0;const _0x4cb3f7=_0x5e1738[_0x53d576([0x73,0x70,0x6c,0x69,0x74])](_0x53d576([0x2e]));return _0x224642[_0x53d576([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15939e=>_0x15939e[_0x53d576([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53d576([0x2a])))[_0x53d576([0x6d,0x61,0x70])](_0x5f1da3=>_0x5f1da3[_0x53d576([0x73,0x70,0x6c,0x69,0x74])](_0x53d576([0x2e])))[_0x53d576([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d5cec=>_0x5d5cec[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4cb3f7[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53d576([0x6d,0x61,0x70])](_0x27a543=>Array(_0x4cb3f7[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27a543[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53d576([0x66,0x69,0x6c,0x6c])](_0x27a543[0x0]===_0x53d576([0x2a])?_0x53d576([0x2a]):'')[_0x53d576([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27a543))[_0x53d576([0x73,0x6f,0x6d,0x65])](_0x59c705=>_0x4cb3f7[_0x53d576([0x65,0x76,0x65,0x72,0x79])]((_0x2910d7,_0x48c2ed)=>_0x59c705[_0x48c2ed]===_0x2910d7||_0x59c705[_0x48c2ed]===_0x53d576([0x2a])));}function _0x209b07(){return _0x35ca41&&_0x43061a?new window[(_0x53d576([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x172b5f,_0x485ab5)=>{_0x35ca41[_0x53d576([0x74,0x68,0x65,0x6e])](_0x172b5f,_0x485ab5),_0x43061a[_0x53d576([0x74,0x68,0x65,0x6e])](_0x47cd9c=>{_0x47cd9c!=_0x53d576([0x56,0x61,0x6c,0x69,0x64])&&_0x172b5f(_0x47cd9c);},_0x485ab5);}):_0x35ca41||_0x43061a||_0x53d576([0x56,0x61,0x6c,0x69,0x64]);}}function _0x231bbd(_0x11a6d0,_0x4495e5){return new window[(_0x53d576([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ca748=>{if(_0x1e3447())return _0x2ca748(_0x53d576([0x56,0x61,0x6c,0x69,0x64]));_0x16f4b5(),_0xdc253d[_0x53d576([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53d576([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15263d=!0x1;const _0x1fe59f=_0x27ac58();function _0x308ff1(_0x2a29e5){return!!_0x2a29e5&&(typeof _0x2a29e5===_0x53d576([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a29e5===_0x53d576([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a29e5[_0x53d576([0x74,0x68,0x65,0x6e])]===_0x53d576([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a29e5[_0x53d576([0x63,0x61,0x74,0x63,0x68])]===_0x53d576([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xa0f252(_0x51f827){_0x545de3(_0x51f827)[_0x53d576([0x74,0x68,0x65,0x6e])](_0x52530e=>{if(!_0x52530e||_0x52530e[_0x53d576([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53d576([0x6f,0x6b]))return _0x53d576([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b6857(_0x176cea(_0x1fe59f+_0x4495e5))!=_0x52530e[_0x53d576([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53d576([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53d576([0x56,0x61,0x6c,0x69,0x64]);})[_0x53d576([0x74,0x68,0x65,0x6e])](_0x54c29=>(_0x62144(),_0x54c29),()=>{const _0x283a82=_0x16285a();return null==_0x283a82?(_0x62144(),_0x53d576([0x56,0x61,0x6c,0x69,0x64])):_0x53d576(_0x38f182-_0x283a82>(0x288e4f1e^_0x57b028)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53d576([0x74,0x68,0x65,0x6e])](_0x2ca748)[_0x53d576([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ca748(_0x53d576([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6179db=0xcb4259e^_0x57b028;function _0x62144(){const _0x155ac2=_0x53d576([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b6857(_0x176cea(_0x11a6d0)),_0x4a15c2=_0x1a2bd1(_0x5b6857(window[_0x53d576([0x4d,0x61,0x74,0x68])][_0x53d576([0x63,0x65,0x69,0x6c])](_0x38f182/_0x6179db)));window[_0x53d576([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53d576([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x155ac2,_0x4a15c2);}function _0x16285a(){const _0x48aeee=_0x53d576([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b6857(_0x176cea(_0x11a6d0)),_0x2264ce=window[_0x53d576([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53d576([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48aeee);return _0x2264ce?window[_0x53d576([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a2bd1(_0x2264ce),0x10)*_0x6179db:null;}function _0x545de3(_0x12607c){return new window[(_0x53d576([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2edc5f,_0x355670)=>{_0x12607c[_0x53d576([0x74,0x68,0x65,0x6e])](_0x2edc5f,_0x355670),window[_0x53d576([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x355670,0xc831fde^_0x57b028);});}}_0xdc253d[_0x53d576([0x6f,0x6e])](_0x53d576([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f3bdd,_0x46786a)=>{if(_0x46786a[0x0]!=_0x11a6d0)return _0x2ca748(_0x53d576([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46786a[0x1]={..._0x46786a[0x1],[_0x53d576([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1fe59f};},{[_0x53d576([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53d576([0x68,0x69,0x67,0x68])}),_0xdc253d[_0x53d576([0x6f,0x6e])](_0x53d576([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40fdf5=>{_0x308ff1(_0x40fdf5[_0x53d576([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15263d=!0x0,_0xa0f252(_0x40fdf5[_0x53d576([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53d576([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53d576([0x6c,0x6f,0x77])}),_0x31603b[_0x53d576([0x74,0x68,0x65,0x6e])](()=>{_0x15263d||_0x2ca748(_0x53d576([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e3447(){return _0xdc253d[_0x53d576([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53d576([0x76,0x69,0x65,0x77])][_0x53d576([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53d576([0x61,0x75,0x74,0x6f]);}function _0x16f4b5(){_0xdc253d[_0x53d576([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53d576([0x76,0x69,0x65,0x77])][_0x53d576([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53d576([0x61,0x75,0x74,0x6f]);}}function _0x334b0f(_0x597722){const _0x447ecb=[new window[(_0x53d576([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5869dc=>setTimeout(_0x5869dc,0xc8bf5d2^_0x57b028)),_0x31603b[_0x53d576([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53d576([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48b69d=>{let _0x497a5b=0x0;_0xdc253d[_0x53d576([0x6d,0x6f,0x64,0x65,0x6c])][_0x53d576([0x6f,0x6e])](_0x53d576([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4fc03,_0x2cba23)=>{_0x2cba23[0x0][_0x53d576([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x497a5b++,_0x497a5b==(0xc82cef6^_0x57b028)&&(_0x48b69d(),_0x4fc03[_0x53d576([0x6f,0x66,0x66])]());});}))];return window[_0x53d576([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53d576([0x72,0x61,0x63,0x65])](_0x447ecb)[_0x53d576([0x74,0x68,0x65,0x6e])](()=>_0x597722);}async function _0x3720f1(){await _0x31603b,_0xdc253d[_0x53d576([0x6d,0x6f,0x64,0x65,0x6c])][_0x53d576([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36f3a7,_0xdc253d[_0x53d576([0x6d,0x6f,0x64,0x65,0x6c])][_0x53d576([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36f3a7,_0xdc253d[_0x53d576([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53d576([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b7ba4(_0x4afda3){const _0x59c122=_0x2cf651();_0xdc253d[_0x59c122]=_0x53d576([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4afda3,_0x4afda3!=_0x53d576([0x56,0x61,0x6c,0x69,0x64])&&_0x3720f1();}function _0x2cf651(){const _0x2af83a=window[_0x53d576([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53d576([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53d576([0x6e,0x6f,0x77])]())[_0x53d576([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53d576([0x2e]),'');let _0xd2af4e=_0x53d576([0x49]);for(let _0x221468=0x0;_0x221468<_0x2af83a[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x221468+=0x2){let _0x1bdb22=window[_0x53d576([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2af83a[_0x53d576([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x221468,_0x221468+0x2));_0x1bdb22>=_0x12ac7a[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1bdb22-=_0x12ac7a[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd2af4e+=_0x12ac7a[_0x1bdb22];}return _0xd2af4e;}function _0x3d4809(){const _0x715821=_0x591162[_0x53d576([0x73,0x70,0x6c,0x69,0x74])](_0x53d576([0x2e]));if(0x3!=_0x715821[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b8a43(_0x715821[0x1]);function _0x2b8a43(_0x18deae){const _0x30c4d8=_0x2aa26d(_0x18deae);return _0x30c4d8&&_0x2bc71a()?_0x30c4d8:null;function _0x2bc71a(){const _0x433a26=_0x30c4d8[_0x53d576([0x6a,0x74,0x69])],_0x35af59=window[_0x53d576([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x433a26[_0x53d576([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x433a26[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x52ae41={..._0x30c4d8,[_0x53d576([0x6a,0x74,0x69])]:_0x433a26[_0x53d576([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x433a26[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x52ae41[_0x53d576([0x76,0x63])],_0x176cea(_0x52ae41)==_0x35af59;}}}async function _0xeb50a6(){let _0x10ba40=!0x0;try{const _0x2e41e2=_0x591162[_0x53d576([0x73,0x70,0x6c,0x69,0x74])](_0x53d576([0x2e])),[_0x3ddb61,_0x3f531d,_0x5152ec]=_0x2e41e2;return _0x16c5e7(_0x3ddb61),await _0x39de00(_0x3ddb61,_0x3f531d,_0x5152ec),_0x10ba40;}catch{return!0x1;}function _0x16c5e7(_0x5f1252){const _0x10421f=_0x2aa26d(_0x5f1252);_0x10421f&&_0x10421f[_0x53d576([0x61,0x6c,0x67])]==_0x53d576([0x45,0x53,0x32,0x35,0x36])||(_0x10ba40=!0x1);}async function _0x39de00(_0x53feea,_0x261583,_0x3dd711){const _0x32772a=window[_0x53d576([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53d576([0x66,0x72,0x6f,0x6d])](_0x4bbcf7(_0x3dd711),_0x1b7d16=>_0x1b7d16[_0x53d576([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47433e=new window[(_0x53d576([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53d576([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53feea+_0x53d576([0x2e])+_0x261583),_0x3dafbc=window[_0x53d576([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53d576([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3dafbc)return;const _0x1ebe88=await _0x3dafbc[_0x53d576([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53d576([0x6a,0x77,0x6b]),_0x33d9d0,{[_0x53d576([0x6e,0x61,0x6d,0x65])]:_0x53d576([0x45,0x43,0x44,0x53,0x41]),[_0x53d576([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53d576([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53d576([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3dafbc[_0x53d576([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53d576([0x6e,0x61,0x6d,0x65])]:_0x53d576([0x45,0x43,0x44,0x53,0x41]),[_0x53d576([0x68,0x61,0x73,0x68])]:{[_0x53d576([0x6e,0x61,0x6d,0x65])]:_0x53d576([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ebe88,_0x32772a,_0x47433e)||(_0x10ba40=!0x1);}}function _0x2aa26d(_0x59e7a3){return _0x59e7a3[_0x53d576([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53d576([0x65,0x79]))?JSON[_0x53d576([0x70,0x61,0x72,0x73,0x65])](_0x4bbcf7(_0x59e7a3)):null;}function _0x4bbcf7(_0x22fadd){return window[_0x53d576([0x61,0x74,0x6f,0x62])](_0x22fadd[_0x53d576([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53d576([0x2b]))[_0x53d576([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53d576([0x2f])));}function _0x176cea(_0x596609){let _0x2ce96d=0x1505;function _0x24efa3(_0x5119a9){for(let _0x484564=0x0;_0x484564<_0x5119a9[_0x53d576([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x484564++){const _0x1b21d2=_0x5119a9[_0x53d576([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x484564);_0x2ce96d=(_0x2ce96d<<0x5)+_0x2ce96d+_0x1b21d2,_0x2ce96d&=_0x2ce96d;}}function _0x2693f1(_0x3771f9){Array[_0x53d576([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3771f9)?_0x3771f9[_0x53d576([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2693f1):_0x3771f9&&typeof _0x3771f9==_0x53d576([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53d576([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3771f9)[_0x53d576([0x73,0x6f,0x72,0x74])]()[_0x53d576([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d04d3,_0x322b91])=>{_0x24efa3(_0x4d04d3),_0x2693f1(_0x322b91);}):_0x24efa3(window[_0x53d576([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3771f9));}return _0x2693f1(_0x596609),_0x2ce96d>>>0x0;}function _0x5b6857(_0x24e866){return _0x24e866[_0x53d576([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53d576([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53d576([0x30]));}function _0x1a2bd1(_0x402683){return _0x402683[_0x53d576([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53d576([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53d576([0x6a,0x6f,0x69,0x6e])]('');}function _0x36f3a7(){}function _0x53d576(_0x2ba320){return _0x2ba320['map'](_0x18d6e8=>String['fromCharCode'](_0x18d6e8))['join']('');}_0x5b7ba4(await _0x5ed0d3());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x215ce1=this['editor'],_0x38df76=_0x215ce1['editing']['view'],_0x1b6902=this['_getAttachedDomRoot']();if(!_0x1b6902||0x0===_0x1b6902['childElementCount'])return void _0x215ce1['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x364ab3,pageHeight:_0x509f32}=_0x215ce1['config']['get']('pagination'),{top:_0x5d8236,left:_0x577045,bottom:_0x31c88a,right:_0x2a6758}=this['_configuredPaddings'];this['_pagesContainer']=new _0x396d63(_0x215ce1['locale']);const _0x4a7231=this['_pagesContainer'];_0x4a7231['set']('class',''),_0x4a7231['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x364ab3,'width':_0x364ab3,'height':'calc(\x20'+_0x509f32+'\x20-\x20'+_0x5d8236+'\x20-\x20'+_0x31c88a+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x2a6758+'\x200\x20'+_0x577045,'columnGap':'calc('+_0x577045+'\x20+\x20'+_0x2a6758+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x4a7231['bindTemplate']['to']('class')}}),_0x4a7231['render'](),_0x1b6902['parentNode']['insertBefore'](_0x4a7231['element'],_0x1b6902['nextSibling']),this['listenTo'](_0x38df76,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x1802eb of this['editor']['editing']['view']['domRoots']['values']())if(_0x1802eb['ownerDocument']['body']['contains'](_0x1802eb))return _0x1802eb;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x1100ba=this['editor']['editing']['view'],_0x52a72b=this['_pagesContainer'],_0x253206=this['_getAttachedDomRoot']();if(!_0x253206)return Promise['resolve']();for(_0x52a72b['class']=['ck-reset','ck-pagination-view',..._0x253206['classList']]['join']('\x20');_0x52a72b['element']['firstChild'];)_0x52a72b['element']['firstChild']['remove']();const _0x305b8d=Array['from'](_0x1100ba['domRoots']);_0x305b8d['sort'](([,_0x2d1bb2],[,_0x5e5d01])=>_0x2d1bb2['compareDocumentPosition'](_0x5e5d01)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0xb22679,_0x53fde7]of _0x305b8d){const _0x238fe8=_0x53fde7['cloneNode'](!0x0);'attributeStyleMap'in _0x238fe8&&_0x238fe8['attributeStyleMap']['clear'](),_0x238fe8['dataset']['rootName']=_0xb22679,_0x238fe8['className']='ck-content\x20ck-pagination_enabled',_0x238fe8['removeAttribute']('id'),_0x238fe8['tabIndex']=-0x1,_0x52a72b['element']['append'](_0x238fe8);}const _0x239238=Array['from'](_0x52a72b['element']['querySelectorAll']('img'));return function(_0x2be68e){return Promise['all'](_0x2be68e['map'](_0x26fabd=>Promise['race']([b(_0x26fabd),k(0x3e8)])));}(_0x239238)['then'](()=>{for(const _0x17868a of _0x239238['filter'](_0x74225a=>!_0x74225a['closest']('table')))if(_0x17868a['offsetParent']){const _0x271326=_0x128704['window']['getComputedStyle'](_0x17868a),_0x215345=_0x128704['document']['createElement']('span');for(const _0x2083c3 of _0x271326)_0x215345['style']['setProperty'](_0x2083c3,_0x271326[_0x2083c3]);_0x215345['style']['backgroundImage']='url(\x20'+_0x17868a['src']+'\x20)',_0x215345['style']['breakInside']='avoid','PICTURE'==_0x17868a['parentElement']?.['tagName']?_0x17868a['parentElement']['replaceWith'](_0x215345):_0x17868a['replaceWith'](_0x215345);}return new Promise(_0x4e3d2f=>_0x128704['window']['requestAnimationFrame'](()=>_0x4e3d2f()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x5ee4af=this['_pagesContainer']['element'];if(!_0x5ee4af['ownerDocument']['body']['contains'](_0x5ee4af))return;const _0x4f9fb7=new _0x4b1206(_0x5ee4af)['excludeScrollbarsAndBorders'](),_0x4ebd57=Math['floor'](_0x4f9fb7['width']+0x64),_0x5b8bcc=L(_0x5ee4af,Math['floor'](_0x4f9fb7['left']-_0x5ee4af['scrollLeft']),_0x4ebd57,_0x4f9fb7['height'])['map'](_0x69f61e=>this['_mapPageStarterInfoToPageBreakInfo'](_0x69f61e))['filter'](_0x36d63a=>!0x1!==_0x36d63a);_0x5b8bcc['every'](_0x234cd8=>!!_0x234cd8)&&(this['pageBreaks']=_0x5b8bcc);}['_mapPageStarterInfoToPageBreakInfo'](_0x167a90){const _0x5a9b47=this['editor']['editing']['view'],_0x1e6425=this['editor']['editing']['mapper'],_0x3ea8a2=_0x5a9b47['domConverter'],_0x421117=_0x167a90['path']['shift'](),_0x3e95e4=this['_pagesContainer']['element']['childNodes'][_0x421117]['dataset']['rootName'],_0x25e89a=_0x5a9b47['getDomRoot'](_0x3e95e4);if(!_0x25e89a)return null;const _0x20dda6=function(_0x59033d,_0x18c300){let _0x57095f=_0x59033d;for(const _0x4d3fc1 of _0x18c300['path']){if(!_0x57095f)return null;_0x57095f=_0x57095f['childNodes'][_0x4d3fc1];}return _0x57095f;}(_0x25e89a,_0x167a90);if(!_0x20dda6)return null;const _0x5345d6=_0x3ea8a2['domPositionToView'](_0x20dda6,_0x167a90['textOffset']||0x0);return _0x5345d6?'manual'==_0x167a90['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x5345d6,_0x20dda6):'text'==_0x167a90['type']&&_0x1e6425['toModelPosition'](_0x5345d6)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x5345d6,_0x20dda6,_0x167a90['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x5345d6,_0x20dda6,_0x167a90['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x199e0c,_0x3e3fcc){const _0x23dfc4=this['editor']['model'],_0x1c71d9=this['editor']['editing']['mapper']['toModelElement'](_0x199e0c['parent']),_0x584eb8=_0x23dfc4['createRangeOn'](_0x1c71d9);return new PageBreakInfo({'type':'manual','modelRange':_0x584eb8,'domNode':_0x3e3fcc,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x215c5a,_0x1090b5,_0x759f2){const _0x27659f=this['editor']['model'],_0x101b3b=this['editor']['editing']['mapper'],_0x3e0edc=this['editor']['editing']['view']['domConverter'];if(_0x759f2>=_0x1090b5['length'])return null;const _0x39e1a9=_0x101b3b['toModelPosition'](_0x215c5a),_0x15c021=_0x27659f['createRange'](_0x39e1a9),_0x3c070c=_0x101b3b['findMappedViewAncestor'](_0x215c5a),_0x42b3c3=_0x3e0edc['mapViewToDom'](_0x3c070c);return new PageBreakInfo({'type':'text','modelRange':_0x15c021,'domNode':_0x1090b5,'offset':w(_0x1090b5,_0x759f2,_0x42b3c3)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x34cfe2,_0x15f96f,_0x4a4795){const _0x47bc80=this['editor']['model'],_0x1ddd6b=this['editor']['editing'],_0x7ac3bf=_0x1ddd6b['mapper'],_0xf6600d=_0x1ddd6b['view']['domConverter'],_0x240446=_0x7ac3bf['findMappedViewAncestor'](_0x34cfe2),_0x2e9969=_0x7ac3bf['toModelElement'](_0x240446);if(!_0x2e9969||_0x2e9969['is']('element','$root'))return!0x1;const _0x275c9e=function(_0x37f59b){const _0x2c446f=_0x37f59b['parent'],_0x1e36a4=_0x2c446f['root']['document']['model'],_0x12b09a=_0x2c446f['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x40f537=null;for(const _0x4afeb5 of _0x12b09a){if(_0x4afeb5['is']('rootElement'))return _0x40f537;if(!_0x1e36a4['createPositionBefore'](_0x4afeb5)['isTouching'](_0x37f59b))return _0x40f537;_0x40f537=_0x4afeb5;}}(_0x47bc80['createPositionBefore'](_0x2e9969)),_0xab3cc5=_0x275c9e||_0x2e9969;let _0x48c497=_0x7ac3bf['toViewElement'](_0xab3cc5),_0x41c527=_0x47bc80['createRangeOn'](_0xab3cc5);const _0xb421fc=_0x47bc80['createPositionBefore'](_0xab3cc5)['nodeBefore'];if(_0xb421fc&&_0xb421fc['is']('element','imageBlock')){const _0xb46741=_0x7ac3bf['toViewElement'](_0xb421fc),_0x3611be=_0xf6600d['mapViewToDom'](_0xb46741),_0x1fae6c=_0x128704['window']['getComputedStyle'](_0x3611be)['float'];'left'!=_0x1fae6c&&'right'!=_0x1fae6c||(_0x41c527=_0x47bc80['createRangeOn'](_0xb421fc));}for(;_0x48c497['parent']!==_0x48c497['root']&&0x0===_0x48c497['index'];)_0x48c497=_0x48c497['parent'];const _0x6a8d22=new _0x4b1206(S(_0x15f96f)?_0x15f96f:y(_0x15f96f)),_0x21b2f6=_0x4a4795?_0x6a8d22['height']-_0x4a4795:0x0,_0x377b80=_0xf6600d['mapViewToDom'](_0x48c497),_0x46f56f=new _0x4b1206(_0x377b80);return new PageBreakInfo({'type':'element','modelRange':_0x41c527,'domNode':_0x377b80,'offset':Math['round'](_0x21b2f6)||_0x240446!=P(_0x34cfe2)?_0x21b2f6+_0x6a8d22['top']-_0x46f56f['top']:0x0});}get['_configuredPaddings'](){const _0x1fb3b2=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x1fb3b2);}static['_findPageStarterInfos'](_0x5018db,_0x228b52,_0x190ca8,_0x36ad96,_0x86a77d){return L(_0x5018db,_0x228b52,_0x190ca8,_0x36ad96,_0x86a77d);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x248e83,modelRange:_0x412c3c,domNode:_0x1c1c85,offset:_0x218197}){this['type']=_0x248e83,this['modelRange']=_0x412c3c,this['_domNode']=_0x1c1c85,this['_offset']=_0x218197;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x491dbc=new _0x4b1206(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x491dbc['top']+_0x491dbc['height']/0x2:_0x491dbc['top']+this['_offset'];}}function w(_0x3f4151,_0x3b223d,_0x3f02d8){const _0x345b06=y(_0x3f4151),_0x7c85de=function(_0x99e737){const _0x218ed8=_0x128704['document']['createRange']();return _0x218ed8['selectNodeContents'](_0x99e737),_0x218ed8;}(_0x3f02d8);let _0x2eb634;_0x2eb634=0x0==_0x3b223d?x(_0x7c85de['startContainer'],_0x7c85de['startOffset'],_0x3f4151['parentNode'],Array['from'](_0x3f4151['parentNode']['childNodes'])['indexOf'](_0x3f4151)):x(_0x7c85de['startContainer'],_0x7c85de['startOffset'],_0x3f4151,_0x3b223d);const _0x5249fc=x(_0x3f4151,_0x3b223d,_0x7c85de['endContainer'],_0x7c85de['endOffset']),_0x366613=new _0x4b1206(_0x2eb634)['bottom'];return(new _0x4b1206(_0x5249fc)['top']+_0x366613)/0x2-new _0x4b1206(_0x345b06)['top'];}function P(_0x5e6e62){let _0x42c449=_0x5e6e62['parent'];for(;_0x42c449['is']('$text')||_0x42c449['is']('attributeElement');)_0x42c449=_0x42c449['parent'];return _0x42c449;}function b(_0x47189c){return _0x47189c['hasAttribute']('width')&&_0x47189c['hasAttribute']('height')?Promise['resolve']():new Promise(_0x39a029=>{function _0x1c2fb9(){_0x47189c['removeEventListener']('load',_0x1c2fb9),_0x47189c['removeEventListener']('error',_0x1c2fb9),_0x39a029();}_0x47189c['complete']?_0x39a029():(_0x47189c['addEventListener']('load',_0x1c2fb9),_0x47189c['addEventListener']('error',_0x1c2fb9));});}function k(_0x359597){return new Promise(_0x28e56a=>setTimeout(_0x28e56a,_0x359597));}function y(_0x1f585f){const _0x122d95=_0x128704['document']['createRange']();return _0x122d95['selectNode'](_0x1f585f),_0x122d95;}function v(_0x214bd0,_0x5378d5,_0x4f3961){const _0x186b7f=_0x128704['document']['createRange']();return _0x186b7f['setStart'](_0x214bd0,_0x5378d5),_0x186b7f['setEnd'](_0x214bd0,_0x4f3961),_0x186b7f;}function x(_0x40be65,_0x24d25f,_0xd9d0c8,_0x31c47d){const _0xf17b55=_0x128704['document']['createRange']();return _0xf17b55['setStart'](_0x40be65,_0x24d25f),_0xf17b55['setEnd'](_0xd9d0c8,_0x31c47d),_0xf17b55;}function L(_0x4ac0e0,_0x2259d0,_0x55171c,_0x3441fb,_0x4ef1db){const _0x562a78=[];for(const [_0x2e2c9c,_0x56cc9]of _0x4ac0e0['childNodes']['entries']()){let _0x6a2dd1=[];S(_0x56cc9)&&_0x56cc9['offsetParent']&&['static','relative']['includes'](_0x128704['window']['getComputedStyle'](_0x56cc9)['position'])?_0x6a2dd1=N(_0x56cc9,_0x2e2c9c,_0x2259d0,_0x55171c,_0x3441fb,_0x4ef1db):I(_0x56cc9)&&(_0x6a2dd1=_(_0x56cc9,_0x2e2c9c,_0x2259d0,_0x55171c,_0x4ef1db)),_0x6a2dd1['length']&&(_0x562a78['push'](..._0x6a2dd1),_0x2259d0+=_0x6a2dd1['length']*_0x55171c,_0x4ef1db=!0x1);}return _0x562a78;}function N(_0x15ce2f,_0x154292,_0x14ede0,_0x1a7ba6,_0x5e10f0,_0x6c9f00){const _0x2cf9a7=[];var _0xdeec5c;if((_0xdeec5c=_0x15ce2f['previousSibling'])&&S(_0xdeec5c)&&Boolean(_0xdeec5c['classList']['contains']('page-break')||_0xdeec5c['closest']('.page-break'))&&(_0x2cf9a7['push']({'type':'manual','offset':0x0,'path':[_0x154292-0x1]}),_0x6c9f00=!0x0),'table-row'==_0x128704['window']['getComputedStyle'](_0x15ce2f)['display']){let _0x4281a6=0x0,_0x52b068=!0x1;for(const _0x38eed2 of _0x15ce2f['getClientRects']())_0x4281a6+=_0x38eed2['height'],_0x38eed2['left']>=_0x14ede0&&(_0x52b068=!0x0);if(_0x4281a6<_0x5e10f0&&_0x52b068)return _0x6c9f00||_0x2cf9a7['push']({'type':'element','offset':0x0,'path':[_0x154292]}),_0x2cf9a7;}const _0x5da145=_0x15ce2f['closest']('figure.image');if(_0x5da145&&function(_0x14223b){let _0x1396a4=!0x1;const _0x452792=_0x14223b['parentElement'],_0x18a6ab=_0x452792['dataset']['rootName'],_0x47f841=_0x14223b['nextElementSibling'],_0x1cac81=_0x14223b['previousElementSibling'],_0x14df55=_0x47f841&&_0x128704['window']['getComputedStyle'](_0x47f841)['float'],_0x46cda7=_0x47f841&&'ck-fake-selection-container'===_0x47f841['className'];!_0x18a6ab||_0x47f841||_0x1cac81||(_0x1396a4=!0x0),_0x18a6ab&&!_0x1cac81&&_0x46cda7&&(_0x1396a4=!0x0),_0x18a6ab&&!_0x1cac81&&'none'!==_0x14df55&&(_0x1396a4=!0x0);if(_0x1396a4)return!0x1;return!0x0;}(_0x5da145)){const _0x494106=_0x128704['window']['getComputedStyle'](_0x5da145)['float'];if('left'==_0x494106||'right'==_0x494106)return _0x2cf9a7;}const _0x5bf8bf=L(_0x15ce2f,_0x14ede0,_0x1a7ba6,_0x5e10f0,_0x6c9f00);if(_0x5bf8bf['length']){for(const _0x50e26c of _0x5bf8bf)_0x2cf9a7['push']({'type':_0x50e26c['type'],'offset':_0x50e26c['offset'],'textOffset':_0x50e26c['textOffset'],'path':[_0x154292,..._0x50e26c['path']]}),_0x14ede0+=_0x1a7ba6,_0x6c9f00=!0x1;return _0x2cf9a7;}return _0x2cf9a7['push'](...function(_0x131bc6,_0x3fb2c5,_0x421ef0,_0x3876f2,_0x4ad4b3){const _0xf6dc51=[];if('table-cell'==_0x128704['window']['getComputedStyle'](_0x131bc6)['display'])return[];const _0xfa65f=[];for(const _0x2cd984 of _0x131bc6['getClientRects']())if(_0x2cd984['left']>=_0x421ef0){for(const _0x4117bc of _0xfa65f)_0x4117bc['height']+=_0x2cd984['height'];_0xfa65f['push']({'height':_0x2cd984['height']}),_0x421ef0+=_0x3876f2;}for(const _0x217f7c of _0xfa65f)_0x4ad4b3||_0xf6dc51['push']({'type':'element','offset':_0x217f7c['height'],'textOffset':0x0,'path':[_0x3fb2c5]}),_0x4ad4b3=!0x1;return _0xf6dc51;}(_0x15ce2f,_0x154292,_0x14ede0,_0x1a7ba6,_0x6c9f00)),_0x2cf9a7;}function _(_0x587071,_0x32e330,_0x5e6629,_0x4cdfa0,_0x18cc0d){const _0x17cb3=y(_0x587071),_0xa59823=[];let _0xaa6277=0x0;for(const _0x5ae904 of _0x17cb3['getClientRects']())if(_0x5ae904['left']>=_0x5e6629){const _0x1d72f5=R(_0x587071,_0xaa6277,_0x5e6629,_0x4cdfa0);_0x18cc0d||_0xa59823['push']({'type':'text','path':[_0x32e330],'textOffset':_0x1d72f5}),_0xaa6277=_0x1d72f5,_0x5e6629+=_0x4cdfa0,_0x18cc0d=!0x1;}return _0xa59823;}function R(_0x23eaef,_0x325e40,_0x8a29e2,_0x2135e2){let _0x5623fc=_0x325e40,_0x5ce808=_0x23eaef['length'];for(;_0x5ce808-_0x5623fc>0x1;){const _0x160d28=Math['ceil']((_0x5623fc+_0x5ce808)/0x2);E(v(_0x23eaef,_0x5623fc,_0x160d28),_0x8a29e2,_0x2135e2)?_0x5ce808=_0x160d28:_0x5623fc=_0x160d28;}return _0x5623fc;}function E(_0x405e35,_0x8415dd,_0x561a5a){for(const _0x44e304 of _0x405e35['getClientRects']())if(_0x44e304['left']>=_0x8415dd&&_0x44e304['left']<_0x8415dd+_0x561a5a)return!0x0;return!0x1;}function S(_0x42edd7){return _0x42edd7['nodeType']==Node['ELEMENT_NODE'];}function I(_0x66e1b7){return _0x66e1b7['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
- _0x3df125('px');class LineView extends _0x396d63{constructor(){super();const _0x271030=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x271030['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x271030['if']('isVisible','ck-hidden',_0x22af79=>!_0x22af79)],'style':{'left':_0x271030['to']('left',_0xaaab7e=>B(_0xaaab7e)),'top':_0x271030['to']('top',_0x33627a=>B(_0x33627a)),'width':_0x271030['to']('width',_0x2fad1a=>B(_0x2fad1a))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x51d797){this['_viewCollection']=_0x51d797['ui']['view']['body'];}['destroy'](){for(const _0x2577d7 of this['_hiddenLines'])_0x2577d7['destroy']();}['cleanLines'](){for(const _0x566d9c of this['_visibleLines'])_0x566d9c['isVisible']=!0x1,this['_hiddenLines']['add'](_0x566d9c);this['_visibleLines']['clear']();}['showLine'](_0x180f47,_0x5cd2a0,_0x44334c,_0x23f53e){let _0x522fd7;this['_hiddenLines']['size']?(_0x522fd7=_0x17c259(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x522fd7)):_0x522fd7=new LineView(),_0x522fd7['set']({'pageNumber':_0x23f53e,'left':_0x180f47,'top':_0x5cd2a0,'width':_0x44334c}),_0x522fd7['isVisible']=!0x0,this['_viewCollection']['has'](_0x522fd7)||this['_viewCollection']['add'](_0x522fd7),this['_visibleLines']['add'](_0x522fd7);}['setViewCollection'](_0x2902ce){for(const _0x5c302a of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x5c302a)&&this['_viewCollection']['remove'](_0x5c302a);this['_viewCollection']=_0x2902ce;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x1d58ec{['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',(_0x38eba8,_0x3c06a5,_0x322ecf)=>{_0x322ecf||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x322ecf);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x4fc784){if(!this['isEnabled'])return;const _0x53b79e=_0x4fc784>0x1?this['_getPageBreakLineOffset'](_0x4fc784-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x53b79e-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x27ec2c['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x5e0b0c=this['editor'],_0x199003=this['_getAttachedDomRoot']();_0x199003?(this['_scrollableEditingRootDomAncestor']&&_0x5e0b0c['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x75ccc6){let _0x27d77c=_0x75ccc6;do{_0x27d77c=_0x27d77c['parentElement'];const _0x3091e4=_0x128704['window']['getComputedStyle'](_0x27d77c)['overflowY'];if('auto'==_0x3091e4||'scroll'==_0x3091e4)break;}while('BODY'!=_0x27d77c['tagName']);return _0x27d77c;}(_0x199003),_0x5e0b0c['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x331a31(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x5e0b0c['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x251cfd=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x251cfd['ui']['view']['listenTo'](_0x128704['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x251cfd['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x2aca03 of this['editor']['editing']['view']['domRoots']['values']())if(_0x2aca03['ownerDocument']['body']['contains'](_0x2aca03))return _0x2aca03;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x3878cd=this['_getAttachedDomRoot'](),_0x2196a0=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x3878cd||0x1==_0x2196a0['length'])return void(this['pageNumber']=0x1);const _0x25b72a=new _0x4b1206(_0x3878cd)['excludeScrollbarsAndBorders'](),_0x537c08=new _0x4b1206(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x14130e=_0x537c08['top']+_0x537c08['height']/0x3;let _0x27b352=!0x1;const _0x45bfc6=[];for(let _0x3f6e60=0x1;_0x3f6e60<_0x2196a0['length'];_0x3f6e60++){const _0x300355=this['_getPageBreakLineOffset'](_0x3f6e60,_0x537c08);if(!_0x300355)continue;const _0x37c29a=_0x537c08['top']+_0x300355-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x45bfc6['push']({'pageOffsetTop':_0x37c29a,'domRootRect':_0x25b72a,'domScrollableRect':_0x537c08,'pageNumber':_0x3f6e60}),_0x37c29a>_0x14130e&&!_0x27b352&&(this['pageNumber']=_0x3f6e60,_0x27b352=!0x0);}this['_renderPageBreakLines'](_0x45bfc6),_0x27b352||(this['pageNumber']=_0x2196a0['length']);}['_renderPageBreakLines'](_0x3cf89d){const {scrollX:_0xc3f2f8,scrollY:_0x33e26a}=_0x128704['window'];if(_0x3cf89d['length']){for(const {domScrollableRect:_0x46e0a0,pageOffsetTop:_0x529b7b,domRootRect:_0x762f3c,pageNumber:_0x165faa}of _0x3cf89d)_0x46e0a0['top']<_0x529b7b&&_0x529b7b<_0x46e0a0['bottom']&&this['linesRepository']['showLine'](_0x762f3c['left']+_0xc3f2f8,_0x529b7b+_0x33e26a,_0x762f3c['width'],_0x165faa+0x1);}}['_getPageBreakLineOffset'](_0x4bee14,_0x7882b4=null){const _0xf18406=this['_paginationLookupPlugin']['pageBreaks'][_0x4bee14]['offset'];return _0xf18406?(_0x7882b4||(_0x7882b4=new _0x4b1206(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0xf18406-_0x7882b4['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x46d279,_0x5b48a1=!0x0){const _0x2c8159=this['editor']['editing']['view'];_0x2c8159['change'](_0x5ca8ab=>{for(const _0x24d225 of _0x2c8159['document']['roots'])_0x5b48a1?_0x5ca8ab['addClass'](_0x46d279,_0x24d225):_0x5ca8ab['removeClass'](_0x46d279,_0x24d225);});}}function O(_0x4fa172,_0x59170d,..._0x467e22){const t=_0x4fa172['t'];switch(_0x59170d){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)',..._0x467e22);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 _0x59170d;}}class PaginationEditing extends _0x1d58ec{['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 _0x7b0f6b=this['editor']['plugins']['get']('Pagination'),_0x5883b7=this['editor']['plugins']['get'](PaginationLookup),_0x305948=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x7b0f6b),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x305948),this['listenTo'](_0x5883b7,'change:pageBreaks',(_0x2b3a1a,_0x134551,_0x140b7f,_0x4d75ca)=>{this['totalPages']=_0x140b7f['length'],this['_updatePageBreakMarkers'](_0x140b7f,_0x4d75ca);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x595bca=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x500e88;for(const _0x2dee88 in _0x595bca){const _0x10a040=_0x2dee88,_0x2dc422=_0x595bca[_0x10a040];if('paginationLicenseKeyValid'==_0x2dc422||'paginationLicenseKeyInvalid'==_0x2dc422||'paginationLicenseKeyExpired'==_0x2dc422||'paginationLicenseKeyDomainLimit'==_0x2dc422||'paginationLicenseKeyNotAllowed'==_0x2dc422||'paginationLicenseKeyEvaluationLimit'==_0x2dc422||'paginationLicenseKeyUsageLimit'==_0x2dc422){delete _0x595bca[_0x10a040],_0x500e88=_0x2dc422,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x500e88&&_0x595bca['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x500e88&&_0x595bca['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x500e88&&_0x595bca['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x500e88&&_0x595bca['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x500e88&&_0x595bca['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x500e88&&_0x595bca['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x3398d8){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x3398d8));}['moveSelectionToPage'](_0x2dc98f){if(!this['isEnabled'])return;const _0x3fdc38=this['editor'],_0x3af62a=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x2dc98f-0x1];_0x3af62a&&_0x3fdc38['model']['change'](_0x243bab=>{switch(_0x3af62a['type']){case'manual':{const _0x26f855=_0x3fdc38['model']['schema']['getNearestSelectionRange'](_0x3af62a['modelRange']['end'],'forward');_0x243bab['setSelection'](_0x26f855);break;}case'element':{const _0x155028=_0x3fdc38['model']['schema']['getNearestSelectionRange'](_0x3af62a['modelRange']['start'],'forward');_0x243bab['setSelection'](_0x155028);break;}case'text':{const _0x279378=_0x3af62a['modelRange']['start'];if(_0x279378['textNode']&&'\x20'===_0x279378['textNode']['data'][_0x279378['offset']]){const _0x12defd=_0x243bab['createPositionAt'](_0x279378['parent'],_0x279378['offset']+0x1);_0x243bab['setSelection'](_0x12defd);}else _0x243bab['setSelection'](_0x3af62a['modelRange']);}}_0x3fdc38['editing']['view']['focus']();});}['goToNextPage'](){const _0x9a2b58=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x9a2b58),this['scrollToPage'](_0x9a2b58);}['goToPreviousPage'](){const _0x3a346b=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x3a346b),this['scrollToPage'](_0x3a346b);}['_updatePageBreakMarkers'](_0x4025da,_0x4c3314){const _0x4a7125=this['editor']['model'];this['isEnabled']&&_0x4a7125['change'](_0x429b33=>{for(let _0x326641=0x1;_0x326641<_0x4025da['length'];_0x326641++){const _0x4794f0=_0x4025da[_0x326641]['modelRange'],_0x492009='pagination:'+(_0x326641+0x1);_0x4a7125['markers']['has'](_0x492009)?_0x429b33['updateMarker'](_0x492009,{'range':_0x4794f0}):_0x429b33['addMarker'](_0x492009,{'range':_0x4794f0,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0xee8eb5=_0x4025da['length'];_0xee8eb5<_0x4c3314['length'];_0xee8eb5++){const _0x2e9379='pagination:'+(_0xee8eb5+0x1);_0x4a7125['markers']['has'](_0x2e9379)&&_0x429b33['removeMarker'](_0x2e9379);}});}['_setUpDataDowncastConversion'](){const _0x1a7d17='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x39c15b=>{_0x39c15b['on']('addMarker:'+_0x1a7d17,(_0x4a292b,{markerRange:_0x75335e,markerName:_0x5a0173},_0x41942c)=>{if(!_0x41942c['options']['pagination'])return;if(!_0x41942c['consumable']['consume'](_0x75335e,_0x4a292b['name']))return;const _0x1f8ad7=_0x75335e['getContainedElement']();let _0x514537=_0x1f8ad7?_0x41942c['mapper']['toViewElement'](_0x1f8ad7):null;if(!_0x514537){const _0x444f36=_0x75335e['start'];if(_0x41942c['schema']['checkChild'](_0x444f36,'$text')){const _0x2e193c=_0x41942c['mapper']['toViewPosition'](_0x444f36);_0x514537=_0x41942c['writer']['createContainerElement']('span'),_0x514537['getFillerOffset']=()=>null,_0x41942c['writer']['insert'](_0x2e193c,_0x514537);}else{const _0x108de4=_0x444f36['nodeAfter'];_0x514537=_0x41942c['mapper']['toViewElement'](_0x108de4);}}for(;_0x514537['parent']!==_0x514537['root']&&0x0===_0x514537['index'];)_0x514537=_0x514537['parent'];const _0x51bb62=_0x5a0173['substring'](0xb);_0x514537['hasClass']('page-break')||(_0x41942c['writer']['setStyle']('page-break-before','always',_0x514537),_0x41942c['writer']['setAttribute']('data-pagination-page',_0x51bb62,_0x514537),_0x41942c['mapper']['bindElementToMarker'](_0x514537,_0x5a0173)),_0x4a292b['stop']();});});}['_setupKeystrokes'](){const _0x48f475=this['editor'];_0x48f475['keystrokes']['set']('Shift+Pageup',(_0x284782,_0xab9df2)=>{this['goToPreviousPage'](),_0xab9df2();}),_0x48f475['keystrokes']['set']('Shift+Pagedown',(_0x30ac72,_0x425ee6)=>{this['goToNextPage'](),_0x425ee6();}),_0x48f475['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x48f475['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x48f475['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x48f475['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x370565){return _0x370565<0x1&&(_0x370565=0x1),_0x370565>this['totalPages']&&(_0x370565=this['totalPages']),_0x370565;}}class PageNavigatorView extends _0x396d63{['pageNumberView'];constructor(_0x24605d){super(_0x24605d);const _0x4e2b3e=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x5e7329(_0x24605d,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x38e31b=>O(_0x24605d,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x38e31b)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x12f45e=>!_0x12f45e),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x4e2b3e['if']('isEnabled','ck-disabled',_0x47f5da=>!_0x47f5da)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x4e2b3e['to']('totalPages')}]}]});}['render'](){super['render']();const _0x16d0a3=this['pageNumberView']['element'],_0x35e405=_0x274e6d=>{this['pageNumberView']['element']['value']=String(_0x274e6d);};_0x35e405(this['pageNumber']),this['on']('change:pageNumber',(_0x354b41,_0x37ec3e,_0x470f7d)=>{_0x35e405(_0x470f7d);}),this['listenTo'](_0x16d0a3,'keydown',(_0x455693,_0x1b8e39)=>{if('ArrowUp'===_0x1b8e39['key']||'ArrowDown'===_0x1b8e39['key'])return void _0x1b8e39['stopPropagation']();if(_0x1b8e39['keyCode']!==_0x3cbb44['enter'])return;_0x1b8e39['preventDefault']();const _0x3e1485=_0x16d0a3['valueAsNumber'];Number['isNaN'](_0x3e1485)?_0x16d0a3['value']=String(this['pageNumber']):(_0x16d0a3['checkValidity']()?this['pageNumber']=_0x3e1485:_0x3e1485>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x16d0a3['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x16d0a3['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x16d0a3,'blur',()=>{_0x16d0a3['value']=String(this['pageNumber']);}),this['listenTo'](_0x16d0a3,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class PaginationUI extends _0x1d58ec{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x135cff=this['editor'],_0x12b893=_0x135cff['plugins']['get']('PaginationEditing');_0x135cff['ui']['componentFactory']['add']('pageNavigation',_0x3ee49a=>{const _0x1e57fb=new PageNavigatorView(_0x3ee49a);return _0x1e57fb['bind']('pageNumber')['to'](_0x12b893),_0x1e57fb['bind']('totalPages')['to'](_0x12b893),_0x1e57fb['bind']('isEnabled')['to'](_0x12b893),_0x1e57fb['on']('navigation',(_0x2964b3,_0x4d5d70)=>{_0x12b893['moveSelectionToPage'](_0x4d5d70),_0x12b893['scrollToPage'](_0x4d5d70);}),_0x1e57fb;}),_0x135cff['ui']['componentFactory']['add']('nextPage',_0x428a32=>{const _0x46ad5b=new _0x892e9b(_0x428a32);return _0x46ad5b['isEnabled']=!0x0,_0x46ad5b['label']=O(_0x135cff['locale'],'Go\x20to\x20next\x20page'),_0x46ad5b['icon']=_0x2ac44a,_0x46ad5b['tooltip']=!0x0,_0x46ad5b['keystroke']='Shift+PageDown',_0x46ad5b['bind']('isEnabled')['to'](_0x12b893),this['listenTo'](_0x46ad5b,'execute',()=>{_0x12b893['goToNextPage']();}),_0x46ad5b;}),_0x135cff['ui']['componentFactory']['add']('previousPage',_0x309fef=>{const _0x32695b=new _0x892e9b(_0x309fef);return _0x32695b['isEnabled']=!0x0,_0x32695b['label']=O(_0x135cff['locale'],'Go\x20to\x20previous\x20page'),_0x32695b['icon']=_0x55c0e8,_0x32695b['tooltip']=!0x0,_0x32695b['keystroke']='Shift+PageUp',_0x32695b['bind']('isEnabled')['to'](_0x12b893),this['listenTo'](_0x32695b,'execute',()=>{_0x12b893['goToPreviousPage']();}),_0x32695b;});}}class Pagination extends _0x1d58ec{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x39d636){super(_0x39d636),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x511c19=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x511c19),this['bind']('totalPages')['to'](_0x511c19),_0x27ec2c['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x2eaa3a){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x2eaa3a);}}export{Pagination,PaginationRenderer};
23
+ import{Plugin as _0x5a6342}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x15c440,InputNumberView as _0x5b714e,ButtonView as _0x290e36}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x5bc2f8,global as _0x5bedf9,Rect as _0xda9770,uid as _0x25826b,toUnit as _0x1647c0,first as _0x16a122,env as _0x3ff4f7,ResizeObserver as _0x3114c4,keyCodes as _0x5b09aa}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x40b9b0}from'es-toolkit/compat';import{IconArrowDown as _0x414ea8,IconArrowUp as _0x4d3a43}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x5a6342{['_recalculatePageBreaksDebounced']=_0x40b9b0(()=>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 _0x5bc2f8('pagination-config-not-found',this['editor']['config']);const _0x478bac=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x478bac),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x20eada,_0x3d7d46,_0x360089)=>{_0x360089&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x37c098){const _0x205832=_0x2f1c63([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]),_0x411c6b=0xc82cb1e,_0x4c57db=0xc854176^_0x411c6b,_0x3ad6f3=window[_0x2f1c63([0x44,0x61,0x74,0x65])][_0x2f1c63([0x6e,0x6f,0x77])](),_0x471763=_0x37c098[_0x2f1c63([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48cc66=new window[(_0x2f1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48153f=>{_0x471763[_0x2f1c63([0x6f,0x6e,0x63,0x65])](_0x2f1c63([0x72,0x65,0x61,0x64,0x79]),_0x48153f);}),_0x408ec3={[_0x2f1c63([0x6b,0x74,0x79])]:_0x2f1c63([0x45,0x43]),[_0x2f1c63([0x75,0x73,0x65])]:_0x2f1c63([0x73,0x69,0x67]),[_0x2f1c63([0x63,0x72,0x76])]:_0x2f1c63([0x50,0x2d,0x32,0x35,0x36]),[_0x2f1c63([0x78])]:_0x2f1c63([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]),[_0x2f1c63([0x79])]:_0x2f1c63([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]),[_0x2f1c63([0x61,0x6c,0x67])]:_0x2f1c63([0x45,0x53,0x32,0x35,0x36])},_0x1b28d2=_0x471763[_0x2f1c63([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f1c63([0x67,0x65,0x74])](_0x2f1c63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31f4ed(){let _0x419a1f,_0x3675d1=null,_0x62e81d=null;try{if(_0x1b28d2==_0x2f1c63([0x47,0x50,0x4c]))return _0x2f1c63([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x419a1f=_0x1bd967(),!_0x419a1f)return _0x2f1c63([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x419a1f[_0x2f1c63([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x62e81d=_0x32e101(_0x419a1f[_0x2f1c63([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x419a1f[_0x2f1c63([0x6a,0x74,0x69])])),await _0x55d89c()?_0x1a5aa1()?_0x493bef()?_0x2f1c63([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x437573()?(_0x419a1f[_0x2f1c63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f1c63([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3675d1=_0x43c149(_0x2f1c63([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c597d()):_0x2f1c63([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f1c63([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f1c63([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f1c63([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x493bef(){const _0x4e655e=[_0x2f1c63([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f1c63([0x74,0x72,0x69,0x61,0x6c])][_0x2f1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x419a1f[_0x2f1c63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ad6f3/0x3e8:0xe10*_0x4c57db;return _0x419a1f[_0x2f1c63([0x65,0x78,0x70])]<_0x4e655e;}function _0x1a5aa1(){const _0x256c8c=_0x419a1f[_0x2f1c63([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x256c8c&&(!!_0x256c8c[_0x2f1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1c63([0x2a]))||!!_0x256c8c[_0x2f1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1c63([0x50,0x41,0x47])));}function _0x437573(){const _0x2c8557=_0x419a1f[_0x2f1c63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c8557||0x0==_0x2c8557[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x449961}=new URL(window[_0x2f1c63([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2c8557[_0x2f1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x449961))return!0x0;const _0x29d330=_0x449961[_0x2f1c63([0x73,0x70,0x6c,0x69,0x74])](_0x2f1c63([0x2e]));return _0x2c8557[_0x2f1c63([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x598681=>_0x598681[_0x2f1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1c63([0x2a])))[_0x2f1c63([0x6d,0x61,0x70])](_0x1f481e=>_0x1f481e[_0x2f1c63([0x73,0x70,0x6c,0x69,0x74])](_0x2f1c63([0x2e])))[_0x2f1c63([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f8d2d=>_0x2f8d2d[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x29d330[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f1c63([0x6d,0x61,0x70])](_0x23c655=>Array(_0x29d330[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23c655[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f1c63([0x66,0x69,0x6c,0x6c])](_0x23c655[0x0]===_0x2f1c63([0x2a])?_0x2f1c63([0x2a]):'')[_0x2f1c63([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23c655))[_0x2f1c63([0x73,0x6f,0x6d,0x65])](_0x27963c=>_0x29d330[_0x2f1c63([0x65,0x76,0x65,0x72,0x79])]((_0x780db4,_0x2517f5)=>_0x27963c[_0x2517f5]===_0x780db4||_0x27963c[_0x2517f5]===_0x2f1c63([0x2a])));}function _0x5c597d(){return _0x3675d1&&_0x62e81d?new window[(_0x2f1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x380656,_0x16f29e)=>{_0x3675d1[_0x2f1c63([0x74,0x68,0x65,0x6e])](_0x380656,_0x16f29e),_0x62e81d[_0x2f1c63([0x74,0x68,0x65,0x6e])](_0x4f58a4=>{_0x4f58a4!=_0x2f1c63([0x56,0x61,0x6c,0x69,0x64])&&_0x380656(_0x4f58a4);},_0x16f29e);}):_0x3675d1||_0x62e81d||_0x2f1c63([0x56,0x61,0x6c,0x69,0x64]);}}function _0x32e101(_0x3f8306,_0x14d1eb){return new window[(_0x2f1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xad28=>{if(_0x47ddb8())return _0xad28(_0x2f1c63([0x56,0x61,0x6c,0x69,0x64]));_0x5c9bfe(),_0x471763[_0x2f1c63([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f1c63([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2919ed=!0x1;const _0x812859=_0x25826b();function _0x275031(_0x367c92){return!!_0x367c92&&(typeof _0x367c92===_0x2f1c63([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x367c92===_0x2f1c63([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x367c92[_0x2f1c63([0x74,0x68,0x65,0x6e])]===_0x2f1c63([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x367c92[_0x2f1c63([0x63,0x61,0x74,0x63,0x68])]===_0x2f1c63([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x206ca5(_0x24fafc){_0xb0583c(_0x24fafc)[_0x2f1c63([0x74,0x68,0x65,0x6e])](_0x49e4c8=>{if(!_0x49e4c8||_0x49e4c8[_0x2f1c63([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f1c63([0x6f,0x6b]))return _0x2f1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1cfd9c(_0x3e5a8d(_0x812859+_0x14d1eb))!=_0x49e4c8[_0x2f1c63([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f1c63([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f1c63([0x74,0x68,0x65,0x6e])](_0x5588cd=>(_0x25befc(),_0x5588cd),()=>{const _0x33b092=_0x2a3bf7();return null==_0x33b092?(_0x25befc(),_0x2f1c63([0x56,0x61,0x6c,0x69,0x64])):_0x2f1c63(_0x3ad6f3-_0x33b092>(0x288e4f1e^_0x411c6b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f1c63([0x74,0x68,0x65,0x6e])](_0xad28)[_0x2f1c63([0x63,0x61,0x74,0x63,0x68])](()=>{_0xad28(_0x2f1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x334262=0xcb4259e^_0x411c6b;function _0x25befc(){const _0x52ff4e=_0x2f1c63([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cfd9c(_0x3e5a8d(_0x3f8306)),_0x3f97de=_0x2b3546(_0x1cfd9c(window[_0x2f1c63([0x4d,0x61,0x74,0x68])][_0x2f1c63([0x63,0x65,0x69,0x6c])](_0x3ad6f3/_0x334262)));window[_0x2f1c63([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f1c63([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52ff4e,_0x3f97de);}function _0x2a3bf7(){const _0x39d8d0=_0x2f1c63([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cfd9c(_0x3e5a8d(_0x3f8306)),_0x463791=window[_0x2f1c63([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f1c63([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39d8d0);return _0x463791?window[_0x2f1c63([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b3546(_0x463791),0x10)*_0x334262:null;}function _0xb0583c(_0x36a8f8){return new window[(_0x2f1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16499f,_0x2ce01c)=>{_0x36a8f8[_0x2f1c63([0x74,0x68,0x65,0x6e])](_0x16499f,_0x2ce01c),window[_0x2f1c63([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ce01c,0xc831fde^_0x411c6b);});}}_0x471763[_0x2f1c63([0x6f,0x6e])](_0x2f1c63([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x402938,_0x3b6a7b)=>{if(_0x3b6a7b[0x0]!=_0x3f8306)return _0xad28(_0x2f1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b6a7b[0x1]={..._0x3b6a7b[0x1],[_0x2f1c63([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x812859};},{[_0x2f1c63([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f1c63([0x68,0x69,0x67,0x68])}),_0x471763[_0x2f1c63([0x6f,0x6e])](_0x2f1c63([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b01b6=>{_0x275031(_0x2b01b6[_0x2f1c63([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2919ed=!0x0,_0x206ca5(_0x2b01b6[_0x2f1c63([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f1c63([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f1c63([0x6c,0x6f,0x77])}),_0x48cc66[_0x2f1c63([0x74,0x68,0x65,0x6e])](()=>{_0x2919ed||_0xad28(_0x2f1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47ddb8(){return _0x471763[_0x2f1c63([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f1c63([0x76,0x69,0x65,0x77])][_0x2f1c63([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f1c63([0x61,0x75,0x74,0x6f]);}function _0x5c9bfe(){_0x471763[_0x2f1c63([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f1c63([0x76,0x69,0x65,0x77])][_0x2f1c63([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f1c63([0x61,0x75,0x74,0x6f]);}}function _0x43c149(_0xfa6806){const _0x1666e7=[new window[(_0x2f1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x262fae=>setTimeout(_0x262fae,0xc8bf5d2^_0x411c6b)),_0x48cc66[_0x2f1c63([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47f6e9=>{let _0x17d320=0x0;_0x471763[_0x2f1c63([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1c63([0x6f,0x6e])](_0x2f1c63([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e50a6,_0x41101f)=>{_0x41101f[0x0][_0x2f1c63([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17d320++,_0x17d320==(0xc82cef6^_0x411c6b)&&(_0x47f6e9(),_0x1e50a6[_0x2f1c63([0x6f,0x66,0x66])]());});}))];return window[_0x2f1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f1c63([0x72,0x61,0x63,0x65])](_0x1666e7)[_0x2f1c63([0x74,0x68,0x65,0x6e])](()=>_0xfa6806);}async function _0x324202(){await _0x48cc66,_0x471763[_0x2f1c63([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1c63([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d1184,_0x471763[_0x2f1c63([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1c63([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d1184,_0x471763[_0x2f1c63([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f1c63([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x47b94a(_0x466bf6){const _0x151414=_0x364b18();_0x471763[_0x151414]=_0x2f1c63([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x466bf6,_0x466bf6!=_0x2f1c63([0x56,0x61,0x6c,0x69,0x64])&&_0x324202();}function _0x364b18(){const _0xbca9d8=window[_0x2f1c63([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f1c63([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f1c63([0x6e,0x6f,0x77])]())[_0x2f1c63([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f1c63([0x2e]),'');let _0x327d0c=_0x2f1c63([0x49]);for(let _0x5d84ec=0x0;_0x5d84ec<_0xbca9d8[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d84ec+=0x2){let _0x4544a0=window[_0x2f1c63([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbca9d8[_0x2f1c63([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d84ec,_0x5d84ec+0x2));_0x4544a0>=_0x205832[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4544a0-=_0x205832[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x327d0c+=_0x205832[_0x4544a0];}return _0x327d0c;}function _0x1bd967(){const _0x4b85f7=_0x1b28d2[_0x2f1c63([0x73,0x70,0x6c,0x69,0x74])](_0x2f1c63([0x2e]));if(0x3!=_0x4b85f7[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f6748(_0x4b85f7[0x1]);function _0x2f6748(_0x20fbbd){const _0x4ee7bc=_0xa02e10(_0x20fbbd);return _0x4ee7bc&&_0x2ce4e6()?_0x4ee7bc:null;function _0x2ce4e6(){const _0xfe6f19=_0x4ee7bc[_0x2f1c63([0x6a,0x74,0x69])],_0x2ccf34=window[_0x2f1c63([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfe6f19[_0x2f1c63([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfe6f19[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b77af={..._0x4ee7bc,[_0x2f1c63([0x6a,0x74,0x69])]:_0xfe6f19[_0x2f1c63([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xfe6f19[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b77af[_0x2f1c63([0x76,0x63])],_0x3e5a8d(_0x2b77af)==_0x2ccf34;}}}async function _0x55d89c(){let _0x71d544=!0x0;try{const _0x17af68=_0x1b28d2[_0x2f1c63([0x73,0x70,0x6c,0x69,0x74])](_0x2f1c63([0x2e])),[_0x28dd5b,_0x1788dc,_0x346681]=_0x17af68;return _0x5d0312(_0x28dd5b),await _0x29dac4(_0x28dd5b,_0x1788dc,_0x346681),_0x71d544;}catch{return!0x1;}function _0x5d0312(_0x2cfe5c){const _0x38b502=_0xa02e10(_0x2cfe5c);_0x38b502&&_0x38b502[_0x2f1c63([0x61,0x6c,0x67])]==_0x2f1c63([0x45,0x53,0x32,0x35,0x36])||(_0x71d544=!0x1);}async function _0x29dac4(_0x1409d8,_0x20c9d0,_0x21061e){const _0x1cede5=window[_0x2f1c63([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f1c63([0x66,0x72,0x6f,0x6d])](_0x17c096(_0x21061e),_0x42073a=>_0x42073a[_0x2f1c63([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdf058b=new window[(_0x2f1c63([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f1c63([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1409d8+_0x2f1c63([0x2e])+_0x20c9d0),_0xc3f636=window[_0x2f1c63([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f1c63([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc3f636)return;const _0x804b83=await _0xc3f636[_0x2f1c63([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f1c63([0x6a,0x77,0x6b]),_0x408ec3,{[_0x2f1c63([0x6e,0x61,0x6d,0x65])]:_0x2f1c63([0x45,0x43,0x44,0x53,0x41]),[_0x2f1c63([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f1c63([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f1c63([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc3f636[_0x2f1c63([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f1c63([0x6e,0x61,0x6d,0x65])]:_0x2f1c63([0x45,0x43,0x44,0x53,0x41]),[_0x2f1c63([0x68,0x61,0x73,0x68])]:{[_0x2f1c63([0x6e,0x61,0x6d,0x65])]:_0x2f1c63([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x804b83,_0x1cede5,_0xdf058b)||(_0x71d544=!0x1);}}function _0xa02e10(_0x5ab461){return _0x5ab461[_0x2f1c63([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f1c63([0x65,0x79]))?JSON[_0x2f1c63([0x70,0x61,0x72,0x73,0x65])](_0x17c096(_0x5ab461)):null;}function _0x17c096(_0x5c9017){return window[_0x2f1c63([0x61,0x74,0x6f,0x62])](_0x5c9017[_0x2f1c63([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f1c63([0x2b]))[_0x2f1c63([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f1c63([0x2f])));}function _0x3e5a8d(_0x5165d1){let _0x216ef9=0x1505;function _0x1b3047(_0x27d976){for(let _0x10bbf8=0x0;_0x10bbf8<_0x27d976[_0x2f1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10bbf8++){const _0x753f74=_0x27d976[_0x2f1c63([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x10bbf8);_0x216ef9=(_0x216ef9<<0x5)+_0x216ef9+_0x753f74,_0x216ef9&=_0x216ef9;}}function _0x4bb2ec(_0x40d4cd){Array[_0x2f1c63([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x40d4cd)?_0x40d4cd[_0x2f1c63([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bb2ec):_0x40d4cd&&typeof _0x40d4cd==_0x2f1c63([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f1c63([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x40d4cd)[_0x2f1c63([0x73,0x6f,0x72,0x74])]()[_0x2f1c63([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf3b963,_0x12fd89])=>{_0x1b3047(_0xf3b963),_0x4bb2ec(_0x12fd89);}):_0x1b3047(window[_0x2f1c63([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x40d4cd));}return _0x4bb2ec(_0x5165d1),_0x216ef9>>>0x0;}function _0x1cfd9c(_0x1826fc){return _0x1826fc[_0x2f1c63([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f1c63([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f1c63([0x30]));}function _0x2b3546(_0x37386e){return _0x37386e[_0x2f1c63([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f1c63([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f1c63([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d1184(){}function _0x2f1c63(_0x280a3f){return _0x280a3f['map'](_0x266a94=>String['fromCharCode'](_0x266a94))['join']('');}_0x47b94a(await _0x31f4ed());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x1a677f=this['editor'],_0x31bb54=_0x1a677f['editing']['view'],_0x1b2a52=this['_getAttachedDomRoot']();if(!_0x1b2a52||0x0===_0x1b2a52['childElementCount'])return void _0x1a677f['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x1e8b52,pageHeight:_0x1f9cb7}=_0x1a677f['config']['get']('pagination'),{top:_0x3a1796,left:_0x21eb9d,bottom:_0x5504e5,right:_0x5b3570}=this['_configuredPaddings'];this['_pagesContainer']=new _0x15c440(_0x1a677f['locale']);const _0x283508=this['_pagesContainer'];_0x283508['set']('class',''),_0x283508['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x1e8b52,'width':_0x1e8b52,'height':'calc(\x20'+_0x1f9cb7+'\x20-\x20'+_0x3a1796+'\x20-\x20'+_0x5504e5+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x5b3570+'\x200\x20'+_0x21eb9d,'columnGap':'calc('+_0x21eb9d+'\x20+\x20'+_0x5b3570+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x283508['bindTemplate']['to']('class')}}),_0x283508['render'](),_0x1b2a52['parentNode']['insertBefore'](_0x283508['element'],_0x1b2a52['nextSibling']),this['listenTo'](_0x31bb54,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x57ea0d of this['editor']['editing']['view']['domRoots']['values']())if(_0x57ea0d['ownerDocument']['body']['contains'](_0x57ea0d))return _0x57ea0d;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x176da4=this['editor']['editing']['view'],_0x29b256=this['_pagesContainer'],_0x3afa14=this['_getAttachedDomRoot']();if(!_0x3afa14)return Promise['resolve']();for(_0x29b256['class']=['ck-reset','ck-pagination-view',..._0x3afa14['classList']]['join']('\x20');_0x29b256['element']['firstChild'];)_0x29b256['element']['firstChild']['remove']();const _0x2eae44=Array['from'](_0x176da4['domRoots']);_0x2eae44['sort'](([,_0x3be876],[,_0x5d6c6d])=>_0x3be876['compareDocumentPosition'](_0x5d6c6d)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x3a4537,_0x13beb5]of _0x2eae44){const _0x333ac9=_0x13beb5['cloneNode'](!0x0);'attributeStyleMap'in _0x333ac9&&_0x333ac9['attributeStyleMap']['clear'](),_0x333ac9['dataset']['rootName']=_0x3a4537,_0x333ac9['className']='ck-content\x20ck-pagination_enabled',_0x333ac9['removeAttribute']('id'),_0x333ac9['tabIndex']=-0x1,_0x29b256['element']['append'](_0x333ac9);}const _0xd2991=Array['from'](_0x29b256['element']['querySelectorAll']('img'));return function(_0x43b3be){return Promise['all'](_0x43b3be['map'](_0x548a6a=>Promise['race']([b(_0x548a6a),k(0x3e8)])));}(_0xd2991)['then'](()=>{for(const _0x1f935c of _0xd2991['filter'](_0x1cd4eb=>!_0x1cd4eb['closest']('table')))if(_0x1f935c['offsetParent']){const _0x927c6e=_0x5bedf9['window']['getComputedStyle'](_0x1f935c),_0x52fb9e=_0x5bedf9['document']['createElement']('span');for(const _0x447e56 of _0x927c6e)_0x52fb9e['style']['setProperty'](_0x447e56,_0x927c6e[_0x447e56]);_0x52fb9e['style']['backgroundImage']='url(\x20'+_0x1f935c['src']+'\x20)',_0x52fb9e['style']['breakInside']='avoid','PICTURE'==_0x1f935c['parentElement']?.['tagName']?_0x1f935c['parentElement']['replaceWith'](_0x52fb9e):_0x1f935c['replaceWith'](_0x52fb9e);}return new Promise(_0xde669f=>_0x5bedf9['window']['requestAnimationFrame'](()=>_0xde669f()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x46bd66=this['_pagesContainer']['element'];if(!_0x46bd66['ownerDocument']['body']['contains'](_0x46bd66))return;const _0x4c1655=new _0xda9770(_0x46bd66)['excludeScrollbarsAndBorders'](),_0x479722=Math['floor'](_0x4c1655['width']+0x64),_0x1f9247=L(_0x46bd66,Math['floor'](_0x4c1655['left']-_0x46bd66['scrollLeft']),_0x479722,_0x4c1655['height'])['map'](_0x40bf2a=>this['_mapPageStarterInfoToPageBreakInfo'](_0x40bf2a))['filter'](_0x406586=>!0x1!==_0x406586);_0x1f9247['every'](_0x2d1c62=>!!_0x2d1c62)&&(this['pageBreaks']=_0x1f9247);}['_mapPageStarterInfoToPageBreakInfo'](_0x4e8ee7){const _0x388be6=this['editor']['editing']['view'],_0x5c9d0f=this['editor']['editing']['mapper'],_0x3e7893=_0x388be6['domConverter'],_0x1f6a38=_0x4e8ee7['path']['shift'](),_0x5b0306=this['_pagesContainer']['element']['childNodes'][_0x1f6a38]['dataset']['rootName'],_0x13af04=_0x388be6['getDomRoot'](_0x5b0306);if(!_0x13af04)return null;const _0x1ec063=function(_0x1117da,_0x3b5026){let _0x592e33=_0x1117da;for(const _0x9a7fb7 of _0x3b5026['path']){if(!_0x592e33)return null;_0x592e33=_0x592e33['childNodes'][_0x9a7fb7];}return _0x592e33;}(_0x13af04,_0x4e8ee7);if(!_0x1ec063)return null;const _0x16669e=_0x3e7893['domPositionToView'](_0x1ec063,_0x4e8ee7['textOffset']||0x0);return _0x16669e?'manual'==_0x4e8ee7['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x16669e,_0x1ec063):'text'==_0x4e8ee7['type']&&_0x5c9d0f['toModelPosition'](_0x16669e)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x16669e,_0x1ec063,_0x4e8ee7['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x16669e,_0x1ec063,_0x4e8ee7['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x3c28aa,_0x4fd491){const _0x2d2603=this['editor']['model'],_0x5ec859=this['editor']['editing']['mapper']['toModelElement'](_0x3c28aa['parent']),_0x24b013=_0x2d2603['createRangeOn'](_0x5ec859);return new PageBreakInfo({'type':'manual','modelRange':_0x24b013,'domNode':_0x4fd491,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x3856a1,_0x29c7ed,_0x17cf4a){const _0x5417fc=this['editor']['model'],_0x391439=this['editor']['editing']['mapper'],_0x44dfe0=this['editor']['editing']['view']['domConverter'];if(_0x17cf4a>=_0x29c7ed['length'])return null;const _0x29fd89=_0x391439['toModelPosition'](_0x3856a1),_0x58554e=_0x5417fc['createRange'](_0x29fd89),_0x1d90a6=_0x391439['findMappedViewAncestor'](_0x3856a1),_0x5c464d=_0x44dfe0['mapViewToDom'](_0x1d90a6);return new PageBreakInfo({'type':'text','modelRange':_0x58554e,'domNode':_0x29c7ed,'offset':w(_0x29c7ed,_0x17cf4a,_0x5c464d)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x5b9a7b,_0x50be8e,_0x37d246){const _0x45be28=this['editor']['model'],_0xaef645=this['editor']['editing'],_0x12fae3=_0xaef645['mapper'],_0x2c51fc=_0xaef645['view']['domConverter'],_0x414bc5=_0x12fae3['findMappedViewAncestor'](_0x5b9a7b),_0x1465a9=_0x12fae3['toModelElement'](_0x414bc5);if(!_0x1465a9||_0x1465a9['is']('element','$root'))return!0x1;const _0x14d65b=function(_0xc710fc){const _0x13e069=_0xc710fc['parent'],_0x27133e=_0x13e069['root']['document']['model'],_0x3ae8ba=_0x13e069['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x2d1bc9=null;for(const _0x2f47db of _0x3ae8ba){if(_0x2f47db['is']('rootElement'))return _0x2d1bc9;if(!_0x27133e['createPositionBefore'](_0x2f47db)['isTouching'](_0xc710fc))return _0x2d1bc9;_0x2d1bc9=_0x2f47db;}}(_0x45be28['createPositionBefore'](_0x1465a9)),_0x2a6403=_0x14d65b||_0x1465a9;let _0x3bd94d=_0x12fae3['toViewElement'](_0x2a6403),_0x14fe18=_0x45be28['createRangeOn'](_0x2a6403);const _0x71e632=_0x45be28['createPositionBefore'](_0x2a6403)['nodeBefore'];if(_0x71e632&&_0x71e632['is']('element','imageBlock')){const _0x3a70ea=_0x12fae3['toViewElement'](_0x71e632),_0x383c56=_0x2c51fc['mapViewToDom'](_0x3a70ea),_0x3e95fc=_0x5bedf9['window']['getComputedStyle'](_0x383c56)['float'];'left'!=_0x3e95fc&&'right'!=_0x3e95fc||(_0x14fe18=_0x45be28['createRangeOn'](_0x71e632));}for(;_0x3bd94d['parent']!==_0x3bd94d['root']&&0x0===_0x3bd94d['index'];)_0x3bd94d=_0x3bd94d['parent'];const _0x4152d4=new _0xda9770(S(_0x50be8e)?_0x50be8e:y(_0x50be8e)),_0xa2796d=_0x37d246?_0x4152d4['height']-_0x37d246:0x0,_0x49e05e=_0x2c51fc['mapViewToDom'](_0x3bd94d),_0x1d1a21=new _0xda9770(_0x49e05e);return new PageBreakInfo({'type':'element','modelRange':_0x14fe18,'domNode':_0x49e05e,'offset':Math['round'](_0xa2796d)||_0x414bc5!=P(_0x5b9a7b)?_0xa2796d+_0x4152d4['top']-_0x1d1a21['top']:0x0});}get['_configuredPaddings'](){const _0x1e8423=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x1e8423);}static['_findPageStarterInfos'](_0x475ad9,_0x221dbc,_0x3ee7a0,_0x223482,_0x343375){return L(_0x475ad9,_0x221dbc,_0x3ee7a0,_0x223482,_0x343375);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x18d870,modelRange:_0x50ce9f,domNode:_0x2d3caa,offset:_0xe12945}){this['type']=_0x18d870,this['modelRange']=_0x50ce9f,this['_domNode']=_0x2d3caa,this['_offset']=_0xe12945;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0xbb9d23=new _0xda9770(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0xbb9d23['top']+_0xbb9d23['height']/0x2:_0xbb9d23['top']+this['_offset'];}}function w(_0x5da2c4,_0x4b1c94,_0x64c0b4){const _0x5bb49b=y(_0x5da2c4),_0x42b208=function(_0x39eb4c){const _0x550196=_0x5bedf9['document']['createRange']();return _0x550196['selectNodeContents'](_0x39eb4c),_0x550196;}(_0x64c0b4);let _0x1d6684;_0x1d6684=0x0==_0x4b1c94?x(_0x42b208['startContainer'],_0x42b208['startOffset'],_0x5da2c4['parentNode'],Array['from'](_0x5da2c4['parentNode']['childNodes'])['indexOf'](_0x5da2c4)):x(_0x42b208['startContainer'],_0x42b208['startOffset'],_0x5da2c4,_0x4b1c94);const _0x30bc55=x(_0x5da2c4,_0x4b1c94,_0x42b208['endContainer'],_0x42b208['endOffset']),_0x54c071=new _0xda9770(_0x1d6684)['bottom'];return(new _0xda9770(_0x30bc55)['top']+_0x54c071)/0x2-new _0xda9770(_0x5bb49b)['top'];}function P(_0x876611){let _0x3e1c8a=_0x876611['parent'];for(;_0x3e1c8a['is']('$text')||_0x3e1c8a['is']('attributeElement');)_0x3e1c8a=_0x3e1c8a['parent'];return _0x3e1c8a;}function b(_0x3e25ee){return _0x3e25ee['hasAttribute']('width')&&_0x3e25ee['hasAttribute']('height')?Promise['resolve']():new Promise(_0x3a6ad=>{function _0x11dc4e(){_0x3e25ee['removeEventListener']('load',_0x11dc4e),_0x3e25ee['removeEventListener']('error',_0x11dc4e),_0x3a6ad();}_0x3e25ee['complete']?_0x3a6ad():(_0x3e25ee['addEventListener']('load',_0x11dc4e),_0x3e25ee['addEventListener']('error',_0x11dc4e));});}function k(_0x3b3a24){return new Promise(_0x564f79=>setTimeout(_0x564f79,_0x3b3a24));}function y(_0x5d6093){const _0x36e303=_0x5bedf9['document']['createRange']();return _0x36e303['selectNode'](_0x5d6093),_0x36e303;}function v(_0x2eabc2,_0x488126,_0x3660c2){const _0x2fb01e=_0x5bedf9['document']['createRange']();return _0x2fb01e['setStart'](_0x2eabc2,_0x488126),_0x2fb01e['setEnd'](_0x2eabc2,_0x3660c2),_0x2fb01e;}function x(_0x23456f,_0x229cd2,_0x499aeb,_0xfd1021){const _0xd027e6=_0x5bedf9['document']['createRange']();return _0xd027e6['setStart'](_0x23456f,_0x229cd2),_0xd027e6['setEnd'](_0x499aeb,_0xfd1021),_0xd027e6;}function L(_0x171e59,_0x15685c,_0x2ef4cd,_0x57d700,_0x215ee3){const _0x45869e=[];for(const [_0x56753b,_0x4191cd]of _0x171e59['childNodes']['entries']()){let _0x1b22a3=[];S(_0x4191cd)&&_0x4191cd['offsetParent']&&['static','relative']['includes'](_0x5bedf9['window']['getComputedStyle'](_0x4191cd)['position'])?_0x1b22a3=N(_0x4191cd,_0x56753b,_0x15685c,_0x2ef4cd,_0x57d700,_0x215ee3):I(_0x4191cd)&&(_0x1b22a3=_(_0x4191cd,_0x56753b,_0x15685c,_0x2ef4cd,_0x215ee3)),_0x1b22a3['length']&&(_0x45869e['push'](..._0x1b22a3),_0x15685c+=_0x1b22a3['length']*_0x2ef4cd,_0x215ee3=!0x1);}return _0x45869e;}function N(_0x306c46,_0x14de90,_0x4ca9de,_0x33dcba,_0x3f48ca,_0x4ea239){const _0x44a413=[];var _0x5956c6;if((_0x5956c6=_0x306c46['previousSibling'])&&S(_0x5956c6)&&Boolean(_0x5956c6['classList']['contains']('page-break')||_0x5956c6['closest']('.page-break'))&&(_0x44a413['push']({'type':'manual','offset':0x0,'path':[_0x14de90-0x1]}),_0x4ea239=!0x0),'table-row'==_0x5bedf9['window']['getComputedStyle'](_0x306c46)['display']){let _0x387f08=0x0,_0x52cd76=!0x1;for(const _0x137230 of _0x306c46['getClientRects']())_0x387f08+=_0x137230['height'],_0x137230['left']>=_0x4ca9de&&(_0x52cd76=!0x0);if(_0x387f08<_0x3f48ca&&_0x52cd76)return _0x4ea239||_0x44a413['push']({'type':'element','offset':0x0,'path':[_0x14de90]}),_0x44a413;}const _0x148986=_0x306c46['closest']('figure.image');if(_0x148986&&function(_0x173b5b){let _0x101fa4=!0x1;const _0x15dda5=_0x173b5b['parentElement'],_0x9cfe68=_0x15dda5['dataset']['rootName'],_0x9a1c70=_0x173b5b['nextElementSibling'],_0x363d16=_0x173b5b['previousElementSibling'],_0x2742df=_0x9a1c70&&_0x5bedf9['window']['getComputedStyle'](_0x9a1c70)['float'],_0x24e26d=_0x9a1c70&&'ck-fake-selection-container'===_0x9a1c70['className'];!_0x9cfe68||_0x9a1c70||_0x363d16||(_0x101fa4=!0x0),_0x9cfe68&&!_0x363d16&&_0x24e26d&&(_0x101fa4=!0x0),_0x9cfe68&&!_0x363d16&&'none'!==_0x2742df&&(_0x101fa4=!0x0);if(_0x101fa4)return!0x1;return!0x0;}(_0x148986)){const _0x487a88=_0x5bedf9['window']['getComputedStyle'](_0x148986)['float'];if('left'==_0x487a88||'right'==_0x487a88)return _0x44a413;}const _0x5c124e=L(_0x306c46,_0x4ca9de,_0x33dcba,_0x3f48ca,_0x4ea239);if(_0x5c124e['length']){for(const _0x3dfbb6 of _0x5c124e)_0x44a413['push']({'type':_0x3dfbb6['type'],'offset':_0x3dfbb6['offset'],'textOffset':_0x3dfbb6['textOffset'],'path':[_0x14de90,..._0x3dfbb6['path']]}),_0x4ca9de+=_0x33dcba,_0x4ea239=!0x1;return _0x44a413;}return _0x44a413['push'](...function(_0x5ee79c,_0x2bee4f,_0xae5f15,_0xa464a3,_0x40db2b){const _0x3afed0=[];if('table-cell'==_0x5bedf9['window']['getComputedStyle'](_0x5ee79c)['display'])return[];const _0x4f4091=[];for(const _0x1d02ee of _0x5ee79c['getClientRects']())if(_0x1d02ee['left']>=_0xae5f15){for(const _0x5ed7e7 of _0x4f4091)_0x5ed7e7['height']+=_0x1d02ee['height'];_0x4f4091['push']({'height':_0x1d02ee['height']}),_0xae5f15+=_0xa464a3;}for(const _0x5482d4 of _0x4f4091)_0x40db2b||_0x3afed0['push']({'type':'element','offset':_0x5482d4['height'],'textOffset':0x0,'path':[_0x2bee4f]}),_0x40db2b=!0x1;return _0x3afed0;}(_0x306c46,_0x14de90,_0x4ca9de,_0x33dcba,_0x4ea239)),_0x44a413;}function _(_0x4bf5e1,_0x112dd7,_0x348869,_0x3d1b8b,_0x48096d){const _0x3011ea=y(_0x4bf5e1),_0x26accd=[];let _0x1f1603=0x0;for(const _0x5b58cf of _0x3011ea['getClientRects']())if(_0x5b58cf['left']>=_0x348869){const _0x25172f=R(_0x4bf5e1,_0x1f1603,_0x348869,_0x3d1b8b);_0x48096d||_0x26accd['push']({'type':'text','path':[_0x112dd7],'textOffset':_0x25172f}),_0x1f1603=_0x25172f,_0x348869+=_0x3d1b8b,_0x48096d=!0x1;}return _0x26accd;}function R(_0x5b8f70,_0x394f69,_0x50d169,_0x394848){let _0x2ec7ce=_0x394f69,_0x34abe9=_0x5b8f70['length'];for(;_0x34abe9-_0x2ec7ce>0x1;){const _0x2844c9=Math['ceil']((_0x2ec7ce+_0x34abe9)/0x2);E(v(_0x5b8f70,_0x2ec7ce,_0x2844c9),_0x50d169,_0x394848)?_0x34abe9=_0x2844c9:_0x2ec7ce=_0x2844c9;}return _0x2ec7ce;}function E(_0x4642d8,_0x510585,_0x2d7f4b){for(const _0xf20f43 of _0x4642d8['getClientRects']())if(_0xf20f43['left']>=_0x510585&&_0xf20f43['left']<_0x510585+_0x2d7f4b)return!0x0;return!0x1;}function S(_0x635f33){return _0x635f33['nodeType']==Node['ELEMENT_NODE'];}function I(_0x41f740){return _0x41f740['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
+ _0x1647c0('px');class LineView extends _0x15c440{constructor(){super();const _0x65ff48=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x65ff48['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x65ff48['if']('isVisible','ck-hidden',_0x5c52bc=>!_0x5c52bc)],'style':{'left':_0x65ff48['to']('left',_0x1e0e84=>B(_0x1e0e84)),'top':_0x65ff48['to']('top',_0x3f6ecd=>B(_0x3f6ecd)),'width':_0x65ff48['to']('width',_0x38fd41=>B(_0x38fd41))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x417087){this['_viewCollection']=_0x417087['ui']['view']['body'];}['destroy'](){for(const _0x40ebf6 of this['_hiddenLines'])_0x40ebf6['destroy']();}['cleanLines'](){for(const _0x536929 of this['_visibleLines'])_0x536929['isVisible']=!0x1,this['_hiddenLines']['add'](_0x536929);this['_visibleLines']['clear']();}['showLine'](_0x40f4e2,_0x475116,_0x34eb11,_0x59a3b5){let _0x54827f;this['_hiddenLines']['size']?(_0x54827f=_0x16a122(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x54827f)):_0x54827f=new LineView(),_0x54827f['set']({'pageNumber':_0x59a3b5,'left':_0x40f4e2,'top':_0x475116,'width':_0x34eb11}),_0x54827f['isVisible']=!0x0,this['_viewCollection']['has'](_0x54827f)||this['_viewCollection']['add'](_0x54827f),this['_visibleLines']['add'](_0x54827f);}['setViewCollection'](_0x189b95){for(const _0x3dadcd of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x3dadcd)&&this['_viewCollection']['remove'](_0x3dadcd);this['_viewCollection']=_0x189b95;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x5a6342{['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',(_0x1f7576,_0x20dd47,_0x38b136)=>{_0x38b136||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x38b136);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x405f0e){if(!this['isEnabled'])return;const _0x38ae75=_0x405f0e>0x1?this['_getPageBreakLineOffset'](_0x405f0e-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x38ae75-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x3ff4f7['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x3ca380=this['editor'],_0x2d29aa=this['_getAttachedDomRoot']();_0x2d29aa?(this['_scrollableEditingRootDomAncestor']&&_0x3ca380['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x507e2c){let _0x3a5fb4=_0x507e2c;do{_0x3a5fb4=_0x3a5fb4['parentElement'];const _0x21b675=_0x5bedf9['window']['getComputedStyle'](_0x3a5fb4)['overflowY'];if('auto'==_0x21b675||'scroll'==_0x21b675)break;}while('BODY'!=_0x3a5fb4['tagName']);return _0x3a5fb4;}(_0x2d29aa),_0x3ca380['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x3114c4(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x3ca380['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x4ed911=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x4ed911['ui']['view']['listenTo'](_0x5bedf9['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x4ed911['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x2f204d of this['editor']['editing']['view']['domRoots']['values']())if(_0x2f204d['ownerDocument']['body']['contains'](_0x2f204d))return _0x2f204d;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0xda5168=this['_getAttachedDomRoot'](),_0x3a7d8b=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0xda5168||0x1==_0x3a7d8b['length'])return void(this['pageNumber']=0x1);const _0x3c71e6=new _0xda9770(_0xda5168)['excludeScrollbarsAndBorders'](),_0x18423d=new _0xda9770(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x1611e6=_0x18423d['top']+_0x18423d['height']/0x3;let _0x20643c=!0x1;const _0x5e6d52=[];for(let _0x5d067e=0x1;_0x5d067e<_0x3a7d8b['length'];_0x5d067e++){const _0x5556ce=this['_getPageBreakLineOffset'](_0x5d067e,_0x18423d);if(!_0x5556ce)continue;const _0x9629ea=_0x18423d['top']+_0x5556ce-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x5e6d52['push']({'pageOffsetTop':_0x9629ea,'domRootRect':_0x3c71e6,'domScrollableRect':_0x18423d,'pageNumber':_0x5d067e}),_0x9629ea>_0x1611e6&&!_0x20643c&&(this['pageNumber']=_0x5d067e,_0x20643c=!0x0);}this['_renderPageBreakLines'](_0x5e6d52),_0x20643c||(this['pageNumber']=_0x3a7d8b['length']);}['_renderPageBreakLines'](_0x4d7213){const {scrollX:_0x242712,scrollY:_0x5ac630}=_0x5bedf9['window'];if(_0x4d7213['length']){for(const {domScrollableRect:_0x463af9,pageOffsetTop:_0x1a0069,domRootRect:_0x51cdd0,pageNumber:_0x53885a}of _0x4d7213)_0x463af9['top']<_0x1a0069&&_0x1a0069<_0x463af9['bottom']&&this['linesRepository']['showLine'](_0x51cdd0['left']+_0x242712,_0x1a0069+_0x5ac630,_0x51cdd0['width'],_0x53885a+0x1);}}['_getPageBreakLineOffset'](_0x4a7288,_0x259215=null){const _0x455d22=this['_paginationLookupPlugin']['pageBreaks'][_0x4a7288]['offset'];return _0x455d22?(_0x259215||(_0x259215=new _0xda9770(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x455d22-_0x259215['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x3efa48,_0x3ae33e=!0x0){const _0x59eebf=this['editor']['editing']['view'];_0x59eebf['change'](_0x2ee1e5=>{for(const _0x2beb98 of _0x59eebf['document']['roots'])_0x3ae33e?_0x2ee1e5['addClass'](_0x3efa48,_0x2beb98):_0x2ee1e5['removeClass'](_0x3efa48,_0x2beb98);});}}function O(_0x1fac25,_0x53b3f8,..._0x282a15){const t=_0x1fac25['t'];switch(_0x53b3f8){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)',..._0x282a15);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 _0x53b3f8;}}class PaginationEditing extends _0x5a6342{['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 _0x3fea58=this['editor']['plugins']['get']('Pagination'),_0x585669=this['editor']['plugins']['get'](PaginationLookup),_0x525c6c=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x3fea58),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x525c6c),this['listenTo'](_0x585669,'change:pageBreaks',(_0x592b9d,_0x1f0d24,_0xab4b04,_0x4463a1)=>{this['totalPages']=_0xab4b04['length'],this['_updatePageBreakMarkers'](_0xab4b04,_0x4463a1);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4008ae=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2cafa3;for(const _0x39a2d8 in _0x4008ae){const _0x4ff561=_0x39a2d8,_0x7bf5f5=_0x4008ae[_0x4ff561];if('paginationLicenseKeyValid'==_0x7bf5f5||'paginationLicenseKeyInvalid'==_0x7bf5f5||'paginationLicenseKeyExpired'==_0x7bf5f5||'paginationLicenseKeyDomainLimit'==_0x7bf5f5||'paginationLicenseKeyNotAllowed'==_0x7bf5f5||'paginationLicenseKeyEvaluationLimit'==_0x7bf5f5||'paginationLicenseKeyUsageLimit'==_0x7bf5f5){delete _0x4008ae[_0x4ff561],_0x2cafa3=_0x7bf5f5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x2cafa3&&_0x4008ae['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x2cafa3&&_0x4008ae['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x2cafa3&&_0x4008ae['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x2cafa3&&_0x4008ae['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x2cafa3&&_0x4008ae['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x2cafa3&&_0x4008ae['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x12ec31){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x12ec31));}['moveSelectionToPage'](_0x4499e1){if(!this['isEnabled'])return;const _0x4ce360=this['editor'],_0x3b5daa=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x4499e1-0x1];_0x3b5daa&&_0x4ce360['model']['change'](_0x5a1bd2=>{switch(_0x3b5daa['type']){case'manual':{const _0x46316b=_0x4ce360['model']['schema']['getNearestSelectionRange'](_0x3b5daa['modelRange']['end'],'forward');_0x5a1bd2['setSelection'](_0x46316b);break;}case'element':{const _0x54a962=_0x4ce360['model']['schema']['getNearestSelectionRange'](_0x3b5daa['modelRange']['start'],'forward');_0x5a1bd2['setSelection'](_0x54a962);break;}case'text':{const _0x237f8f=_0x3b5daa['modelRange']['start'];if(_0x237f8f['textNode']&&'\x20'===_0x237f8f['textNode']['data'][_0x237f8f['offset']]){const _0x34fd56=_0x5a1bd2['createPositionAt'](_0x237f8f['parent'],_0x237f8f['offset']+0x1);_0x5a1bd2['setSelection'](_0x34fd56);}else _0x5a1bd2['setSelection'](_0x3b5daa['modelRange']);}}_0x4ce360['editing']['view']['focus']();});}['goToNextPage'](){const _0x159e61=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x159e61),this['scrollToPage'](_0x159e61);}['goToPreviousPage'](){const _0x3e3623=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x3e3623),this['scrollToPage'](_0x3e3623);}['_updatePageBreakMarkers'](_0x355b0e,_0xa7da7f){const _0x524a59=this['editor']['model'];this['isEnabled']&&_0x524a59['change'](_0x374763=>{for(let _0x11e01a=0x1;_0x11e01a<_0x355b0e['length'];_0x11e01a++){const _0x26646f=_0x355b0e[_0x11e01a]['modelRange'],_0x615d5='pagination:'+(_0x11e01a+0x1);_0x524a59['markers']['has'](_0x615d5)?_0x374763['updateMarker'](_0x615d5,{'range':_0x26646f}):_0x374763['addMarker'](_0x615d5,{'range':_0x26646f,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0xf2df70=_0x355b0e['length'];_0xf2df70<_0xa7da7f['length'];_0xf2df70++){const _0x511026='pagination:'+(_0xf2df70+0x1);_0x524a59['markers']['has'](_0x511026)&&_0x374763['removeMarker'](_0x511026);}});}['_setUpDataDowncastConversion'](){const _0x7fba9b='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x1c16ab=>{_0x1c16ab['on']('addMarker:'+_0x7fba9b,(_0x5dee36,{markerRange:_0x2f24b3,markerName:_0x42121e},_0x351102)=>{if(!_0x351102['options']['pagination'])return;if(!_0x351102['consumable']['consume'](_0x2f24b3,_0x5dee36['name']))return;const _0x4cb505=_0x2f24b3['getContainedElement']();let _0x16275d=_0x4cb505?_0x351102['mapper']['toViewElement'](_0x4cb505):null;if(!_0x16275d){const _0x5972f8=_0x2f24b3['start'];if(_0x351102['schema']['checkChild'](_0x5972f8,'$text')){const _0x140b91=_0x351102['mapper']['toViewPosition'](_0x5972f8);_0x16275d=_0x351102['writer']['createContainerElement']('span'),_0x16275d['getFillerOffset']=()=>null,_0x351102['writer']['insert'](_0x140b91,_0x16275d);}else{const _0x1fcb2a=_0x5972f8['nodeAfter'];_0x16275d=_0x351102['mapper']['toViewElement'](_0x1fcb2a);}}for(;_0x16275d['parent']!==_0x16275d['root']&&0x0===_0x16275d['index'];)_0x16275d=_0x16275d['parent'];const _0x17d9d7=_0x42121e['substring'](0xb);_0x16275d['hasClass']('page-break')||(_0x351102['writer']['setStyle']('page-break-before','always',_0x16275d),_0x351102['writer']['setAttribute']('data-pagination-page',_0x17d9d7,_0x16275d),_0x351102['mapper']['bindElementToMarker'](_0x16275d,_0x42121e)),_0x5dee36['stop']();});});}['_setupKeystrokes'](){const _0x24adf6=this['editor'];_0x24adf6['keystrokes']['set']('Shift+Pageup',(_0x584c7f,_0x2f9faf)=>{this['goToPreviousPage'](),_0x2f9faf();}),_0x24adf6['keystrokes']['set']('Shift+Pagedown',(_0x3c6310,_0x381914)=>{this['goToNextPage'](),_0x381914();}),_0x24adf6['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x24adf6['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x24adf6['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x24adf6['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x260acd){return _0x260acd<0x1&&(_0x260acd=0x1),_0x260acd>this['totalPages']&&(_0x260acd=this['totalPages']),_0x260acd;}}class PageNavigatorView extends _0x15c440{['pageNumberView'];constructor(_0x58eb85){super(_0x58eb85);const _0x34dd60=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x5b714e(_0x58eb85,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x40b148=>O(_0x58eb85,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x40b148)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x1e5ff4=>!_0x1e5ff4),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x34dd60['if']('isEnabled','ck-disabled',_0x1b6d8c=>!_0x1b6d8c)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x34dd60['to']('totalPages')}]}]});}['render'](){super['render']();const _0x451a27=this['pageNumberView']['element'],_0x87ba4e=_0x2e39d5=>{this['pageNumberView']['element']['value']=String(_0x2e39d5);};_0x87ba4e(this['pageNumber']),this['on']('change:pageNumber',(_0x36f0ea,_0x3fc131,_0x45a333)=>{_0x87ba4e(_0x45a333);}),this['listenTo'](_0x451a27,'keydown',(_0x487a48,_0x2b7401)=>{if('ArrowUp'===_0x2b7401['key']||'ArrowDown'===_0x2b7401['key'])return void _0x2b7401['stopPropagation']();if(_0x2b7401['keyCode']!==_0x5b09aa['enter'])return;_0x2b7401['preventDefault']();const _0x485313=_0x451a27['valueAsNumber'];Number['isNaN'](_0x485313)?_0x451a27['value']=String(this['pageNumber']):(_0x451a27['checkValidity']()?this['pageNumber']=_0x485313:_0x485313>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x451a27['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x451a27['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x451a27,'blur',()=>{_0x451a27['value']=String(this['pageNumber']);}),this['listenTo'](_0x451a27,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class PaginationUI extends _0x5a6342{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x82cee1=this['editor'],_0x1f8cb6=_0x82cee1['plugins']['get']('PaginationEditing');_0x82cee1['ui']['componentFactory']['add']('pageNavigation',_0x942037=>{const _0x5a2e85=new PageNavigatorView(_0x942037);return _0x5a2e85['bind']('pageNumber')['to'](_0x1f8cb6),_0x5a2e85['bind']('totalPages')['to'](_0x1f8cb6),_0x5a2e85['bind']('isEnabled')['to'](_0x1f8cb6),_0x5a2e85['on']('navigation',(_0x51482e,_0x2bd21d)=>{_0x1f8cb6['moveSelectionToPage'](_0x2bd21d),_0x1f8cb6['scrollToPage'](_0x2bd21d);}),_0x5a2e85;}),_0x82cee1['ui']['componentFactory']['add']('nextPage',_0x463a41=>{const _0x1ea4cf=new _0x290e36(_0x463a41);return _0x1ea4cf['isEnabled']=!0x0,_0x1ea4cf['label']=O(_0x82cee1['locale'],'Go\x20to\x20next\x20page'),_0x1ea4cf['icon']=_0x414ea8,_0x1ea4cf['tooltip']=!0x0,_0x1ea4cf['keystroke']='Shift+PageDown',_0x1ea4cf['bind']('isEnabled')['to'](_0x1f8cb6),this['listenTo'](_0x1ea4cf,'execute',()=>{_0x1f8cb6['goToNextPage']();}),_0x1ea4cf;}),_0x82cee1['ui']['componentFactory']['add']('previousPage',_0x1a74d4=>{const _0x54a92b=new _0x290e36(_0x1a74d4);return _0x54a92b['isEnabled']=!0x0,_0x54a92b['label']=O(_0x82cee1['locale'],'Go\x20to\x20previous\x20page'),_0x54a92b['icon']=_0x4d3a43,_0x54a92b['tooltip']=!0x0,_0x54a92b['keystroke']='Shift+PageUp',_0x54a92b['bind']('isEnabled')['to'](_0x1f8cb6),this['listenTo'](_0x54a92b,'execute',()=>{_0x1f8cb6['goToPreviousPage']();}),_0x54a92b;});}}class Pagination extends _0x5a6342{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x3d5e30){super(_0x3d5e30),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x60b91a=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x60b91a),this['bind']('totalPages')['to'](_0x60b91a),_0x3ff4f7['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x16c772){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x16c772);}}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.1",
3
+ "version": "48.8.1-alpha.3",
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.1",
25
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.1",
26
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.1",
27
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.1",
28
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.1",
24
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.3",
25
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.3",
26
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.3",
27
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.3",
28
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.3",
29
29
  "es-toolkit": "1.45.1"
30
30
  },
31
31
  "files": [