tmagic-editor/playground/assets/emmet-monaco.esm--fAAg2xs.js
2026-03-12 09:37:48 +00:00

3 lines
94 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.

function N(e){return e>47&&e<58}function he(e,t,i){return t=t||65,i=i||90,e&=-33,e>=t&&e<=i}function Rt(e){return N(e)||ye(e)}function ye(e){return e===95||he(e)}function Ii(e){return e===196||e==214||e===220||e===228||e===246||e===252}function _i(e){return e===32||e===9||e===160}function Ie(e){return _i(e)||e===10||e===13}function _e(e){return e===39||e===34}class xe{constructor(t,i,o){o==null&&typeof t=="string"&&(o=t.length),this.string=t,this.pos=this.start=i||0,this.end=o||0}eof(){return this.pos>=this.end}limit(t,i){return new xe(this.string,t,i)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(t){const i=this.peek(),o=typeof t=="function"?t(i):i===t;return o&&this.next(),o}eatWhile(t){const i=this.pos;for(;!this.eof()&&this.eat(t););return this.pos!==i}backUp(t){this.pos-=t||1}current(){return this.substring(this.start,this.pos)}substring(t,i){return this.string.slice(t,i)}error(t,i=this.pos){return new Ue("".concat(t," at ").concat(i+1),i,this.string)}}class Ue extends Error{constructor(t,i,o){super(t),this.pos=i,this.string=o}}function Ui(e){return{tokens:e,start:0,pos:0,size:e.length}}function P(e){return e.tokens[e.pos]}function Me(e){return e.tokens[e.pos++]}function M(e,t=e.start,i=e.pos){return e.tokens.slice(t,i)}function L(e){return e.pos<e.size}function y(e,t){const i=P(e);return i&&t(i)?(e.pos++,!0):!1}function Qe(e,t,i=P(e)){i&&i.start!=null&&(t+=" at ".concat(i.start));const o=new Error(t);return o.pos=i&&i.start,o}function Mi(e,t={}){const i=Ui(e),o=Ot(i,t);if(L(i))throw Qe(i,"Unexpected character");return o}function Ot(e,t){const i={type:"TokenGroup",elements:[]};let o=i,r;const n=[];for(;L(e)&&(r=Hi(e,t)||Qi(e,t));)if(o.elements.push(r),y(e,so))n.push(o),o=r;else{if(y(e,ao))continue;if(y(e,st))do n.length&&(o=n.pop());while(y(e,st))}return i}function Qi(e,t){if(y(e,no)){const i=Ot(e,t),o=Me(e);return q(o,"group",!1)&&(i.repeat=Ki(e)),i}}function Hi(e,t){let i;const o={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(Xi(e,t)&&(o.name=M(e));L(e);)if(e.start=e.pos,!o.repeat&&!$e(o)&&y(e,ae))o.repeat=e.tokens[e.pos-1];else if(!o.value&&Tt(e))o.value=Lt(e);else if(i=rt(e,"id",t)||rt(e,"class",t)||Gi(e))o.attributes?o.attributes=o.attributes.concat(i):o.attributes=Array.isArray(i)?i.slice():[i];else{!$e(o)&&y(e,uo)&&(o.selfClose=!0,!o.repeat&&y(e,ae)&&(o.repeat=e.tokens[e.pos-1]));break}return $e(o)?void 0:o}function Gi(e){if(y(e,io)){const t=[];let i;for(;L(e);)if(i=Zi(e))t.push(i);else{if(y(e,oo))break;if(!y(e,Et))throw Qe(e,'Unexpected "'.concat(P(e).type,'" token'))}return t}}function rt(e,t,i){if(E(P(e),t)){e.pos++;let o=1;for(;E(P(e),t);)e.pos++,o++;const r={name:[lo(t)]};return o>1&&(r.multiple=!0),i.jsx&&Tt(e)?(r.value=Lt(e),r.expression=!0):r.value=Te(e)?M(e):void 0,r}}function Zi(e){if(nt(e))return{value:M(e)};if(Te(e,!0)){const t=M(e);let i;return y(e,Yi)&&(nt(e)||Te(e,!0))&&(i=M(e)),{name:t,value:i}}}function Ki(e){return ae(P(e))?e.tokens[e.pos++]:void 0}function nt(e){const t=e.pos,i=P(e);if(se(i)){for(e.pos++;L(e);)if(se(Me(e),i.single))return e.start=t,!0;throw Qe(e,"Unclosed quote",i)}return!1}function Te(e,t){const i=e.pos,o={attribute:0,expression:0,group:0};for(;L(e);){const r=P(e);if(o.expression)q(r,"expression")&&(o[r.context]+=r.open?1:-1);else{if(se(r)||E(r)||Et(r)||ae(r))break;if(q(r)){if(!t)break;if(r.open)o[r.context]++;else if(o[r.context])o[r.context]--;else break}}e.pos++}return i!==e.pos?(e.start=i,!0):!1}function Xi(e,t){const i=e.pos;if(t.jsx&&y(e,lt))for(;L(e);){const{pos:o}=e;if(!y(e,to)||!y(e,lt)){e.pos=o;break}}for(;L(e)&&y(e,eo););return e.pos!==i?(e.start=i,!0):!1}function Tt(e){const t=e.pos;if(y(e,ro)){let i=0;for(;L(e);){const o=Me(e);if(q(o,"expression"))if(o.open)i++;else if(i)i--;else break}return e.start=t,!0}return!1}function Lt(e){let t=e.start,i=e.pos;return q(e.tokens[t],"expression",!0)&&t++,q(e.tokens[i-1],"expression",!1)&&i--,M(e,t,i)}function q(e,t,i){return!!(e&&e.type==="Bracket"&&(!t||e.context===t)&&(i==null||e.open===i))}function E(e,t){return!!(e&&e.type==="Operator"&&(!t||e.operator===t))}function se(e,t){return!!(e&&e.type==="Quote"&&(t==null||e.single===t))}function Et(e){return!!(e&&e.type==="WhiteSpace")}function Yi(e){return E(e,"equal")}function ae(e){return!!(e&&e.type==="Repeater")}function Ji(e){return e.type==="Literal"}function lt(e){if(Ji(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function eo(e){return e.type==="Literal"||e.type==="RepeaterNumber"||e.type==="RepeaterPlaceholder"}function to(e){return E(e,"class")}function io(e){return q(e,"attribute",!0)}function oo(e){return q(e,"attribute",!1)}function ro(e){return q(e,"expression",!0)}function no(e){return q(e,"group",!0)}function lo(e){return{type:"Literal",value:e}}function $e(e){return!e.name&&!e.value&&!e.attributes}function so(e){return E(e,"child")}function ao(e){return E(e,"sibling")}function st(e){return E(e,"climb")}function uo(e){return E(e,"close")}var p;(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"})(p||(p={}));function co(e){return e.eat(p.Escape)?(e.start=e.pos,e.eof()||e.pos++,!0):!1}function po(e){const t=new xe(e),i=[],o={group:0,attribute:0,expression:0,quote:0};let r=0,n;for(;!t.eof();)if(r=t.peek(),n=fo(t,o),n)i.push(n),n.type==="Quote"?o.quote=r===o.quote?0:r:n.type==="Bracket"&&(o[n.context]+=n.open?1:-1);else throw t.error("Unexpected character");return i}function fo(e,t){return wo(e,t)||vo(e)||ko(e)||xo(e)||bo(e)||mo(e,t)||yo(e)||go(e)||ho(e)}function mo(e,t){const i=e.pos,o=t.expression;let r="";for(;!e.eof();){if(co(e)){r+=e.current();continue}const n=e.peek();if(n===p.Slash&&!t.quote&&!t.expression&&!t.attribute){const l=e.string.charCodeAt(e.pos-1),s=e.string.charCodeAt(e.pos+1);if(N(l)&&N(s)){r+=e.string[e.pos++];continue}}if(n===t.quote||n===p.Dollar||$o(n,t))break;if(o){if(n===p.CurlyBracketOpen)t.expression++;else if(n===p.CurlyBracketClose)if(t.expression>o)t.expression--;else break}else if(!t.quote&&(!t.attribute&&!Co(n)||So(n,t)||zo(n,t)||_e(n)||Bt(n)))break;r+=e.string[e.pos++]}if(i!==e.pos)return e.start=i,{type:"Literal",value:r,start:i,end:e.pos}}function bo(e){const t=e.pos;if(e.eatWhile(Ie))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}function go(e){const t=e.peek();if(_e(t))return{type:"Quote",single:t===p.SingleQuote,start:e.pos++,end:e.pos}}function ho(e){const t=e.peek(),i=Bt(t);if(i)return{type:"Bracket",open:Ao(t),context:i,start:e.pos++,end:e.pos}}function yo(e){const t=Dt(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function xo(e){const t=e.pos;if(e.eat(p.Asterisk)){e.start=e.pos;let i=1,o=!1;return e.eatWhile(N)?i=Number(e.current()):o=!0,{type:"Repeater",count:i,value:0,implicit:o,start:t,end:e.pos}}}function vo(e){const t=e.pos;if(e.eat(p.Dollar)&&e.eat(p.Hash))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}function ko(e){const t=e.pos;if(e.eatWhile(p.Dollar)){const i=e.pos-t;let o=!1,r=1,n=0;if(e.eat(p.At)){for(;e.eat(p.Climb);)n++;o=e.eat(p.Dash),e.start=e.pos,e.eatWhile(N)&&(r=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:i,reverse:o,base:r,parent:n,start:t,end:e.pos}}}function wo(e,t){const i=e.pos;if((t.expression||t.attribute)&&e.eat(p.Dollar)&&e.eat(p.CurlyBracketOpen)){e.start=e.pos;let o,r="";if(e.eatWhile(N)?(o=Number(e.current()),r=e.eat(p.Colon)?at(e):""):he(e.peek())&&(r=at(e)),e.eat(p.CurlyBracketClose))return{type:"Field",index:o,name:r,start:i,end:e.pos};throw e.error("Expecting }")}e.pos=i}function at(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(p.CurlyBracketOpen))t.push(e.pos);else if(e.eat(p.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 $o(e,t){const i=Dt(e);return!i||t.quote||t.expression?!1:!t.attribute||i==="equal"}function So(e,t){return Ie(e)&&!t.expression}function zo(e,t){return e===p.Asterisk&&!t.attribute&&!t.expression}function Bt(e){if(e===p.RoundBracketOpen||e===p.RoundBracketClose)return"group";if(e===p.SquareBracketOpen||e===p.SquareBracketClose)return"attribute";if(e===p.CurlyBracketOpen||e===p.CurlyBracketClose)return"expression"}function Dt(e){return e===p.Child&&"child"||e===p.Sibling&&"sibling"||e===p.Climb&&"climb"||e===p.Dot&&"class"||e===p.Hash&&"id"||e===p.Slash&&"close"||e===p.Equals&&"equal"||void 0}function Ao(e){return e===p.CurlyBracketOpen||e===p.SquareBracketOpen||e===p.RoundBracketOpen}function Co(e){return Rt(e)||Ii(e)||e===p.Dash||e===p.Colon||e===p.Excl}const qo={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},ut={Literal(e){return e.value},Quote(e){return e.single?"'":'"'},Bracket(e){return e.context==="attribute"?e.open?"[":"]":e.context==="expression"?e.open?"{":"}":e.open?"(":"}"},Operator(e){return qo[e.operator]},Field(e,t){return e.index!=null?e.name?"${".concat(e.index,":").concat(e.name,"}"):"${".concat(e.index):e.name?t.getVariable(e.name):""},RepeaterPlaceholder(e,t){let i;for(let o=t.repeaters.length-1;o>=0;o--)if(t.repeaters[o].implicit){i=t.repeaters[o];break}return t.inserted=!0,t.getText(i&&i.value)},RepeaterNumber(e,t){let i=1;const o=t.repeaters.length-1,r=t.repeaters[o];if(r&&(i=e.reverse?e.base+r.count-r.value-1:e.base+r.value,e.parent)){const l=Math.max(0,o-e.parent);if(l!==o){const s=t.repeaters[l];i+=r.count*s.value}}let n=String(i);for(;n.length<e.size;)n="0"+n;return n},WhiteSpace(e){return e.value}};function Vt(e,t){if(!ut[e.type])throw new Error("Unknown token ".concat(e.type));return ut[e.type](e,t)}const jo=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,No=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function Ro(e,t={}){let i=!1,o;t.text&&(Array.isArray(t.text)?o=t.text.filter(n=>n.trim()):o=t.text);const r={type:"Abbreviation",children:Le(e,{inserted:!1,repeaters:[],text:t.text,cleanText:o,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(n){var l;i=!0;let s;if(Array.isArray(t.text)){if(n!==void 0&&n>=0&&n<o.length)return o[n];s=n!==void 0?t.text[n]:t.text.join("\n")}else s=(l=t.text)!==null&&l!==void 0?l:"";return s},getVariable(n){const l=t.variables&&t.variables[n];return l!=null?l:n}})};if(t.text!=null&&!i){const n=He(G(r.children));if(n){const l=Array.isArray(t.text)?t.text.join("\n"):t.text;_t(n,l),n.name==="a"&&t.href&&To(n,l)}}return r}function Ft(e,t){let i=[];if(e.repeat){const o=e.repeat,r=Object.assign({},o);r.count=r.implicit&&Array.isArray(t.text)?t.cleanText.length:r.count||1;let n;t.repeaters.push(r);for(let l=0;l<r.count;l++){if(r.value=l,e.repeat=r,n=pt(e)?Le(e,t):ct(e,t),r.implicit&&!t.inserted){const s=G(n),a=s&&He(s);a&&_t(a,t.getText(r.value))}if(i=i.concat(n),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=o,r.implicit&&(t.inserted=!0)}else i=i.concat(pt(e)?Le(e,t):ct(e,t));return i}function ct(e,t){let i=[];const o={type:"AbbreviationNode",name:e.name&&Pt(e.name,t),value:e.value&&Wt(e.value,t),attributes:void 0,children:i,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let r=[o];for(const n of e.elements)i=i.concat(Ft(n,t));if(e.attributes){o.attributes=[];for(const n of e.attributes)o.attributes.push(Oo(n,t))}return!o.name&&!o.attributes&&o.value&&!o.value.some(It)?r=r.concat(i):o.children=i,r}function Le(e,t){let i=[];for(const o of e.elements)i=i.concat(Ft(o,t));return e.repeat&&(i=Lo(i,e.repeat)),i}function Oo(e,t){let i=!1,o=!1,r=e.expression?"expression":"raw",n;const l=e.name&&Pt(e.name,t);if(l&&l[0]==="!"&&(i=!0),l&&l[l.length-1]==="."&&(o=!0),e.value){const s=e.value.slice();if(se(s[0])){const a=s.shift();s.length&&G(s).type===a.type&&s.pop(),r=a.single?"singleQuote":"doubleQuote"}else q(s[0],"expression",!0)&&(r="expression",s.shift(),q(G(s),"expression",!1)&&s.pop());n=Wt(s,t)}return{name:o||i?l.slice(i?1:0,o?-1:void 0):l,value:n,boolean:o,implied:i,valueType:r,multiple:e.multiple}}function Pt(e,t){let i="";for(let o=0;o<e.length;o++)i+=Vt(e[o],t);return i}function Wt(e,t){const i=[];let o="";for(let r=0,n;r<e.length;r++)n=e[r],It(n)?(o&&(i.push(o),o=""),i.push(n)):o+=Vt(n,t);return o&&i.push(o),i}function pt(e){return e.type==="TokenGroup"}function It(e){return typeof e=="object"&&e.type==="Field"&&e.index!=null}function G(e){return e[e.length-1]}function He(e){return e.children.length?He(G(e.children)):e}function _t(e,t){e.value?typeof G(e.value)=="string"?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}function To(e,t){var i;let o="";jo.test(t)?(o=t,!/\w+:/.test(o)&&!o.startsWith("//")&&(o="http://".concat(o))):No.test(t)&&(o="mailto:".concat(t));const r=(i=e.attributes)===null||i===void 0?void 0:i.find(n=>n.name==="href");r?r.value||(r.value=[o]):(e.attributes||(e.attributes=[]),e.attributes.push({name:"href",value:[o],valueType:"doubleQuote"}))}function Lo(e,t){for(const i of e)i.repeat||(i.repeat=Object.assign({},t));return e}function Ut(e,t){try{const i=typeof e=="string"?po(e):e;return Ro(Mi(i,t),t)}catch(i){throw i instanceof Ue&&typeof e=="string"&&(i.message+="\n".concat(e,"\n").concat("-".repeat(i.pos),"^")),i}}var A;(function(e){e.Sibling="+",e.Important="!",e.ArgumentDelimiter=",",e.ValueDelimiter="-",e.PropertyDelimiter=":"})(A||(A={}));var f;(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"})(f||(f={}));function Eo(e,t){let i=0,o;const r=new xe(e),n=[];for(;!r.eof();){if(o=Bo(r,i===0&&!t),!o)throw r.error("Unexpected character");if(o.type==="Bracket"&&(!i&&o.open&&Yo(r,n),i+=o.open?1:-1,i<0))throw r.error("Unexpected bracket",o.start);n.push(o),Xo(o)&&(o=Mt(r))&&n.push(o)}return n}function Bo(e,t){return Do(e)||_o(e)||Fo(e)||Wo(e)||Po(e)||Uo(e)||Mt(e)||Io(e)||Vo(e,t)}function Do(e){const t=e.pos;if(e.eat(f.Dollar)&&e.eat(f.CurlyBracketOpen)){e.start=e.pos;let i,o="";if(e.eatWhile(N)?(i=Number(e.current()),o=e.eat(f.Colon)?ft(e):""):he(e.peek())&&(o=ft(e)),e.eat(f.CurlyBracketClose))return{type:"Field",index:i,name:o,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}function ft(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(f.CurlyBracketOpen))t.push(e.pos);else if(e.eat(f.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 Vo(e,t){const i=e.pos;if(e.eat(Qo)?e.eatWhile(i?Ee:ze):e.eat(ye)?e.eatWhile(t?ze:Ee):(e.eat(f.Dot),e.eatWhile(ze)),i!==e.pos)return e.start=i,Ge(e,e.start=i)}function Ge(e,t=e.start,i=e.pos){return{type:"Literal",value:e.substring(t,i),start:t,end:i}}function Fo(e){const t=e.pos;if(Mo(e)){e.start=t;const i=e.current();return e.start=e.pos,e.eat(f.Percent)||e.eatWhile(ye),{type:"NumberValue",value:Number(i),rawValue:i,unit:e.current(),start:t,end:e.pos}}}function Po(e){const t=e.peek(),i=e.pos;let o=!1;if(_e(t)){for(e.pos++;!e.eof();)if(e.eat(t)){o=!0;break}else e.pos++;return e.start=i,{type:"StringValue",value:e.substring(i+1,e.pos-(o?1:0)),quote:t===f.SingleQuote?"single":"double",start:i,end:e.pos}}}function Wo(e){const t=e.pos;if(e.eat(f.Hash)){const i=e.pos;let o="",r="";if(e.eatWhile(Go)?(o=e.substring(i,e.pos),r=Se(e)):e.eat(f.Transparent)?(o="0",r=Se(e)||"0"):r=Se(e),o||r||e.eof()){const{r:n,g:l,b:s,a}=Ko(o,r);return{type:"ColorValue",r:n,g:l,b:s,a,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}else return Ge(e,t)}e.pos=t}function Se(e){const t=e.pos;return e.eat(f.Dot)?(e.start=t,e.eatWhile(N)?e.current():"1"):""}function Io(e){const t=e.pos;if(e.eatWhile(Ie))return{type:"WhiteSpace",start:t,end:e.pos}}function _o(e){const t=e.pos;if(e.eat(f.Dash)&&e.eat(f.Dash))return e.start=t,e.eatWhile(Ee),{type:"CustomProperty",value:e.current(),start:t,end:e.pos};e.pos=t}function Uo(e){const t=e.peek();if(Zo(t))return{type:"Bracket",open:t===f.RoundBracketOpen,start:e.pos++,end:e.pos}}function Mt(e){const t=Ho(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function Mo(e){const t=e.pos;e.eat(f.Dash);const i=e.pos,o=e.eatWhile(N),r=e.pos;if(e.eat(f.Dot)){const n=e.eatWhile(N);!o&&!n&&(e.pos=r)}return e.pos===i&&(e.pos=t),e.pos!==t}function Qo(e){return e===f.At||e===f.Dollar}function Ho(e){return e===f.Sibling&&A.Sibling||e===f.Excl&&A.Important||e===f.Comma&&A.ArgumentDelimiter||e===f.Colon&&A.PropertyDelimiter||e===f.Dash&&A.ValueDelimiter||void 0}function Go(e){return N(e)||he(e,65,70)}function Ee(e){return Rt(e)||e===f.Dash}function Zo(e){return e===f.RoundBracketOpen||e===f.RoundBracketClose}function ze(e){return ye(e)||e===f.Percent||e===f.Slash}function Ko(e,t){let i="0",o="0",r="0",n=Number(t!=null&&t!==""?t:1);if(e==="t")n=0;else switch(e.length){case 0:break;case 1:i=o=r=e+e;break;case 2:i=o=r=e;break;case 3:i=e[0]+e[0],o=e[1]+e[1],r=e[2]+e[2];break;default:e+=e,i=e.slice(0,2),o=e.slice(2,4),r=e.slice(4,6)}return{r:parseInt(i,16),g:parseInt(o,16),b:parseInt(r,16),a:n}}function Xo(e){return e.type==="ColorValue"||e.type==="NumberValue"&&!e.unit}function Yo(e,t){let i=0,o=0;for(;t.length;){const r=Jo(t);if(r.type==="Literal"||r.type==="NumberValue")i=r.start,o||(o=r.end),t.pop();else break}i!==o&&t.push(Ge(e,i,o))}function Jo(e){return e[e.length-1]}function er(e){return{tokens:e,start:0,pos:0,size:e.length}}function ve(e){return e.tokens[e.pos]}function ke(e){return e.pos<e.size}function T(e,t){return t(ve(e))?(e.pos++,!0):!1}function Qt(e,t,i=ve(e)){i&&i.start!=null&&(t+=" at ".concat(i.start));const o=new Error(t);return o.pos=i&&i.start,o}function tr(e,t={}){const i=er(e),o=[];let r;for(;ke(i);)if(r=ir(i,t))o.push(r);else if(!T(i,lr))throw Qt(i,"Unexpected token");return o}function ir(e,t){let i,o=!1,r;const n=[],l=ve(e),s=!!t.value;for(!s&&Ze(l)&&!cr(e)&&(e.pos++,i=l.value,T(e,Kt)),s&&T(e,Ke);ke(e);)if(T(e,ar))o=!0;else if(r=Ht(e,s))n.push(r);else if(!T(e,sr))break;if(i||n.length||o)return{name:i,value:n,important:o}}function Ht(e,t){const i=[];let o,r;for(;ke(e);)if(o=ve(e),ur(o))e.pos++,Ze(o)&&(r=or(e))?i.push({type:"FunctionCall",name:o.value,arguments:r}):i.push(o);else if(Kt(o)||t&&Ke(o))e.pos++;else break;return i.length?{type:"CSSValue",value:i}:void 0}function or(e){const t=e.pos;if(T(e,rr)){const i=[];let o;for(;ke(e)&&!T(e,nr);)if(o=Ht(e,!0))i.push(o);else if(!T(e,Ke)&&!T(e,Zt))throw Qt(e,"Unexpected token");return e.start=t,i}}function Ze(e){return e&&e.type==="Literal"}function Gt(e,t){return e&&e.type==="Bracket"&&(t==null||e.open===t)}function rr(e){return Gt(e,!0)}function nr(e){return Gt(e,!1)}function Ke(e){return e&&e.type==="WhiteSpace"}function X(e,t){return e&&e.type==="Operator"&&(!t||e.operator===t)}function lr(e){return X(e,A.Sibling)}function Zt(e){return X(e,A.ArgumentDelimiter)}function sr(e){return Zt(e)}function ar(e){return X(e,A.Important)}function ur(e){return e.type==="StringValue"||e.type==="ColorValue"||e.type==="NumberValue"||e.type==="Literal"||e.type==="Field"||e.type==="CustomProperty"}function Kt(e){return X(e,A.PropertyDelimiter)||X(e,A.ValueDelimiter)}function cr(e){const t=e.tokens[e.pos],i=e.tokens[e.pos+1];return t&&i&&Ze(t)&&i.type==="Bracket"}function Xt(e,t){try{const i=typeof e=="string"?Eo(e,t&&t.value):e;return tr(i,t)}catch(i){throw i instanceof Ue&&typeof e=="string"&&(i.message+="\n".concat(e,"\n").concat("-".repeat(i.pos),"^")),i}}function pr(e,t){if(!e.attributes)return;const i=[],o={};for(const r of e.attributes)if(r.name){const n=r.name;if(n in o){const l=o[n];n==="class"?l.value=fr(l.value,r.value," "):mr(l,r,t)}else i.push(o[n]=Object.assign({},r))}else i.push(r);e.attributes=i}function fr(e,t,i){if(e&&t){e.length&&i&&mt(e,i);for(const r of t)mt(e,r);return e}const o=e||t;return o&&o.slice()}function mr(e,t,i){return e.name=t.name,i.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),e.valueType!=="expression"&&(e.valueType=t.valueType),e}function mt(e,t){const i=e.length-1;typeof e[i]=="string"&&typeof t=="string"?e[i]+=t:e.push(t)}function dr(e,t,i){const o=[e],r=n=>{t(n,o,i),o.push(n),n.children.forEach(r),o.pop()};e.children.forEach(r)}function Yt(e,t){for(let i=0;i<e.children.length;i++){const o=e.children[i];if(t(o))return o;const r=Yt(o,t);if(r)return r}}function br(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function Jt(e){return e.type==="AbbreviationNode"}function gr(e,t){const i=[],o=t.options["output.reverseAttributes"],{warn:r}=t,n=l=>{const s=l.name&&t.snippets[l.name];if(!s||i.includes(s))return null;let a;try{a=Ut(s,t)}catch(u){return r==null||r('Unable to parse "'.concat(s,'" snippet'),u),null}i.push(s),ue(a,n),i.pop();for(const u of a.children){if(l.attributes){const c=u.attributes||[],b=l.attributes||[];u.attributes=o?b.concat(c):c.concat(b)}hr(l,u)}return a};return ue(e,n),e}function ue(e,t,i){let o=[];for(const r of e.children){const n=t(r);if(n){o=o.concat(n.children);const l=br(n);Jt(l.node)&&(l.node.children=l.node.children.concat(ue(r,t)))}else o.push(r),r.children=ue(r,t)}return e.children=o}function hr(e,t){e.selfClosing&&(t.selfClosing=!0),e.value!=null&&(t.value=e.value),e.repeat&&(t.repeat=e.repeat)}const Be="{",De="}";function ei(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function h(e,t){const i=e.options["output.text"];oi(e,i(t,e.offset,e.line,e.column))}function d(e,t){const i=kr(t);for(let o=0,r=i.length-1;o<=r;o++)h(e,i[o]),o!==r&&O(e,!0)}function O(e,t){const i=e.options["output.baseIndent"],o=e.options["output.newline"];h(e,o+i),e.line++,e.column=i.length,t&&yr(e,t===!0?e.level:t)}function yr(e,t=e.level){const i=e.options["output.indent"];h(e,i.repeat(Math.max(t,0)))}function Xe(e,t,i){const o=e.options["output.field"];oi(e,o(t,i,e.offset,e.line,e.column))}function xr(e,t){return ri(e,t.options["output.tagCase"])}function ti(e,t){return ri(e,t.options["output.attributeCase"])}function ce(e,t,i){return e.valueType==="expression"?i?Be:De:t.options["output.attributeQuotes"]==="single"?"'":'"'}function ii(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function vr(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}function Q(e,t){return typeof e=="string"?t.options.inlineElements.includes(e.toLowerCase()):e.name?Q(e.name,t):!!(e.value&&!e.attributes)}function kr(e){return e.split(/\r\n|\r|\n/g)}function oi(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function ri(e,t){return t?t==="upper"?e.toUpperCase():e.toLowerCase():e}const wr={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function $r(e,t,i){!e.name&&e.attributes&&ni(e,t,i)}function ni(e,t,i){const o=zr(t),r=i.context?i.context.name:"",n=Sr(o?o.name:r);e.name=wr[n]||(Q(n,i)?"span":"div")}function Sr(e){return(e||"").toLowerCase()}function zr(e){for(let t=e.length-1;t>=0;t--){const i=e[t];if(Jt(i))return i}}var Ar={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"]},Cr={common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},qr={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"]};const dt={ru:Cr,sp:qr,latin:Ar},jr=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function Nr(e,t,i){let o;if(e.name&&(o=e.name.match(jr))){const r=dt[o[1]]||dt.latin,n=o[2]?Math.max(1,Number(o[2])):30,l=o[3]?Math.max(n,Number(o[3].slice(1))):n,s=V(n,l),a=e.repeat||Er(t);e.name=e.attributes=void 0,e.value=[Lr(r,s,!a||a.value===0)],e.repeat&&t.length>1&&ni(e,t,i)}}function V(e,t){return Math.floor(Math.random()*(t-e)+e)}function Rr(e,t){const i=e.length,o=Math.min(i,t),r=[];for(;r.length<o;){const n=e[V(0,i)];r.includes(n)||r.push(n)}return r}function Or(e){return e[V(0,e.length-1)]}function bt(e,t){return e.length&&(e=[Tr(e[0])].concat(e.slice(1))),e.join(" ")+(t||Or("?!..."))}function Tr(e){return e[0].toUpperCase()+e.slice(1)}function gt(e){if(e.length<2)return e;e=e.slice();const t=e.length,i=/,$/;let o=0;t>3&&t<=6?o=V(0,1):t>6&&t<=12?o=V(0,2):o=V(1,4);for(let r=0,n;r<o;r++)n=V(0,t-2),i.test(e[n])||(e[n]+=",");return e}function Lr(e,t,i){const o=[];let r=0,n;for(i&&e.common&&(n=e.common.slice(0,t),r+=n.length,o.push(bt(gt(n),".")));r<t;)n=Rr(e.words,Math.min(V(2,30),t-r)),r+=n.length,o.push(bt(gt(n)));return o.join(" ")}function Er(e){for(let t=e.length-1;t>=0;t--){const i=e[t];if(i.type==="AbbreviationNode"&&i.repeat)return i.repeat}}function Br(e){Vr(e.name)&&e.attributes&&(e.children.length||e.value)&&(e.attributes=e.attributes.filter(Dr))}function Dr(e){return e.name!=="select"}function Vr(e){return e==="xsl:variable"||e==="xsl:with-param"}const li=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,si=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,Fr=e=>/^[a-z]\-/i.test(e),Pr=e=>/^[a-z]/i.test(e);function Wr(e,t,i){Ir(e),_r(e,t,i)}function Ir(e){const t=Ye(e),i=[];for(const o of t.classNames){const r=o.indexOf("_");r>0&&!o.startsWith("-")?(i.push(o.slice(0,r)),i.push(o.slice(r))):i.push(o)}i.length&&(t.classNames=i.filter(pi),t.block=ui(t.classNames),ci(e,t.classNames.join(" ")))}function _r(e,t,i){const o=Ye(e),r=[],{options:n}=i,l=t.slice(1).concat(e);for(let a of o.classNames){let u="",c;const b=a;(c=a.match(li))&&(u=ht(l,c[1].length,i.context)+n["bem.element"]+c[2],r.push(u),a=a.slice(c[0].length)),(c=a.match(si))&&(u||(u=ht(l,c[1].length),r.push(u)),r.push("".concat(u).concat(n["bem.modifier"]).concat(c[2])),a=a.slice(c[0].length)),a===b&&r.push(b)}const s=r.filter(pi);s.length&&ci(e,s.join(" "))}function Ye(e){if(!e._bem){let t="";if(e.attributes){for(const i of e.attributes)if(i.name==="class"&&i.value){t=Mr(i.value);break}}e._bem=ai(t)}return e._bem}function Ur(e){return e._bem||(e._bem=ai(e.attributes&&e.attributes.class||"")),e._bem}function ai(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:ui(t)}}function ht(e,t=0,i){let r=Math.max(e.length-t,0);do{const n=e[r];if(n){const l=Ye(n);if(l.block)return l.block}}while(0<r--);if(i){const n=Ur(i);if(n.block)return n.block}return""}function ui(e){return yt(e,Fr)||yt(e,Pr)||void 0}function yt(e,t){for(const i of e){if(li.test(i)||si.test(i))break;if(t(i))return i}}function ci(e,t){for(const i of e.attributes)if(i.name==="class"){i.value=[t];break}}function Mr(e){let t="";for(const i of e)t+=typeof i=="string"?i:i.name;return t}function pi(e,t,i){return!!e&&i.indexOf(e)===t}function Qr(e){if(e.name==="label"){const t=Yt(e,i=>i.name==="input"||i.name==="textarea");t&&(e.attributes&&(e.attributes=e.attributes.filter(i=>!(i.name==="for"&&xt(i)))),t.attributes&&(t.attributes=t.attributes.filter(i=>!(i.name==="id"&&xt(i)))))}}function xt(e){if(!e.value)return!0;if(e.value.length===1){const t=e.value[0];if(t&&typeof t!="string"&&!t.name)return!0}return!1}function fi(e,t,i){const o=(n,l,s)=>{const{parent:a,current:u}=i;i.parent=u,i.current=n,t(n,l,s,i,r),i.current=u,i.parent=a},r=(n,l,s)=>{i.ancestors.push(i.current),o(n,l,s),i.ancestors.pop()};e.children.forEach(o)}function mi(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:ei(e.options)}}const we=[{type:"Field",index:0,name:""}];function _(e){return e?!e.name&&!e.attributes:!1}function vt(e,t){return e?Q(e,t):!1}function di(e){return typeof e=="object"&&e.type==="Field"}function C(e,t){const{out:i}=t;let o=-1;for(const r of e)typeof r=="string"?d(i,r):(Xe(i,t.field+r.index,r.name),r.index>o&&(o=r.index));o!==-1&&(t.field+=o+1)}function Hr(e){const t=[];let i=[];for(const o of e)if(typeof o=="string"){const r=o.split(/\r\n?|\n/g);for(i.push(r.shift()||"");r.length;)t.push(i),i=[r.shift()||""]}else i.push(o);return i.length&&t.push(i),t}function bi(e){return!e.implied||e.valueType!=="raw"||!!e.value&&e.value.length>0}var U;(function(e){e[e.Start=91]="Start",e[e.End=93]="End",e[e.Underscore=95]="Underscore",e[e.Dash=45]="Dash"})(U||(U={}));function kt(e){const t=[],i={pos:0,text:e};let o,r=i.pos,n=i.pos;for(;i.pos<i.text.length;)n=i.pos,(o=Gr(i))?(r!==i.pos&&t.push(e.slice(r,n)),t.push(o),r=i.pos):i.pos++;return r!==i.pos&&t.push(e.slice(r)),t}function Gr(e){if(Ae(e)===U.Start){const t=++e.pos;let i=t,o=t,r=1;for(;e.pos<e.text.length;){const n=Ae(e);if(gi(n)){for(i=e.pos;Zr(Ae(e));)e.pos++;o=e.pos}else{if(n===U.Start)r++;else if(n===U.End&&--r===0)return{before:e.text.slice(t,i),after:e.text.slice(o,e.pos++),name:e.text.slice(i,o)};e.pos++}}}}function Ae(e,t=e.pos){return e.text.charCodeAt(t)}function gi(e){return e>=65&&e<=90}function Zr(e){return gi(e)||e>47&&e<58||e===U.Underscore||e===U.Dash}function Kr(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?kt(t["comment.before"]):void 0,after:t["comment.after"]?kt(t["comment.after"]):void 0}}function Xr(e,t){hi(e,t)&&t.comment.before&&yi(e,t.comment.before,t)}function Yr(e,t){hi(e,t)&&t.comment.after&&yi(e,t.comment.after,t)}function hi(e,t){const{comment:i}=t;if(!i.enabled||!i.trigger||!e.name||!e.attributes)return!1;for(const o of e.attributes)if(o.name&&i.trigger.includes(o.name))return!0;return!1}function yi(e,t,i){const o={},{out:r}=i;for(const n of e.attributes)n.name&&n.value&&(o[n.name.toUpperCase()]=n.value);for(const n of t)typeof n=="string"?d(r,n):o[n.name]&&(d(r,n.before),C(o[n.name],i),d(r,n.after))}const Jr=/^<([\w\-:]+)[\s>]/,en=new Set(["for","while","of","async","await","const","let","var","continue","break","debugger","do","export","import","in","instanceof","new","return","switch","this","throw","try","catch","typeof","void","with","yield"]);function xi(e,t){const i=mi(t);return i.comment=Kr(t),fi(e,tn,i),i.out.value}function tn(e,t,i,o,r){const{out:n,config:l}=o,s=vi(e,t,i,o),a=rn(o);if(n.level+=a,s&&O(n,!0),e.name){const u=xr(e.name,l);if(Xr(e,o),d(n,"<".concat(u)),e.attributes)for(const c of e.attributes)bi(c)&&on(c,o);if(e.selfClosing&&!e.children.length&&!e.value)d(n,"".concat(vr(l),">"));else{if(d(n,">"),!wt(e,o,r)){if(e.value){const c=e.value.some(ki)||nn(e.value,l);c&&O(o.out,++n.level),C(e.value,o),c&&O(o.out,--n.level)}if(e.children.forEach(r),!e.value&&!e.children.length){const c=l.options["output.formatLeafNode"]||l.options["output.formatForce"].includes(e.name);c&&O(o.out,++n.level),C(we,o),c&&O(o.out,--n.level)}}d(n,"</".concat(u,">")),Yr(e,o)}}else!wt(e,o,r)&&e.value&&(C(e.value,o),e.children.forEach(r));if(s&&t===i.length-1&&o.parent){const u=_(o.parent)?0:1;O(n,n.level-u)}n.level-=a}function on(e,t){const{out:i,config:o}=t;if(e.name){const r=o.options["markup.attributes"],n=o.options["markup.valuePrefix"];let{name:l,value:s}=e,a=ce(e,o,!0),u=ce(e,o);r&&(l=$t(l,r,e.multiple)||l),l=ti(l,o),o.options["jsx.enabled"]&&e.multiple&&(a=Be,u=De);const c=n?$t(e.name,n,e.multiple):null;if(c&&(s==null?void 0:s.length)===1&&typeof s[0]=="string"){const b=s[0];s=[ln(b)?"".concat(c,".").concat(b):"".concat(c,"['").concat(b,"']")],o.options["jsx.enabled"]&&(a=Be,u=De)}ii(e,o)&&!s?o.options["output.compactBoolean"]||(s=[l]):s||(s=we),d(i," "+l),s?(d(i,"="+a),C(s,t),d(i,u)):o.options["output.selfClosingStyle"]!=="html"&&d(i,"="+a+u)}}function wt(e,t,i){if(e.value&&e.children.length){const o=e.value.findIndex(di);if(o!==-1){C(e.value.slice(0,o),t);const r=t.out.line;let n=o+1;return e.children.forEach(i),t.out.line!==r&&typeof e.value[n]=="string"&&d(t.out,e.value[n++].trimLeft()),C(e.value.slice(n),t),!0}}return!1}function vi(e,t,i,o){const{config:r,parent:n}=o;if(!r.options["output.format"]||t===0&&!n||n&&_(n)&&i.length===1)return!1;if(_(e)&&(_(i[t-1])||_(i[t+1])||e.value.some(ki)||e.value.some(di)&&e.children.length))return!0;if(Q(e,r)){if(t===0){for(let l=0;l<i.length;l++)if(!Q(i[l],r))return!0}else if(!Q(i[t-1],r))return!0;if(r.options["output.inlineBreak"]){let l=1,s=t,a=t;for(;vt(i[--s],r);)l++;for(;vt(i[++a],r);)l++;if(l>=r.options["output.inlineBreak"])return!0}for(let l=0,s=e.children.length;l<s;l++)if(vi(e.children[l],l,e.children,o))return!0;return!1}return!0}function rn(e){const{config:t,parent:i}=e;return!i||_(i)||i.name&&t.options["output.formatSkip"].includes(i.name)?0:1}function ki(e){return typeof e=="string"&&/\r|\n/.test(e)}function nn(e,t){if(e.length&&typeof e[0]=="string"){const i=Jr.exec(e[0]);if(i!=null&&i.length&&!t.options.inlineElements.includes(i[1].toLowerCase()))return!0}return!1}function $t(e,t,i){return i&&t["".concat(e,"*")]||t[e]}function ln(e){return!en.has(e)&&/^[a-zA-Z_$][\w_$]*$/.test(e)}function Je(e,t,i){const o=mi(t);return o.options=i||{},fi(e,sn,o),o.out.value}function sn(e,t,i,o,r){const{out:n,options:l}=o,{primary:s,secondary:a}=an(e),u=o.parent?1:0;n.level+=u,dn(e,t,i,o)&&O(n,!0),e.name&&(e.name!=="div"||!s.length)&&d(n,(l.beforeName||"")+e.name+(l.afterName||"")),un(s,o),cn(a.filter(bi),o),e.selfClosing&&!e.value&&!e.children.length?o.options.selfClose&&d(n,o.options.selfClose):(pn(e,o),e.children.forEach(r)),n.level-=u}function an(e){const t=[],i=[];if(e.attributes)for(const o of e.attributes)fn(o)?t.push(o):i.push(o);return{primary:t,secondary:i}}function un(e,t){for(const i of e)if(i.value)if(i.name==="class"){d(t.out,".");const o=i.value.map(r=>typeof r=="string"?r.replace(/\s+/g,"."):r);C(o,t)}else d(t.out,"#"),C(i.value,t)}function cn(e,t){if(e.length){const{out:i,config:o,options:r}=t;r.beforeAttribute&&d(i,r.beforeAttribute);for(let n=0;n<e.length;n++){const l=e[n];d(i,ti(l.name||"",o)),ii(l,o)&&!l.value?!o.options["output.compactBoolean"]&&r.booleanValue&&d(i,"="+r.booleanValue):(d(i,"="+ce(l,o,!0)),C(l.value||we,t),d(i,ce(l,o))),n!==e.length-1&&r.glueAttribute&&d(i,r.glueAttribute)}r.afterAttribute&&d(i,r.afterAttribute)}}function pn(e,t){if(!e.value&&e.children.length)return;const i=e.value||we,o=Hr(i),{out:r,options:n}=t;if(o.length===1)(e.name||e.attributes)&&h(r," "),C(i,t);else{const l=[];let s=0;for(const a of o){const u=mn(a);l.push(u),u>s&&(s=u)}r.level++;for(let a=0;a<o.length;a++)O(r,!0),n.beforeTextLine&&h(r,n.beforeTextLine),C(o[a],t),n.afterTextLine&&(h(r," ".repeat(s-l[a])),h(r,n.afterTextLine));r.level--}}function fn(e){return e.name==="class"||e.name==="id"}function mn(e){let t=0;for(const i of e)t+=typeof i=="string"?i.length:i.name.length;return t}function dn(e,t,i,o){return!o.parent&&t===0?!1:!_(e)}function bn(e,t){return Je(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})}function gn(e,t){return Je(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})}function hn(e,t){return Je(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:t.options["output.selfClosingStyle"]==="xml"?"/":""})}const yn={html:xi,haml:bn,slim:gn,pug:hn};function xn(e,t){let i;if(typeof e=="string"){const o=Object.assign({},t);t.options["jsx.enabled"]&&(o.jsx=!0),t.options["markup.href"]&&(o.href=!0),e=Ut(e,o),i=t.text,t.text=void 0}return e=gr(e,t),dr(e,vn,t),t.text=i!=null?i:t.text,e}function wi(e,t){return(yn[t.syntax]||xi)(e,t)}function vn(e,t,i){$r(e,t,i),pr(e,i),Nr(e,t,i),i.syntax==="xsl"&&Br(e),i.type==="markup"&&Qr(e),i.options["bem.enabled"]&&Wr(e,t,i)}var B;(function(e){e.Raw="Raw",e.Property="Property"})(B||(B={}));const kn=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,wn={value:!0};function $n(e,t){const i=t.match(kn);if(i){const o={},r=i[2]?i[2].split("|").map(An):[];for(const n of r)for(const l of n)qn(l,o);return{type:B.Property,key:e,property:i[1],value:r,keywords:o,dependencies:[]}}return{type:B.Raw,key:e,value:t}}function Sn(e){e=e.slice().sort(zn);const t=[];let i;for(const o of e.filter(Cn)){for(;t.length;){if(i=t[t.length-1],o.property.startsWith(i.property)&&o.property.charCodeAt(i.property.length)===45){i.dependencies.push(o),t.push(o);break}t.pop()}t.length||t.push(o)}return e}function zn(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function An(e){return Xt(e.trim(),wn)[0].value}function Cn(e){return e.type===B.Property}function qn(e,t){for(const i of e.value)if(i.type==="Literal")t[i.value]=i;else if(i.type==="FunctionCall")t[i.name]=i;else if(i.type==="Field"){const o=i.name.trim();o&&(t[o]={type:"Literal",value:o})}}function jn(e,t,i=!1){if(e=e.toLowerCase(),t=t.toLowerCase(),e===t)return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const o=e.length,r=t.length;if(!i&&o>r)return 0;const n=Math.min(o,r),l=Math.max(o,r);let s=1,a=1,u=l,c=0,b=0,S=!1,R=!1;for(;s<o;){for(c=e.charCodeAt(s),S=!1,R=!1;a<r;){if(b=t.charCodeAt(a),c===b){S=!0,u+=l-(R?s:a);break}R=b===45,a++}if(!S){if(!i)return 0;break}s++}const W=s/l,z=l-n,g=St(l)-St(z);return u*W/g}function St(e){return e*(e+1)/2}function $i(e,t){return!e.r&&!e.g&&!e.b&&!e.a?"transparent":e.a===1?Nn(e,t):Rn(e)}function Nn(e,t){const i=t&&Ce(e.r)&&Ce(e.g)&&Ce(e.b)?On:Tn;return"#"+i(e.r)+i(e.g)+i(e.b)}function Rn(e){const t=[e.r,e.g,e.b];return e.a!==1&&t.push(Si(e.a,8)),"".concat(t.length===3?"rgb":"rgba","(").concat(t.join(", "),")")}function Si(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function Ce(e){return!(e%17)}function On(e){return(e>>4).toString(16)}function Tn(e){return Ln(e.toString(16),2)}function Ln(e,t){for(;e.length<t;)e="0"+e;return e}const pe={Section:"@@section",Property:"@@property",Value:"@@value"};function zi(e,t){var i;const o=ei(t.options),r=t.options["output.format"];((i=t.context)===null||i===void 0?void 0:i.name)===pe.Section&&(e=e.filter(n=>n.snippet));for(let n=0;n<e.length;n++)r&&n!==0&&O(o,!0),En(e[n],o,t);return o.value}function En(e,t,i){const o=i.options["stylesheet.json"];if(e.name){const r=o?Vn(e.name):e.name;d(t,r+i.options["stylesheet.between"]),e.value.length?Bn(e,t,i):Xe(t,0,""),o?h(t,","):(zt(e,t,!0),h(t,i.options["stylesheet.after"]))}else{for(const r of e.value)for(const n of r.value)Ci(n,t,i);zt(e,t,e.value.length>0)}}function Bn(e,t,i){const o=i.options["stylesheet.json"],r=o?Dn(e):null;if(r&&(!r.unit||r.unit==="px"))h(t,String(r.value));else{const n=Fn(i);o&&h(t,n);for(let l=0;l<e.value.length;l++)l!==0&&h(t,", "),Ai(e.value[l],t,i);o&&h(t,n)}}function zt(e,t,i){e.important&&(i&&h(t," "),h(t,"!important"))}function Ai(e,t,i){for(let o=0,r=-1;o<e.value.length;o++){const n=e.value[o];o!==0&&(n.type!=="Field"||n.start!==r)&&h(t," "),Ci(n,t,i),r=n.end}}function Ci(e,t,i){if(e.type==="ColorValue")h(t,$i(e,i.options["stylesheet.shortHex"]));else if(e.type==="Literal"||e.type==="CustomProperty")d(t,e.value);else if(e.type==="NumberValue")d(t,Si(e.value,4)+e.unit);else if(e.type==="StringValue"){const o=e.quote==="double"?'"':"'";d(t,o+e.value+o)}else if(e.type==="Field")Xe(t,e.index,e.name);else if(e.type==="FunctionCall"){h(t,e.name+"(");for(let o=0;o<e.arguments.length;o++)o&&h(t,", "),Ai(e.arguments[o],t,i);h(t,")")}}function Dn(e){if(e.value.length===1){const t=e.value[0];if(t.value.length===1&&t.value[0].type==="NumberValue")return t.value[0]}}function Vn(e){return e.replace(/\-(\w)/g,(t,i)=>i.toUpperCase())}function Fn(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}const At="lg";function Pn(e,t){var i;const o=((i=t.cache)===null||i===void 0?void 0:i.stylesheetSnippets)||Wn(t.snippets),r=[];t.cache&&(t.cache.stylesheetSnippets=o),typeof e=="string"&&(e=Xt(e,{value:Ri(t)}));const n=Zn(o,t);for(const l of e){const s=In(l,n,t);s&&r.push(s)}return r}function Wn(e){const t=[];for(const i of Object.keys(e))t.push($n(i,e[i]));return Sn(t)}function In(e,t,i){if(!_n(e,i)){const o=i.options["stylesheet.fuzzySearchMinScore"];if(Ri(i)){const r=i.context.name,n=t.find(l=>l.type===B.Property&&l.property===r);qi(e,i,n,o),e.snippet=n}else if(e.name){const r=le(e.name,t,o,!0);if(e.snippet=r,r){const n=r.type===B.Property?Un(e,r,i):Mn(e,r);if(n)e=n;else if(i.options["stylesheet.strictMatch"])return null}}}return(e.name||i.context)&&Gn(e,i),e}function _n(e,t){let i=null;const o=e.value.length===1?e.value[0]:null;if(o&&o.value.length===1){const r=o.value[0];r.type==="FunctionCall"&&r.name===At&&(i=r)}return i||e.name===At?(i?i=Object.assign(Object.assign({},i),{name:"linear-gradient"}):i={type:"FunctionCall",name:"linear-gradient",arguments:[fe(I(0,""))]},t.context||(e.name="background-image"),e.value=[fe(i)],!0):!1}function Un(e,t,i){const o=e.name,r=Hn(o,t.key);if(r){if(e.value.length)return null;const n=Ve(r,i,t);if(!n)return null;e.value.push(fe(n))}if(e.name=t.property,e.value.length)qi(e,i,t);else if(t.value.length){const n=t.value[0];e.value=t.value.length===1||n.some(ji)?n:n.map(l=>Ni(l,i))}return e}function qi(e,t,i,o){for(const r of e.value){const n=[];for(const l of r.value)if(l.type==="Literal")n.push(Ve(l.value,t,i,o)||l);else if(l.type==="FunctionCall"){const s=Ve(l.name,t,i,o);s&&s.type==="FunctionCall"?n.push(Object.assign(Object.assign({},s),{arguments:l.arguments.concat(s.arguments.slice(l.arguments.length))})):n.push(l)}else n.push(l);r.value=n}}function Mn(e,t){let i=0,o;const r=/\$\{(\d+)(:[^}]+)?\}/g,n=e.value[0],l=[];for(;o=r.exec(t.value);)i!==o.index&&l.push(H(t.value.slice(i,o.index))),i=o.index+o[0].length,n&&n.value.length?l.push(n.value.shift()):l.push(I(Number(o[1]),o[2]?o[2].slice(1):""));const s=t.value.slice(i);return s&&l.push(H(s)),e.name=void 0,e.value=[fe(...l)],e}function le(e,t,i=0,o=!1){let r=null,n=0;for(const l of t){const s=jn(e,Qn(l),o);if(s===1)return l;s&&s>=n&&(n=s,r=l)}return n>=i?r:null}function Qn(e){return typeof e=="string"?e:e.key}function Hn(e,t){for(let i=0,o=0;i<e.length;i++){if(o=t.indexOf(e[i],o),o===-1)return e.slice(i);o++}return""}function Ve(e,t,i,o){let r;if(i){if(r=le(e,Object.keys(i.keywords),o))return i.keywords[r];for(const n of i.dependencies)if(r=le(e,Object.keys(n.keywords),o))return n.keywords[r]}return(r=le(e,t.options["stylesheet.keywords"],o))?H(r):null}function Gn(e,t){const i=t.options["stylesheet.unitAliases"],o=t.options["stylesheet.unitless"];for(const r of e.value)for(const n of r.value)n.type==="NumberValue"&&(n.unit?n.unit=i[n.unit]||n.unit:n.value!==0&&!o.includes(e.name)&&(n.unit=n.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}function fe(...e){return{type:"CSSValue",value:e}}function H(e){return{type:"Literal",value:e}}function I(e,t){return{type:"Field",index:e,name:t}}function ji(e){for(const t of e.value)if(t.type==="Field"||t.type==="FunctionCall"&&t.arguments.some(ji))return!0;return!1}function Ni(e,t,i={index:1}){let o=[];for(const r of e.value)switch(r.type){case"ColorValue":o.push(I(i.index++,$i(r,t.options["stylesheet.shortHex"])));break;case"Literal":o.push(I(i.index++,r.value));break;case"NumberValue":o.push(I(i.index++,"".concat(r.value).concat(r.unit)));break;case"StringValue":const n=r.quote==="single"?"'":'"';o.push(I(i.index++,n+r.value+n));break;case"FunctionCall":o.push(I(i.index++,r.name),H("("));for(let l=0,s=r.arguments.length;l<s;l++)o=o.concat(Ni(r.arguments[l],t,i).value),l!==s-1&&o.push(H(", "));o.push(H(")"));break;default:o.push(r)}return Object.assign(Object.assign({},e),{value:o})}function Ri(e){return e.context?e.context.name===pe.Value||!e.context.name.startsWith("@@"):!1}function Zn(e,t){if(t.context){if(t.context.name===pe.Section)return e.filter(i=>i.type===B.Raw);if(t.context.name===pe.Property)return e.filter(i=>i.type===B.Property)}return e}var Kn={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:"{<!-- ${0} -->}","cc:ie":"{<!--[if IE]>${0}<![endif]-->}","cc:noie":"{<!--[if !IE]><!-->${0}<!--<![endif]-->}"},Xn={"@f":"@font-face {\n font-family: ${1};\n src: url(${2});\n}","@ff":"@font-face {\n font-family: '${1:FontName}';\n src: url('${2:FileName}.eot');\n src: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n url('${2:FileName}.woff') format('woff'),\n url('${2:FileName}.ttf') format('truetype'),\n url('${2:FileName}.svg#${1:FontName}') format('svg');\n font-style: ${3:normal};\n font-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n ${2}\n}","@m|@media":"@media ${1:screen} {\n ${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"},Yn={"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"?>}'},Jn={"!!!":"{doctype html}"},el={lang:"en",locale:"en-US",charset:"UTF-8",indentation:" ",newline:"\n"};const tl={markup:"html",stylesheet:"css"},il={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":" ","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<!-- /[#ID][.CLASS] -->","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},Oi={type:"markup",syntax:"html",variables:el,snippets:{},options:il},Ct={markup:{snippets:ie(Kn)},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:ie(Yn),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:ie(Jn)},stylesheet:{snippets:ie(Xn)},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function ie(e){const t={};return Object.keys(e).forEach(i=>{for(const o of i.split("|"))t[o]=e[i]}),t}function et(e={},t={}){const i=e.type||"markup",o=e.syntax||tl[i];return Object.assign(Object.assign(Object.assign({},Oi),e),{type:i,syntax:o,variables:qe(i,o,"variables",e,t),snippets:qe(i,o,"snippets",e,t),options:qe(i,o,"options",e,t)})}function qe(e,t,i,o,r={}){const n=Ct[e],l=r[e],s=Ct[t],a=r[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oi[i]),n&&n[i]),s&&s[i]),l&&l[i]),a&&a[i]),o[i])}function Ti(e,t=0){return{text:e,start:t,pos:e.length}}function D(e){return e.pos===e.start}function Y(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function qt(e){if(!D(e))return e.text.charCodeAt(--e.pos)}function $(e,t){if(D(e))return!1;const i=typeof t=="function"?t(Y(e)):t===Y(e);return i&&e.pos--,!!i}function Li(e,t){const i=e.pos;for(;$(e,t););return e.pos<i}var J;(function(e){e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Escape=92]="Escape"})(J||(J={}));function tt(e){return e===J.SingleQuote||e===J.DoubleQuote}function ol(e){const t=e.pos,i=qt(e);if(tt(i)){for(;!D(e);)if(qt(e)===i&&Y(e)!==J.Escape)return!0}return e.pos=t,!1}var m;(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"})(m||(m={}));const Ei={[m.SquareL]:m.SquareR,[m.RoundL]:m.RoundR,[m.CurlyL]:m.CurlyR};var v;(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"})(v||(v={}));function rl(e){const t=e.pos;if(!$(e,v.AngleRight))return!1;let i=!1;for($(e,v.Slash);!D(e);){if(Li(e,Fe),me(e)){if($(e,v.Slash)){i=$(e,v.AngleLeft);break}else if($(e,v.AngleLeft)){i=!0;break}else{if($(e,Fe))continue;if($(e,v.Equals)){if(me(e))continue;break}else if(Bi(e)){i=!0;break}}break}if(!nl(e))break}return e.pos=t,i}function nl(e){return ll(e)||Bi(e)}function ll(e){const t=e.pos;return ol(e)&&$(e,v.Equals)&&me(e)?!0:(e.pos=t,!1)}function Bi(e){const t=e.pos,i=[];for(;!D(e);){const o=Y(e);if(fl(o))i.push(o);else if(pl(o)){if(i.pop()!==Ei[o])break}else if(!cl(o))break;e.pos--}return t!==e.pos&&$(e,v.Equals)&&me(e)?!0:(e.pos=t,!1)}function me(e){return Li(e,sl)}function sl(e){return e===v.Colon||e===v.Dash||al(e)||ul(e)}function al(e){return e&=-33,e>=65&&e<=90}function ul(e){return e>47&&e<58}function Fe(e){return e===v.Space||e===v.Tab}function cl(e){return!isNaN(e)&&e!==v.Equals&&!Fe(e)&&!tt(e)}function pl(e){return e===m.CurlyL||e===m.RoundL||e===m.SquareL}function fl(e){return e===m.CurlyR||e===m.RoundR||e===m.SquareR}const Di=e=>e.charCodeAt(0),ml="#.*:$-_!@%^+>/".split("").map(Di),dl={type:"markup",lookAhead:!0,prefix:""};function bl(e,t=e.length,i={}){const o=Object.assign(Object.assign({},dl),i);t=Math.min(e.length,Math.max(0,t==null?e.length:t)),o.lookAhead&&(t=gl(e,t,o));let r;const n=hl(e,t,o.prefix||"");if(n===-1)return;const l=Ti(e,n);l.pos=t;const s=[];for(;!D(l);){if(r=Y(l),s.includes(m.CurlyR)){if(r===m.CurlyR){s.push(r),l.pos--;continue}if(r!==m.CurlyL){l.pos--;continue}}if(Vi(r,o.type))s.push(r);else if(vl(r,o.type)){if(s.pop()!==Ei[r])break}else if(s.includes(m.SquareR)||s.includes(m.CurlyR)){l.pos--;continue}else if(rl(l)||!xl(r))break;l.pos--}if(!s.length&&l.pos!==t){const a=e.slice(l.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:a,location:t-a.length,start:i.prefix?n-i.prefix.length:t-a.length,end:t}}}function gl(e,t,i){for(tt(e.charCodeAt(t))&&t++;Vi(e.charCodeAt(t),i.type);)t++;return t}function hl(e,t,i){if(!i)return 0;const o=Ti(e),r=i.split("").map(Di);o.pos=t;let n;for(;!D(o);)if(!(jt(o,m.SquareR,m.SquareL)||jt(o,m.CurlyR,m.CurlyL))){if(n=o.pos,yl(o,r))return n;o.pos--}return-1}function jt(e,t,i){const o=e.pos;if($(e,t))for(;!D(e);){if($(e,i))return!0;e.pos--}return e.pos=o,!1}function yl(e,t){const i=e.pos;let o=!1;for(let r=t.length-1;r>=0&&!D(e)&&$(e,t[r]);r--)o=r===0;return o||(e.pos=i),o}function xl(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||ml.includes(e)}function vl(e,t){return e===m.RoundL||t==="markup"&&(e===m.SquareL||e===m.CurlyL)}function Vi(e,t){return e===m.RoundR||t==="markup"&&(e===m.SquareR||e===m.CurlyR)}function de(e,t){const i=et(t);return i.type==="stylesheet"?wl(e,i):kl(e,i)}function kl(e,t){return wi(xn(e,t),t)}function wl(e,t){return zi(Pn(e,t),t)}const $l={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"]},Fi={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"]},je=new Map;let Pe;const K=new Map,Sl=/^[a-z,A-Z,!,(,[,#,\.\{]/,zl=/^[a-z,A-Z,!,(,[,#,\.]/,Al=/^-?[a-z,A-Z,!,@,#]/,Nt=/[a-z,A-Z\.]/,ee=[...Fi.tags,"lorem"],oe="bem",Ne="|",re="t",ne="c",Cl=3;function ql(e,t,i,o,r){var n;const l=Z(o);if(!l){if(!je.has(o)){const x=Object.assign(Object.assign({},Ol(o)),F[o]);je.set(o,Object.keys(x))}Pe=(n=je.get(o))!==null&&n!==void 0?n:[]}const s={lookAhead:!l,type:it(o)},a=Ll(e,t,i,s);if(!a)return;const{abbreviationRange:u,abbreviation:c,currentLineTillPosition:b,filter:S}=a;if(jl(b)===c&&b.endsWith("<".concat(c))&&!l)return;const W=Dl(o,S);let z="",g,k=[];if(((x,j)=>{if(El(x,c)){try{z=de(j,W),l&&"!important".startsWith(j)&&(z="!important")}catch(w){}!z||Bl(x,j,z,W.options)||(g={kind:e.languages.CompletionItemKind.Property,label:c+(S?"|"+S.replace(",","|"):""),documentation:We(z),detail:"Emmet abbreviation",insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:u,insertText:be(ge(z))},k=[g])}})(o,c),l){if(c.length>4&&$l.properties.some(x=>x.startsWith(c)))return{suggestions:[],incomplete:!0};if(g&&z.length){g.range=u,g.insertText=be(ge(z)),g.documentation=We(z),g.label=Nl(z),g.filterText=c;const x=K.has(o)?K.get(o):K.get("css");if(k=Re(e,x!=null?x:[],c,c,u,W,"Emmet Custom Snippet",!1),!k.find(j=>j.insertText===(g==null?void 0:g.insertText))){const j=new RegExp(".*"+c.split("").map(w=>w==="$"||w==="+"?"\\"+w:w).join(".*")+".*","i");(/\d/.test(c)||j.test(g.label))&&k.push(g)}}}else{let x=c;const j=c.match(/(>|\+)([\w:-]+)$/);if(j&&j.length===3&&(x=j[2]),o!=="xml"){const w=Re(e,ee,x,c,u,W,"Emmet Abbreviation");k=k.concat(w)}{const w=Re(e,Pe.filter(te=>!ee.includes(te)),x,c,u,W,"Emmet Abbreviation");g&&w.length>0&&x!==c&&(g.sortText="0"+g.label,w.forEach(te=>{te.filterText=c,te.sortText="9"+c})),k=k.concat(w)}o==="html"&&k.length>=2&&c.includes(":")&&(g==null?void 0:g.insertText)==="<".concat(c,">${0}</").concat(c,">")&&(k=k.filter(w=>w.label!==c))}return k.length?{suggestions:k,incomplete:!0}:void 0}function Re(e,t,i,o,r,n,l,s=!0){if(!i||!t)return[];const a=[];return t.forEach(u=>{if(!u.startsWith(i.toLowerCase())||s&&u===i.toLowerCase())return;const c=o+u.substr(i.length);let b;try{b=de(c,n)}catch(R){}if(!b)return;const S={kind:e.languages.CompletionItemKind.Property,label:i+u.substr(i.length),documentation:We(b),detail:l,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:r,insertText:be(ge(b))};a.push(S)}),a}function jl(e){if(e){const t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}function We(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function Nl(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function be(e){return e&&e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3")}function ge(e){if(!e||!e.trim())return e;let t=-1,i=[],o=!1,r=!1,n=0;const l=e.length;try{for(;n<l&&!o;){if(e[n++]!="$"||e[n++]!="{")continue;let s=-1,a=-1;for(;n<l&&/\d/.test(e[n]);)s=s<0?n:s,a=n+1,n++;if(s===-1||a===-1||n>=l||e[n]!="}"&&e[n]!=":")continue;const u=e.substring(s,a);if(o=u==="0",o)break;let c=!1;if(e[n++]==":")for(;n<l;){if(e[n]=="}"){c=!0;break}n++}Number(u)>Number(t)?(t=Number(u),i=[{numberStart:s,numberEnd:a}],r=!c):Number(u)===t&&i.push({numberStart:s,numberEnd:a})}}catch(s){}if(r&&!o)for(let s=0;s<i.length;s++){const a=i[s].numberStart,u=i[s].numberEnd;e=e.substr(0,a)+"0"+e.substr(u)}return e}let F={};const Rl=(e,t)=>"${".concat(e).concat(t?":"+t:"","}");function Z(e){return e==="css"}function it(e){return Z(e)?"stylesheet":"markup"}function Pi(e){return Z(e)?"css":"html"}function Ol(e){const i={type:it(e),syntax:e},o=et(i);return e==="xml"?{}:o.snippets}function Tl(e,t){let i;for(let o=0;o<Cl;o++)if(e.endsWith("".concat(Ne).concat(oe),t))t-=oe.length+1,i=i?oe+","+i:oe;else if(e.endsWith("".concat(Ne).concat(ne),t))t-=ne.length+1,i=i?ne+","+i:ne;else if(e.endsWith("".concat(Ne).concat(re),t))t-=re.length+1,i=i?re+","+i:re;else break;return{pos:t,filter:i}}function Ll(e,t,i,o){const r=t.getLineContent(i.lineNumber),n=r.substr(0,i.column-1),{pos:l,filter:s}=Tl(n,i.column-1),a=s?s.length+1:0,u=bl(r,l,o);return u?{abbreviationRange:new e.Range(i.lineNumber,u.location+1,i.lineNumber,u.location+u.abbreviation.length+a+1),abbreviation:u.abbreviation,currentLineTillPosition:n,filter:s}:void 0}function El(e,t){if(!t)return!1;if(Z(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(ee.includes(t.substring(0,t.indexOf("#"))))return!1}return Al.test(t)}return t.startsWith("!")?!/[^!]/.test(t):(/\(/.test(t)||/\)/.test(t))&&!/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)&&!/\(.*\)[>\+\*\^]/.test(t)&&!/\[[^\[\]\(\)]+=".*"\]/.test(t)&&!/[>\+\*\^]\(.*\)/.test(t)?!1:e==="jsx"?zl.test(t)&&Nt.test(t):Sl.test(t)&&Nt.test(t)}function Bl(e,t,i,o){var r,n;if(Z(e)&&o){const s=(r=o["stylesheet.between"])!==null&&r!==void 0?r:": ",a=(n=o["stylesheet.after"])!==null&&n!==void 0?n:";";let u=t.indexOf(s[0],Math.max(t.length-s.length,0));u=u>=0?u:t.length;const c=t.substring(0,u);return i==="".concat(c).concat(s,"${0}").concat(a)||i.replace(/\s/g,"")===t.replace(/\s/g,"")+a}if(e==="xml"&&ee.some(s=>s.startsWith(t.toLowerCase())))return!0;if(ee.includes(t.toLowerCase())||Pe.includes(t)||/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":")||t===".")return!1;const l=t.match(/^([a-z,A-Z,\d]*)\.$/);return l?!(l[1]&&Fi.tags.includes(l[1])):e==="jsx"&&/^([A-Z][A-Za-z0-9]*)+$/.test(t)?!1:i.toLowerCase()==="<".concat(t.toLowerCase(),">${1}</").concat(t.toLowerCase(),">")}function Dl(e,t){var i;const o=t?t.split(",").map(c=>c.trim()):[],r=o.includes("bem"),n=o.includes("c"),l={"output.formatSkip":["html"],"output.formatForce":["body"],"output.field":Rl,"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"markup.href":!0,"comment.enabled":n,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n<!-- /[#ID][.CLASS] -->","bem.enabled":r,"bem.element":"__","bem.modifier":"_","jsx.enabled":e==="jsx","stylesheet.shortHex":!0,"stylesheet.between":e==="stylus"?" ":": ","stylesheet.after":e==="sass"||e==="stylus"?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3,"output.format":!0,"output.selfClosingStyle":"html"},s=it(e),a=Pi(e),u=s==="stylesheet"?(i=F[e])!==null&&i!==void 0?i:F[a]:F[e];return{type:s,options:l,variables:{},snippets:u,syntax:e,text:void 0,maxRepeat:1e3}}function Ml(e,t){const i=Pi(e);if(i!==e&&F[i]&&(t=Object.assign({},F[i],t)),Z(e)){const n=K.get(e),l=Object.assign([],n,Object.keys(t));K.set(e,l)}const o=F[e],r=Object.assign({},o,t);F[e]=r}function Ql(e,t){let i;const o=et(t);return t.type==="stylesheet"?typeof e=="string"?i=de(e,o):i=zi(e,o):typeof e=="string"?i=de(e,o):i=wi(e,o),be(ge(i))}function Vl(e,t,i,o){const r=e[t],n=r.type;return i==="html"?n===""&&(t===0||e[t-1].type==="delimiter.html")||e[0].type==="text.html.basic":i==="css"?n===""?!0:n==="tag."+o:i==="jsx"?r.language==="mdx"&&n===""?!0:!!t&&["identifier.js","type.identifier.js","identifier.ts","type.identifier.ts"].includes(n):!1}const Oe=new WeakMap;function Fl(e){var t;if(Oe.has(e))return Oe.get(e);let i=e._tokenization||e.tokenization._tokenization,o=i==null?void 0:i._tokenizationStateStore;if(!i||!o){const l=e.tokenization,s=l.grammarTokens||l._tokens||((t=l.tokens)===null||t===void 0?void 0:t._value);s?(i=s._defaultBackgroundTokenizer,o=i._tokenizerWithStateStore):(Object.values(l).some(a=>i=a.tokenizeViewport&&a),Object.values(i).some(a=>o=a.tokenizationSupport&&a))}const r=o.tokenizationSupport||i._tokenizationSupport,n={_stateStore:o,_support:r};return Oe.set(e,n),n}function Pl(e,t,i,o){const r=e.tokenization;if(typeof(r==null?void 0:r.getLineTokens)!="function")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."),Wi(e,t,i,o);const{column:n,lineNumber:l}=t,s=r.getLineTokens(l);let a=-1;for(let c=s.getCount()-1;c>=0;c--)if(n-1>s.getStartOffset(c)){a=c;break}return!(a<0||s.getStandardTokenType(a)!==0)}function Wi(e,t,i,o){var r;const{column:n,lineNumber:l}=t,{_stateStore:s,_support:a}=Fl(e),u=((r=s.getBeginState)===null||r===void 0?void 0:r.call(s,l-1).clone())||s.getStartState(l).clone(),b=a.tokenize(e.getLineContent(l),!0,u,0).tokens;let S=!1;for(let R=b.length-1;R>=0;R--)if(n-1>b[R].offset){S=Vl(b,R,i,o);break}return S}function Wl(e,t,i,o,r){return(r==null?void 0:r.tokenizer)==="standard"?Pl(e,t,i,o):Wi(e,t,i,o)}const Il={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"]},_l={handlebars:"html",php:"html",twig:"html"};function ot(e,t,i,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(n=>e.languages.registerCompletionItemProvider(n,{triggerCharacters:Il[_l[n]||n],provideCompletionItems:(l,s)=>Wl(l,s,i,n,o)?ql(e,l,s,i):void 0}));return()=>{r.forEach(n=>n.dispose())}}function Hl(e=window.monaco,t=["html"],i){return ot(e,t,"html",i)}function Gl(e=window.monaco,t=["css"],i){return ot(e,t,"css",i)}function Zl(e=window.monaco,t=["javascript"],i){return ot(e,t,"jsx",i)}export{Gl as emmetCSS,Hl as emmetHTML,Zl as emmetJSX,Ql as expandAbbreviation,Ml as registerCustomSnippets};
//# sourceMappingURL=emmet-monaco.esm--fAAg2xs.js.map