From 164fa1eb35584edfd1a95fa89a0caa9fecfb0071 Mon Sep 17 00:00:00 2001 From: Treven Trujillo Date: Fri, 7 Sep 2018 22:42:44 -0600 Subject: [PATCH 1/2] added button to show all categories in the user's collection --- snippets/src/app/has-keywords.pipe.ts | 4 ++++ .../src/app/results/results.component.html | 22 +++++++++++++++++++ snippets/src/app/results/results.component.ts | 1 + 3 files changed, 27 insertions(+) diff --git a/snippets/src/app/has-keywords.pipe.ts b/snippets/src/app/has-keywords.pipe.ts index 0197ec2..0a89813 100644 --- a/snippets/src/app/has-keywords.pipe.ts +++ b/snippets/src/app/has-keywords.pipe.ts @@ -6,6 +6,10 @@ import { Pipe, PipeTransform } from '@angular/core'; export class HasKeywordsPipe implements PipeTransform { transform(value: Array, args?: any): any { + // Return all categories when pipe is passed string argument. + if (args === "showAllValues") { + return value.filter(cat => cat.jobKeywords === 0); + } // Only return categories if there is at least 1 keyword in the job description return value.filter(cat => cat.jobKeywords > 0); } diff --git a/snippets/src/app/results/results.component.html b/snippets/src/app/results/results.component.html index c806643..4a13a02 100644 --- a/snippets/src/app/results/results.component.html +++ b/snippets/src/app/results/results.component.html @@ -32,8 +32,30 @@

Results for the job description:

+
+

Showing More...

