var n,l,t,u,i,r,e,o,f,c,a,s,h,p,y,v,d,w={},_=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function b(n,l){for(var t in l)n[t]=l[t];return n}function k(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function x(l,t,u){var i,r,e,o={};for(e in t)"key"==e?i=t[e]:"ref"==e?r=t[e]:o[e]=t[e];if(arguments.length>2&&(o.children=arguments.length>3?n.call(arguments,2):u),"function"==typeof l&&null!=l.defaultProps)for(e in l.defaultProps)void 0===o[e]&&(o[e]=l.defaultProps[e]);return C(l,o,i,r,null)}function C(n,u,i,r,e){var o={type:n,props:u,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==e?++t:e,__i:-1,__u:0};return null==e&&null!=l.vnode&&l.vnode(o),o}function M(n){return n.children}function S(n,l){this.props=n,this.context=l}function $(n,l){if(null==l)return n.__?$(n.__,n.__i+1):null;for(var t;ll&&i.sort(o),n=i.shift(),l=i.length,A(n)}finally{i.length=E.__r=0}}function F(n,l,t,u,i,r,e,o,f,c,a){var s,h,p,y,v,d,m,g=u&&u.__k||_,b=l.length;for(f=H(t,l,g,f,b),s=0;s0?e=n.__k[r]=C(e.type,e.props,e.key,e.ref?e.ref:null,e.__v):n.__k[r]=e,f=r+h,e.__=n,e.__b=n.__b+1,o=null,-1!=(c=e.__i=T(e,t,f,s))&&(s--,(o=t[c])&&(o.__u|=2)),null==o||null==o.__v?(-1==c&&(i>a?h--:if?h--:h++,e.__u|=4))):n.__k[r]=null;if(s)for(r=0;r(a?1:0))for(i=t-1,r=t+1;i>=0||r=0?i--:r++])&&0==(2&c.__u)&&o==c.key&&f==c.type)return e;return-1}function j(n,l,t){"-"==l[0]?n.setProperty(l,null==t?"":t):n[l]=null==t?"":"number"!=typeof t||m.test(l)?t:t+"px"}function O(n,l,t,u,i){var r,e;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||j(n.style,l,"");if(t)for(l in t)u&&t[l]==u[l]||j(n.style,l,t[l])}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(s,"$1")),e=l.toLowerCase(),l=e in n||"onFocusOut"==l||"onFocusIn"==l?e.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=t,t?u?t[a]=u[a]:(t[a]=h,n.addEventListener(l,r?y:p,r)):n.removeEventListener(l,r?y:p,r);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&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==t?"":t;break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==t?"":t))}}function V(n){return function(t){if(this.l){var u=this.l[t.type+n];if(null==t[c])t[c]=h++;else if(t[c]0?n:g(n)?n.map(q):b({},n)}function B(t,u,i,r,e,o,f,c,a){var s,h,p,y,v,d,_,m=i.props||w,b=u.props,x=u.type;if("svg"==x?e="http://www.w3.org/2000/svg":"math"==x?e="http://www.w3.org/1998/Math/MathML":e||(e="http://www.w3.org/1999/xhtml"),null!=o)for(s=0;s2&&(f.children=arguments.length>3?n.call(arguments,2):u),C(l.type,f,i||l.key,r||l.ref,null)},createContext:function(n){function l(n){var t,u;return this.getChildContext||(t=new Set,(u={})[l.__c]=this,this.getChildContext=function(){return u},this.componentWillUnmount=function(){t=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&t.forEach(function(n){n.__e=!0,P(n)})},this.sub=function(n){t.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){t&&t.delete(n),l&&l.call(n)}}),n.children}return l.__c="__cC"+v++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l},toChildArray:function n(l,t){return t=t||[],null==l||"boolean"==typeof l||(g(l)?l.some(function(l){n(l,t)}):t.push(l)),t},options:l},typeof module<"u"?module.exports=d:self.preact=d; //# sourceMappingURL=preact.min.module.js.map