kollapsminoriteten/wp-content/themes/blocksy/static/bundle/editor.js

96 lines
76 KiB
JavaScript
Raw Normal View History

2025-08-27 08:44:30 +02:00
!function(){var e={924:function(e,t,r){"use strict";var n=r(210),o=r(559),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},559:function(e,t,r){"use strict";var n=r(612),o=r(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var t=c(n,a,arguments);u&&s&&(u(t,"length").configurable&&s(t,"length",{value:1+l(0,e.length-(arguments.length-1))}));return t};var p=function(){return c(n,i,arguments)};s?s(e.exports,"apply",{value:p}):e.exports.apply=p},600:function(e,t){"use strict";t.T=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}},29:function(e,t,r){"use strict";var n=r(320),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===o.call(e)?function(e,t,r){for(var n=0,o=e.length;n<o;n++)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a):"string"==typeof e?function(e,t,r){for(var n=0,o=e.length;n<o;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,a):function(e,t,r){for(var n in e)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a)}},648:function(e){"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var o,i=t.call(arguments,1),a=Math.max(0,n.length-i.length),c=[],u=0;u<a;u++)c.push("$"+u);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var r=n.apply(this,i.concat(t.call(arguments)));return Object(r)===r?r:this}return n.apply(e,i.concat(t.call(arguments)))})),n.prototype){var s=function(){};s.prototype=n.prototype,o.prototype=new s,s.prototype=null}return o}},612:function(e,t,r){"use strict";var n=r(648);e.exports=Function.prototype.bind||n},210:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,c=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var s=function(){throw new a},l=u?function(){try{return s}catch(e){try{return u(arguments,"callee").get}catch(e){return s}}}():s,p=r(405)(),f=r(185)(),y=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),d={},b="undefined"!=typeof Uint8Array&&y?y(Uint8Array):n,v={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&y?y([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
Object.defineProperty(e,"__esModule",{value:!0});var t;e.matcher={whitespace:/\s/,whitespaceGreedy:/(\s+)/g,commentGreedy:/(\*\/)/g,boundary:/[\(\)\{\}'"@;:\s]/,stringBoundary:/['"]/},(t=e.nodeType||(e.nodeType={})).stylesheet="stylesheet",t.comment="comment",t.atRule="atRule",t.ruleset="ruleset",t.expression="expression",t.declaration="declaration",t.rulelist="rulelist",t.discarded="discarded"}(m),
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
Object.defineProperty(g,"__esModule",{value:!0});const h=l(),w=m;g.iterateOverAst=function*e(t){switch(yield t,t.type){case w.nodeType.stylesheet:for(const r of t.rules)yield*e(r);return;case w.nodeType.ruleset:return yield*e(t.rulelist);case w.nodeType.rulelist:for(const r of t.rules)yield*e(r);return;case w.nodeType.declaration:return void(void 0!==t.value&&(yield*e(t.value)));case w.nodeType.atRule:return void(t.rulelist&&(yield*e(t.rulelist)));case w.nodeType.expression:case w.nodeType.comment:case w.nodeType.discarded:return;default:const r=t;console.error(`Got a node of unknown type: ${h.inspect(r)}`)}};var _={};
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/Object.defineProperty(_,"__esModule",{value:!0});const S=m;_.NodeFactory=class{stylesheet(e,t){return{type:S.nodeType.stylesheet,rules:e,range:t}}atRule(e,t,r=void 0,n,o,i){return{type:S.nodeType.atRule,name:e,parameters:t,rulelist:r,nameRange:n,parametersRange:o,range:i}}comment(e,t){return{type:S.nodeType.comment,value:e,range:t}}rulelist(e,t){return{type:S.nodeType.rulelist,rules:e,range:t}}ruleset(e,t,r,n){return{type:S.nodeType.ruleset,selector:e,rulelist:t,selectorRange:r,range:n}}declaration(e,t,r,n){return{type:S.nodeType.declaration,name:e,value:t,nameRange:r,range:n}}expression(e,t){return{type:S.nodeType.expression,text:e,range:t}}discarded(e,t){return{type:S.nodeType.discarded,text:e,range:t}}};var k={};
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/Object.defineProperty(k,"__esModule",{value:!0});k.NodeVisitor=class{constructor(){this.path_=[]}get path(){return this.path_}visit(e){let t;return this[e.type]&&(this.path_.push(e),t=this[e.type](e),this.path_.pop()),t}};var T={},O={};!function(e){var t;
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
Object.defineProperty(e,"__esModule",{value:!0}),function(e){e[e.none=0]="none",e[e.whitespace=Math.pow(2,0)]="whitespace",e[e.string=Math.pow(2,1)]="string",e[e.comment=Math.pow(2,2)]="comment",e[e.word=Math.pow(2,3)]="word",e[e.boundary=Math.pow(2,4)]="boundary",e[e.propertyBoundary=Math.pow(2,5)]="propertyBoundary",e[e.openParenthesis=Math.pow(2,6)|e.boundary]="openParenthesis",e[e.closeParenthesis=Math.pow(2,7)|e.boundary]="closeParenthesis",e[e.at=Math.pow(2,8)|e.boundary]="at",e[e.openBrace=Math.pow(2,9)|e.boundary]="openBrace",e[e.closeBrace=Math.pow(2,10)|e.propertyBoundary|e.boundary]="closeBrace",e[e.semicolon=Math.pow(2,11)|e.propertyBoundary|e.boundary]="semicolon",e[e.colon=Math.pow(2,12)|e.boundary|e.word]="colon",e[e.hyphen=Math.pow(2,13)]="hyphen",e[e.underscore=Math.pow(2,14)]="underscore"}(t=e.TokenType||(e.TokenType={}));class r{constructor(e,t,r){this.type=e,this.start=t,this.end=r,this.previous=null,this.next=null}is(e){return(this.type&e)===e}}r.type=t,e.Token=r;const n={"(":r.type.openParenthesis,")":r.type.closeParenthesis,":":r.type.colon,"@":r.type.at,"{":r.type.openBrace,"}":r.type.closeBrace,";":r.type.semicolon,"-":r.type.hyphen,_:r.type.underscore};e.boundaryTokenTypes=n}(O);var P={};
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/Object.defineProperty(P,"__esModule",{value:!0});const j=m,x=O;P.Tokenizer=class{constructor(e){this.cursorToken_=new x.Token(x.Token.type.none,0,0),this.currentToken_=null,this.cssText=e}get offset(){return this.cursorToken_.end}get currentToken(){return null==this.currentToken_&&(this.currentToken_=this.getNextToken_()),this.currentToken_}advance(){let e;return null!=this.currentToken_?(e=this.currentToken_,this.currentToken_=null):e=this.getNextToken_(),e}slice(e,t=void 0){const{start:r,end:n}=this.getRange(e,t);return this.cssText.substring(r,n)}getRange(e,t=void 0){return{start:e.start,end:(t||e).end}}trimRange({start:e,end:t}){for(;e<=t&&/\s/.test(this.cssText.charAt(e));)e++;for(;e<=t&&t>0&&/\s/.test(this.cssText.charAt(t-1));)t--;return{start:e,end:t}}flush(){const e=[];for(;this.currentToken;)e.push(this.advance());return e}getNextToken_(){const e=this.cssText[this.offset];let t;return this.currentToken_=null,this.offset>=this.cssText.length?null:(t=j.matcher.whitespace.test(e)?this.tokenizeWhitespace(this.offset):j.matcher.stringBoundary.test(e)?this.tokenizeString(this.offset):"/"===e&&"*"===this.cssText[this.offset+1]?this.tokenizeComment(this.offset):j.matcher.boundary.test(e)?this.tokenizeBoundary(this.offset):this.tokenizeWord(this.offset),t.previous=this.cursorToken_,this.cursorToken_.next=t,this.cursorToken_=t,t)}tokenizeString(e){const t=this.cssText[e];let r=!1;const n=e;let o;for(;o=this.cssText[++e];)if(r)r=!1;else{if(o===t){++e;break}"\\"===o&&(r=!0)}return new x.Token(x.Token.type.string,n,e)}tokenizeWord(e){const t=e;let r;for(;(r=this.cssText[e])&&!j.matcher.boundary.test(r);)e++;return new x.Token(x.Token.type.word,t,e)}tokenizeWhitespace(e){const t=e;j.matcher.whitespaceGreedy.lastIndex=e;const r=j.matcher.whitespaceGreedy.exec(this.cssText);return null!=r&&r.index===e&&(e=j.matcher.whitespaceGreedy.lastIndex),new x.Token(x.Token.type.whitespace,t,e)}tokenizeComment(e){const t=e;j.matcher.commentGreedy.lastIndex=e;return e=null==j.matcher.commentGreedy.exec(this.cssText)?this.cssText.length:j.matcher.commentGreedy.lastIndex,new x.Token(x.Token.type.comment,t,e)}tokenizeBoundary(e){const t=x.boundaryTokenTypes[this.cssText[e]]||x.Token.type.boundary;return new x.Token(t,e,e+1)}},
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
Object.defineProperty(T,"__esModule",{value:!0});const A=_,E=O,D=P;T.Parser=class{constructor(e=new A.NodeFactory){this.nodeFactory=e}parse(e){return this.parseStylesheet(new D.Tokenizer(e))}parseStylesheet(e){return this.nodeFactory.stylesheet(this.parseRules(e),{start:0,end:e.cssText.length})}parseRules(e){const t=[];for(;e.currentToken;){const r=this.parseRule(e);r&&t.push(r)}return t}parseRule(e){const t=e.currentToken;return null===t?null:t.is(E.Token.type.whitespace)?(e.advance(),null):t.is(E.Token.type.comment)?this.parseComment(e):t.is(E.Token.type.word)?this.parseDeclarationOrRuleset(e):t.is(E.Token.type.propertyBoundary)?this.parseUnknown(e):t.is(E.Token.type.at)?this.parseAtRule(e):this.parseUnknown(e)}parseComment(e){const t=e.advance();return null===t?null:this.nodeFactory.comment(e.slice(t),{start:t.start,end:t.end})}parseUnknown(e){const t=e.advance();let r;if(null===t)return null;for(;e.currentToken&&e.currentToken.is(E.Token.type.boundary);)r=e.advance();return this.nodeFactory.discarded(e.slice(t,r),e.getRange(t,r))}parseAtRule(e){let t,r,n,o,i;if(!e.currentToken)return null;const a=e.currentToken.start;for(;e.currentToken;)if(e.currentToken.is(E.Token.type.whitespace))e.advance();else if(!t&&e.currentToken.is(E.Token.type.at)){e.advance();const n=e.currentToken;let o;for(;e.currentToken&&e.currentToken.is(E.Token.type.word);)o=e.advance();r=e.getRange(n,o),t=e.cssText.slice(r.start,r.end)}else{if(e.currentToken.is(E.Token.type.openBrace)){n=this.parseRulelist(e);break}if(e.currentToken.is(E.Token.type.propertyBoundary)){e.advance();break}null==o?o=e.advance():i=e.advance()}if(void 0===t||void 0===r)return null;let c,u="";o&&(c=e.trimRange(e.getRange(o,i)),u=e.cssText.slice(c.start,c.end));const s=e.currentToken?e.currentToken.previous.end:e.cssText.length;return this.nodeFactory.atRule(t,u,n,r,c,{start:a,end:s})}parseRulelist(e){const t=[],r=e.currentToken.start;let n;for(e.advance();e.currentToken;){if(e.currentToken.is(E.Token.type.closeBrace)){n=e.currentToken,e.advance();break}{const r=this.parseRule(e);r&&t.push(r)}}const o=n?n.end:e.cssText.length;return this.nodeFactory.rulelist(t,{start:r,end:o})}parseDeclarationOrRuleset(e){let t=null,r=null,n=null;for(;e.currentToken;)if(e.currentToken.is(E.Token.type.whitespace))e.advance();else if(e.currentToken.is(E.Token.type.openParenthesis))for(;e.currentToken&&!e.currentToken.is(E.Token.type.closeParenthesis);)e.advance();else{if(e.currentToken.is(E.Token.type.openBrace)||e.currentToken.is(E.Token.type.propertyBoundary))break;e.currentToken.is(E.Token.type.colon)&&(n=e.currentToken),null===t?(t=e.advance(),r=t):r=e.advance()}if(null===e.currentToken)return null;if(e.currentToken.is(E.Token.type.propertyBoundary)){const o=e.getRange(t,n?n.previous:r),i=e.cssText.slice(o.start,o.end);let a;if(n&&n.next){const t=e.getRange(n.next,r),o=e.trimRange(t),i=e.cssText.slice(o.start,o.end);a=this.nodeFactory.expression(i,o)}e.currentToken.is(E.Token.type.semicolon)&&e.advance();const c=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||r));return this.nodeFactory.declaration(i,a,o,c)}if(n&&n===r){const n=this.parseRulelist(e);e.currentToken.is(E.Token.type.semicolon)&&e.advance();const o=e.getRange(t,r.previous),i=e.cssText.slice(o.start,o.end),a=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||r));return this.nodeFactory.declaration(i,n,o,a)}{const n=e.getRange(t,r),o=e.cssText.slice(n.start,n.end),i=this.parseRulelist(e),a=t.start;let c;return c=e.currentToken?e.currentToken.previous?e.currentToken.previous.end:t.end:e.cssText.length,this.nodeFactory.ruleset(o,i,n,{start:a,end:c})}}};var R={};
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/Object.defineProperty(R,"__esModule",{value:!0});const I=m,C=k;class F extends C.NodeVisitor{stringify(e){return this.visit(e)||""}[I.nodeType.stylesheet](e){let t="";for(let r=0;r<e.rules.length;++r)t+=this.visit(e.rules[r]);return t}[I.nodeType.atRule](e){return`@${e.name}`+(e.parameters?` ${e.parameters}`:"")+(e.rulelist?`${this.visit(e.rulelist)}`:";")}[I.nodeType.rulelist](e){let t="{";for(let r=0;r<e.rules.length;++r)t+=this.visit(e.rules[r]);return t+"}"}[I.nodeType.comment](e){return`${e.value}`}[I.nodeType.ruleset](e){return`${e.selector}${this.visit(e.rulelist)}`}[I.nodeType.declaration](e){return null!=e.value?`${e.name}:${this.visit(e.value)};`:`${e.name};`}[I.nodeType.expression](e){return`${e.text}`}[I.nodeType.discarded](e){return""}}R.Stringifier=F,
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
Object.defineProperty(v,"__esModule",{value:!0});var M=g;v.iterateOverAst=M.iterateOverAst;var U=m;v.nodeType=U.nodeType;var V=_;v.NodeFactory=V.NodeFactory;var B=k;v.NodeVisitor=B.NodeVisitor;var N=T,z=v.Parser=N.Parser,L=R,$=v.Stringifier=L.Stringifier,G=O;v.Token=G.Token;var W=P;v.Tokenizer=W.Tokenizer;var K={},J=function(e){if("auto"===e||""===e)return{value:e,unit:""};var t=parseFloat(e);return isNaN(t)?{value:"",unit:""}:{value:t,unit:e.toString().replace(t.toString(),"")}},Q=function(e){return e},H=function(e){return e&&"[object Function]"==={}.toString.call(e)},q=function(e){var t=e.variableDescriptor,r=e.value;return{type:"declaration",name:t.variableName,value:{type:"expression",text:r}}},Z=function(e,t){return e.selector&&e.selector.desktop?e.selector[t]:e.selector||":root"},Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e=f({variableDescriptorsWithValue:[],ast:{},device:"desktop"},e)).ast,r=e.variableDescriptorsWithValue.flatMap((function(e){return e.variableDescriptor.dropSelectors||[]}));if(r.length>0&&Array.isArray(t.rules)){var n=new Set(t.rules.map((function(e){return e.selector})));t=f(f({},t),{},{rules:t.rules.filter((function(e){var t=n.has(e.selector),o="string"==typeof e.selector&&r.some((function(t){return e.selector.includes(t)}));return!(t&&o)}))})}if(0===e.variableDescriptorsWithValue.length)return t;var o,i,a=(o=e.variableDescriptorsWithValue,i=function(t){var r=t.variableDescriptor;return Z(r,e.device)},o.reduce((function(e,t,r){var n;return(e[n=i(t,r,o)]||(e[n]=[])).push(t),e}),{})),c=[],u={};if(u=f(f({},t),{},{rules:t.rules.map((function(e){if(!e.selector||!a[e.selector])return e;c.push(e.selector);var t=a[e.selector],r=[],n=t.filter((function(e){return!e.value.includes("CT_CSS_SKIP_RULE")})).reduce((function(e,t){return f(f({},e),{},y({},t.variableDescriptor.variableName,t))}),{}),o=t.filter((function(e){return e.value.includes("CT_CSS_SKIP_RULE")})).reduce((function(e,t){return f(f({},e),{},y({},t.variableDescriptor.variableName,t))}),{}),i=e.rulelist.rules.filter((function(e){var t=e.type,r=e.name;return"declaration"!==t||!o[r]})).map((function(e){return"declaration"===e.type&&n[e.name]?(r.push(e.name),f(f({},e),{},{value:f(f({},e.value),{},{text:n[e.name].value})})):e}));return r.length!==Object.values(n).length&&(i=[].concat(d(i),d(Object.values(n).filter((function(e){var t=e.variableDescriptor;return!r.includes(t.variableName)})).map((function(e){return q(e)}))))),f(f({},e),{},{rulelist:f(f({},e.rulelist),{},{rules:i})})}))}),c.length!==Object.keys(a).length){var s=Object.values(a).filter((function(t){return!c.includes(Z(t[0].variableDescriptor,e.device))&&!!t.find((function(e){return!e.value.includes("CT_CSS_SKIP_RULE")}))}));u=f(f({},u),{},{rules:[].concat(d(u.rules),d(s.map((function(t){return{type:"ruleset",selector:Z(t[0].variableDescriptor,e.device),rulelist:{type:"rulelist",rules:t.filter((function(e){return!e.value.includes("CT_CSS_SKIP_RULE")})).map(q)}}}))))})}return u},X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e=f({variableDescriptor:{},value:{},device:"desktop"},e)).value;(e.variableDescriptor.type||"").indexOf("color")>-1&&"CT_CSS_SKIP_RULE"!==e.value&&(t=e.value["color"===e.variableDescriptor.type?"default":e.variableDescriptor.type.split(":")[1]].color),"border"===(e.variableDescriptor.type||"")&&(t=e.value&&"none"!==e.value.style?"".concat(e.value.width,"px ").concat(e.value.style," ").concat(e.value.color.color):"none",e.variableDescriptor.skip_none&&"none"===t&&(t="CT_CSS_SKIP_RULE")),"spacing"===(e.variableDescriptor.type||"")&&(t=function(e,t,r){if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";e.values||(e={values:[J(e.top),J(e.right),J(e.bottom),J(e.left)],custom:"",state:e.linked?1:2});var n=t.transformSpacingValue||Q;if(3===e.state)return e.custom.trim()?n(e.custom.trim(),[e.custom.trim()],r):"CT_CSS_SKIP_RULE";var o=0;Object.keys(t).includes("emptyValue")&&(o=t.emptyValue);var i=e.values.map((function(t){return""===t.value||"auto"===t.value?f(f({},t),{},{value:1===e.state?o:0}):t})),a=!0,c