@ckeditor/ckeditor5-pagination 48.2.0 → 48.3.0-alpha.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.
Files changed (160) hide show
  1. package/dist/augmentation.d.ts +17 -17
  2. package/dist/index.d.ts +8 -8
  3. package/dist/index.js +2 -2
  4. package/dist/legacyerrors.d.ts +0 -4
  5. package/dist/pagination.d.ts +124 -132
  6. package/dist/paginationediting.d.ts +73 -73
  7. package/dist/paginationlookup.d.ts +58 -58
  8. package/dist/paginationrenderer.d.ts +52 -52
  9. package/dist/paginationui.d.ts +28 -28
  10. package/dist/translations/af.js +1 -1
  11. package/dist/translations/af.umd.js +1 -1
  12. package/dist/translations/ar.js +1 -1
  13. package/dist/translations/ar.umd.js +1 -1
  14. package/dist/translations/ast.js +1 -1
  15. package/dist/translations/ast.umd.js +1 -1
  16. package/dist/translations/az.js +1 -1
  17. package/dist/translations/az.umd.js +1 -1
  18. package/dist/translations/be.js +1 -1
  19. package/dist/translations/be.umd.js +1 -1
  20. package/dist/translations/bg.js +1 -1
  21. package/dist/translations/bg.umd.js +1 -1
  22. package/dist/translations/bn.js +1 -1
  23. package/dist/translations/bn.umd.js +1 -1
  24. package/dist/translations/bs.js +1 -1
  25. package/dist/translations/bs.umd.js +1 -1
  26. package/dist/translations/ca.js +1 -1
  27. package/dist/translations/ca.umd.js +1 -1
  28. package/dist/translations/cs.js +1 -1
  29. package/dist/translations/cs.umd.js +1 -1
  30. package/dist/translations/da.js +1 -1
  31. package/dist/translations/da.umd.js +1 -1
  32. package/dist/translations/de-ch.js +1 -1
  33. package/dist/translations/de-ch.umd.js +1 -1
  34. package/dist/translations/de.js +1 -1
  35. package/dist/translations/de.umd.js +1 -1
  36. package/dist/translations/el.js +1 -1
  37. package/dist/translations/el.umd.js +1 -1
  38. package/dist/translations/en-au.js +1 -1
  39. package/dist/translations/en-au.umd.js +1 -1
  40. package/dist/translations/en-gb.js +1 -1
  41. package/dist/translations/en-gb.umd.js +1 -1
  42. package/dist/translations/en.js +1 -1
  43. package/dist/translations/en.umd.js +1 -1
  44. package/dist/translations/eo.js +1 -1
  45. package/dist/translations/eo.umd.js +1 -1
  46. package/dist/translations/es-co.js +1 -1
  47. package/dist/translations/es-co.umd.js +1 -1
  48. package/dist/translations/es.js +1 -1
  49. package/dist/translations/es.umd.js +1 -1
  50. package/dist/translations/et.js +1 -1
  51. package/dist/translations/et.umd.js +1 -1
  52. package/dist/translations/eu.js +1 -1
  53. package/dist/translations/eu.umd.js +1 -1
  54. package/dist/translations/fa.js +1 -1
  55. package/dist/translations/fa.umd.js +1 -1
  56. package/dist/translations/fi.js +1 -1
  57. package/dist/translations/fi.umd.js +1 -1
  58. package/dist/translations/fr.js +1 -1
  59. package/dist/translations/fr.umd.js +1 -1
  60. package/dist/translations/gl.js +1 -1
  61. package/dist/translations/gl.umd.js +1 -1
  62. package/dist/translations/gu.js +1 -1
  63. package/dist/translations/gu.umd.js +1 -1
  64. package/dist/translations/he.js +1 -1
  65. package/dist/translations/he.umd.js +1 -1
  66. package/dist/translations/hi.js +1 -1
  67. package/dist/translations/hi.umd.js +1 -1
  68. package/dist/translations/hr.js +1 -1
  69. package/dist/translations/hr.umd.js +1 -1
  70. package/dist/translations/hu.js +1 -1
  71. package/dist/translations/hu.umd.js +1 -1
  72. package/dist/translations/hy.js +1 -1
  73. package/dist/translations/hy.umd.js +1 -1
  74. package/dist/translations/id.js +1 -1
  75. package/dist/translations/id.umd.js +1 -1
  76. package/dist/translations/it.js +1 -1
  77. package/dist/translations/it.umd.js +1 -1
  78. package/dist/translations/ja.js +1 -1
  79. package/dist/translations/ja.umd.js +1 -1
  80. package/dist/translations/jv.js +1 -1
  81. package/dist/translations/jv.umd.js +1 -1
  82. package/dist/translations/kk.js +1 -1
  83. package/dist/translations/kk.umd.js +1 -1
  84. package/dist/translations/km.js +1 -1
  85. package/dist/translations/km.umd.js +1 -1
  86. package/dist/translations/kn.js +1 -1
  87. package/dist/translations/kn.umd.js +1 -1
  88. package/dist/translations/ko.js +1 -1
  89. package/dist/translations/ko.umd.js +1 -1
  90. package/dist/translations/ku.js +1 -1
  91. package/dist/translations/ku.umd.js +1 -1
  92. package/dist/translations/lt.js +1 -1
  93. package/dist/translations/lt.umd.js +1 -1
  94. package/dist/translations/lv.js +1 -1
  95. package/dist/translations/lv.umd.js +1 -1
  96. package/dist/translations/ms.js +1 -1
  97. package/dist/translations/ms.umd.js +1 -1
  98. package/dist/translations/nb.js +1 -1
  99. package/dist/translations/nb.umd.js +1 -1
  100. package/dist/translations/ne.js +1 -1
  101. package/dist/translations/ne.umd.js +1 -1
  102. package/dist/translations/nl.js +1 -1
  103. package/dist/translations/nl.umd.js +1 -1
  104. package/dist/translations/no.js +1 -1
  105. package/dist/translations/no.umd.js +1 -1
  106. package/dist/translations/oc.js +1 -1
  107. package/dist/translations/oc.umd.js +1 -1
  108. package/dist/translations/pl.js +1 -1
  109. package/dist/translations/pl.umd.js +1 -1
  110. package/dist/translations/pt-br.js +1 -1
  111. package/dist/translations/pt-br.umd.js +1 -1
  112. package/dist/translations/pt.js +1 -1
  113. package/dist/translations/pt.umd.js +1 -1
  114. package/dist/translations/ro.js +1 -1
  115. package/dist/translations/ro.umd.js +1 -1
  116. package/dist/translations/ru.js +1 -1
  117. package/dist/translations/ru.umd.js +1 -1
  118. package/dist/translations/si.js +1 -1
  119. package/dist/translations/si.umd.js +1 -1
  120. package/dist/translations/sk.js +1 -1
  121. package/dist/translations/sk.umd.js +1 -1
  122. package/dist/translations/sl.js +1 -1
  123. package/dist/translations/sl.umd.js +1 -1
  124. package/dist/translations/sq.js +1 -1
  125. package/dist/translations/sq.umd.js +1 -1
  126. package/dist/translations/sr-latn.js +1 -1
  127. package/dist/translations/sr-latn.umd.js +1 -1
  128. package/dist/translations/sr.js +1 -1
  129. package/dist/translations/sr.umd.js +1 -1
  130. package/dist/translations/sv.js +1 -1
  131. package/dist/translations/sv.umd.js +1 -1
  132. package/dist/translations/th.js +1 -1
  133. package/dist/translations/th.umd.js +1 -1
  134. package/dist/translations/ti.js +1 -1
  135. package/dist/translations/ti.umd.js +1 -1
  136. package/dist/translations/tk.js +1 -1
  137. package/dist/translations/tk.umd.js +1 -1
  138. package/dist/translations/tr.js +1 -1
  139. package/dist/translations/tr.umd.js +1 -1
  140. package/dist/translations/tt.js +1 -1
  141. package/dist/translations/tt.umd.js +1 -1
  142. package/dist/translations/ug.js +1 -1
  143. package/dist/translations/ug.umd.js +1 -1
  144. package/dist/translations/uk.js +1 -1
  145. package/dist/translations/uk.umd.js +1 -1
  146. package/dist/translations/ur.js +1 -1
  147. package/dist/translations/ur.umd.js +1 -1
  148. package/dist/translations/uz.js +1 -1
  149. package/dist/translations/uz.umd.js +1 -1
  150. package/dist/translations/vi.js +1 -1
  151. package/dist/translations/vi.umd.js +1 -1
  152. package/dist/translations/zh-cn.js +1 -1
  153. package/dist/translations/zh-cn.umd.js +1 -1
  154. package/dist/translations/zh.js +1 -1
  155. package/dist/translations/zh.umd.js +1 -1
  156. package/dist/ui/linesrepository.d.ts +34 -34
  157. package/dist/ui/lineview.d.ts +48 -48
  158. package/dist/ui/pagenavigatorview.d.ts +53 -53
  159. package/dist/utils/common-translations.d.ts +6 -6
  160. package/package.json +6 -6
