zense
Version:
Javascript application development library
1 lines • 26.6 kB
JavaScript
!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=9)}([function(t,e,r){"use strict";var n=r(2);function o(t){const{delegate:e,uiSelectorObj:r,context:n}=t;try{let t;if(void 0===n.super)throw{type:n.name,message:"Behavior has no parent declared since it was started on its own."};return t=r.parent?"function"==typeof r.parent?n.dom(r.parent.call(n)):n.dom(r.parent):n.super.selector,t.exists?(t.off(),t.on(r.event,e,n[r.method],n),t.find(e)):(console.warn(`The defined parent selector ${t.strName} in ${n.name} does not exist in the DOM.`),t)}catch(t){console.error(t)}}function i(t,e){let r;return e.uid=a(),void 0!==t?(r=Array.isArray(t)?t:[t],r.some(t=>t.uid===e.uid)||r.push(e)):r=e,r}function s(t,e){if(void 0===e)return t;if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++){let e=t.info[r];t.removeEventListener(e.event,e.callback,!0)}else t.removeEventListener(e.event,e.callback,!0);t.info=void 0}function a(t=1){const e=new Uint32Array(t);return window.crypto.getRandomValues(e),1===e.length?e[0]:e}const c=function(t,e){const r=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,n=/[^\s]+$/g;let o,i;if(e||(e=document),"string"==typeof t&&(i=/\s/g.test(t)?t.match(n)[0]:t,o=r.exec(t),null!==o?o[1]?t=e.getElementById?e.getElementById(o[1]):e.querySelector(o[0]):o[2]?t=e.getElementsByTagName(o[2]):o[3]&&(t=e.getElementsByClassName(o[3])):t=e.querySelectorAll(t),t&&(void 0===t.strName||t.strName&&t.strName!==i)&&(t.strName=i)),null===t||t&&0===t.length&&t!==(window||document)?t=!1:t.exists=!0,t){const e=t.length;if(e){let r=0;do{for(let e in l)l.hasOwnProperty(e)&&"function"==typeof l[e]&&(t[e]=l[e],t[r][e]=l[e]);r++}while(r<e);if(1===e)return t[0].exists=!0,t[0].strName=i,t[0]}else for(let e in l)l.hasOwnProperty(e)&&"function"==typeof l[e]&&(t[e]=l[e])}else t={exists:!1,strName:i};return t},u=function(t,e){const r=t[0];let n=t[1],o=!t[2]||t[2];if("function"==typeof t[1])e.info=i(e.info,{event:r,callback:n}),e.addEventListener(r,n,o);else{const s=t[1];n=t[2],o=!0,e.info=i(e.info,{event:r,delegate:s,callback:n}),e.addEventListener(r,(function(e){for(let r=e.target;r&&r!=this;r=r.parentNode)if(r.matches(s)){e.stopPropagation(),e.delegate=r,n.call(t[3],e,r);break}}),o)}return e},l={on(){const t=this.length;let e;if(t)for(let r=0;r<t;r++)e=new u(arguments,this[r]);else e=new u(arguments,this);return e},off(){const t=this.length;if(t)for(let e=0;e<t;e++)s(this[e],this[e].info);else s(this,this.info);return this},html(t){const e=this.length;if(e)for(let r=0;r<e;r++)""!==this[r].innerHTML&&(this[r].innerHTML=""),this[r].innerHTML=t;else this.innerHTML=t;return this},insertHTML(t,e){const r=this.length;if(r)for(let n=0;n<r;n++)this[n].insertAdjacentHTML(t,e);else this.insertAdjacentHTML(t,e);return this},attr(t,e){const r=this.length;if(r)for(let n=0;n<r;n++){if(void 0===e)return this[n].getAttribute(t);this[n].setAttribute(t,e)}else r||void 0===e||this.setAttribute(t,e);return this.getAttribute(t)},val(t){const e=this.length;if(e)for(let r=0;r<e;r++){if(void 0===t)return this[r].value;this[r].value=t}else{if(void 0===t)return this.value;this.value=t}return this},prop(t,e){const r=this.length;if(r)for(let n=0;n<r;n++)this[n][t]=e;else this[t]=e;return this},each(t){try{for(let e=0,r=this.length;e<r;e++){let r=this[e];for(let t in l)l.hasOwnProperty(t)&&"function"==typeof l[t]&&(r[t]=l[t]);t(r,e,this)}}catch(t){console.error(t)}},find(t){return new c(t,this)}};var h=c,f=r(4),d=r.n(f);const p=Object.create(n.a);p.dom=function(t){return new h(t)},p.each=function(t,e){if(Array.isArray(t))for(let r=0;r<t.length;r++)e(t[r],r,t);else{let r=t;for(let t in r)r.hasOwnProperty(t)&&e(r[t],t,r)}},p.isObject=function(t){return null!==t&&("function"==typeof t||"object"==typeof t)},p.extend=function(){for(let t=1;t<arguments.length;t++){let e=arguments[t];for(let t in e){let r=e[t];"object"!=typeof r||Array.isArray(r)||(r=d()(e[t])),arguments[0][t]=r}}return arguments[0]},p.uniqueArray=function(t){return Array.from(new Set(t))};var y=p;const b={percentComplete:0,storage:null,ajax:function({...t}){let{url:e,method:r="GET",headers:n=!1,responseType:o="json",widthCredentials:i=!1,data:s=null}=t;return new Promise((t,a)=>{let c=new XMLHttpRequest;c.open(r,e),n&&Object.keys(n).forEach(t=>{c.setRequestHeader(t,n[t])}),c.responseType=o.toLowerCase(),c.widthCredentials=i,c.onload=function(){this.status>=200&&this.status<300?t(c.response):a({status:this.status,statusText:c.statusText})},c.onerror=function(){a({status:this.status,statusText:c.statusText})},s&&"object"==typeof s&&(s=Object.keys(s).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(s[t])})).join("&")),c.send(s)})},error:function(){console.log("There was an error with your XHR request")},abort:function(){console.log("Aborted your XHR request.")},updateProgress:function(t){t.lengthComputable?this.percentComplete=t.loaded/t.total*100:Internal.warnings.push({type:"XHR."+this.methodType,description:'Unable to update "'+this.methodType+'" xhr request progress.'})}};var m=b;var v={subscriptions:[],nativeEvents:["focus","blur","click","keydown","keyup","change"],publish(t,e=null,r=!1){const n=this.createEvent(t,e);this.isPublishedEvent=!0,r&&this.trigger(n)},subscribe(t,e,r=!1,n=document){if(this.subscriptions.includes(t))return!1;this.subscriptions.push(t),n.addEventListener(t,e,r)},trigger(t,e=null,r=document){this.isPublishedEvent||(t=this.createEvent(t,e)),this.isPublishedEvent=!1,r.dispatchEvent(t)},createEvent(t,e){let r;return this.nativeEvents.some(e=>e===t)?r=new Event(t):(null===e&&(e={}),r=new CustomEvent(t,{detail:e})),r}};const g=Object.create(y);g.xhr=Object.create(m),g.events=Object.create(v),g.customUtilities=null,g.util={createUniqueId:a,bindUIElements:function(t){const e=t.ui;if(!(e&&Object.keys(e).length>0)||void 0!==t.bindUI&&!t.bindUI)return!1;for(let r in e){let n=e[r],i="string"==typeof n,s="object"==typeof n;if(i||s&&-1===r.indexOf("."))if(i&&n!==t.strUI[r]&&(t.strUI[r]=n),!t.customized&&i||(n=t.strUI[r]),void 0!==t.super){const o=t.super.selector;e[r]=void 0!==o&&void 0!==n?o.find(n):o}else e[r]=t.dom(n);else e[r].selector=o({delegate:r,uiSelectorObj:e[r],context:t})}return e}},g.create=function(t){Object.assign(this,t)},g.setUtilityMethods=function(t){try{if("object"!=typeof t)throw{type:"type error",name:"App.customUtilities",message:"Property shhould be type OBJECT."};this.util=Object.assign(this.util,t)}catch(t){console.error(t)}},g.afterStart=function(){return null},g.start=function(){this.setUtilityMethods(this.customUtilities),this.initStorage(),this.afterStart()};e.a=g},function(t,e,r){"use strict";var n=r(0);const o=Object.create(n.a);o.selector=null,o.template=null,o.hasRendered=!1,o.renderType="append",o.renderMultiple=!1,o.beforeRender=function(){return null},o.render=function(t=null,e=!1){if(this.destroy(),this.setDOMSelector(e),this.beforeRender(),!this.shouldRender)return!1;try{this.errorCheck();let e=this.serializeData(null!=t?t:this.store);this.addTemplateToDOM(e)}catch(t){console.error(t)}this.internalPostHook(),this.afterRender()},o.internalPostHook=function(){void 0!==this.strap&&this.strap(),void 0!==this.startBehaviors&&this.startBehaviors(),this.util.bindUIElements(this),this.hasRendered=!0},o.afterRender=function(){return null},o.destroy=function(){if(!this.hasRendered||this.renderMultiple||!this.hasRendered&&this.shouldRender)return null;void 0!==this.destroyChildren&&this.destroyChildren();let t=this.selector.firstChild;for(;t;)this.selector.removeChild(t),t=this.selector.firstChild;void 0!==this.unbindBehaviorEvents&&"function"==typeof this.unbindBehaviorEvents&&this.unbindBehaviorEvents(),this.selector instanceof Object&&(this.selector=this.selector.strName?this.selector.strName:`.${this.selector.classList[0]}`),this.hasRendered=!1},o.setDOMSelector=function(t){if("string"!=typeof this.selector){if(!t)return!1;this.selector=this.selector.strName}if(this.renderMultiple&&void 0!==this.super){const t=this.super.selector.strName;this.selector=this.dom(`${t} ${this.selector}`)}else this.selector=this.dom(this.selector);if(!this.selector.exists)throw new Error(`Selector ${this.selector.strName} defined in ${this.type} ${this.name} does not exist in the DOM.`)},o.addTemplateToDOM=function(t){if(this.shouldRender){let e=this.template(t);"append"!==this.renderType?this.selector.html(e):this.selector.insertHTML("beforeend",e)}else this.selector.remove()},o.serializeData=function(t){if(t)return t},o.errorCheck=function(){let t={type:this.type,name:this.name};if("component"===this.type&&null===this.template&&(t.message="no template currently exists."),null===this.selector&&(t.message="The necessary elements to render your components do not exist in the DOM."),t.message)throw t};var i=o;const s=Object.create(i);s.name="",s.strUI={},s.behaviors=[],s.bindUI=!0,s.shouldRender=!0,s.shouldSetBehaviors=!0,s.shouldRenderChildren=!0,s.create=function(t,e={}){Object.assign(this,t,e)},s.init=function(){return null},s.bootstrapChildren=async function(t,e){for(let r=0;r<e;r++){let e=t[r],n=e.options,o=n?e.component.type:e.type;if(e[o]&&n){let i=Object.create(e[o]);"function"==typeof n&&(n=await n.call(this)),e.defaultOnly?i.default=Object.assign({},i.default,n):i=this.extend({},i,n),t.splice(r,1,i),e=i}else{e=Object.create(e)}e.super=Object.create(this),this.checkUniqueName&&this.checkUniqueName(e),e.init(),this.shouldRenderChildren&&(e.shouldRender&&""!==e.template&&e.render())}},s.startBehaviors=function(){const t=this.behaviors.length;if(this.shouldSetBehaviors&&t>0){for(let e=0;e<t;e++){let t=this.behaviors[e],r=t.options,n=r?t.behavior.type:t.type;if(t[n]){const o=t[n],i=Object.create(t[n]);try{if(!r)throw{type:`Customization ${o.name}`,message:"Customization options is either missing or mis-spelled."};t.uiOnly?i.ui=Object.assign({},i.ui,r):i=this.extend({},i,r),i.setUniqueIdAndName(this.name),this.behaviors.splice(e,1,i),t=i}catch(t){console.log(t)}}else t=Object.create(t),t.setUniqueIdAndName(this.name);t.super=Object.create(this),t.shouldStart&&t.start()}this.shouldSetBehaviors=!1}},s.unbindBehaviorEvents=function(){if(0===this.behaviors.length)return!1;for(let t=0;t<this.behaviors.length;t++){let e=this.behaviors[t];e=e.name?e.name:e,e.ui?(e.unbindUIElements(),this.shouldSetBehaviors=!0):this.shouldSetBehaviors=!1}return this},s.getBehavior=function(t){if(0===this.behaviors.length)return!1;return this.behaviors.filter(e=>(e.name&&(e=e.name),e.behaviorName===t))[0]};e.a=s},function(t,e,r){"use strict";const n={default:{storeName:"",storageType:"session",storage:!1,keysToStore:[]},store:{},isLocalStorage:null,config(t){if(t&&"object"==typeof t){let e={};for(let r in t)try{if(!t.storeName&&t.storage)throw new Error("storeName is required.");if(r&&t[r]){switch(r){case"storeName":case"storageType":if("string"!=typeof t[r])throw new Error(`The Storage.config() method ${r} needs to be a string type.`);break;case"storage":if("boolean"!=typeof t[r])throw new Error(`The Storage.config() method ${r} needs to be a boolean.`);break;case"keysToStore":if(!Array.isArray(t[r]))throw new Error(`The Storage.config() method ${r} needs to be an array.`)}e[r]=t[r]}}catch(t){console.error(t)}if(e.storeName&&""===e.storeName||!e.storeName&&""===this.default.storeName){let t=(new Date).getMilliseconds();e.storeName=`store-${t}`}this.default=Object.assign(this.default,e)}},set(t){try{if(void 0===t||"object"!=typeof t)throw new Error("Options must be passed in as an object.");this.store=Object.assign(this.store,t)}catch(t){console.error(t)}},initStorage(){let t={},e={};if(t="local"===this.default.storageType?localStorage[this.default.storeName]:sessionStorage[this.default.storeName],!t||null===t)return!1;t=JSON.parse(t);for(let r in t)r&&t[r]&&(e[r]=t[r]);Object.assign(this.store,e)},saveStore({data:t=!1,storeName:e=this.default.storeName,storageType:r=this.default.storageType,extendSettings:n=!0}={}){let o={};try{if(t){if(("object"!=typeof t||Array.isArray(t))&&n)throw new Error("Storage error: Cannot extend data of type object.");o=n?Object.assign({},this.store,t):t}else if(this.default.keysToStore.length>0)for(let t=0,e=this.default.keysToStore.length;t<e;t++){let e=this.default.keysToStore[t];o[e]=this.store[e]}else o=this.store}catch(t){console.error(t)}"local"===r?localStorage[e]=JSON.stringify(o):sessionStorage[e]=JSON.stringify(o)},getStore({keyName:t=!1,storeName:e=this.default.storeName,storageType:r=this.default.storageType}={}){let n={};return n="local"===r?localStorage[e]:sessionStorage[e],!(!n||null===n)&&(n=JSON.parse(n),t?n[t]:n)},removeFromStore(t,e=this.default.storageType){if("string"==typeof t){"local"===e?localStorage.removeItem(t):sessionStorage.removeItem(t)}},clearStore(t=this.default.storageType){"local"===t?localStorage.clear():sessionStorage.clear()}};e.a=n},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){(function(t,r){var n="[object Arguments]",o="[object Function]",i="[object GeneratorFunction]",s="[object Map]",a="[object Set]",c=/\w*$/,u=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,h={};h[n]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object DataView]"]=h["[object Boolean]"]=h["[object Date]"]=h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h[s]=h["[object Number]"]=h["[object Object]"]=h["[object RegExp]"]=h[a]=h["[object String]"]=h["[object Symbol]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h["[object Error]"]=h[o]=h["[object WeakMap]"]=!1;var f="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,p=f||d||Function("return this")(),y=e&&!e.nodeType&&e,b=y&&"object"==typeof r&&r&&!r.nodeType&&r,m=b&&b.exports===y;function v(t,e){return t.set(e[0],e[1]),t}function g(t,e){return t.add(e),t}function j(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function _(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function w(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function O(t,e){return function(r){return t(e(r))}}function S(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var A,x=Array.prototype,T=Function.prototype,N=Object.prototype,U=p["__core-js_shared__"],E=(A=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",I=T.toString,C=N.hasOwnProperty,k=N.toString,P=RegExp("^"+I.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=m?p.Buffer:void 0,R=p.Symbol,B=p.Uint8Array,$=O(Object.getPrototypeOf,Object),L=Object.create,q=N.propertyIsEnumerable,D=x.splice,H=Object.getOwnPropertySymbols,F=M?M.isBuffer:void 0,V=O(Object.keys,Object),z=bt(p,"DataView"),J=bt(p,"Map"),W=bt(p,"Promise"),X=bt(p,"Set"),G=bt(p,"WeakMap"),Z=bt(Object,"create"),K=_t(z),Q=_t(J),Y=_t(W),tt=_t(X),et=_t(G),rt=R?R.prototype:void 0,nt=rt?rt.valueOf:void 0;function ot(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function it(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function st(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function at(t){this.__data__=new it(t)}function ct(t,e){var r=Ot(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&St(t)}(t)&&C.call(t,"callee")&&(!q.call(t,"callee")||k.call(t)==n)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],o=r.length,i=!!o;for(var s in t)!e&&!C.call(t,s)||i&&("length"==s||gt(s,o))||r.push(s);return r}function ut(t,e,r){var n=t[e];C.call(t,e)&&wt(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function lt(t,e){for(var r=t.length;r--;)if(wt(t[r][0],e))return r;return-1}function ht(t,e,r,u,l,f,d){var p;if(u&&(p=f?u(t,l,f,d):u(t)),void 0!==p)return p;if(!Tt(t))return t;var y=Ot(t);if(y){if(p=function(t){var e=t.length,r=t.constructor(e);e&&"string"==typeof t[0]&&C.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!e)return function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(t,p)}else{var b=vt(t),m=b==o||b==i;if(At(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if("[object Object]"==b||b==n||m&&!f){if(_(t))return f?t:{};if(p=function(t){return"function"!=typeof t.constructor||jt(t)?{}:(e=$(t),Tt(e)?L(e):{});var e}(m?{}:t),!e)return function(t,e){return pt(t,mt(t),e)}(t,function(t,e){return t&&pt(e,Nt(e),t)}(p,t))}else{if(!h[b])return f?t:{};p=function(t,e,r,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return dt(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return function(t,e){var r=e?dt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?dt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,n);case s:return function(t,e,r){return j(e?r(w(t),!0):w(t),v,new t.constructor)}(t,n,r);case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,c.exec(t));return e.lastIndex=t.lastIndex,e}(t);case a:return function(t,e,r){return j(e?r(S(t),!0):S(t),g,new t.constructor)}(t,n,r);case"[object Symbol]":return i=t,nt?Object(nt.call(i)):{}}var i}(t,b,ht,e)}}d||(d=new at);var O=d.get(t);if(O)return O;if(d.set(t,p),!y)var A=r?function(t){return function(t,e,r){var n=e(t);return Ot(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Nt,mt)}(t):Nt(t);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););}(A||t,(function(n,o){A&&(n=t[o=n]),ut(p,o,ht(n,e,r,u,o,t,d))})),p}function ft(t){return!(!Tt(t)||(e=t,E&&E in e))&&(xt(t)||_(t)?P:u).test(_t(t));var e}function dt(t){var e=new t.constructor(t.byteLength);return new B(e).set(new B(t)),e}function pt(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var s=e[o],a=n?n(r[s],t[s],s,r,t):void 0;ut(r,s,void 0===a?t[s]:a)}return r}function yt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function bt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return ft(r)?r:void 0}ot.prototype.clear=function(){this.__data__=Z?Z(null):{}},ot.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},ot.prototype.get=function(t){var e=this.__data__;if(Z){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return C.call(e,t)?e[t]:void 0},ot.prototype.has=function(t){var e=this.__data__;return Z?void 0!==e[t]:C.call(e,t)},ot.prototype.set=function(t,e){return this.__data__[t]=Z&&void 0===e?"__lodash_hash_undefined__":e,this},it.prototype.clear=function(){this.__data__=[]},it.prototype.delete=function(t){var e=this.__data__,r=lt(e,t);return!(r<0)&&(r==e.length-1?e.pop():D.call(e,r,1),!0)},it.prototype.get=function(t){var e=this.__data__,r=lt(e,t);return r<0?void 0:e[r][1]},it.prototype.has=function(t){return lt(this.__data__,t)>-1},it.prototype.set=function(t,e){var r=this.__data__,n=lt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},st.prototype.clear=function(){this.__data__={hash:new ot,map:new(J||it),string:new ot}},st.prototype.delete=function(t){return yt(this,t).delete(t)},st.prototype.get=function(t){return yt(this,t).get(t)},st.prototype.has=function(t){return yt(this,t).has(t)},st.prototype.set=function(t,e){return yt(this,t).set(t,e),this},at.prototype.clear=function(){this.__data__=new it},at.prototype.delete=function(t){return this.__data__.delete(t)},at.prototype.get=function(t){return this.__data__.get(t)},at.prototype.has=function(t){return this.__data__.has(t)},at.prototype.set=function(t,e){var r=this.__data__;if(r instanceof it){var n=r.__data__;if(!J||n.length<199)return n.push([t,e]),this;r=this.__data__=new st(n)}return r.set(t,e),this};var mt=H?O(H,Object):function(){return[]},vt=function(t){return k.call(t)};function gt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||l.test(t))&&t>-1&&t%1==0&&t<e}function jt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||N)}function _t(t){if(null!=t){try{return I.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function wt(t,e){return t===e||t!=t&&e!=e}(z&&"[object DataView]"!=vt(new z(new ArrayBuffer(1)))||J&&vt(new J)!=s||W&&"[object Promise]"!=vt(W.resolve())||X&&vt(new X)!=a||G&&"[object WeakMap]"!=vt(new G))&&(vt=function(t){var e=k.call(t),r="[object Object]"==e?t.constructor:void 0,n=r?_t(r):void 0;if(n)switch(n){case K:return"[object DataView]";case Q:return s;case Y:return"[object Promise]";case tt:return a;case et:return"[object WeakMap]"}return e});var Ot=Array.isArray;function St(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!xt(t)}var At=F||function(){return!1};function xt(t){var e=Tt(t)?k.call(t):"";return e==o||e==i}function Tt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Nt(t){return St(t)?ct(t):function(t){if(!jt(t))return V(t);var e=[];for(var r in Object(t))C.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}r.exports=function(t){return ht(t,!0,!0)}}).call(this,r(3),r(12)(t))},function(t,e,r){"use strict";var n=r(0);const o=Object.create(n.a);o.id="",o.ui={},o.name="",o.strUI={},o.type="behavior",o.bindUI=!0,o.customized=!1,o.shouldStart=!0,o.setStringUIValues=!0,o.config=function(t){if(Object.assign(this,t),this.setStringUIValues){let t=Symbol("stringUISelectors");this.strUI[t]={};for(let e in this.ui)this.ui.hasOwnProperty(e)&&(this.strUI[t][e]=this.ui[e]);this.strUI=this.strUI[t],this.setStringUIValues=!1}try{if(""===this.name)throw{type:"Behavior",message:"Behavior name has not been declared"};-1===this.name.indexOf("-behavior")&&(this.name+="-behavior")}catch(t){console.error(t)}},o.setUniqueIdAndName=function(t){let e="";this.id=(new Date).getTime(),t&&(this.name.indexOf("__")>-1&&(this.name=this.name.split("__")[0]),e="__"+t),this.name=this.name+e},o.unbindUIElements=function(){for(let t in this.ui)this.ui.hasOwnProperty(t)&&void 0!==this.ui[t].info&&(this.ui[t].off(),this.ui[t]=this.strUI[t])},o.start=function(){this.util.bindUIElements(this)},e.a=o},function(t,e,r){"use strict";var n=r(1);const o=Object.create(n.a);o.type="composite",o.modules=[],o.components=[],o.strap=function(){const t=this.modules.length,e=this.components.length;t>0&&this.bootstrapChildren(this.modules,t),e>0&&this.bootstrapChildren(this.components,e)},o.destroyChildren=function(){const t=this.modules.concat(this.components),e=t.length;if(0===e)return!1;for(let r=0;r<e;r++){let e=t[r];e=e.name?e.name:e;for(let t=0,r=e.length;t<r;t++)e[t].hasRendered&&e[t].destroy()}},o.getChild=function(t,e="modules"){for(let r=0,n=this[e].length;r<n;r++){let n=this[e][r],o=n.name;if(n&&"string"!=typeof o&&(o=o.name),o.indexOf(t)>-1)return n}},e.a=o},function(t,e,r){"use strict";var n=r(1);const o=Object.create(n.a);o.id=0,o.type="component",o.setUniqueName=function(){let t=this.name;return t=-1===t.indexOf(`-${this.type}`)?`${t}-${this.type}-${this.id}`:`${t}-${this.id}`,this.name=t,this.id++,t},e.a=o},function(t,e,r){"use strict";var n=r(1);const o=Object.create(n.a);o.type="module",o.components=[],o.componentNameArray=[],o.shouldSetBehaviors=!0,o.strap=function(){const t=this.components.length;if(!Array.isArray(this.components)&&0===t)return null;this.beforeAddComponents(),this.bootstrapChildren(this.components,t),this.afterAddComponents()},o.beforeAddComponents=function(){return!1},o.afterAddComponents=function(){return!1},o.destroyChildren=function(){let t=this.components.length;if(0===t)return!1;let e=0,r=this.components[e];r=r.name?r.name:r;do{this.components[e].hasRendered&&this.components[e].destroy(),e++}while(e<t)},o.checkUniqueName=function(t){return this.componentNameArray.includes(e=>e.indexOf(t.name)>=0)?(t.setUniqueName(),!1):(this.componentNameArray.push(t.name+"-1"),!0)},o.getChildComponent=function(t){for(let e=0,r=this.components.length;e<r;e++)if(this.components[e].name.indexOf(t)>-1)return this.components[e]},e.a=o},function(t,e,r){t.exports=r(10)},function(t,e,r){"use strict";r.r(e),function(t,e){var n=r(0),o=r(2),i=r(5),s=r(6),a=r(7),c=r(8);const u="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||{},l={Storage:o.a,Behavior:i.a,Composite:s.a,Component:a.a,Module:c.a,App:n.a,VERSION:"1.7.7"};"undefined"==typeof exports||exports.nodeType?u.Zense=l:(!e.nodeType&&e.exports&&(exports=e.exports=l),exports.Zense=l)}.call(this,r(3),r(11)(t))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}}]);