+ + + + + + + + + + + + + + +
Category/Name:Show snippets for Category
{{ keyword.keyword }} + Show Snippets +
+
+
+
diff --git a/snippets/src/app/results/results.component.ts b/snippets/src/app/results/results.component.ts index 37aa276..de21cad 100644 --- a/snippets/src/app/results/results.component.ts +++ b/snippets/src/app/results/results.component.ts @@ -14,6 +14,7 @@ export class ResultsComponent implements OnInit { filteredSnippets: Array; displayedCategory = ''; showFilteredSnippetsTable = false; + showAllValues = false; constructor( public parseDescriptionService: ParseDescriptionService, From ee609e5807d6385458a6756f2dce1fb34f27337a Mon Sep 17 00:00:00 2001 From: Treven Trujillo Date: Wed, 12 Sep 2018 21:09:19 -0600 Subject: [PATCH 2/2] appended rows to keyword-results-table and made button text dynamic. ng build --prod --- dist/3rdpartylicenses.txt | 315 +- dist/index.html | 4 +- dist/main.26c1e7c19134c46cfc5e.js | 1 + dist/main.js | 1415 - dist/main.js.map | 1 - dist/polyfills.a19b2f1d90e9baecaab8.js | 1 + dist/polyfills.js | 5481 -- dist/polyfills.js.map | 1 - dist/runtime.a66f828dca56eeb90e02.js | 1 + dist/runtime.js | 137 - dist/runtime.js.map | 1 - dist/styles.051a794719de1e14ce15.css | 1 + dist/styles.js | 590 - dist/styles.js.map | 1 - dist/vendor.js | 78570 ---------------- dist/vendor.js.map | 1 - .../src/app/results/results.component.css | 5 + .../src/app/results/results.component.html | 19 +- 18 files changed, 18 insertions(+), 86527 deletions(-) create mode 100644 dist/main.26c1e7c19134c46cfc5e.js delete mode 100644 dist/main.js delete mode 100644 dist/main.js.map create mode 100644 dist/polyfills.a19b2f1d90e9baecaab8.js delete mode 100644 dist/polyfills.js delete mode 100644 dist/polyfills.js.map create mode 100644 dist/runtime.a66f828dca56eeb90e02.js delete mode 100644 dist/runtime.js delete mode 100644 dist/runtime.js.map create mode 100644 dist/styles.051a794719de1e14ce15.css delete mode 100644 dist/styles.js delete mode 100644 dist/styles.js.map delete mode 100644 dist/vendor.js delete mode 100644 dist/vendor.js.map diff --git a/dist/3rdpartylicenses.txt b/dist/3rdpartylicenses.txt index 14cba26..66dafd8 100644 --- a/dist/3rdpartylicenses.txt +++ b/dist/3rdpartylicenses.txt @@ -42,317 +42,4 @@ 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. - -style-loader@0.21.0 -MIT -Copyright JS Foundation and other contributors - -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. - -@angular/common@6.1.2 -MIT -MIT - -@angular/compiler@6.1.2 -MIT -MIT - -@angular/core@6.1.2 -MIT -MIT - -@angular/forms@6.1.2 -MIT -MIT - -@angular/platform-browser-dynamic@6.1.2 -MIT -MIT - -@angular/platform-browser@6.1.2 -MIT -MIT - -@angular/router@6.1.2 -MIT -MIT - -rxjs@6.2.2 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -tslib@1.9.3 -Apache-2.0 -Apache License - -Version 2.0, January 2004 - -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of this License; and - -You must cause any modified files to carry prominent notices stating that You changed the files; and - -You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and - -If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS \ No newline at end of file +THE SOFTWARE. \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index b197a1d..87dd845 100644 --- a/dist/index.html +++ b/dist/index.html @@ -7,8 +7,8 @@ - + - + diff --git a/dist/main.26c1e7c19134c46cfc5e.js b/dist/main.26c1e7c19134c46cfc5e.js new file mode 100644 index 0000000..1ee9cf6 --- /dev/null +++ b/dist/main.26c1e7c19134c46cfc5e.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=function(t,e){return(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])})(t,e)};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=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.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 u}function l(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(B);function Y(t){return t}function X(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),K(Y,t)}var tt=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),et=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}(w),nt=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return o(e,t),e}(E),rt=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[S]=function(){return new nt(this)},e.prototype.lift=function(t){var e=new ot(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new tt;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}(E),lt=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 w).add(this.source.subscribe(new ct(this.getSubject(),this))),t.closed?(this._connection=null,t=w.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return it()(this)},e}(A).prototype,st={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:lt._subscribe},_isComplete:{value:lt._isComplete,writable:!0},getSubject:{value:lt.getSubject},connect:{value:lt.connect},refCount:{value:lt.refCount}},ct=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}(nt);function pt(){return new rt}function dt(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}var ht=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}(),ft="__parameters__";function vt(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 u=e[i];o.push(i+":"+("string"==typeof u?JSON.stringify(u):xt(u)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Gt,"\n ")}function Jt(t,e){return new Error(Kt(t,e))}var $t=void 0;function Yt(t){var e=$t;return $t=t,e}function Xt(t,e){if(void 0===e&&(e=0),void 0===$t)throw new Error("inject() must be called from an injection context");if(null===$t){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 ["+xt(t)+"]")}return $t.get(t,8&e?null:void 0,e)}function te(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}(),ln=function(){function t(){this._applications=new Map,sn.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),sn.findTestabilityInTree(this,t,e)},t.ctorParameters=function(){return[]},t}(),sn=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),cn=!0,pn=!1,dn=new ht("AllowMultipleToken");function hn(){return pn=!0,cn}var fn=function(t,e){this.name=t,this.token=e};function vn(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new ht(r);return function(e){void 0===e&&(e=[]);var i=gn();if(!i||i.injector.get(dn,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var u=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(on&&!on.destroyed&&!on.injector.get(dn,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");on=t.get(yn);var e=t.get(Te,null);e&&e.forEach(function(t){return t()})}(Vt.create({providers:u,name:r}))}return function(t){var e=gn();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 gn(){return on&&!on.destroyed?on:null}var yn=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 Ye({enableLongStackTrace:hn()}),i=[{provide:Ye,useValue:o}];return o.run(function(){var e=Vt.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),u=n.injector.get(se,null);if(!u)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return _n(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){u.handleError(t)}})}),function(t,e,o){try{var i=((u=n.injector.get(Ee)).runInitializers(),u.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return we(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 u}(u,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(De),o=mn({},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(bn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+xt(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 mn(t,e){return Array.isArray(e)?e.reduce(mn,t):i({},t,e)}var bn=function(){function t(t,e,n,r,o,i){var u=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=hn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var a=new A(function(t){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){t.next(u._stable),t.complete()})}),l=new A(function(t){var e;u._zone.runOutsideAngular(function(){e=u._zone.onStable.subscribe(function(){Ye.assertNotInAngularZone(),St(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,t.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){Ye.assertInAngularZone(),u._stable&&(u._stable=!1,u._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 A?t[0]:X(n)(Q(t,r))}(a,l.pipe(function(t){return it()((e=pt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,st);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 je?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof qe?null:this._injector.get(Ge),i=n.create(Vt.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var u=i.injector.get(an,null);return u&&i.injector.get(ln).registerApplication(i.location.nativeElement,u),this._loadComponent(i),hn()&&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,Je(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;_n(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ae,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),_n(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=Ke("ApplicationRef#tick()"),t}();function _n(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var wn=function(){},Cn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),Sn=function(){},En=function(t){this.nativeElement=t},xn=function(){},kn=function(){function t(){this.dirty=!0,this._results=[],this.changes=new $e,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[Ct()]=function(){return this._results[Ct()]()},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}(),On=function(){},Tn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Pn=function(){function t(t,e){this._compiler=t,this._config=e||Tn}return t.prototype.load=function(t){return this._compiler instanceof Re?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=a(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 An(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=a(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 An(t,r,o)})},t}();function An(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var In=function(){},Nn=function(){},Rn=function(){},Dn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Mn?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}(),Mn=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,l([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 Mn&&(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 Mn&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof Mn&&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}(Dn),jn=new Map;function Vn(t){return jn.get(t)||null}function Ln(t){jn.set(t.nativeNode,t)}function Un(t,e){var n=zn(t),r=zn(e);return n&&r?function(t,e,n){for(var r=t[Ct()](),o=e[Ct()]();;){var i=r.next(),u=o.next();if(i.done&&u.done)return!0;if(i.done||u.done)return!1;if(!n(i.value,u.value))return!1}}(t,e,Un):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||Et(t,e)}var Hn=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}(),Fn=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 zn(t){return!!Bn(t)&&(Array.isArray(t)||!(t instanceof Map)&&Ct()in t)}function Bn(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var qn=function(){function t(){}return t.prototype.supports=function(t){return zn(t)},t.prototype.create=function(t){return new Wn(t)},t}(),Gn=function(t,e){return e},Wn=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||Gn}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();Cr.hasOwnProperty(e)&&!mr.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(Pr(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}(),Or=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Tr=/([^\#-~ |!])/g;function Pr(t){return t.replace(/&/g,"&").replace(Or,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Tr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Ar(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"),Nr=/^url\(([^)]+)\)$/,Rr=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}({}),Dr=function(){};function Mr(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 jr(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Vr(t,e){return t.nodes[e]}function Lr(t,e){return t.nodes[e]}function Ur(t,e){return t.nodes[e]}function Hr(t,e){return t.nodes[e]}function Fr(t,e){return t.nodes[e]}var zr={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 Br(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 qr(n,e),n}(o,t)}function qr(t,e){t[re]=e,t[ie]=e.logError.bind(e)}function Gr(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var Wr=function(){},Qr=new Map;function Zr(t){var e=Qr.get(t);return e||(e=xt(t)+"_"+Qr.size,Qr.set(t,e)),e}function Kr(t,e,n,r){if(Hn.isWrapped(r)){r=Hn.unwrap(r);var o=t.def.nodes[e].bindingIndex+n,i=Hn.unwrap(t.oldValues[o]);t.oldValues[o]=new Hn(i)}return r}var Jr="$$undefined",$r="$$empty";function Yr(t){return{id:Jr,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var Xr=0;function to(t,e,n,r){return!(!(2&t.state)&&Et(t.oldValues[e.bindingIndex+n],r))}function eo(t,e,n,r){return!!to(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function no(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!Un(o,r)){var i=e.bindings[n].name;throw Br(zr.createDebugContext(t,e.nodeIndex),i+": "+o,i+": "+r,0!=(1&t.state))}}function ro(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function oo(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function io(t,e,n,r){try{return ro(33554432&t.def.nodes[e].flags?Lr(t,e).componentView:t),zr.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function uo(t){return t.parent?Lr(t.parent,t.parentNodeDef.nodeIndex):null}function ao(t){return t.parent?t.parentNodeDef.parent:null}function lo(t,e){switch(201347067&e.flags){case 1:return Lr(t,e.nodeIndex).renderElement;case 2:return Vr(t,e.nodeIndex).renderText}}function so(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function co(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function po(t){return 1<-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var s=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:s,token:e.token},t._providers[s]=No,t._providers[s]=Lo(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Yt(i)}}function Lo(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(Vo(t,n[0]));case 2:return new e(Vo(t,n[0]),Vo(t,n[1]));case 3:return new e(Vo(t,n[0]),Vo(t,n[1]),Vo(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,Bo(n,e),zr.dirtyParentQueries(r),Fo(r),r}function Ho(t,e,n){var r=e?lo(e,e.def.lastRenderRootNode):t.renderElement;mo(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Fo(t){mo(t,3,null,null,void 0)}function zo(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Bo(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var qo=new Object;function Go(t,e,n,r,o,i){return new Wo(t,e,n,r,o,i)}var Wo=function(t){function e(e,n,r,o,i,u){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=u,a.viewDefFactory=r,a}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=yo(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,u=zr.createRootView(t,e||[],n,o,r,qo),a=Ur(u,i).instance;return n&&u.renderer.setAttribute(Lr(u,0).renderElement,"ng-version",ne.full),new Qo(u,new $o(u),a)},e}(je),Qo=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 En(Lr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new ei(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}(Me);function Zo(t,e,n){return new Ko(t,e,n)}var Ko=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 En(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new ei(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=ao(t),t=t.parent;return t?new ei(t,e):new ei(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Uo(this._data,t);zr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new $o(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 qe||(o=i.get(Ge));var u=t.create(i,r,void 0,o);return this.insert(u.hostView,e),u},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,u=t;return o=u._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,zo(i,r,o),function(t,e){var n=uo(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),zr.dirtyParentQueries(o),Ho(n,r>0?i[r-1]:null,o),u.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,u,a=this._embeddedViews.indexOf(t._view);return o=e,u=(i=(n=this._data).viewContainer._embeddedViews)[r=a],Bo(i,r),null==o&&(o=i.length),zo(i,o,u),zr.dirtyParentQueries(u),Fo(u),Ho(n,o>0?i[o-1]:null,u),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Uo(this._data,t);e&&zr.destroyView(e)},t.prototype.detach=function(t){var e=Uo(this._data,t);return e?new $o(e):null},t}();function Jo(t){return new $o(t)}var $o=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return mo(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(){ro(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{zr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){zr.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)),zr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Fo(this._view),zr.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 Yo(t,e){return new Xo(t,e)}var Xo=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 $o(zr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new En(Lr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(In);function ti(t,e){return new ei(t,e)}var ei=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Vt.THROW_IF_NOT_FOUND),zr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Zr(t)},e)},t}();function ni(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Lr(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Vr(t,n.nodeIndex).renderText;if(20240&n.flags)return Ur(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function ri(t){return new oi(t.renderer)}var oi=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=a(Eo(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 Si(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(xi(t,e,n,o[0]));case 2:return r(xi(t,e,n,o[0]),xi(t,e,n,o[1]));case 3:return r(xi(t,e,n,o[0]),xi(t,e,n,o[1]),xi(t,e,n,o[2]));default:for(var u=Array(i),a=0;a0)s=v,Gi(v)||(c=v);else for(;s&&f===s.nodeIndex+s.childCount;){var m=s.parent;m&&(m.childFlags|=s.childFlags,m.childMatchedQueries|=s.childMatchedQueries),c=(s=m)&&Gi(s)?s.renderParent:s}}return{factory:null,nodeFlags:u,rootNodeFlags:a,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||Wr,updateRenderer:r||Wr,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:h}}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 Qi(t,e,n,r){var o=Ji(t.root,t.renderer,t,e,n);return $i(o,t.component,r),Yi(o),o}function Zi(t,e,n){var r=Ji(t,t.renderer,null,null,e);return $i(r,n,n),Yi(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),u=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:u,initIndex:-1}}function $i(t,e,n){t.component=e,t.context=n}function Yi(t){var e;so(t)&&(e=Lr(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&Io(t,e,0,n)&&(h=!0),d>1&&Io(t,e,1,r)&&(h=!0),d>2&&Io(t,e,2,o)&&(h=!0),d>3&&Io(t,e,3,i)&&(h=!0),d>4&&Io(t,e,4,u)&&(h=!0),d>5&&Io(t,e,5,a)&&(h=!0),d>6&&Io(t,e,6,l)&&(h=!0),d>7&&Io(t,e,7,s)&&(h=!0),d>8&&Io(t,e,8,c)&&(h=!0),d>9&&Io(t,e,9,p)&&(h=!0),h}(t,e,n,r,o,i,u,a,l,s,c,p);case 2:return function(t,e,n,r,o,i,u,a,l,s,c,p){var d=!1,h=e.bindings,f=h.length;if(f>0&&eo(t,e,0,n)&&(d=!0),f>1&&eo(t,e,1,r)&&(d=!0),f>2&&eo(t,e,2,o)&&(d=!0),f>3&&eo(t,e,3,i)&&(d=!0),f>4&&eo(t,e,4,u)&&(d=!0),f>5&&eo(t,e,5,a)&&(d=!0),f>6&&eo(t,e,6,l)&&(d=!0),f>7&&eo(t,e,7,s)&&(d=!0),f>8&&eo(t,e,8,c)&&(d=!0),f>9&&eo(t,e,9,p)&&(d=!0),d){var v=e.text.prefix;f>0&&(v+=Bi(n,h[0])),f>1&&(v+=Bi(r,h[1])),f>2&&(v+=Bi(o,h[2])),f>3&&(v+=Bi(i,h[3])),f>4&&(v+=Bi(u,h[4])),f>5&&(v+=Bi(a,h[5])),f>6&&(v+=Bi(l,h[6])),f>7&&(v+=Bi(s,h[7])),f>8&&(v+=Bi(c,h[8])),f>9&&(v+=Bi(p,h[9]));var g=Vr(t,e.nodeIndex).renderText;t.renderer.setValue(g,v)}return d}(t,e,n,r,o,i,u,a,l,s,c,p);case 16384:return function(t,e,n,r,o,i,u,a,l,s,c,p){var d=Ur(t,e.nodeIndex),h=d.instance,f=!1,v=void 0,g=e.bindings.length;return g>0&&to(t,e,0,n)&&(f=!0,v=Oi(t,d,e,0,n,v)),g>1&&to(t,e,1,r)&&(f=!0,v=Oi(t,d,e,1,r,v)),g>2&&to(t,e,2,o)&&(f=!0,v=Oi(t,d,e,2,o,v)),g>3&&to(t,e,3,i)&&(f=!0,v=Oi(t,d,e,3,i,v)),g>4&&to(t,e,4,u)&&(f=!0,v=Oi(t,d,e,4,u,v)),g>5&&to(t,e,5,a)&&(f=!0,v=Oi(t,d,e,5,a,v)),g>6&&to(t,e,6,l)&&(f=!0,v=Oi(t,d,e,6,l,v)),g>7&&to(t,e,7,s)&&(f=!0,v=Oi(t,d,e,7,s,v)),g>8&&to(t,e,8,c)&&(f=!0,v=Oi(t,d,e,8,c,v)),g>9&&to(t,e,9,p)&&(f=!0,v=Oi(t,d,e,9,p,v)),v&&h.ngOnChanges(v),65536&e.flags&&jr(t,256,e.nodeIndex)&&h.ngOnInit(),262144&e.flags&&h.ngDoCheck(),f}(t,e,n,r,o,i,u,a,l,s,c,p);case 32:case 64:case 128:return function(t,e,n,r,o,i,u,a,l,s,c,p){var d=e.bindings,h=!1,f=d.length;if(f>0&&eo(t,e,0,n)&&(h=!0),f>1&&eo(t,e,1,r)&&(h=!0),f>2&&eo(t,e,2,o)&&(h=!0),f>3&&eo(t,e,3,i)&&(h=!0),f>4&&eo(t,e,4,u)&&(h=!0),f>5&&eo(t,e,5,a)&&(h=!0),f>6&&eo(t,e,6,l)&&(h=!0),f>7&&eo(t,e,7,s)&&(h=!0),f>8&&eo(t,e,8,c)&&(h=!0),f>9&&eo(t,e,9,p)&&(h=!0),h){var v=Hr(t,e.nodeIndex),g=void 0;switch(201347067&e.flags){case 32:g=new Array(d.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=o),f>3&&(g[3]=i),f>4&&(g[4]=u),f>5&&(g[5]=a),f>6&&(g[6]=l),f>7&&(g[7]=s),f>8&&(g[8]=c),f>9&&(g[9]=p);break;case 64:g={},f>0&&(g[d[0].name]=n),f>1&&(g[d[1].name]=r),f>2&&(g[d[2].name]=o),f>3&&(g[d[3].name]=i),f>4&&(g[d[4].name]=u),f>5&&(g[d[5].name]=a),f>6&&(g[d[6].name]=l),f>7&&(g[d[7].name]=s),f>8&&(g[d[8].name]=c),f>9&&(g[d[9].name]=p);break;case 128:var y=n;switch(f){case 1:g=y.transform(n);break;case 2:g=y.transform(r);break;case 3:g=y.transform(r,o);break;case 4:g=y.transform(r,o,i);break;case 5:g=y.transform(r,o,i,u);break;case 6:g=y.transform(r,o,i,u,a);break;case 7:g=y.transform(r,o,i,u,a,l);break;case 8:g=y.transform(r,o,i,u,a,l,s);break;case 9:g=y.transform(r,o,i,u,a,l,s,c);break;case 10:g=y.transform(r,o,i,u,a,l,s,c,p)}}v.value=g}return h}(t,e,n,r,o,i,u,a,l,s,c,p);default:throw"unreachable"}}(t,e,r,o,i,u,a,s,c,p,d,h):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&no(t,e,0,n),d>1&&no(t,e,1,r),d>2&&no(t,e,2,o),d>3&&no(t,e,3,i),d>4&&no(t,e,4,u),d>5&&no(t,e,5,a),d>6&&no(t,e,6,l),d>7&&no(t,e,7,s),d>8&&no(t,e,8,c),d>9&&no(t,e,9,p)}(t,e,r,o,i,u,a,l,s,c,p,d):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);_u.forEach(function(e,r){if(i.has(r.ngInjectableDef.providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:fo(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[Zr(r)]=o}})}}(t=t.factory(function(){return Wr})),t):t}(r))}var bu=new Map,_u=new Map,wu=new Map;function Cu(t){bu.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&_u.set(t.token,t)}function Su(t,e){var n=yo(yo(e.viewDefFactory).nodes[0].element.componentView);wu.set(t,n)}function Eu(){bu.clear(),_u.clear(),wu.clear()}function xu(t){if(0===bu.size)return t;var e=function(t){for(var e=[],n=null,r=0;r"}(e))}function Oa(t){return Array.isArray(t)?t[0]:t}function Ta(t){if(2===t.tNode.type){var e=t.data;return e[oa]?e[oa][aa]:null}return t.tNode.next?t.view[t.tNode.next.index]:null}function Pa(t){return t.tNode.child?Oa((2===t.tNode.type?t.data:t.view)[t.tNode.child.index]):null}function Aa(t){if(-1===t.tNode.index&&2===t.tNode.type){var e=t.data[fa];return-1===e?null:t.view[e].dynamicLContainerNode}var n=t.tNode.parent;return Oa(n?t.view[n.index]:t.view[aa])}var Ia=[];function Na(t){for(var e=t[aa];2===e.tNode.type;)ngDevMode&&Xu(t[ra],"lViewData.parent"),e=(t=t[ra])[aa];return ngDevMode&&ka(e,3),ngDevMode&&Xu(e.data,"node.data"),e}function Ra(t,e,n,r,o){0===t?Ea(e)?e.insertBefore(n,r,o):n.insertBefore(r,o,!0):1===t?Ea(e)?e.removeChild(n,r):n.removeChild(r):2===t&&(ngDevMode&&ngDevMode.rendererDestroyNode++,e.destroyNode(r))}function Da(t){if(-1===t[na].childIndex)return null;var e=t[t[na].childIndex];return e.data?e.data:e.dynamicLContainerNode.data}function Ma(t,e){var n;return(n=t[aa])&&2===n.tNode.type?Aa(n).data:t[ra]===e?null:t[ra]}function ja(t){if(t[na]){var e=t;!function(t){var e=t[na].cleanup;if(null!=e){for(var n=0;n=d.length){var h=d[p]=pl(e,p,r,o,a,null);if(!Ha&&Ua){var f=Ua.tNode;f.next=h,f.dynamicContainerNode&&(f.dynamicContainerNode.next=h)}}c.tNode=d[p],Ha&&(za=null,(null==Ua.tNode.child&&Ua.view===qa||2===Ua.tNode.type)&&(Ua.tNode.child=c.tNode))}if(2==(2&e)&&s){var v=i;ngDevMode&&null!=v[aa]&&ta("lViewData[HOST_NODE] should not have been initialized"),v[aa]=c,$a&&(v[na].node=c.tNode)}return Ua=c,Ha=!0,c}function ol(t,e,n,r){var o,i=Ha,u=Ua;if(null==t.data[ra]&&t.data[pa]&&!e.template)fl(t.data[pa]);else try{Ha=!0,Ua=null,o=Ya(t.data,t),ll(),e.template(r,n),2&r?tl():t.data[na].firstTemplatePass=$a=!1}finally{Xa(o,1==(1&r)),Ha=i,Ua=u}return t}function il(t,e,n,r){var o=Ya(e,t);try{La.begin&&La.begin(),r?(ll(),r(ul(e),n),tl()):(Ja||(ma(qa,Fa,Ba),ba(Ga,Fa.contentHooks,Fa.contentCheckHooks,Ba)),el(Za),dl(0,ea))}finally{La.end&&La.end(),Xa(o)}}function ul(t){return 1&t[ua]?3:2}var al=null;function ll(){al=null}function sl(t,e,n,r,o){return ngDevMode&&ngDevMode.tView++,{id:t,template:e,viewQuery:o,node:null,data:Ka.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 cl(t,e){ngDevMode&&ml(-1),La=t;var n,r=t.createRenderer(null,null),o="string"==typeof e?Ea(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 pl(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 dl(t,e){ngDevMode&&ml(e);var n=qa[e];ngDevMode&&ka(n,3),ngDevMode&&Xu(n.data,"Component's host node should have an LViewData attached.");var r=n.data;hl(r)&&6&r[ua]&&(ngDevMode&&ml(t,Ga),yl(r,n,Ga[t]))}function hl(t){return 8==(8&t[ua])}function fl(t){for(var e=0;e=(e?e.length:0)&&ta("index expected to be a valid data index")}(t,e||qa)}function bl(t,e){null==e&&(e=qa),Yu(e.length,t,"index "+t+" expected to be at the end of arr (length "+e.length+")")}function _l(t){ngDevMode&&Xu(t,"expecting component got null");var e=t[Wa];return ngDevMode&&Xu(t,"object is not a component"),e}var wl=Qa;function Cl(t){return{components:[],scheduler:t,clean:wl}}var Sl=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[ua])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t,e;this._viewContainerRef&&hl(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),Ea(e=(t=this._view)[ha])&&e.destroyNode&&function(e,n,r,o,i,u){for(var a=t[aa],l=-1;a;){var s=null,c=a.tNode.type;if(3===c)Ra(2,o,null,a.native,u),a.dynamicLContainerNode&&Ra(2,o,null,a.dynamicLContainerNode.native,u);else if(0===c){Ra(2,o,null,a.native,u);var p=a,d=p.dynamicLContainerNode?p.dynamicLContainerNode.data:p.data;(s=d[Ca].length?Pa(d[Ca][0]):null)&&(u=p.dynamicLContainerNode?p.dynamicLContainerNode.native:p.native)}else if(1===c){var h=Na(a.view),f=h.tNode.projection[a.tNode.projection];Ia[++l]=a,s=f?h.data[ra][f.index]:null}else s=Pa(a);if(null===s)for(null===(s=Ta(a))&&8192&a.tNode.flags&&(s=Ta(Ia[l--]));a&&!s;){if(null===(a=Aa(a))||a===n)return null;a.tNode.next||0!==c||(u=a.native),s=Ta(a)}a=s}}(0,t[aa],0,e),function(t){if(-1===t[na].childIndex)return ja(t);for(var e=Da(t);e;){var n=null;if(e.length>=ea?e[na].childIndex>-1&&(n=Da(e)):e[Ca].length&&(n=e[Ca][0].data),null==n){for(;e&&!e[oa]&&e!==t;)ja(e),e=Ma(e,t);ja(e||t),n=e&&e[oa]}e=n}}(t),t[ua]|=32},t.prototype.onDestroy=function(t){var e,n;n=t,function(t){return t[ca]||(t[ca]=[])}(e=this._view).push(n),e[na].firstTemplatePass&&function(t){return t[na].cleanup||(t[na].cleanup=[])}(e).push(e[ca].length-1,null)},t.prototype.markForCheck=function(){!function(t){for(var e=t;null!=e[ra];)e[ua]|=4,e=e[ra];var n,r;e[ua]|=4,ngDevMode&&Xu(e[pa],"rootContext"),(n=e[pa]).clean==Qa&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){fl(n),r(null),n.clean=Qa}))}(this._view)},t.prototype.detach=function(){this._view[ua]&=-9},t.prototype.reattach=function(){this._view[ua]|=8},t.prototype.detectChanges=function(){gl(this.context)},t.prototype.checkNoChanges=function(){!function(t){Ja=!0;try{gl(t)}finally{Ja=!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}(),El=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||ta(e)),new Tl(t.ngComponentDef);var e},e}(ze);function xl(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var kl=new ht("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return Cl(Xt(Ol))}}),Ol=new ht("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return requestAnimationFrame.bind(window)}}),Tl=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 xl(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return xl(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var o,i,u=void 0===n,a=r?r.injector.get(wn):xa,l=u?(o=this.selector,Ea(i=a.createRenderer(null,this.componentDef.rendererType)||Va)?i.createElement(o,al):null===al?i.createElement(o):i.createElementNS(al,o)):cl(a,n),s=r&&!u?r.injector.get(kl):Cl(requestAnimationFrame.bind(window)),c=nl(a.createRenderer(l,this.componentDef.rendererType),sl(-1,null,null,null,null),s,this.componentDef.onPush?4:2);c[da]=r&&r.injector||null;var p,d,h=Ya(c,null);try{if(a.begin&&a.begin(),d=function(t,e,n,r){Ha=!1,Ua=null;var o,i=rl(0,3,e,null,null,nl(Va,(o=n.template).ngPrivateData||(o.ngPrivateData=sl(-1,o,n.directiveDefs,n.pipeDefs,n.viewQuery)),null,n.onPush?4:2,r));return $a&&(i.tNode.flags=4096,n.diPublic&&n.diPublic(n),Fa.directives=[n]),i}(0,l,this.componentDef),s.components.push(p=function(t,e,n){if(ngDevMode&&Yu(qa[la],-1,"directives should be created before any bindings"),ngDevMode&&Yu(Ha,!0,"previousOrParentNode should be a parent"),Object.defineProperty(e,Wa,{enumerable:!1,value:Ua}),null==Ga&&(qa[sa]=Ga=[]),ngDevMode&&bl(t,Ga),Ga[t]=e,$a){var r=Ua.tNode.flags;0==(4095&r)?Ua.tNode.flags=t<<14|4096&r|1:(ngDevMode&&4095==(4095&r)&&ta("Reached the max number of directives"),Ua.tNode.flags++)}else{var o=n.diPublic;o&&o(n)}return null!=n.attributes&&3==Ua.tNode.type&&function(t,e){for(var n=Ea(Va),r=0;r>14,r=n+(4095&t),o=n;o0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=Bl.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Bl.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+Bl.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}(Fl),Wl=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 Bl.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+Bl.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+Bl.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Bl.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Fl),Ql=void 0,Zl=["en",[["a","p"],["AM","PM"],Ql],[["AM","PM"],Ql,Ql],[["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"]],Ql,[["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"]],Ql,[["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}",Ql,"{1} 'at' {0}",Ql],[".",",",";","%","+","-","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}],Kl={},Jl=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}({}),$l=new ht("UseV4Plurals"),Yl=function(){},Xl=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=Kl[e];if(n)return n;var r=e.split("-")[0];if(n=Kl[r])return n;if("en"===r)return Zl;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case Jl.Zero:return"zero";case Jl.One:return"one";case Jl.Two:return"two";case Jl.Few:return"few";case Jl.Many:return"many";default:return"other"}},e}(Yl);function ts(t,e){var n,r;e=encodeURIComponent(e);try{for(var o=u(t.split(";")),i=o.next();!i.done;i=o.next()){var l=i.value,s=l.indexOf("="),c=a(-1==s?[l,""]:[l.slice(0,s),l.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 es=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(zn(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+xt(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t}(),ns=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}(),rs=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){hn()&&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 ns(null,e._ngForOf,-1,-1),o),u=new os(t,i);n.push(u)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),u=new os(t,i),n.push(u))});for(var r=0;r0){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,l(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}(),gs=function(){function t(){}return t.prototype.encodeKey=function(t){return ys(t)},t.prototype.encodeValue=function(t){return ys(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function ys(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 ms=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 gs,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=a(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),i=o[0],u=o[1],l=r.get(i)||[];l.push(u),r.set(i,l)}),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 bs(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function _s(t){return"undefined"!=typeof Blob&&t instanceof Blob}function ws(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Cs=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 vs),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var u=e.indexOf("?");this.urlWithParams=e+(-1===u?"?":u=200&&this.status<300}}(),xs=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Ss.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}(Es),ks=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Ss.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}(Es),Os=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}(Es);function Ts(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Ps=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 Cs)r=t;else{var i;i=n.headers instanceof vs?n.headers:new vs(n.headers);var u=void 0;n.params&&(u=n.params instanceof ms?n.params:new ms({fromObject:n.params})),r=new Cs(t,e,void 0!==n.body?n.body:null,{headers:i,params:u,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var a=Dl(r).pipe(Ml(function(t){return o.handler.handle(t)}));if(t instanceof Cs||"events"===n.observe)return a;var l=a.pipe(jl(function(t){return t instanceof ks}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return l.pipe(q(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(q(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(q(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 l.pipe(q(function(t){return t.body}))}case"response":return l;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 ms).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,Ts(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Ts(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Ts(n,e))},t}(),As=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}(),Is=new ht("HTTP_INTERCEPTORS"),Ns=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),Rs=/^\)\]\}',?\n/,Ds=function(){},Ms=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),js=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 A(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 u=t.serializeBody(),a=null,l=function(){if(null!==a)return a;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new vs(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 a=new xs({headers:o,status:e,statusText:n,url:i})},s=function(){var e=l(),o=e.headers,i=e.status,u=e.statusText,a=e.url,s=null;204!==i&&(s=void 0===r.response?r.responseText:r.response),0===i&&(i=s?200:0);var c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof s){var p=s;s=s.replace(Rs,"");try{s=""!==s?JSON.parse(s):null}catch(t){s=p,c&&(c=!1,s={error:t,text:s})}}c?(n.next(new ks({body:s,headers:o,status:i,statusText:u,url:a||void 0})),n.complete()):n.error(new Os({error:s,headers:o,status:i,statusText:u,url:a||void 0}))},c=function(t){var e=new Os({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},p=!1,d=function(e){p||(n.next(l()),p=!0);var o={type:Ss.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},h=function(t){var e={type:Ss.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",s),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",d),null!==u&&r.upload&&r.upload.addEventListener("progress",h)),r.send(u),n.next({type:Ss.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",s),t.reportProgress&&(r.removeEventListener("progress",d),null!==u&&r.upload&&r.upload.removeEventListener("progress",h)),r.abort()}})},t}(),Vs=new ht("XSRF_COOKIE_NAME"),Ls=new ht("XSRF_HEADER_NAME"),Us=function(){},Hs=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=ts(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),Fs=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}(),zs=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(Is,[]);this.chain=e.reduceRight(function(t,e){return new As(t,e)},this.backend)}return this.chain.handle(t)},t}(),Bs=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:Fs,useClass:Ns}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:Vs,useValue:e.cookieName}:[],e.headerName?{provide:Ls,useValue:e.headerName}:[]]}},t}(),qs=function(){},Gs=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Ws(t,this.count,this.source))},t}(),Ws=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.count=n,o.source=r,o}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(E);function Qs(t){return function(e){var n=new Zs(t),r=e.lift(n);return n.caught=r}}var Zs=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Ks(t,this.selector,this.caught))},t}(),Ks=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(z(this,n))}},e}(B),Js=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new tt;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(rt),$s=function(){function t(){this.statusMessageStream=new Js(void 0)}return t.prototype.getStatusMessageStream=function(){return this.statusMessageStream.asObservable()},t.prototype.newStatusMessage=function(t,e){this.statusMessageStream.next({status:t,cssClass:e})},t.prototype.clearStatus=function(){this.statusMessageStream.next({status:"",cssClass:""})},t}(),Ys=function(){function t(t,e){this.http=t,this.statusMessageService=e,this.connected=!1,this.showDatabase=!1,this.categories={}}return t.prototype.startConnection=function(t,e){void 0===t&&(t=!0),void 0===e&&(e="snippets-db.json");var n,r=this,o=JSON.stringify({databaseUrl:e}),i={headers:new vs({"Content-Type":"application/json; charset=utf-8"})},u=t?"api/get-json-data":"api/connect-to-database";r.isJson=t,this.http.post(u,o,i).pipe((n=2,void 0===n&&(n=-1),function(t){return t.lift(new Gs(n,t))}),Qs(this.handleError)).subscribe(function(t){t.connected&&!t.error?(r.database=t.data,r.statusMessageService.newStatusMessage(t.responseMessage,"success"),r.connected=!0,r.showDatabase=!0,r.database.length>0&&r.extractCategories()):t.error&&r.statusMessageService.newStatusMessage(t.responseMessage,"errir")})},t.prototype.addSnippet=function(t,e){var n=this,r={snippet:t,categories:e},o={headers:new vs({"Content-Type":"application/json; charset=utf-8"})};this.http.post(n.isJson?"api/add-json-snippet":"api/add-snippet",JSON.stringify(r),o).pipe(Qs(this.handleError)).subscribe(function(t){t.connected?(n.statusMessageService.newStatusMessage(t.responseMessage,"success"),n.database=t.data,n.extractCategories()):t.error&&n.statusMessageService.newStatusMessage(t.responseMessage,"error")})},t.prototype.editSnippet=function(t,e,n){var r=this,o=r.isJson?"api/edit-json-snippet":"api/edit-snippet",i={id:t,snippet:e,categories:n},u={headers:new vs({"Content-Type":"application/json; charset=utf-8"})};this.http.put(o,JSON.stringify(i),u).pipe(Qs(this.handleError)).subscribe(function(t){t.connected&&!t.error?(r.statusMessageService.newStatusMessage(t.responseMessage,"success"),r.database=t.data,r.extractCategories()):t.error&&r.statusMessageService.newStatusMessage(t.responseMessage,"errir")})},t.prototype.deleteSnippet=function(t){var e=this,n={id:t},r=e.isJson?"api/delete-json-snippet":"api/delete-snippet",o={headers:new vs({"Content-Type":"application/json; charset=utf-8"}),body:JSON.stringify(n)};this.http.delete(r,o).pipe(Qs(this.handleError)).subscribe(function(t){t.connected&&!t.error?(e.statusMessageService.newStatusMessage(t.responseMessage,"success"),e.database=t.data,e.extractCategories()):t.error&&e.statusMessageService.newStatusMessage(t.responseMessage,"errir")})},t.prototype.extractCategories=function(){this.categories={};for(var t=0;tt[i].jobKeywords&&(r(t,u,o),o++);return r(t,i,o),o}(e,n,o);t(e,n,i-1),t(e,i+1,o)}return e}(e,0,e.length-1),this.statusMessageService.newStatusMessage("Finished parsing the description. The category with the most keywords in this job description is: "+e[0].keyword+" with "+e[0].jobKeywords+" keywords.","success"),e},t}(),nc=function(){function t(t){this.statusMessageService=t,this.addedSnippets=[],this.exported=""}return t.prototype.addSnippet=function(t){for(var e=0;e=2;return function(r){return r.pipe(t?jl(function(e,n){return t(e,n,r)}):Y,function(t){return t.lift(new sc(1))},n?pc(e):gc(function(){return new ac}))}}function bc(t,e){return function(n){return n.lift(new _c(t,e,n))}}var _c=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 wc(t,this.predicate,this.thisArg,this.source))},t}(),wc=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}(E);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}(E);function xc(t){return function(e){return 0===t?Rl():e.lift(new kc(t))}}var kc=function(){function t(t){if(this.total=t,this.total<0)throw new lc}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?jl(function(e,n){return t(e,n,r)}):Y,xc(1),n?pc(e):gc(function(){return new ac}))}}var Ac=null;function Ic(){return Ac}var Nc,Rc={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Dc={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Mc={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};bt.Node&&(Nc=bt.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var jc,Vc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,Ac||(Ac=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,l(n))},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return Rc},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return Nc.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),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;u||(u=t[i]=[]);var l=yp(e)?Zone.root:Zone.current;if(0===u.length)u.push({zone:l,handler:o});else{for(var s=!1,c=0;c-1},e}(Jc),xp=["alt","control","meta","shift"],kp={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Op=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 Ic().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(xp.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 u={};return u.domEventName=r,u.fullKey=i,u},e.getEventFullKey=function(t){var e="",n=Ic().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),xp.forEach(function(r){r!=n&&(0,kp[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}(Jc),Tp=function(){},Pp=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 Rr.NONE:return e;case Rr.HTML:return e instanceof Ip?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{yr=yr||new pr(t);var r=e?String(e):"";n=yr.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=yr.getInertBodyElement(r)}while(r!==i);var u=new kr,a=u.sanitizeChildren(Ar(n)||n);return hn()&&u.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}finally{if(n)for(var l=Ar(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}(this._doc,String(e)));case Rr.STYLE:return e instanceof Np?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Nr);return e&&fr(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 vd(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function gd(t){return t.pipe(X(),bc(function(t){return!0===t}))}function yd(t){return Ce(t)?t:we(t)?Z(Promise.resolve(t)):Dl(t)}function md(t,e,n){return n?function(t,e){return dd(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Cd(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!!Cd(u=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Cd(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 u=o.slice(0,n.segments.length),a=o.slice(n.segments.length);return!!Cd(n.segments,u)&&!!n.children[rd]&&e(n.children[rd],r,a)}(e,n,n.segments)}(t.root,e.root)}var bd=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=id(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return kd.serialize(this)},t}(),_d=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,vd(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 Od(this)},t}(),wd=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=id(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Rd(this)},t}();function Cd(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Sd(t,e){var n=[];return vd(t.children,function(t,r){r===rd&&(n=n.concat(e(t,r)))}),vd(t.children,function(t,r){r!==rd&&(n=n.concat(e(t,r)))}),n}var Ed=function(){},xd=function(){function t(){}return t.prototype.parse=function(t){var e=new Ld(t);return new bd(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Od(e);if(n){var r=e.children[rd]?t(e.children[rd],!1):"",o=[];return vd(e.children,function(e,n){n!==rd&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=Sd(e,function(n,r){return r===rd?[t(e.children[rd],!1)]:[r+":"+t(n,!1)]});return Od(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 Pd(t)+"="+Pd(e)}).join("&"):Pd(t)+"="+Pd(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),kd=new xd;function Od(t){return t.segments.map(function(t){return Rd(t)}).join("/")}function Td(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Pd(t){return Td(t).replace(/%3B/gi,";")}function Ad(t){return Td(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Id(t){return decodeURIComponent(t)}function Nd(t){return Id(t.replace(/\+/g,"%20"))}function Rd(t){return""+Ad(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Ad(t)+"="+Ad(e[t])}).join(""));var e}var Dd=/^[^\/()?;=#]+/;function Md(t){var e=t.match(Dd);return e?e[0]:""}var jd=/^[^=?&#]+/,Vd=/^[^?&#]+/,Ld=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 _d([],{}):new _d([],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[rd]=new _d(t,e)),n},t.prototype.parseSegment=function(){var t=Md(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new wd(Id(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Md(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Md(this.remaining);r&&this.capture(n=r)}t[Id(e)]=Id(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(jd))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(Vd);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Nd(n),u=Nd(r);if(t.hasOwnProperty(i)){var a=t[i];Array.isArray(a)||(t[i]=a=[a]),a.push(u)}else t[i]=u}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Md(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=rd);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[rd]:new _d([],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}(),Ud=function(t){this.segmentGroup=t||null},Hd=function(t){this.urlTree=t};function Fd(t){return new A(function(e){return e.error(new Ud(t))})}function zd(t){return new A(function(e){return e.error(new Hd(t))})}function Bd(t){return new A(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var qd=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(Ge)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,rd).pipe(q(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Qs(function(e){if(e instanceof Hd)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Ud)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,rd).pipe(q(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(Qs(function(t){if(t instanceof Ud)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 _d([],((r={})[rd]=t,r)):t;return new bd(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(q(function(t){return new _d([],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 Dl({});var i=[],u=[],a={};return vd(n,function(n,o){var l,s,c=(l=o,s=n,r.expandSegmentGroup(t,e,s,l)).pipe(q(function(t){return a[o]=t}));o===rd?i.push(c):u.push(c)}),Dl.apply(null,i.concat(u)).pipe(Tc(),Pc(),q(function(){return a}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var u=this;return Dl.apply(void 0,l(n)).pipe(q(function(a){return u.expandSegmentAgainstRoute(t,e,n,a,r,o,i).pipe(Qs(function(t){if(t instanceof Ud)return Dl(null);throw t}))}),Tc(),mc(function(t){return!!t}),Qs(function(t,n){if(t instanceof ac||"EmptyError"===t.name){if(u.noLeftoversInUrl(e,r,o))return Dl(new _d([],{}));throw new Ud(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,u){return Zd(r)!==i?Fd(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):Fd(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("/")?zd(i):this.lineralizeSegments(n,i).pipe(K(function(n){var i=new _d(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var u=this,a=Gd(e,r,o),l=a.consumedSegments,s=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return Fd(e);var p=this.applyRedirectCommands(l,r.redirectTo,c);return r.redirectTo.startsWith("/")?zd(p):this.lineralizeSegments(r,p).pipe(K(function(r){return u.expandSegment(t,e,n,r.concat(o.slice(s)),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(q(function(t){return n._loadedConfig=t,new _d(r,{})})):Dl(new _d(r,{}));var a=Gd(e,n,r),l=a.consumedSegments,s=a.lastChild;if(!a.matched)return Fd(e);var c=r.slice(s);return this.getChildConfig(t,n).pipe(K(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 Qd(t,e,n)&&Zd(n)!==rd})}(t,n)?{segmentGroup:Wd(new _d(e,function(t,e){var n,r,o={};o[rd]=e;try{for(var i=u(t),a=i.next();!a.done;a=i.next()){var l=a.value;""===l.path&&Zd(l)!==rd&&(o[Zd(l)]=new _d([],{}))}}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 _d(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return Qd(t,e,n)})}(t,n)?{segmentGroup:Wd(new _d(t.segments,function(t,e,n,r){var o,a,l={};try{for(var s=u(n),c=s.next();!c.done;c=s.next()){var p=c.value;Qd(t,e,p)&&!r[Zd(p)]&&(l[Zd(p)]=new _d([],{}))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}return i({},r,l)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,l,c,r),s=a.segmentGroup,p=a.slicedSegments;return 0===p.length&&s.hasChildren()?o.expandChildren(n,r,s).pipe(q(function(t){return new _d(l,t)})):0===r.length&&0===p.length?Dl(new _d(l,{})):o.expandSegment(n,s,r,p,rd,!0).pipe(q(function(t){return new _d(l.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Dl(new ad(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Dl(e._loadedConfig):function(t,e){var n=e.canLoad;return n&&0!==n.length?gd(Z(n).pipe(q(function(n){var r=t.get(n);return yd(r.canLoad?r.canLoad(e):r(e))}))):Dl(!0)}(t.injector,e).pipe(K(function(r){return r?n.configLoader.load(t.injector,e).pipe(q(function(t){return e._loadedConfig=t,t})):function(t){return new A(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)})):Dl(new ad([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Dl(n);if(r.numberOfChildren>1||!r.children[rd])return Bd(t.redirectTo);r=r.children[rd]}},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 bd(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return vd(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),u={};return vd(e.children,function(e,i){u[i]=o.createSegmentGroup(t,e,n,r)}),new _d(i,u)},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 l=a.value;if(l.path===t.path)return e.splice(o),l;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 Gd(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||ud)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Wd(t){if(1===t.numberOfChildren&&t.children[rd]){var e=t.children[rd];return new _d(t.segments.concat(e.segments),e.children)}return t}function Qd(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Zd(t){return t.outlet||rd}var Kd=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=Jd(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=Jd(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=$d(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 $d(t,this._root).map(function(t){return t.value})},t}();function Jd(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=Jd(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 $d(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=$d(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 Yd=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Xd(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var th=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,uh(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Kd);function eh(t,e){var n=function(t,e){var n=new oh([],{},{},"",{},rd,e,null,t.root,-1,{});return new ih("",new Yd(n,[]))}(t,e),r=new Js([new wd("",{})]),o=new Js({}),i=new Js({}),u=new Js({}),a=new Js(""),l=new nh(r,o,u,a,i,rd,e,n.root);return l.snapshot=n.root,new th(new Yd(l,[]),n)}var nh=function(){function t(t,e,n,r,o,i,u,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=u,this._futureSnapshot=a}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(q(function(t){return id(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(q(function(t){return id(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function rh(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],u=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(u.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 oh=function(){function t(t,e,n,r,o,i,u,a,l,s,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=u,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=s,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=id(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=id(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}(),ih=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,uh(r,n),r}return o(e,t),e.prototype.toString=function(){return ah(this._root)},e}(Kd);function uh(t,e){e.value._routerState=t,e.children.forEach(function(e){return uh(t,e)})}function ah(t){var e=t.children.length>0?" { "+t.children.map(ah).join(", ")+" } ":"";return""+t.value+e}function lh(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,dd(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),dd(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&ch(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!==fd(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}(),hh=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function fh(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[rd]:""+t}function vh(t,e,n){if(t||(t=new _d([],{})),0===t.segments.length&&t.hasChildren())return gh(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 u=t.segments[o],a=fh(n[r]),l=r0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!_h(a,l,u))return i;r+=2}else{if(!_h(a,{},u))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 T(Cc(t,e),xc(1),pc(e))(n)}:function(e){return T(Cc(function(e,n,r){return t(e,n,r+1)}),xc(1))(e)}}(function(t,e){return t})):Dl(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=Xd(e);t.children.forEach(function(t){o.setupRouteGuards(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),vd(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,u=n?n.getContext(t.value.outlet):null;if(i&&o.routeConfig===i.routeConfig){var a=this.shouldRunGuardsAndResolvers(i,o,o.routeConfig.runGuardsAndResolvers);a?this.canActivateChecks.push(new wh(r)):(o.data=i.data,o._resolvedData=i._resolvedData),this.setupChildRouteGuards(t,e,o.component?u?u.children:null:n,r),a&&this.canDeactivateChecks.push(new Ch(u.outlet.component,i))}else i&&this.deactivateRouteAndItsChildren(e,u),this.canActivateChecks.push(new wh(r)),this.setupChildRouteGuards(t,null,o.component?u?u.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!sh(t,e)||!dd(t.queryParams,e.queryParams);case"paramsChange":default:return!sh(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=Xd(t),o=t.value;vd(r,function(t,r){n.deactivateRouteAndItsChildren(t,o.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new Ch(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this;return Z(this.canDeactivateChecks).pipe(K(function(e){return t.runCanDeactivate(e.component,e.route)}),bc(function(t){return!0===t}))},t.prototype.runCanActivateChecks=function(){var t=this;return Z(this.canActivateChecks).pipe(Ml(function(e){return gd(Z([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))}),bc(function(t){return!0===t}))},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new Xp(t)),Dl(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new $p(t)),Dl(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?gd(Z(n).pipe(q(function(n){var r=e.getToken(n,t);return yd(r.canActivate?r.canActivate(t,e.future):r(t,e.future)).pipe(mc())}))):Dl(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1];return gd(Z(t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t})).pipe(q(function(t){return gd(Z(t.guards).pipe(q(function(r){var o=e.getToken(r,t.node);return yd(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)).pipe(mc())})))})))},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?Z(r).pipe(K(function(r){var o=n.getToken(r,e);return yd(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)).pipe(mc())})).pipe(bc(function(t){return!0===t})):Dl(!0)},t.prototype.runResolve=function(t,e){return this.resolveNode(t._resolve,t).pipe(q(function(n){return t._resolvedData=n,t.data=i({},t.data,rh(t,e).resolve),null}))},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Dl({});if(1===r.length){var o=r[0];return this.getResolver(t[o],e).pipe(q(function(t){var e;return(e={})[o]=t,e}))}var i={};return Z(r).pipe(K(function(r){return n.getResolver(t[r],e).pipe(q(function(t){return i[r]=t,t}))})).pipe(Pc(),q(function(){return i}))},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return yd(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}(),Eh=function(){},xh=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=Th(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,rd),n=new oh([],Object.freeze({}),Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,{},rd,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Yd(n,e),o=new ih(this.url,r);return this.inheritParamsAndData(o._root),Dl(o)}catch(t){return new A(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=rh(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=Sd(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===rd?-1:e.value.outlet===rd?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),l=a.next();!l.done;l=a.next()){var s=l.value;try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(t){if(!(t instanceof Eh))throw t}}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new Eh},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 Eh;if((t.outlet||rd)!==r)throw new Eh;var o,u=[],a=[];if("**"===t.path){var l=n.length>0?fd(n).parameters:{};o=new oh(n,l,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,Ih(t),r,t.component,t,kh(e),Oh(e)+n.length,Nh(t))}else{var s=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Eh;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||ud)(n,t,e);if(!r)throw new Eh;var o={};vd(r.posParams,function(t,e){o[e]=t.path});var u=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:u}}(e,t,n);u=s.consumedSegments,a=n.slice(s.lastChild),o=new oh(u,s.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,Ih(t),r,t.component,t,kh(e),Oh(e)+u.length,Nh(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=Th(e,u,a,c,this.relativeLinkResolution),d=p.segmentGroup,h=p.slicedSegments;if(0===h.length&&d.hasChildren()){var f=this.processChildren(c,d);return[new Yd(o,f)]}if(0===c.length&&0===h.length)return[new Yd(o,[])];var v=this.processSegment(c,d,h,rd);return[new Yd(o,v)]},t}();function kh(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Oh(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 Th(t,e,n,r,o){if(n.length>0&&function(t,e,n){return r.some(function(n){return Ph(t,e,n)&&Ah(n)!==rd})}(t,n)){var a=new _d(e,function(t,e,n,r){var o,i,a={};a[rd]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var l=u(n),s=l.next();!s.done;s=l.next()){var c=s.value;if(""===c.path&&Ah(c)!==rd){var p=new _d([],{});p._sourceSegment=t,p._segmentIndexShift=e.length,a[Ah(c)]=p}}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return a}(t,e,r,new _d(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 Ph(t,e,n)})}(t,n)){var l=new _d(t.segments,function(t,e,n,r,o,a){var l,s,c={};try{for(var p=u(r),d=p.next();!d.done;d=p.next()){var h=d.value;if(Ph(t,n,h)&&!o[Ah(h)]){var f=new _d([],{});f._sourceSegment=t,f._segmentIndexShift="legacy"===a?t.segments.length:e.length,c[Ah(h)]=f}}}catch(t){l={error:t}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(l)throw l.error}}return i({},o,c)}(t,e,n,r,t.children,o));return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}var s=new _d(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Ph(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Ah(t){return t.outlet||rd}function Ih(t){return t.data||{}}function Nh(t){return t.resolve||{}}var Rh=function(){},Dh=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}(),Mh=new ht("ROUTES"),jh=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(q(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new ad(hd(o.injector.get(Mh)).map(pd),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Z(this.loader.load(t)):yd(t()).pipe(K(function(t){return t instanceof We?Dl(t):Z(e.compiler.compileModuleAsync(t))}))},t}(),Vh=function(){},Lh=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 Uh(t){throw t}function Hh(t,e,n){return e.parse("/")}function Fh(t,e){return Dl(null)}var zh=function(){function t(t,e,n,r,o,i,u,a){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.navigations=new Js(null),this.navigationId=0,this.events=new rt,this.errorHandler=Uh,this.malformedUriErrorHandler=Hh,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Fh,afterPreactivation:Fh},this.urlHandlingStrategy=new Lh,this.routeReuseStrategy=new Dh,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(Ge),this.resetConfig(a),this.currentUrlTree=new bd(new _d([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new jh(i,u,function(t){return l.triggerEvent(new Kp(t))},function(t){return l.triggerEvent(new Jp(t))}),this.routerState=eh(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){ld(t),this.config=t.map(pd),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,u=e.preserveQueryParams,a=e.queryParamsHandling,s=e.preserveFragment;hn()&&u&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,p=s?this.currentUrlTree.fragment:o,d=null;if(a)switch(a){case"merge":d=i({},this.currentUrlTree.queryParams,r);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=r||null}else d=u?this.currentUrlTree.queryParams:r||null;return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,n,r,o){if(0===n.length)return ph(e.root,e.root,e,r,o);var i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new dh(!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 vd(r.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),l(t,[{outlets:i}])}if(r.segmentPath)return l(t,[r.segmentPath])}return"string"!=typeof r?l(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):l(t,[r])},[]);return new dh(n,e,r)}(n);if(i.toRoot())return ph(e.root,new _d([],{}),e,r,o);var u=function(t,n,r){if(t.isAbsolute)return new hh(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new hh(r.snapshot._urlSegment,!0,0);var o=ch(t.commands[0])?0:1;return function(e,n,i){for(var u=r.snapshot._urlSegment,a=r.snapshot._lastPathIndex+o,l=t.numberOfDoubleDots;l>a;){if(l-=a,!(u=u.parent))throw new Error("Invalid number of '../'");a=u.segments.length}return new hh(u,!1,a-l)}()}(i,0,t),a=u.processChildren?gh(u.segmentGroup,u.index,i.commands):vh(u.segmentGroup,u.index,i.commands);return ph(u.segmentGroup,a,e,r,o)}(c,this.currentUrlTree,t,d,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof bd?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;et?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return kf(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return kf(t.value)?null:Of.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(kf(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(kf(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(Pf);return 0==e.length?null:function(t){return If(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(Pf);return 0==e.length?null:function(t){return function t(){for(var e,n=[],r=0;r=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}(),zf=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(Hf),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}(),Bf='\n

\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',qf='\n
\n
\n \n
\n
';function Gf(t,e){return l(e.path,[t])}function Wf(t,e){t||Zf(e,"Cannot find control with"),e.valueAccessor||Zf(e,"No value accessor for form control with"),t.validator=Tf.compose([t.validator,e.validator]),t.asyncValidator=Tf.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&&Qf(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&&Qf(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 Qf(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Zf(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 Kf(t){return null!=t?Tf.compose(t.map(jf)):null}function Jf(t){return null!=t?Tf.composeAsync(t.map(Vf)):null}var $f=[Rf,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}(),Lf,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=Et}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=Et}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),uv=function(t){function e(e,n,r){var o=t.call(this,tv(n),ev(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 ov?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),av=Promise.resolve(null),lv=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new $e,r.form=new iv({},Kf(e),Jf(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;av.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Wf(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;av.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;av.then(function(){var n=e._findContainer(t.path),r=new iv({});(function(t,e){null==t&&Zf(e,"Cannot find control with"),t.validator=Tf.compose([t.validator,e.validator]),t.asyncValidator=Tf.composeAsync([t.asyncValidator,e.asyncValidator])})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;av.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;av.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}(xf),sv=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 "+Bf+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+qf)},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 "+Bf+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+qf)},t}(),cv=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 lv||sv.modelGroupParentException()},e}(Yf),pv=Promise.resolve(null),dv=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i.control=new ov,i._registered=!1,i.update=new $e,i._parent=e,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||Zf(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===Mf?n=e:(i=e,$f.some(function(t){return i.constructor===t})?(r&&Zf(t,"More than one built-in value accessor matches form control with"),r=e):(o&&Zf(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(Zf(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()||!Et(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?Gf(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 Kf(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Jf(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(){Wf(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 cv)&&this._parent instanceof Yf?sv.formGroupNameException():this._parent instanceof cv||this._parent instanceof lv||sv.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||sv.missingNameException()},e.prototype._updateValue=function(t){var e=this;pv.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;pv.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(Hf),hv=function(){},fv=function(){},vv=Yr({encapsulation:0,styles:[[".table-container[_ngcontent-%COMP%]{max-height:300px}#database-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{width:60%}#database-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:25%}#database-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3){width:15%}.categories-edit[_ngcontent-%COMP%], .snippet-edit[_ngcontent-%COMP%]{background-color:#00000000;color:#c9c9c9;border:none;font-size:11px;font-family:sans-serif}.snippet-edit[_ngcontent-%COMP%]{display:none;min-height:75px}.categories-edit[_ngcontent-%COMP%]{display:none}"]],data:{}});function gv(t){return qi(0,[(t()(),Oo(0,0,null,null,27,"div",[],null,null,null,null,null)),(t()(),Oo(1,0,null,null,1,"h4",[["id","json-title"]],null,null,null,null,null)),(t()(),Fi(-1,null,["Use JSON File:"])),(t()(),Oo(3,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Fi(-1,null,[" Click here to store/pull data from a local JSON file. "])),(t()(),Oo(5,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.connectJson()&&r),r},null,null)),(t()(),Fi(-1,null,["Connect to JSON File"])),(t()(),Oo(7,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Oo(8,0,null,null,1,"h4",[["id","db-title"]],null,null,null,null,null)),(t()(),Fi(-1,null,["Connect your Database:"])),(t()(),Oo(10,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),Fi(-1,null,[" Paste your MongoDB url here with credentials and we will connect to your database. For instructions on how to create a cloud-hosted database, "])),(t()(),Oo(12,0,null,null,1,"a",[["href","https://github.com/mattcheah/cover-letter-snippets#setting-up-a-database"]],null,null,null,null,null)),(t()(),Fi(-1,null,["visit the README"])),(t()(),Fi(-1,null,[". "])),(t()(),Oo(15,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Fi(-1,null,["The database string here is a test sandbox for anyone to use. Please play nice."])),(t()(),Oo(17,0,null,null,5,"input",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==ni(t,18)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==ni(t,18).onTouched()&&r),"compositionstart"===e&&(r=!1!==ni(t,18)._compositionStart()&&r),"compositionend"===e&&(r=!1!==ni(t,18)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.databaseString=n)&&r),r},null,null)),vi(18,16384,null,0,Mf,[Sn,En,[2,Df]],null,null),gi(1024,null,Nf,function(t){return[t]},[Mf]),vi(20,671744,null,0,dv,[[8,null],[8,null],[8,null],[6,Nf]],{model:[0,"model"]},{update:"ngModelChange"}),gi(2048,null,Hf,null,[dv]),vi(22,16384,null,0,Xf,[[4,Hf]],null,null),(t()(),Oo(23,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Oo(24,0,null,null,3,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==o.connect(o.databaseString)&&r),r},null,null)),vi(25,278528,null,0,es,[tr,er,En,Sn],{ngClass:[0,"ngClass"]},null),Ui(26,{inactive:0}),(t()(),Fi(-1,null,["Connect to Database"]))],function(t,e){var n=e.component;t(e,20,0,n.databaseString),t(e,25,0,t(e,26,0,""==n.databaseString))},function(t,e){t(e,17,0,ni(e,22).ngClassUntouched,ni(e,22).ngClassTouched,ni(e,22).ngClassPristine,ni(e,22).ngClassDirty,ni(e,22).ngClassValid,ni(e,22).ngClassInvalid,ni(e,22).ngClassPending)})}function yv(t){return qi(0,[(t()(),Oo(0,0,null,null,22,"tr",[],[[8,"id",0]],null,null,null,null)),(t()(),Oo(1,0,null,null,9,"td",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggleEditSnippet(t.context.$implicit)&&r),r},null,null)),(t()(),Oo(2,0,null,null,1,"div",[["class","snippet no-edit"],["style","display:block"]],null,null,null,null,null)),(t()(),Fi(3,null,[" "," "])),(t()(),Oo(4,0,null,null,6,"textarea",[["class","snippet-edit editable"]],[[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,"keydown"],[null,"keyup.enter"],[null,"blur"],[null,"input"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==ni(t,5)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==ni(t,5).onTouched()&&r),"compositionstart"===e&&(r=!1!==ni(t,5)._compositionStart()&&r),"compositionend"===e&&(r=!1!==ni(t,5)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.editSnippetObject?o.editSnippetObject.snippet:t.context.$implicit.snippet=n)&&r),"keydown"===e&&(r=0!=(o.snippetEdited=!0)&&r),"keyup.enter"===e&&(r=!1!==o.saveEdit(o.editSnippetObject)&&r),"blur"===e&&(r=!1!==o.saveEdit(o.editSnippetObject)&&r),r},null,null)),vi(5,16384,null,0,Mf,[Sn,En,[2,Df]],null,null),gi(1024,null,Nf,function(t){return[t]},[Mf]),vi(7,671744,null,0,dv,[[8,null],[8,null],[8,null],[6,Nf]],{model:[0,"model"]},{update:"ngModelChange"}),gi(2048,null,Hf,null,[dv]),vi(9,16384,null,0,Xf,[[4,Hf]],null,null),(t()(),Fi(-1,null,[" "])),(t()(),Oo(11,0,null,null,8,"td",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggleEditCategories(t.context.$implicit)&&r),r},null,null)),(t()(),Oo(12,0,null,null,1,"div",[["class","categories no-edit"],["style","display:block"]],null,null,null,null,null)),(t()(),Fi(13,null,[" "," "])),(t()(),Oo(14,0,null,null,5,"input",[["class","categories-edit editable"]],[[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,"keydown"],[null,"keyup.enter"],[null,"blur"],[null,"input"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==ni(t,15)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==ni(t,15).onTouched()&&r),"compositionstart"===e&&(r=!1!==ni(t,15)._compositionStart()&&r),"compositionend"===e&&(r=!1!==ni(t,15)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.editSnippetObject?o.editSnippetObject.categories:t.context.$implicit.categories=n)&&r),"keydown"===e&&(r=0!=(o.snippetEdited=!0)&&r),"keyup.enter"===e&&(r=!1!==o.saveEdit(o.editSnippetObject)&&r),"blur"===e&&(r=!1!==o.saveEdit(o.editSnippetObject)&&r),r},null,null)),vi(15,16384,null,0,Mf,[Sn,En,[2,Df]],null,null),gi(1024,null,Nf,function(t){return[t]},[Mf]),vi(17,671744,null,0,dv,[[8,null],[8,null],[8,null],[6,Nf]],{model:[0,"model"]},{update:"ngModelChange"}),gi(2048,null,Hf,null,[dv]),vi(19,16384,null,0,Xf,[[4,Hf]],null,null),(t()(),Oo(20,0,null,null,2,"td",[["class","delete"]],null,null,null,null,null)),(t()(),Oo(21,0,null,null,1,"a",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.deleteRecord(t.context.$implicit._id)&&r),r},null,null)),(t()(),Fi(-1,null,["Delete"]))],function(t,e){var n=e.component;t(e,7,0,n.editSnippetObject?n.editSnippetObject.snippet:e.context.$implicit.snippet),t(e,17,0,n.editSnippetObject?n.editSnippetObject.categories:e.context.$implicit.categories)},function(t,e){t(e,0,0,"snippet-"+e.context.$implicit._id),t(e,3,0,e.context.$implicit.snippet),t(e,4,0,ni(e,9).ngClassUntouched,ni(e,9).ngClassTouched,ni(e,9).ngClassPristine,ni(e,9).ngClassDirty,ni(e,9).ngClassValid,ni(e,9).ngClassInvalid,ni(e,9).ngClassPending),t(e,13,0,e.context.$implicit.categories),t(e,14,0,ni(e,19).ngClassUntouched,ni(e,19).ngClassTouched,ni(e,19).ngClassPristine,ni(e,19).ngClassDirty,ni(e,19).ngClassValid,ni(e,19).ngClassInvalid,ni(e,19).ngClassPending)})}function mv(t){return qi(0,[(t()(),Oo(0,0,null,null,18,"div",[],null,null,null,null,null)),(t()(),Oo(1,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),Fi(2,null,[" Your Snippets Database has "," entries."])),(t()(),Oo(3,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Oo(4,0,null,null,1,"small",[],null,null,null,null,null)),(t()(),Fi(-1,null,["Click a snippet or category to edit and press 'enter' to save"])),(t()(),Oo(6,0,null,null,12,"div",[["class","table-container"]],null,null,null,null,null)),(t()(),Oo(7,0,null,null,11,"table",[["id","database-table"]],null,null,null,null,null)),(t()(),Oo(8,0,null,null,7,"thead",[],null,null,null,null,null)),(t()(),Oo(9,0,null,null,6,"tr",[],null,null,null,null,null)),(t()(),Oo(10,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Fi(-1,null,["Snippet"])),(t()(),Oo(12,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Fi(-1,null,["Categories"])),(t()(),Oo(14,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Fi(-1,null,["Delete"])),(t()(),Oo(16,0,null,null,2,"tbody",[],null,null,null,null,null)),(t()(),ko(16777216,null,null,1,null,yv)),vi(18,278528,null,0,rs,[Nn,In,tr],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,18,0,e.component.databaseService.database)},function(t,e){t(e,2,0,e.component.databaseService.database.length)})}function bv(t){return qi(0,[(t()(),ko(16777216,null,null,1,null,gv)),vi(1,16384,null,0,is,[Nn,In],{ngIf:[0,"ngIf"]},null),(t()(),ko(16777216,null,null,1,null,mv)),vi(3,16384,null,0,is,[Nn,In],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,!n.databaseService.connected),t(e,3,0,n.databaseService.showDatabase)},null)}var _v=Go("app-database",Xs,function(t){return qi(0,[(t()(),Oo(0,0,null,null,1,"app-database",[],null,null,null,bv,vv)),vi(1,114688,null,0,Xs,[Ys],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),wv=Yr({encapsulation:0,styles:[["#snippet[_ngcontent-%COMP%]{height:160px}"]],data:{}});function Cv(t){return qi(0,[(t()(),Oo(0,0,null,null,18,"div",[],null,null,null,null,null)),(t()(),Oo(1,0,null,null,1,"h4",[],null,null,null,null,null)),(t()(),Fi(-1,null,["Add Snippet"])),(t()(),Oo(3,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Fi(-1,null,["Enter a snippet from your cover letter that you feel is well articulated and communicates your experience well. Then fill out the categories (experiences, languages, skills) that relate to this cover letter."])),(t()(),Oo(5,0,[["textarea",1]],null,5,"textarea",[["id","snippet"],["placeholder","Copy/Paste a cover letter snippet here."]],[[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!==ni(t,6)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==ni(t,6).onTouched()&&r),"compositionstart"===e&&(r=!1!==ni(t,6)._compositionStart()&&r),"compositionend"===e&&(r=!1!==ni(t,6)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.snippet=n)&&r),r},null,null)),vi(6,16384,null,0,Mf,[Sn,En,[2,Df]],null,null),gi(1024,null,Nf,function(t){return[t]},[Mf]),vi(8,671744,null,0,dv,[[8,null],[8,null],[8,null],[6,Nf]],{model:[0,"model"]},{update:"ngModelChange"}),gi(2048,null,Hf,null,[dv]),vi(10,16384,null,0,Xf,[[4,Hf]],null,null),(t()(),Oo(11,0,[["textarea",1]],null,5,"textarea",[["placeholder","Add your categories here, separated by a comma. eg. PHP, javascript, Node, mysql"]],[[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!==ni(t,12)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==ni(t,12).onTouched()&&r),"compositionstart"===e&&(r=!1!==ni(t,12)._compositionStart()&&r),"compositionend"===e&&(r=!1!==ni(t,12)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.categories=n)&&r),r},null,null)),vi(12,16384,null,0,Mf,[Sn,En,[2,Df]],null,null),gi(1024,null,Nf,function(t){return[t]},[Mf]),vi(14,671744,null,0,dv,[[8,null],[8,null],[8,null],[6,Nf]],{model:[0,"model"]},{update:"ngModelChange"}),gi(2048,null,Hf,null,[dv]),vi(16,16384,null,0,Xf,[[4,Hf]],null,null),(t()(),Oo(17,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.addSnippet()&&r),r},null,null)),(t()(),Fi(-1,null,["Submit Snippet"]))],function(t,e){var n=e.component;t(e,8,0,n.snippet),t(e,14,0,n.categories)},function(t,e){t(e,5,0,ni(e,10).ngClassUntouched,ni(e,10).ngClassTouched,ni(e,10).ngClassPristine,ni(e,10).ngClassDirty,ni(e,10).ngClassValid,ni(e,10).ngClassInvalid,ni(e,10).ngClassPending),t(e,11,0,ni(e,16).ngClassUntouched,ni(e,16).ngClassTouched,ni(e,16).ngClassPristine,ni(e,16).ngClassDirty,ni(e,16).ngClassValid,ni(e,16).ngClassInvalid,ni(e,16).ngClassPending)})}function Sv(t){return qi(0,[(t()(),ko(16777216,null,null,1,null,Cv)),vi(1,16384,null,0,is,[Nn,In],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,1,0,e.component.databaseService.connected)},null)}var Ev=Go("app-add-snippet",tc,function(t){return qi(0,[(t()(),Oo(0,0,null,null,1,"app-add-snippet",[],null,null,null,Sv,wv)),vi(1,114688,null,0,tc,[Ys],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),xv=function(){function t(t,e){this.parseDescriptionService=t,this.statusMessageService=e}return t.prototype.ngOnInit=function(){},t.prototype.submitDescription=function(t){this.parseDescriptionService.parseDescription(t)},t.prototype.enterNewDescription=function(){this.descriptionContent="",this.parseDescriptionService.showParsingResults=!1,this.statusMessageService.newStatusMessage("Resetting Job Description","warning")},t}(),kv=Yr({encapsulation:0,styles:[["#keyword-results-table-container[_ngcontent-%COMP%]{max-height:160px}#keyword-results-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:10px}"]],data:{}});function Ov(t){return qi(0,[(t()(),Oo(0,0,null,null,1,"h4",[],null,null,null,null,null)),(t()(),Fi(-1,null,["Job Description"])),(t()(),Oo(2,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Fi(-1,null,["Enter the job description here, and Snippets will parse it in order to find the keywords (skills, experience, languages) that match previous cover letter information that you have written."])),(t()(),Oo(4,0,[["textarea",1]],null,5,"textarea",[["placeholder","Copy/Paste a job description here"]],[[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!==ni(t,5)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==ni(t,5).onTouched()&&r),"compositionstart"===e&&(r=!1!==ni(t,5)._compositionStart()&&r),"compositionend"===e&&(r=!1!==ni(t,5)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.descriptionContent=n)&&r),r},null,null)),vi(5,16384,null,0,Mf,[Sn,En,[2,Df]],null,null),gi(1024,null,Nf,function(t){return[t]},[Mf]),vi(7,671744,null,0,dv,[[8,null],[8,null],[8,null],[6,Nf]],{model:[0,"model"]},{update:"ngModelChange"}),gi(2048,null,Hf,null,[dv]),vi(9,16384,null,0,Xf,[[4,Hf]],null,null),(t()(),Oo(10,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==o.submitDescription(o.descriptionContent)&&r),r},null,null)),(t()(),Fi(-1,null,["Parse Job Description"]))],function(t,e){t(e,7,0,e.component.descriptionContent)},function(t,e){t(e,4,0,ni(e,9).ngClassUntouched,ni(e,9).ngClassTouched,ni(e,9).ngClassPristine,ni(e,9).ngClassDirty,ni(e,9).ngClassValid,ni(e,9).ngClassInvalid,ni(e,9).ngClassPending)})}var Tv=function(){function t(){}return t.prototype.transform=function(t,e){return t.filter("showAllValues"===e?function(t){return 0===t.jobKeywords}:function(t){return t.jobKeywords>0})},t}(),Pv=function(){function t(t,e,n,r){this.parseDescriptionService=t,this.coverLetterService=e,this.databaseService=n,this.statusMessageService=r,this.displayedCategory="",this.showFilteredSnippetsTable=!1,this.showAllValues=!1}return t.prototype.ngOnInit=function(){},t.prototype.displaySnippets=function(t){this.filteredSnippets=[];for(var e=this.databaseService.database,n=0;n0)},null)}var Kv=Go("app-build-cover-letter",rc,function(t){return qi(0,[(t()(),Oo(0,0,null,null,1,"app-build-cover-letter",[],null,null,null,Zv,qv)),vi(1,114688,null,0,rc,[ec,nc],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Jv=Yr({encapsulation:0,styles:[["textarea[_ngcontent-%COMP%]{height:500px}"]],data:{}});function $v(t){return qi(0,[(t()(),Oo(0,0,null,null,18,"div",[["id","export-container"]],null,null,null,null,null)),(t()(),Oo(1,0,null,null,1,"h4",[["id","export-title"]],null,null,null,null,null)),(t()(),Fi(-1,null,["Exported Cover Letter:"])),(t()(),Oo(3,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Fi(-1,null,["You may edit your cover letter, and copy/paste it from here to whatever medium you are using to apply for jobs."])),(t()(),Oo(5,0,null,null,5,"textarea",[],[[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!==ni(t,6)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==ni(t,6).onTouched()&&r),"compositionstart"===e&&(r=!1!==ni(t,6)._compositionStart()&&r),"compositionend"===e&&(r=!1!==ni(t,6)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.coverLetterService.exported=n)&&r),r},null,null)),vi(6,16384,null,0,Mf,[Sn,En,[2,Df]],null,null),gi(1024,null,Nf,function(t){return[t]},[Mf]),vi(8,671744,null,0,dv,[[8,null],[8,null],[8,null],[6,Nf]],{model:[0,"model"]},{update:"ngModelChange"}),gi(2048,null,Hf,null,[dv]),vi(10,16384,null,0,Xf,[[4,Hf]],null,null),(t()(),Oo(11,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Fi(-1,null,["Need to edit something? Click the button below to go back."])),(t()(),Oo(13,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Fi(-1,null,["WARNING: Any changes you made in this text form will not be saved!"])),(t()(),Oo(15,0,null,null,3,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==ni(t,16).onClick()&&r),"click"===e&&(r=!1!==o.statusMessageService.clearStatus()&&r),r},null,null)),vi(16,16384,null,0,Gh,[zh,nh,[8,null],Sn,En],{routerLink:[0,"routerLink"]},null),Li(17,1),(t()(),Fi(-1,null,["Go Back to Building Cover Letter"]))],function(t,e){t(e,8,0,e.component.coverLetterService.exported),t(e,16,0,t(e,17,0,"/build-cover-letter"))},function(t,e){t(e,5,0,ni(e,10).ngClassUntouched,ni(e,10).ngClassTouched,ni(e,10).ngClassPristine,ni(e,10).ngClassDirty,ni(e,10).ngClassValid,ni(e,10).ngClassInvalid,ni(e,10).ngClassPending)})}var Yv=Go("app-export",oc,function(t){return qi(0,[(t()(),Oo(0,0,null,null,1,"app-export",[],null,null,null,$v,Jv)),vi(1,114688,null,0,oc,[nc,$s],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Xv=function(){function t(t,e){this.databaseService=t,this.coverLetterService=e,this.coverLetterLinkDisabled=0==this.coverLetterService.addedSnippets.length}return t.prototype.ngOnInit=function(){},t}(),tg=Yr({encapsulation:0,styles:[["ul[_ngcontent-%COMP%]{list-style-type:none}li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#b0ccea}li[_ngcontent-%COMP%] .is-active[_ngcontent-%COMP%]{color:#fff;font-weight:700}li[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{cursor:not-allowed!important;color:#555!important;text-decoration:none}"]],data:{}});function eg(t){return qi(0,[(t()(),Oo(0,0,null,null,11,"li",[],null,null,null,null,null)),(t()(),Oo(1,0,null,null,10,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==ni(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),vi(2,671744,[[4,4]],0,Wh,[zh,nh,Fl],{routerLink:[0,"routerLink"]},null),Li(3,1),vi(4,1720320,null,2,Zh,[zh,En,Sn,Rn],{routerLinkActiveOptions:[0,"routerLinkActiveOptions"],routerLinkActive:[1,"routerLinkActive"]},null),Ii(603979776,3,{links:1}),Ii(603979776,4,{linksWithHrefs:1}),Ui(7,{exact:0}),Li(8,1),vi(9,278528,null,0,es,[tr,er,En,Sn],{ngClass:[0,"ngClass"]},null),Ui(10,{disabled:0}),(t()(),Fi(-1,null,["Add Snippets"]))],function(t,e){var n=e.component;t(e,2,0,t(e,3,0,"add-snippet")),t(e,4,0,t(e,7,0,!0),t(e,8,0,"is-active")),t(e,9,0,t(e,10,0,!n.databaseService.connected))},function(t,e){t(e,1,0,ni(e,2).target,ni(e,2).href)})}function ng(t){return qi(0,[(t()(),Oo(0,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),Oo(1,0,null,null,1,"a",[["class","disabled"]],null,null,null,null,null)),(t()(),Fi(-1,null,["Add Snippets"]))],null,null)}function rg(t){return qi(0,[(t()(),Oo(0,0,null,null,9,"li",[],null,null,null,null,null)),(t()(),Oo(1,0,null,null,8,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==ni(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),vi(2,671744,[[6,4]],0,Wh,[zh,nh,Fl],{routerLink:[0,"routerLink"]},null),Li(3,1),vi(4,1720320,null,2,Zh,[zh,En,Sn,Rn],{routerLinkActiveOptions:[0,"routerLinkActiveOptions"],routerLinkActive:[1,"routerLinkActive"]},null),Ii(603979776,5,{links:1}),Ii(603979776,6,{linksWithHrefs:1}),Ui(7,{exact:0}),Li(8,1),(t()(),Fi(-1,null,["Build Cover Letter"]))],function(t,e){t(e,2,0,t(e,3,0,"build-cover-letter")),t(e,4,0,t(e,7,0,!0),t(e,8,0,"is-active"))},function(t,e){t(e,1,0,ni(e,2).target,ni(e,2).href)})}function og(t){return qi(0,[(t()(),Oo(0,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),Oo(1,0,null,null,1,"a",[["class","disabled"]],null,null,null,null,null)),(t()(),Fi(-1,null,["Build Cover Letter"]))],null,null)}function ig(t){return qi(0,[(t()(),Oo(0,0,null,null,8,"li",[],null,null,null,null,null)),(t()(),Oo(1,0,null,null,7,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==ni(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),vi(2,671744,[[8,4]],0,Wh,[zh,nh,Fl],{routerLink:[0,"routerLink"]},null),Li(3,1),vi(4,1720320,null,2,Zh,[zh,En,Sn,Rn],{routerLinkActive:[0,"routerLinkActive"]},null),Ii(603979776,7,{links:1}),Ii(603979776,8,{linksWithHrefs:1}),Li(7,1),(t()(),Fi(-1,null,["Export Cover Letter"]))],function(t,e){t(e,2,0,t(e,3,0,"export-cover-letter")),t(e,4,0,t(e,7,0,"is-active"))},function(t,e){t(e,1,0,ni(e,2).target,ni(e,2).href)})}function ug(t){return qi(0,[(t()(),Oo(0,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),Oo(1,0,null,null,1,"a",[["class","disabled"]],null,null,null,null,null)),(t()(),Fi(-1,null,["Export Cover Letter"]))],null,null)}function ag(t){return qi(0,[(t()(),Oo(0,0,null,null,22,"ul",[["class","flex"]],null,null,null,null,null)),(t()(),Oo(1,0,null,null,9,"li",[],null,null,null,null,null)),(t()(),Oo(2,0,null,null,8,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==ni(t,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),vi(3,671744,[[2,4]],0,Wh,[zh,nh,Fl],{routerLink:[0,"routerLink"]},null),Li(4,1),vi(5,1720320,null,2,Zh,[zh,En,Sn,Rn],{routerLinkActiveOptions:[0,"routerLinkActiveOptions"],routerLinkActive:[1,"routerLinkActive"]},null),Ii(603979776,1,{links:1}),Ii(603979776,2,{linksWithHrefs:1}),Ui(8,{exact:0}),Li(9,1),(t()(),Fi(-1,null,["Database"])),(t()(),ko(16777216,null,null,1,null,eg)),vi(12,16384,null,0,is,[Nn,In],{ngIf:[0,"ngIf"]},null),(t()(),ko(16777216,null,null,1,null,ng)),vi(14,16384,null,0,is,[Nn,In],{ngIf:[0,"ngIf"]},null),(t()(),ko(16777216,null,null,1,null,rg)),vi(16,16384,null,0,is,[Nn,In],{ngIf:[0,"ngIf"]},null),(t()(),ko(16777216,null,null,1,null,og)),vi(18,16384,null,0,is,[Nn,In],{ngIf:[0,"ngIf"]},null),(t()(),ko(16777216,null,null,1,null,ig)),vi(20,16384,null,0,is,[Nn,In],{ngIf:[0,"ngIf"]},null),(t()(),ko(16777216,null,null,1,null,ug)),vi(22,16384,null,0,is,[Nn,In],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0,t(e,4,0,"")),t(e,5,0,t(e,8,0,!0),t(e,9,0,"is-active")),t(e,12,0,n.databaseService.connected),t(e,14,0,!n.databaseService.connected),t(e,16,0,n.databaseService.connected),t(e,18,0,!n.databaseService.connected),t(e,20,0,0!=n.coverLetterService.addedSnippets.length),t(e,22,0,0==n.coverLetterService.addedSnippets.length)},function(t,e){t(e,2,0,ni(e,3).target,ni(e,3).href)})}var lg=function(){function t(t){this.statusMessageService=t,this.statusMessage="",this.statusClass="primary"}return t.prototype.ngOnInit=function(){var t=this;this.statusMessageService.getStatusMessageStream().subscribe(function(e){void 0!==e&&(t.statusMessage=e.status,t.statusClass=e.cssClass)})},t}(),sg=Yr({encapsulation:0,styles:[["#status[_ngcontent-%COMP%]{width:100%;max-width:38em;padding:0 15px;border:1px solid #c9c9c9;text-align:left;color:#c9c9c9;border-radius:3px;margin:20px 0 0 -13px;background-color:rgba(200,200,200,.3);position:fixed;bottom:0;box-sizing:border-box}#status.success[_ngcontent-%COMP%]{color:green;border-color:green;background-color:#9bca9b}#status.error[_ngcontent-%COMP%]{color:#c14242;border-color:#b54242;background-color:#5a2c2c}#status.primary[_ngcontent-%COMP%]{color:#8fcef3;border-color:#596c77;background-color:#596c77}#status.warning[_ngcontent-%COMP%]{color:#856404;background-color:#fff3cd;border-color:#ffeeba}"]],data:{}});function cg(t){return qi(0,[(t()(),Oo(0,0,null,null,3,"div",[["id","status"]],null,null,null,null,null)),vi(1,278528,null,0,es,[tr,er,En,Sn],{ngClass:[0,"ngClass"]},null),(t()(),Oo(2,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Fi(3,null,[" ","\n"]))],function(t,e){t(e,1,0,e.component.statusClass)},function(t,e){t(e,3,0,e.component.statusMessage)})}function pg(t){return qi(0,[(t()(),ko(16777216,null,null,1,null,cg)),vi(1,16384,null,0,is,[Nn,In],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,1,0,""!==e.component.statusMessage)},null)}var dg=Yr({encapsulation:0,styles:[[""]],data:{}});function hg(t){return qi(0,[(t()(),Oo(0,0,null,null,2,"div",[["style","text-align:center"]],null,null,null,null,null)),(t()(),Oo(1,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),Fi(2,null,[" Welcome to ","! "])),(t()(),Oo(3,0,null,null,1,"app-nav",[],null,null,null,ag,tg)),vi(4,114688,null,0,Xv,[Ys,nc],null,null),(t()(),Oo(5,0,null,null,2,"div",[["class","container"]],null,null,null,null,null)),(t()(),Oo(6,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),vi(7,212992,null,0,$h,[Jh,Nn,ze,[8,null],Rn],null,null),(t()(),Oo(8,0,null,null,1,"app-status-message",[],null,null,null,pg,sg)),vi(9,114688,null,0,lg,[$s],null,null)],function(t,e){t(e,4,0),t(e,7,0),t(e,9,0)},function(t,e){t(e,2,0,e.component.title)})}var fg=Go("app-root",uc,function(t){return qi(0,[(t()(),Oo(0,0,null,null,1,"app-root",[],null,null,null,hg,dg)),vi(1,49152,null,0,uc,[],null,null)],null,null)},{},{},[]),vg=function(t,e,n){return new $u(ic,[uc],function(t){return function(t){for(var e={},n=[],r=!1,o=0;o\r\n\r\n

Add Snippet

\r\n

Enter a snippet from your cover letter that you feel is well articulated and communicates your experience well. Then fill out the categories (experiences, languages, skills) that relate to this cover letter.

\r\n \r\n \r\n \r\n\r\n" - -/***/ }), - -/***/ "./src/app/add-snippet/add-snippet.component.ts": -/*!******************************************************!*\ - !*** ./src/app/add-snippet/add-snippet.component.ts ***! - \******************************************************/ -/*! exports provided: AddSnippetComponent */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddSnippetComponent", function() { return AddSnippetComponent; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var _services_database_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/database.service */ "./src/app/services/database.service.ts"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -var __metadata = (undefined && undefined.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; - - -var AddSnippetComponent = /** @class */ (function () { - function AddSnippetComponent(databaseService) { - this.databaseService = databaseService; - this.snippet = ''; - this.categories = ''; - } - AddSnippetComponent.prototype.ngOnInit = function () { - }; - AddSnippetComponent.prototype.addSnippet = function () { - this.categories.replace(' ', ''); - var categoriesArray = this.categories.split(','); - this.databaseService.addSnippet(this.snippet, categoriesArray); - this.snippet = ''; - this.categories = ''; - }; - AddSnippetComponent = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ - selector: 'app-add-snippet', - template: __webpack_require__(/*! ./add-snippet.component.html */ "./src/app/add-snippet/add-snippet.component.html"), - styles: [__webpack_require__(/*! ./add-snippet.component.css */ "./src/app/add-snippet/add-snippet.component.css")] - }), - __metadata("design:paramtypes", [_services_database_service__WEBPACK_IMPORTED_MODULE_1__["DatabaseService"]]) - ], AddSnippetComponent); - return AddSnippetComponent; -}()); - - - -/***/ }), - -/***/ "./src/app/app.component.css": -/*!***********************************!*\ - !*** ./src/app/app.component.css ***! - \***********************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "" - -/***/ }), - -/***/ "./src/app/app.component.html": -/*!************************************!*\ - !*** ./src/app/app.component.html ***! - \************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "\n
\n

\n Welcome to {{ title }}!\n

\n
\n\n
\n \n \n
\n\n\n" - -/***/ }), - -/***/ "./src/app/app.component.ts": -/*!**********************************!*\ - !*** ./src/app/app.component.ts ***! - \**********************************/ -/*! exports provided: AppComponent */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function() { return AppComponent; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; - -var AppComponent = /** @class */ (function () { - function AppComponent() { - this.title = 'Cover Letter Snippets'; - } - AppComponent = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ - selector: 'app-root', - template: __webpack_require__(/*! ./app.component.html */ "./src/app/app.component.html"), - styles: [__webpack_require__(/*! ./app.component.css */ "./src/app/app.component.css")] - }) - ], AppComponent); - return AppComponent; -}()); - - - -/***/ }), - -/***/ "./src/app/app.module.ts": -/*!*******************************!*\ - !*** ./src/app/app.module.ts ***! - \*******************************/ -/*! exports provided: AppModule */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; }); -/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js"); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js"); -/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); -/* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app.component */ "./src/app/app.component.ts"); -/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); -/* harmony import */ var _job_description_job_description_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./job-description/job-description.component */ "./src/app/job-description/job-description.component.ts"); -/* harmony import */ var _database_database_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./database/database.component */ "./src/app/database/database.component.ts"); -/* harmony import */ var _results_results_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./results/results.component */ "./src/app/results/results.component.ts"); -/* harmony import */ var _add_snippet_add_snippet_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./add-snippet/add-snippet.component */ "./src/app/add-snippet/add-snippet.component.ts"); -/* harmony import */ var _status_message_status_message_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./status-message/status-message.component */ "./src/app/status-message/status-message.component.ts"); -/* harmony import */ var _has_keywords_pipe__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./has-keywords.pipe */ "./src/app/has-keywords.pipe.ts"); -/* harmony import */ var _cover_letter_cover_letter_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./cover-letter/cover-letter.component */ "./src/app/cover-letter/cover-letter.component.ts"); -/* harmony import */ var _build_cover_letter_build_cover_letter_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./build-cover-letter/build-cover-letter.component */ "./src/app/build-cover-letter/build-cover-letter.component.ts"); -/* harmony import */ var _export_export_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./export/export.component */ "./src/app/export/export.component.ts"); -/* harmony import */ var _nav_nav_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./nav/nav.component */ "./src/app/nav/nav.component.ts"); -/* harmony import */ var _services_database_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./services/database.service */ "./src/app/services/database.service.ts"); -/* harmony import */ var _services_parse_description_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./services/parse-description.service */ "./src/app/services/parse-description.service.ts"); -/* harmony import */ var _services_status_message_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./services/status-message.service */ "./src/app/services/status-message.service.ts"); -/* harmony import */ var _services_cover_letter_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./services/cover-letter.service */ "./src/app/services/cover-letter.service.ts"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; - - - - - - - - - - - - - - - - - - - - - -var appRoutes = [ - { path: '', component: _database_database_component__WEBPACK_IMPORTED_MODULE_7__["DatabaseComponent"] }, - { path: 'add-snippet', component: _add_snippet_add_snippet_component__WEBPACK_IMPORTED_MODULE_9__["AddSnippetComponent"] }, - { path: 'build-cover-letter', component: _build_cover_letter_build_cover_letter_component__WEBPACK_IMPORTED_MODULE_13__["BuildCoverLetterComponent"] }, - { path: 'export-cover-letter', component: _export_export_component__WEBPACK_IMPORTED_MODULE_14__["ExportComponent"] } -]; -var AppModule = /** @class */ (function () { - function AppModule() { - } - AppModule = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({ - declarations: [ - _app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"], - _job_description_job_description_component__WEBPACK_IMPORTED_MODULE_6__["JobDescriptionComponent"], - _database_database_component__WEBPACK_IMPORTED_MODULE_7__["DatabaseComponent"], - _results_results_component__WEBPACK_IMPORTED_MODULE_8__["ResultsComponent"], - _add_snippet_add_snippet_component__WEBPACK_IMPORTED_MODULE_9__["AddSnippetComponent"], - _status_message_status_message_component__WEBPACK_IMPORTED_MODULE_10__["StatusMessageComponent"], - _has_keywords_pipe__WEBPACK_IMPORTED_MODULE_11__["HasKeywordsPipe"], - _cover_letter_cover_letter_component__WEBPACK_IMPORTED_MODULE_12__["CoverLetterComponent"], - _export_export_component__WEBPACK_IMPORTED_MODULE_14__["ExportComponent"], - _build_cover_letter_build_cover_letter_component__WEBPACK_IMPORTED_MODULE_13__["BuildCoverLetterComponent"], - _nav_nav_component__WEBPACK_IMPORTED_MODULE_15__["NavComponent"] - ], - imports: [ - _angular_router__WEBPACK_IMPORTED_MODULE_5__["RouterModule"].forRoot(appRoutes), - _angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"], - _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormsModule"], - _angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpClientModule"] - ], - providers: [ - _services_database_service__WEBPACK_IMPORTED_MODULE_16__["DatabaseService"], - _services_parse_description_service__WEBPACK_IMPORTED_MODULE_17__["ParseDescriptionService"], - _services_status_message_service__WEBPACK_IMPORTED_MODULE_18__["StatusMessageService"], - _services_cover_letter_service__WEBPACK_IMPORTED_MODULE_19__["CoverLetterService"], - ], - bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"]], - schemas: [ - _angular_core__WEBPACK_IMPORTED_MODULE_1__["CUSTOM_ELEMENTS_SCHEMA"] - ] - }) - ], AppModule); - return AppModule; -}()); - - - -/***/ }), - -/***/ "./src/app/build-cover-letter/build-cover-letter.component.css": -/*!*********************************************************************!*\ - !*** ./src/app/build-cover-letter/build-cover-letter.component.css ***! - \*********************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "" - -/***/ }), - -/***/ "./src/app/build-cover-letter/build-cover-letter.component.html": -/*!**********************************************************************!*\ - !*** ./src/app/build-cover-letter/build-cover-letter.component.html ***! - \**********************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "\r\n\r\n
\r\n \r\n
\r\n
\r\n\r\n
0\">\r\n \r\n
\r\n" - -/***/ }), - -/***/ "./src/app/build-cover-letter/build-cover-letter.component.ts": -/*!********************************************************************!*\ - !*** ./src/app/build-cover-letter/build-cover-letter.component.ts ***! - \********************************************************************/ -/*! exports provided: BuildCoverLetterComponent */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BuildCoverLetterComponent", function() { return BuildCoverLetterComponent; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var _services_parse_description_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/parse-description.service */ "./src/app/services/parse-description.service.ts"); -/* harmony import */ var _services_cover_letter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/cover-letter.service */ "./src/app/services/cover-letter.service.ts"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -var __metadata = (undefined && undefined.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; - - - -var BuildCoverLetterComponent = /** @class */ (function () { - function BuildCoverLetterComponent(parseDescriptionService, coverLetterService) { - this.parseDescriptionService = parseDescriptionService; - this.coverLetterService = coverLetterService; - } - BuildCoverLetterComponent.prototype.ngOnInit = function () { - }; - BuildCoverLetterComponent = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ - selector: 'app-build-cover-letter', - template: __webpack_require__(/*! ./build-cover-letter.component.html */ "./src/app/build-cover-letter/build-cover-letter.component.html"), - styles: [__webpack_require__(/*! ./build-cover-letter.component.css */ "./src/app/build-cover-letter/build-cover-letter.component.css")] - }), - __metadata("design:paramtypes", [_services_parse_description_service__WEBPACK_IMPORTED_MODULE_1__["ParseDescriptionService"], - _services_cover_letter_service__WEBPACK_IMPORTED_MODULE_2__["CoverLetterService"]]) - ], BuildCoverLetterComponent); - return BuildCoverLetterComponent; -}()); - - - -/***/ }), - -/***/ "./src/app/cover-letter/cover-letter.component.css": -/*!*********************************************************!*\ - !*** ./src/app/cover-letter/cover-letter.component.css ***! - \*********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "#cover-letter-table thead td:first-child {\r\n width:70%;\r\n}\r\n\r\n#cover-letter-table thead td:nth-child(2) {\r\n max-width:15%;\r\n}\r\n\r\n#cover-letter-table thead td:nth-child(3) {\r\n max-width:15%;\r\n}" - -/***/ }), - -/***/ "./src/app/cover-letter/cover-letter.component.html": -/*!**********************************************************!*\ - !*** ./src/app/cover-letter/cover-letter.component.html ***! - \**********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "\n

Organize Snippets and Export:

\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
SnippetRemoveReorganize
{{snippet.snippet}}Remove\n

Move Up

\n

Move Down

\n
\n
\n\n" - -/***/ }), - -/***/ "./src/app/cover-letter/cover-letter.component.ts": -/*!********************************************************!*\ - !*** ./src/app/cover-letter/cover-letter.component.ts ***! - \********************************************************/ -/*! exports provided: CoverLetterComponent */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoverLetterComponent", function() { return CoverLetterComponent; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var _services_cover_letter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/cover-letter.service */ "./src/app/services/cover-letter.service.ts"); -/* harmony import */ var _services_status_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/status-message.service */ "./src/app/services/status-message.service.ts"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -var __metadata = (undefined && undefined.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; - - - -var CoverLetterComponent = /** @class */ (function () { - function CoverLetterComponent(coverLetterService, statusMessasageService) { - this.coverLetterService = coverLetterService; - this.statusMessasageService = statusMessasageService; - } - CoverLetterComponent.prototype.ngOnInit = function () { - }; - CoverLetterComponent.prototype.compile = function () { - var exportedCoverLetter = ""; - for (var i = 0; i < this.coverLetterService.addedSnippets.length; i++) { - exportedCoverLetter += this.coverLetterService.addedSnippets[i].snippet; - exportedCoverLetter += "\n\n"; - } - this.coverLetterService.exported = exportedCoverLetter; - this.statusMessasageService.newStatusMessage('Exporting Cover Letter to final edit!', 'success'); - }; - CoverLetterComponent = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ - selector: 'app-cover-letter', - template: __webpack_require__(/*! ./cover-letter.component.html */ "./src/app/cover-letter/cover-letter.component.html"), - styles: [__webpack_require__(/*! ./cover-letter.component.css */ "./src/app/cover-letter/cover-letter.component.css")] - }), - __metadata("design:paramtypes", [_services_cover_letter_service__WEBPACK_IMPORTED_MODULE_1__["CoverLetterService"], - _services_status_message_service__WEBPACK_IMPORTED_MODULE_2__["StatusMessageService"]]) - ], CoverLetterComponent); - return CoverLetterComponent; -}()); - - - -/***/ }), - -/***/ "./src/app/database/database.component.css": -/*!*************************************************!*\ - !*** ./src/app/database/database.component.css ***! - \*************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = ".table-container {\r\n max-height: 300px;\r\n}\r\n\r\n#database-table thead td:first-child {\r\n width:60%;\r\n}\r\n\r\n#database-table thead td:nth-child(2) {\r\n width:25%;\r\n}\r\n\r\n#database-table thead td:nth-child(3) {\r\n width:15%;\r\n}\r\n\r\n.snippet-edit, .categories-edit {\r\n background-color: #00000000;\r\n color:#c9c9c9;\r\n border:none;\r\n font-size: 11px;\r\n font-family: sans-serif;\r\n}\r\n\r\n.snippet-edit {\r\n display:none;\r\n min-height: 75px;\r\n}\r\n\r\n.categories-edit {\r\n display:none;\r\n}\r\n" - -/***/ }), - -/***/ "./src/app/database/database.component.html": -/*!**************************************************!*\ - !*** ./src/app/database/database.component.html ***! - \**************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "
\r\n

