!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.htmPreact={})}(this,function(e){var n,t,_,o,r,u,l,i={},c=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function f(e,n){for(var t in n)e[t]=n[t];return e}function a(e){var n=e.parentNode;n&&n.removeChild(e)}function p(e,n,t){var _,o=arguments,r={};for(_ in n)"key"!==_&&"ref"!==_&&(r[_]=n[_]);if(arguments.length>3)for(t=[t],_=3;_=t.__.length&&t.__.push({}),t.__[e]}function O(e,n,t){var _=I(U++);return _.__c||(_.__c=A,_.__=[t?t(n):J(void 0,n),function(n){var t=e(_.__[0],n);_.__[0]!==t&&(_.__[0]=t,_.__c.setState({}))}]),_.__}function j(e,n){var t=I(U++);G(t.__H,n)&&(t.__=e,t.__H=n,A.__h.push(t))}function q(e,n){var t=I(U++);return G(t.__H,n)?(t.__H=n,t.__h=e,t.__=e()):t.__}function B(){F.some(function(e){if(e.__P)try{e.__H.__h.forEach($),e.__H.__h.forEach(z),e.__H.__h=[]}catch(t){return e.__H.__h=[],n.__e(t,e.__v),!0}}),F=[]}function $(e){e.t&&e.t()}function z(e){var n=e.__();"function"==typeof n&&(e.t=n)}function G(e,n){return!e||n.some(function(n,t){return n!==e[t]})}function J(e,n){return"function"==typeof n?n(e):n}n.__r=function(e){L&&L(e),U=0,(A=e.__c).__H&&(A.__H.__h.forEach($),A.__H.__h.forEach(z),A.__H.__h=[])},n.diffed=function(e){W&&W(e);var t=e.__c;if(t){var _=t.__H;_&&_.__h.length&&(1!==F.push(t)&&M===n.requestAnimationFrame||((M=n.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(_),cancelAnimationFrame(n),setTimeout(e)},_=setTimeout(t,100);"undefined"!=typeof window&&(n=requestAnimationFrame(t))})(B))}},n.__c=function(e,t){t.some(function(e){try{e.__h.forEach($),e.__h=e.__h.filter(function(e){return!e.__||z(e)})}catch(_){t.some(function(e){e.__h&&(e.__h=[])}),t=[],n.__e(_,e.__v)}}),R&&R(e,t)},n.unmount=function(e){V&&V(e);var t=e.__c;if(t){var _=t.__H;if(_)try{_.__.forEach(function(e){return e.t&&e.t()})}catch(e){n.__e(e,t.__v)}}};var K=function(e,n,t,_){var o;n[0]=0;for(var r=1;r=5&&((o||!e&&5===_)&&(u.push(_,0,o,t),_=6),e&&(u.push(_,e,0,t),_=6)),o=""},i=0;i"===n?(_=1,o=""):o=n+o[0]:r?n===r?r="":o+=n:'"'===n||"'"===n?r=n:">"===n?(l(),_=1):_&&("="===n?(_=5,t=o,o=""):"/"===n&&(_<5||">"===e[i][c+1])?(l(),3===_&&(u=u[0]),_=u,(u=u[0]).push(2,0,_),_=0):" "===n||"\t"===n||"\n"===n||"\r"===n?(l(),_=2):o+=n),3===_&&"!--"===o&&(_=4,u=u[0])}return l(),u}(e)),n),arguments,[])).length>1?n:n[0]}.bind(p);e.h=p,e.html=X,e.render=function(e,t,_){var o,r,l;n.__&&n.__(e,t),r=(o=_===u)?null:_&&_.__k||t.__k,e=p(d,null,[e]),l=[],S(t,(o?t:_||t).__k=e,r||i,i,void 0!==t.ownerSVGElement,_&&!o?[_]:r?null:c.slice.call(t.childNodes),l,_||i,o),E(l,e)},e.Component=v,e.createContext=function(e){var n={},t={__c:"__cC"+l++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var _,o=this;return this.getChildContext||(_=[],this.getChildContext=function(){return n[t.__c]=o,n},this.shouldComponentUpdate=function(e){o.props.value!==e.value&&_.some(function(n){n.context=e.value,g(n)})},this.sub=function(e){_.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){_.splice(_.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Consumer.contextType=t,t},e.useState=function(e){return O(J,e)},e.useReducer=O,e.useEffect=function(e,n){var t=I(U++);G(t.__H,n)&&(t.__=e,t.__H=n,A.__H.__h.push(t))},e.useLayoutEffect=j,e.useRef=function(e){return q(function(){return{current:e}},[])},e.useImperativeHandle=function(e,n,t){j(function(){"function"==typeof e?e(n()):e&&(e.current=n())},null==t?t:t.concat(e))},e.useMemo=q,e.useCallback=function(e,n){return q(function(){return e},n)},e.useContext=function(e){var n=A.context[e.__c];if(!n)return e.__;var t=I(U++);return null==t.__&&(t.__=!0,n.sub(A)),n.props.value},e.useDebugValue=function(e,t){n.useDebugValue&&n.useDebugValue(t?t(e):e)}});