@@ -1,19 +1,19 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- import type { PaginationConfig, Pagination } from './index.js';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface EditorConfig {
8
- /**
9
- * The configuration of the pagination feature. It is used by the pagination feature from the `@ckeditor/ckeditor5-pagination`
10
- * package.
11
- *
12
- * Read more in {@link module:pagination/pagination~PaginationConfig}.
13
- */
14
- pagination?: PaginationConfig;
15
- }
16
- interface PluginsMap {
17
- [Pagination.pluginName]: Pagination;
18
- }
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import type { PaginationConfig, Pagination } from "./index.js";
6
+ declare module "@ckeditor/ckeditor5-core" {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the pagination feature. It is used by the pagination feature from the `@ckeditor/ckeditor5-pagination`
10
+ * package.
11
+ *
12
+ * Read more in {@link module:pagination/pagination~PaginationConfig}.
13
+ */
14
+ pagination?: PaginationConfig;
15
+ }
16
+ interface PluginsMap {
17
+ [Pagination.pluginName]: Pagination;
18
+ }
19
19
  }
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module pagination
7
- */
8
- export { Pagination, type PaginationConfig, type PaginationMarginsConfig } from './pagination.js';
9
- export { PaginationRenderer } from './paginationrenderer.js';
10
- import './augmentation.js';
6
+ * @module pagination
7
+ */
8
+ export { Pagination, type PaginationConfig, type PaginationMarginsConfig } from "./pagination.js";
9
+ export { PaginationRenderer } from "./paginationrenderer.js";
10
+ import "./augmentation.js";
package/dist/index.js CHANGED
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x4a7287}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x240c9d,InputNumberView as _0x1717c8,ButtonView as _0x43d50a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0xe38cf1,global as _0x5085eb,Rect as _0x6ffb3,uid as _0x22c10a,toUnit as _0x4cb1cb,first as _0x2b41a7,env as _0x8b2868,ResizeObserver as _0x3a5c9f,keyCodes as _0x208ccb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x1c152c}from'es-toolkit/compat';import{IconArrowDown as _0x47680a,IconArrowUp as _0x45c12f}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x4a7287{['_recalculatePageBreaksDebounced']=_0x1c152c(()=>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 _0xe38cf1('pagination-config-not-found',this['editor']['config']);const _0x396ea6=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x396ea6),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x31f4db,_0x94d996,_0x181c56)=>{_0x181c56&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x5b8017){const _0x200459=_0x3b2255([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]),_0x18bc8d=0xc82cb1e,_0x2a6b5a=0xc8540ce^_0x18bc8d,_0xfd33be=window[_0x3b2255([0x44,0x61,0x74,0x65])][_0x3b2255([0x6e,0x6f,0x77])](),_0x5b1b98=_0x5b8017[_0x3b2255([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b6ff3=new window[(_0x3b2255([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1607d0=>{_0x5b1b98[_0x3b2255([0x6f,0x6e,0x63,0x65])](_0x3b2255([0x72,0x65,0x61,0x64,0x79]),_0x1607d0);}),_0x4bdb3f={[_0x3b2255([0x6b,0x74,0x79])]:_0x3b2255([0x45,0x43]),[_0x3b2255([0x75,0x73,0x65])]:_0x3b2255([0x73,0x69,0x67]),[_0x3b2255([0x63,0x72,0x76])]:_0x3b2255([0x50,0x2d,0x32,0x35,0x36]),[_0x3b2255([0x78])]:_0x3b2255([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]),[_0x3b2255([0x79])]:_0x3b2255([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]),[_0x3b2255([0x61,0x6c,0x67])]:_0x3b2255([0x45,0x53,0x32,0x35,0x36])},_0x134f72=_0x5b1b98[_0x3b2255([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b2255([0x67,0x65,0x74])](_0x3b2255([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe44804(){let _0x56a356,_0x57f830=null,_0xcd5d61=null;try{if(_0x134f72==_0x3b2255([0x47,0x50,0x4c]))return _0x3b2255([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56a356=_0x36e3cc(),!_0x56a356)return _0x3b2255([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x56a356[_0x3b2255([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xcd5d61=_0x4f37ff(_0x56a356[_0x3b2255([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56a356[_0x3b2255([0x6a,0x74,0x69])])),await _0x432fe0()?_0x57f624()?_0x39abb7()?_0x3b2255([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe352c()?(_0x56a356[_0x3b2255([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b2255([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57f830=_0xfc4b01(_0x3b2255([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x138970()):_0x3b2255([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b2255([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b2255([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b2255([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39abb7(){const _0x3849b0=[_0x3b2255([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b2255([0x74,0x72,0x69,0x61,0x6c])][_0x3b2255([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56a356[_0x3b2255([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xfd33be/0x3e8:0xe10*_0x2a6b5a;return _0x56a356[_0x3b2255([0x65,0x78,0x70])]<_0x3849b0;}function _0x57f624(){const _0x169ff7=_0x56a356[_0x3b2255([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x169ff7&&(!!_0x169ff7[_0x3b2255([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b2255([0x2a]))||!!_0x169ff7[_0x3b2255([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b2255([0x50,0x41,0x47])));}function _0xe352c(){const _0x9c47a=_0x56a356[_0x3b2255([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9c47a||0x0==_0x9c47a[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4431d7}=new URL(window[_0x3b2255([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9c47a[_0x3b2255([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4431d7))return!0x0;const _0x3965cf=_0x4431d7[_0x3b2255([0x73,0x70,0x6c,0x69,0x74])](_0x3b2255([0x2e]));return _0x9c47a[_0x3b2255([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49f28b=>_0x49f28b[_0x3b2255([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b2255([0x2a])))[_0x3b2255([0x6d,0x61,0x70])](_0x4fa349=>_0x4fa349[_0x3b2255([0x73,0x70,0x6c,0x69,0x74])](_0x3b2255([0x2e])))[_0x3b2255([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c01d6=>_0x1c01d6[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3965cf[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b2255([0x6d,0x61,0x70])](_0x59fd7c=>Array(_0x3965cf[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x59fd7c[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b2255([0x66,0x69,0x6c,0x6c])](_0x59fd7c[0x0]===_0x3b2255([0x2a])?_0x3b2255([0x2a]):'')[_0x3b2255([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x59fd7c))[_0x3b2255([0x73,0x6f,0x6d,0x65])](_0x1aa97a=>_0x3965cf[_0x3b2255([0x65,0x76,0x65,0x72,0x79])]((_0x329b7d,_0x32996f)=>_0x1aa97a[_0x32996f]===_0x329b7d||_0x1aa97a[_0x32996f]===_0x3b2255([0x2a])));}function _0x138970(){return _0x57f830&&_0xcd5d61?new window[(_0x3b2255([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30a5f7,_0x36f547)=>{_0x57f830[_0x3b2255([0x74,0x68,0x65,0x6e])](_0x30a5f7,_0x36f547),_0xcd5d61[_0x3b2255([0x74,0x68,0x65,0x6e])](_0x3ac910=>{_0x3ac910!=_0x3b2255([0x56,0x61,0x6c,0x69,0x64])&&_0x30a5f7(_0x3ac910);},_0x36f547);}):_0x57f830||_0xcd5d61||_0x3b2255([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f37ff(_0x1eb542,_0x1a459d){return new window[(_0x3b2255([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c50d=>{if(_0x49a09b())return _0x26c50d(_0x3b2255([0x56,0x61,0x6c,0x69,0x64]));_0x46da33(),_0x5b1b98[_0x3b2255([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b2255([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51fc41=!0x1;const _0x513f6d=_0x22c10a();function _0x185365(_0x26fd77){return!!_0x26fd77&&(typeof _0x26fd77===_0x3b2255([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x26fd77===_0x3b2255([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x26fd77[_0x3b2255([0x74,0x68,0x65,0x6e])]===_0x3b2255([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x26fd77[_0x3b2255([0x63,0x61,0x74,0x63,0x68])]===_0x3b2255([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x268f82(_0x5f4a31){_0x27e620(_0x5f4a31)[_0x3b2255([0x74,0x68,0x65,0x6e])](_0x525b06=>{if(!_0x525b06||_0x525b06[_0x3b2255([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b2255([0x6f,0x6b]))return _0x3b2255([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d5584(_0x8008b7(_0x513f6d+_0x1a459d))!=_0x525b06[_0x3b2255([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b2255([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b2255([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b2255([0x74,0x68,0x65,0x6e])](_0x4d3d32=>(_0x5ca057(),_0x4d3d32),()=>{const _0x117844=_0x368f03();return null==_0x117844?(_0x5ca057(),_0x3b2255([0x56,0x61,0x6c,0x69,0x64])):_0x3b2255(_0xfd33be-_0x117844>(0x288e4f1e^_0x18bc8d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b2255([0x74,0x68,0x65,0x6e])](_0x26c50d)[_0x3b2255([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26c50d(_0x3b2255([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3611d9=0xcb4259e^_0x18bc8d;function _0x5ca057(){const _0x436ab9=_0x3b2255([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d5584(_0x8008b7(_0x1eb542)),_0x1c488f=_0x5a69e7(_0x3d5584(window[_0x3b2255([0x4d,0x61,0x74,0x68])][_0x3b2255([0x63,0x65,0x69,0x6c])](_0xfd33be/_0x3611d9)));window[_0x3b2255([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b2255([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x436ab9,_0x1c488f);}function _0x368f03(){const _0x1ae457=_0x3b2255([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d5584(_0x8008b7(_0x1eb542)),_0x30d287=window[_0x3b2255([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b2255([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ae457);return _0x30d287?window[_0x3b2255([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a69e7(_0x30d287),0x10)*_0x3611d9:null;}function _0x27e620(_0x5e567a){return new window[(_0x3b2255([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4758a3,_0x2eaed4)=>{_0x5e567a[_0x3b2255([0x74,0x68,0x65,0x6e])](_0x4758a3,_0x2eaed4),window[_0x3b2255([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2eaed4,0xc831fde^_0x18bc8d);});}}_0x5b1b98[_0x3b2255([0x6f,0x6e])](_0x3b2255([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x275fb8,_0x203eb5)=>{if(_0x203eb5[0x0]!=_0x1eb542)return _0x26c50d(_0x3b2255([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x203eb5[0x1]={..._0x203eb5[0x1],[_0x3b2255([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x513f6d};},{[_0x3b2255([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b2255([0x68,0x69,0x67,0x68])}),_0x5b1b98[_0x3b2255([0x6f,0x6e])](_0x3b2255([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x259ffb=>{_0x185365(_0x259ffb[_0x3b2255([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51fc41=!0x0,_0x268f82(_0x259ffb[_0x3b2255([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b2255([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b2255([0x6c,0x6f,0x77])}),_0x5b6ff3[_0x3b2255([0x74,0x68,0x65,0x6e])](()=>{_0x51fc41||_0x26c50d(_0x3b2255([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49a09b(){return _0x5b1b98[_0x3b2255([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b2255([0x76,0x69,0x65,0x77])][_0x3b2255([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b2255([0x61,0x75,0x74,0x6f]);}function _0x46da33(){_0x5b1b98[_0x3b2255([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b2255([0x76,0x69,0x65,0x77])][_0x3b2255([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b2255([0x61,0x75,0x74,0x6f]);}}function _0xfc4b01(_0x435fde){const _0x1e0a75=[new window[(_0x3b2255([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x562197=>setTimeout(_0x562197,0xc8bf5d2^_0x18bc8d)),_0x5b6ff3[_0x3b2255([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b2255([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36f2ac=>{let _0x231acf=0x0;_0x5b1b98[_0x3b2255([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b2255([0x6f,0x6e])](_0x3b2255([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x509b6f,_0x36e693)=>{_0x36e693[0x0][_0x3b2255([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x231acf++,_0x231acf==(0xc82cef6^_0x18bc8d)&&(_0x36f2ac(),_0x509b6f[_0x3b2255([0x6f,0x66,0x66])]());});}))];return window[_0x3b2255([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b2255([0x72,0x61,0x63,0x65])](_0x1e0a75)[_0x3b2255([0x74,0x68,0x65,0x6e])](()=>_0x435fde);}async function _0x2c5453(){await _0x5b6ff3,_0x5b1b98[_0x3b2255([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b2255([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x256c4a,_0x5b1b98[_0x3b2255([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b2255([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x256c4a,_0x5b1b98[_0x3b2255([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b2255([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x436d52(_0x4767ed){const _0x26ef54=_0xc24494();_0x5b1b98[_0x26ef54]=_0x3b2255([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4767ed,_0x4767ed!=_0x3b2255([0x56,0x61,0x6c,0x69,0x64])&&_0x2c5453();}function _0xc24494(){const _0x2fb3b5=window[_0x3b2255([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b2255([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b2255([0x6e,0x6f,0x77])]())[_0x3b2255([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b2255([0x2e]),'');let _0x330661=_0x3b2255([0x49]);for(let _0x459fef=0x0;_0x459fef<_0x2fb3b5[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x459fef+=0x2){let _0x1a32a6=window[_0x3b2255([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fb3b5[_0x3b2255([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x459fef,_0x459fef+0x2));_0x1a32a6>=_0x200459[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a32a6-=_0x200459[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x330661+=_0x200459[_0x1a32a6];}return _0x330661;}function _0x36e3cc(){const _0x24b3a6=_0x134f72[_0x3b2255([0x73,0x70,0x6c,0x69,0x74])](_0x3b2255([0x2e]));if(0x3!=_0x24b3a6[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x203e21(_0x24b3a6[0x1]);function _0x203e21(_0x2158da){const _0x4f4d01=_0x3310da(_0x2158da);return _0x4f4d01&&_0xa418aa()?_0x4f4d01:null;function _0xa418aa(){const _0xb09ff=_0x4f4d01[_0x3b2255([0x6a,0x74,0x69])],_0x127624=window[_0x3b2255([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb09ff[_0x3b2255([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb09ff[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb852e={..._0x4f4d01,[_0x3b2255([0x6a,0x74,0x69])]:_0xb09ff[_0x3b2255([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb09ff[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb852e[_0x3b2255([0x76,0x63])],_0x8008b7(_0xb852e)==_0x127624;}}}async function _0x432fe0(){let _0x336e63=!0x0;try{const _0x545216=_0x134f72[_0x3b2255([0x73,0x70,0x6c,0x69,0x74])](_0x3b2255([0x2e])),[_0xd35e85,_0x2f1a8b,_0x17b328]=_0x545216;return _0x4ef418(_0xd35e85),await _0x25f7e6(_0xd35e85,_0x2f1a8b,_0x17b328),_0x336e63;}catch{return!0x1;}function _0x4ef418(_0x5c7938){const _0xa9df9c=_0x3310da(_0x5c7938);_0xa9df9c&&_0xa9df9c[_0x3b2255([0x61,0x6c,0x67])]==_0x3b2255([0x45,0x53,0x32,0x35,0x36])||(_0x336e63=!0x1);}async function _0x25f7e6(_0x384781,_0x2726c9,_0x137d2d){const _0x493e52=window[_0x3b2255([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b2255([0x66,0x72,0x6f,0x6d])](_0x52f7bd(_0x137d2d),_0x5018a9=>_0x5018a9[_0x3b2255([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3178ee=new window[(_0x3b2255([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b2255([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x384781+_0x3b2255([0x2e])+_0x2726c9),_0x455ca3=window[_0x3b2255([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b2255([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x455ca3)return;const _0x383e80=await _0x455ca3[_0x3b2255([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b2255([0x6a,0x77,0x6b]),_0x4bdb3f,{[_0x3b2255([0x6e,0x61,0x6d,0x65])]:_0x3b2255([0x45,0x43,0x44,0x53,0x41]),[_0x3b2255([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b2255([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b2255([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x455ca3[_0x3b2255([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b2255([0x6e,0x61,0x6d,0x65])]:_0x3b2255([0x45,0x43,0x44,0x53,0x41]),[_0x3b2255([0x68,0x61,0x73,0x68])]:{[_0x3b2255([0x6e,0x61,0x6d,0x65])]:_0x3b2255([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x383e80,_0x493e52,_0x3178ee)||(_0x336e63=!0x1);}}function _0x3310da(_0x3c3d88){return _0x3c3d88[_0x3b2255([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b2255([0x65,0x79]))?JSON[_0x3b2255([0x70,0x61,0x72,0x73,0x65])](_0x52f7bd(_0x3c3d88)):null;}function _0x52f7bd(_0x4cbace){return window[_0x3b2255([0x61,0x74,0x6f,0x62])](_0x4cbace[_0x3b2255([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b2255([0x2b]))[_0x3b2255([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b2255([0x2f])));}function _0x8008b7(_0x32899c){let _0x4f5476=0x1505;function _0x407651(_0x474fdf){for(let _0x4217e5=0x0;_0x4217e5<_0x474fdf[_0x3b2255([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4217e5++){const _0x4f3269=_0x474fdf[_0x3b2255([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4217e5);_0x4f5476=(_0x4f5476<<0x5)+_0x4f5476+_0x4f3269,_0x4f5476&=_0x4f5476;}}function _0x428f75(_0x27ebb5){Array[_0x3b2255([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27ebb5)?_0x27ebb5[_0x3b2255([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x428f75):_0x27ebb5&&typeof _0x27ebb5==_0x3b2255([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b2255([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27ebb5)[_0x3b2255([0x73,0x6f,0x72,0x74])]()[_0x3b2255([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x404078,_0x4867cd])=>{_0x407651(_0x404078),_0x428f75(_0x4867cd);}):_0x407651(window[_0x3b2255([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27ebb5));}return _0x428f75(_0x32899c),_0x4f5476>>>0x0;}function _0x3d5584(_0xc4822f){return _0xc4822f[_0x3b2255([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b2255([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b2255([0x30]));}function _0x5a69e7(_0x4fd972){return _0x4fd972[_0x3b2255([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b2255([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b2255([0x6a,0x6f,0x69,0x6e])]('');}function _0x256c4a(){}function _0x3b2255(_0x337d68){return _0x337d68['map'](_0x3cf43b=>String['fromCharCode'](_0x3cf43b))['join']('');}_0x436d52(await _0xe44804());}(this);}['destroy'](){super['destroy'](),this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']&&(this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x545b9e=this['editor'],_0x38edde=_0x545b9e['editing']['view'],_0x2598da=this['_getAttachedDomRoot']();if(!_0x2598da||!_0x2598da['hasChildNodes']())return void _0x545b9e['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x102da3,pageHeight:_0x334559}=_0x545b9e['config']['get']('pagination'),{top:_0x5803a6,left:_0x118530,bottom:_0x589023,right:_0x8ce399}=this['_configuredPaddings'];this['_pagesContainer']=new _0x240c9d(_0x545b9e['locale']);const _0x4356be=this['_pagesContainer'];_0x4356be['set']('class',''),_0x4356be['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x102da3,'width':_0x102da3,'height':'calc(\x20'+_0x334559+'\x20-\x20'+_0x5803a6+'\x20-\x20'+_0x589023+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x8ce399+'\x200\x20'+_0x118530,'columnGap':'calc('+_0x118530+'\x20+\x20'+_0x8ce399+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x4356be['bindTemplate']['to']('class')}}),_0x4356be['render'](),_0x2598da['parentNode']['insertBefore'](_0x4356be['element'],_0x2598da['nextSibling']),this['listenTo'](_0x38edde,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x2041a1 of this['editor']['editing']['view']['domRoots']['values']())if(_0x2041a1['ownerDocument']['body']['contains'](_0x2041a1))return _0x2041a1;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x1adab4=this['editor']['editing']['view'],_0x4bf198=this['_pagesContainer'],_0x21ab45=this['_getAttachedDomRoot']();if(!_0x21ab45||!_0x4bf198)return Promise['resolve']();for(_0x4bf198['class']=['ck-reset','ck-pagination-view',..._0x21ab45['classList']]['join']('\x20');_0x4bf198['element']['firstChild'];)_0x4bf198['element']['firstChild']['remove']();const _0xf9088f=Array['from'](_0x1adab4['domRoots']);_0xf9088f['sort'](([,_0x2cf36a],[,_0x42d329])=>_0x2cf36a['compareDocumentPosition'](_0x42d329)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x436009,_0x51a53b]of _0xf9088f){const _0x1a72aa=_0x51a53b['cloneNode'](!0x0);'attributeStyleMap'in _0x1a72aa&&_0x1a72aa['attributeStyleMap']['clear'](),_0x1a72aa['dataset']['rootName']=_0x436009,_0x1a72aa['className']='ck-content\x20ck-pagination_enabled',_0x1a72aa['removeAttribute']('id'),_0x1a72aa['tabIndex']=-0x1,_0x4bf198['element']['append'](_0x1a72aa);}const _0x5e2d34=Array['from'](_0x4bf198['element']['querySelectorAll']('img'));return function(_0x22f867){return Promise['all'](_0x22f867['map'](_0x5dc04b=>Promise['race']([b(_0x5dc04b),k(0x3e8)])));}(_0x5e2d34)['then'](()=>{for(const _0x8e7c16 of _0x5e2d34['filter'](_0x3396a3=>!_0x3396a3['closest']('table')))if(_0x8e7c16['offsetParent']){const _0x3a6c09=_0x5085eb['window']['getComputedStyle'](_0x8e7c16),_0x5954d5=_0x5085eb['document']['createElement']('span');for(const _0x282ff4 of _0x3a6c09)_0x5954d5['style']['setProperty'](_0x282ff4,_0x3a6c09[_0x282ff4]);_0x5954d5['style']['backgroundImage']='url(\x20'+_0x8e7c16['src']+'\x20)',_0x5954d5['style']['breakInside']='avoid','PICTURE'==_0x8e7c16['parentElement']?.['tagName']?_0x8e7c16['parentElement']['replaceWith'](_0x5954d5):_0x8e7c16['replaceWith'](_0x5954d5);}return new Promise(_0x193ff1=>_0x5085eb['window']['requestAnimationFrame'](()=>_0x193ff1()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x2eea63=this['_pagesContainer']['element'];if(!_0x2eea63['ownerDocument']['body']['contains'](_0x2eea63))return;const _0xd1bc26=new _0x6ffb3(_0x2eea63)['excludeScrollbarsAndBorders'](),_0x5966f7=Math['floor'](_0xd1bc26['width']+0x64),_0x3b22b0=L(_0x2eea63,Math['floor'](_0xd1bc26['left']-_0x2eea63['scrollLeft']),_0x5966f7,_0xd1bc26['height'])['map'](_0x232612=>this['_mapPageStarterInfoToPageBreakInfo'](_0x232612))['filter'](_0x2fdbfc=>!0x1!==_0x2fdbfc);_0x3b22b0['every'](_0xe9ce97=>!!_0xe9ce97)&&(this['pageBreaks']=_0x3b22b0);}['_mapPageStarterInfoToPageBreakInfo'](_0x233fe9){const _0x2065e8=this['editor']['editing']['view'],_0x80daee=this['editor']['editing']['mapper'],_0x5c40b8=_0x2065e8['domConverter'],_0x2bb926=_0x233fe9['path']['shift'](),_0x411cc2=this['_pagesContainer']['element']['childNodes'][_0x2bb926]['dataset']['rootName'],_0x2153e9=_0x2065e8['getDomRoot'](_0x411cc2);if(!_0x2153e9)return null;const _0x417b1b=function(_0x58b859,_0x38de43){let _0x5ee7d7=_0x58b859;for(const _0x5d2393 of _0x38de43['path']){if(!_0x5ee7d7)return null;_0x5ee7d7=_0x5ee7d7['childNodes'][_0x5d2393];}return _0x5ee7d7;}(_0x2153e9,_0x233fe9);if(!_0x417b1b)return null;const _0xeda0dd=_0x5c40b8['domPositionToView'](_0x417b1b,_0x233fe9['textOffset']||0x0);return _0xeda0dd?'manual'==_0x233fe9['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0xeda0dd,_0x417b1b):'text'==_0x233fe9['type']&&_0x80daee['toModelPosition'](_0xeda0dd)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0xeda0dd,_0x417b1b,_0x233fe9['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0xeda0dd,_0x417b1b,_0x233fe9['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x539d6b,_0x4e5651){const _0x5431a6=this['editor']['model'],_0x4ffa28=this['editor']['editing']['mapper']['toModelElement'](_0x539d6b['parent']),_0x5afcbf=_0x5431a6['createRangeOn'](_0x4ffa28);return new PageBreakInfo({'type':'manual','modelRange':_0x5afcbf,'domNode':_0x4e5651,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x197182,_0x460dc2,_0xc3a45d){const _0xe5074e=this['editor']['model'],_0x124864=this['editor']['editing']['mapper'],_0x1ddfb4=this['editor']['editing']['view']['domConverter'];if(_0xc3a45d>=_0x460dc2['length'])return null;const _0x5c9e4a=_0x124864['toModelPosition'](_0x197182),_0x436566=_0xe5074e['createRange'](_0x5c9e4a),_0x1685bd=_0x124864['findMappedViewAncestor'](_0x197182),_0x3306e4=_0x1ddfb4['mapViewToDom'](_0x1685bd);return new PageBreakInfo({'type':'text','modelRange':_0x436566,'domNode':_0x460dc2,'offset':w(_0x460dc2,_0xc3a45d,_0x3306e4)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x2a4f2a,_0x55d032,_0x455f6c){const _0x32597b=this['editor']['model'],_0x466218=this['editor']['editing'],_0x30adfc=_0x466218['mapper'],_0x45cb48=_0x466218['view']['domConverter'],_0x4cf181=_0x30adfc['findMappedViewAncestor'](_0x2a4f2a),_0x180fce=_0x30adfc['toModelElement'](_0x4cf181);if(!_0x180fce||_0x180fce['is']('rootElement'))return!0x1;const _0x5617f9=function(_0x156815){const _0x44e91d=_0x156815['parent'],_0x190fd6=_0x44e91d['root']['document']['model'],_0x2deb68=_0x44e91d['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x4aca06=null;for(const _0x562746 of _0x2deb68){if(_0x562746['is']('rootElement'))return _0x4aca06;if(!_0x190fd6['createPositionBefore'](_0x562746)['isTouching'](_0x156815))return _0x4aca06;_0x4aca06=_0x562746;}}(_0x32597b['createPositionBefore'](_0x180fce)),_0x159206=_0x5617f9||_0x180fce;let _0x3f49cf=_0x30adfc['toViewElement'](_0x159206),_0x353ee2=_0x32597b['createRangeOn'](_0x159206);const _0x31f6c5=_0x32597b['createPositionBefore'](_0x159206)['nodeBefore'];if(_0x31f6c5&&_0x31f6c5['is']('element','imageBlock')){const _0x2c5bb7=_0x30adfc['toViewElement'](_0x31f6c5),_0x27ec9b=_0x45cb48['mapViewToDom'](_0x2c5bb7),_0x3df6ee=_0x5085eb['window']['getComputedStyle'](_0x27ec9b)['float'];'left'!=_0x3df6ee&&'right'!=_0x3df6ee||(_0x353ee2=_0x32597b['createRangeOn'](_0x31f6c5));}for(;_0x3f49cf['parent']!==_0x3f49cf['root']&&0x0===_0x3f49cf['index'];)_0x3f49cf=_0x3f49cf['parent'];const _0x3b60b7=new _0x6ffb3(S(_0x55d032)?_0x55d032:y(_0x55d032)),_0x1500e1=_0x455f6c?_0x3b60b7['height']-_0x455f6c:0x0,_0x57ff8d=_0x45cb48['mapViewToDom'](_0x3f49cf),_0x2543cb=new _0x6ffb3(_0x57ff8d);return new PageBreakInfo({'type':'element','modelRange':_0x353ee2,'domNode':_0x57ff8d,'offset':Math['round'](_0x1500e1)||_0x4cf181!=P(_0x2a4f2a)?_0x1500e1+_0x3b60b7['top']-_0x2543cb['top']:0x0});}get['_configuredPaddings'](){const _0x50d83e=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x50d83e);}static['_findPageStarterInfos'](_0x5ad484,_0x281752,_0x4f77e4,_0x566262,_0x38c49c){return L(_0x5ad484,_0x281752,_0x4f77e4,_0x566262,_0x38c49c);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x2ff46f,modelRange:_0x1921c5,domNode:_0x1be858,offset:_0x5434c3}){this['type']=_0x2ff46f,this['modelRange']=_0x1921c5,this['_domNode']=_0x1be858,this['_offset']=_0x5434c3;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x499116=new _0x6ffb3(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x499116['top']+_0x499116['height']/0x2:_0x499116['top']+this['_offset'];}}function w(_0x10ad0b,_0x25501e,_0x56c6d6){const _0x8930d5=y(_0x10ad0b),_0x4db028=function(_0x42392b){const _0x986fa8=_0x5085eb['document']['createRange']();return _0x986fa8['selectNodeContents'](_0x42392b),_0x986fa8;}(_0x56c6d6);let _0xf59786;_0xf59786=0x0==_0x25501e?x(_0x4db028['startContainer'],_0x4db028['startOffset'],_0x10ad0b['parentNode'],Array['from'](_0x10ad0b['parentNode']['childNodes'])['indexOf'](_0x10ad0b)):x(_0x4db028['startContainer'],_0x4db028['startOffset'],_0x10ad0b,_0x25501e);const _0x28a14e=x(_0x10ad0b,_0x25501e,_0x4db028['endContainer'],_0x4db028['endOffset']),_0x5dd106=new _0x6ffb3(_0xf59786)['bottom'];return(new _0x6ffb3(_0x28a14e)['top']+_0x5dd106)/0x2-new _0x6ffb3(_0x8930d5)['top'];}function P(_0x388aae){let _0x250aed=_0x388aae['parent'];for(;_0x250aed['is']('$text')||_0x250aed['is']('attributeElement');)_0x250aed=_0x250aed['parent'];return _0x250aed;}function b(_0x45a984){return _0x45a984['hasAttribute']('width')&&_0x45a984['hasAttribute']('height')?Promise['resolve']():new Promise(_0x3b93de=>{function _0xba9d25(){_0x45a984['removeEventListener']('load',_0xba9d25),_0x45a984['removeEventListener']('error',_0xba9d25),_0x3b93de();}_0x45a984['complete']?_0x3b93de():(_0x45a984['addEventListener']('load',_0xba9d25),_0x45a984['addEventListener']('error',_0xba9d25));});}function k(_0x184a4a){return new Promise(_0x517f8e=>setTimeout(_0x517f8e,_0x184a4a));}function y(_0x17fea4){const _0x144fc8=_0x5085eb['document']['createRange']();return _0x144fc8['selectNode'](_0x17fea4),_0x144fc8;}function v(_0x5aedc2,_0x2f8bcc,_0x4573d2){const _0x11a6da=_0x5085eb['document']['createRange']();return _0x11a6da['setStart'](_0x5aedc2,_0x2f8bcc),_0x11a6da['setEnd'](_0x5aedc2,_0x4573d2),_0x11a6da;}function x(_0x1dc234,_0x56267a,_0x2307e5,_0x5ab265){const _0x5c81b3=_0x5085eb['document']['createRange']();return _0x5c81b3['setStart'](_0x1dc234,_0x56267a),_0x5c81b3['setEnd'](_0x2307e5,_0x5ab265),_0x5c81b3;}function L(_0x299887,_0x39b7ba,_0x35d388,_0x54b923,_0xab007f){const _0x2ab630=[];for(const [_0xdfe77a,_0x3cf2a9]of _0x299887['childNodes']['entries']()){let _0x23ca51=[];S(_0x3cf2a9)&&_0x3cf2a9['offsetParent']&&['static','relative']['includes'](_0x5085eb['window']['getComputedStyle'](_0x3cf2a9)['position'])?_0x23ca51=N(_0x3cf2a9,_0xdfe77a,_0x39b7ba,_0x35d388,_0x54b923,_0xab007f):I(_0x3cf2a9)&&(_0x23ca51=_(_0x3cf2a9,_0xdfe77a,_0x39b7ba,_0x35d388,_0xab007f)),_0x23ca51['length']&&(_0x2ab630['push'](..._0x23ca51),_0x39b7ba+=_0x23ca51['length']*_0x35d388,_0xab007f=!0x1);}return _0x2ab630;}function N(_0x8e84da,_0x574d13,_0xaecebc,_0x803483,_0x40aaa9,_0x3b0fe1){const _0x34d31f=[];var _0x5cccaa;if((_0x5cccaa=_0x8e84da['previousSibling'])&&S(_0x5cccaa)&&Boolean(_0x5cccaa['classList']['contains']('page-break')||_0x5cccaa['closest']('.page-break'))&&(_0x34d31f['push']({'type':'manual','offset':0x0,'path':[_0x574d13-0x1]}),_0x3b0fe1=!0x0),'table-row'==_0x5085eb['window']['getComputedStyle'](_0x8e84da)['display']){let _0x470fc7=0x0,_0x4ff721=!0x1;for(const _0x15c59e of _0x8e84da['getClientRects']())_0x470fc7+=_0x15c59e['height'],_0x15c59e['left']>=_0xaecebc&&(_0x4ff721=!0x0);if(_0x470fc7<_0x40aaa9&&_0x4ff721)return _0x3b0fe1||_0x34d31f['push']({'type':'element','offset':0x0,'path':[_0x574d13]}),_0x34d31f;}const _0x55b7ba=_0x8e84da['closest']('figure.image');if(_0x55b7ba&&function(_0x20e8ac){let _0x5ef439=!0x1;const _0x4232f1=_0x20e8ac['parentElement'],_0x576932=_0x4232f1['dataset']['rootName'],_0x2656ac=_0x20e8ac['nextElementSibling'],_0x3cd599=_0x20e8ac['previousElementSibling'],_0x110605=_0x2656ac&&_0x5085eb['window']['getComputedStyle'](_0x2656ac)['float'],_0x347833=_0x2656ac&&'ck-fake-selection-container'===_0x2656ac['className'];!_0x576932||_0x2656ac||_0x3cd599||(_0x5ef439=!0x0),_0x576932&&!_0x3cd599&&_0x347833&&(_0x5ef439=!0x0),_0x576932&&!_0x3cd599&&'none'!==_0x110605&&(_0x5ef439=!0x0);if(_0x5ef439)return!0x1;return!0x0;}(_0x55b7ba)){const _0x5814b5=_0x5085eb['window']['getComputedStyle'](_0x55b7ba)['float'];if('left'==_0x5814b5||'right'==_0x5814b5)return _0x34d31f;}const _0x1cc0d0=L(_0x8e84da,_0xaecebc,_0x803483,_0x40aaa9,_0x3b0fe1);if(_0x1cc0d0['length']){for(const _0x3bbf5f of _0x1cc0d0)_0x34d31f['push']({'type':_0x3bbf5f['type'],'offset':_0x3bbf5f['offset'],'textOffset':_0x3bbf5f['textOffset'],'path':[_0x574d13,..._0x3bbf5f['path']]}),_0xaecebc+=_0x803483,_0x3b0fe1=!0x1;return _0x34d31f;}return _0x34d31f['push'](...function(_0x36123f,_0x321973,_0x313738,_0x214292,_0x16541c){const _0x346b1d=[];if('table-cell'==_0x5085eb['window']['getComputedStyle'](_0x36123f)['display'])return[];const _0x5dfe3=[];for(const _0x4a9020 of _0x36123f['getClientRects']())if(_0x4a9020['left']>=_0x313738){for(const _0x542c03 of _0x5dfe3)_0x542c03['height']+=_0x4a9020['height'];_0x5dfe3['push']({'height':_0x4a9020['height']}),_0x313738+=_0x214292;}for(const _0x3de444 of _0x5dfe3)_0x16541c||_0x346b1d['push']({'type':'element','offset':_0x3de444['height'],'textOffset':0x0,'path':[_0x321973]}),_0x16541c=!0x1;return _0x346b1d;}(_0x8e84da,_0x574d13,_0xaecebc,_0x803483,_0x3b0fe1)),_0x34d31f;}function _(_0x2a8787,_0x28acae,_0x13cd6a,_0x294281,_0x360fe1){const _0x1460d0=y(_0x2a8787),_0x431588=[];let _0x5858fa=0x0;for(const _0x1c35b0 of _0x1460d0['getClientRects']())if(_0x1c35b0['left']>=_0x13cd6a){const _0x42db03=R(_0x2a8787,_0x5858fa,_0x13cd6a,_0x294281);_0x360fe1||_0x431588['push']({'type':'text','path':[_0x28acae],'textOffset':_0x42db03}),_0x5858fa=_0x42db03,_0x13cd6a+=_0x294281,_0x360fe1=!0x1;}return _0x431588;}function R(_0x2336a9,_0x1a52ac,_0x1d1a44,_0x459b93){let _0x5674cf=_0x1a52ac,_0xaeddf9=_0x2336a9['length'];for(;_0xaeddf9-_0x5674cf>0x1;){const _0x50139b=Math['ceil']((_0x5674cf+_0xaeddf9)/0x2);E(v(_0x2336a9,_0x5674cf,_0x50139b),_0x1d1a44,_0x459b93)?_0xaeddf9=_0x50139b:_0x5674cf=_0x50139b;}return _0x5674cf;}function E(_0x39ac3a,_0x359366,_0x4d0141){for(const _0x450cb2 of _0x39ac3a['getClientRects']())if(_0x450cb2['left']>=_0x359366&&_0x450cb2['left']<_0x359366+_0x4d0141)return!0x0;return!0x1;}function S(_0x1054db){return _0x1054db['nodeType']==Node['ELEMENT_NODE'];}function I(_0x58d2ec){return _0x58d2ec['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
- _0x4cb1cb('px');class LineView extends _0x240c9d{constructor(){super();const _0x1a5caa=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x1a5caa['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x1a5caa['if']('isVisible','ck-hidden',_0x572881=>!_0x572881)],'style':{'left':_0x1a5caa['to']('left',_0x5ed653=>B(_0x5ed653)),'top':_0x1a5caa['to']('top',_0x49ddb7=>B(_0x49ddb7)),'width':_0x1a5caa['to']('width',_0x23e533=>B(_0x23e533))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x3c3d7e){this['_viewCollection']=_0x3c3d7e['ui']['view']['body'];}['destroy'](){for(const _0x27abe3 of this['_hiddenLines'])_0x27abe3['destroy']();}['cleanLines'](){for(const _0x5034ac of this['_visibleLines'])_0x5034ac['isVisible']=!0x1,this['_hiddenLines']['add'](_0x5034ac);this['_visibleLines']['clear']();}['showLine'](_0x4754ee,_0x39dfa4,_0x409eb4,_0x4e027c){let _0x5d4da6;this['_hiddenLines']['size']?(_0x5d4da6=_0x2b41a7(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x5d4da6)):_0x5d4da6=new LineView(),_0x5d4da6['set']({'pageNumber':_0x4e027c,'left':_0x4754ee,'top':_0x39dfa4,'width':_0x409eb4}),_0x5d4da6['isVisible']=!0x0,this['_viewCollection']['has'](_0x5d4da6)||this['_viewCollection']['add'](_0x5d4da6),this['_visibleLines']['add'](_0x5d4da6);}['setViewCollection'](_0x349f11){for(const _0xf93e34 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0xf93e34)&&this['_viewCollection']['remove'](_0xf93e34);this['_viewCollection']=_0x349f11;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x4a7287{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new LinesRepository(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](K),this['on']('change:isEnabled',(_0x19909d,_0x37c5a9,_0x1ad6d8)=>{_0x1ad6d8||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x1ad6d8);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0xdb4b3b){if(!this['isEnabled'])return;const _0x165754=_0xdb4b3b>0x1?this['_getPageBreakLineOffset'](_0xdb4b3b-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x165754-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x8b2868['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x5f2269=this['editor'],_0x2af459=this['_getAttachedDomRoot']();_0x2af459?(this['_scrollableEditingRootDomAncestor']&&_0x5f2269['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x5c3d44){let _0x51d490=_0x5c3d44;do{_0x51d490=_0x51d490['parentElement'];const _0x4964e0=_0x5085eb['window']['getComputedStyle'](_0x51d490)['overflowY'];if('auto'==_0x4964e0||'scroll'==_0x4964e0)break;}while('BODY'!=_0x51d490['tagName']);return _0x51d490;}(_0x2af459),_0x5f2269['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x3a5c9f(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x5f2269['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x15268b=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x15268b['ui']['view']['listenTo'](_0x5085eb['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x15268b['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x50bcc9 of this['editor']['editing']['view']['domRoots']['values']())if(_0x50bcc9['ownerDocument']['body']['contains'](_0x50bcc9))return _0x50bcc9;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x796290=this['_getAttachedDomRoot'](),_0x58de5b=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x796290||0x1==_0x58de5b['length'])return void(this['pageNumber']=0x1);const _0x52392f=new _0x6ffb3(_0x796290)['excludeScrollbarsAndBorders'](),_0x3e59ef=new _0x6ffb3(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x3773e0=_0x3e59ef['top']+_0x3e59ef['height']/0x3;let _0x377727=!0x1;const _0x43bb50=[];for(let _0x6b5581=0x1;_0x6b5581<_0x58de5b['length'];_0x6b5581++){const _0x1031cb=this['_getPageBreakLineOffset'](_0x6b5581,_0x3e59ef);if(!_0x1031cb)continue;const _0x5f4b78=_0x3e59ef['top']+_0x1031cb-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x43bb50['push']({'pageOffsetTop':_0x5f4b78,'domRootRect':_0x52392f,'domScrollableRect':_0x3e59ef,'pageNumber':_0x6b5581}),_0x5f4b78>_0x3773e0&&!_0x377727&&(this['pageNumber']=_0x6b5581,_0x377727=!0x0);}this['_renderPageBreakLines'](_0x43bb50),_0x377727||(this['pageNumber']=_0x58de5b['length']);}['_renderPageBreakLines'](_0x1d78f7){const {scrollX:_0x1cab58,scrollY:_0x2ffba3}=_0x5085eb['window'];if(_0x1d78f7['length']){for(const {domScrollableRect:_0xd30850,pageOffsetTop:_0x3131d8,domRootRect:_0x239420,pageNumber:_0x353be5}of _0x1d78f7)_0xd30850['top']<_0x3131d8&&_0x3131d8<_0xd30850['bottom']&&this['linesRepository']['showLine'](_0x239420['left']+_0x1cab58,_0x3131d8+_0x2ffba3,_0x239420['width'],_0x353be5+0x1);}}['_getPageBreakLineOffset'](_0x5e4925,_0xf5c201=null){const _0x5627e1=this['_paginationLookupPlugin']['pageBreaks'][_0x5e4925]['offset'];return _0x5627e1?(_0xf5c201||(_0xf5c201=new _0x6ffb3(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x5627e1-_0xf5c201['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x304606,_0x1b57bd=!0x0){const _0x2168fd=this['editor']['editing']['view'];_0x2168fd['change'](_0x15b113=>{for(const _0x1ab015 of _0x2168fd['document']['roots'])_0x1b57bd?_0x15b113['addClass'](_0x304606,_0x1ab015):_0x15b113['removeClass'](_0x304606,_0x1ab015);});}}function O(_0xf90737,_0x41ee86,..._0x236f5b){const t=_0xf90737['t'];switch(_0x41ee86){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)',..._0x236f5b);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 _0x41ee86;}}class PaginationEditing extends _0x4a7287{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationLookup,PaginationRenderer];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x483562=this['editor']['plugins']['get']('Pagination'),_0x43681a=this['editor']['plugins']['get'](PaginationLookup),_0x5e6f85=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x483562),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x5e6f85),this['listenTo'](_0x43681a,'change:pageBreaks',(_0x4634e0,_0x1f44cc,_0x15955d,_0x579ba8)=>{this['totalPages']=_0x15955d['length'],this['_updatePageBreakMarkers'](_0x15955d,_0x579ba8);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3dfbf3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1144b1;for(const _0x4469df in _0x3dfbf3){const _0x19327a=_0x4469df,_0xd25592=_0x3dfbf3[_0x19327a];if('paginationLicenseKeyValid'==_0xd25592||'paginationLicenseKeyInvalid'==_0xd25592||'paginationLicenseKeyExpired'==_0xd25592||'paginationLicenseKeyDomainLimit'==_0xd25592||'paginationLicenseKeyNotAllowed'==_0xd25592||'paginationLicenseKeyEvaluationLimit'==_0xd25592||'paginationLicenseKeyUsageLimit'==_0xd25592){delete _0x3dfbf3[_0x19327a],_0x1144b1=_0xd25592,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x1144b1&&_0x3dfbf3['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x1144b1&&_0x3dfbf3['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x1144b1&&_0x3dfbf3['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x1144b1&&_0x3dfbf3['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x1144b1&&_0x3dfbf3['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x1144b1&&_0x3dfbf3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x13b022){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x13b022));}['moveSelectionToPage'](_0x563d91){if(!this['isEnabled'])return;const _0x3b0189=this['editor'],_0x111c32=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x563d91-0x1];_0x111c32&&_0x3b0189['model']['change'](_0x40a59d=>{switch(_0x111c32['type']){case'manual':{const _0x438963=_0x3b0189['model']['schema']['getNearestSelectionRange'](_0x111c32['modelRange']['end'],'forward');_0x40a59d['setSelection'](_0x438963);break;}case'element':{const _0x2923c3=_0x3b0189['model']['schema']['getNearestSelectionRange'](_0x111c32['modelRange']['start'],'forward');_0x40a59d['setSelection'](_0x2923c3);break;}case'text':{const _0xe474ae=_0x111c32['modelRange']['start'];if(_0xe474ae['textNode']&&'\x20'===_0xe474ae['textNode']['data'][_0xe474ae['offset']]){const _0x8bc2a8=_0x40a59d['createPositionAt'](_0xe474ae['parent'],_0xe474ae['offset']+0x1);_0x40a59d['setSelection'](_0x8bc2a8);}else _0x40a59d['setSelection'](_0x111c32['modelRange']);}}_0x3b0189['editing']['view']['focus']();});}['goToNextPage'](){const _0x30b2c4=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x30b2c4),this['scrollToPage'](_0x30b2c4);}['goToPreviousPage'](){const _0x38e755=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x38e755),this['scrollToPage'](_0x38e755);}['_updatePageBreakMarkers'](_0x5c6844,_0x40be26){const _0x39f6df=this['editor']['model'];this['isEnabled']&&_0x39f6df['change'](_0xae8cd9=>{for(let _0x491cf8=0x1;_0x491cf8<_0x5c6844['length'];_0x491cf8++){const _0x500b3f=_0x5c6844[_0x491cf8]['modelRange'],_0x2f7b89='pagination:'+(_0x491cf8+0x1);_0x39f6df['markers']['has'](_0x2f7b89)?_0xae8cd9['updateMarker'](_0x2f7b89,{'range':_0x500b3f}):_0xae8cd9['addMarker'](_0x2f7b89,{'range':_0x500b3f,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x1afcf9=_0x5c6844['length'];_0x1afcf9<_0x40be26['length'];_0x1afcf9++){const _0x4e118f='pagination:'+(_0x1afcf9+0x1);_0x39f6df['markers']['has'](_0x4e118f)&&_0xae8cd9['removeMarker'](_0x4e118f);}});}['_setUpDataDowncastConversion'](){const _0x231dc3='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x2fca6f=>{_0x2fca6f['on']('addMarker:'+_0x231dc3,(_0x2c6dcb,{markerRange:_0x277606,markerName:_0x4bc1cb},_0x1bc7e7)=>{if(!_0x1bc7e7['options']['pagination'])return;if(!_0x1bc7e7['consumable']['consume'](_0x277606,_0x2c6dcb['name']))return;const _0x50e5f=_0x277606['getContainedElement']();let _0x8a27aa=_0x50e5f?_0x1bc7e7['mapper']['toViewElement'](_0x50e5f):null;if(!_0x8a27aa){const _0x405699=_0x277606['start'];if(_0x1bc7e7['schema']['checkChild'](_0x405699,'$text')){const _0x4926ab=_0x1bc7e7['mapper']['toViewPosition'](_0x405699);_0x8a27aa=_0x1bc7e7['writer']['createContainerElement']('span'),_0x8a27aa['getFillerOffset']=()=>null,_0x1bc7e7['writer']['insert'](_0x4926ab,_0x8a27aa);}else{const _0x2e2c7d=_0x405699['nodeAfter'];_0x8a27aa=_0x1bc7e7['mapper']['toViewElement'](_0x2e2c7d);}}for(;_0x8a27aa['parent']!==_0x8a27aa['root']&&0x0===_0x8a27aa['index'];)_0x8a27aa=_0x8a27aa['parent'];const _0x369ac9=_0x4bc1cb['substring'](0xb);_0x8a27aa['hasClass']('page-break')||(_0x1bc7e7['writer']['setStyle']('page-break-before','always',_0x8a27aa),_0x1bc7e7['writer']['setAttribute']('data-pagination-page',_0x369ac9,_0x8a27aa),_0x1bc7e7['mapper']['bindElementToMarker'](_0x8a27aa,_0x4bc1cb)),_0x2c6dcb['stop']();});});}['_setupKeystrokes'](){const _0x2da00b=this['editor'];_0x2da00b['keystrokes']['set']('Shift+Pageup',(_0x45d779,_0x20a845)=>{this['goToPreviousPage'](),_0x20a845();}),_0x2da00b['keystrokes']['set']('Shift+Pagedown',(_0xa52d59,_0x4f9d55)=>{this['goToNextPage'](),_0x4f9d55();}),_0x2da00b['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x2da00b['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x2da00b['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x2da00b['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x2b0970){return _0x2b0970<0x1&&(_0x2b0970=0x1),_0x2b0970>this['totalPages']&&(_0x2b0970=this['totalPages']),_0x2b0970;}}class PageNavigatorView extends _0x240c9d{['pageNumberView'];constructor(_0x3cc803){super(_0x3cc803);const _0x31a1b9=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x1717c8(_0x3cc803,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0xccc325=>O(_0x3cc803,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0xccc325)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x3d1b4a=>!_0x3d1b4a),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x31a1b9['if']('isEnabled','ck-disabled',_0x5e6c4c=>!_0x5e6c4c)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x31a1b9['to']('totalPages')}]}]});}['render'](){super['render']();const _0x83d647=this['pageNumberView']['element'],_0x494328=_0x368249=>{this['pageNumberView']['element']['value']=String(_0x368249);};_0x494328(this['pageNumber']),this['on']('change:pageNumber',(_0x33e120,_0x557a56,_0x1bb181)=>{_0x494328(_0x1bb181);}),this['listenTo'](_0x83d647,'keydown',(_0x4e0463,_0x2c60ac)=>{if('ArrowUp'===_0x2c60ac['key']||'ArrowDown'===_0x2c60ac['key'])return void _0x2c60ac['stopPropagation']();if(_0x2c60ac['keyCode']!==_0x208ccb['enter'])return;_0x2c60ac['preventDefault']();const _0x4933b6=_0x83d647['valueAsNumber'];Number['isNaN'](_0x4933b6)?_0x83d647['value']=String(this['pageNumber']):(_0x83d647['checkValidity']()?this['pageNumber']=_0x4933b6:_0x4933b6>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x83d647['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x83d647['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x83d647,'blur',()=>{_0x83d647['value']=String(this['pageNumber']);}),this['listenTo'](_0x83d647,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['pageNumberView']['element']['focus']();}}class PaginationUI extends _0x4a7287{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2f9d9c=this['editor'],_0x30a980=_0x2f9d9c['plugins']['get']('PaginationEditing');_0x2f9d9c['ui']['componentFactory']['add']('pageNavigation',_0x4e260b=>{const _0x43ae0b=new PageNavigatorView(_0x4e260b);return _0x43ae0b['bind']('pageNumber')['to'](_0x30a980),_0x43ae0b['bind']('totalPages')['to'](_0x30a980),_0x43ae0b['bind']('isEnabled')['to'](_0x30a980),_0x43ae0b['on']('navigation',(_0x319b1d,_0x410545)=>{_0x30a980['moveSelectionToPage'](_0x410545),_0x30a980['scrollToPage'](_0x410545);}),_0x43ae0b;}),_0x2f9d9c['ui']['componentFactory']['add']('nextPage',_0x305fd0=>{const _0x217564=new _0x43d50a(_0x305fd0);return _0x217564['isEnabled']=!0x0,_0x217564['label']=O(_0x2f9d9c['locale'],'Go\x20to\x20next\x20page'),_0x217564['icon']=_0x47680a,_0x217564['tooltip']=!0x0,_0x217564['keystroke']='Shift+PageDown',_0x217564['bind']('isEnabled')['to'](_0x30a980),this['listenTo'](_0x217564,'execute',()=>{_0x30a980['goToNextPage']();}),_0x217564;}),_0x2f9d9c['ui']['componentFactory']['add']('previousPage',_0x422d85=>{const _0x1bb82a=new _0x43d50a(_0x422d85);return _0x1bb82a['isEnabled']=!0x0,_0x1bb82a['label']=O(_0x2f9d9c['locale'],'Go\x20to\x20previous\x20page'),_0x1bb82a['icon']=_0x45c12f,_0x1bb82a['tooltip']=!0x0,_0x1bb82a['keystroke']='Shift+PageUp',_0x1bb82a['bind']('isEnabled')['to'](_0x30a980),this['listenTo'](_0x1bb82a,'execute',()=>{_0x30a980['goToPreviousPage']();}),_0x1bb82a;});}}class Pagination extends _0x4a7287{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x597d5f){super(_0x597d5f),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x485324=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x485324),this['bind']('totalPages')['to'](_0x485324),_0x8b2868['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x58f250){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x58f250);}}export{Pagination,PaginationRenderer};
23
+ import{Plugin as _0x37ec5e}from'@ckeditor/ckeditor5-core';import{ButtonView as _0x5aa8de,InputNumberView as _0x31e9e0,View as _0x51933e}from'@ckeditor/ckeditor5-ui';import{Rect as _0x59fe2e,ResizeObserver as _0x112b25,env as _0x1890e3,first as _0xfa701c,global as _0x41f86f,keyCodes as _0x4bb223,logWarning as _0x1708e8,toUnit as _0x13dceb,uid as _0xa227db}from'@ckeditor/ckeditor5-utils';import{debounce as _0x5b89a1}from'es-toolkit/compat';import{IconArrowDown as _0x3d46a3,IconArrowUp as _0x318d33}from'@ckeditor/ckeditor5-icons';var w=class extends _0x37ec5e{['_recalculatePageBreaksDebounced']=_0x5b89a1(()=>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 _0x1708e8('pagination-config-not-found',this['editor']['config']);const _0x4890ca=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x4890ca),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x31ae7,_0x516039,_0x138599)=>{_0x138599&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0xa11b24){const _0x3f0d98='I9sCmg3DJiG5LFMuQjwhT0XBYyxSqvdPO46NZAcVzb71RWkfe8oKptnrUEal2H',_0xc72c99=0x78df8,_0x5b4e47=window['Date']['now'](),_0x2769db=_0xa11b24['editor'],_0x127615=new window['Promise'](_0x184a6c=>{_0x2769db['once']('ready',_0x184a6c);}),_0x1aa8fb={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x544824=_0x2769db['config']['get']('licenseKey');async function _0x3c36ff(){let _0x5d3e1b,_0x44a495=null,_0xe485d5=null;try{return'GPL'==_0x544824?'NotAllowed':(_0x5d3e1b=_0x5aeafe(),_0x5d3e1b?(_0x5d3e1b['usageEndpoint']&&(_0xe485d5=_0x13dc3f(_0x5d3e1b['usageEndpoint'],_0x5d3e1b['jti'])),await _0x35d0ac()?_0x15e978()?_0x228f14()?'Expired':_0x3d9973()?('evaluation'==_0x5d3e1b['licenseType']&&(_0x44a495=_0x5a0a61('EvaluationLimit')),await _0x4de3fe()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x228f14(){const _0x1aa43f=['evaluation','trial']['includes'](_0x5d3e1b['licenseType'])?_0x5b4e47/0x3e8:0xe10*_0xc72c99;return _0x5d3e1b['exp']<_0x1aa43f;}function _0x15e978(){const _0x29be15=_0x5d3e1b['features'];return!!_0x29be15&&(!!_0x29be15['includes']('*')||!!_0x29be15['includes']('PAG'));}function _0x3d9973(){const _0x7df6b8=_0x5d3e1b['licensedHosts'];if(!_0x7df6b8||0x0==_0x7df6b8['length'])return!0x0;const {hostname:_0x4db5f4}=new URL(window['location']['href']);if(_0x7df6b8['includes'](_0x4db5f4))return!0x0;const _0x426c9e=_0x4db5f4['split']('.');return _0x7df6b8['filter'](_0x580a9d=>_0x580a9d['includes']('*'))['map'](_0x4482c3=>_0x4482c3['split']('.'))['filter'](_0x52e5c8=>_0x52e5c8['length']<=_0x426c9e['length'])['map'](_0x42022b=>Array(_0x426c9e['length']-_0x42022b['length'])['fill']('*'===_0x42022b[0x0]?'*':'')['concat'](_0x42022b))['some'](_0x309dbe=>_0x426c9e['every']((_0xd8d14c,_0x4e769a)=>_0x309dbe[_0x4e769a]===_0xd8d14c||'*'===_0x309dbe[_0x4e769a]));}function _0x4de3fe(){return _0x44a495&&_0xe485d5?new window['Promise']((_0x40d281,_0x3324fa)=>{_0x44a495['then'](_0x40d281,_0x3324fa),_0xe485d5['then'](_0x264024=>{'Valid'!=_0x264024&&_0x40d281(_0x264024);},_0x3324fa);}):_0x44a495||_0xe485d5||'Valid';}}function _0x13dc3f(_0x44a0dc,_0x505d9d){return new window['Promise'](_0x4cc649=>{if(_0x440359())return _0x4cc649('Valid');_0x414b57(),_0x2769db['decorate']('_sendUsageRequest');let _0x250970=!0x1;const _0x228307=_0xa227db();function _0x41d34c(_0x544688){return!!_0x544688&&('object'==typeof _0x544688||'function'==typeof _0x544688)&&'function'==typeof _0x544688['then']&&'function'==typeof _0x544688['catch'];}function _0x264b88(_0x1d3fcb){_0x5da3f2(_0x1d3fcb)['then'](_0x5604bb=>_0x5604bb&&'ok'==_0x5604bb['status']?_0x23b869(_0x3155c5(_0x228307+_0x505d9d))!=_0x5604bb['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5f2a9b=>(_0x3185a1(),_0x5f2a9b),()=>{const _0xb16ef5=_0x59181b();return null==_0xb16ef5?(_0x3185a1(),'Valid'):_0x5b4e47-_0xb16ef5>0x240c8400?'UsageLimit':'Valid';})['then'](_0x4cc649)['catch'](()=>{_0x4cc649('UsageLimit');});const _0x263eae=0x36ee80;function _0x3185a1(){const _0x5451cc='llct-'+_0x23b869(_0x3155c5(_0x44a0dc)),_0x2e714e=_0x3f59f8(_0x23b869(window['Math']['ceil'](_0x5b4e47/_0x263eae)));window['localStorage']['setItem'](_0x5451cc,_0x2e714e);}function _0x59181b(){const _0x115b8a='llct-'+_0x23b869(_0x3155c5(_0x44a0dc)),_0x52a2c5=window['localStorage']['getItem'](_0x115b8a);return _0x52a2c5?window['parseInt'](_0x3f59f8(_0x52a2c5),0x10)*_0x263eae:null;}function _0x5da3f2(_0x21bf20){return new window['Promise']((_0x27a5f9,_0x31cde8)=>{_0x21bf20['then'](_0x27a5f9,_0x31cde8),window['setTimeout'](_0x31cde8,0x1d4c0);});}}_0x2769db['on']('_sendUsageRequest',(_0x452ac8,_0x4bf21c)=>{if(_0x4bf21c[0x0]!=_0x44a0dc)return _0x4cc649('UsageLimit');_0x4bf21c[0x1]={..._0x4bf21c[0x1],'requestId':_0x228307};},{'priority':'high'}),_0x2769db['on']('_sendUsageRequest',_0x348257=>{_0x41d34c(_0x348257['return'])&&(_0x250970=!0x0,_0x264b88(_0x348257['return']));},{'priority':'low'}),_0x127615['then'](()=>{_0x250970||_0x4cc649('UsageLimit');});});function _0x440359(){return'auto'==_0x2769db['editing']['view']['_overlayModeHint'];}function _0x414b57(){_0x2769db['editing']['view']['_overlayModeHint']='auto';}}function _0x5a0a61(_0x5d9ae3){const _0x2d51b1=[new window['Promise'](_0xd7b164=>setTimeout(_0xd7b164,0x93ecc)),_0x127615['then'](()=>new window['Promise'](_0x5b2068=>{let _0x412a4f=0x0;_0x2769db['model']['on']('applyOperation',(_0x3d85ce,_0x1bb878)=>{_0x1bb878[0x0]['isDocumentOperation']&&_0x412a4f++,0x5e8==_0x412a4f&&(_0x5b2068(),_0x3d85ce['off']());});}))];return window['Promise']['race'](_0x2d51b1)['then'](()=>_0x5d9ae3);}async function _0x14c1a1(){await _0x127615,_0x2769db['model']['change']=_0x4e22ec,_0x2769db['model']['enqueueChange']=_0x4e22ec,_0x2769db['enableReadOnlyMode']('model');}function _0x31ccaa(_0x4298d2){const _0x13c916=_0x5d4176();_0x2769db[_0x13c916]='paginationLicenseKey'+_0x4298d2,'Valid'!=_0x4298d2&&_0x14c1a1();}function _0x5d4176(){const _0x26606d=window['String'](window['performance']['now']())['replace']('.','');let _0x3a850e='I';for(let _0x32344f=0x0;_0x32344f<_0x26606d['length'];_0x32344f+=0x2){let _0x24c8aa=window['parseInt'](_0x26606d['substring'](_0x32344f,_0x32344f+0x2));_0x24c8aa>=0x3e&&(_0x24c8aa-=0x3e),_0x3a850e+=_0x3f0d98[_0x24c8aa];}return _0x3a850e;}function _0x5aeafe(){const _0x4de31c=_0x544824['split']('.');if(0x3!=_0x4de31c['length'])return null;return _0x3883e8(_0x4de31c[0x1]);function _0x3883e8(_0x5a379d){const _0x588da5=_0x4ffde5(_0x5a379d);return _0x588da5&&_0x393c8c()?_0x588da5:null;function _0x393c8c(){const _0x209424=_0x588da5['jti'],_0x5a5da0=window['parseInt'](_0x209424['substring'](_0x209424['length']-0x8),0x10),_0x1c4579={..._0x588da5,'jti':_0x209424['substring'](0x0,_0x209424['length']-0x8)};return delete _0x1c4579['vc'],_0x3155c5(_0x1c4579)==_0x5a5da0;}}}async function _0x35d0ac(){let _0x18b3c0=!0x0;try{const [_0x13e4dc,_0x4b6795,_0xcd268a]=_0x544824['split']('.');return _0xc57090(_0x13e4dc),await _0x469478(_0x13e4dc,_0x4b6795,_0xcd268a),_0x18b3c0;}catch{return!0x1;}function _0xc57090(_0x2064df){const _0x1aebec=_0x4ffde5(_0x2064df);_0x1aebec&&'ES256'==_0x1aebec['alg']||(_0x18b3c0=!0x1);}async function _0x469478(_0x2585c9,_0x4b3dd2,_0x961b96){const _0x4bbbaa=window['Uint8Array']['from'](_0x22daab(_0x961b96),_0x491bee=>_0x491bee['charCodeAt'](0x0)),_0x2b0bb7=new window['TextEncoder']()['encode'](_0x2585c9+'.'+_0x4b3dd2),_0x898590=window['crypto']['subtle'];if(!_0x898590)return;const _0x2e353a=await _0x898590['importKey']('jwk',_0x1aa8fb,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x898590['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2e353a,_0x4bbbaa,_0x2b0bb7)||(_0x18b3c0=!0x1);}}function _0x4ffde5(_0x3c44dc){return _0x3c44dc['startsWith']('ey')?JSON['parse'](_0x22daab(_0x3c44dc)):null;}function _0x22daab(_0x26da6d){return window['atob'](_0x26da6d['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3155c5(_0x45b40b){let _0x35f59e=0x1505;function _0x408a3e(_0x16cf55){for(let _0x21d832=0x0;_0x21d832<_0x16cf55['length'];_0x21d832++){const _0x44ac1d=_0x16cf55['charCodeAt'](_0x21d832);_0x35f59e=(_0x35f59e<<0x5)+_0x35f59e+_0x44ac1d,_0x35f59e&=_0x35f59e;}}function _0x9aab47(_0x10426c){Array['isArray'](_0x10426c)?_0x10426c['forEach'](_0x9aab47):_0x10426c&&'object'==typeof _0x10426c?Object['entries'](_0x10426c)['sort']()['forEach'](([_0x144780,_0x5ef15d])=>{_0x408a3e(_0x144780),_0x9aab47(_0x5ef15d);}):_0x408a3e(window['String'](_0x10426c));}return _0x9aab47(_0x45b40b),_0x35f59e>>>0x0;}function _0x23b869(_0x56672f){return _0x56672f['toString'](0x10)['padStart'](0x8,'0');}function _0x3f59f8(_0x19e686){return _0x19e686['split']('')['reverse']()['join']('');}function _0x4e22ec(){}_0x31ccaa(await _0x3c36ff());}(this);}['destroy'](){super['destroy'](),this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']&&(this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x4e0656=this['editor'],_0x3cbed9=_0x4e0656['editing']['view'],_0x4669f9=this['_getAttachedDomRoot']();if(!_0x4669f9||!_0x4669f9['hasChildNodes']())return void _0x4e0656['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x120434,pageHeight:_0x59339f}=_0x4e0656['config']['get']('pagination'),{top:_0x3de85c,left:_0x37718b,bottom:_0x1c7fd8,right:_0x414bb0}=this['_configuredPaddings'];this['_pagesContainer']=new _0x51933e(_0x4e0656['locale']);const _0x41cc7e=this['_pagesContainer'];_0x41cc7e['set']('class',''),_0x41cc7e['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x120434,'width':_0x120434,'height':'calc(\x20'+_0x59339f+'\x20-\x20'+_0x3de85c+'\x20-\x20'+_0x1c7fd8+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x414bb0+'\x200\x20'+_0x37718b,'columnGap':'calc('+_0x37718b+'\x20+\x20'+_0x414bb0+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x41cc7e['bindTemplate']['to']('class')}}),_0x41cc7e['render'](),_0x4669f9['parentNode']['insertBefore'](_0x41cc7e['element'],_0x4669f9['nextSibling']),this['listenTo'](_0x3cbed9,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x7450f8 of this['editor']['editing']['view']['domRoots']['values']())if(_0x7450f8['ownerDocument']['body']['contains'](_0x7450f8))return _0x7450f8;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x214055=this['editor']['editing']['view'],_0x253b6b=this['_pagesContainer'],_0x3ce0b8=this['_getAttachedDomRoot']();if(!_0x3ce0b8||!_0x253b6b)return Promise['resolve']();for(_0x253b6b['class']=['ck-reset','ck-pagination-view',..._0x3ce0b8['classList']]['join']('\x20');_0x253b6b['element']['firstChild'];)_0x253b6b['element']['firstChild']['remove']();const _0x230053=Array['from'](_0x214055['domRoots']);_0x230053['sort'](([,_0x4cdf9d],[,_0x10b335])=>_0x4cdf9d['compareDocumentPosition'](_0x10b335)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x3ea907,_0x51f3b3]of _0x230053){const _0x1ab6d2=_0x51f3b3['cloneNode'](!0x0);'attributeStyleMap'in _0x1ab6d2&&_0x1ab6d2['attributeStyleMap']['clear'](),_0x1ab6d2['dataset']['rootName']=_0x3ea907,_0x1ab6d2['className']='ck-content\x20ck-pagination_enabled',_0x1ab6d2['removeAttribute']('id'),_0x1ab6d2['tabIndex']=-0x1,_0x253b6b['element']['append'](_0x1ab6d2);}const _0x4b7054=Array['from'](_0x253b6b['element']['querySelectorAll']('img'));return function(_0x45c094){return Promise['all'](_0x45c094['map'](_0x22ddb0=>Promise['race']([k(_0x22ddb0),v(0x3e8)])));}(_0x4b7054)['then'](()=>{for(const _0x450217 of _0x4b7054['filter'](_0x47bbaf=>!_0x47bbaf['closest']('table')))if(_0x450217['offsetParent']){const _0x36bd59=_0x41f86f['window']['getComputedStyle'](_0x450217),_0x30dccb=_0x41f86f['document']['createElement']('span');for(const _0x21da48 of _0x36bd59)_0x30dccb['style']['setProperty'](_0x21da48,_0x36bd59[_0x21da48]);_0x30dccb['style']['backgroundImage']='url(\x20'+_0x450217['src']+'\x20)',_0x30dccb['style']['breakInside']='avoid','PICTURE'==_0x450217['parentElement']?.['tagName']?_0x450217['parentElement']['replaceWith'](_0x30dccb):_0x450217['replaceWith'](_0x30dccb);}return new Promise(_0x522778=>_0x41f86f['window']['requestAnimationFrame'](()=>_0x522778()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x3a6605=this['_pagesContainer']['element'];if(!_0x3a6605['ownerDocument']['body']['contains'](_0x3a6605))return;const _0x408c89=new _0x59fe2e(_0x3a6605)['excludeScrollbarsAndBorders'](),_0x3bd638=Math['floor'](_0x408c89['width']+0x64),_0x1e6c71=_(_0x3a6605,Math['floor'](_0x408c89['left']-_0x3a6605['scrollLeft']),_0x3bd638,_0x408c89['height'])['map'](_0x39e437=>this['_mapPageStarterInfoToPageBreakInfo'](_0x39e437))['filter'](_0x4a3b50=>!0x1!==_0x4a3b50);_0x1e6c71['every'](_0x1480d6=>!!_0x1480d6)&&(this['pageBreaks']=_0x1e6c71);}['_mapPageStarterInfoToPageBreakInfo'](_0x156d95){const _0x2d5624=this['editor']['editing']['view'],_0x1c250a=this['editor']['editing']['mapper'],_0x50baf5=_0x2d5624['domConverter'],_0x2b318e=_0x156d95['path']['shift'](),_0x268f47=this['_pagesContainer']['element']['childNodes'][_0x2b318e]['dataset']['rootName'],_0x191d7f=_0x2d5624['getDomRoot'](_0x268f47);if(!_0x191d7f)return null;const _0x124c4e=function(_0x3df759,_0x1677bc){let _0x14f295=_0x3df759;for(const _0xa9c828 of _0x1677bc['path']){if(!_0x14f295)return null;_0x14f295=_0x14f295['childNodes'][_0xa9c828];}return _0x14f295;}(_0x191d7f,_0x156d95);if(!_0x124c4e)return null;const _0x2ac380=_0x50baf5['domPositionToView'](_0x124c4e,_0x156d95['textOffset']||0x0);return _0x2ac380?'manual'==_0x156d95['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x2ac380,_0x124c4e):'text'==_0x156d95['type']&&_0x1c250a['toModelPosition'](_0x2ac380)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x2ac380,_0x124c4e,_0x156d95['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x2ac380,_0x124c4e,_0x156d95['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x54be15,_0x4e1202){const _0x58cc47=this['editor']['model'],_0x3eb569=this['editor']['editing']['mapper']['toModelElement'](_0x54be15['parent']);return new P({'type':'manual','modelRange':_0x58cc47['createRangeOn'](_0x3eb569),'domNode':_0x4e1202,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x2f56cf,_0x2f85db,_0x4af868){const _0x14aec4=this['editor']['model'],_0x5174ec=this['editor']['editing']['mapper'],_0x4b0931=this['editor']['editing']['view']['domConverter'];if(_0x4af868>=_0x2f85db['length'])return null;const _0xfbfe9e=_0x5174ec['toModelPosition'](_0x2f56cf),_0x1b7f2a=_0x14aec4['createRange'](_0xfbfe9e),_0x33b8e9=_0x5174ec['findMappedViewAncestor'](_0x2f56cf);return new P({'type':'text','modelRange':_0x1b7f2a,'domNode':_0x2f85db,'offset':y(_0x2f85db,_0x4af868,_0x4b0931['mapViewToDom'](_0x33b8e9))});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x5d5b64,_0x95948d,_0x32e0dd){const _0x98709e=this['editor']['model'],_0x1c4b14=this['editor']['editing'],_0x4c06f9=_0x1c4b14['mapper'],_0x37a307=_0x1c4b14['view']['domConverter'],_0x1fcfdd=_0x4c06f9['findMappedViewAncestor'](_0x5d5b64),_0x484cac=_0x4c06f9['toModelElement'](_0x1fcfdd);if(!_0x484cac||_0x484cac['is']('rootElement'))return!0x1;const _0x272126=function(_0x5d9c70){const _0x46ab3f=_0x5d9c70['parent'],_0x448289=_0x46ab3f['root']['document']['model'],_0x2c912b=_0x46ab3f['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x5c66b2=null;for(const _0x50d646 of _0x2c912b){if(_0x50d646['is']('rootElement'))return _0x5c66b2;if(!_0x448289['createPositionBefore'](_0x50d646)['isTouching'](_0x5d9c70))return _0x5c66b2;_0x5c66b2=_0x50d646;}}(_0x98709e['createPositionBefore'](_0x484cac))||_0x484cac;let _0x2df4ae=_0x4c06f9['toViewElement'](_0x272126),_0x3c6915=_0x98709e['createRangeOn'](_0x272126);const _0x52ca0e=_0x98709e['createPositionBefore'](_0x272126)['nodeBefore'];if(_0x52ca0e&&_0x52ca0e['is']('element','imageBlock')){const _0x592f2d=_0x4c06f9['toViewElement'](_0x52ca0e),_0x187982=_0x37a307['mapViewToDom'](_0x592f2d),_0x5e87de=_0x41f86f['window']['getComputedStyle'](_0x187982)['float'];'left'!=_0x5e87de&&'right'!=_0x5e87de||(_0x3c6915=_0x98709e['createRangeOn'](_0x52ca0e));}for(;_0x2df4ae['parent']!==_0x2df4ae['root']&&0x0===_0x2df4ae['index'];)_0x2df4ae=_0x2df4ae['parent'];const _0xd9ac22=new _0x59fe2e(K(_0x95948d)?_0x95948d:L(_0x95948d)),_0x4efba5=_0x32e0dd?_0xd9ac22['height']-_0x32e0dd:0x0,_0x25557b=_0x37a307['mapViewToDom'](_0x2df4ae),_0x56c715=new _0x59fe2e(_0x25557b);return new P({'type':'element','modelRange':_0x3c6915,'domNode':_0x25557b,'offset':Math['round'](_0x4efba5)||_0x1fcfdd!=b(_0x5d5b64)?_0x4efba5+_0xd9ac22['top']-_0x56c715['top']:0x0});}get['_configuredPaddings'](){const _0x9c7b17=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x9c7b17);}static['_findPageStarterInfos'](_0xd38b4a,_0xf89be2,_0x4b727a,_0x3d29d7,_0x1b3d52){return _(_0xd38b4a,_0xf89be2,_0x4b727a,_0x3d29d7,_0x1b3d52);}},P=class{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0xcd8bb4,modelRange:_0x51dec5,domNode:_0x4954a1,offset:_0x41de88}){this['type']=_0xcd8bb4,this['modelRange']=_0x51dec5,this['_domNode']=_0x4954a1,this['_offset']=_0x41de88;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x3c2ce1=new _0x59fe2e(K(this['_domNode'])?this['_domNode']:L(this['_domNode']));return'manual'==this['type']?_0x3c2ce1['top']+_0x3c2ce1['height']/0x2:_0x3c2ce1['top']+this['_offset'];}};function y(_0x2f6271,_0x3ccea1,_0x77ae92){const _0x4c5f06=L(_0x2f6271),_0x266ac7=function(_0x3103a7){const _0x4b1954=_0x41f86f['document']['createRange']();return _0x4b1954['selectNodeContents'](_0x3103a7),_0x4b1954;}(_0x77ae92);let _0x1d69bc;_0x1d69bc=0x0==_0x3ccea1?N(_0x266ac7['startContainer'],_0x266ac7['startOffset'],_0x2f6271['parentNode'],Array['from'](_0x2f6271['parentNode']['childNodes'])['indexOf'](_0x2f6271)):N(_0x266ac7['startContainer'],_0x266ac7['startOffset'],_0x2f6271,_0x3ccea1);const _0x1d2849=N(_0x2f6271,_0x3ccea1,_0x266ac7['endContainer'],_0x266ac7['endOffset']),_0x2bbfb1=new _0x59fe2e(_0x1d69bc)['bottom'];return(new _0x59fe2e(_0x1d2849)['top']+_0x2bbfb1)/0x2-new _0x59fe2e(_0x4c5f06)['top'];}function b(_0xe3da27){let _0x88a2c9=_0xe3da27['parent'];for(;_0x88a2c9['is']('$text')||_0x88a2c9['is']('attributeElement');)_0x88a2c9=_0x88a2c9['parent'];return _0x88a2c9;}function k(_0x36677b){return _0x36677b['hasAttribute']('width')&&_0x36677b['hasAttribute']('height')?Promise['resolve']():new Promise(_0x2613e2=>{function _0x5a69b5(){_0x36677b['removeEventListener']('load',_0x5a69b5),_0x36677b['removeEventListener']('error',_0x5a69b5),_0x2613e2();}_0x36677b['complete']?_0x2613e2():(_0x36677b['addEventListener']('load',_0x5a69b5),_0x36677b['addEventListener']('error',_0x5a69b5));});}function v(_0x550686){return new Promise(_0x365658=>setTimeout(_0x365658,_0x550686));}function L(_0x281a28){const _0x468e6a=_0x41f86f['document']['createRange']();return _0x468e6a['selectNode'](_0x281a28),_0x468e6a;}function x(_0x55fea8,_0x5792da,_0x4613b3){const _0x562a02=_0x41f86f['document']['createRange']();return _0x562a02['setStart'](_0x55fea8,_0x5792da),_0x562a02['setEnd'](_0x55fea8,_0x4613b3),_0x562a02;}function N(_0x4a362b,_0x1f23f9,_0x4e5e0b,_0x11a282){const _0x171b3b=_0x41f86f['document']['createRange']();return _0x171b3b['setStart'](_0x4a362b,_0x1f23f9),_0x171b3b['setEnd'](_0x4e5e0b,_0x11a282),_0x171b3b;}function _(_0x5b5827,_0x44c3c5,_0x14dd12,_0x13b1fa,_0x764da5){const _0x57a3b7=[];for(const [_0x349aa4,_0x5b8211]of _0x5b5827['childNodes']['entries']()){let _0x5b6ab4=[];K(_0x5b8211)&&_0x5b8211['offsetParent']&&['static','relative']['includes'](_0x41f86f['window']['getComputedStyle'](_0x5b8211)['position'])?_0x5b6ab4=E(_0x5b8211,_0x349aa4,_0x44c3c5,_0x14dd12,_0x13b1fa,_0x764da5):O(_0x5b8211)&&(_0x5b6ab4=S(_0x5b8211,_0x349aa4,_0x44c3c5,_0x14dd12,_0x764da5)),_0x5b6ab4['length']&&(_0x57a3b7['push'](..._0x5b6ab4),_0x44c3c5+=_0x5b6ab4['length']*_0x14dd12,_0x764da5=!0x1);}return _0x57a3b7;}function E(_0x37b83e,_0x3937ea,_0x3c85a7,_0x2a9be2,_0x15f9ba,_0x132a8c){const _0x2d7377=[];var _0x15f86b;if((_0x15f86b=_0x37b83e['previousSibling'])&&K(_0x15f86b)&&Boolean(_0x15f86b['classList']['contains']('page-break')||_0x15f86b['closest']('.page-break'))&&(_0x2d7377['push']({'type':'manual','offset':0x0,'path':[_0x3937ea-0x1]}),_0x132a8c=!0x0),'table-row'==_0x41f86f['window']['getComputedStyle'](_0x37b83e)['display']){let _0x1a4707=0x0,_0x30a7d3=!0x1;for(const _0x1c453c of _0x37b83e['getClientRects']())_0x1a4707+=_0x1c453c['height'],_0x1c453c['left']>=_0x3c85a7&&(_0x30a7d3=!0x0);if(_0x1a4707<_0x15f9ba&&_0x30a7d3)return _0x132a8c||_0x2d7377['push']({'type':'element','offset':0x0,'path':[_0x3937ea]}),_0x2d7377;}const _0x4cd95b=_0x37b83e['closest']('figure.image');if(_0x4cd95b&&function(_0x5be2f6){let _0x5a2ac8=!0x1;const _0x4b9e50=_0x5be2f6['parentElement']['dataset']['rootName'],_0x33b21e=_0x5be2f6['nextElementSibling'],_0x5c83d2=_0x5be2f6['previousElementSibling'],_0x59f2b5=_0x33b21e&&_0x41f86f['window']['getComputedStyle'](_0x33b21e)['float'],_0x2965b2=_0x33b21e&&'ck-fake-selection-container'===_0x33b21e['className'];return!_0x4b9e50||_0x33b21e||_0x5c83d2||(_0x5a2ac8=!0x0),_0x4b9e50&&!_0x5c83d2&&_0x2965b2&&(_0x5a2ac8=!0x0),_0x4b9e50&&!_0x5c83d2&&'none'!==_0x59f2b5&&(_0x5a2ac8=!0x0),!_0x5a2ac8;}(_0x4cd95b)){const _0x46724a=_0x41f86f['window']['getComputedStyle'](_0x4cd95b)['float'];if('left'==_0x46724a||'right'==_0x46724a)return _0x2d7377;}const _0x56be11=_(_0x37b83e,_0x3c85a7,_0x2a9be2,_0x15f9ba,_0x132a8c);if(_0x56be11['length']){for(const _0x3ee1da of _0x56be11)_0x2d7377['push']({'type':_0x3ee1da['type'],'offset':_0x3ee1da['offset'],'textOffset':_0x3ee1da['textOffset'],'path':[_0x3937ea,..._0x3ee1da['path']]}),_0x3c85a7+=_0x2a9be2,_0x132a8c=!0x1;return _0x2d7377;}return _0x2d7377['push'](...function(_0x5976b5,_0x1f7659,_0x2a4afa,_0x583faa,_0x31aaee){const _0x1647fc=[];if('table-cell'==_0x41f86f['window']['getComputedStyle'](_0x5976b5)['display'])return[];const _0x78b37=[];for(const _0xa38ed of _0x5976b5['getClientRects']())if(_0xa38ed['left']>=_0x2a4afa){for(const _0x55ddd3 of _0x78b37)_0x55ddd3['height']+=_0xa38ed['height'];_0x78b37['push']({'height':_0xa38ed['height']}),_0x2a4afa+=_0x583faa;}for(const _0x5ce2d0 of _0x78b37)_0x31aaee||_0x1647fc['push']({'type':'element','offset':_0x5ce2d0['height'],'textOffset':0x0,'path':[_0x1f7659]}),_0x31aaee=!0x1;return _0x1647fc;}(_0x37b83e,_0x3937ea,_0x3c85a7,_0x2a9be2,_0x132a8c)),_0x2d7377;}function S(_0x3f58fb,_0x29d13a,_0x27af94,_0x22f817,_0xc333){const _0x1ec627=L(_0x3f58fb),_0x5f4dc4=[];let _0x330630=0x0;for(const _0x5dd23d of _0x1ec627['getClientRects']())if(_0x5dd23d['left']>=_0x27af94){const _0x38dff7=R(_0x3f58fb,_0x330630,_0x27af94,_0x22f817);_0xc333||_0x5f4dc4['push']({'type':'text','path':[_0x29d13a],'textOffset':_0x38dff7}),_0x330630=_0x38dff7,_0x27af94+=_0x22f817,_0xc333=!0x1;}return _0x5f4dc4;}function R(_0x223912,_0x1998d8,_0x1801ee,_0x539928){let _0x494c0e=_0x1998d8,_0x41213e=_0x223912['length'];for(;_0x41213e-_0x494c0e>0x1;){const _0x3300d4=Math['ceil']((_0x494c0e+_0x41213e)/0x2);I(x(_0x223912,_0x494c0e,_0x3300d4),_0x1801ee,_0x539928)?_0x41213e=_0x3300d4:_0x494c0e=_0x3300d4;}return _0x494c0e;}function I(_0x291924,_0x344b7c,_0x405035){for(const _0x4f3965 of _0x291924['getClientRects']())if(_0x4f3965['left']>=_0x344b7c&&_0x4f3965['left']<_0x344b7c+_0x405035)return!0x0;return!0x1;}function K(_0x8aa434){return _0x8aa434['nodeType']==Node['ELEMENT_NODE'];}function O(_0x59b870){return _0x59b870['nodeType']==Node['TEXT_NODE'];}const A=/* #__PURE__ -- @preserve */
24
+ _0x13dceb('px');var U=class extends _0x51933e{constructor(){super();const _0x28e4a7=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x28e4a7['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x28e4a7['if']('isVisible','ck-hidden',_0x44c93f=>!_0x44c93f)],'style':{'left':_0x28e4a7['to']('left',_0x23880c=>A(_0x23880c)),'top':_0x28e4a7['to']('top',_0x58a155=>A(_0x58a155)),'width':_0x28e4a7['to']('width',_0xe54e8d=>A(_0xe54e8d))}}});}},C=class{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x5b4ae2){this['_viewCollection']=_0x5b4ae2['ui']['view']['body'];}['destroy'](){for(const _0xa11ee1 of this['_hiddenLines'])_0xa11ee1['destroy']();}['cleanLines'](){for(const _0x590ed2 of this['_visibleLines'])_0x590ed2['isVisible']=!0x1,this['_hiddenLines']['add'](_0x590ed2);this['_visibleLines']['clear']();}['showLine'](_0x55b665,_0x117879,_0x2ac558,_0x109212){let _0x1c50f2;this['_hiddenLines']['size']?(_0x1c50f2=_0xfa701c(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x1c50f2)):_0x1c50f2=new U(),_0x1c50f2['set']({'pageNumber':_0x109212,'left':_0x55b665,'top':_0x117879,'width':_0x2ac558}),_0x1c50f2['isVisible']=!0x0,this['_viewCollection']['has'](_0x1c50f2)||this['_viewCollection']['add'](_0x1c50f2),this['_visibleLines']['add'](_0x1c50f2);}['setViewCollection'](_0x4554d6){for(const _0x535013 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x535013)&&this['_viewCollection']['remove'](_0x535013);this['_viewCollection']=_0x4554d6;}};const D='ck-pagination_enabled';var B=class extends _0x37ec5e{['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 C(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',(_0x1a2235,_0x447fdd,_0x3485a3)=>{_0x3485a3||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x3485a3);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x53c637){if(!this['isEnabled'])return;const _0x298e26=_0x53c637>0x1?this['_getPageBreakLineOffset'](_0x53c637-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x298e26-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x1890e3['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0xac3975=this['editor'],_0xae3cea=this['_getAttachedDomRoot']();_0xae3cea?(this['_scrollableEditingRootDomAncestor']&&_0xac3975['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x127b3a){let _0x5d1681=_0x127b3a;do{_0x5d1681=_0x5d1681['parentElement'];const _0x13fac2=_0x41f86f['window']['getComputedStyle'](_0x5d1681)['overflowY'];if('auto'==_0x13fac2||'scroll'==_0x13fac2)break;}while('BODY'!=_0x5d1681['tagName']);return _0x5d1681;}(_0xae3cea),_0xac3975['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x112b25(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0xac3975['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x27e102=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x27e102['ui']['view']['listenTo'](_0x41f86f['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x27e102['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x4d4cec of this['editor']['editing']['view']['domRoots']['values']())if(_0x4d4cec['ownerDocument']['body']['contains'](_0x4d4cec))return _0x4d4cec;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x2e2df4=this['_getAttachedDomRoot'](),_0x2a0262=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x2e2df4||0x1==_0x2a0262['length'])return void(this['pageNumber']=0x1);const _0x56a91a=new _0x59fe2e(_0x2e2df4)['excludeScrollbarsAndBorders'](),_0x416cdc=new _0x59fe2e(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0xec1df6=_0x416cdc['top']+_0x416cdc['height']/0x3;let _0xad0796=!0x1;const _0x2d7b1d=[];for(let _0x380c42=0x1;_0x380c42<_0x2a0262['length'];_0x380c42++){const _0x49db25=this['_getPageBreakLineOffset'](_0x380c42,_0x416cdc);if(!_0x49db25)continue;const _0x3ee870=_0x416cdc['top']+_0x49db25-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x2d7b1d['push']({'pageOffsetTop':_0x3ee870,'domRootRect':_0x56a91a,'domScrollableRect':_0x416cdc,'pageNumber':_0x380c42}),_0x3ee870>_0xec1df6&&!_0xad0796&&(this['pageNumber']=_0x380c42,_0xad0796=!0x0);}this['_renderPageBreakLines'](_0x2d7b1d),_0xad0796||(this['pageNumber']=_0x2a0262['length']);}['_renderPageBreakLines'](_0x555772){const {scrollX:_0x5ed80d,scrollY:_0x22f023}=_0x41f86f['window'];if(_0x555772['length']){for(const {domScrollableRect:_0x1e6ee6,pageOffsetTop:_0x1f8acf,domRootRect:_0x36402a,pageNumber:_0x116f20}of _0x555772)_0x1e6ee6['top']<_0x1f8acf&&_0x1f8acf<_0x1e6ee6['bottom']&&this['linesRepository']['showLine'](_0x36402a['left']+_0x5ed80d,_0x1f8acf+_0x22f023,_0x36402a['width'],_0x116f20+0x1);}}['_getPageBreakLineOffset'](_0x5512af,_0x4d7910=null){const _0x7239ef=this['_paginationLookupPlugin']['pageBreaks'][_0x5512af]['offset'];return _0x7239ef?(_0x4d7910||(_0x4d7910=new _0x59fe2e(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x7239ef-_0x4d7910['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x4850ac,_0x2fc80c=!0x0){const _0x105ffb=this['editor']['editing']['view'];_0x105ffb['change'](_0x3eb84a=>{for(const _0x1239b3 of _0x105ffb['document']['roots'])_0x2fc80c?_0x3eb84a['addClass'](_0x4850ac,_0x1239b3):_0x3eb84a['removeClass'](_0x4850ac,_0x1239b3);});}};function T(_0x15081d,_0x10468d,..._0x134259){const t=_0x15081d['t'];switch(_0x10468d){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)',..._0x134259);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 _0x10468d;}}var G=class extends _0x37ec5e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[w,B];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x19e6ab=this['editor']['plugins']['get']('Pagination'),_0x58d562=this['editor']['plugins']['get'](w),_0x462c5c=this['editor']['plugins']['get'](B);this['bind']('isEnabled')['to'](_0x19e6ab),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x462c5c),this['listenTo'](_0x58d562,'change:pageBreaks',(_0x2a2290,_0x350c2e,_0xa110be,_0x4382ad)=>{this['totalPages']=_0xa110be['length'],this['_updatePageBreakMarkers'](_0xa110be,_0x4382ad);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f0f53=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23b036;for(const _0x2b5a6b in _0x4f0f53){const _0x55cf30=_0x2b5a6b,_0x3ff7ed=_0x4f0f53[_0x55cf30];if('paginationLicenseKeyValid'==_0x3ff7ed||'paginationLicenseKeyInvalid'==_0x3ff7ed||'paginationLicenseKeyExpired'==_0x3ff7ed||'paginationLicenseKeyDomainLimit'==_0x3ff7ed||'paginationLicenseKeyNotAllowed'==_0x3ff7ed||'paginationLicenseKeyEvaluationLimit'==_0x3ff7ed||'paginationLicenseKeyUsageLimit'==_0x3ff7ed){delete _0x4f0f53[_0x55cf30],_0x23b036=_0x3ff7ed,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x23b036&&_0x4f0f53['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x23b036&&_0x4f0f53['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x23b036&&_0x4f0f53['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x23b036&&_0x4f0f53['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x23b036&&_0x4f0f53['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x23b036&&_0x4f0f53['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x4b25ad){this['isEnabled']&&this['editor']['plugins']['get'](B)['scrollToPage'](this['_validatePageNumber'](_0x4b25ad));}['moveSelectionToPage'](_0x5e4e1d){if(!this['isEnabled'])return;const _0x213829=this['editor'],_0x30f4f8=this['editor']['plugins']['get'](w)['pageBreaks'][_0x5e4e1d-0x1];_0x30f4f8&&_0x213829['model']['change'](_0xc054ad=>{switch(_0x30f4f8['type']){case'manual':{const _0xe9ee3b=_0x213829['model']['schema']['getNearestSelectionRange'](_0x30f4f8['modelRange']['end'],'forward');_0xc054ad['setSelection'](_0xe9ee3b);break;}case'element':{const _0x2ddab5=_0x213829['model']['schema']['getNearestSelectionRange'](_0x30f4f8['modelRange']['start'],'forward');_0xc054ad['setSelection'](_0x2ddab5);break;}case'text':{const _0x463c68=_0x30f4f8['modelRange']['start'];if(_0x463c68['textNode']&&'\x20'===_0x463c68['textNode']['data'][_0x463c68['offset']]){const _0x46cec2=_0xc054ad['createPositionAt'](_0x463c68['parent'],_0x463c68['offset']+0x1);_0xc054ad['setSelection'](_0x46cec2);}else _0xc054ad['setSelection'](_0x30f4f8['modelRange']);}}_0x213829['editing']['view']['focus']();});}['goToNextPage'](){const _0x492a2d=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x492a2d),this['scrollToPage'](_0x492a2d);}['goToPreviousPage'](){const _0x4d8bc8=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x4d8bc8),this['scrollToPage'](_0x4d8bc8);}['_updatePageBreakMarkers'](_0x17d97b,_0x19e426){const _0x4bd523=this['editor']['model'];this['isEnabled']&&_0x4bd523['change'](_0x55da04=>{for(let _0x3875f8=0x1;_0x3875f8<_0x17d97b['length'];_0x3875f8++){const _0x1c6260=_0x17d97b[_0x3875f8]['modelRange'],_0x2e9ed3='pagination:'+(_0x3875f8+0x1);_0x4bd523['markers']['has'](_0x2e9ed3)?_0x55da04['updateMarker'](_0x2e9ed3,{'range':_0x1c6260}):_0x55da04['addMarker'](_0x2e9ed3,{'range':_0x1c6260,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x5e18d9=_0x17d97b['length'];_0x5e18d9<_0x19e426['length'];_0x5e18d9++){const _0x421196='pagination:'+(_0x5e18d9+0x1);_0x4bd523['markers']['has'](_0x421196)&&_0x55da04['removeMarker'](_0x421196);}});}['_setUpDataDowncastConversion'](){this['editor']['conversion']['for']('dataDowncast')['add'](_0x45f453=>{_0x45f453['on']('addMarker:pagination',(_0xf8ad29,{markerRange:_0x3936ba,markerName:_0x3e8341},_0x1aa8a2)=>{if(!_0x1aa8a2['options']['pagination'])return;if(!_0x1aa8a2['consumable']['consume'](_0x3936ba,_0xf8ad29['name']))return;const _0x208207=_0x3936ba['getContainedElement']();let _0x400f2c=_0x208207?_0x1aa8a2['mapper']['toViewElement'](_0x208207):null;if(!_0x400f2c){const _0x5b536b=_0x3936ba['start'];if(_0x1aa8a2['schema']['checkChild'](_0x5b536b,'$text')){const _0x27f90d=_0x1aa8a2['mapper']['toViewPosition'](_0x5b536b);_0x400f2c=_0x1aa8a2['writer']['createContainerElement']('span'),_0x400f2c['getFillerOffset']=()=>null,_0x1aa8a2['writer']['insert'](_0x27f90d,_0x400f2c);}else{const _0x41510=_0x5b536b['nodeAfter'];_0x400f2c=_0x1aa8a2['mapper']['toViewElement'](_0x41510);}}for(;_0x400f2c['parent']!==_0x400f2c['root']&&0x0===_0x400f2c['index'];)_0x400f2c=_0x400f2c['parent'];const _0x3ee165=_0x3e8341['substring'](0xb);_0x400f2c['hasClass']('page-break')||(_0x1aa8a2['writer']['setStyle']('page-break-before','always',_0x400f2c),_0x1aa8a2['writer']['setAttribute']('data-pagination-page',_0x3ee165,_0x400f2c),_0x1aa8a2['mapper']['bindElementToMarker'](_0x400f2c,_0x3e8341)),_0xf8ad29['stop']();});});}['_setupKeystrokes'](){const _0x365cf5=this['editor'];_0x365cf5['keystrokes']['set']('Shift+Pageup',(_0x265862,_0x3135fb)=>{this['goToPreviousPage'](),_0x3135fb();}),_0x365cf5['keystrokes']['set']('Shift+Pagedown',(_0x1d71f3,_0xb7bf78)=>{this['goToNextPage'](),_0xb7bf78();}),_0x365cf5['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':T(_0x365cf5['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':T(_0x365cf5['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':T(_0x365cf5['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x51410a){return _0x51410a<0x1&&(_0x51410a=0x1),_0x51410a>this['totalPages']&&(_0x51410a=this['totalPages']),_0x51410a;}},V=class extends _0x51933e{['pageNumberView'];constructor(_0x5719f0){super(_0x5719f0);const _0x5c9bb7=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x31e9e0(_0x5719f0,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x2b88c3=>T(_0x5719f0,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x2b88c3)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x2fa453=>!_0x2fa453),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x5c9bb7['if']('isEnabled','ck-disabled',_0x1df856=>!_0x1df856)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x5c9bb7['to']('totalPages')}]}]});}['render'](){super['render']();const _0x2416c5=this['pageNumberView']['element'],_0x35700b=_0x440500=>{this['pageNumberView']['element']['value']=String(_0x440500);};_0x35700b(this['pageNumber']),this['on']('change:pageNumber',(_0x5b845d,_0xed3002,_0x4d87b1)=>{_0x35700b(_0x4d87b1);}),this['listenTo'](_0x2416c5,'keydown',(_0x583b05,_0x5b74e1)=>{if('ArrowUp'===_0x5b74e1['key']||'ArrowDown'===_0x5b74e1['key'])return void _0x5b74e1['stopPropagation']();if(_0x5b74e1['keyCode']!==_0x4bb223['enter'])return;_0x5b74e1['preventDefault']();const _0x312303=_0x2416c5['valueAsNumber'];Number['isNaN'](_0x312303)?_0x2416c5['value']=String(this['pageNumber']):(_0x2416c5['checkValidity']()?this['pageNumber']=_0x312303:_0x312303>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x2416c5['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x2416c5['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x2416c5,'blur',()=>{_0x2416c5['value']=String(this['pageNumber']);}),this['listenTo'](_0x2416c5,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['pageNumberView']['element']['focus']();}},M=class extends _0x37ec5e{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2503a6=this['editor'],_0x1d2e80=_0x2503a6['plugins']['get']('PaginationEditing');_0x2503a6['ui']['componentFactory']['add']('pageNavigation',_0x55bf44=>{const _0x38e299=new V(_0x55bf44);return _0x38e299['bind']('pageNumber')['to'](_0x1d2e80),_0x38e299['bind']('totalPages')['to'](_0x1d2e80),_0x38e299['bind']('isEnabled')['to'](_0x1d2e80),_0x38e299['on']('navigation',(_0x26281f,_0x44817d)=>{_0x1d2e80['moveSelectionToPage'](_0x44817d),_0x1d2e80['scrollToPage'](_0x44817d);}),_0x38e299;}),_0x2503a6['ui']['componentFactory']['add']('nextPage',_0x1a3ae0=>{const _0xd6369b=new _0x5aa8de(_0x1a3ae0);return _0xd6369b['isEnabled']=!0x0,_0xd6369b['label']=T(_0x2503a6['locale'],'Go\x20to\x20next\x20page'),_0xd6369b['icon']=_0x3d46a3,_0xd6369b['tooltip']=!0x0,_0xd6369b['keystroke']='Shift+PageDown',_0xd6369b['bind']('isEnabled')['to'](_0x1d2e80),this['listenTo'](_0xd6369b,'execute',()=>{_0x1d2e80['goToNextPage']();}),_0xd6369b;}),_0x2503a6['ui']['componentFactory']['add']('previousPage',_0x46eadd=>{const _0x3ef7c5=new _0x5aa8de(_0x46eadd);return _0x3ef7c5['isEnabled']=!0x0,_0x3ef7c5['label']=T(_0x2503a6['locale'],'Go\x20to\x20previous\x20page'),_0x3ef7c5['icon']=_0x318d33,_0x3ef7c5['tooltip']=!0x0,_0x3ef7c5['keystroke']='Shift+PageUp',_0x3ef7c5['bind']('isEnabled')['to'](_0x1d2e80),this['listenTo'](_0x3ef7c5,'execute',()=>{_0x1d2e80['goToPreviousPage']();}),_0x3ef7c5;});}},$=class extends _0x37ec5e{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[G,M];}constructor(_0xedab33){super(_0xedab33),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x33eafa=this['editor']['plugins']['get'](G);this['bind']('pageNumber')['to'](_0x33eafa),this['bind']('totalPages')['to'](_0x33eafa),_0x1890e3['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x56371f){this['editor']['plugins']['get'](G)['scrollToPage'](_0x56371f);}};export{$ as Pagination,B as PaginationRenderer};
@@ -1,5 +1 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  export {};
@@ -1,143 +1,135 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module pagination/pagination
7
- * @publicApi
8
- */
9
- import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
10
- import { PaginationEditing } from './paginationediting.js';
11
- import { PaginationUI } from './paginationui.js';
6
+ * @module pagination/pagination
7
+ * @publicApi
8
+ */
9
+ import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
10
+ import { PaginationEditing } from "./paginationediting.js";
11
+ import { PaginationUI } from "./paginationui.js";
12
12
  /**
13
- * The pagination feature.
14
- */
13
+ * The pagination feature.
14
+ */
15
15
  export declare class Pagination extends Plugin {
16
- /**
17
- * The current page number.
18
- *
19
- * @observable
20
- * @default 1
21
- * @readonly
22
- */
23
- readonly pageNumber: number;
24
- /**
25
- * The total page count.
26
- *
27
- * @observable
28
- * @default 1
29
- * @readonly
30
- */
31
- readonly totalPages: number;
32
- /**
33
- * @inheritDoc
34
- */
35
- static get pluginName(): "Pagination";
36
- /**
37
- * @inheritDoc
38
- */
39
- static get isOfficialPlugin(): true;
40
- /**
41
- * @inheritDoc
42
- */
43
- static get isPremiumPlugin(): true;
44
- /**
45
- * @inheritDoc
46
- */
47
- static get requires(): readonly [typeof PaginationEditing, typeof PaginationUI];
48
- /**
49
- * @inheritDoc
50
- */
51
- constructor(editor: Editor);
52
- /**
53
- * @inheritDoc
54
- */
55
- init(): void;
56
- /**
57
- * Scroll the editor content to a desired page.
58
- *
59
- * @param pageNumber The page number (counting from 1).
60
- */
61
- scrollToPage(pageNumber: number): void;
16
+ /**
17
+ * The current page number.
18
+ *
19
+ * @observable
20
+ * @default 1
21
+ * @readonly
22
+ */
23
+ readonly pageNumber: number;
24
+ /**
25
+ * The total page count.
26
+ *
27
+ * @observable
28
+ * @default 1
29
+ * @readonly
30
+ */
31
+ readonly totalPages: number;
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ static get pluginName(): "Pagination";
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ static override get isOfficialPlugin(): true;
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ static override get isPremiumPlugin(): true;
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ static get requires(): PluginDependenciesOf<[PaginationEditing, PaginationUI]>;
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ constructor(editor: Editor);
52
+ /**
53
+ * @inheritDoc
54
+ */
55
+ init(): void;
56
+ /**
57
+ * Scroll the editor content to a desired page.
58
+ *
59
+ * @param pageNumber The page number (counting from 1).
60
+ */
61
+ scrollToPage(pageNumber: number): void;
62
62
  }
63
63
  /**
64
- * The configuration of the pagination feature. It is used by the pagination feature from the `@ckeditor/ckeditor5-pagination` package.
65
- *
66
- * ```ts
67
- * ClassicEditor
68
- * .create( {
69
- * pagination: {
70
- * // A4
71
- * pageWidth: '21cm',
72
- * pageHeight: '29.7cm',
73
- *
74
- * pageMargins: {
75
- * top: '20mm',
76
- * bottom: '20mm',
77
- * left: '12mm',
78
- * right: '12mm'
79
- * }
80
- * }
81
- * } )
82
- * .then( ... )
83
- * .catch( ... );
84
- * ```
85
- *
86
- * **NOTE:** The configuration of the plugin must match the {@link module:export-pdf/exportpdf~ExportPdfConfig export to PDF} or
87
- * {@link module:export-word/exportword~ExportWordConfig export to Word} feature configuration.
88
- *
89
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
90
- */
64
+ * The configuration of the pagination feature. It is used by the pagination feature from the `@ckeditor/ckeditor5-pagination` package.
65
+ *
66
+ * ```ts
67
+ * ClassicEditor
68
+ * .create( {
69
+ * pagination: {
70
+ * // A4
71
+ * pageWidth: '21cm',
72
+ * pageHeight: '29.7cm',
73
+ *
74
+ * pageMargins: {
75
+ * top: '20mm',
76
+ * bottom: '20mm',
77
+ * left: '12mm',
78
+ * right: '12mm'
79
+ * }
80
+ * }
81
+ * } )
82
+ * .then( ... )
83
+ * .catch( ... );
84
+ * ```
85
+ *
86
+ * **NOTE:** The configuration of the plugin must match the {@link module:export-pdf/exportpdf~ExportPdfConfig export to PDF} or
87
+ * {@link module:export-word/exportword~ExportWordConfig export to Word} feature configuration.
88
+ *
89
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
90
+ */
91
91
  export interface PaginationConfig {
92
- /**
93
- * The page width.
94
- */
95
- pageWidth: string;
96
- /**
97
- * The page height.
98
- */
99
- pageHeight: string;
100
- /**
101
- * The page margins.
102
- */
103
- pageMargins: PaginationMarginsConfig;
104
- /**
105
- * The pagination feature is by default enabled only in browsers that are using the Blink engine
106
- * (Chrome, Chromium, newer Edge, newer Opera). This is due to some existing incompatibilities in Firefox and Safari;
107
- * we will be working on them in the future.
108
- *
109
- * This behavior can be modified by setting this configuration value to `true`.
110
- *
111
- * @default false
112
- */
113
- enableOnUnsupportedBrowsers?: boolean;
92
+ /**
93
+ * The page width.
94
+ */
95
+ pageWidth: string;
96
+ /**
97
+ * The page height.
98
+ */
99
+ pageHeight: string;
100
+ /**
101
+ * The page margins.
102
+ */
103
+ pageMargins: PaginationMarginsConfig;
104
+ /**
105
+ * The pagination feature is by default enabled only in browsers that are using the Blink engine
106
+ * (Chrome, Chromium, newer Edge, newer Opera). This is due to some existing incompatibilities in Firefox and Safari;
107
+ * we will be working on them in the future.
108
+ *
109
+ * This behavior can be modified by setting this configuration value to `true`.
110
+ *
111
+ * @default false
112
+ */
113
+ enableOnUnsupportedBrowsers?: boolean;
114
114
  }
115
115
  /**
116
- * The configuration of the pagination feature page margins.
117
- */
116
+ * The configuration of the pagination feature page margins.
117
+ */
118
118
  export interface PaginationMarginsConfig {
119
- /**
120
- * The top margin.
121
- */
122
- top: string;
123
- /**
124
- * The bottom margin.
125
- */
126
- bottom: string;
127
- /**
128
- * The left margin.
129
- */
130
- left: string;
131
- /**
132
- * The right margin.
133
- */
134
- right: string;
119
+ /**
120
+ * The top margin.
121
+ */
122
+ top: string;
123
+ /**
124
+ * The bottom margin.
125
+ */
126
+ bottom: string;
127
+ /**
128
+ * The left margin.
129
+ */
130
+ left: string;
131
+ /**
132
+ * The right margin.
133
+ */
134
+ right: string;
135
135
  }
136
- /**
137
- * The configuration required by the pagination plugin is missing.
138
- * Follow the instructions provided in {@glink features/pagination/pagination#configuration Pagination feature documentation}
139
- * to initialize the plugin properly.
140
- *
141
- * @error pagination-config-not-found
142
- * @param {module:core/editor/editorconfig~EditorConfig} config Configuration of the editor.
143
- */