Use JSON File:

\r\n

\r\n Click here to store/pull data from a local JSON file.\r\n

\r\n \r\n\r\n
\r\n\r\n

Connect your Database:

\r\n

\r\n Paste your MongoDB url here with credentials and we will connect to your database.\r\n For instructions on how to create a cloud-hosted database, visit the README.\r\n

\r\n

The database string here is a test sandbox for anyone to use. Please play nice.

\r\n
\r\n \r\n
\r\n\r\n
\r\n

\r\n Your Snippets Database has {{databaseService.database.length}} entries.
\r\n Click a snippet or category to edit and press 'enter' to save\r\n

\r\n
\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
SnippetCategoriesDelete
\r\n
\r\n {{snippet.snippet}}\r\n
\r\n \r\n
\r\n
\r\n {{snippet.categories}}\r\n
\r\n \r\n
Delete
\r\n
\r\n\r\n
\r\n" - -/***/ }), - -/***/ "./src/app/database/database.component.ts": -/*!************************************************!*\ - !*** ./src/app/database/database.component.ts ***! - \************************************************/ -/*! exports provided: DatabaseComponent */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatabaseComponent", function() { return DatabaseComponent; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var _services_database_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/database.service */ "./src/app/services/database.service.ts"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -var __metadata = (undefined && undefined.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; - - -var DatabaseComponent = /** @class */ (function () { - function DatabaseComponent(databaseService) { - this.databaseService = databaseService; - this.showConnectForm = true; - this.databaseString = 'mongodb://user:testtest1@ds119660.mlab.com:19660/snippets-sandbox'; - this.editingCategory = false; - this.snippetEdited = false; - } - DatabaseComponent.prototype.ngOnInit = function () { - }; - DatabaseComponent.prototype.connectJson = function (jsonString) { - this.databaseService.startConnection(true, jsonString); - }; - DatabaseComponent.prototype.connect = function (connectString) { - // console.log("connecting to mongoose db: response is:"); - this.databaseService.startConnection(false, connectString); - }; - DatabaseComponent.prototype.toggleEditSnippet = function (snippet) { - if (!this.editSnippetObject || snippet._id !== this.editSnippetObject._id || this.editingCategory) { - this.editingCategory = false; - if (this.editSnippetObject) { - this.saveEdit(this.editSnippetObject); - } - this.editSnippetObject = snippet; - var snippetLabel = document.querySelector('#snippet-' + snippet._id + ' .snippet'); - var snippetEdit = document.querySelector('#snippet-' + snippet._id + ' .snippet-edit'); - snippetLabel.style.display = 'none'; - snippetEdit.style.display = 'block'; - } - }; - DatabaseComponent.prototype.toggleEditCategories = function (snippet) { - if (!this.editSnippetObject || snippet._id !== this.editSnippetObject._id || !this.editingCategory) { - this.editingCategory = true; - if (this.editSnippetObject) { - this.saveEdit(this.editSnippetObject); - } - this.editSnippetObject = snippet; - var categoriesLabel = document.querySelector('#snippet-' + snippet._id + ' .categories'); - var categoriesEdit = document.querySelector('#snippet-' + snippet._id + ' .categories-edit'); - categoriesLabel.style.display = 'none'; - categoriesEdit.style.display = 'block'; - } - }; - DatabaseComponent.prototype.toggleOffEditing = function () { - if (this.editSnippetObject) { - this.editSnippetObject = undefined; - var noEdits = document.getElementsByClassName('no-edit'); - var edits = document.getElementsByClassName('editable'); - for (var i = 0; i < edits.length; i++) { - edits[i].style.display = 'none'; - } - for (var j = 0; j < noEdits.length; j++) { - noEdits[j].style.display = 'block'; - } - } - }; - DatabaseComponent.prototype.saveEdit = function (snippet) { - // setting variables for edited content so that - var newSnip = document.querySelector('#snippet-' + snippet._id + ' .snippet-edit'); - var newCat = document.querySelector('#snippet-' + snippet._id + ' .categories-edit'); - snippet.snippet = newSnip.value; - snippet.categories = newCat.value; - if (this.snippetEdited) { - if (typeof snippet.categories === 'string') { - snippet.categories.replace(' ', ''); - snippet.categories = snippet.categories.split(','); - } - this.databaseService.editSnippet(snippet._id, snippet.snippet, snippet.categories); - this.snippetEdited = false; - } - this.toggleOffEditing(); - }; - DatabaseComponent.prototype.deleteRecord = function (id) { - // console.log("delete id: "+id); - this.databaseService.deleteSnippet(id); - }; - DatabaseComponent = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ - selector: 'app-database', - template: __webpack_require__(/*! ./database.component.html */ "./src/app/database/database.component.html"), - styles: [__webpack_require__(/*! ./database.component.css */ "./src/app/database/database.component.css")] - }), - __metadata("design:paramtypes", [_services_database_service__WEBPACK_IMPORTED_MODULE_1__["DatabaseService"]]) - ], DatabaseComponent); - return DatabaseComponent; -}()); - - - -/***/ }), - -/***/ "./src/app/export/export.component.css": -/*!*********************************************!*\ - !*** ./src/app/export/export.component.css ***! - \*********************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "textarea {\r\n height:500px;\r\n}\r\n" - -/***/ }), - -/***/ "./src/app/export/export.component.html": -/*!**********************************************!*\ - !*** ./src/app/export/export.component.html ***! - \**********************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "
\n

Exported Cover Letter:

\n

You may edit your cover letter, and copy/paste it from here to whatever medium you are using to apply for jobs.

\n \n

Need to edit something? Click the button below to go back.

\n

WARNING: Any changes you made in this text form will not be saved!

\n \n
\n\n" - -/***/ }), - -/***/ "./src/app/export/export.component.ts": -/*!********************************************!*\ - !*** ./src/app/export/export.component.ts ***! - \********************************************/ -/*! exports provided: ExportComponent */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExportComponent", function() { return ExportComponent; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var _services_cover_letter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/cover-letter.service */ "./src/app/services/cover-letter.service.ts"); -/* harmony import */ var _services_status_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/status-message.service */ "./src/app/services/status-message.service.ts"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -var __metadata = (undefined && undefined.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; - - - -var ExportComponent = /** @class */ (function () { - function ExportComponent(coverLetterService, statusMessageService) { - this.coverLetterService = coverLetterService; - this.statusMessageService = statusMessageService; - } - ExportComponent.prototype.ngOnInit = function () { - }; - ExportComponent = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ - selector: 'app-export', - template: __webpack_require__(/*! ./export.component.html */ "./src/app/export/export.component.html"), - styles: [__webpack_require__(/*! ./export.component.css */ "./src/app/export/export.component.css")] - }), - __metadata("design:paramtypes", [_services_cover_letter_service__WEBPACK_IMPORTED_MODULE_1__["CoverLetterService"], - _services_status_message_service__WEBPACK_IMPORTED_MODULE_2__["StatusMessageService"]]) - ], ExportComponent); - return ExportComponent; -}()); - - - -/***/ }), - -/***/ "./src/app/has-keywords.pipe.ts": -/*!**************************************!*\ - !*** ./src/app/has-keywords.pipe.ts ***! - \**************************************/ -/*! exports provided: HasKeywordsPipe */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HasKeywordsPipe", function() { return HasKeywordsPipe; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; - -var HasKeywordsPipe = /** @class */ (function () { - function HasKeywordsPipe() { - } - HasKeywordsPipe.prototype.transform = function (value, args) { - // Only return categories if there is at least 1 keyword in the job description - return value.filter(function (cat) { return cat.jobKeywords > 0; }); - }; - HasKeywordsPipe = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ - name: 'hasKeywords' - }) - ], HasKeywordsPipe); - return HasKeywordsPipe; -}()); - - - -/***/ }), - -/***/ "./src/app/job-description/job-description.component.css": -/*!***************************************************************!*\ - !*** ./src/app/job-description/job-description.component.css ***! - \***************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "#keyword-results-table-container {\r\n max-height:160px;\r\n}\r\n\r\n/* #keyword-results-table thead td, #filtered-snippets-table thead td {\r\n font-size:14px;\r\n color:white;\r\n} */\r\n\r\n#keyword-results-table tbody td {\r\n font-size:10px;\r\n}\r\n\r\n\r\n\r\n" - -/***/ }), - -/***/ "./src/app/job-description/job-description.component.html": -/*!****************************************************************!*\ - !*** ./src/app/job-description/job-description.component.html ***! - \****************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "\n

