@ckeditor/ckeditor5-pagination 48.0.1-alpha.0 → 48.0.1
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 _0x3b9ba4}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0xe54d9d,InputNumberView as _0x1837f5,ButtonView as _0x543866}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0xeab1c6,global as _0x486044,Rect as _0x5535b7,uid as _0x4e7932,toUnit as _0xb71ba8,first as _0x3c5085,env as _0x3378fe,ResizeObserver as _0xf2be82,keyCodes as _0x50adbf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x3ebaa1}from'es-toolkit/compat';import{IconArrowDown as _0x1268e6,IconArrowUp as _0x341d9e}from'@ckeditor/ckeditor5-icons/dist/index.js';class w extends _0x3b9ba4{['_recalculatePageBreaksDebounced']=_0x3ebaa1(()=>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 _0xeab1c6('pagination-config-not-found',this['editor']['config']);const _0x2e0e63=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x2e0e63),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x36c77c,_0xb1af70,_0x57857e)=>{_0x57857e&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0xdca0db){const _0xd3489a=_0x296084([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]),_0x1febcb=0xc82cb1e,_0x1eb09d=0xc854cfe^_0x1febcb,_0x52ad38=window[_0x296084([0x44,0x61,0x74,0x65])][_0x296084([0x6e,0x6f,0x77])](),_0x5b71ae=_0xdca0db[_0x296084([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5863b4=new window[(_0x296084([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20e79e=>{_0x5b71ae[_0x296084([0x6f,0x6e,0x63,0x65])](_0x296084([0x72,0x65,0x61,0x64,0x79]),_0x20e79e);}),_0x389168={[_0x296084([0x6b,0x74,0x79])]:_0x296084([0x45,0x43]),[_0x296084([0x75,0x73,0x65])]:_0x296084([0x73,0x69,0x67]),[_0x296084([0x63,0x72,0x76])]:_0x296084([0x50,0x2d,0x32,0x35,0x36]),[_0x296084([0x78])]:_0x296084([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]),[_0x296084([0x79])]:_0x296084([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]),[_0x296084([0x61,0x6c,0x67])]:_0x296084([0x45,0x53,0x32,0x35,0x36])},_0x23bf75=_0x5b71ae[_0x296084([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x296084([0x67,0x65,0x74])](_0x296084([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb4f3f0(){let _0x49f3b1,_0x4ead97=null,_0xd143f0=null;try{if(_0x23bf75==_0x296084([0x47,0x50,0x4c]))return _0x296084([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49f3b1=_0x563120(),!_0x49f3b1)return _0x296084([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49f3b1[_0x296084([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd143f0=_0x43c346(_0x49f3b1[_0x296084([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49f3b1[_0x296084([0x6a,0x74,0x69])])),await _0x2d93c4()?_0x4f5569()?_0x2a1f2f()?_0x296084([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b2c60()?(_0x49f3b1[_0x296084([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x296084([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4ead97=_0x713f15(_0x296084([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x23979d()):_0x296084([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x296084([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x296084([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x296084([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a1f2f(){const _0x2c4713=[_0x296084([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x296084([0x74,0x72,0x69,0x61,0x6c])][_0x296084([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49f3b1[_0x296084([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52ad38/0x3e8:0xe10*_0x1eb09d;return _0x49f3b1[_0x296084([0x65,0x78,0x70])]<_0x2c4713;}function _0x4f5569(){const _0x433efc=_0x49f3b1[_0x296084([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x433efc&&(!!_0x433efc[_0x296084([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x296084([0x2a]))||!!_0x433efc[_0x296084([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x296084([0x50,0x41,0x47])));}function _0x1b2c60(){const _0x2745e7=_0x49f3b1[_0x296084([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2745e7||0x0==_0x2745e7[_0x296084([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x429c69}=new URL(window[_0x296084([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2745e7[_0x296084([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x429c69))return!0x0;const _0x1581e1=_0x429c69[_0x296084([0x73,0x70,0x6c,0x69,0x74])](_0x296084([0x2e]));return _0x2745e7[_0x296084([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1628e0=>_0x1628e0[_0x296084([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x296084([0x2a])))[_0x296084([0x6d,0x61,0x70])](_0x43febf=>_0x43febf[_0x296084([0x73,0x70,0x6c,0x69,0x74])](_0x296084([0x2e])))[_0x296084([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x480a4c=>_0x480a4c[_0x296084([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1581e1[_0x296084([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x296084([0x6d,0x61,0x70])](_0x480dee=>Array(_0x1581e1[_0x296084([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x480dee[_0x296084([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x296084([0x66,0x69,0x6c,0x6c])](_0x480dee[0x0]===_0x296084([0x2a])?_0x296084([0x2a]):'')[_0x296084([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x480dee))[_0x296084([0x73,0x6f,0x6d,0x65])](_0x125e11=>_0x1581e1[_0x296084([0x65,0x76,0x65,0x72,0x79])]((_0x53a41e,_0x2c6004)=>_0x125e11[_0x2c6004]===_0x53a41e||_0x125e11[_0x2c6004]===_0x296084([0x2a])));}function _0x23979d(){return _0x4ead97&&_0xd143f0?new window[(_0x296084([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2749a7,_0x4250eb)=>{_0x4ead97[_0x296084([0x74,0x68,0x65,0x6e])](_0x2749a7,_0x4250eb),_0xd143f0[_0x296084([0x74,0x68,0x65,0x6e])](_0x283d62=>{_0x283d62!=_0x296084([0x56,0x61,0x6c,0x69,0x64])&&_0x2749a7(_0x283d62);},_0x4250eb);}):_0x4ead97||_0xd143f0||_0x296084([0x56,0x61,0x6c,0x69,0x64]);}}function _0x43c346(_0x29b6e8,_0x3ab3fa){return new window[(_0x296084([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d3391=>{if(_0x39db24())return _0x1d3391(_0x296084([0x56,0x61,0x6c,0x69,0x64]));_0x4a3ca7(),_0x5b71ae[_0x296084([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x296084([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42ac01=!0x1;const _0x59abd9=_0x4e7932();function _0x26d636(_0x5af134){return!!_0x5af134&&(typeof _0x5af134===_0x296084([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5af134===_0x296084([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5af134[_0x296084([0x74,0x68,0x65,0x6e])]===_0x296084([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5af134[_0x296084([0x63,0x61,0x74,0x63,0x68])]===_0x296084([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x284ae4(_0x18cf8f){_0x3c8243(_0x18cf8f)[_0x296084([0x74,0x68,0x65,0x6e])](_0x5872e8=>{if(!_0x5872e8||_0x5872e8[_0x296084([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x296084([0x6f,0x6b]))return _0x296084([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31e36a(_0x150738(_0x59abd9+_0x3ab3fa))!=_0x5872e8[_0x296084([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x296084([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x296084([0x56,0x61,0x6c,0x69,0x64]);})[_0x296084([0x74,0x68,0x65,0x6e])](_0x52e690=>(_0x552e3e(),_0x52e690),()=>{const _0xa9a254=_0x2a363f();return null==_0xa9a254?(_0x552e3e(),_0x296084([0x56,0x61,0x6c,0x69,0x64])):_0x296084(_0x52ad38-_0xa9a254>(0x288e4f1e^_0x1febcb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x296084([0x74,0x68,0x65,0x6e])](_0x1d3391)[_0x296084([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d3391(_0x296084([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x17ace9=0xcb4259e^_0x1febcb;function _0x552e3e(){const _0xec5d41=_0x296084([0x6c,0x6c,0x63,0x74,0x2d])+_0x31e36a(_0x150738(_0x29b6e8)),_0x365ce2=_0x53cd56(_0x31e36a(window[_0x296084([0x4d,0x61,0x74,0x68])][_0x296084([0x63,0x65,0x69,0x6c])](_0x52ad38/_0x17ace9)));window[_0x296084([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x296084([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xec5d41,_0x365ce2);}function _0x2a363f(){const _0x269478=_0x296084([0x6c,0x6c,0x63,0x74,0x2d])+_0x31e36a(_0x150738(_0x29b6e8)),_0x327e88=window[_0x296084([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x296084([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x269478);return _0x327e88?window[_0x296084([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53cd56(_0x327e88),0x10)*_0x17ace9:null;}function _0x3c8243(_0x49e8a3){return new window[(_0x296084([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a350f,_0x5dd6ba)=>{_0x49e8a3[_0x296084([0x74,0x68,0x65,0x6e])](_0x2a350f,_0x5dd6ba),window[_0x296084([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dd6ba,0xc831fde^_0x1febcb);});}}_0x5b71ae[_0x296084([0x6f,0x6e])](_0x296084([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14c1b8,_0x3c8d23)=>{if(_0x3c8d23[0x0]!=_0x29b6e8)return _0x1d3391(_0x296084([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c8d23[0x1]={..._0x3c8d23[0x1],[_0x296084([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59abd9};},{[_0x296084([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x296084([0x68,0x69,0x67,0x68])}),_0x5b71ae[_0x296084([0x6f,0x6e])](_0x296084([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55f70c=>{_0x26d636(_0x55f70c[_0x296084([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42ac01=!0x0,_0x284ae4(_0x55f70c[_0x296084([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x296084([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x296084([0x6c,0x6f,0x77])}),_0x5863b4[_0x296084([0x74,0x68,0x65,0x6e])](()=>{_0x42ac01||_0x1d3391(_0x296084([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x39db24(){return _0x5b71ae[_0x296084([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x296084([0x76,0x69,0x65,0x77])][_0x296084([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x296084([0x61,0x75,0x74,0x6f]);}function _0x4a3ca7(){_0x5b71ae[_0x296084([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x296084([0x76,0x69,0x65,0x77])][_0x296084([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x296084([0x61,0x75,0x74,0x6f]);}}function _0x713f15(_0x193759){const _0x335758=[new window[(_0x296084([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e66d8=>setTimeout(_0x4e66d8,0xc8bf5d2^_0x1febcb)),_0x5863b4[_0x296084([0x74,0x68,0x65,0x6e])](()=>new window[(_0x296084([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c377d=>{let _0x524ed2=0x0;_0x5b71ae[_0x296084([0x6d,0x6f,0x64,0x65,0x6c])][_0x296084([0x6f,0x6e])](_0x296084([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x49947b,_0x165de4)=>{_0x165de4[0x0][_0x296084([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x524ed2++,_0x524ed2==(0xc82cef6^_0x1febcb)&&(_0x1c377d(),_0x49947b[_0x296084([0x6f,0x66,0x66])]());});}))];return window[_0x296084([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x296084([0x72,0x61,0x63,0x65])](_0x335758)[_0x296084([0x74,0x68,0x65,0x6e])](()=>_0x193759);}async function _0x3b9248(){await _0x5863b4,_0x5b71ae[_0x296084([0x6d,0x6f,0x64,0x65,0x6c])][_0x296084([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45272f,_0x5b71ae[_0x296084([0x6d,0x6f,0x64,0x65,0x6c])][_0x296084([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45272f,_0x5b71ae[_0x296084([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x296084([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb85ace(_0x50c860){const _0x3eb032=_0xa3a6c1();_0x5b71ae[_0x3eb032]=_0x296084([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x50c860,_0x50c860!=_0x296084([0x56,0x61,0x6c,0x69,0x64])&&_0x3b9248();}function _0xa3a6c1(){const _0x137e4=window[_0x296084([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x296084([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x296084([0x6e,0x6f,0x77])]())[_0x296084([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x296084([0x2e]),'');let _0x56ac54=_0x296084([0x49]);for(let _0x207c66=0x0;_0x207c66<_0x137e4[_0x296084([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x207c66+=0x2){let _0x416820=window[_0x296084([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x137e4[_0x296084([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x207c66,_0x207c66+0x2));_0x416820>=_0xd3489a[_0x296084([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x416820-=_0xd3489a[_0x296084([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x56ac54+=_0xd3489a[_0x416820];}return _0x56ac54;}function _0x563120(){const _0x21478b=_0x23bf75[_0x296084([0x73,0x70,0x6c,0x69,0x74])](_0x296084([0x2e]));if(0x3!=_0x21478b[_0x296084([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x162205(_0x21478b[0x1]);function _0x162205(_0xb1283e){const _0xa1d7ea=_0x3f3ecd(_0xb1283e);return _0xa1d7ea&&_0x50fafb()?_0xa1d7ea:null;function _0x50fafb(){const _0x5389bc=_0xa1d7ea[_0x296084([0x6a,0x74,0x69])],_0x109da9=window[_0x296084([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5389bc[_0x296084([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5389bc[_0x296084([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x99ea77={..._0xa1d7ea,[_0x296084([0x6a,0x74,0x69])]:_0x5389bc[_0x296084([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5389bc[_0x296084([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x99ea77[_0x296084([0x76,0x63])],_0x150738(_0x99ea77)==_0x109da9;}}}async function _0x2d93c4(){let _0x2e14c0=!0x0;try{const _0x173849=_0x23bf75[_0x296084([0x73,0x70,0x6c,0x69,0x74])](_0x296084([0x2e])),[_0x19a28a,_0x561ad5,_0x5b644e]=_0x173849;return _0x3cbe9d(_0x19a28a),await _0x343d38(_0x19a28a,_0x561ad5,_0x5b644e),_0x2e14c0;}catch{return!0x1;}function _0x3cbe9d(_0x17c8b4){const _0x464e93=_0x3f3ecd(_0x17c8b4);_0x464e93&&_0x464e93[_0x296084([0x61,0x6c,0x67])]==_0x296084([0x45,0x53,0x32,0x35,0x36])||(_0x2e14c0=!0x1);}async function _0x343d38(_0x2eb8da,_0x259453,_0x2b318b){const _0x50e4d0=window[_0x296084([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x296084([0x66,0x72,0x6f,0x6d])](_0xf0e1f3(_0x2b318b),_0x4c879e=>_0x4c879e[_0x296084([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3a2a59=new window[(_0x296084([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x296084([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2eb8da+_0x296084([0x2e])+_0x259453),_0x4a073f=window[_0x296084([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x296084([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a073f)return;const _0x2fe445=await _0x4a073f[_0x296084([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x296084([0x6a,0x77,0x6b]),_0x389168,{[_0x296084([0x6e,0x61,0x6d,0x65])]:_0x296084([0x45,0x43,0x44,0x53,0x41]),[_0x296084([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x296084([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x296084([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a073f[_0x296084([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x296084([0x6e,0x61,0x6d,0x65])]:_0x296084([0x45,0x43,0x44,0x53,0x41]),[_0x296084([0x68,0x61,0x73,0x68])]:{[_0x296084([0x6e,0x61,0x6d,0x65])]:_0x296084([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2fe445,_0x50e4d0,_0x3a2a59)||(_0x2e14c0=!0x1);}}function _0x3f3ecd(_0x5dce7d){return _0x5dce7d[_0x296084([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x296084([0x65,0x79]))?JSON[_0x296084([0x70,0x61,0x72,0x73,0x65])](_0xf0e1f3(_0x5dce7d)):null;}function _0xf0e1f3(_0x2d678a){return window[_0x296084([0x61,0x74,0x6f,0x62])](_0x2d678a[_0x296084([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x296084([0x2b]))[_0x296084([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x296084([0x2f])));}function _0x150738(_0x1dbeb5){let _0x56aaf7=0x1505;function _0x36038c(_0x355844){for(let _0x143be0=0x0;_0x143be0<_0x355844[_0x296084([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x143be0++){const _0x46a20d=_0x355844[_0x296084([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x143be0);_0x56aaf7=(_0x56aaf7<<0x5)+_0x56aaf7+_0x46a20d,_0x56aaf7&=_0x56aaf7;}}function _0x38b80b(_0x59b3b8){Array[_0x296084([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x59b3b8)?_0x59b3b8[_0x296084([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38b80b):_0x59b3b8&&typeof _0x59b3b8==_0x296084([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x296084([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x59b3b8)[_0x296084([0x73,0x6f,0x72,0x74])]()[_0x296084([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a3a39,_0x57010e])=>{_0x36038c(_0x5a3a39),_0x38b80b(_0x57010e);}):_0x36038c(window[_0x296084([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x59b3b8));}return _0x38b80b(_0x1dbeb5),_0x56aaf7>>>0x0;}function _0x31e36a(_0x144840){return _0x144840[_0x296084([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x296084([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x296084([0x30]));}function _0x53cd56(_0x316b5b){return _0x316b5b[_0x296084([0x73,0x70,0x6c,0x69,0x74])]('')[_0x296084([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x296084([0x6a,0x6f,0x69,0x6e])]('');}function _0x45272f(){}function _0x296084(_0x524888){return _0x524888['map'](_0x5a9995=>String['fromCharCode'](_0x5a9995))['join']('');}_0xb85ace(await _0xb4f3f0());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x9d7df5=this['editor'],_0xf4fe7d=_0x9d7df5['editing']['view'],_0x1b79d4=this['_getAttachedDomRoot']();if(!_0x1b79d4||0x0===_0x1b79d4['childElementCount'])return void _0x9d7df5['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x438750,pageHeight:_0x1ae65b}=_0x9d7df5['config']['get']('pagination'),{top:_0x4e85f5,left:_0x3f15b4,bottom:_0x446f93,right:_0x4b8395}=this['_configuredPaddings'];this['_pagesContainer']=new _0xe54d9d(_0x9d7df5['locale']);const _0x597214=this['_pagesContainer'];_0x597214['set']('class',''),_0x597214['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x438750,'width':_0x438750,'height':'calc(\x20'+_0x1ae65b+'\x20-\x20'+_0x4e85f5+'\x20-\x20'+_0x446f93+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x4b8395+'\x200\x20'+_0x3f15b4,'columnGap':'calc('+_0x3f15b4+'\x20+\x20'+_0x4b8395+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x597214['bindTemplate']['to']('class')}}),_0x597214['render'](),_0x1b79d4['parentNode']['insertBefore'](_0x597214['element'],_0x1b79d4['nextSibling']),this['listenTo'](_0xf4fe7d,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x3c7d53 of this['editor']['editing']['view']['domRoots']['values']())if(_0x3c7d53['ownerDocument']['body']['contains'](_0x3c7d53))return _0x3c7d53;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x2bf046=this['editor']['editing']['view'],_0x44ffe9=this['_pagesContainer'],_0x2da705=this['_getAttachedDomRoot']();if(!_0x2da705)return Promise['resolve']();for(_0x44ffe9['class']=['ck-reset','ck-pagination-view',..._0x2da705['classList']]['join']('\x20');_0x44ffe9['element']['firstChild'];)_0x44ffe9['element']['firstChild']['remove']();const _0x1374c1=Array['from'](_0x2bf046['domRoots']);_0x1374c1['sort'](([,_0x26589a],[,_0x56b5a2])=>_0x26589a['compareDocumentPosition'](_0x56b5a2)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x2a15e3,_0x22aa6e]of _0x1374c1){const _0x1e5c72=_0x22aa6e['cloneNode'](!0x0);'attributeStyleMap'in _0x1e5c72&&_0x1e5c72['attributeStyleMap']['clear'](),_0x1e5c72['dataset']['rootName']=_0x2a15e3,_0x1e5c72['className']='ck-content\x20ck-pagination_enabled',_0x1e5c72['removeAttribute']('id'),_0x1e5c72['tabIndex']=-0x1,_0x44ffe9['element']['append'](_0x1e5c72);}const _0x5d35ed=Array['from'](_0x44ffe9['element']['querySelectorAll']('img'));return function(_0x435c1d){return Promise['all'](_0x435c1d['map'](_0x309528=>Promise['race']([k(_0x309528),v(0x3e8)])));}(_0x5d35ed)['then'](()=>{for(const _0x306117 of _0x5d35ed['filter'](_0x4dcfa2=>!_0x4dcfa2['closest']('table')))if(_0x306117['offsetParent']){const _0x2608b0=_0x486044['window']['getComputedStyle'](_0x306117),_0x5cad17=_0x486044['document']['createElement']('span');for(const _0x2b1532 of _0x2608b0)_0x5cad17['style']['setProperty'](_0x2b1532,_0x2608b0[_0x2b1532]);_0x5cad17['style']['backgroundImage']='url(\x20'+_0x306117['src']+'\x20)',_0x5cad17['style']['breakInside']='avoid','PICTURE'==_0x306117['parentElement']?.['tagName']?_0x306117['parentElement']['replaceWith'](_0x5cad17):_0x306117['replaceWith'](_0x5cad17);}return new Promise(_0x5cdc73=>_0x486044['window']['requestAnimationFrame'](()=>_0x5cdc73()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x4c425d=this['_pagesContainer']['element'];if(!_0x4c425d['ownerDocument']['body']['contains'](_0x4c425d))return;const _0x153ce1=new _0x5535b7(_0x4c425d)['excludeScrollbarsAndBorders'](),_0x384069=Math['floor'](_0x153ce1['width']+0x64),_0xcabc3f=_(_0x4c425d,Math['floor'](_0x153ce1['left']-_0x4c425d['scrollLeft']),_0x384069,_0x153ce1['height'])['map'](_0xbdb374=>this['_mapPageStarterInfoToPageBreakInfo'](_0xbdb374))['filter'](_0x4049a6=>!0x1!==_0x4049a6);_0xcabc3f['every'](_0x2bd5a9=>!!_0x2bd5a9)&&(this['pageBreaks']=_0xcabc3f);}['_mapPageStarterInfoToPageBreakInfo'](_0x1dc043){const _0x3b2589=this['editor']['editing']['view'],_0x4e19d2=this['editor']['editing']['mapper'],_0x3e94f7=_0x3b2589['domConverter'],_0x503f9f=_0x1dc043['path']['shift'](),_0x396612=this['_pagesContainer']['element']['childNodes'][_0x503f9f]['dataset']['rootName'],_0x480f40=_0x3b2589['getDomRoot'](_0x396612);if(!_0x480f40)return null;const _0x3a2886=function(_0xe6dfd1,_0x565814){let _0x329761=_0xe6dfd1;for(const _0x192e2d of _0x565814['path']){if(!_0x329761)return null;_0x329761=_0x329761['childNodes'][_0x192e2d];}return _0x329761;}(_0x480f40,_0x1dc043);if(!_0x3a2886)return null;const _0x1f40fa=_0x3e94f7['domPositionToView'](_0x3a2886,_0x1dc043['textOffset']||0x0);return _0x1f40fa?'manual'==_0x1dc043['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x1f40fa,_0x3a2886):'text'==_0x1dc043['type']&&_0x4e19d2['toModelPosition'](_0x1f40fa)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x1f40fa,_0x3a2886,_0x1dc043['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x1f40fa,_0x3a2886,_0x1dc043['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x75eb4d,_0x37251d){const _0xe2a9b0=this['editor']['model'],_0x52ec27=this['editor']['editing']['mapper']['toModelElement'](_0x75eb4d['parent']),_0x2db123=_0xe2a9b0['createRangeOn'](_0x52ec27);return new b({'type':'manual','modelRange':_0x2db123,'domNode':_0x37251d,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x5d962f,_0x5f068e,_0x112d37){const _0x481538=this['editor']['model'],_0x4aed96=this['editor']['editing']['mapper'],_0x41d68c=this['editor']['editing']['view']['domConverter'];if(_0x112d37>=_0x5f068e['length'])return null;const _0x54db19=_0x4aed96['toModelPosition'](_0x5d962f),_0x34daf3=_0x481538['createRange'](_0x54db19),_0xa4d990=_0x4aed96['findMappedViewAncestor'](_0x5d962f),_0x1c8a07=_0x41d68c['mapViewToDom'](_0xa4d990);return new b({'type':'text','modelRange':_0x34daf3,'domNode':_0x5f068e,'offset':P(_0x5f068e,_0x112d37,_0x1c8a07)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x3989e7,_0x374bc1,_0x273df5){const _0x24741c=this['editor']['model'],_0x10f45b=this['editor']['editing'],_0x3ed5c0=_0x10f45b['mapper'],_0x3cba97=_0x10f45b['view']['domConverter'],_0x2854b7=_0x3ed5c0['findMappedViewAncestor'](_0x3989e7),_0x19ad3f=_0x3ed5c0['toModelElement'](_0x2854b7);if(!_0x19ad3f||_0x19ad3f['is']('element','$root'))return!0x1;const _0x19d30c=function(_0x312bbb){const _0x33c8ab=_0x312bbb['parent'],_0x497285=_0x33c8ab['root']['document']['model'],_0x320909=_0x33c8ab['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x32ccdb=null;for(const _0x10c5f0 of _0x320909){if(_0x10c5f0['is']('rootElement'))return _0x32ccdb;if(!_0x497285['createPositionBefore'](_0x10c5f0)['isTouching'](_0x312bbb))return _0x32ccdb;_0x32ccdb=_0x10c5f0;}}(_0x24741c['createPositionBefore'](_0x19ad3f)),_0x3d2af1=_0x19d30c||_0x19ad3f;let _0x310f9e=_0x3ed5c0['toViewElement'](_0x3d2af1),_0x3f9263=_0x24741c['createRangeOn'](_0x3d2af1);const _0x720194=_0x24741c['createPositionBefore'](_0x3d2af1)['nodeBefore'];if(_0x720194&&_0x720194['is']('element','imageBlock')){const _0x544143=_0x3ed5c0['toViewElement'](_0x720194),_0x4f8642=_0x3cba97['mapViewToDom'](_0x544143),_0x159f2b=_0x486044['window']['getComputedStyle'](_0x4f8642)['float'];'left'!=_0x159f2b&&'right'!=_0x159f2b||(_0x3f9263=_0x24741c['createRangeOn'](_0x720194));}for(;_0x310f9e['parent']!==_0x310f9e['root']&&0x0===_0x310f9e['index'];)_0x310f9e=_0x310f9e['parent'];const _0x3298ff=new _0x5535b7(I(_0x374bc1)?_0x374bc1:x(_0x374bc1)),_0x2b5621=_0x273df5?_0x3298ff['height']-_0x273df5:0x0,_0x561fbd=_0x3cba97['mapViewToDom'](_0x310f9e),_0x1a6a7a=new _0x5535b7(_0x561fbd);return new b({'type':'element','modelRange':_0x3f9263,'domNode':_0x561fbd,'offset':Math['round'](_0x2b5621)||_0x2854b7!=y(_0x3989e7)?_0x2b5621+_0x3298ff['top']-_0x1a6a7a['top']:0x0});}get['_configuredPaddings'](){const _0x33a3c1=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x33a3c1);}static['_findPageStarterInfos'](_0x4a4a30,_0xdf5c7c,_0xab1295,_0x6d584d,_0x3539d0){return _(_0x4a4a30,_0xdf5c7c,_0xab1295,_0x6d584d,_0x3539d0);}}class b{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x3ce120,modelRange:_0x172153,domNode:_0x2827b2,offset:_0x416dc4}){this['type']=_0x3ce120,this['modelRange']=_0x172153,this['_domNode']=_0x2827b2,this['_offset']=_0x416dc4;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x25e211=new _0x5535b7(I(this['_domNode'])?this['_domNode']:x(this['_domNode']));return'manual'==this['type']?_0x25e211['top']+_0x25e211['height']/0x2:_0x25e211['top']+this['_offset'];}}function P(_0x4db68d,_0x31183f,_0x41470a){const _0x276fca=x(_0x4db68d),_0x32e1e0=function(_0x1403be){const _0x1ed094=_0x486044['document']['createRange']();return _0x1ed094['selectNodeContents'](_0x1403be),_0x1ed094;}(_0x41470a);let _0x48fc77;_0x48fc77=0x0==_0x31183f?L(_0x32e1e0['startContainer'],_0x32e1e0['startOffset'],_0x4db68d['parentNode'],Array['from'](_0x4db68d['parentNode']['childNodes'])['indexOf'](_0x4db68d)):L(_0x32e1e0['startContainer'],_0x32e1e0['startOffset'],_0x4db68d,_0x31183f);const _0x55ed12=L(_0x4db68d,_0x31183f,_0x32e1e0['endContainer'],_0x32e1e0['endOffset']),_0x2fc0ca=new _0x5535b7(_0x48fc77)['bottom'];return(new _0x5535b7(_0x55ed12)['top']+_0x2fc0ca)/0x2-new _0x5535b7(_0x276fca)['top'];}function y(_0x5b3889){let _0x5d1d51=_0x5b3889['parent'];for(;_0x5d1d51['is']('$text')||_0x5d1d51['is']('attributeElement');)_0x5d1d51=_0x5d1d51['parent'];return _0x5d1d51;}function k(_0x1bcfa3){return _0x1bcfa3['hasAttribute']('width')&&_0x1bcfa3['hasAttribute']('height')?Promise['resolve']():new Promise(_0x1700e2=>{function _0x16cd59(){_0x1bcfa3['removeEventListener']('load',_0x16cd59),_0x1bcfa3['removeEventListener']('error',_0x16cd59),_0x1700e2();}_0x1bcfa3['complete']?_0x1700e2():(_0x1bcfa3['addEventListener']('load',_0x16cd59),_0x1bcfa3['addEventListener']('error',_0x16cd59));});}function v(_0x219285){return new Promise(_0x3826c4=>setTimeout(_0x3826c4,_0x219285));}function x(_0x5a1ea0){const _0x35be2f=_0x486044['document']['createRange']();return _0x35be2f['selectNode'](_0x5a1ea0),_0x35be2f;}function N(_0x1b4c96,_0xa2f1b2,_0x2cb12e){const _0x56b55f=_0x486044['document']['createRange']();return _0x56b55f['setStart'](_0x1b4c96,_0xa2f1b2),_0x56b55f['setEnd'](_0x1b4c96,_0x2cb12e),_0x56b55f;}function L(_0x5b0fc3,_0x2b7c88,_0x1d3c3e,_0x1f4a2f){const _0x255f5a=_0x486044['document']['createRange']();return _0x255f5a['setStart'](_0x5b0fc3,_0x2b7c88),_0x255f5a['setEnd'](_0x1d3c3e,_0x1f4a2f),_0x255f5a;}function _(_0x94c66b,_0x1f3c4c,_0x34c082,_0x48fff6,_0xa38763){const _0x1ac70c=[];for(const [_0x357a15,_0x3a3fd0]of _0x94c66b['childNodes']['entries']()){let _0x365c63=[];I(_0x3a3fd0)&&_0x3a3fd0['offsetParent']&&['static','relative']['includes'](_0x486044['window']['getComputedStyle'](_0x3a3fd0)['position'])?_0x365c63=S(_0x3a3fd0,_0x357a15,_0x1f3c4c,_0x34c082,_0x48fff6,_0xa38763):O(_0x3a3fd0)&&(_0x365c63=E(_0x3a3fd0,_0x357a15,_0x1f3c4c,_0x34c082,_0xa38763)),_0x365c63['length']&&(_0x1ac70c['push'](..._0x365c63),_0x1f3c4c+=_0x365c63['length']*_0x34c082,_0xa38763=!0x1);}return _0x1ac70c;}function S(_0x5a92f4,_0x11b7ad,_0x3c9230,_0x3ffc7c,_0x729524,_0xf2d0c7){const _0x1146b8=[];var _0x197b1f;if((_0x197b1f=_0x5a92f4['previousSibling'])&&I(_0x197b1f)&&Boolean(_0x197b1f['classList']['contains']('page-break')||_0x197b1f['closest']('.page-break'))&&(_0x1146b8['push']({'type':'manual','offset':0x0,'path':[_0x11b7ad-0x1]}),_0xf2d0c7=!0x0),'table-row'==_0x486044['window']['getComputedStyle'](_0x5a92f4)['display']){let _0x5630c9=0x0,_0x510da1=!0x1;for(const _0x544e9b of _0x5a92f4['getClientRects']())_0x5630c9+=_0x544e9b['height'],_0x544e9b['left']>=_0x3c9230&&(_0x510da1=!0x0);if(_0x5630c9<_0x729524&&_0x510da1)return _0xf2d0c7||_0x1146b8['push']({'type':'element','offset':0x0,'path':[_0x11b7ad]}),_0x1146b8;}const _0x225beb=_0x5a92f4['closest']('figure.image');if(_0x225beb&&function(_0x15aa06){let _0x535847=!0x1;const _0x24f913=_0x15aa06['parentElement'],_0x5913a4=_0x24f913['dataset']['rootName'],_0x47774c=_0x15aa06['nextElementSibling'],_0x6a1bc8=_0x15aa06['previousElementSibling'],_0x51a127=_0x47774c&&_0x486044['window']['getComputedStyle'](_0x47774c)['float'],_0x2fe45e=_0x47774c&&'ck-fake-selection-container'===_0x47774c['className'];!_0x5913a4||_0x47774c||_0x6a1bc8||(_0x535847=!0x0),_0x5913a4&&!_0x6a1bc8&&_0x2fe45e&&(_0x535847=!0x0),_0x5913a4&&!_0x6a1bc8&&'none'!==_0x51a127&&(_0x535847=!0x0);if(_0x535847)return!0x1;return!0x0;}(_0x225beb)){const _0x1fd63e=_0x486044['window']['getComputedStyle'](_0x225beb)['float'];if('left'==_0x1fd63e||'right'==_0x1fd63e)return _0x1146b8;}const _0x4685f1=_(_0x5a92f4,_0x3c9230,_0x3ffc7c,_0x729524,_0xf2d0c7);if(_0x4685f1['length']){for(const _0xbde2aa of _0x4685f1)_0x1146b8['push']({'type':_0xbde2aa['type'],'offset':_0xbde2aa['offset'],'textOffset':_0xbde2aa['textOffset'],'path':[_0x11b7ad,..._0xbde2aa['path']]}),_0x3c9230+=_0x3ffc7c,_0xf2d0c7=!0x1;return _0x1146b8;}return _0x1146b8['push'](...function(_0x18160e,_0x2d6ddd,_0x5698d4,_0x27253,_0xd66ce5){const _0xde41a9=[];if('table-cell'==_0x486044['window']['getComputedStyle'](_0x18160e)['display'])return[];const _0x2ca317=[];for(const _0x2432bf of _0x18160e['getClientRects']())if(_0x2432bf['left']>=_0x5698d4){for(const _0x498228 of _0x2ca317)_0x498228['height']+=_0x2432bf['height'];_0x2ca317['push']({'height':_0x2432bf['height']}),_0x5698d4+=_0x27253;}for(const _0x6758b4 of _0x2ca317)_0xd66ce5||_0xde41a9['push']({'type':'element','offset':_0x6758b4['height'],'textOffset':0x0,'path':[_0x2d6ddd]}),_0xd66ce5=!0x1;return _0xde41a9;}(_0x5a92f4,_0x11b7ad,_0x3c9230,_0x3ffc7c,_0xf2d0c7)),_0x1146b8;}function E(_0x44c36e,_0x3d4913,_0x124239,_0x1a0396,_0x579991){const _0x421c65=x(_0x44c36e),_0x4c02e2=[];let _0xe1d40f=0x0;for(const _0x464f7f of _0x421c65['getClientRects']())if(_0x464f7f['left']>=_0x124239){const _0x4182e5=R(_0x44c36e,_0xe1d40f,_0x124239,_0x1a0396);_0x579991||_0x4c02e2['push']({'type':'text','path':[_0x3d4913],'textOffset':_0x4182e5}),_0xe1d40f=_0x4182e5,_0x124239+=_0x1a0396,_0x579991=!0x1;}return _0x4c02e2;}function R(_0x409bed,_0x31e84a,_0x303773,_0x11dd7a){let _0xc3a54c=_0x31e84a,_0xf9ae3b=_0x409bed['length'];for(;_0xf9ae3b-_0xc3a54c>0x1;){const _0x484037=Math['ceil']((_0xc3a54c+_0xf9ae3b)/0x2);K(N(_0x409bed,_0xc3a54c,_0x484037),_0x303773,_0x11dd7a)?_0xf9ae3b=_0x484037:_0xc3a54c=_0x484037;}return _0xc3a54c;}function K(_0x1e0ce4,_0x372d51,_0x15b3d1){for(const _0x5d8999 of _0x1e0ce4['getClientRects']())if(_0x5d8999['left']>=_0x372d51&&_0x5d8999['left']<_0x372d51+_0x15b3d1)return!0x0;return!0x1;}function I(_0x32f50c){return _0x32f50c['nodeType']==Node['ELEMENT_NODE'];}function O(_0x5c31b3){return _0x5c31b3['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xb71ba8('px');class T extends _0xe54d9d{constructor(){super();const _0x47e899=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x47e899['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x47e899['if']('isVisible','ck-hidden',_0x5ba7d5=>!_0x5ba7d5)],'style':{'left':_0x47e899['to']('left',_0x3bc66d=>B(_0x3bc66d)),'top':_0x47e899['to']('top',_0x5ebb6f=>B(_0x5ebb6f)),'width':_0x47e899['to']('width',_0x559820=>B(_0x559820))}}});}}class A{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x4bcaac){this['_viewCollection']=_0x4bcaac['ui']['view']['body'];}['destroy'](){for(const _0x5d38e2 of this['_hiddenLines'])_0x5d38e2['destroy']();}['cleanLines'](){for(const _0x377350 of this['_visibleLines'])_0x377350['isVisible']=!0x1,this['_hiddenLines']['add'](_0x377350);this['_visibleLines']['clear']();}['showLine'](_0x48bcc2,_0x26d6f5,_0x46e5b6,_0x25c20b){let _0x9db309;this['_hiddenLines']['size']?(_0x9db309=_0x3c5085(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x9db309)):_0x9db309=new T(),_0x9db309['set']({'pageNumber':_0x25c20b,'left':_0x48bcc2,'top':_0x26d6f5,'width':_0x46e5b6}),_0x9db309['isVisible']=!0x0,this['_viewCollection']['has'](_0x9db309)||this['_viewCollection']['add'](_0x9db309),this['_visibleLines']['add'](_0x9db309);}['setViewCollection'](_0x2529e2){for(const _0x477c3c of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x477c3c)&&this['_viewCollection']['remove'](_0x477c3c);this['_viewCollection']=_0x2529e2;}}const D='ck-pagination_enabled';class $ extends _0x3b9ba4{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new A(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](D),this['on']('change:isEnabled',(_0x866a6f,_0x3dfe37,_0x2de572)=>{_0x2de572||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x2de572);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x4ad097){if(!this['isEnabled'])return;const _0x5a9716=_0x4ad097>0x1?this['_getPageBreakLineOffset'](_0x4ad097-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x5a9716-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x3378fe['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x5c353a=this['editor'],_0x4cdb64=this['_getAttachedDomRoot']();_0x4cdb64?(this['_scrollableEditingRootDomAncestor']&&_0x5c353a['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x52aaec){let _0x1be8b8=_0x52aaec;do{_0x1be8b8=_0x1be8b8['parentElement'];const _0x1a1aa3=_0x486044['window']['getComputedStyle'](_0x1be8b8)['overflowY'];if('auto'==_0x1a1aa3||'scroll'==_0x1a1aa3)break;}while('BODY'!=_0x1be8b8['tagName']);return _0x1be8b8;}(_0x4cdb64),_0x5c353a['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0xf2be82(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x5c353a['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x387d1f=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x387d1f['ui']['view']['listenTo'](_0x486044['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x387d1f['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x45ad70 of this['editor']['editing']['view']['domRoots']['values']())if(_0x45ad70['ownerDocument']['body']['contains'](_0x45ad70))return _0x45ad70;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x5156cd=this['_getAttachedDomRoot'](),_0x23ab8c=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x5156cd||0x1==_0x23ab8c['length'])return void(this['pageNumber']=0x1);const _0x50404e=new _0x5535b7(_0x5156cd)['excludeScrollbarsAndBorders'](),_0x50df0d=new _0x5535b7(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x44622f=_0x50df0d['top']+_0x50df0d['height']/0x3;let _0x2487eb=!0x1;const _0x1efbac=[];for(let _0x19ded0=0x1;_0x19ded0<_0x23ab8c['length'];_0x19ded0++){const _0x27a9c2=this['_getPageBreakLineOffset'](_0x19ded0,_0x50df0d);if(!_0x27a9c2)continue;const _0x235077=_0x50df0d['top']+_0x27a9c2-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x1efbac['push']({'pageOffsetTop':_0x235077,'domRootRect':_0x50404e,'domScrollableRect':_0x50df0d,'pageNumber':_0x19ded0}),_0x235077>_0x44622f&&!_0x2487eb&&(this['pageNumber']=_0x19ded0,_0x2487eb=!0x0);}this['_renderPageBreakLines'](_0x1efbac),_0x2487eb||(this['pageNumber']=_0x23ab8c['length']);}['_renderPageBreakLines'](_0x1e3794){const {scrollX:_0x195401,scrollY:_0x294920}=_0x486044['window'];if(_0x1e3794['length']){for(const {domScrollableRect:_0x31321d,pageOffsetTop:_0x4df52d,domRootRect:_0x35e79f,pageNumber:_0x1a1649}of _0x1e3794)_0x31321d['top']<_0x4df52d&&_0x4df52d<_0x31321d['bottom']&&this['linesRepository']['showLine'](_0x35e79f['left']+_0x195401,_0x4df52d+_0x294920,_0x35e79f['width'],_0x1a1649+0x1);}}['_getPageBreakLineOffset'](_0x356ac6,_0x38ceb7=null){const _0x19cdc3=this['_paginationLookupPlugin']['pageBreaks'][_0x356ac6]['offset'];return _0x19cdc3?(_0x38ceb7||(_0x38ceb7=new _0x5535b7(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x19cdc3-_0x38ceb7['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x2a1088,_0x449b9e=!0x0){const _0xa52e9e=this['editor']['editing']['view'];_0xa52e9e['change'](_0x30d36c=>{for(const _0x6407e0 of _0xa52e9e['document']['roots'])_0x449b9e?_0x30d36c['addClass'](_0x2a1088,_0x6407e0):_0x30d36c['removeClass'](_0x2a1088,_0x6407e0);});}}function G(_0x4223bc,_0x111d25,..._0x3edbac){const t=_0x4223bc['t'];switch(_0x111d25){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)',..._0x3edbac);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 _0x111d25;}}class C extends _0x3b9ba4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[w,$];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x55e2a3=this['editor']['plugins']['get']('Pagination'),_0x5d5b20=this['editor']['plugins']['get'](w),_0x5ab06c=this['editor']['plugins']['get']($);this['bind']('isEnabled')['to'](_0x55e2a3),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x5ab06c),this['listenTo'](_0x5d5b20,'change:pageBreaks',(_0x274212,_0x378121,_0x1aaee3,_0x3cf536)=>{this['totalPages']=_0x1aaee3['length'],this['_updatePageBreakMarkers'](_0x1aaee3,_0x3cf536);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4b72ac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x59c5a9;for(const _0x2ddfc9 in _0x4b72ac){const _0x8f1918=_0x2ddfc9,_0x240c3d=_0x4b72ac[_0x8f1918];if('paginationLicenseKeyValid'==_0x240c3d||'paginationLicenseKeyInvalid'==_0x240c3d||'paginationLicenseKeyExpired'==_0x240c3d||'paginationLicenseKeyDomainLimit'==_0x240c3d||'paginationLicenseKeyNotAllowed'==_0x240c3d||'paginationLicenseKeyEvaluationLimit'==_0x240c3d||'paginationLicenseKeyUsageLimit'==_0x240c3d){delete _0x4b72ac[_0x8f1918],_0x59c5a9=_0x240c3d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x59c5a9&&_0x4b72ac['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x59c5a9&&_0x4b72ac['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x59c5a9&&_0x4b72ac['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x59c5a9&&_0x4b72ac['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x59c5a9&&_0x4b72ac['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x59c5a9&&_0x4b72ac['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x359416){if(!this['isEnabled'])return;this['editor']['plugins']['get']($)['scrollToPage'](this['_validatePageNumber'](_0x359416));}['moveSelectionToPage'](_0x245990){if(!this['isEnabled'])return;const _0x5af0b3=this['editor'],_0x654a09=this['editor']['plugins']['get'](w)['pageBreaks'][_0x245990-0x1];_0x654a09&&_0x5af0b3['model']['change'](_0x137566=>{switch(_0x654a09['type']){case'manual':{const _0x2a3385=_0x5af0b3['model']['schema']['getNearestSelectionRange'](_0x654a09['modelRange']['end'],'forward');_0x137566['setSelection'](_0x2a3385);break;}case'element':{const _0x3314bf=_0x5af0b3['model']['schema']['getNearestSelectionRange'](_0x654a09['modelRange']['start'],'forward');_0x137566['setSelection'](_0x3314bf);break;}case'text':{const _0x1a5754=_0x654a09['modelRange']['start'];if(_0x1a5754['textNode']&&'\x20'===_0x1a5754['textNode']['data'][_0x1a5754['offset']]){const _0x34812a=_0x137566['createPositionAt'](_0x1a5754['parent'],_0x1a5754['offset']+0x1);_0x137566['setSelection'](_0x34812a);}else _0x137566['setSelection'](_0x654a09['modelRange']);}}_0x5af0b3['editing']['view']['focus']();});}['goToNextPage'](){const _0x420d0d=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x420d0d),this['scrollToPage'](_0x420d0d);}['goToPreviousPage'](){const _0x26ce5d=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x26ce5d),this['scrollToPage'](_0x26ce5d);}['_updatePageBreakMarkers'](_0x883c6a,_0x37c39a){const _0x342345=this['editor']['model'];this['isEnabled']&&_0x342345['change'](_0x20ec7d=>{for(let _0x20d24b=0x1;_0x20d24b<_0x883c6a['length'];_0x20d24b++){const _0x232c12=_0x883c6a[_0x20d24b]['modelRange'],_0x150e65='pagination:'+(_0x20d24b+0x1);_0x342345['markers']['has'](_0x150e65)?_0x20ec7d['updateMarker'](_0x150e65,{'range':_0x232c12}):_0x20ec7d['addMarker'](_0x150e65,{'range':_0x232c12,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x8e7661=_0x883c6a['length'];_0x8e7661<_0x37c39a['length'];_0x8e7661++){const _0x4f3399='pagination:'+(_0x8e7661+0x1);_0x342345['markers']['has'](_0x4f3399)&&_0x20ec7d['removeMarker'](_0x4f3399);}});}['_setUpDataDowncastConversion'](){const _0x5a81ee='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x353f15=>{_0x353f15['on']('addMarker:'+_0x5a81ee,(_0x5c63be,{markerRange:_0x502a26,markerName:_0x4da6ce},_0x458ba8)=>{if(!_0x458ba8['options']['pagination'])return;if(!_0x458ba8['consumable']['consume'](_0x502a26,_0x5c63be['name']))return;const _0x12e53e=_0x502a26['getContainedElement']();let _0x45911d=_0x12e53e?_0x458ba8['mapper']['toViewElement'](_0x12e53e):null;if(!_0x45911d){const _0x82e420=_0x502a26['start'];if(_0x458ba8['schema']['checkChild'](_0x82e420,'$text')){const _0x392a35=_0x458ba8['mapper']['toViewPosition'](_0x82e420);_0x45911d=_0x458ba8['writer']['createContainerElement']('span'),_0x45911d['getFillerOffset']=()=>null,_0x458ba8['writer']['insert'](_0x392a35,_0x45911d);}else{const _0x405b6b=_0x82e420['nodeAfter'];_0x45911d=_0x458ba8['mapper']['toViewElement'](_0x405b6b);}}for(;_0x45911d['parent']!==_0x45911d['root']&&0x0===_0x45911d['index'];)_0x45911d=_0x45911d['parent'];const _0x2c4498=_0x4da6ce['substring'](0xb);_0x45911d['hasClass']('page-break')||(_0x458ba8['writer']['setStyle']('page-break-before','always',_0x45911d),_0x458ba8['writer']['setAttribute']('data-pagination-page',_0x2c4498,_0x45911d),_0x458ba8['mapper']['bindElementToMarker'](_0x45911d,_0x4da6ce)),_0x5c63be['stop']();});});}['_setupKeystrokes'](){const _0x207551=this['editor'];_0x207551['keystrokes']['set']('Shift+Pageup',(_0x1280ac,_0x5c15bc)=>{this['goToPreviousPage'](),_0x5c15bc();}),_0x207551['keystrokes']['set']('Shift+Pagedown',(_0x340615,_0x4d7aae)=>{this['goToNextPage'](),_0x4d7aae();}),_0x207551['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':G(_0x207551['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':G(_0x207551['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':G(_0x207551['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x523832){return _0x523832<0x1&&(_0x523832=0x1),_0x523832>this['totalPages']&&(_0x523832=this['totalPages']),_0x523832;}}class U extends _0xe54d9d{['pageNumberView'];constructor(_0x3f920e){super(_0x3f920e);const _0x442516=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x1837f5(_0x3f920e,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x3c5b13=>G(_0x3f920e,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x3c5b13)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x3e816c=>!_0x3e816c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x442516['if']('isEnabled','ck-disabled',_0x422020=>!_0x422020)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x442516['to']('totalPages')}]}]});}['render'](){super['render']();const _0x19899f=this['pageNumberView']['element'],_0x115ee5=_0x444585=>{this['pageNumberView']['element']['value']=String(_0x444585);};_0x115ee5(this['pageNumber']),this['on']('change:pageNumber',(_0x33c7ea,_0x406614,_0xcd40a9)=>{_0x115ee5(_0xcd40a9);}),this['listenTo'](_0x19899f,'keydown',(_0x1bdd96,_0x18b7bc)=>{if('ArrowUp'===_0x18b7bc['key']||'ArrowDown'===_0x18b7bc['key'])return void _0x18b7bc['stopPropagation']();if(_0x18b7bc['keyCode']!==_0x50adbf['enter'])return;_0x18b7bc['preventDefault']();const _0x1814dd=_0x19899f['valueAsNumber'];Number['isNaN'](_0x1814dd)?_0x19899f['value']=String(this['pageNumber']):(_0x19899f['checkValidity']()?this['pageNumber']=_0x1814dd:_0x1814dd>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x19899f['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x19899f['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x19899f,'blur',()=>{_0x19899f['value']=String(this['pageNumber']);}),this['listenTo'](_0x19899f,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class M extends _0x3b9ba4{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x453dc2=this['editor'],_0x2e544e=_0x453dc2['plugins']['get']('PaginationEditing');_0x453dc2['ui']['componentFactory']['add']('pageNavigation',_0x2a9372=>{const _0x2542d0=new U(_0x2a9372);return _0x2542d0['bind']('pageNumber')['to'](_0x2e544e),_0x2542d0['bind']('totalPages')['to'](_0x2e544e),_0x2542d0['bind']('isEnabled')['to'](_0x2e544e),_0x2542d0['on']('navigation',(_0x3cbd0c,_0x3870e6)=>{_0x2e544e['moveSelectionToPage'](_0x3870e6),_0x2e544e['scrollToPage'](_0x3870e6);}),_0x2542d0;}),_0x453dc2['ui']['componentFactory']['add']('nextPage',_0x4226dc=>{const _0x5c611e=new _0x543866(_0x4226dc);return _0x5c611e['isEnabled']=!0x0,_0x5c611e['label']=G(_0x453dc2['locale'],'Go\x20to\x20next\x20page'),_0x5c611e['icon']=_0x1268e6,_0x5c611e['tooltip']=!0x0,_0x5c611e['keystroke']='Shift+PageDown',_0x5c611e['bind']('isEnabled')['to'](_0x2e544e),this['listenTo'](_0x5c611e,'execute',()=>{_0x2e544e['goToNextPage']();}),_0x5c611e;}),_0x453dc2['ui']['componentFactory']['add']('previousPage',_0x489298=>{const _0x2d4c89=new _0x543866(_0x489298);return _0x2d4c89['isEnabled']=!0x0,_0x2d4c89['label']=G(_0x453dc2['locale'],'Go\x20to\x20previous\x20page'),_0x2d4c89['icon']=_0x341d9e,_0x2d4c89['tooltip']=!0x0,_0x2d4c89['keystroke']='Shift+PageUp',_0x2d4c89['bind']('isEnabled')['to'](_0x2e544e),this['listenTo'](_0x2d4c89,'execute',()=>{_0x2e544e['goToPreviousPage']();}),_0x2d4c89;});}}class j extends _0x3b9ba4{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C,M];}constructor(_0x59e07f){super(_0x59e07f),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x59ce62=this['editor']['plugins']['get'](C);this['bind']('pageNumber')['to'](_0x59ce62),this['bind']('totalPages')['to'](_0x59ce62),_0x3378fe['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x31c670){this['editor']['plugins']['get'](C)['scrollToPage'](_0x31c670);}}export{j as Pagination,$ as PaginationRenderer};
|
|
23
|
+
import{Plugin as _0x437e58}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x533966,InputNumberView as _0x48585d,ButtonView as _0x3af902}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x34f0ef,global as _0x4615bb,Rect as _0x16742,uid as _0x45c5c4,toUnit as _0x553d4d,first as _0x49a360,env as _0x2521d3,ResizeObserver as _0x15636a,keyCodes as _0x53c561}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x514025}from'es-toolkit/compat';import{IconArrowDown as _0x77bff9,IconArrowUp as _0xe69962}from'@ckeditor/ckeditor5-icons/dist/index.js';class w extends _0x437e58{['_recalculatePageBreaksDebounced']=_0x514025(()=>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 _0x34f0ef('pagination-config-not-found',this['editor']['config']);const _0x203bd6=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x203bd6),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x32735a,_0x3e28ad,_0x2e4585)=>{_0x2e4585&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x641f3b){const _0x3acfb1=_0x30b3c1([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]),_0x2e2894=0xc82cb1e,_0x4f314f=0xc854ce6^_0x2e2894,_0x164b44=window[_0x30b3c1([0x44,0x61,0x74,0x65])][_0x30b3c1([0x6e,0x6f,0x77])](),_0x3ad641=_0x641f3b[_0x30b3c1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x56b290=new window[(_0x30b3c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14805d=>{_0x3ad641[_0x30b3c1([0x6f,0x6e,0x63,0x65])](_0x30b3c1([0x72,0x65,0x61,0x64,0x79]),_0x14805d);}),_0x891d8d={[_0x30b3c1([0x6b,0x74,0x79])]:_0x30b3c1([0x45,0x43]),[_0x30b3c1([0x75,0x73,0x65])]:_0x30b3c1([0x73,0x69,0x67]),[_0x30b3c1([0x63,0x72,0x76])]:_0x30b3c1([0x50,0x2d,0x32,0x35,0x36]),[_0x30b3c1([0x78])]:_0x30b3c1([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]),[_0x30b3c1([0x79])]:_0x30b3c1([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]),[_0x30b3c1([0x61,0x6c,0x67])]:_0x30b3c1([0x45,0x53,0x32,0x35,0x36])},_0x1a37ec=_0x3ad641[_0x30b3c1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30b3c1([0x67,0x65,0x74])](_0x30b3c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x271c56(){let _0x2e63f9,_0x419df8=null,_0x3c5d41=null;try{if(_0x1a37ec==_0x30b3c1([0x47,0x50,0x4c]))return _0x30b3c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e63f9=_0x4bed15(),!_0x2e63f9)return _0x30b3c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e63f9[_0x30b3c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c5d41=_0x3f26c0(_0x2e63f9[_0x30b3c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e63f9[_0x30b3c1([0x6a,0x74,0x69])])),await _0x25fb9b()?_0x59442a()?_0xa484c8()?_0x30b3c1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1113cb()?(_0x2e63f9[_0x30b3c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30b3c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x419df8=_0x3b5c26(_0x30b3c1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x40960a()):_0x30b3c1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30b3c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30b3c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x30b3c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xa484c8(){const _0x2b6c0a=[_0x30b3c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30b3c1([0x74,0x72,0x69,0x61,0x6c])][_0x30b3c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e63f9[_0x30b3c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x164b44/0x3e8:0xe10*_0x4f314f;return _0x2e63f9[_0x30b3c1([0x65,0x78,0x70])]<_0x2b6c0a;}function _0x59442a(){const _0x2e1d62=_0x2e63f9[_0x30b3c1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e1d62&&(!!_0x2e1d62[_0x30b3c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b3c1([0x2a]))||!!_0x2e1d62[_0x30b3c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b3c1([0x50,0x41,0x47])));}function _0x1113cb(){const _0x3ba844=_0x2e63f9[_0x30b3c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ba844||0x0==_0x3ba844[_0x30b3c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5680aa}=new URL(window[_0x30b3c1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ba844[_0x30b3c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5680aa))return!0x0;const _0x1bb9d9=_0x5680aa[_0x30b3c1([0x73,0x70,0x6c,0x69,0x74])](_0x30b3c1([0x2e]));return _0x3ba844[_0x30b3c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12f774=>_0x12f774[_0x30b3c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b3c1([0x2a])))[_0x30b3c1([0x6d,0x61,0x70])](_0x367424=>_0x367424[_0x30b3c1([0x73,0x70,0x6c,0x69,0x74])](_0x30b3c1([0x2e])))[_0x30b3c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7cd787=>_0x7cd787[_0x30b3c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1bb9d9[_0x30b3c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30b3c1([0x6d,0x61,0x70])](_0x578a42=>Array(_0x1bb9d9[_0x30b3c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x578a42[_0x30b3c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30b3c1([0x66,0x69,0x6c,0x6c])](_0x578a42[0x0]===_0x30b3c1([0x2a])?_0x30b3c1([0x2a]):'')[_0x30b3c1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x578a42))[_0x30b3c1([0x73,0x6f,0x6d,0x65])](_0xea1890=>_0x1bb9d9[_0x30b3c1([0x65,0x76,0x65,0x72,0x79])]((_0x39d21d,_0x598ee8)=>_0xea1890[_0x598ee8]===_0x39d21d||_0xea1890[_0x598ee8]===_0x30b3c1([0x2a])));}function _0x40960a(){return _0x419df8&&_0x3c5d41?new window[(_0x30b3c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bd3e6,_0x53d1a3)=>{_0x419df8[_0x30b3c1([0x74,0x68,0x65,0x6e])](_0x2bd3e6,_0x53d1a3),_0x3c5d41[_0x30b3c1([0x74,0x68,0x65,0x6e])](_0x23076a=>{_0x23076a!=_0x30b3c1([0x56,0x61,0x6c,0x69,0x64])&&_0x2bd3e6(_0x23076a);},_0x53d1a3);}):_0x419df8||_0x3c5d41||_0x30b3c1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3f26c0(_0x424d16,_0x5f31fc){return new window[(_0x30b3c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19955e=>{if(_0x31fa73())return _0x19955e(_0x30b3c1([0x56,0x61,0x6c,0x69,0x64]));_0x4c37a6(),_0x3ad641[_0x30b3c1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30b3c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x8887d8=!0x1;const _0x5cbbc6=_0x45c5c4();function _0x32ba6b(_0x21d6f9){return!!_0x21d6f9&&(typeof _0x21d6f9===_0x30b3c1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21d6f9===_0x30b3c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21d6f9[_0x30b3c1([0x74,0x68,0x65,0x6e])]===_0x30b3c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21d6f9[_0x30b3c1([0x63,0x61,0x74,0x63,0x68])]===_0x30b3c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4de567(_0x6a5b73){_0x5a98ed(_0x6a5b73)[_0x30b3c1([0x74,0x68,0x65,0x6e])](_0x5069e=>{if(!_0x5069e||_0x5069e[_0x30b3c1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30b3c1([0x6f,0x6b]))return _0x30b3c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a13cb(_0x3cdb71(_0x5cbbc6+_0x5f31fc))!=_0x5069e[_0x30b3c1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30b3c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30b3c1([0x56,0x61,0x6c,0x69,0x64]);})[_0x30b3c1([0x74,0x68,0x65,0x6e])](_0x5a65cd=>(_0x4fa483(),_0x5a65cd),()=>{const _0x3708a2=_0x337c36();return null==_0x3708a2?(_0x4fa483(),_0x30b3c1([0x56,0x61,0x6c,0x69,0x64])):_0x30b3c1(_0x164b44-_0x3708a2>(0x288e4f1e^_0x2e2894)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30b3c1([0x74,0x68,0x65,0x6e])](_0x19955e)[_0x30b3c1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19955e(_0x30b3c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3833e9=0xcb4259e^_0x2e2894;function _0x4fa483(){const _0x47523e=_0x30b3c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a13cb(_0x3cdb71(_0x424d16)),_0x2d9136=_0x4989ce(_0x5a13cb(window[_0x30b3c1([0x4d,0x61,0x74,0x68])][_0x30b3c1([0x63,0x65,0x69,0x6c])](_0x164b44/_0x3833e9)));window[_0x30b3c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30b3c1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47523e,_0x2d9136);}function _0x337c36(){const _0xc46443=_0x30b3c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a13cb(_0x3cdb71(_0x424d16)),_0x5d33b6=window[_0x30b3c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30b3c1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc46443);return _0x5d33b6?window[_0x30b3c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4989ce(_0x5d33b6),0x10)*_0x3833e9:null;}function _0x5a98ed(_0x286166){return new window[(_0x30b3c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e7280,_0x111500)=>{_0x286166[_0x30b3c1([0x74,0x68,0x65,0x6e])](_0x2e7280,_0x111500),window[_0x30b3c1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x111500,0xc831fde^_0x2e2894);});}}_0x3ad641[_0x30b3c1([0x6f,0x6e])](_0x30b3c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b6ba4,_0x2fff0e)=>{if(_0x2fff0e[0x0]!=_0x424d16)return _0x19955e(_0x30b3c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2fff0e[0x1]={..._0x2fff0e[0x1],[_0x30b3c1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5cbbc6};},{[_0x30b3c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30b3c1([0x68,0x69,0x67,0x68])}),_0x3ad641[_0x30b3c1([0x6f,0x6e])](_0x30b3c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c9b5e=>{_0x32ba6b(_0x4c9b5e[_0x30b3c1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x8887d8=!0x0,_0x4de567(_0x4c9b5e[_0x30b3c1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30b3c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30b3c1([0x6c,0x6f,0x77])}),_0x56b290[_0x30b3c1([0x74,0x68,0x65,0x6e])](()=>{_0x8887d8||_0x19955e(_0x30b3c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x31fa73(){return _0x3ad641[_0x30b3c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30b3c1([0x76,0x69,0x65,0x77])][_0x30b3c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30b3c1([0x61,0x75,0x74,0x6f]);}function _0x4c37a6(){_0x3ad641[_0x30b3c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30b3c1([0x76,0x69,0x65,0x77])][_0x30b3c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30b3c1([0x61,0x75,0x74,0x6f]);}}function _0x3b5c26(_0x275dbc){const _0x4d56c4=[new window[(_0x30b3c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b65ca=>setTimeout(_0x1b65ca,0xc8bf5d2^_0x2e2894)),_0x56b290[_0x30b3c1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30b3c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f06ba=>{let _0x11adf9=0x0;_0x3ad641[_0x30b3c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b3c1([0x6f,0x6e])](_0x30b3c1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b6ffe,_0x53b30b)=>{_0x53b30b[0x0][_0x30b3c1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x11adf9++,_0x11adf9==(0xc82cef6^_0x2e2894)&&(_0x2f06ba(),_0x5b6ffe[_0x30b3c1([0x6f,0x66,0x66])]());});}))];return window[_0x30b3c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30b3c1([0x72,0x61,0x63,0x65])](_0x4d56c4)[_0x30b3c1([0x74,0x68,0x65,0x6e])](()=>_0x275dbc);}async function _0x29eec2(){await _0x56b290,_0x3ad641[_0x30b3c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b3c1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3e1bf1,_0x3ad641[_0x30b3c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b3c1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3e1bf1,_0x3ad641[_0x30b3c1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30b3c1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2090d4(_0x21f9e0){const _0x49bccb=_0x3e8c13();_0x3ad641[_0x49bccb]=_0x30b3c1([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21f9e0,_0x21f9e0!=_0x30b3c1([0x56,0x61,0x6c,0x69,0x64])&&_0x29eec2();}function _0x3e8c13(){const _0x59178f=window[_0x30b3c1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30b3c1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30b3c1([0x6e,0x6f,0x77])]())[_0x30b3c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30b3c1([0x2e]),'');let _0x238dbb=_0x30b3c1([0x49]);for(let _0x31fda2=0x0;_0x31fda2<_0x59178f[_0x30b3c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31fda2+=0x2){let _0x4b4fbe=window[_0x30b3c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59178f[_0x30b3c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31fda2,_0x31fda2+0x2));_0x4b4fbe>=_0x3acfb1[_0x30b3c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4b4fbe-=_0x3acfb1[_0x30b3c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x238dbb+=_0x3acfb1[_0x4b4fbe];}return _0x238dbb;}function _0x4bed15(){const _0xe7f9f8=_0x1a37ec[_0x30b3c1([0x73,0x70,0x6c,0x69,0x74])](_0x30b3c1([0x2e]));if(0x3!=_0xe7f9f8[_0x30b3c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x261591(_0xe7f9f8[0x1]);function _0x261591(_0x738ad6){const _0x1ec9ae=_0x3e7e98(_0x738ad6);return _0x1ec9ae&&_0x4b2ace()?_0x1ec9ae:null;function _0x4b2ace(){const _0x4aa4fd=_0x1ec9ae[_0x30b3c1([0x6a,0x74,0x69])],_0x48823b=window[_0x30b3c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4aa4fd[_0x30b3c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4aa4fd[_0x30b3c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ff844={..._0x1ec9ae,[_0x30b3c1([0x6a,0x74,0x69])]:_0x4aa4fd[_0x30b3c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4aa4fd[_0x30b3c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ff844[_0x30b3c1([0x76,0x63])],_0x3cdb71(_0x3ff844)==_0x48823b;}}}async function _0x25fb9b(){let _0x16331d=!0x0;try{const _0x1590f8=_0x1a37ec[_0x30b3c1([0x73,0x70,0x6c,0x69,0x74])](_0x30b3c1([0x2e])),[_0x25d24c,_0x29da2b,_0x46a67e]=_0x1590f8;return _0x5b1791(_0x25d24c),await _0x30b8db(_0x25d24c,_0x29da2b,_0x46a67e),_0x16331d;}catch{return!0x1;}function _0x5b1791(_0x2b8ede){const _0x4b43fd=_0x3e7e98(_0x2b8ede);_0x4b43fd&&_0x4b43fd[_0x30b3c1([0x61,0x6c,0x67])]==_0x30b3c1([0x45,0x53,0x32,0x35,0x36])||(_0x16331d=!0x1);}async function _0x30b8db(_0x1bd2b0,_0x14fa10,_0x540573){const _0x562990=window[_0x30b3c1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30b3c1([0x66,0x72,0x6f,0x6d])](_0x273f8f(_0x540573),_0xc37bdf=>_0xc37bdf[_0x30b3c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2db4c0=new window[(_0x30b3c1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30b3c1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1bd2b0+_0x30b3c1([0x2e])+_0x14fa10),_0x9f315c=window[_0x30b3c1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30b3c1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9f315c)return;const _0x2f290e=await _0x9f315c[_0x30b3c1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30b3c1([0x6a,0x77,0x6b]),_0x891d8d,{[_0x30b3c1([0x6e,0x61,0x6d,0x65])]:_0x30b3c1([0x45,0x43,0x44,0x53,0x41]),[_0x30b3c1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30b3c1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30b3c1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9f315c[_0x30b3c1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30b3c1([0x6e,0x61,0x6d,0x65])]:_0x30b3c1([0x45,0x43,0x44,0x53,0x41]),[_0x30b3c1([0x68,0x61,0x73,0x68])]:{[_0x30b3c1([0x6e,0x61,0x6d,0x65])]:_0x30b3c1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f290e,_0x562990,_0x2db4c0)||(_0x16331d=!0x1);}}function _0x3e7e98(_0x1b0058){return _0x1b0058[_0x30b3c1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30b3c1([0x65,0x79]))?JSON[_0x30b3c1([0x70,0x61,0x72,0x73,0x65])](_0x273f8f(_0x1b0058)):null;}function _0x273f8f(_0x204436){return window[_0x30b3c1([0x61,0x74,0x6f,0x62])](_0x204436[_0x30b3c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30b3c1([0x2b]))[_0x30b3c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30b3c1([0x2f])));}function _0x3cdb71(_0x44af2d){let _0x29e608=0x1505;function _0x91f57e(_0x1ab3bf){for(let _0x395bc1=0x0;_0x395bc1<_0x1ab3bf[_0x30b3c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x395bc1++){const _0x4f3cbb=_0x1ab3bf[_0x30b3c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x395bc1);_0x29e608=(_0x29e608<<0x5)+_0x29e608+_0x4f3cbb,_0x29e608&=_0x29e608;}}function _0x396f07(_0x989d63){Array[_0x30b3c1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x989d63)?_0x989d63[_0x30b3c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x396f07):_0x989d63&&typeof _0x989d63==_0x30b3c1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30b3c1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x989d63)[_0x30b3c1([0x73,0x6f,0x72,0x74])]()[_0x30b3c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a7b49,_0x11f090])=>{_0x91f57e(_0x4a7b49),_0x396f07(_0x11f090);}):_0x91f57e(window[_0x30b3c1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x989d63));}return _0x396f07(_0x44af2d),_0x29e608>>>0x0;}function _0x5a13cb(_0x5c3b0c){return _0x5c3b0c[_0x30b3c1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30b3c1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30b3c1([0x30]));}function _0x4989ce(_0x251c77){return _0x251c77[_0x30b3c1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30b3c1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30b3c1([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e1bf1(){}function _0x30b3c1(_0x31f403){return _0x31f403['map'](_0x3f1ee8=>String['fromCharCode'](_0x3f1ee8))['join']('');}_0x2090d4(await _0x271c56());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x1ff3de=this['editor'],_0x2a8b3b=_0x1ff3de['editing']['view'],_0x429c96=this['_getAttachedDomRoot']();if(!_0x429c96||0x0===_0x429c96['childElementCount'])return void _0x1ff3de['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x382a7e,pageHeight:_0x29c3f8}=_0x1ff3de['config']['get']('pagination'),{top:_0x599a6a,left:_0x3c41e7,bottom:_0xc43097,right:_0x13727a}=this['_configuredPaddings'];this['_pagesContainer']=new _0x533966(_0x1ff3de['locale']);const _0x500349=this['_pagesContainer'];_0x500349['set']('class',''),_0x500349['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x382a7e,'width':_0x382a7e,'height':'calc(\x20'+_0x29c3f8+'\x20-\x20'+_0x599a6a+'\x20-\x20'+_0xc43097+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x13727a+'\x200\x20'+_0x3c41e7,'columnGap':'calc('+_0x3c41e7+'\x20+\x20'+_0x13727a+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x500349['bindTemplate']['to']('class')}}),_0x500349['render'](),_0x429c96['parentNode']['insertBefore'](_0x500349['element'],_0x429c96['nextSibling']),this['listenTo'](_0x2a8b3b,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x2dc949 of this['editor']['editing']['view']['domRoots']['values']())if(_0x2dc949['ownerDocument']['body']['contains'](_0x2dc949))return _0x2dc949;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x5b6857=this['editor']['editing']['view'],_0x16f903=this['_pagesContainer'],_0xb2e381=this['_getAttachedDomRoot']();if(!_0xb2e381)return Promise['resolve']();for(_0x16f903['class']=['ck-reset','ck-pagination-view',..._0xb2e381['classList']]['join']('\x20');_0x16f903['element']['firstChild'];)_0x16f903['element']['firstChild']['remove']();const _0x2281c2=Array['from'](_0x5b6857['domRoots']);_0x2281c2['sort'](([,_0x443a4c],[,_0x3612d6])=>_0x443a4c['compareDocumentPosition'](_0x3612d6)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x53ca20,_0x774589]of _0x2281c2){const _0x354680=_0x774589['cloneNode'](!0x0);'attributeStyleMap'in _0x354680&&_0x354680['attributeStyleMap']['clear'](),_0x354680['dataset']['rootName']=_0x53ca20,_0x354680['className']='ck-content\x20ck-pagination_enabled',_0x354680['removeAttribute']('id'),_0x354680['tabIndex']=-0x1,_0x16f903['element']['append'](_0x354680);}const _0x66b435=Array['from'](_0x16f903['element']['querySelectorAll']('img'));return function(_0x52d8e7){return Promise['all'](_0x52d8e7['map'](_0x55aee0=>Promise['race']([k(_0x55aee0),v(0x3e8)])));}(_0x66b435)['then'](()=>{for(const _0x11d1c8 of _0x66b435['filter'](_0x19027f=>!_0x19027f['closest']('table')))if(_0x11d1c8['offsetParent']){const _0x2ab546=_0x4615bb['window']['getComputedStyle'](_0x11d1c8),_0x38ef99=_0x4615bb['document']['createElement']('span');for(const _0x484e06 of _0x2ab546)_0x38ef99['style']['setProperty'](_0x484e06,_0x2ab546[_0x484e06]);_0x38ef99['style']['backgroundImage']='url(\x20'+_0x11d1c8['src']+'\x20)',_0x38ef99['style']['breakInside']='avoid','PICTURE'==_0x11d1c8['parentElement']?.['tagName']?_0x11d1c8['parentElement']['replaceWith'](_0x38ef99):_0x11d1c8['replaceWith'](_0x38ef99);}return new Promise(_0x5977b4=>_0x4615bb['window']['requestAnimationFrame'](()=>_0x5977b4()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x37f3d6=this['_pagesContainer']['element'];if(!_0x37f3d6['ownerDocument']['body']['contains'](_0x37f3d6))return;const _0x1ed6f8=new _0x16742(_0x37f3d6)['excludeScrollbarsAndBorders'](),_0x4646d0=Math['floor'](_0x1ed6f8['width']+0x64),_0x4166ca=_(_0x37f3d6,Math['floor'](_0x1ed6f8['left']-_0x37f3d6['scrollLeft']),_0x4646d0,_0x1ed6f8['height'])['map'](_0x3c71db=>this['_mapPageStarterInfoToPageBreakInfo'](_0x3c71db))['filter'](_0x3f2bc5=>!0x1!==_0x3f2bc5);_0x4166ca['every'](_0x53d0ac=>!!_0x53d0ac)&&(this['pageBreaks']=_0x4166ca);}['_mapPageStarterInfoToPageBreakInfo'](_0x2b7841){const _0x515778=this['editor']['editing']['view'],_0x27f668=this['editor']['editing']['mapper'],_0x3a2aa5=_0x515778['domConverter'],_0x2f0519=_0x2b7841['path']['shift'](),_0x52dea2=this['_pagesContainer']['element']['childNodes'][_0x2f0519]['dataset']['rootName'],_0x9427db=_0x515778['getDomRoot'](_0x52dea2);if(!_0x9427db)return null;const _0xda5b46=function(_0x111fc7,_0x4f7651){let _0x4e3454=_0x111fc7;for(const _0x12765f of _0x4f7651['path']){if(!_0x4e3454)return null;_0x4e3454=_0x4e3454['childNodes'][_0x12765f];}return _0x4e3454;}(_0x9427db,_0x2b7841);if(!_0xda5b46)return null;const _0x4e2117=_0x3a2aa5['domPositionToView'](_0xda5b46,_0x2b7841['textOffset']||0x0);return _0x4e2117?'manual'==_0x2b7841['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x4e2117,_0xda5b46):'text'==_0x2b7841['type']&&_0x27f668['toModelPosition'](_0x4e2117)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x4e2117,_0xda5b46,_0x2b7841['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x4e2117,_0xda5b46,_0x2b7841['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x21aacf,_0x4027ef){const _0x3c8685=this['editor']['model'],_0x54a6e1=this['editor']['editing']['mapper']['toModelElement'](_0x21aacf['parent']),_0xcbe2bf=_0x3c8685['createRangeOn'](_0x54a6e1);return new b({'type':'manual','modelRange':_0xcbe2bf,'domNode':_0x4027ef,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x25ba88,_0x4c9d95,_0x42ec65){const _0x231b4d=this['editor']['model'],_0x1b9948=this['editor']['editing']['mapper'],_0x331a41=this['editor']['editing']['view']['domConverter'];if(_0x42ec65>=_0x4c9d95['length'])return null;const _0x4a0b80=_0x1b9948['toModelPosition'](_0x25ba88),_0x2d5b02=_0x231b4d['createRange'](_0x4a0b80),_0x4bd762=_0x1b9948['findMappedViewAncestor'](_0x25ba88),_0x33c23f=_0x331a41['mapViewToDom'](_0x4bd762);return new b({'type':'text','modelRange':_0x2d5b02,'domNode':_0x4c9d95,'offset':P(_0x4c9d95,_0x42ec65,_0x33c23f)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x17f353,_0x2351fc,_0x2272ab){const _0x3863f1=this['editor']['model'],_0x3e056a=this['editor']['editing'],_0x385188=_0x3e056a['mapper'],_0x2ab32e=_0x3e056a['view']['domConverter'],_0xa61c6b=_0x385188['findMappedViewAncestor'](_0x17f353),_0x5a0bbe=_0x385188['toModelElement'](_0xa61c6b);if(!_0x5a0bbe||_0x5a0bbe['is']('element','$root'))return!0x1;const _0x36fc8f=function(_0x431cbc){const _0x4e68c8=_0x431cbc['parent'],_0xb4de6b=_0x4e68c8['root']['document']['model'],_0x3dc81c=_0x4e68c8['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x4e93c0=null;for(const _0x23957e of _0x3dc81c){if(_0x23957e['is']('rootElement'))return _0x4e93c0;if(!_0xb4de6b['createPositionBefore'](_0x23957e)['isTouching'](_0x431cbc))return _0x4e93c0;_0x4e93c0=_0x23957e;}}(_0x3863f1['createPositionBefore'](_0x5a0bbe)),_0x4ece98=_0x36fc8f||_0x5a0bbe;let _0x70385=_0x385188['toViewElement'](_0x4ece98),_0x39807d=_0x3863f1['createRangeOn'](_0x4ece98);const _0x1af610=_0x3863f1['createPositionBefore'](_0x4ece98)['nodeBefore'];if(_0x1af610&&_0x1af610['is']('element','imageBlock')){const _0x3ce4da=_0x385188['toViewElement'](_0x1af610),_0x509c64=_0x2ab32e['mapViewToDom'](_0x3ce4da),_0x66d69b=_0x4615bb['window']['getComputedStyle'](_0x509c64)['float'];'left'!=_0x66d69b&&'right'!=_0x66d69b||(_0x39807d=_0x3863f1['createRangeOn'](_0x1af610));}for(;_0x70385['parent']!==_0x70385['root']&&0x0===_0x70385['index'];)_0x70385=_0x70385['parent'];const _0x396220=new _0x16742(I(_0x2351fc)?_0x2351fc:x(_0x2351fc)),_0x4859bf=_0x2272ab?_0x396220['height']-_0x2272ab:0x0,_0x49e50a=_0x2ab32e['mapViewToDom'](_0x70385),_0x156dcb=new _0x16742(_0x49e50a);return new b({'type':'element','modelRange':_0x39807d,'domNode':_0x49e50a,'offset':Math['round'](_0x4859bf)||_0xa61c6b!=y(_0x17f353)?_0x4859bf+_0x396220['top']-_0x156dcb['top']:0x0});}get['_configuredPaddings'](){const _0x26190b=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x26190b);}static['_findPageStarterInfos'](_0x160f16,_0x249105,_0x2a287f,_0x18cc96,_0x5ea373){return _(_0x160f16,_0x249105,_0x2a287f,_0x18cc96,_0x5ea373);}}class b{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x2ee4c7,modelRange:_0x5bb456,domNode:_0x4c1748,offset:_0x2ed013}){this['type']=_0x2ee4c7,this['modelRange']=_0x5bb456,this['_domNode']=_0x4c1748,this['_offset']=_0x2ed013;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0xc0bb18=new _0x16742(I(this['_domNode'])?this['_domNode']:x(this['_domNode']));return'manual'==this['type']?_0xc0bb18['top']+_0xc0bb18['height']/0x2:_0xc0bb18['top']+this['_offset'];}}function P(_0x5a6ee9,_0x14dc7b,_0x4ca646){const _0x23878e=x(_0x5a6ee9),_0x2e4bca=function(_0x117a21){const _0x352e54=_0x4615bb['document']['createRange']();return _0x352e54['selectNodeContents'](_0x117a21),_0x352e54;}(_0x4ca646);let _0x353d8e;_0x353d8e=0x0==_0x14dc7b?L(_0x2e4bca['startContainer'],_0x2e4bca['startOffset'],_0x5a6ee9['parentNode'],Array['from'](_0x5a6ee9['parentNode']['childNodes'])['indexOf'](_0x5a6ee9)):L(_0x2e4bca['startContainer'],_0x2e4bca['startOffset'],_0x5a6ee9,_0x14dc7b);const _0x266582=L(_0x5a6ee9,_0x14dc7b,_0x2e4bca['endContainer'],_0x2e4bca['endOffset']),_0x3f7864=new _0x16742(_0x353d8e)['bottom'];return(new _0x16742(_0x266582)['top']+_0x3f7864)/0x2-new _0x16742(_0x23878e)['top'];}function y(_0x2668c8){let _0x4b916a=_0x2668c8['parent'];for(;_0x4b916a['is']('$text')||_0x4b916a['is']('attributeElement');)_0x4b916a=_0x4b916a['parent'];return _0x4b916a;}function k(_0x1267cf){return _0x1267cf['hasAttribute']('width')&&_0x1267cf['hasAttribute']('height')?Promise['resolve']():new Promise(_0x5f5c37=>{function _0x386ba9(){_0x1267cf['removeEventListener']('load',_0x386ba9),_0x1267cf['removeEventListener']('error',_0x386ba9),_0x5f5c37();}_0x1267cf['complete']?_0x5f5c37():(_0x1267cf['addEventListener']('load',_0x386ba9),_0x1267cf['addEventListener']('error',_0x386ba9));});}function v(_0xca30a6){return new Promise(_0x597bbe=>setTimeout(_0x597bbe,_0xca30a6));}function x(_0x4eabce){const _0xe126c8=_0x4615bb['document']['createRange']();return _0xe126c8['selectNode'](_0x4eabce),_0xe126c8;}function N(_0x2e8513,_0x774c0a,_0x282ab5){const _0x56a698=_0x4615bb['document']['createRange']();return _0x56a698['setStart'](_0x2e8513,_0x774c0a),_0x56a698['setEnd'](_0x2e8513,_0x282ab5),_0x56a698;}function L(_0x15d1c4,_0x5667b0,_0x365f64,_0x1a6426){const _0x42fb49=_0x4615bb['document']['createRange']();return _0x42fb49['setStart'](_0x15d1c4,_0x5667b0),_0x42fb49['setEnd'](_0x365f64,_0x1a6426),_0x42fb49;}function _(_0x24311c,_0x2a9554,_0x1c4f85,_0x3e1086,_0x1deffc){const _0x16f373=[];for(const [_0x53dfb2,_0xbda70f]of _0x24311c['childNodes']['entries']()){let _0x39a4fd=[];I(_0xbda70f)&&_0xbda70f['offsetParent']&&['static','relative']['includes'](_0x4615bb['window']['getComputedStyle'](_0xbda70f)['position'])?_0x39a4fd=S(_0xbda70f,_0x53dfb2,_0x2a9554,_0x1c4f85,_0x3e1086,_0x1deffc):O(_0xbda70f)&&(_0x39a4fd=E(_0xbda70f,_0x53dfb2,_0x2a9554,_0x1c4f85,_0x1deffc)),_0x39a4fd['length']&&(_0x16f373['push'](..._0x39a4fd),_0x2a9554+=_0x39a4fd['length']*_0x1c4f85,_0x1deffc=!0x1);}return _0x16f373;}function S(_0x276041,_0x305c57,_0x4107d5,_0xd88430,_0xb53f4f,_0x5943b8){const _0x1be9d0=[];var _0x319818;if((_0x319818=_0x276041['previousSibling'])&&I(_0x319818)&&Boolean(_0x319818['classList']['contains']('page-break')||_0x319818['closest']('.page-break'))&&(_0x1be9d0['push']({'type':'manual','offset':0x0,'path':[_0x305c57-0x1]}),_0x5943b8=!0x0),'table-row'==_0x4615bb['window']['getComputedStyle'](_0x276041)['display']){let _0x353a9c=0x0,_0xc5ddc3=!0x1;for(const _0xbd66a7 of _0x276041['getClientRects']())_0x353a9c+=_0xbd66a7['height'],_0xbd66a7['left']>=_0x4107d5&&(_0xc5ddc3=!0x0);if(_0x353a9c<_0xb53f4f&&_0xc5ddc3)return _0x5943b8||_0x1be9d0['push']({'type':'element','offset':0x0,'path':[_0x305c57]}),_0x1be9d0;}const _0x580a71=_0x276041['closest']('figure.image');if(_0x580a71&&function(_0x46d08c){let _0x5106ba=!0x1;const _0x8a1ed9=_0x46d08c['parentElement'],_0x5275c3=_0x8a1ed9['dataset']['rootName'],_0x1afe2f=_0x46d08c['nextElementSibling'],_0x14da82=_0x46d08c['previousElementSibling'],_0x2c54f6=_0x1afe2f&&_0x4615bb['window']['getComputedStyle'](_0x1afe2f)['float'],_0x5828c5=_0x1afe2f&&'ck-fake-selection-container'===_0x1afe2f['className'];!_0x5275c3||_0x1afe2f||_0x14da82||(_0x5106ba=!0x0),_0x5275c3&&!_0x14da82&&_0x5828c5&&(_0x5106ba=!0x0),_0x5275c3&&!_0x14da82&&'none'!==_0x2c54f6&&(_0x5106ba=!0x0);if(_0x5106ba)return!0x1;return!0x0;}(_0x580a71)){const _0x1fc3f4=_0x4615bb['window']['getComputedStyle'](_0x580a71)['float'];if('left'==_0x1fc3f4||'right'==_0x1fc3f4)return _0x1be9d0;}const _0x4dc6b2=_(_0x276041,_0x4107d5,_0xd88430,_0xb53f4f,_0x5943b8);if(_0x4dc6b2['length']){for(const _0x25f5e1 of _0x4dc6b2)_0x1be9d0['push']({'type':_0x25f5e1['type'],'offset':_0x25f5e1['offset'],'textOffset':_0x25f5e1['textOffset'],'path':[_0x305c57,..._0x25f5e1['path']]}),_0x4107d5+=_0xd88430,_0x5943b8=!0x1;return _0x1be9d0;}return _0x1be9d0['push'](...function(_0x59ea5d,_0x535de8,_0x4bdaf2,_0x1162cd,_0x13bffc){const _0x52de17=[];if('table-cell'==_0x4615bb['window']['getComputedStyle'](_0x59ea5d)['display'])return[];const _0x551936=[];for(const _0x187eaf of _0x59ea5d['getClientRects']())if(_0x187eaf['left']>=_0x4bdaf2){for(const _0x11e679 of _0x551936)_0x11e679['height']+=_0x187eaf['height'];_0x551936['push']({'height':_0x187eaf['height']}),_0x4bdaf2+=_0x1162cd;}for(const _0x30ee7a of _0x551936)_0x13bffc||_0x52de17['push']({'type':'element','offset':_0x30ee7a['height'],'textOffset':0x0,'path':[_0x535de8]}),_0x13bffc=!0x1;return _0x52de17;}(_0x276041,_0x305c57,_0x4107d5,_0xd88430,_0x5943b8)),_0x1be9d0;}function E(_0x2b59ab,_0x4b64fd,_0x188338,_0xf33ebd,_0xfe3c7a){const _0x43ef46=x(_0x2b59ab),_0x5e05ed=[];let _0x3263f4=0x0;for(const _0x38fcfb of _0x43ef46['getClientRects']())if(_0x38fcfb['left']>=_0x188338){const _0xb8fbad=R(_0x2b59ab,_0x3263f4,_0x188338,_0xf33ebd);_0xfe3c7a||_0x5e05ed['push']({'type':'text','path':[_0x4b64fd],'textOffset':_0xb8fbad}),_0x3263f4=_0xb8fbad,_0x188338+=_0xf33ebd,_0xfe3c7a=!0x1;}return _0x5e05ed;}function R(_0x205f87,_0x393799,_0x13ccf7,_0x59fbda){let _0x17e078=_0x393799,_0x18df64=_0x205f87['length'];for(;_0x18df64-_0x17e078>0x1;){const _0x45f05c=Math['ceil']((_0x17e078+_0x18df64)/0x2);K(N(_0x205f87,_0x17e078,_0x45f05c),_0x13ccf7,_0x59fbda)?_0x18df64=_0x45f05c:_0x17e078=_0x45f05c;}return _0x17e078;}function K(_0x25596e,_0x3f8d44,_0x2d00ad){for(const _0x320e82 of _0x25596e['getClientRects']())if(_0x320e82['left']>=_0x3f8d44&&_0x320e82['left']<_0x3f8d44+_0x2d00ad)return!0x0;return!0x1;}function I(_0x42b624){return _0x42b624['nodeType']==Node['ELEMENT_NODE'];}function O(_0x3bf13c){return _0x3bf13c['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x553d4d('px');class T extends _0x533966{constructor(){super();const _0x3b48a8=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x3b48a8['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x3b48a8['if']('isVisible','ck-hidden',_0x4c4364=>!_0x4c4364)],'style':{'left':_0x3b48a8['to']('left',_0x30a8a7=>B(_0x30a8a7)),'top':_0x3b48a8['to']('top',_0x591212=>B(_0x591212)),'width':_0x3b48a8['to']('width',_0x573e36=>B(_0x573e36))}}});}}class A{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x358c44){this['_viewCollection']=_0x358c44['ui']['view']['body'];}['destroy'](){for(const _0x38ca42 of this['_hiddenLines'])_0x38ca42['destroy']();}['cleanLines'](){for(const _0x521dee of this['_visibleLines'])_0x521dee['isVisible']=!0x1,this['_hiddenLines']['add'](_0x521dee);this['_visibleLines']['clear']();}['showLine'](_0x58be0b,_0x58b2b0,_0x249e53,_0x52b8be){let _0x51757d;this['_hiddenLines']['size']?(_0x51757d=_0x49a360(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x51757d)):_0x51757d=new T(),_0x51757d['set']({'pageNumber':_0x52b8be,'left':_0x58be0b,'top':_0x58b2b0,'width':_0x249e53}),_0x51757d['isVisible']=!0x0,this['_viewCollection']['has'](_0x51757d)||this['_viewCollection']['add'](_0x51757d),this['_visibleLines']['add'](_0x51757d);}['setViewCollection'](_0x27a5fe){for(const _0x2712bd of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x2712bd)&&this['_viewCollection']['remove'](_0x2712bd);this['_viewCollection']=_0x27a5fe;}}const D='ck-pagination_enabled';class $ extends _0x437e58{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new A(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](D),this['on']('change:isEnabled',(_0x2745a2,_0x5184f9,_0x3f2952)=>{_0x3f2952||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x3f2952);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x30d132){if(!this['isEnabled'])return;const _0x2a6098=_0x30d132>0x1?this['_getPageBreakLineOffset'](_0x30d132-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x2a6098-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x2521d3['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x4aca1d=this['editor'],_0x9bb60e=this['_getAttachedDomRoot']();_0x9bb60e?(this['_scrollableEditingRootDomAncestor']&&_0x4aca1d['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x1ce666){let _0x38c60e=_0x1ce666;do{_0x38c60e=_0x38c60e['parentElement'];const _0x12227f=_0x4615bb['window']['getComputedStyle'](_0x38c60e)['overflowY'];if('auto'==_0x12227f||'scroll'==_0x12227f)break;}while('BODY'!=_0x38c60e['tagName']);return _0x38c60e;}(_0x9bb60e),_0x4aca1d['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x15636a(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x4aca1d['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x2e4574=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x2e4574['ui']['view']['listenTo'](_0x4615bb['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x2e4574['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x4f1118 of this['editor']['editing']['view']['domRoots']['values']())if(_0x4f1118['ownerDocument']['body']['contains'](_0x4f1118))return _0x4f1118;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x2f57bd=this['_getAttachedDomRoot'](),_0xe41bef=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x2f57bd||0x1==_0xe41bef['length'])return void(this['pageNumber']=0x1);const _0x5000c2=new _0x16742(_0x2f57bd)['excludeScrollbarsAndBorders'](),_0x20c7e8=new _0x16742(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x2da3fb=_0x20c7e8['top']+_0x20c7e8['height']/0x3;let _0x1d269a=!0x1;const _0x13baa1=[];for(let _0x2cb505=0x1;_0x2cb505<_0xe41bef['length'];_0x2cb505++){const _0x2c3789=this['_getPageBreakLineOffset'](_0x2cb505,_0x20c7e8);if(!_0x2c3789)continue;const _0x4b1471=_0x20c7e8['top']+_0x2c3789-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x13baa1['push']({'pageOffsetTop':_0x4b1471,'domRootRect':_0x5000c2,'domScrollableRect':_0x20c7e8,'pageNumber':_0x2cb505}),_0x4b1471>_0x2da3fb&&!_0x1d269a&&(this['pageNumber']=_0x2cb505,_0x1d269a=!0x0);}this['_renderPageBreakLines'](_0x13baa1),_0x1d269a||(this['pageNumber']=_0xe41bef['length']);}['_renderPageBreakLines'](_0x1c8234){const {scrollX:_0x9e45e8,scrollY:_0x12d677}=_0x4615bb['window'];if(_0x1c8234['length']){for(const {domScrollableRect:_0x117a20,pageOffsetTop:_0x1bf5a2,domRootRect:_0x1b49f3,pageNumber:_0x197e48}of _0x1c8234)_0x117a20['top']<_0x1bf5a2&&_0x1bf5a2<_0x117a20['bottom']&&this['linesRepository']['showLine'](_0x1b49f3['left']+_0x9e45e8,_0x1bf5a2+_0x12d677,_0x1b49f3['width'],_0x197e48+0x1);}}['_getPageBreakLineOffset'](_0x3a4d98,_0x62edef=null){const _0x17ef00=this['_paginationLookupPlugin']['pageBreaks'][_0x3a4d98]['offset'];return _0x17ef00?(_0x62edef||(_0x62edef=new _0x16742(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x17ef00-_0x62edef['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x56b639,_0x39e4e8=!0x0){const _0x552338=this['editor']['editing']['view'];_0x552338['change'](_0x512162=>{for(const _0x459a61 of _0x552338['document']['roots'])_0x39e4e8?_0x512162['addClass'](_0x56b639,_0x459a61):_0x512162['removeClass'](_0x56b639,_0x459a61);});}}function G(_0x351847,_0xfd02b1,..._0x45061c){const t=_0x351847['t'];switch(_0xfd02b1){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)',..._0x45061c);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 _0xfd02b1;}}class C extends _0x437e58{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[w,$];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x4f1ff2=this['editor']['plugins']['get']('Pagination'),_0x3d48e0=this['editor']['plugins']['get'](w),_0x52c028=this['editor']['plugins']['get']($);this['bind']('isEnabled')['to'](_0x4f1ff2),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x52c028),this['listenTo'](_0x3d48e0,'change:pageBreaks',(_0x2785c6,_0x348222,_0x174199,_0x4b4a6f)=>{this['totalPages']=_0x174199['length'],this['_updatePageBreakMarkers'](_0x174199,_0x4b4a6f);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x191699=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5aabf9;for(const _0xb8e93a in _0x191699){const _0x171747=_0xb8e93a,_0x18481a=_0x191699[_0x171747];if('paginationLicenseKeyValid'==_0x18481a||'paginationLicenseKeyInvalid'==_0x18481a||'paginationLicenseKeyExpired'==_0x18481a||'paginationLicenseKeyDomainLimit'==_0x18481a||'paginationLicenseKeyNotAllowed'==_0x18481a||'paginationLicenseKeyEvaluationLimit'==_0x18481a||'paginationLicenseKeyUsageLimit'==_0x18481a){delete _0x191699[_0x171747],_0x5aabf9=_0x18481a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x5aabf9&&_0x191699['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x5aabf9&&_0x191699['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x5aabf9&&_0x191699['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x5aabf9&&_0x191699['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x5aabf9&&_0x191699['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x5aabf9&&_0x191699['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x5844d6){if(!this['isEnabled'])return;this['editor']['plugins']['get']($)['scrollToPage'](this['_validatePageNumber'](_0x5844d6));}['moveSelectionToPage'](_0x528f1f){if(!this['isEnabled'])return;const _0x156b70=this['editor'],_0x485a69=this['editor']['plugins']['get'](w)['pageBreaks'][_0x528f1f-0x1];_0x485a69&&_0x156b70['model']['change'](_0x2f8f92=>{switch(_0x485a69['type']){case'manual':{const _0x3dbeb9=_0x156b70['model']['schema']['getNearestSelectionRange'](_0x485a69['modelRange']['end'],'forward');_0x2f8f92['setSelection'](_0x3dbeb9);break;}case'element':{const _0x3c9e30=_0x156b70['model']['schema']['getNearestSelectionRange'](_0x485a69['modelRange']['start'],'forward');_0x2f8f92['setSelection'](_0x3c9e30);break;}case'text':{const _0x363a77=_0x485a69['modelRange']['start'];if(_0x363a77['textNode']&&'\x20'===_0x363a77['textNode']['data'][_0x363a77['offset']]){const _0x401863=_0x2f8f92['createPositionAt'](_0x363a77['parent'],_0x363a77['offset']+0x1);_0x2f8f92['setSelection'](_0x401863);}else _0x2f8f92['setSelection'](_0x485a69['modelRange']);}}_0x156b70['editing']['view']['focus']();});}['goToNextPage'](){const _0xaccd3a=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0xaccd3a),this['scrollToPage'](_0xaccd3a);}['goToPreviousPage'](){const _0x3dfc4b=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x3dfc4b),this['scrollToPage'](_0x3dfc4b);}['_updatePageBreakMarkers'](_0x5420f9,_0x5d35ad){const _0xcaadb9=this['editor']['model'];this['isEnabled']&&_0xcaadb9['change'](_0x912446=>{for(let _0x118042=0x1;_0x118042<_0x5420f9['length'];_0x118042++){const _0x4e0061=_0x5420f9[_0x118042]['modelRange'],_0x26d931='pagination:'+(_0x118042+0x1);_0xcaadb9['markers']['has'](_0x26d931)?_0x912446['updateMarker'](_0x26d931,{'range':_0x4e0061}):_0x912446['addMarker'](_0x26d931,{'range':_0x4e0061,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x9b00a1=_0x5420f9['length'];_0x9b00a1<_0x5d35ad['length'];_0x9b00a1++){const _0x547e64='pagination:'+(_0x9b00a1+0x1);_0xcaadb9['markers']['has'](_0x547e64)&&_0x912446['removeMarker'](_0x547e64);}});}['_setUpDataDowncastConversion'](){const _0x2312a8='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x5b8914=>{_0x5b8914['on']('addMarker:'+_0x2312a8,(_0x3bee69,{markerRange:_0x5d23b2,markerName:_0x1f962a},_0x54353b)=>{if(!_0x54353b['options']['pagination'])return;if(!_0x54353b['consumable']['consume'](_0x5d23b2,_0x3bee69['name']))return;const _0x20d782=_0x5d23b2['getContainedElement']();let _0x18d0d3=_0x20d782?_0x54353b['mapper']['toViewElement'](_0x20d782):null;if(!_0x18d0d3){const _0x6d7b0b=_0x5d23b2['start'];if(_0x54353b['schema']['checkChild'](_0x6d7b0b,'$text')){const _0x36b127=_0x54353b['mapper']['toViewPosition'](_0x6d7b0b);_0x18d0d3=_0x54353b['writer']['createContainerElement']('span'),_0x18d0d3['getFillerOffset']=()=>null,_0x54353b['writer']['insert'](_0x36b127,_0x18d0d3);}else{const _0x474989=_0x6d7b0b['nodeAfter'];_0x18d0d3=_0x54353b['mapper']['toViewElement'](_0x474989);}}for(;_0x18d0d3['parent']!==_0x18d0d3['root']&&0x0===_0x18d0d3['index'];)_0x18d0d3=_0x18d0d3['parent'];const _0x8c23d5=_0x1f962a['substring'](0xb);_0x18d0d3['hasClass']('page-break')||(_0x54353b['writer']['setStyle']('page-break-before','always',_0x18d0d3),_0x54353b['writer']['setAttribute']('data-pagination-page',_0x8c23d5,_0x18d0d3),_0x54353b['mapper']['bindElementToMarker'](_0x18d0d3,_0x1f962a)),_0x3bee69['stop']();});});}['_setupKeystrokes'](){const _0x5e85b9=this['editor'];_0x5e85b9['keystrokes']['set']('Shift+Pageup',(_0xc2b1c7,_0x3b1545)=>{this['goToPreviousPage'](),_0x3b1545();}),_0x5e85b9['keystrokes']['set']('Shift+Pagedown',(_0x99caa9,_0x117922)=>{this['goToNextPage'](),_0x117922();}),_0x5e85b9['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':G(_0x5e85b9['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':G(_0x5e85b9['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':G(_0x5e85b9['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0xe3b918){return _0xe3b918<0x1&&(_0xe3b918=0x1),_0xe3b918>this['totalPages']&&(_0xe3b918=this['totalPages']),_0xe3b918;}}class U extends _0x533966{['pageNumberView'];constructor(_0x5ab646){super(_0x5ab646);const _0x2a47a5=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x48585d(_0x5ab646,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x1fb12b=>G(_0x5ab646,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x1fb12b)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x20bd6b=>!_0x20bd6b),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x2a47a5['if']('isEnabled','ck-disabled',_0x1c6421=>!_0x1c6421)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x2a47a5['to']('totalPages')}]}]});}['render'](){super['render']();const _0x44d9f4=this['pageNumberView']['element'],_0x4574d7=_0x15e0f0=>{this['pageNumberView']['element']['value']=String(_0x15e0f0);};_0x4574d7(this['pageNumber']),this['on']('change:pageNumber',(_0x2d910f,_0x5a658e,_0x476bfb)=>{_0x4574d7(_0x476bfb);}),this['listenTo'](_0x44d9f4,'keydown',(_0x2471d6,_0xbc95d1)=>{if('ArrowUp'===_0xbc95d1['key']||'ArrowDown'===_0xbc95d1['key'])return void _0xbc95d1['stopPropagation']();if(_0xbc95d1['keyCode']!==_0x53c561['enter'])return;_0xbc95d1['preventDefault']();const _0x3a26cd=_0x44d9f4['valueAsNumber'];Number['isNaN'](_0x3a26cd)?_0x44d9f4['value']=String(this['pageNumber']):(_0x44d9f4['checkValidity']()?this['pageNumber']=_0x3a26cd:_0x3a26cd>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x44d9f4['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x44d9f4['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x44d9f4,'blur',()=>{_0x44d9f4['value']=String(this['pageNumber']);}),this['listenTo'](_0x44d9f4,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class M extends _0x437e58{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4ddbd1=this['editor'],_0x398b97=_0x4ddbd1['plugins']['get']('PaginationEditing');_0x4ddbd1['ui']['componentFactory']['add']('pageNavigation',_0x2b162d=>{const _0x9dd5fc=new U(_0x2b162d);return _0x9dd5fc['bind']('pageNumber')['to'](_0x398b97),_0x9dd5fc['bind']('totalPages')['to'](_0x398b97),_0x9dd5fc['bind']('isEnabled')['to'](_0x398b97),_0x9dd5fc['on']('navigation',(_0xf9926b,_0x91a22d)=>{_0x398b97['moveSelectionToPage'](_0x91a22d),_0x398b97['scrollToPage'](_0x91a22d);}),_0x9dd5fc;}),_0x4ddbd1['ui']['componentFactory']['add']('nextPage',_0x534eed=>{const _0x23f235=new _0x3af902(_0x534eed);return _0x23f235['isEnabled']=!0x0,_0x23f235['label']=G(_0x4ddbd1['locale'],'Go\x20to\x20next\x20page'),_0x23f235['icon']=_0x77bff9,_0x23f235['tooltip']=!0x0,_0x23f235['keystroke']='Shift+PageDown',_0x23f235['bind']('isEnabled')['to'](_0x398b97),this['listenTo'](_0x23f235,'execute',()=>{_0x398b97['goToNextPage']();}),_0x23f235;}),_0x4ddbd1['ui']['componentFactory']['add']('previousPage',_0x51363e=>{const _0x272c3a=new _0x3af902(_0x51363e);return _0x272c3a['isEnabled']=!0x0,_0x272c3a['label']=G(_0x4ddbd1['locale'],'Go\x20to\x20previous\x20page'),_0x272c3a['icon']=_0xe69962,_0x272c3a['tooltip']=!0x0,_0x272c3a['keystroke']='Shift+PageUp',_0x272c3a['bind']('isEnabled')['to'](_0x398b97),this['listenTo'](_0x272c3a,'execute',()=>{_0x398b97['goToPreviousPage']();}),_0x272c3a;});}}class j extends _0x437e58{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C,M];}constructor(_0x200cd5){super(_0x200cd5),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x50048a=this['editor']['plugins']['get'](C);this['bind']('pageNumber')['to'](_0x50048a),this['bind']('totalPages')['to'](_0x50048a),_0x2521d3['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x5e86f7){this['editor']['plugins']['get'](C)['scrollToPage'](_0x5e86f7);}}export{j as Pagination,$ as PaginationRenderer};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-pagination",
|
|
3
|
-
"version": "48.0.1
|
|
3
|
+
"version": "48.0.1",
|
|
4
4
|
"description": "Pagination feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"./package.json": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ckeditor/ckeditor5-core": "48.0.1
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.0.1
|
|
26
|
-
"@ckeditor/ckeditor5-icons": "48.0.1
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "48.0.1
|
|
28
|
-
"@ckeditor/ckeditor5-utils": "48.0.1
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.0.1",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.0.1",
|
|
26
|
+
"@ckeditor/ckeditor5-icons": "48.0.1",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "48.0.1",
|
|
28
|
+
"@ckeditor/ckeditor5-utils": "48.0.1",
|
|
29
29
|
"es-toolkit": "1.45.1"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|