{"version":3,"file":"bwtk.min.js","sources":["[name]:///bwtk.min.js?"],"sourcesContent":["var e,t;e=\"undefined\"!=typeof self?self:this,t=function(e,t,r,n,o,i,a,s,c,u){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=8)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p=\"\",r(0)}([function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(1);Object.defineProperty(t,\"Injector\",{enumerable:!0,get:function(){return n.Injector}});var o=r(2);Object.defineProperty(t,\"annotate\",{enumerable:!0,get:function(){return o.annotate}}),Object.defineProperty(t,\"Inject\",{enumerable:!0,get:function(){return o.Inject}}),Object.defineProperty(t,\"InjectLazy\",{enumerable:!0,get:function(){return o.InjectLazy}}),Object.defineProperty(t,\"InjectPromise\",{enumerable:!0,get:function(){return o.InjectPromise}}),Object.defineProperty(t,\"Provide\",{enumerable:!0,get:function(){return o.Provide}}),Object.defineProperty(t,\"ProvidePromise\",{enumerable:!0,get:function(){return o.ProvidePromise}}),Object.defineProperty(t,\"SuperConstructor\",{enumerable:!0,get:function(){return o.SuperConstructor}}),Object.defineProperty(t,\"TransientScope\",{enumerable:!0,get:function(){return o.TransientScope}}),Object.defineProperty(t,\"ClassProvider\",{enumerable:!0,get:function(){return o.ClassProvider}}),Object.defineProperty(t,\"FactoryProvider\",{enumerable:!0,get:function(){return o.FactoryProvider}})},function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.Injector=void 0;var n=function(){function e(e,t){for(var r=0;r1&&e.push(t),e.length>1?\" (\"+e.map(i.toString).join(\" -> \")+\")\":\"\"}var u=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],r=arguments.length<=1||void 0===arguments[1]?null:arguments[1],n=arguments.length<=2||void 0===arguments[2]?new Map:arguments[2],o=arguments.length<=3||void 0===arguments[3]?[]:arguments[3];!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this._cache=new Map,this._providers=n,this._parent=r,this._scopes=o,this._loadModules(t),(0,a.profileInjector)(this,e)}return n(e,[{key:\"_collectProvidersWithAnnotation\",value:function(e,t){this._providers.forEach(function(r,n){!t.has(n)&&(0,o.hasAnnotation)(r.provider,e)&&t.set(n,r)}),this._parent&&this._parent._collectProvidersWithAnnotation(e,t)}},{key:\"_loadModules\",value:function(e){var t=!0,r=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var s=o.value;if(!(0,i.isFunction)(s))throw new Error(\"Invalid module!\");this._loadFnOrClass(s)}}catch(e){r=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw n}}}},{key:\"_loadFnOrClass\",value:function(e){var t=(0,o.readAnnotations)(e),r=t.provide.token||e,n=(0,s.createProviderFromFnOrClass)(e,t);this._providers.set(r,n)}},{key:\"_hasProviderFor\",value:function(e){return!!this._providers.has(e)||!!this._parent&&this._parent._hasProviderFor(e)}},{key:\"_instantiateDefaultProvider\",value:function(e,t,r,n,i){if(!this._parent)return this._providers.set(t,e),this.get(t,r,n,i);var a=!0,s=!1,c=void 0;try{for(var u,l=this._scopes[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var f=u.value;if((0,o.hasAnnotation)(e.provider,f))return this._providers.set(t,e),this.get(t,r,n,i)}}catch(e){s=!0,c=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw c}}return this._parent._instantiateDefaultProvider(e,t,r,n,i)}},{key:\"get\",value:function(t){var r,n,a=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],u=this,l=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],f=!(arguments.length<=3||void 0===arguments[3])&&arguments[3],d=\"\",p=this;if(null===t||void 0===t)throw d=c(a,t),new Error('Invalid token \"'+t+'\" requested!'+d);if(t===e)return l?Promise.resolve(this):this;if(f)return function(){var e=p;if(arguments.length){for(var r=[],n=arguments,i=0;i1)for(var r=1;r0))return new c(e,t.params,t.provide.isPromise);var r;return new u(e,t.params,t.provide.isPromise)};var o=r(2),i=r(3);function a(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}var s=Object.getPrototypeOf(Function),c=function(){function e(t,r,n){a(this,e),this.provider=t,this.isPromise=n,this.params=[],this._constructors=[],this._flattenParams(t,r),this._constructors.unshift([t,0,this.params.length-1])}return n(e,[{key:\"_flattenParams\",value:function(e,t){var r,n,a=!0,c=!1,u=void 0;try{for(var l,f=t[Symbol.iterator]();!(a=(l=f.next()).done);a=!0){var d=l.value;if(d.token===o.SuperConstructor){if((r=Object.getPrototypeOf(e))===s)throw new Error((0,i.toString)(e)+\" does not have a parent constructor. Only classes with a parent can ask for SuperConstructor!\");n=[r,this.params.length],this._constructors.push(n),this._flattenParams(r,(0,o.readAnnotations)(r).params),n.push(this.params.length-1)}else this.params.push(d)}}catch(e){c=!0,u=e}finally{try{!a&&f.return&&f.return()}finally{if(c)throw u}}}},{key:\"_createConstructor\",value:function(e,t,r){var n,o=this._constructors[e],i=this._constructors[e+1];return n=i?r.slice(o[1],i[1]).concat([this._createConstructor(e+1,t,r)]).concat(r.slice(i[2]+1,o[2]+1)):r.slice(o[1],o[2]+1),function(){return o[0].apply(t,n)}}},{key:\"create\",value:function(e){var t=Object.create(this.provider.prototype),r=this._createConstructor(0,t,e)();return(0,i.isFunction)(r)||(0,i.isObject)(r)?r:t}}]),e}(),u=function(){function e(t,r,n){a(this,e),this.provider=t,this.params=r,this.isPromise=n;var s=!0,c=!1,u=void 0;try{for(var l,f=r[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){if(l.value.token===o.SuperConstructor)throw new Error((0,i.toString)(t)+\" is not a class. Only classes with a parent can ask for SuperConstructor!\")}}catch(e){c=!0,u=e}finally{try{!s&&f.return&&f.return()}finally{if(c)throw u}}}return n(e,[{key:\"create\",value:function(e){return this.provider.apply(void 0,e)}}]),e}()}])},function(e,t){e.exports=r},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return\"function\"==typeof e}function o(e){return\"object\"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(\"number\"!=typeof e||e<0||isNaN(e))throw TypeError(\"n must be a positive number\");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,a,s,c,u;if(this._events||(this._events={}),\"error\"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified \"error\" event. ('+t+\")\");throw l.context=t,l}if(i(r=this._events[e]))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(o(r))for(s=Array.prototype.slice.call(arguments,1),a=(u=r.slice()).length,c=0;c0&&this._events[e].length>a&&(this._events[e].warned=!0,console.trace),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!n(t))throw TypeError(\"listener must be a function\");var r=!1;function o(){this.removeListener(e,o),r||(r=!0,t.apply(this,arguments))}return o.listener=t,this.on(e,o),this},r.prototype.removeListener=function(e,t){var r,i,a,s;if(!n(t))throw TypeError(\"listener must be a function\");if(!this._events||!this._events[e])return this;if(a=(r=this._events[e]).length,i=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit(\"removeListener\",e,t);else if(o(r)){for(s=a;s-- >0;)if(r[s]===t||r[s].listener&&r[s].listener===t){i=s;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit(\"removeListener\",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)\"removeListener\"!==t&&this.removeAllListeners(t);return this.removeAllListeners(\"removeListener\"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t,r){\"use strict\";var n=r(1).compose;t.__esModule=!0,t.composeWithDevTools=\"undefined\"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return\"object\"==typeof arguments[0]?n:n.apply(null,arguments)},t.devToolsEnhancer=\"undefined\"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}}},function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(9),o=r(10),i=r(11),a=r(3),s={window:\"undefined\"!=typeof window?window:{}},c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};function u(e,t){function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function d(e,t){return function(r,n){t(r,n,e)}}function p(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t){var r=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function y(){for(var e=[],t=0;t0)&&setTimeout(function(){return n.tryDelayedRender(e,-1===t?-1:t-1,r)},e)},t.prototype.render=function(){var e=this;return this.destroyed||!this.widget||this.delayInit?null:ue.createElement(\"span\",{className:this.props.widget,ref:function(t){t&&(e.widgetElement=t,e.widget&&(e.updateWidgetProps(e.props),e.widget.render(t)))}})},t}(ue.Component),de=function(){return function(){}}(),pe=function(){return function(){}}(),he=r(6),ye=function(){function e(e){this.ajax=e}return e.prototype.init=function(){this.client=this.ajax.createClient(this.options)},e.prototype.get=function(e,t,r){var n=this;return this.createObservableRequest(function(){return n.client.get(e,t,r)})},e.prototype.post=function(e,t,r){var n=this;return this.createObservableRequest(function(){return n.client.post(e,t,r)})},e.prototype.put=function(e,t,r){var n=this;return this.createObservableRequest(function(){return n.client.put(e,t,r)})},e.prototype.patch=function(e,t,r){var n=this;return this.createObservableRequest(function(){return n.client.patch(e,t,r)})},e.prototype.del=function(e,t){var r=this;return this.createObservableRequest(function(){return r.client.del(e,t)})},e.prototype.createObservableRequest=function(e){return he.Observable.create(function(t){e().then(function(e){t.next(e)}).catch(function(e){t.error(e)}).then(function(){t.complete()})})},e=f([X,p(\"design:paramtypes\",[M])],e)}(),ge=function(){function e(e,t,r,n,o){var i=this;this.id=e,this.name=t,this.namespace=r,this.config=n,this.paramsProvider=o,this.id.widget=this.name.value,void 0!==this.defaultValues&&Object.keys(this.defaultValues).forEach(function(e){return i.setDefaultConfig(e,i.defaultValues[e])})}return e.prototype.getConfig=function(e){return void 0!==this.paramsProvider.props[e]?this.paramsProvider.props[e]:this.config.getConfig(this.configKeyOf(e))},e.prototype.configKeyOf=function(e){return this.config.createKey(this.configKeyFormat(e),this.id.value)},e.prototype.configKeyFormat=function(e){return[this.namespace.value,this.name.value,e].filter(function(e){return e&&e.length>0}).join(\"/\")},e.prototype.setConfig=function(e,t){this.config.setConfig(e,t)},e.prototype.setDefaultConfig=function(e,t){void 0===this.config?this.setDelayedDefaultConfig(e,t):this.config.setDefaultConfig(this.configKeyOf(e),t)},e.prototype.setDelayedDefaultConfig=function(e,t){void 0===this.defaultValues&&(this.defaultValues={}),this.defaultValues[e]=t},e=f([X,p(\"design:paramtypes\",[oe,ie,ae,R,pe])],e)}();var ve,me=function(e){return function(t,r){return t.setDefaultConfig(r,e.defaultValue),be(t,r)}},be=function(e,t){return Object.defineProperty(e,t,{get:function(){return this.getConfig(t)},enumerable:!0,configurable:!0}),e},we=function(){function e(e,t){this.localization=e,this.config=t,this.disableNetwork=!1,this.disableNetworkGlobal=this.config.getConfig(ce.DebugDisableNetwork,!1),this.showKeys=this.config.getConfig(ce.DebugShowKeys,!1)}return Object.defineProperty(e.prototype,\"defaultMessages\",{get:function(){return{}},enumerable:!0,configurable:!0}),e.prototype.createReducer=function(){var e=this;this.localization.disableNetwork(this.disableNetworkGlobal||this.disableNetwork),this.localization.loadMessagesOnce();var t=this.localization.createReducer(),r=t(void 0,{}),n=r.loaded?r:l({},r,{messages:this.defaultMessages[r.locale]});return this.localization.loadMessages.bind(this.localization)(!0),function(r,o){void 0===r&&(r=n);var i,a=t(r,o);return l({},a,{messages:e.showKeys?(i={},i[a.locale]={},i):l({},e.defaultMessages[a.locale],a.messages)})}},e=f([X,p(\"design:paramtypes\",[T,R])],e)}(),Le=Object.prototype.hasOwnProperty,Pe=function(e){return function(t){return function(t){return function(r){var n=Oe(r);return n.meta=l({},n.meta,{source:e.id.value}),e.notifyActionListener(n),t(r)}}}},Oe=function(e){var t=l({},e);return Le.call(t,\"data\")&&!Le.call(t,\"payload\")&&(t.payload=t.data,delete t.data),Le.call(t,\"meta\")||(t.meta={}),t},je=r(1),_e=r(7),Ee=function(){function e(e){this.store=e,this.store.createStore=this.createStore.bind(this)}return e.prototype.init=function(){},e.prototype.destroy=function(){},e.prototype.createStore=function(){var e=Object(_e.composeWithDevTools)({name:this.id.value});return Object(je.createStore)(this.reducer,e(je.applyMiddleware.apply(void 0,y(this.middlewares,[Pe(this.store)]))))},Object.defineProperty(e.prototype,\"id\",{get:function(){return this.store.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"listenToAll\",{get:function(){return this.store.listenToAll},set:function(e){this.store.listenToAll=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"middlewares\",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"getState\",{get:function(){return this.store.getState.bind(this.store)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"dispatch\",{get:function(){return this.store.dispatch.bind(this.store)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"subscribe\",{get:function(){return this.store.subscribe.bind(this.store)},enumerable:!0,configurable:!0}),e.prototype.notifyActionListener=function(e){},e.prototype.replaceReducer=function(){throw new Error(\"Use 'reducer' property instead!\")},e=f([X,p(\"design:paramtypes\",[G])],e)}(),Se=function(){function e(e){this.stream=e,this.subscriptions=[]}return e.prototype.subscribe=function(e,t){var r=this.stream.subscribe(e,t);return this.subscriptions.push(r),r},e.prototype.subscribeAll=function(e){var t=this.stream.subscribeAll(e);return this.subscriptions.push(t),t},e.prototype.subscribeError=function(e){var t=this.stream.subscribeError(e);return this.subscriptions.push(t),t},e.prototype.send=function(e,t){this.stream.send(e,t)},e.prototype.sendError=function(e,t,r){this.stream.sendError(e,t,r)},e.prototype.unsubscribe=function(){this.subscriptions.forEach(function(e){return e()}),this.subscriptions=[]},Object.defineProperty(e.prototype,\"errors\",{get:function(){var e=this;return{subscribe:function(t){return e.subscribeError(t)},send:function(t,r){return e.sendError(t,r)}}},enumerable:!0,configurable:!0}),e=f([X,p(\"design:paramtypes\",[j])],e)}(),Ce={BaseClient:ye,BaseConfig:ge,configProperty:function(e,t){return\"object\"==typeof e&&e instanceof ge?be(e,t||\"\"):me(\"object\"==typeof(r=e)&&1===Object.keys(r).length&&void 0!==r.defaultValue?e:{defaultValue:e});var r},BaseLocalization:we,BaseStore:Ee,BasePipe:Se,actionsToComputedPropertyName:function(e){return Object.keys(e).reduce(function(t,r){return l({},t,((n={})[r]=e[r].toString(),n));var n},{})}},Ie=function(e){function t(r){var n=e.call(this,r)||this;return n.state={hasError:!1},\"name\"in r&&(t.displayName=r.name),n}return u(t,e),t.prototype.componentDidCatch=function(e,t){this.setState({hasError:!0});var r=E.instance.getService(B.EventStream);e.componentStack=t.componentStack,r.sendError(g.REACT_BOUNDARY,e)},t.prototype.render=function(){if(this.state.hasError){if(!1===this.props.displayErrorMessage)return null;var e=this.props.errorMessage?this.props.errorMessage:\"{component failed}\";return ue.createElement(\"span\",null,e)}return this.props.children},t.displayName=\"ErrorBoundary\",t.contextTypes={store:a.object},t}(ue.Component),Me=r(2),Re=function(){function e(e){this._metadata=Reflect.getMetadata(J.MetadataKey,e.prototype)}return Object.defineProperty(e.prototype,\"provides\",{get:function(){return this.metadata.provides},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"withFactory\",{get:function(){return this.metadata.withFactory},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"metadata\",{get:function(){if(void 0===this._metadata)throw new ke;return this._metadata},enumerable:!0,configurable:!0}),e}(),ke=function(e){function t(){return e.call(this,t.Message)||this}return u(t,e),t.Message=\"Can't find Provide decorator in type.\",t}(Error),Ae=function(){function e(e){this._metadata=Reflect.getMetadata(q.MetadataKey,e)}return Object.defineProperty(e.prototype,\"target\",{get:function(){return this.metadata.target},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"propertyKey\",{get:function(){return this.metadata.propertyKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"metadata\",{get:function(){if(void 0===this._metadata)throw new De;return this._metadata},enumerable:!0,configurable:!0}),e.isFactory=function(t){try{return void 0!==e.readFactoryMetadata(t).target}catch(e){return!1}},e.readFactoryMetadata=function(t){return new e(t)},e}(),De=function(e){function t(){return e.call(this,t.Message)||this}return u(t,e),t.Message=\"Can't find factory decorator in type.\",t}(Error),Te=function(){function e(e){this._metadata=Reflect.getMetadata(V.MetadataKey,e)}return Object.defineProperty(e.prototype,\"metadata\",{get:function(){if(void 0===this._metadata)throw new xe;return this._metadata},enumerable:!0,configurable:!0}),e}(),xe=function(e){function t(){return e.call(this,t.Message)||this}return u(t,e),t.Message=\"Can't find injectWithFactory decorator in type.\",t}(Error),Fe=function(){function e(e){this.reader=Ae.isFactory(e)?new Ge(e):new ze(e)}return Object.defineProperty(e.prototype,\"dependencies\",{get:function(){return this.reader.dependencies},enumerable:!0,configurable:!0}),e}(),Ne=function(){function e(){}return Object.defineProperty(e.prototype,\"dependencies\",{get:function(){var e=this;return this.metadata.map(function(t,r){var n=e.findInjectWithFactoryMetadataAtIndex(r);return void 0!==n?n.factory:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"customFactories\",{get:function(){return this._customFactories||(this._customFactories=this.readCustomFactories())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"metadata\",{get:function(){return this._metadata||(this._metadata=this.readMetadata())},enumerable:!0,configurable:!0}),e}(),ze=function(e){function t(t){var r=e.call(this)||this;return r.constructor=t,r}return u(t,e),t.prototype.readMetadata=function(){var e=Reflect.getMetadata(\"design:paramtypes\",this.constructor);if(void 0===e)throw new We;return e},t.prototype.findInjectWithFactoryMetadataAtIndex=function(e){return this.customFactories.find(function(t){return t.parameterIndex===e})},t.prototype.readCustomFactories=function(){var e=new Te(this.constructor);try{return e.metadata}catch(e){return[]}},t}(Ne),We=function(e){function t(){return e.call(this,t.Message)||this}return u(t,e),t.Message=\"Can't find metadata information.\\nPossible cause: missing class decorators\",t}(Error),Ge=function(e){function t(t){var r=e.call(this)||this;return r.constructor=t,r}return u(t,e),t.prototype.readMetadata=function(){return Reflect.getMetadata(\"design:paramtypes\",this.factoryMetadata.target,this.factoryMetadata.propertyKey)},t.prototype.findInjectWithFactoryMetadataAtIndex=function(e){var t=this;return this.customFactories.find(function(r){return r.propertyKey===t.factoryMetadata.propertyKey&&r.parameterIndex===e})},Object.defineProperty(t.prototype,\"factoryMetadata\",{get:function(){return this._factoryMetadata||(this._factoryMetadata=new Ae(this.constructor))},enumerable:!0,configurable:!0}),t.prototype.readCustomFactories=function(){var e=new Te(this.factoryMetadata.target);try{return e.metadata}catch(e){return[]}},t}(Ne),Be=function(){function e(e,t){this.constructor=e,this._dependencies=t;var r=new Me.Inject;r.tokens=this.dependencies,r.tokens.length>0&&Object(Me.annotate)(this.factory,r),Object(Me.annotate)(this.factory,new Me.FactoryProvider)}return Object.defineProperty(e.prototype,\"factory\",{get:function(){return this._factory||(this._factory=Ae.isFactory(this.constructor)?e.createFactoryFunctionFromFactory(this.constructor):void 0!==this.readFactoryFromProvideMetadata()?e.createFactoryFunctionFromFactory(this.readFactoryFromProvideMetadata()):e.createFactoryFunctionFromConstructor(this.constructor))},enumerable:!0,configurable:!0}),e.prototype.readFactoryFromProvideMetadata=function(){try{return new Re(this.constructor).withFactory}catch(e){return}},Object.defineProperty(e.prototype,\"dependencies\",{get:function(){return this._dependencies||(this._dependencies=this.readDependenciesFromMetadata())},enumerable:!0,configurable:!0}),e.prototype.readDependenciesFromMetadata=function(){try{return this.dependenciesMetadataReader.dependencies}catch(e){return[]}},Object.defineProperty(e.prototype,\"dependenciesMetadataReader\",{get:function(){return new Fe(this.readFactoryFromProvideMetadata()||this.constructor)},enumerable:!0,configurable:!0}),e.createFactoryFunctionFromConstructor=function(t){return e.createFactoryFunction(t,function(e){return new e})},e.createFactoryFunctionFromFactory=function(t){return e.createFactoryFunction(t,function(e){return e()})},e.createFactoryFunction=function(e,t){return function(){var r=Array.prototype.slice.call(arguments),n=Function.prototype.bind.apply(e,y([null],r)),o=t(n);if(\"object\"==typeof o&&!Array.isArray(o)){var i=new Ke(o,r);i.overrideInit(),i.overrideDestroy()}return o}},e}(),Ke=function(){function e(e,t){void 0===t&&(t=[]),this.instance=e,this.dependencies=t}return e.prototype.overrideInit=function(){this.overrideInstaceMethod(\"init\")},e.prototype.overrideDestroy=function(){this.overrideInstaceMethod(\"destroy\")},e.prototype.overrideInstaceMethod=function(e){var t,r,n,o=this.instance[e]||new Function,i=(t=this.dependencies,function(e){t.forEach(function(t){var r=t[e];if(void 0!==r)try{r()}catch(e){}})});\"function\"==typeof o?this.instance[e]=(r=o.bind(this.instance),n=!1,function(){n||(n=!0,i(e),r())}):i(e)},e}(),qe=function(){function e(e){this.constructor=e,this.defaultFactory=new Be(this.constructor)}return Object.defineProperty(e.prototype,\"providers\",{get:function(){return y([e.provide(this.constructor,this.defaultFactory.factory)],this.tryReadFromProvideMetadata(),this.dependenciesProviders)},enumerable:!0,configurable:!0}),e.prototype.tryReadFromProvideMetadata=function(){try{var t=this.provideMetadataReader.provides;return[e.provide(t,new Be(this.constructor).factory,!0),e.provide(B.AsServiceName(t),new Be(function(e){return e},[t]).factory,!0)]}catch(e){return[]}},Object.defineProperty(e.prototype,\"provideMetadataReader\",{get:function(){return new Re(this.constructor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"dependenciesProviders\",{get:function(){var t=this.defaultFactory.dependencies.map(function(t){return new e(t).providers});return Array.prototype.concat.apply([],t)},enumerable:!0,configurable:!0}),e.provide=function(e,t,r){void 0===r&&(r=!1);var n=t,o=new Me.Provide(e);return o.hasPriority=r,Object(Me.annotate)(n,o),n},e}(),Ue=function(){function e(){this.providers=new Map}return e.prototype.appendProviders=function(e){var t=this;return e.map(function(e){return new Ve(e)}).forEach(function(e){t.providers.has(e.provides)&&!e.hasPriority||t.providers.set(e.provides,e.provider)}),this},e.prototype.removeLowPriorityProvidersFrom=function(e){var t=this;return e.map(function(e){return new Ve(e)}).forEach(function(e){t.providers.has(e.provides)&&(new Ve(t.providers.get(e.provides)).hasPriority||t.providers.delete(e.provides))}),this},e.prototype.toArray=function(){var e=[];return this.providers.forEach(function(t){return e.push(t)}),e},e}(),Ve=function(){function e(e){this.provider=e,this.provideAnnotation=this.provider.annotations.find(function(e){return void 0!==e.token})}return Object.defineProperty(e.prototype,\"provides\",{get:function(){return this.provideAnnotation.token},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"hasPriority\",{get:function(){return Boolean(this.provideAnnotation.hasPriority)},enumerable:!0,configurable:!0}),e}(),Xe=function(){function e(e){this.defaultOptions={method:\"GET\",headers:{},body:\"\",mode:\"cors\",credentials:\"omit\",cache:\"default\",redirect:\"follow\",referrer:\"about:client\",referrerPolicy:\"\",integrity:\"\"},this.defaultCustomOptions={url:\"\",dataType:\"json\"},this.options=l({},this.defaultOptions),this.customOptions=l({},this.defaultCustomOptions);var t=this.processOptions(e),r=t.initOptions,n=t.customOptions;this.options=r,this.customOptions=n,this.options.body=\"\"}return e.prototype.processOptions=function(e){var t=l({},this.options);Object.keys(t).forEach(function(r){e[r]&&(t[r]=e[r])}),\"boolean\"==typeof e.cache&&(t.cache=e.cache?\"default\":\"reload\"),\"reload\"===t.cache&&(t.headers=l({},t.headers,{\"Cache-Control\":\"no-cache, no-store, must-revalidate\",Pragma:\"no-cache\",Expires:0})),\"boolean\"==typeof e.credentials&&(t.credentials=e.credentials?\"include\":\"omit\"),void 0===e.body&&delete t.body;var r=l({},this.customOptions);return Object.keys(r).forEach(function(t){e[t]&&(r[t]=e[t])}),{initOptions:t,customOptions:r}},e.prototype.mergeOptions=function(){for(var e=[],t=0;t-1?n.indexOf(\"?\")===n.length-1?o:\"&\"+o:\"?\"+o},e.prototype.getOptions=function(){return l({},this.options,this.customOptions)},e.prototype.setOptions=function(e){var t=this.mergeOptions(e),r=this.processOptions(t),n=r.initOptions,o=r.customOptions;this.options=n,this.customOptions=o},e}(),Ye=function(){function e(e){this.stream=e}return e.prototype.get=function(e,t,r){return this.createClient(r).get(e,t)},e.prototype.post=function(e,t,r){return this.createClient(r).post(e,t)},e.prototype.head=function(e,t){return this.createClient(t).head(e)},e.prototype.put=function(e,t,r){return this.createClient(r).put(e,t)},e.prototype.patch=function(e,t,r){return this.createClient(r).patch(e,t)},e.prototype.del=function(e,t){return this.createClient(t).del(e)},e.prototype.createClient=function(e){return void 0===e&&(e={}),new Je(e,this.stream)},e=f([J(M),p(\"design:paramtypes\",[j])],e)}(),Je=function(){function e(e,t){var r=this;this.stream=t,this.buildRequest=function(e,t){var n=r.config.buildRequestConfig(t),o=n.initOptions,i=n.customOptions;return new Promise(function(n,a){var s,c=!1;t.timeout&&t.timeout>0&&(s=setTimeout(function(){c=!0;var e=\"Request timed out after \"+Math.floor(t.timeout/1e3)+\"s\";r.stream.sendError(g.AJAX,e),a({error:e})},t.timeout)),fetch(r.config.buildRequestPath(e,i),o).then(function(e){clearTimeout(s),c||(e.ok?r.processResponse(e,{resolve:n,reject:a},\"resolve\",i):(r.stream.sendError(g.AJAX,e),r.processResponse(e,{resolve:n,reject:a},\"reject\",i)))},function(e){c||a({error:e})})})},this.config=new Xe(e),this.stream||(this.stream={sendError:function(){}})}return e.prototype.get=function(e,t,r){void 0===r&&(r={});var n=this.config.mergeOptions(r,{method:\"GET\",body:void 0});return this.buildRequest(e+this.config.buildQueryParameters(n.url||\"\",e,t),n)},e.prototype.post=function(e,t,r){void 0===r&&(r={});var n=this.config.mergeOptions(r,{method:\"POST\"});return n.body=this.prepBodyData(n,t),this.buildRequest(e,n)},e.prototype.head=function(e,t){void 0===t&&(t={});var r=this.config.mergeOptions(t,{method:\"HEAD\",body:void 0});return this.buildRequest(e,r)},e.prototype.put=function(e,t,r){void 0===r&&(r={});var n=this.config.mergeOptions(r,{method:\"PUT\"});return n.body=this.prepBodyData(n,t),this.buildRequest(e,n)},e.prototype.patch=function(e,t,r){void 0===r&&(r={});var n=this.config.mergeOptions(r,{method:\"PATCH\"});return n.body=this.prepBodyData(n,t),this.buildRequest(e,n)},e.prototype.del=function(e,t){void 0===t&&(t={});var r=this.config.mergeOptions(t,{method:\"DELETE\",body:void 0});return this.buildRequest(e,r)},e.prototype.toAjaxResponse=function(e){var t=e,r=t.headers,n=t.redirected,o=t.status,i=t.statusText,a=t.type,s=t.url;return{headers:Object.keys(r).reduce(function(e,t){return l({},e,((n={})[t]=r[t],n));var n},{}),redirected:n,status:o,statusText:i,type:a,url:s,dataType:\"\",data:void 0}},e.prototype.getResponseType=function(e,t,r){void 0===e&&(e={}),void 0===t&&(t={}),void 0===r&&(r=!1);var n=\"\";switch(n=(n=!r&&t.dataType?t.dataType:e[\"Content-Type\"]||e[\"content-type\"]||\"\").toLowerCase()){case\"application/json\":case\"json\":n=\"json\";break;case\"text/plain\":case\"text\":n=\"text\";break;case\"blob\":n=\"blob\";break;case\"binary\":n=\"binary\";break;case\"stream\":n=\"stream\";break;default:n=\"text\"}return n},e.prototype.processResponse=function(e,t,r,n){var o=this.toAjaxResponse(e),i=t[r],a=this.getResponseType(o.headers,n,\"reject\"===r);if(1223!==e.status)if(\"reject\"!==r)if(o.dataType=a,204!==e.status)switch(a){case\"stream\":i(l({},o,{data:e.body}));break;case\"json\":e.json().then(function(e){return i(l({},o,{data:e}))},function(r){e.text().then(function(e){return t.reject(l({},o,{dataType:\"text\",data:e}))},function(e){return t.reject(l({},o,{data:e}))})});break;case\"blob\":e.blob().then(function(e){return i(l({},o,{data:e}))},function(e){return t.reject(l({},o,{dataType:\"error\",data:e}))});break;case\"binary\":e.arrayBuffer().then(function(e){return i(l({},o,{data:e}))},function(e){return t.reject(l({},o,{dataType:\"error\",data:e}))});break;default:e.text().then(function(e){return i(l({},o,{data:e}))},function(e){return t.reject(l({},o,{dataType:\"error\",data:e}))})}else i(l({},o,{data:\"\"}));else e.text().then(function(e){return i(l({},o,{dataType:\"error\",data:e}))},function(e){return i(l({},o,{dataType:\"error\",data:e}))});else t.resolve(l({},o,{data:\"\",status:204,statusText:\"No Content\",dataType:\"text\"}))},e.prototype.prepBodyData=function(e,t){var r=e.headers||{};return\"application/json\"===Object.keys(r).reduce(function(e,t){return/^content-type$/i.test(t)?r[t]:e},\"\")?JSON.stringify(t):t},e.prototype.setOptions=function(e){this.config.setOptions(e)},e.prototype.getOptions=function(){return this.config.getOptions()},e}(),He=function(){function e(e){this.emitter=new v.EventEmitter,this.store=e.createStore(this.id)}return Object.defineProperty(e.prototype,\"id\",{get:function(){return\"DefaultConfigServices\"},enumerable:!0,configurable:!0}),e.prototype.init=function(){var e=this;this.store.init(),this.store.replaceReducer(function(t,r){switch(void 0===t&&(t={configs:{},defaultConfigs:{}}),r.type){case k.SET_CONFIG:return e.validateConfig(r.payload),l({},t,{configs:l({},t.configs,e.emitChangesAsync(t.configs,(n={},n[r.payload.key]=r.payload.value,n)))});case k.SET_DEFAULT_CONFIG:return e.validateConfig(r.payload),l({},t,{defaultConfigs:l({},t.defaultConfigs,(o={},o[r.payload.key]=r.payload.value,o))});default:return t}var n,o})},e.prototype.validateConfig=function(e){if(e.key===z.SeverityLevel&&!(e.value in I))throw new Error(\"Invalid log level.\")},e.prototype.splitKey=function(e){var t=e.split(\"@\");return{fullKey:e,key:t[0],target:t[1]}},e.prototype.emitChangesAsync=function(e,t){var r=this;return setTimeout(function(){r.emitChanges(e,t)},0),t},e.prototype.emitChanges=function(e,t){for(var r in t)t.hasOwnProperty(r)&&this.emitter.emit(r,{oldValue:e[r],newValue:t[r]});return t},e.prototype.createKey=function(e,t){return t?e.concat(\"@\",t):e},e.prototype.setDefaultConfig=function(e,t){this.dispatch(e,t,k.SET_DEFAULT_CONFIG)},e.prototype.setConfig=function(e,t){this.dispatch(e,t,k.SET_CONFIG)},e.prototype.dispatch=function(e,t,r){this.store.dispatch({type:r,payload:{key:e,value:t}})},e.prototype.getConfig=function(e,t){void 0===t&&(t=void 0);var r=this.splitKey(e),n=this.getConfigState()[r.fullKey]||this.getConfigState()[r.key]||this.getDefaultConfigState()[r.fullKey]||this.getDefaultConfigState()[r.key];return void 0===n?t:n},e.prototype.getConfigState=function(){return this.store.getState().configs},e.prototype.getDefaultConfigState=function(){return this.store.getState().defaultConfigs},e.prototype.onChange=function(e,t){var r=this;return this.emitter.on(e,function(e){return t(e.oldValue,e.newValue)}),{dispose:function(){r.emitter.removeListener(e,t)}}},e=f([J(R),p(\"design:paramtypes\",[W])],e)}(),Ze=function(){function e(){}return e.initLocaleData=function(e){e in this.cache?this.cache[e]=l({},this.cache[e],{state:ve.PENGING}):this.cache[e]={locale:{},state:ve.PENGING,usedBy:[]}},e.setLocaleData=function(e,t){var r=l({},this.cache[e].locale,t);this.cache[e]=l({},this.cache[e],{locale:r,state:ve.READY})},e.tryUseLocaleData=function(e){var t=this.getLocaleData(e);t&&t.state===ve.READY&&this.useLocaleData(e)},e.useLocaleData=function(e){var t=this.normalizeId(e),r=this.getLocaleData(e);r&&(r.usedBy=Qe(y(r.usedBy,[t.id])),this.cache[t.widget]=r,this.runOnReadyCallbacks(t.widget))},e.addCallback=function(e,t){var r=this.normalizeId(e);if(!this.callbackExists(e)){var n,o=r.widget,i=((n={})[r.id]=t,n);o in this.callbacks?this.callbacks[o].push(i):this.callbacks[o]=[i]}},e.removeCallback=function(e){var t=this.normalizeId(e),r=t.widget;r in this.callbacks&&(this.callbacks[r]=this.callbacks[r].filter(function(e){return Object.keys(e)[0]!==t.id}))},e.runOnReadyCallbacks=function(e){var t=this;if(e in this.callbacks){var r=[];this.callbacks[e].forEach(function(e){e[Object.keys(e)[0]]()||r.push(e[Object.keys(e)[0]])}),0===r.length?delete this.callbacks[e]:this.callbacks[e]=r,Object.keys(this.mappings).reduce(function(r,n){return t.mappings[n].indexOf(e)>-1?y(r,[n]):[]},[]).forEach(function(e){return t.runOnReadyCallbacks(e)})}},e.callbackExists=function(e){for(var t=this.normalizeId(e).id,r=Object.keys(this.callbacks),n=0;n0});r.filter(function(e){return n.indexOf(e)<0}).forEach(function(e){return delete t.cache[e]})},e.addMapping=function(e){var t=this;Object.keys(e).forEach(function(r){var n=Array.isArray(e[r])?e[r]:[e[r]];r in t.mappings?t.mappings[r]=Qe(y(t.mappings[r],n)):t.mappings[r]=n})},e.getMappings=function(e){var t=this.normalizeId(e);return t.widget in this.mappings?this.mappings[t.widget]:[]},e.normalizeId=function(e){return\"string\"==typeof e?{id:\"\",widget:e}:{id:e.value,widget:e.widget}},e.isMapped=function(e){return this.normalizeId(e).widget in this.mappings},e.cache={},e.callbacks={},e.mappings={},e}();!function(e){e[e.PENGING=1]=\"PENGING\",e[e.READY=2]=\"READY\",e[e.FAILED=3]=\"FAILED\"}(ve||(ve={}));var Qe=function(e){return e.filter(function(e,t,r){return r.indexOf(e)===t})},$e=function(e){function t(t,r,n,o,i,a){var s=e.call(this)||this;return s.widgetStore=n,s.localizationServices=o,s.logger=i,s.stream=a,s.skipLoadMessages=!1,s.networkDisabled=!1,s.fullPath=r?r+\"/\"+t:t,s.widgetId=s.widgetStore.id,s}return u(t,e),r=t,t.create=function(e,t,r,n){return e.createChildLocalization(r.value,t,n&&n.value)},Object.defineProperty(t.prototype,\"messagesDictionary\",{get:function(){var e=this.localizationServices.cache.getLocaleData(this.widgetId);return e&&e.state===ve.READY?e.locale:{en:{},fr:{}}},enumerable:!0,configurable:!0}),t.prototype.dispatchLocaleChanged=function(){var e=this.getState().locale;this.localizationServices.cache.isLocaleDataReady(this.widgetId,e)||this.loadMessages(!0),this.widgetStore.dispatch(L())},t.prototype.dispatchMessagesLoaded=function(e){var t=this;if(this.widgetStore.initialized){var r=e?O(e):O();this.widgetStore.dispatch(r)}else setTimeout(function(){return t.dispatchMessagesLoaded(e)})},t.prototype.createReducer=function(){var e=this;return this.loadMessages(),function(t,r){switch(void 0===t&&(t=e.getState()),r.type){case O.toString():case L.toString():return e.getState();case P.toString():return e.loadMessages(),t;default:return t}}},t.prototype.disableNetwork=function(e){void 0===e&&(e=!0),this.networkDisabled=e},t.prototype.loadMessagesOnce=function(){this.skipLoadMessages=!0},t.prototype.loadMessages=function(e){var t=this;if(void 0===e&&(e=!1),!(this.networkDisabled||!e&&this.skipLoadMessages)){var r=this.getState().locale,n=this.localizationServices.cache;if(!n.loadingFailed(this.widgetId)){var o=function(){if(n.loadingFailed(t.widgetId)){var e={message:\"failed to pre-load locale data\",id:t.widgetId.value};t.dispatchMessagesLoaded(new ne({error:e,widget:t.widgetId.widget})),t.logger.error(e),t.stream.sendError(g.LOCALIZATION,e)}else t.dispatchMessagesLoaded();return!0};n.isFinished(this.widgetId,r)?o():(n.addCallback(this.widgetId,o),n.isMapped(this.widgetId)||(n.isPending(this.widgetId)?n.tryUseLocaleData(this.widgetId):(n.initLocaleData(this.widgetId.widget),this.localizationServices.loadMessages(this.fullPath).then(function(e){var r=e.data;n.setLocaleData(t.widgetId.widget,r),n.useLocaleData(t.widgetId)}).catch(function(e){var r={message:\"failed to load locale data\",id:t.widgetId.value,response:e};n.setPermanentlyFailed(t.widgetId),n.removeCallback(t.widgetId),t.dispatchMessagesLoaded(new ne(r)),t.logger.error(r),t.stream.sendError(g.LOCALIZATION,r)}))))}}},t.prototype.getState=function(){var e=this.localizationServices.locale,t=this.localizationServices.fullLocale,r=this.messagesDictionary[e]||{};return{locale:e,fullLocale:t,messages:r,formats:this.localizationServices.formats[e],loaded:Object.keys(r).length>0}},t.prototype.destroy=function(){this.localizationServices.cache.remove(this.widgetId),this.localizationServices.unsubscribe(this)},f([q,p(\"design:type\",Function),p(\"design:paramtypes\",[x,G,ie,ae]),p(\"design:returntype\",void 0)],t,\"create\",null),t=r=f([J(T,{withFactory:r.create}),p(\"design:paramtypes\",[String,String,G,it,N,j])],t);var r}(T);function et(e,t,r){return void 0===r&&(r={}),le.render(ue.createElement(fe,l({},r,{widget:e})),t)}function tt(e){le.unmountComponentAtNode(e)}var rt=function(){function e(){}return e.load=function(e,t){var r=this;void 0===t&&(t=function(){});var n=E.instance.getService(B.Localization),o=[];Object.keys(e).forEach(function(t){var i=e[t];o.push(new Promise(function(e){n.loadMessages(i).then(function(n){var o,a;n.data?(Ze.setLocaleData(t,n.data),Ze.runOnReadyCallbacks(t),t in r.widgets&&(r.widgets[t].forEach(function(e){return e.tryDelayedRender()}),delete r.widgets[t]),e(((o={})[t]=n.data,o))):e(l(((a={})[\"error\"+t]={widget:t,path:i},a),n.error))},function(r){var n;e(l(((n={})[\"error\"+t]={widget:t,path:i},n),r.error))})}))}),Promise.all(o).then(function(e){var r=[];t(e.reduce(function(e,t){var n=Object.keys(t)[0];return n.startsWith(\"error\")?r.push(t[n]):e[n]=t[n],e},{}),r)})},e.localize=function(e){var t=this,r=e.widgets,n=e.messages;return Object.keys(n).forEach(function(e){Ze.initLocaleData(e)}),r.forEach(function(e){var r=h(y(e),3),n=r[0],o=r[1],i=r[2],a=void 0===i?{}:i;a.localizationConfig=l({},a.localizationConfig||{},{waitBeforeRender:!0});var s=et(n,o,a);n in t.widgets?t.widgets[n]=y(t.widgets[n],[s]):t.widgets[n]=[s]}),new Promise(function(e,r){t.load(n,function(n,o){var i;o.length?(o.forEach(function(e){var t=e.widget;return Ze.setPermanentlyFailed(t)}),i=function(){return r(o)}):i=function(){return e(n)},Object.keys(t.widgets).forEach(function(e){return t.widgets[e].forEach(function(t){t.tryDelayedRender(100,10,function(){return Ze.runOnReadyCallbacks(e)})})}),t.widgets={},i()})})},e.widgets={},e}(),nt=r(13),ot=r.n(nt),it=function(){function e(e,t,r,n,o){this.ajax=e,this.config=t,this.loggerServices=n,this.stream=o,this.localizedWidgets=[],this.disableNetwork=!1,this.brand=\"\",this.baseUrl=\"\",this.timeout=-1,this.store=r.createStore(this.id)}return Object.defineProperty(e.prototype,\"id\",{get:function(){return\"DefaultLocalizationServices\"},enumerable:!0,configurable:!0}),e.prototype.init=function(){var e=this;this.disableNetwork=this.config.getConfig(ce.DebugDisableNetwork,!1),this.brand=this.config.getConfig(ce.Brand,\"\"),this.timeout=this.config.getConfig(ce.Timeout,-1),this.store.init(),this.disableNetwork||(this.baseUrl=this.config.getConfig(ce.LocalizationServicesPath,\"\"),this.client=this.ajax.createClient({cache:\"default\"})),this.store.listenToAll=!0;var t=this.config.getConfig(ce.DefaultLocale)||\"en\";this.store.replaceReducer(function(e,r){switch(void 0===e&&(e={locale:t}),r.type){case w.toString():return t=l({},e,{locale:r.payload});default:return e}}),this.store.subscribe(function(){var r=e.store.getState();r.locale!==t&&(t=r.locale,e.localizedWidgets.forEach(function(e){return e.dispatchLocaleChanged()}))})},Object.defineProperty(e.prototype,\"locale\",{get:function(){return this.store.getState().locale},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"fullLocale\",{get:function(){return this.locale+\"-CA\"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"formats\",{get:function(){return ot.a},enumerable:!0,configurable:!0}),e.prototype.createChildLocalization=function(e,t,r){var n=new $e(e,r,t,this,this.loggerServices.createLogger(B.Localization,\"@widget=\"+e,\"@namespace=\"+r),this.stream);return this.localizedWidgets=y(this.localizedWidgets,[n]),n},e.prototype.unsubscribe=function(e){this.localizedWidgets=this.localizedWidgets.filter(function(t){return t!==e})},e.prototype.loadMessages=function(e){if(this.disableNetwork)return Promise.resolve({data:{en:{},fr:{}}});var t={},r=this.baseUrl,n=\"\";/\\{WIDGET\\}/.test(r)?r=r.replace(/\\{WIDGET\\}/g,e):n=(r.endsWith(\"/\")?\"\":\"/\")+e,/\\{BRAND\\}/.test(r)?r=r.replace(/\\{BRAND\\}/g,this.brand):\"\"!==this.brand&&(t=l({},t,{brand:this.brand}));var o={url:r,headers:{\"Accept-Language\":this.locale}};return this.timeout>0&&(o.timeout=this.timeout),this.client.get(n,Object.keys(t).length>0?t:null,o)},e.prototype.setLocale=function(e){this.store.dispatch(w(e))},Object.defineProperty(e.prototype,\"cache\",{get:function(){return Ze},enumerable:!0,configurable:!0}),e.prototype.getLocalizedString=function(e,t,r){void 0===r&&(r=this.store.getState().locale);var n=this.cache.getLocaleData(e);return n&&n.state===ve.READY&&r in n.locale&&t in n.locale[r]?n.locale[r][t]:\"\"},e.prototype.addLocaleDataMapping=function(e){Ze.addMapping(e)},e.prototype.preloadLocaleData=function(e,t){return void 0===t&&(t=[]),rt.localize({messages:e,widgets:t})},e=f([J(x),p(\"design:paramtypes\",[M,R,W,F,j])],e)}(),at=function(){function e(e,t){this.config=e,this.context=t}return Object.defineProperty(e.prototype,\"severityLevel\",{get:function(){return this.config.getConfig(this.severityLevelConfigKey)||I.None},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"severityLevelConfigKey\",{get:function(){return this.config.createKey(z.SeverityLevel,this.context)},enumerable:!0,configurable:!0}),e}(),st=function(e){function t(t,r,n){var o=e.call(this)||this;return o.context=t,o.config=r,o.labels=n,o}return u(t,e),r=t,t.create=function(e,t,r,n){return e.createLogger(r.value,\"@id=\"+t.value,\"@namespace=\"+(n&&n.value))},t.prototype.debug=function(e){for(var t=[],r=1;r=0},e}(),ht=function(){function e(e,t){this.config=e,this.logger=t,this.registry={}}return e.prototype.init=function(){this.registerStaticModules()},e.prototype.reset=function(){this.registry={},this.registerStaticModules()},e.prototype.load=function(e){return Promise.resolve(void 0)},e.prototype.registerStaticModules=function(){var e=this,t=this.config.getConfig(se.StaticWidgetMappings);Object.keys(t).forEach(function(r){e.registerStaticModule(r,t[r])})},e.prototype.registerStaticModule=function(e,t){var r,n;this.registry[e]=l({},{namespace:(n=r=t,void 0!==n.namespace?r.namespace:void 0),factory:function(e){return\"function\"==typeof e}(r)?r:function(e){return void 0!==e.factory}(r)?r.factory:void 0,url:function(e){return\"string\"==typeof e}(r)?r:\"function\"!=typeof r&&r.url?r.url:void 0},this.registry[e])},e=f([J(D),p(\"design:paramtypes\",[R,N])],e)}();var yt=function(){function e(e,t,r,n){this.moduleId=e,this.resolver=t,this.communicator=r,this.registry=n}return e.prototype.load=function(){var e=this;return new Promise(function(t){e.communicator.get(e.moduleId,e.resolvedUrl,t)})},Object.defineProperty(e.prototype,\"resolvedUrl\",{get:function(){if(void 0!==this.moduleDefinitionUrl)return this.moduleDefinitionUrl;var e=this.resolver.module(this.moduleId);return this.resolver.url(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"moduleDefinitionUrl\",{get:function(){return this.registry[this.moduleId]&&this.registry[this.moduleId].url},enumerable:!0,configurable:!0}),e}(),gt=function(){function e(e,t,r){this.moduleId=e,this.registry=t,this.loader=r}return e.prototype.resolve=function(){var e=this;return new Promise(function(t){void 0!==e.factory?Promise.resolve(e.factory.call(null)).then(t):e.isGlobalScript?t(e.globalScript):e.loader.load().then(t)})},Object.defineProperty(e.prototype,\"factory\",{get:function(){return this.registry[this.moduleId]&&this.registry[this.moduleId].factory},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"isGlobalScript\",{get:function(){return void 0!==this.globalScript},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"globalScript\",{get:function(){return s.window[this.moduleId]||s.window[this.moduleIdAsGlobalVar]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"moduleIdAsGlobalVar\",{get:function(){return r(14)(this.moduleId)},enumerable:!0,configurable:!0}),e}(),vt=function(){function e(e,t){this.config=e,this.moduleId=t}return Object.defineProperty(e.prototype,\"widgetBundle\",{get:function(){return this.config.getConfig(se.WidgetBundleName)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"versionDelimiter\",{get:function(){return this.config.getConfig(se.VersionDelimiter)},enumerable:!0,configurable:!0}),e.prototype.resolve=function(){return this.resolveModulePath()},e.prototype.resolveModulePath=function(){return this.resolveBaseModulePath().concat(\"/\",this.widgetBundle)},e.prototype.resolveBaseModulePath=function(){return this.hasTargetVersion()?this.module().concat(\"/\",this.version()):this.module()},e.prototype.hasTargetVersion=function(){return void 0!==this.version()},e.prototype.version=function(){return this.moduleIdParts[1]},e.prototype.module=function(){return this.moduleIdParts[0]},Object.defineProperty(e.prototype,\"moduleIdParts\",{get:function(){return this.moduleId.split(this.versionDelimiter)},enumerable:!0,configurable:!0}),e}(),mt=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.useRequireJs=void 0!==s.window.requirejs,n}return u(t,e),r=t,t.createLogger=function(e){return e.createLogger(B.Loader)},Object.defineProperty(t.prototype,\"inject\",{get:function(){return this._inject||(this._inject=Inject.createContext().Inject)},enumerable:!0,configurable:!0}),t.prototype.init=function(){var t=this;e.prototype.init.call(this),this.useRequireJs||(this.inject.setModuleRoot(this.config.getConfig(se.RegistryPath)),this.inject.addModuleRule(/.*/,function(e){return void 0!==(t.registry[e]&&t.registry[e].factory)?e:new vt(t.config,e).resolve()}),this.inject.addFetchRule(/.*/,function(e,r,n,o,i){var a=i.moduleId;new gt(a,t.registry,new yt(a,n,o,t.registry)).resolve().then(function(t){e(null,t)})})),this.config.setDefaultConfig(se.VersionDelimiter,\"@\"),this.config.setDefaultConfig(se.WidgetBundleName,\"widget\"),this.useRequireJs||this.config.onChange(se.RegistryPath,function(e,r){return t.inject.setModuleRoot(r)})},t.prototype.reset=function(){e.prototype.reset.call(this),this.useRequireJs||this._inject.reset()},t.prototype.load=function(e){var t=this,r=this.registry[e]||void 0;return this.useRequireJs&&r&&s.window.define(e,[],function(){return(r.factory||function(){})()}),new Promise(function(n,o){(t.useRequireJs?s.window.require:t.inject.require)([e],function(o){t.logger.info('INFO - Widget loaded: \"'+e+'\"');var i=o.default||o,a=r&&r.namespace;void 0!==a&&(i.prototype=l({},i.prototype,{namespace:a})),n(i)})})},f([q,p(\"design:type\",Function),p(\"design:paramtypes\",[F]),p(\"design:returntype\",void 0)],t,\"createLogger\",null),t=r=f([J(D),d(1,V(r.createLogger)),p(\"design:paramtypes\",[R,N])],t);var r}(ht),bt=function(){function e(){var e=this;this.executeCallback=function(t,r,n){try{r.call(null,t)}catch(t){void 0!==n?n.call(null,t):e.sendError(g.STREAM,t)}},this.subscribeAll=function(t){var r=e.subject.subscribe(function(r){return e.executeCallback(r,t)}),n=e.errorStream.subscribe(function(r){return e.executeCallback(r,t)});return function(){r.unsubscribe(),n.unsubscribe()}}}return e.prototype.init=function(){this.subject=new he.Subject,this.errorStream=new he.ReplaySubject(10)},e.prototype.subscribeToAllMain=function(e){var t=this;return this.subject.subscribe(function(r){return t.executeCallback(r,e)}).unsubscribe},e.prototype.subscribe=function(e,t){var r=this;if(\"function\"==typeof e)return this.subscribeToAllMain(e);var n=\"string\"==typeof e?((i={})[e]=t||function(){},i):e,o=Object.keys(n);if(0===o.length)return function(){};var i,a=[];return o.forEach(function(e){var t=r.subject.filter(function(t){return t.type===e}).subscribe(function(e){return r.executeCallback(e,n[e.type])});a.push(t)}),function(){return a.forEach(function(e){return e.unsubscribe()})}},e.prototype.subscribeError=function(e){var t=this;return this.errorStream.subscribe(function(r){return t.executeCallback(r,e,function(e){0})}).unsubscribe},e.prototype.send=function(e,t){void 0!==t?this.subject.next({type:e,payload:t}):this.subject.next({type:e})},e.prototype.sendError=function(e,t,r){var n;e instanceof Error?n={type:g.GENERIC,payload:{error:e},error:!0}:(n={type:e,error:!0},void 0!==t&&(n.payload={error:t})),r&&(n.payload=n.payload?l({},n.payload,{widget:r}):{widget:r}),this.errorStream.next(n)},Object.defineProperty(e.prototype,\"errors\",{get:function(){var e=this;return{subscribe:function(t){return e.subscribeError(t)},send:function(t,r){return e.sendError(t,r)}}},enumerable:!0,configurable:!0}),e.prototype.unsubscribe=function(){this.subject.unsubscribe(),this.errorStream.unsubscribe()},e.prototype.destroy=function(){},e=f([J(j)],e)}(),wt=(new Ue).appendProviders(new qe(bt).providers).appendProviders(new qe(Ye).providers).appendProviders(new qe(He).providers).appendProviders(new qe(it).providers).appendProviders(new qe(ct).providers).appendProviders(new qe(ut).providers).appendProviders(new qe(dt).providers).appendProviders(new qe(mt).providers).toArray(),Lt=(new Ue).appendProviders(new qe(oe).providers).appendProviders(new qe(ae).providers).appendProviders(new qe(st).providers).appendProviders(new qe(ft).providers).appendProviders(new qe($e).providers).removeLowPriorityProvidersFrom(wt).toArray(),Pt=function(){function e(e,t,r){this.globalInjector=e,this.widgetName=t,this.widgetConstructor=r}return e.prototype.createWidgetInstance=function(){return this.instance=this.injector.get(this.widgetConstructor),this.instance},Object.defineProperty(e.prototype,\"injector\",{get:function(){return this._injector||(this._injector=this.globalInjector.createChild(this.providers))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"providers\",{get:function(){var e=this;return(new Ue).appendProviders(Lt).appendProviders([qe.provide(ie,function(){return new ie(e.widgetName)},!0),qe.provide($,function(){return e.widgetConstructor},!0),qe.provide(pe,new Be(function(t){return t.createParamsProvider(function(){return e.instance})},[de]).factory,!0)]).appendProviders(new qe(this.widgetConstructor).providers).removeLowPriorityProvidersFrom(wt).toArray()},enumerable:!0,configurable:!0}),e}(),Ot=function(){function e(e){this.injector=e}return e.prototype.createInstance=function(e,t){return new Pt(this.injector,e,t).createWidgetInstance()},e}(),jt=r(15),_t=function(e){function t(t){var r=e.call(this)||this;return r.interceptors=new Map,r.baseinjector=r.injector=function(e){var t=new Me.Injector((new Ue).appendProviders(wt).appendProviders(new qe(e).providers).toArray());return t.createChild(Et(t))}(t),r}return u(t,e),Object.defineProperty(t.prototype,\"di\",{get:function(){return this.injector.get(A)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"loader\",{get:function(){return this.injector.get(D)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"store\",{get:function(){return this.injector.get(W)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"stream\",{get:function(){return this.injector.get(j)},enumerable:!0,configurable:!0}),t.prototype.getService=function(e){return this.injector.get(e)},t.prototype.addServiceInterceptor=function(e,t,r){var n=this,o=Array.isArray(t)?t:[\"*\"],i=r||t;return o.forEach(function(t){return n.appendInterceptor(e,t,i)}),this.rebuildInjectorWithInterceptors(),function(){o.forEach(function(t){return n.getMembersInterceptors(e).set(t,n.getInterceptors(e,t).filter(function(e){return e!==i}))}),n.rebuildInjectorWithInterceptors()}},t.prototype.appendInterceptor=function(e,t,r){this.interceptors.set(e,this.createMemberInterceptorMap(e,t,r))},t.prototype.createMemberInterceptorMap=function(e,t,r){return this.getMembersInterceptors(e).set(t,y(this.getInterceptors(e,t),[r]))},t.prototype.getInterceptors=function(e,t){return this.getMembersInterceptors(e).get(t)||[]},t.prototype.getMembersInterceptors=function(e){return this.interceptors.get(e)||new Map},t.prototype.rebuildInjectorWithInterceptors=function(){var e=this,t=[];this.interceptors.forEach(function(r,n){t=y(e.createProxyBindings(n,r))}),this.injector=this.injector.createChild(t),this.injector=this.injector.createChild(y(Et(this.injector)))},t.prototype.createProxyBindings=function(e,t){var r=new(void 0!==jt?jt:Scarlet),n=this.baseinjector.get(e);return t.forEach(function(e,t){n=e.reduce(function(e,t){return e.using(t)},r.intercept(Object.create(n),\"*\"===t?void 0:t)).proxy()}),St(e,function(){return n})},t}(E);function Et(e){return St(B.Di,new Be(function(){return new Ot(e)}).factory)}function St(e,t){return[qe.provide(e,t,!0),qe.provide(function(e){switch(e){case B.Ajax:return M;case B.Store:return W;case B.Config:return R;case B.Localization:return x;case B.Loader:return D;case B.Di:return A;case B.Logger:return F;case B.EventStream:return j;default:return null}}(e),new Be(function(e){return e},[e]).factory,!0)]}var Ct=s.window,It=\"function\"==typeof Ct.bwtkEventListener?Ct.bwtkEventListener:function(){},Mt=r(16),Rt=r(17),kt=this,At=function(){function e(e){this.config=e,this.optionKeys={localization:{webServicesPath:ce.LocalizationServicesPath,defaultLocale:ce.DefaultLocale,brand:ce.Brand,timeout:ce.Timeout,disableNetwork:ce.DebugDisableNetwork,showKeys:ce.DebugShowKeys},loader:{registryPath:se.RegistryPath,staticWidgetMappings:se.StaticWidgetMappings},logger:{severityLevel:z.SeverityLevel}}}return e.prototype.setConfig=function(e,t){var r,n=h(e.split(\".\"),2),o=n[0],i=n[1];r=o&&o in this.optionKeys&&i&&i in this.optionKeys[o]?this.optionKeys[o][i]:e,this.config.setConfig(r,t)},e}(),Dt=function(e){void 0===e&&(e={});var t=l({\"loader.registryPath\":\"\",\"localization.webServicesPath\":\"\",\"loader.staticWidgetMappings\":{}},e),r=new _t(mt);E.setInstanceProvider(function(){return r}),E.instance.getService(B.EventStream).init();var n=E.instance.getService(B.Config);n.init();var o=new At(n);Object.keys(t).forEach(function(e){return o.setConfig(e,t[e])}),E.instance.getService(B.Loader).init(),E.instance.getService(B.Localization).init(),void 0!==s.window.__BWTK_DEVTOOLS_EXTENSION__&&s.window.__BWTK_DEVTOOLS_EXTENSION__.connect(kt),It(\"INIT_END\")};(function(){var e=y(Mt,Rt);void 0===this.requirejs?void 0!==this.ReactIntl&&this.ReactIntl.addLocaleData(e):this.requirejs([\"react-intl\"],function(t){return t.addLocaleData(e)})}).call(s.window),r.d(t,\"ConfigServices\",function(){return R}),r.d(t,\"ConfigActions\",function(){return k}),r.d(t,\"ServiceLocator\",function(){return E}),r.d(t,\"CallbackExecutionError\",function(){return S}),r.d(t,\"CommonServices\",function(){return B}),r.d(t,\"AjaxServices\",function(){return M}),r.d(t,\"DiServices\",function(){return A}),r.d(t,\"Localization\",function(){return T}),r.d(t,\"LocalizationServices\",function(){return x}),r.d(t,\"StoreServices\",function(){return W}),r.d(t,\"Store\",function(){return G}),r.d(t,\"WidgetLoaderServices\",function(){return D}),r.d(t,\"ViewWidget\",function(){return $}),r.d(t,\"InternalError\",function(){return ee}),r.d(t,\"ApplicationError\",function(){return te}),r.d(t,\"ValidationError\",function(){return re}),r.d(t,\"ReduxError\",function(){return ne}),r.d(t,\"raiseError\",function(){return b}),r.d(t,\"setLocale\",function(){return w}),r.d(t,\"localeChanged\",function(){return L}),r.d(t,\"loadMessages\",function(){return P}),r.d(t,\"messagesLoaded\",function(){return O}),r.d(t,\"Id\",function(){return oe}),r.d(t,\"Name\",function(){return ie}),r.d(t,\"Namespace\",function(){return ae}),r.d(t,\"LoaderConfigKeys\",function(){return se}),r.d(t,\"LocalizationConfigKeys\",function(){return ce}),r.d(t,\"WidgetLoader\",function(){return fe}),r.d(t,\"LoggerServices\",function(){return F}),r.d(t,\"Logger\",function(){return N}),r.d(t,\"LoggerSeverityLevel\",function(){return I}),r.d(t,\"LoggerConfigKeys\",function(){return z}),r.d(t,\"ParamsServices\",function(){return de}),r.d(t,\"ParamsProvider\",function(){return pe}),r.d(t,\"CommonFeatures\",function(){return Ce}),r.d(t,\"ErrorBoundary\",function(){return Ie}),r.d(t,\"EventStreamServices\",function(){return j}),r.d(t,\"EventStream\",function(){return _}),r.d(t,\"ErrorStreamErrors\",function(){return g}),r.d(t,\"factory\",function(){return q}),r.d(t,\"injectWithFactory\",function(){return V}),r.d(t,\"Injectable\",function(){return X}),r.d(t,\"Provide\",function(){return J}),r.d(t,\"Widget\",function(){return H}),r.d(t,\"Init\",function(){return Dt}),r.d(t,\"RenderWidget\",function(){return et}),r.d(t,\"DestroyWidget\",function(){return tt}),n.createEpicMiddleware,o.FormattedRelative,i.connect,a.string;var Tt=s.window;Tt._Inject&&(Tt._Inject(Tt),Tt._Inject=void 0,Tt.Inject.disableAMD())},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t){e.exports=s},function(e,t){e.exports=c},function(e,t){e.exports={en:{date:{short:{month:\"long\",day:\"numeric\",hour:\"numeric\",minute:\"2-digit\",hour12:!0,formatMatcher:\"basic\"},long:{weekday:\"long\",year:\"numeric\",month:\"long\",day:\"numeric\",formatMatcher:\"basic\"},yMMMd:{month:\"short\",day:\"numeric\",year:\"numeric\",formatMatcher:\"basic\"},yMMMMd:{month:\"long\",day:\"numeric\",year:\"numeric\",formatMatcher:\"basic\"}},time:{hours:{hour:\"numeric\",hour12:!0},short:{hour:\"numeric\",minute:\"2-digit\",hour12:!0}},number:{CAD:{style:\"currency\",currency:\"CAD\",currencyDisplay:\"symbol\"}}},fr:{date:{short:{month:\"long\",day:\"numeric\",hour:\"2-digit\",minute:\"2-digit\",formatMatcher:\"basic\"},long:{weekday:\"long\",year:\"numeric\",month:\"long\",day:\"numeric\",formatMatcher:\"basic\"},yMMMd:{month:\"short\",day:\"numeric\",year:\"numeric\",formatMatcher:\"basic\"},yMMMMd:{month:\"long\",day:\"numeric\",year:\"numeric\",formatMatcher:\"basic\"}},time:{hours:{hour:\"2-digit\",formatMatcher:\"basic\"},short:{hour:\"2-digit\",minute:\"2-digit\",formatMatcher:\"basic\"}},number:{CAD:{style:\"currency\",currency:\"CAD\",currencyDisplay:\"symbol\"}}}}},function(e,t){e.exports=function(e){switch(void 0===e&&(e=\"\"),e.toLowerCase()){case\"bwtk\":return\"bwtk\";case\"scarlet\":return\"scarlet\";case\"jquery\":return\"$\";case\"rxjs\":return\"Rx\";default:return e.split(\"-\").map(function(e){return e.length>3?e[0].toUpperCase()+e.slice(1):e.toUpperCase()}).join(\"\")}}},function(e,t){e.exports=u},function(e,t,r){var n;n=function(){\"use strict\";return[{locale:\"en\",pluralRuleFunction:function(e,t){var r=String(e).split(\".\"),n=!r[1],o=Number(r[0])==e,i=o&&r[0].slice(-1),a=o&&r[0].slice(-2);return t?1==i&&11!=a?\"one\":2==i&&12!=a?\"two\":3==i&&13!=a?\"few\":\"other\":1==e&&n?\"one\":\"other\"},fields:{year:{displayName:\"year\",relative:{0:\"this year\",1:\"next year\",\"-1\":\"last year\"},relativeTime:{future:{one:\"in {0} year\",other:\"in {0} years\"},past:{one:\"{0} year ago\",other:\"{0} years ago\"}}},month:{displayName:\"month\",relative:{0:\"this month\",1:\"next month\",\"-1\":\"last month\"},relativeTime:{future:{one:\"in {0} month\",other:\"in {0} months\"},past:{one:\"{0} month ago\",other:\"{0} months ago\"}}},day:{displayName:\"day\",relative:{0:\"today\",1:\"tomorrow\",\"-1\":\"yesterday\"},relativeTime:{future:{one:\"in {0} day\",other:\"in {0} days\"},past:{one:\"{0} day ago\",other:\"{0} days ago\"}}},hour:{displayName:\"hour\",relative:{0:\"this hour\"},relativeTime:{future:{one:\"in {0} hour\",other:\"in {0} hours\"},past:{one:\"{0} hour ago\",other:\"{0} hours ago\"}}},minute:{displayName:\"minute\",relative:{0:\"this minute\"},relativeTime:{future:{one:\"in {0} minute\",other:\"in {0} minutes\"},past:{one:\"{0} minute ago\",other:\"{0} minutes ago\"}}},second:{displayName:\"second\",relative:{0:\"now\"},relativeTime:{future:{one:\"in {0} second\",other:\"in {0} seconds\"},past:{one:\"{0} second ago\",other:\"{0} seconds ago\"}}}}},{locale:\"en-001\",parentLocale:\"en\"},{locale:\"en-150\",parentLocale:\"en-001\"},{locale:\"en-AG\",parentLocale:\"en-001\"},{locale:\"en-AI\",parentLocale:\"en-001\"},{locale:\"en-AS\",parentLocale:\"en\"},{locale:\"en-AT\",parentLocale:\"en-150\"},{locale:\"en-AU\",parentLocale:\"en-001\"},{locale:\"en-BB\",parentLocale:\"en-001\"},{locale:\"en-BE\",parentLocale:\"en-001\"},{locale:\"en-BI\",parentLocale:\"en\"},{locale:\"en-BM\",parentLocale:\"en-001\"},{locale:\"en-BS\",parentLocale:\"en-001\"},{locale:\"en-BW\",parentLocale:\"en-001\"},{locale:\"en-BZ\",parentLocale:\"en-001\"},{locale:\"en-CA\",parentLocale:\"en-001\"},{locale:\"en-CC\",parentLocale:\"en-001\"},{locale:\"en-CH\",parentLocale:\"en-150\"},{locale:\"en-CK\",parentLocale:\"en-001\"},{locale:\"en-CM\",parentLocale:\"en-001\"},{locale:\"en-CX\",parentLocale:\"en-001\"},{locale:\"en-CY\",parentLocale:\"en-001\"},{locale:\"en-DE\",parentLocale:\"en-150\"},{locale:\"en-DG\",parentLocale:\"en-001\"},{locale:\"en-DK\",parentLocale:\"en-150\"},{locale:\"en-DM\",parentLocale:\"en-001\"},{locale:\"en-Dsrt\",pluralRuleFunction:function(e,t){return\"other\"},fields:{year:{displayName:\"Year\",relative:{0:\"this year\",1:\"next year\",\"-1\":\"last year\"},relativeTime:{future:{other:\"+{0} y\"},past:{other:\"-{0} y\"}}},month:{displayName:\"Month\",relative:{0:\"this month\",1:\"next month\",\"-1\":\"last month\"},relativeTime:{future:{other:\"+{0} m\"},past:{other:\"-{0} m\"}}},day:{displayName:\"Day\",relative:{0:\"today\",1:\"tomorrow\",\"-1\":\"yesterday\"},relativeTime:{future:{other:\"+{0} d\"},past:{other:\"-{0} d\"}}},hour:{displayName:\"Hour\",relative:{0:\"this hour\"},relativeTime:{future:{other:\"+{0} h\"},past:{other:\"-{0} h\"}}},minute:{displayName:\"Minute\",relative:{0:\"this minute\"},relativeTime:{future:{other:\"+{0} min\"},past:{other:\"-{0} min\"}}},second:{displayName:\"Second\",relative:{0:\"now\"},relativeTime:{future:{other:\"+{0} s\"},past:{other:\"-{0} s\"}}}}},{locale:\"en-ER\",parentLocale:\"en-001\"},{locale:\"en-FI\",parentLocale:\"en-150\"},{locale:\"en-FJ\",parentLocale:\"en-001\"},{locale:\"en-FK\",parentLocale:\"en-001\"},{locale:\"en-FM\",parentLocale:\"en-001\"},{locale:\"en-GB\",parentLocale:\"en-001\"},{locale:\"en-GD\",parentLocale:\"en-001\"},{locale:\"en-GG\",parentLocale:\"en-001\"},{locale:\"en-GH\",parentLocale:\"en-001\"},{locale:\"en-GI\",parentLocale:\"en-001\"},{locale:\"en-GM\",parentLocale:\"en-001\"},{locale:\"en-GU\",parentLocale:\"en\"},{locale:\"en-GY\",parentLocale:\"en-001\"},{locale:\"en-HK\",parentLocale:\"en-001\"},{locale:\"en-IE\",parentLocale:\"en-001\"},{locale:\"en-IL\",parentLocale:\"en-001\"},{locale:\"en-IM\",parentLocale:\"en-001\"},{locale:\"en-IN\",parentLocale:\"en-001\"},{locale:\"en-IO\",parentLocale:\"en-001\"},{locale:\"en-JE\",parentLocale:\"en-001\"},{locale:\"en-JM\",parentLocale:\"en-001\"},{locale:\"en-KE\",parentLocale:\"en-001\"},{locale:\"en-KI\",parentLocale:\"en-001\"},{locale:\"en-KN\",parentLocale:\"en-001\"},{locale:\"en-KY\",parentLocale:\"en-001\"},{locale:\"en-LC\",parentLocale:\"en-001\"},{locale:\"en-LR\",parentLocale:\"en-001\"},{locale:\"en-LS\",parentLocale:\"en-001\"},{locale:\"en-MG\",parentLocale:\"en-001\"},{locale:\"en-MH\",parentLocale:\"en\"},{locale:\"en-MO\",parentLocale:\"en-001\"},{locale:\"en-MP\",parentLocale:\"en\"},{locale:\"en-MS\",parentLocale:\"en-001\"},{locale:\"en-MT\",parentLocale:\"en-001\"},{locale:\"en-MU\",parentLocale:\"en-001\"},{locale:\"en-MW\",parentLocale:\"en-001\"},{locale:\"en-MY\",parentLocale:\"en-001\"},{locale:\"en-NA\",parentLocale:\"en-001\"},{locale:\"en-NF\",parentLocale:\"en-001\"},{locale:\"en-NG\",parentLocale:\"en-001\"},{locale:\"en-NL\",parentLocale:\"en-150\"},{locale:\"en-NR\",parentLocale:\"en-001\"},{locale:\"en-NU\",parentLocale:\"en-001\"},{locale:\"en-NZ\",parentLocale:\"en-001\"},{locale:\"en-PG\",parentLocale:\"en-001\"},{locale:\"en-PH\",parentLocale:\"en-001\"},{locale:\"en-PK\",parentLocale:\"en-001\"},{locale:\"en-PN\",parentLocale:\"en-001\"},{locale:\"en-PR\",parentLocale:\"en\"},{locale:\"en-PW\",parentLocale:\"en-001\"},{locale:\"en-RW\",parentLocale:\"en-001\"},{locale:\"en-SB\",parentLocale:\"en-001\"},{locale:\"en-SC\",parentLocale:\"en-001\"},{locale:\"en-SD\",parentLocale:\"en-001\"},{locale:\"en-SE\",parentLocale:\"en-150\"},{locale:\"en-SG\",parentLocale:\"en-001\"},{locale:\"en-SH\",parentLocale:\"en-001\"},{locale:\"en-SI\",parentLocale:\"en-150\"},{locale:\"en-SL\",parentLocale:\"en-001\"},{locale:\"en-SS\",parentLocale:\"en-001\"},{locale:\"en-SX\",parentLocale:\"en-001\"},{locale:\"en-SZ\",parentLocale:\"en-001\"},{locale:\"en-Shaw\",pluralRuleFunction:function(e,t){return\"other\"},fields:{year:{displayName:\"Year\",relative:{0:\"this year\",1:\"next year\",\"-1\":\"last year\"},relativeTime:{future:{other:\"+{0} y\"},past:{other:\"-{0} y\"}}},month:{displayName:\"Month\",relative:{0:\"this month\",1:\"next month\",\"-1\":\"last month\"},relativeTime:{future:{other:\"+{0} m\"},past:{other:\"-{0} m\"}}},day:{displayName:\"Day\",relative:{0:\"today\",1:\"tomorrow\",\"-1\":\"yesterday\"},relativeTime:{future:{other:\"+{0} d\"},past:{other:\"-{0} d\"}}},hour:{displayName:\"Hour\",relative:{0:\"this hour\"},relativeTime:{future:{other:\"+{0} h\"},past:{other:\"-{0} h\"}}},minute:{displayName:\"Minute\",relative:{0:\"this minute\"},relativeTime:{future:{other:\"+{0} min\"},past:{other:\"-{0} min\"}}},second:{displayName:\"Second\",relative:{0:\"now\"},relativeTime:{future:{other:\"+{0} s\"},past:{other:\"-{0} s\"}}}}},{locale:\"en-TC\",parentLocale:\"en-001\"},{locale:\"en-TK\",parentLocale:\"en-001\"},{locale:\"en-TO\",parentLocale:\"en-001\"},{locale:\"en-TT\",parentLocale:\"en-001\"},{locale:\"en-TV\",parentLocale:\"en-001\"},{locale:\"en-TZ\",parentLocale:\"en-001\"},{locale:\"en-UG\",parentLocale:\"en-001\"},{locale:\"en-UM\",parentLocale:\"en\"},{locale:\"en-US\",parentLocale:\"en\"},{locale:\"en-VC\",parentLocale:\"en-001\"},{locale:\"en-VG\",parentLocale:\"en-001\"},{locale:\"en-VI\",parentLocale:\"en\"},{locale:\"en-VU\",parentLocale:\"en-001\"},{locale:\"en-WS\",parentLocale:\"en-001\"},{locale:\"en-ZA\",parentLocale:\"en-001\"},{locale:\"en-ZM\",parentLocale:\"en-001\"},{locale:\"en-ZW\",parentLocale:\"en-001\"}]},e.exports=n()},function(e,t,r){var n;n=function(){\"use strict\";return[{locale:\"fr\",pluralRuleFunction:function(e,t){return t?1==e?\"one\":\"other\":e>=0&&e<2?\"one\":\"other\"},fields:{year:{displayName:\"année\",relative:{0:\"cette année\",1:\"l’année prochaine\",\"-1\":\"l’année dernière\"},relativeTime:{future:{one:\"dans {0} an\",other:\"dans {0} ans\"},past:{one:\"il y a {0} an\",other:\"il y a {0} ans\"}}},month:{displayName:\"mois\",relative:{0:\"ce mois-ci\",1:\"le mois prochain\",\"-1\":\"le mois dernier\"},relativeTime:{future:{one:\"dans {0} mois\",other:\"dans {0} mois\"},past:{one:\"il y a {0} mois\",other:\"il y a {0} mois\"}}},day:{displayName:\"jour\",relative:{0:\"aujourd’hui\",1:\"demain\",2:\"après-demain\",\"-2\":\"avant-hier\",\"-1\":\"hier\"},relativeTime:{future:{one:\"dans {0} jour\",other:\"dans {0} jours\"},past:{one:\"il y a {0} jour\",other:\"il y a {0} jours\"}}},hour:{displayName:\"heure\",relative:{0:\"cette heure-ci\"},relativeTime:{future:{one:\"dans {0} heure\",other:\"dans {0} heures\"},past:{one:\"il y a {0} heure\",other:\"il y a {0} heures\"}}},minute:{displayName:\"minute\",relative:{0:\"cette minute-ci\"},relativeTime:{future:{one:\"dans {0} minute\",other:\"dans {0} minutes\"},past:{one:\"il y a {0} minute\",other:\"il y a {0} minutes\"}}},second:{displayName:\"seconde\",relative:{0:\"maintenant\"},relativeTime:{future:{one:\"dans {0} seconde\",other:\"dans {0} secondes\"},past:{one:\"il y a {0} seconde\",other:\"il y a {0} secondes\"}}}}},{locale:\"fr-BE\",parentLocale:\"fr\"},{locale:\"fr-BF\",parentLocale:\"fr\"},{locale:\"fr-BI\",parentLocale:\"fr\"},{locale:\"fr-BJ\",parentLocale:\"fr\"},{locale:\"fr-BL\",parentLocale:\"fr\"},{locale:\"fr-CA\",parentLocale:\"fr\",fields:{year:{displayName:\"année\",relative:{0:\"cette année\",1:\"l’année prochaine\",\"-1\":\"l’année dernière\"},relativeTime:{future:{one:\"Dans {0} an\",other:\"Dans {0} ans\"},past:{one:\"Il y a {0} an\",other:\"Il y a {0} ans\"}}},month:{displayName:\"mois\",relative:{0:\"ce mois-ci\",1:\"le mois prochain\",\"-1\":\"le mois dernier\"},relativeTime:{future:{one:\"dans {0} mois\",other:\"dans {0} mois\"},past:{one:\"il y a {0} mois\",other:\"il y a {0} mois\"}}},day:{displayName:\"jour\",relative:{0:\"aujourd’hui\",1:\"demain\",2:\"après-demain\",\"-2\":\"avant-hier\",\"-1\":\"hier\"},relativeTime:{future:{one:\"dans {0} jour\",other:\"dans {0} jours\"},past:{one:\"il y a {0} jour\",other:\"il y a {0} jours\"}}},hour:{displayName:\"heure\",relative:{0:\"cette heure-ci\"},relativeTime:{future:{one:\"dans {0} heure\",other:\"dans {0} heures\"},past:{one:\"il y a {0} heure\",other:\"il y a {0} heures\"}}},minute:{displayName:\"minute\",relative:{0:\"cette minute-ci\"},relativeTime:{future:{one:\"dans {0} minute\",other:\"dans {0} minutes\"},past:{one:\"il y a {0} minute\",other:\"il y a {0} minutes\"}}},second:{displayName:\"seconde\",relative:{0:\"maintenant\"},relativeTime:{future:{one:\"dans {0} seconde\",other:\"dans {0} secondes\"},past:{one:\"il y a {0} seconde\",other:\"il y a {0} secondes\"}}}}},{locale:\"fr-CD\",parentLocale:\"fr\"},{locale:\"fr-CF\",parentLocale:\"fr\"},{locale:\"fr-CG\",parentLocale:\"fr\"},{locale:\"fr-CH\",parentLocale:\"fr\"},{locale:\"fr-CI\",parentLocale:\"fr\"},{locale:\"fr-CM\",parentLocale:\"fr\"},{locale:\"fr-DJ\",parentLocale:\"fr\"},{locale:\"fr-DZ\",parentLocale:\"fr\"},{locale:\"fr-GA\",parentLocale:\"fr\"},{locale:\"fr-GF\",parentLocale:\"fr\"},{locale:\"fr-GN\",parentLocale:\"fr\"},{locale:\"fr-GP\",parentLocale:\"fr\"},{locale:\"fr-GQ\",parentLocale:\"fr\"},{locale:\"fr-HT\",parentLocale:\"fr\"},{locale:\"fr-KM\",parentLocale:\"fr\"},{locale:\"fr-LU\",parentLocale:\"fr\"},{locale:\"fr-MA\",parentLocale:\"fr\"},{locale:\"fr-MC\",parentLocale:\"fr\"},{locale:\"fr-MF\",parentLocale:\"fr\"},{locale:\"fr-MG\",parentLocale:\"fr\"},{locale:\"fr-ML\",parentLocale:\"fr\"},{locale:\"fr-MQ\",parentLocale:\"fr\"},{locale:\"fr-MR\",parentLocale:\"fr\"},{locale:\"fr-MU\",parentLocale:\"fr\"},{locale:\"fr-NC\",parentLocale:\"fr\"},{locale:\"fr-NE\",parentLocale:\"fr\"},{locale:\"fr-PF\",parentLocale:\"fr\"},{locale:\"fr-PM\",parentLocale:\"fr\"},{locale:\"fr-RE\",parentLocale:\"fr\"},{locale:\"fr-RW\",parentLocale:\"fr\"},{locale:\"fr-SC\",parentLocale:\"fr\"},{locale:\"fr-SN\",parentLocale:\"fr\"},{locale:\"fr-SY\",parentLocale:\"fr\"},{locale:\"fr-TD\",parentLocale:\"fr\"},{locale:\"fr-TG\",parentLocale:\"fr\"},{locale:\"fr-TN\",parentLocale:\"fr\"},{locale:\"fr-VU\",parentLocale:\"fr\"},{locale:\"fr-WF\",parentLocale:\"fr\"},{locale:\"fr-YT\",parentLocale:\"fr\"}]},e.exports=n()}])},\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t(require(\"react\"),require(\"redux\"),require(\"prop-types\"),require(\"react-dom\"),require(\"rxjs\"),require(\"redux-observable\"),require(\"react-intl\"),require(\"react-redux\"),require(\"redux-actions\"),require(\"scarlet\")):\"function\"==typeof define&&define.amd?define(\"bwtk\",[\"react\",\"redux\",\"prop-types\",\"react-dom\",\"rxjs\",\"redux-observable\",\"react-intl\",\"react-redux\",\"redux-actions\",\"scarlet\"],t):\"object\"==typeof exports?exports.bwtk=t(require(\"react\"),require(\"redux\"),require(\"prop-types\"),require(\"react-dom\"),require(\"rxjs\"),require(\"redux-observable\"),require(\"react-intl\"),require(\"react-redux\"),require(\"redux-actions\"),require(\"scarlet\")):e.bwtk=t(e.React,e.Redux,e.PropTypes,e.ReactDOM,e.Rx,e.ReduxObservable,e.ReactIntl,e.ReactRedux,e.ReduxActions,e.scarlet);\n\n\n// WEBPACK FOOTER //\n// bwtk.min.js"],"mappings":";AAAA","sourceRoot":""}