Job Description

\n

Enter the job description here, and Snippets will parse it in order to find the keywords (skills, experience, languages) that match previous cover letter information that you have written.

\n\n\n\n\n\n" - -/***/ }), - -/***/ "./src/app/job-description/job-description.component.ts": -/*!**************************************************************!*\ - !*** ./src/app/job-description/job-description.component.ts ***! - \**************************************************************/ -/*! exports provided: JobDescriptionComponent */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JobDescriptionComponent", function() { return JobDescriptionComponent; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var _services_parse_description_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/parse-description.service */ "./src/app/services/parse-description.service.ts"); -/* harmony import */ var _services_status_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/status-message.service */ "./src/app/services/status-message.service.ts"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -var __metadata = (undefined && undefined.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; - - - -var JobDescriptionComponent = /** @class */ (function () { - function JobDescriptionComponent(parseDescriptionService, statusMessageService) { - this.parseDescriptionService = parseDescriptionService; - this.statusMessageService = statusMessageService; - } - JobDescriptionComponent.prototype.ngOnInit = function () { - }; - JobDescriptionComponent.prototype.submitDescription = function (description) { - this.parseDescriptionService.parseDescription(description); - }; - JobDescriptionComponent.prototype.enterNewDescription = function () { - this.descriptionContent = ""; - this.parseDescriptionService.showParsingResults = false; - this.statusMessageService.newStatusMessage("Resetting Job Description", "warning"); - }; - JobDescriptionComponent = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ - selector: 'app-job-description', - template: __webpack_require__(/*! ./job-description.component.html */ "./src/app/job-description/job-description.component.html"), - styles: [__webpack_require__(/*! ./job-description.component.css */ "./src/app/job-description/job-description.component.css")] - }), - __metadata("design:paramtypes", [_services_parse_description_service__WEBPACK_IMPORTED_MODULE_1__["ParseDescriptionService"], - _services_status_message_service__WEBPACK_IMPORTED_MODULE_2__["StatusMessageService"]]) - ], JobDescriptionComponent); - return JobDescriptionComponent; -}()); - - - -/***/ }), - -/***/ "./src/app/nav/nav.component.css": -/*!***************************************!*\ - !*** ./src/app/nav/nav.component.css ***! - \***************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "ul {\r\n list-style-type: none;\r\n}\r\n\r\nli a {\r\n color:#b0ccea;\r\n}\r\n\r\nli .is-active {\r\n color:white;\r\n font-weight:700;\r\n}\r\n\r\nli .disabled {\r\n cursor:not-allowed !important;\r\n color:#555 !important;\r\n text-decoration:none;\r\n}\r\n\r\n/* .is-active {\r\n color:#7ca0c5;\r\n} */\r\n" - -/***/ }), - -/***/ "./src/app/nav/nav.component.html": -/*!****************************************!*\ - !*** ./src/app/nav/nav.component.html ***! - \****************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "\n" - -/***/ }), - -/***/ "./src/app/nav/nav.component.ts": -/*!**************************************!*\ - !*** ./src/app/nav/nav.component.ts ***! - \**************************************/ -/*! exports provided: NavComponent */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavComponent", function() { return NavComponent; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var _services_database_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/database.service */ "./src/app/services/database.service.ts"); -/* harmony import */ var _services_cover_letter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/cover-letter.service */ "./src/app/services/cover-letter.service.ts"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -var __metadata = (undefined && undefined.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; - - - -var NavComponent = /** @class */ (function () { - function NavComponent(databaseService, coverLetterService) { - this.databaseService = databaseService; - this.coverLetterService = coverLetterService; - this.coverLetterLinkDisabled = (this.coverLetterService.addedSnippets.length == 0); - } - NavComponent.prototype.ngOnInit = function () { - }; - NavComponent = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ - selector: 'app-nav', - template: __webpack_require__(/*! ./nav.component.html */ "./src/app/nav/nav.component.html"), - styles: [__webpack_require__(/*! ./nav.component.css */ "./src/app/nav/nav.component.css")] - }), - __metadata("design:paramtypes", [_services_database_service__WEBPACK_IMPORTED_MODULE_1__["DatabaseService"], - _services_cover_letter_service__WEBPACK_IMPORTED_MODULE_2__["CoverLetterService"]]) - ], NavComponent); - return NavComponent; -}()); - - - -/***/ }), - -/***/ "./src/app/results/results.component.css": -/*!***********************************************!*\ - !*** ./src/app/results/results.component.css ***! - \***********************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "#filtered-snippets-table thead td:first-child {\r\n width:75%;\r\n}\r\n\r\n#filtered-snippets-table thead td:nth-child(2) {\r\n max-width:25%;\r\n}\r\n\r\nbutton {\r\n margin: 0 auto;\r\n display: block;\r\n}\r\n\r\n#intro-outro {\r\n margin:20px 0\r\n}\r\n" - -/***/ }), - -/***/ "./src/app/results/results.component.html": -/*!************************************************!*\ - !*** ./src/app/results/results.component.html ***! - \************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "
\n\n
\n\n
\n \n
\n\n
\n\n

Results for the job description:

\n {{parseDescriptionService.jobDescription.substring(0,200)}}...\n\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Category/Keyword:Times Mentioned:Show snippets for Category
{{ keyword.keyword }}{{ keyword.jobKeywords }}\n Show Snippets\n
\n
\n\n
\n \n \n
\n\n
\n
\n\n

Snippets from Category: {{ displayedCategory }}

\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
SnippetAdd to Letter
{{snippet.snippet}}\n Add\n
\n
\n
\n\n
\n" - -/***/ }), - -/***/ "./src/app/results/results.component.ts": -/*!**********************************************!*\ - !*** ./src/app/results/results.component.ts ***! - \**********************************************/ -/*! exports provided: ResultsComponent */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResultsComponent", function() { return ResultsComponent; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var _services_parse_description_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/parse-description.service */ "./src/app/services/parse-description.service.ts"); -/* harmony import */ var _services_status_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/status-message.service */ "./src/app/services/status-message.service.ts"); -/* harmony import */ var _services_database_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/database.service */ "./src/app/services/database.service.ts"); -/* harmony import */ var _services_cover_letter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services/cover-letter.service */ "./src/app/services/cover-letter.service.ts"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -var __metadata = (undefined && undefined.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; - - - - - -var ResultsComponent = /** @class */ (function () { - function ResultsComponent(parseDescriptionService, coverLetterService, databaseService, statusMessageService) { - this.parseDescriptionService = parseDescriptionService; - this.coverLetterService = coverLetterService; - this.databaseService = databaseService; - this.statusMessageService = statusMessageService; - this.displayedCategory = ''; - this.showFilteredSnippetsTable = false; - } - ResultsComponent.prototype.ngOnInit = function () { - }; - ResultsComponent.prototype.displaySnippets = function (keyword) { - this.filteredSnippets = []; - var snippets = this.databaseService.database; - for (var i = 0; i < snippets.length; i++) { - if (snippets[i].categories.includes(keyword)) { - this.filteredSnippets.push(snippets[i]); - } - } - this.displayedCategory = keyword; - this.showFilteredSnippetsTable = true; - this.statusMessageService.newStatusMessage('Displaying Snippets from category: ' + keyword, 'primary'); - }; - ResultsComponent.prototype.enterNewDescription = function () { - this.filteredSnippets = []; - this.showFilteredSnippetsTable = false; - this.parseDescriptionService.showParsingResults = false; - this.parseDescriptionService.jobDescription = ''; - this.parseDescriptionService.keywordArray = []; - this.statusMessageService.newStatusMessage('Resetting Job Description', 'warning'); - }; - ResultsComponent = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ - selector: 'app-results', - template: __webpack_require__(/*! ./results.component.html */ "./src/app/results/results.component.html"), - styles: [__webpack_require__(/*! ./results.component.css */ "./src/app/results/results.component.css")] - }), - __metadata("design:paramtypes", [_services_parse_description_service__WEBPACK_IMPORTED_MODULE_1__["ParseDescriptionService"], - _services_cover_letter_service__WEBPACK_IMPORTED_MODULE_4__["CoverLetterService"], - _services_database_service__WEBPACK_IMPORTED_MODULE_3__["DatabaseService"], - _services_status_message_service__WEBPACK_IMPORTED_MODULE_2__["StatusMessageService"]]) - ], ResultsComponent); - return ResultsComponent; -}()); - - - -/***/ }), - -/***/ "./src/app/services/cover-letter.service.ts": -/*!**************************************************!*\ - !*** ./src/app/services/cover-letter.service.ts ***! - \**************************************************/ -/*! exports provided: CoverLetterService */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoverLetterService", function() { return CoverLetterService; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var _services_status_message_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/status-message.service */ "./src/app/services/status-message.service.ts"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -var __metadata = (undefined && undefined.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; - - -var CoverLetterService = /** @class */ (function () { - function CoverLetterService(statusMessageService) { - this.statusMessageService = statusMessageService; - this.addedSnippets = []; - this.exported = ''; - } - CoverLetterService.prototype.addSnippet = function (snippet) { - for (var i = 0; i < this.addedSnippets.length; i++) { - if (this.addedSnippets[i]._id === snippet._id) { - return; - } - } - this.addedSnippets.push(snippet); - this.statusMessageService.newStatusMessage('Added Snippet to the Cover Letter', 'primary'); - }; - CoverLetterService.prototype.moveSnippet = function (index, up) { - var temp = this.addedSnippets[index]; - var swapIndex = up ? -1 : 1; - this.addedSnippets[index] = this.addedSnippets[index + swapIndex]; - this.addedSnippets[index + swapIndex] = temp; - }; - CoverLetterService.prototype.removeSnippet = function (index) { - this.addedSnippets.splice(index, 1); - this.statusMessageService.newStatusMessage('Removed Snippet from Cover Letter', 'primary'); - }; - CoverLetterService = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), - __metadata("design:paramtypes", [_services_status_message_service__WEBPACK_IMPORTED_MODULE_1__["StatusMessageService"]]) - ], CoverLetterService); - return CoverLetterService; -}()); - - - -/***/ }), - -/***/ "./src/app/services/database.service.ts": -/*!**********************************************!*\ - !*** ./src/app/services/database.service.ts ***! - \**********************************************/ -/*! exports provided: DatabaseService */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatabaseService", function() { return DatabaseService; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); -/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); -/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); -/* harmony import */ var _status_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./status-message.service */ "./src/app/services/status-message.service.ts"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -var __metadata = (undefined && undefined.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; - - - - - -var DatabaseService = /** @class */ (function () { - function DatabaseService(http, statusMessageService) { - this.http = http; - this.statusMessageService = statusMessageService; - this.connected = false; - this.showDatabase = false; - this.categories = {}; - } - DatabaseService.prototype.startConnection = function (isJson, urlString) { - if (isJson === void 0) { isJson = true; } - if (urlString === void 0) { urlString = 'snippets-db.json'; } - var self = this; - var dataObj = JSON.stringify({ databaseUrl: urlString }); - var options = { - headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpHeaders"]({ - 'Content-Type': 'application/json; charset=utf-8' - }) - }; - var url = isJson ? 'api/get-json-data' : 'api/connect-to-database'; - self.isJson = isJson; - this.http.post(url, dataObj, options) - .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["retry"])(2), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(this.handleError)).subscribe(function (response) { - if (response.connected && !response.error) { - self.database = response.data; - self.statusMessageService.newStatusMessage(response.responseMessage, 'success'); - self.connected = true; - self.showDatabase = true; - if (self.database.length > 0) { - self.extractCategories(); - } - } - }); - }; - DatabaseService.prototype.addSnippet = function (snippet, categories) { - var self = this; - var data = { snippet: snippet, categories: categories }; - var options = { - headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpHeaders"]({ - 'Content-Type': 'application/json; charset=utf-8' - }) - }; - var url = self.isJson ? 'api/add-json-snippet' : 'api/add-snippet'; - this.http.post(url, JSON.stringify(data), options) - .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(this.handleError)).subscribe(function (returnData) { - if (returnData.connected) { - self.statusMessageService.newStatusMessage(returnData.responseMessage, 'success'); - self.database = returnData.data; - self.extractCategories(); - } - else if (returnData.error) { - self.statusMessageService.newStatusMessage(returnData.responseMessage, 'error'); - } - }); - }; - DatabaseService.prototype.editSnippet = function (id, snippet, categories) { - var self = this; - var url = self.isJson ? 'api/edit-json-snippet' : 'api/edit-snippet'; - var data = { id: id, snippet: snippet, categories: categories }; - var options = { - headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpHeaders"]({ - 'Content-Type': 'application/json; charset=utf-8' - }) - }; - this.http.put(url, JSON.stringify(data), options) - .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(this.handleError)).subscribe(function (returnData) { - if (returnData.connected && !returnData.error) { - self.statusMessageService.newStatusMessage(returnData.responseMessage, 'success'); - self.database = returnData.data; - self.extractCategories(); - } - }); - }; - DatabaseService.prototype.deleteSnippet = function (id) { - var self = this; - var data = { id: id }; - var url = self.isJson ? 'api/delete-json-snippet' : 'api/delete-snippet'; - var options = { - headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpHeaders"]({ - 'Content-Type': 'application/json; charset=utf-8' - }), - body: JSON.stringify(data) - }; - this.http.delete(url, options) - .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(this.handleError)).subscribe(function (returnData) { - if (returnData.connected && !returnData.error) { - self.statusMessageService.newStatusMessage(returnData.responseMessage, 'success'); - self.database = returnData.data; - self.extractCategories(); - } - }); - }; - DatabaseService.prototype.extractCategories = function () { - this.categories = {}; - for (var i = 0; i < this.database.length; i++) { - var record = this.database[i]; - for (var j = 0; j < record.categories.length; j++) { - var category = record.categories[j]; - if (!(category in this.categories)) { - this.categories[category] = { - ids: [], - jobKeywords: 0 - }; - } - this.categories[category].ids.push(record); - } - } - }; - DatabaseService.prototype.handleError = function (error) { - console.log('error obj: '); - console.log(error); - if (error.error instanceof ErrorEvent) { - console.error('Error: ', error.error.message); - this.statusMessageService.newStatusMessage('There was a network error with your request: ' + error.error.message, 'error'); - } - else { - console.error("Backend returned code " + error.status); - console.error("Error Body: " + error.error); - this.statusMessageService.newStatusMessage('There was a server error with your request: ' + error.error, 'error'); - } - return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["throwError"])('error from throwerror'); - }; - DatabaseService = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), - __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"], - _status_message_service__WEBPACK_IMPORTED_MODULE_4__["StatusMessageService"]]) - ], DatabaseService); - return DatabaseService; -}()); - - - -/***/ }), - -/***/ "./src/app/services/parse-description.service.ts": -/*!*******************************************************!*\ - !*** ./src/app/services/parse-description.service.ts ***! - \*******************************************************/ -/*! exports provided: ParseDescriptionService */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParseDescriptionService", function() { return ParseDescriptionService; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var _database_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./database.service */ "./src/app/services/database.service.ts"); -/* harmony import */ var _status_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./status-message.service */ "./src/app/services/status-message.service.ts"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -var __metadata = (undefined && undefined.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; - - - -var ParseDescriptionService = /** @class */ (function () { - function ParseDescriptionService(databaseService, statusMessageService) { - this.databaseService = databaseService; - this.statusMessageService = statusMessageService; - this.jobDescription = ''; - this.showParsingResults = false; - } - ParseDescriptionService.prototype.parseDescription = function (description) { - this.resetJobKeywords(); - this.jobDescription = description; - var descriptionWords = description.split(/\W/); - for (var i = 0; i < descriptionWords.length; i++) { - var word = descriptionWords[i].toLowerCase(); - if (word in this.databaseService.categories) { - this.databaseService.categories[word].jobKeywords++; - } - } - this.keywordArray = this.createOrderedArray(); - this.showParsingResults = true; - }; - ParseDescriptionService.prototype.resetJobKeywords = function () { - var keywords = Object.keys(this.databaseService.categories); - for (var i = 0; i < keywords.length; i++) { - this.databaseService.categories[keywords[i]].jobKeywords = 0; - } - }; - ParseDescriptionService.prototype.createOrderedArray = function () { - var keywords = Object.keys(this.databaseService.categories); - var keywordsArray = []; - for (var i = 0; i < keywords.length; i++) { - this.databaseService.categories[keywords[i]].keyword = keywords[i]; - keywordsArray.push(this.databaseService.categories[keywords[i]]); - } - function quicksortByJobKeywords(arr, left, right) { - if (left < right) { - var divider = divide(arr, left, right); - quicksortByJobKeywords(arr, left, divider - 1); - quicksortByJobKeywords(arr, divider + 1, right); - } - return arr; - } - function divide(arr, left, right) { - var dividerIndex = left; - var pivot = right; - for (var i = left; i < right; i++) { - if (arr[i].jobKeywords > arr[pivot].jobKeywords) { - swap(arr, i, dividerIndex); - dividerIndex++; - } - } - swap(arr, pivot, dividerIndex); - return dividerIndex; - } - function swap(arr, a, b) { - var temp = arr[a]; - arr[a] = arr[b]; - arr[b] = temp; - } - quicksortByJobKeywords(keywordsArray, 0, keywordsArray.length - 1); - var statusMessage = 'Finished parsing the description. The category with the most keywords in this job description is: ' + keywordsArray[0].keyword + ' with ' + keywordsArray[0].jobKeywords + ' keywords.'; - this.statusMessageService.newStatusMessage(statusMessage, 'success'); - return keywordsArray; - }; - ParseDescriptionService = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), - __metadata("design:paramtypes", [_database_service__WEBPACK_IMPORTED_MODULE_1__["DatabaseService"], _status_message_service__WEBPACK_IMPORTED_MODULE_2__["StatusMessageService"]]) - ], ParseDescriptionService); - return ParseDescriptionService; -}()); - - - -/***/ }), - -/***/ "./src/app/services/status-message.service.ts": -/*!****************************************************!*\ - !*** ./src/app/services/status-message.service.ts ***! - \****************************************************/ -/*! exports provided: StatusMessageService */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatusMessageService", function() { return StatusMessageService; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -var __metadata = (undefined && undefined.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; - - -var StatusMessageService = /** @class */ (function () { - function StatusMessageService() { - this.statusMessageStream = new rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"](undefined); - } - StatusMessageService.prototype.getStatusMessageStream = function () { - return this.statusMessageStream.asObservable(); - }; - StatusMessageService.prototype.newStatusMessage = function (status, cssClass) { - this.statusMessageStream.next({ - status: status, - cssClass: cssClass - }); - }; - StatusMessageService.prototype.clearStatus = function () { - this.statusMessageStream.next({ - status: '', - cssClass: '' - }); - }; - StatusMessageService = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), - __metadata("design:paramtypes", []) - ], StatusMessageService); - return StatusMessageService; -}()); - - - -/***/ }), - -/***/ "./src/app/status-message/status-message.component.css": -/*!*************************************************************!*\ - !*** ./src/app/status-message/status-message.component.css ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "#status {\r\n width:100%;\r\n max-width:38em;\r\n padding: 0px 15px;\r\n border:1px solid #c9c9c9;\r\n text-align:left;\r\n color:#c9c9c9;\r\n border-radius:3px;\r\n margin:20px 0 0 -13px;\r\n background-color: rgba(200,200,200,.3);\r\n position: fixed;\r\n bottom: 0px;\r\n box-sizing: border-box;\r\n}\r\n\r\n#status.success {\r\n color:green;\r\n border-color:green;\r\n background-color:#9bca9b;\r\n}\r\n\r\n#status.error {\r\n color: #c14242;\r\n border-color: #b54242;\r\n background-color: #5a2c2c;\r\n}\r\n\r\n#status.primary {\r\n color: #8fcef3;\r\n border-color: #596c77;\r\n background-color: #596c77;\r\n}\r\n\r\n#status.warning {\r\n color: #856404;\r\n background-color: #fff3cd;\r\n border-color: #ffeeba;\r\n}\r\n" - -/***/ }), - -/***/ "./src/app/status-message/status-message.component.html": -/*!**************************************************************!*\ - !*** ./src/app/status-message/status-message.component.html ***! - \**************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -module.exports = "
\n

\n {{statusMessage}}\n

\n
" - -/***/ }), - -/***/ "./src/app/status-message/status-message.component.ts": -/*!************************************************************!*\ - !*** ./src/app/status-message/status-message.component.ts ***! - \************************************************************/ -/*! exports provided: StatusMessageComponent */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatusMessageComponent", function() { return StatusMessageComponent; }); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var _services_status_message_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/status-message.service */ "./src/app/services/status-message.service.ts"); -var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -var __metadata = (undefined && undefined.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); -}; - - -var StatusMessageComponent = /** @class */ (function () { - function StatusMessageComponent(statusMessageService) { - this.statusMessageService = statusMessageService; - this.statusMessage = ""; - this.statusClass = "primary"; - } - StatusMessageComponent.prototype.ngOnInit = function () { - var _this = this; - var statusObservable = this.statusMessageService.getStatusMessageStream(); - statusObservable.subscribe(function (d) { - if (d !== undefined) { - _this.statusMessage = d.status; - _this.statusClass = d.cssClass; - } - }); - }; - StatusMessageComponent = __decorate([ - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ - selector: 'app-status-message', - template: __webpack_require__(/*! ./status-message.component.html */ "./src/app/status-message/status-message.component.html"), - styles: [__webpack_require__(/*! ./status-message.component.css */ "./src/app/status-message/status-message.component.css")] - }), - __metadata("design:paramtypes", [_services_status_message_service__WEBPACK_IMPORTED_MODULE_1__["StatusMessageService"]]) - ], StatusMessageComponent); - return StatusMessageComponent; -}()); - - - -/***/ }), - -/***/ "./src/environments/environment.ts": -/*!*****************************************!*\ - !*** ./src/environments/environment.ts ***! - \*****************************************/ -/*! exports provided: environment */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return environment; }); -// The file contents for the current environment will overwrite these during build. -// The build system defaults to the dev environment which uses `environment.ts`, but if you do -// `ng build --env=prod` then `environment.prod.ts` will be used instead. -// The list of which env maps to which file can be found in `.angular-cli.json`. -var environment = { - production: false -}; - - -/***/ }), - -/***/ "./src/main.ts": -/*!*********************!*\ - !*** ./src/main.ts ***! - \*********************/ -/*! no exports provided */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); -/* harmony import */ var _angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser-dynamic */ "./node_modules/@angular/platform-browser-dynamic/fesm5/platform-browser-dynamic.js"); -/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts"); -/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts"); - - - - -if (_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].production) { - Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])(); -} -Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_2__["AppModule"]) - .catch(function (err) { return console.log(err); }); - - -/***/ }), - -/***/ 0: -/*!***************************!*\ - !*** multi ./src/main.ts ***! - \***************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(/*! C:\Users\mcheah\cover-letter-snippets\snippets\src\main.ts */"./src/main.ts"); - - -/***/ }) - -},[[0,"runtime","vendor"]]]); -//# sourceMappingURL=main.js.map \ No newline at end of file diff --git a/dist/main.js.map b/dist/main.js.map deleted file mode 100644 index 2fd537c..0000000 --- a/dist/main.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///./src/$_lazy_route_resource lazy namespace object","webpack:///./src/app/add-snippet/add-snippet.component.css","webpack:///./src/app/add-snippet/add-snippet.component.html","webpack:///./src/app/add-snippet/add-snippet.component.ts","webpack:///./src/app/app.component.css","webpack:///./src/app/app.component.html","webpack:///./src/app/app.component.ts","webpack:///./src/app/app.module.ts","webpack:///./src/app/build-cover-letter/build-cover-letter.component.css","webpack:///./src/app/build-cover-letter/build-cover-letter.component.html","webpack:///./src/app/build-cover-letter/build-cover-letter.component.ts","webpack:///./src/app/cover-letter/cover-letter.component.css","webpack:///./src/app/cover-letter/cover-letter.component.html","webpack:///./src/app/cover-letter/cover-letter.component.ts","webpack:///./src/app/database/database.component.css","webpack:///./src/app/database/database.component.html","webpack:///./src/app/database/database.component.ts","webpack:///./src/app/export/export.component.css","webpack:///./src/app/export/export.component.html","webpack:///./src/app/export/export.component.ts","webpack:///./src/app/has-keywords.pipe.ts","webpack:///./src/app/job-description/job-description.component.css","webpack:///./src/app/job-description/job-description.component.html","webpack:///./src/app/job-description/job-description.component.ts","webpack:///./src/app/nav/nav.component.css","webpack:///./src/app/nav/nav.component.html","webpack:///./src/app/nav/nav.component.ts","webpack:///./src/app/results/results.component.css","webpack:///./src/app/results/results.component.html","webpack:///./src/app/results/results.component.ts","webpack:///./src/app/services/cover-letter.service.ts","webpack:///./src/app/services/database.service.ts","webpack:///./src/app/services/parse-description.service.ts","webpack:///./src/app/services/status-message.service.ts","webpack:///./src/app/status-message/status-message.component.css","webpack:///./src/app/status-message/status-message.component.html","webpack:///./src/app/status-message/status-message.component.ts","webpack:///./src/environments/environment.ts","webpack:///./src/main.ts"],"names":[],"mappings":";;;;;;;;;AAAA;A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zE,gFAAgF;AAEzE,IAAM,WAAW,GAAG;IACzB,UAAU,EAAE,KAAK;CAClB,CAAC;;;;;;;;;;;;;;;;;;ACP6C;AAC4B;AAE9B;AACY;AAEzD,IAAI,qEAAW,CAAC,UAAU,EAAE;IAC1B,oEAAc,EAAE,CAAC;CAClB;AAED,gGAAsB,EAAE,CAAC,eAAe,CAAC,yDAAS,CAAC;KAChD,KAAK,CAAC,aAAG,IAAI,cAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAhB,CAAgB,CAAC,CAAC","file":"main.js","sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = \"./src/$$_lazy_route_resource lazy recursive\";","module.exports = \"#snippet {\\r\\n height:160px;\\r\\n}\"","module.exports = \"
\\r\\n\\r\\n

