@ckeditor/ckeditor5-pagination 48.2.0-alpha.3 → 48.2.0-alpha.4
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 _0x44fdfd}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x41a91,InputNumberView as _0x1bc61a,ButtonView as _0x2a23ed}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x44f15e,global as _0x552ed4,Rect as _0x24b953,uid as _0x44a321,toUnit as _0x358341,first as _0x5f4031,env as _0x3b37a0,ResizeObserver as _0x24af82,keyCodes as _0x59b412}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x1c92a6}from'es-toolkit/compat';import{IconArrowDown as _0x1b811f,IconArrowUp as _0x4453dc}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x44fdfd{['_recalculatePageBreaksDebounced']=_0x1c92a6(()=>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 _0x44f15e('pagination-config-not-found',this['editor']['config']);const _0xf75133=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0xf75133),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x1ad301,_0x3d36b1,_0x40e23e)=>{_0x40e23e&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x283ffc){const _0x2ab99c=_0x398689([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]),_0x3c07c1=0xc82cb1e,_0x36776d=0xc854096^_0x3c07c1,_0x5af91a=window[_0x398689([0x44,0x61,0x74,0x65])][_0x398689([0x6e,0x6f,0x77])](),_0x2c458f=_0x283ffc[_0x398689([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6b17c7=new window[(_0x398689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57d1dd=>{_0x2c458f[_0x398689([0x6f,0x6e,0x63,0x65])](_0x398689([0x72,0x65,0x61,0x64,0x79]),_0x57d1dd);}),_0x248d35={[_0x398689([0x6b,0x74,0x79])]:_0x398689([0x45,0x43]),[_0x398689([0x75,0x73,0x65])]:_0x398689([0x73,0x69,0x67]),[_0x398689([0x63,0x72,0x76])]:_0x398689([0x50,0x2d,0x32,0x35,0x36]),[_0x398689([0x78])]:_0x398689([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]),[_0x398689([0x79])]:_0x398689([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]),[_0x398689([0x61,0x6c,0x67])]:_0x398689([0x45,0x53,0x32,0x35,0x36])},_0x2a1d2c=_0x2c458f[_0x398689([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x398689([0x67,0x65,0x74])](_0x398689([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4c0177(){let _0x12ccb3,_0x2e2504=null,_0x3cf97f=null;try{if(_0x2a1d2c==_0x398689([0x47,0x50,0x4c]))return _0x398689([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12ccb3=_0x1c073a(),!_0x12ccb3)return _0x398689([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12ccb3[_0x398689([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3cf97f=_0x3aebf8(_0x12ccb3[_0x398689([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12ccb3[_0x398689([0x6a,0x74,0x69])])),await _0x12ed47()?_0x2788fb()?_0x13c0a7()?_0x398689([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d4b5c()?(_0x12ccb3[_0x398689([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x398689([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e2504=_0x140a07(_0x398689([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26a6fe()):_0x398689([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x398689([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x398689([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x398689([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13c0a7(){const _0x3cc4ec=[_0x398689([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x398689([0x74,0x72,0x69,0x61,0x6c])][_0x398689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12ccb3[_0x398689([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5af91a/0x3e8:0xe10*_0x36776d;return _0x12ccb3[_0x398689([0x65,0x78,0x70])]<_0x3cc4ec;}function _0x2788fb(){const _0x4591cc=_0x12ccb3[_0x398689([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4591cc&&(!!_0x4591cc[_0x398689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x398689([0x2a]))||!!_0x4591cc[_0x398689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x398689([0x50,0x41,0x47])));}function _0x3d4b5c(){const _0x58c71b=_0x12ccb3[_0x398689([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58c71b||0x0==_0x58c71b[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xddfadf}=new URL(window[_0x398689([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58c71b[_0x398689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xddfadf))return!0x0;const _0x1fc328=_0xddfadf[_0x398689([0x73,0x70,0x6c,0x69,0x74])](_0x398689([0x2e]));return _0x58c71b[_0x398689([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f90a3=>_0x1f90a3[_0x398689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x398689([0x2a])))[_0x398689([0x6d,0x61,0x70])](_0x4783ba=>_0x4783ba[_0x398689([0x73,0x70,0x6c,0x69,0x74])](_0x398689([0x2e])))[_0x398689([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x65f83=>_0x65f83[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1fc328[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x398689([0x6d,0x61,0x70])](_0x5081af=>Array(_0x1fc328[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5081af[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x398689([0x66,0x69,0x6c,0x6c])](_0x5081af[0x0]===_0x398689([0x2a])?_0x398689([0x2a]):'')[_0x398689([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5081af))[_0x398689([0x73,0x6f,0x6d,0x65])](_0x460116=>_0x1fc328[_0x398689([0x65,0x76,0x65,0x72,0x79])]((_0x2bdafd,_0xdfea3b)=>_0x460116[_0xdfea3b]===_0x2bdafd||_0x460116[_0xdfea3b]===_0x398689([0x2a])));}function _0x26a6fe(){return _0x2e2504&&_0x3cf97f?new window[(_0x398689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19f6b1,_0xa269f8)=>{_0x2e2504[_0x398689([0x74,0x68,0x65,0x6e])](_0x19f6b1,_0xa269f8),_0x3cf97f[_0x398689([0x74,0x68,0x65,0x6e])](_0x1d9f99=>{_0x1d9f99!=_0x398689([0x56,0x61,0x6c,0x69,0x64])&&_0x19f6b1(_0x1d9f99);},_0xa269f8);}):_0x2e2504||_0x3cf97f||_0x398689([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3aebf8(_0x33b560,_0x34d2f6){return new window[(_0x398689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5984e2=>{if(_0x592564())return _0x5984e2(_0x398689([0x56,0x61,0x6c,0x69,0x64]));_0xae88eb(),_0x2c458f[_0x398689([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x398689([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf73bfd=!0x1;const _0x4c4b2c=_0x44a321();function _0x4b6de7(_0x40df30){return!!_0x40df30&&(typeof _0x40df30===_0x398689([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40df30===_0x398689([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40df30[_0x398689([0x74,0x68,0x65,0x6e])]===_0x398689([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40df30[_0x398689([0x63,0x61,0x74,0x63,0x68])]===_0x398689([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x119599(_0x1dadf8){_0x1c431d(_0x1dadf8)[_0x398689([0x74,0x68,0x65,0x6e])](_0x63afbe=>{if(!_0x63afbe||_0x63afbe[_0x398689([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x398689([0x6f,0x6b]))return _0x398689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b820b(_0x3002d0(_0x4c4b2c+_0x34d2f6))!=_0x63afbe[_0x398689([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x398689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x398689([0x56,0x61,0x6c,0x69,0x64]);})[_0x398689([0x74,0x68,0x65,0x6e])](_0x306ce4=>(_0x15665a(),_0x306ce4),()=>{const _0x3b4db8=_0x262c52();return null==_0x3b4db8?(_0x15665a(),_0x398689([0x56,0x61,0x6c,0x69,0x64])):_0x398689(_0x5af91a-_0x3b4db8>(0x288e4f1e^_0x3c07c1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x398689([0x74,0x68,0x65,0x6e])](_0x5984e2)[_0x398689([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5984e2(_0x398689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ce025=0xcb4259e^_0x3c07c1;function _0x15665a(){const _0x1dc342=_0x398689([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b820b(_0x3002d0(_0x33b560)),_0x373d27=_0x5aed4b(_0x1b820b(window[_0x398689([0x4d,0x61,0x74,0x68])][_0x398689([0x63,0x65,0x69,0x6c])](_0x5af91a/_0x2ce025)));window[_0x398689([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x398689([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dc342,_0x373d27);}function _0x262c52(){const _0x4374be=_0x398689([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b820b(_0x3002d0(_0x33b560)),_0x25269c=window[_0x398689([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x398689([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4374be);return _0x25269c?window[_0x398689([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5aed4b(_0x25269c),0x10)*_0x2ce025:null;}function _0x1c431d(_0xb06952){return new window[(_0x398689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1184ef,_0x33a06f)=>{_0xb06952[_0x398689([0x74,0x68,0x65,0x6e])](_0x1184ef,_0x33a06f),window[_0x398689([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33a06f,0xc831fde^_0x3c07c1);});}}_0x2c458f[_0x398689([0x6f,0x6e])](_0x398689([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1adf7c,_0x159488)=>{if(_0x159488[0x0]!=_0x33b560)return _0x5984e2(_0x398689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x159488[0x1]={..._0x159488[0x1],[_0x398689([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c4b2c};},{[_0x398689([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x398689([0x68,0x69,0x67,0x68])}),_0x2c458f[_0x398689([0x6f,0x6e])](_0x398689([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4843c5=>{_0x4b6de7(_0x4843c5[_0x398689([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf73bfd=!0x0,_0x119599(_0x4843c5[_0x398689([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x398689([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x398689([0x6c,0x6f,0x77])}),_0x6b17c7[_0x398689([0x74,0x68,0x65,0x6e])](()=>{_0xf73bfd||_0x5984e2(_0x398689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x592564(){return _0x2c458f[_0x398689([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x398689([0x76,0x69,0x65,0x77])][_0x398689([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x398689([0x61,0x75,0x74,0x6f]);}function _0xae88eb(){_0x2c458f[_0x398689([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x398689([0x76,0x69,0x65,0x77])][_0x398689([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x398689([0x61,0x75,0x74,0x6f]);}}function _0x140a07(_0x3b2782){const _0x33a432=[new window[(_0x398689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x388c88=>setTimeout(_0x388c88,0xc8bf5d2^_0x3c07c1)),_0x6b17c7[_0x398689([0x74,0x68,0x65,0x6e])](()=>new window[(_0x398689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e4dee=>{let _0x5bb02a=0x0;_0x2c458f[_0x398689([0x6d,0x6f,0x64,0x65,0x6c])][_0x398689([0x6f,0x6e])](_0x398689([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x108f43,_0x471ea6)=>{_0x471ea6[0x0][_0x398689([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5bb02a++,_0x5bb02a==(0xc82cef6^_0x3c07c1)&&(_0x5e4dee(),_0x108f43[_0x398689([0x6f,0x66,0x66])]());});}))];return window[_0x398689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x398689([0x72,0x61,0x63,0x65])](_0x33a432)[_0x398689([0x74,0x68,0x65,0x6e])](()=>_0x3b2782);}async function _0x3cdcc1(){await _0x6b17c7,_0x2c458f[_0x398689([0x6d,0x6f,0x64,0x65,0x6c])][_0x398689([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x450c3e,_0x2c458f[_0x398689([0x6d,0x6f,0x64,0x65,0x6c])][_0x398689([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x450c3e,_0x2c458f[_0x398689([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x398689([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1df052(_0x3e8730){const _0x49b705=_0x416bd2();_0x2c458f[_0x49b705]=_0x398689([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e8730,_0x3e8730!=_0x398689([0x56,0x61,0x6c,0x69,0x64])&&_0x3cdcc1();}function _0x416bd2(){const _0x4fe349=window[_0x398689([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x398689([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x398689([0x6e,0x6f,0x77])]())[_0x398689([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x398689([0x2e]),'');let _0x2ea9ab=_0x398689([0x49]);for(let _0x151b13=0x0;_0x151b13<_0x4fe349[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x151b13+=0x2){let _0x182d38=window[_0x398689([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fe349[_0x398689([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x151b13,_0x151b13+0x2));_0x182d38>=_0x2ab99c[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x182d38-=_0x2ab99c[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ea9ab+=_0x2ab99c[_0x182d38];}return _0x2ea9ab;}function _0x1c073a(){const _0x5aeb47=_0x2a1d2c[_0x398689([0x73,0x70,0x6c,0x69,0x74])](_0x398689([0x2e]));if(0x3!=_0x5aeb47[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e7481(_0x5aeb47[0x1]);function _0x4e7481(_0x2f9622){const _0x7637cb=_0x3fa372(_0x2f9622);return _0x7637cb&&_0x212a7a()?_0x7637cb:null;function _0x212a7a(){const _0x5fd950=_0x7637cb[_0x398689([0x6a,0x74,0x69])],_0x543c67=window[_0x398689([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5fd950[_0x398689([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5fd950[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2294fb={..._0x7637cb,[_0x398689([0x6a,0x74,0x69])]:_0x5fd950[_0x398689([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5fd950[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2294fb[_0x398689([0x76,0x63])],_0x3002d0(_0x2294fb)==_0x543c67;}}}async function _0x12ed47(){let _0x2b81df=!0x0;try{const _0x4080a0=_0x2a1d2c[_0x398689([0x73,0x70,0x6c,0x69,0x74])](_0x398689([0x2e])),[_0x4c75b9,_0x47adc6,_0x3dc630]=_0x4080a0;return _0x3d38d2(_0x4c75b9),await _0x426656(_0x4c75b9,_0x47adc6,_0x3dc630),_0x2b81df;}catch{return!0x1;}function _0x3d38d2(_0x3cc017){const _0x5cbc8c=_0x3fa372(_0x3cc017);_0x5cbc8c&&_0x5cbc8c[_0x398689([0x61,0x6c,0x67])]==_0x398689([0x45,0x53,0x32,0x35,0x36])||(_0x2b81df=!0x1);}async function _0x426656(_0x4e7ce8,_0x144c4c,_0x4da914){const _0x38b435=window[_0x398689([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x398689([0x66,0x72,0x6f,0x6d])](_0x5b7499(_0x4da914),_0x15e9ed=>_0x15e9ed[_0x398689([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x55ec24=new window[(_0x398689([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x398689([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e7ce8+_0x398689([0x2e])+_0x144c4c),_0x4f0060=window[_0x398689([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x398689([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f0060)return;const _0x3a91ae=await _0x4f0060[_0x398689([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x398689([0x6a,0x77,0x6b]),_0x248d35,{[_0x398689([0x6e,0x61,0x6d,0x65])]:_0x398689([0x45,0x43,0x44,0x53,0x41]),[_0x398689([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x398689([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x398689([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f0060[_0x398689([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x398689([0x6e,0x61,0x6d,0x65])]:_0x398689([0x45,0x43,0x44,0x53,0x41]),[_0x398689([0x68,0x61,0x73,0x68])]:{[_0x398689([0x6e,0x61,0x6d,0x65])]:_0x398689([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a91ae,_0x38b435,_0x55ec24)||(_0x2b81df=!0x1);}}function _0x3fa372(_0x4f4b2b){return _0x4f4b2b[_0x398689([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x398689([0x65,0x79]))?JSON[_0x398689([0x70,0x61,0x72,0x73,0x65])](_0x5b7499(_0x4f4b2b)):null;}function _0x5b7499(_0x175d95){return window[_0x398689([0x61,0x74,0x6f,0x62])](_0x175d95[_0x398689([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x398689([0x2b]))[_0x398689([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x398689([0x2f])));}function _0x3002d0(_0x536fbb){let _0x194afa=0x1505;function _0x46009f(_0x171818){for(let _0x1900c9=0x0;_0x1900c9<_0x171818[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1900c9++){const _0x8250f4=_0x171818[_0x398689([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1900c9);_0x194afa=(_0x194afa<<0x5)+_0x194afa+_0x8250f4,_0x194afa&=_0x194afa;}}function _0x3e9d67(_0x44fca2){Array[_0x398689([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x44fca2)?_0x44fca2[_0x398689([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e9d67):_0x44fca2&&typeof _0x44fca2==_0x398689([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x398689([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x44fca2)[_0x398689([0x73,0x6f,0x72,0x74])]()[_0x398689([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x328429,_0x3f6c18])=>{_0x46009f(_0x328429),_0x3e9d67(_0x3f6c18);}):_0x46009f(window[_0x398689([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x44fca2));}return _0x3e9d67(_0x536fbb),_0x194afa>>>0x0;}function _0x1b820b(_0x8b781c){return _0x8b781c[_0x398689([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x398689([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x398689([0x30]));}function _0x5aed4b(_0x577860){return _0x577860[_0x398689([0x73,0x70,0x6c,0x69,0x74])]('')[_0x398689([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x398689([0x6a,0x6f,0x69,0x6e])]('');}function _0x450c3e(){}function _0x398689(_0x51d0b7){return _0x51d0b7['map'](_0x1e444b=>String['fromCharCode'](_0x1e444b))['join']('');}_0x1df052(await _0x4c0177());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x8c39fd=this['editor'],_0x5555da=_0x8c39fd['editing']['view'],_0x3f98fb=this['_getAttachedDomRoot']();if(!_0x3f98fb||0x0===_0x3f98fb['childElementCount'])return void _0x8c39fd['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x2de843,pageHeight:_0x1b2b96}=_0x8c39fd['config']['get']('pagination'),{top:_0x2f0ade,left:_0x2e88d4,bottom:_0x18e8c6,right:_0x44287d}=this['_configuredPaddings'];this['_pagesContainer']=new _0x41a91(_0x8c39fd['locale']);const _0x29ef95=this['_pagesContainer'];_0x29ef95['set']('class',''),_0x29ef95['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x2de843,'width':_0x2de843,'height':'calc(\x20'+_0x1b2b96+'\x20-\x20'+_0x2f0ade+'\x20-\x20'+_0x18e8c6+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x44287d+'\x200\x20'+_0x2e88d4,'columnGap':'calc('+_0x2e88d4+'\x20+\x20'+_0x44287d+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x29ef95['bindTemplate']['to']('class')}}),_0x29ef95['render'](),_0x3f98fb['parentNode']['insertBefore'](_0x29ef95['element'],_0x3f98fb['nextSibling']),this['listenTo'](_0x5555da,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x3dcf6d of this['editor']['editing']['view']['domRoots']['values']())if(_0x3dcf6d['ownerDocument']['body']['contains'](_0x3dcf6d))return _0x3dcf6d;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x3e90be=this['editor']['editing']['view'],_0x2d530d=this['_pagesContainer'],_0xdc5f8=this['_getAttachedDomRoot']();if(!_0xdc5f8)return Promise['resolve']();for(_0x2d530d['class']=['ck-reset','ck-pagination-view',..._0xdc5f8['classList']]['join']('\x20');_0x2d530d['element']['firstChild'];)_0x2d530d['element']['firstChild']['remove']();const _0x171463=Array['from'](_0x3e90be['domRoots']);_0x171463['sort'](([,_0x2f8c06],[,_0x208a9a])=>_0x2f8c06['compareDocumentPosition'](_0x208a9a)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x2c45db,_0x501a96]of _0x171463){const _0x12a47d=_0x501a96['cloneNode'](!0x0);'attributeStyleMap'in _0x12a47d&&_0x12a47d['attributeStyleMap']['clear'](),_0x12a47d['dataset']['rootName']=_0x2c45db,_0x12a47d['className']='ck-content\x20ck-pagination_enabled',_0x12a47d['removeAttribute']('id'),_0x12a47d['tabIndex']=-0x1,_0x2d530d['element']['append'](_0x12a47d);}const _0x18e171=Array['from'](_0x2d530d['element']['querySelectorAll']('img'));return function(_0xa9c417){return Promise['all'](_0xa9c417['map'](_0x122e60=>Promise['race']([b(_0x122e60),k(0x3e8)])));}(_0x18e171)['then'](()=>{for(const _0x17c25c of _0x18e171['filter'](_0x47c874=>!_0x47c874['closest']('table')))if(_0x17c25c['offsetParent']){const _0x400d74=_0x552ed4['window']['getComputedStyle'](_0x17c25c),_0x2fa6a1=_0x552ed4['document']['createElement']('span');for(const _0x4e8fcb of _0x400d74)_0x2fa6a1['style']['setProperty'](_0x4e8fcb,_0x400d74[_0x4e8fcb]);_0x2fa6a1['style']['backgroundImage']='url(\x20'+_0x17c25c['src']+'\x20)',_0x2fa6a1['style']['breakInside']='avoid','PICTURE'==_0x17c25c['parentElement']?.['tagName']?_0x17c25c['parentElement']['replaceWith'](_0x2fa6a1):_0x17c25c['replaceWith'](_0x2fa6a1);}return new Promise(_0x57e03e=>_0x552ed4['window']['requestAnimationFrame'](()=>_0x57e03e()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x18ae20=this['_pagesContainer']['element'];if(!_0x18ae20['ownerDocument']['body']['contains'](_0x18ae20))return;const _0x3b9d94=new _0x24b953(_0x18ae20)['excludeScrollbarsAndBorders'](),_0x4792fd=Math['floor'](_0x3b9d94['width']+0x64),_0x153c51=L(_0x18ae20,Math['floor'](_0x3b9d94['left']-_0x18ae20['scrollLeft']),_0x4792fd,_0x3b9d94['height'])['map'](_0x5cbaa0=>this['_mapPageStarterInfoToPageBreakInfo'](_0x5cbaa0))['filter'](_0x20fe3f=>!0x1!==_0x20fe3f);_0x153c51['every'](_0xb29e46=>!!_0xb29e46)&&(this['pageBreaks']=_0x153c51);}['_mapPageStarterInfoToPageBreakInfo'](_0x41d2fa){const _0x5a2b38=this['editor']['editing']['view'],_0x52a536=this['editor']['editing']['mapper'],_0x4bb542=_0x5a2b38['domConverter'],_0x3692d1=_0x41d2fa['path']['shift'](),_0x506ce5=this['_pagesContainer']['element']['childNodes'][_0x3692d1]['dataset']['rootName'],_0x587cf1=_0x5a2b38['getDomRoot'](_0x506ce5);if(!_0x587cf1)return null;const _0x116e05=function(_0x10dfe5,_0x35d9f9){let _0x243931=_0x10dfe5;for(const _0x253990 of _0x35d9f9['path']){if(!_0x243931)return null;_0x243931=_0x243931['childNodes'][_0x253990];}return _0x243931;}(_0x587cf1,_0x41d2fa);if(!_0x116e05)return null;const _0x8418b0=_0x4bb542['domPositionToView'](_0x116e05,_0x41d2fa['textOffset']||0x0);return _0x8418b0?'manual'==_0x41d2fa['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x8418b0,_0x116e05):'text'==_0x41d2fa['type']&&_0x52a536['toModelPosition'](_0x8418b0)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x8418b0,_0x116e05,_0x41d2fa['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x8418b0,_0x116e05,_0x41d2fa['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x1573f6,_0x5b96bd){const _0x3f1e84=this['editor']['model'],_0x2a6cff=this['editor']['editing']['mapper']['toModelElement'](_0x1573f6['parent']),_0x46ca95=_0x3f1e84['createRangeOn'](_0x2a6cff);return new PageBreakInfo({'type':'manual','modelRange':_0x46ca95,'domNode':_0x5b96bd,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x453cbb,_0x34ddd6,_0x46c3c3){const _0x1821ba=this['editor']['model'],_0x34c4ea=this['editor']['editing']['mapper'],_0x4583ba=this['editor']['editing']['view']['domConverter'];if(_0x46c3c3>=_0x34ddd6['length'])return null;const _0x88422c=_0x34c4ea['toModelPosition'](_0x453cbb),_0x18abfe=_0x1821ba['createRange'](_0x88422c),_0x1ba9b2=_0x34c4ea['findMappedViewAncestor'](_0x453cbb),_0x23c0a8=_0x4583ba['mapViewToDom'](_0x1ba9b2);return new PageBreakInfo({'type':'text','modelRange':_0x18abfe,'domNode':_0x34ddd6,'offset':w(_0x34ddd6,_0x46c3c3,_0x23c0a8)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x33a7a0,_0x1956eb,_0x531841){const _0x613663=this['editor']['model'],_0x461c3c=this['editor']['editing'],_0x20a8e5=_0x461c3c['mapper'],_0x28a460=_0x461c3c['view']['domConverter'],_0x1b602f=_0x20a8e5['findMappedViewAncestor'](_0x33a7a0),_0x59acc6=_0x20a8e5['toModelElement'](_0x1b602f);if(!_0x59acc6||_0x59acc6['is']('rootElement'))return!0x1;const _0x5c60ae=function(_0x51ef66){const _0x48eb0b=_0x51ef66['parent'],_0x140328=_0x48eb0b['root']['document']['model'],_0x44a1b1=_0x48eb0b['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x4589bd=null;for(const _0x89d02c of _0x44a1b1){if(_0x89d02c['is']('rootElement'))return _0x4589bd;if(!_0x140328['createPositionBefore'](_0x89d02c)['isTouching'](_0x51ef66))return _0x4589bd;_0x4589bd=_0x89d02c;}}(_0x613663['createPositionBefore'](_0x59acc6)),_0x57f7da=_0x5c60ae||_0x59acc6;let _0x5bd633=_0x20a8e5['toViewElement'](_0x57f7da),_0x4a1d11=_0x613663['createRangeOn'](_0x57f7da);const _0x26deaa=_0x613663['createPositionBefore'](_0x57f7da)['nodeBefore'];if(_0x26deaa&&_0x26deaa['is']('element','imageBlock')){const _0x232102=_0x20a8e5['toViewElement'](_0x26deaa),_0x2134c6=_0x28a460['mapViewToDom'](_0x232102),_0x37e9aa=_0x552ed4['window']['getComputedStyle'](_0x2134c6)['float'];'left'!=_0x37e9aa&&'right'!=_0x37e9aa||(_0x4a1d11=_0x613663['createRangeOn'](_0x26deaa));}for(;_0x5bd633['parent']!==_0x5bd633['root']&&0x0===_0x5bd633['index'];)_0x5bd633=_0x5bd633['parent'];const _0x53b028=new _0x24b953(S(_0x1956eb)?_0x1956eb:y(_0x1956eb)),_0x188cb8=_0x531841?_0x53b028['height']-_0x531841:0x0,_0x2025fd=_0x28a460['mapViewToDom'](_0x5bd633),_0x313532=new _0x24b953(_0x2025fd);return new PageBreakInfo({'type':'element','modelRange':_0x4a1d11,'domNode':_0x2025fd,'offset':Math['round'](_0x188cb8)||_0x1b602f!=P(_0x33a7a0)?_0x188cb8+_0x53b028['top']-_0x313532['top']:0x0});}get['_configuredPaddings'](){const _0x2e417d=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x2e417d);}static['_findPageStarterInfos'](_0x3fd242,_0x4a3a2e,_0xe32f47,_0x36fd6e,_0x9c36f6){return L(_0x3fd242,_0x4a3a2e,_0xe32f47,_0x36fd6e,_0x9c36f6);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x475880,modelRange:_0x5bad7a,domNode:_0x4bca3e,offset:_0x2e2f4e}){this['type']=_0x475880,this['modelRange']=_0x5bad7a,this['_domNode']=_0x4bca3e,this['_offset']=_0x2e2f4e;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x4cfdb8=new _0x24b953(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x4cfdb8['top']+_0x4cfdb8['height']/0x2:_0x4cfdb8['top']+this['_offset'];}}function w(_0x2d8013,_0xbf98be,_0x2e3391){const _0x14899b=y(_0x2d8013),_0x31d48f=function(_0x7894c3){const _0x49d533=_0x552ed4['document']['createRange']();return _0x49d533['selectNodeContents'](_0x7894c3),_0x49d533;}(_0x2e3391);let _0x247b10;_0x247b10=0x0==_0xbf98be?x(_0x31d48f['startContainer'],_0x31d48f['startOffset'],_0x2d8013['parentNode'],Array['from'](_0x2d8013['parentNode']['childNodes'])['indexOf'](_0x2d8013)):x(_0x31d48f['startContainer'],_0x31d48f['startOffset'],_0x2d8013,_0xbf98be);const _0x1e8a66=x(_0x2d8013,_0xbf98be,_0x31d48f['endContainer'],_0x31d48f['endOffset']),_0x15f030=new _0x24b953(_0x247b10)['bottom'];return(new _0x24b953(_0x1e8a66)['top']+_0x15f030)/0x2-new _0x24b953(_0x14899b)['top'];}function P(_0x15e9a5){let _0x4a52c5=_0x15e9a5['parent'];for(;_0x4a52c5['is']('$text')||_0x4a52c5['is']('attributeElement');)_0x4a52c5=_0x4a52c5['parent'];return _0x4a52c5;}function b(_0x19f912){return _0x19f912['hasAttribute']('width')&&_0x19f912['hasAttribute']('height')?Promise['resolve']():new Promise(_0x26308f=>{function _0x5ae194(){_0x19f912['removeEventListener']('load',_0x5ae194),_0x19f912['removeEventListener']('error',_0x5ae194),_0x26308f();}_0x19f912['complete']?_0x26308f():(_0x19f912['addEventListener']('load',_0x5ae194),_0x19f912['addEventListener']('error',_0x5ae194));});}function k(_0x172cdb){return new Promise(_0x2eb9f1=>setTimeout(_0x2eb9f1,_0x172cdb));}function y(_0x1c13cf){const _0x3699c3=_0x552ed4['document']['createRange']();return _0x3699c3['selectNode'](_0x1c13cf),_0x3699c3;}function v(_0x11b57a,_0x4e9e7c,_0x5205c9){const _0xa42b07=_0x552ed4['document']['createRange']();return _0xa42b07['setStart'](_0x11b57a,_0x4e9e7c),_0xa42b07['setEnd'](_0x11b57a,_0x5205c9),_0xa42b07;}function x(_0x253237,_0x48bd03,_0x306a5a,_0x3b661f){const _0x1a5a4a=_0x552ed4['document']['createRange']();return _0x1a5a4a['setStart'](_0x253237,_0x48bd03),_0x1a5a4a['setEnd'](_0x306a5a,_0x3b661f),_0x1a5a4a;}function L(_0x1e0efe,_0x2addde,_0x1809d4,_0x45fda1,_0x330174){const _0x3417b7=[];for(const [_0x1091ae,_0x221d46]of _0x1e0efe['childNodes']['entries']()){let _0x5748f6=[];S(_0x221d46)&&_0x221d46['offsetParent']&&['static','relative']['includes'](_0x552ed4['window']['getComputedStyle'](_0x221d46)['position'])?_0x5748f6=N(_0x221d46,_0x1091ae,_0x2addde,_0x1809d4,_0x45fda1,_0x330174):I(_0x221d46)&&(_0x5748f6=_(_0x221d46,_0x1091ae,_0x2addde,_0x1809d4,_0x330174)),_0x5748f6['length']&&(_0x3417b7['push'](..._0x5748f6),_0x2addde+=_0x5748f6['length']*_0x1809d4,_0x330174=!0x1);}return _0x3417b7;}function N(_0x345c2a,_0x9be302,_0x4f50f3,_0x305c28,_0xdf7dba,_0x59ca61){const _0x386ca6=[];var _0x5a2c7b;if((_0x5a2c7b=_0x345c2a['previousSibling'])&&S(_0x5a2c7b)&&Boolean(_0x5a2c7b['classList']['contains']('page-break')||_0x5a2c7b['closest']('.page-break'))&&(_0x386ca6['push']({'type':'manual','offset':0x0,'path':[_0x9be302-0x1]}),_0x59ca61=!0x0),'table-row'==_0x552ed4['window']['getComputedStyle'](_0x345c2a)['display']){let _0x1fcabc=0x0,_0x30370c=!0x1;for(const _0x2f3fdc of _0x345c2a['getClientRects']())_0x1fcabc+=_0x2f3fdc['height'],_0x2f3fdc['left']>=_0x4f50f3&&(_0x30370c=!0x0);if(_0x1fcabc<_0xdf7dba&&_0x30370c)return _0x59ca61||_0x386ca6['push']({'type':'element','offset':0x0,'path':[_0x9be302]}),_0x386ca6;}const _0x528390=_0x345c2a['closest']('figure.image');if(_0x528390&&function(_0x5bc5a2){let _0x395f01=!0x1;const _0x422026=_0x5bc5a2['parentElement'],_0x1f50e2=_0x422026['dataset']['rootName'],_0x2a86b6=_0x5bc5a2['nextElementSibling'],_0x5022a3=_0x5bc5a2['previousElementSibling'],_0x5d6fb6=_0x2a86b6&&_0x552ed4['window']['getComputedStyle'](_0x2a86b6)['float'],_0x5bc6a9=_0x2a86b6&&'ck-fake-selection-container'===_0x2a86b6['className'];!_0x1f50e2||_0x2a86b6||_0x5022a3||(_0x395f01=!0x0),_0x1f50e2&&!_0x5022a3&&_0x5bc6a9&&(_0x395f01=!0x0),_0x1f50e2&&!_0x5022a3&&'none'!==_0x5d6fb6&&(_0x395f01=!0x0);if(_0x395f01)return!0x1;return!0x0;}(_0x528390)){const _0x107833=_0x552ed4['window']['getComputedStyle'](_0x528390)['float'];if('left'==_0x107833||'right'==_0x107833)return _0x386ca6;}const _0x3d05ea=L(_0x345c2a,_0x4f50f3,_0x305c28,_0xdf7dba,_0x59ca61);if(_0x3d05ea['length']){for(const _0x1b017a of _0x3d05ea)_0x386ca6['push']({'type':_0x1b017a['type'],'offset':_0x1b017a['offset'],'textOffset':_0x1b017a['textOffset'],'path':[_0x9be302,..._0x1b017a['path']]}),_0x4f50f3+=_0x305c28,_0x59ca61=!0x1;return _0x386ca6;}return _0x386ca6['push'](...function(_0x557665,_0x3b1236,_0x393f16,_0x573c7a,_0x937f){const _0xd150b5=[];if('table-cell'==_0x552ed4['window']['getComputedStyle'](_0x557665)['display'])return[];const _0x5a6aff=[];for(const _0x5b0c14 of _0x557665['getClientRects']())if(_0x5b0c14['left']>=_0x393f16){for(const _0x290ff6 of _0x5a6aff)_0x290ff6['height']+=_0x5b0c14['height'];_0x5a6aff['push']({'height':_0x5b0c14['height']}),_0x393f16+=_0x573c7a;}for(const _0x219c06 of _0x5a6aff)_0x937f||_0xd150b5['push']({'type':'element','offset':_0x219c06['height'],'textOffset':0x0,'path':[_0x3b1236]}),_0x937f=!0x1;return _0xd150b5;}(_0x345c2a,_0x9be302,_0x4f50f3,_0x305c28,_0x59ca61)),_0x386ca6;}function _(_0x320f59,_0x14ee2e,_0x3cb018,_0x579faa,_0x11ccc1){const _0x2995e9=y(_0x320f59),_0x2a1b38=[];let _0x1ec5aa=0x0;for(const _0x2dafff of _0x2995e9['getClientRects']())if(_0x2dafff['left']>=_0x3cb018){const _0x40b58f=R(_0x320f59,_0x1ec5aa,_0x3cb018,_0x579faa);_0x11ccc1||_0x2a1b38['push']({'type':'text','path':[_0x14ee2e],'textOffset':_0x40b58f}),_0x1ec5aa=_0x40b58f,_0x3cb018+=_0x579faa,_0x11ccc1=!0x1;}return _0x2a1b38;}function R(_0x4d32be,_0x106251,_0x511bb0,_0x5b8ffd){let _0x5eb55d=_0x106251,_0x773d8=_0x4d32be['length'];for(;_0x773d8-_0x5eb55d>0x1;){const _0x540023=Math['ceil']((_0x5eb55d+_0x773d8)/0x2);E(v(_0x4d32be,_0x5eb55d,_0x540023),_0x511bb0,_0x5b8ffd)?_0x773d8=_0x540023:_0x5eb55d=_0x540023;}return _0x5eb55d;}function E(_0x3a29c5,_0x3b641c,_0x10b57d){for(const _0x49027d of _0x3a29c5['getClientRects']())if(_0x49027d['left']>=_0x3b641c&&_0x49027d['left']<_0x3b641c+_0x10b57d)return!0x0;return!0x1;}function S(_0x5b5a45){return _0x5b5a45['nodeType']==Node['ELEMENT_NODE'];}function I(_0x3a7a0c){return _0x3a7a0c['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x358341('px');class LineView extends _0x41a91{constructor(){super();const _0x5ed383=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x5ed383['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x5ed383['if']('isVisible','ck-hidden',_0x2d921a=>!_0x2d921a)],'style':{'left':_0x5ed383['to']('left',_0x446e35=>B(_0x446e35)),'top':_0x5ed383['to']('top',_0xced9b1=>B(_0xced9b1)),'width':_0x5ed383['to']('width',_0x499abe=>B(_0x499abe))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x1f1059){this['_viewCollection']=_0x1f1059['ui']['view']['body'];}['destroy'](){for(const _0x3bf6f6 of this['_hiddenLines'])_0x3bf6f6['destroy']();}['cleanLines'](){for(const _0x1bd3c5 of this['_visibleLines'])_0x1bd3c5['isVisible']=!0x1,this['_hiddenLines']['add'](_0x1bd3c5);this['_visibleLines']['clear']();}['showLine'](_0x51ae0e,_0x51b320,_0x188625,_0x47cf00){let _0x1ce4a7;this['_hiddenLines']['size']?(_0x1ce4a7=_0x5f4031(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x1ce4a7)):_0x1ce4a7=new LineView(),_0x1ce4a7['set']({'pageNumber':_0x47cf00,'left':_0x51ae0e,'top':_0x51b320,'width':_0x188625}),_0x1ce4a7['isVisible']=!0x0,this['_viewCollection']['has'](_0x1ce4a7)||this['_viewCollection']['add'](_0x1ce4a7),this['_visibleLines']['add'](_0x1ce4a7);}['setViewCollection'](_0x4a7b80){for(const _0x5e30cb of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x5e30cb)&&this['_viewCollection']['remove'](_0x5e30cb);this['_viewCollection']=_0x4a7b80;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x44fdfd{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new LinesRepository(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](K),this['on']('change:isEnabled',(_0x30851b,_0x10fe20,_0x9df6fa)=>{_0x9df6fa||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x9df6fa);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x136255){if(!this['isEnabled'])return;const _0x5547ad=_0x136255>0x1?this['_getPageBreakLineOffset'](_0x136255-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x5547ad-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x3b37a0['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x2c9463=this['editor'],_0xbf77ca=this['_getAttachedDomRoot']();_0xbf77ca?(this['_scrollableEditingRootDomAncestor']&&_0x2c9463['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x552903){let _0x3198d5=_0x552903;do{_0x3198d5=_0x3198d5['parentElement'];const _0x4f53ef=_0x552ed4['window']['getComputedStyle'](_0x3198d5)['overflowY'];if('auto'==_0x4f53ef||'scroll'==_0x4f53ef)break;}while('BODY'!=_0x3198d5['tagName']);return _0x3198d5;}(_0xbf77ca),_0x2c9463['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x24af82(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x2c9463['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x478682=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x478682['ui']['view']['listenTo'](_0x552ed4['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x478682['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x2d2f0b of this['editor']['editing']['view']['domRoots']['values']())if(_0x2d2f0b['ownerDocument']['body']['contains'](_0x2d2f0b))return _0x2d2f0b;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x23a995=this['_getAttachedDomRoot'](),_0x2a43a3=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x23a995||0x1==_0x2a43a3['length'])return void(this['pageNumber']=0x1);const _0x21a8a8=new _0x24b953(_0x23a995)['excludeScrollbarsAndBorders'](),_0x42a8eb=new _0x24b953(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x306245=_0x42a8eb['top']+_0x42a8eb['height']/0x3;let _0x521159=!0x1;const _0x3c1609=[];for(let _0x551d48=0x1;_0x551d48<_0x2a43a3['length'];_0x551d48++){const _0x2253c8=this['_getPageBreakLineOffset'](_0x551d48,_0x42a8eb);if(!_0x2253c8)continue;const _0x52c70e=_0x42a8eb['top']+_0x2253c8-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x3c1609['push']({'pageOffsetTop':_0x52c70e,'domRootRect':_0x21a8a8,'domScrollableRect':_0x42a8eb,'pageNumber':_0x551d48}),_0x52c70e>_0x306245&&!_0x521159&&(this['pageNumber']=_0x551d48,_0x521159=!0x0);}this['_renderPageBreakLines'](_0x3c1609),_0x521159||(this['pageNumber']=_0x2a43a3['length']);}['_renderPageBreakLines'](_0x1c0259){const {scrollX:_0x240951,scrollY:_0x463d37}=_0x552ed4['window'];if(_0x1c0259['length']){for(const {domScrollableRect:_0x1b1988,pageOffsetTop:_0x1545cd,domRootRect:_0x237a39,pageNumber:_0xb3ebc2}of _0x1c0259)_0x1b1988['top']<_0x1545cd&&_0x1545cd<_0x1b1988['bottom']&&this['linesRepository']['showLine'](_0x237a39['left']+_0x240951,_0x1545cd+_0x463d37,_0x237a39['width'],_0xb3ebc2+0x1);}}['_getPageBreakLineOffset'](_0x8f4948,_0x2f1fe0=null){const _0x1d74cb=this['_paginationLookupPlugin']['pageBreaks'][_0x8f4948]['offset'];return _0x1d74cb?(_0x2f1fe0||(_0x2f1fe0=new _0x24b953(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x1d74cb-_0x2f1fe0['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x1479c9,_0x5195b6=!0x0){const _0x45a6a2=this['editor']['editing']['view'];_0x45a6a2['change'](_0x5d84cf=>{for(const _0x4db8d1 of _0x45a6a2['document']['roots'])_0x5195b6?_0x5d84cf['addClass'](_0x1479c9,_0x4db8d1):_0x5d84cf['removeClass'](_0x1479c9,_0x4db8d1);});}}function O(_0x492594,_0xef27c7,..._0x19090c){const t=_0x492594['t'];switch(_0xef27c7){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)',..._0x19090c);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 _0xef27c7;}}class PaginationEditing extends _0x44fdfd{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationLookup,PaginationRenderer];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x3e1f04=this['editor']['plugins']['get']('Pagination'),_0x1cd5d1=this['editor']['plugins']['get'](PaginationLookup),_0x3f8485=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x3e1f04),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x3f8485),this['listenTo'](_0x1cd5d1,'change:pageBreaks',(_0x5be033,_0x18aeaf,_0x3cb12c,_0x5a27bf)=>{this['totalPages']=_0x3cb12c['length'],this['_updatePageBreakMarkers'](_0x3cb12c,_0x5a27bf);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x84ceea=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5770a1;for(const _0x3bac72 in _0x84ceea){const _0x18351e=_0x3bac72,_0x1f41d9=_0x84ceea[_0x18351e];if('paginationLicenseKeyValid'==_0x1f41d9||'paginationLicenseKeyInvalid'==_0x1f41d9||'paginationLicenseKeyExpired'==_0x1f41d9||'paginationLicenseKeyDomainLimit'==_0x1f41d9||'paginationLicenseKeyNotAllowed'==_0x1f41d9||'paginationLicenseKeyEvaluationLimit'==_0x1f41d9||'paginationLicenseKeyUsageLimit'==_0x1f41d9){delete _0x84ceea[_0x18351e],_0x5770a1=_0x1f41d9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x5770a1&&_0x84ceea['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x5770a1&&_0x84ceea['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x5770a1&&_0x84ceea['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x5770a1&&_0x84ceea['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x5770a1&&_0x84ceea['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x5770a1&&_0x84ceea['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x236214){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x236214));}['moveSelectionToPage'](_0x633561){if(!this['isEnabled'])return;const _0x284157=this['editor'],_0x3ca55c=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x633561-0x1];_0x3ca55c&&_0x284157['model']['change'](_0x31abac=>{switch(_0x3ca55c['type']){case'manual':{const _0x27d336=_0x284157['model']['schema']['getNearestSelectionRange'](_0x3ca55c['modelRange']['end'],'forward');_0x31abac['setSelection'](_0x27d336);break;}case'element':{const _0x346d42=_0x284157['model']['schema']['getNearestSelectionRange'](_0x3ca55c['modelRange']['start'],'forward');_0x31abac['setSelection'](_0x346d42);break;}case'text':{const _0x21c5b4=_0x3ca55c['modelRange']['start'];if(_0x21c5b4['textNode']&&'\x20'===_0x21c5b4['textNode']['data'][_0x21c5b4['offset']]){const _0x79ead5=_0x31abac['createPositionAt'](_0x21c5b4['parent'],_0x21c5b4['offset']+0x1);_0x31abac['setSelection'](_0x79ead5);}else _0x31abac['setSelection'](_0x3ca55c['modelRange']);}}_0x284157['editing']['view']['focus']();});}['goToNextPage'](){const _0xe7313c=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0xe7313c),this['scrollToPage'](_0xe7313c);}['goToPreviousPage'](){const _0x57d9bc=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x57d9bc),this['scrollToPage'](_0x57d9bc);}['_updatePageBreakMarkers'](_0x3b776b,_0x5528bd){const _0x5c5846=this['editor']['model'];this['isEnabled']&&_0x5c5846['change'](_0x57296e=>{for(let _0xd4e26a=0x1;_0xd4e26a<_0x3b776b['length'];_0xd4e26a++){const _0x3ae2e8=_0x3b776b[_0xd4e26a]['modelRange'],_0x3961cd='pagination:'+(_0xd4e26a+0x1);_0x5c5846['markers']['has'](_0x3961cd)?_0x57296e['updateMarker'](_0x3961cd,{'range':_0x3ae2e8}):_0x57296e['addMarker'](_0x3961cd,{'range':_0x3ae2e8,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0xdbe21a=_0x3b776b['length'];_0xdbe21a<_0x5528bd['length'];_0xdbe21a++){const _0x5b5b8c='pagination:'+(_0xdbe21a+0x1);_0x5c5846['markers']['has'](_0x5b5b8c)&&_0x57296e['removeMarker'](_0x5b5b8c);}});}['_setUpDataDowncastConversion'](){const _0x507cd3='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x1e4e5b=>{_0x1e4e5b['on']('addMarker:'+_0x507cd3,(_0x5a888e,{markerRange:_0x432750,markerName:_0x363159},_0x567e7b)=>{if(!_0x567e7b['options']['pagination'])return;if(!_0x567e7b['consumable']['consume'](_0x432750,_0x5a888e['name']))return;const _0x1f6aeb=_0x432750['getContainedElement']();let _0x4dea11=_0x1f6aeb?_0x567e7b['mapper']['toViewElement'](_0x1f6aeb):null;if(!_0x4dea11){const _0x5cd793=_0x432750['start'];if(_0x567e7b['schema']['checkChild'](_0x5cd793,'$text')){const _0x135623=_0x567e7b['mapper']['toViewPosition'](_0x5cd793);_0x4dea11=_0x567e7b['writer']['createContainerElement']('span'),_0x4dea11['getFillerOffset']=()=>null,_0x567e7b['writer']['insert'](_0x135623,_0x4dea11);}else{const _0x50030f=_0x5cd793['nodeAfter'];_0x4dea11=_0x567e7b['mapper']['toViewElement'](_0x50030f);}}for(;_0x4dea11['parent']!==_0x4dea11['root']&&0x0===_0x4dea11['index'];)_0x4dea11=_0x4dea11['parent'];const _0x44d32f=_0x363159['substring'](0xb);_0x4dea11['hasClass']('page-break')||(_0x567e7b['writer']['setStyle']('page-break-before','always',_0x4dea11),_0x567e7b['writer']['setAttribute']('data-pagination-page',_0x44d32f,_0x4dea11),_0x567e7b['mapper']['bindElementToMarker'](_0x4dea11,_0x363159)),_0x5a888e['stop']();});});}['_setupKeystrokes'](){const _0x2d2db5=this['editor'];_0x2d2db5['keystrokes']['set']('Shift+Pageup',(_0x5cb158,_0x5f466d)=>{this['goToPreviousPage'](),_0x5f466d();}),_0x2d2db5['keystrokes']['set']('Shift+Pagedown',(_0x640d73,_0x318bfb)=>{this['goToNextPage'](),_0x318bfb();}),_0x2d2db5['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x2d2db5['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x2d2db5['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x2d2db5['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x21d6b8){return _0x21d6b8<0x1&&(_0x21d6b8=0x1),_0x21d6b8>this['totalPages']&&(_0x21d6b8=this['totalPages']),_0x21d6b8;}}class PageNavigatorView extends _0x41a91{['pageNumberView'];constructor(_0x4a3b36){super(_0x4a3b36);const _0x8e01ca=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x1bc61a(_0x4a3b36,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x158f3c=>O(_0x4a3b36,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x158f3c)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x2476b3=>!_0x2476b3),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x8e01ca['if']('isEnabled','ck-disabled',_0x509ab6=>!_0x509ab6)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x8e01ca['to']('totalPages')}]}]});}['render'](){super['render']();const _0x47cdb1=this['pageNumberView']['element'],_0x4c1e95=_0x307e1b=>{this['pageNumberView']['element']['value']=String(_0x307e1b);};_0x4c1e95(this['pageNumber']),this['on']('change:pageNumber',(_0x5e3412,_0x41dd60,_0x56c8a6)=>{_0x4c1e95(_0x56c8a6);}),this['listenTo'](_0x47cdb1,'keydown',(_0x3e073a,_0x3cfa02)=>{if('ArrowUp'===_0x3cfa02['key']||'ArrowDown'===_0x3cfa02['key'])return void _0x3cfa02['stopPropagation']();if(_0x3cfa02['keyCode']!==_0x59b412['enter'])return;_0x3cfa02['preventDefault']();const _0x40ffbe=_0x47cdb1['valueAsNumber'];Number['isNaN'](_0x40ffbe)?_0x47cdb1['value']=String(this['pageNumber']):(_0x47cdb1['checkValidity']()?this['pageNumber']=_0x40ffbe:_0x40ffbe>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x47cdb1['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x47cdb1['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x47cdb1,'blur',()=>{_0x47cdb1['value']=String(this['pageNumber']);}),this['listenTo'](_0x47cdb1,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['pageNumberView']['element']['focus']();}}class PaginationUI extends _0x44fdfd{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2b7d6e=this['editor'],_0x435f5a=_0x2b7d6e['plugins']['get']('PaginationEditing');_0x2b7d6e['ui']['componentFactory']['add']('pageNavigation',_0xd5f484=>{const _0x238c12=new PageNavigatorView(_0xd5f484);return _0x238c12['bind']('pageNumber')['to'](_0x435f5a),_0x238c12['bind']('totalPages')['to'](_0x435f5a),_0x238c12['bind']('isEnabled')['to'](_0x435f5a),_0x238c12['on']('navigation',(_0x3fe622,_0x15b265)=>{_0x435f5a['moveSelectionToPage'](_0x15b265),_0x435f5a['scrollToPage'](_0x15b265);}),_0x238c12;}),_0x2b7d6e['ui']['componentFactory']['add']('nextPage',_0x42d5b6=>{const _0x1417d6=new _0x2a23ed(_0x42d5b6);return _0x1417d6['isEnabled']=!0x0,_0x1417d6['label']=O(_0x2b7d6e['locale'],'Go\x20to\x20next\x20page'),_0x1417d6['icon']=_0x1b811f,_0x1417d6['tooltip']=!0x0,_0x1417d6['keystroke']='Shift+PageDown',_0x1417d6['bind']('isEnabled')['to'](_0x435f5a),this['listenTo'](_0x1417d6,'execute',()=>{_0x435f5a['goToNextPage']();}),_0x1417d6;}),_0x2b7d6e['ui']['componentFactory']['add']('previousPage',_0x1cb0c4=>{const _0x11818d=new _0x2a23ed(_0x1cb0c4);return _0x11818d['isEnabled']=!0x0,_0x11818d['label']=O(_0x2b7d6e['locale'],'Go\x20to\x20previous\x20page'),_0x11818d['icon']=_0x4453dc,_0x11818d['tooltip']=!0x0,_0x11818d['keystroke']='Shift+PageUp',_0x11818d['bind']('isEnabled')['to'](_0x435f5a),this['listenTo'](_0x11818d,'execute',()=>{_0x435f5a['goToPreviousPage']();}),_0x11818d;});}}class Pagination extends _0x44fdfd{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x126ae1){super(_0x126ae1),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x49c511=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x49c511),this['bind']('totalPages')['to'](_0x49c511),_0x3b37a0['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x1344de){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x1344de);}}export{Pagination,PaginationRenderer};
|
|
23
|
+
import{Plugin as _0x8bf567}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x264bc3,InputNumberView as _0x41d60,ButtonView as _0x5e59e0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x23d13e,global as _0x24414f,Rect as _0x306a11,uid as _0x3ffcba,toUnit as _0x9e043,first as _0x35e3ab,env as _0x1d5bfa,ResizeObserver as _0x3049c0,keyCodes as _0x3e0fc0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x419968}from'es-toolkit/compat';import{IconArrowDown as _0x3ee642,IconArrowUp as _0x2d1b84}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x8bf567{['_recalculatePageBreaksDebounced']=_0x419968(()=>this['_recalculatePageBreaks'](),0xc8);['_pagesContainer']=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void _0x23d13e('pagination-config-not-found',this['editor']['config']);const _0x7605=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x7605),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x47e99b,_0x5657ce,_0x253a28)=>{_0x253a28&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x391bc9){const _0x206125=_0x1b80d9([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0x33fb48=0xc82cb1e,_0x4dae25=0xc8540be^_0x33fb48,_0x33084b=window[_0x1b80d9([0x44,0x61,0x74,0x65])][_0x1b80d9([0x6e,0x6f,0x77])](),_0x1076d6=_0x391bc9[_0x1b80d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x67c44c=new window[(_0x1b80d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1714b4=>{_0x1076d6[_0x1b80d9([0x6f,0x6e,0x63,0x65])](_0x1b80d9([0x72,0x65,0x61,0x64,0x79]),_0x1714b4);}),_0x18fd91={[_0x1b80d9([0x6b,0x74,0x79])]:_0x1b80d9([0x45,0x43]),[_0x1b80d9([0x75,0x73,0x65])]:_0x1b80d9([0x73,0x69,0x67]),[_0x1b80d9([0x63,0x72,0x76])]:_0x1b80d9([0x50,0x2d,0x32,0x35,0x36]),[_0x1b80d9([0x78])]:_0x1b80d9([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1b80d9([0x79])]:_0x1b80d9([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1b80d9([0x61,0x6c,0x67])]:_0x1b80d9([0x45,0x53,0x32,0x35,0x36])},_0x41de5a=_0x1076d6[_0x1b80d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b80d9([0x67,0x65,0x74])](_0x1b80d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2ff4ed(){let _0x2411b6,_0x3d2bbe=null,_0x1fd0c6=null;try{if(_0x41de5a==_0x1b80d9([0x47,0x50,0x4c]))return _0x1b80d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2411b6=_0x4e7f77(),!_0x2411b6)return _0x1b80d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2411b6[_0x1b80d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1fd0c6=_0x3a25d9(_0x2411b6[_0x1b80d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2411b6[_0x1b80d9([0x6a,0x74,0x69])])),await _0x224d92()?_0xfc84a8()?_0x2a127d()?_0x1b80d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x187c23()?(_0x2411b6[_0x1b80d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b80d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d2bbe=_0x5e97b7(_0x1b80d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2ff6be()):_0x1b80d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b80d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b80d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1b80d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a127d(){const _0x133b37=[_0x1b80d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b80d9([0x74,0x72,0x69,0x61,0x6c])][_0x1b80d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2411b6[_0x1b80d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33084b/0x3e8:0xe10*_0x4dae25;return _0x2411b6[_0x1b80d9([0x65,0x78,0x70])]<_0x133b37;}function _0xfc84a8(){const _0x587e56=_0x2411b6[_0x1b80d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x587e56&&(!!_0x587e56[_0x1b80d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b80d9([0x2a]))||!!_0x587e56[_0x1b80d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b80d9([0x50,0x41,0x47])));}function _0x187c23(){const _0x103e41=_0x2411b6[_0x1b80d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x103e41||0x0==_0x103e41[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f2a2d}=new URL(window[_0x1b80d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x103e41[_0x1b80d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f2a2d))return!0x0;const _0x7768bf=_0x5f2a2d[_0x1b80d9([0x73,0x70,0x6c,0x69,0x74])](_0x1b80d9([0x2e]));return _0x103e41[_0x1b80d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5776b1=>_0x5776b1[_0x1b80d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b80d9([0x2a])))[_0x1b80d9([0x6d,0x61,0x70])](_0x4f19ff=>_0x4f19ff[_0x1b80d9([0x73,0x70,0x6c,0x69,0x74])](_0x1b80d9([0x2e])))[_0x1b80d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20e83b=>_0x20e83b[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7768bf[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b80d9([0x6d,0x61,0x70])](_0x4d7069=>Array(_0x7768bf[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4d7069[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b80d9([0x66,0x69,0x6c,0x6c])](_0x4d7069[0x0]===_0x1b80d9([0x2a])?_0x1b80d9([0x2a]):'')[_0x1b80d9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4d7069))[_0x1b80d9([0x73,0x6f,0x6d,0x65])](_0x4f319c=>_0x7768bf[_0x1b80d9([0x65,0x76,0x65,0x72,0x79])]((_0x5945d3,_0xe45236)=>_0x4f319c[_0xe45236]===_0x5945d3||_0x4f319c[_0xe45236]===_0x1b80d9([0x2a])));}function _0x2ff6be(){return _0x3d2bbe&&_0x1fd0c6?new window[(_0x1b80d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x570456,_0x15f67b)=>{_0x3d2bbe[_0x1b80d9([0x74,0x68,0x65,0x6e])](_0x570456,_0x15f67b),_0x1fd0c6[_0x1b80d9([0x74,0x68,0x65,0x6e])](_0x155688=>{_0x155688!=_0x1b80d9([0x56,0x61,0x6c,0x69,0x64])&&_0x570456(_0x155688);},_0x15f67b);}):_0x3d2bbe||_0x1fd0c6||_0x1b80d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a25d9(_0x468a04,_0xd8fc80){return new window[(_0x1b80d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fd021=>{if(_0x21e587())return _0x3fd021(_0x1b80d9([0x56,0x61,0x6c,0x69,0x64]));_0x3fcf46(),_0x1076d6[_0x1b80d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b80d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5898b4=!0x1;const _0x1d976d=_0x3ffcba();function _0x51a8c5(_0x31a81a){return!!_0x31a81a&&(typeof _0x31a81a===_0x1b80d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31a81a===_0x1b80d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31a81a[_0x1b80d9([0x74,0x68,0x65,0x6e])]===_0x1b80d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31a81a[_0x1b80d9([0x63,0x61,0x74,0x63,0x68])]===_0x1b80d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x591b7b(_0x3b22b0){_0x5cc778(_0x3b22b0)[_0x1b80d9([0x74,0x68,0x65,0x6e])](_0x163d2d=>{if(!_0x163d2d||_0x163d2d[_0x1b80d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b80d9([0x6f,0x6b]))return _0x1b80d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf314f8(_0x4158b9(_0x1d976d+_0xd8fc80))!=_0x163d2d[_0x1b80d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b80d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b80d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b80d9([0x74,0x68,0x65,0x6e])](_0x13ba0d=>(_0x1426de(),_0x13ba0d),()=>{const _0x53d262=_0x426cc6();return null==_0x53d262?(_0x1426de(),_0x1b80d9([0x56,0x61,0x6c,0x69,0x64])):_0x1b80d9(_0x33084b-_0x53d262>(0x288e4f1e^_0x33fb48)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b80d9([0x74,0x68,0x65,0x6e])](_0x3fd021)[_0x1b80d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3fd021(_0x1b80d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12bc9f=0xcb4259e^_0x33fb48;function _0x1426de(){const _0x2ad9e6=_0x1b80d9([0x6c,0x6c,0x63,0x74,0x2d])+_0xf314f8(_0x4158b9(_0x468a04)),_0x4fd9ae=_0x1c41d1(_0xf314f8(window[_0x1b80d9([0x4d,0x61,0x74,0x68])][_0x1b80d9([0x63,0x65,0x69,0x6c])](_0x33084b/_0x12bc9f)));window[_0x1b80d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b80d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ad9e6,_0x4fd9ae);}function _0x426cc6(){const _0x119583=_0x1b80d9([0x6c,0x6c,0x63,0x74,0x2d])+_0xf314f8(_0x4158b9(_0x468a04)),_0x3bfaec=window[_0x1b80d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b80d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x119583);return _0x3bfaec?window[_0x1b80d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c41d1(_0x3bfaec),0x10)*_0x12bc9f:null;}function _0x5cc778(_0x3ed662){return new window[(_0x1b80d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13cc64,_0x461b9d)=>{_0x3ed662[_0x1b80d9([0x74,0x68,0x65,0x6e])](_0x13cc64,_0x461b9d),window[_0x1b80d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x461b9d,0xc831fde^_0x33fb48);});}}_0x1076d6[_0x1b80d9([0x6f,0x6e])](_0x1b80d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a59f5,_0x3e157d)=>{if(_0x3e157d[0x0]!=_0x468a04)return _0x3fd021(_0x1b80d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e157d[0x1]={..._0x3e157d[0x1],[_0x1b80d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d976d};},{[_0x1b80d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b80d9([0x68,0x69,0x67,0x68])}),_0x1076d6[_0x1b80d9([0x6f,0x6e])](_0x1b80d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x297fe6=>{_0x51a8c5(_0x297fe6[_0x1b80d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5898b4=!0x0,_0x591b7b(_0x297fe6[_0x1b80d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b80d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b80d9([0x6c,0x6f,0x77])}),_0x67c44c[_0x1b80d9([0x74,0x68,0x65,0x6e])](()=>{_0x5898b4||_0x3fd021(_0x1b80d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21e587(){return _0x1076d6[_0x1b80d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b80d9([0x76,0x69,0x65,0x77])][_0x1b80d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b80d9([0x61,0x75,0x74,0x6f]);}function _0x3fcf46(){_0x1076d6[_0x1b80d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b80d9([0x76,0x69,0x65,0x77])][_0x1b80d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b80d9([0x61,0x75,0x74,0x6f]);}}function _0x5e97b7(_0x4f014d){const _0x376923=[new window[(_0x1b80d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x455ecb=>setTimeout(_0x455ecb,0xc8bf5d2^_0x33fb48)),_0x67c44c[_0x1b80d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b80d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e8718=>{let _0x6aea66=0x0;_0x1076d6[_0x1b80d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b80d9([0x6f,0x6e])](_0x1b80d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c20da,_0x425671)=>{_0x425671[0x0][_0x1b80d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6aea66++,_0x6aea66==(0xc82cef6^_0x33fb48)&&(_0x2e8718(),_0x4c20da[_0x1b80d9([0x6f,0x66,0x66])]());});}))];return window[_0x1b80d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b80d9([0x72,0x61,0x63,0x65])](_0x376923)[_0x1b80d9([0x74,0x68,0x65,0x6e])](()=>_0x4f014d);}async function _0x26dce4(){await _0x67c44c,_0x1076d6[_0x1b80d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b80d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf2ff42,_0x1076d6[_0x1b80d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b80d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf2ff42,_0x1076d6[_0x1b80d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b80d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x528ff6(_0x1d85f9){const _0x35f14b=_0x45eeff();_0x1076d6[_0x35f14b]=_0x1b80d9([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d85f9,_0x1d85f9!=_0x1b80d9([0x56,0x61,0x6c,0x69,0x64])&&_0x26dce4();}function _0x45eeff(){const _0x280d2c=window[_0x1b80d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b80d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b80d9([0x6e,0x6f,0x77])]())[_0x1b80d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b80d9([0x2e]),'');let _0xcf40fb=_0x1b80d9([0x49]);for(let _0xa77b75=0x0;_0xa77b75<_0x280d2c[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa77b75+=0x2){let _0x294136=window[_0x1b80d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x280d2c[_0x1b80d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa77b75,_0xa77b75+0x2));_0x294136>=_0x206125[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x294136-=_0x206125[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcf40fb+=_0x206125[_0x294136];}return _0xcf40fb;}function _0x4e7f77(){const _0x56d5d9=_0x41de5a[_0x1b80d9([0x73,0x70,0x6c,0x69,0x74])](_0x1b80d9([0x2e]));if(0x3!=_0x56d5d9[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d1b9e(_0x56d5d9[0x1]);function _0x1d1b9e(_0x2b3664){const _0x207d7a=_0x44bc38(_0x2b3664);return _0x207d7a&&_0xff14c0()?_0x207d7a:null;function _0xff14c0(){const _0x1493d8=_0x207d7a[_0x1b80d9([0x6a,0x74,0x69])],_0x1c2e35=window[_0x1b80d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1493d8[_0x1b80d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1493d8[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x439b0e={..._0x207d7a,[_0x1b80d9([0x6a,0x74,0x69])]:_0x1493d8[_0x1b80d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1493d8[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x439b0e[_0x1b80d9([0x76,0x63])],_0x4158b9(_0x439b0e)==_0x1c2e35;}}}async function _0x224d92(){let _0x4e5611=!0x0;try{const _0x132f97=_0x41de5a[_0x1b80d9([0x73,0x70,0x6c,0x69,0x74])](_0x1b80d9([0x2e])),[_0x3924e0,_0x2e3c1f,_0x2f210c]=_0x132f97;return _0x299ca8(_0x3924e0),await _0x29c45c(_0x3924e0,_0x2e3c1f,_0x2f210c),_0x4e5611;}catch{return!0x1;}function _0x299ca8(_0x42d0a4){const _0x1cb0af=_0x44bc38(_0x42d0a4);_0x1cb0af&&_0x1cb0af[_0x1b80d9([0x61,0x6c,0x67])]==_0x1b80d9([0x45,0x53,0x32,0x35,0x36])||(_0x4e5611=!0x1);}async function _0x29c45c(_0x22a9c8,_0x3a5f50,_0x3b52aa){const _0x4ec4b6=window[_0x1b80d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b80d9([0x66,0x72,0x6f,0x6d])](_0x58edfa(_0x3b52aa),_0x4c4acf=>_0x4c4acf[_0x1b80d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc74e86=new window[(_0x1b80d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b80d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22a9c8+_0x1b80d9([0x2e])+_0x3a5f50),_0x20d847=window[_0x1b80d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b80d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20d847)return;const _0x2329ab=await _0x20d847[_0x1b80d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b80d9([0x6a,0x77,0x6b]),_0x18fd91,{[_0x1b80d9([0x6e,0x61,0x6d,0x65])]:_0x1b80d9([0x45,0x43,0x44,0x53,0x41]),[_0x1b80d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b80d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b80d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20d847[_0x1b80d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b80d9([0x6e,0x61,0x6d,0x65])]:_0x1b80d9([0x45,0x43,0x44,0x53,0x41]),[_0x1b80d9([0x68,0x61,0x73,0x68])]:{[_0x1b80d9([0x6e,0x61,0x6d,0x65])]:_0x1b80d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2329ab,_0x4ec4b6,_0xc74e86)||(_0x4e5611=!0x1);}}function _0x44bc38(_0x1c42ff){return _0x1c42ff[_0x1b80d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b80d9([0x65,0x79]))?JSON[_0x1b80d9([0x70,0x61,0x72,0x73,0x65])](_0x58edfa(_0x1c42ff)):null;}function _0x58edfa(_0x54c1fa){return window[_0x1b80d9([0x61,0x74,0x6f,0x62])](_0x54c1fa[_0x1b80d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b80d9([0x2b]))[_0x1b80d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b80d9([0x2f])));}function _0x4158b9(_0x22ff21){let _0x5782b5=0x1505;function _0x2b71a2(_0x3019aa){for(let _0x4ca755=0x0;_0x4ca755<_0x3019aa[_0x1b80d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ca755++){const _0x2d1b0a=_0x3019aa[_0x1b80d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ca755);_0x5782b5=(_0x5782b5<<0x5)+_0x5782b5+_0x2d1b0a,_0x5782b5&=_0x5782b5;}}function _0x5966cd(_0x55610a){Array[_0x1b80d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x55610a)?_0x55610a[_0x1b80d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5966cd):_0x55610a&&typeof _0x55610a==_0x1b80d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b80d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x55610a)[_0x1b80d9([0x73,0x6f,0x72,0x74])]()[_0x1b80d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b9873,_0xc44ff5])=>{_0x2b71a2(_0x5b9873),_0x5966cd(_0xc44ff5);}):_0x2b71a2(window[_0x1b80d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x55610a));}return _0x5966cd(_0x22ff21),_0x5782b5>>>0x0;}function _0xf314f8(_0x4dffcb){return _0x4dffcb[_0x1b80d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b80d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b80d9([0x30]));}function _0x1c41d1(_0x39e907){return _0x39e907[_0x1b80d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b80d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b80d9([0x6a,0x6f,0x69,0x6e])]('');}function _0xf2ff42(){}function _0x1b80d9(_0x4b696c){return _0x4b696c['map'](_0x4a4cb0=>String['fromCharCode'](_0x4a4cb0))['join']('');}_0x528ff6(await _0x2ff4ed());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x571b7a=this['editor'],_0x4bbce2=_0x571b7a['editing']['view'],_0x5d93fc=this['_getAttachedDomRoot']();if(!_0x5d93fc||0x0===_0x5d93fc['childElementCount'])return void _0x571b7a['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x5da225,pageHeight:_0x87f64f}=_0x571b7a['config']['get']('pagination'),{top:_0x7ee723,left:_0x513036,bottom:_0x167986,right:_0x40f7e2}=this['_configuredPaddings'];this['_pagesContainer']=new _0x264bc3(_0x571b7a['locale']);const _0x25a7ba=this['_pagesContainer'];_0x25a7ba['set']('class',''),_0x25a7ba['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x5da225,'width':_0x5da225,'height':'calc(\x20'+_0x87f64f+'\x20-\x20'+_0x7ee723+'\x20-\x20'+_0x167986+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x40f7e2+'\x200\x20'+_0x513036,'columnGap':'calc('+_0x513036+'\x20+\x20'+_0x40f7e2+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x25a7ba['bindTemplate']['to']('class')}}),_0x25a7ba['render'](),_0x5d93fc['parentNode']['insertBefore'](_0x25a7ba['element'],_0x5d93fc['nextSibling']),this['listenTo'](_0x4bbce2,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x14c7d8 of this['editor']['editing']['view']['domRoots']['values']())if(_0x14c7d8['ownerDocument']['body']['contains'](_0x14c7d8))return _0x14c7d8;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x46261f=this['editor']['editing']['view'],_0x2d4013=this['_pagesContainer'],_0x110e07=this['_getAttachedDomRoot']();if(!_0x110e07)return Promise['resolve']();for(_0x2d4013['class']=['ck-reset','ck-pagination-view',..._0x110e07['classList']]['join']('\x20');_0x2d4013['element']['firstChild'];)_0x2d4013['element']['firstChild']['remove']();const _0x4fcbf6=Array['from'](_0x46261f['domRoots']);_0x4fcbf6['sort'](([,_0x21eead],[,_0x42355c])=>_0x21eead['compareDocumentPosition'](_0x42355c)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x16b2da,_0x40702e]of _0x4fcbf6){const _0x1cddfd=_0x40702e['cloneNode'](!0x0);'attributeStyleMap'in _0x1cddfd&&_0x1cddfd['attributeStyleMap']['clear'](),_0x1cddfd['dataset']['rootName']=_0x16b2da,_0x1cddfd['className']='ck-content\x20ck-pagination_enabled',_0x1cddfd['removeAttribute']('id'),_0x1cddfd['tabIndex']=-0x1,_0x2d4013['element']['append'](_0x1cddfd);}const _0x3b6dd2=Array['from'](_0x2d4013['element']['querySelectorAll']('img'));return function(_0x454811){return Promise['all'](_0x454811['map'](_0xe45bd0=>Promise['race']([b(_0xe45bd0),k(0x3e8)])));}(_0x3b6dd2)['then'](()=>{for(const _0x4d6cf3 of _0x3b6dd2['filter'](_0x23c11b=>!_0x23c11b['closest']('table')))if(_0x4d6cf3['offsetParent']){const _0x421415=_0x24414f['window']['getComputedStyle'](_0x4d6cf3),_0x3eeff6=_0x24414f['document']['createElement']('span');for(const _0x571dce of _0x421415)_0x3eeff6['style']['setProperty'](_0x571dce,_0x421415[_0x571dce]);_0x3eeff6['style']['backgroundImage']='url(\x20'+_0x4d6cf3['src']+'\x20)',_0x3eeff6['style']['breakInside']='avoid','PICTURE'==_0x4d6cf3['parentElement']?.['tagName']?_0x4d6cf3['parentElement']['replaceWith'](_0x3eeff6):_0x4d6cf3['replaceWith'](_0x3eeff6);}return new Promise(_0x5ccfb8=>_0x24414f['window']['requestAnimationFrame'](()=>_0x5ccfb8()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x32529c=this['_pagesContainer']['element'];if(!_0x32529c['ownerDocument']['body']['contains'](_0x32529c))return;const _0x5ec802=new _0x306a11(_0x32529c)['excludeScrollbarsAndBorders'](),_0x3fcba1=Math['floor'](_0x5ec802['width']+0x64),_0x451e0b=L(_0x32529c,Math['floor'](_0x5ec802['left']-_0x32529c['scrollLeft']),_0x3fcba1,_0x5ec802['height'])['map'](_0x21ea82=>this['_mapPageStarterInfoToPageBreakInfo'](_0x21ea82))['filter'](_0x3279dc=>!0x1!==_0x3279dc);_0x451e0b['every'](_0x2c4a94=>!!_0x2c4a94)&&(this['pageBreaks']=_0x451e0b);}['_mapPageStarterInfoToPageBreakInfo'](_0x2713de){const _0x471bf2=this['editor']['editing']['view'],_0x385267=this['editor']['editing']['mapper'],_0x239808=_0x471bf2['domConverter'],_0x419f39=_0x2713de['path']['shift'](),_0x4b4f33=this['_pagesContainer']['element']['childNodes'][_0x419f39]['dataset']['rootName'],_0x284d21=_0x471bf2['getDomRoot'](_0x4b4f33);if(!_0x284d21)return null;const _0x1823c1=function(_0x118968,_0x366906){let _0x184ebe=_0x118968;for(const _0x573767 of _0x366906['path']){if(!_0x184ebe)return null;_0x184ebe=_0x184ebe['childNodes'][_0x573767];}return _0x184ebe;}(_0x284d21,_0x2713de);if(!_0x1823c1)return null;const _0x5adca6=_0x239808['domPositionToView'](_0x1823c1,_0x2713de['textOffset']||0x0);return _0x5adca6?'manual'==_0x2713de['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x5adca6,_0x1823c1):'text'==_0x2713de['type']&&_0x385267['toModelPosition'](_0x5adca6)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x5adca6,_0x1823c1,_0x2713de['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x5adca6,_0x1823c1,_0x2713de['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x476160,_0xc96065){const _0x58f3ae=this['editor']['model'],_0x2d8cf5=this['editor']['editing']['mapper']['toModelElement'](_0x476160['parent']),_0x3ab8f1=_0x58f3ae['createRangeOn'](_0x2d8cf5);return new PageBreakInfo({'type':'manual','modelRange':_0x3ab8f1,'domNode':_0xc96065,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x425c31,_0xdf46b,_0x2bd8e6){const _0x2bc356=this['editor']['model'],_0x197c90=this['editor']['editing']['mapper'],_0x38d1bc=this['editor']['editing']['view']['domConverter'];if(_0x2bd8e6>=_0xdf46b['length'])return null;const _0x292daf=_0x197c90['toModelPosition'](_0x425c31),_0xc4c962=_0x2bc356['createRange'](_0x292daf),_0x5a4bae=_0x197c90['findMappedViewAncestor'](_0x425c31),_0x45e778=_0x38d1bc['mapViewToDom'](_0x5a4bae);return new PageBreakInfo({'type':'text','modelRange':_0xc4c962,'domNode':_0xdf46b,'offset':w(_0xdf46b,_0x2bd8e6,_0x45e778)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x27f5a2,_0x232c56,_0x3cbad3){const _0x3e759e=this['editor']['model'],_0x2ee063=this['editor']['editing'],_0x2db454=_0x2ee063['mapper'],_0x5223a8=_0x2ee063['view']['domConverter'],_0x269fea=_0x2db454['findMappedViewAncestor'](_0x27f5a2),_0x46fd81=_0x2db454['toModelElement'](_0x269fea);if(!_0x46fd81||_0x46fd81['is']('rootElement'))return!0x1;const _0xb17c50=function(_0x2b95c7){const _0x2e30e6=_0x2b95c7['parent'],_0x47e3ca=_0x2e30e6['root']['document']['model'],_0x3553e4=_0x2e30e6['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0xcd706c=null;for(const _0x1dcf16 of _0x3553e4){if(_0x1dcf16['is']('rootElement'))return _0xcd706c;if(!_0x47e3ca['createPositionBefore'](_0x1dcf16)['isTouching'](_0x2b95c7))return _0xcd706c;_0xcd706c=_0x1dcf16;}}(_0x3e759e['createPositionBefore'](_0x46fd81)),_0x5e4ae6=_0xb17c50||_0x46fd81;let _0x572927=_0x2db454['toViewElement'](_0x5e4ae6),_0x15e0ea=_0x3e759e['createRangeOn'](_0x5e4ae6);const _0x23d121=_0x3e759e['createPositionBefore'](_0x5e4ae6)['nodeBefore'];if(_0x23d121&&_0x23d121['is']('element','imageBlock')){const _0x82164f=_0x2db454['toViewElement'](_0x23d121),_0x3fb2e2=_0x5223a8['mapViewToDom'](_0x82164f),_0x24c467=_0x24414f['window']['getComputedStyle'](_0x3fb2e2)['float'];'left'!=_0x24c467&&'right'!=_0x24c467||(_0x15e0ea=_0x3e759e['createRangeOn'](_0x23d121));}for(;_0x572927['parent']!==_0x572927['root']&&0x0===_0x572927['index'];)_0x572927=_0x572927['parent'];const _0x2f9a9e=new _0x306a11(S(_0x232c56)?_0x232c56:y(_0x232c56)),_0x478e73=_0x3cbad3?_0x2f9a9e['height']-_0x3cbad3:0x0,_0x36d30c=_0x5223a8['mapViewToDom'](_0x572927),_0x373931=new _0x306a11(_0x36d30c);return new PageBreakInfo({'type':'element','modelRange':_0x15e0ea,'domNode':_0x36d30c,'offset':Math['round'](_0x478e73)||_0x269fea!=P(_0x27f5a2)?_0x478e73+_0x2f9a9e['top']-_0x373931['top']:0x0});}get['_configuredPaddings'](){const _0x583ddc=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x583ddc);}static['_findPageStarterInfos'](_0x1ddf9a,_0x2294a9,_0xffc34c,_0x277f38,_0x1a39db){return L(_0x1ddf9a,_0x2294a9,_0xffc34c,_0x277f38,_0x1a39db);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x4a3e30,modelRange:_0x151203,domNode:_0x5becdd,offset:_0x18e1e3}){this['type']=_0x4a3e30,this['modelRange']=_0x151203,this['_domNode']=_0x5becdd,this['_offset']=_0x18e1e3;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x477e79=new _0x306a11(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x477e79['top']+_0x477e79['height']/0x2:_0x477e79['top']+this['_offset'];}}function w(_0x5b37c1,_0x5f2f1f,_0x518f1d){const _0x461a9a=y(_0x5b37c1),_0x10b80c=function(_0x539313){const _0x5d02fd=_0x24414f['document']['createRange']();return _0x5d02fd['selectNodeContents'](_0x539313),_0x5d02fd;}(_0x518f1d);let _0x550ce5;_0x550ce5=0x0==_0x5f2f1f?x(_0x10b80c['startContainer'],_0x10b80c['startOffset'],_0x5b37c1['parentNode'],Array['from'](_0x5b37c1['parentNode']['childNodes'])['indexOf'](_0x5b37c1)):x(_0x10b80c['startContainer'],_0x10b80c['startOffset'],_0x5b37c1,_0x5f2f1f);const _0x1ec9f6=x(_0x5b37c1,_0x5f2f1f,_0x10b80c['endContainer'],_0x10b80c['endOffset']),_0x211f3f=new _0x306a11(_0x550ce5)['bottom'];return(new _0x306a11(_0x1ec9f6)['top']+_0x211f3f)/0x2-new _0x306a11(_0x461a9a)['top'];}function P(_0x39f606){let _0xdcaa72=_0x39f606['parent'];for(;_0xdcaa72['is']('$text')||_0xdcaa72['is']('attributeElement');)_0xdcaa72=_0xdcaa72['parent'];return _0xdcaa72;}function b(_0x2b0c3b){return _0x2b0c3b['hasAttribute']('width')&&_0x2b0c3b['hasAttribute']('height')?Promise['resolve']():new Promise(_0x1eb583=>{function _0x20e5b3(){_0x2b0c3b['removeEventListener']('load',_0x20e5b3),_0x2b0c3b['removeEventListener']('error',_0x20e5b3),_0x1eb583();}_0x2b0c3b['complete']?_0x1eb583():(_0x2b0c3b['addEventListener']('load',_0x20e5b3),_0x2b0c3b['addEventListener']('error',_0x20e5b3));});}function k(_0x5d06fd){return new Promise(_0x2f119e=>setTimeout(_0x2f119e,_0x5d06fd));}function y(_0x3418f4){const _0x1d7e1c=_0x24414f['document']['createRange']();return _0x1d7e1c['selectNode'](_0x3418f4),_0x1d7e1c;}function v(_0xa2e6cc,_0x1cf241,_0x5cbb92){const _0x2035a9=_0x24414f['document']['createRange']();return _0x2035a9['setStart'](_0xa2e6cc,_0x1cf241),_0x2035a9['setEnd'](_0xa2e6cc,_0x5cbb92),_0x2035a9;}function x(_0x474d33,_0x46be81,_0x4ae690,_0x5595cd){const _0x329589=_0x24414f['document']['createRange']();return _0x329589['setStart'](_0x474d33,_0x46be81),_0x329589['setEnd'](_0x4ae690,_0x5595cd),_0x329589;}function L(_0xd04bd9,_0x4db2e8,_0x45b08d,_0x1cc276,_0x4cf4a3){const _0x181056=[];for(const [_0x278696,_0xf51f0f]of _0xd04bd9['childNodes']['entries']()){let _0x2bd99f=[];S(_0xf51f0f)&&_0xf51f0f['offsetParent']&&['static','relative']['includes'](_0x24414f['window']['getComputedStyle'](_0xf51f0f)['position'])?_0x2bd99f=N(_0xf51f0f,_0x278696,_0x4db2e8,_0x45b08d,_0x1cc276,_0x4cf4a3):I(_0xf51f0f)&&(_0x2bd99f=_(_0xf51f0f,_0x278696,_0x4db2e8,_0x45b08d,_0x4cf4a3)),_0x2bd99f['length']&&(_0x181056['push'](..._0x2bd99f),_0x4db2e8+=_0x2bd99f['length']*_0x45b08d,_0x4cf4a3=!0x1);}return _0x181056;}function N(_0x494bfd,_0x23d663,_0x23be81,_0x79c97c,_0x464f10,_0x4e5ab1){const _0x29b978=[];var _0x4d5d43;if((_0x4d5d43=_0x494bfd['previousSibling'])&&S(_0x4d5d43)&&Boolean(_0x4d5d43['classList']['contains']('page-break')||_0x4d5d43['closest']('.page-break'))&&(_0x29b978['push']({'type':'manual','offset':0x0,'path':[_0x23d663-0x1]}),_0x4e5ab1=!0x0),'table-row'==_0x24414f['window']['getComputedStyle'](_0x494bfd)['display']){let _0x3148c3=0x0,_0xd9ea36=!0x1;for(const _0x2e91c3 of _0x494bfd['getClientRects']())_0x3148c3+=_0x2e91c3['height'],_0x2e91c3['left']>=_0x23be81&&(_0xd9ea36=!0x0);if(_0x3148c3<_0x464f10&&_0xd9ea36)return _0x4e5ab1||_0x29b978['push']({'type':'element','offset':0x0,'path':[_0x23d663]}),_0x29b978;}const _0x704005=_0x494bfd['closest']('figure.image');if(_0x704005&&function(_0x2c6018){let _0x28daf6=!0x1;const _0x28a6f3=_0x2c6018['parentElement'],_0x2b25e0=_0x28a6f3['dataset']['rootName'],_0x20bbe5=_0x2c6018['nextElementSibling'],_0x4ad082=_0x2c6018['previousElementSibling'],_0x57dd1b=_0x20bbe5&&_0x24414f['window']['getComputedStyle'](_0x20bbe5)['float'],_0x1cba6b=_0x20bbe5&&'ck-fake-selection-container'===_0x20bbe5['className'];!_0x2b25e0||_0x20bbe5||_0x4ad082||(_0x28daf6=!0x0),_0x2b25e0&&!_0x4ad082&&_0x1cba6b&&(_0x28daf6=!0x0),_0x2b25e0&&!_0x4ad082&&'none'!==_0x57dd1b&&(_0x28daf6=!0x0);if(_0x28daf6)return!0x1;return!0x0;}(_0x704005)){const _0xe4b03=_0x24414f['window']['getComputedStyle'](_0x704005)['float'];if('left'==_0xe4b03||'right'==_0xe4b03)return _0x29b978;}const _0x32f121=L(_0x494bfd,_0x23be81,_0x79c97c,_0x464f10,_0x4e5ab1);if(_0x32f121['length']){for(const _0x593878 of _0x32f121)_0x29b978['push']({'type':_0x593878['type'],'offset':_0x593878['offset'],'textOffset':_0x593878['textOffset'],'path':[_0x23d663,..._0x593878['path']]}),_0x23be81+=_0x79c97c,_0x4e5ab1=!0x1;return _0x29b978;}return _0x29b978['push'](...function(_0x57f4ab,_0x1e6c87,_0x36eaf3,_0x24efb7,_0x3d5b4c){const _0x586aa7=[];if('table-cell'==_0x24414f['window']['getComputedStyle'](_0x57f4ab)['display'])return[];const _0xdd943d=[];for(const _0x179667 of _0x57f4ab['getClientRects']())if(_0x179667['left']>=_0x36eaf3){for(const _0x5560af of _0xdd943d)_0x5560af['height']+=_0x179667['height'];_0xdd943d['push']({'height':_0x179667['height']}),_0x36eaf3+=_0x24efb7;}for(const _0x3a896f of _0xdd943d)_0x3d5b4c||_0x586aa7['push']({'type':'element','offset':_0x3a896f['height'],'textOffset':0x0,'path':[_0x1e6c87]}),_0x3d5b4c=!0x1;return _0x586aa7;}(_0x494bfd,_0x23d663,_0x23be81,_0x79c97c,_0x4e5ab1)),_0x29b978;}function _(_0x3cc5b7,_0x5c3008,_0x4bcb33,_0x4442ae,_0x133d71){const _0x597194=y(_0x3cc5b7),_0x5c8bed=[];let _0x24aabe=0x0;for(const _0x45f0bf of _0x597194['getClientRects']())if(_0x45f0bf['left']>=_0x4bcb33){const _0x55c5fb=R(_0x3cc5b7,_0x24aabe,_0x4bcb33,_0x4442ae);_0x133d71||_0x5c8bed['push']({'type':'text','path':[_0x5c3008],'textOffset':_0x55c5fb}),_0x24aabe=_0x55c5fb,_0x4bcb33+=_0x4442ae,_0x133d71=!0x1;}return _0x5c8bed;}function R(_0x58ca48,_0xd547a2,_0x5738ad,_0x1f07d1){let _0x19b8f5=_0xd547a2,_0x44071c=_0x58ca48['length'];for(;_0x44071c-_0x19b8f5>0x1;){const _0x196875=Math['ceil']((_0x19b8f5+_0x44071c)/0x2);E(v(_0x58ca48,_0x19b8f5,_0x196875),_0x5738ad,_0x1f07d1)?_0x44071c=_0x196875:_0x19b8f5=_0x196875;}return _0x19b8f5;}function E(_0x40f272,_0x5c70f6,_0x1614a4){for(const _0x535b2f of _0x40f272['getClientRects']())if(_0x535b2f['left']>=_0x5c70f6&&_0x535b2f['left']<_0x5c70f6+_0x1614a4)return!0x0;return!0x1;}function S(_0x68e25b){return _0x68e25b['nodeType']==Node['ELEMENT_NODE'];}function I(_0x552f0c){return _0x552f0c['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x9e043('px');class LineView extends _0x264bc3{constructor(){super();const _0x39027b=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x39027b['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x39027b['if']('isVisible','ck-hidden',_0x10dd17=>!_0x10dd17)],'style':{'left':_0x39027b['to']('left',_0x4debdf=>B(_0x4debdf)),'top':_0x39027b['to']('top',_0x5538dc=>B(_0x5538dc)),'width':_0x39027b['to']('width',_0x2bc2f6=>B(_0x2bc2f6))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x1f79d1){this['_viewCollection']=_0x1f79d1['ui']['view']['body'];}['destroy'](){for(const _0x2d3153 of this['_hiddenLines'])_0x2d3153['destroy']();}['cleanLines'](){for(const _0x9ff772 of this['_visibleLines'])_0x9ff772['isVisible']=!0x1,this['_hiddenLines']['add'](_0x9ff772);this['_visibleLines']['clear']();}['showLine'](_0x20e257,_0xf59aed,_0x5be043,_0x58852a){let _0x13cc0e;this['_hiddenLines']['size']?(_0x13cc0e=_0x35e3ab(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x13cc0e)):_0x13cc0e=new LineView(),_0x13cc0e['set']({'pageNumber':_0x58852a,'left':_0x20e257,'top':_0xf59aed,'width':_0x5be043}),_0x13cc0e['isVisible']=!0x0,this['_viewCollection']['has'](_0x13cc0e)||this['_viewCollection']['add'](_0x13cc0e),this['_visibleLines']['add'](_0x13cc0e);}['setViewCollection'](_0x51b9df){for(const _0x312808 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x312808)&&this['_viewCollection']['remove'](_0x312808);this['_viewCollection']=_0x51b9df;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x8bf567{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new LinesRepository(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](K),this['on']('change:isEnabled',(_0x181b0e,_0x5597a6,_0xbdf483)=>{_0xbdf483||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0xbdf483);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x34c406){if(!this['isEnabled'])return;const _0x53745a=_0x34c406>0x1?this['_getPageBreakLineOffset'](_0x34c406-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x53745a-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x1d5bfa['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x358ccb=this['editor'],_0x93ee3f=this['_getAttachedDomRoot']();_0x93ee3f?(this['_scrollableEditingRootDomAncestor']&&_0x358ccb['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x5d44fe){let _0x4daf84=_0x5d44fe;do{_0x4daf84=_0x4daf84['parentElement'];const _0x79722a=_0x24414f['window']['getComputedStyle'](_0x4daf84)['overflowY'];if('auto'==_0x79722a||'scroll'==_0x79722a)break;}while('BODY'!=_0x4daf84['tagName']);return _0x4daf84;}(_0x93ee3f),_0x358ccb['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x3049c0(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x358ccb['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x2ba40d=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x2ba40d['ui']['view']['listenTo'](_0x24414f['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x2ba40d['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x30ecd0 of this['editor']['editing']['view']['domRoots']['values']())if(_0x30ecd0['ownerDocument']['body']['contains'](_0x30ecd0))return _0x30ecd0;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0xdd73ef=this['_getAttachedDomRoot'](),_0x5f17fc=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0xdd73ef||0x1==_0x5f17fc['length'])return void(this['pageNumber']=0x1);const _0x4c28f2=new _0x306a11(_0xdd73ef)['excludeScrollbarsAndBorders'](),_0x55ca78=new _0x306a11(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x320884=_0x55ca78['top']+_0x55ca78['height']/0x3;let _0x5a9e16=!0x1;const _0x506e54=[];for(let _0x1c9f9d=0x1;_0x1c9f9d<_0x5f17fc['length'];_0x1c9f9d++){const _0x2d43fe=this['_getPageBreakLineOffset'](_0x1c9f9d,_0x55ca78);if(!_0x2d43fe)continue;const _0x3ac9ed=_0x55ca78['top']+_0x2d43fe-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x506e54['push']({'pageOffsetTop':_0x3ac9ed,'domRootRect':_0x4c28f2,'domScrollableRect':_0x55ca78,'pageNumber':_0x1c9f9d}),_0x3ac9ed>_0x320884&&!_0x5a9e16&&(this['pageNumber']=_0x1c9f9d,_0x5a9e16=!0x0);}this['_renderPageBreakLines'](_0x506e54),_0x5a9e16||(this['pageNumber']=_0x5f17fc['length']);}['_renderPageBreakLines'](_0x40b737){const {scrollX:_0x5ebefe,scrollY:_0x3080bd}=_0x24414f['window'];if(_0x40b737['length']){for(const {domScrollableRect:_0x1eba38,pageOffsetTop:_0x35d696,domRootRect:_0x1ed0f7,pageNumber:_0x443c3c}of _0x40b737)_0x1eba38['top']<_0x35d696&&_0x35d696<_0x1eba38['bottom']&&this['linesRepository']['showLine'](_0x1ed0f7['left']+_0x5ebefe,_0x35d696+_0x3080bd,_0x1ed0f7['width'],_0x443c3c+0x1);}}['_getPageBreakLineOffset'](_0xb95e5e,_0x4c03b5=null){const _0xf16863=this['_paginationLookupPlugin']['pageBreaks'][_0xb95e5e]['offset'];return _0xf16863?(_0x4c03b5||(_0x4c03b5=new _0x306a11(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0xf16863-_0x4c03b5['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x251ba5,_0x56d34b=!0x0){const _0x394401=this['editor']['editing']['view'];_0x394401['change'](_0xb918d=>{for(const _0x3fa809 of _0x394401['document']['roots'])_0x56d34b?_0xb918d['addClass'](_0x251ba5,_0x3fa809):_0xb918d['removeClass'](_0x251ba5,_0x3fa809);});}}function O(_0x1e9c47,_0x44fdc3,..._0x7c4e74){const t=_0x1e9c47['t'];switch(_0x44fdc3){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x7c4e74);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x44fdc3;}}class PaginationEditing extends _0x8bf567{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationLookup,PaginationRenderer];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x21a130=this['editor']['plugins']['get']('Pagination'),_0x25b02a=this['editor']['plugins']['get'](PaginationLookup),_0x181386=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x21a130),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x181386),this['listenTo'](_0x25b02a,'change:pageBreaks',(_0x462784,_0x110739,_0x44baff,_0x282790)=>{this['totalPages']=_0x44baff['length'],this['_updatePageBreakMarkers'](_0x44baff,_0x282790);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x543bd5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13bed8;for(const _0x3317cc in _0x543bd5){const _0x25f162=_0x3317cc,_0x42c1e9=_0x543bd5[_0x25f162];if('paginationLicenseKeyValid'==_0x42c1e9||'paginationLicenseKeyInvalid'==_0x42c1e9||'paginationLicenseKeyExpired'==_0x42c1e9||'paginationLicenseKeyDomainLimit'==_0x42c1e9||'paginationLicenseKeyNotAllowed'==_0x42c1e9||'paginationLicenseKeyEvaluationLimit'==_0x42c1e9||'paginationLicenseKeyUsageLimit'==_0x42c1e9){delete _0x543bd5[_0x25f162],_0x13bed8=_0x42c1e9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x13bed8&&_0x543bd5['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x13bed8&&_0x543bd5['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x13bed8&&_0x543bd5['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x13bed8&&_0x543bd5['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x13bed8&&_0x543bd5['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x13bed8&&_0x543bd5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x36e395){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x36e395));}['moveSelectionToPage'](_0x170467){if(!this['isEnabled'])return;const _0x281041=this['editor'],_0xf9b60f=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x170467-0x1];_0xf9b60f&&_0x281041['model']['change'](_0x2c2d82=>{switch(_0xf9b60f['type']){case'manual':{const _0x3ee123=_0x281041['model']['schema']['getNearestSelectionRange'](_0xf9b60f['modelRange']['end'],'forward');_0x2c2d82['setSelection'](_0x3ee123);break;}case'element':{const _0x288d7d=_0x281041['model']['schema']['getNearestSelectionRange'](_0xf9b60f['modelRange']['start'],'forward');_0x2c2d82['setSelection'](_0x288d7d);break;}case'text':{const _0x284cb1=_0xf9b60f['modelRange']['start'];if(_0x284cb1['textNode']&&'\x20'===_0x284cb1['textNode']['data'][_0x284cb1['offset']]){const _0x2d3e66=_0x2c2d82['createPositionAt'](_0x284cb1['parent'],_0x284cb1['offset']+0x1);_0x2c2d82['setSelection'](_0x2d3e66);}else _0x2c2d82['setSelection'](_0xf9b60f['modelRange']);}}_0x281041['editing']['view']['focus']();});}['goToNextPage'](){const _0x33fbfb=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x33fbfb),this['scrollToPage'](_0x33fbfb);}['goToPreviousPage'](){const _0x2b5d84=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x2b5d84),this['scrollToPage'](_0x2b5d84);}['_updatePageBreakMarkers'](_0x46fa39,_0x368113){const _0x277bf3=this['editor']['model'];this['isEnabled']&&_0x277bf3['change'](_0x11ee4f=>{for(let _0x13533b=0x1;_0x13533b<_0x46fa39['length'];_0x13533b++){const _0x30715d=_0x46fa39[_0x13533b]['modelRange'],_0x506c1f='pagination:'+(_0x13533b+0x1);_0x277bf3['markers']['has'](_0x506c1f)?_0x11ee4f['updateMarker'](_0x506c1f,{'range':_0x30715d}):_0x11ee4f['addMarker'](_0x506c1f,{'range':_0x30715d,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x505541=_0x46fa39['length'];_0x505541<_0x368113['length'];_0x505541++){const _0x1a1c9c='pagination:'+(_0x505541+0x1);_0x277bf3['markers']['has'](_0x1a1c9c)&&_0x11ee4f['removeMarker'](_0x1a1c9c);}});}['_setUpDataDowncastConversion'](){const _0x4f70f6='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x53e3bc=>{_0x53e3bc['on']('addMarker:'+_0x4f70f6,(_0x490bda,{markerRange:_0xe2476c,markerName:_0x3e276a},_0x35da06)=>{if(!_0x35da06['options']['pagination'])return;if(!_0x35da06['consumable']['consume'](_0xe2476c,_0x490bda['name']))return;const _0x2878c3=_0xe2476c['getContainedElement']();let _0x1e99bf=_0x2878c3?_0x35da06['mapper']['toViewElement'](_0x2878c3):null;if(!_0x1e99bf){const _0x279828=_0xe2476c['start'];if(_0x35da06['schema']['checkChild'](_0x279828,'$text')){const _0x298dec=_0x35da06['mapper']['toViewPosition'](_0x279828);_0x1e99bf=_0x35da06['writer']['createContainerElement']('span'),_0x1e99bf['getFillerOffset']=()=>null,_0x35da06['writer']['insert'](_0x298dec,_0x1e99bf);}else{const _0x48179b=_0x279828['nodeAfter'];_0x1e99bf=_0x35da06['mapper']['toViewElement'](_0x48179b);}}for(;_0x1e99bf['parent']!==_0x1e99bf['root']&&0x0===_0x1e99bf['index'];)_0x1e99bf=_0x1e99bf['parent'];const _0x2154d8=_0x3e276a['substring'](0xb);_0x1e99bf['hasClass']('page-break')||(_0x35da06['writer']['setStyle']('page-break-before','always',_0x1e99bf),_0x35da06['writer']['setAttribute']('data-pagination-page',_0x2154d8,_0x1e99bf),_0x35da06['mapper']['bindElementToMarker'](_0x1e99bf,_0x3e276a)),_0x490bda['stop']();});});}['_setupKeystrokes'](){const _0x5c9296=this['editor'];_0x5c9296['keystrokes']['set']('Shift+Pageup',(_0x89d805,_0x17de5a)=>{this['goToPreviousPage'](),_0x17de5a();}),_0x5c9296['keystrokes']['set']('Shift+Pagedown',(_0x117c53,_0x57bdcd)=>{this['goToNextPage'](),_0x57bdcd();}),_0x5c9296['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x5c9296['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x5c9296['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x5c9296['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x2eb38e){return _0x2eb38e<0x1&&(_0x2eb38e=0x1),_0x2eb38e>this['totalPages']&&(_0x2eb38e=this['totalPages']),_0x2eb38e;}}class PageNavigatorView extends _0x264bc3{['pageNumberView'];constructor(_0x90d653){super(_0x90d653);const _0x460f15=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x41d60(_0x90d653,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x11a05b=>O(_0x90d653,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x11a05b)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x4099c8=>!_0x4099c8),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x460f15['if']('isEnabled','ck-disabled',_0x805339=>!_0x805339)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x460f15['to']('totalPages')}]}]});}['render'](){super['render']();const _0x37048e=this['pageNumberView']['element'],_0x478136=_0x4e45dd=>{this['pageNumberView']['element']['value']=String(_0x4e45dd);};_0x478136(this['pageNumber']),this['on']('change:pageNumber',(_0x3612eb,_0x3a4323,_0x4fd148)=>{_0x478136(_0x4fd148);}),this['listenTo'](_0x37048e,'keydown',(_0xcb8a69,_0x1aa017)=>{if('ArrowUp'===_0x1aa017['key']||'ArrowDown'===_0x1aa017['key'])return void _0x1aa017['stopPropagation']();if(_0x1aa017['keyCode']!==_0x3e0fc0['enter'])return;_0x1aa017['preventDefault']();const _0x29a8ba=_0x37048e['valueAsNumber'];Number['isNaN'](_0x29a8ba)?_0x37048e['value']=String(this['pageNumber']):(_0x37048e['checkValidity']()?this['pageNumber']=_0x29a8ba:_0x29a8ba>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x37048e['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x37048e['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x37048e,'blur',()=>{_0x37048e['value']=String(this['pageNumber']);}),this['listenTo'](_0x37048e,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['pageNumberView']['element']['focus']();}}class PaginationUI extends _0x8bf567{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1acfe0=this['editor'],_0x51cf13=_0x1acfe0['plugins']['get']('PaginationEditing');_0x1acfe0['ui']['componentFactory']['add']('pageNavigation',_0x49f4ec=>{const _0x4ccbaa=new PageNavigatorView(_0x49f4ec);return _0x4ccbaa['bind']('pageNumber')['to'](_0x51cf13),_0x4ccbaa['bind']('totalPages')['to'](_0x51cf13),_0x4ccbaa['bind']('isEnabled')['to'](_0x51cf13),_0x4ccbaa['on']('navigation',(_0x14ba36,_0x255839)=>{_0x51cf13['moveSelectionToPage'](_0x255839),_0x51cf13['scrollToPage'](_0x255839);}),_0x4ccbaa;}),_0x1acfe0['ui']['componentFactory']['add']('nextPage',_0x4ca61f=>{const _0x3c56cf=new _0x5e59e0(_0x4ca61f);return _0x3c56cf['isEnabled']=!0x0,_0x3c56cf['label']=O(_0x1acfe0['locale'],'Go\x20to\x20next\x20page'),_0x3c56cf['icon']=_0x3ee642,_0x3c56cf['tooltip']=!0x0,_0x3c56cf['keystroke']='Shift+PageDown',_0x3c56cf['bind']('isEnabled')['to'](_0x51cf13),this['listenTo'](_0x3c56cf,'execute',()=>{_0x51cf13['goToNextPage']();}),_0x3c56cf;}),_0x1acfe0['ui']['componentFactory']['add']('previousPage',_0x320217=>{const _0x530b26=new _0x5e59e0(_0x320217);return _0x530b26['isEnabled']=!0x0,_0x530b26['label']=O(_0x1acfe0['locale'],'Go\x20to\x20previous\x20page'),_0x530b26['icon']=_0x2d1b84,_0x530b26['tooltip']=!0x0,_0x530b26['keystroke']='Shift+PageUp',_0x530b26['bind']('isEnabled')['to'](_0x51cf13),this['listenTo'](_0x530b26,'execute',()=>{_0x51cf13['goToPreviousPage']();}),_0x530b26;});}}class Pagination extends _0x8bf567{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x5c0770){super(_0x5c0770),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x29bd42=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x29bd42),this['bind']('totalPages')['to'](_0x29bd42),_0x1d5bfa['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x46e985){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x46e985);}}export{Pagination,PaginationRenderer};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-pagination",
|
|
3
|
-
"version": "48.2.0-alpha.
|
|
3
|
+
"version": "48.2.0-alpha.4",
|
|
4
4
|
"description": "Pagination feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"./package.json": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ckeditor/ckeditor5-core": "48.2.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.2.0-alpha.4",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.4",
|
|
26
|
+
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.4",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.4",
|
|
28
|
+
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.4",
|
|
29
29
|
"es-toolkit": "1.45.1"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|