WLED/wled00/data/iro.js

8 lines
28 KiB
JavaScript
Raw Permalink Normal View History

2020-12-20 20:18:07 +01:00
/*!
* iro.js v5.3.1
* 2016-2020 James Daniel
* Licensed under MPL 2.0
* github.com/jaames/iro.js
*/
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self).iro=n()}(this,function(){"use strict";var k,s,n,i,o,m={},M=[],r=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;function j(t,n){for(var i in n)t[i]=n[i];return t}function b(t){var n=t.parentNode;n&&n.removeChild(t)}function d(t,n,i){var r,e,u,o,l=arguments;if(n=j({},n),3<arguments.length)for(i=[i],r=3;r<arguments.length;r++)i.push(l[r]);if(null!=i&&(n.children=i),null!=t&&null!=t.defaultProps)for(e in t.defaultProps)void 0===n[e]&&(n[e]=t.defaultProps[e]);return o=n.key,null!=(u=n.ref)&&delete n.ref,null!=o&&delete n.key,c(t,n,o,u)}function c(t,n,i,r){var e={type:t,props:n,key:i,ref:r,n:null,i:null,e:0,o:null,l:null,c:null,constructor:void 0};return k.vnode&&k.vnode(e),e}function I(t){return t.children}function O(t,n){this.props=t,this.context=n}function w(t,n){if(null==n)return t.i?w(t.i,t.i.n.indexOf(t)+1):null;for(var i;n<t.n.length;n++)if(null!=(i=t.n[n])&&null!=i.o)return i.o;return"function"==typeof t.type?w(t):null}function f(t){var n,i;if(null!=(t=t.i)&&null!=t.c){for(t.o=t.c.base=null,n=0;n<t.n.length;n++)if(null!=(i=t.n[n])&&null!=i.o){t.o=t.c.base=i.o;break}return f(t)}}function e(t){(!t.f&&(t.f=!0)&&1===s.push(t)||i!==k.debounceRendering)&&(i=k.debounceRendering,(k.debounceRendering||n)(u))}function u(){var t,n,i,r,e,u,o,l;for(s.sort(function(t,n){return n.p.e-t.p.e});t=s.pop();)t.f&&(r=i=void 0,u=(e=(n=t).p).o,o=n.w,l=n.u,n.u=!1,o&&(i=[],r=x(o,e,j({},e),n.k,void 0!==o.ownerSVGElement,null,i,l,null==u?w(e):u),v(i,e),r!=u&&f(e)))}function A(n,i,t,r,e,u,o,l,s){var c,f,h,a,v,d,g,p=t&&t.n||M,y=p.length;if(l==m&&(l=null!=u?u[0]:y?w(t,0):null),c=0,i.n=S(i.n,function(t){if(null!=t){if(t.i=i,t.e=i.e+1,null===(h=p[c])||h&&t.key==h.key&&t.type===h.type)p[c]=void 0;else for(f=0;f<y;f++){if((h=p[f])&&t.key==h.key&&t.type===h.type){p[f]=void 0;break}h=null}if(a=x(n,t,h=h||m,r,e,u,o,null,l,s),(f=t.ref)&&h.ref!=f&&(g=g||[]).push(f,t.c||a,t),null!=a){if(null==d&&(d=a),null!=t.l)a=t.l,t.l=null;else if(u==h||a!=l||null==a.parentNode){t:if(null==l||l.parentNode!==n)n.appendChild(a);else{for(v=l,f=0;(v=v.nextSibling)&&f<y;f+=2)if(v==a)break t;n.insertBefore(a,l)}"option"==i.type&&(n.value="")}l=a.nextSibling,"function"==typeof i.type&&(i.l=a)}}return c++,t}),i.o=d,null!=u&&"function"!=typeof i.type)for(c=u.length;c--;)null!=u[c]&&b(u[c]);for(c=y;c--;)null!=p[c]&&R(p[c],p[c]);if(g)for(c=0;c<g.length;c++)N(g[c],g[++c],g[++c])}function S(t,n,i){if(null==i&&(i=[]),null==t||"boolean"==typeof t)n&&i.push(n(null));else if(Array.isArray(t))for(var r=0;r<t.length;r++)S(t[r],n,i);else i.push(n?n(function(t){if(null==t||"boolean"==typeof t)return null;if("string"==typeof t||"number"==typeof t)return c(null,t,null,null);if(null==t.o&&null==t.c)return t;var n=c(t.type,t.props,t.key,null);return n.o=t.o,n}(t)):t);return i}function h(t,n,i){"-"===n[0]?t.setProperty(n,i):t[n]="number"==typeof i&&!1===r.test(n)?i+"px":null==i?"":i}function E(t,n,i,r,e){var u,o,l,s,c;if("key"===(n=e?"className"===n?"class":n:"class"===n?"className":n)||"children"===n);else if("style"===n)if(u=t.style,"string"==typeof i)u.cssText=i;else{if("string"==typeof r&&(u.cssText="",r=null),r)for(o in r)i&&o in i||h(u,o,"");if(i)for(l in i)r&&i[l]===r[l]||h(u,l,i[l])}else"o"===n[0]&&"n"===n[1]?(s=n!==(n=n.replace(/Capture$/,"")),n=((c=n.toLowerCase())in t?c:n).slice(2),i?(r||t.addEventListener(n,a,s),(t.t||(t.t={}))[n]=i):t.removeEventListener(n,a,s)):"list"!==n&&"tagName"!==n&&"form"!==n&&!e&&n in t?t[n]=null==i?"":i:"function"!=typeof i&&"dangerouslySetInnerHTML"!==n&&(n!==(n=n.replace(/^xlink:?/,""))?null==i||!1===i?t.removeAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase()):t.setAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase(),i):null==i||!1===i?t.removeAttribute(n):t.setAttribute(n,i))}function a(t){return this.t[t.type](k.event?k.event(t):t)}function x(t,n,i,r,e,u,o,l,s,c){var f,h,a,v,d,g,p,y,b,w,x=n.type;if(void 0!==n.constructor)return null;(f=k.e)&&f(n);try{t:if("function"==typeof x){