diff --git a/docs/LICENSE.txt b/docs/LICENSE.txt
new file mode 100644
index 00000000..856b5783
--- /dev/null
+++ b/docs/LICENSE.txt
@@ -0,0 +1,63 @@
+Creative Commons Attribution 3.0 Unported
+http://creativecommons.org/licenses/by/3.0/
+
+License
+
+THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
+
+BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
+
+1. Definitions
+
+ 1. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License.
+ 2. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License.
+ 3. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership.
+ 4. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License.
+ 5. "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast.
+ 6. "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work.
+ 7. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
+ 8. "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images.
+ 9. "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium.
+
+2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws.
+
+3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
+
+ 1. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections;
+ 2. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified.";
+ 3. to Distribute and Publicly Perform the Work including as incorporated in Collections; and,
+ 4. to Distribute and Publicly Perform Adaptations.
+ 5.
+
+ For the avoidance of doubt:
+ 1. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License;
+ 2. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and,
+ 3. Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License.
+
+The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved.
+
+4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
+
+ 1. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(b), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(b), as requested.
+ 2. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4 (b) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.
+ 3. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise.
+
+5. Representations, Warranties and Disclaimer
+
+UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
+
+6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+7. Termination
+
+ 1. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
+ 2. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
+
+8. Miscellaneous
+
+ 1. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
+ 2. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
+ 3. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
+ 4. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
+ 5. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
+ 6. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law.
diff --git a/docs/README.txt b/docs/README.txt
new file mode 100644
index 00000000..ea1d88b1
--- /dev/null
+++ b/docs/README.txt
@@ -0,0 +1,33 @@
+Directive by HTML5 UP
+html5up.net | @ajlkn
+Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
+
+
+A simple single pager built around an angular motif (powered by SVG awesomeness).
+Should work great for a landing page. Also includes default styling for a bunch of
+standard page elements (uncomment the huge block of commented-out HTML to see it).
+
+Demo images* courtesy of Unsplash, a radtastic collection of CC0 (public domain) images
+you can use for pretty much whatever.
+
+(* = Not included)
+
+Feedback, bug reports, and comments are not only welcome, but strongly encouraged :)
+
+AJ
+aj@lkn.io | @ajlkn
+
+PS: Not sure how to get that contact form working? Give formspree.io a try (it's awesome).
+
+
+Credits:
+
+ Demo Images:
+ Unsplash (unsplash.com)
+
+ Icons:
+ Font Awesome (fontawesome.io)
+
+ Other:
+ jQuery (jquery.com)
+ Responsive Tools (github.com/ajlkn/responsive-tools)
\ No newline at end of file
diff --git a/docs/app/3rdpartylicenses.txt b/docs/app/3rdpartylicenses.txt
new file mode 100644
index 00000000..99cac9f6
--- /dev/null
+++ b/docs/app/3rdpartylicenses.txt
@@ -0,0 +1,49 @@
+simplebar@3.0.0-beta.1
+MIT
+MIT
+
+core-js@2.5.7
+MIT
+Copyright (c) 2014-2018 Denis Pushkarev
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+zone.js@0.8.26
+MIT
+The MIT License
+
+Copyright (c) 2016-2018 Google, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/docs/app/favicon.ico b/docs/app/favicon.ico
new file mode 100644
index 00000000..8081c7ce
Binary files /dev/null and b/docs/app/favicon.ico differ
diff --git a/docs/app/index.html b/docs/app/index.html
new file mode 100644
index 00000000..35ae80c4
--- /dev/null
+++ b/docs/app/index.html
@@ -0,0 +1,21 @@
+
+
+
+
+
+ Sengi
+
+
+
+
+
+
+
+
+
+
+ loading...
+
+
+
+
\ No newline at end of file
diff --git a/docs/app/main.91f8e52f4af65dd2f000.js b/docs/app/main.91f8e52f4af65dd2f000.js
new file mode 100644
index 00000000..b34fad6f
--- /dev/null
+++ b/docs/app/main.91f8e52f4af65dd2f000.js
@@ -0,0 +1 @@
+(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{4:function(t,e,n){t.exports=n("zUnb")},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},zUnb:function(t,e,n){"use strict";n.r(e);var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function l(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function c(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(G);function tt(t){return t}function et(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),$(tt,t)}var nt=function(t){function e(){var n=t.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,e.prototype),n}return o(e,t),e}(Error),rt=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return o(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(S),ot=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return o(e,t),e}(T),it=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o(e,t),e.prototype[x]=function(){return new ot(this)},e.prototype.lift=function(t){var e=new at(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new nt;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(T),ct=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new S).add(this.source.subscribe(new ht(this.getSubject(),this))),t.closed?(this._connection=null,t=S.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return st()(this)},e}(N).prototype,pt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ct._subscribe},_isComplete:{value:ct._isComplete,writable:!0},getSubject:{value:ct.getSubject},connect:{value:ct.connect},refCount:{value:ct.refCount}},ht=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(ot);function ft(){return new it}function dt(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}var yt=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?dt({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),vt="__parameters__";function gt(t,e,n){var r=function(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];o.push(i+":"+("string"==typeof a?JSON.stringify(a):Ot(a)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Zt,"\n ")}function Xt(t,e){return new Error($t(t,e))}var Yt=void 0;function te(t){var e=Yt;return Yt=t,e}function ee(t,e){if(void 0===e&&(e=0),void 0===Yt)throw new Error("inject() must be called from an injection context");if(null===Yt){var n=t.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&e)return null;throw new Error("Injector: NOT_FOUND ["+Ot(t)+"]")}return Yt.get(t,8&e?null:void 0,e)}function ne(t){for(var e=[],n=0;n0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,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(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),cn=function(){function t(){this._applications=new Map,pn.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),pn.findTestabilityInTree(this,t,e)},t.ctorParameters=function(){return[]},t}(),pn=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),hn=!0,fn=!1,dn=new yt("AllowMultipleToken");function yn(){return fn=!0,hn}var vn=function(t,e){this.name=t,this.token=e};function gn(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new yt(r);return function(e){void 0===e&&(e=[]);var i=mn();if(!i||i.injector.get(dn,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var a=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(sn&&!sn.destroyed&&!sn.injector.get(dn,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");sn=t.get(bn);var e=t.get(Pe,null);e&&e.forEach(function(t){return t()})}(Lt.create({providers:a,name:r}))}return function(t){var e=mn();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function mn(){return sn&&!sn.destroyed?sn:null}var bn=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new un:("zone.js"===n?void 0:n)||new tn({enableLongStackTrace:yn()}),i=[{provide:tn,useValue:o}];return o.run(function(){var e=Lt.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get(pe,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Cn(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,o){try{var i=((a=n.injector.get(Te)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return Se(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var a}(a,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(je),o=_n({},e);return r.createCompiler([o]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,o)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(wn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Ot(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function _n(t,e){return Array.isArray(e)?e.reduce(_n,t):i({},t,e)}var wn=function(){function t(t,e,n,r,o,i){var a=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=yn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new N(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),u=new N(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){tn.assertNotInAngularZone(),xt(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){tn.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof N?t[0]:et(n)(K(t,r))}(s,u.pipe(function(t){return st()((e=ft,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,pt);return r.source=t,r.subjectFactory=n,r})(t));var e}))}return t.prototype.bootstrap=function(t,e){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=t instanceof Ue?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof We?null:this._injector.get(Ze),i=n.create(Lt.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var a=i.injector.get(ln,null);return a&&i.injector.get(cn).registerApplication(i.location.nativeElement,a),this._loadComponent(i),yn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,Xe(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Cn(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ne,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Cn(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=$e("ApplicationRef#tick()"),t}();function Cn(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Sn=function(){},En=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),xn=function(){},Tn=function(t){this.nativeElement=t},On=function(){},An=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Ye,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[Et()]=function(){return this._results[Et()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),kn=function(){},Pn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Rn=function(){function t(t,e){this._compiler=t,this._config=e||Pn}return t.prototype.load=function(t){return this._compiler instanceof Me?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=l(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("crnd")(o).then(function(t){return t[i]}).then(function(t){return Nn(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=l(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return Nn(t,r,o)})},t}();function Nn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var In=function(){},Dn=function(){},Mn=function(){},jn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Vn?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Vn=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,c([o+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof Vn&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof Vn&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof Vn&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(jn),Un=new Map;function Ln(t){return Un.get(t)||null}function Fn(t){Un.set(t.nativeNode,t)}function Hn(t,e){var n=qn(t),r=qn(e);return n&&r?function(t,e,n){for(var r=t[Et()](),o=e[Et()]();;){var i=r.next(),a=o.next();if(i.done&&a.done)return!0;if(i.done||a.done)return!1;if(!n(i.value,a.value))return!1}}(t,e,Hn):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||Tt(t,e)}var zn=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),Bn=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function qn(t){return!!Gn(t)&&(Array.isArray(t)||!(t instanceof Map)&&Et()in t)}function Gn(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Wn=function(){function t(){}return t.prototype.supports=function(t){return qn(t)},t.prototype.create=function(t){return new Qn(t)},t}(),Zn=function(t,e){return e},Qn=function(){function t(t){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||Zn}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex ',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML=' ',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t="
"+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=" "+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Er.hasOwnProperty(e)&&!_r.hasOwnProperty(e)&&(this.buf.push(""),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(Rr(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),kr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Pr=/([^\#-~ |!])/g;function Rr(t){return t.replace(/&/g,"&").replace(kr,function(t){return""+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Pr,function(t){return""+t.charCodeAt(0)+";"}).replace(//g,">")}function Nr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ir=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"),Dr=/^url\(([^)]+)\)$/,Mr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),jr=function(){};function Vr(t,e,n){var r=t.state,o=1792&r;return o===e?(t.state=-1793&r|n,t.initIndex=-1,!0):o===n}function Ur(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Lr(t,e){return t.nodes[e]}function Fr(t,e){return t.nodes[e]}function Hr(t,e){return t.nodes[e]}function zr(t,e){return t.nodes[e]}function Br(t,e){return t.nodes[e]}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};function Gr(t,e,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(o+=" 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(t,e){var n=new Error(t);return Wr(n,e),n}(o,t)}function Wr(t,e){t[ie]=e,t[se]=e.logError.bind(e)}function Zr(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var Qr=function(){},Kr=new Map;function Jr(t){var e=Kr.get(t);return e||(e=Ot(t)+"_"+Kr.size,Kr.set(t,e)),e}var $r="$$undefined",Xr="$$empty";function Yr(t){return{id:$r,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var to=0;function eo(t,e,n,r){return!(!(2&t.state)&&Tt(t.oldValues[e.bindingIndex+n],r))}function no(t,e,n,r){return!!eo(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function ro(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!Hn(o,r)){var i=e.bindings[n].name;throw Gr(qr.createDebugContext(t,e.nodeIndex),i+": "+o,i+": "+r,0!=(1&t.state))}}function oo(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function io(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function ao(t,e,n,r){try{return oo(33554432&t.def.nodes[e].flags?Fr(t,e).componentView:t),qr.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function so(t){return t.parent?Fr(t.parent,t.parentNodeDef.nodeIndex):null}function uo(t){return t.parent?t.parentNodeDef.parent:null}function lo(t,e){switch(201347067&e.flags){case 1:return Fr(t,e.nodeIndex).renderElement;case 2:return Lr(t,e.nodeIndex).renderText}}function co(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function po(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function ho(t){return 1<-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var l=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:l,token:e.token},t._providers[l]=Mo,t._providers[l]=Ho(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{te(i)}}function Ho(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Fo(t,n[0]));case 2:return new e(Fo(t,n[0]),Fo(t,n[1]));case 3:return new e(Fo(t,n[0]),Fo(t,n[1]),Fo(t,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Wo(n,e),qr.dirtyParentQueries(r),qo(r),r}function Bo(t,e,n){var r=e?lo(e,e.def.lastRenderRootNode):t.renderElement;bo(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function qo(t){bo(t,3,null,null,void 0)}function Go(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Wo(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Zo=new Object;function Qo(t,e,n,r,o,i){return new Ko(t,e,n,r,o,i)}var Ko=function(t){function e(e,n,r,o,i,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=o,s._outputs=i,s.ngContentSelectors=a,s.viewDefFactory=r,s}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=mo(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,a=qr.createRootView(t,e||[],n,o,r,Zo),s=Hr(a,i).instance;return n&&a.renderer.setAttribute(Fr(a,0).renderElement,"ng-version",oe.full),new Jo(a,new ti(a),s)},e}(Ue),Jo=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Tn(Fr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new oi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Ve);function $o(t,e,n){return new Xo(t,e,n)}var Xo=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new Tn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new oi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=uo(t),t=t.parent;return t?new oi(t,e):new oi(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=zo(this._data,t);qr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new ti(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof We||(o=i.get(Ze));var a=t.create(i,r,void 0,o);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,a=t;return o=a._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,Go(i,r,o),function(t,e){var n=so(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),qr.dirtyParentQueries(o),Bo(n,r>0?i[r-1]:null,o),a.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,a,s=this._embeddedViews.indexOf(t._view);return o=e,a=(i=(n=this._data).viewContainer._embeddedViews)[r=s],Wo(i,r),null==o&&(o=i.length),Go(i,o,a),qr.dirtyParentQueries(a),qo(a),Bo(n,o>0?i[o-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=zo(this._data,t);e&&qr.destroyView(e)},t.prototype.detach=function(t){var e=zo(this._data,t);return e?new ti(e):null},t}();function Yo(t){return new ti(t)}var ti=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return bo(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){oo(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{qr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){qr.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),qr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,qo(this._view),qr.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function ei(t,e){return new ni(t,e)}var ni=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new ti(qr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Tn(Fr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(In);function ri(t,e){return new oi(t,e)}var oi=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Lt.THROW_IF_NOT_FOUND),qr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Jr(t)},e)},t}();function ii(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Fr(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Lr(t,n.nodeIndex).renderText;if(20240&n.flags)return Hr(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function ai(t){return new si(t.renderer)}var si=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=l(xo(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return Ti(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Ai(t,e,n,o[0]));case 2:return r(Ai(t,e,n,o[0]),Ai(t,e,n,o[1]));case 3:return r(Ai(t,e,n,o[0]),Ai(t,e,n,o[1]),Ai(t,e,n,o[2]));default:for(var a=Array(i),s=0;s0)l=y,Gi(y)||(c=y);else for(;l&&d===l.nodeIndex+l.childCount;){var m=l.parent;m&&(m.childFlags|=l.childFlags,m.childMatchedQueries|=l.childMatchedQueries),c=(l=m)&&Gi(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||Qr,updateRenderer:r||Qr,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:f}}function Gi(t){return 0!=(1&t.flags)&&null===t.element.name}function Wi(t,e,n){var r=e.element&&e.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 "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Zi(t,e,n,r){var o=Ji(t.root,t.renderer,t,e,n);return $i(o,t.component,r),Xi(o),o}function Qi(t,e,n){var r=Ji(t,t.renderer,null,null,e);return $i(r,n,n),Xi(r),r}function Ki(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,Ji(t.root,o,t,e.element.componentProvider,n)}function Ji(t,e,n,r,o){var i=new Array(o.nodes.length),a=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:a,initIndex:-1}}function $i(t,e,n){t.component=e,t.context=n}function Xi(t){var e;co(t)&&(e=Fr(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&Do(t,e,0,n)&&(f=!0),h>1&&Do(t,e,1,r)&&(f=!0),h>2&&Do(t,e,2,o)&&(f=!0),h>3&&Do(t,e,3,i)&&(f=!0),h>4&&Do(t,e,4,a)&&(f=!0),h>5&&Do(t,e,5,s)&&(f=!0),h>6&&Do(t,e,6,u)&&(f=!0),h>7&&Do(t,e,7,l)&&(f=!0),h>8&&Do(t,e,8,c)&&(f=!0),h>9&&Do(t,e,9,p)&&(f=!0),f}(t,e,n,r,o,i,a,s,u,l,c,p);case 2:return function(t,e,n,r,o,i,a,s,u,l,c,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&no(t,e,0,n)&&(h=!0),d>1&&no(t,e,1,r)&&(h=!0),d>2&&no(t,e,2,o)&&(h=!0),d>3&&no(t,e,3,i)&&(h=!0),d>4&&no(t,e,4,a)&&(h=!0),d>5&&no(t,e,5,s)&&(h=!0),d>6&&no(t,e,6,u)&&(h=!0),d>7&&no(t,e,7,l)&&(h=!0),d>8&&no(t,e,8,c)&&(h=!0),d>9&&no(t,e,9,p)&&(h=!0),h){var y=e.text.prefix;d>0&&(y+=Bi(n,f[0])),d>1&&(y+=Bi(r,f[1])),d>2&&(y+=Bi(o,f[2])),d>3&&(y+=Bi(i,f[3])),d>4&&(y+=Bi(a,f[4])),d>5&&(y+=Bi(s,f[5])),d>6&&(y+=Bi(u,f[6])),d>7&&(y+=Bi(l,f[7])),d>8&&(y+=Bi(c,f[8])),d>9&&(y+=Bi(p,f[9]));var v=Lr(t,e.nodeIndex).renderText;t.renderer.setValue(v,y)}return h}(t,e,n,r,o,i,a,s,u,l,c,p);case 16384:return function(t,e,n,r,o,i,a,s,u,l,c,p){var h=Hr(t,e.nodeIndex),f=h.instance,d=!1,y=void 0,v=e.bindings.length;return v>0&&eo(t,e,0,n)&&(d=!0,y=Pi(t,h,e,0,n,y)),v>1&&eo(t,e,1,r)&&(d=!0,y=Pi(t,h,e,1,r,y)),v>2&&eo(t,e,2,o)&&(d=!0,y=Pi(t,h,e,2,o,y)),v>3&&eo(t,e,3,i)&&(d=!0,y=Pi(t,h,e,3,i,y)),v>4&&eo(t,e,4,a)&&(d=!0,y=Pi(t,h,e,4,a,y)),v>5&&eo(t,e,5,s)&&(d=!0,y=Pi(t,h,e,5,s,y)),v>6&&eo(t,e,6,u)&&(d=!0,y=Pi(t,h,e,6,u,y)),v>7&&eo(t,e,7,l)&&(d=!0,y=Pi(t,h,e,7,l,y)),v>8&&eo(t,e,8,c)&&(d=!0,y=Pi(t,h,e,8,c,y)),v>9&&eo(t,e,9,p)&&(d=!0,y=Pi(t,h,e,9,p,y)),y&&f.ngOnChanges(y),65536&e.flags&&Ur(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,o,i,a,s,u,l,c,p);case 32:case 64:case 128:return function(t,e,n,r,o,i,a,s,u,l,c,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&no(t,e,0,n)&&(f=!0),d>1&&no(t,e,1,r)&&(f=!0),d>2&&no(t,e,2,o)&&(f=!0),d>3&&no(t,e,3,i)&&(f=!0),d>4&&no(t,e,4,a)&&(f=!0),d>5&&no(t,e,5,s)&&(f=!0),d>6&&no(t,e,6,u)&&(f=!0),d>7&&no(t,e,7,l)&&(f=!0),d>8&&no(t,e,8,c)&&(f=!0),d>9&&no(t,e,9,p)&&(f=!0),f){var y=zr(t,e.nodeIndex),v=void 0;switch(201347067&e.flags){case 32:v=new Array(h.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=a),d>5&&(v[5]=s),d>6&&(v[6]=u),d>7&&(v[7]=l),d>8&&(v[8]=c),d>9&&(v[9]=p);break;case 64:v={},d>0&&(v[h[0].name]=n),d>1&&(v[h[1].name]=r),d>2&&(v[h[2].name]=o),d>3&&(v[h[3].name]=i),d>4&&(v[h[4].name]=a),d>5&&(v[h[5].name]=s),d>6&&(v[h[6].name]=u),d>7&&(v[h[7].name]=l),d>8&&(v[h[8].name]=c),d>9&&(v[h[9].name]=p);break;case 128:var g=n;switch(d){case 1:v=g.transform(n);break;case 2:v=g.transform(r);break;case 3:v=g.transform(r,o);break;case 4:v=g.transform(r,o,i);break;case 5:v=g.transform(r,o,i,a);break;case 6:v=g.transform(r,o,i,a,s);break;case 7:v=g.transform(r,o,i,a,s,u);break;case 8:v=g.transform(r,o,i,a,s,u,l);break;case 9:v=g.transform(r,o,i,a,s,u,l,c);break;case 10:v=g.transform(r,o,i,a,s,u,l,c,p)}}y.value=v}return f}(t,e,n,r,o,i,a,s,u,l,c,p);default:throw"unreachable"}}(t,e,r,o,i,a,s,u,l,p,h,f):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&ro(t,e,0,n),h>1&&ro(t,e,1,r),h>2&&ro(t,e,2,o),h>3&&ro(t,e,3,i),h>4&&ro(t,e,4,a),h>5&&ro(t,e,5,s),h>6&&ro(t,e,6,u),h>7&&ro(t,e,7,l),h>8&&ro(t,e,8,c),h>9&&ro(t,e,9,p)}(t,e,r,o,i,a,s,u,l,c,p,h):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);_a.forEach(function(e,r){if(i.has(r.ngInjectableDef.providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:yo(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[Jr(r)]=o}})}}(t=t.factory(function(){return Qr})),t):t}(r))}var ba=new Map,_a=new Map,wa=new Map;function Ca(t){ba.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&_a.set(t.token,t)}function Sa(t,e){var n=mo(mo(e.viewDefFactory).nodes[0].element.componentView);wa.set(t,n)}function Ea(){ba.clear(),_a.clear(),wa.clear()}function xa(t){if(0===ba.size)return t;var e=function(t){for(var e=[],n=null,r=0;r"}(e))}function Os(t){return Array.isArray(t)?t[0]:t}function As(t){if(2===t.tNode.type){var e=t.data;return e[os]?e[os][ss]:null}return t.tNode.next?t.view[t.tNode.next.index]:null}function ks(t){return t.tNode.child?Os((2===t.tNode.type?t.data:t.view)[t.tNode.child.index]):null}function Ps(t){if(-1===t.tNode.index&&2===t.tNode.type){var e=t.data[ds];return-1===e?null:t.view[e].dynamicLContainerNode}var n=t.tNode.parent;return Os(n?t.view[n.index]:t.view[ss])}var Rs=[];function Ns(t){for(var e=t[ss];2===e.tNode.type;)ngDevMode&&Ya(t[rs],"lViewData.parent"),e=(t=t[rs])[ss];return ngDevMode&&Ts(e,3),ngDevMode&&Ya(e.data,"node.data"),e}function Is(t,e,n,r,o){0===t?Es(e)?e.insertBefore(n,r,o):n.insertBefore(r,o,!0):1===t?Es(e)?e.removeChild(n,r):n.removeChild(r):2===t&&(ngDevMode&&ngDevMode.rendererDestroyNode++,e.destroyNode(r))}function Ds(t){if(-1===t[ns].childIndex)return null;var e=t[t[ns].childIndex];return e.data?e.data:e.dynamicLContainerNode.data}function Ms(t,e){var n;return(n=t[ss])&&2===n.tNode.type?Ps(n).data:t[rs]===e?null:t[rs]}function js(t){if(t[ns]){var e=t;!function(t){var e=t[ns].cleanup;if(null!=e){for(var n=0;n=h.length){var f=h[p]=pu(e,p,r,o,s,null);if(!Fs&&Ls){var d=Ls.tNode;d.next=f,d.dynamicContainerNode&&(d.dynamicContainerNode.next=f)}}c.tNode=h[p],Fs&&(zs=null,(null==Ls.tNode.child&&Ls.view===qs||2===Ls.tNode.type)&&(Ls.tNode.child=c.tNode))}if(2==(2&e)&&l){var y=i;ngDevMode&&null!=y[ss]&&ts("lViewData[HOST_NODE] should not have been initialized"),y[ss]=c,$s&&(y[ns].node=c.tNode)}return Ls=c,Fs=!0,c}function ou(t,e,n,r){var o,i=Fs,a=Ls;if(null==t.data[rs]&&t.data[ps]&&!e.template)du(t.data[ps]);else try{Fs=!0,Ls=null,o=Xs(t.data,t),uu(),e.template(r,n),2&r?tu():t.data[ns].firstTemplatePass=$s=!1}finally{Ys(o,1==(1&r)),Fs=i,Ls=a}return t}function iu(t,e,n,r){var o=Xs(e,t);try{Us.begin&&Us.begin(),r?(uu(),r(au(e),n),tu()):(Js||(ms(qs,Hs,Bs),bs(Gs,Hs.contentHooks,Hs.contentCheckHooks,Bs)),eu(Qs),hu(0,es))}finally{Us.end&&Us.end(),Ys(o)}}function au(t){return 1&t[as]?3:2}var su=null;function uu(){su=null}function lu(t,e,n,r,o){return ngDevMode&&ngDevMode.tView++,{id:t,template:e,viewQuery:o,node:null,data:Ks.slice(),childIndex:-1,bindingStartIndex:-1,directives:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,hostBindings:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof n?n():n,pipeRegistry:"function"==typeof r?r():r,currentMatches:null}}function cu(t,e){ngDevMode&&mu(-1),Us=t;var n,r=t.createRenderer(null,null),o="string"==typeof e?Es(r)?r.selectRootElement(e):r.querySelector(e):e;if(ngDevMode&&!o)throw new Error("Renderer: "+("string"==typeof e?"Host node with selector not found:":"Host node is required:")+" ["+("function"==typeof(n=e)?n.name||n:"string"==typeof n?n:null==n?"":""+n)+"]");return o}function pu(t,e,n,r,o,i){return ngDevMode&&ngDevMode.tNode++,{type:t,index:e,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:i,next:null,child:null,parent:o,dynamicContainerNode:null,detached:null,stylingTemplate:null,projection:null}}function hu(t,e){ngDevMode&&mu(e);var n=qs[e];ngDevMode&&Ts(n,3),ngDevMode&&Ya(n.data,"Component's host node should have an LViewData attached.");var r=n.data;fu(r)&&6&r[as]&&(ngDevMode&&mu(t,Gs),gu(r,n,Gs[t]))}function fu(t){return 8==(8&t[as])}function du(t){for(var e=0;e=(e?e.length:0)&&ts("index expected to be a valid data index")}(t,e||qs)}function bu(t,e){null==e&&(e=qs),Xa(e.length,t,"index "+t+" expected to be at the end of arr (length "+e.length+")")}function _u(t){ngDevMode&&Ya(t,"expecting component got null");var e=t[Ws];return ngDevMode&&Ya(t,"object is not a component"),e}var wu=Zs;function Cu(t){return{components:[],scheduler:t,clean:wu}}var Su=function(){function t(t,e){this._view=t,this._appRef=null,this._viewContainerRef=null,this._lViewNode=null,this.context=e}return t.prototype._setComponentContext=function(t,e){this._view=t,this.context=e},Object.defineProperty(t.prototype,"destroyed",{get:function(){return 32==(32&this._view[as])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t,e;this._viewContainerRef&&fu(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),Es(e=(t=this._view)[fs])&&e.destroyNode&&function(e,n,r,o,i,a){for(var s=t[ss],u=-1;s;){var l=null,c=s.tNode.type;if(3===c)Is(2,o,null,s.native,a),s.dynamicLContainerNode&&Is(2,o,null,s.dynamicLContainerNode.native,a);else if(0===c){Is(2,o,null,s.native,a);var p=s,h=p.dynamicLContainerNode?p.dynamicLContainerNode.data:p.data;(l=h[Cs].length?ks(h[Cs][0]):null)&&(a=p.dynamicLContainerNode?p.dynamicLContainerNode.native:p.native)}else if(1===c){var f=Ns(s.view),d=f.tNode.projection[s.tNode.projection];Rs[++u]=s,l=d?f.data[rs][d.index]:null}else l=ks(s);if(null===l)for(null===(l=As(s))&&8192&s.tNode.flags&&(l=As(Rs[u--]));s&&!l;){if(null===(s=Ps(s))||s===n)return null;s.tNode.next||0!==c||(a=s.native),l=As(s)}s=l}}(0,t[ss],0,e),function(t){if(-1===t[ns].childIndex)return js(t);for(var e=Ds(t);e;){var n=null;if(e.length>=es?e[ns].childIndex>-1&&(n=Ds(e)):e[Cs].length&&(n=e[Cs][0].data),null==n){for(;e&&!e[os]&&e!==t;)js(e),e=Ms(e,t);js(e||t),n=e&&e[os]}e=n}}(t),t[as]|=32},t.prototype.onDestroy=function(t){var e,n;n=t,function(t){return t[cs]||(t[cs]=[])}(e=this._view).push(n),e[ns].firstTemplatePass&&function(t){return t[ns].cleanup||(t[ns].cleanup=[])}(e).push(e[cs].length-1,null)},t.prototype.markForCheck=function(){!function(t){for(var e=t;null!=e[rs];)e[as]|=4,e=e[rs];var n,r;e[as]|=4,ngDevMode&&Ya(e[ps],"rootContext"),(n=e[ps]).clean==Zs&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){du(n),r(null),n.clean=Zs}))}(this._view)},t.prototype.detach=function(){this._view[as]&=-9},t.prototype.reattach=function(){this._view[as]|=8},t.prototype.detectChanges=function(){vu(this.context)},t.prototype.checkNoChanges=function(){!function(t){Js=!0;try{vu(t)}finally{Js=!1}}(this.context)},t.prototype.attachToViewContainerRef=function(t){this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){this._appRef=null},t.prototype.attachToAppRef=function(t){this._appRef=t},t}(),Eu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.resolveComponentFactory=function(t){return ngDevMode&&(void 0===e&&(e="Type passed in is not ComponentType, it does not have 'ngComponentDef' property."),t.ngComponentDef||ts(e)),new Au(t.ngComponentDef);var e},e}(qe);function xu(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var Tu=new yt("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return Cu(ee(Ou))}}),Ou=new yt("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return requestAnimationFrame.bind(window)}}),Au=function(t){function e(e){var n=t.call(this)||this;return n.componentDef=e,n.componentType=e.type,n.selector=e.selectors[0][0],n.ngContentSelectors=[],n}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return xu(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return xu(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var o,i,a=void 0===n,s=r?r.injector.get(Sn):xs,u=a?(o=this.selector,Es(i=s.createRenderer(null,this.componentDef.rendererType)||Vs)?i.createElement(o,su):null===su?i.createElement(o):i.createElementNS(su,o)):cu(s,n),l=r&&!a?r.injector.get(Tu):Cu(requestAnimationFrame.bind(window)),c=nu(s.createRenderer(u,this.componentDef.rendererType),lu(-1,null,null,null,null),l,this.componentDef.onPush?4:2);c[hs]=r&&r.injector||null;var p,h,f=Xs(c,null);try{if(s.begin&&s.begin(),h=function(t,e,n,r){Fs=!1,Ls=null;var o,i=ru(0,3,e,null,null,nu(Vs,(o=n.template).ngPrivateData||(o.ngPrivateData=lu(-1,o,n.directiveDefs,n.pipeDefs,n.viewQuery)),null,n.onPush?4:2,r));return $s&&(i.tNode.flags=4096,n.diPublic&&n.diPublic(n),Hs.directives=[n]),i}(0,u,this.componentDef),l.components.push(p=function(t,e,n){if(ngDevMode&&Xa(qs[us],-1,"directives should be created before any bindings"),ngDevMode&&Xa(Fs,!0,"previousOrParentNode should be a parent"),Object.defineProperty(e,Ws,{enumerable:!1,value:Ls}),null==Gs&&(qs[ls]=Gs=[]),ngDevMode&&bu(t,Gs),Gs[t]=e,$s){var r=Ls.tNode.flags;0==(4095&r)?Ls.tNode.flags=t<<14|4096&r|1:(ngDevMode&&4095==(4095&r)&&ts("Reached the max number of directives"),Ls.tNode.flags++)}else{var o=n.diPublic;o&&o(n)}return null!=n.attributes&&3==Ls.tNode.type&&function(t,e){for(var n=Es(Vs),r=0;r>14,r=n+(4095&t),o=n;o0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return o(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return o(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(S))),qu=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),Gu=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(function(t){function e(n,r){void 0===r&&(r=qu.now);var o=t.call(this,n,function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return o(e,t),e.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,o):t.prototype.schedule.call(this,n,r,o)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(qu)))(Bu);function Wu(){for(var t=[],e=0;ethis._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Yu(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new nt;if(this.isStopped||this.hasError?e=S.EMPTY:(this.observers.push(t),e=new rt(this,t)),o&&t.add(t=new Ju(t,o)),n)for(var a=0;ae&&(i=Math.max(i,o-e)),i>0&&r.splice(0,i),r},e}(it),Yu=function(t,e){this.time=t,this.value=e};function tl(t,e,n){return function(r){return r.lift(function(t,e,n){var r,o,i=0,a=!1,s=!1;return function(u){i++,r&&!a||(a=!1,r=new Xu(t,e,n),o=u.subscribe({next:function(t){r.next(t)},error:function(t){a=!0,r.error(t)},complete:function(){s=!0,r.complete()}}));var l=r.subscribe(this);return function(){i--,l.unsubscribe(),o&&0===i&&s&&o.unsubscribe()}}}(t,e,n))}}function el(t,e){return function(n){return n.lift(new nl(t,e))}}var nl=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new rl(t,this.predicate,this.thisArg))},t}(),rl=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(T),ol=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new il(t,this.project))},t}(),il=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return o(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,n=this.destination;try{var r=this.project(t,e);this.hasSubscription=!0,this.add(q(this,r,t,e))}catch(t){n.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(G);function al(t){return function(e){return e.lift(new sl(t))}}var sl=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new ul(t),r=q(n,this.notifier);return r&&!r.closed?(n.add(r),e.subscribe(n)):n},t}(),ul=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.complete()},e.prototype.notifyComplete=function(){},e}(G);function ll(t){return void 0===t&&(t=null),function(e){return e.lift(new cl(t))}}var cl=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new pl(t,this.defaultValue))},t}(),pl=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return o(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(T);function hl(){for(var t,e=[],n=0;n0;){var n=this._itemQueue.pop();t.prototype.next.call(this,n)}this._busyPushingNext=!1}},e}(it)),kl=function(t){function e(e,n){return t.call(this,function(t){e.pipe(Ol(n)).subscribe(function(e){return t.next(e)},function(e){return t.error(e)},function(){return t.complete()})})||this}return o(e,t),e}(N),Pl=function(t){return function(){for(var e=[],n=0;n=0)throw new Error("Circular dependency '"+n+"' is required by '"+t+"': "+e.join(" -> "));o[n]||i(n,e.slice(0))}),r.indexOf(t)<0&&r.push(t)},Object.keys(n).forEach(function(t){return i(t)}),r.reverse()),f=function(t,e){void 0===e&&(e={});var n=function(t,e){for(var r in t)if(t.hasOwnProperty(r)&&t[r].indexOf(e)>=0){var o=n(t,r);return null!==o?o+"."+r:r}return null};for(var r in t)if(t.hasOwnProperty(r)){var o=n(t,r);e[r]=o?o+"."+r:r}return e}(p),d=e.reduce(function(t,e){if(!e[vl])throw new Error("States must be decorated with @State() decorator");return t[e[vl].name]=e,t},{}),y=[],v=function(t){var e=d[t];if(!e[vl])throw new Error("States must be decorated with @State() decorator");var n,r=f[t],o=e[vl].actions,i=e[vl].defaults;if(e[vl].path=r,!g.states.find(function(e){return e.name===t})){Array.isArray(i)?i=c(i):"object"==typeof(n=i)&&null!==n||"function"==typeof n?i=Object.assign({},i):void 0===i&&(i={});var a=g._injector.get(e);y.push({actions:o,instance:a,defaults:i,name:t,depth:r})}},g=this;try{for(var m=u(h),b=m.next();!b.done;b=m.next())v(b.value)}catch(t){a={error:t}}finally{try{b&&!b.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}return(l=this.states).push.apply(l,c(y)),y},t.prototype.addAndReturnDefaults=function(t){if(t){var e=this.add(t);return{defaults:e.reduce(function(t,e){return El(t,e.depth,e.defaults)},{}),states:e}}},t.prototype.connectActionHandlers=function(){var t=this;this._connected||(this._actions.pipe(el(function(t){return"DISPATCHED"===t.status}),$(function(e){var n=e.action;return t.invokeActions(t._actions,n).pipe(W(function(){return{action:n,status:"SUCCESSFUL"}}),ll({action:n,status:"CANCELED"}),Fu(function(t){return Wu({action:n,status:"ERRORED",error:t})}))})).subscribe(function(e){return t._actionResults.next(e)}),this._connected=!0)},t.prototype.invokeInit=function(t){try{for(var e=u(t),n=e.next();!n.done;n=e.next()){var r=n.value,o=r.instance;if(o.ngxsOnInit){var i=this.createStateContext(r);o.ngxsOnInit(i)}}}catch(t){a={error:t}}finally{try{n&&!n.done&&(s=e.return)&&s.call(e)}finally{if(a)throw a.error}}var a,s},t.prototype.invokeActions=function(t,e){var n,r,o,i,a=[];try{for(var s=u(this.states),l=s.next();!l.done;l=s.next()){var c=l.value,p=Sl(e),h=c.actions[p];if(h)try{for(var f=u(h),d=f.next();!d.done;d=f.next()){var y=d.value,v=this.createStateContext(c);try{var g=c.instance[y.fn](v,e);g instanceof Promise&&(g=J(g)),g=g instanceof N?g.pipe(y.options.cancelUncompleted?al(t.pipe(Tl(e))):W(function(t){return t})):Wu({}).pipe(tl()),a.push(g)}catch(t){a.push(Zu(t))}}}catch(t){o={error:t}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a.length||a.push(Wu({})),hl(a)},t.prototype.createStateContext=function(t){return this._stateContextFactory.createStateContext(t)},t}();function Ll(t){var e=t[gl];if(e){var n=e.selectFromAppState;if(n)return n}var r=wl(t);return r&&r.path?Cl(r.path.split(".")):t}var Fl=function(){function t(t,e,n){this._ngZone=t,this._stateStream=e,this._internalStateOperations=n}return t.prototype.dispatch=function(t){return this._internalStateOperations.getRootStateOperations().dispatch(t)},t.prototype.select=function(t){var e=Ll(t);return this._stateStream.pipe(W(e),Fu(function(t){if(t instanceof TypeError)return Wu(void 0);throw t}),function(t){return t.lift(new Uu(void 0,void 0))},Ol(this._ngZone))},t.prototype.selectOnce=function(t){return this.select(t).pipe(Mu(1))},t.prototype.selectSnapshot=function(t){return Ll(t)(this._stateStream.getValue())},t.prototype.subscribe=function(t){return this._stateStream.pipe(Ol(this._ngZone)).subscribe(t)},t.prototype.snapshot=function(){return this._internalStateOperations.getRootStateOperations().getState()},t.prototype.reset=function(t){return this._internalStateOperations.getRootStateOperations().setState(t)},t}(),Hl=function(){function t(e){t.store=e}return t.store=void 0,t}(),zl=function(){function t(){}return t.type="@@INIT",t}(),Bl=function(){function t(){}return t.type="@@UPDATE_STATE",t}(),ql=function(){return function(t,e,n,r,o){var i=t.addAndReturnDefaults(o),a=e.getRootStateOperations();if(i){var s=a.getState();a.setState(Object.assign({},s,i.defaults))}t.connectActionHandlers(),a.dispatch(new zl).subscribe(function(){i&&t.invokeInit(i.states)})}}();function Gl(t){return Object.assign(new bl,t)}var Wl=new yt("ROOT_OPTIONS");function Zl(t,e){return function(n,r,o){var i,a,s=_l(n.constructor);Array.isArray(t)||(t=[t]);try{for(var l=u(t),c=l.next();!c.done;c=l.next()){var p=c.value,h=p.type;if(!p.type)throw new Error("Action "+p.name+' is missing a static "type" property');s.actions[h]||(s.actions[h]=[]),s.actions[h].push({fn:r,options:e||{},type:h})}}catch(t){i={error:t}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}}}var Ql=new RegExp("^[a-zA-Z0-9]+$"),Kl=function(t){return t+" is not a valid state name. It needs to be a valid object property name."};function Jl(t){return function(e){var n=_l(e);if(Object.getPrototypeOf(e).hasOwnProperty(vl)){var r=Object.getPrototypeOf(e)[vl];n.actions=Object.assign({},n.actions,r.actions)}if(n.children=t.children,n.defaults=t.defaults,n.name=t.name,!t.name)throw new Error("States must register a 'name' property");if(!Ql.test(t.name))throw new Error(Kl(t.name))}}var $l=function(t){return t.streamsstatemodel.streams},Xl=function(){function t(t){this.navigationService=t}return t.prototype.ngOnInit=function(){var t=this;this.columnSelectedSub=this.navigationService.columnSelectedSubject.subscribe(function(e){t.focusOnColumn(e)})},t.prototype.ngOnDestroy=function(){this.columnSelectedSub.unsubscribe()},t.prototype.focusOnColumn=function(t){var e=this;t>-1&&setTimeout(function(){e.streamsElementRef.toArray()[t].nativeElement.scrollIntoView({behavior:"smooth",block:"end",inline:"start"})})},a([function(t){for(var e=[],n=1;n=2;return function(r){return r.pipe(t?el(function(e,n){return t(e,n,r)}):tt,Mu(1),n?ll(e):yc(function(){return new pc}))}}function mc(t,e){return function(n){return n.lift(new bc(t,e,n))}}var bc=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new _c(t,this.predicate,this.thisArg,this.source))},t}(),_c=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(T);function wc(t,e){return $(t,e,1)}function Cc(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Sc(t,e,n))}}var Sc=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Ec(t,this.accumulator,this.seed,this.hasSeed))},t}(),Ec=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(T);function xc(t){return function(e){return 0===t?Du():e.lift(new Tc(t))}}var Tc=function(){function t(t){if(this.total=t,this.total<0)throw new Nu}return t.prototype.call=function(t,e){return e.subscribe(new Oc(t,this.total))},t}(),Oc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(t?el(function(e,n){return t(e,n,r)}):tt,xc(1),n?ll(e):yc(function(){return new pc}))}}var Pc=function(){},Rc=new yt("Location Initialized"),Nc=function(){},Ic=new yt("appBaseHref"),Dc=function(){function t(e){var n=this;this._subject=new Ye,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(Mc(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Mc(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function Mc(t){return t.replace(/\/index.html$/,"")}var jc=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=Dc.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Dc.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Dc.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Nc),Vc=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)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 r._baseHref=n,r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return Dc.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+Dc.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Dc.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Dc.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Nc),Uc=void 0,Lc=["en",[["a","p"],["AM","PM"],Uc],[["AM","PM"],Uc,Uc],[["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"]],Uc,[["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"]],Uc,[["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}",Uc,"{1} 'at' {0}",Uc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],Fc={},Hc=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),zc=new yt("UseV4Plurals"),Bc=function(){},qc=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=Fc[e];if(n)return n;var r=e.split("-")[0];if(n=Fc[r])return n;if("en"===r)return Lc;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case Hc.Zero:return"zero";case Hc.One:return"one";case Hc.Two:return"two";case Hc.Few:return"few";case Hc.Many:return"many";default:return"other"}},e}(Bc);function Gc(t,e){var n,r;e=encodeURIComponent(e);try{for(var o=u(t.split(";")),i=o.next();!i.done;i=o.next()){var a=i.value,s=a.indexOf("="),c=l(-1==s?[a,""]:[a.slice(0,s),a.slice(s+1)],2),p=c[1];if(c[0].trim()===e)return decodeURIComponent(p)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}var Wc=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Zc=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){yn()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new Wc(null,e._ngForOf,-1,-1),o),a=new Qc(t,i);n.push(a)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),a=new Qc(t,i),n.push(a))});for(var r=0;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;a||(a=t[i]=[]);var u=Qp(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:u,handler:o});else{for(var l=!1,c=0;c-1},e}(Op),nh=["alt","control","meta","shift"],rh={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},oh=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var o=e.parseEventName(n),i=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return up().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(nh.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var a={};return a.domEventName=r,a.fullKey=i,a},e.getEventFullKey=function(t){var e="",n=up().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),nh.forEach(function(r){r!=n&&(0,rh[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(Op),ih=function(){},ah=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Mr.NONE:return e;case Mr.HTML:return e instanceof uh?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{br=br||new fr(t);var r=e?String(e):"";n=br.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=br.getInertBodyElement(r)}while(r!==i);var a=new Ar,s=a.sanitizeChildren(Nr(n)||n);return yn()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),s}finally{if(n)for(var u=Nr(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(e)));case Mr.STYLE:return e instanceof lh?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Dr);return e&&vr(e[1])===e[1]||t.match(Ir)&&function(t){for(var e=!0,n=!0,r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Wh(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Zh(t){return t.pipe(et(),mc(function(t){return!0===t}))}function Qh(t){return Ee(t)?t:Se(t)?J(Promise.resolve(t)):Wu(t)}function Kh(t,e,n){return n?function(t,e){return Bh(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Yh(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!Yh(a=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Yh(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var a=o.slice(0,n.segments.length),s=o.slice(n.segments.length);return!!Yh(n.segments,a)&&!!n.children[Dh]&&e(n.children[Dh],r,s)}(e,n,n.segments)}(t.root,e.root)}var Jh=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=jh(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return rf.serialize(this)},t}(),$h=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Wh(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return of(this)},t}(),Xh=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=jh(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return pf(this)},t}();function Yh(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function tf(t,e){var n=[];return Wh(t.children,function(t,r){r===Dh&&(n=n.concat(e(t,r)))}),Wh(t.children,function(t,r){r!==Dh&&(n=n.concat(e(t,r)))}),n}var ef=function(){},nf=function(){function t(){}return t.prototype.parse=function(t){var e=new vf(t);return new Jh(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return of(e);if(n){var r=e.children[Dh]?t(e.children[Dh],!1):"",o=[];return Wh(e.children,function(e,n){n!==Dh&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=tf(e,function(n,r){return r===Dh?[t(e.children[Dh],!1)]:[r+":"+t(n,!1)]});return of(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return sf(t)+"="+sf(e)}).join("&"):sf(t)+"="+sf(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),rf=new nf;function of(t){return t.segments.map(function(t){return pf(t)}).join("/")}function af(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function sf(t){return af(t).replace(/%3B/gi,";")}function uf(t){return af(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lf(t){return decodeURIComponent(t)}function cf(t){return lf(t.replace(/\+/g,"%20"))}function pf(t){return""+uf(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+uf(t)+"="+uf(e[t])}).join(""));var e}var hf=/^[^\/()?;=#]+/;function ff(t){var e=t.match(hf);return e?e[0]:""}var df=/^[^=?]+/,yf=/^[^?]+/,vf=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $h([],{}):new $h([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Dh]=new $h(t,e)),n},t.prototype.parseSegment=function(){var t=ff(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Xh(lf(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=ff(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=ff(this.remaining);r&&this.capture(n=r)}t[lf(e)]=lf(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(df))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(yf);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=cf(n),a=cf(r);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(t[i]=s=[s]),s.push(a)}else t[i]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=ff(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Dh);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[Dh]:new $h([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),gf=function(t){this.segmentGroup=t||null},mf=function(t){this.urlTree=t};function bf(t){return new N(function(e){return e.error(new gf(t))})}function _f(t){return new N(function(e){return e.error(new mf(t))})}function wf(t){return new N(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var Cf=function(){function t(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Ze)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Dh).pipe(W(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Fu(function(e){if(e instanceof mf)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof gf)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Dh).pipe(W(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(Fu(function(t){if(t instanceof gf)throw e.noMatchError(t);throw t}))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,o=t.segments.length>0?new $h([],((r={})[Dh]=t,r)):t;return new Jh(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(W(function(t){return new $h([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Wu({});var i=[],a=[],s={};return Wh(n,function(n,o){var u,l,c=(u=o,l=n,r.expandSegmentGroup(t,e,l,u)).pipe(W(function(t){return s[o]=t}));o===Dh?i.push(c):a.push(c)}),Wu.apply(null,i.concat(a)).pipe(Ac(),kc(),W(function(){return s}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var a=this;return Wu.apply(void 0,c(n)).pipe(W(function(s){return a.expandSegmentAgainstRoute(t,e,n,s,r,o,i).pipe(Fu(function(t){if(t instanceof gf)return Wu(null);throw t}))}),Ac(),gc(function(t){return!!t}),Fu(function(t,n){if(t instanceof pc||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,r,o))return Wu(new $h([],{}));throw new gf(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,a){return Tf(r)!==i?bf(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):bf(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?_f(i):this.lineralizeSegments(n,i).pipe($(function(n){var i=new $h(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var a=this,s=Sf(e,r,o),u=s.consumedSegments,l=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return bf(e);var p=this.applyRedirectCommands(u,r.redirectTo,c);return r.redirectTo.startsWith("/")?_f(p):this.lineralizeSegments(r,p).pipe($(function(r){return a.expandSegment(t,e,n,r.concat(o.slice(l)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(W(function(t){return n._loadedConfig=t,new $h(r,{})})):Wu(new $h(r,{}));var a=Sf(e,n,r),s=a.consumedSegments,l=a.lastChild;if(!a.matched)return bf(e);var c=r.slice(l);return this.getChildConfig(t,n).pipe($(function(t){var n=t.module,r=t.routes,a=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return xf(t,e,n)&&Tf(n)!==Dh})}(t,n)?{segmentGroup:Ef(new $h(e,function(t,e){var n,r,o={};o[Dh]=e;try{for(var i=u(t),a=i.next();!a.done;a=i.next()){var s=a.value;""===s.path&&Tf(s)!==Dh&&(o[Tf(s)]=new $h([],{}))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new $h(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return xf(t,e,n)})}(t,n)?{segmentGroup:Ef(new $h(t.segments,function(t,e,n,r){var o,a,s={};try{for(var l=u(n),c=l.next();!c.done;c=l.next()){var p=c.value;xf(t,e,p)&&!r[Tf(p)]&&(s[Tf(p)]=new $h([],{}))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}return i({},r,s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,c,r),l=a.segmentGroup,p=a.slicedSegments;return 0===p.length&&l.hasChildren()?o.expandChildren(n,r,l).pipe(W(function(t){return new $h(s,t)})):0===r.length&&0===p.length?Wu(new $h(s,{})):o.expandSegment(n,l,r,p,Dh,!0).pipe(W(function(t){return new $h(s.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Wu(new Uh(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Wu(e._loadedConfig):function(t,e){var n=e.canLoad;return n&&0!==n.length?Zh(J(n).pipe(W(function(n){var r=t.get(n);return Qh(r.canLoad?r.canLoad(e):r(e))}))):Wu(!0)}(t.injector,e).pipe($(function(r){return r?n.configLoader.load(t.injector,e).pipe(W(function(t){return e._loadedConfig=t,t})):function(t){return new N(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)})):Wu(new Uh([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Wu(n);if(r.numberOfChildren>1||!r.children[Dh])return wf(t.redirectTo);r=r.children[Dh]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new Jh(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Wh(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),a={};return Wh(e.children,function(e,i){a[i]=o.createSegmentGroup(t,e,n,r)}),new $h(i,a)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var i=u(e),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.path===t.path)return e.splice(o),s;o++}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function Sf(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Vh)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ef(t){if(1===t.numberOfChildren&&t.children[Dh]){var e=t.children[Dh];return new $h(t.segments.concat(e.segments),e.children)}return t}function xf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Tf(t){return t.outlet||Dh}var Of=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=Af(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=Af(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=kf(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return kf(t,this._root).map(function(t){return t.value})},t}();function Af(t,e){var n,r;if(t===e.value)return e;try{for(var o=u(e.children),i=o.next();!i.done;i=o.next()){var a=Af(t,i.value);if(a)return a}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function kf(t,e){var n,r;if(t===e.value)return[e];try{for(var o=u(e.children),i=o.next();!i.done;i=o.next()){var a=kf(t,i.value);if(a.length)return a.unshift(e),a}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return[]}var Pf=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Rf(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Nf=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Uf(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Of);function If(t,e){var n=function(t,e){var n=new jf([],{},{},"",{},Dh,e,null,t.root,-1,{});return new Vf("",new Pf(n,[]))}(t,e),r=new dl([new Xh("",{})]),o=new dl({}),i=new dl({}),a=new dl({}),s=new dl(""),u=new Df(r,o,a,s,i,Dh,e,n.root);return u.snapshot=n.root,new Nf(new Pf(u,[]),n)}var Df=function(){function t(t,e,n,r,o,i,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this._futureSnapshot=s}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(W(function(t){return jh(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(W(function(t){return jh(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Mf(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],a=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(a.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:i({},t.params,e.params),data:i({},t.data,e.data),resolve:i({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var jf=function(){function t(t,e,n,r,o,i,a,s,u,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this.routeConfig=s,this._urlSegment=u,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=jh(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=jh(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Vf=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Uf(r,n),r}return o(e,t),e.prototype.toString=function(){return Lf(this._root)},e}(Of);function Uf(t,e){e.value._routerState=t,e.children.forEach(function(e){return Uf(t,e)})}function Lf(t){var e=t.children.length>0?" { "+t.children.map(Lf).join(", ")+" } ":"";return""+t.value+e}function Ff(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Bh(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Bh(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&zf(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==Gh(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),Gf=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function Wf(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Dh]:""+t}function Zf(t,e,n){if(t||(t=new $h([],{})),0===t.segments.length&&t.hasChildren())return Qf(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var a=t.segments[o],s=Wf(n[r]),u=r0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!Xf(s,u,a))return i;r+=2}else{if(!Xf(s,{},a))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?function(n){return P(Cc(t,e),xc(1),ll(e))(n)}:function(e){return P(Cc(function(e,n,r){return t(e,n,r+1)}),xc(1))(e)}}(function(t,e){return t})):Wu(null)},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var o=this,i=Rf(e);t.children.forEach(function(t){o.setupRouteGuards(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),Wh(i,function(t,e){return o.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var o=t.value,i=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(i&&o.routeConfig===i.routeConfig){var s=this.shouldRunGuardsAndResolvers(i,o,o.routeConfig.runGuardsAndResolvers);s?this.canActivateChecks.push(new Yf(r)):(o.data=i.data,o._resolvedData=i._resolvedData),this.setupChildRouteGuards(t,e,o.component?a?a.children:null:n,r),s&&this.canDeactivateChecks.push(new td(a.outlet.component,i))}else i&&this.deactivateRouteAndItsChildren(e,a),this.canActivateChecks.push(new Yf(r)),this.setupChildRouteGuards(t,null,o.component?a?a.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Hf(t,e)||!Bh(t.queryParams,e.queryParams);case"paramsChange":default:return!Hf(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=Rf(t),o=t.value;Wh(r,function(t,r){n.deactivateRouteAndItsChildren(t,o.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new td(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this;return J(this.canDeactivateChecks).pipe($(function(e){return t.runCanDeactivate(e.component,e.route)}),mc(function(t){return!0===t}))},t.prototype.runCanActivateChecks=function(){var t=this;return J(this.canActivateChecks).pipe(wc(function(e){return Zh(J([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))}),mc(function(t){return!0===t}))},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new Ph(t)),Wu(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new Ah(t)),Wu(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?Zh(J(n).pipe(W(function(n){var r=e.getToken(n,t);return Qh(r.canActivate?r.canActivate(t,e.future):r(t,e.future)).pipe(gc())}))):Wu(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1];return Zh(J(t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t})).pipe(W(function(t){return Zh(J(t.guards).pipe(W(function(r){var o=e.getToken(r,t.node);return Qh(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)).pipe(gc())})))})))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?J(r).pipe($(function(r){var o=n.getToken(r,e);return Qh(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)).pipe(gc())})).pipe(mc(function(t){return!0===t})):Wu(!0)},t.prototype.runResolve=function(t,e){return this.resolveNode(t._resolve,t).pipe(W(function(n){return t._resolvedData=n,t.data=i({},t.data,Mf(t,e).resolve),null}))},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Wu({});if(1===r.length){var o=r[0];return this.getResolver(t[o],e).pipe(W(function(t){var e;return(e={})[o]=t,e}))}var i={};return J(r).pipe($(function(r){return n.getResolver(t[r],e).pipe(W(function(t){return i[r]=t,t}))})).pipe(kc(),W(function(){return i}))},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return Qh(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),nd=function(){},rd=function(){function t(t,e,n,r,o,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=ad(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Dh),n=new jf([],Object.freeze({}),Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,{},Dh,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Pf(n,e),o=new Vf(this.url,r);return this.inheritParamsAndData(o._root),Wu(o)}catch(t){return new N(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Mf(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=tf(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===Dh?-1:e.value.outlet===Dh?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){var o,i;try{for(var a=u(t),s=a.next();!s.done;s=a.next()){var l=s.value;try{return this.processSegmentAgainstRoute(l,e,n,r)}catch(t){if(!(t instanceof nd))throw t}}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new nd},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new nd;if((t.outlet||Dh)!==r)throw new nd;var o,a=[],s=[];if("**"===t.path){var u=n.length>0?Gh(n).parameters:{};o=new jf(n,u,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,ld(t),r,t.component,t,od(e),id(e)+n.length,cd(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new nd;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Vh)(n,t,e);if(!r)throw new nd;var o={};Wh(r.posParams,function(t,e){o[e]=t.path});var a=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a}}(e,t,n);a=l.consumedSegments,s=n.slice(l.lastChild),o=new jf(a,l.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,ld(t),r,t.component,t,od(e),id(e)+a.length,cd(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=ad(e,a,s,c,this.relativeLinkResolution),h=p.segmentGroup,f=p.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(c,h);return[new Pf(o,d)]}if(0===c.length&&0===f.length)return[new Pf(o,[])];var y=this.processSegment(c,h,f,Dh);return[new Pf(o,y)]},t}();function od(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function id(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function ad(t,e,n,r,o){if(n.length>0&&function(t,e,n){return r.some(function(n){return sd(t,e,n)&&ud(n)!==Dh})}(t,n)){var a=new $h(e,function(t,e,n,r){var o,i,a={};a[Dh]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var s=u(n),l=s.next();!l.done;l=s.next()){var c=l.value;if(""===c.path&&ud(c)!==Dh){var p=new $h([],{});p._sourceSegment=t,p._segmentIndexShift=e.length,a[ud(c)]=p}}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a}(t,e,r,new $h(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return sd(t,e,n)})}(t,n)){var s=new $h(t.segments,function(t,e,n,r,o,a){var s,l,c={};try{for(var p=u(r),h=p.next();!h.done;h=p.next()){var f=h.value;if(sd(t,n,f)&&!o[ud(f)]){var d=new $h([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===a?t.segments.length:e.length,c[ud(f)]=d}}}catch(t){s={error:t}}finally{try{h&&!h.done&&(l=p.return)&&l.call(p)}finally{if(s)throw s.error}}return i({},o,c)}(t,e,n,r,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var l=new $h(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}function sd(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ud(t){return t.outlet||Dh}function ld(t){return t.data||{}}function cd(t){return t.resolve||{}}var pd=function(){},hd=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),fd=new yt("ROUTES"),dd=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(W(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new Uh(qh(o.injector.get(fd)).map(zh),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?J(this.loader.load(t)):Qh(t()).pipe($(function(t){return t instanceof Qe?Wu(t):J(e.compiler.compileModuleAsync(t))}))},t}(),yd=function(){},vd=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function gd(t){throw t}function md(t,e,n){return e.parse("/")}function bd(t,e){return Wu(null)}var _d=function(){function t(t,e,n,r,o,i,a,s){var u=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=s,this.navigations=new dl(null),this.navigationId=0,this.events=new it,this.errorHandler=gd,this.malformedUriErrorHandler=md,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:bd,afterPreactivation:bd},this.urlHandlingStrategy=new vd,this.routeReuseStrategy=new hd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(Ze),this.resetConfig(s),this.currentUrlTree=new Jh(new $h([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new dd(i,a,function(t){return u.triggerEvent(new Th(t))},function(t){return u.triggerEvent(new Oh(t))}),this.routerState=If(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.parseUrl(e.url),r="popstate"===e.type?"popstate":"hashchange",o=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(n,r,o,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){Lh(t),this.config=t.map(zh),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,o=e.fragment,a=e.preserveQueryParams,s=e.queryParamsHandling,u=e.preserveFragment;yn()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,p=u?this.currentUrlTree.fragment:o,h=null;if(s)switch(s){case"merge":h=i({},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(t,e,n,r,o){if(0===n.length)return Bf(e.root,e.root,e,r,o);var i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new qf(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var i={};return Wh(r.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),c(t,[{outlets:i}])}if(r.segmentPath)return c(t,[r.segmentPath])}return"string"!=typeof r?c(t,[r]):0===o?(r.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):c(t,[r])},[]);return new qf(n,e,r)}(n);if(i.toRoot())return Bf(e.root,new $h([],{}),e,r,o);var a=function(t,n,r){if(t.isAbsolute)return new Gf(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new Gf(r.snapshot._urlSegment,!0,0);var o=zf(t.commands[0])?0:1;return function(e,n,i){for(var a=r.snapshot._urlSegment,s=r.snapshot._lastPathIndex+o,u=t.numberOfDoubleDots;u>s;){if(u-=s,!(a=a.parent))throw new Error("Invalid number of '../'");s=a.segments.length}return new Gf(a,!1,s-u)}()}(i,0,t),s=a.processChildren?Qf(a.segmentGroup,a.index,i.commands):Zf(a.segmentGroup,a.index,i.commands);return Bf(a.segmentGroup,s,e,r,o)}(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof Jh?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,c(n)),this.headers.set(e,r);break;case"d":var o=t.value;if(o){var i=this.headers.get(e);if(!i)return;0===(i=i.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),uy=function(){function t(){}return t.prototype.encodeKey=function(t){return ly(t)},t.prototype.encodeValue=function(t){return ly(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function ly(t){return encodeURIComponent(t).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 cy=function(){function t(t){void 0===t&&(t={});var e,n,r,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new uy,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=l(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),i=o[0],a=o[1],s=r.get(i)||[];s.push(a),r.set(i,s)}),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function py(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function hy(t){return"undefined"!=typeof Blob&&t instanceof Blob}function fy(t){return"undefined"!=typeof FormData&&t instanceof FormData}var dy=function(){function t(t,e,n,r){var o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,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 sy),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a=200&&this.status<300}}(),gy=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=yy.ResponseHeader,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(vy),my=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=yy.Response,n.body=void 0!==e.body?e.body:null,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(vy),by=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return o(e,t),e}(vy);function _y(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var wy=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof dy)r=t;else{var i;i=n.headers instanceof sy?n.headers:new sy(n.headers);var a=void 0;n.params&&(a=n.params instanceof cy?n.params:new cy({fromObject:n.params})),r=new dy(t,e,void 0!==n.body?n.body:null,{headers:i,params:a,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var s=Wu(r).pipe(wc(function(t){return o.handler.handle(t)}));if(t instanceof dy||"events"===n.observe)return s;var u=s.pipe(el(function(t){return t instanceof my}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return u.pipe(W(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return u.pipe(W(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return u.pipe(W(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return u.pipe(W(function(t){return t.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new cy).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,_y(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,_y(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,_y(n,e))},t}(),Cy=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),Sy=new yt("HTTP_INTERCEPTORS"),Ey=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),xy=/^\)\]\}',?\n/,Ty=function(){},Oy=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),Ay=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new N(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new sy(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new gy({headers:o,status:e,statusText:n,url:i})},l=function(){var e=u(),o=e.headers,i=e.status,a=e.statusText,s=e.url,l=null;204!==i&&(l=void 0===r.response?r.responseText:r.response),0===i&&(i=l?200:0);var c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){var p=l;l=l.replace(xy,"");try{l=""!==l?JSON.parse(l):null}catch(t){l=p,c&&(c=!1,l={error:t,text:l})}}c?(n.next(new my({body:l,headers:o,status:i,statusText:a,url:s||void 0})),n.complete()):n.error(new by({error:l,headers:o,status:i,statusText:a,url:s||void 0}))},c=function(t){var e=new by({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},p=!1,h=function(e){p||(n.next(u()),p=!0);var o={type:yy.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},f=function(t){var e={type:yy.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",h),null!==a&&r.upload&&r.upload.addEventListener("progress",f)),r.send(a),n.next({type:yy.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),t.reportProgress&&(r.removeEventListener("progress",h),null!==a&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},t}(),ky=new yt("XSRF_COOKIE_NAME"),Py=new yt("XSRF_HEADER_NAME"),Ry=function(){},Ny=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Gc(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),Iy=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),Dy=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(Sy,[]);this.chain=e.reduceRight(function(t,e){return new Cy(t,e)},this.backend)}return this.chain.handle(t)},t}(),My=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:Iy,useClass:Ey}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:ky,useValue:e.cookieName}:[],e.headerName?{provide:Py,useValue:e.headerName}:[]]}},t}(),jy=function(){},Vy=function(){function t(t){this.httpClient=t,this.apiRoutes=new Yl}return t.prototype.retrieveAccountDetails=function(t){var e=new sy({Authorization:"Bearer "+t.token.access_token});return this.httpClient.get("https://"+t.instance+this.apiRoutes.getCurrentAccount,{headers:e}).toPromise()},t.prototype.getTimeline=function(t,e,n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=20);var i="https://"+t.instance+this.getTimelineRoute(e,n,r,o),a=new sy({Authorization:"Bearer "+t.token.access_token});return this.httpClient.get(i,{headers:a}).toPromise()},t.prototype.getTimelineRoute=function(t,e,n,r){var o;switch(t){case oy.personnal:o=this.apiRoutes.getHomeTimeline;break;case oy.local:o=this.apiRoutes.getPublicTimeline+"?local=true&";break;case oy.global:o=this.apiRoutes.getPublicTimeline+"?local=false&";break;case oy.directmessages:o=this.apiRoutes.getDirectTimeline;break;case oy.tag:o=this.apiRoutes.getTagTimeline.replace("{0}","TODO");break;case oy.list:o=this.apiRoutes.getListTimeline.replace("{0}","TODO");break;default:throw new Error("StreamTypeEnum not supported")}return o.includes("?")||(o+="?"),e&&(o=o+"max_id="+e+"&"),n&&(o=o+"since_id="+n+"&"),r&&(o=o+"limit="+r+"&"),this.trimChar(this.trimChar(o,"?"),"&")},t.prototype.escapeRegExp=function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},t.prototype.trimChar=function(t,e){e=this.escapeRegExp(e);var n=new RegExp("^["+e+"]+|["+e+"]+$","g");return t.replace(n,"")},t}(),Uy=function(){function t(t){this.mastodonService=t}return t.prototype.getStreaming=function(t,e){return new Ly(this.mastodonService,t,e)},t}(),Ly=function(){function t(t,e,n){this.mastodonService=t,this.accountInfo=e,this.streamType=n,this.statusUpdateSubjet=new dl(null),this.apiRoutes=new Yl;var r=this.getRequest(n),o=("wss://"+e.instance+this.apiRoutes.getStreaming).replace("{0}",e.token.access_token).replace("{1}",r);this.start(o)}return t.prototype.start=function(t){var e=this;this.eventSource=new WebSocket(t),this.eventSource.onmessage=function(t){return e.statusParsing(JSON.parse(t.data))},this.eventSource.onerror=function(t){return e.webSocketGotError(t)},this.eventSource.onopen=function(t){return console.log(t)},this.eventSource.onclose=function(n){return e.webSocketClosed(t,n)}},t.prototype.webSocketGotError=function(t){this.errorClosing=!0},t.prototype.webSocketClosed=function(t,e){var n=this;console.log(e),this.errorClosing?(this.mastodonService.getTimeline(this.accountInfo,this.streamType,null,this.since_id).then(function(t){for(var e=0,r=t=t.sort(function(t,e){return t.id.localeCompare(e.id)});et?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return Xy(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return Xy(t.value)?null:Yy.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(Xy(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(Xy(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(ev);return 0==e.length?null:function(t){return rv(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(ev);return 0==e.length?null:function(t){return hl(function(t,n){return e.map(function(e){return e(t)})}(t).map(nv)).pipe(W(rv))}},t}();function ev(t){return null!=t}function nv(t){var e=Se(t)?J(t):t;if(!Ee(e))throw new Error("Expected validator to return Promise or Observable.");return e}function rv(t){var e=t.reduce(function(t,e){return null!=e?i({},t,e):t},{});return 0===Object.keys(e).length?null:e}var ov=new yt("NgValueAccessor"),iv=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),av=new yt("CompositionEventMode"),sv=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=up()?up().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();function uv(t){return t.validate?function(e){return t.validate(e)}:t}function lv(t){return t.validate?function(e){return t.validate(e)}:t}var cv=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();function pv(){throw new Error("unimplemented")}var hv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return o(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return pv()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return pv()},enumerable:!0,configurable:!0}),e}(Jy),fv=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),dv=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(hv),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=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: \n ')},t}(),yv='\n \n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',vv='\n ';function gv(t,e){return c(e.path,[t])}function mv(t,e){t||_v(e,"Cannot find control with"),e.valueAccessor||_v(e,"No value accessor for form control with"),t.validator=tv.compose([t.validator,e.validator]),t.asyncValidator=tv.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&bv(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&bv(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function bv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function _v(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function wv(t){return null!=t?tv.compose(t.map(uv)):null}function Cv(t){return null!=t?tv.composeAsync(t.map(lv)):null}var Sv=[iv,function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),cv,function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Tt}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var r=u(Array.from(this._optionMap.keys())),o=r.next();!o.done;o=r.next()){var i=o.value;if(this._compareWith(this._optionMap.get(i),t))return i}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Tt}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(Rv),Dv=function(t){function e(e,n,r){var o=t.call(this,Av(n),kv(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof Nv?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){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(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=u(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Rv),Mv=Promise.resolve(null),jv=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Ye,r.form=new Iv({},wv(e),Cv(n)),r}return o(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Mv.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),mv(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Mv.then(function(){var n,r,o=e._findContainer(t.path);o&&o.removeControl(t.name),(r=(n=e._directives).indexOf(t))>-1&&n.splice(r,1)})},e.prototype.addFormGroup=function(t){var e=this;Mv.then(function(){var n=e._findContainer(t.path),r=new Iv({});(function(t,e){null==t&&_v(e,"Cannot find control with"),t.validator=tv.compose([t.validator,e.validator]),t.asyncValidator=tv.composeAsync([t.asyncValidator,e.asyncValidator])})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Mv.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Mv.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}($y),Vv=function(){function t(){}return t.modelParentException=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 \n \n
\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 \n \n \n
\n ')},t.formGroupNameException=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 "+yv+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+vv)},t.missingNameException=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: \n Example 2: ')},t.modelGroupParentException=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 "+yv+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+vv)},t}(),Uv=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return o(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof jv||Vv.modelGroupParentException()},e}(Ev),Lv=Promise.resolve(null),Fv=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i.control=new Nv,i._registered=!1,i.update=new Ye,i._parent=e,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||_v(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){var i;e.constructor===sv?n=e:(i=e,Sv.some(function(t){return i.constructor===t})?(r&&_v(t,"More than one built-in value accessor matches form control with"),r=e):(o&&_v(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(_v(t,"No valid value accessor for form control with"),null)}(i,o),i}return o(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Tt(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?gv(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return wv(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Cv(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){mv(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof Uv)&&this._parent instanceof Ev?Vv.formGroupNameException():this._parent instanceof Uv||this._parent instanceof jv||Vv.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Vv.missingNameException()},e.prototype._updateValue=function(t){var e=this;Lv.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Lv.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(hv),Hv=function(){},zv=function(){},Bv=function(){},qv=Yr({encapsulation:0,styles:[[""]],data:{}});function Gv(t){return qi(0,[(t()(),Po(0,0,null,null,25,"div",[["class","col-xs-12 col-sm-6"]],null,null,null,null,null)),(t()(),Po(1,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Po(2,0,null,null,3,"a",[["class","btn btn-info btn-sm"],["href",""],["role","button"],["style","float: right;"],["title","close"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==ii(t,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),mi(3,671744,null,0,Sd,[_d,Df,Nc],{routerLink:[0,"routerLink"]},null),Fi(4,1),(t()(),Hi(-1,null,["close"])),(t()(),Po(6,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Hi(-1,null,["Add new account"])),(t()(),Po(8,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Po(9,0,null,null,15,"form",[["novalidate",""]],[[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,"ngSubmit"],[null,"submit"],[null,"reset"]],function(t,e,n){var r=!0,o=t.component;return"submit"===e&&(r=!1!==ii(t,11).onSubmit(n)&&r),"reset"===e&&(r=!1!==ii(t,11).onReset()&&r),"ngSubmit"===e&&(r=!1!==o.onSubmit()&&r),r},null,null)),mi(10,16384,null,0,Hv,[],null,null),mi(11,4210688,null,0,jv,[[8,null],[8,null]],null,{ngSubmit:"ngSubmit"}),bi(2048,null,$y,null,[jv]),mi(13,16384,null,0,Ov,[[4,$y]],null,null),(t()(),Po(14,0,null,null,1,"label",[],null,null,null,null,null)),(t()(),Hi(-1,null,["Mastodon account"])),(t()(),Po(16,0,null,null,5,"input",[["class","form-control form-control-sm"],["name","mastodonFullHandle"],["placeholder","@nickname@mastodon.social"],["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,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==ii(t,17)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==ii(t,17).onTouched()&&r),"compositionstart"===e&&(r=!1!==ii(t,17)._compositionStart()&&r),"compositionend"===e&&(r=!1!==ii(t,17)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.mastodonFullHandle=n)&&r),r},null,null)),mi(17,16384,null,0,sv,[xn,Tn,[2,av]],null,null),bi(1024,null,ov,function(t){return[t]},[sv]),mi(19,671744,null,0,Fv,[[2,$y],[8,null],[8,null],[6,ov]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),bi(2048,null,hv,null,[Fv]),mi(21,16384,null,0,Tv,[[4,hv]],null,null),(t()(),Po(22,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Po(23,0,null,null,1,"button",[["class","btn btn-success btn-sm"],["type","submit"]],null,null,null,null,null)),(t()(),Hi(-1,null,["Submit"])),(t()(),Hi(25,null,[" "," "]))],function(t,e){var n=e.component;t(e,3,0,t(e,4,0,"/home")),t(e,19,0,"mastodonFullHandle",n.mastodonFullHandle)},function(t,e){var n=e.component;t(e,2,0,ii(e,3).target,ii(e,3).href),t(e,9,0,ii(e,13).ngClassUntouched,ii(e,13).ngClassTouched,ii(e,13).ngClassPristine,ii(e,13).ngClassDirty,ii(e,13).ngClassValid,ii(e,13).ngClassInvalid,ii(e,13).ngClassPending),t(e,16,0,ii(e,21).ngClassUntouched,ii(e,21).ngClassTouched,ii(e,21).ngClassPristine,ii(e,21).ngClassDirty,ii(e,21).ngClassValid,ii(e,21).ngClassInvalid,ii(e,21).ngClassPending),t(e,25,0,n.result)})}var Wv=Qo("app-register-new-account",ac,function(t){return qi(0,[(t()(),Po(0,0,null,null,1,"app-register-new-account",[],null,null,null,Gv,qv)),mi(1,114688,null,0,ac,[tc,Fl,Df],null,null)],function(t,e){t(e,1,0)},null)},{mastodonFullHandle:"mastodonFullHandle"},{},[]),Zv=function(){function t(t){this.store=t,this.availableStreams=[]}return t.prototype.ngOnInit=function(){this.availableStreams.length=0,this.availableStreams.push(new ry(oy.global,"Global Timeline",this.account.username)),this.availableStreams.push(new ry(oy.local,"Local Timeline",this.account.username)),this.availableStreams.push(new ry(oy.personnal,"Personnal Timeline",this.account.username))},t.prototype.addStream=function(t){return t&&this.store.dispatch([new ey(t)]),!1},t}(),Qv=Yr({encapsulation:0,styles:[[".account-editor[_ngcontent-%COMP%]{padding:10px 10px 0 7px;font-size:12px}.account-editor__title[_ngcontent-%COMP%]{font-size:13px;text-transform:uppercase;margin:6px 0 12px}.account-editor__display-avatar[_ngcontent-%COMP%]{text-align:center;margin-bottom:30px}.account-editor__avatar[_ngcontent-%COMP%]{width:75px;border-radius:50px;-webkit-transform:translateX(15px);transform:translateX(15px)}.add-column__label[_ngcontent-%COMP%]{font-size:12px;margin-left:5px;color:#bfbfbf}.add-column__link[_ngcontent-%COMP%]{text-decoration:none;display:block;width:100%;padding:5px 10px;background-color:#141824;color:#fff}.add-column__link[_ngcontent-%COMP%]:not(:last-child){margin-bottom:5px}.add-column__link[_ngcontent-%COMP%]:hover{background-color:#2f3955}"]],data:{}});function Kv(t){return qi(0,[(t()(),Po(0,0,null,null,1,"a",[["class","add-column__link"],["href",""]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.addStream(t.context.$implicit)&&r),r},null,null)),(t()(),Hi(1,null,[" "," "]))],null,function(t,e){t(e,1,0,e.context.$implicit.name)})}function Jv(t){return qi(0,[(t()(),Po(0,0,null,null,8,"div",[["class","account-editor"]],null,null,null,null,null)),(t()(),Po(1,0,null,null,1,"h3",[["class","account-editor__title"]],null,null,null,null,null)),(t()(),Hi(-1,null,["Manage Account"])),(t()(),Po(3,0,null,null,1,"div",[["class","account-editor__display-avatar"]],null,null,null,null,null)),(t()(),Po(4,0,null,null,0,"img",[["class","account-editor__avatar"]],[[8,"src",4],[8,"title",0]],null,null,null,null)),(t()(),Po(5,0,null,null,1,"h4",[["class","add-column__label"]],null,null,null,null,null)),(t()(),Hi(-1,null,["add column:"])),(t()(),ko(16777216,null,null,1,null,Kv)),mi(8,278528,null,0,Zc,[Dn,In,nr],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,8,0,e.component.availableStreams)},function(t,e){var n=e.component;t(e,4,0,Oo(1,"",n.account.avatar,""),Oo(1,"",n.account.username," "))})}var $v=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),Xv=Yr({encapsulation:0,styles:[[""]],data:{}});function Yv(t){return qi(0,[(t()(),Po(0,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Hi(-1,null,[" message-editor works!\n"]))],null,null)}var tg=function(){function t(t){this.navigationService=t}return t.prototype.ngOnInit=function(){var t=this;this.navigationService.openColumnEditorSubject.subscribe(function(e){t.userAccountUsed=e,t.columnEditorIsOpen=!!t.userAccountUsed})},t.prototype.closePanel=function(){return this.navigationService.closeColumnEditor(),!1},t}(),eg=Yr({encapsulation:0,styles:[[".floating-column[_ngcontent-%COMP%]{width:calc(100%);max-width:330px;background-color:#090b10;overflow:hidden;z-index:99;position:fixed;top:0;bottom:30px;padding:0}.close-button[_ngcontent-%COMP%]{background-color:#141824;color:#b3b2b2;border-radius:999px;width:26px;height:26px;text-align:center;text-decoration:none;padding:1px;z-index:9999;float:right;margin:10px;transition:all .2s}.close-button[_ngcontent-%COMP%]:hover{background-color:#384466;color:#fff}"]],data:{}});function ng(t){return qi(0,[(t()(),Po(0,0,null,null,1,"app-columns-editor",[],null,null,null,Jv,Qv)),mi(1,114688,null,0,Zv,[Fl],{account:[0,"account"]},null)],function(t,e){t(e,1,0,e.component.userAccountUsed)},null)}function rg(t){return qi(0,[(t()(),Po(0,0,null,null,1,"app-message-editor",[],null,null,null,Yv,Xv)),mi(1,114688,null,0,$v,[],null,null)],function(t,e){t(e,1,0)},null)}function og(t){return qi(0,[(t()(),Po(0,0,null,null,7,"div",[["class","floating-column"]],null,null,null,null,null)),(t()(),Po(1,0,null,null,2,"div",[["class","floating-column__header"]],null,null,null,null,null)),(t()(),Po(2,0,null,null,1,"a",[["class","close-button"],["href",""],["title","close"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.closePanel()&&r),r},null,null)),(t()(),Hi(-1,null,["x"])),(t()(),ko(16777216,null,null,1,null,ng)),mi(5,16384,null,0,Kc,[Dn,In],{ngIf:[0,"ngIf"]},null),(t()(),ko(16777216,null,null,1,null,rg)),mi(7,16384,null,0,Kc,[Dn,In],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,5,0,n.columnEditorIsOpen),t(e,7,0,n.messageEditorIsOpen)},null)}var ig=function(){function t(){this.toogleAccountNotify=new Ye,this.openMenuNotify=new Ye,this.isSelected=!1}return t.prototype.ngOnInit=function(){},t.prototype.toogleAccount=function(){return this.toogleAccountNotify.emit(this.account),this.isSelected=!this.isSelected,!1},t.prototype.openMenu=function(){return this.openMenuNotify.emit(this.account),!1},t}(),ag=Yr({encapsulation:0,styles:[[".account-icon[_ngcontent-%COMP%]{display:inline-block;width:50px;margin:0 0 5px 5px}.account-icon__avatar[_ngcontent-%COMP%]{border-radius:2px;width:40px;opacity:.3;transition:all .2s}.account-icon__avatar[_ngcontent-%COMP%]:hover{filter:alpha(opacity=50);opacity:.5}.account-icon__avatar--selected[_ngcontent-%COMP%], .account-icon__avatar--selected[_ngcontent-%COMP%]:hover{filter:alpha(opacity=100);opacity:1}"]],data:{}});function sg(t){return qi(0,[(t()(),Po(0,0,null,null,1,"a",[["class","account-icon"],["href",""]],[[8,"title",0]],[[null,"click"],[null,"contextmenu"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==o.toogleAccount()&&r),"contextmenu"===e&&(r=!1!==o.openMenu()&&r),r},null,null)),(t()(),Po(1,0,null,null,0,"img",[["class","account-icon__avatar"]],[[2,"account-icon__avatar--selected",null],[8,"src",4]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,Oo(1,"",n.account.username,"")),t(e,1,0,n.isSelected,Oo(1,"",n.account.avatar,""))})}var ug=function(){function t(t,e,n){this.navigationService=t,this.mastodonService=e,this.store=n,this.accounts=[],this.loadedAccounts={},this.accounts$=this.store.select(function(t){return t.registeredaccounts.accounts})}return t.prototype.ngOnInit=function(){var t=this;this.accounts$.subscribe(function(e){if(e){t.loadedAccounts={},t.accounts.length=0;for(var n=function(e){var n=new function(){};n.username=e.username+"@"+e.instance,t.accounts.push(n),t.loadedAccounts[n.username]=e,t.mastodonService.retrieveAccountDetails(e).then(function(t){n.avatar=t.avatar})},r=0,o=e;r0){var r=t.slice(0,e),o=t.slice(e+1).trim();n.set(r,o)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var o=[];n.forEach(function(t){return o.push.apply(o,c(t.split(",")))}),e[t._normalizedNames.get(r)]=o}),e},t.prototype.getAll=function(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),Tg=function(){function t(t){void 0===t&&(t={});var e=t.body,n=t.status,r=t.headers,o=t.statusText,i=t.type,a=t.url;this.body=null!=e?e:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=o?o:null,this.type=null!=i?i:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),Og=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:Cg.Default,headers:new xg})||this}return o(e,t),e}(Tg),Ag=function(){};function kg(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return wg.Get;case"POST":return wg.Post;case"PUT":return wg.Put;case"DELETE":return wg.Delete;case"OPTIONS":return wg.Options;case"HEAD":return wg.Head;case"PATCH":return wg.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}var Pg=function(t){return t>=200&&t<300},Rg=function(){function t(){}return t.prototype.encodeKey=function(t){return Ng(t)},t.prototype.encodeValue=function(t){return Ng(t)},t}();function Ng(t){return encodeURIComponent(t).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 Ig=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new Rg),this.rawParams=t,this.queryEncoder=e,this.paramsMap=function(t){void 0===t&&(t="");var e=new Map;return t.length>0&&t.split("&").forEach(function(t){var n=t.indexOf("="),r=l(-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],2),o=r[0],i=r[1],a=e.get(o)||[];a.push(i),e.set(o,a)}),e}(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)}else this.delete(t)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],o=0;o=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return o(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(Dg),jg=/^\)\]\}',?\n/,Vg=function(){function t(t,e,n){var r=this;this.request=t,this.response=new N(function(o){var i=e.build();i.open(wg[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(i.withCredentials=t.withCredentials);var a=function(){var e=1223===i.status?204:i.status,r=null;204!==e&&"string"==typeof(r=void 0===i.response?i.responseText:i.response)&&(r=r.replace(jg,"")),0===e&&(e=r?200:0);var a,s=xg.fromResponseHeaderString(i.getAllResponseHeaders()),u=("responseURL"in(a=i)?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null)||t.url,l=new Tg({body:r,status:e,headers:s,statusText:i.statusText||"OK",url:u});null!=n&&(l=n.merge(l));var c=new Mg(l);if(c.ok=Pg(e),c.ok)return o.next(c),void o.complete();o.error(c)},s=function(t){var e=new Tg({body:t,type:Cg.Error,status:i.status,statusText:i.statusText});null!=n&&(e=n.merge(e)),o.error(new Mg(e))};if(r.setDetectedContentType(t,i),null==t.headers&&(t.headers=new xg),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return i.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=i.responseType)switch(t.responseType){case Eg.ArrayBuffer:i.responseType="arraybuffer";break;case Eg.Json:i.responseType="json";break;case Eg.Text:i.responseType="text";break;case Eg.Blob:i.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return i.addEventListener("load",a),i.addEventListener("error",s),i.send(r.request.getBody()),function(){i.removeEventListener("load",a),i.removeEventListener("error",s),i.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case Sg.NONE:break;case Sg.JSON:e.setRequestHeader("content-type","application/json");break;case Sg.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case Sg.TEXT:e.setRequestHeader("content-type","text/plain");break;case Sg.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),Ug=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=up().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),Lg=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new Vg(t,this._browserXHR,this._baseResponseOptions)},t}(),Fg=function(){function t(t){void 0===t&&(t={});var e=t.method,n=t.headers,r=t.body,o=t.url,i=t.search,a=t.params,s=t.withCredentials,u=t.responseType;this.method=null!=e?kg(e):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=o?o:null,this.params=this._mergeSearchParams(a||i),this.withCredentials=null!=s?s:null,this.responseType=null!=u?u:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new xg(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof Ig?t.clone():"string"==typeof t?new Ig(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new Ig;return Object.keys(t).forEach(function(r){var o=t[r];Array.isArray(o)?o.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,o,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),Hg=function(t){function e(){return t.call(this,{method:wg.Get,headers:new xg})||this}return o(e,t),e}(Fg),zg=function(t){function e(e){var n=t.call(this)||this,r=e.url;n.url=e.url;var o,i=e.params||e.search;if(i&&(o="object"!=typeof i||i instanceof Ig?i.toString():function(t){var e=new Ig;return Object.keys(t).forEach(function(n){var r=t[n];r&&Array.isArray(r)?r.forEach(function(t){return e.append(n,t.toString())}):e.append(n,r.toString())}),e}(i).toString()).length>0){var a="?";-1!=n.url.indexOf("?")&&(a="&"==n.url[n.url.length-1]?"":"&"),n.url=r+a+o}return n._body=e.body,n.method=kg(e.method),n.headers=new xg(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return o(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return Sg.JSON;case"application/x-www-form-urlencoded":return Sg.FORM;case"multipart/form-data":return Sg.FORM_DATA;case"text/plain":case"text/html":return Sg.TEXT;case"application/octet-stream":return this._body instanceof Zg?Sg.ARRAY_BUFFER:Sg.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?Sg.NONE:this._body instanceof Ig?Sg.FORM:this._body instanceof Gg?Sg.FORM_DATA:this._body instanceof Wg?Sg.BLOB:this._body instanceof Zg?Sg.ARRAY_BUFFER:this._body&&"object"==typeof this._body?Sg.JSON:Sg.TEXT},e.prototype.getBody=function(){switch(this.contentType){case Sg.JSON:case Sg.FORM:return this.text();case Sg.FORM_DATA:return this._body;case Sg.TEXT:return this.text();case Sg.BLOB:return this.blob();case Sg.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(Dg),Bg=function(){},qg="object"==typeof window?window:Bg,Gg=qg.FormData||Bg,Wg=qg.Blob||Bg,Zg=qg.ArrayBuffer||Bg;function Qg(t,e){return t.createConnection(e).response}function Kg(t,e,n,r){return t.merge(new Fg(e?{method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}:{method:n,url:r}))}var Jg=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=Qg(this._backend,new zg(Kg(this._defaultOptions,e,wg.Get,t)));else{if(!(t instanceof zg))throw new Error("First argument must be a url string or Request instance.");n=Qg(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new zg(Kg(this._defaultOptions,e,wg.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new zg(Kg(this._defaultOptions.merge(new Fg({body:e})),n,wg.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new zg(Kg(this._defaultOptions.merge(new Fg({body:e})),n,wg.Put,t)))},t.prototype.delete=function(t,e){return this.request(new zg(Kg(this._defaultOptions,e,wg.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new zg(Kg(this._defaultOptions.merge(new Fg({body:e})),n,wg.Patch,t)))},t.prototype.head=function(t,e){return this.request(new zg(Kg(this._defaultOptions,e,wg.Head,t)))},t.prototype.options=function(t,e){return this.request(new zg(Kg(this._defaultOptions,e,wg.Options,t)))},t}();function $g(){return new Ug}function Xg(t,e){return new Jg(t,e)}var Yg=function(){},tm=function(){function t(){}return Object.defineProperty(t.prototype,"electron",{get:function(){return this._electron?this._electron:window&&window.require?(this._electron=window.require("electron"),this._electron):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"desktopCapturer",{get:function(){return this.electron?this.electron.desktopCapturer:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ipcRenderer",{get:function(){return this.electron?this.electron.ipcRenderer:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"remote",{get:function(){return this.electron?this.electron.remote:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"webFrame",{get:function(){return this.electron?this.electron.webFrame:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clipboard",{get:function(){return this.electron?this.electron.clipboard:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"crashReporter",{get:function(){return this.electron?this.electron.crashReporter:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"process",{get:function(){return this.remote?this.remote.process:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nativeImage",{get:function(){return this.electron?this.electron.nativeImage:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"screen",{get:function(){return this.electron?this.electron.screen:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shell",{get:function(){return this.electron?this.electron.shell:null},enumerable:!0,configurable:!0}),t}(),em=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nm=function(t){function e(){return t.call(this)||this}return em(e,t),e}(tm),rm=function(){},om=new yt("NGXS_STORAGE_PLUGIN_OPTION"),im=new yt("STORAGE_ENGINE"),am=function(){function t(t,e){this._options=t,this._engine=e}return t.prototype.handle=function(t,e,n){var r,o,i,a=this,s=this._options||{},l=(r=Sl(e),function(t){return r===Sl(t)}),c=l(zl)||l(Bl),p=Array.isArray(s.key)?s.key:[s.key],h=!1;if(c){var f=function(e){var n="@@STATE"===e,r=d._engine.getItem(e);if("undefined"!==r&&null!==r){try{r=s.deserialize(r)}catch(t){console.error("Error ocurred while deserializing the store value, falling back to empty object."),r={}}s.migrations&&s.migrations.forEach(function(t){t.version===xl(r,t.versionKey||"version")&&(!t.key&&n||t.key===e)&&(r=t.migrate(r),h=!0)}),t=n?r:El(t,e,r)}},d=this;try{for(var y=u(p),v=y.next();!v.done;v=y.next())f(v.value)}catch(t){o={error:t}}finally{try{v&&!v.done&&(i=y.return)&&i.call(y)}finally{if(o)throw o.error}}}return n(t,e).pipe(hc(function(t){if(!c||c&&h)try{for(var e=u(p),n=e.next();!n.done;n=e.next()){var r=n.value,o=t;"@@STATE"!==r&&(o=xl(t,r));try{a._engine.setItem(r,s.serialize(o))}catch(t){console.error("Error ocurred while serializing the store value, value not updated.")}}}catch(t){i={error:t}}finally{try{n&&!n.done&&(l=e.return)&&l.call(e)}finally{if(i)throw i.error}}var i,l}))},t}();function sm(t){return Object.assign({key:"@@STATE",storage:0,serialize:JSON.stringify,deserialize:JSON.parse},t)}function um(t){return 0===t.storage?localStorage:1===t.storage?sessionStorage:null}var lm=new yt("USER_OPTIONS"),cm=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:ml,useClass:am,multi:!0},{provide:lm,useValue:e},{provide:om,useFactory:sm,deps:[lm]},{provide:im,useFactory:um,deps:[om]}]}},t}(),pm=function(t,e,n){return new $a(uc,[cc],function(t){return function(t){for(var e={},n=[],r=!1,o=0;o",this._properties=t&&t.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(t,"root",{get:function(){for(var e=t.current;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),Object.defineProperty(t,"current",{get:function(){return D.zone},enumerable:!0,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return j},enumerable:!0,configurable:!0}),t.__load_patch=function(o,i){if(O.hasOwnProperty(o))throw Error("Already loaded patch: "+o);if(!e["__Zone_disable_"+o]){var a="Zone:"+o;n(a),O[o]=i(e,t,S),r(a,a)}},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},t.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},t.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},t.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},t.prototype.run=function(e,t,n,r){void 0===t&&(t=void 0),void 0===n&&(n=null),void 0===r&&(r=null),D={parent:D,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{D=D.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),D={parent:D,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{D=D.parent}},t.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||g).name+"; Execution: "+this.name+")");if(e.state!==y||e.type!==x){var r=e.state!=k;r&&e._transitionTo(k,m),e.runCount++;var o=j;j=e,D={parent:D,zone:this};try{e.type==E&&e.data&&!e.data.isPeriodic&&(e.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{e.state!==y&&e.state!==T&&(e.type==x||e.data&&e.data.isPeriodic?r&&e._transitionTo(m,k):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(y,k,y))),D=D.parent,j=o}}},t.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+e.zone.name);t=t.parent}e._transitionTo(_,y);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(t){throw e._transitionTo(T,_,y),this._zoneDelegate.handleError(this,t),t}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==_&&e._transitionTo(m,_),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new u(w,e,t,n,r,null))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new u(E,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new u(x,e,t,n,r,o))},t.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||g).name+"; Execution: "+this.name+")");e._transitionTo(b,m,k);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(T,b),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(y,b),e.runCount=0,e},t.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})},e}(),u=function(){function t(n,r,o,i,a,c){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=c,this.callback=o;var u=this;this.invoke=n===x&&i&&i.useG?t.invokeTask:function(){return t.invokeTask.call(e,u,this,arguments)}}return t.invokeTask=function(e,t,n){e||(e=this),P++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==P&&d(),P--}},Object.defineProperty(t.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),t.prototype.cancelScheduleRequest=function(){this._transitionTo(y,_)},t.prototype._transitionTo=function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+t+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=e,e==y&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},t.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},t}(),s=z("setTimeout"),l=z("Promise"),f=z("then"),p=[],h=!1;function v(t){0===P&&0===p.length&&(o||e[l]&&(o=e[l].resolve(0)),o?o[f](d):e[s](d,0)),t&&p.push(t)}function d(){if(!h){for(h=!0;p.length;){var e=p;p=[];for(var t=0;t=0;n--)"function"==typeof e[n]&&(e[n]=p(e[n],t+"_"+n));return e}function b(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var T="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,w=!("nw"in y)&&void 0!==y.process&&"[object process]"==={}.toString.call(y.process),E=!w&&!T&&!(!d||!g.HTMLElement),x=void 0!==y.process&&"[object process]"==={}.toString.call(y.process)&&!T&&!(!d||!g.HTMLElement),O={},S=function(e){if(e=e||y.event){var t=O[e.type];t||(t=O[e.type]=v("ON_PROPERTY"+e.type));var n=(this||e.target||y)[t],r=n&&n.apply(this,arguments);return void 0==r||r||e.preventDefault(),r}};function D(n,r,o){var i=e(n,r);if(!i&&o&&e(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){delete i.writable,delete i.value;var a=i.get,c=i.set,u=r.substr(2),s=O[u];s||(s=O[u]=v("ON_PROPERTY"+u)),i.set=function(e){var t=this;t||n!==y||(t=y),t&&(t[s]&&t.removeEventListener(u,S),c&&c.apply(t,m),"function"==typeof e?(t[s]=e,t.addEventListener(u,S,!1)):t[s]=null)},i.get=function(){var e=this;if(e||n!==y||(e=y),!e)return null;var t=e[s];if(t)return t;if(a){var o=a&&a.call(this);if(o)return i.set.call(this,o),"function"==typeof e[_]&&e.removeAttribute(r),o}return null},t(n,r,i)}}function j(e,t,n){if(t)for(var r=0;r1?new c(t,n):new c(t),f=e(l,"onmessage");return f&&!1===f.configurable?(u=r(l),s=l,[i,a,"send","close"].forEach(function(e){u[e]=function(){var t=o.call(arguments);if(e===i||e===a){var n=t.length>0?t[0]:void 0;if(n){var r=Zone.__symbol__("ON_PROPERTY"+n);l[r]=u[r]}}return l[e].apply(l,t)}})):u=l,j(u,["close","error","message","open"],s),u};var u=n.WebSocket;for(var s in c)u[s]=c[s]}(0,u)}}var fe=v("unbound");Zone.__load_patch("util",function(e,t,n){n.patchOnProperties=j,n.patchMethod=z,n.bindArguments=k}),Zone.__load_patch("timers",function(e){K(e,"set","clear","Timeout"),K(e,"set","clear","Interval"),K(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){K(e,"request","cancel","AnimationFrame"),K(e,"mozRequest","mozCancel","AnimationFrame"),K(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r=0&&"function"==typeof n[r.cbIdx]?h(r.name,n[r.cbIdx],r,i,null):e.apply(t,n)}})}()}),Zone.__load_patch("XHR",function(e,t){!function(t){var s=XMLHttpRequest.prototype,l=s[c],f=s[u];if(!l){var p=e.XMLHttpRequestEventTarget;if(p){var v=p.prototype;l=v[c],f=v[u]}}var d="readystatechange",g="scheduled";function y(e){XMLHttpRequest[i]=!1;var t=e.data,r=t.target,a=r[o];l||(l=r[c],f=r[u]),a&&f.call(r,d,a);var s=r[o]=function(){r.readyState===r.DONE&&!t.aborted&&XMLHttpRequest[i]&&e.state===g&&e.invoke()};return l.call(r,d,s),r[n]||(r[n]=e),b.apply(r,t.args),XMLHttpRequest[i]=!0,e}function _(){}function m(e){var t=e.data;return t.aborted=!0,T.apply(t.target,t.args)}var k=z(s,"open",function(){return function(e,t){return e[r]=0==t[2],e[a]=t[1],k.apply(e,t)}}),b=z(s,"send",function(){return function(e,t){return e[r]?b.apply(e,t):h("XMLHttpRequest.send",_,{target:e,url:e[a],isPeriodic:!1,delay:null,args:t,aborted:!1},y,m)}}),T=z(s,"abort",function(){return function(e){var t=e[n];if(t&&"string"==typeof t.type){if(null==t.cancelFn||t.data&&t.data.aborted)return;t.zone.cancelTask(t)}}})}();var n=v("xhrTask"),r=v("xhrSync"),o=v("xhrListener"),i=v("xhrScheduled"),a=v("xhrURL")}),Zone.__load_patch("geolocation",function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,o=function(o){var i=n[o],a=t[i];if(a){if(!b(e(t,i)))return"continue";t[i]=function(e){var t=function(){return e.apply(this,k(arguments,r+"."+i))};return M(t,e),t}(a)}},i=0;i0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},"9gX7":function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},Afnz:function(e,t,n){"use strict";var r=n("LQAc"),o=n("XKFU"),i=n("KroJ"),a=n("Mukb"),c=n("hPIQ"),u=n("QaDb"),s=n("fyDq"),l=n("OP3Y"),f=n("K0xU")("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,v,d,g,y){u(n,t,v);var _,m,k,b=function(e){if(!p&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",w="values"==d,E=!1,x=e.prototype,O=x[f]||x["@@iterator"]||d&&x[d],S=O||b(d),D=d?w?b("entries"):S:void 0,j="Array"==t&&x.entries||O;if(j&&(k=l(j.call(new e)))!==Object.prototype&&k.next&&(s(k,T,!0),r||"function"==typeof k[f]||a(k,f,h)),w&&O&&"values"!==O.name&&(E=!0,S=function(){return O.call(this)}),r&&!y||!p&&!E&&x[f]||a(x,f,S),c[t]=S,c[T]=h,d)if(_={values:w?S:b("values"),keys:g?S:b("keys"),entries:D},y)for(m in _)m in x||i(x,m,_[m]);else o(o.P+o.F*(p||E),t,_);return _}},BqfV:function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),i=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t){return i(e,o(t),arguments.length<3?void 0:a(arguments[2]))}})},CkkT:function(e,t,n){var r=n("m0Pp"),o=n("Ymqv"),i=n("S/j/"),a=n("ne8i"),c=n("zRwo");e.exports=function(e,t){var n=1==e,u=2==e,s=3==e,l=4==e,f=6==e,p=5==e||f,h=t||c;return function(t,c,v){for(var d,g,y=i(t),_=o(y),m=r(c,v,3),k=a(_.length),b=0,T=n?h(t,k):u?h(t,0):void 0;k>b;b++)if((p||b in _)&&(g=m(d=_[b],b,y),e))if(n)T[b]=g;else if(g)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:T.push(d)}else if(l)return!1;return f?-1:s||l?l:T}}},DVgA:function(e,t,n){var r=n("zhAb"),o=n("4R4u");e.exports=Object.keys||function(e){return r(e,o)}},EK0E:function(e,t,n){"use strict";var r,o=n("CkkT")(0),i=n("KroJ"),a=n("Z6vF"),c=n("czNK"),u=n("ZD67"),s=n("0/R4"),l=n("eeVq"),f=n("s5qY"),p=a.getWeak,h=Object.isExtensible,v=u.ufstore,d={},g=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(s(e)){var t=p(e);return!0===t?v(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(f(this,"WeakMap"),e,t)}},_=e.exports=n("4LiD")("WeakMap",g,y,u,!0,!0);l(function(){return 7!=(new _).set((Object.freeze||Object)(d),7).get(d)})&&(c((r=u.getConstructor(g,"WeakMap")).prototype,y),a.NEED=!0,o(["delete","has","get","set"],function(e){var t=_.prototype,n=t[e];i(t,e,function(t,o){if(s(t)&&!h(t)){this._f||(this._f=new r);var i=this._f[e](t,o);return"set"==e?this:i}return n.call(this,t,o)})}))},EWmC:function(e,t,n){var r=n("LZWt");e.exports=Array.isArray||function(e){return"Array"==r(e)}},EemH:function(e,t,n){var r=n("UqcF"),o=n("RjD/"),i=n("aCFj"),a=n("apmT"),c=n("aagx"),u=n("xpql"),s=Object.getOwnPropertyDescriptor;t.f=n("nh4g")?s:function(e,t){if(e=i(e),t=a(t,!0),u)try{return s(e,t)}catch(e){}if(c(e,t))return o(!r.f.call(e,t),e[t])}},FJW5:function(e,t,n){var r=n("hswa"),o=n("y3w9"),i=n("DVgA");e.exports=n("nh4g")?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),c=a.length,u=0;c>u;)r.f(e,n=a[u++],t[n]);return e}},FZcq:function(e,t,n){n("49D4"),n("zq+C"),n("45Tv"),n("uAtd"),n("BqfV"),n("fN/3"),n("iW+S"),n("7Dlh"),n("Opxb"),e.exports=n("g3g5").Reflect},H6hf:function(e,t,n){var r=n("y3w9");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},"I8a+":function(e,t,n){var r=n("LZWt"),o=n("K0xU")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},Iw71:function(e,t,n){var r=n("0/R4"),o=n("dyZX").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"J+6e":function(e,t,n){var r=n("I8a+"),o=n("K0xU")("iterator"),i=n("hPIQ");e.exports=n("g3g5").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},JiEa:function(e,t){t.f=Object.getOwnPropertySymbols},K0xU:function(e,t,n){var r=n("VTer")("wks"),o=n("ylqs"),i=n("dyZX").Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},KroJ:function(e,t,n){var r=n("dyZX"),o=n("Mukb"),i=n("aagx"),a=n("ylqs")("src"),c=Function.toString,u=(""+c).split("toString");n("g3g5").inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,c){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(s&&(i(n,a)||o(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:c?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||c.call(this)})},Kuth:function(e,t,n){var r=n("y3w9"),o=n("FJW5"),i=n("4R4u"),a=n("YTvA")("IE_PROTO"),c=function(){},u=function(){var e,t=n("Iw71")("iframe"),r=i.length;for(t.style.display="none",n("+rLv").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("
+
+
+
+
+
+