Add Snippet

\\r\\n

Enter a snippet from your cover letter that you feel is well articulated and communicates your experience well. Then fill out the categories (experiences, languages, skills) that relate to this cover letter.

\\r\\n \\r\\n \\r\\n \\r\\n
\\r\\n\"","import { Component, OnInit } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { DatabaseService } from '../services/database.service';\r\n\r\n@Component({\r\n selector: 'app-add-snippet',\r\n templateUrl: './add-snippet.component.html',\r\n styleUrls: ['./add-snippet.component.css']\r\n})\r\nexport class AddSnippetComponent implements OnInit {\r\n\r\n snippet: String = '';\r\n categories: String = '';\r\n\r\n constructor(public databaseService: DatabaseService) { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n addSnippet() {\r\n this.categories.replace(' ', '');\r\n const categoriesArray = this.categories.split(',');\r\n this.databaseService.addSnippet(this.snippet, categoriesArray);\r\n this.snippet = '';\r\n this.categories = '';\r\n }\r\n}\r\n","module.exports = \"\"","module.exports = \"\\n
\\n

\\n Welcome to {{ title }}!\\n

\\n
\\n\\n
\\n \\n \\n
\\n\\n\\n\"","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n title = 'Cover Letter Snippets';\n}\n","import { BrowserModule } from '@angular/platform-browser';\r\nimport { NgModule } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { HttpClientModule } from '@angular/common/http';\r\n\r\nimport { AppComponent } from './app.component';\r\nimport { RouterModule, Routes } from '@angular/router';\r\n\r\nimport { JobDescriptionComponent } from './job-description/job-description.component';\r\nimport { DatabaseComponent } from './database/database.component';\r\nimport { ResultsComponent } from './results/results.component';\r\nimport { AddSnippetComponent } from './add-snippet/add-snippet.component';\r\nimport { StatusMessageComponent } from './status-message/status-message.component';\r\nimport { HasKeywordsPipe } from './has-keywords.pipe';\r\nimport { CoverLetterComponent } from './cover-letter/cover-letter.component';\r\nimport { BuildCoverLetterComponent } from './build-cover-letter/build-cover-letter.component';\r\nimport { ExportComponent } from './export/export.component';\r\nimport { NavComponent } from './nav/nav.component';\r\n\r\nimport { DatabaseService } from './services/database.service';\r\nimport { ParseDescriptionService } from './services/parse-description.service';\r\nimport { StatusMessageService } from './services/status-message.service';\r\nimport { CoverLetterService } from './services/cover-letter.service';\r\n\r\nimport { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\r\n\r\nconst appRoutes: Routes = [\r\n { path: '', component: DatabaseComponent },\r\n { path: 'add-snippet', component: AddSnippetComponent },\r\n { path: 'build-cover-letter', component: BuildCoverLetterComponent },\r\n { path: 'export-cover-letter', component: ExportComponent }\r\n];\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent,\r\n JobDescriptionComponent,\r\n DatabaseComponent,\r\n ResultsComponent,\r\n AddSnippetComponent,\r\n StatusMessageComponent,\r\n HasKeywordsPipe,\r\n CoverLetterComponent,\r\n ExportComponent,\r\n BuildCoverLetterComponent,\r\n NavComponent\r\n ],\r\n imports: [\r\n RouterModule.forRoot(\r\n appRoutes,\r\n ),\r\n BrowserModule,\r\n FormsModule,\r\n HttpClientModule\r\n ],\r\n providers: [\r\n DatabaseService,\r\n ParseDescriptionService,\r\n StatusMessageService,\r\n CoverLetterService,\r\n ],\r\n bootstrap: [AppComponent],\r\n schemas: [\r\n CUSTOM_ELEMENTS_SCHEMA\r\n ]\r\n})\r\nexport class AppModule { }\r\n","module.exports = \"\"","module.exports = \"\\r\\n\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n\\r\\n
0\\\">\\r\\n \\r\\n
\\r\\n\"","import { Component, OnInit } from '@angular/core';\n\nimport { ParseDescriptionService } from '../services/parse-description.service';\nimport { StatusMessageService } from '../services/status-message.service';\nimport { DatabaseService } from '../services/database.service';\nimport { CoverLetterService } from '../services/cover-letter.service';\n\n@Component({\n selector: 'app-build-cover-letter',\n templateUrl: './build-cover-letter.component.html',\n styleUrls: ['./build-cover-letter.component.css']\n})\nexport class BuildCoverLetterComponent implements OnInit {\n\n constructor(\n public parseDescriptionService: ParseDescriptionService,\n public coverLetterService: CoverLetterService,\n ) { }\n\n ngOnInit() {\n }\n\n}\n","module.exports = \"#cover-letter-table thead td:first-child {\\r\\n width:70%;\\r\\n}\\r\\n\\r\\n#cover-letter-table thead td:nth-child(2) {\\r\\n max-width:15%;\\r\\n}\\r\\n\\r\\n#cover-letter-table thead td:nth-child(3) {\\r\\n max-width:15%;\\r\\n}\"","module.exports = \"\\n

