text: !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.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=Object.create(null);if(n.r(r),Object.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 Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=31)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(28);var r=function(){function t(t){this.f=t}return t.prototype.dispose=function(){this.f()},t}();e.AtomDisposable=r;var o=function(){function t(){this.listeners=[]}return Object.defineProperty(t.prototype,"cancelled",{get:function(){return this.mCancelled},enumerable:!0,configurable:!0}),t.prototype.cancel=function(){this.mCancelled=!0;for(var t=0,e=this.listeners;t<e.length;t++){(0,e[t])()}},t.prototype.reset=function(){this.mCancelled=!1,this.listeners.length=0},t.prototype.registerForCancel=function(t){if(this.mCancelled)return t(),void this.cancel();this.listeners.push(t)},t}();e.CancelToken=o;var i=function(){function t(){}return t.remove=function(t,e){for(var n=0;n<t.length;n++){if(e(t[n]))return t.splice(n,1),!0}return!1},t}();e.ArrayHelper=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=function(){function t(){}return t.setValue=function(t,e,n){throw new Error("Method not implemented.")},t.getClone=function(t){throw new Error("Method not implemented.")},t.refreshValue=function(e,n){var r=t.get_WatchHandler(e,n);if(void 0!==r&&null!=r){for(var o=0,i=r;o<i.length;o++){(0,i[o])(e,n)}e.onPropertyChanged&&e.onPropertyChanged(n)}},t.add_WatchHandler=function(e,n,r){if(null!=e){t.get_WatchHandler(e,n).push(r);var o=e;if(o._$_bindable||(o._$_bindable=[]),-1===o._$_bindable.indexOf(n)){o._$_bindable.push(n);var i="_$_"+n,s=function(e){this[i]!=e&&(this[i]=e,t.refreshValue(this,n))},a=function(){return this[i]},u=t.getPropertyDescriptor(e,n);if(u){if(!u.get){var c=u.value;e[i]=c,u.get=a,u.set=s,delete u.value,delete u.writable,Object.defineProperty(e,n,u)}}else Object.defineProperty(e,n,{get:a,set:s,enumerable:!0,configurable:!0})}}},t.getPropertyDescriptor=function(e,n){var r=Object.getOwnPropertyDescriptor(e,n);if(!r){var o=Object.getPrototypeOf(e);if(o)return t.getPropertyDescriptor(o,n)}return r},t.get_WatchHandler=function(t,e){if(null==t)return null;var n=t._$_handlers;n||(n={},t._$_handlers=n);var r=n[e];return void 0!==r&&null!=r||(r=[],n[e]=r),r},t.remove_WatchHandler=function(t,e,n){if(null!=t&&t._$_handlers){var o=t._$_handlers[e];void 0!==o&&null!=o&&(r.ArrayHelper.remove(o,function(t){return t===n}),o.length||(t._$_handlers[e]=null,delete t._$_handlers[e]))}},t.invokeItemsEvent=function(e,n,r,o){var i=t.get_WatchHandler(e,"_items");if(i){for(var s=0,a=i;s<a.length;s++){(0,a[s])(e,n,r,o)}t.refreshValue(e,"length")}},t.refreshItems=function(e){t.invokeItemsEvent(e,"refresh",-1,null)},t.add_CollectionChanged=function(e,n){return null==e?null:(t.get_WatchHandler(e,"_items").push(n),new r.AtomDisposable(function(){t.remove_CollectionChanged(e,n)}))},t.remove_CollectionChanged=function(t,e){if(null!=t){var n=t;if(n._$_handlers){var o="_items",i=n._$_handlers[o];void 0!==i&&null!=i&&(r.ArrayHelper.remove(i,function(t){return t===e}),i.length||(n._$_handlers[o]=null,delete n._$_handlers[o]))}}},t.watch=function(e,n,o){return t.add_WatchHandler(e,n,o),new r.AtomDisposable(function(){t.remove_WatchHandler(e,n,o)})},t.clear=function(e){e.length=0,this.invokeItemsEvent(e,"refresh",-1,null),t.refreshValue(e,"length")},t.addItem=function(e,n){var r=e.length;e.push(n),this.invokeItemsEvent(e,"add",r,n),t.refreshValue(e,"length")},t.removeItem=function(e,n){var r=e.findIndex(function(t){return t===n});return-1!==r&&(e.splice(r,1),t.invokeItemsEvent(e,"remove",r,n),t.refreshValue(e,"length"),!0)},t}();e.AtomBinder=o},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),s=n(0),a=function(){return function(){}}();e.BaseElementBridge=a;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.addEventHandler=function(t,e,n,r){return t.addEventListener(e,n,r),new s.AtomDisposable(function(){t.removeEventListener(e,n,r)})},e.prototype.atomParent=function(t,e){void 0===e&&(e=!0);var n=t;return n.atomControl?n.atomControl:e&&t.parentNode?this.atomParent(this.elementParent(t)):null},e.prototype.elementParent=function(t){var e=t._logicalParent;return e||t.parentElement},e.prototype.templateParent=function(t){if(!t)return null;if(t._templateParent)return this.atomParent(t);var e=this.elementParent(t);return e?this.templateParent(e):null},e.prototype.visitDescendents=function(t,e){for(var n=new i.ChildEnumerator(t);n.next();){var r=n.current;e(r,r?r.atomControl:void 0)&&this.visitDescendents(r,e)}},e.prototype.dispose=function(t){var e=t;e.atomControl=void 0,delete e.atomControl},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.setValue=function(t,e,n){t[e]=n},e.prototype.getValue=function(t,e){return t[e]},e.prototype.watchProperty=function(t,e,n){var r=function(e){n(t.value)};return t.addEventListener("change",r,!1),new s.AtomDisposable(function(){t.removeEventListener("change",r,!1)})},e.prototype.attachControl=function(t,e){t.atomControl=e},e.prototype.create=function(t){return document.createElement(t)},e.prototype.loadContent=function(t,e){throw new Error("Not supported")},e.prototype.findChild=function(t,e){throw new Error("Not supported")},e}(a);e.AtomElementBridge=u;var c=function(){function t(){}return t.create=function(t){return this.instance.create(t)},t.instance=new u,t}();e.AtomBridge=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.e=t}return Object.defineProperty(t.prototype,"current",{get:function(){return this.item},enumerable:!0,configurable:!0}),t.prototype.next=function(){return this.item?this.item=this.item.nextElementSibling:this.item=this.e.firstElementChild,!!this.item},t}();e.ChildEnumerator=r;var o=function(){function t(){}return t.addClass=function(t,e){throw new Error("Method not implemented.")},t.css=function(t,e){throw new Error("Method not implemented.")},t.outerHeight=function(t,e){throw void 0===e&&(e=!1),new Error("Method not implemented.")},t.outerWidth=function(t,e){throw void 0===e&&(e=!1),new Error("Method not implemented.")},t.innerWidth=function(t){throw new Error("Method not implemented.")},t.innerHeight=function(t){throw new Error("Method not implemented.")},t.scrollTop=function(t,e){throw new Error("Method not implemented.")},t.forEachChild=function(t,e){for(var n=t.firstElementChild;n;)n&&e(t),n=n.nextElementSibling},t.screenOffset=function(t){var e={x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight};if(t.offsetParent){var n=this.screenOffset(t.offsetParent);e.x+=n.x,e.y+=n.y}return e},t.parseUrl=function(t){for(var e={},n=0,r=t.split("&");n<r.length;n++){var o=r[n].split("="),i=o[0],s=o[1];s&&(s=decodeURIComponent(s)),e[i]=this.parseValue(s)}return e},t.parseValue=function(t){var e;return/^[0-9]+$/.test(t)?(e=parseInt(t,10),isNaN(e)?t:e):/^[0-9]+\.[0-9]+/gi.test(t)?(e=parseFloat(t),isNaN(e)?t:e):!!/true/.test(t)||!/false/.test(t)&&t},t.assignID=function(e){return e.id||(e.id="__waID"+t.getNewIndex()),e.id},t.toNumber=function(t){return t&&t.constructor===String?parseFloat(t):0},t.getNewIndex=function(){return t.index=t.index+1,t.index},t.index=1001,t}();e.AtomUI=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.get=function(t){for(var e=0,n=this.keys;e<n.length;e++){var r=n[e];if(r.c===t)return r.key}var o="key"+this.keys.length;return this.keys.push({c:t,key:o}),o},t.keys=[],t}();e.TypeKey=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(0);!function(t){t[t.Global=1]="Global",t[t.Scoped=2]="Scoped",t[t.Transient=3]="Transient"}(r=e.Scope||(e.Scope={}));var i=function(){return function(t,e,n,r){this.id=t,this.scope=e,this.type=n,this.factory=r,this.factory=this.factory||function(t){return t.create(n)}}}();e.ServiceDescription=i;var s=function(){function t(){this.registrations=[],this.ids=1}return t.prototype.register=function(t,e,n,s){void 0===n&&(n=r.Transient),o.ArrayHelper.remove(this.registrations,function(e){return s?e.id===s:e.type===t}),s||(s=t.toString()+this.ids,this.ids++);var a=new i(s,n,t,e);return this.registrations.push(a),a},t.prototype.registerScoped=function(t,e,n){return this.register(t,e,r.Scoped,n)},t.prototype.registerSingleton=function(t,e,n){return this.register(t,e,r.Global,n)},t.prototype.get=function(t){return this.registrations.find(function(e){return e.id===t||e.type===t})},t.instance=new t,t}();e.ServiceCollection=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=null,this.tail=null}return t.prototype.onTimeout=function(){var t=this;if(!this.paused&&this.head){var e=this.head;this.head=e.next,e.next=null,this.head||(this.tail=null),e(),setTimeout(function(){t.onTimeout()},1)}},t.prototype.pause=function(){this.paused=!0},t.prototype.start=function(){var t=this;this.paused=!1,setTimeout(function(){t.onTimeout()},1)},t.prototype.callLater=function(t){this.tail?(this.tail.next=t,this.tail=t):(this.head=t,this.tail=t),this.paused||this.start()},t.instance=new t,t}();e.AtomDispatcher=r,r.instance.start()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o={};var i=function(){function t(t){this.name=t}return t.prototype.toString=function(){return this.name},t}();e.ObjectProperty=i;var s=function(){function t(t,e,n,r,s){var a=this;this.isExecuting=!1,this.target=t;var u=!1;if(!0===r&&(this.forValidation=!0),e instanceof Function){var c=e;e=function(t){var e=t.toString().trim(),n=e,r=o[n];if(r)return r;e.endsWith("}")&&(e=e.substr(0,e.length-1)),e.startsWith("function (")&&(e=e.substr("function (".length)),e.startsWith("function(")&&(e=e.substr("function(".length));var i=(e=e.trim()).indexOf(")"),s=0===i?"_this|this":e.substr(0,i);e=e.substr(i+1);for(var a=new RegExp("(?:("+s+")(?:(\\.[a-zA-Z_][a-zA-Z_0-9]*)+)(?:\\(?))","gi"),u=[],c=(e.replace(a,function(t){var e=t;return e=e.startsWith("this.")?e.substr(5):e.startsWith("_this.")?e.substr(6):e.substr(s.length+1),u.find(function(t){return t===e})||u.push(e),u=u.filter(function(t){return!t.endsWith("(")}),t}),[]),f=function(t){if(c.find(function(e){return e.startsWith(t)}))return"continue";c.push(t)},l=0,p=u=u.sort(function(t,e){return e.localeCompare(t)});l<p.length;l++)f(p[l]);var h=u.map(function(t){return t.split(".")});return o[n]=h,h}(e),u=!0,this.func=s||c,this.funcText=c.toString()}else this.func=s;this.runEvaluate=function(){a.evaluate()},this.runEvaluate.watcher=this,this.path=e.map(function(t){return t.map(function(t){return new i(t)})}),this.path.length||console.warn("There is nothing to watch"),u&&n&&this.evaluate()}return t.prototype.evaluate=function(t){if(!this.isExecuting){this.isExecuting=!0;try{for(var e=[],n=0,r=this.path;n<r.length;n++){var o=r[n];e.push(this.evaluatePath(this.target,o))}if(!0===t&&(this.forValidation=!1),this.forValidation){if(!e.find(function(t){return!!t}))return;this.forValidation=!1}try{this.func.call(this.target,this.target,e)}catch(t){console.warn(t)}}finally{this.isExecuting=!1;for(var i=0,s=[];i<s.length;i++){s[i].dispose()}}}},t.prototype.toString=function(){return this.func.toString()},t.prototype.dispose=function(){for(var t=0,e=this.path;t<e.length;t++)for(var n=0,r=e[t];n<r.length;n++){var o=r[n];o.watcher&&(o.watcher.dispose(),o.watcher=null,o.target=null)}this.func=null,this.path.length=0,this.path=null},t.prototype.evaluatePath=function(t,e){for(var n=null,o=0,i=e;o<i.length;o++){var s=i[o];if(n=t[s.name],s.target?s.target!==t&&(s.watcher&&s.watcher.dispose(),s.watcher=r.AtomBinder.watch(t,s.name,this.runEvaluate)):s.watcher=r.AtomBinder.watch(t,s.name,this.runEvaluate),s.target=t,t=n,void 0===n||null===n)break}return n},t}();e.AtomWatcher=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7),o=n(2),i=n(0),s=function(){function t(t,e,n,o,i,s){var a=this;this.isTwoWaySetup=!1,this.name=n,this.twoWays=i,this.target=t,this.element=e,this.watcher=new r.AtomWatcher(t,o,!0,!1),this.valueFunc=s,this.watcher.func=function(t,e){for(var n=0,r=e;n<r.length;n++){if(void 0===r[n])return}var o=a.valueFunc?a.valueFunc.apply(a,e):e[0];a.target.setLocalValue(a.element,a.name,o)},this.path=this.watcher.path,this.target.runAfterInit(function(){a.watcher.evaluate(),i&&a.setupTwoWayBinding()})}return t.prototype.setupTwoWayBinding=function(){var t=this;if(this.target.hasProperty(this.name)){var e=new r.AtomWatcher(this.target,[[this.name]],!1,!1);e.func=function(e,n){t.isTwoWaySetup&&t.setInverseValue(n[0])},e.evaluate(),this.isTwoWaySetup=!0,this.twoWaysDisposable=new i.AtomDisposable(function(){e.dispose()})}else this.twoWaysDisposable=o.AtomBridge.instance.watchProperty(this.element,this.name,function(e){t.setInverseValue(e)})},t.prototype.setInverseValue=function(t){if(!this.twoWays)throw new Error("This Binding is not two ways.");var e=this.path[0],n=e.length,r=this.target,o=0;for(o=0;o<n-1;o++)if(!(r=r[e[o].name]))return;r[e[o].name]=t},t.prototype.dispose=function(){this.twoWaysDisposable&&(this.twoWaysDisposable.dispose(),this.twoWaysDisposable=null),this.watcher.dispose()},t}();e.PropertyBinding=s},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(1)),r(n(2)),r(n(0)),r(n(8)),r(n(20)),r(n(3)),r(n(19)),r(n(7)),r(n(18))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=function(){function t(){}return t.paramList={},t}();e.InjectedTypes=o,e.Inject=function(t,e,n){var i=r.TypeKey.get(t),s=Reflect.getMetadata("design:paramtypes",t,e);(o.paramList[i]||(o.paramList[i]=[]))[n]=s[n]}},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),u=n(25),c=n(23),f=function(){return function(t){this.message=t,this.list=new Array}}(),l=function(){return function(t,e){this.message=t,this.action=e}}();e.AtomMessageAction=l;var p=function(t){function e(){var e=t.call(this,null)||this;return e.onError=function(t){console.log(t)},e.bag={},setTimeout(function(){e.onReady(function(){return e.main()})},5),e.put(n,e),e}return o(e,t),n=e,e.prototype.runAsync=function(t){var e=this,n=t();n.catch(function(t){e.onError(t)}),n.then(function(){})},e.prototype.broadcast=function(t,e){var n=this.bag[t];if(n)for(var r=0,o=n.list;r<o.length;r++){o[r].call(this,t,e)}},e.prototype.subscribe=function(t,e){var n=this,r=this.bag[t];return r||(r=new f(t),this.bag[t]=r),r.list.push(e),new a.AtomDisposable(function(){r.list=r.list.filter(function(t){return t!==e}),r.list.length||(n.bag[t]=null)})},e.prototype.main=function(){},e.prototype.onReady=function(t){"complete"!==document.readyState?document.addEventListener("readystatechange",function(e){t()}):t()},e=n=i([u.RegisterSingleton,s("design:paramtypes",[])],e);var n}(c.ServiceProvider);e.App=p},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=function(){function t(){}return t.from=function(e){var n=Object.getPrototypeOf(e),o=r.TypeKey.get(n),i=t.map;return i[o]||(i[o]=t.createMap(n))},t.createMap=function(e){for(var n={},r=[];e;){for(var o=0,i=Object.getOwnPropertyNames(e);o<i.length;o++){var s=i[o];/hasOwnProperty|constructor|toString|isValid|errors/i.test(s)||(n[s]=!0,r.push(s))}e=Object.getPrototypeOf(e)}var a=new t;return a.map=n,a.names=r,a},t.map={},t}();e.PropertyMap=o},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(s,a)}u((r=r.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),s=function(){function t(){}return t.set=function(t,e,n){throw new Error("Method not implemented.")},t.get=function(t,e){for(var n=0,r=e.split(".");n<r.length;n++){var o=r[n];if(void 0===t||null===t)return t;t=t[o]}return t},t.delay=function(t,e){return new Promise(function(n,r){var o={};o.id=setTimeout(function(){e&&e.cancelled||n()},t),e&&e.registerForCancel(function(){clearTimeout(o.id)})})},t.encodeParameters=function(t){if(!t)return"";var e="";for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];e+="&"+n+"="+encodeURIComponent(r)}return e},t.url=function(t,e,n){if(!t)return t;var r=this.encodeParameters(e);return r&&(-1===t.indexOf("?")&&(t+="?"),t+=r),(r=this.encodeParameters(n))&&(-1===t.indexOf("#")&&(t+="#"),t+=r),t},t.postAsync=function(t){var e=this;return new Promise(function(n,s){i.AtomDispatcher.instance.callLater(function(){return r(e,void 0,void 0,function(){var e;return o(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t()];case 1:return r.sent(),n(),[3,3];case 2:return e=r.sent(),s(e),[3,3];case 3:return[2]}})})})})},t.designMode=!1,t}();e.Atom=s},function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(11),a=n(14),u=n(6),c=n(2),f=n(8),l=n(13),p=n(0),h=n(10),d=function(){function t(t,e){this.app=t,this.mInvalidated=0,this.mData=void 0,this.mViewModel=void 0,this.mLocalViewModel=void 0,this.eventHandlers=[],this.bindings=[],this.element=e;var n=this.beginEdit();this.preCreate(),this.create(),this.attachControl(),u.AtomDispatcher.instance.callLater(function(){return n.dispose()})}return Object.defineProperty(t.prototype,"data",{get:function(){if(void 0!==this.mData)return this.mData;var t=this.parent;return t?t.data:void 0},set:function(t){this.mData=t,this.refreshInherited("data",function(t){return void 0===t.mData})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewModel",{get:function(){if(void 0!==this.mViewModel)return this.mViewModel;var t=this.parent;return t?t.viewModel:void 0},set:function(t){var e=this.mViewModel;e&&e.dispose&&e.dispose(),this.mViewModel=t,this.refreshInherited("viewModel",function(t){return void 0===t.mViewModel})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"localViewModel",{get:function(){if(void 0!==this.mLocalViewModel)return this.mLocalViewModel;var t=this.parent;return t?t.localViewModel:void 0},set:function(t){var e=this.mLocalViewModel;e&&e.dispose&&e.dispose(),this.mLocalViewModel=t,this.refreshInherited("localViewModel",function(t){return void 0===t.mLocalViewModel})},enumerable:!0,configurable:!0}),t.prototype.bind=function(t,e,n,r,o){var i=this,s=this.bindings.find(function(n){return n.name===e&&(!t||n.element===t)});return s&&(s.dispose(),p.ArrayHelper.remove(this.bindings,function(t){return t===s})),s=new f.PropertyBinding(this,t,e,n,r,o),this.bindings.push(s),new p.AtomDisposable(function(){s.dispose(),p.ArrayHelper.remove(i.bindings,function(t){return t===s})})},t.prototype.unbind=function(t,e){for(var n=function(t){t.dispose(),p.ArrayHelper.remove(r.bindings,function(e){return e===t})},r=this,o=0,i=this.bindings.filter(function(n){return n.element===t&&(!e||n.name===e)});o<i.length;o++){n(i[o])}},t.prototype.bindEvent=function(t,e,n,r){var o=this;if(t&&n){var i={element:t,name:e,handler:n};return r&&(i.key=r),i.disposable=c.AtomBridge.instance.addEventHandler(t,e,n,!1),this.eventHandlers.push(i),new p.AtomDisposable(function(){i.disposable.dispose(),p.ArrayHelper.remove(o.eventHandlers,function(t){return t.disposable===i.disposable})})}},t.prototype.unbindEvent=function(t,e,n,r){for(var o=[],i=0,s=this.eventHandlers;i<s.length;i++){var a=s[i];if(t&&a.element!==t)return;if(r&&a.key!==r)return;if(e&&a.name!==e)return;if(n&&a.handler!==n)return;a.disposable.dispose(),a.handler=null,a.element=null,a.name=null,a.key=null,o.push(a)}this.eventHandlers=this.eventHandlers.filter(function(t){return-1!==o.findIndex(function(e){return e===t})})},t.prototype.hasProperty=function(t){return l.PropertyMap.from(this).map[t]},t.prototype.setLocalValue=function(t,e,n){t&&t!==this.element||!this.hasProperty(e)?c.AtomBridge.instance.setValue(t,e,n):this[e]=n},t.prototype.dispose=function(t){if(this.mInvalidated&&(clearTimeout(this.mInvalidated),this.mInvalidated=0),c.AtomBridge.instance.visitDescendents(t||this.element,function(t,e){return!e||(e.dispose(),!1)}),!t){this.unbindEvent(null,null,null);for(var e=0,n=this.bindings;e<n.length;e++){n[e].dispose()}this.bindings.length=0,this.bindings=null,c.AtomBridge.instance.dispose(this.element),this.element=null;var r=this.mLocalViewModel;r&&r.dispose&&(r.dispose(),this.mLocalViewModel=null);var o=this.mViewModel;o&&o.dispose&&(o.dispose(),this.mViewModel=null)}},t.prototype.onPropertyChanged=function(t){},t.prototype.beginEdit=function(){var t=this;this.pendingInits=[];var e=this.pendingInits;return new p.AtomDisposable(function(){if(t.pendingInits=null,e)for(var n=0,r=e;n<r.length;n++){(0,r[n])()}t.invalidate()})},t.prototype.invalidate=function(){var t=this;this.mInvalidated&&clearTimeout(this.mInvalidated),this.mInvalidated=setTimeout(function(){t.mInvalidated=0,u.AtomDispatcher.instance.callLater(function(){t.onUpdateUI()})},5)},t.prototype.onUpdateUI=function(){},t.prototype.runAfterInit=function(t){this.pendingInits?this.pendingInits.push(t):t()},t.prototype.create=function(){},t.prototype.preCreate=function(){},t.prototype.resolve=function(t){return this.app.resolve(t,!0)},t.prototype.getValue=function(t){return a.Atom.get(this,t)},t=r([i(0,h.Inject),o("design:paramtypes",[s.App,Object])],t)}();e.AtomComponent=d},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),s=n(2),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"parent",{get:function(){return s.AtomBridge.instance.atomParent(this.element,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"templateParent",{get:function(){return s.AtomBridge.instance.templateParent(this.element)},enumerable:!0,configurable:!0}),e.prototype.atomParent=function(t){return s.AtomBridge.instance.atomParent(t,!1)},e.prototype.attachControl=function(){s.AtomBridge.instance.attachControl(this.element,this)},e.prototype.append=function(t){return this},e.prototype.refreshInherited=function(t,e){i.AtomBinder.refreshValue(this,t),s.AtomBridge.instance.visitDescendents(this.element,function(n,r){return!r||(r.refreshInherited(t,e),!1)})},e}(n(15).AtomComponent);e.AtomXFControl=a},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(16),s=n(9),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.create=function(){this.element=s.AtomBridge.create("Xamarin.Forms.ContentPage")},e}(i.AtomXFControl);e.AtomPage=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.bindableProperty=function(t,e){var n=t[e],o="_"+e;t[o]=n,delete t[e]&&Object.defineProperty(t,e,{get:function(){return this[o]},set:function(t){var n=this[o];n!=t&&(this.onPropertyChanging&&this.onPropertyChanging(e,n,t),this[o]=t,r.AtomBinder.refreshValue(this,e))},enumerable:!0,configurable:!0})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),o=function(){return function(t){var e,n="",o="",i=t.split("?");e=i[0],2===i.length?(n=(i=(n=i[1]||"").split("#"))[0],o=i[1]||""):(e=(i=e.split("#"))[0],o=i[1]||"");var s=location.protocol,a=location.host,u=location.port,c=e.indexOf("//");-1!==c&&(s=e.substr(0,c),-1!==(c=(e=e.substr(c+2)).indexOf("/"))&&(a=e.substr(0,c),e=e.substr(c+1),(i=a.split(":")).length>1&&(a=i[0],u=i[1]))),this.host=a,this.protocol=s,this.port=u,this.path=e,this.query=r.AtomUI.parseUrl(n),this.hash=r.AtomUI.parseUrl(o)}}();e.AtomUri=o},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),s=n(0),a=function(t){function e(){var n=t.call(this)||this;return n.startValue=0,n.totalValue=0,n.sizeValue=10,n.__proto__=e.prototype,n.next=function(){n.start=n.start+n.size},n.prev=function(){n.start>=n.size&&(n.start=n.start-n.size)},n}return o(e,t),Object.defineProperty(e.prototype,"start",{get:function(){return this.startValue},set:function(t){t!==this.startValue&&(this.startValue=t,i.AtomBinder.refreshValue(this,"start"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"total",{get:function(){return this.totalValue},set:function(t){t!==this.totalValue&&(this.totalValue=t,i.AtomBinder.refreshValue(this,"total"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.sizeValue},set:function(t){t!==this.sizeValue&&(this.sizeValue=t,i.AtomBinder.refreshValue(this,"size"))},enumerable:!0,configurable:!0}),e.prototype.add=function(t){var e=this.length,n=this.push(t);return i.AtomBinder.invokeItemsEvent(this,"add",e,t),i.AtomBinder.refreshValue(this,"length"),n},e.prototype.addAll=function(t){for(var e=0,n=t;e<n.length;e++){var r=n[e],o=this.length;this.push(r),i.AtomBinder.invokeItemsEvent(this,"add",o,r),i.AtomBinder.refreshValue(this,"length")}var s=t.total;s&&(this.total=s)},e.prototype.replace=function(t,e,n){this.length=t.length;for(var r=0;r<t.length;r++)this[r]=t[r];this.refresh();var o=t.total;o&&(this.total=o),void 0!==e&&(this.start=e),void 0!==n&&(this.size=n)},e.prototype.insert=function(t,e){this.splice(t,0,e);i.AtomBinder.invokeItemsEvent(this,"add",t,e),i.AtomBinder.refreshValue(this,"length")},e.prototype.removeAt=function(t){var e=this[t];this.splice(t,1),i.AtomBinder.invokeItemsEvent(this,"remove",t,e),i.AtomBinder.refreshValue(this,"length")},e.prototype.remove=function(t){if(t instanceof Function){for(var e=0,n=!1,r=0;r<this.length;r++){t(this[r])&&(this.removeAt(e),n=!0),e++}return n}var o=this.indexOf(t);return-1!==o&&(this.removeAt(o),!0)},e.prototype.clear=function(){this.length=0,this.refresh()},e.prototype.refresh=function(){i.AtomBinder.invokeItemsEvent(this,"refresh",-1,null),i.AtomBinder.refreshValue(this,"length")},e.prototype.watch=function(t){var e=this;return i.AtomBinder.add_CollectionChanged(this,t),new s.AtomDisposable(function(){i.AtomBinder.remove_CollectionChanged(e,t)})},e}(Array);e.AtomList=a,Array.prototype.add=a.prototype.add,Array.prototype.addAll=a.prototype.addAll,Array.prototype.clear=a.prototype.clear,Array.prototype.refresh=a.prototype.refresh,Array.prototype.remove=a.prototype.remove,Array.prototype.removeAt=a.prototype.removeAt,Array.prototype.watch=a.prototype.watch},,function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(9),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.message="Hello World",e}return o(e,t),e.prototype.create=function(){t.prototype.create.call(this);var e=a.AtomBridge.instance;e.loadContent(this.element,'<ContentPage\n            xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"\n            xmlns="http://xamarin.com/schemas/2014/forms">\n        <Grid>\n            <Grid.RowDefinitions>\n                <RowDefinition/>\n                <RowDefinition/>\n                <RowDefinition/>\n            </Grid.RowDefinitions>\n\n            <Grid.ColumnDefinitions>\n                <ColumnDefinition/>\n                <ColumnDefinition/>\n                <ColumnDefinition/>\n            </Grid.ColumnDefinitions>\n            <Label\n                Text="Sample"\n                />\n            <Label\n                x:Name="label1"\n                Grid.Row="1"\n                Grid.Column="1"\n            />\n        </Grid>\n    </ContentPage>');var n=e.findChild(this.element,"label1");this.bind(n,"Text",[["message"]])},i([a.bindableProperty,s("design:type",String)],e.prototype,"message",void 0),e}(n(17).AtomPage);e.HomeView=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(10),o=n(5),i=n(4),s=function(){function t(e){this.parent=e,this.instances={},null===e&&o.ServiceCollection.instance.registerScoped(t);var n=o.ServiceCollection.instance.get(t);this.instances[n.id]=this}return Object.defineProperty(t.prototype,"global",{get:function(){return null===this.parent?this:this.parent.global},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return this.resolve(t,!0)},t.prototype.put=function(t,e){var n=o.ServiceCollection.instance.get(t);n||(n=o.ServiceCollection.instance.register(t,function(){return e},o.Scope.Global)),this.instances[n.id]=e},t.prototype.resolve=function(e,n){void 0===n&&(n=!1);var r=o.ServiceCollection.instance.get(e);if(!r){if(!n)throw new Error("No service registered for type "+e);return this.create(e)}if(r.type===t)return this;if(r.scope===o.Scope.Global)return this.global.getValue(r);if(r.scope===o.Scope.Scoped&&null===this.parent)throw new Error("Scoped dependency cannot be created on global");return this.getValue(r)},t.prototype.getValue=function(t){if(t.scope===o.Scope.Transient)return t.factory(this);var e=this.instances[t.id];return e||(this.instances[t.id]=e=t.factory(this)),e},t.prototype.newScope=function(){return new t(this)},t.prototype.dispose=function(){for(var t in this.instances)if(this.instances.hasOwnProperty(t)){var e=this.instances[t];if(e===this)continue;var n=e;n.dispose&&n.dispose()}},t.prototype.create=function(t){for(var e=this,n=r.InjectedTypes.paramList[i.TypeKey.get(t)],o=t;void 0===n&&(o=Object.getPrototypeOf(o));){var s=i.TypeKey.get(o);(n=r.InjectedTypes.paramList[s])||(r.InjectedTypes.paramList[s]=n)}if(n){var a=n.map(function(t){return t?e.resolve(t):void 0});return a.unshift(null),new(t.bind.apply(t,a))}return new t},t}();e.ServiceProvider=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5);e.Register=function(t,e){return function(n){if("object"==typeof t)return e&&(t.scope=e),void r.ServiceCollection.instance.register(t.for||n,t.for?function(t){return t.create(n)}:null,t.scope||r.Scope.Transient,t.id);r.ServiceCollection.instance.register(n,null,e,t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(24),o=n(5);e.RegisterSingleton=function(t){r.Register({scope:o.Scope.Global})(t)}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,c=[],f=!1,l=-1;function p(){f&&u&&(f=!1,u.length?c=u.concat(c):l=-1,c.length&&h())}function h(){if(!f){var t=a(p);f=!0;for(var e=c.length;e;){for(u=c,c=[];++l<e;)u&&u[l].run();l=-1,e=c.length}u=null,f=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||f||a(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){(function(t,e){
  /*! *****************************************************************************
  Copyright (C) Microsoft. All rights reserved.
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  this file except in compliance with the License. You may obtain a copy of the
  License at http://www.apache.org/licenses/LICENSE-2.0
  
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  MERCHANTABLITY OR NON-INFRINGEMENT.
  
  See the Apache Version 2.0 License for specific language governing permissions
  and limitations under the License.
  ***************************************************************************** */
  var n;!function(n){!function(r){var o="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=s(n);function s(t,e){return function(n,r){"function"!=typeof t[n]&&Object.defineProperty(t,n,{configurable:!0,writable:!0,value:r}),e&&e(n,r)}}void 0===o.Reflect?o.Reflect=n:i=s(o.Reflect,i),function(e){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,o=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,a={__proto__:[]}instanceof Array,u=!s&&!a,c={create:s?function(){return I(Object.create(null))}:a?function(){return I({__proto__:null})}:function(){return I({})},has:u?function(t,e){return n.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return n.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),l="object"==typeof t&&t.env&&"true"===t.env.REFLECT_METADATA_USE_MAP_POLYFILL,p=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var t={},e=[],n=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var n=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var r=this._keys.length,o=n+1;o<r;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new n(this._keys,this._values,r)},e.prototype.values=function(){return new n(this._keys,this._values,o)},e.prototype.entries=function(){return new n(this._keys,this._values,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function r(t,e){return t}function o(t,e){return e}function s(t,e){return[t,e]}}():Map,h=l||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function t(){this._map=new p}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}():Set,d=new(l||"function"!=typeof WeakMap?function(){var t=16,e=c.create(),r=o();return function(){function t(){this._key=o()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){var n=i(t,!0);return n[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=o()},t}();function o(){var t;do{t="@@WeakMap@@"+a()}while(c.has(e,t));return e[t]=!0,t}function i(t,e){if(!n.call(t,r)){if(!e)return;Object.defineProperty(t,r,{value:c.create()})}return t[r]}function s(t,e){for(var n=0;n<e;++n)t[n]=255*Math.random()|0;return t}function a(){var e=function(t){if("function"==typeof Uint8Array)return"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):s(new Uint8Array(t),t);return s(new Array(t),t)}(t);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var n="",r=0;r<t;++r){var o=e[r];4!==r&&6!==r&&8!==r||(n+="-"),o<16&&(n+="0"),n+=o.toString(16).toLowerCase()}return n}}():WeakMap);function y(t,e,n){var r=d.get(t);if(w(r)){if(!n)return;r=new p,d.set(t,r)}var o=r.get(e);if(w(o)){if(!n)return;o=new p,r.set(e,o)}return o}function v(t,e,n){var r=y(e,n,!1);return!w(r)&&!!r.has(t)}function m(t,e,n){var r=y(e,n,!1);if(!w(r))return r.get(t)}function g(t,e,n,r){var o=y(n,r,!0);o.set(t,e)}function _(t,e){var n=[],r=y(t,e,!1);if(w(r))return n;for(var o=r.keys(),s=function(t){var e=x(t,i);if(!M(e))throw new TypeError;var n=e.call(t);if(!O(n))throw new TypeError;return n}(o),a=0;;){var u=C(s);if(!u)return n.length=a,n;var c=u.value;try{n[a]=c}catch(t){try{V(s)}finally{throw t}}a++}}function b(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function w(t){return void 0===t}function P(t){return null===t}function O(t){return"object"==typeof t?null!==t:"function"==typeof t}function A(t,e){switch(b(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var n=3===e?"string":5===e?"number":"default",r=x(t,o);if(void 0!==r){var i=r.call(t,n);if(O(i))throw new TypeError;return i}return function(t,e){if("string"===e){var n=t.toString;if(M(n)){var r=n.call(t);if(!O(r))return r}var o=t.valueOf;if(M(o)){var r=o.call(t);if(!O(r))return r}}else{var o=t.valueOf;if(M(o)){var r=o.call(t);if(!O(r))return r}var i=t.toString;if(M(i)){var r=i.call(t);if(!O(r))return r}}throw new TypeError}(t,"default"===n?"number":n)}function j(t){var e=A(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function E(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function M(t){return"function"==typeof t}function T(t){return"function"==typeof t}function x(t,e){var n=t[e];if(void 0!==n&&null!==n){if(!M(n))throw new TypeError;return n}}function C(t){var e=t.next();return!e.done&&e}function V(t){var e=t.return;e&&e.call(t)}function S(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var n=t.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return e;var o=r.constructor;return"function"!=typeof o?e:o===t?e:o}function I(t){return t.__=void 0,delete t.__,t}e("decorate",function(t,e,n,r){if(w(n)){if(!E(t))throw new TypeError;if(!T(e))throw new TypeError;return function(t,e){for(var n=t.length-1;n>=0;--n){var r=t[n],o=r(e);if(!w(o)&&!P(o)){if(!T(o))throw new TypeError;e=o}}return e}(t,e)}if(!E(t))throw new TypeError;if(!O(e))throw new TypeError;if(!O(r)&&!w(r)&&!P(r))throw new TypeError;return P(r)&&(r=void 0),n=j(n),function(t,e,n,r){for(var o=t.length-1;o>=0;--o){var i=t[o],s=i(e,n,r);if(!w(s)&&!P(s)){if(!O(s))throw new TypeError;r=s}}return r}(t,e,n,r)}),e("metadata",function(t,e){return function(n,r){if(!O(n))throw new TypeError;if(!w(r)&&!function(t){switch(b(t)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(t,e,n,r)}}),e("defineMetadata",function(t,e,n,r){if(!O(n))throw new TypeError;w(r)||(r=j(r));return g(t,e,n,r)}),e("hasMetadata",function(t,e,n){if(!O(e))throw new TypeError;w(n)||(n=j(n));return function t(e,n,r){var o=v(e,n,r);if(o)return!0;var i=S(n);if(!P(i))return t(e,i,r);return!1}(t,e,n)}),e("hasOwnMetadata",function(t,e,n){if(!O(e))throw new TypeError;w(n)||(n=j(n));return v(t,e,n)}),e("getMetadata",function(t,e,n){if(!O(e))throw new TypeError;w(n)||(n=j(n));return function t(e,n,r){var o=v(e,n,r);if(o)return m(e,n,r);var i=S(n);if(!P(i))return t(e,i,r);return}(t,e,n)}),e("getOwnMetadata",function(t,e,n){if(!O(e))throw new TypeError;w(n)||(n=j(n));return m(t,e,n)}),e("getMetadataKeys",function(t,e){if(!O(t))throw new TypeError;w(e)||(e=j(e));return function t(e,n){var r=_(e,n);var o=S(e);if(null===o)return r;var i=t(o,n);if(i.length<=0)return r;if(r.length<=0)return i;var s=new h;var a=[];for(var u=0,c=r;u<c.length;u++){var f=c[u],l=s.has(f);l||(s.add(f),a.push(f))}for(var p=0,d=i;p<d.length;p++){var f=d[p],l=s.has(f);l||(s.add(f),a.push(f))}return a}(t,e)}),e("getOwnMetadataKeys",function(t,e){if(!O(t))throw new TypeError;w(e)||(e=j(e));return _(t,e)}),e("deleteMetadata",function(t,e,n){if(!O(e))throw new TypeError;w(n)||(n=j(n));var r=y(e,n,!1);if(w(r))return!1;if(!r.delete(t))return!1;if(r.size>0)return!0;var o=d.get(e);return o.delete(n),o.size>0||(d.delete(e),!0)})}(i)}()}(n||(n={}))}).call(this,n(27),n(26))},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"page",{get:function(){return this.mPage},set:function(t){this.mPage=t,App.CurrentPage=t.element},enumerable:!0,configurable:!0}),e}(n(11).App);e.AtomApp=i},,function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(29),s=n(22),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.main=function(){var t=new s.HomeView(this);this.page=t;var e=1;setInterval(function(){t.message="Hello world "+e++},1e3)},e}(i.AtomApp);e.App=a}]);