@ckeditor/ckeditor5-export-pdf 41.3.1 → 41.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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=s,e=[],n=[];for(const r of Array[t(473)](document[t(482)]))if(r[t(480)][t(500)](t(476)))for(const o of Array[t(473)](r[t(495)]))-1!==o[t(488)][t(498)](t(490))?e[t(478)](o[t(488)]):-1!==o[t(488)][t(498)](t(474))&&n[t(478)](o[t(488)]);return e[t(494)]||console[t(493)](t(491)),[...n,...e][t(472)](" ")[t(496)]()}function s(t,e){const n=i();return(s=function(t,e){return n[t-=471]})(t,e)}function i(){const t=["trim","2594505olsscO","indexOf","7117060ZqnfdV","hasAttribute","119212gblWTX","396516WpcAKS","join","from",":root","fetch","data-cke","294doArJg","push","5776iKeZxz","ownerNode","27PTMAGm","styleSheets","63592BhqTau","then","EDITOR_STYLES","all","2271411RiRwui","cssText","16jRXldw",".ck-content","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.","text","warn","length","cssRules"];return(i=function(){return t})()}!function(t,e){const n=s,r=t();for(;;)try{if(296017===-parseInt(n(489))/1*(-parseInt(n(483))/2)+parseInt(n(481))/3*(parseInt(n(501))/4)+parseInt(n(497))/5+-parseInt(n(471))/6+parseInt(n(477))/7*(parseInt(n(479))/8)+-parseInt(n(487))/9+-parseInt(n(499))/10)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(i);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/",i=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(485)!==r?n[e(478)](window[e(475)](r)[e(484)]((t=>t[e(492)]()))):n[e(478)](o());return Promise[e(486)](n)[e(484)]((t=>t[e(472)](" ")[e(496)]()))}(t.stylesheets||["EDITOR_STYLES"]).then((async n=>{const o={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 i(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},s={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(o)};return window.fetch(r,s).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 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}}const u=h;function d(){const t=["140865qlkKEV","exportPdf","registerTokenUrl","_token","init","ExportPdf","140mwOWhh","130CyVftQ","CloudServices","add","598860HEMgyn","91445NobtRV","editor","requires","plugins","767511NHxiqb","then","542432DavNKG","token","306736NPgutB","tokenUrl","get","commands","config","pluginName","21406605XeCzPJ","2rMxePI","138tVjUTq"];return(d=function(){return t})()}function h(t,e){const n=d();return(h=function(t,e){return n[t-=405]})(t,e)}!function(t,e){const n=h,r=t();for(;;)try{if(746e3===-parseInt(n(432))/1*(-parseInt(n(419))/2)+-parseInt(n(431))/3+parseInt(n(410))/4+parseInt(n(421))/5*(parseInt(n(420))/6)+-parseInt(n(427))/7*(parseInt(n(412))/8)+-parseInt(n(408))/9*(parseInt(n(428))/10)+parseInt(n(418))/11)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(d);class p extends t.Plugin{static get[u(417)](){return u(426)}static get[u(406)](){return[u(429),e.Notification,c]}[u(425)](){const t=u,e=this[t(405)],n=e[t(416)][t(414)](t(422))||{};e[t(415)][t(430)](t(422),new a(e));const r=e[t(407)][t(414)](t(429));!1===n[t(413)]?this[t(424)]=null:n[t(413)]?r[t(423)](n[t(413)])[t(409)]((e=>{this[t(424)]=e})):this[t(424)]=r[t(411)]}}function l(){var t=["1171497WpXSHq","248117Psbjjs","323169VVrYYf","2vIojIV","1349226jtNMXa","2823021sQjbHf","860916XSuNyr","8IEEaYy","777370PetyXk"];return(l=function(){return t})()}function f(t,e){var n=l();return(f=function(t,e){return n[t-=215]})(t,e)}!function(t,e){for(var n=f,r=t();;)try{if(225282===parseInt(n(215))/1+parseInt(n(217))/2*(parseInt(n(223))/3)+-parseInt(n(220))/4+-parseInt(n(222))/5+parseInt(n(218))/6+parseInt(n(216))/7+parseInt(n(221))/8*(-parseInt(n(219))/9))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(l)})(),(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=["2uuVeHx","1877064TpRXhW","then","3028300dDVEqp","push","trim","indexOf","445958EyVuRn","2479599opKHGX","length","join","warn","4121178FDXIkq","text","all","8YEoSjF",".ck-content","cssRules","EDITOR_STYLES","data-cke","fetch","1174032NnWSfU","styleSheets","hasAttribute","cssText","from",":root","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.","23137641XSCLGT"];return(o=function(){return t})()}function s(t,e){const n=o();return(s=function(t,e){return n[t-=364]})(t,e)}function i(){const t=s,e=[],n=[];for(const r of Array[t(385)](document[t(382)]))if(r[t(387)][t(383)](t(379)))for(const o of Array[t(385)](r[t(377)]))-1!==o[t(384)][t(366)](t(376))?e[t(364)](o[t(384)]):-1!==o[t(384)][t(366)](t(386))&&n[t(364)](o[t(384)]);return e[t(369)]||console[t(371)](t(388)),[...n,...e][t(370)](" ")[t(365)]()}!function(t){const e=s,n=t();for(;;)try{if(555825===-parseInt(e(390))/1*(-parseInt(e(367))/2)+parseInt(e(368))/3+parseInt(e(381))/4+parseInt(e(393))/5+parseInt(e(372))/6+parseInt(e(391))/7+-parseInt(e(375))/8*(parseInt(e(389))/9))break;n.push(n.shift())}catch(t){n.push(n.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(378)!==r?n[e(364)](window[e(380)](r)[e(392)]((t=>t[e(373)]()))):n[e(364)](i());return Promise[e(374)](n)[e(392)]((t=>t[e(370)](" ")[e(365)]()))}(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=p;function d(){const t=["registerTokenUrl","21tvsfyw","init","token","config","3537750PiqcBd","90685AxGXsp","plugins","15095817agFiPI","16hagPzL","4701630mjmIhF","editor","tokenUrl","add","pluginName","then","requires","3468004OuWntv","commands","_token","get","ExportPdf","CloudServices","84822sKQsuU","1889742pPwIsN","exportPdf"];return(d=function(){return t})()}function p(t,e){const n=d();return(p=function(t,e){return n[t-=328]})(t,e)}!function(t){const e=p,n=t();for(;;)try{if(484832===-parseInt(e(352))/1*(parseInt(e(348))/2)+parseInt(e(349))/3+parseInt(e(342))/4+parseInt(e(335))/5+parseInt(e(330))/6+parseInt(e(331))/7*(parseInt(e(334))/8)+-parseInt(e(333))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(d);class h extends t.Plugin{static get[u(339)](){return u(346)}static get[u(341)](){return[u(347),e.Notification,a]}[u(353)](){const t=u,e=this[t(336)],n=e[t(329)][t(345)](t(350))||{};e[t(343)][t(338)](t(350),new c(e));const r=e[t(332)][t(345)](t(347));!1===n[t(337)]?this[t(344)]=null:n[t(337)]?r[t(351)](n[t(337)])[t(340)]((e=>{this[t(344)]=e})):this[t(344)]=r[t(328)]}}function l(t,e){var n=f();return(l=function(t,e){return n[t-=164]})(t,e)}function f(){var t=["14536071BimkwH","53381416mvxWpE","10XvCyCy","2mGAUEj","4212342FiGneV","28cxHGfG","12100207MIVAxW","8QasIeo","933403DHWNDw","1999880wZcWNJ","335031spBdRQ"];return(f=function(){return t})()}!function(t){for(var e=l,n=t();;)try{if(998120===-parseInt(e(169))/1*(parseInt(e(164))/2)+-parseInt(e(171))/3*(parseInt(e(166))/4)+parseInt(e(174))/5*(parseInt(e(165))/6)+parseInt(e(167))/7*(-parseInt(e(168))/8)+-parseInt(e(172))/9+-parseInt(e(170))/10+parseInt(e(173))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(f)})(),(window.CKEditor5=window.CKEditor5||{}).exportPdf=r})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-pdf",
3
- "version": "41.3.1",
3
+ "version": "41.3.2",
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": "41.3.1"
33
+ "ckeditor5": "41.3.2"
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 _0x92f06a=_0x52db;(function(_0x13a553,_0x592eb3){const _0x204477=_0x52db,_0x47952f=_0x13a553();while(!![]){try{const _0x24e702=-parseInt(_0x204477(0x1b0))/0x1*(-parseInt(_0x204477(0x1a3))/0x2)+-parseInt(_0x204477(0x1af))/0x3+parseInt(_0x204477(0x19a))/0x4+parseInt(_0x204477(0x1a5))/0x5*(parseInt(_0x204477(0x1a4))/0x6)+-parseInt(_0x204477(0x1ab))/0x7*(parseInt(_0x204477(0x19c))/0x8)+-parseInt(_0x204477(0x198))/0x9*(parseInt(_0x204477(0x1ac))/0xa)+parseInt(_0x204477(0x1a2))/0xb;if(_0x24e702===_0x592eb3)break;else _0x47952f['push'](_0x47952f['shift']());}catch(_0x5dbb61){_0x47952f['push'](_0x47952f['shift']());}}}(_0x76a7,0xb6210));function _0x76a7(){const _0x2cafe9=['140865qlkKEV','exportPdf','registerTokenUrl','_token','init','ExportPdf','140mwOWhh','130CyVftQ','CloudServices','add','598860HEMgyn','91445NobtRV','editor','requires','plugins','767511NHxiqb','then','542432DavNKG','token','306736NPgutB','tokenUrl','get','commands','config','pluginName','21406605XeCzPJ','2rMxePI','138tVjUTq'];_0x76a7=function(){return _0x2cafe9;};return _0x76a7();}import{Plugin as _0x3c0966}from'ckeditor5/src/core.js';import{Notification as _0x1c8fcf}from'ckeditor5/src/ui.js';function _0x52db(_0x515d2d,_0x1ad2c2){const _0x76a723=_0x76a7();return _0x52db=function(_0x52db74,_0x1f15c7){_0x52db74=_0x52db74-0x195;let _0x5261a8=_0x76a723[_0x52db74];return _0x5261a8;},_0x52db(_0x515d2d,_0x1ad2c2);}import _0x5d9883 from'./exportpdfcommand.js';import _0x16b52e from'./exportpdfui.js';export default class s extends _0x3c0966{static get[_0x92f06a(0x1a1)](){const _0x12233f=_0x92f06a;return _0x12233f(0x1aa);}static get[_0x92f06a(0x196)](){const _0xff559d=_0x92f06a;return[_0xff559d(0x1ad),_0x1c8fcf,_0x16b52e];}[_0x92f06a(0x1a9)](){const _0x49451c=_0x92f06a,_0x559d2a=this[_0x49451c(0x195)],_0x1a9b3f=_0x559d2a[_0x49451c(0x1a0)][_0x49451c(0x19e)](_0x49451c(0x1a6))||{};_0x559d2a[_0x49451c(0x19f)][_0x49451c(0x1ae)](_0x49451c(0x1a6),new _0x5d9883(_0x559d2a));const _0x63ae9f=_0x559d2a[_0x49451c(0x197)][_0x49451c(0x19e)](_0x49451c(0x1ad));!0x1===_0x1a9b3f[_0x49451c(0x19d)]?this[_0x49451c(0x1a8)]=null:_0x1a9b3f[_0x49451c(0x19d)]?_0x63ae9f[_0x49451c(0x1a7)](_0x1a9b3f[_0x49451c(0x19d)])[_0x49451c(0x199)](_0x30f495=>{const _0x5a2e0c=_0x49451c;this[_0x5a2e0c(0x1a8)]=_0x30f495;}):this[_0x49451c(0x1a8)]=_0x63ae9f[_0x49451c(0x19b)];}}
23
+ const _0x1cbb6b=_0x25b4;function _0x2535(){const _0x7d27d=['registerTokenUrl','21tvsfyw','init','token','config','3537750PiqcBd','90685AxGXsp','plugins','15095817agFiPI','16hagPzL','4701630mjmIhF','editor','tokenUrl','add','pluginName','then','requires','3468004OuWntv','commands','_token','get','ExportPdf','CloudServices','84822sKQsuU','1889742pPwIsN','exportPdf'];_0x2535=function(){return _0x7d27d;};return _0x2535();}(function(_0x52590e,_0xe362ec){const _0x8e3e76=_0x25b4,_0x3e8773=_0x52590e();while(!![]){try{const _0x4c7630=-parseInt(_0x8e3e76(0x160))/0x1*(parseInt(_0x8e3e76(0x15c))/0x2)+parseInt(_0x8e3e76(0x15d))/0x3+parseInt(_0x8e3e76(0x156))/0x4+parseInt(_0x8e3e76(0x14f))/0x5+parseInt(_0x8e3e76(0x14a))/0x6+parseInt(_0x8e3e76(0x14b))/0x7*(parseInt(_0x8e3e76(0x14e))/0x8)+-parseInt(_0x8e3e76(0x14d))/0x9;if(_0x4c7630===_0xe362ec)break;else _0x3e8773['push'](_0x3e8773['shift']());}catch(_0x51aa97){_0x3e8773['push'](_0x3e8773['shift']());}}}(_0x2535,0x765e0));import{Plugin as _0x54a705}from'ckeditor5/src/core.js';import{Notification as _0x5aebf1}from'ckeditor5/src/ui.js';import _0xd29ce3 from'./exportpdfcommand.js';function _0x25b4(_0x5063b3,_0x130c0a){const _0x253501=_0x2535();return _0x25b4=function(_0x25b4ae,_0x2edb6f){_0x25b4ae=_0x25b4ae-0x148;let _0x3b9918=_0x253501[_0x25b4ae];return _0x3b9918;},_0x25b4(_0x5063b3,_0x130c0a);}import _0x7e8362 from'./exportpdfui.js';export default class s extends _0x54a705{static get[_0x1cbb6b(0x153)](){const _0x14c522=_0x1cbb6b;return _0x14c522(0x15a);}static get[_0x1cbb6b(0x155)](){const _0x195681=_0x1cbb6b;return[_0x195681(0x15b),_0x5aebf1,_0x7e8362];}[_0x1cbb6b(0x161)](){const _0x29221b=_0x1cbb6b,_0x533a1d=this[_0x29221b(0x150)],_0x25b654=_0x533a1d[_0x29221b(0x149)][_0x29221b(0x159)](_0x29221b(0x15e))||{};_0x533a1d[_0x29221b(0x157)][_0x29221b(0x152)](_0x29221b(0x15e),new _0xd29ce3(_0x533a1d));const _0x371701=_0x533a1d[_0x29221b(0x14c)][_0x29221b(0x159)](_0x29221b(0x15b));!0x1===_0x25b654[_0x29221b(0x151)]?this[_0x29221b(0x158)]=null:_0x25b654[_0x29221b(0x151)]?_0x371701[_0x29221b(0x15f)](_0x25b654[_0x29221b(0x151)])[_0x29221b(0x154)](_0x3d3eb7=>{const _0x442ebe=_0x29221b;this[_0x442ebe(0x158)]=_0x3d3eb7;}):this[_0x29221b(0x158)]=_0x371701[_0x29221b(0x148)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x441053}from'ckeditor5/src/core.js';import{getStyles as _0x4316ee}from'./utils.js';export default class o extends _0x441053{constructor(_0x37547d){super(_0x37547d),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x25a435={}){const _0x505e14=this['editor'],t=_0x505e14['t'],_0x23ab1b=_0x25a435['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x5db239=_0x25a435['dataCallback']||(_0x595143=>_0x595143['data']['get']()),_0x19c751=_0x505e14['plugins']['get']('ExportPdf'),_0xc11c09=_0x25a435['token']||_0x19c751['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x4316ee(_0x25a435['stylesheets']||['EDITOR_STYLES'])['then'](async _0x375cad=>{const _0x5bdf42={'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'+_0x505e14['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x5db239(_0x505e14)+'\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':_0x375cad,'options':_0x25a435['converterOptions']},_0x3ec2e7={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0xc11c09?{'Authorization':_0xc11c09['value']}:null,'x-cs-app-id':_0x25a435['appID']||'cke5'},'body':JSON['stringify'](_0x5bdf42)};return window['fetch'](_0x23ab1b,_0x3ec2e7)['then'](_0x352d33=>{if(0xc8!==_0x352d33['status'])throw _0x352d33;return _0x352d33['blob']();})['then'](_0x4d14d7=>{const _0x270b16='function'==typeof _0x25a435['fileName']?_0x25a435['fileName']():_0x25a435['fileName'];this['_downloadFile'](_0x4d14d7,_0x270b16||'document.pdf');});})['catch'](_0xd8527c=>{throw _0x505e14['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0xd8527c;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x3e3246,_0x24b1ff){const _0xbc8603=document['createElement']('a');_0xbc8603['href']=window['URL']['createObjectURL'](_0x3e3246),_0xbc8603['download']=_0x24b1ff,_0xbc8603['click'](),_0xbc8603['remove']();}}
23
+ import{Command as _0xb7b627}from'ckeditor5/src/core.js';import{getStyles as _0x8e27c}from'./utils.js';export default class o extends _0xb7b627{constructor(_0x4ed3c1){super(_0x4ed3c1),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x7459f2={}){const _0x11b421=this['editor'],t=_0x11b421['t'],_0x547300=_0x7459f2['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x17e249=_0x7459f2['dataCallback']||(_0x204e3d=>_0x204e3d['data']['get']()),_0x59d181=_0x11b421['plugins']['get']('ExportPdf'),_0x253522=_0x7459f2['token']||_0x59d181['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x8e27c(_0x7459f2['stylesheets']||['EDITOR_STYLES'])['then'](async _0x3de42c=>{const _0x596752={'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'+_0x11b421['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x17e249(_0x11b421)+'\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':_0x3de42c,'options':_0x7459f2['converterOptions']},_0x2cd9e1={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x253522?{'Authorization':_0x253522['value']}:null,'x-cs-app-id':_0x7459f2['appID']||'cke5'},'body':JSON['stringify'](_0x596752)};return window['fetch'](_0x547300,_0x2cd9e1)['then'](_0x58301f=>{if(0xc8!==_0x58301f['status'])throw _0x58301f;return _0x58301f['blob']();})['then'](_0x243612=>{const _0x318010='function'==typeof _0x7459f2['fileName']?_0x7459f2['fileName']():_0x7459f2['fileName'];this['_downloadFile'](_0x243612,_0x318010||'document.pdf');});})['catch'](_0x5773e9=>{throw _0x11b421['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x5773e9;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x247a2b,_0x341170){const _0x104207=document['createElement']('a');_0x104207['href']=window['URL']['createObjectURL'](_0x247a2b),_0x104207['download']=_0x341170,_0x104207['click'](),_0x104207['remove']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3061fb}from'ckeditor5/src/core.js';import{ButtonView as _0x2e0849,MenuBarMenuListItemButtonView as _0x23cc73,SpinnerView as _0x253575}from'ckeditor5/src/ui.js';import _0x25618c from'../theme/icons/exportpdf.svg';export default class i extends _0x3061fb{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x7863fa=this['editor'];_0x7863fa['ui']['componentFactory']['add']('exportPdf',()=>{const _0x1ce5e8=this['_createButton'](_0x2e0849),_0x18f183=_0x7863fa['commands']['get']('exportPdf');return _0x1ce5e8['set']({'tooltip':!0x0}),_0x1ce5e8['bind']('isOn')['to'](_0x18f183,'isBusy'),_0x1ce5e8;}),_0x7863fa['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x23cc73));}['_createButton'](_0x137fa9){const _0x44650d=this['editor'],_0x475443=_0x44650d['config']['get']('exportPdf')||{},t=_0x44650d['locale']['t'],_0x50022e=_0x44650d['commands']['get']('exportPdf'),_0x29b0eb=new _0x137fa9(_0x44650d['locale']),_0x4cf9c8=new _0x253575();return _0x29b0eb['children']['add'](_0x4cf9c8),_0x4cf9c8['bind']('isVisible')['to'](_0x50022e,'isBusy'),_0x29b0eb['iconView']['bind']('isVisible')['to'](_0x50022e,'isBusy',_0x5532b8=>!_0x5532b8),_0x29b0eb['set']({'label':t('Export\x20to\x20PDF'),'icon':_0x25618c}),_0x29b0eb['bind']('isEnabled')['to'](_0x50022e,'isEnabled'),this['listenTo'](_0x29b0eb,'execute',()=>{_0x44650d['execute']('exportPdf',_0x475443),_0x44650d['editing']['view']['focus']();}),_0x29b0eb;}}
23
+ import{Plugin as _0x2e4daa}from'ckeditor5/src/core.js';import{ButtonView as _0x38a790,MenuBarMenuListItemButtonView as _0x5565fb,SpinnerView as _0x564462}from'ckeditor5/src/ui.js';import _0x218d0d from'../theme/icons/exportpdf.svg';export default class i extends _0x2e4daa{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x57d6bb=this['editor'];_0x57d6bb['ui']['componentFactory']['add']('exportPdf',()=>{const _0x659490=this['_createButton'](_0x38a790),_0x54f956=_0x57d6bb['commands']['get']('exportPdf');return _0x659490['set']({'tooltip':!0x0}),_0x659490['bind']('isOn')['to'](_0x54f956,'isBusy'),_0x659490;}),_0x57d6bb['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x5565fb));}['_createButton'](_0x55beda){const _0x39dae1=this['editor'],_0x282b8e=_0x39dae1['config']['get']('exportPdf')||{},t=_0x39dae1['locale']['t'],_0x584430=_0x39dae1['commands']['get']('exportPdf'),_0x5d0c37=new _0x55beda(_0x39dae1['locale']),_0x5b9776=new _0x564462();return _0x5d0c37['children']['add'](_0x5b9776),_0x5b9776['bind']('isVisible')['to'](_0x584430,'isBusy'),_0x5d0c37['iconView']['bind']('isVisible')['to'](_0x584430,'isBusy',_0x6f2015=>!_0x6f2015),_0x5d0c37['set']({'label':t('Export\x20to\x20PDF'),'icon':_0x218d0d}),_0x5d0c37['bind']('isEnabled')['to'](_0x584430,'isEnabled'),this['listenTo'](_0x5d0c37,'execute',()=>{_0x39dae1['execute']('exportPdf',_0x282b8e),_0x39dae1['editing']['view']['focus']();}),_0x5d0c37;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x41e8(){var _0x4afeb9=['1171497WpXSHq','248117Psbjjs','323169VVrYYf','2vIojIV','1349226jtNMXa','2823021sQjbHf','860916XSuNyr','8IEEaYy','777370PetyXk'];_0x41e8=function(){return _0x4afeb9;};return _0x41e8();}(function(_0x21356c,_0x46a510){var _0x2123ef=_0x92b1,_0x39353f=_0x21356c();while(!![]){try{var _0x99df4a=parseInt(_0x2123ef(0xd7))/0x1+parseInt(_0x2123ef(0xd9))/0x2*(parseInt(_0x2123ef(0xdf))/0x3)+-parseInt(_0x2123ef(0xdc))/0x4+-parseInt(_0x2123ef(0xde))/0x5+parseInt(_0x2123ef(0xda))/0x6+parseInt(_0x2123ef(0xd8))/0x7+parseInt(_0x2123ef(0xdd))/0x8*(-parseInt(_0x2123ef(0xdb))/0x9);if(_0x99df4a===_0x46a510)break;else _0x39353f['push'](_0x39353f['shift']());}catch(_0x690142){_0x39353f['push'](_0x39353f['shift']());}}}(_0x41e8,0x37002));export{default as ExportPdf}from'./exportpdf.js';function _0x92b1(_0x522d00,_0x2bce34){var _0x41e89a=_0x41e8();return _0x92b1=function(_0x92b14b,_0x19312f){_0x92b14b=_0x92b14b-0xd7;var _0x8f0798=_0x41e89a[_0x92b14b];return _0x8f0798;},_0x92b1(_0x522d00,_0x2bce34);}import'./augmentation.js';
23
+ function _0x3537(_0x54b0ed,_0x54f885){var _0x1b1ef4=_0x1b1e();return _0x3537=function(_0x35379f,_0x1fa547){_0x35379f=_0x35379f-0xa4;var _0x24519b=_0x1b1ef4[_0x35379f];return _0x24519b;},_0x3537(_0x54b0ed,_0x54f885);}function _0x1b1e(){var _0x3a04b4=['14536071BimkwH','53381416mvxWpE','10XvCyCy','2mGAUEj','4212342FiGneV','28cxHGfG','12100207MIVAxW','8QasIeo','933403DHWNDw','1999880wZcWNJ','335031spBdRQ'];_0x1b1e=function(){return _0x3a04b4;};return _0x1b1e();}(function(_0x478986,_0xf4710e){var _0x3f29d8=_0x3537,_0x39488e=_0x478986();while(!![]){try{var _0x2662af=-parseInt(_0x3f29d8(0xa9))/0x1*(parseInt(_0x3f29d8(0xa4))/0x2)+-parseInt(_0x3f29d8(0xab))/0x3*(parseInt(_0x3f29d8(0xa6))/0x4)+parseInt(_0x3f29d8(0xae))/0x5*(parseInt(_0x3f29d8(0xa5))/0x6)+parseInt(_0x3f29d8(0xa7))/0x7*(-parseInt(_0x3f29d8(0xa8))/0x8)+-parseInt(_0x3f29d8(0xac))/0x9+-parseInt(_0x3f29d8(0xaa))/0xa+parseInt(_0x3f29d8(0xad))/0xb;if(_0x2662af===_0xf4710e)break;else _0x39488e['push'](_0x39488e['shift']());}catch(_0x3948ac){_0x39488e['push'](_0x39488e['shift']());}}}(_0x1b1e,0xf3ae8));export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x4392ac,_0x280745){const _0x143762=_0x3086,_0x39bdbc=_0x4392ac();while(!![]){try{const _0x6e56ac=-parseInt(_0x143762(0x1e9))/0x1*(-parseInt(_0x143762(0x1e3))/0x2)+parseInt(_0x143762(0x1e1))/0x3*(parseInt(_0x143762(0x1f5))/0x4)+parseInt(_0x143762(0x1f1))/0x5+-parseInt(_0x143762(0x1d7))/0x6+parseInt(_0x143762(0x1dd))/0x7*(parseInt(_0x143762(0x1df))/0x8)+-parseInt(_0x143762(0x1e7))/0x9+-parseInt(_0x143762(0x1f3))/0xa;if(_0x6e56ac===_0x280745)break;else _0x39bdbc['push'](_0x39bdbc['shift']());}catch(_0x3094de){_0x39bdbc['push'](_0x39bdbc['shift']());}}}(_0x3385,0x48451));export function getStyles(_0x17ca48){const _0x20d6dc=_0x3086;if(!_0x17ca48)return new Promise(_0x10fde3=>_0x10fde3(''));const _0x3274fd=[];for(const _0xf02a1b of _0x17ca48)_0x20d6dc(0x1e5)!==_0xf02a1b?_0x3274fd[_0x20d6dc(0x1de)](window[_0x20d6dc(0x1db)](_0xf02a1b)[_0x20d6dc(0x1e4)](_0x34223d=>_0x34223d[_0x20d6dc(0x1ec)]())):_0x3274fd[_0x20d6dc(0x1de)](a());return Promise[_0x20d6dc(0x1e6)](_0x3274fd)[_0x20d6dc(0x1e4)](_0x519121=>_0x519121[_0x20d6dc(0x1d8)]('\x20')[_0x20d6dc(0x1f0)]());}function a(){const _0x4f09db=_0x3086,_0xd42693=[],_0x177d00=[];for(const _0x479cc9 of Array[_0x4f09db(0x1d9)](document[_0x4f09db(0x1e2)])){if(_0x479cc9[_0x4f09db(0x1e0)][_0x4f09db(0x1f4)](_0x4f09db(0x1dc))){for(const _0x2213b6 of Array[_0x4f09db(0x1d9)](_0x479cc9[_0x4f09db(0x1ef)]))-0x1!==_0x2213b6[_0x4f09db(0x1e8)][_0x4f09db(0x1f2)](_0x4f09db(0x1ea))?_0xd42693[_0x4f09db(0x1de)](_0x2213b6[_0x4f09db(0x1e8)]):-0x1!==_0x2213b6[_0x4f09db(0x1e8)][_0x4f09db(0x1f2)](_0x4f09db(0x1da))&&_0x177d00[_0x4f09db(0x1de)](_0x2213b6[_0x4f09db(0x1e8)]);}}return _0xd42693[_0x4f09db(0x1ee)]||console[_0x4f09db(0x1ed)](_0x4f09db(0x1eb)),[..._0x177d00,..._0xd42693][_0x4f09db(0x1d8)]('\x20')[_0x4f09db(0x1f0)]();}function _0x3086(_0x1303ef,_0x2bcafd){const _0x3385da=_0x3385();return _0x3086=function(_0x3086af,_0x4c0633){_0x3086af=_0x3086af-0x1d7;let _0x100729=_0x3385da[_0x3086af];return _0x100729;},_0x3086(_0x1303ef,_0x2bcafd);}function _0x3385(){const _0x149706=['trim','2594505olsscO','indexOf','7117060ZqnfdV','hasAttribute','119212gblWTX','396516WpcAKS','join','from',':root','fetch','data-cke','294doArJg','push','5776iKeZxz','ownerNode','27PTMAGm','styleSheets','63592BhqTau','then','EDITOR_STYLES','all','2271411RiRwui','cssText','16jRXldw','.ck-content','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.','text','warn','length','cssRules'];_0x3385=function(){return _0x149706;};return _0x3385();}
23
+ (function(_0xb4278e,_0x5e5fea){const _0x3633b3=_0x424b,_0x2bee91=_0xb4278e();while(!![]){try{const _0x47ec3b=-parseInt(_0x3633b3(0x186))/0x1*(-parseInt(_0x3633b3(0x16f))/0x2)+parseInt(_0x3633b3(0x170))/0x3+parseInt(_0x3633b3(0x17d))/0x4+parseInt(_0x3633b3(0x189))/0x5+parseInt(_0x3633b3(0x174))/0x6+parseInt(_0x3633b3(0x187))/0x7+-parseInt(_0x3633b3(0x177))/0x8*(parseInt(_0x3633b3(0x185))/0x9);if(_0x47ec3b===_0x5e5fea)break;else _0x2bee91['push'](_0x2bee91['shift']());}catch(_0x45ff58){_0x2bee91['push'](_0x2bee91['shift']());}}}(_0x12cd,0x87b31));export function getStyles(_0x544365){const _0x25af7a=_0x424b;if(!_0x544365)return new Promise(_0x48c23b=>_0x48c23b(''));const _0x148876=[];for(const _0x429e8b of _0x544365)_0x25af7a(0x17a)!==_0x429e8b?_0x148876[_0x25af7a(0x16c)](window[_0x25af7a(0x17c)](_0x429e8b)[_0x25af7a(0x188)](_0x3d9dac=>_0x3d9dac[_0x25af7a(0x175)]())):_0x148876[_0x25af7a(0x16c)](a());return Promise[_0x25af7a(0x176)](_0x148876)[_0x25af7a(0x188)](_0x22b925=>_0x22b925[_0x25af7a(0x172)]('\x20')[_0x25af7a(0x16d)]());}function _0x12cd(){const _0x3f80bc=['2uuVeHx','1877064TpRXhW','then','3028300dDVEqp','push','trim','indexOf','445958EyVuRn','2479599opKHGX','length','join','warn','4121178FDXIkq','text','all','8YEoSjF','.ck-content','cssRules','EDITOR_STYLES','data-cke','fetch','1174032NnWSfU','styleSheets','hasAttribute','cssText','from',':root','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.','23137641XSCLGT'];_0x12cd=function(){return _0x3f80bc;};return _0x12cd();}function _0x424b(_0x115446,_0x5be42c){const _0x12cdf4=_0x12cd();return _0x424b=function(_0x424bcf,_0x3b3321){_0x424bcf=_0x424bcf-0x16c;let _0x185723=_0x12cdf4[_0x424bcf];return _0x185723;},_0x424b(_0x115446,_0x5be42c);}function a(){const _0x192ade=_0x424b,_0x261694=[],_0x1744dc=[];for(const _0x2520b9 of Array[_0x192ade(0x181)](document[_0x192ade(0x17e)])){if(_0x2520b9[_0x192ade(0x183)][_0x192ade(0x17f)](_0x192ade(0x17b))){for(const _0xbd5ad7 of Array[_0x192ade(0x181)](_0x2520b9[_0x192ade(0x179)]))-0x1!==_0xbd5ad7[_0x192ade(0x180)][_0x192ade(0x16e)](_0x192ade(0x178))?_0x261694[_0x192ade(0x16c)](_0xbd5ad7[_0x192ade(0x180)]):-0x1!==_0xbd5ad7[_0x192ade(0x180)][_0x192ade(0x16e)](_0x192ade(0x182))&&_0x1744dc[_0x192ade(0x16c)](_0xbd5ad7[_0x192ade(0x180)]);}}return _0x261694[_0x192ade(0x171)]||console[_0x192ade(0x173)](_0x192ade(0x184)),[..._0x1744dc,..._0x261694][_0x192ade(0x172)]('\x20')[_0x192ade(0x16d)]();}