Organize Snippets and Export:

\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
SnippetRemoveReorganize
{{snippet.snippet}}Remove\\n

Move Up

\\n

Move Down

\\n
\\n
\\n\\n\"","import { Component, OnInit } from '@angular/core';\nimport { CoverLetterService } from '../services/cover-letter.service';\nimport { StatusMessageService } from '../services/status-message.service';\n\n@Component({\n selector: 'app-cover-letter',\n templateUrl: './cover-letter.component.html',\n styleUrls: ['./cover-letter.component.css']\n})\nexport class CoverLetterComponent implements OnInit {\n\n constructor(public coverLetterService:CoverLetterService,\n private statusMessasageService:StatusMessageService) { }\n\n ngOnInit() {\n }\n\n compile() {\n let exportedCoverLetter = \"\";\n for (let i = 0; i < this.coverLetterService.addedSnippets.length; i++) {\n exportedCoverLetter += this.coverLetterService.addedSnippets[i].snippet;\n exportedCoverLetter += \"\\n\\n\";\n }\n this.coverLetterService.exported = exportedCoverLetter;\n this.statusMessasageService.newStatusMessage('Exporting Cover Letter to final edit!','success');\n }\n\n}\n","module.exports = \".table-container {\\r\\n max-height: 300px;\\r\\n}\\r\\n\\r\\n#database-table thead td:first-child {\\r\\n width:60%;\\r\\n}\\r\\n\\r\\n#database-table thead td:nth-child(2) {\\r\\n width:25%;\\r\\n}\\r\\n\\r\\n#database-table thead td:nth-child(3) {\\r\\n width:15%;\\r\\n}\\r\\n\\r\\n.snippet-edit, .categories-edit {\\r\\n background-color: #00000000;\\r\\n color:#c9c9c9;\\r\\n border:none;\\r\\n font-size: 11px;\\r\\n font-family: sans-serif;\\r\\n}\\r\\n\\r\\n.snippet-edit {\\r\\n display:none;\\r\\n min-height: 75px;\\r\\n}\\r\\n\\r\\n.categories-edit {\\r\\n display:none;\\r\\n}\\r\\n\"","module.exports = \"
\\r\\n

