stylus/vendor/less-bundle/less.min.js

2 lines
131 KiB
JavaScript
Raw Permalink Normal View History

var less=function(){"use strict";var e=function(){function e(e,t){return null!=t&&e instanceof t}var t,i,n;try{t=Map}catch(e){t=function(){}}try{i=Set}catch(e){i=function(){}}try{n=Promise}catch(e){n=function(){}}function r(s,a,l,u,h){"object"==typeof a&&(l=a.depth,u=a.prototype,h=a.includeNonEnumerable,a=a.circular);var c=[],f=[],p="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===l&&(l=1/0),function s(l,v){if(null===l)return null;if(0===v)return l;var d,m;if("object"!=typeof l)return l;if(e(l,t))d=new t;else if(e(l,i))d=new i;else if(e(l,n))d=new n(function(e,t){l.then(function(t){e(s(t,v-1))},function(e){t(s(e,v-1))})});else if(r.__isArray(l))d=[];else if(r.__isRegExp(l))d=new RegExp(l.source,o(l)),l.lastIndex&&(d.lastIndex=l.lastIndex);else if(r.__isDate(l))d=new Date(l.getTime());else{if(p&&Buffer.isBuffer(l))return d=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(d),d;e(l,Error)?d=Object.create(l):void 0===u?(m=Object.getPrototypeOf(l),d=Object.create(m)):(d=Object.create(u),m=u)}if(a){var g=c.indexOf(l);if(-1!=g)return f[g];c.push(l),f.push(d)}for(var y in e(l,t)&&l.forEach(function(e,t){var i=s(t,v-1),n=s(e,v-1);d.set(i,n)}),e(l,i)&&l.forEach(function(e){var t=s(e,v-1);d.add(t)}),l){var b;m&&(b=Object.getOwnPropertyDescriptor(m,y)),b&&null==b.set||(d[y]=s(l[y],v-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(l);for(y=0;y<w.length;y++){var x=w[y];(!(I=Object.getOwnPropertyDescriptor(l,x))||I.enumerable||h)&&(d[x]=s(l[x],v-1),I.enumerable||Object.defineProperty(d,x,{enumerable:!1}))}}if(h){var S=Object.getOwnPropertyNames(l);for(y=0;y<S.length;y++){var I,C=S[y];(I=Object.getOwnPropertyDescriptor(l,C))&&I.enumerable||(d[C]=s(l[C],v-1),Object.defineProperty(d,C,{enumerable:!1}))}}return d}(s,l)}function s(e){return Object.prototype.toString.call(e)}function o(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=s,r.__isDate=function(e){return"object"==typeof e&&"[object Date]"===s(e)},r.__isArray=function(e){return"object"==typeof e&&"[object Array]"===s(e)},r.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===s(e)},r.__getRegExpFlags=o,r}();const t={exports:{}};"object"==typeof t&&t.exports&&(t.exports=e);var i=t.exports,n={getLocation:function(e,t){for(var i=e+1,n=null,r=-1;--i>=0&&"\n"!==t.charAt(i);)r++;return"number"==typeof e&&(n=(t.slice(0,e).match(/\n/g)||"").length),{line:n,column:r}},copyArray:function(e){var t,i=e.length,n=new Array(i);for(t=0;t<i;t++)n[t]=e[t];return n},clone:function(e){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},copyOptions:function(e,t){if(t&&t._defaults)return t;var i=n.defaults(e,t);if(i.strictMath&&(i.math=3),i.relativeUrls&&(i.rewriteUrls=2),"string"==typeof i.math)switch(i.math.toLowerCase()){case"always":i.math=0;break;case"parens-division":i.math=1;break;case"strict":case"parens":i.math=2;break;case"strict-legacy":i.math=3}if("string"==typeof i.rewriteUrls)switch(i.rewriteUrls.toLowerCase()){case"off":i.rewriteUrls=0;break;case"local":i.rewriteUrls=1;break;case"all":i.rewriteUrls=2}return i},defaults:function(e,t){var n=t||{};if(!t._defaults){n={};var r=i(e);n._defaults=r;var s=t?i(t):{};Object.assign(n,r,s)}return n},merge:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e},flattenArray:function(e,t){t=t||[];for(var i=0,r=e.length;i<r;i++){var s=e[i];Array.isArray(s)?n.flattenArray(s,t):void 0!==s&&t.push(s)}return t}},r={error:function(e){this._fireEvent("error",e)},warn:function(e){this._fireEvent("warn",e)},info:function(e){this._fireEvent("info",e)},debug:function(e){this._fireEvent("debug",e)},addListener:function(e){this._listeners.push(e)},removeListener:function(e){for(var t=0;t<this._listeners.length;t++)if(this._listeners[t]===e)return void this._listeners.splice(t,1)},_fireEvent:function(e,t){for(var i=0;i<this._listeners.length;i++){var n=this._listeners[i][e];n&&n(t)}},_listeners:[]},s=func