tmagic-editor/playground/assets/emmet-monaco.esm-legacy-CCPYsPzy.js
2026-03-19 03:41:09 +00:00

2 lines
93 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

System.register([],function(e,t){var n,o,r,i,s,a,l,u,c,p,f,m,d,b,g,h,y,x,k,v,w,$,z,C,S,j,q,A,R,L,O,B,E,T,N,D,F,W,V,U,_,P,I,Q,M,H,Z,X,G,Y,K,J,ee,te,ne,oe,re,ie,se,ae,le;function ue(e){return e>47&&e<58}function ce(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function pe(e){return ue(e)||fe(e)}function fe(e){return 95===e||ce(e)}function me(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}function de(e){return 39===e||34===e}function be(e){return e.tokens[e.pos]}function ge(e){return e.tokens[e.pos++]}function he(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function ye(e){return e.pos<e.size}function xe(e,t){const n=be(e);return!(!n||!t(n)||(e.pos++,0))}function ke(e,t,n=be(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function ve(e,t){const n={type:"TokenGroup",elements:[]};let o,r=n;const i=[];for(;ye(e)&&(o=$e(e,t)||we(e,t));)if(r.elements.push(o),xe(e,Qe))i.push(r),r=o;else{if(xe(e,Me))continue;if(xe(e,He))do{i.length&&(r=i.pop())}while(xe(e,He))}return n}function we(e,t){if(xe(e,Pe)){const n=ve(e,t);return Le(ge(e),"group",!1)&&(n.repeat=function(e){return Ne(be(e))?e.tokens[e.pos++]:void 0}(e)),n}}function $e(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&&xe(e,De))for(;ye(e);){const{pos:t}=e;if(!xe(e,We)||!xe(e,De)){e.pos=t;break}}for(;ye(e)&&xe(e,Fe););return e.pos!==n&&(e.start=n,!0)}(e,t)&&(o.name=he(e));ye(e);)if(e.start=e.pos,o.repeat||Ie(o)||!xe(e,Ne))if(!o.value&&Ae(e))o.value=Re(e);else{if(!(n=Ce(e,"id",t)||Ce(e,"class",t)||ze(e))){!Ie(o)&&xe(e,Ze)&&(o.selfClose=!0,!o.repeat&&xe(e,Ne)&&(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 Ie(o)?void 0:o}function ze(e){if(xe(e,Ve)){const t=[];let n;for(;ye(e);)if(n=Se(e))t.push(n);else{if(xe(e,Ue))break;if(!xe(e,Ee))throw ke(e,`Unexpected "${be(e).type}" token`)}return t}}function Ce(e,t,n){if(Oe(be(e),t)){e.pos++;let r=1;for(;Oe(be(e),t);)e.pos++,r++;const i={name:[(o=t,{type:"Literal",value:o})]};return r>1&&(i.multiple=!0),n.jsx&&Ae(e)?(i.value=Re(e),i.expression=!0):i.value=qe(e)?he(e):void 0,i}var o}function Se(e){if(je(e))return{value:he(e)};if(qe(e,!0)){const t=he(e);let n;return xe(e,Te)&&(je(e)||qe(e,!0))&&(n=he(e)),{name:t,value:n}}}function je(e){const t=e.pos,n=be(e);if(Be(n)){for(e.pos++;ye(e);)if(Be(ge(e),n.single))return e.start=t,!0;throw ke(e,"Unclosed quote",n)}return!1}function qe(e,t){const n=e.pos,o={attribute:0,expression:0,group:0};for(;ye(e);){const n=be(e);if(o.expression)Le(n,"expression")&&(o[n.context]+=n.open?1:-1);else{if(Be(n)||Oe(n)||Ee(n)||Ne(n))break;if(Le(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 Ae(e){const t=e.pos;if(xe(e,_e)){let n=0;for(;ye(e);){const t=ge(e);if(Le(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function Re(e){let t=e.start,n=e.pos;return Le(e.tokens[t],"expression",!0)&&t++,Le(e.tokens[n-1],"expression",!1)&&n--,he(e,t,n)}function Le(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function Oe(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function Be(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function Ee(e){return Boolean(e&&"WhiteSpace"===e.type)}function Te(e){return Oe(e,"equal")}function Ne(e){return Boolean(e&&"Repeater"===e.type)}function De(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function Fe(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function We(e){return Oe(e,"class")}function Ve(e){return Le(e,"attribute",!0)}function Ue(e){return Le(e,"attribute",!1)}function _e(e){return Le(e,"expression",!0)}function Pe(e){return Le(e,"group",!0)}function Ie(e){return!e.name&&!e.value&&!e.attributes}function Qe(e){return Oe(e,"child")}function Me(e){return Oe(e,"sibling")}function He(e){return Oe(e,"climb")}function Ze(e){return Oe(e,"close")}function Xe(e){return!!e.eat(r.Escape)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function Ge(e,t){return function(e,t){const n=e.pos;if((t.expression||t.attribute)&&e.eat(r.Dollar)&&e.eat(r.CurlyBracketOpen)){let t;e.start=e.pos;let o="";if(e.eatWhile(ue)?(t=Number(e.current()),o=e.eat(r.Colon)?Ye(e):""):ce(e.peek())&&(o=Ye(e)),e.eat(r.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(r.Dollar)&&e.eat(r.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(r.Dollar)){const n=e.pos-t;let o=!1,i=1,s=0;if(e.eat(r.At)){for(;e.eat(r.Climb);)s++;o=e.eat(r.Dash),e.start=e.pos,e.eatWhile(ue)&&(i=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:n,reverse:o,base:i,parent:s,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(r.Asterisk)){e.start=e.pos;let n=1,o=!1;return e.eatWhile(ue)?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(me))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 i="";for(;!e.eof();){if(Xe(e)){i+=e.current();continue}const n=e.peek();if(n===r.Slash&&!t.quote&&!t.expression&&!t.attribute){const t=e.string.charCodeAt(e.pos-1),n=e.string.charCodeAt(e.pos+1);if(ue(t)&&ue(n)){i+=e.string[e.pos++];continue}}if(n===t.quote||n===r.Dollar||Ke(n,t))break;if(o){if(n===r.CurlyBracketOpen)t.expression++;else if(n===r.CurlyBracketClose){if(!(t.expression>o))break;t.expression--}}else if(!t.quote){if(!t.attribute&&!rt(n))break;if(Je(n,t)||et(n,t)||de(n)||tt(n))break}i+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:i,start:n,end:e.pos}}(e,t)||function(e){const t=nt(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(de(t))return{type:"Quote",single:t===r.SingleQuote,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=tt(t);if(n)return{type:"Bracket",open:ot(t),context:n,start:e.pos++,end:e.pos}}(e)}function Ye(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(r.CurlyBracketOpen))t.push(e.pos);else if(e.eat(r.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 Ke(e,t){const n=nt(e);return!(!n||t.quote||t.expression||t.attribute&&"equal"!==n)}function Je(e,t){return me(e)&&!t.expression}function et(e,t){return e===r.Asterisk&&!t.attribute&&!t.expression}function tt(e){return e===r.RoundBracketOpen||e===r.RoundBracketClose?"group":e===r.SquareBracketOpen||e===r.SquareBracketClose?"attribute":e===r.CurlyBracketOpen||e===r.CurlyBracketClose?"expression":void 0}function nt(e){return(e===r.Child?"child":e===r.Sibling&&"sibling")||e===r.Climb&&"climb"||e===r.Dot&&"class"||e===r.Hash&&"id"||e===r.Slash&&"close"||e===r.Equals&&"equal"||void 0}function ot(e){return e===r.CurlyBracketOpen||e===r.SquareBracketOpen||e===r.RoundBracketOpen}function rt(e){return pe(e)||function(e){return 196===e||214==e||220===e||228===e||246===e||252===e}(e)||e===r.Dash||e===r.Colon||e===r.Excl}function it(e,t){if(!s[e.type])throw new Error(`Unknown token ${e.type}`);return s[e.type](e,t)}function st(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:ut(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=gt(bt(r.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;ht(e,n),"a"===e.name&&t.href&&function(e,t){var n;let o="";a.test(t)?(o=t,/\w+:/.test(o)||o.startsWith("//")||(o=`http://${o}`)):l.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 at(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 s=0;s<r.count;s++){if(r.value=s,e.repeat=r,i=mt(e)?ut(e,t):lt(e,t),r.implicit&&!t.inserted){const e=bt(i),n=e&&gt(e);n&&ht(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(mt(e)?ut(e,t):lt(e,t));return n}function lt(e,t){let n=[];const o={type:"AbbreviationNode",name:e.name&&pt(e.name,t),value:e.value&&ft(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let r=[o];for(const i of e.elements)n=n.concat(at(i,t));if(e.attributes){o.attributes=[];for(const n of e.attributes)o.attributes.push(ct(n,t))}return o.name||o.attributes||!o.value||o.value.some(dt)?o.children=n:r=r.concat(n),r}function ut(e,t){let n=[];for(const o of e.elements)n=n.concat(at(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 ct(e,t){let n,o=!1,r=!1,i=e.expression?"expression":"raw";const s=e.name&&pt(e.name,t);if(s&&"!"===s[0]&&(o=!0),s&&"."===s[s.length-1]&&(r=!0),e.value){const o=e.value.slice();if(Be(o[0])){const e=o.shift();o.length&&bt(o).type===e.type&&o.pop(),i=e.single?"singleQuote":"doubleQuote"}else Le(o[0],"expression",!0)&&(i="expression",o.shift(),Le(bt(o),"expression",!1)&&o.pop());n=ft(o,t)}return{name:r||o?s.slice(o?1:0,r?-1:void 0):s,value:n,boolean:r,implied:o,valueType:i,multiple:e.multiple}}function pt(e,t){let n="";for(let o=0;o<e.length;o++)n+=it(e[o],t);return n}function ft(e,t){const n=[];let o="";for(let r,i=0;i<e.length;i++)r=e[i],dt(r)?(o&&(n.push(o),o=""),n.push(r)):o+=it(r,t);return o&&n.push(o),n}function mt(e){return"TokenGroup"===e.type}function dt(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function bt(e){return e[e.length-1]}function gt(e){return e.children.length?gt(bt(e.children)):e}function ht(e,t){e.value?"string"==typeof bt(e.value)?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}function yt(e,t){try{return st(function(e,t={}){const n={tokens:o=e,start:0,pos:0,size:o.length};var o;const r=ve(n,t);if(ye(n))throw ke(n,"Unexpected character");return r}("string"==typeof e?function(e){const t=new n(e),o=[],r={group:0,attribute:0,expression:0,quote:0};let i,s=0;for(;!t.eof();){if(s=t.peek(),i=Ge(t,r),!i)throw t.error("Unexpected character");o.push(i),"Quote"===i.type?r.quote=s===r.quote?0:s:"Bracket"===i.type&&(r[i.context]+=i.open?1:-1)}return o}(e):e,t),t)}catch(r){throw r instanceof o&&"string"==typeof e&&(r.message+=`\n${e}\n${"-".repeat(r.pos)}^`),r}}function xt(e,t){return function(e){const t=e.pos;if(e.eat(c.Dollar)&&e.eat(c.CurlyBracketOpen)){let n;e.start=e.pos;let o="";if(e.eatWhile(ue)?(n=Number(e.current()),o=e.eat(c.Colon)?kt(e):""):ce(e.peek())&&(o=kt(e)),e.eat(c.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(c.Dash)&&e.eat(c.Dash))return e.start=t,e.eatWhile(St),{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(c.Dash);const n=e.pos,o=e.eatWhile(ue),r=e.pos;if(e.eat(c.Dot)){const t=e.eatWhile(ue);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(c.Percent)||e.eatWhile(fe),{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(c.Hash)){const n=e.pos;let o="",r="";if(e.eatWhile(Ct)?(o=e.substring(n,e.pos),r=wt(e)):e.eat(c.Transparent)?(o="0",r=wt(e)||"0"):r=wt(e),o||r||e.eof()){const{r:n,g:i,b:s,a:a}=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:s,a:a,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return vt(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let o=!1;if(de(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===c.SingleQuote?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return e===c.RoundBracketOpen||e===c.RoundBracketClose}(t))return{type:"Bracket",open:t===c.RoundBracketOpen,start:e.pos++,end:e.pos}}(e)||$t(e)||function(e){const t=e.pos;if(e.eatWhile(me))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;if(e.eat(zt)?e.eatWhile(n?St:jt):e.eat(fe)?e.eatWhile(t?jt:St):(e.eat(c.Dot),e.eatWhile(jt)),n!==e.pos)return e.start=n,vt(e,e.start=n)}(e,t)}function kt(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(c.CurlyBracketOpen))t.push(e.pos);else if(e.eat(c.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 vt(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function wt(e){const t=e.pos;return e.eat(c.Dot)?(e.start=t,e.eatWhile(ue)?e.current():"1"):""}function $t(e){const t=(n=e.peek())===c.Sibling&&u.Sibling||n===c.Excl&&u.Important||n===c.Comma&&u.ArgumentDelimiter||n===c.Colon&&u.PropertyDelimiter||n===c.Dash&&u.ValueDelimiter||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function zt(e){return e===c.At||e===c.Dollar}function Ct(e){return ue(e)||ce(e,65,70)}function St(e){return pe(e)||e===c.Dash}function jt(e){return fe(e)||e===c.Percent||e===c.Slash}function qt(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function At(e,t){let n=0,o=0;for(;t.length;){const e=Rt(t);if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,o||(o=e.end),t.pop()}n!==o&&t.push(vt(e,n,o))}function Rt(e){return e[e.length-1]}function Lt(e){return e.tokens[e.pos]}function Ot(e){return e.pos<e.size}function Bt(e,t){return!!t(Lt(e))&&(e.pos++,!0)}function Et(e,t,n=Lt(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function Tt(e,t){let n,o,r=!1;const i=[],s=Lt(e),a=!!t.value;for(a||!Ft(s)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&Ft(t)&&"Bracket"===n.type}(e)||(e.pos++,n=s.value,Bt(e,Xt)),a&&Bt(e,_t);Ot(e);)if(Bt(e,Ht))r=!0;else if(o=Nt(e,a))i.push(o);else if(!Bt(e,Mt))break;if(n||i.length||r)return{name:n,value:i,important:r}}function Nt(e,t){const n=[];let o,r;for(;Ot(e);)if(o=Lt(e),Zt(o))e.pos++,Ft(o)&&(r=Dt(e))?n.push({type:"FunctionCall",name:o.value,arguments:r}):n.push(o);else{if(!(Xt(o)||t&&_t(o)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function Dt(e){const t=e.pos;if(Bt(e,Vt)){const n=[];let o;for(;Ot(e)&&!Bt(e,Ut);)if(o=Nt(e,!0))n.push(o);else if(!Bt(e,_t)&&!Bt(e,Qt))throw Et(e,"Unexpected token");return e.start=t,n}}function Ft(e){return e&&"Literal"===e.type}function Wt(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function Vt(e){return Wt(e,!0)}function Ut(e){return Wt(e,!1)}function _t(e){return e&&"WhiteSpace"===e.type}function Pt(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function It(e){return Pt(e,u.Sibling)}function Qt(e){return Pt(e,u.ArgumentDelimiter)}function Mt(e){return Qt(e)}function Ht(e){return Pt(e,u.Important)}function Zt(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type||"CustomProperty"===e.type}function Xt(e){return Pt(e,u.PropertyDelimiter)||Pt(e,u.ValueDelimiter)}function Gt(e,t){try{return function(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),o=[];let r;for(;Ot(n);)if(r=Tt(n,t))o.push(r);else if(!Bt(n,It))throw Et(n,"Unexpected token");return o}("string"==typeof e?function(e,t){let o,r=0;const i=new n(e),s=[];for(;!i.eof();){if(o=xt(i,0===r&&!t),!o)throw i.error("Unexpected character");if("Bracket"===o.type&&(!r&&o.open&&At(i,s),r+=o.open?1:-1,r<0))throw i.error("Unexpected bracket",o.start);s.push(o),qt(o)&&(o=$t(i))&&s.push(o)}return s}(e,t&&t.value):e,t)}catch(r){throw r instanceof o&&"string"==typeof e&&(r.message+=`\n${e}\n${"-".repeat(r.pos)}^`),r}}function Yt(e,t,n){if(e&&t){e.length&&n&&Jt(e,n);for(const n of t)Jt(e,n);return e}const o=e||t;return o&&o.slice()}function Kt(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 Jt(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function en(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];if(t(o))return o;const r=en(o,t);if(r)return r}}function tn(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function nn(e){return"AbbreviationNode"===e.type}function on(e,t,n){let o=[];for(const r of e.children){const e=t(r);if(e){o=o.concat(e.children);const n=tn(e);nn(n.node)&&(n.node.children=n.node.children.concat(on(r,t)))}else o.push(r),r.children=on(r,t)}return e.children=o}function rn(e,t){e.selfClosing&&(t.selfClosing=!0),null!=e.value&&(t.value=e.value),e.repeat&&(t.repeat=e.repeat)}function sn(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function an(e,t){bn(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function ln(e,t){const n=function(e){return e.split(/\r\n|\r|\n/g)}(t);for(let o=0,r=n.length-1;o<=r;o++)an(e,n[o]),o!==r&&un(e,!0)}function un(e,t){const n=e.options["output.baseIndent"];an(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){const n=e.options["output.indent"];an(e,n.repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function cn(e,t,n){bn(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function pn(e,t){return gn(e,t.options["output.attributeCase"])}function fn(e,t,n){return"expression"===e.valueType?n?p:f:"single"===t.options["output.attributeQuotes"]?"'":'"'}function mn(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function dn(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?dn(e.name,t):Boolean(e.value&&!e.attributes)}function bn(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function gn(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}function hn(e,t,n){const o=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(nn(n))return n}}(t),r=n.context?n.context.name:"",i=((o?o.name:r)||"").toLowerCase();e.name=m[i]||(dn(i,n)?"span":"div")}function yn(e,t){return Math.floor(Math.random()*(t-e)+e)}function xn(e,t){const n=e.length,o=Math.min(n,t),r=[];for(;r.length<o;){const t=e[yn(0,n)];r.includes(t)||r.push(t)}return r}function kn(e,t){var n,o;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||(o="?!...")[yn(0,o.length-1)])}function vn(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let o=0;o=t>3&&t<=6?yn(0,1):t>6&&t<=12?yn(0,2):yn(1,4);for(let r,i=0;i<o;i++)r=yn(0,t-2),n.test(e[r])||(e[r]+=",");return e}function wn(e,t,n){const o=[];let r,i=0;for(n&&e.common&&(r=e.common.slice(0,t),i+=r.length,o.push(kn(vn(r),".")));i<t;)r=xn(e.words,Math.min(yn(2,30),t-i)),i+=r.length,o.push(kn(vn(r)));return o.join(" ")}function $n(e){return"select"!==e.name}function zn(e,t,n){!function(e){const t=Cn(e),n=[];for(const o of t.classNames){const e=o.indexOf("_");e>0&&!o.startsWith("-")?(n.push(o.slice(0,e)),n.push(o.slice(e))):n.push(o)}n.length&&(t.classNames=n.filter(On),t.block=qn(t.classNames),Rn(e,t.classNames.join(" ")))}(e),function(e,t,n){const o=Cn(e),r=[],{options:i}=n,s=t.slice(1).concat(e);for(let l of o.classNames){let e,t="";const o=l;(e=l.match(g))&&(t=jn(s,e[1].length,n.context)+i["bem.element"]+e[2],r.push(t),l=l.slice(e[0].length)),(e=l.match(h))&&(t||(t=jn(s,e[1].length),r.push(t)),r.push(`${t}${i["bem.modifier"]}${e[2]}`),l=l.slice(e[0].length)),l===o&&r.push(o)}const a=r.filter(On);a.length&&Rn(e,a.join(" "))}(e,t,n)}function Cn(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=Ln(n.value);break}e._bem=Sn(t)}return e._bem}function Sn(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:qn(t)}}function jn(e,t=0,n){let o=Math.max(e.length-t,0);do{const t=e[o];if(t){const e=Cn(t);if(e.block)return e.block}}while(0<o--);if(n){const e=function(e){return e._bem||(e._bem=Sn(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function qn(e){return An(e,y)||An(e,x)||void 0}function An(e,t){for(const n of e){if(g.test(n)||h.test(n))break;if(t(n))return n}}function Rn(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function Ln(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function On(e,t,n){return!!e&&n.indexOf(e)===t}function Bn(e){if("label"===e.name){const t=en(e,e=>"input"===e.name||"textarea"===e.name);t&&(e.attributes&&(e.attributes=e.attributes.filter(e=>!("for"===e.name&&En(e)))),t.attributes&&(t.attributes=t.attributes.filter(e=>!("id"===e.name&&En(e)))))}}function En(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 Tn(e,t,n){const o=(e,o,i)=>{const{parent:s,current:a}=n;n.parent=a,n.current=e,t(e,o,i,n,r),n.current=a,n.parent=s},r=(e,t,r)=>{n.ancestors.push(n.current),o(e,t,r),n.ancestors.pop()};e.children.forEach(o)}function Nn(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:sn(e.options)}}function Dn(e){return!!e&&!e.name&&!e.attributes}function Fn(e,t){return!!e&&dn(e,t)}function Wn(e){return"object"==typeof e&&"Field"===e.type}function Vn(e,t){const{out:n}=t;let o=-1;for(const r of e)"string"==typeof r?ln(n,r):(cn(n,t.field+r.index,r.name),r.index>o&&(o=r.index));-1!==o&&(t.field+=o+1)}function Un(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}function _n(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=Pn(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 Pn(e){if(In(e)===v.Start){const t=++e.pos;let n=t,o=t,r=1;for(;e.pos<e.text.length;){const i=In(e);if(Qn(i)){for(n=e.pos;Mn(In(e));)e.pos++;o=e.pos}else{if(i===v.Start)r++;else if(i===v.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 In(e,t=e.pos){return e.text.charCodeAt(t)}function Qn(e){return e>=65&&e<=90}function Mn(e){return Qn(e)||e>47&&e<58||e===v.Underscore||e===v.Dash}function Hn(e,t){const{comment:n}=t;if(!(n.enabled&&n.trigger&&e.name&&e.attributes))return!1;for(const o of e.attributes)if(o.name&&n.trigger.includes(o.name))return!0;return!1}function Zn(e,t,n){const o={},{out:r}=n;for(const i of e.attributes)i.name&&i.value&&(o[i.name.toUpperCase()]=i.value);for(const i of t)"string"==typeof i?ln(r,i):o[i.name]&&(ln(r,i.before),Vn(o[i.name],n),ln(r,i.after))}function Xn(e,t){const n=Nn(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?_n(t["comment.before"]):void 0,after:t["comment.after"]?_n(t["comment.after"]):void 0}}(t),Tn(e,Gn,n),n.out.value}function Gn(e,t,n,o,r){const{out:i,config:s}=o,a=Jn(e,t,n,o),l=function(e){const{config:t,parent:n}=e;return!n||Dn(n)||n.name&&t.options["output.formatSkip"].includes(n.name)?0:1}(o);if(i.level+=l,a&&un(i,!0),e.name){const t=function(e,t){return gn(e,t.options["output.tagCase"])}(e.name,s);if(function(e,t){Hn(e,t)&&t.comment.before&&Zn(e,t.comment.before,t)}(e,o),ln(i,`<${t}`),e.attributes)for(const n of e.attributes)Un(n)&&Yn(n,o);if(!e.selfClosing||e.children.length||e.value){if(ln(i,">"),!Kn(e,o,r)){if(e.value){const t=e.value.some(eo)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=w.exec(e[0]);if((null==n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,s);t&&un(o.out,++i.level),Vn(e.value,o),t&&un(o.out,--i.level)}if(e.children.forEach(r),!e.value&&!e.children.length){const t=s.options["output.formatLeafNode"]||s.options["output.formatForce"].includes(e.name);t&&un(o.out,++i.level),Vn(k,o),t&&un(o.out,--i.level)}}ln(i,`</${t}>`),function(e,t){Hn(e,t)&&t.comment.after&&Zn(e,t.comment.after,t)}(e,o)}else ln(i,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(s)}>`)}else!Kn(e,o,r)&&e.value&&(Vn(e.value,o),e.children.forEach(r));if(a&&t===n.length-1&&o.parent){const e=Dn(o.parent)?0:1;un(i,i.level-e)}i.level-=l}function Yn(e,t){const{out:n,config:o}=t;if(e.name){const r=o.options["markup.attributes"],i=o.options["markup.valuePrefix"];let{name:s,value:a}=e,l=fn(e,o,!0),u=fn(e,o);r&&(s=to(s,r,e.multiple)||s),s=pn(s,o),o.options["jsx.enabled"]&&e.multiple&&(l=p,u=f);const c=i?to(e.name,i,e.multiple):null;if(c&&1===(null==a?void 0:a.length)&&"string"==typeof a[0]){const e=a[0];a=[no(e)?`${c}.${e}`:`${c}['${e}']`],o.options["jsx.enabled"]&&(l=p,u=f)}mn(e,o)&&!a?o.options["output.compactBoolean"]||(a=[s]):a||(a=k),ln(n," "+s),a?(ln(n,"="+l),Vn(a,t),ln(n,u)):"html"!==o.options["output.selfClosingStyle"]&&ln(n,"="+l+u)}}function Kn(e,t,n){if(e.value&&e.children.length){const o=e.value.findIndex(Wn);if(-1!==o){Vn(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]&&ln(t.out,e.value[i++].trimLeft()),Vn(e.value.slice(i),t),!0}}return!1}function Jn(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&&Dn(i)&&1===n.length)return!1;if(Dn(e)&&(Dn(n[t-1])||Dn(n[t+1])||e.value.some(eo)||e.value.some(Wn)&&e.children.length))return!0;if(dn(e,r)){if(0===t){for(let e=0;e<n.length;e++)if(!dn(n[e],r))return!0}else if(!dn(n[t-1],r))return!0;if(r.options["output.inlineBreak"]){let e=1,o=t,i=t;for(;Fn(n[--o],r);)e++;for(;Fn(n[++i],r);)e++;if(e>=r.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(Jn(e.children[t],t,e.children,o))return!0;return!1}return!0}function eo(e){return"string"==typeof e&&/\r|\n/.test(e)}function to(e,t,n){return n&&t[`${e}*`]||t[e]}function no(e){return!$.has(e)&&/^[a-zA-Z_$][\w_$]*$/.test(e)}function oo(e,t,n){const o=Nn(t);return o.options=n||{},Tn(e,ro,o),o.out.value}function ro(e,t,n,o,r){const{out:i,options:s}=o,{primary:a,secondary:l}=function(e){const t=[],n=[];if(e.attributes)for(const o of e.attributes)io(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||Dn(e))}(e,t,0,o)&&un(i,!0),!e.name||"div"===e.name&&a.length||ln(i,(s.beforeName||"")+e.name+(s.afterName||"")),function(e,t){for(const n of e)n.value&&("class"===n.name?(ln(t.out,"."),Vn(n.value.map(e=>"string"==typeof e?e.replace(/\s+/g,"."):e),t)):(ln(t.out,"#"),Vn(n.value,t)))}(a,o),function(e,t){if(e.length){const{out:n,config:o,options:r}=t;r.beforeAttribute&&ln(n,r.beforeAttribute);for(let i=0;i<e.length;i++){const s=e[i];ln(n,pn(s.name||"",o)),mn(s,o)&&!s.value?!o.options["output.compactBoolean"]&&r.booleanValue&&ln(n,"="+r.booleanValue):(ln(n,"="+fn(s,o,!0)),Vn(s.value||k,t),ln(n,fn(s,o))),i!==e.length-1&&r.glueAttribute&&ln(n,r.glueAttribute)}r.afterAttribute&&ln(n,r.afterAttribute)}}(l.filter(Un),o),!e.selfClosing||e.value||e.children.length?(function(e,t){if(!e.value&&e.children.length)return;const n=e.value||k,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)&&an(r," "),Vn(n,t);else{const e=[];let n=0;for(const t of o){const o=so(t);e.push(o),o>n&&(n=o)}r.level++;for(let s=0;s<o.length;s++)un(r,!0),i.beforeTextLine&&an(r,i.beforeTextLine),Vn(o[s],t),i.afterTextLine&&(an(r," ".repeat(n-e[s])),an(r,i.afterTextLine));r.level--}}(e,o),e.children.forEach(r)):o.options.selfClose&&ln(i,o.options.selfClose),i.level-=u}function io(e){return"class"===e.name||"id"===e.name}function so(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}function ao(e,t){return oo(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})}function lo(e,t){return oo(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})}function uo(e,t){return oo(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}function co(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=yt(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 s=e.name&&t.snippets[e.name];if(!s||n.includes(s))return null;let a;try{a=yt(s,t)}catch(l){return null==r||r(`Unable to parse "${s}" snippet`,l),null}n.push(s),on(a,i),n.pop();for(const t of a.children){if(e.attributes){const n=t.attributes||[],r=e.attributes||[];t.attributes=o?r.concat(n):n.concat(r)}rn(e,t)}return a};return on(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,fo,t),t.text=null!=n?n:t.text,e}function po(e,t){return(z[t.syntax]||Xn)(e,t)}function fo(e,t,n){!function(e,t,n){!e.name&&e.attributes&&hn(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=Yt(n.value,r.value," "):Kt(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(b))){const r=d[o[1]]||d.latin,i=o[2]?Math.max(1,Number(o[2])):30,s=yn(i,o[3]?Math.max(i,Number(o[3].slice(1))):i),a=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=[wn(r,s,!a||0===a.value)],e.repeat&&t.length>1&&hn(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($n))}(e),"markup"===n.type&&Bn(e),n.options["bem.enabled"]&&zn(e,t,n)}function mo(e,t){const n=t.match(S);if(n){const t={},o=n[2]?n[2].split("|").map(go):[];for(const e of o)for(const n of e)yo(n,t);return{type:C.Property,key:e,property:n[1],value:o,keywords:t,dependencies:[]}}return{type:C.Raw,key:e,value:t}}function bo(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function go(e){return Gt(e.trim(),j)[0].value}function ho(e){return e.type===C.Property}function yo(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 xo(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),s=Math.max(o,r);let a=1,l=1,u=s,c=0,p=0,f=!1,m=!1;for(;a<o;){for(c=e.charCodeAt(a),f=!1,m=!1;l<r;){if(p=t.charCodeAt(l),c===p){f=!0,u+=s-(m?a:l);break}m=45===p,l++}if(!f){if(!n)return 0;break}a++}const d=s-i;return u*(a/s)/(ko(s)-ko(d))}function ko(e){return e*(e+1)/2}function vo(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&$o(e.r)&&$o(e.g)&&$o(e.b)?zo:Co;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(wo(e.a,8)),`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function wo(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function $o(e){return!(e%17)}function zo(e){return(e>>4).toString(16)}function Co(e){return function(e,t){for(;e.length<t;)e="0"+e;return e}(e.toString(16),2)}function So(e,t){var n;const o=sn(t.options),r=t.options["output.format"];(null===(n=t.context)||void 0===n?void 0:n.name)===q.Section&&(e=e.filter(e=>e.snippet));for(let i=0;i<e.length;i++)r&&0!==i&&un(o,!0),jo(e[i],o,t);return o.value}function jo(e,t,n){const o=n.options["stylesheet.json"];if(e.name)ln(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&&an(t,r);for(let o=0;o<e.value.length;o++)0!==o&&an(t,", "),Ao(e.value[o],t,n);o&&an(t,r)}else an(t,String(r.value))}(e,t,n):cn(t,0,""),o?an(t,","):(qo(e,t,!0),an(t,n.options["stylesheet.after"]));else{for(const o of e.value)for(const e of o.value)Ro(e,t,n);qo(e,t,e.value.length>0)}}function qo(e,t,n){e.important&&(n&&an(t," "),an(t,"!important"))}function Ao(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||an(t," "),Ro(i,t,n),r=i.end}}function Ro(e,t,n){if("ColorValue"===e.type)an(t,vo(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type||"CustomProperty"===e.type)ln(t,e.value);else if("NumberValue"===e.type)ln(t,wo(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";ln(t,n+e.value+n)}else if("Field"===e.type)cn(t,e.index,e.name);else if("FunctionCall"===e.type){an(t,e.name+"(");for(let o=0;o<e.arguments.length;o++)o&&an(t,", "),Ao(e.arguments[o],t,n);an(t,")")}}function Lo(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(mo(n,e[n]));return function(e){e=e.slice().sort(bo);const t=[];let n;for(const o of e.filter(ho)){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=Gt(e,{value:_o(t)}));const i=function(e,t){if(t.context){if(t.context.name===q.Section)return e.filter(e=>e.type===C.Raw);if(t.context.name===q.Property)return e.filter(e=>e.type===C.Property)}return e}(o,t);for(const s of e){const e=Oo(s,i,t);e&&r.push(e)}return r}function Oo(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===A&&(n=e)}return!(!n&&e.name!==A)&&(n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[Do(Wo(0,""))]},t.context||(e.name="background-image"),e.value=[Do(n)],!0)}(e,n)){const o=n.options["stylesheet.fuzzySearchMinScore"];if(_o(n)){const r=n.context.name,i=t.find(e=>e.type===C.Property&&e.property===r);Bo(e,n,i,o),e.snippet=i}else if(e.name){const r=Eo(e.name,t,o,!0);if(e.snippet=r,r){const t=r.type===C.Property?function(e,t,n){const o=e.name,r=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""}(o,t.key);if(r){if(e.value.length)return null;const o=No(r,n,t);if(!o)return null;e.value.push(Do(o))}if(e.name=t.property,e.value.length)Bo(e,n,t);else if(t.value.length){const o=t.value[0];e.value=1===t.value.length||o.some(Vo)?o:o.map(e=>Uo(e,n))}return e}(e,r,n):function(e,t){let n,o=0;const r=/\$\{(\d+)(:[^}]+)?\}/g,i=e.value[0],s=[];for(;n=r.exec(t.value);)o!==n.index&&s.push(Fo(t.value.slice(o,n.index))),o=n.index+n[0].length,i&&i.value.length?s.push(i.value.shift()):s.push(Wo(Number(n[1]),n[2]?n[2].slice(1):""));const a=t.value.slice(o);return a&&s.push(Fo(a)),e.name=void 0,e.value=[Do(...s)],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 Bo(e,t,n,o){for(const r of e.value){const e=[];for(const i of r.value)if("Literal"===i.type)e.push(No(i.value,t,n,o)||i);else if("FunctionCall"===i.type){const r=No(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 Eo(e,t,n=0,o=!1){let r=null,i=0;for(const s of t){const t=xo(e,To(s),o);if(1===t)return s;t&&t>=i&&(i=t,r=s)}return i>=n?r:null}function To(e){return"string"==typeof e?e:e.key}function No(e,t,n,o){let r;if(n){if(r=Eo(e,Object.keys(n.keywords),o))return n.keywords[r];for(const t of n.dependencies)if(r=Eo(e,Object.keys(t.keywords),o))return t.keywords[r]}return(r=Eo(e,t.options["stylesheet.keywords"],o))?Fo(r):null}function Do(...e){return{type:"CSSValue",value:e}}function Fo(e){return{type:"Literal",value:e}}function Wo(e,t){return{type:"Field",index:e,name:t}}function Vo(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(Vo))return!0;return!1}function Uo(e,t,n={index:1}){let o=[];for(const r of e.value)switch(r.type){case"ColorValue":o.push(Wo(n.index++,vo(r,t.options["stylesheet.shortHex"])));break;case"Literal":o.push(Wo(n.index++,r.value));break;case"NumberValue":o.push(Wo(n.index++,`${r.value}${r.unit}`));break;case"StringValue":const e="single"===r.quote?"'":'"';o.push(Wo(n.index++,e+r.value+e));break;case"FunctionCall":o.push(Wo(n.index++,r.name),Fo("("));for(let i=0,s=r.arguments.length;i<s;i++)o=o.concat(Uo(r.arguments[i],t,n).value),i!==s-1&&o.push(Fo(", "));o.push(Fo(")"));break;default:o.push(r)}return Object.assign(Object.assign({},e),{value:o})}function _o(e){return!(!e.context||e.context.name!==q.Value&&e.context.name.startsWith("@@"))}function Po(e){const t={};return Object.keys(e).forEach(n=>{for(const o of n.split("|"))t[o]=e[n]}),t}function Io(e={},t={}){const n=e.type||"markup",o=e.syntax||B[n];return Object.assign(Object.assign(Object.assign({},E),e),{type:n,syntax:o,variables:Qo(n,o,"variables",e,t),snippets:Qo(n,o,"snippets",e,t),options:Qo(n,o,"options",e,t)})}function Qo(e,t,n,o,r={}){const i=T[e],s=r[e],a=T[t],l=r[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},E[n]),i&&i[n]),a&&a[n]),s&&s[n]),l&&l[n]),o[n])}function Mo(e,t=0){return{text:e,start:t,pos:e.length}}function Ho(e){return e.pos===e.start}function Zo(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function Xo(e){if(!Ho(e))return e.text.charCodeAt(--e.pos)}function Go(e,t){if(Ho(e))return!1;const n="function"==typeof t?t(Zo(e)):t===Zo(e);return n&&e.pos--,!!n}function Yo(e,t){const n=e.pos;for(;Go(e,t););return e.pos<n}function Ko(e){return e===N.SingleQuote||e===N.DoubleQuote}function Jo(e){const t=e.pos;if(!Go(e,W.AngleRight))return!1;let n=!1;for(Go(e,W.Slash);!Ho(e);){if(Yo(e,rr),nr(e)){if(Go(e,W.Slash)){n=Go(e,W.AngleLeft);break}if(Go(e,W.AngleLeft)){n=!0;break}if(Go(e,rr))continue;if(Go(e,W.Equals)){if(nr(e))continue;break}if(tr(e)){n=!0;break}break}if(!er(e))break}return e.pos=t,n}function er(e){return function(e){const t=e.pos;return!!(function(e){const t=e.pos,n=Xo(e);if(Ko(n))for(;!Ho(e);)if(Xo(e)===n&&Zo(e)!==N.Escape)return!0;return e.pos=t,!1}(e)&&Go(e,W.Equals)&&nr(e))||(e.pos=t,!1)}(e)||tr(e)}function tr(e){const t=e.pos,n=[];for(;!Ho(e);){const t=Zo(e);if(ar(t))n.push(t);else if(sr(t)){if(n.pop()!==F[t])break}else if(!ir(t))break;e.pos--}return!(t===e.pos||!Go(e,W.Equals)||!nr(e))||(e.pos=t,!1)}function nr(e){return Yo(e,or)}function or(e){return e===W.Colon||e===W.Dash||function(e){return(e&=-33)>=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function rr(e){return e===W.Space||e===W.Tab}function ir(e){return!isNaN(e)&&e!==W.Equals&&!rr(e)&&!Ko(e)}function sr(e){return e===D.CurlyL||e===D.RoundL||e===D.SquareL}function ar(e){return e===D.CurlyR||e===D.RoundR||e===D.SquareR}function lr(e,t=e.length,n={}){const o=Object.assign(Object.assign({},_),n);let r;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),o.lookAhead&&(t=function(e,t,n){for(Ko(e.charCodeAt(t))&&t++;mr(e.charCodeAt(t),n.type);)t++;return t}(e,t,o));const i=function(e,t,n){if(!n)return 0;const o=Mo(e),r=n.split("").map(V);let i;for(o.pos=t;!Ho(o);)if(!ur(o,D.SquareR,D.SquareL)&&!ur(o,D.CurlyR,D.CurlyL)){if(i=o.pos,cr(o,r))return i;o.pos--}return-1}(e,t,o.prefix||"");if(-1===i)return;const s=Mo(e,i);s.pos=t;const a=[];for(;!Ho(s);){if(r=Zo(s),a.includes(D.CurlyR)){if(r===D.CurlyR){a.push(r),s.pos--;continue}if(r!==D.CurlyL){s.pos--;continue}}if(mr(r,o.type))a.push(r);else if(fr(r,o.type)){if(a.pop()!==F[r])break}else{if(a.includes(D.SquareR)||a.includes(D.CurlyR)){s.pos--;continue}if(Jo(s)||!pr(r))break}s.pos--}if(!a.length&&s.pos!==t){const o=e.slice(s.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:o,location:t-o.length,start:n.prefix?i-n.prefix.length:t-o.length,end:t}}}function ur(e,t,n){const o=e.pos;if(Go(e,t))for(;!Ho(e);){if(Go(e,n))return!0;e.pos--}return e.pos=o,!1}function cr(e,t){const n=e.pos;let o=!1;for(let r=t.length-1;r>=0&&!Ho(e)&&Go(e,t[r]);r--)o=0===r;return o||(e.pos=n),o}function pr(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||U.includes(e)}function fr(e,t){return e===D.RoundL||"markup"===t&&(e===D.SquareL||e===D.CurlyL)}function mr(e,t){return e===D.RoundR||"markup"===t&&(e===D.SquareR||e===D.CurlyR)}function dr(e,t){const n=Io(t);return"stylesheet"===n.type?function(e,t){return So(Lo(e,t),t)}(e,n):function(e,t){return po(co(e,t),t)}(e,n)}function br(e,t,n,o,r){var i;const s=kr(o);if(!s){if(!Q.has(o)){const e=Object.assign(Object.assign({},function(e){const t=Io({type:vr(e),syntax:e});return"xml"===e?{}:t.snippets}(o)),re[o]);Q.set(o,Object.keys(e))}M=null!==(i=Q.get(o))&&void 0!==i?i:[]}const a=function(e,t,n,o){const r=t.getLineContent(n.lineNumber),i=r.substr(0,n.column-1),{pos:s,filter:a}=function(e,t){let n;for(let o=0;o<oe;o++)if(e.endsWith(`${ee}${J}`,t))t-=4,n=n?J+","+n:J;else if(e.endsWith(`${ee}${ne}`,t))t-=2,n=n?ne+","+n:ne;else{if(!e.endsWith(`${ee}${te}`,t))break;t-=2,n=n?te+","+n:te}return{pos:t,filter:n}}(i,n.column-1),l=a?a.length+1:0,u=lr(r,s,o);if(u)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:a}}(e,t,n,{lookAhead:!s,type:vr(o)});if(!a)return;const{abbreviationRange:l,abbreviation:u,currentLineTillPosition:c,filter:p}=a;if(function(e){if(e){const t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}(c)===u&&c.endsWith(`<${u}`)&&!s)return;const f=function(e,t){var n;const o=t?t.split(",").map(e=>e.trim()):[],r=o.includes("bem"),i=o.includes("c"),s={"output.formatSkip":["html"],"output.formatForce":["body"],"output.field":ie,"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"},a=vr(e),l=wr(e);return{type:a,options:s,variables:{},snippets:"stylesheet"===a?null!==(n=re[e])&&void 0!==n?n:re[l]:re[e],syntax:e,text:void 0,maxRepeat:1e3}}(o,p);let m,d="",b=[];if(((t,n)=>{if(function(e,t){if(!t)return!1;if(kr(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(K.includes(t.substring(0,t.indexOf("#"))))return!1}return G.test(t)}return t.startsWith("!")?!/[^!]/.test(t):!!(!/\(/.test(t)&&!/\)/.test(t)||/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)||/\(.*\)[>\+\*\^]/.test(t)||/\[[^\[\]\(\)]+=".*"\]/.test(t)||/[>\+\*\^]\(.*\)/.test(t))&&("jsx"===e?X.test(t)&&Y.test(t):Z.test(t)&&Y.test(t))}(t,u)){try{d=dr(n,f),s&&"!important".startsWith(n)&&(d="!important")}catch(o){}d&&!function(e,t,n,o){var r,i;if(kr(e)&&o){const e=null!==(r=o["stylesheet.between"])&&void 0!==r?r:": ",s=null!==(i=o["stylesheet.after"])&&void 0!==i?i:";";let a=t.indexOf(e[0],Math.max(t.length-e.length,0));return a=a>=0?a:t.length,n===`${t.substring(0,a)}${e}\${0}${s}`||n.replace(/\s/g,"")===t.replace(/\s/g,"")+s}if("xml"===e&&K.some(e=>e.startsWith(t.toLowerCase())))return!0;if(K.includes(t.toLowerCase())||M.includes(t))return!1;if(/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if("."===t)return!1;const s=t.match(/^([a-z,A-Z,\d]*)\.$/);return s?!s[1]||!I.tags.includes(s[1]):("jsx"!==e||!/^([A-Z][A-Za-z0-9]*)+$/.test(t))&&n.toLowerCase()===`<${t.toLowerCase()}>\${1}</${t.toLowerCase()}>`}(t,n,d,f.options)&&(m={kind:e.languages.CompletionItemKind.Property,label:u+(p?"|"+p.replace(",","|"):""),documentation:hr(d),detail:"Emmet abbreviation",insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:l,insertText:yr(xr(d))},b=[m])}})(o,u),s){if(u.length>4&&P.properties.some(e=>e.startsWith(u)))return{suggestions:[],incomplete:!0};if(m&&d.length){m.range=l,m.insertText=yr(xr(d)),m.documentation=hr(d),m.label=d.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1"),m.filterText=u;const t=H.has(o)?H.get(o):H.get("css");if(b=gr(e,null!=t?t:[],u,u,l,f,"Emmet Custom Snippet",!1),!b.find(e=>e.insertText===(null==m?void 0:m.insertText))){const e=new RegExp(".*"+u.split("").map(e=>"$"===e||"+"===e?"\\"+e:e).join(".*")+".*","i");(/\d/.test(u)||e.test(m.label))&&b.push(m)}}}else{let t=u;const n=u.match(/(>|\+)([\w:-]+)$/);if(n&&3===n.length&&(t=n[2]),"xml"!==o){const n=gr(e,K,t,u,l,f,"Emmet Abbreviation");b=b.concat(n)}{const n=gr(e,M.filter(e=>!K.includes(e)),t,u,l,f,"Emmet Abbreviation");m&&n.length>0&&t!==u&&(m.sortText="0"+m.label,n.forEach(e=>{e.filterText=u,e.sortText="9"+u})),b=b.concat(n)}"html"===o&&b.length>=2&&u.includes(":")&&(null==m?void 0:m.insertText)===`<${u}>\${0}</${u}>`&&(b=b.filter(e=>e.label!==u))}return b.length?{suggestions:b,incomplete:!0}:void 0}function gr(e,t,n,o,r,i,s,a=!0){if(!n||!t)return[];const l=[];return t.forEach(t=>{if(!t.startsWith(n.toLowerCase())||a&&t===n.toLowerCase())return;const u=o+t.substr(n.length);let c;try{c=dr(u,i)}catch(f){}if(!c)return;const p={kind:e.languages.CompletionItemKind.Property,label:n+t.substr(n.length),documentation:hr(c),detail:s,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:r,insertText:yr(xr(c))};l.push(p)}),l}function hr(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function yr(e){return e?e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):e}function xr(e){if(!e||!e.trim())return e;let t=-1,n=[],o=!1,r=!1,i=0;const s=e.length;try{for(;i<s&&!o;){if("$"!=e[i++]||"{"!=e[i++])continue;let a=-1,l=-1;for(;i<s&&/\d/.test(e[i]);)a=a<0?i:a,l=i+1,i++;if(-1===a||-1===l||i>=s||"}"!=e[i]&&":"!=e[i])continue;const u=e.substring(a,l);if(o="0"===u,o)break;let c=!1;if(":"==e[i++])for(;i<s;){if("}"==e[i]){c=!0;break}i++}Number(u)>Number(t)?(t=Number(u),n=[{numberStart:a,numberEnd:l}],r=!c):Number(u)===t&&n.push({numberStart:a,numberEnd:l})}}catch(a){}if(r&&!o)for(let l=0;l<n.length;l++){const t=n[l].numberStart,o=n[l].numberEnd;e=e.substr(0,t)+"0"+e.substr(o)}return e}function kr(e){return"css"===e}function vr(e){return kr(e)?"stylesheet":"markup"}function wr(e){return kr(e)?"css":"html"}function $r(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))}function zr(e,t,n,o){var r;const{column:i,lineNumber:s}=t,{_stateStore:a,_support:l}=function(e){var t;if(se.has(e))return se.get(e);let n=e._tokenization||e.tokenization._tokenization,o=null==n?void 0:n._tokenizationStateStore;if(!n||!o){const r=e.tokenization,i=r.grammarTokens||r._tokens||(null===(t=r.tokens)||void 0===t?void 0:t._value);i?(n=i._defaultBackgroundTokenizer,o=n._tokenizerWithStateStore):(Object.values(r).some(e=>n=e.tokenizeViewport&&e),Object.values(n).some(e=>o=e.tokenizationSupport&&e))}const r=o.tokenizationSupport||n._tokenizationSupport,i={_stateStore:o,_support:r};return se.set(e,i),i}(e),u=(null===(r=a.getBeginState)||void 0===r?void 0:r.call(a,s-1).clone())||a.getStartState(s).clone(),c=l.tokenize(e.getLineContent(s),!0,u,0).tokens;let p=!1;for(let f=c.length-1;f>=0;f--)if(i-1>c[f].offset){p=$r(c,f,n,o);break}return p}function Cr(e,t,n,o,r){return"standard"===(null==r?void 0:r.tokenizer)?function(e,t,n,o){const r=e.tokenization;if("function"!=typeof(null==r?void 0:r.getLineTokens))return console.warn("emmet-monaco-es: Standard tokenizer may not be supported in this version of monaco-editor. Falling back to Monarch tokenizer for emmet abbreviation detection."),zr(e,t,n,o);const{column:i,lineNumber:s}=t,a=r.getLineTokens(s);let l=-1;for(let u=a.getCount()-1;u>=0;u--)if(i-1>a.getStartOffset(u)){l=u;break}return!(l<0)&&0===a.getStandardTokenType(l)}(e,t,n,o):zr(e,t,n,o)}function Sr(e,t,n,o){if(!e)return console.error("emmet-monaco-es: 'monaco' should be either declared on window or passed as first parameter"),()=>{};const r=t.map(t=>e.languages.registerCompletionItemProvider(t,{triggerCharacters:ae[le[t]||t],provideCompletionItems:(r,i)=>Cr(r,i,n,t,o)?br(e,r,i,n):void 0}));return()=>{r.forEach(e=>e.dispose())}}return e({emmetCSS:function(e=window.monaco,t=["css"],n){return Sr(e,t,"css",n)},emmetHTML:function(e=window.monaco,t=["html"],n){return Sr(e,t,"html",n)},emmetJSX:function(e=window.monaco,t=["javascript"],n){return Sr(e,t,"jsx",n)},expandAbbreviation:function(e,t){let n;const o=Io(t);return n="stylesheet"===t.type?"string"==typeof e?dr(e,o):So(e,o):"string"==typeof e?dr(e,o):po(e,o),yr(xr(n))},registerCustomSnippets:function(e,t){const n=wr(e);if(n!==e&&re[n]&&(t=Object.assign({},re[n],t)),kr(e)){const n=H.get(e),o=Object.assign([],n,Object.keys(t));H.set(e,o)}const o=re[e];re[e]=Object.assign({},o,t)}}),{setters:[],execute:function(){n=class e{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(t,n){return new e(this.string,t,n)}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 o(`${e} at ${t+1}`,t,this.string)}},o=class extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}},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"}(r||(r={})),i={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},s={Literal:e=>e.value,Quote:e=>e.single?"'":'"',Bracket:e=>"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}",Operator:e=>i[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 o=t.repeaters.length-1;o>=0;o--)if(t.repeaters[o].implicit){n=t.repeaters[o];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},a=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,l=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/,function(e){e.Sibling="+",e.Important="!",e.ArgumentDelimiter=",",e.ValueDelimiter="-",e.PropertyDelimiter=":"}(u||(u={})),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"}(c||(c={})),p="{",f="}",m={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"},d={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"]}},b=/^lorem([a-z]*)(\d*)(-\d*)?$/i,g=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,h=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,y=e=>/^[a-z]\-/i.test(e),x=e=>/^[a-z]/i.test(e),k=[{type:"Field",index:0,name:""}],function(e){e[e.Start=91]="Start",e[e.End=93]="End",e[e.Underscore=95]="Underscore",e[e.Dash=45]="Dash"}(v||(v={})),w=/^<([\w\-:]+)[\s>]/,$=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"]),z={html:Xn,haml:ao,slim:lo,pug:uo},function(e){e.Raw="Raw",e.Property="Property"}(C||(C={})),S=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,j={value:!0},q={Section:"@@section",Property:"@@property",Value:"@@value"},A="lg",R={"@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"},L={"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"?>}'},O={"!!!":"{doctype html}"},B={markup:"html",stylesheet:"css"},E={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}},T={markup:{snippets:Po({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:Po(L),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:Po(O)},stylesheet:{snippets:Po(R)},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}},function(e){e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Escape=92]="Escape"}(N||(N={})),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"}(D||(D={})),F={[D.SquareL]:D.SquareR,[D.RoundL]:D.RoundR,[D.CurlyL]:D.CurlyR},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"}(W||(W={})),V=e=>e.charCodeAt(0),U="#.*:$-_!@%^+>/".split("").map(V),_={type:"markup",lookAhead:!0,prefix:""},P={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"]},I={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"]},Q=new Map,H=new Map,Z=/^[a-z,A-Z,!,(,[,#,\.\{]/,X=/^[a-z,A-Z,!,(,[,#,\.]/,G=/^-?[a-z,A-Z,!,@,#]/,Y=/[a-z,A-Z\.]/,K=[...I.tags,"lorem"],J="bem",ee="|",te="t",ne="c",oe=3,re={},ie=(e,t)=>`\${${e}${t?":"+t:""}}`,se=new WeakMap,ae={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"]},le={handlebars:"html",php:"html",twig:"html"}}}});
//# sourceMappingURL=emmet-monaco.esm-legacy-CCPYsPzy.js.map