@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20240416.0 → 0.0.0-nightly-20240418.0

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.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={782:(t,e,n)=>{t.exports=n(237)("./src/core.js")},311:(t,e,n)=>{t.exports=n(237)("./src/ui.js")},237:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{ExportPdf:()=>p});var t=n(782),e=n(311);function o(){const t=["30305803QBRyRM",".ck-content","push","join","204uujYuS","EDITOR_STYLES","from","hasAttribute","warn","cssRules","9384781MmIzEc","length","225427kOgkND","text","all","cssText","fetch","140655rIBwya","data-cke","22482IdwLNk","indexOf",":root","12668150eBHrML","4776nBcDdg","3McdMLt","trim","ownerNode","The editor stylesheet could not be found in the document. Check your webpack config – style-loader should use data-cke=true attribute for the editor stylesheet.","2SLohnK","then","5238644faHiMO","styleSheets"];return(o=function(){return t})()}function s(t,e){const n=o();return(s=function(t,e){return n[t-=230]})(t,e)}function i(){const t=s,e=[],n=[];for(const r of Array[t(257)](document[t(250)]))if(r[t(245)][t(258)](t(237)))for(const o of Array[t(257)](r[t(260)]))-1!==o[t(234)][t(239)](t(252))?e[t(253)](o[t(234)]):-1!==o[t(234)][t(239)](t(240))&&n[t(253)](o[t(234)]);return e[t(230)]||console[t(259)](t(246)),[...n,...e][t(254)](" ")[t(244)]()}!function(t,e){const n=s,r=t();for(;;)try{if(852661===parseInt(n(231))/1*(parseInt(n(247))/2)+-parseInt(n(243))/3*(-parseInt(n(249))/4)+-parseInt(n(236))/5*(-parseInt(n(255))/6)+parseInt(n(261))/7+parseInt(n(242))/8*(-parseInt(n(238))/9)+parseInt(n(241))/10+-parseInt(n(251))/11)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(o);class c extends t.Command{constructor(t){super(t),this.set("isBusy",!1),this.affectsData=!1}refresh(){this.isEnabled=!this.isBusy,this.value=this.isBusy?"pending":void 0}execute(t={}){const e=this.editor,n=e.t,r=t.converterUrl||"https://pdf-converter.cke-cs.com/v1/convert/",o=t.dataCallback||(t=>t.data.get()),c=e.plugins.get("ExportPdf"),a=t.token||c._token;return this.isBusy=!0,this.refresh(),function(t){const e=s;if(!t)return new Promise((t=>t("")));const n=[];for(const r of t)e(256)!==r?n[e(253)](window[e(235)](r)[e(248)]((t=>t[e(232)]()))):n[e(253)](i());return Promise[e(233)](n)[e(248)]((t=>t[e(254)](" ")[e(244)]()))}(t.stylesheets||["EDITOR_STYLES"]).then((async n=>{const s={html:'<html>\n\t\t\t\t\t\t<head>\n\t\t\t\t\t\t\t<title>CKEditor 5 PDF document</title>\n\t\t\t\t\t\t\t<meta charset="utf-8">\n\t\t\t\t\t\t</head>\n\t\t\t\t\t\t<body>\n\t\t\t\t\t\t\t<div class="ck-content" dir="'+e.locale.contentLanguageDirection+'">\n\t\t\t\t\t\t\t\t'+await o(e)+"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</body>\n\t\t\t\t\t</html>",css:n,options:t.converterOptions},i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/pdf",...a?{Authorization:a.value}:null,"x-cs-app-id":t.appID||"cke5"},body:JSON.stringify(s)};return window.fetch(r,i).then((t=>{if(200!==t.status)throw t;return t.blob()})).then((e=>{const n="function"==typeof t.fileName?t.fileName():t.fileName;this._downloadFile(e,n||"document.pdf")}))})).catch((t=>{throw e.plugins.get("Notification").showWarning(n("An error occurred while generating the PDF.")),t})).finally((()=>{this.isBusy=!1,this.refresh()}))}_downloadFile(t,e){const n=document.createElement("a");n.href=window.URL.createObjectURL(t),n.download=e,n.click(),n.remove()}}class a extends t.Plugin{static get pluginName(){return"ExportPdfUI"}init(){const t=this.editor;t.ui.componentFactory.add("exportPdf",(()=>{const n=this._createButton(e.ButtonView),r=t.commands.get("exportPdf");return n.set({tooltip:!0}),n.bind("isOn").to(r,"isBusy"),n})),t.ui.componentFactory.add("menuBar:exportPdf",(()=>this._createButton(e.MenuBarMenuListItemButtonView)))}_createButton(t){const n=this.editor,r=n.config.get("exportPdf")||{},o=n.locale.t,s=n.commands.get("exportPdf"),i=new t(n.locale),c=new e.SpinnerView;return i.children.add(c),c.bind("isVisible").to(s,"isBusy"),i.iconView.bind("isVisible").to(s,"isBusy",(t=>!t)),i.set({label:o("Export to PDF"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4.5 14 0H3v6.5h1.5v-5h8v5h5V11H19V4.5ZM14 2l3.3 3H14V2Z"/><path d="m12.452 18.5 1.25 1.5H3v-3h1.5v1.5h7.952Z"/><path d="M19.826 16.843a.75.75 0 1 0-1.152-.96L17.5 17.29V13H16v4.29l-1.174-1.408a.75.75 0 1 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Z"/><path d="M1.63 14.24V12.3h.88c.66 0 1.14-.15 1.46-.45.32-.3.48-.71.48-1.24 0-.52-.15-.91-.44-1.2C3.7 9.15 3.28 9 2.69 9H0v5.24h1.63Zm.4-3h-.4v-1.17h.46c.3 0 .5.05.62.17.1.11.16.25.16.42 0 .16-.06.3-.19.41-.13.11-.34.16-.66.16l.01.01Zm5.7 3c.28 0 .6-.05.96-.14.26-.07.5-.21.73-.42.22-.2.4-.47.53-.77.12-.31.19-.75.19-1.3 0-.37-.04-.7-.13-1.02a2.3 2.3 0 0 0-.42-.84c-.19-.24-.43-.43-.72-.56C8.57 9.06 8.2 9 7.72 9h-2.4v5.24H7.73Zm-.4-1.19h-.4v-2.86h.4c.43 0 .73.1.91.3.18.2.27.59.27 1.14 0 .42-.04.73-.12.91a.76.76 0 0 1-.34.4c-.14.07-.38.11-.72.11Zm5.3 1.2V12.1h2.02v-1.06h-2.03v-.91H15V9h-4v5.24h1.62l.01.01Z"/></svg>\n'}),i.bind("isEnabled").to(s,"isEnabled"),this.listenTo(i,"execute",(()=>{n.execute("exportPdf",r),n.editing.view.focus()})),i}}const u=d;function d(t,e){const n=h();return(d=function(t,e){return n[t-=331]})(t,e)}function h(){const t=["227826eAJulW","plugins","commands","add","get","189499iStBeP","pluginName","33FMKnxl","exportPdf","1819110MPeGdJ","init","config","3OWklRv","479116cOLiiv","27RJWoyw","tokenUrl","registerTokenUrl","then","ExportPdf","5WPTcZl","editor","token","requires","1606479KkaMvs","458256iwoNQS","CloudServices","_token","1045100aMyEzJ"];return(h=function(){return t})()}!function(t,e){const n=d,r=t();for(;;)try{if(171179===parseInt(n(347))/1+-parseInt(n(342))/2*(parseInt(n(354))/3)+-parseInt(n(355))/4+parseInt(n(333))/5*(parseInt(n(351))/6)+-parseInt(n(337))/7+-parseInt(n(338))/8*(parseInt(n(356))/9)+parseInt(n(341))/10*(parseInt(n(349))/11))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(h);class p extends t.Plugin{static get[u(348)](){return u(332)}static get[u(336)](){return[u(339),e.Notification,a]}[u(352)](){const t=u,e=this[t(334)],n=e[t(353)][t(346)](t(350))||{};e[t(344)][t(345)](t(350),new c(e));const r=e[t(343)][t(346)](t(339));!1===n[t(357)]?this[t(340)]=null:n[t(357)]?r[t(358)](n[t(357)])[t(331)]((e=>{this[t(340)]=e})):this[t(340)]=r[t(335)]}}function l(t,e){var n=f();return(l=function(t,e){return n[t-=292]})(t,e)}function f(){var t=["101435WtBoJq","3177pCcmHh","7624wLzDdK","76490ivhmLH","1186572qTHXYH","16878158SONryZ","480701TgaiAT","3759FHftGP","261yLrngK","42JznDqO","264dFVnyc"];return(f=function(){return t})()}!function(t,e){for(var n=l,r=t();;)try{if(748891===-parseInt(n(293))/1+-parseInt(n(297))/2*(-parseInt(n(299))/3)+-parseInt(n(302))/4+parseInt(n(298))/5*(parseInt(n(296))/6)+parseInt(n(294))/7*(-parseInt(n(300))/8)+parseInt(n(295))/9*(parseInt(n(301))/10)+parseInt(n(292))/11)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(f)})(),(window.CKEditor5=window.CKEditor5||{}).exportPdf=r})();
5
+ */(()=>{var t={782:(t,e,n)=>{t.exports=n(237)("./src/core.js")},311:(t,e,n)=>{t.exports=n(237)("./src/ui.js")},237:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{ExportPdf:()=>h});var t=n(782),e=n(311);function o(){const t=["styleSheets","then","cssText","1684510QUBTBh","push","77HxyIZO","382549vyEgPn","from","1080195xvLkrF","EDITOR_STYLES","The editor stylesheet could not be found in the document. Check your webpack config – style-loader should use data-cke=true attribute for the editor stylesheet.",".ck-content","text","cssRules","223254KRWxDV",":root","11112330voEPTw","5656RileDY","length","ownerNode","fetch","4NaDWjE","3321uxlTtk","hasAttribute","trim","indexOf","join","all","810482sQtStx","data-cke","warn"];return(o=function(){return t})()}function s(t,e){const n=o();return(s=function(t,e){return n[t-=419]})(t,e)}function i(){const t=s,e=[],n=[];for(const r of Array[t(424)](document[t(448)]))if(r[t(436)][t(440)](t(446)))for(const o of Array[t(424)](r[t(430)]))-1!==o[t(419)][t(442)](t(428))?e[t(421)](o[t(419)]):-1!==o[t(419)][t(442)](t(432))&&n[t(421)](o[t(419)]);return e[t(435)]||console[t(447)](t(427)),[...n,...e][t(443)](" ")[t(441)]()}!function(t,e){const n=s,r=t();for(;;)try{if(225108===parseInt(n(423))/1+parseInt(n(445))/2+parseInt(n(425))/3+parseInt(n(438))/4*(parseInt(n(420))/5)+parseInt(n(431))/6*(-parseInt(n(422))/7)+parseInt(n(434))/8*(parseInt(n(439))/9)+-parseInt(n(433))/10)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(o);class a extends t.Command{constructor(t){super(t),this.set("isBusy",!1),this.affectsData=!1}refresh(){this.isEnabled=!this.isBusy,this.value=this.isBusy?"pending":void 0}execute(t={}){const e=this.editor,n=e.t,r=t.converterUrl||"https://pdf-converter.cke-cs.com/v1/convert/",o=t.dataCallback||(t=>t.data.get()),a=e.plugins.get("ExportPdf"),c=t.token||a._token;return this.isBusy=!0,this.refresh(),function(t){const e=s;if(!t)return new Promise((t=>t("")));const n=[];for(const r of t)e(426)!==r?n[e(421)](window[e(437)](r)[e(449)]((t=>t[e(429)]()))):n[e(421)](i());return Promise[e(444)](n)[e(449)]((t=>t[e(443)](" ")[e(441)]()))}(t.stylesheets||["EDITOR_STYLES"]).then((async s=>{e.ui.ariaLiveAnnouncer.announce(n("PDF export started"));const i={html:'<html>\n\t\t\t\t\t\t<head>\n\t\t\t\t\t\t\t<title>CKEditor 5 PDF document</title>\n\t\t\t\t\t\t\t<meta charset="utf-8">\n\t\t\t\t\t\t</head>\n\t\t\t\t\t\t<body>\n\t\t\t\t\t\t\t<div class="ck-content" dir="'+e.locale.contentLanguageDirection+'">\n\t\t\t\t\t\t\t\t'+await o(e)+"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</body>\n\t\t\t\t\t</html>",css:s,options:t.converterOptions},a={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/pdf",...c?{Authorization:c.value}:null,"x-cs-app-id":t.appID||"cke5"},body:JSON.stringify(i)};return window.fetch(r,a).then((t=>{if(200!==t.status)throw t;return t.blob()})).then((r=>{e.ui.ariaLiveAnnouncer.announce(n("PDF export successful"));const o="function"==typeof t.fileName?t.fileName():t.fileName;this._downloadFile(r,o||"document.pdf")}))})).catch((t=>{const r=e.plugins.get("Notification");throw e.ui.ariaLiveAnnouncer.announce(n("PDF export failed"),{politeness:"assertive"}),r.showWarning(n("An error occurred while generating the PDF.")),t})).finally((()=>{this.isBusy=!1,this.refresh()}))}_downloadFile(t,e){const n=document.createElement("a");n.href=window.URL.createObjectURL(t),n.download=e,n.click(),n.remove()}}class c extends t.Plugin{static get pluginName(){return"ExportPdfUI"}init(){const t=this.editor;t.ui.componentFactory.add("exportPdf",(()=>{const n=this._createButton(e.ButtonView),r=t.commands.get("exportPdf");return n.set({tooltip:!0}),n.bind("isOn").to(r,"isBusy"),n})),t.ui.componentFactory.add("menuBar:exportPdf",(()=>this._createButton(e.MenuBarMenuListItemButtonView)))}_createButton(t){const n=this.editor,r=n.config.get("exportPdf")||{},o=n.locale.t,s=n.commands.get("exportPdf"),i=new t(n.locale),a=new e.SpinnerView;return i.children.add(a),a.bind("isVisible").to(s,"isBusy"),i.iconView.bind("isVisible").to(s,"isBusy",(t=>!t)),i.set({label:o("Export to PDF"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4.5 14 0H3v6.5h1.5v-5h8v5h5V11H19V4.5ZM14 2l3.3 3H14V2Z"/><path d="m12.452 18.5 1.25 1.5H3v-3h1.5v1.5h7.952Z"/><path d="M19.826 16.843a.75.75 0 1 0-1.152-.96L17.5 17.29V13H16v4.29l-1.174-1.408a.75.75 0 1 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Z"/><path d="M1.63 14.24V12.3h.88c.66 0 1.14-.15 1.46-.45.32-.3.48-.71.48-1.24 0-.52-.15-.91-.44-1.2C3.7 9.15 3.28 9 2.69 9H0v5.24h1.63Zm.4-3h-.4v-1.17h.46c.3 0 .5.05.62.17.1.11.16.25.16.42 0 .16-.06.3-.19.41-.13.11-.34.16-.66.16l.01.01Zm5.7 3c.28 0 .6-.05.96-.14.26-.07.5-.21.73-.42.22-.2.4-.47.53-.77.12-.31.19-.75.19-1.3 0-.37-.04-.7-.13-1.02a2.3 2.3 0 0 0-.42-.84c-.19-.24-.43-.43-.72-.56C8.57 9.06 8.2 9 7.72 9h-2.4v5.24H7.73Zm-.4-1.19h-.4v-2.86h.4c.43 0 .73.1.91.3.18.2.27.59.27 1.14 0 .42-.04.73-.12.91a.76.76 0 0 1-.34.4c-.14.07-.38.11-.72.11Zm5.3 1.2V12.1h2.02v-1.06h-2.03v-.91H15V9h-4v5.24h1.62l.01.01Z"/></svg>\n'}),i.bind("isEnabled").to(s,"isEnabled"),this.listenTo(i,"execute",(()=>{n.execute("exportPdf",r),n.editing.view.focus()})),i}}function u(t,e){const n=p();return(u=function(t,e){return n[t-=246]})(t,e)}const d=u;function p(){const t=["CloudServices","6FtqBZj","token","editor","init","716920djQiDI","add","ExportPdf","requires","exportPdf","tokenUrl","10nlkFDU","631224wayodi","pluginName","config","_token","8889530AGsyPv","then","18kMzlMc","commands","plugins","295586ZBDlDr","1326633iFXxdc","1789360qhCeRc","get","181518ZHHToG","registerTokenUrl"];return(p=function(){return t})()}!function(t,e){const n=u,r=t();for(;;)try{if(273662===parseInt(n(254))/1+parseInt(n(258))/2*(parseInt(n(251))/3)+parseInt(n(265))/4*(parseInt(n(271))/5)+parseInt(n(261))/6*(-parseInt(n(255))/7)+parseInt(n(256))/8+-parseInt(n(272))/9+-parseInt(n(249))/10)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(p);class h extends t.Plugin{static get[d(246)](){return d(267)}static get[d(268)](){return[d(260),e.Notification,c]}[d(264)](){const t=d,e=this[t(263)],n=e[t(247)][t(257)](t(269))||{};e[t(252)][t(266)](t(269),new a(e));const r=e[t(253)][t(257)](t(260));!1===n[t(270)]?this[t(248)]=null:n[t(270)]?r[t(259)](n[t(270)])[t(250)]((e=>{this[t(248)]=e})):this[t(248)]=r[t(262)]}}function l(t,e){var n=f();return(l=function(t,e){return n[t-=236]})(t,e)}function f(){var t=["370elalvT","176dtSKbL","642QRZgTC","21732lOgwhB","6271nYRbWg","162qsikzW","283297TdEybv","712665BqJYIA","884RFtkii","11883rNbgFK","68233KsOhOw","652izzuAu","71605ZgVgjw"];return(f=function(){return t})()}!function(t,e){for(var n=l,r=t();;)try{if(777767===-parseInt(n(244))/1*(-parseInt(n(245))/2)+parseInt(n(236))/3*(-parseInt(n(238))/4)+-parseInt(n(239))/5*(-parseInt(n(242))/6)+-parseInt(n(246))/7*(parseInt(n(241))/8)+-parseInt(n(247))/9+parseInt(n(240))/10*(parseInt(n(237))/11)+-parseInt(n(243))/12*(-parseInt(n(248))/13))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(f)})(),(window.CKEditor5=window.CKEditor5||{}).exportPdf=r})();
@@ -1,4 +1,7 @@
1
1
  {
2
2
  "Export to PDF": "A toolbar button tooltip for a PDF export feature.",
3
- "An error occurred while generating the PDF.": "An error message shown to the user when an error occurred during the generation of the PDF file."
3
+ "An error occurred while generating the PDF.": "An error message shown to the user when an error occurred during the generation of the PDF file.",
4
+ "PDF export started": "Aria status message indicating start of PDF document export. Example: 'PDF export started'.",
5
+ "PDF export failed": "Aria status message indicating failed PDF document export. Example: 'PDF export failed'.",
6
+ "PDF export successful": "Aria status message indicating successful PDF document export. Example: 'PDF export successful'."
4
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-pdf",
3
- "version": "0.0.0-nightly-20240416.0",
3
+ "version": "0.0.0-nightly-20240418.0",
4
4
  "description": "Export to PDF feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -30,7 +30,7 @@
30
30
  "type": "module",
31
31
  "main": "src/index.js",
32
32
  "dependencies": {
33
- "ckeditor5": "0.0.0-nightly-20240416.0"
33
+ "ckeditor5": "0.0.0-nightly-20240418.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
package/src/exportpdf.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e971=_0x1aee;function _0x1aee(_0x1b80e4,_0x1e8450){const _0x31ea12=_0x31ea();return _0x1aee=function(_0x1aeef2,_0x8bc485){_0x1aeef2=_0x1aeef2-0x14b;let _0x2591f9=_0x31ea12[_0x1aeef2];return _0x2591f9;},_0x1aee(_0x1b80e4,_0x1e8450);}(function(_0x24a5bc,_0x229e3d){const _0x3eb767=_0x1aee,_0x3d346c=_0x24a5bc();while(!![]){try{const _0xe7e67f=parseInt(_0x3eb767(0x15b))/0x1+-parseInt(_0x3eb767(0x156))/0x2*(parseInt(_0x3eb767(0x162))/0x3)+-parseInt(_0x3eb767(0x163))/0x4+parseInt(_0x3eb767(0x14d))/0x5*(parseInt(_0x3eb767(0x15f))/0x6)+-parseInt(_0x3eb767(0x151))/0x7+-parseInt(_0x3eb767(0x152))/0x8*(parseInt(_0x3eb767(0x164))/0x9)+parseInt(_0x3eb767(0x155))/0xa*(parseInt(_0x3eb767(0x15d))/0xb);if(_0xe7e67f===_0x229e3d)break;else _0x3d346c['push'](_0x3d346c['shift']());}catch(_0x207263){_0x3d346c['push'](_0x3d346c['shift']());}}}(_0x31ea,0x29cab));import{Plugin as _0x6eb3d6}from'ckeditor5/src/core.js';import{Notification as _0x2d3118}from'ckeditor5/src/ui.js';function _0x31ea(){const _0xd7320b=['227826eAJulW','plugins','commands','add','get','189499iStBeP','pluginName','33FMKnxl','exportPdf','1819110MPeGdJ','init','config','3OWklRv','479116cOLiiv','27RJWoyw','tokenUrl','registerTokenUrl','then','ExportPdf','5WPTcZl','editor','token','requires','1606479KkaMvs','458256iwoNQS','CloudServices','_token','1045100aMyEzJ'];_0x31ea=function(){return _0xd7320b;};return _0x31ea();}import _0x54aac2 from'./exportpdfcommand.js';import _0x2f62d9 from'./exportpdfui.js';export default class s extends _0x6eb3d6{static get[_0x4e971(0x15c)](){const _0x53316a=_0x4e971;return _0x53316a(0x14c);}static get[_0x4e971(0x150)](){const _0x20b041=_0x4e971;return[_0x20b041(0x153),_0x2d3118,_0x2f62d9];}[_0x4e971(0x160)](){const _0x4f46cd=_0x4e971,_0x177697=this[_0x4f46cd(0x14e)],_0x3896f7=_0x177697[_0x4f46cd(0x161)][_0x4f46cd(0x15a)](_0x4f46cd(0x15e))||{};_0x177697[_0x4f46cd(0x158)][_0x4f46cd(0x159)](_0x4f46cd(0x15e),new _0x54aac2(_0x177697));const _0x1b01d4=_0x177697[_0x4f46cd(0x157)][_0x4f46cd(0x15a)](_0x4f46cd(0x153));!0x1===_0x3896f7[_0x4f46cd(0x165)]?this[_0x4f46cd(0x154)]=null:_0x3896f7[_0x4f46cd(0x165)]?_0x1b01d4[_0x4f46cd(0x166)](_0x3896f7[_0x4f46cd(0x165)])[_0x4f46cd(0x14b)](_0x29d6b5=>{const _0x13a81e=_0x4f46cd;this[_0x13a81e(0x154)]=_0x29d6b5;}):this[_0x4f46cd(0x154)]=_0x1b01d4[_0x4f46cd(0x14f)];}}
23
+ function _0x5410(_0x4ecee8,_0x71cc26){const _0x30afa3=_0x30af();return _0x5410=function(_0x541021,_0x1f6e36){_0x541021=_0x541021-0xf6;let _0x3cd6e9=_0x30afa3[_0x541021];return _0x3cd6e9;},_0x5410(_0x4ecee8,_0x71cc26);}const _0x43e7a8=_0x5410;(function(_0x278a22,_0x41b241){const _0x32c83e=_0x5410,_0x2c09a1=_0x278a22();while(!![]){try{const _0x367af0=parseInt(_0x32c83e(0xfe))/0x1+parseInt(_0x32c83e(0x102))/0x2*(parseInt(_0x32c83e(0xfb))/0x3)+parseInt(_0x32c83e(0x109))/0x4*(parseInt(_0x32c83e(0x10f))/0x5)+parseInt(_0x32c83e(0x105))/0x6*(-parseInt(_0x32c83e(0xff))/0x7)+parseInt(_0x32c83e(0x100))/0x8+-parseInt(_0x32c83e(0x110))/0x9+-parseInt(_0x32c83e(0xf9))/0xa;if(_0x367af0===_0x41b241)break;else _0x2c09a1['push'](_0x2c09a1['shift']());}catch(_0x415160){_0x2c09a1['push'](_0x2c09a1['shift']());}}}(_0x30af,0x42cfe));import{Plugin as _0x472c76}from'ckeditor5/src/core.js';import{Notification as _0x537963}from'ckeditor5/src/ui.js';function _0x30af(){const _0x1b2df3=['CloudServices','6FtqBZj','token','editor','init','716920djQiDI','add','ExportPdf','requires','exportPdf','tokenUrl','10nlkFDU','631224wayodi','pluginName','config','_token','8889530AGsyPv','then','18kMzlMc','commands','plugins','295586ZBDlDr','1326633iFXxdc','1789360qhCeRc','get','181518ZHHToG','registerTokenUrl'];_0x30af=function(){return _0x1b2df3;};return _0x30af();}import _0x70dfc5 from'./exportpdfcommand.js';import _0x4c16c3 from'./exportpdfui.js';export default class s extends _0x472c76{static get[_0x43e7a8(0xf6)](){const _0x238efe=_0x43e7a8;return _0x238efe(0x10b);}static get[_0x43e7a8(0x10c)](){const _0x5c0771=_0x43e7a8;return[_0x5c0771(0x104),_0x537963,_0x4c16c3];}[_0x43e7a8(0x108)](){const _0x274cf3=_0x43e7a8,_0x45fa53=this[_0x274cf3(0x107)],_0x583dd4=_0x45fa53[_0x274cf3(0xf7)][_0x274cf3(0x101)](_0x274cf3(0x10d))||{};_0x45fa53[_0x274cf3(0xfc)][_0x274cf3(0x10a)](_0x274cf3(0x10d),new _0x70dfc5(_0x45fa53));const _0x5ddedb=_0x45fa53[_0x274cf3(0xfd)][_0x274cf3(0x101)](_0x274cf3(0x104));!0x1===_0x583dd4[_0x274cf3(0x10e)]?this[_0x274cf3(0xf8)]=null:_0x583dd4[_0x274cf3(0x10e)]?_0x5ddedb[_0x274cf3(0x103)](_0x583dd4[_0x274cf3(0x10e)])[_0x274cf3(0xfa)](_0x349278=>{const _0xa90841=_0x274cf3;this[_0xa90841(0xf8)]=_0x349278;}):this[_0x274cf3(0xf8)]=_0x5ddedb[_0x274cf3(0x106)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x28e2de}from'ckeditor5/src/core.js';import{getStyles as _0x2d2893}from'./utils.js';export default class o extends _0x28e2de{constructor(_0x51d854){super(_0x51d854),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x4debc={}){const _0xd08580=this['editor'],t=_0xd08580['t'],_0xd24919=_0x4debc['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x9cf8fe=_0x4debc['dataCallback']||(_0x2bc485=>_0x2bc485['data']['get']()),_0x5e278a=_0xd08580['plugins']['get']('ExportPdf'),_0x2c4882=_0x4debc['token']||_0x5e278a['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x2d2893(_0x4debc['stylesheets']||['EDITOR_STYLES'])['then'](async _0x4d7d36=>{const _0x582a50={'html':'<html>\x0a\x09\x09\x09\x09\x09\x09<head>\x0a\x09\x09\x09\x09\x09\x09\x09<title>CKEditor\x205\x20PDF\x20document</title>\x0a\x09\x09\x09\x09\x09\x09\x09<meta\x20charset=\x22utf-8\x22>\x0a\x09\x09\x09\x09\x09\x09</head>\x0a\x09\x09\x09\x09\x09\x09<body>\x0a\x09\x09\x09\x09\x09\x09\x09<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0xd08580['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x9cf8fe(_0xd08580)+'\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','css':_0x4d7d36,'options':_0x4debc['converterOptions']},_0x1d5ee8={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x2c4882?{'Authorization':_0x2c4882['value']}:null,'x-cs-app-id':_0x4debc['appID']||'cke5'},'body':JSON['stringify'](_0x582a50)};return window['fetch'](_0xd24919,_0x1d5ee8)['then'](_0xd4f6b2=>{if(0xc8!==_0xd4f6b2['status'])throw _0xd4f6b2;return _0xd4f6b2['blob']();})['then'](_0x56ef19=>{const _0x3c2df4='function'==typeof _0x4debc['fileName']?_0x4debc['fileName']():_0x4debc['fileName'];this['_downloadFile'](_0x56ef19,_0x3c2df4||'document.pdf');});})['catch'](_0x2aa634=>{throw _0xd08580['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x2aa634;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x111cda,_0x5c5c6a){const _0x587565=document['createElement']('a');_0x587565['href']=window['URL']['createObjectURL'](_0x111cda),_0x587565['download']=_0x5c5c6a,_0x587565['click'](),_0x587565['remove']();}}
23
+ import{Command as _0x37c9e0}from'ckeditor5/src/core.js';import{getStyles as _0x55adcc}from'./utils.js';export default class o extends _0x37c9e0{constructor(_0x58c2c4){super(_0x58c2c4),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x3442a1={}){const _0x2d3e1a=this['editor'],t=_0x2d3e1a['t'],_0x5d86db=_0x3442a1['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x48abb4=_0x3442a1['dataCallback']||(_0x3d2385=>_0x3d2385['data']['get']()),_0x471ec9=_0x2d3e1a['plugins']['get']('ExportPdf'),_0x3d5b93=_0x3442a1['token']||_0x471ec9['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x55adcc(_0x3442a1['stylesheets']||['EDITOR_STYLES'])['then'](async _0x9d327c=>{_0x2d3e1a['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x35fa82={'html':'<html>\x0a\x09\x09\x09\x09\x09\x09<head>\x0a\x09\x09\x09\x09\x09\x09\x09<title>CKEditor\x205\x20PDF\x20document</title>\x0a\x09\x09\x09\x09\x09\x09\x09<meta\x20charset=\x22utf-8\x22>\x0a\x09\x09\x09\x09\x09\x09</head>\x0a\x09\x09\x09\x09\x09\x09<body>\x0a\x09\x09\x09\x09\x09\x09\x09<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x2d3e1a['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x48abb4(_0x2d3e1a)+'\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','css':_0x9d327c,'options':_0x3442a1['converterOptions']},_0x31e9bf={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x3d5b93?{'Authorization':_0x3d5b93['value']}:null,'x-cs-app-id':_0x3442a1['appID']||'cke5'},'body':JSON['stringify'](_0x35fa82)};return window['fetch'](_0x5d86db,_0x31e9bf)['then'](_0x223c6a=>{if(0xc8!==_0x223c6a['status'])throw _0x223c6a;return _0x223c6a['blob']();})['then'](_0x157617=>{_0x2d3e1a['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x42b47d='function'==typeof _0x3442a1['fileName']?_0x3442a1['fileName']():_0x3442a1['fileName'];this['_downloadFile'](_0x157617,_0x42b47d||'document.pdf');});})['catch'](_0x1bb72f=>{const _0x20882f=_0x2d3e1a['plugins']['get']('Notification');throw _0x2d3e1a['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x20882f['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x1bb72f;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x54a639,_0x529e14){const _0x1fef46=document['createElement']('a');_0x1fef46['href']=window['URL']['createObjectURL'](_0x54a639),_0x1fef46['download']=_0x529e14,_0x1fef46['click'](),_0x1fef46['remove']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5a371c}from'ckeditor5/src/core.js';import{ButtonView as _0x28697e,MenuBarMenuListItemButtonView as _0x823d89,SpinnerView as _0x519146}from'ckeditor5/src/ui.js';import _0x296155 from'../theme/icons/exportpdf.svg';export default class i extends _0x5a371c{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x3b68a3=this['editor'];_0x3b68a3['ui']['componentFactory']['add']('exportPdf',()=>{const _0x476e06=this['_createButton'](_0x28697e),_0x127732=_0x3b68a3['commands']['get']('exportPdf');return _0x476e06['set']({'tooltip':!0x0}),_0x476e06['bind']('isOn')['to'](_0x127732,'isBusy'),_0x476e06;}),_0x3b68a3['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x823d89));}['_createButton'](_0x238022){const _0x1da21e=this['editor'],_0x15dee2=_0x1da21e['config']['get']('exportPdf')||{},t=_0x1da21e['locale']['t'],_0x59a7c4=_0x1da21e['commands']['get']('exportPdf'),_0x12f8e9=new _0x238022(_0x1da21e['locale']),_0x3fe360=new _0x519146();return _0x12f8e9['children']['add'](_0x3fe360),_0x3fe360['bind']('isVisible')['to'](_0x59a7c4,'isBusy'),_0x12f8e9['iconView']['bind']('isVisible')['to'](_0x59a7c4,'isBusy',_0x611521=>!_0x611521),_0x12f8e9['set']({'label':t('Export\x20to\x20PDF'),'icon':_0x296155}),_0x12f8e9['bind']('isEnabled')['to'](_0x59a7c4,'isEnabled'),this['listenTo'](_0x12f8e9,'execute',()=>{_0x1da21e['execute']('exportPdf',_0x15dee2),_0x1da21e['editing']['view']['focus']();}),_0x12f8e9;}}
23
+ import{Plugin as _0x13fc67}from'ckeditor5/src/core.js';import{ButtonView as _0x3c3bdb,MenuBarMenuListItemButtonView as _0x41a6c8,SpinnerView as _0x36b211}from'ckeditor5/src/ui.js';import _0xc9fa24 from'../theme/icons/exportpdf.svg';export default class i extends _0x13fc67{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x5a592c=this['editor'];_0x5a592c['ui']['componentFactory']['add']('exportPdf',()=>{const _0x16e29c=this['_createButton'](_0x3c3bdb),_0x36f32c=_0x5a592c['commands']['get']('exportPdf');return _0x16e29c['set']({'tooltip':!0x0}),_0x16e29c['bind']('isOn')['to'](_0x36f32c,'isBusy'),_0x16e29c;}),_0x5a592c['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x41a6c8));}['_createButton'](_0x437564){const _0x31f99c=this['editor'],_0x992ce6=_0x31f99c['config']['get']('exportPdf')||{},t=_0x31f99c['locale']['t'],_0xe3be7a=_0x31f99c['commands']['get']('exportPdf'),_0x2fd5ad=new _0x437564(_0x31f99c['locale']),_0x987130=new _0x36b211();return _0x2fd5ad['children']['add'](_0x987130),_0x987130['bind']('isVisible')['to'](_0xe3be7a,'isBusy'),_0x2fd5ad['iconView']['bind']('isVisible')['to'](_0xe3be7a,'isBusy',_0x726931=>!_0x726931),_0x2fd5ad['set']({'label':t('Export\x20to\x20PDF'),'icon':_0xc9fa24}),_0x2fd5ad['bind']('isEnabled')['to'](_0xe3be7a,'isEnabled'),this['listenTo'](_0x2fd5ad,'execute',()=>{_0x31f99c['execute']('exportPdf',_0x992ce6),_0x31f99c['editing']['view']['focus']();}),_0x2fd5ad;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x3424b7,_0x2bc9e2){var _0x5530f4=_0xc0f7,_0x3d6080=_0x3424b7();while(!![]){try{var _0x8304d0=-parseInt(_0x5530f4(0x125))/0x1+-parseInt(_0x5530f4(0x129))/0x2*(-parseInt(_0x5530f4(0x12b))/0x3)+-parseInt(_0x5530f4(0x12e))/0x4+parseInt(_0x5530f4(0x12a))/0x5*(parseInt(_0x5530f4(0x128))/0x6)+parseInt(_0x5530f4(0x126))/0x7*(-parseInt(_0x5530f4(0x12c))/0x8)+parseInt(_0x5530f4(0x127))/0x9*(parseInt(_0x5530f4(0x12d))/0xa)+parseInt(_0x5530f4(0x124))/0xb;if(_0x8304d0===_0x2bc9e2)break;else _0x3d6080['push'](_0x3d6080['shift']());}catch(_0x17d092){_0x3d6080['push'](_0x3d6080['shift']());}}}(_0x4748,0xb6d5b));export{default as ExportPdf}from'./exportpdf.js';function _0xc0f7(_0x45bb62,_0x48b000){var _0x47488b=_0x4748();return _0xc0f7=function(_0xc0f788,_0x415717){_0xc0f788=_0xc0f788-0x124;var _0x3c29b2=_0x47488b[_0xc0f788];return _0x3c29b2;},_0xc0f7(_0x45bb62,_0x48b000);}function _0x4748(){var _0x2620bb=['101435WtBoJq','3177pCcmHh','7624wLzDdK','76490ivhmLH','1186572qTHXYH','16878158SONryZ','480701TgaiAT','3759FHftGP','261yLrngK','42JznDqO','264dFVnyc'];_0x4748=function(){return _0x2620bb;};return _0x4748();}import'./augmentation.js';
23
+ (function(_0x26cf98,_0x437ff1){var _0x58886d=_0x1d7e,_0x2320fb=_0x26cf98();while(!![]){try{var _0x25906c=-parseInt(_0x58886d(0xf4))/0x1*(-parseInt(_0x58886d(0xf5))/0x2)+parseInt(_0x58886d(0xec))/0x3*(-parseInt(_0x58886d(0xee))/0x4)+-parseInt(_0x58886d(0xef))/0x5*(-parseInt(_0x58886d(0xf2))/0x6)+-parseInt(_0x58886d(0xf6))/0x7*(parseInt(_0x58886d(0xf1))/0x8)+-parseInt(_0x58886d(0xf7))/0x9+parseInt(_0x58886d(0xf0))/0xa*(parseInt(_0x58886d(0xed))/0xb)+-parseInt(_0x58886d(0xf3))/0xc*(-parseInt(_0x58886d(0xf8))/0xd);if(_0x25906c===_0x437ff1)break;else _0x2320fb['push'](_0x2320fb['shift']());}catch(_0x495508){_0x2320fb['push'](_0x2320fb['shift']());}}}(_0x40af,0xbde27));export{default as ExportPdf}from'./exportpdf.js';function _0x1d7e(_0x1f1b41,_0x4b1fdf){var _0x40af7c=_0x40af();return _0x1d7e=function(_0x1d7e0f,_0x2ffb5a){_0x1d7e0f=_0x1d7e0f-0xec;var _0x5bd853=_0x40af7c[_0x1d7e0f];return _0x5bd853;},_0x1d7e(_0x1f1b41,_0x4b1fdf);}function _0x40af(){var _0x240a01=['370elalvT','176dtSKbL','642QRZgTC','21732lOgwhB','6271nYRbWg','162qsikzW','283297TdEybv','712665BqJYIA','884RFtkii','11883rNbgFK','68233KsOhOw','652izzuAu','71605ZgVgjw'];_0x40af=function(){return _0x240a01;};return _0x40af();}import'./augmentation.js';
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x330f(){const _0x1fd61e=['30305803QBRyRM','.ck-content','push','join','204uujYuS','EDITOR_STYLES','from','hasAttribute','warn','cssRules','9384781MmIzEc','length','225427kOgkND','text','all','cssText','fetch','140655rIBwya','data-cke','22482IdwLNk','indexOf',':root','12668150eBHrML','4776nBcDdg','3McdMLt','trim','ownerNode','The\x20editor\x20stylesheet\x20could\x20not\x20be\x20found\x20in\x20the\x20document.\x20Check\x20your\x20webpack\x20config\x20–\x20style-loader\x20should\x20use\x20data-cke=true\x20attribute\x20for\x20the\x20editor\x20stylesheet.','2SLohnK','then','5238644faHiMO','styleSheets'];_0x330f=function(){return _0x1fd61e;};return _0x330f();}(function(_0x57843d,_0x56162a){const _0x3bffd2=_0x4155,_0x227cf5=_0x57843d();while(!![]){try{const _0x38403e=parseInt(_0x3bffd2(0xe7))/0x1*(parseInt(_0x3bffd2(0xf7))/0x2)+-parseInt(_0x3bffd2(0xf3))/0x3*(-parseInt(_0x3bffd2(0xf9))/0x4)+-parseInt(_0x3bffd2(0xec))/0x5*(-parseInt(_0x3bffd2(0xff))/0x6)+parseInt(_0x3bffd2(0x105))/0x7+parseInt(_0x3bffd2(0xf2))/0x8*(-parseInt(_0x3bffd2(0xee))/0x9)+parseInt(_0x3bffd2(0xf1))/0xa+-parseInt(_0x3bffd2(0xfb))/0xb;if(_0x38403e===_0x56162a)break;else _0x227cf5['push'](_0x227cf5['shift']());}catch(_0x5a31f3){_0x227cf5['push'](_0x227cf5['shift']());}}}(_0x330f,0xd02b5));function _0x4155(_0xcec5a3,_0x505de0){const _0x330fce=_0x330f();return _0x4155=function(_0x4155b3,_0x97e753){_0x4155b3=_0x4155b3-0xe6;let _0x547414=_0x330fce[_0x4155b3];return _0x547414;},_0x4155(_0xcec5a3,_0x505de0);}export function getStyles(_0xe6fac9){const _0x8b625d=_0x4155;if(!_0xe6fac9)return new Promise(_0x15cd34=>_0x15cd34(''));const _0x1e8982=[];for(const _0x7f7c32 of _0xe6fac9)_0x8b625d(0x100)!==_0x7f7c32?_0x1e8982[_0x8b625d(0xfd)](window[_0x8b625d(0xeb)](_0x7f7c32)[_0x8b625d(0xf8)](_0x1676bb=>_0x1676bb[_0x8b625d(0xe8)]())):_0x1e8982[_0x8b625d(0xfd)](a());return Promise[_0x8b625d(0xe9)](_0x1e8982)[_0x8b625d(0xf8)](_0x3f1c21=>_0x3f1c21[_0x8b625d(0xfe)]('\x20')[_0x8b625d(0xf4)]());}function a(){const _0x42a10e=_0x4155,_0x4f6b3b=[],_0x26e47a=[];for(const _0x2d9d9d of Array[_0x42a10e(0x101)](document[_0x42a10e(0xfa)])){if(_0x2d9d9d[_0x42a10e(0xf5)][_0x42a10e(0x102)](_0x42a10e(0xed))){for(const _0x5323f8 of Array[_0x42a10e(0x101)](_0x2d9d9d[_0x42a10e(0x104)]))-0x1!==_0x5323f8[_0x42a10e(0xea)][_0x42a10e(0xef)](_0x42a10e(0xfc))?_0x4f6b3b[_0x42a10e(0xfd)](_0x5323f8[_0x42a10e(0xea)]):-0x1!==_0x5323f8[_0x42a10e(0xea)][_0x42a10e(0xef)](_0x42a10e(0xf0))&&_0x26e47a[_0x42a10e(0xfd)](_0x5323f8[_0x42a10e(0xea)]);}}return _0x4f6b3b[_0x42a10e(0xe6)]||console[_0x42a10e(0x103)](_0x42a10e(0xf6)),[..._0x26e47a,..._0x4f6b3b][_0x42a10e(0xfe)]('\x20')[_0x42a10e(0xf4)]();}
23
+ (function(_0x33b36a,_0x1a5a2a){const _0x4f8d7c=_0x49e4,_0x198092=_0x33b36a();while(!![]){try{const _0x58dc3e=parseInt(_0x4f8d7c(0x1a7))/0x1+parseInt(_0x4f8d7c(0x1bd))/0x2+parseInt(_0x4f8d7c(0x1a9))/0x3+parseInt(_0x4f8d7c(0x1b6))/0x4*(parseInt(_0x4f8d7c(0x1a4))/0x5)+parseInt(_0x4f8d7c(0x1af))/0x6*(-parseInt(_0x4f8d7c(0x1a6))/0x7)+parseInt(_0x4f8d7c(0x1b2))/0x8*(parseInt(_0x4f8d7c(0x1b7))/0x9)+-parseInt(_0x4f8d7c(0x1b1))/0xa;if(_0x58dc3e===_0x1a5a2a)break;else _0x198092['push'](_0x198092['shift']());}catch(_0x406473){_0x198092['push'](_0x198092['shift']());}}}(_0x2ebf,0x36f54));export function getStyles(_0x9b0964){const _0x519640=_0x49e4;if(!_0x9b0964)return new Promise(_0x477389=>_0x477389(''));const _0x4d270e=[];for(const _0x9ed55 of _0x9b0964)_0x519640(0x1aa)!==_0x9ed55?_0x4d270e[_0x519640(0x1a5)](window[_0x519640(0x1b5)](_0x9ed55)[_0x519640(0x1c1)](_0x40bbd4=>_0x40bbd4[_0x519640(0x1ad)]())):_0x4d270e[_0x519640(0x1a5)](a());return Promise[_0x519640(0x1bc)](_0x4d270e)[_0x519640(0x1c1)](_0x5910c1=>_0x5910c1[_0x519640(0x1bb)]('\x20')[_0x519640(0x1b9)]());}function _0x2ebf(){const _0x534ddc=['styleSheets','then','cssText','1684510QUBTBh','push','77HxyIZO','382549vyEgPn','from','1080195xvLkrF','EDITOR_STYLES','The\x20editor\x20stylesheet\x20could\x20not\x20be\x20found\x20in\x20the\x20document.\x20Check\x20your\x20webpack\x20config\x20–\x20style-loader\x20should\x20use\x20data-cke=true\x20attribute\x20for\x20the\x20editor\x20stylesheet.','.ck-content','text','cssRules','223254KRWxDV',':root','11112330voEPTw','5656RileDY','length','ownerNode','fetch','4NaDWjE','3321uxlTtk','hasAttribute','trim','indexOf','join','all','810482sQtStx','data-cke','warn'];_0x2ebf=function(){return _0x534ddc;};return _0x2ebf();}function _0x49e4(_0x5de7f6,_0x3c8b96){const _0x2ebf66=_0x2ebf();return _0x49e4=function(_0x49e414,_0x37e888){_0x49e414=_0x49e414-0x1a3;let _0x49e532=_0x2ebf66[_0x49e414];return _0x49e532;},_0x49e4(_0x5de7f6,_0x3c8b96);}function a(){const _0x5c976d=_0x49e4,_0x4739ed=[],_0x5705f5=[];for(const _0x26af33 of Array[_0x5c976d(0x1a8)](document[_0x5c976d(0x1c0)])){if(_0x26af33[_0x5c976d(0x1b4)][_0x5c976d(0x1b8)](_0x5c976d(0x1be))){for(const _0x50aa67 of Array[_0x5c976d(0x1a8)](_0x26af33[_0x5c976d(0x1ae)]))-0x1!==_0x50aa67[_0x5c976d(0x1a3)][_0x5c976d(0x1ba)](_0x5c976d(0x1ac))?_0x4739ed[_0x5c976d(0x1a5)](_0x50aa67[_0x5c976d(0x1a3)]):-0x1!==_0x50aa67[_0x5c976d(0x1a3)][_0x5c976d(0x1ba)](_0x5c976d(0x1b0))&&_0x5705f5[_0x5c976d(0x1a5)](_0x50aa67[_0x5c976d(0x1a3)]);}}return _0x4739ed[_0x5c976d(0x1b3)]||console[_0x5c976d(0x1bf)](_0x5c976d(0x1ab)),[..._0x5705f5,..._0x4739ed][_0x5c976d(0x1bb)]('\x20')[_0x5c976d(0x1b9)]();}