Changeset 3285786
- Timestamp:
- 05/01/2025 06:40:33 PM (9 months ago)
- Location:
- dblocks-codepro
- Files:
-
- 10 edited
- 1 copied
-
tags/1.3.2 (copied) (copied from dblocks-codepro/trunk)
-
tags/1.3.2/build/index.asset.php (modified) (1 diff)
-
tags/1.3.2/build/index.js (modified) (1 diff)
-
tags/1.3.2/dblocks-codepro.php (modified) (1 diff)
-
tags/1.3.2/readme.txt (modified) (2 diffs)
-
tags/1.3.2/src/transforms.js (modified) (2 diffs)
-
trunk/build/index.asset.php (modified) (1 diff)
-
trunk/build/index.js (modified) (1 diff)
-
trunk/dblocks-codepro.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/transforms.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dblocks-codepro/tags/1.3.2/build/index.asset.php
r3285633 r3285786 1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-primitives'), 'version' => ' c98dc21eb9eed1217288');1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-primitives'), 'version' => 'e73a4c20dcbf62e3d397'); -
dblocks-codepro/tags/1.3.2/build/index.js
r3285633 r3285786 1 (()=>{"use strict";var e,t={885:(e,t,n)=>{const o=window.wp.blocks;var r=n(609);const i=window.wp.element,a=window.wp.blockEditor;function s(e){return e>47&&e<58}function l(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function u(e){return s(e)||c(e)}function c(e){return 95===e||l(e)}function p(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}function m(e){return 39===e||34===e}class f{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,t){return new f(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new d(`${e} at ${t+1}`,t,this.string)}}class d extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}function g(e){return e.tokens[e.pos]}function b(e){return e.tokens[e.pos++]}function h(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function y(e){return e.pos<e.size}function x(e,t){const n=g(e);return!(!n||!t(n)||(e.pos++,0))}function v(e,t,n=g(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function k(e,t){const n={type:"TokenGroup",elements:[]};let o,r=n;const i=[];for(;y(e)&&(o=$(e,t)||w(e,t));)if(r.elements.push(o),x(e,V))i.push(r),r=o;else{if(x(e,U))continue;if(x(e,Q))do{i.length&&(r=i.pop())}while(x(e,Q))}return n}function w(e,t){if(x(e,M)){const n=k(e,t);return q(b(e),"group",!1)&&(n.repeat=function(e){return N(g(e))?e.tokens[e.pos++]:void 0}(e)),n}}function $(e,t){let n;const o={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(function(e,t){const n=e.pos;if(t.jsx&&x(e,R))for(;y(e);){const{pos:t}=e;if(!x(e,I)||!x(e,R)){e.pos=t;break}}for(;y(e)&&x(e,H););return e.pos!==n&&(e.start=n,!0)}(e,t)&&(o.name=h(e));y(e);)if(e.start=e.pos,o.repeat||F(o)||!x(e,N))if(!o.value&&j(e))o.value=L(e);else{if(!(n=S(e,"id",t)||S(e,"class",t)||C(e))){!F(o)&&x(e,Z)&&(o.selfClose=!0,!o.repeat&&x(e,N)&&(o.repeat=e.tokens[e.pos-1]));break}o.attributes?o.attributes=o.attributes.concat(n):o.attributes=Array.isArray(n)?n.slice():[n]}else o.repeat=e.tokens[e.pos-1];return F(o)?void 0:o}function C(e){if(x(e,D)){const t=[];let n;for(;y(e);)if(n=z(e))t.push(n);else{if(x(e,P))break;if(!x(e,B))throw v(e,`Unexpected "${g(e).type}" token`)}return t}}function S(e,t,n){if(T(g(e),t)){e.pos++;let r=1;for(;T(g(e),t);)e.pos++,r++;const i={name:[(o=t,{type:"Literal",value:o})]};return r>1&&(i.multiple=!0),n.jsx&&j(e)?(i.value=L(e),i.expression=!0):i.value=_(e)?h(e):void 0,i}var o}function z(e){if(E(e))return{value:h(e)};if(_(e,!0)){const t=h(e);let n;return x(e,O)&&(E(e)||_(e,!0))&&(n=h(e)),{name:t,value:n}}}function E(e){const t=e.pos,n=g(e);if(A(n)){for(e.pos++;y(e);)if(A(b(e),n.single))return e.start=t,!0;throw v(e,"Unclosed quote",n)}return!1}function _(e,t){const n=e.pos,o={attribute:0,expression:0,group:0};for(;y(e);){const n=g(e);if(o.expression)q(n,"expression")&&(o[n.context]+=n.open?1:-1);else{if(A(n)||T(n)||B(n)||N(n))break;if(q(n)){if(!t)break;if(n.open)o[n.context]++;else{if(!o[n.context])break;o[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function j(e){const t=e.pos;if(x(e,W)){let n=0;for(;y(e);){const t=b(e);if(q(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function L(e){let t=e.start,n=e.pos;return q(e.tokens[t],"expression",!0)&&t++,q(e.tokens[n-1],"expression",!1)&&n--,h(e,t,n)}function q(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function T(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function A(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function B(e){return Boolean(e&&"WhiteSpace"===e.type)}function O(e){return T(e,"equal")}function N(e){return Boolean(e&&"Repeater"===e.type)}function R(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function H(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function I(e){return T(e,"class")}function D(e){return q(e,"attribute",!0)}function P(e){return q(e,"attribute",!1)}function W(e){return q(e,"expression",!0)}function M(e){return q(e,"group",!0)}function F(e){return!e.name&&!e.value&&!e.attributes}function V(e){return T(e,"child")}function U(e){return T(e,"sibling")}function Q(e){return T(e,"climb")}function Z(e){return T(e,"close")}var G;function X(e){return!!e.eat(G.Escape)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function Y(e,t){return function(e,t){const n=e.pos;if((t.expression||t.attribute)&&e.eat(G.Dollar)&&e.eat(G.CurlyBracketOpen)){let t;e.start=e.pos;let o="";if(e.eatWhile(s)?(t=Number(e.current()),o=e.eat(G.Colon)?J(e):""):l(e.peek())&&(o=J(e)),e.eat(G.CurlyBracketClose))return{type:"Field",index:t,name:o,start:n,end:e.pos};throw e.error("Expecting }")}e.pos=n}(e,t)||function(e){const t=e.pos;if(e.eat(G.Dollar)&&e.eat(G.Hash))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(G.Dollar)){const n=e.pos-t;let o=!1,r=1,i=0;if(e.eat(G.At)){for(;e.eat(G.Climb);)i++;o=e.eat(G.Dash),e.start=e.pos,e.eatWhile(s)&&(r=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:n,reverse:o,base:r,parent:i,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(G.Asterisk)){e.start=e.pos;let n=1,o=!1;return e.eatWhile(s)?n=Number(e.current()):o=!0,{type:"Repeater",count:n,value:0,implicit:o,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(p))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const n=e.pos,o=t.expression;let r="";for(;!e.eof();){if(X(e)){r+=e.current();continue}const n=e.peek();if(n===G.Slash&&!t.quote&&!t.expression&&!t.attribute){const t=e.string.charCodeAt(e.pos-1),n=e.string.charCodeAt(e.pos+1);if(s(t)&&s(n)){r+=e.string[e.pos++];continue}}if(n===t.quote||n===G.Dollar||K(n,t))break;if(o){if(n===G.CurlyBracketOpen)t.expression++;else if(n===G.CurlyBracketClose){if(!(t.expression>o))break;t.expression--}}else if(!t.quote){if(!t.attribute&&!ie(n))break;if(ee(n,t)||te(n,t)||m(n)||ne(n))break}r+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:r,start:n,end:e.pos}}(e,t)||function(e){const t=oe(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(m(t))return{type:"Quote",single:t===G.SingleQuote,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=ne(t);if(n)return{type:"Bracket",open:re(t),context:n,start:e.pos++,end:e.pos}}(e)}function J(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(G.CurlyBracketOpen))t.push(e.pos);else if(e.eat(G.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function K(e,t){const n=oe(e);return!(!n||t.quote||t.expression||t.attribute&&"equal"!==n)}function ee(e,t){return p(e)&&!t.expression}function te(e,t){return e===G.Asterisk&&!t.attribute&&!t.expression}function ne(e){return e===G.RoundBracketOpen||e===G.RoundBracketClose?"group":e===G.SquareBracketOpen||e===G.SquareBracketClose?"attribute":e===G.CurlyBracketOpen||e===G.CurlyBracketClose?"expression":void 0}function oe(e){return(e===G.Child?"child":e===G.Sibling&&"sibling")||e===G.Climb&&"climb"||e===G.Dot&&"class"||e===G.Hash&&"id"||e===G.Slash&&"close"||e===G.Equals&&"equal"||void 0}function re(e){return e===G.CurlyBracketOpen||e===G.SquareBracketOpen||e===G.RoundBracketOpen}function ie(e){return u(e)||function(e){return 196===e||214==e||220===e||228===e||246===e||252===e}(e)||e===G.Dash||e===G.Colon||e===G.Excl}!function(e){e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Escape=92]="Escape",e[e.Equals=61]="Equals",e[e.SquareBracketOpen=91]="SquareBracketOpen",e[e.SquareBracketClose=93]="SquareBracketClose",e[e.Asterisk=42]="Asterisk",e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.Sibling=43]="Sibling",e[e.Child=62]="Child",e[e.Climb=94]="Climb",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote"}(G||(G={}));const ae={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},se={Literal:e=>e.value,Quote:e=>e.single?"'":'"',Bracket:e=>"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}",Operator:e=>ae[e.operator],Field:(e,t)=>null!=e.index?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):"",RepeaterPlaceholder(e,t){let n;for(let e=t.repeaters.length-1;e>=0;e--)if(t.repeaters[e].implicit){n=t.repeaters[e];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1;const o=t.repeaters.length-1,r=t.repeaters[o];if(r&&(n=e.reverse?e.base+r.count-r.value-1:e.base+r.value,e.parent)){const i=Math.max(0,o-e.parent);if(i!==o){const e=t.repeaters[i];n+=r.count*e.value}}let i=String(n);for(;i.length<e.size;)i="0"+i;return i},WhiteSpace:e=>e.value};function le(e,t){if(!se[e.type])throw new Error(`Unknown token ${e.type}`);return se[e.type](e,t)}const ue=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,ce=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function pe(e,t){let n=[];if(e.repeat){const o=e.repeat,r=Object.assign({},o);let i;r.count=r.implicit&&Array.isArray(t.text)?t.cleanText.length:r.count||1,t.repeaters.push(r);for(let o=0;o<r.count;o++){if(r.value=o,e.repeat=r,i=he(e)?fe(e,t):me(e,t),r.implicit&&!t.inserted){const e=xe(i),n=e&&ve(e);n&&ke(n,t.getText(r.value))}if(n=n.concat(i),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=o,r.implicit&&(t.inserted=!0)}else n=n.concat(he(e)?fe(e,t):me(e,t));return n}function me(e,t){let n=[];const o={type:"AbbreviationNode",name:e.name&&ge(e.name,t),value:e.value&&be(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let r=[o];for(const o of e.elements)n=n.concat(pe(o,t));if(e.attributes){o.attributes=[];for(const n of e.attributes)o.attributes.push(de(n,t))}return o.name||o.attributes||!o.value||o.value.some(ye)?o.children=n:r=r.concat(n),r}function fe(e,t){let n=[];for(const o of e.elements)n=n.concat(pe(o,t));return e.repeat&&(n=function(e,t){for(const n of e)n.repeat||(n.repeat=Object.assign({},t));return e}(n,e.repeat)),n}function de(e,t){let n,o=!1,r=!1,i=e.expression?"expression":"raw";const a=e.name&&ge(e.name,t);if(a&&"!"===a[0]&&(o=!0),a&&"."===a[a.length-1]&&(r=!0),e.value){const o=e.value.slice();if(A(o[0])){const e=o.shift();o.length&&xe(o).type===e.type&&o.pop(),i=e.single?"singleQuote":"doubleQuote"}else q(o[0],"expression",!0)&&(i="expression",o.shift(),q(xe(o),"expression",!1)&&o.pop());n=be(o,t)}return{name:r||o?a.slice(o?1:0,r?-1:void 0):a,value:n,boolean:r,implied:o,valueType:i,multiple:e.multiple}}function ge(e,t){let n="";for(let o=0;o<e.length;o++)n+=le(e[o],t);return n}function be(e,t){const n=[];let o="";for(let r,i=0;i<e.length;i++)r=e[i],ye(r)?(o&&(n.push(o),o=""),n.push(r)):o+=le(r,t);return o&&n.push(o),n}function he(e){return"TokenGroup"===e.type}function ye(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function xe(e){return e[e.length-1]}function ve(e){return e.children.length?ve(xe(e.children)):e}function ke(e,t){e.value?"string"==typeof xe(e.value)?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}function we(e,t){try{return function(e,t={}){let n,o=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter((e=>e.trim())):t.text);const r={type:"Abbreviation",children:fe(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var r;let i;if(o=!0,Array.isArray(t.text)){if(void 0!==e&&e>=0&&e<n.length)return n[e];i=void 0!==e?t.text[e]:t.text.join("\n")}else i=null!==(r=t.text)&&void 0!==r?r:"";return i},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!o){const e=ve(xe(r.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;ke(e,n),"a"===e.name&&t.href&&function(e,t){var n;let o="";ue.test(t)?(o=t,/\w+:/.test(o)||o.startsWith("//")||(o=`http://${o}`)):ce.test(t)&&(o=`mailto:${t}`);const r=null===(n=e.attributes)||void 0===n?void 0:n.find((e=>"href"===e.name));r?r.value||(r.value=[o]):(e.attributes||(e.attributes=[]),e.attributes.push({name:"href",value:[o],valueType:"doubleQuote"}))}(e,n)}}return r}(function(e,t={}){const n={tokens:o=e,start:0,pos:0,size:o.length};var o;const r=k(n,t);if(y(n))throw v(n,"Unexpected character");return r}("string"==typeof e?function(e){const t=new f(e),n=[],o={group:0,attribute:0,expression:0,quote:0};let r,i=0;for(;!t.eof();){if(i=t.peek(),r=Y(t,o),!r)throw t.error("Unexpected character");n.push(r),"Quote"===r.type?o.quote=i===o.quote?0:i:"Bracket"===r.type&&(o[r.context]+=r.open?1:-1)}return n}(e):e,t),t)}catch(t){throw t instanceof d&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}var $e,Ce;function Se(e,t){return function(e){const t=e.pos;if(e.eat(Ce.Dollar)&&e.eat(Ce.CurlyBracketOpen)){let n;e.start=e.pos;let o="";if(e.eatWhile(s)?(n=Number(e.current()),o=e.eat(Ce.Colon)?ze(e):""):l(e.peek())&&(o=ze(e)),e.eat(Ce.CurlyBracketClose))return{type:"Field",index:n,name:o,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(e.eat(Ce.Dash)&&e.eat(Ce.Dash))return e.start=t,e.eatWhile(Te),{type:"CustomProperty",value:e.current(),start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(Ce.Dash);const n=e.pos,o=e.eatWhile(s),r=e.pos;if(e.eat(Ce.Dot)){const t=e.eatWhile(s);o||t||(e.pos=r)}return e.pos===n&&(e.pos=t),e.pos!==t}(e)){e.start=t;const n=e.current();return e.start=e.pos,e.eat(Ce.Percent)||e.eatWhile(c),{type:"NumberValue",value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(Ce.Hash)){const n=e.pos;let o="",r="";if(e.eatWhile(qe)?(o=e.substring(n,e.pos),r=_e(e)):e.eat(Ce.Transparent)?(o="0",r=_e(e)||"0"):r=_e(e),o||r||e.eof()){const{r:n,g:i,b:a,a:s}=function(e,t){let n="0",o="0",r="0",i=Number(null!=t&&""!==t?t:1);if("t"===e)i=0;else switch(e.length){case 0:break;case 1:n=o=r=e+e;break;case 2:n=o=r=e;break;case 3:n=e[0]+e[0],o=e[1]+e[1],r=e[2]+e[2];break;default:n=(e+=e).slice(0,2),o=e.slice(2,4),r=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(o,16),b:parseInt(r,16),a:i}}(o,r);return{type:"ColorValue",r:n,g:i,b:a,a:s,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return Ee(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let o=!1;if(m(t)){for(e.pos++;!e.eof();){if(e.eat(t)){o=!0;break}e.pos++}return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(o?1:0)),quote:t===Ce.SingleQuote?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return e===Ce.RoundBracketOpen||e===Ce.RoundBracketClose}(t))return{type:"Bracket",open:t===Ce.RoundBracketOpen,start:e.pos++,end:e.pos}}(e)||je(e)||function(e){const t=e.pos;if(e.eatWhile(p))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;if(e.eat(Le)?e.eatWhile(n?Te:Ae):e.eat(c)?e.eatWhile(t?Ae:Te):(e.eat(Ce.Dot),e.eatWhile(Ae)),n!==e.pos)return e.start=n,Ee(e,e.start=n)}(e,t)}function ze(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(Ce.CurlyBracketOpen))t.push(e.pos);else if(e.eat(Ce.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function Ee(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function _e(e){const t=e.pos;return e.eat(Ce.Dot)?(e.start=t,e.eatWhile(s)?e.current():"1"):""}function je(e){const t=(n=e.peek())===Ce.Sibling&&$e.Sibling||n===Ce.Excl&&$e.Important||n===Ce.Comma&&$e.ArgumentDelimiter||n===Ce.Colon&&$e.PropertyDelimiter||n===Ce.Dash&&$e.ValueDelimiter||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function Le(e){return e===Ce.At||e===Ce.Dollar}function qe(e){return s(e)||l(e,65,70)}function Te(e){return u(e)||e===Ce.Dash}function Ae(e){return c(e)||e===Ce.Percent||e===Ce.Slash}function Be(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function Oe(e,t){let n=0,o=0;for(;t.length;){const e=(r=t)[r.length-1];if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,o||(o=e.end),t.pop()}var r;n!==o&&t.push(Ee(e,n,o))}function Ne(e){return e.tokens[e.pos]}function Re(e){return e.pos<e.size}function He(e,t){return!!t(Ne(e))&&(e.pos++,!0)}function Ie(e,t,n=Ne(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function De(e,t){let n,o,r=!1;const i=[],a=Ne(e),s=!!t.value;for(s||!Me(a)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&Me(t)&&"Bracket"===n.type}(e)||(e.pos++,n=a.value,He(e,et)),s&&He(e,Qe);Re(e);)if(He(e,Je))r=!0;else if(o=Pe(e,s))i.push(o);else if(!He(e,Ye))break;if(n||i.length||r)return{name:n,value:i,important:r}}function Pe(e,t){const n=[];let o,r;for(;Re(e);)if(o=Ne(e),Ke(o))e.pos++,Me(o)&&(r=We(e))?n.push({type:"FunctionCall",name:o.value,arguments:r}):n.push(o);else{if(!(et(o)||t&&Qe(o)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function We(e){const t=e.pos;if(He(e,Ve)){const n=[];let o;for(;Re(e)&&!He(e,Ue);)if(o=Pe(e,!0))n.push(o);else if(!He(e,Qe)&&!He(e,Xe))throw Ie(e,"Unexpected token");return e.start=t,n}}function Me(e){return e&&"Literal"===e.type}function Fe(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function Ve(e){return Fe(e,!0)}function Ue(e){return Fe(e,!1)}function Qe(e){return e&&"WhiteSpace"===e.type}function Ze(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function Ge(e){return Ze(e,$e.Sibling)}function Xe(e){return Ze(e,$e.ArgumentDelimiter)}function Ye(e){return Xe(e)}function Je(e){return Ze(e,$e.Important)}function Ke(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type||"CustomProperty"===e.type}function et(e){return Ze(e,$e.PropertyDelimiter)||Ze(e,$e.ValueDelimiter)}function tt(e,t){try{const n="string"==typeof e?function(e,t){let n,o=0;const r=new f(e),i=[];for(;!r.eof();){if(n=Se(r,0===o&&!t),!n)throw r.error("Unexpected character");if("Bracket"===n.type&&(!o&&n.open&&Oe(r,i),o+=n.open?1:-1,o<0))throw r.error("Unexpected bracket",n.start);i.push(n),Be(n)&&(n=je(r))&&i.push(n)}return i}(e,t&&t.value):e;return function(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),o=[];let r;for(;Re(n);)if(r=De(n,t))o.push(r);else if(!He(n,Ge))throw Ie(n,"Unexpected token");return o}(n,t)}catch(t){throw t instanceof d&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function nt(e,t,n){if(e&&t){e.length&&n&&rt(e,n);for(const n of t)rt(e,n);return e}const o=e||t;return o&&o.slice()}function ot(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),"expression"!==e.valueType&&(e.valueType=t.valueType),e}function rt(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function it(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];if(t(o))return o;const r=it(o,t);if(r)return r}}function at(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function st(e){return"AbbreviationNode"===e.type}function lt(e,t,n){let o=[];for(const n of e.children){const e=t(n);if(e){o=o.concat(e.children);const r=at(e);st(r.node)&&(r.node.children=r.node.children.concat(lt(n,t)))}else o.push(n),n.children=lt(n,t)}return e.children=o}!function(e){e.Sibling="+",e.Important="!",e.ArgumentDelimiter=",",e.ValueDelimiter="-",e.PropertyDelimiter=":"}($e||($e={})),function(e){e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Colon=58]="Colon",e[e.Comma=44]="Comma",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Percent=37]="Percent",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Sibling=43]="Sibling",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Transparent=116]="Transparent",e[e.Slash=47]="Slash"}(Ce||(Ce={}));const ut="{",ct="}";function pt(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function mt(e,t){vt(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function ft(e,t){const n=t.split(/\r\n|\r|\n/g);for(let t=0,o=n.length-1;t<=o;t++)mt(e,n[t]),t!==o&&dt(e,!0)}function dt(e,t){const n=e.options["output.baseIndent"];mt(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){mt(e,e.options["output.indent"].repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function gt(e,t,n){vt(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function bt(e,t){return kt(e,t.options["output.attributeCase"])}function ht(e,t,n){return"expression"===e.valueType?n?ut:ct:"single"===t.options["output.attributeQuotes"]?"'":'"'}function yt(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function xt(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?xt(e.name,t):Boolean(e.value&&!e.attributes)}function vt(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function kt(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const wt={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function $t(e,t,n){const o=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(st(n))return n}}(t),r=n.context?n.context.name:"",i=((o?o.name:r)||"").toLowerCase();e.name=wt[i]||(xt(i,n)?"span":"div")}const Ct={ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]}},St=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function zt(e,t){return Math.floor(Math.random()*(t-e)+e)}function Et(e,t){const n=e.length,o=Math.min(n,t),r=[];for(;r.length<o;){const t=e[zt(0,n)];r.includes(t)||r.push(t)}return r}function _t(e,t){var n;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||"?!..."[zt(0,4)])}function jt(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let o=0;o=t>3&&t<=6?zt(0,1):t>6&&t<=12?zt(0,2):zt(1,4);for(let r,i=0;i<o;i++)r=zt(0,t-2),n.test(e[r])||(e[r]+=",");return e}function Lt(e,t,n){const o=[];let r,i=0;for(n&&e.common&&(r=e.common.slice(0,t),i+=r.length,o.push(_t(jt(r),".")));i<t;)r=Et(e.words,Math.min(zt(2,30),t-i)),i+=r.length,o.push(_t(jt(r)));return o.join(" ")}function qt(e){return"select"!==e.name}const Tt=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,At=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,Bt=e=>/^[a-z]\-/i.test(e),Ot=e=>/^[a-z]/i.test(e);function Nt(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=Wt(n.value);break}e._bem=Rt(t)}return e._bem}function Rt(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:It(t)}}function Ht(e,t=0,n){let o=Math.max(e.length-t,0);do{const t=e[o];if(t){const e=Nt(t);if(e.block)return e.block}}while(0<o--);if(n){const e=function(e){return e._bem||(e._bem=Rt(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function It(e){return Dt(e,Bt)||Dt(e,Ot)||void 0}function Dt(e,t){for(const n of e){if(Tt.test(n)||At.test(n))break;if(t(n))return n}}function Pt(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function Wt(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function Mt(e,t,n){return!!e&&n.indexOf(e)===t}function Ft(e){if("label"===e.name){const t=it(e,(e=>"input"===e.name||"textarea"===e.name));t&&(e.attributes&&(e.attributes=e.attributes.filter((e=>!("for"===e.name&&Vt(e))))),t.attributes&&(t.attributes=t.attributes.filter((e=>!("id"===e.name&&Vt(e))))))}}function Vt(e){if(!e.value)return!0;if(1===e.value.length){const t=e.value[0];if(t&&"string"!=typeof t&&!t.name)return!0}return!1}function Ut(e,t,n){const o=(e,o,i)=>{const{parent:a,current:s}=n;n.parent=s,n.current=e,t(e,o,i,n,r),n.current=s,n.parent=a},r=(e,t,r)=>{n.ancestors.push(n.current),o(e,t,r),n.ancestors.pop()};e.children.forEach(o)}function Qt(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:pt(e.options)}}const Zt=[{type:"Field",index:0,name:""}];function Gt(e){return!!e&&!e.name&&!e.attributes}function Xt(e,t){return!!e&&xt(e,t)}function Yt(e){return"object"==typeof e&&"Field"===e.type}function Jt(e,t){const{out:n}=t;let o=-1;for(const r of e)"string"==typeof r?ft(n,r):(gt(n,t.field+r.index,r.name),r.index>o&&(o=r.index));-1!==o&&(t.field+=o+1)}function Kt(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}var en;function tn(e){const t=[],n={pos:0,text:e};let o,r=n.pos,i=n.pos;for(;n.pos<n.text.length;)i=n.pos,(o=nn(n))?(r!==n.pos&&t.push(e.slice(r,i)),t.push(o),r=n.pos):n.pos++;return r!==n.pos&&t.push(e.slice(r)),t}function nn(e){if(on(e)===en.Start){const t=++e.pos;let n=t,o=t,r=1;for(;e.pos<e.text.length;){const i=on(e);if(rn(i)){for(n=e.pos;an(on(e));)e.pos++;o=e.pos}else{if(i===en.Start)r++;else if(i===en.End&&0==--r)return{before:e.text.slice(t,n),after:e.text.slice(o,e.pos++),name:e.text.slice(n,o)};e.pos++}}}}function on(e,t=e.pos){return e.text.charCodeAt(t)}function rn(e){return e>=65&&e<=90}function an(e){return rn(e)||e>47&&e<58||e===en.Underscore||e===en.Dash}function sn(e,t){const{comment:n}=t;if(!(n.enabled&&n.trigger&&e.name&&e.attributes))return!1;for(const t of e.attributes)if(t.name&&n.trigger.includes(t.name))return!0;return!1}function ln(e,t,n){const o={},{out:r}=n;for(const t of e.attributes)t.name&&t.value&&(o[t.name.toUpperCase()]=t.value);for(const e of t)"string"==typeof e?ft(r,e):o[e.name]&&(ft(r,e.before),Jt(o[e.name],n),ft(r,e.after))}!function(e){e[e.Start=91]="Start",e[e.End=93]="End",e[e.Underscore=95]="Underscore",e[e.Dash=45]="Dash"}(en||(en={}));const un=/^<([\w\-:]+)[\s>]/,cn=new Set(["for","while","of","async","await","const","let","var","continue","break","debugger","do","export","import","in","instanceof","new","return","switch","this","throw","try","catch","typeof","void","with","yield"]);function pn(e,t){const n=Qt(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?tn(t["comment.before"]):void 0,after:t["comment.after"]?tn(t["comment.after"]):void 0}}(t),Ut(e,mn,n),n.out.value}function mn(e,t,n,o,r){const{out:i,config:a}=o,s=gn(e,t,n,o),l=function(e){const{config:t,parent:n}=e;return!n||Gt(n)||n.name&&t.options["output.formatSkip"].includes(n.name)?0:1}(o);if(i.level+=l,s&&dt(i,!0),e.name){const t=function(e,t){return kt(e,t.options["output.tagCase"])}(e.name,a);if(function(e,t){sn(e,t)&&t.comment.before&&ln(e,t.comment.before,t)}(e,o),ft(i,`<${t}`),e.attributes)for(const t of e.attributes)Kt(t)&&fn(t,o);if(!e.selfClosing||e.children.length||e.value){if(ft(i,">"),!dn(e,o,r)){if(e.value){const t=e.value.some(bn)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=un.exec(e[0]);if((null==n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,a);t&&dt(o.out,++i.level),Jt(e.value,o),t&&dt(o.out,--i.level)}if(e.children.forEach(r),!e.value&&!e.children.length){const t=a.options["output.formatLeafNode"]||a.options["output.formatForce"].includes(e.name);t&&dt(o.out,++i.level),Jt(Zt,o),t&&dt(o.out,--i.level)}}ft(i,`</${t}>`),function(e,t){sn(e,t)&&t.comment.after&&ln(e,t.comment.after,t)}(e,o)}else ft(i,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(a)}>`)}else!dn(e,o,r)&&e.value&&(Jt(e.value,o),e.children.forEach(r));if(s&&t===n.length-1&&o.parent){const e=Gt(o.parent)?0:1;dt(i,i.level-e)}i.level-=l}function fn(e,t){const{out:n,config:o}=t;if(e.name){const r=o.options["markup.attributes"],i=o.options["markup.valuePrefix"];let{name:a,value:s}=e,l=ht(e,o,!0),u=ht(e,o);r&&(a=hn(a,r,e.multiple)||a),a=bt(a,o),o.options["jsx.enabled"]&&e.multiple&&(l=ut,u=ct);const c=i?hn(e.name,i,e.multiple):null;if(c&&1===(null==s?void 0:s.length)&&"string"==typeof s[0]){const e=s[0];s=[yn(e)?`${c}.${e}`:`${c}['${e}']`],o.options["jsx.enabled"]&&(l=ut,u=ct)}yt(e,o)&&!s?o.options["output.compactBoolean"]||(s=[a]):s||(s=Zt),ft(n," "+a),s?(ft(n,"="+l),Jt(s,t),ft(n,u)):"html"!==o.options["output.selfClosingStyle"]&&ft(n,"="+l+u)}}function dn(e,t,n){if(e.value&&e.children.length){const o=e.value.findIndex(Yt);if(-1!==o){Jt(e.value.slice(0,o),t);const r=t.out.line;let i=o+1;return e.children.forEach(n),t.out.line!==r&&"string"==typeof e.value[i]&&ft(t.out,e.value[i++].trimLeft()),Jt(e.value.slice(i),t),!0}}return!1}function gn(e,t,n,o){const{config:r,parent:i}=o;if(!r.options["output.format"])return!1;if(0===t&&!i)return!1;if(i&&Gt(i)&&1===n.length)return!1;if(Gt(e)&&(Gt(n[t-1])||Gt(n[t+1])||e.value.some(bn)||e.value.some(Yt)&&e.children.length))return!0;if(xt(e,r)){if(0===t){for(let e=0;e<n.length;e++)if(!xt(n[e],r))return!0}else if(!xt(n[t-1],r))return!0;if(r.options["output.inlineBreak"]){let e=1,o=t,i=t;for(;Xt(n[--o],r);)e++;for(;Xt(n[++i],r);)e++;if(e>=r.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(gn(e.children[t],t,e.children,o))return!0;return!1}return!0}function bn(e){return"string"==typeof e&&/\r|\n/.test(e)}function hn(e,t,n){return n&&t[`${e}*`]||t[e]}function yn(e){return!cn.has(e)&&/^[a-zA-Z_$][\w_$]*$/.test(e)}function xn(e,t,n){const o=Qt(t);return o.options=n||{},Ut(e,vn,o),o.out.value}function vn(e,t,n,o,r){const{out:i,options:a}=o,{primary:s,secondary:l}=function(e){const t=[],n=[];if(e.attributes)for(const o of e.attributes)kn(o)?t.push(o):n.push(o);return{primary:t,secondary:n}}(e),u=o.parent?1:0;i.level+=u,function(e,t,n,o){return!(!o.parent&&0===t)&&!Gt(e)}(e,t,0,o)&&dt(i,!0),!e.name||"div"===e.name&&s.length||ft(i,(a.beforeName||"")+e.name+(a.afterName||"")),function(e,t){for(const n of e)n.value&&("class"===n.name?(ft(t.out,"."),Jt(n.value.map((e=>"string"==typeof e?e.replace(/\s+/g,"."):e)),t)):(ft(t.out,"#"),Jt(n.value,t)))}(s,o),function(e,t){if(e.length){const{out:n,config:o,options:r}=t;r.beforeAttribute&&ft(n,r.beforeAttribute);for(let i=0;i<e.length;i++){const a=e[i];ft(n,bt(a.name||"",o)),yt(a,o)&&!a.value?!o.options["output.compactBoolean"]&&r.booleanValue&&ft(n,"="+r.booleanValue):(ft(n,"="+ht(a,o,!0)),Jt(a.value||Zt,t),ft(n,ht(a,o))),i!==e.length-1&&r.glueAttribute&&ft(n,r.glueAttribute)}r.afterAttribute&&ft(n,r.afterAttribute)}}(l.filter(Kt),o),!e.selfClosing||e.value||e.children.length?(function(e,t){if(!e.value&&e.children.length)return;const n=e.value||Zt,o=function(e){const t=[];let n=[];for(const o of e)if("string"==typeof o){const e=o.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(o);return n.length&&t.push(n),t}(n),{out:r,options:i}=t;if(1===o.length)(e.name||e.attributes)&&mt(r," "),Jt(n,t);else{const e=[];let n=0;for(const t of o){const o=wn(t);e.push(o),o>n&&(n=o)}r.level++;for(let a=0;a<o.length;a++)dt(r,!0),i.beforeTextLine&&mt(r,i.beforeTextLine),Jt(o[a],t),i.afterTextLine&&(mt(r," ".repeat(n-e[a])),mt(r,i.afterTextLine));r.level--}}(e,o),e.children.forEach(r)):o.options.selfClose&&ft(i,o.options.selfClose),i.level-=u}function kn(e){return"class"===e.name||"id"===e.name}function wn(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}const $n={html:pn,haml:function(e,t){return xn(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return xn(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return xn(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function Cn(e,t,n){!function(e,t,n){!e.name&&e.attributes&&$t(e,t,n)}(e,t,n),function(e,t){if(!e.attributes)return;const n=[],o={};for(const r of e.attributes)if(r.name){const e=r.name;if(e in o){const n=o[e];"class"===e?n.value=nt(n.value,r.value," "):ot(n,r,t)}else n.push(o[e]=Object.assign({},r))}else n.push(r);e.attributes=n}(e,n),function(e,t,n){let o;if(e.name&&(o=e.name.match(St))){const r=Ct[o[1]]||Ct.latin,i=o[2]?Math.max(1,Number(o[2])):30,a=zt(i,o[3]?Math.max(i,Number(o[3].slice(1))):i),s=e.repeat||function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("AbbreviationNode"===n.type&&n.repeat)return n.repeat}}(t);e.name=e.attributes=void 0,e.value=[Lt(r,a,!s||0===s.value)],e.repeat&&t.length>1&&$t(e,t,n)}}(e,t,n),"xsl"===n.syntax&&function(e){var t;"xsl:variable"!==(t=e.name)&&"xsl:with-param"!==t||!e.attributes||!e.children.length&&!e.value||(e.attributes=e.attributes.filter(qt))}(e),"markup"===n.type&&Ft(e),n.options["bem.enabled"]&&function(e,t,n){!function(e){const t=Nt(e),n=[];for(const e of t.classNames){const t=e.indexOf("_");t>0&&!e.startsWith("-")?(n.push(e.slice(0,t)),n.push(e.slice(t))):n.push(e)}n.length&&(t.classNames=n.filter(Mt),t.block=It(t.classNames),Pt(e,t.classNames.join(" ")))}(e),function(e,t,n){const o=Nt(e),r=[],{options:i}=n,a=t.slice(1).concat(e);for(let e of o.classNames){let t,o="";const s=e;(t=e.match(Tt))&&(o=Ht(a,t[1].length,n.context)+i["bem.element"]+t[2],r.push(o),e=e.slice(t[0].length)),(t=e.match(At))&&(o||(o=Ht(a,t[1].length),r.push(o)),r.push(`${o}${i["bem.modifier"]}${t[2]}`),e=e.slice(t[0].length)),e===s&&r.push(s)}const s=r.filter(Mt);s.length&&Pt(e,s.join(" "))}(e,t,n)}(e,t,n)}var Sn;!function(e){e.Raw="Raw",e.Property="Property"}(Sn||(Sn={}));const zn=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,En={value:!0};function jn(e,t){const n=t.match(zn);if(n){const t={},o=n[2]?n[2].split("|").map(qn):[];for(const e of o)for(const n of e)An(n,t);return{type:Sn.Property,key:e,property:n[1],value:o,keywords:t,dependencies:[]}}return{type:Sn.Raw,key:e,value:t}}function Ln(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function qn(e){return tt(e.trim(),En)[0].value}function Tn(e){return e.type===Sn.Property}function An(e,t){for(const n of e.value)if("Literal"===n.type)t[n.value]=n;else if("FunctionCall"===n.type)t[n.name]=n;else if("Field"===n.type){const e=n.name.trim();e&&(t[e]={type:"Literal",value:e})}}function Bn(e,t,n=!1){if((e=e.toLowerCase())===(t=t.toLowerCase()))return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const o=e.length,r=t.length;if(!n&&o>r)return 0;const i=Math.min(o,r),a=Math.max(o,r);let s=1,l=1,u=a,c=0,p=0,m=!1,f=!1;for(;s<o;){for(c=e.charCodeAt(s),m=!1,f=!1;l<r;){if(p=t.charCodeAt(l),c===p){m=!0,u+=a-(f?s:l);break}f=45===p,l++}if(!m){if(!n)return 0;break}s++}const d=a-i;return u*(s/a)/(On(a)-On(d))}function On(e){return e*(e+1)/2}function Nn(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&Hn(e.r)&&Hn(e.g)&&Hn(e.b)?In:Dn;return"#"+n(e.r)+n(e.g)+n(e.b)}(e,t):function(e){const t=[e.r,e.g,e.b];return 1!==e.a&&t.push(Rn(e.a,8)),`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function Rn(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function Hn(e){return!(e%17)}function In(e){return(e>>4).toString(16)}function Dn(e){return function(e,t){for(;e.length<2;)e="0"+e;return e}(e.toString(16))}const Pn={Global:"@@global",Section:"@@section",Property:"@@property",Value:"@@value"};function Wn(e,t,n){const o=n.options["stylesheet.json"];if(e.name)ft(t,(o?e.name.replace(/\-(\w)/g,((e,t)=>t.toUpperCase())):e.name)+n.options["stylesheet.between"]),e.value.length?function(e,t,n){const o=n.options["stylesheet.json"],r=o?function(e){if(1===e.value.length){const t=e.value[0];if(1===t.value.length&&"NumberValue"===t.value[0].type)return t.value[0]}}(e):null;if(!r||r.unit&&"px"!==r.unit){const r=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(n);o&&mt(t,r);for(let o=0;o<e.value.length;o++)0!==o&&mt(t,", "),Fn(e.value[o],t,n);o&&mt(t,r)}else mt(t,String(r.value))}(e,t,n):gt(t,0,""),o?mt(t,","):(Mn(e,t,!0),mt(t,n.options["stylesheet.after"]));else{for(const o of e.value)for(const e of o.value)Vn(e,t,n);Mn(e,t,e.value.length>0)}}function Mn(e,t,n){e.important&&(n&&mt(t," "),mt(t,"!important"))}function Fn(e,t,n){for(let o=0,r=-1;o<e.value.length;o++){const i=e.value[o];0===o||"Field"===i.type&&i.start===r||mt(t," "),Vn(i,t,n),r=i.end}}function Vn(e,t,n){if("ColorValue"===e.type)mt(t,Nn(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type||"CustomProperty"===e.type)ft(t,e.value);else if("NumberValue"===e.type)ft(t,Rn(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";ft(t,n+e.value+n)}else if("Field"===e.type)gt(t,e.index,e.name);else if("FunctionCall"===e.type){mt(t,e.name+"(");for(let o=0;o<e.arguments.length;o++)o&&mt(t,", "),Fn(e.arguments[o],t,n);mt(t,")")}}const Un="lg";function Qn(e,t,n){if(!function(e,t){let n=null;const o=1===e.value.length?e.value[0]:null;if(o&&1===o.value.length){const e=o.value[0];"FunctionCall"===e.type&&e.name===Un&&(n=e)}return!(!n&&e.name!==Un)&&(n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[Jn(eo(0,""))]},t.context||(e.name="background-image"),e.value=[Jn(n)],!0)}(e,n)){const o=n.options["stylesheet.fuzzySearchMinScore"];if(oo(n)){const r=n.context.name,i=t.find((e=>e.type===Sn.Property&&e.property===r));Zn(e,n,i,o),e.snippet=i}else if(e.name){const r=Gn(e.name,t,o,!0);if(e.snippet=r,r){const t=r.type===Sn.Property?function(e,t,n){const o=function(e,t){for(let n=0,o=0;n<e.length;n++){if(o=t.indexOf(e[n],o),-1===o)return e.slice(n);o++}return""}(e.name,t.key);if(o){if(e.value.length)return null;const r=Yn(o,n,t);if(!r)return null;e.value.push(Jn(r))}if(e.name=t.property,e.value.length)Zn(e,n,t);else if(t.value.length){const o=t.value[0];e.value=1===t.value.length||o.some(to)?o:o.map((e=>no(e,n)))}return e}(e,r,n):function(e,t){let n,o=0;const r=/\$\{(\d+)(:[^}]+)?\}/g,i=e.value[0],a=[];for(;n=r.exec(t.value);)o!==n.index&&a.push(Kn(t.value.slice(o,n.index))),o=n.index+n[0].length,i&&i.value.length?a.push(i.value.shift()):a.push(eo(Number(n[1]),n[2]?n[2].slice(1):""));const s=t.value.slice(o);return s&&a.push(Kn(s)),e.name=void 0,e.value=[Jn(...a)],e}(e,r);if(t)e=t;else if(n.options["stylesheet.strictMatch"])return null}}}return(e.name||n.context)&&function(e,t){const n=t.options["stylesheet.unitAliases"],o=t.options["stylesheet.unitless"];for(const r of e.value)for(const i of r.value)"NumberValue"===i.type&&(i.unit?i.unit=n[i.unit]||i.unit:0===i.value||o.includes(e.name)||(i.unit=i.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,n),e}function Zn(e,t,n,o){for(const r of e.value){const e=[];for(const i of r.value)if("Literal"===i.type)e.push(Yn(i.value,t,n,o)||i);else if("FunctionCall"===i.type){const r=Yn(i.name,t,n,o);r&&"FunctionCall"===r.type?e.push(Object.assign(Object.assign({},r),{arguments:i.arguments.concat(r.arguments.slice(i.arguments.length))})):e.push(i)}else e.push(i);r.value=e}}function Gn(e,t,n=0,o=!1){let r=null,i=0;for(const n of t){const t=Bn(e,Xn(n),o);if(1===t)return n;t&&t>=i&&(i=t,r=n)}return i>=n?r:null}function Xn(e){return"string"==typeof e?e:e.key}function Yn(e,t,n,o){let r;if(n){if(r=Gn(e,Object.keys(n.keywords),o))return n.keywords[r];for(const t of n.dependencies)if(r=Gn(e,Object.keys(t.keywords),o))return t.keywords[r]}return(r=Gn(e,t.options["stylesheet.keywords"],o))?Kn(r):null}function Jn(...e){return{type:"CSSValue",value:e}}function Kn(e){return{type:"Literal",value:e}}function eo(e,t){return{type:"Field",index:e,name:t}}function to(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(to))return!0;return!1}function no(e,t,n={index:1}){let o=[];for(const r of e.value)switch(r.type){case"ColorValue":o.push(eo(n.index++,Nn(r,t.options["stylesheet.shortHex"])));break;case"Literal":o.push(eo(n.index++,r.value));break;case"NumberValue":o.push(eo(n.index++,`${r.value}${r.unit}`));break;case"StringValue":const e="single"===r.quote?"'":'"';o.push(eo(n.index++,e+r.value+e));break;case"FunctionCall":o.push(eo(n.index++,r.name),Kn("("));for(let e=0,i=r.arguments.length;e<i;e++)o=o.concat(no(r.arguments[e],t,n).value),e!==i-1&&o.push(Kn(", "));o.push(Kn(")"));break;default:o.push(r)}return Object.assign(Object.assign({},e),{value:o})}function oo(e){return!(!e.context||e.context.name!==Pn.Value&&e.context.name.startsWith("@@"))}const ro={markup:"html",stylesheet:"css"},io={type:"markup",syntax:"html",variables:{lang:"en",locale:"en-US",charset:"UTF-8",indentation:"\t",newline:"\n"},snippets:{},options:{inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"\t","output.baseIndent":"","output.newline":"\n","output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0,"stylesheet.strictMatch":!1}},ao={markup:{snippets:so({a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:refresh":"meta[http-equiv=refresh content='${1:5}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]","script:module":"script[type=module src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1}]","tarea:c|textarea:cols":"textarea[name=${1} id=${1} cols=${2:30}]","tarea:r|textarea:rows":"textarea[name=${1} id=${1} rows=${3:10}]","tarea:cr|textarea:cols:rows":"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:b|button:b|button:button":"button[type=button]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command",data:"data[value]",meter:"meter[value]",time:"time[datetime]","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:so({"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0,"markup.attributes":{class:"className","class*":"styleName",for:"htmlFor"},"markup.valuePrefix":{"class*":"styles"}}},vue:{options:{"markup.attributes":{"class*":":class"}}},svelte:{options:{"jsx.enabled":!0}},pug:{snippets:so({"!!!":"{doctype html}"})},stylesheet:{snippets:so({"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${2});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bbs:"border-block-start",bbe:"border-block-end",bis:"border-inline-start",bie:"border-inline-end",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}","bg:n":"background: none",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:${1:#fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bs:"block-size",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cg:"column-gap",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|contents|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",g:"gap",gtc:"grid-template-columns:repeat(${0})|minmax()",gtr:"grid-template-rows:repeat(${0})|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",is:"inline-size",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",mbs:"margin-block-start",mbe:"margin-block-end",mis:"margin-inline-start",mie:"margin-inline-end",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width:thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",pbs:"padding-block-start",pbe:"padding-block-end",pis:"padding-inline-start",pie:"padding-inline-end",spbs:"scroll-padding-block-start",spbe:"scroll-padding-block-end",spis:"scroll-padding-inline-start",spie:"scroll-padding-inline-end",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rg:"row-gap",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub","w|wid":"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wido:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"})},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function so(e){const t={};return Object.keys(e).forEach((n=>{for(const o of n.split("|"))t[o]=e[n]})),t}function lo(e={},t={}){const n=e.type||"markup",o=e.syntax||ro[n];return Object.assign(Object.assign(Object.assign({},io),e),{type:n,syntax:o,variables:uo(n,o,"variables",e,t),snippets:uo(n,o,"snippets",e,t),options:uo(n,o,"options",e,t)})}function uo(e,t,n,o,r={}){const i=ao[e],a=r[e],s=ao[t],l=r[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},io[n]),i&&i[n]),s&&s[n]),a&&a[n]),l&&l[n]),o[n])}function co(e,t=0){return{text:e,start:t,pos:e.length}}function po(e){return e.pos===e.start}function mo(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function fo(e){if(!po(e))return e.text.charCodeAt(--e.pos)}function go(e,t){if(po(e))return!1;const n="function"==typeof t?t(mo(e)):t===mo(e);return n&&e.pos--,!!n}function bo(e,t){const n=e.pos;for(;go(e,t););return e.pos<n}var ho,yo;function xo(e){return e===ho.SingleQuote||e===ho.DoubleQuote}!function(e){e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Escape=92]="Escape"}(ho||(ho={})),function(e){e[e.SquareL=91]="SquareL",e[e.SquareR=93]="SquareR",e[e.RoundL=40]="RoundL",e[e.RoundR=41]="RoundR",e[e.CurlyL=123]="CurlyL",e[e.CurlyR=125]="CurlyR"}(yo||(yo={}));const vo={[yo.SquareL]:yo.SquareR,[yo.RoundL]:yo.RoundR,[yo.CurlyL]:yo.CurlyR};var ko;function wo(e){const t=e.pos;if(!go(e,ko.AngleRight))return!1;let n=!1;for(go(e,ko.Slash);!po(e);){if(bo(e,Eo),So(e)){if(go(e,ko.Slash)){n=go(e,ko.AngleLeft);break}if(go(e,ko.AngleLeft)){n=!0;break}if(go(e,Eo))continue;if(go(e,ko.Equals)){if(So(e))continue;break}if(Co(e)){n=!0;break}break}if(!$o(e))break}return e.pos=t,n}function $o(e){return function(e){const t=e.pos;return!!(function(e){const t=e.pos,n=fo(e);if(xo(n))for(;!po(e);)if(fo(e)===n&&mo(e)!==ho.Escape)return!0;return e.pos=t,!1}(e)&&go(e,ko.Equals)&&So(e))||(e.pos=t,!1)}(e)||Co(e)}function Co(e){const t=e.pos,n=[];for(;!po(e);){const t=mo(e);if(Lo(t))n.push(t);else if(jo(t)){if(n.pop()!==vo[t])break}else if(!_o(t))break;e.pos--}return!(t===e.pos||!go(e,ko.Equals)||!So(e))||(e.pos=t,!1)}function So(e){return bo(e,zo)}function zo(e){return e===ko.Colon||e===ko.Dash||function(e){return(e&=-33)>=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function Eo(e){return e===ko.Space||e===ko.Tab}function _o(e){return!isNaN(e)&&e!==ko.Equals&&!Eo(e)&&!xo(e)}function jo(e){return e===yo.CurlyL||e===yo.RoundL||e===yo.SquareL}function Lo(e){return e===yo.CurlyR||e===yo.RoundR||e===yo.SquareR}!function(e){e[e.Tab=9]="Tab",e[e.Space=32]="Space",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Equals=61]="Equals",e[e.AngleLeft=60]="AngleLeft",e[e.AngleRight=62]="AngleRight"}(ko||(ko={}));const qo=e=>e.charCodeAt(0),To="#.*:$-_!@%^+>/".split("").map(qo),Ao={type:"markup",lookAhead:!0,prefix:""};function Bo(e,t,n){const o=e.pos;if(go(e,t))for(;!po(e);){if(go(e,n))return!0;e.pos--}return e.pos=o,!1}function Oo(e,t){const n=e.pos;let o=!1;for(let n=t.length-1;n>=0&&!po(e)&&go(e,t[n]);n--)o=0===n;return o||(e.pos=n),o}function No(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||To.includes(e)}function Ro(e,t){return e===yo.RoundL||"markup"===t&&(e===yo.SquareL||e===yo.CurlyL)}function Ho(e,t){return e===yo.RoundR||"markup"===t&&(e===yo.SquareR||e===yo.CurlyR)}function Io(e,t){const n=lo(t);return"stylesheet"===n.type?function(e,t){return function(e,t){var n;const o=pt(t.options),r=t.options["output.format"];(null===(n=t.context)||void 0===n?void 0:n.name)===Pn.Section&&(e=e.filter((e=>e.snippet)));for(let n=0;n<e.length;n++)r&&0!==n&&dt(o,!0),Wn(e[n],o,t);return o.value}(function(e,t){var n;const o=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||function(e){const t=[];for(const n of Object.keys(e))t.push(jn(n,e[n]));return function(e){e=e.slice().sort(Ln);const t=[];let n;for(const o of e.filter(Tn)){for(;t.length;){if(n=t[t.length-1],o.property.startsWith(n.property)&&45===o.property.charCodeAt(n.property.length)){n.dependencies.push(o),t.push(o);break}t.pop()}t.length||t.push(o)}return e}(t)}(t.snippets),r=[];t.cache&&(t.cache.stylesheetSnippets=o),"string"==typeof e&&(e=tt(e,{value:oo(t)}));const i=function(e,t){if(t.context){if(t.context.name===Pn.Section)return e.filter((e=>e.type===Sn.Raw));if(t.context.name===Pn.Property)return e.filter((e=>e.type===Sn.Property))}return e}(o,t);for(const n of e){const e=Qn(n,i,t);e&&r.push(e)}return r}(e,t),t)}(e,n):function(e,t){return function(e,t){return($n[t.syntax]||pn)(e,t)}(function(e,t){let n;if("string"==typeof e){const o=Object.assign({},t);t.options["jsx.enabled"]&&(o.jsx=!0),t.options["markup.href"]&&(o.href=!0),e=we(e,o),n=t.text,t.text=void 0}return e=function(e,t){const n=[],o=t.options["output.reverseAttributes"],{warn:r}=t,i=e=>{const a=e.name&&t.snippets[e.name];if(!a||n.includes(a))return null;let s;try{s=we(a,t)}catch(e){return null==r||r(`Unable to parse "${a}" snippet`,e),null}n.push(a),lt(s,i),n.pop();for(const t of s.children){if(e.attributes){const n=t.attributes||[],r=e.attributes||[];t.attributes=o?r.concat(n):n.concat(r)}u=t,(l=e).selfClosing&&(u.selfClosing=!0),null!=l.value&&(u.value=l.value),l.repeat&&(u.repeat=l.repeat)}var l,u;return s};return lt(e,i),e}(e,t),function(e,t,n){const o=[e],r=e=>{t(e,o,n),o.push(e),e.children.forEach(r),o.pop()};e.children.forEach(r)}(e,Cn,t),t.text=null!=n?n:t.text,e}(e,t),t)}(e,n)}const Do={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]},Po={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext","figcaption","hgroup","details","summary"]},Wo=new Map;let Mo;const Fo=new Map,Vo=/^[a-z,A-Z,!,(,[,#,\.\{]/,Uo=/^[a-z,A-Z,!,(,[,#,\.]/,Qo=/^-?[a-z,A-Z,!,@,#]/,Zo=/[a-z,A-Z\.]/,Go=[...Po.tags,"lorem"],Xo="bem",Yo="|",Jo="t",Ko="c",er=3;function tr(e,t,n,o,r){var i;const a=lr(o);if(!a){if(!Wo.has(o)){const e=Object.assign(Object.assign({},function(e){const t=lo({type:ur(e),syntax:e});return"xml"===e?{}:t.snippets}(o)),ar[o]);Wo.set(o,Object.keys(e))}Mo=null!==(i=Wo.get(o))&&void 0!==i?i:[]}const s={lookAhead:!a,type:ur(o)},l=function(e,t,n,o){const r=t.getLineContent(n.lineNumber),i=r.substr(0,n.column-1),{pos:a,filter:s}=function(e,t){let n;for(let o=0;o<er;o++)if(e.endsWith(`${Yo}${Xo}`,t))t-=Xo.length+1,n=n?Xo+","+n:Xo;else if(e.endsWith(`${Yo}${Ko}`,t))t-=Ko.length+1,n=n?Ko+","+n:Ko;else{if(!e.endsWith(`${Yo}${Jo}`,t))break;t-=Jo.length+1,n=n?Jo+","+n:Jo}return{pos:t,filter:n}}(i,n.column-1),l=s?s.length+1:0,u=function(e,t=e.length,n={}){const o=Object.assign(Object.assign({},Ao),n);let r;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),o.lookAhead&&(t=function(e,t,n){for(xo(e.charCodeAt(t))&&t++;Ho(e.charCodeAt(t),n.type);)t++;return t}(e,t,o));const i=function(e,t,n){if(!n)return 0;const o=co(e),r=n.split("").map(qo);let i;for(o.pos=t;!po(o);)if(!Bo(o,yo.SquareR,yo.SquareL)&&!Bo(o,yo.CurlyR,yo.CurlyL)){if(i=o.pos,Oo(o,r))return i;o.pos--}return-1}(e,t,o.prefix||"");if(-1===i)return;const a=co(e,i);a.pos=t;const s=[];for(;!po(a);){if(r=mo(a),s.includes(yo.CurlyR)){if(r===yo.CurlyR){s.push(r),a.pos--;continue}if(r!==yo.CurlyL){a.pos--;continue}}if(Ho(r,o.type))s.push(r);else if(Ro(r,o.type)){if(s.pop()!==vo[r])break}else{if(s.includes(yo.SquareR)||s.includes(yo.CurlyR)){a.pos--;continue}if(wo(a)||!No(r))break}a.pos--}if(!s.length&&a.pos!==t){const o=e.slice(a.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:o,location:t-o.length,start:n.prefix?i-n.prefix.length:t-o.length,end:t}}}(r,a,o);if(!u)return;return{abbreviationRange:new e.Range(n.lineNumber,u.location+1,n.lineNumber,u.location+u.abbreviation.length+l+1),abbreviation:u.abbreviation,currentLineTillPosition:i,filter:s}}(e,t,n,s);if(!l)return;const{abbreviationRange:u,abbreviation:c,currentLineTillPosition:p,filter:m}=l,f=function(e){if(e){const t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}(p);if(f===c&&p.endsWith(`<${c}`)&&!a)return;const d=function(e,t){var n;const o=t?t.split(",").map((e=>e.trim())):[],r=o.includes("bem"),i=o.includes("c"),a={"output.formatSkip":["html"],"output.formatForce":["body"],"output.field":sr,"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"markup.href":!0,"comment.enabled":i,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":r,"bem.element":"__","bem.modifier":"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":!0,"stylesheet.between":"stylus"===e?" ":": ","stylesheet.after":"sass"===e||"stylus"===e?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3,"output.format":!0,"output.selfClosingStyle":"html"},s=ur(e),l=function(e){return lr(e)?"css":"html"}(e);return{type:s,options:a,variables:{},snippets:"stylesheet"===s?null!==(n=ar[e])&&void 0!==n?n:ar[l]:ar[e],syntax:e,text:void 0,maxRepeat:1e3}}(o,m);let g,b="",h=[];if(((t,n)=>{if(function(e,t){if(!t)return!1;if(lr(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(Go.includes(t.substring(0,t.indexOf("#"))))return!1}return Qo.test(t)}return t.startsWith("!")?!/[^!]/.test(t):!!(!/\(/.test(t)&&!/\)/.test(t)||/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)||/\(.*\)[>\+\*\^]/.test(t)||/\[[^\[\]\(\)]+=".*"\]/.test(t)||/[>\+\*\^]\(.*\)/.test(t))&&("jsx"===e?Uo.test(t)&&Zo.test(t):Vo.test(t)&&Zo.test(t))}(t,c)){try{b=Io(n,d),a&&"!important".startsWith(n)&&(b="!important")}catch(e){}b&&!function(e,t,n,o){var r,i;if(lr(e)&&o){const e=null!==(r=o["stylesheet.between"])&&void 0!==r?r:": ",a=null!==(i=o["stylesheet.after"])&&void 0!==i?i:";";let s=t.indexOf(e[0],Math.max(t.length-e.length,0));return s=s>=0?s:t.length,n===`${t.substring(0,s)}${e}\${0}${a}`||n.replace(/\s/g,"")===t.replace(/\s/g,"")+a}if("xml"===e&&Go.some((e=>e.startsWith(t.toLowerCase()))))return!0;if(Go.includes(t.toLowerCase())||Mo.includes(t))return!1;if(/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if("."===t)return!1;const a=t.match(/^([a-z,A-Z,\d]*)\.$/);return a?!a[1]||!Po.tags.includes(a[1]):("jsx"!==e||!/^([A-Z][A-Za-z0-9]*)+$/.test(t))&&n.toLowerCase()===`<${t.toLowerCase()}>\${1}</${t.toLowerCase()}>`}(t,n,b,d.options)&&(g={kind:e.languages.CompletionItemKind.Property,label:c+(m?"|"+m.replace(",","|"):""),documentation:or(b),detail:"Emmet abbreviation",insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:u,insertText:rr(ir(b))},h=[g])}})(o,c),a){if(c.length>4&&Do.properties.some((e=>e.startsWith(c))))return{suggestions:[],incomplete:!0};if(g&&b.length){g.range=u,g.insertText=rr(ir(b)),g.documentation=or(b),g.label=b.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1"),g.filterText=c;const t=Fo.has(o)?Fo.get(o):Fo.get("css");if(h=nr(e,null!=t?t:[],c,c,u,d,"Emmet Custom Snippet",!1),!h.find((e=>e.insertText===(null==g?void 0:g.insertText)))){const e=new RegExp(".*"+c.split("").map((e=>"$"===e||"+"===e?"\\"+e:e)).join(".*")+".*","i");(/\d/.test(c)||e.test(g.label))&&h.push(g)}}}else{let t=c;const n=c.match(/(>|\+)([\w:-]+)$/);if(n&&3===n.length&&(t=n[2]),"xml"!==o){const n=nr(e,Go,t,c,u,d,"Emmet Abbreviation");h=h.concat(n)}if(!0===r.showAbbreviationSuggestions){const n=nr(e,Mo.filter((e=>!Go.includes(e))),t,c,u,d,"Emmet Abbreviation");g&&n.length>0&&t!==c&&(g.sortText="0"+g.label,n.forEach((e=>{e.filterText=c,e.sortText="9"+c}))),h=h.concat(n)}"html"===o&&h.length>=2&&c.includes(":")&&(null==g?void 0:g.insertText)===`<${c}>\${0}</${c}>`&&(h=h.filter((e=>e.label!==c)))}return!0===r.showSuggestionsAsSnippets&&h.forEach((t=>t.kind=e.languages.CompletionItemKind.Snippet)),h.length?{suggestions:h,incomplete:!0}:void 0}function nr(e,t,n,o,r,i,a,s=!0){if(!n||!t)return[];const l=[];return t.forEach((t=>{if(!t.startsWith(n.toLowerCase())||s&&t===n.toLowerCase())return;const u=o+t.substr(n.length);let c;try{c=Io(u,i)}catch(e){}if(!c)return;const p={kind:e.languages.CompletionItemKind.Property,label:n+t.substr(n.length),documentation:or(c),detail:a,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:r,insertText:rr(ir(c))};l.push(p)})),l}function or(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function rr(e){return e?e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):e}function ir(e){if(!e||!e.trim())return e;let t=-1,n=[],o=!1,r=!1,i=0;const a=e.length;try{for(;i<a&&!o;){if("$"!=e[i++]||"{"!=e[i++])continue;let s=-1,l=-1;for(;i<a&&/\d/.test(e[i]);)s=s<0?i:s,l=i+1,i++;if(-1===s||-1===l||i>=a||"}"!=e[i]&&":"!=e[i])continue;const u=e.substring(s,l);if(o="0"===u,o)break;let c=!1;if(":"==e[i++])for(;i<a;){if("}"==e[i]){c=!0;break}i++}Number(u)>Number(t)?(t=Number(u),n=[{numberStart:s,numberEnd:l}],r=!c):Number(u)===t&&n.push({numberStart:s,numberEnd:l})}}catch(e){}if(r&&!o)for(let t=0;t<n.length;t++){const o=n[t].numberStart,r=n[t].numberEnd;e=e.substr(0,o)+"0"+e.substr(r)}return e}let ar={};const sr=(e,t)=>`\${${e}${t?":"+t:""}}`;function lr(e){return"css"===e}function ur(e){return lr(e)?"stylesheet":"markup"}function cr(e,t,n,o){const r=e[t],i=r.type;return"html"===n?""===i&&(0===t||"delimiter.html"===e[t-1].type)||"text.html.basic"===e[0].type:"css"===n?""===i||i==="tag."+o:"jsx"===n&&("mdx"===r.language&&""===i||!!t&&["identifier.js","type.identifier.js","identifier.ts","type.identifier.ts"].includes(i))}const pr=new WeakMap;const mr={html:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],jade:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],slim:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],haml:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xml:[".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xsl:["!",".","}","*","$","/","]",">","0","1","2","3","4","5","6","7","8","9"],css:[":","!","-","0","1","2","3","4","5","6","7","8","9"],scss:[":","!","-","0","1","2","3","4","5","6","7","8","9"],sass:[":","!","0","1","2","3","4","5","6","7","8","9"],less:[":","!","-","0","1","2","3","4","5","6","7","8","9"],stylus:[":","!","0","1","2","3","4","5","6","7","8","9"],javascript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]},fr={handlebars:"html",php:"html",twig:"html"},dr={showExpandedAbbreviation:"always",showAbbreviationSuggestions:!0,showSuggestionsAsSnippets:!1};function gr(e,t,n){if(!e)return void console.error("emmet-monaco-es: 'monaco' should be either declared on window or passed as first parameter");const o=t.map((t=>e.languages.registerCompletionItemProvider(t,{triggerCharacters:mr[fr[t]||t],provideCompletionItems:(o,r)=>function(e,t,n,o){var r;const{column:i,lineNumber:a}=t,{_stateStore:s,_support:l}=function(e){if(pr.has(e))return pr.get(e);let t=e._tokenization||e.tokenization._tokenization,n=null==t?void 0:t._tokenizationStateStore;if(!t||!n){const o=e.tokenization,r=o.grammarTokens||o._tokens;r?(t=r._defaultBackgroundTokenizer,n=t._tokenizerWithStateStore):(Object.values(o).some((e=>t=e.tokenizeViewport&&e)),Object.values(t).some((e=>n=e.tokenizationSupport&&e)))}const o=n.tokenizationSupport||t._tokenizationSupport,r={_stateStore:n,_support:o};return pr.set(e,r),r}(e),u=(null===(r=s.getBeginState)||void 0===r?void 0:r.call(s,a-1).clone())||s.getStartState(a).clone(),c=l.tokenize(e.getLineContent(a),!0,u,0).tokens;let p=!1;for(let e=c.length-1;e>=0;e--)if(i-1>c[e].offset){p=cr(c,e,n,o);break}return p}(o,r,n,t)?tr(e,o,r,n,dr):void 0})));return()=>{o.forEach((e=>e.dispose()))}}const br=window.wp.components,hr=[{label:"HTML",value:"html"},{label:"CSS",value:"css"},{label:"SCSS",value:"scss"},{label:"JavaScript",value:"js"},{label:"PHP",value:"php"},{label:"TypeScript",value:"typescript"},{label:"Bash",value:"bash"},{label:"Twig",value:"twig"},{label:"YAML",value:"yaml"},{label:"Plaintext",value:"plaintext"},{label:"JSON",value:"json"}],yr=window.wp.primitives;var xr=n(848);const vr=(0,xr.jsx)(yr.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xr.jsx)(yr.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})}),kr=(0,xr.jsx)(yr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xr.jsx)(yr.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})}),wr=({viewMode:e,setViewMode:t,syntaxHighlight:n,setSyntaxHighlight:o,setAttributes:i,editorLanguage:s,changeEditorLanguage:l})=>{const[u,c]=(0,r.useState)(hr[0].value),p=hr.find((e=>e.value===u))?.label||"";return(0,r.createElement)(a.BlockControls,null,!n&&(0,r.createElement)(br.ToolbarGroup,null,(0,r.createElement)(br.ToolbarButton,{icon:"preview"===e?vr:kr,label:"preview"===e?"Switch to Split View":"Switch to Preview",onClick:()=>t("preview"===e?"split":"preview")},"preview"===e?"Preview":"Split")),(0,r.createElement)(br.ToolbarGroup,null,(0,r.createElement)(br.ToolbarItem,null,(()=>(0,r.createElement)(br.ToolbarButton,{label:"Highlighting",isPressed:n,onClick:()=>{o(!n),i({syntaxHighlight:!n})}},n?"Highlighting On":"Highlighting Off")))),n&&(0,r.createElement)(br.ToolbarGroup,null,(0,r.createElement)(br.ToolbarDropdownMenu,{text:p,icon:null,label:"Select a language",controls:hr.map((e=>({title:e.label,onClick:()=>{c(e.value),l(e.value),console.log(e.value)}})))})))},$r=(0,i.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,i.cloneElement)(e,{width:t,height:t,...n,ref:o})})),Cr=(0,xr.jsx)(yr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xr.jsx)(yr.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})}),Sr=[{label:"Light",value:"light"},{label:"Dark",value:"dark"}],zr={padding:"10px 0px 10px 15px"},Er=({attributes:e,setAttributes:t,syntaxHighlight:n,setSyntaxHighlight:o,syntaxHighlightTheme:i,toggleSyntaxHighlightTheme:s,editorLanguage:l,changeEditorLanguage:u,theme:c,toggleTheme:p,fontSize:m,setFontSize:f,editorHeight:d,setEditorHeight:g,updateAttribute:b,displayLanguage:h,copyButton:y})=>(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(br.Panel,null,(0,r.createElement)(br.PanelBody,{title:"Element Settings"},(0,r.createElement)("div",{className:"togglecontrol--with-info"},(0,r.createElement)(br.ToggleControl,{label:"Use Wrapper",checked:e.useWrapper,onChange:e=>{t({useWrapper:e})},__nextHasNoMarginBottom:!0}),(0,r.createElement)("div",{className:"togglecontrol--with-info__icon-wrapper"},(0,r.createElement)($r,{icon:Cr,size:20}),(0,r.createElement)("p",null,"Wrap the editor content in a div to use WordPress attributes such as class name, width class, etc."))),!n&&(0,r.createElement)(br.__experimentalUnitControl,{label:"Editor Height",value:d,onChange:e=>{const n=e.toString().endsWith("px")?e:`${e}px`;g(n),localStorage.setItem("dblocks_editor_height",n),t({editorHeight:n})},units:[{value:"px",label:"px",default:500}],min:10,max:1e3,__next40pxDefaultSize:!0}),(0,r.createElement)("div",{className:"togglecontrol--with-info"},(0,r.createElement)(br.ToggleControl,{label:"Syntax Highlighting",checked:n,onChange:e=>{o(e),t({syntaxHighlight:e,scaleHeightWithContent:e})},__nextHasNoMarginBottom:!0}),(0,r.createElement)("div",{className:"togglecontrol--with-info__icon-wrapper"},(0,r.createElement)($r,{icon:Cr,size:20}),(0,r.createElement)("p",null,"If this is disabled code will be injected as HTML, otherwise the code will be displayed with syntax highlighting as code snippet preview."))),n&&(0,r.createElement)("div",{style:zr},(0,r.createElement)(br.SelectControl,{label:"Language",value:l,options:hr,onChange:u,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,r.createElement)(br.SelectControl,{label:"Front End Theme",value:i,options:Sr,onChange:()=>{s()},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,r.createElement)(br.ToggleControl,{label:"Display Language",checked:h,onChange:e=>{b("displayLanguage",e,"/wp-json/dblocks_codepro/v1/display-language/")},__nextHasNoMarginBottom:!0}),(0,r.createElement)(br.ToggleControl,{label:"Copy Button",checked:y,onChange:e=>{b("copyButton",e,"/wp-json/dblocks_codepro/v1/copy-button/")},__nextHasNoMarginBottom:!0})),(0,r.createElement)("hr",null),(0,r.createElement)("h2",null,"Editor Global Settings"),(0,r.createElement)(br.SelectControl,{label:"Editor Theme",value:"vs-dark"===c?"dark":"light",options:Sr,onChange:()=>{p()},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,r.createElement)(br.__experimentalUnitControl,{label:"Editor Font Size",value:m,onChange:e=>{return f(t=e),void b("editorFontSize",t,"/wp-json/dblocks_codepro/v1/editor-font-size/");var t},units:[{value:"px",label:"Pixels",default:14}],min:10,max:30,__next40pxDefaultSize:!0})))),_r=window.wp.data,jr=(e,t=500,n=10)=>{if("number"==typeof e)return Math.max(n,e);if("string"==typeof e){const o=parseInt(e,10);return isNaN(o)?t:Math.max(n,o)}return t},Lr=e=>`${jr(e)}px`,qr=e=>jr(e),Tr={instances:new Map,isInitializing:!1},Ar=({content:e,editorLanguage:t,syntaxThemeClass:n,displayLanguage:o,copyButton:i})=>(0,r.createElement)("div",{className:"tag-wrapper"},i&&(0,r.createElement)("button",{className:"copy-button tag-button"},"Copy"),o&&(0,r.createElement)("div",{className:"code-language-label tag-button"},t.toUpperCase())),Br=({blockProps:e,content:t,editorLanguage:n,syntaxThemeClass:o,displayLanguage:i,copyButton:a})=>{const s={...e,className:`wp-block-dblocks-dblocks-codepro ${o} syntax-highlighted-container`};return(0,r.createElement)("pre",{...s},(0,r.createElement)(Ar,{content:t,editorLanguage:n,syntaxThemeClass:o,displayLanguage:i,copyButton:a}),(0,r.createElement)("code",{className:`language-${n}`},t))},Or=({blockProps:e,content:t,useWrapper:n})=>{const o=(0,r.createElement)(i.RawHTML,null,t);return n?(0,r.createElement)("div",{...e},o):o},Nr=()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"},(0,r.createElement)("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H160v400Zm140-40-56-56 103-104-104-104 57-56 160 160-160 160Zm180 0v-80h240v80H480Z"})),Rr={viewMode:"code",theme:"vs-light",syntaxHighlight:!0,syntaxHighlightTheme:"light",editorLanguage:"html"},Hr={from:[{type:"block",blocks:["core/html","core/code"],transform:({content:e})=>(0,o.createBlock)("dblocks/dblocks-codepro",{content:e,...Rr})}]},Ir=JSON.parse('{"UU":"dblocks/dblocks-codepro"}').UU;if(!(0,o.getBlockType)(Ir))try{(0,o.registerBlockType)(Ir,{icon:Nr,edit:function({attributes:e,setAttributes:t,clientId:n}){const{content:o,viewMode:s}=e,[l,u]=(0,i.useState)(s),[c,p]=(0,i.useState)(e.theme||"vs-light"),[m,f]=(0,i.useState)(e.editorFontSize||"14px"),[d,g]=(0,i.useState)((()=>localStorage.getItem("dblocks_editor_height")||e.editorHeight||"500px")),[b,h]=(0,i.useState)(e.syntaxHighlight),[y,x]=(0,i.useState)((()=>localStorage.getItem("dblocks_syntax_theme")||e.syntaxHighlightTheme||"light")),[v,k]=(0,i.useState)(e.editorLanguage||"html"),[w,$]=(0,i.useState)(null),[C,S]=(0,i.useState)(!1),[z,E]=(0,i.useState)(!1),[_,j]=(0,i.useState)(!1),[L,q]=(0,i.useState)(!1),[T,A]=(0,i.useState)((()=>{var t;const n=localStorage.getItem("dblocks_display_language");return null!==n?"true"===n:null===(t=e.displayLanguage)||void 0===t||t})),[B,O]=(0,i.useState)((()=>{var t;const n=localStorage.getItem("dblocks_copy_button");return null!==n?"true"===n:null===(t=e.copyButton)||void 0===t||t})),N=(0,i.useRef)(null),R=(0,i.useRef)(null),H=(0,i.useRef)(null),I=(0,i.useRef)(s),D=(0,_r.useSelect)((e=>e("core/block-editor").getSelectedBlockClientId())),P=e=>{const t=(e.match(/\n/g)||[]).length+1,n=parseInt(m),o=1.5*n,r=2*n,i=1.5*n;return`${Math.max(t*o+r,i)}px`},W=(e,n)=>{t({[e]:n})},M=DBlocksData.restUrl;(0,i.useEffect)((()=>{const e=e=>{const n=e.detail.theme;n!==y&&(x(n),t({syntaxHighlightTheme:n}))};return window.addEventListener("dblocks_syntax_theme_changed",e),()=>{window.removeEventListener("dblocks_syntax_theme_changed",e)}}),[y]),(0,i.useEffect)((()=>{const e=localStorage.getItem("dblocks_syntax_theme");e&&e!==y&&(x(e),t({syntaxHighlightTheme:e}))}),[]);const F=e=>{if(k(e),W("editorLanguage",e),H.current){const t=H.current.getModel();if(t){const n=window.monaco||document.querySelector('[name="editor-canvas"]')?.contentWindow?.monaco;n&&n.editor.setModelLanguage(t,e)}}},V=e=>{h(e),t({syntaxHighlight:e,scaleHeightWithContent:e}),j(!0),z&&"split"===l&&setTimeout((()=>{if(H.current){H.current.layout();const e=document.querySelector('[name="editor-canvas"]'),t=e?e.contentWindow:window;t&&t.monaco&&H.current.focus()}}),50)};(0,i.useEffect)((()=>{if(b||D===n&&"split"===l){const e=document.querySelector('[name="editor-canvas"]'),t=e?e.contentWindow:window,n=e?e.contentWindow.document:document,o=setTimeout((()=>{Q(t,n)}),10);return()=>clearTimeout(o)}return()=>{b||D===n&&"split"===l||!H.current||(H.current.dispose(),H.current=null,Tr.instances.delete(n))}}),[b,D,n,l,w]),(0,i.useEffect)((()=>{if(D)if(D!==n)E(!1),!b&&H.current&&(H.current.dispose(),H.current=null,Tr.instances.delete(n));else if("split"===l){E(!0);const e=localStorage.getItem("dblocks_editor_height");e&&e!==d&&(g(e),t({editorHeight:e}),R.current&&(R.current.style.height=e,H.current?.layout()));const n=localStorage.getItem("dblocks_syntax_theme");n&&n!==y&&(x(n),t({syntaxHighlightTheme:n}))}}),[D,n,l,b]);const U=b||D===n&&"split"===l;(0,i.useLayoutEffect)((()=>{if(R.current&&_){const e=R.current.style.display;R.current.style.display="none",R.current.offsetHeight,R.current.style.display=e||"block"}}),[R.current,_]),(0,i.useEffect)((()=>{H.current&&C&&H.current.getValue()!==o&&H.current.setValue(o)}),[o,C]),(0,i.useEffect)((()=>{if(R.current&&H.current){if(b||e.scaleHeightWithContent){const e=P(o);R.current.style.height=e}else R.current.style.height=d;H.current.layout()}}),[b,e.scaleHeightWithContent,o,d]),(0,i.useEffect)((()=>{H.current&&H.current.updateOptions({theme:c,fontSize:parseInt(m)})}),[c,m]),(0,i.useEffect)((()=>{(async()=>{try{const e=await fetch(`${M}plugin-path`);if(!e.ok)throw new Error("Failed to fetch plugin info");const t=await e.json();$(t)}catch(e){console.error("Failed to fetch plugin info:",e)}})()}),[]);const Q=async(t,r)=>{if(!w||Tr.isInitializing)return;q(!0);const i=_||"preview"===I.current&&"split"===l;if(Tr.instances.has(n)&&!i)return H.current=Tr.instances.get(n),C||S(!0),setTimeout((()=>{H.current&&H.current.layout()}),50),void q(!1);Tr.isInitializing=!0;const a=`${w.plugin_url}vendor/monaco/min/vs`;try{if(!t.monaco&&!Array.from(r.scripts).some((e=>e.src.includes(`${a}/loader.js`)))){const e=r.createElement("script");e.src=`${a}/loader.js`,await new Promise(((t,n)=>{e.onload=t,e.onerror=n,r.body.appendChild(e)}))}t.require||await new Promise((e=>{const n=setInterval((()=>{t.require&&(clearInterval(n),e())}),50)})),t.require.config({paths:{vs:a}}),await new Promise((r=>{t.require(["vs/editor/editor.main"],(()=>{H.current&&(H.current.dispose(),H.current=null,Tr.instances.delete(n)),R.current&&(R.current.style.display="block",R.current.style.visibility="visible"),H.current=t.monaco.editor.create(R.current,{minimap:{enabled:!1},value:o||"\x3c!-- some comment --\x3e",language:v,automaticLayout:!0,theme:c,fontSize:parseInt(m),scrollBeyondLastLine:!1,suggestOnTriggerCharacters:!0,quickSuggestions:!0,wordBasedSuggestions:!0,parameterHints:{enabled:!0}}),t.monaco._emmetInitialized||(function(e=window.monaco,t=["html"]){gr(e,t,"html")}(t.monaco),t.monaco._emmetInitialized=!0),H.current.onDidChangeModelContent((()=>{const t=H.current.getValue();if(W("content",t),e.scaleHeightWithContent){const e=P(t);R.current.style.height=e,H.current.layout()}})),setTimeout((()=>{H.current&&H.current.layout()}),10),Tr.instances.set(n,H.current),S(!0),r()}))}))}catch(e){console.error("Failed to initialize Monaco editor:",e)}finally{Tr.isInitializing=!1,q(!1)}};return(0,i.useEffect)((()=>{z&&"split"===l&&j(!0)}),[b]),(0,i.useEffect)((()=>{"preview"===I.current&&"split"===l&&j(!0),W("viewMode",l),"split"===l&&E(!0),I.current=l}),[l]),(0,i.useEffect)((()=>{b||"preview"!==l||(u("split"),W("viewMode","split"))}),[b]),(0,i.useEffect)((()=>{const e=e=>{const n=e.detail.displayLanguage;n!==T&&(A(n),t({displayLanguage:n}))};return window.addEventListener("dblocks_display_language_changed",e),()=>{window.removeEventListener("dblocks_display_language_changed",e)}}),[T]),(0,i.useEffect)((()=>{const e=localStorage.getItem("dblocks_display_language");if(null!==e){const n="true"===e;n!==T&&(A(n),t({displayLanguage:n}))}}),[]),(0,i.useEffect)((()=>{const e=e=>{const n=e.detail.copyButton;n!==B&&(O(n),t({copyButton:n}))};return window.addEventListener("dblocks_copy_button_changed",e),()=>{window.removeEventListener("dblocks_copy_button_changed",e)}}),[B]),(0,i.useEffect)((()=>{const e=localStorage.getItem("dblocks_copy_button");if(null!==e){const n="true"===e;n!==B&&(O(n),t({copyButton:n}))}}),[]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Er,{attributes:e,setAttributes:t,syntaxHighlight:b,setSyntaxHighlight:V,syntaxHighlightTheme:y,toggleSyntaxHighlightTheme:async e=>{const t=e||("light"===y?"dark":"light");try{if(!(await fetch(`${M}syntax-theme/`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify({syntaxTheme:t})})).ok)throw new Error("Network response was not ok.");localStorage.setItem("dblocks_syntax_theme",t),x(t),W("syntaxHighlightTheme",t);const e=new CustomEvent("dblocks_syntax_theme_changed",{detail:{theme:t}});window.dispatchEvent(e)}catch(e){console.error("Failed to update syntax theme:",e)}},editorLanguage:v,changeEditorLanguage:F,theme:c,toggleTheme:async()=>{const e="vs-light"===c?"vs-dark":"vs-light";try{if(!(await fetch(`${M}theme`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify({theme:e})})).ok)throw new Error("Network response was not ok.");p(e),W("theme",e)}catch(e){console.error("Failed to update theme:",e)}},fontSize:m,setFontSize:f,editorHeight:d,setEditorHeight:e=>{const t=Lr(e);g(t),localStorage.setItem("dblocks_editor_height",t),W("editorHeight",t),R.current&&(R.current.style.height=t,H.current?.layout())},updateAttribute:async(e,n,o)=>{t({[e]:n});try{if(!(await fetch(o,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify({[e]:n})})).ok)throw new Error("Network response was not ok.");if("displayLanguage"===e){localStorage.setItem("dblocks_display_language",n);const e=new CustomEvent("dblocks_display_language_changed",{detail:{displayLanguage:n}});window.dispatchEvent(e)}else if("copyButton"===e){localStorage.setItem("dblocks_copy_button",n);const e=new CustomEvent("dblocks_copy_button_changed",{detail:{copyButton:n}});window.dispatchEvent(e)}}catch(t){console.error(`Failed to update ${e}:`,t)}},displayLanguage:T,copyButton:B}),(0,r.createElement)("div",{...(0,a.useBlockProps)({ref:N}),style:{position:"relative",height:"100vh"}},(0,r.createElement)(wr,{viewMode:l,setViewMode:e=>{I.current=l,u(e),"split"===e&&(E(!0),j(!0))},syntaxHighlight:b,setSyntaxHighlight:V,setAttributes:t,editorLanguage:v,changeEditorLanguage:F}),!b&&"preview"===l&&(0,r.createElement)(i.RawHTML,{className:`syntax-${y}`},o),!b&&"split"===l&&(0,r.createElement)(i.RawHTML,{onClick:()=>{E(!0)},className:`syntax-${y}`},o),U&&(b||"split"!==l||e.scaleHeightWithContent?(0,r.createElement)("div",{style:{position:"relative",isolation:"isolate",zIndex:100}},(0,r.createElement)("div",{ref:R,id:"editor-container-ref",style:{height:P(o),width:"100%",position:b?"relative":"fixed",bottom:b?"auto":0,left:0,right:0,zIndex:9999,backgroundColor:"#fff",visibility:U?"visible":"hidden",display:U?"block":"none",isolation:"isolate"}}),L&&(0,r.createElement)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.8)",zIndex:1e4}},(0,r.createElement)(br.Spinner,null))):(0,r.createElement)(br.ResizableBox,{className:"code-editor-box",size:{height:qr(d)},minHeight:10,enable:{top:!0},style:{position:b?"relative":"fixed",bottom:b?"auto":0,left:0,right:0,zIndex:100,isolation:"isolate"},onResizeStop:(e,n,o,r)=>{const i=qr(d)+r.height,a=Lr(i);localStorage.setItem("dblocks_editor_height",a),g(a),t({editorHeight:a}),R.current&&(R.current.style.height=a,H.current?.layout())}},(0,r.createElement)("div",{ref:R,id:"editor-container-ref",style:{height:"100%",width:"100%",position:b?"relative":"absolute",bottom:b?"auto":0,left:0,right:0,zIndex:9999,backgroundColor:"#fff",visibility:U?"visible":"hidden",display:U?"block":"none",isolation:"isolate"}}),L&&(0,r.createElement)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.8)",zIndex:1e4}},(0,r.createElement)(br.Spinner,null))))))},save:function({attributes:e}){const{syntaxHighlight:t,content:n,theme:o,syntaxHighlightTheme:i,editorLanguage:s,displayLanguage:l,copyButton:u,useWrapper:c}=e,p=a.useBlockProps.save(),m="light"===i?"syntax-light":"syntax-dark";return t?(0,r.createElement)(Br,{blockProps:p,content:n,editorLanguage:s,syntaxThemeClass:m,displayLanguage:l,copyButton:u}):(0,r.createElement)(Or,{blockProps:p,content:n,useWrapper:c})},transforms:Hr})}catch(Ie){console.error(`Failed to register block ${Ir}:`,Ie)}},20:(e,t,n)=>{var o=n(609),r=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var o,l={},u=null,c=null;for(o in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,o)&&!s.hasOwnProperty(o)&&(l[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===l[o]&&(l[o]=t[o]);return{$$typeof:r,type:e,key:u,ref:c,props:l,_owner:a.current}}},848:(e,t,n)=>{e.exports=n(20)},609:e=>{e.exports=window.React}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.m=t,e=[],o.O=(t,n,r,i)=>{if(!n){var a=1/0;for(c=0;c<e.length;c++){for(var[n,r,i]=e[c],s=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(s=!1,i<a&&(a=i));if(s){e.splice(c--,1);var u=r();void 0!==u&&(t=u)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[n,r,i]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[a,s,l]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(l)var c=l(o)}for(t&&t(n);u<a.length;u++)i=a[u],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(c)},n=globalThis.webpackChunkdblocks_codepro=globalThis.webpackChunkdblocks_codepro||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[350],(()=>o(885)));r=o.O(r)})();1 (()=>{"use strict";var e,t={885:(e,t,n)=>{const o=window.wp.blocks;var r=n(609);const i=window.wp.element,a=window.wp.blockEditor;function s(e){return e>47&&e<58}function l(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function c(e){return s(e)||u(e)}function u(e){return 95===e||l(e)}function p(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}function m(e){return 39===e||34===e}class f{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,t){return new f(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new d(`${e} at ${t+1}`,t,this.string)}}class d extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}function b(e){return e.tokens[e.pos]}function g(e){return e.tokens[e.pos++]}function h(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function y(e){return e.pos<e.size}function x(e,t){const n=b(e);return!(!n||!t(n)||(e.pos++,0))}function v(e,t,n=b(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function k(e,t){const n={type:"TokenGroup",elements:[]};let o,r=n;const i=[];for(;y(e)&&(o=$(e,t)||w(e,t));)if(r.elements.push(o),x(e,V))i.push(r),r=o;else{if(x(e,U))continue;if(x(e,Q))do{i.length&&(r=i.pop())}while(x(e,Q))}return n}function w(e,t){if(x(e,W)){const n=k(e,t);return q(g(e),"group",!1)&&(n.repeat=function(e){return N(b(e))?e.tokens[e.pos++]:void 0}(e)),n}}function $(e,t){let n;const o={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(function(e,t){const n=e.pos;if(t.jsx&&x(e,R))for(;y(e);){const{pos:t}=e;if(!x(e,I)||!x(e,R)){e.pos=t;break}}for(;y(e)&&x(e,H););return e.pos!==n&&(e.start=n,!0)}(e,t)&&(o.name=h(e));y(e);)if(e.start=e.pos,o.repeat||F(o)||!x(e,N))if(!o.value&&j(e))o.value=L(e);else{if(!(n=S(e,"id",t)||S(e,"class",t)||C(e))){!F(o)&&x(e,Z)&&(o.selfClose=!0,!o.repeat&&x(e,N)&&(o.repeat=e.tokens[e.pos-1]));break}o.attributes?o.attributes=o.attributes.concat(n):o.attributes=Array.isArray(n)?n.slice():[n]}else o.repeat=e.tokens[e.pos-1];return F(o)?void 0:o}function C(e){if(x(e,D)){const t=[];let n;for(;y(e);)if(n=z(e))t.push(n);else{if(x(e,P))break;if(!x(e,A))throw v(e,`Unexpected "${b(e).type}" token`)}return t}}function S(e,t,n){if(T(b(e),t)){e.pos++;let r=1;for(;T(b(e),t);)e.pos++,r++;const i={name:[(o=t,{type:"Literal",value:o})]};return r>1&&(i.multiple=!0),n.jsx&&j(e)?(i.value=L(e),i.expression=!0):i.value=_(e)?h(e):void 0,i}var o}function z(e){if(E(e))return{value:h(e)};if(_(e,!0)){const t=h(e);let n;return x(e,O)&&(E(e)||_(e,!0))&&(n=h(e)),{name:t,value:n}}}function E(e){const t=e.pos,n=b(e);if(B(n)){for(e.pos++;y(e);)if(B(g(e),n.single))return e.start=t,!0;throw v(e,"Unclosed quote",n)}return!1}function _(e,t){const n=e.pos,o={attribute:0,expression:0,group:0};for(;y(e);){const n=b(e);if(o.expression)q(n,"expression")&&(o[n.context]+=n.open?1:-1);else{if(B(n)||T(n)||A(n)||N(n))break;if(q(n)){if(!t)break;if(n.open)o[n.context]++;else{if(!o[n.context])break;o[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function j(e){const t=e.pos;if(x(e,M)){let n=0;for(;y(e);){const t=g(e);if(q(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function L(e){let t=e.start,n=e.pos;return q(e.tokens[t],"expression",!0)&&t++,q(e.tokens[n-1],"expression",!1)&&n--,h(e,t,n)}function q(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function T(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function B(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function A(e){return Boolean(e&&"WhiteSpace"===e.type)}function O(e){return T(e,"equal")}function N(e){return Boolean(e&&"Repeater"===e.type)}function R(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function H(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function I(e){return T(e,"class")}function D(e){return q(e,"attribute",!0)}function P(e){return q(e,"attribute",!1)}function M(e){return q(e,"expression",!0)}function W(e){return q(e,"group",!0)}function F(e){return!e.name&&!e.value&&!e.attributes}function V(e){return T(e,"child")}function U(e){return T(e,"sibling")}function Q(e){return T(e,"climb")}function Z(e){return T(e,"close")}var G;function X(e){return!!e.eat(G.Escape)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function Y(e,t){return function(e,t){const n=e.pos;if((t.expression||t.attribute)&&e.eat(G.Dollar)&&e.eat(G.CurlyBracketOpen)){let t;e.start=e.pos;let o="";if(e.eatWhile(s)?(t=Number(e.current()),o=e.eat(G.Colon)?J(e):""):l(e.peek())&&(o=J(e)),e.eat(G.CurlyBracketClose))return{type:"Field",index:t,name:o,start:n,end:e.pos};throw e.error("Expecting }")}e.pos=n}(e,t)||function(e){const t=e.pos;if(e.eat(G.Dollar)&&e.eat(G.Hash))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(G.Dollar)){const n=e.pos-t;let o=!1,r=1,i=0;if(e.eat(G.At)){for(;e.eat(G.Climb);)i++;o=e.eat(G.Dash),e.start=e.pos,e.eatWhile(s)&&(r=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:n,reverse:o,base:r,parent:i,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(G.Asterisk)){e.start=e.pos;let n=1,o=!1;return e.eatWhile(s)?n=Number(e.current()):o=!0,{type:"Repeater",count:n,value:0,implicit:o,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(p))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const n=e.pos,o=t.expression;let r="";for(;!e.eof();){if(X(e)){r+=e.current();continue}const n=e.peek();if(n===G.Slash&&!t.quote&&!t.expression&&!t.attribute){const t=e.string.charCodeAt(e.pos-1),n=e.string.charCodeAt(e.pos+1);if(s(t)&&s(n)){r+=e.string[e.pos++];continue}}if(n===t.quote||n===G.Dollar||K(n,t))break;if(o){if(n===G.CurlyBracketOpen)t.expression++;else if(n===G.CurlyBracketClose){if(!(t.expression>o))break;t.expression--}}else if(!t.quote){if(!t.attribute&&!ie(n))break;if(ee(n,t)||te(n,t)||m(n)||ne(n))break}r+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:r,start:n,end:e.pos}}(e,t)||function(e){const t=oe(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(m(t))return{type:"Quote",single:t===G.SingleQuote,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=ne(t);if(n)return{type:"Bracket",open:re(t),context:n,start:e.pos++,end:e.pos}}(e)}function J(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(G.CurlyBracketOpen))t.push(e.pos);else if(e.eat(G.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function K(e,t){const n=oe(e);return!(!n||t.quote||t.expression||t.attribute&&"equal"!==n)}function ee(e,t){return p(e)&&!t.expression}function te(e,t){return e===G.Asterisk&&!t.attribute&&!t.expression}function ne(e){return e===G.RoundBracketOpen||e===G.RoundBracketClose?"group":e===G.SquareBracketOpen||e===G.SquareBracketClose?"attribute":e===G.CurlyBracketOpen||e===G.CurlyBracketClose?"expression":void 0}function oe(e){return(e===G.Child?"child":e===G.Sibling&&"sibling")||e===G.Climb&&"climb"||e===G.Dot&&"class"||e===G.Hash&&"id"||e===G.Slash&&"close"||e===G.Equals&&"equal"||void 0}function re(e){return e===G.CurlyBracketOpen||e===G.SquareBracketOpen||e===G.RoundBracketOpen}function ie(e){return c(e)||function(e){return 196===e||214==e||220===e||228===e||246===e||252===e}(e)||e===G.Dash||e===G.Colon||e===G.Excl}!function(e){e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Escape=92]="Escape",e[e.Equals=61]="Equals",e[e.SquareBracketOpen=91]="SquareBracketOpen",e[e.SquareBracketClose=93]="SquareBracketClose",e[e.Asterisk=42]="Asterisk",e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.Sibling=43]="Sibling",e[e.Child=62]="Child",e[e.Climb=94]="Climb",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote"}(G||(G={}));const ae={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},se={Literal:e=>e.value,Quote:e=>e.single?"'":'"',Bracket:e=>"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}",Operator:e=>ae[e.operator],Field:(e,t)=>null!=e.index?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):"",RepeaterPlaceholder(e,t){let n;for(let e=t.repeaters.length-1;e>=0;e--)if(t.repeaters[e].implicit){n=t.repeaters[e];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1;const o=t.repeaters.length-1,r=t.repeaters[o];if(r&&(n=e.reverse?e.base+r.count-r.value-1:e.base+r.value,e.parent)){const i=Math.max(0,o-e.parent);if(i!==o){const e=t.repeaters[i];n+=r.count*e.value}}let i=String(n);for(;i.length<e.size;)i="0"+i;return i},WhiteSpace:e=>e.value};function le(e,t){if(!se[e.type])throw new Error(`Unknown token ${e.type}`);return se[e.type](e,t)}const ce=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,ue=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function pe(e,t){let n=[];if(e.repeat){const o=e.repeat,r=Object.assign({},o);let i;r.count=r.implicit&&Array.isArray(t.text)?t.cleanText.length:r.count||1,t.repeaters.push(r);for(let o=0;o<r.count;o++){if(r.value=o,e.repeat=r,i=he(e)?fe(e,t):me(e,t),r.implicit&&!t.inserted){const e=xe(i),n=e&&ve(e);n&&ke(n,t.getText(r.value))}if(n=n.concat(i),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=o,r.implicit&&(t.inserted=!0)}else n=n.concat(he(e)?fe(e,t):me(e,t));return n}function me(e,t){let n=[];const o={type:"AbbreviationNode",name:e.name&&be(e.name,t),value:e.value&&ge(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let r=[o];for(const o of e.elements)n=n.concat(pe(o,t));if(e.attributes){o.attributes=[];for(const n of e.attributes)o.attributes.push(de(n,t))}return o.name||o.attributes||!o.value||o.value.some(ye)?o.children=n:r=r.concat(n),r}function fe(e,t){let n=[];for(const o of e.elements)n=n.concat(pe(o,t));return e.repeat&&(n=function(e,t){for(const n of e)n.repeat||(n.repeat=Object.assign({},t));return e}(n,e.repeat)),n}function de(e,t){let n,o=!1,r=!1,i=e.expression?"expression":"raw";const a=e.name&&be(e.name,t);if(a&&"!"===a[0]&&(o=!0),a&&"."===a[a.length-1]&&(r=!0),e.value){const o=e.value.slice();if(B(o[0])){const e=o.shift();o.length&&xe(o).type===e.type&&o.pop(),i=e.single?"singleQuote":"doubleQuote"}else q(o[0],"expression",!0)&&(i="expression",o.shift(),q(xe(o),"expression",!1)&&o.pop());n=ge(o,t)}return{name:r||o?a.slice(o?1:0,r?-1:void 0):a,value:n,boolean:r,implied:o,valueType:i,multiple:e.multiple}}function be(e,t){let n="";for(let o=0;o<e.length;o++)n+=le(e[o],t);return n}function ge(e,t){const n=[];let o="";for(let r,i=0;i<e.length;i++)r=e[i],ye(r)?(o&&(n.push(o),o=""),n.push(r)):o+=le(r,t);return o&&n.push(o),n}function he(e){return"TokenGroup"===e.type}function ye(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function xe(e){return e[e.length-1]}function ve(e){return e.children.length?ve(xe(e.children)):e}function ke(e,t){e.value?"string"==typeof xe(e.value)?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}function we(e,t){try{return function(e,t={}){let n,o=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter((e=>e.trim())):t.text);const r={type:"Abbreviation",children:fe(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var r;let i;if(o=!0,Array.isArray(t.text)){if(void 0!==e&&e>=0&&e<n.length)return n[e];i=void 0!==e?t.text[e]:t.text.join("\n")}else i=null!==(r=t.text)&&void 0!==r?r:"";return i},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!o){const e=ve(xe(r.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;ke(e,n),"a"===e.name&&t.href&&function(e,t){var n;let o="";ce.test(t)?(o=t,/\w+:/.test(o)||o.startsWith("//")||(o=`http://${o}`)):ue.test(t)&&(o=`mailto:${t}`);const r=null===(n=e.attributes)||void 0===n?void 0:n.find((e=>"href"===e.name));r?r.value||(r.value=[o]):(e.attributes||(e.attributes=[]),e.attributes.push({name:"href",value:[o],valueType:"doubleQuote"}))}(e,n)}}return r}(function(e,t={}){const n={tokens:o=e,start:0,pos:0,size:o.length};var o;const r=k(n,t);if(y(n))throw v(n,"Unexpected character");return r}("string"==typeof e?function(e){const t=new f(e),n=[],o={group:0,attribute:0,expression:0,quote:0};let r,i=0;for(;!t.eof();){if(i=t.peek(),r=Y(t,o),!r)throw t.error("Unexpected character");n.push(r),"Quote"===r.type?o.quote=i===o.quote?0:i:"Bracket"===r.type&&(o[r.context]+=r.open?1:-1)}return n}(e):e,t),t)}catch(t){throw t instanceof d&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}var $e,Ce;function Se(e,t){return function(e){const t=e.pos;if(e.eat(Ce.Dollar)&&e.eat(Ce.CurlyBracketOpen)){let n;e.start=e.pos;let o="";if(e.eatWhile(s)?(n=Number(e.current()),o=e.eat(Ce.Colon)?ze(e):""):l(e.peek())&&(o=ze(e)),e.eat(Ce.CurlyBracketClose))return{type:"Field",index:n,name:o,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(e.eat(Ce.Dash)&&e.eat(Ce.Dash))return e.start=t,e.eatWhile(Te),{type:"CustomProperty",value:e.current(),start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(Ce.Dash);const n=e.pos,o=e.eatWhile(s),r=e.pos;if(e.eat(Ce.Dot)){const t=e.eatWhile(s);o||t||(e.pos=r)}return e.pos===n&&(e.pos=t),e.pos!==t}(e)){e.start=t;const n=e.current();return e.start=e.pos,e.eat(Ce.Percent)||e.eatWhile(u),{type:"NumberValue",value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(Ce.Hash)){const n=e.pos;let o="",r="";if(e.eatWhile(qe)?(o=e.substring(n,e.pos),r=_e(e)):e.eat(Ce.Transparent)?(o="0",r=_e(e)||"0"):r=_e(e),o||r||e.eof()){const{r:n,g:i,b:a,a:s}=function(e,t){let n="0",o="0",r="0",i=Number(null!=t&&""!==t?t:1);if("t"===e)i=0;else switch(e.length){case 0:break;case 1:n=o=r=e+e;break;case 2:n=o=r=e;break;case 3:n=e[0]+e[0],o=e[1]+e[1],r=e[2]+e[2];break;default:n=(e+=e).slice(0,2),o=e.slice(2,4),r=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(o,16),b:parseInt(r,16),a:i}}(o,r);return{type:"ColorValue",r:n,g:i,b:a,a:s,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return Ee(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let o=!1;if(m(t)){for(e.pos++;!e.eof();){if(e.eat(t)){o=!0;break}e.pos++}return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(o?1:0)),quote:t===Ce.SingleQuote?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return e===Ce.RoundBracketOpen||e===Ce.RoundBracketClose}(t))return{type:"Bracket",open:t===Ce.RoundBracketOpen,start:e.pos++,end:e.pos}}(e)||je(e)||function(e){const t=e.pos;if(e.eatWhile(p))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;if(e.eat(Le)?e.eatWhile(n?Te:Be):e.eat(u)?e.eatWhile(t?Be:Te):(e.eat(Ce.Dot),e.eatWhile(Be)),n!==e.pos)return e.start=n,Ee(e,e.start=n)}(e,t)}function ze(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(Ce.CurlyBracketOpen))t.push(e.pos);else if(e.eat(Ce.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function Ee(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function _e(e){const t=e.pos;return e.eat(Ce.Dot)?(e.start=t,e.eatWhile(s)?e.current():"1"):""}function je(e){const t=(n=e.peek())===Ce.Sibling&&$e.Sibling||n===Ce.Excl&&$e.Important||n===Ce.Comma&&$e.ArgumentDelimiter||n===Ce.Colon&&$e.PropertyDelimiter||n===Ce.Dash&&$e.ValueDelimiter||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function Le(e){return e===Ce.At||e===Ce.Dollar}function qe(e){return s(e)||l(e,65,70)}function Te(e){return c(e)||e===Ce.Dash}function Be(e){return u(e)||e===Ce.Percent||e===Ce.Slash}function Ae(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function Oe(e,t){let n=0,o=0;for(;t.length;){const e=(r=t)[r.length-1];if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,o||(o=e.end),t.pop()}var r;n!==o&&t.push(Ee(e,n,o))}function Ne(e){return e.tokens[e.pos]}function Re(e){return e.pos<e.size}function He(e,t){return!!t(Ne(e))&&(e.pos++,!0)}function Ie(e,t,n=Ne(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function De(e,t){let n,o,r=!1;const i=[],a=Ne(e),s=!!t.value;for(s||!We(a)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&We(t)&&"Bracket"===n.type}(e)||(e.pos++,n=a.value,He(e,et)),s&&He(e,Qe);Re(e);)if(He(e,Je))r=!0;else if(o=Pe(e,s))i.push(o);else if(!He(e,Ye))break;if(n||i.length||r)return{name:n,value:i,important:r}}function Pe(e,t){const n=[];let o,r;for(;Re(e);)if(o=Ne(e),Ke(o))e.pos++,We(o)&&(r=Me(e))?n.push({type:"FunctionCall",name:o.value,arguments:r}):n.push(o);else{if(!(et(o)||t&&Qe(o)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function Me(e){const t=e.pos;if(He(e,Ve)){const n=[];let o;for(;Re(e)&&!He(e,Ue);)if(o=Pe(e,!0))n.push(o);else if(!He(e,Qe)&&!He(e,Xe))throw Ie(e,"Unexpected token");return e.start=t,n}}function We(e){return e&&"Literal"===e.type}function Fe(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function Ve(e){return Fe(e,!0)}function Ue(e){return Fe(e,!1)}function Qe(e){return e&&"WhiteSpace"===e.type}function Ze(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function Ge(e){return Ze(e,$e.Sibling)}function Xe(e){return Ze(e,$e.ArgumentDelimiter)}function Ye(e){return Xe(e)}function Je(e){return Ze(e,$e.Important)}function Ke(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type||"CustomProperty"===e.type}function et(e){return Ze(e,$e.PropertyDelimiter)||Ze(e,$e.ValueDelimiter)}function tt(e,t){try{const n="string"==typeof e?function(e,t){let n,o=0;const r=new f(e),i=[];for(;!r.eof();){if(n=Se(r,0===o&&!t),!n)throw r.error("Unexpected character");if("Bracket"===n.type&&(!o&&n.open&&Oe(r,i),o+=n.open?1:-1,o<0))throw r.error("Unexpected bracket",n.start);i.push(n),Ae(n)&&(n=je(r))&&i.push(n)}return i}(e,t&&t.value):e;return function(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),o=[];let r;for(;Re(n);)if(r=De(n,t))o.push(r);else if(!He(n,Ge))throw Ie(n,"Unexpected token");return o}(n,t)}catch(t){throw t instanceof d&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function nt(e,t,n){if(e&&t){e.length&&n&&rt(e,n);for(const n of t)rt(e,n);return e}const o=e||t;return o&&o.slice()}function ot(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),"expression"!==e.valueType&&(e.valueType=t.valueType),e}function rt(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function it(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];if(t(o))return o;const r=it(o,t);if(r)return r}}function at(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function st(e){return"AbbreviationNode"===e.type}function lt(e,t,n){let o=[];for(const n of e.children){const e=t(n);if(e){o=o.concat(e.children);const r=at(e);st(r.node)&&(r.node.children=r.node.children.concat(lt(n,t)))}else o.push(n),n.children=lt(n,t)}return e.children=o}!function(e){e.Sibling="+",e.Important="!",e.ArgumentDelimiter=",",e.ValueDelimiter="-",e.PropertyDelimiter=":"}($e||($e={})),function(e){e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Colon=58]="Colon",e[e.Comma=44]="Comma",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Percent=37]="Percent",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Sibling=43]="Sibling",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Transparent=116]="Transparent",e[e.Slash=47]="Slash"}(Ce||(Ce={}));const ct="{",ut="}";function pt(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function mt(e,t){vt(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function ft(e,t){const n=t.split(/\r\n|\r|\n/g);for(let t=0,o=n.length-1;t<=o;t++)mt(e,n[t]),t!==o&&dt(e,!0)}function dt(e,t){const n=e.options["output.baseIndent"];mt(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){mt(e,e.options["output.indent"].repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function bt(e,t,n){vt(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function gt(e,t){return kt(e,t.options["output.attributeCase"])}function ht(e,t,n){return"expression"===e.valueType?n?ct:ut:"single"===t.options["output.attributeQuotes"]?"'":'"'}function yt(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function xt(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?xt(e.name,t):Boolean(e.value&&!e.attributes)}function vt(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function kt(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const wt={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function $t(e,t,n){const o=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(st(n))return n}}(t),r=n.context?n.context.name:"",i=((o?o.name:r)||"").toLowerCase();e.name=wt[i]||(xt(i,n)?"span":"div")}const Ct={ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]}},St=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function zt(e,t){return Math.floor(Math.random()*(t-e)+e)}function Et(e,t){const n=e.length,o=Math.min(n,t),r=[];for(;r.length<o;){const t=e[zt(0,n)];r.includes(t)||r.push(t)}return r}function _t(e,t){var n;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||"?!..."[zt(0,4)])}function jt(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let o=0;o=t>3&&t<=6?zt(0,1):t>6&&t<=12?zt(0,2):zt(1,4);for(let r,i=0;i<o;i++)r=zt(0,t-2),n.test(e[r])||(e[r]+=",");return e}function Lt(e,t,n){const o=[];let r,i=0;for(n&&e.common&&(r=e.common.slice(0,t),i+=r.length,o.push(_t(jt(r),".")));i<t;)r=Et(e.words,Math.min(zt(2,30),t-i)),i+=r.length,o.push(_t(jt(r)));return o.join(" ")}function qt(e){return"select"!==e.name}const Tt=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,Bt=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,At=e=>/^[a-z]\-/i.test(e),Ot=e=>/^[a-z]/i.test(e);function Nt(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=Mt(n.value);break}e._bem=Rt(t)}return e._bem}function Rt(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:It(t)}}function Ht(e,t=0,n){let o=Math.max(e.length-t,0);do{const t=e[o];if(t){const e=Nt(t);if(e.block)return e.block}}while(0<o--);if(n){const e=function(e){return e._bem||(e._bem=Rt(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function It(e){return Dt(e,At)||Dt(e,Ot)||void 0}function Dt(e,t){for(const n of e){if(Tt.test(n)||Bt.test(n))break;if(t(n))return n}}function Pt(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function Mt(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function Wt(e,t,n){return!!e&&n.indexOf(e)===t}function Ft(e){if("label"===e.name){const t=it(e,(e=>"input"===e.name||"textarea"===e.name));t&&(e.attributes&&(e.attributes=e.attributes.filter((e=>!("for"===e.name&&Vt(e))))),t.attributes&&(t.attributes=t.attributes.filter((e=>!("id"===e.name&&Vt(e))))))}}function Vt(e){if(!e.value)return!0;if(1===e.value.length){const t=e.value[0];if(t&&"string"!=typeof t&&!t.name)return!0}return!1}function Ut(e,t,n){const o=(e,o,i)=>{const{parent:a,current:s}=n;n.parent=s,n.current=e,t(e,o,i,n,r),n.current=s,n.parent=a},r=(e,t,r)=>{n.ancestors.push(n.current),o(e,t,r),n.ancestors.pop()};e.children.forEach(o)}function Qt(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:pt(e.options)}}const Zt=[{type:"Field",index:0,name:""}];function Gt(e){return!!e&&!e.name&&!e.attributes}function Xt(e,t){return!!e&&xt(e,t)}function Yt(e){return"object"==typeof e&&"Field"===e.type}function Jt(e,t){const{out:n}=t;let o=-1;for(const r of e)"string"==typeof r?ft(n,r):(bt(n,t.field+r.index,r.name),r.index>o&&(o=r.index));-1!==o&&(t.field+=o+1)}function Kt(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}var en;function tn(e){const t=[],n={pos:0,text:e};let o,r=n.pos,i=n.pos;for(;n.pos<n.text.length;)i=n.pos,(o=nn(n))?(r!==n.pos&&t.push(e.slice(r,i)),t.push(o),r=n.pos):n.pos++;return r!==n.pos&&t.push(e.slice(r)),t}function nn(e){if(on(e)===en.Start){const t=++e.pos;let n=t,o=t,r=1;for(;e.pos<e.text.length;){const i=on(e);if(rn(i)){for(n=e.pos;an(on(e));)e.pos++;o=e.pos}else{if(i===en.Start)r++;else if(i===en.End&&0==--r)return{before:e.text.slice(t,n),after:e.text.slice(o,e.pos++),name:e.text.slice(n,o)};e.pos++}}}}function on(e,t=e.pos){return e.text.charCodeAt(t)}function rn(e){return e>=65&&e<=90}function an(e){return rn(e)||e>47&&e<58||e===en.Underscore||e===en.Dash}function sn(e,t){const{comment:n}=t;if(!(n.enabled&&n.trigger&&e.name&&e.attributes))return!1;for(const t of e.attributes)if(t.name&&n.trigger.includes(t.name))return!0;return!1}function ln(e,t,n){const o={},{out:r}=n;for(const t of e.attributes)t.name&&t.value&&(o[t.name.toUpperCase()]=t.value);for(const e of t)"string"==typeof e?ft(r,e):o[e.name]&&(ft(r,e.before),Jt(o[e.name],n),ft(r,e.after))}!function(e){e[e.Start=91]="Start",e[e.End=93]="End",e[e.Underscore=95]="Underscore",e[e.Dash=45]="Dash"}(en||(en={}));const cn=/^<([\w\-:]+)[\s>]/,un=new Set(["for","while","of","async","await","const","let","var","continue","break","debugger","do","export","import","in","instanceof","new","return","switch","this","throw","try","catch","typeof","void","with","yield"]);function pn(e,t){const n=Qt(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?tn(t["comment.before"]):void 0,after:t["comment.after"]?tn(t["comment.after"]):void 0}}(t),Ut(e,mn,n),n.out.value}function mn(e,t,n,o,r){const{out:i,config:a}=o,s=bn(e,t,n,o),l=function(e){const{config:t,parent:n}=e;return!n||Gt(n)||n.name&&t.options["output.formatSkip"].includes(n.name)?0:1}(o);if(i.level+=l,s&&dt(i,!0),e.name){const t=function(e,t){return kt(e,t.options["output.tagCase"])}(e.name,a);if(function(e,t){sn(e,t)&&t.comment.before&&ln(e,t.comment.before,t)}(e,o),ft(i,`<${t}`),e.attributes)for(const t of e.attributes)Kt(t)&&fn(t,o);if(!e.selfClosing||e.children.length||e.value){if(ft(i,">"),!dn(e,o,r)){if(e.value){const t=e.value.some(gn)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=cn.exec(e[0]);if((null==n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,a);t&&dt(o.out,++i.level),Jt(e.value,o),t&&dt(o.out,--i.level)}if(e.children.forEach(r),!e.value&&!e.children.length){const t=a.options["output.formatLeafNode"]||a.options["output.formatForce"].includes(e.name);t&&dt(o.out,++i.level),Jt(Zt,o),t&&dt(o.out,--i.level)}}ft(i,`</${t}>`),function(e,t){sn(e,t)&&t.comment.after&&ln(e,t.comment.after,t)}(e,o)}else ft(i,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(a)}>`)}else!dn(e,o,r)&&e.value&&(Jt(e.value,o),e.children.forEach(r));if(s&&t===n.length-1&&o.parent){const e=Gt(o.parent)?0:1;dt(i,i.level-e)}i.level-=l}function fn(e,t){const{out:n,config:o}=t;if(e.name){const r=o.options["markup.attributes"],i=o.options["markup.valuePrefix"];let{name:a,value:s}=e,l=ht(e,o,!0),c=ht(e,o);r&&(a=hn(a,r,e.multiple)||a),a=gt(a,o),o.options["jsx.enabled"]&&e.multiple&&(l=ct,c=ut);const u=i?hn(e.name,i,e.multiple):null;if(u&&1===(null==s?void 0:s.length)&&"string"==typeof s[0]){const e=s[0];s=[yn(e)?`${u}.${e}`:`${u}['${e}']`],o.options["jsx.enabled"]&&(l=ct,c=ut)}yt(e,o)&&!s?o.options["output.compactBoolean"]||(s=[a]):s||(s=Zt),ft(n," "+a),s?(ft(n,"="+l),Jt(s,t),ft(n,c)):"html"!==o.options["output.selfClosingStyle"]&&ft(n,"="+l+c)}}function dn(e,t,n){if(e.value&&e.children.length){const o=e.value.findIndex(Yt);if(-1!==o){Jt(e.value.slice(0,o),t);const r=t.out.line;let i=o+1;return e.children.forEach(n),t.out.line!==r&&"string"==typeof e.value[i]&&ft(t.out,e.value[i++].trimLeft()),Jt(e.value.slice(i),t),!0}}return!1}function bn(e,t,n,o){const{config:r,parent:i}=o;if(!r.options["output.format"])return!1;if(0===t&&!i)return!1;if(i&&Gt(i)&&1===n.length)return!1;if(Gt(e)&&(Gt(n[t-1])||Gt(n[t+1])||e.value.some(gn)||e.value.some(Yt)&&e.children.length))return!0;if(xt(e,r)){if(0===t){for(let e=0;e<n.length;e++)if(!xt(n[e],r))return!0}else if(!xt(n[t-1],r))return!0;if(r.options["output.inlineBreak"]){let e=1,o=t,i=t;for(;Xt(n[--o],r);)e++;for(;Xt(n[++i],r);)e++;if(e>=r.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(bn(e.children[t],t,e.children,o))return!0;return!1}return!0}function gn(e){return"string"==typeof e&&/\r|\n/.test(e)}function hn(e,t,n){return n&&t[`${e}*`]||t[e]}function yn(e){return!un.has(e)&&/^[a-zA-Z_$][\w_$]*$/.test(e)}function xn(e,t,n){const o=Qt(t);return o.options=n||{},Ut(e,vn,o),o.out.value}function vn(e,t,n,o,r){const{out:i,options:a}=o,{primary:s,secondary:l}=function(e){const t=[],n=[];if(e.attributes)for(const o of e.attributes)kn(o)?t.push(o):n.push(o);return{primary:t,secondary:n}}(e),c=o.parent?1:0;i.level+=c,function(e,t,n,o){return!(!o.parent&&0===t)&&!Gt(e)}(e,t,0,o)&&dt(i,!0),!e.name||"div"===e.name&&s.length||ft(i,(a.beforeName||"")+e.name+(a.afterName||"")),function(e,t){for(const n of e)n.value&&("class"===n.name?(ft(t.out,"."),Jt(n.value.map((e=>"string"==typeof e?e.replace(/\s+/g,"."):e)),t)):(ft(t.out,"#"),Jt(n.value,t)))}(s,o),function(e,t){if(e.length){const{out:n,config:o,options:r}=t;r.beforeAttribute&&ft(n,r.beforeAttribute);for(let i=0;i<e.length;i++){const a=e[i];ft(n,gt(a.name||"",o)),yt(a,o)&&!a.value?!o.options["output.compactBoolean"]&&r.booleanValue&&ft(n,"="+r.booleanValue):(ft(n,"="+ht(a,o,!0)),Jt(a.value||Zt,t),ft(n,ht(a,o))),i!==e.length-1&&r.glueAttribute&&ft(n,r.glueAttribute)}r.afterAttribute&&ft(n,r.afterAttribute)}}(l.filter(Kt),o),!e.selfClosing||e.value||e.children.length?(function(e,t){if(!e.value&&e.children.length)return;const n=e.value||Zt,o=function(e){const t=[];let n=[];for(const o of e)if("string"==typeof o){const e=o.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(o);return n.length&&t.push(n),t}(n),{out:r,options:i}=t;if(1===o.length)(e.name||e.attributes)&&mt(r," "),Jt(n,t);else{const e=[];let n=0;for(const t of o){const o=wn(t);e.push(o),o>n&&(n=o)}r.level++;for(let a=0;a<o.length;a++)dt(r,!0),i.beforeTextLine&&mt(r,i.beforeTextLine),Jt(o[a],t),i.afterTextLine&&(mt(r," ".repeat(n-e[a])),mt(r,i.afterTextLine));r.level--}}(e,o),e.children.forEach(r)):o.options.selfClose&&ft(i,o.options.selfClose),i.level-=c}function kn(e){return"class"===e.name||"id"===e.name}function wn(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}const $n={html:pn,haml:function(e,t){return xn(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return xn(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return xn(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function Cn(e,t,n){!function(e,t,n){!e.name&&e.attributes&&$t(e,t,n)}(e,t,n),function(e,t){if(!e.attributes)return;const n=[],o={};for(const r of e.attributes)if(r.name){const e=r.name;if(e in o){const n=o[e];"class"===e?n.value=nt(n.value,r.value," "):ot(n,r,t)}else n.push(o[e]=Object.assign({},r))}else n.push(r);e.attributes=n}(e,n),function(e,t,n){let o;if(e.name&&(o=e.name.match(St))){const r=Ct[o[1]]||Ct.latin,i=o[2]?Math.max(1,Number(o[2])):30,a=zt(i,o[3]?Math.max(i,Number(o[3].slice(1))):i),s=e.repeat||function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("AbbreviationNode"===n.type&&n.repeat)return n.repeat}}(t);e.name=e.attributes=void 0,e.value=[Lt(r,a,!s||0===s.value)],e.repeat&&t.length>1&&$t(e,t,n)}}(e,t,n),"xsl"===n.syntax&&function(e){var t;"xsl:variable"!==(t=e.name)&&"xsl:with-param"!==t||!e.attributes||!e.children.length&&!e.value||(e.attributes=e.attributes.filter(qt))}(e),"markup"===n.type&&Ft(e),n.options["bem.enabled"]&&function(e,t,n){!function(e){const t=Nt(e),n=[];for(const e of t.classNames){const t=e.indexOf("_");t>0&&!e.startsWith("-")?(n.push(e.slice(0,t)),n.push(e.slice(t))):n.push(e)}n.length&&(t.classNames=n.filter(Wt),t.block=It(t.classNames),Pt(e,t.classNames.join(" ")))}(e),function(e,t,n){const o=Nt(e),r=[],{options:i}=n,a=t.slice(1).concat(e);for(let e of o.classNames){let t,o="";const s=e;(t=e.match(Tt))&&(o=Ht(a,t[1].length,n.context)+i["bem.element"]+t[2],r.push(o),e=e.slice(t[0].length)),(t=e.match(Bt))&&(o||(o=Ht(a,t[1].length),r.push(o)),r.push(`${o}${i["bem.modifier"]}${t[2]}`),e=e.slice(t[0].length)),e===s&&r.push(s)}const s=r.filter(Wt);s.length&&Pt(e,s.join(" "))}(e,t,n)}(e,t,n)}var Sn;!function(e){e.Raw="Raw",e.Property="Property"}(Sn||(Sn={}));const zn=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,En={value:!0};function jn(e,t){const n=t.match(zn);if(n){const t={},o=n[2]?n[2].split("|").map(qn):[];for(const e of o)for(const n of e)Bn(n,t);return{type:Sn.Property,key:e,property:n[1],value:o,keywords:t,dependencies:[]}}return{type:Sn.Raw,key:e,value:t}}function Ln(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function qn(e){return tt(e.trim(),En)[0].value}function Tn(e){return e.type===Sn.Property}function Bn(e,t){for(const n of e.value)if("Literal"===n.type)t[n.value]=n;else if("FunctionCall"===n.type)t[n.name]=n;else if("Field"===n.type){const e=n.name.trim();e&&(t[e]={type:"Literal",value:e})}}function An(e,t,n=!1){if((e=e.toLowerCase())===(t=t.toLowerCase()))return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const o=e.length,r=t.length;if(!n&&o>r)return 0;const i=Math.min(o,r),a=Math.max(o,r);let s=1,l=1,c=a,u=0,p=0,m=!1,f=!1;for(;s<o;){for(u=e.charCodeAt(s),m=!1,f=!1;l<r;){if(p=t.charCodeAt(l),u===p){m=!0,c+=a-(f?s:l);break}f=45===p,l++}if(!m){if(!n)return 0;break}s++}const d=a-i;return c*(s/a)/(On(a)-On(d))}function On(e){return e*(e+1)/2}function Nn(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&Hn(e.r)&&Hn(e.g)&&Hn(e.b)?In:Dn;return"#"+n(e.r)+n(e.g)+n(e.b)}(e,t):function(e){const t=[e.r,e.g,e.b];return 1!==e.a&&t.push(Rn(e.a,8)),`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function Rn(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function Hn(e){return!(e%17)}function In(e){return(e>>4).toString(16)}function Dn(e){return function(e,t){for(;e.length<2;)e="0"+e;return e}(e.toString(16))}const Pn={Global:"@@global",Section:"@@section",Property:"@@property",Value:"@@value"};function Mn(e,t,n){const o=n.options["stylesheet.json"];if(e.name)ft(t,(o?e.name.replace(/\-(\w)/g,((e,t)=>t.toUpperCase())):e.name)+n.options["stylesheet.between"]),e.value.length?function(e,t,n){const o=n.options["stylesheet.json"],r=o?function(e){if(1===e.value.length){const t=e.value[0];if(1===t.value.length&&"NumberValue"===t.value[0].type)return t.value[0]}}(e):null;if(!r||r.unit&&"px"!==r.unit){const r=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(n);o&&mt(t,r);for(let o=0;o<e.value.length;o++)0!==o&&mt(t,", "),Fn(e.value[o],t,n);o&&mt(t,r)}else mt(t,String(r.value))}(e,t,n):bt(t,0,""),o?mt(t,","):(Wn(e,t,!0),mt(t,n.options["stylesheet.after"]));else{for(const o of e.value)for(const e of o.value)Vn(e,t,n);Wn(e,t,e.value.length>0)}}function Wn(e,t,n){e.important&&(n&&mt(t," "),mt(t,"!important"))}function Fn(e,t,n){for(let o=0,r=-1;o<e.value.length;o++){const i=e.value[o];0===o||"Field"===i.type&&i.start===r||mt(t," "),Vn(i,t,n),r=i.end}}function Vn(e,t,n){if("ColorValue"===e.type)mt(t,Nn(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type||"CustomProperty"===e.type)ft(t,e.value);else if("NumberValue"===e.type)ft(t,Rn(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";ft(t,n+e.value+n)}else if("Field"===e.type)bt(t,e.index,e.name);else if("FunctionCall"===e.type){mt(t,e.name+"(");for(let o=0;o<e.arguments.length;o++)o&&mt(t,", "),Fn(e.arguments[o],t,n);mt(t,")")}}const Un="lg";function Qn(e,t,n){if(!function(e,t){let n=null;const o=1===e.value.length?e.value[0]:null;if(o&&1===o.value.length){const e=o.value[0];"FunctionCall"===e.type&&e.name===Un&&(n=e)}return!(!n&&e.name!==Un)&&(n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[Jn(eo(0,""))]},t.context||(e.name="background-image"),e.value=[Jn(n)],!0)}(e,n)){const o=n.options["stylesheet.fuzzySearchMinScore"];if(oo(n)){const r=n.context.name,i=t.find((e=>e.type===Sn.Property&&e.property===r));Zn(e,n,i,o),e.snippet=i}else if(e.name){const r=Gn(e.name,t,o,!0);if(e.snippet=r,r){const t=r.type===Sn.Property?function(e,t,n){const o=function(e,t){for(let n=0,o=0;n<e.length;n++){if(o=t.indexOf(e[n],o),-1===o)return e.slice(n);o++}return""}(e.name,t.key);if(o){if(e.value.length)return null;const r=Yn(o,n,t);if(!r)return null;e.value.push(Jn(r))}if(e.name=t.property,e.value.length)Zn(e,n,t);else if(t.value.length){const o=t.value[0];e.value=1===t.value.length||o.some(to)?o:o.map((e=>no(e,n)))}return e}(e,r,n):function(e,t){let n,o=0;const r=/\$\{(\d+)(:[^}]+)?\}/g,i=e.value[0],a=[];for(;n=r.exec(t.value);)o!==n.index&&a.push(Kn(t.value.slice(o,n.index))),o=n.index+n[0].length,i&&i.value.length?a.push(i.value.shift()):a.push(eo(Number(n[1]),n[2]?n[2].slice(1):""));const s=t.value.slice(o);return s&&a.push(Kn(s)),e.name=void 0,e.value=[Jn(...a)],e}(e,r);if(t)e=t;else if(n.options["stylesheet.strictMatch"])return null}}}return(e.name||n.context)&&function(e,t){const n=t.options["stylesheet.unitAliases"],o=t.options["stylesheet.unitless"];for(const r of e.value)for(const i of r.value)"NumberValue"===i.type&&(i.unit?i.unit=n[i.unit]||i.unit:0===i.value||o.includes(e.name)||(i.unit=i.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,n),e}function Zn(e,t,n,o){for(const r of e.value){const e=[];for(const i of r.value)if("Literal"===i.type)e.push(Yn(i.value,t,n,o)||i);else if("FunctionCall"===i.type){const r=Yn(i.name,t,n,o);r&&"FunctionCall"===r.type?e.push(Object.assign(Object.assign({},r),{arguments:i.arguments.concat(r.arguments.slice(i.arguments.length))})):e.push(i)}else e.push(i);r.value=e}}function Gn(e,t,n=0,o=!1){let r=null,i=0;for(const n of t){const t=An(e,Xn(n),o);if(1===t)return n;t&&t>=i&&(i=t,r=n)}return i>=n?r:null}function Xn(e){return"string"==typeof e?e:e.key}function Yn(e,t,n,o){let r;if(n){if(r=Gn(e,Object.keys(n.keywords),o))return n.keywords[r];for(const t of n.dependencies)if(r=Gn(e,Object.keys(t.keywords),o))return t.keywords[r]}return(r=Gn(e,t.options["stylesheet.keywords"],o))?Kn(r):null}function Jn(...e){return{type:"CSSValue",value:e}}function Kn(e){return{type:"Literal",value:e}}function eo(e,t){return{type:"Field",index:e,name:t}}function to(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(to))return!0;return!1}function no(e,t,n={index:1}){let o=[];for(const r of e.value)switch(r.type){case"ColorValue":o.push(eo(n.index++,Nn(r,t.options["stylesheet.shortHex"])));break;case"Literal":o.push(eo(n.index++,r.value));break;case"NumberValue":o.push(eo(n.index++,`${r.value}${r.unit}`));break;case"StringValue":const e="single"===r.quote?"'":'"';o.push(eo(n.index++,e+r.value+e));break;case"FunctionCall":o.push(eo(n.index++,r.name),Kn("("));for(let e=0,i=r.arguments.length;e<i;e++)o=o.concat(no(r.arguments[e],t,n).value),e!==i-1&&o.push(Kn(", "));o.push(Kn(")"));break;default:o.push(r)}return Object.assign(Object.assign({},e),{value:o})}function oo(e){return!(!e.context||e.context.name!==Pn.Value&&e.context.name.startsWith("@@"))}const ro={markup:"html",stylesheet:"css"},io={type:"markup",syntax:"html",variables:{lang:"en",locale:"en-US",charset:"UTF-8",indentation:"\t",newline:"\n"},snippets:{},options:{inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"\t","output.baseIndent":"","output.newline":"\n","output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0,"stylesheet.strictMatch":!1}},ao={markup:{snippets:so({a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:refresh":"meta[http-equiv=refresh content='${1:5}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]","script:module":"script[type=module src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1}]","tarea:c|textarea:cols":"textarea[name=${1} id=${1} cols=${2:30}]","tarea:r|textarea:rows":"textarea[name=${1} id=${1} rows=${3:10}]","tarea:cr|textarea:cols:rows":"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:b|button:b|button:button":"button[type=button]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command",data:"data[value]",meter:"meter[value]",time:"time[datetime]","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:so({"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0,"markup.attributes":{class:"className","class*":"styleName",for:"htmlFor"},"markup.valuePrefix":{"class*":"styles"}}},vue:{options:{"markup.attributes":{"class*":":class"}}},svelte:{options:{"jsx.enabled":!0}},pug:{snippets:so({"!!!":"{doctype html}"})},stylesheet:{snippets:so({"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${2});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bbs:"border-block-start",bbe:"border-block-end",bis:"border-inline-start",bie:"border-inline-end",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}","bg:n":"background: none",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:${1:#fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bs:"block-size",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cg:"column-gap",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|contents|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",g:"gap",gtc:"grid-template-columns:repeat(${0})|minmax()",gtr:"grid-template-rows:repeat(${0})|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",is:"inline-size",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",mbs:"margin-block-start",mbe:"margin-block-end",mis:"margin-inline-start",mie:"margin-inline-end",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width:thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",pbs:"padding-block-start",pbe:"padding-block-end",pis:"padding-inline-start",pie:"padding-inline-end",spbs:"scroll-padding-block-start",spbe:"scroll-padding-block-end",spis:"scroll-padding-inline-start",spie:"scroll-padding-inline-end",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rg:"row-gap",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub","w|wid":"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wido:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"})},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function so(e){const t={};return Object.keys(e).forEach((n=>{for(const o of n.split("|"))t[o]=e[n]})),t}function lo(e={},t={}){const n=e.type||"markup",o=e.syntax||ro[n];return Object.assign(Object.assign(Object.assign({},io),e),{type:n,syntax:o,variables:co(n,o,"variables",e,t),snippets:co(n,o,"snippets",e,t),options:co(n,o,"options",e,t)})}function co(e,t,n,o,r={}){const i=ao[e],a=r[e],s=ao[t],l=r[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},io[n]),i&&i[n]),s&&s[n]),a&&a[n]),l&&l[n]),o[n])}function uo(e,t=0){return{text:e,start:t,pos:e.length}}function po(e){return e.pos===e.start}function mo(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function fo(e){if(!po(e))return e.text.charCodeAt(--e.pos)}function bo(e,t){if(po(e))return!1;const n="function"==typeof t?t(mo(e)):t===mo(e);return n&&e.pos--,!!n}function go(e,t){const n=e.pos;for(;bo(e,t););return e.pos<n}var ho,yo;function xo(e){return e===ho.SingleQuote||e===ho.DoubleQuote}!function(e){e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Escape=92]="Escape"}(ho||(ho={})),function(e){e[e.SquareL=91]="SquareL",e[e.SquareR=93]="SquareR",e[e.RoundL=40]="RoundL",e[e.RoundR=41]="RoundR",e[e.CurlyL=123]="CurlyL",e[e.CurlyR=125]="CurlyR"}(yo||(yo={}));const vo={[yo.SquareL]:yo.SquareR,[yo.RoundL]:yo.RoundR,[yo.CurlyL]:yo.CurlyR};var ko;function wo(e){const t=e.pos;if(!bo(e,ko.AngleRight))return!1;let n=!1;for(bo(e,ko.Slash);!po(e);){if(go(e,Eo),So(e)){if(bo(e,ko.Slash)){n=bo(e,ko.AngleLeft);break}if(bo(e,ko.AngleLeft)){n=!0;break}if(bo(e,Eo))continue;if(bo(e,ko.Equals)){if(So(e))continue;break}if(Co(e)){n=!0;break}break}if(!$o(e))break}return e.pos=t,n}function $o(e){return function(e){const t=e.pos;return!!(function(e){const t=e.pos,n=fo(e);if(xo(n))for(;!po(e);)if(fo(e)===n&&mo(e)!==ho.Escape)return!0;return e.pos=t,!1}(e)&&bo(e,ko.Equals)&&So(e))||(e.pos=t,!1)}(e)||Co(e)}function Co(e){const t=e.pos,n=[];for(;!po(e);){const t=mo(e);if(Lo(t))n.push(t);else if(jo(t)){if(n.pop()!==vo[t])break}else if(!_o(t))break;e.pos--}return!(t===e.pos||!bo(e,ko.Equals)||!So(e))||(e.pos=t,!1)}function So(e){return go(e,zo)}function zo(e){return e===ko.Colon||e===ko.Dash||function(e){return(e&=-33)>=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function Eo(e){return e===ko.Space||e===ko.Tab}function _o(e){return!isNaN(e)&&e!==ko.Equals&&!Eo(e)&&!xo(e)}function jo(e){return e===yo.CurlyL||e===yo.RoundL||e===yo.SquareL}function Lo(e){return e===yo.CurlyR||e===yo.RoundR||e===yo.SquareR}!function(e){e[e.Tab=9]="Tab",e[e.Space=32]="Space",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Equals=61]="Equals",e[e.AngleLeft=60]="AngleLeft",e[e.AngleRight=62]="AngleRight"}(ko||(ko={}));const qo=e=>e.charCodeAt(0),To="#.*:$-_!@%^+>/".split("").map(qo),Bo={type:"markup",lookAhead:!0,prefix:""};function Ao(e,t,n){const o=e.pos;if(bo(e,t))for(;!po(e);){if(bo(e,n))return!0;e.pos--}return e.pos=o,!1}function Oo(e,t){const n=e.pos;let o=!1;for(let n=t.length-1;n>=0&&!po(e)&&bo(e,t[n]);n--)o=0===n;return o||(e.pos=n),o}function No(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||To.includes(e)}function Ro(e,t){return e===yo.RoundL||"markup"===t&&(e===yo.SquareL||e===yo.CurlyL)}function Ho(e,t){return e===yo.RoundR||"markup"===t&&(e===yo.SquareR||e===yo.CurlyR)}function Io(e,t){const n=lo(t);return"stylesheet"===n.type?function(e,t){return function(e,t){var n;const o=pt(t.options),r=t.options["output.format"];(null===(n=t.context)||void 0===n?void 0:n.name)===Pn.Section&&(e=e.filter((e=>e.snippet)));for(let n=0;n<e.length;n++)r&&0!==n&&dt(o,!0),Mn(e[n],o,t);return o.value}(function(e,t){var n;const o=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||function(e){const t=[];for(const n of Object.keys(e))t.push(jn(n,e[n]));return function(e){e=e.slice().sort(Ln);const t=[];let n;for(const o of e.filter(Tn)){for(;t.length;){if(n=t[t.length-1],o.property.startsWith(n.property)&&45===o.property.charCodeAt(n.property.length)){n.dependencies.push(o),t.push(o);break}t.pop()}t.length||t.push(o)}return e}(t)}(t.snippets),r=[];t.cache&&(t.cache.stylesheetSnippets=o),"string"==typeof e&&(e=tt(e,{value:oo(t)}));const i=function(e,t){if(t.context){if(t.context.name===Pn.Section)return e.filter((e=>e.type===Sn.Raw));if(t.context.name===Pn.Property)return e.filter((e=>e.type===Sn.Property))}return e}(o,t);for(const n of e){const e=Qn(n,i,t);e&&r.push(e)}return r}(e,t),t)}(e,n):function(e,t){return function(e,t){return($n[t.syntax]||pn)(e,t)}(function(e,t){let n;if("string"==typeof e){const o=Object.assign({},t);t.options["jsx.enabled"]&&(o.jsx=!0),t.options["markup.href"]&&(o.href=!0),e=we(e,o),n=t.text,t.text=void 0}return e=function(e,t){const n=[],o=t.options["output.reverseAttributes"],{warn:r}=t,i=e=>{const a=e.name&&t.snippets[e.name];if(!a||n.includes(a))return null;let s;try{s=we(a,t)}catch(e){return null==r||r(`Unable to parse "${a}" snippet`,e),null}n.push(a),lt(s,i),n.pop();for(const t of s.children){if(e.attributes){const n=t.attributes||[],r=e.attributes||[];t.attributes=o?r.concat(n):n.concat(r)}c=t,(l=e).selfClosing&&(c.selfClosing=!0),null!=l.value&&(c.value=l.value),l.repeat&&(c.repeat=l.repeat)}var l,c;return s};return lt(e,i),e}(e,t),function(e,t,n){const o=[e],r=e=>{t(e,o,n),o.push(e),e.children.forEach(r),o.pop()};e.children.forEach(r)}(e,Cn,t),t.text=null!=n?n:t.text,e}(e,t),t)}(e,n)}const Do={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]},Po={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext","figcaption","hgroup","details","summary"]},Mo=new Map;let Wo;const Fo=new Map,Vo=/^[a-z,A-Z,!,(,[,#,\.\{]/,Uo=/^[a-z,A-Z,!,(,[,#,\.]/,Qo=/^-?[a-z,A-Z,!,@,#]/,Zo=/[a-z,A-Z\.]/,Go=[...Po.tags,"lorem"],Xo="bem",Yo="|",Jo="t",Ko="c",er=3;function tr(e,t,n,o,r){var i;const a=lr(o);if(!a){if(!Mo.has(o)){const e=Object.assign(Object.assign({},function(e){const t=lo({type:cr(e),syntax:e});return"xml"===e?{}:t.snippets}(o)),ar[o]);Mo.set(o,Object.keys(e))}Wo=null!==(i=Mo.get(o))&&void 0!==i?i:[]}const s={lookAhead:!a,type:cr(o)},l=function(e,t,n,o){const r=t.getLineContent(n.lineNumber),i=r.substr(0,n.column-1),{pos:a,filter:s}=function(e,t){let n;for(let o=0;o<er;o++)if(e.endsWith(`${Yo}${Xo}`,t))t-=Xo.length+1,n=n?Xo+","+n:Xo;else if(e.endsWith(`${Yo}${Ko}`,t))t-=Ko.length+1,n=n?Ko+","+n:Ko;else{if(!e.endsWith(`${Yo}${Jo}`,t))break;t-=Jo.length+1,n=n?Jo+","+n:Jo}return{pos:t,filter:n}}(i,n.column-1),l=s?s.length+1:0,c=function(e,t=e.length,n={}){const o=Object.assign(Object.assign({},Bo),n);let r;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),o.lookAhead&&(t=function(e,t,n){for(xo(e.charCodeAt(t))&&t++;Ho(e.charCodeAt(t),n.type);)t++;return t}(e,t,o));const i=function(e,t,n){if(!n)return 0;const o=uo(e),r=n.split("").map(qo);let i;for(o.pos=t;!po(o);)if(!Ao(o,yo.SquareR,yo.SquareL)&&!Ao(o,yo.CurlyR,yo.CurlyL)){if(i=o.pos,Oo(o,r))return i;o.pos--}return-1}(e,t,o.prefix||"");if(-1===i)return;const a=uo(e,i);a.pos=t;const s=[];for(;!po(a);){if(r=mo(a),s.includes(yo.CurlyR)){if(r===yo.CurlyR){s.push(r),a.pos--;continue}if(r!==yo.CurlyL){a.pos--;continue}}if(Ho(r,o.type))s.push(r);else if(Ro(r,o.type)){if(s.pop()!==vo[r])break}else{if(s.includes(yo.SquareR)||s.includes(yo.CurlyR)){a.pos--;continue}if(wo(a)||!No(r))break}a.pos--}if(!s.length&&a.pos!==t){const o=e.slice(a.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:o,location:t-o.length,start:n.prefix?i-n.prefix.length:t-o.length,end:t}}}(r,a,o);if(!c)return;return{abbreviationRange:new e.Range(n.lineNumber,c.location+1,n.lineNumber,c.location+c.abbreviation.length+l+1),abbreviation:c.abbreviation,currentLineTillPosition:i,filter:s}}(e,t,n,s);if(!l)return;const{abbreviationRange:c,abbreviation:u,currentLineTillPosition:p,filter:m}=l,f=function(e){if(e){const t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}(p);if(f===u&&p.endsWith(`<${u}`)&&!a)return;const d=function(e,t){var n;const o=t?t.split(",").map((e=>e.trim())):[],r=o.includes("bem"),i=o.includes("c"),a={"output.formatSkip":["html"],"output.formatForce":["body"],"output.field":sr,"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"markup.href":!0,"comment.enabled":i,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":r,"bem.element":"__","bem.modifier":"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":!0,"stylesheet.between":"stylus"===e?" ":": ","stylesheet.after":"sass"===e||"stylus"===e?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3,"output.format":!0,"output.selfClosingStyle":"html"},s=cr(e),l=function(e){return lr(e)?"css":"html"}(e);return{type:s,options:a,variables:{},snippets:"stylesheet"===s?null!==(n=ar[e])&&void 0!==n?n:ar[l]:ar[e],syntax:e,text:void 0,maxRepeat:1e3}}(o,m);let b,g="",h=[];if(((t,n)=>{if(function(e,t){if(!t)return!1;if(lr(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(Go.includes(t.substring(0,t.indexOf("#"))))return!1}return Qo.test(t)}return t.startsWith("!")?!/[^!]/.test(t):!!(!/\(/.test(t)&&!/\)/.test(t)||/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)||/\(.*\)[>\+\*\^]/.test(t)||/\[[^\[\]\(\)]+=".*"\]/.test(t)||/[>\+\*\^]\(.*\)/.test(t))&&("jsx"===e?Uo.test(t)&&Zo.test(t):Vo.test(t)&&Zo.test(t))}(t,u)){try{g=Io(n,d),a&&"!important".startsWith(n)&&(g="!important")}catch(e){}g&&!function(e,t,n,o){var r,i;if(lr(e)&&o){const e=null!==(r=o["stylesheet.between"])&&void 0!==r?r:": ",a=null!==(i=o["stylesheet.after"])&&void 0!==i?i:";";let s=t.indexOf(e[0],Math.max(t.length-e.length,0));return s=s>=0?s:t.length,n===`${t.substring(0,s)}${e}\${0}${a}`||n.replace(/\s/g,"")===t.replace(/\s/g,"")+a}if("xml"===e&&Go.some((e=>e.startsWith(t.toLowerCase()))))return!0;if(Go.includes(t.toLowerCase())||Wo.includes(t))return!1;if(/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if("."===t)return!1;const a=t.match(/^([a-z,A-Z,\d]*)\.$/);return a?!a[1]||!Po.tags.includes(a[1]):("jsx"!==e||!/^([A-Z][A-Za-z0-9]*)+$/.test(t))&&n.toLowerCase()===`<${t.toLowerCase()}>\${1}</${t.toLowerCase()}>`}(t,n,g,d.options)&&(b={kind:e.languages.CompletionItemKind.Property,label:u+(m?"|"+m.replace(",","|"):""),documentation:or(g),detail:"Emmet abbreviation",insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:c,insertText:rr(ir(g))},h=[b])}})(o,u),a){if(u.length>4&&Do.properties.some((e=>e.startsWith(u))))return{suggestions:[],incomplete:!0};if(b&&g.length){b.range=c,b.insertText=rr(ir(g)),b.documentation=or(g),b.label=g.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1"),b.filterText=u;const t=Fo.has(o)?Fo.get(o):Fo.get("css");if(h=nr(e,null!=t?t:[],u,u,c,d,"Emmet Custom Snippet",!1),!h.find((e=>e.insertText===(null==b?void 0:b.insertText)))){const e=new RegExp(".*"+u.split("").map((e=>"$"===e||"+"===e?"\\"+e:e)).join(".*")+".*","i");(/\d/.test(u)||e.test(b.label))&&h.push(b)}}}else{let t=u;const n=u.match(/(>|\+)([\w:-]+)$/);if(n&&3===n.length&&(t=n[2]),"xml"!==o){const n=nr(e,Go,t,u,c,d,"Emmet Abbreviation");h=h.concat(n)}if(!0===r.showAbbreviationSuggestions){const n=nr(e,Wo.filter((e=>!Go.includes(e))),t,u,c,d,"Emmet Abbreviation");b&&n.length>0&&t!==u&&(b.sortText="0"+b.label,n.forEach((e=>{e.filterText=u,e.sortText="9"+u}))),h=h.concat(n)}"html"===o&&h.length>=2&&u.includes(":")&&(null==b?void 0:b.insertText)===`<${u}>\${0}</${u}>`&&(h=h.filter((e=>e.label!==u)))}return!0===r.showSuggestionsAsSnippets&&h.forEach((t=>t.kind=e.languages.CompletionItemKind.Snippet)),h.length?{suggestions:h,incomplete:!0}:void 0}function nr(e,t,n,o,r,i,a,s=!0){if(!n||!t)return[];const l=[];return t.forEach((t=>{if(!t.startsWith(n.toLowerCase())||s&&t===n.toLowerCase())return;const c=o+t.substr(n.length);let u;try{u=Io(c,i)}catch(e){}if(!u)return;const p={kind:e.languages.CompletionItemKind.Property,label:n+t.substr(n.length),documentation:or(u),detail:a,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:r,insertText:rr(ir(u))};l.push(p)})),l}function or(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function rr(e){return e?e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):e}function ir(e){if(!e||!e.trim())return e;let t=-1,n=[],o=!1,r=!1,i=0;const a=e.length;try{for(;i<a&&!o;){if("$"!=e[i++]||"{"!=e[i++])continue;let s=-1,l=-1;for(;i<a&&/\d/.test(e[i]);)s=s<0?i:s,l=i+1,i++;if(-1===s||-1===l||i>=a||"}"!=e[i]&&":"!=e[i])continue;const c=e.substring(s,l);if(o="0"===c,o)break;let u=!1;if(":"==e[i++])for(;i<a;){if("}"==e[i]){u=!0;break}i++}Number(c)>Number(t)?(t=Number(c),n=[{numberStart:s,numberEnd:l}],r=!u):Number(c)===t&&n.push({numberStart:s,numberEnd:l})}}catch(e){}if(r&&!o)for(let t=0;t<n.length;t++){const o=n[t].numberStart,r=n[t].numberEnd;e=e.substr(0,o)+"0"+e.substr(r)}return e}let ar={};const sr=(e,t)=>`\${${e}${t?":"+t:""}}`;function lr(e){return"css"===e}function cr(e){return lr(e)?"stylesheet":"markup"}function ur(e,t,n,o){const r=e[t],i=r.type;return"html"===n?""===i&&(0===t||"delimiter.html"===e[t-1].type)||"text.html.basic"===e[0].type:"css"===n?""===i||i==="tag."+o:"jsx"===n&&("mdx"===r.language&&""===i||!!t&&["identifier.js","type.identifier.js","identifier.ts","type.identifier.ts"].includes(i))}const pr=new WeakMap;const mr={html:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],jade:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],slim:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],haml:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xml:[".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xsl:["!",".","}","*","$","/","]",">","0","1","2","3","4","5","6","7","8","9"],css:[":","!","-","0","1","2","3","4","5","6","7","8","9"],scss:[":","!","-","0","1","2","3","4","5","6","7","8","9"],sass:[":","!","0","1","2","3","4","5","6","7","8","9"],less:[":","!","-","0","1","2","3","4","5","6","7","8","9"],stylus:[":","!","0","1","2","3","4","5","6","7","8","9"],javascript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]},fr={handlebars:"html",php:"html",twig:"html"},dr={showExpandedAbbreviation:"always",showAbbreviationSuggestions:!0,showSuggestionsAsSnippets:!1};function br(e,t,n){if(!e)return void console.error("emmet-monaco-es: 'monaco' should be either declared on window or passed as first parameter");const o=t.map((t=>e.languages.registerCompletionItemProvider(t,{triggerCharacters:mr[fr[t]||t],provideCompletionItems:(o,r)=>function(e,t,n,o){var r;const{column:i,lineNumber:a}=t,{_stateStore:s,_support:l}=function(e){if(pr.has(e))return pr.get(e);let t=e._tokenization||e.tokenization._tokenization,n=null==t?void 0:t._tokenizationStateStore;if(!t||!n){const o=e.tokenization,r=o.grammarTokens||o._tokens;r?(t=r._defaultBackgroundTokenizer,n=t._tokenizerWithStateStore):(Object.values(o).some((e=>t=e.tokenizeViewport&&e)),Object.values(t).some((e=>n=e.tokenizationSupport&&e)))}const o=n.tokenizationSupport||t._tokenizationSupport,r={_stateStore:n,_support:o};return pr.set(e,r),r}(e),c=(null===(r=s.getBeginState)||void 0===r?void 0:r.call(s,a-1).clone())||s.getStartState(a).clone(),u=l.tokenize(e.getLineContent(a),!0,c,0).tokens;let p=!1;for(let e=u.length-1;e>=0;e--)if(i-1>u[e].offset){p=ur(u,e,n,o);break}return p}(o,r,n,t)?tr(e,o,r,n,dr):void 0})));return()=>{o.forEach((e=>e.dispose()))}}const gr=window.wp.components,hr=[{label:"HTML",value:"html"},{label:"CSS",value:"css"},{label:"SCSS",value:"scss"},{label:"JavaScript",value:"js"},{label:"PHP",value:"php"},{label:"TypeScript",value:"typescript"},{label:"Bash",value:"bash"},{label:"Twig",value:"twig"},{label:"YAML",value:"yaml"},{label:"Plaintext",value:"plaintext"},{label:"JSON",value:"json"}],yr=window.wp.primitives;var xr=n(848);const vr=(0,xr.jsx)(yr.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xr.jsx)(yr.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})}),kr=(0,xr.jsx)(yr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xr.jsx)(yr.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})}),wr=({viewMode:e,setViewMode:t,syntaxHighlight:n,setSyntaxHighlight:o,setAttributes:i,editorLanguage:s,changeEditorLanguage:l})=>{const[c,u]=(0,r.useState)(hr[0].value),p=hr.find((e=>e.value===c))?.label||"";return(0,r.createElement)(a.BlockControls,null,!n&&(0,r.createElement)(gr.ToolbarGroup,null,(0,r.createElement)(gr.ToolbarButton,{icon:"preview"===e?vr:kr,label:"preview"===e?"Switch to Split View":"Switch to Preview",onClick:()=>t("preview"===e?"split":"preview")},"preview"===e?"Preview":"Split")),(0,r.createElement)(gr.ToolbarGroup,null,(0,r.createElement)(gr.ToolbarItem,null,(()=>(0,r.createElement)(gr.ToolbarButton,{label:"Highlighting",isPressed:n,onClick:()=>{o(!n),i({syntaxHighlight:!n})}},n?"Highlighting On":"Highlighting Off")))),n&&(0,r.createElement)(gr.ToolbarGroup,null,(0,r.createElement)(gr.ToolbarDropdownMenu,{text:p,icon:null,label:"Select a language",controls:hr.map((e=>({title:e.label,onClick:()=>{u(e.value),l(e.value),console.log(e.value)}})))})))},$r=(0,i.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,i.cloneElement)(e,{width:t,height:t,...n,ref:o})})),Cr=(0,xr.jsx)(yr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xr.jsx)(yr.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})}),Sr=[{label:"Light",value:"light"},{label:"Dark",value:"dark"}],zr={padding:"10px 0px 10px 15px"},Er=({attributes:e,setAttributes:t,syntaxHighlight:n,setSyntaxHighlight:o,syntaxHighlightTheme:i,toggleSyntaxHighlightTheme:s,editorLanguage:l,changeEditorLanguage:c,theme:u,toggleTheme:p,fontSize:m,setFontSize:f,editorHeight:d,setEditorHeight:b,updateAttribute:g,displayLanguage:h,copyButton:y})=>(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(gr.Panel,null,(0,r.createElement)(gr.PanelBody,{title:"Element Settings"},(0,r.createElement)("div",{className:"togglecontrol--with-info"},(0,r.createElement)(gr.ToggleControl,{label:"Use Wrapper",checked:e.useWrapper,onChange:e=>{t({useWrapper:e})},__nextHasNoMarginBottom:!0}),(0,r.createElement)("div",{className:"togglecontrol--with-info__icon-wrapper"},(0,r.createElement)($r,{icon:Cr,size:20}),(0,r.createElement)("p",null,"Wrap the editor content in a div to use WordPress attributes such as class name, width class, etc."))),!n&&(0,r.createElement)(gr.__experimentalUnitControl,{label:"Editor Height",value:d,onChange:e=>{const n=e.toString().endsWith("px")?e:`${e}px`;b(n),localStorage.setItem("dblocks_editor_height",n),t({editorHeight:n})},units:[{value:"px",label:"px",default:500}],min:10,max:1e3,__next40pxDefaultSize:!0}),(0,r.createElement)("div",{className:"togglecontrol--with-info"},(0,r.createElement)(gr.ToggleControl,{label:"Syntax Highlighting",checked:n,onChange:e=>{o(e),t({syntaxHighlight:e,scaleHeightWithContent:e})},__nextHasNoMarginBottom:!0}),(0,r.createElement)("div",{className:"togglecontrol--with-info__icon-wrapper"},(0,r.createElement)($r,{icon:Cr,size:20}),(0,r.createElement)("p",null,"If this is disabled code will be injected as HTML, otherwise the code will be displayed with syntax highlighting as code snippet preview."))),n&&(0,r.createElement)("div",{style:zr},(0,r.createElement)(gr.SelectControl,{label:"Language",value:l,options:hr,onChange:c,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,r.createElement)(gr.SelectControl,{label:"Front End Theme",value:i,options:Sr,onChange:()=>{s()},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,r.createElement)(gr.ToggleControl,{label:"Display Language",checked:h,onChange:e=>{g("displayLanguage",e,"/wp-json/dblocks_codepro/v1/display-language/")},__nextHasNoMarginBottom:!0}),(0,r.createElement)(gr.ToggleControl,{label:"Copy Button",checked:y,onChange:e=>{g("copyButton",e,"/wp-json/dblocks_codepro/v1/copy-button/")},__nextHasNoMarginBottom:!0})),(0,r.createElement)("hr",null),(0,r.createElement)("h2",null,"Editor Global Settings"),(0,r.createElement)(gr.SelectControl,{label:"Editor Theme",value:"vs-dark"===u?"dark":"light",options:Sr,onChange:()=>{p()},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,r.createElement)(gr.__experimentalUnitControl,{label:"Editor Font Size",value:m,onChange:e=>{return f(t=e),void g("editorFontSize",t,"/wp-json/dblocks_codepro/v1/editor-font-size/");var t},units:[{value:"px",label:"Pixels",default:14}],min:10,max:30,__next40pxDefaultSize:!0})))),_r=window.wp.data,jr=(e,t=500,n=10)=>{if("number"==typeof e)return Math.max(n,e);if("string"==typeof e){const o=parseInt(e,10);return isNaN(o)?t:Math.max(n,o)}return t},Lr=e=>`${jr(e)}px`,qr=e=>jr(e),Tr={instances:new Map,isInitializing:!1},Br=({content:e,editorLanguage:t,syntaxThemeClass:n,displayLanguage:o,copyButton:i})=>(0,r.createElement)("div",{className:"tag-wrapper"},i&&(0,r.createElement)("button",{className:"copy-button tag-button"},"Copy"),o&&(0,r.createElement)("div",{className:"code-language-label tag-button"},t.toUpperCase())),Ar=({blockProps:e,content:t,editorLanguage:n,syntaxThemeClass:o,displayLanguage:i,copyButton:a})=>{const s={...e,className:`wp-block-dblocks-dblocks-codepro ${o} syntax-highlighted-container`};return(0,r.createElement)("pre",{...s},(0,r.createElement)(Br,{content:t,editorLanguage:n,syntaxThemeClass:o,displayLanguage:i,copyButton:a}),(0,r.createElement)("code",{className:`language-${n}`},t))},Or=({blockProps:e,content:t,useWrapper:n})=>{const o=(0,r.createElement)(i.RawHTML,null,t);return n?(0,r.createElement)("div",{...e},o):o},Nr=()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"},(0,r.createElement)("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H160v400Zm140-40-56-56 103-104-104-104 57-56 160 160-160 160Zm180 0v-80h240v80H480Z"})),Rr={viewMode:"split",theme:"vs-light",syntaxHighlight:!1,syntaxHighlightTheme:"light",editorLanguage:"html"},Hr={from:[{type:"block",blocks:["core/html","core/code"],transform:({content:e})=>(0,o.createBlock)("dblocks/dblocks-codepro",{content:e,...Rr})},{type:"raw",priority:20,isMatch:e=>"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName,transform:e=>{const t=e.firstChild.textContent;return(0,o.createBlock)("dblocks/dblocks-codepro",{content:t,...Rr})}},{type:"raw",priority:10,isMatch:e=>"PRE"===e.nodeName,transform:e=>{const t=e.textContent;return(0,o.createBlock)("dblocks/dblocks-codepro",{content:t,...Rr})}}],to:[{type:"block",blocks:["core/html"],transform:({content:e})=>(0,o.createBlock)("core/html",{content:e})},{type:"block",blocks:["core/code"],transform:({content:e})=>(0,o.createBlock)("core/code",{content:e})}]},Ir=JSON.parse('{"UU":"dblocks/dblocks-codepro"}').UU;if(!(0,o.getBlockType)(Ir))try{(0,o.registerBlockType)(Ir,{icon:Nr,edit:function({attributes:e,setAttributes:t,clientId:n}){const{content:o,viewMode:s}=e,[l,c]=(0,i.useState)(s),[u,p]=(0,i.useState)(e.theme||"vs-light"),[m,f]=(0,i.useState)(e.editorFontSize||"14px"),[d,b]=(0,i.useState)((()=>localStorage.getItem("dblocks_editor_height")||e.editorHeight||"500px")),[g,h]=(0,i.useState)(e.syntaxHighlight),[y,x]=(0,i.useState)((()=>localStorage.getItem("dblocks_syntax_theme")||e.syntaxHighlightTheme||"light")),[v,k]=(0,i.useState)(e.editorLanguage||"html"),[w,$]=(0,i.useState)(null),[C,S]=(0,i.useState)(!1),[z,E]=(0,i.useState)(!1),[_,j]=(0,i.useState)(!1),[L,q]=(0,i.useState)(!1),[T,B]=(0,i.useState)((()=>{var t;const n=localStorage.getItem("dblocks_display_language");return null!==n?"true"===n:null===(t=e.displayLanguage)||void 0===t||t})),[A,O]=(0,i.useState)((()=>{var t;const n=localStorage.getItem("dblocks_copy_button");return null!==n?"true"===n:null===(t=e.copyButton)||void 0===t||t})),N=(0,i.useRef)(null),R=(0,i.useRef)(null),H=(0,i.useRef)(null),I=(0,i.useRef)(s),D=(0,_r.useSelect)((e=>e("core/block-editor").getSelectedBlockClientId())),P=e=>{const t=(e.match(/\n/g)||[]).length+1,n=parseInt(m),o=1.5*n,r=2*n,i=1.5*n;return`${Math.max(t*o+r,i)}px`},M=(e,n)=>{t({[e]:n})},W=DBlocksData.restUrl;(0,i.useEffect)((()=>{const e=e=>{const n=e.detail.theme;n!==y&&(x(n),t({syntaxHighlightTheme:n}))};return window.addEventListener("dblocks_syntax_theme_changed",e),()=>{window.removeEventListener("dblocks_syntax_theme_changed",e)}}),[y]),(0,i.useEffect)((()=>{const e=localStorage.getItem("dblocks_syntax_theme");e&&e!==y&&(x(e),t({syntaxHighlightTheme:e}))}),[]);const F=e=>{if(k(e),M("editorLanguage",e),H.current){const t=H.current.getModel();if(t){const n=window.monaco||document.querySelector('[name="editor-canvas"]')?.contentWindow?.monaco;n&&n.editor.setModelLanguage(t,e)}}},V=e=>{h(e),t({syntaxHighlight:e,scaleHeightWithContent:e}),j(!0),z&&"split"===l&&setTimeout((()=>{if(H.current){H.current.layout();const e=document.querySelector('[name="editor-canvas"]'),t=e?e.contentWindow:window;t&&t.monaco&&H.current.focus()}}),50)};(0,i.useEffect)((()=>{if(g||D===n&&"split"===l){const e=document.querySelector('[name="editor-canvas"]'),t=e?e.contentWindow:window,n=e?e.contentWindow.document:document,o=setTimeout((()=>{Q(t,n)}),10);return()=>clearTimeout(o)}return()=>{g||D===n&&"split"===l||!H.current||(H.current.dispose(),H.current=null,Tr.instances.delete(n))}}),[g,D,n,l,w]),(0,i.useEffect)((()=>{if(D)if(D!==n)E(!1),!g&&H.current&&(H.current.dispose(),H.current=null,Tr.instances.delete(n));else if("split"===l){E(!0);const e=localStorage.getItem("dblocks_editor_height");e&&e!==d&&(b(e),t({editorHeight:e}),R.current&&(R.current.style.height=e,H.current?.layout()));const n=localStorage.getItem("dblocks_syntax_theme");n&&n!==y&&(x(n),t({syntaxHighlightTheme:n}))}}),[D,n,l,g]);const U=g||D===n&&"split"===l;(0,i.useLayoutEffect)((()=>{if(R.current&&_){const e=R.current.style.display;R.current.style.display="none",R.current.offsetHeight,R.current.style.display=e||"block"}}),[R.current,_]),(0,i.useEffect)((()=>{H.current&&C&&H.current.getValue()!==o&&H.current.setValue(o)}),[o,C]),(0,i.useEffect)((()=>{if(R.current&&H.current){if(g||e.scaleHeightWithContent){const e=P(o);R.current.style.height=e}else R.current.style.height=d;H.current.layout()}}),[g,e.scaleHeightWithContent,o,d]),(0,i.useEffect)((()=>{H.current&&H.current.updateOptions({theme:u,fontSize:parseInt(m)})}),[u,m]),(0,i.useEffect)((()=>{(async()=>{try{const e=await fetch(`${W}plugin-path`);if(!e.ok)throw new Error("Failed to fetch plugin info");const t=await e.json();$(t)}catch(e){console.error("Failed to fetch plugin info:",e)}})()}),[]);const Q=async(t,r)=>{if(!w||Tr.isInitializing)return;q(!0);const i=_||"preview"===I.current&&"split"===l;if(Tr.instances.has(n)&&!i)return H.current=Tr.instances.get(n),C||S(!0),setTimeout((()=>{H.current&&H.current.layout()}),50),void q(!1);Tr.isInitializing=!0;const a=`${w.plugin_url}vendor/monaco/min/vs`;try{if(!t.monaco&&!Array.from(r.scripts).some((e=>e.src.includes(`${a}/loader.js`)))){const e=r.createElement("script");e.src=`${a}/loader.js`,await new Promise(((t,n)=>{e.onload=t,e.onerror=n,r.body.appendChild(e)}))}t.require||await new Promise((e=>{const n=setInterval((()=>{t.require&&(clearInterval(n),e())}),50)})),t.require.config({paths:{vs:a}}),await new Promise((r=>{t.require(["vs/editor/editor.main"],(()=>{H.current&&(H.current.dispose(),H.current=null,Tr.instances.delete(n)),R.current&&(R.current.style.display="block",R.current.style.visibility="visible"),H.current=t.monaco.editor.create(R.current,{minimap:{enabled:!1},value:o||"\x3c!-- some comment --\x3e",language:v,automaticLayout:!0,theme:u,fontSize:parseInt(m),scrollBeyondLastLine:!1,suggestOnTriggerCharacters:!0,quickSuggestions:!0,wordBasedSuggestions:!0,parameterHints:{enabled:!0}}),t.monaco._emmetInitialized||(function(e=window.monaco,t=["html"]){br(e,t,"html")}(t.monaco),t.monaco._emmetInitialized=!0),H.current.onDidChangeModelContent((()=>{const t=H.current.getValue();if(M("content",t),e.scaleHeightWithContent){const e=P(t);R.current.style.height=e,H.current.layout()}})),setTimeout((()=>{H.current&&H.current.layout()}),10),Tr.instances.set(n,H.current),S(!0),r()}))}))}catch(e){console.error("Failed to initialize Monaco editor:",e)}finally{Tr.isInitializing=!1,q(!1)}};return(0,i.useEffect)((()=>{z&&"split"===l&&j(!0)}),[g]),(0,i.useEffect)((()=>{"preview"===I.current&&"split"===l&&j(!0),M("viewMode",l),"split"===l&&E(!0),I.current=l}),[l]),(0,i.useEffect)((()=>{g||"preview"!==l||(c("split"),M("viewMode","split"))}),[g]),(0,i.useEffect)((()=>{const e=e=>{const n=e.detail.displayLanguage;n!==T&&(B(n),t({displayLanguage:n}))};return window.addEventListener("dblocks_display_language_changed",e),()=>{window.removeEventListener("dblocks_display_language_changed",e)}}),[T]),(0,i.useEffect)((()=>{const e=localStorage.getItem("dblocks_display_language");if(null!==e){const n="true"===e;n!==T&&(B(n),t({displayLanguage:n}))}}),[]),(0,i.useEffect)((()=>{const e=e=>{const n=e.detail.copyButton;n!==A&&(O(n),t({copyButton:n}))};return window.addEventListener("dblocks_copy_button_changed",e),()=>{window.removeEventListener("dblocks_copy_button_changed",e)}}),[A]),(0,i.useEffect)((()=>{const e=localStorage.getItem("dblocks_copy_button");if(null!==e){const n="true"===e;n!==A&&(O(n),t({copyButton:n}))}}),[]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Er,{attributes:e,setAttributes:t,syntaxHighlight:g,setSyntaxHighlight:V,syntaxHighlightTheme:y,toggleSyntaxHighlightTheme:async e=>{const t=e||("light"===y?"dark":"light");try{if(!(await fetch(`${W}syntax-theme/`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify({syntaxTheme:t})})).ok)throw new Error("Network response was not ok.");localStorage.setItem("dblocks_syntax_theme",t),x(t),M("syntaxHighlightTheme",t);const e=new CustomEvent("dblocks_syntax_theme_changed",{detail:{theme:t}});window.dispatchEvent(e)}catch(e){console.error("Failed to update syntax theme:",e)}},editorLanguage:v,changeEditorLanguage:F,theme:u,toggleTheme:async()=>{const e="vs-light"===u?"vs-dark":"vs-light";try{if(!(await fetch(`${W}theme`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify({theme:e})})).ok)throw new Error("Network response was not ok.");p(e),M("theme",e)}catch(e){console.error("Failed to update theme:",e)}},fontSize:m,setFontSize:f,editorHeight:d,setEditorHeight:e=>{const t=Lr(e);b(t),localStorage.setItem("dblocks_editor_height",t),M("editorHeight",t),R.current&&(R.current.style.height=t,H.current?.layout())},updateAttribute:async(e,n,o)=>{t({[e]:n});try{if(!(await fetch(o,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify({[e]:n})})).ok)throw new Error("Network response was not ok.");if("displayLanguage"===e){localStorage.setItem("dblocks_display_language",n);const e=new CustomEvent("dblocks_display_language_changed",{detail:{displayLanguage:n}});window.dispatchEvent(e)}else if("copyButton"===e){localStorage.setItem("dblocks_copy_button",n);const e=new CustomEvent("dblocks_copy_button_changed",{detail:{copyButton:n}});window.dispatchEvent(e)}}catch(t){console.error(`Failed to update ${e}:`,t)}},displayLanguage:T,copyButton:A}),(0,r.createElement)("div",{...(0,a.useBlockProps)({ref:N}),style:{position:"relative",height:"100vh"}},(0,r.createElement)(wr,{viewMode:l,setViewMode:e=>{I.current=l,c(e),"split"===e&&(E(!0),j(!0))},syntaxHighlight:g,setSyntaxHighlight:V,setAttributes:t,editorLanguage:v,changeEditorLanguage:F}),!g&&"preview"===l&&(0,r.createElement)(i.RawHTML,{className:`syntax-${y}`},o),!g&&"split"===l&&(0,r.createElement)(i.RawHTML,{onClick:()=>{E(!0)},className:`syntax-${y}`},o),U&&(g||"split"!==l||e.scaleHeightWithContent?(0,r.createElement)("div",{style:{position:"relative",isolation:"isolate",zIndex:100}},(0,r.createElement)("div",{ref:R,id:"editor-container-ref",style:{height:P(o),width:"100%",position:g?"relative":"fixed",bottom:g?"auto":0,left:0,right:0,zIndex:9999,backgroundColor:"#fff",visibility:U?"visible":"hidden",display:U?"block":"none",isolation:"isolate"}}),L&&(0,r.createElement)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.8)",zIndex:1e4}},(0,r.createElement)(gr.Spinner,null))):(0,r.createElement)(gr.ResizableBox,{className:"code-editor-box",size:{height:qr(d)},minHeight:10,enable:{top:!0},style:{position:g?"relative":"fixed",bottom:g?"auto":0,left:0,right:0,zIndex:100,isolation:"isolate"},onResizeStop:(e,n,o,r)=>{const i=qr(d)+r.height,a=Lr(i);localStorage.setItem("dblocks_editor_height",a),b(a),t({editorHeight:a}),R.current&&(R.current.style.height=a,H.current?.layout())}},(0,r.createElement)("div",{ref:R,id:"editor-container-ref",style:{height:"100%",width:"100%",position:g?"relative":"absolute",bottom:g?"auto":0,left:0,right:0,zIndex:9999,backgroundColor:"#fff",visibility:U?"visible":"hidden",display:U?"block":"none",isolation:"isolate"}}),L&&(0,r.createElement)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.8)",zIndex:1e4}},(0,r.createElement)(gr.Spinner,null))))))},save:function({attributes:e}){const{syntaxHighlight:t,content:n,theme:o,syntaxHighlightTheme:i,editorLanguage:s,displayLanguage:l,copyButton:c,useWrapper:u}=e,p=a.useBlockProps.save(),m="light"===i?"syntax-light":"syntax-dark";return t?(0,r.createElement)(Ar,{blockProps:p,content:n,editorLanguage:s,syntaxThemeClass:m,displayLanguage:l,copyButton:c}):(0,r.createElement)(Or,{blockProps:p,content:n,useWrapper:u})},transforms:Hr})}catch(Ie){console.error(`Failed to register block ${Ir}:`,Ie)}},20:(e,t,n)=>{var o=n(609),r=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var o,l={},c=null,u=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,o)&&!s.hasOwnProperty(o)&&(l[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===l[o]&&(l[o]=t[o]);return{$$typeof:r,type:e,key:c,ref:u,props:l,_owner:a.current}}},848:(e,t,n)=>{e.exports=n(20)},609:e=>{e.exports=window.React}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.m=t,e=[],o.O=(t,n,r,i)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){for(var[n,r,i]=e[u],s=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(s=!1,i<a&&(a=i));if(s){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,r,i]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[a,s,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(l)var u=l(o)}for(t&&t(n);c<a.length;c++)i=a[c],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(u)},n=globalThis.webpackChunkdblocks_codepro=globalThis.webpackChunkdblocks_codepro||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[350],(()=>o(885)));r=o.O(r)})(); -
dblocks-codepro/tags/1.3.2/dblocks-codepro.php
r3285741 r3285786 6 6 * Requires at least: 6.3 7 7 * Requires PHP: 7.4 8 * Version: 1.3. 18 * Version: 1.3.2 9 9 * Author: DPlugins 10 10 * * Author URI: https://dplugins.com/ -
dblocks-codepro/tags/1.3.2/readme.txt
r3285741 r3285786 3 3 Tags: block, html, code, monaco editor, code block 4 4 Tested up to: 6.8.1 5 Stable tag: 1.3. 15 Stable tag: 1.3.2 6 6 License: GPL-2.0-or-later 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 67 67 68 68 == Changelog == 69 70 = 1.3.2 = 71 * Added transfrom from HTML Block to CodePro Block 72 69 73 70 74 = 1.3.1 = -
dblocks-codepro/tags/1.3.2/src/transforms.js
r3285633 r3285786 2 2 3 3 const DEFAULT_ATTRIBUTES = { 4 viewMode: ' code',4 viewMode: 'split', 5 5 theme: 'vs-light', 6 syntaxHighlight: true,6 syntaxHighlight: false, 7 7 syntaxHighlightTheme: 'light', 8 8 editorLanguage: 'html' … … 18 18 transform: ({ content }) => { 19 19 return createBlock('dblocks/dblocks-codepro', { 20 content ,20 content: content, 21 21 ...DEFAULT_ATTRIBUTES 22 22 }); 23 23 }, 24 24 }, 25 { 26 type: 'raw', 27 priority: 20, 28 isMatch: (node) => { 29 return ( 30 node.nodeName === 'PRE' && 31 node.firstChild && 32 node.firstChild.nodeName === 'CODE' 33 ); 34 }, 35 transform: (node) => { 36 const content = node.firstChild.textContent; 37 return createBlock('dblocks/dblocks-codepro', { 38 content: content, 39 ...DEFAULT_ATTRIBUTES 40 }); 41 }, 42 }, 43 { 44 type: 'raw', 45 priority: 10, 46 isMatch: (node) => { 47 return node.nodeName === 'PRE'; 48 }, 49 transform: (node) => { 50 const content = node.textContent; 51 return createBlock('dblocks/dblocks-codepro', { 52 content: content, 53 ...DEFAULT_ATTRIBUTES 54 }); 55 }, 56 } 25 57 ], 58 to: [ 59 { 60 type: 'block', 61 blocks: ['core/html'], 62 transform: ({ content }) => { 63 return createBlock('core/html', { 64 content: content 65 }); 66 }, 67 }, 68 { 69 type: 'block', 70 blocks: ['core/code'], 71 transform: ({ content }) => { 72 return createBlock('core/code', { 73 content: content 74 }); 75 }, 76 } 77 ] 26 78 }; 27 79 -
dblocks-codepro/trunk/build/index.asset.php
r3285633 r3285786 1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-primitives'), 'version' => ' c98dc21eb9eed1217288');1 <?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-primitives'), 'version' => 'e73a4c20dcbf62e3d397'); -
dblocks-codepro/trunk/build/index.js
r3285633 r3285786 1 (()=>{"use strict";var e,t={885:(e,t,n)=>{const o=window.wp.blocks;var r=n(609);const i=window.wp.element,a=window.wp.blockEditor;function s(e){return e>47&&e<58}function l(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function u(e){return s(e)||c(e)}function c(e){return 95===e||l(e)}function p(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}function m(e){return 39===e||34===e}class f{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,t){return new f(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new d(`${e} at ${t+1}`,t,this.string)}}class d extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}function g(e){return e.tokens[e.pos]}function b(e){return e.tokens[e.pos++]}function h(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function y(e){return e.pos<e.size}function x(e,t){const n=g(e);return!(!n||!t(n)||(e.pos++,0))}function v(e,t,n=g(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function k(e,t){const n={type:"TokenGroup",elements:[]};let o,r=n;const i=[];for(;y(e)&&(o=$(e,t)||w(e,t));)if(r.elements.push(o),x(e,V))i.push(r),r=o;else{if(x(e,U))continue;if(x(e,Q))do{i.length&&(r=i.pop())}while(x(e,Q))}return n}function w(e,t){if(x(e,M)){const n=k(e,t);return q(b(e),"group",!1)&&(n.repeat=function(e){return N(g(e))?e.tokens[e.pos++]:void 0}(e)),n}}function $(e,t){let n;const o={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(function(e,t){const n=e.pos;if(t.jsx&&x(e,R))for(;y(e);){const{pos:t}=e;if(!x(e,I)||!x(e,R)){e.pos=t;break}}for(;y(e)&&x(e,H););return e.pos!==n&&(e.start=n,!0)}(e,t)&&(o.name=h(e));y(e);)if(e.start=e.pos,o.repeat||F(o)||!x(e,N))if(!o.value&&j(e))o.value=L(e);else{if(!(n=S(e,"id",t)||S(e,"class",t)||C(e))){!F(o)&&x(e,Z)&&(o.selfClose=!0,!o.repeat&&x(e,N)&&(o.repeat=e.tokens[e.pos-1]));break}o.attributes?o.attributes=o.attributes.concat(n):o.attributes=Array.isArray(n)?n.slice():[n]}else o.repeat=e.tokens[e.pos-1];return F(o)?void 0:o}function C(e){if(x(e,D)){const t=[];let n;for(;y(e);)if(n=z(e))t.push(n);else{if(x(e,P))break;if(!x(e,B))throw v(e,`Unexpected "${g(e).type}" token`)}return t}}function S(e,t,n){if(T(g(e),t)){e.pos++;let r=1;for(;T(g(e),t);)e.pos++,r++;const i={name:[(o=t,{type:"Literal",value:o})]};return r>1&&(i.multiple=!0),n.jsx&&j(e)?(i.value=L(e),i.expression=!0):i.value=_(e)?h(e):void 0,i}var o}function z(e){if(E(e))return{value:h(e)};if(_(e,!0)){const t=h(e);let n;return x(e,O)&&(E(e)||_(e,!0))&&(n=h(e)),{name:t,value:n}}}function E(e){const t=e.pos,n=g(e);if(A(n)){for(e.pos++;y(e);)if(A(b(e),n.single))return e.start=t,!0;throw v(e,"Unclosed quote",n)}return!1}function _(e,t){const n=e.pos,o={attribute:0,expression:0,group:0};for(;y(e);){const n=g(e);if(o.expression)q(n,"expression")&&(o[n.context]+=n.open?1:-1);else{if(A(n)||T(n)||B(n)||N(n))break;if(q(n)){if(!t)break;if(n.open)o[n.context]++;else{if(!o[n.context])break;o[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function j(e){const t=e.pos;if(x(e,W)){let n=0;for(;y(e);){const t=b(e);if(q(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function L(e){let t=e.start,n=e.pos;return q(e.tokens[t],"expression",!0)&&t++,q(e.tokens[n-1],"expression",!1)&&n--,h(e,t,n)}function q(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function T(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function A(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function B(e){return Boolean(e&&"WhiteSpace"===e.type)}function O(e){return T(e,"equal")}function N(e){return Boolean(e&&"Repeater"===e.type)}function R(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function H(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function I(e){return T(e,"class")}function D(e){return q(e,"attribute",!0)}function P(e){return q(e,"attribute",!1)}function W(e){return q(e,"expression",!0)}function M(e){return q(e,"group",!0)}function F(e){return!e.name&&!e.value&&!e.attributes}function V(e){return T(e,"child")}function U(e){return T(e,"sibling")}function Q(e){return T(e,"climb")}function Z(e){return T(e,"close")}var G;function X(e){return!!e.eat(G.Escape)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function Y(e,t){return function(e,t){const n=e.pos;if((t.expression||t.attribute)&&e.eat(G.Dollar)&&e.eat(G.CurlyBracketOpen)){let t;e.start=e.pos;let o="";if(e.eatWhile(s)?(t=Number(e.current()),o=e.eat(G.Colon)?J(e):""):l(e.peek())&&(o=J(e)),e.eat(G.CurlyBracketClose))return{type:"Field",index:t,name:o,start:n,end:e.pos};throw e.error("Expecting }")}e.pos=n}(e,t)||function(e){const t=e.pos;if(e.eat(G.Dollar)&&e.eat(G.Hash))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(G.Dollar)){const n=e.pos-t;let o=!1,r=1,i=0;if(e.eat(G.At)){for(;e.eat(G.Climb);)i++;o=e.eat(G.Dash),e.start=e.pos,e.eatWhile(s)&&(r=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:n,reverse:o,base:r,parent:i,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(G.Asterisk)){e.start=e.pos;let n=1,o=!1;return e.eatWhile(s)?n=Number(e.current()):o=!0,{type:"Repeater",count:n,value:0,implicit:o,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(p))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const n=e.pos,o=t.expression;let r="";for(;!e.eof();){if(X(e)){r+=e.current();continue}const n=e.peek();if(n===G.Slash&&!t.quote&&!t.expression&&!t.attribute){const t=e.string.charCodeAt(e.pos-1),n=e.string.charCodeAt(e.pos+1);if(s(t)&&s(n)){r+=e.string[e.pos++];continue}}if(n===t.quote||n===G.Dollar||K(n,t))break;if(o){if(n===G.CurlyBracketOpen)t.expression++;else if(n===G.CurlyBracketClose){if(!(t.expression>o))break;t.expression--}}else if(!t.quote){if(!t.attribute&&!ie(n))break;if(ee(n,t)||te(n,t)||m(n)||ne(n))break}r+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:r,start:n,end:e.pos}}(e,t)||function(e){const t=oe(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(m(t))return{type:"Quote",single:t===G.SingleQuote,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=ne(t);if(n)return{type:"Bracket",open:re(t),context:n,start:e.pos++,end:e.pos}}(e)}function J(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(G.CurlyBracketOpen))t.push(e.pos);else if(e.eat(G.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function K(e,t){const n=oe(e);return!(!n||t.quote||t.expression||t.attribute&&"equal"!==n)}function ee(e,t){return p(e)&&!t.expression}function te(e,t){return e===G.Asterisk&&!t.attribute&&!t.expression}function ne(e){return e===G.RoundBracketOpen||e===G.RoundBracketClose?"group":e===G.SquareBracketOpen||e===G.SquareBracketClose?"attribute":e===G.CurlyBracketOpen||e===G.CurlyBracketClose?"expression":void 0}function oe(e){return(e===G.Child?"child":e===G.Sibling&&"sibling")||e===G.Climb&&"climb"||e===G.Dot&&"class"||e===G.Hash&&"id"||e===G.Slash&&"close"||e===G.Equals&&"equal"||void 0}function re(e){return e===G.CurlyBracketOpen||e===G.SquareBracketOpen||e===G.RoundBracketOpen}function ie(e){return u(e)||function(e){return 196===e||214==e||220===e||228===e||246===e||252===e}(e)||e===G.Dash||e===G.Colon||e===G.Excl}!function(e){e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Escape=92]="Escape",e[e.Equals=61]="Equals",e[e.SquareBracketOpen=91]="SquareBracketOpen",e[e.SquareBracketClose=93]="SquareBracketClose",e[e.Asterisk=42]="Asterisk",e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.Sibling=43]="Sibling",e[e.Child=62]="Child",e[e.Climb=94]="Climb",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote"}(G||(G={}));const ae={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},se={Literal:e=>e.value,Quote:e=>e.single?"'":'"',Bracket:e=>"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}",Operator:e=>ae[e.operator],Field:(e,t)=>null!=e.index?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):"",RepeaterPlaceholder(e,t){let n;for(let e=t.repeaters.length-1;e>=0;e--)if(t.repeaters[e].implicit){n=t.repeaters[e];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1;const o=t.repeaters.length-1,r=t.repeaters[o];if(r&&(n=e.reverse?e.base+r.count-r.value-1:e.base+r.value,e.parent)){const i=Math.max(0,o-e.parent);if(i!==o){const e=t.repeaters[i];n+=r.count*e.value}}let i=String(n);for(;i.length<e.size;)i="0"+i;return i},WhiteSpace:e=>e.value};function le(e,t){if(!se[e.type])throw new Error(`Unknown token ${e.type}`);return se[e.type](e,t)}const ue=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,ce=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function pe(e,t){let n=[];if(e.repeat){const o=e.repeat,r=Object.assign({},o);let i;r.count=r.implicit&&Array.isArray(t.text)?t.cleanText.length:r.count||1,t.repeaters.push(r);for(let o=0;o<r.count;o++){if(r.value=o,e.repeat=r,i=he(e)?fe(e,t):me(e,t),r.implicit&&!t.inserted){const e=xe(i),n=e&&ve(e);n&&ke(n,t.getText(r.value))}if(n=n.concat(i),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=o,r.implicit&&(t.inserted=!0)}else n=n.concat(he(e)?fe(e,t):me(e,t));return n}function me(e,t){let n=[];const o={type:"AbbreviationNode",name:e.name&&ge(e.name,t),value:e.value&&be(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let r=[o];for(const o of e.elements)n=n.concat(pe(o,t));if(e.attributes){o.attributes=[];for(const n of e.attributes)o.attributes.push(de(n,t))}return o.name||o.attributes||!o.value||o.value.some(ye)?o.children=n:r=r.concat(n),r}function fe(e,t){let n=[];for(const o of e.elements)n=n.concat(pe(o,t));return e.repeat&&(n=function(e,t){for(const n of e)n.repeat||(n.repeat=Object.assign({},t));return e}(n,e.repeat)),n}function de(e,t){let n,o=!1,r=!1,i=e.expression?"expression":"raw";const a=e.name&&ge(e.name,t);if(a&&"!"===a[0]&&(o=!0),a&&"."===a[a.length-1]&&(r=!0),e.value){const o=e.value.slice();if(A(o[0])){const e=o.shift();o.length&&xe(o).type===e.type&&o.pop(),i=e.single?"singleQuote":"doubleQuote"}else q(o[0],"expression",!0)&&(i="expression",o.shift(),q(xe(o),"expression",!1)&&o.pop());n=be(o,t)}return{name:r||o?a.slice(o?1:0,r?-1:void 0):a,value:n,boolean:r,implied:o,valueType:i,multiple:e.multiple}}function ge(e,t){let n="";for(let o=0;o<e.length;o++)n+=le(e[o],t);return n}function be(e,t){const n=[];let o="";for(let r,i=0;i<e.length;i++)r=e[i],ye(r)?(o&&(n.push(o),o=""),n.push(r)):o+=le(r,t);return o&&n.push(o),n}function he(e){return"TokenGroup"===e.type}function ye(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function xe(e){return e[e.length-1]}function ve(e){return e.children.length?ve(xe(e.children)):e}function ke(e,t){e.value?"string"==typeof xe(e.value)?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}function we(e,t){try{return function(e,t={}){let n,o=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter((e=>e.trim())):t.text);const r={type:"Abbreviation",children:fe(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var r;let i;if(o=!0,Array.isArray(t.text)){if(void 0!==e&&e>=0&&e<n.length)return n[e];i=void 0!==e?t.text[e]:t.text.join("\n")}else i=null!==(r=t.text)&&void 0!==r?r:"";return i},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!o){const e=ve(xe(r.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;ke(e,n),"a"===e.name&&t.href&&function(e,t){var n;let o="";ue.test(t)?(o=t,/\w+:/.test(o)||o.startsWith("//")||(o=`http://${o}`)):ce.test(t)&&(o=`mailto:${t}`);const r=null===(n=e.attributes)||void 0===n?void 0:n.find((e=>"href"===e.name));r?r.value||(r.value=[o]):(e.attributes||(e.attributes=[]),e.attributes.push({name:"href",value:[o],valueType:"doubleQuote"}))}(e,n)}}return r}(function(e,t={}){const n={tokens:o=e,start:0,pos:0,size:o.length};var o;const r=k(n,t);if(y(n))throw v(n,"Unexpected character");return r}("string"==typeof e?function(e){const t=new f(e),n=[],o={group:0,attribute:0,expression:0,quote:0};let r,i=0;for(;!t.eof();){if(i=t.peek(),r=Y(t,o),!r)throw t.error("Unexpected character");n.push(r),"Quote"===r.type?o.quote=i===o.quote?0:i:"Bracket"===r.type&&(o[r.context]+=r.open?1:-1)}return n}(e):e,t),t)}catch(t){throw t instanceof d&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}var $e,Ce;function Se(e,t){return function(e){const t=e.pos;if(e.eat(Ce.Dollar)&&e.eat(Ce.CurlyBracketOpen)){let n;e.start=e.pos;let o="";if(e.eatWhile(s)?(n=Number(e.current()),o=e.eat(Ce.Colon)?ze(e):""):l(e.peek())&&(o=ze(e)),e.eat(Ce.CurlyBracketClose))return{type:"Field",index:n,name:o,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(e.eat(Ce.Dash)&&e.eat(Ce.Dash))return e.start=t,e.eatWhile(Te),{type:"CustomProperty",value:e.current(),start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(Ce.Dash);const n=e.pos,o=e.eatWhile(s),r=e.pos;if(e.eat(Ce.Dot)){const t=e.eatWhile(s);o||t||(e.pos=r)}return e.pos===n&&(e.pos=t),e.pos!==t}(e)){e.start=t;const n=e.current();return e.start=e.pos,e.eat(Ce.Percent)||e.eatWhile(c),{type:"NumberValue",value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(Ce.Hash)){const n=e.pos;let o="",r="";if(e.eatWhile(qe)?(o=e.substring(n,e.pos),r=_e(e)):e.eat(Ce.Transparent)?(o="0",r=_e(e)||"0"):r=_e(e),o||r||e.eof()){const{r:n,g:i,b:a,a:s}=function(e,t){let n="0",o="0",r="0",i=Number(null!=t&&""!==t?t:1);if("t"===e)i=0;else switch(e.length){case 0:break;case 1:n=o=r=e+e;break;case 2:n=o=r=e;break;case 3:n=e[0]+e[0],o=e[1]+e[1],r=e[2]+e[2];break;default:n=(e+=e).slice(0,2),o=e.slice(2,4),r=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(o,16),b:parseInt(r,16),a:i}}(o,r);return{type:"ColorValue",r:n,g:i,b:a,a:s,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return Ee(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let o=!1;if(m(t)){for(e.pos++;!e.eof();){if(e.eat(t)){o=!0;break}e.pos++}return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(o?1:0)),quote:t===Ce.SingleQuote?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return e===Ce.RoundBracketOpen||e===Ce.RoundBracketClose}(t))return{type:"Bracket",open:t===Ce.RoundBracketOpen,start:e.pos++,end:e.pos}}(e)||je(e)||function(e){const t=e.pos;if(e.eatWhile(p))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;if(e.eat(Le)?e.eatWhile(n?Te:Ae):e.eat(c)?e.eatWhile(t?Ae:Te):(e.eat(Ce.Dot),e.eatWhile(Ae)),n!==e.pos)return e.start=n,Ee(e,e.start=n)}(e,t)}function ze(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(Ce.CurlyBracketOpen))t.push(e.pos);else if(e.eat(Ce.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function Ee(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function _e(e){const t=e.pos;return e.eat(Ce.Dot)?(e.start=t,e.eatWhile(s)?e.current():"1"):""}function je(e){const t=(n=e.peek())===Ce.Sibling&&$e.Sibling||n===Ce.Excl&&$e.Important||n===Ce.Comma&&$e.ArgumentDelimiter||n===Ce.Colon&&$e.PropertyDelimiter||n===Ce.Dash&&$e.ValueDelimiter||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function Le(e){return e===Ce.At||e===Ce.Dollar}function qe(e){return s(e)||l(e,65,70)}function Te(e){return u(e)||e===Ce.Dash}function Ae(e){return c(e)||e===Ce.Percent||e===Ce.Slash}function Be(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function Oe(e,t){let n=0,o=0;for(;t.length;){const e=(r=t)[r.length-1];if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,o||(o=e.end),t.pop()}var r;n!==o&&t.push(Ee(e,n,o))}function Ne(e){return e.tokens[e.pos]}function Re(e){return e.pos<e.size}function He(e,t){return!!t(Ne(e))&&(e.pos++,!0)}function Ie(e,t,n=Ne(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function De(e,t){let n,o,r=!1;const i=[],a=Ne(e),s=!!t.value;for(s||!Me(a)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&Me(t)&&"Bracket"===n.type}(e)||(e.pos++,n=a.value,He(e,et)),s&&He(e,Qe);Re(e);)if(He(e,Je))r=!0;else if(o=Pe(e,s))i.push(o);else if(!He(e,Ye))break;if(n||i.length||r)return{name:n,value:i,important:r}}function Pe(e,t){const n=[];let o,r;for(;Re(e);)if(o=Ne(e),Ke(o))e.pos++,Me(o)&&(r=We(e))?n.push({type:"FunctionCall",name:o.value,arguments:r}):n.push(o);else{if(!(et(o)||t&&Qe(o)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function We(e){const t=e.pos;if(He(e,Ve)){const n=[];let o;for(;Re(e)&&!He(e,Ue);)if(o=Pe(e,!0))n.push(o);else if(!He(e,Qe)&&!He(e,Xe))throw Ie(e,"Unexpected token");return e.start=t,n}}function Me(e){return e&&"Literal"===e.type}function Fe(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function Ve(e){return Fe(e,!0)}function Ue(e){return Fe(e,!1)}function Qe(e){return e&&"WhiteSpace"===e.type}function Ze(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function Ge(e){return Ze(e,$e.Sibling)}function Xe(e){return Ze(e,$e.ArgumentDelimiter)}function Ye(e){return Xe(e)}function Je(e){return Ze(e,$e.Important)}function Ke(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type||"CustomProperty"===e.type}function et(e){return Ze(e,$e.PropertyDelimiter)||Ze(e,$e.ValueDelimiter)}function tt(e,t){try{const n="string"==typeof e?function(e,t){let n,o=0;const r=new f(e),i=[];for(;!r.eof();){if(n=Se(r,0===o&&!t),!n)throw r.error("Unexpected character");if("Bracket"===n.type&&(!o&&n.open&&Oe(r,i),o+=n.open?1:-1,o<0))throw r.error("Unexpected bracket",n.start);i.push(n),Be(n)&&(n=je(r))&&i.push(n)}return i}(e,t&&t.value):e;return function(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),o=[];let r;for(;Re(n);)if(r=De(n,t))o.push(r);else if(!He(n,Ge))throw Ie(n,"Unexpected token");return o}(n,t)}catch(t){throw t instanceof d&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function nt(e,t,n){if(e&&t){e.length&&n&&rt(e,n);for(const n of t)rt(e,n);return e}const o=e||t;return o&&o.slice()}function ot(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),"expression"!==e.valueType&&(e.valueType=t.valueType),e}function rt(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function it(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];if(t(o))return o;const r=it(o,t);if(r)return r}}function at(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function st(e){return"AbbreviationNode"===e.type}function lt(e,t,n){let o=[];for(const n of e.children){const e=t(n);if(e){o=o.concat(e.children);const r=at(e);st(r.node)&&(r.node.children=r.node.children.concat(lt(n,t)))}else o.push(n),n.children=lt(n,t)}return e.children=o}!function(e){e.Sibling="+",e.Important="!",e.ArgumentDelimiter=",",e.ValueDelimiter="-",e.PropertyDelimiter=":"}($e||($e={})),function(e){e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Colon=58]="Colon",e[e.Comma=44]="Comma",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Percent=37]="Percent",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Sibling=43]="Sibling",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Transparent=116]="Transparent",e[e.Slash=47]="Slash"}(Ce||(Ce={}));const ut="{",ct="}";function pt(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function mt(e,t){vt(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function ft(e,t){const n=t.split(/\r\n|\r|\n/g);for(let t=0,o=n.length-1;t<=o;t++)mt(e,n[t]),t!==o&&dt(e,!0)}function dt(e,t){const n=e.options["output.baseIndent"];mt(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){mt(e,e.options["output.indent"].repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function gt(e,t,n){vt(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function bt(e,t){return kt(e,t.options["output.attributeCase"])}function ht(e,t,n){return"expression"===e.valueType?n?ut:ct:"single"===t.options["output.attributeQuotes"]?"'":'"'}function yt(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function xt(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?xt(e.name,t):Boolean(e.value&&!e.attributes)}function vt(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function kt(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const wt={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function $t(e,t,n){const o=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(st(n))return n}}(t),r=n.context?n.context.name:"",i=((o?o.name:r)||"").toLowerCase();e.name=wt[i]||(xt(i,n)?"span":"div")}const Ct={ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]}},St=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function zt(e,t){return Math.floor(Math.random()*(t-e)+e)}function Et(e,t){const n=e.length,o=Math.min(n,t),r=[];for(;r.length<o;){const t=e[zt(0,n)];r.includes(t)||r.push(t)}return r}function _t(e,t){var n;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||"?!..."[zt(0,4)])}function jt(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let o=0;o=t>3&&t<=6?zt(0,1):t>6&&t<=12?zt(0,2):zt(1,4);for(let r,i=0;i<o;i++)r=zt(0,t-2),n.test(e[r])||(e[r]+=",");return e}function Lt(e,t,n){const o=[];let r,i=0;for(n&&e.common&&(r=e.common.slice(0,t),i+=r.length,o.push(_t(jt(r),".")));i<t;)r=Et(e.words,Math.min(zt(2,30),t-i)),i+=r.length,o.push(_t(jt(r)));return o.join(" ")}function qt(e){return"select"!==e.name}const Tt=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,At=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,Bt=e=>/^[a-z]\-/i.test(e),Ot=e=>/^[a-z]/i.test(e);function Nt(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=Wt(n.value);break}e._bem=Rt(t)}return e._bem}function Rt(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:It(t)}}function Ht(e,t=0,n){let o=Math.max(e.length-t,0);do{const t=e[o];if(t){const e=Nt(t);if(e.block)return e.block}}while(0<o--);if(n){const e=function(e){return e._bem||(e._bem=Rt(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function It(e){return Dt(e,Bt)||Dt(e,Ot)||void 0}function Dt(e,t){for(const n of e){if(Tt.test(n)||At.test(n))break;if(t(n))return n}}function Pt(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function Wt(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function Mt(e,t,n){return!!e&&n.indexOf(e)===t}function Ft(e){if("label"===e.name){const t=it(e,(e=>"input"===e.name||"textarea"===e.name));t&&(e.attributes&&(e.attributes=e.attributes.filter((e=>!("for"===e.name&&Vt(e))))),t.attributes&&(t.attributes=t.attributes.filter((e=>!("id"===e.name&&Vt(e))))))}}function Vt(e){if(!e.value)return!0;if(1===e.value.length){const t=e.value[0];if(t&&"string"!=typeof t&&!t.name)return!0}return!1}function Ut(e,t,n){const o=(e,o,i)=>{const{parent:a,current:s}=n;n.parent=s,n.current=e,t(e,o,i,n,r),n.current=s,n.parent=a},r=(e,t,r)=>{n.ancestors.push(n.current),o(e,t,r),n.ancestors.pop()};e.children.forEach(o)}function Qt(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:pt(e.options)}}const Zt=[{type:"Field",index:0,name:""}];function Gt(e){return!!e&&!e.name&&!e.attributes}function Xt(e,t){return!!e&&xt(e,t)}function Yt(e){return"object"==typeof e&&"Field"===e.type}function Jt(e,t){const{out:n}=t;let o=-1;for(const r of e)"string"==typeof r?ft(n,r):(gt(n,t.field+r.index,r.name),r.index>o&&(o=r.index));-1!==o&&(t.field+=o+1)}function Kt(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}var en;function tn(e){const t=[],n={pos:0,text:e};let o,r=n.pos,i=n.pos;for(;n.pos<n.text.length;)i=n.pos,(o=nn(n))?(r!==n.pos&&t.push(e.slice(r,i)),t.push(o),r=n.pos):n.pos++;return r!==n.pos&&t.push(e.slice(r)),t}function nn(e){if(on(e)===en.Start){const t=++e.pos;let n=t,o=t,r=1;for(;e.pos<e.text.length;){const i=on(e);if(rn(i)){for(n=e.pos;an(on(e));)e.pos++;o=e.pos}else{if(i===en.Start)r++;else if(i===en.End&&0==--r)return{before:e.text.slice(t,n),after:e.text.slice(o,e.pos++),name:e.text.slice(n,o)};e.pos++}}}}function on(e,t=e.pos){return e.text.charCodeAt(t)}function rn(e){return e>=65&&e<=90}function an(e){return rn(e)||e>47&&e<58||e===en.Underscore||e===en.Dash}function sn(e,t){const{comment:n}=t;if(!(n.enabled&&n.trigger&&e.name&&e.attributes))return!1;for(const t of e.attributes)if(t.name&&n.trigger.includes(t.name))return!0;return!1}function ln(e,t,n){const o={},{out:r}=n;for(const t of e.attributes)t.name&&t.value&&(o[t.name.toUpperCase()]=t.value);for(const e of t)"string"==typeof e?ft(r,e):o[e.name]&&(ft(r,e.before),Jt(o[e.name],n),ft(r,e.after))}!function(e){e[e.Start=91]="Start",e[e.End=93]="End",e[e.Underscore=95]="Underscore",e[e.Dash=45]="Dash"}(en||(en={}));const un=/^<([\w\-:]+)[\s>]/,cn=new Set(["for","while","of","async","await","const","let","var","continue","break","debugger","do","export","import","in","instanceof","new","return","switch","this","throw","try","catch","typeof","void","with","yield"]);function pn(e,t){const n=Qt(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?tn(t["comment.before"]):void 0,after:t["comment.after"]?tn(t["comment.after"]):void 0}}(t),Ut(e,mn,n),n.out.value}function mn(e,t,n,o,r){const{out:i,config:a}=o,s=gn(e,t,n,o),l=function(e){const{config:t,parent:n}=e;return!n||Gt(n)||n.name&&t.options["output.formatSkip"].includes(n.name)?0:1}(o);if(i.level+=l,s&&dt(i,!0),e.name){const t=function(e,t){return kt(e,t.options["output.tagCase"])}(e.name,a);if(function(e,t){sn(e,t)&&t.comment.before&&ln(e,t.comment.before,t)}(e,o),ft(i,`<${t}`),e.attributes)for(const t of e.attributes)Kt(t)&&fn(t,o);if(!e.selfClosing||e.children.length||e.value){if(ft(i,">"),!dn(e,o,r)){if(e.value){const t=e.value.some(bn)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=un.exec(e[0]);if((null==n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,a);t&&dt(o.out,++i.level),Jt(e.value,o),t&&dt(o.out,--i.level)}if(e.children.forEach(r),!e.value&&!e.children.length){const t=a.options["output.formatLeafNode"]||a.options["output.formatForce"].includes(e.name);t&&dt(o.out,++i.level),Jt(Zt,o),t&&dt(o.out,--i.level)}}ft(i,`</${t}>`),function(e,t){sn(e,t)&&t.comment.after&&ln(e,t.comment.after,t)}(e,o)}else ft(i,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(a)}>`)}else!dn(e,o,r)&&e.value&&(Jt(e.value,o),e.children.forEach(r));if(s&&t===n.length-1&&o.parent){const e=Gt(o.parent)?0:1;dt(i,i.level-e)}i.level-=l}function fn(e,t){const{out:n,config:o}=t;if(e.name){const r=o.options["markup.attributes"],i=o.options["markup.valuePrefix"];let{name:a,value:s}=e,l=ht(e,o,!0),u=ht(e,o);r&&(a=hn(a,r,e.multiple)||a),a=bt(a,o),o.options["jsx.enabled"]&&e.multiple&&(l=ut,u=ct);const c=i?hn(e.name,i,e.multiple):null;if(c&&1===(null==s?void 0:s.length)&&"string"==typeof s[0]){const e=s[0];s=[yn(e)?`${c}.${e}`:`${c}['${e}']`],o.options["jsx.enabled"]&&(l=ut,u=ct)}yt(e,o)&&!s?o.options["output.compactBoolean"]||(s=[a]):s||(s=Zt),ft(n," "+a),s?(ft(n,"="+l),Jt(s,t),ft(n,u)):"html"!==o.options["output.selfClosingStyle"]&&ft(n,"="+l+u)}}function dn(e,t,n){if(e.value&&e.children.length){const o=e.value.findIndex(Yt);if(-1!==o){Jt(e.value.slice(0,o),t);const r=t.out.line;let i=o+1;return e.children.forEach(n),t.out.line!==r&&"string"==typeof e.value[i]&&ft(t.out,e.value[i++].trimLeft()),Jt(e.value.slice(i),t),!0}}return!1}function gn(e,t,n,o){const{config:r,parent:i}=o;if(!r.options["output.format"])return!1;if(0===t&&!i)return!1;if(i&&Gt(i)&&1===n.length)return!1;if(Gt(e)&&(Gt(n[t-1])||Gt(n[t+1])||e.value.some(bn)||e.value.some(Yt)&&e.children.length))return!0;if(xt(e,r)){if(0===t){for(let e=0;e<n.length;e++)if(!xt(n[e],r))return!0}else if(!xt(n[t-1],r))return!0;if(r.options["output.inlineBreak"]){let e=1,o=t,i=t;for(;Xt(n[--o],r);)e++;for(;Xt(n[++i],r);)e++;if(e>=r.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(gn(e.children[t],t,e.children,o))return!0;return!1}return!0}function bn(e){return"string"==typeof e&&/\r|\n/.test(e)}function hn(e,t,n){return n&&t[`${e}*`]||t[e]}function yn(e){return!cn.has(e)&&/^[a-zA-Z_$][\w_$]*$/.test(e)}function xn(e,t,n){const o=Qt(t);return o.options=n||{},Ut(e,vn,o),o.out.value}function vn(e,t,n,o,r){const{out:i,options:a}=o,{primary:s,secondary:l}=function(e){const t=[],n=[];if(e.attributes)for(const o of e.attributes)kn(o)?t.push(o):n.push(o);return{primary:t,secondary:n}}(e),u=o.parent?1:0;i.level+=u,function(e,t,n,o){return!(!o.parent&&0===t)&&!Gt(e)}(e,t,0,o)&&dt(i,!0),!e.name||"div"===e.name&&s.length||ft(i,(a.beforeName||"")+e.name+(a.afterName||"")),function(e,t){for(const n of e)n.value&&("class"===n.name?(ft(t.out,"."),Jt(n.value.map((e=>"string"==typeof e?e.replace(/\s+/g,"."):e)),t)):(ft(t.out,"#"),Jt(n.value,t)))}(s,o),function(e,t){if(e.length){const{out:n,config:o,options:r}=t;r.beforeAttribute&&ft(n,r.beforeAttribute);for(let i=0;i<e.length;i++){const a=e[i];ft(n,bt(a.name||"",o)),yt(a,o)&&!a.value?!o.options["output.compactBoolean"]&&r.booleanValue&&ft(n,"="+r.booleanValue):(ft(n,"="+ht(a,o,!0)),Jt(a.value||Zt,t),ft(n,ht(a,o))),i!==e.length-1&&r.glueAttribute&&ft(n,r.glueAttribute)}r.afterAttribute&&ft(n,r.afterAttribute)}}(l.filter(Kt),o),!e.selfClosing||e.value||e.children.length?(function(e,t){if(!e.value&&e.children.length)return;const n=e.value||Zt,o=function(e){const t=[];let n=[];for(const o of e)if("string"==typeof o){const e=o.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(o);return n.length&&t.push(n),t}(n),{out:r,options:i}=t;if(1===o.length)(e.name||e.attributes)&&mt(r," "),Jt(n,t);else{const e=[];let n=0;for(const t of o){const o=wn(t);e.push(o),o>n&&(n=o)}r.level++;for(let a=0;a<o.length;a++)dt(r,!0),i.beforeTextLine&&mt(r,i.beforeTextLine),Jt(o[a],t),i.afterTextLine&&(mt(r," ".repeat(n-e[a])),mt(r,i.afterTextLine));r.level--}}(e,o),e.children.forEach(r)):o.options.selfClose&&ft(i,o.options.selfClose),i.level-=u}function kn(e){return"class"===e.name||"id"===e.name}function wn(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}const $n={html:pn,haml:function(e,t){return xn(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return xn(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return xn(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function Cn(e,t,n){!function(e,t,n){!e.name&&e.attributes&&$t(e,t,n)}(e,t,n),function(e,t){if(!e.attributes)return;const n=[],o={};for(const r of e.attributes)if(r.name){const e=r.name;if(e in o){const n=o[e];"class"===e?n.value=nt(n.value,r.value," "):ot(n,r,t)}else n.push(o[e]=Object.assign({},r))}else n.push(r);e.attributes=n}(e,n),function(e,t,n){let o;if(e.name&&(o=e.name.match(St))){const r=Ct[o[1]]||Ct.latin,i=o[2]?Math.max(1,Number(o[2])):30,a=zt(i,o[3]?Math.max(i,Number(o[3].slice(1))):i),s=e.repeat||function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("AbbreviationNode"===n.type&&n.repeat)return n.repeat}}(t);e.name=e.attributes=void 0,e.value=[Lt(r,a,!s||0===s.value)],e.repeat&&t.length>1&&$t(e,t,n)}}(e,t,n),"xsl"===n.syntax&&function(e){var t;"xsl:variable"!==(t=e.name)&&"xsl:with-param"!==t||!e.attributes||!e.children.length&&!e.value||(e.attributes=e.attributes.filter(qt))}(e),"markup"===n.type&&Ft(e),n.options["bem.enabled"]&&function(e,t,n){!function(e){const t=Nt(e),n=[];for(const e of t.classNames){const t=e.indexOf("_");t>0&&!e.startsWith("-")?(n.push(e.slice(0,t)),n.push(e.slice(t))):n.push(e)}n.length&&(t.classNames=n.filter(Mt),t.block=It(t.classNames),Pt(e,t.classNames.join(" ")))}(e),function(e,t,n){const o=Nt(e),r=[],{options:i}=n,a=t.slice(1).concat(e);for(let e of o.classNames){let t,o="";const s=e;(t=e.match(Tt))&&(o=Ht(a,t[1].length,n.context)+i["bem.element"]+t[2],r.push(o),e=e.slice(t[0].length)),(t=e.match(At))&&(o||(o=Ht(a,t[1].length),r.push(o)),r.push(`${o}${i["bem.modifier"]}${t[2]}`),e=e.slice(t[0].length)),e===s&&r.push(s)}const s=r.filter(Mt);s.length&&Pt(e,s.join(" "))}(e,t,n)}(e,t,n)}var Sn;!function(e){e.Raw="Raw",e.Property="Property"}(Sn||(Sn={}));const zn=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,En={value:!0};function jn(e,t){const n=t.match(zn);if(n){const t={},o=n[2]?n[2].split("|").map(qn):[];for(const e of o)for(const n of e)An(n,t);return{type:Sn.Property,key:e,property:n[1],value:o,keywords:t,dependencies:[]}}return{type:Sn.Raw,key:e,value:t}}function Ln(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function qn(e){return tt(e.trim(),En)[0].value}function Tn(e){return e.type===Sn.Property}function An(e,t){for(const n of e.value)if("Literal"===n.type)t[n.value]=n;else if("FunctionCall"===n.type)t[n.name]=n;else if("Field"===n.type){const e=n.name.trim();e&&(t[e]={type:"Literal",value:e})}}function Bn(e,t,n=!1){if((e=e.toLowerCase())===(t=t.toLowerCase()))return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const o=e.length,r=t.length;if(!n&&o>r)return 0;const i=Math.min(o,r),a=Math.max(o,r);let s=1,l=1,u=a,c=0,p=0,m=!1,f=!1;for(;s<o;){for(c=e.charCodeAt(s),m=!1,f=!1;l<r;){if(p=t.charCodeAt(l),c===p){m=!0,u+=a-(f?s:l);break}f=45===p,l++}if(!m){if(!n)return 0;break}s++}const d=a-i;return u*(s/a)/(On(a)-On(d))}function On(e){return e*(e+1)/2}function Nn(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&Hn(e.r)&&Hn(e.g)&&Hn(e.b)?In:Dn;return"#"+n(e.r)+n(e.g)+n(e.b)}(e,t):function(e){const t=[e.r,e.g,e.b];return 1!==e.a&&t.push(Rn(e.a,8)),`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function Rn(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function Hn(e){return!(e%17)}function In(e){return(e>>4).toString(16)}function Dn(e){return function(e,t){for(;e.length<2;)e="0"+e;return e}(e.toString(16))}const Pn={Global:"@@global",Section:"@@section",Property:"@@property",Value:"@@value"};function Wn(e,t,n){const o=n.options["stylesheet.json"];if(e.name)ft(t,(o?e.name.replace(/\-(\w)/g,((e,t)=>t.toUpperCase())):e.name)+n.options["stylesheet.between"]),e.value.length?function(e,t,n){const o=n.options["stylesheet.json"],r=o?function(e){if(1===e.value.length){const t=e.value[0];if(1===t.value.length&&"NumberValue"===t.value[0].type)return t.value[0]}}(e):null;if(!r||r.unit&&"px"!==r.unit){const r=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(n);o&&mt(t,r);for(let o=0;o<e.value.length;o++)0!==o&&mt(t,", "),Fn(e.value[o],t,n);o&&mt(t,r)}else mt(t,String(r.value))}(e,t,n):gt(t,0,""),o?mt(t,","):(Mn(e,t,!0),mt(t,n.options["stylesheet.after"]));else{for(const o of e.value)for(const e of o.value)Vn(e,t,n);Mn(e,t,e.value.length>0)}}function Mn(e,t,n){e.important&&(n&&mt(t," "),mt(t,"!important"))}function Fn(e,t,n){for(let o=0,r=-1;o<e.value.length;o++){const i=e.value[o];0===o||"Field"===i.type&&i.start===r||mt(t," "),Vn(i,t,n),r=i.end}}function Vn(e,t,n){if("ColorValue"===e.type)mt(t,Nn(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type||"CustomProperty"===e.type)ft(t,e.value);else if("NumberValue"===e.type)ft(t,Rn(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";ft(t,n+e.value+n)}else if("Field"===e.type)gt(t,e.index,e.name);else if("FunctionCall"===e.type){mt(t,e.name+"(");for(let o=0;o<e.arguments.length;o++)o&&mt(t,", "),Fn(e.arguments[o],t,n);mt(t,")")}}const Un="lg";function Qn(e,t,n){if(!function(e,t){let n=null;const o=1===e.value.length?e.value[0]:null;if(o&&1===o.value.length){const e=o.value[0];"FunctionCall"===e.type&&e.name===Un&&(n=e)}return!(!n&&e.name!==Un)&&(n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[Jn(eo(0,""))]},t.context||(e.name="background-image"),e.value=[Jn(n)],!0)}(e,n)){const o=n.options["stylesheet.fuzzySearchMinScore"];if(oo(n)){const r=n.context.name,i=t.find((e=>e.type===Sn.Property&&e.property===r));Zn(e,n,i,o),e.snippet=i}else if(e.name){const r=Gn(e.name,t,o,!0);if(e.snippet=r,r){const t=r.type===Sn.Property?function(e,t,n){const o=function(e,t){for(let n=0,o=0;n<e.length;n++){if(o=t.indexOf(e[n],o),-1===o)return e.slice(n);o++}return""}(e.name,t.key);if(o){if(e.value.length)return null;const r=Yn(o,n,t);if(!r)return null;e.value.push(Jn(r))}if(e.name=t.property,e.value.length)Zn(e,n,t);else if(t.value.length){const o=t.value[0];e.value=1===t.value.length||o.some(to)?o:o.map((e=>no(e,n)))}return e}(e,r,n):function(e,t){let n,o=0;const r=/\$\{(\d+)(:[^}]+)?\}/g,i=e.value[0],a=[];for(;n=r.exec(t.value);)o!==n.index&&a.push(Kn(t.value.slice(o,n.index))),o=n.index+n[0].length,i&&i.value.length?a.push(i.value.shift()):a.push(eo(Number(n[1]),n[2]?n[2].slice(1):""));const s=t.value.slice(o);return s&&a.push(Kn(s)),e.name=void 0,e.value=[Jn(...a)],e}(e,r);if(t)e=t;else if(n.options["stylesheet.strictMatch"])return null}}}return(e.name||n.context)&&function(e,t){const n=t.options["stylesheet.unitAliases"],o=t.options["stylesheet.unitless"];for(const r of e.value)for(const i of r.value)"NumberValue"===i.type&&(i.unit?i.unit=n[i.unit]||i.unit:0===i.value||o.includes(e.name)||(i.unit=i.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,n),e}function Zn(e,t,n,o){for(const r of e.value){const e=[];for(const i of r.value)if("Literal"===i.type)e.push(Yn(i.value,t,n,o)||i);else if("FunctionCall"===i.type){const r=Yn(i.name,t,n,o);r&&"FunctionCall"===r.type?e.push(Object.assign(Object.assign({},r),{arguments:i.arguments.concat(r.arguments.slice(i.arguments.length))})):e.push(i)}else e.push(i);r.value=e}}function Gn(e,t,n=0,o=!1){let r=null,i=0;for(const n of t){const t=Bn(e,Xn(n),o);if(1===t)return n;t&&t>=i&&(i=t,r=n)}return i>=n?r:null}function Xn(e){return"string"==typeof e?e:e.key}function Yn(e,t,n,o){let r;if(n){if(r=Gn(e,Object.keys(n.keywords),o))return n.keywords[r];for(const t of n.dependencies)if(r=Gn(e,Object.keys(t.keywords),o))return t.keywords[r]}return(r=Gn(e,t.options["stylesheet.keywords"],o))?Kn(r):null}function Jn(...e){return{type:"CSSValue",value:e}}function Kn(e){return{type:"Literal",value:e}}function eo(e,t){return{type:"Field",index:e,name:t}}function to(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(to))return!0;return!1}function no(e,t,n={index:1}){let o=[];for(const r of e.value)switch(r.type){case"ColorValue":o.push(eo(n.index++,Nn(r,t.options["stylesheet.shortHex"])));break;case"Literal":o.push(eo(n.index++,r.value));break;case"NumberValue":o.push(eo(n.index++,`${r.value}${r.unit}`));break;case"StringValue":const e="single"===r.quote?"'":'"';o.push(eo(n.index++,e+r.value+e));break;case"FunctionCall":o.push(eo(n.index++,r.name),Kn("("));for(let e=0,i=r.arguments.length;e<i;e++)o=o.concat(no(r.arguments[e],t,n).value),e!==i-1&&o.push(Kn(", "));o.push(Kn(")"));break;default:o.push(r)}return Object.assign(Object.assign({},e),{value:o})}function oo(e){return!(!e.context||e.context.name!==Pn.Value&&e.context.name.startsWith("@@"))}const ro={markup:"html",stylesheet:"css"},io={type:"markup",syntax:"html",variables:{lang:"en",locale:"en-US",charset:"UTF-8",indentation:"\t",newline:"\n"},snippets:{},options:{inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"\t","output.baseIndent":"","output.newline":"\n","output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0,"stylesheet.strictMatch":!1}},ao={markup:{snippets:so({a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:refresh":"meta[http-equiv=refresh content='${1:5}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]","script:module":"script[type=module src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1}]","tarea:c|textarea:cols":"textarea[name=${1} id=${1} cols=${2:30}]","tarea:r|textarea:rows":"textarea[name=${1} id=${1} rows=${3:10}]","tarea:cr|textarea:cols:rows":"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:b|button:b|button:button":"button[type=button]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command",data:"data[value]",meter:"meter[value]",time:"time[datetime]","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:so({"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0,"markup.attributes":{class:"className","class*":"styleName",for:"htmlFor"},"markup.valuePrefix":{"class*":"styles"}}},vue:{options:{"markup.attributes":{"class*":":class"}}},svelte:{options:{"jsx.enabled":!0}},pug:{snippets:so({"!!!":"{doctype html}"})},stylesheet:{snippets:so({"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${2});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bbs:"border-block-start",bbe:"border-block-end",bis:"border-inline-start",bie:"border-inline-end",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}","bg:n":"background: none",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:${1:#fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bs:"block-size",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cg:"column-gap",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|contents|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",g:"gap",gtc:"grid-template-columns:repeat(${0})|minmax()",gtr:"grid-template-rows:repeat(${0})|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",is:"inline-size",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",mbs:"margin-block-start",mbe:"margin-block-end",mis:"margin-inline-start",mie:"margin-inline-end",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width:thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",pbs:"padding-block-start",pbe:"padding-block-end",pis:"padding-inline-start",pie:"padding-inline-end",spbs:"scroll-padding-block-start",spbe:"scroll-padding-block-end",spis:"scroll-padding-inline-start",spie:"scroll-padding-inline-end",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rg:"row-gap",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub","w|wid":"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wido:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"})},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function so(e){const t={};return Object.keys(e).forEach((n=>{for(const o of n.split("|"))t[o]=e[n]})),t}function lo(e={},t={}){const n=e.type||"markup",o=e.syntax||ro[n];return Object.assign(Object.assign(Object.assign({},io),e),{type:n,syntax:o,variables:uo(n,o,"variables",e,t),snippets:uo(n,o,"snippets",e,t),options:uo(n,o,"options",e,t)})}function uo(e,t,n,o,r={}){const i=ao[e],a=r[e],s=ao[t],l=r[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},io[n]),i&&i[n]),s&&s[n]),a&&a[n]),l&&l[n]),o[n])}function co(e,t=0){return{text:e,start:t,pos:e.length}}function po(e){return e.pos===e.start}function mo(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function fo(e){if(!po(e))return e.text.charCodeAt(--e.pos)}function go(e,t){if(po(e))return!1;const n="function"==typeof t?t(mo(e)):t===mo(e);return n&&e.pos--,!!n}function bo(e,t){const n=e.pos;for(;go(e,t););return e.pos<n}var ho,yo;function xo(e){return e===ho.SingleQuote||e===ho.DoubleQuote}!function(e){e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Escape=92]="Escape"}(ho||(ho={})),function(e){e[e.SquareL=91]="SquareL",e[e.SquareR=93]="SquareR",e[e.RoundL=40]="RoundL",e[e.RoundR=41]="RoundR",e[e.CurlyL=123]="CurlyL",e[e.CurlyR=125]="CurlyR"}(yo||(yo={}));const vo={[yo.SquareL]:yo.SquareR,[yo.RoundL]:yo.RoundR,[yo.CurlyL]:yo.CurlyR};var ko;function wo(e){const t=e.pos;if(!go(e,ko.AngleRight))return!1;let n=!1;for(go(e,ko.Slash);!po(e);){if(bo(e,Eo),So(e)){if(go(e,ko.Slash)){n=go(e,ko.AngleLeft);break}if(go(e,ko.AngleLeft)){n=!0;break}if(go(e,Eo))continue;if(go(e,ko.Equals)){if(So(e))continue;break}if(Co(e)){n=!0;break}break}if(!$o(e))break}return e.pos=t,n}function $o(e){return function(e){const t=e.pos;return!!(function(e){const t=e.pos,n=fo(e);if(xo(n))for(;!po(e);)if(fo(e)===n&&mo(e)!==ho.Escape)return!0;return e.pos=t,!1}(e)&&go(e,ko.Equals)&&So(e))||(e.pos=t,!1)}(e)||Co(e)}function Co(e){const t=e.pos,n=[];for(;!po(e);){const t=mo(e);if(Lo(t))n.push(t);else if(jo(t)){if(n.pop()!==vo[t])break}else if(!_o(t))break;e.pos--}return!(t===e.pos||!go(e,ko.Equals)||!So(e))||(e.pos=t,!1)}function So(e){return bo(e,zo)}function zo(e){return e===ko.Colon||e===ko.Dash||function(e){return(e&=-33)>=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function Eo(e){return e===ko.Space||e===ko.Tab}function _o(e){return!isNaN(e)&&e!==ko.Equals&&!Eo(e)&&!xo(e)}function jo(e){return e===yo.CurlyL||e===yo.RoundL||e===yo.SquareL}function Lo(e){return e===yo.CurlyR||e===yo.RoundR||e===yo.SquareR}!function(e){e[e.Tab=9]="Tab",e[e.Space=32]="Space",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Equals=61]="Equals",e[e.AngleLeft=60]="AngleLeft",e[e.AngleRight=62]="AngleRight"}(ko||(ko={}));const qo=e=>e.charCodeAt(0),To="#.*:$-_!@%^+>/".split("").map(qo),Ao={type:"markup",lookAhead:!0,prefix:""};function Bo(e,t,n){const o=e.pos;if(go(e,t))for(;!po(e);){if(go(e,n))return!0;e.pos--}return e.pos=o,!1}function Oo(e,t){const n=e.pos;let o=!1;for(let n=t.length-1;n>=0&&!po(e)&&go(e,t[n]);n--)o=0===n;return o||(e.pos=n),o}function No(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||To.includes(e)}function Ro(e,t){return e===yo.RoundL||"markup"===t&&(e===yo.SquareL||e===yo.CurlyL)}function Ho(e,t){return e===yo.RoundR||"markup"===t&&(e===yo.SquareR||e===yo.CurlyR)}function Io(e,t){const n=lo(t);return"stylesheet"===n.type?function(e,t){return function(e,t){var n;const o=pt(t.options),r=t.options["output.format"];(null===(n=t.context)||void 0===n?void 0:n.name)===Pn.Section&&(e=e.filter((e=>e.snippet)));for(let n=0;n<e.length;n++)r&&0!==n&&dt(o,!0),Wn(e[n],o,t);return o.value}(function(e,t){var n;const o=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||function(e){const t=[];for(const n of Object.keys(e))t.push(jn(n,e[n]));return function(e){e=e.slice().sort(Ln);const t=[];let n;for(const o of e.filter(Tn)){for(;t.length;){if(n=t[t.length-1],o.property.startsWith(n.property)&&45===o.property.charCodeAt(n.property.length)){n.dependencies.push(o),t.push(o);break}t.pop()}t.length||t.push(o)}return e}(t)}(t.snippets),r=[];t.cache&&(t.cache.stylesheetSnippets=o),"string"==typeof e&&(e=tt(e,{value:oo(t)}));const i=function(e,t){if(t.context){if(t.context.name===Pn.Section)return e.filter((e=>e.type===Sn.Raw));if(t.context.name===Pn.Property)return e.filter((e=>e.type===Sn.Property))}return e}(o,t);for(const n of e){const e=Qn(n,i,t);e&&r.push(e)}return r}(e,t),t)}(e,n):function(e,t){return function(e,t){return($n[t.syntax]||pn)(e,t)}(function(e,t){let n;if("string"==typeof e){const o=Object.assign({},t);t.options["jsx.enabled"]&&(o.jsx=!0),t.options["markup.href"]&&(o.href=!0),e=we(e,o),n=t.text,t.text=void 0}return e=function(e,t){const n=[],o=t.options["output.reverseAttributes"],{warn:r}=t,i=e=>{const a=e.name&&t.snippets[e.name];if(!a||n.includes(a))return null;let s;try{s=we(a,t)}catch(e){return null==r||r(`Unable to parse "${a}" snippet`,e),null}n.push(a),lt(s,i),n.pop();for(const t of s.children){if(e.attributes){const n=t.attributes||[],r=e.attributes||[];t.attributes=o?r.concat(n):n.concat(r)}u=t,(l=e).selfClosing&&(u.selfClosing=!0),null!=l.value&&(u.value=l.value),l.repeat&&(u.repeat=l.repeat)}var l,u;return s};return lt(e,i),e}(e,t),function(e,t,n){const o=[e],r=e=>{t(e,o,n),o.push(e),e.children.forEach(r),o.pop()};e.children.forEach(r)}(e,Cn,t),t.text=null!=n?n:t.text,e}(e,t),t)}(e,n)}const Do={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]},Po={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext","figcaption","hgroup","details","summary"]},Wo=new Map;let Mo;const Fo=new Map,Vo=/^[a-z,A-Z,!,(,[,#,\.\{]/,Uo=/^[a-z,A-Z,!,(,[,#,\.]/,Qo=/^-?[a-z,A-Z,!,@,#]/,Zo=/[a-z,A-Z\.]/,Go=[...Po.tags,"lorem"],Xo="bem",Yo="|",Jo="t",Ko="c",er=3;function tr(e,t,n,o,r){var i;const a=lr(o);if(!a){if(!Wo.has(o)){const e=Object.assign(Object.assign({},function(e){const t=lo({type:ur(e),syntax:e});return"xml"===e?{}:t.snippets}(o)),ar[o]);Wo.set(o,Object.keys(e))}Mo=null!==(i=Wo.get(o))&&void 0!==i?i:[]}const s={lookAhead:!a,type:ur(o)},l=function(e,t,n,o){const r=t.getLineContent(n.lineNumber),i=r.substr(0,n.column-1),{pos:a,filter:s}=function(e,t){let n;for(let o=0;o<er;o++)if(e.endsWith(`${Yo}${Xo}`,t))t-=Xo.length+1,n=n?Xo+","+n:Xo;else if(e.endsWith(`${Yo}${Ko}`,t))t-=Ko.length+1,n=n?Ko+","+n:Ko;else{if(!e.endsWith(`${Yo}${Jo}`,t))break;t-=Jo.length+1,n=n?Jo+","+n:Jo}return{pos:t,filter:n}}(i,n.column-1),l=s?s.length+1:0,u=function(e,t=e.length,n={}){const o=Object.assign(Object.assign({},Ao),n);let r;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),o.lookAhead&&(t=function(e,t,n){for(xo(e.charCodeAt(t))&&t++;Ho(e.charCodeAt(t),n.type);)t++;return t}(e,t,o));const i=function(e,t,n){if(!n)return 0;const o=co(e),r=n.split("").map(qo);let i;for(o.pos=t;!po(o);)if(!Bo(o,yo.SquareR,yo.SquareL)&&!Bo(o,yo.CurlyR,yo.CurlyL)){if(i=o.pos,Oo(o,r))return i;o.pos--}return-1}(e,t,o.prefix||"");if(-1===i)return;const a=co(e,i);a.pos=t;const s=[];for(;!po(a);){if(r=mo(a),s.includes(yo.CurlyR)){if(r===yo.CurlyR){s.push(r),a.pos--;continue}if(r!==yo.CurlyL){a.pos--;continue}}if(Ho(r,o.type))s.push(r);else if(Ro(r,o.type)){if(s.pop()!==vo[r])break}else{if(s.includes(yo.SquareR)||s.includes(yo.CurlyR)){a.pos--;continue}if(wo(a)||!No(r))break}a.pos--}if(!s.length&&a.pos!==t){const o=e.slice(a.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:o,location:t-o.length,start:n.prefix?i-n.prefix.length:t-o.length,end:t}}}(r,a,o);if(!u)return;return{abbreviationRange:new e.Range(n.lineNumber,u.location+1,n.lineNumber,u.location+u.abbreviation.length+l+1),abbreviation:u.abbreviation,currentLineTillPosition:i,filter:s}}(e,t,n,s);if(!l)return;const{abbreviationRange:u,abbreviation:c,currentLineTillPosition:p,filter:m}=l,f=function(e){if(e){const t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}(p);if(f===c&&p.endsWith(`<${c}`)&&!a)return;const d=function(e,t){var n;const o=t?t.split(",").map((e=>e.trim())):[],r=o.includes("bem"),i=o.includes("c"),a={"output.formatSkip":["html"],"output.formatForce":["body"],"output.field":sr,"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"markup.href":!0,"comment.enabled":i,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":r,"bem.element":"__","bem.modifier":"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":!0,"stylesheet.between":"stylus"===e?" ":": ","stylesheet.after":"sass"===e||"stylus"===e?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3,"output.format":!0,"output.selfClosingStyle":"html"},s=ur(e),l=function(e){return lr(e)?"css":"html"}(e);return{type:s,options:a,variables:{},snippets:"stylesheet"===s?null!==(n=ar[e])&&void 0!==n?n:ar[l]:ar[e],syntax:e,text:void 0,maxRepeat:1e3}}(o,m);let g,b="",h=[];if(((t,n)=>{if(function(e,t){if(!t)return!1;if(lr(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(Go.includes(t.substring(0,t.indexOf("#"))))return!1}return Qo.test(t)}return t.startsWith("!")?!/[^!]/.test(t):!!(!/\(/.test(t)&&!/\)/.test(t)||/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)||/\(.*\)[>\+\*\^]/.test(t)||/\[[^\[\]\(\)]+=".*"\]/.test(t)||/[>\+\*\^]\(.*\)/.test(t))&&("jsx"===e?Uo.test(t)&&Zo.test(t):Vo.test(t)&&Zo.test(t))}(t,c)){try{b=Io(n,d),a&&"!important".startsWith(n)&&(b="!important")}catch(e){}b&&!function(e,t,n,o){var r,i;if(lr(e)&&o){const e=null!==(r=o["stylesheet.between"])&&void 0!==r?r:": ",a=null!==(i=o["stylesheet.after"])&&void 0!==i?i:";";let s=t.indexOf(e[0],Math.max(t.length-e.length,0));return s=s>=0?s:t.length,n===`${t.substring(0,s)}${e}\${0}${a}`||n.replace(/\s/g,"")===t.replace(/\s/g,"")+a}if("xml"===e&&Go.some((e=>e.startsWith(t.toLowerCase()))))return!0;if(Go.includes(t.toLowerCase())||Mo.includes(t))return!1;if(/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if("."===t)return!1;const a=t.match(/^([a-z,A-Z,\d]*)\.$/);return a?!a[1]||!Po.tags.includes(a[1]):("jsx"!==e||!/^([A-Z][A-Za-z0-9]*)+$/.test(t))&&n.toLowerCase()===`<${t.toLowerCase()}>\${1}</${t.toLowerCase()}>`}(t,n,b,d.options)&&(g={kind:e.languages.CompletionItemKind.Property,label:c+(m?"|"+m.replace(",","|"):""),documentation:or(b),detail:"Emmet abbreviation",insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:u,insertText:rr(ir(b))},h=[g])}})(o,c),a){if(c.length>4&&Do.properties.some((e=>e.startsWith(c))))return{suggestions:[],incomplete:!0};if(g&&b.length){g.range=u,g.insertText=rr(ir(b)),g.documentation=or(b),g.label=b.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1"),g.filterText=c;const t=Fo.has(o)?Fo.get(o):Fo.get("css");if(h=nr(e,null!=t?t:[],c,c,u,d,"Emmet Custom Snippet",!1),!h.find((e=>e.insertText===(null==g?void 0:g.insertText)))){const e=new RegExp(".*"+c.split("").map((e=>"$"===e||"+"===e?"\\"+e:e)).join(".*")+".*","i");(/\d/.test(c)||e.test(g.label))&&h.push(g)}}}else{let t=c;const n=c.match(/(>|\+)([\w:-]+)$/);if(n&&3===n.length&&(t=n[2]),"xml"!==o){const n=nr(e,Go,t,c,u,d,"Emmet Abbreviation");h=h.concat(n)}if(!0===r.showAbbreviationSuggestions){const n=nr(e,Mo.filter((e=>!Go.includes(e))),t,c,u,d,"Emmet Abbreviation");g&&n.length>0&&t!==c&&(g.sortText="0"+g.label,n.forEach((e=>{e.filterText=c,e.sortText="9"+c}))),h=h.concat(n)}"html"===o&&h.length>=2&&c.includes(":")&&(null==g?void 0:g.insertText)===`<${c}>\${0}</${c}>`&&(h=h.filter((e=>e.label!==c)))}return!0===r.showSuggestionsAsSnippets&&h.forEach((t=>t.kind=e.languages.CompletionItemKind.Snippet)),h.length?{suggestions:h,incomplete:!0}:void 0}function nr(e,t,n,o,r,i,a,s=!0){if(!n||!t)return[];const l=[];return t.forEach((t=>{if(!t.startsWith(n.toLowerCase())||s&&t===n.toLowerCase())return;const u=o+t.substr(n.length);let c;try{c=Io(u,i)}catch(e){}if(!c)return;const p={kind:e.languages.CompletionItemKind.Property,label:n+t.substr(n.length),documentation:or(c),detail:a,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:r,insertText:rr(ir(c))};l.push(p)})),l}function or(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function rr(e){return e?e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):e}function ir(e){if(!e||!e.trim())return e;let t=-1,n=[],o=!1,r=!1,i=0;const a=e.length;try{for(;i<a&&!o;){if("$"!=e[i++]||"{"!=e[i++])continue;let s=-1,l=-1;for(;i<a&&/\d/.test(e[i]);)s=s<0?i:s,l=i+1,i++;if(-1===s||-1===l||i>=a||"}"!=e[i]&&":"!=e[i])continue;const u=e.substring(s,l);if(o="0"===u,o)break;let c=!1;if(":"==e[i++])for(;i<a;){if("}"==e[i]){c=!0;break}i++}Number(u)>Number(t)?(t=Number(u),n=[{numberStart:s,numberEnd:l}],r=!c):Number(u)===t&&n.push({numberStart:s,numberEnd:l})}}catch(e){}if(r&&!o)for(let t=0;t<n.length;t++){const o=n[t].numberStart,r=n[t].numberEnd;e=e.substr(0,o)+"0"+e.substr(r)}return e}let ar={};const sr=(e,t)=>`\${${e}${t?":"+t:""}}`;function lr(e){return"css"===e}function ur(e){return lr(e)?"stylesheet":"markup"}function cr(e,t,n,o){const r=e[t],i=r.type;return"html"===n?""===i&&(0===t||"delimiter.html"===e[t-1].type)||"text.html.basic"===e[0].type:"css"===n?""===i||i==="tag."+o:"jsx"===n&&("mdx"===r.language&&""===i||!!t&&["identifier.js","type.identifier.js","identifier.ts","type.identifier.ts"].includes(i))}const pr=new WeakMap;const mr={html:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],jade:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],slim:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],haml:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xml:[".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xsl:["!",".","}","*","$","/","]",">","0","1","2","3","4","5","6","7","8","9"],css:[":","!","-","0","1","2","3","4","5","6","7","8","9"],scss:[":","!","-","0","1","2","3","4","5","6","7","8","9"],sass:[":","!","0","1","2","3","4","5","6","7","8","9"],less:[":","!","-","0","1","2","3","4","5","6","7","8","9"],stylus:[":","!","0","1","2","3","4","5","6","7","8","9"],javascript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]},fr={handlebars:"html",php:"html",twig:"html"},dr={showExpandedAbbreviation:"always",showAbbreviationSuggestions:!0,showSuggestionsAsSnippets:!1};function gr(e,t,n){if(!e)return void console.error("emmet-monaco-es: 'monaco' should be either declared on window or passed as first parameter");const o=t.map((t=>e.languages.registerCompletionItemProvider(t,{triggerCharacters:mr[fr[t]||t],provideCompletionItems:(o,r)=>function(e,t,n,o){var r;const{column:i,lineNumber:a}=t,{_stateStore:s,_support:l}=function(e){if(pr.has(e))return pr.get(e);let t=e._tokenization||e.tokenization._tokenization,n=null==t?void 0:t._tokenizationStateStore;if(!t||!n){const o=e.tokenization,r=o.grammarTokens||o._tokens;r?(t=r._defaultBackgroundTokenizer,n=t._tokenizerWithStateStore):(Object.values(o).some((e=>t=e.tokenizeViewport&&e)),Object.values(t).some((e=>n=e.tokenizationSupport&&e)))}const o=n.tokenizationSupport||t._tokenizationSupport,r={_stateStore:n,_support:o};return pr.set(e,r),r}(e),u=(null===(r=s.getBeginState)||void 0===r?void 0:r.call(s,a-1).clone())||s.getStartState(a).clone(),c=l.tokenize(e.getLineContent(a),!0,u,0).tokens;let p=!1;for(let e=c.length-1;e>=0;e--)if(i-1>c[e].offset){p=cr(c,e,n,o);break}return p}(o,r,n,t)?tr(e,o,r,n,dr):void 0})));return()=>{o.forEach((e=>e.dispose()))}}const br=window.wp.components,hr=[{label:"HTML",value:"html"},{label:"CSS",value:"css"},{label:"SCSS",value:"scss"},{label:"JavaScript",value:"js"},{label:"PHP",value:"php"},{label:"TypeScript",value:"typescript"},{label:"Bash",value:"bash"},{label:"Twig",value:"twig"},{label:"YAML",value:"yaml"},{label:"Plaintext",value:"plaintext"},{label:"JSON",value:"json"}],yr=window.wp.primitives;var xr=n(848);const vr=(0,xr.jsx)(yr.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xr.jsx)(yr.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})}),kr=(0,xr.jsx)(yr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xr.jsx)(yr.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})}),wr=({viewMode:e,setViewMode:t,syntaxHighlight:n,setSyntaxHighlight:o,setAttributes:i,editorLanguage:s,changeEditorLanguage:l})=>{const[u,c]=(0,r.useState)(hr[0].value),p=hr.find((e=>e.value===u))?.label||"";return(0,r.createElement)(a.BlockControls,null,!n&&(0,r.createElement)(br.ToolbarGroup,null,(0,r.createElement)(br.ToolbarButton,{icon:"preview"===e?vr:kr,label:"preview"===e?"Switch to Split View":"Switch to Preview",onClick:()=>t("preview"===e?"split":"preview")},"preview"===e?"Preview":"Split")),(0,r.createElement)(br.ToolbarGroup,null,(0,r.createElement)(br.ToolbarItem,null,(()=>(0,r.createElement)(br.ToolbarButton,{label:"Highlighting",isPressed:n,onClick:()=>{o(!n),i({syntaxHighlight:!n})}},n?"Highlighting On":"Highlighting Off")))),n&&(0,r.createElement)(br.ToolbarGroup,null,(0,r.createElement)(br.ToolbarDropdownMenu,{text:p,icon:null,label:"Select a language",controls:hr.map((e=>({title:e.label,onClick:()=>{c(e.value),l(e.value),console.log(e.value)}})))})))},$r=(0,i.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,i.cloneElement)(e,{width:t,height:t,...n,ref:o})})),Cr=(0,xr.jsx)(yr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xr.jsx)(yr.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})}),Sr=[{label:"Light",value:"light"},{label:"Dark",value:"dark"}],zr={padding:"10px 0px 10px 15px"},Er=({attributes:e,setAttributes:t,syntaxHighlight:n,setSyntaxHighlight:o,syntaxHighlightTheme:i,toggleSyntaxHighlightTheme:s,editorLanguage:l,changeEditorLanguage:u,theme:c,toggleTheme:p,fontSize:m,setFontSize:f,editorHeight:d,setEditorHeight:g,updateAttribute:b,displayLanguage:h,copyButton:y})=>(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(br.Panel,null,(0,r.createElement)(br.PanelBody,{title:"Element Settings"},(0,r.createElement)("div",{className:"togglecontrol--with-info"},(0,r.createElement)(br.ToggleControl,{label:"Use Wrapper",checked:e.useWrapper,onChange:e=>{t({useWrapper:e})},__nextHasNoMarginBottom:!0}),(0,r.createElement)("div",{className:"togglecontrol--with-info__icon-wrapper"},(0,r.createElement)($r,{icon:Cr,size:20}),(0,r.createElement)("p",null,"Wrap the editor content in a div to use WordPress attributes such as class name, width class, etc."))),!n&&(0,r.createElement)(br.__experimentalUnitControl,{label:"Editor Height",value:d,onChange:e=>{const n=e.toString().endsWith("px")?e:`${e}px`;g(n),localStorage.setItem("dblocks_editor_height",n),t({editorHeight:n})},units:[{value:"px",label:"px",default:500}],min:10,max:1e3,__next40pxDefaultSize:!0}),(0,r.createElement)("div",{className:"togglecontrol--with-info"},(0,r.createElement)(br.ToggleControl,{label:"Syntax Highlighting",checked:n,onChange:e=>{o(e),t({syntaxHighlight:e,scaleHeightWithContent:e})},__nextHasNoMarginBottom:!0}),(0,r.createElement)("div",{className:"togglecontrol--with-info__icon-wrapper"},(0,r.createElement)($r,{icon:Cr,size:20}),(0,r.createElement)("p",null,"If this is disabled code will be injected as HTML, otherwise the code will be displayed with syntax highlighting as code snippet preview."))),n&&(0,r.createElement)("div",{style:zr},(0,r.createElement)(br.SelectControl,{label:"Language",value:l,options:hr,onChange:u,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,r.createElement)(br.SelectControl,{label:"Front End Theme",value:i,options:Sr,onChange:()=>{s()},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,r.createElement)(br.ToggleControl,{label:"Display Language",checked:h,onChange:e=>{b("displayLanguage",e,"/wp-json/dblocks_codepro/v1/display-language/")},__nextHasNoMarginBottom:!0}),(0,r.createElement)(br.ToggleControl,{label:"Copy Button",checked:y,onChange:e=>{b("copyButton",e,"/wp-json/dblocks_codepro/v1/copy-button/")},__nextHasNoMarginBottom:!0})),(0,r.createElement)("hr",null),(0,r.createElement)("h2",null,"Editor Global Settings"),(0,r.createElement)(br.SelectControl,{label:"Editor Theme",value:"vs-dark"===c?"dark":"light",options:Sr,onChange:()=>{p()},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,r.createElement)(br.__experimentalUnitControl,{label:"Editor Font Size",value:m,onChange:e=>{return f(t=e),void b("editorFontSize",t,"/wp-json/dblocks_codepro/v1/editor-font-size/");var t},units:[{value:"px",label:"Pixels",default:14}],min:10,max:30,__next40pxDefaultSize:!0})))),_r=window.wp.data,jr=(e,t=500,n=10)=>{if("number"==typeof e)return Math.max(n,e);if("string"==typeof e){const o=parseInt(e,10);return isNaN(o)?t:Math.max(n,o)}return t},Lr=e=>`${jr(e)}px`,qr=e=>jr(e),Tr={instances:new Map,isInitializing:!1},Ar=({content:e,editorLanguage:t,syntaxThemeClass:n,displayLanguage:o,copyButton:i})=>(0,r.createElement)("div",{className:"tag-wrapper"},i&&(0,r.createElement)("button",{className:"copy-button tag-button"},"Copy"),o&&(0,r.createElement)("div",{className:"code-language-label tag-button"},t.toUpperCase())),Br=({blockProps:e,content:t,editorLanguage:n,syntaxThemeClass:o,displayLanguage:i,copyButton:a})=>{const s={...e,className:`wp-block-dblocks-dblocks-codepro ${o} syntax-highlighted-container`};return(0,r.createElement)("pre",{...s},(0,r.createElement)(Ar,{content:t,editorLanguage:n,syntaxThemeClass:o,displayLanguage:i,copyButton:a}),(0,r.createElement)("code",{className:`language-${n}`},t))},Or=({blockProps:e,content:t,useWrapper:n})=>{const o=(0,r.createElement)(i.RawHTML,null,t);return n?(0,r.createElement)("div",{...e},o):o},Nr=()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"},(0,r.createElement)("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H160v400Zm140-40-56-56 103-104-104-104 57-56 160 160-160 160Zm180 0v-80h240v80H480Z"})),Rr={viewMode:"code",theme:"vs-light",syntaxHighlight:!0,syntaxHighlightTheme:"light",editorLanguage:"html"},Hr={from:[{type:"block",blocks:["core/html","core/code"],transform:({content:e})=>(0,o.createBlock)("dblocks/dblocks-codepro",{content:e,...Rr})}]},Ir=JSON.parse('{"UU":"dblocks/dblocks-codepro"}').UU;if(!(0,o.getBlockType)(Ir))try{(0,o.registerBlockType)(Ir,{icon:Nr,edit:function({attributes:e,setAttributes:t,clientId:n}){const{content:o,viewMode:s}=e,[l,u]=(0,i.useState)(s),[c,p]=(0,i.useState)(e.theme||"vs-light"),[m,f]=(0,i.useState)(e.editorFontSize||"14px"),[d,g]=(0,i.useState)((()=>localStorage.getItem("dblocks_editor_height")||e.editorHeight||"500px")),[b,h]=(0,i.useState)(e.syntaxHighlight),[y,x]=(0,i.useState)((()=>localStorage.getItem("dblocks_syntax_theme")||e.syntaxHighlightTheme||"light")),[v,k]=(0,i.useState)(e.editorLanguage||"html"),[w,$]=(0,i.useState)(null),[C,S]=(0,i.useState)(!1),[z,E]=(0,i.useState)(!1),[_,j]=(0,i.useState)(!1),[L,q]=(0,i.useState)(!1),[T,A]=(0,i.useState)((()=>{var t;const n=localStorage.getItem("dblocks_display_language");return null!==n?"true"===n:null===(t=e.displayLanguage)||void 0===t||t})),[B,O]=(0,i.useState)((()=>{var t;const n=localStorage.getItem("dblocks_copy_button");return null!==n?"true"===n:null===(t=e.copyButton)||void 0===t||t})),N=(0,i.useRef)(null),R=(0,i.useRef)(null),H=(0,i.useRef)(null),I=(0,i.useRef)(s),D=(0,_r.useSelect)((e=>e("core/block-editor").getSelectedBlockClientId())),P=e=>{const t=(e.match(/\n/g)||[]).length+1,n=parseInt(m),o=1.5*n,r=2*n,i=1.5*n;return`${Math.max(t*o+r,i)}px`},W=(e,n)=>{t({[e]:n})},M=DBlocksData.restUrl;(0,i.useEffect)((()=>{const e=e=>{const n=e.detail.theme;n!==y&&(x(n),t({syntaxHighlightTheme:n}))};return window.addEventListener("dblocks_syntax_theme_changed",e),()=>{window.removeEventListener("dblocks_syntax_theme_changed",e)}}),[y]),(0,i.useEffect)((()=>{const e=localStorage.getItem("dblocks_syntax_theme");e&&e!==y&&(x(e),t({syntaxHighlightTheme:e}))}),[]);const F=e=>{if(k(e),W("editorLanguage",e),H.current){const t=H.current.getModel();if(t){const n=window.monaco||document.querySelector('[name="editor-canvas"]')?.contentWindow?.monaco;n&&n.editor.setModelLanguage(t,e)}}},V=e=>{h(e),t({syntaxHighlight:e,scaleHeightWithContent:e}),j(!0),z&&"split"===l&&setTimeout((()=>{if(H.current){H.current.layout();const e=document.querySelector('[name="editor-canvas"]'),t=e?e.contentWindow:window;t&&t.monaco&&H.current.focus()}}),50)};(0,i.useEffect)((()=>{if(b||D===n&&"split"===l){const e=document.querySelector('[name="editor-canvas"]'),t=e?e.contentWindow:window,n=e?e.contentWindow.document:document,o=setTimeout((()=>{Q(t,n)}),10);return()=>clearTimeout(o)}return()=>{b||D===n&&"split"===l||!H.current||(H.current.dispose(),H.current=null,Tr.instances.delete(n))}}),[b,D,n,l,w]),(0,i.useEffect)((()=>{if(D)if(D!==n)E(!1),!b&&H.current&&(H.current.dispose(),H.current=null,Tr.instances.delete(n));else if("split"===l){E(!0);const e=localStorage.getItem("dblocks_editor_height");e&&e!==d&&(g(e),t({editorHeight:e}),R.current&&(R.current.style.height=e,H.current?.layout()));const n=localStorage.getItem("dblocks_syntax_theme");n&&n!==y&&(x(n),t({syntaxHighlightTheme:n}))}}),[D,n,l,b]);const U=b||D===n&&"split"===l;(0,i.useLayoutEffect)((()=>{if(R.current&&_){const e=R.current.style.display;R.current.style.display="none",R.current.offsetHeight,R.current.style.display=e||"block"}}),[R.current,_]),(0,i.useEffect)((()=>{H.current&&C&&H.current.getValue()!==o&&H.current.setValue(o)}),[o,C]),(0,i.useEffect)((()=>{if(R.current&&H.current){if(b||e.scaleHeightWithContent){const e=P(o);R.current.style.height=e}else R.current.style.height=d;H.current.layout()}}),[b,e.scaleHeightWithContent,o,d]),(0,i.useEffect)((()=>{H.current&&H.current.updateOptions({theme:c,fontSize:parseInt(m)})}),[c,m]),(0,i.useEffect)((()=>{(async()=>{try{const e=await fetch(`${M}plugin-path`);if(!e.ok)throw new Error("Failed to fetch plugin info");const t=await e.json();$(t)}catch(e){console.error("Failed to fetch plugin info:",e)}})()}),[]);const Q=async(t,r)=>{if(!w||Tr.isInitializing)return;q(!0);const i=_||"preview"===I.current&&"split"===l;if(Tr.instances.has(n)&&!i)return H.current=Tr.instances.get(n),C||S(!0),setTimeout((()=>{H.current&&H.current.layout()}),50),void q(!1);Tr.isInitializing=!0;const a=`${w.plugin_url}vendor/monaco/min/vs`;try{if(!t.monaco&&!Array.from(r.scripts).some((e=>e.src.includes(`${a}/loader.js`)))){const e=r.createElement("script");e.src=`${a}/loader.js`,await new Promise(((t,n)=>{e.onload=t,e.onerror=n,r.body.appendChild(e)}))}t.require||await new Promise((e=>{const n=setInterval((()=>{t.require&&(clearInterval(n),e())}),50)})),t.require.config({paths:{vs:a}}),await new Promise((r=>{t.require(["vs/editor/editor.main"],(()=>{H.current&&(H.current.dispose(),H.current=null,Tr.instances.delete(n)),R.current&&(R.current.style.display="block",R.current.style.visibility="visible"),H.current=t.monaco.editor.create(R.current,{minimap:{enabled:!1},value:o||"\x3c!-- some comment --\x3e",language:v,automaticLayout:!0,theme:c,fontSize:parseInt(m),scrollBeyondLastLine:!1,suggestOnTriggerCharacters:!0,quickSuggestions:!0,wordBasedSuggestions:!0,parameterHints:{enabled:!0}}),t.monaco._emmetInitialized||(function(e=window.monaco,t=["html"]){gr(e,t,"html")}(t.monaco),t.monaco._emmetInitialized=!0),H.current.onDidChangeModelContent((()=>{const t=H.current.getValue();if(W("content",t),e.scaleHeightWithContent){const e=P(t);R.current.style.height=e,H.current.layout()}})),setTimeout((()=>{H.current&&H.current.layout()}),10),Tr.instances.set(n,H.current),S(!0),r()}))}))}catch(e){console.error("Failed to initialize Monaco editor:",e)}finally{Tr.isInitializing=!1,q(!1)}};return(0,i.useEffect)((()=>{z&&"split"===l&&j(!0)}),[b]),(0,i.useEffect)((()=>{"preview"===I.current&&"split"===l&&j(!0),W("viewMode",l),"split"===l&&E(!0),I.current=l}),[l]),(0,i.useEffect)((()=>{b||"preview"!==l||(u("split"),W("viewMode","split"))}),[b]),(0,i.useEffect)((()=>{const e=e=>{const n=e.detail.displayLanguage;n!==T&&(A(n),t({displayLanguage:n}))};return window.addEventListener("dblocks_display_language_changed",e),()=>{window.removeEventListener("dblocks_display_language_changed",e)}}),[T]),(0,i.useEffect)((()=>{const e=localStorage.getItem("dblocks_display_language");if(null!==e){const n="true"===e;n!==T&&(A(n),t({displayLanguage:n}))}}),[]),(0,i.useEffect)((()=>{const e=e=>{const n=e.detail.copyButton;n!==B&&(O(n),t({copyButton:n}))};return window.addEventListener("dblocks_copy_button_changed",e),()=>{window.removeEventListener("dblocks_copy_button_changed",e)}}),[B]),(0,i.useEffect)((()=>{const e=localStorage.getItem("dblocks_copy_button");if(null!==e){const n="true"===e;n!==B&&(O(n),t({copyButton:n}))}}),[]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Er,{attributes:e,setAttributes:t,syntaxHighlight:b,setSyntaxHighlight:V,syntaxHighlightTheme:y,toggleSyntaxHighlightTheme:async e=>{const t=e||("light"===y?"dark":"light");try{if(!(await fetch(`${M}syntax-theme/`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify({syntaxTheme:t})})).ok)throw new Error("Network response was not ok.");localStorage.setItem("dblocks_syntax_theme",t),x(t),W("syntaxHighlightTheme",t);const e=new CustomEvent("dblocks_syntax_theme_changed",{detail:{theme:t}});window.dispatchEvent(e)}catch(e){console.error("Failed to update syntax theme:",e)}},editorLanguage:v,changeEditorLanguage:F,theme:c,toggleTheme:async()=>{const e="vs-light"===c?"vs-dark":"vs-light";try{if(!(await fetch(`${M}theme`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify({theme:e})})).ok)throw new Error("Network response was not ok.");p(e),W("theme",e)}catch(e){console.error("Failed to update theme:",e)}},fontSize:m,setFontSize:f,editorHeight:d,setEditorHeight:e=>{const t=Lr(e);g(t),localStorage.setItem("dblocks_editor_height",t),W("editorHeight",t),R.current&&(R.current.style.height=t,H.current?.layout())},updateAttribute:async(e,n,o)=>{t({[e]:n});try{if(!(await fetch(o,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify({[e]:n})})).ok)throw new Error("Network response was not ok.");if("displayLanguage"===e){localStorage.setItem("dblocks_display_language",n);const e=new CustomEvent("dblocks_display_language_changed",{detail:{displayLanguage:n}});window.dispatchEvent(e)}else if("copyButton"===e){localStorage.setItem("dblocks_copy_button",n);const e=new CustomEvent("dblocks_copy_button_changed",{detail:{copyButton:n}});window.dispatchEvent(e)}}catch(t){console.error(`Failed to update ${e}:`,t)}},displayLanguage:T,copyButton:B}),(0,r.createElement)("div",{...(0,a.useBlockProps)({ref:N}),style:{position:"relative",height:"100vh"}},(0,r.createElement)(wr,{viewMode:l,setViewMode:e=>{I.current=l,u(e),"split"===e&&(E(!0),j(!0))},syntaxHighlight:b,setSyntaxHighlight:V,setAttributes:t,editorLanguage:v,changeEditorLanguage:F}),!b&&"preview"===l&&(0,r.createElement)(i.RawHTML,{className:`syntax-${y}`},o),!b&&"split"===l&&(0,r.createElement)(i.RawHTML,{onClick:()=>{E(!0)},className:`syntax-${y}`},o),U&&(b||"split"!==l||e.scaleHeightWithContent?(0,r.createElement)("div",{style:{position:"relative",isolation:"isolate",zIndex:100}},(0,r.createElement)("div",{ref:R,id:"editor-container-ref",style:{height:P(o),width:"100%",position:b?"relative":"fixed",bottom:b?"auto":0,left:0,right:0,zIndex:9999,backgroundColor:"#fff",visibility:U?"visible":"hidden",display:U?"block":"none",isolation:"isolate"}}),L&&(0,r.createElement)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.8)",zIndex:1e4}},(0,r.createElement)(br.Spinner,null))):(0,r.createElement)(br.ResizableBox,{className:"code-editor-box",size:{height:qr(d)},minHeight:10,enable:{top:!0},style:{position:b?"relative":"fixed",bottom:b?"auto":0,left:0,right:0,zIndex:100,isolation:"isolate"},onResizeStop:(e,n,o,r)=>{const i=qr(d)+r.height,a=Lr(i);localStorage.setItem("dblocks_editor_height",a),g(a),t({editorHeight:a}),R.current&&(R.current.style.height=a,H.current?.layout())}},(0,r.createElement)("div",{ref:R,id:"editor-container-ref",style:{height:"100%",width:"100%",position:b?"relative":"absolute",bottom:b?"auto":0,left:0,right:0,zIndex:9999,backgroundColor:"#fff",visibility:U?"visible":"hidden",display:U?"block":"none",isolation:"isolate"}}),L&&(0,r.createElement)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.8)",zIndex:1e4}},(0,r.createElement)(br.Spinner,null))))))},save:function({attributes:e}){const{syntaxHighlight:t,content:n,theme:o,syntaxHighlightTheme:i,editorLanguage:s,displayLanguage:l,copyButton:u,useWrapper:c}=e,p=a.useBlockProps.save(),m="light"===i?"syntax-light":"syntax-dark";return t?(0,r.createElement)(Br,{blockProps:p,content:n,editorLanguage:s,syntaxThemeClass:m,displayLanguage:l,copyButton:u}):(0,r.createElement)(Or,{blockProps:p,content:n,useWrapper:c})},transforms:Hr})}catch(Ie){console.error(`Failed to register block ${Ir}:`,Ie)}},20:(e,t,n)=>{var o=n(609),r=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var o,l={},u=null,c=null;for(o in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,o)&&!s.hasOwnProperty(o)&&(l[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===l[o]&&(l[o]=t[o]);return{$$typeof:r,type:e,key:u,ref:c,props:l,_owner:a.current}}},848:(e,t,n)=>{e.exports=n(20)},609:e=>{e.exports=window.React}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.m=t,e=[],o.O=(t,n,r,i)=>{if(!n){var a=1/0;for(c=0;c<e.length;c++){for(var[n,r,i]=e[c],s=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(s=!1,i<a&&(a=i));if(s){e.splice(c--,1);var u=r();void 0!==u&&(t=u)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[n,r,i]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[a,s,l]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(l)var c=l(o)}for(t&&t(n);u<a.length;u++)i=a[u],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(c)},n=globalThis.webpackChunkdblocks_codepro=globalThis.webpackChunkdblocks_codepro||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[350],(()=>o(885)));r=o.O(r)})();1 (()=>{"use strict";var e,t={885:(e,t,n)=>{const o=window.wp.blocks;var r=n(609);const i=window.wp.element,a=window.wp.blockEditor;function s(e){return e>47&&e<58}function l(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function c(e){return s(e)||u(e)}function u(e){return 95===e||l(e)}function p(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}function m(e){return 39===e||34===e}class f{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,t){return new f(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new d(`${e} at ${t+1}`,t,this.string)}}class d extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}function b(e){return e.tokens[e.pos]}function g(e){return e.tokens[e.pos++]}function h(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function y(e){return e.pos<e.size}function x(e,t){const n=b(e);return!(!n||!t(n)||(e.pos++,0))}function v(e,t,n=b(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function k(e,t){const n={type:"TokenGroup",elements:[]};let o,r=n;const i=[];for(;y(e)&&(o=$(e,t)||w(e,t));)if(r.elements.push(o),x(e,V))i.push(r),r=o;else{if(x(e,U))continue;if(x(e,Q))do{i.length&&(r=i.pop())}while(x(e,Q))}return n}function w(e,t){if(x(e,W)){const n=k(e,t);return q(g(e),"group",!1)&&(n.repeat=function(e){return N(b(e))?e.tokens[e.pos++]:void 0}(e)),n}}function $(e,t){let n;const o={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(function(e,t){const n=e.pos;if(t.jsx&&x(e,R))for(;y(e);){const{pos:t}=e;if(!x(e,I)||!x(e,R)){e.pos=t;break}}for(;y(e)&&x(e,H););return e.pos!==n&&(e.start=n,!0)}(e,t)&&(o.name=h(e));y(e);)if(e.start=e.pos,o.repeat||F(o)||!x(e,N))if(!o.value&&j(e))o.value=L(e);else{if(!(n=S(e,"id",t)||S(e,"class",t)||C(e))){!F(o)&&x(e,Z)&&(o.selfClose=!0,!o.repeat&&x(e,N)&&(o.repeat=e.tokens[e.pos-1]));break}o.attributes?o.attributes=o.attributes.concat(n):o.attributes=Array.isArray(n)?n.slice():[n]}else o.repeat=e.tokens[e.pos-1];return F(o)?void 0:o}function C(e){if(x(e,D)){const t=[];let n;for(;y(e);)if(n=z(e))t.push(n);else{if(x(e,P))break;if(!x(e,A))throw v(e,`Unexpected "${b(e).type}" token`)}return t}}function S(e,t,n){if(T(b(e),t)){e.pos++;let r=1;for(;T(b(e),t);)e.pos++,r++;const i={name:[(o=t,{type:"Literal",value:o})]};return r>1&&(i.multiple=!0),n.jsx&&j(e)?(i.value=L(e),i.expression=!0):i.value=_(e)?h(e):void 0,i}var o}function z(e){if(E(e))return{value:h(e)};if(_(e,!0)){const t=h(e);let n;return x(e,O)&&(E(e)||_(e,!0))&&(n=h(e)),{name:t,value:n}}}function E(e){const t=e.pos,n=b(e);if(B(n)){for(e.pos++;y(e);)if(B(g(e),n.single))return e.start=t,!0;throw v(e,"Unclosed quote",n)}return!1}function _(e,t){const n=e.pos,o={attribute:0,expression:0,group:0};for(;y(e);){const n=b(e);if(o.expression)q(n,"expression")&&(o[n.context]+=n.open?1:-1);else{if(B(n)||T(n)||A(n)||N(n))break;if(q(n)){if(!t)break;if(n.open)o[n.context]++;else{if(!o[n.context])break;o[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function j(e){const t=e.pos;if(x(e,M)){let n=0;for(;y(e);){const t=g(e);if(q(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function L(e){let t=e.start,n=e.pos;return q(e.tokens[t],"expression",!0)&&t++,q(e.tokens[n-1],"expression",!1)&&n--,h(e,t,n)}function q(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function T(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function B(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function A(e){return Boolean(e&&"WhiteSpace"===e.type)}function O(e){return T(e,"equal")}function N(e){return Boolean(e&&"Repeater"===e.type)}function R(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function H(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function I(e){return T(e,"class")}function D(e){return q(e,"attribute",!0)}function P(e){return q(e,"attribute",!1)}function M(e){return q(e,"expression",!0)}function W(e){return q(e,"group",!0)}function F(e){return!e.name&&!e.value&&!e.attributes}function V(e){return T(e,"child")}function U(e){return T(e,"sibling")}function Q(e){return T(e,"climb")}function Z(e){return T(e,"close")}var G;function X(e){return!!e.eat(G.Escape)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function Y(e,t){return function(e,t){const n=e.pos;if((t.expression||t.attribute)&&e.eat(G.Dollar)&&e.eat(G.CurlyBracketOpen)){let t;e.start=e.pos;let o="";if(e.eatWhile(s)?(t=Number(e.current()),o=e.eat(G.Colon)?J(e):""):l(e.peek())&&(o=J(e)),e.eat(G.CurlyBracketClose))return{type:"Field",index:t,name:o,start:n,end:e.pos};throw e.error("Expecting }")}e.pos=n}(e,t)||function(e){const t=e.pos;if(e.eat(G.Dollar)&&e.eat(G.Hash))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(G.Dollar)){const n=e.pos-t;let o=!1,r=1,i=0;if(e.eat(G.At)){for(;e.eat(G.Climb);)i++;o=e.eat(G.Dash),e.start=e.pos,e.eatWhile(s)&&(r=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:n,reverse:o,base:r,parent:i,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(G.Asterisk)){e.start=e.pos;let n=1,o=!1;return e.eatWhile(s)?n=Number(e.current()):o=!0,{type:"Repeater",count:n,value:0,implicit:o,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(p))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const n=e.pos,o=t.expression;let r="";for(;!e.eof();){if(X(e)){r+=e.current();continue}const n=e.peek();if(n===G.Slash&&!t.quote&&!t.expression&&!t.attribute){const t=e.string.charCodeAt(e.pos-1),n=e.string.charCodeAt(e.pos+1);if(s(t)&&s(n)){r+=e.string[e.pos++];continue}}if(n===t.quote||n===G.Dollar||K(n,t))break;if(o){if(n===G.CurlyBracketOpen)t.expression++;else if(n===G.CurlyBracketClose){if(!(t.expression>o))break;t.expression--}}else if(!t.quote){if(!t.attribute&&!ie(n))break;if(ee(n,t)||te(n,t)||m(n)||ne(n))break}r+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:r,start:n,end:e.pos}}(e,t)||function(e){const t=oe(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(m(t))return{type:"Quote",single:t===G.SingleQuote,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=ne(t);if(n)return{type:"Bracket",open:re(t),context:n,start:e.pos++,end:e.pos}}(e)}function J(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(G.CurlyBracketOpen))t.push(e.pos);else if(e.eat(G.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function K(e,t){const n=oe(e);return!(!n||t.quote||t.expression||t.attribute&&"equal"!==n)}function ee(e,t){return p(e)&&!t.expression}function te(e,t){return e===G.Asterisk&&!t.attribute&&!t.expression}function ne(e){return e===G.RoundBracketOpen||e===G.RoundBracketClose?"group":e===G.SquareBracketOpen||e===G.SquareBracketClose?"attribute":e===G.CurlyBracketOpen||e===G.CurlyBracketClose?"expression":void 0}function oe(e){return(e===G.Child?"child":e===G.Sibling&&"sibling")||e===G.Climb&&"climb"||e===G.Dot&&"class"||e===G.Hash&&"id"||e===G.Slash&&"close"||e===G.Equals&&"equal"||void 0}function re(e){return e===G.CurlyBracketOpen||e===G.SquareBracketOpen||e===G.RoundBracketOpen}function ie(e){return c(e)||function(e){return 196===e||214==e||220===e||228===e||246===e||252===e}(e)||e===G.Dash||e===G.Colon||e===G.Excl}!function(e){e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Escape=92]="Escape",e[e.Equals=61]="Equals",e[e.SquareBracketOpen=91]="SquareBracketOpen",e[e.SquareBracketClose=93]="SquareBracketClose",e[e.Asterisk=42]="Asterisk",e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.Sibling=43]="Sibling",e[e.Child=62]="Child",e[e.Climb=94]="Climb",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote"}(G||(G={}));const ae={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},se={Literal:e=>e.value,Quote:e=>e.single?"'":'"',Bracket:e=>"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}",Operator:e=>ae[e.operator],Field:(e,t)=>null!=e.index?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):"",RepeaterPlaceholder(e,t){let n;for(let e=t.repeaters.length-1;e>=0;e--)if(t.repeaters[e].implicit){n=t.repeaters[e];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1;const o=t.repeaters.length-1,r=t.repeaters[o];if(r&&(n=e.reverse?e.base+r.count-r.value-1:e.base+r.value,e.parent)){const i=Math.max(0,o-e.parent);if(i!==o){const e=t.repeaters[i];n+=r.count*e.value}}let i=String(n);for(;i.length<e.size;)i="0"+i;return i},WhiteSpace:e=>e.value};function le(e,t){if(!se[e.type])throw new Error(`Unknown token ${e.type}`);return se[e.type](e,t)}const ce=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,ue=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function pe(e,t){let n=[];if(e.repeat){const o=e.repeat,r=Object.assign({},o);let i;r.count=r.implicit&&Array.isArray(t.text)?t.cleanText.length:r.count||1,t.repeaters.push(r);for(let o=0;o<r.count;o++){if(r.value=o,e.repeat=r,i=he(e)?fe(e,t):me(e,t),r.implicit&&!t.inserted){const e=xe(i),n=e&&ve(e);n&&ke(n,t.getText(r.value))}if(n=n.concat(i),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=o,r.implicit&&(t.inserted=!0)}else n=n.concat(he(e)?fe(e,t):me(e,t));return n}function me(e,t){let n=[];const o={type:"AbbreviationNode",name:e.name&&be(e.name,t),value:e.value&&ge(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let r=[o];for(const o of e.elements)n=n.concat(pe(o,t));if(e.attributes){o.attributes=[];for(const n of e.attributes)o.attributes.push(de(n,t))}return o.name||o.attributes||!o.value||o.value.some(ye)?o.children=n:r=r.concat(n),r}function fe(e,t){let n=[];for(const o of e.elements)n=n.concat(pe(o,t));return e.repeat&&(n=function(e,t){for(const n of e)n.repeat||(n.repeat=Object.assign({},t));return e}(n,e.repeat)),n}function de(e,t){let n,o=!1,r=!1,i=e.expression?"expression":"raw";const a=e.name&&be(e.name,t);if(a&&"!"===a[0]&&(o=!0),a&&"."===a[a.length-1]&&(r=!0),e.value){const o=e.value.slice();if(B(o[0])){const e=o.shift();o.length&&xe(o).type===e.type&&o.pop(),i=e.single?"singleQuote":"doubleQuote"}else q(o[0],"expression",!0)&&(i="expression",o.shift(),q(xe(o),"expression",!1)&&o.pop());n=ge(o,t)}return{name:r||o?a.slice(o?1:0,r?-1:void 0):a,value:n,boolean:r,implied:o,valueType:i,multiple:e.multiple}}function be(e,t){let n="";for(let o=0;o<e.length;o++)n+=le(e[o],t);return n}function ge(e,t){const n=[];let o="";for(let r,i=0;i<e.length;i++)r=e[i],ye(r)?(o&&(n.push(o),o=""),n.push(r)):o+=le(r,t);return o&&n.push(o),n}function he(e){return"TokenGroup"===e.type}function ye(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function xe(e){return e[e.length-1]}function ve(e){return e.children.length?ve(xe(e.children)):e}function ke(e,t){e.value?"string"==typeof xe(e.value)?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}function we(e,t){try{return function(e,t={}){let n,o=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter((e=>e.trim())):t.text);const r={type:"Abbreviation",children:fe(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var r;let i;if(o=!0,Array.isArray(t.text)){if(void 0!==e&&e>=0&&e<n.length)return n[e];i=void 0!==e?t.text[e]:t.text.join("\n")}else i=null!==(r=t.text)&&void 0!==r?r:"";return i},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!o){const e=ve(xe(r.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;ke(e,n),"a"===e.name&&t.href&&function(e,t){var n;let o="";ce.test(t)?(o=t,/\w+:/.test(o)||o.startsWith("//")||(o=`http://${o}`)):ue.test(t)&&(o=`mailto:${t}`);const r=null===(n=e.attributes)||void 0===n?void 0:n.find((e=>"href"===e.name));r?r.value||(r.value=[o]):(e.attributes||(e.attributes=[]),e.attributes.push({name:"href",value:[o],valueType:"doubleQuote"}))}(e,n)}}return r}(function(e,t={}){const n={tokens:o=e,start:0,pos:0,size:o.length};var o;const r=k(n,t);if(y(n))throw v(n,"Unexpected character");return r}("string"==typeof e?function(e){const t=new f(e),n=[],o={group:0,attribute:0,expression:0,quote:0};let r,i=0;for(;!t.eof();){if(i=t.peek(),r=Y(t,o),!r)throw t.error("Unexpected character");n.push(r),"Quote"===r.type?o.quote=i===o.quote?0:i:"Bracket"===r.type&&(o[r.context]+=r.open?1:-1)}return n}(e):e,t),t)}catch(t){throw t instanceof d&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}var $e,Ce;function Se(e,t){return function(e){const t=e.pos;if(e.eat(Ce.Dollar)&&e.eat(Ce.CurlyBracketOpen)){let n;e.start=e.pos;let o="";if(e.eatWhile(s)?(n=Number(e.current()),o=e.eat(Ce.Colon)?ze(e):""):l(e.peek())&&(o=ze(e)),e.eat(Ce.CurlyBracketClose))return{type:"Field",index:n,name:o,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(e.eat(Ce.Dash)&&e.eat(Ce.Dash))return e.start=t,e.eatWhile(Te),{type:"CustomProperty",value:e.current(),start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(Ce.Dash);const n=e.pos,o=e.eatWhile(s),r=e.pos;if(e.eat(Ce.Dot)){const t=e.eatWhile(s);o||t||(e.pos=r)}return e.pos===n&&(e.pos=t),e.pos!==t}(e)){e.start=t;const n=e.current();return e.start=e.pos,e.eat(Ce.Percent)||e.eatWhile(u),{type:"NumberValue",value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(Ce.Hash)){const n=e.pos;let o="",r="";if(e.eatWhile(qe)?(o=e.substring(n,e.pos),r=_e(e)):e.eat(Ce.Transparent)?(o="0",r=_e(e)||"0"):r=_e(e),o||r||e.eof()){const{r:n,g:i,b:a,a:s}=function(e,t){let n="0",o="0",r="0",i=Number(null!=t&&""!==t?t:1);if("t"===e)i=0;else switch(e.length){case 0:break;case 1:n=o=r=e+e;break;case 2:n=o=r=e;break;case 3:n=e[0]+e[0],o=e[1]+e[1],r=e[2]+e[2];break;default:n=(e+=e).slice(0,2),o=e.slice(2,4),r=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(o,16),b:parseInt(r,16),a:i}}(o,r);return{type:"ColorValue",r:n,g:i,b:a,a:s,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return Ee(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let o=!1;if(m(t)){for(e.pos++;!e.eof();){if(e.eat(t)){o=!0;break}e.pos++}return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(o?1:0)),quote:t===Ce.SingleQuote?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return e===Ce.RoundBracketOpen||e===Ce.RoundBracketClose}(t))return{type:"Bracket",open:t===Ce.RoundBracketOpen,start:e.pos++,end:e.pos}}(e)||je(e)||function(e){const t=e.pos;if(e.eatWhile(p))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;if(e.eat(Le)?e.eatWhile(n?Te:Be):e.eat(u)?e.eatWhile(t?Be:Te):(e.eat(Ce.Dot),e.eatWhile(Be)),n!==e.pos)return e.start=n,Ee(e,e.start=n)}(e,t)}function ze(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(Ce.CurlyBracketOpen))t.push(e.pos);else if(e.eat(Ce.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function Ee(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function _e(e){const t=e.pos;return e.eat(Ce.Dot)?(e.start=t,e.eatWhile(s)?e.current():"1"):""}function je(e){const t=(n=e.peek())===Ce.Sibling&&$e.Sibling||n===Ce.Excl&&$e.Important||n===Ce.Comma&&$e.ArgumentDelimiter||n===Ce.Colon&&$e.PropertyDelimiter||n===Ce.Dash&&$e.ValueDelimiter||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function Le(e){return e===Ce.At||e===Ce.Dollar}function qe(e){return s(e)||l(e,65,70)}function Te(e){return c(e)||e===Ce.Dash}function Be(e){return u(e)||e===Ce.Percent||e===Ce.Slash}function Ae(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function Oe(e,t){let n=0,o=0;for(;t.length;){const e=(r=t)[r.length-1];if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,o||(o=e.end),t.pop()}var r;n!==o&&t.push(Ee(e,n,o))}function Ne(e){return e.tokens[e.pos]}function Re(e){return e.pos<e.size}function He(e,t){return!!t(Ne(e))&&(e.pos++,!0)}function Ie(e,t,n=Ne(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function De(e,t){let n,o,r=!1;const i=[],a=Ne(e),s=!!t.value;for(s||!We(a)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&We(t)&&"Bracket"===n.type}(e)||(e.pos++,n=a.value,He(e,et)),s&&He(e,Qe);Re(e);)if(He(e,Je))r=!0;else if(o=Pe(e,s))i.push(o);else if(!He(e,Ye))break;if(n||i.length||r)return{name:n,value:i,important:r}}function Pe(e,t){const n=[];let o,r;for(;Re(e);)if(o=Ne(e),Ke(o))e.pos++,We(o)&&(r=Me(e))?n.push({type:"FunctionCall",name:o.value,arguments:r}):n.push(o);else{if(!(et(o)||t&&Qe(o)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function Me(e){const t=e.pos;if(He(e,Ve)){const n=[];let o;for(;Re(e)&&!He(e,Ue);)if(o=Pe(e,!0))n.push(o);else if(!He(e,Qe)&&!He(e,Xe))throw Ie(e,"Unexpected token");return e.start=t,n}}function We(e){return e&&"Literal"===e.type}function Fe(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function Ve(e){return Fe(e,!0)}function Ue(e){return Fe(e,!1)}function Qe(e){return e&&"WhiteSpace"===e.type}function Ze(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function Ge(e){return Ze(e,$e.Sibling)}function Xe(e){return Ze(e,$e.ArgumentDelimiter)}function Ye(e){return Xe(e)}function Je(e){return Ze(e,$e.Important)}function Ke(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type||"CustomProperty"===e.type}function et(e){return Ze(e,$e.PropertyDelimiter)||Ze(e,$e.ValueDelimiter)}function tt(e,t){try{const n="string"==typeof e?function(e,t){let n,o=0;const r=new f(e),i=[];for(;!r.eof();){if(n=Se(r,0===o&&!t),!n)throw r.error("Unexpected character");if("Bracket"===n.type&&(!o&&n.open&&Oe(r,i),o+=n.open?1:-1,o<0))throw r.error("Unexpected bracket",n.start);i.push(n),Ae(n)&&(n=je(r))&&i.push(n)}return i}(e,t&&t.value):e;return function(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),o=[];let r;for(;Re(n);)if(r=De(n,t))o.push(r);else if(!He(n,Ge))throw Ie(n,"Unexpected token");return o}(n,t)}catch(t){throw t instanceof d&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function nt(e,t,n){if(e&&t){e.length&&n&&rt(e,n);for(const n of t)rt(e,n);return e}const o=e||t;return o&&o.slice()}function ot(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),"expression"!==e.valueType&&(e.valueType=t.valueType),e}function rt(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function it(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];if(t(o))return o;const r=it(o,t);if(r)return r}}function at(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function st(e){return"AbbreviationNode"===e.type}function lt(e,t,n){let o=[];for(const n of e.children){const e=t(n);if(e){o=o.concat(e.children);const r=at(e);st(r.node)&&(r.node.children=r.node.children.concat(lt(n,t)))}else o.push(n),n.children=lt(n,t)}return e.children=o}!function(e){e.Sibling="+",e.Important="!",e.ArgumentDelimiter=",",e.ValueDelimiter="-",e.PropertyDelimiter=":"}($e||($e={})),function(e){e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Colon=58]="Colon",e[e.Comma=44]="Comma",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Percent=37]="Percent",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Sibling=43]="Sibling",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Transparent=116]="Transparent",e[e.Slash=47]="Slash"}(Ce||(Ce={}));const ct="{",ut="}";function pt(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function mt(e,t){vt(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function ft(e,t){const n=t.split(/\r\n|\r|\n/g);for(let t=0,o=n.length-1;t<=o;t++)mt(e,n[t]),t!==o&&dt(e,!0)}function dt(e,t){const n=e.options["output.baseIndent"];mt(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){mt(e,e.options["output.indent"].repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function bt(e,t,n){vt(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function gt(e,t){return kt(e,t.options["output.attributeCase"])}function ht(e,t,n){return"expression"===e.valueType?n?ct:ut:"single"===t.options["output.attributeQuotes"]?"'":'"'}function yt(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function xt(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?xt(e.name,t):Boolean(e.value&&!e.attributes)}function vt(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function kt(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const wt={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function $t(e,t,n){const o=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(st(n))return n}}(t),r=n.context?n.context.name:"",i=((o?o.name:r)||"").toLowerCase();e.name=wt[i]||(xt(i,n)?"span":"div")}const Ct={ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]}},St=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function zt(e,t){return Math.floor(Math.random()*(t-e)+e)}function Et(e,t){const n=e.length,o=Math.min(n,t),r=[];for(;r.length<o;){const t=e[zt(0,n)];r.includes(t)||r.push(t)}return r}function _t(e,t){var n;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||"?!..."[zt(0,4)])}function jt(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let o=0;o=t>3&&t<=6?zt(0,1):t>6&&t<=12?zt(0,2):zt(1,4);for(let r,i=0;i<o;i++)r=zt(0,t-2),n.test(e[r])||(e[r]+=",");return e}function Lt(e,t,n){const o=[];let r,i=0;for(n&&e.common&&(r=e.common.slice(0,t),i+=r.length,o.push(_t(jt(r),".")));i<t;)r=Et(e.words,Math.min(zt(2,30),t-i)),i+=r.length,o.push(_t(jt(r)));return o.join(" ")}function qt(e){return"select"!==e.name}const Tt=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,Bt=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,At=e=>/^[a-z]\-/i.test(e),Ot=e=>/^[a-z]/i.test(e);function Nt(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=Mt(n.value);break}e._bem=Rt(t)}return e._bem}function Rt(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:It(t)}}function Ht(e,t=0,n){let o=Math.max(e.length-t,0);do{const t=e[o];if(t){const e=Nt(t);if(e.block)return e.block}}while(0<o--);if(n){const e=function(e){return e._bem||(e._bem=Rt(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function It(e){return Dt(e,At)||Dt(e,Ot)||void 0}function Dt(e,t){for(const n of e){if(Tt.test(n)||Bt.test(n))break;if(t(n))return n}}function Pt(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function Mt(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function Wt(e,t,n){return!!e&&n.indexOf(e)===t}function Ft(e){if("label"===e.name){const t=it(e,(e=>"input"===e.name||"textarea"===e.name));t&&(e.attributes&&(e.attributes=e.attributes.filter((e=>!("for"===e.name&&Vt(e))))),t.attributes&&(t.attributes=t.attributes.filter((e=>!("id"===e.name&&Vt(e))))))}}function Vt(e){if(!e.value)return!0;if(1===e.value.length){const t=e.value[0];if(t&&"string"!=typeof t&&!t.name)return!0}return!1}function Ut(e,t,n){const o=(e,o,i)=>{const{parent:a,current:s}=n;n.parent=s,n.current=e,t(e,o,i,n,r),n.current=s,n.parent=a},r=(e,t,r)=>{n.ancestors.push(n.current),o(e,t,r),n.ancestors.pop()};e.children.forEach(o)}function Qt(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:pt(e.options)}}const Zt=[{type:"Field",index:0,name:""}];function Gt(e){return!!e&&!e.name&&!e.attributes}function Xt(e,t){return!!e&&xt(e,t)}function Yt(e){return"object"==typeof e&&"Field"===e.type}function Jt(e,t){const{out:n}=t;let o=-1;for(const r of e)"string"==typeof r?ft(n,r):(bt(n,t.field+r.index,r.name),r.index>o&&(o=r.index));-1!==o&&(t.field+=o+1)}function Kt(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}var en;function tn(e){const t=[],n={pos:0,text:e};let o,r=n.pos,i=n.pos;for(;n.pos<n.text.length;)i=n.pos,(o=nn(n))?(r!==n.pos&&t.push(e.slice(r,i)),t.push(o),r=n.pos):n.pos++;return r!==n.pos&&t.push(e.slice(r)),t}function nn(e){if(on(e)===en.Start){const t=++e.pos;let n=t,o=t,r=1;for(;e.pos<e.text.length;){const i=on(e);if(rn(i)){for(n=e.pos;an(on(e));)e.pos++;o=e.pos}else{if(i===en.Start)r++;else if(i===en.End&&0==--r)return{before:e.text.slice(t,n),after:e.text.slice(o,e.pos++),name:e.text.slice(n,o)};e.pos++}}}}function on(e,t=e.pos){return e.text.charCodeAt(t)}function rn(e){return e>=65&&e<=90}function an(e){return rn(e)||e>47&&e<58||e===en.Underscore||e===en.Dash}function sn(e,t){const{comment:n}=t;if(!(n.enabled&&n.trigger&&e.name&&e.attributes))return!1;for(const t of e.attributes)if(t.name&&n.trigger.includes(t.name))return!0;return!1}function ln(e,t,n){const o={},{out:r}=n;for(const t of e.attributes)t.name&&t.value&&(o[t.name.toUpperCase()]=t.value);for(const e of t)"string"==typeof e?ft(r,e):o[e.name]&&(ft(r,e.before),Jt(o[e.name],n),ft(r,e.after))}!function(e){e[e.Start=91]="Start",e[e.End=93]="End",e[e.Underscore=95]="Underscore",e[e.Dash=45]="Dash"}(en||(en={}));const cn=/^<([\w\-:]+)[\s>]/,un=new Set(["for","while","of","async","await","const","let","var","continue","break","debugger","do","export","import","in","instanceof","new","return","switch","this","throw","try","catch","typeof","void","with","yield"]);function pn(e,t){const n=Qt(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?tn(t["comment.before"]):void 0,after:t["comment.after"]?tn(t["comment.after"]):void 0}}(t),Ut(e,mn,n),n.out.value}function mn(e,t,n,o,r){const{out:i,config:a}=o,s=bn(e,t,n,o),l=function(e){const{config:t,parent:n}=e;return!n||Gt(n)||n.name&&t.options["output.formatSkip"].includes(n.name)?0:1}(o);if(i.level+=l,s&&dt(i,!0),e.name){const t=function(e,t){return kt(e,t.options["output.tagCase"])}(e.name,a);if(function(e,t){sn(e,t)&&t.comment.before&&ln(e,t.comment.before,t)}(e,o),ft(i,`<${t}`),e.attributes)for(const t of e.attributes)Kt(t)&&fn(t,o);if(!e.selfClosing||e.children.length||e.value){if(ft(i,">"),!dn(e,o,r)){if(e.value){const t=e.value.some(gn)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=cn.exec(e[0]);if((null==n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,a);t&&dt(o.out,++i.level),Jt(e.value,o),t&&dt(o.out,--i.level)}if(e.children.forEach(r),!e.value&&!e.children.length){const t=a.options["output.formatLeafNode"]||a.options["output.formatForce"].includes(e.name);t&&dt(o.out,++i.level),Jt(Zt,o),t&&dt(o.out,--i.level)}}ft(i,`</${t}>`),function(e,t){sn(e,t)&&t.comment.after&&ln(e,t.comment.after,t)}(e,o)}else ft(i,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(a)}>`)}else!dn(e,o,r)&&e.value&&(Jt(e.value,o),e.children.forEach(r));if(s&&t===n.length-1&&o.parent){const e=Gt(o.parent)?0:1;dt(i,i.level-e)}i.level-=l}function fn(e,t){const{out:n,config:o}=t;if(e.name){const r=o.options["markup.attributes"],i=o.options["markup.valuePrefix"];let{name:a,value:s}=e,l=ht(e,o,!0),c=ht(e,o);r&&(a=hn(a,r,e.multiple)||a),a=gt(a,o),o.options["jsx.enabled"]&&e.multiple&&(l=ct,c=ut);const u=i?hn(e.name,i,e.multiple):null;if(u&&1===(null==s?void 0:s.length)&&"string"==typeof s[0]){const e=s[0];s=[yn(e)?`${u}.${e}`:`${u}['${e}']`],o.options["jsx.enabled"]&&(l=ct,c=ut)}yt(e,o)&&!s?o.options["output.compactBoolean"]||(s=[a]):s||(s=Zt),ft(n," "+a),s?(ft(n,"="+l),Jt(s,t),ft(n,c)):"html"!==o.options["output.selfClosingStyle"]&&ft(n,"="+l+c)}}function dn(e,t,n){if(e.value&&e.children.length){const o=e.value.findIndex(Yt);if(-1!==o){Jt(e.value.slice(0,o),t);const r=t.out.line;let i=o+1;return e.children.forEach(n),t.out.line!==r&&"string"==typeof e.value[i]&&ft(t.out,e.value[i++].trimLeft()),Jt(e.value.slice(i),t),!0}}return!1}function bn(e,t,n,o){const{config:r,parent:i}=o;if(!r.options["output.format"])return!1;if(0===t&&!i)return!1;if(i&&Gt(i)&&1===n.length)return!1;if(Gt(e)&&(Gt(n[t-1])||Gt(n[t+1])||e.value.some(gn)||e.value.some(Yt)&&e.children.length))return!0;if(xt(e,r)){if(0===t){for(let e=0;e<n.length;e++)if(!xt(n[e],r))return!0}else if(!xt(n[t-1],r))return!0;if(r.options["output.inlineBreak"]){let e=1,o=t,i=t;for(;Xt(n[--o],r);)e++;for(;Xt(n[++i],r);)e++;if(e>=r.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(bn(e.children[t],t,e.children,o))return!0;return!1}return!0}function gn(e){return"string"==typeof e&&/\r|\n/.test(e)}function hn(e,t,n){return n&&t[`${e}*`]||t[e]}function yn(e){return!un.has(e)&&/^[a-zA-Z_$][\w_$]*$/.test(e)}function xn(e,t,n){const o=Qt(t);return o.options=n||{},Ut(e,vn,o),o.out.value}function vn(e,t,n,o,r){const{out:i,options:a}=o,{primary:s,secondary:l}=function(e){const t=[],n=[];if(e.attributes)for(const o of e.attributes)kn(o)?t.push(o):n.push(o);return{primary:t,secondary:n}}(e),c=o.parent?1:0;i.level+=c,function(e,t,n,o){return!(!o.parent&&0===t)&&!Gt(e)}(e,t,0,o)&&dt(i,!0),!e.name||"div"===e.name&&s.length||ft(i,(a.beforeName||"")+e.name+(a.afterName||"")),function(e,t){for(const n of e)n.value&&("class"===n.name?(ft(t.out,"."),Jt(n.value.map((e=>"string"==typeof e?e.replace(/\s+/g,"."):e)),t)):(ft(t.out,"#"),Jt(n.value,t)))}(s,o),function(e,t){if(e.length){const{out:n,config:o,options:r}=t;r.beforeAttribute&&ft(n,r.beforeAttribute);for(let i=0;i<e.length;i++){const a=e[i];ft(n,gt(a.name||"",o)),yt(a,o)&&!a.value?!o.options["output.compactBoolean"]&&r.booleanValue&&ft(n,"="+r.booleanValue):(ft(n,"="+ht(a,o,!0)),Jt(a.value||Zt,t),ft(n,ht(a,o))),i!==e.length-1&&r.glueAttribute&&ft(n,r.glueAttribute)}r.afterAttribute&&ft(n,r.afterAttribute)}}(l.filter(Kt),o),!e.selfClosing||e.value||e.children.length?(function(e,t){if(!e.value&&e.children.length)return;const n=e.value||Zt,o=function(e){const t=[];let n=[];for(const o of e)if("string"==typeof o){const e=o.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(o);return n.length&&t.push(n),t}(n),{out:r,options:i}=t;if(1===o.length)(e.name||e.attributes)&&mt(r," "),Jt(n,t);else{const e=[];let n=0;for(const t of o){const o=wn(t);e.push(o),o>n&&(n=o)}r.level++;for(let a=0;a<o.length;a++)dt(r,!0),i.beforeTextLine&&mt(r,i.beforeTextLine),Jt(o[a],t),i.afterTextLine&&(mt(r," ".repeat(n-e[a])),mt(r,i.afterTextLine));r.level--}}(e,o),e.children.forEach(r)):o.options.selfClose&&ft(i,o.options.selfClose),i.level-=c}function kn(e){return"class"===e.name||"id"===e.name}function wn(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}const $n={html:pn,haml:function(e,t){return xn(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return xn(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return xn(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function Cn(e,t,n){!function(e,t,n){!e.name&&e.attributes&&$t(e,t,n)}(e,t,n),function(e,t){if(!e.attributes)return;const n=[],o={};for(const r of e.attributes)if(r.name){const e=r.name;if(e in o){const n=o[e];"class"===e?n.value=nt(n.value,r.value," "):ot(n,r,t)}else n.push(o[e]=Object.assign({},r))}else n.push(r);e.attributes=n}(e,n),function(e,t,n){let o;if(e.name&&(o=e.name.match(St))){const r=Ct[o[1]]||Ct.latin,i=o[2]?Math.max(1,Number(o[2])):30,a=zt(i,o[3]?Math.max(i,Number(o[3].slice(1))):i),s=e.repeat||function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("AbbreviationNode"===n.type&&n.repeat)return n.repeat}}(t);e.name=e.attributes=void 0,e.value=[Lt(r,a,!s||0===s.value)],e.repeat&&t.length>1&&$t(e,t,n)}}(e,t,n),"xsl"===n.syntax&&function(e){var t;"xsl:variable"!==(t=e.name)&&"xsl:with-param"!==t||!e.attributes||!e.children.length&&!e.value||(e.attributes=e.attributes.filter(qt))}(e),"markup"===n.type&&Ft(e),n.options["bem.enabled"]&&function(e,t,n){!function(e){const t=Nt(e),n=[];for(const e of t.classNames){const t=e.indexOf("_");t>0&&!e.startsWith("-")?(n.push(e.slice(0,t)),n.push(e.slice(t))):n.push(e)}n.length&&(t.classNames=n.filter(Wt),t.block=It(t.classNames),Pt(e,t.classNames.join(" ")))}(e),function(e,t,n){const o=Nt(e),r=[],{options:i}=n,a=t.slice(1).concat(e);for(let e of o.classNames){let t,o="";const s=e;(t=e.match(Tt))&&(o=Ht(a,t[1].length,n.context)+i["bem.element"]+t[2],r.push(o),e=e.slice(t[0].length)),(t=e.match(Bt))&&(o||(o=Ht(a,t[1].length),r.push(o)),r.push(`${o}${i["bem.modifier"]}${t[2]}`),e=e.slice(t[0].length)),e===s&&r.push(s)}const s=r.filter(Wt);s.length&&Pt(e,s.join(" "))}(e,t,n)}(e,t,n)}var Sn;!function(e){e.Raw="Raw",e.Property="Property"}(Sn||(Sn={}));const zn=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,En={value:!0};function jn(e,t){const n=t.match(zn);if(n){const t={},o=n[2]?n[2].split("|").map(qn):[];for(const e of o)for(const n of e)Bn(n,t);return{type:Sn.Property,key:e,property:n[1],value:o,keywords:t,dependencies:[]}}return{type:Sn.Raw,key:e,value:t}}function Ln(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function qn(e){return tt(e.trim(),En)[0].value}function Tn(e){return e.type===Sn.Property}function Bn(e,t){for(const n of e.value)if("Literal"===n.type)t[n.value]=n;else if("FunctionCall"===n.type)t[n.name]=n;else if("Field"===n.type){const e=n.name.trim();e&&(t[e]={type:"Literal",value:e})}}function An(e,t,n=!1){if((e=e.toLowerCase())===(t=t.toLowerCase()))return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const o=e.length,r=t.length;if(!n&&o>r)return 0;const i=Math.min(o,r),a=Math.max(o,r);let s=1,l=1,c=a,u=0,p=0,m=!1,f=!1;for(;s<o;){for(u=e.charCodeAt(s),m=!1,f=!1;l<r;){if(p=t.charCodeAt(l),u===p){m=!0,c+=a-(f?s:l);break}f=45===p,l++}if(!m){if(!n)return 0;break}s++}const d=a-i;return c*(s/a)/(On(a)-On(d))}function On(e){return e*(e+1)/2}function Nn(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&Hn(e.r)&&Hn(e.g)&&Hn(e.b)?In:Dn;return"#"+n(e.r)+n(e.g)+n(e.b)}(e,t):function(e){const t=[e.r,e.g,e.b];return 1!==e.a&&t.push(Rn(e.a,8)),`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function Rn(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function Hn(e){return!(e%17)}function In(e){return(e>>4).toString(16)}function Dn(e){return function(e,t){for(;e.length<2;)e="0"+e;return e}(e.toString(16))}const Pn={Global:"@@global",Section:"@@section",Property:"@@property",Value:"@@value"};function Mn(e,t,n){const o=n.options["stylesheet.json"];if(e.name)ft(t,(o?e.name.replace(/\-(\w)/g,((e,t)=>t.toUpperCase())):e.name)+n.options["stylesheet.between"]),e.value.length?function(e,t,n){const o=n.options["stylesheet.json"],r=o?function(e){if(1===e.value.length){const t=e.value[0];if(1===t.value.length&&"NumberValue"===t.value[0].type)return t.value[0]}}(e):null;if(!r||r.unit&&"px"!==r.unit){const r=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(n);o&&mt(t,r);for(let o=0;o<e.value.length;o++)0!==o&&mt(t,", "),Fn(e.value[o],t,n);o&&mt(t,r)}else mt(t,String(r.value))}(e,t,n):bt(t,0,""),o?mt(t,","):(Wn(e,t,!0),mt(t,n.options["stylesheet.after"]));else{for(const o of e.value)for(const e of o.value)Vn(e,t,n);Wn(e,t,e.value.length>0)}}function Wn(e,t,n){e.important&&(n&&mt(t," "),mt(t,"!important"))}function Fn(e,t,n){for(let o=0,r=-1;o<e.value.length;o++){const i=e.value[o];0===o||"Field"===i.type&&i.start===r||mt(t," "),Vn(i,t,n),r=i.end}}function Vn(e,t,n){if("ColorValue"===e.type)mt(t,Nn(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type||"CustomProperty"===e.type)ft(t,e.value);else if("NumberValue"===e.type)ft(t,Rn(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";ft(t,n+e.value+n)}else if("Field"===e.type)bt(t,e.index,e.name);else if("FunctionCall"===e.type){mt(t,e.name+"(");for(let o=0;o<e.arguments.length;o++)o&&mt(t,", "),Fn(e.arguments[o],t,n);mt(t,")")}}const Un="lg";function Qn(e,t,n){if(!function(e,t){let n=null;const o=1===e.value.length?e.value[0]:null;if(o&&1===o.value.length){const e=o.value[0];"FunctionCall"===e.type&&e.name===Un&&(n=e)}return!(!n&&e.name!==Un)&&(n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[Jn(eo(0,""))]},t.context||(e.name="background-image"),e.value=[Jn(n)],!0)}(e,n)){const o=n.options["stylesheet.fuzzySearchMinScore"];if(oo(n)){const r=n.context.name,i=t.find((e=>e.type===Sn.Property&&e.property===r));Zn(e,n,i,o),e.snippet=i}else if(e.name){const r=Gn(e.name,t,o,!0);if(e.snippet=r,r){const t=r.type===Sn.Property?function(e,t,n){const o=function(e,t){for(let n=0,o=0;n<e.length;n++){if(o=t.indexOf(e[n],o),-1===o)return e.slice(n);o++}return""}(e.name,t.key);if(o){if(e.value.length)return null;const r=Yn(o,n,t);if(!r)return null;e.value.push(Jn(r))}if(e.name=t.property,e.value.length)Zn(e,n,t);else if(t.value.length){const o=t.value[0];e.value=1===t.value.length||o.some(to)?o:o.map((e=>no(e,n)))}return e}(e,r,n):function(e,t){let n,o=0;const r=/\$\{(\d+)(:[^}]+)?\}/g,i=e.value[0],a=[];for(;n=r.exec(t.value);)o!==n.index&&a.push(Kn(t.value.slice(o,n.index))),o=n.index+n[0].length,i&&i.value.length?a.push(i.value.shift()):a.push(eo(Number(n[1]),n[2]?n[2].slice(1):""));const s=t.value.slice(o);return s&&a.push(Kn(s)),e.name=void 0,e.value=[Jn(...a)],e}(e,r);if(t)e=t;else if(n.options["stylesheet.strictMatch"])return null}}}return(e.name||n.context)&&function(e,t){const n=t.options["stylesheet.unitAliases"],o=t.options["stylesheet.unitless"];for(const r of e.value)for(const i of r.value)"NumberValue"===i.type&&(i.unit?i.unit=n[i.unit]||i.unit:0===i.value||o.includes(e.name)||(i.unit=i.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,n),e}function Zn(e,t,n,o){for(const r of e.value){const e=[];for(const i of r.value)if("Literal"===i.type)e.push(Yn(i.value,t,n,o)||i);else if("FunctionCall"===i.type){const r=Yn(i.name,t,n,o);r&&"FunctionCall"===r.type?e.push(Object.assign(Object.assign({},r),{arguments:i.arguments.concat(r.arguments.slice(i.arguments.length))})):e.push(i)}else e.push(i);r.value=e}}function Gn(e,t,n=0,o=!1){let r=null,i=0;for(const n of t){const t=An(e,Xn(n),o);if(1===t)return n;t&&t>=i&&(i=t,r=n)}return i>=n?r:null}function Xn(e){return"string"==typeof e?e:e.key}function Yn(e,t,n,o){let r;if(n){if(r=Gn(e,Object.keys(n.keywords),o))return n.keywords[r];for(const t of n.dependencies)if(r=Gn(e,Object.keys(t.keywords),o))return t.keywords[r]}return(r=Gn(e,t.options["stylesheet.keywords"],o))?Kn(r):null}function Jn(...e){return{type:"CSSValue",value:e}}function Kn(e){return{type:"Literal",value:e}}function eo(e,t){return{type:"Field",index:e,name:t}}function to(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(to))return!0;return!1}function no(e,t,n={index:1}){let o=[];for(const r of e.value)switch(r.type){case"ColorValue":o.push(eo(n.index++,Nn(r,t.options["stylesheet.shortHex"])));break;case"Literal":o.push(eo(n.index++,r.value));break;case"NumberValue":o.push(eo(n.index++,`${r.value}${r.unit}`));break;case"StringValue":const e="single"===r.quote?"'":'"';o.push(eo(n.index++,e+r.value+e));break;case"FunctionCall":o.push(eo(n.index++,r.name),Kn("("));for(let e=0,i=r.arguments.length;e<i;e++)o=o.concat(no(r.arguments[e],t,n).value),e!==i-1&&o.push(Kn(", "));o.push(Kn(")"));break;default:o.push(r)}return Object.assign(Object.assign({},e),{value:o})}function oo(e){return!(!e.context||e.context.name!==Pn.Value&&e.context.name.startsWith("@@"))}const ro={markup:"html",stylesheet:"css"},io={type:"markup",syntax:"html",variables:{lang:"en",locale:"en-US",charset:"UTF-8",indentation:"\t",newline:"\n"},snippets:{},options:{inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"\t","output.baseIndent":"","output.newline":"\n","output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0,"stylesheet.strictMatch":!1}},ao={markup:{snippets:so({a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:refresh":"meta[http-equiv=refresh content='${1:5}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]","script:module":"script[type=module src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1}]","tarea:c|textarea:cols":"textarea[name=${1} id=${1} cols=${2:30}]","tarea:r|textarea:rows":"textarea[name=${1} id=${1} rows=${3:10}]","tarea:cr|textarea:cols:rows":"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:b|button:b|button:button":"button[type=button]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command",data:"data[value]",meter:"meter[value]",time:"time[datetime]","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:so({"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0,"markup.attributes":{class:"className","class*":"styleName",for:"htmlFor"},"markup.valuePrefix":{"class*":"styles"}}},vue:{options:{"markup.attributes":{"class*":":class"}}},svelte:{options:{"jsx.enabled":!0}},pug:{snippets:so({"!!!":"{doctype html}"})},stylesheet:{snippets:so({"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${2});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bbs:"border-block-start",bbe:"border-block-end",bis:"border-inline-start",bie:"border-inline-end",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}","bg:n":"background: none",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:${1:#fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bs:"block-size",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cg:"column-gap",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|contents|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",g:"gap",gtc:"grid-template-columns:repeat(${0})|minmax()",gtr:"grid-template-rows:repeat(${0})|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",is:"inline-size",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",mbs:"margin-block-start",mbe:"margin-block-end",mis:"margin-inline-start",mie:"margin-inline-end",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width:thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",pbs:"padding-block-start",pbe:"padding-block-end",pis:"padding-inline-start",pie:"padding-inline-end",spbs:"scroll-padding-block-start",spbe:"scroll-padding-block-end",spis:"scroll-padding-inline-start",spie:"scroll-padding-inline-end",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rg:"row-gap",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub","w|wid":"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wido:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"})},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function so(e){const t={};return Object.keys(e).forEach((n=>{for(const o of n.split("|"))t[o]=e[n]})),t}function lo(e={},t={}){const n=e.type||"markup",o=e.syntax||ro[n];return Object.assign(Object.assign(Object.assign({},io),e),{type:n,syntax:o,variables:co(n,o,"variables",e,t),snippets:co(n,o,"snippets",e,t),options:co(n,o,"options",e,t)})}function co(e,t,n,o,r={}){const i=ao[e],a=r[e],s=ao[t],l=r[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},io[n]),i&&i[n]),s&&s[n]),a&&a[n]),l&&l[n]),o[n])}function uo(e,t=0){return{text:e,start:t,pos:e.length}}function po(e){return e.pos===e.start}function mo(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function fo(e){if(!po(e))return e.text.charCodeAt(--e.pos)}function bo(e,t){if(po(e))return!1;const n="function"==typeof t?t(mo(e)):t===mo(e);return n&&e.pos--,!!n}function go(e,t){const n=e.pos;for(;bo(e,t););return e.pos<n}var ho,yo;function xo(e){return e===ho.SingleQuote||e===ho.DoubleQuote}!function(e){e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Escape=92]="Escape"}(ho||(ho={})),function(e){e[e.SquareL=91]="SquareL",e[e.SquareR=93]="SquareR",e[e.RoundL=40]="RoundL",e[e.RoundR=41]="RoundR",e[e.CurlyL=123]="CurlyL",e[e.CurlyR=125]="CurlyR"}(yo||(yo={}));const vo={[yo.SquareL]:yo.SquareR,[yo.RoundL]:yo.RoundR,[yo.CurlyL]:yo.CurlyR};var ko;function wo(e){const t=e.pos;if(!bo(e,ko.AngleRight))return!1;let n=!1;for(bo(e,ko.Slash);!po(e);){if(go(e,Eo),So(e)){if(bo(e,ko.Slash)){n=bo(e,ko.AngleLeft);break}if(bo(e,ko.AngleLeft)){n=!0;break}if(bo(e,Eo))continue;if(bo(e,ko.Equals)){if(So(e))continue;break}if(Co(e)){n=!0;break}break}if(!$o(e))break}return e.pos=t,n}function $o(e){return function(e){const t=e.pos;return!!(function(e){const t=e.pos,n=fo(e);if(xo(n))for(;!po(e);)if(fo(e)===n&&mo(e)!==ho.Escape)return!0;return e.pos=t,!1}(e)&&bo(e,ko.Equals)&&So(e))||(e.pos=t,!1)}(e)||Co(e)}function Co(e){const t=e.pos,n=[];for(;!po(e);){const t=mo(e);if(Lo(t))n.push(t);else if(jo(t)){if(n.pop()!==vo[t])break}else if(!_o(t))break;e.pos--}return!(t===e.pos||!bo(e,ko.Equals)||!So(e))||(e.pos=t,!1)}function So(e){return go(e,zo)}function zo(e){return e===ko.Colon||e===ko.Dash||function(e){return(e&=-33)>=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function Eo(e){return e===ko.Space||e===ko.Tab}function _o(e){return!isNaN(e)&&e!==ko.Equals&&!Eo(e)&&!xo(e)}function jo(e){return e===yo.CurlyL||e===yo.RoundL||e===yo.SquareL}function Lo(e){return e===yo.CurlyR||e===yo.RoundR||e===yo.SquareR}!function(e){e[e.Tab=9]="Tab",e[e.Space=32]="Space",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Equals=61]="Equals",e[e.AngleLeft=60]="AngleLeft",e[e.AngleRight=62]="AngleRight"}(ko||(ko={}));const qo=e=>e.charCodeAt(0),To="#.*:$-_!@%^+>/".split("").map(qo),Bo={type:"markup",lookAhead:!0,prefix:""};function Ao(e,t,n){const o=e.pos;if(bo(e,t))for(;!po(e);){if(bo(e,n))return!0;e.pos--}return e.pos=o,!1}function Oo(e,t){const n=e.pos;let o=!1;for(let n=t.length-1;n>=0&&!po(e)&&bo(e,t[n]);n--)o=0===n;return o||(e.pos=n),o}function No(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||To.includes(e)}function Ro(e,t){return e===yo.RoundL||"markup"===t&&(e===yo.SquareL||e===yo.CurlyL)}function Ho(e,t){return e===yo.RoundR||"markup"===t&&(e===yo.SquareR||e===yo.CurlyR)}function Io(e,t){const n=lo(t);return"stylesheet"===n.type?function(e,t){return function(e,t){var n;const o=pt(t.options),r=t.options["output.format"];(null===(n=t.context)||void 0===n?void 0:n.name)===Pn.Section&&(e=e.filter((e=>e.snippet)));for(let n=0;n<e.length;n++)r&&0!==n&&dt(o,!0),Mn(e[n],o,t);return o.value}(function(e,t){var n;const o=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||function(e){const t=[];for(const n of Object.keys(e))t.push(jn(n,e[n]));return function(e){e=e.slice().sort(Ln);const t=[];let n;for(const o of e.filter(Tn)){for(;t.length;){if(n=t[t.length-1],o.property.startsWith(n.property)&&45===o.property.charCodeAt(n.property.length)){n.dependencies.push(o),t.push(o);break}t.pop()}t.length||t.push(o)}return e}(t)}(t.snippets),r=[];t.cache&&(t.cache.stylesheetSnippets=o),"string"==typeof e&&(e=tt(e,{value:oo(t)}));const i=function(e,t){if(t.context){if(t.context.name===Pn.Section)return e.filter((e=>e.type===Sn.Raw));if(t.context.name===Pn.Property)return e.filter((e=>e.type===Sn.Property))}return e}(o,t);for(const n of e){const e=Qn(n,i,t);e&&r.push(e)}return r}(e,t),t)}(e,n):function(e,t){return function(e,t){return($n[t.syntax]||pn)(e,t)}(function(e,t){let n;if("string"==typeof e){const o=Object.assign({},t);t.options["jsx.enabled"]&&(o.jsx=!0),t.options["markup.href"]&&(o.href=!0),e=we(e,o),n=t.text,t.text=void 0}return e=function(e,t){const n=[],o=t.options["output.reverseAttributes"],{warn:r}=t,i=e=>{const a=e.name&&t.snippets[e.name];if(!a||n.includes(a))return null;let s;try{s=we(a,t)}catch(e){return null==r||r(`Unable to parse "${a}" snippet`,e),null}n.push(a),lt(s,i),n.pop();for(const t of s.children){if(e.attributes){const n=t.attributes||[],r=e.attributes||[];t.attributes=o?r.concat(n):n.concat(r)}c=t,(l=e).selfClosing&&(c.selfClosing=!0),null!=l.value&&(c.value=l.value),l.repeat&&(c.repeat=l.repeat)}var l,c;return s};return lt(e,i),e}(e,t),function(e,t,n){const o=[e],r=e=>{t(e,o,n),o.push(e),e.children.forEach(r),o.pop()};e.children.forEach(r)}(e,Cn,t),t.text=null!=n?n:t.text,e}(e,t),t)}(e,n)}const Do={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]},Po={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext","figcaption","hgroup","details","summary"]},Mo=new Map;let Wo;const Fo=new Map,Vo=/^[a-z,A-Z,!,(,[,#,\.\{]/,Uo=/^[a-z,A-Z,!,(,[,#,\.]/,Qo=/^-?[a-z,A-Z,!,@,#]/,Zo=/[a-z,A-Z\.]/,Go=[...Po.tags,"lorem"],Xo="bem",Yo="|",Jo="t",Ko="c",er=3;function tr(e,t,n,o,r){var i;const a=lr(o);if(!a){if(!Mo.has(o)){const e=Object.assign(Object.assign({},function(e){const t=lo({type:cr(e),syntax:e});return"xml"===e?{}:t.snippets}(o)),ar[o]);Mo.set(o,Object.keys(e))}Wo=null!==(i=Mo.get(o))&&void 0!==i?i:[]}const s={lookAhead:!a,type:cr(o)},l=function(e,t,n,o){const r=t.getLineContent(n.lineNumber),i=r.substr(0,n.column-1),{pos:a,filter:s}=function(e,t){let n;for(let o=0;o<er;o++)if(e.endsWith(`${Yo}${Xo}`,t))t-=Xo.length+1,n=n?Xo+","+n:Xo;else if(e.endsWith(`${Yo}${Ko}`,t))t-=Ko.length+1,n=n?Ko+","+n:Ko;else{if(!e.endsWith(`${Yo}${Jo}`,t))break;t-=Jo.length+1,n=n?Jo+","+n:Jo}return{pos:t,filter:n}}(i,n.column-1),l=s?s.length+1:0,c=function(e,t=e.length,n={}){const o=Object.assign(Object.assign({},Bo),n);let r;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),o.lookAhead&&(t=function(e,t,n){for(xo(e.charCodeAt(t))&&t++;Ho(e.charCodeAt(t),n.type);)t++;return t}(e,t,o));const i=function(e,t,n){if(!n)return 0;const o=uo(e),r=n.split("").map(qo);let i;for(o.pos=t;!po(o);)if(!Ao(o,yo.SquareR,yo.SquareL)&&!Ao(o,yo.CurlyR,yo.CurlyL)){if(i=o.pos,Oo(o,r))return i;o.pos--}return-1}(e,t,o.prefix||"");if(-1===i)return;const a=uo(e,i);a.pos=t;const s=[];for(;!po(a);){if(r=mo(a),s.includes(yo.CurlyR)){if(r===yo.CurlyR){s.push(r),a.pos--;continue}if(r!==yo.CurlyL){a.pos--;continue}}if(Ho(r,o.type))s.push(r);else if(Ro(r,o.type)){if(s.pop()!==vo[r])break}else{if(s.includes(yo.SquareR)||s.includes(yo.CurlyR)){a.pos--;continue}if(wo(a)||!No(r))break}a.pos--}if(!s.length&&a.pos!==t){const o=e.slice(a.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:o,location:t-o.length,start:n.prefix?i-n.prefix.length:t-o.length,end:t}}}(r,a,o);if(!c)return;return{abbreviationRange:new e.Range(n.lineNumber,c.location+1,n.lineNumber,c.location+c.abbreviation.length+l+1),abbreviation:c.abbreviation,currentLineTillPosition:i,filter:s}}(e,t,n,s);if(!l)return;const{abbreviationRange:c,abbreviation:u,currentLineTillPosition:p,filter:m}=l,f=function(e){if(e){const t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}(p);if(f===u&&p.endsWith(`<${u}`)&&!a)return;const d=function(e,t){var n;const o=t?t.split(",").map((e=>e.trim())):[],r=o.includes("bem"),i=o.includes("c"),a={"output.formatSkip":["html"],"output.formatForce":["body"],"output.field":sr,"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"markup.href":!0,"comment.enabled":i,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":r,"bem.element":"__","bem.modifier":"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":!0,"stylesheet.between":"stylus"===e?" ":": ","stylesheet.after":"sass"===e||"stylus"===e?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3,"output.format":!0,"output.selfClosingStyle":"html"},s=cr(e),l=function(e){return lr(e)?"css":"html"}(e);return{type:s,options:a,variables:{},snippets:"stylesheet"===s?null!==(n=ar[e])&&void 0!==n?n:ar[l]:ar[e],syntax:e,text:void 0,maxRepeat:1e3}}(o,m);let b,g="",h=[];if(((t,n)=>{if(function(e,t){if(!t)return!1;if(lr(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(Go.includes(t.substring(0,t.indexOf("#"))))return!1}return Qo.test(t)}return t.startsWith("!")?!/[^!]/.test(t):!!(!/\(/.test(t)&&!/\)/.test(t)||/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)||/\(.*\)[>\+\*\^]/.test(t)||/\[[^\[\]\(\)]+=".*"\]/.test(t)||/[>\+\*\^]\(.*\)/.test(t))&&("jsx"===e?Uo.test(t)&&Zo.test(t):Vo.test(t)&&Zo.test(t))}(t,u)){try{g=Io(n,d),a&&"!important".startsWith(n)&&(g="!important")}catch(e){}g&&!function(e,t,n,o){var r,i;if(lr(e)&&o){const e=null!==(r=o["stylesheet.between"])&&void 0!==r?r:": ",a=null!==(i=o["stylesheet.after"])&&void 0!==i?i:";";let s=t.indexOf(e[0],Math.max(t.length-e.length,0));return s=s>=0?s:t.length,n===`${t.substring(0,s)}${e}\${0}${a}`||n.replace(/\s/g,"")===t.replace(/\s/g,"")+a}if("xml"===e&&Go.some((e=>e.startsWith(t.toLowerCase()))))return!0;if(Go.includes(t.toLowerCase())||Wo.includes(t))return!1;if(/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if("."===t)return!1;const a=t.match(/^([a-z,A-Z,\d]*)\.$/);return a?!a[1]||!Po.tags.includes(a[1]):("jsx"!==e||!/^([A-Z][A-Za-z0-9]*)+$/.test(t))&&n.toLowerCase()===`<${t.toLowerCase()}>\${1}</${t.toLowerCase()}>`}(t,n,g,d.options)&&(b={kind:e.languages.CompletionItemKind.Property,label:u+(m?"|"+m.replace(",","|"):""),documentation:or(g),detail:"Emmet abbreviation",insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:c,insertText:rr(ir(g))},h=[b])}})(o,u),a){if(u.length>4&&Do.properties.some((e=>e.startsWith(u))))return{suggestions:[],incomplete:!0};if(b&&g.length){b.range=c,b.insertText=rr(ir(g)),b.documentation=or(g),b.label=g.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1"),b.filterText=u;const t=Fo.has(o)?Fo.get(o):Fo.get("css");if(h=nr(e,null!=t?t:[],u,u,c,d,"Emmet Custom Snippet",!1),!h.find((e=>e.insertText===(null==b?void 0:b.insertText)))){const e=new RegExp(".*"+u.split("").map((e=>"$"===e||"+"===e?"\\"+e:e)).join(".*")+".*","i");(/\d/.test(u)||e.test(b.label))&&h.push(b)}}}else{let t=u;const n=u.match(/(>|\+)([\w:-]+)$/);if(n&&3===n.length&&(t=n[2]),"xml"!==o){const n=nr(e,Go,t,u,c,d,"Emmet Abbreviation");h=h.concat(n)}if(!0===r.showAbbreviationSuggestions){const n=nr(e,Wo.filter((e=>!Go.includes(e))),t,u,c,d,"Emmet Abbreviation");b&&n.length>0&&t!==u&&(b.sortText="0"+b.label,n.forEach((e=>{e.filterText=u,e.sortText="9"+u}))),h=h.concat(n)}"html"===o&&h.length>=2&&u.includes(":")&&(null==b?void 0:b.insertText)===`<${u}>\${0}</${u}>`&&(h=h.filter((e=>e.label!==u)))}return!0===r.showSuggestionsAsSnippets&&h.forEach((t=>t.kind=e.languages.CompletionItemKind.Snippet)),h.length?{suggestions:h,incomplete:!0}:void 0}function nr(e,t,n,o,r,i,a,s=!0){if(!n||!t)return[];const l=[];return t.forEach((t=>{if(!t.startsWith(n.toLowerCase())||s&&t===n.toLowerCase())return;const c=o+t.substr(n.length);let u;try{u=Io(c,i)}catch(e){}if(!u)return;const p={kind:e.languages.CompletionItemKind.Property,label:n+t.substr(n.length),documentation:or(u),detail:a,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:r,insertText:rr(ir(u))};l.push(p)})),l}function or(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function rr(e){return e?e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):e}function ir(e){if(!e||!e.trim())return e;let t=-1,n=[],o=!1,r=!1,i=0;const a=e.length;try{for(;i<a&&!o;){if("$"!=e[i++]||"{"!=e[i++])continue;let s=-1,l=-1;for(;i<a&&/\d/.test(e[i]);)s=s<0?i:s,l=i+1,i++;if(-1===s||-1===l||i>=a||"}"!=e[i]&&":"!=e[i])continue;const c=e.substring(s,l);if(o="0"===c,o)break;let u=!1;if(":"==e[i++])for(;i<a;){if("}"==e[i]){u=!0;break}i++}Number(c)>Number(t)?(t=Number(c),n=[{numberStart:s,numberEnd:l}],r=!u):Number(c)===t&&n.push({numberStart:s,numberEnd:l})}}catch(e){}if(r&&!o)for(let t=0;t<n.length;t++){const o=n[t].numberStart,r=n[t].numberEnd;e=e.substr(0,o)+"0"+e.substr(r)}return e}let ar={};const sr=(e,t)=>`\${${e}${t?":"+t:""}}`;function lr(e){return"css"===e}function cr(e){return lr(e)?"stylesheet":"markup"}function ur(e,t,n,o){const r=e[t],i=r.type;return"html"===n?""===i&&(0===t||"delimiter.html"===e[t-1].type)||"text.html.basic"===e[0].type:"css"===n?""===i||i==="tag."+o:"jsx"===n&&("mdx"===r.language&&""===i||!!t&&["identifier.js","type.identifier.js","identifier.ts","type.identifier.ts"].includes(i))}const pr=new WeakMap;const mr={html:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],jade:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],slim:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],haml:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xml:[".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xsl:["!",".","}","*","$","/","]",">","0","1","2","3","4","5","6","7","8","9"],css:[":","!","-","0","1","2","3","4","5","6","7","8","9"],scss:[":","!","-","0","1","2","3","4","5","6","7","8","9"],sass:[":","!","0","1","2","3","4","5","6","7","8","9"],less:[":","!","-","0","1","2","3","4","5","6","7","8","9"],stylus:[":","!","0","1","2","3","4","5","6","7","8","9"],javascript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]},fr={handlebars:"html",php:"html",twig:"html"},dr={showExpandedAbbreviation:"always",showAbbreviationSuggestions:!0,showSuggestionsAsSnippets:!1};function br(e,t,n){if(!e)return void console.error("emmet-monaco-es: 'monaco' should be either declared on window or passed as first parameter");const o=t.map((t=>e.languages.registerCompletionItemProvider(t,{triggerCharacters:mr[fr[t]||t],provideCompletionItems:(o,r)=>function(e,t,n,o){var r;const{column:i,lineNumber:a}=t,{_stateStore:s,_support:l}=function(e){if(pr.has(e))return pr.get(e);let t=e._tokenization||e.tokenization._tokenization,n=null==t?void 0:t._tokenizationStateStore;if(!t||!n){const o=e.tokenization,r=o.grammarTokens||o._tokens;r?(t=r._defaultBackgroundTokenizer,n=t._tokenizerWithStateStore):(Object.values(o).some((e=>t=e.tokenizeViewport&&e)),Object.values(t).some((e=>n=e.tokenizationSupport&&e)))}const o=n.tokenizationSupport||t._tokenizationSupport,r={_stateStore:n,_support:o};return pr.set(e,r),r}(e),c=(null===(r=s.getBeginState)||void 0===r?void 0:r.call(s,a-1).clone())||s.getStartState(a).clone(),u=l.tokenize(e.getLineContent(a),!0,c,0).tokens;let p=!1;for(let e=u.length-1;e>=0;e--)if(i-1>u[e].offset){p=ur(u,e,n,o);break}return p}(o,r,n,t)?tr(e,o,r,n,dr):void 0})));return()=>{o.forEach((e=>e.dispose()))}}const gr=window.wp.components,hr=[{label:"HTML",value:"html"},{label:"CSS",value:"css"},{label:"SCSS",value:"scss"},{label:"JavaScript",value:"js"},{label:"PHP",value:"php"},{label:"TypeScript",value:"typescript"},{label:"Bash",value:"bash"},{label:"Twig",value:"twig"},{label:"YAML",value:"yaml"},{label:"Plaintext",value:"plaintext"},{label:"JSON",value:"json"}],yr=window.wp.primitives;var xr=n(848);const vr=(0,xr.jsx)(yr.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xr.jsx)(yr.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})}),kr=(0,xr.jsx)(yr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xr.jsx)(yr.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})}),wr=({viewMode:e,setViewMode:t,syntaxHighlight:n,setSyntaxHighlight:o,setAttributes:i,editorLanguage:s,changeEditorLanguage:l})=>{const[c,u]=(0,r.useState)(hr[0].value),p=hr.find((e=>e.value===c))?.label||"";return(0,r.createElement)(a.BlockControls,null,!n&&(0,r.createElement)(gr.ToolbarGroup,null,(0,r.createElement)(gr.ToolbarButton,{icon:"preview"===e?vr:kr,label:"preview"===e?"Switch to Split View":"Switch to Preview",onClick:()=>t("preview"===e?"split":"preview")},"preview"===e?"Preview":"Split")),(0,r.createElement)(gr.ToolbarGroup,null,(0,r.createElement)(gr.ToolbarItem,null,(()=>(0,r.createElement)(gr.ToolbarButton,{label:"Highlighting",isPressed:n,onClick:()=>{o(!n),i({syntaxHighlight:!n})}},n?"Highlighting On":"Highlighting Off")))),n&&(0,r.createElement)(gr.ToolbarGroup,null,(0,r.createElement)(gr.ToolbarDropdownMenu,{text:p,icon:null,label:"Select a language",controls:hr.map((e=>({title:e.label,onClick:()=>{u(e.value),l(e.value),console.log(e.value)}})))})))},$r=(0,i.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,i.cloneElement)(e,{width:t,height:t,...n,ref:o})})),Cr=(0,xr.jsx)(yr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xr.jsx)(yr.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})}),Sr=[{label:"Light",value:"light"},{label:"Dark",value:"dark"}],zr={padding:"10px 0px 10px 15px"},Er=({attributes:e,setAttributes:t,syntaxHighlight:n,setSyntaxHighlight:o,syntaxHighlightTheme:i,toggleSyntaxHighlightTheme:s,editorLanguage:l,changeEditorLanguage:c,theme:u,toggleTheme:p,fontSize:m,setFontSize:f,editorHeight:d,setEditorHeight:b,updateAttribute:g,displayLanguage:h,copyButton:y})=>(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(gr.Panel,null,(0,r.createElement)(gr.PanelBody,{title:"Element Settings"},(0,r.createElement)("div",{className:"togglecontrol--with-info"},(0,r.createElement)(gr.ToggleControl,{label:"Use Wrapper",checked:e.useWrapper,onChange:e=>{t({useWrapper:e})},__nextHasNoMarginBottom:!0}),(0,r.createElement)("div",{className:"togglecontrol--with-info__icon-wrapper"},(0,r.createElement)($r,{icon:Cr,size:20}),(0,r.createElement)("p",null,"Wrap the editor content in a div to use WordPress attributes such as class name, width class, etc."))),!n&&(0,r.createElement)(gr.__experimentalUnitControl,{label:"Editor Height",value:d,onChange:e=>{const n=e.toString().endsWith("px")?e:`${e}px`;b(n),localStorage.setItem("dblocks_editor_height",n),t({editorHeight:n})},units:[{value:"px",label:"px",default:500}],min:10,max:1e3,__next40pxDefaultSize:!0}),(0,r.createElement)("div",{className:"togglecontrol--with-info"},(0,r.createElement)(gr.ToggleControl,{label:"Syntax Highlighting",checked:n,onChange:e=>{o(e),t({syntaxHighlight:e,scaleHeightWithContent:e})},__nextHasNoMarginBottom:!0}),(0,r.createElement)("div",{className:"togglecontrol--with-info__icon-wrapper"},(0,r.createElement)($r,{icon:Cr,size:20}),(0,r.createElement)("p",null,"If this is disabled code will be injected as HTML, otherwise the code will be displayed with syntax highlighting as code snippet preview."))),n&&(0,r.createElement)("div",{style:zr},(0,r.createElement)(gr.SelectControl,{label:"Language",value:l,options:hr,onChange:c,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,r.createElement)(gr.SelectControl,{label:"Front End Theme",value:i,options:Sr,onChange:()=>{s()},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,r.createElement)(gr.ToggleControl,{label:"Display Language",checked:h,onChange:e=>{g("displayLanguage",e,"/wp-json/dblocks_codepro/v1/display-language/")},__nextHasNoMarginBottom:!0}),(0,r.createElement)(gr.ToggleControl,{label:"Copy Button",checked:y,onChange:e=>{g("copyButton",e,"/wp-json/dblocks_codepro/v1/copy-button/")},__nextHasNoMarginBottom:!0})),(0,r.createElement)("hr",null),(0,r.createElement)("h2",null,"Editor Global Settings"),(0,r.createElement)(gr.SelectControl,{label:"Editor Theme",value:"vs-dark"===u?"dark":"light",options:Sr,onChange:()=>{p()},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,r.createElement)(gr.__experimentalUnitControl,{label:"Editor Font Size",value:m,onChange:e=>{return f(t=e),void g("editorFontSize",t,"/wp-json/dblocks_codepro/v1/editor-font-size/");var t},units:[{value:"px",label:"Pixels",default:14}],min:10,max:30,__next40pxDefaultSize:!0})))),_r=window.wp.data,jr=(e,t=500,n=10)=>{if("number"==typeof e)return Math.max(n,e);if("string"==typeof e){const o=parseInt(e,10);return isNaN(o)?t:Math.max(n,o)}return t},Lr=e=>`${jr(e)}px`,qr=e=>jr(e),Tr={instances:new Map,isInitializing:!1},Br=({content:e,editorLanguage:t,syntaxThemeClass:n,displayLanguage:o,copyButton:i})=>(0,r.createElement)("div",{className:"tag-wrapper"},i&&(0,r.createElement)("button",{className:"copy-button tag-button"},"Copy"),o&&(0,r.createElement)("div",{className:"code-language-label tag-button"},t.toUpperCase())),Ar=({blockProps:e,content:t,editorLanguage:n,syntaxThemeClass:o,displayLanguage:i,copyButton:a})=>{const s={...e,className:`wp-block-dblocks-dblocks-codepro ${o} syntax-highlighted-container`};return(0,r.createElement)("pre",{...s},(0,r.createElement)(Br,{content:t,editorLanguage:n,syntaxThemeClass:o,displayLanguage:i,copyButton:a}),(0,r.createElement)("code",{className:`language-${n}`},t))},Or=({blockProps:e,content:t,useWrapper:n})=>{const o=(0,r.createElement)(i.RawHTML,null,t);return n?(0,r.createElement)("div",{...e},o):o},Nr=()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"},(0,r.createElement)("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H160v400Zm140-40-56-56 103-104-104-104 57-56 160 160-160 160Zm180 0v-80h240v80H480Z"})),Rr={viewMode:"split",theme:"vs-light",syntaxHighlight:!1,syntaxHighlightTheme:"light",editorLanguage:"html"},Hr={from:[{type:"block",blocks:["core/html","core/code"],transform:({content:e})=>(0,o.createBlock)("dblocks/dblocks-codepro",{content:e,...Rr})},{type:"raw",priority:20,isMatch:e=>"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName,transform:e=>{const t=e.firstChild.textContent;return(0,o.createBlock)("dblocks/dblocks-codepro",{content:t,...Rr})}},{type:"raw",priority:10,isMatch:e=>"PRE"===e.nodeName,transform:e=>{const t=e.textContent;return(0,o.createBlock)("dblocks/dblocks-codepro",{content:t,...Rr})}}],to:[{type:"block",blocks:["core/html"],transform:({content:e})=>(0,o.createBlock)("core/html",{content:e})},{type:"block",blocks:["core/code"],transform:({content:e})=>(0,o.createBlock)("core/code",{content:e})}]},Ir=JSON.parse('{"UU":"dblocks/dblocks-codepro"}').UU;if(!(0,o.getBlockType)(Ir))try{(0,o.registerBlockType)(Ir,{icon:Nr,edit:function({attributes:e,setAttributes:t,clientId:n}){const{content:o,viewMode:s}=e,[l,c]=(0,i.useState)(s),[u,p]=(0,i.useState)(e.theme||"vs-light"),[m,f]=(0,i.useState)(e.editorFontSize||"14px"),[d,b]=(0,i.useState)((()=>localStorage.getItem("dblocks_editor_height")||e.editorHeight||"500px")),[g,h]=(0,i.useState)(e.syntaxHighlight),[y,x]=(0,i.useState)((()=>localStorage.getItem("dblocks_syntax_theme")||e.syntaxHighlightTheme||"light")),[v,k]=(0,i.useState)(e.editorLanguage||"html"),[w,$]=(0,i.useState)(null),[C,S]=(0,i.useState)(!1),[z,E]=(0,i.useState)(!1),[_,j]=(0,i.useState)(!1),[L,q]=(0,i.useState)(!1),[T,B]=(0,i.useState)((()=>{var t;const n=localStorage.getItem("dblocks_display_language");return null!==n?"true"===n:null===(t=e.displayLanguage)||void 0===t||t})),[A,O]=(0,i.useState)((()=>{var t;const n=localStorage.getItem("dblocks_copy_button");return null!==n?"true"===n:null===(t=e.copyButton)||void 0===t||t})),N=(0,i.useRef)(null),R=(0,i.useRef)(null),H=(0,i.useRef)(null),I=(0,i.useRef)(s),D=(0,_r.useSelect)((e=>e("core/block-editor").getSelectedBlockClientId())),P=e=>{const t=(e.match(/\n/g)||[]).length+1,n=parseInt(m),o=1.5*n,r=2*n,i=1.5*n;return`${Math.max(t*o+r,i)}px`},M=(e,n)=>{t({[e]:n})},W=DBlocksData.restUrl;(0,i.useEffect)((()=>{const e=e=>{const n=e.detail.theme;n!==y&&(x(n),t({syntaxHighlightTheme:n}))};return window.addEventListener("dblocks_syntax_theme_changed",e),()=>{window.removeEventListener("dblocks_syntax_theme_changed",e)}}),[y]),(0,i.useEffect)((()=>{const e=localStorage.getItem("dblocks_syntax_theme");e&&e!==y&&(x(e),t({syntaxHighlightTheme:e}))}),[]);const F=e=>{if(k(e),M("editorLanguage",e),H.current){const t=H.current.getModel();if(t){const n=window.monaco||document.querySelector('[name="editor-canvas"]')?.contentWindow?.monaco;n&&n.editor.setModelLanguage(t,e)}}},V=e=>{h(e),t({syntaxHighlight:e,scaleHeightWithContent:e}),j(!0),z&&"split"===l&&setTimeout((()=>{if(H.current){H.current.layout();const e=document.querySelector('[name="editor-canvas"]'),t=e?e.contentWindow:window;t&&t.monaco&&H.current.focus()}}),50)};(0,i.useEffect)((()=>{if(g||D===n&&"split"===l){const e=document.querySelector('[name="editor-canvas"]'),t=e?e.contentWindow:window,n=e?e.contentWindow.document:document,o=setTimeout((()=>{Q(t,n)}),10);return()=>clearTimeout(o)}return()=>{g||D===n&&"split"===l||!H.current||(H.current.dispose(),H.current=null,Tr.instances.delete(n))}}),[g,D,n,l,w]),(0,i.useEffect)((()=>{if(D)if(D!==n)E(!1),!g&&H.current&&(H.current.dispose(),H.current=null,Tr.instances.delete(n));else if("split"===l){E(!0);const e=localStorage.getItem("dblocks_editor_height");e&&e!==d&&(b(e),t({editorHeight:e}),R.current&&(R.current.style.height=e,H.current?.layout()));const n=localStorage.getItem("dblocks_syntax_theme");n&&n!==y&&(x(n),t({syntaxHighlightTheme:n}))}}),[D,n,l,g]);const U=g||D===n&&"split"===l;(0,i.useLayoutEffect)((()=>{if(R.current&&_){const e=R.current.style.display;R.current.style.display="none",R.current.offsetHeight,R.current.style.display=e||"block"}}),[R.current,_]),(0,i.useEffect)((()=>{H.current&&C&&H.current.getValue()!==o&&H.current.setValue(o)}),[o,C]),(0,i.useEffect)((()=>{if(R.current&&H.current){if(g||e.scaleHeightWithContent){const e=P(o);R.current.style.height=e}else R.current.style.height=d;H.current.layout()}}),[g,e.scaleHeightWithContent,o,d]),(0,i.useEffect)((()=>{H.current&&H.current.updateOptions({theme:u,fontSize:parseInt(m)})}),[u,m]),(0,i.useEffect)((()=>{(async()=>{try{const e=await fetch(`${W}plugin-path`);if(!e.ok)throw new Error("Failed to fetch plugin info");const t=await e.json();$(t)}catch(e){console.error("Failed to fetch plugin info:",e)}})()}),[]);const Q=async(t,r)=>{if(!w||Tr.isInitializing)return;q(!0);const i=_||"preview"===I.current&&"split"===l;if(Tr.instances.has(n)&&!i)return H.current=Tr.instances.get(n),C||S(!0),setTimeout((()=>{H.current&&H.current.layout()}),50),void q(!1);Tr.isInitializing=!0;const a=`${w.plugin_url}vendor/monaco/min/vs`;try{if(!t.monaco&&!Array.from(r.scripts).some((e=>e.src.includes(`${a}/loader.js`)))){const e=r.createElement("script");e.src=`${a}/loader.js`,await new Promise(((t,n)=>{e.onload=t,e.onerror=n,r.body.appendChild(e)}))}t.require||await new Promise((e=>{const n=setInterval((()=>{t.require&&(clearInterval(n),e())}),50)})),t.require.config({paths:{vs:a}}),await new Promise((r=>{t.require(["vs/editor/editor.main"],(()=>{H.current&&(H.current.dispose(),H.current=null,Tr.instances.delete(n)),R.current&&(R.current.style.display="block",R.current.style.visibility="visible"),H.current=t.monaco.editor.create(R.current,{minimap:{enabled:!1},value:o||"\x3c!-- some comment --\x3e",language:v,automaticLayout:!0,theme:u,fontSize:parseInt(m),scrollBeyondLastLine:!1,suggestOnTriggerCharacters:!0,quickSuggestions:!0,wordBasedSuggestions:!0,parameterHints:{enabled:!0}}),t.monaco._emmetInitialized||(function(e=window.monaco,t=["html"]){br(e,t,"html")}(t.monaco),t.monaco._emmetInitialized=!0),H.current.onDidChangeModelContent((()=>{const t=H.current.getValue();if(M("content",t),e.scaleHeightWithContent){const e=P(t);R.current.style.height=e,H.current.layout()}})),setTimeout((()=>{H.current&&H.current.layout()}),10),Tr.instances.set(n,H.current),S(!0),r()}))}))}catch(e){console.error("Failed to initialize Monaco editor:",e)}finally{Tr.isInitializing=!1,q(!1)}};return(0,i.useEffect)((()=>{z&&"split"===l&&j(!0)}),[g]),(0,i.useEffect)((()=>{"preview"===I.current&&"split"===l&&j(!0),M("viewMode",l),"split"===l&&E(!0),I.current=l}),[l]),(0,i.useEffect)((()=>{g||"preview"!==l||(c("split"),M("viewMode","split"))}),[g]),(0,i.useEffect)((()=>{const e=e=>{const n=e.detail.displayLanguage;n!==T&&(B(n),t({displayLanguage:n}))};return window.addEventListener("dblocks_display_language_changed",e),()=>{window.removeEventListener("dblocks_display_language_changed",e)}}),[T]),(0,i.useEffect)((()=>{const e=localStorage.getItem("dblocks_display_language");if(null!==e){const n="true"===e;n!==T&&(B(n),t({displayLanguage:n}))}}),[]),(0,i.useEffect)((()=>{const e=e=>{const n=e.detail.copyButton;n!==A&&(O(n),t({copyButton:n}))};return window.addEventListener("dblocks_copy_button_changed",e),()=>{window.removeEventListener("dblocks_copy_button_changed",e)}}),[A]),(0,i.useEffect)((()=>{const e=localStorage.getItem("dblocks_copy_button");if(null!==e){const n="true"===e;n!==A&&(O(n),t({copyButton:n}))}}),[]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Er,{attributes:e,setAttributes:t,syntaxHighlight:g,setSyntaxHighlight:V,syntaxHighlightTheme:y,toggleSyntaxHighlightTheme:async e=>{const t=e||("light"===y?"dark":"light");try{if(!(await fetch(`${W}syntax-theme/`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify({syntaxTheme:t})})).ok)throw new Error("Network response was not ok.");localStorage.setItem("dblocks_syntax_theme",t),x(t),M("syntaxHighlightTheme",t);const e=new CustomEvent("dblocks_syntax_theme_changed",{detail:{theme:t}});window.dispatchEvent(e)}catch(e){console.error("Failed to update syntax theme:",e)}},editorLanguage:v,changeEditorLanguage:F,theme:u,toggleTheme:async()=>{const e="vs-light"===u?"vs-dark":"vs-light";try{if(!(await fetch(`${W}theme`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify({theme:e})})).ok)throw new Error("Network response was not ok.");p(e),M("theme",e)}catch(e){console.error("Failed to update theme:",e)}},fontSize:m,setFontSize:f,editorHeight:d,setEditorHeight:e=>{const t=Lr(e);b(t),localStorage.setItem("dblocks_editor_height",t),M("editorHeight",t),R.current&&(R.current.style.height=t,H.current?.layout())},updateAttribute:async(e,n,o)=>{t({[e]:n});try{if(!(await fetch(o,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":wpApiSettings.nonce},body:JSON.stringify({[e]:n})})).ok)throw new Error("Network response was not ok.");if("displayLanguage"===e){localStorage.setItem("dblocks_display_language",n);const e=new CustomEvent("dblocks_display_language_changed",{detail:{displayLanguage:n}});window.dispatchEvent(e)}else if("copyButton"===e){localStorage.setItem("dblocks_copy_button",n);const e=new CustomEvent("dblocks_copy_button_changed",{detail:{copyButton:n}});window.dispatchEvent(e)}}catch(t){console.error(`Failed to update ${e}:`,t)}},displayLanguage:T,copyButton:A}),(0,r.createElement)("div",{...(0,a.useBlockProps)({ref:N}),style:{position:"relative",height:"100vh"}},(0,r.createElement)(wr,{viewMode:l,setViewMode:e=>{I.current=l,c(e),"split"===e&&(E(!0),j(!0))},syntaxHighlight:g,setSyntaxHighlight:V,setAttributes:t,editorLanguage:v,changeEditorLanguage:F}),!g&&"preview"===l&&(0,r.createElement)(i.RawHTML,{className:`syntax-${y}`},o),!g&&"split"===l&&(0,r.createElement)(i.RawHTML,{onClick:()=>{E(!0)},className:`syntax-${y}`},o),U&&(g||"split"!==l||e.scaleHeightWithContent?(0,r.createElement)("div",{style:{position:"relative",isolation:"isolate",zIndex:100}},(0,r.createElement)("div",{ref:R,id:"editor-container-ref",style:{height:P(o),width:"100%",position:g?"relative":"fixed",bottom:g?"auto":0,left:0,right:0,zIndex:9999,backgroundColor:"#fff",visibility:U?"visible":"hidden",display:U?"block":"none",isolation:"isolate"}}),L&&(0,r.createElement)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.8)",zIndex:1e4}},(0,r.createElement)(gr.Spinner,null))):(0,r.createElement)(gr.ResizableBox,{className:"code-editor-box",size:{height:qr(d)},minHeight:10,enable:{top:!0},style:{position:g?"relative":"fixed",bottom:g?"auto":0,left:0,right:0,zIndex:100,isolation:"isolate"},onResizeStop:(e,n,o,r)=>{const i=qr(d)+r.height,a=Lr(i);localStorage.setItem("dblocks_editor_height",a),b(a),t({editorHeight:a}),R.current&&(R.current.style.height=a,H.current?.layout())}},(0,r.createElement)("div",{ref:R,id:"editor-container-ref",style:{height:"100%",width:"100%",position:g?"relative":"absolute",bottom:g?"auto":0,left:0,right:0,zIndex:9999,backgroundColor:"#fff",visibility:U?"visible":"hidden",display:U?"block":"none",isolation:"isolate"}}),L&&(0,r.createElement)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.8)",zIndex:1e4}},(0,r.createElement)(gr.Spinner,null))))))},save:function({attributes:e}){const{syntaxHighlight:t,content:n,theme:o,syntaxHighlightTheme:i,editorLanguage:s,displayLanguage:l,copyButton:c,useWrapper:u}=e,p=a.useBlockProps.save(),m="light"===i?"syntax-light":"syntax-dark";return t?(0,r.createElement)(Ar,{blockProps:p,content:n,editorLanguage:s,syntaxThemeClass:m,displayLanguage:l,copyButton:c}):(0,r.createElement)(Or,{blockProps:p,content:n,useWrapper:u})},transforms:Hr})}catch(Ie){console.error(`Failed to register block ${Ir}:`,Ie)}},20:(e,t,n)=>{var o=n(609),r=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var o,l={},c=null,u=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,o)&&!s.hasOwnProperty(o)&&(l[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===l[o]&&(l[o]=t[o]);return{$$typeof:r,type:e,key:c,ref:u,props:l,_owner:a.current}}},848:(e,t,n)=>{e.exports=n(20)},609:e=>{e.exports=window.React}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.m=t,e=[],o.O=(t,n,r,i)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){for(var[n,r,i]=e[u],s=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(s=!1,i<a&&(a=i));if(s){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,r,i]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[a,s,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(l)var u=l(o)}for(t&&t(n);c<a.length;c++)i=a[c],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(u)},n=globalThis.webpackChunkdblocks_codepro=globalThis.webpackChunkdblocks_codepro||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[350],(()=>o(885)));r=o.O(r)})(); -
dblocks-codepro/trunk/dblocks-codepro.php
r3285741 r3285786 6 6 * Requires at least: 6.3 7 7 * Requires PHP: 7.4 8 * Version: 1.3. 18 * Version: 1.3.2 9 9 * Author: DPlugins 10 10 * * Author URI: https://dplugins.com/ -
dblocks-codepro/trunk/readme.txt
r3285741 r3285786 3 3 Tags: block, html, code, monaco editor, code block 4 4 Tested up to: 6.8.1 5 Stable tag: 1.3. 15 Stable tag: 1.3.2 6 6 License: GPL-2.0-or-later 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 67 67 68 68 == Changelog == 69 70 = 1.3.2 = 71 * Added transfrom from HTML Block to CodePro Block 72 69 73 70 74 = 1.3.1 = -
dblocks-codepro/trunk/src/transforms.js
r3285633 r3285786 2 2 3 3 const DEFAULT_ATTRIBUTES = { 4 viewMode: ' code',4 viewMode: 'split', 5 5 theme: 'vs-light', 6 syntaxHighlight: true,6 syntaxHighlight: false, 7 7 syntaxHighlightTheme: 'light', 8 8 editorLanguage: 'html' … … 18 18 transform: ({ content }) => { 19 19 return createBlock('dblocks/dblocks-codepro', { 20 content ,20 content: content, 21 21 ...DEFAULT_ATTRIBUTES 22 22 }); 23 23 }, 24 24 }, 25 { 26 type: 'raw', 27 priority: 20, 28 isMatch: (node) => { 29 return ( 30 node.nodeName === 'PRE' && 31 node.firstChild && 32 node.firstChild.nodeName === 'CODE' 33 ); 34 }, 35 transform: (node) => { 36 const content = node.firstChild.textContent; 37 return createBlock('dblocks/dblocks-codepro', { 38 content: content, 39 ...DEFAULT_ATTRIBUTES 40 }); 41 }, 42 }, 43 { 44 type: 'raw', 45 priority: 10, 46 isMatch: (node) => { 47 return node.nodeName === 'PRE'; 48 }, 49 transform: (node) => { 50 const content = node.textContent; 51 return createBlock('dblocks/dblocks-codepro', { 52 content: content, 53 ...DEFAULT_ATTRIBUTES 54 }); 55 }, 56 } 25 57 ], 58 to: [ 59 { 60 type: 'block', 61 blocks: ['core/html'], 62 transform: ({ content }) => { 63 return createBlock('core/html', { 64 content: content 65 }); 66 }, 67 }, 68 { 69 type: 'block', 70 blocks: ['core/code'], 71 transform: ({ content }) => { 72 return createBlock('core/code', { 73 content: content 74 }); 75 }, 76 } 77 ] 26 78 }; 27 79
Note: See TracChangeset
for help on using the changeset viewer.