Comparing version 4.0.4 to 4.0.5
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.skate=t():e.skate=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return e[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.vdom=t.symbols=t.ready=t.props=t.prop=t.link=t.h=t.emit=t.define=t.Component=void 0;var o=n(1),i=u(o),a=n(5),f=u(a),l=n(7),c=u(l),d=n(11),s=r(d),p=n(21),v=r(p),y=n(24),b=r(y),h=n(25),_=r(h),m=n(16),g=r(m),O=n(26),A=r(O),k=c.builder();t.Component=s["default"],t.define=v["default"],t.emit=b["default"],t.h=k,t.link=_["default"],t.prop=i,t.props=g["default"],t.ready=A["default"],t.symbols=f,t.vdom=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function u(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.unshift({},e),i["default"].apply(void 0,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.number=t["boolean"]=t.array=void 0,t.create=u;var o=n(2),i=r(o),a=n(4),f=r(a),l=function(e){return isNaN(e)?void 0:Number(e)},c=function(e){return(0,f["default"])(e)?void 0:String(e)};t.array=u({coerce:function(e){return Array.isArray(e)?e:[e]},"default":function(){return[]},deserialize:JSON.parse,serialize:JSON.stringify}),t["boolean"]=u({coerce:function(e){return!!e},"default":!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":void 0}}),t.number=u({"default":0,coerce:l,deserialize:l,serialize:l}),t.string=u({"default":"",coerce:c,deserialize:c,serialize:c})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(3),o=r(u);t["default"]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(function(t){return(0,o["default"])(t).forEach(function(n){return e[n]=t[n]})}),e}},function(e,t){"use strict";function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.enumOnly,r=void 0!==n&&n,u=Object[r?"keys":"getOwnPropertyNames"](e);return"function"==typeof Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(e)):u}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return"undefined"==typeof e||null===e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);Object.defineProperty(t,"name",{enumerable:!0,get:function(){return r.name}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.connected="____skate_connected",t.created="____skate_created",t.name="____skate_name",t.props="____skate_props",t.ref="____skate_ref",t.renderer="____skate_renderer",t.rendering="____skate_rendering",t.rendererDebounced="____skate_rendererDebounced",t.updated="____skate_updated"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t,n){var r=e[P];r||(r=e[P]={});var u=r[t];u&&e.removeEventListener(t,u),n&&e.addEventListener(t,r[t]=n)}function a(e){return"function"==typeof e?e[m.name]||e:e}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;S=[e,t,n]}function l(){var e=R.apply(void 0,u(S));return S=null,e}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;return function n(){for(var r=arguments.length,u=Array(r),o=0;o<r;o++)u[o]=arguments[o];if(u[0]=a(u[0]),C=null,"function"==typeof u[0])return C=u[0],t.apply(void 0,u);if(x.length)x[x.length-1].push([n,u]);else{if(e===z){if(V)return++V;var i=e.apply(void 0,u);return i[w]&&++V,i}if(e===_.elementClose){if(1===V&&(0,_.skip)(),V&&--V)return;var c=e.apply(void 0,u),d=c[m.ref];return delete c[m.ref],"function"==typeof d&&d(c),c}if(!V||e===f||e===l)return e.apply(void 0,u)}}}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];C?C[E][t[0]]=t[1]:x.length?x[x.length-1].push([d,t]):(S.push(t[0]),S.push(t[1]))}function s(e,t,n){for(var r={key:t,statics:n},u=arguments.length,o=Array(u>3?u-3:0),i=3;i<u;i++)o[i-3]=arguments[i];for(var a=0;a<o.length;a+=2)r[o[a]]=o[a+1];e[E]=r,x.push([])}function p(e){var t=x.pop(),n=e[E];delete e[E];var r=e(n,function(){return t.forEach(function(e){return e[0].apply(e,u(e[1]))})});return"function"==typeof r?r():r}function v(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return R.apply(void 0,[e].concat(n)),I(e)}function y(e,t){for(var n="undefined"==typeof t?"undefined":h(t),r=arguments.length,u=Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return"function"!==n&&"string"!==n&&"number"!==n||u.unshift(t),null!==t&&"object"===n||(t={}),L(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return d(e,t[e])}),T(e),u.forEach(function(e){var t="undefined"==typeof e?"undefined":h(e);"function"===t?e():"string"===t||"number"===t?J(e):Array.isArray(e)&&e.forEach(function(e){return e()})}),I(e)}function b(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.bind.apply(y,[null].concat(t))}:t.map(function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return y.bind.apply(y,[null,e].concat(n))}})}Object.defineProperty(t,"__esModule",{value:!0}),t.text=t.elementVoid=t.elementOpenStart=t.elementOpenEnd=t.elementOpen=t.elementClose=t.attr=void 0;var h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.element=y,t.builder=b;var _=n(8),m=n(6),g=n(9),O=r(g),A=n(10),k=r(A),j=k["default"].customElements,M=_.attributes[_.symbols["default"]],x=[],w="__skip",P="__events",E="__props",C=void 0,S=void 0,V=0,D=function(){},N=(0,O["default"])(_.attributes,o({key:D,statics:D,checked:_.applyProp,className:_.applyProp,disabled:_.applyProp,value:_.applyProp,ref:function(e,t,n){e[m.ref]=n},skip:function(e,t,n){n?e[w]=!0:delete e[w]}},_.symbols["default"],function(e,t,n){var r=j.get(e.tagName)||{props:{},prototype:{}},u=r.props,o=r.prototype;if((t in u||t in e||t in o)&&!("ownerSVGElement"in e))return void(0,_.applyProp)(e,t,n);if(n===!1)return void M(e,t);if(0===t.indexOf("on")){var a=t[2],f=void 0;if("-"===a?f=t.substring(3):a===a.toUpperCase()&&(f=a.toLowerCase()+t.substring(3)),f)return void i(e,f,n)}M(e,t,n)})),z=N(_.elementOpen),L=c(f,s),T=c(l),R=c(z,s),I=c(_.elementClose,p),J=c(_.text);t.attr=d,t.elementClose=I,t.elementOpen=R,t.elementOpenEnd=T,t.elementOpenStart=L,t.elementVoid=v,t.text=J},function(e,t,n){/** | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.skate=t():e.skate=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return e[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.vdom=t.symbols=t.ready=t.props=t.prop=t.link=t.h=t.emit=t.define=t.Component=void 0;var o=n(1),i=u(o),a=n(5),f=u(a),l=n(7),c=u(l),d=n(11),s=r(d),p=n(21),y=r(p),v=n(24),b=r(v),h=n(25),_=r(h),m=n(16),g=r(m),O=n(26),A=r(O),k=c.builder();t.Component=s.default,t.define=y.default,t.emit=b.default,t.h=k,t.link=_.default,t.prop=i,t.props=g.default,t.ready=A.default,t.symbols=f,t.vdom=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.unshift({},e),i.default.apply(void 0,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.number=t.boolean=t.array=void 0,t.create=u;var o=n(2),i=r(o),a=n(4),f=r(a),l=function(e){return isNaN(e)?void 0:Number(e)},c=function(e){return(0,f.default)(e)?void 0:String(e)};t.array=u({coerce:function(e){return Array.isArray(e)?e:[e]},default:function(){return[]},deserialize:JSON.parse,serialize:JSON.stringify}),t.boolean=u({coerce:function(e){return!!e},default:!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":void 0}}),t.number=u({default:0,coerce:l,deserialize:l,serialize:l}),t.string=u({default:"",coerce:c,deserialize:c,serialize:c})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=n(3),o=r(u);t.default=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(function(t){return(0,o.default)(t).forEach(function(n){return e[n]=t[n]})}),e}},function(e,t){"use strict";function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.enumOnly,r=void 0!==n&&n,u=Object[r?"keys":"getOwnPropertyNames"](e);return"function"==typeof Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(e)):u}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"undefined"==typeof e||null===e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);Object.defineProperty(t,"name",{enumerable:!0,get:function(){return r.name}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.connected="____skate_connected",t.created="____skate_created",t.name="____skate_name",t.props="____skate_props",t.ref="____skate_ref",t.renderer="____skate_renderer",t.rendering="____skate_rendering",t.rendererDebounced="____skate_rendererDebounced",t.updated="____skate_updated"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t,n){var r=e[w];r||(r=e[w]={}),"undefined"==typeof r[t]&&e.addEventListener(t,function(e){r[t]&&r[t].call(this,e)}),r[t]="function"==typeof n?n:null}function a(e){return"function"==typeof e?e[m.name]||e:e}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;S=[e,t,n]}function l(){var e=R.apply(void 0,u(S));return S=null,e}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;return function n(){for(var r=arguments.length,u=Array(r),o=0;o<r;o++)u[o]=arguments[o];if(u[0]=a(u[0]),E=null,"function"==typeof u[0])return E=u[0],t.apply(void 0,u);if(x.length)x[x.length-1].push([n,u]);else{if(e===z){if(V)return++V;var i=e.apply(void 0,u);return i[P]&&++V,i}if(e===_.elementClose){if(1===V&&(0,_.skip)(),V&&--V)return;var c=e.apply(void 0,u),d=c[m.ref];return delete c[m.ref],"function"==typeof d&&d(c),c}if(!V||e===f||e===l)return e.apply(void 0,u)}}}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];E?E[C][t[0]]=t[1]:x.length?x[x.length-1].push([d,t]):(S.push(t[0]),S.push(t[1]))}function s(e,t,n){for(var r={key:t,statics:n},u=arguments.length,o=Array(u>3?u-3:0),i=3;i<u;i++)o[i-3]=arguments[i];for(var a=0;a<o.length;a+=2)r[o[a]]=o[a+1];e[C]=r,x.push([])}function p(e){var t=x.pop(),n=e[C];delete e[C];var r=e(n,function(){return t.forEach(function(e){return e[0].apply(e,u(e[1]))})});return"function"==typeof r?r():r}function y(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return R.apply(void 0,[e].concat(n)),I(e)}function v(e,t){for(var n="undefined"==typeof t?"undefined":h(t),r=arguments.length,u=Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return"function"!==n&&"string"!==n&&"number"!==n||u.unshift(t),null!==t&&"object"===n||(t={}),L(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return d(e,t[e])}),T(e),u.forEach(function(e){var t="undefined"==typeof e?"undefined":h(e);"function"===t?e():"string"===t||"number"===t?J(e):Array.isArray(e)&&e.forEach(function(e){return e()})}),I(e)}function b(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind.apply(v,[null].concat(t))}:t.map(function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return v.bind.apply(v,[null,e].concat(n))}})}Object.defineProperty(t,"__esModule",{value:!0}),t.text=t.elementVoid=t.elementOpenStart=t.elementOpenEnd=t.elementOpen=t.elementClose=t.attr=void 0;var h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.element=v,t.builder=b;var _=n(8),m=n(6),g=n(9),O=r(g),A=n(10),k=r(A),j=k.default.customElements,M=_.attributes[_.symbols.default],x=[],P="__skip",w="__events",C="__props",E=void 0,S=void 0,V=0,D=function(){},N=(0,O.default)(_.attributes,o({key:D,statics:D,checked:_.applyProp,className:_.applyProp,disabled:_.applyProp,value:_.applyProp,ref:function(e,t,n){e[m.ref]=n},skip:function(e,t,n){n?e[P]=!0:delete e[P]}},_.symbols.default,function(e,t,n){var r=j.get(e.tagName)||{props:{},prototype:{}},u=r.props,o=r.prototype;if((t in u||t in e||t in o)&&!("ownerSVGElement"in e))return void(0,_.applyProp)(e,t,n);if(n===!1)return void M(e,t);if(0===t.indexOf("on")){var a=t[2],f=void 0;if("-"===a?f=t.substring(3):a===a.toUpperCase()&&(f=a.toLowerCase()+t.substring(3)),f)return void i(e,f,n)}M(e,t,n)})),z=N(_.elementOpen),L=c(f,s),T=c(l),R=c(z,s),I=c(_.elementClose,p),J=c(_.text);t.attr=d,t.elementClose=I,t.elementOpen=R,t.elementOpenEnd=T,t.elementOpenStart=L,t.elementVoid=y,t.text=J},function(e,t,n){/** | ||
* @license | ||
@@ -17,3 +17,3 @@ * Copyright 2015 The Incremental DOM Authors. All Rights Reserved. | ||
*/ | ||
"use strict";function r(e,t){this.attrs=f(),this.attrsArr=[],this.newAttrs=f(),this.key=t,this.keyMap=null,this.keyMapValid=!0,this.nodeName=e,this.text=null}function u(){this.created=x.nodesCreated&&[],this.deleted=x.nodesDeleted&&[]}var o=Object.prototype.hasOwnProperty,i=Object.create,a=function(e,t){return o.call(e,t)},f=function(){return i(null)},l=function(e,t,n){var u=new r(t,n);return e.__incrementalDOMData=u,u},c=function(e){var t=e.__incrementalDOMData;if(!t){var n=e.nodeName.toLowerCase(),r=null;e instanceof Element&&(r=e.getAttribute("key")),t=l(e,n,r)}return t},d={"default":"__default",placeholder:"__placeholder"},s=function(e){return 0===e.lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===e.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":void 0},p=function(e,t,n){if(null==n)e.removeAttribute(t);else{var r=s(t);r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}},v=function(e,t,n){e[t]=n},y=function(e,t,n){if("string"==typeof n)e.style.cssText=n;else{e.style.cssText="";var r=e.style,u=n;for(var o in u)a(u,o)&&(r[o]=u[o])}},b=function(e,t,n){var r=typeof n;"object"===r||"function"===r?v(e,t,n):p(e,t,n)},h=function(e,t,n){var r=c(e),u=r.attrs;if(u[t]!==n){var o=_[t]||_[d["default"]];o(e,t,n),u[t]=n}},_=f();_[d["default"]]=b,_[d.placeholder]=function(){},_.style=y;var m=function(e,t){return"svg"===e?"http://www.w3.org/2000/svg":"foreignObject"===c(t).nodeName?null:t.namespaceURI},g=function(e,t,n,r,u){var o=m(n,t),i=void 0;if(i=o?e.createElementNS(o,n):e.createElement(n),l(i,n,r),u)for(var a=0;a<u.length;a+=2)h(i,u[a],u[a+1]);return i},O=function(e){var t=e.createTextNode("");return l(t,"#text",null),t},A=function(e){for(var t=f(),n=e.firstElementChild;n;){var r=c(n).key;r&&(t[r]=n),n=n.nextElementSibling}return t},k=function(e){var t=c(e);return t.keyMap||(t.keyMap=A(e)),t.keyMap},j=function(e,t){return t?k(e)[t]:null},M=function(e,t,n){k(e)[t]=n},x={nodesCreated:null,nodesDeleted:null};u.prototype.markCreated=function(e){this.created&&this.created.push(e)},u.prototype.markDeleted=function(e){this.deleted&&this.deleted.push(e)},u.prototype.notifyChanges=function(){this.created&&this.created.length>0&&x.nodesCreated(this.created),this.deleted&&this.deleted.length>0&&x.nodesDeleted(this.deleted)};var w=null,P=null,E=null,C=null,S=null,V=function(e){var t=function(t,n,r){var o=w,i=C,a=S,f=P,l=E;w=new u,C=t,S=t.ownerDocument,E=t.parentNode,e(t,n,r),w.notifyChanges(),w=o,C=i,S=a,P=f,E=l};return t},D=V(function(e,t,n){P=e,R(),t(n),J()}),N=V(function(e,t,n){P={nextSibling:e},t(n)}),z=function(e,t){var n=c(P);return e===n.nodeName&&t==n.key},L=function(e,t,n){if(!P||!z(e,t)){var r=void 0;t&&(r=j(E,t)),r||(r="#text"===e?O(S):g(S,E,e,t,n),t&&M(E,t,r),w.markCreated(r)),P&&c(P).key?(E.replaceChild(r,P),c(E).keyMapValid=!1):E.insertBefore(r,P),P=r}},T=function(){var e=E,t=c(e),n=t.keyMap,r=t.keyMapValid,u=e.lastChild,o=void 0;if(!(u===P&&r||t.attrs[d.placeholder]&&e!==C)){for(;u!==P;)e.removeChild(u),w.markDeleted(u),o=c(u).key,o&&delete n[o],u=e.lastChild;if(!r){for(o in n)u=n[o],u.parentNode!==e&&(w.markDeleted(u),delete n[o]);t.keyMapValid=!0}}},R=function(){E=P,P=null},I=function(){P=P?P.nextSibling:E.firstChild},J=function(){T(),P=E,E=E.parentNode},K=function(e,t,n){return I(),L(e,t,n),R(),E},U=function(){return J(),P},q=function(){return I(),L("#text",null,null),P},B=function(){return E},G=function(){P=E.lastChild},H=3,X=[],Y=function(e,t,n,r){for(var u=K(e,t,n),o=c(u),i=o.attrsArr,a=o.newAttrs,f=!1,l=H,d=0;l<arguments.length;l+=1,d+=1)if(i[d]!==arguments[l]){f=!0;break}for(;l<arguments.length;l+=1,d+=1)i[d]=arguments[l];if(d<i.length&&(f=!0,i.length=d),f){for(l=H;l<arguments.length;l+=2)a[arguments[l]]=arguments[l+1];for(var s in a)h(u,s,a[s]),a[s]=void 0}return u},Z=function(e,t,n){X[0]=e,X[1]=t,X[2]=n},F=function(e,t){X.push(e,t)},Q=function(){var e=Y.apply(null,X);return X.length=0,e},W=function(e){var t=U();return t},$=function(e,t,n,r){return Y.apply(null,arguments),W(e)},ee=function(e,t,n,r){return Y.apply(null,arguments),G(),W(e)},te=function(e,t){var n=q(),r=c(n);if(r.text!==e){r.text=e;for(var u=e,o=1;o<arguments.length;o+=1){var i=arguments[o];u=i(u)}n.data=u}return n};t.patch=D,t.patchInner=D,t.patchOuter=N,t.currentElement=B,t.skip=G,t.elementVoid=$,t.elementOpenStart=Z,t.elementOpenEnd=Q,t.elementOpen=Y,t.elementClose=W,t.elementPlaceholder=ee,t.text=te,t.attr=F,t.symbols=d,t.attributes=_,t.applyAttr=p,t.applyProp=v,t.notifications=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){var n={};return Object.keys(t).forEach(function(r){n[r]=e[r],e[r]=t[r]}),n}function o(e,t){(0,a["default"])(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){return function(n){return function(){var r=u(e,t),i=n.apply(void 0,arguments);return o(e,r),i}}};var i=n(2),a=r(i)},function(e,t){(function(t){"use strict";e.exports="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||this}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t=(0,b["default"])(e),n=t.readyCallbacks,r=e.constructor;e[v.created]||(e[v.created]=!0,e[v.rendererDebounced]=(0,_["default"])(r[v.renderer].bind(r)),r.props&&r[v.props]&&r[v.props](e),"function"==typeof r.created&&r.created(e),n&&(n.forEach(function(t){return t(e)}),delete t.readyCallbacks))}function f(e){var t=e.constructor.props;Object.keys(t).forEach(function(n){var r=t[n];(0,x["default"])(e,r,n,!0)})}function l(e){var t=e.constructor;f(e),e[v.connected]=!0,e[v.rendererDebounced](e),"function"==typeof t.attached&&t.attached(e),e.setAttribute("defined","")}function c(e){var t=e.constructor;e[v.connected]=!1,"function"==typeof t.detached&&t.detached(e)}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r="object"===("undefined"==typeof Reflect?"undefined":s(Reflect))?Reflect.construct(E,t,this.constructor):E.call(this,t[0]);return a(r),r}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=n(8),v=n(6),y=n(12),b=r(y),h=n(13),_=r(h),m=n(3),g=r(m),O=n(15),A=r(O),k=n(16),j=r(k),M=n(17),x=r(M),w=n(10),P=r(w),E=P["default"].HTMLElement,C=E?E.prototype:{};d.observedAttributes=[],d.props={},d.extend=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=function(e){function t(){return u(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}(t);if(!n.observedAttributes){var r=(0,A["default"])(t);delete r.length,delete r.prototype,Object.defineProperties(n,r)}var a=(0,A["default"])(e),f=(0,A["default"])(e.prototype);return delete a.prototype,Object.defineProperties(n,a),Object.defineProperties(n.prototype,f),n},d.renderer=function(e){var t=e.elem,n=e.render,r=e.shadowRoot;(0,p.patchInner)(r,function(){var e=n(t);"function"==typeof e?e():Array.isArray(e)&&e.forEach(function(e){"function"==typeof e&&e()})})},d.updated=function(e,t){if(!t)return!0;for(var n=(0,g["default"])(t),r=0;r<n.length;r+=1)if(t[n[r]]!==e[n[r]])return!0;return!1},d[v.updated]=function(e){if("function"==typeof this.updated){var t=e[v.props];return e[v.props]=(0,j["default"])(e),this.updated(e,t)}return!0},d[v.renderer]=function(e){if(!e[v.rendering]&&e[v.connected]){e[v.rendering]=!0;var t=this[v.updated](e);if(!this.render||!this.renderer)return void(e[v.rendering]=!1);t&&(e.shadowRoot||e.attachShadow({mode:"open"}),this.renderer({elem:e,render:this.render,shadowRoot:e.shadowRoot}),"function"==typeof this.rendered&&this.rendered(e)),e[v.rendering]=!1}},d.prototype=Object.create(C,{connectedCallback:{configurable:!0,value:function(){l(this)}},disconnectedCallback:{configurable:!0,value:function(){c(this)}},attributeChangedCallback:{configurable:!0,value:function(e,t,n){var r=this.constructor.attributeChanged,u=(0,b["default"])(this,"attributeLinks")[e];if(u){var o=(0,b["default"])(this,"props")[u];if(o.syncingAttribute)o.syncingAttribute=!1;else{var i=this.constructor.props[u];o.settingAttribute=!0;var a=null!==n&&i.deserialize?i.deserialize(n):n;this[u]=a}}r&&r(this,{name:e,newValue:n,oldValue:t})}}}),t["default"]=d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(n[t]||(n[t]={}))||n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=!1,n=0,r=[],o=document.createElement("span"),i=new d(function(){e.apply(void 0,u(r)),t=!1,r=null});return i.observe(o,{childList:!0}),function(){for(var e=arguments.length,u=Array(e),i=0;i<e;i++)u[i]=arguments[i];r=u,t||(t=!0,o.textContent=""+n,n+=1)}}function i(e){var t=!1,n=[];return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];n=o,t||(t=!0,setTimeout(function(){t=!1,e.apply(void 0,u(n))},1))}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(14),f=r(a),l=n(10),c=r(l),d=c["default"].MutationObserver;t["default"]=(0,f["default"])(d)?o:i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["native code","[object MutationObserverConstructor]"];t["default"]=function(e){return n.map(function(t){return(e||"").toString().indexOf([t])>-1}).reduce(function(e,t){return e||t})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o["default"])(e).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})};var u=n(3),o=r(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t={};return(0,c["default"])(e.constructor.props).forEach(function(n){t[n]=e[n]}),t}function o(e,t){(0,f["default"])(e,t),e.constructor[i.renderer]&&e.constructor[i.renderer](e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){return"undefined"==typeof t?u(e):o(e,t)};var i=n(6),a=n(2),f=r(a),l=n(3),c=r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function u(e,t,n,r,u){var o=u.lastAssignedValue;(0,c["default"])(o)&&("initial"in t?o=(0,v["default"])(e,n,t):"default"in t&&(o=(0,s["default"])(e,n,t))),!(0,c["default"])(o)&&t.serialize&&(o=t.serialize(o)),(0,c["default"])(o)||(u.syncingAttribute=!0,e.setAttribute(r,o))}function o(e,t,n,r,u){if(r&&!u.settingAttribute){var o=u.internalValue,i=t.serialize(o),a=e.getAttribute(r),f=(0,c["default"])(i),l=!(f&&(0,c["default"])(a)||i===a);u.syncingAttribute=!0;var d=(0,c["default"])(u.lastAssignedValue);d||f?e.removeAttribute(r):e.setAttribute(r,i),!l&&u.syncingAttribute&&(u.syncingAttribute=!1)}u.settingAttribute=!1}function i(e,t,n,r){var i=(0,f["default"])(e,"propertyLinks")[n],a=(0,b["default"])(e,n);i&&(r?u(e,t,n,i,a):o(e,t,n,i,a))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var a=n(12),f=r(a),l=n(4),c=r(l),d=n(18),s=r(d),p=n(19),v=r(p),y=n(20),b=r(y)},function(e,t){"use strict";function n(e,t,n){return"function"==typeof n["default"]?n["default"](e,{name:t}):n["default"]}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e,t,n){return"function"==typeof n.initial?n.initial(e,{name:t}):n.initial}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){var n=(0,i["default"])(e,"props");return n[t]||(n[t]={})}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=u;var o=n(12),i=r(o)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=e.props;return(0,m["default"])(t).reduce(function(e,n){return e[n]=t[n],"function"!=typeof e[n]&&(e[n]=(0,h["default"])(e[n])),e},{})}function o(e){var t=u(e);return(0,m["default"])(t).reduce(function(e,n){return e[n]=t[n](n),e},{})}function i(e){var t=e.observedAttributes,n=e.props;n&&((0,m["default"])(n).forEach(function(e){var r=n[e],u=r.attribute;if(u){var o=r.attribute=u===!0?(0,y["default"])(e):u;t.indexOf(o)===-1&&t.push(o)}}),Object.defineProperty(e,"observedAttributes",{configurable:!0,enumerable:!0,get:function(){return t}}))}function a(e){var t=o(e);return function(e){t&&(0,m["default"])(t).forEach(function(n){var r=t[n];r.created(e);var u=n in e,o=u&&e[n];Object.defineProperty(e,n,r),u&&(e[n]=o)})}}function f(e){var t="xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)});return e+"-"+t}function l(e,t){t[d.name]=e,t[d.props]=a(t)}Object.defineProperty(t,"__esModule",{value:!0});var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t["default"]=function(e,t){if(void 0===t)throw new Error("You have to define options to register a component "+e);var n="object"===("undefined"==typeof t?"undefined":c(t))?p["default"].extend(t):t,r=O["default"].customElements;if(i(n),!r)throw new Error("Skate requires native custom element support or a polyfill.");var u=e;return r.get(e)&&(u=f(e)),l(u,n),r.define(u,n,n["extends"]?{"extends":n["extends"]}:null),n};var d=n(6),s=n(11),p=r(s),v=n(22),y=r(v),b=n(23),h=r(b),_=n(3),m=r(_),g=n(10),O=r(g)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){var n={configurable:!0,enumerable:!0};return n.created=function(n){var r=(0,m["default"])(n,e),u=t.attribute===!0?(0,p["default"])(e):t.attribute,o=n[e];(0,l["default"])(n,"attributeLinks")[u]=e,(0,l["default"])(n,"propertyLinks")[e]=u,(0,d["default"])(o)&&(u&&n.hasAttribute(u)?o=t.deserialize(n.getAttribute(u)):"initial"in t?o=(0,h["default"])(n,e,t):"default"in t&&(o=(0,y["default"])(n,e,t))),r.internalValue=t.coerce?t.coerce(o):o},n.get=function(){var n=(0,m["default"])(this,e),r=n.internalValue;return"function"==typeof t.get?t.get(this,{name:e,internalValue:r}):r},n.set=function(n){var r=(0,m["default"])(this,e);r.lastAssignedValue=n;var u=r.oldValue;(0,d["default"])(u)&&(u=null),(0,d["default"])(n)&&(n=(0,y["default"])(this,e,t)),"function"==typeof t.coerce&&(n=t.coerce(n));var i={name:e,newValue:n,oldValue:u};"function"==typeof t.set&&t.set(this,i),this[o.rendererDebounced](this),r.internalValue=r.oldValue=n,this[o.connected]&&(0,O["default"])(this,t,e,!1)},n}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return e=e||{},"function"==typeof e&&(e={coerce:e}),function(t){return u(t,(0,a["default"])({"default":null,deserialize:function(e){return e},serialize:function(e){return e}},e))}};var o=n(6),i=n(2),a=r(i),f=n(12),l=r(f),c=n(4),d=r(c),s=n(22),p=r(s),v=n(18),y=r(v),b=n(19),h=r(b),_=n(20),m=r(_),g=n(17),O=r(g)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.detail;delete t.detail;var r=void 0;return a?(r=new a(e,t),"undefined"!=typeof n&&Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return void 0===n.bubbles&&(n.bubbles=!0),void 0===n.cancelable&&(n.cancelable=!0),void 0===n.composed&&(n.composed=!0),e.dispatchEvent(u(t,n))};var o=n(10),i=r(o),a=function(e){if(e)try{new e("emit-init")}catch(t){return}return e}(i["default"].Event)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){return function(n){var r=o(n.target),i=t||n.target.name||"value";if(i.indexOf(".")>-1){var f=i.split("."),l=f[0],c=f.pop(),d=f.reduce(function(e,t){return e&&e[t]},e);d[c||n.target.name]=r,(0,a["default"])(e,u({},l,e[l]))}else(0,a["default"])(e,u({},i,r))}};var i=n(16),a=r(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){var n=(0,i["default"])(e);e[u.created]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]};var u=n(6),o=n(12),i=r(o)}])}); | ||
"use strict";function r(e,t){this.attrs=f(),this.attrsArr=[],this.newAttrs=f(),this.key=t,this.keyMap=null,this.keyMapValid=!0,this.nodeName=e,this.text=null}function u(){this.created=x.nodesCreated&&[],this.deleted=x.nodesDeleted&&[]}var o=Object.prototype.hasOwnProperty,i=Object.create,a=function(e,t){return o.call(e,t)},f=function(){return i(null)},l=function(e,t,n){var u=new r(t,n);return e.__incrementalDOMData=u,u},c=function(e){var t=e.__incrementalDOMData;if(!t){var n=e.nodeName.toLowerCase(),r=null;e instanceof Element&&(r=e.getAttribute("key")),t=l(e,n,r)}return t},d={default:"__default",placeholder:"__placeholder"},s=function(e){return 0===e.lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===e.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":void 0},p=function(e,t,n){if(null==n)e.removeAttribute(t);else{var r=s(t);r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}},y=function(e,t,n){e[t]=n},v=function(e,t,n){if("string"==typeof n)e.style.cssText=n;else{e.style.cssText="";var r=e.style,u=n;for(var o in u)a(u,o)&&(r[o]=u[o])}},b=function(e,t,n){var r=typeof n;"object"===r||"function"===r?y(e,t,n):p(e,t,n)},h=function(e,t,n){var r=c(e),u=r.attrs;if(u[t]!==n){var o=_[t]||_[d.default];o(e,t,n),u[t]=n}},_=f();_[d.default]=b,_[d.placeholder]=function(){},_.style=v;var m=function(e,t){return"svg"===e?"http://www.w3.org/2000/svg":"foreignObject"===c(t).nodeName?null:t.namespaceURI},g=function(e,t,n,r,u){var o=m(n,t),i=void 0;if(i=o?e.createElementNS(o,n):e.createElement(n),l(i,n,r),u)for(var a=0;a<u.length;a+=2)h(i,u[a],u[a+1]);return i},O=function(e){var t=e.createTextNode("");return l(t,"#text",null),t},A=function(e){for(var t=f(),n=e.firstElementChild;n;){var r=c(n).key;r&&(t[r]=n),n=n.nextElementSibling}return t},k=function(e){var t=c(e);return t.keyMap||(t.keyMap=A(e)),t.keyMap},j=function(e,t){return t?k(e)[t]:null},M=function(e,t,n){k(e)[t]=n},x={nodesCreated:null,nodesDeleted:null};u.prototype.markCreated=function(e){this.created&&this.created.push(e)},u.prototype.markDeleted=function(e){this.deleted&&this.deleted.push(e)},u.prototype.notifyChanges=function(){this.created&&this.created.length>0&&x.nodesCreated(this.created),this.deleted&&this.deleted.length>0&&x.nodesDeleted(this.deleted)};var P=null,w=null,C=null,E=null,S=null,V=function(e){var t=function(t,n,r){var o=P,i=E,a=S,f=w,l=C;P=new u,E=t,S=t.ownerDocument,C=t.parentNode,e(t,n,r),P.notifyChanges(),P=o,E=i,S=a,w=f,C=l};return t},D=V(function(e,t,n){w=e,R(),t(n),J()}),N=V(function(e,t,n){w={nextSibling:e},t(n)}),z=function(e,t){var n=c(w);return e===n.nodeName&&t==n.key},L=function(e,t,n){if(!w||!z(e,t)){var r=void 0;t&&(r=j(C,t)),r||(r="#text"===e?O(S):g(S,C,e,t,n),t&&M(C,t,r),P.markCreated(r)),w&&c(w).key?(C.replaceChild(r,w),c(C).keyMapValid=!1):C.insertBefore(r,w),w=r}},T=function(){var e=C,t=c(e),n=t.keyMap,r=t.keyMapValid,u=e.lastChild,o=void 0;if(!(u===w&&r||t.attrs[d.placeholder]&&e!==E)){for(;u!==w;)e.removeChild(u),P.markDeleted(u),o=c(u).key,o&&delete n[o],u=e.lastChild;if(!r){for(o in n)u=n[o],u.parentNode!==e&&(P.markDeleted(u),delete n[o]);t.keyMapValid=!0}}},R=function(){C=w,w=null},I=function(){w=w?w.nextSibling:C.firstChild},J=function(){T(),w=C,C=C.parentNode},K=function(e,t,n){return I(),L(e,t,n),R(),C},U=function(){return J(),w},q=function(){return I(),L("#text",null,null),w},B=function(){return C},G=function(){w=C.lastChild},H=3,X=[],Y=function(e,t,n,r){for(var u=K(e,t,n),o=c(u),i=o.attrsArr,a=o.newAttrs,f=!1,l=H,d=0;l<arguments.length;l+=1,d+=1)if(i[d]!==arguments[l]){f=!0;break}for(;l<arguments.length;l+=1,d+=1)i[d]=arguments[l];if(d<i.length&&(f=!0,i.length=d),f){for(l=H;l<arguments.length;l+=2)a[arguments[l]]=arguments[l+1];for(var s in a)h(u,s,a[s]),a[s]=void 0}return u},Z=function(e,t,n){X[0]=e,X[1]=t,X[2]=n},F=function(e,t){X.push(e,t)},Q=function(){var e=Y.apply(null,X);return X.length=0,e},W=function(e){var t=U();return t},$=function(e,t,n,r){return Y.apply(null,arguments),W(e)},ee=function(e,t,n,r){return Y.apply(null,arguments),G(),W(e)},te=function(e,t){var n=q(),r=c(n);if(r.text!==e){r.text=e;for(var u=e,o=1;o<arguments.length;o+=1){var i=arguments[o];u=i(u)}n.data=u}return n};t.patch=D,t.patchInner=D,t.patchOuter=N,t.currentElement=B,t.skip=G,t.elementVoid=$,t.elementOpenStart=Z,t.elementOpenEnd=Q,t.elementOpen=Y,t.elementClose=W,t.elementPlaceholder=ee,t.text=te,t.attr=F,t.symbols=d,t.attributes=_,t.applyAttr=p,t.applyProp=y,t.notifications=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n={};return Object.keys(t).forEach(function(r){n[r]=e[r],e[r]=t[r]}),n}function o(e,t){(0,a.default)(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){return function(){var r=u(e,t),i=n.apply(void 0,arguments);return o(e,r),i}}};var i=n(2),a=r(i)},function(e,t){(function(t){"use strict";e.exports="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||this}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t=(0,b.default)(e),n=t.readyCallbacks,r=e.constructor;e[y.created]||(e[y.created]=!0,e[y.rendererDebounced]=(0,_.default)(r[y.renderer].bind(r)),r.props&&r[y.props]&&r[y.props](e),"function"==typeof r.created&&r.created(e),n&&(n.forEach(function(t){return t(e)}),delete t.readyCallbacks))}function f(e){var t=e.constructor.props;Object.keys(t).forEach(function(n){var r=t[n];(0,x.default)(e,r,n,!0)})}function l(e){var t=e.constructor;f(e),e[y.connected]=!0,e[y.rendererDebounced](e),"function"==typeof t.attached&&t.attached(e),e.setAttribute("defined","")}function c(e){var t=e.constructor;e[y.connected]=!1,"function"==typeof t.detached&&t.detached(e)}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r="object"===("undefined"==typeof Reflect?"undefined":s(Reflect))?Reflect.construct(C,t,this.constructor):C.call(this,t[0]);return a(r),r}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=n(8),y=n(6),v=n(12),b=r(v),h=n(13),_=r(h),m=n(3),g=r(m),O=n(15),A=r(O),k=n(16),j=r(k),M=n(17),x=r(M),P=n(10),w=r(P),C=w.default.HTMLElement,E=C?C.prototype:{};d.observedAttributes=[],d.props={},d.extend=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=function(e){function t(){return u(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}(t);if(!n.observedAttributes){var r=(0,A.default)(t);delete r.length,delete r.prototype,Object.defineProperties(n,r)}var a=(0,A.default)(e),f=(0,A.default)(e.prototype);return delete a.prototype,Object.defineProperties(n,a),Object.defineProperties(n.prototype,f),n},d.renderer=function(e){var t=e.elem,n=e.render,r=e.shadowRoot;(0,p.patchInner)(r,function(){var e=n(t);"function"==typeof e?e():Array.isArray(e)&&e.forEach(function(e){"function"==typeof e&&e()})})},d.updated=function(e,t){if(!t)return!0;for(var n=(0,g.default)(t),r=0;r<n.length;r+=1)if(t[n[r]]!==e[n[r]])return!0;return!1},d[y.updated]=function(e){if("function"==typeof this.updated){var t=e[y.props];return e[y.props]=(0,j.default)(e),this.updated(e,t)}return!0},d[y.renderer]=function(e){if(!e[y.rendering]&&e[y.connected]){e[y.rendering]=!0;var t=this[y.updated](e);if(!this.render||!this.renderer)return void(e[y.rendering]=!1);t&&(e.shadowRoot||e.attachShadow({mode:"open"}),this.renderer({elem:e,render:this.render,shadowRoot:e.shadowRoot}),"function"==typeof this.rendered&&this.rendered(e)),e[y.rendering]=!1}},d.prototype=Object.create(E,{connectedCallback:{configurable:!0,value:function(){l(this)}},disconnectedCallback:{configurable:!0,value:function(){c(this)}},attributeChangedCallback:{configurable:!0,value:function(e,t,n){var r=this.constructor.attributeChanged,u=(0,b.default)(this,"attributeLinks")[e];if(u){var o=(0,b.default)(this,"props")[u];if(o.syncingAttribute)o.syncingAttribute=!1;else{var i=this.constructor.props[u];o.settingAttribute=!0;var a=null!==n&&i.deserialize?i.deserialize(n):n;this[u]=a}}r&&r(this,{name:e,newValue:n,oldValue:t})}}}),t.default=d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(n[t]||(n[t]={}))||n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=!1,n=0,r=[],o=document.createElement("span"),i=new d(function(){e.apply(void 0,u(r)),t=!1,r=null});return i.observe(o,{childList:!0}),function(){for(var e=arguments.length,u=Array(e),i=0;i<e;i++)u[i]=arguments[i];r=u,t||(t=!0,o.textContent=""+n,n+=1)}}function i(e){var t=!1,n=[];return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];n=o,t||(t=!0,setTimeout(function(){t=!1,e.apply(void 0,u(n))},1))}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(14),f=r(a),l=n(10),c=r(l),d=c.default.MutationObserver;t.default=(0,f.default)(d)?o:i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["native code","[object MutationObserverConstructor]"];t.default=function(e){return n.map(function(t){return(e||"").toString().indexOf([t])>-1}).reduce(function(e,t){return e||t})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.default)(e).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})};var u=n(3),o=r(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t={};return(0,c.default)(e.constructor.props).forEach(function(n){t[n]=e[n]}),t}function o(e,t){(0,f.default)(e,t),e.constructor[i.renderer]&&e.constructor[i.renderer](e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return"undefined"==typeof t?u(e):o(e,t)};var i=n(6),a=n(2),f=r(a),l=n(3),c=r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n,r,u){var o=u.lastAssignedValue;(0,c.default)(o)&&("initial"in t?o=(0,y.default)(e,n,t):"default"in t&&(o=(0,s.default)(e,n,t))),!(0,c.default)(o)&&t.serialize&&(o=t.serialize(o)),(0,c.default)(o)||(u.syncingAttribute=!0,e.setAttribute(r,o))}function o(e,t,n,r,u){if(r&&!u.settingAttribute){var o=u.internalValue,i=t.serialize(o),a=e.getAttribute(r),f=(0,c.default)(i),l=!(f&&(0,c.default)(a)||i===a);u.syncingAttribute=!0;var d=(0,c.default)(u.lastAssignedValue);d||f?e.removeAttribute(r):e.setAttribute(r,i),!l&&u.syncingAttribute&&(u.syncingAttribute=!1)}u.settingAttribute=!1}function i(e,t,n,r){var i=(0,f.default)(e,"propertyLinks")[n],a=(0,b.default)(e,n);i&&(r?u(e,t,n,i,a):o(e,t,n,i,a))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(12),f=r(a),l=n(4),c=r(l),d=n(18),s=r(d),p=n(19),y=r(p),v=n(20),b=r(v)},function(e,t){"use strict";function n(e,t,n){return"function"==typeof n.default?n.default(e,{name:t}):n.default}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t,n){return"function"==typeof n.initial?n.initial(e,{name:t}):n.initial}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=(0,i.default)(e,"props");return n[t]||(n[t]={})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(12),i=r(o)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.props;return(0,m.default)(t).reduce(function(e,n){return e[n]=t[n],"function"!=typeof e[n]&&(e[n]=(0,h.default)(e[n])),e},{})}function o(e){var t=u(e);return(0,m.default)(t).reduce(function(e,n){return e[n]=t[n](n),e},{})}function i(e){var t=e.observedAttributes,n=e.props;n&&((0,m.default)(n).forEach(function(e){var r=n[e],u=r.attribute;if(u){var o=r.attribute=u===!0?(0,v.default)(e):u;t.indexOf(o)===-1&&t.push(o)}}),Object.defineProperty(e,"observedAttributes",{configurable:!0,enumerable:!0,get:function(){return t}}))}function a(e){var t=o(e);return function(e){t&&(0,m.default)(t).forEach(function(n){var r=t[n];r.created(e);var u=n in e,o=u&&e[n];Object.defineProperty(e,n,r),u&&(e[n]=o)})}}function f(e){var t="xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)});return e+"-"+t}function l(e,t){t[d.name]=e,t[d.props]=a(t)}Object.defineProperty(t,"__esModule",{value:!0});var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){if(void 0===t)throw new Error("You have to define options to register a component "+e);var n="object"===("undefined"==typeof t?"undefined":c(t))?p.default.extend(t):t,r=O.default.customElements;if(i(n),!r)throw new Error("Skate requires native custom element support or a polyfill.");var u=e;return r.get(e)&&(u=f(e)),l(u,n),r.define(u,n,n.extends?{extends:n.extends}:null),n};var d=n(6),s=n(11),p=r(s),y=n(22),v=r(y),b=n(23),h=r(b),_=n(3),m=r(_),g=n(10),O=r(g)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n={configurable:!0,enumerable:!0};return n.created=function(n){var r=(0,m.default)(n,e),u=t.attribute===!0?(0,p.default)(e):t.attribute,o=n[e];(0,l.default)(n,"attributeLinks")[u]=e,(0,l.default)(n,"propertyLinks")[e]=u,(0,d.default)(o)&&(u&&n.hasAttribute(u)?o=t.deserialize(n.getAttribute(u)):"initial"in t?o=(0,h.default)(n,e,t):"default"in t&&(o=(0,v.default)(n,e,t))),r.internalValue=t.coerce?t.coerce(o):o},n.get=function(){var n=(0,m.default)(this,e),r=n.internalValue;return"function"==typeof t.get?t.get(this,{name:e,internalValue:r}):r},n.set=function(n){var r=(0,m.default)(this,e);r.lastAssignedValue=n;var u=r.oldValue;(0,d.default)(u)&&(u=null),(0,d.default)(n)&&(n=(0,v.default)(this,e,t)),"function"==typeof t.coerce&&(n=t.coerce(n));var i={name:e,newValue:n,oldValue:u};"function"==typeof t.set&&t.set(this,i),this[o.rendererDebounced](this),r.internalValue=r.oldValue=n,this[o.connected]&&(0,O.default)(this,t,e,!1)},n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e=e||{},"function"==typeof e&&(e={coerce:e}),function(t){return u(t,(0,a.default)({default:null,deserialize:function(e){return e},serialize:function(e){return e}},e))}};var o=n(6),i=n(2),a=r(i),f=n(12),l=r(f),c=n(4),d=r(c),s=n(22),p=r(s),y=n(18),v=r(y),b=n(19),h=r(b),_=n(20),m=r(_),g=n(17),O=r(g)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.detail;delete t.detail;var r=void 0;return a?(r=new a(e,t),Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),Object.defineProperty(r,"composed",{value:t.composed}),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return void 0===n.bubbles&&(n.bubbles=!0),void 0===n.cancelable&&(n.cancelable=!0),void 0===n.composed&&(n.composed=!0),e.dispatchEvent(u(t,n))};var o=n(10),i=r(o),a=function(e){if(e)try{new e("emit-init")}catch(e){return}return e}(i.default.Event)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){var r=o(n.target),i=t||n.target.name||"value";if(i.indexOf(".")>-1){var f=i.split("."),l=f[0],c=f.pop(),d=f.reduce(function(e,t){return e&&e[t]},e);d[c||n.target.name]=r,(0,a.default)(e,u({},l,e[l]))}else(0,a.default)(e,u({},i,r))}};var i=n(16),a=r(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);e[u.created]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]};var u=n(6),o=n(12),i=r(o)}])}); | ||
//# sourceMappingURL=index-with-deps.min.js.map |
@@ -442,13 +442,18 @@ (function (global, factory) { | ||
var oldFunc = events[ename]; | ||
// Remove old listener so they don't double up. | ||
if (oldFunc) { | ||
elem.removeEventListener(ename, oldFunc); | ||
// Undefined indicates that there is no listener yet. | ||
if (typeof events[ename] === 'undefined') { | ||
// We only add a single listener once. Originally this was a workaround for | ||
// the Webcomponents ShadyDOM polyfill not removing listeners, but it's | ||
// also a simpler model for binding / unbinding events because you only | ||
// have a single handler you need to worry about and a single place where | ||
// you only store one event handler | ||
elem.addEventListener(ename, function (e) { | ||
if (events[ename]) { | ||
events[ename].call(this, e); | ||
} | ||
}); | ||
} | ||
// Bind new listener. | ||
if (newFunc) { | ||
elem.addEventListener(ename, events[ename] = newFunc); | ||
} | ||
// Not undefined indicates that we have set a listener, so default to null. | ||
events[ename] = typeof newFunc === 'function' ? newFunc : null; | ||
} | ||
@@ -1508,7 +1513,6 @@ | ||
e = new Event(name, opts); | ||
if (typeof detail !== 'undefined') { | ||
Object.defineProperty(e, 'detail', { value: detail }); | ||
} | ||
Object.defineProperty(e, 'detail', { value: detail }); | ||
} else { | ||
e = document.createEvent('CustomEvent'); | ||
Object.defineProperty(e, 'composed', { value: opts.composed }); | ||
e.initCustomEvent(name, opts.bubbles, opts.cancelable, detail); | ||
@@ -1515,0 +1519,0 @@ } |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("incremental-dom"),require("window-or-global")):"function"==typeof define&&define.amd?define(["exports","incremental-dom","window-or-global"],t):t(e.skate=e.skate||{},e.IncrementalDOM,e.windowOrGlobal)}(this,function(e,t,n){function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.enumOnly,r=void 0!==n&&n,o=Object[r?"keys":"getOwnPropertyNames"](e);return"function"==typeof Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o}function o(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.unshift({},e),J.apply(void 0,n)}}function i(e,t){var n={};return Object.keys(t).forEach(function(r){n[r]=e[r],e[r]=t[r]}),n}function u(e,t){J(e,t)}function a(e,t,n){var r=e[ge];r||(r=e[ge]={});var o=r[t];o&&e.removeEventListener(t,o),n&&e.addEventListener(t,r[t]=n)}function c(e){return"function"==typeof e?e[$]||e:e}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Ae=[e,t,n]}function l(){var e=Ce.apply(void 0,pe(Ae));return Ae=null,e}function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:we;return function r(){for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];if(i[0]=c(i[0]),_e=null,"function"==typeof i[0])return _e=i[0],n.apply(void 0,i);if(he.length)he[he.length-1].push([r,i]);else{if(e===xe){if(ke)return++ke;var a=e.apply(void 0,i);return a[be]&&++ke,a}if(e===t.elementClose){if(1===ke&&t.skip(),ke&&--ke)return;var s=e.apply(void 0,i),d=s[te];return delete s[te],"function"==typeof d&&d(s),s}if(!ke||e===f||e===l)return e.apply(void 0,i)}}}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];_e?_e[me][t[0]]=t[1]:he.length?he[he.length-1].push([d,t]):(Ae.push(t[0]),Ae.push(t[1]))}function p(e,t,n){for(var r={key:t,statics:n},o=arguments.length,i=Array(o>3?o-3:0),u=3;u<o;u++)i[u-3]=arguments[u];for(var a=0;a<i.length;a+=2)r[i[a]]=i[a+1];e[me]=r,he.push([])}function v(e){var t=he.pop(),n=e[me];delete e[me];var r=e(n,function(){return t.forEach(function(e){return e[0].apply(e,pe(e[1]))})});return"function"==typeof r?r():r}function y(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ce.apply(void 0,[e].concat(n)),Pe(e)}function h(e,t){for(var n="undefined"==typeof t?"undefined":ce(t),r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return"function"!==n&&"string"!==n&&"number"!==n||o.unshift(t),null!==t&&"object"===n||(t={}),Ee(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return d(e,t[e])}),je(e),o.forEach(function(e){var t="undefined"==typeof e?"undefined":ce(e);"function"===t?e():"string"===t||"number"===t?Se(e):Array.isArray(e)&&e.forEach(function(e){return e()})}),Pe(e)}function b(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.bind.apply(h,[null].concat(t))}:t.map(function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return h.bind.apply(h,[null,e].concat(n))}})}function g(e){var t=!1,n=0,r=[],o=document.createElement("span"),i=new Re(function(){e.apply(void 0,pe(r)),t=!1,r=null});return i.observe(o,{childList:!0}),function(){for(var e=arguments.length,i=Array(e),u=0;u<e;u++)i[u]=arguments[u];r=i,t||(t=!0,o.textContent=""+n,n+=1)}}function m(e){var t=!1,n=[];return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];n=o,t||(t=!0,setTimeout(function(){t=!1,e.apply(void 0,pe(n))},1))}}function _(e){var t={};return r(e.constructor.props).forEach(function(n){t[n]=e[n]}),t}function A(e,t){J(e,t),e.constructor[ne]&&e.constructor[ne](e)}function k(e,t,n){return"function"==typeof n.default?n.default(e,{name:t}):n.default}function w(e,t,n){return"function"==typeof n.initial?n.initial(e,{name:t}):n.initial}function O(e,t){var n=Ve(e,"props");return n[t]||(n[t]={})}function x(e,t,n,r,o){var i=o.lastAssignedValue;K(i)&&("initial"in t?i=w(e,n,t):"default"in t&&(i=k(e,n,t))),!K(i)&&t.serialize&&(i=t.serialize(i)),K(i)||(o.syncingAttribute=!0,e.setAttribute(r,i))}function E(e,t,n,r,o){if(r&&!o.settingAttribute){var i=o.internalValue,u=t.serialize(i),a=e.getAttribute(r),c=K(u),f=!(c&&K(a)||u===a);o.syncingAttribute=!0;var l=K(o.lastAssignedValue);l||c?e.removeAttribute(r):e.setAttribute(r,u),!f&&o.syncingAttribute&&(o.syncingAttribute=!1)}o.settingAttribute=!1}function j(e,t,n,r){var o=Ve(e,"propertyLinks")[n],i=O(e,n);o&&(r?x(e,t,n,o,i):E(e,t,n,o,i))}function C(e){var t=Ve(e),n=t.readyCallbacks,r=e.constructor;e[X]||(e[X]=!0,e[oe]=Te(r[ne].bind(r)),r.props&&r[ee]&&r[ee](e),"function"==typeof r.created&&r.created(e),n&&(n.forEach(function(t){return t(e)}),delete t.readyCallbacks))}function P(e){var t=e.constructor.props;Object.keys(t).forEach(function(n){var r=t[n];j(e,r,n,!0)})}function S(e){var t=e.constructor;P(e),e[W]=!0,e[oe](e),"function"==typeof t.attached&&t.attached(e),e.setAttribute("defined","")}function z(e){var t=e.constructor;e[W]=!1,"function"==typeof t.detached&&t.detached(e)}function V(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r="object"===("undefined"==typeof Reflect?"undefined":ce(Reflect))?Reflect.construct(Ie,t,this.constructor):Ie.call(this,t[0]);return C(r),r}function L(e,t){var n={configurable:!0,enumerable:!0};return n.created=function(n){var r=O(n,e),o=t.attribute===!0?Ge(e):t.attribute,i=n[e];Ve(n,"attributeLinks")[o]=e,Ve(n,"propertyLinks")[e]=o,K(i)&&(o&&n.hasAttribute(o)?i=t.deserialize(n.getAttribute(o)):"initial"in t?i=w(n,e,t):"default"in t&&(i=k(n,e,t))),r.internalValue=t.coerce?t.coerce(i):i},n.get=function(){var n=O(this,e),r=n.internalValue;return"function"==typeof t.get?t.get(this,{name:e,internalValue:r}):r},n.set=function(n){var r=O(this,e);r.lastAssignedValue=n;var o=r.oldValue;K(o)&&(o=null),K(n)&&(n=k(this,e,t)),"function"==typeof t.coerce&&(n=t.coerce(n));var i={name:e,newValue:n,oldValue:o};"function"==typeof t.set&&t.set(this,i),this[oe](this),r.internalValue=r.oldValue=n,this[W]&&j(this,t,e,!1)},n}function N(e){var t=e.props;return r(t).reduce(function(e,n){return e[n]=t[n],"function"!=typeof e[n]&&(e[n]=Je(e[n])),e},{})}function R(e){var t=N(e);return r(t).reduce(function(e,n){return e[n]=t[n](n),e},{})}function T(e){var t=e.observedAttributes,n=e.props;n&&(r(n).forEach(function(e){var r=n[e],o=r.attribute;if(o){var i=r.attribute=o===!0?Ge(e):o;t.indexOf(i)===-1&&t.push(i)}}),Object.defineProperty(e,"observedAttributes",{configurable:!0,enumerable:!0,get:function(){return t}}))}function M(e){var t=R(e);return function(e){t&&r(t).forEach(function(n){var r=t[n];r.created(e);var o=n in e,i=o&&e[n];Object.defineProperty(e,n,r),o&&(e[n]=i)})}}function D(e){var t="xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)});return e+"-"+t}function I(e,t){t[$]=e,t[ee]=M(t)}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.detail;delete t.detail;var r=void 0;return He?(r=new He(e,t),"undefined"!=typeof n&&Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}function G(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}n="default"in n?n.default:n;var J=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.forEach(function(t){return r(t).forEach(function(n){return e[n]=t[n]})}),e},K=function(e){return"undefined"==typeof e||null===e},H=function(e){return isNaN(e)?void 0:Number(e)},U=function(e){return K(e)?void 0:String(e)},Y=o({coerce:function(e){return Array.isArray(e)?e:[e]},default:function(){return[]},deserialize:JSON.parse,serialize:JSON.stringify}),Z=o({coerce:function(e){return!!e},default:!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":void 0}}),B=o({default:0,coerce:H,deserialize:H,serialize:H}),F=o({default:"",coerce:U,deserialize:U,serialize:U}),Q=Object.freeze({create:o,array:Y,boolean:Z,number:B,string:F}),W="____skate_connected",X="____skate_created",$="____skate_name",ee="____skate_props",te="____skate_ref",ne="____skate_renderer",re="____skate_rendering",oe="____skate_rendererDebounced",ie="____skate_updated",ue=Object.freeze({name:$}),ae=function(e,t){return function(n){return function(){var r=i(e,t),o=n.apply(void 0,arguments);return u(e,r),o}}},ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe=(function(){function e(e){this.value=e}function t(t){function n(e,t){return new Promise(function(n,o){var a={key:e,arg:t,resolve:n,reject:o,next:null};u?u=u.next=a:(i=u=a,r(e,t))})}function r(n,i){try{var u=t[n](i),a=u.value;a instanceof e?Promise.resolve(a.value).then(function(e){r("next",e)},function(e){r("throw",e)}):o(u.done?"return":"normal",u.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":i.resolve({value:t,done:!0});break;case"throw":i.reject(t);break;default:i.resolve({value:t,done:!1})}i=i.next,i?r(i.key,i.arg):u=null}var i,u;this._invoke=n,"function"!=typeof t.return&&(this.return=void 0)}return"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)},{wrap:function(e){return function(){return new t(e.apply(this,arguments))}},await:function(t){return new e(t)}}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),le=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},se=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},de=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},pe=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},ve=n.customElements,ye=t.attributes[t.symbols.default],he=[],be="__skip",ge="__events",me="__props",_e=void 0,Ae=void 0,ke=0,we=function(){},Oe=ae(t.attributes,le({key:we,statics:we,checked:t.applyProp,className:t.applyProp,disabled:t.applyProp,value:t.applyProp,ref:function(e,t,n){e[te]=n},skip:function(e,t,n){n?e[be]=!0:delete e[be]}},t.symbols.default,function(e,n,r){var o=ve.get(e.tagName)||{props:{},prototype:{}},i=o.props,u=o.prototype;if((n in i||n in e||n in u)&&!("ownerSVGElement"in e))return void t.applyProp(e,n,r);if(r===!1)return void ye(e,n);if(0===n.indexOf("on")){var c=n[2],f=void 0;if("-"===c?f=n.substring(3):c===c.toUpperCase()&&(f=c.toLowerCase()+n.substring(3)),f)return void a(e,f,r)}ye(e,n,r)})),xe=Oe(t.elementOpen),Ee=s(f,p),je=s(l),Ce=s(xe,p),Pe=s(t.elementClose,v),Se=s(t.text),ze=Object.freeze({element:h,builder:b,attr:d,elementClose:Pe,elementOpen:Ce,elementOpenEnd:je,elementOpenStart:Ee,elementVoid:y,text:Se}),Ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(n[t]||(n[t]={}))||n},Le=["native code","[object MutationObserverConstructor]"],Ne=function(e){return Le.map(function(t){return(e||"").toString().indexOf([t])>-1}).reduce(function(e,t){return e||t})},Re=n.MutationObserver,Te=Ne(Re)?g:m,Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r(e).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})},De=function(e,t){return"undefined"==typeof t?_(e):A(e,t)},Ie=n.HTMLElement,qe=Ie?Ie.prototype:{};V.observedAttributes=[],V.props={},V.extend=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=function(e){function t(){return fe(this,t),de(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return se(t,e),t}(t);if(!n.observedAttributes){var r=Me(t);delete r.length,delete r.prototype,Object.defineProperties(n,r)}var o=Me(e),i=Me(e.prototype);return delete o.prototype,Object.defineProperties(n,o),Object.defineProperties(n.prototype,i),n},V.renderer=function(e){var n=e.elem,r=e.render,o=e.shadowRoot;t.patchInner(o,function(){var e=r(n);"function"==typeof e?e():Array.isArray(e)&&e.forEach(function(e){"function"==typeof e&&e()})})},V.updated=function(e,t){if(!t)return!0;for(var n=r(t),o=0;o<n.length;o+=1)if(t[n[o]]!==e[n[o]])return!0;return!1},V[ie]=function(e){if("function"==typeof this.updated){var t=e[ee];return e[ee]=De(e),this.updated(e,t)}return!0},V[ne]=function(e){if(!e[re]&&e[W]){e[re]=!0;var t=this[ie](e);if(!this.render||!this.renderer)return void(e[re]=!1);t&&(e.shadowRoot||e.attachShadow({mode:"open"}),this.renderer({elem:e,render:this.render,shadowRoot:e.shadowRoot}),"function"==typeof this.rendered&&this.rendered(e)),e[re]=!1}},V.prototype=Object.create(qe,{connectedCallback:{configurable:!0,value:function(){S(this)}},disconnectedCallback:{configurable:!0,value:function(){z(this)}},attributeChangedCallback:{configurable:!0,value:function(e,t,n){var r=this.constructor.attributeChanged,o=Ve(this,"attributeLinks")[e];if(o){var i=Ve(this,"props")[o];if(i.syncingAttribute)i.syncingAttribute=!1;else{var u=this.constructor.props[o];i.settingAttribute=!0;var a=null!==n&&u.deserialize?u.deserialize(n):n;this[o]=a}}r&&r(this,{name:e,newValue:n,oldValue:t})}}});var Ge=function(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})},Je=function(e){return e=e||{},"function"==typeof e&&(e={coerce:e}),function(t){return L(t,J({default:null,deserialize:function(e){return e},serialize:function(e){return e}},e))}},Ke=function(e,t){if(void 0===t)throw new Error("You have to define options to register a component "+e);var r="object"===("undefined"==typeof t?"undefined":ce(t))?V.extend(t):t,o=n.customElements;if(T(r),!o)throw new Error("Skate requires native custom element support or a polyfill.");var i=e;return o.get(e)&&(i=D(e)),I(i,r),o.define(i,r,r.extends?{extends:r.extends}:null),r},He=function(e){if(e)try{new e("emit-init")}catch(e){return}return e}(n.Event),Ue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return void 0===n.bubbles&&(n.bubbles=!0),void 0===n.cancelable&&(n.cancelable=!0),void 0===n.composed&&(n.composed=!0),e.dispatchEvent(q(t,n))},Ye=function(e,t){return function(n){var r=G(n.target),o=t||n.target.name||"value";if(o.indexOf(".")>-1){var i=o.split("."),u=i[0],a=i.pop(),c=i.reduce(function(e,t){return e&&e[t]},e);c[a||n.target.name]=r,De(e,le({},u,e[u]))}else De(e,le({},o,r))}},Ze=function(e,t){var n=Ve(e);e[X]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]},Be=b();e.Component=V,e.define=Ke,e.emit=Ue,e.h=Be,e.link=Ye,e.prop=Q,e.props=De,e.ready=Ze,e.symbols=ue,e.vdom=ze,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("incremental-dom"),require("window-or-global")):"function"==typeof define&&define.amd?define(["exports","incremental-dom","window-or-global"],t):t(e.skate=e.skate||{},e.IncrementalDOM,e.windowOrGlobal)}(this,function(e,t,n){function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.enumOnly,r=void 0!==n&&n,o=Object[r?"keys":"getOwnPropertyNames"](e);return"function"==typeof Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o}function o(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.unshift({},e),J.apply(void 0,n)}}function i(e,t){var n={};return Object.keys(t).forEach(function(r){n[r]=e[r],e[r]=t[r]}),n}function u(e,t){J(e,t)}function a(e,t,n){var r=e[ge];r||(r=e[ge]={}),"undefined"==typeof r[t]&&e.addEventListener(t,function(e){r[t]&&r[t].call(this,e)}),r[t]="function"==typeof n?n:null}function c(e){return"function"==typeof e?e[$]||e:e}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Ae=[e,t,n]}function l(){var e=Pe.apply(void 0,pe(Ae));return Ae=null,e}function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:we;return function r(){for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];if(i[0]=c(i[0]),_e=null,"function"==typeof i[0])return _e=i[0],n.apply(void 0,i);if(he.length)he[he.length-1].push([r,i]);else{if(e===xe){if(ke)return++ke;var a=e.apply(void 0,i);return a[be]&&++ke,a}if(e===t.elementClose){if(1===ke&&t.skip(),ke&&--ke)return;var s=e.apply(void 0,i),d=s[te];return delete s[te],"function"==typeof d&&d(s),s}if(!ke||e===f||e===l)return e.apply(void 0,i)}}}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];_e?_e[me][t[0]]=t[1]:he.length?he[he.length-1].push([d,t]):(Ae.push(t[0]),Ae.push(t[1]))}function p(e,t,n){for(var r={key:t,statics:n},o=arguments.length,i=Array(o>3?o-3:0),u=3;u<o;u++)i[u-3]=arguments[u];for(var a=0;a<i.length;a+=2)r[i[a]]=i[a+1];e[me]=r,he.push([])}function v(e){var t=he.pop(),n=e[me];delete e[me];var r=e(n,function(){return t.forEach(function(e){return e[0].apply(e,pe(e[1]))})});return"function"==typeof r?r():r}function y(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Pe.apply(void 0,[e].concat(n)),Ce(e)}function h(e,t){for(var n="undefined"==typeof t?"undefined":ce(t),r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return"function"!==n&&"string"!==n&&"number"!==n||o.unshift(t),null!==t&&"object"===n||(t={}),je(e,t.key,t.statics),delete t.key,delete t.statics,Object.keys(t).forEach(function(e){return d(e,t[e])}),Ee(e),o.forEach(function(e){var t="undefined"==typeof e?"undefined":ce(e);"function"===t?e():"string"===t||"number"===t?Se(e):Array.isArray(e)&&e.forEach(function(e){return e()})}),Ce(e)}function b(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.bind.apply(h,[null].concat(t))}:t.map(function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return h.bind.apply(h,[null,e].concat(n))}})}function g(e){var t=!1,n=0,r=[],o=document.createElement("span"),i=new Re(function(){e.apply(void 0,pe(r)),t=!1,r=null});return i.observe(o,{childList:!0}),function(){for(var e=arguments.length,i=Array(e),u=0;u<e;u++)i[u]=arguments[u];r=i,t||(t=!0,o.textContent=""+n,n+=1)}}function m(e){var t=!1,n=[];return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];n=o,t||(t=!0,setTimeout(function(){t=!1,e.apply(void 0,pe(n))},1))}}function _(e){var t={};return r(e.constructor.props).forEach(function(n){t[n]=e[n]}),t}function A(e,t){J(e,t),e.constructor[ne]&&e.constructor[ne](e)}function k(e,t,n){return"function"==typeof n.default?n.default(e,{name:t}):n.default}function w(e,t,n){return"function"==typeof n.initial?n.initial(e,{name:t}):n.initial}function O(e,t){var n=Ve(e,"props");return n[t]||(n[t]={})}function x(e,t,n,r,o){var i=o.lastAssignedValue;K(i)&&("initial"in t?i=w(e,n,t):"default"in t&&(i=k(e,n,t))),!K(i)&&t.serialize&&(i=t.serialize(i)),K(i)||(o.syncingAttribute=!0,e.setAttribute(r,i))}function j(e,t,n,r,o){if(r&&!o.settingAttribute){var i=o.internalValue,u=t.serialize(i),a=e.getAttribute(r),c=K(u),f=!(c&&K(a)||u===a);o.syncingAttribute=!0;var l=K(o.lastAssignedValue);l||c?e.removeAttribute(r):e.setAttribute(r,u),!f&&o.syncingAttribute&&(o.syncingAttribute=!1)}o.settingAttribute=!1}function E(e,t,n,r){var o=Ve(e,"propertyLinks")[n],i=O(e,n);o&&(r?x(e,t,n,o,i):j(e,t,n,o,i))}function P(e){var t=Ve(e),n=t.readyCallbacks,r=e.constructor;e[X]||(e[X]=!0,e[oe]=Te(r[ne].bind(r)),r.props&&r[ee]&&r[ee](e),"function"==typeof r.created&&r.created(e),n&&(n.forEach(function(t){return t(e)}),delete t.readyCallbacks))}function C(e){var t=e.constructor.props;Object.keys(t).forEach(function(n){var r=t[n];E(e,r,n,!0)})}function S(e){var t=e.constructor;C(e),e[W]=!0,e[oe](e),"function"==typeof t.attached&&t.attached(e),e.setAttribute("defined","")}function z(e){var t=e.constructor;e[W]=!1,"function"==typeof t.detached&&t.detached(e)}function V(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r="object"===("undefined"==typeof Reflect?"undefined":ce(Reflect))?Reflect.construct(Ie,t,this.constructor):Ie.call(this,t[0]);return P(r),r}function L(e,t){var n={configurable:!0,enumerable:!0};return n.created=function(n){var r=O(n,e),o=t.attribute===!0?Ge(e):t.attribute,i=n[e];Ve(n,"attributeLinks")[o]=e,Ve(n,"propertyLinks")[e]=o,K(i)&&(o&&n.hasAttribute(o)?i=t.deserialize(n.getAttribute(o)):"initial"in t?i=w(n,e,t):"default"in t&&(i=k(n,e,t))),r.internalValue=t.coerce?t.coerce(i):i},n.get=function(){var n=O(this,e),r=n.internalValue;return"function"==typeof t.get?t.get(this,{name:e,internalValue:r}):r},n.set=function(n){var r=O(this,e);r.lastAssignedValue=n;var o=r.oldValue;K(o)&&(o=null),K(n)&&(n=k(this,e,t)),"function"==typeof t.coerce&&(n=t.coerce(n));var i={name:e,newValue:n,oldValue:o};"function"==typeof t.set&&t.set(this,i),this[oe](this),r.internalValue=r.oldValue=n,this[W]&&E(this,t,e,!1)},n}function N(e){var t=e.props;return r(t).reduce(function(e,n){return e[n]=t[n],"function"!=typeof e[n]&&(e[n]=Je(e[n])),e},{})}function R(e){var t=N(e);return r(t).reduce(function(e,n){return e[n]=t[n](n),e},{})}function T(e){var t=e.observedAttributes,n=e.props;n&&(r(n).forEach(function(e){var r=n[e],o=r.attribute;if(o){var i=r.attribute=o===!0?Ge(e):o;t.indexOf(i)===-1&&t.push(i)}}),Object.defineProperty(e,"observedAttributes",{configurable:!0,enumerable:!0,get:function(){return t}}))}function M(e){var t=R(e);return function(e){t&&r(t).forEach(function(n){var r=t[n];r.created(e);var o=n in e,i=o&&e[n];Object.defineProperty(e,n,r),o&&(e[n]=i)})}}function D(e){var t="xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"===e?t:3&t|8;return n.toString(16)});return e+"-"+t}function I(e,t){t[$]=e,t[ee]=M(t)}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.detail;delete t.detail;var r=void 0;return He?(r=new He(e,t),Object.defineProperty(r,"detail",{value:n})):(r=document.createEvent("CustomEvent"),Object.defineProperty(r,"composed",{value:t.composed}),r.initCustomEvent(e,t.bubbles,t.cancelable,n)),r}function G(e){var t=e.type;return"checkbox"===t||"radio"===t?!!e.checked&&(e.value||!0):e.value}n="default"in n?n.default:n;var J=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.forEach(function(t){return r(t).forEach(function(n){return e[n]=t[n]})}),e},K=function(e){return"undefined"==typeof e||null===e},H=function(e){return isNaN(e)?void 0:Number(e)},U=function(e){return K(e)?void 0:String(e)},Y=o({coerce:function(e){return Array.isArray(e)?e:[e]},default:function(){return[]},deserialize:JSON.parse,serialize:JSON.stringify}),Z=o({coerce:function(e){return!!e},default:!1,deserialize:function(e){return!(null===e)},serialize:function(e){return e?"":void 0}}),B=o({default:0,coerce:H,deserialize:H,serialize:H}),F=o({default:"",coerce:U,deserialize:U,serialize:U}),Q=Object.freeze({create:o,array:Y,boolean:Z,number:B,string:F}),W="____skate_connected",X="____skate_created",$="____skate_name",ee="____skate_props",te="____skate_ref",ne="____skate_renderer",re="____skate_rendering",oe="____skate_rendererDebounced",ie="____skate_updated",ue=Object.freeze({name:$}),ae=function(e,t){return function(n){return function(){var r=i(e,t),o=n.apply(void 0,arguments);return u(e,r),o}}},ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe=(function(){function e(e){this.value=e}function t(t){function n(e,t){return new Promise(function(n,o){var a={key:e,arg:t,resolve:n,reject:o,next:null};u?u=u.next=a:(i=u=a,r(e,t))})}function r(n,i){try{var u=t[n](i),a=u.value;a instanceof e?Promise.resolve(a.value).then(function(e){r("next",e)},function(e){r("throw",e)}):o(u.done?"return":"normal",u.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":i.resolve({value:t,done:!0});break;case"throw":i.reject(t);break;default:i.resolve({value:t,done:!1})}i=i.next,i?r(i.key,i.arg):u=null}var i,u;this._invoke=n,"function"!=typeof t.return&&(this.return=void 0)}return"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)},{wrap:function(e){return function(){return new t(e.apply(this,arguments))}},await:function(t){return new e(t)}}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),le=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},se=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},de=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},pe=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},ve=n.customElements,ye=t.attributes[t.symbols.default],he=[],be="__skip",ge="__events",me="__props",_e=void 0,Ae=void 0,ke=0,we=function(){},Oe=ae(t.attributes,le({key:we,statics:we,checked:t.applyProp,className:t.applyProp,disabled:t.applyProp,value:t.applyProp,ref:function(e,t,n){e[te]=n},skip:function(e,t,n){n?e[be]=!0:delete e[be]}},t.symbols.default,function(e,n,r){var o=ve.get(e.tagName)||{props:{},prototype:{}},i=o.props,u=o.prototype;if((n in i||n in e||n in u)&&!("ownerSVGElement"in e))return void t.applyProp(e,n,r);if(r===!1)return void ye(e,n);if(0===n.indexOf("on")){var c=n[2],f=void 0;if("-"===c?f=n.substring(3):c===c.toUpperCase()&&(f=c.toLowerCase()+n.substring(3)),f)return void a(e,f,r)}ye(e,n,r)})),xe=Oe(t.elementOpen),je=s(f,p),Ee=s(l),Pe=s(xe,p),Ce=s(t.elementClose,v),Se=s(t.text),ze=Object.freeze({element:h,builder:b,attr:d,elementClose:Ce,elementOpen:Pe,elementOpenEnd:Ee,elementOpenStart:je,elementVoid:y,text:Se}),Ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(n[t]||(n[t]={}))||n},Le=["native code","[object MutationObserverConstructor]"],Ne=function(e){return Le.map(function(t){return(e||"").toString().indexOf([t])>-1}).reduce(function(e,t){return e||t})},Re=n.MutationObserver,Te=Ne(Re)?g:m,Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r(e).reduce(function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t},{})},De=function(e,t){return"undefined"==typeof t?_(e):A(e,t)},Ie=n.HTMLElement,qe=Ie?Ie.prototype:{};V.observedAttributes=[],V.props={},V.extend=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=function(e){function t(){return fe(this,t),de(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return se(t,e),t}(t);if(!n.observedAttributes){var r=Me(t);delete r.length,delete r.prototype,Object.defineProperties(n,r)}var o=Me(e),i=Me(e.prototype);return delete o.prototype,Object.defineProperties(n,o),Object.defineProperties(n.prototype,i),n},V.renderer=function(e){var n=e.elem,r=e.render,o=e.shadowRoot;t.patchInner(o,function(){var e=r(n);"function"==typeof e?e():Array.isArray(e)&&e.forEach(function(e){"function"==typeof e&&e()})})},V.updated=function(e,t){if(!t)return!0;for(var n=r(t),o=0;o<n.length;o+=1)if(t[n[o]]!==e[n[o]])return!0;return!1},V[ie]=function(e){if("function"==typeof this.updated){var t=e[ee];return e[ee]=De(e),this.updated(e,t)}return!0},V[ne]=function(e){if(!e[re]&&e[W]){e[re]=!0;var t=this[ie](e);if(!this.render||!this.renderer)return void(e[re]=!1);t&&(e.shadowRoot||e.attachShadow({mode:"open"}),this.renderer({elem:e,render:this.render,shadowRoot:e.shadowRoot}),"function"==typeof this.rendered&&this.rendered(e)),e[re]=!1}},V.prototype=Object.create(qe,{connectedCallback:{configurable:!0,value:function(){S(this)}},disconnectedCallback:{configurable:!0,value:function(){z(this)}},attributeChangedCallback:{configurable:!0,value:function(e,t,n){var r=this.constructor.attributeChanged,o=Ve(this,"attributeLinks")[e];if(o){var i=Ve(this,"props")[o];if(i.syncingAttribute)i.syncingAttribute=!1;else{var u=this.constructor.props[o];i.settingAttribute=!0;var a=null!==n&&u.deserialize?u.deserialize(n):n;this[o]=a}}r&&r(this,{name:e,newValue:n,oldValue:t})}}});var Ge=function(e){return e.split(/([A-Z])/).reduce(function(e,t,n){var r=e&&n%2!==0?"-":"";return""+e+r+t.toLowerCase()})},Je=function(e){return e=e||{},"function"==typeof e&&(e={coerce:e}),function(t){return L(t,J({default:null,deserialize:function(e){return e},serialize:function(e){return e}},e))}},Ke=function(e,t){if(void 0===t)throw new Error("You have to define options to register a component "+e);var r="object"===("undefined"==typeof t?"undefined":ce(t))?V.extend(t):t,o=n.customElements;if(T(r),!o)throw new Error("Skate requires native custom element support or a polyfill.");var i=e;return o.get(e)&&(i=D(e)),I(i,r),o.define(i,r,r.extends?{extends:r.extends}:null),r},He=function(e){if(e)try{new e("emit-init")}catch(e){return}return e}(n.Event),Ue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return void 0===n.bubbles&&(n.bubbles=!0),void 0===n.cancelable&&(n.cancelable=!0),void 0===n.composed&&(n.composed=!0),e.dispatchEvent(q(t,n))},Ye=function(e,t){return function(n){var r=G(n.target),o=t||n.target.name||"value";if(o.indexOf(".")>-1){var i=o.split("."),u=i[0],a=i.pop(),c=i.reduce(function(e,t){return e&&e[t]},e);c[a||n.target.name]=r,De(e,le({},u,e[u]))}else De(e,le({},o,r))}},Ze=function(e,t){var n=Ve(e);e[X]?t(e):n.readyCallbacks?n.readyCallbacks.push(t):n.readyCallbacks=[t]},Be=b();e.Component=V,e.define=Ke,e.emit=Ue,e.h=Be,e.link=Ye,e.prop=Q,e.props=De,e.ready=Ze,e.symbols=ue,e.vdom=ze,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=index.min.js.map |
@@ -27,11 +27,10 @@ { | ||
"incremental-dom": "0.4.1", | ||
"window-or-global": "^1.0.1" | ||
"window-or-global": "1.0.1" | ||
}, | ||
"devDependencies": { | ||
"birdpoo": "0.x", | ||
"document-register-element": "1.x", | ||
"react": "15.x", | ||
"react-dom": "15.x", | ||
"skatejs-build": "9.x", | ||
"skatejs-web-components": "2.0.1" | ||
"skatejs-build": "12.x", | ||
"skatejs-web-components": "3.x" | ||
}, | ||
@@ -47,3 +46,3 @@ "scripts": { | ||
}, | ||
"version": "4.0.4" | ||
"version": "4.0.5" | ||
} |
@@ -21,7 +21,6 @@ import root from 'window-or-global'; | ||
e = new Event(name, opts); | ||
if (typeof detail !== 'undefined') { | ||
Object.defineProperty(e, 'detail', { value: detail }); | ||
} | ||
Object.defineProperty(e, 'detail', { value: detail }); | ||
} else { | ||
e = document.createEvent('CustomEvent'); | ||
Object.defineProperty(e, 'composed', { value: opts.composed }); | ||
e.initCustomEvent(name, opts.bubbles, opts.cancelable, detail); | ||
@@ -28,0 +27,0 @@ } |
@@ -47,13 +47,18 @@ /* eslint no-plusplus: 0 */ | ||
const oldFunc = events[ename]; | ||
// Remove old listener so they don't double up. | ||
if (oldFunc) { | ||
elem.removeEventListener(ename, oldFunc); | ||
// Undefined indicates that there is no listener yet. | ||
if (typeof events[ename] === 'undefined') { | ||
// We only add a single listener once. Originally this was a workaround for | ||
// the Webcomponents ShadyDOM polyfill not removing listeners, but it's | ||
// also a simpler model for binding / unbinding events because you only | ||
// have a single handler you need to worry about and a single place where | ||
// you only store one event handler | ||
elem.addEventListener(ename, function (e) { | ||
if (events[ename]) { | ||
events[ename].call(this, e); | ||
} | ||
}); | ||
} | ||
// Bind new listener. | ||
if (newFunc) { | ||
elem.addEventListener(ename, events[ename] = newFunc); | ||
} | ||
// Not undefined indicates that we have set a listener, so default to null. | ||
events[ename] = typeof newFunc === 'function' ? newFunc : null; | ||
} | ||
@@ -60,0 +65,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5
4890
706336
37
Updatedwindow-or-global@1.0.1