Notes/static/js/lib/preact/preact.min.umd.js

3 lines
10 KiB
JavaScript
Raw Normal View History

2023-06-15 07:24:23 +02:00
!function(n){"function"==typeof define&&define.amd?define(n):n()}(function(){var n,l,u,t,i,o,r,e,f,c,s={},a=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(n,l){for(var u in l)n[u]=l[u];return n}function v(n){var l=n.parentNode;l&&l.removeChild(n)}function d(l,u,t){var i,o,r,e={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=u[r];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===e[r]&&(e[r]=l.defaultProps[r]);return p(l,e,i,o,null)}function p(n,t,i,o,r){var e={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u:r};return null==r&&null!=l.vnode&&l.vnode(e),e}function _(n){return n.children}function m(n,l,u,t,i){var o;for(o in u)"children"===o||"key"===o||o in l||b(n,o,null,u[o],t);for(o in l)i&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||b(n,o,l[o],u[o],t)}function k(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y.test(l)?u:u+"px"}function b(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||k(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||k(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t||n.addEventListener(l,o?w:g,o):n.removeEventListener(l,o?w:g,o);else if("dangerouslySetInnerHTML"!==l){if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u))}}function g(n){i=!0;try{return this.l[n.type+!1](l.event?l.event(n):n)}finally{i=!1}}function w(n){i=!0;try{return this.l[n.type+!0](l.event?l.event(n):n)}finally{i=!1}}function A(n,l){this.props=n,this.context=l}function C(n,l){if(null==l)return n.__?C(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?C(n):null}function x(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return x(n)}}function P(n){i?setTimeout(n):e(n)}function E(n){(!n.__d&&(n.__d=!0)&&o.push(n)&&!T.__r++||r!==l.debounceRendering)&&((r=l.debounceRendering)||P)(T)}function T(){var n,l,u,t,i,r,e,f;for(o.sort(function(n,l){return n.__v.__b-l.__v.__b});n=o.shift();)n.__d&&(l=o.length,t=void 0,i=void 0,e=(r=(u=n).__v).__e,(f=u.__P)&&(t=[],(i=h({},r)).__v=r.__v+1,z(f,r,i,u.__n,void 0!==f.ownerSVGElement,null!=r.__h?[e]:null,t,null==e?C(r):e,r.__h),F(t,r),r.__e!=e&&x(r)),o.length>l&&o.sort(function(n,l){return n.__v.__b-l.__v.__b}));T.__r=0}function $(n,l,u,t,i,o,r,e,f,c){var y,h,v,d,m,k,b,g=t&&t.__k||a,w=g.length;for(u.__k=[],y=0;y<l.length;y++)if(null!=(d=u.__k[y]=null==(d=l[y])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?p(null,d,null,null,d):Array.isArray(d)?p(_,{children:d},null,null,null):d.__b>0?p(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=u,d.__b=u.__b+1,null===(v=g[y])||v&&d.key==v.key&&d.type===v.type)g[y]=void 0;else for(h=0;h<w;h++){if((v=g[h])&&d.key==v.key&&d.type===v.type){g[h]=void 0;break}v=null}z(n,d,v=v||s,i,o,r,e,f,c),m=d.__e,(h=d.ref)&&v.ref!=h&&(b||(b=[]),v.ref&&b.push(v.ref,null,d),b.push(h,d.__c||m,d)),null!=m?(null==k&&(k=m),"function"==typeof d.type&&d.__k===v.__k?d.__d=f=H(d,f,n):f=I(n,d,v,g,m,f),"function"==typeof u.type&&(u.__d=f)):f&&v.__e==f&&f.parentNode!=n&&(f=C(v))}for(u.__e=k,y=w;y--;)null!=g[y]&&("function"==typeof u.type&&null!=g[y].__e&&g[y].__e==u.__d&&(u.__d=j(t).nextSibling),N(g[y],g[y]));if(b)for(y=0;y<b.length;y++)M(b[y],b[++y],b[++y])}function H(n,l,u){for(var t,i=n.__k,o=0;i&&o<i.length;o++)(t=i[o]
//# sourceMappingURL=preact.min.umd.js.map