UNPKG

@modern-js/module-tools

Version:

Simple, powerful, high-performance modern npm package development solution.

1 lines 280 kB
(()=>{var e={8132:e=>{"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var i={__proto__:t(e)};else var i=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(e,t))}));return i}},8127:(e,t,i)=>{var r=i(7147);var n=i(2367);var a=i(7876);var o=i(8132);var s=i(3837);var l;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){l=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{l="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,l,{get:function(){return t}})}var c=noop;if(s.debuglog)c=s.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))c=function(){var e=s.format.apply(s,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!r[l]){var p=global[l]||[];publishQueue(r,p);r.close=function(e){function close(t,i){return e.call(r,t,(function(e){if(!e){resetQueue()}if(typeof i==="function")i.apply(this,arguments)}))}Object.defineProperty(close,u,{value:e});return close}(r.close);r.closeSync=function(e){function closeSync(t){e.apply(r,arguments);resetQueue()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(r.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){c(r[l]);i(9491).equal(r[l].length,0)}))}}if(!global[l]){publishQueue(global,r[l])}e.exports=patch(o(r));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched){e.exports=patch(r);r.__patched=true}function patch(e){n(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,i,r){if(typeof i==="function")r=i,i=null;return go$readFile(e,i,r);function go$readFile(e,i,r,n){return t(e,i,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,i,r],t,n||Date.now(),Date.now()]);else{if(typeof r==="function")r.apply(this,arguments)}}))}}var i=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$writeFile(e,t,r,n);function go$writeFile(e,t,r,n,a){return i(e,t,r,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$writeFile,[e,t,r,n],i,a||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var r=e.appendFile;if(r)e.appendFile=appendFile;function appendFile(e,t,i,n){if(typeof i==="function")n=i,i=null;return go$appendFile(e,t,i,n);function go$appendFile(e,t,i,n,a){return r(e,t,i,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$appendFile,[e,t,i,n],r,a||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var o=e.copyFile;if(o)e.copyFile=copyFile;function copyFile(e,t,i,r){if(typeof i==="function"){r=i;i=0}return go$copyFile(e,t,i,r);function go$copyFile(e,t,i,r,n){return o(e,t,i,(function(a){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$copyFile,[e,t,i,r],a,n||Date.now(),Date.now()]);else{if(typeof r==="function")r.apply(this,arguments)}}))}}var s=e.readdir;e.readdir=readdir;var l=/^v[0-5]\./;function readdir(e,t,i){if(typeof t==="function")i=t,t=null;var r=l.test(process.version)?function go$readdir(e,t,i,r){return s(e,fs$readdirCallback(e,t,i,r))}:function go$readdir(e,t,i,r){return s(e,t,fs$readdirCallback(e,t,i,r))};return r(e,t,i);function fs$readdirCallback(e,t,i,n){return function(a,o){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([r,[e,t,i],a,n||Date.now(),Date.now()]);else{if(o&&o.sort)o.sort();if(typeof i==="function")i.call(this,a,o)}}}}if(process.version.substr(0,4)==="v0.8"){var u=a(e);ReadStream=u.ReadStream;WriteStream=u.WriteStream}var c=e.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var p=e.WriteStream;if(p){WriteStream.prototype=Object.create(p.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var d=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});var h=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,i){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=i;e.emit("open",i);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return p.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,i){if(t){e.destroy();e.emit("error",t)}else{e.fd=i;e.emit("open",i)}}))}function createReadStream(t,i){return new e.ReadStream(t,i)}function createWriteStream(t,i){return new e.WriteStream(t,i)}var v=e.open;e.open=open;function open(e,t,i,r){if(typeof i==="function")r=i,i=null;return go$open(e,t,i,r);function go$open(e,t,i,r,n){return v(e,t,i,(function(a,o){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$open,[e,t,i,r],a,n||Date.now(),Date.now()]);else{if(typeof r==="function")r.apply(this,arguments)}}))}}return e}function enqueue(e){c("ENQUEUE",e[0].name,e[1]);r[l].push(e);retry()}var d;function resetQueue(){var e=Date.now();for(var t=0;t<r[l].length;++t){if(r[l][t].length>2){r[l][t][3]=e;r[l][t][4]=e}}retry()}function retry(){clearTimeout(d);d=undefined;if(r[l].length===0)return;var e=r[l].shift();var t=e[0];var i=e[1];var n=e[2];var a=e[3];var o=e[4];if(a===undefined){c("RETRY",t.name,i);t.apply(null,i)}else if(Date.now()-a>=6e4){c("TIMEOUT",t.name,i);var s=i.pop();if(typeof s==="function")s.call(null,n)}else{var u=Date.now()-o;var p=Math.max(o-a,1);var h=Math.min(p*1.2,100);if(u>=h){c("RETRY",t.name,i);t.apply(null,i.concat([a]))}else{r[l].push(e)}}if(d===undefined){d=setTimeout(retry,0)}}},7876:(e,t,i)=>{var r=i(2781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,i){if(!(this instanceof ReadStream))return new ReadStream(t,i);r.call(this);var n=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;i=i||{};var a=Object.keys(i);for(var o=0,s=a.length;o<s;o++){var l=a[o];this[l]=i[l]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){n._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){n.emit("error",e);n.readable=false;return}n.fd=t;n.emit("open",t);n._read()}))}function WriteStream(t,i){if(!(this instanceof WriteStream))return new WriteStream(t,i);r.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var n=Object.keys(i);for(var a=0,o=n.length;a<o;a++){var s=n[a];this[s]=i[s]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},2367:(e,t,i)=>{var r=i(2057);var n=process.cwd;var a=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!a)a=n.call(process);return a};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var s=process.chdir;process.chdir=function(e){a=null;s.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,s)}e.exports=patch;function patch(e){if(r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,i){if(i)process.nextTick(i)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,i,r){if(r)process.nextTick(r)};e.lchownSync=function(){}}if(o==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(i,r,n){var a=Date.now();var o=0;t(i,r,(function CB(s){if(s&&(s.code==="EACCES"||s.code==="EPERM")&&Date.now()-a<6e4){setTimeout((function(){e.stat(r,(function(e,a){if(e&&e.code==="ENOENT")t(i,r,CB);else n(s)}))}),o);if(o<100)o+=10;return}if(n)n(s)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(i,r,n,a,o,s){var l;if(s&&typeof s==="function"){var u=0;l=function(c,p,d){if(c&&c.code==="EAGAIN"&&u<10){u++;return t.call(e,i,r,n,a,o,l)}s.apply(this,arguments)}}return t.call(e,i,r,n,a,o,l)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(i,r,n,a,o){var s=0;while(true){try{return t.call(e,i,r,n,a,o)}catch(e){if(e.code==="EAGAIN"&&s<10){s++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,i,n){e.open(t,r.O_WRONLY|r.O_SYMLINK,i,(function(t,r){if(t){if(n)n(t);return}e.fchmod(r,i,(function(t){e.close(r,(function(e){if(n)n(t||e)}))}))}))};e.lchmodSync=function(t,i){var n=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,i);var a=true;var o;try{o=e.fchmodSync(n,i);a=false}finally{if(a){try{e.closeSync(n)}catch(e){}}else{e.closeSync(n)}}return o}}function patchLutimes(e){if(r.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,i,n,a){e.open(t,r.O_SYMLINK,(function(t,r){if(t){if(a)a(t);return}e.futimes(r,i,n,(function(t){e.close(r,(function(e){if(a)a(t||e)}))}))}))};e.lutimesSync=function(t,i,n){var a=e.openSync(t,r.O_SYMLINK);var o;var s=true;try{o=e.futimesSync(a,i,n);s=false}finally{if(s){try{e.closeSync(a)}catch(e){}}else{e.closeSync(a)}}return o}}else if(e.futimes){e.lutimes=function(e,t,i,r){if(r)process.nextTick(r)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(i,r,n){return t.call(e,i,r,(function(e){if(chownErOk(e))e=null;if(n)n.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(i,r){try{return t.call(e,i,r)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(i,r,n,a){return t.call(e,i,r,n,(function(e){if(chownErOk(e))e=null;if(a)a.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(i,r,n){try{return t.call(e,i,r,n)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(i,r,n){if(typeof r==="function"){n=r;r=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(n)n.apply(this,arguments)}return r?t.call(e,i,r,callback):t.call(e,i,callback)}}function statFixSync(t){if(!t)return t;return function(i,r){var n=r?t.call(e,i,r):t.call(e,i);if(n){if(n.uid<0)n.uid+=4294967296;if(n.gid<0)n.gid+=4294967296}return n}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},1658:(e,t,i)=>{function __ncc_wildcard$0(e){if(e==="bmp.js"||e==="bmp")return i(6714);else if(e==="dds.js"||e==="dds")return i(863);else if(e==="gif.js"||e==="gif")return i(4973);else if(e==="jpg.js"||e==="jpg")return i(2306);else if(e==="png.js"||e==="png")return i(6547);else if(e==="psd.js"||e==="psd")return i(6486);else if(e==="svg.js"||e==="svg")return i(6478);else if(e==="tiff.js"||e==="tiff")return i(3558);else if(e==="webp.js"||e==="webp")return i(3802)}"use strict";var r={};var n=i(8376);n.forEach((function(e){r[e]=__ncc_wildcard$0(e).detect}));e.exports=function(e,t){var i,n;for(i in r){n=r[i](e,t);if(n){return i}}}},7412:(e,t,i)=>{function __ncc_wildcard$0(e){if(e==="bmp.js"||e==="bmp")return i(6714);else if(e==="dds.js"||e==="dds")return i(863);else if(e==="gif.js"||e==="gif")return i(4973);else if(e==="jpg.js"||e==="jpg")return i(2306);else if(e==="png.js"||e==="png")return i(6547);else if(e==="psd.js"||e==="psd")return i(6486);else if(e==="svg.js"||e==="svg")return i(6478);else if(e==="tiff.js"||e==="tiff")return i(3558);else if(e==="webp.js"||e==="webp")return i(3802)}"use strict";var r=i(7147);var n=i(1017);var a=i(1658);var o={};var s=i(8376);s.forEach((function(e){o[e]=__ncc_wildcard$0(e)}));var l=128*1024;function lookup(e,t){var i=a(e,t);if(i in o){var r=o[i].calculate(e,t);if(r!==false){r.type=i;return r}}throw new TypeError("unsupported file type: "+i+" (file: "+t+")")}function asyncFileToBuffer(e,t){r.open(e,"r",(function(i,n){if(i){return t(i)}var a=r.fstatSync(n).size;if(a<=0){return t(new Error("File size is not greater than 0 —— "+e))}var o=Math.min(a,l);var s=new Buffer(o);r.read(n,s,0,o,0,(function(e){if(e){return t(e)}r.close(n,(function(e){t(e,s)}))}))}))}function syncFileToBuffer(e){var t=r.openSync(e,"r");var i=r.fstatSync(t).size;var n=Math.min(i,l);var a=new Buffer(n);r.readSync(t,a,0,n,0);r.closeSync(t);return a}e.exports=function(e,t){if(Buffer.isBuffer(e)){return lookup(e)}if(typeof e!=="string"){throw new TypeError("invalid invocation")}var i=n.resolve(e);if(typeof t==="function"){asyncFileToBuffer(i,(function(e,r){if(e){return t(e)}var n;try{n=lookup(r,i)}catch(t){e=t}t(e,n)}))}else{var r=syncFileToBuffer(i);return lookup(r,i)}};e.exports.types=s},3297:e=>{"use strict";function readUInt(e,t,i,r){i=i||0;var n=!!r?"BE":"LE";var a=e["readUInt"+t+n];return a.call(e,i)}e.exports=readUInt},8376:e=>{"use strict";e.exports=["bmp","gif","jpg","png","psd","svg","tiff","webp","dds"]},6714:e=>{"use strict";function isBMP(e){return"BM"===e.toString("ascii",0,2)}function calculate(e){return{width:e.readUInt32LE(18),height:Math.abs(e.readInt32LE(22))}}e.exports={detect:isBMP,calculate:calculate}},863:e=>{"use strict";function isDDS(e){return e.readUInt32LE(0)===542327876}function calculate(e){return{height:e.readUInt32LE(12),width:e.readUInt32LE(16)}}e.exports={detect:isDDS,calculate:calculate}},4973:e=>{"use strict";var t=/^GIF8[79]a/;function isGIF(e){var i=e.toString("ascii",0,6);return t.test(i)}function calculate(e){return{width:e.readUInt16LE(6),height:e.readUInt16LE(8)}}e.exports={detect:isGIF,calculate:calculate}},2306:e=>{"use strict";function isJPG(e){var t=e.toString("hex",0,2);return"ffd8"===t}function extractSize(e,t){return{height:e.readUInt16BE(t),width:e.readUInt16BE(t+2)}}function validateBuffer(e,t){if(t>e.length){throw new TypeError("Corrupt JPG, exceeded buffer limits")}if(e[t]!==255){throw new TypeError("Invalid JPG, marker table corrupted")}}function calculate(e){e=e.slice(4);var t,i;while(e.length){t=e.readUInt16BE(0);validateBuffer(e,t);i=e[t+1];if(i===192||i===193||i===194){return extractSize(e,t+5)}e=e.slice(t+2)}throw new TypeError("Invalid JPG, no size found")}e.exports={detect:isJPG,calculate:calculate}},6547:e=>{"use strict";var t="PNG\r\n\n";var i="IHDR";var r="CgBI";function isPNG(e){if(t===e.toString("ascii",1,8)){var n=e.toString("ascii",12,16);if(n===r){n=e.toString("ascii",28,32)}if(n!==i){throw new TypeError("invalid png")}return true}}function calculate(e){if(e.toString("ascii",12,16)===r){return{width:e.readUInt32BE(32),height:e.readUInt32BE(36)}}return{width:e.readUInt32BE(16),height:e.readUInt32BE(20)}}e.exports={detect:isPNG,calculate:calculate}},6486:e=>{"use strict";function isPSD(e){return"8BPS"===e.toString("ascii",0,4)}function calculate(e){return{width:e.readUInt32BE(18),height:e.readUInt32BE(14)}}e.exports={detect:isPSD,calculate:calculate}},6478:e=>{"use strict";var t=/<svg[^>]+[^>]*>/;function isSVG(e){return t.test(e)}var i={root:/<svg\s[^>]+>/,width:/\bwidth=(['"])([^%]+?)\1/,height:/\bheight=(['"])([^%]+?)\1/,viewbox:/\bviewBox=(['"])(.+?)\1/};function parseViewbox(e){var t=e.split(" ");return{width:parseInt(t[2],10),height:parseInt(t[3],10)}}function parseAttributes(e){var t=e.match(i.width);var r=e.match(i.height);var n=e.match(i.viewbox);return{width:t&&parseInt(t[2],10),height:r&&parseInt(r[2],10),viewbox:n&&parseViewbox(n[2])}}function calculateByDimensions(e){return{width:e.width,height:e.height}}function calculateByViewbox(e){var t=e.viewbox.width/e.viewbox.height;if(e.width){return{width:e.width,height:Math.floor(e.width/t)}}if(e.height){return{width:Math.floor(e.height*t),height:e.height}}return{width:e.viewbox.width,height:e.viewbox.height}}function calculate(e){var t=e.toString("utf8").match(i.root);if(t){var r=parseAttributes(t[0]);if(r.width&&r.height){return calculateByDimensions(r)}if(r.viewbox){return calculateByViewbox(r)}}throw new TypeError("invalid svg")}e.exports={detect:isSVG,calculate:calculate}},3558:(e,t,i)=>{"use strict";var r=i(7147);var n=i(3297);function isTIFF(e){var t=e.toString("hex",0,4);return"49492a00"===t||"4d4d002a"===t}function readIFD(e,t,i){var a=n(e,32,4,i);var o=1024;var s=r.statSync(t).size;if(a+o>s){o=s-a-10}var l=new Buffer(o);var u=r.openSync(t,"r");r.readSync(u,l,0,o,a);var c=l.slice(2);return c}function readValue(e,t){var i=n(e,16,8,t);var r=n(e,16,10,t);return(r<<16)+i}function nextTag(e){if(e.length>24){return e.slice(12)}}function extractTags(e,t){var i={};var r,a,o;while(e&&e.length){r=n(e,16,0,t);a=n(e,16,2,t);o=n(e,32,4,t);if(r===0){break}else{if(o===1&&(a===3||a===4)){i[r]=readValue(e,t)}e=nextTag(e)}}return i}function determineEndianness(e){var t=e.toString("ascii",0,2);if("II"===t){return"LE"}else if("MM"===t){return"BE"}}function calculate(e,t){if(!t){throw new TypeError("Tiff doesn't support buffer")}var i=determineEndianness(e)==="BE";var r=readIFD(e,t,i);var n=extractTags(r,i);var a=n[256];var o=n[257];if(!a||!o){throw new TypeError("Invalid Tiff, missing tags")}return{width:a,height:o}}e.exports={detect:isTIFF,calculate:calculate}},3802:e=>{"use strict";function isWebP(e){var t="RIFF"===e.toString("ascii",0,4);var i="WEBP"===e.toString("ascii",8,12);var r="VP8"===e.toString("ascii",12,15);return t&&i&&r}function calculate(e){var t=e.toString("ascii",12,16);e=e.slice(20,30);if(t==="VP8X"){var i=e[0];var r=(i&192)===0;var n=(i&1)===0;if(r&&n){return calculateExtended(e)}else{return false}}if(t==="VP8 "&&e[0]!==47){return calculateLossy(e)}var a=e.toString("hex",3,6);if(t==="VP8L"&&a!=="9d012a"){return calculateLossless(e)}return false}function calculateExtended(e){return{width:1+e.readUIntLE(4,3),height:1+e.readUIntLE(7,3)}}function calculateLossless(e){return{width:1+((e[2]&63)<<8|e[1]),height:1+((e[4]&15)<<10|e[3]<<2|(e[2]&192)>>6)}}function calculateLossy(e){return{width:e.readInt16LE(6)&16383,height:e.readInt16LE(8)&16383}}e.exports={detect:isWebP,calculate:calculate}},2104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getType(e){return Object.prototype.toString.call(e).slice(8,-1)}function isUndefined(e){return getType(e)==="Undefined"}function isNull(e){return getType(e)==="Null"}function isPlainObject(e){if(getType(e)!=="Object")return false;return e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function isObject(e){return isPlainObject(e)}function isEmptyObject(e){return isPlainObject(e)&&Object.keys(e).length===0}function isFullObject(e){return isPlainObject(e)&&Object.keys(e).length>0}function isAnyObject(e){return getType(e)==="Object"}function isObjectLike(e){return isAnyObject(e)}function isFunction(e){return typeof e==="function"}function isArray(e){return getType(e)==="Array"}function isFullArray(e){return isArray(e)&&e.length>0}function isEmptyArray(e){return isArray(e)&&e.length===0}function isString(e){return getType(e)==="String"}function isFullString(e){return isString(e)&&e!==""}function isEmptyString(e){return e===""}function isNumber(e){return getType(e)==="Number"&&!isNaN(e)}function isBoolean(e){return getType(e)==="Boolean"}function isRegExp(e){return getType(e)==="RegExp"}function isMap(e){return getType(e)==="Map"}function isWeakMap(e){return getType(e)==="WeakMap"}function isSet(e){return getType(e)==="Set"}function isWeakSet(e){return getType(e)==="WeakSet"}function isSymbol(e){return getType(e)==="Symbol"}function isDate(e){return getType(e)==="Date"&&!isNaN(e)}function isBlob(e){return getType(e)==="Blob"}function isFile(e){return getType(e)==="File"}function isPromise(e){return getType(e)==="Promise"}function isError(e){return getType(e)==="Error"}function isNaNValue(e){return getType(e)==="Number"&&isNaN(e)}function isPrimitive(e){return isBoolean(e)||isNull(e)||isUndefined(e)||isNumber(e)||isString(e)||isSymbol(e)}var i=isOneOf(isNull,isUndefined);function isOneOf(e,t,i,r,n){return function(a){return e(a)||t(a)||!!i&&i(a)||!!r&&r(a)||!!n&&n(a)}}function isType(e,t){if(!(t instanceof Function)){throw new TypeError("Type must be a function")}if(!Object.prototype.hasOwnProperty.call(t,"prototype")){throw new TypeError("Type is not a class")}var i=t.name;return getType(e)===i||Boolean(e&&e.constructor===t)}t.getType=getType;t.isAnyObject=isAnyObject;t.isArray=isArray;t.isBlob=isBlob;t.isBoolean=isBoolean;t.isDate=isDate;t.isEmptyArray=isEmptyArray;t.isEmptyObject=isEmptyObject;t.isEmptyString=isEmptyString;t.isError=isError;t.isFile=isFile;t.isFullArray=isFullArray;t.isFullObject=isFullObject;t.isFullString=isFullString;t.isFunction=isFunction;t.isMap=isMap;t.isNaNValue=isNaNValue;t.isNull=isNull;t.isNullOrUndefined=i;t.isNumber=isNumber;t.isObject=isObject;t.isObjectLike=isObjectLike;t.isOneOf=isOneOf;t.isPlainObject=isPlainObject;t.isPrimitive=isPrimitive;t.isPromise=isPromise;t.isRegExp=isRegExp;t.isSet=isSet;t.isString=isString;t.isSymbol=isSymbol;t.isType=isType;t.isUndefined=isUndefined;t.isWeakMap=isWeakMap;t.isWeakSet=isWeakSet},4374:(e,t,i)=>{e.exports=i(9505)["default"]},8692:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]={encodeBase64:function encodeBase64(e){var t=Buffer.from?Buffer.from(e):new Buffer(e);return t.toString("base64")},mimeLookup:function(e){return i(4242).lookup(e)},charsetLookup:function(e){return i(4242).charsets.lookup(e)},getSourceMapGenerator:function getSourceMapGenerator(){return i(7435).SourceMapGenerator}}},6213:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=i(4422);var n=r.__importDefault(i(1017));var a=r.__importDefault(i(163));var o=r.__importDefault(i(491));var FileManager=function(){};FileManager.prototype=Object.assign(new o.default,{supports:function(){return true},supportsSync:function(){return true},loadFile:function(e,t,i,r,o){var s;var l=this.isPathAbsolute(e);var u=[];var c=this;var p=e.slice(0,1);var d=p==="."||p==="/";var h=null;var v=false;var m="npm://";i=i||{};var g=l?[""]:[t];if(i.paths){g.push.apply(g,i.paths)}if(!l&&g.indexOf(".")===-1){g.push(".")}var y=i.prefixes||[""];var _=this.extractUrlParts(e);if(i.syncImport){getFileData(returnData,returnData);if(o){o(h.error,h)}else{return h}}else{return new Promise(getFileData)}function returnData(e){if(!e.filename){h={error:e}}else{h=e}}function getFileData(t,r){(function tryPathIndex(o){if(o<g.length){(function tryPrefix(e){if(e<y.length){v=false;s=_.rawPath+y[e]+_.filename;if(g[o]){s=n.default.join(g[o],s)}if(!d&&g[o]==="."){try{s=require.resolve(s);v=true}catch(e){u.push(m+s);tryWithExtension()}}else{tryWithExtension()}function tryWithExtension(){var e=i.ext?c.tryAppendExtension(s,i.ext):s;if(e!==s&&!d&&g[o]==="."){try{s=require.resolve(e);v=true}catch(t){u.push(m+e);s=e}}else{s=e}}var r=[s];if(!i.rawBuffer){r.push("utf-8")}if(i.syncImport){try{var l=a.default.readFileSync.apply(this,r);t({contents:l,filename:s})}catch(t){u.push(v?m+s:s);return tryPrefix(e+1)}}else{r.push((function(i,r){if(i){u.push(v?m+s:s);return tryPrefix(e+1)}t({contents:r,filename:s})}));a.default.readFile.apply(this,r)}}else{tryPathIndex(o+1)}})(0)}else{r({type:"File",message:"'"+e+"' wasn't found. Tried - "+u.join(",")})}})(0)}},loadFileSync:function(e,t,i,r){i.syncImport=true;return this.loadFile(e,t,i,r)}});t["default"]=FileManager},163:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r;try{r=i(8127)}catch(e){r=i(7147)}t["default"]=r},3436:(e,t,i)=>{"use strict";var r;r={value:true};var n=i(4422);var a=n.__importDefault(i(7505));var o=n.__importDefault(i(2026));var s=n.__importDefault(i(6267));t.Z=function(e){function imageSize(t,r){var n=r.value;var a=t.currentFileInfo;var o=a.rewriteUrls?a.currentDirectory:a.entryPath;var s=n.indexOf("#");if(s!==-1){n=n.slice(0,s)}var l=e.getFileManager(n,o,t.context,e,true);if(!l){throw{type:"File",message:"Can not set up FileManager for "+r}}var u=l.loadFileSync(n,o,t.context,e);if(u.error){throw u.error}var c=i(7412);return c(u.filename)}var t={"image-size":function(e){var t=imageSize(this,e);return new o.default([new a.default(t.width,"px"),new a.default(t.height,"px")])},"image-width":function(e){var t=imageSize(this,e);return new a.default(t.width,"px")},"image-height":function(e){var t=imageSize(this,e);return new a.default(t.height,"px")}};s.default.addMultiple(t)}},9505:(e,t,i)=>{"use strict";var r;r={value:true};var n=i(4422);var a=n.__importDefault(i(8692));var o=n.__importDefault(i(6213));var s=n.__importDefault(i(5707));var l=n.__importDefault(i(429));var u=l.default(a.default,[new o.default,new s.default]);var c=n.__importDefault(i(665));u.createFromEnvironment=l.default;u.lesscHelper=c.default;u.PluginLoader=i(4050).Z;u.fs=i(163)["default"];u.FileManager=o.default;u.UrlFileManager=s.default;u.options=i(4182).Z();i(3436).Z(u.environment);t["default"]=u},665:(e,t)=>{var i={stylize:function(e,t){var i={reset:[0,0],bold:[1,22],inverse:[7,27],underline:[4,24],yellow:[33,39],green:[32,39],red:[31,39],grey:[90,39]};return"["+i[t][0]+"m"+e+"["+i[t][1]+"m"},printUsage:function(){console.log("usage: lessc [option option=parameter ...] <source> [destination]");console.log("");console.log("If source is set to `-' (dash or hyphen-minus), input is read from stdin.");console.log("");console.log("options:");console.log(" -h, --help Prints help (this message) and exit.");console.log(" --include-path=PATHS Sets include paths. Separated by `:'. `;' also supported on windows.");console.log(" -M, --depends Outputs a makefile import dependency list to stdout.");console.log(" --no-color Disables colorized output.");console.log(" --ie-compat Enables IE8 compatibility checks.");console.log(" --js Enables inline JavaScript in less files");console.log(" -l, --lint Syntax check only (lint).");console.log(" -s, --silent Suppresses output of error messages.");console.log(" --strict-imports Forces evaluation of imports.");console.log(" --insecure Allows imports from insecure https hosts.");console.log(" -v, --version Prints version number and exit.");console.log(" --verbose Be verbose.");console.log(" --source-map[=FILENAME] Outputs a v3 sourcemap to the filename (or output filename.map).");console.log(" --source-map-rootpath=X Adds this path onto the sourcemap filename and less file paths.");console.log(" --source-map-basepath=X Sets sourcemap base path, defaults to current working directory.");console.log(" --source-map-include-source Puts the less files into the map instead of referencing them.");console.log(" --source-map-inline Puts the map (and any less files) as a base64 data uri into the output css file.");console.log(" --source-map-url=URL Sets a custom URL to map file, for sourceMappingURL comment");console.log(" in generated CSS file.");console.log(" --source-map-no-annotation Excludes the sourceMappingURL comment from the output css file.");console.log(" -rp, --rootpath=URL Sets rootpath for url rewriting in relative imports and urls");console.log(" Works with or without the relative-urls option.");console.log(" -ru=, --rewrite-urls= Rewrites URLs to make them relative to the base less file.");console.log(" all|local|off 'all' rewrites all URLs, 'local' just those starting with a '.'");console.log("");console.log(" -m=, --math=");console.log(" always Less will eagerly perform math operations always.");console.log(" parens-division Math performed except for division (/) operator");console.log(" parens | strict Math only performed inside parentheses");console.log(" strict-legacy Parens required in very strict terms (legacy --strict-math)");console.log("");console.log(" -su=on|off Allows mixed units, e.g. 1px+1em or 1px*1px which have units");console.log(" --strict-units=on|off that cannot be represented.");console.log(" --global-var='VAR=VALUE' Defines a variable that can be referenced by the file.");console.log(" --modify-var='VAR=VALUE' Modifies a variable already declared in the file.");console.log(" --url-args='QUERYSTRING' Adds params into url tokens (e.g. 42, cb=42 or 'a=1&b=2')");console.log(" --plugin=PLUGIN=OPTIONS Loads a plugin. You can also omit the --plugin= if the plugin begins");console.log(" less-plugin. E.g. the clean css plugin is called less-plugin-clean-css");console.log(" once installed (npm install less-plugin-clean-css), use either with");console.log(" --plugin=less-plugin-clean-css or just --clean-css");console.log(' specify options afterwards e.g. --plugin=less-plugin-clean-css="advanced"');console.log(' or --clean-css="advanced"');console.log(" --disable-plugin-rule Disallow @plugin statements");console.log("");console.log("-------------------------- Deprecated ----------------");console.log(" -sm=on|off Legacy parens-only math. Use --math");console.log(" --strict-math=on|off ");console.log("");console.log(" --line-numbers=TYPE Outputs filename and line numbers.");console.log(" TYPE can be either 'comments', which will output");console.log(" the debug info within comments, 'mediaquery'");console.log(" that will output the information within a fake");console.log(" media query which is compatible with the SASS");console.log(" format, and 'all' which will do both.");console.log(" -x, --compress Compresses output by removing some whitespaces.");console.log(" We recommend you use a dedicated minifer like less-plugin-clean-css");console.log("");console.log("Report bugs to: http://github.com/less/less.js/issues");console.log("Home page: <http://lesscss.org/>")}};for(var r in i){if(i.hasOwnProperty(r)){t[r]=i[r]}}},4050:(e,t,i)=>{"use strict";var r;r={value:true};var n=i(4422);var a=n.__importDefault(i(1017));var o=n.__importDefault(i(2819));var PluginLoader=function(e){this.less=e;this.require=function(e){e=a.default.dirname(e);return function(t){var i=t.substr(0,2);if(i===".."||i==="./"){return require(a.default.join(e,t))}else{return require(t)}}}};PluginLoader.prototype=Object.assign(new o.default,{loadPlugin:function(e,t,i,r,n){var a=e.slice(0,1);var o=a==="."||a==="/"||e.slice(-3).toLowerCase()===".js";if(!o){i.prefixes=["less-plugin-",""]}if(i.syncImport){return n.loadFileSync(e,t,i,r)}return new Promise((function(a,o){n.loadFile(e,t,i,r).then((function(e){try{a(e)}catch(e){console.log(e);o(e)}})).catch((function(e){o(e)}))}))},loadPluginSync:function(e,t,i,r,n){i.syncImport=true;return this.loadPlugin(e,t,i,r,n)}});t.Z=PluginLoader},5707:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=i(4422);var n=/^(?:https?:)?\/\//i;var a=r.__importDefault(i(7310));var o;var s=r.__importDefault(i(491));var l=r.__importDefault(i(1529));var UrlFileManager=function(){};UrlFileManager.prototype=Object.assign(new s.default,{supports:function(e,t,i,r){return n.test(e)||n.test(t)},loadFile:function(e,t,r,s){return new Promise((function(r,s){if(o===undefined){try{o=i(2326)}catch(e){o=null}}if(!o){s({type:"File",message:"optional dependency 'needle' required to import over http(s)\n"});return}var u=n.test(e)?e:a.default.resolve(t,e);var c=u.indexOf("?")===-1?u+"?":u;o.get(c,{follow_max:5},(function(e,t,i){if(e||t&&t.statusCode>=400){var n=t&&t.statusCode===404?"resource '"+u+"' was not found\n":"resource '"+u+"' gave this Error:\n "+(e||t.statusMessage||t.statusCode)+"\n";s({type:"File",message:n});return}if(t.statusCode>=300){s({type:"File",message:"resource '"+u+"' caused too many redirects"});return}i=i.toString("utf8");if(!i){l.default.warn("Warning: Empty body (HTTP "+t.statusCode+') returned by "'+u+'"')}r({contents:i||"",filename:u})}))}))}});t["default"]=UrlFileManager},7207:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RewriteUrls=t.Math=void 0;t.Math={ALWAYS:0,PARENS_DIVISION:1,PARENS:2};t.RewriteUrls={OFF:0,LOCAL:1,ALL:2}},3892:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=i(4422);var n={};t["default"]=n;var a=r.__importStar(i(7207));var o=function copyFromOriginal(e,t,i){if(!e){return}for(var r=0;r<i.length;r++){if(e.hasOwnProperty(i[r])){t[i[r]]=e[i[r]]}}};var s=["paths","rewriteUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","chunkInput","mime","useFileCache","processImports","pluginManager"];n.Parse=function(e){o(e,this,s);if(typeof this.paths==="string"){this.paths=[this.paths]}};var l=["paths","compress","math","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope","rewriteUrls"];n.Eval=function(e,t){o(e,this,l);if(typeof this.paths==="string"){this.paths=[this.paths]}this.frames=t||[];this.importantScope=this.importantScope||[]};n.Eval.prototype.enterCalc=function(){if(!this.calcStack){this.calcStack=[]}this.calcStack.push(true);this.inCalc=true};n.Eval.prototype.exitCalc=function(){this.calcStack.pop();if(!this.calcStack.length){this.inCalc=false}};n.Eval.prototype.inParenthesis=function(){if(!this.parensStack){this.parensStack=[]}this.parensStack.push(true)};n.Eval.prototype.outOfParenthesis=function(){this.parensStack.pop()};n.Eval.prototype.inCalc=false;n.Eval.prototype.mathOn=true;n.Eval.prototype.isMathOn=function(e){if(!this.mathOn){return false}if(e==="/"&&this.math!==a.Math.ALWAYS&&(!this.parensStack||!this.parensStack.length)){return false}if(this.math>a.Math.PARENS_DIVISION){return this.parensStack&&this.parensStack.length}return true};n.Eval.prototype.pathRequiresRewrite=function(e){var t=this.rewriteUrls===a.RewriteUrls.LOCAL?isPathLocalRelative:isPathRelative;return t(e)};n.Eval.prototype.rewritePath=function(e,t){var i;t=t||"";i=this.normalizePath(t+e);if(isPathLocalRelative(e)&&isPathRelative(t)&&isPathLocalRelative(i)===false){i="./"+i}return i};n.Eval.prototype.normalizePath=function(e){var t=e.split("/").reverse();var i;e=[];while(t.length!==0){i=t.pop();switch(i){case".":break;case"..":if(e.length===0||e[e.length-1]===".."){e.push(i)}else{e.pop()}break;default:e.push(i);break}}return e.join("/")};function isPathRelative(e){return!/^(?:[a-z-]+:|\/|#)/i.test(e)}function isPathLocalRelative(e){return e.charAt(0)==="."}},1748:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},3152:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=i(4422);var n=r.__importDefault(i(1748));var a=r.__importDefault(i(1855));t["default"]={colors:n.default,unitConversions:a.default}},1855:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]={length:{m:1,cm:.01,mm:.001,in:.0254,px:.0254/96,pt:.0254/72,pc:.0254/72*12},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:1/400,turn:1}}},4182:(e,t)=>{"use strict";var i;i={value:true};function default_1(){return{javascriptEnabled:false,depends:false,compress:false,lint:false,paths:[],color:true,strictImports:false,insecure:false,rootpath:"",rewriteUrls:false,math:1,strictUnits:false,globalVars:null,modifyVars:null,urlArgs:""}}t.Z=default_1},491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=function(){function AbstractFileManager(){}AbstractFileManager.prototype.getPath=function(e){var t=e.lastIndexOf("?");if(t>0){e=e.slice(0,t)}t=e.lastIndexOf("/");if(t<0){t=e.lastIndexOf("\\")}if(t<0){return""}return e.slice(0,t+1)};AbstractFileManager.prototype.tryAppendExtension=function(e,t){return/(\.[a-z]*$)|([\?;].*)$/.test(e)?e:e+t};AbstractFileManager.prototype.tryAppendLessExtension=function(e){return this.tryAppendExtension(e,".less")};AbstractFileManager.prototype.supportsSync=function(){return false};AbstractFileManager.prototype.alwaysMakePathsAbsolute=function(){return false};AbstractFileManager.prototype.isPathAbsolute=function(e){return/^(?:[a-z-]+:|\/|\\|#)/i.test(e)};AbstractFileManager.prototype.join=function(e,t){if(!e){return t}return e+t};AbstractFileManager.prototype.pathDiff=function(e,t){var i=this.extractUrlParts(e);var r=this.extractUrlParts(t);var n;var a;var o;var s;var l="";if(i.hostPart!==r.hostPart){return""}a=Math.max(r.directories.length,i.directories.length);for(n=0;n<a;n++){if(r.directories[n]!==i.directories[n]){break}}s=r.directories.slice(n);o=i.directories.slice(n);for(n=0;n<s.length-1;n++){l+="../"}for(n=0;n<o.length-1;n++){l+=o[n]+"/"}return l};AbstractFileManager.prototype.extractUrlParts=function(e,t){var i=/^((?:[a-z-]+:)?\/{2}(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i;var r=e.match(i);var n={};var a=[];var o=[];var s;var l;if(!r){throw new Error("Could not parse sheet href - '"+e+"'")}if(t&&(!r[1]||r[2])){l=t.match(i);if(!l){throw new Error("Could not parse page url - '"+t+"'")}r[1]=r[1]||l[1]||"";if(!r[2]){r[3]=l[3]+r[3]}}if(r[3]){a=r[3].replace(/\\/g,"/").split("/");for(s=0;s<a.length;s++){if(a[s]===".."){o.pop()}else if(a[s]!=="."){o.push(a[s])}}}n.hostPart=r[1];n.directories=o;n.rawPath=(r[1]||"")+a.join("/");n.path=(r[1]||"")+o.join("/");n.filename=r[4];n.fileUrl=n.path+(r[4]||"");n.url=n.fileUrl+(r[5]||"");return n};return AbstractFileManager}();t["default"]=i},2819:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=i(4422);var n=r.__importDefault(i(6267));var a=r.__importDefault(i(6993));var o=function(){function AbstractPluginLoader(){this.require=function(){return null}}AbstractPluginLoader.prototype.evalPlugin=function(e,t,i,r,o){var s,l,u,c,p,d,h;p=t.pluginManager;if(o){if(typeof o==="string"){d=o}else{d=o.filename}}var v=(new this.less.FileManager).extractUrlParts(d).filename;if(d){u=p.get(d);if(u){h=this.trySetOptions(u,d,v,r);if(h){return h}try{if(u.use){u.use.call(this.context,u)}}catch(e){e.message=e.message||"Error during @plugin call";return new a.default(e,i,d)}return u}}c={exports:{},pluginManager:p,fileInfo:o};l=n.default.create();var registerPlugin=function(e){u=e};try{s=new Function("module","require","registerPlugin","functions","tree","less","fileInfo",e);s(c,this.require(d),registerPlugin,l,this.less.tree,this.less,o)}catch(e){return new a.default(e,i,d)}if(!u){u=c.exports}u=this.validatePlugin(u,d,v);if(u instanceof a.default){return u}if(u){u.imports=i;u.filename=d;if(!u.minVersion||this.compareVersion("3.0.0",u.minVersion)<0){h=this.trySetOptions(u,d,v,r);if(h){return h}}p.addPlugin(u,o.filename,l);u.functions=l.getLocalFunctions();h=this.trySetOptions(u,d,v,r);if(h){return h}try{if(u.use){u.use.call(this.context,u)}}catch(e){e.message=e.message||"Error during @plugin call";return new a.default(e,i,d)}}else{return new a.default({message:"Not a valid plugin"},i,d)}return u};AbstractPluginLoader.prototype.trySetOptions=function(e,t,i,r){if(r&&!e.setOptions){return new a.default({message:"Options have been provided but the plugin "+i+" does not support any options."})}try{e.setOptions&&e.setOptions(r)}catch(e){return new a.default(e)}};AbstractPluginLoader.prototype.validatePlugin=function(e,t,i){if(e){if(typeof e==="function"){e=new e}if(e.minVersion){if(this.compareVersion(e.minVersion,this.less.version)<0){return new a.default({message:"Plugin "+i+" requires version "+this.versionToString(e.minVersion)})}}return e}return null};AbstractPluginLoader.prototype.compareVersion=function(e,t){if(typeof e==="string"){e=e.match(/^(\d+)\.?(\d+)?\.?(\d+)?/);e.shift()}for(var i=0;i<e.length;i++){if(e[i]!==t[i]){return parseInt(e[i])>parseInt(t[i])?-1:1}}return 0};AbstractPluginLoader.prototype.versionToString=function(e){var t="";for(var i=0;i<e.length;i++){t+=(t?".":"")+e[i]}return t};AbstractPluginLoader.prototype.printUsage=function(e){for(var t=0;t<e.length;t++){var i=e[t];if(i.printUsage){i.printUsage()}}};return AbstractPluginLoader}();t["default"]=o},7145:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=i(4422);var n=r.__importDefault(i(1529));var a=function(){function Environment(e,t){this.fileManagers=t||[];e=e||{};var i=["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"];var r=[];var n=r.concat(i);for(var a=0;a<n.length;a++){var o=n[a];var s=e[o];if(s){this[o]=s.bind(e)}else if(a<r.length){this.warn("missing required function in environment - "+o)}}}Environment.prototype.getFileManager=function(e,t,i,r,a){if(!e){n.default.warn("getFileManager called with no filename.. Please report this issue. continuing.")}if(t==null){n.default.warn("getFileManager called with null directory.. Please report this issue. continuing.")}var o=this.fileManagers;if(i.pluginManager){o=[].concat(o).concat(i.pluginManager.getFileManagers())}for(var s=o.length-1;s>=0;s--){var l=o[s];if(l[a?"supportsSync":"supports"](e,t,i,r)){return l}}return null};Environment.prototype.addFileManager=function(e){this.fileManagers.push(e)};Environment.prototype.clearFileManagers=function(){this.fileManagers=[]};return Environment}();t["default"]=a},8163:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=i(4422);var n=r.__importDefault(i(8231));var a=r.__importDefault(i(3839));function boolean(e){return e?a.default.True:a.default.False}function If(e,t,i,r){return t.eval(e)?i.eval(e):r?r.eval(e):new n.default}If.evalArgs=false;function isdefined(e,t){try{t.eval(e);return a.default.True}catch(e){return a.default.False}}isdefined.evalArgs=false;t["default"]={isdefined:isdefined,boolean:boolean,if:If}},5454:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=i(4422);var n=r.__importDefault(i(6850));function colorBlend(e,t,i){var r=t.alpha;var a;var o=i.alpha;var s;var l;var u;var c=[];l=o+r*(1-o);for(var p=0;p<3;p++){a=t.rgb[p]/255;s=i.rgb[p]/255;u=e(a,s);if(l){u=(o*s+r*(a-o*(a+s-u)))/l}c[p]=u*255}return new n.default(c,l)}var a={multiply:function(e,t){return e*t},screen:function(e,t){return e+t-e*t},overlay:function(e,t){e*=2;return e<=1?a.multiply(e,t):a.screen(e-1,t)},softlight:function(e,t){var i=1;var r=e;if(t>.5){r=1;i=e>.25?Math.sqrt(e):((16*e-12)*e+4)*e}return e-(1-2*t)*r*(i-e)},hardlight:function(e,t){return a.overlay(t,e)},difference:function(e,t){return Math.abs(e-t)},exclusion:function(e,t){return e+t-2*e*t},average:function(e,t){return(e+t)/2},negation:function(e,t){return 1-Math.abs(e+t-1)}};for(var o in a){if(a.hasOwnProperty(o)){colorBlend[o]=colorBlend.bind(null,a[o])}}t["default"]=colorBlend},329:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=i(4422);var n=r.__importDefault(i(7505));var a=r.__importDefault(i(6850));var o=r.__importDefault(i(7122));var s=r.__importDefault(i(8231));var l=r.__importDefault(i(2026));var u=r.__importDefault(i(7054));var c;function clamp(e){return Math.min(1,Math.max(0,e))}function hsla(e,t){var i=c.hsla(t.h,t.s,t.l,t.a);if(i){if(e.value&&/^(rgb|hsl)/.test(e.value)){i.value=e.value}else{i.value="rgb"}return i}}function toHSL(e){if(e.toHSL){return e.toHSL()}else{throw new Error("Argument cannot be evaluated to a color")}}function toHSV(e){if(e.toHSV){return e.toHSV()}else{throw new Error("Argument cannot be evaluated to a color")}}function number(e){if(e instanceof n.default){return parseFloat(e.unit.is("%")?e.value/100:e.value)}else if(typeof e==="number"){return e}else{throw{type:"Argument",message:"color functions take numbers as parameters"}}}function scaled(e,t){if(e instanceof n.default&&e.unit.is("%")){return parseFloat(e.value*t/100)}else{return number(e)}}c={rgb:function(e,t,i){var r=1;if(e instanceof l.default){var n=e.value;e=n[0];t=n[1];i=n[2];if(i instanceof u.default){var a=i;i=a.operands[0];r=a.operands[1]}}var o=c.rgba(e,t,i,r);if(o){o.value="rgb";return o}},rgba:function(e,t,i,r){try{if(e instanceof a.default){if(t){r=number(t)}else{r=e.alpha}return new a.default(e.rgb,r,"rgba")}var n=[e,t,i].map((function(e){return scaled(e,255)}));r=number(r);return new a.default(n,r,"rgba")}catch(e){}},hsl:function(e,t,i){var r=1;if(e instanceof l.default){var n=e.value;e=n[0];t=n[1];i=n[2];if(i instanceof u.default){var a=i;i=a.operands[0];r=a.operands[1]}}var o=c.hsla(e,t,i,r);if(o){o.value="hsl";return o}},hsla:function(e,t,i,r){try{if(e instanceof a.default){if(t){r=number(t)}else{r=e.alpha}return new a.default(e.rgb,r,"hsla")}var n;var o;function hue(e){e=e<0?e+1:e>1?e-1:e;if(e*6<1){return n+(o-n)*e*6}else if(e*2<1){return o}else if(e*3<2){return n+(o-n)*(2/3-e)*6}else{return n}}e=number(e)%360/360;t=clamp(number(t));i=clamp(number(i));r=clamp(number(r));o=i<=.5?i*(t+1):i+t-i*t;n=i*2-o;var s=[hue(e+1/3)*255,hue(e)*255,hue(e-1/3)*255];r=number(r);return new a.default(s,r,"hsla")}catch(e){}},hsv:function(e,t,i){return c.hsva(e,t,i,1)},hsva:function(e,t,i,r){e=numbe