UNPKG

d2-ui

Version:
1 lines 528 kB
var Dhis2HeaderBar=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=280)}([function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(24),i=n(351),o=n(73),a=n(104),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=Object(i.a)(t,e,n);if(r?r.call(o,this.source):o.add(this.source?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.a.Rx&&r.a.Rx.config&&r.a.Rx.config.Promise?e=r.a.Rx.config.Promise:r.a.Promise&&(e=r.a.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i;i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 0===t.length?this:Object(a.b)(t)(this)},t.prototype.toPromise=function(t){var e=this;if(t||(r.a.Rx&&r.a.Rx.config&&r.a.Rx.config.Promise?t=r.a.Rx.config.Promise:r.a.Promise&&(t=r.a.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}()},function(t,e){t.exports=React},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(71),i=n(16),o=n(155),a=n(72),s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=o.a;break;case 1:if(!n){this.destination=o.a;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,i)}}return s(e,t),e.prototype[a.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(i.a),c=function(t){function e(e,n,i,a){t.call(this),this._parentSubscriber=e;var s,u=this;Object(r.a)(n)?s=n:n&&(s=n.next,i=n.error,a=n.complete,n!==o.a&&(u=Object.create(n),Object(r.a)(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=s,this._error=i,this._complete=a}return s(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(698),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(695),o=r(i),a=n(69),s=r(a),u=n(271),c=(r(u),n(272)),l=(r(c),function(t){var e=(0,o.default)(function(t,e){return!(0,s.default)(t,e)});return e(t)});e.default=l},function(t,e,n){t.exports=n(282)()},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(2),i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){t.apply(this,arguments)}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(r.a)},function(t,e,n){"use strict";function r(t,e,n,r){var p=new l.a(t,n,r);if(p.closed)return null;if(e instanceof u.a)return e._isScalar?(p.next(e.value),p.complete(),null):(p.syncErrorThrowable=!0,e.subscribe(p));if(Object(o.a)(e)){for(var h=0,d=e.length;h<d&&!p.closed;h++)p.next(e[h]);p.closed||p.complete()}else{if(Object(a.a)(e))return e.then(function(t){p.closed||(p.next(t),p.complete())},function(t){return p.error(t)}).then(null,function(t){i.a.setTimeout(function(){throw t})}),p;if(e&&"function"==typeof e[c.a])for(var y=e[c.a]();;){var v=y.next();if(v.done){p.complete();break}if(p.next(v.value),p.closed)break}else if(e&&"function"==typeof e[f.a]){var b=e[f.a]();if("function"==typeof b.subscribe)return b.subscribe(new l.a(t,n,r));p.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var m=Object(s.a)(e)?"an invalid object":"'"+e+"'",g="You provided "+m+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";p.error(new TypeError(g))}}return null}e.a=r;var i=n(24),o=n(157),a=n(158),s=n(153),u=n(0),c=n(58),l=n(360),f=n(73)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(62),i=n(63),o=new i.a(r.a)},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){t.exports=function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){t.exports={default:n(294),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(140),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";e.__esModule=!0;var r=n(96),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,i.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(318),o=r(i),a=n(322),s=r(a),u=n(96),c=r(u);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,c.default)(e)));t.prototype=(0,s.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";function r(t,e){if(void 0!==t)return!0;throw new Error([e||"Value","should be provided"].join(" "))}function i(t,e,n){if(r(t,n),r(e,"Type"),"function"==typeof e&&t instanceof e||"string"==typeof e&&(void 0===t?"undefined":y(t))===e)return!0;throw new Error(["Expected",n||t,"to have type",e].join(" "))}function o(t,e){try{return i(t,e),!0}catch(t){}return!1}function a(t){return o(t,"string")}function s(t){return Array.isArray(t)}function u(t){return o(t,Object)}function c(t){return null!=t}function l(t){return"number"==typeof t&&isFinite(t)&&t>-9007199254740992&&t<9007199254740992&&Math.floor(t)===t}function f(t){return"number"==typeof t&&isFinite(t)&&t-parseFloat(t)+1>=0}function p(t,e){return(s(e)&&e||[]).indexOf(t)>=0}function h(t){return t&&11===t.length}function d(t,e){return c(t)&&c(e)&&e===t}Object.defineProperty(e,"__esModule",{value:!0});var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.checkDefined=r,e.checkType=i,e.isType=o,e.isString=a,e.isArray=s,e.isObject=u,e.isDefined=c,e.isInteger=l,e.isNumeric=f,e.contains=p,e.isValidUid=h,e.areDefinedAndEqual=d,Number.isInteger||(Number.isInteger=l);var v=(e.isEmpty=function(t){return t.length>=0},e.hasKeys=function(t){return t&&Object.keys(t).length>0},e.toBe=function(t,e){return t===e}),b=e.toBeAny=function(t){return function(e){return t.some(function(t){return v(e,t)})}};e.isNullUndefinedOrEmptyString=b([void 0,null,""]),e.isFunction=function(t){return"function"==typeof t},e.hasOwnProperty=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.a?e.errors:e)},[])}n.d(e,"a",function(){return l});var i=n(31),o=n(153),a=n(71),s=n(22),u=n(19),c=n(154),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,l=n._parent,f=n._parents,p=n._unsubscribe,h=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,y=f?f.length:0;l;)l.remove(this),l=++d<y&&f[d]||null;if(Object(a.a)(p)){var v=Object(s.a)(p).call(this);v===u.a&&(e=!0,t=t||(u.a.e instanceof c.a?r(u.a.e.errors):[u.a.e]))}if(Object(i.a)(h))for(d=-1,y=h.length;++d<y;){var b=h[d];if(Object(o.a)(b)){var v=Object(s.a)(b.unsubscribe).call(b);if(v===u.a){e=!0,t=t||[];var m=u.a.e;m instanceof c.a?t=t.concat(r(m.errors)):t.push(m)}}}if(e)throw new c.a(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}()},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},function(t,e,n){"use strict";n.d(e,"c",function(){return l}),n.d(e,"b",function(){return f}),n.d(e,"a",function(){return p});var r=n(0),i=n(2),o=n(16),a=n(74),s=n(156),u=n(72),c=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=function(t){function e(e){t.call(this,e),this.destination=e}return c(e,t),e}(i.a),f=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return c(e,t),e.prototype[u.a]=function(){return new l(this)},e.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.a;return this.hasError?(t.error(this.thrownError),o.a.EMPTY):this.isStopped?(t.complete(),o.a.EMPTY):(this.observers.push(t),new s.a(this,t))},e.prototype.asObservable=function(){var t=new r.a;return t.source=this,t},e.create=function(t,e){return new p(t,e)},e}(r.a),p=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return c(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):o.a.EMPTY},e}(f)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={e:{}}},function(t,e){t.exports=fp},function(t,e,n){"use strict";e.__esModule=!0;var r=n(132),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){"use strict";function r(){try{return o.apply(this,arguments)}catch(t){return a.a.e=t,a.a}}function i(t){return o=t,r}e.a=i;var o,a=n(19)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={easeOutFunction:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutFunction:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeOut:function(t,e,n,r){if(r=r||this.easeOutFunction,e&&"[object Array]"===Object.prototype.toString.call(e)){for(var i="",o=0;o<e.length;o++)i&&(i+=","),i+=this.create(t,e[o],n,r);return i}return this.create(t,e,n,r)},create:function(t,e,n,r){return t=t||"450ms",e=e||"all",n=n||"0ms",r=r||"linear",e+" "+t+" "+r+" "+n}}},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return a});var r="undefined"!=typeof window&&window,i="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o=void 0!==t&&t,a=r||o||i}).call(e,n(50))},function(t,e,n){"use strict";(function(t){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"REPLACE",e=f.default.getSystem();return e.version&&Number(e.version.minor)<=22?"mergeStrategy="+t:"mergeMode="+t}function o(t,e){if(new RegExp("^(:?https?:)?//").test(e))return e;var n=[];return t&&n.push(t),n.push(e),n.join("/").replace(new RegExp("(.(?:[^:]))//+","g"),"$1/").replace(new RegExp("/$"),"")}function a(){return a.api?a.api:a.api=new p}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(258);var u=n(15),c=n(32),l=n(261),f=function(t){return t&&t.__esModule?t:{default:t}}(l),p=function(){function e(n){if(r(this,e),"function"==typeof n)this.fetch=n.bind("undefined"!=typeof window?window:t);else{if("undefined"==typeof fetch)throw new Error("Failed to initialise D2 Api: No fetch implementation is available");this.fetch=fetch.bind("undefined"!=typeof window?window:t)}this.baseUrl="/api",this.defaultFetchOptions={mode:"cors",credentials:"include",cache:"default"},this.defaultHeaders={}}return s(e,[{key:"setDefaultHeaders",value:function(t){this.defaultHeaders=t}},{key:"get",value:function(t,e,n){return this.request("GET",o(this.baseUrl,t),e,n)}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o(this.baseUrl,t),i=e;return n.headers=new Headers(n.headers||{}),void 0!==e&&("FormData"===e.constructor.name?(n.headers.delete("Content-Type"),i=e):n.headers.has("Content-Type")&&n.headers.get("Content-Type").toLocaleLowerCase().startsWith("text/")?i=String(e):(n.headers.set("Content-Type","application/json"),i=JSON.stringify(e))),this.request("POST",r,i,n)}},{key:"delete",value:function(t,e){return this.request("DELETE",o(this.baseUrl,t),void 0,e)}},{key:"update",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!0===n?t+"?"+i():t;return this.request("PUT",o(this.baseUrl,r),JSON.stringify(e))}},{key:"request",value:function(t,e,n){function r(t){try{return JSON.parse(t)}catch(e){return t}}var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,u.checkType)(t,"string","Request type"),(0,u.checkType)(e,"string","Url");var a=this,s=e,l="";if(-1!==s.indexOf("?")&&(l=s.substr(s.indexOf("?")+1),s=s.substr(0,s.indexOf("?"))),n&&Array.isArray(n.filter)){var f=n.filter.map(function(t){return t.split(":").map(encodeURIComponent).join(":")});l=(0,c.customEncodeURIComponent)(l)+(l.length?"&":"")+"filter="+f.join("&filter="),delete n.filter}n&&"GET"===t&&Object.keys(n).forEach(function(t){l=l+(l.length>0?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n[t])}),l.length&&(s=s+"?"+l);var p=function(e,r,i){var o=Object.assign({},a.defaultFetchOptions,r),s=new Headers(r.headers||{});return Object.keys(e).filter(function(t){return!s.get(t)}).forEach(function(t){return s.set(t,e[t])}),o.method=t,"GET"===o.method||!i&&0!==i&&!1!==i?s.delete("Content-Type"):i&&("FormData"===n.constructor.name?s.delete("Content-Type"):s.get("Content-Type")||s.set("Content-Type","application/json"),o.body=i),o.headers=s,o}(this.defaultHeaders,o,n);return new Promise(function(t,e){i.fetch(s,p).then(function(n){n.ok?n.text().then(function(e){return t(r(e))}):n.text().then(function(t){Object({NODE_ENV:"production"})&&"test"===Object({NODE_ENV:"production"}).npm_lifecycle_event||console.warn("API request failed with status "+n.status+" "+n.statusText+"\n","Request: "+p.method+" "+s),e(r(t))})}).catch(function(t){Object({NODE_ENV:"production"})&&"test"===Object({NODE_ENV:"production"}).npm_lifecycle_event||console.error("Server connection error:",t),e("Server connection failed for API request: "+p.method+" "+s)})})}},{key:"setBaseUrl",value:function(t){return(0,u.checkType)(t,"string","Base url"),this.baseUrl=t,this}}]),e}();p.getApi=a,e.default=p}).call(e,n(50))},function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";(function(t){function r(t,e){switch(t.userSettings.keyStyle){case"vietnam/vietnam.css":return Object.assign({},e,{background:"#B40303"});case"india/india.css":return Object.assign({},e,{background:"#EA5911"});case"green/green.css":return Object.assign({},e,{background:"#467E4A"})}return e}function i(){return t.document?Math.max(window.document.documentElement.clientWidth,window.innerWidth||0):0}function o(){if(!t.document)return 465;var e=.8*Math.max(t.document.documentElement.clientHeight,window.innerHeight||0);return e<465?e:465}n.d(e,"a",function(){return f}),e.b=r,n.d(e,"e",function(){return d}),e.d=o;var a=n(51),s=(n.n(a),n(28)),u=n(43),c=n.n(u),l=n(20),f=(n.n(l),125),p={},h=Object(l.curry)(function(t,e,n){return t()?e:n}),d=h(function(){return i()>1150});t.document&&s.a.fromEvent(t,"resize").debounceTime(300).subscribe(function(){return Object.assign(p.searchResults,{maxHeight:o()})},c.a.error),p={avatar:{fontSize:"0.8rem",fontWeight:"700",lineHeight:"32px",marginLeft:"-2px",backgroundColor:"#6a94c2"},avatarBig:{fontSize:"1.5rem",fontWeight:"500",lineHeight:"60px",backgroundColor:"#6a94c2"},headerBar:{boxSizing:"border-box",background:"#276696",display:"flex",position:"fixed",top:0,left:0,width:"100%",minHeight:48,justifyContent:"center",alignItems:"center",zIndex:1400},headerTitle:{flex:1,color:"#FFF"},headerMenu:{flex:"0 0 auto",padding:"0 1rem",height:48,justifyContent:"center",alignItems:"center",display:"flex"},menusWrap:{display:"flex",flexDirection:"row",justifyContent:"flex-end",paddingRight:"2rem"},dropDownWrap:{position:"absolute",display:"none",padding:"1rem",right:40,overflow:"hidden",width:400,flexDirection:"column",top:48},headerActions:{flex:1,display:"flex",flexDirection:"row",position:"relative",minWidth:420,maxWidth:550},notificationBadge:{padding:0},notificationBadgeIcon:{zIndex:10,width:20,height:20,top:3,backgroundColor:"#4ca899",fontSize:"9px"},notificationIcon:{fill:"white"},notificationButton:{width:44},searchField:{flex:1,display:"flex",flexDirection:"row"},searchFieldInnerWrap:{flex:1,transition:"width .5s cubic-bezier(0.39, -0.04, 0.2, 1)",position:"relative"},searchIcon:{fill:"white",padding:"0px"},searchIconContainer:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0px 8px 0px 24px"},searchResultList:{display:"flex",flexWrap:"wrap"},searchResults:{position:"absolute",top:48,left:0,right:0,maxWidth:673,maxHeight:o(),overflow:"auto",transition:"padding-top .3s cubic-bezier(0.39, -0.04, 0.2, 1), padding-bottom .3s cubic-bezier(0.39, -0.04, 0.2, 1), height .3s cubic-bezier(0.39, -0.04, 0.2, 1)",boxSizing:"border-box"},searchFieldInput:{color:a.white},searchFieldHintText:{color:"rgba(255, 255, 255, 0.5)"},menuItemLink:{padding:"1rem",display:"flex",width:f,height:f,boxSizing:"border-box",flexDirection:"column",alignItems:"center",justifyContent:"center",textDecoration:"none",color:a.black,fontSize:"1rem"},menuItemIcon:{height:48,width:48},menuItemLabel:{flex:"1 1 auto",maxWidth:"100%",textAlign:"center"},moreAppsButton:{marginTop:"1rem",width:"100%",display:"block",textAlign:"center"},moreAppsButtonWrap:{width:"100%",padding:"1rem",boxSizing:"border-box"},clearIcon:{fill:"white",position:"absolute",top:"10px",right:"5px"},notifications:{display:"flex",flexDirection:"row"},profileRightSide:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",padding:"1rem",justifyContent:"space-between",borderLeft:"1px solid #CCC",backgroundColor:"#F5F5F5"},profileFlexWrap:{display:"flex",alignItems:"center",flexDirection:"column"},profileName:{width:"100%",marginTop:"1rem",lineHeight:"1.5rem",fontWeight:"bold",textAlign:"center",wordBreak:"break-word"},profileMail:{width:"100%",lineHeight:"1.5rem",textAlign:"center",wordBreak:"break-all"},logoutButton:{width:"100%",textAlign:"center"},profileMenu:{flexDirection:"row",width:600,padding:"0"}},e.c=p}).call(e,n(50))},function(t,e,n){"use strict";var r=n(18);n.d(e,"c",function(){return r.b});var i=n(0);n.d(e,"a",function(){return i.a});var o=(n(352),n(355),n(358),n(361),n(364),n(367),n(369),n(372),n(373),n(376),n(379),n(381),n(384),n(387),n(392),n(394),n(395),n(398),n(399),n(401),n(404),n(407),n(410),n(413),n(415),n(417),n(426),n(430),n(432),n(434),n(436),n(438),n(440),n(442),n(444),n(446),n(448),n(450),n(452),n(454),n(456),n(458),n(460),n(462),n(464),n(466),n(468),n(470),n(472),n(474),n(476),n(478),n(480),n(482),n(484),n(486),n(488),n(490),n(492),n(494),n(496),n(498),n(500),n(502),n(504),n(506),n(508),n(510),n(512),n(514),n(516),n(518),n(519),n(521),n(523),n(525),n(527),n(529),n(531),n(533),n(535),n(537),n(539),n(541),n(543),n(545),n(547),n(549),n(551),n(553),n(555),n(557),n(559),n(561),n(563),n(565),n(567),n(569),n(571),n(573),n(575),n(577),n(579),n(581),n(583),n(585),n(594),n(596),n(598),n(600),n(602),n(604),n(606),n(608),n(610),n(612),n(613),n(615),n(617),n(619),n(621)),a=(n.n(o),n(622),n(624),n(626),n(628),n(630),n(632),n(634),n(636),n(16),n(2),n(75),n(83));n.d(e,"b",function(){return a.a});var s=(n(210),n(204),n(59),n(81),n(64),n(74),n(239),n(154),n(251),n(122),n(638),n(255),n(166),n(104),n(249)),u=n(8),c=n(213),l=n(641),f=n(72),p=n(58),h=n(73);n(167),s.a,c.a,l.a,u.a,f.a,h.a,p.a},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}e.a=r},function(t,e,n){var r=n(93)("wks"),i=n(67),o=n(35).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){throw new Error(t)}function o(t,e){return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.apply(this,[e].concat(r))}}function a(t,e,n){var r={enumerable:!0,configurable:!1,writable:!1,value:n};Object.defineProperty(t,e,r)}function s(t,e){return Object.keys(e).filter(function(t){return e.hasOwnProperty(t)}).forEach(function(n){t[n]=e[n]}),t}function u(t){var e=t.split(".");return function(t){return e.reduce(function(t,e){if(t)return t[e]},t)}}function c(t,e){if(!e||!t)return t;var n=/api\/([1-9][0-9])/,r=e.match(n),i=r&&r[1],o=t&&!n.test(t);if(i&&o){var a=r[1];return t.replace(/api/,"api/"+a)}return t}function l(t){return encodeURIComponent(t).replace(y,decodeURIComponent)}function f(t){return t}Object.defineProperty(e,"__esModule",{value:!0});var p=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.throwError=i,e.curry=o,e.addLockedProperty=a,e.copyOwnProperties=s,e.pick=u,e.updateAPIUrlWithBaseUrlVersionNumber=c,e.customEncodeURIComponent=l,e.identity=f;var h=(e.pickOr=function(t,e){return function(n){var r=u(t)(n);return void 0!==r?r:e}},e.Deferred=function(){function t(){var e=this;r(this,t),this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return p(t,null,[{key:"create",value:function(){return new t}}]),t}(),",&$=/;:"),d=h.split("").map(function(t){return encodeURIComponent(t)}),y=new RegExp("(?:"+d.join("|")+")","g")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default,n=e.getApi();n.setBaseUrl("");var r={getBaseUrl:function(){return this.activities.dhis.href}};return n.get(""+t).then(function(t){return Object.assign({},t,r)})}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default,e=t.getApi();return E.baseUrl&&T&&e.setBaseUrl(E.baseUrl),e.get("userSettings")}function s(t,e){var n=[],r=function(e){return t.get("schemas/"+e,{fields:k.fieldsForSchemas})};if(Array.isArray(e)){var i=e.map(r).concat([]),o=Promise.all(i).then(function(t){return{schemas:t}});n.push(o),e.length>0?n.push(t.get("attributes",{fields:":all,optionSet[:all,options[:all]]",paging:!1})):n.push({attributes:[]})}else n.push(t.get("schemas",{fields:k.fieldsForSchemas})),n.push(t.get("attributes",{fields:":all,optionSet[:all,options[:all]]",paging:!1}));return n}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.default.getLogger(),r=e.getApi(),o=x.default.create(E,t);o.headers&&r.setDefaultHeaders(o.headers);var u={models:void 0,model:d.default,Api:e,system:m.default.getSystem(),i18n:w.default.getI18n(),dataStore:C.default.getDataStore()};x.default.processConfigForD2(o,u),T?T=!1:P=l.Deferred.create();var c=s(r,o.schemas),f=[r.get("me",{fields:":all,organisationUnits[id],userGroups[id],userCredentials[:all,!user,userRoles[id]"}),r.get("me/authorization"),a(e)],h=[r.get("system/info"),r.get("apps")];return Promise.all([].concat(i(c),f,h,[u.i18n.load()])).then(function(t){var e={schemas:(0,l.pick)("schemas")(t[0]),attributes:(0,l.pick)("attributes")(t[1]),currentUser:t[2],authorities:t[3],userSettings:t[4],systemInfo:t[5],apps:t[6]};return e.schemas.filter(function(t){return t.metadata}).map(function(t){return t.apiEndpoint=(0,l.updateAPIUrlWithBaseUrlVersionNumber)(t.apiEndpoint,o.baseUrl),t}).forEach(function(t){var n=e.attributes.filter(function(e){return!0===e[[t.singular,"Attribute"].join("")]});Object.prototype.hasOwnProperty.call(u.models,t.singular)||u.models.add(d.default.ModelDefinition.createFromSchema(t,n))}),u.currentUser=S.default.create(e.currentUser,e.authorities,u.models,e.userSettings),u.system.setSystemInfo(e.systemInfo),u.system.setInstalledApps(e.apps),P.resolve(u),P.promise}).catch(function(t){return n.error("Unable to get schemas from the api",JSON.stringify(t),t),P.reject("Unable to get schemas from the DHIS2 API"),P.promise})}function c(){return P.promise}Object.defineProperty(e,"__esModule",{value:!0}),e.config=void 0,e.getManifest=o,e.getUserSettings=a,e.init=u,e.getInstance=c,n(258);var l=n(32),f=n(259),p=r(f),h=n(648),d=r(h),y=n(25),v=r(y),b=n(261),m=r(b),g=n(670),w=r(g),_=n(671),x=r(_),O=n(672),S=r(O),k=n(265),j=n(677),C=r(j),T=!0,P=l.Deferred.create(),E=x.default.create(),M=e.config=E;e.default={init:u,config:M,getInstance:c,getUserSettings:a,getManifest:o}},function(t,e,n){var r=n(35),i=n(26),o=n(87),a=n(45),s=function(t,e,n){var u,c,l,f=t&s.F,p=t&s.G,h=t&s.S,d=t&s.P,y=t&s.B,v=t&s.W,b=p?i:i[e]||(i[e]={}),m=b.prototype,g=p?r:h?r[e]:(r[e]||{}).prototype;p&&(n=e);for(u in n)(c=!f&&g&&void 0!==g[u])&&u in b||(l=c?g[u]:n[u],b[u]=p&&"function"!=typeof g[u]?n[u]:y&&c?o(l,r):v&&g[u]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):d&&"function"==typeof l?o(Function.call,l):l,d&&((b.virtual||(b.virtual={}))[u]=l,t&s.R&&m&&!m[u]&&a(m,u,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(46),i=n(133),o=n(88),a=Object.defineProperty;e.f=n(40)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),i=n(106),o=n(38),a=n(29),s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return s(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];Object(a.a)(r)?t.pop():r=null;var s=t.length;return s>1?new e(t,r):1===s?new i.a(t[0],r):new o.a(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;if(n>=r)return void i.complete();i.next(e[n]),i.closed||(t.index=n+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o<r&&!t.closed;o++)t.next(n[o]);t.complete()},e}(r.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(0),i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e){t.call(this),this.scheduler=e}return i(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(r.a)},function(t,e){t.exports=ReactDOM},function(t,e,n){t.exports=!n(47)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";function r(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new o(r,e));var a=Object.create(n,i.a);return a.source=n,a.subjectFactory=r,a}}e.a=r;var i=n(204),o=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}()},function(t,e,n){var r,i;!function(o,a){"use strict";r=a,void 0!==(i="function"==typeof r?r.call(e,n,e,t):r)&&(t.exports=i)}(0,function(){"use strict";function t(t,e){var n=t[e];if("function"==typeof n.bind)return n.bind(t);try{return Function.prototype.bind.call(n,t)}catch(e){return function(){return Function.prototype.apply.apply(n,[t,arguments])}}}function e(e){return"debug"===e&&(e="log"),typeof console!==s&&(void 0!==console[e]?t(console,e):void 0!==console.log?t(console,"log"):a)}function n(t,e){for(var n=0;n<u.length;n++){var r=u[n];this[r]=n<t?a:this.methodFactory(r,t,e)}this.log=this.debug}function r(t,e,r){return function(){typeof console!==s&&(n.call(this,e,r),this[t].apply(this,arguments))}}function i(t,n,i){return e(t)||r.apply(this,arguments)}function o(t,e,r){function o(t){var e=(u[t]||"silent").toUpperCase();if(typeof window!==s){try{return void(window.localStorage[f]=e)}catch(t){}try{window.document.cookie=encodeURIComponent(f)+"="+e+";"}catch(t){}}}function a(){var t;if(typeof window!==s){try{t=window.localStorage[f]}catch(t){}if(typeof t===s)try{var e=window.document.cookie,n=e.indexOf(encodeURIComponent(f)+"=");-1!==n&&(t=/^([^;]+)/.exec(e.slice(n))[1])}catch(t){}return void 0===l.levels[t]&&(t=void 0),t}}var c,l=this,f="loglevel";t&&(f+=":"+t),l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=r||i,l.getLevel=function(){return c},l.setLevel=function(e,r){if("string"==typeof e&&void 0!==l.levels[e.toUpperCase()]&&(e=l.levels[e.toUpperCase()]),!("number"==typeof e&&e>=0&&e<=l.levels.SILENT))throw"log.setLevel() called with invalid level: "+e;if(c=e,!1!==r&&o(e),n.call(l,e,t),typeof console===s&&e<l.levels.SILENT)return"No console available for logging"},l.setDefaultLevel=function(t){a()||l.setLevel(t,!1)},l.enableAll=function(t){l.setLevel(l.levels.TRACE,t)},l.disableAll=function(t){l.setLevel(l.levels.SILENT,t)};var p=a();null==p&&(p=null==e?"WARN":e),l.setLevel(p,!1)}var a=function(){},s="undefined",u=["trace","debug","info","warn","error"],c=new o,l={};c.getLogger=function(t){if("string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var e=l[t];return e||(e=l[t]=new o(t,c.getLevel(),c.methodFactory)),e};var f=typeof window!==s?window.log:void 0;return c.noConflict=function(){return typeof window!==s&&window.log===c&&(window.log=f),c},c})},function(t,e,n){"use strict";function r(t){return t.replace(/\/{1,}$/,"")}function i(t){var e=t.protocol,n=t.host,i=t.pathname;return r(e+"//"+n+(/^\//.test(i)?i:"/"+i))}function o(t){var e=document.createElement("a");return t.Api?(e.href=t.Api.getApi().baseUrl.replace(/\/api(?:\/2[3-9])?\/?$/i,""),e.host||(e.host=window.location.host),i(e)):(console&&console.info("Can not find d2 baseUrl, falling back to one folder up in the current location"),e.href=document.location.pathname+"/../",i(e))}e.a=o},function(t,e,n){var r=n(36),i=n(54);t.exports=n(40)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(53);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(136),i=n(90);t.exports=function(t){return r(i(t))}},function(t,e,n){"use strict";var r=function(){};t.exports=r},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,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.red50="#ffebee",e.red100="#ffcdd2",e.red200="#ef9a9a",e.red300="#e57373",e.red400="#ef5350",e.red500="#f44336",e.red600="#e53935",e.red700="#d32f2f",e.red800="#c62828",e.red900="#b71c1c",e.redA100="#ff8a80",e.redA200="#ff5252",e.redA400="#ff1744",e.redA700="#d50000",e.pink50="#fce4ec",e.pink100="#f8bbd0",e.pink200="#f48fb1",e.pink300="#f06292",e.pink400="#ec407a",e.pink500="#e91e63",e.pink600="#d81b60",e.pink700="#c2185b",e.pink800="#ad1457",e.pink900="#880e4f",e.pinkA100="#ff80ab",e.pinkA200="#ff4081",e.pinkA400="#f50057",e.pinkA700="#c51162",e.purple50="#f3e5f5",e.purple100="#e1bee7",e.purple200="#ce93d8",e.purple300="#ba68c8",e.purple400="#ab47bc",e.purple500="#9c27b0",e.purple600="#8e24aa",e.purple700="#7b1fa2",e.purple800="#6a1b9a",e.purple900="#4a148c",e.purpleA100="#ea80fc",e.purpleA200="#e040fb",e.purpleA400="#d500f9",e.purpleA700="#aa00ff",e.deepPurple50="#ede7f6",e.deepPurple100="#d1c4e9",e.deepPurple200="#b39ddb",e.deepPurple300="#9575cd",e.deepPurple400="#7e57c2",e.deepPurple500="#673ab7",e.deepPurple600="#5e35b1",e.deepPurple700="#512da8",e.deepPurple800="#4527a0",e.deepPurple900="#311b92",e.deepPurpleA100="#b388ff",e.deepPurpleA200="#7c4dff",e.deepPurpleA400="#651fff",e.deepPurpleA700="#6200ea",e.indigo50="#e8eaf6",e.indigo100="#c5cae9",e.indigo200="#9fa8da",e.indigo300="#7986cb",e.indigo400="#5c6bc0",e.indigo500="#3f51b5",e.indigo600="#3949ab",e.indigo700="#303f9f",e.indigo800="#283593",e.indigo900="#1a237e",e.indigoA100="#8c9eff",e.indigoA200="#536dfe",e.indigoA400="#3d5afe",e.indigoA700="#304ffe",e.blue50="#e3f2fd",e.blue100="#bbdefb",e.blue200="#90caf9",e.blue300="#64b5f6",e.blue400="#42a5f5",e.blue500="#2196f3",e.blue600="#1e88e5",e.blue700="#1976d2",e.blue800="#1565c0",e.blue900="#0d47a1",e.blueA100="#82b1ff",e.blueA200="#448aff",e.blueA400="#2979ff",e.blueA700="#2962ff",e.lightBlue50="#e1f5fe",e.lightBlue100="#b3e5fc",e.lightBlue200="#81d4fa",e.lightBlue300="#4fc3f7",e.lightBlue400="#29b6f6",e.lightBlue500="#03a9f4",e.lightBlue600="#039be5",e.lightBlue700="#0288d1",e.lightBlue800="#0277bd",e.lightBlue900="#01579b",e.lightBlueA100="#80d8ff",e.lightBlueA200="#40c4ff",e.lightBlueA400="#00b0ff",e.lightBlueA700="#0091ea",e.cyan50="#e0f7fa",e.cyan100="#b2ebf2",e.cyan200="#80deea",e.cyan300="#4dd0e1",e.cyan400="#26c6da",e.cyan500="#00bcd4",e.cyan600="#00acc1",e.cyan700="#0097a7",e.cyan800="#00838f",e.cyan900="#006064",e.cyanA100="#84ffff",e.cyanA200="#18ffff",e.cyanA400="#00e5ff",e.cyanA700="#00b8d4",e.teal50="#e0f2f1",e.teal100="#b2dfdb",e.teal200="#80cbc4",e.teal300="#4db6ac",e.teal400="#26a69a",e.teal500="#009688",e.teal600="#00897b",e.teal700="#00796b",e.teal800="#00695c",e.teal900="#004d40",e.tealA100="#a7ffeb",e.tealA200="#64ffda",e.tealA400="#1de9b6",e.tealA700="#00bfa5",e.green50="#e8f5e9",e.green100="#c8e6c9",e.green200="#a5d6a7",e.green300="#81c784",e.green400="#66bb6a",e.green500="#4caf50",e.green600="#43a047",e.green700="#388e3c",e.green800="#2e7d32",e.green900="#1b5e20",e.greenA100="#b9f6ca",e.greenA200="#69f0ae",e.greenA400="#00e676",e.greenA700="#00c853",e.lightGreen50="#f1f8e9",e.lightGreen100="#dcedc8",e.lightGreen200="#c5e1a5",e.lightGreen300="#aed581",e.lightGreen400="#9ccc65",e.lightGreen500="#8bc34a",e.lightGreen600="#7cb342",e.lightGreen700="#689f38",e.lightGreen800="#558b2f",e.lightGreen900="#33691e",e.lightGreenA100="#ccff90",e.lightGreenA200="#b2ff59",e.lightGreenA400="#76ff03",e.lightGreenA700="#64dd17",e.lime50="#f9fbe7",e.lime100="#f0f4c3",e.lime200="#e6ee9c",e.lime300="#dce775",e.lime400="#d4e157",e.lime500="#cddc39",e.lime600="#c0ca33",e.lime700="#afb42b",e.lime800="#9e9d24",e.lime900="#827717",e.limeA100="#f4ff81",e.limeA200="#eeff41",e.limeA400="#c6ff00",e.limeA700="#aeea00",e.yellow50="#fffde7",e.yellow100="#fff9c4",e.yellow200="#fff59d",e.yellow300="#fff176",e.yellow400="#ffee58",e.yellow500="#ffeb3b",e.yellow600="#fdd835",e.yellow700="#fbc02d",e.yellow800="#f9a825",e.yellow900="#f57f17",e.yellowA100="#ffff8d",e.yellowA200="#ffff00",e.yellowA400="#ffea00",e.yellowA700="#ffd600",e.amber50="#fff8e1",e.amber100="#ffecb3",e.amber200="#ffe082",e.amber300="#ffd54f",e.amber400="#ffca28",e.amber500="#ffc107",e.amber600="#ffb300",e.amber700="#ffa000",e.amber800="#ff8f00",e.amber900="#ff6f00",e.amberA100="#ffe57f",e.amberA200="#ffd740",e.amberA400="#ffc400",e.amberA700="#ffab00",e.orange50="#fff3e0",e.orange100="#ffe0b2",e.orange200="#ffcc80",e.orange300="#ffb74d",e.orange400="#ffa726",e.orange500="#ff9800",e.orange600="#fb8c00",e.orange700="#f57c00",e.orange800="#ef6c00",e.orange900="#e65100",e.orangeA100="#ffd180",e.orangeA200="#ffab40",e.orangeA400="#ff9100",e.orangeA700="#ff6d00",e.deepOrange50="#fbe9e7",e.deepOrange100="#ffccbc",e.deepOrange200="#ffab91",e.deepOrange300="#ff8a65",e.deepOrange400="#ff7043",e.deepOrange500="#ff5722",e.deepOrange600="#f4511e",e.deepOrange700="#e64a19",e.deepOrange800="#d84315",e.deepOrange900="#bf360c",e.deepOrangeA100="#ff9e80",e.deepOrangeA200="#ff6e40",e.deepOrangeA400="#ff3d00",e.deepOrangeA700="#dd2c00",e.brown50="#efebe9",e.brown100="#d7ccc8",e.brown200="#bcaaa4",e.brown300="#a1887f",e.brown400="#8d6e63",e.brown500="#795548",e.brown600="#6d4c41",e.brown700="#5d4037",e.brown800="#4e342e",e.brown900="#3e2723",e.blueGrey50="#eceff1",e.blueGrey100="#cfd8dc",e.blueGrey200="#b0bec5",e.blueGrey300="#90a4ae",e.blueGrey400="#78909c",e.blueGrey500="#607d8b",e.blueGrey600="#546e7a",e.blueGrey700="#455a64",e.blueGrey800="#37474f",e.blueGrey900="#263238",e.grey50="#fafafa",e.grey100="#f5f5f5",e.grey200="#eeeeee",e.grey300="#e0e0e0",e.grey400="#bdbdbd",e.grey500="#9e9e9e",e.grey600="#757575",e.grey700="#616161",e.grey800="#424242",e.grey900="#212121",e.black="#000000",e.white="#ffffff",e.transparent="rgba(0, 0, 0, 0)",e.fullBlack="rgba(0, 0, 0, 1)",e.darkBlack="rgba(0, 0, 0, 0.87)",e.lightBlack="rgba(0, 0, 0, 0.54)",e.minBlack="rgba(0, 0, 0, 0.26)",e.faintBlack="rgba(0, 0, 0, 0.12)",e.fullWhite="rgba(255, 255, 255, 1)",e.darkWhite="rgba(255, 255, 255, 0.87)",e.lightWhite="rgba(255, 255, 255, 0.54)"},function(t,e,n){"use strict";function r(t,e,n){return n?[t,e]:t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(135),i=n(94);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(90);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports={}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(24),i=function(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var a=i[o];if("entries"!==a&&"size"!==a&&r.prototype[a]===r.prototype.entries)return a}return"@@iterator"}(r.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0),i=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return r.a.of(this.value);case"E":return r.a.throw(this.error);case"C":return r.a.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof e&&(n=e,e=null),r.lift(new s(t,e,n))}}e.a=r;var i=n(7),o=n(6),a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}(),u=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return a(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(Object(i.a)(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},function(t,e,n){"use strict";function r(t){return!Object(i.a)(t)&&t-parseFloat(t)+1>=0}e.a=r;var i=n(31)},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(24),i=n(390),o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return o(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),r.a.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending?e:r.a.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(391),i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return i(e,t),e.prototype.flush=function(t){var e=this.action