text: !function(t,e,n,r,o,i,u,a,s,c,f,l,d,p,h,y,v,m,b,g,S,w,k,_,C){!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ComponentElement=e():t.ComponentElement=e()}(t,function(){return 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}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||c.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&c.defineProperty(t,Symbol.toStringTag,{value:"Module"}),c.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=c.create(null);if(n.r(r),c.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return 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 c.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(e,n,r){"use strict";(function(e){function o(t){return(o="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})(t)}r.d(n,"a",function(){return i});var i="undefined"!==(void 0===t?"undefined":o(t))?t:"undefined"!==(void 0===e?"undefined":o(e))?e:"undefined"!==("undefined"==typeof self?"undefined":o(self))?self:f("return this;")()}).call(this,r(1))},function(e,n){function r(t){return(r="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})(t)}var o;o=function(){return this}();try{o=o||f("return this")()||(0,eval)("this")}catch(e){"object"===(void 0===t?"undefined":r(t))&&(o=t)}e.exports=o},function(n,o,u){"use strict";u.r(o);var a=f.bind.call.bind(f.bind)(f.call.bind,f.call),l=a(c.prototype.toString),d=function(t){return"[object Object]"===l(t)},h=function(t){return"[object String]"===l(t)},m=c.defineProperty,b=c.defineProperties,g=c.keys,w=function(t,e,n,r,o){var i=!(arguments.length>5&&arguments[5]!==C)||arguments[5],u=arguments.length>6&&arguments[6]!==C&&arguments[6],a=!(arguments.length>7&&arguments[7]!==C)||arguments[7],s={configurable:i,enumerable:u};return r||o?(s.get=r,s.set=o):(s.writable=a,s.value=n),m(t,e,s),t},E=[],M=s.isArray,P=(a(E.forEach),a(E.indexOf),a(E.splice),a(E.slice),_.log),A=(_.error,_.warn||P),D="undefined"!=typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",x=HTMLElement.prototype,R=e,O=R.head,T=function(t){return R.createElement(t)},q=(a(x.appendChild),a(x.insertBefore),a(x.hasAttribute),a(x.getAttribute),a(x.setAttribute)),L=a(x.removeAttribute);var $=function t(e){for(var n=e||{},r=arguments.length,o=new s(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var u,a,c=o.length,f=!1;for("boolean"==typeof e&&(f=e,n=o.shift()||{},c=o.length),u=0;u<c;u++)if(o[u])for(a in o[u])o[u].hasOwnProperty(a)&&(f&&d(n[a])&&d(o[u][a])?n[a]=t(!0,n[a],o[u][a]):n[a]=o[u][a]);return n};function I(t){return function(t){if(s.isArray(t)){for(var e=0,n=new s(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in c(t)||"[object Arguments]"===c.prototype.toString.call(t))return s.from(t)}(t)||function(){throw new y("Invalid attempt to spread non-iterable instance")}()}var N,j,Q=/native code/i,U=function(){if("undefined"!=typeof setImediate&&Q.test(setImediate.toString()))return setImediate;if("function"==typeof Promise&&Q.test(Promise.toString())){var t=Promise.resolve();return function(e){t.then(e).catch(function(t){return _.error(t)})}}var e=[],n=!1;return function(t){e.push(t),n||(n=!0,function t(){r(function(){e.shift()(),e.length?t():n=!1},0)}())}}(),H=!1,F=new Set,W=function(){var t=I(F);for(F.clear(),H=!1,N=0,j=t.length;N<j;N++)t[N]()};U.queue=function(t){F.add(t),H||(H=!0,U(W))};function z(t){if(t.constructor&&t===t.constructor.prototype)throw new v("Can not be accessed directly on constructor.prototype!")}var B=function(t,e,n,r){var o=e.split(/\s+/),i={};return o.forEach(function(e){t.addEventListener(e,n,r),i[e]={remove:function(){return t.removeEventListener(e,n,r)}}}),c.create({listeners:i,remove:function(){o.forEach(function(t){return i[t].remove()})}})};function V(t,e){return s.prototype.slice.call(t.querySelectorAll(e))}var Z,J=V;"undefined"==typeof WeakMap?function(){var e=c.defineProperty,n=i.now()%1e9,r=Z=function(){this.name="__st"+(1e9*p.random()>>>0)+n+++"__"};r.prototype={set:function(t,n){var r=t[this.name];return r&&r[0]===t?r[1]=n:e(t,this.name,{value:[t,n],writable:!0}),this},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:C},delete:function(t){var e=t[this.name];return!(!e||e[0]!==t)&&(e[0]=e[1]=C,!0)},has:function(t){var e=t[this.name];return!!e&&e[0]===t}},t.WeakMap=r}():Z=WeakMap;var Y={stash:new Z,create:function(){return new Z}};function G(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),c.defineProperty(t,r.key,r)}}var K=Symbol("state"),X=function(){function t(){!function(t,e){if(!(t instanceof e))throw new y("Cannot call a class as a function")}(this,t)}return function(t,e,n){e&&G(t.prototype,e),n&&G(t,n)}(t,[{key:"on",value:function(t,e){var n=this;return tt(this,t).add(e),function(){return tt(n,t).delete(e)}}},{key:"emit",value:function(t,e){tt(this,t).forEach(function(t){return t(e)})}},{key:"clear",value:function(){tt(this).clear()}}]),t}();function tt(t,e){return t[K]||(t[K]=new Map),e?(t[K].has(e)||t[K].set(e,new Set),t[K].get(e)):t[K]}var et=u(0);function nt(t,e){m(this,"_",{value:{keys:t.slice(0),values:e?e.slice(0):null,idx:0,total:t.length}})}b(nt.prototype,{constructor:{value:nt},next:{enumerable:!0,configurable:!0,value:function(){var t={done:this._.idx===this._.total};if(t.done)return t.value=C,t;var e=this._.idx++;return t.value=this._.keys[e],this._.values&&(t.value=[t.value,this._.values[e]]),t}}}),m(nt.prototype,D,{value:function(){return this}});var rt=p.random().toString(36).substring(7),ot=1,it={toString:function(){return"Symbol(".concat(this.description,").").concat(this._id)},valueOf:function(){return this.toString()}},ut=et.a.Symbol||function t(e){if(this instanceof t)throw new y("FakeSymbol is not a constructor");return c.create(it,{description:{value:arguments.length?e:""},_id:{value:"".concat(rt,".").concat(ot++)}})};nt.iterator=nt;var at=Y.create(),st=ut("state");function ct(t,e){return e.aliases.some(function(e){return t.hasAttribute(e)})}function ft(t){if(!at.has(t)){var e={isCssScopingDone:!1,templateEle:null,ev:new X,destroyCallbacks:[],destroyQueued:null,isMounted:!1};at.set(t,e)}return at.get(t)}function lt(t){var e=dt(t);if(!e.propsDef){var n=e.propsDef={},r=t.propsDef;r&&g(r).forEach(function(t){if(n[t]=r[t],M(n[t].aliases)){var e=$({},r[t],{_isAlias:!0});n[t].aliases.forEach(function(t){return!n[t]&&(n[t]=e)})}})}return e.propsDef}function dt(t){return at.has(t)||at.set(t,{propsDef:null,templateEle:null,observedAttrs:null}),at.get(t)}var pt=function(){return!!et.a.ShadyCSS},ht=function(t){return t.parentNode.removeChild(t)};function yt(){return(O.createShadowRoot||O.attachShadow)&&(!pt()||et.a.ShadyCSS.nativeShadow)}function vt(t,n){if(pt()){var r,o=h(t),i=dt(n.constructor),u=i.templateEle;return u||(i.templateEle=u=T("template"),o||t.innerHTML?u.innerHTML=t.innerHTML||t:u.appendChild(t.cloneNode(!0)),function(t,e){pt()&&et.a.ShadyCSS.prepareTemplate(t,e.constructor.tagName)}(u,n)),o?(r=T("template")).innerHTML=t:r=t,r.content||(r.content=r),et.a.ShadyCSS.prepareTemplateDom(r,n.constructor.tagName),V(r.content||r,"style").forEach(ht),o&&(r=e.importNode(r.content,!0)),r}}function mt(t){return(mt="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})(t)}function bt(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),c.defineProperty(t,r.key,r)}}function gt(t,e){return!e||"object"!==mt(e)&&"function"!=typeof e?St(t):e}function St(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wt(t){var e="function"==typeof Map?new Map:C;return(wt=function(t){if(null===t||!function(t){return-1!==f.toString.call(t).indexOf("[native code]")}(t))return t;if("function"!=typeof t)throw new y("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return kt(t,arguments,Ct(this).constructor)}return n.prototype=c.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_t(n,t)})(t)}function kt(t,e,n){return(kt=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return i.prototype.toString.call(Reflect.construct(i,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(f.bind.apply(t,r));return n&&_t(o,n.prototype),o}).apply(null,arguments)}function _t(t,e){return(_t=c.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ct(t){return(Ct=c.setPrototypeOf?c.getPrototypeOf:function(t){return t.__proto__||c.getPrototypeOf(t)})(t)}var Et=O.createShadowRoot||O.attachShadow,Mt={bubbles:!0,cancelable:!0,composed:!0},Pt=t.customElements,At=c.freeze(c.create(null)),Dt=Symbol("ev.props.any"),xt=!1,Rt=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new y("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=new s(r),i=0;i<r;i++)o[i]=arguments[i];var u=(n=gt(this,(t=Ct(e)).call.apply(t,[this].concat(o))))||St(St(n));return function(t){var e=t.constructor,n=e.useShadow,r=e.shadowMode;n&&Et?t.shadowRoot?t._$ui=t.shadowRoot:t._$ui=t.attachShadow({mode:r}):t._$ui=t;t.onPropsChange(t.update),t.didInit()}(u),gt(n,u)}return function(t,e){if("function"!=typeof e&&null!==e)throw new y("Super expression must either be null or a function");t.prototype=c.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_t(t,e)}(e,wt(HTMLElement)),function(t,e,n){e&&bt(t.prototype,e),n&&bt(t,n)}(e,[{key:"destroy",value:function(){if(at.has(this)){var t=ft(this);at.delete(this),t.destroyQueued&&(k(t.destroyQueued),t.destroyQueued=null),t.destroyCallbacks.splice(0).forEach(function(t){return t()})}this.parentNode&&this.parentNode.removeChild(this),this.didDestroy()}},{key:"onDestroy",value:function(t){ft(this).destroyCallbacks.push(t)}},{key:"$",value:function(t){return this.$ui.querySelector(t)}},{key:"$$",value:function(t){return J(this.$ui,t)}},{key:"_setView",value:function(t){var e=t;yt()||this._polyfillDone||(this._polyfillDone=!0,e=vt(t,this)||t),"string"==typeof e?this.$ui.innerHTML=e:(this.$ui.textContent="",this.$ui.appendChild(e)),yt()||function(t){pt()&&et.a.ShadyCSS.styleSubtree(t)}(this)}},{key:"didInit",value:function(){"init"in this&&this.init()}},{key:"didMount",value:function(){"ready"in this&&this.ready(),"mounted"in this&&this.mounted()}},{key:"willRender",value:function(){}},{key:"render",value:function(){return"<span></span>"}},{key:"didRender",value:function(){}},{key:"didUnmount",value:function(){"unmounted"in this&&this.unmounted()}},{key:"didDestroy",value:function(){}},{key:"emit",value:function(t,e,n){var r=t.toLowerCase(),o=new S(t,$({},this.constructor.eventInitOptions,n,{detail:e}));"function"==typeof this[r]&&this[r](o),this.dispatchEvent(o)}},{key:"on",value:function(t,e,n){return B(this,t,e,n)}},{key:"onPropsChange",value:function(t,e){return ft(this).ev.on(e||Dt,t)}},{key:"attributeChangedCallback",value:function(t,e,n){var r=lt(this.constructor);r[t]&&(t=r[t].name),this.props[t]=n}},{key:"connectedCallback",value:function(){var t=ft(this);t.destroyQueued&&(k(t.destroyQueued),t.destroyQueued=null),yt()||function(t){pt()&&et.a.ShadyCSS.styleElement(t)}(this),t.isMounted=!0,this.didMount(),this.update()}},{key:"disconnectedCallback",value:function(){if(at.has(this)){var t=ft(this);t.destroyQueued||(t.destroyQueued=r(this.destroy.bind(this),this.constructor.delayDestroy)),t.isMounted=!1}this.didUnmount()}},{key:"props",get:function(){var t=this;if(z(this),xt)return C;xt=!0;var e=lt(this.constructor),n={},r=ft(this).ev,o=function(){return r.emit(Dt)};return o._for=this,o._ev=Dt,g(e).forEach(function(i){if(!e[i]||!e[i]._isAlias){var u=e[i].default.call(t),a=function(){return r.emit(i)};a._for=t,a._ev=i,e[i].attr&&!e[i].boolean&&ct(t,e[i])?u=function(t,e){var n="";return e.aliases.some(function(e){if(t.hasAttribute(e))return n=t.getAttribute(e),!0}),n}(t,e[i]):t.hasOwnProperty(i)&&(u=t[i],delete t[i]),w(n,i,C,function(){return u},function(n){return n=e[i].filter.call(t,n),t.isMounted&&(U.queue(a),U.queue(o)),u=n},!0,!0)}}),w(this,"props",n,C,C,!0,!0,!1),xt=!1,n}},{key:"hasRequiredProps",get:function(){var t=this;return z(this),g(this.constructor.propsDef).filter(function(e){return t.constructor.propsDef[e].required}).every(function(e){return!!t.props[e]})}},{key:"isMounted",get:function(){return z(this),ft(this).isMounted}},{key:"$ui",get:function(){return this._$ui}},{key:"update",get:function(){var t=this;if(z(this),xt)return C;var e=function(){if(t.isMounted){var e=t.willRender();("boolean"!=typeof e||e)&&(t._setView(t.render()),t.didRender())}};return e._for=this,xt=!0,w(this,"update",e),xt=!1,e}},{key:"queueUpdate",get:function(){return this._queueUpdate}},{key:"_queueUpdate",get:function(){var t=this;if(z(this),xt)return C;var e=function(){U.queue(t.update)};return e._for=this,xt=!0,w(this,"_queueUpdate",e),xt=!1,e}}],[{key:"define",value:function(t){t=t||this.tagName,Pt.get(t)?Pt.get(t)!==this&&A("".concat(t," is already a defined in customElementsRegistry as a different Class")):Pt.define(t,this)}},{key:"renderTemplate",value:function(){0}},{key:"tagName",get:function(){throw new v("tagName not defined")}},{key:"delayDestroy",get:function(){return 0}},{key:"useShadow",get:function(){return!0}},{key:"shadowMode",get:function(){return"open"}},{key:"template",get:function(){return"<div></div>"}},{key:"eventInitOptions",get:function(){return Mt}},{key:"observedAttributes",get:function(){var t=dt(this);if(!t.observedAttrs){var e=lt(this);t.observedAttrs=g(e).filter(function(t){return e[t].attr})}return t.observedAttrs}}]),e}();!function(t,e,n){e in t?c.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Rt,"propsDef",At);var Ot=/[A-Z]/,Tt=function(t){return t};function qt(){var t=arguments.length>0&&arguments[0]!==C?arguments[0]:{};return t.key&&t.kind?Lt({},t):Lt.bind(null,t)}function Lt(t,e){var n=e.key,r=e.initializer,o=e.descriptor,i=function(t,e,n,r){var o=$({name:t,attr:!1,required:!1,boolean:!1,default:e||Tt,filter:n||Tt,aliases:[t]},r);o.boolean&&(o.attr=!0,o.default=o.filter=function(e){var n=ct(this,o);return"boolean"==typeof e?(n!==e&&(e?q(this,t,e):L(this,t)),e):n});t.toLowerCase()!==t&&o.aliases.push(t.toLowerCase());Ot.test(t)&&o.aliases.push(function(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()})}(t));return o}(n,r||o.get,o.set,t),u=$t(n,n,i);return i.aliases&&(u.extras=i.aliases.filter(function(t){return t!==n}).map(function(t){return $t(t,n)})),u}function $t(t,e,n){var r={key:t,kind:"method",placement:"prototype",descriptor:{configurable:!0,get:function(){return z(this),this.props[e]},set:function(t){return z(this),this.props[e]=t}}};return n&&(r.finisher=function(e){e.hasOwnProperty("propsDef")||w(e,"propsDef",$(c.create(null),e.propsDef)),e.propsDef[t]=n}),r}function It(t){return t.key&&t.kind?Nt(t):Nt}function Nt(t){var e=t.kind,n=t.key,r=t.descriptor;if("method"===e&&r.value){var o=!1,i=r.value;delete r.value,delete r.writable,r.get=function(){if(z(this),!o){o=!0;var t=i.bind(this);return w(this,n,t),o=!1,t}}}return t}u.d(o,"ComponentElement",function(){return Rt}),u.d(o,"prop",function(){return qt}),u.d(o,"bind",function(){return It}),u.d(o,"getState",function(){return ft}),u.d(o,"STATE_SYMBOL",function(){return st}),u.d(o,"default",function(){return Rt})}])})}(window,document,location,setTimeout,setInterval,Date,String,Number,Array,Object,Function,atob,btoa,Math,JSON,TypeError,Error,encodeURIComponent,decodeURIComponent,requestAnimationFrame,CustomEvent,clearInterval,clearTimeout,console);
  //# sourceMappingURL=component-element.legacy.umd.min.js.map