@ckeditor/ckeditor5-export-inline-styles 0.0.0-internal-20251210.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ Changelog
2
+ =========
3
+
4
+ All changes in the package are documented in https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md.
package/LICENSE.md ADDED
@@ -0,0 +1,22 @@
1
+ Software License Agreement
2
+ ==========================
3
+
4
+ **CKEditor&nbsp;5 Export with inline styles feature** (https://ckeditor.com/ckeditor-5/)<br>
5
+ Copyright (c) 2003–2025, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
6
+
7
+ CKEditor&nbsp;5 Export with inline styles feature is licensed under a commercial license and is protected by copyright law.
8
+ For more information, see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing).
9
+
10
+ Sources of Intellectual Property Included in CKEditor&nbsp;5
11
+ ------------------------------------------------------------
12
+
13
+ Where not otherwise indicated, all CKEditor&nbsp;5 content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
14
+
15
+ The following libraries are included in CKEditor&nbsp;5 under the [MIT license](https://opensource.org/licenses/MIT):
16
+
17
+ * specificity - Copyright (c) 2016 Keegan Street and others.
18
+
19
+ Trademarks
20
+ ----------
21
+
22
+ **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
package/README.md ADDED
@@ -0,0 +1,47 @@
1
+ CKEditor&nbsp;5 Export with Inline Styles
2
+ =====================================
3
+
4
+ [![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-export-inline-styles.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-export-inline-styles)
5
+
6
+ This package contains an Export with Inline Styles feature for CKEditor&nbsp;5. It allows you to export editor content with all formatting preserved as inline styles, making it easier to use in environments where external style sheets are unavailable.
7
+
8
+ When enabled, this feature adds utility functions to the editor instance that allow the export of the editor content with inline styles. You can use the exported content in environments where external style sheets are unavailable, such as email clients, or when you want to preserve the formatting after pasting it into a different editor.
9
+
10
+ This is a premium feature. Sign up for a [free non-commitment 14-day trial](https://portal.ckeditor.com/checkout?plan=free), or see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing) for more information.
11
+
12
+ ## Installation
13
+
14
+ This plugin is part of the `ckeditor5-premium-features` package. Install the whole package to use it.
15
+
16
+ ```bash
17
+ npm install ckeditor5-premium-features
18
+ ```
19
+
20
+ ## Create free account
21
+
22
+ If you want to check full CKEditor&nbsp;5 capabilities, sign up for a [free non-commitment 14-day trial](https://portal.ckeditor.com/checkout?plan=free).
23
+
24
+ ## Demo
25
+
26
+ Check out the [demo in the Export with inline styles feature](https://ckeditor.com/docs/ckeditor5/latest/features/html/export-with-inline-styles.html) guide.
27
+
28
+ ## Documentation
29
+
30
+ See the [`@ckeditor/ckeditor5-export-inline-styles` package](https://ckeditor.com/docs/ckeditor5/latest/api/export-with-inline-styles.html) page in [CKEditor&nbsp;5 documentation](https://ckeditor.com/docs/ckeditor5/latest/) as well as the [Export with Inline Styles](https://ckeditor.com/docs/ckeditor5/latest/features/html/export-with-inline-styles.html) feature guide.
31
+
32
+ ## Getting support
33
+
34
+ CKEditor&nbsp;5 Export with Inline Styles feature comes with outstanding support from a dedicated team of customer care specialists, QA engineers and CKEditor&nbsp;5 developers. The team will gladly assist you in all aspects from setting up your account to integrating CKEditor&nbsp;5 Export with Inline Styles feature with your application.
35
+
36
+ As a licensed CKEditor&nbsp;5 Export with Inline Styles feature user you can report bugs and request features directly through the CKEditor Ecosystem customer dashboard.
37
+
38
+ ## License
39
+
40
+ **CKEditor&nbsp;5 Export with Inline Styles feature** (https://ckeditor.com/ckeditor-5/)<br>
41
+ Copyright (c) 2003–2025, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
42
+
43
+ CKEditor&nbsp;5 Export with Inline Styles feature is licensed under a commercial license and is protected by copyright law. For more information, see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing).
44
+
45
+ ### Trademarks
46
+
47
+ **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md.
4
+ */(()=>{var t={237:t=>{"use strict";t.exports=CKEditor5.dll},584:(t,n,e)=>{t.exports=e(237)("./src/utils.js")},782:(t,n,e)=>{t.exports=e(237)("./src/core.js")},783:(t,n,e)=>{t.exports=e(237)("./src/engine.js")}},n={};function e(r){var s=n[r];if(void 0!==s)return s.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";e.r(r),e.d(r,{ExportInlineStyles:()=>R,ExportInlineStylesCommand:()=>A,ExportInlineStylesEditing:()=>O,dropImportantStyleSuffix:()=>l});var t=e(782),n=e(584),s=function(t){var n,e,r=t,s={a:0,b:0,c:0},i=[];return n=function(n,e){var o,c,a,u,l,f;if(n.test(r))for(c=0,a=(o=r.match(n)).length;c<a;c+=1)s[e]+=1,u=o[c],l=r.indexOf(u),f=u.length,i.push({selector:t.substr(l,f),type:e,index:l,length:f}),r=r.replace(u,Array(f+1).join(" "))},(e=function(t){var n,e,s,i;if(t.test(r))for(e=0,s=(n=r.match(t)).length;e<s;e+=1)i=n[e],r=r.replace(i,Array(i.length+1).join("A"))})(/\\[0-9A-Fa-f]{6}\s?/g),e(/\\[0-9A-Fa-f]{1,5}\s/g),e(/\\./g),function(){var t,n,e,s,i=/{[^]*/gm;if(i.test(r))for(n=0,e=(t=r.match(i)).length;n<e;n+=1)s=t[n],r=r.replace(s,Array(s.length+1).join(" "))}(),n(/(\[[^\]]+\])/g,"b"),n(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),n(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),n(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),n(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),n(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),r=(r=(r=(r=(r=(r=r.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),n(/([^\s\+>~\.\[:]+)/g,"c"),i.sort(function(t,n){return t.index-n.index}),{selector:t,specificity:"0,"+s.a.toString()+","+s.b.toString()+","+s.c.toString(),specificityArray:[0,s.a,s.b,s.c],parts:i}},i=e(783);function o(){const t=["653364UxnbTm","202366xDzlaZ","push","6739776QYVaOh","376prqQwr","3817152KShwuO","slice","1339165MAaMXE","filter","replace","6237072XNlqDI","194432aOAkJu","16CiUveh","endsWith","length","trim"];return(o=function(){return t})()}function c(t){const n=u,e=[];let r="",s=0;for(;s<t[n(471)];){const i=t[s];if("("===i){const e=a(t,s+1);if(-1===e)return[];r+=t[n(479)](s,e+1),s=e+1}else","!==i||r[n(470)]("\\")?(r+=i,s++):(e[n(475)](r[n(472)]()),r="",s++)}return r[n(472)]()&&e[n(475)](r[n(472)]()),e[n(481)](Boolean)}function a(t,n){const e=u;let r=1;for(let s=n;s<t[e(471)];s++){const n=t[s];if("("===n)r++;else if(")"===n&&(r--,0===r))return s}return-1}function u(t,n){const e=o();return(u=function(t,n){return e[t-=466]})(t,n)}function l(t){const n=u;return t[n(466)](/!\s*important/i,"")[n(472)]()}function f(t){const n=y,e=new Map;for(const{stylesMap:r,flatSelector:s}of t){if(n(282)!==s)continue;const t=h(e[n(286)][n(271)](e),r);for(const[r,s]of t)e[n(288)](r,s)}return e}function p(){const t=["substring","3575128isiwCV","length","9595899iOsxDq","6779lMsGnc","6ygFlJn","422yECvAj","var(","1883483aUYILc","getStylesEntries",":root","4joKIaN","slice","2465943OfWkHQ","get","remove","set","has","4631540GbIMnt","startsWith","5125626vwZrCm","90NMHHAB","indexOf","bind"];return(p=function(){return t})()}function h(t,n){const e=y,r=new Map,s=n=>r[e(289)](n)?r[e(286)](n):t(n);for(const[t,i]of n[e(281)]())if(i&&t[e(267)]("--")){const o=d(s,i);r[e(288)](t,o),n[e(287)](t)}for(const[t,r]of n[e(281)]())if(r){const i=d(s,r);n[e(288)](t,i)}return r}function y(t,n){const e=p();return(y=function(t,n){return e[t-=266]})(t,n)}function d(t,n){return function(t,n){const e=y;let r="",s=0;for(;s<t[e(274)];){const i=t[e(270)](e(279),s);if(-1===i){r+=t[e(284)](s);break}r+=t[e(284)](s,i);const o=i+4,c=a(t,o);r+=n(t[e(272)](o,c)),s=c+1}return r}(n,n=>{const e=y,[r,s]=c(n),i=t(r);return void 0!==i?i:s?d(t,s):e(279)+r+")"})}function I(t,n){const e=m();return(I=function(t,n){return e[t-=256]})(t,n)}async function w(t){const e=I,r=[await(0,n.collectStylesheets)(t[e(283)]),t[e(269)]][e(282)](t=>t&&t[e(257)])[e(258)]("\n"),o=await async function(t,n){const r=e,o=new CSSStyleSheet;return await o[r(277)](n),g(Array[r(266)](o[r(262)])[r(282)](t=>t instanceof CSSStyleRule))[r(273)](({selectorText:n,contentCssText:e})=>{const o=r,a=c(n),u=new i.StylesMap(t)[o(281)](e);return a[o(280)](t=>{const n=o,e=function(t){const n=I,e=n(264);let r=t,s=0;for(let t=0;t<100;t++){const t=r[n(278)](e,s);if(-1===t)break;let i=0;for(let n=0;n<t;n++)"("===r[n]?i++:")"===r[n]&&i--;if(i>0){s=t+e[n(257)];continue}let o=-1;for(let s=t+e[n(257)],i=1;s<r[n(257)];s++)if("("===r[s]?i++:")"===r[s]&&i--,!i){o=s;break}-1!==o?(r=r[n(276)](0,t)+r[n(276)](o+1),s=t):s=t+e[n(257)]}return r[n(277)](/\s+/g," ")[n(263)]()}(t),r=e?function(t){var n,e,r,i,o=[];for(r=0,i=(n=t.split(",")).length;r<i;r+=1)(e=n[r]).length>0&&o.push(s(e));return o}(e)[0][n(270)]:[0,0,0,0];return{stylesMap:u,flatSelector:t,specificity:r}})})[r(268)]((t,n)=>function(t,n){var e,r,i;if("string"==typeof t){if(-1!==t.indexOf(","))throw"Invalid CSS selector";e=s(t).specificityArray}else{if(!Array.isArray(t))throw"Invalid CSS selector or specificity array";if(4!==t.filter(function(t){return"number"==typeof t}).length)throw"Invalid specificity array";e=t}if("string"==typeof n){if(-1!==n.indexOf(","))throw"Invalid CSS selector";r=s(n).specificityArray}else{if(!Array.isArray(n))throw"Invalid CSS selector or specificity array";if(4!==n.filter(function(t){return"number"==typeof t}).length)throw"Invalid specificity array";r=n}for(i=0;i<4;i+=1){if(e[i]<r[i])return-1;if(e[i]>r[i])return 1}return 0}(t[r(260)],n[r(260)]))}(t[e(279)],r);return{parsedCssRules:o,rootCssVariables:f(o)}}function g(t,n=""){const e=I;return t[e(273)](t=>{const r=e,{selectorText:s,cssText:i,cssRules:o}=t;if(!s)return[];const c=s[r(277)](/&/g,n);let a=i[r(277)](s,"")[r(263)]()[r(277)](/^{|}$/g,"");if(!o||!o[r(257)])return[{selectorText:c,contentCssText:a}];for(const t of o)a=a[r(277)](t[r(267)],"")[r(263)]();return[{selectorText:c,contentCssText:a},...g(Array[r(266)](o),c)]})}function m(){const t=["2147288jxFMjg","specificity","2103864bDZesN","cssRules","trim",":where(","5sylmqa","from","cssText","sort","inlineCss","specificityArray","4788128KAAGab","479019IJYYqt","flatMap","152235HJPbVD","260802jqxIFs","slice","replace","indexOf","stylesProcessor","map","setTo","filter","stylesheets","3494274zwmLIs","length","join"];return(m=function(){return t})()}function S(t,n){const e=b();return(S=function(t,n){return e[t-=403]})(t,n)}function b(){const t=["13617896DMMmBy","getAttribute","5509825QyIlyB","682741CGuYrv","parsedCssRules","4471956LkshfB","getStylesEntries","element","1940994tJbSlW","3675696QCqYYH","string","28mOQnVd","stylesMap","map","set","filter","style","setTo","matches","329470WSMqgM","stylesProcessor","fallbackCSSVariablesLookup","flatSelector"];return(b=function(){return t})()}function C(t,n){const e=S,r=new i.StylesMap(t);for(const s of n){let n=null;if(n=e(423)==typeof s?new i.StylesMap(t)[e(407)](s):s,n)for(const[t,s]of n[e(419)]())r[e(404)](t,s)}return r}!function(t){const n=u,e=t();for(;;)try{if(866020===-parseInt(n(474))/1+-parseInt(n(473))/2+-parseInt(n(478))/3+parseInt(n(469))/4*(parseInt(n(480))/5)+parseInt(n(467))/6+-parseInt(n(468))/7*(-parseInt(n(477))/8)+-parseInt(n(476))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(o),function(t){const n=y,e=t();for(;;)try{if(767135===-parseInt(n(276))/1*(-parseInt(n(278))/2)+parseInt(n(285))/3*(parseInt(n(283))/4)+parseInt(n(266))/5+parseInt(n(277))/6*(parseInt(n(280))/7)+parseInt(n(273))/8+parseInt(n(275))/9+-parseInt(n(269))/10*(parseInt(n(268))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(p),function(t){const n=I,e=t();for(;;)try{if(408475===parseInt(n(274))/1+parseInt(n(275))/2+-parseInt(n(272))/3+parseInt(n(259))/4+-parseInt(n(265))/5*(parseInt(n(261))/6)+-parseInt(n(256))/7+parseInt(n(271))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(m),function(t){const n=S,e=t();for(;;)try{if(747446===-parseInt(n(416))/1+parseInt(n(409))/2+parseInt(n(418))/3+-parseInt(n(422))/4+parseInt(n(415))/5+parseInt(n(421))/6*(parseInt(n(424))/7)+-parseInt(n(413))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(b);const x=v;function v(t,n){const e=L();return(v=function(t,n){return e[t-=321]})(t,n)}!function(t){const n=v,e=t();for(;;)try{if(150176===parseInt(n(367))/1*(-parseInt(n(364))/2)+parseInt(n(342))/3+-parseInt(n(337))/4+-parseInt(n(376))/5+-parseInt(n(373))/6+-parseInt(n(360))/7+parseInt(n(323))/8*(parseInt(n(346))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(L);class A extends t.Command{[x(362)];constructor(t){const n=x;super(t),this[n(355)](n(327),!1),this[n(362)]=this[n(338)][n(330)][n(324)],(0,i.addMarginStylesRules)(this[n(362)]),(0,i.addPaddingStylesRules)(this[n(362)]),this[n(375)]=!1}[x(370)](){const t=x;this[t(356)]=!this[t(327)],this[t(343)]=this[t(327)]?t(332):void 0}async[x(348)](t){const e=x,r=this[e(338)][e(351)][e(353)](e(339)),{contentLanguageDirection:s}=this[e(338)][e(377)],{rootName:i=e(347),dataControllerDowncastOptions:o={},transformations:c=r[e(345)]||[]}=t||{};this[e(327)]=!0,this[e(370)]();const a=this[e(379)](i,o),u=(0,n.createElement)(a[e(334)],e(369),{dir:s,class:e(322)},[a]);return this[e(329)](c,u)[e(365)](()=>{const t=e,n=function(t){const n=v,e=t[n(334)][n(352)]();for(;t[n(374)];)e[n(363)](t[n(374)]);return e}(u),r=u[t(336)](t(354));if(r)for(const e of n[t(333)]){const n=e[t(336)](t(354)),s=C(this[t(362)],[r,n]);e[t(372)](t(354),E(s))}return this[t(338)][t(330)][t(371)][t(331)][t(321)](n)})[e(328)](()=>{const t=e;this[t(327)]=!1,this[t(370)]()})}[x(379)](t,n){const e=x,{data:r,model:s}=this[e(338)],i=s[e(325)][e(366)](t),o=r[e(378)](i,n);return r[e(371)][e(361)][e(368)](o)}async[x(329)](t,n){const e=x,{stylesheets:r,inlineCss:s,stripCssClasses:i}=this[e(338)][e(351)][e(353)](e(339)),{parsedCssRules:o,rootCssVariables:c}=await w({stylesheets:r||[e(344)],stylesProcessor:this[e(362)],inlineCss:s});this[e(359)]({transformations:t,parsedCssRules:o,element:n,stripCssClasses:i,parentCSSVariablesLookup:c[e(353)][e(335)](c)})}[x(359)]({element:t,parsedCssRules:n,parentCSSVariablesLookup:e,stripCssClasses:r,transformations:s}){const i=x,{stylesMap:o,localCSSVariables:c}=function(t){const n=S,e=t[n(420)][n(414)](n(406))||"",r=t[n(417)][n(405)](e=>t[n(420)][n(408)](e[n(412)]))[n(403)](t=>t[n(425)]),s=C(t[n(410)],[...r,e]);return{localCSSVariables:h(t[n(411)],s),stylesMap:s}}({stylesProcessor:this[i(362)],fallbackCSSVariablesLookup:e,parsedCssRules:n,element:t});for(const n of s)n(t,o);o[i(341)]?t[i(372)](i(354),E(o)):t[i(340)](i(354));const a=t=>c[i(350)](t)?c[i(353)](t):e(t);for(const e of t[i(333)])e instanceof HTMLElement&&this[i(359)]({element:e,parentCSSVariablesLookup:a,parsedCssRules:n,stripCssClasses:r,transformations:s});r&&t[i(340)](i(349))}}function L(){const t=["has","config","createDocumentFragment","get","style","set","isEnabled","join","map","_processElementTree","941052nwVWOL","domConverter","_stylesProcessor","appendChild","2362alhseW","then","getRoot","100whwrZD","viewToDom","div","refresh","htmlProcessor","setAttribute","964464kaqmGr","firstChild","affectsData","72620fmBzKM","locale","toView","_getRootDataHTMLFragment","getHtml","ck-content","464GWopDY","stylesProcessor","document","getStylesEntries","isBusy","finally","_collectAndApplyStyles","data","htmlWriter","pending","children","ownerDocument","bind","getAttribute","222356ymTgKu","editor","exportInlineStyles","removeAttribute","size","143481FHaZrh","value","EDITOR_STYLES","transformations","90891YjscDW","main","execute","class"];return(L=function(){return t})()}function E(t){const n=x;return t[n(326)]()[n(358)](t=>t[n(357)](":"))[n(357)](";")+";"}const M=K;function k(){const t=["5465180MUjuxC","add","isOfficialPlugin","join","commands","4924005KNqkOn","11OuyKsm","3625086DMflCI","1650AKSdfq","editor","afterInit","map","ExportInlineStylesEditing","pluginName","href","5meFNAr","isPremiumPlugin","1122076uNeihE","stop","24cxoNzC","31414740RKVBNM","exportInlineStyles","fromCharCode","1906ldHAya","2385738SvCUSf","config","init","define"];return(k=function(){return t})()}function K(t,n){const e=k();return(K=function(t,n){return e[t-=462]})(t,n)}!function(t){const n=K,e=t();for(;;)try{if(826895===parseInt(n(479))/1*(-parseInt(n(466))/2)+-parseInt(n(476))/3+parseInt(n(488))/4+-parseInt(n(486))/5*(-parseInt(n(478))/6)+-parseInt(n(471))/7+parseInt(n(462))/8*(parseInt(n(467))/9)+-parseInt(n(463))/10*(-parseInt(n(477))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(k);class O extends t.Plugin{static get[M(484)](){return M(483)}static get[M(473)](){return!0}static get[M(487)](){return!0}[M(469)](){const t=M;this[t(480)][t(468)][t(470)](t(464),{}),this[t(480)][t(475)][t(472)](t(464),new A(this[t(480)]))}[M(481)](){!async function(t){const e=d([68,85,65,54,49,48,101,109,76,52,81,50,107,106,86,73,118,71,77,72,103,87,84,51,117,121,83,110,122,80,69,119,55,57,111,90,74,105,67,114,98,115,116,99,88,75,113,56,53,78,104,100,102,97,70,82,120,66,108,112,79,89]),r=window[d([68,97,116,101])][d([110,111,119])](),s=t[d([101,100,105,116,111,114])],i=new(window[d([80,114,111,109,105,115,101])])(t=>{s[d([111,110,99,101])](d([114,101,97,100,121]),t)}),o={[d([107,116,121])]:d([69,67]),[d([117,115,101])]:d([115,105,103]),[d([99,114,118])]:d([80,45,50,53,54]),[d([120])]:d([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[d([121])]:d([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[d([97,108,103])]:d([69,83,50,53,54])},c=s[d([99,111,110,102,105,103])][d([103,101,116])](d([108,105,99,101,110,115,101,75,101,121]));function a(t){const n=[new(window[d([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),i[d([116,104,101,110])](()=>new(window[d([80,114,111,109,105,115,101])])(t=>{let n=0;s[d([109,111,100,101,108])][d([111,110])](d([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(e,r)=>{r[0][d([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&n++,504==n&&(t(),e[d([111,102,102])]())})}))];return window[d([80,114,111,109,105,115,101])][d([114,97,99,101])](n)[d([116,104,101,110])](()=>t)}function u(t){return t[d([115,116,97,114,116,115,87,105,116,104])](d([101,121]))?JSON[d([112,97,114,115,101])](l(t)):null}function l(t){return window[d([97,116,111,98])](t[d([114,101,112,108,97,99,101])](/-/g,d([43]))[d([114,101,112,108,97,99,101])](/_/g,d([47])))}function f(t){let n=5381;function e(t){for(let e=0;e<t[d([108,101,110,103,116,104])];e++){const r=t[d([99,104,97,114,67,111,100,101,65,116])](e);n=(n<<5)+n+r,n&=n}}return function t(n){Array[d([105,115,65,114,114,97,121])](n)?n[d([102,111,114,69,97,99,104])](t):n&&typeof n==d([111,98,106,101,99,116])?Object[d([101,110,116,114,105,101,115])](n)[d([115,111,114,116])]()[d([102,111,114,69,97,99,104])](([n,r])=>{e(n),t(r)}):e(window[d([83,116,114,105,110,103])](n))}(t),n>>>0}function p(t){return t[d([116,111,83,116,114,105,110,103])](16)[d([112,97,100,83,116,97,114,116])](8,d([48]))}function h(t){return t[d([115,112,108,105,116])]("")[d([114,101,118,101,114,115,101])]()[d([106,111,105,110])]("")}function y(){}function d(t){const n=K;return t[n(482)](t=>String[n(465)](t))[n(474)]("")}!function(t){const n=function(){const t=window[d([83,116,114,105,110,103])](window[d([112,101,114,102,111,114,109,97,110,99,101])][d([110,111,119])]())[d([114,101,112,108,97,99,101])](d([46]),"");let n=d([68]);for(let r=0;r<t[d([108,101,110,103,116,104])];r+=2){let s=window[d([112,97,114,115,101,73,110,116])](t[d([115,117,98,115,116,114,105,110,103])](r,r+2));s>=e[d([108,101,110,103,116,104])]&&(s-=e[d([108,101,110,103,116,104])]),n+=e[s]}return n}();s[n]=d([101,120,112,111,114,116,73,110,108,105,110,101,83,116,121,108,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=d([86,97,108,105,100])&&async function(){const t=K;await i;const n=s[t(475)][d([103,101,116])](d([101,120,112,111,114,116,73,110,108,105,110,101,83,116,121,108,101,115]));n&&n[d([111,110])](d([101,120,101,99,117,116,101]),n=>{n[t(489)]()},{priority:d([104,105,103,104,101,115,116])}),s[d([109,111,100,101,108])][d([99,104,97,110,103,101])]=y,s[d([109,111,100,101,108])][d([101,110,113,117,101,117,101,67,104,97,110,103,101])]=y,s[d([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](d([109,111,100,101,108]))}()}(await async function(){let t,e=null,y=null;try{return c==d([71,80,76])?d([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=c[d([115,112,108,105,116])](d([46]));return 3!=t[d([108,101,110,103,116,104])]?null:n(t[1]);function n(t){const n=u(t);return n&&e()?n:null;function e(){const t=n[d([106,116,105])],e=window[d([112,97,114,115,101,73,110,116])](t[d([115,117,98,115,116,114,105,110,103])](t[d([108,101,110,103,116,104])]-8),16),r={...n,[d([106,116,105])]:t[d([115,117,98,115,116,114,105,110,103])](0,t[d([108,101,110,103,116,104])]-8)};return delete r[d([118,99])],f(r)==e}}}(),t?(t[d([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(y=function(t,e){return new(window[d([80,114,111,109,105,115,101])])(a=>{if(o())return a(d([86,97,108,105,100]));c(),s[d([100,101,99,111,114,97,116,101])](d([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let u=!1;const l=(0,n.uid)();function y(t){return!!t&&(typeof t===d([111,98,106,101,99,116])||typeof t===d([102,117,110,99,116,105,111,110]))&&typeof t[d([116,104,101,110])]===d([102,117,110,99,116,105,111,110])&&typeof t[d([99,97,116,99,104])]===d([102,117,110,99,116,105,111,110])}function I(n){c(n)[d([116,104,101,110])](t=>t&&t[d([115,116,97,116,117,115])]==d([111,107])?p(f(l+e))!=t[d([118,101,114,105,102,105,99,97,116,105,111,110])]?d([85,115,97,103,101,76,105,109,105,116]):d([86,97,108,105,100]):d([85,115,97,103,101,76,105,109,105,116]))[d([116,104,101,110])](t=>(i(),t),()=>{const t=o();return null==t?(i(),d([86,97,108,105,100])):d(r-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[d([116,104,101,110])](a)[d([99,97,116,99,104])](()=>{a(d([85,115,97,103,101,76,105,109,105,116]))});const s=36e5;function i(){const n=d([108,108,99,116,45])+p(f(t)),e=h(p(window[d([77,97,116,104])][d([99,101,105,108])](r/s)));window[d([108,111,99,97,108,83,116,111,114,97,103,101])][d([115,101,116,73,116,101,109])](n,e)}function o(){const n=d([108,108,99,116,45])+p(f(t)),e=window[d([108,111,99,97,108,83,116,111,114,97,103,101])][d([103,101,116,73,116,101,109])](n);return e?window[d([112,97,114,115,101,73,110,116])](h(e),16)*s:null}function c(t){return new(window[d([80,114,111,109,105,115,101])])((n,e)=>{t[d([116,104,101,110])](n,e),window[d([115,101,116,84,105,109,101,111,117,116])](e,12e4)})}}s[d([111,110])](d([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(n,e)=>{if(e[0]!=t)return a(d([85,115,97,103,101,76,105,109,105,116]));e[1]={...e[1],[d([114,101,113,117,101,115,116,73,100])]:l}},{[d([112,114,105,111,114,105,116,121])]:d([104,105,103,104])}),s[d([111,110])](d([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{y(t[d([114,101,116,117,114,110])])&&(u=!0,I(t[d([114,101,116,117,114,110])]))},{[d([112,114,105,111,114,105,116,121])]:d([108,111,119])}),i[d([116,104,101,110])](()=>{u||a(d([85,115,97,103,101,76,105,109,105,116]))})});function o(){return s[d([101,100,105,116,105,110,103])][d([118,105,101,119])][d([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==d([97,117,116,111])}function c(){s[d([101,100,105,116,105,110,103])][d([118,105,101,119])][d([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=d([97,117,116,111])}}(t[d([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[d([106,116,105])])),await async function(){let t=!0;try{const r=c[d([115,112,108,105,116])](d([46])),[s,i,o]=r;return n(s),await e(s,i,o),t}catch{return!1}function n(n){const e=u(n);e&&e[d([97,108,103])]==d([69,83,50,53,54])||(t=!1)}async function e(n,e,r){const s=window[d([85,105,110,116,56,65,114,114,97,121])][d([102,114,111,109])](l(r),t=>t[d([99,104,97,114,67,111,100,101,65,116])](0)),i=(new(window[d([84,101,120,116,69,110,99,111,100,101,114])]))[d([101,110,99,111,100,101])](n+d([46])+e),c=window[d([99,114,121,112,116,111])][d([115,117,98,116,108,101])];if(!c)return;const a=await c[d([105,109,112,111,114,116,75,101,121])](d([106,119,107]),o,{[d([110,97,109,101])]:d([69,67,68,83,65]),[d([110,97,109,101,100,67,117,114,118,101])]:d([80,45,50,53,54])},!1,[d([118,101,114,105,102,121])]);await c[d([118,101,114,105,102,121])]({[d([110,97,109,101])]:d([69,67,68,83,65]),[d([104,97,115,104])]:{[d([110,97,109,101])]:d([83,72,65,45,50,53,54])}},a,s,i)||(t=!1)}}()?function(){const n=t[d([102,101,97,116,117,114,101,115])];return!(!n||!n[d([105,110,99,108,117,100,101,115])](d([42]))&&!n[d([105,110,99,108,117,100,101,115])](d([69,73,83])))}()?function(){const n=[d([101,118,97,108,117,97,116,105,111,110]),d([116,114,105,97,108])][d([105,110,99,108,117,100,101,115])](t[d([108,105,99,101,110,115,101,84,121,112,101])])?r/1e3:1765324800;return t[d([101,120,112])]<n}()?d([69,120,112,105,114,101,100]):function(){const n=K,e=t[d([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[d([108,101,110,103,116,104])])return!0;const{hostname:r}=new URL(window[d([108,111,99,97,116,105,111,110])][n(485)]);if(e[d([105,110,99,108,117,100,101,115])](r))return!0;const s=r[d([115,112,108,105,116])](d([46]));return e[d([102,105,108,116,101,114])](t=>t[d([105,110,99,108,117,100,101,115])](d([42])))[d([109,97,112])](t=>t[d([115,112,108,105,116])](d([46])))[d([102,105,108,116,101,114])](t=>t[d([108,101,110,103,116,104])]<=s[d([108,101,110,103,116,104])])[d([109,97,112])](t=>Array(s[d([108,101,110,103,116,104])]-t[d([108,101,110,103,116,104])])[d([102,105,108,108])](t[0]===d([42])?d([42]):"")[d([99,111,110,99,97,116])](t))[d([115,111,109,101])](t=>s[d([101,118,101,114,121])]((n,e)=>t[e]===n||t[e]===d([42])))}()?(t[d([108,105,99,101,110,115,101,84,121,112,101])]==d([101,118,97,108,117,97,116,105,111,110])&&(e=a(d([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[d([108,105,99,101,110,115,101,84,121,112,101])]==d([116,114,105,97,108])&&(e=a(d([84,114,105,97,108,76,105,109,105,116]))),await(e&&y?new(window[d([80,114,111,109,105,115,101])])((t,n)=>{e[d([116,104,101,110])](t,n),y[d([116,104,101,110])](n=>{n!=d([86,97,108,105,100])&&t(n)},n)}):e||y||d([86,97,108,105,100]))):d([68,111,109,97,105,110,76,105,109,105,116]):d([78,111,116,65,108,108,111,119,101,100]):d([73,110,118,97,108,105,100])):d([73,110,118,97,108,105,100]))}catch{return d([73,110,118,97,108,105,100])}}())}(this)}}const j=T;function T(t,n){const e=P();return(T=function(t,n){return e[t-=337]})(t,n)}function P(){const t=["config","trialLimit","isPremiumPlugin","requires","exportInlineStylesLicenseKeyTrialLimit","domainLimit","15zJKzDe","licenseKey","_licenseKeyCheckInterval","exportInlineStylesLicenseKeyNotAllowed","exportInlineStylesLicenseKeyExpired","12gDdTuF","101RkuIYd","exportInlineStylesLicenseKeyInvalid","4686759qHrEXN","exportInlineStylesLicenseKeyValid","get","7GPuuiH","evaluationLimit","4515379dWhcjb","3018480flRKTT","usageLimit","632100jEtZKB","expired","2686630cyPxrr","exportInlineStylesLicenseKeyDomainLimit","isOfficialPlugin","invalid","exportInlineStylesLicenseKeyUsageLimit","editor","_showLicenseError","ExportInlineStyles","8vHpErC","init","exportInlineStylesLicenseKeyEvaluationLimit","featureNotAllowed","550444djVrIO","pluginName","10UrtRjh","destroy"];return(P=function(){return t})()}!function(t){const n=T,e=t();for(;;)try{if(325783===parseInt(n(343))/1*(-parseInt(n(369))/2)+-parseInt(n(353))/3+-parseInt(n(367))/4*(-parseInt(n(337))/5)+parseInt(n(351))/6*(parseInt(n(348))/7)+parseInt(n(363))/8*(-parseInt(n(345))/9)+-parseInt(n(355))/10+parseInt(n(350))/11*(parseInt(n(342))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(P);class R extends t.Plugin{[j(338)];[j(339)];static get[j(368)](){return j(362)}static get[j(357)](){return!0}static get[j(373)](){return!0}static get[j(374)](){return[O]}[j(364)](){const t=j;this[t(338)]=this[t(360)][t(371)][t(347)](t(338));const n=this[t(360)];this[t(339)]=setInterval(()=>{const e=t;let r;for(const t in n){const s=t,i=n[s];if(e(346)==i||e(344)==i||e(341)==i||e(356)==i||e(340)==i||e(365)==i||e(375)==i||e(359)==i){delete n[s],r=i,clearInterval(this[e(339)]),this[e(339)]=void 0;break}}e(344)==r&&n[e(361)](e(358)),e(341)==r&&n[e(361)](e(354)),e(356)==r&&n[e(361)](e(376)),e(340)==r&&n[e(361)](e(366),e(362)),e(365)==r&&n[e(361)](e(349)),e(375)==r&&n[e(361)](e(372)),e(359)==r&&n[e(361)](e(352))},1e3)}[j(370)](){const t=j;super[t(370)](),this[t(339)]&&clearInterval(this[t(339)])}}function D(t,n){var e=V();return(D=function(t,n){return e[t-=147]})(t,n)}function V(){var t=["2059518qQcWeu","814944SWZKVy","10NGLfsh","16597206dwQRLE","3092424EgAeUb","1205900zjdXLY","443246ESBxPB","7445928SqrYRK","3kVziMO"];return(V=function(){return t})()}!function(t){for(var n=D,e=t();;)try{if(737018===-parseInt(n(154))/1+parseInt(n(153))/2+parseInt(n(147))/3*(parseInt(n(152))/4)+-parseInt(n(150))/5*(-parseInt(n(148))/6)+parseInt(n(155))/7+-parseInt(n(149))/8+-parseInt(n(151))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(V)})(),(window.CKEditor5=window.CKEditor5||{}).exportInlineStyles=r})();
@@ -0,0 +1,11 @@
1
+ {
2
+ "plugins": [
3
+ {
4
+ "name": "Export with Inline Styles",
5
+ "className": "ExportInlineStyles",
6
+ "description": "Introduces tools for generating content with inline styles.",
7
+ "docs": "features/export-with-inline-styles.html",
8
+ "path": "src/exportinlinestyles.js"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
package/dist/index.css ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
package/dist/index.js ADDED
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ import{Command as _0x40ede9,Plugin as _0x193f71}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x483271,createElement as _0x5e115f,uid as _0x2390d8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{calculate as _0x3c9593,compare as _0xa306ac}from'specificity';import{StylesMap as _0x2621ba,addMarginStylesRules as _0x5c106b,addPaddingStylesRules as _0xcbb854}from'@ckeditor/ckeditor5-engine/dist/index.js';function T(_0x58d78c){const _0x221a19=[];let _0x3d574c='',_0x505623=0x0;for(;_0x505623<_0x58d78c['length'];){const _0x3628a8=_0x58d78c[_0x505623];if('('===_0x3628a8){const _0x395c7e=M(_0x58d78c,_0x505623+0x1);if(-0x1===_0x395c7e)return[];_0x3d574c+=_0x58d78c['slice'](_0x505623,_0x395c7e+0x1),_0x505623=_0x395c7e+0x1;}else','!==_0x3628a8||_0x3d574c['endsWith']('\x5c')?(_0x3d574c+=_0x3628a8,_0x505623++):(_0x221a19['push'](_0x3d574c['trim']()),_0x3d574c='',_0x505623++);}return _0x3d574c['trim']()&&_0x221a19['push'](_0x3d574c['trim']()),_0x221a19['filter'](Boolean);}function M(_0x3b3ed9,_0x1e3698){let _0x1dd59d=0x1;for(let _0x3482c8=_0x1e3698;_0x3482c8<_0x3b3ed9['length'];_0x3482c8++){const _0x55e436=_0x3b3ed9[_0x3482c8];if('('===_0x55e436)_0x1dd59d++;else{if(')'===_0x55e436&&(_0x1dd59d--,0x0===_0x1dd59d))return _0x3482c8;}}return-0x1;}function L(_0x1e4617){return _0x1e4617['replace'](/!\s*important/i,'')['trim']();}function g(_0x1fbd50,_0x169dce){const _0x6f32bd=new Map(),_0x26b854=_0x5abd29=>_0x6f32bd['has'](_0x5abd29)?_0x6f32bd['get'](_0x5abd29):_0x1fbd50(_0x5abd29);for(const [_0x36a0d3,_0x26866b]of _0x169dce['getStylesEntries']())if(_0x26866b&&_0x36a0d3['startsWith']('--')){const _0x35df6a=b(_0x26b854,_0x26866b);_0x6f32bd['set'](_0x36a0d3,_0x35df6a),_0x169dce['remove'](_0x36a0d3);}for(const [_0x4abb18,_0x5493a8]of _0x169dce['getStylesEntries']())if(_0x5493a8){const _0xee9929=b(_0x26b854,_0x5493a8);_0x169dce['set'](_0x4abb18,_0xee9929);}return _0x6f32bd;}function b(_0x2e5774,_0x2df95a){return function(_0x43010e,_0xc68098){let _0x5b897b='',_0x500df5=0x0;for(;_0x500df5<_0x43010e['length'];){const _0x1bdc28=_0x43010e['indexOf']('var(',_0x500df5);if(-0x1===_0x1bdc28){_0x5b897b+=_0x43010e['slice'](_0x500df5);break;}_0x5b897b+=_0x43010e['slice'](_0x500df5,_0x1bdc28);const _0xaafc8a=_0x1bdc28+0x4,_0x1eb318=M(_0x43010e,_0xaafc8a);_0x5b897b+=_0xc68098(_0x43010e['substring'](_0xaafc8a,_0x1eb318)),_0x500df5=_0x1eb318+0x1;}return _0x5b897b;}(_0x2df95a,_0x237e85=>{const [_0x2263eb,_0x4dafac]=T(_0x237e85),_0x46aff0=_0x2e5774(_0x2263eb);return void 0x0!==_0x46aff0?_0x46aff0:_0x4dafac?b(_0x2e5774,_0x4dafac):'var('+_0x2263eb+')';});}async function r(_0x2f4d0a){const _0x4f579b=[await _0x483271(_0x2f4d0a['stylesheets']),_0x2f4d0a['inlineCss']]['filter'](_0x49bb9f=>_0x49bb9f&&_0x49bb9f['length'])['join']('\x0a'),_0x4724cd=await async function(_0x147381,_0x3c23b4){const _0x51c111=new CSSStyleSheet();return await _0x51c111['replace'](_0x3c23b4),C(Array['from'](_0x51c111['cssRules'])['filter'](_0x59a03c=>_0x59a03c instanceof CSSStyleRule))['flatMap'](({selectorText:_0x5c7e16,contentCssText:_0xb27e11})=>{const _0x5ed37e=T(_0x5c7e16),_0x435240=new _0x2621ba(_0x147381)['setTo'](_0xb27e11);return _0x5ed37e['map'](_0x5351df=>{const _0x3a59f5=function(_0x456a94){const _0x26c73d=':where(';let _0x5cc90a=_0x456a94,_0x5a3609=0x0;for(let _0x30d93a=0x0;_0x30d93a<0x64;_0x30d93a++){const _0x5a9a0e=_0x5cc90a['indexOf'](_0x26c73d,_0x5a3609);if(-0x1===_0x5a9a0e)break;let _0x28f393=0x0;for(let _0x19b0a4=0x0;_0x19b0a4<_0x5a9a0e;_0x19b0a4++)'('===_0x5cc90a[_0x19b0a4]?_0x28f393++:')'===_0x5cc90a[_0x19b0a4]&&_0x28f393--;if(_0x28f393>0x0){_0x5a3609=_0x5a9a0e+_0x26c73d['length'];continue;}let _0x4923db=-0x1;for(let _0x5726bc=_0x5a9a0e+_0x26c73d['length'],_0x5a76fd=0x1;_0x5726bc<_0x5cc90a['length'];_0x5726bc++)if('('===_0x5cc90a[_0x5726bc]?_0x5a76fd++:')'===_0x5cc90a[_0x5726bc]&&_0x5a76fd--,!_0x5a76fd){_0x4923db=_0x5726bc;break;}-0x1!==_0x4923db?(_0x5cc90a=_0x5cc90a['slice'](0x0,_0x5a9a0e)+_0x5cc90a['slice'](_0x4923db+0x1),_0x5a3609=_0x5a9a0e):_0x5a3609=_0x5a9a0e+_0x26c73d['length'];}return _0x5cc90a['replace'](/\s+/g,'\x20')['trim']();}(_0x5351df),_0x46d6ea=_0x3a59f5?_0x3c9593(_0x3a59f5)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x435240,'flatSelector':_0x5351df,'specificity':_0x46d6ea};});})['sort']((_0x598b19,_0x175a97)=>_0xa306ac(_0x598b19['specificity'],_0x175a97['specificity']));}(_0x2f4d0a['stylesProcessor'],_0x4f579b);return{'parsedCssRules':_0x4724cd,'rootCssVariables':function(_0x31f02d){const _0x17e4e7=new Map();for(const {stylesMap:_0x252025,flatSelector:_0x30ffd5}of _0x31f02d){if(':root'!==_0x30ffd5)continue;const _0x43fb4d=g(_0x17e4e7['get']['bind'](_0x17e4e7),_0x252025);for(const [_0x30dd20,_0x400a3e]of _0x43fb4d)_0x17e4e7['set'](_0x30dd20,_0x400a3e);}return _0x17e4e7;}(_0x4724cd)};}function C(_0x3944dc,_0x3d2b8f=''){return _0x3944dc['flatMap'](_0x4b1b41=>{const {selectorText:_0x3bbe04,cssText:_0x309df1,cssRules:_0x486dca}=_0x4b1b41;if(!_0x3bbe04)return[];const _0x2a0e4a=_0x3bbe04['replace'](/&/g,_0x3d2b8f);let _0x537901=_0x309df1['replace'](_0x3bbe04,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x486dca||!_0x486dca['length'])return[{'selectorText':_0x2a0e4a,'contentCssText':_0x537901}];for(const _0x40b02c of _0x486dca)_0x537901=_0x537901['replace'](_0x40b02c['cssText'],'')['trim']();return[{'selectorText':_0x2a0e4a,'contentCssText':_0x537901},...C(Array['from'](_0x486dca),_0x2a0e4a)];});}function l(_0x35c7a7,_0x36b316){const _0x1069df=new _0x2621ba(_0x35c7a7);for(const _0x55f1d8 of _0x36b316){let _0x4145ec=null;if(_0x4145ec='string'==typeof _0x55f1d8?new _0x2621ba(_0x35c7a7)['setTo'](_0x55f1d8):_0x55f1d8,_0x4145ec){for(const [_0xa7813f,_0x3b052b]of _0x4145ec['getStylesEntries']())_0x1069df['set'](_0xa7813f,_0x3b052b);}}return _0x1069df;}class w extends _0x40ede9{['_stylesProcessor'];constructor(_0x27116f){super(_0x27116f),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x5c106b(this['_stylesProcessor']),_0xcbb854(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x131fac){const _0x5ba088=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x10e808}=this['editor']['locale'],{rootName:_0x166070='main',dataControllerDowncastOptions:_0x7554d4={},transformations:_0x3d62e9=_0x5ba088['transformations']||[]}=_0x131fac||{};this['isBusy']=!0x0,this['refresh']();const _0x245cb6=this['_getRootDataHTMLFragment'](_0x166070,_0x7554d4),_0x5189fd=_0x5e115f(_0x245cb6['ownerDocument'],'div',{'dir':_0x10e808,'class':'ck-content'},[_0x245cb6]);return this['_collectAndApplyStyles'](_0x3d62e9,_0x5189fd)['then'](()=>{const _0x1e1dc0=function(_0x1e0e90){const _0x85047c=_0x1e0e90['ownerDocument']['createDocumentFragment']();for(;_0x1e0e90['firstChild'];)_0x85047c['appendChild'](_0x1e0e90['firstChild']);return _0x85047c;}(_0x5189fd),_0x346bac=_0x5189fd['getAttribute']('style');if(_0x346bac)for(const _0x171154 of _0x1e1dc0['children']){const _0x1ce6ec=_0x171154['getAttribute']('style'),_0x586ea5=l(this['_stylesProcessor'],[_0x346bac,_0x1ce6ec]);_0x171154['setAttribute']('style',p(_0x586ea5));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x1e1dc0);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x102635,_0x2d49e7){const {data:_0x4c2fde,model:_0x198e52}=this['editor'],_0x201a37=_0x198e52['document']['getRoot'](_0x102635),_0x40e8d8=_0x4c2fde['toView'](_0x201a37,_0x2d49e7);return _0x4c2fde['htmlProcessor']['domConverter']['viewToDom'](_0x40e8d8);}async['_collectAndApplyStyles'](_0x3a970d,_0x1b7040){const {stylesheets:_0xaf000,inlineCss:_0x2debb6,stripCssClasses:_0x45a284}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x128501,rootCssVariables:_0x292d01}=await r({'stylesheets':_0xaf000||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x2debb6});this['_processElementTree']({'transformations':_0x3a970d,'parsedCssRules':_0x128501,'element':_0x1b7040,'stripCssClasses':_0x45a284,'parentCSSVariablesLookup':_0x292d01['get']['bind'](_0x292d01)});}['_processElementTree']({element:_0x2494a3,parsedCssRules:_0x1e5826,parentCSSVariablesLookup:_0x97957f,stripCssClasses:_0x4512fd,transformations:_0x11eb30}){const {stylesMap:_0x5eac29,localCSSVariables:_0x160b1d}=function(_0x5a6c06){const _0x403080=_0x5a6c06['element']['getAttribute']('style')||'',_0xa01a24=_0x5a6c06['parsedCssRules']['filter'](_0x10a66e=>_0x5a6c06['element']['matches'](_0x10a66e['flatSelector']))['map'](_0x452175=>_0x452175['stylesMap']),_0xaabc67=l(_0x5a6c06['stylesProcessor'],[..._0xa01a24,_0x403080]);return{'localCSSVariables':g(_0x5a6c06['fallbackCSSVariablesLookup'],_0xaabc67),'stylesMap':_0xaabc67};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x97957f,'parsedCssRules':_0x1e5826,'element':_0x2494a3});for(const _0x37d130 of _0x11eb30)_0x37d130(_0x2494a3,_0x5eac29);_0x5eac29['size']?_0x2494a3['setAttribute']('style',p(_0x5eac29)):_0x2494a3['removeAttribute']('style');const _0x3e1f85=_0x59aaef=>_0x160b1d['has'](_0x59aaef)?_0x160b1d['get'](_0x59aaef):_0x97957f(_0x59aaef);for(const _0x37931b of _0x2494a3['children'])_0x37931b instanceof HTMLElement&&this['_processElementTree']({'element':_0x37931b,'parentCSSVariablesLookup':_0x3e1f85,'parsedCssRules':_0x1e5826,'stripCssClasses':_0x4512fd,'transformations':_0x11eb30});_0x4512fd&&_0x2494a3['removeAttribute']('class');}}function p(_0x1defb1){return _0x1defb1['getStylesEntries']()['map'](_0x264dca=>_0x264dca['join'](':'))['join'](';')+';';}class i extends _0x193f71{static get['pluginName'](){return'ExportInlineStylesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['editor']['config']['define']('exportInlineStyles',{}),this['editor']['commands']['add']('exportInlineStyles',new w(this['editor']));}['afterInit'](){!async function(_0x41a77d){const _0x192eb2=_0x292b76([0x44,0x55,0x41,0x36,0x31,0x30,0x65,0x6d,0x4c,0x34,0x51,0x32,0x6b,0x6a,0x56,0x49,0x76,0x47,0x4d,0x48,0x67,0x57,0x54,0x33,0x75,0x79,0x53,0x6e,0x7a,0x50,0x45,0x77,0x37,0x39,0x6f,0x5a,0x4a,0x69,0x43,0x72,0x62,0x73,0x74,0x63,0x58,0x4b,0x71,0x38,0x35,0x4e,0x68,0x64,0x66,0x61,0x46,0x52,0x78,0x42,0x6c,0x70,0x4f,0x59]),_0x23f271=0x6f40c3fb,_0x31d704=0x6f47b87b^_0x23f271,_0x252aba=window[_0x292b76([0x44,0x61,0x74,0x65])][_0x292b76([0x6e,0x6f,0x77])](),_0xaa38c5=_0x41a77d[_0x292b76([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e268e=new window[(_0x292b76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c870f=>{_0xaa38c5[_0x292b76([0x6f,0x6e,0x63,0x65])](_0x292b76([0x72,0x65,0x61,0x64,0x79]),_0x3c870f);}),_0x2bd08a={[_0x292b76([0x6b,0x74,0x79])]:_0x292b76([0x45,0x43]),[_0x292b76([0x75,0x73,0x65])]:_0x292b76([0x73,0x69,0x67]),[_0x292b76([0x63,0x72,0x76])]:_0x292b76([0x50,0x2d,0x32,0x35,0x36]),[_0x292b76([0x78])]:_0x292b76([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]),[_0x292b76([0x79])]:_0x292b76([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]),[_0x292b76([0x61,0x6c,0x67])]:_0x292b76([0x45,0x53,0x32,0x35,0x36])},_0x4e8792=_0xaa38c5[_0x292b76([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x292b76([0x67,0x65,0x74])](_0x292b76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x917bcd(){let _0x1840d9,_0x5acca3=null,_0x1b0cfd=null;try{if(_0x4e8792==_0x292b76([0x47,0x50,0x4c]))return _0x292b76([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1840d9=_0x9f75f5(),!_0x1840d9)return _0x292b76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1840d9[_0x292b76([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b0cfd=_0x4a28cd(_0x1840d9[_0x292b76([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1840d9[_0x292b76([0x6a,0x74,0x69])])),await _0x345807()?_0x19ea9a()?_0x730cc()?_0x292b76([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1757a0()?(_0x1840d9[_0x292b76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x292b76([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5acca3=_0x2edf62(_0x292b76([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1840d9[_0x292b76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x292b76([0x74,0x72,0x69,0x61,0x6c])&&(_0x5acca3=_0x2edf62(_0x292b76([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x293674()):_0x292b76([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x292b76([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x292b76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x292b76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x730cc(){const _0x22d88f=[_0x292b76([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x292b76([0x74,0x72,0x69,0x61,0x6c])][_0x292b76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1840d9[_0x292b76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x252aba/0x3e8:0xe10*_0x31d704;return _0x1840d9[_0x292b76([0x65,0x78,0x70])]<_0x22d88f;}function _0x19ea9a(){const _0x1d9dbb=_0x1840d9[_0x292b76([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1d9dbb&&(!!_0x1d9dbb[_0x292b76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x292b76([0x2a]))||!!_0x1d9dbb[_0x292b76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x292b76([0x45,0x49,0x53])));}function _0x1757a0(){const _0x4e5642=_0x1840d9[_0x292b76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e5642||0x0==_0x4e5642[_0x292b76([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2421f3}=new URL(window[_0x292b76([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e5642[_0x292b76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2421f3))return!0x0;const _0x5f27b6=_0x2421f3[_0x292b76([0x73,0x70,0x6c,0x69,0x74])](_0x292b76([0x2e]));return _0x4e5642[_0x292b76([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ce595=>_0x5ce595[_0x292b76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x292b76([0x2a])))[_0x292b76([0x6d,0x61,0x70])](_0x386c2c=>_0x386c2c[_0x292b76([0x73,0x70,0x6c,0x69,0x74])](_0x292b76([0x2e])))[_0x292b76([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1225f8=>_0x1225f8[_0x292b76([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5f27b6[_0x292b76([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x292b76([0x6d,0x61,0x70])](_0x56e617=>Array(_0x5f27b6[_0x292b76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x56e617[_0x292b76([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x292b76([0x66,0x69,0x6c,0x6c])](_0x56e617[0x0]===_0x292b76([0x2a])?_0x292b76([0x2a]):'')[_0x292b76([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x56e617))[_0x292b76([0x73,0x6f,0x6d,0x65])](_0x39e5b9=>_0x5f27b6[_0x292b76([0x65,0x76,0x65,0x72,0x79])]((_0x5c14fa,_0x2ec356)=>_0x39e5b9[_0x2ec356]===_0x5c14fa||_0x39e5b9[_0x2ec356]===_0x292b76([0x2a])));}function _0x293674(){return _0x5acca3&&_0x1b0cfd?new window[(_0x292b76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x529040,_0x25121a)=>{_0x5acca3[_0x292b76([0x74,0x68,0x65,0x6e])](_0x529040,_0x25121a),_0x1b0cfd[_0x292b76([0x74,0x68,0x65,0x6e])](_0x47f62f=>{_0x47f62f!=_0x292b76([0x56,0x61,0x6c,0x69,0x64])&&_0x529040(_0x47f62f);},_0x25121a);}):_0x5acca3||_0x1b0cfd||_0x292b76([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a28cd(_0xde72c7,_0x24be9e){return new window[(_0x292b76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47d347=>{if(_0x33a091())return _0x47d347(_0x292b76([0x56,0x61,0x6c,0x69,0x64]));_0x49c0c2(),_0xaa38c5[_0x292b76([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x292b76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x424c13=!0x1;const _0x24b08b=_0x2390d8();function _0x194a7e(_0x5c7e4e){return!!_0x5c7e4e&&(typeof _0x5c7e4e===_0x292b76([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c7e4e===_0x292b76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c7e4e[_0x292b76([0x74,0x68,0x65,0x6e])]===_0x292b76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c7e4e[_0x292b76([0x63,0x61,0x74,0x63,0x68])]===_0x292b76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x316459(_0x131ea1){_0x5f7f40(_0x131ea1)[_0x292b76([0x74,0x68,0x65,0x6e])](_0x58e9fd=>{if(!_0x58e9fd||_0x58e9fd[_0x292b76([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x292b76([0x6f,0x6b]))return _0x292b76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4522e8(_0x204b2d(_0x24b08b+_0x24be9e))!=_0x58e9fd[_0x292b76([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x292b76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x292b76([0x56,0x61,0x6c,0x69,0x64]);})[_0x292b76([0x74,0x68,0x65,0x6e])](_0x5b5ec2=>(_0x6bf605(),_0x5b5ec2),()=>{const _0x3d7838=_0x252eda();return null==_0x3d7838?(_0x6bf605(),_0x292b76([0x56,0x61,0x6c,0x69,0x64])):_0x292b76(_0x252aba-_0x3d7838>(0x4b4c47fb^_0x23f271)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x292b76([0x74,0x68,0x65,0x6e])](_0x47d347)[_0x292b76([0x63,0x61,0x74,0x63,0x68])](()=>{_0x47d347(_0x292b76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x324424=0x6f762d7b^_0x23f271;function _0x6bf605(){const _0x5a796c=_0x292b76([0x6c,0x6c,0x63,0x74,0x2d])+_0x4522e8(_0x204b2d(_0xde72c7)),_0x46c767=_0x4cd788(_0x4522e8(window[_0x292b76([0x4d,0x61,0x74,0x68])][_0x292b76([0x63,0x65,0x69,0x6c])](_0x252aba/_0x324424)));window[_0x292b76([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x292b76([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a796c,_0x46c767);}function _0x252eda(){const _0x1aeeb0=_0x292b76([0x6c,0x6c,0x63,0x74,0x2d])+_0x4522e8(_0x204b2d(_0xde72c7)),_0x36ab2e=window[_0x292b76([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x292b76([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1aeeb0);return _0x36ab2e?window[_0x292b76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cd788(_0x36ab2e),0x10)*_0x324424:null;}function _0x5f7f40(_0x581cfb){return new window[(_0x292b76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d281d,_0x15cf2d)=>{_0x581cfb[_0x292b76([0x74,0x68,0x65,0x6e])](_0x3d281d,_0x15cf2d),window[_0x292b76([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15cf2d,0x6f41173b^_0x23f271);});}}_0xaa38c5[_0x292b76([0x6f,0x6e])](_0x292b76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x587388,_0x129c06)=>{if(_0x129c06[0x0]!=_0xde72c7)return _0x47d347(_0x292b76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x129c06[0x1]={..._0x129c06[0x1],[_0x292b76([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24b08b};},{[_0x292b76([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x292b76([0x68,0x69,0x67,0x68])}),_0xaa38c5[_0x292b76([0x6f,0x6e])](_0x292b76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5255ef=>{_0x194a7e(_0x5255ef[_0x292b76([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x424c13=!0x0,_0x316459(_0x5255ef[_0x292b76([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x292b76([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x292b76([0x6c,0x6f,0x77])}),_0x3e268e[_0x292b76([0x74,0x68,0x65,0x6e])](()=>{_0x424c13||_0x47d347(_0x292b76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x33a091(){return _0xaa38c5[_0x292b76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x292b76([0x76,0x69,0x65,0x77])][_0x292b76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x292b76([0x61,0x75,0x74,0x6f]);}function _0x49c0c2(){_0xaa38c5[_0x292b76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x292b76([0x76,0x69,0x65,0x77])][_0x292b76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x292b76([0x61,0x75,0x74,0x6f]);}}function _0x2edf62(_0x2cc1a1){const _0x418ca1=[new window[(_0x292b76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5657b4=>setTimeout(_0x5657b4,0x6f49fd37^_0x23f271)),_0x3e268e[_0x292b76([0x74,0x68,0x65,0x6e])](()=>new window[(_0x292b76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35b8f0=>{let _0x33ddd3=0x0;_0xaa38c5[_0x292b76([0x6d,0x6f,0x64,0x65,0x6c])][_0x292b76([0x6f,0x6e])](_0x292b76([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa87763,_0x19ec36)=>{_0x19ec36[0x0][_0x292b76([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33ddd3++,_0x33ddd3==(0x6f40c203^_0x23f271)&&(_0x35b8f0(),_0xa87763[_0x292b76([0x6f,0x66,0x66])]());});}))];return window[_0x292b76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x292b76([0x72,0x61,0x63,0x65])](_0x418ca1)[_0x292b76([0x74,0x68,0x65,0x6e])](()=>_0x2cc1a1);}async function _0x51b5d0(){await _0x3e268e;const _0x26183f=_0xaa38c5['commands'][_0x292b76([0x67,0x65,0x74])](_0x292b76([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x26183f&&_0x26183f[_0x292b76([0x6f,0x6e])](_0x292b76([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x5565ef=>{_0x5565ef['stop']();},{'priority':_0x292b76([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0xaa38c5[_0x292b76([0x6d,0x6f,0x64,0x65,0x6c])][_0x292b76([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x210e6f,_0xaa38c5[_0x292b76([0x6d,0x6f,0x64,0x65,0x6c])][_0x292b76([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x210e6f,_0xaa38c5[_0x292b76([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x292b76([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x48a8be(_0x368d8c){const _0x7051c1=_0x10a1b8();_0xaa38c5[_0x7051c1]=_0x292b76([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x368d8c,_0x368d8c!=_0x292b76([0x56,0x61,0x6c,0x69,0x64])&&_0x51b5d0();}function _0x10a1b8(){const _0x35d938=window[_0x292b76([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x292b76([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x292b76([0x6e,0x6f,0x77])]())[_0x292b76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x292b76([0x2e]),'');let _0x100d55=_0x292b76([0x44]);for(let _0x1f5085=0x0;_0x1f5085<_0x35d938[_0x292b76([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f5085+=0x2){let _0x28c950=window[_0x292b76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35d938[_0x292b76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f5085,_0x1f5085+0x2));_0x28c950>=_0x192eb2[_0x292b76([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28c950-=_0x192eb2[_0x292b76([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x100d55+=_0x192eb2[_0x28c950];}return _0x100d55;}function _0x9f75f5(){const _0x35394a=_0x4e8792[_0x292b76([0x73,0x70,0x6c,0x69,0x74])](_0x292b76([0x2e]));if(0x3!=_0x35394a[_0x292b76([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x116dfd(_0x35394a[0x1]);function _0x116dfd(_0x53c4d5){const _0x2cfc61=_0xc21e2c(_0x53c4d5);return _0x2cfc61&&_0x48038f()?_0x2cfc61:null;function _0x48038f(){const _0x5e997c=_0x2cfc61[_0x292b76([0x6a,0x74,0x69])],_0x1e9d9f=window[_0x292b76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e997c[_0x292b76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e997c[_0x292b76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3de011={..._0x2cfc61,[_0x292b76([0x6a,0x74,0x69])]:_0x5e997c[_0x292b76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e997c[_0x292b76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3de011[_0x292b76([0x76,0x63])],_0x204b2d(_0x3de011)==_0x1e9d9f;}}}async function _0x345807(){let _0x42eca5=!0x0;try{const _0x1fc5d0=_0x4e8792[_0x292b76([0x73,0x70,0x6c,0x69,0x74])](_0x292b76([0x2e])),[_0x40a3f1,_0x10e014,_0x13e3ce]=_0x1fc5d0;return _0xd202c5(_0x40a3f1),await _0x24cfd6(_0x40a3f1,_0x10e014,_0x13e3ce),_0x42eca5;}catch{return!0x1;}function _0xd202c5(_0x45577a){const _0x2c8e7b=_0xc21e2c(_0x45577a);_0x2c8e7b&&_0x2c8e7b[_0x292b76([0x61,0x6c,0x67])]==_0x292b76([0x45,0x53,0x32,0x35,0x36])||(_0x42eca5=!0x1);}async function _0x24cfd6(_0x1066b2,_0x4d20b8,_0x2ec7d7){const _0x49ffa3=window[_0x292b76([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x292b76([0x66,0x72,0x6f,0x6d])](_0x2011eb(_0x2ec7d7),_0x534949=>_0x534949[_0x292b76([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37c2fb=new window[(_0x292b76([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x292b76([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1066b2+_0x292b76([0x2e])+_0x4d20b8),_0xdcf71=window[_0x292b76([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x292b76([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xdcf71)return;const _0x14e979=await _0xdcf71[_0x292b76([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x292b76([0x6a,0x77,0x6b]),_0x2bd08a,{[_0x292b76([0x6e,0x61,0x6d,0x65])]:_0x292b76([0x45,0x43,0x44,0x53,0x41]),[_0x292b76([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x292b76([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x292b76([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xdcf71[_0x292b76([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x292b76([0x6e,0x61,0x6d,0x65])]:_0x292b76([0x45,0x43,0x44,0x53,0x41]),[_0x292b76([0x68,0x61,0x73,0x68])]:{[_0x292b76([0x6e,0x61,0x6d,0x65])]:_0x292b76([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x14e979,_0x49ffa3,_0x37c2fb)||(_0x42eca5=!0x1);}}function _0xc21e2c(_0x29889b){return _0x29889b[_0x292b76([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x292b76([0x65,0x79]))?JSON[_0x292b76([0x70,0x61,0x72,0x73,0x65])](_0x2011eb(_0x29889b)):null;}function _0x2011eb(_0x3937a5){return window[_0x292b76([0x61,0x74,0x6f,0x62])](_0x3937a5[_0x292b76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x292b76([0x2b]))[_0x292b76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x292b76([0x2f])));}function _0x204b2d(_0x44816a){let _0x4b7fd3=0x1505;function _0x36c1c7(_0x35f3cd){for(let _0x36d343=0x0;_0x36d343<_0x35f3cd[_0x292b76([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36d343++){const _0x3e01c8=_0x35f3cd[_0x292b76([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36d343);_0x4b7fd3=(_0x4b7fd3<<0x5)+_0x4b7fd3+_0x3e01c8,_0x4b7fd3&=_0x4b7fd3;}}function _0x36b5ee(_0x401e16){Array[_0x292b76([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x401e16)?_0x401e16[_0x292b76([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36b5ee):_0x401e16&&typeof _0x401e16==_0x292b76([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x292b76([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x401e16)[_0x292b76([0x73,0x6f,0x72,0x74])]()[_0x292b76([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5cf63a,_0x4be165])=>{_0x36c1c7(_0x5cf63a),_0x36b5ee(_0x4be165);}):_0x36c1c7(window[_0x292b76([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x401e16));}return _0x36b5ee(_0x44816a),_0x4b7fd3>>>0x0;}function _0x4522e8(_0x3c632e){return _0x3c632e[_0x292b76([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x292b76([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x292b76([0x30]));}function _0x4cd788(_0x28310f){return _0x28310f[_0x292b76([0x73,0x70,0x6c,0x69,0x74])]('')[_0x292b76([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x292b76([0x6a,0x6f,0x69,0x6e])]('');}function _0x210e6f(){}function _0x292b76(_0x2ac4af){return _0x2ac4af['map'](_0x4f9a0c=>String['fromCharCode'](_0x4f9a0c))['join']('');}_0x48a8be(await _0x917bcd());}(this);}}class I extends _0x193f71{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[i];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x15c339=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3bc1a2;for(const _0x465b3a in _0x15c339){const _0x5982e6=_0x465b3a,_0x6e4263=_0x15c339[_0x5982e6];if('exportInlineStylesLicenseKeyValid'==_0x6e4263||'exportInlineStylesLicenseKeyInvalid'==_0x6e4263||'exportInlineStylesLicenseKeyExpired'==_0x6e4263||'exportInlineStylesLicenseKeyDomainLimit'==_0x6e4263||'exportInlineStylesLicenseKeyNotAllowed'==_0x6e4263||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x6e4263||'exportInlineStylesLicenseKeyTrialLimit'==_0x6e4263||'exportInlineStylesLicenseKeyUsageLimit'==_0x6e4263){delete _0x15c339[_0x5982e6],_0x3bc1a2=_0x6e4263,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x3bc1a2&&_0x15c339['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x3bc1a2&&_0x15c339['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x3bc1a2&&_0x15c339['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x3bc1a2&&_0x15c339['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x3bc1a2&&_0x15c339['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyTrialLimit'==_0x3bc1a2&&_0x15c339['_showLicenseError']('trialLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x3bc1a2&&_0x15c339['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{I as ExportInlineStyles,w as ExportInlineStylesCommand,i as ExportInlineStylesEditing,L as dropImportantStyleSuffix};
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@ckeditor/ckeditor5-export-inline-styles",
3
+ "version": "0.0.0-internal-20251210.0",
4
+ "description": "The export with inline styles feature for CKEditor 5.",
5
+ "keywords": [
6
+ "ckeditor",
7
+ "ckeditor5",
8
+ "ckeditor 5",
9
+ "ckeditor5-feature",
10
+ "ckeditor5-plugin",
11
+ "WYSIWYG",
12
+ "WYSIWYM",
13
+ "text",
14
+ "rich-text",
15
+ "richtext",
16
+ "ckeditor",
17
+ "editor",
18
+ "editing",
19
+ "html",
20
+ "contentEditable",
21
+ "inline",
22
+ "styles",
23
+ "export"
24
+ ],
25
+ "type": "module",
26
+ "main": "src/index.js",
27
+ "dependencies": {
28
+ "@ckeditor/ckeditor5-core": "0.0.0-internal-20251210.0",
29
+ "@ckeditor/ckeditor5-engine": "0.0.0-internal-20251210.0",
30
+ "@ckeditor/ckeditor5-utils": "0.0.0-internal-20251210.0",
31
+ "ckeditor5": "0.0.0-internal-20251210.0",
32
+ "specificity": "0.4.1"
33
+ },
34
+ "license": "SEE LICENSE IN LICENSE.md",
35
+ "author": "CKSource (http://cksource.com/)",
36
+ "homepage": "https://ckeditor.com/ckeditor-5",
37
+ "bugs": "https://support.ckeditor.com/hc/en-us/requests/new",
38
+ "files": [
39
+ "dist",
40
+ "lang",
41
+ "src/**/*.js",
42
+ "src/**/*.d.ts",
43
+ "theme",
44
+ "build",
45
+ "ckeditor5-metadata.json",
46
+ "CHANGELOG.md"
47
+ ],
48
+ "types": "src/index.d.ts",
49
+ "exports": {
50
+ ".": {
51
+ "types": "./src/index.d.ts",
52
+ "import": "./src/index.js",
53
+ "default": "./src/index.js"
54
+ },
55
+ "./dist/*": {
56
+ "types": "./src/index.d.ts",
57
+ "import": "./dist/*",
58
+ "default": "./dist/*"
59
+ },
60
+ "./src/*": {
61
+ "types": "./src/*.d.ts",
62
+ "import": "./src/*",
63
+ "default": "./src/*"
64
+ },
65
+ "./build/*": "./build/*",
66
+ "./ckeditor5-metadata.json": "./ckeditor5-metadata.json",
67
+ "./package.json": "./package.json"
68
+ },
69
+ "obfuscated": true
70
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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 { ExportInlineStyles, ExportInlineStylesCommand, ExportInlineStylesConfig, ExportInlineStylesEditing } from './index.js';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface PluginsMap {
8
+ [ExportInlineStyles.pluginName]: ExportInlineStyles;
9
+ [ExportInlineStylesEditing.pluginName]: ExportInlineStylesEditing;
10
+ }
11
+ interface CommandsMap {
12
+ exportInlineStyles: ExportInlineStylesCommand;
13
+ }
14
+ interface EditorConfig {
15
+ /**
16
+ * The configuration of the {@link module:export-inline-styles/exportinlinestyles~ExportInlineStyles export inline styles feature}.
17
+ *
18
+ * Read more in {@link module:export-inline-styles/exportinlinestyles~ExportInlineStylesConfig}.
19
+ */
20
+ exportInlineStyles?: ExportInlineStylesConfig;
21
+ }
22
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export{};
@@ -0,0 +1,172 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ /**
6
+ * @module export-inline-styles/exportinlinestyles
7
+ * @publicApi
8
+ */
9
+ import type { StylesMap } from 'ckeditor5/src/engine.js';
10
+ import { Plugin } from 'ckeditor5/src/core.js';
11
+ import { ExportInlineStylesEditing } from './exportinlinestylesediting.js';
12
+ /**
13
+ * The plugin responsible for converting external CSS styles to inline styles.
14
+ */
15
+ export declare class ExportInlineStyles extends Plugin {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName(): "ExportInlineStyles";
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static get isOfficialPlugin(): true;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get isPremiumPlugin(): true;
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get requires(): readonly [typeof ExportInlineStylesEditing];
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ init(): void;
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ destroy(): void;
40
+ }
41
+ /**
42
+ * The configuration of the export inline styles feature. It is used by the `@ckeditor/ckeditor5-export-inline-styles` package.
43
+ *
44
+ * ```ts
45
+ * ClassicEditor
46
+ * .create( editorElement, {
47
+ * exportInlineStyles: ... // Export inline styles feature options.
48
+ * } )
49
+ * .then( ... )
50
+ * .catch( ... );
51
+ */
52
+ export interface ExportInlineStylesConfig {
53
+ /**
54
+ * Paths to the `.css` files containing styling that should be converted to inline styles (**the order of provided items matters**).
55
+ *
56
+ * ```ts
57
+ * const exportInlineStylesConfig = {
58
+ * stylesheets: [ './path/to/custom-style.css' ]
59
+ * }
60
+ * ```
61
+ *
62
+ * **NOTE:** If `stylesheets` are not provided, the plugin will process only
63
+ * {@glink getting-started/setup/css the default editor content styles}.
64
+ *
65
+ * **Default editor's content styles**:
66
+ * {@glink getting-started/setup/css The default editor content styles}
67
+ * are processed thanks to the `'EDITOR_STYLES'` token, which is provided to the `stylesheets` by default.
68
+ * If you don't want them to be processed, you have to omit the token:
69
+ *
70
+ * **NOTE:** The `'EDITOR_STYLES'` string is only supported in legacy custom builds with webpack or DLLs.
71
+ * In other setups you always need to pass the stylesheets.
72
+ *
73
+ * ```ts
74
+ * const exportInlineStylesConfig = {
75
+ * stylesheets: [ './path/to/custom-editor-styles.css' ]
76
+ * }
77
+ * ```
78
+ *
79
+ * **Multiple stylesheets:** You can provide multiple stylesheets that will be processed in order:
80
+ *
81
+ * ```ts
82
+ * const exportInlineStylesConfig = {
83
+ * stylesheets: [
84
+ * './path/to/base-styles.css',
85
+ * './path/to/theme-styles.css',
86
+ * './path/to/custom-styles.css'
87
+ * ]
88
+ * ]
89
+ * }
90
+ * ```
91
+ *
92
+ * @default [ 'EDITOR_STYLES' ]
93
+ */
94
+ stylesheets?: Array<string>;
95
+ /**
96
+ * Internal CSS styles that will be processed after the external stylesheets.
97
+ * The styles should be provided as a regular CSS string.
98
+ *
99
+ * ```ts
100
+ * const exportInlineStylesConfig = {
101
+ * inlineCss: `
102
+ * .my-class {
103
+ * color: red;
104
+ * font-weight: bold;
105
+ * }
106
+ *
107
+ * .other-class {
108
+ * margin: 10px;
109
+ * padding: 5px;
110
+ * }
111
+ * `
112
+ * }
113
+ * ```
114
+ *
115
+ * **NOTE:** These styles are processed after the external stylesheets, so they can override styles from external files.
116
+ *
117
+ * @default ''
118
+ */
119
+ inlineCss?: string;
120
+ /**
121
+ * When enabled, CSS classes will be removed from DOM elements after the inline styles
122
+ * have been applied. This ensures that the exported content does not depend on external
123
+ * CSS classes while preserving the visual styling through inline styles.
124
+ *
125
+ * ```ts
126
+ * const exportInlineStylesConfig = {
127
+ * stripCssClasses: true
128
+ * }
129
+ * ```
130
+ *
131
+ * @default false
132
+ */
133
+ stripCssClasses?: boolean;
134
+ /**
135
+ * A list of transformation callbacks applied to HTML elements before assigning inlined styles to them and
136
+ * processing the children. It allows you to modify the elements based on the applied styles.
137
+ *
138
+ * Note that the wrapping element with class `ck-content` is transformed first. Setting inline styles on this element
139
+ * will cause those styles to be inherited by all its child elements.
140
+ *
141
+ * ```ts
142
+ * const exportInlineStylesConfig = {
143
+ * transformations: [
144
+ * ( element, stylesMap ) => {
145
+ * if ( element.tagName.toLowerCase() === 'p' && stylesMap.get( 'text-align' ) === 'center' ) {
146
+ * element.setAttribute( 'data-aligned', 'center' );
147
+ * stylesMap.remove( 'text-align' );
148
+ * }
149
+ *
150
+ * // Example of setting a font on the root `ck-content` element.
151
+ * // This will cause all child elements to inherit the font and color.
152
+ * if ( element.classList.contains( 'ck-content' ) ) {
153
+ * stylesMap.set( 'font-family', 'Arial, sans-serif' );
154
+ * stylesMap.set( 'color', '#333' );
155
+ * }
156
+ * },
157
+ * // ...
158
+ * ]
159
+ * }
160
+ * ```
161
+ *
162
+ * @default []
163
+ */
164
+ transformations?: Array<ExportInlineStylesTransformation>;
165
+ }
166
+ /**
167
+ * The callback function that is called for each element being processed.
168
+ *
169
+ * @param element The DOM element being processed.
170
+ * @param stylesMap The map of styles to be applied to the element.
171
+ */
172
+ export type ExportInlineStylesTransformation = (element: HTMLElement, stylesMap: StylesMap) => void;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x35de5f=_0x4d95;(function(_0x255413,_0x18d750){const _0x180e7d=_0x4d95,_0x37beaf=_0x255413();while(!![]){try{const _0x2f7c46=parseInt(_0x180e7d(0x157))/0x1*(-parseInt(_0x180e7d(0x171))/0x2)+-parseInt(_0x180e7d(0x161))/0x3+-parseInt(_0x180e7d(0x16f))/0x4*(-parseInt(_0x180e7d(0x151))/0x5)+parseInt(_0x180e7d(0x15f))/0x6*(parseInt(_0x180e7d(0x15c))/0x7)+parseInt(_0x180e7d(0x16b))/0x8*(-parseInt(_0x180e7d(0x159))/0x9)+-parseInt(_0x180e7d(0x163))/0xa+parseInt(_0x180e7d(0x15e))/0xb*(parseInt(_0x180e7d(0x156))/0xc);if(_0x2f7c46===_0x18d750)break;else _0x37beaf['push'](_0x37beaf['shift']());}catch(_0x4c82cc){_0x37beaf['push'](_0x37beaf['shift']());}}}(_0x54ae,0x4f897));function _0x4d95(_0x41dc8b,_0x267077){const _0x54aecd=_0x54ae();return _0x4d95=function(_0x4d956c,_0x5cc1cb){_0x4d956c=_0x4d956c-0x151;let _0xd590ea=_0x54aecd[_0x4d956c];return _0xd590ea;},_0x4d95(_0x41dc8b,_0x267077);}import{Plugin as _0x1d9dda}from'ckeditor5/src/core.js';import{ExportInlineStylesEditing as _0x550b76}from'./exportinlinestylesediting.js';function _0x54ae(){const _0x2beee3=['config','trialLimit','isPremiumPlugin','requires','exportInlineStylesLicenseKeyTrialLimit','domainLimit','15zJKzDe','licenseKey','_licenseKeyCheckInterval','exportInlineStylesLicenseKeyNotAllowed','exportInlineStylesLicenseKeyExpired','12gDdTuF','101RkuIYd','exportInlineStylesLicenseKeyInvalid','4686759qHrEXN','exportInlineStylesLicenseKeyValid','get','7GPuuiH','evaluationLimit','4515379dWhcjb','3018480flRKTT','usageLimit','632100jEtZKB','expired','2686630cyPxrr','exportInlineStylesLicenseKeyDomainLimit','isOfficialPlugin','invalid','exportInlineStylesLicenseKeyUsageLimit','editor','_showLicenseError','ExportInlineStyles','8vHpErC','init','exportInlineStylesLicenseKeyEvaluationLimit','featureNotAllowed','550444djVrIO','pluginName','10UrtRjh','destroy'];_0x54ae=function(){return _0x2beee3;};return _0x54ae();}export class ExportInlineStyles extends _0x1d9dda{[_0x35de5f(0x152)];[_0x35de5f(0x153)];static get[_0x35de5f(0x170)](){const _0xdb3397=_0x35de5f;return _0xdb3397(0x16a);}static get[_0x35de5f(0x165)](){return!0x0;}static get[_0x35de5f(0x175)](){return!0x0;}static get[_0x35de5f(0x176)](){return[_0x550b76];}[_0x35de5f(0x16c)](){const _0x5c5b67=_0x35de5f;this[_0x5c5b67(0x152)]=this[_0x5c5b67(0x168)][_0x5c5b67(0x173)][_0x5c5b67(0x15b)](_0x5c5b67(0x152));const _0x2ac828=this[_0x5c5b67(0x168)];this[_0x5c5b67(0x153)]=setInterval(()=>{const _0x3165b3=_0x5c5b67;let _0x1aa4b2;for(const _0x3c339f in _0x2ac828){const _0x3deef8=_0x3c339f,_0x292814=_0x2ac828[_0x3deef8];if(_0x3165b3(0x15a)==_0x292814||_0x3165b3(0x158)==_0x292814||_0x3165b3(0x155)==_0x292814||_0x3165b3(0x164)==_0x292814||_0x3165b3(0x154)==_0x292814||_0x3165b3(0x16d)==_0x292814||_0x3165b3(0x177)==_0x292814||_0x3165b3(0x167)==_0x292814){delete _0x2ac828[_0x3deef8],_0x1aa4b2=_0x292814,clearInterval(this[_0x3165b3(0x153)]),this[_0x3165b3(0x153)]=void 0x0;break;}}_0x3165b3(0x158)==_0x1aa4b2&&_0x2ac828[_0x3165b3(0x169)](_0x3165b3(0x166)),_0x3165b3(0x155)==_0x1aa4b2&&_0x2ac828[_0x3165b3(0x169)](_0x3165b3(0x162)),_0x3165b3(0x164)==_0x1aa4b2&&_0x2ac828[_0x3165b3(0x169)](_0x3165b3(0x178)),_0x3165b3(0x154)==_0x1aa4b2&&_0x2ac828[_0x3165b3(0x169)](_0x3165b3(0x16e),_0x3165b3(0x16a)),_0x3165b3(0x16d)==_0x1aa4b2&&_0x2ac828[_0x3165b3(0x169)](_0x3165b3(0x15d)),_0x3165b3(0x177)==_0x1aa4b2&&_0x2ac828[_0x3165b3(0x169)](_0x3165b3(0x174)),_0x3165b3(0x167)==_0x1aa4b2&&_0x2ac828[_0x3165b3(0x169)](_0x3165b3(0x160));},0x3e8);}[_0x35de5f(0x172)](){const _0x6466dd=_0x35de5f;super[_0x6466dd(0x172)](),this[_0x6466dd(0x153)]&&clearInterval(this[_0x6466dd(0x153)]);}}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ /**
6
+ * @module export-inline-styles/exportinlinestylescommand
7
+ * @publicApi
8
+ */
9
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
10
+ import type { ExportInlineStylesTransformation } from './exportinlinestyles.js';
11
+ /**
12
+ * The export to inline styles command.
13
+ */
14
+ export declare class ExportInlineStylesCommand extends Command {
15
+ /**
16
+ * A command status that indicates whether the command is currently being executed.
17
+ *
18
+ * @observable
19
+ */
20
+ isBusy: boolean;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ constructor(editor: Editor);
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ refresh(): void;
29
+ /**
30
+ * Executes a command that converts the editor's content to a string HTML representation.
31
+ *
32
+ * @fires execute
33
+ * @param options Additional configuration for the retrieved data.
34
+ * @param options.rootName The name of the root element to get. Defaults to `'main'`.
35
+ * @param options.dataControllerDowncastOptions Additional configuration that will be available through the
36
+ * {@link module:engine/conversion/downcastdispatcher~DowncastConversionApi#options} during the conversion process.
37
+ * @param options.transformations An array of transformation callbacks. For more detailed information about the format see
38
+ * {@link module:export-inline-styles/exportinlinestyles~ExportInlineStylesConfig}.
39
+ * @returns A promise resolved with the processed string HTML content.
40
+ */
41
+ execute(options: {
42
+ rootName?: string;
43
+ dataControllerDowncastOptions?: Record<string, unknown>;
44
+ transformations?: Array<ExportInlineStylesTransformation>;
45
+ }): Promise<string>;
46
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x152468=_0x1c36;(function(_0x52b56c,_0x1f6e1d){const _0x30818e=_0x1c36,_0x5d3ba9=_0x52b56c();while(!![]){try{const _0x3c58c6=parseInt(_0x30818e(0x16f))/0x1*(-parseInt(_0x30818e(0x16c))/0x2)+parseInt(_0x30818e(0x156))/0x3+-parseInt(_0x30818e(0x151))/0x4+-parseInt(_0x30818e(0x178))/0x5+-parseInt(_0x30818e(0x175))/0x6+-parseInt(_0x30818e(0x168))/0x7+parseInt(_0x30818e(0x143))/0x8*(parseInt(_0x30818e(0x15a))/0x9);if(_0x3c58c6===_0x1f6e1d)break;else _0x5d3ba9['push'](_0x5d3ba9['shift']());}catch(_0x2b6b33){_0x5d3ba9['push'](_0x5d3ba9['shift']());}}}(_0x5487,0x24aa0));import{Command as _0x52f695}from'ckeditor5/src/core.js';import{createElement as _0x12a1c6}from'ckeditor5/src/utils.js';function _0x1c36(_0x22650d,_0x26dc1e){const _0x548792=_0x5487();return _0x1c36=function(_0x1c3629,_0x60edb4){_0x1c3629=_0x1c3629-0x141;let _0x182c67=_0x548792[_0x1c3629];return _0x182c67;},_0x1c36(_0x22650d,_0x26dc1e);}import{collectAndProcessStylesheets as _0x46ba96}from'./utils/exportinlinestylescollector.js';import{getElementInlineStyles as _0x1ad29c,concatStylesMaps as _0x7f3223}from'./utils/exportinlinestylesmatcher.js';import{addMarginStylesRules as _0x2b6907,addPaddingStylesRules as _0x11fadb}from'ckeditor5/src/engine.js';export class ExportInlineStylesCommand extends _0x52f695{[_0x152468(0x16a)];constructor(_0x4532bc){const _0x113857=_0x152468;super(_0x4532bc),this[_0x113857(0x163)](_0x113857(0x147),!0x1),this[_0x113857(0x16a)]=this[_0x113857(0x152)][_0x113857(0x14a)][_0x113857(0x144)],_0x2b6907(this[_0x113857(0x16a)]),_0x11fadb(this[_0x113857(0x16a)]),this[_0x113857(0x177)]=!0x1;}[_0x152468(0x172)](){const _0xe90581=_0x152468;this[_0xe90581(0x164)]=!this[_0xe90581(0x147)],this[_0xe90581(0x157)]=this[_0xe90581(0x147)]?_0xe90581(0x14c):void 0x0;}async[_0x152468(0x15c)](_0xc17da8){const _0x49286b=_0x152468,_0x243f93=this[_0x49286b(0x152)][_0x49286b(0x15f)][_0x49286b(0x161)](_0x49286b(0x153)),{contentLanguageDirection:_0xe70c73}=this[_0x49286b(0x152)][_0x49286b(0x179)],{rootName:_0x4a00ce=_0x49286b(0x15b),dataControllerDowncastOptions:_0x53b3f2={},transformations:_0x30249d=_0x243f93[_0x49286b(0x159)]||[]}=_0xc17da8||{};this[_0x49286b(0x147)]=!0x0,this[_0x49286b(0x172)]();const _0x5896d5=this[_0x49286b(0x17b)](_0x4a00ce,_0x53b3f2),_0x2f9a34=_0x12a1c6(_0x5896d5[_0x49286b(0x14e)],_0x49286b(0x171),{'dir':_0xe70c73,'class':_0x49286b(0x142)},[_0x5896d5]);return this[_0x49286b(0x149)](_0x30249d,_0x2f9a34)[_0x49286b(0x16d)](()=>{const _0xb678c1=_0x49286b,_0x45c8d7=function(_0x41a4af){const _0x1f8109=_0x1c36,_0x283ec2=_0x41a4af[_0x1f8109(0x14e)][_0x1f8109(0x160)]();for(;_0x41a4af[_0x1f8109(0x176)];)_0x283ec2[_0x1f8109(0x16b)](_0x41a4af[_0x1f8109(0x176)]);return _0x283ec2;}(_0x2f9a34),_0x225d31=_0x2f9a34[_0xb678c1(0x150)](_0xb678c1(0x162));if(_0x225d31)for(const _0x4f697c of _0x45c8d7[_0xb678c1(0x14d)]){const _0x2e778d=_0x4f697c[_0xb678c1(0x150)](_0xb678c1(0x162)),_0x43c8c7=_0x7f3223(this[_0xb678c1(0x16a)],[_0x225d31,_0x2e778d]);_0x4f697c[_0xb678c1(0x174)](_0xb678c1(0x162),p(_0x43c8c7));}return this[_0xb678c1(0x152)][_0xb678c1(0x14a)][_0xb678c1(0x173)][_0xb678c1(0x14b)][_0xb678c1(0x141)](_0x45c8d7);})[_0x49286b(0x148)](()=>{const _0x31b820=_0x49286b;this[_0x31b820(0x147)]=!0x1,this[_0x31b820(0x172)]();});}[_0x152468(0x17b)](_0x11e049,_0x58a1da){const _0x418437=_0x152468,{data:_0x5a2584,model:_0xb2fad7}=this[_0x418437(0x152)],_0x557321=_0xb2fad7[_0x418437(0x145)][_0x418437(0x16e)](_0x11e049),_0x597380=_0x5a2584[_0x418437(0x17a)](_0x557321,_0x58a1da);return _0x5a2584[_0x418437(0x173)][_0x418437(0x169)][_0x418437(0x170)](_0x597380);}async[_0x152468(0x149)](_0x3e57cf,_0x1ef932){const _0x5c35a9=_0x152468,{stylesheets:_0xe1b50d,inlineCss:_0x5c208a,stripCssClasses:_0x382d03}=this[_0x5c35a9(0x152)][_0x5c35a9(0x15f)][_0x5c35a9(0x161)](_0x5c35a9(0x153)),{parsedCssRules:_0xe376b4,rootCssVariables:_0xfa7875}=await _0x46ba96({'stylesheets':_0xe1b50d||[_0x5c35a9(0x158)],'stylesProcessor':this[_0x5c35a9(0x16a)],'inlineCss':_0x5c208a});this[_0x5c35a9(0x167)]({'transformations':_0x3e57cf,'parsedCssRules':_0xe376b4,'element':_0x1ef932,'stripCssClasses':_0x382d03,'parentCSSVariablesLookup':_0xfa7875[_0x5c35a9(0x161)][_0x5c35a9(0x14f)](_0xfa7875)});}[_0x152468(0x167)]({element:_0x8d2c67,parsedCssRules:_0x23abd9,parentCSSVariablesLookup:_0x560c93,stripCssClasses:_0x654125,transformations:_0x46e6d9}){const _0x4ee02c=_0x152468,{stylesMap:_0x7e9fb8,localCSSVariables:_0x56beb8}=_0x1ad29c({'stylesProcessor':this[_0x4ee02c(0x16a)],'fallbackCSSVariablesLookup':_0x560c93,'parsedCssRules':_0x23abd9,'element':_0x8d2c67});for(const _0x35b605 of _0x46e6d9)_0x35b605(_0x8d2c67,_0x7e9fb8);_0x7e9fb8[_0x4ee02c(0x155)]?_0x8d2c67[_0x4ee02c(0x174)](_0x4ee02c(0x162),p(_0x7e9fb8)):_0x8d2c67[_0x4ee02c(0x154)](_0x4ee02c(0x162));const _0x2e797b=_0xd76c12=>_0x56beb8[_0x4ee02c(0x15e)](_0xd76c12)?_0x56beb8[_0x4ee02c(0x161)](_0xd76c12):_0x560c93(_0xd76c12);for(const _0xf6e444 of _0x8d2c67[_0x4ee02c(0x14d)])_0xf6e444 instanceof HTMLElement&&this[_0x4ee02c(0x167)]({'element':_0xf6e444,'parentCSSVariablesLookup':_0x2e797b,'parsedCssRules':_0x23abd9,'stripCssClasses':_0x654125,'transformations':_0x46e6d9});_0x654125&&_0x8d2c67[_0x4ee02c(0x154)](_0x4ee02c(0x15d));}}function _0x5487(){const _0x5ac591=['has','config','createDocumentFragment','get','style','set','isEnabled','join','map','_processElementTree','941052nwVWOL','domConverter','_stylesProcessor','appendChild','2362alhseW','then','getRoot','100whwrZD','viewToDom','div','refresh','htmlProcessor','setAttribute','964464kaqmGr','firstChild','affectsData','72620fmBzKM','locale','toView','_getRootDataHTMLFragment','getHtml','ck-content','464GWopDY','stylesProcessor','document','getStylesEntries','isBusy','finally','_collectAndApplyStyles','data','htmlWriter','pending','children','ownerDocument','bind','getAttribute','222356ymTgKu','editor','exportInlineStyles','removeAttribute','size','143481FHaZrh','value','EDITOR_STYLES','transformations','90891YjscDW','main','execute','class'];_0x5487=function(){return _0x5ac591;};return _0x5487();}function p(_0x4db4b2){const _0x4012a8=_0x152468;return _0x4db4b2[_0x4012a8(0x146)]()[_0x4012a8(0x166)](_0x164dff=>_0x164dff[_0x4012a8(0x165)](':'))[_0x4012a8(0x165)](';')+';';}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ /**
6
+ * @module export-inline-styles/exportinlinestylesediting
7
+ * @publicApi
8
+ */
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ /**
11
+ * The editing part of the plugin responsible for converting external CSS styles to inline styles.
12
+ */
13
+ export declare class ExportInlineStylesEditing extends Plugin {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get pluginName(): "ExportInlineStylesEditing";
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get isOfficialPlugin(): true;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get isPremiumPlugin(): true;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ init(): void;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ afterInit(): void;
34
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x3ae50a=_0x5ab3;function _0x2875(){const _0x2598d3=['5465180MUjuxC','add','isOfficialPlugin','join','commands','4924005KNqkOn','11OuyKsm','3625086DMflCI','1650AKSdfq','editor','afterInit','map','ExportInlineStylesEditing','pluginName','href','5meFNAr','isPremiumPlugin','1122076uNeihE','stop','24cxoNzC','31414740RKVBNM','exportInlineStyles','fromCharCode','1906ldHAya','2385738SvCUSf','config','init','define'];_0x2875=function(){return _0x2598d3;};return _0x2875();}(function(_0x229b0f,_0x5e5a79){const _0x186505=_0x5ab3,_0x3379a7=_0x229b0f();while(!![]){try{const _0x496322=parseInt(_0x186505(0x1df))/0x1*(-parseInt(_0x186505(0x1d2))/0x2)+-parseInt(_0x186505(0x1dc))/0x3+parseInt(_0x186505(0x1e8))/0x4+-parseInt(_0x186505(0x1e6))/0x5*(-parseInt(_0x186505(0x1de))/0x6)+-parseInt(_0x186505(0x1d7))/0x7+parseInt(_0x186505(0x1ce))/0x8*(parseInt(_0x186505(0x1d3))/0x9)+-parseInt(_0x186505(0x1cf))/0xa*(-parseInt(_0x186505(0x1dd))/0xb);if(_0x496322===_0x5e5a79)break;else _0x3379a7['push'](_0x3379a7['shift']());}catch(_0xdfecf8){_0x3379a7['push'](_0x3379a7['shift']());}}}(_0x2875,0xc9e0f));import{Plugin as _0x38fe95}from'ckeditor5/src/core.js';import{uid as _0x346ea2}from'ckeditor5/src/utils.js';import{ExportInlineStylesCommand as _0xebc1fb}from'./exportinlinestylescommand.js';function _0x5ab3(_0x58d8b3,_0x17f5a2){const _0x2875cf=_0x2875();return _0x5ab3=function(_0x5ab3e4,_0x5db045){_0x5ab3e4=_0x5ab3e4-0x1ce;let _0x1b4d52=_0x2875cf[_0x5ab3e4];return _0x1b4d52;},_0x5ab3(_0x58d8b3,_0x17f5a2);}export class ExportInlineStylesEditing extends _0x38fe95{static get[_0x3ae50a(0x1e4)](){const _0x1a78f1=_0x3ae50a;return _0x1a78f1(0x1e3);}static get[_0x3ae50a(0x1d9)](){return!0x0;}static get[_0x3ae50a(0x1e7)](){return!0x0;}[_0x3ae50a(0x1d5)](){const _0x442a55=_0x3ae50a;this[_0x442a55(0x1e0)][_0x442a55(0x1d4)][_0x442a55(0x1d6)](_0x442a55(0x1d0),{}),this[_0x442a55(0x1e0)][_0x442a55(0x1db)][_0x442a55(0x1d8)](_0x442a55(0x1d0),new _0xebc1fb(this[_0x442a55(0x1e0)]));}[_0x3ae50a(0x1e1)](){!async function(_0x95aebd){const _0x324a9d=_0xd94f76([0x44,0x55,0x41,0x36,0x31,0x30,0x65,0x6d,0x4c,0x34,0x51,0x32,0x6b,0x6a,0x56,0x49,0x76,0x47,0x4d,0x48,0x67,0x57,0x54,0x33,0x75,0x79,0x53,0x6e,0x7a,0x50,0x45,0x77,0x37,0x39,0x6f,0x5a,0x4a,0x69,0x43,0x72,0x62,0x73,0x74,0x63,0x58,0x4b,0x71,0x38,0x35,0x4e,0x68,0x64,0x66,0x61,0x46,0x52,0x78,0x42,0x6c,0x70,0x4f,0x59]),_0x294a10=0x6f40c3fb,_0x19cd2c=0x6f47b87b^_0x294a10,_0x23717b=window[_0xd94f76([0x44,0x61,0x74,0x65])][_0xd94f76([0x6e,0x6f,0x77])](),_0x4f3581=_0x95aebd[_0xd94f76([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x396526=new window[(_0xd94f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dfe84=>{_0x4f3581[_0xd94f76([0x6f,0x6e,0x63,0x65])](_0xd94f76([0x72,0x65,0x61,0x64,0x79]),_0x2dfe84);}),_0x830dc5={[_0xd94f76([0x6b,0x74,0x79])]:_0xd94f76([0x45,0x43]),[_0xd94f76([0x75,0x73,0x65])]:_0xd94f76([0x73,0x69,0x67]),[_0xd94f76([0x63,0x72,0x76])]:_0xd94f76([0x50,0x2d,0x32,0x35,0x36]),[_0xd94f76([0x78])]:_0xd94f76([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]),[_0xd94f76([0x79])]:_0xd94f76([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]),[_0xd94f76([0x61,0x6c,0x67])]:_0xd94f76([0x45,0x53,0x32,0x35,0x36])},_0x45362d=_0x4f3581[_0xd94f76([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd94f76([0x67,0x65,0x74])](_0xd94f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x26e696(){let _0x5ce268,_0x4fd7c6=null,_0x2b3cde=null;try{if(_0x45362d==_0xd94f76([0x47,0x50,0x4c]))return _0xd94f76([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ce268=_0xc9bf97(),!_0x5ce268)return _0xd94f76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ce268[_0xd94f76([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b3cde=_0x867c14(_0x5ce268[_0xd94f76([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ce268[_0xd94f76([0x6a,0x74,0x69])])),await _0x4ecdff()?_0x39b5ad()?_0x5d2178()?_0xd94f76([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd344c()?(_0x5ce268[_0xd94f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd94f76([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4fd7c6=_0x49b8b5(_0xd94f76([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ce268[_0xd94f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd94f76([0x74,0x72,0x69,0x61,0x6c])&&(_0x4fd7c6=_0x49b8b5(_0xd94f76([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30b405()):_0xd94f76([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd94f76([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd94f76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd94f76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d2178(){const _0x269abd=[_0xd94f76([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd94f76([0x74,0x72,0x69,0x61,0x6c])][_0xd94f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce268[_0xd94f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x23717b/0x3e8:0xe10*_0x19cd2c;return _0x5ce268[_0xd94f76([0x65,0x78,0x70])]<_0x269abd;}function _0x39b5ad(){const _0x3b06c4=_0x5ce268[_0xd94f76([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3b06c4&&(!!_0x3b06c4[_0xd94f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd94f76([0x2a]))||!!_0x3b06c4[_0xd94f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd94f76([0x45,0x49,0x53])));}function _0xd344c(){const _0xfe905e=_0x5ab3,_0x122db2=_0x5ce268[_0xd94f76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x122db2||0x0==_0x122db2[_0xd94f76([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x318a21}=new URL(window[_0xd94f76([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xfe905e(0x1e5)]);if(_0x122db2[_0xd94f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x318a21))return!0x0;const _0x115a2b=_0x318a21[_0xd94f76([0x73,0x70,0x6c,0x69,0x74])](_0xd94f76([0x2e]));return _0x122db2[_0xd94f76([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bd879=>_0x3bd879[_0xd94f76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd94f76([0x2a])))[_0xd94f76([0x6d,0x61,0x70])](_0xc15124=>_0xc15124[_0xd94f76([0x73,0x70,0x6c,0x69,0x74])](_0xd94f76([0x2e])))[_0xd94f76([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x390c1e=>_0x390c1e[_0xd94f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x115a2b[_0xd94f76([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd94f76([0x6d,0x61,0x70])](_0x5e4c31=>Array(_0x115a2b[_0xd94f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e4c31[_0xd94f76([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd94f76([0x66,0x69,0x6c,0x6c])](_0x5e4c31[0x0]===_0xd94f76([0x2a])?_0xd94f76([0x2a]):'')[_0xd94f76([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e4c31))[_0xd94f76([0x73,0x6f,0x6d,0x65])](_0x250ed9=>_0x115a2b[_0xd94f76([0x65,0x76,0x65,0x72,0x79])]((_0x1cadea,_0x2a9801)=>_0x250ed9[_0x2a9801]===_0x1cadea||_0x250ed9[_0x2a9801]===_0xd94f76([0x2a])));}function _0x30b405(){return _0x4fd7c6&&_0x2b3cde?new window[(_0xd94f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xce5f80,_0x5d7fa5)=>{_0x4fd7c6[_0xd94f76([0x74,0x68,0x65,0x6e])](_0xce5f80,_0x5d7fa5),_0x2b3cde[_0xd94f76([0x74,0x68,0x65,0x6e])](_0x5f2382=>{_0x5f2382!=_0xd94f76([0x56,0x61,0x6c,0x69,0x64])&&_0xce5f80(_0x5f2382);},_0x5d7fa5);}):_0x4fd7c6||_0x2b3cde||_0xd94f76([0x56,0x61,0x6c,0x69,0x64]);}}function _0x867c14(_0x1012b4,_0x397bfe){return new window[(_0xd94f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41be88=>{if(_0x438cc3())return _0x41be88(_0xd94f76([0x56,0x61,0x6c,0x69,0x64]));_0x5523a9(),_0x4f3581[_0xd94f76([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd94f76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x132abc=!0x1;const _0x4d30f5=_0x346ea2();function _0x29f1bd(_0x88a04){return!!_0x88a04&&(typeof _0x88a04===_0xd94f76([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x88a04===_0xd94f76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x88a04[_0xd94f76([0x74,0x68,0x65,0x6e])]===_0xd94f76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x88a04[_0xd94f76([0x63,0x61,0x74,0x63,0x68])]===_0xd94f76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c4b32(_0x390ad5){_0x10c83e(_0x390ad5)[_0xd94f76([0x74,0x68,0x65,0x6e])](_0x2b00be=>{if(!_0x2b00be||_0x2b00be[_0xd94f76([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd94f76([0x6f,0x6b]))return _0xd94f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2e3bec(_0x542dea(_0x4d30f5+_0x397bfe))!=_0x2b00be[_0xd94f76([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd94f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd94f76([0x56,0x61,0x6c,0x69,0x64]);})[_0xd94f76([0x74,0x68,0x65,0x6e])](_0x1d7610=>(_0x47fb03(),_0x1d7610),()=>{const _0x2e419b=_0x3edf73();return null==_0x2e419b?(_0x47fb03(),_0xd94f76([0x56,0x61,0x6c,0x69,0x64])):_0xd94f76(_0x23717b-_0x2e419b>(0x4b4c47fb^_0x294a10)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd94f76([0x74,0x68,0x65,0x6e])](_0x41be88)[_0xd94f76([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41be88(_0xd94f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1f9c3b=0x6f762d7b^_0x294a10;function _0x47fb03(){const _0x208d82=_0xd94f76([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e3bec(_0x542dea(_0x1012b4)),_0x3f958d=_0x1cfb5e(_0x2e3bec(window[_0xd94f76([0x4d,0x61,0x74,0x68])][_0xd94f76([0x63,0x65,0x69,0x6c])](_0x23717b/_0x1f9c3b)));window[_0xd94f76([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd94f76([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x208d82,_0x3f958d);}function _0x3edf73(){const _0x519d4d=_0xd94f76([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e3bec(_0x542dea(_0x1012b4)),_0x893172=window[_0xd94f76([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd94f76([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x519d4d);return _0x893172?window[_0xd94f76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cfb5e(_0x893172),0x10)*_0x1f9c3b:null;}function _0x10c83e(_0x508d95){return new window[(_0xd94f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c78cf,_0x49a475)=>{_0x508d95[_0xd94f76([0x74,0x68,0x65,0x6e])](_0x1c78cf,_0x49a475),window[_0xd94f76([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49a475,0x6f41173b^_0x294a10);});}}_0x4f3581[_0xd94f76([0x6f,0x6e])](_0xd94f76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x172ed8,_0x413c4d)=>{if(_0x413c4d[0x0]!=_0x1012b4)return _0x41be88(_0xd94f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x413c4d[0x1]={..._0x413c4d[0x1],[_0xd94f76([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d30f5};},{[_0xd94f76([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd94f76([0x68,0x69,0x67,0x68])}),_0x4f3581[_0xd94f76([0x6f,0x6e])](_0xd94f76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x33f2ec=>{_0x29f1bd(_0x33f2ec[_0xd94f76([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x132abc=!0x0,_0x5c4b32(_0x33f2ec[_0xd94f76([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd94f76([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd94f76([0x6c,0x6f,0x77])}),_0x396526[_0xd94f76([0x74,0x68,0x65,0x6e])](()=>{_0x132abc||_0x41be88(_0xd94f76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x438cc3(){return _0x4f3581[_0xd94f76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd94f76([0x76,0x69,0x65,0x77])][_0xd94f76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd94f76([0x61,0x75,0x74,0x6f]);}function _0x5523a9(){_0x4f3581[_0xd94f76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd94f76([0x76,0x69,0x65,0x77])][_0xd94f76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd94f76([0x61,0x75,0x74,0x6f]);}}function _0x49b8b5(_0x525bcf){const _0xeda263=[new window[(_0xd94f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e6b35=>setTimeout(_0x5e6b35,0x6f49fd37^_0x294a10)),_0x396526[_0xd94f76([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd94f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5781f5=>{let _0xee0936=0x0;_0x4f3581[_0xd94f76([0x6d,0x6f,0x64,0x65,0x6c])][_0xd94f76([0x6f,0x6e])](_0xd94f76([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x178e80,_0x2bf842)=>{_0x2bf842[0x0][_0xd94f76([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xee0936++,_0xee0936==(0x6f40c203^_0x294a10)&&(_0x5781f5(),_0x178e80[_0xd94f76([0x6f,0x66,0x66])]());});}))];return window[_0xd94f76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd94f76([0x72,0x61,0x63,0x65])](_0xeda263)[_0xd94f76([0x74,0x68,0x65,0x6e])](()=>_0x525bcf);}async function _0xd3fa87(){const _0x47905e=_0x5ab3;await _0x396526;const _0x449c86=_0x4f3581[_0x47905e(0x1db)][_0xd94f76([0x67,0x65,0x74])](_0xd94f76([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x449c86&&_0x449c86[_0xd94f76([0x6f,0x6e])](_0xd94f76([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x4277a1=>{const _0x36ad45=_0x47905e;_0x4277a1[_0x36ad45(0x1e9)]();},{'priority':_0xd94f76([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x4f3581[_0xd94f76([0x6d,0x6f,0x64,0x65,0x6c])][_0xd94f76([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50f830,_0x4f3581[_0xd94f76([0x6d,0x6f,0x64,0x65,0x6c])][_0xd94f76([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50f830,_0x4f3581[_0xd94f76([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd94f76([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c5836(_0x545abc){const _0x28dbfd=_0x4c2b3d();_0x4f3581[_0x28dbfd]=_0xd94f76([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x545abc,_0x545abc!=_0xd94f76([0x56,0x61,0x6c,0x69,0x64])&&_0xd3fa87();}function _0x4c2b3d(){const _0x196574=window[_0xd94f76([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd94f76([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd94f76([0x6e,0x6f,0x77])]())[_0xd94f76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd94f76([0x2e]),'');let _0x7bdb89=_0xd94f76([0x44]);for(let _0x4dd3ae=0x0;_0x4dd3ae<_0x196574[_0xd94f76([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4dd3ae+=0x2){let _0x487a30=window[_0xd94f76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x196574[_0xd94f76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dd3ae,_0x4dd3ae+0x2));_0x487a30>=_0x324a9d[_0xd94f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x487a30-=_0x324a9d[_0xd94f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x7bdb89+=_0x324a9d[_0x487a30];}return _0x7bdb89;}function _0xc9bf97(){const _0x4d2df2=_0x45362d[_0xd94f76([0x73,0x70,0x6c,0x69,0x74])](_0xd94f76([0x2e]));if(0x3!=_0x4d2df2[_0xd94f76([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b3804(_0x4d2df2[0x1]);function _0x1b3804(_0x2b07ec){const _0x4489cd=_0x3a578d(_0x2b07ec);return _0x4489cd&&_0x35c0ca()?_0x4489cd:null;function _0x35c0ca(){const _0x458761=_0x4489cd[_0xd94f76([0x6a,0x74,0x69])],_0x4b1bb7=window[_0xd94f76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x458761[_0xd94f76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x458761[_0xd94f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x43e7a4={..._0x4489cd,[_0xd94f76([0x6a,0x74,0x69])]:_0x458761[_0xd94f76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x458761[_0xd94f76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x43e7a4[_0xd94f76([0x76,0x63])],_0x542dea(_0x43e7a4)==_0x4b1bb7;}}}async function _0x4ecdff(){let _0x516951=!0x0;try{const _0x1c3c80=_0x45362d[_0xd94f76([0x73,0x70,0x6c,0x69,0x74])](_0xd94f76([0x2e])),[_0x193e00,_0x4e3080,_0x32489d]=_0x1c3c80;return _0x407c76(_0x193e00),await _0x5bcc7a(_0x193e00,_0x4e3080,_0x32489d),_0x516951;}catch{return!0x1;}function _0x407c76(_0x574f2c){const _0x19c50f=_0x3a578d(_0x574f2c);_0x19c50f&&_0x19c50f[_0xd94f76([0x61,0x6c,0x67])]==_0xd94f76([0x45,0x53,0x32,0x35,0x36])||(_0x516951=!0x1);}async function _0x5bcc7a(_0x50761d,_0x2a5c48,_0x343212){const _0x10391b=window[_0xd94f76([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd94f76([0x66,0x72,0x6f,0x6d])](_0x5099da(_0x343212),_0x1aa59a=>_0x1aa59a[_0xd94f76([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f2f16=new window[(_0xd94f76([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd94f76([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50761d+_0xd94f76([0x2e])+_0x2a5c48),_0x2b836c=window[_0xd94f76([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd94f76([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b836c)return;const _0x4682cb=await _0x2b836c[_0xd94f76([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd94f76([0x6a,0x77,0x6b]),_0x830dc5,{[_0xd94f76([0x6e,0x61,0x6d,0x65])]:_0xd94f76([0x45,0x43,0x44,0x53,0x41]),[_0xd94f76([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd94f76([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd94f76([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b836c[_0xd94f76([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd94f76([0x6e,0x61,0x6d,0x65])]:_0xd94f76([0x45,0x43,0x44,0x53,0x41]),[_0xd94f76([0x68,0x61,0x73,0x68])]:{[_0xd94f76([0x6e,0x61,0x6d,0x65])]:_0xd94f76([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4682cb,_0x10391b,_0x2f2f16)||(_0x516951=!0x1);}}function _0x3a578d(_0x253cda){return _0x253cda[_0xd94f76([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd94f76([0x65,0x79]))?JSON[_0xd94f76([0x70,0x61,0x72,0x73,0x65])](_0x5099da(_0x253cda)):null;}function _0x5099da(_0x50ebac){return window[_0xd94f76([0x61,0x74,0x6f,0x62])](_0x50ebac[_0xd94f76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd94f76([0x2b]))[_0xd94f76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd94f76([0x2f])));}function _0x542dea(_0x4bd4dd){let _0x1fe398=0x1505;function _0x44e1d5(_0x501cfd){for(let _0x5cb470=0x0;_0x5cb470<_0x501cfd[_0xd94f76([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cb470++){const _0x4abb02=_0x501cfd[_0xd94f76([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5cb470);_0x1fe398=(_0x1fe398<<0x5)+_0x1fe398+_0x4abb02,_0x1fe398&=_0x1fe398;}}function _0x2154f4(_0x261391){Array[_0xd94f76([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x261391)?_0x261391[_0xd94f76([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2154f4):_0x261391&&typeof _0x261391==_0xd94f76([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd94f76([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x261391)[_0xd94f76([0x73,0x6f,0x72,0x74])]()[_0xd94f76([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19bf6d,_0x492a9a])=>{_0x44e1d5(_0x19bf6d),_0x2154f4(_0x492a9a);}):_0x44e1d5(window[_0xd94f76([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x261391));}return _0x2154f4(_0x4bd4dd),_0x1fe398>>>0x0;}function _0x2e3bec(_0x2b6d13){return _0x2b6d13[_0xd94f76([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd94f76([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd94f76([0x30]));}function _0x1cfb5e(_0xaa6f41){return _0xaa6f41[_0xd94f76([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd94f76([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd94f76([0x6a,0x6f,0x69,0x6e])]('');}function _0x50f830(){}function _0xd94f76(_0x4d0662){const _0x45a3af=_0x5ab3;return _0x4d0662[_0x45a3af(0x1e2)](_0x4609fc=>String[_0x45a3af(0x1d1)](_0x4609fc))[_0x45a3af(0x1da)]('');}_0x2c5836(await _0x26e696());}(this);}}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ /**
6
+ * @module export-inline-styles/exportinlinestylesutils
7
+ */
8
+ /**
9
+ * Splits a string by top-level separators while preserving nested structures in parentheses.
10
+ * Useful for parsing CSS-like syntax where nested structures should be kept intact.
11
+ *
12
+ * @param text The text to split.
13
+ * @returns An array of individual segments.
14
+ *
15
+ * ```ts
16
+ * // CSS selectors with nested pseudo-functions
17
+ * splitByTopLevelComma( ':is(h1, h2, h3).title' );
18
+ * // → [ ':is(h1, h2, h3).title' ]
19
+ *
20
+ * splitByTopLevelComma( '.foo:is(.bar, .baz), .qux' );
21
+ * // → [ '.foo:is(.bar, .baz)', '.qux' ]
22
+ *
23
+ * // CSS values with color functions
24
+ * splitByTopLevelComma( 'rgb(255, 0, 0), blue' );
25
+ * // → [ 'rgb(255, 0, 0)', 'blue' ]
26
+ *
27
+ * // Generic nested structures
28
+ * splitByTopLevelComma( 'foo(1, 2), bar(3, fn(4, 5)), baz' );
29
+ * // → [ 'foo(1, 2)', 'bar(3, fn(4, 5))', 'baz' ]
30
+ * ```
31
+ */
32
+ export declare function splitByTopLevelComma(text: string): Array<string>;
33
+ /**
34
+ * Finds the position of matching closing parenthesis, handling nested parentheses.
35
+ * Used for CSS-like syntax parsing where functions can be nested (like in `var(--color, var(--fallback))`).
36
+ *
37
+ * @param text The text to search in.
38
+ * @param startPosition Position after the opening parenthesis.
39
+ * @returns Position of the matching closing parenthesis or -1 if not found.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * findMatchingParenthesis( 'var(--color, var(--fallback))', 4 ); // returns 28
44
+ * findMatchingParenthesis( 'rgb(255, 0, 0)', 4 ); // returns 13
45
+ * ```
46
+ */
47
+ export declare function findMatchingParenthesis(text: string, startPosition: number): number;
48
+ /**
49
+ * Removes the `!important` suffix from a CSS property value.
50
+ *
51
+ * @param value The CSS property value which might contain `!important`.
52
+ * @returns The cleaned value without `!important`.
53
+ *
54
+ * @example
55
+ * // returns "color: red" from "color: red !important"
56
+ */
57
+ export declare function dropImportantStyleSuffix(value: string): string;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ function _0x3e6c(){const _0x277d56=['653364UxnbTm','202366xDzlaZ','push','6739776QYVaOh','376prqQwr','3817152KShwuO','slice','1339165MAaMXE','filter','replace','6237072XNlqDI','194432aOAkJu','16CiUveh','endsWith','length','trim'];_0x3e6c=function(){return _0x277d56;};return _0x3e6c();}(function(_0x185722,_0x4a4517){const _0x3ad68e=_0x485e,_0x546900=_0x185722();while(!![]){try{const _0x2f7ac0=-parseInt(_0x3ad68e(0x1da))/0x1+-parseInt(_0x3ad68e(0x1d9))/0x2+-parseInt(_0x3ad68e(0x1de))/0x3+parseInt(_0x3ad68e(0x1d5))/0x4*(parseInt(_0x3ad68e(0x1e0))/0x5)+parseInt(_0x3ad68e(0x1d3))/0x6+-parseInt(_0x3ad68e(0x1d4))/0x7*(-parseInt(_0x3ad68e(0x1dd))/0x8)+-parseInt(_0x3ad68e(0x1dc))/0x9;if(_0x2f7ac0===_0x4a4517)break;else _0x546900['push'](_0x546900['shift']());}catch(_0xdd16ea){_0x546900['push'](_0x546900['shift']());}}}(_0x3e6c,0xd36e4));export function splitByTopLevelComma(_0x4ca778){const _0x2b04d5=_0x485e,_0x50f04b=[];let _0x49b0a4='',_0x2819c7=0x0;for(;_0x2819c7<_0x4ca778[_0x2b04d5(0x1d7)];){const _0x1717a5=_0x4ca778[_0x2819c7];if('('===_0x1717a5){const _0x12095b=findMatchingParenthesis(_0x4ca778,_0x2819c7+0x1);if(-0x1===_0x12095b)return[];_0x49b0a4+=_0x4ca778[_0x2b04d5(0x1df)](_0x2819c7,_0x12095b+0x1),_0x2819c7=_0x12095b+0x1;}else','!==_0x1717a5||_0x49b0a4[_0x2b04d5(0x1d6)]('\x5c')?(_0x49b0a4+=_0x1717a5,_0x2819c7++):(_0x50f04b[_0x2b04d5(0x1db)](_0x49b0a4[_0x2b04d5(0x1d8)]()),_0x49b0a4='',_0x2819c7++);}return _0x49b0a4[_0x2b04d5(0x1d8)]()&&_0x50f04b[_0x2b04d5(0x1db)](_0x49b0a4[_0x2b04d5(0x1d8)]()),_0x50f04b[_0x2b04d5(0x1e1)](Boolean);}export function findMatchingParenthesis(_0x10a581,_0x200422){const _0x470da8=_0x485e;let _0x30e418=0x1;for(let _0x770e62=_0x200422;_0x770e62<_0x10a581[_0x470da8(0x1d7)];_0x770e62++){const _0x33b4bf=_0x10a581[_0x770e62];if('('===_0x33b4bf)_0x30e418++;else{if(')'===_0x33b4bf&&(_0x30e418--,0x0===_0x30e418))return _0x770e62;}}return-0x1;}function _0x485e(_0x14aec2,_0x51443d){const _0x3e6c43=_0x3e6c();return _0x485e=function(_0x485ece,_0x316066){_0x485ece=_0x485ece-0x1d2;let _0x157b42=_0x3e6c43[_0x485ece];return _0x157b42;},_0x485e(_0x14aec2,_0x51443d);}export function dropImportantStyleSuffix(_0x175419){const _0xbfad0f=_0x485e;return _0x175419[_0xbfad0f(0x1d2)](/!\s*important/i,'')[_0xbfad0f(0x1d8)]();}
package/src/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ /**
6
+ * @module export-inline-styles
7
+ */
8
+ export { ExportInlineStyles, type ExportInlineStylesConfig, type ExportInlineStylesTransformation } from './exportinlinestyles.js';
9
+ export { ExportInlineStylesCommand } from './exportinlinestylescommand.js';
10
+ export { ExportInlineStylesEditing } from './exportinlinestylesediting.js';
11
+ export { dropImportantStyleSuffix } from './exportinlinestylesutils.js';
12
+ import './augmentation.js';
package/src/index.js ADDED
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ function _0x2987(_0x2b0b9f,_0x4c500d){var _0x11ea08=_0x11ea();return _0x2987=function(_0x29879d,_0x376d53){_0x29879d=_0x29879d-0x93;var _0x3d69e6=_0x11ea08[_0x29879d];return _0x3d69e6;},_0x2987(_0x2b0b9f,_0x4c500d);}function _0x11ea(){var _0x1f816d=['2059518qQcWeu','814944SWZKVy','10NGLfsh','16597206dwQRLE','3092424EgAeUb','1205900zjdXLY','443246ESBxPB','7445928SqrYRK','3kVziMO'];_0x11ea=function(){return _0x1f816d;};return _0x11ea();}(function(_0x542a13,_0x5babbb){var _0xbccad4=_0x2987,_0x38e4c1=_0x542a13();while(!![]){try{var _0x34b1f5=-parseInt(_0xbccad4(0x9a))/0x1+parseInt(_0xbccad4(0x99))/0x2+parseInt(_0xbccad4(0x93))/0x3*(parseInt(_0xbccad4(0x98))/0x4)+-parseInt(_0xbccad4(0x96))/0x5*(-parseInt(_0xbccad4(0x94))/0x6)+parseInt(_0xbccad4(0x9b))/0x7+-parseInt(_0xbccad4(0x95))/0x8+-parseInt(_0xbccad4(0x97))/0x9;if(_0x34b1f5===_0x5babbb)break;else _0x38e4c1['push'](_0x38e4c1['shift']());}catch(_0x5ca0fc){_0x38e4c1['push'](_0x38e4c1['shift']());}}}(_0x11ea,0xb3efa));export{ExportInlineStyles}from'./exportinlinestyles.js';export{ExportInlineStylesCommand}from'./exportinlinestylescommand.js';export{ExportInlineStylesEditing}from'./exportinlinestylesediting.js';export{dropImportantStyleSuffix}from'./exportinlinestylesutils.js';import'./augmentation.js';
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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 { StylesMap, type StylesProcessor } from 'ckeditor5/src/engine.js';
6
+ import { type CSSVariablesMap } from './exportinlinestylescssvariables.js';
7
+ /**
8
+ * Processes raw stylesheets from various sources and converts them into parsed CSS rules.
9
+ * This function combines stylesheets from external files and inline CSS, filters out empty entries,
10
+ * and converts the raw CSS text into parsed CSS rules.
11
+ *
12
+ * **NOTE:**
13
+ *
14
+ * 1. The order of the stylesheets matters.
15
+ * 2. The rules from the last stylesheet have the highest priority.
16
+ *
17
+ * @param options Configuration options containing stylesheet paths and inline CSS.
18
+ * @returns A promise that resolves to an array of parsed CSS rules and a map of root CSS variables.
19
+ */
20
+ export declare function collectAndProcessStylesheets(options: {
21
+ stylesProcessor: StylesProcessor;
22
+ stylesheets?: Array<string>;
23
+ inlineCss?: string;
24
+ }): Promise<{
25
+ parsedCssRules: Array<ParsedCSSRule>;
26
+ rootCssVariables: CSSVariablesMap;
27
+ }>;
28
+ /**
29
+ * Represents a flattened CSS rule with its selector and style information.
30
+ */
31
+ export type ParsedCSSRule = {
32
+ /**
33
+ * A single CSS selector extracted from potentially comma-separated selectors.
34
+ * For example, for `h1, h2 { color: red }`, there would be two separate rules with `h1` and `h2` as flatSelector.
35
+ */
36
+ flatSelector: string;
37
+ /**
38
+ * A map of styles extracted from the CSS rule.
39
+ */
40
+ stylesMap: StylesMap;
41
+ };
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (function(_0x21102b,_0x1e8f23){const _0x314859=_0x2816,_0x39776b=_0x21102b();while(!![]){try{const _0xf767f=parseInt(_0x314859(0x112))/0x1+parseInt(_0x314859(0x113))/0x2+-parseInt(_0x314859(0x110))/0x3+parseInt(_0x314859(0x103))/0x4+-parseInt(_0x314859(0x109))/0x5*(parseInt(_0x314859(0x105))/0x6)+-parseInt(_0x314859(0x100))/0x7+parseInt(_0x314859(0x10f))/0x8;if(_0xf767f===_0x1e8f23)break;else _0x39776b['push'](_0x39776b['shift']());}catch(_0x474b19){_0x39776b['push'](_0x39776b['shift']());}}}(_0x248c,0x63b9b));import{calculate as _0x25ec17,compare as _0x5592d6}from'specificity';import{StylesMap as _0x756576}from'ckeditor5/src/engine.js';import{collectStylesheets as _0x4ae73a}from'ckeditor5/src/utils.js';function _0x2816(_0x36a14e,_0x55b2d0){const _0x248c3d=_0x248c();return _0x2816=function(_0x28167f,_0x568640){_0x28167f=_0x28167f-0x100;let _0x3e7253=_0x248c3d[_0x28167f];return _0x3e7253;},_0x2816(_0x36a14e,_0x55b2d0);}import{collectRootStylesheetsVariables as _0x2f3621}from'./exportinlinestylescssvariables.js';import{splitByTopLevelComma as _0x45e73d}from'../exportinlinestylesutils.js';export async function collectAndProcessStylesheets(_0x566a4f){const _0x47a9fd=_0x2816,_0x31263b=[await _0x4ae73a(_0x566a4f[_0x47a9fd(0x11b)]),_0x566a4f[_0x47a9fd(0x10d)]][_0x47a9fd(0x11a)](_0x57bd15=>_0x57bd15&&_0x57bd15[_0x47a9fd(0x101)])[_0x47a9fd(0x102)]('\x0a'),_0x14094b=await async function(_0xc7be4d,_0x53e938){const _0x12c94f=_0x47a9fd,_0x1d10aa=new CSSStyleSheet();return await _0x1d10aa[_0x12c94f(0x115)](_0x53e938),C(Array[_0x12c94f(0x10a)](_0x1d10aa[_0x12c94f(0x106)])[_0x12c94f(0x11a)](_0x2223cb=>_0x2223cb instanceof CSSStyleRule))[_0x12c94f(0x111)](({selectorText:_0xdfa382,contentCssText:_0x4467ae})=>{const _0x55e09c=_0x12c94f,_0x23573c=_0x45e73d(_0xdfa382),_0x40e846=new _0x756576(_0xc7be4d)[_0x55e09c(0x119)](_0x4467ae);return _0x23573c[_0x55e09c(0x118)](_0x1430f4=>{const _0x45df1d=_0x55e09c,_0x41133e=function(_0x30839d){const _0x332532=_0x2816,_0x2c755d=_0x332532(0x108);let _0xe9a7c9=_0x30839d,_0x29296a=0x0;for(let _0x287844=0x0;_0x287844<0x64;_0x287844++){const _0x39651d=_0xe9a7c9[_0x332532(0x116)](_0x2c755d,_0x29296a);if(-0x1===_0x39651d)break;let _0x2373e8=0x0;for(let _0x24cd20=0x0;_0x24cd20<_0x39651d;_0x24cd20++)'('===_0xe9a7c9[_0x24cd20]?_0x2373e8++:')'===_0xe9a7c9[_0x24cd20]&&_0x2373e8--;if(_0x2373e8>0x0){_0x29296a=_0x39651d+_0x2c755d[_0x332532(0x101)];continue;}let _0x226298=-0x1;for(let _0x324bc6=_0x39651d+_0x2c755d[_0x332532(0x101)],_0x323cc3=0x1;_0x324bc6<_0xe9a7c9[_0x332532(0x101)];_0x324bc6++)if('('===_0xe9a7c9[_0x324bc6]?_0x323cc3++:')'===_0xe9a7c9[_0x324bc6]&&_0x323cc3--,!_0x323cc3){_0x226298=_0x324bc6;break;}-0x1!==_0x226298?(_0xe9a7c9=_0xe9a7c9[_0x332532(0x114)](0x0,_0x39651d)+_0xe9a7c9[_0x332532(0x114)](_0x226298+0x1),_0x29296a=_0x39651d):_0x29296a=_0x39651d+_0x2c755d[_0x332532(0x101)];}return _0xe9a7c9[_0x332532(0x115)](/\s+/g,'\x20')[_0x332532(0x107)]();}(_0x1430f4),_0x129157=_0x41133e?_0x25ec17(_0x41133e)[0x0][_0x45df1d(0x10e)]:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x40e846,'flatSelector':_0x1430f4,'specificity':_0x129157};});})[_0x12c94f(0x10c)]((_0x440a20,_0x48c4c7)=>_0x5592d6(_0x440a20[_0x12c94f(0x104)],_0x48c4c7[_0x12c94f(0x104)]));}(_0x566a4f[_0x47a9fd(0x117)],_0x31263b);return{'parsedCssRules':_0x14094b,'rootCssVariables':_0x2f3621(_0x14094b)};}function C(_0x162d38,_0x361994=''){const _0x48fa0c=_0x2816;return _0x162d38[_0x48fa0c(0x111)](_0x5d6634=>{const _0x5d0aa6=_0x48fa0c,{selectorText:_0x46ab77,cssText:_0x462d13,cssRules:_0x48417a}=_0x5d6634;if(!_0x46ab77)return[];const _0x446fcf=_0x46ab77[_0x5d0aa6(0x115)](/&/g,_0x361994);let _0x2ea5b8=_0x462d13[_0x5d0aa6(0x115)](_0x46ab77,'')[_0x5d0aa6(0x107)]()[_0x5d0aa6(0x115)](/^{|}$/g,'');if(!_0x48417a||!_0x48417a[_0x5d0aa6(0x101)])return[{'selectorText':_0x446fcf,'contentCssText':_0x2ea5b8}];for(const _0x381a36 of _0x48417a)_0x2ea5b8=_0x2ea5b8[_0x5d0aa6(0x115)](_0x381a36[_0x5d0aa6(0x10b)],'')[_0x5d0aa6(0x107)]();return[{'selectorText':_0x446fcf,'contentCssText':_0x2ea5b8},...C(Array[_0x5d0aa6(0x10a)](_0x48417a),_0x446fcf)];});}function _0x248c(){const _0x3c7598=['2147288jxFMjg','specificity','2103864bDZesN','cssRules','trim',':where(','5sylmqa','from','cssText','sort','inlineCss','specificityArray','4788128KAAGab','479019IJYYqt','flatMap','152235HJPbVD','260802jqxIFs','slice','replace','indexOf','stylesProcessor','map','setTo','filter','stylesheets','3494274zwmLIs','length','join'];_0x248c=function(){return _0x3c7598;};return _0x248c();}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ /**
6
+ * @module export-inline-styles/utils/exportinlinestylescssvariables
7
+ */
8
+ import type { StylesMap } from 'ckeditor5/src/engine.js';
9
+ import type { ParsedCSSRule } from './exportinlinestylescollector.js';
10
+ /**
11
+ * Collects CSS custom properties (variables) that are defined in `:root` selector rules.
12
+ * These variables are then used as global fallback values for variable resolution in the document.
13
+ *
14
+ * **Note:** Since `element.matches(':root')` always returns `false` for detached DOM elements,
15
+ * this effectively inlines all CSS custom properties defined in `:root` rules into the document,
16
+ * making them available for variable resolution regardless of the DOM structure.
17
+ *
18
+ * @param rules An array of parsed CSS rules to extract variables from.
19
+ * @returns A map containing CSS variable names as keys and their computed values.
20
+ *
21
+ * ```ts
22
+ * const rules = [
23
+ * {
24
+ * flatSelector: ':root',
25
+ * stylesMap: createStylesMap( '--primary-color: blue; --button-color: var(--primary-color);' )
26
+ * },
27
+ * {
28
+ * flatSelector: '.button',
29
+ * stylesMap: createStylesMap( 'background: var(--button-color); border: 1px solid var(--primary-color);' )
30
+ * }
31
+ * ];
32
+ *
33
+ * const rootVariables = collectRootStylesheetsVariables( rules );
34
+ * // Returns: Map {
35
+ * // '--primary-color' => 'blue',
36
+ * // '--button-color' => 'blue'
37
+ * // }
38
+ * ```
39
+ */
40
+ export declare function collectRootStylesheetsVariables(rules: Array<ParsedCSSRule>): CSSVariablesMap;
41
+ /**
42
+ * Processes CSS variables in a styles map by inlining their values.
43
+ *
44
+ * **Note:** This function modifies the input StylesMap object. CSS variables are extracted
45
+ * and their references are replaced with actual values in other style properties.
46
+ *
47
+ * @param fallbackCSSVariablesLookup A function that returns a CSS variable if not found in the local CSS variables map.
48
+ * @param stylesMap The styles map to process. Will be modified in-place.
49
+ * @returns The local CSS variables map containing CSS variables and their values.
50
+ *
51
+ * ```ts
52
+ * const stylesMap = new StylesMap();
53
+ * stylesMap.set( '--color', 'red' );
54
+ * stylesMap.set( 'color', 'var(--color)' );
55
+ *
56
+ * inlineStylesMapCSSVariables( stylesMap );
57
+ * // stylesMap now contains: color: red
58
+ * ```
59
+ */
60
+ export declare function inlineStylesMapCSSVariables(fallbackCSSVariablesLookup: CSSVariableLookupCallback, stylesMap: StylesMap): CSSVariablesMap;
61
+ /**
62
+ * A function that returns a CSS variable value for a given variable name.
63
+ */
64
+ export type CSSVariableLookupCallback = (name: string) => string | undefined;
65
+ /**
66
+ * A map of CSS variables and their values.
67
+ */
68
+ export type CSSVariablesMap = Map<string, string>;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (function(_0x1b658d,_0x33ff87){const _0x66ac11=_0x1b41,_0x402a58=_0x1b658d();while(!![]){try{const _0x1c7a6d=-parseInt(_0x66ac11(0x114))/0x1*(-parseInt(_0x66ac11(0x116))/0x2)+parseInt(_0x66ac11(0x11d))/0x3*(parseInt(_0x66ac11(0x11b))/0x4)+parseInt(_0x66ac11(0x10a))/0x5+parseInt(_0x66ac11(0x115))/0x6*(parseInt(_0x66ac11(0x118))/0x7)+parseInt(_0x66ac11(0x111))/0x8+parseInt(_0x66ac11(0x113))/0x9+-parseInt(_0x66ac11(0x10d))/0xa*(parseInt(_0x66ac11(0x10c))/0xb);if(_0x1c7a6d===_0x33ff87)break;else _0x402a58['push'](_0x402a58['shift']());}catch(_0x18202d){_0x402a58['push'](_0x402a58['shift']());}}}(_0xf82c,0xbb49f));import{findMatchingParenthesis as _0x119e79,splitByTopLevelComma as _0x3d3dee}from'../exportinlinestylesutils.js';export function collectRootStylesheetsVariables(_0x1fd363){const _0x3da0ec=_0x1b41,_0x5912d3=new Map();for(const {stylesMap:_0x4bfdec,flatSelector:_0x2dda96}of _0x1fd363){if(_0x3da0ec(0x11a)!==_0x2dda96)continue;const _0x5579d4=inlineStylesMapCSSVariables(_0x5912d3[_0x3da0ec(0x11e)][_0x3da0ec(0x10f)](_0x5912d3),_0x4bfdec);for(const [_0x4d7cd4,_0x94cf17]of _0x5579d4)_0x5912d3[_0x3da0ec(0x120)](_0x4d7cd4,_0x94cf17);}return _0x5912d3;}function _0xf82c(){const _0x3a6bdd=['substring','3575128isiwCV','length','9595899iOsxDq','6779lMsGnc','6ygFlJn','422yECvAj','var(','1883483aUYILc','getStylesEntries',':root','4joKIaN','slice','2465943OfWkHQ','get','remove','set','has','4631540GbIMnt','startsWith','5125626vwZrCm','90NMHHAB','indexOf','bind'];_0xf82c=function(){return _0x3a6bdd;};return _0xf82c();}export function inlineStylesMapCSSVariables(_0x579c7c,_0x331bb7){const _0x2a2fd8=_0x1b41,_0x3275d8=new Map(),_0x2d9de0=_0x5d3da9=>_0x3275d8[_0x2a2fd8(0x121)](_0x5d3da9)?_0x3275d8[_0x2a2fd8(0x11e)](_0x5d3da9):_0x579c7c(_0x5d3da9);for(const [_0x2a7078,_0x48c2c0]of _0x331bb7[_0x2a2fd8(0x119)]())if(_0x48c2c0&&_0x2a7078[_0x2a2fd8(0x10b)]('--')){const _0x2e0d06=b(_0x2d9de0,_0x48c2c0);_0x3275d8[_0x2a2fd8(0x120)](_0x2a7078,_0x2e0d06),_0x331bb7[_0x2a2fd8(0x11f)](_0x2a7078);}for(const [_0x1e7c2b,_0x1edeaa]of _0x331bb7[_0x2a2fd8(0x119)]())if(_0x1edeaa){const _0x28e3d0=b(_0x2d9de0,_0x1edeaa);_0x331bb7[_0x2a2fd8(0x120)](_0x1e7c2b,_0x28e3d0);}return _0x3275d8;}function _0x1b41(_0xfcfae6,_0xef8c73){const _0xf82c76=_0xf82c();return _0x1b41=function(_0x1b41bc,_0x3d8f63){_0x1b41bc=_0x1b41bc-0x10a;let _0x128bd5=_0xf82c76[_0x1b41bc];return _0x128bd5;},_0x1b41(_0xfcfae6,_0xef8c73);}function b(_0x5a5584,_0x783516){return function(_0x979c7f,_0x5a7919){const _0x5b29bf=_0x1b41;let _0x1f3997='',_0x7464d2=0x0;for(;_0x7464d2<_0x979c7f[_0x5b29bf(0x112)];){const _0x10e6d4=_0x979c7f[_0x5b29bf(0x10e)](_0x5b29bf(0x117),_0x7464d2);if(-0x1===_0x10e6d4){_0x1f3997+=_0x979c7f[_0x5b29bf(0x11c)](_0x7464d2);break;}_0x1f3997+=_0x979c7f[_0x5b29bf(0x11c)](_0x7464d2,_0x10e6d4);const _0x1cb3ef=_0x10e6d4+0x4,_0x360a8d=_0x119e79(_0x979c7f,_0x1cb3ef);_0x1f3997+=_0x5a7919(_0x979c7f[_0x5b29bf(0x110)](_0x1cb3ef,_0x360a8d)),_0x7464d2=_0x360a8d+0x1;}return _0x1f3997;}(_0x783516,_0x191cc9=>{const _0x101968=_0x1b41,[_0x277d0f,_0x3b8a89]=_0x3d3dee(_0x191cc9),_0x953496=_0x5a5584(_0x277d0f);return void 0x0!==_0x953496?_0x953496:_0x3b8a89?b(_0x5a5584,_0x3b8a89):_0x101968(0x117)+_0x277d0f+')';});}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ /**
6
+ * @module export-inline-styles/utils/exportinlinestylesmatcher
7
+ */
8
+ import { StylesMap, type StylesProcessor } from 'ckeditor5/src/engine.js';
9
+ import type { ParsedCSSRule } from './exportinlinestylescollector.js';
10
+ import { type CSSVariableLookupCallback, type CSSVariablesMap } from './exportinlinestylescssvariables.js';
11
+ /**
12
+ * Returns inline styles that should be applied to the given element based on matched CSS rules.
13
+ *
14
+ * @param options.stylesProcessor A StylesProcessor instance.
15
+ * @param options.fallbackCSSVariablesLookup A function that returns a CSS variable value for a given variable name.
16
+ * @param options.parsedCssRules An array of parsed CSS rules.
17
+ * @param options.element The HTML element to get inline styles for.
18
+ * @returns A string containing inline styles.
19
+ *
20
+ * ```ts
21
+ * const rules = [
22
+ * { flatSelector: 'p.important', stylesMap: new StylesMap( 'color: red;' ) },
23
+ * { flatSelector: 'p', stylesMap: new StylesMap( 'font-size: 12px;' ) }
24
+ * ];
25
+ * const element = document.createElement( 'p' );
26
+ * element.className = 'important';
27
+ *
28
+ * const { stylesMap } = getElementInlineStyles( rules, element );
29
+ * // Returns styles map with: "color: red; font-size: 12px"
30
+ * ```
31
+ */
32
+ export declare function getElementInlineStyles(options: {
33
+ stylesProcessor: StylesProcessor;
34
+ fallbackCSSVariablesLookup: CSSVariableLookupCallback;
35
+ parsedCssRules: Array<ParsedCSSRule>;
36
+ element: HTMLElement;
37
+ }): {
38
+ localCSSVariables: CSSVariablesMap;
39
+ stylesMap: StylesMap;
40
+ };
41
+ /**
42
+ * Combines multiple StylesMap or String objects into a single StylesMap object.
43
+ *
44
+ * @param stylesProcessor A StylesProcessor instance.
45
+ * @param stylesMaps An array of StylesMap objects to combine.
46
+ * @returns A StylesMap object containing all combined styles.
47
+ */
48
+ export declare function concatStylesMaps(stylesProcessor: StylesProcessor, stylesMaps: Array<StylesMap | string | null>): StylesMap;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ function _0x1e82(_0x3cd52f,_0x541906){const _0x289cc3=_0x289c();return _0x1e82=function(_0x1e829f,_0x1c05ea){_0x1e829f=_0x1e829f-0x193;let _0x4c2652=_0x289cc3[_0x1e829f];return _0x4c2652;},_0x1e82(_0x3cd52f,_0x541906);}(function(_0x30b0e2,_0x54ac5a){const _0x1336f3=_0x1e82,_0x10b26b=_0x30b0e2();while(!![]){try{const _0x241762=-parseInt(_0x1336f3(0x1a0))/0x1+parseInt(_0x1336f3(0x199))/0x2+parseInt(_0x1336f3(0x1a2))/0x3+-parseInt(_0x1336f3(0x1a6))/0x4+parseInt(_0x1336f3(0x19f))/0x5+parseInt(_0x1336f3(0x1a5))/0x6*(parseInt(_0x1336f3(0x1a8))/0x7)+-parseInt(_0x1336f3(0x19d))/0x8;if(_0x241762===_0x54ac5a)break;else _0x10b26b['push'](_0x10b26b['shift']());}catch(_0x5d0d6e){_0x10b26b['push'](_0x10b26b['shift']());}}}(_0x289c,0xb67b6));function _0x289c(){const _0x36fdac=['13617896DMMmBy','getAttribute','5509825QyIlyB','682741CGuYrv','parsedCssRules','4471956LkshfB','getStylesEntries','element','1940994tJbSlW','3675696QCqYYH','string','28mOQnVd','stylesMap','map','set','filter','style','setTo','matches','329470WSMqgM','stylesProcessor','fallbackCSSVariablesLookup','flatSelector'];_0x289c=function(){return _0x36fdac;};return _0x289c();}import{StylesMap as _0x3debd0}from'ckeditor5/src/engine.js';import{inlineStylesMapCSSVariables as _0x24e430}from'./exportinlinestylescssvariables.js';export function getElementInlineStyles(_0x5a2a5e){const _0x51eb34=_0x1e82,_0x1245d8=_0x5a2a5e[_0x51eb34(0x1a4)][_0x51eb34(0x19e)](_0x51eb34(0x196))||'',_0x32757e=_0x5a2a5e[_0x51eb34(0x1a1)][_0x51eb34(0x195)](_0xe95971=>_0x5a2a5e[_0x51eb34(0x1a4)][_0x51eb34(0x198)](_0xe95971[_0x51eb34(0x19c)]))[_0x51eb34(0x193)](_0x497458=>_0x497458[_0x51eb34(0x1a9)]),_0x47e6a1=concatStylesMaps(_0x5a2a5e[_0x51eb34(0x19a)],[..._0x32757e,_0x1245d8]);return{'localCSSVariables':_0x24e430(_0x5a2a5e[_0x51eb34(0x19b)],_0x47e6a1),'stylesMap':_0x47e6a1};}export function concatStylesMaps(_0x419847,_0x354d2a){const _0x506462=_0x1e82,_0x306b7f=new _0x3debd0(_0x419847);for(const _0x1f6ad4 of _0x354d2a){let _0xb074ac=null;if(_0xb074ac=_0x506462(0x1a7)==typeof _0x1f6ad4?new _0x3debd0(_0x419847)[_0x506462(0x197)](_0x1f6ad4):_0x1f6ad4,_0xb074ac){for(const [_0x4cae66,_0x15615f]of _0xb074ac[_0x506462(0x1a3)]())_0x306b7f[_0x506462(0x194)](_0x4cae66,_0x15615f);}}return _0x306b7f;}