@ckeditor/ckeditor5-pagination 48.0.0-alpha.0 → 48.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +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 _0x27dfa4}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x53d317,InputNumberView as _0x590ea4,ButtonView as _0x4bc323}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x3c7c67,global as _0x342dd1,Rect as _0x52721e,uid as _0x2bcba5,toUnit as _0x226b5e,first as _0x5f50d4,env as _0x3b3990,ResizeObserver as _0x580fda,keyCodes as _0x48c145}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x40a915}from'es-toolkit/compat';import{IconArrowDown as _0x2ef322,IconArrowUp as _0x3dd9fd}from'@ckeditor/ckeditor5-icons/dist/index.js';class w extends _0x27dfa4{['_recalculatePageBreaksDebounced']=_0x40a915(()=>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 _0x3c7c67('pagination-config-not-found',this['editor']['config']);const _0x2a4a2e=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x2a4a2e),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x2344a4,_0x141228,_0x3c979e)=>{_0x3c979e&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x50a971){const _0x2a125b=_0x539329([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]),_0x1ea9fd=0xc82cb1e,_0x2d6eca=0xc854fd6^_0x1ea9fd,_0x2e988b=window[_0x539329([0x44,0x61,0x74,0x65])][_0x539329([0x6e,0x6f,0x77])](),_0x5503dc=_0x50a971[_0x539329([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59fc8f=new window[(_0x539329([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x105d44=>{_0x5503dc[_0x539329([0x6f,0x6e,0x63,0x65])](_0x539329([0x72,0x65,0x61,0x64,0x79]),_0x105d44);}),_0x17929c={[_0x539329([0x6b,0x74,0x79])]:_0x539329([0x45,0x43]),[_0x539329([0x75,0x73,0x65])]:_0x539329([0x73,0x69,0x67]),[_0x539329([0x63,0x72,0x76])]:_0x539329([0x50,0x2d,0x32,0x35,0x36]),[_0x539329([0x78])]:_0x539329([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]),[_0x539329([0x79])]:_0x539329([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]),[_0x539329([0x61,0x6c,0x67])]:_0x539329([0x45,0x53,0x32,0x35,0x36])},_0x4b3049=_0x5503dc[_0x539329([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x539329([0x67,0x65,0x74])](_0x539329([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2dbcca(){let _0x520a86,_0x21218c=null,_0x5c56ef=null;try{if(_0x4b3049==_0x539329([0x47,0x50,0x4c]))return _0x539329([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x520a86=_0xc38300(),!_0x520a86)return _0x539329([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x520a86[_0x539329([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c56ef=_0x44b331(_0x520a86[_0x539329([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x520a86[_0x539329([0x6a,0x74,0x69])])),await _0x4af533()?_0x2ed171()?_0x5280b4()?_0x539329([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x169707()?(_0x520a86[_0x539329([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x539329([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21218c=_0x2d9962(_0x539329([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b8027()):_0x539329([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x539329([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x539329([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x539329([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5280b4(){const _0xc7e5ae=[_0x539329([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x539329([0x74,0x72,0x69,0x61,0x6c])][_0x539329([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x520a86[_0x539329([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2e988b/0x3e8:0xe10*_0x2d6eca;return _0x520a86[_0x539329([0x65,0x78,0x70])]<_0xc7e5ae;}function _0x2ed171(){const _0x4923bf=_0x520a86[_0x539329([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4923bf&&(!!_0x4923bf[_0x539329([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539329([0x2a]))||!!_0x4923bf[_0x539329([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539329([0x50,0x41,0x47])));}function _0x169707(){const _0x48a554=_0x520a86[_0x539329([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48a554||0x0==_0x48a554[_0x539329([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c3d2f}=new URL(window[_0x539329([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x48a554[_0x539329([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c3d2f))return!0x0;const _0x13e66f=_0x4c3d2f[_0x539329([0x73,0x70,0x6c,0x69,0x74])](_0x539329([0x2e]));return _0x48a554[_0x539329([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b24ae=>_0x4b24ae[_0x539329([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539329([0x2a])))[_0x539329([0x6d,0x61,0x70])](_0x2a0227=>_0x2a0227[_0x539329([0x73,0x70,0x6c,0x69,0x74])](_0x539329([0x2e])))[_0x539329([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d3581=>_0x4d3581[_0x539329([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x13e66f[_0x539329([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x539329([0x6d,0x61,0x70])](_0x1794a2=>Array(_0x13e66f[_0x539329([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1794a2[_0x539329([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x539329([0x66,0x69,0x6c,0x6c])](_0x1794a2[0x0]===_0x539329([0x2a])?_0x539329([0x2a]):'')[_0x539329([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1794a2))[_0x539329([0x73,0x6f,0x6d,0x65])](_0x525303=>_0x13e66f[_0x539329([0x65,0x76,0x65,0x72,0x79])]((_0x2070b7,_0x197784)=>_0x525303[_0x197784]===_0x2070b7||_0x525303[_0x197784]===_0x539329([0x2a])));}function _0x2b8027(){return _0x21218c&&_0x5c56ef?new window[(_0x539329([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x360f28,_0x412d6b)=>{_0x21218c[_0x539329([0x74,0x68,0x65,0x6e])](_0x360f28,_0x412d6b),_0x5c56ef[_0x539329([0x74,0x68,0x65,0x6e])](_0x16feb3=>{_0x16feb3!=_0x539329([0x56,0x61,0x6c,0x69,0x64])&&_0x360f28(_0x16feb3);},_0x412d6b);}):_0x21218c||_0x5c56ef||_0x539329([0x56,0x61,0x6c,0x69,0x64]);}}function _0x44b331(_0x5b2bdc,_0x511cd9){return new window[(_0x539329([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3086aa=>{if(_0x135ba8())return _0x3086aa(_0x539329([0x56,0x61,0x6c,0x69,0x64]));_0x127b08(),_0x5503dc[_0x539329([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x539329([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x440e3e=!0x1;const _0x2df14a=_0x2bcba5();function _0xb0a2d9(_0x5aa3b){return!!_0x5aa3b&&(typeof _0x5aa3b===_0x539329([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5aa3b===_0x539329([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5aa3b[_0x539329([0x74,0x68,0x65,0x6e])]===_0x539329([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5aa3b[_0x539329([0x63,0x61,0x74,0x63,0x68])]===_0x539329([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x35e5b4(_0x14b1a8){_0x261653(_0x14b1a8)[_0x539329([0x74,0x68,0x65,0x6e])](_0x275aac=>{if(!_0x275aac||_0x275aac[_0x539329([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x539329([0x6f,0x6b]))return _0x539329([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd44c82(_0x37930d(_0x2df14a+_0x511cd9))!=_0x275aac[_0x539329([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x539329([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x539329([0x56,0x61,0x6c,0x69,0x64]);})[_0x539329([0x74,0x68,0x65,0x6e])](_0x36040c=>(_0x2d74e8(),_0x36040c),()=>{const _0x283d0b=_0x12c662();return null==_0x283d0b?(_0x2d74e8(),_0x539329([0x56,0x61,0x6c,0x69,0x64])):_0x539329(_0x2e988b-_0x283d0b>(0x288e4f1e^_0x1ea9fd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x539329([0x74,0x68,0x65,0x6e])](_0x3086aa)[_0x539329([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3086aa(_0x539329([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5aea05=0xcb4259e^_0x1ea9fd;function _0x2d74e8(){const _0x293b9f=_0x539329([0x6c,0x6c,0x63,0x74,0x2d])+_0xd44c82(_0x37930d(_0x5b2bdc)),_0x41e68b=_0x37feae(_0xd44c82(window[_0x539329([0x4d,0x61,0x74,0x68])][_0x539329([0x63,0x65,0x69,0x6c])](_0x2e988b/_0x5aea05)));window[_0x539329([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x539329([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x293b9f,_0x41e68b);}function _0x12c662(){const _0x194485=_0x539329([0x6c,0x6c,0x63,0x74,0x2d])+_0xd44c82(_0x37930d(_0x5b2bdc)),_0x24376b=window[_0x539329([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x539329([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x194485);return _0x24376b?window[_0x539329([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37feae(_0x24376b),0x10)*_0x5aea05:null;}function _0x261653(_0x319d11){return new window[(_0x539329([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e4df0,_0xdd61d8)=>{_0x319d11[_0x539329([0x74,0x68,0x65,0x6e])](_0x3e4df0,_0xdd61d8),window[_0x539329([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdd61d8,0xc831fde^_0x1ea9fd);});}}_0x5503dc[_0x539329([0x6f,0x6e])](_0x539329([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18f5c1,_0x5a95b1)=>{if(_0x5a95b1[0x0]!=_0x5b2bdc)return _0x3086aa(_0x539329([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a95b1[0x1]={..._0x5a95b1[0x1],[_0x539329([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2df14a};},{[_0x539329([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x539329([0x68,0x69,0x67,0x68])}),_0x5503dc[_0x539329([0x6f,0x6e])](_0x539329([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4fd890=>{_0xb0a2d9(_0x4fd890[_0x539329([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x440e3e=!0x0,_0x35e5b4(_0x4fd890[_0x539329([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x539329([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x539329([0x6c,0x6f,0x77])}),_0x59fc8f[_0x539329([0x74,0x68,0x65,0x6e])](()=>{_0x440e3e||_0x3086aa(_0x539329([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x135ba8(){return _0x5503dc[_0x539329([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x539329([0x76,0x69,0x65,0x77])][_0x539329([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x539329([0x61,0x75,0x74,0x6f]);}function _0x127b08(){_0x5503dc[_0x539329([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x539329([0x76,0x69,0x65,0x77])][_0x539329([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x539329([0x61,0x75,0x74,0x6f]);}}function _0x2d9962(_0x61c82f){const _0x2d9721=[new window[(_0x539329([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1daeea=>setTimeout(_0x1daeea,0xc8bf5d2^_0x1ea9fd)),_0x59fc8f[_0x539329([0x74,0x68,0x65,0x6e])](()=>new window[(_0x539329([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe71925=>{let _0xa9002e=0x0;_0x5503dc[_0x539329([0x6d,0x6f,0x64,0x65,0x6c])][_0x539329([0x6f,0x6e])](_0x539329([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a46ff,_0x26cb2a)=>{_0x26cb2a[0x0][_0x539329([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa9002e++,_0xa9002e==(0xc82cef6^_0x1ea9fd)&&(_0xe71925(),_0x2a46ff[_0x539329([0x6f,0x66,0x66])]());});}))];return window[_0x539329([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x539329([0x72,0x61,0x63,0x65])](_0x2d9721)[_0x539329([0x74,0x68,0x65,0x6e])](()=>_0x61c82f);}async function _0x43ead3(){await _0x59fc8f,_0x5503dc[_0x539329([0x6d,0x6f,0x64,0x65,0x6c])][_0x539329([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43b209,_0x5503dc[_0x539329([0x6d,0x6f,0x64,0x65,0x6c])][_0x539329([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43b209,_0x5503dc[_0x539329([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x539329([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x597a04(_0x2b64dd){const _0x1dc7f0=_0x1ac612();_0x5503dc[_0x1dc7f0]=_0x539329([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2b64dd,_0x2b64dd!=_0x539329([0x56,0x61,0x6c,0x69,0x64])&&_0x43ead3();}function _0x1ac612(){const _0x5e1619=window[_0x539329([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x539329([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x539329([0x6e,0x6f,0x77])]())[_0x539329([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x539329([0x2e]),'');let _0x223986=_0x539329([0x49]);for(let _0x1a1a8d=0x0;_0x1a1a8d<_0x5e1619[_0x539329([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a1a8d+=0x2){let _0x1a3006=window[_0x539329([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e1619[_0x539329([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a1a8d,_0x1a1a8d+0x2));_0x1a3006>=_0x2a125b[_0x539329([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a3006-=_0x2a125b[_0x539329([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x223986+=_0x2a125b[_0x1a3006];}return _0x223986;}function _0xc38300(){const _0x482932=_0x4b3049[_0x539329([0x73,0x70,0x6c,0x69,0x74])](_0x539329([0x2e]));if(0x3!=_0x482932[_0x539329([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4083a7(_0x482932[0x1]);function _0x4083a7(_0x13bb7b){const _0x1fd3eb=_0x241da5(_0x13bb7b);return _0x1fd3eb&&_0x516791()?_0x1fd3eb:null;function _0x516791(){const _0x390e2a=_0x1fd3eb[_0x539329([0x6a,0x74,0x69])],_0x1ff936=window[_0x539329([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x390e2a[_0x539329([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x390e2a[_0x539329([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26ccb3={..._0x1fd3eb,[_0x539329([0x6a,0x74,0x69])]:_0x390e2a[_0x539329([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x390e2a[_0x539329([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26ccb3[_0x539329([0x76,0x63])],_0x37930d(_0x26ccb3)==_0x1ff936;}}}async function _0x4af533(){let _0x14e47b=!0x0;try{const _0x1a1e1a=_0x4b3049[_0x539329([0x73,0x70,0x6c,0x69,0x74])](_0x539329([0x2e])),[_0x55abe2,_0x1a87c5,_0x4d8c11]=_0x1a1e1a;return _0x3727d5(_0x55abe2),await _0x1f6c4c(_0x55abe2,_0x1a87c5,_0x4d8c11),_0x14e47b;}catch{return!0x1;}function _0x3727d5(_0x406ac2){const _0x4c7b88=_0x241da5(_0x406ac2);_0x4c7b88&&_0x4c7b88[_0x539329([0x61,0x6c,0x67])]==_0x539329([0x45,0x53,0x32,0x35,0x36])||(_0x14e47b=!0x1);}async function _0x1f6c4c(_0x50d0ef,_0x4223b4,_0xad9ea1){const _0x131723=window[_0x539329([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x539329([0x66,0x72,0x6f,0x6d])](_0x586be8(_0xad9ea1),_0x23f135=>_0x23f135[_0x539329([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d529d=new window[(_0x539329([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x539329([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50d0ef+_0x539329([0x2e])+_0x4223b4),_0x1c6e84=window[_0x539329([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x539329([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c6e84)return;const _0x42c965=await _0x1c6e84[_0x539329([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x539329([0x6a,0x77,0x6b]),_0x17929c,{[_0x539329([0x6e,0x61,0x6d,0x65])]:_0x539329([0x45,0x43,0x44,0x53,0x41]),[_0x539329([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x539329([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x539329([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c6e84[_0x539329([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x539329([0x6e,0x61,0x6d,0x65])]:_0x539329([0x45,0x43,0x44,0x53,0x41]),[_0x539329([0x68,0x61,0x73,0x68])]:{[_0x539329([0x6e,0x61,0x6d,0x65])]:_0x539329([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x42c965,_0x131723,_0x5d529d)||(_0x14e47b=!0x1);}}function _0x241da5(_0x5c7b3b){return _0x5c7b3b[_0x539329([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x539329([0x65,0x79]))?JSON[_0x539329([0x70,0x61,0x72,0x73,0x65])](_0x586be8(_0x5c7b3b)):null;}function _0x586be8(_0x1790db){return window[_0x539329([0x61,0x74,0x6f,0x62])](_0x1790db[_0x539329([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x539329([0x2b]))[_0x539329([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x539329([0x2f])));}function _0x37930d(_0x14fa2b){let _0x194d45=0x1505;function _0x3970c2(_0x45310c){for(let _0x38777c=0x0;_0x38777c<_0x45310c[_0x539329([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38777c++){const _0x5cd53a=_0x45310c[_0x539329([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x38777c);_0x194d45=(_0x194d45<<0x5)+_0x194d45+_0x5cd53a,_0x194d45&=_0x194d45;}}function _0x4e373e(_0x2ae27a){Array[_0x539329([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ae27a)?_0x2ae27a[_0x539329([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e373e):_0x2ae27a&&typeof _0x2ae27a==_0x539329([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x539329([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ae27a)[_0x539329([0x73,0x6f,0x72,0x74])]()[_0x539329([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3fc691,_0x25091c])=>{_0x3970c2(_0x3fc691),_0x4e373e(_0x25091c);}):_0x3970c2(window[_0x539329([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ae27a));}return _0x4e373e(_0x14fa2b),_0x194d45>>>0x0;}function _0xd44c82(_0x47f040){return _0x47f040[_0x539329([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x539329([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x539329([0x30]));}function _0x37feae(_0x2ddcd5){return _0x2ddcd5[_0x539329([0x73,0x70,0x6c,0x69,0x74])]('')[_0x539329([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x539329([0x6a,0x6f,0x69,0x6e])]('');}function _0x43b209(){}function _0x539329(_0x939e04){return _0x939e04['map'](_0x55003c=>String['fromCharCode'](_0x55003c))['join']('');}_0x597a04(await _0x2dbcca());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x266774=this['editor'],_0x1ec3b1=_0x266774['editing']['view'],_0x144c76=this['_getAttachedDomRoot']();if(!_0x144c76||0x0===_0x144c76['childElementCount'])return void _0x266774['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x78ae3e,pageHeight:_0x210131}=_0x266774['config']['get']('pagination'),{top:_0x56b4a3,left:_0x1c1653,bottom:_0x2d936c,right:_0x53c6ea}=this['_configuredPaddings'];this['_pagesContainer']=new _0x53d317(_0x266774['locale']);const _0x26e939=this['_pagesContainer'];_0x26e939['set']('class',''),_0x26e939['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x78ae3e,'width':_0x78ae3e,'height':'calc(\x20'+_0x210131+'\x20-\x20'+_0x56b4a3+'\x20-\x20'+_0x2d936c+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x53c6ea+'\x200\x20'+_0x1c1653,'columnGap':'calc('+_0x1c1653+'\x20+\x20'+_0x53c6ea+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x26e939['bindTemplate']['to']('class')}}),_0x26e939['render'](),_0x144c76['parentNode']['insertBefore'](_0x26e939['element'],_0x144c76['nextSibling']),this['listenTo'](_0x1ec3b1,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x418569 of this['editor']['editing']['view']['domRoots']['values']())if(_0x418569['ownerDocument']['body']['contains'](_0x418569))return _0x418569;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x547f48=this['editor']['editing']['view'],_0x104b3d=this['_pagesContainer'],_0x2e12d2=this['_getAttachedDomRoot']();if(!_0x2e12d2)return Promise['resolve']();for(_0x104b3d['class']=['ck-reset','ck-pagination-view',..._0x2e12d2['classList']]['join']('\x20');_0x104b3d['element']['firstChild'];)_0x104b3d['element']['firstChild']['remove']();const _0x493078=Array['from'](_0x547f48['domRoots']);_0x493078['sort'](([,_0x41e327],[,_0x422392])=>_0x41e327['compareDocumentPosition'](_0x422392)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x4496a7,_0xf24dbd]of _0x493078){const _0x33bcd4=_0xf24dbd['cloneNode'](!0x0);'attributeStyleMap'in _0x33bcd4&&_0x33bcd4['attributeStyleMap']['clear'](),_0x33bcd4['dataset']['rootName']=_0x4496a7,_0x33bcd4['className']='ck-content\x20ck-pagination_enabled',_0x33bcd4['removeAttribute']('id'),_0x33bcd4['tabIndex']=-0x1,_0x104b3d['element']['append'](_0x33bcd4);}const _0x34970f=Array['from'](_0x104b3d['element']['querySelectorAll']('img'));return function(_0x2a79e8){return Promise['all'](_0x2a79e8['map'](_0x2bf752=>Promise['race']([k(_0x2bf752),v(0x3e8)])));}(_0x34970f)['then'](()=>{for(const _0x2047d0 of _0x34970f['filter'](_0x327e6d=>!_0x327e6d['closest']('table')))if(_0x2047d0['offsetParent']){const _0x253a94=_0x342dd1['window']['getComputedStyle'](_0x2047d0),_0x14bb22=_0x342dd1['document']['createElement']('span');for(const _0x52ed46 of _0x253a94)_0x14bb22['style']['setProperty'](_0x52ed46,_0x253a94[_0x52ed46]);_0x14bb22['style']['backgroundImage']='url(\x20'+_0x2047d0['src']+'\x20)',_0x14bb22['style']['breakInside']='avoid','PICTURE'==_0x2047d0['parentElement']?.['tagName']?_0x2047d0['parentElement']['replaceWith'](_0x14bb22):_0x2047d0['replaceWith'](_0x14bb22);}return new Promise(_0x11e84d=>_0x342dd1['window']['requestAnimationFrame'](()=>_0x11e84d()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0xcb8e56=this['_pagesContainer']['element'];if(!_0xcb8e56['ownerDocument']['body']['contains'](_0xcb8e56))return;const _0x52b331=new _0x52721e(_0xcb8e56)['excludeScrollbarsAndBorders'](),_0x3cd7dc=Math['floor'](_0x52b331['width']+0x64),_0x5f149e=_(_0xcb8e56,Math['floor'](_0x52b331['left']-_0xcb8e56['scrollLeft']),_0x3cd7dc,_0x52b331['height'])['map'](_0x183dbe=>this['_mapPageStarterInfoToPageBreakInfo'](_0x183dbe))['filter'](_0x472528=>!0x1!==_0x472528);_0x5f149e['every'](_0x49b996=>!!_0x49b996)&&(this['pageBreaks']=_0x5f149e);}['_mapPageStarterInfoToPageBreakInfo'](_0x1b5a9e){const _0x3a4003=this['editor']['editing']['view'],_0x251dd8=this['editor']['editing']['mapper'],_0x19317d=_0x3a4003['domConverter'],_0x5263e4=_0x1b5a9e['path']['shift'](),_0x288e80=this['_pagesContainer']['element']['childNodes'][_0x5263e4]['dataset']['rootName'],_0x1da44b=_0x3a4003['getDomRoot'](_0x288e80);if(!_0x1da44b)return null;const _0x23b552=function(_0x359595,_0xa3a8f6){let _0x530b2e=_0x359595;for(const _0x32efd9 of _0xa3a8f6['path']){if(!_0x530b2e)return null;_0x530b2e=_0x530b2e['childNodes'][_0x32efd9];}return _0x530b2e;}(_0x1da44b,_0x1b5a9e);if(!_0x23b552)return null;const _0x5ca323=_0x19317d['domPositionToView'](_0x23b552,_0x1b5a9e['textOffset']||0x0);return _0x5ca323?'manual'==_0x1b5a9e['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x5ca323,_0x23b552):'text'==_0x1b5a9e['type']&&_0x251dd8['toModelPosition'](_0x5ca323)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x5ca323,_0x23b552,_0x1b5a9e['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x5ca323,_0x23b552,_0x1b5a9e['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x5d87f2,_0x1e9658){const _0x4ac1df=this['editor']['model'],_0x2d204c=this['editor']['editing']['mapper']['toModelElement'](_0x5d87f2['parent']),_0x24fa1e=_0x4ac1df['createRangeOn'](_0x2d204c);return new b({'type':'manual','modelRange':_0x24fa1e,'domNode':_0x1e9658,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x502d95,_0x3a5273,_0x2242dc){const _0x1f088f=this['editor']['model'],_0x50d55b=this['editor']['editing']['mapper'],_0x4ad5e7=this['editor']['editing']['view']['domConverter'];if(_0x2242dc>=_0x3a5273['length'])return null;const _0x59d81e=_0x50d55b['toModelPosition'](_0x502d95),_0x50cded=_0x1f088f['createRange'](_0x59d81e),_0x5a8a98=_0x50d55b['findMappedViewAncestor'](_0x502d95),_0x4ad159=_0x4ad5e7['mapViewToDom'](_0x5a8a98);return new b({'type':'text','modelRange':_0x50cded,'domNode':_0x3a5273,'offset':P(_0x3a5273,_0x2242dc,_0x4ad159)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x389ab6,_0x5c2868,_0x224de5){const _0x461740=this['editor']['model'],_0x3f24cf=this['editor']['editing'],_0xa9e5b6=_0x3f24cf['mapper'],_0x290541=_0x3f24cf['view']['domConverter'],_0x4ce539=_0xa9e5b6['findMappedViewAncestor'](_0x389ab6),_0x3ae3c2=_0xa9e5b6['toModelElement'](_0x4ce539);if(!_0x3ae3c2||_0x3ae3c2['is']('element','$root'))return!0x1;const _0x3d9a97=function(_0x18cce6){const _0x10120c=_0x18cce6['parent'],_0x2fb75a=_0x10120c['root']['document']['model'],_0x74b6b1=_0x10120c['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x1348a3=null;for(const _0x2e4c44 of _0x74b6b1){if(_0x2e4c44['is']('rootElement'))return _0x1348a3;if(!_0x2fb75a['createPositionBefore'](_0x2e4c44)['isTouching'](_0x18cce6))return _0x1348a3;_0x1348a3=_0x2e4c44;}}(_0x461740['createPositionBefore'](_0x3ae3c2)),_0x4fa931=_0x3d9a97||_0x3ae3c2;let _0x3036d5=_0xa9e5b6['toViewElement'](_0x4fa931),_0x4abb41=_0x461740['createRangeOn'](_0x4fa931);const _0x2b0a01=_0x461740['createPositionBefore'](_0x4fa931)['nodeBefore'];if(_0x2b0a01&&_0x2b0a01['is']('element','imageBlock')){const _0x294cab=_0xa9e5b6['toViewElement'](_0x2b0a01),_0x5aed23=_0x290541['mapViewToDom'](_0x294cab),_0x35441f=_0x342dd1['window']['getComputedStyle'](_0x5aed23)['float'];'left'!=_0x35441f&&'right'!=_0x35441f||(_0x4abb41=_0x461740['createRangeOn'](_0x2b0a01));}for(;_0x3036d5['parent']!==_0x3036d5['root']&&0x0===_0x3036d5['index'];)_0x3036d5=_0x3036d5['parent'];const _0x4c5c4b=new _0x52721e(I(_0x5c2868)?_0x5c2868:x(_0x5c2868)),_0x574b02=_0x224de5?_0x4c5c4b['height']-_0x224de5:0x0,_0xf74520=_0x290541['mapViewToDom'](_0x3036d5),_0x1b23c9=new _0x52721e(_0xf74520);return new b({'type':'element','modelRange':_0x4abb41,'domNode':_0xf74520,'offset':Math['round'](_0x574b02)||_0x4ce539!=y(_0x389ab6)?_0x574b02+_0x4c5c4b['top']-_0x1b23c9['top']:0x0});}get['_configuredPaddings'](){const _0x5502be=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x5502be);}static['_findPageStarterInfos'](_0x329457,_0x54f618,_0x47e18f,_0x222a02,_0x3233ea){return _(_0x329457,_0x54f618,_0x47e18f,_0x222a02,_0x3233ea);}}class b{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x1771a7,modelRange:_0x2f2f0e,domNode:_0x524738,offset:_0x22e559}){this['type']=_0x1771a7,this['modelRange']=_0x2f2f0e,this['_domNode']=_0x524738,this['_offset']=_0x22e559;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x489e64=new _0x52721e(I(this['_domNode'])?this['_domNode']:x(this['_domNode']));return'manual'==this['type']?_0x489e64['top']+_0x489e64['height']/0x2:_0x489e64['top']+this['_offset'];}}function P(_0x13bdcf,_0x3dda60,_0x13585f){const _0x635b27=x(_0x13bdcf),_0x499d65=function(_0x215137){const _0x56149a=_0x342dd1['document']['createRange']();return _0x56149a['selectNodeContents'](_0x215137),_0x56149a;}(_0x13585f);let _0x22fb2a;_0x22fb2a=0x0==_0x3dda60?L(_0x499d65['startContainer'],_0x499d65['startOffset'],_0x13bdcf['parentNode'],Array['from'](_0x13bdcf['parentNode']['childNodes'])['indexOf'](_0x13bdcf)):L(_0x499d65['startContainer'],_0x499d65['startOffset'],_0x13bdcf,_0x3dda60);const _0x460ebd=L(_0x13bdcf,_0x3dda60,_0x499d65['endContainer'],_0x499d65['endOffset']),_0x25be13=new _0x52721e(_0x22fb2a)['bottom'];return(new _0x52721e(_0x460ebd)['top']+_0x25be13)/0x2-new _0x52721e(_0x635b27)['top'];}function y(_0x39cbca){let _0x1cfc0b=_0x39cbca['parent'];for(;_0x1cfc0b['is']('$text')||_0x1cfc0b['is']('attributeElement');)_0x1cfc0b=_0x1cfc0b['parent'];return _0x1cfc0b;}function k(_0x52861e){return _0x52861e['hasAttribute']('width')&&_0x52861e['hasAttribute']('height')?Promise['resolve']():new Promise(_0x2d724f=>{function _0x244696(){_0x52861e['removeEventListener']('load',_0x244696),_0x52861e['removeEventListener']('error',_0x244696),_0x2d724f();}_0x52861e['complete']?_0x2d724f():(_0x52861e['addEventListener']('load',_0x244696),_0x52861e['addEventListener']('error',_0x244696));});}function v(_0x46452d){return new Promise(_0x462b69=>setTimeout(_0x462b69,_0x46452d));}function x(_0x4ca920){const _0x5705f6=_0x342dd1['document']['createRange']();return _0x5705f6['selectNode'](_0x4ca920),_0x5705f6;}function N(_0x4fb2ac,_0x592682,_0x115c84){const _0x95877b=_0x342dd1['document']['createRange']();return _0x95877b['setStart'](_0x4fb2ac,_0x592682),_0x95877b['setEnd'](_0x4fb2ac,_0x115c84),_0x95877b;}function L(_0x4f45f7,_0x2661cf,_0x42ab6e,_0x222c78){const _0x2713fd=_0x342dd1['document']['createRange']();return _0x2713fd['setStart'](_0x4f45f7,_0x2661cf),_0x2713fd['setEnd'](_0x42ab6e,_0x222c78),_0x2713fd;}function _(_0x479dc8,_0x35614f,_0x18c729,_0x375fd9,_0x591f97){const _0xdfa17d=[];for(const [_0x1ce82b,_0x9a9ce7]of _0x479dc8['childNodes']['entries']()){let _0x2a2fc3=[];I(_0x9a9ce7)&&_0x9a9ce7['offsetParent']&&['static','relative']['includes'](_0x342dd1['window']['getComputedStyle'](_0x9a9ce7)['position'])?_0x2a2fc3=S(_0x9a9ce7,_0x1ce82b,_0x35614f,_0x18c729,_0x375fd9,_0x591f97):O(_0x9a9ce7)&&(_0x2a2fc3=E(_0x9a9ce7,_0x1ce82b,_0x35614f,_0x18c729,_0x591f97)),_0x2a2fc3['length']&&(_0xdfa17d['push'](..._0x2a2fc3),_0x35614f+=_0x2a2fc3['length']*_0x18c729,_0x591f97=!0x1);}return _0xdfa17d;}function S(_0x421a7a,_0x28500b,_0x57a22b,_0xfd3cb7,_0x20a0e5,_0x438c40){const _0x23f2ae=[];var _0x418bba;if((_0x418bba=_0x421a7a['previousSibling'])&&I(_0x418bba)&&Boolean(_0x418bba['classList']['contains']('page-break')||_0x418bba['closest']('.page-break'))&&(_0x23f2ae['push']({'type':'manual','offset':0x0,'path':[_0x28500b-0x1]}),_0x438c40=!0x0),'table-row'==_0x342dd1['window']['getComputedStyle'](_0x421a7a)['display']){let _0x45bba3=0x0,_0x2740bf=!0x1;for(const _0x599969 of _0x421a7a['getClientRects']())_0x45bba3+=_0x599969['height'],_0x599969['left']>=_0x57a22b&&(_0x2740bf=!0x0);if(_0x45bba3<_0x20a0e5&&_0x2740bf)return _0x438c40||_0x23f2ae['push']({'type':'element','offset':0x0,'path':[_0x28500b]}),_0x23f2ae;}const _0x4d465d=_0x421a7a['closest']('figure.image');if(_0x4d465d&&function(_0x36819d){let _0x312a4e=!0x1;const _0x339210=_0x36819d['parentElement'],_0x3634d8=_0x339210['dataset']['rootName'],_0x52cfb3=_0x36819d['nextElementSibling'],_0x24e780=_0x36819d['previousElementSibling'],_0x578040=_0x52cfb3&&_0x342dd1['window']['getComputedStyle'](_0x52cfb3)['float'],_0x567859=_0x52cfb3&&'ck-fake-selection-container'===_0x52cfb3['className'];!_0x3634d8||_0x52cfb3||_0x24e780||(_0x312a4e=!0x0),_0x3634d8&&!_0x24e780&&_0x567859&&(_0x312a4e=!0x0),_0x3634d8&&!_0x24e780&&'none'!==_0x578040&&(_0x312a4e=!0x0);if(_0x312a4e)return!0x1;return!0x0;}(_0x4d465d)){const _0x249a09=_0x342dd1['window']['getComputedStyle'](_0x4d465d)['float'];if('left'==_0x249a09||'right'==_0x249a09)return _0x23f2ae;}const _0x4f7b98=_(_0x421a7a,_0x57a22b,_0xfd3cb7,_0x20a0e5,_0x438c40);if(_0x4f7b98['length']){for(const _0x906289 of _0x4f7b98)_0x23f2ae['push']({'type':_0x906289['type'],'offset':_0x906289['offset'],'textOffset':_0x906289['textOffset'],'path':[_0x28500b,..._0x906289['path']]}),_0x57a22b+=_0xfd3cb7,_0x438c40=!0x1;return _0x23f2ae;}return _0x23f2ae['push'](...function(_0x10fdf7,_0x5e606e,_0x4d2816,_0x12a706,_0x3e93e2){const _0x36ed68=[];if('table-cell'==_0x342dd1['window']['getComputedStyle'](_0x10fdf7)['display'])return[];const _0x46893f=[];for(const _0x4f3538 of _0x10fdf7['getClientRects']())if(_0x4f3538['left']>=_0x4d2816){for(const _0x39aa65 of _0x46893f)_0x39aa65['height']+=_0x4f3538['height'];_0x46893f['push']({'height':_0x4f3538['height']}),_0x4d2816+=_0x12a706;}for(const _0x2f5036 of _0x46893f)_0x3e93e2||_0x36ed68['push']({'type':'element','offset':_0x2f5036['height'],'textOffset':0x0,'path':[_0x5e606e]}),_0x3e93e2=!0x1;return _0x36ed68;}(_0x421a7a,_0x28500b,_0x57a22b,_0xfd3cb7,_0x438c40)),_0x23f2ae;}function E(_0x1d3324,_0x2126a4,_0x3d0696,_0x42e82f,_0x17817){const _0x2a7241=x(_0x1d3324),_0x279875=[];let _0x4666ae=0x0;for(const _0x1c759a of _0x2a7241['getClientRects']())if(_0x1c759a['left']>=_0x3d0696){const _0x142ab9=R(_0x1d3324,_0x4666ae,_0x3d0696,_0x42e82f);_0x17817||_0x279875['push']({'type':'text','path':[_0x2126a4],'textOffset':_0x142ab9}),_0x4666ae=_0x142ab9,_0x3d0696+=_0x42e82f,_0x17817=!0x1;}return _0x279875;}function R(_0x580257,_0x21b58d,_0x106cfc,_0x4f4b68){let _0x233b47=_0x21b58d,_0x54ad27=_0x580257['length'];for(;_0x54ad27-_0x233b47>0x1;){const _0x45a217=Math['ceil']((_0x233b47+_0x54ad27)/0x2);K(N(_0x580257,_0x233b47,_0x45a217),_0x106cfc,_0x4f4b68)?_0x54ad27=_0x45a217:_0x233b47=_0x45a217;}return _0x233b47;}function K(_0x405db7,_0x508205,_0x464b1b){for(const _0x26645e of _0x405db7['getClientRects']())if(_0x26645e['left']>=_0x508205&&_0x26645e['left']<_0x508205+_0x464b1b)return!0x0;return!0x1;}function I(_0x1a8300){return _0x1a8300['nodeType']==Node['ELEMENT_NODE'];}function O(_0x57bfa5){return _0x57bfa5['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x226b5e('px');class T extends _0x53d317{constructor(){super();const _0x281d6c=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x281d6c['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x281d6c['if']('isVisible','ck-hidden',_0x5be4be=>!_0x5be4be)],'style':{'left':_0x281d6c['to']('left',_0x566eb4=>B(_0x566eb4)),'top':_0x281d6c['to']('top',_0x272528=>B(_0x272528)),'width':_0x281d6c['to']('width',_0x53bda7=>B(_0x53bda7))}}});}}class A{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x3cd3fc){this['_viewCollection']=_0x3cd3fc['ui']['view']['body'];}['destroy'](){for(const _0x517966 of this['_hiddenLines'])_0x517966['destroy']();}['cleanLines'](){for(const _0x28b0ac of this['_visibleLines'])_0x28b0ac['isVisible']=!0x1,this['_hiddenLines']['add'](_0x28b0ac);this['_visibleLines']['clear']();}['showLine'](_0x1683cb,_0x17f3cc,_0x152580,_0x32a89d){let _0x27c034;this['_hiddenLines']['size']?(_0x27c034=_0x5f50d4(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x27c034)):_0x27c034=new T(),_0x27c034['set']({'pageNumber':_0x32a89d,'left':_0x1683cb,'top':_0x17f3cc,'width':_0x152580}),_0x27c034['isVisible']=!0x0,this['_viewCollection']['has'](_0x27c034)||this['_viewCollection']['add'](_0x27c034),this['_visibleLines']['add'](_0x27c034);}['setViewCollection'](_0x4525c4){for(const _0x371acf of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x371acf)&&this['_viewCollection']['remove'](_0x371acf);this['_viewCollection']=_0x4525c4;}}const D='ck-pagination_enabled';class $ extends _0x27dfa4{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new A(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](D),this['on']('change:isEnabled',(_0x4bfcb1,_0x4e0ff8,_0x236004)=>{_0x236004||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x236004);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x1fc3b2){if(!this['isEnabled'])return;const _0x2974d5=_0x1fc3b2>0x1?this['_getPageBreakLineOffset'](_0x1fc3b2-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x2974d5-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x3b3990['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x4bf13e=this['editor'],_0x48ef14=this['_getAttachedDomRoot']();_0x48ef14?(this['_scrollableEditingRootDomAncestor']&&_0x4bf13e['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x5dd2d6){let _0x8e7640=_0x5dd2d6;do{_0x8e7640=_0x8e7640['parentElement'];const _0x1b19de=_0x342dd1['window']['getComputedStyle'](_0x8e7640)['overflowY'];if('auto'==_0x1b19de||'scroll'==_0x1b19de)break;}while('BODY'!=_0x8e7640['tagName']);return _0x8e7640;}(_0x48ef14),_0x4bf13e['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x580fda(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x4bf13e['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x15ddb7=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x15ddb7['ui']['view']['listenTo'](_0x342dd1['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x15ddb7['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x1b38de of this['editor']['editing']['view']['domRoots']['values']())if(_0x1b38de['ownerDocument']['body']['contains'](_0x1b38de))return _0x1b38de;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x16033e=this['_getAttachedDomRoot'](),_0x354a72=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x16033e||0x1==_0x354a72['length'])return void(this['pageNumber']=0x1);const _0x41a19a=new _0x52721e(_0x16033e)['excludeScrollbarsAndBorders'](),_0x13b650=new _0x52721e(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x41222a=_0x13b650['top']+_0x13b650['height']/0x3;let _0x88663a=!0x1;const _0x3006a7=[];for(let _0x5b2e70=0x1;_0x5b2e70<_0x354a72['length'];_0x5b2e70++){const _0x4c8216=this['_getPageBreakLineOffset'](_0x5b2e70,_0x13b650);if(!_0x4c8216)continue;const _0x3485f9=_0x13b650['top']+_0x4c8216-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x3006a7['push']({'pageOffsetTop':_0x3485f9,'domRootRect':_0x41a19a,'domScrollableRect':_0x13b650,'pageNumber':_0x5b2e70}),_0x3485f9>_0x41222a&&!_0x88663a&&(this['pageNumber']=_0x5b2e70,_0x88663a=!0x0);}this['_renderPageBreakLines'](_0x3006a7),_0x88663a||(this['pageNumber']=_0x354a72['length']);}['_renderPageBreakLines'](_0xc1e426){const {scrollX:_0x43c8ec,scrollY:_0x50e2a2}=_0x342dd1['window'];if(_0xc1e426['length']){for(const {domScrollableRect:_0x38b177,pageOffsetTop:_0x259d57,domRootRect:_0x5a190f,pageNumber:_0x24f666}of _0xc1e426)_0x38b177['top']<_0x259d57&&_0x259d57<_0x38b177['bottom']&&this['linesRepository']['showLine'](_0x5a190f['left']+_0x43c8ec,_0x259d57+_0x50e2a2,_0x5a190f['width'],_0x24f666+0x1);}}['_getPageBreakLineOffset'](_0x4c82ef,_0x167042=null){const _0x2b5456=this['_paginationLookupPlugin']['pageBreaks'][_0x4c82ef]['offset'];return _0x2b5456?(_0x167042||(_0x167042=new _0x52721e(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x2b5456-_0x167042['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x58cc15,_0x96cada=!0x0){const _0x46c971=this['editor']['editing']['view'];_0x46c971['change'](_0x4e4e63=>{for(const _0x2069de of _0x46c971['document']['roots'])_0x96cada?_0x4e4e63['addClass'](_0x58cc15,_0x2069de):_0x4e4e63['removeClass'](_0x58cc15,_0x2069de);});}}function G(_0x509d5e,_0xeb85d8,..._0x5a98ef){const t=_0x509d5e['t'];switch(_0xeb85d8){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)',..._0x5a98ef);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 _0xeb85d8;}}class C extends _0x27dfa4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[w,$];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x19f0e8=this['editor']['plugins']['get']('Pagination'),_0x1a0710=this['editor']['plugins']['get'](w),_0x5a4801=this['editor']['plugins']['get']($);this['bind']('isEnabled')['to'](_0x19f0e8),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x5a4801),this['listenTo'](_0x1a0710,'change:pageBreaks',(_0x39b308,_0x4438c7,_0x1d909f,_0x5dbbb5)=>{this['totalPages']=_0x1d909f['length'],this['_updatePageBreakMarkers'](_0x1d909f,_0x5dbbb5);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x37b165=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x73c8;for(const _0x384600 in _0x37b165){const _0x1ac1f2=_0x384600,_0xe2a93e=_0x37b165[_0x1ac1f2];if('paginationLicenseKeyValid'==_0xe2a93e||'paginationLicenseKeyInvalid'==_0xe2a93e||'paginationLicenseKeyExpired'==_0xe2a93e||'paginationLicenseKeyDomainLimit'==_0xe2a93e||'paginationLicenseKeyNotAllowed'==_0xe2a93e||'paginationLicenseKeyEvaluationLimit'==_0xe2a93e||'paginationLicenseKeyUsageLimit'==_0xe2a93e){delete _0x37b165[_0x1ac1f2],_0x73c8=_0xe2a93e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x73c8&&_0x37b165['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x73c8&&_0x37b165['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x73c8&&_0x37b165['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x73c8&&_0x37b165['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x73c8&&_0x37b165['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x73c8&&_0x37b165['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x156da5){if(!this['isEnabled'])return;this['editor']['plugins']['get']($)['scrollToPage'](this['_validatePageNumber'](_0x156da5));}['moveSelectionToPage'](_0x4165df){if(!this['isEnabled'])return;const _0x5d7f38=this['editor'],_0x1dfdb2=this['editor']['plugins']['get'](w)['pageBreaks'][_0x4165df-0x1];_0x1dfdb2&&_0x5d7f38['model']['change'](_0x15b3af=>{switch(_0x1dfdb2['type']){case'manual':{const _0x348586=_0x5d7f38['model']['schema']['getNearestSelectionRange'](_0x1dfdb2['modelRange']['end'],'forward');_0x15b3af['setSelection'](_0x348586);break;}case'element':{const _0x4444df=_0x5d7f38['model']['schema']['getNearestSelectionRange'](_0x1dfdb2['modelRange']['start'],'forward');_0x15b3af['setSelection'](_0x4444df);break;}case'text':{const _0xde912=_0x1dfdb2['modelRange']['start'];if(_0xde912['textNode']&&'\x20'===_0xde912['textNode']['data'][_0xde912['offset']]){const _0x1d1fd7=_0x15b3af['createPositionAt'](_0xde912['parent'],_0xde912['offset']+0x1);_0x15b3af['setSelection'](_0x1d1fd7);}else _0x15b3af['setSelection'](_0x1dfdb2['modelRange']);}}_0x5d7f38['editing']['view']['focus']();});}['goToNextPage'](){const _0x431a01=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x431a01),this['scrollToPage'](_0x431a01);}['goToPreviousPage'](){const _0x236fd7=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x236fd7),this['scrollToPage'](_0x236fd7);}['_updatePageBreakMarkers'](_0x71dffa,_0x1f90d4){const _0x44e2f6=this['editor']['model'];this['isEnabled']&&_0x44e2f6['change'](_0x273d05=>{for(let _0x553f27=0x1;_0x553f27<_0x71dffa['length'];_0x553f27++){const _0x32db46=_0x71dffa[_0x553f27]['modelRange'],_0x3e8f40='pagination:'+(_0x553f27+0x1);_0x44e2f6['markers']['has'](_0x3e8f40)?_0x273d05['updateMarker'](_0x3e8f40,{'range':_0x32db46}):_0x273d05['addMarker'](_0x3e8f40,{'range':_0x32db46,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x2214dd=_0x71dffa['length'];_0x2214dd<_0x1f90d4['length'];_0x2214dd++){const _0x3fa0d0='pagination:'+(_0x2214dd+0x1);_0x44e2f6['markers']['has'](_0x3fa0d0)&&_0x273d05['removeMarker'](_0x3fa0d0);}});}['_setUpDataDowncastConversion'](){const _0x3aec11='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x41c375=>{_0x41c375['on']('addMarker:'+_0x3aec11,(_0x534726,{markerRange:_0x3021dc,markerName:_0x3736d3},_0x1de1e7)=>{if(!_0x1de1e7['options']['pagination'])return;if(!_0x1de1e7['consumable']['consume'](_0x3021dc,_0x534726['name']))return;const _0x10c453=_0x3021dc['getContainedElement']();let _0x4c5fba=_0x10c453?_0x1de1e7['mapper']['toViewElement'](_0x10c453):null;if(!_0x4c5fba){const _0x539c28=_0x3021dc['start'];if(_0x1de1e7['schema']['checkChild'](_0x539c28,'$text')){const _0x58b719=_0x1de1e7['mapper']['toViewPosition'](_0x539c28);_0x4c5fba=_0x1de1e7['writer']['createContainerElement']('span'),_0x4c5fba['getFillerOffset']=()=>null,_0x1de1e7['writer']['insert'](_0x58b719,_0x4c5fba);}else{const _0x16bf71=_0x539c28['nodeAfter'];_0x4c5fba=_0x1de1e7['mapper']['toViewElement'](_0x16bf71);}}for(;_0x4c5fba['parent']!==_0x4c5fba['root']&&0x0===_0x4c5fba['index'];)_0x4c5fba=_0x4c5fba['parent'];const _0x3a9620=_0x3736d3['substring'](0xb);_0x4c5fba['hasClass']('page-break')||(_0x1de1e7['writer']['setStyle']('page-break-before','always',_0x4c5fba),_0x1de1e7['writer']['setAttribute']('data-pagination-page',_0x3a9620,_0x4c5fba),_0x1de1e7['mapper']['bindElementToMarker'](_0x4c5fba,_0x3736d3)),_0x534726['stop']();});});}['_setupKeystrokes'](){const _0x375cf1=this['editor'];_0x375cf1['keystrokes']['set']('Shift+Pageup',(_0x11fb72,_0x4fd37f)=>{this['goToPreviousPage'](),_0x4fd37f();}),_0x375cf1['keystrokes']['set']('Shift+Pagedown',(_0x10c694,_0x5db140)=>{this['goToNextPage'](),_0x5db140();}),_0x375cf1['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':G(_0x375cf1['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':G(_0x375cf1['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':G(_0x375cf1['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x53d294){return _0x53d294<0x1&&(_0x53d294=0x1),_0x53d294>this['totalPages']&&(_0x53d294=this['totalPages']),_0x53d294;}}class U extends _0x53d317{['pageNumberView'];constructor(_0x5d4d3a){super(_0x5d4d3a);const _0x1a9e60=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x590ea4(_0x5d4d3a,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x3d8239=>G(_0x5d4d3a,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x3d8239)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x3287fa=>!_0x3287fa),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x1a9e60['if']('isEnabled','ck-disabled',_0x553b2e=>!_0x553b2e)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x1a9e60['to']('totalPages')}]}]});}['render'](){super['render']();const _0x2f6d69=this['pageNumberView']['element'],_0x11b383=_0x1c9307=>{this['pageNumberView']['element']['value']=String(_0x1c9307);};_0x11b383(this['pageNumber']),this['on']('change:pageNumber',(_0x4ba7d6,_0x2846db,_0x83662d)=>{_0x11b383(_0x83662d);}),this['listenTo'](_0x2f6d69,'keydown',(_0x4048a3,_0x39d8f6)=>{if('ArrowUp'===_0x39d8f6['key']||'ArrowDown'===_0x39d8f6['key'])return void _0x39d8f6['stopPropagation']();if(_0x39d8f6['keyCode']!==_0x48c145['enter'])return;_0x39d8f6['preventDefault']();const _0x310558=_0x2f6d69['valueAsNumber'];Number['isNaN'](_0x310558)?_0x2f6d69['value']=String(this['pageNumber']):(_0x2f6d69['checkValidity']()?this['pageNumber']=_0x310558:_0x310558>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x2f6d69['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x2f6d69['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x2f6d69,'blur',()=>{_0x2f6d69['value']=String(this['pageNumber']);}),this['listenTo'](_0x2f6d69,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class M extends _0x27dfa4{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x51f07d=this['editor'],_0x10ecf6=_0x51f07d['plugins']['get']('PaginationEditing');_0x51f07d['ui']['componentFactory']['add']('pageNavigation',_0x2f4bc7=>{const _0x6c97b0=new U(_0x2f4bc7);return _0x6c97b0['bind']('pageNumber')['to'](_0x10ecf6),_0x6c97b0['bind']('totalPages')['to'](_0x10ecf6),_0x6c97b0['bind']('isEnabled')['to'](_0x10ecf6),_0x6c97b0['on']('navigation',(_0x429ac1,_0x3d4628)=>{_0x10ecf6['moveSelectionToPage'](_0x3d4628),_0x10ecf6['scrollToPage'](_0x3d4628);}),_0x6c97b0;}),_0x51f07d['ui']['componentFactory']['add']('nextPage',_0x5467ea=>{const _0x1ff4df=new _0x4bc323(_0x5467ea);return _0x1ff4df['isEnabled']=!0x0,_0x1ff4df['label']=G(_0x51f07d['locale'],'Go\x20to\x20next\x20page'),_0x1ff4df['icon']=_0x2ef322,_0x1ff4df['tooltip']=!0x0,_0x1ff4df['keystroke']='Shift+PageDown',_0x1ff4df['bind']('isEnabled')['to'](_0x10ecf6),this['listenTo'](_0x1ff4df,'execute',()=>{_0x10ecf6['goToNextPage']();}),_0x1ff4df;}),_0x51f07d['ui']['componentFactory']['add']('previousPage',_0x96d260=>{const _0x895ae3=new _0x4bc323(_0x96d260);return _0x895ae3['isEnabled']=!0x0,_0x895ae3['label']=G(_0x51f07d['locale'],'Go\x20to\x20previous\x20page'),_0x895ae3['icon']=_0x3dd9fd,_0x895ae3['tooltip']=!0x0,_0x895ae3['keystroke']='Shift+PageUp',_0x895ae3['bind']('isEnabled')['to'](_0x10ecf6),this['listenTo'](_0x895ae3,'execute',()=>{_0x10ecf6['goToPreviousPage']();}),_0x895ae3;});}}class j extends _0x27dfa4{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C,M];}constructor(_0x58be88){super(_0x58be88),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x579d6b=this['editor']['plugins']['get'](C);this['bind']('pageNumber')['to'](_0x579d6b),this['bind']('totalPages')['to'](_0x579d6b),_0x3b3990['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x2c7c40){this['editor']['plugins']['get'](C)['scrollToPage'](_0x2c7c40);}}export{j as Pagination,$ as PaginationRenderer};
|
|
23
|
+
import{Plugin as _0xdb54e1}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x1b89ce,InputNumberView as _0x4d67b8,ButtonView as _0x5d4a55}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x29045d,global as _0x1f984f,Rect as _0x549341,uid as _0x587400,toUnit as _0xbc7100,first as _0xf42c5a,env as _0x5dfeed,ResizeObserver as _0x570fd7,keyCodes as _0x570225}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x5d8007}from'es-toolkit/compat';import{IconArrowDown as _0x500847,IconArrowUp as _0x3b15e5}from'@ckeditor/ckeditor5-icons/dist/index.js';class w extends _0xdb54e1{['_recalculatePageBreaksDebounced']=_0x5d8007(()=>this['_recalculatePageBreaks'](),0xc8);['_pagesContainer']=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void _0x29045d('pagination-config-not-found',this['editor']['config']);const _0x3e2ea2=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x3e2ea2),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x5d108a,_0x1e41fe,_0xb30b70)=>{_0xb30b70&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x425ab2){const _0x14478e=_0x20f18e([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0x266f3a=0xc82cb1e,_0x5399e4=0xc854fe6^_0x266f3a,_0x3ef368=window[_0x20f18e([0x44,0x61,0x74,0x65])][_0x20f18e([0x6e,0x6f,0x77])](),_0x22ed8e=_0x425ab2[_0x20f18e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x27432f=new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34fd3b=>{_0x22ed8e[_0x20f18e([0x6f,0x6e,0x63,0x65])](_0x20f18e([0x72,0x65,0x61,0x64,0x79]),_0x34fd3b);}),_0x19104={[_0x20f18e([0x6b,0x74,0x79])]:_0x20f18e([0x45,0x43]),[_0x20f18e([0x75,0x73,0x65])]:_0x20f18e([0x73,0x69,0x67]),[_0x20f18e([0x63,0x72,0x76])]:_0x20f18e([0x50,0x2d,0x32,0x35,0x36]),[_0x20f18e([0x78])]:_0x20f18e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x20f18e([0x79])]:_0x20f18e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x20f18e([0x61,0x6c,0x67])]:_0x20f18e([0x45,0x53,0x32,0x35,0x36])},_0x9a1051=_0x22ed8e[_0x20f18e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20f18e([0x67,0x65,0x74])](_0x20f18e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x126adf(){let _0x41a6d3,_0x2aed5=null,_0x2b1768=null;try{if(_0x9a1051==_0x20f18e([0x47,0x50,0x4c]))return _0x20f18e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41a6d3=_0x3601a1(),!_0x41a6d3)return _0x20f18e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41a6d3[_0x20f18e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b1768=_0x411535(_0x41a6d3[_0x20f18e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41a6d3[_0x20f18e([0x6a,0x74,0x69])])),await _0x2044b9()?_0x138d26()?_0x2c5e01()?_0x20f18e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x56c56d()?(_0x41a6d3[_0x20f18e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20f18e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2aed5=_0x313ce5(_0x20f18e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e0cc7()):_0x20f18e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20f18e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20f18e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x20f18e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c5e01(){const _0x3b46d7=[_0x20f18e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20f18e([0x74,0x72,0x69,0x61,0x6c])][_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41a6d3[_0x20f18e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ef368/0x3e8:0xe10*_0x5399e4;return _0x41a6d3[_0x20f18e([0x65,0x78,0x70])]<_0x3b46d7;}function _0x138d26(){const _0x419ce0=_0x41a6d3[_0x20f18e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x419ce0&&(!!_0x419ce0[_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20f18e([0x2a]))||!!_0x419ce0[_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20f18e([0x50,0x41,0x47])));}function _0x56c56d(){const _0x486bb1=_0x41a6d3[_0x20f18e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x486bb1||0x0==_0x486bb1[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xda2c9d}=new URL(window[_0x20f18e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x486bb1[_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xda2c9d))return!0x0;const _0x26fa1b=_0xda2c9d[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])](_0x20f18e([0x2e]));return _0x486bb1[_0x20f18e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ea221=>_0x3ea221[_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20f18e([0x2a])))[_0x20f18e([0x6d,0x61,0x70])](_0x183bdd=>_0x183bdd[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])](_0x20f18e([0x2e])))[_0x20f18e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e4454=>_0x2e4454[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x26fa1b[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20f18e([0x6d,0x61,0x70])](_0x147ec9=>Array(_0x26fa1b[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x147ec9[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20f18e([0x66,0x69,0x6c,0x6c])](_0x147ec9[0x0]===_0x20f18e([0x2a])?_0x20f18e([0x2a]):'')[_0x20f18e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x147ec9))[_0x20f18e([0x73,0x6f,0x6d,0x65])](_0x1fc87d=>_0x26fa1b[_0x20f18e([0x65,0x76,0x65,0x72,0x79])]((_0x505866,_0x2382f9)=>_0x1fc87d[_0x2382f9]===_0x505866||_0x1fc87d[_0x2382f9]===_0x20f18e([0x2a])));}function _0x1e0cc7(){return _0x2aed5&&_0x2b1768?new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e4f86,_0x27fc0a)=>{_0x2aed5[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x4e4f86,_0x27fc0a),_0x2b1768[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x1a54a1=>{_0x1a54a1!=_0x20f18e([0x56,0x61,0x6c,0x69,0x64])&&_0x4e4f86(_0x1a54a1);},_0x27fc0a);}):_0x2aed5||_0x2b1768||_0x20f18e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x411535(_0x1cc649,_0x30c0c1){return new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45cbf4=>{if(_0x489c35())return _0x45cbf4(_0x20f18e([0x56,0x61,0x6c,0x69,0x64]));_0x3ee562(),_0x22ed8e[_0x20f18e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20f18e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3923cf=!0x1;const _0x102143=_0x587400();function _0x10cbd0(_0x4b5e03){return!!_0x4b5e03&&(typeof _0x4b5e03===_0x20f18e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b5e03===_0x20f18e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b5e03[_0x20f18e([0x74,0x68,0x65,0x6e])]===_0x20f18e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b5e03[_0x20f18e([0x63,0x61,0x74,0x63,0x68])]===_0x20f18e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x525fe2(_0x4d4a47){_0x1313c0(_0x4d4a47)[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x2c6c67=>{if(!_0x2c6c67||_0x2c6c67[_0x20f18e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20f18e([0x6f,0x6b]))return _0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2fc2d5(_0xa40e65(_0x102143+_0x30c0c1))!=_0x2c6c67[_0x20f18e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20f18e([0x56,0x61,0x6c,0x69,0x64]);})[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x4c05d7=>(_0x59b836(),_0x4c05d7),()=>{const _0x491c8c=_0x21b46e();return null==_0x491c8c?(_0x59b836(),_0x20f18e([0x56,0x61,0x6c,0x69,0x64])):_0x20f18e(_0x3ef368-_0x491c8c>(0x288e4f1e^_0x266f3a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x45cbf4)[_0x20f18e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45cbf4(_0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d0b75=0xcb4259e^_0x266f3a;function _0x59b836(){const _0x10868d=_0x20f18e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fc2d5(_0xa40e65(_0x1cc649)),_0x262bc9=_0x13165e(_0x2fc2d5(window[_0x20f18e([0x4d,0x61,0x74,0x68])][_0x20f18e([0x63,0x65,0x69,0x6c])](_0x3ef368/_0x4d0b75)));window[_0x20f18e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20f18e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10868d,_0x262bc9);}function _0x21b46e(){const _0x13226d=_0x20f18e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fc2d5(_0xa40e65(_0x1cc649)),_0x39048d=window[_0x20f18e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20f18e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13226d);return _0x39048d?window[_0x20f18e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13165e(_0x39048d),0x10)*_0x4d0b75:null;}function _0x1313c0(_0x5a7d82){return new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fccc8,_0x2becd4)=>{_0x5a7d82[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x4fccc8,_0x2becd4),window[_0x20f18e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2becd4,0xc831fde^_0x266f3a);});}}_0x22ed8e[_0x20f18e([0x6f,0x6e])](_0x20f18e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x365ed5,_0x3b87cc)=>{if(_0x3b87cc[0x0]!=_0x1cc649)return _0x45cbf4(_0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b87cc[0x1]={..._0x3b87cc[0x1],[_0x20f18e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x102143};},{[_0x20f18e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20f18e([0x68,0x69,0x67,0x68])}),_0x22ed8e[_0x20f18e([0x6f,0x6e])](_0x20f18e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3185ec=>{_0x10cbd0(_0x3185ec[_0x20f18e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3923cf=!0x0,_0x525fe2(_0x3185ec[_0x20f18e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20f18e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20f18e([0x6c,0x6f,0x77])}),_0x27432f[_0x20f18e([0x74,0x68,0x65,0x6e])](()=>{_0x3923cf||_0x45cbf4(_0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x489c35(){return _0x22ed8e[_0x20f18e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20f18e([0x76,0x69,0x65,0x77])][_0x20f18e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20f18e([0x61,0x75,0x74,0x6f]);}function _0x3ee562(){_0x22ed8e[_0x20f18e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20f18e([0x76,0x69,0x65,0x77])][_0x20f18e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20f18e([0x61,0x75,0x74,0x6f]);}}function _0x313ce5(_0x24d27e){const _0x5892b1=[new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dff1c=>setTimeout(_0x5dff1c,0xc8bf5d2^_0x266f3a)),_0x27432f[_0x20f18e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cb33b=>{let _0x57dbbf=0x0;_0x22ed8e[_0x20f18e([0x6d,0x6f,0x64,0x65,0x6c])][_0x20f18e([0x6f,0x6e])](_0x20f18e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f6496,_0x40ccba)=>{_0x40ccba[0x0][_0x20f18e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x57dbbf++,_0x57dbbf==(0xc82cef6^_0x266f3a)&&(_0x4cb33b(),_0x3f6496[_0x20f18e([0x6f,0x66,0x66])]());});}))];return window[_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20f18e([0x72,0x61,0x63,0x65])](_0x5892b1)[_0x20f18e([0x74,0x68,0x65,0x6e])](()=>_0x24d27e);}async function _0x387d87(){await _0x27432f,_0x22ed8e[_0x20f18e([0x6d,0x6f,0x64,0x65,0x6c])][_0x20f18e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d25d8,_0x22ed8e[_0x20f18e([0x6d,0x6f,0x64,0x65,0x6c])][_0x20f18e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d25d8,_0x22ed8e[_0x20f18e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20f18e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e5030(_0x142081){const _0x2e8f9f=_0x368ac9();_0x22ed8e[_0x2e8f9f]=_0x20f18e([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x142081,_0x142081!=_0x20f18e([0x56,0x61,0x6c,0x69,0x64])&&_0x387d87();}function _0x368ac9(){const _0x5d1203=window[_0x20f18e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20f18e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20f18e([0x6e,0x6f,0x77])]())[_0x20f18e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20f18e([0x2e]),'');let _0x3b2b3a=_0x20f18e([0x49]);for(let _0x1dc41a=0x0;_0x1dc41a<_0x5d1203[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1dc41a+=0x2){let _0x32d2da=window[_0x20f18e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d1203[_0x20f18e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1dc41a,_0x1dc41a+0x2));_0x32d2da>=_0x14478e[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32d2da-=_0x14478e[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b2b3a+=_0x14478e[_0x32d2da];}return _0x3b2b3a;}function _0x3601a1(){const _0x5de764=_0x9a1051[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])](_0x20f18e([0x2e]));if(0x3!=_0x5de764[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x11d5e2(_0x5de764[0x1]);function _0x11d5e2(_0x4e5443){const _0x55330d=_0x58349f(_0x4e5443);return _0x55330d&&_0x5bdb78()?_0x55330d:null;function _0x5bdb78(){const _0x2024e7=_0x55330d[_0x20f18e([0x6a,0x74,0x69])],_0x35e9b5=window[_0x20f18e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2024e7[_0x20f18e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2024e7[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x250875={..._0x55330d,[_0x20f18e([0x6a,0x74,0x69])]:_0x2024e7[_0x20f18e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2024e7[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x250875[_0x20f18e([0x76,0x63])],_0xa40e65(_0x250875)==_0x35e9b5;}}}async function _0x2044b9(){let _0x599df9=!0x0;try{const _0x3d3279=_0x9a1051[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])](_0x20f18e([0x2e])),[_0x21284c,_0x2efad0,_0x3b876b]=_0x3d3279;return _0x3f614b(_0x21284c),await _0xa6cdea(_0x21284c,_0x2efad0,_0x3b876b),_0x599df9;}catch{return!0x1;}function _0x3f614b(_0x46baac){const _0x1a39a4=_0x58349f(_0x46baac);_0x1a39a4&&_0x1a39a4[_0x20f18e([0x61,0x6c,0x67])]==_0x20f18e([0x45,0x53,0x32,0x35,0x36])||(_0x599df9=!0x1);}async function _0xa6cdea(_0x1d077a,_0x160042,_0x391ec8){const _0x258e7c=window[_0x20f18e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20f18e([0x66,0x72,0x6f,0x6d])](_0xa0a681(_0x391ec8),_0x238634=>_0x238634[_0x20f18e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xeb6d6f=new window[(_0x20f18e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20f18e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d077a+_0x20f18e([0x2e])+_0x160042),_0x592e07=window[_0x20f18e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20f18e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x592e07)return;const _0x46103e=await _0x592e07[_0x20f18e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20f18e([0x6a,0x77,0x6b]),_0x19104,{[_0x20f18e([0x6e,0x61,0x6d,0x65])]:_0x20f18e([0x45,0x43,0x44,0x53,0x41]),[_0x20f18e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20f18e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20f18e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x592e07[_0x20f18e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20f18e([0x6e,0x61,0x6d,0x65])]:_0x20f18e([0x45,0x43,0x44,0x53,0x41]),[_0x20f18e([0x68,0x61,0x73,0x68])]:{[_0x20f18e([0x6e,0x61,0x6d,0x65])]:_0x20f18e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46103e,_0x258e7c,_0xeb6d6f)||(_0x599df9=!0x1);}}function _0x58349f(_0x447b77){return _0x447b77[_0x20f18e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20f18e([0x65,0x79]))?JSON[_0x20f18e([0x70,0x61,0x72,0x73,0x65])](_0xa0a681(_0x447b77)):null;}function _0xa0a681(_0x384e7e){return window[_0x20f18e([0x61,0x74,0x6f,0x62])](_0x384e7e[_0x20f18e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20f18e([0x2b]))[_0x20f18e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20f18e([0x2f])));}function _0xa40e65(_0x109d06){let _0x5d41b7=0x1505;function _0x33b7c0(_0x1d5442){for(let _0x192b37=0x0;_0x192b37<_0x1d5442[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x192b37++){const _0x44eb02=_0x1d5442[_0x20f18e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x192b37);_0x5d41b7=(_0x5d41b7<<0x5)+_0x5d41b7+_0x44eb02,_0x5d41b7&=_0x5d41b7;}}function _0x168ed0(_0x2098a8){Array[_0x20f18e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2098a8)?_0x2098a8[_0x20f18e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x168ed0):_0x2098a8&&typeof _0x2098a8==_0x20f18e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20f18e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2098a8)[_0x20f18e([0x73,0x6f,0x72,0x74])]()[_0x20f18e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fba6,_0x44972c])=>{_0x33b7c0(_0x4fba6),_0x168ed0(_0x44972c);}):_0x33b7c0(window[_0x20f18e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2098a8));}return _0x168ed0(_0x109d06),_0x5d41b7>>>0x0;}function _0x2fc2d5(_0x3a6998){return _0x3a6998[_0x20f18e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20f18e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20f18e([0x30]));}function _0x13165e(_0xb9f2df){return _0xb9f2df[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20f18e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20f18e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d25d8(){}function _0x20f18e(_0x4f75f3){return _0x4f75f3['map'](_0x2960e8=>String['fromCharCode'](_0x2960e8))['join']('');}_0x5e5030(await _0x126adf());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x128497=this['editor'],_0x55d92a=_0x128497['editing']['view'],_0xfd5e59=this['_getAttachedDomRoot']();if(!_0xfd5e59||0x0===_0xfd5e59['childElementCount'])return void _0x128497['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x12b1ac,pageHeight:_0x5b22a4}=_0x128497['config']['get']('pagination'),{top:_0x171ff1,left:_0x40e737,bottom:_0x30f893,right:_0x540520}=this['_configuredPaddings'];this['_pagesContainer']=new _0x1b89ce(_0x128497['locale']);const _0x529e80=this['_pagesContainer'];_0x529e80['set']('class',''),_0x529e80['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x12b1ac,'width':_0x12b1ac,'height':'calc(\x20'+_0x5b22a4+'\x20-\x20'+_0x171ff1+'\x20-\x20'+_0x30f893+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x540520+'\x200\x20'+_0x40e737,'columnGap':'calc('+_0x40e737+'\x20+\x20'+_0x540520+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x529e80['bindTemplate']['to']('class')}}),_0x529e80['render'](),_0xfd5e59['parentNode']['insertBefore'](_0x529e80['element'],_0xfd5e59['nextSibling']),this['listenTo'](_0x55d92a,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x155f7a of this['editor']['editing']['view']['domRoots']['values']())if(_0x155f7a['ownerDocument']['body']['contains'](_0x155f7a))return _0x155f7a;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x31da3c=this['editor']['editing']['view'],_0x5abbc3=this['_pagesContainer'],_0x5b9340=this['_getAttachedDomRoot']();if(!_0x5b9340)return Promise['resolve']();for(_0x5abbc3['class']=['ck-reset','ck-pagination-view',..._0x5b9340['classList']]['join']('\x20');_0x5abbc3['element']['firstChild'];)_0x5abbc3['element']['firstChild']['remove']();const _0x5d1006=Array['from'](_0x31da3c['domRoots']);_0x5d1006['sort'](([,_0x23a639],[,_0x397012])=>_0x23a639['compareDocumentPosition'](_0x397012)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x2f1f17,_0x13e8fd]of _0x5d1006){const _0x14181f=_0x13e8fd['cloneNode'](!0x0);'attributeStyleMap'in _0x14181f&&_0x14181f['attributeStyleMap']['clear'](),_0x14181f['dataset']['rootName']=_0x2f1f17,_0x14181f['className']='ck-content\x20ck-pagination_enabled',_0x14181f['removeAttribute']('id'),_0x14181f['tabIndex']=-0x1,_0x5abbc3['element']['append'](_0x14181f);}const _0x4c7b7e=Array['from'](_0x5abbc3['element']['querySelectorAll']('img'));return function(_0x170c1f){return Promise['all'](_0x170c1f['map'](_0x3aff15=>Promise['race']([k(_0x3aff15),v(0x3e8)])));}(_0x4c7b7e)['then'](()=>{for(const _0x408bfb of _0x4c7b7e['filter'](_0x398a6e=>!_0x398a6e['closest']('table')))if(_0x408bfb['offsetParent']){const _0x438611=_0x1f984f['window']['getComputedStyle'](_0x408bfb),_0x1259fa=_0x1f984f['document']['createElement']('span');for(const _0xe6b6b2 of _0x438611)_0x1259fa['style']['setProperty'](_0xe6b6b2,_0x438611[_0xe6b6b2]);_0x1259fa['style']['backgroundImage']='url(\x20'+_0x408bfb['src']+'\x20)',_0x1259fa['style']['breakInside']='avoid','PICTURE'==_0x408bfb['parentElement']?.['tagName']?_0x408bfb['parentElement']['replaceWith'](_0x1259fa):_0x408bfb['replaceWith'](_0x1259fa);}return new Promise(_0xd256e6=>_0x1f984f['window']['requestAnimationFrame'](()=>_0xd256e6()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x3518c0=this['_pagesContainer']['element'];if(!_0x3518c0['ownerDocument']['body']['contains'](_0x3518c0))return;const _0x3b245d=new _0x549341(_0x3518c0)['excludeScrollbarsAndBorders'](),_0x3428f0=Math['floor'](_0x3b245d['width']+0x64),_0x2a00df=_(_0x3518c0,Math['floor'](_0x3b245d['left']-_0x3518c0['scrollLeft']),_0x3428f0,_0x3b245d['height'])['map'](_0x558026=>this['_mapPageStarterInfoToPageBreakInfo'](_0x558026))['filter'](_0x3c6c63=>!0x1!==_0x3c6c63);_0x2a00df['every'](_0x2c6d5b=>!!_0x2c6d5b)&&(this['pageBreaks']=_0x2a00df);}['_mapPageStarterInfoToPageBreakInfo'](_0x28de29){const _0x129285=this['editor']['editing']['view'],_0x8f5553=this['editor']['editing']['mapper'],_0x1825b4=_0x129285['domConverter'],_0x49c3bf=_0x28de29['path']['shift'](),_0x4c1551=this['_pagesContainer']['element']['childNodes'][_0x49c3bf]['dataset']['rootName'],_0x5893c4=_0x129285['getDomRoot'](_0x4c1551);if(!_0x5893c4)return null;const _0x4d8e78=function(_0x1a89d6,_0x3c699b){let _0x275ac7=_0x1a89d6;for(const _0x228eab of _0x3c699b['path']){if(!_0x275ac7)return null;_0x275ac7=_0x275ac7['childNodes'][_0x228eab];}return _0x275ac7;}(_0x5893c4,_0x28de29);if(!_0x4d8e78)return null;const _0x51d7d7=_0x1825b4['domPositionToView'](_0x4d8e78,_0x28de29['textOffset']||0x0);return _0x51d7d7?'manual'==_0x28de29['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x51d7d7,_0x4d8e78):'text'==_0x28de29['type']&&_0x8f5553['toModelPosition'](_0x51d7d7)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x51d7d7,_0x4d8e78,_0x28de29['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x51d7d7,_0x4d8e78,_0x28de29['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x17aa1d,_0x17db63){const _0xd07375=this['editor']['model'],_0x3ef8c0=this['editor']['editing']['mapper']['toModelElement'](_0x17aa1d['parent']),_0x5847d5=_0xd07375['createRangeOn'](_0x3ef8c0);return new b({'type':'manual','modelRange':_0x5847d5,'domNode':_0x17db63,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x26fb9d,_0x152b56,_0x55087d){const _0x44abbd=this['editor']['model'],_0x2d3be7=this['editor']['editing']['mapper'],_0x2f3888=this['editor']['editing']['view']['domConverter'];if(_0x55087d>=_0x152b56['length'])return null;const _0x5d5c23=_0x2d3be7['toModelPosition'](_0x26fb9d),_0x47e126=_0x44abbd['createRange'](_0x5d5c23),_0xdfbae7=_0x2d3be7['findMappedViewAncestor'](_0x26fb9d),_0x2985fd=_0x2f3888['mapViewToDom'](_0xdfbae7);return new b({'type':'text','modelRange':_0x47e126,'domNode':_0x152b56,'offset':P(_0x152b56,_0x55087d,_0x2985fd)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x3cace2,_0x23cdb0,_0x32bf02){const _0x4967eb=this['editor']['model'],_0x598231=this['editor']['editing'],_0x1037f0=_0x598231['mapper'],_0x5a33a7=_0x598231['view']['domConverter'],_0x370036=_0x1037f0['findMappedViewAncestor'](_0x3cace2),_0x54d780=_0x1037f0['toModelElement'](_0x370036);if(!_0x54d780||_0x54d780['is']('element','$root'))return!0x1;const _0x4b01b3=function(_0xdcad13){const _0x53c9c7=_0xdcad13['parent'],_0x34134e=_0x53c9c7['root']['document']['model'],_0x2c6ef8=_0x53c9c7['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x1f817f=null;for(const _0xe0b5c4 of _0x2c6ef8){if(_0xe0b5c4['is']('rootElement'))return _0x1f817f;if(!_0x34134e['createPositionBefore'](_0xe0b5c4)['isTouching'](_0xdcad13))return _0x1f817f;_0x1f817f=_0xe0b5c4;}}(_0x4967eb['createPositionBefore'](_0x54d780)),_0x35e723=_0x4b01b3||_0x54d780;let _0x4cf89b=_0x1037f0['toViewElement'](_0x35e723),_0x44981e=_0x4967eb['createRangeOn'](_0x35e723);const _0x306e80=_0x4967eb['createPositionBefore'](_0x35e723)['nodeBefore'];if(_0x306e80&&_0x306e80['is']('element','imageBlock')){const _0x20be5a=_0x1037f0['toViewElement'](_0x306e80),_0xe23efa=_0x5a33a7['mapViewToDom'](_0x20be5a),_0x48f926=_0x1f984f['window']['getComputedStyle'](_0xe23efa)['float'];'left'!=_0x48f926&&'right'!=_0x48f926||(_0x44981e=_0x4967eb['createRangeOn'](_0x306e80));}for(;_0x4cf89b['parent']!==_0x4cf89b['root']&&0x0===_0x4cf89b['index'];)_0x4cf89b=_0x4cf89b['parent'];const _0x1cc76e=new _0x549341(I(_0x23cdb0)?_0x23cdb0:x(_0x23cdb0)),_0x3bf727=_0x32bf02?_0x1cc76e['height']-_0x32bf02:0x0,_0xa12572=_0x5a33a7['mapViewToDom'](_0x4cf89b),_0x5e73e8=new _0x549341(_0xa12572);return new b({'type':'element','modelRange':_0x44981e,'domNode':_0xa12572,'offset':Math['round'](_0x3bf727)||_0x370036!=y(_0x3cace2)?_0x3bf727+_0x1cc76e['top']-_0x5e73e8['top']:0x0});}get['_configuredPaddings'](){const _0x153063=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x153063);}static['_findPageStarterInfos'](_0x1aa5f6,_0x19ae8c,_0x3b8625,_0x5850f2,_0x1ff0ea){return _(_0x1aa5f6,_0x19ae8c,_0x3b8625,_0x5850f2,_0x1ff0ea);}}class b{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x403925,modelRange:_0x38517c,domNode:_0x9d8309,offset:_0x2f1275}){this['type']=_0x403925,this['modelRange']=_0x38517c,this['_domNode']=_0x9d8309,this['_offset']=_0x2f1275;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x20b3d7=new _0x549341(I(this['_domNode'])?this['_domNode']:x(this['_domNode']));return'manual'==this['type']?_0x20b3d7['top']+_0x20b3d7['height']/0x2:_0x20b3d7['top']+this['_offset'];}}function P(_0x11538b,_0x3b536c,_0x358a20){const _0x33e8c4=x(_0x11538b),_0x38ef1e=function(_0x55a5a5){const _0x24d87d=_0x1f984f['document']['createRange']();return _0x24d87d['selectNodeContents'](_0x55a5a5),_0x24d87d;}(_0x358a20);let _0x2b9269;_0x2b9269=0x0==_0x3b536c?L(_0x38ef1e['startContainer'],_0x38ef1e['startOffset'],_0x11538b['parentNode'],Array['from'](_0x11538b['parentNode']['childNodes'])['indexOf'](_0x11538b)):L(_0x38ef1e['startContainer'],_0x38ef1e['startOffset'],_0x11538b,_0x3b536c);const _0x3b04f7=L(_0x11538b,_0x3b536c,_0x38ef1e['endContainer'],_0x38ef1e['endOffset']),_0x315d4a=new _0x549341(_0x2b9269)['bottom'];return(new _0x549341(_0x3b04f7)['top']+_0x315d4a)/0x2-new _0x549341(_0x33e8c4)['top'];}function y(_0x282f64){let _0x13a2ab=_0x282f64['parent'];for(;_0x13a2ab['is']('$text')||_0x13a2ab['is']('attributeElement');)_0x13a2ab=_0x13a2ab['parent'];return _0x13a2ab;}function k(_0x1c042c){return _0x1c042c['hasAttribute']('width')&&_0x1c042c['hasAttribute']('height')?Promise['resolve']():new Promise(_0x12d24a=>{function _0x211e09(){_0x1c042c['removeEventListener']('load',_0x211e09),_0x1c042c['removeEventListener']('error',_0x211e09),_0x12d24a();}_0x1c042c['complete']?_0x12d24a():(_0x1c042c['addEventListener']('load',_0x211e09),_0x1c042c['addEventListener']('error',_0x211e09));});}function v(_0x284705){return new Promise(_0x219f88=>setTimeout(_0x219f88,_0x284705));}function x(_0xc6f0fc){const _0x6bf8a6=_0x1f984f['document']['createRange']();return _0x6bf8a6['selectNode'](_0xc6f0fc),_0x6bf8a6;}function N(_0x3180e2,_0x1c3a40,_0x26a543){const _0x381ccc=_0x1f984f['document']['createRange']();return _0x381ccc['setStart'](_0x3180e2,_0x1c3a40),_0x381ccc['setEnd'](_0x3180e2,_0x26a543),_0x381ccc;}function L(_0x47f76e,_0xee7220,_0x16fbfd,_0x19e7e0){const _0x401880=_0x1f984f['document']['createRange']();return _0x401880['setStart'](_0x47f76e,_0xee7220),_0x401880['setEnd'](_0x16fbfd,_0x19e7e0),_0x401880;}function _(_0x33e215,_0x8dc8e7,_0xc6ef4f,_0x421f73,_0x1e98d2){const _0x4c12e2=[];for(const [_0x7c27fb,_0x1fb31c]of _0x33e215['childNodes']['entries']()){let _0x23edfa=[];I(_0x1fb31c)&&_0x1fb31c['offsetParent']&&['static','relative']['includes'](_0x1f984f['window']['getComputedStyle'](_0x1fb31c)['position'])?_0x23edfa=S(_0x1fb31c,_0x7c27fb,_0x8dc8e7,_0xc6ef4f,_0x421f73,_0x1e98d2):O(_0x1fb31c)&&(_0x23edfa=E(_0x1fb31c,_0x7c27fb,_0x8dc8e7,_0xc6ef4f,_0x1e98d2)),_0x23edfa['length']&&(_0x4c12e2['push'](..._0x23edfa),_0x8dc8e7+=_0x23edfa['length']*_0xc6ef4f,_0x1e98d2=!0x1);}return _0x4c12e2;}function S(_0xf286f8,_0x30382e,_0x2f2629,_0x236e1c,_0x22e571,_0x4d7aef){const _0x471ceb=[];var _0x9005b0;if((_0x9005b0=_0xf286f8['previousSibling'])&&I(_0x9005b0)&&Boolean(_0x9005b0['classList']['contains']('page-break')||_0x9005b0['closest']('.page-break'))&&(_0x471ceb['push']({'type':'manual','offset':0x0,'path':[_0x30382e-0x1]}),_0x4d7aef=!0x0),'table-row'==_0x1f984f['window']['getComputedStyle'](_0xf286f8)['display']){let _0x40dc80=0x0,_0x482189=!0x1;for(const _0x453060 of _0xf286f8['getClientRects']())_0x40dc80+=_0x453060['height'],_0x453060['left']>=_0x2f2629&&(_0x482189=!0x0);if(_0x40dc80<_0x22e571&&_0x482189)return _0x4d7aef||_0x471ceb['push']({'type':'element','offset':0x0,'path':[_0x30382e]}),_0x471ceb;}const _0x1297d2=_0xf286f8['closest']('figure.image');if(_0x1297d2&&function(_0x1aa0c7){let _0x42dc17=!0x1;const _0x5081ab=_0x1aa0c7['parentElement'],_0x46d673=_0x5081ab['dataset']['rootName'],_0x4bde3f=_0x1aa0c7['nextElementSibling'],_0x4ae85d=_0x1aa0c7['previousElementSibling'],_0x51b495=_0x4bde3f&&_0x1f984f['window']['getComputedStyle'](_0x4bde3f)['float'],_0x5d3524=_0x4bde3f&&'ck-fake-selection-container'===_0x4bde3f['className'];!_0x46d673||_0x4bde3f||_0x4ae85d||(_0x42dc17=!0x0),_0x46d673&&!_0x4ae85d&&_0x5d3524&&(_0x42dc17=!0x0),_0x46d673&&!_0x4ae85d&&'none'!==_0x51b495&&(_0x42dc17=!0x0);if(_0x42dc17)return!0x1;return!0x0;}(_0x1297d2)){const _0x4ca3cb=_0x1f984f['window']['getComputedStyle'](_0x1297d2)['float'];if('left'==_0x4ca3cb||'right'==_0x4ca3cb)return _0x471ceb;}const _0x34ab35=_(_0xf286f8,_0x2f2629,_0x236e1c,_0x22e571,_0x4d7aef);if(_0x34ab35['length']){for(const _0x3d72c5 of _0x34ab35)_0x471ceb['push']({'type':_0x3d72c5['type'],'offset':_0x3d72c5['offset'],'textOffset':_0x3d72c5['textOffset'],'path':[_0x30382e,..._0x3d72c5['path']]}),_0x2f2629+=_0x236e1c,_0x4d7aef=!0x1;return _0x471ceb;}return _0x471ceb['push'](...function(_0x3d7dc7,_0x344288,_0x18ec89,_0x290a6f,_0x158622){const _0x134105=[];if('table-cell'==_0x1f984f['window']['getComputedStyle'](_0x3d7dc7)['display'])return[];const _0x267670=[];for(const _0x1f2760 of _0x3d7dc7['getClientRects']())if(_0x1f2760['left']>=_0x18ec89){for(const _0x14be4c of _0x267670)_0x14be4c['height']+=_0x1f2760['height'];_0x267670['push']({'height':_0x1f2760['height']}),_0x18ec89+=_0x290a6f;}for(const _0x1ee4d8 of _0x267670)_0x158622||_0x134105['push']({'type':'element','offset':_0x1ee4d8['height'],'textOffset':0x0,'path':[_0x344288]}),_0x158622=!0x1;return _0x134105;}(_0xf286f8,_0x30382e,_0x2f2629,_0x236e1c,_0x4d7aef)),_0x471ceb;}function E(_0x3b6891,_0x244985,_0xe47f38,_0x40c6f8,_0x2ce3b2){const _0x264faa=x(_0x3b6891),_0x436c40=[];let _0x5c67d3=0x0;for(const _0x184377 of _0x264faa['getClientRects']())if(_0x184377['left']>=_0xe47f38){const _0x10c861=R(_0x3b6891,_0x5c67d3,_0xe47f38,_0x40c6f8);_0x2ce3b2||_0x436c40['push']({'type':'text','path':[_0x244985],'textOffset':_0x10c861}),_0x5c67d3=_0x10c861,_0xe47f38+=_0x40c6f8,_0x2ce3b2=!0x1;}return _0x436c40;}function R(_0x4b2d44,_0x79abaa,_0xfc3b4,_0x207c09){let _0x16b697=_0x79abaa,_0x37c74a=_0x4b2d44['length'];for(;_0x37c74a-_0x16b697>0x1;){const _0x1b33ca=Math['ceil']((_0x16b697+_0x37c74a)/0x2);K(N(_0x4b2d44,_0x16b697,_0x1b33ca),_0xfc3b4,_0x207c09)?_0x37c74a=_0x1b33ca:_0x16b697=_0x1b33ca;}return _0x16b697;}function K(_0x5a9b7e,_0x2b58da,_0x1ab3a5){for(const _0x2617ec of _0x5a9b7e['getClientRects']())if(_0x2617ec['left']>=_0x2b58da&&_0x2617ec['left']<_0x2b58da+_0x1ab3a5)return!0x0;return!0x1;}function I(_0x19246a){return _0x19246a['nodeType']==Node['ELEMENT_NODE'];}function O(_0x577778){return _0x577778['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xbc7100('px');class T extends _0x1b89ce{constructor(){super();const _0x4e9809=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x4e9809['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x4e9809['if']('isVisible','ck-hidden',_0x38299f=>!_0x38299f)],'style':{'left':_0x4e9809['to']('left',_0x4ce743=>B(_0x4ce743)),'top':_0x4e9809['to']('top',_0x2953e2=>B(_0x2953e2)),'width':_0x4e9809['to']('width',_0x37f8ac=>B(_0x37f8ac))}}});}}class A{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x522166){this['_viewCollection']=_0x522166['ui']['view']['body'];}['destroy'](){for(const _0xc61c0 of this['_hiddenLines'])_0xc61c0['destroy']();}['cleanLines'](){for(const _0x40fdd7 of this['_visibleLines'])_0x40fdd7['isVisible']=!0x1,this['_hiddenLines']['add'](_0x40fdd7);this['_visibleLines']['clear']();}['showLine'](_0x1e1c97,_0x37e263,_0x1587a4,_0x2bfd9a){let _0x3b8e48;this['_hiddenLines']['size']?(_0x3b8e48=_0xf42c5a(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x3b8e48)):_0x3b8e48=new T(),_0x3b8e48['set']({'pageNumber':_0x2bfd9a,'left':_0x1e1c97,'top':_0x37e263,'width':_0x1587a4}),_0x3b8e48['isVisible']=!0x0,this['_viewCollection']['has'](_0x3b8e48)||this['_viewCollection']['add'](_0x3b8e48),this['_visibleLines']['add'](_0x3b8e48);}['setViewCollection'](_0x79cf7b){for(const _0x59c424 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x59c424)&&this['_viewCollection']['remove'](_0x59c424);this['_viewCollection']=_0x79cf7b;}}const D='ck-pagination_enabled';class $ extends _0xdb54e1{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new A(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](D),this['on']('change:isEnabled',(_0xf1ba7d,_0x2d21f6,_0x2cab3a)=>{_0x2cab3a||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x2cab3a);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x1cc357){if(!this['isEnabled'])return;const _0x499093=_0x1cc357>0x1?this['_getPageBreakLineOffset'](_0x1cc357-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x499093-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x5dfeed['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x7b1502=this['editor'],_0x25f12a=this['_getAttachedDomRoot']();_0x25f12a?(this['_scrollableEditingRootDomAncestor']&&_0x7b1502['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x5e1931){let _0x2ada2c=_0x5e1931;do{_0x2ada2c=_0x2ada2c['parentElement'];const _0x54f677=_0x1f984f['window']['getComputedStyle'](_0x2ada2c)['overflowY'];if('auto'==_0x54f677||'scroll'==_0x54f677)break;}while('BODY'!=_0x2ada2c['tagName']);return _0x2ada2c;}(_0x25f12a),_0x7b1502['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x570fd7(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x7b1502['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x4f7fdc=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x4f7fdc['ui']['view']['listenTo'](_0x1f984f['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x4f7fdc['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x7eafab of this['editor']['editing']['view']['domRoots']['values']())if(_0x7eafab['ownerDocument']['body']['contains'](_0x7eafab))return _0x7eafab;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x28008d=this['_getAttachedDomRoot'](),_0xf10f06=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x28008d||0x1==_0xf10f06['length'])return void(this['pageNumber']=0x1);const _0xc33ac0=new _0x549341(_0x28008d)['excludeScrollbarsAndBorders'](),_0x3b1cdf=new _0x549341(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x4d6418=_0x3b1cdf['top']+_0x3b1cdf['height']/0x3;let _0x511500=!0x1;const _0x230a7e=[];for(let _0x34e71e=0x1;_0x34e71e<_0xf10f06['length'];_0x34e71e++){const _0x185c7c=this['_getPageBreakLineOffset'](_0x34e71e,_0x3b1cdf);if(!_0x185c7c)continue;const _0x20aa0b=_0x3b1cdf['top']+_0x185c7c-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x230a7e['push']({'pageOffsetTop':_0x20aa0b,'domRootRect':_0xc33ac0,'domScrollableRect':_0x3b1cdf,'pageNumber':_0x34e71e}),_0x20aa0b>_0x4d6418&&!_0x511500&&(this['pageNumber']=_0x34e71e,_0x511500=!0x0);}this['_renderPageBreakLines'](_0x230a7e),_0x511500||(this['pageNumber']=_0xf10f06['length']);}['_renderPageBreakLines'](_0x2ac9fe){const {scrollX:_0x5f2821,scrollY:_0x51af38}=_0x1f984f['window'];if(_0x2ac9fe['length']){for(const {domScrollableRect:_0x920d8d,pageOffsetTop:_0x43649f,domRootRect:_0x1e3f0d,pageNumber:_0x294f60}of _0x2ac9fe)_0x920d8d['top']<_0x43649f&&_0x43649f<_0x920d8d['bottom']&&this['linesRepository']['showLine'](_0x1e3f0d['left']+_0x5f2821,_0x43649f+_0x51af38,_0x1e3f0d['width'],_0x294f60+0x1);}}['_getPageBreakLineOffset'](_0x2c2d7a,_0x1cd66e=null){const _0x1de144=this['_paginationLookupPlugin']['pageBreaks'][_0x2c2d7a]['offset'];return _0x1de144?(_0x1cd66e||(_0x1cd66e=new _0x549341(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x1de144-_0x1cd66e['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x4799b0,_0xc8b87=!0x0){const _0xc39db=this['editor']['editing']['view'];_0xc39db['change'](_0x5e0080=>{for(const _0x532fe8 of _0xc39db['document']['roots'])_0xc8b87?_0x5e0080['addClass'](_0x4799b0,_0x532fe8):_0x5e0080['removeClass'](_0x4799b0,_0x532fe8);});}}function G(_0x31d0f5,_0x12c0f3,..._0x54a0ba){const t=_0x31d0f5['t'];switch(_0x12c0f3){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x54a0ba);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x12c0f3;}}class C extends _0xdb54e1{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[w,$];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x2a9448=this['editor']['plugins']['get']('Pagination'),_0xc16144=this['editor']['plugins']['get'](w),_0x199a49=this['editor']['plugins']['get']($);this['bind']('isEnabled')['to'](_0x2a9448),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x199a49),this['listenTo'](_0xc16144,'change:pageBreaks',(_0x34f33d,_0x449404,_0x15d722,_0x119486)=>{this['totalPages']=_0x15d722['length'],this['_updatePageBreakMarkers'](_0x15d722,_0x119486);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b5991=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d56e7;for(const _0x4f751b in _0x1b5991){const _0x4cedcf=_0x4f751b,_0x47a97d=_0x1b5991[_0x4cedcf];if('paginationLicenseKeyValid'==_0x47a97d||'paginationLicenseKeyInvalid'==_0x47a97d||'paginationLicenseKeyExpired'==_0x47a97d||'paginationLicenseKeyDomainLimit'==_0x47a97d||'paginationLicenseKeyNotAllowed'==_0x47a97d||'paginationLicenseKeyEvaluationLimit'==_0x47a97d||'paginationLicenseKeyUsageLimit'==_0x47a97d){delete _0x1b5991[_0x4cedcf],_0x1d56e7=_0x47a97d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x1d56e7&&_0x1b5991['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x1d56e7&&_0x1b5991['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x1d56e7&&_0x1b5991['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x1d56e7&&_0x1b5991['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x1d56e7&&_0x1b5991['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x1d56e7&&_0x1b5991['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x48ced6){if(!this['isEnabled'])return;this['editor']['plugins']['get']($)['scrollToPage'](this['_validatePageNumber'](_0x48ced6));}['moveSelectionToPage'](_0x11bd6e){if(!this['isEnabled'])return;const _0xf2168=this['editor'],_0x43cc82=this['editor']['plugins']['get'](w)['pageBreaks'][_0x11bd6e-0x1];_0x43cc82&&_0xf2168['model']['change'](_0x395de9=>{switch(_0x43cc82['type']){case'manual':{const _0x48a135=_0xf2168['model']['schema']['getNearestSelectionRange'](_0x43cc82['modelRange']['end'],'forward');_0x395de9['setSelection'](_0x48a135);break;}case'element':{const _0x31a66c=_0xf2168['model']['schema']['getNearestSelectionRange'](_0x43cc82['modelRange']['start'],'forward');_0x395de9['setSelection'](_0x31a66c);break;}case'text':{const _0x198403=_0x43cc82['modelRange']['start'];if(_0x198403['textNode']&&'\x20'===_0x198403['textNode']['data'][_0x198403['offset']]){const _0x4d94d7=_0x395de9['createPositionAt'](_0x198403['parent'],_0x198403['offset']+0x1);_0x395de9['setSelection'](_0x4d94d7);}else _0x395de9['setSelection'](_0x43cc82['modelRange']);}}_0xf2168['editing']['view']['focus']();});}['goToNextPage'](){const _0x1adde3=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x1adde3),this['scrollToPage'](_0x1adde3);}['goToPreviousPage'](){const _0x527cd7=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x527cd7),this['scrollToPage'](_0x527cd7);}['_updatePageBreakMarkers'](_0x345ee9,_0x281163){const _0x9c581=this['editor']['model'];this['isEnabled']&&_0x9c581['change'](_0x1e94e5=>{for(let _0x37ba6c=0x1;_0x37ba6c<_0x345ee9['length'];_0x37ba6c++){const _0x2096a1=_0x345ee9[_0x37ba6c]['modelRange'],_0x2ab440='pagination:'+(_0x37ba6c+0x1);_0x9c581['markers']['has'](_0x2ab440)?_0x1e94e5['updateMarker'](_0x2ab440,{'range':_0x2096a1}):_0x1e94e5['addMarker'](_0x2ab440,{'range':_0x2096a1,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x21e2b4=_0x345ee9['length'];_0x21e2b4<_0x281163['length'];_0x21e2b4++){const _0x23b72a='pagination:'+(_0x21e2b4+0x1);_0x9c581['markers']['has'](_0x23b72a)&&_0x1e94e5['removeMarker'](_0x23b72a);}});}['_setUpDataDowncastConversion'](){const _0x4a7fa1='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x3c2dd5=>{_0x3c2dd5['on']('addMarker:'+_0x4a7fa1,(_0x144f89,{markerRange:_0x36e62c,markerName:_0x40f7a1},_0x13ff45)=>{if(!_0x13ff45['options']['pagination'])return;if(!_0x13ff45['consumable']['consume'](_0x36e62c,_0x144f89['name']))return;const _0x4314f5=_0x36e62c['getContainedElement']();let _0x186887=_0x4314f5?_0x13ff45['mapper']['toViewElement'](_0x4314f5):null;if(!_0x186887){const _0x2fefce=_0x36e62c['start'];if(_0x13ff45['schema']['checkChild'](_0x2fefce,'$text')){const _0x129e61=_0x13ff45['mapper']['toViewPosition'](_0x2fefce);_0x186887=_0x13ff45['writer']['createContainerElement']('span'),_0x186887['getFillerOffset']=()=>null,_0x13ff45['writer']['insert'](_0x129e61,_0x186887);}else{const _0x690377=_0x2fefce['nodeAfter'];_0x186887=_0x13ff45['mapper']['toViewElement'](_0x690377);}}for(;_0x186887['parent']!==_0x186887['root']&&0x0===_0x186887['index'];)_0x186887=_0x186887['parent'];const _0x469bd8=_0x40f7a1['substring'](0xb);_0x186887['hasClass']('page-break')||(_0x13ff45['writer']['setStyle']('page-break-before','always',_0x186887),_0x13ff45['writer']['setAttribute']('data-pagination-page',_0x469bd8,_0x186887),_0x13ff45['mapper']['bindElementToMarker'](_0x186887,_0x40f7a1)),_0x144f89['stop']();});});}['_setupKeystrokes'](){const _0x8b19f0=this['editor'];_0x8b19f0['keystrokes']['set']('Shift+Pageup',(_0x516b1b,_0x21a5a3)=>{this['goToPreviousPage'](),_0x21a5a3();}),_0x8b19f0['keystrokes']['set']('Shift+Pagedown',(_0x38a6ab,_0x1e8d5c)=>{this['goToNextPage'](),_0x1e8d5c();}),_0x8b19f0['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':G(_0x8b19f0['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':G(_0x8b19f0['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':G(_0x8b19f0['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x482247){return _0x482247<0x1&&(_0x482247=0x1),_0x482247>this['totalPages']&&(_0x482247=this['totalPages']),_0x482247;}}class U extends _0x1b89ce{['pageNumberView'];constructor(_0x463443){super(_0x463443);const _0x104fe7=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x4d67b8(_0x463443,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x10b866=>G(_0x463443,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x10b866)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x353155=>!_0x353155),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x104fe7['if']('isEnabled','ck-disabled',_0x40b60b=>!_0x40b60b)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x104fe7['to']('totalPages')}]}]});}['render'](){super['render']();const _0x189bac=this['pageNumberView']['element'],_0x1ed078=_0x151d1e=>{this['pageNumberView']['element']['value']=String(_0x151d1e);};_0x1ed078(this['pageNumber']),this['on']('change:pageNumber',(_0x447aba,_0x201bf0,_0x1e104d)=>{_0x1ed078(_0x1e104d);}),this['listenTo'](_0x189bac,'keydown',(_0x2cd82a,_0x51bf1f)=>{if('ArrowUp'===_0x51bf1f['key']||'ArrowDown'===_0x51bf1f['key'])return void _0x51bf1f['stopPropagation']();if(_0x51bf1f['keyCode']!==_0x570225['enter'])return;_0x51bf1f['preventDefault']();const _0x4a8e2a=_0x189bac['valueAsNumber'];Number['isNaN'](_0x4a8e2a)?_0x189bac['value']=String(this['pageNumber']):(_0x189bac['checkValidity']()?this['pageNumber']=_0x4a8e2a:_0x4a8e2a>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x189bac['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x189bac['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x189bac,'blur',()=>{_0x189bac['value']=String(this['pageNumber']);}),this['listenTo'](_0x189bac,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class M extends _0xdb54e1{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4f4580=this['editor'],_0x354491=_0x4f4580['plugins']['get']('PaginationEditing');_0x4f4580['ui']['componentFactory']['add']('pageNavigation',_0x63fbc6=>{const _0x59723d=new U(_0x63fbc6);return _0x59723d['bind']('pageNumber')['to'](_0x354491),_0x59723d['bind']('totalPages')['to'](_0x354491),_0x59723d['bind']('isEnabled')['to'](_0x354491),_0x59723d['on']('navigation',(_0x2d1035,_0x923340)=>{_0x354491['moveSelectionToPage'](_0x923340),_0x354491['scrollToPage'](_0x923340);}),_0x59723d;}),_0x4f4580['ui']['componentFactory']['add']('nextPage',_0x5d85ef=>{const _0x3358f2=new _0x5d4a55(_0x5d85ef);return _0x3358f2['isEnabled']=!0x0,_0x3358f2['label']=G(_0x4f4580['locale'],'Go\x20to\x20next\x20page'),_0x3358f2['icon']=_0x500847,_0x3358f2['tooltip']=!0x0,_0x3358f2['keystroke']='Shift+PageDown',_0x3358f2['bind']('isEnabled')['to'](_0x354491),this['listenTo'](_0x3358f2,'execute',()=>{_0x354491['goToNextPage']();}),_0x3358f2;}),_0x4f4580['ui']['componentFactory']['add']('previousPage',_0x4818b0=>{const _0x53e879=new _0x5d4a55(_0x4818b0);return _0x53e879['isEnabled']=!0x0,_0x53e879['label']=G(_0x4f4580['locale'],'Go\x20to\x20previous\x20page'),_0x53e879['icon']=_0x3b15e5,_0x53e879['tooltip']=!0x0,_0x53e879['keystroke']='Shift+PageUp',_0x53e879['bind']('isEnabled')['to'](_0x354491),this['listenTo'](_0x53e879,'execute',()=>{_0x354491['goToPreviousPage']();}),_0x53e879;});}}class j extends _0xdb54e1{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C,M];}constructor(_0x2b39b7){super(_0x2b39b7),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x1e352c=this['editor']['plugins']['get'](C);this['bind']('pageNumber')['to'](_0x1e352c),this['bind']('totalPages')['to'](_0x1e352c),_0x5dfeed['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x432fbc){this['editor']['plugins']['get'](C)['scrollToPage'](_0x432fbc);}}export{j as Pagination,$ as PaginationRenderer};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-pagination",
|
|
3
|
-
"version": "48.0.0-alpha.
|
|
3
|
+
"version": "48.0.0-alpha.2",
|
|
4
4
|
"description": "Pagination feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"./package.json": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ckeditor/ckeditor5-core": "48.0.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.0.0-alpha.2",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.2",
|
|
26
|
+
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.2",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.2",
|
|
28
|
+
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.2",
|
|
29
29
|
"es-toolkit": "1.45.1"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|