@fyne/pdf
Version:
9 lines • 116 kB
JavaScript
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="OAn2")}({"8OQS":function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},Bnag:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},EbDI:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},Ijbi:function(e,t,n){var r=n("WkPL");e.exports=function(e){if(Array.isArray(e))return r(e)}},JY0e:function(e,t,n){"use strict";var r=n("LbEJ");n.o(r,"fyneApp")&&n.d(t,"fyneApp",(function(){return r.fyneApp})),n.o(r,"fyneHub")&&n.d(t,"fyneHub",(function(){return r.fyneHub}))},LbEJ:function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s="zMF8")}({"+KaR":function(e,t,n){"use strict";var r=n("o0o1"),i=n("lSNA"),o=n("J4zp"),a=n("yXPU"),u=n("RIqP"),c=n("lwsE"),s=n("W8MJ"),f=n("cDf5");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":f(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},h=this&&this.__metadata||function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":f(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var y=n("4cb6"),v=n("DNJd"),g=n("8kRR"),b=function(){function e(){c(this,e)}return s(e,[{key:"setTransactor",value:function(e){this.transactor=e}},{key:"sortResources",value:function(e){return e.sort((function(e,t){return e.position<t.position?-1:e.position>t.position?1:0}))}},{key:"sortDependencies",value:function(e,t){var n={global:{},apps:{}};return e.forEach((function(e){var r=t.get(e),i=r.dependencies,o=r.url;i.forEach((function(e){n.global[e.id]||(n.global[e.id]=e)})),n.apps[e]=o})),{globalDependencies:this.checkWindowObject(n.global),appDependencies:n.apps}}},{key:"fetchDependencies",value:function(e,t){var n=e.filter((function(e){return t.get(e).state===g.ERendererStates.IDLE})),r=this.sortDependencies(n,t),i=r.globalDependencies,o=r.appDependencies,a=this.prepareTransaction({globalDependencies:i,appDependencies:o},t);this.transactor.setTransaction(a)}},{key:"checkWindowObject",value:function(e){return Object.values(e).reduce((function(e,t){return"object"!==f(window[t.global_object])&&(e=[].concat(u(e),[t.url])),e}),[])}},{key:"prepareTransaction",value:function(e,t){var n=this,i=e.globalDependencies,u=e.appDependencies;return a(r.mark((function e(){var a,c,s;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=[],c=[],s=[],Object.entries(u).forEach((function(e){var r=o(e,2),i=r[0],u=r[1];t.set(i,l(l({},t.get(i)),{},{state:g.ERendererStates.FETCHING})),a=a.concat(n.fetcher.getText(u).then((function(e){return c=c.concat({text:e,position:1/0,appId:i}),{url:u,index:1/0}})))})),i.forEach((function(e,t){a.push(n.fetcher.getText(e).then((function(n){return c.push({text:n,position:t,appId:void 0}),{url:e,index:t}})))})),e.next=7,Promise.all(a);case 7:n.sortResources(c).forEach((function(e){s.push({then:function(t){v.injectHead(document,"script",e,t)}})})),s.map((function(e){return(0,e.then)((function(e){e.appId&&t.set(e.appId,l(l({},t.get(e.appId)),{},{state:g.ERendererStates.FETCHED}))}))}));case 9:case"end":return e.stop()}}),e)})))}}]),e}();p([y.inject(g.ETypes.FETCHER),h("design:type",Object)],b.prototype,"fetcher",void 0),b=p([y.injectable()],b),t.Proxify=b},"0gSV":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("GXnB"),i=n("Ztfv");t.tagged=function(e,t){return function(n,o,a){var u=new r.Metadata(e,t);"number"==typeof a?i.tagParameter(n,o,a,u):i.tagProperty(n,o,u)}}},"0mca":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=function(e){return Array.isArray(e)}},"406g":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("z4Hk"),i=function(){function e(e){this._binding=e}return e.prototype.onActivation=function(e){return this._binding.onActivation=e,new r.BindingWhenSyntax(this._binding)},e}();t.BindingOnSyntax=i},"4cb6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("xfSm");t.METADATA_KEY=r;var i=n("9Fde");t.Container=i.Container;var o=n("FV85");t.BindingScopeEnum=o.BindingScopeEnum,t.BindingTypeEnum=o.BindingTypeEnum,t.TargetTypeEnum=o.TargetTypeEnum;var a=n("dxzI");t.AsyncContainerModule=a.AsyncContainerModule,t.ContainerModule=a.ContainerModule;var u=n("cZ5Q");t.injectable=u.injectable;var c=n("0gSV");t.tagged=c.tagged;var s=n("ZzCi");t.named=s.named;var f=n("Yk9n");t.inject=f.inject,t.LazyServiceIdentifer=f.LazyServiceIdentifer;var d=n("jYx5");t.optional=d.optional;var l=n("n2J3");t.unmanaged=l.unmanaged;var p=n("jIg/");t.multiInject=p.multiInject;var h=n("oaX6");t.targetName=h.targetName;var y=n("Sk89");t.postConstruct=y.postConstruct;var v=n("wnjb");t.MetadataReader=v.MetadataReader;var g=n("d9O0");t.id=g.id;var b=n("Ztfv");t.decorate=b.decorate;var m=n("RR/i");t.traverseAncerstors=m.traverseAncerstors,t.taggedConstraint=m.taggedConstraint,t.namedConstraint=m.namedConstraint,t.typeConstraint=m.typeConstraint;var _=n("ujMp");t.getServiceIdentifierAsString=_.getServiceIdentifierAsString;var w=n("78VC");t.multiBindToService=w.multiBindToService},"5TeW":function(e,t,n){"use strict";var r=n("J4zp");Object.defineProperty(t,"__esModule",{value:!0});var i=n("9iz/"),o=n("8kRR"),a=n("XLux"),u=n("IG7M"),c=n("MyEO"),s={on:function(e,n){var i=e.split(":"),c=r(i,2),s=c[0],f=c[1];if(!o.EHubEvents[s.toUpperCase()])return t.Hubster.__publisher.register(e,n);if(!a.isString(f)||!f.length)throw new Error("Please provide an id to the ".concat(s," method"));if(!u.has(t.Hubster.on,f))throw new Error("Please provide the right id - no app named ".concat(f," has been provided"));t.Hubster.on[f][s]=n},dispatch:function(e,n){a.isString(e)&&e.length&&t.Hubster.__publisher.dispatch(e,n)},createHub:function(e){return new i.Hub(e)},__publisher:n("ajCW").publisher};t.Hubster=c.windowProxy(s,"Hubster")},"6AGu":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("FV85"),i=n("LKzl"),o=function(){function e(e){this._binding=e}return e.prototype.inRequestScope=function(){return this._binding.scope=r.BindingScopeEnum.Request,new i.BindingWhenOnSyntax(this._binding)},e.prototype.inSingletonScope=function(){return this._binding.scope=r.BindingScopeEnum.Singleton,new i.BindingWhenOnSyntax(this._binding)},e.prototype.inTransientScope=function(){return this._binding.scope=r.BindingScopeEnum.Transient,new i.BindingWhenOnSyntax(this._binding)},e}();t.BindingInSyntax=o},"78VC":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiBindToService=function(e){return function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.forEach((function(n){return e.bind(n).toService(t)}))}}}},"8OQS":function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},"8kRR":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.RENDER="render",e.DESTROY="destroy"}(t.EHubEvents||(t.EHubEvents={})),function(e){e.CONFIGURER="Configurer",e.RENDERER="Renderer",e.FETCHER="Fetcher",e.INJECTOR="Injector",e.ASYNC="Async",e.TRANSACTOR="Transactor"}(t.ETypes||(t.ETypes={})),function(e){e.IDLE="idle",e.RUNNING="running"}(t.ETransactorStates||(t.ETransactorStates={})),function(e){e.IDLE="idle",e.FETCHED="fetched",e.FETCHING="fetching",e.RENDERED="rendered",e.DESTROYED="destroyed",e.RENDERING="rendering",e.DESTROYNG="destroying"}(t.ERendererStates||(t.ERendererStates={})),function(e){e.LISTENING="listening",e.IDLE="idle"}(t.EPublisherStates||(t.EPublisherStates={}))},"8oxB":function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,s=[],f=!1,d=-1;function l(){f&&c&&(f=!1,c.length?s=c.concat(s):d=-1,s.length&&p())}function p(){if(!f){var e=u(l);f=!0;for(var t=s.length;t;){for(c=s,s=[];++d<t;)c&&c[d].run();d=-1,t=s.length}c=null,f=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||f||u(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},"9Fde":function(e,t,n){"use strict";var r=n("cDf5"),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function u(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,u)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("LgvC"),u=n("MON2"),c=n("FV85"),s=n("xfSm"),f=n("wnjb"),d=n("h7MG"),l=n("aPG5"),p=n("gzZq"),h=n("d9O0"),y=n("ujMp"),v=n("HpQ9"),g=n("AwBQ"),b=function(){function e(e){var t=e||{};if("object"!==r(t))throw new Error(""+u.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(void 0===t.defaultScope)t.defaultScope=c.BindingScopeEnum.Transient;else if(t.defaultScope!==c.BindingScopeEnum.Singleton&&t.defaultScope!==c.BindingScopeEnum.Transient&&t.defaultScope!==c.BindingScopeEnum.Request)throw new Error(""+u.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(void 0===t.autoBindInjectable)t.autoBindInjectable=!1;else if("boolean"!=typeof t.autoBindInjectable)throw new Error(""+u.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(void 0===t.skipBaseClassChecks)t.skipBaseClassChecks=!1;else if("boolean"!=typeof t.skipBaseClassChecks)throw new Error(""+u.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:t.autoBindInjectable,defaultScope:t.defaultScope,skipBaseClassChecks:t.skipBaseClassChecks},this.id=h.id(),this._bindingDictionary=new g.Lookup,this._snapshots=[],this._middleware=null,this.parent=null,this._metadataReader=new f.MetadataReader}return e.merge=function(t,n){var r=new e,i=d.getBindingDictionary(r),o=d.getBindingDictionary(t),a=d.getBindingDictionary(n);function u(e,t){e.traverse((function(e,n){n.forEach((function(e){t.add(e.serviceIdentifier,e.clone())}))}))}return u(o,i),u(a,i),r},e.prototype.load=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=this._getContainerModuleHelpersFactory(),r=0,i=e;r<i.length;r++){var o=i[r],a=n(o.id);o.registry(a.bindFunction,a.unbindFunction,a.isboundFunction,a.rebindFunction)}},e.prototype.loadAsync=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(this,void 0,void 0,(function(){var t,n,r,i,a;return o(this,(function(o){switch(o.label){case 0:t=this._getContainerModuleHelpersFactory(),n=0,r=e,o.label=1;case 1:return n<r.length?(i=r[n],a=t(i.id),[4,i.registry(a.bindFunction,a.unbindFunction,a.isboundFunction,a.rebindFunction)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}}))}))},e.prototype.unload=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=function(e){return function(t){return t.moduleId===e}};t.forEach((function(t){var n=r(t.id);e._bindingDictionary.removeByCondition(n)}))},e.prototype.bind=function(e){var t=this.options.defaultScope||c.BindingScopeEnum.Transient,n=new a.Binding(e,t);return this._bindingDictionary.add(e,n),new p.BindingToSyntax(n)},e.prototype.rebind=function(e){return this.unbind(e),this.bind(e)},e.prototype.unbind=function(e){try{this._bindingDictionary.remove(e)}catch(t){throw new Error(u.CANNOT_UNBIND+" "+y.getServiceIdentifierAsString(e))}},e.prototype.unbindAll=function(){this._bindingDictionary=new g.Lookup},e.prototype.isBound=function(e){var t=this._bindingDictionary.hasKey(e);return!t&&this.parent&&(t=this.parent.isBound(e)),t},e.prototype.isBoundNamed=function(e,t){return this.isBoundTagged(e,s.NAMED_TAG,t)},e.prototype.isBoundTagged=function(e,t,n){var r=!1;if(this._bindingDictionary.hasKey(e)){var i=this._bindingDictionary.get(e),o=d.createMockRequest(this,e,t,n);r=i.some((function(e){return e.constraint(o)}))}return!r&&this.parent&&(r=this.parent.isBoundTagged(e,t,n)),r},e.prototype.snapshot=function(){this._snapshots.push(v.ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware))},e.prototype.restore=function(){var e=this._snapshots.pop();if(void 0===e)throw new Error(u.NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=e.bindings,this._middleware=e.middleware},e.prototype.createChild=function(t){var n=new e(t||this.options);return n.parent=this,n},e.prototype.applyMiddleware=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this._middleware?this._middleware:this._planAndResolve();this._middleware=e.reduce((function(e,t){return t(e)}),n)},e.prototype.applyCustomMetadataReader=function(e){this._metadataReader=e},e.prototype.get=function(e){return this._get(!1,!1,c.TargetTypeEnum.Variable,e)},e.prototype.getTagged=function(e,t,n){return this._get(!1,!1,c.TargetTypeEnum.Variable,e,t,n)},e.prototype.getNamed=function(e,t){return this.getTagged(e,s.NAMED_TAG,t)},e.prototype.getAll=function(e){return this._get(!0,!0,c.TargetTypeEnum.Variable,e)},e.prototype.getAllTagged=function(e,t,n){return this._get(!1,!0,c.TargetTypeEnum.Variable,e,t,n)},e.prototype.getAllNamed=function(e,t){return this.getAllTagged(e,s.NAMED_TAG,t)},e.prototype.resolve=function(e){var t=this.createChild();return t.bind(e).toSelf(),t.get(e)},e.prototype._getContainerModuleHelpersFactory=function(){var e=this,t=function(e,t){e._binding.moduleId=t},n=function(n){return function(r){var i=e.rebind.bind(e)(r);return t(i,n),i}};return function(r){return{bindFunction:(i=r,function(n){var r=e.bind.bind(e)(n);return t(r,i),r}),isboundFunction:function(t){return e.isBound.bind(e)(t)},rebindFunction:n(r),unbindFunction:function(t){e.unbind.bind(e)(t)}};var i}},e.prototype._get=function(e,t,n,r,i,o){var a=null,c={avoidConstraints:e,contextInterceptor:function(e){return e},isMultiInject:t,key:i,serviceIdentifier:r,targetType:n,value:o};if(this._middleware){if(null==(a=this._middleware(c)))throw new Error(u.INVALID_MIDDLEWARE_RETURN)}else a=this._planAndResolve()(c);return a},e.prototype._planAndResolve=function(){var e=this;return function(t){var n=d.plan(e._metadataReader,e,t.isMultiInject,t.targetType,t.serviceIdentifier,t.key,t.value,t.avoidConstraints);return n=t.contextInterceptor(n),l.resolve(n)}},e}();t.Container=b},"9iz/":function(e,t,n){"use strict";var r=n("lwsE"),i=n("W8MJ"),o=n("cDf5"),a=this&&this.__decorate||function(e,t,n,r){var i,a=arguments.length,u=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":o(Reflect))&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(u=(a<3?i(u):a>3?i(t,n,u):i(t,n))||u);return a>3&&u&&Object.defineProperty(t,n,u),u},u=this&&this.__metadata||function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":o(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var c=n("IMME"),s=n("8kRR"),f=n("5TeW"),d=function(){function e(t){r(this,e),this.configurer.setConfiguration(t),this.renderer.init(this.configurer,this.transactor),f.Hubster.__publisher.listen()}return i(e,[{key:"bind",value:function(e){return this.renderer.create(e),this}},{key:"render",value:function(e){this.renderer.trigger(s.EHubEvents.RENDER,e)}},{key:"destroy",value:function(e){this.renderer.trigger(s.EHubEvents.DESTROY,e)}}]),e}();a([c.lazyInject(s.ETypes.RENDERER),u("design:type",Object)],d.prototype,"renderer",void 0),a([c.lazyInject(s.ETypes.CONFIGURER),u("design:type",Object)],d.prototype,"configurer",void 0),a([c.lazyInject(s.ETypes.TRANSACTOR),u("design:type",Object)],d.prototype,"transactor",void 0),t.Hub=d},APxj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("Ucsi");t.default=function(e,t){return void 0===t&&(t=!0),{lazyInject:r.makePropertyInjectDecorator(e,t),lazyInjectNamed:r.makePropertyInjectNamedDecorator(e,t),lazyInjectTagged:r.makePropertyInjectTaggedDecorator(e,t),lazyMultiInject:r.makePropertyMultiInjectDecorator(e,t)}}},AwBQ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("MON2"),i=function(){function e(){this._map=new Map}return e.prototype.getMap=function(){return this._map},e.prototype.add=function(e,t){if(null==e)throw new Error(r.NULL_ARGUMENT);if(null==t)throw new Error(r.NULL_ARGUMENT);var n=this._map.get(e);void 0!==n?(n.push(t),this._map.set(e,n)):this._map.set(e,[t])},e.prototype.get=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);var t=this._map.get(e);if(void 0!==t)return t;throw new Error(r.KEY_NOT_FOUND)},e.prototype.remove=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);if(!this._map.delete(e))throw new Error(r.KEY_NOT_FOUND)},e.prototype.removeByCondition=function(e){var t=this;this._map.forEach((function(n,r){var i=n.filter((function(t){return!e(t)}));i.length>0?t._map.set(r,i):t._map.delete(r)}))},e.prototype.hasKey=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);return this._map.has(e)},e.prototype.clone=function(){var t=new e;return this._map.forEach((function(e,n){e.forEach((function(e){return t.add(n,e.clone())}))})),t},e.prototype.traverse=function(e){this._map.forEach((function(t,n){e(n,t)}))},e}();t.Lookup=i},BhS4:function(e,t,n){var r=n("cDf5");
/*!
* document.currentScript
* Polyfill for `document.currentScript`.
* Copyright (c) 2016 James M. Greene
* Licensed MIT
* https://github.com/JamesMGreene/document.currentScript
* v1.1.0
*/!function(){var e=document.getElementsByTagName("script"),t="readyState"in(e[0]||document.createElement("script")),n=!window.opera||"[object Opera]"!==window.opera.toString(),i=t&&n,o=function(e){var t="currentScript"in e,n="function"==typeof Object.getOwnPropertyDescriptor,i="function"==typeof Object.getPrototypeOf,o="object"===r("test".__proto__);function u(){var t,r=!0;return n&&(t=Object.getOwnPropertyDescriptor(e,"currentScript")||void 0)&&"function"==typeof t.get&&t.get===a&&(r=!1),r?e.currentScript:null}return function e(r,c){var s,f,d,l;return t&&n&&r&&r!==Object.prototype&&c&&c!==Object.prototype&&(n&&(s=Object.getOwnPropertyDescriptor(r,"currentScript")||void 0)&&"function"==typeof s.get&&(f=s.get),f||(f=e((null!=(d=r)&&(l=i?Object.getPrototypeOf(d):o?d.__proto__:null!=d.constructor?d.constructor.prototype:void 0),l),c))),f?f===a&&(f=void 0):f=u,f}(e,e)}(document);function a(){if(0===e.length)return null;if(i)for(var t=e.length;t--;)if(e[t]&&"interactive"===e[t].readyState)return e[t];return"function"==typeof o&&!0!==a.doNotDeferToNativeMethod&&o.call(document)||null}a.doNotDeferToNativeMethod=!1;var u=!("currentScript"in document),c="function"==typeof Object.defineProperty&&function(){var e;try{Object.defineProperty(document,"_xyz",{get:function(){return"blah"},configurable:!0}),e="blah"===document._xyz,delete document._xyz}catch(t){e=!1}return e}();document._currentScript=a,u&&c&&void 0!==i&&i&&Object.defineProperty(document,"currentScript",{get:a})}()},Bnag:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},D9lx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("6AGu"),i=n("406g"),o=n("z4Hk"),a=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new i.BindingOnSyntax(this._binding),this._bindingInSyntax=new r.BindingInSyntax(e)}return e.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},e.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},e.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingInWhenOnSyntax=a},DNJd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectHead=function(e,t,n,r){var i=e.createElement(t);i.appendChild(e.createTextNode(n.text)),i.onload=r(n),e.head.appendChild(i)}},EbDI:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},FV85:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"},t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},GXnB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("xfSm"),i=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.toString=function(){return this.key===r.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},e}();t.Metadata=i},HpQ9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.of=function(t,n){var r=new e;return r.bindings=t,r.middleware=n,r},e}();t.ContainerSnapshot=r},IG7M:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.has=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},IMME:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n("4cb6"),o=n("ZRf7"),a=n("rCdZ"),u=n("ve4Z"),c=r(n("APxj")),s=n("+KaR"),f=n("Lq45"),d=n("W6mJ"),l=n("8kRR"),p=new i.Container;t.hubContainer=p,p.bind(l.ETypes.RENDERER).to(a.Htmlify),p.bind(l.ETypes.CONFIGURER).to(o.Jsonify),p.bind(l.ETypes.FETCHER).to(u.Fetchify),p.bind(l.ETypes.INJECTOR).to(s.Proxify),p.bind(l.ETypes.TRANSACTOR).to(f.Transactor),p.bind(l.ETypes.ASYNC).to(d.Async);var h=c.default(p).lazyInject;t.lazyInject=h},Ijbi:function(e,t,n){var r=n("WkPL");e.exports=function(e){if(Array.isArray(e))return r(e)}},J4zp:function(e,t,n){var r=n("wTVA"),i=n("m0LI"),o=n("ZhPi"),a=n("wkBT");e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},LKzl:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("406g"),i=n("z4Hk"),o=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new r.BindingOnSyntax(this._binding)}return e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingWhenOnSyntax=o},"LM/2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLoader=function(){var e=document.createElement("div");return e.innerHTML="Loading",e}},LgvC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("FV85"),i=n("d9O0"),o=function(){function e(e,t){this.id=i.id(),this.activated=!1,this.serviceIdentifier=e,this.scope=t,this.type=r.BindingTypeEnum.Invalid,this.constraint=function(e){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.dynamicValue=null}return e.prototype.clone=function(){var t=new e(this.serviceIdentifier,this.scope);return t.activated=!1,t.implementationType=this.implementationType,t.dynamicValue=this.dynamicValue,t.scope=this.scope,t.type=this.type,t.factory=this.factory,t.provider=this.provider,t.constraint=this.constraint,t.onActivation=this.onActivation,t.cache=this.cache,t},e}();t.Binding=o},LpkI:function(e,t){!function(e){"currentScript"in e||Object.defineProperty(e,"currentScript",{get:function(){try{throw new Error}catch(f){var t,n,r,i=0,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(f.stack),a=o&&o[1]||!1,u=o&&o[2]||!1,c=e.location.href.replace(e.location.hash,""),s=e.getElementsByTagName("script");for(a===c&&(t=e.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=t.replace(n,"$1").trim());i<s.length;i++){if("interactive"===s[i].readyState)return s[i];if(s[i].src===a)return s[i];if(a===c&&s[i].innerHTML&&s[i].innerHTML.trim()===r)return s[i]}return null}}})}(document)},Lq45:function(e,t,n){"use strict";var r=n("o0o1"),i=n("RIqP"),o=n("yXPU"),a=n("lwsE"),u=n("W8MJ"),c=n("cDf5"),s=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":c(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var f,d=n("4cb6"),l=n("8kRR");f="requestIdleCallback"in window?window.requestIdleCallback:function(e,t){return setTimeout(e,t.timeout||10)};var p=function(){function e(){a(this,e),this.status=l.ETransactorStates.IDLE,this.queue=new Map}var t;return u(e,[{key:"getNewTransactionKey",value:function(){return Date.now()}},{key:"commit",value:(t=o(r.mark((function e(){var t,n,o=this;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.status!==l.ETransactorStates.IDLE){e.next=14;break}if(this.status=l.ETransactorStates.RUNNING,t=Math.min.apply(Math,i(this.queue.keys())),Number.isInteger(t)){e.next=6;break}return this.status=l.ETransactorStates.IDLE,e.abrupt("return");case 6:return n=this.queue.get(t),e.next=9,n();case 9:this.queue.delete(t),this.status=l.ETransactorStates.IDLE,f((function(){o.commit()}),{timeout:10}),e.next=15;break;case 14:this.queue.size>0&&f((function(){o.commit()}),{timeout:10});case 15:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getTransaction",value:function(e){return this.queue.has(e)?this.queue.get(e):o(r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve());case 1:case"end":return e.stop()}}),e)})))}},{key:"setTransaction",value:function(e){var t=this;f((function(){var n=t.getNewTransactionKey();t.queue.set(n,e),t.commit()}),{timeout:10})}}]),e}();p=s([d.injectable()],p),t.Transactor=p},MON2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",t.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",t.NULL_ARGUMENT="NULL argument",t.KEY_NOT_FOUND="Key Not Found",t.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",t.CANNOT_UNBIND="Could not unbind serviceIdentifier:",t.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",t.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",t.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:",t.UNDEFINED_INJECT_ANNOTATION=function(e){return"@inject called with undefined this could mean that the class "+e+" has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."},t.CIRCULAR_DEPENDENCY="Circular dependency found:",t.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.",t.INVALID_BINDING_TYPE="Invalid binding type:",t.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",t.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",t.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",t.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",t.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",t.ARGUMENTS_LENGTH_MISMATCH=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"The number of constructor arguments in the derived class "+e[0]+" must be >= than the number of constructor arguments of its base class."},t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",t.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",t.POST_CONSTRUCT_ERROR=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"@postConstruct error in class "+e[0]+": "+e[1]},t.CIRCULAR_DEPENDENCY_IN_FACTORY=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"It looks like there is a circular dependency in one of the '"+e[0]+"' bindings. Please investigate bindings withservice identifier '"+e[1]+"'."},t.STACK_OVERFLOW="Maximum call stack size exceeded"},MyEO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowProxy=function(e,t){return window[t]?window[t]:e}},NHG5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}},QILm:function(e,t,n){var r=n("8OQS");e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},RIqP:function(e,t,n){var r=n("Ijbi"),i=n("EbDI"),o=n("ZhPi"),a=n("Bnag");e.exports=function(e){return r(e)||i(e)||o(e)||a()}},"RR/i":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("xfSm"),i=n("GXnB");t.traverseAncerstors=function e(t,n){var r=t.parentRequest;return null!==r&&(!!n(r)||e(r,n))};var o=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=o;var a=o(r.NAMED_TAG);t.namedConstraint=a,t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},Sk89:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("MON2"),i=n("xfSm"),o=n("GXnB");t.postConstruct=function(){return function(e,t,n){var a=new o.Metadata(i.POST_CONSTRUCT,t);if(Reflect.hasOwnMetadata(i.POST_CONSTRUCT,e.constructor))throw new Error(r.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(i.POST_CONSTRUCT,a,e.constructor)}}},Ucsi:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Symbol.for("INJECTION");function i(e,t,n,i){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return i&&!Reflect.hasMetadata(r,this,t)&&Reflect.defineMetadata(r,n(),this,t),Reflect.hasMetadata(r,this,t)?Reflect.getMetadata(r,this,t):n()},set:function(e){Reflect.defineMetadata(r,e,this,t)}})}t.makePropertyInjectDecorator=function(e,t){return function(n){return function(r,o){i(r,o,(function(){return e.get(n)}),t)}}},t.makePropertyInjectNamedDecorator=function(e,t){return function(n,r){return function(o,a){i(o,a,(function(){return e.getNamed(n,r)}),t)}}},t.makePropertyInjectTaggedDecorator=function(e,t){return function(n,r,o){return function(a,u){i(a,u,(function(){return e.getTagged(n,r,o)}),t)}}},t.makePropertyMultiInjectDecorator=function(e,t){return function(n){return function(r,o){i(r,o,(function(){return e.getAll(n)}),t)}}}},W6mJ:function(e,t,n){"use strict";var r=n("o0o1"),i=n("yXPU"),o=n("lwsE"),a=n("W8MJ"),u=n("cDf5");function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":u(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var d=n("4cb6"),l=function(){function e(){o(this,e),this.mutex=Promise.resolve()}var t,n;return a(e,[{key:"lock",value:function(){var e=function(){};return this.mutex=this.mutex.then((function(){return new Promise(e)})),new Promise((function(t){e=t}))}},{key:"setMutex",value:(n=i(r.mark((function e(t){var n;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.lock();case 2:return n=e.sent,e.prev=3,e.next=6,Promise.resolve(t());case 6:return e.abrupt("return",e.sent);case 7:return e.prev=7,n(),e.finish(7);case 10:case"end":return e.stop()}}),e,this,[[3,,7,10]])}))),function(e){return n.apply(this,arguments)})},{key:"forEach",value:(t=i(r.mark((function e(t,n){var i,o,a;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=c(t),e.prev=1,i.s();case 3:if((o=i.n()).done){e.next=9;break}return a=o.value,e.next=7,n(a);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),i.e(e.t0);case 14:return e.prev=14,i.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])}))),function(e,n){return t.apply(this,arguments)})}]),e}();l=f([d.injectable()],l),t.Async=l},W8MJ:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},WkPL:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},XLux:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=function(e){return"string"==typeof e}},Yk9n:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("MON2"),i=n("xfSm"),o=n("GXnB"),a=n("Ztfv"),u=function(){function e(e){this._cb=e}return e.prototype.unwrap=function(){return this._cb()},e}();t.LazyServiceIdentifer=u,t.inject=function(e){return function(t,n,u){if(void 0===e)throw new Error(r.UNDEFINED_INJECT_ANNOTATION(t.name));var c=new o.Metadata(i.INJECT_TAG,e);"number"==typeof u?a.tagParameter(t,n,u,c):a.tagProperty(t,n,c)}}},Yteh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultFromPath=function(e,t,n){var r=e;return t.forEach((function(t){r=null!=r?n[t]:e})),r}},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},ZRf7:function(e,t,n){"use strict";var r=n("lwsE"),i=n("W8MJ"),o=n("cDf5"),a=this&&this.__decorate||function(e,t,n,r){var i,a=arguments.length,u=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":o(Reflect))&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(u=(a<3?i(u):a>3?i(t,n,u):i(t,n))||u);return a>3&&u&&Object.defineProperty(t,n,u),u};Object.defineProperty(t,"__esModule",{value:!0});var u=n("4cb6");n("mNvP");var c=function(){function e(){r(this,e)}return i(e,[{key:"setConfiguration",value:function(e){this.configuration=e}},{key:"findInApps",value:function(e,t){var n=this.configuration.apps.find((function(t){return t.id===e}));if(n)return n[t];throw new Error("Please provide a correct app name")}},{key:"getAppDefaultSelector",value:function(e){var t=this.findInApps(e,"el");if(t)return t;var n="".concat(e,"_container");return{sel:"#".concat(n),attrs:[{type:"id",value:n}],type:"div"}}},{key:"getAppUrl",value:function(e){return this.findInApps(e,"url")}},{key:"getAppDependencies",value:function(e){var t=this;return this.findInApps(e,"global_dependencies").map((function(e){return t.configuration.global_dependencies.find((function(t){return t.id===e}))})).filter(Boolean)}}]),e}();c=a([u.injectable()],c),t.Jsonify=c},ZhPi:function(e,t,n){var r=n("WkPL");e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},Ztfv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("MON2"),i=n("xfSm");function o(e,t,n,i,o){var a={},u="number"==typeof o,c=void 0!==o&&u?o.toString():n;if(u&&void 0!==n)throw new Error(r.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(e,t)&&(a=Reflect.getMetadata(e,t));var s=a[c];if(Array.isArray(s))for(var f=0,d=s;f<d.length;f++){var l=d[f];if(l.key===i.key)throw new Error(r.DUPLICATED_METADATA+" "+l.key.toString())}else s=[];s.push(i),a[c]=s,Reflect.defineMetadata(e,a,t)}function a(e,t){Reflect.decorate(e,t)}function u(e,t){return function(n,r){t(n,r,e)}}t.tagParameter=function(e,t,n,r){o(i.TAGGED,e,t,r,n)},t.tagProperty=function(e,t,n){o(i.TAGGED_PROP,e.constructor,t,n)},t.decorate=function(e,t,n){"number"==typeof n?a([u(n,e)],t):"string"==typeof n?Reflect.decorate([e],t,n):a([e],t)}},ZzCi:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("xfSm"),i=n("GXnB"),o=n("Ztfv");t.named=function(e){return function(t,n,a){var u=new i.Metadata(r.NAMED_TAG,e);"number"==typeof a?o.tagParameter(t,n,a,u):o.tagProperty(t,n,u)}}},aPG5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("MON2"),i=n("FV85"),o=n("qK8v"),a=n("ujMp"),u=n("cSJO"),c=function(e,t,n){try{return n()}catch(n){throw o.isStackOverflowExeption(n)?new Error(r.CIRCULAR_DEPENDENCY_IN_FACTORY(e,t.toString())):n}};t.resolve=function(e){return function e(t){return function(n){n.parentContext.setCurrentRequest(n);var o=n.bindings,s=n.childRequests,f=n.target&&n.target.isArray(),d=!(n.parentRequest&&n.parentRequest.target&&n.target&&n.parentRequest.target.matchesArray(n.target.serviceIdentifier));if(f&&d)return s.map((function(n){return e(t)(n)}));var l=null;if(!n.target.isOptional()||0!==o.length){var p=o[0],h=p.scope===i.BindingScopeEnum.Singleton,y=p.scope===i.BindingScopeEnum.Request;if(h&&p.activated)return p.cache;if(y&&null!==t&&t.has(p.id))return t.get(p.id);if(p.type===i.BindingTypeEnum.ConstantValue)l=p.cache;else if(p.type===i.BindingTypeEnum.Function)l=p.cache;else if(p.type===i.BindingTypeEnum.Constructor)l=p.implementationType;else if(p.type===i.BindingTypeEnum.DynamicValue&&null!==p.dynamicValue)l=c("toDynamicValue",p.serviceIdentifier,(function(){return p.dynamicValue(n.parentContext)}));else if(p.type===i.BindingTypeEnum.Factory&&null!==p.factory)l=c("toFactory",p.serviceIdentifier,(function(){return p.factory(n.parentContext)}));else if(p.type===i.BindingTypeEnum.Provider&&null!==p.provider)l=c("toProvider",p.serviceIdentifier,(function(){return p.provider(n.parentContext)}));else{if(p.type!==i.BindingTypeEnum.Instance||null===p.implementationType){var v=a.getServiceIdentifierAsString(n.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+v)}l=u.resolveInstance(p.implementationType,s,e(t))}return"function"==typeof p.onActivation&&(l=p.onActivation(n.parentContext,l)),h&&(p.cache=l,p.activated=!0),y&&null!==t&&!t.has(p.id)&&t.set(p.id,l),l}}}(e.plan.rootRequest.requestScope)(e.plan.rootRequest)}},ajCW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("NHG5"),i=n("8kRR");t.publisher={state:i.EPublisherStates.IDLE,handlers:new Map,getHandlers:function(e){return this.handlers.get(e)||new Set},setHandlers:function(e,t){var n="handler:".concat(r.uuidv4());Reflect.defineMetadata("__hubster:handler__",n,t);var i=this.getHandlers(e);return this.handlers.set(e,i.add(t)),n},listen:function(){var e=this;this.state===i.EPublisherStates.IDLE&&(addEventListener("__hubster:publish__",(function(t){var n=t.detail,r=n.eventName,i=n.payload;e.getHandlers(r).forEach((function(e){return e(i)}))})),this.state=i.EPublisherStates.LISTENING)},register:function(e,t){var n=this,r=this.setHandlers(e,t);return function(){return n.unsubscribe(e,r)}},dispatch:function(e,t){dispatchEvent(new CustomEvent("__hubster:publish__",{detail:{eventName:e,payload:t}}))},unsubscribe:function(e,t){var n=this.getHandlers(e);n.forEach((function(e){Reflect.getMetadata("__hubster:handler__",e)===t&&n.delete(e)}))}}},cDf5:function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},cSJO:functi