yanzi-monaco-editorbb
Version:
这是一个基于微软的monaco和vue封装的一个代码编辑器,浏览器可运行。主要功能有:html、javascript、css代码编辑,高亮显示,语法错误提示等,可以帮您的项目很快的拥有一个web端的代码编辑器
1 lines • 1.13 MB
JavaScript
(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="2add")})({"00b4":function(e,t,n){"use strict";n("ac1f");var r=n("23e7"),i=n("da84"),o=n("c65b"),a=n("e330"),s=n("1626"),c=n("861d"),l=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),h=i.Error,d=a(/./.test);r({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=this.exec;if(!s(t))return d(this,e);var n=o(t,this,e);if(null!==n&&!c(n))throw new h("RegExp exec method returned something other than an Object or null");return!!n}})},"00ee":function(e,t,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"01b4":function(e,t){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=n},"0366":function(e,t,n){var r=n("e330"),i=n("59ed"),o=n("40d5"),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},"04d1":function(e,t,n){var r=n("342f"),i=r.match(/firefox\/(\d+)/i);e.exports=!!i&&+i[1]},"0538":function(e,t,n){"use strict";var r=n("da84"),i=n("e330"),o=n("59ed"),a=n("861d"),s=n("1a2d"),c=n("f36a"),l=n("40d5"),h=r.Function,d=i([].concat),u=i([].join),p={},f=function(e,t,n){if(!s(p,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";p[t]=h("C,a","return new C("+u(r,",")+")")}return p[t](e,n)};e.exports=l?h.bind:function(e){var t=o(this),n=t.prototype,r=c(arguments,1),i=function(){var n=d(r,c(arguments));return this instanceof i?f(t,n.length,n):t.apply(e,n)};return a(n)&&(i.prototype=n),i}},"057f":function(e,t,n){var r=n("c6b6"),i=n("fc6a"),o=n("241c").f,a=n("4dae"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(e){try{return o(e)}catch(t){return a(s)}};e.exports.f=function(e){return s&&"Window"==r(e)?c(e):o(i(e))}},"06c5":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("fb6a"),n("d3b7"),n("b0c0"),n("a630"),n("3ca3"),n("ac1f"),n("00b4");var r=n("6b75");function i(e,t){if(e){if("string"===typeof e)return Object(r["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},"06cf":function(e,t,n){var r=n("83ab"),i=n("c65b"),o=n("d1e7"),a=n("5c6c"),s=n("fc6a"),c=n("a04b"),l=n("1a2d"),h=n("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),h)try{return d(e,t)}catch(n){}if(l(e,t))return a(!i(o.f,e,t),e[t])}},"07fa":function(e,t,n){var r=n("50c4");e.exports=function(e){return r(e.length)}},"0b25":function(e,t,n){var r=n("da84"),i=n("5926"),o=n("50c4"),a=r.RangeError;e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=o(t);if(t!==n)throw a("Wrong length or index");return n}},"0b42":function(e,t,n){var r=n("da84"),i=n("e8b5"),o=n("68ee"),a=n("861d"),s=n("b622"),c=s("species"),l=r.Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,o(t)&&(t===l||i(t.prototype))?t=void 0:a(t)&&(t=t[c],null===t&&(t=void 0))),void 0===t?l:t}},"0c47":function(e,t,n){var r=n("da84"),i=n("d44e");i(r.JSON,"JSON",!0)},"0cb2":function(e,t,n){var r=n("e330"),i=n("7b0b"),o=Math.floor,a=r("".charAt),s=r("".replace),c=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,h=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,u){var p=n+e.length,f=r.length,m=h;return void 0!==d&&(d=i(d),m=l),s(u,m,(function(i,s){var l;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,p);case"<":l=d[c(s,1,-1)];break;default:var h=+s;if(0===h)return i;if(h>f){var u=o(h/10);return 0===u?i:u<=f?void 0===r[u-1]?a(s,1):r[u-1]+a(s,1):i}l=r[h-1]}return void 0===l?"":l}))}},"0ccb":function(e,t,n){var r=n("e330"),i=n("50c4"),o=n("577e"),a=n("1148"),s=n("1d80"),c=r(a),l=r("".slice),h=Math.ceil,d=function(e){return function(t,n,r){var a,d,u=o(s(t)),p=i(n),f=u.length,m=void 0===r?" ":o(r);return p<=f||""==m?u:(a=p-f,d=c(m,h(a/m.length)),d.length>a&&(d=l(d,0,a)),e?u+d:d+u)}};e.exports={start:d(!1),end:d(!0)}},"0cfb":function(e,t,n){var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d51":function(e,t,n){var r=n("da84"),i=r.String;e.exports=function(e){try{return i(e)}catch(t){return"Object"}}},"107c":function(e,t,n){var r=n("d039"),i=n("da84"),o=i.RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1148:function(e,t,n){"use strict";var r=n("da84"),i=n("5926"),o=n("577e"),a=n("1d80"),s=r.RangeError;e.exports=function(e){var t=o(a(this)),n="",r=i(e);if(r<0||r==1/0)throw s("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},1276:function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("44e7"),c=n("825a"),l=n("1d80"),h=n("4840"),d=n("8aa5"),u=n("50c4"),p=n("577e"),f=n("dc4a"),m=n("4dae"),g=n("14c3"),b=n("9263"),v=n("9f7f"),y=n("d039"),w=v.UNSUPPORTED_Y,x=4294967295,S=Math.min,C=[].push,k=o(/./.exec),_=o(C),E=o("".slice),F=!y((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));a("split",(function(e,t,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=p(l(this)),a=void 0===n?x:n>>>0;if(0===a)return[];if(void 0===e)return[o];if(!s(e))return i(t,o,e,a);var c,h,d,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=new RegExp(e.source,f+"g");while(c=i(b,v,o)){if(h=v.lastIndex,h>g&&(_(u,E(o,g,c.index)),c.length>1&&c.index<o.length&&r(C,u,m(c,1)),d=c[0].length,g=h,u.length>=a))break;v.lastIndex===c.index&&v.lastIndex++}return g===o.length?!d&&k(v,"")||_(u,""):_(u,E(o,g)),u.length>a?m(u,0,a):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:i(t,this,e,n)}:t,[function(t,n){var r=l(this),a=void 0==t?void 0:f(t,e);return a?i(a,t,r,n):i(o,p(r),t,n)},function(e,r){var i=c(this),a=p(e),s=n(o,i,a,r,o!==t);if(s.done)return s.value;var l=h(i,RegExp),f=i.unicode,m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(w?"g":"y"),b=new l(w?"^(?:"+i.source+")":i,m),v=void 0===r?x:r>>>0;if(0===v)return[];if(0===a.length)return null===g(b,a)?[a]:[];var y=0,C=0,k=[];while(C<a.length){b.lastIndex=w?0:C;var F,R=g(b,w?E(a,C):a);if(null===R||(F=S(u(b.lastIndex+(w?C:0)),a.length))===y)C=d(a,C,f);else{if(_(k,E(a,y,C)),k.length===v)return k;for(var T=1;T<=R.length-1;T++)if(_(k,R[T]),k.length===v)return k;C=y=F}}return _(k,E(a,y)),k}]}),!F,w)},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"143c":function(e,t,n){var r=n("74e8");r("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},1448:function(e,t,n){var r=n("dfb9"),i=n("b6b7");e.exports=function(e,t){return r(i(e),t)}},"145e":function(e,t,n){"use strict";var r=n("7b0b"),i=n("23cb"),o=n("07fa"),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=o(n),c=i(e,s),l=i(t,s),h=arguments.length>2?arguments[2]:void 0,d=a((void 0===h?s:i(h,s))-l,s-c),u=1;l<c&&c<l+d&&(u=-1,l+=d-1,c+=d-1);while(d-- >0)l in n?n[c]=n[l]:delete n[c],c+=u,l+=u;return n}},"14c3":function(e,t,n){var r=n("da84"),i=n("c65b"),o=n("825a"),a=n("1626"),s=n("c6b6"),c=n("9263"),l=r.TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var r=i(n,e,t);return null!==r&&o(r),r}if("RegExp"===s(e))return i(c,e,t);throw l("RegExp#exec called on incompatible receiver")}},"159b":function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("785a"),a=n("17c2"),s=n("9112"),c=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var l in i)i[l]&&c(r[l]&&r[l].prototype);c(o)},1626:function(e,t){e.exports=function(e){return"function"==typeof e}},"170b":function(e,t,n){"use strict";var r=n("ebb5"),i=n("50c4"),o=n("23cb"),a=n("b6b7"),s=r.aTypedArray,c=r.exportTypedArrayMethod;c("subarray",(function(e,t){var n=s(this),r=n.length,c=o(e,r),l=a(n);return new l(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,i((void 0===t?r:o(t,r))-c))}))},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=i("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"182d":function(e,t,n){var r=n("da84"),i=n("f8cd"),o=r.RangeError;e.exports=function(e,t){var n=i(e);if(n%t)throw o("Wrong offset");return n}},"19aa":function(e,t,n){var r=n("da84"),i=n("3a9b"),o=r.TypeError;e.exports=function(e,t){if(i(t,e))return e;throw o("Incorrect invocation")}},"1a2d":function(e,t,n){var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c7e":function(e,t,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},"1cdc":function(e,t,n){var r=n("342f");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"1d80":function(e,t,n){var r=n("da84"),i=r.TypeError;e.exports=function(e){if(void 0==e)throw i("Can't call method on "+e);return e}},"1da1":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("d3b7"),n("e6cf");function r(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)}))}}},"1dde":function(e,t,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"219c":function(e,t,n){"use strict";var r=n("da84"),i=n("e330"),o=n("d039"),a=n("59ed"),s=n("addb"),c=n("ebb5"),l=n("04d1"),h=n("d998"),d=n("2d00"),u=n("512c"),p=r.Array,f=c.aTypedArray,m=c.exportTypedArrayMethod,g=r.Uint16Array,b=g&&i(g.prototype.sort),v=!!b&&!(o((function(){b(new g(2),null)}))&&o((function(){b(new g(2),{})}))),y=!!b&&!o((function(){if(d)return d<74;if(l)return l<67;if(h)return!0;if(u)return u<602;var e,t,n=new g(516),r=p(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(b(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0})),w=function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}};m("sort",(function(e){return void 0!==e&&a(e),y?b(this,e):s(f(this),w(e))}),!y||v)},2266:function(e,t,n){var r=n("da84"),i=n("0366"),o=n("c65b"),a=n("825a"),s=n("0d51"),c=n("e95a"),l=n("07fa"),h=n("3a9b"),d=n("9a1f"),u=n("35a1"),p=n("2a62"),f=r.TypeError,m=function(e,t){this.stopped=e,this.result=t},g=m.prototype;e.exports=function(e,t,n){var r,b,v,y,w,x,S,C=n&&n.that,k=!(!n||!n.AS_ENTRIES),_=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),F=i(t,C),R=function(e){return r&&p(r,"normal",e),new m(!0,e)},T=function(e){return k?(a(e),E?F(e[0],e[1],R):F(e[0],e[1])):E?F(e,R):F(e)};if(_)r=e;else{if(b=u(e),!b)throw f(s(e)+" is not iterable");if(c(b)){for(v=0,y=l(e);y>v;v++)if(w=T(e[v]),w&&h(g,w))return w;return new m(!1)}r=d(e,b)}x=r.next;while(!(S=o(x,r)).done){try{w=T(S.value)}catch(A){p(r,"throw",A)}if("object"==typeof w&&w&&h(g,w))return w}return new m(!1)}},"23cb":function(e,t,n){var r=n("5926"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23dc":function(e,t,n){var r=n("d44e");r(Math,"Math",!0)},"23e7":function(e,t,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),c=n("e893"),l=n("94ca");e.exports=function(e,t){var n,h,d,u,p,f,m=e.target,g=e.global,b=e.stat;if(h=g?r:b?r[m]||s(m,{}):(r[m]||{}).prototype,h)for(d in t){if(p=t[d],e.noTargetGet?(f=i(h,d),u=f&&f.value):u=h[d],n=l(g?d:m+(b?".":"#")+d,e.forced),!n&&void 0!==u){if(typeof p==typeof u)continue;c(p,u)}(e.sham||u&&u.sham)&&o(p,"sham",!0),a(h,d,p,e)}}},"241c":function(e,t,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"25a1":function(e,t,n){"use strict";var r=n("ebb5"),i=n("d58f").right,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduceRight",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},"25f0":function(e,t,n){"use strict";var r=n("e330"),i=n("5e77").PROPER,o=n("6eeb"),a=n("825a"),s=n("3a9b"),c=n("577e"),l=n("d039"),h=n("ad6d"),d="toString",u=RegExp.prototype,p=u[d],f=r(h),m=l((function(){return"/a/b"!=p.call({source:"a",flags:"b"})})),g=i&&p.name!=d;(m||g)&&o(RegExp.prototype,d,(function(){var e=a(this),t=c(e.source),n=e.flags,r=c(void 0===n&&s(u,e)&&!("flags"in u)?f(e):n);return"/"+t+"/"+r}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},2909:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("6b75");function i(e){if(Array.isArray(e))return Object(r["a"])(e)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("e260"),n("3ca3"),n("ddb0"),n("a630");function o(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var a=n("06c5");n("d9e2");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){return i(e)||o(e)||Object(a["a"])(e)||s()}},2954:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b6b7"),o=n("d039"),a=n("f36a"),s=r.aTypedArray,c=r.exportTypedArrayMethod,l=o((function(){new Int8Array(1).slice()}));c("slice",(function(e,t){var n=a(s(this),e,t),r=i(this),o=0,c=n.length,l=new r(c);while(c>o)l[o]=n[o++];return l}),l)},"2a62":function(e,t,n){var r=n("c65b"),i=n("825a"),o=n("dc4a");e.exports=function(e,t,n){var a,s;i(e);try{if(a=o(e,"return"),!a){if("throw"===t)throw n;return n}a=r(a,e)}catch(c){s=!0,a=c}if("throw"===t)throw n;if(s)throw a;return i(a),n}},"2add":function(e,t,n){"use strict";n.r(t),function(e){var t,r=n("1da1"),i=n("ade3"),o=n("2909"),a=n("b85c"),s=n("d4ec"),c=n("bee2"),l=n("53ca"),h=(n("96cf"),n("a15b"),n("fb6a"),n("ac1f"),n("d9e2"),n("2ca0"),n("8a79"),n("a434"),n("d3b7"),n("e260"),n("ddb0"),n("5319"),n("a9e3"),n("a4d3"),n("e01a"),n("25f0"),n("159b"),n("b64b"),n("b0c0"),n("99af"),n("d81d"),n("466d"),n("00b4"),n("e9c4"),n("bf19"),n("944a"),n("0c47"),n("23dc"),n("e6cf"),n("d28b"),n("3ca3"),n("1276"),n("9911"),n("4e82"),n("498a"),n("4de4"),n("e500"));(function(e){e[e["Ident"]=0]="Ident",e[e["AtKeyword"]=1]="AtKeyword",e[e["String"]=2]="String",e[e["BadString"]=3]="BadString",e[e["UnquotedString"]=4]="UnquotedString",e[e["Hash"]=5]="Hash",e[e["Num"]=6]="Num",e[e["Percentage"]=7]="Percentage",e[e["Dimension"]=8]="Dimension",e[e["UnicodeRange"]=9]="UnicodeRange",e[e["CDO"]=10]="CDO",e[e["CDC"]=11]="CDC",e[e["Colon"]=12]="Colon",e[e["SemiColon"]=13]="SemiColon",e[e["CurlyL"]=14]="CurlyL",e[e["CurlyR"]=15]="CurlyR",e[e["ParenthesisL"]=16]="ParenthesisL",e[e["ParenthesisR"]=17]="ParenthesisR",e[e["BracketL"]=18]="BracketL",e[e["BracketR"]=19]="BracketR",e[e["Whitespace"]=20]="Whitespace",e[e["Includes"]=21]="Includes",e[e["Dashmatch"]=22]="Dashmatch",e[e["SubstringOperator"]=23]="SubstringOperator",e[e["PrefixOperator"]=24]="PrefixOperator",e[e["SuffixOperator"]=25]="SuffixOperator",e[e["Delim"]=26]="Delim",e[e["EMS"]=27]="EMS",e[e["EXS"]=28]="EXS",e[e["Length"]=29]="Length",e[e["Angle"]=30]="Angle",e[e["Time"]=31]="Time",e[e["Freq"]=32]="Freq",e[e["Exclamation"]=33]="Exclamation",e[e["Resolution"]=34]="Resolution",e[e["Comma"]=35]="Comma",e[e["Charset"]=36]="Charset",e[e["EscapedJavaScript"]=37]="EscapedJavaScript",e[e["BadEscapedJavaScript"]=38]="BadEscapedJavaScript",e[e["Comment"]=39]="Comment",e[e["SingleLineComment"]=40]="SingleLineComment",e[e["EOF"]=41]="EOF",e[e["CustomToken"]=42]="CustomToken"})(t||(t={}));var d=function(){function e(e){this.source=e,this.len=e.length,this.position=0}return e.prototype.substring=function(e,t){return void 0===t&&(t=this.position),this.source.substring(e,t)},e.prototype.eos=function(){return this.len<=this.position},e.prototype.pos=function(){return this.position},e.prototype.goBackTo=function(e){this.position=e},e.prototype.goBack=function(e){this.position-=e},e.prototype.advance=function(e){this.position+=e},e.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.source.charCodeAt(this.position+e)||0},e.prototype.lookbackChar=function(e){return void 0===e&&(e=0),this.source.charCodeAt(this.position-e)||0},e.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)},e.prototype.advanceIfChars=function(e){if(this.position+e.length>this.source.length)return!1;for(var t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0},e.prototype.advanceWhileChar=function(e){var t=this.position;while(this.position<this.len&&e(this.source.charCodeAt(this.position)))this.position++;return this.position-t},e}(),u="a".charCodeAt(0),p="f".charCodeAt(0),f="z".charCodeAt(0),m="A".charCodeAt(0),g="F".charCodeAt(0),b="Z".charCodeAt(0),v="0".charCodeAt(0),y="9".charCodeAt(0),w="~".charCodeAt(0),x="^".charCodeAt(0),S="=".charCodeAt(0),C="|".charCodeAt(0),k="-".charCodeAt(0),_="_".charCodeAt(0),E="%".charCodeAt(0),F="*".charCodeAt(0),R="(".charCodeAt(0),T=")".charCodeAt(0),A="<".charCodeAt(0),D=">".charCodeAt(0),N="@".charCodeAt(0),O="#".charCodeAt(0),I="$".charCodeAt(0),M="\\".charCodeAt(0),P="/".charCodeAt(0),z="\n".charCodeAt(0),L="\r".charCodeAt(0),j="\f".charCodeAt(0),W='"'.charCodeAt(0),V="'".charCodeAt(0),U=" ".charCodeAt(0),B="\t".charCodeAt(0),K=";".charCodeAt(0),q=":".charCodeAt(0),$="{".charCodeAt(0),H="}".charCodeAt(0),G="[".charCodeAt(0),Y="]".charCodeAt(0),J=",".charCodeAt(0),X=".".charCodeAt(0),Z="!".charCodeAt(0),Q={};Q[K]=t.SemiColon,Q[q]=t.Colon,Q[$]=t.CurlyL,Q[H]=t.CurlyR,Q[Y]=t.BracketR,Q[G]=t.BracketL,Q[R]=t.ParenthesisL,Q[T]=t.ParenthesisR,Q[J]=t.Comma;var ee={};ee["em"]=t.EMS,ee["ex"]=t.EXS,ee["px"]=t.Length,ee["cm"]=t.Length,ee["mm"]=t.Length,ee["in"]=t.Length,ee["pt"]=t.Length,ee["pc"]=t.Length,ee["deg"]=t.Angle,ee["rad"]=t.Angle,ee["grad"]=t.Angle,ee["ms"]=t.Time,ee["s"]=t.Time,ee["hz"]=t.Freq,ee["khz"]=t.Freq,ee["%"]=t.Percentage,ee["fr"]=t.Percentage,ee["dpi"]=t.Resolution,ee["dpcm"]=t.Resolution;var te=function(){function e(){this.stream=new d(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}return e.prototype.setSource=function(e){this.stream=new d(e)},e.prototype.finishToken=function(e,t,n){return{offset:e,len:this.stream.pos()-e,type:t,text:n||this.stream.substring(e)}},e.prototype.substring=function(e,t){return this.stream.substring(e,e+t)},e.prototype.pos=function(){return this.stream.pos()},e.prototype.goBackTo=function(e){this.stream.goBackTo(e)},e.prototype.scanUnquotedString=function(){var e=this.stream.pos(),n=[];return this._unquotedString(n)?this.finishToken(e,t.UnquotedString,n.join("")):null},e.prototype.scan=function(){var e=this.trivia();if(null!==e)return e;var n=this.stream.pos();return this.stream.eos()?this.finishToken(n,t.EOF):this.scanNext(n)},e.prototype.scanNext=function(e){if(this.stream.advanceIfChars([A,Z,k,k]))return this.finishToken(e,t.CDO);if(this.stream.advanceIfChars([k,k,D]))return this.finishToken(e,t.CDC);var n=[];if(this.ident(n))return this.finishToken(e,t.Ident,n.join(""));if(this.stream.advanceIfChar(N)){if(n=["@"],this._name(n)){var r=n.join("");return"@charset"===r?this.finishToken(e,t.Charset,r):this.finishToken(e,t.AtKeyword,r)}return this.finishToken(e,t.Delim)}if(this.stream.advanceIfChar(O))return n=["#"],this._name(n)?this.finishToken(e,t.Hash,n.join("")):this.finishToken(e,t.Delim);if(this.stream.advanceIfChar(Z))return this.finishToken(e,t.Exclamation);if(this._number()){var i=this.stream.pos();if(n=[this.stream.substring(e,i)],this.stream.advanceIfChar(E))return this.finishToken(e,t.Percentage);if(this.ident(n)){var o=this.stream.substring(i).toLowerCase(),a=ee[o];return"undefined"!==typeof a?this.finishToken(e,a,n.join("")):this.finishToken(e,t.Dimension,n.join(""))}return this.finishToken(e,t.Num)}n=[];var s=this._string(n);return null!==s?this.finishToken(e,s,n.join("")):(s=Q[this.stream.peekChar()],"undefined"!==typeof s?(this.stream.advance(1),this.finishToken(e,s)):this.stream.peekChar(0)===w&&this.stream.peekChar(1)===S?(this.stream.advance(2),this.finishToken(e,t.Includes)):this.stream.peekChar(0)===C&&this.stream.peekChar(1)===S?(this.stream.advance(2),this.finishToken(e,t.Dashmatch)):this.stream.peekChar(0)===F&&this.stream.peekChar(1)===S?(this.stream.advance(2),this.finishToken(e,t.SubstringOperator)):this.stream.peekChar(0)===x&&this.stream.peekChar(1)===S?(this.stream.advance(2),this.finishToken(e,t.PrefixOperator)):this.stream.peekChar(0)===I&&this.stream.peekChar(1)===S?(this.stream.advance(2),this.finishToken(e,t.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,t.Delim)))},e.prototype.trivia=function(){while(1){var e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,t.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(e,t.Comment)}}},e.prototype.comment=function(){if(this.stream.advanceIfChars([P,F])){var e=!1,t=!1;return this.stream.advanceWhileChar((function(n){return t&&n===P?(e=!0,!1):(t=n===F,!0)})),e&&this.stream.advance(1),!0}return!1},e.prototype._number=function(){var e,t=0;return this.stream.peekChar()===X&&(t=1),e=this.stream.peekChar(t),e>=v&&e<=y&&(this.stream.advance(t+1),this.stream.advanceWhileChar((function(e){return e>=v&&e<=y||0===t&&e===X})),!0)},e.prototype._newline=function(e){var t=this.stream.peekChar();switch(t){case L:case j:case z:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===L&&this.stream.advanceIfChar(z)&&e.push("\n"),!0}return!1},e.prototype._escape=function(e,t){var n=this.stream.peekChar();if(n===M){this.stream.advance(1),n=this.stream.peekChar();var r=0;while(r<6&&(n>=v&&n<=y||n>=u&&n<=p||n>=m&&n<=g))this.stream.advance(1),n=this.stream.peekChar(),r++;if(r>0){try{var i=parseInt(this.stream.substring(this.stream.pos()-r),16);i&&e.push(String.fromCharCode(i))}catch(o){}return n===U||n===B?this.stream.advance(1):this._newline([]),!0}if(n!==L&&n!==j&&n!==z)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1},e.prototype._stringChar=function(e,t){var n=this.stream.peekChar();return 0!==n&&n!==e&&n!==M&&n!==L&&n!==j&&n!==z&&(this.stream.advance(1),t.push(String.fromCharCode(n)),!0)},e.prototype._string=function(e){if(this.stream.peekChar()===V||this.stream.peekChar()===W){var n=this.stream.nextChar();e.push(String.fromCharCode(n));while(this._stringChar(n,e)||this._escape(e,!0));return this.stream.peekChar()===n?(this.stream.nextChar(),e.push(String.fromCharCode(n)),t.String):t.BadString}return null},e.prototype._unquotedChar=function(e){var t=this.stream.peekChar();return 0!==t&&t!==M&&t!==V&&t!==W&&t!==R&&t!==T&&t!==U&&t!==B&&t!==z&&t!==j&&t!==L&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e.prototype._unquotedString=function(e){var t=!1;while(this._unquotedChar(e)||this._escape(e))t=!0;return t},e.prototype._whitespace=function(){var e=this.stream.advanceWhileChar((function(e){return e===U||e===B||e===z||e===j||e===L}));return e>0},e.prototype._name=function(e){var t=!1;while(this._identChar(e)||this._escape(e))t=!0;return t},e.prototype.ident=function(e){var t=this.stream.pos(),n=this._minus(e);if(n){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){while(this._identChar(e)||this._escape(e));return!0}}else if(this._identFirstChar(e)||this._escape(e)){while(this._identChar(e)||this._escape(e));return!0}return this.stream.goBackTo(t),!1},e.prototype._identFirstChar=function(e){var t=this.stream.peekChar();return(t===_||t>=u&&t<=f||t>=m&&t<=b||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e.prototype._minus=function(e){var t=this.stream.peekChar();return t===k&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e.prototype._identChar=function(e){var t=this.stream.peekChar();return(t===_||t===k||t>=u&&t<=f||t>=m&&t<=b||t>=v&&t<=y||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e}();function ne(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function re(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function ie(e,t,n){void 0===n&&(n=4);var r=Math.abs(e.length-t.length);if(r>n)return 0;var i,o,a=[],s=[];for(i=0;i<t.length+1;++i)s.push(0);for(i=0;i<e.length+1;++i)a.push(s);for(i=1;i<e.length+1;++i)for(o=1;o<t.length+1;++o)e[i-1]===t[o-1]?a[i][o]=a[i-1][o-1]+1:a[i][o]=Math.max(a[i-1][o],a[i][o-1]);return a[e.length][t.length]-Math.sqrt(r)}function oe(e,t){return void 0===t&&(t=!0),e?e.length<140?e:e.slice(0,140)+(t?"…":""):""}function ae(e,t){var n=t.exec(e);return n&&n[0].length?e.substr(0,e.length-n[0].length):e}var se,ce,le=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function he(e,t){var n=null;return!e||t<e.offset||t>e.end?null:(e.accept((function(e){return-1===e.offset&&-1===e.length||e.offset<=t&&e.end>=t&&(n?e.length<=n.length&&(n=e):n=e,!0)})),n)}function de(e,t){var n=he(e,t),r=[];while(n)r.unshift(n),n=n.parent;return r}function ue(e){var t=e.findParent(se.Declaration),n=t&&t.getValue();return n&&n.encloses(e)?t:null}(function(e){e[e["Undefined"]=0]="Undefined",e[e["Identifier"]=1]="Identifier",e[e["Stylesheet"]=2]="Stylesheet",e[e["Ruleset"]=3]="Ruleset",e[e["Selector"]=4]="Selector",e[e["SimpleSelector"]=5]="SimpleSelector",e[e["SelectorInterpolation"]=6]="SelectorInterpolation",e[e["SelectorCombinator"]=7]="SelectorCombinator",e[e["SelectorCombinatorParent"]=8]="SelectorCombinatorParent",e[e["SelectorCombinatorSibling"]=9]="SelectorCombinatorSibling",e[e["SelectorCombinatorAllSiblings"]=10]="SelectorCombinatorAllSiblings",e[e["SelectorCombinatorShadowPiercingDescendant"]=11]="SelectorCombinatorShadowPiercingDescendant",e[e["Page"]=12]="Page",e[e["PageBoxMarginBox"]=13]="PageBoxMarginBox",e[e["ClassSelector"]=14]="ClassSelector",e[e["IdentifierSelector"]=15]="IdentifierSelector",e[e["ElementNameSelector"]=16]="ElementNameSelector",e[e["PseudoSelector"]=17]="PseudoSelector",e[e["AttributeSelector"]=18]="AttributeSelector",e[e["Declaration"]=19]="Declaration",e[e["Declarations"]=20]="Declarations",e[e["Property"]=21]="Property",e[e["Expression"]=22]="Expression",e[e["BinaryExpression"]=23]="BinaryExpression",e[e["Term"]=24]="Term",e[e["Operator"]=25]="Operator",e[e["Value"]=26]="Value",e[e["StringLiteral"]=27]="StringLiteral",e[e["URILiteral"]=28]="URILiteral",e[e["EscapedValue"]=29]="EscapedValue",e[e["Function"]=30]="Function",e[e["NumericValue"]=31]="NumericValue",e[e["HexColorValue"]=32]="HexColorValue",e[e["RatioValue"]=33]="RatioValue",e[e["MixinDeclaration"]=34]="MixinDeclaration",e[e["MixinReference"]=35]="MixinReference",e[e["VariableName"]=36]="VariableName",e[e["VariableDeclaration"]=37]="VariableDeclaration",e[e["Prio"]=38]="Prio",e[e["Interpolation"]=39]="Interpolation",e[e["NestedProperties"]=40]="NestedProperties",e[e["ExtendsReference"]=41]="ExtendsReference",e[e["SelectorPlaceholder"]=42]="SelectorPlaceholder",e[e["Debug"]=43]="Debug",e[e["If"]=44]="If",e[e["Else"]=45]="Else",e[e["For"]=46]="For",e[e["Each"]=47]="Each",e[e["While"]=48]="While",e[e["MixinContentReference"]=49]="MixinContentReference",e[e["MixinContentDeclaration"]=50]="MixinContentDeclaration",e[e["Media"]=51]="Media",e[e["Keyframe"]=52]="Keyframe",e[e["FontFace"]=53]="FontFace",e[e["Import"]=54]="Import",e[e["Namespace"]=55]="Namespace",e[e["Invocation"]=56]="Invocation",e[e["FunctionDeclaration"]=57]="FunctionDeclaration",e[e["ReturnStatement"]=58]="ReturnStatement",e[e["MediaQuery"]=59]="MediaQuery",e[e["MediaCondition"]=60]="MediaCondition",e[e["MediaFeature"]=61]="MediaFeature",e[e["FunctionParameter"]=62]="FunctionParameter",e[e["FunctionArgument"]=63]="FunctionArgument",e[e["KeyframeSelector"]=64]="KeyframeSelector",e[e["ViewPort"]=65]="ViewPort",e[e["Document"]=66]="Document",e[e["AtApplyRule"]=67]="AtApplyRule",e[e["CustomPropertyDeclaration"]=68]="CustomPropertyDeclaration",e[e["CustomPropertySet"]=69]="CustomPropertySet",e[e["ListEntry"]=70]="ListEntry",e[e["Supports"]=71]="Supports",e[e["SupportsCondition"]=72]="SupportsCondition",e[e["NamespacePrefix"]=73]="NamespacePrefix",e[e["GridLine"]=74]="GridLine",e[e["Plugin"]=75]="Plugin",e[e["UnknownAtRule"]=76]="UnknownAtRule",e[e["Use"]=77]="Use",e[e["ModuleConfiguration"]=78]="ModuleConfiguration",e[e["Forward"]=79]="Forward",e[e["ForwardVisibility"]=80]="ForwardVisibility",e[e["Module"]=81]="Module"})(se||(se={})),function(e){e[e["Mixin"]=0]="Mixin",e[e["Rule"]=1]="Rule",e[e["Variable"]=2]="Variable",e[e["Function"]=3]="Function",e[e["Keyframe"]=4]="Keyframe",e[e["Unknown"]=5]="Unknown",e[e["Module"]=6]="Module",e[e["Forward"]=7]="Forward",e[e["ForwardVisibility"]=8]="ForwardVisibility"}(ce||(ce={}));var pe,fe=function(){function e(e,t,n){void 0===e&&(e=-1),void 0===t&&(t=-1),this.parent=null,this.offset=e,this.length=t,n&&(this.nodeType=n)}return Object.defineProperty(e.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.nodeType||se.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),e.prototype.getTextProvider=function(){var e=this;while(e&&!e.textProvider)e=e.parent;return e?e.textProvider:function(){return"unknown"}},e.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},e.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},e.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},e.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},e.prototype.accept=function(e){if(e(this)&&this.children)for(var t=0,n=this.children;t<n.length;t++){var r=n[t];r.accept(e)}},e.prototype.acceptVisitor=function(e){this.accept(e.visitNode.bind(e))},e.prototype.adoptChild=function(e,t){if(void 0===t&&(t=-1),e.parent&&e.parent.children){var n=e.parent.children.indexOf(e);n>=0&&e.parent.children.splice(n,1)}e.parent=this;var r=this.children;return r||(r=this.children=[]),-1!==t?r.splice(t,0,e):r.push(e),e},e.prototype.attachTo=function(e,t){return void 0===t&&(t=-1),e&&e.adoptChild(this,t),this},e.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},e.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},e.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some((function(t){return t.getRule()===e}))},e.prototype.isErroneous=function(e){return void 0===e&&(e=!1),!!(this.issues&&this.issues.length>0)||e&&Array.isArray(this.children)&&this.children.some((function(e){return e.isErroneous(!0)}))},e.prototype.setNode=function(e,t,n){return void 0===n&&(n=-1),!!t&&(t.attachTo(this,n),this[e]=t,!0)},e.prototype.addChild=function(e){return!!e&&(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0)},e.prototype.updateOffsetAndLength=function(e){(e.offset<this.offset||-1===this.offset)&&(this.offset=e.offset);var t=e.end;(t>this.end||-1===this.length)&&(this.length=t-this.offset)},e.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},e.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},e.prototype.getChild=function(e){return this.children&&e<this.children.length?this.children[e]:null},e.prototype.addChildren=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.addChild(r)}},e.prototype.findFirstChildBeforeOffset=function(e){if(this.children)for(var t=null,n=this.children.length-1;n>=0;n--)if(t=this.children[n],t.offset<=e)return t;return null},e.prototype.findChildAtOffset=function(e,t){var n=this.findFirstChildBeforeOffset(e);return n&&n.end>=e?t&&n.findChildAtOffset(e,!0)||n:null},e.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},e.prototype.getParent=function(){var e=this.parent;while(e instanceof me)e=e.parent;return e},e.prototype.findParent=function(e){var t=this;while(t&&t.type!==e)t=t.parent;return t},e.prototype.findAParent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this;while(n&&!e.some((function(e){return n.type===e})))n=n.parent;return n},e.prototype.setData=function(e,t){this.options||(this.options={}),this.options[e]=t},e.prototype.getData=function(e){return this.options&&this.options.hasOwnProperty(e)?this.options[e]:null},e}(),me=function(e){function t(t,n){void 0===n&&(n=-1);var r=e.call(this,-1,-1)||this;return r.attachTo(t,n),r.offset=-1,r.length=-1,r}return le(t,e),t}(fe),ge=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.isCustomProperty=!1,r}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Identifier},enumerable:!1,configurable:!0}),t.prototype.containsInterpolation=function(){return this.hasChildren()},t}(fe),be=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Stylesheet},enumerable:!1,configurable:!0}),t}(fe),ve=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Declarations},enumerable:!1,configurable:!0}),t}(fe),ye=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),t.prototype.getDeclarations=function(){return this.declarations},t.prototype.setDeclarations=function(e){return this.setNode("declarations",e)},t}(fe),we=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Ruleset},enumerable:!1,configurable:!0}),t.prototype.getSelectors=function(){return this.selectors||(this.selectors=new me(this)),this.selectors},t.prototype.isNested=function(){return!!this.parent&&null!==this.parent.findParent(se.Declarations)},t}(ye),xe=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Selector},enumerable:!1,configurable:!0}),t}(fe),Se=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.SimpleSelector},enumerable:!1,configurable:!0}),t}(fe),Ce=(function(e){function t(t,n){return e.call(this,t,n)||this}le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.AtApplyRule},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""}}(fe),function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),t}(fe)),ke=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.CustomPropertySet},enumerable:!1,configurable:!0}),t}(ye),_e=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.property=null,r}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Declaration},enumerable:!1,configurable:!0}),t.prototype.setProperty=function(e){return this.setNode("property",e)},t.prototype.getProperty=function(){return this.property},t.prototype.getFullPropertyName=function(){var e=this.property?this.property.getName():"unknown";if(this.parent instanceof ve&&this.parent.getParent()instanceof We){var n=this.parent.getParent().getParent();if(n instanceof t)return n.getFullPropertyName()+e}return e},t.prototype.getNonPrefixedPropertyName=function(){var e=this.getFullPropertyName();if(e&&"-"===e.charAt(0)){var t=e.indexOf("-",1);if(-1!==t)return e.substring(t+1)}return e},t.prototype.setValue=function(e){return this.setNode("value",e)},t.prototype.getValue=function(){return this.value},t.prototype.setNestedProperties=function(e){return this.setNode("nestedProperties",e)},t.prototype.getNestedProperties=function(){return this.nestedProperties},t}(Ce),Ee=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.CustomPropertyDeclaration},enumerable:!1,configurable:!0}),t.prototype.setPropertySet=function(e){return this.setNode("propertySet",e)},t.prototype.getPropertySet=function(){return this.propertySet},t}(_e),Fe=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Property},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return ae(this.getText(),/[_\+]+$/)},t.prototype.isCustomProperty=function(){return!!this.identifier&&this.identifier.isCustomProperty},t}(fe),Re=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Invocation},enumerable:!1,configurable:!0}),t.prototype.getArguments=function(){return this.arguments||(this.arguments=new me(this)),this.arguments},t}(fe),Te=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Function},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t}(Re),Ae=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.FunctionParameter},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.setDefaultValue=function(e){return this.setNode("defaultValue",e,0)},t.prototype.getDefaultValue=function(){return this.defaultValue},t}(fe),De=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.FunctionArgument},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.setValue=function(e){return this.setNode("value",e,0)},t.prototype.getValue=function(){return this.value},t}(fe),Ne=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.If},enumerable:!1,configurable:!0}),t.prototype.setExpression=function(e){return this.setNode("expression",e,0)},t.prototype.setElseClause=function(e){return this.setNode("elseClause",e)},t}(ye),Oe=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.For},enumerable:!1,configurable:!0}),t.prototype.setVariable=function(e){return this.setNode("variable",e,0)},t}(ye),Ie=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Each},enumerable:!1,configurable:!0}),t.prototype.getVariables=function(){return this.variables||(this.variables=new me(this)),this.variables},t}(ye),Me=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.While},enumerable:!1,configurable:!0}),t}(ye),Pe=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Else},enumerable:!1,configurable:!0}),t}(ye),ze=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.FunctionDeclaration},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.getParameters=function(){return this.parameters||(this.parameters=new me(this)),this.parameters},t}(ye),Le=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.ViewPort},enumerable:!1,configurable:!0}),t}(ye),je=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.FontFace},enumerable:!1,configurable:!0}),t}(ye),We=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.NestedProperties},enumerable:!1,configurable:!0}),t}(ye),Ve=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Keyframe},enumerable:!1,configurable:!0}),t.prototype.setKeyword=function(e){return this.setNode("keyword",e,0)},t.prototype.getKeyword=function(){return this.keyword},t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t}(ye),Ue=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.KeyframeSelector},enumerable:!1,configurable:!0}),t}(ye),Be=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Import},enumerable:!1,configurable:!0}),t.prototype.setMedialist=function(e){return!!e&&(e.attachTo(this),!0)},t}(fe),Ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Use},enumerable:!1,configurable:!0}),t.prototype.getParameters=function(){return this.parameters||(this.parameters=new me(this)),this.parameters},t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t}(fe),qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.ModuleConfiguration},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.setValue=function(e){return this.setNode("value",e,0)},t.prototype.getValue=function(){return this.value},t}(fe),$e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Forward},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getMembers=function(){return this.members||(this.members=new me(this)),this.members},t.prototype.getParameters=function(){return this.parameters||(this.parameters=new me(this)),this.parameters},t}(fe),He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.ForwardVisibility},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t}(fe),Ge=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Namespace},enumerable:!1,configurable:!0}),t}(fe),Ye=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Media},enumerable:!1,configurable:!0}),t}(ye),Je=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Supports},enumerable:!1,configurable:!0}),t}(ye),Xe=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Document},enumerable:!1,configurable:!0}),t}(ye),Ze=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),t.prototype.getMediums=function(){return this.mediums||(this.mediums=new me(this)),this.mediums},t}(fe),Qe=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.MediaQuery},enumerable:!1,configurable:!0}),t}(fe),et=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.MediaCondition},enumerable:!1,configurable:!0}),t}(fe),tt=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.MediaFeature},enumerable:!1,configurable:!0}),t}(fe),nt=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.SupportsCondition},enumerable:!1,configurable:!0}),t}(fe),rt=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Page},enumerable:!1,configurable:!0}),t}(ye),it=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.PageBoxMarginBox},enumerable:!1,configurable:!0}),t}(ye),ot=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Expression},enumerable:!1,configurable:!0}),t}(fe),at=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.BinaryExpression},enumerable:!1,configurable:!0}),t.prototype.setLeft=function(e){return this.setNode("left",e)},t.prototype.getLeft=function(){return this.left},t.prototype.setRight=function(e){return this.setNode("right",e)},t.prototype.getRight=function(){return this.right},t.prototype.setOperator=function(e){return this.setNode("operator",e)},t.prototype.getOperator=function(){return this.operator},t}(fe),st=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.Term},enumerable:!1,configurable:!0}),t.prototype.setOperator=function(e){return this.setNode("operator",e)},t.prototype.getOperator=function(){return this.operator},t.prototype.setExpression=function(e){return this.setNode("expression",e)},t.prototype.getExpression=function(){return this.expression},t}(fe),ct=function(e){function t(t,n){return e.call(this,t,n)||this}return le(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return se.AttributeSelector},