doz
Version:
A JavaScript framework for building UI, almost like writing in VanillaJS.
2 lines • 101 kB
JavaScript
// [DOZ] Build version: 3.5.3
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Doz",[],t):"object"==typeof exports?exports.Doz=t():e.Doz=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=26)}([function(e,t,n){function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(e,t)}var r=n(2),a=r.registerDirective;e.exports=Object.assign({directive:o},n(29),n(30))},function(e,t){e.exports={COMPONENT_DYNAMIC_INSTANCE:"componentDynamicInstance",COMPONENT_INSTANCE:"componentInstance",COMPONENT_ROOT_INSTANCE:"componentRootInstance",PROPS_ATTRIBUTES:"props",ALREADY_WALKED:"walked",DEFAULT_SLOT_KEY:"__default__",NS:{SVG:"http://www.w3.org/2000/svg"},TAG:{ROOT:"dz-root",EACH:"dz-each-root",APP:"dz-app",EMPTY:"dz-empty",MOUNT:"dz-mount",SLOT:"dz-slot",SLOT_UPPERCASE:"DZ-SLOT",SUFFIX_ROOT:"-root",TEXT_NODE_PLACE:"dz-text-node",ITERATE_NODE_PLACE:"dz-iterate-node"},REGEX:{IS_DIRECTIVE:/^d[-:][\w-]+$/,IS_CUSTOM_TAG:/^\w+-[\w-]+$/,IS_CUSTOM_TAG_STRING:/<\w+-[\w-]+/,IS_LISTENER:/^on/,IS_ID_SELECTOR:/^#[\w-_:.]+$/,IS_PARENT_METHOD:/^parent.(.*)/,IS_STRING_QUOTED:/^"\w+"/,IS_SVG:/^svg$/,IS_CLASS:/^(class\s|function\s+_class|function.*[\s\S]+_classCallCheck\(this, .*\))|(throw new TypeError\("Cannot call a class)|(function.*\.__proto__\|\|Object\.getPrototypeOf\(.*?\))|(\)\.call\(this,)|(\).apply\(this,arg)|(for\(var.+=arguments.length)|(\.apply\(this,arguments\))|\.call\(this,?.*?\)/i,GET_LISTENER:/^this.(.*)\((.*)\)/,GET_LISTENER_SCOPE:/^scope.(.*)\((.*)\)/,IS_LISTENER_SCOPE:/(^|\()scope[.)]/g,TRIM_QUOTES:/^["'](.*)["']$/,THIS_TARGET:/\B\$this(?!\w)/g,HTML_MARKUP:/<!--[^]*?(?=-->)-->|<(\/?)([a-z][-.0-9_a-z]*)\s*([^>]*?)(\/?)>/gi,HTML_ATTRIBUTE:/(^|\s)([\w-:]+)(\s*=\s*("([^"]+)"|'([^']+)'|(\S+)))?/gi,MATCH_NLS:/\n\s+/gm,REPLACE_QUOT:/"/g,REPLACE_D_DIRECTIVE:/^d[-:]/,EXTRACT_STYLE_DISPLAY_PROPERTY:/display(?:\s+)?:(?:\s+)?([\w-]+)/},ATTR:{FORCE_UPDATE:"forceupdate"}}},function(e,t,n){function o(e){"@babel/helpers - typeof";return(o="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})(e)}function r(e){var t=e.tag.toUpperCase();Object.prototype.hasOwnProperty.call(l.components,t)&&console.warn("Doz","component ".concat(t," overwritten")),l.components[t]=e}function a(){l.components={},l.plugins=[]}function i(e){return e=e.toUpperCase(),l.components[e]}function p(e){l.plugins.push(e)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new TypeError("Doz directive name must be a string");if("object"!==o(t)||!t)throw new TypeError("Doz directive config must be an object");":"===e[0]&&(t._onlyDozComponent=!0,e=e.substr(1)),e=e.toLowerCase();var n=[];-1!==e.indexOf("-")&&(n=e.split("-"),e=n[0],n.shift()),t.name=e,t._keyArguments=n.map(function(e){return e.substr(1)}),Object.prototype.hasOwnProperty.call(l.directives,e)&&console.warn("Doz","directive ".concat(e," overwritten")),l.directives[e]=t,l.directivesKeys.includes(e)||l.directivesKeys.push(e)}var l=n(9);e.exports={registerComponent:r,registerPlugin:p,getComponent:i,registerDirective:c,removeAll:a,data:l}},function(e,t){var n=window.requestAnimationFrame||window.setTimeout;e.exports=n},function(e,t){e.exports=function(e){e&&!e._dozAttach&&(e._dozAttach={})}},function(e,t,n){function o(e){var t;t=Object.keys(e.props).length?e.props:e._rawProps;for(var n=Object.keys(t),o=0;o<=n.length-1;o++)!function(n){if(r(n)){var o=n.replace(c.REPLACE_D_DIRECTIVE,"");e._directiveProps[o]=t[n]}}(n[o]);return e._directiveProps}function r(e){return"d"===e[0]&&("-"===e[1]||":"===e[1])}function a(e){if(!e._dozAttach[l]||!e._dozAttach[l].style)return null;var t=e._dozAttach[l].style.match(c.EXTRACT_STYLE_DISPLAY_PROPERTY);return t?t[1]:null}function i(e){e=e.replace(c.REPLACE_D_DIRECTIVE,"");var t=e,n=[];return-1!==t.indexOf("-")&&(n=t.split("-"),t=n[0],n.shift()),[t,n]}var p=n(1),c=p.REGEX,l=p.PROPS_ATTRIBUTES;e.exports={isDirective:r,extractDirectivesFromProps:o,extractStyleDisplayFromDozProps:a,extractDirectiveNameAndKeyValues:i}},function(e,t,n){function o(e){if(b.callAppComponentBeforeCreate(e),b.callComponentBeforeCreate(e),"function"==typeof e.onBeforeCreate)return e.onBeforeCreate.call(e)}function r(e){b.callAppComponentCreate(e),b.callComponentCreate(e),"function"==typeof e.onCreate&&e.onCreate.call(e),e.app.emit("componentCreate",e)}function a(e){b.callAppComponentConfigCreate(e),"function"==typeof e.onConfigCreate&&e.onConfigCreate.call(e),e.parent&&"function"==typeof e.parent[e.__onConfigCreate]&&e.parent[e.__onConfigCreate].call(e.parent,e),e.app.emit("componentConfigCreate",e)}function i(e){if(b.callAppComponentBeforeMount(e),b.callComponentBeforeMount(e),"function"==typeof e.onBeforeMount)return e.onBeforeMount.call(e)}function p(e){b.callAppComponentMount(e),b.callComponentMount(e),"function"==typeof e.onMount&&e.onMount.call(e),e.app.emit("componentMount",e)}function c(e){v(function(){b.callAppComponentMountAsync(e),b.callComponentMountAsync(e)}),"function"==typeof e.onMountAsync&&v(function(){return e.onMountAsync.call(e)}),e.app.emit("componentMountAsync",e)}function l(e,t){if(b.callAppComponentBeforeUpdate(e,t),b.callComponentBeforeUpdate(e,t),"function"==typeof e.onBeforeUpdate)return e.onBeforeUpdate.call(e,t)}function u(e,t){b.callAppComponentUpdate(e,t),b.callComponentUpdate(e,t),"function"==typeof e.onUpdate&&e.onUpdate.call(e,t),e.app.emit("componentUpdate",e,t)}function s(e,t,n){if(e)return b.callAppComponentDrawByParent(e,t,n),"function"==typeof e.onDrawByParent?e.onDrawByParent.call(e,t,n):e.parent&&"function"==typeof e.parent[e.__onDrawByParent]?e.parent[e.__onDrawByParent].call(e.parent,e,t,n):void 0}function f(e,t){if(b.callAppComponentAfterRender(e,t),b.callComponentAfterRender(e,t),"function"==typeof e.onAfterRender)return e.onAfterRender.call(e,t)}function d(e){if(b.callAppComponentBeforeUnmount(e),b.callComponentBeforeUnmount(e),"function"==typeof e.onBeforeUnmount)return e.onBeforeUnmount.call(e)}function y(e){b.callAppComponentUnmount(e),b.callComponentUnmount(e),"function"==typeof e.onUnmount&&e.onUnmount.call(e),e.app.emit("componentUnmount",e)}function m(e){if(b.callAppComponentBeforeDestroy(e),b.callComponentBeforeDestroy(e),"function"==typeof e.onBeforeDestroy)return e.onBeforeDestroy.call(e)}function h(e){b.callAppComponentDestroy(e),b.callComponentDestroy(e),e.app.emit("componentDestroy",e);var t=document.getElementById(e.uId+"--style"),n=document.getElementById(e.uId+"--style-reset");t&&t.parentNode.removeChild(t),n&&n.parentNode.removeChild(n),e._unmountedPlaceholder&&e._unmountedPlaceholder.parentNode&&e._unmountedPlaceholder.parentNode.removeChild(e._unmountedPlaceholder),"function"==typeof e.onDestroy&&(e.onDestroy.call(e),e=null)}function _(e){b.callAppComponentLoadProps(e),b.callComponentLoadProps(e),"function"==typeof e.onLoadProps&&e.onLoadProps.call(e),e.app.emit("componentLoadProps",e)}var v=n(3),b=n(0);e.exports={callBeforeCreate:o,callCreate:r,callConfigCreate:a,callBeforeMount:i,callMount:p,callMountAsync:c,callBeforeUpdate:l,callUpdate:u,callDrawByParent:s,callAfterRender:f,callBeforeUnmount:d,callUnmount:y,callBeforeDestroy:m,callDestroy:h,callLoadProps:_}},function(e,t,n){function o(e){"@babel/helpers - typeof";return(o="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})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function p(e){return e[e.length-1]}function c(e){return e.replace(y.MATCH_NLS,"")}function l(e){if(!e)return"";if(w[e])return w[e];for(var t,n,r=new O(null,{}),a=[r],i=r,l=-1;t=y.HTML_MARKUP.exec(e);){if(l>-1&&l+t[0].length<y.HTML_MARKUP.lastIndex){var u=c(e.substring(l,y.HTML_MARKUP.lastIndex-t[0].length));u&&(!0===i.style?i.style=u:(" e-0_"===u.substr(0,5)&&(u=u.trim()),i.appendChild(u)))}if(l=y.HTML_MARKUP.lastIndex,"!"!==t[0][1]&&!v.test(t[0])){if("slot"===t[2]&&(t[2]=h.SLOT),!t[1]){n={};for(var f;f=y.HTML_ATTRIBUTE.exec(t[3]);)n[f[2]]=f[5]||f[6]||"",s(t[0].substring(1,t[0].length-1),f[2],n[f[2]],n,null);if(!t[4]&&S[i.type]&&S[i.type][t[2]]&&(a.pop(),i=p(a)),"style"===t[2]){i.style=!0,""===n["data-scoped"]&&(i.styleScoped=!0);continue}i=i.appendChild(new O(t[2],n,i.isSVG)),a.push(i)}if(t[1]||t[4]||E[t[2]])for(;;){if(i.type===t[2]){a.pop(),i=p(a);break}{if(!T[i.type]||!T[i.type][t[2]])break;a.pop(),i=p(a)}}}}if(r.style&&"object"===o(r.children[0])&&(r.children[0].style=r.style,r.children[0].styleScoped=r.styleScoped),r.children.length>1)r.type=h.ROOT;else if(r.children.length)return w[e]=r.children[0],r.children[0];return w[e]=r,r}function u(e){var t={};if(e._dozAttach[_])for(var n=Object.keys(e._dozAttach[_]),o=0;o<n.length;o++)s(e.nodeName,n[o],e._dozAttach[_][n[o]],t,e);else if(e.attributes)for(var r=Array.from(e.attributes),a=r.length-1;a>=0;--a){var i=r[a];s(e.nodeName,i.name,i.nodeValue,t,e)}return t}function s(e,t,n,o,r){"string"==typeof n&&y.IS_STRING_QUOTED.test(n)&&(n=n.replace(y.REPLACE_QUOT,"""));var a=A(t),i=y.IS_CUSTOM_TAG.test(e)&&!a?f(t):t;r&&b.callAppComponentPropsAssignName(r,t,n,a,o,function(e){i=e}),o[i]=t===m.FORCE_UPDATE||n}var f=n(8),d=n(1),y=d.REGEX,m=d.ATTR,h=d.TAG,_=d.PROPS_ATTRIBUTES,v=new RegExp("</?(".concat(h.TEXT_NODE_PLACE,"|").concat(h.ITERATE_NODE_PLACE,")?>$")),b=n(0),g=n(5),A=g.isDirective,C=n(10),w=C.tplCache,E={meta:!0,img:!0,link:!0,input:!0,area:!0,br:!0,hr:!0},S={li:{li:!0},p:{p:!0,div:!0},td:{td:!0,th:!0},th:{td:!0,th:!0}},T={li:{ul:!0,ol:!0},a:{div:!0},b:{div:!0},i:{div:!0},p:{div:!0},td:{tr:!0,table:!0},th:{tr:!0,table:!0}},O=function(){function e(t,n,o,a,i){r(this,e),this.type=t,this.props=n,this.children=[],a&&(this.style=a),i&&(this.styleScoped=i),(o||"svg"===t)&&(this.isSVG=!0),void 0!==n.key&&(this.key=n.key)}return i(e,[{key:"appendChild",value:function(e){return e.props&&void 0!==e.props.key&&(this.hasKeys=!0),this.children.push(e),e}}]),e}();e.exports={compile:l,serializeProps:u,propsFixer:s,Element:O,removeNLS:c,last:p}},function(e,t){function n(e){return e.replace(/(-\w)/g,function(e){return e[1].toUpperCase()})}e.exports=n},function(e,t){e.exports={components:{},webComponents:{tags:{},ids:{}},plugins:[],directives:{},directivesKeys:[]}},function(e,t){e.exports={kCache:new Map,tplCache:Object.create(null),hCache:new Map}},function(module,exports,__webpack_require__){function _typeof(e){"@babel/helpers - typeof";return(_typeof="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})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){return function(){var t,n=_getPrototypeOf(e);if(_isNativeReflectConstruct()){var o=_getPrototypeOf(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _require=__webpack_require__(1),TAG=_require.TAG,COMPONENT_ROOT_INSTANCE=_require.COMPONENT_ROOT_INSTANCE,REGEX=_require.REGEX,observer=__webpack_require__(32),hooks=__webpack_require__(6),update=__webpack_require__(36).updateElement,drawDynamic=__webpack_require__(44),proxy=__webpack_require__(15),toInlineStyle=__webpack_require__(45),queueReady=__webpack_require__(46),queueDraw=__webpack_require__(47),extendInstance=__webpack_require__(48),removeAllAttributes=__webpack_require__(49),h=__webpack_require__(21),loadLocal=__webpack_require__(51),localMixin=__webpack_require__(52),_require2=__webpack_require__(7),compile=_require2.compile,propsInit=__webpack_require__(23),DOMManipulation=__webpack_require__(53),directive=__webpack_require__(0),cloneObject=__webpack_require__(55),toLiteralString=__webpack_require__(24),delay=__webpack_require__(3),makeSureAttach=__webpack_require__(4),data=__webpack_require__(9),Component=function(_DOMManipulation){function Component(e){var t;return _classCallCheck(this,Component),t=_super.call(this,e),Object.defineProperty(_assertThisInitialized(t),"_isSubclass",{value:t.__proto__.constructor!==Component}),Object.defineProperty(_assertThisInitialized(t),"uId",{value:t.app.generateUId(),enumerable:!0}),Object.defineProperty(_assertThisInitialized(t),"h",{value:h.bind(_assertThisInitialized(t)),enumerable:!1}),t._initRawProps(e),extendInstance(_assertThisInitialized(t),e.cmp.cfg),localMixin(_assertThisInitialized(t)),loadLocal(_assertThisInitialized(t)),!1===hooks.callBeforeCreate(_assertThisInitialized(t))?_possibleConstructorReturn(t):(observer.create(_assertThisInitialized(t),!0),queueReady.add(_assertThisInitialized(t)),queueDraw.add(_assertThisInitialized(t)),hooks.callCreate(_assertThisInitialized(t)),t)}_inherits(Component,_DOMManipulation);var _super=_createSuper(Component);return _createClass(Component,[{key:"loadProps",value:function(e){if("object"!==_typeof(e))throw new TypeError("Props must be an object");this._rawProps=Object.assign({},e),propsInit(this),observer.create(this),hooks.callLoadProps(this)}},{key:"getHTMLElement",value:function(){return this._parentElement}},{key:"beginSafeRender",value:function(){proxy.beginRender(this.props)}},{key:"endSafeRender",value:function(){proxy.endRender(this.props)}},{key:"each",value:function(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Array.isArray(e)){o&&this.beginSafeRender(),n=new Array(e.length);for(var r=0;r<=e.length-1;r++)n[r]=t(e[r],r,e);o&&this.endSafeRender()}return n}},{key:"toStyle",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return toInlineStyle(e,t)}},{key:"render",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]&&arguments[1],arguments.length>2&&void 0!==arguments[2]&&arguments[2]);if(!this._renderPause){this.beginSafeRender();for(var n=Object.keys(this.props),o=[this.h],r=0;r<n.length;r++)o.push(this.props[n[r]]);var a=this.template.apply(this,o);this.endSafeRender();var i=a&&"object"===_typeof(a)?a:compile(a,this);this.app.emit("draw",i,this._prev,this),queueDraw.emit(this,i,this._prev);var p=update(this._cfgRoot,i,this._prev,0,this,e);removeAllAttributes(this._cfgRoot,["style","class"]),!this._rootElement&&p&&(this._rootElement=p,makeSureAttach(this._rootElement),this._parentElement=p.parentNode,this.__hasStyle&&(this._parentElement.dataset.uid=this.uId)),this._prev=i,t||hooks.callAfterRender(this),drawDynamic(this)}}},{key:"renderPause",value:function(){this._renderPause=!0}},{key:"renderResume",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._renderPause=!1,e&&this.render()}},{key:"prepareCommit",value:function(){proxy.pause(this.props),this.renderPause()}},{key:"commit",value:function(){this.renderResume(),proxy.resume(this.props)}},{key:"mount",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._unmounted){if(!1===hooks.callBeforeMount(this))return this;this._unmountedPlaceholder.parentNode.replaceChild(this._unmountedParentNode,this._unmountedPlaceholder),this._unmounted=!1,this._unmountedParentNode=null,this._unmountedPlaceholder=null,hooks.callMount(this);for(var o=Object.keys(this.children),r=0;r<=o.length-1;r++)!function(e){t.children[e].mount()}(o[r]);return this}if(e){var a=this._rootElement;return"string"==typeof n.selector?a=a.querySelector(n.selector):n.selector instanceof HTMLElement?a=n.selector:1!==this._rootElement.nodeType&&(a=this.getHTMLElement()),this._unmounted=!1,this._unmountedParentNode=null,this._unmountedPlaceholder=null,this.app.mount(e,a,this)}}},{key:"unmount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;if(this.lockRemoveInstanceByCallback&&"function"==typeof this.lockRemoveInstanceByCallback)return void this.lockRemoveInstanceByCallback(this.unmount,t,n,o);if(t||!Boolean(this._unmountedParentNode)&&this._rootElement&&this._rootElement.parentNode&&this._rootElement.parentNode.parentNode){if(!1===hooks.callBeforeUnmount(this))return!1;this._unmountedParentNode=this._rootElement.parentNode,this._unmountedPlaceholder=document.createComment(Date.now().toString()),t?this._rootElement.parentNode&&this._rootElement.parentNode.parentNode.removeChild(this._rootElement.parentNode):this._rootElement.parentNode.parentNode.replaceChild(this._unmountedPlaceholder,this._unmountedParentNode),this._unmounted=!n,o||hooks.callUnmount(this);for(var r=Object.keys(this.children),a=0;a<=r.length-1;a++)!function(r){e.children[r].unmount(t,n,o)}(r[a]);return this}}},{key:"destroy",value:function(e){var t=this;if(this.lockRemoveInstanceByCallback&&"function"==typeof this.lockRemoveInstanceByCallback)return void this.lockRemoveInstanceByCallback(this.destroy,e);if(!1!==this.unmount(e,!0)&&(e||this._rootElement&&!1!==hooks.callBeforeDestroy(this))){for(var n=Object.keys(this.children),o=0;o<=n.length-1;o++)!function(e){t.children[e].destroy()}(n[o]);return hooks.callDestroy(this),!0}}},{key:"template",value:function(){return""}},{key:"_initTemplate",value:function _initTemplate(opt){if("string"==typeof opt.cmp.cfg.template&&opt.app.cfg.enableExternalTemplate){var contentTpl=opt.cmp.cfg.template;REGEX.IS_ID_SELECTOR.test(contentTpl)?opt.cmp.cfg.template=function(){var contentStr=toLiteralString(document.querySelector(contentTpl).innerHTML);return eval("`"+contentStr+"`")}:opt.cmp.cfg.template=function(){return contentTpl=toLiteralString(contentTpl),eval("`"+contentTpl+"`")}}}},{key:"_initRawProps",value:function(e){this._isSubclass?this._rawProps=Object.assign({},e.props):(this._rawProps=Object.assign({},"function"==typeof e.cmp.cfg.props?e.cmp.cfg.props():e.cmp.cfg.props,e.props),this._initTemplate(e)),Object.defineProperty(this,"_initialProps",{value:cloneObject(this._rawProps)})}},{key:"getDozWebComponentById",value:function(e){return this.getWebComponentById(e)}},{key:"getDozWebComponentByTag",value:function(e){return this.getWebComponentByTag(e)}},{key:"getWebComponentById",value:function(e){return data.webComponents.ids[e]||null}},{key:"getWebComponentByTag",value:function(e){return data.webComponents.tags[e]||null}},{key:"_setProps",value:function(e){for(var t in e)e.hasOwnProperty(t)&&(this.props[t]=e[t])}},{key:"setProps",value:function(e){this.prepareCommit(),this._setProps(e),this.commit()}},{key:"setPropsAsync",value:function(e){var t=this;delay(function(){return t._setProps(e)})}},{key:"props",set:function(e){"function"==typeof e&&(e=e()),this._rawProps=Object.assign({},e,this._opt?this._opt.props:{}),observer.create(this),directive.callAppComponentSetProps(this)},get:function(){return this._props}},{key:"config",set:function(e){if(!this._isSubclass)throw new Error("Config is allowed only for classes");if(this._configured)throw new Error("Already configured");if("object"!==_typeof(e))throw new TypeError("Config must be an object");directive.callAppComponentSetConfig(this,e),"object"===_typeof(e.mixin)&&(this.mixin=e.mixin,localMixin(this)),"object"===_typeof(e.components)&&(this.components=e.components,loadLocal(this)),"boolean"==typeof e.autoCreateChildren&&(this.autoCreateChildren=e.autoCreateChildren),"boolean"==typeof e.updateChildrenProps&&(this.updateChildrenProps=e.updateChildrenProps),this._configured=!0,hooks.callConfigCreate(this)}},{key:"isRenderPause",get:function(){return this._renderPause}}]),Component}(DOMManipulation);module.exports=Component,module.exports._Component=Component},function(module,exports,__webpack_require__){function _typeof(e){"@babel/helpers - typeof";return(_typeof="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})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}var bind=__webpack_require__(28),createInstance=__webpack_require__(13),_require=__webpack_require__(1),TAG=_require.TAG,REGEX=_require.REGEX,ALREADY_WALKED=_require.ALREADY_WALKED,toLiteralString=__webpack_require__(24),plugin=__webpack_require__(25),directive=__webpack_require__(0),makeSureAttach=__webpack_require__(4),Doz=function(){function Doz(){var _this=this,cfg=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,Doz),this.baseTemplate="<".concat(TAG.APP,"></").concat(TAG.APP,">"),REGEX.IS_ID_SELECTOR.test(cfg.root)&&(cfg.root=document.getElementById(cfg.root.substring(1))),REGEX.IS_ID_SELECTOR.test(cfg.template)&&(cfg.template=document.getElementById(cfg.template.substring(1)),cfg.template=cfg.template.innerHTML),!(cfg.root instanceof HTMLElement||cfg.root instanceof ShadowRoot))throw new TypeError("root must be an HTMLElement or an valid ID selector like #example-root");if(!(cfg.template instanceof HTMLElement||"string"==typeof cfg.template||"function"==typeof cfg.template))throw new TypeError("template must be a string or an HTMLElement or a function or an valid ID selector like #example-template");var appNode=document.querySelector(TAG.APP);if(makeSureAttach(appNode),appNode&&!appNode._dozAttach[ALREADY_WALKED]&&appNode.parentNode.removeChild(appNode),this.cfg=Object.assign({},{components:[],shared:{},useShadowRoot:!1,propsListener:null,propsListenerAsync:null,actions:{},autoDraw:!0,enableExternalTemplate:!1},cfg),Object.defineProperties(this,{_lastUId:{value:0,writable:!0},_components:{value:{},writable:!0},_usedComponents:{value:{},writable:!0},_cache:{value:new Map},_onAppReadyCB:{value:[],writable:!0},_callAppReady:{value:function(){for(var e=this._onAppReadyCB,t=0;t<=e.length-1;t++)!function(e){"function"==typeof e&&e._instance&&e.call(e._instance)}(e[t]);this._onAppReadyCB=[]}},_onAppDrawCB:{value:[],writable:!0},_onAppCB:{value:{},writable:!0},useShadowRoot:{value:this.cfg.useShadowRoot,writable:!0,enumerable:!0},_root:{value:this.cfg.root},appId:{value:window.DOZ_APP_ID||Math.random().toString(36).substring(2,15),enumerable:!0},action:{value:bind(this.cfg.actions,this),enumerable:!0},shared:{value:this.cfg.shared,writable:!0,enumerable:!0},mount:{value:function value(template,root){var parent=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._tree;if("string"==typeof root&&(root=document.querySelector(root)),!((root=root||parent._rootElement)instanceof HTMLElement))throw new TypeError("root must be an HTMLElement or an valid selector like #example-root");var contentStr=this.cfg.enableExternalTemplate?eval("`"+toLiteralString(template)+"`"):template,autoCmp={tag:TAG.MOUNT,cfg:{props:{},template:function(e){return contentStr}}};return createInstance({root:root,template:"<".concat(TAG.MOUNT,"></").concat(TAG.MOUNT,">"),app:this,parentCmp:parent,autoCmp:autoCmp,mount:!0})},enumerable:!0}}),Array.isArray(this.cfg.components))for(var _defined3=function(e){"object"===_typeof(e)&&"string"==typeof e.tag&&"object"===_typeof(e.cfg)&&(_this._components[e.tag]=e)},_defined4=this.cfg.components,_i4=0;_i4<=_defined4.length-1;_i4++)_defined3(_defined4[_i4],_i4,_defined4);else if("object"===_typeof(this.cfg.components))for(var _defined5=function(e){_this._components[e]={tag:e,cfg:_this.cfg.components[e]}},_defined6=Object.keys(this.cfg.components),_i6=0;_i6<=_defined6.length-1;_i6++)_defined5(_defined6[_i6],_i6,_defined6);this._components[TAG.APP]={tag:TAG.APP,cfg:{template:"function"==typeof cfg.template?cfg.template:function(){var contentStr=toLiteralString(cfg.template);return/\${.*?}/g.test(contentStr)?eval("`"+contentStr+"`"):contentStr}}};for(var _defined7=function(e){["template","root"].includes(e)||(_this._components[TAG.APP].cfg[e]=cfg[e])},_defined8=Object.keys(cfg),_i8=0;_i8<=_defined8.length-1;_i8++)_defined7(_defined8[_i8],_i8,_defined8);plugin.load(this),directive.callAppInit(this),this.cfg.autoDraw&&this.draw(),this._callAppReady(),this.emit("ready",this)}return _createClass(Doz,[{key:"draw",value:function(){return this.cfg.autoDraw||(this.cfg.root.innerHTML=""),this._tree=createInstance({root:this.cfg.root,template:this.baseTemplate,app:this}),this}},{key:"on",value:function(e,t){if("string"!=typeof e)throw new TypeError("Event must be a string");if("function"!=typeof t)throw new TypeError("Callback must be a function");return this._onAppCB[e]||(this._onAppCB[e]=[]),this._onAppCB[e].push(t),this}},{key:"emit",value:function(e){for(var t=this,n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];if(this._onAppCB[e])for(var a=this._onAppCB[e],i=0;i<=a.length-1;i++)!function(e){e.apply(t,o)}(a[i]);return this}},{key:"generateUId",value:function(){return this.appId+"-"+ ++this._lastUId}},{key:"mainComponent",get:function(){return this._tree}}]),Doz}();module.exports=Doz},function(e,t,n){function o(e){"@babel/helpers - typeof";return(o="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})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){return function(){var t,n=s(e);if(u()){var o=s(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return c(this,t)}}function c(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?l(e):t}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(){function e(l){for(var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l;)if(P(l),l._dozAttach[_])l=l.nextElementSibling;else{l._dozAttach[_]=!0,T.callAppWalkDOM(u,l),n=O(l),T.callAppComponentAssignName(u,l,function(e){n=e});var s={};u.cmp&&u.cmp._components&&(s=u.cmp._components);var f=t.autoCmp||s[n]||t.app._components[n]||v.getComponent(n),d=void 0;if(f){var y=function(){if(u.cmp){var e=l.outerHTML;u.cmp.rawChildren.push(e)}if(u.cmp&&u.cmp.mounted)return l=l.nextElementSibling,"continue";if(u.cmp&&!1===u.cmp.autoCreateChildren)return c.push(l),l=l.nextElementSibling,"continue";var s=A(l),y={},_=void 0;if("function"==typeof f.cfg){if(!(f.cfg.prototype instanceof w)){var v=f.cfg;f.cfg=function(e){function t(){return r(this,t),n.apply(this,arguments)}a(t,e);var n=p(t);return t}(w),f.cfg.prototype.template=v}_=new f.cfg({tag:f.tag||n,root:l,app:t.app,props:s,componentDirectives:y,parentCmp:u.cmp||t.parent})}else _=new w({tag:f.tag||n,cmp:f,root:l,app:t.app,props:s,componentDirectives:y,parentCmp:u.cmp||t.parent});if(!_)return l=l.nextElementSibling,"continue";if(_.rawChildrenObject=l._dozAttach.elementChildren,"object"===o(_.module)&&C(_,_.module),E(_),_.app.emit("componentPropsInit",_),!1!==b.callBeforeMount(_)){if(_._isRendered=!0,_.render(!0),i||(i=_),_._rootElement._dozAttach[m]=_,_.getHTMLElement()._dozAttach[h]=_,_._defaultSlot&&_.getHTMLElement().firstElementChild){var g=document.createComment("slot");_.getHTMLElement().replaceChild(g,_.getHTMLElement().firstElementChild)}S(function(){_.render(!1,[],!0)}),b.callMount(_),b.callMountAsync(_)}if(d=_,u.cmp){var O=Object.keys(u.cmp.children).length++;T.callAppComponentAssignIndex(_,O,function(e){u.cmp.children[e]=_}),void 0===u.cmp.childrenByTag[_.tag]?u.cmp.childrenByTag[_.tag]=[_]:u.cmp.childrenByTag[_.tag].push(_)}t.autoCmp=null}();if("continue"===y)continue}l.hasChildNodes()&&(d?e(l.firstElementChild,{cmp:d}):e(l.firstElementChild,{cmp:u.cmp})),l=l.nextElementSibling}}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.root){t.template instanceof HTMLElement?t.template.parentNode||t.root.appendChild(t.template):"string"==typeof t.template&&(t.template=d.create(t.template),t.root.appendChild(t.template));var n,i=null,c=[];e(t.template);for(var l=0;l<=c.length-1;l++)!function(e){e.remove()}(c[l]);return i}}var d=n(14),y=n(1),m=y.COMPONENT_ROOT_INSTANCE,h=y.COMPONENT_INSTANCE,_=y.ALREADY_WALKED,v=(y.REGEX,n(2)),b=n(6),g=n(7),A=g.serializeProps,C=n(31),w=n(11),E=n(23),S=n(3),T=n(0),O=n(56),P=n(4);e.exports=f},function(e,t){var n,o=/\n/g,r=/\s+/g,a={create:function(e,t){var n;e=e.replace(o," "),e=e.replace(r," ");var a=document.createElement("div");return a.innerHTML=e,t&&a.childNodes.length>1?(n=document.createElement(t),n.innerHTML=a.innerHTML):n=a.firstChild||document.createTextNode(""),n},decode:function(e){return n=n||document.createElement("div"),n.innerHTML=e,n.textContent}};e.exports=a},function(e,t,n){function o(e){"@babel/helpers - typeof";return(o="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})(e)}var r=n(3),a=n(33),i=function(){var e=[],t=[],n=[],i=null,p=function(e,t){return t.split(".").reduce(function(e,t){return e?e[t]:void 0},e||self)},c=function c(l,u,s,f){var d=null==u,y=s||null,m=f||"",h=[],_=function(e,t){return e instanceof Array?""!==m?m:t:""!==m?m+"."+t:t},v=0,b=function(e){if(!0!==y.paused)if(d&&(u=++v>1,r(function(){v=0})),!0===u)r(function(){if(e===h.length){for(var t=0;t<y.observers.length;t++)y.observers[t](h);h=[]}});else{for(var t=0;t<y.observers.length;t++)y.observers[t](h);h=[]}},g={get:function(e,t){if("__getTarget"===t)return e;if("__isProxy"===t)return!0;if("__getParent"===t)return function(t){void 0===t&&(t=1);var n=_(e,"__getParent").split(".");return n.splice(-(t+1),t+1),p(y.parentProxy,n.join("."))};if("__getPath"===t){return _(e,"__getParent").slice(0,-12)}var n=e[t];if(e instanceof Date&&n instanceof Function)return n.bind(e);if(n instanceof Object&&e.hasOwnProperty(t)){!0===n.__isProxy&&(n=n.__getTarget);for(var o=-1,r=y.targets,i=0,l=r.length;i<l;i++)if(n===r[i]){o=i;break}if(o>-1)return y.proxies[o];return c(n,u,y,""!==m?m+"."+t:t)}var s=y.renderMode?a.encode(n):n,f=y.manipulate;return"function"==typeof f&&(s=f(s,t,!0)),s},deleteProperty:function(e,o){var r=!0;i===A&&(r=!1,i=null);var a=Object.assign({},e),p=_(e,o);if(!y.paused){if(h.push({type:"delete",target:e,property:o,newValue:null,previousValue:a[o],currentPath:p,proxy:A}),"function"==typeof y.beforeChange&&y.checkBeforeChange!==p){y.checkBeforeChange=p;if(!1===y.beforeChange(h))return y.checkBeforeChange="",!1}y.checkBeforeChange=""}if(!0===r){var c,l;for(c=0,l=t.length;c<l&&e!==t[c];c++);for(var u=n[c]||[],s=u.length;s--;)u[s].proxy!==A&&(i=u[s].proxy,delete u[s].proxy[o]);delete e[o]}return b(h.length),!0},set:function(e,r,a,p){var c=!0;i===A&&(c=!1,i=null);var l=e[r];if(l!==a||!1===c){var u=o(l),s=_(e,r),f="update";"undefined"===u&&(f="add");var d=y.manipulate;if("function"==typeof d&&(a=d(a,s,!1)),!y.paused){if(h.push({type:f,target:e,property:r,newValue:a,previousValue:p[r],currentPath:s,proxy:A}),"function"==typeof y.beforeChange&&y.checkBeforeChange!==s){y.checkBeforeChange=s;if(!1===y.beforeChange(h))return y.checkBeforeChange="",!1}y.checkBeforeChange=""}if(!0===c){var m,v;for(m=0,v=t.length;m<v&&e!==t[m];m++);var g=n[m];if(g)for(var C=0,w=g.length;C<w;C++)g[C].proxy!==A&&(i=g[C].proxy,g[C].proxy[r]=a);e[r]=a,a instanceof Object&&null!==a&&function e(t){for(var n=t.__getTarget,o=Object.keys(n),r=0,a=o.length;r<a;r++){var i=o[r];n[i]instanceof Object&&null!==n[i]&&e(t[i])}}(A[r])}b(h.length)}return!0}},A=new Proxy(l,g);null===y?(y={parentTarget:l,domDelay:u,parentProxy:A,observers:[],targets:[l],proxies:[A],path:m},e.push(y)):(y.targets.push(l),y.proxies.push(A));for(var C={target:l,proxy:A,observable:y},w=-1,E=0,S=t.length;E<S;E++)if(l===t[E]){w=E;break}return w>-1?n[w].push(C):(t.push(l),n.push([C])),A};return{create:function(e,t,n,o){!0===e.__isProxy&&(e=e.__getTarget);var r=c(e,t);return"function"==typeof n&&this.observe(r,n),function e(t){for(var n=t.__getTarget,r=Object.keys(n),a=0,i=r.length;a<i;a++){var p=r[a];"function"==typeof o&&o(n,p),n[p]instanceof Object&&null!==n[p]&&e(t[p])}}(r),r},observe:function(t,n){for(var o=e.length;o--;)if(e[o].parentProxy===t){e[o].observers.push(n);break}},remove:function(o){for(var r=null,a=!1,i=e.length;i--;)if(e[i].parentProxy===o){r=e[i],a=!0;break}for(var p=n.length;p--;)for(var c=n[p].length;c--;)n[p][c].observable===r&&(n[p].splice(c,1),0===n[p].length&&(t[p]=null));!0===a&&e.splice(i,1)},manipulate:function(t,n){if("function"!=typeof n)throw new Error("callback is required");for(var o=e.length,r=!1;o--;)if(e[o].parentProxy===t){e[o].manipulate=n,r=!0;break}if(!1===r)throw new Error("proxy not found.")},beforeChange:function(t,n){if("function"!=typeof n)throw new Error("callback is required");for(var o=e.length,r=!1;o--;)if(e[o].parentProxy===t){e[o].beforeChange=n,r=!0;break}if(!1===r)throw new Error("proxy not found.")},beginRender:function(t){for(var n=e.length,o=!1;n--;)if(e[n].parentProxy===t){e[n].renderMode=!0,o=!0;break}if(!1===o)throw new Error("proxy not found.")},endRender:function(t){for(var n=e.length,o=!1;n--;)if(e[n].parentProxy===t){e[n].renderMode=!1,o=!0;break}if(!1===o)throw new Error("proxy not found.")},pause:function(t){for(var n=e.length,o=!1;n--;)if(e[n].parentProxy===t){e[n].paused=!0,o=!0;break}if(!1===o)throw new Error("proxy not found.")},resume:function(t){for(var n=e.length,o=!1;n--;)if(e[n].parentProxy===t){e[n].paused=!1,o=!0;break}if(!1===o)throw new Error("proxy not found.")}}}();e.exports=i},function(e,t,n){function o(e){"@babel/helpers - typeof";return(o="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})(e)}function r(e,t,n,r,i){if("object"===o(e.propsType)){var p=e.propsType[n];void 0!==p&&(t=a(t,p))}if(i&&(r=e.propsConvertOnFly),e.propsConvert&&e.propsConvertOnFly===r&&"object"===o(e.propsConvert)){var c=e.propsConvert[n],l=e[c]||c;if("function"==typeof l)return l.call(e,t)}if(i&&(r=e.propsComputedOnFly),e.propsComputed&&e.propsComputedOnFly===r&&"object"===o(e.propsComputed)){var u=e._computedCache.get(n);if(void 0===u)u=new Map,e._computedCache.set(n,u);else{var s=u.get(t);if(void 0!==s)return s}var f=e.propsComputed[n],d=e[f]||f;if("function"==typeof d){var y=d.call(e,t);return u.set(t,y),y}}return t}var a=n(35);e.exports=r},function(e,t,n){function o(e){"@babel/helpers - typeof";return(o="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})(e)}function r(e,t){return o(e)!==o(t)||"string"==typeof e&&e!==t||e.type!==t.type||e.props&&e.props.forceupdate}function a(e,t,n,r){if(!(void 0===e||Array.isArray(e)&&0===e.length)){var p,c;if("object"!==o(e))return document.createTextNode(v(e));if(e&&null!=e.type&&"#"!==e.type[0]||(e={type:d.EMPTY,props:{},children:[]}),e.props&&e.props.slot&&!e.isNewSlotEl)return document.createComment("slot(".concat(e.props.slot,")"));if(p=S[e.type],p?c=p.cloneNode():(c=e.isSVG?document.createElementNS(y.SVG,e.type):document.createElement(e.type),S[e.type]=c.cloneNode(!0)),u(c,e.props,t,r,e.isSVG),!e.hasKeys)if(e.children.length)if(1===e.children.length&&"string"==typeof e.children[0])c.textContent=v(e.children[0]);else for(var l=0;l<e.children.length;l++){var s=a(e.children[l],t,n,r);s&&c.appendChild(s)}else;return g(c),c._dozAttach.elementChildren=e.children,c._dozAttach.originalTagName=e.props["data-attributeoriginaletagname"],t.$$afterNodeElementCreate(c,e,n),e.style&&i(e,t),c}}function i(e,t){t.__hasStyle=!0;var n=e.styleScoped,o=t.uId,r='[data-uid="'.concat(o,'"]');C(e.style,o,r,n,t)}function p(e,t,n){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=arguments.length>4?arguments[4]:void 0,f=arguments.length>5?arguments[5]:void 0,y=arguments.length>6?arguments[6]:void 0;if(e&&(t!==n||u.tag===d.MOUNT)){if(t&&t.cmp&&(u=t.cmp),t&&n&&t.style!==n.style&&i(t,u),y&&e._dozAttach[m]){var v=b.callDrawByParent(e._dozAttach[m],t,n);void 0!==v&&null!==v&&"object"===o(v)&&(t=v.newNode||t,n=v.oldNode||n);var A=!(!t||!t.props)&&t.props.slot;if(e._dozAttach[m]._defaultSlot&&!A&&(A=_),"object"===o(t)&&A&&e._dozAttach[m]._slots[A]){for(var C=e._dozAttach[m]._slots[A],w=0;w<=C.length-1;w++)!function(o){if(o.parentNode){t.isNewSlotEl=!0;var r=a(t,u,f,e._dozAttach[m]||y);r.removeAttribute("slot"),o.parentNode.replaceChild(r,o),o.__newSlotEl=r}else{var i=Array.from(o.__newSlotEl.parentNode.children).indexOf(o.__newSlotEl);p(o.__newSlotEl.parentNode,t,n,i,u,f,e._dozAttach[m]||y)}}(C[w]);return}}if(!n){var S;if(e.childNodes.length){var O=e.childNodes[e.childNodes.length-1];if(g(O),O._dozAttach[h])return S=a(t,u,f,e._dozAttach[m]||y),e.insertBefore(S,O),S}return g(e),S=a(t,u,f,e._dozAttach[m]||y),e.appendChild(S),S}if(t){if(r(t,n)){var P=e.childNodes[l];if(!P)return;var k=u.$$beforeNodeChange(e,P,t,n);if(k)return k;var R=a(t,u,f,e._dozAttach[m]||y);return e.replaceChild(R,P),u.$$afterNodeChange(R,P),R}if(void 0!==t.hasKeys||void 0!==n.hasKeys){for(var I=e.childNodes[l],x=t.children,D=new Array(x.length),N=0;N<=x.length-1;N++)D[N]=function(e){return e.key}(x[N]);for(var z=n.children,j=new Array(z.length),M=0;M<=z.length-1;M++)j[M]=function(e){return e.key}(z[M]);void 0===I._dozAttach.keyList&&(I._dozAttach.keyList=new Map);for(var L=[],B=0;B<=j.length-1;B++)(function(e){return!D.includes(e)})(j[B])&&L.push(j[B]);for(var U=0;U<L.length;U++)if(I._dozAttach.keyList.has(L[U])){var q=I._dozAttach.keyList.get(L[U]);q._dozAttach[m]?q._dozAttach[m].destroy():I.removeChild(q),I._dozAttach.keyList.delete(L[U]),E.delete(L[U])}if(L.length){var G=j;j=[];for(var H=0;H<=G.length-1;H++)(function(e){return!~L.indexOf(e)})(G[H])&&j.push(G[H])}for(var $=[],V=[],F=Object.create(null),W=0;W<D.length;W++){D[W]!==j[W]&&(V.push(W),F[W]=!0);var X=D[W],K=I._dozAttach.keyList.get(X);if(K){var Y=E.get(X),Q=Y.next,J=Y.prev;Q.children||(Q.children=[]),J.children||(J.children=[]),$.push(K),Y.isChanged&&s(K,Q.props,J.props,u,e._dozAttach[m]||y,Q.isSVG);for(var Z=Q.children.length,ee=J.children.length,te=0;te<Z||te<ee;te++)void 0!==Q.children[te]&&void 0!==J.children[te]&&p(K,Q.children[te],J.children[te],te,u,f,e._dozAttach[m]||y)}else{var ne=a(t.children[W],u,f,e._dozAttach[m]||y);I._dozAttach.keyList.set(X,ne),$.push(ne)}}if(void 0===V[0])return;if(I.childNodes.length===V[0]){for(var oe=0;oe<$.length;oe++)I.appendChild($[oe]);return}for(var re,ae,ie=!0,pe=0,ce=$.length-1;pe<=ce;)ie?(re=I.childNodes[pe],ae=$[pe],F[pe]&&Array.prototype.indexOf.call(I.childNodes,ae)!==pe&&(I.insertBefore(ae,re),ie=!1),pe++):(re=I.childNodes[ce],ae=$[ce],F[ce]&&Array.prototype.indexOf.call(I.childNodes,ae)!==ce&&(re?I.insertBefore(ae,re.nextSibling):(I.appendChild(ae),ce++),ie=!0),ce--)}else if(t.type){if(e._dozAttach[m]===u&&e.childNodes.length){var le=e.childNodes.length-1;e.childNodes[le]._dozAttach[h]&&(l+=le)}var ue=s(e.childNodes[l],t.props,n.props,u,e._dozAttach[m]||y,t.isSVG);if(u.$$beforeNodeWalk(e,l,ue))return;for(var se=t.children.length,fe=n.children.length,de=0;de<se||de<fe;de++)p(e.childNodes[l],t.children[de],n.children[de],de,u,f,e._dozAttach[m]||y);c()}}else e.childNodes[l]&&T.push(e.childNodes[l])}}function c(){for(var e=T.length;e--;)T[e].parentNode.removeChild(T[e]),T.splice(e,1)}var l=n(37),u=l.attach,s=l.updateAttributes,f=n(1),d=f.TAG,y=f.NS,m=f.COMPONENT_INSTANCE,h=f.COMPONENT_ROOT_INSTANCE,_=f.DEFAULT_SLOT_KEY,v=n(18),b=n(6),g=n(4),A=n(41),C=A.scopedInner,w=n(10),E=w.kCache,S=Object.create(null),T=[];e.exports={create:a,update:p}},function(e,t,n){function o(e){return/&\w+;/.test(e)?r.decode(e):e}var r=n(14);e.exports=o},function(e,t){function n(e,t){if("string"==typeof e){var n=t.replace(/[^\w]/g,"");return/:root/.test(e)&&console.warn("[DEPRECATION] the :root pseudo selector is deprecated, use :component or :wrapper instead"),e=e.replace(/{/g,"{\n").replace(/}/g,"}\n").replace(/^(\s+)?:(component|wrapper|root)(\s+)?{/gm,t+" {").replace(/:(component|wrapper|root)/g,"").replace(/(@(?:[\w-]+-)?keyframes\s+)([\w-_]+)/g,"$1 ".concat(n,"-$2")).replace(/((?:[\w-]+-)?animation(?:-name)?(?:\s+)?:(?:\s+))([\w-_]+)/g,"$1 ".concat(n,"-$2")).replace(/\/\*[\s\S]*?\*\/|([^:]|^)\/\/.*$/gm,"").replace(/[^\s].*{/gm,function(e){if(/^(@|:host|(from|to|\d+%)[^-_])/.test(e))return e;for(var n=e.split(","),o=new RegExp("^".concat(t.replace(/[[\]]/g,"\\$&"),"(\\s+)?{")),r=0;r<n.length;r++)n[r]=n[r].trim(),o.test(n[r])||(/^:global/.test(n[r])?n[r]=n[r].replace(":global",""):n[r]="".concat(t," ").concat(n[r]));return e=n.join(",")}),e=e.replace(/\s{2,}/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\s:/g,":").replace(/\n/g,"").trim()}}e.exports=n},function(e,t){function n(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}e.exports=n},function(e,t,n){function o(e){"@babel/helpers - typeof";return(o="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})(e)}function r(e,t){if("string"!=typeof e)return e;if("e"===e[0]&&"-"===e[1]){var n=v.exec(e);return n?"0"===n[1][0]&&n[1].length>=2?t[n[1].substr(1)]+"":t[n[1]]:e}return e.replace(_,function(e,n){return n?t[n]:e})}function a(e){for(var t="",n=0;n<e.length;n++)"function"!=typeof e[n]&&"object"!==o(e[n])&&(t+=e[n]);return t}function i(e,t,n,a){for(var p=Object.keys(e),u=0;u<p.length;u++)if(e[p[u]]&&"object"===o(e[p[u]]))i(e[p[u]],t,e,a);else{var s=r(e[p[u]],t);if("type"===p[u]&&"string"!=typeof s){var f=s||{},d=l(f.tag||f.name||c.ROOT);d=d.replace(/_+/,""),-1===d.indexOf("-")&&(d="".concat(d,"-").concat(d));var y=d+"-"+a.uId+"-"+a._localComponentLastId++;a._componentsMap.has(s)?y=a._componentsMap.get(s):a._componentsMap.set(s,y),void 0===a._components[y]&&(a._components[y]={tag:d,cfg:f}),void 0===a.app._components[y]&&(a.app._components[y]={tag:d,cfg:f}),s=d,e.props["data-attributeoriginaletagname"]=y}Array.isArray(s)&&"0"===p[u]?(n.children=s,s[0]&&void 0!==s[0].key&&(n.hasKeys=!0)):e[p[u]]=s}}var p=n(1),c=p.TAG,l=n(20),u=n(50),s=n(7),f=s.compile,d=c.TEXT_NODE_PLACE,y=n(10),m=y.hCache,h=y.kCache,_=/e-0_(\d+)_0-e/g,v=/e-0_(\d+)_0-e/;e.exports=function(e){for(var t=m.get(e),n=arguments.length,r=new Array(n>1?n-1:0),p=1;p<n;p++)r[p-1]=arguments[p];if(!t){t=e[0];for(var c=!1,l=!1,s=r.length,y=0;y<s;++y){for(var _=e[y],v=_.length,b=0;b<v;b++)"<"===_[b]?c=!1:">"===_[b]&&(c=!0);_.indexOf("<style")>-1&&(l=!0,!0),_.indexOf("</style")>-1&&(l=!1),l&&(c=!1,t=t.replace(/ scoped>/," data-scoped>")),c?"object"===o(r[y])||"function"==typeof r[y]?t+="e-0_".concat(y,"_0-e").concat(e[y+1]):/<.*>/.test(r[y])?t+="".concat(r[y]).concat(e[y+1]):t+="<".concat(d,">e-0_0").concat(y,"_0-e</").concat(d,">").concat(e[y+1]):t+="e-0_".concat(y,"_0-e").concat(e[y+1])}t=t.trim(),m.set(e,t)}var g,A,C=f(t);if(C.props.forceupdate&&m.delete(e),void 0===C.key&&void 0===C.props["item-list"]||(A=a(r),g=A?m.get(A):void 0),g||(g=u(C),i(g,r,null,this),A&&m.set(A,g)),void 0!==C.key){var w=h.get(g.key);w?h.set(g.key,{isChanged:A!==w.clonedKey,clonedKey:A,next:g,prev:w.next}):h.set(g.key,{isChanged:!0,clonedKey:A,next:g,prev:{}})}return g}},function(e,t){function n(e){"@babel/helpers - typeof";return(n="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})(e)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("object"!==n(e)||null==e)throw new TypeError("expected an object");Array.isArray(t)||(t=[t]);for(var o=t.length-1;o>=0;--o)for(var r=Object.keys(t[o]),a=r.length-1;a>=0;--a){var i=r[a];void 0===e[i]?e[i]=t[o][i]:console.warn("Doz","mixin failed for already defined property: ".concat(i))}return e}e.exports=o},function(e,t,n){function o(e){!function t(n){for(var o=Object.keys(n),a=0,i=o.length;a<i;a++){var p=o[a];n[p]instanceof Object&&null!==n[p]?t(n[p]):n[p]=r(e,n[p],p,!1,!0)}}(e._rawProps)}var r=n(16);e.exports=o},function(e,t){function n(e){return e.replace(/{{/gm,"${").replace(/}}/gm,"}")}e.exports=n},function(e,t,n){function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!=typeof e)throw new TypeError("Plugin must be a function");e.options=t,i(e)}function r(e){for(var t=p.plugins,n=0;n<=t.length-1;n++)!function(t){t(e.constructor,e,t.options)}(t[n])}var a=n(2),i=a.registerPlugin,p=a.data;e.exports={use:o,load:r}},function(e,t,n){e.exports=n(27)},function(e,t,n){var o=n(12),r=n(2),a=n(25),i=a.use,p=n(0),c=p.directive,l=n(57),u=n(11),s=n(58),f=n(21),d=n(7),y=d.compile,m=n(17),h=m.update,_=n(59),v=n(60),b=v.createDozWebComponent,g=v.defineWebComponent,A=v.defineWebComponentFromGlobal;n(62),Object.defineProperties(o,{collection:{value:r,enumerable:!0},compile:{value:y,enumerable:!0},Component:{value:u,enumerable:!0},component:{value:l,enumerable:!0},define:{value:l,enumerable:!0},h:{value:f,enumerable:!0},update:{value:h,enumerable:!0},mixin:{value:s,enumerable:!0},use:{value:i,enumerable:!0},directive:{value:c,enumerable:!0},version:{value:"3.5.3",enumerable:!0},tag:{value:_,enumerable:!0},createDozWebComponent:{value:b,enumerable:!0},defineWebComponent:{value:g,enumerable:!0},defineWebComponentFromGlobal:{value:A,enumerable:!0}}),e.exports=o},function(e,t){function n(e){"@babel/helpers - typeof";return(n="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})(e)}function o(e,t){if("object"!==n(e)||null==e)throw new TypeError("expected an object!");for(var r=Object.assign({},e),a=Object.keys(e),i=a.length-1;i>=0;--i){var p=r[a[i]];"function"==typeof p?r[a[i]]=p.bind(t):"object"===n(p)&&null!=p&&(r[a[i]]=o(p,t))}return r}e.exports=o},function(e,t,n){function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var o,r=t.shift(),a=R.directivesKeys,i=0;i<t.length;i++)if("function"==typeof t[i]){o=t[i];break}for(var p=0;p<a.length;p++){var c=a[p];if(R.directives[c]&&R.directives[c][r]){var l=R.directives[c][r].apply(R.directives[c],t);void 0!==l&&o&&o(l)}}}function r(){for(var e=["onAppInit"],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Array.prototype.push.apply(e,n),o.apply(null,e)}function a(){for(var e=["onAppComponentCreate"],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Array.prototype.push.apply(e,n),o.apply(null,e)}function i(){for(var e=["onAppComponentBeforeCreate"],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Array.prototype.push.apply(e,n),o.apply(null,e)}function p(){for(var e=["onAppComponentConfigCreate"],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Array.pr