{"size": 26232, "ext": "js", "max_stars_repo_path": "06-frameworks/01-skatejs-preact/dist/custom-component.min.js", "max_stars_repo_name": "janrembold/webcomponent-examples", "max_stars_repo_stars_event_min_datetime": "2018-03-10T18:59:01.000Z", "max_stars_repo_stars_event_max_datetime": "2018-07-05T18:42:15.000Z", "max_issues_repo_path": "06-frameworks/01-skatejs-preact/dist/custom-component.min.js", "max_issues_repo_name": "janrembold/webcomponent-examples", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "06-frameworks/01-skatejs-preact/dist/custom-component.min.js", "max_forks_repo_name": "janrembold/webcomponent-examples", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26232.0, "max_line_length": 26232, "alphanum_fraction": 0.6981930467}
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=9)}([function(t,e,n){"use strict";e.a=function(t){return"string"==typeof t?t.split(/([_A-Z])/).reduce(function(t,e,n){var r=t&&n%2!=0?"-":"";return""+t+r+(e="_"===e?"":e).toLowerCase()}):t},n.d(e,"b",function(){return r}),e.c=function(t){t=t||{};var e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},e.d=function(t){return t=String(t||++o),"function"==typeof Symbol?Symbol(t):"__skate_"+t};var r=function(t){return null==t};var o=0},function(t,e,n){"use strict";e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"element";t=Object(r.a)(t);var e=0;for(;customElements.get(o(t,e));)++e;return o(t,e)};var r=n(0);function o(t,e){return(-1===t.indexOf("-")?"x-"+t:t)+(e?"-"+e:"")}},function(t,e,n){"use strict";e.a=function(t){return t._shadowRoot||(t._shadowRoot=t.shadowRoot||t.attachShadow({mode:"open"}))}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var c=o.get;return void 0!==c?c.call(r):void 0};var i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),r(n,[{key:"connectedCallback",value:function(){if(o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"connectedCallback",this)&&o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"connectedCallback",this).call(this),this.childrenUpdated){var t=this.childrenUpdated.bind(this);t(),new MutationObserver(t).observe(this,{childList:!0}),this.props&&this.props.hasOwnProperty("children")&&(this.props={children:this.children})}}}]),n}()}},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),r(n,[{key:"context",get:function(){if(this._context)return this._context;for(var t=this;t=t.parentNode||t.host;)if("context"in t)return t.context;return{}},set:function(t){this._context=t}}]),n}()}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var c=o.get;return void 0!==c?c.call(r):void 0};var i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),r(n,[{key:"connectedCallback",value:function(){this.connecting&&this.connecting(),o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"connectedCallback",this)&&o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"connectedCallback",this).call(this),this.connected&&this.connected()}},{key:"disconnectedCallback",value:function(){this.disconnecting&&this.disconnecting(),o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"disconnectedCallback",this)&&o(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"disconnectedCallback",this).call(this),this.disconnected&&this.disconnected()}}]),n}()}},function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"a",function(){return b});var r=n(0),o=n(16),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var c=o.get;return void 0!==c?c.call(r):void 0};function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t){var e=t||{},n=function(t,n){var i=t.constructor,c=Object(o.a)(n,e),u=Object(r.d)(n);i.hasOwnProperty("_propsNormalised")||(i._propsNormalised={}),i._propsNormalised[n]=c,c.attribute.source&&i._observedAttributes.push(c.attribute.source),Object.defineProperty(i.prototype,n,{configurable:!0,get:function(){var t=this[u];return null==t?c.default:t},set:function(t){this[u]=c.coerce(t),Object(o.c)(this,c.attribute.target,c.serialize,t),this.triggerUpdate()}})};return Object.keys(e).forEach(function(t){return n[t]=e[t]}),n}var l=function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;return e=t=function(t){function e(){var t,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return n=r=u(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(i))),r._prevProps={},r._prevState={},r._state={},u(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,n),i(e,[{key:"attributeChangedCallback",value:function(t,n,r){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attributeChangedCallback",this)&&c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attributeChangedCallback",this).call(this,t,n,r),Object(o.b)(this,t,r)}},{key:"connectedCallback",value:function(){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"connectedCallback",this)&&c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"connectedCallback",this).call(this),this.triggerUpdate()}},{key:"shouldUpdate",value:function(){return!0}},{key:"triggerUpdate",value:function(){var t,e=this;this._updating||(this._updating=!0,t=function(){var t=e._prevProps,n=e._prevState;e.updating&&e.updating(t,n),e.updated&&e.shouldUpdate(t,n)&&e.updated(t,n),e._prevProps=e.props,e._prevState=e.state,e._updating=!1},window.Promise?Promise.resolve().then(t):setTimeout(t))}},{key:"props",get:function(){var t=this;return Object(r.c)(this.constructor.props).reduce(function(e,n){return e[n]=t[n],e},{})},set:function(t){var e=this,n=this.constructor.props;Object(r.c)(t).forEach(function(r){return r in n&&(e[r]=t[r])})}},{key:"state",get:function(){return this._state},set:function(t){this._state=t,this.triggerUpdate()}}],[{key:"observedAttributes",get:function(){return function(t){if(!t.hasOwnProperty("_propsNormalised")){var e=t.props;Object(r.c)(e).forEach(function(n){var r=e[n];"function"!=typeof r&&(r=a(r)),r({constructor:t},n)})}}(this),this._observedAttributes}},{key:"props",get:function(){return this._props},set:function(t){this._props=t}}]),e}(),t._observedAttributes=[],e},p=JSON.parse,s=JSON.stringify,f=Object.freeze({source:!0}),d=function(t){return Object(r.b)(t)?0:Number(t)},b={any:a({attribute:f}),array:a({attribute:f,coerce:function(t){return Array.isArray(t)?t:Object(r.b)(t)?null:[t]},default:Object.freeze([]),deserialize:p,serialize:s}),boolean:a({attribute:f,coerce:Boolean,default:!1,deserialize:function(t){return!Object(r.b)(t)},serialize:function(t){return t?"":null}}),number:a({attribute:f,default:0,coerce:d,deserialize:d,serialize:function(t){return Object(r.b)(t)?null:String(Number(t))}}),object:a({attribute:f,default:Object.freeze({}),deserialize:p,serialize:s}),string:a({attribute:f,default:"",coerce:String,serialize:function(t){return Object(r.b)(t)?null:String(t)}})}},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(2),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var c=o.get;return void 0!==c?c.call(r):void 0};var c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),o(n,[{key:"renderer",value:function(t,e){i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"renderer",this)?i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"renderer",this).call(this,t,e):t.innerHTML=e()}},{key:"updated",value:function(){for(var t,e=this,r=arguments.length,o=Array(r),c=0;c<r;c++)o[c]=arguments[c];i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"updated",this)&&(t=i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"updated",this)).call.apply(t,[this].concat(o)),this.rendering&&this.rendering(),this.renderer(this.renderRoot,function(){return e.render&&e.render(e)}),this.rendered&&this.rendered()}},{key:"renderRoot",get:function(){return i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"renderRoot",this)||Object(r.a)(this)}}]),n}()}},function(t,e,n){"use strict";n.d(e,"a",function(){return c}),n.d(e,"b",function(){return M});var r={},o=[],i=[];function c(t,e){var n,c,u,a,l=i;for(a=arguments.length;a-- >2;)o.push(arguments[a]);for(e&&null!=e.children&&(o.length||o.push(e.children),delete e.children);o.length;)if((c=o.pop())&&void 0!==c.pop)for(a=c.length;a--;)o.push(c[a]);else"boolean"==typeof c&&(c=null),(u="function"!=typeof t)&&(null==c?c="":"number"==typeof c?c=String(c):"string"!=typeof c&&(u=!1)),u&&n?l[l.length-1]+=c:l===i?l=[c]:l.push(c),n=u;var p=new function(){};return p.nodeName=t,p.children=l,p.attributes=null==e?void 0:e,p.key=null==e?void 0:e.key,void 0!==r.vnode&&r.vnode(p),p}function u(t,e){for(var n in e)t[n]=e[n];return t}var a="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;var l=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,p=[];function s(t){!t._dirty&&(t._dirty=!0)&&1==p.push(t)&&(r.debounceRendering||a)(f)}function f(){var t,e=p;for(p=[];t=e.pop();)t._dirty&&E(t)}function d(t,e){return t.normalizedNodeName===e||t.nodeName.toLowerCase()===e.toLowerCase()}function b(t){var e=u({},t.attributes);e.children=t.children;var n=t.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===e[r]&&(e[r]=n[r]);return e}function y(t){var e=t.parentNode;e&&e.removeChild(t)}function v(t,e,n,r,o){if("className"===e&&(e="class"),"key"===e);else if("ref"===e)n&&n(null),r&&r(t);else if("class"!==e||o)if("style"===e){if(r&&"string"!=typeof r&&"string"!=typeof n||(t.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(t.style[i]="");for(var i in r)t.style[i]="number"==typeof r[i]&&!1===l.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===e)r&&(t.innerHTML=r.__html||"");else if("o"==e[0]&&"n"==e[1]){var c=e!==(e=e.replace(/Capture$/,""));e=e.toLowerCase().substring(2),r?n||t.addEventListener(e,_,c):t.removeEventListener(e,_,c),(t._listeners||(t._listeners={}))[e]=r}else if("list"!==e&&"type"!==e&&!o&&e in t)!function(t,e,n){try{t[e]=n}catch(t){}}(t,e,null==r?"":r),null!=r&&!1!==r||t.removeAttribute(e);else{var u=o&&e!==(e=e.replace(/^xlink\:?/,""));null==r||!1===r?u?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.removeAttribute(e):"function"!=typeof r&&(u?t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),r):t.setAttribute(e,r))}else t.className=r||""}function _(t){return this._listeners[t.type](r.event&&r.event(t)||t)}var h=[],g=0,O=!1,m=!1;function j(){for(var t;t=h.pop();)r.afterMount&&r.afterMount(t),t.componentDidMount&&t.componentDidMount()}function w(t,e,n,r,o,i){g++||(O=null!=o&&void 0!==o.ownerSVGElement,m=null!=t&&!("__preactattr_"in t));var c=P(t,e,n,r,i);return o&&c.parentNode!==o&&o.appendChild(c),--g||(m=!1,i||j()),c}function P(t,e,n,r,o){var i=t,c=O;if(null!=e&&"boolean"!=typeof e||(e=""),"string"==typeof e||"number"==typeof e)return t&&void 0!==t.splitText&&t.parentNode&&(!t._component||o)?t.nodeValue!=e&&(t.nodeValue=e):(i=document.createTextNode(e),t&&(t.parentNode&&t.parentNode.replaceChild(i,t),C(t,!0))),i.__preactattr_=!0,i;var u,a,l=e.nodeName;if("function"==typeof l)return function(t,e,n,r){var o=t&&t._component,i=o,c=t,u=o&&t._componentConstructor===e.nodeName,a=u,l=b(e);for(;o&&!a&&(o=o._parentComponent);)a=o.constructor===e.nodeName;o&&a&&(!r||o._component)?(T(o,l,3,n,r),t=o.base):(i&&!u&&(A(i),t=c=null),o=N(e.nodeName,l,n),t&&!o.nextBase&&(o.nextBase=t,c=null),T(o,l,1,n,r),t=o.base,c&&t!==c&&(c._component=null,C(c,!1)));return t}(t,e,n,r);if(O="svg"===l||"foreignObject"!==l&&O,l=String(l),(!t||!d(t,l))&&(u=l,(a=O?document.createElementNS("http://www.w3.org/2000/svg",u):document.createElement(u)).normalizedNodeName=u,i=a,t)){for(;t.firstChild;)i.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(i,t),C(t,!0)}var p=i.firstChild,s=i.__preactattr_,f=e.children;if(null==s){s=i.__preactattr_={};for(var _=i.attributes,h=_.length;h--;)s[_[h].name]=_[h].value}return!m&&f&&1===f.length&&"string"==typeof f[0]&&null!=p&&void 0!==p.splitText&&null==p.nextSibling?p.nodeValue!=f[0]&&(p.nodeValue=f[0]):(f&&f.length||null!=p)&&function(t,e,n,r,o){var i,c,u,a,l,p=t.childNodes,s=[],f={},b=0,v=0,_=p.length,h=0,g=e?e.length:0;if(0!==_)for(var O=0;O<_;O++){var m=p[O],j=m.__preactattr_,w=g&&j?m._component?m._component.__key:j.key:null;null!=w?(b++,f[w]=m):(j||(void 0!==m.splitText?!o||m.nodeValue.trim():o))&&(s[h++]=m)}if(0!==g)for(var O=0;O<g;O++){a=e[O],l=null;var w=a.key;if(null!=w)b&&void 0!==f[w]&&(l=f[w],f[w]=void 0,b--);else if(!l&&v<h)for(i=v;i<h;i++)if(void 0!==s[i]&&(k=c=s[i],N=o,"string"==typeof(x=a)||"number"==typeof x?void 0!==k.splitText:"string"==typeof x.nodeName?!k._componentConstructor&&d(k,x.nodeName):N||k._componentConstructor===x.nodeName)){l=c,s[i]=void 0,i===h-1&&h--,i===v&&v++;break}l=P(l,a,n,r),u=p[O],l&&l!==t&&l!==u&&(null==u?t.appendChild(l):l===u.nextSibling?y(u):t.insertBefore(l,u))}var k,x,N;if(b)for(var O in f)void 0!==f[O]&&C(f[O],!1);for(;v<=h;)void 0!==(l=s[h--])&&C(l,!1)}(i,f,n,r,m||null!=s.dangerouslySetInnerHTML),function(t,e,n){var r;for(r in n)e&&null!=e[r]||null==n[r]||v(t,r,n[r],n[r]=void 0,O);for(r in e)"children"===r||"innerHTML"===r||r in n&&e[r]===("value"===r||"checked"===r?t[r]:n[r])||v(t,r,n[r],n[r]=e[r],O)}(i,e.attributes,s),O=c,i}function C(t,e){var n=t._component;n?A(n):(null!=t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),!1!==e&&null!=t.__preactattr_||y(t),k(t))}function k(t){for(t=t.lastChild;t;){var e=t.previousSibling;C(t,!0),t=e}}var x={};function N(t,e,n){var r,o=x[t.name];if(t.prototype&&t.prototype.render?(r=new t(e,n),L.call(r,e,n)):((r=new L(e,n)).constructor=t,r.render=S),o)for(var i=o.length;i--;)if(o[i].constructor===t){r.nextBase=o[i].nextBase,o.splice(i,1);break}return r}function S(t,e,n){return this.constructor(t,n)}function T(t,e,n,o,i){t._disable||(t._disable=!0,(t.__ref=e.ref)&&delete e.ref,(t.__key=e.key)&&delete e.key,!t.base||i?t.componentWillMount&&t.componentWillMount():t.componentWillReceiveProps&&t.componentWillReceiveProps(e,o),o&&o!==t.context&&(t.prevContext||(t.prevContext=t.context),t.context=o),t.prevProps||(t.prevProps=t.props),t.props=e,t._disable=!1,0!==n&&(1!==n&&!1===r.syncComponentUpdates&&t.base?s(t):E(t,1,i)),t.__ref&&t.__ref(t))}function E(t,e,n,o){if(!t._disable){var i,c,a,l=t.props,p=t.state,s=t.context,f=t.prevProps||l,d=t.prevState||p,y=t.prevContext||s,v=t.base,_=t.nextBase,O=v||_,m=t._component,P=!1;if(v&&(t.props=f,t.state=d,t.context=y,2!==e&&t.shouldComponentUpdate&&!1===t.shouldComponentUpdate(l,p,s)?P=!0:t.componentWillUpdate&&t.componentWillUpdate(l,p,s),t.props=l,t.state=p,t.context=s),t.prevProps=t.prevState=t.prevContext=t.nextBase=null,t._dirty=!1,!P){i=t.render(l,p,s),t.getChildContext&&(s=u(u({},s),t.getChildContext()));var k,x,S=i&&i.nodeName;if("function"==typeof S){var L=b(i);(c=m)&&c.constructor===S&&L.key==c.__key?T(c,L,1,s,!1):(k=c,t._component=c=N(S,L,s),c.nextBase=c.nextBase||_,c._parentComponent=t,T(c,L,0,s,!1),E(c,1,n,!0)),x=c.base}else a=O,(k=m)&&(a=t._component=null),(O||1===e)&&(a&&(a._component=null),x=w(a,i,s,n||!v,O&&O.parentNode,!0));if(O&&x!==O&&c!==m){var M=O.parentNode;M&&x!==M&&(M.replaceChild(x,O),k||(O._component=null,C(O,!1)))}if(k&&A(k),t.base=x,x&&!o){for(var U=t,z=t;z=z._parentComponent;)(U=z).base=x;x._component=U,x._componentConstructor=U.constructor}}if(!v||n?h.unshift(t):P||(t.componentDidUpdate&&t.componentDidUpdate(f,d,y),r.afterUpdate&&r.afterUpdate(t)),null!=t._renderCallbacks)for(;t._renderCallbacks.length;)t._renderCallbacks.pop().call(t);g||o||j()}}function A(t){r.beforeUnmount&&r.beforeUnmount(t);var e=t.base;t._disable=!0,t.componentWillUnmount&&t.componentWillUnmount(),t.base=null;var n=t._component;n?A(n):e&&(e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),t.nextBase=e,y(e),function(t){var e=t.constructor.name;(x[e]||(x[e]=[])).push(t)}(t),k(e)),t.__ref&&t.__ref(null)}function L(t,e){this._dirty=!0,this.context=e,this.props=t,this.state=this.state||{}}function M(t,e,n){return w(n,t,{},!1,e,!1)}u(L.prototype,{setState:function(t,e){var n=this.state;this.prevState||(this.prevState=u({},n)),u(n,"function"==typeof t?t(n,this.props):t),e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),s(this)},forceUpdate:function(t){t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),E(this,2)},render:function(){}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(10),i=n(11),c=n(17),u=n(8);r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.a(e,t),Object.defineProperty(e,"props",{get:function(){return{name:i.a.string,url:i.a.string,image:i.a.string}},enumerable:!0,configurable:!0}),e.prototype.render=function(t){var e=t.name,n=t.url,r=t.image;return console.log("render()"),Object(u.a)("div",null,Object(u.a)("h2",null,e),Object(u.a)("a",{href:n,target:"_blank"},Object(u.a)("img",{src:r,alt:"Image of "+e})))},e.prototype.connecting=function(){console.log("connecting()")},e.prototype.connected=function(){console.log("connected()")},e.prototype.rendering=function(){console.log("rendering()")},e.prototype.rendered=function(){console.log("rendered()")},e}(Object(i.b)(Object(c.a)())),customElements.get("custom-component")||customElements.define("custom-component",r)},function(t,e,n){"use strict";e.a=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)};var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};Object.assign},function(t,e,n){"use strict";n(12),n(13),n(14),n(1),n(2),n(3),n(4);var r=n(15);n.d(e,"b",function(){return r.a});n(5);var o=n(6);n.d(e,"a",function(){return o.a});n(7)},function(t,e,n){"use strict";n(1)},function(t,e,n){"use strict";Object.assign},function(t,e,n){"use strict"},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(3),o=n(4),i=n(5),c=n(6),u=n(7),a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;return Object(i.a)(Object(r.a)(Object(o.a)(Object(c.b)(Object(u.a)(t||HTMLElement)))))}},function(t,e,n){"use strict";e.a=function(t,e){var n=e.coerce,c=e.default,u=e.deserialize,a=e.serialize;return{attribute:function(t,e){var n=e.attribute,c="object"===(void 0===n?"undefined":i(n))?o({},n):{source:n,target:n};!0===c.source&&(c.source=Object(r.a)(t));!0===c.target&&(c.target=Object(r.a)(t));return c}(t,e),coerce:n||function(t){return t},default:c,deserialize:u||function(t){return t},serialize:a||function(t){return t}}},e.b=function(t,e,n){if(t._syncingPropertyToAttribute)return;var r=t.constructor._propsNormalised;for(var o in r){var i=r[o],c=i.attribute.source,u=i.deserialize;c===e&&(t._syncingAttributeToProperty=o,t[o]=null==n?n:u(n),t._syncingAttributeToProperty=null)}},e.c=function(t,e,n,r){if(e&&t._syncingAttributeToProperty!==e){var o=n(r);t._syncingPropertyToAttribute=!0,null==o?t.removeAttribute(e):t.setAttribute(e,o),t._syncingPropertyToAttribute=!1}};var r=n(0),o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}},function(t,e,n){"use strict";var r=n(8),o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HTMLElement;return function(e){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,t),i(n,[{key:"renderer",value:function(t,e){this._preactDom=Object(r.b)(e(),t,this._preactDom||t.children[0])}},{key:"props",get:function(){return o({},function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var c=o.get;return void 0!==c?c.call(r):void 0}(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"props",this),{children:Object(r.a)("slot",null)})}}]),n}()}}]);