UNPKG

fela-plugin-custom-property

Version:

Fela plugin to use custom properties

7 lines 3.18 kB
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("FelaPluginCustomProperty",[],r):"object"==typeof exports?exports.FelaPluginCustomProperty=r():t.FelaPluginCustomProperty=r()}(window,(function(){return function(t){var r={};function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)e.d(n,o,function(r){return t[r]}.bind(null,o));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=1)}([function(t,r,e){"use strict"; /*! * isobject <https://github.com/jonschlinkert/isobject> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,r,e){"use strict";e.r(r),e.d(r,"default",(function(){return l}));var n=e(0),o=e.n(n);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"==typeof t)return f(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return f(t,r)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function c(t){return t.filter((function(r,e){return t.lastIndexOf(r)===e}))}function a(t){for(var r=0,e=arguments.length<=1?0:arguments.length-1;r<e;++r){var n=r+1<1||arguments.length<=r+1?void 0:arguments[r+1];for(var o in n){var f=n[o],l=t[o];if(l&&f){if(Array.isArray(l)){t[o]=c(l.concat(f));continue}if(Array.isArray(f)){t[o]=c([l].concat(i(f)));continue}if("object"===u(f)){t[o]=a({},l,f);continue}}t[o]=f}}return t}function l(t){return function(r){return function t(r,e){for(var n in r){var u=r[n];if(e.hasOwnProperty(n)){var i=e[n](u);a(r,i),i.hasOwnProperty(n)||delete r[n]}r.hasOwnProperty(n)&&o()(u)&&(r[n]=t(u,e))}return r}(r,t)}}}])}));