Use JSON File:

\\r\\n

\\r\\n Click here to store/pull data from a local JSON file.\\r\\n

\\r\\n \\r\\n\\r\\n
\\r\\n\\r\\n

Connect your Database:

\\r\\n

\\r\\n Paste your MongoDB url here with credentials and we will connect to your database.\\r\\n For instructions on how to create a cloud-hosted database, visit the README.\\r\\n

\\r\\n

The database string here is a test sandbox for anyone to use. Please play nice.

\\r\\n
\\r\\n \\r\\n
\\r\\n\\r\\n
\\r\\n

\\r\\n Your Snippets Database has {{databaseService.database.length}} entries.
\\r\\n Click a snippet or category to edit and press 'enter' to save\\r\\n

\\r\\n
\\r\\n\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n
SnippetCategoriesDelete
\\r\\n
\\r\\n {{snippet.snippet}}\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n {{snippet.categories}}\\r\\n
\\r\\n \\r\\n
Delete
\\r\\n
\\r\\n\\r\\n
\\r\\n\"","import { Component, OnInit } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { DatabaseService } from '../services/database.service';\r\n\r\n\r\n\r\n@Component({\r\n selector: 'app-database',\r\n templateUrl: './database.component.html',\r\n styleUrls: ['./database.component.css']\r\n})\r\nexport class DatabaseComponent implements OnInit {\r\n\r\n showConnectForm = true;\r\n databaseString = 'mongodb://user:testtest1@ds119660.mlab.com:19660/snippets-sandbox';\r\n\r\n editSnippetObject;\r\n editingCategory = false;\r\n snippetEdited = false;\r\n\r\n constructor(public databaseService: DatabaseService) { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n connectJson(jsonString: string): void {\r\n this.databaseService.startConnection(true, jsonString);\r\n }\r\n\r\n connect(connectString: string): void {\r\n // console.log(\"connecting to mongoose db: response is:\");\r\n this.databaseService.startConnection(false, connectString);\r\n }\r\n\r\n toggleEditSnippet(snippet): void {\r\n if (!this.editSnippetObject || snippet._id !== this.editSnippetObject._id || this.editingCategory) {\r\n this.editingCategory = false;\r\n\r\n if (this.editSnippetObject) {\r\n this.saveEdit(this.editSnippetObject);\r\n }\r\n\r\n this.editSnippetObject = snippet;\r\n const snippetLabel: HTMLElement = document.querySelector('#snippet-' + snippet._id + ' .snippet');\r\n const snippetEdit: HTMLElement = document.querySelector('#snippet-' + snippet._id + ' .snippet-edit');\r\n\r\n snippetLabel.style.display = 'none';\r\n snippetEdit.style.display = 'block';\r\n }\r\n }\r\n\r\n toggleEditCategories(snippet): void {\r\n if (!this.editSnippetObject || snippet._id !== this.editSnippetObject._id || !this.editingCategory) {\r\n this.editingCategory = true;\r\n\r\n if (this.editSnippetObject) {\r\n this.saveEdit(this.editSnippetObject);\r\n }\r\n\r\n this.editSnippetObject = snippet;\r\n const categoriesLabel: HTMLElement = document.querySelector('#snippet-' + snippet._id + ' .categories');\r\n const categoriesEdit: HTMLElement = document.querySelector('#snippet-' + snippet._id + ' .categories-edit');\r\n\r\n categoriesLabel.style.display = 'none';\r\n categoriesEdit.style.display = 'block';\r\n }\r\n }\r\n\r\n toggleOffEditing(): void {\r\n\r\n if (this.editSnippetObject) {\r\n this.editSnippetObject = undefined;\r\n\r\n const noEdits = document.getElementsByClassName('no-edit') as HTMLCollectionOf;\r\n const edits = document.getElementsByClassName('editable') as HTMLCollectionOf;\r\n\r\n for (let i = 0; i < edits.length; i++) {\r\n edits[i].style.display = 'none';\r\n }\r\n for (let j = 0; j < noEdits.length; j++) {\r\n noEdits[j].style.display = 'block';\r\n }\r\n }\r\n }\r\n\r\n saveEdit(snippet): void {\r\n\r\n\r\n // setting variables for edited content so that\r\n const newSnip: HTMLInputElement = document.querySelector('#snippet-' + snippet._id + ' .snippet-edit');\r\n const newCat: HTMLInputElement = document.querySelector('#snippet-' + snippet._id + ' .categories-edit');\r\n\r\n snippet.snippet = newSnip.value;\r\n snippet.categories = newCat.value;\r\n if (this.snippetEdited) {\r\n if (typeof snippet.categories === 'string') {\r\n snippet.categories.replace(' ', '');\r\n snippet.categories = snippet.categories.split(',');\r\n }\r\n this.databaseService.editSnippet(snippet._id, snippet.snippet, snippet.categories);\r\n this.snippetEdited = false;\r\n }\r\n this.toggleOffEditing();\r\n }\r\n\r\n deleteRecord(id) {\r\n // console.log(\"delete id: \"+id);\r\n this.databaseService.deleteSnippet(id);\r\n }\r\n\r\n\r\n\r\n}\r\n","module.exports = \"textarea {\\r\\n height:500px;\\r\\n}\\r\\n\"","module.exports = \"
\\n

