function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function asyncGeneratorStep(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){asyncGeneratorStep(o,r,i,a,s,"next",e)}function s(e){asyncGeneratorStep(o,r,i,a,s,"throw",e)}a(void 0)}))}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(i,n.prototype),i}).apply(null,arguments)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _get(e,t,n){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=_superPropBase(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,r=_getPrototypeOf(e);if(t){var i=_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _createForOfIteratorHelper(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(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,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(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)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(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}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}/*! For license information please see main-es2015.667a0e0b3838c40e0306.js.LICENSE.txt */(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"++lw":function(e,t,n){"use strict";n("sSFc");var r=n("GAbP"),i=(n("t8sF"),n("MF7w")),o=n("sZkV"),a=function(){function e(t){_classCallCheck(this,e),this.archiveMgr=t,this.wordsMgr=this.archiveMgr.injector.get(i.a),this.platform=this.archiveMgr.injector.get(o.Jb),this.platform.is("cordova")&&this.initSuggestions()}return _createClass(e,[{key:"initSuggestions",value:function(){var e=this;this.fileName="sggstns.by",this.filePath=this.archiveMgr.file.applicationDirectory+"www/assets/archive/suggestions/",this.isAlreadyInitialized().then((function(t){1==t||e.archiveMgr.file.checkFile(e.filePath,e.fileName).then((function(t){e.copyExtractImportSuggestions()})).catch((function(e){console.log("error of file existance",e)}))}))}},{key:"isAlreadyInitialized",value:function(){var e=this;return new Promise((function(t,n){e.wordsMgr.hasEnoughWordsSuggestions().then((function(e){t(e)}))}))}},{key:"copyExtractImportSuggestions",value:function(){var e="suggestions.sql",t=this;this.archiveMgr.file.copyFile(this.filePath,this.fileName,this.archiveMgr.file.cacheDirectory,this.fileName).then((function(n){t.archiveMgr.zip.unzip(t.archiveMgr.file.cacheDirectory+t.fileName,t.archiveMgr.file.applicationStorageDirectory+"suggestions").then((function(n){0===n&&(console.log("SUCCESS"),t.archiveMgr.file.checkFile(t.archiveMgr.file.applicationStorageDirectory+"suggestions/",e).then((function(n){t.archiveMgr.file.readAsText(t.archiveMgr.file.applicationStorageDirectory+"suggestions",e).then((function(e){t.archiveMgr.databaseMgr.importSQL(e)})).catch((function(n){console.log("err on reading file",t.archiveMgr.file.cacheDirectory,e)}))})).catch((function(e){console.log(e)}))),-1===n&&console.log("FAILED")}))})).catch((function(e){console.log("error in copy",e)}))}}]),e}(),s=function(){function e(t){_classCallCheck(this,e),this.archiveMgr=t,this.platform=this.archiveMgr.injector.get(o.Jb)}return _createClass(e,[{key:"initSuggestions",value:function(){this.fileName="sggstns.by",this.filePath=this.archiveMgr.file.applicationDirectory+"www/assets/archive/suggestions/"}},{key:"import",value:function(e,t){var n=t.replace(".zip",".sql"),r=this;this.archiveMgr.file.checkFile(e,t).then((function(){r.archiveMgr.zip.unzip(e+t,r.archiveMgr.file.cacheDirectory+"itemsData/").then((function(e){0===e&&(console.log("SUCCESS"),r.archiveMgr.file.checkFile(r.archiveMgr.file.cacheDirectory+"itemsData//",n).then((function(e){r.archiveMgr.file.readAsText(r.archiveMgr.file.cacheDirectory+"itemsData/",n).then((function(e){r.archiveMgr.databaseMgr.importSQL(e)})).catch((function(e){console.log("err on reading file",r.archiveMgr.file.cacheDirectory,n)}))})).catch((function(e){console.log(e)}))),-1===e&&console.log("FAILED")}))})).catch((function(e){console.log("file not exists",e)}))}}]),e}();n.d(t,"a",(function(){return l}));var l=function(){function e(t,n,i,o){_classCallCheck(this,e),this.zip=t,this.file=n,this.http=i,this.injector=o,this.databaseMgr=o.get(r.a),this.unzipSuggestions=new a(this),this.unzipItemData=new s(this)}return _createClass(e,[{key:"readAsText",value:function(e){return this.http.get(e)}}]),e}()},"+her":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("p74H"),n("xNyf"),n("J20c"),n("EGUZ"),n("sk1z"),n("Zr1d"),n("neAe"),n("++lw"),n("0+M4");var r=function(){function e(t,n,r,i,o,a,s,l,u,c,h){var f=this;_classCallCheck(this,e),this.navCtrl=t,this.events=n,this.messagesManager=r,this.chatsManager=i,this.statusBar=o,this.storageManager=a,this.adsManager=s,this.keyboard=l,this.archiveManager=u,this.route=c,this.router=h,this.scrolled=!1,this.lastPageReached=!1,this.loading=!1,this.allowDescription=!0,this.infiniteCompleted=!0,this.messageMenuOpened=!1,this.infiniteBottomCompleted=!0,this.segments="Study",this.messagesManager.messages=[],this.route.queryParams.subscribe((function(){f.router.getCurrentNavigation().extras.state&&(f.chat=f.router.getCurrentNavigation().extras.state.chat,null!=f.chat&&(f.title=f.chat.title),f.chat.readAllMessages(),f.messages=[],f.members=[])})),this.statusBar.overlaysWebView(!1),this.keyboard.disableScroll(!1),this.registerEvents()}return _createClass(e,[{key:"registerEvents",value:function(){var e=this;this.events.subscribe("adLoaded",(function(t){e.chat.messages.push(t.message)})),this.events.subscribe("scrollDown",(function(){e.scrollDown()})),this.events.subscribe("scrollToLastMarkedMessage",(function(){e.scrollToLastMarkedMessage()}))}},{key:"ionViewDidLoad",value:function(){this.chat.isLeitner()&&this.adsManager.showBannerAd()}},{key:"ionViewDidLeave",value:function(){this.adsManager.isAdsNeeded()&&this.adsManager.showInterstitialAdAfterBack()}},{key:"ionViewDidEnter",value:function(){}},{key:"ngAfterContentInit",value:function(){}},{key:"objectKeys",value:function(e){return Object.keys(e)}},{key:"ngAfterViewInit",value:function(){console.log(" HELLO chatComponent")}},{key:"getClass",value:function(e){var t="";return 1==e.received&&(t+=" received "),1==e.showOptionMenu&&(t+=" zindex1 "),t+=" easeInAnimation"}},{key:"allowEaseIn",value:function(e){return e.isDictionaryMessage()&&e.possibleStatuses.pushedToServer&&!e.hasStatus(e.possibleStatuses.downloadedContent)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngAfterContentChecked",value:function(){}},{key:"ngOnChanges",value:function(){this.read()}},{key:"read",value:function(){this.chat.readAllMessages(),this.chatsManager.save(this.chat)}},{key:"findStuffs",value:function(){return this.loading=!0,new Promise((function(e){console.log("add new messages"),e(!0)}))}},{key:"onPageScrolled",value:function(e){if(!e)return!1}},{key:"onDidDismiss",value:function(){}},{key:"onWillDismiss",value:function(){}},{key:"closeModal",value:function(){}},{key:"isViewLoaded",value:function(){return this.chat.isViewLoaded()}},{key:"isType",value:function(e){return this.chat.type==e}},{key:"openDay",value:function(e){this.chat.changeSegment(e),this.chat.getSortedMesages(e)}},{key:"showDetails",value:function(){this.router.navigate(["chat/membersPage"],{state:{chat:this.chat}})}},{key:"isCompletedInfinite",value:function(){return this.infiniteCompleted}},{key:"isCompletedInfiniteBottom",value:function(){return this.infiniteBottomCompleted}},{key:"doInfinite",value:function(e){var t=this,n=this;return!this.isCompletedInfinite()||this.chat.searching||this.scrollingForSavingPosition?new Promise((function(e){e(0)})):(this.infiniteCompleted=!1,new Promise((function(r){n.lastMarketMessageComponent=n.messageComp,t.chatsManager.loadMoreMessages(t.chat).then((function(){e.complete(),t.infiniteCompleted=!0,r(!0)}))})))}},{key:"doInfiniteBottom",value:function(e){if(this.chat.isLeitner()&&e.enable(!1),this.chat.searching)return!1;this.chat.isDictionary()&&this.chatsManager.synchronizer.getNewMessages(this.chat)}},{key:"getTitle",value:function(){return this.chat.title}},{key:"isMessageMenuOpened",value:function(){return this.messageMenuOpened}},{key:"showKeyboard",value:function(){this.keyboard.disableScroll(!1),this.keyboard.hideFormAccessoryBar(!1),this.keyboard.show()}},{key:"ngOnDestroy",value:function(){this.chat.isLeitner()&&this.adsManager.removeBannerAd()}},{key:"scrollTo",value:function(e){var t=this;this.scrollingForSavingPosition=!0;var n=e.msgElement.nativeElement.getBoundingClientRect().top;this.content.scrollToPoint(0,n,4e3).then((function(){t.scrollingForSavingPosition=!1}))}},{key:"scrollToLastMarkedMessage",value:function(){this.content&&this.scrollTo(this.lastMarketMessageComponent)}},{key:"scrollDown",value:function(){this.content&&this.content.scrollToBottom()}}]),e}()},"+mLH":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(t){_classCallCheck(this,e),this.points=100,this.frgpass=!0,null!=t&&(this.joinedChats=[],this.joined=!1,this.checked=!1,this.imageUrl="",null!=t.status&&(this.fbStatus=t.status),this.initUser(t))}return _createClass(e,[{key:"initUser",value:function(e){this.isFacebookUser()?(this.fbAuthResponse=e.authResponse,this.userID=e.authResponse.userID,this.facebookID=e.authResponse.userID,this.accessToken=e.authResponse.accessToken):(this.name=e.name,this.lastname=e.lastname,this.role=e.role,this.phone=e.phone,this.credit=100,this.accessToken=e.accessToken,this.userID=e.userID,this.googleID=e.googleID,this.displayName=e.displayName,this.familyName=e.familyName,this.givenName=e.givenName,this.imageUrl=e.imageUrl,e.email&&(this.email=e.email.toLowerCase()),this.phone=e.phone,null!=e.points&&(this.points=e.points)),this.mainAccessToken=e.mainAccessToken}},{key:"setMainAccessToken",value:function(e){this.mainAccessToken=e}},{key:"isFacebookUser",value:function(){return"connected"==this.fbStatus}},{key:"hasAccessToken",value:function(){return""!=this.mainAccessToken&&null!=this.mainAccessToken}},{key:"hasImage",value:function(){return null!=this.imageUrl}},{key:"getFirstChars",value:function(){return null!=this.name&&null!=this.lastname?this.name.slice(0,1)+this.lastname.slice(0,1):null!=this.email?this.email.slice(0,1):":)"}},{key:"getMainAccessToken",value:function(){return this.mainAccessToken}},{key:"getSimpleModel",value:function(){return new e(Object.assign({},this))}},{key:"setPassword",value:function(e){this.password=e}},{key:"setLoginMethode",value:function(e){this.loginMethode=e}},{key:"setTestData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"google";this.lastname="Muserman",this.role="user",this.phone="9843454353453",this.credit=100,this.accessToken="fsdfsdfsdf",this.userID="11470245734204",this.displayName="saeed zahedi",this.name="saeed",this.familyName="zahedi",this.givenName="saeed","google"==e?this.googleID="12312414":this.facebookID="35345345400",this.imageUrl="blablabla.jpg",this.fbStatus="connected",this.fbAuthResponse={accessToken:"342fjsef",expiresIn:"534534",session_key:!0,sig:"...",userID:"10211033569062277"},this.email="saeedzhd@gmail.com",this.phone="4915735219124",this.hashKey="blablabla"}}]),e}()},"/HVE":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return h}));var r,i=n("8Y7J"),o=n("SVse");try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(p){r=!1}var a,s=function(){var e=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?Object(o.s)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!r)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return e.ngInjectableDef=Object(i.Qb)({factory:function(){return new e(Object(i.Rb)(i.z,8))},token:e,providedIn:"root"}),e}(),l=function e(){_classCallCheck(this,e)};function u(e){return function(){if(null==a&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return a=!0}}))}finally{a=a||!1}return a}()?e:!!e.capture}var c,h=function(){var e={NORMAL:0,NEGATED:1,INVERTED:2};return e[e.NORMAL]="NORMAL",e[e.NEGATED]="NEGATED",e[e.INVERTED]="INVERTED",e}();function f(){return!("object"!=typeof document||!("scrollBehavior"in document.documentElement.style))}function d(){if("object"!=typeof document||!document)return h.NORMAL;if(!c){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.height="1px",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",e.appendChild(n),document.body.appendChild(e),c=h.NORMAL,0===e.scrollLeft&&(e.scrollLeft=1,c=0===e.scrollLeft?h.NEGATED:h.INVERTED),e.parentNode.removeChild(e)}return c}},"/qZA":function(e,t,n){"use strict";var r=n("olg3");n("EGUZ");var i=function(){function e(t,n){_classCallCheck(this,e),this.canBeResolved=!1,this.id=Math.floor(100001*Math.random())+0,this.data=t,this.action=n}return _createClass(e,[{key:"registerOwner",value:function(e){this.owner=e}},{key:"registerMessage",value:function(e){this.message=e}},{key:"setResolvable",value:function(e){this.canBeResolved=e}},{key:"isResolvable",value:function(){return this.canBeResolved}}]),e}(),o=n("sUqe"),a=(n("2IJ5"),n("sk1z"),n("2XxT"),n("gCtI"),n("AjPc")),s=function(){function e(t){_classCallCheck(this,e),this.allow=!1,this._params=[],this.msg=t.msg,this._responseData=t;var n;for(var r in n=a.a.isJson(t.msg)?JSON.parse(t.msg):t.msg,console.log("this is jsonResponse",n),n)this.setParam(r,n[r]);this.allow=this.getParam("allow")}return _createClass(e,[{key:"getResponseData",value:function(){return this._responseData}},{key:"setParam",value:function(e,t){this._params[e]=t}},{key:"getParam",value:function(e){return this._params[e]}},{key:"isAllowed",value:function(){return this.allow}}]),e}();n("xoVG"),n("0+M4"),n.d(t,"a",(function(){return u}));var l,u=((l=function(){function e(t,n,i,o,a,s,l,u,c){var h=this;_classCallCheck(this,e),this.injector=t,this.storageManager=n,this.adsManager=i,this.network=o,this.platform=a,this.appStateManager=s,this.timeManager=l,this.consoleDialog=u,this.events=c,this.message="connecting...",this.triedConnectionTimes=10,this.adsTimePeriod=60,this.allowReconnect=!0,this.actionDownloadContent="downloadContent",this.addressServerTest="wss://server1.bayadic.com/ssw",this.addressServerOriginal="wss://server1.bayadic.com/wss",this.insecureSocketAddress="ws://server1.bayadic.com/wss",this.addressServerIP="ws://46.101.215.5:4321",this.c=0,this.timer_is_on=0,this.debug=!0,this.userManager=this.injector.get(r.a),this.debug?(this.webserverAddress=this.addressServerTest,this.insecureSocket=this.addressServerTest):(this.webserverAddress=this.addressServerOriginal,this.insecureSocket=this.insecureSocketAddress),this.queries=[],this.que=[],this.connected=!1,this.setNetwork(!0),this.registerEvents(),this.storageManager.get("webserver").then((function(e){null!=e&&(h.webserverAddress=e),h.connect()})),this.storageManager.get("adsTimePeriod").then((function(e){null!=e&&(h.adsTimePeriod=e)}))}return _createClass(e,[{key:"registerEvents",value:function(){var e=this,t=this;this.events.subscribe("checkOnline",(function(){t.isNetwork()&&t.checkOnline(t)})),this.events.subscribe("ping",(function(){e.sendMsg("ping",e)})),this.subscribeConnect()}},{key:"subscribeDisconnect",value:function(){var e=this;this.disconnectSubscription=this.network.onDisconnect().subscribe((function(){e.setNetwork(!1),e.message="No Network...",e.subscribeConnect(),e.unsubscribeDisconnect()}))}},{key:"unsubscribeDisconnect",value:function(){this.disconnectSubscription.unsubscribe()}},{key:"setNetwork",value:function(e){this.networkAvailability=e}},{key:"isNetwork",value:function(){return this.networkAvailability}},{key:"subscribeConnect",value:function(){var e=this;this.platform.is("cordova")?this.connectSubscription=this.network.onConnect().subscribe((function(){e.message="connecting...",e.setNetwork(!0),e.unsubscribeConnection(),e.subscribeDisconnect(),e.getOnlinePrime(),setTimeout((function(){"wifi"===e.network.type&&console.log("we got a wifi connection, woohoo!")}),3e3)})):this.getOnlinePrime()}},{key:"unsubscribeConnection",value:function(){this.connectSubscription.unsubscribe()}},{key:"ping",value:function(){this.sendMsg("ping",this)}},{key:"checkOnline",value:function(t){e.isOnline||t.connect()}},{key:"getOnlinePrime",value:function(){e.isOnline||this.connect()}},{key:"onOpen",value:function(){var e=this;this.isConnected(),this.userManager.loggedIn().then((function(){e.queryPro("register",{},e,e.userManager.user.getMainAccessToken())})),this.flushQue(),this.events.publish(o.c.Connected)}},{key:"onError",value:function(){this.allowReconnect=!0,this.isConnected()}},{key:"onClose",value:function(t){this.events.publish(o.c.SocketDisconnected),console.log("cloosed socket",t,this.timeManager.seconds),this.allowReconnect=!0,e.isOnline=!1,this.isConnected()}},{key:"connect",value:function(){var e=this;if(!this.allowReconnect||this.isConnected())return!1;this.allowReconnect=!1,this.websocket_server=new WebSocket(this.webserverAddress),this.websocket_server_insecure=new WebSocket(this.insecureSocket),this.websocket_server.onopen=function(t){e.onOpen()},this.websocket_server.onerror=function(t){e.onError()},this.websocket_server.onclose=function(t){e.onClose(t)},this.websocket_server.onmessage=function(t){e.handleMessages(t)},this.websocket_server_insecure.onopen=function(t){e.onOpen()},this.websocket_server_insecure.onerror=function(t){e.onError()},this.websocket_server_insecure.onclose=function(t){e.onClose(t)},this.websocket_server_insecure.onmessage=function(t){e.handleMessages(t)}}},{key:"changeServerAndConnect",value:function(){this.webserverAddress==this.addressServerOriginal?this.webserverAddress=this.addressServerIP:this.webserverAddress==this.addressServerIP&&(this.webserverAddress=this.addressServerOriginal)}},{key:"flushQue",value:function(){var e,t=this,n=this.userManager.user.getMainAccessToken(),r=_createForOfIteratorHelper(this.que);try{var i=function(){var r=e.value,i=t.que.indexOf(r);t.que.splice(i,1),r.isResolvable()?t.asyncQuery(r.action,r.data,r.run).then((function(){r.run===Function&&r.run()})):t.queryPro(r.action,r.data,r.owner,n,r.message)};for(r.s();!(e=r.n()).done;)i()}catch(o){r.e(o)}finally{r.f()}}},{key:"keepLive",value:function(){}},{key:"addQuery",value:function(e){this.que.push(e)}},{key:"setConnected",value:function(){this.connected=!0}},{key:"hanldeMessage",value:function(e){console.log(e,"is recevied data is")}},{key:"handleMessage",value:function(){this.consoleDialog.log("socketmanager","Im just responsible to socketmanager events like connect and disconnect and so ...")}},{key:"handleMessages",value:function(e){var t=e.data;if(t==o.b.CheckEvents)return this.events.publish(o.b.CheckEvents,{},Date.now()),!0;var n=JSON.parse(t);if("EventsManager"==n.owner)return this.events.publish(n.action,n.data,Date.now()),!0;var r=this.findOriginalSQuery(n.query);if(null!=r)if(r.isResolvable()){var i=new s(n);if(null!=i.allow){var a=this.queries.indexOf(r);r.resolve(i),this.queries.splice(a,1)}}else{r.owner.handleMessage(t,r);var l=this.queries.indexOf(r);this.queries.splice(l,1)}}},{key:"findOriginalSQuery",value:function(e){var t,n=_createForOfIteratorHelper(this.queries);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.id==e.id)return r}}catch(i){n.e(i)}finally{n.f()}}},{key:"init",value:function(){}},{key:"tryConnect",value:function(){}},{key:"timedCount",value:function(){var e=this;this.c=this.c+1,this.isConnected(),this.reconnect(),this.t=setTimeout((function(){e.timedCount()}),1e4)}},{key:"isConnected",value:function(){return!!e.isOnline||(null!=this.websocket_server||null!=this.websocket_server_insecure)&&(this.websocket_server.readyState===this.websocket_server.OPEN||this.websocket_server_insecure.readyState===this.websocket_server_insecure.OPEN?(this.connected=!0,e.isOnline=!0,!0):(this.connected=!1,e.isOnline=!1,!1))}},{key:"setMessage",value:function(e){this.message=e}},{key:"disconnect",value:function(){this.websocket_server.close(),this.isConnected()}},{key:"reconnect",value:function(){}},{key:"getMessage",value:function(){return this.message}},{key:"queryPro",value:function(e,t,n,r,o){var a=this;return new Promise((function(s){var l=new i(t,e);if(!a.isConnected())return l.registerOwner(n),o&&l.registerMessage(o),a.addQuery(l),!0;if(a.isConnected()){var u=JSON.stringify({type:"request",action:e,user_id:a.userManager.user.userID,data:t,query:l,accessToken:r});a.send(u),l.registerOwner(n),o&&l.registerMessage(o),a.queries.push(l),s(!0)}}))}},{key:"send",value:function(e){return this.websocket_server.readyState===this.websocket_server.OPEN?(this.websocket_server.send(e),!0):this.websocket_server_insecure.readyState===this.websocket_server_insecure.OPEN&&(this.websocket_server_insecure.send(e),!0)}},{key:"asyncQuery",value:function(e,t,n){var r=this;return new Promise((function(o,a){var s=new i(t,e);if(s.setResolvable(!0),s.run=n,r.isConnected()){var l={type:"request",action:e,user_id:r.userManager.user.userID,data:t,query:s,accessToken:r.userManager.user.getMainAccessToken()},u=JSON.stringify(l);r.send(u),r.queries.push(s),s.resolve=o}else r.addQuery(s),a("no internet connection :((")}))}},{key:"download",value:function(e){return this.asyncQuery(this.actionDownloadContent,{url:e})}},{key:"sendMsg",value:function(e,t){if(this.parent=t,!this.connected)return this.reconnect(),!1;var n=JSON.stringify({type:"transl",user_id:"34",chat_msg:e});this.send(n)}}],[{key:"getOnline",value:function(t){e.isOnline||t.connect()}}]),e}()).timer=0,l.isOnline=!1,l)},"/uUt":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.compare=t,this.keySelector=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).keySelector=i,o.hasKey=!1,"function"==typeof r&&(o.compare=r),o}return _createClass(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))}}]),n}(r.a)},0:function(e,t,n){e.exports=n("zUnb")},"0+M4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("8Y7J"),i=function(){var e=function(){function e(){_classCallCheck(this,e),this._channels=[]}return _createClass(e,[{key:"subscribe",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._channels[e]||(this._channels[e]=[]),r.forEach((function(n){t._channels[e].push(n)}))}},{key:"unsubscribe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._channels[e];if(!n)return!1;if(!t)return delete this._channels[e],!0;var r=n.indexOf(t);return!(r<0||(n.splice(r,1),n.length||delete this._channels[e],0))}},{key:"publish",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this._channels[e];if(!i)return null;var o=[];return i.forEach((function(e){o.push(e.apply(void 0,n))})),o}}]),e}();return e.ngInjectableDef=r.Qb({factory:function(){return new e},token:e,providedIn:"root"}),e}()},"0EUg":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("bHdf");function i(){return Object(r.a)(1)}},"0FpF":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("D2Vb"),n("EGUZ");var r=function(){function e(t,n,r,i){_classCallCheck(this,e),this.http=t,this.appRate=n,this.translateService=r,this.storageManager=i,console.log("Hello AppRateManagerProvider Provider")}return _createClass(e,[{key:"init",value:function(){this.isAppRateNeeded()&&this.initFa()}},{key:"initFa",value:function(){var e=this;this.appRate.preferences={displayAppName:"Bayadic",usesUntilPrompt:5,promptAgainForEachNewVersion:!1,inAppReview:!1,storeAppURL:{ios:"1333051510",android:"market://details?id=com.sinzed.bayadic"},customLocale:{title:"\u0628\u0627\u06cc\u0627\u062f\u06cc\u06a9 \u0686\u0646\u062f \u062a\u0627 \u0644\u0627\u06cc\u06a9 \u062f\u0627\u0631\u0647\u061f",message:"\u0627\u06af\u0647 \u0627\u0632 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0628\u0627\u06cc\u0627\u062f\u06cc\u06a9 \u0644\u0630\u062a \u0645\u06cc \u0628\u0631\u06cc\u0646 \u0648 \u0645\u0641\u06cc\u062f\u0647 \u0628\u0647 \u0645\u0627 \u0627\u0645\u062a\u06cc\u0627\u0632 \u0628\u062f\u06cc\u0646. \u0642\u0648\u0644 \u0645\u06cc \u062f\u0645 \u0628\u06cc\u0634\u062a\u0631 \u0627\u0632 \u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647 \u0648\u0642\u062a\u062a\u0648\u0646 \u0631\u0648 \u0646\u06af\u06cc\u0631\u0647",cancelButtonLabel:"\u0646\u0647 \u0647\u06cc\u0686 \u0648\u0642\u062a",laterButtonLabel:"\u0628\u0639\u062f\u0627 \u06cc\u0627\u062f\u0622\u0648\u0631\u06cc \u06a9\u0646",rateButtonLabel:"\u0627\u0644\u0627\u0646 \u0627\u0645\u062a\u06cc\u0627\u0632 \u0645\u06cc \u062f\u0645",yesButtonLabel:"\u0628\u0644\u0647!",noButtonLabel:"\u0646\u0647 \u0648\u0627\u0642\u0639\u0627",appRatePromptTitle:"\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0628\u0627\u06cc\u0627\u062f\u06cc\u06a9 \u0631\u0648 \u062f\u0648\u0633\u062a \u062f\u0627\u0631\u06cc\u0646\u061f",feedbackPromptTitle:"\u062f\u0648\u0633\u062a \u062f\u0627\u0631\u06cc\u0646 \u0646\u0638\u0631 \u0628\u062f\u06cc\u0646\u061f?"},callbacks:{handleNegativeFeedback:function(){},onRateDialogShow:function(e){},onButtonClicked:function(t){2==t?e.later():e.finish(),console.log("onButtonClicked -> "+t)}}},this.appRate.promptForRating(!0)}},{key:"finish",value:function(){this.storageManager.set("rated","ratedOrNever")}},{key:"later",value:function(){this.storageManager.set("rated","later")}},{key:"initEn",value:function(){this.appRate.preferences={displayAppName:"Bayadic",usesUntilPrompt:5,promptAgainForEachNewVersion:!1,inAppReview:!1,storeAppURL:{ios:"1333051510",android:"market://details?id=com.sinzed.bayadic"},customLocale:{title:"Would you mind rating %@?",message:"It won\u2019t take more than a minute and helps to promote our app. Thanks for your support!",cancelButtonLabel:"No, Thanks",laterButtonLabel:"Remind Me Later",rateButtonLabel:"Rate It Now",yesButtonLabel:"Yes!",noButtonLabel:"Not really",appRatePromptTitle:"Do you like using %@",feedbackPromptTitle:"Mind giving us some feedback?"},callbacks:{handleNegativeFeedback:function(){},onRateDialogShow:function(e){},onButtonClicked:function(e){}}},this.appRate.promptForRating(!0)}},{key:"setAppRateNeeded",value:function(e){this.appRateNeeded=e}},{key:"isAppRateNeeded",value:function(){return this.appRateNeeded}},{key:"checkForRating",value:function(){var e=this;this.storageManager.get("rated").then((function(t){null!=t&&"later"!=t||e.initFa()}))}}]),e}()},"0K09":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.importSqlToDb=function(e,t){return Object(i.cordova)(this,"importSqlToDb",{callbackStyle:"object",successName:"successFn",errorName:"errorFn"},arguments)},t.prototype.exportDbToSql=function(e){return Object(i.cordova)(this,"exportDbToSql",{callbackStyle:"object",successName:"successFn",errorName:"errorFn"},arguments)},t.prototype.importJsonToDb=function(e,t){return Object(i.cordova)(this,"importJsonToDb",{callbackStyle:"object",successName:"successFn",errorName:"errorFn"},arguments)},t.prototype.exportDbToJson=function(e){return Object(i.cordova)(this,"exportDbToJson",{callbackStyle:"object",successName:"successFn",errorName:"errorFn"},arguments)},t.prototype.wipeDb=function(e){return Object(i.cordova)(this,"wipeDb",{callbackStyle:"object",successName:"successFn",errorName:"errorFn"},arguments)},t.pluginName="SQLitePorter",t.plugin="uk.co.workingedge.cordova.plugin.sqliteporter",t.pluginRef="cordova.plugins.sqlitePorter",t.repo="https://github.com/dpa99c/cordova-sqlite-porter",t.platforms=["Amazon Fire OS","Android","BlackBerry 10","Browser","iOS","Tizen","Windows","Windows Phone"],t}(i.IonicNativePlugin)},"0NL6":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("+mLH"),i=n("sUqe"),o=n("AjPc"),a=function(){function e(t){if(_classCallCheck(this,e),this.maxWordToShow=2,this.showOptionMenu=!1,this.statusHistory=[],t.statusHistory&&(this.statusHistory=t.statusHistory),this.received=!1,this.minimized=!1,this.repetittion=0,void 0!==t.repettition&&(this.text=t.text),void 0!==t.text?this.text=t.text:void 0!==t.message&&(this.text=t.message),void 0!==t.sentTime&&(this.receivedTime=t.sentTime),this.receivedTime=null==this.receivedTime&&void 0!==t.timeSent?t.timeSent:t.receivedTime,this.reviewTime=null!=t.reviewTime?t.reviewTime:o.d.getToday(),this.lastReviewedTime=null!=t.lastReviewedTime?t.lastReviewedTime:o.d.getToday(),this.easinessFactor=null!=t.easinessFactor?t.easinessFactor:2.5,this.messageID=t.messageID,t.received&&(this.received=t.received),this.from=null!=t.from?t.from:new r.a([]),this.content=[],null!=t.content&&null!=t.content){var n,i=_createForOfIteratorHelper(t.content);try{for(i.s();!(n=i.n()).done;){var a=n.value;this.content.push(a)}}catch(s){i.e(s)}finally{i.f()}}null!=t.minmized&&(this.minimized=t.minmized),this.type="dictionary",null!=t.type&&(this.type=t.type)}return _createClass(e,[{key:"hasContent",value:function(){return this.content?0!=this.content.length:(this.content=[],!1)}},{key:"hasFooter",value:function(){return this.isDictionaryMessage()}},{key:"setContent",value:function(e){null!=e&&null!=e&&(this.content=e)}},{key:"setUser",value:function(e){this.from=e}},{key:"setMessageID",value:function(e){this.messageID=e}},{key:"setShowOptionMenu",value:function(e){this.showOptionMenu=e}},{key:"isFrom",value:function(e){return this.from.userID==e.userID}},{key:"isShowOptionMenu",value:function(){return this.showOptionMenu}},{key:"isShowAvatar",value:function(){}},{key:"setMessageTimeSent",value:function(e){this.receivedTime=e}},{key:"minmize",value:function(){this.minimized=!0}},{key:"maximize",value:function(){this.minimized=!1}},{key:"setType",value:function(e){switch(this.type=e,e){case"idiom":this.content.push("hi")}}},{key:"getSimpleModel",value:function(){var t=new e(Object.assign({},this));return t.content.length=0,t}},{key:"getModel",value:function(e){}},{key:"getModelTypeID",value:function(){return{type:this.type,messageID:this.messageID}}},{key:"needContent",value:function(){return!this.hasContent()&&!this.isChatMessage()}},{key:"isChatMessage",value:function(){return this.type.toLowerCase()==i.d.Chat}},{key:"isLeitnerMessage",value:function(){return this.type.toLowerCase()==i.d.Leitner}},{key:"isQuizMessage",value:function(){return this.type.toLowerCase()==i.d.Quiz}},{key:"isDictionaryMessage",value:function(){return this.type.toLowerCase()==i.d.Dictionary}},{key:"isAdsMessage",value:function(){return"adsMessage"==this.type}},{key:"isQuiz",value:function(){return this.type.toLowerCase().includes("quiz")}},{key:"setMaxWordToShow",value:function(e){this.maxWordToShow=e}},{key:"isDictionary",value:function(){return this.type.toLowerCase().includes("dictionary")}},{key:"isLocalType",value:function(){return"leitenr"==this.type}},{key:"getReceivedInt",value:function(){return this.received?1:0}},{key:"getSummary",value:function(){return this.text.slice(0,15)}},{key:"setStatus",value:function(e){this.status=e,this.addStatusHistory()}},{key:"isStatus",value:function(e){return this.status==e}},{key:"hasStatus",value:function(e){return-1!=this.statusHistory.indexOf(e)}},{key:"addStatusHistory",value:function(){this.statusHistory.push(this.status)}},{key:"setReceivedTime",value:function(e){this.receivedTime=e}},{key:"setReceivedFromInt",value:function(e){this.received=0!=e}},{key:"setFoldingFromInt",value:function(e){this.minimized=1==e}},{key:"getFoldedInt",value:function(){return this.minimized?1:0}},{key:"hasBeenSeenByMe",value:function(){return this.statusHistory.indexOf(this.possibleStatuses.seenByMe)>=0}},{key:"getReceivedTimeSqlLiteFormat",value:function(){return this.receivedTime.replace(/\//g,"-")}},{key:"getReviewTimeSqlLiteFormat",value:function(){return this.reviewTime.replace(/\//g,"-")}},{key:"getLastReviewTimeSqlLiteFormat",value:function(){return this.lastReviewedTime.replace(/\//g,"-")}},{key:"getReviewDate",value:function(){return this.reviewTime.split(" ")[0]}},{key:"getAction",value:function(){var e;switch(this.type){case"dictionary":e="transl";break;case"puzzle":e="getPuzzle";break;case"news":e="getNews";break;case i.d.Chat:e=i.e.SendMsg}return e}},{key:"getData",value:function(){var e;switch(this.type){case"dictionary":e={word:this.text,lang:this.getLang(),type:this.type};break;case"puzzle":e={puzzle:this.text,type:this.type};break;case"news":e={news:this.text,type:this.type};break;case i.d.Chat:e={word:this.text,type:this.type}}return e}},{key:"setReviewTime",value:function(e){if(!e)return this.reviewTime="2050/12/12 12:12:12",!0;this.reviewTime=e.replace(/-/g,"/")}},{key:"setRepetitions",value:function(e){if(!e)return this.repetittion=0,!0;this.repetittion=e}},{key:"getRepetitions",value:function(){return this.repetittion}},{key:"getEasinessFactor",value:function(){return this.easinessFactor}},{key:"getInterval",value:function(){var e=new Date(this.lastReviewedTime),t=(new Date(this.reviewTime).getTime()-e.getTime())/864e5;return t<1?1:t}},{key:"setLastReviewedTime",value:function(e){this.lastReviewedTime=null!=this.lastReviewedTime&&null!=this.lastReviewedTime&&null!=e?e.replace(/-/g,"/"):o.d.getToday()}},{key:"setEasinessFactor",value:function(e){if(!e)return this.easinessFactor=0,!0;this.easinessFactor=e}},{key:"getLang",value:function(){return this.isArabic()?"fa":"de"}},{key:"isArabic",value:function(){return/[\u0600-\u06FF]/.test(this.text)}},{key:"isPersian",value:function(){return this.isArabic()}},{key:"isGerman",value:function(){this.isArabic()}},{key:"isSent",value:function(){return this.status==this.possibleStatuses.receivedByServer}},{key:"isDelivered",value:function(){return this.status==this.possibleStatuses.deliveredToUser}},{key:"possibleStatuses",get:function(){return i.f}}],[{key:"getExistedStatuses",value:function(){return new i.f}}]),e}()},"128B":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("Kqap"),i=n("BFxc"),o=n("xbPD"),a=n("mCNh");function s(e,t){return arguments.length>=2?function(n){return Object(a.a)(Object(r.a)(e,t),Object(i.a)(1),Object(o.a)(t))(n)}:function(t){return Object(a.a)(Object(r.a)((function(t,n,r){return e(t,n,r+1)})),Object(i.a)(1))(t)}}},"1G5W":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("l7GE"),i=n("ZUHj");function o(e){return function(t){return t.lift(new a(e))}}var a=function(){function e(t){_classCallCheck(this,e),this.notifier=t}return _createClass(e,[{key:"call",value:function(e,t){var n=new s(e),r=Object(i.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).seenValue=!1,r}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(r.a)},"1Zg0":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("mrSG"),i=n("EVdn"),o=n("pJ1N"),a=function(){function e(t){_classCallCheck(this,e),this.modalCtrl=t,this.tips=[]}return _createClass(e,[{key:"introduceChatDictionary",value:function(){}},{key:"introduceMoreContent",value:function(){var e=this;return new Promise((function(t){e.isReady()&&(e.initHasMoreContentTipps(),e.guide().then((function(e){t(!!e)})))}))}},{key:"isReady",value:function(){return 0==this.tips.length}},{key:"getTip",value:function(){return this.tips.pop()}},{key:"createTip",value:function(e,t,n,r){return{text:e,element:t,width:n,height:r}}},{key:"initSendTips",value:function(){this.tips.push(this.createTip("\u062d\u0627\u0644\u0627 \u062f\u06a9\u0645\u0647 \u0627\u0631\u0633\u0627\u0644 \u0631\u0648 \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f",i(".inputBtn")))}},{key:"initInputChatTips",value:function(){this.tips.push(this.createTip("\u0627\u06cc\u0646\u062c\u0627 \u0645\u06cc \u0634\u0647 \u0628\u0647 \u0641\u0627\u0631\u0633\u06cc \u06cc\u0627 \u0622\u0644\u0645\u0627\u0646\u06cc \u06cc\u0647 \u0644\u063a\u062a \u0646\u0648\u0634\u062a \u0645\u062b\u0644\u0627 \u0645\u06cc \u062e\u0648\u0627\u06cc\u0645 \u0628\u062f\u0648\u0646\u06cc\u0645 \u0645\u0639\u0646\u06cc \u06a9\u0644\u0645\u0647 buch \u0628\u0647 \u0641\u0627\u0631\u0633\u06cc \u0686\u06cc \u0645\u06cc \u0634\u0647 ",i("chat-input"))),this.tips.push(this.createTip("\u0628\u0647 \u0641\u0631\u0647\u0646\u06af \u0644\u063a\u062a \u0628\u0627\u06cc\u0627\u062f\u06cc\u06a9 \u062e\u0648\u0634 \u0627\u0648\u0645\u062f\u06cc\u0646\u060c \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0646\u062d\u0648\u0647 \u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0631\u0648 \u0628\u0647\u062a\u0648\u0646 \u0622\u0645\u0648\u0632\u0634 \u0628\u062f\u0645"))}},{key:"initMessageTips",value:function(){this.tips.push(this.createTip("\u0648\u0642\u062a\u06cc \u0631\u0648\u06cc \u0627\u06cc\u0646 \u062f\u06a9\u0645\u0647 \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u060c \u0645\u06cc \u062a\u0648\u0646\u06cc \u0627\u06cc\u0646 \u06a9\u0644\u0645\u0647 \u0631\u0648 \u062d\u0630\u0641 \u06a9\u0646\u06cc \u06cc\u0627 \u0628\u0647 \u062c\u0639\u0628\u0647 \u0644\u0627\u06cc\u062a\u0646\u0631 \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647 \u0648 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0644\u063a\u0627\u062a \u0647\u0633\u062a \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc",i(".moreBtn"))),this.tips.push(this.createTip("\u0628\u0627 \u0641\u0634\u0627\u0631\u062f\u0627\u062f\u0646 \u0627\u06cc\u0646 \u062f\u06a9\u0645\u0647 \u0647\u0645 \u062a\u0644\u0641\u0638 \u0644\u063a\u062a \u0631\u0648 \u0645\u06cc \u0634\u0647 \u0634\u0646\u06cc\u062f",i(".speechIcon"))),this.tips.push(this.createTip("\u0628\u06cc\u0634\u062a\u0631 \u06a9\u0644\u0645\u0647 \u0647\u0627 \u0645\u062b\u0627\u0644 \u062f\u0627\u0631\u0646 \u06a9\u0647 \u0628\u0627 \u06a9\u0644\u06cc\u06a9 \u06a9\u0631\u062f\u0646 \u0631\u0648\u06cc \u0627\u06cc\u0646 \u062f\u06a9\u0645\u0647 \u0645\u06cc \u062a\u0648\u0646\u06cc \u0628\u0628\u06cc\u0646\u06cc\u0634\u0648\u0646",i(".conjugateNow"),30,30)),this.tips.push(this.createTip("\u0647\u0645\u06cc\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u06cc\u0634\u0647 \u062f\u06cc\u062f\u060c \u06a9\u0644\u0645\u0647 \u0628\u0627 \u0622\u0631\u062a\u06cc\u06a9\u0644 \u062c\u0646\u0633\u06cc\u062a \u062e\u0648\u062f\u0634 \u0627\u06cc\u0646\u062c\u0627 \u0646\u0648\u0634\u062a\u0647 \u0645\u06cc \u0634\u0647",i(".artikel").first())),this.tips.push(this.createTip("\u0647\u0648\u0631\u0627 \u0644\u063a\u062a\u06cc \u06a9\u0647 \u0646\u0648\u0634\u062a\u06cc\u0645 \u062a\u0631\u062c\u0645\u0647 \u0634\u062f. \u062d\u0627\u0644\u0627 \u0633\u0639\u06cc \u0645\u06cc \u06a9\u0646\u0645 \u062c\u0632\u0626\u06cc\u0627\u062a \u062a\u0631\u062c\u0645\u0647 \u0631\u0648 \u0628\u0647\u062a \u0628\u06af\u0645",i("message").last()))}},{key:"initHasMoreContentTipps",value:function(){this.tips.length=0,this.tips.push(this.createTip("\u0648\u0642\u062a\u06cc \u0627\u06cc\u0646 \u062c\u0627 \u0631\u0648 \u0644\u0645\u0633 \u06a9\u0646\u06cc \u0647\u0645\u0647 \u06cc \u0644\u063a\u0627\u062a \u062f\u06cc\u062f\u0647 \u0645\u06cc \u0634\u0646",i(".openMoreHandle").last())),this.tips.push(this.createTip("\u06cc\u0647 \u0646\u06a9\u062a\u0647 \u0628\u06af\u0645\u061f \u0628\u0639\u0636\u06cc \u0644\u063a\u0627\u062a \u062a\u0639\u062f\u0627\u062f \u0645\u0639\u0646\u06cc \u0647\u0627\u06cc \u0632\u06cc\u0627\u062f\u06cc \u062f\u0627\u0631\u0646\u060c \u0648\u0644\u06cc \u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0627\u0648\u0644 \u0647\u0645\u06af\u06cc \u0628\u0627 \u0647\u0645 \u062f\u06cc\u062f\u0647 \u0646\u0645\u06cc \u0634\u0646"))}},{key:"guide",value:function(){var e=this;return new Promise((function(t){return r.a(e,void 0,void 0,regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalCtrl.create({component:o.a});case 2:(n=e.sent).present(),n.onDidDismiss().then((function(){t(!0)}));case 4:case"end":return e.stop()}}),e,this)})))}))}}]),e}()},"2IJ5":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){_classCallCheck(this,e),this.devMode=!1,this.messages=[]}return _createClass(e,[{key:"log",value:function(e,t){(new Date).toTimeString()}},{key:"log2",value:function(e,t){var n={msg:e,data:t,time:(new Date).toTimeString()};this.messages.unshift(n)}}]),e}()},"2QA8":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},"2TGb":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.speak=function(e){return Object(i.cordova)(this,"speak",{successIndex:1,errorIndex:2},arguments)},t.prototype.stop=function(){return Object(i.cordova)(this,"stop",{},arguments)},t.pluginName="Text To Speech",t.plugin="cordova-plugin-tts",t.pluginRef="TTS",t.repo="https://github.com/vilic/cordova-plugin-tts",t.platforms=["Android","iOS","Windows Phone 8"],t}(i.IonicNativePlugin)},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("XNiG"),i=n("9ppp"),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._value=e,r}return _createClass(n,[{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(r.a)},"2XxT":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("sk1z");n("0+M4");var i=function(){function e(t,n){_classCallCheck(this,e),this.http=t,this.events=n,this.seconds=0,console.log("Hello TimeManagerProvider Provider")}return _createClass(e,[{key:"startTimer",value:function(){var t=this;this.stopTimer(),t.stopTimer(),console.log("timer activated"),e.timeHolder=setInterval((function(){t.seconds+=3,t.events.publish("checkOnline"),t.seconds%r.a.adsTimePeriod==0&&(t.events.publish("presentAd"),t.events.publish("ping"))}),1500)}},{key:"stopTimer",value:function(){console.log("timer paused"),clearInterval(e.timeHolder)}}]),e}()},"2fFW":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"2y6Z":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("zI0Y"),o=(n("olg3"),n("sUqe")),a=n("AjPc"),s=function(){function e(t,n,r,i){_classCallCheck(this,e),this.view=t,this.toastCtrl=n,this.translate=r,this.userManager=i,this.wordType="",this.selectArtikel=!1,this.artikel="",this.actionAddNewWord="addNewWord"}return _createClass(e,[{key:"handleMessage",value:function(e){console.log("message of add new message","sent",e)}},{key:"ngAfterContentInit",value:function(){console.log("this.message ngAfterContentInit is :",this.message),console.log("this.wordType ngAfterContentInit is :",this.wordType),console.log("this. artikel ngAfterContentInit is:",this.artikel),this.findOutWord()}},{key:"getWordArtikel",value:function(e){switch(console.log("getWordArtikel(artikelSignal) is :",e),e){case"m":this.wordArtikel="Der";break;case"f":this.wordArtikel="Die";break;case"n":this.wordArtikel="Das"}return this.wordArtikel}},{key:"findOutWordArtikel",value:function(){console.log("message in findOutWordArtikel()",this.message),this.message.hasContent()&&null!=this.message.content[0]&&null!=this.message.content[0].artikel&&this.word.toLowerCase()==this.message.content[0].word.toLowerCase()&&this.getWordArtikel(this.message.content[0].artikel)}},{key:"findOutWord",value:function(){console.log("message in findOutWord()",this.message),console.log("this.message.text in findOutWord():",this.message.text),null!=this.message&&(this.word=this.message.text)}},{key:"addWord",value:function(){if(this.isFormValid()){console.log("this.message in addword",this.message),console.log("this.message.content in addword",this.message.content),console.log("this.artikel in addword",this.artikel);var e={name:"",word:this.word,artikel:this.wordArtikel,plural:"",translation:this.translation,wordType:this.wordType,userID:this.userManager.user.userID};console.log("wordObject in addWord() :",e);var t=new i.a(e);console.log("word in addWord() = new Word(wordObject):",t),t.setMessageID(this.message.messageID),t.setUserID(this.userManager.user.userID),this.message.content.push(t),console.log("this.message.content.push(word); ",this.message),this.messageComp.dictionaryComp.putWord(e),this.messageComp.saveContent(),this.sendNewWord(t),this.close()}else this.showToastError()}},{key:"setToastError",value:function(e){this.formValidationErrorEnum=e}},{key:"getToastError",value:function(){return this.translate.get("CONTENT.AddNewWord.FormValidation."+this.formValidationErrorEnum)}},{key:"showToastError",value:function(){var e=this;this.getToastError().subscribe((function(t){return r.a(e,void 0,void 0,regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.toastCtrl.create({message:t,duration:3e3,position:"middle"});case 2:(n=e.sent).onDidDismiss().then((function(){console.log("Dismissed toast")})),n.present();case 4:case"end":return e.stop()}}),e,this)})))}))}},{key:"sendNewWord",value:function(e){console.log("this.messageComp in sendNewWord(word: Word) :",this.messageComp),console.log("word is sendNewWord(word: Word): ",e),this.messageComp.socketManager.queryPro(this.actionAddNewWord,{messageID:this.message.messageID,word:e},this,this.userManager.user.getMainAccessToken())}},{key:"isFormValid",value:function(){return console.log("this.isDifferentLanguages():",this.isDifferentLanguages()),console.log(" this.isTypeSelected() :",this.isTypeSelected()),console.log("this.isGrammaticValid():",this.isGrammaticValid()),console.log("this.isNotAddedBeforeInThisMessage():",this.isNotAddedBeforeInThisMessage()),!!(this.isDifferentLanguages()&&this.isTypeSelected()&&this.isGrammaticValid()&&this.isNotAddedBeforeInThisMessage())}},{key:"isNotAddedBeforeInThisMessage",value:function(){var e=this;return 0==this.messageComp.dictionaryComp.getAllWords().filter((function(t){if(t.translation.toLowerCase().trim()==e.translation.toLowerCase().trim()||t.word.toLowerCase().trim()==e.translation.toLowerCase().trim())return t})).length||(this.setToastError(o.h.translationHasBeenAlreadyAdded),!1)}},{key:"isGrammaticValid",value:function(){var e=!1;switch(this.wordType){case"noun":e=this.isArtikelSelected();break;case"verb":e=this.isValidVerb();break;case"adverb":default:e=!0}return e}},{key:"isArtikelSelected",value:function(){console.log("this.wordArtikel in isArtikelSelected():",this.wordArtikel);var e=null!=this.wordArtikel;return e||this.setToastError(this.possibleErrors.nounHasNoArtikel),e}},{key:"artikelChanged",value:function(e){console.log("$event:",e),this.artikel=e.detail.value,console.log("artikel in artikelChanged:",this.artikel),this.wordArtikel=this.getWordArtikel(this.artikel),console.log("this.wordArtikel=this.getWordArtikel in artikelChanged:",this.wordArtikel)}},{key:"isValidVerb",value:function(){var e="n"==this.word.slice(-1)&&"\u0646"==this.translation.slice(-1);return e||this.setToastError(this.possibleErrors.verbFormatIsWorng),e}},{key:"isTypeSelected",value:function(){console.log("this.wordType in isTypeSelected():",this.wordType);var e=null!=this.wordType;return e||this.setToastError(this.possibleErrors.wordTypeIsNotDefined),e}},{key:"isDifferentLanguages",value:function(){console.log("this.word in isDifferentLanguages()",this.word);var e=a.c.isArabic(this.word)!=a.c.isArabic(this.translation);return e||this.setToastError(this.possibleErrors.translationInSameLanguage),e}},{key:"close",value:function(){this.view.dismiss()}},{key:"selected",value:function(){console.log("this selected",this.wordType),this.setSelectArticle("noun"==this.wordType.toLowerCase())}},{key:"setSelectArticle",value:function(e){console.log("setSelectArticle(enable : boolean):",e),this.selectArtikel=e}},{key:"isSelectArticle",value:function(){return this.selectArtikel}},{key:"possibleErrors",get:function(){return o.h}}]),e}()},"33wr":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("GAbP");n("6GXZ"),n("2IJ5");var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,r,i,o)).sqlite=e,a.consoleDialog=r,a.injector=i,a.platform=o,a}return _createClass(n,[{key:"setReview",value:function(e,t){this.updateMessageReview(e,t)}}]),n}(r.a)},"3MOV":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("W2O4");n("EGUZ");var o=function(){function e(t,n,r){var i=this;_classCallCheck(this,e),this.http=t,this.storageManager=n,this.loadingCtrl=r,this.ajaxControllerServerUrl="http://server1.bayadic.com/site/loghatnameh/autoPost/bayadicapi/controllers.php",this.ajaxRescueUrl="http://bayadic.com/rescue/system/RescueLeader.php",this.ajaxResetPassUrl="http://bayadic.com/rescue/system/security/ResetPassword.php",this.storageManager.get("ajaxUrl").then((function(e){null!=e&&(i.ajaxControllerServerUrl=e)}))}return _createClass(e,[{key:"queryPro",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"public";return r.a(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o,a=this;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.loadingCtrl.create({message:"\u0644\u0637\u0641\u0627 \u06a9\u0645\u06cc \u0635\u0628\u0631 \u06a9\u0646\u06cc\u062f ...."});case 2:return o=r.sent,r.abrupt("return",(o.present(),new Promise((function(r,s){var l,u,c={action:e,data:t,accessToken:n},h=new i.d;h.append("Accept","application/json"),h.append("Content-Type","application/json");var f=new i.h({headers:h,method:i.g.Post});a.http.post(a.ajaxControllerServerUrl,c,f).subscribe((function(e){l=(l=e._body).trim(),u=JSON.parse(l),r(u),o.dismiss()}),(function(e){console.log(e),s(u=e)}))}))));case 4:case"end":return r.stop()}}),r,this)})))}},{key:"rescue",value:function(e){var t=this;return new Promise((function(n,r){var o,a={version:e},s=new i.d;s.append("Accept","application/json"),s.append("Content-Type","application/json");var l=new i.h({headers:s,method:i.g.Post});t.http.post(t.ajaxRescueUrl,a,l).subscribe((function(e){o=(o=e._body).trim(),n(o)}),(function(e){r(e)}))}))}},{key:"resetPassword",value:function(e){var t=this;return new Promise((function(n,r){var o,a={email:e},s=new i.d;s.append("Accept","application/json"),s.append("Content-Type","application/json");var l=new i.h({headers:s,method:i.g.Post});t.http.post(t.ajaxResetPassUrl,a,l).subscribe((function(e){o=(o=e._body).trim(),n(o)}),(function(e){r(e)}))}))}},{key:"query",value:function(e,t,n){var r,o,a={action:e,data:n},s=new i.d;s.append("Accept","application/json"),s.append("Content-Type","application/json");var l=new i.h({headers:s});return this.http.post(this.ajaxControllerServerUrl,a,l).subscribe((function(e){r=e._body,o=JSON.parse(r),t&&t(o)}),(function(e){console.log(e),o=e})),o}}]),e}()},"3N8a":function(e,t,n){"use strict";var r=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),n}(n("quSY").a);n.d(t,"a",(function(){return i}));var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i.pending=!1,i}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(r)},"3UND":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=(n("h4wn"),n("HKEL"));n("2IJ5"),n("J20c"),n("LKtr");var o=function(){function e(t,n,r,i,o,a,s){_classCallCheck(this,e),this.navCtrl=t,this.router=n,this.consoleDialog=r,this.friendsManager=i,this.chatsManager=o,this.tabsManager=a,this.modalCtrl=s}return _createClass(e,[{key:"openAddDialog",value:function(){return r.a(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalCtrl.create({component:i.a,swipeToClose:!0,cssClass:"friend-modal"});case 2:e.sent.present();case 3:case"end":return e.stop()}}),e,this)})))}},{key:"swipeEvent",value:function(e){console.log(e,"swip event"),4==e.direction&&(this.tabsManager.selectedTab=2,this.router.navigate(["items"]))}},{key:"openChat",value:function(e){var t=this;this.chatsManager.initChat(e.item).then((function(e){return console.log("lets see chat ID from initchat",e),t.chatsManager.synchronizer.getNewMessages(e),e})).then((function(e){t.router.navigate(["chat"],{state:{chat:e}}).then((function(){e.setViewLoaded(!0)}))}))}},{key:"ngOnChanges",value:function(){this.friendsManager.clearFriendsNotification()}}]),e}()},"4I5i":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},"4pTB":function(e,t){},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("ZUHj"),i=n("l7GE"),o=n("51Dv"),a=n("lJxs"),s=n("Cfvw");function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(l((function(n,r){return Object(s.a)(e(n,r)).pipe(Object(a.a)((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new u(e,n))})}var u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.project,this.concurrent))}}]),e}(),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var i=new o.a(this,t,n),a=this.destination;a.add(i);var s=Object(r.a)(this,e,void 0,void 0,i);s!==i&&a.add(s)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyComplete",value:function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(i.a)},"51Dv":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this)).parent=e,o.outerValue=r,o.outerIndex=i,o.index=0,o}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n("7o/Q").a)},"5GAg":function(e,t,n){"use strict";var r=n("SVse"),i=n("8Y7J");n("XNiG"),n("quSY"),n("LRne"),n("dvZr"),n("vkgz"),n("7o/Q"),n("D0XW"),n("pLZG"),n("lJxs");var o=n("IzEk"),a=n("/HVE");n("KCVW"),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return p}));var s,l=((s=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(t){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){var r=n&&n.nodeName.toLowerCase();if(-1===c(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===r)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),o=c(e);if(e.hasAttribute("contenteditable"))return-1!==o;if("iframe"===i)return!1;if("audio"===i){if(!e.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===i){if(!e.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==i||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&e.tabIndex>=0}},{key:"isFocusable",value:function(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||u(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)}}]),e}()).ngInjectableDef=Object(i.Qb)({factory:function(){return new s(Object(i.Rb)(a.a))},token:s,providedIn:"root"}),s);function u(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function c(e){if(!u(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var h,f=function(){function e(t,n,r,i){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=n,this._ngZone=r,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return _createClass(e,[{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-"+e)?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', use 'cdkFocusRegion").concat(e,"' instead. The deprecated attribute will be removed in 8.0.0."),t[n]):t[n].hasAttribute("cdk-focus-region-"+e)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', use 'cdkFocusRegion").concat(e,"' instead. The deprecated attribute will be removed in 8.0.0."),t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return e?(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),Object(i.W)()&&!this._checker.isFocusable(e)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",e),e.focus(),!0):this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e}},{key:"focusLastTabbableElement",value:function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var r=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(r)return r}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(Object(o.a)(1)).subscribe(e)}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}}]),e}(),d=((h=function(){function e(t,n,r){_classCallCheck(this,e),this._checker=t,this._ngZone=n,this._document=r}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new f(e,this._checker,this._ngZone,this._document,t)}}]),e}()).ngInjectableDef=Object(i.Qb)({factory:function(){return new h(Object(i.Rb)(l),Object(i.Rb)(i.x),Object(i.Rb)(r.d))},token:h,providedIn:"root"}),h);function p(e){return 0===e.buttons}},"6GXZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("mrSG"),i=n("a3Cf"),o=function(){function e(e){this._objectInstance=e}return e.prototype.addTransaction=function(e){return Object(i.cordovaInstance)(this,"addTransaction",{sync:!0},arguments)},e.prototype.transaction=function(e){return Object(i.cordovaInstance)(this,"transaction",{successIndex:2,errorIndex:1},arguments)},e.prototype.readTransaction=function(e){return Object(i.cordovaInstance)(this,"readTransaction",{},arguments)},e.prototype.startNextTransaction=function(){return Object(i.cordovaInstance)(this,"startNextTransaction",{sync:!0},arguments)},e.prototype.open=function(){return Object(i.cordovaInstance)(this,"open",{},arguments)},e.prototype.close=function(){return Object(i.cordovaInstance)(this,"close",{},arguments)},e.prototype.executeSql=function(e,t){return Object(i.cordovaInstance)(this,"executeSql",{},arguments)},e.prototype.sqlBatch=function(e){return Object(i.cordovaInstance)(this,"sqlBatch",{},arguments)},e.prototype.abortallPendingTransactions=function(){return Object(i.cordovaInstance)(this,"abortallPendingTransactions",{sync:!0},arguments)},Object.defineProperty(e.prototype,"databaseFeatures",{get:function(){return Object(i.instancePropertyGet)(this,"databaseFeatures")},set:function(e){Object(i.instancePropertySet)(this,"databaseFeatures",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openDBs",{get:function(){return Object(i.instancePropertyGet)(this,"openDBs")},set:function(e){Object(i.instancePropertySet)(this,"openDBs",e)},enumerable:!0,configurable:!0}),e}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.create=function(e){var t=this;return function(){if(!0===Object(i.checkAvailability)(t))return new Promise((function(t,n){sqlitePlugin.openDatabase(e,(function(e){return t(new o(e))}),n)}))}()},t.prototype.echoTest=function(){return Object(i.cordova)(this,"echoTest",{},arguments)},t.prototype.selfTest=function(){return Object(i.cordova)(this,"selfTest",{},arguments)},t.prototype.deleteDatabase=function(e){return Object(i.cordova)(this,"deleteDatabase",{},arguments)},t.pluginName="SQLite",t.pluginRef="sqlitePlugin",t.plugin="cordova-sqlite-storage",t.repo="https://github.com/litehelpers/Cordova-sqlite-storage",t.platforms=["Android","iOS","macOS","Windows"],t}(i.IonicNativePlugin)},"6cfT":function(e,t,n){"use strict";n.r(t),n.d(t,"iosTransitionAnimation",(function(){return h})),n.d(t,"shadow",(function(){return a})),n("ePDZ"),n("gHap");var r=n("XnfD"),i=n("tNMG"),o=function(e){return document.querySelector(e+".ion-cloned-element")},a=function(e){return e.shadowRoot||e},s=function(e){var t="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),n="ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=t){var r=t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=r?r.querySelector(n):null}return e.querySelector(n)},l=function(e,t){var n="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),r=[];if(null!=n){var i=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=i&&(r=i.querySelectorAll("ion-buttons"))}else r=e.querySelectorAll("ion-buttons");var o,a=_createForOfIteratorHelper(r);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=s.closest("ion-header"),u=l&&!l.classList.contains("header-collapse-condense-inactive"),c=s.querySelector("ion-back-button"),h=s.classList.contains("buttons-collapse"),f="start"===s.slot||""===s.slot;if(null!==c&&f&&(h&&u&&t||!h))return c}}catch(d){a.e(d)}finally{a.f()}return null},u=function(e,t,n,i,s,l){var u=t?"calc(100% - ".concat(l.right+4,"px)"):l.left-4+"px",c=t?"7px":"-7px",h=t?"-4px":"4px",f=t?"-4px":"4px",d=t?"right":"left",p=t?"left":"right",v=n?[{offset:0,opacity:1,transform:"translate3d(".concat(h,", ").concat(l.top-46,"px, 0) scale(1)")},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d(".concat(c,", ").concat(s.top-40,"px, 0) scale(2.1)")}]:[{offset:0,opacity:0,transform:"translate3d(".concat(c,", ").concat(s.top-40,"px, 0) scale(2.1)")},{offset:1,opacity:1,transform:"translate3d(".concat(h,", ").concat(l.top-46,"px, 0) scale(1)")}],g=n?[{offset:0,opacity:1,transform:"translate3d(".concat(f,", ").concat(l.top-46,"px, 0) scale(1)")},{offset:.2,opacity:0,transform:"translate3d(".concat(f,", ").concat(l.top-41,"px, 0) scale(0.6)")},{offset:1,opacity:0,transform:"translate3d(".concat(f,", ").concat(l.top-41,"px, 0) scale(0.6)")}]:[{offset:0,opacity:0,transform:"translate3d(".concat(f,", ").concat(l.top-41,"px, 0) scale(0.6)")},{offset:1,opacity:1,transform:"translate3d(".concat(f,", ").concat(l.top-46,"px, 0) scale(1)")}],m=Object(r.a)(),y=Object(r.a)(),b=o("ion-back-button"),k=a(b).querySelector(".button-text"),_=a(b).querySelector("ion-icon");b.text=i.text,b.mode=i.mode,b.icon=i.icon,b.color=i.color,b.disabled=i.disabled,b.style.setProperty("display","block"),b.style.setProperty("position","fixed"),y.addElement(_),m.addElement(k),m.beforeStyles({"transform-origin":d+" center"}).beforeAddWrite((function(){i.style.setProperty("display","none"),b.style.setProperty(d,u)})).afterAddWrite((function(){i.style.setProperty("display",""),b.style.setProperty("display","none"),b.style.removeProperty(d)})).keyframes(v),y.beforeStyles({"transform-origin":p+" center"}).keyframes(g),e.addAnimation([m,y])},c=function(e,t,n,i,a,s){var l=t?"calc(100% - ".concat(a.right,"px)"):a.left+"px",u=t?"-18px":"18px",c=t?"right":"left",h=n?[{offset:0,opacity:0,transform:"translate3d(".concat(u,", ").concat(s.top-4,"px, 0) scale(0.49)")},{offset:.1,opacity:0},{offset:1,opacity:1,transform:"translate3d(0, ".concat(a.top-2,"px, 0) scale(1)")}]:[{offset:0,opacity:.99,transform:"translate3d(0, ".concat(a.top-2,"px, 0) scale(1)")},{offset:.6,opacity:0},{offset:1,opacity:0,transform:"translate3d(".concat(u,", ").concat(s.top-4,"px, 0) scale(0.5)")}],f=o("ion-title"),d=Object(r.a)();f.innerText=i.innerText,f.size=i.size,f.color=i.color,d.addElement(f),d.beforeStyles(_defineProperty({"transform-origin":c+" center",height:"46px",display:"",position:"relative"},c,l)).beforeAddWrite((function(){i.style.setProperty("display","none")})).afterAddWrite((function(){i.style.setProperty("display",""),f.style.setProperty("display","none")})).keyframes(h),e.addAnimation(d)},h=function(e,t){try{var n="opacity",o="rtl"===e.ownerDocument.dir,h=o?"-99.5%":"99.5%",f=o?"33%":"-33%",d=t.enteringEl,p=t.leavingEl,v="back"===t.direction,g=d.querySelector(":scope > ion-content"),m=d.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),y=d.querySelectorAll(":scope > ion-header > ion-toolbar"),b=Object(r.a)(),k=Object(r.a)();if(b.addElement(d).duration(t.duration||540).easing(t.easing||"cubic-bezier(0.32,0.72,0,1)").fill("both").beforeRemoveClass("ion-page-invisible"),p&&e){var _=Object(r.a)();_.addElement(e),b.addAnimation(_)}if(g||0!==y.length||0!==m.length?(k.addElement(g),k.addElement(m)):k.addElement(d.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),b.addAnimation(k),v?k.beforeClearStyles([n]).fromTo("transform","translateX(".concat(f,")"),"translateX(".concat("0%",")")).fromTo(n,.8,1):k.beforeClearStyles([n]).fromTo("transform","translateX(".concat(h,")"),"translateX(".concat("0%",")")),g){var C=a(g).querySelector(".transition-effect");if(C){var w=C.querySelector(".transition-cover"),S=C.querySelector(".transition-shadow"),O=Object(r.a)(),x=Object(r.a)(),E=Object(r.a)();O.addElement(C).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),x.addElement(w).beforeClearStyles([n]).fromTo(n,0,.1),E.addElement(S).beforeClearStyles([n]).fromTo(n,.03,.7),O.addAnimation([x,E]),k.addAnimation([O])}}var T=d.querySelector("ion-header.header-collapse-condense"),M=function(e,t,n,r,i){var o=l(r,n),a=s(i),h=s(r),f=l(i,n),d=null!==o&&null!==a&&!n,p=null!==h&&null!==f&&n;if(d){var v=a.getBoundingClientRect(),g=o.getBoundingClientRect();c(e,t,n,a,v,g),u(e,t,n,o,v,g)}else if(p){var m=h.getBoundingClientRect(),y=f.getBoundingClientRect();c(e,t,n,h,m,y),u(e,t,n,f,m,y)}return{forward:d,backward:p}}(b,o,v,d,p),A=M.forward,I=M.backward;if(y.forEach((function(e){var t=Object(r.a)();t.addElement(e),b.addAnimation(t);var i=Object(r.a)();i.addElement(e.querySelector("ion-title"));var s,l=Object(r.a)(),u=Array.from(e.querySelectorAll("ion-buttons,[menuToggle]")),c=e.closest("ion-header"),d=c&&c.classList.contains("header-collapse-condense-inactive");s=u.filter(v?function(e){var t=e.classList.contains("buttons-collapse");return t&&!d||!t}:function(e){return!e.classList.contains("buttons-collapse")}),l.addElement(s);var p=Object(r.a)();p.addElement(e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));var g=Object(r.a)();g.addElement(a(e).querySelector(".toolbar-background"));var m=Object(r.a)(),y=e.querySelector("ion-back-button");if(y&&m.addElement(y),t.addAnimation([i,l,p,g,m]),l.fromTo(n,.01,1),p.fromTo(n,.01,1),v)d||i.fromTo("transform","translateX(".concat(f,")"),"translateX(".concat("0%",")")).fromTo(n,.01,1),p.fromTo("transform","translateX(".concat(f,")"),"translateX(".concat("0%",")")),m.fromTo(n,.01,1);else if(T||i.fromTo("transform","translateX(".concat(h,")"),"translateX(".concat("0%",")")).fromTo(n,.01,1),p.fromTo("transform","translateX(".concat(h,")"),"translateX(".concat("0%",")")),g.beforeClearStyles([n,"transform"]),(null==c?void 0:c.translucent)?g.fromTo("transform",o?"translateX(-100%)":"translateX(100%)","translateX(0px)"):g.fromTo(n,.01,"var(--opacity)"),A||m.fromTo(n,.01,1),y&&!A){var k=Object(r.a)();k.addElement(a(y).querySelector(".button-text")).fromTo("transform",o?"translateX(-100px)":"translateX(100px)","translateX(0px)"),t.addAnimation(k)}})),p){var P=Object(r.a)(),D=p.querySelector(":scope > ion-content"),N=p.querySelectorAll(":scope > ion-header > ion-toolbar"),j=p.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(D||0!==N.length||0!==j.length?(P.addElement(D),P.addElement(j)):P.addElement(p.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),b.addAnimation(P),v){P.beforeClearStyles([n]).fromTo("transform","translateX(".concat("0%",")"),o?"translateX(-100%)":"translateX(100%)");var R=Object(i.g)(p);b.afterAddWrite((function(){"normal"===b.getDirection()&&R.style.setProperty("display","none")}))}else P.fromTo("transform","translateX(".concat("0%",")"),"translateX(".concat(f,")")).fromTo(n,1,.8);if(D){var L=a(D).querySelector(".transition-effect");if(L){var F=L.querySelector(".transition-cover"),B=L.querySelector(".transition-shadow"),V=Object(r.a)(),H=Object(r.a)(),z=Object(r.a)();V.addElement(L).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),H.addElement(F).beforeClearStyles([n]).fromTo(n,.1,0),z.addElement(B).beforeClearStyles([n]).fromTo(n,.7,.03),V.addAnimation([H,z]),P.addAnimation([V])}}N.forEach((function(e){var t=Object(r.a)();t.addElement(e);var i=Object(r.a)();i.addElement(e.querySelector("ion-title"));var s=Object(r.a)(),l=e.querySelectorAll("ion-buttons,[menuToggle]"),u=e.closest("ion-header"),c=u&&u.classList.contains("header-collapse-condense-inactive"),h=Array.from(l).filter((function(e){var t=e.classList.contains("buttons-collapse");return t&&!c||!t}));s.addElement(h);var d=Object(r.a)(),p=e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");p.length>0&&d.addElement(p);var g=Object(r.a)();g.addElement(a(e).querySelector(".toolbar-background"));var m=Object(r.a)(),y=e.querySelector("ion-back-button");if(y&&m.addElement(y),t.addAnimation([i,s,d,m,g]),b.addAnimation(t),m.fromTo(n,.99,0),s.fromTo(n,.99,0),d.fromTo(n,.99,0),v){if(c||i.fromTo("transform","translateX(".concat("0%",")"),o?"translateX(-100%)":"translateX(100%)").fromTo(n,.99,0),d.fromTo("transform","translateX(".concat("0%",")"),o?"translateX(-100%)":"translateX(100%)"),g.beforeClearStyles([n,"transform"]),(null==u?void 0:u.translucent)?g.fromTo("transform","translateX(0px)",o?"translateX(-100%)":"translateX(100%)"):g.fromTo(n,"var(--opacity)",0),y&&!I){var k=Object(r.a)();k.addElement(a(y).querySelector(".button-text")).fromTo("transform","translateX(".concat("0%",")"),"translateX(".concat((o?-124:124)+"px",")")),t.addAnimation(k)}}else c||i.fromTo("transform","translateX(".concat("0%",")"),"translateX(".concat(f,")")).fromTo(n,.99,0).afterClearStyles(["transform",n]),d.fromTo("transform","translateX(".concat("0%",")"),"translateX(".concat(f,")")).afterClearStyles(["transform",n]),m.afterClearStyles([n]),i.afterClearStyles([n]),s.afterClearStyles([n])}))}return b}catch($){throw $}}},"7BDe":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(t){_classCallCheck(this,e),this.autoInit=!0,this.title=t.title||t.itemTitle,this.name=t.name,this.type=t.type||t.itemType,this.itemID=t.itemID,this.storageID=t.storageID,this.localCount=t.localCount,this.userID=t.userID,this.status=t.status,null==t.localCount&&(this.localCount=0)}return _createClass(e,[{key:"setStorageID",value:function(e){this.storageID=e}},{key:"setUserID",value:function(e){this.userID=e}},{key:"setAutoInit",value:function(e){this.autoInit=e}},{key:"isAutoInit",value:function(){return this.autoInit}},{key:"getSimpleModel",value:function(){var t=new e(Object.assign({},this));return t.chat=null,t}}]),e}()},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("n6bG"),i=n("gRHU"),o=n("quSY"),a=n("2QA8"),s=n("2fFW"),l=n("NJ4a"),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,o){var a;switch(_classCallCheck(this,n),(a=t.call(this)).syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.a;break;case 1:if(!e){a.destination=i.a;break}if("object"==typeof e){e instanceof n?(a.syncErrorThrowable=e.syncErrorThrowable,a.destination=e,e.add(_assertThisInitialized(a))):(a.syncErrorThrowable=!0,a.destination=new c(_assertThisInitialized(a),e));break}default:a.syncErrorThrowable=!0,a.destination=new c(_assertThisInitialized(a),e,r,o)}return a}return _createClass(n,[{key:a.a,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i}}]),n}(o.a),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,o,a,s){var l,u;_classCallCheck(this,n),(l=t.call(this))._parentSubscriber=e;var c=_assertThisInitialized(l);return Object(r.a)(o)?u=o:o&&(u=o.next,a=o.error,s=o.complete,o!==i.a&&(c=Object.create(o),Object(r.a)(c.unsubscribe)&&l.add(c.unsubscribe.bind(c)),c.unsubscribe=l.unsubscribe.bind(_assertThisInitialized(l)))),l._context=c,l._next=u,l._error=a,l._complete=s,l}return _createClass(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;s.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=s.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(l.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(l.a)(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};s.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),s.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!s.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return s.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(l.a)(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(u)},"8LZa":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(t){_classCallCheck(this,e),this.iconName="add",this.text=t,this.textKey=t}return _createClass(e,[{key:"click",value:function(){this.clickFunction()}},{key:"onClick",value:function(e){console.log(e,"function :D"),this.clickFunction=e}},{key:"translate",value:function(){var e=this;return this.optionMenuComp.headerComp.translateService.get(this.textKey).subscribe((function(t){e.text=t})),this}},{key:"setChatOptionMenu",value:function(e){this.optionMenuComp=e}},{key:"getIcon",value:function(){return this.iconName}},{key:"setIcon",value:function(e){return this.iconName=e,this}}]),e}()},"8Y7J":function(e,t,n){"use strict";n.d(t,"kb",(function(){return Ha})),n.d(t,"lb",(function(){return za})),n.d(t,"mb",(function(){return $a})),n.d(t,"nb",(function(){return qa})),n.d(t,"jb",(function(){return Vo})),n.d(t,"ib",(function(){return Eo})),n.d(t,"g",(function(){return Ea})),n.d(t,"R",(function(){return wa})),n.d(t,"w",(function(){return Ca})),n.d(t,"S",(function(){return Ve})),n.d(t,"W",(function(){return Be})),n.d(t,"c",(function(){return Bo})),n.d(t,"A",(function(){return zo})),n.d(t,"z",(function(){return $o})),n.d(t,"b",(function(){return qo})),n.d(t,"d",(function(){return Lo})),n.d(t,"e",(function(){return Fo})),n.d(t,"U",(function(){return Fa})),n.d(t,"M",(function(){return ga})),n.d(t,"Y",(function(){return ya})),n.d(t,"s",(function(){return Wo})),n.d(t,"f",(function(){return Ua})),n.d(t,"m",(function(){return No})),n.d(t,"l",(function(){return Ot})),n.d(t,"G",(function(){return ct})),n.d(t,"H",(function(){return ut})),n.d(t,"a",(function(){return X})),n.d(t,"P",(function(){return Q})),n.d(t,"N",(function(){return hr})),n.d(t,"Qb",(function(){return v})),n.d(t,"T",(function(){return k})),n.d(t,"p",(function(){return V})),n.d(t,"Rb",(function(){return N})),n.d(t,"V",(function(){return j})),n.d(t,"o",(function(){return E})),n.d(t,"n",(function(){return u})),n.d(t,"y",(function(){return c})),n.d(t,"I",(function(){return f})),n.d(t,"x",(function(){return ua})),n.d(t,"C",(function(){return ar})),n.d(t,"D",(function(){return ur})),n.d(t,"E",(function(){return sr})),n.d(t,"F",(function(){return lr})),n.d(t,"i",(function(){return ea})),n.d(t,"j",(function(){return Yn})),n.d(t,"k",(function(){return ir})),n.d(t,"t",(function(){return nr})),n.d(t,"v",(function(){return tr})),n.d(t,"u",(function(){return Ma})),n.d(t,"B",(function(){return Ro})),n.d(t,"J",(function(){return Pa})),n.d(t,"K",(function(){return Aa})),n.d(t,"L",(function(){return Ar})),n.d(t,"O",(function(){return Pr})),n.d(t,"h",(function(){return Or})),n.d(t,"q",(function(){return wr})),n.d(t,"r",(function(){return Sr})),n.d(t,"Q",(function(){return jn})),n.d(t,"X",(function(){return Va})),n.d(t,"xb",(function(){return Rn})),n.d(t,"bb",(function(){return Uo})),n.d(t,"Z",(function(){return F})),n.d(t,"ab",(function(){return Kn})),n.d(t,"eb",(function(){return st})),n.d(t,"fb",(function(){return dt})),n.d(t,"gb",(function(){return qe})),n.d(t,"vb",(function(){return x})),n.d(t,"Ab",(function(){return Dn})),n.d(t,"Kb",(function(){return y})),n.d(t,"yb",(function(){return Wn})),n.d(t,"zb",(function(){return Un})),n.d(t,"ub",(function(){return Po})),n.d(t,"tb",(function(){return Do})),n.d(t,"cb",(function(){return To})),n.d(t,"db",(function(){return Mo})),n.d(t,"Pb",(function(){return ae})),n.d(t,"Tb",(function(){return Fn})),n.d(t,"Sb",(function(){return Vn})),n.d(t,"Ob",(function(){return Hn})),n.d(t,"Ub",(function(){return zn})),n.d(t,"hb",(function(){return Wa})),n.d(t,"ob",(function(){return Bi})),n.d(t,"pb",(function(){return gl})),n.d(t,"qb",(function(){return Jr})),n.d(t,"rb",(function(){return uo})),n.d(t,"sb",(function(){return Ga})),n.d(t,"wb",(function(){return wi})),n.d(t,"Bb",(function(){return Ai})),n.d(t,"Cb",(function(){return Mi})),n.d(t,"Db",(function(){return rs})),n.d(t,"Eb",(function(){return Qi})),n.d(t,"Fb",(function(){return co})),n.d(t,"Ib",(function(){return ho})),n.d(t,"Gb",(function(){return as})),n.d(t,"Hb",(function(){return os})),n.d(t,"Jb",(function(){return Ya})),n.d(t,"Lb",(function(){return ls})),n.d(t,"Mb",(function(){return Xr})),n.d(t,"Nb",(function(){return hs}));var r=n("XNiG"),i=n("quSY"),o=n("HDdC"),a=n("VRyK"),s=n("w1tV");function l(e,t,n){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof i)return r.apply(this,t),this;var o=_construct(i,t);return a.annotation=o,a;function a(e,t,n){for(var r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}var u=l("Inject",(function(e){return{token:e}})),c=l("Optional"),h=l("Self"),f=l("SkipSelf"),d=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function p(e){for(var t in e)if(e[t]===p)return t;throw Error("Could not find renamed property on target object.")}function v(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function g(e){var t=e[m];return t&&t.token===e?t:null}var m=p({ngInjectableDef:p});function y(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(y).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}var b=p({__forward_ref__:p});function k(e){return e.__forward_ref__=k,e.toString=function(){return y(this())},e}function _(e){var t=e;return"function"==typeof t&&t.hasOwnProperty(b)&&t.__forward_ref__===k?t():e}var C="undefined"!=typeof globalThis&&globalThis,w="undefined"!=typeof window&&window,S="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,O="undefined"!=typeof global&&global,x=C||O||w||S,E=function(){function e(t,n){_classCallCheck(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.ngInjectableDef=v({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return _createClass(e,[{key:"toString",value:function(){return"InjectionToken "+this._desc}}]),e}(),T=new E("INJECTOR",-1),M=new Object,A=/\n/gm,I=p({provide:String,useValue:p}),P=void 0;function D(e){var t=P;return P=e,t}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Default;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Default;if(void 0===P)throw new Error("inject() must be called from an injection context");return null===P?function(e,t,n){var r=g(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&d.Optional)return null;throw new Error("Injector: NOT_FOUND [".concat(y(e),"]"))}(e,0,t):P.get(e,t&d.Optional?null:void 0,t)}(e,t)}var j=N,R=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M;if(t===M){var n=new Error("NullInjectorError: No provider for ".concat(y(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}();function L(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=y(t);if(t instanceof Array)i=t.map(y).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):y(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(A,"\n "))}var F=new E("The presence of this token marks an injector as being the root injector."),B=function(e,t,n){return new U(e,t,n)},V=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?B(e,t,""):B(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=M,e.NULL=new R,e.ngInjectableDef=v({token:e,providedIn:"any",factory:function(){return N(T)}}),e.__NG_ELEMENT_ID__=-1,e}(),H=function(e){return e},z=[],$=H,q=function(){return Array.prototype.slice.call(arguments)},U=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.NULL,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,e),this.parent=n,this.source=r;var i=this._records=new Map;i.set(V,{token:V,fn:H,deps:z,value:this,useNew:!1}),i.set(T,{token:T,fn:H,deps:z,value:this,useNew:!1}),function e(t,n){if(n)if((n=_(n))instanceof Array)for(var r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw G("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw G("Unexpected provider",n);var i=_(n.provide),o=function(e){var t=function(e){var t=z,n=e.deps;if(n&&n.length){t=[];for(var r=0;r<n.length;r++){var i=6,o=_(n[r]);if(o instanceof Array)for(var a=0,s=o;a<s.length;a++){var l=s[a];l instanceof c||l==c?i|=1:l instanceof f||l==f?i&=-3:l instanceof h||l==h?i&=-5:o=l instanceof u?l.token:_(l)}t.push({token:o,options:i})}}else if(e.useExisting)t=[{token:_(e.useExisting),options:6}];else if(!(n||I in e))throw G("'deps' required",e);return t}(e),n=H,r=z,i=!1,o=_(e.provide);if(I in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)i=!0,n=_(e.useClass);else{if("function"!=typeof o)throw G("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);i=!0,n=o}return{deps:t,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){var a=t.get(i);if(a){if(a.fn!==q)throw W(i)}else t.set(i,a={token:n.provide,deps:[],useNew:!1,fn:q,value:z});i=n,a.deps.push({token:i,options:6})}var s=t.get(i);if(s&&s.fn==q)throw W(i);t.set(i,o)}}(i,t)}return _createClass(e,[{key:"get",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.Default,r=this._records.get(e);try{return function e(t,n,r,i,o,a){try{return function(t,n,r,i,o,a){var s;if(!n||a&d.SkipSelf)a&d.Self||(s=i.get(t,o,d.Default));else{if((s=n.value)==$)throw Error("\u0275Circular dependency");if(s===z){n.value=$;var l=n.useNew,u=n.fn,c=n.deps,h=z;if(c.length){h=[];for(var f=0;f<c.length;f++){var p=c[f],v=p.options,g=2&v?r.get(p.token):void 0;h.push(e(p.token,g,r,g||4&v?i:V.NULL,1&v?null:V.THROW_IF_NOT_FOUND,d.Default))}}n.value=s=l?_construct(u,_toConsumableArray(h)):u.apply(void 0,h)}}return s}(t,n,r,i,o,a)}catch(s){throw s instanceof Error||(s=new Error(s)),(s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(t),n&&n.value==$&&(n.value=z),s}}(e,r,this._records,this.parent,t,n)}catch(i){return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=L("\n"+e.message,i,"StaticInjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(i,e,0,this.source)}}},{key:"toString",value:function(){var e=[];return this._records.forEach((function(t,n){return e.push(y(n))})),"StaticInjector[".concat(e.join(", "),"]")}}]),e}();function W(e){return G("Cannot mix multi providers and regular providers",e)}function G(e,t){return new Error(L(e,t,"StaticInjectorError"))}var X=new E("AnalyzeForEntryComponents"),J=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),Q=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),Z={},Y=[],K=p({ngComponentDef:p}),ee=p({ngDirectiveDef:p}),te=p({ngPipeDef:p}),ne=0;function re(e){return function(e){return e[K]||null}(e)||function(e){return e[ee]||null}(e)}function ie(e){return function(e){return e[te]||null}(e)}function oe(e,t){if(null==e)return Z;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var ae=function(e){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,consts:e.consts,vars:e.vars,factory:e.factory,template:e.template||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===J.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Q.Emulated,id:"c",styles:e.styles||Y,_:null,setInput:null,schemas:e.schemas||null,tView:null};return i._=""+{toString:function(){var n=e.directives,o=e.features,a=e.pipes;i.id+=ne++,i.inputs=oe(e.inputs,r),i.outputs=oe(e.outputs),o&&o.forEach((function(e){return e(i)})),i.directiveDefs=n?function(){return("function"==typeof n?n():n).map(re)}:null,i.pipeDefs=a?function(){return("function"==typeof a?a():a).map(ie)}:null,t.hasOwnProperty(m)||(t[m]=v({token:t,factory:e.factory}))}},i},se=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(x);function le(e){for(;Array.isArray(e);)e=e[0];return e}function ue(e){return Array.isArray(e)&&"object"==typeof e[1]}function ce(e){return Array.isArray(e)&&!0===e[1]}function he(e,t){return t[1].data[e+20]}function fe(e){var t=function(e){return e.__ngContext__}(e);return t?Array.isArray(t)?t:t.lView:null}function de(e){e[18]=0}function pe(e,t,n,r){n||ve(e,t.preOrderHooks,t.preOrderCheckHooks,n,0,void 0!==r?r:null)}function ve(e,t,n,r,i,o){if(!r){var a=(3&e[2])===i?t:n;a&&function(e,t,n,r){for(var i=null!=r?r:-1,o=0,a=void 0!==r?65535&e[18]:0;a<t.length;a++)if("number"==typeof t[a+1]){if(o=t[a],null!=r&&o>=r)break}else t[a]<0&&(e[18]+=65536),(o<i||-1==i)&&(ge(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}(e,a,i,o),null==o&&(3&e[2])===i&&3!==i&&(e[2]&=1023,e[2]+=1)}}function ge(e,t,n,r){var i=n[r]<0,o=n[r+1],a=e[i?-n[r]:n[r]];i?e[2]>>10<e[18]>>16&&(3&e[2])===t&&(e[2]+=1024,o.call(a)):o.call(a)}var me=null;function ye(e){me=e}function be(){return Ce}var ke,_e,Ce,we=1,Se=0,Oe=0;function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;Ne!==e&&(Re(null==e?-1:e),we=null==e?0:1,Se=0,Oe=0)}function Ee(){return ke}function Te(e,t){ke=e,_e=t}function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ce;return 4==(4&e[2])}function Ae(e){e}function Ie(e){e}function Pe(e,t){var n=Ce;return e&&e[1].bindingStartIndex,ke=t,_e=!0,Ce=e,n}function De(e,t){var n=Ce[1];if(Me(Ce))Ce[2]&=-5;else try{de(Ce),t&&ve(Ce,n.viewHooks,n.viewCheckHooks,!1,2,void 0)}finally{Ce[2]&=-73,Ce[7]=n.bindingStartIndex}ye(null),Pe(e,null)}var Ne=-1;function je(){return Ne}function Re(e){Ne=e,ye(null)}var Le=!0,Fe=!1;function Be(){return Fe=!0,Le}function Ve(){if(Fe)throw new Error("Cannot enable prod mode after platform setup.");Le=!1}var He=function(){function e(t){if(_classCallCheck(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n),this.inertBodyElement=this.inertDocument.createElement("body"),n.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return _createClass(e,[{key:"getInertBodyElement_XHR",value:function(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n}},{key:"getInertBodyElement_DOMParser",value:function(e){e="<body><remove></remove>"+e+"</body>";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}}},{key:"getInertBodyElement_InertDocument",value:function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var r=t.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.removeAttribute(r)}for(var i=e.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}]),e}(),ze=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,$e=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function qe(e){return(e=String(e)).match(ze)||e.match($e)?e:(Be()&&console.warn("WARNING: sanitizing unsafe URL value ".concat(e," (see http://g.co/ng/security#xss)")),"unsafe:"+e)}function Ue(e){var t,n={},r=_createForOfIteratorHelper(e.split(","));try{for(r.s();!(t=r.n()).done;){n[t.value]=!0}}catch(i){r.e(i)}finally{r.f()}return n}function We(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];for(var s in a)a.hasOwnProperty(s)&&(e[s]=!0)}return e}var Ge,Xe=Ue("area,br,col,hr,img,wbr"),Je=Ue("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Qe=Ue("rp,rt"),Ze=We(Qe,Je),Ye=We(Xe,We(Je,Ue("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),We(Qe,Ue("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ze),Ke=Ue("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),et=Ue("srcset"),tt=We(Ke,et,Ue("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ue("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),nt=Ue("script,style,template"),rt=function(){function e(){_classCallCheck(this,e),this.sanitizedSomething=!1,this.buf=[]}return _createClass(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t=e.nodeName.toLowerCase();if(!Ye.hasOwnProperty(t))return this.sanitizedSomething=!0,!nt.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);for(var n,r=e.attributes,i=0;i<r.length;i++){var o=r.item(i),a=o.name,s=a.toLowerCase();if(tt.hasOwnProperty(s)){var l=o.value;Ke[s]&&(l=qe(l)),et[s]&&(n=l,l=(n=String(n)).split(",").map((function(e){return qe(e.trim())})).join(", ")),this.buf.push(" ",a,'="',at(l),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();Ye.hasOwnProperty(t)&&!Xe.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(at(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}]),e}(),it=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ot=/([^\#-~ |!])/g;function at(e){return e.replace(/&/g,"&").replace(it,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(ot,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}function st(e,t){var n=null;try{Ge=Ge||new He(e);var r=t?String(t):"";n=Ge.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Ge.getInertBodyElement(r)}while(r!==o);var a=new rt,s=a.sanitizeChildren(lt(n)||n);return Be()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var l=lt(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}function lt(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ut=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),ct=function e(){_classCallCheck(this,e)},ht=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),ft=/^url\(([^)]+)\)$/;function dt(e){if(!(e=String(e).trim()))return"";var t=e.match(ft);return t&&qe(t[1])===t[1]||e.match(ht)&&function(e){for(var t=!0,n=!0,r=0;r<e.length;r++){var i=e.charAt(r);"'"===i&&n?t=!t:'"'===i&&t&&(n=!n)}return t&&n}(e)?e:(Be()&&console.warn("WARNING: sanitizing unsafe style value ".concat(e," (see http://g.co/ng/security#xss).")),"unsafe")}var pt=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();function vt(e){return!!e.listen}var gt=function(){function e(){_classCallCheck(this,e),this._players=[]}return _createClass(e,[{key:"flushPlayers",value:function(){for(var e=0;e<this._players.length;e++){var t=this._players[e];t.parent||0!==t.state||t.play()}this._players.length=0}},{key:"queuePlayer",value:function(e){this._players.push(e)}}]),e}();function mt(e,t,n,r){var i=[e||null,0,[],n||[null,null],r||[null,null],[0,0],[0],[0],null,null];return yt(i,0),i}function yt(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=arguments.length>3?arguments[3]:void 0,i=e[2],o=2*t,a=o+2,s=i.length;s<a;s+=2)i.push(-1,null);var l=o+0;n>=0&&-1===i[l]&&(i[l]=n,i[o+1]=r||null)}function bt(e,t,n,r,i,o){return o=o||n,i?e[i]=r:e.push(r),!!r&&(r.addEventListener(200,(function(){var t=e.indexOf(r);t&&(t<e[0]?e[t]=null:e.splice(t,1)),r.destroy()})),(t.playerHandler||(t.playerHandler=new gt)).queuePlayer(r,o),!0)}function kt(e){var t=e[3];return ce(t)?t[3]:t}function _t(e){return function(e){for(var t=ue(e)?e:fe(e);t&&!(512&t[2]);)t=kt(t);return t}(e)[9]}function Ct(e){return e.ngDebugContext}function wt(e){return e.ngOriginalError}function St(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.error.apply(e,n)}var Ot=function(){function e(){_classCallCheck(this,e),this._console=console}return _createClass(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||St}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?Ct(e)?Ct(e):this._findContext(wt(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=wt(e);t&&wt(t);)t=wt(t);return t}}]),e}();function xt(e){return"ng-reflect-"+e.replace(/[$@]/g,"_").replace(Et,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"-"+t[1].toLowerCase()}))}var Et=/([A-Z])/g;function Tt(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}var Mt={};function At(e,t,n,r){var i=e[8];if(null!=i){var o=function(e,t){for(var n=1;n<e.length;n+=3)if(e[n+0]>t)return n;return e.length}(i,t);i.splice(o,0,t,n,r)}}function It(e,t,n,r){for(var i=n;i<r;i+=4)if(tn(e,i)===t)return i;return-1}function Pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Nt(e,t,!0,n)}function Dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Nt(e,t,!1,n)}function Nt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!function(e,t,n,r){return!e[t?6:7][1+4*n+0]&&(r===Mt||mn(e,t,n)===r)}(e,n,r,t)){var i,o,a,s=(t=t===Mt?mn(e,n,r):t)instanceof function(){return function e(t,n){_classCallCheck(this,e),this.fn=t,this.value=n}}()?new hn(t,e[0],n?1:2):null,l=s?t.value:t,u=n?1:3,c=s?u:0,h=!1;(function(e,t,n){var r=e[9];if(t){if(!r||0===n)return!0}else if(!r)return!1;return r[n]!==t})(e,s,u)&&(function(e,t,n){var r=e[9]||(e[9]=[5,null,null,null,null]);n>0?r[n]=t:(r.splice(n=r[0],0,t,null),r[0]+=2)}(e,s,u),h=!0);var f=!1;n?("string"==typeof l?(a=l.split(/\s+/),f=!0):a=l?Object.keys(l):Y,i=Ut(e),o=e.length):(i=Wt(e),o=Ut(e),a=l?Object.keys(l):Y),function(e,t,n,r,i,o,a,s,l){for(var u=!1,c=1+4*t,h=e[l?6:7],f=h[c+1],d=h[c+3],p=1===h[c+0]||!(h[c+2]||!s),v=0,g=0,m=!0===a,y=r,b=o.length;y<f;){var k=tn(e,y);if(b)for(var _=0;_<o.length;_++){var C=o[_],w=C?l?C:yn(C):null;if(w&&k===w){var S=en(e,y),O=fn(e,y),x=!!m||a[w],E=Kt(e,y);cn(E,S,x)&&vn(S,x,O,t)&&(Xt(e,y,x),Jt(e,y,n,t),un(e,E,x)&&(Lt(e,y,!0),u=!0)),o[_]=null,b--;break}}y+=4}if(b){var T=l?null:pn(e,t);e:for(var M=0;M<o.length;M++){var A=o[M];if(A){for(var I=!!m||a[A],P=l?A:yn(A),D=y>=f,N=y;N<i;N+=4)if(tn(e,N)===P){var j=fn(e,N),R=Qt(e,N),L=en(e,N),F=Kt(e,N);vn(L,I,j,t)&&(D&&(on(e,y,N),v++),cn(F,L,I)&&((null===I||void 0===I&&I!==L)&&(p=!0),Xt(e,y,I),(null!==L||un(e,F,I))&&(Lt(e,y,!0),u=!0)),j===t&&n===R||Jt(e,y,n,t)),y+=4;continue e}null!=I&&(p=!0,v++,an(e,D?y:f+4*g,l,P,1|ln(e,P,l,T),I,t,n),g++,i+=4,y+=4,u=!0)}}}for(;y<i;){p=!0;var B=en(e,y),V=Kt(e,y);fn(e,y),null!=B&&(p=!0),cn(V,B,null)&&(Xt(e,y,null),un(e,V,B)&&(Lt(e,y,!0),u=!0),Jt(e,y,n,t)),y+=4}(function(e,t,n,r,i,o,a,s){var l=e[n?6:7],u=1+4*t;if(s)for(var c=i+4*a,h=u+4;h<l.length;h+=4)l[h+1]=c,l[h+0]=1;l[u+0]=0,l[u+1]=i,l[u+2]=r,l[u+3]=a;for(var f=a,d=1;d<u;d+=4)f+=l[d+3];if(!n)for(var p=e[6],v=o-p[2],g=1;g<p.length;g+=4)p[g+1]+=v;l[0]=f})(e,t,l,s,f,i,v,p=p||d!==v),u&&nn(e,!0)}(e,r,c,i,o,a,f||l||Z,t,n),h&&rn(e,!0)}}function jt(e,t,n,r,i,o,a){n=i&&n?i(t,n,3):n,o||a?(o&&o.setValue(t,n),a&&a.setValue(t,n)):n?(n=n.toString(),vt(r)?r.setStyle(e,t,n,pt.DashCase):e.style.setProperty(t,n)):vt(r)?r.removeStyle(e,t,pt.DashCase):e.style.removeProperty(t)}function Rt(e,t,n,r,i,o){i||o?(i&&i.setValue(t,n),o&&o.setValue(t,n)):""!==t&&(n?vt(r)?r.addClass(e,t):e.classList.add(t):vt(r)?r.removeClass(e,t):e.classList.remove(t))}function Lt(e,t,n){var r=t>=10?t+0:t;n?e[r]|=1:e[r]&=-2}function Ft(e,t){return 1==(1&e[t>=10?t+0:t])}function Bt(e,t){return 2==(2&e[t>=10?t+0:t])}function Vt(e,t){return 4==(4&e[t>=10?t+0:t])}function Ht(e,t,n){return 31&e|t<<5|n<<19}function zt(e,t){var n=$t(t);return(2&t?e[4]:e[3])[n]}function $t(e){return e>>5&16383}function qt(e){var t=e>>19&16383;return t>=10?t:-1}function Ut(e){return e[6][2]}function Wt(e){return e[7][2]}function Gt(e,t,n){e[t+1]=n}function Xt(e,t,n){e[t+2]=n}function Jt(e,t,n,r){var i=function(e,t){return t<<16|e}(r,n);e[t+3]=i}function Qt(e,t){return e[t+3]>>16&65535}function Zt(e,t){var n=Qt(e,t);if(n){var r=e[9];if(r)return r[n]}return null}function Yt(e,t,n){e[1===t?t:t+0]=n}function Kt(e,t){return e[1===t?t:t+0]}function en(e,t){return e[t+2]}function tn(e,t){return e[t+1]}function nn(e,t){Lt(e,1,t)}function rn(e,t){t?e[1]|=8:e[1]&=-9}function on(e,t,n){if(t!==n){var r=en(e,t),i=tn(e,t),o=Kt(e,t),a=Qt(e,t),s=fn(e,t),l=o,u=Kt(e,n),c=qt(l);if(c>=0){var h=Kt(e,c);Yt(e,c,Ht(h,$t(h),n))}var f=qt(u);if(f>=0){var d=Kt(e,f);Yt(e,f,Ht(d,$t(d),t))}Xt(e,t,en(e,n)),Gt(e,t,tn(e,n)),Yt(e,t,Kt(e,n)),Jt(e,t,Qt(e,n),fn(e,n)),Xt(e,n,r),Gt(e,n,i),Yt(e,n,o),Jt(e,n,a,s)}}function an(e,t,n,r,i,o,a,s){var l=t<e.length;e.splice(t,0,1|i|(n?2:0),r,o,0),Jt(e,t,s,a),l&&function(e,t){for(var n=t;n<e.length;n+=4){var r=qt(Kt(e,n));if(r>0){var i=$t(Kt(e,r));Yt(e,r,Ht((Ft(e,r)?1:0)|(Bt(e,r)?2:0)|(Vt(e,r)?4:0),i,n))}}}(e,t+4)}function sn(e,t){return null!==e}function ln(e,t,n,r){var i,o=r&&r(t,null,1)?4:0;return n?(o|=2,i=dn(e[4],t)):i=dn(e[3],t),Ht(o,i=i>0?i+1:0,0)}function un(e,t,n){var r=zt(e,t);return!r||cn(t,r,n)}function cn(e,t,n){return!(2&e)&&t&&n&&4&e?t.toString()!==n.toString():t!==n}var hn=function(){function e(t,n,r){_classCallCheck(this,e),this._element=n,this._type=r,this._values={},this._dirty=!1,this._factory=t}return _createClass(e,[{key:"setValue",value:function(e,t){this._values[e]!==t&&(this._values[e]=t,this._dirty=!0)}},{key:"buildPlayer",value:function(e,t){if(this._dirty){var n=this._factory.fn(this._element,this._type,this._values,t,e||null);return this._values={},this._dirty=!1,n}}}]),e}();function fn(e,t){return 65535&e[t+3]}function dn(e,t){for(var n=2;n<e.length;n+=3)if(e[n]===t)return n;return-1}function pn(e,t){var n=e[2];return n[2*t+1]||n[1]||null}function vn(e,t,n,r){return null==e||(null!=t?r<=n:n===r)}function gn(e){var t=e[4],n=t[1];if(null===n){n="";for(var r=2;r<t.length;r+=3)t[r+1]&&(n+=(n.length?" ":"")+t[r]);t[1]=n}return n}function mn(e,t,n){return e[t?6:7][1+4*n+2]||null}function yn(e){return e.replace(/[a-z][A-Z]/g,(function(e){return"".concat(e.charAt(0),"-").concat(e.charAt(1).toLowerCase())}))}function bn(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=e[n?6:7];if(t>0)for(var a=1+4*t;o.length<a;)o.push(0,r,null,0);o.push(0,r,null,i)}var kn=Promise.resolve(null);function _n(e){var t=e[1],n=Me(e);if(t.firstTemplatePass=!1,e[7]=t.bindingStartIndex,!n){pe(e,t,!1,void 0),function(e){for(var t=e[14];null!==t;t=t[4])if(-1===t[2]&&ce(t))for(var n=9;n<t.length;n++){var r=t[n];wn(r,r[1],r[9])}}(e),Cn(t,e),de(e),ve(e,t.contentHooks,t.contentCheckHooks,!1,1,void 0),function(e,t){var n=je();try{if(e.expandoInstructions){var r=t[7]=e.expandoStartIndex;Ae(r);for(var i=-1,o=-1,a=0;a<e.expandoInstructions.length;a++){var s=e.expandoInstructions[a];"number"==typeof s?(s<=0?(xe(o=-s),i=r+=9+e.expandoInstructions[++a]):r+=s,Ae(r)):(null!==s&&(t[7]=r,s(2,le(t[i]),o),we+=1+Oe,Se=0,Oe=0),i++)}}}finally{xe(n)}}(t,e)}n&&t.staticContentQueries&&Cn(t,e),function(e){if(null!=e)for(var t=0;t<e.length;t++)En(e[t])}(t.components)}function Cn(e,t){if(null!=e.contentQueries){Ie(0);for(var n=0;n<e.contentQueries.length;n++){var r=e.contentQueries[n];e.data[r].contentQueries(2,t[r],r)}}}function wn(e,t,n){var r,i=_e,o=Ee();if(512&e[2])Tn(_t(e));else{var a=!1;try{Te(null,!0),r=Pe(e,e[6]),de(e),On(e,t.template,xn(e),n),e[1].firstTemplatePass=!1,_n(e),a=!0}finally{De(r,a),Te(o,i)}}}function Sn(e,t,n){var r=e[11],i=Pe(e,e[6]),o=Me(e),a=!1;try{!o&&r.begin&&r.begin(),o&&(n&&On(e,n,1,t),_n(e),e[2]&=-5),de(e),n&&On(e,n,2,t),_n(e),a=!0}finally{!o&&r.end&&r.end(),De(i,a)}}function On(e,t,n,r){null;var i=je();try{xe(null),2&n&&function(e,t){pe(e,e[1],!1,0),Re(0)}(e),t(n,r)}finally{Re(i)}}function xn(e){return Me(e)?1:2}function En(e){var t=be(),n=function(e,t){var n=t[e];return ue(n)?n:n[0]}(e,t);(128==(128&n[2])||Me(t))&&80&n[2]&&(function(e){for(var t=e[1],n=e.length;n<t.blueprint.length;n++)e[n]=t.blueprint[n]}(n),function(e,t){var n=e[1],r=Pe(e,e[6]),i=n.template,o=Me(e),a=!1;try{de(e),o&&Mn(1,n,t),On(e,i,xn(e),t),_n(e),o&&!n.staticViewQueries||Mn(2,n,t),a=!0}finally{De(r,a)}}(n,n[9]))}function Tn(e){for(var t=0;t<e.components.length;t++){var n=e.components[t];Sn(fe(n),n)}}function Mn(e,t,n){var r=t.viewQuery;r&&(Ie(t.viewQueryStartIndex),r(e,n))}function An(e,t,n){for(var r=e[1],i=0;i<t.length;){var o=t[i++],a=t[i++],s=t[i++],l=e[o],u=r.data[o];u.setInput?u.setInput(l,n,a,s):l[s]=n}}var In=null;function Pn(){if(!In){var e=x.Symbol;if(e&&e.iterator)In=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(In=r)}}return In}function Dn(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function Nn(e,t){var n=Rn(e),r=Rn(t);return n&&r?function(e,t,n){for(var r=e[Pn()](),i=t[Pn()]();;){var o=r.next(),a=i.next();if(o.done&&a.done)return!0;if(o.done||a.done)return!1;if(!n(o.value,a.value))return!1}}(e,t,Nn):!(n||!(e&&("object"==typeof e||"function"==typeof e))||r||!(t&&("object"==typeof t||"function"==typeof t)))||Dn(e,t)}var jn=function(){function e(t){_classCallCheck(this,e),this.wrapped=t}return _createClass(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function Rn(e){return!!Ln(e)&&(Array.isArray(e)||!(e instanceof Map)&&Pn()in e)}function Ln(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Fn(e,t,n){var r=Ee();r.stylingTemplate||(r.stylingTemplate=mt());var i=$n();i?(yt(r.stylingTemplate,i),(r.onElementCreationFns=r.onElementCreationFns||[]).push((function(){var o,a,s;Bn(r,e,t,n,i),o=r.stylingTemplate,a=i,(s=o[8])||(s=o[8]=[0]),s[0]=a}))):Bn(r,e,t,n,0)}function Bn(e,t,n,r,i){!function(e,t,n,r,i){if(!(16&e[1])&&function(e,t,n,r){var i=e[2],o=2*t;return!(o<i.length&&i[o+0]>=0||(yt(e,t,e[5].length,r),0))}(e,t,0,i)){r&&(r=function(e){for(var t=[],n=0;n<e.length;n++)t.push(yn(e[n]));return t}(r));var o=e[5],a=o[1],s=o[0],l=e[6],u=e[7],c=4*s,h=10+c,f=h+4*a,d=f+c,p=o.length;o.push(r?r.length:0,n?n.length:0);var v=0,g=[];if(r&&r.length)for(var m=0;m<r.length;m++){var y=r[m],b=It(e,y,10,h);-1==b&&(b=h+v,v+=4,g.push(y)),o.push(b)}var k=[];if(n&&n.length)for(var _=0;_<n.length;_++){var C=n[_],w=It(e,C,h,f);-1==w?(w=f+v,v+=4,k.push(C)):w+=4*g.length,o.push(w)}var S=2;if(g.length)for(;S<p;){var O=o[S+0],x=o[S+1];if(x)for(var E=S+2+O,T=E;T<E+x;T++)o[T]+=4*g.length;S+=2+(O+x)}for(var M=k.length+g.length,A=10;A<e.length;A+=4){var I=A>=f,P=A>=(I?d:h),D=Kt(e,A),N=$t(D),j=qt(D);Yt(e,A,Ht(D,N,j+=I?P?4*g.length:0:4*M+4*(P?g.length:0)))}for(var R=0;R<4*g.length;R++)e.splice(d,0,null),e.splice(h,0,null),h++,f++,d+=2;for(var L=0;L<4*k.length;L++)e.splice(f,0,null),e.push(null),f++,d++;for(var F,B,V,H,z,$=e[4],q=e[3],U=0;U<M;U++){var W=U>=g.length,G=W?U-g.length:U,X=W?k[G]:g[G],J=void 0,Q=void 0;W?(J=d+4*(a+G),Q=h+4*(a+G)):(J=f+4*(s+G),Q=10+4*(s+G));var Z=W?$:q,Y=dn(Z,X);-1===Y?(B=Z,V=X,H=!W&&null,z=t,null===(F=null)&&(F=B.length,B.push(null,null,null),B[F+0]=V),B[F+1]=H,B[F+2]=z,Y=F+1):Y+=1;var K=ln(e,X,W,i||null);Yt(e,Q,Ht(K,Y,J)),Gt(e,Q,X),Xt(e,Q,null),Jt(e,Q,0,t),Yt(e,J,Ht(K,Y,Q)),Gt(e,J,X),Xt(e,J,null),Jt(e,J,0,t)}o[1]=a+k.length,o[0]=s+g.length,l[0]+=k.length,u[0]+=g.length;var ee=4*g.length,te=4*k.length,ne=u.length;bn(e,t,!1,f+4*s,g.length);for(var re=1;re<ne;re+=4)u[re+1]+=te+ee;var ie=l.length;bn(e,t,!0,d+4*a,k.length);for(var oe=1;oe<ie;oe+=4)l[oe+1]+=2*ee+te;Yt(e,1,Ht(0,0,f))}}(e.stylingTemplate,i,t,n,r)}function Vn(e){var t=je(),n=be(),r=qn(t,n),i=$n();if(i)At(r,i,Dt,[r,e,i]);else{var o=he(t,n);if(function(e){return 0!=(16&e.flags)}(o)&&e!==Mt){var a=gn(r),s=(a.length?a+" ":"")+function(e){var t="";if(e)for(var n=Object.keys(e),r=0;r<n.length;r++){var i=n[r];t+=(r?";":"")+"".concat(i,":").concat(e[i])}return t}(e);An(n,o.inputs.style,s),e=Mt}Dt(r,e)}}function Hn(e){var t=je(),n=be(),r=qn(t,n),i=$n();if(i)At(r,i,Pt,[r,e,i]);else{var o=he(t,n);if(function(e){return 0!=(8&e.flags)}(o)&&e!==Mt){var a=gn(r),s=(a.length?a+" ":"")+function(e){return e&&"string"!=typeof e&&(e=Object.keys(e).join(" ")),e||""}(e);An(n,o.inputs.class,s),e=Mt}Pt(r,e)}}function zn(){var e,t,n,r=je(),i=$n()||0,o=be(),a=3===he(r,o).type?o[12]:null,s=0!=(8&o[2]);(function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=0;if(function(e,t){var n=e[8];return!n||n[0]===t}(e,a)&&(function(e){var t=e[8];if(t){for(var n=1;n<t.length;n+=3)t[n+1].apply(this,t[n+2]);t.length=1}}(e),function(e){return Ft(e,1)}(e))){for(var l=e[0],u=8&e[1],c=Wt(e),h=10;h<e.length;h+=4)if(Ft(e,h)){var f=Kt(e,h),d=fn(e,h),p=tn(e,h),v=en(e,h),g=4&f?pn(e,d):null,m=Zt(e,h),y=!!(2&f),b=v;h<c&&!sn(b)&&(b=en(e,qt(f))),sn(b)||(b=zt(e,f)),t&&(!r||b)&&(y?Rt(l,p,!!b,t,i,m):jt(l,p,b,t,g,o,m)),Lt(e,h,!1)}if(u){for(var k=Array.isArray(n)?_t(n):n,_=function(e){return e[9]}(e),C=_[0],w=1;w<C;w+=2){var S=_[w],O=w+1,x=_[O];if(S){var E=S.buildPlayer(x,r);void 0!==E&&(null!=E&&bt(_,k,l,E,O)&&s++,x&&x.destroy())}else x&&x.destroy()}rn(e,!1)}nn(e,!1)}return s})(qn(r,o),a,o,s,null,null,i)>0&&(e=_t(o),n=0===e.flags,e.flags|=2,n&&e.clean==kn&&(e.clean=new Promise((function(e){return t=e})),e.scheduler((function(){if(1&e.flags&&(e.flags&=-2,Tn(e)),2&e.flags){e.flags&=-3;var n=e.playerHandler;n&&n.flushPlayers()}e.clean=kn,t(null)})))),ye(null)}function $n(){return we+Se}function qn(e,t){var n=me;return n||ye(n=function(e,t){for(var n,r=e,i=t[r],o=t;Array.isArray(i);)o=i,i=i[0];if(n=o,Array.isArray(n)&&"number"==typeof n[1])return o;var a=he(e-20,t).stylingTemplate;return o!==t&&(r=0),o[r]=a?function(e,t){for(var n=t.slice(),r=0;r<10;r++){var i=t[r];Array.isArray(i)&&(n[r]=i.slice())}return n[0]=e,n[1]|=16,n}(i,a):mt(i)}(e+20,t)),n}function Un(e){return!!e&&"function"==typeof e.then}function Wn(e){return!!e&&"function"==typeof e.subscribe}var Gn=function(){function e(t,n,r){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}(),Xn=function e(){_classCallCheck(this,e)};function Jn(e){var t=Error("No component factory found for ".concat(y(e),". Did you add it to @NgModule.entryComponents?"));return t[Qn]=e,t}var Qn="ngComponent",Zn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw Jn(e)}}]),e}(),Yn=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new Zn,e}(),Kn=function(){function e(t,n,r){_classCallCheck(this,e),this._parent=n,this._ngModule=r,this._factories=new Map;for(var i=0;i<t.length;i++){var o=t[i];this._factories.set(o.componentType,o)}}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){var t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw Jn(e);return new er(t,this._ngModule)}}]),e}(),er=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).factory=e,i.ngModule=r,i.selector=e.selector,i.componentType=e.componentType,i.ngContentSelectors=e.ngContentSelectors,i.inputs=e.inputs,i.outputs=e.outputs,i}return _createClass(n,[{key:"create",value:function(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)}}]),n}(Xn),tr=function e(){_classCallCheck(this,e)},nr=function e(){_classCallCheck(this,e)};function rr(){}var ir=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return or(e)},e}(),or=rr,ar=function e(){_classCallCheck(this,e)},sr=function e(){_classCallCheck(this,e)},lr=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),ur=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return cr()},e}(),cr=rr,hr=function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},fr=new hr("8.1.3"),dr=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return Rn(e)}},{key:"create",value:function(e){return new vr(e)}}]),e}(),pr=function(e,t){return t},vr=function(){function e(t){_classCallCheck(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||pr}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex<br(n,r,i)?t:n,a=br(o,r,i),s=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);var l=a-r,u=s-r;if(l!=u){for(var c=0;c<l;c++){var h=c<i.length?i[c]:i[c]=0,f=h+c;u<=f&&f<l&&(i[c]=h+1)}i[o.previousIndex]=u-l}}a!==s&&e(o,a,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!Rn(e))throw new Error("Error trying to diff '".concat(y(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,r,i,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)r=e[s],i=this._trackByFn(s,r),null!==o&&Dn(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,r,i,s)),Dn(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,s),a=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r,i=e[Pn()]();!(r=i.next()).done;)t(r.value)}(e,(function(e){i=t._trackByFn(n,e),null!==o&&Dn(o.trackById,i)?(a&&(o=t._verifyReinsertion(o,e,i,n)),Dn(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,i,n),a=!0),o=o._next,n++})),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"_reset",value:function(){if(this.isDirty){var e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Dn(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Dn(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new gr(t,n),i,r),e}},{key:"_verifyReinsertion",value:function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new yr),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new yr),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}]),e}(),gr=function e(t,n){_classCallCheck(this,e),this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},mr=function(){function e(){_classCallCheck(this,e),this._head=null,this._tail=null}return _createClass(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Dn(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),yr=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new mr,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"clear",value:function(){this.map.clear()}},{key:"isEmpty",get:function(){return 0===this.map.size}}]),e}();function br(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}var kr=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return e instanceof Map||Ln(e)}},{key:"create",value:function(){return new _r}}]),e}(),_r=function(){function e(){_classCallCheck(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||Ln(e)))throw new Error("Error trying to diff '".concat(y(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var i=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,i)}})),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new Cr(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Dn(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach((function(n){return t(e[n],n)}))}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}]),e}(),Cr=function e(t){_classCallCheck(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},wr=function(){var e=function(){function e(t){_classCallCheck(this,e),this.factories=t}return _createClass(e,[{key:"find",value:function(e){var t,n=this.factories.find((function(t){return t.supports(e)}));if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new f,new c]]}}}]),e}();return e.ngInjectableDef=v({token:e,providedIn:"root",factory:function(){return new e([new dr])}}),e}(),Sr=function(){var e=function(){function e(t){_classCallCheck(this,e),this.factories=t}return _createClass(e,[{key:"find",value:function(e){var t=this.factories.find((function(t){return t.supports(e)}));if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new f,new c]]}}}]),e}();return e.ngInjectableDef=v({token:e,providedIn:"root",factory:function(){return new e([new kr])}}),e}(),Or=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return xr()},e}(),xr=function(){},Er=[new kr],Tr=new wr([new dr]),Mr=new Sr(Er),Ar=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Ir(e,ir)},e}(),Ir=rr,Pr=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Dr(e,ir)},e}(),Dr=rr;function Nr(e,t,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '".concat(t,"'. Current value: '").concat(n,"'.");return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return jr(n,t),n}(i,e)}function jr(e,t){e.ngDebugContext=t,e.ngErrorLogger=t.logError.bind(t)}function Rr(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}function Lr(e,t,n){var r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function Fr(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Br(e,t){return e.nodes[t]}function Vr(e,t){return e.nodes[t]}function Hr(e,t){return e.nodes[t]}function zr(e,t){return e.nodes[t]}function $r(e,t){return e.nodes[t]}var qr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Ur=function(){},Wr=new Map;function Gr(e){var t=Wr.get(e);return t||(t=y(e)+"_"+Wr.size,Wr.set(e,t)),t}function Xr(e,t,n,r){if(jn.isWrapped(r)){r=jn.unwrap(r);var i=e.def.nodes[t].bindingIndex+n,o=jn.unwrap(e.oldValues[i]);e.oldValues[i]=new jn(o)}return r}function Jr(e){return{id:"$$undefined",styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var Qr=0;function Zr(e,t,n,r){return!(!(2&e.state)&&Dn(e.oldValues[t.bindingIndex+n],r))}function Yr(e,t,n,r){return!!Zr(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Kr(e,t,n,r){var i=e.oldValues[t.bindingIndex+n];if(1&e.state||!Nn(i,r)){var o=t.bindings[n].name;throw Nr(qr.createDebugContext(e,t.nodeIndex),"".concat(o,": ").concat(i),"".concat(o,": ").concat(r),0!=(1&e.state))}}function ei(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function ti(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function ni(e,t,n,r){try{return ei(33554432&e.def.nodes[t].flags?Vr(e,t).componentView:e),qr.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function ri(e){return e.parent?Vr(e.parent,e.parentNodeDef.nodeIndex):null}function ii(e){return e.parent?e.parentNodeDef.parent:null}function oi(e,t){switch(201347067&t.flags){case 1:return Vr(e,t.nodeIndex).renderElement;case 2:return Br(e,t.nodeIndex).renderText}}function ai(e,t){return e?"".concat(e,":").concat(t):t}function si(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function li(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function ui(e){return 1<<e%32}function ci(e){var t={},n=0,r={};return e&&e.forEach((function(e){var i=_slicedToArray(e,2),o=i[0],a=i[1];"number"==typeof o?(t[o]=a,n|=ui(o)):r[o]=a})),{matchedQueries:t,references:r,matchedQueryIds:n}}function hi(e,t){return e.map((function(e){var n,r,i;return Array.isArray(e)?(i=(n=_slicedToArray(e,2))[0],r=n[1]):(i=0,r=e),r&&("function"==typeof r||"object"==typeof r)&&t&&Object.defineProperty(r,"__source",{value:t,configurable:!0}),{flags:i,token:r,tokenKey:Gr(r)}}))}function fi(e,t,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Q.Native?Vr(e,n.renderParent.nodeIndex).renderElement:void 0:t}var di=new WeakMap;function pi(e){var t=di.get(e);return t||((t=e((function(){return Ur}))).factory=e,di.set(e,t)),t}function vi(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(oi(e,e.def.lastRenderRootNode))),gi(e,t,0,e.def.nodes.length-1,n,r,i)}function gi(e,t,n,r,i,o,a){for(var s=n;s<=r;s++){var l=e.def.nodes[s];11&l.flags&&yi(e,l,t,i,o,a),s+=l.childCount}}function mi(e,t,n,r,i,o){for(var a=e;a&&!si(a);)a=a.parent;for(var s=a.parent,l=ii(a),u=l.nodeIndex+l.childCount,c=l.nodeIndex+1;c<=u;c++){var h=s.def.nodes[c];h.ngContentIndex===t&&yi(s,h,n,r,i,o),c+=h.childCount}if(!s.parent){var f=e.root.projectableNodes[t];if(f)for(var d=0;d<f.length;d++)bi(e,f[d],n,r,i,o)}}function yi(e,t,n,r,i,o){if(8&t.flags)mi(e,t.ngContent.index,n,r,i,o);else{var a=oi(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&bi(e,a,n,r,i,o),32&t.bindingFlags&&bi(Vr(e,t.nodeIndex).componentView,a,n,r,i,o)):bi(e,a,n,r,i,o),16777216&t.flags)for(var s=Vr(e,t.nodeIndex).viewContainer._embeddedViews,l=0;l<s.length;l++)vi(s[l],n,r,i,o);1&t.flags&&!t.element.name&&gi(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,i,o)}}function bi(e,t,n,r,i,o){var a=e.renderer;switch(n){case 1:a.appendChild(r,t);break;case 2:a.insertBefore(r,t,i);break;case 3:a.removeChild(r,t);break;case 0:o.push(t)}}var ki=/^:([^:]+):(.+)$/;function _i(e){if(":"===e[0]){var t=e.match(ki);return[t[1],t[2]]}return["",e]}function Ci(e){for(var t=0,n=0;n<e.length;n++)t|=e[n].flags;return t}function wi(e,t,n,r,i,o,a,s,l,u,c,h,f,d,p,v,g,m,y,b){switch(e){case 1:return t+Si(n)+r;case 2:return t+Si(n)+r+Si(i)+o;case 3:return t+Si(n)+r+Si(i)+o+Si(a)+s;case 4:return t+Si(n)+r+Si(i)+o+Si(a)+s+Si(l)+u;case 5:return t+Si(n)+r+Si(i)+o+Si(a)+s+Si(l)+u+Si(c)+h;case 6:return t+Si(n)+r+Si(i)+o+Si(a)+s+Si(l)+u+Si(c)+h+Si(f)+d;case 7:return t+Si(n)+r+Si(i)+o+Si(a)+s+Si(l)+u+Si(c)+h+Si(f)+d+Si(p)+v;case 8:return t+Si(n)+r+Si(i)+o+Si(a)+s+Si(l)+u+Si(c)+h+Si(f)+d+Si(p)+v+Si(g)+m;case 9:return t+Si(n)+r+Si(i)+o+Si(a)+s+Si(l)+u+Si(c)+h+Si(f)+d+Si(p)+v+Si(g)+m+Si(y)+b;default:throw new Error("Does not support more than 9 expressions")}}function Si(e){return null!=e?e.toString():""}var Oi=new Object,xi=Gr(V),Ei=Gr(T),Ti=Gr(tr);function Mi(e,t,n,r){return n=_(n),{index:-1,deps:hi(r,y(t)),flags:e,token:t,value:n}}function Ai(e){for(var t={},n=[],r=!1,i=0;i<e.length;i++){var o=e[i];o.token===F&&!0===o.value&&(r=!0),1073741824&o.flags&&n.push(o.token),o.index=i,t[Gr(o.token)]=o}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}function Ii(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V.THROW_IF_NOT_FOUND,o=D(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(i=null),1&t.flags)return e._parent.get(t.token,i);var a=t.tokenKey;switch(a){case xi:case Ei:case Ti:return e}var s,l=e._def.providersByKey[a];if(l){var u=e._providers[l.index];return void 0===u&&(u=e._providers[l.index]=Pi(e,l)),u===Oi?void 0:u}if((s=g(t.token))&&(n=e,null!=(r=s).providedIn&&(function(e,t){return e._def.modules.indexOf(t)>-1}(n,r.providedIn)||"root"===r.providedIn&&n._def.isRoot))){var c=e._providers.length;return e._def.providers[c]=e._def.providersByKey[t.tokenKey]={flags:5120,value:s.factory,deps:[],index:c,token:t.token},e._providers[c]=Oi,e._providers[c]=Pi(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?i:e._parent.get(t.token,i)}finally{D(o)}}function Pi(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(Ii(e,n[0]));case 2:return new t(Ii(e,n[0]),Ii(e,n[1]));case 3:return new t(Ii(e,n[0]),Ii(e,n[1]),Ii(e,n[2]));default:for(var i=new Array(r),o=0;o<r;o++)i[o]=Ii(e,n[o]);return _construct(t,i)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){var r=n.length;switch(r){case 0:return t();case 1:return t(Ii(e,n[0]));case 2:return t(Ii(e,n[0]),Ii(e,n[1]));case 3:return t(Ii(e,n[0]),Ii(e,n[1]),Ii(e,n[2]));default:for(var i=Array(r),o=0;o<r;o++)i[o]=Ii(e,n[o]);return t.apply(void 0,i)}}(e,t.value,t.deps);break;case 2048:n=Ii(e,t.deps[0]);break;case 256:n=t.value}return n===Oi||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Oi:n}function Di(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Li(n,t),qr.dirtyParentQueries(r),ji(r),r}function Ni(e,t,n){var r=t?oi(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);vi(n,2,i,o,void 0)}function ji(e){vi(e,3,null,null,void 0)}function Ri(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Li(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Fi=new Object;function Bi(e,t,n,r,i,o){return new Vi(e,t,n,r,i,o)}var Vi=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a,s){var l;return _classCallCheck(this,n),(l=t.call(this)).selector=e,l.componentType=r,l._inputs=o,l._outputs=a,l.ngContentSelectors=s,l.viewDefFactory=i,l}return _createClass(n,[{key:"create",value:function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=pi(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=qr.createRootView(e,t||[],n,i,r,Fi),s=Hr(a,o).instance;return n&&a.renderer.setAttribute(Vr(a,0).renderElement,"ng-version",fr.full),new Hi(a,new Ui(a),s)}},{key:"inputs",get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e}},{key:"outputs",get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}}]),n}(Xn),Hi=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this))._view=e,o._viewRef=r,o._component=i,o._elDef=o._view.def.nodes[0],o.hostView=r,o.changeDetectorRef=r,o.instance=i,o}return _createClass(n,[{key:"destroy",value:function(){this._viewRef.destroy()}},{key:"onDestroy",value:function(e){this._viewRef.onDestroy(e)}},{key:"location",get:function(){return new ir(Vr(this._view,this._elDef.nodeIndex).renderElement)}},{key:"injector",get:function(){return new Ji(this._view,this._elDef)}},{key:"componentType",get:function(){return this._component.constructor}}]),n}(function(){return function e(){_classCallCheck(this,e)}}());function zi(e,t,n){return new $i(e,t,n)}var $i=function(){function e(t,n,r){_classCallCheck(this,e),this._view=t,this._elDef=n,this._data=r,this._embeddedViews=[]}return _createClass(e,[{key:"clear",value:function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Di(this._data,e);qr.destroyView(t)}}},{key:"get",value:function(e){var t=this._embeddedViews[e];if(t){var n=new Ui(t);return n.attachToViewContainerRef(this),n}return null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof er||(i=o.get(tr));var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a,s=e;return n=this._view,r=this._data,i=t,o=s._view,a=r.viewContainer._embeddedViews,null==i&&(i=a.length),o.viewContainerParent=n,Ri(a,i,o),function(e,t){var n=ri(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var n=t.parent;n;)n.childFlags|=4,n=n.parent}}(t.parent.def,t.parentNodeDef)}}(r,o),qr.dirtyParentQueries(o),Ni(r,i>0?a[i-1]:null,o),s.attachToViewContainerRef(this),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,s=this._embeddedViews.indexOf(e._view);return n=this._data,r=s,i=t,o=n.viewContainer._embeddedViews,a=o[r],Li(o,r),null==i&&(i=o.length),Ri(o,i,a),qr.dirtyParentQueries(a),ji(a),Ni(n,i>0?o[i-1]:null,a),e}},{key:"indexOf",value:function(e){return this._embeddedViews.indexOf(e._view)}},{key:"remove",value:function(e){var t=Di(this._data,e);t&&qr.destroyView(t)}},{key:"detach",value:function(e){var t=Di(this._data,e);return t?new Ui(t):null}},{key:"element",get:function(){return new ir(this._data.renderElement)}},{key:"injector",get:function(){return new Ji(this._view,this._elDef)}},{key:"parentInjector",get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=ii(e),e=e.parent;return e?new Ji(e,t):new Ji(this._view,null)}},{key:"length",get:function(){return this._embeddedViews.length}}]),e}();function qi(e){return new Ui(e)}var Ui=function(){function e(t){_classCallCheck(this,e),this._view=t,this._viewContainerRef=null,this._appRef=null}return _createClass(e,[{key:"markForCheck",value:function(){ei(this._view)}},{key:"detach",value:function(){this._view.state&=-5}},{key:"detectChanges",value:function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{qr.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}},{key:"checkNoChanges",value:function(){qr.checkNoChangesView(this._view)}},{key:"reattach",value:function(){this._view.state|=4}},{key:"onDestroy",value:function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}},{key:"destroy",value:function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),qr.destroyView(this._view)}},{key:"detachFromAppRef",value:function(){this._appRef=null,ji(this._view),qr.dirtyParentQueries(this._view)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"rootNodes",get:function(){return vi(this._view,0,void 0,void 0,e=[]),e;var e}},{key:"context",get:function(){return this._view.context}},{key:"destroyed",get:function(){return 0!=(128&this._view.state)}}]),e}();function Wi(e,t){return new Gi(e,t)}var Gi=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._parentView=e,i._def=r,i}return _createClass(n,[{key:"createEmbeddedView",value:function(e){return new Ui(qr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}},{key:"elementRef",get:function(){return new ir(Vr(this._parentView,this._def.nodeIndex).renderElement)}}]),n}(Ar);function Xi(e,t){return new Ji(e,t)}var Ji=function(){function e(t,n){_classCallCheck(this,e),this.view=t,this.elDef=n}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.THROW_IF_NOT_FOUND;return qr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Gr(e)},t)}}]),e}();function Qi(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Vr(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Br(e,n.nodeIndex).renderText;if(20240&n.flags)return Hr(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function Zi(e){return new Yi(e.renderer)}var Yi=function(){function e(t){_classCallCheck(this,e),this.delegate=t}return _createClass(e,[{key:"selectRootElement",value:function(e){return this.delegate.selectRootElement(e)}},{key:"createElement",value:function(e,t){var n=_slicedToArray(_i(t),2),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return e&&this.delegate.appendChild(e,o),o}},{key:"createViewRoot",value:function(e){return e}},{key:"createTemplateAnchor",value:function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}},{key:"createText",value:function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}},{key:"projectNodes",value:function(e,t){for(var n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])}},{key:"attachViewAfter",value:function(e,t){for(var n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e),i=0;i<t.length;i++)this.delegate.insertBefore(n,t[i],r)}},{key:"detachView",value:function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}}},{key:"destroyView",value:function(e,t){for(var n=0;n<t.length;n++)this.delegate.destroyNode(t[n])}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"listenGlobal",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"setElementProperty",value:function(e,t,n){this.delegate.setProperty(e,t,n)}},{key:"setElementAttribute",value:function(e,t,n){var r=_slicedToArray(_i(t),2),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(e,o,n,i):this.delegate.removeAttribute(e,o,i)}},{key:"setBindingDebugInfo",value:function(e,t,n){}},{key:"setElementClass",value:function(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)}},{key:"setElementStyle",value:function(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)}},{key:"invokeElementMethod",value:function(e,t,n){e[t].apply(e,n)}},{key:"setText",value:function(e,t){this.delegate.setValue(e,t)}},{key:"animate",value:function(){throw new Error("Renderer.animate is no longer supported!")}}]),e}();function Ki(e,t,n,r){return new eo(e,t,n,r)}var eo=function(){function e(t,n,r,i){_classCallCheck(this,e),this._moduleType=t,this._parent=n,this._bootstrapComponents=r,this._def=i,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=new Array(t.providers.length),r=0;r<t.providers.length;r++){var i=t.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=Pi(e,i))}}(this)}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.Default,r=0;return n&d.SkipSelf?r|=1:n&d.Self&&(r|=4),Ii(this,{token:e,tokenKey:Gr(e),flags:r},t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The ng module ".concat(y(this.instance.constructor)," has already been destroyed."));this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){var o=e._providers[i];if(o&&o!==Oi){var a=o.ngOnDestroy;"function"!=typeof a||r.has(o)||(a.apply(o),r.add(o))}}}(this),this._destroyListeners.forEach((function(e){return e()}))}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"instance",get:function(){return this.get(this._moduleType)}},{key:"componentFactoryResolver",get:function(){return this.get(Yn)}}]),e}(),to=Gr(ar),no=Gr(ur),ro=Gr(ir),io=Gr(Pr),oo=Gr(Ar),ao=Gr(Or),so=Gr(V),lo=Gr(T);function uo(e,t,n,r,i,o,a,s){var l=[];if(a)for(var u in a){var c=_slicedToArray(a[u],2),h=c[0],f=c[1];l[h]={flags:8,name:u,nonMinifiedName:f,ns:null,securityContext:null,suffix:null}}var d=[];if(s)for(var p in s)d.push({type:1,propName:p,target:null,eventName:s[p]});return fo(e,t|=16384,n,r,i,i,o,l,d)}function co(e,t,n){return fo(-1,e|=16,null,0,t,t,n)}function ho(e,t,n,r,i){return fo(-1,e,t,0,n,r,i)}function fo(e,t,n,r,i,o,a,s,l){var u=ci(n),c=u.matchedQueries,h=u.references,f=u.matchedQueryIds;l||(l=[]),s||(s=[]),o=_(o);var d=hi(a,y(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:f,references:h,ngContentIndex:-1,childCount:r,bindings:s,bindingFlags:Ci(s),outputs:l,element:null,provider:{token:i,value:o,deps:d},text:null,query:null,ngContent:null}}function po(e,t){return yo(e,t)}function vo(e,t){for(var n=e;n.parent&&!si(n);)n=n.parent;return bo(n.parent,ii(n),!0,t.provider.value,t.provider.deps)}function go(e,t){var n=bo(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r<t.outputs.length;r++){var i=t.outputs[r],o=n[i.propName];if(!Wn(o))throw new Error("@Output ".concat(i.propName," not initialized in '").concat(n.constructor.name,"'."));var a=o.subscribe(mo(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+r]=a.unsubscribe.bind(a)}return n}function mo(e,t,n){return function(r){return ni(e,t,n,r)}}function yo(e,t){var n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return bo(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(_o(e,t,n,i[0]));case 2:return r(_o(e,t,n,i[0]),_o(e,t,n,i[1]));case 3:return r(_o(e,t,n,i[0]),_o(e,t,n,i[1]),_o(e,t,n,i[2]));default:for(var a=Array(o),s=0;s<o;s++)a[s]=_o(e,t,n,i[s]);return r.apply(void 0,a)}}(e,t.parent,n,r.value,r.deps);case 2048:return _o(e,t.parent,n,r.deps[0]);case 256:return r.value}}function bo(e,t,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(_o(e,t,n,i[0]));case 2:return new r(_o(e,t,n,i[0]),_o(e,t,n,i[1]));case 3:return new r(_o(e,t,n,i[0]),_o(e,t,n,i[1]),_o(e,t,n,i[2]));default:for(var a=new Array(o),s=0;s<o;s++)a[s]=_o(e,t,n,i[s]);return _construct(r,a)}}var ko={};function _o(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:V.THROW_IF_NOT_FOUND;if(8&r.flags)return r.token;var o=e;2&r.flags&&(i=null);var a=r.tokenKey;a===ao&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var s=e;s;){if(t)switch(a){case to:return Zi(Co(s,t,n));case no:return Co(s,t,n).renderer;case ro:return new ir(Vr(s,t.nodeIndex).renderElement);case io:return Vr(s,t.nodeIndex).viewContainer;case oo:if(t.element.template)return Vr(s,t.nodeIndex).template;break;case ao:return qi(Co(s,t,n));case so:case lo:return Xi(s,t);default:var l=(n?t.element.allProviders:t.element.publicProviders)[a];if(l){var u=Hr(s,l.nodeIndex);return u||(u={instance:yo(s,l)},s.nodes[l.nodeIndex]=u),u.instance}}n=si(s),t=ii(s),s=s.parent,4&r.flags&&(s=null)}var c=o.root.injector.get(r.token,ko);return c!==ko||i===ko?c:o.root.ngModule.injector.get(r.token,i)}function Co(e,t,n){var r;if(n)r=Vr(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!si(r);)r=r.parent;return r}function wo(e,t,n,r,i,o){if(32768&n.flags){var a=Vr(e,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var s=jn.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new Gn(s,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,o}function So(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],a=o.parent;for(!a&&o.flags&t&&xo(e,i,o.flags&t,r++),0==(o.childFlags&t)&&(i+=o.childCount);a&&1&a.flags&&i===a.nodeIndex+a.childCount;)a.directChildFlags&t&&(r=Oo(e,a,t,r)),a=a.parent}}function Oo(e,t,n,r){for(var i=t.nodeIndex+1;i<=t.nodeIndex+t.childCount;i++){var o=e.def.nodes[i];o.flags&n&&xo(e,i,o.flags&n,r++),i+=o.childCount}return r}function xo(e,t,n,r){var i=Hr(e,t);if(i){var o=i.instance;o&&(qr.setCurrentNode(e,t),1048576&n&&Fr(e,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Fr(e,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}var Eo=new E("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return se}}),To={},Mo=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),Ao=void 0,Io=["en",[["a","p"],["AM","PM"],Ao],[["AM","PM"],Ao,Ao],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ao,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ao,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ao,"{1} 'at' {0}",Ao],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];function Po(e){return Do(e)[Mo.PluralCase]}function Do(e){var t=e.toLowerCase().replace(/_/g,"-"),n=To[t];if(n)return n;var r=t.split("-")[0];if(n=To[r])return n;if("en"===r)return Io;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}var No=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=r,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var o,a=function(e){return null},s=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(a=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),r&&(s=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var l=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,o,a,s);return e instanceof i.a&&e.add(l),l}}]),n}(r.a);function jo(){return this._results[Pn()]()}var Ro=function(){function e(){_classCallCheck(this,e),this.dirty=!0,this._results=[],this.changes=new No,this.length=0;var t=Pn(),n=e.prototype;n[t]||(n[t]=jo)}return _createClass(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?(n===t&&(n=t.slice(0,r)),e(i,n)):n!==t&&n.push(i)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),Lo=new E("Application Initializer"),Fo=function(){function e(t){var n=this;_classCallCheck(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return _createClass(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();Un(i)&&t.push(i)}Promise.all(t).then((function(){n()})).catch((function(t){e.reject(t)})),0===t.length&&n(),this.initialized=!0}}}]),e}(),Bo=new E("AppId");function Vo(){return"".concat(Ho()).concat(Ho()).concat(Ho())}function Ho(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var zo=new E("Platform Initializer"),$o=new E("Platform ID"),qo=new E("appBootstrapListener"),Uo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}(),Wo=new E("LocaleId");function Go(){throw new Error("Runtime compiler is not loaded")}var Xo,Jo,Qo=Go,Zo=Go,Yo=Go,Ko=Go,ea=function(){function e(){_classCallCheck(this,e),this.compileModuleSync=Qo,this.compileModuleAsync=Zo,this.compileModuleAndAllComponentsSync=Yo,this.compileModuleAndAllComponentsAsync=Ko}return _createClass(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}(),ta=function e(){_classCallCheck(this,e)};var na,ra=!(!(na=x.wtf)||(Xo=na.trace,!Xo)||(Jo=Xo.events,0));function ia(e,t){return null}var oa=ra?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Jo.createScope(e,t)}:function(e,t){return ia},aa=ra?function(e,t){return Xo.leaveScope(e,t),t}:function(e,t){return t},sa=Promise.resolve(0);function la(e){"undefined"==typeof Zone?sa.then((function(){e&&e.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var ua=function(){function e(t){var n,r=t.enableLongStackTrace,i=void 0!==r&&r;if(_classCallCheck(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new No(!1),this.onMicrotaskEmpty=new No(!1),this.onStable=new No(!1),this.onError=new No(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(n=this)._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,r,i,o,a){try{return da(n),e.invokeTask(r,i,o,a)}finally{pa(n)}},onInvoke:function(e,t,r,i,o,a,s){try{return da(n),e.invoke(r,i,o,a,s)}finally{pa(n)}},onHasTask:function(e,t,r,i){e.hasTask(r,i),t===r&&("microTask"==i.change?(n.hasPendingMicrotasks=i.microTask,fa(n)):"macroTask"==i.change&&(n.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,r,i){return e.handleError(r,i),n.runOutsideAngular((function(){return n.onError.emit(i)})),!1}})}return _createClass(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,ha,ca,ca);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}();function ca(){}var ha={};function fa(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular((function(){return e.onStable.emit(null)}))}finally{e.isStable=!0}}}function da(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function pa(e){e._nesting--,fa(e)}var va=function(){function e(){_classCallCheck(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new No,this.onMicrotaskEmpty=new No,this.onStable=new No,this.onError=new No}return _createClass(e,[{key:"run",value:function(e){return e()}},{key:"runGuarded",value:function(e){return e()}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e){return e()}}]),e}(),ga=function(){function e(t){var n=this;_classCallCheck(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return _createClass(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.subscribe({next:function(){ua.assertNotInAngularZone(),la((function(){e._isZoneStable=!0,e._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())la((function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1}));else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)})),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}})):[]}},{key:"addCallback",value:function(e,t,n){var r=this,i=-1;t&&t>0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}(),ma=function(){function e(){_classCallCheck(this,e),this._applications=new Map,ka.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ka.findTestabilityInTree(this,e,t)}}]),e}();function ya(e){ka=e}var ba,ka=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),_a=new E("AllowMultipleToken"),Ca=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function wa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+t,i=new E(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Sa();if(!o||o.injector.get(_a,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0});!function(e){if(ba&&!ba.destroyed&&!ba.injector.get(_a,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ba=e.get(Oa);var t=e.get(zo,null);t&&t.forEach((function(e){return e()}))}(V.create({providers:a,name:r}))}return function(e){var t=Sa();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function Sa(){return ba&&!ba.destroyed?ba:null}var Oa=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r=this,i="noop"===(n=t?t.ngZone:void 0)?new va:("zone.js"===n?void 0:n)||new ua({enableLongStackTrace:Be()}),o=[{provide:ua,useValue:i}];return i.run((function(){var t,n=V.create({providers:o,parent:r.injector,name:e.moduleType.name}),a=e.create(n),s=a.injector.get(Ot,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return t=a.injector.get(Wo,"en-US"),t.toLowerCase().replace(/_/g,"-"),a.onDestroy((function(){return Ta(r._modules,a)})),i.runOutsideAngular((function(){return i.onError.subscribe({next:function(e){s.handleError(e)}})})),function(e,t,n){try{var i=((o=a.injector.get(Fo)).runInitializers(),o.donePromise.then((function(){return r._moduleDoBootstrap(a),a})));return Un(i)?i.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):i}catch(s){throw t.runOutsideAngular((function(){return e.handleError(s)})),s}var o}(s,i)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=xa({},n);return function(e,t,n){return e.get(ta).createCompiler([t]).compileModuleAsync(n)}(this.injector,r,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Ea);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(y(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();function xa(e,t){return Array.isArray(t)?t.reduce(xa,e):Object.assign({},e,t)}var Ea=function(){var e=function(){function e(t,n,r,i,l,u){var c=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=l,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Be(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run((function(){c.tick()}))}});var h=new o.a((function(e){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular((function(){e.next(c._stable),e.complete()}))})),f=new o.a((function(e){var t;c._zone.runOutsideAngular((function(){t=c._zone.onStable.subscribe((function(){ua.assertNotInAngularZone(),la((function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,e.next(!0))}))}))}));var n=c._zone.onUnstable.subscribe((function(){ua.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=Object(a.a)(h,f.pipe(Object(s.a)()))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Xn?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof er?null:this._injector.get(tr),o=n.create(V.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(ga,null);return a&&o.injector.get(ma).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Be()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0;var r,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(r=i.n()).done;){r.value.detectChanges()}}catch(s){i.e(s)}finally{i.f()}if(this._enforceNoNewChanges){var o,a=_createForOfIteratorHelper(this._views);try{for(a.s();!(o=a.n()).done;){o.value.checkNoChanges()}}catch(s){a.e(s)}finally{a.f()}}}catch(l){this._zone.runOutsideAngular((function(){return t._exceptionHandler.handleError(l)}))}finally{this._runningTick=!1,aa(n)}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Ta(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(qo,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),Ta(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e._tickScope=oa("ApplicationRef#tick()"),e}();function Ta(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ma=function e(){_classCallCheck(this,e)},Aa=function e(){_classCallCheck(this,e)},Ia={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Pa=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||Ia}return _createClass(e,[{key:"load",value:function(e){return this._compiler instanceof ea?this.loadFactory(e):this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,r=_slicedToArray(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("zn8P")(i).then((function(e){return e[o]})).then((function(e){return Da(e,i,o)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),r=t[0],i=t[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(e){return e[i+o]})).then((function(e){return Da(e,r,i)}))}}]),e}();function Da(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Na=function e(t,n){_classCallCheck(this,e),this.name=t,this.callback=n},ja=function(){function e(t,n,r){_classCallCheck(this,e),this.listeners=[],this.parent=null,this._debugContext=r,this.nativeNode=t,n&&n instanceof Ra&&n.addChild(this)}return _createClass(e,[{key:"injector",get:function(){return this._debugContext.injector}},{key:"componentInstance",get:function(){return this._debugContext.component}},{key:"context",get:function(){return this._debugContext.context}},{key:"references",get:function(){return this._debugContext.references}},{key:"providerTokens",get:function(){return this._debugContext.providerTokens}}]),e}(),Ra=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e,r,i)).properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return _createClass(n,[{key:"addChild",value:function(e){e&&(this.childNodes.push(e),e.parent=this)}},{key:"removeChild",value:function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}},{key:"insertChildrenAfter",value:function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(_toConsumableArray(t))),t.forEach((function(t){t.parent&&t.parent.removeChild(t),e.parent=r})))}},{key:"insertBefore",value:function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}},{key:"query",value:function(e){return this.queryAll(e)[0]||null}},{key:"queryAll",value:function(e){var t=[];return function e(t,r,i){t.childNodes.forEach((function(t){t instanceof n&&(r(t)&&i.push(t),e(t,r,i))}))}(this,e,t),t}},{key:"queryAllNodes",value:function(e){var t=[];return function e(t,r,i){t instanceof n&&t.childNodes.forEach((function(t){r(t)&&i.push(t),t instanceof n&&e(t,r,i)}))}(this,e,t),t}},{key:"triggerEventHandler",value:function(e,t){this.listeners.forEach((function(n){n.name==e&&n.callback(t)}))}},{key:"children",get:function(){return this.childNodes.filter((function(e){return e instanceof n}))}}]),n}(ja),La=new Map,Fa=function(e){return La.get(e)||null};function Ba(e){La.set(e.nativeNode,e)}var Va=wa(null,"core",[{provide:$o,useValue:"unknown"},{provide:Oa,deps:[V]},{provide:ma,deps:[]},{provide:Uo,deps:[]}]);function Ha(){return Tr}function za(){return Mr}function $a(e){return e||"en-US"}function qa(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}var Ua=function e(t){_classCallCheck(this,e)};function Wa(e,t,n,r,i,o){e|=1;var a=ci(t),s=a.matchedQueries,l=a.references;return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s,matchedQueryIds:a.matchedQueryIds,references:l,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?pi(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Ur},provider:null,text:null,query:null,ngContent:null}}function Ga(e,t,n,r,i,o){var a,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],l=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,h=arguments.length>10?arguments[10]:void 0,f=arguments.length>11?arguments[11]:void 0;c||(c=Ur);var d=ci(n),p=d.matchedQueries,v=d.references,g=d.matchedQueryIds,m=null,y=null;o&&(m=(a=_slicedToArray(_i(o),2))[0],y=a[1]),l=l||[];for(var b=new Array(l.length),k=0;k<l.length;k++){var _=_slicedToArray(l[k],3),C=_[0],w=_[1],S=_[2],O=_i(w),x=_slicedToArray(O,2),E=x[0],T=x[1],M=void 0,A=void 0;switch(15&C){case 4:A=S;break;case 1:case 8:M=S}b[k]={flags:C,ns:E,name:T,nonMinifiedName:T,securityContext:M,suffix:A}}u=u||[];for(var I=new Array(u.length),P=0;P<u.length;P++){var D=_slicedToArray(u[P],2),N=D[0],j=D[1];I[P]={type:0,target:N,eventName:j,propName:null}}var R=(s=s||[]).map((function(e){var t=_slicedToArray(e,2),n=t[0],r=t[1],i=_slicedToArray(_i(n),2);return[i[0],i[1],r]}));return f=function(e){if(e&&"$$undefined"===e.id){var t=null!=e.encapsulation&&e.encapsulation!==Q.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+Qr++:"$$empty"}return e&&"$$empty"===e.id&&(e=null),e||null}(f),h&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:p,matchedQueryIds:g,references:v,ngContentIndex:r,childCount:i,bindings:b,bindingFlags:Ci(b),outputs:I,element:{ns:m,name:y,attrs:R,template:null,componentProvider:null,componentView:h||null,componentRendererType:f,publicProviders:null,allProviders:null,handleEvent:c||Ur},provider:null,text:null,query:null,ngContent:null}}function Xa(e,t,n){var r,i=n.element,o=e.root.selectorOrNode,a=e.renderer;if(e.parent||!o){r=i.name?a.createElement(i.name,i.ns):a.createComment("");var s=fi(e,t,n);s&&a.appendChild(s,r)}else r=a.selectRootElement(o,!!i.componentRendererType&&i.componentRendererType.encapsulation===Q.ShadowDom);if(i.attrs)for(var l=0;l<i.attrs.length;l++){var u=_slicedToArray(i.attrs[l],3),c=u[0],h=u[1],f=u[2];a.setAttribute(r,h,f,c)}return r}function Ja(e,t,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],a=Qa(e,n.nodeIndex,ai(o.target,o.eventName)),s=o.target,l=e;"component"===o.target&&(s=null,l=t);var u=l.renderer.listen(s||r,o.eventName,a);e.disposables[n.outputIndex+i]=u}}function Qa(e,t,n){return function(r){return ni(e,t,n,r)}}function Za(e,t,n,r){if(!Yr(e,t,n,r))return!1;var i=t.bindings[n],o=Vr(e,t.nodeIndex),a=o.renderElement,s=i.name;switch(15&i.flags){case 1:!function(e,t,n,r,i,o){var a=t.securityContext,s=a?e.root.sanitizer.sanitize(a,o):o;s=null!=s?s.toString():null;var l=e.renderer;null!=o?l.setAttribute(n,i,s,r):l.removeAttribute(n,i,r)}(e,i,a,i.ns,s,r);break;case 2:!function(e,t,n,r){var i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}(e,a,s,r);break;case 4:!function(e,t,n,r,i){var o=e.root.sanitizer.sanitize(ut.STYLE,i);if(null!=o){o=o.toString();var a=t.suffix;null!=a&&(o+=a)}else o=null;var s=e.renderer;null!=o?s.setStyle(n,r,o):s.removeStyle(n,r)}(e,i,a,s,r);break;case 8:!function(e,t,n,r,i){var o=t.securityContext,a=o?e.root.sanitizer.sanitize(o,i):i;e.renderer.setProperty(n,r,a)}(33554432&t.flags&&32&i.flags?o.componentView:e,i,a,s,r)}return!0}function Ya(e,t,n){var r=[];for(var i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:ui(t),bindings:r},ngContent:null}}function Ka(e){for(var t=e.def.nodeMatchedQueries;e.parent&&li(e);){var n=e.parentNodeDef;e=e.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++){var o=e.def.nodes[i];67108864&o.flags&&536870912&o.flags&&(o.query.filterId&t)===o.query.filterId&&$r(e,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}}if(134217728&e.def.nodeFlags)for(var a=0;a<e.def.nodes.length;a++){var s=e.def.nodes[a];134217728&s.flags&&536870912&s.flags&&$r(e,a).setDirty(),a+=s.childCount}}function es(e,t){var n=$r(e,t.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&t.flags){var o=t.parent.parent;i=ts(e,o.nodeIndex,o.nodeIndex+o.childCount,t.query,[]),r=Hr(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(i=ts(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(i);for(var a=t.query.bindings,s=!1,l=0;l<a.length;l++){var u=a[l],c=void 0;switch(u.bindingType){case 0:c=n.first;break;case 1:c=n,s=!0}r[u.propName]=c}s&&n.notifyOnChanges()}}function ts(e,t,n,r,i){for(var o=t;o<=n;o++){var a=e.def.nodes[o],s=a.matchedQueries[r.id];if(null!=s&&i.push(ns(e,a,s)),1&a.flags&&a.element.template&&(a.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var l=Vr(e,o);if((a.childMatchedQueries&r.filterId)===r.filterId&&(ts(e,o+1,o+a.childCount,r,i),o+=a.childCount),16777216&a.flags)for(var u=l.viewContainer._embeddedViews,c=0;c<u.length;c++){var h=u[c],f=ri(h);f&&f===l&&ts(h,0,h.def.nodes.length-1,r,i)}var d=l.template._projectedViews;if(d)for(var p=0;p<d.length;p++){var v=d[p];ts(v,0,v.def.nodes.length-1,r,i)}}(a.childMatchedQueries&r.filterId)!==r.filterId&&(o+=a.childCount)}return i}function ns(e,t,n){if(null!=n)switch(n){case 1:return Vr(e,t.nodeIndex).renderElement;case 0:return new ir(Vr(e,t.nodeIndex).renderElement);case 2:return Vr(e,t.nodeIndex).template;case 3:return Vr(e,t.nodeIndex).viewContainer;case 4:return Hr(e,t.nodeIndex).instance}}function rs(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function is(e,t,n){var r=fi(e,t,n);r&&mi(e,n.ngContent.index,1,r,null,void 0)}function os(e,t){return ss(128,e,new Array(t+1))}function as(e,t){for(var n=Object.keys(t),r=n.length,i=new Array(r),o=0;o<r;o++){var a=n[o];i[t[a]]=a}return ss(64,e,i)}function ss(e,t,n){for(var r=new Array(n.length),i=0;i<n.length;i++){var o=n[i];r[i]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:Ci(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function ls(e,t,n){for(var r=new Array(n.length-1),i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function us(e,t,n){var r,i=e.renderer;r=i.createText(n.text.prefix);var o=fi(e,t,n);return o&&i.appendChild(o,r),{renderText:r}}function cs(e,t){return(null!=e?e.toString():"")+t.suffix}function hs(e,t,n,r){for(var i=0,o=0,a=0,s=0,l=0,u=null,c=null,h=!1,f=!1,d=null,p=0;p<t.length;p++){var v=t[p];if(v.nodeIndex=p,v.parent=u,v.bindingIndex=i,v.outputIndex=o,v.renderParent=c,a|=v.flags,l|=v.matchedQueryIds,v.element){var g=v.element;g.publicProviders=u?u.element.publicProviders:Object.create(null),g.allProviders=g.publicProviders,h=!1,f=!1,v.element.template&&(l|=v.element.template.nodeMatchedQueries)}if(ds(u,v,t.length),i+=v.bindings.length,o+=v.outputs.length,!c&&3&v.flags&&(d=v),20224&v.flags){h||(h=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);var m=0!=(32768&v.flags);0==(8192&v.flags)||m?u.element.publicProviders[Gr(v.provider.token)]=v:(f||(f=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[Gr(v.provider.token)]=v),m&&(u.element.componentProvider=v)}if(u?(u.childFlags|=v.flags,u.directChildFlags|=v.flags,u.childMatchedQueries|=v.matchedQueryIds,v.element&&v.element.template&&(u.childMatchedQueries|=v.element.template.nodeMatchedQueries)):s|=v.flags,v.childCount>0)u=v,fs(v)||(c=v);else for(;u&&p===u.nodeIndex+u.childCount;){var y=u.parent;y&&(y.childFlags|=u.childFlags,y.childMatchedQueries|=u.childMatchedQueries),c=(u=y)&&fs(u)?u.renderParent:u}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||Ur,updateRenderer:r||Ur,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:d}}function fs(e){return 0!=(1&e.flags)&&null===e.element.name}function ds(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index ".concat(t.nodeIndex,"!"))}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ".concat(t.nodeIndex,"!"));if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index ".concat(t.nodeIndex,"!"));if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index ".concat(t.nodeIndex,"!"))}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index ".concat(t.nodeIndex,"!"))}}function ps(e,t,n,r){var i=ms(e.root,e.renderer,e,t,n);return ys(i,e.component,r),bs(i),i}function vs(e,t,n){var r=ms(e,e.renderer,null,null,t);return ys(r,n,n),bs(r),r}function gs(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,ms(e.root,i,e,t.element.componentProvider,n)}function ms(e,t,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function ys(e,t,n){e.component=t,e.context=n}function bs(e){var t;si(e)&&(t=Vr(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i<n.nodes.length;i++){var o=n.nodes[i],a=void 0;switch(qr.setCurrentNode(e,i),201347067&o.flags){case 1:var s=Xa(e,t,o),l=void 0;if(33554432&o.flags){var u=pi(o.element.componentView);l=qr.createComponentView(e,o,u,s)}Ja(e,l,o,s),a={renderElement:s,componentView:l,viewContainer:null,template:o.element.template?Wi(e,o):void 0},16777216&o.flags&&(a.viewContainer=zi(e,o,a));break;case 2:a=us(e,t,o);break;case 512:case 1024:case 2048:case 256:(a=r[i])||4096&o.flags||(a={instance:po(e,o)});break;case 16:a={instance:vo(e,o)};break;case 16384:(a=r[i])||(a={instance:go(e,o)}),32768&o.flags&&ys(Vr(e,o.parent.nodeIndex).componentView,a.instance,a.instance);break;case 32:case 64:case 128:a={value:void 0};break;case 67108864:case 134217728:a=new Ro;break;case 8:is(e,t,o),a=void 0}r[i]=a}Ts(e,Es.CreateViewNodes),Ps(e,201326592,268435456,0)}function ks(e){ws(e),qr.updateDirectives(e,1),Ms(e,Es.CheckNoChanges),qr.updateRenderer(e,1),Ts(e,Es.CheckNoChanges),e.state&=-97}function _s(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Lr(e,0,256),ws(e),qr.updateDirectives(e,0),Ms(e,Es.CheckAndUpdate),Ps(e,67108864,536870912,0);var t=Lr(e,256,512);So(e,2097152|(t?1048576:0)),qr.updateRenderer(e,0),Ts(e,Es.CheckAndUpdate),Ps(e,134217728,536870912,0),So(e,8388608|((t=Lr(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Lr(e,768,1024)}function Cs(e,t,n,r,i,o,a,s,l,u,c,h,f){return 0===n?function(e,t,n,r,i,o,a,s,l,u,c,h){switch(201347067&t.flags){case 1:return function(e,t,n,r,i,o,a,s,l,u,c,h){var f=t.bindings.length,d=!1;return f>0&&Za(e,t,0,n)&&(d=!0),f>1&&Za(e,t,1,r)&&(d=!0),f>2&&Za(e,t,2,i)&&(d=!0),f>3&&Za(e,t,3,o)&&(d=!0),f>4&&Za(e,t,4,a)&&(d=!0),f>5&&Za(e,t,5,s)&&(d=!0),f>6&&Za(e,t,6,l)&&(d=!0),f>7&&Za(e,t,7,u)&&(d=!0),f>8&&Za(e,t,8,c)&&(d=!0),f>9&&Za(e,t,9,h)&&(d=!0),d}(e,t,n,r,i,o,a,s,l,u,c,h);case 2:return function(e,t,n,r,i,o,a,s,l,u,c,h){var f=!1,d=t.bindings,p=d.length;if(p>0&&Yr(e,t,0,n)&&(f=!0),p>1&&Yr(e,t,1,r)&&(f=!0),p>2&&Yr(e,t,2,i)&&(f=!0),p>3&&Yr(e,t,3,o)&&(f=!0),p>4&&Yr(e,t,4,a)&&(f=!0),p>5&&Yr(e,t,5,s)&&(f=!0),p>6&&Yr(e,t,6,l)&&(f=!0),p>7&&Yr(e,t,7,u)&&(f=!0),p>8&&Yr(e,t,8,c)&&(f=!0),p>9&&Yr(e,t,9,h)&&(f=!0),f){var v=t.text.prefix;p>0&&(v+=cs(n,d[0])),p>1&&(v+=cs(r,d[1])),p>2&&(v+=cs(i,d[2])),p>3&&(v+=cs(o,d[3])),p>4&&(v+=cs(a,d[4])),p>5&&(v+=cs(s,d[5])),p>6&&(v+=cs(l,d[6])),p>7&&(v+=cs(u,d[7])),p>8&&(v+=cs(c,d[8])),p>9&&(v+=cs(h,d[9]));var g=Br(e,t.nodeIndex).renderText;e.renderer.setValue(g,v)}return f}(e,t,n,r,i,o,a,s,l,u,c,h);case 16384:return function(e,t,n,r,i,o,a,s,l,u,c,h){var f=Hr(e,t.nodeIndex),d=f.instance,p=!1,v=void 0,g=t.bindings.length;return g>0&&Zr(e,t,0,n)&&(p=!0,v=wo(e,f,t,0,n,v)),g>1&&Zr(e,t,1,r)&&(p=!0,v=wo(e,f,t,1,r,v)),g>2&&Zr(e,t,2,i)&&(p=!0,v=wo(e,f,t,2,i,v)),g>3&&Zr(e,t,3,o)&&(p=!0,v=wo(e,f,t,3,o,v)),g>4&&Zr(e,t,4,a)&&(p=!0,v=wo(e,f,t,4,a,v)),g>5&&Zr(e,t,5,s)&&(p=!0,v=wo(e,f,t,5,s,v)),g>6&&Zr(e,t,6,l)&&(p=!0,v=wo(e,f,t,6,l,v)),g>7&&Zr(e,t,7,u)&&(p=!0,v=wo(e,f,t,7,u,v)),g>8&&Zr(e,t,8,c)&&(p=!0,v=wo(e,f,t,8,c,v)),g>9&&Zr(e,t,9,h)&&(p=!0,v=wo(e,f,t,9,h,v)),v&&d.ngOnChanges(v),65536&t.flags&&Fr(e,256,t.nodeIndex)&&d.ngOnInit(),262144&t.flags&&d.ngDoCheck(),p}(e,t,n,r,i,o,a,s,l,u,c,h);case 32:case 64:case 128:return function(e,t,n,r,i,o,a,s,l,u,c,h){var f=t.bindings,d=!1,p=f.length;if(p>0&&Yr(e,t,0,n)&&(d=!0),p>1&&Yr(e,t,1,r)&&(d=!0),p>2&&Yr(e,t,2,i)&&(d=!0),p>3&&Yr(e,t,3,o)&&(d=!0),p>4&&Yr(e,t,4,a)&&(d=!0),p>5&&Yr(e,t,5,s)&&(d=!0),p>6&&Yr(e,t,6,l)&&(d=!0),p>7&&Yr(e,t,7,u)&&(d=!0),p>8&&Yr(e,t,8,c)&&(d=!0),p>9&&Yr(e,t,9,h)&&(d=!0),d){var v,g=zr(e,t.nodeIndex);switch(201347067&t.flags){case 32:v=new Array(f.length),p>0&&(v[0]=n),p>1&&(v[1]=r),p>2&&(v[2]=i),p>3&&(v[3]=o),p>4&&(v[4]=a),p>5&&(v[5]=s),p>6&&(v[6]=l),p>7&&(v[7]=u),p>8&&(v[8]=c),p>9&&(v[9]=h);break;case 64:v={},p>0&&(v[f[0].name]=n),p>1&&(v[f[1].name]=r),p>2&&(v[f[2].name]=i),p>3&&(v[f[3].name]=o),p>4&&(v[f[4].name]=a),p>5&&(v[f[5].name]=s),p>6&&(v[f[6].name]=l),p>7&&(v[f[7].name]=u),p>8&&(v[f[8].name]=c),p>9&&(v[f[9].name]=h);break;case 128:var m=n;switch(p){case 1:v=m.transform(n);break;case 2:v=m.transform(r);break;case 3:v=m.transform(r,i);break;case 4:v=m.transform(r,i,o);break;case 5:v=m.transform(r,i,o,a);break;case 6:v=m.transform(r,i,o,a,s);break;case 7:v=m.transform(r,i,o,a,s,l);break;case 8:v=m.transform(r,i,o,a,s,l,u);break;case 9:v=m.transform(r,i,o,a,s,l,u,c);break;case 10:v=m.transform(r,i,o,a,s,l,u,c,h)}}g.value=v}return d}(e,t,n,r,i,o,a,s,l,u,c,h);default:throw"unreachable"}}(e,t,r,i,o,a,s,l,u,c,h,f):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i<n.length;i++)Za(e,t,i,n[i])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){for(var r=t.bindings,i=!1,o=0;o<n.length;o++)Yr(e,t,o,n[o])&&(i=!0);if(i){for(var a="",s=0;s<n.length;s++)a+=cs(n[s],r[s]);a=t.text.prefix+a;var l=Br(e,t.nodeIndex).renderText;e.renderer.setValue(l,a)}return i}(e,t,n);case 16384:return function(e,t,n){for(var r=Hr(e,t.nodeIndex),i=r.instance,o=!1,a=void 0,s=0;s<n.length;s++)Zr(e,t,s,n[s])&&(o=!0,a=wo(e,r,t,s,n[s],a));return a&&i.ngOnChanges(a),65536&t.flags&&Fr(e,256,t.nodeIndex)&&i.ngOnInit(),262144&t.flags&&i.ngDoCheck(),o}(e,t,n);case 32:case 64:case 128:return function(e,t,n){for(var r=t.bindings,i=!1,o=0;o<n.length;o++)Yr(e,t,o,n[o])&&(i=!0);if(i){var a,s=zr(e,t.nodeIndex);switch(201347067&t.flags){case 32:a=n;break;case 64:a={};for(var l=0;l<n.length;l++)a[r[l].name]=n[l];break;case 128:var u=n[0],c=n.slice(1);a=u.transform.apply(u,_toConsumableArray(c))}s.value=a}return i}(e,t,n);default:throw"unreachable"}}(e,t,r)}function ws(e){var t=e.def;if(4&t.nodeFlags)for(var n=0;n<t.nodes.length;n++){var r=t.nodes[n];if(4&r.flags){var i=Vr(e,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var a=i[o];a.state|=32,ti(a,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Ss(e,t,n,r,i,o,a,s,l,u,c,h,f){return 0===n?function(e,t,n,r,i,o,a,s,l,u,c,h){var f=t.bindings.length;f>0&&Kr(e,t,0,n),f>1&&Kr(e,t,1,r),f>2&&Kr(e,t,2,i),f>3&&Kr(e,t,3,o),f>4&&Kr(e,t,4,a),f>5&&Kr(e,t,5,s),f>6&&Kr(e,t,6,l),f>7&&Kr(e,t,7,u),f>8&&Kr(e,t,8,c),f>9&&Kr(e,t,9,h)}(e,t,r,i,o,a,s,l,u,c,h,f):function(e,t,n){for(var r=0;r<n.length;r++)Kr(e,t,r,n[r])}(e,t,r),!1}function Os(e,t){if($r(e,t.nodeIndex).dirty)throw Nr(qr.createDebugContext(e,t.nodeIndex),"Query ".concat(t.query.id," not dirty"),"Query ".concat(t.query.id," dirty"),0!=(1&e.state))}function xs(e){if(!(128&e.state)){if(Ms(e,Es.Destroy),Ts(e,Es.Destroy),So(e,131072),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(16&e.state){var t=ri(e);if(t){var n=t.template._projectedViews;n&&(Li(n,n.indexOf(e)),qr.dirtyParentQueries(e))}}}(e),e.renderer.destroyNode&&function(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var r=e.def.nodes[n];1&r.flags?e.renderer.destroyNode(Vr(e,n).renderElement):2&r.flags?e.renderer.destroyNode(Br(e,n).renderText):(67108864&r.flags||134217728&r.flags)&&$r(e,n).destroy()}}(e),si(e)&&e.renderer.destroy(),e.state|=128}}var Es=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function Ts(e,t){var n=e.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?As(Vr(e,r).componentView,t):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function Ms(e,t){var n=e.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=Vr(e,r).viewContainer._embeddedViews,a=0;a<o.length;a++)As(o[a],t);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function As(e,t){var n=e.state;switch(t){case Es.CheckNoChanges:0==(128&n)&&(12==(12&n)?ks(e):64&n&&Is(e,Es.CheckNoChangesProjectedViews));break;case Es.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?ks(e):64&n&&Is(e,t));break;case Es.CheckAndUpdate:0==(128&n)&&(12==(12&n)?_s(e):64&n&&Is(e,Es.CheckAndUpdateProjectedViews));break;case Es.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?_s(e):64&n&&Is(e,t));break;case Es.Destroy:xs(e);break;case Es.CreateViewNodes:bs(e)}}function Is(e,t){Ms(e,t),Ts(e,t)}function Ps(e,t,n,r){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var i=e.def.nodes.length,o=0;o<i;o++){var a=e.def.nodes[o];if(a.flags&t&&a.flags&n)switch(qr.setCurrentNode(e,a.nodeIndex),r){case 0:es(e,a);break;case 1:Os(e,a)}a.childFlags&t&&a.childFlags&n||(o+=a.childCount)}}var Ds=!1;function Ns(e,t,n,r,i,o){var a=i.injector.get(sr);return vs(Rs(e,i,a,t,n),r,o)}function js(e,t,n,r,i,o){var a=i.injector.get(sr),s=Rs(e,i,new pl(a),t,n),l=Ws(r);return fl(tl.create,vs,null,[s,l,o])}function Rs(e,t,n,r,i){var o=t.injector.get(ct),a=t.injector.get(Ot),s=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:s,errorHandler:a}}function Ls(e,t,n,r){var i=Ws(n);return fl(tl.create,ps,null,[e,t,i,r])}function Fs(e,t,n,r){return n=zs.get(t.element.componentProvider.provider.token)||Ws(n),fl(tl.create,gs,null,[e,t,n,r])}function Bs(e,t,n,r){return Ki(e,t,n,function(e){var t=function(e){var t=!1,n=!1;return 0===Vs.size||(e.providers.forEach((function(e){var r=Vs.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)})),e.modules.forEach((function(e){Hs.forEach((function(r,i){g(i).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)}))}))),{hasOverrides:t,hasDeprecatedOverrides:n}}(e),n=t.hasOverrides,r=t.hasDeprecatedOverrides;return n?(function(e){for(var t=0;t<e.providers.length;t++){var n=e.providers[t];r&&(n.flags|=4096);var i=Vs.get(n.token);i&&(n.flags=-3841&n.flags|i.flags,n.deps=hi(i.deps),n.value=i.value)}if(Hs.size>0){var o=new Set(e.modules);Hs.forEach((function(t,n){if(o.has(g(n).providedIn)){var i={token:n,flags:t.flags|(r?4096:0),deps:hi(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[Gr(n)]=i}}))}}(e=e.factory((function(){return Ur}))),e):e}(r))}var Vs=new Map,Hs=new Map,zs=new Map;function $s(e){var t;Vs.set(e.token,e),"function"==typeof e.token&&(t=g(e.token))&&"function"==typeof t.providedIn&&Hs.set(e.token,e)}function qs(e,t){var n=pi(t.viewDefFactory),r=pi(n.nodes[0].element.componentView);zs.set(e,r)}function Us(){Vs.clear(),Hs.clear(),zs.clear()}function Ws(e){if(0===Vs.size)return e;var t=function(e){for(var t=[],n=null,r=0;r<e.nodes.length;r++){var i=e.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Vs.has(i.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory((function(){return Ur}));for(var n=0;n<t.length;n++)r(e,t[n]);return e;function r(e,t){for(var n=t+1;n<e.nodes.length;n++){var r=e.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=Vs.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=hi(o.deps),i.value=o.value)}}}}function Gs(e,t,n,r,i,o,a,s,l,u,c,h,f){var d=e.def.nodes[t];return Cs(e,d,n,r,i,o,a,s,l,u,c,h,f),224&d.flags?zr(e,t).value:void 0}function Xs(e,t,n,r,i,o,a,s,l,u,c,h,f){var d=e.def.nodes[t];return Ss(e,d,n,r,i,o,a,s,l,u,c,h,f),224&d.flags?zr(e,t).value:void 0}function Js(e){return fl(tl.detectChanges,_s,null,[e])}function Qs(e){return fl(tl.checkNoChanges,ks,null,[e])}function Zs(e){return fl(tl.destroy,xs,null,[e])}var Ys,Ks,el,tl=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();function nl(e,t){Ks=e,el=t}function rl(e,t,n,r){return nl(e,t),fl(tl.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function il(e,t){if(128&e.state)throw Rr(tl[Ys]);return nl(e,ll(e,0)),e.def.updateDirectives((function(e,n,r){for(var i=e.def.nodes[n],o=arguments.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return 0===t?al(e,i,r,a):sl(e,i,r,a),16384&i.flags&&nl(e,ll(e,n)),224&i.flags?zr(e,i.nodeIndex).value:void 0}),e)}function ol(e,t){if(128&e.state)throw Rr(tl[Ys]);return nl(e,ul(e,0)),e.def.updateRenderer((function(e,n,r){for(var i=e.def.nodes[n],o=arguments.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return 0===t?al(e,i,r,a):sl(e,i,r,a),3&i.flags&&nl(e,ul(e,n)),224&i.flags?zr(e,i.nodeIndex).value:void 0}),e)}function al(e,t,n,r){if(Cs.apply(void 0,[e,t,n].concat(_toConsumableArray(r)))){var i=1===n?r[0]:r;if(16384&t.flags){for(var o={},a=0;a<t.bindings.length;a++){var s=t.bindings[a],l=i[a];8&s.flags&&(o[xt(s.nonMinifiedName)]=Tt(l))}var u=t.parent,c=Vr(e,u.nodeIndex).renderElement;if(u.element.name)for(var h in o){var f=o[h];null!=f?e.renderer.setAttribute(c,h,f):e.renderer.removeAttribute(c,h)}else e.renderer.setValue(c,"bindings="+JSON.stringify(o,null,2))}}}function sl(e,t,n,r){Ss.apply(void 0,[e,t,n].concat(_toConsumableArray(r)))}function ll(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function ul(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var cl=function(){function e(t,n){_classCallCheck(this,e),this.view=t,this.nodeIndex=n,null==n&&(this.nodeIndex=n=0),this.nodeDef=t.def.nodes[n];for(var r=this.nodeDef,i=t;r&&0==(1&r.flags);)r=r.parent;if(!r)for(;!r&&i;)r=ii(i),i=i.parent;this.elDef=r,this.elView=i}return _createClass(e,[{key:"logError",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,o;2&this.nodeDef.flags?(i=this.view.def,o=this.nodeDef.nodeIndex):(i=this.elView.def,o=this.elDef.nodeIndex);var a=function(e,t){for(var n=-1,r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(i,o),s=-1;i.factory((function(){var t;return++s===a?(t=e.error).bind.apply(t,[e].concat(n)):Ur})),s<a&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error.apply(e,n))}},{key:"elOrCompView",get:function(){return Vr(this.elView,this.elDef.nodeIndex).componentView||this.view}},{key:"injector",get:function(){return Xi(this.elView,this.elDef)}},{key:"component",get:function(){return this.elOrCompView.component}},{key:"context",get:function(){return this.elOrCompView.context}},{key:"providerTokens",get:function(){var e=[];if(this.elDef)for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}},{key:"references",get:function(){var e={};if(this.elDef){hl(this.elView,this.elDef,e);for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&hl(this.elView,n,e),t+=n.childCount}}return e}},{key:"componentRenderElement",get:function(){var e=function(e){for(;e&&!si(e);)e=e.parent;return e.parent?Vr(e.parent,ii(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}},{key:"renderNode",get:function(){return 2&this.nodeDef.flags?oi(this.view,this.nodeDef):oi(this.elView,this.elDef)}}]),e}();function hl(e,t,n){for(var r in t.references)n[r]=ns(e,t,t.references[r])}function fl(e,t,n,r){var i,o,a=Ys,s=Ks,l=el;try{Ys=e;var u=t.apply(n,r);return Ks=s,el=l,Ys=a,u}catch(c){if(Ct(c)||!Ks)throw c;throw i=c,o=dl(),i instanceof Error||(i=new Error(i.toString())),jr(i,o),i}}function dl(){return Ks?new cl(Ks,el):null}var pl=function(){function e(t){_classCallCheck(this,e),this.delegate=t}return _createClass(e,[{key:"createRenderer",value:function(e,t){return new vl(this.delegate.createRenderer(e,t))}},{key:"begin",value:function(){this.delegate.begin&&this.delegate.begin()}},{key:"end",value:function(){this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}]),e}(),vl=function(){function e(t){_classCallCheck(this,e),this.delegate=t,this.debugContextFactory=dl,this.data=this.delegate.data}return _createClass(e,[{key:"createDebugContext",value:function(e){return this.debugContextFactory(e)}},{key:"destroyNode",value:function(e){!function(e){La.delete(e.nativeNode)}(Fa(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)}},{key:"destroy",value:function(){this.delegate.destroy()}},{key:"createElement",value:function(e,t){var n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){var i=new Ra(n,null,r);i.name=e,Ba(i)}return n}},{key:"createComment",value:function(e){var t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&Ba(new ja(t,null,n)),t}},{key:"createText",value:function(e){var t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&Ba(new ja(t,null,n)),t}},{key:"appendChild",value:function(e,t){var n=Fa(e),r=Fa(t);n&&r&&n instanceof Ra&&n.addChild(r),this.delegate.appendChild(e,t)}},{key:"insertBefore",value:function(e,t,n){var r=Fa(e),i=Fa(t),o=Fa(n);r&&i&&r instanceof Ra&&r.insertBefore(o,i),this.delegate.insertBefore(e,t,n)}},{key:"removeChild",value:function(e,t){var n=Fa(e),r=Fa(t);n&&r&&n instanceof Ra&&n.removeChild(r),this.delegate.removeChild(e,t)}},{key:"selectRootElement",value:function(e,t){var n=this.delegate.selectRootElement(e,t),r=dl();return r&&Ba(new Ra(n,null,r)),n}},{key:"setAttribute",value:function(e,t,n,r){var i=Fa(e);i&&i instanceof Ra&&(i.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}},{key:"removeAttribute",value:function(e,t,n){var r=Fa(e);r&&r instanceof Ra&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){var n=Fa(e);n&&n instanceof Ra&&(n.classes[t]=!0),this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){var n=Fa(e);n&&n instanceof Ra&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,r){var i=Fa(e);i&&i instanceof Ra&&(i.styles[t]=n),this.delegate.setStyle(e,t,n,r)}},{key:"removeStyle",value:function(e,t,n){var r=Fa(e);r&&r instanceof Ra&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){var r=Fa(e);r&&r instanceof Ra&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){if("string"!=typeof e){var r=Fa(e);r&&r.listeners.push(new Na(t,n))}return this.delegate.listen(e,t,n)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setValue",value:function(e,t){return this.delegate.setValue(e,t)}}]),e}();function gl(e,t,n){return new ml(e,t,n)}var ml=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this)).moduleType=e,o._bootstrapComponents=r,o._ngModuleDefFactory=i,o}return _createClass(n,[{key:"create",value:function(e){!function(){if(!Ds){Ds=!0;var e=Be()?{setCurrentNode:nl,createRootView:js,createEmbeddedView:Ls,createComponentView:Fs,createNgModuleRef:Bs,overrideProvider:$s,overrideComponentView:qs,clearOverrides:Us,checkAndUpdateView:Js,checkNoChangesView:Qs,destroyView:Zs,createDebugContext:function(e,t){return new cl(e,t)},handleEvent:rl,updateDirectives:il,updateRenderer:ol}:{setCurrentNode:function(){},createRootView:Ns,createEmbeddedView:ps,createComponentView:gs,createNgModuleRef:Ki,overrideProvider:Ur,overrideComponentView:Ur,clearOverrides:Ur,checkAndUpdateView:_s,checkNoChangesView:ks,destroyView:xs,createDebugContext:function(e,t){return new cl(e,t)},handleEvent:function(e,t,n,r){return e.def.handleEvent(e,t,n,r)},updateDirectives:function(e,t){return e.def.updateDirectives(0===t?Gs:Xs,e)},updateRenderer:function(e,t){return e.def.updateRenderer(0===t?Gs:Xs,e)}};qr.setCurrentNode=e.setCurrentNode,qr.createRootView=e.createRootView,qr.createEmbeddedView=e.createEmbeddedView,qr.createComponentView=e.createComponentView,qr.createNgModuleRef=e.createNgModuleRef,qr.overrideProvider=e.overrideProvider,qr.overrideComponentView=e.overrideComponentView,qr.clearOverrides=e.clearOverrides,qr.checkAndUpdateView=e.checkAndUpdateView,qr.checkNoChangesView=e.checkNoChangesView,qr.destroyView=e.destroyView,qr.resolveDep=_o,qr.createDebugContext=e.createDebugContext,qr.handleEvent=e.handleEvent,qr.updateDirectives=e.updateDirectives,qr.updateRenderer=e.updateRenderer,qr.dirtyParentQueries=Ka}}();var t=function(e){var t=Array.from(e.providers),n=Array.from(e.modules),r={};for(var i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(pi(this._ngModuleDefFactory));return qr.createNgModuleRef(this.moduleType,e||V.NULL,this._bootstrapComponents,t)}}]),n}(nr)},"9ppp":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},ASgS:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("EGUZ"),n("iunF");var r=function(){function e(t,n,r){var i=this;_classCallCheck(this,e),this.navCtrl=t,this.storageManager=n,this.settingsManager=r,this.notification=!0,this.autoNightMode=!1,this.bubbleCopyStatus=!0,this.settingsManager.getNotificationsStatus().then((function(e){null!=e&&(i.notification=e)})),this.settingsManager.getAutoNightMode().then((function(e){null!=e&&(i.autoNightMode=e)})),this.settingsManager.getBubbleCopyStatus().then((function(e){null!=e&&(i.bubbleCopyStatus=e)}))}return _createClass(e,[{key:"ionViewDidLoad",value:function(){console.log("ionViewDidLoad SettingsPage")}},{key:"activateNotification",value:function(){this.notification?this.settingsManager.notificationsManager.init():this.settingsManager.disableNotifications()}},{key:"toggleAutoNightMode",value:function(){this.settingsManager.setAutoNightMode(!!this.autoNightMode)}},{key:"toggleBubbleCopy",value:function(){this.settingsManager.setBubbleCopyStatus(this.bubbleCopyStatus)}}]),e}()},AcVp:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.enable=function(){return Object(i.cordova)(this,"enable",{sync:!0},arguments)},t.prototype.disable=function(){return Object(i.cordova)(this,"disable",{sync:!0},arguments)},t.prototype.setEnabled=function(e){return Object(i.cordova)(this,"setEnabled",{sync:!0},arguments)},t.prototype.fireEvent=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Object(i.cordova)(this,"fireEvent",{sync:!0},arguments)},t.prototype.isEnabled=function(){return Object(i.cordova)(this,"isEnabled",{sync:!0},arguments)},t.prototype.isActive=function(){return Object(i.cordova)(this,"isActive",{sync:!0},arguments)},t.prototype.setDefaults=function(e){return Object(i.cordova)(this,"setDefaults",{platforms:["Android"]},arguments)},t.prototype.configure=function(e){return Object(i.cordova)(this,"configure",{platforms:["Android"],sync:!0},arguments)},t.prototype.on=function(e){return Object(i.cordova)(this,"on",{observable:!0,clearFunction:"un",clearWithArgs:!0},arguments)},t.prototype.un=function(e,t){return Object(i.cordova)(this,"un",{},arguments)},t.prototype.moveToBackground=function(){return Object(i.cordova)(this,"moveToBackground",{platforms:["Android"],sync:!0},arguments)},t.prototype.disableWebViewOptimizations=function(){return Object(i.cordova)(this,"disableWebViewOptimizations",{platforms:["Android"],sync:!0},arguments)},t.prototype.moveToForeground=function(){return Object(i.cordova)(this,"moveToForeground",{platforms:["Android"],sync:!0},arguments)},t.prototype.overrideBackButton=function(){return Object(i.cordova)(this,"overrideBackButton",{platforms:["Android"],sync:!0},arguments)},t.prototype.excludeFromTaskList=function(){return Object(i.cordova)(this,"excludeFromTaskList",{platforms:["Android"],sync:!0},arguments)},t.prototype.isScreenOff=function(e){return Object(i.cordova)(this,"isScreenOff",{platforms:["Android"]},arguments)},t.prototype.wakeUp=function(){return Object(i.cordova)(this,"wakeUp",{platforms:["Android"],sync:!0},arguments)},t.prototype.unlock=function(){return Object(i.cordova)(this,"unlock",{platforms:["Android"],sync:!0},arguments)},t.prototype.disableBatteryOptimizations=function(){return Object(i.cordova)(this,"disableBatteryOptimizations",{platforms:["Android"],sync:!0},arguments)},t.pluginName="BackgroundMode",t.plugin="cordova-plugin-background-mode",t.pluginRef="cordova.plugins.backgroundMode",t.repo="https://github.com/katzer/cordova-plugin-background-mode",t.platforms=["AmazonFire OS","Android","Browser","iOS","Windows"],t}(i.IonicNativePlugin)},AjPc:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return a}));var r=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"isJson",value:function(e){try{JSON.parse(e)}catch(t){return!1}return!0}}]),e}(),i=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"isArabic",value:function(e){return/[\u0600-\u06FF]/.test(e)}},{key:"isGerman",value:function(e){return!this.isArabic(e)}}]),e}(),o=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"addCssClass",value:function(e){var t=document.getElementsByTagName("ion-app")[0];console.log(e),t.className+=" "+e}},{key:"removeCssClass",value:function(e){var t=document.getElementsByTagName("ion-app")[0];t.className=t.className.replace(e,"")}}]),e}(),a=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"pad2",value:function(e){return e<10?"0"+e:e}},{key:"getTimeString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return t.getFullYear().toString()+"/"+e.pad2(t.getMonth()+1)+"/"+e.pad2(t.getDate())+" "+e.pad2(t.getHours())+":"+e.pad2(t.getMinutes())+":"+e.pad2(t.getSeconds())}},{key:"getToday",value:function(){var t=new Date;return t.getFullYear().toString()+"/"+e.pad2(t.getMonth()+1)+"/"+e.pad2(t.getDate())+" 00:00:00"}},{key:"getTodayForSqlLite",value:function(){var t=new Date;return t.getFullYear().toString()+"-"+e.pad2(t.getMonth()+1)+"-"+e.pad2(t.getDate())+" 23:59:59"}},{key:"getHour",value:function(){return(new Date).getHours()}},{key:"getTodayNight",value:function(){var t=new Date;return t.getFullYear().toString()+"/"+e.pad2(t.getMonth()+1)+"/"+e.pad2(t.getDate())+" 24:00:00"}}]),e}()},AyaB:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("GAbP"),i=(n("6GXZ"),n("2IJ5"),n("nAxv")),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,r,i,o)).sqlite=e,a.consoleDialog=r,a.injector=i,a.platform=o,a.init().then((function(){a.createFriendsTable()})),a}return _createClass(n,[{key:"add",value:function(e){console.log("adding friend to database"),this.databaseObj.executeSql('INSERT OR IGNORE INTO friends (friendID,chatID,email,name,family) VALUES ("'+e.userID+'","'+e.chatID+'","'+e.email+'","'+e.name+'","'+e.familyName+'")').then((function(e){console.log("friend has beend added successfully")})).catch((function(e){console.log(" there was an error adding friend to database",e)}))}},{key:"getFriends",value:function(){var e=this;return new Promise((function(t,n){var r=[];e.init().then((function(){e.databaseObj.executeSql("select * from friends",[]).then((function(e){if(e.rows.length>0)for(var n=0;n<e.rows.length;n++)r.push(new i.a(e.rows.item(n)));t(r)})).catch((function(e){console.log("error table of friends",e)}))}))}))}},{key:"init",value:function(){var e=this;return new Promise((function(t,r){null!=e.databaseObj?t(e.databaseObj):_get(_getPrototypeOf(n.prototype),"init",e).call(e,e.userManager.user).then((function(e){t(e)}))}))}},{key:"createFriendsTable",value:function(){this.databaseObj.executeSql("create table IF NOT EXISTS friends \n (friendID VARCHAR(32),chatID VARCHAR(32),email VARCHAR(32) UNIQUE,name VARCHAR(32),family VARCHAR(32))",[]).then((function(){console.log("Executed SQLL")})).catch((function(e){console.log(e)}))}}]),n}(r.a)},"B/Pu":function(e,t,n){"use strict";var r=n("8Y7J"),i=n("MKJQ"),o=n("sZkV"),a=n("SVse"),s=n("ds6b"),l=n("J20c"),u=n("iunF"),c=n("TSSN");n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return g})),n.d(t,"a",(function(){return m}));var h=r.qb({encapsulation:0,styles:[[".closeOverlay[_ngcontent-%COMP%]{width:102vw;height:100%;display:block;background:0 0;position:fixed;left:0;top:0;z-index:-1}.optionMenuen[_ngcontent-%COMP%], .optionMenufa[_ngcontent-%COMP%]{background:#fff;width:53vw;right:31px;position:absolute;z-index:3;border-radius:10px;height:auto;top:39px;padding-top:10px;box-shadow:0 -2px 4px #efefef}.menuButton[_ngcontent-%COMP%]{height:5vh;color:#000;display:block;top:31px;right:20px;z-index:2;margin-bottom:10px}.menuButton[_ngcontent-%COMP%] .menuText[_ngcontent-%COMP%]{float:left;padding-left:1.1rem;width:80%;padding-top:3px;color:#000;direction:ltr}.menuButton[_ngcontent-%COMP%] .buttnsIcon[_ngcontent-%COMP%]{float:right;width:20%;line-height:35px;position:absolute;right:10px;direction:rtl;color:#000}"]],data:{}});function f(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,5,"div",[["class","menuButton"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.context.$implicit.click()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,1,"div",[["class","menuText"]],null,null,null,null,null)),(e()(),r.Lb(2,null,[" "," "])),(e()(),r.sb(3,0,null,null,2,"div",[["class","buttnsIcon"]],null,null,null,null,null)),(e()(),r.sb(4,0,null,null,1,"ion-icon",[],null,null,null,i.fb,i.q)),r.rb(5,49152,null,0,o.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){var n=r.wb(1,"",t.context.$implicit.getIcon(),"");e(t,5,0,n)}),(function(e,t){e(t,2,0,t.context.$implicit.text)}))}function d(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"div",[["class","optionMenufa"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,f)),r.rb(2,278528,null,0,a.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,2,0,t.component.chatOptionMenu.buttons)}),null)}function p(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,5,"div",[["class","menuButton"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.context.$implicit.click()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,1,"div",[["class","menuText"]],null,null,null,null,null)),(e()(),r.Lb(2,null,[" "," "])),(e()(),r.sb(3,0,null,null,2,"div",[["class","buttnsIcon"]],null,null,null,null,null)),(e()(),r.sb(4,0,null,null,1,"ion-icon",[],null,null,null,i.fb,i.q)),r.rb(5,49152,null,0,o.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){var n=r.wb(1,"",t.context.$implicit.getIcon(),"");e(t,5,0,n)}),(function(e,t){e(t,2,0,t.context.$implicit.text)}))}function v(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"div",[["class","optionMenuen"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,p)),r.rb(2,278528,null,0,a.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,2,0,t.component.chatOptionMenu.buttons)}),null)}function g(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,0,"div",[["class","closeOverlay"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.chatOptionMenu.close()&&r),r}),null,null)),(e()(),r.hb(16777216,null,null,1,null,d)),r.rb(2,16384,null,0,a.k,[r.O,r.L],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),r.hb(0,[["cond1",2]],null,0,null,v))],(function(e,t){e(t,2,0,"fa"==t.component.tolang,r.Eb(t,3))}),null)}var m=r.ob("chat-option-menu",s.a,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"chat-option-menu",[],null,null,null,g,h)),r.rb(1,5292032,null,0,s.a,[l.a,o.Fb,u.a,c.j],null,null)],null,null)}),{chat:"chat",headerComp:"parent"},{},[])},BFxc:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("7o/Q"),i=n("4I5i"),o=n("EY2u");function a(e){return function(t){return 0===e?Object(o.b)():t.lift(new s(e))}}var s=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new i.a}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.total))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).total=r,i.ring=new Array,i.count=0,i}return _createClass(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=t++%n;e.next(r[o])}e.complete()}}]),n}(r.a)},BNVH:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("/qZA"),i=n("iunF"),o=function(){function e(t,n,o){_classCallCheck(this,e),this.http=t,this.injector=n,this.navCtrl=o,console.log("Hello AccountManagerProvider Provider"),this.socketMgr=this.injector.get(r.a),this.settingsMgr=this.injector.get(i.a),this.checkUserAccount()}return _createClass(e,[{key:"getSubscriptionsStatus",value:function(){var e=this;this.socketMgr.userManager.getUser().then((function(t){e.socketMgr.asyncQuery("GetSubscriptionStatus",{}).then((function(e){console.log(e)}))}))}},{key:"checkUserAccount",value:function(){var e=this;this.socketMgr.userManager.getUser().then((function(t){e.socketMgr.asyncQuery("getUserStatus",{}).then((function(t){var n=t.getParam("status");"Enabled"==n?e.settingsMgr.getPrimarySettings().then((function(t){t.setBayaPlus(!1),e.settingsMgr.savePrimarySetting()})):"Disabled"==n?e.navCtrl.navigateRoot("profile"):"BayaPlus"==n&&e.settingsMgr.getPrimarySettings().then((function(t){t.setBayaPlus(!0),e.settingsMgr.savePrimarySetting()}))}))}))}}]),e}()},BzsH:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var r=n("8Y7J"),i=n("Xd0L"),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e))._platform=r,o._document=i,o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){var e=this;Object(r.W)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return e._checkToolbarMixedModes()})))}},{key:"_checkToolbarMixedModes",value:function(){var e=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(e){return!(e.classList&&e.classList.contains("mat-toolbar-row"))})).filter((function(t){return t.nodeType!==(e._document?e._document.COMMENT_NODE:8)})).some((function(e){return!(!e.textContent||!e.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")}()}}]),n}(Object(i.c)((function e(t){_classCallCheck(this,e),this._elementRef=t}))),a=function e(){_classCallCheck(this,e)}},CDm8:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n("kbZ1");var r=n("7BDe");n("iunF");var i=function(){function e(t,n,r,i,o){_classCallCheck(this,e),this.itemsManager=t,this.navCtrl=n,this.settingsManager=r,this.viewCtrl=i,this.router=o,this.public=!1,this.allowedItemsNumber=15,this.itemName=""}return _createClass(e,[{key:"addItem",value:function(){var e=this;0==this.itemName.length&&(this.itemName=this.collection.getTitle());var t=new r.a({name:this.itemName,title:this.itemName,status:this.public?"public":"private"});this.hasAccess().then((function(n){1==n?e.viewCtrl.dismiss({item:t}):e.navCtrl.navigateForward("BayaPlusPage")})),this.router.navigate(["items"])}},{key:"close",value:function(){this.viewCtrl.dismiss()}},{key:"hasAccess",value:function(){var e=this;return new Promise((function(t){var n=!1;e.settingsManager.getPrimarySettings().then((function(r){r.isBayaPlus()&&(n=!0),e.itemsManager.items.length<e.allowedItemsNumber&&(n=!0),t(n)}))}))}},{key:"isAllowPublic",value:function(){return this.collection.isDictionary()}}]),e}()},Cfvw:function(e,t,n){"use strict";var r=n("HDdC"),i=n("SeVD"),o=n("quSY"),a=n("kJWO"),s=n("jZKg"),l=n("Lhse"),u=n("c2HN"),c=n("I55L");function h(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[a.a]}(e))return function(e,t){return new r.a((function(n){var r=new o.a;return r.add(t.schedule((function(){var i=e[a.a]();r.add(i.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(Object(u.a)(e))return function(e,t){return new r.a((function(n){var r=new o.a;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(Object(c.a)(e))return Object(s.a)(e,t);if(function(e){return e&&"function"==typeof e[l.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,i=new o.a;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(t.schedule((function(){r=e[l.a](),i.add(t.schedule((function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}})))}))),i}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}n.d(t,"a",(function(){return h}))},CjQN:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.share=function(e,t,n,r){return Object(i.cordova)(this,"share",{successIndex:4,errorIndex:5},arguments)},t.prototype.shareWithOptions=function(e){return Object(i.cordova)(this,"shareWithOptions",{platforms:["iOS","Android"]},arguments)},t.prototype.canShareVia=function(e,t,n,r,o){return Object(i.cordova)(this,"canShareVia",{successIndex:5,errorIndex:6,platforms:["iOS","Android"]},arguments)},t.prototype.shareViaTwitter=function(e,t,n){return Object(i.cordova)(this,"shareViaTwitter",{successIndex:3,errorIndex:4,platforms:["iOS","Android"]},arguments)},t.prototype.shareViaFacebook=function(e,t,n){return Object(i.cordova)(this,"shareViaFacebook",{successIndex:3,errorIndex:4,platforms:["iOS","Android"]},arguments)},t.prototype.shareViaFacebookWithPasteMessageHint=function(e,t,n,r){return Object(i.cordova)(this,"shareViaFacebookWithPasteMessageHint",{successIndex:4,errorIndex:5,platforms:["iOS","Android"]},arguments)},t.prototype.shareViaInstagram=function(e,t){return Object(i.cordova)(this,"shareViaInstagram",{platforms:["iOS","Android"]},arguments)},t.prototype.shareViaWhatsApp=function(e,t,n){return Object(i.cordova)(this,"shareViaWhatsApp",{successIndex:3,errorIndex:4,platforms:["iOS","Android"]},arguments)},t.prototype.shareViaWhatsAppToReceiver=function(e,t,n,r){return Object(i.cordova)(this,"shareViaWhatsAppToReceiver",{successIndex:4,errorIndex:5,platforms:["iOS","Android"]},arguments)},t.prototype.shareViaSMS=function(e,t){return Object(i.cordova)(this,"shareViaSMS",{platforms:["iOS","Android"]},arguments)},t.prototype.canShareViaEmail=function(){return Object(i.cordova)(this,"canShareViaEmail",{platforms:["iOS","Android"]},arguments)},t.prototype.shareViaEmail=function(e,t,n,r,o,a){return Object(i.cordova)(this,"shareViaEmail",{platforms:["iOS","Android"],successIndex:6,errorIndex:7},arguments)},t.prototype.shareVia=function(e,t,n,r,o){return Object(i.cordova)(this,"shareVia",{successIndex:5,errorIndex:6,platforms:["iOS","Android"]},arguments)},t.prototype.setIPadPopupCoordinates=function(e){return Object(i.cordova)(this,"setIPadPopupCoordinates",{sync:!0,platforms:["iOS"]},arguments)},t.prototype.saveToPhotoAlbum=function(e){return Object(i.cordova)(this,"saveToPhotoAlbum",{platforms:["iOS"]},arguments)},t.pluginName="SocialSharing",t.plugin="cordova-plugin-x-socialsharing",t.pluginRef="plugins.socialsharing",t.repo="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin",t.platforms=["Android","Browser","iOS","Windows","Windows Phone"],t}(i.IonicNativePlugin)},D0XW:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("3N8a"),i=new(n("IjjT").a)(r.a)},D2Vb:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.promptForRating=function(e){return Object(i.cordova)(this,"promptForRating",{},arguments)},t.prototype.navigateToAppStore=function(){return Object(i.cordova)(this,"navigateToAppStore",{},arguments)},Object.defineProperty(t.prototype,"preferences",{get:function(){return Object(i.cordovaPropertyGet)(this,"preferences")},set:function(e){Object(i.cordovaPropertySet)(this,"preferences",e)},enumerable:!0,configurable:!0}),t.pluginName="AppRate",t.plugin="cordova-plugin-apprate",t.pluginRef="AppRate",t.repo="https://github.com/pushandplay/cordova-plugin-apprate",t.platforms=["Android","BlackBerry 10","iOS","Windows"],t}(i.IonicNativePlugin)},DH7j:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},EGUZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(t,n){_classCallCheck(this,e),this.http=t,this.storage=n}return _createClass(e,[{key:"get",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{returnArray:!1};return new Promise((function(r,i){var o=!1,a=null;t.storage.ready().then((function(){t.storage.get(e).then((function(e){try{o=JSON.parse(e),1==n.returnArray&&(a=Object.keys(o).map((function(e){return[Number(e),o[e]]})))}catch(t){o=e}r(1==n.returnArray?a:o)}))}))}))}},{key:"set",value:function(e,t){var n=this;this.storage.ready().then((function(){n.storage.set(e,t)}))}},{key:"isAccountActivated",value:function(){var t=this;return new Promise((function(n){n(t.get(e.accountAcctivated))}))}},{key:"activateAccount",value:function(){return this.set(e.accountAcctivated,!0)}},{key:"deactivateAccount",value:function(){return this.set(e.accountAcctivated,!1)}},{key:"getAccount",value:function(){this.getSetting("account"),this.account=null!=this.settings.account?this.settings.account:{activated:!1}}},{key:"loadDefaultSettingsFor",value:function(e){this.settings[e]={intialized:!1}}},{key:"setSetting",value:function(e,t){this.settings[e]=t}},{key:"setKeyData",value:function(e,t){this.settings[e]=t}},{key:"getSetting",value:function(e){this.storage.get("settings").then((function(e){null!=e&&JSON.parse(e)}))}}],[{key:"accountAcctivated",get:function(){return"accountActivated"}}]),e}()},EVdn:function(e,t,n){var r;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},u=o.push,c=o.indexOf,h={},f=h.toString,d=h.hasOwnProperty,p=d.toString,v=p.call(Object),g={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},y=function(e){return null!=e&&e===e.window},b=n.document,k={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in k)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function C(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?h[f.call(e)]||"object":typeof e}var w=function e(t,n){return new e.fn.init(t,n)};function S(e){var t=!!e&&"length"in e&&e.length,n=C(e);return!m(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}w.fn=w.prototype={jquery:"3.5.1",constructor:w,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},w.extend=w.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(w.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||w.isPlainObject(n)?n:{},i=!1,a[t]=w.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},w.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e)||(t=a(e))&&("function"!=typeof(n=d.call(t,"constructor")&&t.constructor)||p.call(n)!==v))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){_(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(S(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?w.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(S(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l(a)},guid:1,support:g}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=o[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){h["[object "+t+"]"]=t.toLowerCase()}));var O=function(e){var t,n,r,i,o,a,s,l,u,c,h,f,d,p,v,g,m,y,b,k="sizzle"+1*new Date,_=e.document,C=0,w=0,S=le(),O=le(),x=le(),E=le(),T=function(e,t){return e===t&&(h=!0),0},M={}.hasOwnProperty,A=[],I=A.pop,P=A.push,D=A.push,N=A.slice,j=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",B="\\["+L+"*("+F+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+L+"*\\]",V=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",H=new RegExp(L+"+","g"),z=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),$=new RegExp("^"+L+"*,"+L+"*"),q=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp(L+"|>"),W=new RegExp(V),G=new RegExp("^"+F+"$"),X={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){f()},ae=ke((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{D.apply(A=N.call(_.childNodes),_.childNodes)}catch(Oe){D={apply:A.length?function(e,t){P.apply(e,N.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,u,c,h,p,m,y=t&&t.ownerDocument,_=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return r;if(!i&&(f(t),t=t||d,v)){if(11!==_&&(h=K.exec(e)))if(o=h[1]){if(9===_){if(!(u=t.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(y&&(u=y.getElementById(o))&&b(t,u)&&u.id===o)return r.push(u),r}else{if(h[2])return D.apply(r,t.getElementsByTagName(e)),r;if((o=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return D.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!E[e+" "]&&(!g||!g.test(e))&&(1!==_||"object"!==t.nodeName.toLowerCase())){if(m=e,y=t,1===_&&(U.test(e)||q.test(e))){for((y=ee.test(e)&&me(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=k)),s=(p=a(e)).length;s--;)p[s]=(c?"#"+c:":scope")+" "+be(p[s]);m=p.join(",")}try{return D.apply(r,y.querySelectorAll(m)),r}catch(C){E(e,!0)}finally{c===k&&t.removeAttribute("id")}}}return l(e.replace(z,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ue(e){return e[k]=!0,e}function ce(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(Oe){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ve(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue((function(t){return t=+t,ue((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=(e.ownerDocument||e).documentElement;return!J.test(e.namespaceURI||t&&t.nodeName||"HTML")},f=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:_;return a!=d&&9===a.nodeType&&a.documentElement?(p=(d=a).documentElement,v=!o(d),_!=d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ce((function(e){return p.appendChild(e).appendChild(d.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Y.test(d.getElementsByClassName),n.getById=ce((function(e){return p.appendChild(e).id=k,!d.getElementsByName||!d.getElementsByName(k).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v)return t.getElementsByClassName(e)},m=[],g=[],(n.qsa=Y.test(d.querySelectorAll))&&(ce((function(e){var t;p.appendChild(e).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+L+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||g.push("~="),(t=d.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+L+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=Y.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),m.push("!=",V)})),g=g.length&&new RegExp(g.join("|")),m=m.length&&new RegExp(m.join("|")),t=Y.test(p.compareDocumentPosition),b=t||Y.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return h=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==d||e.ownerDocument==_&&b(_,e)?-1:t==d||t.ownerDocument==_&&b(_,t)?1:c?j(c,e)-j(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==d?-1:t==d?1:i?-1:o?1:c?j(c,e)-j(c,t):0;if(i===o)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?fe(a[r],s[r]):a[r]==_?-1:s[r]==_?1:0},d):d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&v&&!E[t+" "]&&(!m||!m.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(Oe){E(t,!0)}return se(t,d,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=d&&f(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=d&&f(e);var i=r.attrHandle[t.toLowerCase()],o=i&&M.call(r.attrHandle,t.toLowerCase())?i(e,t,!v):void 0;return void 0!==o?o:n.attributes||!v?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(h=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(T),h){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ue,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&S(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,h,f,d,p,v=o!==a?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(o){for(;v;){for(f=t;f=f[v];)if(s?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;p=v="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(b=(d=(u=(c=(h=(f=g)[k]||(f[k]={}))[f.uniqueID]||(h[f.uniqueID]={}))[e]||[])[0]===C&&u[1])&&u[2],f=d&&g.childNodes[d];f=++d&&f&&f[v]||(b=d=0)||p.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[C,d,b];break}}else if(y&&(b=d=(u=(c=(h=(f=t)[k]||(f[k]={}))[f.uniqueID]||(h[f.uniqueID]={}))[e]||[])[0]===C&&u[1]),!1===b)for(;(f=++d&&f&&f[v]||(b=d=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++b||(y&&((c=(h=f[k]||(f[k]={}))[f.uniqueID]||(h[f.uniqueID]={}))[e]=[C,b]),f!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[k]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=j(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ue((function(e){var t=[],n=[],r=s(e.replace(z,"$1"));return r[k]?ue((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:ue((function(e){return function(t){return se(e,t).length>0}})),contains:ue((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ue((function(e){return G.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ve(!1),disabled:ve(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ke(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=w++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var u,c,h,f=[C,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(h=t[k]||(t[k]={}))[t.uniqueID]||(h[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=c[o])&&u[0]===C&&u[1]===s)return f[2]=u[2];if(c[o]=f,f[2]=e(t,n,l))return!0}return!1}}function _e(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Ce(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function we(e,t,n,r,i,o){return r&&!r[k]&&(r=we(r)),i&&!i[k]&&(i=we(i,o)),ue((function(o,a,s,l){var u,c,h,f=[],d=[],p=a.length,v=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!o&&t?v:Ce(v,f,e,s,l),m=n?i||(o?e:p||r)?[]:a:g;if(n&&n(g,m,s,l),r)for(u=Ce(m,d),r(u,[],s,l),c=u.length;c--;)(h=u[c])&&(m[d[c]]=!(g[d[c]]=h));if(o){if(i||e){if(i){for(u=[],c=m.length;c--;)(h=m[c])&&u.push(g[c]=h);i(null,m=[],u,l)}for(c=m.length;c--;)(h=m[c])&&(u=i?j(o,h):f[c])>-1&&(o[u]=!(a[u]=h))}}else m=Ce(m===a?m.splice(p,m.length):m),i?i(null,a,m,l):D.apply(a,m)}))}function Se(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,c=ke((function(e){return e===t}),s,!0),h=ke((function(e){return j(t,e)>-1}),s,!0),f=[function(e,n,r){var i=!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):h(e,n,r));return t=null,i}];l<o;l++)if(n=r.relative[e[l].type])f=[ke(_e(f),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[k]){for(i=++l;i<o&&!r.relative[e[i].type];i++);return we(l>1&&_e(f),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,l<i&&Se(e.slice(l,i)),i<o&&Se(e=e.slice(i)),i<o&&be(e))}f.push(n)}return _e(f)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,i,o,a,s,l,u,c=O[e+" "];if(c)return t?0:c.slice(0);for(s=e,l=[],u=r.preFilter;s;){for(a in n&&!(i=$.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),n=!1,(i=q.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(z," ")}),s=s.slice(n.length)),r.filter)!(i=X[a].exec(s))||u[a]&&!(i=u[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):O(e,l).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=x[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Se(t[n]))[k]?i.push(s):o.push(s);(s=x(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,l,c){var h,p,g,m=0,y="0",b=o&&[],k=[],_=u,w=o||i&&r.find.TAG("*",c),S=C+=null==_?1:Math.random()||.1,O=w.length;for(c&&(u=a==d||a||c);y!==O&&null!=(h=w[y]);y++){if(i&&h){for(p=0,a||h.ownerDocument==d||(f(h),s=!v);g=e[p++];)if(g(h,a||d,s)){l.push(h);break}c&&(C=S)}n&&((h=!g&&h)&&m--,o&&b.push(h))}if(m+=y,n&&y!==m){for(p=0;g=t[p++];)g(b,k,a,s);if(o){if(m>0)for(;y--;)b[y]||k[y]||(k[y]=I.call(l));k=Ce(k)}D.apply(l,k),c&&!o&&k.length>0&&m+t.length>1&&se.uniqueSort(l)}return c&&(C=S,u=_),b};return n?ue(o):o}(o,i))).selector=e}return s},l=se.select=function(e,t,n,i){var o,l,u,c,h,f="function"==typeof e&&e,d=!i&&a(e=f.selector||e);if(n=n||[],1===d.length){if((l=d[0]=d[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&v&&r.relative[l[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=X.needsContext.test(e)?0:l.length;o--&&!r.relative[c=(u=l[o]).type];)if((h=r.find[c])&&(i=h(u.matches[0].replace(te,ne),ee.test(l[0].type)&&me(t.parentNode)||t))){if(l.splice(o,1),!(e=i.length&&be(l)))return D.apply(n,i),n;break}}return(f||s(e,d))(i,t,!v,n,!t||ee.test(e)&&me(t.parentNode)||t),n},n.sortStable=k.split("").sort(T).join("")===k,n.detectDuplicates=!!h,f(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||he(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(n);w.find=O,(w.expr=O.selectors)[":"]=w.expr.pseudos,w.uniqueSort=w.unique=O.uniqueSort,w.text=O.getText,w.isXMLDoc=O.isXML,w.contains=O.contains,w.escapeSelector=O.escape;var x=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&w(e).is(n))break;r.push(e)}return r},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},T=w.expr.match.needsContext;function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(e,t,n){return m(t)?w.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?w.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?w.grep(e,(function(e){return c.call(t,e)>-1!==n})):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t<r;t++)if(w.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)w.find(e,i[t],n);return r>1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(I(this,e||[],!1))},not:function(e){return this.pushStack(I(this,e||[],!0))},is:function(e){return!!I(this,"string"==typeof e&&T.test(e)?w(e):e||[],!1).length}});var P,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||P,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:D.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(w.merge(this,w.parseHTML(r[1],(t=t instanceof w?t[0]:t)&&t.nodeType?t.ownerDocument||t:b,!0)),A.test(r[1])&&w.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,P=w(b);var N=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&w(e);if(!T.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(w(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x(e,"parentNode")},parentsUntil:function(e,t,n){return x(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return x(e,"nextSibling")},prevAll:function(e){return x(e,"previousSibling")},nextUntil:function(e,t,n){return x(e,"nextSibling",n)},prevUntil:function(e,t,n){return x(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(M(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(n,r){var i=w.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=w.filter(r,i)),this.length>1&&(j[e]||w.uniqueSort(i),N.test(e)&&i.reverse()),this.pushStack(i)}}));var L=/[^\x20\t\r\n\f]+/g;function F(e){return e}function B(e){throw e}function V(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(L)||[],(function(e,n){t[n]=!0})),t}(e):w.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){w.each(n,(function(n,r){m(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==C(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return w.each(arguments,(function(e,t){for(var n;(n=w.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?w.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},w.extend({Deferred:function(e){var t=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(n){w.each(t,(function(t,r){var i=m(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&m(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var o=0;function a(e,t,r,i){return function(){var s=this,l=arguments,u=function(){var n,u;if(!(e<o)){if((n=r.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");m(u=n&&("object"==typeof n||"function"==typeof n)&&n.then)?i?u.call(n,a(o,t,F,i),a(o,t,B,i)):(o++,u.call(n,a(o,t,F,i),a(o,t,B,i),a(o,t,F,t.notifyWith))):(r!==F&&(s=void 0,l=[n]),(i||t.resolveWith)(s,l))}},c=i?u:function(){try{u()}catch(n){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(n,c.stackTrace),e+1>=o&&(r!==B&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),n.setTimeout(c))}}return w.Deferred((function(n){t[0][3].add(a(0,n,m(i)?i:F,n.notifyWith)),t[1][3].add(a(0,n,m(e)?e:F)),t[2][3].add(a(0,n,m(r)?r:B))})).promise()},promise:function(e){return null!=e?w.extend(e,i):i}},o={};return w.each(t,(function(e,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=w.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(V(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||m(i[n]&&i[n].then)))return o.then();for(;n--;)V(i[n],a(n),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&H.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},w.readyException=function(e){n.setTimeout((function(){throw e}))};var z=w.Deferred();function $(){b.removeEventListener("DOMContentLoaded",$),n.removeEventListener("load",$),w.ready()}w.fn.ready=function(e){return z.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||z.resolveWith(b,[w]))}}),w.ready.then=z.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(w.ready):(b.addEventListener("DOMContentLoaded",$),n.addEventListener("load",$));var q=function e(t,n,r,i,o,a,s){var l=0,u=t.length,c=null==r;if("object"===C(r))for(l in o=!0,r)e(t,n,l,r[l],!0,a,s);else if(void 0!==i&&(o=!0,m(i)||(s=!0),c&&(s?(n.call(t,i),n=null):(c=n,n=function(e,t,n){return c.call(w(e),n)})),n))for(;l<u;l++)n(t[l],r,s?i:i.call(t[l],l,n(t[l],r)));return o?t:c?n.call(t):u?n(t[0],r):a},U=/^-ms-/,W=/-([a-z])/g;function G(e,t){return t.toUpperCase()}function X(e){return e.replace(U,"ms-").replace(W,G)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=w.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(L)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||w.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var Z=new Q,Y=new Q,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:K.test(e)?JSON.parse(e):e)}(n)}catch(i){}Y.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return Y.hasData(e)||Z.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Y.get(o),1===o.nodeType&&!Z.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=X(r.slice(5)),te(o,r,i[r]));Z.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Y.set(this,e)})):q(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=Y.get(o,e))||void 0!==(n=te(o,e))?n:void 0;this.each((function(){Y.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Y.remove(this,e)}))}}),w.extend({queue:function(e,t,n){var r;if(e)return r=Z.get(e,t=(t||"fx")+"queue"),n&&(!r||Array.isArray(n)?r=Z.access(e,t,w.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){var n=w.queue(e,t=t||"fx"),r=n.length,i=n.shift(),o=w._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){w.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:w.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",n])}))})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each((function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){w.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=w.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Z.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],oe=b.documentElement,ae=function(e){return w.contains(e.ownerDocument,e)},se={composed:!0};oe.getRootNode&&(ae=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(se)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===w.css(e,"display")};function ue(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return w.css(e,t,"")},l=s(),u=n&&n[3]||(w.cssNumber[t]?"":"px"),c=e.nodeType&&(w.cssNumber[t]||"px"!==u&&+l)&&re.exec(w.css(e,t));if(c&&c[3]!==u){for(u=u||c[3],c=+(l/=2)||1;a--;)w.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;w.style(e,t,(c*=2)+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var ce={};function he(e){var t,n=e.ownerDocument,r=e.nodeName,i=ce[r];return i||(t=n.body.appendChild(n.createElement(r)),i=w.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ce[r]=i,i)}function fe(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Z.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&le(r)&&(i[o]=he(r))):"none"!==n&&(i[o]="none",Z.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}w.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?w(this).show():w(this).hide()}))}});var de,pe,ve=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;de=b.createDocumentFragment().appendChild(b.createElement("div")),(pe=b.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),de.appendChild(pe),g.checkClone=de.cloneNode(!0).cloneNode(!0).lastChild.checked,de.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!de.cloneNode(!0).lastChild.defaultValue,de.innerHTML="<option></option>",g.option=!!de.lastChild;var ye={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?w.merge([e],n):n}function ke(e,t){for(var n=0,r=e.length;n<r;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,g.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var _e=/<|&#?\w+;/;function Ce(e,t,n,r,i){for(var o,a,s,l,u,c,h=t.createDocumentFragment(),f=[],d=0,p=e.length;d<p;d++)if((o=e[d])||0===o)if("object"===C(o))w.merge(f,o.nodeType?[o]:o);else if(_e.test(o)){for(a=a||h.appendChild(t.createElement("div")),s=(ge.exec(o)||["",""])[1].toLowerCase(),a.innerHTML=(l=ye[s]||ye._default)[1]+w.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;w.merge(f,a.childNodes),(a=h.firstChild).textContent=""}else f.push(t.createTextNode(o));for(h.textContent="",d=0;o=f[d++];)if(r&&w.inArray(o,r)>-1)i&&i.push(o);else if(u=ae(o),a=be(h.appendChild(o),"script"),u&&ke(a),n)for(c=0;o=a[c++];)me.test(o.type||"")&&n.push(o);return h}var we=/^key/,Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Oe=/^([^.]*)(?:\.(.+)|)/;function xe(){return!0}function Ee(){return!1}function Te(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Me(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Me(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each((function(){w.event.add(this,t,i,r,n)}))}function Ae(e,t,n){n?(Z.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),Z.set(this,t,o),r=n(this,t),this[t](),o!==(i=Z.get(this,t))||r?Z.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(Z.set(this,t,{value:w.event.trigger(w.extend(o[0],w.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&w.event.add(e,t,xe)}w.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,h,f,d,p,v,g=Z.get(e);if(J(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&w.find.matchesSelector(oe,i),n.guid||(n.guid=w.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(L)||[""]).length;u--;)d=v=(s=Oe.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),d&&(h=w.event.special[d]||{},h=w.event.special[d=(i?h.delegateType:h.bindType)||d]||{},c=w.extend({type:d,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&w.expr.match.needsContext.test(i),namespace:p.join(".")},o),(f=l[d])||((f=l[d]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(d,a)),h.add&&(h.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),w.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,h,f,d,p,v,g=Z.hasData(e)&&Z.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(L)||[""]).length;u--;)if(d=v=(s=Oe.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),d){for(h=w.event.special[d]||{},f=l[d=(r?h.delegateType:h.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)c=f[o],!i&&v!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,h.remove&&h.remove.call(e,c));a&&!f.length&&(h.teardown&&!1!==h.teardown.call(e,p,g.handle)||w.removeEvent(e,d,g.handle),delete l[d])}else for(d in l)w.event.remove(e,d+t[u],n,r,!0);w.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=w.event.fix(e),u=(Z.get(this,"events")||Object.create(null))[l.type]||[],c=w.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=w.event.handlers.call(this,l,u),t=0;(i=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((w.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?w(i,this).index(u)>-1:w.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:m(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ve.test(t.type)&&t.click&&M(t,"input")&&Ae(t,"click",xe),!1},trigger:function(e){var t=this||e;return ve.test(t.type)&&t.click&&M(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return ve.test(t.type)&&t.click&&M(t,"input")&&Z.get(t,"click")||M(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},(w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?xe:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0}).prototype={constructor:w.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=xe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=xe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=xe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&we.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Se.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},(function(e,t){w.event.special[e]={setup:function(){return Ae(this,e,Te),!1},trigger:function(){return Ae(this,e),!0},delegateType:t}})),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||w.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),w.fn.extend({on:function(e,t,n,r){return Me(this,e,t,n,r)},one:function(e,t,n,r){return Me(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,w(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each((function(){w.event.remove(this,e,n,t)}))}});var Ie=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ne(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function je(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Z.hasData(e)&&(s=Z.get(e).events))for(i in Z.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)w.event.add(t,i,s[i][n]);Y.hasData(e)&&(o=Y.access(e),a=w.extend({},o),Y.set(t,a))}}function Fe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ve.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Be(e,t,n,r){t=l(t);var i,o,a,s,u,c,h=0,f=e.length,d=f-1,p=t[0],v=m(p);if(v||f>1&&"string"==typeof p&&!g.checkClone&&Pe.test(p))return e.each((function(i){var o=e.eq(i);v&&(t[0]=p.call(this,i,o.html())),Be(o,t,n,r)}));if(f&&(o=(i=Ce(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=w.map(be(i,"script"),je)).length;h<f;h++)u=i,h!==d&&(u=w.clone(u,!0,!0),s&&w.merge(a,be(u,"script"))),n.call(e[h],u,h);if(s)for(c=a[a.length-1].ownerDocument,w.map(a,Re),h=0;h<s;h++)me.test((u=a[h]).type||"")&&!Z.access(u,"globalEval")&&w.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?w._evalUrl&&!u.noModule&&w._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):_(u.textContent.replace(De,""),u,c))}return e}function Ve(e,t,n){for(var r,i=t?w.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||w.cleanData(be(r)),r.parentNode&&(n&&ae(r)&&ke(be(r,"script")),r.parentNode.removeChild(r));return e}w.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=ae(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=be(s),r=0,i=(o=be(e)).length;r<i;r++)Fe(o[r],a[r]);if(t)if(n)for(o=o||be(e),a=a||be(s),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,s);return(a=be(s,"script")).length>0&&ke(a,!l&&be(e,"script")),s},cleanData:function(e){for(var t,n,r,i=w.event.special,o=0;void 0!==(n=e[o]);o++)if(J(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)i[r]?w.event.remove(n,r):w.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Ve(this,e,!0)},remove:function(e){return Ve(this,e)},text:function(e){return q(this,(function(e){return void 0===e?w.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Be(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)}))},prepend:function(){return Be(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Be(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return q(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ie.test(e)&&!ye[(ge.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Be(this,arguments,(function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(be(this)),n&&n.replaceChild(t,this))}),e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){w.fn[e]=function(e){for(var n,r=[],i=w(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),w(i[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}}));var He=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},$e=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},qe=new RegExp(ie.join("|"),"i");function Ue(e,t,n){var r,i,o,a,s=e.style;return(n=n||ze(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ae(e)||(a=w.style(e,t)),!g.pixelBoxStyles()&&He.test(a)&&qe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function We(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(u).appendChild(c);var e=n.getComputedStyle(c);r="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),i=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),oe.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var r,i,o,a,s,l,u=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,w.extend(g,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,r,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),r=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",r.style.height="9px",oe.appendChild(e).appendChild(t).appendChild(r),i=n.getComputedStyle(t),s=parseInt(i.height)>3,oe.removeChild(e)),s}}))}();var Ge=["Webkit","Moz","ms"],Xe=b.createElement("div").style,Je={};function Qe(e){return w.cssProps[e]||Je[e]||(e in Xe?e:Je[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;n--;)if((e=Ge[n]+t)in Xe)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,Ye=/^--/,Ke={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=w.css(e,n+ie[a],!0,i)),r?("content"===n&&(l-=w.css(e,"padding"+ie[a],!0,i)),"margin"!==n&&(l-=w.css(e,"border"+ie[a]+"Width",!0,i))):(l+=w.css(e,"padding"+ie[a],!0,i),"padding"!==n?l+=w.css(e,"border"+ie[a]+"Width",!0,i):s+=w.css(e,"border"+ie[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function rt(e,t,n){var r=ze(e),i=(!g.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,r),o=i,a=Ue(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(He.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&M(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===w.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+nt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function it(e,t,n,r,i){return new it.prototype.init(e,t,n,r,i)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ue(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),l=Ye.test(t),u=e.style;if(l||(t=Qe(s)),a=w.cssHooks[t]||w.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"==(o=typeof n)&&(i=re.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(w.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Ye.test(t)||(t=Qe(s)),(a=w.cssHooks[t]||w.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ue(e,t,r)),"normal"===i&&t in et&&(i=et[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),w.each(["height","width"],(function(e,t){w.cssHooks[t]={get:function(e,n,r){if(n)return!Ze.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):$e(e,Ke,(function(){return rt(e,t,r)}))},set:function(e,n,r){var i,o=ze(e),a=!g.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===w.css(e,"boxSizing",!1,o),l=r?nt(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-nt(e,t,"border",!1,o)-.5)),l&&(i=re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),tt(0,n,l)}}})),w.cssHooks.marginLeft=We(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ue(e,"marginLeft"))||e.getBoundingClientRect().left-$e(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(e,t){w.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ie[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(w.cssHooks[e+t].set=tt)})),w.fn.extend({css:function(e,t){return q(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=ze(e),i=t.length;a<i;a++)o[t[a]]=w.css(e,t[a],!1,r);return o}return void 0!==n?w.style(e,t,n):w.css(e,t)}),e,t,arguments.length>1)}}),w.Tween=it,(it.prototype={constructor:it,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.pos=t=this.options.duration?w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):it.propHooks._default.set(this),this}}).init.prototype=it.prototype,(it.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},(w.fx=it.prototype.init).step={};var ot,at,st=/^(?:toggle|show|hide)$/,lt=/queueHooks$/;function ut(){at&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ut):n.setTimeout(ut,w.fx.interval),w.fx.tick())}function ct(){return n.setTimeout((function(){ot=void 0})),ot=Date.now()}function ht(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ie[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ft(e,t,n){for(var r,i=(dt.tweeners[t]||[]).concat(dt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function dt(e,t,n){var r,i,o=0,a=dt.prefilters.length,s=w.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=ot||ct(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:ot||ct(),duration:n.duration,tweens:[],createTween:function(t,n){var r=w.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=w.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);o<a;o++)if(r=dt.prefilters[o].call(u,e,c,u.opts))return m(r.stop)&&(w._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return w.map(c,ft,u),m(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),w.fx.timer(w.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}w.Animation=w.extend(dt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(L);for(var n,r=0,i=e.length;r<i;r++)(dt.tweeners[n=e[r]]=dt.tweeners[n]||[]).unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,u,c,h="width"in t||"height"in t,f=this,d={},p=e.style,v=e.nodeType&&le(e),g=Z.get(e,"fxshow");for(r in n.queue||(null==(a=w._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always((function(){f.always((function(){a.unqueued--,w.queue(e,"fx").length||a.empty.fire()}))}))),t)if(st.test(i=t[r])){if(delete t[r],o=o||"toggle"===i,i===(v?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;v=!0}d[r]=g&&g[r]||w.style(e,r)}if((l=!w.isEmptyObject(t))||!w.isEmptyObject(d))for(r in h&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=g&&g.display)&&(u=Z.get(e,"display")),"none"===(c=w.css(e,"display"))&&(u?c=u:(fe([e],!0),u=e.style.display||u,c=w.css(e,"display"),fe([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===w.css(e,"float")&&(l||(f.done((function(){p.display=u})),null==u&&(u="none"===(c=p.display)?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,d)l||(g?"hidden"in g&&(v=g.hidden):g=Z.access(e,"fxshow",{display:u}),o&&(g.hidden=!v),v&&fe([e],!0),f.done((function(){for(r in v||fe([e]),Z.remove(e,"fxshow"),d)w.style(e,r,d[r])}))),l=ft(v?g[r]:0,r,f),r in g||(g[r]=l.start,v&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?dt.prefilters.unshift(e):dt.prefilters.push(e)}}),w.speed=function(e,t,n){var r=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return w.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration=r.duration in w.fx.speeds?w.fx.speeds[r.duration]:w.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&w.dequeue(this,r.queue)},r},w.fn.extend({fadeTo:function(e,t,n,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=w.isEmptyObject(e),o=w.speed(t,n,r),a=function(){var t=dt(this,w.extend({},e),o);(i||Z.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=w.timers,a=Z.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&<.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||w.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Z.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=w.timers,a=r?r.length:0;for(n.finish=!0,w.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),w.each(["toggle","show","hide"],(function(e,t){var n=w.fn[t];w.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ht(t,!0),e,r,i)}})),w.each({slideDown:ht("show"),slideUp:ht("hide"),slideToggle:ht("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){w.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(ot=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),ot=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){at||(at=!0,ut())},w.fx.stop=function(){at=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(e,t){return e=w.fx&&w.fx.speeds[e]||e,this.queue(t=t||"fx",(function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var pt,vt=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return q(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}),w.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?w.prop(e,t,n):(1===o&&w.isXMLDoc(e)||(i=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&M(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(L);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=vt[t]||w.find.attr;vt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=vt[a],vt[a]=i,i=null!=n(e,t,r)?a:null,vt[a]=o),i}}));var gt=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;function yt(e){return(e.match(L)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}w.fn.extend({prop:function(e,t){return q(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(e)||(i=w.propHooks[t=w.propFix[t]||t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(w.propHooks.selected={get:function(e){return null},set:function(e){}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(m(e))return this.each((function(t){w(this).addClass(e.call(this,t,bt(this)))}));if((t=kt(e)).length)for(;n=this[l++];)if(i=bt(n),r=1===n.nodeType&&" "+yt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=yt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(m(e))return this.each((function(t){w(this).removeClass(e.call(this,t,bt(this)))}));if(!arguments.length)return this.attr("class","");if((t=kt(e)).length)for(;n=this[l++];)if(i=bt(n),r=1===n.nodeType&&" "+yt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=yt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):m(e)?this.each((function(n){w(this).toggleClass(e.call(this,n,bt(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=w(this),a=kt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=bt(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+yt(bt(n))+" ").indexOf(t)>-1)return!0;return!1}});var _t=/\r/g;w.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=m(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,w(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=w.map(i,(function(e){return null==e?"":e+""}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=w.valHooks[i.type]||w.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(_t,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:yt(w.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!M(n.parentNode,"optgroup"))){if(t=w(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=w.makeArray(t),a=i.length;a--;)((r=i[a]).selected=w.inArray(w.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},g.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in n;var Ct=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(e,t,r,i){var o,a,s,l,u,c,h,f,p=[r||b],v=d.call(e,"type")?e.type:e,g=d.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!Ct.test(v+w.event.triggered)&&(v.indexOf(".")>-1&&(g=v.split("."),v=g.shift(),g.sort()),u=v.indexOf(":")<0&&"on"+v,(e=e[w.expando]?e:new w.Event(v,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:w.makeArray(t,[e]),h=w.event.special[v]||{},i||!h.trigger||!1!==h.trigger.apply(r,t))){if(!i&&!h.noBubble&&!y(r)){for(Ct.test((l=h.delegateType||v)+v)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?l:h.bindType||v,(c=(Z.get(a,"events")||Object.create(null))[e.type]&&Z.get(a,"handle"))&&c.apply(a,t),(c=u&&a[u])&&c.apply&&J(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=v,i||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),t)||!J(r)||u&&m(r[v])&&!y(r)&&((s=r[u])&&(r[u]=null),w.event.triggered=v,e.isPropagationStopped()&&f.addEventListener(v,wt),r[v](),e.isPropagationStopped()&&f.removeEventListener(v,wt),w.event.triggered=void 0,s&&(r[u]=s)),e.result}},simulate:function(e,t,n){var r=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),g.focusin||w.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,t);i||r.addEventListener(e,n,!0),Z.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,t)-1;i?Z.access(r,t,i):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}}));var St=n.location,Ot={guid:Date.now()},xt=/\?/;w.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(r){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+e),t};var Et=/\[\]$/,Tt=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;function It(e,t,n,r){var i;if(Array.isArray(t))w.each(t,(function(t,i){n||Et.test(e)?r(e,i):It(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==C(t))r(e,t);else for(i in t)It(e+"["+i+"]",t[i],n,r)}w.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){i(this.name,this.value)}));else for(n in e)It(n,e[n],t,i);return r.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&At.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!ve.test(e))})).map((function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,(function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}})):{name:t.name,value:n.replace(Tt,"\r\n")}})).get()}});var Pt=/%20/g,Dt=/#.*$/,Nt=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Ft={},Bt={},Vt="*/".concat("*"),Ht=b.createElement("a");function zt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(L)||[];if(m(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function $t(e,t,n,r){var i={},o=e===Bt;function a(s){var l;return i[s]=!0,w.each(e[s]||[],(function(e,s){var u=s(t,n,r);return"string"!=typeof u||o||i[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function qt(e,t){var n,r,i=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&w.extend(!0,e,r),e}Ht.href=St.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,w.ajaxSettings),t):qt(w.ajaxSettings,e)},ajaxPrefilter:zt(Ft),ajaxTransport:zt(Bt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var r,i,o,a,s,l,u,c,h,f,d=w.ajaxSetup({},t=t||{}),p=d.context||d,v=d.context&&(p.nodeType||p.jquery)?w(p):w.event,g=w.Deferred(),m=w.Callbacks("once memory"),y=d.statusCode||{},k={},_={},C="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=jt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,k[e]=t),this},overrideMimeType:function(e){return null==u&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)S.always(e[S.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),O(0,t),this}};if(g.promise(S),d.url=((e||d.url||St.href)+"").replace(Lt,St.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(L)||[""],null==d.crossDomain){l=b.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=Ht.protocol+"//"+Ht.host!=l.protocol+"//"+l.host}catch(x){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=w.param(d.data,d.traditional)),$t(Ft,d,t,S),u)return S;for(h in(c=w.event&&d.global)&&0==w.active++&&w.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Rt.test(d.type),i=d.url.replace(Dt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Pt,"+")):(f=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(xt.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Nt,"$1"),f=(xt.test(i)?"&":"?")+"_="+Ot.guid+++f),d.url=i+f),d.ifModified&&(w.lastModified[i]&&S.setRequestHeader("If-Modified-Since",w.lastModified[i]),w.etag[i]&&S.setRequestHeader("If-None-Match",w.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&S.setRequestHeader("Content-Type",d.contentType),S.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Vt+"; q=0.01":""):d.accepts["*"]),d.headers)S.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(!1===d.beforeSend.call(p,S,d)||u))return S.abort();if(C="abort",m.add(d.complete),S.done(d.success),S.fail(d.error),r=$t(Bt,d,t,S)){if(S.readyState=1,c&&v.trigger("ajaxSend",[S,d]),u)return S;d.async&&d.timeout>0&&(s=n.setTimeout((function(){S.abort("timeout")}),d.timeout));try{u=!1,r.send(k,O)}catch(x){if(u)throw x;O(-1,x)}}else O(-1,"No Transport");function O(e,t,a,l){var h,f,b,k,_,C=t;u||(u=!0,s&&n.clearTimeout(s),r=void 0,o=l||"",S.readyState=e>0?4:0,h=e>=200&&e<300||304===e,a&&(k=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(d,S,a)),!h&&w.inArray("script",d.dataTypes)>-1&&(d.converters["text script"]=function(){}),k=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(x){return{state:"parsererror",error:a?x:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(d,k,S,h),h?(d.ifModified&&((_=S.getResponseHeader("Last-Modified"))&&(w.lastModified[i]=_),(_=S.getResponseHeader("etag"))&&(w.etag[i]=_)),204===e||"HEAD"===d.type?C="nocontent":304===e?C="notmodified":(C=k.state,f=k.data,h=!(b=k.error))):(b=C,!e&&C||(C="error",e<0&&(e=0))),S.status=e,S.statusText=(t||C)+"",h?g.resolveWith(p,[f,C,S]):g.rejectWith(p,[S,C,b]),S.statusCode(y),y=void 0,c&&v.trigger(h?"ajaxSuccess":"ajaxError",[S,d,h?f:b]),m.fireWith(p,[S,C]),c&&(v.trigger("ajaxComplete",[S,d]),--w.active||w.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],(function(e,t){w[t]=function(e,n,r,i){return m(n)&&(i=i||r,r=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:i,data:n,success:r},w.isPlainObject(e)&&e))}})),w.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),w._evalUrl=function(e,t,n){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,n)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return m(e)?this.each((function(t){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=m(e);return this.each((function(n){w(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Ut={0:200,1223:204},Wt=w.ajaxSettings.xhr();g.cors=!!Wt&&"withCredentials"in Wt,g.ajax=Wt=!!Wt,w.ajaxTransport((function(e){var t,r;if(g.cors||Wt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Ut[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}})),w.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),w.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=w("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Gt,Xt=[],Jt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||w.expando+"_"+Ot.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",(function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(Jt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Jt,"$1"+i):!1!==e.jsonp&&(e.url+=(xt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||w.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always((function(){void 0===o?w(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(i)),a&&m(o)&&o(a[0]),a=o=void 0})),"script"})),g.createHTMLDocument=((Gt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Gt.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(i=A.exec(e))?[t.createElement(i[1])]:(i=Ce([e],t,o),o&&o.length&&w(o).remove(),w.merge([],i.childNodes)));var r,i,o},w.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=yt(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&w.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?w("<div>").append(w.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,(function(t){return e===t.elem})).length},w.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=w.css(e,"position"),c=w(e),h={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=w.css(e,"top"),l=w.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),m(t)&&(t=t.call(e,n,w.extend({},s))),null!=t.top&&(h.top=t.top-s.top+a),null!=t.left&&(h.left=t.left-s.left+i),"using"in t?t.using.call(e,h):("number"==typeof h.top&&(h.top+="px"),"number"==typeof h.left&&(h.left+="px"),c.css(h))}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){w.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?{top:(t=r.getBoundingClientRect()).top+(n=r.ownerDocument.defaultView).pageYOffset,left:t.left+n.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===w.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),i.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-w.css(r,"marginTop",!0),left:t.left-i.left-w.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||oe}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;w.fn[e]=function(r){return q(this,(function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),w.each(["top","left"],(function(e,t){w.cssHooks[t]=We(g.pixelPosition,(function(e,n){if(n)return n=Ue(e,t),He.test(n)?w(e).position()[t]+"px":n}))})),w.each({Height:"height",Width:"width"},(function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){w.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return q(this,(function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?w.css(t,n,s):w.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){w.fn[t]=function(e){return this.on(t,e)}})),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||w.guid++,i},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=M,w.isFunction=m,w.isWindow=y,w.camelCase=X,w.type=C,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?"":(e+"").replace(Qt,"")},void 0===(r=(function(){return w}).apply(t,[]))||(e.exports=r);var Zt=n.jQuery,Yt=n.$;return w.noConflict=function(e){return n.$===w&&(n.$=Yt),e&&n.jQuery===w&&(n.jQuery=Zt),w},void 0===i&&(n.jQuery=n.$=w),w}))},EY2u:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("HDdC"),i=new r.a((function(e){return e.complete()}));function o(e){return e?function(e){return new r.a((function(t){return e.schedule((function(){return t.complete()}))}))}(e):i}},F9l0:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.isRecognitionAvailable=function(){return Object(i.cordova)(this,"isRecognitionAvailable",{},arguments)},t.prototype.startListening=function(e){return Object(i.cordova)(this,"startListening",{callbackOrder:"reverse",observable:!0},arguments)},t.prototype.stopListening=function(){return Object(i.cordova)(this,"stopListening",{},arguments)},t.prototype.getSupportedLanguages=function(){return Object(i.cordova)(this,"getSupportedLanguages",{},arguments)},t.prototype.hasPermission=function(){return Object(i.cordova)(this,"hasPermission",{},arguments)},t.prototype.requestPermission=function(){return Object(i.cordova)(this,"requestPermission",{},arguments)},t.pluginName="SpeechRecognition",t.plugin="cordova-plugin-speechrecognition",t.pluginRef="plugins.speechRecognition",t.repo="https://github.com/pbakondy/cordova-plugin-speechrecognition",t.platforms=["Android","iOS"],t}(i.IonicNativePlugin)},FUig:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.slide=function(e){return Object(i.cordova)(this,"slide",{},arguments)},t.prototype.flip=function(e){return Object(i.cordova)(this,"flip",{},arguments)},t.prototype.fade=function(e){return Object(i.cordova)(this,"fade",{platforms:["iOS","Android"]},arguments)},t.prototype.drawer=function(e){return Object(i.cordova)(this,"drawer",{platforms:["iOS","Android"]},arguments)},t.prototype.curl=function(e){return Object(i.cordova)(this,"curl",{platforms:["iOS"]},arguments)},t.prototype.executePendingTransition=function(){return Object(i.cordova)(this,"executePendingTransition",{},arguments)},t.prototype.cancelPendingTransition=function(){return Object(i.cordova)(this,"cancelPendingTransition",{},arguments)},t.pluginName="NativePageTransitions",t.plugin="com.telerik.plugins.nativepagetransitions",t.pluginRef="plugins.nativepagetransitions",t.repo="https://github.com/Telerik-Verified-Plugins/NativePageTransitions",t.platforms=["Android","iOS","Windows Phone 8"],t}(i.IonicNativePlugin)},FbN9:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("8Y7J"),i=(n("BzsH"),n("IP0z"),n("Xd0L"),n("cUpR"),n("/HVE"),n("SVse"),r.qb({encapsulation:2,styles:["@media (-ms-high-contrast:active){.mat-toolbar{outline:solid 1px}}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],data:{}}));function o(e){return r.Nb(2,[r.Db(null,0),r.Db(null,1)],null,null)}},Ff54:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("LKtr"),n("2IJ5"),n("h4wn"),n("kbZ1");var r=function(){function e(t,n,r,i,o){_classCallCheck(this,e),this.navCtrl=t,this.tabsManager=n,this.friendsManager=r,this.itemsManager=i,this.consoleDialog=o,this.bayaTab="bayaTab",null==this.tabsManager.selectedTab&&(this.tabsManager.selectedTab=2),this.highlightTab()}return _createClass(e,[{key:"highlightTab",value:function(){switch(this.tabsManager.selectedTab){case 1:this.friendsClass="notSelected",this.itemsClass="notSelected",this.collectionsClass="selected";break;case 2:this.friendsClass="notSelected",this.itemsClass="selected",this.collectionsClass="notSelected";break;case 3:this.friendsClass="selected",this.itemsClass="notSelected",this.collectionsClass="notSelected"}}},{key:"selectTab",value:function(e){switch(e){case 1:this.openCollections();break;case 2:this.openItems();break;case 3:this.openFriends()}}},{key:"openCollections",value:function(){if(1==this.tabsManager.selectedTab)return!0;this.tabsManager.selectedTab=1,this.navCtrl.navigateRoot("collections")}},{key:"openItems",value:function(){this.tabsManager.selectedTab=2,this.itemsManager.clearNotification(),this.navCtrl.navigateRoot("items")}},{key:"openFriends",value:function(){this.tabsManager.selectedTab=3,this.friendsManager.clearFriendsNotification(),this.navCtrl.navigateRoot("contact")}},{key:"getCollectionsNotificationsNumber",value:function(){return""}},{key:"getItemsNotificationsNumber",value:function(){var e=this.itemsManager.getNotificationsNumber();return e>0?e:""}},{key:"getFriendsNotificationsNumber",value:function(){var e=this.friendsManager.getNotificationsNumber();return e>0?e:""}}]),e}()},FpXt:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function e(){_classCallCheck(this,e)}},FxvK:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).artikel=e.artikel,r.plural=e.plural,r}return n}(n("zI0Y").a)},GAbP:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n("6GXZ");var r=n("0K09"),i=n("oCF6"),o=n("0NL6"),a=n("p9zK"),s=n("olg3"),l=(n("2IJ5"),n("AjPc")),u=function(){function e(t,n,i,o){var a=this;_classCallCheck(this,e),this.sqlite=t,this.consoleDialog=n,this.injector=i,this.platform=o,this.userManager=this.injector.get(s.a),this._PORTER=this.injector.get(r.a),this.userManager.isLoggedIn().then((function(e){e&&a.userManager.getUser().then((function(e){a.init(e)}))}))}return _createClass(e,[{key:"importSQL",value:function(e){var t=this;return new Promise((function(n,r){t.platform.is("cordova")?t.userManager.getUser().then((function(i){t.init(i).then((function(){t._PORTER.importSqlToDb(t.databaseObj,e).then((function(e){n(e)})).catch((function(e){r(e)}))}))})):n("no cordvoa")}))}},{key:"initialNotUsed",value:function(e){var t=this;return new Promise((function(n,r){t.databaseName=e+"data.db",t.platform.ready().then((function(){t.platform.is("cordova")&&(console.log("going to create database sql"),t.sqlite.create({name:t.databaseName,location:"default"}).then((function(e){t.databaseObj=e,t.createTables(),n(!0)})).catch((function(e){return console.log(e)})))}))}))}},{key:"createTables",value:function(){var e=this;this.databaseObj.executeSql("create table IF NOT EXISTS items \n (itemID VARCHAR(32) UNIQUE,userID VARCHAR(32),title VARCHAR(32),name VARCHAR(32),type VARCHAR(32),localCount INT(10),description text NOT NULL )",[]).then((function(){e.databaseObj.executeSql("ALTER TABLE items ADD COLUMN userID VARCHAR(32)").then((function(){console.log("altered table items")})).catch((function(e){console.log("error on create db",e)})),console.log("db items created")})).catch((function(e){})),this.databaseObj.executeSql("create table IF NOT EXISTS messages \n (itemID VARCHAR(32),messageID VARCHAR(32) UNIQUE,\n status VARCHAR(16),data text NOT NULL,\n content text,received INTEGER,folded INTEGER, \n repetittion INTEGER, receivedTime text, \n lastReviewedTime text, easinessFactor REAL, reviewTime text)",[]).then((function(){console.log("Tables are created")})).catch((function(e){console.log("oooooooooooh no there waaaas an error"),console.log(e)})),this.createWordsTable()}},{key:"createWordsTable",value:function(){this.databaseObj.executeSql("create table IF NOT EXISTS wordsSuggestion \n (_id integer primary key autoincrement, word text not null unique) \n ",[]).then((function(){console.log("Executed SQLL")})).catch((function(e){console.log(e)}))}},{key:"setDatabaseName",value:function(e){this.databaseName=e.userID+"data.db"}},{key:"init",value:function(e){var t=this;return this.setDatabaseName(e),new Promise((function(e,n){null!=t.databaseObj?e(t.databaseObj):t.platform.ready().then((function(){t.platform.is("cordova")&&t.sqlite.create({name:t.databaseName,location:"default"}).then((function(n){t.databaseObj=n,t.createTables(),e(t.databaseObj)})).catch((function(e){console.log(e," err on db")}))}))}))}},{key:"getFutureMessages",value:function(){var e=this;return new Promise((function(t,n){var r=[],i="select messageID, data,content, received, receivedTime, reviewTime,lastReviewedTime,easinessFactor ,repetittion from messages";i+=" WHERE reviewTime >= Datetime('"+l.d.getToday()+"')",i+=" GROUP BY reviewTime",console.log("sqlLiteQuery",i),e.databaseObj.executeSql(i,[]).then((function(n){if(n.rows.length>0)for(var i=n.rows.length-1;i>=0;i--){e.consoleDialog.log2("futrue message",n.rows.item(i));var a=new o.a(JSON.parse(n.rows.item(i).data));a.content||(a.content=JSON.parse(n.rows.item(i).content)),a.setReceivedFromInt(n.rows.item(i).received),a.setEasinessFactor(n.rows.item(i).easinessFactor),a.setRepetitions(n.rows.item(i).repetittion),a.setLastReviewedTime(n.rows.item(i).lastReviewedTime),a.setMessageID(n.rows.item(i).messageID),r.push(a)}t(r)})).catch((function(e){console.log("error from get leitner messages",e)}))}))}},{key:"getItemsTableName",value:function(){return"items"}},{key:"getMessagesTableName",value:function(){return"messages"}},{key:"copyMessages",value:function(e,t){var n=t.itemID.substr(t.itemID.length-4,t.itemID.length),r="INSERT INTO "+this.getMessagesTableName()+" SELECT '"+t.itemID+"' as itemID, '"+n+'\' || messageID as messageID,\n status,replace(replace(data, \'"type":"dictionary"\',\'"type":"leitner"\'),messageID, \''+n+"' || messageID) as data ,\n content,received,folded, \n repetittion, receivedTime, \n lastReviewedTime, easinessFactor, reviewTime FROM "+this.getMessagesTableName()+" where itemID ='"+e.itemID+"'";this.databaseObj.executeSql(r,[]).then((function(e){console.log("convert done",e)})).catch((function(e){console.log("convert failed",e)}))}},{key:"updateMessageContent",value:function(e,t){var n="UPDATE messages SET content = '"+JSON.stringify(t.content)+"' where itemID = '"+e+"' and messageID = '"+t.messageID+"' ";this.databaseObj.executeSql(n,[]).then((function(e){console.log("content of message",t,"updated",e)})).catch((function(e){console.log("error content of message 2",t,"not updated")})),n="UPDATE messages SET data = '"+JSON.stringify(t)+"' where itemID = '"+e+"' and messageID = '"+t.messageID+"' ",this.databaseObj.executeSql(n,[]).then((function(e){console.log("message",t,"updated",e)})).catch((function(e){console.log("error updating of message",t,"not updated")}))}},{key:"updateChatTitle",value:function(e){if(!this.platform.is("cordova"))return!1;var t="UPDATE items SET title = '"+e.title+"' where itemID = '"+e.chatID+"'";console.log(t),this.databaseObj.executeSql(t,[]).then((function(e){console.log("chat title saved in db")})).catch((function(e){console.log("error database chat title",e)}))}},{key:"showDatabases",value:function(){this.sqlite.echoTest()}},{key:"deleteItem",value:function(e){this.databaseObj.executeSql("delete from items where itemID='"+e.itemID+"'",[]).then((function(){return console.log("deleted")})).catch((function(e){console.log(e,"error from database delete item")}))}},{key:"removeMessage",value:function(e){this.databaseObj.executeSql("delete from messages where messageID='"+e.messageID+"'",[]).then((function(){return console.log("deleted")})).catch((function(e){console.log(e,"error from database delete item")}))}},{key:"addItem",value:function(e){this.databaseObj.executeSql("insert OR IGNORE into items (itemID,userID,name,title,type, localCount, description) values('"+e.itemID+"', '"+e.userID+"', '"+e.name+"', '"+e.title+"', '"+e.type+"', "+e.localCount+", '"+e.description+"')",[]).then((function(e){console.log("executed",e)})).catch((function(e){console.log("error add item to database",e)}))}},{key:"updateMessageFolding",value:function(e,t){var n="UPDATE messages SET folded = "+t.getFoldedInt()+" where itemID = '"+e.chatID+"' and messageID = '"+t.messageID+"' ";this.databaseObj.executeSql(n,[]).then((function(e){console.log("sqlstring",n)})).catch((function(e){console.log("error content of message 2",t,"not folded")}))}},{key:"updateMessageReview",value:function(e,t){var n=this;return new Promise((function(r,i){var o="UPDATE messages SET reviewTime = '"+t.getReviewTimeSqlLiteFormat()+"', lastReviewedTime = '"+t.getLastReviewTimeSqlLiteFormat()+"', repetittion = "+t.repetittion+" , easinessFactor = "+t.easinessFactor+" where itemID = '"+e.chatID+"' and messageID = '"+t.messageID+"' ";n.databaseObj.executeSql(o,[]).then((function(e){r(!0),console.log("sqlstring",o),console.log("review of message",t,"updated",e)})).catch((function(e){console.log("error review of message 2",t,"not updated",e,o)}))}))}},{key:"addMessage",value:function(e,t){var n=this;if(!this.platform.is("cordova"))return!1;if(null==t.messageID)return console.log("messages cant be saved because message id is undefined",t),!1;var r="";t.hasContent()&&(r=JSON.stringify(t.content));var i="insert OR IGNORE INTO messages (itemID,messageID,received,folded, status,content, receivedTime, reviewTime,repetittion ,data ) values('"+e.chatID+"', '"+t.messageID+"',"+t.getReceivedInt()+", "+t.getFoldedInt()+", '"+t.status+"', '"+r+"', '"+t.getReceivedTimeSqlLiteFormat()+"', '"+t.getReviewTimeSqlLiteFormat()+"', "+t.repetittion+", '"+JSON.stringify(t)+"')";this.databaseObj.executeSql(i,[]).then((function(e){n.consoleDialog.log("message added to db",e)})).catch((function(e){console.log("error database in add message",e)})),this.getMessages(e,5)}},{key:"prependMessage",value:function(e,t){var n=this;if(!this.platform.is("cordova"))return console.log("platform is not cordova"),!1;if(null==t.messageID)return console.log("messages cant be saved because message id is undefined",t),!1;var r="insert into messages (itemID,messageID,received,folded, status, receivedTime, reviewTime ,data ) values('"+e.chatID+"', '"+t.messageID+"',"+t.getReceivedInt()+", "+t.getFoldedInt()+", '"+t.status+"', '"+t.getReceivedTimeSqlLiteFormat()+"', '"+t.getReviewTimeSqlLiteFormat()+"', '"+JSON.stringify(t)+"')";this.consoleDialog.log2("added msg",r),this.databaseObj.executeSql(r,[]).then((function(e){console.log("executed",e),n.consoleDialog.log("message added to db",e)})).catch((function(e){console.log("error database in add message",e)}))}},{key:"truncrate",value:function(){this.databaseObj.executeSql("delete from items",[]).then((function(){console.log("all deleted")})).catch((function(e){console.log("error from truncrate",e)})),this.databaseObj.executeSql("delete from messages",[]).then((function(){console.log("all deleted")})).catch((function(e){console.log("error from truncrate",e)})),this.databaseObj.executeSql("drop Table items",[]).then((function(){console.log("database dropped")})).catch((function(e){console.log("error on drop database")})),this.databaseObj.executeSql("drop Table messages",[]).then((function(){console.log("database dropped")})).catch((function(e){console.log("error on drop database")})),this.createTables()}},{key:"getItems",value:function(e){var t=this;return new Promise((function(n,r){var i=[];t.init(e).then((function(){t.databaseObj.executeSql("select * from items",[]).then((function(e){if(e.rows.length>0)for(var t=0;t<e.rows.length;t++)i.push(e.rows.item(t));n(i)})).catch((function(e){console.log("error database",e)}))}))}))}},{key:"getLeitnerMessages",value:function(e,t){var n=this;return new Promise((function(r,a){var s=[],u="select data,content, received,folded, receivedTime, reviewTime,lastReviewedTime,easinessFactor ,repetittion from messages where itemID='"+e.chatID+"'";u+=" AND reviewTime <= Datetime('"+l.d.getTodayForSqlLite()+"')",e.messages.length>0&&(u+=" AND receivedTime < Datetime('"+e.messages[0].getReceivedTimeSqlLiteFormat()+"')"),u+=" ORDER BY rowid DESC limit "+t,console.log("sqlLiteQuery lite",u),n.databaseObj.executeSql(u,[]).then((function(e){if(e.rows.length>0)for(var t=e.rows.length-1;t>=0;t--){var n=new o.a(JSON.parse(e.rows.item(t).data));n.content||(n.content=JSON.parse(e.rows.item(t).content)),n.setReceivedFromInt(e.rows.item(t).received),n.setFoldingFromInt(e.rows.item(t).folded),n.setEasinessFactor(e.rows.item(t).easinessFactor),n.setRepetitions(e.rows.item(t).repetittion),n.setLastReviewedTime(e.rows.item(t).lastReviewedTime),n.type=i.a.typeLeitner,s.push(n)}console.log("look at leitner messages ",s),r(s)})).catch((function(e){console.log("error from get leitner messages",e)}))}))}},{key:"getMessageContent",value:function(e){var t=this;return new Promise((function(n,r){t.databaseObj.executeSql('select content from messages where data like \'%"text":"'+e.text+"\"%' limit 1",[]).then((function(t){if(null!=t&&null!=t.rows&&null!=t.rows&&t.rows.length>0)for(var r=t.rows.length-1;r>=0;r--){var i=t.rows.item(r).content;null!=i&&i.length>0&&null!=i&&"null"!=i?(e.content=JSON.parse(t.rows.item(r).content),n(!0)):n(!1)}else n(!1)})).catch((function(e){console.log("error from get messages",e)}))}))}},{key:"getMessages",value:function(e,t){return e.showNewWords()?this.getLeitnerMessages(e,t):this.getNormalMessages(e,t)}},{key:"getNormalMessages",value:function(e,t){var n=this;return new Promise((function(r,i){var o=[],a="select data,content, received,folded, receivedTime,reviewTime,lastReviewedTime,easinessFactor ,repetittion from messages where itemID='"+e.chatID+"'";e.messages.length>0&&(a+=" AND receivedTime < Datetime('"+e.messages[0].getReceivedTimeSqlLiteFormat()+"')"),a+=" ORDER BY rowid DESC limit "+t,n.databaseObj.executeSql(a,[]).then((function(e){if(e.rows.length>0)for(var t=e.rows.length-1;t>=0;t--){var i=e.rows.item(t),a=n.createMessageWithMessageObject(JSON.parse(i.data));a.hasContent()||(a.content=JSON.parse(i.content)),a.setReceivedTime(i.receivedTime),a.setReceivedFromInt(i.received),a.setReviewTime(i.reviewTime),a.setFoldingFromInt(i.folded),a.setEasinessFactor(i.easinessFactor),a.setRepetitions(i.repetittion),a.setLastReviewedTime(i.lastReviewedTime),o.push(a)}r(o)})).catch((function(e){console.log("error from get messages",e)}))}))}},{key:"createMessageWithMessageObject",value:function(e){var t;switch(null==e.type&&(e.type=e.messageType),e.type){case"chat":case"dictionary":case"leitner":t=new o.a(e);break;case"quiz":case"artikelQuiz":case"imageQuiz":case"translationQuiz":t=new a.a(e)}return t}},{key:"selectMessagesFromChat",value:function(e,t){var n=this;return new Promise((function(r,i){var o=[];n.databaseObj.executeSql("select data,content, received,folded, receivedTime,reviewTime,lastReviewedTime,easinessFactor ,repetittion from messages where itemID='"+e.chatID+"' AND content like '%"+t+"%' limit 6",[]).then((function(e){if(e.rows.length>0)for(var t=e.rows.length-1;t>=0;t--){var i=n.createMessageWithMessageObject(JSON.parse(e.rows.item(t).data));i.hasContent()||(i.content=JSON.parse(e.rows.item(t).content)),i.setReceivedTime(e.rows.item(t).receivedTime),i.setReceivedFromInt(e.rows.item(t).received),i.setReviewTime(e.rows.item(t).reviewTime),i.setFoldingFromInt(e.rows.item(t).folded),i.setEasinessFactor(e.rows.item(t).easinessFactor),i.setRepetitions(e.rows.item(t).repetittion),i.setLastReviewedTime(e.rows.item(t).lastReviewedTime),o.push(i)}r(o)})).catch((function(e){console.log("error from get messages",e)}))}))}}]),e}()},Gi4r:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("SVse"),n("IheW"),n("8Y7J"),n("cUpR"),n("LRne"),n("z6cu"),n("cp0P"),n("vkgz"),n("lJxs"),n("JIr8"),n("nYR2"),n("w1tV"),n("IzEk"),n("KCVW"),n("Xd0L");var r=function e(){_classCallCheck(this,e)}},GyhO:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("LRne"),i=n("0EUg");function o(){return Object(i.a)()(Object(r.a).apply(void 0,arguments))}},HDdC:function(e,t,n){"use strict";var r=n("7o/Q"),i=n("2QA8"),o=n("gRHU"),a=n("kJWO"),s=n("mCNh"),l=n("2fFW");n.d(t,"a",(function(){return c}));var u,c=((u=function(){function e(t){_classCallCheck(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return _createClass(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var a=this.operator,s=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[i.a])return e[i.a]()}return e||t||n?new r.a(e,t,n):new r.a(o.a)}(e,t,n);if(s.add(a?a.call(s,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),l.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){l.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,o=t.isStopped;if(n||o)return!1;e=i&&i instanceof r.a?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=h(t))((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}}),r,t)}))}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:a.a,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:Object(s.b)(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=h(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))}}]),e}()).create=function(e){return new u(e)},u);function h(e){if(e||(e=l.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},HKEL:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("h4wn");var r=function(){function e(t,n,r){_classCallCheck(this,e),this.friendsManager=t,this.viewCtrl=n,this.translateService=r,this.email="",this.toknow=this.translateService.currentLang}return _createClass(e,[{key:"addFriend",value:function(){this.friendsManager.add(this.email),this.viewCtrl.dismiss()}},{key:"close",value:function(){this.viewCtrl.dismiss()}}]),e}()},HPGL:function(e,t,n){"use strict";function r(){if("undefined"==typeof process){var e="undefined"!=typeof window?window:{},t=Date.now(),n=!1;e.document.addEventListener("deviceready",(function(){console.log("Ionic Native: deviceready event fired after "+(Date.now()-t)+" ms"),n=!0})),setTimeout((function(){!n&&e.cordova&&console.warn("Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.")}),5e3)}}n.d(t,"a",(function(){return r}))},HcDZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n("2IJ5"),n("kbZ1"),n("h4wn"),n("J20c"),n("sk1z"),n("olg3"),n("/qZA"),n("oCF6");var r=n("sUqe");n("0+M4");var i=function(){function e(t,n,r,i,o,a,s,l,u,c,h,f,d,p){_classCallCheck(this,e),this.navCtrl=t,this.location=n,this.itemsManager=r,this.chatsManager=i,this.consoleDialog=o,this.userManager=a,this.view=s,this.translateService=l,this.friendsManager=u,this.adsManager=c,this.menu=h,this.events=f,this.socketManager=d,this.router=p,this.socketMgrConnected=!1,this.searchInputVisible=!1,this.registerEvents()}return _createClass(e,[{key:"registerEvents",value:function(){var e=this;this.events.subscribe(r.c.updatedTitle,(function(t){e.chatPage&&(e.text=t.title)})),this.events.subscribe("resumeApp",(function(){e.search(),e.closeInput()})),this.registerConnectedSocket(),this.registerResume()}},{key:"ngOnInit",value:function(){}},{key:"registerConnectedSocket",value:function(){var e=this;this.events.subscribe(r.c.Connected,(function(){e.socketMgrConnected=!0,e.ngOnInit()})),this.events.subscribe(r.c.SocketDisconnected,(function(){e.socketMgrConnected=!1}))}},{key:"registerResume",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this;this.userManager.loggedIn().then((function(){e.text=e.textToUse,e.chatPage&&(e.text=e.chat.title)})).catch((function(t){e.consoleDialog.log("login error",t)}))}},{key:"ionViewDidEnter",value:function(){var e=this;this.navBar.backButtonClick=function(){console.log("hallo back button"),e.backButtonClick()}}},{key:"connectAgain",value:function(){console.log("connect again"),this.socketManager.connect()}},{key:"disconnect",value:function(){console.log("serve disconnect"),this.socketManager.disconnect()}},{key:"openFirst",value:function(){this.menu.enable(!0,"first"),this.menu.open("first")}},{key:"openEnd",value:function(){this.menu.open("end")}},{key:"openCustom",value:function(){this.menu.enable(!0,"custom"),this.menu.open("custom")}},{key:"search",value:function(){this.openInput()}},{key:"cancel",value:function(){this.closeInput()}},{key:"hasSearchBtn",value:function(){return this.chatPage||this.itemsPage||this.friendsPage}},{key:"closeInput",value:function(){this.chatPage&&(this.chat.searching=!1,this.chat.endSearch()),this.itemsPage&&this.itemsManager.endSearch(),this.friendsPage&&this.friendsManager.endSearch(),this.searchInputVisible=!1,this.needle=""}},{key:"openInput",value:function(){this.chatPage&&(this.chat.searching=!0),this.itemsPage&&this.itemsManager.searchBackUp(),this.friendsPage&&this.friendsManager.searchBackUp(),this.searchInputVisible=!0}},{key:"backButtonClick",value:function(){console.log("lets see some ads def")}},{key:"isQuiz",value:function(){if(this.chat)return this.chat.isQuiz()}},{key:"goBack",value:function(){this.chatsManager.clearCurrentChat(),this.itemsManager.save(),this.location.back(),1==this.userManager.user.frgpass?"/profile/signup"!==this.router.url&&"/profile/forgotpassword"!==this.router.url||this.router.navigateByUrl("/profile/login"):"/profile/signup"!==this.router.url&&"/profile/forgotpassword"!==this.router.url||(this.router.navigateByUrl("/profile"),this.userManager.user.frgpass=!0),"/chat/membersPage"===this.router.url&&this.router.navigateByUrl("/chat"),this.chat.isLeitner()&&this.adsManager.removeBannerAd(),this.navCtrl.navigateBack("")}},{key:"onInput",value:function(e){if(this.chatPage)return!1;this.itemsPage&&this.itemsManager.search(this.needle),this.friendsPage&&this.friendsManager.search(this.needle)}},{key:"searchInDatabase",value:function(){this.chatPage&&this.needle.length>0&&this.chatsManager.searchInChat(this.needle)}},{key:"showDetails",value:function(){this.chat.item.userID==this.userManager.user.userID&&this.chat.isDictionary()&&(console.log("this.chat",this.chat),this.router.navigate(["chat/membersPage"],{state:{chat:this.chat}}))}},{key:"isChatPage",value:function(){return this.chatPage}},{key:"showChatOptionMenu",value:function(){this.chat.setShowOptionMenu(!0)}},{key:"isConnected",value:function(){return this.socketManager.isConnected()}},{key:"isShowOptionMenu",value:function(){if(this.chat)return this.chat.isShowOptionMenu()}},{key:"showMenu",value:function(){this.menu.open()}}]),e}()},Hceu:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("QA36"),n("LKtr");var r=function(){function e(t,n,r,i,o,a){_classCallCheck(this,e),this.navCtrl=t,this.router=n,this.collectionsManager=r,this.menuCtrl=i,this.tabsManager=o,this.cd=a,this.loaded=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"ionViewDidLoad",value:function(){}},{key:"ionViewDidEnter",value:function(){}},{key:"ngAfterContentInit",value:function(){}},{key:"ngAfterViewInit",value:function(){this.cd.detectChanges()}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngAfterContentChecked",value:function(){}},{key:"getPlugin",value:function(){}},{key:"swipeEvent",value:function(e){2==e.direction&&(this.tabsManager.selectedTab=2,this.router.navigate(["items"]))}}]),e}()},I55L:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},IP0z:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var r=n("SVse"),i=n("8Y7J"),o=new i.o("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.V)(r.d)}}),a=function(){var e=function(){function e(t){if(_classCallCheck(this,e),this.value="ltr",this.change=new i.m,t){var n=t.documentElement?t.documentElement.dir:null,r=(t.body?t.body.dir:null)||n;this.value="ltr"===r||"rtl"===r?r:"ltr"}}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}();return e.ngInjectableDef=Object(i.Qb)({factory:function(){return new e(Object(i.Rb)(o,8))},token:e,providedIn:"root"}),e}(),s=function(){function e(){_classCallCheck(this,e),this._dir="ltr",this._isInitialized=!1,this.change=new i.m}return _createClass(e,[{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this.change.complete()}},{key:"dir",get:function(){return this._dir},set:function(e){var t=this._dir,n=e?e.toLowerCase():e;this._rawDir=e,this._dir="ltr"===n||"rtl"===n?n:"ltr",t!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}}]),e}(),l=function e(){_classCallCheck(this,e)}},IheW:function(e,t,n){"use strict";n.d(t,"k",(function(){return P})),n.d(t,"n",(function(){return L})),n.d(t,"o",(function(){return F})),n.d(t,"l",(function(){return N})),n.d(t,"m",(function(){return j})),n.d(t,"b",(function(){return h})),n.d(t,"f",(function(){return c})),n.d(t,"c",(function(){return x})),n.d(t,"a",(function(){return T})),n.d(t,"d",(function(){return H})),n.d(t,"e",(function(){return V})),n.d(t,"j",(function(){return B})),n.d(t,"g",(function(){return D})),n.d(t,"i",(function(){return I})),n.d(t,"h",(function(){return R}));var r=n("8Y7J"),i=n("LRne"),o=n("HDdC"),a=n("bOdf"),s=n("pLZG"),l=n("lJxs"),u=n("SVse"),c=function e(){_classCallCheck(this,e)},h=function e(){_classCallCheck(this,e)},f=function(){function e(t){var n=this;_classCallCheck(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach((function(e){var t=e.indexOf(":");if(t>0){var r=e.slice(0,t),i=r.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}}))}:function(){n.headers=new Map,Object.keys(t).forEach((function(e){var r=t[e],i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(e,i))}))}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(e){return t.applyUpdate(e)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach((function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))}))}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,_toConsumableArray(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var o=this.headers.get(t);if(!o)return;0===(o=o.filter((function(e){return-1===i.indexOf(e)}))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return e(t.normalizedNames.get(n),t.headers.get(n))}))}}]),e}(),d=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return p(e)}},{key:"encodeValue",value:function(e){return p(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function p(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var v=function(){function e(){var t,n,r,i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=o.encoder||new d,o.fromString){if(o.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=o.fromString,n=this.encoder,r=new Map,t.length>0&&t.split("&").forEach((function(e){var t=e.indexOf("="),i=_slicedToArray(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),o=i[0],a=i[1],s=r.get(o)||[];s.push(a),r.set(o,s)})),r)}else o.fromObject?(this.map=new Map,Object.keys(o.fromObject).forEach((function(e){var t=o.fromObject[e];i.map.set(e,Array.isArray(t)?t:[t])}))):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map((function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map((function(t){return n+"="+e.encoder.encodeValue(t)})).join("&")})).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(t){return e.map.set(t,e.cloneFrom.map.get(t))})),this.updates.forEach((function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}})),this.cloneFrom=this.updates=null)}}]),e}();function g(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function m(e){return"undefined"!=typeof Blob&&e instanceof Blob}function y(e){return"undefined"!=typeof FormData&&e instanceof FormData}var b=function(){function e(t,n,r,i){var o;if(_classCallCheck(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new f),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+a}}else this.params=new v,this.urlWithParams=n}return _createClass(e,[{key:"serializeBody",value:function(){return null===this.body?null:g(this.body)||m(this.body)||y(this.body)||"string"==typeof this.body?this.body:this.body instanceof v?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||y(this.body)?null:m(this.body)?this.body.type||null:g(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof v?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,l=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((function(e,n){return e.set(n,t.setHeaders[n])}),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((function(e,n){return e.set(n,t.setParams[n])}),u)),new e(n,r,o,{params:u,headers:l,reportProgress:s,responseType:i,withCredentials:a})}}]),e}(),k=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.ResponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}(),_=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new f,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},C=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,r)).type=k.ResponseHeader,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(_),w=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,r)).type=k.Response,e.body=void 0!==r.body?r.body:null,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(_),S=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),r.error=e.error||null,r}return n}(_);function O(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var x=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof b)n=e;else{var u=void 0;u=o.headers instanceof f?o.headers:new f(o.headers);var c=void 0;o.params&&(c=o.params instanceof v?o.params:new v({fromObject:o.params})),n=new b(e,t,void 0!==o.body?o.body:null,{headers:u,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}var h=Object(i.a)(n).pipe(Object(a.a)((function(e){return r.handler.handle(e)})));if(e instanceof b||"events"===o.observe)return h;var d=h.pipe(Object(s.a)((function(e){return e instanceof w})));switch(o.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return d.pipe(Object(l.a)((function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return d.pipe(Object(l.a)((function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return d.pipe(Object(l.a)((function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));case"json":default:return d.pipe(Object(l.a)((function(e){return e.body})))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new v).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,O(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,O(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,O(n,t))}}]),e}(),E=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),T=new r.o("HTTP_INTERCEPTORS"),M=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}(),A=/^\)\]\}',?\n/,I=function e(){_classCallCheck(this,e)},P=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}(),D=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new o.a((function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((function(e,t){return r.setRequestHeader(e,t.join(","))})),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new f(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new C({headers:i,status:t,statusText:n,url:o})},u=function(){var t=l(),i=t.headers,o=t.status,a=t.statusText,s=t.url,u=null;204!==o&&(u=void 0===r.response?r.responseText:r.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof u){var h=u;u=u.replace(A,"");try{u=""!==u?JSON.parse(u):null}catch(f){u=h,c&&(c=!1,u={error:f,text:u})}}c?(n.next(new w({body:u,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new S({error:u,headers:i,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=l().url,i=new S({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(i)},h=!1,d=function(t){h||(n.next(l()),h=!0);var i={type:k.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},p=function(e){var t={type:k.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",u),r.addEventListener("error",c),e.reportProgress&&(r.addEventListener("progress",d),null!==a&&r.upload&&r.upload.addEventListener("progress",p)),r.send(a),n.next({type:k.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",u),e.reportProgress&&(r.removeEventListener("progress",d),null!==a&&r.upload&&r.upload.removeEventListener("progress",p)),r.abort()}}))}}]),e}(),N=new r.o("XSRF_COOKIE_NAME"),j=new r.o("XSRF_HEADER_NAME"),R=function e(){_classCallCheck(this,e)},L=function(){function e(t,n,r){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(u.A)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}(),F=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}]),e}(),B=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(T,[]);this.chain=t.reduceRight((function(e,t){return new E(e,t)}),this.backend)}return this.chain.handle(e)}}]),e}(),V=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:F,useClass:M}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:N,useValue:t.cookieName}:[],t.headerName?{provide:j,useValue:t.headerName}:[]]}}}]),e}(),H=function e(){_classCallCheck(this,e)}},IjjT:function(e,t,n){"use strict";var r=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}();n.d(t,"a",(function(){return i}));var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;return _classCallCheck(this,n),(i=t.call(this,e,(function(){return n.delegate&&n.delegate!==_assertThisInitialized(i)?n.delegate.now():o()}))).actions=[],i.active=!1,i.scheduled=void 0,i}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,r):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,r)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(r)},ItpF:function(e,t,n){"use strict";n.r(t),n.d(t,"createGesture",(function(){return l}));var r=n("rxGk");n.d(t,"GESTURE_CONTROLLER",(function(){return r.a}));var i,o=function(e,t,n,r){var i,o,s=a(e)?{capture:!!r.capture,passive:!!r.passive}:!!r.capture;return e.__zone_symbol__addEventListener?(i="__zone_symbol__addEventListener",o="__zone_symbol__removeEventListener"):(i="addEventListener",o="removeEventListener"),e[i](t,n,s),function(){e[o](t,n,s)}},a=function(e){if(void 0===i)try{var t=Object.defineProperty({},"passive",{get:function(){i=!0}});e.addEventListener("optsTest",(function(){}),t)}catch(n){i=!1}return!!i},s=function(e){return e instanceof Document?e:e.ownerDocument},l=function(e){var t=!1,n=!1,i=!0,a=!1,l=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),f=l.canStart,d=l.onWillStart,p=l.onStart,v=l.onEnd,g=l.notCaptured,m=l.onMove,y=l.threshold,b=l.passive,k=l.blurOnStart,_={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},C=function(e,t,n){var r=n*(Math.PI/180),i="x"===e,o=Math.cos(r),a=t*t,s=0,l=0,u=!1,c=0;return{start:function(e,t){s=e,l=t,c=0,u=!0},detect:function(e,t){if(!u)return!1;var n=e-s,r=t-l,h=n*n+r*r;if(h<a)return!1;var f=Math.sqrt(h),d=(i?n:r)/f;return c=d>o?1:d<-o?-1:0,u=!1,!0},isGesture:function(){return 0!==c},getDirection:function(){return c}}}(l.direction,l.threshold,l.maxAngle),w=r.a.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),S=function(){t&&(a=!1,m&&m(_))},O=function(){return!(w&&!w.capture()||(t=!0,i=!1,_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime,d?d(_).then(x):x(),0))},x=function(){k&&function(){if("undefined"!=typeof document){var e=document.activeElement;null!==e&&e.blur&&e.blur()}}(),p&&p(_),i=!0},E=function(){t=!1,n=!1,a=!1,i=!0,w.release()},T=function(e){var n=t,r=i;E(),r&&(u(_,e),n?v&&v(_):g&&g(_))},M=function(e,t,n,r,i){var a,l,u,c,h,f,d,p=0,v=function(r){p=Date.now()+2e3,t(r)&&(!l&&n&&(l=o(e,"touchmove",n,i)),u||(u=o(e,"touchend",m,i)),c||(c=o(e,"touchcancel",m,i)))},g=function(r){p>Date.now()||t(r)&&(!f&&n&&(f=o(s(e),"mousemove",n,i)),d||(d=o(s(e),"mouseup",y,i)))},m=function(e){b(),r&&r(e)},y=function(e){k(),r&&r(e)},b=function(){l&&l(),u&&u(),c&&c(),l=u=c=void 0},k=function(){f&&f(),d&&d(),f=d=void 0},_=function(){b(),k()},C=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?(a||(a=o(e,"touchstart",v,i)),h||(h=o(e,"mousedown",g,i))):(a&&a(),h&&h(),a=h=void 0,_())};return{enable:C,stop:_,destroy:function(){C(!1),r=n=t=void 0}}}(l.el,(function(e){var t=h(e);return!(n||!i)&&(c(e,_),_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime=t,_.velocityX=_.velocityY=_.deltaX=_.deltaY=0,_.event=e,(!f||!1!==f(_))&&(w.release(),!!w.start()&&(n=!0,0===y?O():(C.start(_.startX,_.startY),!0))))}),(function(e){t?!a&&i&&(a=!0,u(_,e),requestAnimationFrame(S)):(u(_,e),C.detect(_.currentX,_.currentY)&&(C.isGesture()&&O()||A()))}),T,{capture:!1,passive:b}),A=function(){E(),M.stop(),g&&g(_)};return{enable:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e||(t&&T(void 0),E()),M.enable(e)},destroy:function(){w.destroy(),M.destroy()}}},u=function(e,t){if(t){var n=e.currentX,r=e.currentY,i=e.currentTime;c(t,e);var o=e.currentX,a=e.currentY,s=(e.currentTime=h(t))-i;if(s>0&&s<100){var l=(a-r)/s;e.velocityX=(o-n)/s*.7+.3*e.velocityX,e.velocityY=.7*l+.3*e.velocityY}e.deltaX=o-e.startX,e.deltaY=a-e.startY,e.event=t}},c=function(e,t){var n=0,r=0;if(e){var i=e.changedTouches;if(i&&i.length>0){var o=i[0];n=o.clientX,r=o.clientY}else void 0!==e.pageX&&(n=e.pageX,r=e.pageY)}t.currentX=n,t.currentY=r},h=function(e){return e.timeStamp||Date.now()}},IzEk:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("7o/Q"),i=n("4I5i"),o=n("EY2u");function a(e){return function(t){return 0===e?Object(o.b)():t.lift(new s(e))}}var s=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new i.a}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.total))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return _createClass(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(r.a)},J20c:function(e,t,n){"use strict";var r=n("7BDe"),i=(n("EGUZ"),n("GAbP"),n("3MOV"),n("/qZA"),n("olg3"),n("kbZ1"),n("h4wn"),n("sk1z"),n("oCF6")),o=n("+mLH"),a=n("o/Pg"),s=n("0NL6"),l=n("p9zK"),u=n("sUqe"),c=n("AjPc");n("2IJ5");var h=function(){var e=function(){function e(t){_classCallCheck(this,e),this.syncing=!1,this.chatMgr=t}return _createClass(e,[{key:"showYourself",value:function(){console.log("hey im there",this.chatMgr)}},{key:"handleMessage",value:function(t,n){var r=JSON.parse(t);if(r.owner==e.getNewMessages){var i,o=_createForOfIteratorHelper(r.msg);try{for(o.s();!(i=o.n()).done;){var a=i.value;this.chatMgr.appendMessageToChat(a,this.chatMgr.findChat(a.itemID))}}catch(c){o.e(c)}finally{o.f()}}else if(r.owner==e.loadMoreMessages){var s,l=_createForOfIteratorHelper(r.msg);try{for(l.s();!(s=l.n()).done;){var u=s.value;this.chatMgr.prependMessageToChat(u,this.chatMgr.findChat(u.itemID))}}catch(c){l.e(c)}finally{l.f()}}else r.owner==e.removeMessage&&this.onMessageRemoved(n);this.chatMgr.events.publish("scrollDown"),this.setSyncing(!1)}},{key:"loadMoreMessages",value:function(t){var n=this,r=this;return new Promise((function(i,o){n.isLoadingMessages?i(!0):(n.isLoadingMessages=!0,n.chatMgr.socketManager.asyncQuery(e.getMoreMessages,{item:t.item.getSimpleModel(),length:3,lastMessage:t.messages[0].getModelTypeID()}).then((function(e){if(e.isAllowed()){var o,a=_createForOfIteratorHelper(e.getParam("response"));try{for(a.s();!(o=a.n()).done;){var s=o.value;n.chatMgr.prependMessageToChat(s,t)}}catch(l){a.e(l)}finally{a.f()}}r.isLoadingMessages=!1,i(!0)})))}))}},{key:"getChatNewMessagesLength",value:function(){}},{key:"getNewMessages",value:function(t){var n=this;this.setSyncing(!0);var r=t.getLastMessageID(),i={lastMessageID:r,itemID:t.chatID,type:t.type};if(!r)return this.setSyncing(!1),!1;this.chatMgr.socketManager.asyncQuery(e.getNewMessages,i).then((function(e){var r,i=_createForOfIteratorHelper(JSON.parse(e.msg).response);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=n.chatMgr.createMessageWithMessageObject(o);console.log("new messages in",a),t.item.chat.messages.push(a)}}catch(s){i.e(s)}finally{i.f()}}))}},{key:"isSyncing",value:function(){return this.syncing}},{key:"setSyncing",value:function(e){this.syncing=e}},{key:"removeMessage",value:function(t,n){var r={message:t.getSimpleModel(),chat:n.item.getSimpleModel()};t.isFrom(this.chatMgr.userManager.user)&&this.chatMgr.socketManager.queryPro(e.removeMessage,r,this,this.chatMgr.userManager.user.getMainAccessToken(),t);var i=n.messages.indexOf(t);n.messages.splice(i,1),this.chatMgr.save(n)}},{key:"onMessageRemoved",value:function(e){console.log("hura should remove"),this.chatMgr.platform.is("cordova")&&this.chatMgr.databaseManager.removeMessage(e.message)}}]),e}();return e.getNewMessages="getNewMessages",e.loadMoreMessages="loadMoreMessages",e.getMoreMessages="getMoreMessages",e.removeMessage="removeMessage",e.action1="",e.action2="",e}();n("0FpF"),n("wZ9J"),n("0+M4"),n.d(t,"a",(function(){return f}));var f=function(){function e(t,n,r,i,o,a,s,l,u,c,f,d,p,v,g){_classCallCheck(this,e),this.http=t,this.storageManager=n,this.databaseManager=r,this.ajaxBridge=i,this.itemsManager=o,this.friendsManager=a,this.membersManager=s,this.adsManager=l,this.platform=u,this.consoleDialog=c,this.socketManager=f,this.modalCtrl=d,this.appRateManager=p,this.events=v,this.userManager=g,this.items=[],this.chats=[],this.addedMessagesNumber=0,this.registerEvents(),this.synchronizer=new h(this),this.clearCurrentChat()}return _createClass(e,[{key:"initItems",value:function(){}},{key:"leaveGroup",value:function(e){var t=this;console.log("itemLeave.chat is",e.chat),this.socketManager.asyncQuery("leaveChat",{chat:e.chat.getSimpleModel()}).then((function(n){if(n.isAllowed()){t.itemsManager.deleteItemLocally(e);var r=new a.a(t.userManager.user);console.log("member is:",r),t.membersManager.removeMember(r,e.chat)}}))}},{key:"setAllChatsView",value:function(e){this.chats.forEach((function(t){t.setViewLoaded(e)}))}},{key:"searchInChat",value:function(e){var t=this;this.databaseManager.selectMessagesFromChat(this.currentChat,e).then((function(n){t.currentChat.searchIn(n,e)}))}},{key:"registerEvents",value:function(){var e=this;this.events.subscribe(u.b.UpdateMessages,(function(t){var n=new r.a(t.item),i=e.findChat(n.itemID);i&&i.item&&e.updateChat(i.item)})),this.events.subscribe(u.c.DeliverMessage,(function(t){e.consoleDialog.log("delivered",t);var n=new s.a(t.message),i=new r.a(t.item),o=e.findChat(i.itemID);if(!o.messages)return!1;o.messages.forEach((function(e){e.messageID==n.messageID&&e.setStatus(e.possibleStatuses.deliveredToUser)})),e.save(o)}))}},{key:"handleMessage",value:function(e){var t=this,n=JSON.parse(e);if(c.a.isJson(n.msg)){var r=JSON.parse(n.msg);"getMembers"==n.owner?this.consoleDialog.log2("do you know gememebrs",n):"getMessage"==n.owner?this.getChat(n.query.data.item.itemID).then((function(e){var n=t.createMessageWithMessageObject(r);n.received=n.from.userID!=t.userManager.user.userID,t.platform.is("cordova")&&t.databaseManager.addMessage(e,n),e.addMessage(n),t.events.publish("scrollDown"),t.save(e)})):this.consoleDialog.log("loadMessages"==n.owner||"checkAndUpdateChat"==n.owner?"loading messages":"not recognized request",n)}else this.consoleDialog.log("not json methode",n)}},{key:"initChat",value:function(e){var t=this;return new Promise((function(n){e.chat?(e.chat.item=e,n(e.chat)):t.platform.is("cordova")?(e.chat=new i.a(e),null==e.chat.creatorID&&e.chat.setCreatorID(e.userID),t.databaseManager.getMessages(e.chat,10).then((function(r){e.chat.setMessages(r),t.events.publish("scrollDown"),e.chat.item=e,t.membersManager.getAdmins(e.chat).then((function(t){var n,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.chat.admins.push(i)}}catch(o){r.e(o)}finally{r.f()}})).then((function(){t.membersManager.getMeAsMember(e.chat).then((function(){n(e.chat)}))}))}))):(null==e.storageID&&(e.storageID=e.itemID),t.storageManager.get(e.storageID).then((function(r){null==r?(t.storageManager.set(e.storageID,e.chat),e.chat=new i.a(e)):e.chat=new i.a(r),e.chat.chatID=e.storageID,e.chat.item=e,null==e.chat.creatorID&&e.chat.setCreatorID(e.userID),n(e.chat),t.getMembers(e.chat,t)})))}))}},{key:"updateChatTitle",value:function(t,n){this.socketManager.queryPro(e.updateChatTitleAction,t.getSimpleModel(),n,this.userManager.user.getMainAccessToken())}},{key:"updateChat",value:function(e){var t=this;return new Promise((function(n){t.initChat(e).then((function(e){t.synchronizer.getNewMessages(e),n(e)}))}))}},{key:"findChat",value:function(e){var t,n=null,r=_createForOfIteratorHelper(this.itemsManager.items);try{for(r.s();!(t=r.n()).done;){var i=t.value;i.chat&&i.chat.chatID==e&&(n=i.chat)}}catch(f){r.e(f)}finally{r.f()}var o,a=_createForOfIteratorHelper(this.itemsManager.publicItems);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.chat&&s.chat.chatID==e&&(n=s.chat)}}catch(f){a.e(f)}finally{a.f()}var l,u=_createForOfIteratorHelper(this.friendsManager.friends);try{for(u.s();!(l=u.n()).done;){var c=l.value;if(c.item.chat){var h=c.item;h.chat.chatID==e&&(n=h.chat)}}}catch(f){u.e(f)}finally{u.f()}return n}},{key:"reload",value:function(e){if(this.platform.is("cordova"))return this.databaseManager.getMessages(e,10).then((function(t){e.setMessages(t)}));this.storageManager.get(e.chatID).then((function(t){var n=new i.a(t);e=n})),e.isReviewWords()&&console.log("hallo")}},{key:"getMessageContent",value:function(e){return this.platform.is("cordova")?this.databaseManager.getMessageContent(e):new Promise((function(e){e(!1)}))}},{key:"saveMessageContent",value:function(e,t){this.platform.is("cordova")&&this.databaseManager.updateMessageContent(e.chatID,t)}},{key:"updateFolding",value:function(e,t){if(this.platform.is("cordova")&&(this.databaseManager.updateMessageFolding(e,t),t.isAdsMessage())){var n=t;n.minimized?n.placemenet.hideClickableArea():n.placemenet.initClickableArea()}}},{key:"addMember",value:function(e,t){console.log("chatsManager addmember:",t),e.members.push(t);var n={chat:e.getSimpleModel(),member:t.getSimpleModel()};console.log("chat: chat.getSimpleModel() V member: friend.getSimpleModel() :",n),this.socketManager.queryPro("addMember",n,this,this.userManager.user.getMainAccessToken()),this.save(e)}},{key:"removeMember",value:function(e,t){var n=e.members.indexOf(t);e.members.splice(n,1);var r={chat:e.getSimpleModel(),member:t.getSimpleModel()};this.save(e),this.socketManager.queryPro("removeMember",r,this,this.userManager.user.getMainAccessToken()),this.membersManager.removeMember(t,e)}},{key:"removeMessage",value:function(e,t){if(e.isAdsMessage()){e.placemenet.release();var n=t.messages.indexOf(e);t.messages.splice(n,1)}else this.synchronizer.removeMessage(e,t)}},{key:"shareMessage",value:function(e,t){}},{key:"getMembersAjax",value:function(e){var t=this;return new Promise((function(n,r){t.ajaxBridge.queryPro("getMembers",e,t.userManager.user.getMainAccessToken()).then((function(t){for(var r in t.members){var i=new a.a(t.members[r]);e.members.push(i)}n(e)})).catch((function(e){r(e)}))}))}},{key:"getMembers",value:function(e,t){this.socketManager.queryPro("getMembers",e.getSimpleModel(),t,this.userManager.user.getMainAccessToken())}},{key:"getChat",value:function(e){var t=this;return new Promise((function(n){var r;t.findChat(e)?n(t.findChat(e)):t.storageManager.get(e).then((function(e){r=new i.a(e),n(r)}))}))}},{key:"getLeitnerChat",value:function(){var e=this;return new Promise((function(t){var n,r;e.itemsManager.items.forEach((function(e){"leitner"==e.type&&(n=e)})),e.storageManager.get(n.storageID).then((function(e){r=new i.a(e),t(r)}))}))}},{key:"loadMoreMessages",value:function(e){var t=this;return new Promise((function(n){t.platform.is("cordova")&&(e.hasMessagesInDatabase()?t.databaseManager.getMessages(e,3).then((function(r){e.messages=r.concat(e.messages),e.searchedMessages=r.concat(e.searchedMessages),e.remainedMessagesLength=r.length,0==r.length?(t.getMessagesFromOnlineDatabase(e),n(0)):n(0)})):(t.getMessagesFromOnlineDatabase(e),n(0)))}))}},{key:"getMessagesFromOnlineDatabase",value:function(e){var t=this;return new Promise((function(n){e.hasMessagesOnline()&&t.synchronizer.loadMoreMessages(e).then((function(e){n(e)}))}))}},{key:"appendMessageToChat",value:function(e,t){if(null==t)return!1;var n=this.createMessageWithMessageObject(e);n.setMessageTimeSent(e.timeSent),n.received=n.from.userID!=this.userManager.user.userID,n.receivedTime=c.d.getTimeString(),t.addMessage(n),this.currentChat.chatID==t.chatID||n.hasBeenSeenByMe()||t.unreadMessagesNumber++,this.platform.is("cordova")&&this.databaseManager.addMessage(t,n),this.save(t),this.events.publish("scrollDown")}},{key:"prependMessageToChat",value:function(e,t){var n=this.createMessageWithMessageObject(e);n.setMessageTimeSent(e.timeSent),n.received=!0,this.platform.is("cordova")&&this.databaseManager.prependMessage(t,n),n.receivedTime=c.d.getTimeString(),t.prependMessage(n),this.currentChat.chatID==t.chatID||n.hasBeenSeenByMe()||t.unreadMessagesNumber++,this.save(t)}},{key:"clearCurrentChat",value:function(){this.currentChat=new i.a({}),this.currentChat.id=123}},{key:"setCurrentChat",value:function(e){this.currentChat=e}},{key:"save",value:function(e){console.log("hiiiii im in save"),this.databaseManager.updateChatTitle(e),this.storageManager.set(e.chatID,e.getSimpleModelWithMessages())}},{key:"onMessageAdded",value:function(){this.addedMessagesNumber++,3!=this.addedMessagesNumber&&8!=this.addedMessagesNumber&&this.addedMessagesNumber%14!=0||this.adsManager.setAdsNeeded(!0),55==this.addedMessagesNumber&&this.appRateManager.checkForRating()}},{key:"runAds",value:function(){this.adsManager.isAdsNeeded()&&this.adsManager.prepareInterstitialAd()}},{key:"createMessageWithMessageObject",value:function(e){var t;if(void 0!==e.messageType&&(e.type=e.messageType),null==e.type)return console.error("message has no type but wanted to create a message",e),new s.a("");switch(e.type){case"chat":case"dictionary":case"leitner":t=new s.a(e);break;case"quiz":case"artikelQuiz":case"imageQuiz":case"translationQuiz":t=new l.a(e);break;case"":t=new s.a(e)}return t.setUser(new o.a(e)),t}}],[{key:"updateChatTitleAction",get:function(){return"updateChatTitle"}}]),e}()},JIr8:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("l7GE"),i=n("51Dv"),o=n("ZUHj");function a(e){return function(t){var n=new s(e),r=t.lift(n);return n.caught=r}}var s=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.selector,this.caught))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).selector=r,o.caught=i,o}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(s){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var r=new i.a(this,void 0,void 0);this.add(r);var a=Object(o.a)(this,t,void 0,void 0,r);a!==r&&this.add(a)}}}]),n}(r.a)},JX91:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("GyhO"),i=n("z+Ro");function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[t.length-1];return Object(i.a)(o)?(t.pop(),function(e){return Object(r.a)(t,e,o)}):function(e){return Object(r.a)(t,e)}}},Ji5e:function(e,t,n){"use strict";function r(e,t){return e._objectInstance&&e._objectInstance[t]?e._objectInstance[t]:null}function i(e,t,n){e._objectInstance&&(e._objectInstance[t]=n)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}))},KCVW:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l}));var r=n("8Y7J");function i(e){return null!=e&&""+e!="false"}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function a(e){return Array.isArray(e)?e:[e]}function s(e){return null==e?"":"string"==typeof e?e:e+"px"}function l(e){return e instanceof r.k?e.nativeElement:e}},"KOl+":function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return b}));var r=n("HDdC"),i=n("xgIS"),o={error:"cordova_not_available"},a={error:"plugin_not_installed"};function s(e){if("undefined"!=typeof window&&window.angular){var t=window.document,n=window.angular.element(t.querySelector("[ng-app]")||t.body).injector();if(n)return n.get("$q")((function(t,n){e(t,n)}));console.warn("Angular 1 was detected but $q couldn't be retrieved. This is usually when the app is not bootstrapped on the html or body tag. Falling back to native promises which won't trigger an automatic digest when promises resolve.")}return function(){if(Promise)return new Promise((function(t,n){e(t,n)}));console.error("No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.")}()}function l(e,t,n,r){var i,o;void 0===r&&(r={});var a=s((function(a,s){i=r.destruct?p(e,t,n,r,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a(e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)})):p(e,t,n,r,a,s),o=s}));return i&&i.error&&(a.catch((function(){})),"function"==typeof o&&o(i.error)),a}function u(e,t,n,r){return void 0===r&&(r={}),s((function(i,o){var a=p(e,t,n,r);a?a.error?o(a.error):a.then&&a.then(i).catch(o):o({error:"unexpected_error"})}))}function c(e,t,n,i){return void 0===i&&(i={}),new r.a((function(r){var o;return(o=i.destruct?p(e,t,n,i,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.next(e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.error(e)})):p(e,t,n,i,r.next.bind(r),r.error.bind(r)))&&o.error&&(r.error(o.error),r.complete()),function(){try{if(i.clearFunction)return i.clearWithArgs?p(e,i.clearFunction,n,i,r.next.bind(r),r.error.bind(r)):p(e,i.clearFunction,[])}catch(o){console.warn("Unable to clear the previous observable watch for",e.constructor.getPluginName(),t),console.warn(o)}}}))}function h(e,t){return t="undefined"!=typeof window&&t?m(window,t):t||("undefined"!=typeof window?window:{}),Object(i.a)(t,e)}function f(e,t,n){var r,i,s;return"string"==typeof e?r=e:(r=e.constructor.getPluginRef(),n=e.constructor.getPluginName(),s=e.constructor.getPluginInstallName()),!(!(i=g(r))||t&&void 0===i[t])||("undefined"!=typeof window&&window.cordova?(function(e,t,n){n?console.warn("Native: tried calling "+e+"."+n+", but the "+e+" plugin is not installed."):console.warn("Native: tried accessing the "+e+" plugin but it's not installed."),t&&console.warn("Install the "+e+" plugin: 'ionic cordova plugin add "+t+"'")}(n,s,t),a):(function(e,t){"undefined"==typeof process&&(t?console.warn("Native: tried calling "+e+"."+t+", but Cordova is not available. Make sure to include cordova.js or run in a device/simulator"):console.warn("Native: tried accessing the "+e+" plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator"))}(n,t),o))}function d(e,t,n,r){if(void 0===t&&(t={}),t.sync)return e;if("reverse"===t.callbackOrder)e.unshift(r),e.unshift(n);else if("node"===t.callbackStyle)e.push((function(e,t){e?r(e):n(t)}));else if("object"===t.callbackStyle&&t.successName&&t.errorName){var i={};i[t.successName]=n,i[t.errorName]=r,e.push(i)}else if(void 0!==t.successIndex||void 0!==t.errorIndex){var o=function(){t.successIndex>e.length?e[t.successIndex]=n:e.splice(t.successIndex,0,n)},a=function(){t.errorIndex>e.length?e[t.errorIndex]=r:e.splice(t.errorIndex,0,r)};t.successIndex>t.errorIndex?(a(),o()):(o(),a())}else e.push(n),e.push(r);return e}function p(e,t,n,r,i,o){void 0===r&&(r={}),n=d(n,r,i,o);var a=f(e,t);if(!0===a){var s=g(e.constructor.getPluginRef());return s[t].apply(s,n)}return a}function v(e,t,n,r,i,o){if(void 0===r&&(r={}),n=d(n,r,i,o),function(e,t){return e._objectInstance&&(!t||void 0!==e._objectInstance[t])}(e,t))return e._objectInstance[t].apply(e._objectInstance,n)}function g(e){return"undefined"!=typeof window?m(window,e):null}function m(e,t){for(var n=t.split("."),r=e,i=0;i<n.length;i++){if(!r)return null;r=r[n[i]]}return r}var y=function(e,t,n){return void 0===n&&(n={}),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n.sync?p(e,t,r,n):n.observable?c(e,t,r,n):n.eventObservable&&n.event?h(n.event,n.element):n.otherPromise?u(e,t,r,n):l(e,t,r,n)}};function b(e,t,n){return void 0===n&&(n={}),function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n.sync)return v(e,t,i,n);if(n.observable)return new r.a((function(r){var o;return(o=n.destruct?v(e,t,i,n,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.next(e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.error(e)})):v(e,t,i,n,r.next.bind(r),r.error.bind(r)))&&o.error&&r.error(o.error),function(){try{return n.clearWithArgs?v(e,n.clearFunction,i,n,r.next.bind(r),r.error.bind(r)):v(e,n.clearFunction,[])}catch(o){console.warn("Unable to clear the previous observable watch for",e.constructor.getPluginName(),t),console.warn(o)}}}));if(n.otherPromise)return s((function(r,o){var a;(a=n.destruct?v(e,t,i,n,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(e)})):v(e,t,i,n,r,o))&&a.then?a.then(r,o):o()}));var a,l,u=s((function(r,o){a=n.destruct?v(e,t,i,n,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(e)})):v(e,t,i,n,r,o),l=o}));return a&&a.error&&(u.catch((function(){})),"function"==typeof l&&l(a.error)),u}}},"KX/v":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("mrSG"),i=n("a3Cf"),o=n("xgIS"),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.events={BANNER_LOAD:"admob.banner.events.LOAD",BANNER_LOAD_FAIL:"admob.banner.events.LOAD_FAIL",BANNER_OPEN:"admob.banner.events.OPEN",BANNER_CLOSE:"admob.banner.events.CLOSE",BANNER_EXIT_APP:"admob.banner.events.EXIT_APP",INTERSTITIAL_LOAD:"admob.interstitial.events.LOAD",INTERSTITIAL_LOAD_FAIL:"admob.interstitial.events.LOAD_FAIL",INTERSTITIAL_OPEN:"admob.interstitial.events.OPEN",INTERSTITIAL_CLOSE:"admob.interstitial.events.CLOSE",INTERSTITIAL_EXIT_APP:"admob.interstitial.events.EXIT_APP",REWARD_VIDEO_LOAD:"admob.rewardvideo.events.LOAD",REWARD_VIDEO_LOAD_FAIL:"admob.rewardvideo.events.LOAD_FAIL",REWARD_VIDEO_OPEN:"admob.rewardvideo.events.OPEN",REWARD_VIDEO_CLOSE:"admob.rewardvideo.events.CLOSE",REWARD_VIDEO_EXIT_APP:"admob.rewardvideo.events.EXIT_APP",REWARD_VIDEO_START:"admob.rewardvideo.events.START",REWARD_VIDEO_REWARD:"admob.rewardvideo.events.REWARD"},t.banner=new s,t.interstitial=new l,t.rewardVideo=new u,t}return Object(r.c)(t,e),t.prototype.on=function(e){return Object(o.a)(document,e)},t.pluginName="AdMobFree",t.plugin="cordova-plugin-admob-free",t.pluginRef="admob",t.repo="https://github.com/ratson/cordova-plugin-admob-free",t.platforms=["Android","iOS"],t}(i.IonicNativePlugin),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.config=function(e){return Object(i.cordova)(this,"config",{sync:!0},arguments)},t.prototype.hide=function(){return Object(i.cordova)(this,"hide",{otherPromise:!0},arguments)},t.prototype.prepare=function(){return Object(i.cordova)(this,"prepare",{otherPromise:!0},arguments)},t.prototype.remove=function(){return Object(i.cordova)(this,"remove",{otherPromise:!0},arguments)},t.prototype.show=function(){return Object(i.cordova)(this,"show",{otherPromise:!0},arguments)},t.pluginName="AdMobFree",t.plugin="cordova-plugin-admob-free",t.pluginRef="admob.banner",t}(i.IonicNativePlugin),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.config=function(e){return Object(i.cordova)(this,"config",{sync:!0},arguments)},t.prototype.isReady=function(){return Object(i.cordova)(this,"isReady",{otherPromise:!0},arguments)},t.prototype.prepare=function(){return Object(i.cordova)(this,"prepare",{otherPromise:!0},arguments)},t.prototype.show=function(){return Object(i.cordova)(this,"show",{otherPromise:!0},arguments)},t.pluginName="AdMobFree",t.plugin="cordova-plugin-admob-free",t.pluginRef="admob.interstitial",t}(i.IonicNativePlugin),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.config=function(e){return Object(i.cordova)(this,"config",{sync:!0},arguments)},t.prototype.isReady=function(){return Object(i.cordova)(this,"isReady",{otherPromise:!0},arguments)},t.prototype.prepare=function(){return Object(i.cordova)(this,"prepare",{otherPromise:!0},arguments)},t.prototype.show=function(){return Object(i.cordova)(this,"show",{otherPromise:!0},arguments)},t.pluginName="AdMobFree",t.plugin="cordova-plugin-admob-free",t.pluginRef="admob.rewardvideo",t}(i.IonicNativePlugin)},KnF1:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("mrSG");n("h4wn"),n("kbZ1"),n("J20c");var i=function(){function e(t,n,r,i,o,a,s){_classCallCheck(this,e),this.navCtrl=t,this.friendsManager=n,this.itemsManager=r,this.chatsManager=i,this.view=o,this.alertCtrl=a,this.navParams=s,this.filter="",this.filter=this.navParams.get("filter"),this.message=this.navParams.get("message"),console.log("catchedmessage0",this.message),this.availableItems=this.itemsManager.items.filter((function(e){return"leitner"==e.type}))}return _createClass(e,[{key:"closeModal",value:function(){this.view.dismiss()}},{key:"ionViewDidLoad",value:function(){}},{key:"askAdd",value:function(e,t){return r.a(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this,e.next=3,this.alertCtrl.create({subHeader:"confirm",message:"Add "+this.message.text+" to item "+t.title,buttons:[{text:"cancel",role:"cancel",handler:function(){console.log("Cancel clicked")}},{text:"yes",handler:function(){n.chatsManager.initChat(t).then((function(e){var t=e.addMessageToLeitner(n.message);r.chatsManager.databaseManager.addMessage(e,t),e.unreadMessagesNumber++,r.message.setShowOptionMenu(!1),r.chatsManager.save(e)})).then((function(){r.view.dismiss()}))}}]});case 3:e.sent.present();case 4:case"end":return e.stop()}}),e,this)})))}}]),e}()},Kqap:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new o(e,t,n))}}var o=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return _createClass(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(r.a)},L8C7:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function e(){_classCallCheck(this,e)}},LKtr:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function e(t){_classCallCheck(this,e),this.http=t,this.selectedTab=0,console.log("Hello TabsManagerProvider Provider")}},LRne:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("z+Ro"),i=n("yCtX"),o=n("jZKg");function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t[t.length-1];return Object(r.a)(a)?(t.pop(),Object(o.a)(t,a)):Object(i.a)(t)}},Lhse:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},Lq6m:function(e,t,n){"use strict";var r=n("KOl+");n.d(t,"a",(function(){return i}));var i=function(){function e(){}return e.installed=function(){return!0===Object(r.a)(this.pluginRef)},e.getPlugin=function(){return"undefined"!=typeof window?function(e,t){for(var n=t.split("."),r=e,i=0;i<n.length;i++){if(!r)return null;r=r[n[i]]}return r}(window,this.pluginRef):null},e.getPluginName=function(){return this.pluginName},e.getPluginRef=function(){return this.pluginRef},e.getPluginInstallName=function(){return this.plugin},e.getSupportedPlatforms=function(){return this.platforms},e.pluginName="",e.pluginRef="",e.plugin="",e.repo="",e.platforms=[],e.install="",e}()},MF7w:function(e,t,n){"use strict";n("W7t7");var r=n("zI0Y"),i=n("FxvK"),o=n("i9lY"),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return n}(r.a),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return n}(r.a);n.d(t,"a",(function(){return l}));var l=function(){function e(t){_classCallCheck(this,e),this.wordsDatabaseMgr=t,this.words=[],this.words=[]}return _createClass(e,[{key:"getSuggestions",value:function(e){return this.wordsDatabaseMgr.getSuggestions(e)}},{key:"saveWord",value:function(e){this.wordsDatabaseMgr.insert(e)}},{key:"hasEnoughWordsSuggestions",value:function(){var e=this;return new Promise((function(t){e.wordsDatabaseMgr.getRowNumbers().then((function(e){t(e>1e3)}))}))}},{key:"createWord",value:function(e){var t;switch(e.wordType){case r.a.possibleTypes.noun:t=new i.a(e);break;case r.a.possibleTypes.verb:t=new o.a(e);break;case r.a.possibleTypes.adverb:t=new s(e);break;case r.a.possibleTypes.adjective:t=new a(e)}return t.setWordType(e.wordType),t}},{key:"findWordType",value:function(e){var t;return(t=this.isNoun(e)?new i.a(e):this.isVerb()?new o.a(e):new r.a(e)).setUserID(e.userID),t}},{key:"isNoun",value:function(e){return this.hasArtikel(e)&&this.hasPlural(e)&&!this.isNotFound(e)}},{key:"hasArtikel",value:function(e){return"n"==e.artikel||"m"==e.artikel||"f"==e.artikel}},{key:"hasPlural",value:function(e){return e.plural&&e.plural.length>2}},{key:"isNotFound",value:function(e){return e.translation&&0==e.translation.length}},{key:"isPhrase",value:function(){}},{key:"isVerb",value:function(){return!0}}]),e}()},MKJQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"P",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"Q",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"R",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"S",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"T",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"V",(function(){return v})),n.d(t,"g",(function(){return g})),n.d(t,"U",(function(){return m})),n.d(t,"h",(function(){return y})),n.d(t,"W",(function(){return b})),n.d(t,"i",(function(){return k})),n.d(t,"X",(function(){return _})),n.d(t,"j",(function(){return C})),n.d(t,"Y",(function(){return w})),n.d(t,"k",(function(){return S})),n.d(t,"bb",(function(){return O})),n.d(t,"l",(function(){return x})),n.d(t,"Z",(function(){return E})),n.d(t,"m",(function(){return T})),n.d(t,"ab",(function(){return M})),n.d(t,"n",(function(){return A})),n.d(t,"cb",(function(){return I})),n.d(t,"o",(function(){return P})),n.d(t,"db",(function(){return D})),n.d(t,"p",(function(){return N})),n.d(t,"eb",(function(){return j})),n.d(t,"q",(function(){return R})),n.d(t,"fb",(function(){return L})),n.d(t,"r",(function(){return F})),n.d(t,"hb",(function(){return B})),n.d(t,"s",(function(){return V})),n.d(t,"gb",(function(){return H})),n.d(t,"t",(function(){return z})),n.d(t,"ib",(function(){return $})),n.d(t,"u",(function(){return q})),n.d(t,"jb",(function(){return U})),n.d(t,"v",(function(){return W})),n.d(t,"kb",(function(){return G})),n.d(t,"w",(function(){return X})),n.d(t,"mb",(function(){return J})),n.d(t,"x",(function(){return Q})),n.d(t,"lb",(function(){return Z})),n.d(t,"y",(function(){return Y})),n.d(t,"nb",(function(){return K})),n.d(t,"z",(function(){return ee})),n.d(t,"pb",(function(){return te})),n.d(t,"A",(function(){return ne})),n.d(t,"ob",(function(){return re})),n.d(t,"B",(function(){return ie})),n.d(t,"qb",(function(){return oe})),n.d(t,"C",(function(){return ae})),n.d(t,"sb",(function(){return se})),n.d(t,"D",(function(){return le})),n.d(t,"rb",(function(){return ue})),n.d(t,"E",(function(){return ce})),n.d(t,"ub",(function(){return he})),n.d(t,"F",(function(){return fe})),n.d(t,"tb",(function(){return de})),n.d(t,"G",(function(){return pe})),n.d(t,"vb",(function(){return ve})),n.d(t,"H",(function(){return ge})),n.d(t,"wb",(function(){return me})),n.d(t,"I",(function(){return ye})),n.d(t,"xb",(function(){return be})),n.d(t,"J",(function(){return ke})),n.d(t,"yb",(function(){return _e})),n.d(t,"K",(function(){return Ce})),n.d(t,"zb",(function(){return we})),n.d(t,"L",(function(){return Se})),n.d(t,"Ab",(function(){return Oe})),n.d(t,"M",(function(){return xe})),n.d(t,"Bb",(function(){return Ee})),n.d(t,"N",(function(){return Te})),n.d(t,"Cb",(function(){return Me})),n.d(t,"O",(function(){return Ae})),n.d(t,"Db",(function(){return Ie}));var r=n("8Y7J");n("sZkV"),n("SVse"),n("iInd");var i=r.qb({encapsulation:2,styles:[],data:{}});function o(e){return r.Nb(2,[r.Db(null,0)],null,null)}var a=r.qb({encapsulation:2,styles:[],data:{}});function s(e){return r.Nb(2,[r.Db(null,0)],null,null)}var l=r.qb({encapsulation:2,styles:[],data:{}});function u(e){return r.Nb(2,[r.Db(null,0)],null,null)}var c=r.qb({encapsulation:2,styles:[],data:{}});function h(e){return r.Nb(2,[r.Db(null,0)],null,null)}var f=r.qb({encapsulation:2,styles:[],data:{}});function d(e){return r.Nb(2,[r.Db(null,0)],null,null)}var p=r.qb({encapsulation:2,styles:[],data:{}});function v(e){return r.Nb(2,[r.Db(null,0)],null,null)}var g=r.qb({encapsulation:2,styles:[],data:{}});function m(e){return r.Nb(2,[r.Db(null,0)],null,null)}var y=r.qb({encapsulation:2,styles:[],data:{}});function b(e){return r.Nb(2,[r.Db(null,0)],null,null)}var k=r.qb({encapsulation:2,styles:[],data:{}});function _(e){return r.Nb(2,[r.Db(null,0)],null,null)}var C=r.qb({encapsulation:2,styles:[],data:{}});function w(e){return r.Nb(2,[r.Db(null,0)],null,null)}var S=r.qb({encapsulation:2,styles:[],data:{}});function O(e){return r.Nb(2,[r.Db(null,0)],null,null)}var x=r.qb({encapsulation:2,styles:[],data:{}});function E(e){return r.Nb(2,[r.Db(null,0)],null,null)}var T=r.qb({encapsulation:2,styles:[],data:{}});function M(e){return r.Nb(2,[r.Db(null,0)],null,null)}var A=r.qb({encapsulation:2,styles:[],data:{}});function I(e){return r.Nb(2,[r.Db(null,0)],null,null)}var P=r.qb({encapsulation:2,styles:[],data:{}});function D(e){return r.Nb(2,[r.Db(null,0)],null,null)}var N=r.qb({encapsulation:2,styles:[],data:{}});function j(e){return r.Nb(2,[r.Db(null,0)],null,null)}var R=r.qb({encapsulation:2,styles:[],data:{}});function L(e){return r.Nb(2,[r.Db(null,0)],null,null)}var F=r.qb({encapsulation:2,styles:[],data:{}});function B(e){return r.Nb(2,[r.Db(null,0)],null,null)}var V=r.qb({encapsulation:2,styles:[],data:{}});function H(e){return r.Nb(2,[r.Db(null,0)],null,null)}var z=r.qb({encapsulation:2,styles:[],data:{}});function $(e){return r.Nb(2,[r.Db(null,0)],null,null)}var q=r.qb({encapsulation:2,styles:[],data:{}});function U(e){return r.Nb(2,[r.Db(null,0)],null,null)}var W=r.qb({encapsulation:2,styles:[],data:{}});function G(e){return r.Nb(2,[r.Db(null,0)],null,null)}var X=r.qb({encapsulation:2,styles:[],data:{}});function J(e){return r.Nb(2,[r.Db(null,0)],null,null)}var Q=r.qb({encapsulation:2,styles:[],data:{}});function Z(e){return r.Nb(2,[r.Db(null,0)],null,null)}var Y=r.qb({encapsulation:2,styles:[],data:{}});function K(e){return r.Nb(2,[r.Db(null,0)],null,null)}var ee=r.qb({encapsulation:2,styles:[],data:{}});function te(e){return r.Nb(2,[r.Db(null,0)],null,null)}var ne=r.qb({encapsulation:2,styles:[],data:{}});function re(e){return r.Nb(2,[r.Db(null,0)],null,null)}var ie=r.qb({encapsulation:2,styles:[],data:{}});function oe(e){return r.Nb(2,[r.Db(null,0)],null,null)}var ae=r.qb({encapsulation:2,styles:[],data:{}});function se(e){return r.Nb(2,[r.Db(null,0)],null,null)}var le=r.qb({encapsulation:2,styles:[],data:{}});function ue(e){return r.Nb(2,[r.Db(null,0)],null,null)}var ce=r.qb({encapsulation:2,styles:[],data:{}});function he(e){return r.Nb(2,[r.Db(null,0)],null,null)}var fe=r.qb({encapsulation:2,styles:[],data:{}});function de(e){return r.Nb(2,[r.Db(null,0)],null,null)}var pe=r.qb({encapsulation:2,styles:[],data:{}});function ve(e){return r.Nb(2,[r.Db(null,0)],null,null)}var ge=r.qb({encapsulation:2,styles:[],data:{}});function me(e){return r.Nb(2,[r.Db(null,0)],null,null)}var ye=r.qb({encapsulation:2,styles:[],data:{}});function be(e){return r.Nb(2,[r.Db(null,0)],null,null)}var ke=r.qb({encapsulation:2,styles:[],data:{}});function _e(e){return r.Nb(2,[r.Db(null,0)],null,null)}var Ce=r.qb({encapsulation:2,styles:[],data:{}});function we(e){return r.Nb(2,[r.Db(null,0)],null,null)}var Se=r.qb({encapsulation:2,styles:[],data:{}});function Oe(e){return r.Nb(2,[r.Db(null,0)],null,null)}var xe=r.qb({encapsulation:2,styles:[],data:{}});function Ee(e){return r.Nb(2,[r.Db(null,0)],null,null)}var Te=r.qb({encapsulation:2,styles:[],data:{}});function Me(e){return r.Nb(2,[r.Db(null,0)],null,null)}var Ae=r.qb({encapsulation:2,styles:[],data:{}});function Ie(e){return r.Nb(2,[r.Db(null,0)],null,null)}},NJ4a:function(e,t,n){"use strict";function r(e){setTimeout((function(){throw e}),0)}n.d(t,"a",(function(){return r}))},NXyV:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("HDdC"),i=n("Cfvw"),o=n("EY2u");function a(e){return new r.a((function(t){var n;try{n=e()}catch(r){return void t.error(r)}return(n?Object(i.a)(n):Object(o.b)()).subscribe(t)}))}},PJj0:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("k82s"),n("GAbP");var r=function(){function e(t,n,r,i,o){var a=this;_classCallCheck(this,e),this.http=t,this.platform=n,this.databaseManagerProvider=r,this.translateService=i,this.localNotifications=o,this.platform.is("cordova")&&this.localNotifications.hasPermission().then((function(e){console.log("permission",e),a.initLocalNotifications()}))}return _createClass(e,[{key:"initLocalNotifications",value:function(){var e=this;this.localNotifications.clear(300).then((function(t){e.setNotoficationToUseApp()}))}},{key:"updateLeitnerNotificationsSchedule",value:function(){var e=this;this.localNotifications.clearAll().then((function(){e.databaseManagerProvider.getFutureMessages().then((function(t){e.translateService.get("NOTIFICATIONS.Leitner.remember").subscribe((function(n){var r,i=n,o=_createForOfIteratorHelper(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.reviewTime=e.refineMessageReviewTime(a.reviewTime),i+=a.text+"\n",e.localNotifications.schedule({id:1,text:i,led:"00FF99",trigger:{at:new Date(a.reviewTime)},icon:"res://img/icon.png",sound:"file://sound.mp3",data:{secret:a.messageID}})}}catch(s){o.e(s)}finally{o.f()}})),e.setNotoficationToUseApp()}))}))}},{key:"refineMessageReviewTime",value:function(e){return e.split(" ")[0]+" 15:16:00"}},{key:"setNotoficationToUseApp",value:function(){var e=this;this.translateService.get("NOTIFICATIONS.App.remember").subscribe((function(t){e.localNotifications.schedule({id:300,text:t,led:"00FF99",trigger:{at:new Date((new Date).getTime()+210900200)},icon:"file://assets/img/icon.png",smallIcon:"res://iconfree",data:{secret:"2222"}})}))}},{key:"setNotificationForOneMinute",value:function(){this.localNotifications.schedule({id:1,text:"there are new words like \u0633\u0639\u06cc\u062f",led:"00FF99",trigger:{at:new Date((new Date).getTime()+9e3)},smallIcon:"res://img/icon.png",data:{secret:"2222"}})}},{key:"setEveryMinuteNotification",value:function(){this.localNotifications.schedule({text:"Delayed ILocalNotification",trigger:{at:new Date((new Date).getTime()+16e3)},led:"FF0000",sound:null}),console.log("local notification set for next 3 seconds")}},{key:"initLocalNotificationsExamples",value:function(){this.localNotifications.schedule({id:1,text:"Single ILocalNotification",sound:"file://sound.mp3",data:{secret:"2222"}}),this.localNotifications.schedule([{id:1,text:"Multi ILocalNotification 1",sound:"file://sound.mp3",data:{secret:"2222"}},{id:2,title:"Local ILocalNotification Example",text:"Multi ILocalNotification 2",icon:"http://example.com/icon.png"}]),this.localNotifications.schedule({text:"Delayed ILocalNotification",led:"FF0000",sound:"file://sound.mp3"})}}]),e}()},PLvT:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t,n,r,a){return o(e[1],t[1],n[1],r[1],a).map((function(o){return i(e[0],t[0],n[0],r[0],o)}))},i=function(e,t,n,r,i){return i*(3*t*Math.pow(i-1,2)+i*(-3*n*i+3*n+r*i))-e*Math.pow(i-1,3)},o=function(e,t,n,r,i){return a((r-=i)-3*(n-=i)+3*(t-=i)-(e-=i),3*n-6*t+3*e,3*t-3*e,e).filter((function(e){return e>=0&&e<=1}))},a=function(e,t,n,r){if(0===e)return function(e,t,n){var r=t*t-4*e*n;return r<0?[]:[(-t+Math.sqrt(r))/(2*e),(-t-Math.sqrt(r))/(2*e)]}(t,n,r);var i=(3*(n/=e)-(t/=e)*t)/3,o=(2*t*t*t-9*t*n+27*(r/=e))/27;if(0===i)return[Math.pow(-o,1/3)];if(0===o)return[Math.sqrt(-i),-Math.sqrt(-i)];var a=Math.pow(o/2,2)+Math.pow(i/3,3);if(0===a)return[Math.pow(o/2,.5)-t/3];if(a>0)return[Math.pow(-o/2+Math.sqrt(a),1/3)-Math.pow(o/2+Math.sqrt(a),1/3)-t/3];var s=Math.sqrt(Math.pow(-i/3,3)),l=Math.acos(-o/(2*Math.sqrt(Math.pow(-i/3,3)))),u=2*Math.pow(s,1/3);return[u*Math.cos(l/3)-t/3,u*Math.cos((l+2*Math.PI)/3)-t/3,u*Math.cos((l+4*Math.PI)/3)-t/3]}},PQ8F:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){try{if(e instanceof function(){return function e(t){_classCallCheck(this,e),this.value=t}}())return e.value;if(!a()||"string"!=typeof e||""===e)return e;var t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,l.forEach((function(e){for(var n=t.querySelectorAll(e),r=n.length-1;r>=0;r--){var a=n[r];a.parentNode?a.parentNode.removeChild(a):t.removeChild(a);for(var s=o(a),l=0;l<s.length;l++)i(s[l])}}));for(var r=o(t),s=0;s<r.length;s++)i(r[s]);var u=document.createElement("div");u.appendChild(t);var c=u.querySelector("div");return null!==c?c.innerHTML:u.innerHTML}catch(h){return console.error(h),""}},i=function e(t){if(!t.nodeType||1===t.nodeType){for(var n=t.attributes.length-1;n>=0;n--){var r=t.attributes.item(n),i=r.name;if(s.includes(i.toLowerCase())){var a=r.value;null!=a&&a.toLowerCase().includes("javascript:")&&t.removeAttribute(i)}else t.removeAttribute(i)}for(var l=o(t),u=0;u<l.length;u++)e(l[u])}},o=function(e){return null!=e.children?e.children:e.childNodes},a=function(){var e=window,t=e&&e.Ionic&&e.Ionic.config;return!t||(t.get?t.get("sanitizerEnabled",!0):!0===t.sanitizerEnabled||void 0===t.sanitizerEnabled)},s=["class","id","href","src","name","slot"],l=["script","style","iframe","meta","link","object","embed"]},QA36:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("mrSG"),i=(n("/qZA"),n("EGUZ"),n("tAnt")),o=(n("olg3"),n("2IJ5"),n("sUqe"));n("0+M4");var a=function(){function e(t,n,r,i,a,s,l){var u=this;_classCallCheck(this,e),this.socketManager=t,this.consoleDialog=n,this.storageManager=r,this.userManager=i,this.alertCtrl=a,this.events=s,this.translateService=l,this.collectionStorageName="collectionStorage",this.lang="fa",this.collections=[],s.subscribe(o.b.UpdateCollections,(function(e,t){u.socketManager.queryPro(o.a.GetCollections,{},u,u.userManager.user.getMainAccessToken())})),this.storageManager.get("lang").then((function(e){null!=e&&(u.lang=e),u.loadCollectionsFromStorage()})),s.subscribe(o.c.Connected,(function(e,t){u.storageManager.get("lang").then((function(e){u.lang=e,u.loadCollectionsFromInternet()}))}))}return _createClass(e,[{key:"handleMessage",value:function(e){var t=this,n=JSON.parse(e).msg;this.collections.length=0,this.storageManager.get("lang").then((function(e){var r,o=_createForOfIteratorHelper(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.cloud=!0;var s=new i.a(a,e);s.setLang(e),t.collections.push(s)}}catch(l){o.e(l)}finally{o.f()}t.save()}))}},{key:"changeLanguage",value:function(e){var t,n=_createForOfIteratorHelper(this.collections);try{for(n.s();!(t=n.n()).done;){t.value.setLang(e)}}catch(r){n.e(r)}finally{n.f()}}},{key:"save",value:function(){this.storageManager.set(this.collectionStorageName,this.collections)}},{key:"loadCollectionsFromInternet",value:function(){this.socketManager.queryPro(o.a.GetCollections,{},this,this.userManager.user.getMainAccessToken()),console.log("try loading from internet",this.socketManager.isConnected())}},{key:"loadCollectionsFromStorage",value:function(){var e=this,t=this;this.storageManager.get(this.collectionStorageName).then((function(n){if(null==n||0==n.length||null===n)e.loadCollectionsFromInternet();else try{Object.keys(n).forEach((function(e){var r=new i.a(n[e]);r.setLang(t.lang),t.collections.push(r)}))}catch(r){console.log(r),e.loadCollectionsFromInternet()}}))}},{key:"addConfirm",value:function(e){var t,n,i,o,a=this;return this.translateService.get("TITLE.confirm").subscribe((function(e){t=e})),this.translateService.get("BUTTONS.cancel").subscribe((function(e){n=e})),this.translateService.get("BUTTONS.yes").subscribe((function(e){i=e})),this.translateService.get("CONTENT.Collection.addMessage").subscribe((function(e){o=e})),new Promise((function(e,s){return r.a(a,void 0,void 0,regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.alertCtrl.create({subHeader:t,message:o,buttons:[{text:n,role:"cancel",handler:function(){e(!1)}},{text:i,handler:function(){e(!0)}}]});case 2:r.sent.present();case 3:case"end":return r.stop()}}),r,this)})))}))}}]),e}()},QQfA:function(e,t,n){"use strict";n.d(t,"a",(function(){return L})),n.d(t,"c",(function(){return M})),n.d(t,"d",(function(){return T})),n.d(t,"f",(function(){return j})),n.d(t,"b",(function(){return w})),n.d(t,"g",(function(){return C})),n.d(t,"e",(function(){return V})),n.d(t,"h",(function(){return F})),n.d(t,"i",(function(){return B}));var r=n("KCVW"),i=n("hOhj"),o=n("SVse"),a=n("8Y7J"),s=n("XNiG"),l=n("quSY"),u=n("HDdC"),c=n("VRyK"),h=n("IzEk"),f=n("1G5W"),d=n("/HVE"),p=n("zMNK");n("dvZr");var v=function(){function e(t,n){_classCallCheck(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return _createClass(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Object(r.c)(-this._previousScrollPosition.left),e.style.top=Object(r.c)(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,r=t.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),t.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.scrollBehavior=r,n.scrollBehavior=i}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}();function g(){return Error("Scroll strategy has already been attached.")}var m=function(){function e(t,n,r,i){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=r,this._config=i,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run((function(){return o._overlayRef.detach()}))}}return _createClass(e,[{key:"attach",value:function(e){if(this._overlayRef)throw g();this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe((function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()}))):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),y=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function b(e,t){return t.some((function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right}))}function k(e,t){return t.some((function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right}))}var _=function(){function e(t,n,r,i){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=r,this._config=i,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){if(this._overlayRef)throw g();this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),r=n.width,i=n.height;b(t,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(e.disable(),e._ngZone.run((function(){return e._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),C=function(){var e=function e(t,n,r,i){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=r,this.noop=function(){return new y},this.close=function(e){return new m(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new v(o._viewportRuler,o._document)},this.reposition=function(e){return new _(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=i};return e.ngInjectableDef=Object(a.Qb)({factory:function(){return new e(Object(a.Rb)(i.a),Object(a.Rb)(i.d),Object(a.Rb)(a.x),Object(a.Rb)(o.d))},token:e,providedIn:"root"}),e}(),w=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new y,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];void 0!==t[i]&&(this[i]=t[i])}},S=function e(t,n,r,i,o){_classCallCheck(this,e),this.offsetX=r,this.offsetY=i,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY},O=function e(t,n){_classCallCheck(this,e),this.connectionPair=t,this.scrollableViewProperties=n};function x(e,t){if("top"!==t&&"bottom"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid ".concat(e,' "').concat(t,'". Expected "top", "bottom" or "center".'))}function E(e,t){if("start"!==t&&"end"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid ".concat(e,' "').concat(t,'". Expected "start", "end" or "center".'))}var T=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this._attachedOverlays=[],this._keydownListener=function(e){for(var t=n._attachedOverlays,r=t.length-1;r>-1;r--)if(t[r]._keydownEventSubscriptions>0){t[r]._keydownEvents.next(e);break}},this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(e){this.remove(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),e}();return e.ngInjectableDef=Object(a.Qb)({factory:function(){return new e(Object(a.Rb)(o.d))},token:e,providedIn:"root"}),e}(),M=function(){var e=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){for(var e=this._document.getElementsByClassName("cdk-overlay-container"),t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t]);var n=this._document.createElement("div");n.classList.add("cdk-overlay-container"),this._document.body.appendChild(n),this._containerElement=n}}]),e}();return e.ngInjectableDef=Object(a.Qb)({factory:function(){return new e(Object(a.Rb)(o.d))},token:e,providedIn:"root"}),e}(),A=function(){function e(t,n,r,i,o,a,c,h){var f=this;_classCallCheck(this,e),this._portalOutlet=t,this._host=n,this._pane=r,this._config=i,this._ngZone=o,this._keyboardDispatcher=a,this._document=c,this._location=h,this._backdropElement=null,this._backdropClick=new s.a,this._attachments=new s.a,this._detachments=new s.a,this._locationChanges=l.a.EMPTY,this._backdropClickHandler=function(e){return f._backdropClick.next(e)},this._keydownEventsObservable=new u.a((function(e){var t=f._keydownEvents.subscribe(e);return f._keydownEventSubscriptions++,function(){t.unsubscribe(),f._keydownEventSubscriptions--}})),this._keydownEvents=new s.a,this._keydownEventSubscriptions=0,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}return _createClass(e,[{key:"attach",value:function(e){var t=this,n=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Object(h.a)(1)).subscribe((function(){t.hasAttached()&&t.updatePosition()})),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe((function(){return t.dispose()}))),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),e}}},{key:"dispose",value:function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick.asObservable()}},{key:"attachments",value:function(){return this._attachments.asObservable()}},{key:"detachments",value:function(){return this._detachments.asObservable()}},{key:"keydownEvents",value:function(){return this._keydownEventsObservable}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign({},this._config,e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign({},this._config,{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=Object(r.c)(this._config.width),e.height=Object(r.c)(this._config.height),e.minWidth=Object(r.c)(this._config.minWidth),e.minHeight=Object(r.c)(this._config.minHeight),e.maxWidth=Object(r.c)(this._config.maxWidth),e.maxHeight=Object(r.c)(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"auto":"none"}},{key:"_attachBackdrop",value:function(){var e=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){e._backdropElement&&e._backdropElement.classList.add("cdk-overlay-backdrop-showing")}))})):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e,t=this,n=this._backdropElement;if(n){var r=function r(){n&&(n.removeEventListener("click",t._backdropClickHandler),n.removeEventListener("transitionend",r),n.parentNode&&n.parentNode.removeChild(n)),t._backdropElement==n&&(t._backdropElement=null),t._config.backdropClass&&t._toggleClasses(n,t._config.backdropClass,!1),clearTimeout(e)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular((function(){n.addEventListener("transitionend",r)})),n.style.pointerEvents="none",e=this._ngZone.runOutsideAngular((function(){return setTimeout(r,500)}))}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;Object(r.a)(t).forEach((function(e){e&&(n?i.add(e):i.remove(e))}))}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular((function(){var t=e._ngZone.onStable.asObservable().pipe(Object(f.a)(Object(c.a)(e._attachments,e._detachments))).subscribe((function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())}))}))}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}},{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}}]),e}(),I=function(){function e(t,n,r,i,o){_classCallCheck(this,e),this._viewportRuler=n,this._document=r,this._platform=i,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new s.a,this._resizeSubscription=l.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}return _createClass(e,[{key:"attach",value:function(e){var t=this;if(this._overlayRef&&e!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe((function(){t._isInitialRender=!0,t.apply()}))}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,r=this._overlayRect,i=this._viewportRect,o=[],a=_createForOfIteratorHelper(this._preferredPositions);try{for(a.s();!(t=a.n()).done;){var s=t.value,l=this._getOriginPoint(n,s),u=this._getOverlayPoint(l,r,s),c=this._getOverlayFit(u,r,i,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,l);this._canFitWithFlexibleDimensions(c,u,i)?o.push({position:s,origin:l,overlayRect:r,boundingBoxRect:this._calculateBoundingBoxRect(l,s)}):(!e||e.overlayFit.visibleArea<c.visibleArea)&&(e={overlayFit:c,overlayPoint:u,originPoint:l,position:s,overlayRect:r})}}catch(m){a.e(m)}finally{a.f()}if(o.length){var h,f=null,d=-1,p=_createForOfIteratorHelper(o);try{for(p.s();!(h=p.n()).done;){var v=h.value,g=v.boundingBoxRect.width*v.boundingBoxRect.height*(v.position.weight||1);g>d&&(d=g,f=v)}}catch(m){p.e(m)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&P(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var r=this._isRtl()?e.right:e.left,i=this._isRtl()?e.left:e.right;n="start"==t.originX?r:i}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var r,i;return r="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,i="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+r,y:e.y+i}}},{key:"_getOverlayFit",value:function(e,t,n,r){var i=e.x,o=e.y,a=this._getOffset(r,"x"),s=this._getOffset(r,"y");a&&(i+=a),s&&(o+=s);var l=0-o,u=o+t.height-n.height,c=this._subtractOverflows(t.width,0-i,i+t.width-n.width),h=this._subtractOverflows(t.height,l,u),f=c*h;return{visibleArea:f,isCompletelyWithinViewport:t.width*t.height===f,fitsInViewportVertically:h===t.height,fitsInViewportHorizontally:c==t.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var r=n.bottom-t.y,i=n.right-t.x,o=this._overlayRef.getConfig().minHeight,a=this._overlayRef.getConfig().minWidth,s=e.fitsInViewportHorizontally||null!=a&&a<=i;return(e.fitsInViewportVertically||null!=o&&o<=r)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var r,i,o=this._viewportRect,a=Math.max(e.x+t.width-o.right,0),s=Math.max(e.y+t.height-o.bottom,0),l=Math.max(o.top-n.top-e.y,0),u=Math.max(o.left-n.left-e.x,0);return r=t.width<=o.width?u||-a:e.x<this._viewportMargin?o.left-n.left-e.x:0,i=t.height<=o.height?l||-s:e.y<this._viewportMargin?o.top-n.top-e.y:0,this._previousPushAmount={x:r,y:i},{x:e.x+r,y:e.y+i}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),r=new O(e,n);this._positionChanges.next(r)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),r=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var i=0;i<n.length;i++)n[i].style.transformOrigin="".concat(t," ").concat(r)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,r,i,o,a,s,l=this._viewportRect,u=this._isRtl();if("top"===t.overlayY)r=e.y,n=l.height-r+this._viewportMargin;else if("bottom"===t.overlayY)i=l.height-e.y+2*this._viewportMargin,n=l.height-i+this._viewportMargin;else{var c=Math.min(l.bottom-e.y+l.top,e.y),h=this._lastBoundingBoxSize.height;n=2*c,r=e.y-c,n>h&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.y-h/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=l.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)a=e.x,o=l.right-e.x;else{var f=Math.min(l.right-e.x+l.left,e.x),d=this._lastBoundingBoxSize.width;o=2*f,a=e.x-f,o>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-d/2)}return{top:r,left:a,bottom:i,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right="",i.width=i.height="100%";else{var o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=Object(r.c)(n.height),i.top=Object(r.c)(n.top),i.bottom=Object(r.c)(n.bottom),i.width=Object(r.c)(n.width),i.left=Object(r.c)(n.left),i.right=Object(r.c)(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(i.maxHeight=Object(r.c)(o)),a&&(i.maxWidth=Object(r.c)(a))}this._lastBoundingBoxSize=n,P(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){P(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){P(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={};if(this._hasExactPosition()){var r=this._viewportRuler.getViewportScrollPosition();P(n,this._getExactOverlayY(t,e,r)),P(n,this._getExactOverlayX(t,e,r))}else n.position="static";var i="",o=this._getOffset(t,"x"),a=this._getOffset(t,"y");o&&(i+="translateX(".concat(o,"px) ")),a&&(i+="translateY(".concat(a,"px)")),n.transform=i.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),P(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:null,bottom:null},o=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return o.y-=a,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":i.top=Object(r.c)(o.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:null,right:null},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":i.left=Object(r.c)(o.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(e){return e.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:k(e,n),isOriginOutsideView:b(e,n),isOverlayClipped:k(t,n),isOverlayOutsideView:b(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return e-Math.max(t,0)}),e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach((function(e){E("originX",e.originX),x("originY",e.originY),E("overlayX",e.overlayX),x("overlayY",e.overlayY)}))}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&Object(r.a)(e).forEach((function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))}))}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach((function(t){e._pane.classList.remove(t)})),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof a.k)return e.nativeElement.getBoundingClientRect();if(e instanceof HTMLElement)return e.getBoundingClientRect();var t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}},{key:"positions",get:function(){return this._preferredPositions}}]),e}();function P(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var D=function(){function e(t,n,r,i,o,a,s){_classCallCheck(this,e),this._preferredPositions=[],this._positionStrategy=new I(r,i,o,a,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n)}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,n,r){var i=new S(e,t,n,r);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}},{key:"_isRtl",get:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"onPositionChange",get:function(){return this._positionStrategy.positionChanges}},{key:"positions",get:function(){return this._preferredPositions}}]),e}(),N=function(){function e(){_classCallCheck(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return _createClass(e,[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig();e.position=this._cssPosition,e.marginLeft="100%"===n.width?"0":this._leftOffset,e.marginTop="100%"===n.height?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,"100%"===n.width?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems="100%"===n.height?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),j=function(){var e=function(){function e(t,n,r,i){_classCallCheck(this,e),this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=i}return _createClass(e,[{key:"global",value:function(){return new N}},{key:"connectedTo",value:function(e,t,n){return new D(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new I(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.ngInjectableDef=Object(a.Qb)({factory:function(){return new e(Object(a.Rb)(i.d),Object(a.Rb)(o.d),Object(a.Rb)(d.a),Object(a.Rb)(M))},token:e,providedIn:"root"}),e}(),R=0,L=function(){function e(t,n,r,i,o,a,s,l,u,c){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=i,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=l,this._directionality=u,this._location=c}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),r=this._createPortalOutlet(n),i=new w(e);return i.direction=i.direction||this._directionality.value,new A(r,t,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+R++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(a.g)),new p.d(e,this._componentFactoryResolver,this._appRef,this._injector)}}]),e}(),F=new a.o("cdk-connected-overlay-scroll-strategy");function B(e){return function(){return e.scrollStrategies.reposition()}}var V=function e(){_classCallCheck(this,e)}},"Rt+L":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("KOl+");function i(e,t,n,i){return i=Array.from(i),Object(r.e)(e,t,n).apply(this,i)}},SVse:function(e,t,n){"use strict";n.d(t,"z",(function(){return p})),n.d(t,"l",(function(){return g})),n.d(t,"m",(function(){return v})),n.d(t,"A",(function(){return m})),n.d(t,"c",(function(){return R})),n.d(t,"i",(function(){return k})),n.d(t,"j",(function(){return C})),n.d(t,"k",(function(){return S})),n.d(t,"n",(function(){return M})),n.d(t,"d",(function(){return L})),n.d(t,"b",(function(){return N})),n.d(t,"q",(function(){return j})),n.d(t,"y",(function(){return F})),n.d(t,"s",(function(){return B})),n.d(t,"t",(function(){return V})),n.d(t,"r",(function(){return H})),n.d(t,"v",(function(){return b})),n.d(t,"u",(function(){return y})),n.d(t,"x",(function(){return T})),n.d(t,"w",(function(){return E})),n.d(t,"p",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"h",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"o",(function(){return h})),n.d(t,"g",(function(){return l}));var r=n("8Y7J"),i=function e(){_classCallCheck(this,e)},o=new r.o("Location Initialized"),a=function e(){_classCallCheck(this,e)},s=new r.o("appBaseHref"),l=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._subject=new r.m,this._urlChangeListeners=[],this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=e.stripTrailingSlash(u(o)),this._platformStrategy.onPopState((function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})}))}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+e.normalizeQueryParams(n))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,u(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),r)}},{key:"replaceState",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),r)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this.subscribe((function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(e,t)}))}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}],[{key:"normalizeQueryParams",value:function(e){return e&&"?"!==e[0]?"?"+e:e}},{key:"joinWithSlash",value:function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}},{key:"stripTrailingSlash",value:function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}]),e}();function u(e){return e.replace(/\/index.html$/,"")}var c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",null!=r&&(i._baseHref=r),i}return _createClass(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=l.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(a),h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;if(_classCallCheck(this,n),(i=t.call(this))._platformLocation=e,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=r,_possibleConstructorReturn(i)}return _createClass(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return l.joinWithSlash(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+l.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(a),f=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),d=r.ub,p=new r.o("UseV4Plurals"),v=function e(){_classCallCheck(this,e)},g=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).locale=e,i.deprecatedPluralFn=r,i}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):d(t||this.locale)(e)){case f.Zero:return"zero";case f.One:return"one";case f.Two:return"two";case f.Few:return"few";case f.Many:return"many";default:return"other"}}}]),n}(v);function m(e,t){t=encodeURIComponent(t);var n,r=_createForOfIteratorHelper(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),a=_slicedToArray(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),s=a[0],l=a[1];if(s.trim()===t)return decodeURIComponent(l)}}catch(u){r.e(u)}finally{r.f()}return null}var y=function e(){_classCallCheck(this,e)},b=function(){function e(t,n,r,i){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._initialClasses=[]}return _createClass(e,[{key:"getValue",value:function(){return null}},{key:"setClass",value:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"setNgClass",value:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.xb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"applyChanges",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r.Kb)(e.item));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}}]),e}(),k=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"ngDoCheck",value:function(){this._delegate.applyChanges()}},{key:"klass",set:function(e){this._delegate.setClass(e)}},{key:"ngClass",set:function(e){this._delegate.setNgClass(e)}}]),n}(function(){var e=function(){function e(t){_classCallCheck(this,e),this._delegate=t}return _createClass(e,[{key:"getValue",value:function(){return this._delegate.getValue()}}]),e}();return e.ngDirectiveDef=void 0,e}()),_=function(){function e(t,n,r,i){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),C=function(){function e(t,n,r){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new _(null,t._ngForOf,-1,-1),i),a=new w(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(r);else{var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var l=new w(e,s);n.push(l)}}));for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var i=0,o=this._viewContainer.length;i<o;i++){var a=this._viewContainer.get(i);a.context.index=i,a.context.count=o,a.context.ngForOf=this._ngForOf}e.forEachIdentityChange((function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item}))}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}},{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",set:function(e){Object(r.W)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(e),". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information.")),this._trackByFn=e},get:function(){return this._trackByFn}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}(),w=function e(t,n){_classCallCheck(this,e),this.record=t,this.view=n},S=function(){function e(t,n){_classCallCheck(this,e),this._viewContainer=t,this._context=new O,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return _createClass(e,[{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}},{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){x("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){x("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}}]),e}(),O=function e(){_classCallCheck(this,e),this.$implicit=null,this.ngIf=null};function x(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Object(r.Kb)(t),"'."))}var E=function e(){_classCallCheck(this,e)},T=function(){function e(t,n,r){_classCallCheck(this,e),this._ngEl=t,this._differs=n,this._renderer=r}return _createClass(e,[{key:"getValue",value:function(){return null}},{key:"setNgStyle",value:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}},{key:"applyChanges",value:function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}},{key:"_applyChanges",value:function(e){var t=this;e.forEachRemovedItem((function(e){return t._setStyle(e.key,null)})),e.forEachAddedItem((function(e){return t._setStyle(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._setStyle(e.key,e.currentValue)}))}},{key:"_setStyle",value:function(e,t){var n=_slicedToArray(e.split("."),2),r=n[0],i=n[1];null!=(t=null!=t&&i?"".concat(t).concat(i):t)?this._renderer.setStyle(this._ngEl.nativeElement,r,t):this._renderer.removeStyle(this._ngEl.nativeElement,r)}}]),e}(),M=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"ngDoCheck",value:function(){this._delegate.applyChanges()}},{key:"ngStyle",set:function(e){this._delegate.setNgStyle(e)}}]),n}(function(){var e=function(){function e(t){_classCallCheck(this,e),this._delegate=t}return _createClass(e,[{key:"getValue",value:function(){return this._delegate.getValue()}}]),e}();return e.ngDirectiveDef=void 0,e}());function A(e,t){return Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(Object(r.Kb)(e),"'"))}var I=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),P=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"createSubscription",value:function(e,t){return e.then(t,(function(e){throw e}))}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),D=new I,N=function(){function e(t){_classCallCheck(this,e),this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):Object(r.Ab)(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.Q.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,(function(n){return t._updateLatestValue(e,n)}))}},{key:"_selectStrategy",value:function(t){if(Object(r.zb)(t))return P;if(Object(r.yb)(t))return D;throw A(e,t)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}(),j=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(t,n,r){if(null==t)return t;if(!this.supports(t))throw A(e,t);return t.slice(n,r)}},{key:"supports",value:function(e){return"string"==typeof e||Array.isArray(e)}}]),e}(),R=function e(){_classCallCheck(this,e)},L=new r.o("DocumentToken"),F="browser";function B(e){return e===F}function V(e){return"server"===e}var H=function(){var e=function e(){_classCallCheck(this,e)};return e.ngInjectableDef=Object(r.Qb)({token:e,providedIn:"root",factory:function(){return new z(Object(r.Rb)(L),window,Object(r.Rb)(r.l))}}),e}(),z=function(){function e(t,n,r){_classCallCheck(this,e),this.document=t,this.window=n,this.errorHandler=r,this.offset=function(){return[0,0]}}return _createClass(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var t=this.document.querySelector("#"+e);if(t)return void this.scrollToElement(t);var n=this.document.querySelector("[name='".concat(e,"']"));if(n)return void this.scrollToElement(n)}catch(r){this.errorHandler.handleError(r)}}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}]),e}()},SeVD:function(e,t,n){"use strict";var r=n("ngJS"),i=n("NJ4a"),o=n("Lhse"),a=n("kJWO"),s=n("I55L"),l=n("c2HN"),u=n("XoHu");n.d(t,"a",(function(){return c}));var c=function(e){if(e&&"function"==typeof e[a.a])return c=e,function(e){var t=c[a.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(s.a)(e))return Object(r.a)(e);if(Object(l.a)(e))return n=e,function(e){return n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,i.a),e};if(e&&"function"==typeof e[o.a])return t=e,function(e){for(var n=t[o.a]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e};var t,n,c,h=Object(u.a)(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(h," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}},SpAZ:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",(function(){return r}))},TBO2:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("J20c"),n("++lw"),n("iunF");var r=function(){function e(t,n,r,i,o,a,s){var l=this;_classCallCheck(this,e),this.chatsMgr=t,this.archiveMgr=n,this.navParams=r,this.navCtrl=i,this.settingsMgr=o,this.translateService=a,this.viewCtrl=s,this.actionDownloadItem="downloadItem",this.actionPrepareDownloadInformation="prepareDownloadInfo",this.allowedDownloadTimes=3,this.settingsDownloadedTimesKey="downloadedItemsNumber",this._isResult=!1,this.chat=this.navParams.get("chat"),this.prepareDownload(),this.settingsMgr.getPrimarySettings().then((function(e){e.isBayaPlus()&&(l.allowedDownloadTimes=599)}))}return _createClass(e,[{key:"isRtl",value:function(){return this.settingsMgr.isRtl()}},{key:"prepareDownload",value:function(){var e=this;this.showLoading(),this.chatsMgr.socketManager.asyncQuery(this.actionPrepareDownloadInformation,{chat:this.chat.getSimpleModel()}).then((function(t){e.hideLoading(),e.downloadUrl=t.getParam("downloadUrl"),e.downloadSize=t.getParam("downloadSize"),e.wordsCount=t.getParam("count"),e.time=t.getParam("time")}))}},{key:"showLoading",value:function(){this.isLoading=!0}},{key:"hideLoading",value:function(){this.isLoading=!1}},{key:"close",value:function(){this.viewCtrl.dismiss()}},{key:"download",value:function(){var e=this;this.settingsMgr.getPrimarySettings().then((function(t){var n=t.getParam(e.settingsDownloadedTimesKey);null==n&&(n=0),n<e.allowedDownloadTimes||t.isBayaPlus()?(e.isLoading=!0,e.startDownload().then((function(r){r?(t.setParam(e.settingsDownloadedTimesKey,++n),e.settingsMgr.savePrimarySetting(),e.setResult("\u062f\u0627\u0646\u0644\u0648\u062f \u06a9\u0631\u062f\u06cc\u0646"),e.showResult()):(e.setResult("\u0645\u0634\u06a9\u0644\u06cc \u067e\u06cc\u0634 \u0627\u0648\u0645\u062f"),e.showResult())}))):e.askForUpgrade()}))}},{key:"setResult",value:function(e){this.result=e}},{key:"showResult",value:function(){this.isLoading=!1,this._isResult=!0}},{key:"isDetails",value:function(){return!this.isLoading&&!this._isResult}},{key:"isResult",value:function(){return!this.isLoading&&this._isResult}},{key:"askForUpgrade",value:function(){this.navCtrl.navigateRoot("BayaPlusPage")}},{key:"startDownload",value:function(){var e=this;return new Promise((function(t){e.chatsMgr.socketManager.download(e.downloadUrl).then((function(n){var r=n.getParam("content");e.archiveMgr.databaseMgr.importSQL(r).then((function(){t(!0)})).catch((function(e){console.log("failed to import",e),t(!1)}))}))}))}},{key:"getIconName",value:function(){var e;switch(this.chat.type){case"dictionary":e="ios-bookmarks";break;case"news":e="ios-paper";break;case"partner":e="md-contacts";break;case"puzzle":e="ios-apps";break;case"idiom":e="ios-quote";break;case"quiz":case"artikelQuiz":case"imageQuiz":case"translationQuiz":e="ios-ribbon";break;case"leitner":e="ios-cube"}return e}}]),e}()},TSSN:function(e,t,n){"use strict";var r=n("8Y7J"),i=n("LRne"),o=n("VRyK"),a=n("HDdC"),s=n("GyhO"),l=n("IzEk"),u=n("w1tV"),c=n("lJxs"),h=n("128B");function f(e,t,n){return 0===n?[t]:(e.push(t),e)}var d=n("eIep");n.d(t,"g",(function(){return A})),n.d(t,"f",(function(){return p})),n.d(t,"m",(function(){return x})),n.d(t,"l",(function(){return E})),n.d(t,"j",(function(){return T})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return m})),n.d(t,"h",(function(){return w})),n.d(t,"d",(function(){return S})),n.d(t,"c",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"i",(function(){return M})),n.d(t,"k",(function(){return O}));var p=function e(){_classCallCheck(this,e)},v=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTranslation",value:function(e){return Object(i.a)({})}}]),n}(p),g=function e(){_classCallCheck(this,e)},m=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"handle",value:function(e){return e.key}}]),e}(),y=function e(){_classCallCheck(this,e)},b=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"compile",value:function(e,t){return e}},{key:"compileTranslations",value:function(e,t){return e}}]),n}(y);function k(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,r,i,o=typeof e;if(o==typeof t&&"object"==o){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(r in i=Object.create(null),e){if(!k(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&void 0!==t[r])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(r=0;r<n;r++)if(!k(e[r],t[r]))return!1;return!0}}return!1}function _(e){return null!=e}function C(e){return e&&"object"==typeof e&&!Array.isArray(e)}var w=function e(){_classCallCheck(this,e)},S=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).templateMatcher=/{{\s?([^{}\s]*)\s?}}/g,e}return _createClass(n,[{key:"interpolate",value:function(e,t){return"string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e}},{key:"getValue",value:function(e,t){var n=t.split(".");t="";do{t+=n.shift(),!_(e)||!_(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}},{key:"interpolateFunction",value:function(e,t){return e(t)}},{key:"interpolateString",value:function(e,t){var n=this;return t?e.replace(this.templateMatcher,(function(e,r){var i=n.getValue(t,r);return _(i)?i:e})):e}}]),n}(w),O=function e(){_classCallCheck(this,e),this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new r.m,this.onLangChange=new r.m,this.onDefaultLangChange=new r.m},x=new r.o("USE_STORE"),E=new r.o("USE_DEFAULT_LANG"),T=function(){function e(t,n,i,o,a){var s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];_classCallCheck(this,e),this.store=t,this.currentLoader=n,this.compiler=i,this.parser=o,this.missingTranslationHandler=a,this.useDefaultLang=s,this.isolate=l,this.pending=!1,this._onTranslationChange=new r.m,this._onLangChange=new r.m,this._onDefaultLangChange=new r.m,this._langs=[],this._translations={},this._translationRequests={}}return _createClass(e,[{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(this.defaultLang||(this.defaultLang=e),n.pipe(Object(l.a)(1)).subscribe((function(n){t.changeDefaultLang(e)}))):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return Object(i.a)(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(Object(l.a)(1)).subscribe((function(n){t.changeLang(e)})),n):(this.changeLang(e),Object(i.a)(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return void 0===this.translations[e]&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(Object(u.a)());return this.loadingTranslations=n.pipe(Object(l.a)(1),Object(c.a)((function(n){return t.compiler.compileTranslations(n,e)})),Object(u.a)()),this.loadingTranslations.subscribe((function(n){t.translations[e]=n,t.updateLangs(),t.pending=!1}),(function(e){t.pending=!1})),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=n&&this.translations[e]?function e(t,n){var r=Object.assign({},t);return C(t)&&C(n)&&Object.keys(n).forEach((function(i){C(n[i])&&i in t?r[i]=e(t[i],n[i]):Object.assign(r,_defineProperty({},i,n[i]))})),r}(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach((function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)}))}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var r;if(t instanceof Array){var a,s={},l=!1,u=_createForOfIteratorHelper(t);try{for(u.s();!(a=u.n()).done;){var d=a.value;s[d]=this.getParsedResult(e,d,n),"function"==typeof s[d].subscribe&&(l=!0)}}catch(k){u.e(k)}finally{u.f()}if(l){var p,v,g=_createForOfIteratorHelper(t);try{for(g.s();!(v=g.n()).done;){var m=v.value,y="function"==typeof s[m].subscribe?s[m]:Object(i.a)(s[m]);p=void 0===p?y:Object(o.a)(p,y)}}catch(k){g.e(k)}finally{g.f()}return p.pipe(Object(h.a)(f,[]),Object(c.a)((function(e){var n={};return e.forEach((function(e,r){n[t[r]]=e})),n})))}return s}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===r&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===r){var b={key:t,translateService:this};void 0!==n&&(b.interpolateParams=n),r=this.missingTranslationHandler.handle(b)}return void 0!==r?r:t}},{key:"get",value:function(e,t){var n=this;if(!_(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return a.a.create((function(r){var i=function(e){r.next(e),r.complete()},o=function(e){r.error(e)};n.loadingTranslations.subscribe((function(r){"function"==typeof(r=n.getParsedResult(r,e,t)).subscribe?r.subscribe(i,o):i(r)}),o)}));var r=this.getParsedResult(this.translations[this.currentLang],e,t);return"function"==typeof r.subscribe?r:Object(i.a)(r)}},{key:"stream",value:function(e,t){var n=this;if(!_(e)||!e.length)throw new Error('Parameter "key" required');return Object(s.a)(this.get(e,t),this.onLangChange.pipe(Object(d.a)((function(r){var o=n.getParsedResult(r.translations,e,t);return"function"==typeof o.subscribe?o:Object(i.a)(o)}))))}},{key:"instant",value:function(e,t){if(!_(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(void 0!==n.subscribe){if(e instanceof Array){var r={};return e.forEach((function(t,n){r[e[n]]=e[n]})),r}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang||this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return-1!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage).indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}},{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}}]),e}(),M=function(){function e(t,n){_classCallCheck(this,e),this.translate=t,this._ref=n,this.value=""}return _createClass(e,[{key:"updateValue",value:function(e,t,n){var r=this,i=function(t){r.value=void 0!==t?t:e,r.lastKey=e,r._ref.markForCheck()};if(n){var o=this.translate.getParsedResult(n,e,t);"function"==typeof o.subscribe?o.subscribe(i):i(o)}this.translate.get(e,t).subscribe(i)}},{key:"transform",value:function(e){var t,n=this;if(!e||0===e.length)return e;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(k(e,this.lastKey)&&k(i,this.lastParams))return this.value;if(_(i[0])&&i.length)if("string"==typeof i[0]&&i[0].length){var a=i[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{t=JSON.parse(a)}catch(s){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+i[0])}}else"object"!=typeof i[0]||Array.isArray(i[0])||(t=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,t),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe((function(r){n.lastKey&&r.lang===n.translate.currentLang&&(n.lastKey=null,n.updateValue(e,t,r.translations))}))),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe((function(r){n.lastKey&&(n.lastKey=null,n.updateValue(e,t,r.translations))}))),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe((function(){n.lastKey&&(n.lastKey=null,n.updateValue(e,t))}))),this.value}},{key:"_dispose",value:function(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}},{key:"ngOnDestroy",value:function(){this._dispose()}}]),e}(),A=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:p,useClass:v},t.compiler||{provide:y,useClass:b},t.parser||{provide:w,useClass:S},t.missingTranslationHandler||{provide:g,useClass:m},O,{provide:x,useValue:t.isolate},{provide:E,useValue:t.useDefaultLang},T]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:p,useClass:v},t.compiler||{provide:y,useClass:b},t.parser||{provide:w,useClass:S},t.missingTranslationHandler||{provide:g,useClass:m},{provide:x,useValue:t.isolate},{provide:E,useValue:t.useDefaultLang},T]}}}]),e}()},VRyK:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("HDdC"),i=n("z+Ro"),o=n("bHdf"),a=n("yCtX");function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var s=Number.POSITIVE_INFINITY,l=null,u=t[t.length-1];return Object(i.a)(u)?(l=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(s=t.pop())):"number"==typeof u&&(s=t.pop()),null===l&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(s)(Object(a.a)(t,l))}},W2O4:function(e,t,n){"use strict";n.d(t,"l",(function(){return j})),n.d(t,"m",(function(){return R})),n.d(t,"c",(function(){return o})),n.d(t,"j",(function(){return w})),n.d(t,"a",(function(){return O})),n.d(t,"h",(function(){return S})),n.d(t,"b",(function(){return f})),n.d(t,"i",(function(){return h})),n.d(t,"g",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return N})),n.d(t,"f",(function(){return L})),n.d(t,"k",(function(){return d})),n("8Y7J");var r=n("HDdC"),i=n("cUpR"),o=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}(),a=function(){var e={Get:0,Post:1,Put:2,Delete:3,Options:4,Head:5,Patch:6};return e[e.Get]="Get",e[e.Post]="Post",e[e.Put]="Put",e[e.Delete]="Delete",e[e.Options]="Options",e[e.Head]="Head",e[e.Patch]="Patch",e}(),s=function(){var e={Basic:0,Cors:1,Default:2,Error:3,Opaque:4};return e[e.Basic]="Basic",e[e.Cors]="Cors",e[e.Default]="Default",e[e.Error]="Error",e[e.Opaque]="Opaque",e}(),l=function(){var e={NONE:0,JSON:1,FORM:2,FORM_DATA:3,TEXT:4,BLOB:5,ARRAY_BUFFER:6};return e[e.NONE]="NONE",e[e.JSON]="JSON",e[e.FORM]="FORM",e[e.FORM_DATA]="FORM_DATA",e[e.TEXT]="TEXT",e[e.BLOB]="BLOB",e[e.ARRAY_BUFFER]="ARRAY_BUFFER",e}(),u=function(){var e={Text:0,Json:1,ArrayBuffer:2,Blob:3};return e[e.Text]="Text",e[e.Json]="Json",e[e.ArrayBuffer]="ArrayBuffer",e[e.Blob]="Blob",e}(),c=function(){function e(t){var n=this;_classCallCheck(this,e),this._headers=new Map,this._normalizedNames=new Map,t&&(t instanceof e?t.forEach((function(e,t){e.forEach((function(e){return n.append(t,e)}))})):Object.keys(t).forEach((function(e){var r=Array.isArray(t[e])?t[e]:[t[e]];n.delete(e),r.forEach((function(t){return n.append(e,t)}))})))}return _createClass(e,[{key:"append",value:function(e,t){var n=this.getAll(e);null===n?this.set(e,t):n.push(t)}},{key:"delete",value:function(e){var t=e.toLowerCase();this._normalizedNames.delete(t),this._headers.delete(t)}},{key:"forEach",value:function(e){var t=this;this._headers.forEach((function(n,r){return e(n,t._normalizedNames.get(r),t._headers)}))}},{key:"get",value:function(e){var t=this.getAll(e);return null===t?null:t.length>0?t[0]:null}},{key:"has",value:function(e){return this._headers.has(e.toLowerCase())}},{key:"keys",value:function(){return Array.from(this._normalizedNames.values())}},{key:"set",value:function(e,t){Array.isArray(t)?t.length&&this._headers.set(e.toLowerCase(),[t.join(",")]):this._headers.set(e.toLowerCase(),[t]),this.mayBeSetNormalizedName(e)}},{key:"values",value:function(){return Array.from(this._headers.values())}},{key:"toJSON",value:function(){var e=this,t={};return this._headers.forEach((function(n,r){var i=[];n.forEach((function(e){return i.push.apply(i,_toConsumableArray(e.split(",")))})),t[e._normalizedNames.get(r)]=i})),t}},{key:"getAll",value:function(e){return this.has(e)&&this._headers.get(e.toLowerCase())||null}},{key:"entries",value:function(){throw new Error('"entries" method is not implemented on Headers class')}},{key:"mayBeSetNormalizedName",value:function(e){var t=e.toLowerCase();this._normalizedNames.has(t)||this._normalizedNames.set(t,e)}}],[{key:"fromResponseHeaderString",value:function(t){var n=new e;return t.split("\n").forEach((function(e){var t=e.indexOf(":");if(t>0){var r=e.slice(0,t),i=e.slice(t+1).trim();n.set(r,i)}})),n}}]),e}(),h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,e);var n=t.body,r=t.status,i=t.headers,o=t.statusText,a=t.type,s=t.url;this.body=null!=n?n:null,this.status=null!=r?r:null,this.headers=null!=i?i:null,this.statusText=null!=o?o:null,this.type=null!=a?a:null,this.url=null!=s?s:null}return _createClass(e,[{key:"merge",value:function(t){return new e({body:t&&null!=t.body?t.body:this.body,status:t&&null!=t.status?t.status:this.status,headers:t&&null!=t.headers?t.headers:this.headers,statusText:t&&null!=t.statusText?t.statusText:this.statusText,type:t&&null!=t.type?t.type:this.type,url:t&&null!=t.url?t.url:this.url})}}]),e}(),f=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this,{status:200,statusText:"Ok",type:s.Default,headers:new c})}return n}(h),d=function e(){_classCallCheck(this,e)};function p(e){if("string"!=typeof e)return e;switch(e.toUpperCase()){case"GET":return a.Get;case"POST":return a.Post;case"PUT":return a.Put;case"DELETE":return a.Delete;case"OPTIONS":return a.Options;case"HEAD":return a.Head;case"PATCH":return a.Patch}throw new Error('Invalid request method. The method "'.concat(e,'" is not supported.'))}var v=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return g(e)}},{key:"encodeValue",value:function(e){return g(e)}}]),e}();function g(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var m=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new v;_classCallCheck(this,e),this.rawParams=t,this.queryEncoder=n,this.paramsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=new Map;return e.length>0&&e.split("&").forEach((function(e){var n=e.indexOf("="),r=_slicedToArray(-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)],2),i=r[0],o=r[1],a=t.get(i)||[];a.push(o),t.set(i,a)})),t}(t)}return _createClass(e,[{key:"clone",value:function(){var t=new e("",this.queryEncoder);return t.appendAll(this),t}},{key:"has",value:function(e){return this.paramsMap.has(e)}},{key:"get",value:function(e){var t=this.paramsMap.get(e);return Array.isArray(t)?t[0]:null}},{key:"getAll",value:function(e){return this.paramsMap.get(e)||[]}},{key:"set",value:function(e,t){if(null!=t){var n=this.paramsMap.get(e)||[];n.length=0,n.push(t),this.paramsMap.set(e,n)}else this.delete(e)}},{key:"setAll",value:function(e){var t=this;e.paramsMap.forEach((function(e,n){var r=t.paramsMap.get(n)||[];r.length=0,r.push(e[0]),t.paramsMap.set(n,r)}))}},{key:"append",value:function(e,t){if(null!=t){var n=this.paramsMap.get(e)||[];n.push(t),this.paramsMap.set(e,n)}}},{key:"appendAll",value:function(e){var t=this;e.paramsMap.forEach((function(e,n){for(var r=t.paramsMap.get(n)||[],i=0;i<e.length;++i)r.push(e[i]);t.paramsMap.set(n,r)}))}},{key:"replaceAll",value:function(e){var t=this;e.paramsMap.forEach((function(e,n){var r=t.paramsMap.get(n)||[];r.length=0;for(var i=0;i<e.length;++i)r.push(e[i]);t.paramsMap.set(n,r)}))}},{key:"toString",value:function(){var e=this,t=[];return this.paramsMap.forEach((function(n,r){n.forEach((function(n){return t.push(e.queryEncoder.encodeKey(r)+"="+e.queryEncoder.encodeValue(n))}))})),t.join("&")}},{key:"delete",value:function(e){this.paramsMap.delete(e)}}]),e}(),y=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"json",value:function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body}},{key:"text",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"legacy";if(this._body instanceof m)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(e){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: "+e)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()}},{key:"arrayBuffer",value:function(){return this._body instanceof ArrayBuffer?this._body:function(e){for(var t=new Uint16Array(e.length),n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t.buffer}(this.text())}},{key:"blob",value:function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")}}]),e}(),b=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._body=e.body,r.status=e.status,r.ok=r.status>=200&&r.status<=299,r.statusText=e.statusText,r.headers=e.headers,r.type=e.type,r.url=e.url,r}return _createClass(n,[{key:"toString",value:function(){return"Response with status: ".concat(this.status," ").concat(this.statusText," for URL: ").concat(this.url)}}]),n}(y),k=/^\)\]\}',?\n/,_=function(){function e(t,n,i){var o=this;_classCallCheck(this,e),this.request=t,this.response=new r.a((function(e){var r=n.build();r.open(a[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(r.withCredentials=t.withCredentials);var l=function(){var n=1223===r.status?204:r.status,o=null;204!==n&&("string"==typeof(o=void 0===r.response?r.responseText:r.response)&&(o=o.replace(k,""))),0===n&&(n=o?200:0);var a,s=c.fromResponseHeaderString(r.getAllResponseHeaders()),l=("responseURL"in(a=r)?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null)||t.url,u=new h({body:o,status:n,headers:s,statusText:r.statusText||"OK",url:l});null!=i&&(u=i.merge(u));var f=new b(u);if(f.ok=function(e){return e>=200&&e<300}(n),f.ok)return e.next(f),void e.complete();e.error(f)},f=function(t){var n=new h({body:t,type:s.Error,status:r.status,statusText:r.statusText});null!=i&&(n=i.merge(n)),e.error(new b(n))};if(o.setDetectedContentType(t,r),null==t.headers&&(t.headers=new c),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach((function(e,t){return r.setRequestHeader(t,e.join(","))})),null!=t.responseType&&null!=r.responseType)switch(t.responseType){case u.ArrayBuffer:r.responseType="arraybuffer";break;case u.Json:r.responseType="json";break;case u.Text:r.responseType="text";break;case u.Blob:r.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return r.addEventListener("load",l),r.addEventListener("error",f),r.send(o.request.getBody()),function(){r.removeEventListener("load",l),r.removeEventListener("error",f),r.abort()}}))}return _createClass(e,[{key:"setDetectedContentType",value:function(e,t){if(null==e.headers||null==e.headers.get("Content-Type"))switch(e.contentType){case l.NONE:break;case l.JSON:t.setRequestHeader("content-type","application/json");break;case l.FORM:t.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case l.TEXT:t.setRequestHeader("content-type","text/plain");break;case l.BLOB:var n=e.blob();n.type&&t.setRequestHeader("content-type",n.type)}}}]),e}(),C=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"XSRF-TOKEN",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"X-XSRF-TOKEN";_classCallCheck(this,e),this._cookieName=t,this._headerName=n}return _createClass(e,[{key:"configureRequest",value:function(e){var t=Object(i.r)().getCookie(this._cookieName);t&&e.headers.set(this._headerName,t)}}]),e}(),w=function(){function e(t,n,r){_classCallCheck(this,e),this._browserXHR=t,this._baseResponseOptions=n,this._xsrfStrategy=r}return _createClass(e,[{key:"createConnection",value:function(e){return this._xsrfStrategy.configureRequest(e),new _(e,this._browserXHR,this._baseResponseOptions)}}]),e}(),S=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,e);var n=t.method,r=t.headers,i=t.body,o=t.url,a=t.search,s=t.params,l=t.withCredentials,u=t.responseType;this.method=null!=n?p(n):null,this.headers=null!=r?r:null,this.body=null!=i?i:null,this.url=null!=o?o:null,this.params=this._mergeSearchParams(s||a),this.withCredentials=null!=l?l:null,this.responseType=null!=u?u:null}return _createClass(e,[{key:"search",get:function(){return this.params},set:function(e){this.params=e}}]),_createClass(e,[{key:"merge",value:function(t){return new e({method:t&&null!=t.method?t.method:this.method,headers:t&&null!=t.headers?t.headers:new c(this.headers),body:t&&null!=t.body?t.body:this.body,url:t&&null!=t.url?t.url:this.url,params:t&&this._mergeSearchParams(t.params||t.search),withCredentials:t&&null!=t.withCredentials?t.withCredentials:this.withCredentials,responseType:t&&null!=t.responseType?t.responseType:this.responseType})}},{key:"_mergeSearchParams",value:function(e){return e?e instanceof m?e.clone():"string"==typeof e?new m(e):this._parseParams(e):this.params}},{key:"_parseParams",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new m;return Object.keys(t).forEach((function(r){var i=t[r];Array.isArray(i)?i.forEach((function(t){return e._appendParam(r,t,n)})):e._appendParam(r,i,n)})),n}},{key:"_appendParam",value:function(e,t,n){"string"!=typeof t&&(t=JSON.stringify(t)),n.append(e,t)}}]),e}(),O=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this,{method:a.Get,headers:new c})}return n}(S),x=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;_classCallCheck(this,n),r=t.call(this);var i=e.url;r.url=e.url;var o,a=e.params||e.search;if(a&&(o="object"!=typeof a||a instanceof m?a.toString():function(e){var t=new m;return Object.keys(e).forEach((function(n){var r=e[n];r&&Array.isArray(r)?r.forEach((function(e){return t.append(n,e.toString())})):t.append(n,r.toString())})),t}(a).toString()).length>0){var s="?";-1!=r.url.indexOf("?")&&(s="&"==r.url[r.url.length-1]?"":"&"),r.url=i+s+o}return r._body=e.body,r.method=p(e.method),r.headers=new c(e.headers),r.contentType=r.detectContentType(),r.withCredentials=e.withCredentials,r.responseType=e.responseType,r}return _createClass(n,[{key:"detectContentType",value:function(){switch(this.headers.get("content-type")){case"application/json":return l.JSON;case"application/x-www-form-urlencoded":return l.FORM;case"multipart/form-data":return l.FORM_DATA;case"text/plain":case"text/html":return l.TEXT;case"application/octet-stream":return this._body instanceof I?l.ARRAY_BUFFER:l.BLOB;default:return this.detectContentTypeFromBody()}}},{key:"detectContentTypeFromBody",value:function(){return null==this._body?l.NONE:this._body instanceof m?l.FORM:this._body instanceof M?l.FORM_DATA:this._body instanceof A?l.BLOB:this._body instanceof I?l.ARRAY_BUFFER:this._body&&"object"==typeof this._body?l.JSON:l.TEXT}},{key:"getBody",value:function(){switch(this.contentType){case l.JSON:case l.FORM:return this.text();case l.FORM_DATA:return this._body;case l.TEXT:return this.text();case l.BLOB:return this.blob();case l.ARRAY_BUFFER:return this.arrayBuffer();default:return null}}}]),n}(y),E=function(){},T="object"==typeof window?window:E,M=T.FormData||E,A=T.Blob||E,I=T.ArrayBuffer||E;function P(e,t){return e.createConnection(t).response}function D(e,t,n,r){return e.merge(new S(t?{method:t.method||n,url:t.url||r,search:t.search,params:t.params,headers:t.headers,body:t.body,withCredentials:t.withCredentials,responseType:t.responseType}:{method:n,url:r}))}var N=function(){function e(t,n){_classCallCheck(this,e),this._backend=t,this._defaultOptions=n}return _createClass(e,[{key:"request",value:function(e,t){var n;if("string"==typeof e)n=P(this._backend,new x(D(this._defaultOptions,t,a.Get,e)));else{if(!(e instanceof x))throw new Error("First argument must be a url string or Request instance.");n=P(this._backend,e)}return n}},{key:"get",value:function(e,t){return this.request(new x(D(this._defaultOptions,t,a.Get,e)))}},{key:"post",value:function(e,t,n){return this.request(new x(D(this._defaultOptions.merge(new S({body:t})),n,a.Post,e)))}},{key:"put",value:function(e,t,n){return this.request(new x(D(this._defaultOptions.merge(new S({body:t})),n,a.Put,e)))}},{key:"delete",value:function(e,t){return this.request(new x(D(this._defaultOptions,t,a.Delete,e)))}},{key:"patch",value:function(e,t,n){return this.request(new x(D(this._defaultOptions.merge(new S({body:t})),n,a.Patch,e)))}},{key:"head",value:function(e,t){return this.request(new x(D(this._defaultOptions,t,a.Head,e)))}},{key:"options",value:function(e,t){return this.request(new x(D(this._defaultOptions,t,a.Options,e)))}}]),e}();function j(){return new C}function R(e,t){return new N(e,t)}var L=function e(){_classCallCheck(this,e)}},W7t7:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("GAbP"),i=(n("6GXZ"),n("zI0Y"));n("2IJ5");var o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,r,i,o)).sqlite=e,a.consoleDialog=r,a.injector=i,a.platform=o,a}return _createClass(n,[{key:"getSuggestions",value:function(e){var t=this;return this.platform.is("cordova")?new Promise((function(n){var r=[],i="SELECT * FROM wordsSuggestion where word like '"+e+"%' limit 9";t.databaseObj.executeSql(i,[]).then((function(e){if(e.rows.length>0)for(var t=0;t<e.rows.length;t++){var i=e.rows.item(t);r.push(i.word)}n(r)})).catch((function(e){console.log("error cant get word",e,i)}))})):new Promise((function(e){e([])}))}},{key:"getRowNumbers",value:function(){var e=this;return new Promise((function(t){e.userManager.getUser().then((function(n){e.init(n).then((function(){if(e.platform.is("cordova")){var n="SELECT COALESCE(MAX(_id)+1, 0) as count FROM wordsSuggestion ";e.databaseObj.executeSql(n,[]).then((function(e){var n=e.rows.item(0);t(n.count)})).catch((function(e){console.log("error cant get word",e,n)}))}else t(0)}))}))}))}},{key:"createWordWithWordObject",value:function(e){return new i.a(e)}},{key:"insert",value:function(e){if(!this.platform.is("cordova"))return new Promise((function(e){e([])}));var t="INSERT OR IGNORE INTO wordsSuggestion(word) VALUES ('"+e+"')";this.databaseObj.executeSql(t,[]).then((function(){console.log("suggestion added")})).catch((function(e){console.log("error cant insert word",e,t)}))}}]),n}(r.a)},XNiG:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n("HDdC"),i=n("7o/Q"),o=n("quSY"),a=n("9ppp"),s=n("Ylt2"),l=n("2QA8"),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).destination=e,r}return n}(i.a),c=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return _createClass(n,[{key:l.a,value:function(){return new u(this)}},{key:"lift",value:function(e){var t=new h(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new a.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)}},{key:"error",value:function(e){if(this.closed)throw new a.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new a.a;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new a.a;return _get(_getPrototypeOf(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new a.a;return this.hasError?(e.error(this.thrownError),o.a.EMPTY):this.isStopped?(e.complete(),o.a.EMPTY):(this.observers.push(e),new s.a(this,e))}},{key:"asObservable",value:function(){var e=new r.a;return e.source=this,e}}]),n}(r.a);return e.create=function(e,t){return new h(e,t)},e}(),h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).destination=e,i.source=r,i}return _createClass(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):o.a.EMPTY}}]),n}(c)},Xd0L:function(e,t,n){"use strict";var r=n("8Y7J");n("cUpR");var i=new r.N("8.2.3");n("KCVW"),n("XNiG"),n("HDdC"),n("/HVE"),n("JX91"),n("5GAg"),n("dvZr"),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return l}));var o=new r.N("8.2.3"),a=new r.o("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),s=function(){function e(t,n){_classCallCheck(this,e),this._sanityChecksEnabled=t,this._hammerLoader=n,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return _createClass(e,[{key:"_areChecksEnabled",value:function(){return this._sanityChecksEnabled&&Object(r.W)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._window;return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._document&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){o.full!==i.full&&console.warn("The Angular Material version ("+o.full+") does not match the Angular CDK version ("+i.full+").\nPlease ensure the versions of these two packages exactly match.")}},{key:"_checkHammerIsAvailable",value:function(){!this._hasCheckedHammer&&this._window&&(!this._areChecksEnabled()||this._window.Hammer||this._hammerLoader||console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)}}]),e}();function l(e,t){return function(e){_inherits(r,e);var n=_createSuper(r);function r(){var e;_classCallCheck(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).color=t,e}return _createClass(r,[{key:"color",get:function(){return this._color},set:function(e){var n=e||t;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),n&&this._elementRef.nativeElement.classList.add("mat-"+n),this._color=n)}}]),r}(e)}try{"undefined"!=typeof Intl}catch(u){!1}},XnfD:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r,i=n("gHap"),o=function(e){if(void 0===r){var t=void 0!==e.style.webkitAnimationName;r=void 0===e.style.animationName&&t?"-webkit-":""}return r},a=function(e,t,n){var r=t.startsWith("animation")?o(e):"";e.style.setProperty(r+t,n)},s=function(e,t){var n=t.startsWith("animation")?o(e):"";e.style.removeProperty(n+t)},l=[],u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(void 0!==t){var n=Array.isArray(t)?t:[t];return[].concat(_toConsumableArray(e),_toConsumableArray(n))}return e},c=function(e){var t,n,r,c,h,f,d,p,v,g,m,y,b,k=[],_=[],C=[],w=!1,S={},O=[],x=[],E={},T=0,M=!1,A=!1,I=!0,P=!1,D=!0,N=e,j=[],R=[],L=[],F=[],B=[],V=[],H=[],z=[],$=[],q=[],U="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,W="function"==typeof Element&&"function"==typeof Element.prototype.animate&&U,G=function(e,t){return(t&&t.oneTimeCallback?R:j).push({c:e,o:t}),b},X=function(){if(W)q.forEach((function(e){e.cancel()})),q.length=0;else{var e=L.slice();Object(i.l)((function(){e.forEach((function(e){s(e,"animation-name"),s(e,"animation-duration"),s(e,"animation-timing-function"),s(e,"animation-iteration-count"),s(e,"animation-delay"),s(e,"animation-play-state"),s(e,"animation-fill-mode"),s(e,"animation-direction")}))}))}},J=function(){B.forEach((function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})),B.length=0},Q=function(){return void 0!==h?h:d?d.getFill():"both"},Z=function(){return void 0!==v?v:void 0!==f?f:d?d.getDirection():"normal"},Y=function(){return M?"linear":void 0!==r?r:d?d.getEasing():"linear"},K=function(){return A?0:void 0!==g?g:void 0!==n?n:d?d.getDuration():0},ee=function(){return void 0!==c?c:d?d.getIterations():1},te=function(){return void 0!==m?m:void 0!==t?t:d?d.getDelay():0},ne=function(){0!==T&&(0===--T&&(function(){ce(),z.forEach((function(e){return e()})),$.forEach((function(e){return e()}));var e=I?1:0,t=O,n=x,r=E;L.forEach((function(e){var i=e.classList;for(var o in t.forEach((function(e){return i.add(e)})),n.forEach((function(e){return i.remove(e)})),r)r.hasOwnProperty(o)&&a(e,o,r[o])})),j.forEach((function(t){return t.c(e,b)})),R.forEach((function(t){return t.c(e,b)})),R.length=0,D=!0,I&&(P=!0),I=!0}(),d&&d.animationFinish()))},re=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(function(){V.forEach((function(e){return e()})),H.forEach((function(e){return e()}));var e=_,t=C,n=S;L.forEach((function(r){var i=r.classList;for(var o in e.forEach((function(e){return i.add(e)})),t.forEach((function(e){return i.remove(e)})),n)n.hasOwnProperty(o)&&a(r,o,n[o])}))})(),k.length>0&&(W?(L.forEach((function(e){var t=e.animate(k,{id:N,delay:te(),duration:K(),easing:Y(),iterations:ee(),fill:Q(),direction:Z()});t.pause(),q.push(t)})),q.length>0&&(q[0].onfinish=function(){ne()})):function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];J();var n,r=((n=k).forEach((function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if("easing"===t)e["animation-timing-function"]=n,delete e[t];else{var r=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();r!==t&&(e[r]=n,delete e[t])}}})),n);L.forEach((function(n){if(r.length>0){var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var t=e.offset,n=[];for(var r in e)e.hasOwnProperty(r)&&"offset"!==r&&n.push("".concat(r,": ").concat(e[r],";"));return"".concat(100*t,"% { ").concat(n.join(" ")," }")})).join(" ")}(r),u=function(e,t,n){var r=function(e){var t=e.getRootNode();return t.head||t}(n),i=o(n),a=r.querySelector("#"+e);if(a)return a;var s=(n.ownerDocument||document).createElement("style");return s.id=e,s.textContent="@".concat(i,"keyframes ").concat(e," { ").concat(t," } @").concat(i,"keyframes ").concat(e,"-alt { ").concat(t," }"),r.appendChild(s),s}(y=void 0!==e?e:function(e){var t=l.indexOf(e);return t<0&&(t=l.push(e)-1),"ion-animation-"+t}(s),s,n);B.push(u),a(n,"animation-duration",K()+"ms"),a(n,"animation-timing-function",Y()),a(n,"animation-delay",te()+"ms"),a(n,"animation-fill-mode",Q()),a(n,"animation-direction",Z());var c=ee()===1/0?"infinite":ee().toString();a(n,"animation-iteration-count",c),a(n,"animation-play-state","paused"),t&&a(n,"animation-name",u.id+"-alt"),Object(i.l)((function(){a(n,"animation-name",u.id||null)}))}}))}(t)),w=!0},ie=function(e){if(e=Math.min(Math.max(e,0),.9999),W)q.forEach((function(t){t.currentTime=t.effect.getComputedTiming().delay+K()*e,t.pause()}));else{var t="-".concat(K()*e,"ms");L.forEach((function(e){k.length>0&&(a(e,"animation-delay",t),a(e,"animation-play-state","paused"))}))}},oe=function(e){q.forEach((function(e){e.effect.updateTiming({delay:te(),duration:K(),easing:Y(),iterations:ee(),fill:Q(),direction:Z()})})),void 0!==e&&ie(e)},ae=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;Object(i.l)((function(){L.forEach((function(n){a(n,"animation-name",y||null),a(n,"animation-duration",K()+"ms"),a(n,"animation-timing-function",Y()),a(n,"animation-delay",void 0!==t?"-".concat(t*K(),"ms"):te()+"ms"),a(n,"animation-fill-mode",Q()||null),a(n,"animation-direction",Z()||null);var r=ee()===1/0?"infinite":ee().toString();a(n,"animation-iteration-count",r),e&&a(n,"animation-name",y+"-alt"),Object(i.l)((function(){a(n,"animation-name",y||null)}))}))}))},se=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;return e&&F.forEach((function(r){r.update(e,t,n)})),W?oe(n):ae(t,n),b},le=function(){w&&(W?q.forEach((function(e){e.pause()})):L.forEach((function(e){a(e,"animation-play-state","paused")})))},ue=function(){p=void 0,ne()},ce=function(){p&&clearTimeout(p)},he=function(e){return new Promise((function(t){e&&e.sync&&(A=!0,G((function(){return A=!1}),{oneTimeCallback:!0})),w||re(),P&&(W?(ie(0),oe()):ae(),P=!1),D&&(T=F.length+1,D=!1),G((function(){return t()}),{oneTimeCallback:!0}),F.forEach((function(e){e.play()})),W?(q.forEach((function(e){e.play()})),0!==k.length&&0!==L.length||ne()):function(){if(ce(),Object(i.l)((function(){L.forEach((function(e){k.length>0&&a(e,"animation-play-state","running")}))})),0===k.length||0===L.length)ne();else{var e=te()||0,t=K()||0,n=ee()||1;isFinite(n)&&(p=setTimeout(ue,e+t*n+100)),function(e,t){var n,r={passive:!0},o=function(t){e===t.target&&(n&&n(),ce(),Object(i.l)((function(){L.forEach((function(e){s(e,"animation-duration"),s(e,"animation-delay"),s(e,"animation-play-state")})),Object(i.l)(ne)})))};e&&(e.addEventListener("webkitAnimationEnd",o,r),e.addEventListener("animationend",o,r),n=function(){e.removeEventListener("webkitAnimationEnd",o,r),e.removeEventListener("animationend",o,r)})}(L[0])}}()}))},fe=function(e,t){var n=k[0];return void 0===n||void 0!==n.offset&&0!==n.offset?k=[_defineProperty({offset:0},e,t)].concat(_toConsumableArray(k)):n[e]=t,b};return b={parentAnimation:d,elements:L,childAnimations:F,id:N,animationFinish:ne,from:fe,to:function(e,t){var n=k[k.length-1];return void 0===n||void 0!==n.offset&&1!==n.offset?k=[].concat(_toConsumableArray(k),[_defineProperty({offset:1},e,t)]):n[e]=t,b},fromTo:function(e,t,n){return fe(e,t).to(e,n)},parent:function(e){return d=e,b},play:he,pause:function(){return F.forEach((function(e){e.pause()})),le(),b},stop:function(){F.forEach((function(e){e.stop()})),w&&(X(),w=!1),M=!1,A=!1,D=!0,v=void 0,g=void 0,m=void 0,T=0,P=!1,I=!0},destroy:function(e){return F.forEach((function(t){t.destroy(e)})),function(e){X(),e&&J()}(e),L.length=0,F.length=0,k.length=0,j.length=0,R.length=0,w=!1,D=!0,b},keyframes:function(e){return k=e,b},addAnimation:function(e){if(null!=e)if(Array.isArray(e)){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.parent(b),F.push(r)}}catch(i){n.e(i)}finally{n.f()}}else e.parent(b),F.push(e);return b},addElement:function(e){if(null!=e)if(1===e.nodeType)L.push(e);else if(e.length>=0)for(var t=0;t<e.length;t++)L.push(e[t]);else console.error("Invalid addElement value");return b},update:se,fill:function(e){return h=e,se(!0),b},direction:function(e){return f=e,se(!0),b},iterations:function(e){return c=e,se(!0),b},duration:function(e){return W||0!==e||(e=1),n=e,se(!0),b},easing:function(e){return r=e,se(!0),b},delay:function(e){return t=e,se(!0),b},getWebAnimations:function(){return q},getKeyframes:function(){return k},getFill:Q,getDirection:Z,getDelay:te,getIterations:ee,getEasing:Y,getDuration:K,afterAddRead:function(e){return z.push(e),b},afterAddWrite:function(e){return $.push(e),b},afterClearStyles:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;E[r]=""}}catch(i){n.e(i)}finally{n.f()}return b},afterStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return E=e,b},afterRemoveClass:function(e){return x=u(x,e),b},afterAddClass:function(e){return O=u(O,e),b},beforeAddRead:function(e){return V.push(e),b},beforeAddWrite:function(e){return H.push(e),b},beforeClearStyles:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;S[r]=""}}catch(i){n.e(i)}finally{n.f()}return b},beforeStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return S=e,b},beforeRemoveClass:function(e){return C=u(C,e),b},beforeAddClass:function(e){return _=u(_,e),b},onFinish:G,progressStart:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return F.forEach((function(n){n.progressStart(e,t)})),le(),M=e,w?se(!1,!0,t):re(),b},progressStep:function(e){return F.forEach((function(t){t.progressStep(e)})),ie(e),b},progressEnd:function(e,t,n){return M=!1,F.forEach((function(r){r.progressEnd(e,t,n)})),void 0!==n&&(g=n),P=!1,I=!0,0===e?("reverse"===(v="reverse"===Z()?"normal":"reverse")&&(I=!1),W?(se(),ie(1-t)):(m=(1-t)*K()*-1,se(!1,!1))):1===e&&(W?(se(),ie(t)):(m=t*K()*-1,se(!1,!1))),void 0!==e&&(G((function(){g=void 0,v=void 0,m=void 0}),{oneTimeCallback:!0}),d||he()),b}}}},XoHu:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",(function(){return r}))},Ylt2:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).subject=e,i.subscriber=r,i.closed=!1,i}return _createClass(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(n("quSY").a)},ZUHj:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("51Dv"),i=n("SeVD"),o=n("HDdC");function a(e,t,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new r.a(e,n,a);if(!s.closed)return t instanceof o.a?t.subscribe(s):Object(i.a)(t)(s)}},ZZmf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("nfSX"),n("EGUZ"),n("olg3"),n("/qZA");var r=function(){function e(t,n,r,i,o,a){_classCallCheck(this,e),this.http=t,this.push=n,this.storageManager=r,this.userManager=i,this.socketManager=o,this.platform=a,console.log("Hello NotificationsManagerProvider Provider")}return _createClass(e,[{key:"init",value:function(){var e=this;console.log("need to init push"),this.push.hasPermission().then((function(t){t.isEnabled?(console.log("going to init push"),e.initPush()):console.log("We do not have permission to send push notifications")}))}},{key:"handleMessage",value:function(){console.log(" truncrated? :D")}},{key:"initPush",value:function(){var e=this;this.storageManager.get("notificationEnable").then((function(t){console.log("notifications enable process",t),(null==t||1==t)&&(console.log("notifications enable process",t),e.pushObject=e.push.init({android:{senderID:"930306089784",icon:"../assets/img/pushicon.png"},ios:{alert:"true",badge:!0,sound:"false"},windows:{},browser:{pushServiceURL:"http://push.api.phonegap.com/v1/push"}}),e.pushObject.on("notification").subscribe((function(e){e.title.includes("New")})),e.pushObject.on("registration").subscribe((function(t){console.log("going to register online"),e.userManager.loggedIn().then((function(){e.socketManager.queryPro("saveReg",t,e,e.userManager.user.getMainAccessToken())}))})),e.pushObject.on("error").subscribe((function(e){return console.error("Error with Push plugin",e)})))}))}},{key:"disablePush",value:function(){this.platform.is("cordova")&&this.pushObject.unregister()}}]),e}()},ZnZf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function e(){_classCallCheck(this,e),this.buttons=[]}},Zr1d:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.hideFormAccessoryBar=function(e){return Object(i.cordova)(this,"hideFormAccessoryBar",{sync:!0,platforms:["iOS"]},arguments)},t.prototype.hide=function(){return Object(i.cordova)(this,"hide",{sync:!0,platforms:["iOS","Android"]},arguments)},t.prototype.show=function(){return Object(i.cordova)(this,"show",{sync:!0,platforms:["Android"]},arguments)},t.prototype.setResizeMode=function(e){return Object(i.cordova)(this,"setResizeMode",{sync:!0,platforms:["iOS"]},arguments)},t.prototype.setKeyboardStyle=function(e){return Object(i.cordova)(this,"setKeyboardStyle",{sync:!0,platforms:["iOS"]},arguments)},t.prototype.disableScroll=function(e){return Object(i.cordova)(this,"disableScroll",{sync:!0,platforms:["iOS"]},arguments)},t.prototype.onKeyboardShow=function(){return Object(i.cordova)(this,"onKeyboardShow",{eventObservable:!0,event:"native.keyboardshow",platforms:["iOS","Android"]},arguments)},t.prototype.onKeyboardWillShow=function(){return Object(i.cordova)(this,"onKeyboardWillShow",{eventObservable:!0,event:"keyboardWillShow",platforms:["iOS","Android"]},arguments)},t.prototype.onKeyboardDidShow=function(){return Object(i.cordova)(this,"onKeyboardDidShow",{eventObservable:!0,event:"keyboardDidShow",platforms:["iOS","Android"]},arguments)},t.prototype.onKeyboardHide=function(){return Object(i.cordova)(this,"onKeyboardHide",{eventObservable:!0,event:"native.keyboardhide",platforms:["iOS","Android"]},arguments)},t.prototype.onKeyboardWillHide=function(){return Object(i.cordova)(this,"onKeyboardWillHide",{eventObservable:!0,event:"keyboardWillHide",platforms:["iOS","Android"]},arguments)},t.prototype.onKeyboardDidHide=function(){return Object(i.cordova)(this,"onKeyboardDidHide",{eventObservable:!0,event:"keyboardDidHide",platforms:["iOS","Android"]},arguments)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return Object(i.cordovaPropertyGet)(this,"isVisible")},set:function(e){Object(i.cordovaPropertySet)(this,"isVisible",e)},enumerable:!0,configurable:!0}),t.pluginName="Keyboard",t.plugin="cordova-plugin-ionic-keyboard",t.pluginRef="window.Keyboard",t.repo="https://github.com/ionic-team/cordova-plugin-ionic-keyboard",t.platforms=["Android","iOS"],t}(i.IonicNativePlugin)},a3Cf:function(e,t,n){"use strict";var r=n("HPGL"),i=n("Lq6m");n.d(t,"IonicNativePlugin",(function(){return i.a}));var o=n("KOl+");n.d(t,"checkAvailability",(function(){return o.a})),n.d(t,"getPromise",(function(){return o.c}));var a=n("xSm1");n.d(t,"cordova",(function(){return a.a})),n("hKQe");var s=n("Rt+L");n.d(t,"cordovaInstance",(function(){return s.a}));var l=n("pxS/");n.d(t,"cordovaPropertyGet",(function(){return l.a})),n.d(t,"cordovaPropertySet",(function(){return l.b}));var u=n("Ji5e");n.d(t,"instancePropertyGet",(function(){return u.a})),n.d(t,"instancePropertySet",(function(){return u.b})),n("4pTB"),Object(r.a)()},a6b8:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n("iEnR");var r=n("+mLH");n("/qZA");var i=function(){function e(t,n){_classCallCheck(this,e),this.avatarDatabaseManager=t,this.socketManager=n,console.log("Hello AvatarsManagerProvider Provider")}return _createClass(e,[{key:"getUserByUserID",value:function(e){var t=this;return new Promise((function(n){t.avatarDatabaseManager.getUserByUserID(e).then((function(r){null==r.email?t.getUserFromServer(e).then((function(e){n(e)})):n(r)}))}))}},{key:"getUserFromServer",value:function(e){var t=this;return new Promise((function(n){t.socketManager.asyncQuery("getUserData",{userID:e.userID}).then((function(e){if(e.isAllowed()){var i=e.getParam("userData"),o=new r.a(i);t.avatarDatabaseManager.save(o),n(o)}}))}))}}]),e}()},bHdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("5+tZ"),i=n("SpAZ");function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(r.a)(i.a,e)}},bOdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("5+tZ");function i(e,t){return Object(r.a)(e,t,1)}},"beh+":function(e,t,n){"use strict";n.r(t),n.d(t,"mdTransitionAnimation",(function(){return o})),n("ePDZ"),n("gHap");var r=n("XnfD"),i=n("tNMG"),o=function(e,t){var n="back"===t.direction,o=t.enteringEl,a=t.leavingEl,s=Object(i.g)(o),l=s.querySelector("ion-toolbar"),u=Object(r.a)();if(u.addElement(s).fill("both").beforeRemoveClass("ion-page-invisible"),n?u.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):u.duration(t.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),l){var c=Object(r.a)();c.addElement(l),u.addAnimation(c)}if(a&&n){u.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var h=Object(r.a)();h.addElement(Object(i.g)(a)).onFinish((function(e){1===e&&h.elements.length>0&&h.elements[0].style.setProperty("display","none")})).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),u.addAnimation(h)}return u}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",(function(){return r}))},cUpR:function(e,t,n){"use strict";n.d(t,"p",(function(){return ce})),n.d(t,"q",(function(){return _})),n.d(t,"a",(function(){return he})),n.d(t,"h",(function(){return ue})),n.d(t,"c",(function(){return C})),n.d(t,"d",(function(){return w})),n.d(t,"e",(function(){return G})),n.d(t,"f",(function(){return X})),n.d(t,"g",(function(){return J})),n.d(t,"b",(function(){return ee})),n.d(t,"r",(function(){return a})),n.d(t,"j",(function(){return I})),n.d(t,"i",(function(){return U})),n.d(t,"m",(function(){return Q})),n.d(t,"n",(function(){return K})),n.d(t,"l",(function(){return x})),n.d(t,"o",(function(){return O})),n.d(t,"k",(function(){return te}));var r=n("SVse"),i=n("8Y7J"),o=null;function a(){return o}var s,l={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},u={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},c={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},h=function(){if(i.vb.Node)return i.vb.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}}(),f=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"parse",value:function(e){throw new Error("parse not implemented")}},{key:"hasProperty",value:function(e,t){return t in e}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"getProperty",value:function(e,t){return e[t]}},{key:"invoke",value:function(e,t,n){e[t].apply(e,_toConsumableArray(n))}},{key:"logError",value:function(e){window.console&&(console.error?console.error(e):console.log(e))}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"contains",value:function(e,t){return h.call(e,t)}},{key:"querySelector",value:function(e,t){return e.querySelector(t)}},{key:"querySelectorAll",value:function(e,t){return e.querySelectorAll(t)}},{key:"on",value:function(e,t,n){e.addEventListener(t,n,!1)}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"createMouseEvent",value:function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}},{key:"createEvent",value:function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}},{key:"preventDefault",value:function(e){e.preventDefault(),e.returnValue=!1}},{key:"isPrevented",value:function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}},{key:"getInnerHTML",value:function(e){return e.innerHTML}},{key:"getTemplateContent",value:function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}},{key:"getOuterHTML",value:function(e){return e.outerHTML}},{key:"nodeName",value:function(e){return e.nodeName}},{key:"nodeValue",value:function(e){return e.nodeValue}},{key:"type",value:function(e){return e.type}},{key:"content",value:function(e){return this.hasProperty(e,"content")?e.content:e}},{key:"firstChild",value:function(e){return e.firstChild}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"parentElement",value:function(e){return e.parentNode}},{key:"childNodes",value:function(e){return e.childNodes}},{key:"childNodesAsList",value:function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r];return n}},{key:"clearNodes",value:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"removeChild",value:function(e,t){e.removeChild(t)}},{key:"replaceChild",value:function(e,t,n){e.replaceChild(t,n)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"insertBefore",value:function(e,t,n){e.insertBefore(n,t)}},{key:"insertAllBefore",value:function(e,t,n){n.forEach((function(n){return e.insertBefore(n,t)}))}},{key:"insertAfter",value:function(e,t,n){e.insertBefore(n,t.nextSibling)}},{key:"setInnerHTML",value:function(e,t){e.innerHTML=t}},{key:"getText",value:function(e){return e.textContent}},{key:"setText",value:function(e,t){e.textContent=t}},{key:"getValue",value:function(e){return e.value}},{key:"setValue",value:function(e,t){e.value=t}},{key:"getChecked",value:function(e){return e.checked}},{key:"setChecked",value:function(e,t){e.checked=t}},{key:"createComment",value:function(e){return this.getDefaultDocument().createComment(e)}},{key:"createTemplate",value:function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createElementNS",value:function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}},{key:"createTextNode",value:function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}},{key:"createScriptTag",value:function(e,t,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}},{key:"createStyleElement",value:function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}},{key:"createShadowRoot",value:function(e){return e.createShadowRoot()}},{key:"getShadowRoot",value:function(e){return e.shadowRoot}},{key:"getHost",value:function(e){return e.host}},{key:"clone",value:function(e){return e.cloneNode(!0)}},{key:"getElementsByClassName",value:function(e,t){return e.getElementsByClassName(t)}},{key:"getElementsByTagName",value:function(e,t){return e.getElementsByTagName(t)}},{key:"classList",value:function(e){return Array.prototype.slice.call(e.classList,0)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"hasClass",value:function(e,t){return e.classList.contains(t)}},{key:"setStyle",value:function(e,t,n){e.style[t]=n}},{key:"removeStyle",value:function(e,t){e.style[t]=""}},{key:"getStyle",value:function(e,t){return e.style[t]}},{key:"hasStyle",value:function(e,t,n){var r=this.getStyle(e,t)||"";return n?r==n:r.length>0}},{key:"tagName",value:function(e){return e.tagName}},{key:"attributeMap",value:function(e){for(var t=new Map,n=e.attributes,r=0;r<n.length;r++){var i=n.item(r);t.set(i.name,i.value)}return t}},{key:"hasAttribute",value:function(e,t){return e.hasAttribute(t)}},{key:"hasAttributeNS",value:function(e,t,n){return e.hasAttributeNS(t,n)}},{key:"getAttribute",value:function(e,t){return e.getAttribute(t)}},{key:"getAttributeNS",value:function(e,t,n){return e.getAttributeNS(t,n)}},{key:"setAttribute",value:function(e,t,n){e.setAttribute(t,n)}},{key:"setAttributeNS",value:function(e,t,n,r){e.setAttributeNS(t,n,r)}},{key:"removeAttribute",value:function(e,t){e.removeAttribute(t)}},{key:"removeAttributeNS",value:function(e,t,n){e.removeAttributeNS(t,n)}},{key:"templateAwareRoot",value:function(e){return this.isTemplateElement(e)?this.content(e):e}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"getBoundingClientRect",value:function(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}},{key:"getTitle",value:function(e){return e.title}},{key:"setTitle",value:function(e,t){e.title=t||""}},{key:"elementMatches",value:function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}},{key:"isTemplateElement",value:function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName}},{key:"isTextNode",value:function(e){return e.nodeType===Node.TEXT_NODE}},{key:"isCommentNode",value:function(e){return e.nodeType===Node.COMMENT_NODE}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"hasShadowRoot",value:function(e){return null!=e.shadowRoot&&e instanceof HTMLElement}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"importIntoDoc",value:function(e){return document.importNode(this.templateAwareRoot(e),!0)}},{key:"adoptNode",value:function(e){return document.adoptNode(e)}},{key:"getHref",value:function(e){return e.getAttribute("href")}},{key:"getEventKey",value:function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&c.hasOwnProperty(t)&&(t=c[t]))}return u[t]||t}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=d||(d=document.querySelector("base"))?d.getAttribute("href"):null;return null==n?null:(t=n,s||(s=document.createElement("a")),s.setAttribute("href",t),"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname)}},{key:"resetBaseElement",value:function(){d=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"setData",value:function(e,t,n){this.setAttribute(e,"data-"+t,n)}},{key:"getData",value:function(e,t){return this.getAttribute(e,"data-"+t)}},{key:"getComputedStyle",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return getComputedStyle(e)}))},{key:"supportsWebAnimation",value:function(){return"function"==typeof Element.prototype.animate}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Object(r.A)(document.cookie,e)}},{key:"setCookie",value:function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}},{key:"attrToPropMap",get:function(){return l}}],[{key:"makeCurrent",value:function(){var e;e=new n,o||(o=e)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n),(e=t.call(this))._animationPrefix=null,e._transitionEnd=null;try{var r=e.createElement("div",document);if(null!=e.getStyle(r,"animationName"))e._animationPrefix="";else for(var i=["Webkit","Moz","O","ms"],o=0;o<i.length;o++)if(null!=e.getStyle(r,i[o]+"AnimationName")){e._animationPrefix="-"+i[o].toLowerCase()+"-";break}var a={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(a).forEach((function(t){null!=e.getStyle(r,t)&&(e._transitionEnd=a[t])}))}catch(s){e._animationPrefix=null,e._transitionEnd=null}return e}return _createClass(n,[{key:"getDistributedNodes",value:function(e){return e.getDistributedNodes()}},{key:"resolveAndSetHref",value:function(e,t,n){e.href=null==n?t:t+"/../"+n}},{key:"supportsDOMEvents",value:function(){return!0}},{key:"supportsNativeShadowDOM",value:function(){return"function"==typeof document.body.createShadowRoot}},{key:"getAnimationPrefix",value:function(){return this._animationPrefix?this._animationPrefix:""}},{key:"getTransitionEnd",value:function(){return this._transitionEnd?this._transitionEnd:""}},{key:"supportsAnimation",value:function(){return null!=this._animationPrefix&&null!=this._transitionEnd}}]),n}(function(){function e(){_classCallCheck(this,e),this.resourceLoaderType=null}return _createClass(e,[{key:"attrToPropMap",get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e}}]),e}())),d=null;function p(){return!!window.history.pushState}var v=new i.o("TRANSITION_ID"),g=[{provide:i.d,useFactory:function(e,t,n){return function(){n.get(i.e).donePromise.then((function(){var n=a();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter((function(t){return n.getAttribute(t,"ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[v,r.d,i.p],multi:!0}],m=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){i.vb.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},i.vb.getAllAngularTestabilities=function(){return e.getAllTestabilities()},i.vb.getAllAngularRootElements=function(){return e.getAllRootElements()},i.vb.frameworkStabilizers||(i.vb.frameworkStabilizers=[]),i.vb.frameworkStabilizers.push((function(e){var t=i.vb.getAllAngularTestabilities(),n=t.length,r=!1,o=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(o)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?a().isShadowRoot(t)?this.findTestabilityInTree(e,a().getHost(t),!0):this.findTestabilityInTree(e,a().parentElement(t),!0):null}}],[{key:"init",value:function(){Object(i.Y)(new e)}}]),e}();function y(e,t){"undefined"!=typeof COMPILED&&COMPILED||((i.vb.ng=i.vb.ng||{})[e]=t)}var b={ApplicationRef:i.g,NgZone:i.x};function k(e){return Object(i.U)(e)}function _(e){return y("probe",k),y("coreTokens",Object.assign({},b,(e||[]).reduce((function(e,t){return e[t.name]=t.token,e}),{}))),function(){return k}}var C=new i.o("EventManagerPlugins"),w=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event "+e)}}]),e}(),S=function(){function e(t){_classCallCheck(this,e),this._doc=t}return _createClass(e,[{key:"addGlobalEventListener",value:function(e,t,n){var r=a().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target ".concat(r," for event ").concat(t));return this.addEventListener(r,t,n)}}]),e}(),O=function(){function e(){_classCallCheck(this,e),this._stylesSet=new Set}return _createClass(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}(),x=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r._hostNodes=new Set,r._styleNodes=new Set,r._hostNodes.add(e.head),r}return _createClass(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach((function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))}))}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach((function(e){return a().remove(e)}))}}]),n}(O),E={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},T=/%COMP%/g;function M(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?M(e,i,n):(i=i.replace(T,e),n.push(i))}return n}function A(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var I=function(){function e(t,n,r){_classCallCheck(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new P(t)}return _createClass(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.P.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new j(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case i.P.Native:case i.P.ShadowDom:return new R(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=M(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}(),P=function(){function e(t){_classCallCheck(this,e),this.eventManager=t,this.data=Object.create(null)}return _createClass(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(E[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,r){if(r){t=r+":"+t;var i=E[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var r=E[n];r?e.removeAttributeNS(r,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,r){r&i.F.DashCase?e.style.setProperty(t,n,r&i.F.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&i.F.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){N(t,"property"),e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return N(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,A(n)):this.eventManager.addEventListener(e,t,A(n))}}]),e}(),D="@".charCodeAt(0);function N(e,t){if(e.charCodeAt(0)===D)throw new Error("Found the synthetic ".concat(t," ").concat(e,'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.'))}var j=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;_classCallCheck(this,n),(a=t.call(this,e)).component=i;var s,l=M(o+"-"+i.id,i.styles,[]);return r.addStyles(l),a.contentAttr="_ngcontent-%COMP%".replace(T,o+"-"+i.id),a.hostAttr=(s=o+"-"+i.id,"_nghost-%COMP%".replace(T,s)),a}return _createClass(n,[{key:"applyToHost",value:function(e){_get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var r=_get(_getPrototypeOf(n.prototype),"createElement",this).call(this,e,t);return _get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,r,this.contentAttr,""),r}}]),n}(P),R=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,o,a){var s;_classCallCheck(this,n),(s=t.call(this,e)).sharedStylesHost=r,s.hostEl=o,s.component=a,s.shadowRoot=a.encapsulation===i.P.ShadowDom?o.attachShadow({mode:"open"}):o.createShadowRoot(),s.sharedStylesHost.addHost(s.shadowRoot);for(var l=M(a.id,a.styles,[]),u=0;u<l.length;u++){var c=document.createElement("style");c.textContent=l[u],s.shadowRoot.appendChild(c)}return s}return _createClass(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return _get(_getPrototypeOf(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,r){return _get(_getPrototypeOf(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,r)}},{key:"removeChild",value:function(e,t){return _get(_getPrototypeOf(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(_get(_getPrototypeOf(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(P),L="undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e},F=L("addEventListener"),B=L("removeEventListener"),V={},H="__zone_symbol__propagationStopped",z=function(){var e="undefined"!=typeof Zone&&Zone[L("BLACK_LISTED_EVENTS")];if(e){var t={};return e.forEach((function(e){t[e]=e})),t}}(),$=function(e){return!!z&&z.hasOwnProperty(e)},q=function(e){var t=V[e.type];if(t){var n=this[t];if(n){var r=[e];if(1===n.length){var i=n[0];return i.zone!==Zone.current?i.zone.run(i.handler,this,r):i.handler.apply(this,r)}for(var o=n.slice(),a=0;a<o.length&&!0!==e[H];a++){var s=o[a];s.zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r)}}}},U=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e)).ngZone=i,o&&Object(r.t)(o)||a.patchEvent(),a}return _createClass(n,[{key:"patchEvent",value:function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[H]=!0),e&&e.apply(this,arguments)}}}},{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var r=this,o=n;if(!e[F]||i.x.isInAngularZone()&&!$(t))e.addEventListener(t,o,!1);else{var a=V[t];a||(a=V[t]=L("ANGULAR"+t+"FALSE"));var s=e[a],l=s&&s.length>0;s||(s=e[a]=[]);var u=$(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:o});else{for(var c=!1,h=0;h<s.length;h++)if(s[h].handler===o){c=!0;break}c||s.push({zone:u,handler:o})}l||e[F](t,q,!1)}return function(){return r.removeEventListener(e,t,o)}}},{key:"removeEventListener",value:function(e,t,n){var r=e[B];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);var i=V[t],o=i&&e[i];if(!o)return e.removeEventListener.apply(e,[t,n,!1]);for(var a=!1,s=0;s<o.length;s++)if(o[s].handler===n){a=!0,o.splice(s,1);break}a?0===o.length&&r.apply(e,[t,q,!1]):e.removeEventListener.apply(e,[t,n,!1])}}]),n}(S),W={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},G=new i.o("HammerGestureConfig"),X=new i.o("HammerLoader"),J=function(){function e(){_classCallCheck(this,e),this.events=[],this.overrides={}}return _createClass(e,[{key:"buildHammer",value:function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t}}]),e}(),Q=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e))._config=r,a.console=i,a.loader=o,a}return _createClass(n,[{key:"supports",value:function(e){return!(!W.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn('The "'.concat(e,'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.')),1))}},{key:"addEventListener",value:function(e,t,n){var r=this,i=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var o=!1,a=function(){o=!0};return this.loader().then((function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});o||(a=r.addEventListener(e,t,n))})).catch((function(){r.console.warn('The "'.concat(t,'" event cannot be bound because the custom Hammer.JS loader failed.')),a=function(){}})),function(){a()}}return i.runOutsideAngular((function(){var o=r._config.buildHammer(e),a=function(e){i.runGuarded((function(){n(e)}))};return o.on(t,a),function(){o.off(t,a),"function"==typeof o.destroy&&o.destroy()}}))}},{key:"isCustomEvent",value:function(e){return this._config.events.indexOf(e)>-1}}]),n}(S),Z=["alt","control","meta","shift"],Y={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},K=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,r){var i=n.parseEventName(t),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return a().onAndCancel(e,i.domEventName,o)}))}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(t.pop()),o="";if(Z.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")})),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=a().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Z.forEach((function(r){r!=n&&(0,Y[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(S),ee=function e(){_classCallCheck(this,e)},te=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case i.H.NONE:return t;case i.H.HTML:return t instanceof re?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),Object(i.eb)(this._doc,String(t)));case i.H.STYLE:return t instanceof ie?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),Object(i.fb)(t));case i.H.SCRIPT:if(t instanceof oe)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case i.H.URL:return t instanceof se||t instanceof ae?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Object(i.gb)(String(t)));case i.H.RESOURCE_URL:if(t instanceof se)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see http://g.co/ng/security#xss)"))}}},{key:"checkNotSafeValue",value:function(e,t){if(e instanceof ne)throw new Error("Required a safe ".concat(t,", got a ").concat(e.getTypeName()," (see http://g.co/ng/security#xss)"))}},{key:"bypassSecurityTrustHtml",value:function(e){return new re(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new ie(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new oe(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new ae(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new se(e)}}]),n}(ee),ne=function(){function e(t){_classCallCheck(this,e),this.changingThisBreaksApplicationSecurity=t}return _createClass(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}]),e}(),re=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(ne),ie=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(ne),oe=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(ne),ae=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(ne),se=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(ne),le=[{provide:i.z,useValue:r.y},{provide:i.A,useValue:function(){f.makeCurrent(),m.init()},multi:!0},{provide:r.p,useClass:function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r._init(),r}return _createClass(n,[{key:"_init",value:function(){this.location=a().getLocation(),this._history=a().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return a().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){a().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){a().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){p()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){p()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(r.p),deps:[r.d]},{provide:r.d,useFactory:function(){return document},deps:[]}],ue=Object(i.R)(i.X,"browser",le);function ce(){return new i.l}var he=function(){function e(t){if(_classCallCheck(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:i.c,useValue:t.appId},{provide:v,useExisting:i.c},g]}}}]),e}();"undefined"!=typeof window&&window},cp0P:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("HDdC"),i=n("DH7j"),o=n("lJxs"),a=n("XoHu"),s=n("Cfvw");function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var r=t[0];if(Object(i.a)(r))return u(r,null);if(Object(a.a)(r)&&Object.getPrototypeOf(r)===Object.prototype){var s=Object.keys(r);return u(s.map((function(e){return r[e]})),s)}}if("function"==typeof t[t.length-1]){var l=t.pop();return u(t=1===t.length&&Object(i.a)(t[0])?t[0]:t,null).pipe(Object(o.a)((function(e){return l.apply(void 0,_toConsumableArray(e))})))}return u(t,null)}function u(e,t){return new r.a((function(n){var r=e.length;if(0!==r)for(var i=new Array(r),o=0,a=0,l=function(l){var u=Object(s.a)(e[l]),c=!1;n.add(u.subscribe({next:function(e){c||(c=!0,a++),i[l]=e},error:function(e){return n.error(e)},complete:function(){++o!==r&&c||(a===r&&n.next(t?t.reduce((function(e,t,n){return e[t]=i[n],e}),{}):i),n.complete())}}))},u=0;u<r;u++)l(u);else n.complete()}))}},d1S0:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("nBaR");var r=function e(){_classCallCheck(this,e)}},dIIk:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=(n("0+M4"),n("h4wn"),n("J20c"),n("wZ9J"),n("o/Pg")),o=function(){function e(t,n,r,i,o,a,s,l){_classCallCheck(this,e),this.modalctrl=t,this.navCtrl=n,this.friendsManager=r,this.membersManager=i,this.chatsManager=o,this.alertCtrl=a,this.navParams=s,this.events=l,this.chat=this.navParams.get("chat")}return _createClass(e,[{key:"ionViewDidLoad",value:function(){console.log("ionViewDidLoad SelectContactPage")}},{key:"askAdd",value:function(e,t){return r.a(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this,e.next=3,this.alertCtrl.create({subHeader:"confirm",message:"Add "+t.email+" to chat "+n.chat.title,buttons:[{text:"cancel",role:"cancel",handler:function(){console.log("Cancel clicked")}},{text:"yes",handler:function(){r.modalctrl.dismiss(),n.chatsManager.addMember(n.chat,t);var e=new i.a(t);n.membersManager.addMember(e,n.chat),r.navCtrl.pop()}}]});case 3:e.sent.present();case 4:case"end":return e.stop()}}),e,this)})))}}]),e}()},ds6b:function(e,t,n){"use strict";var r=n("mrSG"),i=(n("J20c"),n("oCF6"),n("ZnZf")),o=n("8LZa"),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).actionConvertToLeitner="convertToLeitner",r.setIcon("search"),r}return _createClass(n,[{key:"click",value:function(){this.execute()}},{key:"setCompHeader",value:function(e){this.headerComp=e}},{key:"setChat",value:function(e){this.chat=e}},{key:"execute",value:function(){this.headerComp.search(),this.chat.setShowOptionMenu(!1),console.log(this.chat)}}]),n}(o.a),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).translateService=e,r}return _createClass(n,[{key:"init",value:function(){this.addSearchBtn(),this.addConvertBtn()}},{key:"addConvertBtn",value:function(){this.translateService.get("BUTTONS.convertToLeitner").subscribe((function(){}))}},{key:"addSearchBtn",value:function(){var e=this,t=this;this.translateService.get("BUTTONS.search").subscribe((function(n){var r=new a(n);r.setCompHeader(t.headerComp),r.setChat(t.chat),e.buttons.push(r)}))}},{key:"addSearchButton",value:function(){return new Promise((function(){}))}},{key:"addBtn",value:function(){}},{key:"setMessage",value:function(){}},{key:"setChat",value:function(e){this.chat=e}},{key:"setHeaderComp",value:function(e){this.headerComp=e}},{key:"close",value:function(){this.chat.setShowOptionMenu(!1)}},{key:"getShareButton",value:function(){}}]),n}(i.a);n("HcDZ");var l=n("CDm8"),u=n("tAnt"),c=n("TBO2");n("iunF"),n.d(t,"a",(function(){return h}));var h=function(){function e(t,n,r,i){var o=this;_classCallCheck(this,e),this.chatsMgr=t,this.settingsMgr=r,this.translationService=i,this.allowedLeitnerConvertTimes=3,this.settingsLeitnerConvertTimesKey="convertLeitnerNumber",this.chatOptionMenu=new s(i),this.tolang=this.translationService.currentLang,this.settingsMgr.getPrimarySettings().then((function(e){e.isBayaPlus()&&(o.allowedLeitnerConvertTimes=599)}))}return _createClass(e,[{key:"ngAfterContentInit",value:function(){this.chatOptionMenu.setHeaderComp(this.headerComp),this.chatOptionMenu.setChat(this.chat),this.chatOptionMenu.init(),this.addDownloadButton(),this.addLeitnerButton()}},{key:"addLeitnerButton",value:function(){var e=this;this.chatsMgr.userManager.getUser().then((function(t){if(!e.chat.isDictionary())return"no need to show download button";e.addButton("BUTTONS.convertToLeitner").translate().setIcon("cube").onClick((function(){e.convertToLeitner()}))}))}},{key:"addDownloadButton",value:function(){var e=this;this.chatsMgr.userManager.getUser().then((function(t){if((e.chat.isOwner(t)||!e.chat.isDictionary())&&e.chatsMgr.platform.is("cordova"))return"no need to show download button";e.addButton("BUTTONS.downloadOffline").translate().setIcon("cloud-download").onClick((function(){e.downloadItem()}))}))}},{key:"downloadItem",value:function(){return r.a(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.chatsMgr.modalCtrl.create({component:c.a,componentProps:{chat:this.chat}});case 2:t=e.sent,this.chatOptionMenu.close(),t.present(),t.onDidDismiss().then((function(e){e&&n.headerComp.navCtrl.navigateRoot("items")}));case 4:case"end":return e.stop()}}),e,this)})))}},{key:"addButton",value:function(e){var t=new o.a(e);return t.setChatOptionMenu(this),this.chatOptionMenu.buttons.push(t),t}},{key:"ngAfterViewInit",value:function(){}},{key:"convertToLeitner",value:function(){return r.a(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.chatOptionMenu.close(),(t=new u.a(this.chat.item)).type=u.a.typeLeitner,t.title=this.chat.title+"-\u0644\u0627\u06cc\u062a\u0646\u0631",t.titleDe=this.chat.title+"-\u0644\u0627\u06cc\u062a\u0646\u0631",t.titleFa=this.chat.title+"-\u0644\u0627\u06cc\u062a\u0646\u0631",t.itemType=u.a.typeLeitner,e.next=5,this.chatsMgr.modalCtrl.create({component:l.a,componentProps:{collection:t}});case 5:(n=e.sent).present(),n.onDidDismiss().then((function(e){e&&r.settingsMgr.getPrimarySettings().then((function(n){var i=n.getParam(r.settingsLeitnerConvertTimesKey);if(null==i&&(i=0),n.isBayaPlus()||i<r.allowedLeitnerConvertTimes){var o=e.data.item;o.type=t.type,r.chatsMgr.itemsManager.addNewItem(o).then((function(e){r.headerComp.navCtrl.navigateRoot("items")})).then((function(e){r.chatsMgr.databaseManager.copyMessages(r.chat.item,o),n.setParam(r.settingsLeitnerConvertTimesKey,++i),r.settingsMgr.savePrimarySetting()}))}else r.headerComp.navCtrl.navigateRoot("BayaPlusPage")}))}));case 7:case"end":return e.stop()}}),e,this)})))}}]),e}()},dvZr:function(e,t,n){"use strict";n.d(t,"i",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"h",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"l",(function(){return h})),n.d(t,"f",(function(){return f})),n.d(t,"a",(function(){return d})),n.d(t,"k",(function(){return p})),n.d(t,"m",(function(){return v}));var r=9,i=13,o=27,a=32,s=37,l=38,u=39,c=40,h=48,f=57,d=65,p=90;function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.length?n.some((function(t){return e[t]})):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}},eIep:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("l7GE"),i=n("51Dv"),o=n("ZUHj"),a=n("lJxs"),s=n("Cfvw");function l(e,t){return"function"==typeof t?function(n){return n.pipe(l((function(n,r){return Object(s.a)(e(n,r)).pipe(Object(a.a)((function(e,i){return t(n,e,r,i)})))})))}:function(t){return t.lift(new u(e))}}var u=function(){function e(t){_classCallCheck(this,e),this.project=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.project))}}]),e}(),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var a=new i.a(this,t,n),s=this.destination;s.add(a),this.innerSubscription=Object(o.a)(this,e,void 0,void 0,a),this.innerSubscription!==a&&s.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||_get(_getPrototypeOf(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}}]),n}(r.a)},ePDZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return Ve})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return L})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return y})),n.d(t,"f",(function(){return be})),n.d(t,"g",(function(){return Be})),n.d(t,"h",(function(){return v})),n.d(t,"i",(function(){return ne})),n.d(t,"j",(function(){return Fe})),n.d(t,"k",(function(){return A})),n.d(t,"l",(function(){return j})),n.d(t,"m",(function(){return te})),n.d(t,"n",(function(){return ce})),n.d(t,"o",(function(){return ke})),n.d(t,"p",(function(){return g})),n.d(t,"q",(function(){return we})),n.d(t,"r",(function(){return M})),n.d(t,"s",(function(){return d}));var r,i,o,a="ionic",s=!1,l=!1,u=!1,c=!1,h=0,f=!1,d="undefined"!=typeof window?window:{},p=d.CSS,v=d.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,r){return e.addEventListener(t,n,r)},rel:function(e,t,n,r){return e.removeEventListener(t,n,r)},ce:function(e,t){return new CustomEvent(e,t)}},m=(v.head.attachShadow+"").indexOf("[native")>-1,y=function(e){return Promise.resolve(e)},b=function(){try{return new CSSStyleSheet,!0}catch(e){}return!1}(),k=function(e,t,n,r){n&&(n=n.filter(r?function(e){return 16&_slicedToArray(e,1)[0]}:function(e){return!(16&_slicedToArray(e,1)[0])})).map((function(n){var r=_slicedToArray(n,3),i=r[0],o=r[1],a=r[2],s=C(e,i),l=_(t,a),u=w(i);g.ael(s,o,l,u),(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return g.rel(s,o,l,u)}))}))},_=function(e,t){return function(n){256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}},C=function(e,t){return 4&t?v:8&t?d:32&t?v.body:16&t?e.parentElement:e},w=function(e){return 0!=(2&e)},S="http://www.w3.org/1999/xlink",O=new WeakMap,x=function(e,t,n){var r=Me.get(e);b&&n?(r=r||new CSSStyleSheet).replace(t):r=t,Me.set(e,r)},E=function(e,t,n,r){var i=T(t,n),o=Me.get(i);if(e=11===e.nodeType?e:v,o)if("string"==typeof o){var a,s=O.get(e=e.head||e);if(s||O.set(e,s=new Set),!s.has(i)){if(e.host&&(a=e.querySelector('[sty-id="'.concat(i,'"]'))))a.innerHTML=o;else{if(g.$cssShim$){var l=(a=g.$cssShim$.createHostStyle(r,i,o,!!(10&t.$flags$)))["s-sc"];l&&(i=l,s=null)}else(a=v.createElement("style")).innerHTML=o;e.insertBefore(a,e.querySelector("link"))}s&&s.add(i)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[].concat(_toConsumableArray(e.adoptedStyleSheets),[o]));return i},T=function(e,t){return"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$)},M=function(e){return Ae.push(e)},A=function(e){return Ce(e).$modeName$},I={},P=function(e){return"object"==(e=typeof e)||"function"===e},D="undefined"!=typeof Deno,N=!(D||"undefined"==typeof global||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),j=(D&&Deno,N?process:D&&Deno,N?process:D&&Deno,function(e,t){for(var n=null,r=null,i=null,o=!1,a=!1,s=[],l=function t(r){for(var i=0;i<r.length;i++)n=r[i],Array.isArray(n)?t(n):null!=n&&"boolean"!=typeof n&&((o="function"!=typeof e&&!P(n))&&(n=String(n)),o&&a?s[s.length-1].$text$+=n:s.push(o?R(null,n):n),a=o)},u=arguments.length,c=new Array(u>2?u-2:0),h=2;h<u;h++)c[h-2]=arguments[h];if(l(c),t){t.key&&(r=t.key),t.name&&(i=t.name);var f=t.className||t.class;f&&(t.class="object"!=typeof f?f:Object.keys(f).filter((function(e){return f[e]})).join(" "))}if("function"==typeof e)return e(null===t?{}:t,s,F);var d=R(e,null);return d.$attrs$=t,s.length>0&&(d.$children$=s),d.$key$=r,d.$name$=i,d}),R=function(e,t){return{$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}},L={},F={forEach:function(e,t){return e.map(B).forEach(t)},map:function(e,t){return e.map(B).map(t).map(V)}},B=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}},V=function(e){if("function"==typeof e.vtag){var t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),j.apply(void 0,[e.vtag,t].concat(_toConsumableArray(e.vchildren||[])))}var n=R(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},H=function(e,t,n,r,i,o){if(n!==r){var a=Oe(e,t),s=t.toLowerCase();if("class"===t){var l=e.classList,u=$(n),c=$(r);l.remove.apply(l,_toConsumableArray(u.filter((function(e){return e&&!c.includes(e)})))),l.add.apply(l,_toConsumableArray(c.filter((function(e){return e&&!u.includes(e)}))))}else if("style"===t){for(var h in n)r&&null!=r[h]||(h.includes("-")?e.style.removeProperty(h):e.style[h]="");for(var f in r)n&&r[f]===n[f]||(f.includes("-")?e.style.setProperty(f,r[f]):e.style[f]=r[f])}else if("key"===t);else if("ref"===t)r&&r(e);else if(a||"o"!==t[0]||"n"!==t[1]){var p=P(r);if((a||p&&null!==r)&&!i)try{if(e.tagName.includes("-"))e[t]=r;else{var v=null==r?"":r;"list"===t?a=!1:null!=n&&e[t]==v||(e[t]=v)}}catch(y){}var m=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(t=s,m=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(m?e.removeAttributeNS(S,t):e.removeAttribute(t)):(!a||4&o||i)&&!p&&(r=!0===r?"":r,m?e.setAttributeNS(S,t,r):e.setAttribute(t,r))}else t="-"===t[2]?t.slice(3):Oe(d,s)?s.slice(2):s[2]+t.slice(3),n&&g.rel(e,t,n,!1),r&&g.ael(e,t,r,!1)}},z=/\s/,$=function(e){return e?e.split(z):[]},q=function(e,t,n,r){var i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||I,a=t.$attrs$||I;for(r in o)r in a||H(i,r,o[r],void 0,n,t.$flags$);for(r in a)H(i,r,o[r],a[r],n,t.$flags$)},U=function e(t,n,a,l){var h,f,d,p=n.$children$[a],g=0;if(s||(u=!0,"slot"===p.$tag$&&(r&&l.classList.add(r+"-s"),p.$flags$|=p.$children$?2:1)),null!==p.$text$)h=p.$elm$=v.createTextNode(p.$text$);else if(1&p.$flags$)h=p.$elm$=v.createTextNode("");else{if(c||(c="svg"===p.$tag$),h=p.$elm$=v.createElementNS(c?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&p.$flags$?"slot-fb":p.$tag$),c&&"foreignObject"===p.$tag$&&(c=!1),q(null,p,c),null!=r&&h["s-si"]!==r&&h.classList.add(h["s-si"]=r),p.$children$)for(g=0;g<p.$children$.length;++g)(f=e(t,p,g,h))&&h.appendChild(f);"svg"===p.$tag$?c=!1:"foreignObject"===h.tagName&&(c=!0)}return h["s-hn"]=o,3&p.$flags$&&(h["s-sr"]=!0,h["s-cr"]=i,h["s-sn"]=p.$name$||"",(d=t&&t.$children$&&t.$children$[a])&&d.$tag$===p.$tag$&&t.$elm$&&W(t.$elm$,!1)),h},W=function e(t,n){g.$flags$|=1;for(var r=t.childNodes,i=r.length-1;i>=0;i--){var a=r[i];a["s-hn"]!==o&&a["s-ol"]&&(Z(a).insertBefore(a,Q(a)),a["s-ol"].remove(),a["s-ol"]=void 0,u=!0),n&&e(a,n)}g.$flags$&=-2},G=function(e,t,n,r,i,a){var s,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===o&&(l=l.shadowRoot);i<=a;++i)r[i]&&((s=U(null,n,i,e))&&(r[i].$elm$=s,l.insertBefore(s,Q(t))))},X=function(e,t,n,r,i){for(;t<=n;++t)(r=e[t])&&(i=r.$elm$,ee(r),l=!0,i["s-ol"]?i["s-ol"].remove():W(i,!0),i.remove())},J=function(e,t){return e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$)},Q=function(e){return e&&e["s-ol"]||e},Z=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode},Y=[],K=function(e,t){return 1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t},ee=function e(t){t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(e)},te=function(e){return Ce(e).$hostElement$},ne=function(e,t,n){var r=te(e);return{emit:function(e){return re(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}}},re=function(e,t,n){var r=g.ce(t,n);return e.dispatchEvent(r),r},ie=function(e,t){t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))},oe=function(e,t){if(e.$flags$|=16,!(4&e.$flags$))return ie(e,e.$ancestorComponent$),Be((function(){return ae(e,t)}));e.$flags$|=512},ae=function(e,t){var n,r=e.$lazyInstance$;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map((function(e){var t=_slicedToArray(e,2),n=t[0],i=t[1];return fe(r,n,i)})),e.$queuedListeners$=null),n=fe(r,"componentWillLoad")),n=de(n,(function(){return fe(r,"componentWillRender")})),de(n,(function(){return se(e,r,t)}))},se=function(e,t,n){var a=e.$hostElement$,h=a["s-rc"];n&&function(e){var t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,i=E(m&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);10&r&&(n["s-sc"]=i,n.classList.add(i+"-h"),2&r&&n.classList.add(i+"-s"))}(e),function(e,t){var n,a=e.$hostElement$,h=e.$cmpMeta$,f=e.$vnode$||R(null,null),d=(n=t)&&n.$tag$===L?t:j(null,null,t);if(o=a.tagName,h.$attrsToReflect$&&(d.$attrs$=d.$attrs$||{},h.$attrsToReflect$.map((function(e){var t=_slicedToArray(e,2),n=t[0],r=t[1];return d.$attrs$[r]=a[n]}))),d.$tag$=null,d.$flags$|=4,e.$vnode$=d,d.$elm$=f.$elm$=a.shadowRoot||a,r=a["s-sc"],i=a["s-cr"],s=m&&0!=(1&h.$flags$),l=!1,function e(t,n){var r,i=n.$elm$=t.$elm$,o=t.$children$,a=n.$children$,s=n.$tag$,l=n.$text$;null===l?(c="svg"===s||"foreignObject"!==s&&c,"slot"===s||q(t,n,c),null!==o&&null!==a?function(t,n,r,i){for(var o,a,s=0,l=0,u=0,c=0,h=n.length-1,f=n[0],d=n[h],p=i.length-1,v=i[0],g=i[p];s<=h&&l<=p;)if(null==f)f=n[++s];else if(null==d)d=n[--h];else if(null==v)v=i[++l];else if(null==g)g=i[--p];else if(J(f,v))e(f,v),f=n[++s],v=i[++l];else if(J(d,g))e(d,g),d=n[--h],g=i[--p];else if(J(f,g))"slot"!==f.$tag$&&"slot"!==g.$tag$||W(f.$elm$.parentNode,!1),e(f,g),t.insertBefore(f.$elm$,d.$elm$.nextSibling),f=n[++s],g=i[--p];else if(J(d,v))"slot"!==f.$tag$&&"slot"!==g.$tag$||W(d.$elm$.parentNode,!1),e(d,v),t.insertBefore(d.$elm$,f.$elm$),d=n[--h],v=i[++l];else{for(u=-1,c=s;c<=h;++c)if(n[c]&&null!==n[c].$key$&&n[c].$key$===v.$key$){u=c;break}u>=0?((a=n[u]).$tag$!==v.$tag$?o=U(n&&n[l],r,u,t):(e(a,v),n[u]=void 0,o=a.$elm$),v=i[++l]):(o=U(n&&n[l],r,l,t),v=i[++l]),o&&Z(f.$elm$).insertBefore(o,Q(f.$elm$))}s>h?G(t,null==i[p+1]?null:i[p+1].$elm$,r,i,l,p):l>p&&X(n,s,h)}(i,o,n,a):null!==a?(null!==t.$text$&&(i.textContent=""),G(i,null,n,a,0,a.length-1)):null!==o&&X(o,0,o.length-1),c&&"svg"===s&&(c=!1)):(r=i["s-cr"])?r.parentNode.textContent=l:t.$text$!==l&&(i.data=l)}(f,d),g.$flags$|=1,u){var p,y,b,k,_,C;!function e(t){for(var n,r,i,o,a,s,u=0,c=t.childNodes,h=c.length;u<h;u++){if((n=c[u])["s-sr"]&&(r=n["s-cr"]))for(i=r.parentNode.childNodes,o=n["s-sn"],s=i.length-1;s>=0;s--)(r=i[s])["s-cn"]||r["s-nr"]||r["s-hn"]===n["s-hn"]||(K(r,o)?(a=Y.find((function(e){return e.$nodeToRelocate$===r})),l=!0,r["s-sn"]=r["s-sn"]||o,a?a.$slotRefNode$=n:Y.push({$slotRefNode$:n,$nodeToRelocate$:r}),r["s-sr"]&&Y.map((function(e){K(e.$nodeToRelocate$,r["s-sn"])&&((a=Y.find((function(e){return e.$nodeToRelocate$===r})))&&!e.$slotRefNode$&&(e.$slotRefNode$=a.$slotRefNode$))}))):Y.some((function(e){return e.$nodeToRelocate$===r}))||Y.push({$nodeToRelocate$:r}));1===n.nodeType&&e(n)}}(d.$elm$);for(var w=0;w<Y.length;w++)(y=(p=Y[w]).$nodeToRelocate$)["s-ol"]||((b=v.createTextNode(""))["s-nr"]=y,y.parentNode.insertBefore(y["s-ol"]=b,y));for(w=0;w<Y.length;w++)if(y=(p=Y[w]).$nodeToRelocate$,p.$slotRefNode$){for(k=p.$slotRefNode$.parentNode,_=p.$slotRefNode$.nextSibling,b=y["s-ol"];b=b.previousSibling;)if((C=b["s-nr"])&&C["s-sn"]===y["s-sn"]&&k===C.parentNode&&(!(C=C.nextSibling)||!C["s-nr"])){_=C;break}(!_&&k!==y.parentNode||y.nextSibling!==_)&&y!==_&&(!y["s-hn"]&&y["s-ol"]&&(y["s-hn"]=y["s-ol"].parentNode.nodeName),k.insertBefore(y,_))}else 1===y.nodeType&&(y.hidden=!0)}l&&function e(t){var n,r,i,o,a,s,l=t.childNodes;for(r=0,i=l.length;r<i;r++)if(1===(n=l[r]).nodeType){if(n["s-sr"])for(a=n["s-sn"],n.hidden=!1,o=0;o<i;o++)if(l[o]["s-hn"]!==n["s-hn"])if(s=l[o].nodeType,""!==a){if(1===s&&a===l[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===s||3===s&&""!==l[o].textContent.trim()){n.hidden=!0;break}e(n)}}(d.$elm$),g.$flags$&=-2,Y.length=0}(e,le(e,t)),g.$cssShim$&&g.$cssShim$.updateHost(a),h&&(h.map((function(e){return e()})),a["s-rc"]=void 0);var f=a["s-p"],d=function(){return ue(e)};0===f.length?d():(Promise.all(f).then(d),e.$flags$|=4,f.length=0)},le=function(e,t){try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2}catch(n){xe(n)}return t},ue=function(e){var t=e.$hostElement$,n=e.$lazyInstance$,r=e.$ancestorComponent$;64&e.$flags$?fe(n,"componentDidUpdate"):(e.$flags$|=64,pe(t),fe(n,"componentDidLoad"),e.$onReadyResolve$(t),r||he()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Le((function(){return oe(e,!1)})),e.$flags$&=-517},ce=function(e){var t=Ce(e),n=t.$hostElement$.isConnected;return n&&2==(18&t.$flags$)&&oe(t,!1),n},he=function(e){pe(v.documentElement),g.$flags$|=2,Le((function(){return re(d,"appload",{detail:{namespace:a}})}))},fe=function(e,t,n){if(e&&e[t])try{return e[t](n)}catch(r){xe(r)}},de=function(e,t){return e&&e.then?e.then(t):t()},pe=function(e){return e.classList.add("hydrated")},ve=function(e,t,n){if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);var r=Object.entries(t.$members$),i=e.prototype;if(r.map((function(e){var r=_slicedToArray(e,2),o=r[0],a=_slicedToArray(r[1],1)[0];31&a||2&n&&32&a?Object.defineProperty(i,o,{get:function(){return e=o,Ce(this).$instanceValues$.get(e);var e},set:function(e){var n=this;!function(e,t,r,i){var o,a,s=Ce(n),l=s.$instanceValues$.get(t),u=s.$flags$,c=s.$lazyInstance$;if(a=i.$members$[t][0],r=null==(o=r)||P(o)?o:4&a?"false"!==o&&(""===o||!!o):2&a?parseFloat(o):1&a?String(o):o,!(8&u&&void 0!==l||r===l)&&(s.$instanceValues$.set(t,r),c)){if(i.$watchers$&&128&u){var h=i.$watchers$[t];h&&h.map((function(e){try{c[e](r,l,t)}catch(n){xe(n)}}))}2==(18&u)&&oe(s,!1)}}(0,o,e,t)},configurable:!0,enumerable:!0}):1&n&&64&a&&Object.defineProperty(i,o,{value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ce(this);return r.$onInstancePromise$.then((function(){var e;return(e=r.$lazyInstance$)[o].apply(e,t)}))}})})),1&n){var o=new Map;i.attributeChangedCallback=function(e,t,n){var r=this;g.jmp((function(){var t=o.get(e);r[t]=(null!==n||"boolean"!=typeof r[t])&&n}))},e.observedAttributes=r.filter((function(e){var t=_slicedToArray(e,2);t[0];return 15&t[1][0]})).map((function(e){var n=_slicedToArray(e,2),r=n[0],i=n[1],a=i[1]||r;return o.set(a,r),512&i[0]&&t.$attrsToReflect$.push([r,a]),a}))}}return e},ge=function(e){fe(e,"connectedCallback")},me=function(e){if(0==(1&g.$flags$)){var t=Ce(e),r=t.$cmpMeta$;if(k(e,t,r.$listeners$,!0),1&t.$flags$)k(e,t,r.$listeners$,!1),ge(t.$lazyInstance$);else{var i;if(t.$flags$|=1,i=e.getAttribute("s-id")){if(m&&1&r.$flags$){var o=E(e.shadowRoot,r,e.getAttribute("s-mode"));e.classList.remove(o+"-h",o+"-s")}!function(e,t,n,r){var i=e.shadowRoot,o=[],a=i?[]:null,s=r.$vnode$=R(t,null);g.$orgLocNodes$||function e(t,n){if(1===t.nodeType){for(var r=0;r<t.childNodes.length;r++)e(t.childNodes[r],n);if(t.shadowRoot)for(r=0;r<t.shadowRoot.childNodes.length;r++)e(t.shadowRoot.childNodes[r],n)}else if(8===t.nodeType){var i=t.nodeValue.split(".");"o"===i[0]&&(n.set(i[1]+"."+i[2],t),t.nodeValue="",t["s-en"]=i[3])}}(v.body,g.$orgLocNodes$=new Map),e["s-id"]=n,e.removeAttribute("s-id"),function e(t,n,r,i,o,a,s){var l,u,c,h;if(1===a.nodeType){for((l=a.getAttribute("c-id"))&&((u=l.split("."))[0]!==s&&"0"!==u[0]||(c={$flags$:0,$hostId$:u[0],$nodeId$:u[1],$depth$:u[2],$index$:u[3],$tag$:a.tagName.toLowerCase(),$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},n.push(c),a.removeAttribute("c-id"),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,t=c,i&&"0"===c.$depth$&&(i[c.$index$]=c.$elm$))),h=a.childNodes.length-1;h>=0;h--)e(t,n,r,i,o,a.childNodes[h],s);if(a.shadowRoot)for(h=a.shadowRoot.childNodes.length-1;h>=0;h--)e(t,n,r,i,o,a.shadowRoot.childNodes[h],s)}else if(8===a.nodeType)(u=a.nodeValue.split("."))[1]!==s&&"0"!==u[1]||(l=u[0],c={$flags$:0,$hostId$:u[1],$nodeId$:u[2],$depth$:u[3],$index$:u[4],$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===l?(c.$elm$=a.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,n.push(c),a.remove(),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c,i&&"0"===c.$depth$&&(i[c.$index$]=c.$elm$))):c.$hostId$===s&&("s"===l?(c.$tag$="slot",a["s-sn"]=u[5]?c.$name$=u[5]:"",a["s-sr"]=!0,i&&(c.$elm$=v.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),a.parentNode.insertBefore(c.$elm$,a),a.remove(),"0"===c.$depth$&&(i[c.$index$]=c.$elm$)),r.push(c),t.$children$||(t.$children$=[]),t.$children$[c.$index$]=c):"r"===l&&(i?a.remove():(o["s-cr"]=a,a["s-cn"]=!0))));else if(t&&"style"===t.$tag$){var f=R(null,a.textContent);f.$elm$=a,f.$index$="0",t.$children$=[f]}}(s,o,[],a,e,e,n),o.map((function(e){var n=e.$hostId$+"."+e.$nodeId$,r=g.$orgLocNodes$.get(n),o=e.$elm$;r&&m&&""===r["s-en"]&&r.parentNode.insertBefore(o,r.nextSibling),i||(o["s-hn"]=t,r&&(o["s-ol"]=r,o["s-ol"]["s-nr"]=o)),g.$orgLocNodes$.delete(n)})),i&&a.map((function(e){e&&i.appendChild(e)}))}(e,r.$tagName$,i,t)}i||12&r.$flags$&&ye(e);for(var a=e;a=a.parentNode||a.host;)if(1===a.nodeType&&a.hasAttribute("s-id")&&a["s-p"]||a["s-p"]){ie(t,t.$ancestorComponent$=a);break}r.$members$&&Object.entries(r.$members$).map((function(t){var n=_slicedToArray(t,2),r=n[0];if(31&_slicedToArray(n[1],1)[0]&&e.hasOwnProperty(r)){var i=e[r];delete e[r],e[r]=i}})),Le((function(){return(i=_asyncToGenerator(regeneratorRuntime.mark((function e(t,r,i,o,a){var s,l,u,c,h,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=(32&r.$flags$)){e.next=25;break}if(r.$flags$|=32,!(a=Te(i)).then){e.next=7;break}return s=function(){},e.next=5,a;case 5:a=e.sent,s();case 7:a.isProxied||(i.$watchers$=a.watchers,ve(a,i,2),a.isProxied=!0),r.$flags$|=8;try{new a(r)}catch(o){xe(o)}if(r.$flags$&=-9,r.$flags$|=128,ge(r.$lazyInstance$),!a.style){e.next=25;break}if("string"!=typeof(l=a.style)&&(l=l[r.$modeName$=function(e){return Ae.map((function(t){return t(e)})).find((function(e){return!!e}))}(t)]),u=T(i,r.$modeName$),Me.has(u)){e.next=25;break}if(c=function(){},e.t0=8&i.$flags$,!e.t0){e.next=23;break}return e.next=22,n.e(64).then(n.bind(null,"/xFy")).then((function(e){return e.scopeCss(l,u,!1)}));case 22:l=e.sent;case 23:x(u,l,!!(1&i.$flags$)),c();case 25:h=r.$ancestorComponent$,f=function(){return oe(r,!0)},h&&h["s-rc"]?h["s-rc"].push(f):f();case 27:case"end":return e.stop()}}),e)}))),function(e,t,n,r,o){return i.apply(this,arguments)})(e,t,r);var i}))}}},ye=function(e){var t=e["s-cr"]=v.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},be=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],i=n.exclude||[],o=d.customElements,a=v.head,s=a.querySelector("meta[charset]"),l=v.createElement("style"),u=[],c=v.querySelectorAll("[sty-id]"),h=!0,f=0;for(Object.assign(g,n),g.$resourcesUrl$=new URL(n.resourcesUrl||"./",v.baseURI).href,n.syncQueue&&(g.$flags$|=4),g.$flags$|=2;f<c.length;f++)x(c[f].getAttribute("sty-id"),c[f].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0);e.map((function(e){return e[1].map((function(n){var a={$flags$:n[0],$tagName$:n[1],$members$:n[2],$listeners$:n[3]};a.$members$=n[2],a.$listeners$=n[3],a.$attrsToReflect$=[],a.$watchers$={},!m&&1&a.$flags$&&(a.$flags$|=8);var s=a.$tagName$,l=function(e){_inherits(r,_wrapNativeSuper(HTMLElement));var n=_createSuper(r);function r(e){var t;return _classCallCheck(this,r),t=n.call(this,e),Se(e=_assertThisInitialized(t),a),1&a.$flags$&&(m?e.attachShadow({mode:"open",delegatesFocus:!!(16&a.$flags$)}):"shadowRoot"in e||(e.shadowRoot=e)),t}return _createClass(r,[{key:"connectedCallback",value:function(){var e=this;t&&(clearTimeout(t),t=null),h?u.push(this):g.jmp((function(){return me(e)}))}},{key:"disconnectedCallback",value:function(){var e=this;g.jmp((function(){return function(e){if(0==(1&g.$flags$)){var t=Ce(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map((function(e){return e()})),t.$rmListeners$=void 0),g.$cssShim$&&g.$cssShim$.removeHost(e),fe(n,"disconnectedCallback"),fe(n,"componentDidUnload")}}(e)}))}},{key:"forceUpdate",value:function(){ce(this)}},{key:"componentOnReady",value:function(){return Ce(this).$onReadyPromise$}}]),r}();a.$lazyBundleId$=e[0],i.includes(s)||o.get(s)||(r.push(s),o.define(s,ve(l,a,1)))}))})),l.innerHTML=r+"{visibility:hidden}.hydrated{visibility:inherit}",l.setAttribute("data-styles",""),a.insertBefore(l,s?s.nextSibling:a.firstChild),h=!1,u.length?u.map((function(e){return e.connectedCallback()})):g.jmp((function(){return t=setTimeout(he,30)}))},ke=function(e){var t=new URL(e,g.$resourcesUrl$);return t.origin!==d.location.origin?t.href:t.pathname},_e=new WeakMap,Ce=function(e){return _e.get(e)},we=function(e,t){return _e.set(t.$lazyInstance$=e,t)},Se=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise((function(e){return n.$onInstanceResolve$=e})),n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e})),e["s-p"]=[],e["s-rc"]=[],k(e,n,t.$listeners$,!1),_e.set(e,n)},Oe=function(e,t){return t in e},xe=function(e){return console.error(e)},Ee=new Map,Te=function(e,t,r){var i=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$,a=Ee.get(o);return a?a[i]:n("kLfG")("./".concat(o,".entry.js")).then((function(e){return Ee.set(o,e),e[i]}),xe)},Me=new Map,Ae=[],Ie=[],Pe=[],De=[],Ne=function(e,t){return function(n){e.push(n),f||(f=!0,t&&4&g.$flags$?Le(Re):g.raf(Re))}},je=function(e,t){for(var n=0,r=0;n<e.length&&(r=performance.now())<t;)try{e[n++](r)}catch(i){xe(i)}n===e.length?e.length=0:0!==n&&e.splice(0,n)},Re=function e(){h++,function(e){for(var t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){xe(n)}e.length=0}(Ie);var t=2==(6&g.$flags$)?performance.now()+14*Math.ceil(.1*h):1/0;je(Pe,t),je(De,t),Pe.length>0&&(De.push.apply(De,Pe),Pe.length=0),(f=Ie.length+Pe.length+De.length>0)?g.raf(e):h=0},Le=function(e){return y().then(e)},Fe=Ne(Ie,!1),Be=Ne(Pe,!0),Ve={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},f1vJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return I})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return C})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return x})),n.d(t,"i",(function(){return s})),n.d(t,"j",(function(){return T})),n.d(t,"k",(function(){return h})),n.d(t,"l",(function(){return f})),n.d(t,"m",(function(){return d})),n.d(t,"n",(function(){return A})),n.d(t,"o",(function(){return v}));var r=n("ws0j"),i=n("gHap"),o=n("x/Nk"),a=0,s=new WeakMap,l=function(e){return{create:function(t){return m(e,t)},dismiss:function(t,n,r){return k(document,t,n,e,r)},getTop:(t=_asyncToGenerator(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",_(document,e));case 1:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})};var t},u=l("ion-alert"),c=l("ion-action-sheet"),h=l("ion-loading"),f=l("ion-modal"),d=l("ion-picker"),p=l("ion-popover"),v=l("ion-toast"),g=function(e){"undefined"!=typeof document&&b(document);var t=a++;e.overlayIndex=t,e.hasAttribute("id")||(e.id="ion-overlay-"+t)},m=function(e,t){return"undefined"!=typeof customElements?customElements.whenDefined(e).then((function(){var n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,t),S(document).appendChild(n),n.componentOnReady()})):Promise.resolve()},y='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]), textarea, button, select, .ion-focusable',b=function(e){0===a&&(a=1,e.addEventListener("focus",(function(t){return function(e,t){var n,r,o,a=_(t),s=e.target;if(a&&s)if(a===s)a.lastFocus=void 0;else{var l=Object(i.g)(a).querySelector(".ion-overlay-wrapper");if(!l)return;if(l.contains(s))a.lastFocus=s;else{var u=a.lastFocus;n=a,r=l.querySelector(y),(o=r&&r.shadowRoot)&&(r=o.querySelector("input:not([type=hidden]), textarea, button, select")||r),r?r.focus():n.focus(),u===t.activeElement&&function(e,t){var n=Array.from(e.querySelectorAll(y)),r=n.length>0?n[n.length-1]:null,i=r&&r.shadowRoot;i&&(r=i.querySelector("input:not([type=hidden]), textarea, button, select")||r),r?r.focus():t.focus()}(l,a),a.lastFocus=t.activeElement}}}(t,e)}),!0),e.addEventListener("ionBackButton",(function(t){var n=_(e);n&&n.backdropDismiss&&t.detail.register(o.OVERLAY_BACK_BUTTON_PRIORITY,(function(){return n.dismiss(void 0,I)}))})),e.addEventListener("keyup",(function(t){if("Escape"===t.key){var n=_(e);n&&n.backdropDismiss&&n.dismiss(void 0,I)}})))},k=function(e,t,n,r,i){var o=_(e,r,i);return o?o.dismiss(t,n):Promise.reject("overlay does not exist")},_=function(e,t,n){var r=function(e,t){return void 0===t&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter((function(e){return e.overlayIndex>0}))}(e,t);return void 0===n?r[r.length-1]:r.find((function(e){return e.id===n}))},C=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n,i,o,a){var s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.presented){e.next=2;break}return e.abrupt("return");case 2:return t.presented=!0,t.willPresent.emit(),s=Object(r.b)(t),l=t.enterAnimation?t.enterAnimation:r.c.get(n,"ios"===s?i:o),e.next=6,O(t,l,t.el,a);case 6:if(e.t0=e.sent,!e.t0){e.next=9;break}t.didPresent.emit();case 9:t.keyboardClose&&t.el.focus();case 10:case"end":return e.stop()}}),e)})));return function(t,n,r,i,o){return e.apply(this,arguments)}}(),w=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n,i,o,a,l,u){var c,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.presented){e.next=2;break}return e.abrupt("return",!1);case 2:if(t.presented=!1,e.prev=3,t.el.style.setProperty("pointer-events","none"),t.willDismiss.emit({data:n,role:i}),c=Object(r.b)(t),h=t.leaveAnimation?t.leaveAnimation:r.c.get(o,"ios"===c?a:l),e.t0="gesture"!==i,!e.t0){e.next=10;break}return e.next=10,O(t,h,t.el,u);case 10:t.didDismiss.emit({data:n,role:i}),s.delete(t),e.next=17;break;case 14:e.prev=14,e.t1=e.catch(3),console.error(e.t1);case 17:return e.abrupt("return",(t.el.remove(),!0));case 18:case"end":return e.stop()}}),e,null,[[3,14]])})));return function(t,n,r,i,o,a,s){return e.apply(this,arguments)}}(),S=function(e){return e.querySelector("ion-app")||e.body},O=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n,i,o){var a,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i.classList.remove("overlay-hidden"),a=n(i.shadowRoot||t.el,o),t.animated&&r.c.getBoolean("animated",!0)||a.duration(0),t.keyboardClose&&a.beforeAddWrite((function(){var e=i.ownerDocument.activeElement;e&&e.matches("input, ion-input, ion-textarea")&&e.blur()})),l=s.get(t)||[],s.set(t,[].concat(_toConsumableArray(l),[a])),e.next=7,a.play();case 7:return e.abrupt("return",!0);case 8:case"end":return e.stop()}}),e)})));return function(t,n,r,i){return e.apply(this,arguments)}}(),x=function(e,t){var n,r=new Promise((function(e){return n=e}));return E(e,t,(function(e){n(e.detail)})),r},E=function(e,t,n){e.addEventListener(t,(function r(i){e.removeEventListener(t,r),n(i)}))},T=function(e){return"cancel"===e||e===I},M=function(e){return e()},A=function(e,t){if("function"==typeof e)return r.c.get("_zoneGate",M)((function(){try{return e(t)}catch(n){console.error(n)}}))},I="backdrop"},fILq:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function e(){_classCallCheck(this,e)}},g4Gf:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("mrSG"),i=(n("kbZ1"),n("J20c"),n("EGUZ"),n("sUqe")),o=n("+mLH");n("2IJ5"),n("0+M4"),n("olg3"),n("wZ9J");var a=function(){function e(t,n,r,o,a,s,l,u,c,h,f){var d=this;_classCallCheck(this,e),this.membersManager=t,this.userManager=n,this.navCtrl=r,this.modalCtrl=o,this.itemsManager=a,this.chatsManager=s,this.storageManager=l,this.platform=u,this.consoleDialog=c,this.events=h,this.actionSheetCtrl=f,this.editMode=!1,this.editMode=!1,this.loaded=!1,this.item&&null!=this.item.chat&&(h.subscribe(i.c.NewMessage+this.item.chat.chatID,(function(e,t){d.chatsManager.findChat(d.item.chat.chatID).messages.push(e)})),h.subscribe("socketmanagerConnected",(function(e,t){d.initChat()})))}return _createClass(e,[{key:"ngAfterContentInit",value:function(){this.item=this.itemObject,console.log("this.itemObject:",this.itemObject),this.userId=this.itemObject.userID,this.currentUserId=this.userManager.user.userID,this.chat=this.item.chat,this.loaded=!0,this.chatsManager.socketManager.isConnected()&&this.item.isAutoInit()&&this.chatsManager.updateChat(this.item)}},{key:"ngAfterViewInit",value:function(){}},{key:"handleMessage",value:function(e){var t=JSON.parse(e);if(t.msg){var n=JSON.parse(t.msg);for(var r in n.members){var i=new o.a(n.members[r]);this.chat.members.push(i)}}}},{key:"getMessagesNumber",value:function(){return this.item.chat&&this.item.chat.unreadMessagesNumber>0?this.item.chat.unreadMessagesNumber:""}},{key:"getLastMessageSummary",value:function(){if(this.item.chat)return this.item.chat.getLastMessageSummary()}},{key:"addPerson",value:function(e){var t=this;e.preventDefault(),e.stopPropagation(),this.initChat().then((function(e){t.chatsManager.getMembers(t.chat,t)}))}},{key:"showOptionsLeave",value:function(e){return r.a(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.actionSheetCtrl.create({subHeader:"Modify this Item",cssClass:"itemActionSheet",buttons:[{cssClass:"deleteBtn",text:"Delete",role:"destructive",handler:function(){t.deleteItem()}},{text:"leave",handler:function(){t.groupLeave(),console.log("leave clicked")}},{text:"Cancel",role:"cancel",handler:function(){console.log("Cancel clicked")}}]});case 2:e.sent.present();case 3:case"end":return e.stop()}}),e,this)})))}},{key:"groupLeave",value:function(){console.log("this.item is:",this.item),this.chatsManager.leaveGroup(this.item)}},{key:"showOptions",value:function(e){return r.a(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.actionSheetCtrl.create({subHeader:"Modify this Item",cssClass:"itemActionSheet",buttons:[{cssClass:"deleteBtn",text:"Delete",role:"destructive",handler:function(){t.deleteItem()}},{text:"Cancel",role:"cancel",handler:function(){console.log("Cancel clicked")}}]});case 2:e.sent.present();case 3:case"end":return e.stop()}}),e,this)})))}},{key:"deleteItem",value:function(){this.itemsManager.deleteItem(this.item)}},{key:"edit",value:function(e){this.editMode=!0}},{key:"save",value:function(e){e.stopPropagation(),this.editMode=!1,this.item.title=this.editedTitle,this.itemsManager.save(),console.log("item saved")}},{key:"getIconName",value:function(){var e;switch(this.item.type){case"dictionary":e="bookmarks";break;case"news":e="paper-plane";break;case"partner":e="people";break;case"puzzle":e="apps";break;case"idiom":e="ios-quote";break;case"quiz":e="ios-ribbon";break;case"artikelQuiz":case"imageQuiz":case"translationQuiz":e="ribbon";break;case"leitner":e="cube"}return e}},{key:"initChat",value:function(){return this.chatsManager.initChat(this.item)}},{key:"isDictionary",value:function(){return"dictionary"==this.item.type}},{key:"openItem",value:function(){this.initChat().then((function(e){}))}},{key:"hasMembers",value:function(){if(this.item.chat)return this.item.chat.hasMembers()}},{key:"isItemOwner",value:function(){var e=this;return this.hasMembers()&&this.item.chat.members.filter((function(t){return t.userID==e.userManager.user.userID})).length>0||this.userId==this.currentUserId}}]),e}()},gCtI:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("2XxT"),n("0+M4");var r=function(){var e=function(){function e(t,n,r){_classCallCheck(this,e),this.http=t,this.timeManager=n,this.events=r,console.log("Hello AppStateManagerProvider Provider"),e.isActive()&&(console.log("lets start timer"),this.timeManager.startTimer());var i=this;document.addEventListener("resume",(function(){i.onResume(i)}),!1),document.addEventListener("pause",(function(){i.onPause(i)}),!1)}return _createClass(e,[{key:"onResume",value:function(t){e.foreground=!0,console.log("timer should resume"),t.timeManager.startTimer(),this.events.publish("resumeApp")}},{key:"onPause",value:function(t){e.foreground=!1,console.log("timer should pause"),t.timeManager.stopTimer()}}],[{key:"isActive",value:function(){return e.foreground}}]),e}();return e.foreground=!0,e}()},gHap:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return a})),n.d(t,"g",(function(){return r})),n.d(t,"h",(function(){return o})),n.d(t,"i",(function(){return f})),n.d(t,"j",(function(){return c})),n.d(t,"k",(function(){return h})),n.d(t,"l",(function(){return i}));var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return e.shadowRoot||t},i=function(e){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e)},o=function(e){return!!e.shadowRoot&&!!e.attachShadow},a=function(e){var t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},s=function(e,t,n,r,i){if(e||o(t)){var a=t.querySelector("input.aux-input");a||((a=t.ownerDocument.createElement("input")).type="hidden",a.classList.add("aux-input"),t.appendChild(a)),a.disabled=i,a.name=n,a.value=r||""}},l=function(e,t,n){return Math.max(e,Math.min(t,n))},u=function(e,t){if(!e){var n="ASSERT: "+t;throw console.error(n),new Error(n)}},c=function(e){return e.timeStamp||Date.now()},h=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var n=t[0];return{x:n.clientX,y:n.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},f=function(e){var t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error('"'.concat(e,'" is not a valid value for [side]. Use "start" or "end" instead.'))}},d=function(e,t){var n=e._original||e;return{_original:e,emit:p(n.emit.bind(n),t)}},p=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout.apply(void 0,[e,n].concat(i))}}},gRHU:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("2fFW"),i=n("NJ4a"),o={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}},h4wn:function(e,t,n){"use strict";var r=n("nAxv"),i=(n("EGUZ"),n("olg3"),n("3MOV"),n("/qZA"),n("2IJ5"),n("sUqe"));n("AyaB");var o=function(){var e=function(){function e(t){_classCallCheck(this,e),this.syncing=!1,this.friendsMgr=t}return _createClass(e,[{key:"setSyncing",value:function(e){this.syncing=e}},{key:"isSyncing",value:function(){return this.syncing}},{key:"sync",value:function(){var t,n=this,r=[],i=_createForOfIteratorHelper(this.friendsMgr.friends);try{for(i.s();!(t=i.n()).done;){var o=t.value;r.push(o.userID)}}catch(a){i.e(a)}finally{i.f()}this.isSyncing()||this.friendsMgr.socketManager.asyncQuery(e.syncFriendsAction,{localFriendsIDs:r}).then((function(e){n.setSyncing(!1);var t,r=e.getParam("created")||[],i=e.getParam("deleted")||[],o=_createForOfIteratorHelper(r);try{for(o.s();!(t=o.n()).done;){var s=t.value;n.friendsMgr.updateFriend(s)}}catch(a){o.e(a)}finally{o.f()}var l,u=_createForOfIteratorHelper(i);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.friendsMgr.deleteFriendLocally(c)}}catch(a){u.e(a)}finally{u.f()}})),this.setSyncing(!0)}},{key:"deleteFriend",value:function(t){this.friendsMgr.socketManager.asyncQuery(e.deleteFriendAction,t.getSimpleModel())}}]),e}();return e.getNewFriends="getNewFriends",e.loadMyFriends="loadMyFriends",e.syncFriendsAction="syncFriends",e.deleteFriendAction="deleteFriend",e}();n("0+M4"),n.d(t,"a",(function(){return a}));var a=function(){function e(t,n,r,i,o,a,s,l){_classCallCheck(this,e),this.storageManager=t,this.userManager=n,this.socketManager=r,this.friendsDatabaseManager=i,this.consoleDialog=o,this.platform=a,this.events=s,this.ajaxBridge=l,this.storageFriendNotificationNumber="friendsNotNum",this.friends=[],this.backUpFriends=[],this.init()}return _createClass(e,[{key:"init",value:function(){var e=this;this.userManager.loggedIn().then((function(){console.log("friend storage name logged in",e.userManager.user),e.friendsStorage=e.userManager.user.userID+"friends",e.storageFriendNotificationNumber=e.userManager.user.userID+"friends",console.log("friend storage name",e.friendsStorage,e.storageFriendNotificationNumber),e.newFriendsNumber=0,e.synchronizer=new o(e),e.getLoadFriends().then((function(){e.synchronizer.sync()})),e.registerEvents()}))}},{key:"registerEvents",value:function(){var e=this;this.events.subscribe(i.b.UpdateFriends,(function(t,n){e.updateFriend(t)}))}},{key:"updateFriend",value:function(e){var t,n=new r.a(e),i=_createForOfIteratorHelper(this.friends);try{for(i.s();!(t=i.n()).done;){if(t.value.userID==n.userID)return!1}}catch(o){i.e(o)}finally{i.f()}this.addToDatabase(n),this.friends.push(n),this.newFriendsNumber++,this.save()}},{key:"addToDatabase",value:function(e){return this.platform.is("cordova")&&this.friendsDatabaseManager.add(e),!0}},{key:"addViaAjaxBridge",value:function(e){var t=this;this.ajaxBridge.queryPro("addFriend",{email:e},this.userManager.user.getMainAccessToken()).then((function(e){if(null==e.found){var n=new r.a(e);t.friends.push(n),t.save()}else console.log("Friend not found")}))}},{key:"handleMessage",value:function(e){var t=JSON.parse(e);if(t.msg){var n=JSON.parse(t.msg);if(n.userID){var i=new r.a(n);if(this.userManager.user.email==i.email)return!1;var o,a=!1,s=_createForOfIteratorHelper(this.friends);try{for(s.s();!(o=s.n()).done;){o.value.email==i.email&&(a=!0)}}catch(l){s.e(l)}finally{s.f()}if(a)return!0;this.friends.push(i),this.friendsDatabaseManager.add(i),this.save()}}else console.log("Friend not found");console.log(" I received this",t)}},{key:"add",value:function(e){this.socketManager.queryPro("addFriend",{email:e},this,this.userManager.user.getMainAccessToken())}},{key:"searchBackUp",value:function(){this.backUpFriends=[];var e,t=_createForOfIteratorHelper(this.friends);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.backUpFriends.push(n)}}catch(r){t.e(r)}finally{t.f()}}},{key:"search",value:function(e){this.friends=this.backUpFriends.filter((function(t){if(t.email.includes(e)||t.name.includes(e))return t}))}},{key:"endSearch",value:function(){this.friends=this.backUpFriends}},{key:"getSimpleModelOfFriends",value:function(){var e,t=[],n=_createForOfIteratorHelper(this.friends);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r.getSimpleModelOfFriend())}}catch(i){n.e(i)}finally{n.f()}return console.log("simple model of friends",t),t}},{key:"save",value:function(){this.platform.is("cordova")||this.storageManager.set(this.friendsStorage,this.getSimpleModelOfFriends())}},{key:"getLoadFriends",value:function(){var e=this;return new Promise((function(t,n){e.platform.is("cordova")?e.userManager.isLoggedIn().then((function(n){n&&e.friendsDatabaseManager.getFriends().then((function(n){e.friends=n,t(e.friends)}))})):e.userManager.loggedIn().then((function(n){e.storageManager.get(e.friendsStorage).then((function(n){for(var i in e.friends.length=0,n)e.friends.push(new r.a(n[i]));t(e.friends)}))}))}))}},{key:"initFriends",value:function(){var e,t=_createForOfIteratorHelper(this.friends);try{for(t.s();!(e=t.n()).done;)e.value}catch(n){t.e(n)}finally{t.f()}}},{key:"deleteItem",value:function(e){this.deleteFriendLocally(e),this.synchronizer.deleteFriend(e)}},{key:"deleteFriendLocally",value:function(e){var t=this.friends.indexOf(e);this.friends.splice(t,1),this.save()}},{key:"saveNotificationNumber",value:function(){this.storageManager.set(this.storageFriendNotificationNumber,this.notficationsNumber)}},{key:"clearFriendsNotification",value:function(){this.newFriendsNumber=0}},{key:"getNotificationsNumber",value:function(){return this.newFriendsNumber}}]),e}()},hKQe:function(e,t,n){"use strict";n("HDdC"),n("KOl+")},hOhj:function(e,t,n){"use strict";var r=n("8Y7J"),i=(n("KCVW"),n("XNiG")),o=n("LRne"),a=n("HDdC"),s=n("xgIS");n("3N8a"),n("IjjT");var l=n("VRyK"),u=(n("/uUt"),n("D0XW")),c=n("l7GE"),h=n("ZUHj"),f=function(){function e(t){_classCallCheck(this,e),this.durationSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new d(e,this.durationSelector))}}]),e}(),d=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).durationSelector=r,i.hasValue=!1,i}return _createClass(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(r){return this.destination.error(r)}var n=Object(h.a)(this,t);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(e,t,n,r){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(c.a),p=n("DH7j");function v(e){return!Object(p.a)(e)&&e-parseFloat(e)+1>=0}var g=n("z+Ro");function m(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function y(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.a;return t=function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=-1;return v(t)?r=Number(t)<1?1:Number(t):Object(g.a)(t)&&(n=t),Object(g.a)(n)||(n=u.a),new a.a((function(t){var i=v(e)?e:+e-n.now();return n.schedule(m,i,{index:0,period:r,subscriber:t})}))}(e,n)},function(e){return e.lift(new f(t))}}var b=n("pLZG");n("1G5W"),n("JX91"),n("7o/Q"),n("eIep"),n("quSY"),n("EY2u"),n("z6cu"),n("9ppp"),n("Ylt2");var k=n("/HVE");n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return S})),n.d(t,"d",(function(){return O})),n.d(t,"c",(function(){return x}));var _,C,w=((_=function(){function e(t,n){_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._scrolled=new i.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return _createClass(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe((function(){return t._scrolled.next(e)})))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new a.a((function(n){e._globalSubscription||e._addGlobalListener();var r=t>0?e._scrolled.pipe(y(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):Object(o.a)()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(t,n){return e.deregister(n)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Object(b.a)((function(e){return!e||n.indexOf(e)>-1})))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach((function(r,i){t._scrollableContainsElement(i,e)&&n.push(i)})),n}},{key:"_scrollableContainsElement",value:function(e,t){var n=t.nativeElement,r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return Object(s.a)(window.document,"scroll").subscribe((function(){return e._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).ngInjectableDef=Object(r.Qb)({factory:function(){return new _(Object(r.Rb)(r.x),Object(r.Rb)(k.a))},token:_,providedIn:"root"}),_),S=function e(){_classCallCheck(this,e)},O=((C=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._platform=t,n.runOutsideAngular((function(){r._change=t.isBrowser?Object(l.a)(Object(s.a)(window,"resize"),Object(s.a)(window,"orientationchange")):Object(o.a)(),r._invalidateCache=r.change().subscribe((function(){return r._updateViewportSize()}))}))}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,r=t.height;return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=document.documentElement,t=e.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||e.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||e.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(y(e)):this._change}},{key:"_updateViewportSize",value:function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}}}]),e}()).ngInjectableDef=Object(r.Qb)({factory:function(){return new C(Object(r.Rb)(k.a),Object(r.Rb)(r.x))},token:C,providedIn:"root"}),C),x={provide:O,deps:[[new r.y,new r.I,O],k.a,r.x],useFactory:function(e,t,n){return e||new O(t,n)}}},hqw5:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=(n("h4wn"),n("J20c"),n("kbZ1"),n("2IJ5"),n("nAxv"),n("+her")),o=function(){function e(t,n,r,i,o,a){_classCallCheck(this,e),this.actionSheetCtrl=t,this.friendsManager=n,this.chatsManager=r,this.itemsManager=i,this.consoleDialog=o,this.modalCtrl=a,this.unreadMessagesNumber=0}return _createClass(e,[{key:"showOptions",value:function(e){return r.a(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.actionSheetCtrl.create({subHeader:"Modify this Item",cssClass:"itemActionSheet",buttons:[{cssClass:"deleteBtn",text:"Delete",role:"destructive",handler:function(){t.deleteItem()}},{cssClass:"editBtn",text:"Edit",handler:function(){console.log("Archive clicked")}},{text:"Cancel",role:"cancel",handler:function(){console.log("Cancel clicked")}}]});case 2:e.sent.present();case 3:case"end":return e.stop()}}),e,this)})))}},{key:"deleteItem",value:function(){this.friendsManager.deleteItem(this.friend)}},{key:"getMessagesNumber",value:function(){return this.friend.item.chat&&this.friend.item.chat.unreadMessagesNumber>0?this.friend.item.chat.unreadMessagesNumber:""}},{key:"hasImage",value:function(){return null!=this.friend.imageUrl}},{key:"ionViewDidLoad",value:function(){var e=this;this.initChat().then((function(t){e.unreadMessagesNumber=t.unreadMessagesNumber}))}},{key:"ngAfterViewInit",value:function(){this.initChat()}},{key:"ngAfterContentInit",value:function(){this.chatsManager.updateChat(this.friend.item)}},{key:"registerEvents",value:function(){}},{key:"getFirstChars",value:function(){return null!=this.friend.name&&null!=this.friend.lastname?this.friend.name.slice(0,1)+this.friend.lastname.slice(0,1):null!=this.friend.email?this.friend.email.slice(0,1):":)"}},{key:"initChat",value:function(){return this.chatsManager.initChat(this.friend.item)}},{key:"openChat",value:function(){var e=this;this.initChat().then((function(t){return r.a(e,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalCtrl.create({component:i.a,componentProps:{chat:t,allowDescription:!1}});case 2:(n=e.sent).present(),n.onDidDismiss().then((function(e){console.log("heeelp"),r.chatsManager.clearCurrentChat()}));case 4:case"end":return e.stop()}}),e,this)})))}))}}]),e}()},i9lY:function(e,t,n){"use strict";var r=n("zI0Y"),i=n("xijw"),o=n("pfga"),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).examples=[],r.name=e.proposition,r.word=e.word,r.example=new o.a({sentence:e.example}),r}return n}(r.a);n.d(t,"a",(function(){return s}));var s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;_classCallCheck(this,n),(r=t.call(this,e)).perfect=e.perfect;var o=_assertThisInitialized(r);return r.conjunctions=[],r.propositions=[],e.conjunctions&&Object.keys(e.conjunctions).forEach((function(t){o.conjunctions.push(new i.a(e.conjunctions[t]))})),r}return _createClass(n,[{key:"hasConjunction",value:function(){return this.conjunctions.length>0}},{key:"addProposition",value:function(e){null!=e&&this.propositions.push(new a(e))}}]),n}(r.a)},iEnR:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("+mLH"),i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,r,i,o)).sqlite=e,a.consoleDialog=r,a.injector=i,a.platform=o,a.init().then((function(){a.createUsersDataTable()})),a}return _createClass(n,[{key:"getUserByUserID",value:function(e){var t=this;return new Promise((function(n,i){t.init().then((function(){t.databaseObj.executeSql("select * from usersdata where userID='"+e.userID+"'",[]).then((function(e){var t;if(e.rows.length>0)for(var i=0;i<e.rows.length;i++)t=new r.a(e.rows.item(i));else t=new r.a({});n(t)})).catch((function(e){console.log("error table of usersdata",e)}))}))}))}},{key:"init",value:function(){var e=this;return new Promise((function(t,r){null!=e.databaseObj?t(e.databaseObj):_get(_getPrototypeOf(n.prototype),"init",e).call(e,e.userManager.user).then((function(e){t(e)}))}))}},{key:"createUsersDataTable",value:function(){this.databaseObj.executeSql("create table IF NOT EXISTS usersdata \n (userID VARCHAR(32),email VARCHAR(32) UNIQUE,name VARCHAR(32),familyName VARCHAR(32))",[]).then((function(){console.log("Executed SQLL")})).catch((function(e){console.log(e)}))}},{key:"save",value:function(e){this.databaseObj.executeSql('INSERT OR IGNORE INTO usersdata (userID,email,name,familyName) VALUES ("'+e.userID+'","'+e.email+'","'+e.name+'","'+e.familyName+'")').then((function(e){console.log("user has beend saved in usersdata successfully")})).catch((function(e){console.log(" there was an error adding usersdata to database",e)}))}}]),n}((n("2IJ5"),n("6GXZ"),n("GAbP")).a)},iInd:function(e,t,n){"use strict";var r=n("SVse"),i=n("8Y7J"),o=n("LRne"),a=n("Cfvw"),s=n("2Vo4"),l=n("HDdC"),u=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),c=n("z+Ro"),h=n("DH7j"),f=n("l7GE"),d=n("ZUHj"),p=n("yCtX"),v={},g=function(){function e(t){_classCallCheck(this,e),this.resultSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new m(e,this.resultSelector))}}]),e}(),m=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return _createClass(n,[{key:"_next",value:function(e){this.values.push(v),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(Object(d.a)(this,r,r,n))}}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n,r,i){var o=this.values,a=this.toRespond?o[n]===v?--this.toRespond:this.toRespond:0;o[n]=t,0===a&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(f.a),y=n("NXyV"),b=n("XNiG"),k=n("EY2u"),_=n("lJxs"),C=n("0EUg"),w=n("pLZG"),S=n("BFxc"),O=n("7o/Q");function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M;return function(t){return t.lift(new E(e))}}var E=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new T(e,this.errorFactory))}}]),e}(),T=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).errorFactory=r,i.hasValue=!1,i}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(O.a);function M(){return new u}var A=n("xbPD"),I=n("SpAZ");function P(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Object(w.a)((function(t,n){return e(t,n,r)})):I.a,Object(S.a)(1),n?Object(A.a)(t):x((function(){return new u})))}}var D=n("JIr8"),N=n("IzEk");function j(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Object(w.a)((function(t,n){return e(t,n,r)})):I.a,Object(N.a)(1),n?Object(A.a)(t):x((function(){return new u})))}}var R=n("5+tZ"),L=function(){function e(t,n,r){_classCallCheck(this,e),this.predicate=t,this.thisArg=n,this.source=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new F(e,this.predicate,this.thisArg,this.source))}}]),e}(),F=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e)).predicate=r,a.thisArg=i,a.source=o,a.index=0,a.thisArg=i||_assertThisInitialized(a),a}return _createClass(n,[{key:"notifyComplete",value:function(e){this.destination.next(e),this.destination.complete()}},{key:"_next",value:function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(O.a),B=n("eIep"),V=n("JX91"),H=n("Kqap"),z=n("bOdf"),$=n("128B"),q=n("vkgz"),U=n("nYR2"),W=n("bHdf"),G=n("cUpR");n.d(t,"C",(function(){return he})),n.d(t,"s",(function(){return Cn})),n.d(t,"z",(function(){return Pn})),n.d(t,"u",(function(){return xn})),n.d(t,"A",(function(){return Dn})),n.d(t,"B",(function(){return Nn})),n.d(t,"w",(function(){return Tn})),n.d(t,"v",(function(){return En})),n.d(t,"y",(function(){return In})),n.d(t,"t",(function(){return Sn})),n.d(t,"x",(function(){return An})),n.d(t,"D",(function(){return kn})),n.d(t,"o",(function(){return pn})),n.d(t,"d",(function(){return J})),n.d(t,"l",(function(){return tn})),n.d(t,"m",(function(){return hn})),n.d(t,"k",(function(){return rn})),n.d(t,"i",(function(){return _n})),n.d(t,"j",(function(){return jn})),n.d(t,"n",(function(){return On})),n.d(t,"b",(function(){return dn})),n.d(t,"e",(function(){return yn})),n.d(t,"g",(function(){return mn})),n.d(t,"h",(function(){return gn})),n.d(t,"p",(function(){return bn})),n.d(t,"a",(function(){return tt})),n.d(t,"f",(function(){return fe})),n.d(t,"q",(function(){return an})),n.d(t,"c",(function(){return Ne})),n.d(t,"r",(function(){return De}));var X=function e(t,n){_classCallCheck(this,e),this.id=t,this.url=n},J=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(i=t.call(this,e,r)).navigationTrigger=o,i.restoredState=a,i}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(X),Q=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(X),Z=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e,r)).reason=i,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(X),Y=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e,r)).error=i,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(X),K=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(X),ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(X),te=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a){var s;return _classCallCheck(this,n),(s=t.call(this,e,r)).urlAfterRedirects=i,s.state=o,s.shouldActivate=a,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(X),ne=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(X),re=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(X),ie=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),oe=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),ae=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),se=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),le=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ue=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ce=function(){function e(t,n,r){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),he=function e(){_classCallCheck(this,e)},fe="primary",de=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return this.params.hasOwnProperty(e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function pe(e){return new de(e)}function ve(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function ge(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;for(var i={},o=0;o<r.length;o++){var a=r[o],s=e[o];if(a.startsWith(":"))i[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}var me=function e(t,n){_classCallCheck(this,e),this.routes=t,this.module=n};function ye(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var r=e[n];be(r,ke(t,r))}}function be(e,t){if(!e)throw new Error("\n Invalid configuration of route '".concat(t,"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n "));if(Array.isArray(e))throw new Error("Invalid configuration of route '".concat(t,"': Array cannot be specified"));if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==fe)throw new Error("Invalid configuration of route '".concat(t,"': a componentless route without children or loadChildren cannot have a named outlet set"));if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and children cannot be used together"));if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and loadChildren cannot be used together"));if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': children and loadChildren cannot be used together"));if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and component cannot be used together"));if(e.path&&e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': path and matcher cannot be used together"));if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"'. One of the following must be provided: component, redirectTo, children or loadChildren"));if(void 0===e.path&&void 0===e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': routes must have either a path or a matcher specified"));if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error("Invalid configuration of route '".concat(t,"': path cannot start with a slash"));if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error("Invalid configuration of route '{path: \"".concat(t,'", redirectTo: "').concat(e.redirectTo,"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'."));if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '".concat(t,"': pathMatch can only be set to 'prefix' or 'full'"));e.children&&ye(e.children,t)}function ke(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function _e(e){var t=e.children&&e.children.map(_e),n=t?Object.assign({},e,{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==fe&&(n.component=he),n}function Ce(e,t){var n,r=Object.keys(e),i=Object.keys(t);if(!r||!i||r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(e[n=r[o]]!==t[n])return!1;return!0}function we(e){return Array.prototype.concat.apply([],e)}function Se(e){return e.length>0?e[e.length-1]:null}function Oe(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function xe(e){return Object(i.yb)(e)?e:Object(i.zb)(e)?Object(a.a)(Promise.resolve(e)):Object(o.a)(e)}function Ee(e,t,n){return n?function(e,t){return Ce(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Ie(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(n){return t[n]===e[n]}))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length)return!!Ie(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Ie(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!e(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!Ie(n.segments,a)&&!!n.children[fe]&&t(n.children[fe],r,s)}(t,n,n.segments)}(e.root,t.root)}var Te=function(){function e(t,n,r){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=r}return _createClass(e,[{key:"toString",value:function(){return je.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=pe(this.queryParams)),this._queryParamMap}}]),e}(),Me=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,Oe(n,(function(e,t){return e.parent=r}))}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Re(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),Ae=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"toString",value:function(){return ze(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=pe(this.parameters)),this._parameterMap}}]),e}();function Ie(e,t){return e.length===t.length&&e.every((function(e,n){return e.path===t[n].path}))}function Pe(e,t){var n=[];return Oe(e.children,(function(e,r){r===fe&&(n=n.concat(t(e,r)))})),Oe(e.children,(function(e,r){r!==fe&&(n=n.concat(t(e,r)))})),n}var De=function e(){_classCallCheck(this,e)},Ne=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new Ge(e);return new Te(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+function e(t,n){if(!t.hasChildren())return Re(t);if(n){var r=t.children[fe]?e(t.children[fe],!1):"",i=[];return Oe(t.children,(function(t,n){n!==fe&&i.push("".concat(n,":").concat(e(t,!1)))})),i.length>0?"".concat(r,"(").concat(i.join("//"),")"):r}var o=Pe(t,(function(n,r){return r===fe?[e(t.children[fe],!1)]:["".concat(r,":").concat(e(n,!1))]}));return"".concat(Re(t),"/(").concat(o.join("//"),")")}(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map((function(e){var n=t[e];return Array.isArray(n)?n.map((function(t){return"".concat(Fe(e),"=").concat(Fe(t))})).join("&"):"".concat(Fe(e),"=").concat(Fe(n))})),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}]),e}(),je=new Ne;function Re(e){return e.segments.map((function(e){return ze(e)})).join("/")}function Le(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fe(e){return Le(e).replace(/%3B/gi,";")}function Be(e){return Le(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ve(e){return decodeURIComponent(e)}function He(e){return Ve(e.replace(/\+/g,"%20"))}function ze(e){return"".concat(Be(e.path)).concat((t=e.parameters,Object.keys(t).map((function(e){return";".concat(Be(e),"=").concat(Be(t[e]))})).join("")));var t}var $e=/^[^\/()?;=#]+/;function qe(e){var t=e.match($e);return t?t[0]:""}var Ue=/^[^=?&#]+/,We=/^[^?&#]+/,Ge=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Me([],{}):new Me([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[fe]=new Me(e,t)),n}},{key:"parseSegment",value:function(){var e=qe(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Ae(Ve(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=qe(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=qe(this.remaining);r&&(n=r,this.capture(n))}e[Ve(t)]=Ve(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Ue);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(We);return t?t[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=He(t),o=He(n);if(e.hasOwnProperty(i)){var a=e[i];Array.isArray(a)||(a=[a],e[i]=a),a.push(o)}else e[i]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=qe(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=fe);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[fe]:new Me([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Xe=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Je(e,this._root);return t?t.children.map((function(e){return e.value})):[]}},{key:"firstChild",value:function(e){var t=Je(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=Qe(e,this._root);return t.length<2?[]:t[t.length-2].children.map((function(e){return e.value})).filter((function(t){return t!==e}))}},{key:"pathFromRoot",value:function(e){return Qe(e,this._root).map((function(e){return e.value}))}},{key:"root",get:function(){return this._root.value}}]),e}();function Je(e,t){if(e===t.value)return t;var n,r=_createForOfIteratorHelper(t.children);try{for(r.s();!(n=r.n()).done;){var i=Je(e,n.value);if(i)return i}}catch(o){r.e(o)}finally{r.f()}return null}function Qe(e,t){if(e===t.value)return[t];var n,r=_createForOfIteratorHelper(t.children);try{for(r.s();!(n=r.n()).done;){var i=Qe(e,n.value);if(i.length)return i.unshift(t),i}}catch(o){r.e(o)}finally{r.f()}return[]}var Ze=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function Ye(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var Ke=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).snapshot=r,ot(_assertThisInitialized(i),e),i}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Xe);function et(e,t){var n=function(e,t){var n=new rt([],{},{},"",{},fe,t,null,e.root,-1,{});return new it("",new Ze(n,[]))}(e,t),r=new s.a([new Ae("",{})]),i=new s.a({}),o=new s.a({}),a=new s.a({}),l=new s.a(""),u=new tt(r,i,a,l,o,fe,t,n.root);return u.snapshot=n.root,new Ke(new Ze(u,[]),n)}var tt=function(){function e(t,n,r,i,o,a,s,l){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=l}return _createClass(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(_.a)((function(e){return pe(e)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(_.a)((function(e){return pe(e)})))),this._queryParamMap}}]),e}();function nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce((function(e,t){return{params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(r))}var rt=function(){function e(t,n,r,i,o,a,s,l,u,c,h){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=h}return _createClass(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(e){return e.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=pe(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=pe(this.queryParams)),this._queryParamMap}}]),e}(),it=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,r)).url=e,ot(_assertThisInitialized(i),r),i}return _createClass(n,[{key:"toString",value:function(){return at(this._root)}}]),n}(Xe);function ot(e,t){t.value._routerState=e,t.children.forEach((function(t){return ot(e,t)}))}function at(e){var t=e.children.length>0?" { ".concat(e.children.map(at).join(", ")," } "):"";return"".concat(e.value).concat(t)}function st(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ce(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Ce(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!Ce(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Ce(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function lt(e,t){var n,r;return Ce(e.params,t.params)&&Ie(n=e.url,r=t.url)&&n.every((function(e,t){return Ce(e.parameters,r[t].parameters)}))&&!(!e.parent!=!t.parent)&&(!e.parent||lt(e.parent,t.parent))}function ut(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ct(e,t,n,r,i){var o={};return r&&Oe(r,(function(e,t){o[t]=Array.isArray(e)?e.map((function(e){return""+e})):""+e})),new Te(n.root===e?t:function e(t,n,r){var i={};return Oe(t.children,(function(t,o){i[o]=t===n?r:e(t,n,r)})),new Me(t.segments,i)}(n.root,e,t),o,i)}var ht=function(){function e(t,n,r){if(_classCallCheck(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ut(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find((function(e){return"object"==typeof e&&null!=e&&e.outlets}));if(i&&i!==Se(r))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),ft=function e(t,n,r){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function dt(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[fe]:""+e}function pt(e,t,n){if(e||(e=new Me([],{})),0===e.segments.length&&e.hasChildren())return vt(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i<e.segments.length;){if(r>=n.length)return o;var a=e.segments[i],s=dt(n[r]),l=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!bt(s,l,a))return o;r+=2}else{if(!bt(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){var o=new Me(e.segments.slice(0,r.pathIndex),{});return o.children[fe]=new Me(e.segments.slice(r.pathIndex),e.children),vt(o,0,i)}return r.match&&0===i.length?new Me(e.segments,{}):r.match&&!e.hasChildren()?gt(e,t,n):r.match?vt(e,0,i):gt(e,t,n)}function vt(e,t,n){if(0===n.length)return new Me(e.segments,{});var r=function(e){return"object"!=typeof e[0]?_defineProperty({},fe,e):void 0===e[0].outlets?_defineProperty({},fe,e):e[0].outlets}(n),i={};return Oe(r,(function(n,r){null!==n&&(i[r]=pt(e.children[r],t,n))})),Oe(e.children,(function(e,t){void 0===r[t]&&(i[t]=e)})),new Me(e.segments,i)}function gt(e,t,n){for(var r=e.segments.slice(0,t),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=mt(n[i].outlets);return new Me(r,o)}if(0===i&&ut(n[0]))r.push(new Ae(e.segments[t].path,n[0])),i++;else{var a=dt(n[i]),s=i<n.length-1?n[i+1]:null;a&&s&&ut(s)?(r.push(new Ae(a,yt(s))),i+=2):(r.push(new Ae(a,{})),i++)}}return new Me(r,{})}function mt(e){var t={};return Oe(e,(function(e,n){null!==e&&(t[n]=gt(new Me([],{}),0,e))})),t}function yt(e){var t={};return Oe(e,(function(e,n){return t[n]=""+e})),t}function bt(e,t,n){return e==n.path&&Ce(t,n.parameters)}var kt=function(){function e(t,n,r,i){_classCallCheck(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i}return _createClass(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),st(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var r=this,i=Ye(t);e.children.forEach((function(e){var t=e.value.outlet;r.deactivateRoutes(e,i[t],n),delete i[t]})),Oe(i,(function(e,t){r.deactivateRouteAndItsChildren(e,n)}))}},{key:"deactivateRoutes",value:function(e,t,n){var r=e.value,i=t?t.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:r,route:e,contexts:i})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){var n=this,r=t.getContext(e.value.outlet);if(r){var i=Ye(e),o=e.value.component?r.children:t;Oe(i,(function(e,t){return n.deactivateRouteAndItsChildren(e,o)})),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}}},{key:"activateChildRoutes",value:function(e,t,n){var r=this,i=Ye(t);e.children.forEach((function(e){r.activateRoutes(e,i[e.value.outlet],n),r.forwardEvent(new ue(e.value.snapshot))})),e.children.length&&this.forwardEvent(new se(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var r=e.value,i=t?t.value:null;if(st(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(r.component){var a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),_t(s.route)}else{var l=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(r.snapshot),u=l?l.module.componentFactoryResolver:null;a.attachRef=null,a.route=r,a.resolver=u,a.outlet&&a.outlet.activateWith(r,u),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function _t(e){st(e.value),e.children.forEach(_t)}function Ct(e){return"function"==typeof e}function wt(e){return e instanceof Te}var St=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},Ot=function e(t){_classCallCheck(this,e),this.urlTree=t};function xt(e){return new l.a((function(t){return t.error(new St(e))}))}function Et(e){return new l.a((function(t){return t.error(new Ot(e))}))}function Tt(e){return new l.a((function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))}))}var Mt=function(){function e(t,n,r,o,a){_classCallCheck(this,e),this.configLoader=n,this.urlSerializer=r,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(i.v)}return _createClass(e,[{key:"apply",value:function(){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,fe).pipe(Object(_.a)((function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)}))).pipe(Object(D.a)((function(t){if(t instanceof Ot)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof St)throw e.noMatchError(t);throw t})))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,fe).pipe(Object(_.a)((function(n){return t.createUrlTree(n,e.queryParams,e.fragment)}))).pipe(Object(D.a)((function(e){if(e instanceof St)throw t.noMatchError(e);throw e})))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var r=e.segments.length>0?new Me([],_defineProperty({},fe,e)):e;return new Te(r,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(_.a)((function(e){return new Me([],e)}))):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Object(o.a)({});var a=[],s=[],l={};return Oe(n,(function(n,i){var o,u,c=(o=i,u=n,r.expandSegmentGroup(e,t,u,o)).pipe(Object(_.a)((function(e){return l[i]=e})));i===fe?a.push(c):s.push(c)})),o.a.apply(null,a.concat(s)).pipe(Object(C.a)(),P(),Object(_.a)((function(){return l})))}(n.children)}},{key:"expandSegment",value:function(e,t,n,r,i,a){var s=this;return Object(o.a).apply(void 0,_toConsumableArray(n)).pipe(Object(_.a)((function(l){return s.expandSegmentAgainstRoute(e,t,n,l,r,i,a).pipe(Object(D.a)((function(e){if(e instanceof St)return Object(o.a)(null);throw e})))})),Object(C.a)(),j((function(e){return!!e})),Object(D.a)((function(e,n){if(e instanceof u||"EmptyError"===e.name){if(s.noLeftoversInUrl(t,r,i))return Object(o.a)(new Me([],{}));throw new St(t)}throw e})))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,o,a){return Dt(r)!==o?xt(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):xt(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Et(o):this.lineralizeSegments(n,o).pipe(Object(R.a)((function(n){var o=new Me(n,{});return i.expandSegment(e,o,t,n,r,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){var a=this,s=At(t,r,i),l=s.matched,u=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!l)return xt(t);var f=this.applyRedirectCommands(u,r.redirectTo,h);return r.redirectTo.startsWith("/")?Et(f):this.lineralizeSegments(r,f).pipe(Object(R.a)((function(r){return a.expandSegment(e,t,n,r.concat(i.slice(c)),o,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(_.a)((function(e){return n._loadedConfig=e,new Me(r,{})}))):Object(o.a)(new Me(r,{}));var a=At(t,n,r),s=a.matched,l=a.consumedSegments,u=a.lastChild;if(!s)return xt(t);var c=r.slice(u);return this.getChildConfig(e,n,r).pipe(Object(R.a)((function(e){var n=e.module,r=e.routes,a=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some((function(n){return Pt(e,t,n)&&Dt(n)!==fe}))}(e,n,r)?{segmentGroup:It(new Me(t,function(e,t){var n={};n[fe]=t;var r,i=_createForOfIteratorHelper(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;""===o.path&&Dt(o)!==fe&&(n[Dt(o)]=new Me([],{}))}}catch(a){i.e(a)}finally{i.f()}return n}(r,new Me(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some((function(n){return Pt(e,t,n)}))}(e,n,r)?{segmentGroup:It(new Me(e.segments,function(e,t,n,r){var i,o={},a=_createForOfIteratorHelper(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;Pt(e,t,s)&&!r[Dt(s)]&&(o[Dt(s)]=new Me([],{}))}}catch(l){a.e(l)}finally{a.f()}return Object.assign({},r,o)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,l,c,r),s=a.segmentGroup,u=a.slicedSegments;return 0===u.length&&s.hasChildren()?i.expandChildren(n,r,s).pipe(Object(_.a)((function(e){return new Me(l,e)}))):0===r.length&&0===u.length?Object(o.a)(new Me(l,{})):i.expandSegment(n,s,r,u,fe,!0).pipe(Object(_.a)((function(e){return new Me(l.concat(e.segments),e.children)})))})))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?Object(o.a)(new me(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(o.a)(t._loadedConfig):function(e,t,n){var r,i=t.canLoad;return i&&0!==i.length?Object(a.a)(i).pipe(Object(_.a)((function(r){var i,o=e.get(r);if(function(e){return e&&Ct(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!Ct(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return xe(i)}))).pipe(Object(C.a)(),(r=function(e){return!0===e},function(e){return e.lift(new L(r,void 0,e))})):Object(o.a)(!0)}(e.injector,t,n).pipe(Object(R.a)((function(n){return n?r.configLoader.load(e.injector,t).pipe(Object(_.a)((function(e){return t._loadedConfig=e,e}))):function(e){return new l.a((function(t){return t.error(ve("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}))}(t)}))):Object(o.a)(new me([],e))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(o.a)(n);if(r.numberOfChildren>1||!r.children[fe])return Tt(e.redirectTo);r=r.children[fe]}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new Te(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Oe(e,(function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e})),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return Oe(t.children,(function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)})),new Me(o,a)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map((function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)}))}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n,r=0,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(r),o;r++}}catch(a){i.e(a)}finally{i.f()}return e}}]),e}();function At(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||ge)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function It(e){if(1===e.numberOfChildren&&e.children[fe]){var t=e.children[fe];return new Me(e.segments.concat(t.segments),t.children)}return e}function Pt(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Dt(e){return e.outlet||fe}var Nt=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},jt=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function Rt(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Lt(e,t,n){var r=Ye(e),i=e.value;Oe(r,(function(e,r){Lt(e,i.component?t?t.children.getContext(r):null:t,n)})),n.canDeactivateChecks.push(new jt(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var Ft=Symbol("INITIAL_VALUE");function Bt(){return Object(B.a)((function(e){return(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=null,i=null;return Object(c.a)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&Object(h.a)(t[0])&&(t=t[0]),Object(p.a)(t,i).lift(new g(r))}).apply(void 0,_toConsumableArray(e.map((function(e){return e.pipe(Object(N.a)(1),Object(V.a)(Ft))})))).pipe(Object(H.a)((function(e,t){var n=!1;return t.reduce((function(e,r,i){if(e!==Ft)return e;if(r===Ft&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||wt(r))return r}return e}),e)}),Ft),Object(w.a)((function(e){return e!==Ft})),Object(_.a)((function(e){return wt(e)?e:!0===e})),Object(N.a)(1))}))}function Vt(e,t){return null!==e&&t&&t(new le(e)),Object(o.a)(!0)}function Ht(e,t){return null!==e&&t&&t(new ae(e)),Object(o.a)(!0)}function zt(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(o.a)(!0);var i=r.map((function(r){return Object(y.a)((function(){var i,o=Rt(r,t,n);if(function(e){return e&&Ct(e.canActivate)}(o))i=xe(o.canActivate(t,e));else{if(!Ct(o))throw new Error("Invalid CanActivate guard");i=xe(o(t,e))}return i.pipe(j())}))}));return Object(o.a)(i).pipe(Bt())}function $t(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map((function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)})).filter((function(e){return null!==e})).map((function(t){return Object(y.a)((function(){var i=t.guards.map((function(i){var o,a=Rt(i,t.node,n);if(function(e){return e&&Ct(e.canActivateChild)}(a))o=xe(a.canActivateChild(r,e));else{if(!Ct(a))throw new Error("Invalid CanActivateChild guard");o=xe(a(r,e))}return o.pipe(j())}));return Object(o.a)(i).pipe(Bt())}))}));return Object(o.a)(i).pipe(Bt())}var qt=function e(){_classCallCheck(this,e)},Ut=function(){function e(t,n,r,i,o,a){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _createClass(e,[{key:"recognize",value:function(){try{var e=Xt(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,fe),n=new rt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},fe,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ze(n,t),i=new it(this.url,r);return this.inheritParamsAndData(i._root),Object(o.a)(i)}catch(a){return new l.a((function(e){return e.error(a)}))}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=nt(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach((function(e){return t.inheritParamsAndData(e)}))}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,r=this,i=Pe(t,(function(t,n){return r.processSegmentGroup(e,t,n)}));return n={},i.forEach((function(e){var t=n[e.value.outlet];if(t){var r=t.url.map((function(e){return e.toString()})).join("/"),i=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(r,"' and '").concat(i,"'."))}n[e.value.outlet]=e.value})),i.sort((function(e,t){return e.value.outlet===fe?-1:t.value.outlet===fe?1:e.value.outlet.localeCompare(t.value.outlet)})),i}},{key:"processSegment",value:function(e,t,n,r){var i,o=_createForOfIteratorHelper(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;try{return this.processSegmentAgainstRoute(a,t,n,r)}catch(s){if(!(s instanceof qt))throw s}}}catch(l){o.e(l)}finally{o.f()}if(this.noLeftoversInUrl(t,n,r))return[];throw new qt}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,r){if(e.redirectTo)throw new qt;if((e.outlet||fe)!==r)throw new qt;var i,o=[],a=[];if("**"===e.path){var s=n.length>0?Se(n).parameters:{};i=new rt(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Zt(e),r,e.component,e,Wt(t),Gt(t)+n.length,Yt(e))}else{var l=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new qt;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||ge)(n,e,t);if(!r)throw new qt;var i={};Oe(r.posParams,(function(e,t){i[t]=e.path}));var o=r.consumed.length>0?Object.assign({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(t,e,n);o=l.consumedSegments,a=n.slice(l.lastChild),i=new rt(o,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Zt(e),r,e.component,e,Wt(t),Gt(t)+o.length,Yt(e))}var u=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=Xt(t,o,a,u,this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(u,h);return[new Ze(i,d)]}if(0===u.length&&0===f.length)return[new Ze(i,[])];var p=this.processSegment(u,h,f,fe);return[new Ze(i,p)]}}]),e}();function Wt(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Gt(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Xt(e,t,n,r,i){if(n.length>0&&function(e,t,n){return n.some((function(n){return Jt(e,t,n)&&Qt(n)!==fe}))}(e,n,r)){var o=new Me(t,function(e,t,n,r){var i={};i[fe]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var o,a=_createForOfIteratorHelper(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Qt(s)!==fe){var l=new Me([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,i[Qt(s)]=l}}}catch(u){a.e(u)}finally{a.f()}return i}(e,t,r,new Me(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some((function(n){return Jt(e,t,n)}))}(e,n,r)){var a=new Me(e.segments,function(e,t,n,r,i,o){var a,s={},l=_createForOfIteratorHelper(r);try{for(l.s();!(a=l.n()).done;){var u=a.value;if(Jt(e,n,u)&&!i[Qt(u)]){var c=new Me([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[Qt(u)]=c}}}catch(h){l.e(h)}finally{l.f()}return Object.assign({},i,s)}(e,t,n,r,e.children,i));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new Me(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Jt(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Qt(e){return e.outlet||fe}function Zt(e){return e.data||{}}function Yt(e){return e.resolve||{}}function Kt(e,t,n,r){var i=Rt(e,t,r);return xe(i.resolve?i.resolve(t,n):i(t,n))}function en(e){return function(t){return t.pipe(Object(B.a)((function(t){var n=e(t);return n?Object(a.a)(n).pipe(Object(_.a)((function(){return t}))):Object(a.a)([t])})))}}var tn=function e(){_classCallCheck(this,e)},nn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}(),rn=new i.o("ROUTES"),on=function(){function e(t,n,r,i){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return _createClass(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(_.a)((function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new me(we(i.injector.get(rn)).map(_e),i)})))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Object(a.a)(this.loader.load(e)):xe(e()).pipe(Object(R.a)((function(e){return e instanceof i.t?Object(o.a)(e):Object(a.a)(t.compiler.compileModuleAsync(e))})))}}]),e}(),an=function e(){_classCallCheck(this,e)},sn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function ln(e){throw e}function un(e,t,n){return t.parse("/")}function cn(e,t){return Object(o.a)(null)}var hn=function(){function e(t,n,r,o,a,l,u,c){var h=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=o,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new b.a,this.errorHandler=ln,this.malformedUriErrorHandler=un,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:cn,afterPreactivation:cn},this.urlHandlingStrategy=new sn,this.routeReuseStrategy=new nn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=a.get(i.v),this.console=a.get(i.bb);var f=a.get(i.x);this.isNgZoneEnabled=f instanceof i.x,this.resetConfig(c),this.currentUrlTree=new Te(new Me([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new on(l,u,(function(e){return h.triggerEvent(new ie(e))}),(function(e){return h.triggerEvent(new oe(e))})),this.routerState=et(this.currentUrlTree,this.rootComponentType),this.transitions=new s.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Object(w.a)((function(e){return 0!==e.id})),Object(_.a)((function(e){return Object.assign({},e,{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})})),Object(B.a)((function(e){var r,i,l,u=!1,c=!1;return Object(o.a)(e).pipe(Object(q.a)((function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign({},t.lastSuccessfulNavigation,{previousNavigation:null}):null}})),Object(B.a)((function(e){var r,i,a,s,l=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||l)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(o.a)(e).pipe(Object(B.a)((function(e){var r=t.transitions.getValue();return n.next(new J(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?k.a:[e]})),Object(B.a)((function(e){return Promise.resolve(e)})),(r=t.ngModule.injector,i=t.configLoader,a=t.urlSerializer,s=t.config,function(e){return e.pipe(Object(B.a)((function(e){return function(e,t,n,r,i){return new Mt(e,t,n,r,i).apply()}(r,i,a,e.extractedUrl,s).pipe(Object(_.a)((function(t){return Object.assign({},e,{urlAfterRedirects:t})})))})))}),Object(q.a)((function(e){t.currentNavigation=Object.assign({},t.currentNavigation,{finalUrl:e.urlAfterRedirects})})),function(e,n,r,i,o){return function(r){return r.pipe(Object(R.a)((function(r){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Ut(e,t,n,r,i,o).recognize()}(e,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,t.serializeUrl(a)),i,o).pipe(Object(_.a)((function(e){return Object.assign({},r,{targetSnapshot:e})})));var a})))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Object(q.a)((function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),Object(q.a)((function(e){var r=new K(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)})));if(l&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.id,c=e.extractedUrl,h=e.source,f=e.restoredState,d=e.extras,p=new J(u,t.serializeUrl(c),h,f);n.next(p);var v=et(c,t.rootComponentType).snapshot;return Object(o.a)(Object.assign({},e,{targetSnapshot:v,urlAfterRedirects:c,extras:Object.assign({},d,{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),k.a})),en((function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,l=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!l})})),Object(q.a)((function(e){var n=new ee(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),Object(_.a)((function(e){return Object.assign({},e,{guards:(n=e.targetSnapshot,r=e.currentSnapshot,i=t.rootContexts,o=n._root,function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Ye(n);return t.children.forEach((function(t){!function(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=t.value,s=n?n.value:null,l=r?r.getContext(t.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Ie(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Ie(e.url,t.url)||!Ce(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lt(e,t)||!Ce(e.queryParams,t.queryParams);case"paramsChange":default:return!lt(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new Nt(i)):(a.data=s.data,a._resolvedData=s._resolvedData),e(t,n,a.component?l?l.children:null:r,i,o),u&&o.canDeactivateChecks.push(new jt(l&&l.outlet&&l.outlet.component||null,s))}else s&&Lt(n,l,o),o.canActivateChecks.push(new Nt(i)),e(t,null,a.component?l?l.children:null:r,i,o)}(t,a[t.value.outlet],r,i.concat([t.value]),o),delete a[t.value.outlet]})),Oe(a,(function(e,t){return Lt(e,r.getContext(t),o)})),o}(o,r?r._root:null,i,[o.value]))});var n,r,i,o})),function(e,t){return function(n){return n.pipe(Object(R.a)((function(n){var r=n.targetSnapshot,i=n.currentSnapshot,s=n.guards,l=s.canActivateChecks,u=s.canDeactivateChecks;return 0===u.length&&0===l.length?Object(o.a)(Object.assign({},n,{guardsResult:!0})):function(e,t,n,r){return Object(a.a)(e).pipe(Object(R.a)((function(e){return function(e,t,n,r,i){var a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!a||0===a.length)return Object(o.a)(!0);var s=a.map((function(o){var a,s=Rt(o,t,i);if(function(e){return e&&Ct(e.canDeactivate)}(s))a=xe(s.canDeactivate(e,t,n,r));else{if(!Ct(s))throw new Error("Invalid CanDeactivate guard");a=xe(s(e,t,n,r))}return a.pipe(j())}));return Object(o.a)(s).pipe(Bt())}(e.component,e.route,n,t,r)})),j((function(e){return!0!==e}),!0))}(u,r,i,e).pipe(Object(R.a)((function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return Object(a.a)(t).pipe(Object(z.a)((function(t){return Object(a.a)([Ht(t.route.parent,r),Vt(t.route,r),$t(e,t.path,n),zt(e,t.route,n)]).pipe(Object(C.a)(),j((function(e){return!0!==e}),!0))})),j((function(e){return!0!==e}),!0))}(r,l,e,t):Object(o.a)(n)})),Object(_.a)((function(e){return Object.assign({},n,{guardsResult:e})})))})))}}(t.ngModule.injector,(function(e){return t.triggerEvent(e)})),Object(q.a)((function(e){if(wt(e.guardsResult)){var n=ve('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}})),Object(q.a)((function(e){var n=new te(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)})),Object(w.a)((function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new Z(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0})),en((function(e){if(e.guards.canActivateChecks.length)return Object(o.a)(e).pipe(Object(q.a)((function(e){var n=new ne(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),(n=t.paramsInheritanceStrategy,r=t.ngModule.injector,function(e){return e.pipe(Object(R.a)((function(e){var t=e.targetSnapshot,i=e.guards.canActivateChecks;return i.length?Object(a.a)(i).pipe(Object(z.a)((function(e){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return Object(o.a)({});if(1===i.length){var s=i[0];return Kt(e[s],t,n,r).pipe(Object(_.a)((function(e){return _defineProperty({},s,e)})))}var l={};return Object(a.a)(i).pipe(Object(R.a)((function(i){return Kt(e[i],t,n,r).pipe(Object(_.a)((function(e){return l[i]=e,e})))}))).pipe(P(),Object(_.a)((function(){return l})))}(e._resolve,e,t,r).pipe(Object(_.a)((function(t){return e._resolvedData=t,e.data=Object.assign({},e.data,nt(e,n).resolve),null})))}(e.route,t,n,r)})),Object($.a)((function(e,t){return e})),Object(_.a)((function(t){return e}))):Object(o.a)(e)})))}),Object(q.a)((function(e){var n=new re(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})));var n,r})),en((function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,l=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!l})})),Object(_.a)((function(e){var n=function(e,t,n){var r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){var i=r.value;i._futureSnapshot=n.value;var o=function(t,n,r){return n.children.map((function(n){var i,o=_createForOfIteratorHelper(r.children);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(t.shouldReuseRoute(a.value.snapshot,n.value))return e(t,n,a)}}catch(s){o.e(s)}finally{o.f()}return e(t,n)}))}(t,n,r);return new Ze(i,o)}var a=t.retrieve(n.value);if(a){var l=a.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var r=0;r<t.children.length;++r)e(t.children[r],n.children[r])}(n,l),l}var u,c=new tt(new s.a((u=n.value).url),new s.a(u.params),new s.a(u.queryParams),new s.a(u.fragment),new s.a(u.data),u.outlet,u.component,u),h=n.children.map((function(n){return e(t,n)}));return new Ze(c,h)}(e,t._root,n?n._root:void 0);return new Ke(r,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:n})})),Object(q.a)((function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),(r=t.rootContexts,i=t.routeReuseStrategy,l=function(e){return t.triggerEvent(e)},Object(_.a)((function(e){return new kt(i,e.targetRouterState,e.currentRouterState,l).activate(r),e}))),Object(q.a)({next:function(){u=!0},complete:function(){u=!0}}),Object(U.a)((function(){if(!u&&!c){t.resetUrlToCurrentUrlTree();var r=new Z(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(r),e.resolve(!1)}t.currentNavigation=null})),Object(D.a)((function(r){if(c=!0,(s=r)&&s.ngNavigationCancelingError){var i=wt(r.url);i||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new Z(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(o),e.resolve(!1),i&&t.navigateByUrl(r.url)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new Y(e.id,t.serializeUrl(e.extractedUrl),r);n.next(a);try{e.resolve(t.errorHandler(r))}catch(l){e.reject(l)}}var s;return k.a})))})))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign({},this.getTransition(),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(t){var n=e.parseUrl(t.url),r="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?t.state:null;setTimeout((function(){e.scheduleNavigation(n,r,i,{replaceUrl:!0})}),0)})))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){ye(e),this.config=e.map(_e),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,o=t.fragment,a=t.preserveQueryParams,s=t.queryParamsHandling,l=t.preserveFragment;Object(i.W)()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,c=l?this.currentUrlTree.fragment:o,h=null;if(s)switch(s){case"merge":h=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=a?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(e,t,n,r,i){if(0===n.length)return ct(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ht(!0,0,e);var t=0,n=!1,r=e.reduce((function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return Oe(r.outlets,(function(e,t){o[t]="string"==typeof e?e.split("/"):e})),[].concat(_toConsumableArray(e),[{outlets:o}])}if(r.segmentPath)return[].concat(_toConsumableArray(e),[r.segmentPath])}return"string"!=typeof r?[].concat(_toConsumableArray(e),[r]):0===i?(r.split("/").forEach((function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))})),e):[].concat(_toConsumableArray(e),[r])}),[]);return new ht(n,t,r)}(n);if(o.toRoot())return ct(t.root,new Me([],{}),t,r,i);var a=function(e,t,n){if(e.isAbsolute)return new ft(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new ft(n.snapshot._urlSegment,!0,0);var r=ut(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new ft(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?vt(a.segmentGroup,a.index,o.commands):pt(a.segmentGroup,a.index,o.commands);return ct(a.segmentGroup,s,t,r,i)}(u,this.currentUrlTree,e,h,c)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Object(i.W)()&&this.isNgZoneEnabled&&!i.x.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=wt(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if(wt(e))return Ee(this.currentUrlTree,e,t);var n=this.parseUrl(e);return Ee(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return null!=r&&(t[n]=r),t}),{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe((function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new Q(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)}),(function(t){e.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(e,t,n,r){var i=this.getTransition();if(i&&"imperative"!==t&&"imperative"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"hashchange"==t&&"popstate"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"popstate"==t&&"hashchange"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);var o=null,a=null,s=new Promise((function(e,t){o=e,a=t})),l=++this.navigationId;return this.setTransition({id:l,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(e){return Promise.reject(e)}))}},{key:"setBrowserUrl",value:function(e,t,n,r){var i=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object.assign({},r,{navigationId:n})):this.location.go(i,"",Object.assign({},r,{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),e}(),fn=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new dn,this.attachRef=null},dn=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new fn,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),pn=function(){function e(t,n,r,o,a){_classCallCheck(this,e),this.parentContexts=t,this.location=n,this.resolver=r,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.m,this.deactivateEvents=new i.m,this.name=o||fe,t.onChildOutletCreated(this.name,this)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new vn(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}}]),e}(),vn=function(){function e(t,n,r){_classCallCheck(this,e),this.route=t,this.childContexts=n,this.parent=r}return _createClass(e,[{key:"get",value:function(e,t){return e===tt?this.route:e===dn?this.childContexts:this.parent.get(e,t)}}]),e}(),gn=function e(){_classCallCheck(this,e)},mn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(Object(D.a)((function(){return Object(o.a)(null)})))}}]),e}(),yn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return Object(o.a)(null)}}]),e}(),bn=function(){function e(t,n,r,i,o){_classCallCheck(this,e),this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=new on(n,r,(function(e){return t.triggerEvent(new ie(e))}),(function(e){return t.triggerEvent(new oe(e))}))}return _createClass(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(Object(w.a)((function(e){return e instanceof Q})),Object(z.a)((function(){return e.preload()}))).subscribe((function(){}))}},{key:"preload",value:function(){var e=this.injector.get(i.v);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,r=[],i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var s=o._loadedConfig;r.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?r.push(this.preloadConfig(e,o)):o.children&&r.push(this.processRoutes(e,o.children))}}catch(l){i.e(l)}finally{i.f()}return Object(a.a)(r).pipe(Object(W.a)(),Object(_.a)((function(e){})))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,(function(){return n.loader.load(e.injector,t).pipe(Object(R.a)((function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)})))}))}}]),e}(),kn=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof J?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Q&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof ce&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new ce(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}(),_n=new i.o("ROUTER_CONFIGURATION"),Cn=new i.o("ROUTER_FORROOT_GUARD"),wn=[r.g,{provide:De,useClass:Ne},{provide:hn,useFactory:An,deps:[i.g,De,dn,r.g,i.p,i.u,i.i,rn,_n,[an,new i.y],[tn,new i.y]]},dn,{provide:tt,useFactory:In,deps:[hn]},{provide:i.u,useClass:i.J},bn,yn,mn,{provide:_n,useValue:{enableTracing:!1}}];function Sn(){return new i.w("Router",hn)}var On=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[wn,Mn(t),{provide:Cn,useFactory:Tn,deps:[[hn,new i.y,new i.I]]},{provide:_n,useValue:n||{}},{provide:r.h,useFactory:En,deps:[r.p,[new i.n(r.a),new i.y],_n]},{provide:kn,useFactory:xn,deps:[hn,r.r,_n]},{provide:gn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:yn},{provide:i.w,multi:!0,useFactory:Sn},[Pn,{provide:i.d,multi:!0,useFactory:Dn,deps:[Pn]},{provide:jn,useFactory:Nn,deps:[Pn]},{provide:i.b,multi:!0,useExisting:jn}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Mn(t)]}}}]),e}();function xn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new kn(e,t,n)}function En(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new r.e(e,t):new r.o(e,t)}function Tn(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Mn(e){return[{provide:i.a,multi:!0,useValue:e},{provide:rn,multi:!0,useValue:e}]}function An(e,t,n,r,i,o,a,s){var l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:{},u=arguments.length>9?arguments[9]:void 0,c=arguments.length>10?arguments[10]:void 0,h=new hn(null,t,n,r,i,o,a,we(s));if(u&&(h.urlHandlingStrategy=u),c&&(h.routeReuseStrategy=c),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){var f=Object(G.r)();h.events.subscribe((function(e){f.logGroup("Router Event: "+e.constructor.name),f.log(e.toString()),f.log(e),f.logGroupEnd()}))}return l.onSameUrlNavigation&&(h.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(h.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(h.relativeLinkResolution=l.relativeLinkResolution),h}function In(e){return e.routerState.root}var Pn=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new b.a}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(r.f,Promise.resolve(null)).then((function(){var t=null,n=new Promise((function(e){return t=e})),r=e.injector.get(hn),i=e.injector.get(_n);if(e.isLegacyDisabled(i)||e.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(i.initialNavigation,"'"));r.hooks.afterPreactivation=function(){return e.initNavigation?Object(o.a)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(_n),n=this.injector.get(bn),r=this.injector.get(kn),o=this.injector.get(hn),a=this.injector.get(i.g);e===a.components[0]&&(this.isLegacyEnabled(t)?o.initialNavigation():this.isLegacyDisabled(t)&&o.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}},{key:"isLegacyDisabled",value:function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}]),e}();function Dn(e){return e.appInitializer.bind(e)}function Nn(e){return e.bootstrapListener.bind(e)}var jn=new i.o("Router Initializer")},"iV+E":function(e,t,n){"use strict";var r=n("8Y7J"),i=n("MKJQ"),o=n("sZkV"),a=n("SVse");n("hqw5"),n("h4wn"),n("J20c"),n("kbZ1"),n("2IJ5"),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return h}));var s=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%]{height:11vh}[_nghost-%COMP%] ion-item.item[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:15px 0}[_nghost-%COMP%] ion-item.item[_ngcontent-%COMP%] p.avatarName[_ngcontent-%COMP%]{border-radius:100%;font-size:30px;font-weight:700;text-align:center;line-height:50px;height:50px;width:50px;background:#fff;color:#000!important}[_nghost-%COMP%] ion-item.item[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] ion-avatar[_ngcontent-%COMP%]{width:50px;height:50px}[_nghost-%COMP%] .title[_ngcontent-%COMP%]{flex-grow:7}[_nghost-%COMP%] ion-badge.badge[_ngcontent-%COMP%]{background-color:#3bec72;font-size:small}"]],data:{}});function l(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null))],null,(function(e,t){e(t,0,0,r.wb(1,"",t.component.friend.imageUrl,""))}))}function u(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"p",[["class","avatarName"]],null,null,null,null,null)),(e()(),r.Lb(1,null,[" ",""]))],null,(function(e,t){e(t,1,0,t.component.getFirstChars())}))}function c(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,22,"ion-item",[],null,[[null,"press"]],(function(e,t,n){var r=!0;return"press"===t&&(r=!1!==e.component.showOptions(n)&&r),r}),i.jb,i.u)),r.rb(1,49152,null,0,o.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,20,"ion-row",[],null,null,null,i.qb,i.B)),r.rb(3,49152,null,0,o.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,7,"ion-col",[],null,null,null,i.X,i.i)),r.rb(5,49152,null,0,o.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(6,0,null,0,5,"ion-avatar",[["item-start",""]],null,null,null,i.Q,i.b)),r.rb(7,49152,null,0,o.g,[r.h,r.k,r.x],null,null),(e()(),r.hb(16777216,null,0,1,null,l)),r.rb(9,16384,null,0,a.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,u)),r.rb(11,16384,null,0,a.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(12,0,null,0,5,"ion-col",[["class","title"]],null,null,null,i.X,i.i)),r.rb(13,49152,null,0,o.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(14,0,null,0,1,"h5",[],null,null,null,null,null)),(e()(),r.Lb(15,null,[" ",""])),(e()(),r.sb(16,0,null,0,1,"h6",[],null,null,null,null,null)),(e()(),r.Lb(17,null,[" "," "])),(e()(),r.sb(18,0,null,0,4,"ion-col",[],null,null,null,i.X,i.i)),r.rb(19,49152,null,0,o.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(20,0,null,0,2,"ion-badge",[],null,null,null,i.R,i.c)),r.rb(21,49152,null,0,o.j,[r.h,r.k,r.x],null,null),(e()(),r.Lb(22,0,["",""]))],(function(e,t){var n=t.component;e(t,9,0,n.hasImage()),e(t,11,0,!n.hasImage())}),(function(e,t){var n=t.component;e(t,15,0,n.friend.name),e(t,17,0,n.friend.email),e(t,22,0,n.getMessagesNumber())}))}function h(e){return r.Nb(0,[(e()(),r.hb(16777216,null,null,1,null,c)),r.rb(1,16384,null,0,a.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,1,0,t.component.friend.userID)}),null)}},iunF:function(e,t,n){"use strict";var r=n("sUqe"),i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).hasSeenMoreContent="hasSeenMoreContent",r}return _createClass(n,[{key:"hasSeenContent",value:function(){return this.getParam(this.hasSeenContent)}},{key:"setSeenMoreContent",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setParam(this.hasSeenContent,e)}}]),n}(function(){function e(t){_classCallCheck(this,e),this._parameters={},null==t&&(t={_parameters:{}}),this.init(t)}return _createClass(e,[{key:"init",value:function(e){this._parameters=e._parameters}},{key:"setParam",value:function(e,t){this._parameters[e]=t}},{key:"setBayaPlus",value:function(e){this.setParam("bayaPlus",e)}},{key:"isBayaPlus",value:function(){return this.getParam("bayaPlus")}},{key:"getParam",value:function(e){return this._parameters[e]}}]),e}());n("EGUZ"),n("ZZmf");var o=n("2Vo4");n.d(t,"a",(function(){return a}));var a=function(){function e(t,n,i){_classCallCheck(this,e),this.http=t,this.storageManager=n,this.notificationsManager=i,this.currentLang="en",this.theme=new o.a(r.g.light)}return _createClass(e,[{key:"setActiveTheme",value:function(e){this.theme.next(e)}},{key:"getActiveTheme",value:function(){return this.theme.asObservable()}},{key:"isRtl",value:function(){return"fa"==this.currentLang}},{key:"setCurrentLang",value:function(e){this.currentLang=e}},{key:"disableNotifications",value:function(){this.storageManager.set("notificationEnable",!1),this.notificationsManager.disablePush()}},{key:"getNotificationsStatus",value:function(){return this.storageManager.get("notificationEnable")}},{key:"getAutoNightMode",value:function(){return this.storageManager.get("autoNightMode")}},{key:"getBubbleCopyStatus",value:function(){return this.storageManager.get("bubbleCopyEnable")}},{key:"setBubbleCopyStatus",value:function(e){console.log("bubble copy status",e),this.storageManager.set("bubbleCopyEnable",e)}},{key:"setAutoNightMode",value:function(e){this.storageManager.set("autoNightMode",e)}},{key:"getPrimarySettings",value:function(){var e=this;return new Promise((function(t,n){null!=e._primarySettings?t(e._primarySettings):e.storageManager.get("primarySettings").then((function(n){e._primarySettings=new i(n),t(e._primarySettings)}))}))}},{key:"savePrimarySetting",value:function(){this.storageManager.set("primarySettings",this._primarySettings)}},{key:"currentLanguage",get:function(){return this.currentLang}}]),e}()},jZKg:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("HDdC"),i=n("quSY");function o(e,t){return new r.a((function(n){var r=new i.a,o=0;return r.add(t.schedule((function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},ja1e:function(e,t,n){"use strict";var r=n("8Y7J"),i=n("SVse"),o=n("MKJQ"),a=n("sZkV"),s=n("TSSN"),l=n("Ff54"),u=n("LKtr"),c=n("h4wn"),h=n("kbZ1"),f=n("2IJ5");n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return v}));var d=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;width:100%;background:linear-gradient(to top,#7d7e7d 0,#0e0e0e 100%);bottom:0;color:rgba(60,60,60,.7);z-index:99}.label[_ngcontent-%COMP%]{margin:-8px 0 0}ion-icon[_ngcontent-%COMP%]{color:wheat;min-width:2.4rem;font-size:1.8rem;text-align:center;margin-top:15px}.bayaTab[_ngcontent-%COMP%]{height:100%;border-radius:0;margin-bottom:0;width:33.333%;float:left;position:relative;text-align:center}.bayaTab[_ngcontent-%COMP%] ion-badge[_ngcontent-%COMP%]{position:absolute;top:7px;font-size:.8rem;padding:3px 6px;background-color:#de5151}.bayaTab[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:2px}.selected[_ngcontent-%COMP%]{color:wheat;font-weight:700}a[_ngcontent-%COMP%]:link{text-decoration:none;color:#f5f5f5}a[_ngcontent-%COMP%]:visited{text-decoration:none}debug-dialog[_ngcontent-%COMP%]{position:absolute;top:-500px}"]],data:{}});function p(e){return r.Nb(0,[(e()(),r.Lb(0,null,[" ","\n"])),(e()(),r.sb(1,0,null,null,11,"div",[["class","bayaTab"]],null,null,null,null,null)),(e()(),r.sb(2,0,null,null,10,"div",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.selectTab(1)&&r),r}),null,null)),r.Ib(512,null,i.u,i.v,[r.q,r.r,r.k,r.D]),r.rb(4,278528,null,0,i.i,[i.u],{ngClass:[0,"ngClass"]},null),(e()(),r.sb(5,0,null,null,1,"ion-icon",[["name","aperture"]],null,null,null,o.fb,o.q)),r.rb(6,49152,null,0,a.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(7,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),r.Lb(8,null,["",""])),r.Fb(131072,s.i,[s.j,r.h]),(e()(),r.sb(10,0,null,null,2,"ion-badge",[],null,null,null,o.R,o.c)),r.rb(11,49152,null,0,a.j,[r.h,r.k,r.x],null,null),(e()(),r.Lb(12,0,["",""])),(e()(),r.sb(13,0,null,null,11,"div",[["class","bayaTab"]],null,null,null,null,null)),(e()(),r.sb(14,0,null,null,10,"div",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.selectTab(2)&&r),r}),null,null)),r.Ib(512,null,i.u,i.v,[r.q,r.r,r.k,r.D]),r.rb(16,278528,null,0,i.i,[i.u],{ngClass:[0,"ngClass"]},null),(e()(),r.sb(17,0,null,null,1,"ion-icon",[["name","copy"]],null,null,null,o.fb,o.q)),r.rb(18,49152,null,0,a.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(19,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),r.Lb(20,null,["",""])),r.Fb(131072,s.i,[s.j,r.h]),(e()(),r.sb(22,0,null,null,2,"ion-badge",[],null,null,null,o.R,o.c)),r.rb(23,49152,null,0,a.j,[r.h,r.k,r.x],null,null),(e()(),r.Lb(24,0,["",""])),(e()(),r.sb(25,0,null,null,11,"div",[["class","bayaTab"]],null,null,null,null,null)),(e()(),r.sb(26,0,null,null,10,"div",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.selectTab(3)&&r),r}),null,null)),r.Ib(512,null,i.u,i.v,[r.q,r.r,r.k,r.D]),r.rb(28,278528,null,0,i.i,[i.u],{ngClass:[0,"ngClass"]},null),(e()(),r.sb(29,0,null,null,1,"ion-icon",[["name","people"]],null,null,null,o.fb,o.q)),r.rb(30,49152,null,0,a.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(31,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),r.Lb(32,null,["",""])),r.Fb(131072,s.i,[s.j,r.h]),(e()(),r.sb(34,0,null,null,2,"ion-badge",[],null,null,null,o.R,o.c)),r.rb(35,49152,null,0,a.j,[r.h,r.k,r.x],null,null),(e()(),r.Lb(36,0,["",""]))],(function(e,t){var n=t.component;e(t,4,0,n.collectionsClass),e(t,6,0,"aperture"),e(t,16,0,n.itemsClass),e(t,18,0,"copy"),e(t,28,0,n.friendsClass),e(t,30,0,"people")}),(function(e,t){var n=t.component;e(t,0,0,n.text),e(t,8,0,r.Mb(t,8,0,r.Eb(t,9).transform("TABS.collections"))),e(t,12,0,n.getCollectionsNotificationsNumber()),e(t,20,0,r.Mb(t,20,0,r.Eb(t,21).transform("TABS.myItems"))),e(t,24,0,n.getItemsNotificationsNumber()),e(t,32,0,r.Mb(t,32,0,r.Eb(t,33).transform("TABS.friends"))),e(t,36,0,n.getFriendsNotificationsNumber())}))}var v=r.ob("comp-footer",l.a,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"comp-footer",[],null,null,null,p,d)),r.rb(1,49152,null,0,l.a,[a.Gb,u.a,c.a,h.a,f.a],null,null)],null,null)}),{},{},[])},k82s:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.hasPermission=function(){return Object(i.cordova)(this,"hasPermission",{},arguments)},t.prototype.requestPermission=function(){return Object(i.cordova)(this,"requestPermission",{},arguments)},t.prototype.schedule=function(e){return Object(i.cordova)(this,"schedule",{sync:!0},arguments)},t.prototype.update=function(e){return Object(i.cordova)(this,"update",{sync:!0},arguments)},t.prototype.clear=function(e){return Object(i.cordova)(this,"clear",{},arguments)},t.prototype.clearAll=function(){return Object(i.cordova)(this,"clearAll",{},arguments)},t.prototype.cancel=function(e){return Object(i.cordova)(this,"cancel",{},arguments)},t.prototype.cancelAll=function(){return Object(i.cordova)(this,"cancelAll",{},arguments)},t.prototype.isPresent=function(e){return Object(i.cordova)(this,"isPresent",{},arguments)},t.prototype.isScheduled=function(e){return Object(i.cordova)(this,"isScheduled",{},arguments)},t.prototype.isTriggered=function(e){return Object(i.cordova)(this,"isTriggered",{},arguments)},t.prototype.hasType=function(e,t){return Object(i.cordova)(this,"hasType",{},arguments)},t.prototype.getType=function(e){return Object(i.cordova)(this,"getType",{},arguments)},t.prototype.getIds=function(){return Object(i.cordova)(this,"getIds",{},arguments)},t.prototype.getScheduledIds=function(){return Object(i.cordova)(this,"getScheduledIds",{},arguments)},t.prototype.getTriggeredIds=function(){return Object(i.cordova)(this,"getTriggeredIds",{},arguments)},t.prototype.get=function(e){return Object(i.cordova)(this,"get",{},arguments)},t.prototype.getAll=function(){return Object(i.cordova)(this,"getAll",{},arguments)},t.prototype.getScheduled=function(e){return Object(i.cordova)(this,"getScheduled",{},arguments)},t.prototype.getTriggered=function(e){return Object(i.cordova)(this,"getTriggered",{},arguments)},t.prototype.addActions=function(e,t){return Object(i.cordova)(this,"addActions",{},arguments)},t.prototype.removeActions=function(e){return Object(i.cordova)(this,"removeActions",{},arguments)},t.prototype.hasActions=function(e){return Object(i.cordova)(this,"hasActions",{},arguments)},t.prototype.getDefaults=function(){return Object(i.cordova)(this,"getDefaults",{sync:!0},arguments)},t.prototype.setDefaults=function(e){return Object(i.cordova)(this,"setDefaults",{sync:!0},arguments)},t.prototype.getAllScheduled=function(){return Object(i.cordova)(this,"getAllScheduled",{},arguments)},t.prototype.getAllTriggered=function(){return Object(i.cordova)(this,"getAllTriggered",{},arguments)},t.prototype.on=function(e){return Object(i.cordova)(this,"on",{observable:!0,clearFunction:"un",clearWithArgs:!0},arguments)},t.prototype.fireEvent=function(e,t){return Object(i.cordova)(this,"fireEvent",{sync:!0},arguments)},t.prototype.fireQueuedEvents=function(){return Object(i.cordova)(this,"fireQueuedEvents",{},arguments)},t.pluginName="LocalNotifications",t.plugin="cordova-plugin-local-notification",t.pluginRef="cordova.plugins.notification.local",t.repo="https://github.com/katzer/cordova-plugin-local-notifications",t.platforms=["Android","iOS","Windows"],t}(i.IonicNativePlugin)},kJWO:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},kLfG:function(e,t,n){var r={"./ion-action-sheet.entry.js":["dUtr",0,20],"./ion-alert.entry.js":["Q8AI",0,21],"./ion-app_8.entry.js":["hgI1",0,22],"./ion-avatar_3.entry.js":["CfoV",0,23],"./ion-back-button.entry.js":["Nt02",0,24],"./ion-backdrop.entry.js":["Q2Bp",25],"./ion-button_2.entry.js":["0Pbj",0,26],"./ion-card_5.entry.js":["ydQj",0,27],"./ion-checkbox.entry.js":["4fMi",0,28],"./ion-chip.entry.js":["czK9",0,29],"./ion-col_3.entry.js":["/CAe",30],"./ion-datetime_3.entry.js":["WgF3",0,31],"./ion-fab_3.entry.js":["uQcF",0,32],"./ion-img.entry.js":["wHD8",33],"./ion-infinite-scroll_2.entry.js":["2lz6",34],"./ion-input.entry.js":["ercB",0,35],"./ion-item-option_3.entry.js":["MGMP",0,36],"./ion-item_8.entry.js":["9bur",0,37],"./ion-loading.entry.js":["cABk",0,38],"./ion-menu_3.entry.js":["kyFE",0,39],"./ion-modal.entry.js":["TvZU",0,40],"./ion-nav_2.entry.js":["vnES",0,41],"./ion-popover.entry.js":["qCuA",0,42],"./ion-progress-bar.entry.js":["0tOe",0,43],"./ion-radio_2.entry.js":["h11V",0,44],"./ion-range.entry.js":["XGij",0,45],"./ion-refresher_2.entry.js":["nYbb",0,46],"./ion-reorder_2.entry.js":["smMY",0,47],"./ion-ripple-effect.entry.js":["STjf",48],"./ion-route_4.entry.js":["k5eQ",0,49],"./ion-searchbar.entry.js":["OR5t",0,50],"./ion-segment_2.entry.js":["fSgp",0,51],"./ion-select_3.entry.js":["lfGF",0,52],"./ion-slide_2.entry.js":["5xYT",53],"./ion-spinner.entry.js":["nI0H",0,54],"./ion-split-pane.entry.js":["NAQR",55],"./ion-tab-bar_2.entry.js":["knkW",0,56],"./ion-tab_2.entry.js":["TpdJ",0,57],"./ion-text.entry.js":["ISmu",0,58],"./ion-textarea.entry.js":["U7LX",0,59],"./ion-toast.entry.js":["L3sA",0,60],"./ion-toggle.entry.js":["IUOf",0,61],"./ion-virtual-scroll.entry.js":["8Mb5",62]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(r)},i.id="kLfG",e.exports=i},kNMb:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n("/qZA"),n("olg3");var r=n("sUqe"),i=n("AjPc");n("2IJ5"),n("0+M4");var o=function(){function e(t,n,i,o){var a=this;_classCallCheck(this,e),this.socketManager=t,this.userManager=n,this.events=i,this.consoleDialog=o,i.subscribe(r.b.CheckEvents,(function(e,t){a.checkEvents()}))}return _createClass(e,[{key:"handleMessage",value:function(e){var t=JSON.parse(e);if(i.a.isJson(t.msg)){var n=JSON.parse(t.msg);if(Array.isArray(n.events)){var o,a=_createForOfIteratorHelper(n.events);try{for(a.s();!(o=a.n()).done;){var s=o.value;this.consoleDialog.log2("push event",s),this.events.publish(s.action,JSON.parse(s.data),Date.now()),this.socketManager.queryPro(r.a.DeleteEvent,n,this,this.userManager.user.getMainAccessToken())}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"checkEvents",value:function(){null!=this.userManager.user&&this.socketManager.queryPro("checkEvents",{},this,this.userManager.user.getMainAccessToken())}}]),e}()},kbZ1:function(e,t,n){"use strict";var r=n("7BDe");n("2IJ5");var i,o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).words=[],r.relatedWords=[],r}return _createClass(n,[{key:"setWords",value:function(e){}},{key:"setRelatedWords",value:function(e){this.relatedWords=e}},{key:"getSummary",value:function(){return this.title}}]),n}(r.a),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).type=e.type,r}return n}(r.a),s=n("oCF6"),l=n("sUqe"),u=n("AjPc"),c=((i=function(){function e(t){_classCallCheck(this,e),this.syncing=!1,this.itemsMgr=t}return _createClass(e,[{key:"handleMessage",value:function(t,n){var r=JSON.parse(t);r.owner==e.syncItems&&this.onSyncResultReceived(r),this.setSyncing(!1)}},{key:"setSyncing",value:function(e){this.syncing=e}},{key:"onSyncResultReceived",value:function(e){if(!u.a.isJson(e.msg))return!0;var t=JSON.parse(e.msg);if(null!=t.created){var n,r=_createForOfIteratorHelper(t.created);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.itemsMgr.events.publish(l.b.UpdateItems,{chatID:i})}}catch(h){r.e(h)}finally{r.f()}}if(t.deleted){var o,a=_createForOfIteratorHelper(t.deleted);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(s.deleted){var c=this.itemsMgr.find(s.itemID);this.itemsMgr.deleteItemLocally(c)}}}catch(h){a.e(h)}finally{a.f()}}}},{key:"sync",value:function(){var t,n=[],r=_createForOfIteratorHelper(this.itemsMgr.items);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i.itemID)}}catch(o){r.e(o)}finally{r.f()}this.itemsMgr.socketManager.queryPro(e.syncItems,n,this,this.itemsMgr.userManager.user.getMainAccessToken())}}]),e}()).getNewItems="getNewItems",i.loadMyItems="loadMyItems",i.syncItems="syncItems",i);n("EGUZ"),n("GAbP"),n("/qZA"),n("olg3"),n("0+M4"),n.d(t,"a",(function(){return f}));var h,f=((h=function(){function e(t,n,r,i,o,a,s){var u=this;_classCallCheck(this,e),this.storageManager=t,this.databaseManager=n,this.socketManager=r,this.platform=i,this.consoleDialog=o,this.userManager=a,this.events=s,this.items=[],this.backUpitems=[],this.newItemsNumber=0,this.alreadyCreated=!0,this.publicItems=[],this.userManager.loggedIn().then((function(){u.itemsStorage=u.userManager.user.userID+"myItems"})),this.synchronizer=new c(this),this.registerEvents(),s.subscribe(l.b.CheckEvents,(function(e){u.refresh()}))}return _createClass(e,[{key:"registerEvents",value:function(){var e=this;this.events.subscribe(l.b.UpdateItems,(function(t){e.socketManager.queryPro(l.a.GetItem,t,e,e.userManager.user.getMainAccessToken())})),this.events.subscribe(l.b.UpdateMessages,(function(t){e.socketManager.queryPro(l.a.GetMessage,t,e,e.userManager.user.getMainAccessToken())}))}},{key:"allowTutorial",value:function(){return 0==this.items.length&&!this.alreadyCreated}},{key:"handleMessage",value:function(e){var t=JSON.parse(e);t.owner==l.a.GetItem&&this.addItemLocally(t)}},{key:"deleteItem",value:function(e){this.socketManager.queryPro("removeItem",e.getSimpleModel(),this,this.userManager.user.getMainAccessToken()),console.log(" item.getSimpleModel() is: ",e.getSimpleModel()),this.deleteItemLocally(e)}},{key:"deleteItemLocally",value:function(e){console.log("hiiiiiiiiiiiiiii in deleteItemLocally");var t=this.items.indexOf(e);console.log("this.items.indexOf(item):",this.items.indexOf(e)),this.items.splice(t,1),this.platform.is("cordova")?(console.log(" if(this.platform.is(cordova)"),this.databaseManager.deleteItem(e)):(console.log(" ELSE--\x3eif(this.platform.is(cordova)"),this.storageManager.set(this.getItemStorageName(),this.getSimpleModelOfItems()),console.log("this.getItemStorageName()",this.getItemStorageName()),console.log("this.getSimpleModelOfItems()",this.getSimpleModelOfItems()),this.storageManager.set(this.getItemStorageName()+e.storageID,null),console.log("this.getItemStorageName() + item.storageID",this.getItemStorageName()+e.storageID))}},{key:"addItemLocally",value:function(e){if(u.a.isJson(e.msg)){var t=JSON.parse(e.msg),n=this.createItem(t);if("chat"==n.type)return!1;if(this.items.push(n),this.newItemsNumber++,this.platform.is("cordova"))this.databaseManager.addItem(new r.a(t));else{n.setStorageID(t.itemID);var i=new s.a(n);this.storageManager.set(i.chatID,i),this.save()}}}},{key:"addItemWithoutInternet",value:function(e){var t=new s.a(e);this.items.push(e),this.storageManager.set(t.chatID,t),this.save()}},{key:"refresh",value:function(){var e=this;return new Promise((function(t){e.userManager.loggedIn().then((function(){e.platform.is("cordova")?e.databaseManager.getItems(e.userManager.user).then((function(n){var i,o=_createForOfIteratorHelper(n);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=new r.a(a);e.hasNotItem(s)&&e.items.push(s)}}catch(l){o.e(l)}finally{o.f()}t(e.items)})):e.storageManager.get(e.getItemStorageName()).then((function(t){for(var n in t){var i=new r.a(t[n]);e.hasNotItem(i)&&e.items.push(new r.a(t[n]))}e.sync()}))})).catch((function(t){e.consoleDialog.log("login error",t)}))}))}},{key:"hasNotItem",value:function(e){return 0==this.items.filter((function(t){if(e.itemID==t.itemID)return t})).length}},{key:"sync",value:function(){this.synchronizer.sync()}},{key:"add",value:function(e){var t=this;this.items.push(e),this.platform.is("cordova")?(console.log('if (this.platform.is("cordova")'),this.databaseManager.init(this.userManager.user).then((function(){t.databaseManager.addItem(e)}))):(console.log("if cordova ->else"),this.save())}},{key:"getItemStorageName",value:function(){return this.itemsStorage=this.userManager.user.userID+"myItems",this.itemsStorage}},{key:"searchBackUp",value:function(){this.backUpitems=[];var e,t=_createForOfIteratorHelper(this.items);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.backUpitems.push(n)}}catch(r){t.e(r)}finally{t.f()}}},{key:"search",value:function(t){var n=this;if(!t)return!1;this.items=this.backUpitems.filter((function(e){if(e.title.includes(t))return e})),this.socketManager.asyncQuery(e.actionGetPublicItems,{needle:t}).then((function(e){var t=e.getParam("publicItemsData");if(t){n.publicItems.length=0;var r,i=_createForOfIteratorHelper(t);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=n.createItemByItemData(o);a.setAutoInit(!1),n.publicItems.push(a)}}catch(s){i.e(s)}finally{i.f()}}}))}},{key:"endSearch",value:function(){this.publicItems.length=0,this.items=this.backUpitems}},{key:"save",value:function(){this.getSimpleModelOfItems(),this.storageManager.set(this.getItemStorageName(),this.getSimpleModelOfItems())}},{key:"getSimpleModelOfItems",value:function(){var e,t=[],n=_createForOfIteratorHelper(this.items);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r.getSimpleModel())}}catch(i){n.e(i)}finally{n.f()}return t}},{key:"find",value:function(e){var t,n=_createForOfIteratorHelper(this.items);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.itemID==e)return r}}catch(i){n.e(i)}finally{n.f()}}},{key:"addItemViaAjaxBridge",value:function(){}},{key:"addItem",value:function(e,t){this.socketManager.queryPro("addItem",e,t,this.userManager.user.getMainAccessToken())}},{key:"addNewItem",value:function(e){var t=this;return this.socketManager.asyncQuery("addNewItem",{item:e}).then((function(n){n.isAllowed()&&(e.itemID=n.getParam("itemID"),e.setUserID(t.userManager.user.userID),t.add(e))}))}},{key:"clearNotification",value:function(){this.newItemsNumber=0}},{key:"getNotificationsNumber",value:function(){return this.newItemsNumber}},{key:"createItem",value:function(e){var t;switch(e.type||e.itemType){case"dictionary":t=new o(e);try{t.title=e.getTitle()}catch(n){t.title=e.title,console.log("error",n)}break;case"puzzle":t=new a(e);break;case"quiz":case"artikelQuiz":case"imageQuiz":case"translationQuiz":t=new o(e);try{t.title=e.getTitle()}catch(n){t.title=e.title,console.log("error",n)}break;case"puzzle":t=new o(e);break;case"leitner":t=new o(e);try{t.title=e.getTitle()}catch(n){t.title=e.title,console.log("error",n)}break;default:t=new o(e)}return t}},{key:"createItemByItemData",value:function(e){var t;switch(e.itemType){case"dictionary":t=new o(e);break;case"puzzle":t=new a(e);break;case"quiz":case"artikelQuiz":case"imageQuiz":case"translationQuiz":case"puzzle":case"leitner":default:t=new o(e)}return t}}]),e}()).actionGetPublicItems="getPublicItems",h)},l7GE:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(n("7o/Q").a)},lJxs:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).project=r,o.count=0,o.thisArg=i||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(r.a)},"m/40":function(e,t,n){"use strict";var r=n("8Y7J"),i=n("MKJQ"),o=n("sZkV"),a=n("SVse"),s=n("g4Gf"),l=n("wZ9J"),u=n("olg3"),c=n("kbZ1"),h=n("J20c"),f=n("EGUZ"),d=n("2IJ5"),p=n("0+M4");n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"a",(function(){return b}));var v=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%] ion-item.item.item-block[_ngcontent-%COMP%]{background-color:#e8e8e8}[_nghost-%COMP%] ion-item.item.item-block[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{color:#585858;margin:0;height:100%}[_nghost-%COMP%] ion-item.item.item-block[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:50px;height:90px}[_nghost-%COMP%] ion-item.item.item-block[_ngcontent-%COMP%] ion-input[_ngcontent-%COMP%]{background:#000;border-radius:25px;padding-left:20px;height:38%;float:left}[_nghost-%COMP%] ion-item.item.item-block[_ngcontent-%COMP%] ion-col.col.iconArea[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] ion-item.item.item-block[_ngcontent-%COMP%] ion-row[_ngcontent-%COMP%] ion-col.iconArea[_ngcontent-%COMP%]{flex-grow:3}[_nghost-%COMP%] ion-item.item.item-block[_ngcontent-%COMP%] ion-row[_ngcontent-%COMP%] ion-col.contentArea[_ngcontent-%COMP%]{flex-grow:11;padding-top:11px}[_nghost-%COMP%] ion-item.item.item-block[_ngcontent-%COMP%] ion-row[_ngcontent-%COMP%] ion-col.badgeArea[_ngcontent-%COMP%]{flex-grow:3}[_nghost-%COMP%] ion-item.item.item-block[_ngcontent-%COMP%] .titleArea[_ngcontent-%COMP%]{width:60%;overflow:hidden;display:inline-block}[_nghost-%COMP%] ion-item.item.item-block[_ngcontent-%COMP%] .titleArea[_ngcontent-%COMP%] p.subtitleArea[_ngcontent-%COMP%]{margin-top:5px;opacity:.8}[_nghost-%COMP%] ion-item[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{float:right}[_nghost-%COMP%] .itemActionSheet[_ngcontent-%COMP%]{background-color:red}[_nghost-%COMP%] .itemActionSheet[_ngcontent-%COMP%] .action-sheet-wrapper[_ngcontent-%COMP%]{width:80%}[_nghost-%COMP%] .itemActionSheet[_ngcontent-%COMP%] .action-sheet-wrapper[_ngcontent-%COMP%] .action-sheet-container[_ngcontent-%COMP%]{border-radius:20px}[_nghost-%COMP%] .itemActionSheet[_ngcontent-%COMP%] .action-sheet-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:red}[_nghost-%COMP%] ion-badge.badge[_ngcontent-%COMP%]{background-color:#12e1ec;border-radius:100%;height:auto;color:#647976;vertical-align:middle;font-size:1.4rem}[_nghost-%COMP%] ion-icon.itemMainIcon[_ngcontent-%COMP%]{float:left!important;margin-right:20px;font-size:35px!important;padding-top:10px}.free[_ngcontent-%COMP%]{border-radius:50px;margin:3px}.free[_ngcontent-%COMP%] .mainRow[_ngcontent-%COMP%]{width:100%}.free[_ngcontent-%COMP%] .iconArea[_ngcontent-%COMP%]{flex-grow:0}.free[_ngcontent-%COMP%] .iconArea[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{float:none!important}.free[_ngcontent-%COMP%] .contentArea[_ngcontent-%COMP%]{flex-grow:11}.subtitleArea[_ngcontent-%COMP%]{margin:0;color:#909090!important;font-weight:400!important}.titleArea[_ngcontent-%COMP%]{font-weight:400!important;color:#000!important}"]],data:{}});function g(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,20,"ion-item",[["class","free"]],[[4,"background-color",null]],null,null,i.jb,i.u)),r.rb(1,49152,null,0,o.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,18,"ion-row",[["class","mainRow"]],null,null,null,i.qb,i.B)),r.rb(3,49152,null,0,o.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,3,"ion-col",[["class","iconArea"]],null,null,null,i.X,i.i)),r.rb(5,49152,null,0,o.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(6,0,null,0,1,"ion-icon",[["class","itemMainIcon"]],null,null,null,i.fb,i.q)),r.rb(7,49152,null,0,o.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(8,0,null,0,7,"ion-col",[["class","contentArea"]],null,null,null,i.X,i.i)),r.rb(9,49152,null,0,o.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(10,0,null,0,5,"ion-row",[],null,null,null,i.qb,i.B)),r.rb(11,49152,null,0,o.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(12,0,null,0,3,"div",[["class","titleArea"]],null,[[null,"press"]],(function(e,t,n){var r=!0,i=e.component;return"press"===t&&(r=!1!==(i.isItemOwner()?i.showOptions(n):i.showOptionsLeave(n))&&r),r}),null,null)),(e()(),r.Lb(13,null,[" "," "])),(e()(),r.sb(14,0,null,null,1,"p",[["class","subtitleArea"]],null,null,null,null,null)),(e()(),r.Lb(15,null,[" "," "])),(e()(),r.sb(16,0,null,0,4,"ion-col",[["class","badgeArea"]],null,null,null,i.X,i.i)),r.rb(17,49152,null,0,o.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(18,0,null,0,2,"ion-badge",[],null,null,null,i.R,i.c)),r.rb(19,49152,null,0,o.j,[r.h,r.k,r.x],null,null),(e()(),r.Lb(20,0,["",""]))],(function(e,t){e(t,7,0,r.wb(1,"",t.component.getIconName(),""))}),(function(e,t){var n=t.component;e(t,0,0,n.isItemOwner()?"#ffffff":"#dcddec"),e(t,13,0,n.item.title),e(t,15,0,n.getLastMessageSummary()),e(t,20,0,n.getMessagesNumber())}))}function m(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"ion-icon",[["name","md-checkmark-circle"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.save(n)&&r),r}),i.fb,i.q)),r.rb(1,49152,null,0,o.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){e(t,1,0,"md-checkmark-circle")}),null)}function y(e){return r.Nb(0,[(e()(),r.hb(16777216,null,null,1,null,g)),r.rb(1,16384,null,0,a.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,m)),r.rb(3,16384,null,0,a.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,1,0,n.loaded),e(t,3,0,n.editMode)}),null)}var b=r.ob("item",s.a,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"item",[],null,null,null,y,v)),r.rb(1,5292032,null,0,s.a,[l.a,u.a,o.Gb,o.Fb,c.a,h.a,f.a,o.Jb,d.a,p.a,o.a],null,null)],null,null)}),{itemObject:"itemObject"},{},[])},mCNh:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("SpAZ");function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(t)}function o(e){return 0===e.length?r.a:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}},mrSG:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(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}function a(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}},n6bG:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",(function(){return r}))},nAxv:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("+mLH"),i=n("7BDe"),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),null!=e&&(r=t.call(this,e),null!=e.chatID&&(e.itemID=e.chatID,e.storageID=e.chatID),null!=e.friendID&&(r.userID=e.friendID),r.chatID=e.chatID,e.type="chat",e.title=r.email,r.item=new i.a(e.item?e.item:e)),r}return _createClass(n,[{key:"getSimpleModelOfFriend",value:function(){var e=new n(Object.assign({},this));return this.chat&&(e.chat=this.chat.getSimpleModel()),this.item&&(e.item=this.item.getSimpleModel()),e}}]),n}(r.a)},nBaR:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("p74H"),n("kbZ1"),n("QA36"),n("kNMb"),n("MF7w"),n("LKtr"),n("EGUZ"),n("GAbP"),n("/qZA"),n("olg3"),n("h4wn"),n("J20c"),n("sk1z"),n("2IJ5"),n("PJj0"),n("ZZmf"),n("0FpF"),n("AcVp"),n("BNVH"),n("FUig"),n("0+M4");var r=function(){function e(t,n,r,i,o,a,s,l,u,c,h,f,d,p,v,g,m,y,b,k,_,C,w,S,O,x){_classCallCheck(this,e),this.navCtrl=t,this.itemsManager=n,this.collectionsManager=r,this.eventsManager=i,this.tabsManager=o,this.socketManager=a,this.userManager=s,this.friendsManager=l,this.chatsManager=u,this.router=c,this.storageManager=h,this.accountManager=f,this.statusBar=d,this.translateService=p,this.backgroundMode=v,this.localNotificationManager=g,this.wordsManager=m,this.notificationsManager=y,this.consoleDialog=b,this.databaseManager=k,this.adsManager=_,this.appRateManager=C,this.platform=w,this.nativePageTransitions=S,this.modalCtrl=O,this.events=x,this.hasCheckedDatabaseForItems=!1,this.init(),this.events.subscribe("user:created",(function(e){console.log("Welcome "),console.log(e)}))}return _createClass(e,[{key:"divClicked",value:function(){this.events.publish("user:created","vahid",new Date)}},{key:"init",value:function(){var e=this;this.platform.ready().then((function(){e.platform.is("cordova")?(e.appRateManager.init(),e.notificationsManager.init(),e.platform.is("ios")||(e.backgroundMode.setDefaults({title:"Bayadic",text:"it is here to run faster",resume:!0,hidden:!0,silent:!0}),e.backgroundMode.enable()),e.statusBar.overlaysWebView(!1),e.navCtrl.pop().then((function(){e.adsManager.isAdsNeeded()&&e.adsManager.showInterstitialAdAfterBack()}))):e.backgroundMode.moveToBackground()})),this.tabsManager.selectedTab=2,this.registerEvents()}},{key:"registerEvents",value:function(){var e=this;this.events.subscribe("watchAdsClosed",(function(){e.navCtrl.pop()}))}},{key:"initChat",value:function(e){return this.chatsManager.initChat(e)}},{key:"isTesting",value:function(){return!this.platform.is("cordova")}},{key:"addNewWord",value:function(){var e=this.wordsManager.createWord({name:"",word:"dank",artikel:"f",plural:"dankee",translation:"\u0645\u0645\u0646\u0648\u0646",wordType:"noun"});e.setUserID(this.userManager.user.userID),e.setMessageID("324234234"),this.socketManager.queryPro("addNewWord",{word:e},this,this.userManager.user.getMainAccessToken())}},{key:"openItem",value:function(e){var t=this;this.initChat(e).then((function(e){return t.chatsManager.synchronizer.getNewMessages(e),e})).then((function(e){t.router.navigate(["chat"],{state:{chat:e}}).then((function(){e.setViewLoaded(!0),console.log("in Items component openitem(item) chat after navigate is:",e)}))}))}},{key:"connectAgain",value:function(){this.consoleDialog.log("connect again",{}),this.socketManager.connect()}},{key:"logout",value:function(){this.userManager.logOut()}},{key:"disconnect",value:function(){console.log("serve disconnect"),this.socketManager.disconnect()}},{key:"getItems",value:function(){}},{key:"addItem",value:function(){this.databaseManager.addItem(this.itemsManager.items[0])}},{key:"handleMessage",value:function(){console.log(" truncrated? :D")}},{key:"ionViewDidEnter",value:function(){this.hasCheckedDatabaseForItems&&(this.itemsManager.synchronizer.sync(),this.chatsManager.setAllChatsView(!1))}},{key:"swipeEvent",value:function(e){console.log(e,"swip event ")}},{key:"showConjunction",value:function(){}},{key:"truncrate",value:function(e){this.platform.is("cordova")?this.databaseManager.truncrate():(this.storageManager.set(this.itemsManager.itemsStorage,{}),this.itemsManager.items.length=0),this.friendsManager.friends.length=0,this.friendsManager.save(),e.close()}},{key:"showConsoleDialog",value:function(e){this.consoleDialog.devMode=!0,e.close()}},{key:"getFirstDictionaryItem",value:function(){return!1}},{key:"correctPage",value:function(){this.adsManager.mopubManager.createBanner()}},{key:"toggleDebugDialog",value:function(){this.consoleDialog.devMode=!this.consoleDialog.devMode}},{key:"ngAfterViewInit",value:function(){var e=this;this.itemsManager.refresh().then((function(){e.platform.is("android")&&(e.hasCheckedDatabaseForItems=!0),e.itemsManager.sync()})),this.eventsManager.checkEvents()}},{key:"ngOnChanges",value:function(){this.itemsManager.clearNotification()}}]),e}()},nYR2:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7o/Q"),i=n("quSY");function o(e){return function(t){return t.lift(new a(e))}}var a=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.callback))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).add(new i.a(r)),o}return n}(r.a)},neAe:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("mrSG"),i=(n("F9l0"),n("3MOV"),n("MF7w"),n("xNyf"),n("EGUZ"),n("GAbP"),n("olg3"),n("/qZA"),n("J20c"),n("2IJ5"),n("sk1z"),n("1Zg0"),n("pJ1N")),o=(n("oCF6"),n("0NL6")),a=n("p9zK"),s=n("AjPc");n("Zr1d"),n("wZ9J");var l=function(){function e(t,n,r,i,o,a,s,l,u,c,h,f,d,p,v,g,m,y,b,k){_classCallCheck(this,e),this.ajaxBridge=t,this.wordsManager=n,this.messagesManager=r,this.storageManager=i,this.databaseManager=o,this.userManager=a,this.socketManager=s,this.consoleDialog=l,this.speechRecognition=u,this.adsManager=c,this.memberManager=h,this.platform=f,this.keyboard=d,this.keyboard2=p,this.renderer=v,this.modalCtrl=g,this.elementRef=m,this.chatsManager=y,this.tourGuideManager=b,this.cdRef=k,this.showWordList=!1,this.textPointerPosition=0,this.fabIconName="keypad",this.micBtnEnabled=!0,this.sendBtnEnabled=!1,this.isReadOnly=!1,this.generatingQuiz=!1,this.similarWords=[],this.similarWordsInLocalDB=[],this.text="Hello World",this.recording=!1,this.keyboard.disableScroll(!0)}return _createClass(e,[{key:"handleMessage",value:function(t,n){if("addMessage"==n.action){n.message.setStatus(n.message.possibleStatuses.receivedByServer);var r=JSON.parse(t);if(s.a.isJson(r.msg)){var i=JSON.parse(r.msg);n.message.setMessageID(i.messageID),this.databaseManager.addMessage(this.chat,n.message),this.chatsManager.onMessageAdded()}}else if("generateQuiz"==n.action){console.log("let chat = this.chat; in handleMessage()",this.chat);var o=JSON.parse(t);console.log("messageObject in handleMessage()",o);var a=JSON.parse(o.msg);console.log("quiz messages in handleMessage()",a),console.log("let chatsMgr = this.chatsManager:",this.chatsManager),this.chatsManager.synchronizer.getNewMessages(this.chat),this.setGeneratingQuiz(!1)}else if(n.action==e.suggestWordAction){var l=JSON.parse(t),u=JSON.parse(l.msg);if(!this.isTyping())return!1;var c,h=_createForOfIteratorHelper(u);try{for(h.s();!(c=h.n()).done;){var f=c.value;null!=f&&(-1==this.similarWordsInLocalDB.indexOf(f.searchedWord)&&this.similarWords.push(f.searchedWord),this.wordsManager.saveWord(f.searchedWord))}}catch(d){h.e(d)}finally{h.f()}}this.content.scrollToBottom()}},{key:"isTyping",value:function(){return this.typing}},{key:"setTyping",value:function(e){this.typing=e}},{key:"hasSuggestion",value:function(){return this.similarWords.length>0||this.similarWordsInLocalDB.length>0}},{key:"ngOnInit",value:function(){console.log("this.chat in ngOnInit:",this.chat),console.log("this.content in ngOnInit:",this.content),this.theme()}},{key:"isIos",value:function(){return!!this.platform.is("ios")}},{key:"suggestWords",value:function(){var t=this;if(this.similarWords=[],this.similarWordsInLocalDB=[],this.msg&&this.msg.length>1){this.showWordList=!0;var n={word:this.msg};this.wordsManager.getSuggestions(this.msg).then((function(r){r.length<3&&t.socketManager.queryPro(e.suggestWordAction,n,t,t.userManager.user.getMainAccessToken()),t.similarWordsInLocalDB=r})),this.setTyping(!0)}}},{key:"keypress",value:function(e){this.resize(),this.chat.isDictionary()&&this.suggestWords(),this.chat.hasPremissionToSendMessage()&&this.switchSendMicButton()}},{key:"paste",value:function(e){this.chat.isDictionary()&&this.suggestWords(),this.enableSendBtn(!0)}},{key:"switchSendMicButton",value:function(){this.enableSendBtn(null!=this.msg&&this.msg.length>0)}},{key:"enableSendBtn",value:function(e){this.micBtnEnabled=!e,this.sendBtnEnabled=e}},{key:"isMicBtnEnabled",value:function(){return this.micBtnEnabled}},{key:"isSendBtnEnabled",value:function(){return this.sendBtnEnabled}},{key:"select",value:function(e){this.msg=e,this.send()}},{key:"requestQuiz",value:function(){var e={data:"",itemID:this.chat.chatID,type:this.chat.type};console.log("this.chat in chat input component is:",this.chat),console.log("this.content in chat input component is:",this.content),console.log("this.chat.type in chat input component is:",this.chat.chatID,"+",this.chat.type),this.generatingQuiz=!0,this.socketManager.queryPro("generateQuiz",e,this,this.userManager.user.getMainAccessToken()),console.log("let requestData in chat input component is:",e),this.adsManager.prepareRewardAd(),this.adsManager.setAdsNeeded(!0),this.chatsManager.runAds()}},{key:"setGeneratingQuiz",value:function(e){this.generatingQuiz=e}},{key:"isGeneratingQuiz",value:function(){return this.generatingQuiz}},{key:"generate",value:function(){this.requestQuiz()}},{key:"send",value:function(){this.chatsManager.runAds(),this.textPointerPosition=0,""!=this.msg.trim()&&(this.setTyping(!1),this.addMessage(),this.enableSendBtn(!1),this.content.scrollToBottom(),this.msg=null,this.resize(),this.similarWords.length=0,this.similarWordsInLocalDB.length=0,this.similarWords.length=0)}},{key:"createMessageOfType",value:function(e){var t;switch(e){case"chat":t=new o.a({text:this.msg,content:[],type:this.msgType,from:this.userManager.user,receivedTime:s.d.getTimeString()});break;case"dictionary":t=new o.a({text:this.msg.trim(),content:[],type:this.msgType,from:this.userManager.user,receivedTime:s.d.getTimeString()});break;case"leitner":t=new o.a({text:this.msg,content:[],type:this.msgType,from:this.userManager.user,receivedTime:s.d.getTimeString()});break;case"artikelQuiz":t=new a.a({text:this.msg,content:[],type:this.msgType,from:this.userManager.user,receivedTime:s.d.getTimeString()}),console.log("message in createMessageOfType(msgType: string): ",t);break;case"imageQuiz":case"translationQuiz":t=new a.a({text:this.msg,content:[],type:this.msgType,from:this.userManager.user,receivedTime:s.d.getTimeString()})}return t}},{key:"isQuizType",value:function(){return this.msgType.toLowerCase().includes("quiz")}},{key:"ngAfterContentInit",value:function(){}},{key:"ngAfterViewInit",value:function(){return r.a(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this,!this.chat.isChatTutorial()||!this.chat.isFirstUsage()||this.chat.isFinishedTutorial()){e.next=9;break}return this.tourGuideManager.initInputChatTips(),t.chat.setFinishedTutorial(!0),t.chat.setFirstUsage(!1),e.next=5,this.modalCtrl.create({component:i.a});case 5:(n=e.sent).present(),n.onDidDismiss().then((function(){t.msg="Buch",t.enableSendBtn(!0),t.tourGuideManager.initSendTips(),n.present(),n.onDidDismiss().then((function(){t.send()}))})),e.next=10;break;case 9:this.chat.hasClipBoardText()&&(t.msg=this.chat.getClipBoardText(),t.enableSendBtn(!0),t.suggestWords());case 10:case"end":return e.stop()}}),e,this)})))}},{key:"ngAfterViewChecked",value:function(){}},{key:"ionViewDidLoad",value:function(){}},{key:"ngAfterContentChecked",value:function(){}},{key:"ionViewDidEnter",value:function(){}},{key:"addMessage",value:function(){null==this.msgType&&(this.msgType=this.chat.type);var e=this.createMessageOfType(this.msgType);e.setStatus(e.possibleStatuses.created);var t={data:e.getData(),itemID:this.chat.chatID};this.socketManager.queryPro("addMessage",t,this,this.userManager.user.getMainAccessToken(),e).then((function(){e.setStatus(e.possibleStatuses.pushedToServer)})),this.chat.messages.push(e)}},{key:"saveMessageInDatabase",value:function(e){this.platform.is("cordova")?this.databaseManager.addMessage(this.chat,e):this.chatsManager.save(this.chat)}},{key:"holdMicroPhone",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"de-DE";this.speechRecognition.isRecognitionAvailable().then((function(n){n&&e.speechRecognition.hasPermission().then((function(n){n?e.startRecognitionProcess(t):e.speechRecognition.requestPermission().then((function(){e.startRecognitionProcess(t),console.log("Granted")}),(function(){return console.log("Denied")}))}))}))}},{key:"startRecognitionProcess",value:function(e){var t=this;this.speechRecognition.startListening({language:e,matches:1,showPopup:!0}).subscribe((function(e){e[0].includes("0")||(t.msg=e[0],t.enableSendBtn(!0))}),(function(e){JSON.stringify(e)}))}},{key:"resize",value:function(){return!0}},{key:"holdMicroPhoneFa",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fa-IR";this.speechRecognition.isRecognitionAvailable().then((function(n){n&&e.speechRecognition.hasPermission().then((function(n){n?e.startRecognitionProcess(t):e.speechRecognition.requestPermission().then((function(){console.log("Granted"),e.startRecognitionProcess(t)}),(function(){return console.log("Denied")}))}))}))}},{key:"leaveMicroPhone",value:function(){this.recording=!1,this.speechRecognition.stopListening()}},{key:"setMsgType",value:function(e,t){this.msgType=e,this.changeFabIconName()}},{key:"changeFabIconName",value:function(){switch(this.msgType){case"chat":this.fabIconName="chatbubble-sharp";break;case"dictionary":this.fabIconName="bookmarks"}}},{key:"getPlaceHolder",value:function(){var e="Wort";switch(this.msgType){case"chat":e="Message";break;case"dictionary":e="Wort"}return e}},{key:"showKeyboard",value:function(e){}},{key:"isOwner",value:function(){return!!this.chat&&(this.chat.item.userID==this.userManager.user.userID||this.isAdmin()||this.chat.isChat()||null==this.chat.getCreatorID())}},{key:"isAdmin",value:function(){var e=this;return this.chat.admins.filter((function(t){if(t.userID==e.userManager.user.userID)return t})).length>0}},{key:"isMember",value:function(){var e=this;return this.chat.members.filter((function(t){if(t.userID==e.userManager.user.userID)return t})).length>0}},{key:"preventBlur",value:function(e){e.preventDefault()}},{key:"join",value:function(){this.memberManager.join(this.chat)}},{key:"theme",value:function(){return!0===this.userManager.theme?(this.myval="mood1",!0):(this.myval="mood2",!1)}}],[{key:"suggestWordAction",get:function(){return"getSuggestion"}}]),e}()},nfSX:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.init=function(e){return new a(e)},t.prototype.hasPermission=function(){return Object(i.cordova)(this,"hasPermission",{},arguments)},t.prototype.createChannel=function(e){return Object(i.cordova)(this,"createChannel",{callbackOrder:"reverse"},arguments)},t.prototype.deleteChannel=function(e){return Object(i.cordova)(this,"deleteChannel",{callbackOrder:"reverse"},arguments)},t.prototype.listChannels=function(){return Object(i.cordova)(this,"listChannels",{},arguments)},t.pluginName="Push",t.plugin="phonegap-plugin-push",t.pluginRef="PushNotification",t.repo="https://github.com/phonegap/phonegap-plugin-push",t.install="ionic cordova plugin add phonegap-plugin-push",t.platforms=["Android","Browser","iOS","Windows"],t}(i.IonicNativePlugin),a=function(){function e(e){!0===Object(i.checkAvailability)("PushNotification","init","PushNotification")&&"undefined"!=typeof window&&(this._objectInstance=window.PushNotification.init(e))}return e.prototype.on=function(e){return Object(i.cordovaInstance)(this,"on",{observable:!0,clearFunction:"off",clearWithArgs:!0},arguments)},e.prototype.unregister=function(){return Object(i.cordovaInstance)(this,"unregister",{},arguments)},e.prototype.setApplicationIconBadgeNumber=function(e){return Object(i.cordovaInstance)(this,"setApplicationIconBadgeNumber",{callbackOrder:"reverse"},arguments)},e.prototype.getApplicationIconBadgeNumber=function(){return Object(i.cordovaInstance)(this,"getApplicationIconBadgeNumber",{},arguments)},e.prototype.finish=function(e){return Object(i.cordovaInstance)(this,"finish",{callbackOrder:"reverse"},arguments)},e.prototype.clearAllNotifications=function(){return Object(i.cordovaInstance)(this,"clearAllNotifications",{},arguments)},e.prototype.subscribe=function(e){return Object(i.cordovaInstance)(this,"subscribe",{},arguments)},e.prototype.unsubscribe=function(e){return Object(i.cordovaInstance)(this,"unsubscribe",{},arguments)},e.pluginName="Push",e.plugin="phonegap-plugin-push",e.pluginRef="PushNotification",e}()},ngJS:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}}},"o/Pg":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).role=e.role,r}return _createClass(n,[{key:"role",get:function(){return this._role},set:function(e){this._role=null==e?"member":e}}]),n}(n("+mLH").a)},oAJy:function(e,t,n){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return i(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var o=!1,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(c),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&d(this,e)}function c(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){r((function(){var r;try{r=t(n)}catch(i){return o.reject(e,i)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=p((function(){t(i,r)}));"error"===a.status&&r(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(r){n.status="error",n.value=r}return n}t.exports=u,u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?h(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){o.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(f,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)d(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,u=new this(i);++l<n;)c(e[l],l);return u;function c(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==n||r||(r=!0,o.resolve(u,a))}),(function(e){r||(r=!0,o.reject(u,e))}))}},u.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var r=-1,a=new this(i);++r<t;)this.resolve(e[r]).then((function(e){n||(n=!0,o.resolve(a,e))}),(function(e){n||(n=!0,o.reject(a,e))}));return a}},{1:1}],3:[function(e,t,n){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function o(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var a=Promise;function s(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function l(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function u(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function c(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var h=void 0,f={},d=Object.prototype.toString;function p(e){var t=f[e.name],n={};n.promise=new a((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady=t.dbReady?t.dbReady.then((function(){return n.promise})):n.promise}function v(e){var t=f[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function g(e,t){var n=f[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function m(e,t){return new a((function(n,r){if(f[e.name]=f[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);p(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var a=i.open.apply(i,o);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore("local-forage-detect-blob-support")}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){n(a.result),v(e)}}))}function y(e){return m(e,!1)}function b(e){return m(e,!0)}function k(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version>e.db.version;if(e.version<e.db.version&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),r||n){if(n){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function _(e){return o([function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}(atob(e.data))],{type:e.type})}function C(e){return e&&e.__local_forage_encoded_blob}function w(e){var t=this,n=t._initReady().then((function(){var e=f[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return l(n,e,e),n}function S(e,t,n,r){void 0===r&&(r=1);try{var i=e.db.transaction(e.storeName,t);n(null,i)}catch(o){if(r>0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),b(e)})).then((function(){return function(e){p(e);for(var t=f[e.name],n=t.forages,r=0;r<n.length;r++){var i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,y(e).then((function(t){return e.db=t,k(e)?b(e):t})).then((function(r){e.db=t.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r})).catch((function(t){throw g(e,t),t}))}(e).then((function(){S(e,t,n,r-1)}))})).catch(n);n(o)}}var O={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=f[n.name];i||(f[n.name]=i={forages:[],db:null,dbReady:null,deferredOperations:[]}),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=w);var o=[];function s(){return a.resolve()}for(var l=0;l<i.forages.length;l++){var u=i.forages[l];u!==t&&o.push(u._initReady().catch(s))}var c=i.forages.slice(0);return a.all(o).then((function(){return n.db=i.db,y(n)})).then((function(e){return n.db=e,k(n,t._defaultConfig.version)?b(n):e})).then((function(e){n.db=i.db=e,t._dbInfo=n;for(var r=0;r<c.length;r++){var o=c[r];o!==t&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}}))},_support:function(){try{if(!i)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(n){return!1}}(),iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){S(n._dbInfo,"readonly",(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;C(r)&&(r=_(r));var i=e(r,n.key,s++);void 0!==i?t(i):n.continue()}else t()},a.onerror=function(){r(a.error)}}catch(l){r(l)}}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){S(n._dbInfo,"readonly",(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),C(e)&&(e=_(e)),t(e)},a.onerror=function(){r(a.error)}}catch(s){r(s)}}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var i=new a((function(n,i){var s;r.ready().then((function(){return s=r._dbInfo,"[object Blob]"===d.call(t)?function(e){return"boolean"==typeof h?a.resolve(h):function(e){return new a((function(t){var n=e.transaction("local-forage-detect-blob-support","readwrite"),r=o([""]);n.objectStore("local-forage-detect-blob-support").put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}(e).then((function(e){return h=e}))}(s.db).then((function(e){return e?t:(n=t,new a((function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){var r=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)})));var n})):t})).then((function(t){S(r._dbInfo,"readwrite",(function(o,a){if(o)return i(o);try{var s=a.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var l=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),n(t)},a.onabort=a.onerror=function(){i(l.error?l.error:l.transaction.error)}}catch(u){i(u)}}))})).catch(i)}));return s(i,n),i},removeItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){S(n._dbInfo,"readwrite",(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){r(a.error)},o.onabort=function(){r(a.error?a.error:a.transaction.error)}}catch(s){r(s)}}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){S(t._dbInfo,"readwrite",(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){n(o.error?o.error:o.transaction.error)}}catch(a){n(a)}}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){S(t._dbInfo,"readonly",(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(a){n(a)}}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){e<0?t(null):n.ready().then((function(){S(n._dbInfo,"readonly",(function(i,o){if(i)return r(i);try{var a=o.objectStore(n._dbInfo.storeName),s=!1,l=a.openCursor();l.onsuccess=function(){var n=l.result;n?0===e||s?t(n.key):(s=!0,n.advance(e)):t(null)},l.onerror=function(){r(l.error)}}catch(u){r(u)}}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){S(t._dbInfo,"readonly",(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).openCursor(),a=[];o.onsuccess=function(){var t=o.result;t?(a.push(t.key),t.continue()):e(a)},o.onerror=function(){n(o.error)}}catch(s){n(s)}}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=c.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,o=this;if(e.name){var l=e.name===n.name&&o._dbInfo.db,u=l?a.resolve(o._dbInfo.db):y(e).then((function(t){var n=f[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t}));r=u.then(e.storeName?function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;p(e);var r=f[e.name],o=r.forages;t.close();for(var s=0;s<o.length;s++){var l=o[s];l._dbInfo.db=null,l._dbInfo.version=n}return new a((function(t,r){var o=i.open(e.name,n);o.onerror=function(e){o.result.close(),r(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}})).then((function(e){r.db=e;for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e,v(n._dbInfo)}})).catch((function(t){throw(g(e,t)||a.resolve()).catch((function(){})),t}))}}:function(t){p(e);var n=f[e.name],r=n.forages;t.close();for(var o=0;o<r.length;o++)r[o]._dbInfo.db=null;return new a((function(t,n){var r=i.deleteDatabase(e.name);r.onerror=r.onblocked=function(e){var t=r.result;t&&t.close(),n(e)},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}})).then((function(e){n.db=e;for(var t=0;t<r.length;t++)v(r[t]._dbInfo)})).catch((function(t){throw(g(e,t)||a.resolve()).catch((function(){})),t}))})}else r=a.reject("Invalid arguments");return s(r,t),r}},x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=/^~~local_forage_type~([^~]+)~/,T="__lfsc__:".length,M=T+"arbf".length,A=Object.prototype.toString;function I(e){var t,n,r,i,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var u=new ArrayBuffer(a),c=new Uint8Array(u);for(t=0;t<s;t+=4)n=x.indexOf(e[t]),r=x.indexOf(e[t+1]),i=x.indexOf(e[t+2]),o=x.indexOf(e[t+3]),c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|i>>2,c[l++]=(3&i)<<6|63&o;return u}function P(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=x[n[t]>>2],r+=x[(3&n[t])<<4|n[t+1]>>4],r+=x[(15&n[t+1])<<2|n[t+2]>>6],r+=x[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var D={serialize:function(e,t){var n="";if(e&&(n=A.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===A.call(e.buffer))){var r,i="__lfsc__:";e instanceof ArrayBuffer?(r=e,i+="arbf"):(r=e.buffer,"[object Int8Array]"===n?i+="si08":"[object Uint8Array]"===n?i+="ui08":"[object Uint8ClampedArray]"===n?i+="uic8":"[object Int16Array]"===n?i+="si16":"[object Uint16Array]"===n?i+="ur16":"[object Int32Array]"===n?i+="si32":"[object Uint32Array]"===n?i+="ui32":"[object Float32Array]"===n?i+="fl32":"[object Float64Array]"===n?i+="fl64":t(new Error("Failed to get type for BinaryArray"))),t(i+P(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n="~~local_forage_type~"+e.type+"~"+P(this.result);t("__lfsc__:blob"+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(a){console.error("Couldn't convert value into a JSON string: ",e),t(null,a)}},deserialize:function(e){if("__lfsc__:"!==e.substring(0,T))return JSON.parse(e);var t,n=e.substring(M),r=e.substring(T,M);if("blob"===r&&E.test(n)){var i=n.match(E);t=i[1],n=n.substring(i[0].length)}var a=I(n);switch(r){case"arbf":return a;case"blob":return o([a],{type:t});case"si08":return new Int8Array(a);case"ui08":return new Uint8Array(a);case"uic8":return new Uint8ClampedArray(a);case"si16":return new Int16Array(a);case"ur16":return new Uint16Array(a);case"si32":return new Int32Array(a);case"ui32":return new Uint32Array(a);case"fl32":return new Float32Array(a);case"fl64":return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:I,bufferToString:P};function N(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function j(e,t,n,r,i,o){e.executeSql(n,r,i,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[name],(function(e,s){s.rows.length?o(e,a):N(e,t,(function(){e.executeSql(n,r,i,o)}),o)}),o):o(e,a)}),o)}function R(e,t,n,r){var i=this;e=u(e);var o=new a((function(o,a){i.ready().then((function(){void 0===t&&(t=null);var s=t,l=i._dbInfo;l.serializer.serialize(t,(function(t,u){u?a(u):l.db.transaction((function(n){j(n,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){o(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o(R.apply(i,[e,s,n,r-1]));a(t)}}))}))})).catch(a)}));return s(o,n),o}function L(e){return new a((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var i=[],o=0;o<r.rows.length;o++)i.push(r.rows.item(o).name);t({db:e,storeNames:i})}),(function(e,t){n(t)}))}),(function(e){n(e)}))}))}var F={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var i=new a((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(i){return r(i)}n.db.transaction((function(i){N(i,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=D,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){j(n,i,"SELECT * FROM "+i.storeName,[],(function(n,r){for(var o=r.rows,a=o.length,s=0;s<a;s++){var l=o.item(s),u=l.value;if(u&&(u=i.serializer.deserialize(u)),void 0!==(u=e(u,l.key,s+1)))return void t(u)}t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){j(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},setItem:function(e,t,n){return R.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){j(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){j(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){j(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){j(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){j(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,e),n},dropInstance:function(e,t){t=c.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;return s(r=e.name?new a((function(t){var r;r=e.name===n.name?i._dbInfo.db:openDatabase(e.name,"","",0),t(e.storeName?{db:r,storeNames:[e.storeName]}:L(r))})).then((function(e){return new a((function(t,n){e.db.transaction((function(r){function i(e){return new a((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var o=[],s=0,l=e.storeNames.length;s<l;s++)o.push(i(e.storeNames[s]));a.all(o).then((function(){t()})).catch((function(e){n(e)}))}),(function(e){n(e)}))}))})):a.reject("Invalid arguments"),t),r}};function B(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}var V={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=B(e,this._defaultConfig),!function(){try{return localStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch(e){return!0}}()||localStorage.length>0?(this._dbInfo=t,t.serializer=D,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,o=localStorage.length,a=1,s=0;s<o;s++){var l=localStorage.key(s);if(0===l.indexOf(r)){var u=localStorage.getItem(l);if(u&&(u=t.serializer.deserialize(u)),void 0!==(u=e(u,l.substring(i),a++)))return u}}}));return s(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return s(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var i=r.ready().then((function(){void 0===t&&(t=null);var n=t;return new a((function(i,o){var a=r._dbInfo;a.serializer.serialize(t,(function(t,r){if(r)o(r);else try{localStorage.setItem(a.keyPrefix+e,t),i(n)}catch(s){"QuotaExceededError"!==s.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==s.name||o(s),o(s)}}))}))}));return s(i,n),i},removeItem:function(e,t){var n=this;e=u(e);var r=n.ready().then((function(){localStorage.removeItem(n._dbInfo.keyPrefix+e)}));return s(r,t),r},clear:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return s(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return s(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(i){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return s(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var o=localStorage.key(i);0===o.indexOf(e.keyPrefix)&&r.push(o.substring(e.keyPrefix.length))}return r}));return s(n,e),n},dropInstance:function(e,t){if(t=c.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,i=this;return s(r=e.name?new a((function(t){t(e.storeName?B(e,i._defaultConfig):e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):a.reject("Invalid arguments"),t),r}},H=function(e,t){for(var n,r,i=e.length,o=0;o<i;){if((n=e[o])===(r=t)||"number"==typeof n&&"number"==typeof r&&isNaN(n)&&isNaN(r))return!0;o++}return!1},z=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},$={},q={},U={INDEXEDDB:O,WEBSQL:F,LOCALSTORAGE:V},W=[U.INDEXEDDB._driver,U.WEBSQL._driver,U.LOCALSTORAGE._driver],G=["dropInstance"],X=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(G),J={description:"",driver:W.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Q(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function Z(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(arguments[0][n]=z(t[n])?t[n].slice():t[n])}return arguments[0]}var Y=new(function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),U)if(U.hasOwnProperty(n)){var r=U[n],i=r._driver;this[n]=i,$[i]||this.defineDriver(r)}this._defaultConfig=Z({},J),this._config=Z({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new a((function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(i);for(var o=X.concat("_initStorage"),l=0,u=o.length;l<u;l++){var c=o[l];if((!H(G,c)||e[c])&&"function"!=typeof e[c])return void n(i)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=a.reject(t);return s(n,arguments[arguments.length-1]),n}},n=0,r=G.length;n<r;n++){var i=G[n];e[i]||(e[i]=t(i))}}();var h=function(n){$[r]&&console.info("Redefining LocalForage driver: "+r),$[r]=e,q[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(h,n):h(!!e._support):h(!0)}catch(f){n(f)}}));return l(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=$[e]?a.resolve($[e]):a.reject(new Error("Driver not found."));return l(r,t,n),r},e.prototype.getSerializer=function(e){var t=a.resolve(D);return l(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return l(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;z(e)||(e=[e]);var i=this._getSupportedDrivers(e);function o(){r._config.driver=r.driver()}function s(e){return r._extend(e),o(),r._ready=r._initStorage(r._config),r._ready}var u=null!==this._driverSet?this._driverSet.catch((function(){return a.resolve()})):a.resolve();return this._driverSet=u.then((function(){var e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e){r._driver=e._driver,o(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var i=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(s).catch(n)}o();var l=new Error("No available storage method found.");return r._driverSet=a.reject(l),r._driverSet}()}}(i)}))})).catch((function(){o();var e=new Error("No available storage method found.");return r._driverSet=a.reject(e),r._driverSet})),l(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!q[e]},e.prototype._extend=function(e){Z(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=X.length;e<t;e++)Q(this,X[e])},e.prototype.createInstance=function(t){return new e(t)},e}());t.exports=Y},{3:3}]},{},[4])(4)},oCF6:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("+mLH"),i=n("0NL6"),o=n("p9zK"),a=function(){var e=function(){function e(t){if(_classCallCheck(this,e),this.tutorial=!1,this.unreadMessagesNumber=0,this.currentSegment=0,this.lastMessageRowID=1e7,this.remainedMessagesLength=10,this.reviewWords=!1,this.searching=!1,this.messageOptionOverlay=!1,this.firstUsage=!1,this.viewLoaded=!1,this.finishedTutorial=!0,this.clipBoardText="",this.remaindMessagesOnline=10,t){if(t&&Object.keys(t).length>0){if(this.members=[],this.admins=[],this.title=t.title,this.name="collection.name",this.type=t.type,this.public=t.public,this.unreadMessagesNumber=t.unreadMessagesNumber?t.unreadMessagesNumber:0,this.storageID=t.storageID,null!=this.storageID&&(this.chatID=this.storageID),null!=t.itemID&&(this.chatID=t.itemID),null!=t.chatID&&(this.chatID=t.chatID),this.messages=[],null!=t.messages){var n,a=_createForOfIteratorHelper(t.messages);try{for(a.s();!(n=a.n()).done;){var s,l=n.value;s="quiz"==l.type?new o.a(l):new i.a(l),this.messages.push(s)}}catch(c){a.e(c)}finally{a.f()}}if(this.searchedMessages=[],t.members)for(var u in t.members)this.members.push(new r.a(t.members[u]))}}else this.members=[],this.admins=[],this.messages=[],this.public=!1,this.searchedMessages=[],this.sortedMessages=[],this.unreadMessagesNumber=0,this.sortedMessages={0:[],1:[],2:[],3:[],4:[]};this.isLeitner()&&this.setReviewWords(!0)}return _createClass(e,[{key:"setFirstUsage",value:function(e){this.firstUsage=e}},{key:"isFirstUsage",value:function(){return this.firstUsage}},{key:"getTitle",value:function(){return this.title}},{key:"getCreatorID",value:function(){return this.creatorID}},{key:"setCreatorID",value:function(e){this.creatorID=e}},{key:"setReviewWords",value:function(e){this.reviewWords=e}},{key:"hasClipBoardText",value:function(){return this.clipBoardText.length>0}},{key:"setClipBoardText",value:function(e){this.clipBoardText=e}},{key:"getClipBoardText",value:function(){return this.clipBoardText}},{key:"clearMessages",value:function(){this.messages.length=0}},{key:"setMessageOptionOverlay",value:function(e){if(this.messageOptionOverlay=e,!e){var t,n=_createForOfIteratorHelper(this.messages);try{for(n.s();!(t=n.n()).done;){t.value.setShowOptionMenu(!1)}}catch(r){n.e(r)}finally{n.f()}}}},{key:"isShowOptionMenu",value:function(){return this.optionMenuShow}},{key:"setShowOptionMenu",value:function(e){this.optionMenuShow=e}},{key:"isMessageOptionOverlay",value:function(){return this.messageOptionOverlay}},{key:"getSortedMesages",value:function(e){this.messages.length=0;var t=this.sortedMessages[e];if(t)for(var n in t)this.searchedMessages.push(new i.a(t[n])),this.messages.push(new i.a(t[n]))}},{key:"readAllMessages",value:function(){this.unreadMessagesNumber=0}},{key:"setMessages",value:function(e){this.messages.length=0,this.searchedMessages.length=0;var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.addMessage(r)}}catch(i){n.e(i)}finally{n.f()}}},{key:"setInSortedMessages",value:function(){var e=Object.assign({},this.messages);this.sortedMessages[this.currentSegment]=e}},{key:"changeSegment",value:function(e){this.currentSegment=e}},{key:"getSimpleModel",value:function(){var t=new e(Object.assign({},this));return t.messages=[],t.members=[],t.sortedMessages=[],t.searchedMessages=[],t.item=null,t}},{key:"getMemberIDs",value:function(){var e,t=[],n=_createForOfIteratorHelper(this.members);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r.userID)}}catch(i){n.e(i)}finally{n.f()}return t}},{key:"getSimpleModelWithMessages",value:function(){var t=new e(Object.assign({},this));return t.messages=this.messages,t.sortedMessages=[],t.searchedMessages=[],t.item=null,t}},{key:"isOwner",value:function(e){return this.getCreatorID()==e.userID}},{key:"isMember",value:function(e){return this.getMemberIDs(),this.getMemberIDs().indexOf(e.userID)>=0}},{key:"hasMembers",value:function(){return this.members.length>0}},{key:"getSegmentLength",value:function(e){return 0}},{key:"search",value:function(e){this.messages=this.searchedMessages,this.messages=this.messages.filter((function(t){if(t.text.includes(e))return t}))}},{key:"searchIn",value:function(e,t){this.messages=e}},{key:"endSearch",value:function(){this.messages=this.searchedMessages}},{key:"getLastMessageDate",value:function(){return this.messages.length>0?this.messages[this.messages.length-1].receivedTime:"00-00-00 00:00:00"}},{key:"getLastMessageSummary",value:function(){return this.messages.length>0?this.messages[this.messages.length-1].getSummary():""}},{key:"getLastMessageID",value:function(){return this.messages.length>0?this.messages[this.messages.length-1].messageID:"0"}},{key:"addMessage",value:function(e){this.messages.push(e),this.searchedMessages.push(e)}},{key:"prependMessage",value:function(e){this.messages.unshift(e)}},{key:"addMessageToLeitner",value:function(t){var n=Object.assign({},t);n.type=e.typeLeitner;var r=new i.a(n);return r.setMessageID(r.messageID+"leitner"),this.addMessage(r),r}},{key:"hasMessagesInDatabase",value:function(){return this.remainedMessagesLength>0}},{key:"hasMessagesOnline",value:function(){return this.remaindMessagesOnline>0}},{key:"isLeitner",value:function(){return this.type==e.typeLeitner}},{key:"isDictionary",value:function(){return this.type==e.typeDictionary}},{key:"hasPremissionToSendMessage",value:function(){return this.isDictionary()||this.isChat()}},{key:"isChat",value:function(){return this.type==e.typeChat}},{key:"isQuiz",value:function(){return this.type.includes("Quiz")}},{key:"isReviewWords",value:function(){return this.reviewWords}},{key:"showNewWords",value:function(){return this.isLeitner()&&this.isReviewWords()}},{key:"isChatInputAllowed",value:function(){return this.isDictionary()||this.isLeitner()||this.isChat()}},{key:"isChatTutorial",value:function(){return this.tutorial}},{key:"setFinishedTutorial",value:function(e){this.finishedTutorial=e}},{key:"isFinishedTutorial",value:function(){return this.finishedTutorial}},{key:"setViewLoaded",value:function(e){this.viewLoaded=e}},{key:"isViewLoaded",value:function(){return this.viewLoaded}}]),e}();return e.typeLeitner="leitner",e.typeDictionary="dictionary",e.typeartikelQuiz="artikelQuiz",e.typeChat="chat",e}()},olg3:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("+mLH");n("EGUZ"),n("3MOV");var i=function(){function e(t,n){_classCallCheck(this,e),this.storageManager=t,this.ajaxBridge=n,this.theme=!0,this.user=new r.a([])}return _createClass(e,[{key:"loggedIn",value:function(){var e=this;return new Promise((function(t,n){null!=e.user&&e.user.hasAccessToken()?t(!0):e.storageManager.get("user").then((function(n){null==n&&t(!1),e.user=new r.a(n),null!=e.user&&e.user.hasAccessToken()?t(!0):t(!1)})).catch((function(e){n(e)}))}))}},{key:"isLoggedIn",value:function(){var e=this;return new Promise((function(t){return e.getUser().then((function(){t(!0)})).catch((function(){t(!1)}))}))}},{key:"isUser",value:function(){return this.isUserValid()}},{key:"getUser",value:function(){var e=this;return new Promise((function(t,n){e.isUserValid()?t(e.user):e.getUserFromStorage().then((function(r){e.user=r,e.isUserValid()?t(e.user):n("user is not valid")}))}))}},{key:"isUserValid",value:function(){return null!=this.user&&this.user.hasAccessToken()}},{key:"getUserFromStorage",value:function(){var e=this;return new Promise((function(t){e.storageManager.get("user").then((function(e){t(new r.a(e))}))}))}},{key:"logOut",value:function(){this.storageManager.set("user","")}},{key:"login",value:function(e){var t=this;return new Promise((function(n,r){t.user.setLoginMethode(e),t.ajaxBridge.queryPro("login",t.user).then((function(e){console.log("friends storage name login",e),""!=e.mainAccessToken&&null!=e.mainAccessToken&&null!=e.userID?n(e):r("no-access")}))}))}},{key:"isFirstUse",value:function(){var e=this;return new Promise((function(t){e.storageManager.get("usedBefore").then((function(e){t(1==e)}))})).catch()}},{key:"signUp",value:function(){var e=this;return new Promise((function(t,n){e.ajaxBridge.queryPro("signUp",e.user,"public").then((function(n){1==n.created?(e.setMainAccessToken(n.token),t(n)):0==n.created&&(console.log("this user exits"),t(n))})).catch((function(e){console.log("an error occured",e),n(e)}))}))}},{key:"setMainAccessToken",value:function(e){this.user.setMainAccessToken(e),this.save()}},{key:"save",value:function(){this.storageManager.set("user",this.user)}}]),e}()},p74H:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.overlaysWebView=function(e){return Object(i.cordova)(this,"overlaysWebView",{sync:!0},arguments)},t.prototype.styleDefault=function(){return Object(i.cordova)(this,"styleDefault",{sync:!0},arguments)},t.prototype.styleLightContent=function(){return Object(i.cordova)(this,"styleLightContent",{sync:!0},arguments)},t.prototype.styleBlackTranslucent=function(){return Object(i.cordova)(this,"styleBlackTranslucent",{sync:!0},arguments)},t.prototype.styleBlackOpaque=function(){return Object(i.cordova)(this,"styleBlackOpaque",{sync:!0},arguments)},t.prototype.backgroundColorByName=function(e){return Object(i.cordova)(this,"backgroundColorByName",{sync:!0},arguments)},t.prototype.backgroundColorByHexString=function(e){return Object(i.cordova)(this,"backgroundColorByHexString",{sync:!0},arguments)},t.prototype.hide=function(){return Object(i.cordova)(this,"hide",{sync:!0},arguments)},t.prototype.show=function(){return Object(i.cordova)(this,"show",{sync:!0},arguments)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return Object(i.cordovaPropertyGet)(this,"isVisible")},set:function(e){Object(i.cordovaPropertySet)(this,"isVisible",e)},enumerable:!0,configurable:!0}),t.pluginName="StatusBar",t.plugin="cordova-plugin-statusbar",t.pluginRef="StatusBar",t.repo="https://github.com/apache/cordova-plugin-statusbar",t.platforms=["Android","iOS","Windows"],t}(i.IonicNativePlugin)},p9zK:function(e,t,n){"use strict";var r=n("0NL6"),i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).selectable=!0,r.selected=!1,r.name="",r.isRight=e.isRight,r.selected=e.selected,r.name=e.name,r.selectable=e.selectable,r}return _createClass(n,[{key:"canSelect",value:function(){return this.selectable}},{key:"setSelected",value:function(e){this.selected=e}},{key:"setSelectable",value:function(e){this.selectable=e}}]),n}(function(){return function e(){_classCallCheck(this,e)}}());n.d(t,"a",(function(){return o}));var o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).buttons=[],null==e.buttons&&(e.buttons=e.answers),null==e.buttons&&(e.buttons=e.content.answers),null==e.buttons&&(e.buttons=JSON.parse(e.content).answers),r.initButtons(e),r}return _createClass(n,[{key:"initButtons",value:function(e){var t=this;null!=e.buttons&&Object.keys(e.buttons).forEach((function(n){null==e.buttons[n].selected&&(e.buttons[n].selected=!1),null==e.buttons[n].selectable&&(e.buttons[n].selectable=!0),t.buttons.push(new i(e.buttons[n]))}))}},{key:"getSummary",value:function(){return this.text.slice(28,38)}}]),n}(r.a)},pJ1N:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("EVdn"),i=function(){function e(t,n){_classCallCheck(this,e),this.viewCtrl=t,this.platform=n,this.width="0px",this.height="0px",this.top="0px",this.left="0px",this.textWidth="84vw",this.textHeight="auto",this.textTop="40vh",this.textLeft="20px",this.buttonLeft="20px",this.buttonTop="20px",console.log("Hello TourGuideComponent Component"),this.next()}return _createClass(e,[{key:"next",value:function(){0==this.tourGuideMgr.tips.length?this.close():(this.currentTip=this.tourGuideMgr.getTip(),this.text=this.currentTip.text,this.currentTip.element&&this.currentTip.element.length>0&&this.focusOnElement())}},{key:"clickAndNext",value:function(){this.currentTip&&this.currentTip.element&&(this.currentTip.element.click(),0==this.tourGuideMgr.tips.length&&this.setUserLearned(!0)),this.next()}},{key:"setUserLearned",value:function(e){}},{key:"close",value:function(){}},{key:"focus",value:function(e){}},{key:"gotIt",value:function(){this.close()}},{key:"ionViewDidLoad",value:function(){}},{key:"ngOnChanges",value:function(){console.log("text height is",r(".text").css("height")),this.textTop=this.currentTip.element.offset().top-parseInt(r(".text").css("height"))+"px"}},{key:"canButtonGotShow",value:function(){return 0==this.tourGuideMgr.tips.length}},{key:"focusOnElement",value:function(){this.width=this.currentTip.element.width()+5+"px",this.height=this.currentTip.element.height()+5+"px",null!=this.currentTip.width&&(this.width=this.currentTip.width+"px",this.height=this.currentTip.height+"px"),this.top=this.currentTip.element.offset().top-2+"px",this.left=this.currentTip.element.offset().left-2+"px";var e=r("<div style='font-size:19px; font-family: Yekan;font-weight: bold; width:84vw; height:auto; padding:10px'>"+this.text+"</div>");r("body").append(e);var t=this.currentTip.element.offset().top-e.height();this.textTop=t<10?this.currentTip.element.height()+10+"px":-e.height()-20+"px",this.currentTip.element.offset().left+e.width()>this.platform.width()?this.textLeft=this.platform.width()-this.currentTip.element.offset().left-e.width()-10+"px":this.currentTip.element.offset().left<10&&(this.textLeft=this.currentTip.element.offset().left+"px"),this.buttonTop=this.currentTip.element.height+this.top+5+"px"}}]),e}()},pLZG:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).predicate=r,o.thisArg=i,o.count=0,o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(r.a)},pMnS:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("8Y7J"),i=n("iInd"),o=r.qb({encapsulation:2,styles:[],data:{}});function a(e){return r.Nb(0,[(e()(),r.sb(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r.rb(1,212992,null,0,i.o,[i.b,r.O,r.j,[8,null],r.h],null,null)],(function(e,t){e(t,1,0)}),null)}var s=r.ob("ng-component",i.C,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"ng-component",[],null,null,null,a,o)),r.rb(1,49152,null,0,i.C,[],null,null)],null,null)}),{},{},[])},pY0Z:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).text=e.title,r.init(e),r.type=n.adsMessageType,r.body=e.body,r.coverImage=e.coverImage,r.icon=e.icon,r.received=!1,r}return _createClass(n,null,[{key:"adsMessageType",get:function(){return"adsMessage"}}]),_createClass(n,[{key:"init",value:function(e){var t=this;Object.keys(e).forEach((function(n){t[n]=e[n]}))}},{key:"setAdsPlacement",value:function(e){this.placemenet=e}}]),n}(n("0NL6").a)},pchL:function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r,i,o,a,s,l,u,c,h,f,d,p,v,g,m,y,b,k,_,C,w=n("ws0j"),S=n("XnfD"),O=n("x/Nk"),x=function(e){return Object(S.a)().duration(e?400:300)},E=function(e){var t,n,r=e.width+8,i=Object(S.a)(),o=Object(S.a)();e.isEndSide?(t=r+"px",n="0px"):(t=-r+"px",n="0px"),i.addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(t,")"),"translateX(".concat(n,")"));var a="ios"===Object(w.b)(e),s=a?.2:.25;return o.addElement(e.backdropEl).fromTo("opacity",.01,s),x(a).addAnimation([i,o])},T=function(e){var t,n,r=Object(w.b)(e),i=e.width;e.isEndSide?(t=-i+"px",n=i+"px"):(t=i+"px",n=-i+"px");var o=Object(S.a)().addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(n,")"),"translateX(0px)"),a=Object(S.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(t,")")),s=Object(S.a)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return x("ios"===r).addAnimation([o,a,s])},M=function(e){var t=Object(w.b)(e),n=e.width*(e.isEndSide?-1:1)+"px",r=Object(S.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(n,")"));return x("ios"===t).addAnimation(r)},A=(d=new Map,p=[],v=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C();case 2:return e.abrupt("return","start"===t||"end"===t?_((function(e){return e.side===t&&!e.disabled}))||_((function(e){return e.side===t})):null!=t?_((function(e){return e.menuId===t})):_((function(e){return!e.disabled}))||(p.length>0?p[0].el:void 0));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C();case 2:return e.abrupt("return",b());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=function(e){var t=e.side;p.filter((function(n){return n.side===t&&n!==e})).forEach((function(e){return e.disabled=!0}))},b=function(){return _((function(e){return e._isOpen}))},k=function(){return p.some((function(e){return e.isAnimating}))},_=function(e){var t=p.find(e);if(void 0!==t)return t.el},C=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map((function(e){return e.componentOnReady()})))},(m=function(e,t){d.set(e,t)})("reveal",M),m("push",T),m("overlay",E),"undefined"!=typeof document&&document.addEventListener("ionBackButton",(function(e){var t=b();t&&e.detail.register(O.MENU_BACK_BUTTON_PRIORITY,(function(){return t.close()}))})),{registerAnimation:m,get:v,getMenus:(f=_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C();case 2:return e.abrupt("return",p.map((function(e){return e.el})));case 3:case"end":return e.stop()}}),e)}))),function(){return f.apply(this,arguments)}),getOpen:g,isEnabled:(h=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(t);case 2:return n=e.sent,e.abrupt("return",!!n&&!n.disabled);case 4:case"end":return e.stop()}}),e)}))),function(e){return h.apply(this,arguments)}),swipeGesture:(c=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(n);case 2:return r=e.sent,e.abrupt("return",(r&&(r.swipeGesture=t),r));case 4:case"end":return e.stop()}}),e)}))),function(e,t){return c.apply(this,arguments)}),isAnimating:(u=_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C();case 2:return e.abrupt("return",k());case 3:case"end":return e.stop()}}),e)}))),function(){return u.apply(this,arguments)}),isOpen:(l=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==t){e.next=5;break}return e.next=3,v(t);case 3:return n=e.sent,e.abrupt("return",void 0!==n&&n.isOpen());case 5:return e.t0=void 0,e.next=8,g();case 8:return e.t1=e.sent,e.abrupt("return",e.t0!==e.t1);case 10:case"end":return e.stop()}}),e)}))),function(e){return l.apply(this,arguments)}),enable:(s=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(n);case 2:return r=e.sent,e.abrupt("return",(r&&(r.disabled=!t),r));case 4:case"end":return e.stop()}}),e)}))),function(e,t){return s.apply(this,arguments)}),toggle:(a=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(t);case 2:return n=e.sent,e.abrupt("return",!!n&&n.toggle());case 4:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)}),close:(o=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,void 0!==t?v(t):g();case 2:return n=e.sent,e.abrupt("return",void 0!==n&&n.close());case 4:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)}),open:(i=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(t);case 2:return n=e.sent,e.abrupt("return",!!n&&n.open());case 4:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)}),_getOpenSync:b,_createAnimation:function(e,t){var n=d.get(e);if(!n)throw new Error("animation not registered");return n(t)},_register:function(e){p.indexOf(e)<0&&(e.disabled||y(e),p.push(e))},_unregister:function(e){var t=p.indexOf(e);t>-1&&p.splice(t,1)},_setOpen:(r=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n,r){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!k()){e.next=2;break}return e.abrupt("return",!1);case 2:if(!n){e.next=10;break}return e.next=5,g();case 5:if(i=e.sent,e.t0=i&&t.el!==i,!e.t0){e.next=10;break}return e.next=10,i.setOpen(!1,!1);case 10:return e.abrupt("return",t._setOpen(n,r));case 11:case"end":return e.stop()}}),e)}))),function(e,t,n){return r.apply(this,arguments)}),_setActiveMenu:y})},pfga:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function e(t){_classCallCheck(this,e),this.sentence=t.sentence,this.translation=t.translation,this.word=t.word}},"pxS/":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("KOl+");function i(e,t){return!0===Object(r.a)(e,t)?Object(r.b)(e.constructor.getPluginRef())[t]:null}function o(e,t,n){!0===Object(r.a)(e,t)&&(Object(r.b)(e.constructor.getPluginRef())[t]=n)}},qu3L:function(e,t,n){"use strict";var r=n("8Y7J"),i=n("m/40"),o=n("g4Gf"),a=n("wZ9J"),s=n("olg3"),l=n("sZkV"),u=n("kbZ1"),c=n("J20c"),h=n("EGUZ"),f=n("2IJ5"),d=n("0+M4"),p=n("MKJQ"),v=n("ri/Y"),g=n("HcDZ"),m=n("SVse"),y=n("TSSN"),b=n("h4wn"),k=n("sk1z"),_=n("/qZA"),C=n("iInd"),w=n("ja1e"),S=n("Ff54"),O=n("LKtr"),x=n("nBaR"),E=n("QA36"),T=n("kNMb"),M=n("BNVH"),A=n("p74H"),I=n("AcVp"),P=n("PJj0"),D=n("MF7w"),N=n("ZZmf"),j=n("GAbP"),R=n("0FpF"),L=n("FUig");n.d(t,"a",(function(){return z}));var F=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%] ion-content.content[_ngcontent-%COMP%] .scroll-content[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}ion-item.item[_ngcontent-%COMP%]{background:green;height:300;border-radius:25px;margin-bottom:2px;color:green}ion-item.item[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{float:right;font-size:30px}.swipLayer[_ngcontent-%COMP%]{width:100%;height:100%}debug-dialog[_ngcontent-%COMP%]{position:absolute;top:-93px;z-index:2;left:40px}debug-dialog[_ngcontent-%COMP%] ion-card[_ngcontent-%COMP%], debug-dialog[_ngcontent-%COMP%] ion-card[_ngcontent-%COMP%] ion-item.item[_ngcontent-%COMP%]{opacity:1}ion-fab[_ngcontent-%COMP%]{left:20px;bottom:80px}"]],data:{}});function B(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"item",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openItem(e.context.$implicit)&&r),r}),i.c,i.b)),r.rb(1,5292032,null,0,o.a,[a.a,s.a,l.Gb,l.Fb,u.a,c.a,h.a,l.Jb,f.a,d.a,l.a],{itemObject:[0,"itemObject"]},null)],(function(e,t){e(t,1,0,t.context.$implicit)}),null)}function V(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"item",[["class","publicItems"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openItem(e.context.$implicit)&&r),r}),i.c,i.b)),r.rb(1,5292032,null,0,o.a,[a.a,s.a,l.Gb,l.Fb,u.a,c.a,h.a,l.Jb,f.a,d.a,l.a],{itemObject:[0,"itemObject"]},null)],(function(e,t){e(t,1,0,t.context.$implicit)}),null)}function H(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,4,"ion-header",[],null,null,null,p.eb,p.p)),r.rb(1,49152,null,0,l.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,2,"comp-header",[["itemsPage","true"],["showMenuBtn","true"]],null,null,null,v.c,v.b)),r.rb(3,4308992,null,0,g.a,[l.Gb,m.g,u.a,c.a,f.a,s.a,l.Fb,y.j,b.a,k.a,l.Eb,d.a,_.a,C.m],{textToUse:[0,"textToUse"],itemsPage:[1,"itemsPage"],showMenuBtn:[2,"showMenuBtn"]},null),r.Fb(131072,y.i,[y.j,r.h]),(e()(),r.sb(5,0,null,null,6,"ion-content",[["class","ion-padding"]],null,null,null,p.Y,p.j)),r.rb(6,49152,null,0,l.u,[r.h,r.k,r.x],null,null),(e()(),r.sb(7,0,null,0,4,"div",[],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,B)),r.rb(9,278528,null,0,m.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null),(e()(),r.hb(16777216,null,null,1,null,V)),r.rb(11,278528,null,0,m.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null),(e()(),r.sb(12,0,null,null,1,"comp-footer",[],null,null,null,w.c,w.b)),r.rb(13,49152,null,0,S.a,[l.Gb,O.a,b.a,u.a,f.a],null,null)],(function(e,t){var n=t.component;e(t,3,0,r.wb(1,"",r.Mb(t,3,0,r.Eb(t,4).transform("TITLE.items")),""),"true","true"),e(t,9,0,n.itemsManager.items),e(t,11,0,n.itemsManager.publicItems)}),null)}var z=r.ob("page-items",x.a,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"page-items",[],null,null,null,H,F)),r.rb(1,4767744,null,0,x.a,[l.Gb,u.a,E.a,T.a,O.a,_.a,s.a,b.a,c.a,C.m,h.a,M.a,A.a,y.j,I.a,P.a,D.a,N.a,f.a,j.a,k.a,R.a,l.Jb,L.a,l.Fb,d.a],null,null)],null,null)}),{},{},[])},quSY:function(e,t,n){"use strict";var r=n("DH7j"),i=n("XoHu"),o=n("n6bG"),a=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map((function(e,t){return"".concat(t+1,") ").concat(e.toString())})).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}();n.d(t,"a",(function(){return u}));var s,l,u=((l=function(){function e(t){_classCallCheck(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return _createClass(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,s=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var u=0;u<n.length;++u)n[u].remove(this);if(Object(o.a)(s))try{s.call(this)}catch(p){t=p instanceof a?c(p.errors):[p]}if(Object(r.a)(l))for(var h=-1,f=l.length;++h<f;){var d=l[h];if(Object(i.a)(d))try{d.unsubscribe()}catch(p){t=t||[],p instanceof a?t=t.concat(c(p.errors)):t.push(p)}}if(t)throw new a(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}()).EMPTY=((s=new l).closed=!0,s),l);function c(e){return e.reduce((function(e,t){return e.concat(t instanceof a?t.errors:t)}),[])}},"ri/Y":function(e,t,n){"use strict";var r=n("8Y7J"),i=n("B/Pu"),o=n("ds6b"),a=n("J20c"),s=n("sZkV"),l=n("iunF"),u=n("TSSN"),c=n("MKJQ"),h=n("SVse"),f=n("s7LF"),d=n("FbN9"),p=n("BzsH"),v=n("/HVE"),g=n("HcDZ"),m=n("kbZ1"),y=n("2IJ5"),b=n("olg3"),k=n("h4wn"),_=n("sk1z"),C=n("0+M4"),w=n("/qZA"),S=n("iInd");n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return H})),n.d(t,"a",(function(){return z}));var O=r.qb({encapsulation:0,styles:[["ion-title[_ngcontent-%COMP%]{font-size:16px!important;position:relative;margin-right:5px;width:100%;color:#fff}.search-input[_ngcontent-%COMP%]{font-size:14px}.search-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:-10px;color:#000}.search-col[_ngcontent-%COMP%]{width:100%}ion-icon[_ngcontent-%COMP%]{font-size:25px;font-weight:700;color:#fff}.background[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#71b6f7 0,#a95bd6 150%)}.background[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:transparent;width:100%;height:100%;font-size:25px}ion-col[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:space-between}ion-badge.badge[_ngcontent-%COMP%]{position:absolute;top:-5px;right:-5px;font-size:13px;border-radius:100%;padding:4px}ion-input[_ngcontent-%COMP%]{border-radius:25px;background-color:#dcdcdc;text-align:center}ion-input[_ngcontent-%COMP%] input.text-input[_ngcontent-%COMP%]{padding-left:30px;margin:13px 8px}#points[_ngcontent-%COMP%]{color:#fff;float:right;margin-top:20px;position:relative}#points[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px!important;color:#fff}"]],data:{}});function x(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"chat-option-menu",[],null,null,null,i.c,i.b)),r.rb(1,5292032,null,0,o.a,[a.a,s.Fb,l.a,u.j],{chat:[0,"chat"],headerComp:[1,"headerComp"]},null)],(function(e,t){var n=t.component;e(t,1,0,n.chat,n)}),null)}function E(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"button",[],[[8,"hidden",0]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.showMenu()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,1,"ion-icon",[["name","menu"]],null,null,null,c.fb,c.q)),r.rb(2,49152,null,0,s.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){e(t,2,0,"menu")}),(function(e,t){e(t,0,0,t.component.chatPage)}))}function T(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"button",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.goBack()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,1,"ion-icon",[["name","arrow-back"]],null,null,null,c.fb,c.q)),r.rb(2,49152,null,0,s.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){e(t,2,0,"arrow-back")}),null)}function M(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"ion-title",[["style","padding-left: 7px;"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.showDetails()&&r),r}),c.Bb,c.M)),r.rb(1,49152,null,0,s.xb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(2,0,[" "," "]))],null,(function(e,t){e(t,2,0,t.component.text)}))}function A(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"ion-title",[["style","padding-left: 7px;"]],null,null,null,c.Bb,c.M)),r.rb(1,49152,null,0,s.xb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(2,0,[" "," "]))],null,(function(e,t){e(t,2,0,t.component.text)}))}function I(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"ion-title",[],null,null,null,c.Bb,c.M)),r.rb(1,49152,null,0,s.xb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(2,0,[" "," "]))],null,(function(e,t){e(t,2,0,t.component.socketManager.getMessage())}))}function P(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,6,"div",[],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,M)),r.rb(2,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,A)),r.rb(4,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,I)),r.rb(6,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,2,0,n.socketManager.connected&&n.isChatPage()),e(t,4,0,n.socketManager.connected&&!n.isChatPage()),e(t,6,0,!n.isConnected())}),null)}function D(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,9,"ion-input",[["class","search-input"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0,o=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,3)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,3)._handleInputEvent(n.target)&&i),"ngModelChange"===t&&(i=!1!==(o.needle=n)&&i),"input"===t&&(i=!1!==o.onInput(n)&&i),i}),c.ib,c.t)),r.rb(1,49152,null,0,s.G,[r.h,r.k,r.x],{placeholder:[0,"placeholder"],value:[1,"value"]},null),r.Fb(131072,u.i,[u.j,r.h]),r.rb(3,4341760,null,0,s.Nb,[r.p,r.k],null,null),r.Ib(1024,null,f.e,(function(e){return[e]}),[s.Nb]),r.rb(5,671744,null,0,f.h,[[8,null],[8,null],[8,null],[6,f.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,f.f,null,[f.h]),r.rb(7,16384,null,0,f.g,[[4,f.f]],null,null),(e()(),r.sb(8,0,null,0,1,"ion-icon",[["class","search-icon"],["name","search"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.searchInDatabase()&&r),r}),c.fb,c.q)),r.rb(9,49152,null,0,s.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){var n=t.component;e(t,1,0,r.wb(1,"",r.Mb(t,1,0,r.Eb(t,2).transform("HEADER.Search.placeHolderChat")),""),n.needle),e(t,5,0,n.needle),e(t,9,0,"search")}),(function(e,t){e(t,0,0,r.Eb(t,7).ngClassUntouched,r.Eb(t,7).ngClassTouched,r.Eb(t,7).ngClassPristine,r.Eb(t,7).ngClassDirty,r.Eb(t,7).ngClassValid,r.Eb(t,7).ngClassInvalid,r.Eb(t,7).ngClassPending)}))}function N(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,9,"ion-input",[["class","search-input"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0,o=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,3)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,3)._handleInputEvent(n.target)&&i),"ngModelChange"===t&&(i=!1!==(o.needle=n)&&i),"input"===t&&(i=!1!==o.onInput(n)&&i),i}),c.ib,c.t)),r.rb(1,49152,null,0,s.G,[r.h,r.k,r.x],{placeholder:[0,"placeholder"],value:[1,"value"]},null),r.Fb(131072,u.i,[u.j,r.h]),r.rb(3,4341760,null,0,s.Nb,[r.p,r.k],null,null),r.Ib(1024,null,f.e,(function(e){return[e]}),[s.Nb]),r.rb(5,671744,null,0,f.h,[[8,null],[8,null],[8,null],[6,f.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,f.f,null,[f.h]),r.rb(7,16384,null,0,f.g,[[4,f.f]],null,null),(e()(),r.sb(8,0,null,0,1,"ion-icon",[["class","search-icon"],["name","search"]],null,null,null,c.fb,c.q)),r.rb(9,49152,null,0,s.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){var n=t.component;e(t,1,0,r.wb(1,"",r.Mb(t,1,0,r.Eb(t,2).transform("HEADER.Search.placeHolderItems")),""),n.needle),e(t,5,0,n.needle),e(t,9,0,"search")}),(function(e,t){e(t,0,0,r.Eb(t,7).ngClassUntouched,r.Eb(t,7).ngClassTouched,r.Eb(t,7).ngClassPristine,r.Eb(t,7).ngClassDirty,r.Eb(t,7).ngClassValid,r.Eb(t,7).ngClassInvalid,r.Eb(t,7).ngClassPending)}))}function j(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,4,"div",[["class","search-col"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,D)),r.rb(2,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,N)),r.rb(4,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,2,0,n.isChatPage()),e(t,4,0,!n.isChatPage())}),null)}function R(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,5,"div",[["id","points"]],[[8,"hidden",0]],null,null,null,null)),(e()(),r.sb(1,0,null,null,2,"span",[],null,null,null,null,null)),(e()(),r.Lb(2,null,["",""])),r.Fb(131072,u.i,[u.j,r.h]),(e()(),r.sb(4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Lb(5,null,["",""]))],null,(function(e,t){var n=t.component;e(t,0,0,n.searchInputVisible),e(t,2,0,r.Mb(t,2,0,r.Eb(t,3).transform("HEADER.ChatPage.points"))),e(t,5,0,n.userManager.user.points)}))}function L(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"button",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.showChatOptionMenu()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,1,"ion-icon",[["name","ellipsis-vertical"]],null,null,null,c.fb,c.q)),r.rb(2,49152,null,0,s.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){e(t,2,0,"ellipsis-vertical")}),null)}function F(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"button",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.search()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,1,"ion-icon",[["name","ellipsis-vertical"]],null,null,null,c.fb,c.q)),r.rb(2,49152,null,0,s.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){e(t,2,0,"ellipsis-vertical")}),null)}function B(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"button",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.cancel()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,1,"ion-icon",[["name","close"]],null,null,null,c.fb,c.q)),r.rb(2,49152,null,0,s.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){e(t,2,0,"close")}),null)}function V(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,7,"ion-buttons",[["class","searchButton"]],null,null,null,c.T,c.e)),r.rb(1,49152,null,0,s.l,[r.h,r.k,r.x],null,null),(e()(),r.hb(16777216,null,0,1,null,L)),r.rb(3,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,F)),r.rb(5,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,B)),r.rb(7,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,3,0,n.isChatPage()&&!n.searchInputVisible),e(t,5,0,!n.searchInputVisible&&!n.isChatPage()),e(t,7,0,n.searchInputVisible)}),null)}function H(e){return r.Nb(0,[r.Jb(671088640,1,{navBar:0}),(e()(),r.hb(16777216,null,null,1,null,x)),r.rb(2,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(3,0,null,null,26,"mat-toolbar",[["class","background mat-toolbar"]],[[2,"mat-toolbar-multiple-rows",null],[2,"mat-toolbar-single-row",null]],null,null,d.b,d.a)),r.rb(4,4243456,null,1,p.a,[r.k,v.a,h.d],null,null),r.Jb(603979776,2,{_toolbarRows:1}),(e()(),r.sb(6,0,null,0,23,"ion-grid",[],null,null,null,c.db,c.o)),r.rb(7,49152,null,0,s.A,[r.h,r.k,r.x],null,null),(e()(),r.sb(8,0,null,0,21,"ion-row",[["class","ion-align-item-center"]],null,null,null,c.qb,c.B)),r.rb(9,49152,null,0,s.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(10,0,null,0,7,"ion-col",[["class","ion-align-self-center"],["size","2"]],null,null,null,c.X,c.i)),r.rb(11,49152,null,0,s.t,[r.h,r.k,r.x],{size:[0,"size"]},null),(e()(),r.sb(12,0,null,0,5,"ion-buttons",[["class","menuBtn"],["start",""]],null,null,null,c.T,c.e)),r.rb(13,49152,null,0,s.l,[r.h,r.k,r.x],null,null),(e()(),r.hb(16777216,null,0,1,null,E)),r.rb(15,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,T)),r.rb(17,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(18,0,null,0,7,"ion-col",[["class","ion-align-self-center"],["size","9"]],null,null,null,c.X,c.i)),r.rb(19,49152,null,0,s.t,[r.h,r.k,r.x],{size:[0,"size"]},null),(e()(),r.hb(16777216,null,0,1,null,P)),r.rb(21,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,j)),r.rb(23,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,R)),r.rb(25,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(26,0,null,0,3,"ion-col",[["class","ion-align-self-center"],["size","1"]],null,null,null,c.X,c.i)),r.rb(27,49152,null,0,s.t,[r.h,r.k,r.x],{size:[0,"size"]},null),(e()(),r.hb(16777216,null,0,1,null,V)),r.rb(29,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,2,0,n.isShowOptionMenu()),e(t,11,0,"2"),e(t,15,0,n.showMenuBtn),e(t,17,0,n.showBackBtn),e(t,19,0,"9"),e(t,21,0,!n.searchInputVisible),e(t,23,0,n.searchInputVisible),e(t,25,0,n.isQuiz()),e(t,27,0,"1"),e(t,29,0,n.hasSearchBtn())}),(function(e,t){e(t,3,0,r.Eb(t,4)._toolbarRows.length>0,0===r.Eb(t,4)._toolbarRows.length)}))}var z=r.ob("comp-header",g.a,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"comp-header",[],null,null,null,H,O)),r.rb(1,4308992,null,0,g.a,[s.Gb,h.g,m.a,a.a,y.a,b.a,s.Fb,u.j,k.a,_.a,s.Eb,C.a,w.a,S.m],null,null)],(function(e,t){e(t,1,0)}),null)}),{textToUse:"myText",chatPage:"chatPage",friendsPage:"friendsPage",allowDescription:"allowDescription",itemsPage:"itemsPage",showMenuBtn:"showMenuBtn",showBackBtn:"showBackBtn",chat:"chat"},{},[])},rxGk:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=function(){function e(t,n,r,i,o){_classCallCheck(this,e),this.id=n,this.name=r,this.disableScroll=o,this.priority=1e6*i+n,this.ctrl=t}return _createClass(e,[{key:"canStart",value:function(){return!!this.ctrl&&this.ctrl.canStart(this.name)}},{key:"start",value:function(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}},{key:"capture",value:function(){if(!this.ctrl)return!1;var e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}},{key:"release",value:function(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}},{key:"destroy",value:function(){this.release(),this.ctrl=void 0}}]),e}(),i=function(){function e(t,n,r,i){_classCallCheck(this,e),this.id=n,this.disable=r,this.disableScroll=i,this.ctrl=t}return _createClass(e,[{key:"block",value:function(){if(this.ctrl){if(this.disable){var e,t=_createForOfIteratorHelper(this.disable);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.ctrl.disableGesture(n,this.id)}}catch(r){t.e(r)}finally{t.f()}}this.disableScroll&&this.ctrl.disableScroll(this.id)}}},{key:"unblock",value:function(){if(this.ctrl){if(this.disable){var e,t=_createForOfIteratorHelper(this.disable);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.ctrl.enableGesture(n,this.id)}}catch(r){t.e(r)}finally{t.f()}}this.disableScroll&&this.ctrl.enableScroll(this.id)}}},{key:"destroy",value:function(){this.unblock(),this.ctrl=void 0}}]),e}(),o=new(function(){function e(){_classCallCheck(this,e),this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}return _createClass(e,[{key:"createGesture",value:function(e){return new r(this,this.newID(),e.name,e.priority||0,!!e.disableScroll)}},{key:"createBlocker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i(this,this.newID(),e.disable,!!e.disableScroll)}},{key:"start",value:function(e,t,n){return this.canStart(e)?(this.requestedStart.set(t,n),!0):(this.requestedStart.delete(t),!1)}},{key:"capture",value:function(e,t,n){if(!this.start(e,t,n))return!1;var r=this.requestedStart,i=-1e4;if(r.forEach((function(e){i=Math.max(i,e)})),i===n){this.capturedId=t,r.clear();var o=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(o),!0}return r.delete(t),!1}},{key:"release",value:function(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}},{key:"disableGesture",value:function(e,t){var n=this.disabledGestures.get(e);void 0===n&&(n=new Set,this.disabledGestures.set(e,n)),n.add(t)}},{key:"enableGesture",value:function(e,t){var n=this.disabledGestures.get(e);void 0!==n&&n.delete(t)}},{key:"disableScroll",value:function(e){this.disabledScroll.add(e),1===this.disabledScroll.size&&document.body.classList.add("backdrop-no-scroll")}},{key:"enableScroll",value:function(e){this.disabledScroll.delete(e),0===this.disabledScroll.size&&document.body.classList.remove("backdrop-no-scroll")}},{key:"canStart",value:function(e){return void 0===this.capturedId&&!this.isDisabled(e)}},{key:"isCaptured",value:function(){return void 0!==this.capturedId}},{key:"isScrollDisabled",value:function(){return this.disabledScroll.size>0}},{key:"isDisabled",value:function(e){var t=this.disabledGestures.get(e);return!!(t&&t.size>0)}},{key:"newID",value:function(){return this.gestureId++,this.gestureId}}]),e}())},s6ns:function(e,t,n){"use strict";var r=n("8Y7J"),i=n("zMNK"),o=n("dvZr"),a=n("XNiG"),s=n("NXyV"),l=n("LRne"),u=n("pLZG"),c=n("IzEk"),h=n("JX91"),f=n("IP0z"),d=n("QQfA");n.d(t,"g",(function(){return S})),n.d(t,"c",(function(){return C})),n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return _})),n.d(t,"d",(function(){return w})),n.d(t,"f",(function(){return g})),n.d(t,"e",(function(){return p}));var p=function e(){_classCallCheck(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0};function v(){throw Error("Attempting to attach dialog content after content is already attached")}var g=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,o,a,s){var l;return _classCallCheck(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=i,l._changeDetectorRef=o,l._document=a,l._config=s,l._elementFocusedBeforeDialogWasOpened=null,l._state="enter",l._animationStateChanged=new r.m,l._ariaLabelledBy=s.ariaLabelledBy||null,l}return _createClass(n,[{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached()&&v(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached()&&v(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_trapFocus",value:function(){var e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var t=this._document.activeElement;t===e||e.contains(t)||e.focus()}}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;this._config.restoreFocus&&e&&"function"==typeof e.focus&&e.focus(),this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var e=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return e._elementRef.nativeElement.focus()})))}},{key:"_onAnimationDone",value:function(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)}},{key:"_onAnimationStart",value:function(e){this._animationStateChanged.emit(e)}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(i.a),m=0,y=function(){function e(t,n,r){var i=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"mat-dialog-"+m++;_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=n,this.id=s,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new a.a,this._afterClosed=new a.a,this._beforeClosed=new a.a,this._state=0,n._id=s,n._animationStateChanged.pipe(Object(u.a)((function(e){return"done"===e.phaseName&&"enter"===e.toState})),Object(c.a)(1)).subscribe((function(){i._afterOpened.next(),i._afterOpened.complete()})),n._animationStateChanged.pipe(Object(u.a)((function(e){return"done"===e.phaseName&&"exit"===e.toState})),Object(c.a)(1)).subscribe((function(){clearTimeout(i._closeFallbackTimeout),i._overlayRef.dispose()})),t.detachments().subscribe((function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()})),t.keydownEvents().pipe(Object(u.a)((function(e){return e.keyCode===o.d&&!i.disableClose&&!Object(o.m)(e)}))).subscribe((function(e){e.preventDefault(),i.close()}))}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(Object(u.a)((function(e){return"start"===e.phaseName})),Object(c.a)(1)).subscribe((function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._state=2,t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout((function(){t._overlayRef.dispose()}),n.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1}},{key:"afterOpened",value:function(){return this._afterOpened.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"beforeClosed",value:function(){return this._beforeClosed.asObservable()}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"afterOpen",value:function(){return this.afterOpened()}},{key:"beforeClose",value:function(){return this.beforeClosed()}},{key:"getState",value:function(){return this._state}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}(),b=new r.o("MatDialogData"),k=new r.o("mat-dialog-default-options"),_=new r.o("mat-dialog-scroll-strategy");function C(e){return function(){return e.scrollStrategies.block()}}var w=function(){function e(t,n,r,i,o,l,u){var c=this;_classCallCheck(this,e),this._overlay=t,this._injector=n,this._location=r,this._defaultOptions=i,this._parentDialog=l,this._overlayContainer=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new a.a,this._afterOpenedAtThisLevel=new a.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(s.a)((function(){return c.openDialogs.length?c._afterAllClosed:c._afterAllClosed.pipe(Object(h.a)(void 0))})),this._scrollStrategy=o}return _createClass(e,[{key:"open",value:function(e,t){var n=this;if((t=function(e,t){return Object.assign({},t,e)}(t,this._defaultOptions||new p)).id&&this.getDialogById(t.id))throw Error('Dialog with id "'.concat(t.id,'" exists already. The dialog id must be unique.'));var r=this._createOverlay(t),i=this._attachDialogContainer(r,t),o=this._attachDialogContent(e,i,r,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe((function(){return n._removeOpenDialog(o)})),this.afterOpened.next(o),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find((function(t){return t.id===e}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new d.b({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=new i.e(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[p,t]])),r=new i.c(g,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(r).instance}},{key:"_attachDialogContent",value:function(e,t,n,o){var a=new y(n,t,this._location,o.id);if(o.hasBackdrop&&n.backdropClick().subscribe((function(){a.disableClose||a.close()})),e instanceof r.L)t.attachTemplatePortal(new i.g(e,null,{$implicit:o.data,dialogRef:a}));else{var s=this._createInjector(o,a,t),l=t.attachComponentPortal(new i.c(e,void 0,s));a.componentInstance=l.instance}return a.updateSize(o.width,o.height).updatePosition(o.position),a}},{key:"_createInjector",value:function(e,t,n){var r=e&&e.viewContainerRef&&e.viewContainerRef.injector,o=new WeakMap([[g,n],[b,e.data],[y,t]]);return!e.direction||r&&r.get(f.c,null)||o.set(f.c,{value:e.direction,change:Object(l.a)()}),new i.e(r||this._injector,o)}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var r=t[n];r===e||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"afterOpen",get:function(){return this.afterOpened}},{key:"_afterAllClosed",get:function(){var e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel}}]),e}(),S=function e(){_classCallCheck(this,e)}},s7LF:function(e,t,n){"use strict";n.d(t,"j",(function(){return Z})),n.d(t,"k",(function(){return O})),n.d(t,"e",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return v})),n.d(t,"h",(function(){return J})),n.d(t,"i",(function(){return Q})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return Y}));var r=n("8Y7J"),i=n("cUpR"),o=n("cp0P"),a=n("Cfvw"),s=n("lJxs"),l=new r.o("NgValueAccessor"),u=new r.o("CompositionEventMode"),c=function(){function e(t,n,r){var o;_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=r,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(o=Object(i.r)()?Object(i.r)().getUserAgent():"",!/android (\d+)/.test(o.toLowerCase())))}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}(),h=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}}]),e}(),f=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(h);function d(){throw new Error("unimplemented")}var p=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return _createClass(n,[{key:"validator",get:function(){return d()}},{key:"asyncValidator",get:function(){return d()}}]),n}(h),v=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return n}(function(){function e(t){_classCallCheck(this,e),this._cd=t}return _createClass(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}());function g(e){return null==e||0===e.length}var m=new r.o("NgValidators"),y=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,b=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"min",value:function(e){return function(t){if(g(t.value)||g(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}},{key:"max",value:function(e){return function(t){if(g(t.value)||g(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return g(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return g(e.value)||y.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){if(g(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}},{key:"maxLength",value:function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(g(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(k);return 0==t.length?null:function(e){return C(function(e,t){return t.map((function(t){return t(e)}))}(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(k);return 0==t.length?null:function(e){var n=function(e,t){return t.map((function(t){return t(e)}))}(e,t).map(_);return Object(o.a)(n).pipe(Object(s.a)(C))}}}]),e}();function k(e){return null!=e}function _(e){var t=Object(r.zb)(e)?Object(a.a)(e):e;if(!Object(r.yb)(t))throw new Error("Expected validator to return Promise or Observable.");return t}function C(e){var t=e.reduce((function(e,t){return null!=t?Object.assign({},e,t):e}),{});return 0===Object.keys(t).length?null:t}function w(e){return e.validate?function(t){return e.validate(t)}:e}function S(e){return e.validate?function(t){return e.validate(t)}:e}var O=function(){function e(){_classCallCheck(this,e),this._accessors=[]}return _createClass(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}(),x='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',E='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>';function T(e,t){return[].concat(_toConsumableArray(t.path),[e])}function M(e,t){e||I(t,"Cannot find control with"),t.valueAccessor||I(t,"No value accessor for form control with"),e.validator=b.compose([e.validator,t.validator]),e.asyncValidator=b.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange((function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&A(e,t)}))}(e,t),function(e,t){e.registerOnChange((function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)}))}(e,t),function(e,t){t.valueAccessor.registerOnTouched((function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&A(e,t),"submit"!==e.updateOn&&e.markAsTouched()}))}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange((function(e){t.valueAccessor.setDisabledState(e)})),t._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))})),t._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))}))}function A(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function I(e,t){var n;throw n=e.path.length>1?"path: '".concat(e.path.join(" -> "),"'"):e.path[0]?"name: '".concat(e.path,"'"):"unspecified name attribute",new Error("".concat(t," ").concat(n))}function P(e){return null!=e?b.compose(e.map(w)):null}function D(e){return null!=e?b.composeAsync(e.map(S)):null}var N=[function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}(),function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}(),function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}(),function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=r.Ab}return _createClass(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var r=n[t];if(this._compareWith(this._optionMap.get(r),e))return r}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}},{key:"compareWith",set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e}}]),e}(),function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=r.Ab}return _createClass(e,[{key:"writeValue",value:function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var r=e.map((function(e){return n._getOptionId(e)}));t=function(e,t){e._setSelected(r.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var a=i.item(o),s=t._getOptionValue(a.value);r.push(s)}else for(var l=n.options,u=0;u<l.length;u++){var c=l.item(u);if(c.selected){var h=t._getOptionValue(c.value);r.push(h)}}t.value=r,e(r)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var r=n[t];if(this._compareWith(this._optionMap.get(r)._value,e))return r}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}},{key:"compareWith",set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e}}]),e}(),function(){function e(t,n,r,i){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return _createClass(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(p),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')}}]),e}()];function j(e){var t=L(e)?e.validators:e;return Array.isArray(t)?P(t):t||null}function R(e,t){var n=L(t)?t.asyncValidators:e;return Array.isArray(n)?D(n):n||null}function L(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var F=function(){function e(t,n){_classCallCheck(this,e),this.validator=t,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(e,[{key:"setValidators",value:function(e){this.validator=j(e)}},{key:"setAsyncValidators",value:function(e){this.asyncValidator=R(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(t){t.disable(Object.assign({},e,{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild((function(t){t.enable(Object.assign({},e,{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=_(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return t.setErrors(n,{emitEvent:e})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce((function(e,t){return e instanceof V?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof H&&e.at(t)||null}),e))}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new r.m,this.statusChanges=new r.m}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls((function(t){return t.status===e}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(e){return e.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(e){return e.touched}))}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){L(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),B=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,j(i),R(o,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(e){return e(t.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(F),V=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,j(r),R(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach((function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach((function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(e,t,n){return e[n]=t instanceof B?t.value:t.getRawValue(),e}))}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach((function(n){return e(t.controls[n],n)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){var t=this,n=!1;return this._forEachChild((function(r,i){n=n||t.contains(i)&&e(r)})),n}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},(function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t}))}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild((function(e,r){n=t(n,e,r)})),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++){var n=t[e];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}(F),H=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,j(r),R(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach((function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map((function(e){return e instanceof B?e.value:e.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach((function(t,n){e(t,n)}))}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))}},{key:"_anyControls",value:function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(F),z=Promise.resolve(null),$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var o;return _classCallCheck(this,n),(o=t.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new r.m,o.form=new V({},P(e),D(i)),o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;z.then((function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),M(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;z.then((function(){var n,r,i,o=t._findContainer(e.path);o&&o.removeControl(e.name),n=t._directives,r=e,(i=n.indexOf(r))>-1&&n.splice(i,1)}))}},{key:"addFormGroup",value:function(e){var t=this;z.then((function(){var n=t._findContainer(e.path),r=new V({});(function(e,t){null==e&&I(t,"Cannot find control with"),e.validator=b.compose([e.validator,t.validator]),e.asyncValidator=b.composeAsync([e.asyncValidator,t.asyncValidator])})(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(e){var t=this;z.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)}))}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;z.then((function(){n.form.get(e.path).setValue(t)}))}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach((function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})),this.ngSubmit.emit(e),!1;var t}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(f),q=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"modelParentException",value:function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')}},{key:"formGroupNameException",value:function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ".concat(x,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(E))}},{key:"missingNameException",value:function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}},{key:"modelGroupParentException",value:function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ".concat(x,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(E))}},{key:"ngFormWarning",value:function(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n <ngForm #myForm=\"ngForm\">\n\n After:\n <ng-form #myForm=\"ngForm\">\n ")}}]),e}(),U=new r.o("NgFormSelectorWarning"),W=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return T(this.name,this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return P(this._validators)}},{key:"asyncValidator",get:function(){return D(this._asyncValidators)}}]),n}(f),G=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this))._parent=e,o._validators=r,o._asyncValidators=i,o}return _createClass(n,[{key:"_checkParentType",value:function(){this._parent instanceof n||this._parent instanceof $||q.modelGroupParentException()}}]),n}(W),X=Promise.resolve(null),J=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,o,a){var s;return _classCallCheck(this,n),(s=t.call(this)).control=new B,s._registered=!1,s.update=new r.m,s._parent=e,s._rawValidators=i||[],s._rawAsyncValidators=o||[],s.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||I(e,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return t.forEach((function(t){var o;t.constructor===c?n=t:(o=t,N.some((function(e){return o.constructor===e}))?(r&&I(e,"More than one built-in value accessor matches form control with"),r=t):(i&&I(e,"More than one custom value accessor matches form control with"),i=t))})),i||r||n||(I(e,"No valid value accessor for form control with"),null)}(_assertThisInitialized(s),a),s}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(r.Ab)(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){M(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof G)&&this._parent instanceof W?q.formGroupNameException():this._parent instanceof G||this._parent instanceof $||q.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||q.missingNameException()}},{key:"_updateValue",value:function(e){var t=this;X.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;X.then((function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()}))}},{key:"path",get:function(){return this._parent?T(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return P(this._rawValidators)}},{key:"asyncValidator",get:function(){return D(this._rawAsyncValidators)}}]),n}(p),Q=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validate",value:function(e){return this.required?b.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}}]),e}(),Z=function e(){_classCallCheck(this,e)},Y=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:U,useValue:t.warnOnDeprecatedNgFormSelector}]}}}]),e}()},sSFc:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.unzip=function(e,t,n){return Object(i.cordova)(this,"unzip",{successIndex:2,errorIndex:4},arguments)},t.pluginName="Zip",t.plugin="cordova-plugin-zip",t.pluginRef="zip",t.repo="https://github.com/MobileChromeApps/cordova-plugin-zip",t.platforms=["Android","iOS"],t}(i.IonicNativePlugin)},sUqe:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return h}));var r=function(){var e=function e(){_classCallCheck(this,e)};return e.CheckEvents="CheckEvents",e.UpdateItems="UpdateItems",e.UpdateFriends="getFriends",e.UpdateMessages="UpdateMessages",e.UpdateCollections="UpdateCollections",e}(),i=function(){var e=function e(){_classCallCheck(this,e)};return e.NewMessage="NewMessage",e.MessageRecevied="MessageReceived",e.DeliverMessage="deliver",e.Connected="Connected",e.tutorialAddCollection="tutorialAddCollection",e.updatedTitle="updatedTitle",e.platformReady="platformReady",e.SocketConnected="socketConnected",e.SocketDisconnected="socketDisconnected",e}(),o=function(){var e=function e(){_classCallCheck(this,e)};return e.GetCollections="getCollections",e.GetExamples="getExamples",e.GetProposition="getProposition",e.GetItem="getItem",e.GetFriend="getFriend",e.GetMessage="getMessage",e.GetConjunction="getConjunction",e.DeleteEvent="deleteEvent",e}(),a=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"construct",value:function(){}}],[{key:"getNextTheme",value:function(t){var n=e.availableThemes.indexOf(t);return n<e.availableThemes.length-1?e.availableThemes[n+1]:e.availableThemes[0]}}]),e}();return e.alieh="alieh-theme",e.light="light-theme",e.dark="dark-theme",e.sparkasse="sparkasse-theme",e.spring="spring-theme",e.winter="winter-theme",e.fallen="fallen-theme",e.availableThemes=[e.alieh,e.light,e.dark,e.sparkasse,e.spring,e.winter,e.fallen],e}(),s=function(){var e=function e(){_classCallCheck(this,e)};return e.Dictionary="transl",e.SendMsg="sendChatMessage",e}(),l=function(){var e=function e(){_classCallCheck(this,e)};return e.Dictionary="dictionary",e.Chat="chat",e.Leitner="leitner",e.Quiz="quiz",e}(),u=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"created",get:function(){return this.created}},{key:"addedToChatPage",get:function(){return this.addedToChatPage}},{key:"pushedToServer",get:function(){return this.pushedToServer}},{key:"outOfDevice",get:function(){return this.outOfDevice}},{key:"receivedByServer",get:function(){return this.receivedByServer}},{key:"deliveredToUser",get:function(){return this.deliveredToUser}},{key:"seenByUser",get:function(){return this.seenByUser}},{key:"seenByAllUsers",get:function(){return this.seenByAllUsers}},{key:"seenByMe",get:function(){return this.seenByMe}},{key:"askedForOnlineContent",get:function(){return this.askedForOnlineContent}},{key:"downloadedContent",get:function(){return this.downloadedContent}}]),e}();return e.created="created",e.addedToChatPage="addedToChatPage",e.pushedToServer="pushedToServer",e.outOfDevice="outOfDevice",e.receivedByServer="receivedByServer",e.sentToUser="sentToUser",e.deliveredToUser="deliveredToUser",e.seenByUser="seenByUser",e.seenByAllUsers="seenByAllUsers",e.seenByMe="seenByMe",e.askedForOnlineContent="askedForOnlineContent",e.downloadedContent="downloadedContent",e}(),c=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"verbFormatIsWorng",get:function(){return"VerbFormatIsWrong"}},{key:"nounHasNoArtikel",get:function(){return"NounHasNoArtikel"}},{key:"translationInSameLanguage",get:function(){return"TranslationInSameLanguage"}},{key:"wordTypeIsNotDefined",get:function(){return"WordTypeIsNotDefined"}},{key:"translationHasBeenAlreadyAdded",get:function(){return"TranslationHasBeenAlreadyAdded"}}]),e}();return e.verbFormatIsWorng="VerbFormatIsWrong",e.nounHasNoArtikel="NounHasNoArtikel",e.translationInSameLanguage="TranslationInSameLanguage",e.wordTypeIsNotDefined="WordTypeIsNotDefined",e.translationHasBeenAlreadyAdded="TranslationHasBeenAlreadyAdded",e}(),h=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"noun",get:function(){return"noun"}},{key:"adjective",get:function(){return"adjective"}},{key:"adverb",get:function(){return"adverb"}},{key:"combined",get:function(){return"combined"}},{key:"undefined",get:function(){}}]),e}();return e.noun="noun",e.verb="verb",e.adverb="adverb",e.adjective="adjective",e.undefined="undefined",e}()},sZkV:function(e,t,n){"use strict";var r=n("mrSG"),i=n("8Y7J"),o=n("s7LF"),a=n("SVse"),s=n("iInd"),l=n("ePDZ"),u=n("ws0j"),c=(n("gHap"),n("XnfD"),n("tNMG")),h=(n("6cfT"),n("beh+"),n("PLvT"),n("rxGk"),n("ItpF"),n("PQ8F"),n("x/Nk"),n("pchL")),f=n("f1vJ"),d=n("XNiG"),p=n("xgIS"),v=n("2Vo4"),g=n("pLZG"),m=n("eIep"),y=n("/uUt"),b="undefined"!=typeof Deno,k=!(b||"undefined"==typeof global||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),_=(b&&Deno,k?process:b&&Deno,k?process:b&&Deno,u.a);n.d(t,"a",(function(){return Yn})),n.d(t,"b",(function(){return Kn})),n.d(t,"c",(function(){return An})),n.d(t,"d",(function(){return A})),n.d(t,"e",(function(){return xn})),n.d(t,"f",(function(){return lt})),n.d(t,"g",(function(){return ut})),n.d(t,"h",(function(){return ct})),n.d(t,"i",(function(){return ht})),n.d(t,"j",(function(){return ft})),n.d(t,"k",(function(){return dt})),n.d(t,"l",(function(){return pt})),n.d(t,"m",(function(){return vt})),n.d(t,"n",(function(){return gt})),n.d(t,"o",(function(){return mt})),n.d(t,"p",(function(){return yt})),n.d(t,"q",(function(){return bt})),n.d(t,"r",(function(){return kt})),n.d(t,"s",(function(){return _t})),n.d(t,"t",(function(){return Ct})),n.d(t,"u",(function(){return wt})),n.d(t,"v",(function(){return St})),n.d(t,"w",(function(){return Ot})),n.d(t,"x",(function(){return xt})),n.d(t,"y",(function(){return Et})),n.d(t,"z",(function(){return Tt})),n.d(t,"A",(function(){return Mt})),n.d(t,"B",(function(){return At})),n.d(t,"C",(function(){return It})),n.d(t,"D",(function(){return Pt})),n.d(t,"E",(function(){return Dt})),n.d(t,"F",(function(){return Nt})),n.d(t,"G",(function(){return jt})),n.d(t,"H",(function(){return Rt})),n.d(t,"I",(function(){return Lt})),n.d(t,"J",(function(){return Ft})),n.d(t,"K",(function(){return Bt})),n.d(t,"L",(function(){return Vt})),n.d(t,"M",(function(){return Ht})),n.d(t,"N",(function(){return zt})),n.d(t,"O",(function(){return $t})),n.d(t,"P",(function(){return qt})),n.d(t,"Q",(function(){return Ut})),n.d(t,"R",(function(){return Wt})),n.d(t,"S",(function(){return Gt})),n.d(t,"T",(function(){return Xt})),n.d(t,"U",(function(){return Jt})),n.d(t,"V",(function(){return Qt})),n.d(t,"W",(function(){return Zt})),n.d(t,"X",(function(){return Yt})),n.d(t,"Y",(function(){return Kt})),n.d(t,"Z",(function(){return en})),n.d(t,"ab",(function(){return tn})),n.d(t,"bb",(function(){return nn})),n.d(t,"cb",(function(){return rn})),n.d(t,"db",(function(){return on})),n.d(t,"eb",(function(){return an})),n.d(t,"fb",(function(){return Wn})),n.d(t,"gb",(function(){return sn})),n.d(t,"hb",(function(){return ln})),n.d(t,"ib",(function(){return un})),n.d(t,"jb",(function(){return cn})),n.d(t,"kb",(function(){return hn})),n.d(t,"lb",(function(){return fn})),n.d(t,"mb",(function(){return dn})),n.d(t,"nb",(function(){return pn})),n.d(t,"ob",(function(){return vn})),n.d(t,"pb",(function(){return gn})),n.d(t,"qb",(function(){return mn})),n.d(t,"rb",(function(){return yn})),n.d(t,"sb",(function(){return bn})),n.d(t,"tb",(function(){return Xn})),n.d(t,"ub",(function(){return kn})),n.d(t,"vb",(function(){return _n})),n.d(t,"wb",(function(){return Cn})),n.d(t,"xb",(function(){return wn})),n.d(t,"yb",(function(){return Sn})),n.d(t,"zb",(function(){return On})),n.d(t,"Ab",(function(){return Jn})),n.d(t,"Bb",(function(){return lr})),n.d(t,"Cb",(function(){return or})),n.d(t,"Db",(function(){return er})),n.d(t,"Eb",(function(){return tr})),n.d(t,"Fb",(function(){return nr})),n.d(t,"Gb",(function(){return F})),n.d(t,"Hb",(function(){return Mn})),n.d(t,"Ib",(function(){return I})),n.d(t,"Jb",(function(){return j})),n.d(t,"Kb",(function(){return rr})),n.d(t,"Lb",(function(){return P})),n.d(t,"Mb",(function(){return D})),n.d(t,"Nb",(function(){return N})),n.d(t,"Ob",(function(){return ir})),n.d(t,"Pb",(function(){return En})),n.d(t,"Qb",(function(){return sr}));var C,w,S=function(e){return"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e)},O=function(){function e(t,n){_classCallCheck(this,e),this.injector=t,this.el=n,this.onChange=function(){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this.el.nativeElement.value=this.lastValue=null==e?"":e,x(this.el)}},{key:"handleChangeEvent",value:function(e,t){e===this.el.nativeElement&&(t!==this.lastValue&&(this.lastValue=t,this.onChange(t)),x(this.el))}},{key:"_handleBlurEvent",value:function(e){e===this.el.nativeElement&&(this.onTouched(),x(this.el))}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.el.nativeElement.disabled=e}},{key:"ngOnDestroy",value:function(){this.statusChanges&&this.statusChanges.unsubscribe()}},{key:"ngAfterViewInit",value:function(){var e,t=this;try{e=this.injector.get(o.f)}catch(r){}if(e){e.statusChanges&&(this.statusChanges=e.statusChanges.subscribe((function(){return x(t.el)})));var n=e.control;n&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach((function(e){if(n[e]){var r=n[e].bind(n);n[e]=function(){r.apply(void 0,arguments),x(t.el)}}}))}}}]),e}(),x=function(e){S((function(){var t=e.nativeElement,n=E(t);T(t,n);var r=t.closest("ion-item");r&&T(r,n)}))},E=function(e){for(var t=e.classList,n=[],r=0;r<t.length;r++){var i=t.item(r);null!==i&&M(i,"ng-")&&n.push("ion-"+i.substr(3))}return n},T=function(e,t){var n=e.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach((function(e){return n.remove(e)})),t.forEach((function(e){return n.add(e)}))},M=function(e,t){return e.substr(0,t.length)===t},A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){return _classCallCheck(this,n),t.call(this,e,r)}return _createClass(n,[{key:"writeValue",value:function(e){this.el.nativeElement.checked=this.lastValue=null!=e&&e,x(this.el)}},{key:"_handleIonChange",value:function(e){this.handleChangeEvent(e,e.checked)}}]),n}(O),I=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){return _classCallCheck(this,n),t.call(this,e,r)}return _createClass(n,[{key:"_handleIonChange",value:function(e){this.handleChangeEvent(e,e.value)}},{key:"registerOnChange",value:function(e){_get(_getPrototypeOf(n.prototype),"registerOnChange",this).call(this,(function(t){e(""===t?null:parseFloat(t))}))}}]),n}(O),P=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){return _classCallCheck(this,n),t.call(this,e,r)}return _createClass(n,[{key:"_handleIonSelect",value:function(e){this.handleChangeEvent(e,e.checked)}}]),n}(O),D=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){return _classCallCheck(this,n),t.call(this,e,r)}return _createClass(n,[{key:"_handleChangeEvent",value:function(e){this.handleChangeEvent(e,e.value)}}]),n}(O),N=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){return _classCallCheck(this,n),t.call(this,e,r)}return _createClass(n,[{key:"_handleInputEvent",value:function(e){this.handleChangeEvent(e,e.value)}}]),n}(O),j=((C=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.doc=t,this.backButton=new d.a,this.keyboardDidShow=new d.a,this.keyboardDidHide=new d.a,this.pause=new d.a,this.resume=new d.a,this.resize=new d.a,n.run((function(){var e;r.win=t.defaultView,r.backButton.subscribeWithPriority=function(e,t){return this.subscribe((function(r){return r.register(e,(function(e){return n.run((function(){return t(e)}))}))}))},L(r.pause,t,"pause"),L(r.resume,t,"resume"),L(r.backButton,t,"ionBackButton"),L(r.resize,r.win,"resize"),L(r.keyboardDidShow,r.win,"ionKeyboardDidShow"),L(r.keyboardDidHide,r.win,"ionKeyboardDidHide"),r._readyPromise=new Promise((function(t){e=t})),r.win&&r.win.cordova?t.addEventListener("deviceready",(function(){e("cordova")}),{once:!0}):e("dom")}))}return _createClass(e,[{key:"is",value:function(e){return Object(u.e)(this.win,e)}},{key:"platforms",value:function(){return Object(u.d)(this.win)}},{key:"ready",value:function(){return this._readyPromise}},{key:"getQueryParam",value:function(e){return R(this.win.location.href,e)}},{key:"isLandscape",value:function(){return!this.isPortrait()}},{key:"isPortrait",value:function(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches}},{key:"testUserAgent",value:function(e){var t=this.win.navigator;return!!(t&&t.userAgent&&t.userAgent.indexOf(e)>=0)}},{key:"url",value:function(){return this.win.location.href}},{key:"width",value:function(){return this.win.innerWidth}},{key:"height",value:function(){return this.win.innerHeight}},{key:"isRTL",get:function(){return"rtl"===this.doc.dir}}]),e}()).ngInjectableDef=Object(i.Qb)({factory:function(){return new C(Object(i.Rb)(a.d),Object(i.Rb)(i.x))},token:C,providedIn:"root"}),C),R=function(e,t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},L=function(e,t,n){t&&t.addEventListener(n,(function(t){e.next(null!=t?t.detail:void 0)}))},F=((w=function(){function e(t,n,r,i){var o=this;_classCallCheck(this,e),this.location=n,this.serializer=r,this.router=i,this.direction=V,this.animated=H,this.guessDirection="forward",this.lastNavId=-1,i&&i.events.subscribe((function(e){if(e instanceof s.d){var t=e.restoredState?e.restoredState.navigationId:e.id;o.guessDirection=t<o.lastNavId?"back":"forward",o.guessAnimation=e.restoredState?void 0:o.guessDirection,o.lastNavId="forward"===o.guessDirection?e.id:t}})),t.backButton.subscribeWithPriority(0,(function(e){o.pop(),e()}))}return _createClass(e,[{key:"navigateForward",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("forward",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"navigateBack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("back",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"navigateRoot",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDirection("root",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}},{key:"back",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{animated:!0,animationDirection:"back"};return this.setDirection("back",e.animated,e.animationDirection,e.animation),this.location.back()}},{key:"pop",value:function(){return Object(r.a)(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.topOutlet;case 1:if(e.t0=t,!e.t0){e.next=6;break}return e.next=5,t.pop();case 5:e.t0=!e.sent;case 6:if(!e.t0){e.next=10;break}t=t.parentOutlet;case 8:e.next=1;break;case 10:case"end":return e.stop()}}),e,this)})))}},{key:"setDirection",value:function(e,t,n,r){this.direction=e,this.animated=B(e,t,n),this.animationBuilder=r}},{key:"setTopOutlet",value:function(e){this.topOutlet=e}},{key:"consumeTransition",value:function(){var e,t="root",n=this.animationBuilder;return"auto"===this.direction?(t=this.guessDirection,e=this.guessAnimation):(e=this.animated,t=this.direction),this.direction=V,this.animated=H,this.animationBuilder=void 0,{direction:t,animation:e,animationBuilder:n}}},{key:"navigate",value:function(e,t){if(Array.isArray(e))return this.router.navigate(e,t);var n=this.serializer.parse(e.toString());return void 0!==t.queryParams&&(n.queryParams=Object.assign({},t.queryParams)),void 0!==t.fragment&&(n.fragment=t.fragment),this.router.navigateByUrl(n,t)}}]),e}()).ngInjectableDef=Object(i.Qb)({factory:function(){return new w(Object(i.Rb)(j),Object(i.Rb)(a.g),Object(i.Rb)(s.r),Object(i.Rb)(s.m,8))},token:w,providedIn:"root"}),w),B=function(e,t,n){if(!1!==t)return void 0!==n?n:"forward"===e||"back"===e?e:"root"===e&&!0===t?"forward":void 0},V="auto",H=void 0,z=function(e,t,n){n.forEach((function(n){return e[n]=Object(p.a)(t,n)}))};function $(e){return function(t){return e.inputs&&(n=t,r=e.inputs,i=n.prototype,r.forEach((function(e){Object.defineProperty(i,e,{get:function(){return this.el[e]},set:function(t){var n=this;this.z.runOutsideAngular((function(){return n.el[e]=t}))}})}))),e.methods&&function(e,t){var n=e.prototype;t.forEach((function(e){n[e]=function(){var t=this,n=arguments;return this.z.runOutsideAngular((function(){return t.el[e].apply(t.el,n)}))}}))}(t,e.methods),t;var n,r,i}}var q,U,W,G,X,J,Q,Z,Y,K,ee,te,ne,re,ie,oe,ae,se,le,ue,ce,he,fe,de,pe,ve,ge,me,ye,be,ke,_e,Ce,we,Se,Oe,xe,Ee,Te,Me,Ae,Ie,Pe,De,Ne,je,Re,Le,Fe,Be,Ve,He,ze,$e,qe,Ue,We,Ge,Xe,Je,Qe,Ze,Ye,Ke,et,tt,nt,rt,it,ot,at,st,lt=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},ut=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},ct=(et=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},et=Object(r.b)([$({inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],et)),ht=(Ke=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionBackdropTap"])},Ke=Object(r.b)([$({inputs:["stopPropagation","tappable","visible"]})],Ke)),ft=(Ye=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Ye=Object(r.b)([$({inputs:["color","mode"]})],Ye)),dt=(Ze=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionFocus","ionBlur"])},Ze=Object(r.b)([$({inputs:["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],Ze)),pt=(Qe=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Qe=Object(r.b)([$({inputs:["collapse"]})],Qe)),vt=(Je=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Je=Object(r.b)([$({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],Je)),gt=(Xe=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Xe=Object(r.b)([$({inputs:["mode"]})],Xe)),mt=(Ge=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Ge=Object(r.b)([$({inputs:["color","mode","translucent"]})],Ge)),yt=(We=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},We=Object(r.b)([$({inputs:["color","mode"]})],We)),bt=(Ue=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Ue=Object(r.b)([$({inputs:["color","mode"]})],Ue)),kt=(qe=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionChange","ionFocus","ionBlur"])},qe=Object(r.b)([$({inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],qe)),_t=($e=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},$e=Object(r.b)([$({inputs:["color","mode","outline"]})],$e)),Ct=(ze=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},ze=Object(r.b)([$({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],ze)),wt=(He=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])},He=Object(r.b)([$({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],He)),St=(Ve=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])},Ve=Object(r.b)([$({inputs:["cancelText","dayNames","dayShortNames","dayValues","disabled","displayFormat","displayTimezone","doneText","hourValues","max","min","minuteValues","mode","monthNames","monthShortNames","monthValues","name","pickerFormat","pickerOptions","placeholder","readonly","value","yearValues"],methods:["open"]})],Ve)),Ot=(Be=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Be=Object(r.b)([$({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],Be)),xt=(Fe=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionFocus","ionBlur"])},Fe=Object(r.b)([$({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],Fe)),Et=(Le=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Le=Object(r.b)([$({inputs:["activated","side"]})],Le)),Tt=(Re=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Re=Object(r.b)([$({inputs:["mode","translucent"]})],Re)),Mt=(je=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},je=Object(r.b)([$({inputs:["fixed"]})],je)),At=(Ne=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Ne=Object(r.b)([$({inputs:["collapse","mode","translucent"]})],Ne)),It=(De=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},De=Object(r.b)([$({inputs:["ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","size","src"]})],De)),Pt=(Pe=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])},Pe=Object(r.b)([$({inputs:["alt","src"]})],Pe)),Dt=(Ie=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionInfinite"])},Ie=Object(r.b)([$({inputs:["disabled","position","threshold"],methods:["complete"]})],Ie)),Nt=(Ae=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Ae=Object(r.b)([$({inputs:["loadingSpinner","loadingText"]})],Ae)),jt=(Me=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])},Me=Object(r.b)([$({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],Me)),Rt=(Te=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Te=Object(r.b)([$({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],Te)),Lt=(Ee=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Ee=Object(r.b)([$({inputs:["color","mode","sticky"]})],Ee)),Ft=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Bt=(xe=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},xe=Object(r.b)([$({inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],xe)),Vt=(Oe=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionSwipe"])},Oe=Object(r.b)([$({inputs:["side"]})],Oe)),Ht=(Se=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionDrag"])},Se=Object(r.b)([$({inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],Se)),zt=(we=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},we=Object(r.b)([$({inputs:["color","mode","position"]})],we)),$t=(Ce=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Ce=Object(r.b)([$({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],Ce)),qt=(_e=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},_e=Object(r.b)([$({inputs:["color","lines","mode"]})],_e)),Ut=(ke=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])},ke=Object(r.b)([$({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],ke)),Wt=(be=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},be=Object(r.b)([$({inputs:["autoHide","color","disabled","menu","mode","type"]})],be)),Gt=(ye=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},ye=Object(r.b)([$({inputs:["autoHide","menu"]})],ye)),Xt=(me=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionNavWillChange","ionNavDidChange"])},me=Object(r.b)([$({inputs:["animated","animation","root","rootParams","swipeGesture"],methods:["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"]})],me)),Jt=(ge=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},ge=Object(r.b)([$({inputs:["component","componentProps","routerAnimation","routerDirection"]})],ge)),Qt=(ve=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},ve=Object(r.b)([$({inputs:["color","mode"]})],ve)),Zt=(pe=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},pe=Object(r.b)([$({inputs:["buffer","color","mode","reversed","type","value"]})],pe)),Yt=(de=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionFocus","ionBlur"])},de=Object(r.b)([$({inputs:["color","disabled","mode","name","value"]})],de)),Kt=(fe=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionChange"])},fe=Object(r.b)([$({inputs:["allowEmptySelection","name","value"]})],fe)),en=(he=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionChange","ionFocus","ionBlur"])},he=Object(r.b)([$({inputs:["color","debounce","disabled","dualKnobs","max","min","mode","name","pin","snaps","step","ticks","value"]})],he)),tn=(ce=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionRefresh","ionPull","ionStart"])},ce=Object(r.b)([$({inputs:["closeDuration","disabled","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],ce)),nn=(ue=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},ue=Object(r.b)([$({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],ue)),rn=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},on=(le=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionItemReorder"])},le=Object(r.b)([$({inputs:["disabled"],methods:["complete"]})],le)),an=(se=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},se=Object(r.b)([$({inputs:["type"],methods:["addRipple"]})],se)),sn=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},ln=(ae=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])},ae=Object(r.b)([$({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],ae)),un=(oe=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionChange"])},oe=Object(r.b)([$({inputs:["color","disabled","mode","scrollable","value"]})],oe)),cn=(ie=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},ie=Object(r.b)([$({inputs:["disabled","layout","mode","type","value"]})],ie)),hn=(re=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])},re=Object(r.b)([$({inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],re)),fn=(ne=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},ne=Object(r.b)([$({inputs:["disabled","value"]})],ne)),dn=(te=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},te=Object(r.b)([$({inputs:["animated"]})],te)),pn=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},vn=(ee=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])},ee=Object(r.b)([$({inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],ee)),gn=(K=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},K=Object(r.b)([$({inputs:["color","duration","name","paused"]})],K)),mn=(Y=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionSplitPaneVisible"])},Y=Object(r.b)([$({inputs:["contentId","disabled","when"]})],Y)),yn=(Z=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Z=Object(r.b)([$({inputs:["color","mode","selectedTab","translucent"]})],Z)),bn=(Q=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},Q=Object(r.b)([$({inputs:["disabled","download","href","layout","mode","rel","selected","tab","target"]})],Q)),kn=(J=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},J=Object(r.b)([$({inputs:["color","mode"]})],J)),_n=(X=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])},X=Object(r.b)([$({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","debounce","disabled","enterkeyhint","inputmode","maxlength","minlength","mode","name","placeholder","readonly","required","rows","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],X)),Cn=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},wn=(G=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},G=Object(r.b)([$({inputs:["color","size"]})],G)),Sn=(W=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement,z(this,this.el,["ionChange","ionFocus","ionBlur"])},W=Object(r.b)([$({inputs:["checked","color","disabled","mode","name","value"]})],W)),On=(U=function e(t,n,r){_classCallCheck(this,e),this.z=r,t.detach(),this.el=n.nativeElement},U=Object(r.b)([$({inputs:["color","mode"]})],U)),xn=((q=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"get",value:function(e,t){var n=Tn();return n?n.get(e,t):null}},{key:"getBoolean",value:function(e,t){var n=Tn();return!!n&&n.getBoolean(e,t)}},{key:"getNumber",value:function(e,t){var n=Tn();return n?n.getNumber(e,t):0}},{key:"set",value:function(e,t){console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");var n=Tn();n&&n.set(e,t)}}]),e}()).ngInjectableDef=Object(i.Qb)({factory:function(){return new q},token:q,providedIn:"root"}),q),En=new i.o("USERCONFIG"),Tn=function(){if("undefined"!=typeof window){var e=window.Ionic;if(e&&e.config)return e.config}return null},Mn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,e),this.data=t}return _createClass(e,[{key:"get",value:function(e){return this.data[e]}}]),e}(),An=function(){function e(t,n){_classCallCheck(this,e),this.zone=t,this.appRef=n}return _createClass(e,[{key:"create",value:function(e,t,n){return new In(e,t,n,this.appRef,this.zone)}}]),e}(),In=function(){function e(t,n,r,i,o){_classCallCheck(this,e),this.resolver=t,this.injector=n,this.location=r,this.appRef=i,this.zone=o,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}return _createClass(e,[{key:"attachViewToDom",value:function(e,t,n,r){var i=this;return this.zone.run((function(){return new Promise((function(o){o(Pn(i.zone,i.resolver,i.injector,i.location,i.appRef,i.elRefMap,i.elEventsMap,e,t,n,r))}))}))}},{key:"removeViewFromDom",value:function(e,t){var n=this;return this.zone.run((function(){return new Promise((function(e){var r=n.elRefMap.get(t);if(r){r.destroy(),n.elRefMap.delete(t);var i=n.elEventsMap.get(t);i&&(i(),n.elEventsMap.delete(t))}e()}))}))}}]),e}(),Pn=function(e,t,n,r,o,a,s,l,u,c,h){var f=t.resolveComponentFactory(u),d=i.p.create({providers:Rn(c),parent:n}),p=r?r.createComponent(f,r.length,d):f.create(d),v=p.instance,g=p.location.nativeElement;if(c&&Object.assign(v,c),h){var m,y=_createForOfIteratorHelper(h);try{for(y.s();!(m=y.n()).done;){var b=m.value;g.classList.add(b)}}catch(_){y.e(_)}finally{y.f()}}var k=Nn(e,v,g);return l.appendChild(g),r||o.attachView(p.hostView),p.changeDetectorRef.reattach(),a.set(g,p),s.set(g,k),g},Dn=[c.a,c.b,c.c,c.d,c.e],Nn=function(e,t,n){return e.run((function(){var e=Dn.filter((function(e){return"function"==typeof t[e]})).map((function(e){var r=function(n){return t[e](n.detail)};return n.addEventListener(e,r),function(){return n.removeEventListener(e,r)}}));return function(){return e.forEach((function(e){return e()}))}}))},jn=new i.o("NavParamsToken"),Rn=function(e){return[{provide:jn,useValue:e},{provide:Mn,useFactory:Ln,deps:[jn]}]},Ln=function(e){return new Mn(e)},Fn=function(e,t){return(e=e.filter((function(e){return e.stackId!==t.stackId}))).push(t),e},Bn=function(e,t){var n=e.createUrlTree(["."],{relativeTo:t});return e.serializeUrl(n)},Vn=function(e,t){if(e)for(var n=Hn(t),r=0;r<n.length;r++){if(r>=e.length)return n[r];if(n[r]!==e[r])return}},Hn=function(e){return e.split("/").map((function(e){return e.trim()})).filter((function(e){return""!==e}))},zn=function(e){e&&(e.ref.destroy(),e.unlistenEvents())},$n=function(){function e(t,n,r,i,o,a){_classCallCheck(this,e),this.containerEl=n,this.router=r,this.navCtrl=i,this.zone=o,this.location=a,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==t?Hn(t):void 0}return _createClass(e,[{key:"createView",value:function(e,t){var n=Bn(this.router,t),r=e&&e.location&&e.location.nativeElement,i=Nn(this.zone,e.instance,r);return{id:this.nextId++,stackId:Vn(this.tabsPrefix,n),unlistenEvents:i,element:r,ref:e,url:n}}},{key:"getExistingView",value:function(e){var t=Bn(this.router,e),n=this.views.find((function(e){return e.url===t}));return n&&n.ref.changeDetectorRef.reattach(),n}},{key:"setActive",value:function(e){var t=this,n=this.navCtrl.consumeTransition(),r=n.direction,i=n.animation,o=n.animationBuilder,a=this.activeView,s=function(e,t){return!t||e.stackId!==t.stackId}(e,a);s&&(r="back",i=void 0);var l,u=this.views.slice(),c=this.router;c.getCurrentNavigation?l=c.getCurrentNavigation():c.navigations&&c.navigations.value&&(l=c.navigations.value),l&&l.extras&&l.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);var h=this.views.includes(e),f=this.insertView(e,r);h||e.ref.changeDetectorRef.detectChanges();var d=e.animationBuilder;return void 0!==o||"back"!==r||s||void 0===d||(o=d),a&&(a.animationBuilder=o),this.zone.runOutsideAngular((function(){return t.wait((function(){return a&&a.ref.changeDetectorRef.detach(),e.ref.changeDetectorRef.reattach(),t.transition(e,a,i,t.canGoBack(1),!1,o).then((function(){return qn(e,f,u,t.location)})).then((function(){return{enteringView:e,direction:r,animation:i,tabSwitch:s}}))}))}))}},{key:"canGoBack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getActiveStackId();return this.getStack(t).length>e}},{key:"pop",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getActiveStackId();return this.zone.run((function(){var r=t.getStack(n);if(r.length<=e)return Promise.resolve(!1);var i=r[r.length-e-1],o=i.url,a=i.savedData;if(a){var s=a.get("primary");s&&s.route&&s.route._routerState&&s.route._routerState.snapshot&&s.route._routerState.snapshot.url&&(o=s.route._routerState.snapshot.url)}var l=t.navCtrl.consumeTransition().animationBuilder;return t.navCtrl.navigateBack(o,Object.assign({},i.savedExtras,{animation:l})).then((function(){return!0}))}))}},{key:"startBackTransition",value:function(){var e=this,t=this.activeView;if(t){var n=this.getStack(t.stackId),r=n[n.length-2],i=r.animationBuilder;return this.wait((function(){return e.transition(r,t,"back",e.canGoBack(2),!0,i)}))}return Promise.resolve()}},{key:"endBackTransition",value:function(e){e?(this.skipTransition=!0,this.pop(1)):this.activeView&&Un(this.activeView,this.views,this.views,this.location)}},{key:"getLastUrl",value:function(e){var t=this.getStack(e);return t.length>0?t[t.length-1]:void 0}},{key:"getRootUrl",value:function(e){var t=this.getStack(e);return t.length>0?t[0]:void 0}},{key:"getActiveStackId",value:function(){return this.activeView?this.activeView.stackId:void 0}},{key:"destroy",value:function(){this.containerEl=void 0,this.views.forEach(zn),this.activeView=void 0,this.views=[]}},{key:"getStack",value:function(e){return this.views.filter((function(t){return t.stackId===e}))}},{key:"insertView",value:function(e,t){return this.activeView=e,this.views=function(e,t,n){return"root"===n?Fn(e,t):"forward"===n?function(e,t){return e.indexOf(t)>=0?e=e.filter((function(e){return e.stackId!==t.stackId||e.id<=t.id})):e.push(t),e}(e,t):function(e,t){return e.indexOf(t)>=0?e.filter((function(e){return e.stackId!==t.stackId||e.id<=t.id})):Fn(e,t)}(e,t)}(this.views,e,t),this.views.slice()}},{key:"transition",value:function(e,t,n,r,i,o){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(t===e)return Promise.resolve(!1);var a=e?e.element:void 0,s=t?t.element:void 0,l=this.containerEl;return a&&a!==s&&(a.classList.add("ion-page"),a.classList.add("ion-page-invisible"),a.parentElement!==l&&l.appendChild(a),l.commit)?l.commit(a,s,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:r,progressAnimation:i,animationBuilder:o}):Promise.resolve(!1)}},{key:"wait",value:function(e){return Object(r.a)(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=void 0!==this.runningTask,!t.t0){t.next=5;break}return t.next=4,this.runningTask;case 4:this.runningTask=void 0;case 5:return t.abrupt("return",this.runningTask=e());case 6:case"end":return t.stop()}}),t,this)})))}}]),e}(),qn=function(e,t,n,r){return"function"==typeof requestAnimationFrame?new Promise((function(i){requestAnimationFrame((function(){Un(e,t,n,r),i()}))})):Promise.resolve()},Un=function(e,t,n,r){n.filter((function(e){return!t.includes(e)})).forEach(zn),t.forEach((function(t){var n=r.path().split("?")[0].split("#")[0];if(t!==e&&t.url!==n){var i=t.element;i.setAttribute("aria-hidden","true"),i.classList.add("ion-page-hidden"),t.ref.changeDetectorRef.detach()}}))},Wn=function(){function e(t,n,r,o,a,l,u,c,h,f,d,p,g){_classCallCheck(this,e),this.parentContexts=t,this.location=n,this.resolver=r,this.config=l,this.navCtrl=u,this.parentOutlet=g,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new v.a(null),this.stackEvents=new i.m,this.activateEvents=new i.m,this.deactivateEvents=new i.m,this.nativeEl=h.nativeElement,this.name=o||s.f,this.tabsPrefix="true"===a?Bn(f,p):void 0,this.stackCtrl=new $n(this.tabsPrefix,this.nativeEl,f,u,d,c),t.onChildOutletCreated(this.name,this)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.stackCtrl.destroy()}},{key:"getContext",value:function(){return this.parentContexts.getContext(this.name)}},{key:"ngOnInit",value:function(){var e=this;if(!this.activated){var t=this.getContext();t&&t.route&&this.activateWith(t.route,t.resolver||null)}this.nativeEl.componentOnReady&&this.nativeEl.componentOnReady().then((function(){void 0===e._swipeGesture&&(e.swipeGesture=e.config.getBoolean("swipeBackEnabled","ios"===e.nativeEl.mode))}))}},{key:"detach",value:function(){throw new Error("incompatible reuse strategy")}},{key:"attach",value:function(e,t){throw new Error("incompatible reuse strategy")}},{key:"deactivate",value:function(){if(this.activated){if(this.activatedView){this.activatedView.savedData=new Map(this.getContext().children.contexts),this.activatedView.savedExtras={};var e=this.getContext();if(e.route){var t=e.route.snapshot;this.activatedView.savedExtras.queryParams=t.queryParams,this.activatedView.savedExtras.fragment=t.fragment}}var n=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}},{key:"activateWith",value:function(e,t){var n,r=this;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var i=this.stackCtrl.getExistingView(e);if(i){n=this.activated=i.ref;var o=i.savedData;o&&(this.getContext().children.contexts=o),this.updateActivatedRouteProxy(n.instance,e)}else{var a=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,l=new v.a(null),u=this.createActivatedRouteProxy(l,e),c=new Gn(u,s,this.location.injector);n=this.activated=this.location.createComponent(a,this.location.length,c),l.next(n.instance),i=this.stackCtrl.createView(this.activated,e),this.proxyMap.set(n.instance,u),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:e})}this.activatedView=i,this.stackCtrl.setActive(i).then((function(e){r.navCtrl.setTopOutlet(r),r.activateEvents.emit(n.instance),r.stackEvents.emit(e)}))}},{key:"canGoBack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;return this.stackCtrl.canGoBack(e,t)}},{key:"pop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;return this.stackCtrl.pop(e,t)}},{key:"getLastUrl",value:function(e){var t=this.stackCtrl.getLastUrl(e);return t?t.url:void 0}},{key:"getLastRouteView",value:function(e){return this.stackCtrl.getLastUrl(e)}},{key:"getRootView",value:function(e){return this.stackCtrl.getRootUrl(e)}},{key:"getActiveStackId",value:function(){return this.stackCtrl.getActiveStackId()}},{key:"createActivatedRouteProxy",value:function(e,t){var n=new s.a;return n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,n._paramMap=this.proxyObservable(e,"paramMap"),n._queryParamMap=this.proxyObservable(e,"queryParamMap"),n.url=this.proxyObservable(e,"url"),n.params=this.proxyObservable(e,"params"),n.queryParams=this.proxyObservable(e,"queryParams"),n.fragment=this.proxyObservable(e,"fragment"),n.data=this.proxyObservable(e,"data"),n}},{key:"proxyObservable",value:function(e,t){var n=this;return e.pipe(Object(g.a)((function(e){return!!e})),Object(m.a)((function(e){return n.currentActivatedRoute$.pipe(Object(g.a)((function(t){return null!==t&&t.component===e})),Object(m.a)((function(e){return e&&e.activatedRoute[t]})),Object(y.a)())})))}},{key:"updateActivatedRouteProxy",value:function(e,t){var n=this.proxyMap.get(e);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,this.currentActivatedRoute$.next({component:e,activatedRoute:t})}},{key:"animation",set:function(e){this.nativeEl.animation=e}},{key:"animated",set:function(e){this.nativeEl.animated=e}},{key:"swipeGesture",set:function(e){var t=this;this._swipeGesture=e,this.nativeEl.swipeHandler=e?{canStart:function(){return t.stackCtrl.canGoBack(1)},onStart:function(){return t.stackCtrl.startBackTransition()},onEnd:function(e){return t.stackCtrl.endBackTransition(e)}}:void 0}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}}]),e}(),Gn=function(){function e(t,n,r){_classCallCheck(this,e),this.route=t,this.childContexts=n,this.parent=r}return _createClass(e,[{key:"get",value:function(e,t){return e===s.a?this.route:e===s.b?this.childContexts:this.parent.get(e,t)}}]),e}(),Xn=function(){function e(t){_classCallCheck(this,e),this.navCtrl=t,this.ionTabsWillChange=new i.m,this.ionTabsDidChange=new i.m}return _createClass(e,[{key:"onPageSelected",value:function(e){var t=e.enteringView.stackId;e.tabSwitch&&void 0!==t&&(this.tabBar&&(this.tabBar.selectedTab=t),this.ionTabsWillChange.emit({tab:t}),this.ionTabsDidChange.emit({tab:t}))}},{key:"select",value:function(e){var t=this.outlet.getActiveStackId()===e,n="".concat(this.outlet.tabsPrefix,"/").concat(e);if(t){var r=this.outlet.getActiveStackId();if(this.outlet.getLastRouteView(r).url===n)return;var i=this.outlet.getRootView(e);return this.navCtrl.navigateRoot(n,Object.assign({},i&&n===i.url&&i.savedExtras,{animated:!0,animationDirection:"back"}))}var o=this.outlet.getLastRouteView(e);return this.navCtrl.navigateRoot(o&&o.url||n,Object.assign({},o&&o.savedExtras,{animated:!0,animationDirection:"back"}))}},{key:"getSelected",value:function(){return this.outlet.getActiveStackId()}}]),e}(),Jn=(tt=function(){function e(t,n,r){_classCallCheck(this,e),this.z=t,this.iterableDiffers=n,this.refMap=new WeakMap,this.el=r.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}return _createClass(e,[{key:"ngOnChanges",value:function(e){if(this.trackBy&&"items"in e){var t=e.items.currentValue;if(void 0===this.differ&&null!=t)try{this.differ=this.iterableDiffers.find(t).create(this.trackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(t,"'. VirtualScroll only supports binding to Iterables such as Arrays."))}}}},{key:"ngDoCheck",value:function(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)}},{key:"nodeRender",value:function(e,t,n){var r=this;return this.z.run((function(){var i;if(e){var o=(i=r.refMap.get(e)).context;o.$implicit=t.value,o.index=t.index}else i=r.itmTmp.viewContainer.createEmbeddedView(r.getComponent(t.type),{$implicit:t.value,index:n},n),e=Qn(i),r.refMap.set(e,i);return i.detectChanges(),e}))}},{key:"getComponent",value:function(e){switch(e){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")}}]),e}(),tt=Object(r.b)([$({inputs:["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"],methods:["checkEnd","checkRange","positionForItem"]})],tt)),Qn=function(e){for(var t=e.rootNodes,n=0;n<t.length;n++)if(1===t[n].nodeType)return t[n];throw new Error("virtual element was not created")},Zn=function(){function e(t){_classCallCheck(this,e),this.ctrl=t}return _createClass(e,[{key:"create",value:function(e){return this.ctrl.create(e||{})}},{key:"dismiss",value:function(e,t,n){return this.ctrl.dismiss(e,t,n)}},{key:"getTop",value:function(){return this.ctrl.getTop()}}]),e}(),Yn=((at=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this,f.c)}return n}(Zn)).ngInjectableDef=Object(i.Qb)({factory:function(){return new at},token:at,providedIn:"root"}),at),Kn=((ot=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this,f.b)}return n}(Zn)).ngInjectableDef=Object(i.Qb)({factory:function(){return new ot},token:ot,providedIn:"root"}),ot),er=((it=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this,f.k)}return n}(Zn)).ngInjectableDef=Object(i.Qb)({factory:function(){return new it},token:it,providedIn:"root"}),it),tr=((rt=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"open",value:function(e){return h.a.open(e)}},{key:"close",value:function(e){return h.a.close(e)}},{key:"toggle",value:function(e){return h.a.toggle(e)}},{key:"enable",value:function(e,t){return h.a.enable(e,t)}},{key:"swipeGesture",value:function(e,t){return h.a.swipeGesture(e,t)}},{key:"isOpen",value:function(e){return h.a.isOpen(e)}},{key:"isEnabled",value:function(e){return h.a.isEnabled(e)}},{key:"get",value:function(e){return h.a.get(e)}},{key:"getOpen",value:function(){return h.a.getOpen()}},{key:"getMenus",value:function(){return h.a.getMenus()}}]),e}()).ngInjectableDef=Object(i.Qb)({factory:function(){return new rt},token:rt,providedIn:"root"}),rt),nr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,f.l)).angularDelegate=e,o.resolver=r,o.injector=i,o}return _createClass(n,[{key:"create",value:function(e){return _get(_getPrototypeOf(n.prototype),"create",this).call(this,Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}}]),n}(Zn),rr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,f.d)).angularDelegate=e,o.resolver=r,o.injector=i,o}return _createClass(n,[{key:"create",value:function(e){return _get(_getPrototypeOf(n.prototype),"create",this).call(this,Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}}]),n}(Zn),ir=((nt=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this,f.o)}return n}(Zn)).ngInjectableDef=Object(i.Qb)({factory:function(){return new nt},token:nt,providedIn:"root"}),nt),or=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"shouldAttach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){if(e.routeConfig!==t.routeConfig)return!1;var n=e.params,r=t.params,i=Object.keys(n),o=Object.keys(r);if(i.length!==o.length)return!1;for(var a=0,s=i;a<s.length;a++){var l=s[a];if(r[l]!==n[l])return!1}return!0}}]),e}(),ar=!1,sr=function(e,t,r){return function(){var i=t.defaultView;if(i&&"undefined"!=typeof window){ar&&console.warn("Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once."),ar=!0,(i.Ionic=i.Ionic||{}).config=Object.assign({},e,{_zoneGate:function(e){return r.run(e)}});var o="__zone_symbol__addEventListener"in t.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var e=[];if("undefined"!=typeof window){var t=window;t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove&&t.Element.prototype.getRootNode)||e.push(n.e(7).then(n.t.bind(null,"QdDj",7))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()&&"undefined"!=typeof WeakMap||e.push(n.e(5).then(n.t.bind(null,"t6o4",7)))}return Promise.all(e)}().then((function(){return e={exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:S,jmp:function(e){return r.runOutsideAngular(e)},ael:function(e,t,n,r){e[o](t,n,r)},rel:function(e,t,n,r){e.removeEventListener(t,n,r)}},"undefined"==typeof window?Promise.resolve():(l.b&&l.b.supports&&l.b.supports("color","var(--c)")?Object(l.e)():n.e(6).then(n.t.bind(null,"tUaU",7)).then((function(){return(l.p.$cssShim$=l.s.__cssshim)?l.p.$cssShim$.i():0}))).then((function(){return _(),Object(l.f)(JSON.parse('[["ion-select_3",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["ion-menu_3",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[32,"ionMenuChange","visibilityChanged"],[32,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[32,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[32,"ionMenuChange","visibilityChanged"],[32,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[1],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[1]}],[33,"ion-card-title",{"color":[1]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"value":[1025],"activated":[32]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[16,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},[[8,"keyboardWillHide","onKeyboardWillHide"],[8,"keyboardWillShow","onKeyboardWillShow"]]]]],["ion-chip",[[33,"ion-chip",{"color":[1],"outline":[4]}]]],["ion-modal",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-popover",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-app_8",[[0,"ion-app"],[34,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-input",[[34,"ion-input",{"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["ion-range",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],["ion-textarea",[[34,"ion-textarea",{"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-datetime_3",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"svgContent":[32],"isVisible":[32]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[49,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[1],"lines":[1]}]]]]'),e)}));var e}))}}},lr=st=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(e){return{ngModule:st,providers:[{provide:En,useValue:e},{provide:i.d,useFactory:sr,multi:!0,deps:[En,a.d,i.x]}]}}}]),e}()},sk1z:function(e,t,n){"use strict";n("KX/v"),n("EGUZ");var r=n("pY0Z"),i=function(){function e(t){_classCallCheck(this,e),this.string="native",this.active=!1,this.isTesting=!1,this.id=t}return _createClass(e,[{key:"isActive",value:function(){return this.active}},{key:"requestAd",value:function(){this.setTesting(this.isTesting),FacebookAds&&(FacebookAds.createNativeAd(this.id,(function(e){console.log("success",e)}),(function(e){console.log("failed",e)})),this.setActive(!1))}},{key:"setActive",value:function(e){this.active=e}},{key:"setTesting",value:function(e){e&&FacebookAds&&FacebookAds.setOptions({isTesting:!0,deviceHash:"234242vsdvs342"})}},{key:"release",value:function(){FacebookAds&&FacebookAds.removeNativeAd(this.id),this.setActive(!0)}},{key:"setClickableArea",value:function(e,t){var n;if(null!=(n=document.getElementById(this.id))||null!=n){var r=n.getBoundingClientRect();FacebookAds&&FacebookAds.setNativeAdClickArea(this.id,r.left,r.top,r.width,r.height)}}},{key:"hideClickableArea",value:function(){FacebookAds&&FacebookAds.setNativeAdClickArea(this.id,0,0,0,0)}},{key:"initClickableArea",value:function(){this.setClickableArea(0,0)}}]),e}(),o=function(){function e(t){_classCallCheck(this,e),this.isTesting=!1,this.adsMgr=t,this.nativePlacements=[],this.init(),this.setTestData()}return _createClass(e,[{key:"init",value:function(){this.initNativePlacements()}},{key:"initNativePlacements",value:function(){var e=[];e.push("1792334877741456_1792336137741330"),e.push("1792334877741456_1792649784376632"),e.push("1792334877741456_1792650001043277"),e.push("1792334877741456_1792650061043271"),e.push("1792334877741456_1792723431035934"),e.push("1792334877741456_1792723481035929"),e.push("1792334877741456_1792723527702591"),e.push("1792334877741456_1792723547702589"),e.push("1792334877741456_1792723567702587"),e.push("1792334877741456_1792723587702585"),e.push("1792334877741456_1792723624369248"),e.push("1792334877741456_1792723644369246"),e.push("1792334877741456_1792723661035911"),e.push("1792334877741456_1792723937702550"),e.push("1792334877741456_1792723977702546"),e.push("1792334877741456_1792724081035869"),e.push("1792334877741456_1792724094369201"),e.push("1792334877741456_1792724121035865"),e.push("1792334877741456_1792724161035861"),e.push("1792334877741456_1792724014369209");for(var t=0,n=e;t<n.length;t++){var r=n[t];this.nativePlacements.push(new i(r))}}},{key:"presentNativeAd",value:function(e){var t,n=new r.a(e.adRes),i=_createForOfIteratorHelper(this.nativePlacements);try{for(i.s();!(t=i.n()).done;){var o=t.value;o.id==e.adId&&(o.setClickableArea(0,0),n.setAdsPlacement(o),o.setActive(!0))}}catch(a){i.e(a)}finally{i.f()}this.adsMgr.events.publish("adLoaded",{message:n})}},{key:"presentTestNativeAd",value:function(){var e=new r.a(this.testAd.adRes);e.setAdsPlacement(new i(this.testAd.adId)),console.log("ads message",e),this.adsMgr.events.publish("adLoaded",{message:e})}},{key:"prepareFacebookNativeAds",value:function(){if(1==this.isTesting)return console.log("tset it now"),this.presentTestNativeAd(),!1;var e,t,n=_createForOfIteratorHelper(this.nativePlacements);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.isActive()||(e=r)}}catch(i){n.e(i)}finally{n.f()}e.requestAd()}},{key:"prepareFacebookAds",value:function(){FacebookAds&&(console.log("calling fb ads"),FacebookAds.createBanner({adId:"169620700378180_170450423628541",position:FacebookAds.AD_POSITION.BOTTOM_CENTER,autoShow:!0},(function(e){console.log("success",e)}),(function(e){console.log("failed",e)})),this.presentNativeAd(""))}},{key:"updateClickableArea",value:function(e,t){var n,r=_createForOfIteratorHelper(this.nativePlacements);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.isActive()&&i.setClickableArea(e,t)}}catch(o){r.e(o)}finally{r.f()}}},{key:"releaseAllNativePlacements",value:function(){var e,t=_createForOfIteratorHelper(this.nativePlacements);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.isActive()&&n.release()}}catch(r){t.e(r)}finally{t.f()}}},{key:"setTestData",value:function(){this.testAd={isTrusted:!1,adNetwork:"FacebookAds",adEvent:"onAdLoaded",adType:"native",adId:"763416880384578_1139417452784517",adRes:{title:"Facebook Test Ad",socialContext:"Get it on Google Play",buttonText:"Install Now",body:"Your ad integration works. Woohoo!",coverImage:{url:"https://www.facebook.com/images/ads/network/test_video_banner.png",width:414,height:232},icon:{url:"https://scontent.xx.fbcdn.net/hphotos-xaf1/t39.3079-6/851551_836527893040166_1350205352_n.png",width:128,height:128}}}}}]),e}(),a=function(){function e(t){_classCallCheck(this,e),this.isTesting=!1,this.adsMgr=t,this.nativePlacements=[],this.init()}return _createClass(e,[{key:"init",value:function(){}},{key:"createBanner",value:function(){MoPub&&MoPub.createBanner({adId:"f4e9cab2be16487cb9165d978e5e6aac",position:MoPub.AD_POSITION.BOTTOM_CENTER,autoShow:!0})}},{key:"prepareMoPub",value:function(){MoPub&&(console.log("calling fb ads"),MoPub.createBanner({adId:"169620700378180_170450423628541",position:MoPub.AD_POSITION.BOTTOM_CENTER,autoShow:!0},(function(e){console.log("success",e)}),(function(e){console.log("failed",e)})))}}]),e}();n("0+M4"),n.d(t,"a",(function(){return l}));var s,l=((s=function(){function e(t,n,r,i,s,l){_classCallCheck(this,e),this.http=t,this.admobFree=n,this.modalCtrl=r,this.storageManager=i,this.events=s,this.platform=l,this.shownAdsNumber=0,this.shownAdsNumberBackBtn=0,this.canShownAdsNumber=0,this.adsNeeded=!1,this.adMobIsActivated=!0,this.audienceNetwork=new o(this),this.mopubManager=new a(this),this.registerEvents(),this.platform.is("cordova")&&this.prepareBannerAd(),document.addEventListener("resume",this.onResume,!1),document.addEventListener("pause",this.onPause,!1),this.init();var u=this;document.addEventListener("onAdLoaded",(function(e){console.log("data ad ",e);var t=Object.assign({},e);"native"==t.adType&&u.audienceNetwork.presentNativeAd(t)})),document.addEventListener("admob.rewardvideo.events.REWARD",(function(e){"rewardvideo"==e.type&&console.log("reward data",e)})),document.addEventListener("admob.rewardvideo.events.REWARD",(function(e){"rewardvideo"==e.type&&console.log("reward data",e)})),document.addEventListener("admob.banner.events.LOAD_FAIL",(function(e){console.log("banner load fail",e)})),document.addEventListener("admob.interstitial.events.LOAD_FAIL",(function(e){console.log("interstitial load fail",e)})),document.addEventListener("admob.interstitial.events.LOAD",(function(e){console.log("interstitial loads",e)})),document.addEventListener("admob.interstitial.events.CLOSE",(function(e){console.log("interstitial close",e)}))}return _createClass(e,[{key:"registerEvents",value:function(){var e=this;this.events.subscribe("presentAd",(function(){e.showInterstitialAd()}))}},{key:"init",value:function(){var e=this;this.storageManager.get("canShownAdsNumber").then((function(t){null!=t&&(e.canShownAdsNumber=t)})),this.prepareInterstitialAd()}},{key:"onResume",value:function(){e.allowAd=!0,console.log("allow ad",e.allowAd)}},{key:"onPause",value:function(){e.allowAd=!1,console.log("allow ad",e.allowAd)}},{key:"prepare",value:function(){return!this.platform.is("cordova")||!this.adMobIsActivated||(this.admobFree.interstitial.config({isTesting:!1,autoShow:!0}),this.admobFree.banner.config({id:"ca-app-pub-4065002950885098/9199300731",isTesting:!1,autoShow:!0}),this.admobFree.banner.prepare().then((function(){})).catch((function(){console.log("banner err")})),void this.admobFree.interstitial.prepare().then((function(){console.log("advertisemnet please")})).catch((function(e){console.log(e),console.log("advertisment err")})))}},{key:"removeBannerAd",value:function(){if(!this.platform.is("cordova"))return!1;try{this.admobFree.banner.hide()}catch(e){}}},{key:"prepareInterstitialAd",value:function(){if(!this.platform.is("cordova"))return!1;var e;e=this.platform.is("ios")?{id:"ca-app-pub-4065002950885098/8617966673",isTesting:!1,autoShow:!1}:{id:"ca-app-pub-4065002950885098/9199300731",isTesting:!1,autoShow:!1},this.admobFree.interstitial.config(e),this.admobFree.interstitial.prepare().then((function(e){console.log("preparing interstitial ad",e)}))}},{key:"prepareBannerAd",value:function(){if(!this.platform.is("cordova"))return!1;var e;e=this.platform.is("ios")?{id:"ca-app-pub-4065002950885098/9969033832",isTesting:!1,bannerAtTop:!1,overlap:!1,autoShow:!1}:{id:"ca-app-pub-4065002950885098/7167062591",isTesting:!1,bannerAtTop:!1,overlap:!1,autoShow:!1},this.admobFree.banner.config(e),this.admobFree.banner.prepare().then((function(){console.log("advertisemnet please")})).catch((function(e){return console.log(e)}))}},{key:"prepareRewardAd",value:function(){if(!this.platform.is("cordova"))return!1;var e;e=this.platform.is("ios")?{id:"ca-app-pub-4065002950885098/5427153590",isTesting:!1,autoShow:!1}:{id:"ca-app-pub-4065002950885098/7988409426",isTesting:!1,autoShow:!1},this.admobFree.rewardVideo.config(e),this.admobFree.rewardVideo.prepare().then((function(e){console.log("ask for preparingdd reward ad",e)})).catch((function(e){console.log("we had an exepction ,",e)}))}},{key:"showRewardAd",value:function(){this.admobFree.rewardVideo.show().then((function(e){console.log("watch result is",e)}))}},{key:"isRewardAdReady",value:function(){return this.platform.is("cordova")?(this.admobFree.rewardVideo.isReady().then((function(e){console.log("is reward ready? ff",e)})).catch((function(e){console.log("reward ad is not ready because ",e)})),this.admobFree.rewardVideo.isReady()):new Promise((function(e){e(!1)}))}},{key:"setAdsNeeded",value:function(e){this.adsNeeded=e,this.shownAdsNumberBackBtn=0,this.prepareRewardAd(),this.prepareInterstitialAd()}},{key:"isAdsNeeded",value:function(){return this.adsNeeded}},{key:"isRewardAdsActive",value:function(){return!1}},{key:"showBannerAd",value:function(){return!!this.platform.is("cordova")&&(this.prepareBannerAd(),this.admobFree.banner.show().then((function(){console.log(" shownd ")})).catch((function(e){console.log(" error ",e)})),!0)}},{key:"showInterstitialAd",value:function(){return!this.adMobIsActivated||!!this.platform.is("cordova")&&!!this.allowAd()&&(this.shownAdsNumber++,e.adsTimePeriod=this.shownAdsNumber<6?60*this.shownAdsNumber+2:360,this.prepareInterstitialAd(),void this.admobFree.interstitial.show())}},{key:"showInterstitialAdAfterBack",value:function(){this.shownAdsNumberBackBtn<2&&(this.admobFree.interstitial.show(),this.shownAdsNumberBackBtn++,this.prepareInterstitialAd(),this.setAdsNeeded(!1))}},{key:"showInterstitialAdAfterClickOnQuizButton",value:function(){if(!this.platform.is("cordova")||!this.allowAd())return!1;this.prepareInterstitialAd(),this.admobFree.interstitial.show()}},{key:"allowAd",value:function(){return this.shownAdsNumber<this.canShownAdsNumber&&e.allowAd}},{key:"run",value:function(){}},{key:"showNativeAds",value:function(){this.audienceNetwork.prepareFacebookNativeAds()}}]),e}()).allowAd=!0,s.adsTimePeriod=90,s)},t68o:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("8Y7J"),i=n("s6ns"),o=n("SVse"),a=(n("QQfA"),n("IP0z"),n("zMNK")),s=(n("/HVE"),n("hOhj"),n("Xd0L"),n("cUpR"),n("5GAg")),l=r.qb({encapsulation:2,styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}@media (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"dialogContainer",definitions:[{type:0,name:"void, exit",styles:{type:6,styles:{opacity:0,transform:"scale(0.7)"},offset:null},options:void 0},{type:0,name:"enter",styles:{type:6,styles:{transform:"none"},offset:null},options:void 0},{type:1,expr:"* => enter",animation:{type:4,styles:{type:6,styles:{transform:"none",opacity:1},offset:null},timings:"150ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void, * => exit",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"75ms cubic-bezier(0.4, 0.0, 0.2, 1)"},options:null}],options:{}}]}});function u(e){return r.Nb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function c(e){return r.Nb(0,[r.Jb(402653184,1,{_portalOutlet:0}),(e()(),r.hb(16777216,null,null,1,null,u)),r.rb(2,212992,[[1,4]],0,a.b,[r.j,r.O],{portal:[0,"portal"]},null)],(function(e,t){e(t,2,0,"")}),null)}var h=r.ob("mat-dialog-container",i.f,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"mat-dialog-container",[["aria-modal","true"],["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@dialogContainer",0]],[["component","@dialogContainer.start"],["component","@dialogContainer.done"]],(function(e,t,n){var i=!0;return"component:@dialogContainer.start"===t&&(i=!1!==r.Eb(e,1)._onAnimationStart(n)&&i),"component:@dialogContainer.done"===t&&(i=!1!==r.Eb(e,1)._onAnimationDone(n)&&i),i}),c,l)),r.rb(1,49152,null,0,i.f,[r.k,s.a,r.h,[2,o.d],i.e],null,null)],null,(function(e,t){e(t,0,0,r.Eb(t,1)._id,r.Eb(t,1)._config.role,r.Eb(t,1)._config.ariaLabel?null:r.Eb(t,1)._ariaLabelledBy,r.Eb(t,1)._config.ariaLabel,r.Eb(t,1)._config.ariaDescribedBy||null,r.Eb(t,1)._state)}))}),{},{},[])},t8sF:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cordovaFileError={1:"NOT_FOUND_ERR",2:"SECURITY_ERR",3:"ABORT_ERR",4:"NOT_READABLE_ERR",5:"ENCODING_ERR",6:"NO_MODIFICATION_ALLOWED_ERR",7:"INVALID_STATE_ERR",8:"SYNTAX_ERR",9:"INVALID_MODIFICATION_ERR",10:"QUOTA_EXCEEDED_ERR",11:"TYPE_MISMATCH_ERR",12:"PATH_EXISTS_ERR",13:"WRONG_ENTRY_TYPE",14:"DIR_READ_ERR"},t}return Object(r.c)(t,e),t.prototype.getFreeDiskSpace=function(){var e=this;return function(){if(!0===Object(i.checkAvailability)(e))return Object(i.getPromise)((function(e,t){cordova.exec(e,t,"File","getFreeDiskSpace",[])}))}()},t.prototype.checkDir=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n)){if(/^\//.test(t)){var r=new FileError(5);return r.message="directory cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(e+t).then((function(){return!0}))}}()},t.prototype.createDir=function(e,t,n){var r=this;return function(){if(!0===Object(i.checkAvailability)(r)){if(/^\//.test(t)){var o=new FileError(5);return o.message="directory cannot start with /",Promise.reject(o)}var a={create:!0};return n||(a.exclusive=!0),r.resolveDirectoryUrl(e).then((function(e){return r.getDirectory(e,t,a)}))}}()},t.prototype.removeDir=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n)){if(/^\//.test(t)){var r=new FileError(5);return r.message="directory cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(e).then((function(e){return n.getDirectory(e,t,{create:!1})})).then((function(e){return n.remove(e)}))}}()},t.prototype.moveDir=function(e,t,n,r){var o=this;return function(){if(!0===Object(i.checkAvailability)(o)){if(/^\//.test(r=r||t)){var a=new FileError(5);return a.message="directory cannot start with /",Promise.reject(a)}return o.resolveDirectoryUrl(e).then((function(e){return o.getDirectory(e,t,{create:!1})})).then((function(e){return o.resolveDirectoryUrl(n).then((function(t){return o.move(e,t,r)}))}))}}()},t.prototype.copyDir=function(e,t,n,r){var o=this;return function(){if(!0===Object(i.checkAvailability)(o)){if(/^\//.test(r)){var a=new FileError(5);return a.message="directory cannot start with /",Promise.reject(a)}return o.resolveDirectoryUrl(e).then((function(e){return o.getDirectory(e,t,{create:!1})})).then((function(e){return o.resolveDirectoryUrl(n).then((function(t){return o.copy(e,t,r)}))}))}}()},t.prototype.listDir=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n)){if(/^\//.test(t)){var r=new FileError(5);return r.message="directory cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(e).then((function(e){return n.getDirectory(e,t,{create:!1,exclusive:!1})})).then((function(e){var t=e.createReader();return n.readEntries(t)}))}}()},t.prototype.removeRecursively=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n)){if(/^\//.test(t)){var r=new FileError(5);return r.message="directory cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(e).then((function(e){return n.getDirectory(e,t,{create:!1})})).then((function(e){return n.rimraf(e)}))}}()},t.prototype.checkFile=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n)){if(/^\//.test(t)){var r=new FileError(5);return r.message="file cannot start with /",Promise.reject(r)}return n.resolveLocalFilesystemUrl(e+t).then((function(e){if(e.isFile)return!0;var t=new FileError(13);return t.message="input is not a file",Promise.reject(t)}))}}()},t.prototype.createFile=function(e,t,n){var r=this;return function(){if(!0===Object(i.checkAvailability)(r)){if(/^\//.test(t)){var o=new FileError(5);return o.message="file-name cannot start with /",Promise.reject(o)}var a={create:!0};return n||(a.exclusive=!0),r.resolveDirectoryUrl(e).then((function(e){return r.getFile(e,t,a)}))}}()},t.prototype.removeFile=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n)){if(/^\//.test(t)){var r=new FileError(5);return r.message="file-name cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(e).then((function(e){return n.getFile(e,t,{create:!1})})).then((function(e){return n.remove(e)}))}}()},t.prototype.writeFile=function(e,t,n,r){var o=this;return void 0===r&&(r={}),function(){if(!0===Object(i.checkAvailability)(o)){if(/^\//.test(t)){var a=new FileError(5);return a.message="file-name cannot start with /",Promise.reject(a)}var s={create:!r.append,exclusive:!r.replace};return o.resolveDirectoryUrl(e).then((function(e){return o.getFile(e,t,s)})).then((function(e){return o.writeFileEntry(e,n,r)}))}}()},t.prototype.writeFileEntry=function(e,t,n){var r=this;return this.createWriter(e).then((function(e){return n.append&&e.seek(e.length),n.truncate&&e.truncate(n.truncate),r.write(e,t)})).then((function(){return e}))},t.prototype.writeExistingFile=function(e,t,n){var r=this;return function(){if(!0===Object(i.checkAvailability)(r))return r.writeFile(e,t,n,{replace:!0})}()},t.prototype.readAsText=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n))return n.readFile(e,t,"Text")}()},t.prototype.readAsDataURL=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n))return n.readFile(e,t,"DataURL")}()},t.prototype.readAsBinaryString=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n))return n.readFile(e,t,"BinaryString")}()},t.prototype.readAsArrayBuffer=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n))return n.readFile(e,t,"ArrayBuffer")}()},t.prototype.moveFile=function(e,t,n,r){var o=this;return function(){if(!0===Object(i.checkAvailability)(o)){if(/^\//.test(r=r||t)){var a=new FileError(5);return a.message="file name cannot start with /",Promise.reject(a)}return o.resolveDirectoryUrl(e).then((function(e){return o.getFile(e,t,{create:!1})})).then((function(e){return o.resolveDirectoryUrl(n).then((function(t){return o.move(e,t,r)}))}))}}()},t.prototype.copyFile=function(e,t,n,r){var o=this;return function(){if(!0===Object(i.checkAvailability)(o)){if(/^\//.test(r=r||t)){var a=new FileError(5);return a.message="file name cannot start with /",Promise.reject(a)}return o.resolveDirectoryUrl(e).then((function(e){return o.getFile(e,t,{create:!1})})).then((function(e){return o.resolveDirectoryUrl(n).then((function(t){return o.copy(e,t,r)}))}))}}()},t.prototype.fillErrorMessage=function(e){try{e.message=this.cordovaFileError[e.code]}catch(t){}},t.prototype.resolveLocalFilesystemUrl=function(e){var t=this;return function(){if(!0===Object(i.checkAvailability)(t))return Object(i.getPromise)((function(n,r){try{window.resolveLocalFileSystemURL(e,(function(e){n(e)}),(function(e){t.fillErrorMessage(e),r(e)}))}catch(i){t.fillErrorMessage(i),r(i)}}))}()},t.prototype.resolveDirectoryUrl=function(e){var t=this;return function(){if(!0===Object(i.checkAvailability)(t))return t.resolveLocalFilesystemUrl(e).then((function(e){if(e.isDirectory)return e;var t=new FileError(13);return t.message="input is not a directory",Promise.reject(t)}))}()},t.prototype.getDirectory=function(e,t,n){var r=this;return function(){if(!0===Object(i.checkAvailability)(r))return new Promise((function(i,o){try{e.getDirectory(t,n,(function(e){i(e)}),(function(e){r.fillErrorMessage(e),o(e)}))}catch(a){r.fillErrorMessage(a),o(a)}}))}()},t.prototype.getFile=function(e,t,n){var r=this;return function(){if(!0===Object(i.checkAvailability)(r))return new Promise((function(i,o){try{e.getFile(t,n,i,(function(e){r.fillErrorMessage(e),o(e)}))}catch(a){r.fillErrorMessage(a),o(a)}}))}()},t.prototype.readFile=function(e,t,n){var r=this;if(/^\//.test(t)){var o=new FileError(5);return o.message="file-name cannot start with /",Promise.reject(o)}return this.resolveDirectoryUrl(e).then((function(e){return r.getFile(e,t,{create:!1})})).then((function(e){var t=new FileReader;return Object(i.getPromise)((function(r,i){t.onloadend=function(){void 0!==t.result||null!==t.result?r(t.result):i(void 0!==t.error||null!==t.error?t.error:{code:null,message:"READER_ONLOADEND_ERR"})},e.file((function(e){t["readAs"+n].call(t,e)}),(function(e){i(e)}))}))}))},t.prototype.remove=function(e){var t=this;return new Promise((function(n,r){e.remove((function(){n({success:!0,fileRemoved:e})}),(function(e){t.fillErrorMessage(e),r(e)}))}))},t.prototype.move=function(e,t,n){var r=this;return new Promise((function(i,o){e.moveTo(t,n,(function(e){i(e)}),(function(e){r.fillErrorMessage(e),o(e)}))}))},t.prototype.copy=function(e,t,n){var r=this;return new Promise((function(i,o){e.copyTo(t,n,(function(e){i(e)}),(function(e){r.fillErrorMessage(e),o(e)}))}))},t.prototype.readEntries=function(e){var t=this;return new Promise((function(n,r){e.readEntries((function(e){n(e)}),(function(e){t.fillErrorMessage(e),r(e)}))}))},t.prototype.rimraf=function(e){var t=this;return new Promise((function(n,r){e.removeRecursively((function(){n({success:!0,fileRemoved:e})}),(function(e){t.fillErrorMessage(e),r(e)}))}))},t.prototype.createWriter=function(e){var t=this;return new Promise((function(n,r){e.createWriter((function(e){n(e)}),(function(e){t.fillErrorMessage(e),r(e)}))}))},t.prototype.write=function(e,t){return t instanceof Blob?this.writeFileInChunks(e,t):new Promise((function(n,r){e.onwriteend=function(t){e.error?r(e.error):n(t)},e.write(t)}))},t.prototype.writeFileInChunks=function(e,t){var n=0;function r(){var r=Math.min(1048576,t.size-n),i=t.slice(n,n+r);n+=r,e.write(i)}return Object(i.getPromise)((function(i,o){e.onerror=o,e.onwrite=function(){n<t.size?r():i()},r()}))},Object.defineProperty(t.prototype,"applicationDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"applicationDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"applicationDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"applicationStorageDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"applicationStorageDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"applicationStorageDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"dataDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"dataDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cacheDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"cacheDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"cacheDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"externalApplicationStorageDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"externalApplicationStorageDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"externalApplicationStorageDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"externalDataDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"externalDataDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"externalDataDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"externalCacheDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"externalCacheDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"externalCacheDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"externalRootDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"externalRootDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"externalRootDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tempDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"tempDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"tempDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"syncedDataDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"syncedDataDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"syncedDataDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"documentsDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"documentsDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"documentsDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sharedDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"sharedDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"sharedDirectory",e)},enumerable:!0,configurable:!0}),t.pluginName="File",t.plugin="cordova-plugin-file",t.pluginRef="cordova.file",t.repo="https://github.com/apache/cordova-plugin-file",t.platforms=["Android","Browser","iOS","macOS","Windows"],t}(i.IonicNativePlugin)},tAnt:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.localCount=0,this.subItems=[];var r=this;1==t.cloud?(this.title=t.collectionTitle,this.titleDe=t.collectionTitleDe,this.titleFa=t.collectionTitleFa,this.name=t.collectionName,this.type=t.collectionType,this.cost=t.collectionPrice,this.description=t.collectionDescription,this.descriptionDe=t.collectionDescriptionDe,this.descriptionFa=t.collectionDescriptionFa,this.lang=n,void 0!==t.collectionSubItems&&Object.keys(t.collectionSubItems).forEach((function(i){t.collectionSubItems[i].cloud=!0,r.subItems.push(new e(t.collectionSubItems[i],n))}))):(this.title=t.title,this.titleDe=t.titleDe,this.titleFa=t.titleFa,this.name=t.name,this.type=t.type,this.cost=t.cost,this.description=t.description,this.descriptionDe=t.descriptionDe,this.descriptionFa=t.descriptionFa,n&&(this.lang=n),this.lang=t.lang,void 0!==t.subItems&&Object.keys(t.subItems).forEach((function(n){r.subItems.push(new e(t.subItems[n]))}))),this.localCount=1}return _createClass(e,[{key:"getTitle",value:function(){var e;switch(this.lang){case"de":e=this.titleDe;break;case"fa":e=this.titleFa;break;case"en":e=this.title;break;default:e=this.titleFa}return e}},{key:"setLang",value:function(e){this.lang=e}},{key:"getDescription",value:function(){var e;switch(this.lang){case"de":e=this.descriptionDe;break;case"fa":e=this.descriptionFa;break;case"en":e=this.description}return e}},{key:"isDictionary",value:function(){return"dictionary"==this.type}}]),e}();return e.typeDictionary="dictionary",e.typeLeitner="leitner",e}()},tNMG:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return w})),n.d(t,"g",(function(){return x})),n.d(t,"h",(function(){return _})),n.d(t,"i",(function(){return S})),n.d(t,"j",(function(){return u}));var r=n("ePDZ"),i="ionViewWillEnter",o="ionViewDidEnter",a="ionViewWillLeave",s="ionViewDidLeave",l="ionViewWillUnload",u=function(e){return new Promise((function(t,n){Object(r.g)((function(){c(e),h(e).then((function(n){n.animation&&n.animation.destroy(),f(e),t(n)}),(function(t){f(e),n(t)}))}))}))},c=function(e){var t=e.enteringEl,n=e.leavingEl;O(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),S(t,!1),n&&S(n,!1)},h=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(t);case 2:return n=e.sent,e.abrupt("return",n&&r.a.isBrowser?p(n,t):v(t));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(e){var t=e.leavingEl;e.enteringEl.classList.remove("ion-page-invisible"),void 0!==t&&t.classList.remove("ion-page-invisible")},d=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.leavingEl||!t.animated||0===t.duration){e.next=16;break}if(!t.animationBuilder){e.next=5;break}e.t0=t.animationBuilder,e.next=15;break;case 5:if("ios"!==t.mode){e.next=11;break}return e.next=8,Promise.resolve().then(n.bind(null,"6cfT"));case 8:e.t1=e.sent.iosTransitionAnimation,e.next=14;break;case 11:return e.next=13,Promise.resolve().then(n.bind(null,"beh+"));case 13:e.t1=e.sent.mdTransitionAnimation;case 14:e.t0=e.t1;case 15:return e.abrupt("return",e.t0);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n){var r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(n,!0);case 2:return r=t(n.baseEl,n),b(n.enteringEl,n.leavingEl),e.next=6,y(r,n);case 6:return i=e.sent,e.abrupt("return",(n.progressCallback&&n.progressCallback(void 0),i&&k(n.enteringEl,n.leavingEl),{hasCompleted:i,animation:r}));case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),v=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.enteringEl,r=t.leavingEl,e.next=3,g(t,!1);case 3:return b(n,r),k(n,r),e.abrupt("return",{hasCompleted:!0});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(void 0!==t.deepWait?t.deepWait:n)?[w(t.enteringEl),w(t.leavingEl)]:[C(t.enteringEl),C(t.leavingEl)],e.next=3,Promise.all(r);case 3:return e.next=5,m(t.viewIsReady,t.enteringEl);case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),m=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t,!e.t0){e.next=4;break}return e.next=4,t(n);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),y=function(e,t){var n=t.progressCallback,r=new Promise((function(t){e.onFinish((function(e){return t(1===e)}))}));return n?(e.progressStart(!0),n(e)):e.play(),r},b=function(e,t){_(t,a),_(e,i)},k=function(e,t){_(e,o),_(t,s)},_=function(e,t){if(e){var n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},C=function(e){return e&&e.componentOnReady?e.componentOnReady():Promise.resolve()},w=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t)){e.next=12;break}if(e.t0=null!=n.componentOnReady,!e.t0){e.next=8;break}return e.next=6,n.componentOnReady();case 6:e.t1=e.sent,e.t0=null!=e.t1;case 8:if(!e.t0){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(Array.from(n.children).map(w));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(e,t){t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},O=function(e,t,n){void 0!==e&&(e.style.zIndex="back"===n?"99":"101"),void 0!==t&&(t.style.zIndex="100")},x=function(e){return e.classList.contains("ion-page")?e:e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||e}},uzCt:function(e,t,n){e.exports=function(){"use strict";function e(t){return e.result?e.result:t&&"function"==typeof t.getSerializer?e.result=t.getSerializer():Promise.reject(new Error("localforage.getSerializer() was not available! localforage v1.4+ is required!"))}function t(e,n){return(t.result=t.result||{})[n]?t.result[n]:e&&"function"==typeof e.getDriver?t.result[n]=e.getDriver(n):Promise.reject(new Error("localforage.getDriver() was not available! localforage v1.4+ is required!"))}function n(e){return t(e,e.WEBSQL)}var r=new Promise((function(e,t){"undefined"!=typeof sqlitePlugin?e():"undefined"==typeof cordova?t(new Error("cordova is not defined.")):document.addEventListener("deviceready",(function(){return e()}),!1)})).catch((function(){return Promise.resolve()}));function i(){return r.then((function(){if("undefined"!=typeof sqlitePlugin&&"function"==typeof sqlitePlugin.openDatabase)return sqlitePlugin.openDatabase;throw new Error("SQLite plugin is not present.")}))}var o={_driver:"cordovaSQLiteDriver",_initStorage:function(t){var r=this,o={db:null};if(t)for(var a in t)o[a]="string"!=typeof t[a]?t[a].toString():t[a];var s=i().then((function(e){return new Promise((function(t,n){try{o.location=o.location||"default",o.db=e({name:o.name,version:String(o.version),description:o.description,size:o.size,key:o.dbKey,location:o.location})}catch(i){n(i)}o.db.transaction((function(e){e.executeSql("CREATE TABLE IF NOT EXISTS "+o.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],(function(){r._dbInfo=o,t()}),(function(e,t){n(t)}))}))}))})),l=e(r),u=n(r);return Promise.all([l,u,s]).then((function(e){return o.serializer=e[0],s}))},_support:function(){return i().then((function(e){return!!e})).catch((function(){return!1}))}};return function(e){var t=["clear","getItem","iterate","key","keys","length","removeItem","setItem"];function r(e,t){e[t]=function(){var e=this,r=arguments;return n(e).then((function(n){return n[t].apply(e,r)}))}}for(var i=0,o=t.length;i<o;i++)r(e,t[i])}(o),o}()},vkgz:function(e,t,n){"use strict";var r=n("7o/Q");function i(){}var o=n("n6bG");function a(e,t,n){return function(r){return r.lift(new s(e,t,n))}}n.d(t,"a",(function(){return a}));var s=function(){function e(t,n,r){_classCallCheck(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,a,s){var l;return _classCallCheck(this,n),(l=t.call(this,e))._tapNext=i,l._tapError=i,l._tapComplete=i,l._tapError=a||i,l._tapComplete=s||i,Object(o.a)(r)?(l._context=_assertThisInitialized(l),l._tapNext=r):r&&(l._context=r,l._tapNext=r.next||i,l._tapError=r.error||i,l._tapComplete=r.complete||i),l}return _createClass(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(r.a)},w1tV:function(e,t,n){"use strict";var r=n("XNiG"),i=n("HDdC"),o=n("7o/Q"),a=n("quSY");function s(){return function(e){return e.lift(new u(e))}}var l,u=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new c(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(o.a),h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return _createClass(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new a.a).add(this.source.subscribe(new d(this.getSubject(),this))),e.closed&&(this._connection=null,e=a.a.EMPTY)),e}},{key:"refCount",value:function(){return s()(this)}}]),n}(i.a),f={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(l=h.prototype)._subscribe},_isComplete:{value:l._isComplete,writable:!0},getSubject:{value:l.getSubject},connect:{value:l.connect},refCount:{value:l.refCount}},d=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(r.b);function p(){return new r.a}function v(){return function(e){return s()((t=p,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,f);return r.source=e,r.subjectFactory=n,r})(e));var t}}n.d(t,"a",(function(){return v}))},wZ9J:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("o/Pg"),i=(n("/qZA"),n("z0vp"),n("kbZ1")),o=function(){function e(t,n,r){_classCallCheck(this,e),this.socketsMgr=t,this.membersDatabaseMgr=n,this.injector=r,this.actionSyncMembers="syncMembers",this.actionJoinChat="joinChat",this.members=[],this.itemsManager=this.injector.get(i.a),this.init()}return _createClass(e,[{key:"init",value:function(){}},{key:"getMembers",value:function(e){var t=this;console.log("hi Im in getMembers:",e),this.membersDatabaseMgr.getMembers(e).then((function(t){e.members=t,console.log(" chat.members in getMembers :",e.members)})).then((function(){t.sync(e)}))}},{key:"getMeAsMember",value:function(e){var t=this;return new Promise((function(n,r){t.membersDatabaseMgr.getMeAsMember(e,t.itemsManager.userManager.user).then((function(t){t&&e.members.push(t),n(e)}))}))}},{key:"getAdmins",value:function(e){return this.membersDatabaseMgr.getAdmins(e)}},{key:"addMember",value:function(e,t){this.membersDatabaseMgr.add(e,t)}},{key:"removeMember",value:function(e,t){this.membersDatabaseMgr.remove(e,t)}},{key:"join",value:function(e){var t=this;this.socketsMgr.asyncQuery(this.actionJoinChat,{chat:e.getSimpleModel()}).then((function(n){if(n.isAllowed()){var i=new r.a(t.socketsMgr.userManager.user);t.itemsManager.items.push(e.item),t.itemsManager.backUpitems.push(e.item),e.members.push(i);var o=t.itemsManager.publicItems.indexOf(e.item);t.itemsManager.publicItems.splice(o,1),t.addMember(i,e),t.itemsManager.add(e.item)}}))}},{key:"sync",value:function(e){var t=this;console.log("Hi Im in sync"),this.socketsMgr.asyncQuery(this.actionSyncMembers,{chatID:e.chatID,localMembersIDs:e.getMemberIDs()}).then((function(n){if(n.isAllowed()){var i=n.getParam("created");console.log(" newMembersData = result.getParam(created):",i);var o=n.getParam("deleted");console.log(" deletedMembersData = result.getParam(deleted):",o);var a,s=_createForOfIteratorHelper(i);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=new r.a(l);e.members.push(u),t.membersDatabaseMgr.add(u,e)}}catch(c){s.e(c)}finally{s.f()}}}))}}]),e}()},ws0j:function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return a}));var r,i=n("ePDZ"),o=function(e){return s(e)},a=function(e,t){return"string"==typeof e&&(t=e,e=void 0),o(e).includes(t)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if(void 0===e)return[];e.Ionic=e.Ionic||{};var t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=l(e)).forEach((function(t){return e.document.documentElement.classList.add("plt-"+t)})),t},l=function(e){return Object.keys(m).filter((function(t){return m[t](e)}))},u=function(e){return!!v(e,/iPad/i)||!(!v(e,/Macintosh/i)||!h(e))},c=function(e){return v(e,/android|sink/i)},h=function(e){return g(e,"(any-pointer:coarse)")},f=function(e){return d(e)||p(e)},d=function(e){return!!(e.cordova||e.phonegap||e.PhoneGap)},p=function(e){var t=e.Capacitor;return!(!t||!t.isNative)},v=function(e,t){return t.test(e.navigator.userAgent)},g=function(e,t){return e.matchMedia(t).matches},m={ipad:u,iphone:function(e){return v(e,/iPhone/i)},ios:function(e){return v(e,/iPhone|iPod/i)||u(e)},android:c,phablet:function(e){var t=e.innerWidth,n=e.innerHeight,r=Math.min(t,n),i=Math.max(t,n);return r>390&&r<520&&i>620&&i<800},tablet:function(e){var t=e.innerWidth,n=e.innerHeight,r=Math.min(t,n),i=Math.max(t,n);return u(e)||function(e){return c(e)&&!v(e,/mobile/i)}(e)||r>460&&r<820&&i>780&&i<1400},cordova:d,capacitor:p,electron:function(e){return v(e,/electron/i)},pwa:function(e){return!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone)},mobile:h,mobileweb:function(e){return h(e)&&!f(e)},desktop:function(e){return!h(e)},hybrid:f},y=new(function(){function e(){_classCallCheck(this,e),this.m=new Map}return _createClass(e,[{key:"reset",value:function(e){this.m=new Map(Object.entries(e))}},{key:"get",value:function(e,t){var n=this.m.get(e);return void 0!==n?n:t}},{key:"getBoolean",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}},{key:"getNumber",value:function(e,t){var n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}},{key:"set",value:function(e,t){this.m.set(e,t)}}]),e}()),b=function(e){return e&&Object(i.k)(e)||r},k=function(){var e=document,t=window,n=t.Ionic=t.Ionic||{};s(t);var o=Object.assign(Object.assign(Object.assign(Object.assign({},function(e){try{var t=e.sessionStorage.getItem("ionic-persist-config");return null!==t?JSON.parse(t):{}}catch(n){return{}}}(t)),{persistConfig:!1}),n.config),function(e){var t={};return e.location.search.slice(1).split("&").map((function(e){return e.split("=")})).map((function(e){var t=_slicedToArray(e,2),n=t[0],r=t[1];return[decodeURIComponent(n),decodeURIComponent(r)]})).filter((function(e){return"ionic:"===_slicedToArray(e,1)[0].substr(0,"ionic:".length)})).map((function(e){var t=_slicedToArray(e,2),n=t[0],r=t[1];return[n.slice("ionic:".length),r]})).forEach((function(e){var n=_slicedToArray(e,2),r=n[0],i=n[1];t[r]=i})),t}(t));y.reset(o),y.getBoolean("persistConfig")&&function(e,t){try{e.sessionStorage.setItem("ionic-persist-config",JSON.stringify(t))}catch(n){return}}(t,o),n.config=y,n.mode=r=y.get("mode",e.documentElement.getAttribute("mode")||(a(t,"ios")?"ios":"md")),y.set("mode",r),e.documentElement.setAttribute("mode",r),e.documentElement.classList.add(r),y.getBoolean("_testing")&&y.set("animated",!1);var l=function(e){return e.tagName&&e.tagName.startsWith("ION-")},u=function(e){return["ios","md"].includes(e)};Object(i.r)((function(e){for(;e;){var t=e.mode||e.getAttribute("mode");if(t){if(u(t))return t;l(e)&&console.warn('Invalid ionic mode: "'+t+'", expected: "ios" or "md"')}e=e.parentElement}return r}))}},"x/Nk":function(e,t,n){"use strict";n.r(t),n.d(t,"MENU_BACK_BUTTON_PRIORITY",(function(){return o})),n.d(t,"OVERLAY_BACK_BUTTON_PRIORITY",(function(){return i})),n.d(t,"startHardwareBackButton",(function(){return r}));var r=function(){var e=document,t=!1;e.addEventListener("backbutton",(function(){if(!t){var n=0,r=[],i=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register:function(e,t){r.push({priority:e,handler:t,id:n++})}}});e.dispatchEvent(i);!function e(){if(r.length>0){var n={priority:Number.MIN_SAFE_INTEGER,handler:function(){},id:-1};r.forEach((function(e){e.priority>=n.priority&&(n=e)})),t=!0,r=r.filter((function(e){return e.id!==n.id})),(i=_asyncToGenerator(regeneratorRuntime.mark((function t(n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n||!n.handler){t.next=7;break}if(r=n.handler(e),t.t0=null!=r,!t.t0){t.next=7;break}return t.next=7,r;case 7:t.next=12;break;case 9:t.prev=9,t.t1=t.catch(0),console.error(t.t1);case 12:case"end":return t.stop()}}),t,null,[[0,9]])}))),function(e){return i.apply(this,arguments)})(n).then((function(){return t=!1}))}var i}()}}))},i=100,o=99},xNyf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function e(t){_classCallCheck(this,e),this.http=t,console.log("Hello MessagesManagerProvider Provider"),this.messages=[]}},xSm1:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("KOl+");function i(e,t,n,i){return Object(r.d)(e,t,n).apply(this,i)}},xbPD:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.defaultValue))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(r.a)},xgBC:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return l}));var r=n("8Y7J"),i=n("oAJy"),o=n("uzCt"),a=function(){function e(t){var n=this;_classCallCheck(this,e),this._driver=null,this._dbPromise=new Promise((function(e,r){var a,s=Object.assign({name:"_ionicstorage",storeName:"_ionickv",dbKey:"_ionickey",driverOrder:["sqlite","indexeddb","websql","localstorage"]},t||{});Object(i.defineDriver)(o).then((function(){a=Object(i.createInstance)(s)})).then((function(){return a.setDriver(n._getDriverOrder(s.driverOrder))})).then((function(){n._driver=a.driver(),e(a)})).catch((function(e){return r(e)}))}))}return _createClass(e,[{key:"ready",value:function(){return this._dbPromise}},{key:"_getDriverOrder",value:function(e){return e.map((function(e){switch(e){case"sqlite":return o._driver;case"indexeddb":return i.INDEXEDDB;case"websql":return i.WEBSQL;case"localstorage":return i.LOCALSTORAGE}}))}},{key:"get",value:function(e){return this._dbPromise.then((function(t){return t.getItem(e)}))}},{key:"set",value:function(e,t){return this._dbPromise.then((function(n){return n.setItem(e,t)}))}},{key:"remove",value:function(e){return this._dbPromise.then((function(t){return t.removeItem(e)}))}},{key:"clear",value:function(){return this._dbPromise.then((function(e){return e.clear()}))}},{key:"length",value:function(){return this._dbPromise.then((function(e){return e.length()}))}},{key:"keys",value:function(){return this._dbPromise.then((function(e){return e.keys()}))}},{key:"forEach",value:function(e){return this._dbPromise.then((function(t){return t.iterate(e)}))}},{key:"driver",get:function(){return this._driver}}]),e}(),s=new r.o("STORAGE_CONFIG_TOKEN");function l(e){return new a(e||{name:"_ionicstorage",storeName:"_ionickv",dbKey:"_ionickey",driverOrder:["sqlite","indexeddb","websql","localstorage"]})}var u=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{ngModule:e,providers:[{provide:s,useValue:t},{provide:a,useFactory:l,deps:[s]}]}}}]),e}()},xgIS:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("HDdC"),i=n("DH7j"),o=n("n6bG"),a=n("lJxs");function s(e,t,n,l){return Object(o.a)(n)&&(l=n,n=void 0),l?s(e,t,n).pipe(Object(a.a)((function(e){return Object(i.a)(e)?l.apply(void 0,_toConsumableArray(e)):l(e)}))):new r.a((function(r){!function e(t,n,r,i,o){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var s=t;t.addEventListener(n,r,o),a=function(){return s.removeEventListener(n,r,o)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var l=t;t.on(n,r),a=function(){return l.off(n,r)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var u=t;t.addListener(n,r),a=function(){return u.removeListener(n,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var c=0,h=t.length;c<h;c++)e(t[c],n,r,i,o)}i.add(a)}(e,t,(function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),r,n)}))}},xijw:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(t){_classCallCheck(this,e),this.verb=t.verb,this.infinitive=t.infinitive,this.person=t.person,this.form=t.form}return _createClass(e,[{key:"isPresent",value:function(){return"present"==this.form}},{key:"isPlusPerfect",value:function(){return"plustPerfect"==this.form}},{key:"isConditional",value:function(){return"conditional"==this.form}},{key:"isPerfect",value:function(){return"perfect"==this.form}},{key:"isPast",value:function(){return"past"==this.form}},{key:"isFuture",value:function(){return"future"==this.form}},{key:"isImprative",value:function(){return"imperative"==this.form}}]),e}()},xoVG:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("mrSG"),i=n("a3Cf"),o=n("VRyK"),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.Connection={UNKNOWN:"unknown",ETHERNET:"ethernet",WIFI:"wifi",CELL_2G:"2g",CELL_3G:"3g",CELL_4G:"4g",CELL:"cellular",NONE:"none"},t}return Object(r.c)(t,e),t.prototype.onChange=function(){var e=this;return function(){if(!0===Object(i.checkAvailability)(e))return Object(o.a)(e.onConnect(),e.onDisconnect())}()},t.prototype.onDisconnect=function(){return Object(i.cordova)(this,"onDisconnect",{eventObservable:!0,event:"offline",element:"document"},arguments)},t.prototype.onConnect=function(){return Object(i.cordova)(this,"onConnect",{eventObservable:!0,event:"online",element:"document"},arguments)},Object.defineProperty(t.prototype,"type",{get:function(){return Object(i.cordovaPropertyGet)(this,"type")},set:function(e){Object(i.cordovaPropertySet)(this,"type",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"downlinkMax",{get:function(){return Object(i.cordovaPropertyGet)(this,"downlinkMax")},set:function(e){Object(i.cordovaPropertySet)(this,"downlinkMax",e)},enumerable:!0,configurable:!0}),t.pluginName="Network",t.plugin="cordova-plugin-network-information",t.pluginRef="navigator.connection",t.repo="https://github.com/apache/cordova-plugin-network-information",t.platforms=["Amazon Fire OS","Android","Browser","iOS","Windows"],t}(i.IonicNativePlugin)},xq9V:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n("GAbP"),n("33wr"),n("PJj0");var r=n("AjPc"),i=function(){function e(t,n,r,i,o){_classCallCheck(this,e),this.http=t,this.spaceRepDatabaseMgr=n,this.localNotificationMgr=r,this.platform=i,this.databaseManager=o,console.log("Hello SpaceRepetitionManagerProvider Provider")}return _createClass(e,[{key:"easy",value:function(e,t){var n=this;if(!this.platform.is("cordova"))return!1;this.calculateSuperMemo2Algorithm(e,5),this.databaseManager.updateMessageReview(t,e).then((function(){n.localNotificationMgr.updateLeitnerNotificationsSchedule()}))}},{key:"medium",value:function(e,t){var n=this;if(!this.platform.is("cordova"))return!1;this.calculateSuperMemo2Algorithm(e,3),this.databaseManager.updateMessageReview(t,e).then((function(){n.localNotificationMgr.updateLeitnerNotificationsSchedule()}))}},{key:"hard",value:function(e,t){var n=this;if(!this.platform.is("cordova"))return!1;this.calculateSuperMemo2Algorithm(e,1),this.databaseManager.updateMessageReview(t,e).then((function(){n.localNotificationMgr.updateLeitnerNotificationsSchedule()}))}},{key:"calculateSuperMemo2Algorithm",value:function(e,t){if(t<0||t>5)throw"error here or ensure elsewhere that quality is always within 0-5";var n=e.getRepetitions(),i=e.getEasinessFactor(),o=e.getInterval();i=Math.max(1.3,i+.1-(5-t)*(.08+.02*(5-t))),e.setEasinessFactor(i),t<3?(e.setRepetitions(0),n=0):(n+=1,e.setRepetitions(n)),o=this.getIntervalByRepetitions(e.repetittion,e.easinessFactor),console.log("card interval",o,"easiness",i);var a=new Date(e.reviewTime);a.setDate((new Date).getDate()+o),console.log("setting this time string",r.d.getTimeString(a)),e.setLastReviewedTime(e.reviewTime),e.setReviewTime(r.d.getTimeString(a))}},{key:"getIntervalByRepetitions",value:function(e,t){var n=1;return e<=1?n=1:2==e?n=6:e>2&&(n=Math.round(this.getIntervalByRepetitions(e-1,t)*t)),n}}]),e}()},yCtX:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("HDdC"),i=n("ngJS"),o=n("jZKg");function a(e,t){return t?Object(o.a)(e,t):new r.a(Object(i.a)(e))}},yLV6:function(e,t,n){var r;!function(i,o,a,s){"use strict";var l,u=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),h=Math.round,f=Math.abs,d=Date.now;function p(e,t,n){return setTimeout(_(e,n),t)}function v(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function m(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var y=m((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&void 0===e[r[i]])&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),b=m((function(e,t){return y(e,t,!0)}),"merge","Use `assign`.");function k(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&l(r,n)}function _(e,t){return function(){return e.apply(t,arguments)}}function C(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function w(e,t){return void 0===e?t:e}function S(e,t,n){g(T(t),(function(t){e.addEventListener(t,n,!1)}))}function O(e,t,n){g(T(t),(function(t){e.removeEventListener(t,n,!1)}))}function x(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function E(e,t){return e.indexOf(t)>-1}function T(e){return e.trim().split(/\s+/g)}function M(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function A(e){return Array.prototype.slice.call(e,0)}function I(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];M(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function P(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o<u.length;){if((r=(n=u[o])?n+i:t)in e)return r;o++}}var D=1;function N(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}var j="ontouchstart"in i,R=void 0!==P(i,"PointerEvent"),L=j&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),F=["x","y"],B=["clientX","clientY"];function V(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){C(e.options.enable,[e])&&n.handler(t)},this.init()}function H(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&t&&r-i==0,a=12&t&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=z(t)),i>1&&!n.firstMultiple?n.firstMultiple=z(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=t.center=$(r);t.timeStamp=d(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=G(s,l),t.distance=W(s,l),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=U(t.deltaX,t.deltaY);var u,c,h=q(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=h.x,t.overallVelocityY=h.y,t.overallVelocity=f(h.x)>f(h.y)?h.x:h.y,t.scale=a?(u=a.pointers,W((c=r)[0],c[1],B)/W(u[0],u[1],B)):1,t.rotation=a?function(e,t){return G(t[1],t[0],B)+G(e[1],e[0],B)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,a=e.lastInterval||t,s=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(s>25||void 0===a.velocity)){var l=t.deltaX-a.deltaX,u=t.deltaY-a.deltaY,c=q(s,l,u);r=c.x,i=c.y,n=f(c.x)>f(c.y)?c.x:c.y,o=U(l,u),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var p=e.element;x(t.srcEvent.target,p)&&(p=t.srcEvent.target),t.target=p}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function z(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:t,center:$(t),deltaX:e.deltaX,deltaY:e.deltaY}}function $(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:h(n/t),y:h(r/t)}}function q(e,t,n){return{x:t/e||0,y:n/e||0}}function U(e,t){return e===t?1:f(e)>=f(t)?e<0?2:4:t<0?8:16}function W(e,t,n){n||(n=F);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function G(e,t,n){return n||(n=F),180*Math.atan2(t[n[1]]-e[n[1]],t[n[0]]-e[n[0]])/Math.PI}V.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(N(this.element),this.evWin,this.domHandler)}};var X={mousedown:1,mousemove:2,mouseup:4};function J(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,V.apply(this,arguments)}k(J,V,{handler:function(e){var t=X[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var Q={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Z={2:"touch",3:"pen",4:"mouse",5:"kinect"},Y="pointerdown",K="pointermove pointerup pointercancel";function ee(){this.evEl=Y,this.evWin=K,V.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(Y="MSPointerDown",K="MSPointerMove MSPointerUp MSPointerCancel"),k(ee,V,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=Q[r],o=Z[e.pointerType]||e.pointerType,a="touch"==o,s=M(t,e.pointerId,"pointerId");1&i&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var te={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ne(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,V.apply(this,arguments)}function re(e,t){var n=A(e.touches),r=A(e.changedTouches);return 12&t&&(n=I(n.concat(r),"identifier",!0)),[n,r]}k(ne,V,{handler:function(e){var t=te[e.type];if(1===t&&(this.started=!0),this.started){var n=re.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var ie={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function oe(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},V.apply(this,arguments)}function ae(e,t){var n=A(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=A(e.changedTouches),s=[],l=this.target;if(o=n.filter((function(e){return x(e.target,l)})),1===t)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),12&t&&delete r[a[i].identifier],i++;return s.length?[I(o.concat(s),"identifier",!0),s]:void 0}function se(){V.apply(this,arguments);var e=_(this.handler,this);this.touch=new oe(this.manager,e),this.mouse=new J(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function le(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ue.call(this,t)):12&e&&ue.call(this,t)}function ue(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function ce(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}k(oe,V,{handler:function(e){var t=ie[e.type],n=ae.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}),k(se,V,{handler:function(e,t,n){var r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)le.call(this,t,n);else if(r&&ce.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var he=P(c.style,"touchAction"),fe=void 0!==he,de=function(){if(!fe)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||i.CSS.supports("touch-action",n)})),e}();function pe(e,t){this.manager=e,this.set(t)}function ve(e){this.options=l({},this.defaults,e||{}),this.id=D++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function ge(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function me(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ye(e,t){var n=t.manager;return n?n.get(e):e}function be(){ve.apply(this,arguments)}function ke(){be.apply(this,arguments),this.pX=null,this.pY=null}function _e(){be.apply(this,arguments)}function Ce(){ve.apply(this,arguments),this._timer=null,this._input=null}function we(){be.apply(this,arguments)}function Se(){be.apply(this,arguments)}function Oe(){ve.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function xe(e,t){return(t=t||{}).recognizers=w(t.recognizers,xe.defaults.preset),new Ee(e,t)}function Ee(e,t){var n;this.options=l({},xe.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(R?ee:L?oe:j?se:J))(n,H),this.touchAction=new pe(this,this.options.touchAction),Te(this,!0),g(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Te(e,t){var n,r=e.element;r.style&&(g(e.options.cssProps,(function(i,o){n=P(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}pe.prototype={set:function(e){"compute"==e&&(e=this.compute()),fe&&this.manager.element.style&&de[e]&&(this.manager.element.style[he]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return g(this.manager.recognizers,(function(t){C(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(E(e,"none"))return"none";var t=E(e,"pan-x"),n=E(e,"pan-y");return t&&n?"none":t||n?t?"pan-x":"pan-y":E(e,"manipulation")?"manipulation":"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=E(r,"none")&&!de.none,o=E(r,"pan-y")&&!de["pan-y"],a=E(r,"pan-x")&&!de["pan-x"];if(i&&1===e.pointers.length&&e.distance<2&&e.deltaTime<250)return;if(!a||!o)return i||o&&6&n||a&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}},ve.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(v(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=ye(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return v(e,"dropRecognizeWith",this)||(e=ye(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(v(e,"requireFailure",this))return this;var t=this.requireFail;return-1===M(t,e=ye(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(v(e,"dropRequireFailure",this))return this;e=ye(e,this);var t=M(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+ge(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+ge(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!C(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},k(be,ve,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:32}}),k(ke,be,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push("pan-y"),24&e&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(6&t.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return be.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=me(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),k(_e,be,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){1!==e.scale&&(e.additionalEvent=this.options.event+(e.scale<1?"in":"out")),this._super.emit.call(this,e)}}),k(Ce,ve,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),k(we,be,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),k(Se,be,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return ke.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&f(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=me(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),k(Oe,ve,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||W(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=p((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),xe.VERSION="2.0.7",xe.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[we,{enable:!1}],[_e,{enable:!1},["rotate"]],[Se,{direction:6}],[ke,{direction:6},["swipe"]],[Oe],[Oe,{event:"doubletap",taps:2},["tap"]],[Ce]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Ee.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof ve)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(v(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(v(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=M(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return g(T(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(void 0!==e){var n=this.handlers;return g(T(e),(function(e){t?n[e]&&n[e].splice(M(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=o.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&Te(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(xe,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Ee,Input:V,TouchAction:pe,TouchInput:oe,MouseInput:J,PointerEventInput:ee,TouchMouseInput:se,SingleTouchInput:ne,Recognizer:ve,AttrRecognizer:be,Tap:Oe,Pan:ke,Swipe:Se,Pinch:_e,Rotate:we,Press:Ce,on:S,off:O,each:g,merge:b,extend:y,assign:l,inherit:k,bindFn:_,prefixed:P}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=xe,void 0===(r=(function(){return xe}).call(t,n,t,e))||(e.exports=r)}(window,document)},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return r}))},z0vp:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("GAbP");n("6GXZ"),n("2IJ5");var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,r,i,o)).sqlite=e,a.consoleDialog=r,a.injector=i,a.platform=o,a.init().then((function(){console.log("Im in createMembersTable"),a.createMembersTable()})),a}return _createClass(n,[{key:"add",value:function(e,t){var n='INSERT INTO members (chatID,userID,role,name,email) SELECT "'+t.chatID+'","'+e.userID+'","'+e.role+'","'+e.name+'","'+e.email+'" ';n+="where NOT EXISTS(SELECT 1 FROM members WHERE chatID = '"+t.chatID+"' AND userID = '"+e.userID+"')",console.log("member is:",e),console.log("chat is :",t),console.log("sqlString is:",n),this.databaseObj.executeSql(n).then((function(){console.log("member has beend added successfully")})).catch((function(e){console.log(" there was an error adding member to database",e)}))}},{key:"remove",value:function(e,t){this.databaseObj.executeSql('DELETE from members where chatID = "'+t.chatID+'" AND userID ="'+e.userID+'"').then((function(){console.log("member has beend removed successfully")})).catch((function(e){console.log(" there was an error removing member from database",e)}))}},{key:"getMembers",value:function(e){var t=this;return new Promise((function(e){t.platform.is("cordova")?t.init().then((function(){console.log("in else getmembers")})):e([])}))}},{key:"getMeAsMember",value:function(e,t){var n=this;return new Promise((function(e){n.init().then((function(){}))}))}},{key:"getAdmins",value:function(e){var t=this;return new Promise((function(e){t.init().then((function(){}))}))}},{key:"init",value:function(){var e=this;return new Promise((function(t){null!=e.databaseObj?(console.log(" if(this.databaseObj != undefined)"),t(e.databaseObj)):_get(_getPrototypeOf(n.prototype),"init",e).call(e,e.userManager.user).then((function(e){console.log(" else->if(this.databaseObj != undefined)"),t(e)}))}))}},{key:"createMembersTable",value:function(){console.log("Im in createMembersTable()"),this.databaseObj.executeSql("create table IF NOT EXISTS members \n (chatID VARCHAR(32),userID VARCHAR(32),role VARCHAR(32),name VARCHAR(32),email VARCHAR(32) )",[]).then((function(){console.log("created table of members SQL")})).catch((function(e){console.log(e)}))}}]),n}(r.a)},z6cu:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("HDdC");function i(e,t){return new r.a(t?function(n){return t.schedule(o,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function o(e){var t=e.error;e.subscriber.error(t)}},zI0Y:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("sUqe"),i=function(){function e(t){_classCallCheck(this,e),this.plusRate=0,this.minusRate=0,null!=t.plusRate&&(this.plusRate=t.plusRate,this.id=t.id,this.wordID=t.wordID,this.minusRate=t.minusRate),null!=t.userID&&(this.userID=t.userID),null!=t.disliked&&(this.disliked=t.disliked),null!=t.liked&&(this.disliked=t.liked),this.word=t.word,this.related=1==parseInt(t.related),this.translation=t.translation,"1"!=t.hasProposition&&1!=t.hasProposition||(this.hasProposition=!0)}return _createClass(e,[{key:"setUserID",value:function(e){this.userID=e}},{key:"setWordType",value:function(e){this.wordType=e}},{key:"setMessageID",value:function(e){this.messageID=e}},{key:"setLanguage",value:function(e){this.wordLanguage=e}}],[{key:"possibleTypes",get:function(){return r.i}}]),e}()},zMNK:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return h})),n.d(t,"e",(function(){return f}));var r=n("8Y7J");function i(){throw Error("Host already has a portal attached")}var o=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&i(),this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this)).component=e,a.viewContainerRef=r,a.injector=i,a.componentFactoryResolver=o,a}return n}(o),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=r,o.context=i,o}return _createClass(n,[{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(o),l=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&i(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof a?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof s?(this._attachedPortal=e,this.attachTemplatePortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this)).outletElement=e,a._componentFactoryResolver=r,a._appRef=i,a._defaultInjector=o,a}return _createClass(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(r,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn((function(){return t.destroy()}))):(t=r.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn((function(){n._appRef.detachView(t.hostView),t.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,r=n.createEmbeddedView(e.templateRef,e.context);return r.detectChanges(),r.rootNodes.forEach((function(e){return t.outletElement.appendChild(e)})),this.setDisposeFn((function(){var e=n.indexOf(r);-1!==e&&n.remove(e)})),r}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(l),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var o;return _classCallCheck(this,n),(o=t.call(this))._componentFactoryResolver=e,o._viewContainerRef=i,o._isInitialized=!1,o.attached=new r.m,o}return _createClass(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=t.createComponent(r,t.length,e.injector||t.injector);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,(function(){return i.destroy()})),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,(function(){return t._viewContainerRef.clear()})),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),e&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(l),h=function e(){_classCallCheck(this,e)},f=function(){function e(t,n){_classCallCheck(this,e),this._parentInjector=t,this._customTokens=n}return _createClass(e,[{key:"get",value:function(e,t){var n=this._customTokens.get(e);return void 0!==n?n:this._parentInjector.get(e,t)}}]),e}()},zUnb:function(e,t,n){"use strict";n.r(t),n("yLV6");var r=n("8Y7J"),i=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";_classCallCheck(this,e),this.http=t,this.prefix=n,this.suffix=r}return _createClass(e,[{key:"getTranslation",value:function(e){return this.http.get("".concat(this.prefix).concat(e).concat(this.suffix))}}]),e}();function o(e){return new i(e,"./assets/i18n/",".json")}var a=function e(){_classCallCheck(this,e)},s=n("p74H"),l=n("mrSG"),u=n("a3Cf"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.c)(t,e),t.prototype.show=function(){return Object(u.cordova)(this,"show",{sync:!0},arguments)},t.prototype.hide=function(){return Object(u.cordova)(this,"hide",{sync:!0},arguments)},t.pluginName="SplashScreen",t.plugin="cordova-plugin-splashscreen",t.pluginRef="navigator.splashscreen",t.repo="https://github.com/apache/cordova-plugin-splashscreen",t.platforms=["Amazon Fire OS","Android","iOS","Windows"],t}(u.IonicNativePlugin),h=n("olg3"),f=n("iunF"),d=n("EGUZ"),p=n("QA36"),v=n("/qZA"),g=n("2IJ5"),m=n("AjPc"),y=n("sUqe"),b=function(){function e(t,n,r,i,o,a,s,l,u,c,h,f,d){var p=this;_classCallCheck(this,e),this.platform=t,this.splashScreen=n,this.statusBar=r,this.consoleDialog=i,this.userManager=o,this.storageManager=a,this.settingsManager=s,this.router=l,this.collectionManager=u,this.socketManager=c,this.modalCtrl=h,this.menu=f,this.translateService=d,this._isBayaPlus=!1,this.initializeApp(),this.settingsManager.getActiveTheme().subscribe((function(e){return p.selectedTheme=e})),t.ready().then((function(){p.router.navigate(["profile/introduction"]),m.b.addCssClass(p.selectedTheme),p.translateService.setDefaultLang("en"),p.translateService.use("en"),p.userManager.isFirstUse().then((function(e){p.checkForLogin(),p.storageManager.get("lang").then((function(e){var t=e;null==e&&(t="fa"),p.translateService.use(t)})),p.storageManager.get("autoNightMode").then((function(e){e&&(console.log("time now",m.d.getHour()),(m.d.getHour()>22||m.d.getHour()<4)&&p.selectNightTheme())})),p.openCustom()})).catch((function(){})),r.styleDefault(),r.overlaysWebView(!0),n.hide(),p.isBayaPlus(),p.initModeMenuTitle()}))}return _createClass(e,[{key:"initializeApp",value:function(){var e=this;this.platform.ready().then((function(){e.statusBar.styleDefault(),e.splashScreen.hide()}))}},{key:"getRootNav",value:function(){return this.rootPage}},{key:"openFirst",value:function(){this.menu.enable(!0,"first"),this.menu.open("first")}},{key:"openEnd",value:function(){this.menu.open("end")}},{key:"openCustom",value:function(){this.menu.enable(!0,"custom"),this.menu.open("custom")}},{key:"toggleTheme",value:function(){m.b.removeCssClass(this.selectedTheme),this.settingsManager.setActiveTheme(y.g.getNextTheme(this.selectedTheme)),m.b.addCssClass(this.selectedTheme)}},{key:"isThemeNightMoode",value:function(){return this.selectedTheme==y.g.dark}},{key:"isBayaPlus",value:function(){var e=this;this.settingsManager.getPrimarySettings().then((function(t){e._isBayaPlus=t.isBayaPlus()}))}},{key:"selectNightTheme",value:function(){m.b.removeCssClass(this.selectedTheme),this.settingsManager.setActiveTheme(y.g.dark),this.selectedTheme=y.g.dark,m.b.addCssClass(this.selectedTheme)}},{key:"selectLightTheme",value:function(){m.b.removeCssClass(this.selectedTheme),this.settingsManager.setActiveTheme(y.g.light),this.selectedTheme=y.g.light,m.b.addCssClass(this.selectedTheme)}},{key:"toggleNightMode",value:function(){m.b.removeCssClass(this.selectedTheme),this.selectedTheme=this.isThemeNightMoode()?y.g.light:y.g.dark,this.userManager.theme=!0!==this.userManager.theme,m.b.addCssClass(this.selectedTheme),this.initModeMenuTitle()}},{key:"nightMode",value:function(){this.toggleNightMode()}},{key:"lightMode",value:function(){this.toggleNightMode()}},{key:"isNightMode",value:function(){return this.isThemeNightMoode()}},{key:"isLightMode",value:function(){return!this.isNightMode()}},{key:"initModeMenuTitle",value:function(){var e=this;this.isThemeNightMoode()?this.translateService.get("MENU.lightMode").subscribe((function(t){e.modeTitle=t})):(console.log(this.translateService.currentLang),this.translateService.get("MENU.nightMode").subscribe((function(t){console.log(t),e.modeTitle=t})))}},{key:"getModeMenuTitle",value:function(){return this.modeTitle}},{key:"checkForLogin",value:function(){var e=this;this.userManager.loggedIn().then((function(t){e.router.navigate(1==t?["items"]:["profile/introduction"])})).catch((function(){e.router.navigate(["phone"])}))}},{key:"openPage",value:function(e){var t=this,n=this;switch(e){case"profile":this.userManager.loggedIn().then((function(e){e?n.router.navigate(["profile"]):t.router.navigate(["phone"])}));break;case"items":n.router.navigate(["/items"]);break;case"invite":n.router.navigate(["/invite"]);break;case"bayaPlus":n.router.navigate(["/bayaplus"]);break;case"friends":n.router.navigate(["/contact"]);break;case"collections":n.router.navigate(["collection"]);break;case"wallet":n.router.navigate(["/wallet"]);break;case"settings":n.router.navigate(["/settings"]);break;case"support":n.router.navigate(["/support"])}this.menu.close()}}]),e}(),k=n("pMnS"),_=n("qu3L"),C=n("t68o"),w=n("m/40"),S=n("B/Pu"),O=n("ri/Y"),x=n("ja1e"),E=n("MKJQ"),T=n("sZkV"),M=n("s7LF"),A=n("3MOV"),I=function(){function e(t,n,r,i,o,a,s,l){_classCallCheck(this,e),this.storage=t,this.navCtrl=n,this.http=r,this.router=i,this.alertCtrl=o,this.ajaxBridge=a,this.storageManager=s,this.toastCtrl=l}return _createClass(e,[{key:"ionViewDidLoad",value:function(){console.log("ionViewDidLoad PhonePage")}},{key:"activateAccount",value:function(){var e=this;this.storageManager.get("phoneNumber").then((function(t){var n={activationCode:e.activationCode,phoneNumber:t};console.log(t),e.ajaxBridge.queryPro("activateAccount",n).then((function(t){console.log(t),0==t.activated?e.presentToast("\u06a9\u062f \u0641\u0639\u0627\u0644 \u0633\u0627\u0632\u06cc \u0635\u062d\u06cc\u062d \u0646\u06cc\u0633\u062a"):1==t.activated&&e.storageManager.activateAccount()}))}))}},{key:"onActivation",value:function(e){}},{key:"presentToast",value:function(e){this.toastCtrl.create({message:e,duration:3e3,position:"middle"})}}]),e}(),P=n("xgBC"),D=n("W2O4"),N=n("iInd"),j=r.qb({encapsulation:2,styles:[],data:{}});function R(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"ion-header",[],null,null,null,E.eb,E.p)),r.rb(1,49152,null,0,T.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,null,26,"ion-content",[["center",""],["class","vertical-align-content backback ion-text-center"],["scroll","false"]],null,null,null,E.Y,E.j)),r.rb(3,49152,null,0,T.u,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,24,"div",[["class","pageContent"]],null,null,null,null,null)),(e()(),r.sb(5,0,null,null,7,"ion-card",[],null,null,null,E.V,E.f)),r.rb(6,49152,null,0,T.m,[r.h,r.k,r.x],null,null),(e()(),r.sb(7,0,null,0,5,"ion-card-content",[],null,null,null,E.U,E.g)),r.rb(8,49152,null,0,T.n,[r.h,r.k,r.x],null,null),(e()(),r.sb(9,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),r.Lb(-1,null,["\u06cc\u06a9 \u06a9\u062f \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0627\u0633 \u0627\u0645 \u0627\u0633 \u0628\u0631\u0627\u06cc \u0634\u0645\u0627 \u0627\u0631\u0633\u0627\u0644 \u0634\u062f"])),(e()(),r.sb(11,0,null,0,1,"p",[],null,null,null,null,null)),(e()(),r.Lb(-1,null,["\u0644\u0637\u0641\u0627 \u06a9\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f"])),(e()(),r.sb(13,0,null,null,15,"ion-grid",[],null,null,null,E.db,E.o)),r.rb(14,49152,null,0,T.A,[r.h,r.k,r.x],null,null),(e()(),r.sb(15,0,null,0,13,"ion-row",[["center",""]],null,null,null,E.qb,E.B)),r.rb(16,49152,null,0,T.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(17,0,null,0,11,"ion-col",[],null,null,null,E.X,E.i)),r.rb(18,49152,null,0,T.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(19,0,null,0,7,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(20,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(21,0,null,0,1,"ion-label",[["floating",""]],null,null,null,E.kb,E.v)),r.rb(22,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.sb(23,0,null,0,3,"ion-input",[["type","number"]],null,[[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0;return"ionBlur"===t&&(i=!1!==r.Eb(e,26)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,26)._handleIonChange(n.target)&&i),i}),E.ib,E.t)),r.Ib(5120,null,M.e,(function(e){return[e]}),[T.Ib]),r.rb(25,49152,null,0,T.G,[r.h,r.k,r.x],{type:[0,"type"]},null),r.rb(26,4341760,null,0,T.Ib,[r.p,r.k],null,null),(e()(),r.sb(27,0,null,0,1,"button",[["color","secondary"],["ion-button",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.activateAccount()&&r),r}),null,null)),(e()(),r.Lb(-1,null,["\u0641\u0639\u0627\u0644 \u0633\u0627\u0632\u06cc"]))],(function(e,t){e(t,25,0,"number")}),null)}var L=r.ob("activation-phone",I,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"activation-phone",[],null,null,null,R,j)),r.rb(1,49152,null,0,I,[P.b,T.Gb,D.e,N.m,T.b,A.a,d.a,T.Ob],null,null)],null,null)}),{},{},[]),F=n("TSSN"),B=n("HcDZ"),V=n("SVse"),H=n("kbZ1"),z=n("J20c"),$=n("h4wn"),q=n("sk1z"),U=n("0+M4"),W=function(){function e(t,n,r,i){_classCallCheck(this,e),this.navCtrl=t,this.platform=n,this.translateService=r,this.userManager=i,this.defaultLang=this.translateService.currentLang,this.defaultLang&&console.log(this.defaultLang),this.device=this.platform.is("ios")?"ios":this.platform.is("android")?"android":"unkown"}return _createClass(e,[{key:"isPersian",value:function(){return this.defaultLang=this.translateService.currentLang,"fa"!==this.defaultLang}},{key:"ionViewDidLoad",value:function(){this.information=this.userManager.user.userID+"-"+this.device}},{key:"toshow",value:function(){console.log(this.defaultLang)}}]),e}(),G=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%] ion-card.card[_ngcontent-%COMP%]{margin:0 auto;background:rgba(0,0,0,.031372549)}[_nghost-%COMP%] ion-row[_ngcontent-%COMP%]{margin-top:11px}[_nghost-%COMP%] .persian[_ngcontent-%COMP%]{text-align:justify;text-justify:inter-word;direction:rtl}[_nghost-%COMP%] .english[_ngcontent-%COMP%]{text-align:justify;text-justify:inter-word}"]],data:{}});function X(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"div",[["class","english"]],null,null,null,null,null)),(e()(),r.Lb(1,null,[" "," "])),r.Fb(131072,F.i,[F.j,r.h])],null,(function(e,t){e(t,1,0,r.Mb(t,1,0,r.Eb(t,2).transform("CONTENT.Support.message")))}))}function J(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"div",[["class","persian"]],null,null,null,null,null)),(e()(),r.Lb(1,null,[" "," "])),r.Fb(131072,F.i,[F.j,r.h])],null,(function(e,t){e(t,1,0,r.Mb(t,1,0,r.Eb(t,2).transform("CONTENT.Support.message")))}))}function Q(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,4,"ion-header",[],null,null,null,E.eb,E.p)),r.rb(1,49152,null,0,T.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,2,"comp-header",[["showMenuBtn","true"]],null,null,null,O.c,O.b)),r.rb(3,4308992,null,0,B.a,[T.Gb,V.g,H.a,z.a,g.a,h.a,T.Fb,F.j,$.a,q.a,T.Eb,U.a,v.a,N.m],{textToUse:[0,"textToUse"],showMenuBtn:[1,"showMenuBtn"]},null),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(5,0,null,null,25,"ion-content",[["class","ion-padding"]],null,null,null,E.Y,E.j)),r.rb(6,49152,null,0,T.u,[r.h,r.k,r.x],null,null),(e()(),r.sb(7,0,null,0,23,"ion-card",[],null,null,null,E.V,E.f)),r.rb(8,49152,null,0,T.m,[r.h,r.k,r.x],null,null),(e()(),r.sb(9,0,null,0,21,"ion-card-content",[],null,null,null,E.U,E.g)),r.rb(10,49152,null,0,T.n,[r.h,r.k,r.x],null,null),(e()(),r.hb(16777216,null,0,1,null,X)),r.rb(12,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,J)),r.rb(14,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(15,0,null,0,3,"ion-row",[],null,null,null,E.qb,E.B)),r.rb(16,49152,null,0,T.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(17,0,null,0,1,"a",[["href","mailto:info@bayadic.com?Subject=Hello%20Baya"],["style","color : black"],["target","_top"]],null,null,null,null,null)),(e()(),r.Lb(-1,null,["Email : info@bayadic.com"])),(e()(),r.sb(19,0,null,0,5,"ion-row",[],null,null,null,E.qb,E.B)),r.rb(20,49152,null,0,T.gb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,[" Telegram : "])),(e()(),r.sb(22,0,null,0,2,"a",[["target","_blank"]],[[8,"href",4]],null,null,null,null)),(e()(),r.sb(23,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Lb(-1,null,["@TamasBaBot"])),(e()(),r.sb(25,0,null,0,5,"ion-row",[],null,null,null,E.qb,E.B)),r.rb(26,49152,null,0,T.gb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,[" Instagram : "])),(e()(),r.sb(28,0,null,0,2,"a",[["href","https://www.instagram.com/bayadic"],["target","_blank"]],null,null,null,null,null)),(e()(),r.sb(29,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Lb(-1,null,["@bayadic"]))],(function(e,t){var n=t.component;e(t,3,0,r.wb(1,"",r.Mb(t,3,0,r.Eb(t,4).transform("TITLE.support")),""),"true"),e(t,12,0,n.isPersian()),e(t,14,0,!n.isPersian())}),(function(e,t){e(t,22,0,r.wb(1,"https://telegram.me/tamasbabot?start=",t.component.information,""))}))}var Z=r.ob("page-support",W,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"page-support",[],null,null,null,Q,G)),r.rb(1,49152,null,0,W,[T.Gb,T.Jb,F.j,h.a],null,null)],null,null)}),{},{},[]),Y=function(){function e(t){_classCallCheck(this,e),this.consoleDialog=t}return _createClass(e,[{key:"clear",value:function(){this.consoleDialog.messages.length=0,this.consoleDialog.devMode=!1}},{key:"close",value:function(){this.consoleDialog.devMode=!1}},{key:"showDetails",value:function(e){m.a.isJson(e.data)?console.log(JSON.parse(e.data)):console.log(e.data)}}]),e}(),K=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%]{width:80%;margin-left:auto;margin-right:auto;display:block;position:relative;top:30%}[_nghost-%COMP%] .dialog[_ngcontent-%COMP%]{margin-top:40%;box-shadow:#000}[_nghost-%COMP%] ion-card.card[_ngcontent-%COMP%]{box-shadow:-10px 5px 12px #888;padding:10px;overflow:scroll;height:300px}[_nghost-%COMP%] ion-input[_ngcontent-%COMP%]{background:#00b7ff}"]],data:{}});function ee(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,4,"ion-item",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.showDetails(e.context.$implicit)&&r),r}),E.jb,E.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.Lb(2,0,[" "," "," "])),(e()(),r.sb(3,0,null,0,1,"p",[],null,null,null,null,null)),(e()(),r.Lb(4,null,["",""]))],null,(function(e,t){e(t,2,0,t.context.index,t.context.$implicit.msg),e(t,4,0,t.context.$implicit.time)}))}function te(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,10,"div",[["class","dialog"]],null,null,null,null,null)),(e()(),r.sb(1,0,null,null,3,"ion-card",[],null,null,null,E.V,E.f)),r.rb(2,49152,null,0,T.m,[r.h,r.k,r.x],null,null),(e()(),r.hb(16777216,null,0,1,null,ee)),r.rb(4,278528,null,0,V.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null),(e()(),r.sb(5,0,null,null,2,"ion-button",[["right",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.clear()&&r),r}),E.S,E.d)),r.rb(6,49152,null,0,T.k,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["Clear"])),(e()(),r.sb(8,0,null,null,2,"ion-button",[["right",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),E.S,E.d)),r.rb(9,49152,null,0,T.k,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["Cancel"]))],(function(e,t){e(t,4,0,t.component.consoleDialog.messages)}),null)}var ne=r.ob("debug-dialog",Y,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"debug-dialog",[],null,null,null,te,K)),r.rb(1,49152,null,0,Y,[g.a],null,null)],null,null)}),{},{},[]),re=n("iV+E"),ie=n("hqw5"),oe=n("dIIk"),ae=n("wZ9J"),se=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%] .menuBtn[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] ion-item[_ngcontent-%COMP%]{padding:21px;border-radius:13px}"]],data:{}});function le(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"friend",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.askAdd(n,e.context.$implicit)&&r),r}),re.b,re.a)),r.rb(1,5292032,null,0,ie.a,[T.a,$.a,z.a,H.a,g.a,T.Fb],{friend:[0,"friend"]},null)],(function(e,t){e(t,1,0,t.context.$implicit)}),null)}function ue(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,3,"ion-header",[],null,null,null,E.eb,E.p)),r.rb(1,49152,null,0,T.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,1,"comp-header",[["myText","select contacts"],["showBackBtn","true"]],null,null,null,O.c,O.b)),r.rb(3,4308992,null,0,B.a,[T.Gb,V.g,H.a,z.a,g.a,h.a,T.Fb,F.j,$.a,q.a,T.Eb,U.a,v.a,N.m],{textToUse:[0,"textToUse"],showBackBtn:[1,"showBackBtn"]},null),(e()(),r.sb(4,0,null,null,3,"ion-content",[["class","ion-padding"]],null,null,null,E.Y,E.j)),r.rb(5,49152,null,0,T.u,[r.h,r.k,r.x],null,null),(e()(),r.hb(16777216,null,0,1,null,le)),r.rb(7,278528,null,0,V.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,3,0,"select contacts","true"),e(t,7,0,n.friendsManager.friends)}),null)}var ce=r.ob("page-select-contact",oe.a,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"page-select-contact",[],null,null,null,ue,se)),r.rb(1,49152,null,0,oe.a,[T.Fb,T.Gb,$.a,ae.a,z.a,T.b,T.Hb,U.a],null,null)],null,null)}),{},{},[]),he=n("g4Gf"),fe=n("KnF1"),de=r.qb({encapsulation:2,styles:[],data:{}});function pe(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"item",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.askAdd(n,e.context.$implicit)&&r),r}),w.c,w.b)),r.rb(1,5292032,null,0,he.a,[ae.a,h.a,T.Gb,T.Fb,H.a,z.a,d.a,T.Jb,g.a,U.a,T.a],{itemObject:[0,"itemObject"]},null)],(function(e,t){e(t,1,0,t.context.$implicit)}),null)}function ve(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,3,"ion-header",[],null,null,null,E.eb,E.p)),r.rb(1,49152,null,0,T.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,1,"comp-header",[["myText","select item"]],null,null,null,O.c,O.b)),r.rb(3,4308992,null,0,B.a,[T.Gb,V.g,H.a,z.a,g.a,h.a,T.Fb,F.j,$.a,q.a,T.Eb,U.a,v.a,N.m],{textToUse:[0,"textToUse"],showBackBtn:[1,"showBackBtn"]},null),(e()(),r.sb(4,0,null,null,3,"ion-content",[["class","ion-padding"]],null,null,null,E.Y,E.j)),r.rb(5,49152,null,0,T.u,[r.h,r.k,r.x],null,null),(e()(),r.hb(16777216,null,0,1,null,pe)),r.rb(7,278528,null,0,V.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,3,0,"select item",!0),e(t,7,0,n.availableItems)}),null)}var ge=r.ob("page-select-item",fe.a,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"page-select-item",[],null,null,null,ve,de)),r.rb(1,49152,null,0,fe.a,[T.Gb,$.a,H.a,z.a,T.Fb,T.b,T.Hb],null,null)],null,null)}),{},{},[]),me=function(){function e(t,n){_classCallCheck(this,e),this.navCtrl=t,this.userManager=n}return _createClass(e,[{key:"ionViewDidLoad",value:function(){console.log("ionViewDidLoad WalletPage")}},{key:"addCredit",value:function(e){this.userManager.user.credit+=e}}]),e}(),ye=r.qb({encapsulation:2,styles:[],data:{}});function be(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,6,"ion-header",[],null,null,null,E.eb,E.p)),r.rb(1,49152,null,0,T.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,4,"ion-toolbar",[],null,null,null,E.Db,E.O)),r.rb(3,49152,null,0,T.zb,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,2,"ion-title",[],null,null,null,E.Bb,E.M)),r.rb(5,49152,null,0,T.xb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["wallet"])),(e()(),r.sb(7,0,null,null,33,"ion-content",[["class","ion-padding"]],null,null,null,E.Y,E.j)),r.rb(8,49152,null,0,T.u,[r.h,r.k,r.x],null,null),(e()(),r.sb(9,0,null,0,1,"p",[],null,null,null,null,null)),(e()(),r.Lb(10,null,["You have "," Credit in your wallet. The Stars will be used in different part of application to pay for features "])),(e()(),r.sb(11,0,null,0,1,"p",[],null,null,null,null,null)),(e()(),r.Lb(-1,null,["Try to boost up by your skills by adding more credits"])),(e()(),r.sb(13,0,null,0,6,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(14,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,[" 100 Stars 2 euros "])),(e()(),r.sb(16,0,null,0,1,"ion-icon",[["name","ios-star"]],null,null,null,E.fb,E.q)),r.rb(17,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(18,0,null,0,1,"button",[["ion-button",""],["medium",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addCredit(100)&&r),r}),null,null)),(e()(),r.Lb(-1,null,[" Buy "])),(e()(),r.sb(20,0,null,0,6,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(21,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,[" 200 Stars 3 euros "])),(e()(),r.sb(23,0,null,0,1,"ion-icon",[["name","ios-star"]],null,null,null,E.fb,E.q)),r.rb(24,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(25,0,null,0,1,"button",[["ion-button",""],["medium",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addCredit(200)&&r),r}),null,null)),(e()(),r.Lb(-1,null,[" Buy "])),(e()(),r.sb(27,0,null,0,6,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(28,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,[" 300 Stars 4 euros "])),(e()(),r.sb(30,0,null,0,1,"ion-icon",[["name","ios-star"]],null,null,null,E.fb,E.q)),r.rb(31,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(32,0,null,0,1,"button",[["ion-button",""],["medium",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addCredit(300)&&r),r}),null,null)),(e()(),r.Lb(-1,null,[" Buy "])),(e()(),r.sb(34,0,null,0,6,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(35,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,[" 400 Stars for 5 euros "])),(e()(),r.sb(37,0,null,0,1,"ion-icon",[["name","ios-star"]],null,null,null,E.fb,E.q)),r.rb(38,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(39,0,null,0,1,"button",[["ion-button",""],["medium",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addCredit(400)&&r),r}),null,null)),(e()(),r.Lb(-1,null,[" Buy "]))],(function(e,t){e(t,17,0,"ios-star"),e(t,24,0,"ios-star"),e(t,31,0,"ios-star"),e(t,38,0,"ios-star")}),(function(e,t){e(t,10,0,t.component.userManager.user.credit)}))}var ke=r.ob("page-wallet",me,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"page-wallet",[],null,null,null,be,ye)),r.rb(1,49152,null,0,me,[T.Gb,h.a],null,null)],null,null)}),{},{},[]),_e=function(){function e(t,n,r){_classCallCheck(this,e),this.view=t,this.loadingCtrl=n,this.ajaxBridge=r,this.loadDescription(),this.presentLoadingDefault()}return _createClass(e,[{key:"closeModal",value:function(){this.view.dismiss()}},{key:"strip",value:function(e){return e.replace(/<(?:.|\n)*?>/gm,"")}},{key:"presentLoadingDefault",value:function(){}},{key:"getDescription",value:function(e){return this.collection.getDescription()}},{key:"loadDescription",value:function(){}},{key:"ionViewDidLoad",value:function(){}}]),e}(),Ce=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%] ion-content.content[_ngcontent-%COMP%]{background-color:#ff4500}[_nghost-%COMP%] ion-title.title[_ngcontent-%COMP%]{position:relative;float:left}[_nghost-%COMP%] .closeBtn[_ngcontent-%COMP%]{position:relative;float:left;display:none}[_nghost-%COMP%] ion-icon.icon[_ngcontent-%COMP%]{margin-left:0;position:relative;float:left}[_nghost-%COMP%] .toolbar-background[_ngcontent-%COMP%]{background-color:#ffc107}[_nghost-%COMP%] .collectionImage[_ngcontent-%COMP%]{width:200px;height:200px}"]],data:{}});function we(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,10,"ion-header",[],null,null,null,E.eb,E.p)),r.rb(1,49152,null,0,T.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,8,"ion-toolbar",[],null,null,null,E.Db,E.O)),r.rb(3,49152,null,0,T.zb,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,3,"div",[["class","closeBtn"]],null,null,null,null,null)),(e()(),r.sb(5,0,null,null,2,"button",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.closeModal()&&r),r}),null,null)),(e()(),r.sb(6,0,null,null,1,"ion-icon",[["name","close"]],null,null,null,E.fb,E.q)),r.rb(7,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(8,0,null,0,2,"ion-title",[],null,null,null,E.Bb,E.M)),r.rb(9,49152,null,0,T.xb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(10,0,["",""])),(e()(),r.sb(11,0,null,null,1,"ion-content",[],null,null,null,E.Y,E.j)),r.rb(12,49152,null,0,T.u,[r.h,r.k,r.x],null,null)],(function(e,t){e(t,7,0,"close")}),(function(e,t){e(t,10,0,t.component.collection.getTitle())}))}var Se=r.ob("page-modal-description",_e,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"page-modal-description",[],null,null,null,we,Ce)),r.rb(1,49152,null,0,_e,[T.Fb,T.Db,A.a],null,null)],null,null)}),{},{},[]),Oe=n("pJ1N"),xe=r.qb({encapsulation:0,styles:[["tour-guide[_ngcontent-%COMP%]{text-align:center;z-index:3}tour-guide[_ngcontent-%COMP%] .closeOverlay[_ngcontent-%COMP%]{width:102vw;height:100%;display:block;background:0 0;position:fixed;left:0;top:0;z-index:-1}tour-guide[_ngcontent-%COMP%] .target[_ngcontent-%COMP%]{position:absolute;background:0 0;box-shadow:0 0 9px 903px rgba(0,0,0,.73);margin:0 auto;border-radius:33%;z-index:-1}tour-guide[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:#fff;z-index:2;background:#bfbfbf;border-radius:13px;position:relative;padding:10px}"]],data:{}});function Ee(e){return r.Nb(0,[r.Jb(671088640,1,{chatInput:0}),(e()(),r.sb(1,0,null,null,0,"div",[["class","closeOverlay"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.next()&&r),r}),null,null)),(e()(),r.sb(2,0,null,null,8,"div",[["class","target"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.next()&&r),r}),null,null)),r.Ib(512,null,V.w,V.x,[r.k,r.r,r.D]),r.rb(4,278528,null,0,V.n,[V.w],{ngStyle:[0,"ngStyle"]},null),r.Gb(5,{width:0,height:1,top:2,left:3}),(e()(),r.sb(6,0,null,null,4,"div",[["class","text"]],null,null,null,null,null)),r.Ib(512,null,V.w,V.x,[r.k,r.r,r.D]),r.rb(8,278528,null,0,V.n,[V.w],{ngStyle:[0,"ngStyle"]},null),r.Gb(9,{width:0,height:1,top:2,left:3}),(e()(),r.Lb(10,null,["",""])),(e()(),r.sb(11,0,null,null,0,"div",[],null,null,null,null,null))],(function(e,t){var n=t.component,r=e(t,5,0,n.width,n.height,n.top,n.left);e(t,4,0,r);var i=e(t,9,0,n.textWidth,n.textHeight,n.textTop,n.textLeft);e(t,8,0,i)}),(function(e,t){e(t,10,0,t.component.text)}))}var Te=r.ob("tour-guide",Oe.a,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"tour-guide",[],null,null,null,Ee,xe)),r.rb(1,573440,null,0,Oe.a,[T.Fb,T.Jb],null,null)],null,null)}),{},{},[]),Me=n("HKEL"),Ae=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%] .dialogfa[_ngcontent-%COMP%]{padding:15px;direction:rtl}[_nghost-%COMP%] .dialogen[_ngcontent-%COMP%]{padding:15px;direction:ltr}[_nghost-%COMP%] ion-card.card[_ngcontent-%COMP%]{box-shadow:-10px 5px 12px #888;padding:10px;width:95%}[_nghost-%COMP%] ion-input[_ngcontent-%COMP%]{border-bottom:1px solid #ccc}[_nghost-%COMP%] .email-container[_ngcontent-%COMP%]{margin-bottom:20px}"]],data:{}});function Ie(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,20,"div",[["class","dialogfa"]],null,null,null,null,null)),(e()(),r.sb(1,0,null,null,2,"h5",[],null,null,null,null,null)),(e()(),r.Lb(2,null,[" "," "])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(4,0,null,null,7,"div",[["class","email-container"]],null,null,null,null,null)),(e()(),r.sb(5,0,null,null,6,"ion-input",[["placeholder","sam@gmail.com"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0,o=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,7)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,7)._handleInputEvent(n.target)&&i),"ngModelChange"===t&&(i=!1!==(o.email=n)&&i),i}),E.ib,E.t)),r.rb(6,49152,null,0,T.G,[r.h,r.k,r.x],{placeholder:[0,"placeholder"]},null),r.rb(7,4341760,null,0,T.Nb,[r.p,r.k],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[T.Nb]),r.rb(9,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(11,16384,null,0,M.g,[[4,M.f]],null,null),(e()(),r.sb(12,0,null,null,8,"div",[],null,null,null,null,null)),(e()(),r.sb(13,0,null,null,3,"ion-button",[["right",""],["shape","round"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addFriend()&&r),r}),E.S,E.d)),r.rb(14,49152,null,0,T.k,[r.h,r.k,r.x],{shape:[0,"shape"]},null),(e()(),r.Lb(15,0,[" ",""])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(17,0,null,null,3,"ion-button",[["class","cancel"],["color","light"],["right",""],["shape","round"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),E.S,E.d)),r.rb(18,49152,null,0,T.k,[r.h,r.k,r.x],{color:[0,"color"],shape:[1,"shape"]},null),(e()(),r.Lb(19,0,["",""])),r.Fb(131072,F.i,[F.j,r.h])],(function(e,t){var n=t.component;e(t,6,0,"sam@gmail.com"),e(t,9,0,n.email),e(t,14,0,"round"),e(t,18,0,"light","round")}),(function(e,t){e(t,2,0,r.Mb(t,2,0,r.Eb(t,3).transform("TITLE.addFriend"))),e(t,5,0,r.Eb(t,11).ngClassUntouched,r.Eb(t,11).ngClassTouched,r.Eb(t,11).ngClassPristine,r.Eb(t,11).ngClassDirty,r.Eb(t,11).ngClassValid,r.Eb(t,11).ngClassInvalid,r.Eb(t,11).ngClassPending),e(t,15,0,r.Mb(t,15,0,r.Eb(t,16).transform("BUTTONS.add"))),e(t,19,0,r.Mb(t,19,0,r.Eb(t,20).transform("BUTTONS.cancel")))}))}function Pe(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,20,"div",[["class","dialogen"]],null,null,null,null,null)),(e()(),r.sb(1,0,null,null,2,"h5",[],null,null,null,null,null)),(e()(),r.Lb(2,null,[" "," "])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(4,0,null,null,7,"div",[["class","email-container"]],null,null,null,null,null)),(e()(),r.sb(5,0,null,null,6,"ion-input",[["placeholder","sam@gmail.com"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0,o=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,7)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,7)._handleInputEvent(n.target)&&i),"ngModelChange"===t&&(i=!1!==(o.email=n)&&i),i}),E.ib,E.t)),r.rb(6,49152,null,0,T.G,[r.h,r.k,r.x],{placeholder:[0,"placeholder"]},null),r.rb(7,4341760,null,0,T.Nb,[r.p,r.k],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[T.Nb]),r.rb(9,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(11,16384,null,0,M.g,[[4,M.f]],null,null),(e()(),r.sb(12,0,null,null,8,"div",[],null,null,null,null,null)),(e()(),r.sb(13,0,null,null,3,"ion-button",[["right",""],["shape","round"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addFriend()&&r),r}),E.S,E.d)),r.rb(14,49152,null,0,T.k,[r.h,r.k,r.x],{shape:[0,"shape"]},null),(e()(),r.Lb(15,0,[" ",""])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(17,0,null,null,3,"ion-button",[["class","cancel"],["color","light"],["right",""],["shape","round"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),E.S,E.d)),r.rb(18,49152,null,0,T.k,[r.h,r.k,r.x],{color:[0,"color"],shape:[1,"shape"]},null),(e()(),r.Lb(19,0,["",""])),r.Fb(131072,F.i,[F.j,r.h])],(function(e,t){var n=t.component;e(t,6,0,"sam@gmail.com"),e(t,9,0,n.email),e(t,14,0,"round"),e(t,18,0,"light","round")}),(function(e,t){e(t,2,0,r.Mb(t,2,0,r.Eb(t,3).transform("TITLE.addFriend"))),e(t,5,0,r.Eb(t,11).ngClassUntouched,r.Eb(t,11).ngClassTouched,r.Eb(t,11).ngClassPristine,r.Eb(t,11).ngClassDirty,r.Eb(t,11).ngClassValid,r.Eb(t,11).ngClassInvalid,r.Eb(t,11).ngClassPending),e(t,15,0,r.Mb(t,15,0,r.Eb(t,16).transform("BUTTONS.add"))),e(t,19,0,r.Mb(t,19,0,r.Eb(t,20).transform("BUTTONS.cancel")))}))}function De(e){return r.Nb(0,[(e()(),r.hb(16777216,null,null,1,null,Ie)),r.rb(1,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),r.hb(0,[["cond1",2]],null,0,null,Pe))],(function(e,t){e(t,1,0,"fa"==t.component.toknow,r.Eb(t,2))}),null)}var Ne=r.ob("add-friend-dialog",Me.a,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"add-friend-dialog",[],null,null,null,De,Ae)),r.rb(1,49152,null,0,Me.a,[$.a,T.Fb,F.j],null,null)],null,null)}),{},{},[]),je=function(){function e(t,n,r,i){_classCallCheck(this,e),this.viewCtrl=t,this.itemsManager=n,this.chatsManager=r,this.friendsManager=i,this.init()}return _createClass(e,[{key:"init",value:function(){var e=this;this.friendsManager.friends.forEach((function(e){e.joined=!1})),console.log(this.chat,"this is the chat what I got"),this.chat.members.forEach((function(t){e.friendsManager.friends.forEach((function(e){e.userID==t.userID&&(e.joined=!0)}))}))}},{key:"save",value:function(){var e=this;this.chat.members.length=0,this.friendsManager.friends.forEach((function(t){t.joined&&e.chatsManager.addMember(e.chat,t)})),this.chatsManager.save(this.chat),this.viewCtrl.dismiss()}},{key:"close",value:function(){this.viewCtrl.dismiss()}},{key:"isJoined",value:function(e){return!1,!1}}]),e}(),Re=r.qb({encapsulation:0,styles:[["add-person-dialog[_ngcontent-%COMP%]{width:80%;margin-left:auto;margin-right:auto;display:block;position:relative;top:30%}add-person-dialog[_ngcontent-%COMP%] .dialog[_ngcontent-%COMP%]{margin-top:40%;box-shadow:#000}add-person-dialog[_ngcontent-%COMP%] ion-card.card[_ngcontent-%COMP%]{padding:10px;overflow:scroll;height:200px}add-person-dialog[_ngcontent-%COMP%] ion-card.card[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%]{padding:0}add-person-dialog[_ngcontent-%COMP%] ion-card.card[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] ion-avatar[_ngcontent-%COMP%], add-person-dialog[_ngcontent-%COMP%] ion-card.card[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] ion-label.label[_ngcontent-%COMP%]{margin:0}add-person-dialog[_ngcontent-%COMP%] ion-input[_ngcontent-%COMP%]{background:#00b7ff}add-person-dialog[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{width:100%}"]],data:{}});function Le(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,12,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,3,"ion-label",[],null,null,null,E.kb,E.v)),r.rb(3,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,1,"friend",[],null,null,null,re.b,re.a)),r.rb(5,5292032,null,0,ie.a,[T.a,$.a,z.a,H.a,g.a,T.Fb],{friend:[0,"friend"]},null),(e()(),r.sb(6,0,null,0,6,"ion-checkbox",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0;return"ionBlur"===t&&(i=!1!==r.Eb(e,8)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,8)._handleIonChange(n.target)&&i),"ngModelChange"===t&&(i=!1!==(e.context.$implicit.joined=n)&&i),i}),E.W,E.h)),r.rb(7,49152,null,0,T.r,[r.h,r.k,r.x],{disabled:[0,"disabled"]},null),r.rb(8,4341760,null,0,T.d,[r.p,r.k],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[T.d]),r.rb(10,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(12,16384,null,0,M.g,[[4,M.f]],null,null)],(function(e,t){var n=t.component;e(t,5,0,t.context.$implicit),e(t,7,0,r.wb(1,"",n.isJoined(t.context.$implicit),"")),e(t,10,0,r.wb(1,"",n.isJoined(t.context.$implicit),""),t.context.$implicit.joined)}),(function(e,t){e(t,6,0,r.Eb(t,12).ngClassUntouched,r.Eb(t,12).ngClassTouched,r.Eb(t,12).ngClassPristine,r.Eb(t,12).ngClassDirty,r.Eb(t,12).ngClassValid,r.Eb(t,12).ngClassInvalid,r.Eb(t,12).ngClassPending)}))}function Fe(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,5,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,3,"ion-label",[],null,null,null,E.kb,E.v)),r.rb(3,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,1,"friend",[],null,null,null,re.b,re.a)),r.rb(5,5292032,null,0,ie.a,[T.a,$.a,z.a,H.a,g.a,T.Fb],{friend:[0,"friend"]},null)],(function(e,t){e(t,5,0,t.context.$implicit)}),null)}function Be(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,16,"div",[["class","dialog"]],null,null,null,null,null)),(e()(),r.sb(1,0,null,null,9,"ion-card",[],null,null,null,E.V,E.f)),r.rb(2,49152,null,0,T.m,[r.h,r.k,r.x],null,null),(e()(),r.sb(3,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),r.Lb(-1,null,[" List of joined Friends "])),(e()(),r.Lb(-1,0,[" Your friends List "])),(e()(),r.hb(16777216,null,0,1,null,Le)),r.rb(7,278528,null,0,V.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Lb(-1,0,[" chat members "])),(e()(),r.hb(16777216,null,0,1,null,Fe)),r.rb(10,278528,null,0,V.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null),(e()(),r.sb(11,0,null,null,2,"ion-button",[["right",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.save()&&r),r}),E.S,E.d)),r.rb(12,49152,null,0,T.k,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["Accept"])),(e()(),r.sb(14,0,null,null,2,"ion-button",[["right",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),E.S,E.d)),r.rb(15,49152,null,0,T.k,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["Close"]))],(function(e,t){var n=t.component;e(t,7,0,n.friendsManager.friends),e(t,10,0,n.chat.members)}),null)}var Ve=r.ob("add-person-dialog",je,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"add-person-dialog",[],null,null,null,Be,Re)),r.rb(1,49152,null,0,je,[T.Fb,H.a,z.a,$.a],null,null)],null,null)}),{},{},[]),He=n("nBaR"),ze=n("3UND"),$e=n("Hceu"),qe=n("ASgS"),Ue=function e(t){_classCallCheck(this,e),this.navCtrl=t,this.tab1Root=$e.a,this.tab2Root=He.a,this.tab3Root=ze.a,this.tab4Root=qe.a},We=r.qb({encapsulation:2,styles:[],data:{}});function Ge(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,7,"ion-tab-bar",[["selectedIndex","1"]],null,null,null,E.yb,E.J)),r.rb(1,49152,null,0,T.rb,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,1,"ion-tab-bar",[["tabIcon","aperture"],["tabTitle","Collections"]],null,null,null,E.yb,E.J)),r.rb(3,49152,null,0,T.rb,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,1,"ion-tab-bar",[["tabIcon","ios-copy"],["tabTitle","My Items"]],null,null,null,E.yb,E.J)),r.rb(5,49152,null,0,T.rb,[r.h,r.k,r.x],null,null),(e()(),r.sb(6,0,null,0,1,"ion-tab-bar",[["tabIcon","contacts"],["tabTitle","friends"]],null,null,null,E.yb,E.J)),r.rb(7,49152,null,0,T.rb,[r.h,r.k,r.x],null,null)],null,null)}var Xe=r.ob("ng-component",Ue,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"ng-component",[],null,null,null,Ge,We)),r.rb(1,49152,null,0,Ue,[T.Gb],null,null)],null,null)}),{},{},[]),Je=n("CDm8"),Qe=r.qb({encapsulation:0,styles:[["add-item-dialog[_ngcontent-%COMP%]{width:80%;margin-left:auto;margin-right:auto;display:block;position:relative}add-item-dialog[_ngcontent-%COMP%] .closeOverlay[_ngcontent-%COMP%]{width:102vw;height:100%;display:block;background:rgba(0,0,0,.411);position:fixed;left:0;top:0;z-index:-1}add-item-dialog[_ngcontent-%COMP%] .dialog[_ngcontent-%COMP%]{height:100%;box-shadow:#000}add-item-dialog[_ngcontent-%COMP%] .dialog[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{padding-bottom:16px;padding-left:9px}add-item-dialog[_ngcontent-%COMP%] .dialog[_ngcontent-%COMP%] .buttonText[_ngcontent-%COMP%]{padding-left:3px;margin-left:4px;padding-top:4px;color:#fff}add-item-dialog[_ngcontent-%COMP%] ion-card.card[_ngcontent-%COMP%]{box-shadow:-10px 5px 12px #888;padding:39px 10px;width:95%;border-radius:20px}add-item-dialog[_ngcontent-%COMP%] ion-input[_ngcontent-%COMP%]{color:#333;background:#fff;border-radius:20px;border:1px solid #46ccff}.button-container[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:20px}ion-card[_ngcontent-%COMP%]{padding:10px}ion-button[_ngcontent-%COMP%]{letter-spacing:unset}.add-btn[_ngcontent-%COMP%]{color:#fff!important}.dialog-container[_ngcontent-%COMP%]{padding:15px}"]],data:{}});function Ze(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,12,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,3,"ion-label",[],null,null,null,E.kb,E.v)),r.rb(3,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.Lb(4,0,["",""])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(6,0,null,0,6,"ion-toggle",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0,o=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,8)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,8)._handleIonChange(n.target)&&i),"ngModelChange"===t&&(i=!1!==(o.public=n)&&i),i}),E.Cb,E.N)),r.rb(7,49152,null,0,T.yb,[r.h,r.k,r.x],null,null),r.rb(8,4341760,null,0,T.d,[r.p,r.k],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[T.d]),r.rb(10,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(12,16384,null,0,M.g,[[4,M.f]],null,null)],(function(e,t){e(t,10,0,t.component.public)}),(function(e,t){e(t,4,0,r.Mb(t,4,0,r.Eb(t,5).transform("CONTENT.AddItemDialog.public"))),e(t,6,0,r.Eb(t,12).ngClassUntouched,r.Eb(t,12).ngClassTouched,r.Eb(t,12).ngClassPristine,r.Eb(t,12).ngClassDirty,r.Eb(t,12).ngClassValid,r.Eb(t,12).ngClassInvalid,r.Eb(t,12).ngClassPending)}))}function Ye(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,29,"div",[["class","dialog"]],null,null,null,null,null)),(e()(),r.sb(1,0,null,null,28,"div",[["class","dialog-container"]],null,null,null,null,null)),(e()(),r.sb(2,0,null,null,12,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(3,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,3,"ion-label",[],null,null,null,E.kb,E.v)),r.rb(5,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.Lb(6,0,["",""])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(8,0,null,0,6,"ion-input",[["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0,o=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,10)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,10)._handleInputEvent(n.target)&&i),"ngModelChange"===t&&(i=!1!==(o.itemName=n)&&i),i}),E.ib,E.t)),r.rb(9,49152,null,0,T.G,[r.h,r.k,r.x],{placeholder:[0,"placeholder"],type:[1,"type"]},null),r.rb(10,4341760,null,0,T.Nb,[r.p,r.k],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[T.Nb]),r.rb(12,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(14,16384,null,0,M.g,[[4,M.f]],null,null),(e()(),r.hb(16777216,null,null,1,null,Ze)),r.rb(16,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(17,0,null,null,12,"div",[["class","button-container"]],null,null,null,null,null)),(e()(),r.sb(18,0,null,null,6,"ion-button",[["color","primary"],["right",""],["shape","round"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addItem()&&r),r}),E.S,E.d)),r.rb(19,49152,null,0,T.k,[r.h,r.k,r.x],{color:[0,"color"],shape:[1,"shape"]},null),(e()(),r.sb(20,0,null,0,1,"ion-icon",[["name","add"]],null,null,null,E.fb,E.q)),r.rb(21,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(22,0,null,0,2,"div",[["class","add-btn"]],null,null,null,null,null)),(e()(),r.Lb(23,null,[" "," "])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(25,0,null,null,4,"ion-button",[["class","cancel"],["color","light"],["right",""],["shape","round"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),E.S,E.d)),r.rb(26,49152,null,0,T.k,[r.h,r.k,r.x],{color:[0,"color"],shape:[1,"shape"]},null),(e()(),r.sb(27,0,null,0,2,"div",[["class","buttonText"]],null,null,null,null,null)),(e()(),r.Lb(28,null,[" "," "])),r.Fb(131072,F.i,[F.j,r.h])],(function(e,t){var n=t.component;e(t,9,0,r.wb(1,"",n.collection.getTitle(),""),"text"),e(t,12,0,n.itemName),e(t,16,0,n.isAllowPublic()),e(t,19,0,"primary","round"),e(t,21,0,"add"),e(t,26,0,"light","round")}),(function(e,t){e(t,6,0,r.Mb(t,6,0,r.Eb(t,7).transform("CONTENT.AddItemDialog.name"))),e(t,8,0,r.Eb(t,14).ngClassUntouched,r.Eb(t,14).ngClassTouched,r.Eb(t,14).ngClassPristine,r.Eb(t,14).ngClassDirty,r.Eb(t,14).ngClassValid,r.Eb(t,14).ngClassInvalid,r.Eb(t,14).ngClassPending),e(t,23,0,r.Mb(t,23,0,r.Eb(t,24).transform("BUTTONS.addItem"))),e(t,28,0,r.Mb(t,28,0,r.Eb(t,29).transform("BUTTONS.cancel")))}))}var Ke=r.ob("add-item-dialog",Je.a,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"add-item-dialog",[],null,null,null,Ye,Qe)),r.rb(1,49152,null,0,Je.a,[H.a,T.Gb,f.a,T.Fb,N.m],null,null)],null,null)}),{},{},[]),et=n("IP0z"),tt=n("TBO2"),nt=n("++lw"),rt=r.qb({encapsulation:2,styles:[],data:{}});function it(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,3,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,1,"ion-spinner",[["name","crescent"]],null,null,null,E.xb,E.I)),r.rb(3,49152,null,0,T.pb,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){e(t,3,0,"crescent")}),null)}function ot(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,32,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,8,"ion-row",[["class","size"]],null,null,null,E.qb,E.B)),r.rb(3,49152,null,0,T.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,3,"ion-col",[],null,null,null,E.X,E.i)),r.rb(5,49152,null,0,T.t,[r.h,r.k,r.x],null,null),(e()(),r.Lb(6,0,[" "," "])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(8,0,null,0,2,"ion-col",[],null,null,null,E.X,E.i)),r.rb(9,49152,null,0,T.t,[r.h,r.k,r.x],null,null),(e()(),r.Lb(10,0,[" "," "])),(e()(),r.sb(11,0,null,0,10,"ion-row",[["class","size"]],null,null,null,E.qb,E.B)),r.rb(12,49152,null,0,T.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(13,0,null,0,4,"ion-col",[],null,null,null,E.X,E.i)),r.rb(14,49152,null,0,T.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(15,0,null,0,2,"div",[["type","text"]],null,null,null,null,null)),(e()(),r.Lb(16,null,["",""])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(18,0,null,0,3,"ion-col",[],null,null,null,E.X,E.i)),r.rb(19,49152,null,0,T.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(20,0,null,0,1,"div",[["type","text"]],null,null,null,null,null)),(e()(),r.Lb(21,null,["","kb"])),(e()(),r.sb(22,0,null,0,10,"ion-row",[["class","size"]],null,null,null,E.qb,E.B)),r.rb(23,49152,null,0,T.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(24,0,null,0,8,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(25,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(26,0,null,0,3,"ion-col",[],null,null,null,E.X,E.i)),r.rb(27,49152,null,0,T.t,[r.h,r.k,r.x],null,null),(e()(),r.Lb(28,0,[" "," "])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(30,0,null,0,2,"ion-col",[],null,null,null,E.X,E.i)),r.rb(31,49152,null,0,T.t,[r.h,r.k,r.x],null,null),(e()(),r.Lb(32,0,[" "," "]))],null,(function(e,t){var n=t.component;e(t,6,0,r.Mb(t,6,0,r.Eb(t,7).transform("CONTENT.DownloadDialog.wordsCount"))),e(t,10,0,n.wordsCount),e(t,16,0,r.Mb(t,16,0,r.Eb(t,17).transform("CONTENT.DownloadDialog.size"))),e(t,21,0,n.downloadSize),e(t,28,0,r.Mb(t,28,0,r.Eb(t,29).transform("CONTENT.DownloadDialog.lastUpdate"))),e(t,32,0,n.time)}))}function at(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),r.sb(1,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),r.Lb(2,null,[" "," "])),r.Fb(131072,F.i,[F.j,r.h])],null,(function(e,t){e(t,2,0,r.Mb(t,2,0,r.Eb(t,3).transform("CONTENT.DownloadDialog.result")))}))}function st(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"button",[["ion-button",""],["right",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.download()&&r),r}),null,null)),(e()(),r.Lb(1,null,[" ",""])),r.Fb(131072,F.i,[F.j,r.h])],null,(function(e,t){e(t,1,0,r.Mb(t,1,0,r.Eb(t,2).transform("BUTTONS.download")))}))}function lt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,3,"ion-button",[["class","cancel"],["right",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),E.S,E.d)),r.rb(1,49152,null,0,T.k,[r.h,r.k,r.x],null,null),(e()(),r.Lb(2,0,["",""])),r.Fb(131072,F.i,[F.j,r.h])],null,(function(e,t){e(t,2,0,r.Mb(t,2,0,r.Eb(t,3).transform("BUTTONS.cancel")))}))}function ut(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,3,"ion-button",[["class","cancel"],["right",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),E.S,E.d)),r.rb(1,49152,null,0,T.k,[r.h,r.k,r.x],null,null),(e()(),r.Lb(2,0,["",""])),r.Fb(131072,F.i,[F.j,r.h])],null,(function(e,t){e(t,2,0,r.Mb(t,2,0,r.Eb(t,3).transform("BUTTONS.okay")))}))}function ct(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,0,"div",[["class","closeOverlay"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,18,"div",[["class","dialog"]],[[1,"dir",0]],null,null,null,null)),r.Ib(6144,null,et.c,null,[et.b]),r.rb(3,1196032,null,0,et.b,[],{dir:[0,"dir"]},null),(e()(),r.sb(4,0,null,null,15,"ion-card",[],null,null,null,E.V,E.f)),r.rb(5,49152,null,0,T.m,[r.h,r.k,r.x],null,null),(e()(),r.sb(6,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),r.Lb(7,null,[" "," "])),(e()(),r.hb(16777216,null,0,1,null,it)),r.rb(9,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,ot)),r.rb(11,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,at)),r.rb(13,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,st)),r.rb(15,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,lt)),r.rb(17,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,ut)),r.rb(19,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,3,0,r.wb(1,"",n.isRtl()?"rtl":"ltr","")),e(t,9,0,n.isLoading),e(t,11,0,n.isDetails()),e(t,13,0,n.isResult()),e(t,15,0,n.isDetails()),e(t,17,0,n.isDetails()),e(t,19,0,n.isResult())}),(function(e,t){var n=t.component;e(t,1,0,r.Eb(t,3)._rawDir),e(t,7,0,n.chat.getTitle())}))}var ht=r.ob("download-dialog",tt.a,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"download-dialog",[],null,null,null,ct,rt)),r.rb(1,49152,null,0,tt.a,[z.a,nt.a,T.Hb,T.Gb,f.a,F.j,T.Fb],null,null)],null,null)}),{},{},[]),ft=n("2y6Z"),dt=r.qb({encapsulation:0,styles:[[".headerword[_ngcontent-%COMP%]{display:flex;background-color:#f7ed69;height:58px;width:100%;justify-content:center;align-items:center;font-size:28px;font-weight:700}.iputstyle[_ngcontent-%COMP%]{border:0;height:25px;margin:10px;width:100%}.iputstyle[_ngcontent-%COMP%]:focus{outline:0}.divBtns[_ngcontent-%COMP%]{display:flex;align-content:center;background-color:#f7ed69;width:100%;height:40px}.AddBtn[_ngcontent-%COMP%]{margin-left:20px;background-color:transparent;color:#00f}.closeBtn[_ngcontent-%COMP%]{margin-left:30px;background-color:transparent;color:#00f}"]],data:{}});function pt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,36,"div",[],null,null,null,null,null)),(e()(),r.sb(1,0,null,null,35,"ion-list",[["style","padding: 0%;"]],null,[[null,"ionChange"]],(function(e,t,n){var r=!0;return"ionChange"===t&&(r=!1!==e.component.artikelChanged(n)&&r),r}),E.mb,E.w)),r.rb(2,49152,null,0,T.O,[r.h,r.k,r.x],null,null),(e()(),r.sb(3,0,null,0,33,"ion-radio-group",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0,o=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,5)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,5)._handleChangeEvent(n.target)&&i),"ngModelChange"===t&&(i=!1!==(o.artikel=n)&&i),i}),E.ob,E.A)),r.rb(4,49152,null,0,T.Y,[r.h,r.k,r.x],null,null),r.rb(5,4341760,null,0,T.Mb,[r.p,r.k],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[T.Mb]),r.rb(7,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(9,16384,null,0,M.g,[[4,M.f]],null,null),(e()(),r.sb(10,0,null,0,8,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(11,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(12,0,null,0,2,"ion-label",[],null,null,null,E.kb,E.v)),r.rb(13,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["Der"])),(e()(),r.sb(15,0,null,0,3,"ion-radio",[["value","m"]],null,[[null,"ionBlur"],[null,"ionSelect"]],(function(e,t,n){var i=!0;return"ionBlur"===t&&(i=!1!==r.Eb(e,18)._handleBlurEvent(n.target)&&i),"ionSelect"===t&&(i=!1!==r.Eb(e,18)._handleIonSelect(n.target)&&i),i}),E.pb,E.z)),r.Ib(5120,null,M.e,(function(e){return[e]}),[T.Lb]),r.rb(17,49152,null,0,T.X,[r.h,r.k,r.x],{value:[0,"value"]},null),r.rb(18,4341760,null,0,T.Lb,[r.p,r.k],null,null),(e()(),r.sb(19,0,null,0,8,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(20,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(21,0,null,0,2,"ion-label",[],null,null,null,E.kb,E.v)),r.rb(22,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["Die"])),(e()(),r.sb(24,0,null,0,3,"ion-radio",[["value","f"]],null,[[null,"ionBlur"],[null,"ionSelect"]],(function(e,t,n){var i=!0;return"ionBlur"===t&&(i=!1!==r.Eb(e,27)._handleBlurEvent(n.target)&&i),"ionSelect"===t&&(i=!1!==r.Eb(e,27)._handleIonSelect(n.target)&&i),i}),E.pb,E.z)),r.Ib(5120,null,M.e,(function(e){return[e]}),[T.Lb]),r.rb(26,49152,null,0,T.X,[r.h,r.k,r.x],{value:[0,"value"]},null),r.rb(27,4341760,null,0,T.Lb,[r.p,r.k],null,null),(e()(),r.sb(28,0,null,0,8,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(29,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(30,0,null,0,2,"ion-label",[],null,null,null,E.kb,E.v)),r.rb(31,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["Das"])),(e()(),r.sb(33,0,null,0,3,"ion-radio",[["value","n"]],null,[[null,"ionBlur"],[null,"ionSelect"]],(function(e,t,n){var i=!0;return"ionBlur"===t&&(i=!1!==r.Eb(e,36)._handleBlurEvent(n.target)&&i),"ionSelect"===t&&(i=!1!==r.Eb(e,36)._handleIonSelect(n.target)&&i),i}),E.pb,E.z)),r.Ib(5120,null,M.e,(function(e){return[e]}),[T.Lb]),r.rb(35,49152,null,0,T.X,[r.h,r.k,r.x],{value:[0,"value"]},null),r.rb(36,4341760,null,0,T.Lb,[r.p,r.k],null,null)],(function(e,t){e(t,7,0,t.component.artikel),e(t,17,0,"m"),e(t,26,0,"f"),e(t,35,0,"n")}),(function(e,t){e(t,3,0,r.Eb(t,9).ngClassUntouched,r.Eb(t,9).ngClassTouched,r.Eb(t,9).ngClassPristine,r.Eb(t,9).ngClassDirty,r.Eb(t,9).ngClassValid,r.Eb(t,9).ngClassInvalid,r.Eb(t,9).ngClassPending)}))}function vt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"div",[["class","headerword"]],null,null,null,null,null)),(e()(),r.Lb(1,null,[" "," "," "])),(e()(),r.sb(2,0,null,null,7,"div",[["style"," display: flex; border-bottom: rgb(236, 233, 233) 1px solid"]],null,null,null,null,null)),(e()(),r.sb(3,0,null,null,6,"input",[["class","iputstyle"],["name","title"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r.Eb(e,4)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Eb(e,4).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Eb(e,4)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Eb(e,4)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(o.translation=n)&&i),i}),null,null)),r.rb(4,16384,null,0,M.b,[r.D,r.k,[2,M.a]],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[M.b]),r.rb(6,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(8,16384,null,0,M.g,[[4,M.f]],null,null),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(10,0,null,null,33,"div",[],null,null,null,null,null)),(e()(),r.sb(11,0,null,null,32,"ion-item",[],null,null,null,E.jb,E.u)),r.rb(12,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(13,0,null,0,3,"ion-label",[],null,null,null,E.kb,E.v)),r.rb(14,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.Lb(15,0,["",""])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(17,0,null,0,26,"ion-select",[["interface","popover"],["multiple","false"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionChange"],[null,"ionBlur"]],(function(e,t,n){var i=!0,o=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,19)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,19)._handleChangeEvent(n.target)&&i),"ngModelChange"===t&&(i=!1!==(o.wordType=n)&&i),"ionChange"===t&&(i=!1!==o.selected()&&i),i}),E.ub,E.E)),r.rb(18,49152,null,0,T.kb,[r.h,r.k,r.x],{interface:[0,"interface"],multiple:[1,"multiple"]},null),r.rb(19,4341760,null,0,T.Mb,[r.p,r.k],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[T.Mb]),r.rb(21,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(23,16384,null,0,M.g,[[4,M.f]],null,null),(e()(),r.sb(24,0,null,0,3,"ion-select-option",[["value","noun"]],null,null,null,E.tb,E.F)),r.rb(25,49152,null,0,T.lb,[r.h,r.k,r.x],{value:[0,"value"]},null),(e()(),r.Lb(26,0,["",""])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(28,0,null,0,3,"ion-select-option",[["value","verb"]],null,null,null,E.tb,E.F)),r.rb(29,49152,null,0,T.lb,[r.h,r.k,r.x],{value:[0,"value"]},null),(e()(),r.Lb(30,0,["",""])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(32,0,null,0,3,"ion-select-option",[["value","adjective"]],null,null,null,E.tb,E.F)),r.rb(33,49152,null,0,T.lb,[r.h,r.k,r.x],{value:[0,"value"]},null),(e()(),r.Lb(34,0,["",""])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(36,0,null,0,3,"ion-select-option",[["value","adverb"]],null,null,null,E.tb,E.F)),r.rb(37,49152,null,0,T.lb,[r.h,r.k,r.x],{value:[0,"value"]},null),(e()(),r.Lb(38,0,["",""])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(40,0,null,0,3,"ion-select-option",[["value","other"]],null,null,null,E.tb,E.F)),r.rb(41,49152,null,0,T.lb,[r.h,r.k,r.x],{value:[0,"value"]},null),(e()(),r.Lb(42,0,["",""])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.hb(16777216,null,null,1,null,pt)),r.rb(45,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(46,0,null,null,6,"div",[["class","divBtns"]],null,null,null,null,null)),(e()(),r.sb(47,0,null,null,2,"button",[["class","AddBtn"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addWord()&&r),r}),null,null)),(e()(),r.Lb(48,null,[" "," "])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(50,0,null,null,2,"button",[["class","closeBtn"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),null,null)),(e()(),r.Lb(51,null,[" "," "])),r.Fb(131072,F.i,[F.j,r.h])],(function(e,t){var n=t.component;e(t,6,0,"title",n.translation),e(t,18,0,"popover","false"),e(t,21,0,n.wordType),e(t,25,0,"noun"),e(t,29,0,"verb"),e(t,33,0,"adjective"),e(t,37,0,"adverb"),e(t,41,0,"other"),e(t,45,0,n.isSelectArticle())}),(function(e,t){var n=t.component;e(t,1,0,n.wordArtikel,n.word),e(t,3,0,r.wb(1,"",r.Mb(t,3,0,r.Eb(t,9).transform("CONTENT.AddNewWord.translation")),""),r.Eb(t,8).ngClassUntouched,r.Eb(t,8).ngClassTouched,r.Eb(t,8).ngClassPristine,r.Eb(t,8).ngClassDirty,r.Eb(t,8).ngClassValid,r.Eb(t,8).ngClassInvalid,r.Eb(t,8).ngClassPending),e(t,15,0,r.Mb(t,15,0,r.Eb(t,16).transform("CONTENT.AddNewWord.type"))),e(t,17,0,r.Eb(t,23).ngClassUntouched,r.Eb(t,23).ngClassTouched,r.Eb(t,23).ngClassPristine,r.Eb(t,23).ngClassDirty,r.Eb(t,23).ngClassValid,r.Eb(t,23).ngClassInvalid,r.Eb(t,23).ngClassPending),e(t,26,0,r.Mb(t,26,0,r.Eb(t,27).transform("CONTENT.AddNewWord.noun"))),e(t,30,0,r.Mb(t,30,0,r.Eb(t,31).transform("CONTENT.AddNewWord.verb"))),e(t,34,0,r.Mb(t,34,0,r.Eb(t,35).transform("CONTENT.AddNewWord.adjective"))),e(t,38,0,r.Mb(t,38,0,r.Eb(t,39).transform("CONTENT.AddNewWord.adverb"))),e(t,42,0,r.Mb(t,42,0,r.Eb(t,43).transform("CONTENT.AddNewWord.other"))),e(t,48,0,r.Mb(t,48,0,r.Eb(t,49).transform("CONTENT.AddNewWord.addBtn"))),e(t,51,0,r.Mb(t,51,0,r.Eb(t,52).transform("CONTENT.AddNewWord.closeBtn")))}))}var gt=r.ob("add-new-word",ft.a,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"add-new-word",[],null,null,null,vt,dt)),r.rb(1,1097728,null,0,ft.a,[T.Fb,T.Ob,F.j,h.a],null,null)],null,null)}),{},{},[]),mt=r.qb({encapsulation:0,styles:[['@font-face{font-family:BMitra;font-style:normal;font-weight:400;src:url(BMitra_p30download_com.064df6a1d375b7900c1e.eot);src:url(BMitra_p30download_com.064df6a1d375b7900c1e.eot) format("embedded-opentype"),url(BMitra_p30download_com.1f8b2560a3f3067c62c1.woff2) format("woff2"),url(BMitra_p30download_com.8560c05c70436abd039e.woff) format("woff"),url(BMitra_p30download_com.035ead3b383f1e422aad.ttf) format("truetype"),url(BMitra_p30download_com.eb5b90d00bc75d57d558.svg#BMitra_p30download_com) format("svg")}@font-face{font-family:SahelBlack;font-style:normal;font-weight:400;src:url(Sahel-Black.1ae8e586e79595014457.eot);src:url(Sahel-Bold.a0147ad1d03da743e2d6.eot) format("embedded-opentype"),url(Sahel-Black.6f682b927b5a87efbdad.woff) format("woff2"),url(Sahel-Black.6f682b927b5a87efbdad.woff) format("woff"),url(Sahel-Black.5d976e392434aea91948.ttf) format("truetype")}@font-face{font-family:SahelBlackFD;font-style:normal;font-weight:400;src:url(Sahel-Black-FD.bfac4b605bffd11de82c.eot);src:url(Sahel-Bold-FD.28a1f17b816e3a6f4bfd.eot) format("embedded-opentype"),url(Sahel-Black-FD.4afd4212e3b79605a70a.woff) format("woff2"),url(Sahel-Black-FD.4afd4212e3b79605a70a.woff) format("woff"),url(Sahel-Black-FD.575dd62713fe7344272a.ttf) format("truetype")}@font-face{font-family:Yekan;font-style:normal;font-weight:400;src:url(Yekan.6a51276de7a745c01c6c.eot);src:url(Yekan.6a51276de7a745c01c6c.eot) format("embedded-opentype"),url(Yekan.492984b84b9f05835f9c.woff) format("woff"),url(Yekan.6387a14a1aed237d8362.ttf) format("truetype"),url(Yekan.e831f22b63488286596b.svg) format("svg")}*[_ngcontent-%COMP%]{font-family:Yekan;font-size:17px;font-weight:700}*[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{text-transform:none}.persian[_ngcontent-%COMP%]{font-family:SahelBlackFD;font-size:17px;font-weight:700}html[_ngcontent-%COMP%]{height:100%;box-sizing:border-box}.emailAccount[_ngcontent-%COMP%]{padding-top:0;text-align:center;font-weight:400;color:#fff!important;margin-bottom:15px;margin-top:-5px}.input-cover[_ngcontent-%COMP%]{pointer-events:auto}ion-menu[_ngcontent-%COMP%]{height:100vh}ion-menu[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#ddf2ff}ion-menu[_ngcontent-%COMP%] .version[_ngcontent-%COMP%]{position:absolute;text-align:center;font-weight:100;bottom:10px;left:30%}ion-menu[_ngcontent-%COMP%] .version[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-weight:100}.my-custom-menu[_ngcontent-%COMP%]{--width:500px}ion-menu[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%]{--ion-background-color:white}.menu-list[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{margin:10px}.menu-toolbar[_ngcontent-%COMP%]{color:#fff;text-align:center}.menu-toolbar[_ngcontent-%COMP%] ion-thumbnail[_ngcontent-%COMP%]{margin:20px auto}.menu-toolbar[_ngcontent-%COMP%] ion-thumbnail[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:100px}.menu-content[_ngcontent-%COMP%]{--background:#fff}.menu-content[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%]{font-weight:100}']],data:{}});function yt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,5,"ion-item",[["ion-item",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleNightMode()&&r),r}),E.jb,E.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,1,"ion-icon",[["name","color-palette"]],null,null,null,E.fb,E.q)),r.rb(3,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.Lb(4,0,[" "," "])),r.Fb(131072,F.i,[F.j,r.h])],(function(e,t){e(t,3,0,"color-palette")}),(function(e,t){e(t,4,0,r.Mb(t,4,0,r.Eb(t,5).transform("MENU.lightMode")))}))}function bt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,5,"ion-item",[["ion-item",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleNightMode()&&r),r}),E.jb,E.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,1,"ion-icon",[["name","color-palette"]],null,null,null,E.fb,E.q)),r.rb(3,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.Lb(4,0,[" "," "])),r.Fb(131072,F.i,[F.j,r.h])],(function(e,t){e(t,3,0,"color-palette")}),(function(e,t){e(t,4,0,r.Mb(t,4,0,r.Eb(t,5).transform("MENU.nightMode")))}))}function kt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,64,"ion-app",[],null,null,null,E.P,E.a)),r.rb(1,49152,null,0,T.f,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,60,"ion-menu",[["contentId","content1"],["menuId","first"],["side","start"]],null,null,null,E.nb,E.y)),r.rb(3,49152,null,0,T.Q,[r.h,r.k,r.x],{contentId:[0,"contentId"],menuId:[1,"menuId"],side:[2,"side"]},null),(e()(),r.sb(4,0,null,0,12,"ion-header",[],null,null,null,E.eb,E.p)),r.rb(5,49152,null,0,T.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(6,0,null,0,10,"ion-toolbar",[["class","menu-toolbar"],["color","tertiary"]],null,null,null,E.Db,E.O)),r.rb(7,49152,null,0,T.zb,[r.h,r.k,r.x],{color:[0,"color"]},null),(e()(),r.sb(8,0,null,0,2,"ion-thumbnail",[],null,null,null,E.Ab,E.L)),r.rb(9,49152,null,0,T.wb,[r.h,r.k,r.x],null,null),(e()(),r.sb(10,0,null,0,0,"img",[["src","assets/img/appStoreIcon.png"]],null,null,null,null,null)),(e()(),r.sb(11,0,null,0,3,"ion-title",[],null,null,null,E.Bb,E.M)),r.rb(12,49152,null,0,T.xb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(13,0,["",""])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(15,0,null,0,1,"div",[["class","emailAccount"]],null,null,null,null,null)),(e()(),r.Lb(16,null,["",""])),(e()(),r.sb(17,0,null,0,45,"ion-content",[["class","menu-content"]],null,null,null,E.Y,E.j)),r.rb(18,49152,null,0,T.u,[r.h,r.k,r.x],null,null),(e()(),r.sb(19,0,null,0,43,"ion-list",[["class","menu-list"]],null,null,null,E.mb,E.w)),r.rb(20,49152,null,0,T.O,[r.h,r.k,r.x],null,null),(e()(),r.sb(21,0,null,0,5,"ion-item",[["ion-item",""],["side","left"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openPage("profile")&&r),r}),E.jb,E.u)),r.rb(22,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(23,0,null,0,1,"ion-icon",[["name","person"],["side","right"]],null,null,null,E.fb,E.q)),r.rb(24,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.Lb(25,0,[" "," "])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(27,0,null,0,4,"ion-item",[["ion-item",""],["side","left"]],[[8,"hidden",0]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openPage("profile")&&r),r}),E.jb,E.u)),r.rb(28,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(29,0,null,0,1,"ion-icon",[["ios","ios-person"],["md","md-person"],["side","right"]],null,null,null,E.fb,E.q)),r.rb(30,49152,null,0,T.C,[r.h,r.k,r.x],{ios:[0,"ios"],md:[1,"md"]},null),(e()(),r.Lb(-1,0,[" profile "])),(e()(),r.sb(32,0,null,0,8,"ion-item",[["ion-item",""]],[[8,"hidden",0]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openPage("wallet")&&r),r}),E.jb,E.u)),r.rb(33,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(34,0,null,0,1,"ion-icon",[["name","ios-card"]],null,null,null,E.fb,E.q)),r.rb(35,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.Lb(-1,0,[" Credit "])),(e()(),r.sb(37,0,null,0,3,"div",[["style","float:right"]],null,null,null,null,null)),(e()(),r.Lb(38,null,[""," "])),(e()(),r.sb(39,0,null,null,1,"ion-icon",[["class","star"],["name","star"]],null,null,null,E.fb,E.q)),r.rb(40,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(41,0,null,0,5,"ion-item",[["ion-item",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openPage("invite")&&r),r}),E.jb,E.u)),r.rb(42,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(43,0,null,0,1,"ion-icon",[["name","people"]],null,null,null,E.fb,E.q)),r.rb(44,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.Lb(45,0,[" "," "])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.hb(16777216,null,0,1,null,yt)),r.rb(48,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,bt)),r.rb(50,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(51,0,null,0,5,"ion-item",[["ion-item",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openPage("settings")&&r),r}),E.jb,E.u)),r.rb(52,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(53,0,null,0,1,"ion-icon",[["name","settings"]],null,null,null,E.fb,E.q)),r.rb(54,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.Lb(55,0,[" "," "])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(57,0,null,0,5,"ion-item",[["ion-item",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openPage("support")&&r),r}),E.jb,E.u)),r.rb(58,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(59,0,null,0,1,"ion-icon",[["name","logo-whatsapp"]],null,null,null,E.fb,E.q)),r.rb(60,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.Lb(61,0,[" "," "])),r.Fb(131072,F.i,[F.j,r.h]),(e()(),r.sb(63,16777216,null,0,1,"ion-router-outlet",[["id","content1"]],null,null,null,null,null)),r.rb(64,212992,null,0,T.fb,[N.b,r.O,r.j,[8,null],[8,null],T.e,T.Gb,V.g,r.k,N.m,r.x,N.a,[3,T.fb]],null,null)],(function(e,t){var n=t.component;e(t,3,0,"content1","first","start"),e(t,7,0,"tertiary"),e(t,24,0,"person"),e(t,30,0,"ios-person","md-person"),e(t,35,0,"ios-card"),e(t,40,0,"star"),e(t,44,0,"people"),e(t,48,0,n.isThemeNightMoode()),e(t,50,0,!n.isThemeNightMoode()),e(t,54,0,"settings"),e(t,60,0,"logo-whatsapp"),e(t,64,0)}),(function(e,t){var n=t.component;e(t,13,0,r.Mb(t,13,0,r.Eb(t,14).transform("BAYADIC"))),e(t,16,0,n.userManager.user.email),e(t,25,0,r.Mb(t,25,0,r.Eb(t,26).transform("MENU.accountBtn"))),e(t,27,0,!0),e(t,32,0,!0),e(t,38,0,n.userManager.user.credit),e(t,45,0,r.Mb(t,45,0,r.Eb(t,46).transform("MENU.inviteFriends"))),e(t,55,0,r.Mb(t,55,0,r.Eb(t,56).transform("TITLE.settings"))),e(t,61,0,r.Mb(t,61,0,r.Eb(t,62).transform("TITLE.support")))}))}var _t=r.ob("app-root",b,(function(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"app-root",[],null,null,null,kt,mt)),r.rb(1,49152,null,0,b,[T.Jb,c,s.a,g.a,h.a,d.a,f.a,N.m,p.a,v.a,T.Fb,T.Eb,F.j],null,null)],null,null)}),{},{},[]),Ct=n("QQfA"),wt=n("s6ns"),St=n("IheW"),Ot=n("cUpR"),xt=n("6GXZ"),Et=n("GAbP"),Tt=n("KX/v"),Mt=n("xoVG"),At=n("2XxT"),It=n("gCtI"),Pt=n("AyaB"),Dt=n("z0vp"),Nt=n("D2Vb"),jt=n("0FpF"),Rt=n("k82s"),Lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.c)(t,e),t.prototype.getProducts=function(e){return Object(u.cordova)(this,"getProducts",{otherPromise:!0},arguments)},t.prototype.buy=function(e){return Object(u.cordova)(this,"buy",{otherPromise:!0},arguments)},t.prototype.subscribe=function(e){return Object(u.cordova)(this,"subscribe",{otherPromise:!0},arguments)},t.prototype.consume=function(e,t,n){return Object(u.cordova)(this,"consume",{otherPromise:!0},arguments)},t.prototype.restorePurchases=function(){return Object(u.cordova)(this,"restorePurchases",{otherPromise:!0},arguments)},t.prototype.getReceipt=function(){return Object(u.cordova)(this,"getReceipt",{otherPromise:!0,platforms:["iOS"]},arguments)},t.pluginName="InAppPurchase",t.plugin="cordova-plugin-inapppurchase",t.pluginRef="inAppPurchase",t.repo="https://github.com/AlexDisler/cordova-plugin-inapppurchase",t.platforms=["Android","iOS"],t}(u.IonicNativePlugin),Ft=n("F9l0"),Bt=n("CjQN"),Vt=n("2TGb"),Ht=n("Zr1d"),zt=n("t8sF"),$t=n("sSFc"),qt=function(){function e(t,n,r){_classCallCheck(this,e),this.elementRef=t,this.keyboard=n,this.platform=r}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.platform.is("cordova")&&this.platform.is("ios")&&(this.onShowSubscription=this.keyboard.onKeyboardShow().subscribe((function(t){return e.onShow(t)})),this.onHideSubscription=this.keyboard.onKeyboardHide().subscribe((function(){return e.onHide()})))}},{key:"ngOnDestroy",value:function(){this.onShowSubscription&&this.onShowSubscription.unsubscribe(),this.onHideSubscription&&this.onHideSubscription.unsubscribe()}},{key:"onShow",value:function(e){this.setElementPosition(e.keyboardHeight||e.detail&&e.detail.keyboardHeight)}},{key:"onHide",value:function(){this.setElementPosition(0)}},{key:"setElementPosition",value:function(e){this.elementRef.nativeElement.style.paddingBottom=e+"px"}}]),e}(),Ut=n("FUig"),Wt=n("0K09"),Gt=n("nfSX"),Xt=n("W7t7"),Jt=n("MF7w"),Qt=n("LKtr"),Zt=n("xNyf"),Yt=n("kNMb"),Kt=n("ZZmf"),en=n("PJj0"),tn=n("33wr"),nn=n("xq9V"),rn=n("tAnt"),on=function(){function e(t,n,r,i,o,a,s){var l=this;_classCallCheck(this,e),this.http=t,this.ajaxBridge=n,this.platform=r,this.storageManager=i,this.socketManager=o,this.events=a,this.modalCtrl=s,console.log("Hello ProductManagerProvider Provider"),this.platform.ready().then((function(){l.askRescue()}))}return _createClass(e,[{key:"registerEvents",value:function(){var e=this;this.events.subscribe(y.c.platformReady,(function(){e.storageManager.get("version").then((function(t){null!=t&&e.ajaxBridge.rescue(t).then((function(t){e.getReaction(t)}))}))}))}},{key:"getReaction",value:function(e){var t=JSON.parse(e);if(t.error)switch(t.action){case"updateApp":this.askUpdateApp(t);break;case"updateWebservers":this.updateWebservers(t);break;case"updateAjaxUrl":this.updateAjaxUrl(t);break;case"updateAdsSetting":this.updateAdsSetting(t)}}},{key:"askUpdateApp",value:function(e){return l.a(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=new rn.a([])).setLang("fa"),n.titleFa="Update APP",n.descriptionFa=e.msg,t.next=6,this.modalCtrl.create({component:_e,componentProps:{collection:n}});case 6:t.sent.present();case 7:case"end":return t.stop()}}),t,this)})))}},{key:"updateWebservers",value:function(e){console.log("intresting",e),this.storageManager.set("webserver",e.webserver),this.storageManager.set("version",e.version),this.socketManager.websocket_server=e.webserver}},{key:"updateAjaxUrl",value:function(e){this.storageManager.set("ajaxUrl",e.ajaxUrl),this.storageManager.set("version",e.version),this.ajaxBridge.ajaxControllerServerUrl=e.ajaxUrl}},{key:"updateAdsSetting",value:function(e){this.storageManager.set("adsTimePeriod",e.adsTimePeriod),this.storageManager.set("canShownAdsNumber",e.canShownAdsNumber),this.storageManager.set("version",e.version),this.socketManager.adsTimePeriod=e.period}},{key:"askRescue",value:function(){var e=this;this.storageManager.get("version").then((function(t){null!=t?e.ajaxBridge.rescue(t).then((function(t){e.getReaction(t)})):e.storageManager.set("version","0")}))}}]),e}(),an=n("AcVp"),sn=n("1Zg0"),ln=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"getCopiedData",value:function(){}},{key:"setupListener",value:function(){}}]),e}(),un=n("+her"),cn=function(){function e(t,n,r){_classCallCheck(this,e),this.bubbleCopy=t,this.settingsManager=n,this.router=r;var i=this;document.addEventListener("resume",(function(){i.onResume()}),!1)}return _createClass(e,[{key:"init",value:function(e){var t=this;this.itemsPage=e;var n=function(e){console.log(JSON.stringify(e,void 0,2))};try{this.settingsManager.getBubbleCopyStatus().then((function(e){null==e||1==e?cordova.plugins.bubble.setupListener("setting it up",n,t.onFailur):0==e&&cordova.plugins.bubble.stopBubbleCopy("stop it",n,t.onFailur)}))}catch(r){console.log(" exception ",r)}}},{key:"onResume",value:function(){this.getCopiedData()}},{key:"getCopiedData",value:function(){var e=this;try{cordova.plugins.bubble.getCopiedData("getting copied data",(function(t){e.onCatchedCopiedData(t)}),this.onFailur)}catch(t){console.warn("exception",t)}}},{key:"onCatchedCopiedData",value:function(e){var t=this;if(e.length>0){var n,r=_createForOfIteratorHelper(this.itemsPage.itemsManager.items);try{for(r.s();!(n=r.n()).done;){var i=n.value;if("dictionary"==i.type)return this.itemsPage.initChat(i).then((function(n){e.indexOf(" ")>=0&&(e=e.split(" ")[0]),n.setClipBoardText(e),t.handleDataNavigation(n)})),!0}}catch(o){r.e(o)}finally{r.f()}}}},{key:"handleDataNavigation",value:function(e){var t=this.router.activated.instance;if("ChatPage"==t.name){var n=t;n.chatInputComp.msg=e.getClipBoardText(),n.chatInputComp.enableSendBtn(!0),n.chatInputComp.suggestWords(),n.ionViewDidEnter()}else this.currentChatPage=un.a,this.itemsPage.navCtrl.navigateRoot("chat").then((function(){e.setViewLoaded(!0)}))}},{key:"onFailur",value:function(e){console.log(JSON.stringify(e,void 0,2))}}]),e}(),hn=n("BNVH"),fn=n("iEnR"),dn=n("a6b8"),pn=function(){return n.e(15).then(n.bind(null,"k0NV")).then((function(e){return e.InvitationModuleNgFactory}))},vn=function(){return n.e(14).then(n.bind(null,"tG1O")).then((function(e){return e.ContactModuleNgFactory}))},gn=function(){return Promise.all([n.e(0),n.e(17)]).then(n.bind(null,"cfIE")).then((function(e){return e.SettingsModuleNgFactory}))},mn=function(){return Promise.all([n.e(0),n.e(10)]).then(n.bind(null,"MuPt")).then((function(e){return e.ProfileModuleNgFactory}))},yn=function(){return n.e(16).then(n.bind(null,"tUix")).then((function(e){return e.ItemsModuleNgFactory}))},bn=function(){return n.e(12).then(n.bind(null,"tSmu")).then((function(e){return e.ChatModuleNgFactory}))},kn=function(){return n.e(13).then(n.bind(null,"wGt0")).then((function(e){return e.CollectionsModuleNgFactory}))},_n=function(){return n.e(11).then(n.bind(null,"L6id")).then((function(e){return e.HomePageModuleNgFactory}))},Cn=function e(){_classCallCheck(this,e)},wn=n("d1S0"),Sn=n("Xd0L"),On=n("BzsH"),xn=n("zMNK"),En=n("/HVE"),Tn=n("hOhj"),Mn=n("Gi4r"),An=n("L8C7"),In=n("FpXt"),Pn=n("fILq"),Dn=function e(){_classCallCheck(this,e)},Nn=function e(){_classCallCheck(this,e)},jn=r.pb(a,[b],(function(e){return r.Bb([r.Cb(512,r.j,r.ab,[[8,[k.a,_.a,C.a,w.a,S.a,O.a,x.a,L,Z,ne,ce,ge,ke,Se,Te,Ne,Ve,Xe,Ke,ht,gt,_t]],[3,r.j],r.v]),r.Cb(5120,r.s,r.mb,[[3,r.s]]),r.Cb(4608,V.m,V.l,[r.s,[2,V.z]]),r.Cb(4608,T.c,T.c,[r.x,r.g]),r.Cb(4608,T.Fb,T.Fb,[T.c,r.j,r.p]),r.Cb(4608,T.Kb,T.Kb,[T.c,r.j,r.p]),r.Cb(4608,Ct.a,Ct.a,[Ct.g,Ct.c,r.j,Ct.f,Ct.d,r.p,r.x,V.d,et.c,[2,V.g]]),r.Cb(5120,Ct.h,Ct.i,[Ct.a]),r.Cb(5120,wt.b,wt.c,[Ct.a]),r.Cb(135680,wt.d,wt.d,[Ct.a,r.p,[2,V.g],[2,wt.a],wt.b,[3,wt.d],Ct.c]),r.Cb(4608,M.k,M.k,[]),r.Cb(4608,D.c,D.c,[]),r.Cb(4608,D.i,D.b,[]),r.Cb(5120,D.k,D.l,[]),r.Cb(4608,D.j,D.j,[D.c,D.i,D.k]),r.Cb(4608,D.h,D.a,[]),r.Cb(5120,D.e,D.m,[D.j,D.h]),r.Cb(4608,St.h,St.n,[V.d,r.z,St.l]),r.Cb(4608,St.o,St.o,[St.h,St.m]),r.Cb(5120,St.a,(function(e){return[e]}),[St.o]),r.Cb(4608,St.k,St.k,[]),r.Cb(6144,St.i,null,[St.k]),r.Cb(4608,St.g,St.g,[St.i]),r.Cb(6144,St.b,null,[St.g]),r.Cb(4608,St.f,St.j,[St.b,r.p]),r.Cb(4608,St.c,St.c,[St.f]),r.Cb(5120,r.ib,r.nb,[r.x]),r.Cb(5120,r.c,r.jb,[]),r.Cb(5120,r.q,r.kb,[]),r.Cb(5120,r.r,r.lb,[]),r.Cb(4608,Ot.b,Ot.k,[V.d]),r.Cb(6144,r.G,null,[Ot.b]),r.Cb(4608,Ot.e,Ot.g,[]),r.Cb(5120,Ot.c,(function(e,t,n,r,i,o,a,s){return[new Ot.i(e,t,n),new Ot.n(r),new Ot.m(i,o,a,s)]}),[V.d,r.x,r.z,V.d,V.d,Ot.e,r.bb,[2,Ot.f]]),r.Cb(4608,Ot.d,Ot.d,[Ot.c,r.x]),r.Cb(135680,Ot.l,Ot.l,[V.d]),r.Cb(4608,Ot.j,Ot.j,[Ot.d,Ot.l,r.c]),r.Cb(6144,r.E,null,[Ot.j]),r.Cb(6144,Ot.o,null,[Ot.l]),r.Cb(4608,r.M,r.M,[r.x]),r.Cb(5120,P.b,P.d,[P.c]),r.Cb(4608,d.a,d.a,[D.e,P.b]),r.Cb(4608,xt.a,xt.a,[]),r.Cb(4608,g.a,g.a,[]),r.Cb(4608,Et.a,Et.a,[xt.a,g.a,r.p,T.Jb]),r.Cb(4608,A.a,A.a,[D.e,d.a,T.Db]),r.Cb(4608,Tt.a,Tt.a,[]),r.Cb(4608,q.a,q.a,[D.e,Tt.a,T.Fb,d.a,U.a,T.Jb]),r.Cb(4608,Mt.a,Mt.a,[]),r.Cb(4608,At.a,At.a,[D.e,U.a]),r.Cb(4608,It.a,It.a,[D.e,At.a,U.a]),r.Cb(4608,v.a,v.a,[r.p,d.a,q.a,Mt.a,T.Jb,It.a,At.a,g.a,U.a]),r.Cb(4608,h.a,h.a,[d.a,A.a]),r.Cb(4608,H.a,H.a,[d.a,Et.a,v.a,T.Jb,g.a,h.a,U.a]),r.Cb(4608,Pt.a,Pt.a,[xt.a,g.a,r.p,T.Jb]),r.Cb(4608,$.a,$.a,[d.a,h.a,v.a,Pt.a,g.a,T.Jb,U.a,A.a]),r.Cb(4608,Dt.a,Dt.a,[xt.a,g.a,r.p,T.Jb]),r.Cb(4608,ae.a,ae.a,[v.a,Dt.a,r.p]),r.Cb(4608,Nt.a,Nt.a,[]),r.Cb(4608,F.k,F.k,[]),r.Cb(5120,F.f,o,[St.c]),r.Cb(4608,F.c,F.e,[]),r.Cb(4608,F.h,F.d,[]),r.Cb(4608,F.b,F.a,[]),r.Cb(4608,F.j,F.j,[F.k,F.f,F.c,F.h,F.b,F.l,F.m]),r.Cb(4608,jt.a,jt.a,[D.e,Nt.a,F.j,d.a]),r.Cb(4608,z.a,z.a,[D.e,d.a,Et.a,A.a,H.a,$.a,ae.a,q.a,T.Jb,g.a,v.a,T.Fb,jt.a,U.a,h.a]),r.Cb(5120,N.a,N.y,[N.m]),r.Cb(4608,N.g,N.g,[]),r.Cb(6144,N.h,null,[N.g]),r.Cb(135680,N.p,N.p,[N.m,r.u,r.i,r.p,N.h]),r.Cb(4608,N.e,N.e,[]),r.Cb(5120,N.D,N.u,[N.m,V.r,N.i]),r.Cb(5120,N.j,N.B,[N.z]),r.Cb(5120,r.b,(function(e){return[e]}),[N.j]),r.Cb(4608,s.a,s.a,[]),r.Cb(4608,c,c,[]),r.Cb(4608,Rt.a,Rt.a,[]),r.Cb(4608,Lt,Lt,[]),r.Cb(4608,Ft.a,Ft.a,[]),r.Cb(4608,Bt.a,Bt.a,[]),r.Cb(4608,Vt.a,Vt.a,[]),r.Cb(4608,Ht.a,Ht.a,[]),r.Cb(4608,zt.a,zt.a,[]),r.Cb(4608,$t.a,$t.a,[]),r.Cb(135680,qt,qt,[r.k,Ht.a,T.Jb]),r.Cb(4608,Ut.a,Ut.a,[]),r.Cb(4608,Wt.a,Wt.a,[]),r.Cb(4608,Gt.a,Gt.a,[]),r.Cb(4608,Xt.a,Xt.a,[xt.a,g.a,r.p,T.Jb]),r.Cb(4608,Jt.a,Jt.a,[Xt.a]),r.Cb(4608,p.a,p.a,[v.a,g.a,d.a,h.a,T.b,U.a,F.j]),r.Cb(4608,Qt.a,Qt.a,[D.e]),r.Cb(4608,Zt.a,Zt.a,[D.e]),r.Cb(4608,Yt.a,Yt.a,[v.a,h.a,U.a,g.a]),r.Cb(4608,Kt.a,Kt.a,[D.e,Gt.a,d.a,h.a,v.a,T.Jb]),r.Cb(4608,f.a,f.a,[D.e,d.a,Kt.a]),r.Cb(4608,en.a,en.a,[D.e,T.Jb,Et.a,F.j,Rt.a]),r.Cb(4608,tn.a,tn.a,[xt.a,g.a,r.p,T.Jb]),r.Cb(4608,nn.a,nn.a,[D.e,tn.a,en.a,T.Jb,Et.a]),r.Cb(4608,on,on,[D.e,A.a,T.Jb,d.a,v.a,U.a,T.Fb]),r.Cb(4608,an.a,an.a,[]),r.Cb(4608,sn.a,sn.a,[T.Fb]),r.Cb(4608,ln,ln,[]),r.Cb(135680,N.o,N.o,[N.b,r.O,r.j,"name",r.h]),r.Cb(4608,cn,cn,[ln,f.a,N.o]),r.Cb(4608,nt.a,nt.a,[$t.a,zt.a,D.e,r.p]),r.Cb(4608,hn.a,hn.a,[St.c,r.p,T.Gb]),r.Cb(4608,fn.a,fn.a,[xt.a,g.a,r.p,T.Jb]),r.Cb(4608,dn.a,dn.a,[fn.a,v.a]),r.Cb(1073742336,V.c,V.c,[]),r.Cb(1073742336,T.Bb,T.Bb,[]),r.Cb(1024,N.s,N.w,[[3,N.m]]),r.Cb(1024,r.l,Ot.p,[]),r.Cb(1024,r.w,(function(){return[N.t()]}),[]),r.Cb(512,N.z,N.z,[r.p]),r.Cb(256,T.Pb,void 0,[]),r.Cb(1024,r.d,(function(e,t,n,r,i){return[Ot.q(e),N.A(t),T.Qb(n,r,i)]}),[[2,r.w],N.z,T.Pb,V.d,r.x]),r.Cb(512,r.e,r.e,[[2,r.d]]),r.Cb(131584,r.g,r.g,[r.x,r.bb,r.p,r.l,r.j,r.e]),r.Cb(512,N.r,N.c,[]),r.Cb(512,N.b,N.b,[]),r.Cb(256,N.i,{preloadingStrategy:N.g},[]),r.Cb(1024,V.h,N.v,[V.p,[2,V.a],N.i]),r.Cb(512,V.g,V.g,[V.h,V.p]),r.Cb(512,r.i,r.i,[]),r.Cb(512,r.u,r.J,[r.i,[2,r.K]]),r.Cb(1024,N.k,(function(){return[[{path:"",component:He.a},{path:"items",component:He.a}],[{path:"",redirectTo:"items",pathMatch:"full"},{path:"activation",component:I},{path:"support",component:W},{path:"invite",loadChildren:pn},{path:"contact",loadChildren:vn},{path:"settings",loadChildren:gn},{path:"profile",loadChildren:mn},{path:"items",loadChildren:yn},{path:"chat",loadChildren:bn},{path:"collections",loadChildren:kn},{path:"home",loadChildren:_n}]]}),[]),r.Cb(512,N.l,T.Cb,[]),r.Cb(1024,N.m,N.x,[r.g,N.r,N.b,V.g,r.p,r.u,r.i,N.k,N.i,[2,N.q],[2,N.l]]),r.Cb(1073742336,N.n,N.n,[[2,N.s],[2,N.m]]),r.Cb(1073742336,wn.a,wn.a,[]),r.Cb(1073742336,et.a,et.a,[]),r.Cb(1073742336,Sn.b,Sn.b,[[2,Sn.a],[2,Ot.f]]),r.Cb(1073742336,On.b,On.b,[]),r.Cb(1073742336,xn.f,xn.f,[]),r.Cb(1073742336,En.b,En.b,[]),r.Cb(1073742336,Tn.b,Tn.b,[]),r.Cb(1073742336,Ct.e,Ct.e,[]),r.Cb(1073742336,wt.g,wt.g,[]),r.Cb(1073742336,Mn.a,Mn.a,[]),r.Cb(1073742336,An.a,An.a,[]),r.Cb(1073742336,M.j,M.j,[]),r.Cb(1073742336,M.c,M.c,[]),r.Cb(1073742336,D.f,D.f,[]),r.Cb(1073742336,F.g,F.g,[]),r.Cb(1073742336,In.a,In.a,[]),r.Cb(1073742336,Pn.a,Pn.a,[]),r.Cb(1073742336,Dn,Dn,[]),r.Cb(1073742336,St.e,St.e,[]),r.Cb(1073742336,St.d,St.d,[]),r.Cb(1073742336,r.f,r.f,[r.g]),r.Cb(1073742336,Ot.a,Ot.a,[[3,Ot.a]]),r.Cb(1073742336,Nn,Nn,[]),r.Cb(1073742336,Cn,Cn,[]),r.Cb(1073742336,P.a,P.a,[]),r.Cb(1073742336,a,a,[]),r.Cb(256,St.l,"XSRF-TOKEN",[]),r.Cb(256,St.m,"X-XSRF-TOKEN",[]),r.Cb(256,r.Z,!0,[]),r.Cb(256,P.c,null,[]),r.Cb(256,F.l,void 0,[]),r.Cb(256,F.m,!0,[])])}));Object(r.S)(),Ot.h().bootstrapModuleFactory(jn).catch((function(e){return console.log(e)}))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,1]]]);