UNPKG

fp-units

Version:

An FP-oriented library to easily convert CSS units.

1 lines 181 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.units=t():e.units=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=73)}([function(e,t,n){e.exports=n(148)},function(e,t,n){var r=n(3),o=n(19);e.exports=function(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return o(n)?t:r(function(t){return e(n,t)});default:return o(n)&&o(i)?t:o(n)?r(function(t){return e(t,i)}):o(i)?r(function(t){return e(n,t)}):e(n,i)}}}},function(e,t,n){"use strict";function r(e){return{prev:null,next:null,data:e}}function o(e,t,n){var r;return null!==a?(r=a,a=a.cursor,r.prev=t,r.next=n,r.cursor=e.cursor):r={prev:t,next:n,cursor:e.cursor},e.cursor=r,r}function i(e){var t=e.cursor;e.cursor=t.cursor,t.prev=null,t.next=null,t.cursor=a,a=t}var a=null,s=function(){this.cursor=null,this.head=null,this.tail=null};s.createItem=r,s.prototype.createItem=r,s.prototype.getSize=function(){for(var e=0,t=this.head;t;)e++,t=t.next;return e},s.prototype.fromArray=function(e){var t=null;this.head=null;for(var n=0;n<e.length;n++){var o=r(e[n]);null!==t?t.next=o:this.head=o,o.prev=t,t=o}return this.tail=t,this},s.prototype.toArray=function(){for(var e=this.head,t=[];e;)t.push(e.data),e=e.next;return t},s.prototype.toJSON=s.prototype.toArray,s.prototype.isEmpty=function(){return null===this.head},s.prototype.first=function(){return this.head&&this.head.data},s.prototype.last=function(){return this.tail&&this.tail.data},s.prototype.each=function(e,t){var n;void 0===t&&(t=this);for(var r=o(this,null,this.head);null!==r.next;)n=r.next,r.next=n.next,e.call(t,n.data,n,this);i(this)},s.prototype.eachRight=function(e,t){var n;void 0===t&&(t=this);for(var r=o(this,this.tail,null);null!==r.prev;)n=r.prev,r.prev=n.prev,e.call(t,n.data,n,this);i(this)},s.prototype.nextUntil=function(e,t,n){if(null!==e){var r;void 0===n&&(n=this);for(var a=o(this,null,e);null!==a.next&&(r=a.next,a.next=r.next,!t.call(n,r.data,r,this)););i(this)}},s.prototype.prevUntil=function(e,t,n){if(null!==e){var r;void 0===n&&(n=this);for(var a=o(this,e,null);null!==a.prev&&(r=a.prev,a.prev=r.prev,!t.call(n,r.data,r,this)););i(this)}},s.prototype.some=function(e,t){var n=this.head;for(void 0===t&&(t=this);null!==n;){if(e.call(t,n.data,n,this))return!0;n=n.next}return!1},s.prototype.map=function(e,t){var n=[],r=this.head;for(void 0===t&&(t=this);null!==r;)n.push(e.call(t,r.data,r,this)),r=r.next;return n},s.prototype.clear=function(){this.head=null,this.tail=null},s.prototype.copy=function(){for(var e=new s,t=this.head;null!==t;)e.insert(r(t.data)),t=t.next;return e},s.prototype.updateCursors=function(e,t,n,r){for(var o=this.cursor;null!==o;)o.prev===e&&(o.prev=t),o.next===n&&(o.next=r),o=o.cursor},s.prototype.prepend=function(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this},s.prototype.prependData=function(e){return this.prepend(r(e))},s.prototype.append=function(e){return this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e,this},s.prototype.appendData=function(e){return this.append(r(e))},s.prototype.insert=function(e,t){if(void 0!==t&&null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.append(e)},s.prototype.insertData=function(e,t){this.insert(r(e),t)},s.prototype.remove=function(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e},s.prototype.appendList=function(e){null!==e.head&&(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail,e.head=null,e.tail=null)},s.prototype.insertList=function(e,t){if(void 0!==t&&null!==t){if(null===e.head)return;this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t,e.head=null,e.tail=null}else this.appendList(e)},s.prototype.replace=function(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)},e.exports=s},function(e,t,n){var r=n(19);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},function(e,t,n){var r=n(195),o=n(197);e.exports=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return r.apply(this,o(arguments))}},function(e,t,n){var r=n(10),o=n(3),i=n(1),a=n(169);e.exports=i(function(e,t){return 1===e?o(t):r(e,a(e,[],t))})},function(e,t,n){var r=n(8),o=n(13);e.exports=r(o)},function(e,t,n){var r=n(1),o=n(170);e.exports=r(function(e,t){return o(e,t,[],[])})},function(e,t,n){var r=n(3),o=n(1),i=n(19);e.exports=function(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return i(n)?t:o(function(t,r){return e(n,t,r)});case 2:return i(n)&&i(a)?t:i(n)?o(function(t,n){return e(t,a,n)}):i(a)?o(function(t,r){return e(n,t,r)}):r(function(t){return e(n,a,t)});default:return i(n)&&i(a)&&i(s)?t:i(n)&&i(a)?o(function(t,n){return e(t,n,s)}):i(n)&&i(s)?o(function(t,n){return e(t,a,n)}):i(a)&&i(s)?o(function(t,r){return e(n,t,r)}):i(n)?r(function(t){return e(t,a,s)}):i(a)?r(function(t){return e(n,t,s)}):i(s)?r(function(t){return e(n,a,t)}):e(n,a,s)}}}},function(e,t,n){var r=n(8),o=n(11);e.exports=r(function(e,t,n){return null!=n&&o(t,n)?n[t]:e})},function(e,t){e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,i){return t.apply(this,arguments)};case 6:return function(e,n,r,o,i,a){return t.apply(this,arguments)};case 7:return function(e,n,r,o,i,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,o,i,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,o,i,a,s,l,u){return t.apply(this,arguments)};case 10:return function(e,n,r,o,i,a,s,l,u,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},function(e,t){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},function(e,t){e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(186),o=n(156),i=n(58);e.exports=function(){function e(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}function t(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function n(e,t,n){return e["@@transducer/result"](n.reduce(o(e["@@transducer/step"],e),t))}var a="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(o,s,l){if("function"==typeof o&&(o=r(o)),i(l))return e(o,s,l);if("function"==typeof l.reduce)return n(o,s,l);if(null!=l[a])return t(o,s,l[a]());if("function"==typeof l.next)return t(o,s,l);throw new TypeError("reduce: list must be array or iterable")}}()},function(e,t,n){var r=n(3),o=n(11),i=n(55);e.exports=function(){var e=!{toString:null}.propertyIsEnumerable("toString"),t=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],n=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),a=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1};return r("function"!=typeof Object.keys||n?function(r){if(Object(r)!==r)return[];var s,l,u=[],c=n&&i(r);for(s in r)!o(s,r)||c&&"length"===s||(u[u.length]=s);if(e)for(l=t.length-1;l>=0;)s=t[l],o(s,r)&&!a(u,s)&&(u[u.length]=s),l-=1;return u}:function(e){return Object(e)!==e?[]:Object.keys(e)})}()},function(e,t,n){var r=n(1),o=n(32),i=n(34),a=n(13),s=n(185),l=n(5),u=n(14);e.exports=r(o(["map"],s,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return l(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return a(function(n,r){return n[r]=e(t[r]),n},{},u(t));default:return i(e,t)}}))},function(e,t){function n(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')}function r(e){var t=e.match(m);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function i(e){var n=e,i=r(e);if(i){if(!i.path)return e;n=i.path}for(var a,s=t.isAbsolute(n),l=n.split(/\/+/),u=0,c=l.length-1;c>=0;c--)a=l[c],"."===a?l.splice(c,1):".."===a?u++:u>0&&(""===a?(l.splice(c+1,u),u=0):(l.splice(c,2),u--));return n=l.join("/"),""===n&&(n=s?"/":"."),i?(i.path=n,o(i)):n}function a(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),a=r(e);if(a&&(e=a.path||"/"),n&&!n.scheme)return a&&(n.scheme=a.scheme),o(n);if(n||t.match(b))return t;if(a&&!a.host&&!a.path)return a.host=t,o(a);var s="/"===t.charAt(0)?t:i(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=s,o(a)):s}function s(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)}function l(e){return e}function u(e){return p(e)?"$"+e:e}function c(e){return p(e)?e.slice(1):e}function p(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function h(e,t,n){var r=e.source-t.source;return 0!==r?r:0!==(r=e.originalLine-t.originalLine)?r:0!==(r=e.originalColumn-t.originalColumn)||n?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:(r=e.generatedLine-t.generatedLine,0!==r?r:e.name-t.name)}function d(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)||n?r:0!==(r=e.source-t.source)?r:0!==(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,0!==r?r:e.name-t.name)}function f(e,t){return e===t?0:e>t?1:-1}function g(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=f(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:f(e.name,t.name))}t.getArg=n;var m=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,b=/^data:.+\,.+$/;t.urlParse=r,t.urlGenerate=o,t.normalize=i,t.join=a,t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(m)},t.relative=s;var y=function(){return!("__proto__"in Object.create(null))}();t.toSetString=y?l:u,t.fromSetString=y?l:c,t.compareByOriginalPositions=h,t.compareByGeneratedPositionsDeflated=d,t.compareByGeneratedPositionsInflated=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.isAdd=t.isMult=t.isFunctionCalcConcerned=t.isFunctionCalc=t.isNodeOperator=t.isNodeDimension=t.isNodePercentage=t.isNodeNumber=t.isNodeFunction=t.isHTMLElement=void 0;var o=n(159),i=r(o),a=n(48),s=r(a),l=n(9),u=r(l),c=n(7),p=r(c),h=n(4),d=r(h),f=n(57),g=r(f),m=n(157),b=r(m),y=(t.isHTMLElement=(0,b.default)(function(){return"undefined"!=typeof window&&"undefined"!=typeof document},function(e){return(0,g.default)(HTMLElement,e)}),t.isNodeFunction=(0,d.default)((0,p.default)("Function"),(0,u.default)("","type"))),v=t.isNodeNumber=(0,d.default)((0,p.default)("Number"),(0,u.default)("","type")),k=t.isNodePercentage=(0,d.default)((0,p.default)("Percentage"),(0,u.default)("","type")),x=t.isNodeDimension=(0,d.default)((0,p.default)("Dimension"),(0,u.default)("","type")),w=t.isNodeOperator=(0,d.default)((0,p.default)("Operator"),(0,u.default)("","type"));t.isFunctionCalc=(0,b.default)(y,(0,d.default)((0,p.default)("calc"),(0,u.default)("","name"))),t.isFunctionCalcConcerned=(0,s.default)([v,k,x,w]),t.isMult=(0,d.default)((0,i.default)((0,p.default)("/"),(0,p.default)("*")),(0,u.default)("","value")),t.isAdd=(0,d.default)((0,i.default)((0,p.default)("+"),(0,p.default)("-")),(0,u.default)("","value"))},function(e,t,n){"use strict";function r(e,t){return e.charCodeAt(t)===c&&e.charCodeAt(t+1)===c}function o(e,t){if(e.charCodeAt(t)===c){var n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}function i(e){if(s.call(l,e))return l[e];var t=e.toLowerCase();if(s.call(l,t))return l[e]=l[t];var n=r(t,0)?"":o(t,0);return l[e]=Object.freeze({vendor:n,prefix:n,name:t.substr(n.length)})}function a(e){if(s.call(u,e))return u[e];var t=e,n=e[0];"/"===n&&"/"===e[1]?n="//":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&(n="");var i=r(t,n.length);if(!i&&(t=t.toLowerCase(),s.call(u,t)))return u[e]=u[t];var a=i?"":o(t,n.length);return u[e]=Object.freeze({hack:n,vendor:a,prefix:n+a,name:t.substr(n.length+a.length),variable:i})}var s=Object.prototype.hasOwnProperty,l=Object.create(null),u=Object.create(null),c=45;e.exports={keyword:i,property:a}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},function(e,t){e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return t>e?t:e})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),i=r(o),a=n(31),s=r(a),l=n(52),u=r(l),c=n(4),p=r(c),h=n(7),d=r(h),f=n(28),g=r(f),m=n(187),b=r(m),y=n(202),v=r(y),k=n(36),x=r(k),w=n(70),S=r(w),C=n(23),A=n(24),T=function(e,t,n,r){var o=(0,S.default)(e),i=(0,C.getCanonical)(t);(0,x.default)(i)&&(0,A.throwUnknownUnit)(t);var a=(0,v.default)(b.default,(0,g.default)(String(i)))(n),l=(0,C.getCanonical)(a);return(0,x.default)(l)&&(0,A.throwUnknownUnit)(a),(0,d.default)(i,l)||(0,A.throwIncompatibleUnits)(a,t),(0,p.default)((0,C.getConverter)(t)(o,u.default),(0,C.getConverter)(a)(o,(0,s.default)(1)))(r)};t.default=(0,i.default)(4,T)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getOperator=t.getConverter=t.getCanonical=t.makeGlobalConv=t.makeGetCanonical=t.getUnitString=t.getValueNumber=void 0;var o=n(191),i=r(o),a=n(31),s=r(a),l=n(199),u=r(l),c=n(154),p=r(c),h=n(7),d=r(h),f=n(29),g=r(f),m=n(28),b=r(m),y=n(36),v=r(y),k=n(53),x=r(k),w=n(194),S=r(w),C=n(14),A=r(C),T=n(50),_=r(T),P=n(162),E=r(P),L=n(4),z=r(L),O=n(9),M=r(O),N=n(17),j=n(71),R=r(j),D=function(e){return(0,N.isNodePercentage)(e)?"%":(0,M.default)("","unit",e)},I=(t.getValueNumber=(0,z.default)(Number,(0,M.default)("","value")),t.getUnitString=(0,z.default)(String,D),t.makeGetCanonical=function(e){return function(t){return(0,E.default)(function(n){return(0,_.default)(t,(0,M.default)({},n,e))},(0,A.default)(e))}}),U=function(e,t){return function(n){return(0,S.default)(R.default.px.px,[n,t],e)}},B=t.makeGlobalConv=function(e){return function(t){return(0,x.default)(v.default,(0,b.default)(R.default.px.px),U(e,t))(I(e)(t))}};t.getCanonical=I(R.default),t.getConverter=B(R.default),t.getOperator=(0,g.default)([[(0,d.default)("+"),(0,b.default)(p.default)],[(0,d.default)("-"),(0,b.default)(u.default)],[(0,d.default)("/"),(0,b.default)(s.default)],[(0,d.default)("*"),(0,b.default)(i.default)]])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.throwUnspecifiedProp=function(e){return function(){throw new Error("Unspecified property: no `"+e+"` property found in the provided node config.")}},t.throwUnknownUnit=function(e){throw new Error("Unknown unit: `"+e+"` is not handled.")},t.throwIncompatibleUnits=function(e,t){throw new Error("Incompatible units: `"+e+"` cannot be converted to `"+t+"`.")},t.throwInvalidCalcMult=function(){throw new Error("Invalid calc expression: at least one side of a multiplication should be a number.")},t.throwInvalidCalcDivLeft=function(){throw new Error("Invalid calc expression: the left side of a division should be a dimension or a number.")},t.throwInvalidCalcDivRight=function(){throw new Error("Invalid calc expression: the right side of a division should be a number.")},t.throwInvalidCalcDiv0=function(){throw new Error("Invalid calc expression: division by 0.")},t.throwInvalidCalcUnknownUnit=function(e){throw new Error("Invalid calc expression: Unknown unit: `"+e+"` is not handled.")},t.throwInvalidCalcIncompatibleUnits=function(e,t){throw new Error("Invalid calc expression: Incompatible units: calc operation between `"+e+"` and `"+t+"` cannot be performed.")}},function(e,t,n){"use strict";function r(e){for(var t=e.head,n=[];null!==t;)n.push(this.generate(t.data,t,e)),t=t.next;return n}function o(e){for(var t=e.head,n=[];null!==t;)t.prev?n.push(",",this.generate(t.data)):n.push(this.generate(t.data)),t=t.next;return n}function i(e){var t={generate:function(t,n,r){if(s.call(e,t.type)){var o=e[t.type].call(this,t,n,r);return"string"==typeof o?o:o.join("")}throw new Error("Unknown node type: "+t.type)},each:r,eachComma:o};return function(e){return t.generate(e)}}function a(e){var t={generate:function(t,n,r){if(s.call(e,t.type))return{node:t,value:e[t.type].call(this,t,n,r)};throw new Error("Unknown node type: "+t.type)},each:r,eachComma:o};return function(e,n,r){function o(e,t){var i=e.value;if(n(e.node,t,i),"string"==typeof i)t+=i;else for(var a=0;a<i.length;a++)"string"==typeof i[a]?t+=i[a]:t=o(i[a],t);return r(e.node,t,i),t}return"function"!=typeof n&&(n=function(){}),"function"!=typeof r&&(r=function(){}),o(t.generate(e),"")}}var s=Object.prototype.hasOwnProperty;e.exports={createGenerator:i,createMarkupGenerator:a,sourceMap:n(75)}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)e[r].syntax&&(n[r]=t?e[r].syntax:d(e[r].syntax));return n}function o(e){return e&&e.data}function i(e){var t=!1;return this.syntax.walk(e,function(e){"Function"===e.type&&"var"===e.name.toLowerCase()&&(t=!0)}),t}function a(e){return"Identifier"===e.type&&/^\\[09]/.test(e.name)}function s(e){for(;null!==e;){if("WhiteSpace"!==e.data.type&&"Comment"!==e.data.type&&!a(e.data))return!1;e=e.next}return!0}function l(e,t,n){var r;return n&&"Value"===n.type?i.call(e,n)?{type:"NoMatch",comment:"Due to matching for value with var() is very complex those values are always valid for now"}:(r=g(e,e.valueCommonSyntax,n.children.head),r.match||(r=t.match(n.children.head))&&r.match?r.next&&!s(r.next)?(e.lastMatchError=new u("Uncomplete match",e,t.syntax,n,r.badNode||o(r.next)),null):(e.lastMatchError=null,r.match):(e.lastMatchError=new u("Mismatch",e,t.syntax,n,r.badNode||o(r.next)),null)):{type:"NoMatch",comment:"Not a Value node"}}var u=n(77).MatchError,c=n(18),p=n(78),h=n(39),d=n(27),f=n(40),g=n(82),m=h("inherit | initial | unset"),b=h("inherit | initial | unset | <expression>"),y=function(e,t,n){if(this.valueCommonSyntax=m,this.syntax=t,this.generic=!1,this.properties={},this.types={},this.structure=n,e){if(e.generic){this.generic=!0;for(var r in p)this.addType_(r,p[r])}if(e.types)for(var r in e.types)this.addType_(r,e.types[r]);if(e.properties)for(var r in e.properties)this.addProperty_(r,e.properties[r])}};y.prototype={structure:{},checkStructure:function(e){var t=this.structure,n=[];return this.syntax.walk(e,function(e){if(!t.hasOwnProperty(e.type))throw new Error("Unknown node type: "+e.type);t[e.type].check(e,n.push.bind(n))}),!!n.length&&n},createDescriptor:function(e){var t=this,n={syntax:null,match:null};return"function"==typeof e?n.match=function(t){return t&&e(t)?{badNode:null,lastNode:null,next:t.next,match:[t.data]}:null}:("string"==typeof e?Object.defineProperty(n,"syntax",{get:function(){return Object.defineProperty(n,"syntax",{value:h(e)}),n.syntax}}):n.syntax=e,n.match=function(e){return g(t,n.syntax,e)}),n},addProperty_:function(e,t){this.properties[e]=this.createDescriptor(t)},addType_:function(e,t){this.types[e]=this.createDescriptor(t),t===p.expression&&(this.valueCommonSyntax=b)},lastMatchError:null,matchProperty:function(e,t){var n=c.property(e);if(n.variable)return{type:"NoMatch",comment:"Lexer matching doesn't applicable for custom properties"};var r=n.vendor?this.getProperty(n.vendor+n.name)||this.getProperty(n.name):this.getProperty(n.name);return r?l(this,r,t):(this.lastMatchError=new Error("Unknown property: "+e),null)},matchType:function(e,t){var n=this.getType(e);return n?l(this,n,t):(this.lastMatchError=new Error("Unknown type: "+e),null)},getProperty:function(e){return this.properties.hasOwnProperty(e)?this.properties[e]:null},getType:function(e){return this.types.hasOwnProperty(e)?this.types[e]:null},validate:function(){function e(r,o,i,a){if(i.hasOwnProperty(o))return i[o];i[o]=!1,null!==a.syntax&&f(a.syntax,function(a){if("Type"===a.type||"Property"===a.type){var s="Type"===a.type?r.types:r.properties,l="Type"===a.type?t:n;s.hasOwnProperty(a.name)&&!e(r,a.name,l,s[a.name])||(i[o]=!0)}},this)}var t={},n={};for(var r in this.types)e(this,r,t,this.types[r]);for(var r in this.properties)e(this,r,n,this.properties[r]);return t=Object.keys(t).filter(function(e){return t[e]}),n=Object.keys(n).filter(function(e){return n[e]}),t.length||n.length?{types:t,properties:n}:null},dump:function(e){return{generic:this.generic,types:r(this.types,e),properties:r(this.properties,e)}},toString:function(){return JSON.stringify(this.dump())}},e.exports=y},function(e,t,n){"use strict";function r(e){if(e)for(var t=1;t<arguments.length;t++)if(e.type===arguments[t])return!0;return!1}function o(e){return 0===e.min&&1===e.max?"?":1===e.min&&1===e.max?"":0===e.min&&0===e.max?"*":1===e.min&&0===e.max?e.comma?"#":"+":(e.comma?"#":"")+"{"+e.min+(e.min!==e.max?","+(0!==e.max?e.max:""):"")+"}"}function i(e,t){var n="";return("Group"===e.type||t)&&(n+="["+(r(e.terms[0],"Comma")?"":" ")),n+=e.terms.map(function(e){return s(e,t)}).join(" "===e.combinator?" ":" "+e.combinator+" "),("Group"===e.type||t)&&(n+=" ]"),n}function a(e,t){return e.terms.length?"( "+i(e,t)+" )":"()"}function s(e,t){if(Array.isArray(e))return e.map(function(e){return s(e,t)}).join("");switch(e.type){case"Sequence":return i(e,t);case"Group":return i(e,t)+(e.nonEmpty?"!":"")+o(e.multiplier);case"Keyword":return e.name+o(e.multiplier);case"Function":return e.name+a(e.sequence,t)+o(e.multiplier);case"Parentheses":return a(e.sequence,t);case"Type":return"<"+e.name+">"+o(e.multiplier);case"Property":return"<'"+e.name+"'>"+o(e.multiplier);case"Combinator":case"Slash":case"Percent":case"String":case"Comma":return e.value;default:throw new Error("Unknown type: "+e.type)}}e.exports=s},function(e,t,n){var r=n(3);e.exports=r(function(e){return function(){return e}})},function(e,t,n){var r=n(10),o=n(3),i=n(15),a=n(21),s=n(6);e.exports=o(function(e){var t=s(a,0,i(function(e){return e[0].length},e));return r(t,function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}})})},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return null==t||t!==t?e:t})},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return e/t})},function(e,t,n){var r=n(12),o=n(175);e.exports=function(e,t,n){return function(){if(0===arguments.length)return n();var i=Array.prototype.slice.call(arguments,0),a=i.pop();if(!r(a)){for(var s=0;s<e.length;){if("function"==typeof a[e[s]])return a[e[s]].apply(a,i);s+=1}if(o(a)){return t.apply(null,i)(a)}}return n.apply(this,arguments)}}},function(e,t){e.exports=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,o=Array(r);n<r;)o[n]=e(t[n]),n+=1;return o}},function(e,t){e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},function(e,t,n){var r=n(3);e.exports=r(function(e){return null==e})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(158),i=r(o),a=n(6),s=r(a),l=n(61),u=r(l),c=n(4),p=r(c),h=n(57),d=r(h),f=n(29),g=r(f),m=n(9),b=r(m),y=n(76),v=function(e){return(0,b.default)([],"children",(0,y.toPlainObject)((0,y.parse)(e,{context:"value"})))},k=(0,g.default)([[(0,d.default)(String),(0,p.default)(u.default,v)],[(0,d.default)(Number),(0,p.default)(u.default,v,String)],[(0,d.default)(Array),(0,s.default)(function(e,t){return(0,i.default)(e,k(t))},[])]]);t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return function(t,n){return function(r){return n(e(t))*r}}};t.default=r},function(e,t,n){"use strict";function r(e){for(var t=e.pos+1;t<e.str.length;t++){var n=e.str.charCodeAt(t);if(n!==w&&n!==k&&n!==x&&n!==S&&n!==v)break}return e.substringToPos(t)}function o(e){for(var t=e.pos;t<e.str.length;t++){var n=e.str.charCodeAt(t);if(n>=128||0===$[n])break}return e.pos===t&&m(e,e.pos,"Expect a keyword"),e.substringToPos(t)}function i(e){for(var t=e.pos;t<e.str.length;t++){var n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&m(e,e.pos,"Expect a number"),e.substringToPos(t)}function a(e){var t=e.str.indexOf("'",e.pos+1);return-1===t&&m(e,e.str.length,"Expect a quote"),e.substringToPos(t+1)}function s(e,t){var n=null,r=null;return e.eat(B),n=i(e),e.charCode()===M?(e.pos++,e.charCode()!==q&&(r=i(e))):r=n,e.eat(q),{comma:t,min:Number(n),max:r?Number(r):0}}function l(e){switch(e.charCode()){case z:return e.pos++,H;case O:return e.pos++,V;case D:return e.pos++,Q;case A:return e.pos++,e.charCode()!==B?G:s(e,!0);case B:return s(e,!1)}return Y}function u(e){var t;return e.eat(j),e.eat(P),t=o(e),e.eat(P),e.eat(R),{type:"Property",name:t,multiplier:l(e)}}function c(e){var t;return e.eat(j),t=o(e),e.charCode()===E&&e.nextCharCode()===L&&(e.pos+=2,t+="()"),e.eat(R),{type:"Type",name:t,multiplier:l(e)}}function p(e){var t,n=null;return t=o(e),e.charCode()===E?(e.pos++,n=d(e),e.eat(L),{type:"Function",name:t,sequence:n,multiplier:l(e)}):{type:"Keyword",name:t,multiplier:l(e)}}function h(e,t){function n(e,t){return{type:"Sequence",terms:e,combinator:t}}for(t=Object.keys(t).sort(function(e,t){return W[e]-W[t]});t.length>0;){for(var r=t.shift(),o=0,i=0;o<e.length;o++){var a=e[o];"Combinator"===a.type&&(a.value===r?(-1===i&&(i=o-1),e.splice(o,1),o--):(-1!==i&&o-i>1&&(e.splice(i,o-i,n(e.slice(i,o),r)),o=i+1),i=-1))}-1!==i&&t.length&&e.splice(i,o-i,n(e.slice(i,o),r))}return r}function d(e){for(var t,n=[],r={},o=null,i=e.pos;t=g(e);)"Spaces"!==t.type&&("Combinator"===t.type?(null!==o&&"Combinator"!==o.type||m(e,i,"Unexpected combinator"),r[t.value]=!0):null!==o&&"Combinator"!==o.type&&(r[" "]=!0,n.push({type:"Combinator",value:" "})),n.push(t),o=t,i=e.pos);return null!==o&&"Combinator"===o.type&&m(e,e.pos-i,"Unexpected combinator"),{type:"Sequence",terms:n,combinator:h(n,r)||" "}}function f(e){var t,n,r=!1;return e.eat(I),t=d(e),e.eat(U),n=l(e),e.charCode()===C&&(e.pos++,r=!0),{type:"Group",terms:t.terms,combinator:t.combinator,nonEmpty:r,multiplier:n}}function g(e){var t=e.charCode();if(t<128&&1===$[t])return p(e);switch(t){case I:return f(e);case j:return e.nextCharCode()===P?u(e):c(e);case F:return{type:"Combinator",value:e.substringToPos(e.nextCharCode()===F?e.pos+2:e.pos+1)};case _:return e.pos++,e.eat(_),{type:"Combinator",value:"&&"};case M:return e.pos++,{type:"Comma",value:","};case N:return e.pos++,{type:"Slash",value:"/"};case T:return e.pos++,{type:"Percent",value:"%"};case E:e.pos++;var n=d(e);return e.eat(L),{type:"Parentheses",sequence:n};case P:return{type:"String",value:a(e)};case S:case v:case k:case w:case x:return{type:"Spaces",value:r(e)}}}function m(e,t,n){throw new y(n||"Unexpected input",e.str,t)}function b(e){var t=new X(e),n=d(t);return t.pos!==e.length&&m(t,t.pos),n}var y=n(79).SyntaxParseError,v=9,k=10,x=12,w=13,S=32,C=33,A=35,T=37,_=38,P=39,E=40,L=41,z=42,O=43,M=44,N=47,j=60,R=62,D=63,I=91,U=93,B=123,F=124,q=125,W={" ":1,"&&":2,"||":3,"|":4},Y={comma:!1,min:1,max:1},H={comma:!1,min:0,max:0},V={comma:!1,min:1,max:0},G={comma:!0,min:1,max:0},Q={comma:!1,min:0,max:1},$=function(){for(var e="function"==typeof Uint32Array?new Uint32Array(128):new Array(128),t=0;t<128;t++)e[t]=/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0;return e}(),X=function(e){this.str=e,this.pos=0};X.prototype={charCode:function(){return this.pos<this.str.length?this.str.charCodeAt(this.pos):0},nextCharCode:function(){return this.pos+1<this.str.length?this.str.charCodeAt(this.pos+1):0},substringToPos:function(e){return this.str.substring(this.pos,this.pos=e)},eat:function(e){this.charCode()!==e&&m(this,this.pos,"Expect `"+String.fromCharCode(e)+"`"),this.pos++}},b("[a&&<b>#|<'c'>*||e(){2,} f{2} /,(% g#{1,2})]!"),e.exports=b},function(e,t,n){"use strict";e.exports=function e(t,n,r){switch(t.type){case"Sequence":case"Group":t.terms.forEach(function(t){e(t,n,r)});break;case"Function":case"Parentheses":e(t.sequence,n,r);break;case"Keyword":case"Type":case"Property":case"Combinator":case"Comma":case"Slash":case"String":case"Percent":break;default:throw new Error("Unknown type: "+t.type)}n.call(r,t)}},function(e,t,n){var r=n(2);e.exports=function(){this.scanner.skipSC();var e=this.IdSelector();return this.scanner.skipSC(),(new r).appendData(e)}},function(e,t,n){var r=n(2);e.exports={parse:function(){return(new r).appendData(this.Nth(!1))}}},function(e,t,n){var r=n(2);e.exports={parse:function(){return(new r).appendData(this.Nth(!0))}}},function(e,t,n){var r=n(2);e.exports={parse:function(){return(new r).appendData(this.SelectorList())}}},function(e,t,n){var r=n(0).cmpChar,o=n(0).TYPE,i=o.Identifier,a=o.String,s=o.Number,l=o.NumberSign,u=o.LeftParenthesis,c=o.LeftSquareBracket,p=o.PlusSign,h=o.HyphenMinus,d=o.Comma,f=o.Solidus,g=o.Asterisk,m=o.PercentSign,b=o.Backslash;e.exports=function(e){switch(this.scanner.tokenType){case l:return this.HexColor();case d:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case f:case g:case p:case h:return this.Operator();case u:return this.Parentheses(this.readSequence,e.recognizer);case c:return this.Brackets(this.readSequence,e.recognizer);case a:return this.String();case s:switch(this.scanner.lookupType(1)){case m:return this.Percentage();case i:return r(this.scanner.source,this.scanner.tokenEnd,b)?this.Number():this.Dimension();default:return this.Number()}case i:return r(this.scanner.source,this.scanner.tokenStart,117)&&r(this.scanner.source,this.scanner.tokenStart+1,p)?this.UnicodeRange():this.scanner.lookupType(1)===u?this.scanner.lookupValue(0,"url")?this.Url():this.Function(this.readSequence,e.recognizer):this.Identifier()}}},function(e,t,n){"use strict";for(var r={Whitespace:1,Identifier:2,Number:3,String:4,Comment:5,Punctuator:6,CDO:7,CDC:8,ExclamationMark:33,QuotationMark:34,NumberSign:35,DollarSign:36,PercentSign:37,Ampersand:38,Apostrophe:39,LeftParenthesis:40,RightParenthesis:41,Asterisk:42,PlusSign:43,Comma:44,HyphenMinus:45,FullStop:46,Solidus:47,Colon:58,Semicolon:59,LessThanSign:60,EqualsSign:61,GreaterThanSign:62,QuestionMark:63,CommercialAt:64,LeftSquareBracket:91,Backslash:92,RightSquareBracket:93,CircumflexAccent:94,LowLine:95,GraveAccent:96,LeftCurlyBracket:123,VerticalLine:124,RightCurlyBracket:125,Tilde:126},o=Object.keys(r).reduce(function(e,t){return e[r[t]]=t,e},{}),i="undefined"!=typeof Uint32Array?Uint32Array:Array,a=new i(Math.max.apply(null,Object.keys(o).map(Number))+1),s=new i(a.length),l=0;l<a.length;l++)a[l]=2;[r.ExclamationMark,r.QuotationMark,r.NumberSign,r.DollarSign,r.PercentSign,r.Ampersand,r.Apostrophe,r.LeftParenthesis,r.RightParenthesis,r.Asterisk,r.PlusSign,r.Comma,r.HyphenMinus,r.FullStop,r.Solidus,r.Colon,r.Semicolon,r.LessThanSign,r.EqualsSign,r.GreaterThanSign,r.QuestionMark,r.CommercialAt,r.LeftSquareBracket,r.RightSquareBracket,r.CircumflexAccent,r.GraveAccent,r.LeftCurlyBracket,r.VerticalLine,r.RightCurlyBracket,r.Tilde].forEach(function(e){a[Number(e)]=6,s[Number(e)]=6},a);for(var l=48;l<=57;l++)a[l]=3;a[32]=1,a[9]=1,a[10]=1,a[13]=1,a[12]=1,a[r.Apostrophe]=4,a[r.QuotationMark]=4,s[32]=6,s[9]=6,s[10]=6,s[13]=6,s[12]=6,s[r.HyphenMinus]=0,e.exports={TYPE:r,NAME:o,SYMBOL_TYPE:a,PUNCTUATION:s}},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return e&&t})},function(e,t,n){var r=n(3),o=n(5),i=n(21),a=n(62),s=n(6);e.exports=r(function(e){return o(s(i,0,a("length",e)),function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})})},function(e,t,n){var r=n(1),o=n(34),i=n(5),a=n(21),s=n(62),l=n(6);e.exports=r(function(e,t){return i(l(a,0,s("length",t)),function(){var n=arguments,r=this;return e.apply(r,o(function(e){return e.apply(r,n)},t))})})},function(e,t,n){var r=n(1),o=n(11);e.exports=r(o)},function(e,t,n){var r=n(60);e.exports=r(0)},function(e,t,n){var r=n(3),o=n(173);e.exports=r(o)},function(e,t,n){var r=n(8),o=n(5);e.exports=r(function(e,t,n){return o(Math.max(e.length,t.length,n.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)})})},function(e,t,n){var r=n(12);e.exports=function(e,t){return function(){var n=arguments.length;if(0===n)return t();var o=arguments[n-1];return r(o)||"function"!=typeof o[e]?t.apply(this,arguments):o[e].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}},function(e,t,n){var r=n(11);e.exports=function(){var e=Object.prototype.toString;return"[object Arguments]"===e.call(arguments)?function(t){return"[object Arguments]"===e.call(t)}:function(e){return r("callee",e)}}()},function(e,t){e.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return null!=t&&t.constructor===e||t instanceof e})},function(e,t,n){var r=n(3),o=n(12),i=n(20);e.exports=r(function(e){return!!o(e)||!!e&&("object"==typeof e&&(!i(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})},function(e,t,n){var r=n(3),o=n(189);e.exports=r(function(e){return o(e.length,e)})},function(e,t,n){var r=n(1),o=n(20);e.exports=r(function(e,t){var n=e<0?t.length+e:e;return o(t)?t.charAt(n):t[n]})},function(e,t,n){var r=n(3),o=n(177);e.exports=r(o)},function(e,t,n){var r=n(1),o=n(15),i=n(63);e.exports=r(function(e,t){return o(i(e),t)})},function(e,t,n){var r=n(1);e.exports=r(function(e,t){return t[e]})},function(e,t,n){var r=n(54),o=n(3),i=n(198);e.exports=o(r("tail",i(1,1/0)))},function(e,t,n){function r(){this._array=[],this._set=Object.create(null)}var o=n(16),i=Object.prototype.hasOwnProperty;r.fromArray=function(e,t){for(var n=new r,o=0,i=e.length;o<i;o++)n.add(e[o],t);return n},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(e,t){var n=o.toSetString(e),r=i.call(this._set,n),a=this._array.length;r&&!t||this._array.push(e),r||(this._set[n]=a)},r.prototype.has=function(e){var t=o.toSetString(e);return i.call(this._set,t)},r.prototype.indexOf=function(e){var t=o.toSetString(e);if(i.call(this._set,t))return this._set[t];throw new Error('"'+e+'" is not in the set.')},r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},r.prototype.toArray=function(){return this._array.slice()},t.ArraySet=r},function(e,t,n){function r(e){return e<0?1+(-e<<1):0+(e<<1)}function o(e){var t=1==(1&e),n=e>>1;return t?-n:n}var i=n(203);t.encode=function(e){var t,n="",o=r(e);do{t=31&o,o>>>=5,o>0&&(t|=32),n+=i.encode(t)}while(o>0);return n},t.decode=function(e,t,n){var r,a,s=e.length,l=0,u=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=i.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&a),a&=31,l+=a<<u,u+=5}while(r);n.value=o(l),n.rest=t}},function(e,t,n){function r(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new s,this._sourcesContents=null}var o=n(66),i=n(16),a=n(65).ArraySet,s=n(205).MappingList;r.prototype._version=3,r.fromSourceMap=function(e){var t=e.sourceRoot,n=new r({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=i.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)}),e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&n.setSourceContent(t,r)}),n},r.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),n=i.getArg(e,"original",null),r=i.getArg(e,"source",null),o=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,o),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:o})},r.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var o=this._sourceRoot;null!=o&&(r=i.relative(o,r));var s=new a,l=new a;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=n&&(t.source=i.join(n,t.source)),null!=o&&(t.source=i.relative(o,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var u=t.source;null==u||s.has(u)||s.add(u);var c=t.name;null==c||l.has(c)||l.add(c)},this),this._sources=s,this._names=l,e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=i.join(n,t)),null!=o&&(t=i.relative(o,t)),this.setSourceContent(t,r))},this)},r.prototype._validateMapping=function(e,t,n,r){if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},r.prototype._serializeMappings=function(){for(var e,t,n,r,a=0,s=1,l=0,u=0,c=0,p=0,h="",d=this._mappings.toArray(),f=0,g=d.length;f<g;f++){if(t=d[f],e="",t.generatedLine!==s)for(a=0;t.generatedLine!==s;)e+=";",s++;else if(f>0){if(!i.compareByGeneratedPositionsInflated(t,d[f-1]))continue;e+=","}e+=o.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=o.encode(r-p),p=r,e+=o.encode(t.originalLine-1-u),u=t.originalLine-1,e+=o.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=o.encode(n-c),c=n)),h+=e}return h},r.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},r.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=r},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),a=o(i),s=n(15),l=o(s),u=n(48),c=o(u),p=n(9),h=o(p),d=n(6),f=o(d),g=n(17),m=r(g),b=n(23),y=r(b),v=n(37),k=o(v),x=n(69),w=o(x),S=n(22),C=o(S),A=function(e,t){return function(n){return(0,f.default)(function(n,r){if(m.isFunctionCalc(r)){var o=(0,w.default)(e,t)((0,h.default)([],"children",r)),i=y.getUnitString(o),a=y.getValueNumber(o);n.push(Number((0,C.default)(e,t,i,a)))}if((0,c.default)([m.isNodeDimension,m.isNodeNumber,m.isNodePercentage])(r)){var s=y.getUnitString(r),l=y.getValueNumber(r);n.push(Number((0,C.default)(e,t,s,l)))}return n},[],n)}},T=function(e,t,n){return(0,l.default)(A(e,t),(0,k.default)(n))};t.default=(0,a.default)(3,T)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(29),a=o(i),s=n(49),l=o(s),u=n(6),c=o(u),p=n(47),h=o(p),d=n(7),f=o(d),g=n(36),m=o(g),b=n(9),y=o(b),v=n(188),k=o(v),x=n(30),w=o(x),S=n(64),C=o(S),A=n(51),T=o(A),_=n(61),P=o(_),E=n(4),L=o(E),z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O=n(17),M=r(O),N=n(23),j=r(N),R=n(24),D=r(R),I=n(22),U=o(I),B=(0,L.default)(P.default,T.default),F=function(e){return function(t,n){return function(r){return(0,C.default)(r).reduce(function(r,o,i,a){var s=(0,w.default)({},(0,k.default)(r)),l=a[i+1];if(M.isNodeOperator(o)){var u=(0,y.default)("","value",o),c=j.getOperator(u);"*"===u&&(M.isNodeNumber(s)||M.isNodeNumber(l)||D.throwInvalidCalcMult()),"/"===u&&(M.isNodeDimension(s)||M.isNodeNumber(s)||D.throwInvalidCalcDivLeft(),M.isNodeNumber(l)||D.throwInvalidCalcDivRight(),0===j.getValueNumber(l)&&D.throwInvalidCalcDiv0());var p=j.getUnitString(s),d=j.getUnitString(l),g=j.getCanonical(p),b=j.getCanonical(d);if(!M.isNodeNumber(s)&&(0,m.default)(g)&&D.throwInvalidCalcUnknownUnit(p),!M.isNodeNumber(l)&&(0,m.default)(b)&&D.throwInvalidCalcUnknownUnit(d),M.isNodeNumber(s)||M.isNodeNumber(l)||(0,f.default)(g,b)||D.throwInvalidCalcIncompatibleUnits(p,d),e(o)){var v=V(t,n),x=v(s),S=v(l),C=String(c(x,S)),A=(0,h.default)(M.isNodeNumber(s),M.isNodeNumber(l))?"Number":"Dimension";r[r.length-1]=z({type:A,value:C},"Dimension"===A?{unit:n}:{})}else r.push(o,l)}return r},B(r))}}},q=F(M.isAdd),W=F(M.isMult),Y=function(e,t){return(0,c.default)(function(n,r){return M.isFunctionCalc(r)&&n.push(G(e,t)((0,y.default)([],"children",r))),M.isFunctionCalcConcerned(r)&&n.push(r),n},[])},H=function(e,t){return(0,L.default)(Number,(0,l.default)((0,U.default)(e,t),[j.getUnitString,j.getValueNumber]))},V=function(e,t){return(0,a.default)([[M.isNodeNumber,j.getValueNumber],[M.isNodeDimension,H(e,t)]])},G=function(e,t){return(0,L.default)((0,w.default)({}),T.default,q(e,t),W(e,t),Y(e,t))};t.default=G},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r({window:"undefined"!=typeof window?window:{innerWidth:0,innerHeight:0},document:"undefined"!=typeof document?document:{lineHeight:16,fontSize:16},node:{width:0,lineHeight:16,fontSize:16},property:"width"},e)};t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(31),i=r(o),a=n(4),s=r(a),l=n(28),u=r(l),c=n(72),p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(c),h=n(38),d=r(h);t.default={px:{px:(0,d.default)((0,u.default)(1)),cm:(0,d.default)((0,u.default)(2.54/96)),mm:(0,d.default)((0,u.default)(25.4/96)),q:(0,d.default)((0,u.default)(101.6/96)),in:(0,d.default)((0,u.default)(1/96)),pc:(0,d.default)((0,u.default)(6/96)),pt:(0,d.default)((0,u.default)(.75)),rem:(0,d.default)((0,s.default)((0,i.default)(1),p.getRootFontSize)),em:(0,d.default)((0,s.default)((0,i.default)(1),p.getNodeFontSize)),rlh:(0,d.default)((0,s.default)((0,i.default)(1),p.getRootLineHeight)),lh:(0,d.default)((0,s.default)((0,i.default)(1),p.getNodeLineHeight)),"%":(0,d.default)((0,s.default)((0,i.default)(100),p.getNodeSize)),vw:(0,d.default)((0,s.default)((0,i.default)(100),p.getViewportWidth)),vh:(0,d.default)((0,s.default)((0,i.default)(100),p.getViewportHeight)),vmin:(0,d.default)((0,s.default)((0,i.default)(100),p.getViewportMin)),vmax:(0,d.default)((0,s.default)((0,i.default)(100),p.getViewportMax))},rad:{rad:(0,d.default)((0,u.default)(1)),deg:(0,d.default)((0,u.default)(180/Math.PI)),grad:(0,d.default)((0,u.default)(200/Math.PI)),turn:(0,d.default)((0,u.default)(1/(2*Math.PI)))},s:{s:(0,d.default)((0,u.default)(1)),ms:(0,d.default)((0,u.default)(1e3))},hz:{hz:(0,d.default)((0,u.default)(1)),khz:(0,d.default)((0,u.default)(.01))},dppx:{dppx:(0,d.default)((0,u.default)(1)),dpi:(0,d.default)((0,u.default)(96)),dpcm:(0,d.default)((0,u.default)(96/2.54))}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeSize=t.getNodeLineHeight=t.getNodeFontSize=t.getRootLineHeight=t.getRootFontSize=t.getViewportMax=t.getViewportMin=t.getViewportHeight=t.getViewportWidth=void 0;var o=n(21),i=r(o),a=n(190),s=r(a),l=n(49),u=r(l),c=n(63),p=r(c),h=n(163),d=r(h),f=n(51),g=r(f),m=n(30),b=r(m),y=n(52),v=r(y),k=n(9),x=r(k),w=n(50),S=r(w),C=n(53),A=r(C),T=n(4),_=r(T),P=n(17),E=n(24),L=n(37),z=r(L),O=n(38),M=(r(O),(0,_.default)((0,A.default)((0,S.default)("documentElement"),(0,x.default)({},"documentElement"),v.default),(0,x.default)({},"document"))),N=(0,_.default)((0,b.default)({}),g.default,d.default),j=(0,_.default)((0,x.default)("","value"),N),R=(0,_.default)(Number,j,z.default),D=function(e,t){return(0,_.default)(String,(0,p.default)(e),getComputedStyle)(t)},I=function(e){return function(t){return R(D(e,t))}},U=function(e){return(0,A.default)((0,S.default)(e),(0,x.default)(16,e),(0,E.throwUnspecifiedProp)(e))},B=function(e,t){return(0,A.default)(P.isHTMLElement,I(e),U(e))(t)},F=t.getViewportWidth=(0,_.default)((0,x.default)(0,"innerWidth"),(0,x.default)({},"window")),q=t.getViewportHeight=(0,_.default)((0,x.default)(0,"innerHeight"),(0,x.default)({},"window"));t.getViewportMin=(0,u.default)(s.default,[F,q]),t.getViewportMax=(0,u.default)(i.default,[F,q]),t.getRootFontSize=(0,_.default)((0,A.default)(P.isHTMLElement,I("fontSize"),(0,x.default)(16,"fontSize")),M),t.getRootLineHeight=(0,_.default)((0,A.default)(P.isHTMLElement,I("lineHeight"),(0,x.default)(16,"lineHeight")),M),t.getNodeFontSize=(0,_.default)((0,A.default)(P.isHTMLElement,I("fontSize"),(0,x.default)(16,"fontSize")),(0,x.default)({},"node")),t.getNodeLineHeight=(0,_.default)((0,A.default)(P.isHTMLElement,I("lineHeight"),(0,x.default)(16,"lineHeight")),(0,x.default)({},"node")),t.getNodeSize=(0,u.default)(B,[(0,x.default)("","property"),(0,x.default)({},"node")])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(22);Object.defineProperty(t,"convert",{enumerable:!0,get:function(){return r(o).default}});var i=n(68);Object.defineProperty(t,"converter",{enumerable:!0,get:function(){return r(i).default}})},function(e,t){e.exports={generic:!0,types:{"absolute-size":"xx-small | x-small | small | medium | large | x-large | xx-large","alpha-value":"<number> | <percentage>","angle-percentage":"<angle> | <percentage>","animateable-feature":"scroll-position | contents | <custom-ident>",attachment:"scroll | fixed | local","auto-repeat":"repeat( [ auto-fill | auto-fit ] , [ <line-names>? <fixed-size> ]+ <line-names>? )","auto-track-list":"[ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>? <auto-repeat> [ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>?","basic-shape":"<inset()> | <circle()> | <ellipse()> | <polygon()>","bg-image":"none | <image>","bg-layer":"<bg-image> || <position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box>{1,2}","bg-size":"[ <length-percentage> | auto ]{1,2} | cover