Exported Cover Letter:

\\n

You may edit your cover letter, and copy/paste it from here to whatever medium you are using to apply for jobs.

\\n \\n

Need to edit something? Click the button below to go back.

\\n

WARNING: Any changes you made in this text form will not be saved!

\\n \\n
\\n\\n\"","import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { CoverLetterService } from '../services/cover-letter.service';\nimport { StatusMessageService } from '../services/status-message.service';\n\n@Component({\n selector: 'app-export',\n templateUrl: './export.component.html',\n styleUrls: ['./export.component.css']\n})\nexport class ExportComponent implements OnInit {\n\n constructor(\n public coverLetterService:CoverLetterService,\n public statusMessageService:StatusMessageService\n ) { }\n\n ngOnInit() {\n }\n\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'hasKeywords'\n})\nexport class HasKeywordsPipe implements PipeTransform {\n\n transform(value: Array, args?: any): any {\n // Only return categories if there is at least 1 keyword in the job description\n return value.filter(cat => cat.jobKeywords > 0);\n }\n\n}\n","module.exports = \"#keyword-results-table-container {\\r\\n max-height:160px;\\r\\n}\\r\\n\\r\\n/* #keyword-results-table thead td, #filtered-snippets-table thead td {\\r\\n font-size:14px;\\r\\n color:white;\\r\\n} */\\r\\n\\r\\n#keyword-results-table tbody td {\\r\\n font-size:10px;\\r\\n}\\r\\n\\r\\n\\r\\n\\r\\n\"","module.exports = \"\\n

Job Description

\\n

Enter the job description here, and Snippets will parse it in order to find the keywords (skills, experience, languages) that match previous cover letter information that you have written.

\\n\\n\\n\\n\\n\\n\"","import { Component, OnInit } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { ParseDescriptionService } from '../services/parse-description.service';\r\nimport { StatusMessageService } from '../services/status-message.service';\r\n\r\n@Component({\r\n selector: 'app-job-description',\r\n templateUrl: './job-description.component.html',\r\n styleUrls: ['./job-description.component.css']\r\n})\r\nexport class JobDescriptionComponent implements OnInit {\r\n\r\n descriptionContent:string;\r\n\r\n constructor(\r\n private parseDescriptionService:ParseDescriptionService,\r\n private statusMessageService:StatusMessageService\r\n ) { }\r\n\r\n ngOnInit() {\r\n\r\n }\r\n\r\n submitDescription(description):void {\r\n this.parseDescriptionService.parseDescription(description);\r\n }\r\n\r\n enterNewDescription():void {\r\n this.descriptionContent = \"\";\r\n this.parseDescriptionService.showParsingResults = false;\r\n this.statusMessageService.newStatusMessage(\"Resetting Job Description\", \"warning\");\r\n }\r\n\r\n}\r\n","module.exports = \"ul {\\r\\n list-style-type: none;\\r\\n}\\r\\n\\r\\nli a {\\r\\n color:#b0ccea;\\r\\n}\\r\\n\\r\\nli .is-active {\\r\\n color:white;\\r\\n font-weight:700;\\r\\n}\\r\\n\\r\\nli .disabled {\\r\\n cursor:not-allowed !important;\\r\\n color:#555 !important;\\r\\n text-decoration:none;\\r\\n}\\r\\n\\r\\n/* .is-active {\\r\\n color:#7ca0c5;\\r\\n} */\\r\\n\"","module.exports = \"\\n\"","import { Component, OnInit } from '@angular/core';\nimport { DatabaseService } from '../services/database.service';\nimport { CoverLetterService } from '../services/cover-letter.service';\n\n@Component({\n selector: 'app-nav',\n templateUrl: './nav.component.html',\n styleUrls: ['./nav.component.css']\n})\nexport class NavComponent implements OnInit {\n\n coverLetterLinkDisabled:boolean = (this.coverLetterService.addedSnippets.length == 0);\n\n constructor(\n public databaseService:DatabaseService,\n public coverLetterService:CoverLetterService\n ) { }\n\n ngOnInit() {\n }\n\n}\n","module.exports = \"#filtered-snippets-table thead td:first-child {\\r\\n width:75%;\\r\\n}\\r\\n\\r\\n#filtered-snippets-table thead td:nth-child(2) {\\r\\n max-width:25%;\\r\\n}\\r\\n\\r\\nbutton {\\r\\n margin: 0 auto;\\r\\n display: block;\\r\\n}\\r\\n\\r\\n#intro-outro {\\r\\n margin:20px 0\\r\\n}\\r\\n\"","module.exports = \"
\\n\\n
\\n\\n
\\n \\n
\\n\\n
\\n\\n

Results for the job description:

\\n {{parseDescriptionService.jobDescription.substring(0,200)}}...\\n\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
Category/Keyword:Times Mentioned:Show snippets for Category
{{ keyword.keyword }}{{ keyword.jobKeywords }}\\n Show Snippets\\n
\\n
\\n\\n
\\n \\n \\n
\\n\\n
\\n
\\n\\n

Snippets from Category: {{ displayedCategory }}

\\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
SnippetAdd to Letter
{{snippet.snippet}}\\n Add\\n
\\n
\\n
\\n\\n
\\n\"","import { Component, OnInit } from '@angular/core';\nimport { ParseDescriptionService } from '../services/parse-description.service';\nimport { StatusMessageService } from '../services/status-message.service';\nimport { DatabaseService } from '../services/database.service';\nimport { CoverLetterService } from '../services/cover-letter.service';\n\n@Component({\n selector: 'app-results',\n templateUrl: './results.component.html',\n styleUrls: ['./results.component.css']\n})\nexport class ResultsComponent implements OnInit {\n\n filteredSnippets: Array;\n displayedCategory = '';\n showFilteredSnippetsTable = false;\n\n constructor(\n public parseDescriptionService: ParseDescriptionService,\n public coverLetterService: CoverLetterService,\n private databaseService: DatabaseService,\n private statusMessageService: StatusMessageService\n ) { }\n\n ngOnInit() {\n }\n\n displaySnippets(keyword): void {\n this.filteredSnippets = [];\n const snippets = this.databaseService.database;\n for (let i = 0; i < snippets.length; i++) {\n if (snippets[i].categories.includes(keyword)) { this.filteredSnippets.push(snippets[i]); }\n }\n this.displayedCategory = keyword;\n this.showFilteredSnippetsTable = true;\n this.statusMessageService.newStatusMessage('Displaying Snippets from category: ' + keyword, 'primary');\n }\n\n enterNewDescription() {\n this.filteredSnippets = [];\n this.showFilteredSnippetsTable = false;\n this.parseDescriptionService.showParsingResults = false;\n this.parseDescriptionService.jobDescription = '';\n this.parseDescriptionService.keywordArray = [];\n this.statusMessageService.newStatusMessage('Resetting Job Description', 'warning');\n }\n\n}\n","import { Injectable } from '@angular/core';\nimport { StatusMessageService } from '../services/status-message.service';\n\n\n@Injectable()\nexport class CoverLetterService {\n\n addedSnippets: Array = [];\n exported = '';\n\n constructor(private statusMessageService: StatusMessageService) { }\n\n addSnippet(snippet) {\n for (let i = 0; i < this.addedSnippets.length; i++) {\n if (this.addedSnippets[i]._id === snippet._id) {\n return;\n }\n }\n\n this.addedSnippets.push(snippet);\n this.statusMessageService.newStatusMessage('Added Snippet to the Cover Letter', 'primary');\n }\n\n moveSnippet(index, up): void {\n const temp = this.addedSnippets[index];\n const swapIndex = up ? -1 : 1;\n this.addedSnippets[index] = this.addedSnippets[index + swapIndex];\n this.addedSnippets[index + swapIndex] = temp;\n }\n\n removeSnippet(index): void {\n this.addedSnippets.splice(index, 1);\n this.statusMessageService.newStatusMessage('Removed Snippet from Cover Letter', 'primary');\n }\n}\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http';\r\nimport { Observable, BehaviorSubject, throwError } from 'rxjs';\r\nimport { catchError, retry } from 'rxjs/operators';\r\nimport { StatusMessageService } from './status-message.service';\r\n\r\nexport interface DatabaseResponse {\r\n responseMessage: string;\r\n connected: boolean;\r\n data: Array<{}>;\r\n error: boolean\r\n}\r\n\r\n@Injectable()\r\nexport class DatabaseService {\r\n\r\n isJson: boolean;\r\n database: Array;\r\n connected = false;\r\n showDatabase = false;\r\n categories: any = {};\r\n\r\n constructor(\r\n private http: HttpClient,\r\n private statusMessageService: StatusMessageService,\r\n ) { }\r\n\r\n startConnection(isJson = true, urlString = 'snippets-db.json'): void {\r\n const self = this;\r\n const dataObj = JSON.stringify({ databaseUrl: urlString });\r\n const options = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json; charset=utf-8'\r\n })\r\n };\r\n const url = isJson ? 'api/get-json-data' : 'api/connect-to-database';\r\n self.isJson = isJson;\r\n\r\n this.http.post(url, dataObj, options)\r\n .pipe(retry(2), catchError(this.handleError)\r\n ).subscribe(response => {\r\n if (response.connected && !response.error) {\r\n self.database = response.data;\r\n self.statusMessageService.newStatusMessage(response.responseMessage, 'success');\r\n self.connected = true;\r\n self.showDatabase = true;\r\n\r\n if (self.database.length > 0) {\r\n self.extractCategories();\r\n }\r\n }\r\n });\r\n }\r\n\r\n addSnippet(snippet, categories): void {\r\n const self = this;\r\n const data = {snippet: snippet, categories: categories};\r\n const options = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json; charset=utf-8'\r\n })\r\n };\r\n\r\n const url = self.isJson ? 'api/add-json-snippet' : 'api/add-snippet';\r\n\r\n this.http.post(url, JSON.stringify(data), options)\r\n .pipe(catchError(this.handleError)\r\n ).subscribe(returnData => {\r\n if (returnData.connected) {\r\n self.statusMessageService.newStatusMessage(returnData.responseMessage, 'success');\r\n self.database = returnData.data;\r\n self.extractCategories();\r\n } else if (returnData.error) {\r\n self.statusMessageService.newStatusMessage(returnData.responseMessage, 'error');\r\n }\r\n });\r\n }\r\n\r\n editSnippet(id, snippet, categories): void {\r\n const self = this;\r\n const url = self.isJson ? 'api/edit-json-snippet' : 'api/edit-snippet';\r\n const data = { id: id, snippet: snippet, categories: categories };\r\n const options = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json; charset=utf-8'\r\n })\r\n };\r\n\r\n this.http.put(url, JSON.stringify(data), options)\r\n .pipe(catchError(this.handleError)\r\n ).subscribe(returnData => {\r\n if (returnData.connected && !returnData.error) {\r\n self.statusMessageService.newStatusMessage(returnData.responseMessage, 'success');\r\n self.database = returnData.data;\r\n self.extractCategories();\r\n }\r\n });\r\n }\r\n\r\n deleteSnippet(id): void {\r\n const self = this;\r\n const data = {id: id};\r\n const url = self.isJson ? 'api/delete-json-snippet' : 'api/delete-snippet';\r\n const options = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json; charset=utf-8'\r\n }),\r\n body: JSON.stringify(data)\r\n };\r\n\r\n this.http.delete(url, options)\r\n .pipe(catchError(this.handleError)\r\n ).subscribe(returnData => {\r\n if (returnData.connected && !returnData.error) {\r\n self.statusMessageService.newStatusMessage(returnData.responseMessage, 'success');\r\n self.database = returnData.data;\r\n self.extractCategories();\r\n }\r\n });\r\n }\r\n\r\n private extractCategories(): void {\r\n this.categories = {};\r\n for (let i = 0; i < this.database.length; i++) {\r\n const record = this.database[i];\r\n for (let j = 0; j < record.categories.length; j++) {\r\n const category = record.categories[j];\r\n if (!(category in this.categories)) {\r\n this.categories[category] = {\r\n ids: [],\r\n jobKeywords: 0\r\n };\r\n }\r\n this.categories[category].ids.push(record);\r\n }\r\n }\r\n }\r\n\r\n private handleError(error: HttpErrorResponse) {\r\n console.log('error obj: ');\r\n console.log(error);\r\n\r\n if (error.error instanceof ErrorEvent) {\r\n console.error('Error: ', error.error.message);\r\n this.statusMessageService.newStatusMessage('There was a network error with your request: ' + error.error.message, 'error');\r\n } else {\r\n console.error(`Backend returned code ${error.status}`);\r\n console.error(`Error Body: ${error.error}`);\r\n this.statusMessageService.newStatusMessage('There was a server error with your request: ' + error.error, 'error');\r\n }\r\n return throwError('error from throwerror');\r\n }\r\n\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs';\r\n\r\nimport { DatabaseService } from './database.service';\r\nimport { StatusMessageService } from './status-message.service';\r\n\r\n@Injectable()\r\nexport class ParseDescriptionService {\r\n\r\n jobDescription = '';\r\n showParsingResults = false;\r\n keywordArray: Array<{}>;\r\n\r\n constructor(private databaseService: DatabaseService, private statusMessageService: StatusMessageService) { }\r\n\r\n parseDescription(description): any {\r\n this.resetJobKeywords();\r\n this.jobDescription = description;\r\n\r\n const descriptionWords = description.split(/\\W/);\r\n\r\n for (let i = 0; i < descriptionWords.length; i++) {\r\n const word = descriptionWords[i].toLowerCase();\r\n if (word in this.databaseService.categories) {\r\n this.databaseService.categories[word].jobKeywords++;\r\n }\r\n }\r\n\r\n this.keywordArray = this.createOrderedArray();\r\n this.showParsingResults = true;\r\n\r\n }\r\n\r\n resetJobKeywords(): void {\r\n const keywords = Object.keys(this.databaseService.categories);\r\n for (let i = 0; i < keywords.length; i++) {\r\n this.databaseService.categories[keywords[i]].jobKeywords = 0;\r\n }\r\n }\r\n\r\n createOrderedArray(): Array<{}> {\r\n const keywords = Object.keys(this.databaseService.categories);\r\n const keywordsArray = [];\r\n for (let i = 0; i < keywords.length; i++) {\r\n this.databaseService.categories[keywords[i]].keyword = keywords[i];\r\n keywordsArray.push(this.databaseService.categories[keywords[i]]);\r\n }\r\n\r\n function quicksortByJobKeywords(arr, left, right) {\r\n if (left < right) {\r\n const divider = divide(arr, left, right);\r\n quicksortByJobKeywords(arr, left, divider - 1);\r\n quicksortByJobKeywords(arr, divider + 1, right);\r\n }\r\n return arr;\r\n }\r\n\r\n function divide(arr, left, right) {\r\n let dividerIndex = left;\r\n const pivot = right;\r\n\r\n for (let i = left; i < right; i++) {\r\n if (arr[i].jobKeywords > arr[pivot].jobKeywords) {\r\n swap(arr, i, dividerIndex);\r\n dividerIndex++;\r\n }\r\n }\r\n swap(arr, pivot, dividerIndex);\r\n return dividerIndex;\r\n }\r\n\r\n function swap(arr, a, b) {\r\n const temp = arr[a];\r\n arr[a] = arr[b];\r\n arr[b] = temp;\r\n }\r\n\r\n quicksortByJobKeywords(keywordsArray, 0, keywordsArray.length - 1);\r\n const statusMessage = 'Finished parsing the description. The category with the most keywords in this job description is: ' + keywordsArray[0].keyword + ' with ' + keywordsArray[0].jobKeywords + ' keywords.';\r\n this.statusMessageService.newStatusMessage(statusMessage, 'success');\r\n return keywordsArray;\r\n }\r\n\r\n}\r\n","import { Injectable } from '@angular/core';\nimport { Observable, BehaviorSubject } from 'rxjs';\n\n@Injectable()\nexport class StatusMessageService {\n\n statusMessageStream: BehaviorSubject = new BehaviorSubject(undefined);\n\n constructor() { }\n\n getStatusMessageStream() {\n return this.statusMessageStream.asObservable();\n }\n\n newStatusMessage(status, cssClass) {\n this.statusMessageStream.next({\n status: status,\n cssClass: cssClass\n });\n }\n\n clearStatus() {\n this.statusMessageStream.next({\n status: '',\n cssClass: ''\n });\n }\n\n}\n","module.exports = \"#status {\\r\\n width:100%;\\r\\n max-width:38em;\\r\\n padding: 0px 15px;\\r\\n border:1px solid #c9c9c9;\\r\\n text-align:left;\\r\\n color:#c9c9c9;\\r\\n border-radius:3px;\\r\\n margin:20px 0 0 -13px;\\r\\n background-color: rgba(200,200,200,.3);\\r\\n position: fixed;\\r\\n bottom: 0px;\\r\\n box-sizing: border-box;\\r\\n}\\r\\n\\r\\n#status.success {\\r\\n color:green;\\r\\n border-color:green;\\r\\n background-color:#9bca9b;\\r\\n}\\r\\n\\r\\n#status.error {\\r\\n color: #c14242;\\r\\n border-color: #b54242;\\r\\n background-color: #5a2c2c;\\r\\n}\\r\\n\\r\\n#status.primary {\\r\\n color: #8fcef3;\\r\\n border-color: #596c77;\\r\\n background-color: #596c77;\\r\\n}\\r\\n\\r\\n#status.warning {\\r\\n color: #856404;\\r\\n background-color: #fff3cd;\\r\\n border-color: #ffeeba;\\r\\n}\\r\\n\"","module.exports = \"
\\n

\\n {{statusMessage}}\\n

\\n
\"","import { Component, OnInit } from '@angular/core';\nimport { StatusMessageService } from '../services/status-message.service';\n\n@Component({\n selector: 'app-status-message',\n templateUrl: './status-message.component.html',\n styleUrls: ['./status-message.component.css']\n})\n\nexport class StatusMessageComponent implements OnInit {\n statusMessage:String = \"\";\n statusClass:String = \"primary\";\n constructor(private statusMessageService:StatusMessageService) { }\n\n ngOnInit() {\n let statusObservable = this.statusMessageService.getStatusMessageStream();\n statusObservable.subscribe(d => {\n if (d !== undefined) {\n this.statusMessage = d.status;\n this.statusClass = d.cssClass;\n }\n });\n }\n\n}\n","// The file contents for the current environment will overwrite these during build.\n// The build system defaults to the dev environment which uses `environment.ts`, but if you do\n// `ng build --env=prod` then `environment.prod.ts` will be used instead.\n// The list of which env maps to which file can be found in `.angular-cli.json`.\n\nexport const environment = {\n production: false\n};\n","import { enableProdMode } from '@angular/core';\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { AppModule } from './app/app.module';\nimport { environment } from './environments/environment';\n\nif (environment.production) {\n enableProdMode();\n}\n\nplatformBrowserDynamic().bootstrapModule(AppModule)\n .catch(err => console.log(err));\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/polyfills.a19b2f1d90e9baecaab8.js b/dist/polyfills.a19b2f1d90e9baecaab8.js new file mode 100644 index 0000000..090af4a --- /dev/null +++ b/dist/polyfills.a19b2f1d90e9baecaab8.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+rLv":function(e,t,n){var r=n("dyZX").document;e.exports=r&&r.documentElement},"0/R4":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"0TWp":function(e,t,n){!function(){"use strict";!function(e){var t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function r(e,n){t&&t.measure&&t.measure(e,n)}if(n("Zone"),e.Zone)throw new Error("Zone already loaded.");var o,i=function(){function t(e,t){this._properties=null,this._parent=e,this._name=t?t.name||"unnamed":"",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("