Warp/node_modules/preact/dist/preact.min.module.js

3 lines
11 KiB
JavaScript
Raw Normal View History

var n,l,t,u,i,e,o,r,f,c,s,a,h,p,v={},y=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w=Array.isArray;function m(n,l){for(var t in l)n[t]=l[t];return n}function _(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function g(l,t,u){var i,e,o,r={};for(o in t)"key"==o?i=t[o]:"ref"==o?e=t[o]:r[o]=t[o];if(arguments.length>2&&(r.children=arguments.length>3?n.call(arguments,2):u),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===r[o]&&(r[o]=l.defaultProps[o]);return b(l,r,i,e,null)}function b(n,u,i,e,o){var r={type:n,props:u,key:i,ref:e,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++t:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(r),r}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function C(n,l){if(null==l)return n.__?C(n.__,n.__i+1):null;for(var t;l<n.__k.length;l++)if(null!=(t=n.__k[l])&&null!=t.__e)return t.__e;return"function"==typeof n.type?C(n):null}function S(n){var l,t;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(t=n.__k[l])&&null!=t.__e){n.__e=n.__c.base=t.__e;break}return S(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!$.__r++||e!=l.debounceRendering)&&((e=l.debounceRendering)||o)($)}function $(){for(var n,t,u,e,o,f,c,s=1;i.length;)i.length>s&&i.sort(r),n=i.shift(),s=i.length,n.__d&&(u=void 0,e=void 0,o=(e=(t=n).__v).__e,f=[],c=[],t.__P&&((u=m({},e)).__v=e.__v+1,l.vnode&&l.vnode(u),T(t.__P,u,e,t.__n,t.__P.namespaceURI,32&e.__u?[o]:null,f,null==o?C(e):o,!!(32&e.__u),c),u.__v=e.__v,u.__.__k[u.__i]=u,O(f,u,c),e.__e=e.__=null,u.__e!=o&&S(u)));$.__r=0}function A(n,l,t,u,i,e,o,r,f,c,s){var a,h,p,d,w,m,_,g=u&&u.__k||y,b=l.length;for(f=I(t,l,g,f,b),a=0;a<b;a++)null!=(p=t.__k[a])&&(h=-1==p.__i?v:g[p.__i]||v,p.__i=a,m=T(n,p,h,i,e,o,r,f,c,s),d=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&N(h.ref,null,p),s.push(p.ref,p.__c||d,p)),null==w&&null!=d&&(w=d),(_=!!(4&p.__u))||h.__k===p.__k?f=P(p,f,n,_):"function"==typeof p.type&&void 0!==m?f=m:d&&(f=d.nextSibling),p.__u&=-7);return t.__e=w,f}function I(n,l,t,u,i){var e,o,r,f,c,s=t.length,a=s,h=0;for(n.__k=new Array(i),e=0;e<i;e++)null!=(o=l[e])&&"boolean"!=typeof o&&"function"!=typeof o?("string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?o=n.__k[e]=b(null,o,null,null,null):w(o)?o=n.__k[e]=b(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?o=n.__k[e]=b(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):n.__k[e]=o,f=e+h,o.__=n,o.__b=n.__b+1,r=null,-1!=(c=o.__i=E(o,t,f,a))&&(a--,(r=t[c])&&(r.__u|=2)),null==r||null==r.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[e]=null;if(a)for(e=0;e<s;e++)null!=(r=t[e])&&0==(2&r.__u)&&(r.__e==u&&(u=C(r)),R(r,r));return u}function P(n,l,t,u){var i,e;if("function"==typeof n.type){for(i=n.__k,e=0;i&&e<i.length;e++)i[e]&&(i[e].__=n,l=P(i[e],l,t,u));return l}n.__e!=l&&(u&&(l&&n.type&&!l.parentNode&&(l=C(n)),t.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function E(n,l,t,u){var i,e,o,r=n.key,f=n.type,c=l[t],s=null!=c&&0==(2&c.__u);if(null===c&&null==r||s&&r==c.key&&f==c.type)return t;if(u>(s?1:0))for(i=t-1,e=t+1;i>=0||e<l.length;)if(null!=(c=l[o=i>=0?i--:e++])&&0==(2&c.__u)&&r==c.key&&f==c.type)return o;return-1}function F(n,l,t){"-"==l[0]?n.setProperty(l,null==t?"":t):n[l]=null==t?"":"number"!=typeof t||d.test(l)?t:t+"px"}function H(n,l,t,u,i){var e,o;n:if("style"==l)if("string"==typeof t)n.style.cssText=t;else{if("string"==typeof u&&(n.style.cssText=u=""),u)for(l in u)t&&l in t||F(n.style,l,"");if(t)for(l in t)u&&t[l]==u[l]||F(n.style,l,t[l])}else if("o"==l[0]&&"n"==l[1])e=l!=(l=l.replace(f,"$1")),o=l.toLowerCase(),l=o in n||"onFocusOut"==l||"onFocusIn"==l?o.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+e]=t,t?u?t.t=u.t:(t.t=c,n.addEventListener(l,e?a:s,e)):n.removeEventListener(l,e?a:s,e);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&
2024-01-05 12:14:38 +00:00
//# sourceMappingURL=preact.min.module.js.map